Skip to content

Implement range support in //@ edition - #146166

Merged
bors merged 2 commits into
rust-lang:masterfrom
ferrocene:pvdrz/edition-range
Oct 3, 2025
Merged

Implement range support in //@ edition#146166
bors merged 2 commits into
rust-lang:masterfrom
ferrocene:pvdrz/edition-range

Conversation

@pvdrz

@pvdrzpvdrz commented Sep 3, 2025

Copy link
Copy Markdown
Contributor

First step to solve #145364

@rustbotrustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Sep 3, 2025
@rust-log-analyzer

This comment has been minimized.

@pvdrz
pvdrzforce-pushed the pvdrz/edition-range branch from a19047a to 714f2caCompareSeptember 3, 2025 16:48
@fmease

Copy link
Copy Markdown
Member

r? fmease

@pvdrz
pvdrz marked this pull request as ready for review September 3, 2025 19:07
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 3, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@jieyouxujieyouxu self-assigned this Sep 3, 2025

@jieyouxujieyouxu 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.

Initial pass. I still need to think about the implication of this a bit.

View changes since this review

Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
@pvdrz

pvdrz commented Sep 5, 2025

Copy link
Copy Markdown
ContributorAuthor

@jieyouxu this is ready for another review I think 🎉

@pvdrz
pvdrz requested a review from jieyouxuSeptember 16, 2025 16:42
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives.rs Outdated
Comment threadsrc/tools/compiletest/src/directives/tests.rs Outdated
Comment on lines +1867 to +1872
RangeFrom(Edition),
/// Half-open range: `[lower_bound, upper_bound)`
Range {
lower_bound: Edition,
upper_bound: Edition,
},

@fmeasefmeaseSep 17, 2025

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.

These could trivially be collapsed into Range { lower: Edition, upper: Option<Edition> } + using e.g., .map_or(true, inside edition_to_test but if you both find the current version more legible, I'm okay with it and won't block it.

@fmeasefmease 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 Sep 17, 2025
@pvdrz
pvdrz requested a review from fmeaseSeptember 17, 2025 17:03
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 17, 2025
Comment threadsrc/tools/compiletest/src/directives.rs Outdated

@fmeasefmease 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.

Thanks!

Once https://github.com/rust-lang/rust/pull/146166/files#r2356501671 is addressed (unless it's too painful), this looks good to go to me :)

Ofc, I'll be waiting for Jieyou Xu's final ACK. Then r=fmease,jieyouxu (maybe after squash, idc)

View changes since this review

@fmeasefmease 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 Sep 18, 2025
@jieyouxujieyouxu added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 18, 2025
@pvdrz
pvdrzforce-pushed the pvdrz/edition-range branch from 3dcbda0 to 6631c8eCompareOctober 2, 2025 16:13
@rustbot

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master 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.

@pvdrz
pvdrz requested a review from fmeaseOctober 2, 2025 16:18
@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 2, 2025
@fmease

Copy link
Copy Markdown
Member

@bors r=fmease,jieyouxu

@bors

bors commented Oct 2, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 6631c8e has been approved by fmease,jieyouxu

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 2, 2025
@bors

bors commented Oct 2, 2025

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 6631c8e with merge 409b4ea...

bors added a commit that referenced this pull request Oct 2, 2025
Implement range support in `//@ edition`
First step to solve #145364
@bors

bors commented Oct 2, 2025

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 2, 2025
@fmease

fmease commented Oct 2, 2025

Copy link
Copy Markdown
Member

Looking at the rich GHA logs of the failed job auto dist-x86_64-msvc-alt,

I see an abrupt end at line 10655 simply containing Compiling rustc-main v0.0.0 (D:\a\rust\rust\compiler\rustc), I can't scroll further down; when I scroll back up, I can only go till line 9661; nothing suspicious except some C++ compiler warnings.

I tried to view the raw logs but that failed with Failed to generate URL to download logs.; I tried to download log archive but the download failed after several MBs transmitted.

This gotta be spurious!

@bors retry

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 2, 2025
@ZalatharZalathar mentioned this pull request Oct 2, 2025
bors added a commit that referenced this pull request Oct 3, 2025
Rollup of 6 pull requests
Successful merges:
- #141839 (make rust-analyzer use a dedicated build directory)
- #146166 (Implement range support in `//@ edition`)
- #147259 (cg_llvm: Use helper methods for all calls to `LLVMMDNodeInContext2`)
- #147263 (Disable triagebot auto stable-regression compiler backport nominations pending redesign)
- #147268 (add arm-maintainers to various targets)
- #147270 (Move doc_cfg-specific code into `cfg.rs`)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 6fe05b5 into rust-lang:masterOct 3, 2025
10 of 11 checks passed
@rustbotrustbot added this to the 1.92.0 milestone Oct 3, 2025
rust-timer added a commit that referenced this pull request Oct 3, 2025
Rollup merge of #146166 - ferrocene:pvdrz/edition-range, r=fmease,jieyouxu
Implement range support in `//@ edition`
First step to solve #145364
@Zalathar

Copy link
Copy Markdown
Member

Bors hasn't noticed that this was merged.

@bors r-

@borsbors 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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 3, 2025
github-actionsBot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Oct 6, 2025
Rollup of 6 pull requests
Successful merges:
- rust-lang/rust#141839 (make rust-analyzer use a dedicated build directory)
- rust-lang/rust#146166 (Implement range support in `//@ edition`)
- rust-lang/rust#147259 (cg_llvm: Use helper methods for all calls to `LLVMMDNodeInContext2`)
- rust-lang/rust#147263 (Disable triagebot auto stable-regression compiler backport nominations pending redesign)
- rust-lang/rust#147268 (add arm-maintainers to various targets)
- rust-lang/rust#147270 (Move doc_cfg-specific code into `cfg.rs`)
r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletestArea: The compiletest test runnerA-rustc-dev-guideArea: rustc-dev-guideA-testsuiteArea: The testsuite used to check the correctness of rustcS-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@pvdrz@rust-log-analyzer@fmease@rustbot@bors@Zalathar@jieyouxu@emilyalbini