mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Do not report warnings from proc macros, ever
This commit is contained in:
parent
26bc01dae3
commit
33c7e81e90
2 changed files with 13 additions and 0 deletions
|
@ -269,6 +269,13 @@ pub enum MacroDefKind {
|
|||
ProcMacro(AstId<ast::Fn>, CustomProcMacroExpander, ProcMacroKind),
|
||||
}
|
||||
|
||||
impl MacroDefKind {
|
||||
#[inline]
|
||||
pub fn is_declarative(&self) -> bool {
|
||||
matches!(self, MacroDefKind::Declarative(..))
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct EagerCallInfo {
|
||||
/// The expanded argument of the eager macro.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue