diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-30 01:14:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-30 01:14:56 +0200 |
| commit | e4daa810ffd10a389bfe51250fb8101b6ee11656 (patch) | |
| tree | 61819f67e910be6c852b0f3438af5a0135834c2f | |
| parent | 734e866e638608f0530663b58cfac10391a9c1ce (diff) | |
| parent | 3938541d29f646e8a8757fc4a2bd70d1e60cc328 (diff) | |
| download | rust-e4daa810ffd10a389bfe51250fb8101b6ee11656.tar.gz rust-e4daa810ffd10a389bfe51250fb8101b6ee11656.zip | |
Rollup merge of #110652 - ojeda:core-no_global_oom_handling-test, r=Mark-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: https://github.com/rust-lang/rust/pull/110649 [1]
| -rw-r--r-- | tests/run-make/core-no-oom-handling/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-make/core-no-oom-handling/Makefile b/tests/run-make/core-no-oom-handling/Makefile new file mode 100644 index 00000000000..28c5261ff85 --- /dev/null +++ b/tests/run-make/core-no-oom-handling/Makefile @@ -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 |
