Skip to content

Commit ae07d7d

Browse files
committed
Simplify implied_target_features.
Currently its argument is an iterator, but in practice it's always a singleton.
1 parent ab17806 commit ae07d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gcc_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri
4848
for feature in sess.opts.cg.target_feature.split(',') {
4949
if let Some(feature) = feature.strip_prefix('+') {
5050
all_rust_features.extend(
51-
UnordSet::from(sess.target.implied_target_features(std::iter::once(feature)))
51+
UnordSet::from(sess.target.implied_target_features(feature))
5252
.to_sorted_stable_ord()
5353
.iter()
5454
.map(|&&s| (true, s)),

0 commit comments

Comments
 (0)