diff options
| author | Michael Goulet <michael@errs.io> | 2025-04-03 18:53:48 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-04-03 18:55:53 +0000 |
| commit | 64b58dd13b06a23d8429a73c225347b4cd3b2c3c (patch) | |
| tree | a299699a783230995d8fb44fb7c49fad7d73374f /compiler/rustc_infer/src | |
| parent | d5b4c2e4f19b6d7037371cdaecc3cc2c701c68df (diff) | |
| download | rust-64b58dd13b06a23d8429a73c225347b4cd3b2c3c.tar.gz rust-64b58dd13b06a23d8429a73c225347b4cd3b2c3c.zip | |
Pass correct param-env to error_implies
Diffstat (limited to 'compiler/rustc_infer/src')
| -rw-r--r-- | compiler/rustc_infer/src/infer/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs index fa8dea064da..5fc44b8f356 100644 --- a/compiler/rustc_infer/src/infer/mod.rs +++ b/compiler/rustc_infer/src/infer/mod.rs @@ -27,6 +27,7 @@ use rustc_middle::bug; use rustc_middle::infer::canonical::{CanonicalQueryInput, CanonicalVarValues}; use rustc_middle::mir::ConstraintCategory; use rustc_middle::traits::select; +use rustc_middle::traits::solve::Goal; use rustc_middle::ty::error::{ExpectedFound, TypeError}; use rustc_middle::ty::{ self, BoundVarReplacerDelegate, ConstVid, FloatVid, GenericArg, GenericArgKind, GenericArgs, @@ -268,7 +269,7 @@ pub struct InferCtxt<'tcx> { /// The set of predicates on which errors have been reported, to /// avoid reporting the same error twice. pub reported_trait_errors: - RefCell<FxIndexMap<Span, (Vec<ty::Predicate<'tcx>>, ErrorGuaranteed)>>, + RefCell<FxIndexMap<Span, (Vec<Goal<'tcx, ty::Predicate<'tcx>>>, ErrorGuaranteed)>>, pub reported_signature_mismatch: RefCell<FxHashSet<(Span, Option<Span>)>>, |
