Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: Bump salsa #14700

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
104 changes: 51 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/base-db/Cargo.toml
Expand Up @@ -12,7 +12,7 @@ rust-version.workspace = true
doctest = false

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

la-arena = { version = "0.3.0", path = "../../lib/la-arena" }
Expand Down
6 changes: 3 additions & 3 deletions crates/hir-ty/src/consteval.rs
@@ -1,6 +1,6 @@
//! Constant evaluation details

use base_db::CrateId;
use base_db::{salsa::Cycle, CrateId};
use chalk_ir::{BoundVar, DebruijnIndex, GenericArgData};
use hir_def::{
hir::Expr,
Expand Down Expand Up @@ -167,7 +167,7 @@ pub fn try_const_usize(c: &Const) -> Option<u128> {

pub(crate) fn const_eval_recover(
_: &dyn HirDatabase,
_: &[String],
_: &Cycle,
_: &DefWithBodyId,
_: &Substitution,
) -> Result<Const, ConstEvalError> {
Expand All @@ -176,7 +176,7 @@ pub(crate) fn const_eval_recover(

pub(crate) fn const_eval_discriminant_recover(
_: &dyn HirDatabase,
_: &[String],
_: &Cycle,
_: &EnumVariantId,
) -> Result<i128, ConstEvalError> {
Err(ConstEvalError::MirLowerError(MirLowerError::Loop))
Expand Down
3 changes: 2 additions & 1 deletion crates/hir-ty/src/layout/adt.rs
Expand Up @@ -2,6 +2,7 @@

use std::{cmp, ops::Bound};

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

pub fn layout_of_adt_recover(
_: &dyn HirDatabase,
_: &[String],
_: &Cycle,
_: &AdtId,
_: &Substitution,
) -> Result<Layout, LayoutError> {
Expand Down
10 changes: 5 additions & 5 deletions crates/hir-ty/src/lower.rs
Expand Up @@ -11,7 +11,7 @@ use std::{
sync::Arc,
};

use base_db::CrateId;
use base_db::{salsa::Cycle, CrateId};
use chalk_ir::{
cast::Cast, fold::Shift, fold::TypeFoldable, interner::HasInterner, Mutability, Safety,
};
Expand Down Expand Up @@ -1436,7 +1436,7 @@ pub(crate) fn generic_predicates_for_param_query(

pub(crate) fn generic_predicates_for_param_recover(
_db: &dyn HirDatabase,
_cycle: &[String],
_cycle: &Cycle,
_def: &GenericDefId,
_param_id: &TypeOrConstParamId,
_assoc_name: &Option<Name>,
Expand Down Expand Up @@ -1609,7 +1609,7 @@ pub(crate) fn generic_defaults_query(

pub(crate) fn generic_defaults_recover(
db: &dyn HirDatabase,
_cycle: &[String],
_cycle: &Cycle,
def: &GenericDefId,
) -> Arc<[Binders<crate::GenericArg>]> {
let generic_params = generics(db.upcast(), *def);
Expand Down Expand Up @@ -1842,7 +1842,7 @@ pub(crate) fn ty_query(db: &dyn HirDatabase, def: TyDefId) -> Binders<Ty> {
}
}

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

pub(crate) fn impl_self_ty_recover(
db: &dyn HirDatabase,
_cycle: &[String],
_cycle: &Cycle,
impl_id: &ImplId,
) -> Binders<Ty> {
let generics = generics(db.upcast(), (*impl_id).into());
Expand Down
4 changes: 2 additions & 2 deletions crates/hir-ty/src/mir/lower.rs
Expand Up @@ -2,7 +2,7 @@

use std::{fmt::Write, iter, mem, sync::Arc};

use base_db::FileId;
use base_db::{salsa::Cycle, FileId};
use chalk_ir::{BoundVar, ConstData, DebruijnIndex, TyKind};
use hir_def::{
body::Body,
Expand Down Expand Up @@ -1712,7 +1712,7 @@ pub fn mir_body_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Result<Arc<Mi

pub fn mir_body_recover(
_db: &dyn HirDatabase,
_cycle: &[String],
_cycle: &Cycle,
_def: &DefWithBodyId,
) -> Result<Arc<MirBody>> {
Err(MirLowerError::Loop)
Expand Down