Skip to content

Commit 6b3c695

Browse files
committed
Add generic_nonzero to feature list.
1 parent 26719f0 commit 6b3c695

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

compiler/rustc_feature/src/unstable.rs

+2
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ declare_features! (
483483
(incomplete, generic_const_exprs, "1.56.0", Some(76560)),
484484
/// Allows generic parameters and where-clauses on free & associated const items.
485485
(incomplete, generic_const_items, "1.73.0", Some(113521)),
486+
/// Allows usage of the generic `NonZero<T>` type.
487+
(unstable, generic_nonzero, "1.77.0", Some(120257)),
486488
/// Allows using `..=X` as a patterns in slices.
487489
(unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
488490
/// Allows `if let` guard in match arms.

compiler/rustc_span/src/symbol.rs

+1
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ symbols! {
845845
generic_associated_types_extended,
846846
generic_const_exprs,
847847
generic_const_items,
848+
generic_nonzero,
848849
generic_param_attrs,
849850
get_context,
850851
global_allocator,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ check-pass
2+
#![feature(generic_nonzero)]
3+
4+
use std::num::NonZero;
5+
6+
fn main() {}

0 commit comments

Comments
 (0)