Skip to content

Commit f23d18b

Browse files
committed
bless trivial polonius diagnostics changes
1 parent 1392842 commit f23d18b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: lifetime may not live long enough
2-
--> $DIR/error-handling.rs:23:16
2+
--> $DIR/error-handling.rs:22:16
33
|
44
LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
55
| -- -- lifetime `'b` defined here

src/test/ui/nll/outlives-suggestion-simple.polonius.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,4 @@ LL | Bar2::new(&self)
121121

122122
error: aborting due to 10 previous errors
123123

124+
For more information about this error, try `rustc --explain E0521`.

src/test/ui/nll/user-annotations/closure-substs.polonius.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ error: lifetime may not live long enough
2121
--> $DIR/closure-substs.rs:15:16
2222
|
2323
LL | |x: &i32| -> &'static i32 {
24-
| - ------------ return type of closure is &'2 i32
24+
| - - let's call the lifetime of this reference `'2`
2525
| |
2626
| let's call the lifetime of this reference `'1`
2727
LL | return x;
@@ -58,3 +58,4 @@ LL | b(x);
5858

5959
error: aborting due to 6 previous errors
6060

61+
For more information about this error, try `rustc --explain E0521`.

0 commit comments

Comments
 (0)