diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2025-09-19 22:14:50 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2025-09-19 22:14:50 +0000 |
| commit | 4841d8c5ffb6a7bd025c14d8e9d2c23e6c458792 (patch) | |
| tree | 3f21648bbd0456c943367e74f00c5e94c987c101 /compiler/rustc_target/src/spec | |
| parent | 0be8e16088894483a7012c5026c3247c14a0c3c2 (diff) | |
generate list of all variants with `target_spec_enum`
This helps us avoid the hardcoded lists elsewhere.
Diffstat (limited to 'compiler/rustc_target/src/spec')
| -rw-r--r-- | compiler/rustc_target/src/spec/mod.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs index 07fb1ce63f7..f705af52bd8 100644 --- a/compiler/rustc_target/src/spec/mod.rs +++ b/compiler/rustc_target/src/spec/mod.rs @@ -854,10 +854,6 @@ impl PanicStrategy { PanicStrategy::Abort => sym::abort, } } - - pub const fn all() -> [Symbol; 2] { - [Self::Abort.desc_symbol(), Self::Unwind.desc_symbol()] - } } crate::target_spec_enum! { @@ -974,18 +970,6 @@ impl RelocModel { RelocModel::RopiRwpi => sym::ropi_rwpi, } } - - pub const fn all() -> [Symbol; 7] { - [ - RelocModel::Static.desc_symbol(), - RelocModel::Pic.desc_symbol(), - RelocModel::Pie.desc_symbol(), - RelocModel::DynamicNoPic.desc_symbol(), - RelocModel::Ropi.desc_symbol(), - RelocModel::Rwpi.desc_symbol(), - RelocModel::RopiRwpi.desc_symbol(), - ] - } } crate::target_spec_enum! { |
