Rename CustomDerive to ProcMacro

It handles fn-like macros too, and will handle attribute macros in the
future
This commit is contained in:
Jonas Schievink 2020-09-18 15:37:31 +02:00
parent 700a3d5d75
commit 9dc0afe854
6 changed files with 8 additions and 8 deletions

View file

@ -908,12 +908,12 @@ impl MacroDef {
/// Indicate it is a proc-macro
pub fn is_proc_macro(&self) -> bool {
matches!(self.id.kind, MacroDefKind::CustomDerive(_))
matches!(self.id.kind, MacroDefKind::ProcMacro(_))
}
/// Indicate it is a derive macro
pub fn is_derive_macro(&self) -> bool {
matches!(self.id.kind, MacroDefKind::CustomDerive(_) | MacroDefKind::BuiltInDerive(_))
matches!(self.id.kind, MacroDefKind::ProcMacro(_) | MacroDefKind::BuiltInDerive(_))
}
}