diff options
| author | bors <bors@rust-lang.org> | 2024-06-25 11:48:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-06-25 11:48:14 +0000 |
| commit | d929a42a664c026167800801b26d734db925314f (patch) | |
| tree | dae15371b64ab6508b1c66658359675e01bb00f5 /compiler/rustc_lint/src/context/diagnostics.rs | |
| parent | c2d2bb38c9067d983d13505c47e761308b1694db (diff) | |
| parent | c4c7859e40efcfff640af442fb5d1fab3718d374 (diff) | |
| download | rust-d929a42a664c026167800801b26d734db925314f.tar.gz rust-d929a42a664c026167800801b26d734db925314f.zip | |
Auto merge of #125741 - petrochenkov:atvisord, r=davidtwco
ast: Standardize visiting order for attributes and node IDs This should only affect `macro_rules` scopes and order of diagnostics. Also add a deprecation lint for `macro_rules` called outside of their scope, like in https://github.com/rust-lang/rust/issues/124535.
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_lint/src/context/diagnostics.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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) + } } } |
