about summary refs log tree commit diff
path: root/compiler/rustc_feature/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-20 18:13:49 +0200
committerGitHub <noreply@github.com>2024-05-20 18:13:49 +0200
commita79737c3f000afd9206be37b099aa151da98f396 (patch)
treec12a82dff6b93f115d37cb8e9186376c765f0b6e /compiler/rustc_feature/src
parent83cceeaf377a605e43c2ecb72a3c22e2f63d0621 (diff)
parenta2e0f10639bd2c8828267ade0a06ce7a477ce685 (diff)
downloadrust-a79737c3f000afd9206be37b099aa151da98f396.tar.gz
rust-a79737c3f000afd9206be37b099aa151da98f396.zip
Rollup merge of #125314 - jdonszelmann:global-registration-feature-gate, r=pnkfelix
 Add an experimental feature gate for global registration

See #125119 for the tracking issue.
Diffstat (limited to 'compiler/rustc_feature/src')
-rw-r--r--compiler/rustc_feature/src/unstable.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs
index c6fc9de119d..dc4807bab2d 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -489,6 +489,8 @@ declare_features! (
     (incomplete, generic_const_exprs, "1.56.0", Some(76560)),
     /// Allows generic parameters and where-clauses on free & associated const items.
     (incomplete, generic_const_items, "1.73.0", Some(113521)),
+    /// Allows registering static items globally, possibly across crates, to iterate over at runtime.
+    (unstable, global_registration, "CURRENT_RUSTC_VERSION", Some(125119)),
     /// Allows using `..=X` as a patterns in slices.
     (unstable, half_open_range_patterns_in_slices, "1.66.0", Some(67264)),
     /// Allows `if let` guard in match arms.