Skip to content

Commit 2cff157

Browse files
committed
rename feature gate
1 parent 77101fe commit 2cff157

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
@@ -747,6 +747,7 @@ symbols! {
747747
cr,
748748
crate_in_paths,
749749
crate_local,
750+
crate_local_distributed_slice,
750751
crate_name,
751752
crate_type,
752753
crate_visibility_modifier,
@@ -1082,7 +1083,6 @@ symbols! {
10821083
global_alloc_ty,
10831084
global_allocator,
10841085
global_asm,
1085-
global_registration,
10861086
globs,
10871087
gt,
10881088
guard_patterns,

0 commit comments

Comments
 (0)