Skip to content

Commit 4f21b5b

Browse files
committed
Update changed ui tests
1 parent 3c4f5bf commit 4f21b5b

File tree

167 files changed

+335
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+335
-1
lines changed

tests/compile-test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ fn config(dir: &'static str, mode: &'static str) -> compiletest::Config {
4646
config.target_rustcflags = Some(format!("-L {0} -L {0}/deps -Dwarnings", host_libs().display()));
4747

4848
config.mode = cfg_mode;
49-
config.build_base = {
49+
config.build_base = if rustc_test_suite().is_some() {
50+
PathBuf::from("/tmp/clippy_test_build_base")
51+
} else {
5052
let mut path = std::env::current_dir().unwrap();
5153
path.push("target/debug/test_build_base");
5254
path

tests/ui/absurd-extreme-comparisons.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,5 @@ error: <-comparison of unit values detected. This will always be false
143143
|
144144
= note: `-D unit-cmp` implied by `-D warnings`
145145

146+
error: aborting due to 18 previous errors
147+

tests/ui/approx_const.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,5 @@ error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it
114114
55 | let my_sq2 = 1.4142;
115115
| ^^^^^^
116116

117+
error: aborting due to 19 previous errors
118+

tests/ui/arithmetic.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ error: floating-point arithmetic detected
6969
29 | -f;
7070
| ^^
7171

72+
error: aborting due to 11 previous errors
73+

tests/ui/array_indexing.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,5 @@ error: range is out of bounds
116116
44 | &empty[..4];
117117
| ^^^^^^^^^^
118118

119+
error: aborting due to 19 previous errors
120+

tests/ui/assign_ops.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,5 @@ error: manual implementation of an assign operation
134134
40 | s = s + "bla";
135135
| ^^^^^^^^^^^^^ help: replace it with: `s += "bla"`
136136

137+
error: aborting due to 22 previous errors
138+

tests/ui/assign_ops2.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ error: variable appears on both sides of an assignment operation
4848
15 | a &= a & 1;
4949
| ^^^^^^^^^^ help: replace it with: `a &= 1`
5050

51+
error: aborting due to 8 previous errors
52+

tests/ui/attrs.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ error: the since field must contain a semver-compliant version
2020
30 | #[deprecated(since = "1")]
2121
| ^^^^^^^^^^^
2222

23+
error: aborting due to 3 previous errors
24+

tests/ui/bit_masks.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,5 @@ error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared
106106
55 | x | 1 >= 8;
107107
| ^^^^^^^^^^
108108

109+
error: aborting due to 17 previous errors
110+

tests/ui/blacklisted_name.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,5 @@ error: use of a blacklisted/placeholder name `baz`
8484
35 | if let Some(ref mut baz) = Some(42) {}
8585
| ^^^
8686

87+
error: aborting due to 14 previous errors
88+

0 commit comments

Comments
 (0)