mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Strip delimiter from fn-like proc macro input
This commit is contained in:
parent
a328a6bc75
commit
bda68e2332
2 changed files with 33 additions and 2 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue