diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-07 20:49:43 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 20:49:43 +1000 |
| commit | 238e3bf9e9f895abd59b7ca0e531302cc5efd55a (patch) | |
| tree | fc06b5aa8b25f9e2df8475217a71c782013d4610 /tests/ui/macros/lint-trailing-macro-call.rs | |
| parent | 65114d6f81a3073c808db332c2bd4b73e7cbff8f (diff) | |
| parent | 288a5654514938b973a75e0e1de64ee702170661 (diff) | |
| download | rust-238e3bf9e9f895abd59b7ca0e531302cc5efd55a.tar.gz rust-238e3bf9e9f895abd59b7ca0e531302cc5efd55a.zip | |
Rollup merge of #144369 - joshtriplett:mbe-expr-semi-deny-by-default, r=petrochenkov
Upgrade semicolon_in_expressions_from_macros from warn to deny This is already warn-by-default, and a future compatibility warning (FCW) that warns in dependencies. Upgrade it to deny-by-default, as the next step towards hard error. Per https://github.com/rust-lang/rust/issues/79813#issuecomment-3109105631
Diffstat (limited to 'tests/ui/macros/lint-trailing-macro-call.rs')
| -rw-r--r-- | tests/ui/macros/lint-trailing-macro-call.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/macros/lint-trailing-macro-call.rs b/tests/ui/macros/lint-trailing-macro-call.rs index 78b861f1df1..25fa91062c4 100644 --- a/tests/ui/macros/lint-trailing-macro-call.rs +++ b/tests/ui/macros/lint-trailing-macro-call.rs @@ -1,12 +1,10 @@ -//@ check-pass -// // Ensures that we properly lint // a removed 'expression' resulting from a macro // in trailing expression position macro_rules! expand_it { () => { - #[cfg(false)] 25; //~ WARN trailing semicolon in macro + #[cfg(false)] 25; //~ ERROR trailing semicolon in macro //~| WARN this was previously } } |
