about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/coherence/orphan.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-02 18:36:11 -0400
committerMichael Goulet <michael@errs.io>2024-06-03 09:27:52 -0400
commit1e72c7f536bbdf3ed8a0071d28824c071c3722b5 (patch)
treee00c28b15e9244c6150fa5cb96e8a00d068d6c59 /compiler/rustc_hir_analysis/src/coherence/orphan.rs
parent27f5eccd1f433c9455d1a0d3e402c1fa2a2ce334 (diff)
downloadrust-1e72c7f536bbdf3ed8a0071d28824c071c3722b5.tar.gz
rust-1e72c7f536bbdf3ed8a0071d28824c071c3722b5.zip
Add cycle errors to ScrubbedTraitError to remove a couple more calls to new_with_diagnostics
Diffstat (limited to 'compiler/rustc_hir_analysis/src/coherence/orphan.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/coherence/orphan.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/coherence/orphan.rs b/compiler/rustc_hir_analysis/src/coherence/orphan.rs
index d2eb0cb5a7b..1e7bb63e6ea 100644
--- a/compiler/rustc_hir_analysis/src/coherence/orphan.rs
+++ b/compiler/rustc_hir_analysis/src/coherence/orphan.rs
@@ -319,7 +319,8 @@ fn orphan_check<'tcx>(
         }
 
         let ty = if infcx.next_trait_solver() {
-            let mut fulfill_cx = <dyn traits::TraitEngine<'tcx, ScrubbedTraitError>>::new(&infcx);
+            let mut fulfill_cx =
+                <dyn traits::TraitEngine<'tcx, ScrubbedTraitError<'tcx>>>::new(&infcx);
             infcx
                 .at(&cause, ty::ParamEnv::empty())
                 .structurally_normalize(ty, &mut *fulfill_cx)