about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-08-15 21:04:33 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-08-15 21:04:33 +0200
commit0703e98bf6346fcd95bd86cfbd1a953f4480ad44 (patch)
treefbe7d822ffd74ca5f51098afeac936c177652b5f
parent3d46a30469c4156fefb7ef046953ea19c4d6a2f2 (diff)
downloadrust-0703e98bf6346fcd95bd86cfbd1a953f4480ad44.tar.gz
rust-0703e98bf6346fcd95bd86cfbd1a953f4480ad44.zip
Remove cg_clif fake target feature
-rw-r--r--src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index bc0bae9c28d..d285936e22b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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>(