Make replace_derive_with_manual_impl work again
This commit is contained in:
@@ -1792,6 +1792,13 @@ impl MacroDef {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_builtin_derive(&self) -> bool {
|
||||
match self.id.kind {
|
||||
MacroDefKind::BuiltInAttr(exp, _) => exp.is_derive(),
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_attr(&self) -> bool {
|
||||
matches!(self.kind(), MacroKind::Attr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user