diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2022-03-22 21:44:58 +0100 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2022-03-22 22:00:19 +0100 |
| commit | 0d12a30673123c64ce6955278a7183a9667758df (patch) | |
| tree | d9e2c845ec2cf28007d8b4d0dfcf7a3bbee6a1e9 | |
| parent | 64137f0b15b752d0c734661dc713bcd140858320 (diff) | |
| download | rust-0d12a30673123c64ce6955278a7183a9667758df.tar.gz rust-0d12a30673123c64ce6955278a7183a9667758df.zip | |
Modernize `alloc-no-oom-handling` test
- The edition should be 2021 to avoid warnings.
- The `external_crate` feature was removed in commit 45bf1ed1a112
("rustc: Allow changing the default allocator").
Note that commit d620ae10709c ("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>
| -rw-r--r-- | src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile b/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile index c68ae40eb94..6e25eb7e459 100644 --- a/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile +++ b/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile @@ -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 |
