Migrate inference to next solver

This commit is contained in:
Chayim Refael Friedman 2025-09-30 10:36:23 +03:00
parent 2b2d9d8f88
commit d1288f6353
90 changed files with 4560 additions and 4904 deletions

View file

@ -426,9 +426,12 @@ fn traverse(
let edition = descended_element.file_id.edition(sema.db);
let (unsafe_ops, bindings_shadow_count) = match current_body {
Some(current_body) => {
let (ops, bindings) = per_body_cache
.entry(current_body)
.or_insert_with(|| (sema.get_unsafe_ops(current_body), Default::default()));
let (ops, bindings) = per_body_cache.entry(current_body).or_insert_with(|| {
(
salsa::attach(sema.db, || sema.get_unsafe_ops(current_body)),
Default::default(),
)
});
(&*ops, Some(bindings))
}
None => (&empty, None),