about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-29 18:43:48 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-11-29 18:59:24 +0000
commit998ff2f0cd2902e86178d35b01ba78fe4633f80b (patch)
treea877bf121a841b271beeb250f4dfe92ae9ed66ce /src/tools
parente97e15dea55d61d68732bc030be1a44d8a51a1e9 (diff)
downloadrust-998ff2f0cd2902e86178d35b01ba78fe4633f80b.tar.gz
rust-998ff2f0cd2902e86178d35b01ba78fe4633f80b.zip
Move the `crate-loading` test to use `diff` output
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/run-make-support/src/external_deps/rustc.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/run-make-support/src/external_deps/rustc.rs b/src/tools/run-make-support/src/external_deps/rustc.rs
index 494daeca963..ffe10092cc2 100644
--- a/src/tools/run-make-support/src/external_deps/rustc.rs
+++ b/src/tools/run-make-support/src/external_deps/rustc.rs
@@ -227,6 +227,12 @@ impl Rustc {
         self
     }
 
+    /// Normalize the line number in the stderr output
+    pub fn ui_testing(&mut self) -> &mut Self {
+        self.cmd.arg(format!("-Zui-testing"));
+        self
+    }
+
     /// Specify the target triple, or a path to a custom target json spec file.
     pub fn target<S: AsRef<str>>(&mut self, target: S) -> &mut Self {
         let target = target.as_ref();