semicolon_in_expressions_from_macros: Lint on non-local macros too#159222
semicolon_in_expressions_from_macros: Lint on non-local macros too#159222joshtriplett wants to merge 2 commits into
Conversation
The `semicolon_in_expressions_from_macros` lint previously suppressed warnings about non-local macros. This masks a lint that will subsequently become a hard error. Stop suppressing it, dropping the `is_local` flag and check. Fix the test for this case to now expect the error. Drop a separate test that depended on the lack of error (and that specifically notes it should be dropped once the lint becomes a hard error).
|
rustbot has assigned @hanna-kruppe. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@bors r+ |
|
Probably deserves to be on the releases notes. @rustbot label +relnotes |
This comment has been minimized.
This comment has been minimized.
semicolon_in_expressions_from_macros: Lint on non-local macros too The `semicolon_in_expressions_from_macros` lint previously suppressed warnings about non-local macros. This masks a lint that will subsequently become a hard error. Stop suppressing it, dropping the `is_local` flag and check. Fix the test for this case to now expect the error. Drop a separate test that depended on the lack of error (and that specifically notes it should be dropped once the lint becomes a hard error).
…uwer Rollup of 13 pull requests Successful merges: - #159039 (resolve: fix effective visibilities for items in ambiguous glob sets) - #157706 (Deny `todo!()` in tidy) - #156712 (Pointer authentication config and user facing options) - #158535 (Support `#[track_caller]` on EII declarations) - #158632 (First steps of late-bound turbofishing (place FnDef behind a dummy binder)) - #159002 (Small refactorings in `need_type_info` module) - #159202 (Bump rustc-demangle to 0.1.28) - #159216 (Avoid using probe self_ty for delegation arguments) - #159222 (semicolon_in_expressions_from_macros: Lint on non-local macros too) - #156609 (Consider structurally impossible Sized predicates in MIR) - #158854 (Add `#[rustc_test_entrypoint_marker]`) - #158998 (Some minor ast validation and visiting cleanups) - #159123 (doc: clarify attr parser APIs)
semicolon_in_expressions_from_macros: Lint on non-local macros too The `semicolon_in_expressions_from_macros` lint previously suppressed warnings about non-local macros. This masks a lint that will subsequently become a hard error. Stop suppressing it, dropping the `is_local` flag and check. Fix the test for this case to now expect the error. Drop a separate test that depended on the lack of error (and that specifically notes it should be dropped once the lint becomes a hard error).
…uwer Rollup of 14 pull requests Successful merges: - #159039 (resolve: fix effective visibilities for items in ambiguous glob sets) - #157706 (Deny `todo!()` in tidy) - #158535 (Support `#[track_caller]` on EII declarations) - #158632 (First steps of late-bound turbofishing (place FnDef behind a dummy binder)) - #158846 (Fix unused variable warnings for diverging expressions) - #159002 (Small refactorings in `need_type_info` module) - #159202 (Bump rustc-demangle to 0.1.28) - #159216 (Avoid using probe self_ty for delegation arguments) - #159222 (semicolon_in_expressions_from_macros: Lint on non-local macros too) - #156609 (Consider structurally impossible Sized predicates in MIR) - #157993 (Expose more info about ADTs and functions in rustc_public) - #158854 (Add `#[rustc_test_entrypoint_marker]`) - #158998 (Some minor ast validation and visiting cleanups) - #159123 (doc: clarify attr parser APIs)
|
💔 I suspect this PR failed tests as part of a rollup After fixing the problem, consider running a try job for the failed job before re-approving. |
|
This pull request was unapproved. This PR was contained in a rollup (#159236), which was unapproved. |
|
I wasn't expecting this to get r+ed and get pulled into rollups before it passed CI. I'll work on fixing the failures. |
The macro is used in expressions, but the arm for eliminating a trailing comma introduces a semicolon.
|
Some changes occurred in cc @Amanieu, @folkertdev, @sayantn |
|
@bors try |
This comment has been minimized.
This comment has been minimized.
semicolon_in_expressions_from_macros: Lint on non-local macros too
|
The default try runs a mostly normal x86_64-linux build so it's probably not super useful. I'd suggest dist-various-*; you can see a sample in the failing rollup (e.g., |
|
@bors try jobs=dist-various-1,test-various,x86_64-gnu-aux,x86_64-gnu-llvm-21-3,x86_64-msvc-1,aarch64-apple,x86_64-mingw-1,i686-msvc-* |
This comment has been minimized.
This comment has been minimized.
semicolon_in_expressions_from_macros: Lint on non-local macros too try-job: dist-various-1 try-job: test-various try-job: x86_64-gnu-aux try-job: x86_64-gnu-llvm-21-3 try-job: x86_64-msvc-1 try-job: aarch64-apple try-job: x86_64-mingw-1 try-job: i686-msvc-*
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for 6ade460 failed: CI. Failed job:
|
|
Looks potentially spurious. @bors try jobs=test-various |
This comment has been minimized.
This comment has been minimized.
semicolon_in_expressions_from_macros: Lint on non-local macros too try-job: test-various
|
@rustbot ready |
|
@bors r+ |
View all comments
The
semicolon_in_expressions_from_macroslint previously suppressedwarnings about non-local macros. This masks a lint that will
subsequently become a hard error.
Stop suppressing it, dropping the
is_localflag and check.Fix the test for this case to now expect the error. Drop a separate test
that depended on the lack of error (and that specifically notes it
should be dropped once the lint becomes a hard error).