Skip to content

Commit 3938541

Browse files
committed
tests: add test for warning-free builds of core under no_global_oom_handling
`tests/run-make/alloc-no-oom-handling` tests that `alloc` under `no_global_oom_handling` builds and is warning-free. Do the same for `core` to prevent issues such as [1]. Link: #110649 [1] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 4096619 commit 3938541

File tree

1 file changed

+6
-0
lines changed
  • tests/run-make/core-no-oom-handling

1 file changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include ../tools.mk
2+
3+
FAKEROOT=$(TMPDIR)/fakeroot
4+
5+
all:
6+
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/core/src/lib.rs --sysroot=$(FAKEROOT) --cfg no_global_oom_handling

0 commit comments

Comments
 (0)