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:
parent
7bdb5dee7b
commit
84ef603c84
4 changed files with 18 additions and 17 deletions
|
@ -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,)*),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue