File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/rustc_hir_analysis/src/astconv Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -433,12 +433,10 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
433433 } ) ;
434434
435435 // Provide the resolved type of the associated constant to `type_of(AnonConst)`.
436- if !speculative && let ty :: AssocKind :: Const = assoc_kind {
437- let hir:: TypeBindingKind :: Equality { term : hir:: Term :: Const ( anon_const) } =
436+ if !speculative
437+ && let hir:: TypeBindingKind :: Equality { term : hir:: Term :: Const ( anon_const) } =
438438 binding. kind
439- else {
440- bug ! ( )
441- } ;
439+ {
442440 let ty = alias_ty. map_bound ( |ty| tcx. type_of ( ty. def_id ) . instantiate ( tcx, ty. args ) ) ;
443441 // Since the arguments passed to the alias type above may contain early-bound
444442 // generic parameters, the instantiated type may contain some as well.
You can’t perform that action at this time.
0 commit comments