Skip to content

Commit d4049b5

Browse files
committed
Bump salsa
1 parent 3a27518 commit d4049b5

File tree

6 files changed

+64
-64
lines changed

6 files changed

+64
-64
lines changed

Cargo.lock

+51-53
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/base-db/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version.workspace = true
1212
doctest = false
1313

1414
[dependencies]
15-
salsa = "0.17.0-pre.2"
15+
salsa = { version = "0.17.0-pre.2", git = "https://github.com/salsa-rs/salsa/" }
1616
rustc-hash = "1.1.0"
1717

1818
la-arena = { version = "0.3.0", path = "../../lib/la-arena" }

crates/hir-ty/src/consteval.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Constant evaluation details
22
3-
use base_db::CrateId;
3+
use base_db::{salsa::Cycle, CrateId};
44
use chalk_ir::{BoundVar, DebruijnIndex, GenericArgData};
55
use hir_def::{
66
hir::Expr,
@@ -167,7 +167,7 @@ pub fn try_const_usize(c: &Const) -> Option<u128> {
167167

168168
pub(crate) fn const_eval_recover(
169169
_: &dyn HirDatabase,
170-
_: &[String],
170+
_: &Cycle,
171171
_: &ConstId,
172172
_: &Substitution,
173173
) -> Result<Const, ConstEvalError> {
@@ -176,7 +176,7 @@ pub(crate) fn const_eval_recover(
176176

177177
pub(crate) fn const_eval_discriminant_recover(
178178
_: &dyn HirDatabase,
179-
_: &[String],
179+
_: &Cycle,
180180
_: &EnumVariantId,
181181
) -> Result<i128, ConstEvalError> {
182182
Err(ConstEvalError::MirLowerError(MirLowerError::Loop))

crates/hir-ty/src/layout/adt.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use std::{cmp, ops::Bound};
44

5+
use base_db::salsa::Cycle;
56
use hir_def::{
67
data::adt::VariantData,
78
layout::{Integer, LayoutCalculator, ReprOptions, TargetDataLayout},
@@ -124,7 +125,7 @@ fn layout_scalar_valid_range(db: &dyn HirDatabase, def: AdtId) -> (Bound<u128>,
124125

125126
pub fn layout_of_adt_recover(
126127
_: &dyn HirDatabase,
127-
_: &[String],
128+
_: &Cycle,
128129
_: &AdtId,
129130
_: &Substitution,
130131
) -> Result<Layout, LayoutError> {

crates/hir-ty/src/lower.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
sync::Arc,
1212
};
1313

14-
use base_db::CrateId;
14+
use base_db::{salsa::Cycle, CrateId};
1515
use chalk_ir::{
1616
cast::Cast, fold::Shift, fold::TypeFoldable, interner::HasInterner, Mutability, Safety,
1717
};
@@ -1436,7 +1436,7 @@ pub(crate) fn generic_predicates_for_param_query(
14361436

14371437
pub(crate) fn generic_predicates_for_param_recover(
14381438
_db: &dyn HirDatabase,
1439-
_cycle: &[String],
1439+
_cycle: &Cycle,
14401440
_def: &GenericDefId,
14411441
_param_id: &TypeOrConstParamId,
14421442
_assoc_name: &Option<Name>,
@@ -1609,7 +1609,7 @@ pub(crate) fn generic_defaults_query(
16091609

16101610
pub(crate) fn generic_defaults_recover(
16111611
db: &dyn HirDatabase,
1612-
_cycle: &[String],
1612+
_cycle: &Cycle,
16131613
def: &GenericDefId,
16141614
) -> Arc<[Binders<crate::GenericArg>]> {
16151615
let generic_params = generics(db.upcast(), *def);
@@ -1842,7 +1842,7 @@ pub(crate) fn ty_query(db: &dyn HirDatabase, def: TyDefId) -> Binders<Ty> {
18421842
}
18431843
}
18441844

1845-
pub(crate) fn ty_recover(db: &dyn HirDatabase, _cycle: &[String], def: &TyDefId) -> Binders<Ty> {
1845+
pub(crate) fn ty_recover(db: &dyn HirDatabase, _cycle: &Cycle, def: &TyDefId) -> Binders<Ty> {
18461846
let generics = match *def {
18471847
TyDefId::BuiltinType(_) => return Binders::empty(Interner, TyKind::Error.intern(Interner)),
18481848
TyDefId::AdtId(it) => generics(db.upcast(), it.into()),
@@ -1892,7 +1892,7 @@ pub(crate) fn const_param_ty_query(db: &dyn HirDatabase, def: ConstParamId) -> T
18921892

18931893
pub(crate) fn impl_self_ty_recover(
18941894
db: &dyn HirDatabase,
1895-
_cycle: &[String],
1895+
_cycle: &Cycle,
18961896
impl_id: &ImplId,
18971897
) -> Binders<Ty> {
18981898
let generics = generics(db.upcast(), (*impl_id).into());

crates/hir-ty/src/mir/lower.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use std::{iter, mem, sync::Arc};
44

5+
use base_db::salsa::Cycle;
56
use chalk_ir::{BoundVar, ConstData, DebruijnIndex, TyKind};
67
use hir_def::{
78
body::Body,
@@ -1579,7 +1580,7 @@ pub fn mir_body_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Result<Arc<Mi
15791580

15801581
pub fn mir_body_recover(
15811582
_db: &dyn HirDatabase,
1582-
_cycle: &[String],
1583+
_cycle: &Cycle,
15831584
_def: &DefWithBodyId,
15841585
) -> Result<Arc<MirBody>> {
15851586
Err(MirLowerError::Loop)

0 commit comments

Comments
 (0)