Treat Derive Macro specially.

This commit is contained in:
Wyatt Herkamp 2024-03-18 07:10:02 -04:00
parent 4bd2f948bb
commit 2c2bbe07fd
6 changed files with 87 additions and 40 deletions

View file

@ -180,7 +180,7 @@ pub(crate) fn process_cfg_attrs(
db: &dyn ExpandDatabase,
) -> Option<FxHashSet<SyntaxElement>> {
// FIXME: #[cfg_eval] is not implemented. But it is not stable yet
if !matches!(loc.kind, MacroCallKind::Derive { .. }) {
if !matches!(loc.kind, MacroCallKind::Derive { .. } | MacroCallKind::DeriveAttr { .. }) {
return None;
}
let mut remove = FxHashSet::default();