Rustup to rustc 1.36.0-nightly (a3404557c 2019-05-03)

This commit is contained in:
bjorn3 2019-05-04 14:57:41 +02:00
parent bbd83ebf9d
commit 8598a34e45

View File

@ -20,7 +20,7 @@ use std::os::raw::{c_char, c_int};
use std::sync::mpsc;
use rustc::dep_graph::DepGraph;
use rustc::middle::cstore::MetadataLoader;
use rustc::middle::cstore::{EncodedMetadata, MetadataLoader};
use rustc::mir::mono::{Linkage as RLinkage, Visibility};
use rustc::session::config::{DebugInfo, OutputFilenames, OutputType};
use rustc::ty::query::Providers;
@ -192,6 +192,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
fn codegen_crate<'a, 'tcx>(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
metadata: EncodedMetadata,
_need_metadata_module: bool,
_rx: mpsc::Receiver<Box<dyn Any + Send>>,
) -> Box<dyn Any> {
env_logger::init();
@ -204,8 +206,6 @@ impl CodegenBackend for CraneliftCodegenBackend {
tcx.sess.abort_if_errors();
let metadata = tcx.encode_metadata();
let mut log = if cfg!(debug_assertions) {
Some(File::create(concat!(env!("CARGO_MANIFEST_DIR"), "/target/out/log.txt")).unwrap())
} else {