File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1305,13 +1305,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
13051305 itctx : ImplTraitContext ,
13061306 f : impl FnOnce ( & mut Self ) -> T ,
13071307 ) -> ( & ' hir hir:: Generics < ' hir > , T ) {
1308- match itctx {
1309- ImplTraitContext :: Universal ( ..) => { }
1310- _ => {
1311- debug_assert ! ( self . impl_trait_defs. is_empty( ) ) ;
1312- debug_assert ! ( self . impl_trait_bounds. is_empty( ) ) ;
1313- }
1314- }
1308+ debug_assert ! ( self . impl_trait_defs. is_empty( ) ) ;
1309+ debug_assert ! ( self . impl_trait_bounds. is_empty( ) ) ;
13151310
13161311 // Error if `?Trait` bounds in where clauses don't refer directly to type parameters.
13171312 // Note: we used to clone these bounds directly onto the type parameter (and avoid lowering
You can’t perform that action at this time.
0 commit comments