mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 18:43:01 +00:00
Migrate inference to next solver
This commit is contained in:
parent
2b2d9d8f88
commit
d1288f6353
90 changed files with 4560 additions and 4904 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue