Skip to content

Commit ffc1c5a

Browse files
Update ui tests
1 parent b7c0e46 commit ffc1c5a

File tree

70 files changed

+78
-8
lines changed

Some content is hidden

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

70 files changed

+78
-8
lines changed

src/test/ui/associated-type-bounds/implied-region-constraints.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | let _failure_proves_not_implied_outlives_region_b: &'b T = &x;
1818

1919
error: aborting due to 2 previous errors
2020

21+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let z: I::A = if cond { x } else { y };
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/associated-types-subtyping-1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | let _c: <T as Trait<'a>>::Type = b;
1818

1919
error: aborting due to 2 previous errors
2020

21+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ LL | (a, b)
2222

2323
error: aborting due to 2 previous errors
2424

25+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/cache/project-fn-ret-invariant.krisskross.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ LL | let b = bar(foo, x);
2121

2222
error: aborting due to 2 previous errors
2323

24+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/associated-types/cache/project-fn-ret-invariant.oneuse.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let b = bar(f, y);
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/async-await/issues/issue-63388-1.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | foo
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | S { pointer: &mut *p.pointer }
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/continue-after-missing-main.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ LL | let _: AdaptedMatrixProvider<'original_data, MP> = tableau.provider().c
2121

2222
error: aborting due to 2 previous errors
2323

24-
For more information about this error, try `rustc --explain E0601`.
24+
Some errors have detailed explanations: E0601, E0623.
25+
For more information about an error, try `rustc --explain E0601`.

src/test/ui/impl-trait/must_outlive_least_region_or_bound.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ LL | fn ty_param_wont_outlive_static<T:Debug>(x: T) -> impl Debug + 'static {
7777

7878
error: aborting due to 5 previous errors
7979

80-
For more information about this error, try `rustc --explain E0310`.
80+
Some errors have detailed explanations: E0310, E0623.
81+
For more information about an error, try `rustc --explain E0310`.

src/test/ui/in-band-lifetimes/mismatched.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ LL | fn foo2(x: &'a u32, y: &'b u32) -> &'a u32 { y }
1616

1717
error: aborting due to 2 previous errors
1818

19-
For more information about this error, try `rustc --explain E0621`.
19+
Some errors have detailed explanations: E0621, E0623.
20+
For more information about an error, try `rustc --explain E0621`.

src/test/ui/in-band-lifetimes/mismatched_trait_impl.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ LL | x
2222

2323
error: aborting due to 2 previous errors
2424

25+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/issues/issue-17728.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ LL | | }
2929

3030
error: aborting due to 2 previous errors
3131

32-
For more information about this error, try `rustc --explain E0308`.
32+
Some errors have detailed explanations: E0308, E0623.
33+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | if x > y { x } else { y }
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | x
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | if true { x } else { self }
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | x.push(z);
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | let a: &mut Vec<Ref<i32>> = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | let a: &mut Vec<Ref<i32>> = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | *v = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ LL | z.push((x,y));
1616

1717
error: aborting due to 2 previous errors
1818

19+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.b = y.b;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.a = x.b;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.stderr

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

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | y = x.b;
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.b = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.b = x;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.b = y;
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.stderr

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

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | if true { x } else { self }
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.push(z);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | y.push(z);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | x.push(y);
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/object-lifetime/object-lifetime-default-mybox.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ LL | fn load2<'a>(ss: &MyBox<dyn SomeTrait + 'a>) -> MyBox<dyn SomeTrait + 'a> {
2727

2828
error: aborting due to 2 previous errors
2929

30-
For more information about this error, try `rustc --explain E0308`.
30+
Some errors have detailed explanations: E0308, E0623.
31+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ LL | let _: fn(&mut &isize, &mut &isize) = a;
2727

2828
error: aborting due to 3 previous errors
2929

30-
For more information about this error, try `rustc --explain E0308`.
30+
Some errors have detailed explanations: E0308, E0623.
31+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
3838

3939
error: aborting due to 4 previous errors
4040

41-
For more information about this error, try `rustc --explain E0308`.
41+
Some errors have detailed explanations: E0308, E0623.
42+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | a.bigger_region(b)
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | f.method(b);
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-creating-enums3.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | Ast::Add(x, y)
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-free-region-ordering-callee.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ LL | let z: &'b usize = &*x;
2222

2323
error: aborting due to 2 previous errors
2424

25+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-free-region-ordering-caller.migrate.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ LL | let z: Option<&'a &'b usize> = None;
2929

3030
error: aborting due to 3 previous errors
3131

32+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-infer-contravariance-due-to-decl.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ LL | let _: Contravariant<'long> = c;
1212

1313
error: aborting due to previous error
1414

15+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-infer-covariance-due-to-decl.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let _: Covariant<'short> = c;
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-lifetime-bounds-on-fns.stderr

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ LL | let _: fn(&mut &isize, &mut &isize) = a;
2727

2828
error: aborting due to 3 previous errors
2929

30-
For more information about this error, try `rustc --explain E0308`.
30+
Some errors have detailed explanations: E0308, E0623.
31+
For more information about an error, try `rustc --explain E0308`.

src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | &mut ***p
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ LL | &mut **p
1010

1111
error: aborting due to previous error
1212

13+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ LL | let _: S<'long, 'long> = c;
99

1010
error: aborting due to previous error
1111

12+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-contravariant-use-covariant.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ LL | let _: Contravariant<'long> = c;
1212

1313
error: aborting due to previous error
1414

15+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-covariant-use-contravariant.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let _: Covariant<'short> = c;
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/regions/regions-variance-invariant-use-contravariant.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ LL | let _: Invariant<'short> = c;
1111

1212
error: aborting due to previous error
1313

14+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
2424

2525
error: aborting due to 3 previous errors
2626

27+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ LL | fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
2424

2525
error: aborting due to 3 previous errors
2626

27+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/lt-ref-self-async.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/lt-ref-self.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-self-async.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-self.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ LL | f
6060

6161
error: aborting due to 6 previous errors
6262

63+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-struct-async.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ LL | f
5050

5151
error: aborting due to 5 previous errors
5252

53+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-mut-struct.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ LL | f
5050

5151
error: aborting due to 5 previous errors
5252

53+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-self-async.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ LL | f
7070

7171
error: aborting due to 7 previous errors
7272

73+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-self.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ LL | f
7070

7171
error: aborting due to 7 previous errors
7272

73+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-struct-async.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ LL | f
5050

5151
error: aborting due to 5 previous errors
5252

53+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/self/elision/ref-struct.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ LL | f
5050

5151
error: aborting due to 5 previous errors
5252

53+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); }
88

99
error: aborting due to previous error
1010

11+
For more information about this error, try `rustc --explain E0623`.

src/test/ui/variance/variance-cell-is-invariant.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ LL | let _: Foo<'long> = c;
1212

1313
error: aborting due to previous error
1414

15+
For more information about this error, try `rustc --explain E0623`.

0 commit comments

Comments
 (0)