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 | ae07d7d368f3487999e68c5c2aa00a9ba2539905 (patch) | |
| tree | dbc6ea83501331fe324758c1f849e62c4bdeae2a /src | |
| parent | ab1780693ef61b5ed1f62dbf0c4b98e6f0c07830 (diff) | |
| download | rust-ae07d7d368f3487999e68c5c2aa00a9ba2539905.tar.gz rust-ae07d7d368f3487999e68c5c2aa00a9ba2539905.zip | |
Simplify `implied_target_features`.
Currently its argument is an iterator, but in practice it's always a singleton.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gcc_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gcc_util.rs b/src/gcc_util.rs index 4e8c8aaaf5c..6eae0c24f48 100644 --- a/src/gcc_util.rs +++ b/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)), |
