Encode disabled proc-macros via boolean flag, not special Expander

This commit is contained in:
Lukas Wirth 2024-02-12 13:34:38 +01:00
parent ab50ec9863
commit e2a985e93f
8 changed files with 91 additions and 148 deletions

View file

@ -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(),
)