diff options
Diffstat (limited to 'crates/hir_def/src/nameres')
-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#" |