Skip to content

Commit 2d19606

Browse files
committedJan 9, 2022
Release notes: add Result::unwrap_{,err_}unchecked
They were stabilized together with `Option::unwrap_unchecked` in #81383. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent f7bb8e3 commit 2d19606

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎RELEASES.md

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Stabilized APIs
4141
- [`Path::is_symlink`]
4242
- [`{integer}::saturating_div`]
4343
- [`Option::unwrap_unchecked`]
44+
- [`Result::unwrap_unchecked`]
45+
- [`Result::unwrap_err_unchecked`]
4446
- [`NonZero{unsigned}::is_power_of_two`]
4547

4648
These APIs are now usable in const contexts:
@@ -136,6 +138,8 @@ and related tools.
136138
[`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
137139
[`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
138140
[`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
141+
[`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
142+
[`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
139143
[`NonZero{unsigned}::is_power_of_two`]: https://doc.rust-lang.org/stable/std/num/struct.NonZeroU8.html#method.is_power_of_two
140144
[`unix::process::ExitStatusExt::core_dumped`]: https://doc.rust-lang.org/stable/std/os/unix/process/trait.ExitStatusExt.html#tymethod.core_dumped
141145
[`unix::process::ExitStatusExt::stopped_signal`]: https://doc.rust-lang.org/stable/std/os/unix/process/trait.ExitStatusExt.html#tymethod.stopped_signal

0 commit comments

Comments
 (0)