Rustup to rustc 1.31.0-nightly (155510e37 2018-10-20) and fix test

This commit is contained in:
bjorn3 2018-10-21 16:32:19 +02:00
parent a139f73f77
commit 397c6843d0
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ build_example_bin() {
$RUSTC $2 --crate-name $1 --crate-type bin
pushd target/out
gcc libmini_core.rlib $1 -o $1_bin
gcc $1 libmini_core.rlib -o $1_bin
sh -c ./$1_bin || true
popd
}

View file

@ -152,7 +152,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
providers.target_features_whitelist = |_tcx, _cnum| Lrc::new(Default::default());
providers.is_reachable_non_generic = |_tcx, _defid| true;
providers.exported_symbols = |_tcx, _crate| Arc::new(Vec::new());
providers.upstream_monomorphizations = |_tcx, _cnum| Lrc::new(FxHashMap());
providers.upstream_monomorphizations = |_tcx, _cnum| Lrc::new(FxHashMap::default());
providers.upstream_monomorphizations_for = |tcx, def_id| {
debug_assert!(!def_id.is_local());
tcx.upstream_monomorphizations(LOCAL_CRATE)