diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-02-01 22:48:04 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-02-06 15:41:01 -0800 |
| commit | d91e7a3663854f97a7ccb8a175555d49942f90ba (patch) | |
| tree | 803239b4ab0e9d7cde647f547094e16e52ebd65e | |
| parent | 1ea4851715893ee3f365a8ef09d47165e9a7864f (diff) | |
| download | rust-d91e7a3663854f97a7ccb8a175555d49942f90ba.tar.gz rust-d91e7a3663854f97a7ccb8a175555d49942f90ba.zip | |
Build libcore as 2021 in a few more places
The `Cargo.toml` has `edition = "2021"`, so that's what these command lines should use too.
| -rw-r--r-- | library/core/Cargo.toml | 2 | ||||
| -rwxr-xr-x | src/ci/pgo.sh | 16 | ||||
| -rw-r--r-- | src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile | 2 |
3 files changed, 11 insertions, 9 deletions
diff --git a/library/core/Cargo.toml b/library/core/Cargo.toml index 6bc4ba3cc0e..6a0c6cd961d 100644 --- a/library/core/Cargo.toml +++ b/library/core/Cargo.toml @@ -6,6 +6,8 @@ repository = "https://github.com/rust-lang/rust.git" description = "The Rust Core Library" autotests = false autobenches = false +# If you update this, be sure to update it in a bunch of other places too! +# As of 2022, it was the ci/pgo.sh script and the core-no-fp-fmt-parse test. edition = "2021" [lib] diff --git a/src/ci/pgo.sh b/src/ci/pgo.sh index 29ef13a60fb..eaf92b033a1 100755 --- a/src/ci/pgo.sh +++ b/src/ci/pgo.sh @@ -14,10 +14,10 @@ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \ --llvm-profile-generate # Profile libcore compilation in opt-level=0 and opt-level=3 -RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc --edition=2018 \ - --crate-type=lib ../library/core/src/lib.rs -RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc --edition=2018 \ - --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs +RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc \ + --edition=2021 --crate-type=lib ../library/core/src/lib.rs +RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc \ + --edition=2021 --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs # Merge the profile data we gathered for LLVM # Note that this uses the profdata from the clang we used to build LLVM, @@ -37,10 +37,10 @@ python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \ --rust-profile-generate=/tmp/rustc-pgo # Profile libcore compilation in opt-level=0 and opt-level=3 -RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc --edition=2018 \ - --crate-type=lib ../library/core/src/lib.rs -RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc --edition=2018 \ - --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs +RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc \ + --edition=2021 --crate-type=lib ../library/core/src/lib.rs +RUSTC_BOOTSTRAP=1 ./build/$PGO_HOST/stage2/bin/rustc \ + --edition=2021 --crate-type=lib -Copt-level=3 ../library/core/src/lib.rs cp -r /tmp/rustc-perf ./ chown -R $(whoami): ./rustc-perf diff --git a/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile b/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile index bc4562bef3a..f79e4c3f479 100644 --- a/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile +++ b/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile @@ -1,4 +1,4 @@ -include ../tools.mk all: - $(RUSTC) --edition=2018 --crate-type=rlib ../../../../library/core/src/lib.rs --cfg no_fp_fmt_parse + $(RUSTC) --edition=2021 --crate-type=rlib ../../../../library/core/src/lib.rs --cfg no_fp_fmt_parse |
