1
Fork 0

apply review feedback

This commit is contained in:
Ralf Jung 2024-12-02 11:02:22 +01:00
parent d6ddc73dae
commit 60eca2c575
4 changed files with 32 additions and 18 deletions

View file

@ -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()
}
},