-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Auto-attach database in Analysis calls
#20470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I still think we should use our own attaching, not Salsa's. |
|
I still don't see the benefit in that, but I don't mind either way. Note that if we do all of these calls here are required for the new thing as well though |
|
Unless we allow it to be reentrant. |
|
That has nothing to do with this, any assist functionality might calll into the trait solver stuff without going through query. So we need to make sure to setup the tls before hand like this PR does. Using a separate tls doesn't change that. |
|
What I meant is that we don't need to not attach it in highlighting. |
|
I guess this would fix the new panic in our release workflow here? rust-analyzer/crates/hir-ty/src/next_solver/ty.rs Lines 57 to 65 in 80bc952
Though I don't have strong opinions on design choices but I'm +1 on merging this to ship our first next solver unstable release |
|
It would fix it yes |
016ee57 to
aed0fec
Compare
|
changelog fixup #20329 |
No description provided.