Skip to content

Use edition ranges in tests/ui (Batch 1)#151464

Open
pvdrz wants to merge 6 commits into
rust-lang:mainfrom
ferrocene:pvdrz/edition-range-batch-1
Open

Use edition ranges in tests/ui (Batch 1)#151464
pvdrz wants to merge 6 commits into
rust-lang:mainfrom
ferrocene:pvdrz/edition-range-batch-1

Conversation

@pvdrz

@pvdrz pvdrz commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

r? @fmease

pvdrz and others added 6 commits January 21, 2026 11:09
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Ana Hobden <ana.hobden@ferrous-systems.com>
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 21, 2026
@rustbot

rustbot commented Jan 21, 2026

Copy link
Copy Markdown
Collaborator

fmease is not on the review rotation at the moment.
They may take a while to respond.

@pvdrz

pvdrz commented Jan 21, 2026

Copy link
Copy Markdown
Contributor Author

I'm trying to do this in smaller batches for ease of review and to diminish the chance of the PR becoming stale

@fmease fmease left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've only reviewed the 1st commit so far but I'll post the review comments I wrote a few days ago. I hope to get to the other commits / finish my review in the next days, they look much smaller anyway.

View changes since this review

Comment on lines +2 to +3
//@[edition2015]edition:2015
//@[edition2018]edition:2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stderr files for edition2015 and edition2018 are identical as far as I can tell, for which reason did you split them instead of keeping them combined as 2015..2021?

//@ revisions: edition2015 edition2018 edition2021
//@[edition2015]edition:2015
//@[edition2018]edition:2018
//@[edition2021]edition:2021..

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, 2021.. isn't "edition2021". I think I'd prefer a different name for that revision, edition2021up or edition2021onwards, idk.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it quite unfortunate and a bit unreasonable that we have to basically duplicate a huge stderr file for a single label change (unexpected argument #2unexpected argument #2 of type `!`). Hmm, however splitting out that test cases probably doesn't make sense either due to the large test setup. I don't know what's the call here..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rust-lang/compiler-team#861 was a long discussion and my memory is fuzzy, at a cursory read I can't pinpoint where it was agreed to duplicate stderr files

@rust-bors

rust-bors Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #152785) made this pull request unmergeable. Please resolve the merge conflicts.

@apiraino

apiraino commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

For context, I think this PR implements the proposal in rust-lang/compiler-team#861

(am I correct @pvdrz?)

@apiraino

apiraino commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Given the last comment, it seems that are open questions. Switching to waiting on author to incorporate changes. Feel free to request a review with @rustbot ready, thanks!

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 2, 2026
@rustbot

rustbot commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants