aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-13 15:06:36 +0100
committerAleksey Kladov <[email protected]>2021-06-13 15:08:54 +0100
commitfa9ed4e0ce633e51d1411951bf044719e6837457 (patch)
tree527881b07c885f01132c023426bc8592a4318fd3 /crates/hir_def
parent6d104de15aee6a24a442871c59528c39d410c161 (diff)
internal: refactor unresolved macro call diagnostic
Diffstat (limited to 'crates/hir_def')
-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#"