We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67deaf9 commit 15a82d6Copy full SHA for 15a82d6
compiler/rustc_ast_lowering/src/item.rs
@@ -1305,13 +1305,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
1305
itctx: ImplTraitContext,
1306
f: impl FnOnce(&mut Self) -> T,
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
+ debug_assert!(self.impl_trait_defs.is_empty());
+ debug_assert!(self.impl_trait_bounds.is_empty());
1315
1316
// Error if `?Trait` bounds in where clauses don't refer directly to type parameters.
1317
// Note: we used to clone these bounds directly onto the type parameter (and avoid lowering
0 commit comments