Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #134392

Closed
wants to merge 50 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
665d7ad
Improve testing coverage for `#[diagnostic::do_not_recommend]`
weiznich Oct 22, 2024
68cd044
Check `#[diagnostic::do_not_recommend]` for arguments
weiznich Oct 23, 2024
70ab7a7
Stabilize `#[diagnostic::do_not_recommend]`
weiznich Oct 23, 2024
fad597f
Also warn against `#[diagnostic::do_not_recommend]` on plain impls
weiznich Oct 25, 2024
577b5f3
CI: use free runners for x86_64-gnu-llvm jobs
marcoieni Dec 10, 2024
e67e9b4
fix
marcoieni Dec 10, 2024
4f0e781
split better
marcoieni Dec 11, 2024
bb88d7a
fix
marcoieni Dec 11, 2024
84ba41d
remove unnecessary change
marcoieni Dec 11, 2024
abd8352
restore command
marcoieni Dec 11, 2024
a8bc3cf
fix
marcoieni Dec 11, 2024
d74de1f
debug
marcoieni Dec 11, 2024
754fb24
debug
marcoieni Dec 11, 2024
9ed728d
debug
marcoieni Dec 11, 2024
eec9bcf
more debug
marcoieni Dec 11, 2024
fee220a
fix
marcoieni Dec 11, 2024
1f38572
fix
marcoieni Dec 11, 2024
7ce2944
test stage 1 in separate job
marcoieni Dec 12, 2024
aa0fd46
copy script
marcoieni Dec 12, 2024
a1abbaa
remove echo logs
marcoieni Dec 12, 2024
2bf1cec
refactor
marcoieni Dec 12, 2024
c2f4550
remove echo
marcoieni Dec 12, 2024
a67a71d
add files
marcoieni Dec 12, 2024
4fa9078
fix path
marcoieni Dec 12, 2024
ac078a4
fix path
marcoieni Dec 12, 2024
de16ed3
Correctly handle comments in attributes in doctests source code
GuillaumeGomez Dec 13, 2024
165f37e
rustc_mir_build: Clarify that 'mirrored' does not mean 'flipped' or '…
Enselic Dec 12, 2024
f068d8b
rustdoc-search: show `impl Trait` inline when unhighlighted
notriddle Dec 13, 2024
246835e
rustdoc-search: let From and Into be unboxed
notriddle Dec 13, 2024
0be3ed0
rustdoc-search: update documentation with notes about unboxing
notriddle Dec 13, 2024
0f82cff
Keep track of patterns that could have introduced a binding, but didn't
estebank Dec 13, 2024
8c8e8d3
Use `ErrorGuaranteed` more
estebank Dec 15, 2024
733fd03
Use `span_label` as it looks better when we show pattern missing bind…
estebank Dec 15, 2024
9c4a61f
Add ui regression test for #134221
GuillaumeGomez Dec 13, 2024
2383985
Also handle cases where attributes are unclosed
GuillaumeGomez Dec 16, 2024
bdb88c9
Avoid creating a fn sig type just to unwrap it again to get at its si…
oli-obk Dec 16, 2024
f387b9d
Properly name a def id variable
oli-obk Dec 16, 2024
4032b9d
Avoid wrapping a trivially defaultable type in `Option`
oli-obk Dec 16, 2024
1c7d54e
Deduplicate some pretty printing logic
oli-obk Dec 16, 2024
1d834c2
Avoid wrapping fn sig in a fn pointer when we want to just print the sig
oli-obk Dec 16, 2024
86e0eab
tests/ui/asm: Remove uses of rustc_attrs, lang_items, and decl_macro …
taiki-e Dec 16, 2024
c367cc3
Remove unneeded handling of backlines in doctest attributes
GuillaumeGomez Dec 16, 2024
593de5e
Rollup merge of #132056 - weiznich:diagnostic_do_not_recommend_final_…
GuillaumeGomez Dec 16, 2024
23e3ccf
Rollup merge of #134124 - MarcoIeni:split-llvm-jobs, r=Kobzol
GuillaumeGomez Dec 16, 2024
ee28906
Rollup merge of #134197 - Enselic:mirror, r=lcnr
GuillaumeGomez Dec 16, 2024
3427170
Rollup merge of #134260 - GuillaumeGomez:doctest-attrs, r=notriddle
GuillaumeGomez Dec 16, 2024
1df4cef
Rollup merge of #134277 - notriddle:notriddle/inline-into, r=Guillaum…
GuillaumeGomez Dec 16, 2024
01ec9cd
Rollup merge of #134284 - estebank:issue-74863, r=lcnr
GuillaumeGomez Dec 16, 2024
ca1d4c8
Rollup merge of #134385 - taiki-e:ui-asm-minicore, r=compiler-errors
GuillaumeGomez Dec 16, 2024
2c02fd3
Rollup merge of #134386 - oli-obk:some-trait-impl-diff-diagnostic-cle…
GuillaumeGomez Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test stage 1 in separate job
  • Loading branch information
marcoieni committed Dec 12, 2024
commit 7ce2944ef976289aa7126f4a46db500e4b9b47c6
21 changes: 0 additions & 21 deletions src/ci/docker/scripts/x86_64-gnu-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@ if [ "$READ_ONLY_SRC" = "0" ]; then
git reset --hard HEAD~1
fi

# Only run the stage 1 tests on merges, not on PR CI jobs.
if [[ -z "${PR_CI_JOB}" ]]; then
../x.py --stage 1 test --skip src/tools/tidy

# Run the `mir-opt` tests again but this time for a 32-bit target.
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
# both 32-bit and 64-bit outputs updated by the PR author, before
# the PR is approved and tested for merging.
# It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
# despite having different output on 32-bit vs 64-bit targets.
../x.py --stage 1 test tests/mir-opt --host='' --target=i686-unknown-linux-gnu

# Run `ui-fulldeps` in `--stage=1`, which actually uses the stage0
# compiler, and is sensitive to the addition of new flags.
../x.py --stage 1 test tests/ui-fulldeps

# Rebuild the stdlib with the size optimizations enabled and run tests again.
RUSTFLAGS_NOT_BOOTSTRAP="--cfg feature=\"optimize_for_size\"" ../x.py --stage 1 test \
library/std library/alloc library/core
fi

# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.
../x.py --stage 2 test --skip src/tools/tidy

Expand Down
10 changes: 0 additions & 10 deletions src/ci/docker/scripts/x86_64-gnu-llvm1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ if [ "$READ_ONLY_SRC" = "0" ]; then
git reset --hard HEAD~1
fi

# Only run the stage 1 tests on merges, not on PR CI jobs.
if [[ -z "${PR_CI_JOB}" ]]; then
../x.py --stage 1 test \
--skip tests \
--skip coverage-map \
--skip coverage-run \
--skip library \
--skip tidyselftest
fi

../x.py --stage 2 test \
--skip tests \
--skip coverage-map \
Expand Down
23 changes: 0 additions & 23 deletions src/ci/docker/scripts/x86_64-gnu-llvm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,6 @@ if [ "$READ_ONLY_SRC" = "0" ]; then
git reset --hard HEAD~1
fi

# Only run the stage 1 tests on merges, not on PR CI jobs.
if [[ -z "${PR_CI_JOB}" ]]; then
../x.py --stage 1 test \
--skip compiler \
--skip src

# Run the `mir-opt` tests again but this time for a 32-bit target.
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
# both 32-bit and 64-bit outputs updated by the PR author, before
# the PR is approved and tested for merging.
# It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
# despite having different output on 32-bit vs 64-bit targets.
../x.py --stage 1 test tests/mir-opt --host='' --target=i686-unknown-linux-gnu

# Run `ui-fulldeps` in `--stage=1`, which actually uses the stage0
# compiler, and is sensitive to the addition of new flags.
../x.py --stage 1 test tests/ui-fulldeps

# Rebuild the stdlib with the size optimizations enabled and run tests again.
RUSTFLAGS_NOT_BOOTSTRAP="--cfg feature=\"optimize_for_size\"" ../x.py --stage 1 test \
library/std library/alloc library/core
fi

../x.py --stage 2 test \
--skip compiler \
--skip src
Expand Down
39 changes: 39 additions & 0 deletions src/ci/docker/scripts/x86_64-gnu-llvm3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

set -ex

if [ "$READ_ONLY_SRC" = "0" ]; then
# `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that
# "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on
# compiler and/or library. Here we are adding a dummy commit on compiler and running
# that test to make sure we never download CI rustc with a change on the compiler tree.
echo "" >> ../compiler/rustc/src/main.rs
git config --global user.email "dummy@dummy.com"
git config --global user.name "dummy"
git add ../compiler/rustc/src/main.rs
git commit -m "test commit for rust.download-rustc=if-unchanged logic"
DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \
-- core::builder::tests::ci_rustc_if_unchanged_logic
# Revert the dummy commit
git reset --hard HEAD~1
fi

##### Test stage 1 #####

../x.py --stage 1 test --skip src/tools/tidy

# Run the `mir-opt` tests again but this time for a 32-bit target.
# This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
# both 32-bit and 64-bit outputs updated by the PR author, before
# the PR is approved and tested for merging.
# It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
# despite having different output on 32-bit vs 64-bit targets.
../x.py --stage 1 test tests/mir-opt --host='' --target=i686-unknown-linux-gnu

# Run `ui-fulldeps` in `--stage=1`, which actually uses the stage0
# compiler, and is sensitive to the addition of new flags.
../x.py --stage 1 test tests/ui-fulldeps

# Rebuild the stdlib with the size optimizations enabled and run tests again.
RUSTFLAGS_NOT_BOOTSTRAP="--cfg feature=\"optimize_for_size\"" ../x.py --stage 1 test \
library/std library/alloc library/core
25 changes: 21 additions & 4 deletions src/ci/github-actions/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,24 +314,32 @@ auto:
<<: *job-linux-8c

# The x86_64-gnu-llvm-19 job is split into multiple jobs to run tests in parallel.
# x86_64-gnu-llvm-19-1 skips tests that run in x86_64-gnu-llvm-19-2.
# x86_64-gnu-llvm-19-1 skips tests that run in x86_64-gnu-llvm-19-{2,3}.
- image: x86_64-gnu-llvm-19-1
env:
RUST_BACKTRACE: 1
IMAGE: x86_64-gnu-llvm-19
DOCKER_SCRIPT: x86_64-gnu-llvm1.sh
<<: *job-linux-4c

# Skip tests that run in x86_64-gnu-llvm-19-2
# Skip tests that run in x86_64-gnu-llvm-19-{1,3}
- image: x86_64-gnu-llvm-19-2
env:
RUST_BACKTRACE: 1
IMAGE: x86_64-gnu-llvm-19
DOCKER_SCRIPT: x86_64-gnu-llvm2.sh
<<: *job-linux-4c

# Skip tests that run in x86_64-gnu-llvm-19-{1,2}
- image: x86_64-gnu-llvm-19-3
env:
RUST_BACKTRACE: 1
IMAGE: x86_64-gnu-llvm-19
DOCKER_SCRIPT: x86_64-gnu-llvm3.sh
<<: *job-linux-4c

# The x86_64-gnu-llvm-18 job is split into multiple jobs to run tests in parallel.
# x86_64-gnu-llvm-18-1 skips tests that run in x86_64-gnu-llvm-18-2.
# x86_64-gnu-llvm-18-1 skips tests that run in x86_64-gnu-llvm-18-{2,3}.
- image: x86_64-gnu-llvm-18-1
env:
RUST_BACKTRACE: 1
Expand All @@ -340,7 +348,7 @@ auto:
DOCKER_SCRIPT: x86_64-gnu-llvm1.sh
<<: *job-linux-4c

# Skip tests that run in x86_64-gnu-llvm-18-2
# Skip tests that run in x86_64-gnu-llvm-18-{1,3}
- image: x86_64-gnu-llvm-18-2
env:
RUST_BACKTRACE: 1
Expand All @@ -349,6 +357,15 @@ auto:
DOCKER_SCRIPT: x86_64-gnu-llvm2.sh
<<: *job-linux-4c

# Skip tests that run in x86_64-gnu-llvm-18-{1,2}
- image: x86_64-gnu-llvm-18-3
env:
RUST_BACKTRACE: 1
READ_ONLY_SRC: "0"
IMAGE: x86_64-gnu-llvm-18
DOCKER_SCRIPT: x86_64-gnu-llvm3.sh
<<: *job-linux-4c

- image: x86_64-gnu-nopt
<<: *job-linux-4c

Expand Down
Loading