Skip to content

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Sep 3, 2025

First step to solve #145364

@rustbot rustbot 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 pvdrz force-pushed the pvdrz/edition-range branch from a19047a to 714f2ca Compare September 3, 2025 16:48
@fmease
Copy link
Member

fmease commented Sep 3, 2025

r? fmease

@pvdrz pvdrz marked this pull request as ready for review September 3, 2025 19:07
@rustbot rustbot 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
Collaborator

rustbot commented Sep 3, 2025

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@jieyouxu jieyouxu self-assigned this Sep 3, 2025
Copy link
Member

@jieyouxu jieyouxu left a comment

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

@pvdrz
Copy link
Contributor Author

pvdrz commented Sep 5, 2025

@jieyouxu this is ready for another review I think 🎉

@pvdrz pvdrz requested a review from jieyouxu September 16, 2025 16:42
Comment on lines +1867 to +1828
RangeFrom(Edition),
/// Half-open range: `[lower_bound, upper_bound)`
Range {
lower_bound: Edition,
upper_bound: Edition,
},
Copy link
Member

@fmease fmease Sep 17, 2025

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.

@fmease fmease 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 fmease September 17, 2025 17:03
@rustbot rustbot 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
Copy link
Member

@fmease fmease left a comment

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

@fmease fmease 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
@jieyouxu jieyouxu 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 pvdrz force-pushed the pvdrz/edition-range branch from 3dcbda0 to 6631c8e Compare October 2, 2025 16:13
@rustbot
Copy link
Collaborator

rustbot commented Oct 2, 2025

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 fmease October 2, 2025 16:18
@rustbot rustbot 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
Member

fmease commented Oct 2, 2025

@bors r=fmease,jieyouxu

@bors
Copy link
Collaborator

bors commented Oct 2, 2025

📌 Commit 6631c8e has been approved by fmease,jieyouxu

It is now in the queue for this repository.

@bors bors 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
Copy link
Collaborator

bors commented Oct 2, 2025

⌛ 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
Copy link
Collaborator

bors commented Oct 2, 2025

💔 Test failed - checks-actions

@bors bors 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
Copy link
Member

fmease commented Oct 2, 2025

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

@bors bors 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 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:master Oct 3, 2025
10 of 11 checks passed
@rustbot rustbot 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
Contributor

Zalathar commented Oct 3, 2025

Bors hasn't noticed that this was merged.

@bors r-

@bors bors 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-actions bot 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants