Skip to content

Commit 1b08cba

Browse files
committed
update (bless) test results
1 parent 270730f commit 1b08cba

9 files changed

+34
-34
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | x
99
| ^ ...but data from `x` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn foo<'a>(&'a self, x: &'a i32) -> &i32 {
1515
| ++ ++

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | if true { x } else { self }
99
| ^ ...but data from `x` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn foo<'a>(&'a self, x: &'a Foo) -> &Foo {
1515
| ++ ++

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | x.push(y);
77
| ^ ...but data from `y` flows into `x` here
88
|
99
= note: each elided lifetime in input position becomes a distinct lifetime
10-
help: consider introducing a named lifetime parameter
10+
help: consider introducing a named lifetime parameter and update trait if needed
1111
|
1212
LL | fn foo<'a>(x: &mut Vec<&'a u8>, y: &'a u8) {
1313
| ++++ ++ ++

src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
77
| this parameter and the return type are declared with different lifetimes...
88
|
99
= note: each elided lifetime in input position becomes a distinct lifetime
10-
help: consider introducing a named lifetime parameter
10+
help: consider introducing a named lifetime parameter and update trait if needed
1111
|
1212
LL | fn a<'a>(self: Pin<&'a Foo>, f: &'a Foo) -> &Foo { f }
1313
| ++++ ++ ++
@@ -21,7 +21,7 @@ LL | fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self,
2121
| this parameter and the return type are declared with different lifetimes...
2222
|
2323
= note: each elided lifetime in input position becomes a distinct lifetime
24-
help: consider introducing a named lifetime parameter
24+
help: consider introducing a named lifetime parameter and update trait if needed
2525
|
2626
LL | fn c<'a>(self: Pin<&'a Self>, f: &'a Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) }
2727
| ++++ ++ ++

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | f
99
| ^ ...but data from `f` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn ref_self<'a>(&'a self, f: &'a u32) -> &u32 {
1515
| ++++ ++ ++
@@ -25,7 +25,7 @@ LL | f
2525
| ^ ...but data from `f` is returned here
2626
|
2727
= note: each elided lifetime in input position becomes a distinct lifetime
28-
help: consider introducing a named lifetime parameter
28+
help: consider introducing a named lifetime parameter and update trait if needed
2929
|
3030
LL | fn ref_Self<'a>(self: &'a Self, f: &'a u32) -> &u32 {
3131
| ++++ ++ ++
@@ -41,7 +41,7 @@ LL | f
4141
| ^ ...but data from `f` is returned here
4242
|
4343
= note: each elided lifetime in input position becomes a distinct lifetime
44-
help: consider introducing a named lifetime parameter
44+
help: consider introducing a named lifetime parameter and update trait if needed
4545
|
4646
LL | fn box_ref_Self<'a>(self: Box<&'a Self>, f: &'a u32) -> &u32 {
4747
| ++++ ++ ++
@@ -57,7 +57,7 @@ LL | f
5757
| ^ ...but data from `f` is returned here
5858
|
5959
= note: each elided lifetime in input position becomes a distinct lifetime
60-
help: consider introducing a named lifetime parameter
60+
help: consider introducing a named lifetime parameter and update trait if needed
6161
|
6262
LL | fn pin_ref_Self<'a>(self: Pin<&'a Self>, f: &'a u32) -> &u32 {
6363
| ++++ ++ ++
@@ -73,7 +73,7 @@ LL | f
7373
| ^ ...but data from `f` is returned here
7474
|
7575
= note: each elided lifetime in input position becomes a distinct lifetime
76-
help: consider introducing a named lifetime parameter
76+
help: consider introducing a named lifetime parameter and update trait if needed
7777
|
7878
LL | fn box_box_ref_Self<'a>(self: Box<Box<&'a Self>>, f: &'a u32) -> &u32 {
7979
| ++++ ++ ++
@@ -89,7 +89,7 @@ LL | f
8989
| ^ ...but data from `f` is returned here
9090
|
9191
= note: each elided lifetime in input position becomes a distinct lifetime
92-
help: consider introducing a named lifetime parameter
92+
help: consider introducing a named lifetime parameter and update trait if needed
9393
|
9494
LL | fn box_pin_Self<'a>(self: Box<Pin<&'a Self>>, f: &'a u32) -> &u32 {
9595
| ++++ ++ ++

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | f
99
| ^ ...but data from `f` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn ref_self<'a>(&'a mut self, f: &'a u32) -> &u32 {
1515
| ++++ ++ ++
@@ -25,7 +25,7 @@ LL | f
2525
| ^ ...but data from `f` is returned here
2626
|
2727
= note: each elided lifetime in input position becomes a distinct lifetime
28-
help: consider introducing a named lifetime parameter
28+
help: consider introducing a named lifetime parameter and update trait if needed
2929
|
3030
LL | fn ref_Self<'a>(self: &'a mut Self, f: &'a u32) -> &u32 {
3131
| ++++ ++ ++
@@ -41,7 +41,7 @@ LL | f
4141
| ^ ...but data from `f` is returned here
4242
|
4343
= note: each elided lifetime in input position becomes a distinct lifetime
44-
help: consider introducing a named lifetime parameter
44+
help: consider introducing a named lifetime parameter and update trait if needed
4545
|
4646
LL | fn box_ref_Self<'a>(self: Box<&'a mut Self>, f: &'a u32) -> &u32 {
4747
| ++++ ++ ++
@@ -57,7 +57,7 @@ LL | f
5757
| ^ ...but data from `f` is returned here
5858
|
5959
= note: each elided lifetime in input position becomes a distinct lifetime
60-
help: consider introducing a named lifetime parameter
60+
help: consider introducing a named lifetime parameter and update trait if needed
6161
|
6262
LL | fn pin_ref_Self<'a>(self: Pin<&'a mut Self>, f: &'a u32) -> &u32 {
6363
| ++++ ++ ++
@@ -73,7 +73,7 @@ LL | f
7373
| ^ ...but data from `f` is returned here
7474
|
7575
= note: each elided lifetime in input position becomes a distinct lifetime
76-
help: consider introducing a named lifetime parameter
76+
help: consider introducing a named lifetime parameter and update trait if needed
7777
|
7878
LL | fn box_box_ref_Self<'a>(self: Box<Box<&'a mut Self>>, f: &'a u32) -> &u32 {
7979
| ++++ ++ ++
@@ -89,7 +89,7 @@ LL | f
8989
| ^ ...but data from `f` is returned here
9090
|
9191
= note: each elided lifetime in input position becomes a distinct lifetime
92-
help: consider introducing a named lifetime parameter
92+
help: consider introducing a named lifetime parameter and update trait if needed
9393
|
9494
LL | fn box_pin_ref_Self<'a>(self: Box<Pin<&'a mut Self>>, f: &'a u32) -> &u32 {
9595
| ++++ ++ ++

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | f
99
| ^ ...but data from `f` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn ref_Struct<'a>(self: &'a mut Struct, f: &'a u32) -> &u32 {
1515
| ++++ ++ ++
@@ -25,7 +25,7 @@ LL | f
2525
| ^ ...but data from `f` is returned here
2626
|
2727
= note: each elided lifetime in input position becomes a distinct lifetime
28-
help: consider introducing a named lifetime parameter
28+
help: consider introducing a named lifetime parameter and update trait if needed
2929
|
3030
LL | fn box_ref_Struct<'a>(self: Box<&'a mut Struct>, f: &'a u32) -> &u32 {
3131
| ++++ ++ ++
@@ -41,7 +41,7 @@ LL | f
4141
| ^ ...but data from `f` is returned here
4242
|
4343
= note: each elided lifetime in input position becomes a distinct lifetime
44-
help: consider introducing a named lifetime parameter
44+
help: consider introducing a named lifetime parameter and update trait if needed
4545
|
4646
LL | fn pin_ref_Struct<'a>(self: Pin<&'a mut Struct>, f: &'a u32) -> &u32 {
4747
| ++++ ++ ++
@@ -57,7 +57,7 @@ LL | f
5757
| ^ ...but data from `f` is returned here
5858
|
5959
= note: each elided lifetime in input position becomes a distinct lifetime
60-
help: consider introducing a named lifetime parameter
60+
help: consider introducing a named lifetime parameter and update trait if needed
6161
|
6262
LL | fn box_box_ref_Struct<'a>(self: Box<Box<&'a mut Struct>>, f: &'a u32) -> &u32 {
6363
| ++++ ++ ++
@@ -73,7 +73,7 @@ LL | f
7373
| ^ ...but data from `f` is returned here
7474
|
7575
= note: each elided lifetime in input position becomes a distinct lifetime
76-
help: consider introducing a named lifetime parameter
76+
help: consider introducing a named lifetime parameter and update trait if needed
7777
|
7878
LL | fn box_pin_ref_Struct<'a>(self: Box<Pin<&'a mut Struct>>, f: &'a u32) -> &u32 {
7979
| ++++ ++ ++

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | f
99
| ^ ...but data from `f` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn ref_self<'a>(&'a self, f: &'a u32) -> &u32 {
1515
| ++++ ++ ++
@@ -25,7 +25,7 @@ LL | f
2525
| ^ ...but data from `f` is returned here
2626
|
2727
= note: each elided lifetime in input position becomes a distinct lifetime
28-
help: consider introducing a named lifetime parameter
28+
help: consider introducing a named lifetime parameter and update trait if needed
2929
|
3030
LL | fn ref_Self<'a>(self: &'a Self, f: &'a u32) -> &u32 {
3131
| ++++ ++ ++
@@ -41,7 +41,7 @@ LL | f
4141
| ^ ...but data from `f` is returned here
4242
|
4343
= note: each elided lifetime in input position becomes a distinct lifetime
44-
help: consider introducing a named lifetime parameter
44+
help: consider introducing a named lifetime parameter and update trait if needed
4545
|
4646
LL | fn box_ref_Self<'a>(self: Box<&'a Self>, f: &'a u32) -> &u32 {
4747
| ++++ ++ ++
@@ -57,7 +57,7 @@ LL | f
5757
| ^ ...but data from `f` is returned here
5858
|
5959
= note: each elided lifetime in input position becomes a distinct lifetime
60-
help: consider introducing a named lifetime parameter
60+
help: consider introducing a named lifetime parameter and update trait if needed
6161
|
6262
LL | fn pin_ref_Self<'a>(self: Pin<&'a Self>, f: &'a u32) -> &u32 {
6363
| ++++ ++ ++
@@ -73,7 +73,7 @@ LL | f
7373
| ^ ...but data from `f` is returned here
7474
|
7575
= note: each elided lifetime in input position becomes a distinct lifetime
76-
help: consider introducing a named lifetime parameter
76+
help: consider introducing a named lifetime parameter and update trait if needed
7777
|
7878
LL | fn box_box_ref_Self<'a>(self: Box<Box<&'a Self>>, f: &'a u32) -> &u32 {
7979
| ++++ ++ ++
@@ -89,7 +89,7 @@ LL | f
8989
| ^ ...but data from `f` is returned here
9090
|
9191
= note: each elided lifetime in input position becomes a distinct lifetime
92-
help: consider introducing a named lifetime parameter
92+
help: consider introducing a named lifetime parameter and update trait if needed
9393
|
9494
LL | fn box_pin_ref_Self<'a>(self: Box<Pin<&'a Self>>, f: &'a u32) -> &u32 {
9595
| ++++ ++ ++
@@ -105,7 +105,7 @@ LL | f
105105
| ^ ...but data from `f` is returned here
106106
|
107107
= note: each elided lifetime in input position becomes a distinct lifetime
108-
help: consider introducing a named lifetime parameter
108+
help: consider introducing a named lifetime parameter and update trait if needed
109109
|
110110
LL | fn wrap_ref_Self_Self<'a>(self: Wrap<&'a Self, Self>, f: &'a u8) -> &u8 {
111111
| ++++ ++ ++

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | f
99
| ^ ...but data from `f` is returned here
1010
|
1111
= note: each elided lifetime in input position becomes a distinct lifetime
12-
help: consider introducing a named lifetime parameter
12+
help: consider introducing a named lifetime parameter and update trait if needed
1313
|
1414
LL | fn ref_Struct<'a>(self: &'a Struct, f: &'a u32) -> &u32 {
1515
| ++++ ++ ++
@@ -25,7 +25,7 @@ LL | f
2525
| ^ ...but data from `f` is returned here
2626
|
2727
= note: each elided lifetime in input position becomes a distinct lifetime
28-
help: consider introducing a named lifetime parameter
28+
help: consider introducing a named lifetime parameter and update trait if needed
2929
|
3030
LL | fn box_ref_Struct<'a>(self: Box<&'a Struct>, f: &'a u32) -> &u32 {
3131
| ++++ ++ ++
@@ -41,7 +41,7 @@ LL | f
4141
| ^ ...but data from `f` is returned here
4242
|
4343
= note: each elided lifetime in input position becomes a distinct lifetime
44-
help: consider introducing a named lifetime parameter
44+
help: consider introducing a named lifetime parameter and update trait if needed
4545
|
4646
LL | fn pin_ref_Struct<'a>(self: Pin<&'a Struct>, f: &'a u32) -> &u32 {
4747
| ++++ ++ ++
@@ -57,7 +57,7 @@ LL | f
5757
| ^ ...but data from `f` is returned here
5858
|
5959
= note: each elided lifetime in input position becomes a distinct lifetime
60-
help: consider introducing a named lifetime parameter
60+
help: consider introducing a named lifetime parameter and update trait if needed
6161
|
6262
LL | fn box_box_ref_Struct<'a>(self: Box<Box<&'a Struct>>, f: &'a u32) -> &u32 {
6363
| ++++ ++ ++
@@ -73,7 +73,7 @@ LL | f
7373
| ^ ...but data from `f` is returned here
7474
|
7575
= note: each elided lifetime in input position becomes a distinct lifetime
76-
help: consider introducing a named lifetime parameter
76+
help: consider introducing a named lifetime parameter and update trait if needed
7777
|
7878
LL | fn box_pin_Struct<'a>(self: Box<Pin<&'a Struct>>, f: &'a u32) -> &u32 {
7979
| ++++ ++ ++

0 commit comments

Comments
 (0)