mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Encode disabled proc-macros via boolean flag, not special Expander
This commit is contained in:
parent
ab50ec9863
commit
e2a985e93f
8 changed files with 91 additions and 148 deletions
|
@ -333,13 +333,12 @@ impl GlobalState {
|
|||
crate_name
|
||||
.as_deref()
|
||||
.and_then(|crate_name| {
|
||||
ignored_proc_macros.iter().find_map(|c| {
|
||||
if eq_ignore_underscore(&*c.0, crate_name) {
|
||||
Some(&**c.1)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
ignored_proc_macros.iter().find_map(
|
||||
|(name, macros)| {
|
||||
eq_ignore_underscore(name, crate_name)
|
||||
.then_some(&**macros)
|
||||
},
|
||||
)
|
||||
})
|
||||
.unwrap_or_default(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue