Strip delimiter from fn-like proc macro input
This commit is contained in:
@@ -272,6 +272,10 @@ impl MacroDefId {
|
||||
};
|
||||
Either::Left(*id)
|
||||
}
|
||||
|
||||
pub fn is_proc_macro(&self) -> bool {
|
||||
matches!(self.kind, MacroDefKind::ProcMacro(..))
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
|
||||
Reference in New Issue
Block a user