1
Fork 0

Fix 'FIXME' about using NonZeroU32 instead of u32.

It was blocked by #58732 (const fn NonZeroU32::new), which is fixed now.
This commit is contained in:
Mara Bos 2020-09-17 21:11:22 +02:00
parent 7bdb5dee7b
commit 84ef603c84
4 changed files with 18 additions and 17 deletions

View file

@ -1,6 +1,6 @@
//! List of the accepted feature gates.
use super::{Feature, State};
use super::{to_nonzero, Feature, State};
use rustc_span::symbol::sym;
macro_rules! declare_features {
@ -14,7 +14,7 @@ macro_rules! declare_features {
state: State::Accepted,
name: sym::$feature,
since: $ver,
issue: $issue,
issue: to_nonzero($issue),
edition: None,
description: concat!($($doc,)*),
}