fix: Check for the correct proc-macro settings in missing proc-macro diagnostics

This commit is contained in:
Lukas Wirth 2022-06-14 10:40:57 +02:00
parent 7db73875ac
commit 325ceaef19
6 changed files with 40 additions and 17 deletions

View file

@ -9,7 +9,7 @@ use hir_def::path::ModPath;
use hir_expand::{name::Name, HirFileId, InFile};
use syntax::{ast, AstPtr, SyntaxNodePtr, TextRange};
use crate::Type;
use crate::{MacroKind, Type};
macro_rules! diagnostics {
($($diag:ident,)*) => {
@ -86,6 +86,7 @@ pub struct UnresolvedProcMacro {
/// to use instead.
pub precise_location: Option<TextRange>,
pub macro_name: Option<String>,
pub kind: MacroKind,
}
#[derive(Debug, Clone, Eq, PartialEq)]