We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a39e59 + 1646027 commit 6fdf6b5Copy full SHA for 6fdf6b5
src/tools/rust-analyzer/crates/ide/src/static_index.rs
@@ -278,7 +278,7 @@ impl StaticIndex<'_> {
278
for token in tokens {
279
let range = token.text_range();
280
let node = token.parent().unwrap();
281
- match get_definitions(&sema, token.clone()) {
+ match salsa::attach(self.db, || get_definitions(&sema, token.clone())) {
282
Some(it) => {
283
for i in it {
284
add_token(i, range, &node);
0 commit comments