File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
compiler/rustc_codegen_cranelift/scripts
tests/run-make/linker-warning Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -151,20 +151,6 @@ rm tests/ui/process/process-panic-after-fork.rs # same
151
151
cp ../dist/bin/rustdoc-clif ../dist/bin/rustdoc # some tests expect bin/rustdoc to exist
152
152
153
153
cat << EOF | git apply -
154
- diff --git a/tests/run-make/linker-warning/rmake.rs b/tests/run-make/linker-warning/rmake.rs
155
- index 30387af428c..f7895b12961 100644
156
- --- a/tests/run-make/linker-warning/rmake.rs
157
- +++ b/tests/run-make/linker-warning/rmake.rs
158
- @@ -57,7 +57,8 @@ fn main() {
159
- .actual_text("(linker error)", out.stderr())
160
- - .normalize(r#"/rustc[^/]*/"#, "/rustc/")
161
- + .normalize(r#"/tmp/rustc[^/]*/"#, "/tmp/rustc/")
162
- + .normalize("libpanic_abort", "libpanic_unwind")
163
- .normalize(
164
- regex::escape(run_make_support::build_root().to_str().unwrap()),
165
- "/build-root",
166
- )
167
- .normalize(r#""[^"]*\/symbols.o""#, "\\ "/symbols.o\\ "")
168
154
diff --git a/src/tools/compiletest/src/runtest/run_make.rs b/src/tools/compiletest/src/runtest/run_make.rs
169
155
index 073116933bd..c3e4578204d 100644
170
156
--- a/src/tools/compiletest/src/runtest/run_make.rs
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ fn main() {
57
57
diff ( )
58
58
. expected_file ( "short-error.txt" )
59
59
. actual_text ( "(linker error)" , out. stderr ( ) )
60
- . normalize ( r#"/rustc[^/]*/"# , "/rustc/" )
60
+ . normalize ( r#"/rustc[^/_-]*/"# , "/rustc/" )
61
+ . normalize ( "libpanic_abort" , "libpanic_unwind" )
61
62
. normalize (
62
63
regex:: escape ( run_make_support:: build_root ( ) . to_str ( ) . unwrap ( ) ) ,
63
64
"/build-root" ,
You can’t perform that action at this time.
0 commit comments