File tree Expand file tree Collapse file tree 4 files changed +23
-2
lines changed
rustc-std-workspace-alloc Expand file tree Collapse file tree 4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ alloc_system = { path = "./alloc_system" }
13
13
14
14
[patch .crates-io ]
15
15
rustc-std-workspace-core = { path = " ./sysroot_src/src/tools/rustc-std-workspace-core" }
16
+ rustc-std-workspace-alloc = { path = " ./rustc-std-workspace-alloc" }
16
17
compiler_builtins = { path = " ./compiler_builtins" }
17
18
18
19
[profile .release ]
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " rustc-std-workspace-alloc"
3
+ version = " 1.0.0"
4
+ authors = [" Alex Crichton <alex@alexcrichton.com>" ]
5
+ license = ' MIT/Apache-2.0'
6
+ description = """
7
+ Hack for the compiler's own build system
8
+ """
9
+ edition = " 2018"
10
+
11
+ [lib ]
12
+ path = " lib.rs"
13
+
14
+ [dependencies ]
15
+ alloc = { path = " ../sysroot_src/src/liballoc" }
Original file line number Diff line number Diff line change
1
+ #![ feature( no_core) ]
2
+ #![ no_core]
3
+ #![ deny( rust_2018_idioms) ]
4
+
5
+ pub use :: alloc:: * ;
Original file line number Diff line number Diff line change @@ -340,13 +340,13 @@ impl CodegenBackend for CraneliftCodegenBackend {
340
340
} else {
341
341
None
342
342
} ,
343
- metadata_module : CompiledModule {
343
+ metadata_module : Some ( CompiledModule {
344
344
name : "dummy_metadata" . to_string ( ) ,
345
345
kind : ModuleKind :: Metadata ,
346
346
object : None ,
347
347
bytecode : None ,
348
348
bytecode_compressed : None ,
349
- } ,
349
+ } ) ,
350
350
crate_hash : tcx. crate_hash ( LOCAL_CRATE ) ,
351
351
metadata,
352
352
windows_subsystem : None , // Windows is not yet supported
You can’t perform that action at this time.
0 commit comments