diff options
author | Aleksey Kladov <[email protected]> | 2021-06-13 15:06:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-13 15:08:54 +0100 |
commit | fa9ed4e0ce633e51d1411951bf044719e6837457 (patch) | |
tree | 527881b07c885f01132c023426bc8592a4318fd3 /crates/hir_def | |
parent | 6d104de15aee6a24a442871c59528c39d410c161 (diff) |
internal: refactor unresolved macro call diagnostic
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/nameres/tests/diagnostics.rs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/crates/hir_def/src/nameres/tests/diagnostics.rs b/crates/hir_def/src/nameres/tests/diagnostics.rs index 7b0f42004..5a088b6e5 100644 --- a/crates/hir_def/src/nameres/tests/diagnostics.rs +++ b/crates/hir_def/src/nameres/tests/diagnostics.rs | |||
@@ -55,37 +55,6 @@ fn inactive_via_cfg_attr() { | |||
55 | } | 55 | } |
56 | 56 | ||
57 | #[test] | 57 | #[test] |
58 | fn unresolved_legacy_scope_macro() { | ||
59 | check_diagnostics( | ||
60 | r#" | ||
61 | //- /lib.rs | ||
62 | macro_rules! m { () => {} } | ||
63 | |||
64 | m!(); | ||
65 | m2!(); | ||
66 | //^^^^^^ UnresolvedMacroCall | ||
67 | "#, | ||
68 | ); | ||
69 | } | ||
70 | |||
71 | #[test] | ||
72 | fn unresolved_module_scope_macro() { | ||
73 | check_diagnostics( | ||
74 | r#" | ||
75 | //- /lib.rs | ||
76 | mod mac { | ||
77 | #[macro_export] | ||
78 | macro_rules! m { () => {} } | ||
79 | } | ||
80 | |||
81 | self::m!(); | ||
82 | self::m2!(); | ||
83 | //^^^^^^^^^^^^ UnresolvedMacroCall | ||
84 | "#, | ||
85 | ); | ||
86 | } | ||
87 | |||
88 | #[test] | ||
89 | fn builtin_macro_fails_expansion() { | 58 | fn builtin_macro_fails_expansion() { |
90 | check_diagnostics( | 59 | check_diagnostics( |
91 | r#" | 60 | r#" |