From fa9ed4e0ce633e51d1411951bf044719e6837457 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 13 Jun 2021 17:06:36 +0300 Subject: internal: refactor unresolved macro call diagnostic --- crates/hir_def/src/nameres/tests/diagnostics.rs | 31 ------------------------- 1 file changed, 31 deletions(-) (limited to 'crates/hir_def') 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 @@ -54,37 +54,6 @@ fn inactive_via_cfg_attr() { ); } -#[test] -fn unresolved_legacy_scope_macro() { - check_diagnostics( - r#" - //- /lib.rs - macro_rules! m { () => {} } - - m!(); - m2!(); - //^^^^^^ UnresolvedMacroCall - "#, - ); -} - -#[test] -fn unresolved_module_scope_macro() { - check_diagnostics( - r#" - //- /lib.rs - mod mac { - #[macro_export] - macro_rules! m { () => {} } - } - - self::m!(); - self::m2!(); - //^^^^^^^^^^^^ UnresolvedMacroCall - "#, - ); -} - #[test] fn builtin_macro_fails_expansion() { check_diagnostics( -- cgit v1.2.3