Skip to content

Conversation

Qelxiros
Copy link
Contributor

@Qelxiros Qelxiros commented Aug 1, 2025

Tracking issue: #125687
ACP: rust-lang/libs-team#511

@rustbot
Copy link
Collaborator

rustbot commented Aug 1, 2025

r? @thomcc

rustbot has assigned @thomcc.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 1, 2025
@rust-log-analyzer

This comment has been minimized.

@Qelxiros
Copy link
Contributor Author

Qelxiros commented Aug 1, 2025

The above error isn't fixed by changing end to last, since rustc is built with beta std. I'm not sure how to fix this, since I'm not super familiar with the bootstrapping process.

@tgross35
Copy link
Contributor

tgross35 commented Sep 3, 2025

Can you try a rebase to poke CI?

Thom is off rotation
r? libs

@rustbot rustbot assigned tgross35 and unassigned thomcc Sep 3, 2025
@tgross35
Copy link
Contributor

tgross35 commented Sep 3, 2025

Come on rustbot, you've given me the last 5 rerolls
r? @jhpratt

@rustbot rustbot assigned jhpratt and unassigned tgross35 Sep 3, 2025
@jhpratt
Copy link
Member

jhpratt commented Sep 3, 2025

pending the rebase to potentially get CI passing, @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 Sep 3, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 3, 2025

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

@Qelxiros Qelxiros force-pushed the range-inclusive-last branch from c4b07a1 to d54b294 Compare September 3, 2025 12:24
@rustbot
Copy link
Collaborator

rustbot commented Sep 3, 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.

@rust-log-analyzer

This comment has been minimized.

@Qelxiros
Copy link
Contributor Author

Qelxiros commented Sep 3, 2025

The rebase doesn't seem to have changed anything. Let me know what else I can do to try to fix this.

@rustbot ready

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

jhpratt commented Sep 4, 2025

Looks like there's a missed rename in compiler/rustc_index/src/idx.rs on line 134: https://github.com/rust-lang/rust/actions/runs/17433338416/job/49496772842?pr=144765#step:29:2015

There may be something else as well, but that's what's failing CI at the moment.

@Qelxiros Qelxiros force-pushed the range-inclusive-last branch from d54b294 to 78e8046 Compare September 4, 2025 01:09
@rust-log-analyzer

This comment has been minimized.

@Qelxiros
Copy link
Contributor Author

Qelxiros commented Sep 4, 2025

To clarify the issue, the original failure occurs in stage1 -> stage2, when the compiler is using the new version of std with last. The new failure occurs in stage0 -> stage1, when the compiler doesn't know about last yet and expects end instead.

@jhpratt
Copy link
Member

jhpratt commented Sep 4, 2025

Ah, I didn't look at when it occurred. You'll need #[cfg(bootstrap)] and #[cfg(not(bootstrap))] in that case.

@Qelxiros Qelxiros force-pushed the range-inclusive-last branch from 78e8046 to 03e8c39 Compare September 4, 2025 02:13
@rust-log-analyzer

This comment has been minimized.

@Qelxiros Qelxiros force-pushed the range-inclusive-last branch from c6ff167 to f2f85b7 Compare September 8, 2025 15:50
@rust-log-analyzer

This comment has been minimized.

@Qelxiros Qelxiros force-pushed the range-inclusive-last branch from f2f85b7 to da4b16a Compare September 9, 2025 01:37
@Qelxiros Qelxiros force-pushed the range-inclusive-last branch from da4b16a to 8d0c07f Compare September 9, 2025 02:08
@rustbot rustbot added the T-clippy Relevant to the Clippy team. label Sep 9, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 9, 2025

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@Qelxiros
Copy link
Contributor Author

Qelxiros commented Sep 9, 2025

Clippy context: I added sym::last to rustc, so it had to be removed from clippy.

@Qelxiros
Copy link
Contributor Author

Qelxiros commented Sep 9, 2025

@rustbot ready

@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 9, 2025
@jhpratt
Copy link
Member

jhpratt commented Sep 10, 2025

Nice work!

cc @rust-lang/lang for the new lang items. I'm not waiting for approval of that as it seems self-explanatory given the presence of lang items for other "new range" types.

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 10, 2025

📌 Commit 8d0c07f has been approved by jhpratt

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 Sep 10, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Sep 10, 2025
…hpratt

inclusive `Range`s: change `end` to `last`

Tracking issue: rust-lang#125687
ACP: rust-lang/libs-team#511
bors added a commit that referenced this pull request Sep 10, 2025
Rollup of 6 pull requests

Successful merges:

 - #144765 (inclusive `Range`s: change `end` to `last`)
 - #145177 (std: move `thread` into `sys`)
 - #146178 (Implement `#[rustc_align_static(N)]` on `static`s)
 - #146368 (CI: rfl: move job forward to Linux v6.17-rc5 to remove temporary commits)
 - #146378 (Update wasm-component-ld to 0.5.17)
 - #146391 (Trim paths less in MIR dumping)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Sep 10, 2025
Rollup of 5 pull requests

Successful merges:

 - #144765 (inclusive `Range`s: change `end` to `last`)
 - #146178 (Implement `#[rustc_align_static(N)]` on `static`s)
 - #146368 (CI: rfl: move job forward to Linux v6.17-rc5 to remove temporary commits)
 - #146378 (Update wasm-component-ld to 0.5.17)
 - #146391 (Trim paths less in MIR dumping)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit that referenced this pull request Sep 10, 2025
Rollup of 5 pull requests

Successful merges:

 - #144765 (inclusive `Range`s: change `end` to `last`)
 - #146178 (Implement `#[rustc_align_static(N)]` on `static`s)
 - #146368 (CI: rfl: move job forward to Linux v6.17-rc5 to remove temporary commits)
 - #146378 (Update wasm-component-ld to 0.5.17)
 - #146391 (Trim paths less in MIR dumping)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit d0ba5e3 into rust-lang:master Sep 10, 2025
10 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Sep 10, 2025
rust-timer added a commit that referenced this pull request Sep 10, 2025
Rollup merge of #144765 - Qelxiros:range-inclusive-last, r=jhpratt

inclusive `Range`s: change `end` to `last`

Tracking issue: #125687
ACP: rust-lang/libs-team#511
@scottmcm
Copy link
Member

cc @rust-lang/lang for the new lang items. I'm not waiting for approval of that as it seems self-explanatory given the presence of lang items for other "new range" types.

So long as it's just a lang-item for "the compiler needs to mention it" (rather than giving it special behaviour), then agreed no lang approval needed.

I assume here it's for expanding ..= to a struct literal of this type?

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Sep 11, 2025
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#144765 (inclusive `Range`s: change `end` to `last`)
 - rust-lang/rust#146178 (Implement `#[rustc_align_static(N)]` on `static`s)
 - rust-lang/rust#146368 (CI: rfl: move job forward to Linux v6.17-rc5 to remove temporary commits)
 - rust-lang/rust#146378 (Update wasm-component-ld to 0.5.17)
 - rust-lang/rust#146391 (Trim paths less in MIR dumping)

r? `@ghost`
`@rustbot` modify labels: rollup
@camsteffen
Copy link
Contributor

camsteffen commented Sep 11, 2025

start and last are not complementary field names. first and last would be. Maybe start and endInclusive would be best (Kotlin uses this).

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Sep 11, 2025
…hpratt

inclusive `Range`s: change `end` to `last`

Tracking issue: rust-lang#125687
ACP: rust-lang/libs-team#511
@Qelxiros Qelxiros deleted the range-inclusive-last branch September 14, 2025 21:02
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 18, 2025
…hpratt

inclusive `Range`s: change `end` to `last`

Tracking issue: rust-lang#125687
ACP: rust-lang/libs-team#511
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants