diff options
| author | bors <bors@rust-lang.org> | 2025-04-25 21:58:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-25 21:58:13 +0000 |
| commit | 555e1d0386f024a8359645c3217f4b3eae9be042 (patch) | |
| tree | 505536c49c039d5d1cc7fd7186a95c632d90ff4f /compiler/rustc_codegen_gcc/src/gcc_util.rs | |
| parent | b4c8b0c3f0533bb342a4873ff59bdad3883ab8e3 (diff) | |
| parent | 3cd97b644d30c7dc3a48b93ac1b7403ae1cccfab (diff) | |
| download | rust-555e1d0386f024a8359645c3217f4b3eae9be042.tar.gz rust-555e1d0386f024a8359645c3217f4b3eae9be042.zip | |
Auto merge of #140295 - antoyo:subtree-update_cg_gcc_2025-04-25, r=GuillaumeGomez
Subtree update cg_gcc 2025/04/25 r? GuillaumeGomez
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/gcc_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/gcc_util.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/compiler/rustc_codegen_gcc/src/gcc_util.rs b/compiler/rustc_codegen_gcc/src/gcc_util.rs index 202764d5649..955f9020235 100644 --- a/compiler/rustc_codegen_gcc/src/gcc_util.rs +++ b/compiler/rustc_codegen_gcc/src/gcc_util.rs @@ -136,14 +136,12 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri }); features.extend(feats); - if diagnostics { - if let Some(f) = check_tied_features(sess, &featsmap) { - sess.dcx().emit_err(TargetFeatureDisableOrEnable { - features: f, - span: None, - missing_features: None, - }); - } + if diagnostics && let Some(f) = check_tied_features(sess, &featsmap) { + sess.dcx().emit_err(TargetFeatureDisableOrEnable { + features: f, + span: None, + missing_features: None, + }); } features |
