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> {
1305
1305
itctx : ImplTraitContext ,
1306
1306
f : impl FnOnce ( & mut Self ) -> T ,
1307
1307
) -> ( & ' 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( ) ) ;
1315
1310
1316
1311
// Error if `?Trait` bounds in where clauses don't refer directly to type parameters.
1317
1312
// 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