Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/path.rs')
-rw-r--r--crates/hir-ty/src/infer/path.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/path.rs b/crates/hir-ty/src/infer/path.rs
index 0ec72edc3d..ecc81f9de0 100644
--- a/crates/hir-ty/src/infer/path.rs
+++ b/crates/hir-ty/src/infer/path.rs
@@ -15,7 +15,7 @@ use crate::{
infer::{
InferenceTyLoweringVarsCtx, diagnostics::InferenceTyLoweringContext as TyLoweringContext,
},
- lower::{GenericPredicates, LifetimeElisionKind},
+ lower::{GenericPredicates, LifetimeElisionKind, LifetimeLoweringMode},
method_resolution::{self, CandidateId, MethodError},
next_solver::{
GenericArg, GenericArgs, TraitRef, Ty, Unnormalized, infer::traits::ObligationCause,
@@ -166,6 +166,7 @@ impl<'db> InferenceContext<'_, 'db> {
self.allow_using_generic_params,
Some(&mut vars_ctx),
&self.defined_anon_consts,
+ LifetimeLoweringMode::LateParam,
);
let mut path_ctx = if no_diagnostics {
ctx.at_path_forget_diagnostics(path)