Simplify implied_target_features
.
Currently its argument is an iterator, but in practice it's always a singleton.
This commit is contained in:
parent
1df93fd6a7
commit
2df8e657f2
4 changed files with 10 additions and 12 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue