Skip to content

Commit 2a1ce93

Browse files
committed
rename feature gate
1 parent 4d08223 commit 2a1ce93

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_ast_passes/src/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session, features: &Features) {
505505
gate_all!(fn_delegation, "functions delegation is not yet fully implemented");
506506
gate_all!(postfix_match, "postfix match is experimental");
507507
gate_all!(mut_ref, "mutable by-reference bindings are experimental");
508-
gate_all!(global_registration, "global registration is experimental");
508+
gate_all!(crate_local_distributed_slice, "crate local distributed slice is experimental");
509509
gate_all!(return_type_notation, "return type notation is experimental");
510510
gate_all!(pin_ergonomics, "pinned reference syntax is experimental");
511511
gate_all!(unsafe_fields, "`unsafe` fields are experimental");

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ declare_features! (
526526
(incomplete, generic_const_parameter_types, "1.87.0", Some(137626)),
527527
/// Allows any generic constants being used as pattern type range ends
528528
(incomplete, generic_pattern_types, "1.86.0", Some(136574)),
529-
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
530-
(unstable, global_registration, "1.80.0", Some(125119)),
529+
/// Allows the creation of crate local distributed slices, slices where the elements can be added all throughout the crate
530+
(unstable, crate_local_distributed_slice, "CURRENT_RUSTC_VERSION", Some(125119)),
531531
/// Allows using guards in patterns.
532532
(incomplete, guard_patterns, "1.85.0", Some(129967)),
533533
/// Allows using `..=X` as a patterns in slices.

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ symbols! {
751751
cr,
752752
crate_in_paths,
753753
crate_local,
754+
crate_local_distributed_slice,
754755
crate_name,
755756
crate_type,
756757
crate_visibility_modifier,
@@ -1086,7 +1087,6 @@ symbols! {
10861087
global_alloc_ty,
10871088
global_allocator,
10881089
global_asm,
1089-
global_registration,
10901090
globs,
10911091
gt,
10921092
guard_patterns,

0 commit comments

Comments
 (0)