Skip to content

Commit 96e7213

Browse files
committed
Fix rustc test suite
1 parent 11953d7 commit 96e7213

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

scripts/setup_rust_fork.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ index 2e16f2cf27..3ac3df99a8 100644
6363
# Note that RUSTFLAGS_BOOTSTRAP should always be added to the end of
6464
# RUSTFLAGS, since that causes RUSTFLAGS_BOOTSTRAP to override RUSTFLAGS.
6565
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
66-
index a656927b1f6..44fc5546fac 100644
66+
index bc68bfe396..00143ef3ed 100644
6767
--- a/src/bootstrap/src/core/config/config.rs
6868
+++ b/src/bootstrap/src/core/config/config.rs
69-
@@ -2249,7 +2249,7 @@ pub fn parse_download_ci_llvm<'a>(
70-
}
69+
@@ -2230,7 +2230,7 @@ pub fn download_ci_rustc_commit<'a>(
70+
return None;
71+
}
7172
72-
#[cfg(not(test))]
73-
- if b && dwn_ctx.is_running_on_ci && CiEnv::is_rust_lang_managed_ci_job() {
74-
+ if false && dwn_ctx.is_running_on_ci && CiEnv::is_rust_lang_managed_ci_job() {
75-
// On rust-lang CI, we must always rebuild LLVM if there were any modifications to it
76-
panic!(
77-
"\`llvm.download-ci-llvm\` cannot be set to \`true\` on CI. Use \`if-unchanged\` instead."
73+
- if dwn_ctx.is_running_on_ci() {
74+
+ if false && dwn_ctx.is_running_on_ci() {
75+
eprintln!("CI rustc commit matches with HEAD and we are in CI.");
76+
eprintln!(
77+
"\`rustc.download-ci\` functionality will be skipped as artifacts are not available."
7878
diff --git a/src/build_helper/src/git.rs b/src/build_helper/src/git.rs
7979
index 330fb465de..a4593ed96f 100644
8080
--- a/src/build_helper/src/git.rs

scripts/test_rustc_tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ for test in $(rg -i --files-with-matches "//(\[\w+\])?~[^\|]*\s*ERR|//@ error-pa
2020
done
2121

2222
git checkout -- tests/ui/issues/auxiliary/issue-3136-a.rs # contains //~ERROR, but shouldn't be removed
23-
git checkout -- tests/ui/proc-macro/pretty-print-hack/
2423
git checkout -- tests/ui/entry-point/auxiliary/bad_main_functions.rs
2524

2625
# missing features

0 commit comments

Comments
 (0)