Remove cg_clif fake target feature
This commit is contained in:
parent
3d46a30469
commit
0703e98bf6
@ -184,13 +184,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
||||
// rustdoc needs to be able to document functions that use all the features, so
|
||||
// whitelist them all
|
||||
target_features_whitelist::all_known_features()
|
||||
.chain(Some(("cg_clif", None)))
|
||||
.map(|(a, b)| (a.to_string(), b))
|
||||
.collect()
|
||||
} else {
|
||||
target_features_whitelist::target_feature_whitelist(tcx.sess)
|
||||
.iter()
|
||||
.chain(&Some(("cg_clif", None)))
|
||||
.map(|&(a, b)| (a.to_string(), b))
|
||||
.collect()
|
||||
}
|
||||
@ -199,7 +197,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
||||
fn provide_extern(&self, _providers: &mut Providers) {}
|
||||
|
||||
fn target_features(&self, _sess: &Session) -> Vec<rustc_span::Symbol> {
|
||||
vec![rustc_span::Symbol::intern("cg_clif")]
|
||||
vec![]
|
||||
}
|
||||
|
||||
fn codegen_crate<'tcx>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user