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:
@@ -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,)*),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user