Skip to content

Commit

Permalink
Rollup merge of #110652 - ojeda:core-no_global_oom_handling-test, r=M…
Browse files Browse the repository at this point in the history
…ark-Simulacrum

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]
  • Loading branch information
matthiaskrgr authored Apr 29, 2023
2 parents 734e866 + 3938541 commit e4daa81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/run-make/core-no-oom-handling/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include ../tools.mk

FAKEROOT=$(TMPDIR)/fakeroot

all:
$(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/core/src/lib.rs --sysroot=$(FAKEROOT) --cfg no_global_oom_handling

0 comments on commit e4daa81

Please sign in to comment.