Skip to content

Commit bda6742

Browse files
committed
fix crateresolve*.rs tests and duplicates for compare modes
- duplicates of crateresolve1 are used in a couple error-codes tests - also fix the note in crateresolve1 to link to these other duplicates, now that E0523 has been merged into E0464
1 parent 7daf4cf commit bda6742

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: tests/ui/crate-loading/crateresolve1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
//@ aux-build:crateresolve1-2.rs
33
//@ aux-build:crateresolve1-3.rs
44

5-
//@ normalize-stderr: "\.nll/" -> "/"
5+
//@ normalize-stderr: "crateresolve1\..+/auxiliary/" -> "crateresolve1/auxiliary/"
66
//@ normalize-stderr: "\\\?\\" -> ""
77
//@ normalize-stderr: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib"
88

9-
// NOTE: This test is duplicated at `tests/ui/error-codes/E0464.rs`.
9+
// NOTE: This test is duplicated at `tests/ui/error-codes/E0464.rs` and `E0523.rs`.
1010

1111
extern crate crateresolve1;
1212
//~^ ERROR multiple candidates for `rlib` dependency `crateresolve1` found

Diff for: tests/ui/crate-loading/crateresolve2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ aux-build:crateresolve2-2.rs
55
//@ aux-build:crateresolve2-3.rs
66

7-
//@ normalize-stderr: "\.nll/" -> "/"
7+
//@ normalize-stderr: "crateresolve2\..+/auxiliary/" -> "crateresolve2/auxiliary/"
88
//@ normalize-stderr: "\\\?\\" -> ""
99

1010
extern crate crateresolve2;

Diff for: tests/ui/error-codes/E0464.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ aux-build:crateresolve1-2.rs
33
//@ aux-build:crateresolve1-3.rs
44

5-
//@ normalize-stderr: "\.nll/" -> "/"
5+
//@ normalize-stderr: "E0464\..+/auxiliary/" -> "E0464/auxiliary/"
66
//@ normalize-stderr: "\\\?\\" -> ""
77
//@ normalize-stderr: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib"
88

Diff for: tests/ui/error-codes/E0523.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ aux-build:crateresolve1-2.rs
33
//@ aux-build:crateresolve1-3.rs
44

5-
//@ normalize-stderr: "\.nll/" -> "/"
5+
//@ normalize-stderr: "E0523\..+/auxiliary/" -> "E0523/auxiliary/"
66
//@ normalize-stderr: "\\\?\\" -> ""
77
//@ normalize-stderr: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib"
88

0 commit comments

Comments
 (0)