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 active feature gates.
use super::{Feature, State};
use super::{to_nonzero, Feature, State};
use rustc_span::edition::Edition;
use rustc_span::symbol::{sym, Symbol};
@ -29,7 +29,7 @@ macro_rules! declare_features {
state: State::Active { set: set!($feature) },
name: sym::$feature,
since: $ver,
issue: $issue,
issue: to_nonzero($issue),
edition: $edition,
description: concat!($($doc,)*),
}