We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ee9241 commit 720c430Copy full SHA for 720c430
library/std/src/sys/windows/args.rs
@@ -22,6 +22,9 @@ use crate::vec;
22
use core::iter;
23
24
/// This is the const equivalent to `NonZeroU16::new(n).unwrap()`
25
+///
26
+/// FIXME: This can be removed once `Option::unwrap` is stably const.
27
+/// See the `const_option` feature (#67441).
28
const fn non_zero_u16(n: u16) -> NonZeroU16 {
29
match NonZeroU16::new(n) {
30
Some(n) => n,
0 commit comments