aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/nameres
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/nameres')
-rw-r--r--crates/hir_def/src/nameres/tests/diagnostics.rs31
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]
58fn 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]
72fn 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]
89fn builtin_macro_fails_expansion() { 58fn builtin_macro_fails_expansion() {
90 check_diagnostics( 59 check_diagnostics(
91 r#" 60 r#"