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_gcc | |
| parent | 1df93fd6a7a164ebd8b7868d9382e3fb37f4642e (diff) | |
| download | rust-2df8e657f23cd56fe0f5f7e1a13697037a8a8487.tar.gz rust-2df8e657f23cd56fe0f5f7e1a13697037a8a8487.zip | |
Simplify `implied_target_features`.
Currently its argument is an iterator, but in practice it's always a singleton.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/gcc_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/gcc_util.rs b/compiler/rustc_codegen_gcc/src/gcc_util.rs index 4e8c8aaaf5c..6eae0c24f48 100644 --- a/compiler/rustc_codegen_gcc/src/gcc_util.rs +++ b/compiler/rustc_codegen_gcc/src/gcc_util.rs @@ -48,7 +48,7 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri for feature in sess.opts.cg.target_feature.split(',') { if let Some(feature) = feature.strip_prefix('+') { all_rust_features.extend( - UnordSet::from(sess.target.implied_target_features(std::iter::once(feature))) + UnordSet::from(sess.target.implied_target_features(feature)) .to_sorted_stable_ord() .iter() .map(|&&s| (true, s)), |
