@@ -152,46 +152,20 @@ rm tests/ui/process/process-panic-after-fork.rs # same
152152cp ../dist/bin/rustdoc-clif ../dist/bin/rustdoc # some tests expect bin/rustdoc to exist
153153cp $( ../dist/rustc-clif --print target-libdir) /libstd-* .so ../dist/lib/
154154
155- # prevent $(RUSTDOC) from picking up the sysroot built by x.py. It conflicts with the one used by
156- # rustdoc-clif
157155cat << EOF | git apply -
158- diff --git a/tests/run-make/tools.mk b/tests/run-make/tools.mk
159- index ea06b620c4c..b969d0009c6 100644
160- --- a/tests/run-make/tools.mk
161- +++ b/tests/run-make/tools.mk
162- @@ -9,7 +9,7 @@ RUSTC_ORIGINAL := \$ (RUSTC)
163- BARE_RUSTC := \$ (HOST_RPATH_ENV) '\$ (RUSTC)'
164- BARE_RUSTDOC := \$ (HOST_RPATH_ENV) '\$ (RUSTDOC)'
165- RUSTC := \$ (BARE_RUSTC) --out-dir \$ (TMPDIR) -L \$ (TMPDIR) \$ (RUSTFLAGS) -Ainternal_features
166- -RUSTDOC := \$ (BARE_RUSTDOC) -L \$ (TARGET_RPATH_DIR)
167- +RUSTDOC := \$ (BARE_RUSTDOC)
168- ifdef RUSTC_LINKER
169- RUSTC := \$ (RUSTC) -Clinker='\$ (RUSTC_LINKER)'
170- RUSTDOC := \$ (RUSTDOC) -Clinker='\$ (RUSTC_LINKER)'
171- diff --git a/src/tools/run-make-support/src/rustdoc.rs b/src/tools/run-make-support/src/rustdoc.rs
172- index 9607ff02f96..b7d97caf9a2 100644
173- --- a/src/tools/run-make-support/src/external_deps/rustdoc.rs
174- +++ b/src/tools/run-make-support/src/external_deps/rustdoc.rs
175- @@ -34,7 +34,6 @@ pub fn bare() -> Self {
176- #[track_caller]
177- pub fn new() -> Self {
178- let mut cmd = setup_common();
179- - cmd.arg("-L").arg(env_var_os("TARGET_RPATH_DIR"));
180- Self { cmd }
181- }
182-
183156diff --git a/src/tools/compiletest/src/runtest/run_make.rs b/src/tools/compiletest/src/runtest/run_make.rs
184157index e7ae773ffa1d3..04bc2d7787da7 100644
185158--- a/src/tools/compiletest/src/runtest/run_make.rs
186159+++ b/src/tools/compiletest/src/runtest/run_make.rs
187- @@ -329 ,7 +329 ,6 @@ impl TestCx<'_> {
160+ @@ -117 ,7 +117 ,6 @@ impl TestCx<'_> {
188161 .arg(format!("run_make_support={}", &support_lib_path.to_string_lossy()))
189162 .arg("--edition=2021")
190- .arg(&self.testpaths.file.join("rmake.rs"))
191- - .arg("-Cprefer-dynamic")
192- // Provide necessary library search paths for rustc.
193- .env(dylib_env_var(), &env::join_paths(host_dylib_search_paths).unwrap());
163+ - .arg(&self.testpaths.file.join("rmake.rs"))
164+ - .arg("-Cprefer-dynamic");
165+ + .arg(&self.testpaths.file.join("rmake.rs"));
194166
167+ // In test code we want to be very pedantic about values being silently discarded that are
168+ // annotated with \` #[must_use]\` .
195169diff --git a/tests/run-make/linker-warning/rmake.rs b/tests/run-make/linker-warning/rmake.rs
196170index 30387af428c..f7895b12961 100644
197171--- a/tests/run-make/linker-warning/rmake.rs
@@ -205,7 +179,7 @@ index 30387af428c..f7895b12961 100644
205179 regex::escape(run_make_support::build_root().to_str().unwrap()),
206180 "/build-root",
207181 )
208- .run();
182+ .normalize(r#""[^"]*\/symbols.o""#, " \\ "/symbols.o \\ "")
209183EOF
210184
211185echo " [TEST] rustc test suite"
0 commit comments