Update wasm_import_module_map and target_features_whitelist
This commit is contained in:
parent
9b648f7088
commit
46f2511296
4 changed files with 15 additions and 8 deletions
|
@ -10,7 +10,6 @@ use rustc::ty::{self, TyCtxt, PolyFnSig};
|
|||
use rustc::ty::layout::HasTyCtxt;
|
||||
use rustc::ty::query::Providers;
|
||||
use rustc_data_structures::small_c_str::SmallCStr;
|
||||
use rustc_data_structures::sync::Lrc;
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_target::spec::PanicStrategy;
|
||||
use rustc_codegen_ssa::traits::*;
|
||||
|
@ -320,11 +319,11 @@ pub fn provide(providers: &mut Providers<'_>) {
|
|||
if tcx.sess.opts.actually_rustdoc {
|
||||
// rustdoc needs to be able to document functions that use all the features, so
|
||||
// whitelist them all
|
||||
Lrc::new(llvm_util::all_known_features()
|
||||
tcx.arena.alloc(llvm_util::all_known_features()
|
||||
.map(|(a, b)| (a.to_string(), b))
|
||||
.collect())
|
||||
} else {
|
||||
Lrc::new(llvm_util::target_feature_whitelist(tcx.sess)
|
||||
tcx.arena.alloc(llvm_util::target_feature_whitelist(tcx.sess)
|
||||
.iter()
|
||||
.map(|&(a, b)| (a.to_string(), b))
|
||||
.collect())
|
||||
|
@ -364,7 +363,7 @@ pub fn provide_extern(providers: &mut Providers<'_>) {
|
|||
}));
|
||||
}
|
||||
|
||||
Lrc::new(ret)
|
||||
tcx.arena.alloc(ret)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue