Merge pull request #20735 from itsjunetime/fix_scip_salsa

fix SCIP panicking due to salsa not attaching
This commit is contained in:
Shoyu Vanilla (Flint) 2025-09-25 10:30:12 +00:00 committed by GitHub
commit 7ae5f2df12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,7 +278,7 @@ impl StaticIndex<'_> {
for token in tokens {
let range = token.text_range();
let node = token.parent().unwrap();
match get_definitions(&sema, token.clone()) {
match salsa::attach(self.db, || get_definitions(&sema, token.clone())) {
Some(it) => {
for i in it {
add_token(i, range, &node);