diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-14 17:46:25 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-14 17:46:25 +0100 |
commit | 38ae18b7592f97a7058d97928307bccbd881a582 (patch) | |
tree | 5f6f59f48f05999495654bf2e4250e029e6f010f /crates/ide/src/diagnostics/unimplemented_builtin_macro.rs | |
parent | 401d79ac0674ec62689949c3a531836420cb9beb (diff) | |
parent | 4768e5fb23c058eba90f0a1dcd6e9d5c0ecdee1b (diff) |
Merge #9272
9272: internal: move diagnostics to a dedicated crate r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/diagnostics/unimplemented_builtin_macro.rs')
-rw-r--r-- | crates/ide/src/diagnostics/unimplemented_builtin_macro.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crates/ide/src/diagnostics/unimplemented_builtin_macro.rs b/crates/ide/src/diagnostics/unimplemented_builtin_macro.rs deleted file mode 100644 index 09faa3bbc..000000000 --- a/crates/ide/src/diagnostics/unimplemented_builtin_macro.rs +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | use crate::{ | ||
2 | diagnostics::{Diagnostic, DiagnosticsContext}, | ||
3 | Severity, | ||
4 | }; | ||
5 | |||
6 | // Diagnostic: unimplemented-builtin-macro | ||
7 | // | ||
8 | // This diagnostic is shown for builtin macros which are not yet implemented by rust-analyzer | ||
9 | pub(super) fn unimplemented_builtin_macro( | ||
10 | ctx: &DiagnosticsContext<'_>, | ||
11 | d: &hir::UnimplementedBuiltinMacro, | ||
12 | ) -> Diagnostic { | ||
13 | Diagnostic::new( | ||
14 | "unimplemented-builtin-macro", | ||
15 | "unimplemented built-in macro".to_string(), | ||
16 | ctx.sema.diagnostics_display_range(d.node.clone()).range, | ||
17 | ) | ||
18 | .severity(Severity::WeakWarning) | ||
19 | } | ||