Add a fixme comment

This commit is contained in:
Chris Denton 2022-06-28 12:18:16 +01:00
parent 2ee92419dd
commit 720c430822
No known key found for this signature in database
GPG key ID: 713472F2F45627DE

View file

@ -22,6 +22,9 @@ use crate::vec;
use core::iter;
/// This is the const equivalent to `NonZeroU16::new(n).unwrap()`
///
/// FIXME: This can be removed once `Option::unwrap` is stably const.
/// See the `const_option` feature (#67441).
const fn non_zero_u16(n: u16) -> NonZeroU16 {
match NonZeroU16::new(n) {
Some(n) => n,