diff options
| author | klensy <klensy@users.noreply.github.com> | 2025-01-28 17:38:22 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2025-01-28 17:38:22 +0300 |
| commit | dc62b8fd11fe02f58cb24d63e02c5d5d4069c64f (patch) | |
| tree | 6088d54472005f5ba65a66091437081b942faa34 /compiler/rustc_feature/src/accepted.rs | |
| parent | 633a3fe36dd9a5196054dc3a61adbd3c61854dcf (diff) | |
| download | rust-dc62b8fd11fe02f58cb24d63e02c5d5d4069c64f.tar.gz rust-dc62b8fd11fe02f58cb24d63e02c5d5d4069c64f.zip | |
replaces few consts with statics to reduce readonly section
Diffstat (limited to 'compiler/rustc_feature/src/accepted.rs')
| -rw-r--r-- | compiler/rustc_feature/src/accepted.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/accepted.rs b/compiler/rustc_feature/src/accepted.rs index 217a7aeb2d7..6c431086414 100644 --- a/compiler/rustc_feature/src/accepted.rs +++ b/compiler/rustc_feature/src/accepted.rs @@ -9,7 +9,7 @@ macro_rules! declare_features { $(#[doc = $doc:tt])* (accepted, $feature:ident, $ver:expr, $issue:expr), )+) => { /// Formerly unstable features that have now been accepted (stabilized). - pub const ACCEPTED_LANG_FEATURES: &[Feature] = &[ + pub static ACCEPTED_LANG_FEATURES: &[Feature] = &[ $(Feature { name: sym::$feature, since: $ver, |
