Skip to content

Commit 2e1d51d

Browse files
committed
Refactor and fill out target feature lists
1 parent cc0ca37 commit 2e1d51d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gcc_util.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri
6565

6666
let feature = backend_feature_name(s)?;
6767
// Warn against use of GCC specific feature names on the CLI.
68-
if diagnostics && !supported_features.iter().any(|&(v, _)| v == feature) {
69-
let rust_feature = supported_features.iter().find_map(|&(rust_feature, _)| {
68+
if diagnostics && !supported_features.iter().any(|&(v, _, _)| v == feature) {
69+
let rust_feature = supported_features.iter().find_map(|&(rust_feature, _, _)| {
7070
let gcc_features = to_gcc_features(sess, rust_feature);
7171
if gcc_features.contains(&feature) && !gcc_features.contains(&rust_feature) {
7272
Some(rust_feature)

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ pub fn target_features(
486486
sess.target
487487
.supported_target_features()
488488
.iter()
489-
.filter_map(|&(feature, gate)| {
489+
.filter_map(|&(feature, gate, _)| {
490490
if sess.is_nightly_build() || allow_unstable || gate.is_stable() {
491491
Some(feature)
492492
} else {

0 commit comments

Comments
 (0)