alloc: add unstable cfg features no_rc and no_sync
In Rust for Linux we are using these to make `alloc` a bit more modular. A `run-make-fulldeps` test is added for each of them, so that enabling each of them independently is kept in a compilable state. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
8a13871b69
commit
614c2e404a
4 changed files with 16 additions and 3 deletions
4
src/test/run-make-fulldeps/alloc-no-rc/Makefile
Normal file
4
src/test/run-make-fulldeps/alloc-no-rc/Makefile
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_rc
|
||||
4
src/test/run-make-fulldeps/alloc-no-sync/Makefile
Normal file
4
src/test/run-make-fulldeps/alloc-no-sync/Makefile
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_sync
|
||||
Loading…
Add table
Add a link
Reference in a new issue