Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move Option::unwrap_unchecked into const_option feature gate #130118

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Sep 8, 2024

That's where unwrap and expect are so IMO it makes more sense to group them together.

Part of #91930, #67441

@rustbot
Copy link
Collaborator

rustbot commented Sep 8, 2024

r? @Noratrieb

rustbot has assigned @Noratrieb.
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-libs Relevant to the library team, which will review and decide on the PR/issue. labels Sep 8, 2024
@GKFX
Copy link
Contributor

GKFX commented Sep 14, 2024

With partial stabilization of both features imminent (both features blocked in part on #129195) is this needed? Seems likely to be moved around again soon anyway.

@RalfJung
Copy link
Member Author

RalfJung commented Sep 14, 2024 via email

@RalfJung
Copy link
Member Author

@Noratrieb this should be a pretty trivial one to review. :)

@Noratrieb
Copy link
Member

reviewing it is certainly more trivial than keeping track of my review queue oops
@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 15, 2024

📌 Commit 7ec01e4 has been approved by Noratrieb

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 15, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 15, 2024
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#129195 (Stabilize `&mut` (and `*mut`) as well as `&Cell` (and `*const Cell`) in const)
 - rust-lang#130118 (move Option::unwrap_unchecked into const_option feature gate)
 - rust-lang#130295 (Fix target-cpu fpu features on Armv8-R.)
 - rust-lang#130371 (Correctly account for niche-optimized tags in rustc_transmute)
 - rust-lang#130381 (library: Compute Rust exception class from its string repr)

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

GKFX commented Sep 15, 2024

I just meant that if const_option gets stabilized without the unwrap methods, then this will have to move again so there didn't seem much point in moving it now. No harm in moving it though.

@RalfJung
Copy link
Member Author

My current plan is to propose #67441 for stabilization once FCP starts in #83164. I want unwrap_unchecked to be part of that, hence the proposed move.

@bors bors merged commit e267534 into rust-lang:master Sep 15, 2024
6 checks passed
@rustbot rustbot added this to the 1.83.0 milestone Sep 15, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 15, 2024
Rollup merge of rust-lang#130118 - RalfJung:unwrap_unchecked, r=Noratrieb

move Option::unwrap_unchecked into const_option feature gate

That's where `unwrap` and `expect` are so IMO it makes more sense to group them together.

Part of rust-lang#91930, rust-lang#67441
@RalfJung RalfJung deleted the unwrap_unchecked branch September 15, 2024 14:17
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-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.

5 participants