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 481a5e9cfc..69753687af 100644
--- a/crates/hir-ty/src/infer/diagnostics.rs
+++ b/crates/hir-ty/src/infer/diagnostics.rs
@@ -93,7 +93,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> {
@@ -101,7 +101,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,
@@ -110,7 +110,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(