Rustup to rustc 1.36.0-nightly (597f43248 2019-04-26)

This commit is contained in:
bjorn3 2019-04-27 17:44:12 +02:00
parent 9f6a65b08b
commit 11d816cce5
4 changed files with 23 additions and 2 deletions

View File

@ -13,6 +13,7 @@ alloc_system = { path = "./alloc_system" }
[patch.crates-io]
rustc-std-workspace-core = { path = "./sysroot_src/src/tools/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "./rustc-std-workspace-alloc" }
compiler_builtins = { path = "./compiler_builtins" }
[profile.release]

View File

@ -0,0 +1,15 @@
[package]
name = "rustc-std-workspace-alloc"
version = "1.0.0"
authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = 'MIT/Apache-2.0'
description = """
Hack for the compiler's own build system
"""
edition = "2018"
[lib]
path = "lib.rs"
[dependencies]
alloc = { path = "../sysroot_src/src/liballoc" }

View File

@ -0,0 +1,5 @@
#![feature(no_core)]
#![no_core]
#![deny(rust_2018_idioms)]
pub use ::alloc::*;

View File

@ -340,13 +340,13 @@ impl CodegenBackend for CraneliftCodegenBackend {
} else {
None
},
metadata_module: CompiledModule {
metadata_module: Some(CompiledModule {
name: "dummy_metadata".to_string(),
kind: ModuleKind::Metadata,
object: None,
bytecode: None,
bytecode_compressed: None,
},
}),
crate_hash: tcx.crate_hash(LOCAL_CRATE),
metadata,
windows_subsystem: None, // Windows is not yet supported