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_defs/src/lib.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_defs/src/lib.rs')
| -rw-r--r-- | compiler/rustc_lint_defs/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_lint_defs/src/lib.rs b/compiler/rustc_lint_defs/src/lib.rs index f33aadfbbc8..b44eb252167 100644 --- a/compiler/rustc_lint_defs/src/lib.rs +++ b/compiler/rustc_lint_defs/src/lib.rs @@ -744,6 +744,9 @@ pub enum BuiltinLintDiag { InnerAttributeUnstable { is_macro: bool, }, + OutOfScopeMacroCalls { + path: String, + }, } /// Lints that are buffered up early on in the `Session` before the |
