Stabilize std::hint::unreachable_unchecked.#49906
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
r? @sfackler |
|
Maybe the docs should point out that undefined behaviour can occur if runtime could reach the point that was marked It's a nuance in wording, yet people have been banging their heads with "catching" code reaching |
|
It's certainly worth reminding people of that since it's often not untuitive, but I want to be clear that this is not specific to |
ab012e9 to
5fe8c59
Compare
|
Ping from triage @sfackler! This PR needs your review! |
|
@bors r+ |
|
📌 Commit 5fe8c59 has been approved by |
|
@bors: rollup |
Stabilize `std::hint::unreachable_unchecked`. Closes rust-lang#43751.
Rollup of 11 pull requests Successful merges: - #49461 (std: Child::kill() returns error if process has already exited) - #49727 (Add Cell::update) - #49812 (Fix revision support for UI tests.) - #49829 (Add doc links to `std::os` extension traits) - #49906 (Stabilize `std::hint::unreachable_unchecked`.) - #49970 (Deprecate Read::chars and char::decode_utf8) - #49985 (don't see issue #0) - #50118 (fix search bar bug) - #50139 (encourage descriptive issue titles) - #50174 (Use FxHashMap in syntax_pos::symbol::Interner::intern.) - #50185 (core: Fix overflow in `int::mod_euc` when `self < 0 && rhs == MIN`) Failed merges:
Closes #43751.