Skip to content

Commit 2e104a7

Browse files
update tests
1 parent 8c75e18 commit 2e104a7

File tree

1,044 files changed

+1153
-1163
lines changed

Some content is hidden

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

1,044 files changed

+1153
-1163
lines changed

src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ LL | #[allow(test_lint)]
2121

2222
error: aborting due to 2 previous errors
2323

24-
If you want more information on this error, try using "rustc --explain E0453"
24+
For more information about this error, try `rustc --explain E0453`.

src/test/ui-fulldeps/proc-macro/signature.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ LL | | }
1212

1313
error: aborting due to previous error
1414

15-
If you want more information on this error, try using "rustc --explain E0308"
15+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/anonymous-higher-ranked-lifetime.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<Fn(&())>, &'t0 (), fn(&(), &()
154154

155155
error: aborting due to 11 previous errors
156156

157-
If you want more information on this error, try using "rustc --explain E0631"
157+
For more information about this error, try `rustc --explain E0631`.

src/test/ui/arbitrary-self-types-not-object-safe.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ LL | let x = Box::new(5usize) as Box<Foo>;
1717

1818
error: aborting due to 2 previous errors
1919

20-
If you want more information on this error, try using "rustc --explain E0038"
20+
For more information about this error, try `rustc --explain E0038`.

src/test/ui/asm-out-assign-imm.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | asm!("mov $1, $0" : "=r"(x) : "r"(5));
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0384"
12+
For more information about this error, try `rustc --explain E0384`.

src/test/ui/associated-const-impl-wrong-lifetime.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ LL | impl<'a> Foo for &'a () {
1515

1616
error: aborting due to previous error
1717

18-
If you want more information on this error, try using "rustc --explain E0308"
18+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/associated-const-impl-wrong-type.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | const BAR: i32 = -1;
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0326"
12+
For more information about this error, try `rustc --explain E0326`.

src/test/ui/associated-type-projection-from-multiple-supertraits.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ LL | fn paint<C:BoxCar>(c: C, d: C::Color) {
4242

4343
error: aborting due to 4 previous errors
4444

45-
You've got a few errors: E0191, E0221
46-
If you want more information on an error, try using "rustc --explain E0191"
45+
Some errors occurred: E0191, E0221.
46+
For more information about an error, try `rustc --explain E0191`.

src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ LL | r = r + a;
66

77
error: aborting due to previous error
88

9-
If you want more information on this error, try using "rustc --explain E0277"
9+
For more information about this error, try `rustc --explain E0277`.

src/test/ui/associated-types-in-ambiguous-context.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ LL | fn grab(&self) -> Grab::Value;
2424

2525
error: aborting due to 3 previous errors
2626

27-
If you want more information on this error, try using "rustc --explain E0223"
27+
For more information about this error, try `rustc --explain E0223`.

src/test/ui/attr-usage-repr.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ LL | enum ESimd { A, B }
4040

4141
error: aborting due to 5 previous errors
4242

43-
If you want more information on this error, try using "rustc --explain E0517"
43+
For more information about this error, try `rustc --explain E0517`.

src/test/ui/augmented-assignments.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ LL | x; //~ value moved here
2020

2121
error: aborting due to 2 previous errors
2222

23-
You've got a few errors: E0382, E0596
24-
If you want more information on an error, try using "rustc --explain E0382"
23+
Some errors occurred: E0382, E0596.
24+
For more information about an error, try `rustc --explain E0382`.

src/test/ui/binary-op-on-double-ref.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | x % 2 == 0
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0369"
12+
For more information about this error, try `rustc --explain E0369`.

src/test/ui/blind-item-item-shadow.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ LL | use foo::foo as other_foo;
1515

1616
error: aborting due to previous error
1717

18-
If you want more information on this error, try using "rustc --explain E0255"
18+
For more information about this error, try `rustc --explain E0255`.

src/test/ui/block-result/block-must-not-have-result-do.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | true //~ ERROR mismatched types
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0308"
12+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/block-must-not-have-result-res.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ LL | true //~ ERROR mismatched types
1111

1212
error: aborting due to previous error
1313

14-
If you want more information on this error, try using "rustc --explain E0308"
14+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/block-must-not-have-result-while.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | true //~ ERROR mismatched types
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0308"
12+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/consider-removing-last-semi.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ LL | | }
2828

2929
error: aborting due to 2 previous errors
3030

31-
If you want more information on this error, try using "rustc --explain E0308"
31+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/issue-11714.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ LL | | }
1515

1616
error: aborting due to previous error
1717

18-
If you want more information on this error, try using "rustc --explain E0308"
18+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/issue-13428.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ LL | | }
3131

3232
error: aborting due to 2 previous errors
3333

34-
If you want more information on this error, try using "rustc --explain E0308"
34+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/issue-13624.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ LL | a::Enum::EnumStructVariant { x, y, z } => {
2020

2121
error: aborting due to 2 previous errors
2222

23-
If you want more information on this error, try using "rustc --explain E0308"
23+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/issue-20862.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ LL | let x = foo(5)(2);
1717

1818
error: aborting due to 2 previous errors
1919

20-
You've got a few errors: E0308, E0618
21-
If you want more information on an error, try using "rustc --explain E0308"
20+
Some errors occurred: E0308, E0618.
21+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/block-result/issue-22645.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ LL | b + 3 //~ ERROR E0277
2222

2323
error: aborting due to 2 previous errors
2424

25-
You've got a few errors: E0277, E0308
26-
If you want more information on an error, try using "rustc --explain E0277"
25+
Some errors occurred: E0277, E0308.
26+
For more information about an error, try `rustc --explain E0277`.

src/test/ui/block-result/issue-3563.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | || self.b()
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0599"
11+
For more information about this error, try `rustc --explain E0599`.

src/test/ui/block-result/issue-5500.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ LL | &panic!()
1111

1212
error: aborting due to previous error
1313

14-
If you want more information on this error, try using "rustc --explain E0308"
14+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/block-result/unexpected-return-on-unit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ LL | fn bar() -> usize {
1717

1818
error: aborting due to previous error
1919

20-
If you want more information on this error, try using "rustc --explain E0308"
20+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/bogus-tag.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | color::hsl(h, s, l) => { println!("hsl"); }
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0599"
12+
For more information about this error, try `rustc --explain E0599`.

src/test/ui/borrowck/borrowck-box-insensitivity.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,5 @@ LL | }
161161

162162
error: aborting due to 16 previous errors
163163

164-
You've got a few errors: E0382, E0502, E0503, E0505
165-
If you want more information on an error, try using "rustc --explain E0382"
164+
Some errors occurred: E0382, E0502, E0503, E0505.
165+
For more information about an error, try `rustc --explain E0382`.

src/test/ui/borrowck/borrowck-closures-two-mut.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ LL | }
150150

151151
error: aborting due to 10 previous errors
152152

153-
If you want more information on this error, try using "rustc --explain E0499"
153+
For more information about this error, try `rustc --explain E0499`.

src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ LL | spawn(move || books.push(4));
1212

1313
error: aborting due to previous error
1414

15-
If you want more information on this error, try using "rustc --explain E0373"
15+
For more information about this error, try `rustc --explain E0373`.

src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ LL | Box::new(move || books.push(4))
1212

1313
error: aborting due to previous error
1414

15-
If you want more information on this error, try using "rustc --explain E0373"
15+
For more information about this error, try `rustc --explain E0373`.

src/test/ui/borrowck/borrowck-in-static.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | Box::new(|| x) //~ ERROR cannot move out of captured outer variable
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0507"
11+
For more information about this error, try `rustc --explain E0507`.

src/test/ui/borrowck/borrowck-move-error-with-note.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ LL | n => {
3434

3535
error: aborting due to 3 previous errors
3636

37-
You've got a few errors: E0507, E0509
38-
If you want more information on an error, try using "rustc --explain E0507"
37+
Some errors occurred: E0507, E0509.
38+
For more information about an error, try `rustc --explain E0507`.

src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ LL | | Foo { string: b }] => {
1515

1616
error: aborting due to previous error
1717

18-
If you want more information on this error, try using "rustc --explain E0508"
18+
For more information about this error, try `rustc --explain E0508`.

src/test/ui/borrowck/borrowck-reinit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ LL | let _ = (1,x); //~ ERROR use of moved value: `x` (Ast)
2020

2121
error: aborting due to 2 previous errors
2222

23-
If you want more information on this error, try using "rustc --explain E0382"
23+
For more information about this error, try `rustc --explain E0382`.

src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ LL | };
3636

3737
error: aborting due to 3 previous errors
3838

39-
You've got a few errors: E0499, E0502
40-
If you want more information on an error, try using "rustc --explain E0499"
39+
Some errors occurred: E0499, E0502.
40+
For more information about an error, try `rustc --explain E0499`.

src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ LL | let a = vec[0]; //~ ERROR cannot move out
8080

8181
error: aborting due to 8 previous errors
8282

83-
You've got a few errors: E0506, E0508
84-
If you want more information on an error, try using "rustc --explain E0506"
83+
Some errors occurred: E0506, E0508.
84+
For more information about an error, try `rustc --explain E0506`.

src/test/ui/borrowck/immutable-arg.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ LL | _x = 4;
1616

1717
error: aborting due to 2 previous errors
1818

19-
If you want more information on this error, try using "rustc --explain E0384"
19+
For more information about this error, try `rustc --explain E0384`.

src/test/ui/borrowck/issue-41962.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ LL | if let Some(thing) = maybe {
5454

5555
error: aborting due to 5 previous errors
5656

57-
If you want more information on this error, try using "rustc --explain E0382"
57+
For more information about this error, try `rustc --explain E0382`.

src/test/ui/borrowck/mut-borrow-in-loop.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ LL | }
2727

2828
error: aborting due to 3 previous errors
2929

30-
If you want more information on this error, try using "rustc --explain E0499"
30+
For more information about this error, try `rustc --explain E0499`.

src/test/ui/borrowck/mut-borrow-outside-loop.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ LL | }
2121

2222
error: aborting due to 2 previous errors
2323

24-
If you want more information on this error, try using "rustc --explain E0499"
24+
For more information about this error, try `rustc --explain E0499`.

src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ LL | fn another_bound<'x: 't>(self, x: Inv<'x>, y: Inv<'t>) {
4646

4747
error: aborting due to 4 previous errors
4848

49-
You've got a few errors: E0195, E0276, E0308
50-
If you want more information on an error, try using "rustc --explain E0195"
49+
Some errors occurred: E0195, E0276, E0308.
50+
For more information about an error, try `rustc --explain E0195`.

src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | y.into_iter();
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0507"
12+
For more information about this error, try `rustc --explain E0507`.

src/test/ui/cast-as-bool.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | let u = 5 as bool;
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0054"
11+
For more information about this error, try `rustc --explain E0054`.

src/test/ui/cast-errors-issue-43825.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ LL | let error = error; //~ ERROR cannot find value `error`
66

77
error: aborting due to previous error
88

9-
If you want more information on this error, try using "rustc --explain E0425"
9+
For more information about this error, try `rustc --explain E0425`.

src/test/ui/cast-rfc0401-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | let _ = 3 as bool;
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0054"
11+
For more information about this error, try `rustc --explain E0054`.

src/test/ui/cast-to-unsized-trait-object-suggestion.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ LL | Box::new(1) as Send; //~ ERROR cast to unsized
1616

1717
error: aborting due to 2 previous errors
1818

19-
If you want more information on this error, try using "rustc --explain E0620"
19+
For more information about this error, try `rustc --explain E0620`.

src/test/ui/casts-differing-anon.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | b_raw = f_raw as *mut _; //~ ERROR is invalid
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0606"
11+
For more information about this error, try `rustc --explain E0606`.

src/test/ui/casts-issue-46365.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ LL | ipsum: Ipsum //~ ERROR cannot find type `Ipsum`
66

77
error: aborting due to previous error
88

9-
If you want more information on this error, try using "rustc --explain E0412"
9+
For more information about this error, try `rustc --explain E0412`.

src/test/ui/changing-crates.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ LL | extern crate b; //~ ERROR: found possibly newer version of crate `a` which
1111

1212
error: aborting due to previous error
1313

14-
If you want more information on this error, try using "rustc --explain E0460"
14+
For more information about this error, try `rustc --explain E0460`.

src/test/ui/check_match/issue-35609.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ LL | match Some(A) { //~ ERROR non-exhaustive
4848

4949
error: aborting due to 8 previous errors
5050

51-
If you want more information on this error, try using "rustc --explain E0004"
51+
For more information about this error, try `rustc --explain E0004`.

src/test/ui/closure-expected-type/expect-region-supply-region.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ LL | f = Some(x);
8484

8585
error: aborting due to 5 previous errors
8686

87-
If you want more information on this error, try using "rustc --explain E0308"
87+
For more information about this error, try `rustc --explain E0308`.

src/test/ui/closure_context/issue-26046-fn-mut.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ LL | Box::new(closure)
1111

1212
error: aborting due to previous error
1313

14-
If you want more information on this error, try using "rustc --explain E0525"
14+
For more information about this error, try `rustc --explain E0525`.

src/test/ui/closure_context/issue-26046-fn-once.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ LL | Box::new(closure)
1111

1212
error: aborting due to previous error
1313

14-
If you want more information on this error, try using "rustc --explain E0525"
14+
For more information about this error, try `rustc --explain E0525`.

src/test/ui/closure_context/issue-42065.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ LL | for (key, value) in dict {
1414

1515
error: aborting due to previous error
1616

17-
If you want more information on this error, try using "rustc --explain E0382"
17+
For more information about this error, try `rustc --explain E0382`.

src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | impl C { fn f() {} }
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0592"
11+
For more information about this error, try `rustc --explain E0592`.

src/test/ui/codemap_tests/empty_span.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ LL | unsafe impl Send for &'static Foo { } //~ ERROR cross-crate traits with
66

77
error: aborting due to previous error
88

9-
If you want more information on this error, try using "rustc --explain E0321"
9+
For more information about this error, try `rustc --explain E0321`.

src/test/ui/codemap_tests/huge_multispan_highlight.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | let y = &mut x; //~ ERROR cannot borrow
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0596"
12+
For more information about this error, try `rustc --explain E0596`.

src/test/ui/codemap_tests/issue-11715.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ LL | }
1010

1111
error: aborting due to previous error
1212

13-
If you want more information on this error, try using "rustc --explain E0499"
13+
For more information about this error, try `rustc --explain E0499`.

src/test/ui/codemap_tests/issue-28308.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ LL | assert!("foo");
88

99
error: aborting due to previous error
1010

11-
If you want more information on this error, try using "rustc --explain E0600"
11+
For more information about this error, try `rustc --explain E0600`.

src/test/ui/codemap_tests/one_line.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | v.push(v.pop().unwrap()); //~ ERROR cannot borrow
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0499"
12+
For more information about this error, try `rustc --explain E0499`.

src/test/ui/codemap_tests/overlapping_inherent_impls.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ LL | fn baz(&self) {}
2929

3030
error: aborting due to 3 previous errors
3131

32-
If you want more information on this error, try using "rustc --explain E0592"
32+
For more information about this error, try `rustc --explain E0592`.

src/test/ui/codemap_tests/overlapping_spans.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ LL | S {f:_s} => {} //~ ERROR cannot move out
99

1010
error: aborting due to previous error
1111

12-
If you want more information on this error, try using "rustc --explain E0509"
12+
For more information about this error, try `rustc --explain E0509`.

0 commit comments

Comments
 (0)