]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #97579 - SparrowLii:target_features, r=nagisa
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Mon, 6 Jun 2022 12:34:57 +0000 (14:34 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Jun 2022 12:34:57 +0000 (14:34 +0200)
commit6da214c1e2a85b420eacec0dc36525aab586e823
tree121c6b93843531c3ff38cc7a36b77f039cb5bf7c
parentcb787bea4613189da9f0b26406e11ee8cb39d422
parentb3cd892ae153fb8eb10a6b386518ffca16834d8e
Rollup merge of #97579 - SparrowLii:target_features, r=nagisa

Avoid creating `SmallVec`s in `global_llvm_features`

This PR made a simple optimization to avoid creating extra `SmallVec`s by adjusting the use of iterator statements.
Also, given the very small size of `tied_target_features`, there is no need to insert each feature into the FxHashMap.