Rollup merge of #76851 - fusion-engineering-forks:fixme-nonzero, r=petrochenkov

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:
Yuki Okushi
2020-10-02 08:25:10 +09:00
committed by GitHub
4 changed files with 20 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,)*),
}