Skip to content

Commit 1805d44

Browse files
committed
Update UI tests which relied on old behavior of constructing a default error handler every time
`early_warn` is called
1 parent 212f1a9 commit 1805d44

7 files changed

+7
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// compile-flags: --cfg a(b=c)
1+
// compile-flags: --error-format=human --cfg a(b=c)
22
// error-pattern: invalid `--cfg` argument: `a(b=c)` (expected `key` or `key="value"`, ensure escaping is appropriate for your shell, try 'key="value"' or key=\"value\")
33
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// compile-flags: --cfg a{b}
1+
// compile-flags: --error-format=human --cfg a{b}
22
// error-pattern: invalid `--cfg` argument: `a{b}` (expected `key` or `key="value"`)
33
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// compile-flags: --cfg a(b)
1+
// compile-flags: --error-format=human --cfg a(b)
22
// error-pattern: invalid `--cfg` argument: `a(b)` (expected `key` or `key="value"`)
33
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// compile-flags: --cfg a{
1+
// compile-flags: --error-format=human --cfg a{
22
// error-pattern: invalid `--cfg` argument: `a{` (expected `key` or `key="value"`)
33
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// compile-flags: --cfg )
1+
// compile-flags: --error-format=human --cfg )
22
// error-pattern: invalid `--cfg` argument: `)` (expected `key` or `key="value"`)
33
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Test for missing quotes around value, issue #66450.
2-
// compile-flags: --cfg key=value
2+
// compile-flags: --error-format=human --cfg key=value
33
// error-pattern: invalid `--cfg` argument: `key=value` (expected `key` or `key="value"`, ensure escaping is appropriate for your shell, try 'key="value"' or key=\"value\")
44
fn main() {}

tests/ui/conditional-compilation/cfg-empty-codemap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tests that empty source_maps don't ICE (#23301)
22

3-
// compile-flags: --cfg ""
3+
// compile-flags: --error-format=human --cfg ""
44

55
// error-pattern: invalid `--cfg` argument: `""` (expected `key` or `key="value"`)
66

0 commit comments

Comments
 (0)