Skip to content

Commit c076f65

Browse files
authored
Unrolled build for rust-lang#136504
Rollup merge of rust-lang#136504 - lqd:more-compare-modes, r=jieyouxu Fix last compare-mode false negatives in tests This PR is a continuation of rust-lang#136310 and fixes the last remaining cases of false negatives when running tests under a compare-mode. With these normalizations, all the compare-mode failures in `next-solver` (and `polonius`) should now be real, actual differences in diagnostics.
2 parents 7b31983 + 62d0771 commit c076f65

File tree

10 files changed

+11
-9
lines changed

10 files changed

+11
-9
lines changed

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

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;

tests/ui/diagnostic-width/E0271.ascii.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ note: expected this to be `Foo`
1515
LL | type Error = E;
1616
| ^
1717
= note: required for the cast from `Box<Result<..., ()>>` to `Box<...>`
18-
= note: the full name for the type has been written to '$TEST_BUILD_DIR/diagnostic-width/E0271.ascii/E0271.long-type-hash.txt'
18+
= note: the full name for the type has been written to '$TEST_BUILD_DIR/$FILE.long-type-hash.txt'
1919
= note: consider using `--verbose` to print the full type name to the console
2020

2121
error: aborting due to 1 previous error

tests/ui/diagnostic-width/E0271.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ revisions: ascii unicode
22
//@[ascii] compile-flags: --diagnostic-width=40 -Zwrite-long-types-to-disk=yes
33
//@[unicode] compile-flags: -Zunstable-options --error-format=human-unicode --diagnostic-width=40 -Zwrite-long-types-to-disk=yes
4-
//@ normalize-stderr: "long-type-\d+" -> "long-type-hash"
4+
//@ normalize-stderr: "'\$TEST_BUILD_DIR/.*\.long-type-\d+.txt'" -> "'$$TEST_BUILD_DIR/$$FILE.long-type-hash.txt'"
55
trait Future {
66
type Error;
77
}

tests/ui/diagnostic-width/E0271.unicode.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ note: expected this to be `Foo`
1515
LL │ type Error = E;
1616
│ ━
1717
├ note: required for the cast from `Box<Result<..., ()>>` to `Box<...>`
18-
├ note: the full name for the type has been written to '$TEST_BUILD_DIR/diagnostic-width/E0271.unicode/E0271.long-type-hash.txt'
18+
├ note: the full name for the type has been written to '$TEST_BUILD_DIR/$FILE.long-type-hash.txt'
1919
╰ note: consider using `--verbose` to print the full type name to the console
2020

2121
error: aborting due to 1 previous error

tests/ui/error-codes/E0462.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ aux-build:found-staticlib.rs
22

3-
//@ normalize-stderr: "\.nll/" -> "/"
3+
//@ normalize-stderr: "E0462\..+/auxiliary/" -> "E0462/auxiliary/"
44
//@ normalize-stderr: "\\\?\\" -> ""
55
//@ normalize-stderr: "(lib)?found_staticlib\.[a-z]+" -> "libfound_staticlib.somelib"
66

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

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

tests/ui/json/json-multiple.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ build-pass
22
//@ ignore-pass (different metadata emitted in different modes)
33
//@ compile-flags: --json=diagnostic-short --json artifacts --error-format=json
4+
//@ normalize-stderr: "json-multiple\..+/libjson_multiple.rlib" -> "json-multiple/libjson_multiple.rlib"
45

56
#![crate_type = "lib"]

tests/ui/json/json-options.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ build-pass
22
//@ ignore-pass (different metadata emitted in different modes)
33
//@ compile-flags: --json=diagnostic-short,artifacts --error-format=json
4+
//@ normalize-stderr: "json-options\..+/libjson_options.rlib" -> "json-options/libjson_options.rlib"
45

56
#![crate_type = "lib"]

0 commit comments

Comments
 (0)