From c4c7859e40efcfff640af442fb5d1fab3718d374 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Tue, 18 Jun 2024 16:45:50 +0300 Subject: resolve: Implement a lint for out-of-scope use of `macro_rules` --- compiler/rustc_lint/src/context/diagnostics.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/rustc_lint/src/context/diagnostics.rs') diff --git a/compiler/rustc_lint/src/context/diagnostics.rs b/compiler/rustc_lint/src/context/diagnostics.rs index adb2a3275c0..05e075205c4 100644 --- a/compiler/rustc_lint/src/context/diagnostics.rs +++ b/compiler/rustc_lint/src/context/diagnostics.rs @@ -434,5 +434,8 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: & lints::InnerAttributeUnstable::CustomInnerAttribute } .decorate_lint(diag), + BuiltinLintDiag::OutOfScopeMacroCalls { path } => { + lints::OutOfScopeMacroCalls { path }.decorate_lint(diag) + } } } -- cgit 1.4.1-3-g733a5