-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Conversation
r? @Noratrieb rustbot has assigned @Noratrieb. Use |
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. |
"Needed" in which sense? I think it makes sense to have the unwrap functions all together.
|
@Noratrieb this should be a pretty trivial one to review. :) |
reviewing it is certainly more trivial than keeping track of my review queue oops |
…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
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. |
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
That's where
unwrap
andexpect
are so IMO it makes more sense to group them together.Part of #91930, #67441