diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-25 14:13:16 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-05 09:20:28 +1100 |
| commit | 2df8e657f23cd56fe0f5f7e1a13697037a8a8487 (patch) | |
| tree | 3c84f23b5e3de5b23f4d975874a93df0f2f3fbba /compiler/rustc_codegen_ssa/src | |
| parent | 1df93fd6a7a164ebd8b7868d9382e3fb37f4642e (diff) | |
Simplify `implied_target_features`.
Currently its argument is an iterator, but in practice it's always a singleton.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/target_features.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs index 95a5e96fe46..8058cd1b178 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -190,7 +190,7 @@ pub(crate) fn provide(providers: &mut Providers) { }, implied_target_features: |tcx, feature: Symbol| { let feature = feature.as_str(); - UnordSet::from(tcx.sess.target.implied_target_features(std::iter::once(feature))) + UnordSet::from(tcx.sess.target.implied_target_features(feature)) .into_sorted_stable_ord() .into_iter() .map(|s| Symbol::intern(s)) |
