]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_lowering/src/lib.rs
Auto merge of #96770 - flip1995:fix-trait-type-in-bounds, r=cjgillot
[rust.git] / compiler / rustc_ast_lowering / src / lib.rs
index 54b081085cdd7b497d5868d8a471dc2990586f73..c143266f6c1de7921a52101ee312e2a243f041db 100644 (file)
@@ -1298,6 +1298,7 @@ fn lower_ty_direct(&mut self, t: &Ty, mut itctx: ImplTraitContext<'_, 'hir>) ->
                             def_node_id,
                             &GenericParamKind::Type { default: None },
                             hir_bounds,
+                            hir::PredicateOrigin::ImplTrait,
                         ) {
                             in_band_ty_bounds.push(preds)
                         }