about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-12-02 11:02:22 +0100
committerRalf Jung <post@ralfj.de>2024-12-11 22:18:51 +0100
commit60eca2c5758a736559a60b7552833d20b0895763 (patch)
treed63365f463b918f30b9d63aca6ec7a7a9ad6da5d /compiler/rustc_codegen_ssa/src
parentd6ddc73daeb27fc3b5b009105185c44621c3c7cb (diff)
downloadrust-60eca2c5758a736559a60b7552833d20b0895763.tar.gz
rust-60eca2c5758a736559a60b7552833d20b0895763.zip
apply review feedback
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs
index b3057325bd6..fa600ec7166 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -153,14 +153,14 @@ pub(crate) fn provide(providers: &mut Providers) {
                 // rustdoc needs to be able to document functions that use all the features, so
                 // whitelist them all
                 rustc_target::target_features::all_rust_features()
-                    .map(|(a, b)| (a.to_string(), b.compute(target)))
+                    .map(|(a, b)| (a.to_string(), b.compute_toggleability(target)))
                     .collect()
             } else {
                 tcx.sess
                     .target
                     .rust_target_features()
                     .iter()
-                    .map(|&(a, b, _)| (a.to_string(), b.compute(target)))
+                    .map(|&(a, b, _)| (a.to_string(), b.compute_toggleability(target)))
                     .collect()
             }
         },