diff options
| author | Ralf Jung <post@ralfj.de> | 2023-11-12 12:41:22 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-11-12 12:46:05 +0100 |
| commit | 5b5006916bfdebf2a96f0b4491828390e8ed68b5 (patch) | |
| tree | a38d0377c4dedbb58aaf96e490b9fa7e6046b7c9 /compiler/rustc_codegen_gcc/src | |
| parent | a04d56b36d8f634abd7bdd64dd859a30655f1818 (diff) | |
| download | rust-5b5006916bfdebf2a96f0b4491828390e8ed68b5.tar.gz rust-5b5006916bfdebf2a96f0b4491828390e8ed68b5.zip | |
target_feature: make it more clear what that 'Option' means
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/lib.rs b/compiler/rustc_codegen_gcc/src/lib.rs index a530fc994a2..40373ee1d27 100644 --- a/compiler/rustc_codegen_gcc/src/lib.rs +++ b/compiler/rustc_codegen_gcc/src/lib.rs @@ -384,7 +384,7 @@ pub fn target_features(sess: &Session, allow_unstable: bool, target_info: &Locke .iter() .filter_map( |&(feature, gate)| { - if sess.is_nightly_build() || allow_unstable || gate.is_none() { Some(feature) } else { None } + if sess.is_nightly_build() || allow_unstable || gate.is_stable() { Some(feature) } else { None } }, ) .filter(|_feature| { |
