You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #127377 - cuviper:beta-next, r=cuviper
[beta] backports
- Properly gate `safe` keyword in pre-expansion #126757
- Switch back `non_local_definitions` lint to allow-by-default #127015
- Stall computing instance for drop shim until it has no unsubstituted const params #127068
- Update LLVM submodule #127190
- Change to the NetBSD archive URL rather than the CDN #127232
r? cuviper
warning: non-local `macro_rules!` definition, `#[macro_export]` macro should be written at top level module
2
-
--> $DIR/non_local_defs.rs:9:1
2
+
--> $DIR/non_local_defs.rs:11:1
3
3
|
4
4
LL | macro_rules! a_macro { () => {} }
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= help: remove the `#[macro_export]` or make this doc-test a standalone test with its own `fn main() { ... }`
8
8
= note: a `macro_rules!` definition is non-local if it is nested inside an item and has a `#[macro_export]` attribute
9
9
= note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <https://github.com/rust-lang/rust/issues/120363>
10
-
= note: `#[warn(non_local_definitions)]` on by default
0 commit comments