Skip to content

Commit 215de3b

Browse files
committed
Register new eror code
1 parent bdfb9b1 commit 215de3b

13 files changed

+15
-4
lines changed

src/test/ui/async-await/issues/issue-62097.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ LL | foo(|| self.bar()).await;
1515

1616
error: aborting due to previous error
1717

18+
For more information about this error, try `rustc --explain E0758`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,5 @@ LL | fn explicit4<'a>(x: &'static i32) -> Box<dyn Debug + 'static> { Box::new(x)
183183

184184
error: aborting due to 12 previous errors
185185

186-
Some errors have detailed explanations: E0310, E0621, E0623.
186+
Some errors have detailed explanations: E0310, E0621, E0623, E0758.
187187
For more information about an error, try `rustc --explain E0310`.

src/test/ui/impl-trait/static-return-lifetime-infered.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ LL | fn iter_values<'a>(&'a self) -> impl Iterator<Item=u32> + 'a {
4040

4141
error: aborting due to 2 previous errors
4242

43+
For more information about this error, try `rustc --explain E0758`.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ LL | fn foo<T: Any>(value: &T) -> Box<dyn Any + '_> {
1313

1414
error: aborting due to previous error
1515

16+
For more information about this error, try `rustc --explain E0758`.

src/test/ui/object-lifetime/object-lifetime-default-from-box-error.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ LL | ss.r = b;
2323

2424
error: aborting due to 2 previous errors
2525

26-
For more information about this error, try `rustc --explain E0621`.
26+
Some errors have detailed explanations: E0621, E0758.
27+
For more information about an error, try `rustc --explain E0621`.

src/test/ui/regions/region-object-lifetime-in-coercion.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ LL | Box::new(v)
7979

8080
error: aborting due to 4 previous errors
8181

82-
For more information about this error, try `rustc --explain E0495`.
82+
Some errors have detailed explanations: E0495, E0758.
83+
For more information about an error, try `rustc --explain E0495`.

src/test/ui/regions/regions-close-object-into-object-2.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ LL | fn g<'a, T: 'static>(v: std::boxed::Box<(dyn A<T> + 'static)>) -> Box<dyn X
1717

1818
error: aborting due to previous error
1919

20+
For more information about this error, try `rustc --explain E0758`.

src/test/ui/regions/regions-close-object-into-object-4.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ LL | fn i<'a, T, U>(v: std::boxed::Box<(dyn A<U> + 'static)>) -> Box<dyn X + 'st
1717

1818
error: aborting due to previous error
1919

20+
For more information about this error, try `rustc --explain E0758`.

src/test/ui/regions/regions-proc-bound-capture.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | fn static_proc(x: &'static isize) -> Box<dyn FnMut() -> (isize) + 'static>
1818

1919
error: aborting due to previous error
2020

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ LL | async fn f(self: Pin<&Self>) -> impl Clone { self }
1414

1515
error: aborting due to previous error
1616

17+
For more information about this error, try `rustc --explain E0758`.

src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ LL | fn f(self: Pin<&Self>) -> impl Clone + '_ { self }
1818

1919
error: aborting due to previous error
2020

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

src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ LL | fn bak<'a, G, T>(g: G, dest: &'a mut T) -> impl FnOnce() + 'a
125125

126126
error: aborting due to 7 previous errors
127127

128-
Some errors have detailed explanations: E0261, E0309, E0621.
128+
Some errors have detailed explanations: E0261, E0309, E0621, E0758.
129129
For more information about an error, try `rustc --explain E0261`.

src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ LL | fn a<T>(items: &[T]) -> Box<dyn Iterator<Item=&T> + '_> {
1414

1515
error: aborting due to previous error
1616

17+
For more information about this error, try `rustc --explain E0758`.

0 commit comments

Comments
 (0)