Skip to content

Commit 0d12a30

Browse files
committed
Modernize alloc-no-oom-handling test
- The edition should be 2021 to avoid warnings. - The `external_crate` feature was removed in commit 45bf1ed ("rustc: Allow changing the default allocator"). Note that commit d620ae1 ("Auto merge of rust-lang#84266") removed the old test, but the new one introduced passed the `--cfg` like in the old one. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 64137f0 commit 0d12a30

File tree

1 file changed

+1
-1
lines changed
  • src/test/run-make-fulldeps/alloc-no-oom-handling

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-include ../tools.mk
22

33
all:
4-
$(RUSTC) --edition=2018 --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg feature=\"external_crate\" --cfg no_global_oom_handling
4+
$(RUSTC) --edition=2021 --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_global_oom_handling

0 commit comments

Comments
 (0)