Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/diagnostics.rs')
| -rw-r--r-- | crates/hir/src/diagnostics.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/crates/hir/src/diagnostics.rs b/crates/hir/src/diagnostics.rs index a6d67e8fb4..6ef6ea272e 100644 --- a/crates/hir/src/diagnostics.rs +++ b/crates/hir/src/diagnostics.rs @@ -153,8 +153,7 @@ pub struct UnresolvedImport { #[derive(Debug, Clone, Eq, PartialEq)] pub struct UnresolvedMacroCall { - pub macro_call: InFile<SyntaxNodePtr>, - pub precise_location: Option<TextRange>, + pub range: InFile<TextRange>, pub path: ModPath, pub is_bang: bool, } @@ -185,8 +184,7 @@ pub struct InactiveCode { #[derive(Debug, Clone, Eq, PartialEq)] pub struct MacroError { - pub node: InFile<SyntaxNodePtr>, - pub precise_location: Option<TextRange>, + pub range: InFile<TextRange>, pub message: String, pub error: bool, pub kind: &'static str, @@ -194,8 +192,7 @@ pub struct MacroError { #[derive(Debug, Clone, Eq, PartialEq)] pub struct MacroExpansionParseError { - pub node: InFile<SyntaxNodePtr>, - pub precise_location: Option<TextRange>, + pub range: InFile<TextRange>, pub errors: Arc<[SyntaxError]>, } @@ -213,12 +210,12 @@ pub struct UnimplementedBuiltinMacro { #[derive(Debug)] pub struct InvalidDeriveTarget { - pub node: InFile<SyntaxNodePtr>, + pub range: InFile<TextRange>, } #[derive(Debug)] pub struct MalformedDerive { - pub node: InFile<SyntaxNodePtr>, + pub range: InFile<TextRange>, } #[derive(Debug)] |