Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/diagnostics.rs')
-rw-r--r--crates/hir-ty/src/infer/diagnostics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-ty/src/infer/diagnostics.rs b/crates/hir-ty/src/infer/diagnostics.rs
index e871edd265..676317ffba 100644
--- a/crates/hir-ty/src/infer/diagnostics.rs
+++ b/crates/hir-ty/src/infer/diagnostics.rs
@@ -90,7 +90,7 @@ pub(super) struct InferenceTyLoweringContext<'db, 'a> {
ctx: TyLoweringContext<'db, 'a>,
diagnostics: &'a Diagnostics,
source: InferenceTyDiagnosticSource,
- defined_anon_consts: &'a RefCell<ThinVec<AnonConstId>>,
+ defined_anon_consts: &'a RefCell<ThinVec<AnonConstId<'db>>>,
}
impl<'db, 'a> InferenceTyLoweringContext<'db, 'a> {
@@ -98,7 +98,7 @@ impl<'db, 'a> InferenceTyLoweringContext<'db, 'a> {
pub(super) fn new(
db: &'db dyn HirDatabase,
resolver: &'a Resolver<'db>,
- store: &'a ExpressionStore,
+ store: &'db ExpressionStore,
diagnostics: &'a Diagnostics,
source: InferenceTyDiagnosticSource,
def: ExpressionStoreOwnerId,
@@ -107,7 +107,7 @@ impl<'db, 'a> InferenceTyLoweringContext<'db, 'a> {
lifetime_elision: LifetimeElisionKind<'db>,
allow_using_generic_params: bool,
infer_vars: Option<&'a mut dyn TyLoweringInferVarsCtx<'db>>,
- defined_anon_consts: &'a RefCell<ThinVec<AnonConstId>>,
+ defined_anon_consts: &'a RefCell<ThinVec<AnonConstId<'db>>>,
lifetime_lowering_mode: LifetimeLoweringMode,
) -> Self {
let mut ctx = TyLoweringContext::new(