@@ -140,14 +140,19 @@ rm tests/ui/deprecation/deprecated_inline_threshold.rs # missing deprecation war
140
140
# ======================
141
141
rm tests/ui/process/nofile-limit.rs # TODO some AArch64 linking issue
142
142
rm tests/ui/backtrace/synchronized-panic-handler.rs # missing needs-unwind annotation
143
+ rm tests/ui/lint/non-snake-case/lint-non-snake-case-crate.rs # same
143
144
rm -r tests/ui/codegen/equal-pointers-unequal # make incorrect assumptions about the location of stack variables
144
145
145
146
rm tests/ui/stdio-is-blocking.rs # really slow with unoptimized libstd
147
+ rm tests/ui/intrinsics/panic-uninitialized-zeroed.rs # same
148
+ rm tests/ui/process/process-panic-after-fork.rs # same
146
149
147
150
cp ../dist/bin/rustdoc-clif ../dist/bin/rustdoc # some tests expect bin/rustdoc to exist
148
151
149
152
# prevent $(RUSTDOC) from picking up the sysroot built by x.py. It conflicts with the one used by
150
153
# rustdoc-clif
154
+ # FIXME remove the bootstrap changes once it is no longer necessary to revert rust-lang/rust#130642
155
+ # to avoid building rustc when testing stage0 run-make.
151
156
cat << EOF | git apply -
152
157
diff --git a/tests/run-make/tools.mk b/tests/run-make/tools.mk
153
158
index ea06b620c4c..b969d0009c6 100644
@@ -175,6 +180,90 @@ index 9607ff02f96..b7d97caf9a2 100644
175
180
Self { cmd }
176
181
}
177
182
183
+ diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
184
+ index 2047345d78a..a7e9352bb1c 100644
185
+ --- a/src/bootstrap/src/core/build_steps/test.rs
186
+ +++ b/src/bootstrap/src/core/build_steps/test.rs
187
+ @@ -1733,11 +1733,6 @@ fn run(self, builder: &Builder<'_>) {
188
+
189
+ let is_rustdoc = suite.ends_with("rustdoc-ui") || suite.ends_with("rustdoc-js");
190
+
191
+ - if mode == "run-make" {
192
+ - let cargo = builder.ensure(tool::Cargo { compiler, target: compiler.host });
193
+ - cmd.arg("--cargo-path").arg(cargo);
194
+ - }
195
+ -
196
+ // Avoid depending on rustdoc when we don't need it.
197
+ if mode == "rustdoc"
198
+ || mode == "run-make"
199
+ diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs
200
+ index 414f9f3a7f1..5c18179b6fe 100644
201
+ --- a/src/tools/compiletest/src/common.rs
202
+ +++ b/src/tools/compiletest/src/common.rs
203
+ @@ -183,9 +183,6 @@ pub struct Config {
204
+ /// The rustc executable.
205
+ pub rustc_path: PathBuf,
206
+
207
+ - /// The cargo executable.
208
+ - pub cargo_path: Option<PathBuf>,
209
+ -
210
+ /// The rustdoc executable.
211
+ pub rustdoc_path: Option<PathBuf>,
212
+
213
+ diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs
214
+ index 3339116d542..250b5084d13 100644
215
+ --- a/src/tools/compiletest/src/lib.rs
216
+ +++ b/src/tools/compiletest/src/lib.rs
217
+ @@ -47,7 +47,6 @@ pub fn parse_config(args: Vec<String>) -> Config {
218
+ opts.reqopt("", "compile-lib-path", "path to host shared libraries", "PATH")
219
+ .reqopt("", "run-lib-path", "path to target shared libraries", "PATH")
220
+ .reqopt("", "rustc-path", "path to rustc to use for compiling", "PATH")
221
+ - .optopt("", "cargo-path", "path to cargo to use for compiling", "PATH")
222
+ .optopt("", "rustdoc-path", "path to rustdoc to use for compiling", "PATH")
223
+ .optopt("", "coverage-dump-path", "path to coverage-dump to use in tests", "PATH")
224
+ .reqopt("", "python", "path to python to use for doc tests", "PATH")
225
+ @@ -261,7 +260,6 @@ fn make_absolute(path: PathBuf) -> PathBuf {
226
+ compile_lib_path: make_absolute(opt_path(matches, "compile-lib-path")),
227
+ run_lib_path: make_absolute(opt_path(matches, "run-lib-path")),
228
+ rustc_path: opt_path(matches, "rustc-path"),
229
+ - cargo_path: matches.opt_str("cargo-path").map(PathBuf::from),
230
+ rustdoc_path: matches.opt_str("rustdoc-path").map(PathBuf::from),
231
+ coverage_dump_path: matches.opt_str("coverage-dump-path").map(PathBuf::from),
232
+ python: matches.opt_str("python").unwrap(),
233
+ @@ -366,7 +364,6 @@ pub fn log_config(config: &Config) {
234
+ logv(c, format!("compile_lib_path: {:?}", config.compile_lib_path));
235
+ logv(c, format!("run_lib_path: {:?}", config.run_lib_path));
236
+ logv(c, format!("rustc_path: {:?}", config.rustc_path.display()));
237
+ - logv(c, format!("cargo_path: {:?}", config.cargo_path));
238
+ logv(c, format!("rustdoc_path: {:?}", config.rustdoc_path));
239
+ logv(c, format!("src_base: {:?}", config.src_base.display()));
240
+ logv(c, format!("build_base: {:?}", config.build_base.display()));
241
+ diff --git a/src/tools/compiletest/src/runtest/run_make.rs b/src/tools/compiletest/src/runtest/run_make.rs
242
+ index 75fe6a6baaf..852568ae925 100644
243
+ --- a/src/tools/compiletest/src/runtest/run_make.rs
244
+ +++ b/src/tools/compiletest/src/runtest/run_make.rs
245
+ @@ -61,10 +61,6 @@ fn run_rmake_legacy_test(&self) {
246
+ .env_remove("MFLAGS")
247
+ .env_remove("CARGO_MAKEFLAGS");
248
+
249
+ - if let Some(ref cargo) = self.config.cargo_path {
250
+ - cmd.env("CARGO", cwd.join(cargo));
251
+ - }
252
+ -
253
+ if let Some(ref rustdoc) = self.config.rustdoc_path {
254
+ cmd.env("RUSTDOC", cwd.join(rustdoc));
255
+ }
256
+ @@ -413,10 +409,6 @@ fn run_rmake_v2_test(&self) {
257
+ // through a specific CI runner).
258
+ .env("LLVM_COMPONENTS", &self.config.llvm_components);
259
+
260
+ - if let Some(ref cargo) = self.config.cargo_path {
261
+ - cmd.env("CARGO", source_root.join(cargo));
262
+ - }
263
+ -
264
+ if let Some(ref rustdoc) = self.config.rustdoc_path {
265
+ cmd.env("RUSTDOC", source_root.join(rustdoc));
266
+ }
178
267
EOF
179
268
180
269
echo " [TEST] rustc test suite"
0 commit comments