Uh oh!
There was an error while loading. Please reload this page.
Gate tests with the right edition - #147498
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
I'll nominate this for compiler team discussion re. "we accepted the MCP for the direction in theory, here's the actual shape of the implementation" for a quick vibecheck. If team is onboard, we'll coordinate to bump the priority of this PR w.r.t. merge conflict potential. |
Uh oh!
There was an error while loading. Please reload this page.
jieyouxu
commented
Oct 9, 2025
Discussed in today's compiler triage meeting #t-compiler/meetings > [weekly] 2025-10-09 @ 💬, no objections to current direction. I'll set aside sometime this weekend and/or next weekend to do a review pass. |
5a3a9a0 to
6e1b054Comparejieyouxu
commented
Oct 10, 2025
@bors try |
This comment has been minimized.
This comment has been minimized.
Gate tests with the right edition try-job: aarch64-gnu try-job: aarch64-apple try-job: x86_64-msvc-1 try-job: i686-msvc-1 try-job: x86_64-mingw-1 try-job: test-various try-job: armhf-gnu
This comment has been minimized.
This comment has been minimized.
💔 Test for 058257d failed: CI. Failed jobs:
|
fmease
commented
Oct 13, 2025
This comment has been minimized.
This comment has been minimized.
Gate tests with the right edition try-job: aarch64-gnu try-job: aarch64-apple try-job: x86_64-msvc-1 try-job: i686-msvc-1 try-job: x86_64-mingw-1 try-job: test-various try-job: armhf-gnu
bors
commented
Oct 19, 2025
☔ The latest upstream changes (presumably #147863) made this pull request unmergeable. Please resolve the merge conflicts. |
6e1b054 to
c6339eaCompare
This comment has been minimized.
This comment has been minimized.
bfcce5f to
7ae2823CompareThere was a problem hiding this comment.
I have one question I'd like to see answered I guess (namely #147498 (comment)), otherwise LGTM. I'm so sorry for the long wait!
| --> $DIR/resolve-conflict-extern-crate-vs-extern-crate.rs:2:1 | ||
| | | ||
| LL | extern crate std; | ||
| | ^^^^^^^^^^^^^^^^^ `std` reimported here |
There was a problem hiding this comment.
I'm very confused; why did the diagnostic emitter deem this span available now but not before? You only offset the crate declaration... seems fishy unless I'm missing something.
There was a problem hiding this comment.
That's fishy indeed, if I move the edition annotation to the end of the file, this addition disappears.
Uh oh!
There was an error while loading. Please reload this page.
fmease
commented
Nov 27, 2025
@bors r=jieyouxu,fmease |
bors
commented
Nov 27, 2025
bors
commented
Nov 27, 2025
bors
commented
Nov 28, 2025
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing c86564c (parent) -> e6edf3a (this PR) Test differencesShow 33 test diffsStage 1
Stage 2
Additionally, 4 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard e6edf3ae535d28b8331d5718d6e658e340af6f60 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
rust-timer
commented
Nov 28, 2025
Finished benchmarking commit (e6edf3a): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResults (primary 2.1%, secondary 1.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 474.675s -> 472.955s (-0.36%) |
Why is edition 2024 not handled? i.e. why all the ranges use
@pvdrz I don't think this is true, as per rustc dev guide:
|
Because this is only one in a series of PRs (cc tracking issue: #145364). I'm sure this could be handled differently but this is all mostly mechanical (for now).
Note that you're replying to the person who implemented this syntax, the docs are just wrong (sorry about that, I'll fix that ASAP). |
fmease
commented
Dec 2, 2025
For posterity, I did "argue" for I guess the rationale for |
WaffleLapkin
commented
Dec 2, 2025
I think having |
pvdrz
commented
Dec 2, 2025
@WaffleLapkin thanks for the catch on the dev guide. It totally slipped through my head, but yes, the edition range is non-inclusive. |
This PR guarantees that
./x test --test-args="--edition XXXX" uiruns correctly with the 2015, 2018 and 2021 editions.I don't expect this PR to hold up over time but it helps to submit further updates to the
//@ editiondirectives of tests where we can use the new range syntax to have a more robust testing across different editionsr? @fmease
try-job: aarch64-gnu
try-job: aarch64-apple
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: test-various
try-job: armhf-gnu