Uh oh!
There was an error while loading. Please reload this page.
Fix unstable diagnostics in tests - #157299
Conversation
rustbot
commented
Jun 2, 2026
Some changes occurred in src/tools/compiletest cc @jieyouxu |
rustbot
commented
Jun 2, 2026
r? @nnethercote rustbot has assigned @nnethercote. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dd70bf6 to
5dae13bComparerustbot
commented
Jun 8, 2026
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
zetanumbers
commented
Jun 8, 2026
@rustbot ready |
This comment has been minimized.
This comment has been minimized.
petrochenkov
commented
Jun 8, 2026
r=me after fixing CI and squashing commits. |
rustbot
commented
Jun 8, 2026
Reminder, once the PR becomes ready for a review, use |
zetanumbers
commented
Jun 8, 2026
@rustbot ready |
Inconsistency happens when subdiagnostic pads the main diagnostic with an empty source line (aka "|"). Meanwhile the parallel frontend might bunch subdiagnostics on a single primary diagnostic, removing padding from some other one. Revert "Update reproducibly failing tests when parallel frontend is enabled" This reverts commit f582193. Apply a test directive format suggested by a reviewer Bless thine tests
7b7d73a to
30451d6Comparepetrochenkov
commented
Jun 8, 2026
@bors r+ |
…cs-in-tests, r=petrochenkov Fix unstable diagnostics in tests The main inconsistency in changed tests happens when subdiagnostic pads the main diagnostic with an empty source line (aka "|"). Meanwhile the parallel frontend might bunch subdiagnostics on a single primary diagnostic, removing padding from some other one. So we can just ignore "|" lines. Updates rust-lang#154314 Reverts rust-lang#157103
…uwer Rollup of 13 pull requests Successful merges: - #147302 (asm! support for the Xtensa architecture) - #148820 (Add very basic "comptime" fn implementation) - #157299 (Fix unstable diagnostics in tests) - #143511 (Improve TLS codegen by marking the panic/init path as cold) - #154608 (Add `_value` API for number literals in proc-macro) - #156762 (xfs support in `test_rename_directory_to_non_empty_directory`) - #157300 (Relax test requirements for consistency) - #157383 (tests: codegen-llvm: Ignore BPF targets in c-variadic-opt) - #157413 (fix: don't suggest .into_iter() for .cloned()/.copied() on non-reference Option) - #157578 (Fix diagnostics for non-exhaustive destructuring assignments (#157553)) - #157587 (explain that the size_of constant also serves to avoid optimizing away 'unused' size_of calls) - #157596 (test: remove ineffective link-extern-crate-with-drop-type test) - #157602 (rustdoc: Remove unnecessary fast path)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #157299 - zetanumbers:fix-unstable-diagnostics-in-tests, r=petrochenkov Fix unstable diagnostics in tests The main inconsistency in changed tests happens when subdiagnostic pads the main diagnostic with an empty source line (aka "|"). Meanwhile the parallel frontend might bunch subdiagnostics on a single primary diagnostic, removing padding from some other one. So we can just ignore "|" lines. Updates #154314 Reverts #157103
…uwer Rollup of 13 pull requests Successful merges: - rust-lang/rust#147302 (asm! support for the Xtensa architecture) - rust-lang/rust#148820 (Add very basic "comptime" fn implementation) - rust-lang/rust#157299 (Fix unstable diagnostics in tests) - rust-lang/rust#143511 (Improve TLS codegen by marking the panic/init path as cold) - rust-lang/rust#154608 (Add `_value` API for number literals in proc-macro) - rust-lang/rust#156762 (xfs support in `test_rename_directory_to_non_empty_directory`) - rust-lang/rust#157300 (Relax test requirements for consistency) - rust-lang/rust#157383 (tests: codegen-llvm: Ignore BPF targets in c-variadic-opt) - rust-lang/rust#157413 (fix: don't suggest .into_iter() for .cloned()/.copied() on non-reference Option) - rust-lang/rust#157578 (Fix diagnostics for non-exhaustive destructuring assignments (rust-lang/rust#157553)) - rust-lang/rust#157587 (explain that the size_of constant also serves to avoid optimizing away 'unused' size_of calls) - rust-lang/rust#157596 (test: remove ineffective link-extern-crate-with-drop-type test) - rust-lang/rust#157602 (rustdoc: Remove unnecessary fast path)
The main inconsistency in changed tests happens when subdiagnostic pads the main diagnostic with an empty source line (aka "|"). Meanwhile the parallel frontend might bunch subdiagnostics on a single primary diagnostic, removing padding from some other one. So we can just ignore "|" lines.
Updates #154314
Reverts #157103