mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Optimize input queries that take no arguments
This commit is contained in:
parent
3688064ff5
commit
97cd68097a
3 changed files with 181 additions and 34 deletions
|
@ -371,6 +371,9 @@ pub(crate) fn query_group(args: TokenStream, input: TokenStream) -> TokenStream
|
|||
QueryStorage::Dependencies => {
|
||||
quote!(salsa::plumbing::DependencyStorage<Self>)
|
||||
}
|
||||
QueryStorage::Input if query.keys.is_empty() => {
|
||||
quote!(salsa::plumbing::UnitInputStorage<Self>)
|
||||
}
|
||||
QueryStorage::Input => quote!(salsa::plumbing::InputStorage<Self>),
|
||||
QueryStorage::Interned => quote!(salsa::plumbing::InternedStorage<Self>),
|
||||
QueryStorage::InternedLookup { intern_query_type } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue