Skip to content

Commit ea3bb1a

Browse files
committed
update salsa
1 parent 869a5ea commit ea3bb1a

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ regex-automata = { version = "0.4.9" }
137137
rustc-hash = { version = "2.0.0" }
138138
rustc-stable-hash = { version = "0.1.2" }
139139
# When updating salsa, make sure to also update the revision in `fuzz/Cargo.toml`
140-
salsa = { git = "https://github.com/ibraheemdev/salsa", rev = "02b9ae4dbbacf51aea49c966a5119c9de02e9589" }
140+
salsa = { git = "https://github.com/salsa-rs/salsa", rev = "0666e2018bc35376b1ac4f98906f2d04d11e5fe4" }
141141
schemars = { version = "0.8.16" }
142142
seahash = { version = "4.1.0" }
143143
serde = { version = "1.0.197", features = ["derive"] }

crates/ty/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ fn setup_rayon() {
463463

464464
/// Dumps memory usage information to the CLI.
465465
#[allow(clippy::print_stdout)]
466-
fn salsa_memory_dump(db: &ProjectDatabase) -> SalsaMemoryDump<'_> {
466+
fn salsa_memory_dump(db: &ProjectDatabase) -> SalsaMemoryDump {
467467
println!("Counts for entire CLI run:\n{}", countme::get_all());
468468

469469
let salsa_db = db as &dyn salsa::Database;
@@ -477,15 +477,15 @@ fn salsa_memory_dump(db: &ProjectDatabase) -> SalsaMemoryDump<'_> {
477477
SalsaMemoryDump { ingredients, memos }
478478
}
479479

480-
struct SalsaMemoryDump<'db> {
480+
struct SalsaMemoryDump {
481481
ingredients: Vec<salsa::IngredientInfo>,
482-
memos: Vec<((&'db str, &'db str), salsa::IngredientInfo)>,
482+
memos: Vec<(&'static str, salsa::IngredientInfo)>,
483483
}
484484

485485
#[allow(clippy::cast_precision_loss)]
486-
impl SalsaMemoryDump<'_> {
486+
impl SalsaMemoryDump {
487487
fn display_short(&self) -> impl Display + '_ {
488-
struct DisplayShort<'a>(&'a SalsaMemoryDump<'a>);
488+
struct DisplayShort<'a>(&'a SalsaMemoryDump);
489489

490490
impl std::fmt::Display for DisplayShort<'_> {
491491
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -498,7 +498,7 @@ impl SalsaMemoryDump<'_> {
498498

499499
let mut total_memo_fields = 0;
500500
let mut total_memo_metadata = 0;
501-
for ((_, _), memo) in &self.0.memos {
501+
for (_, memo) in &self.0.memos {
502502
total_memo_fields += memo.size_of_fields();
503503
total_memo_metadata += memo.size_of_metadata();
504504
}
@@ -545,7 +545,7 @@ impl SalsaMemoryDump<'_> {
545545
}
546546

547547
fn display_full(&self) -> impl Display + '_ {
548-
struct DisplayFull<'a>(&'a SalsaMemoryDump<'a>);
548+
struct DisplayFull<'a>(&'a SalsaMemoryDump);
549549

550550
impl std::fmt::Display for DisplayFull<'_> {
551551
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -571,11 +571,11 @@ impl SalsaMemoryDump<'_> {
571571

572572
let mut total_memo_fields = 0;
573573
let mut total_memo_metadata = 0;
574-
for ((input, output), memo) in &self.0.memos {
574+
for (query_fn, memo) in &self.0.memos {
575575
total_memo_fields += memo.size_of_fields();
576576
total_memo_metadata += memo.size_of_metadata();
577577

578-
writeln!(f, "`{input} -> {output}`")?;
578+
writeln!(f, "`{query_fn} -> {}`", memo.debug_name())?;
579579

580580
writeln!(
581581
f,

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ty_python_semantic = { path = "../crates/ty_python_semantic" }
3030
ty_vendored = { path = "../crates/ty_vendored" }
3131

3232
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer", default-features = false }
33-
salsa = { git = "https://github.com/ibraheemdev/salsa", rev = "02b9ae4dbbacf51aea49c966a5119c9de02e9589" }
33+
salsa = { git = "https://github.com/ibraheemdev/salsa", rev = "e53c2ab7" }
3434
similar = { version = "2.5.0" }
3535
tracing = { version = "0.1.40" }
3636

0 commit comments

Comments
 (0)