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
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue