1
Fork 0

Simplify implied_target_features.

Currently its argument is an iterator, but in practice it's always a
singleton.
This commit is contained in:
Nicholas Nethercote 2025-02-25 14:13:16 +11:00
parent 1df93fd6a7
commit 2df8e657f2
4 changed files with 10 additions and 12 deletions

View file

@ -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))