Remove cg_clif fake target feature

This commit is contained in:
bjorn3 2020-08-15 21:04:33 +02:00
parent 3d46a30469
commit 0703e98bf6

View File

@ -184,13 +184,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
// rustdoc needs to be able to document functions that use all the features, so // rustdoc needs to be able to document functions that use all the features, so
// whitelist them all // whitelist them all
target_features_whitelist::all_known_features() target_features_whitelist::all_known_features()
.chain(Some(("cg_clif", None)))
.map(|(a, b)| (a.to_string(), b)) .map(|(a, b)| (a.to_string(), b))
.collect() .collect()
} else { } else {
target_features_whitelist::target_feature_whitelist(tcx.sess) target_features_whitelist::target_feature_whitelist(tcx.sess)
.iter() .iter()
.chain(&Some(("cg_clif", None)))
.map(|&(a, b)| (a.to_string(), b)) .map(|&(a, b)| (a.to_string(), b))
.collect() .collect()
} }
@ -199,7 +197,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
fn provide_extern(&self, _providers: &mut Providers) {} fn provide_extern(&self, _providers: &mut Providers) {}
fn target_features(&self, _sess: &Session) -> Vec<rustc_span::Symbol> { fn target_features(&self, _sess: &Session) -> Vec<rustc_span::Symbol> {
vec![rustc_span::Symbol::intern("cg_clif")] vec![]
} }
fn codegen_crate<'tcx>( fn codegen_crate<'tcx>(