about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/gcc_util.rs
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2024-12-18 05:28:59 +0000
committerGitHub <noreply@github.com>2024-12-18 05:28:59 +0000
commit955ef0983112c6a10c54457cedc38eedefcdefb9 (patch)
tree95c98c8b70f583931bf51b01a8fcf0cf854f2dc0 /compiler/rustc_codegen_gcc/src/gcc_util.rs
parente999c48404b492659f90993e9fdd2544c675abce (diff)
parentd49845e5fe45bcffe30df0963a97b2ad859abbf8 (diff)
downloadrust-955ef0983112c6a10c54457cedc38eedefcdefb9.tar.gz
rust-955ef0983112c6a10c54457cedc38eedefcdefb9.zip
Merge pull request #4097 from rust-lang/rustup-2024-12-18
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/gcc_util.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/gcc_util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/gcc_util.rs b/compiler/rustc_codegen_gcc/src/gcc_util.rs
index 88e5eefd7a1..058a874501b 100644
--- a/compiler/rustc_codegen_gcc/src/gcc_util.rs
+++ b/compiler/rustc_codegen_gcc/src/gcc_util.rs
@@ -96,7 +96,7 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri
                     }
                     Some((_, stability, _)) => {
                         if let Err(reason) =
-                            stability.compute_toggleability(&sess.target).allow_toggle()
+                            stability.toggle_allowed(&sess.target, enable_disable == '+')
                         {
                             sess.dcx().emit_warn(ForbiddenCTargetFeature { feature, reason });
                         } else if stability.requires_nightly().is_some() {