Modernize alloc-no-oom-handling test
- The edition should be 2021 to avoid warnings. - The `external_crate` feature was removed in commit45bf1ed1a1("rustc: Allow changing the default allocator"). Note that commitd620ae1070("Auto merge of #84266") removed the old test, but the new one introduced passed the `--cfg` like in the old one. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
64137f0b15
commit
0d12a30673
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
-include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) --edition=2018 --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg feature=\"external_crate\" --cfg no_global_oom_handling
|
||||
$(RUSTC) --edition=2021 --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_global_oom_handling
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue