about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2021-08-03 18:59:52 +0200
committerRémy Rakic <remy.rakic+github@gmail.com>2021-08-03 20:29:30 +0200
commitf23d18b976387cf6a80d643943a29bcbbd9428fd (patch)
treefcb52ad92463a24f881a870479ebb98173450ca7 /src
parent1392842966f1ee58bf03da26648a0483941844ac (diff)
downloadrust-f23d18b976387cf6a80d643943a29bcbbd9428fd.tar.gz
rust-f23d18b976387cf6a80d643943a29bcbbd9428fd.zip
bless trivial polonius diagnostics changes
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr2
-rw-r--r--src/test/ui/nll/outlives-suggestion-simple.polonius.stderr1
-rw-r--r--src/test/ui/nll/user-annotations/closure-substs.polonius.stderr3
3 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr b/src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr
index 6ce3aaf49eb..ccd0040030d 100644
--- a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr
+++ b/src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr
@@ -1,5 +1,5 @@
 error: lifetime may not live long enough
-  --> $DIR/error-handling.rs:23:16
+  --> $DIR/error-handling.rs:22:16
    |
 LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
    |        --  -- lifetime `'b` defined here
diff --git a/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr b/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr
index dbbda62d208..c00288f2e3c 100644
--- a/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr
+++ b/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr
@@ -121,3 +121,4 @@ LL |         Bar2::new(&self)
 
 error: aborting due to 10 previous errors
 
+For more information about this error, try `rustc --explain E0521`.
diff --git a/src/test/ui/nll/user-annotations/closure-substs.polonius.stderr b/src/test/ui/nll/user-annotations/closure-substs.polonius.stderr
index 46b6c04dcbc..af159a6cd1b 100644
--- a/src/test/ui/nll/user-annotations/closure-substs.polonius.stderr
+++ b/src/test/ui/nll/user-annotations/closure-substs.polonius.stderr
@@ -21,7 +21,7 @@ error: lifetime may not live long enough
   --> $DIR/closure-substs.rs:15:16
    |
 LL |     |x: &i32| -> &'static i32 {
-   |         -        ------------ return type of closure is &'2 i32
+   |         -        - let's call the lifetime of this reference `'2`
    |         |
    |         let's call the lifetime of this reference `'1`
 LL |         return x;
@@ -58,3 +58,4 @@ LL |         b(x);
 
 error: aborting due to 6 previous errors
 
+For more information about this error, try `rustc --explain E0521`.