Skip to content

Commit 45980e8

Browse files
committed
bless you nll
1 parent 2ff337a commit 45980e8

7 files changed

+32
-32
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | ) -> &dyn Foo
55
| ^^^^^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#27r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#22r
88

99
error: lifetime may not live long enough
1010
--> $DIR/issue-63388-1.rs:15:5

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
55
| ^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
88

99
error: lifetime may not live long enough
1010
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:10:50
@@ -30,7 +30,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
3030
LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
3131
| ^^^
3232
|
33-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
33+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
3434

3535
error: lifetime may not live long enough
3636
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:19:62

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | async fn ref_self(&self, f: &u32) -> &u32 {
55
| ^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#28r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
88

99
error: lifetime may not live long enough
1010
--> $DIR/lt-ref-self-async.rs:15:47
@@ -24,7 +24,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
2424
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
2525
| ^^^^
2626
|
27-
= note: hidden type `impl std::future::Future` captures lifetime '_#28r
27+
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
2828

2929
error: lifetime may not live long enough
3030
--> $DIR/lt-ref-self-async.rs:21:53
@@ -44,7 +44,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
4444
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
4545
| ^^^^
4646
|
47-
= note: hidden type `impl std::future::Future` captures lifetime '_#28r
47+
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
4848

4949
error: lifetime may not live long enough
5050
--> $DIR/lt-ref-self-async.rs:25:62
@@ -64,7 +64,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
6464
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
6565
| ^^^^
6666
|
67-
= note: hidden type `impl std::future::Future` captures lifetime '_#28r
67+
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
6868

6969
error: lifetime may not live long enough
7070
--> $DIR/lt-ref-self-async.rs:29:62
@@ -84,7 +84,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
8484
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
8585
| ^^^^
8686
|
87-
= note: hidden type `impl std::future::Future` captures lifetime '_#28r
87+
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
8888

8989
error: lifetime may not live long enough
9090
--> $DIR/lt-ref-self-async.rs:33:71
@@ -104,7 +104,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
104104
LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
105105
| ^^^^
106106
|
107-
= note: hidden type `impl std::future::Future` captures lifetime '_#28r
107+
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
108108

109109
error: lifetime may not live long enough
110110
--> $DIR/lt-ref-self-async.rs:37:67

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
55
| ^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
88

99
error: lifetime may not live long enough
1010
--> $DIR/ref-mut-self-async.rs:15:51
@@ -24,7 +24,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
2424
LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
2525
| ^^^^
2626
|
27-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
27+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
2828

2929
error: lifetime may not live long enough
3030
--> $DIR/ref-mut-self-async.rs:21:57
@@ -44,7 +44,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
4444
LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
4545
| ^^^^
4646
|
47-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
47+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
4848

4949
error: lifetime may not live long enough
5050
--> $DIR/ref-mut-self-async.rs:25:66
@@ -64,7 +64,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
6464
LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
6565
| ^^^^
6666
|
67-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
67+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
6868

6969
error: lifetime may not live long enough
7070
--> $DIR/ref-mut-self-async.rs:29:66
@@ -84,7 +84,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
8484
LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
8585
| ^^^^
8686
|
87-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
87+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
8888

8989
error: lifetime may not live long enough
9090
--> $DIR/ref-mut-self-async.rs:33:75
@@ -104,7 +104,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
104104
LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
105105
| ^^^^
106106
|
107-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
107+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
108108

109109
error: lifetime may not live long enough
110110
--> $DIR/ref-mut-self-async.rs:37:75

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
55
| ^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
88

99
error: lifetime may not live long enough
1010
--> $DIR/ref-mut-struct-async.rs:15:61
@@ -24,7 +24,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
2424
LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
2525
| ^^^^
2626
|
27-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
27+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
2828

2929
error: lifetime may not live long enough
3030
--> $DIR/ref-mut-struct-async.rs:19:70
@@ -44,7 +44,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
4444
LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
4545
| ^^^^
4646
|
47-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
47+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
4848

4949
error: lifetime may not live long enough
5050
--> $DIR/ref-mut-struct-async.rs:23:70
@@ -64,7 +64,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
6464
LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
6565
| ^^^^
6666
|
67-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
67+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
6868

6969
error: lifetime may not live long enough
7070
--> $DIR/ref-mut-struct-async.rs:27:79
@@ -84,7 +84,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
8484
LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
8585
| ^^^^
8686
|
87-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
87+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
8888

8989
error: lifetime may not live long enough
9090
--> $DIR/ref-mut-struct-async.rs:31:79

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | async fn ref_self(&self, f: &u32) -> &u32 {
55
| ^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
88

99
error: lifetime may not live long enough
1010
--> $DIR/ref-self-async.rs:24:47
@@ -24,7 +24,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
2424
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
2525
| ^^^^
2626
|
27-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
27+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
2828

2929
error: lifetime may not live long enough
3030
--> $DIR/ref-self-async.rs:30:53
@@ -44,7 +44,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
4444
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
4545
| ^^^^
4646
|
47-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
47+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
4848

4949
error: lifetime may not live long enough
5050
--> $DIR/ref-self-async.rs:34:62
@@ -64,7 +64,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
6464
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
6565
| ^^^^
6666
|
67-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
67+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
6868

6969
error: lifetime may not live long enough
7070
--> $DIR/ref-self-async.rs:38:62
@@ -84,7 +84,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
8484
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
8585
| ^^^^
8686
|
87-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
87+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
8888

8989
error: lifetime may not live long enough
9090
--> $DIR/ref-self-async.rs:42:71
@@ -104,7 +104,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
104104
LL | async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
105105
| ^^^^
106106
|
107-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
107+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
108108

109109
error: lifetime may not live long enough
110110
--> $DIR/ref-self-async.rs:46:71
@@ -124,7 +124,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
124124
LL | async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
125125
| ^^^
126126
|
127-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
127+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
128128

129129
error: lifetime may not live long enough
130130
--> $DIR/ref-self-async.rs:50:73

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
44
LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
55
| ^^^^
66
|
7-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
7+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
88

99
error: lifetime may not live long enough
1010
--> $DIR/ref-struct-async.rs:15:57
@@ -24,7 +24,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
2424
LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
2525
| ^^^^
2626
|
27-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
27+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
2828

2929
error: lifetime may not live long enough
3030
--> $DIR/ref-struct-async.rs:19:66
@@ -44,7 +44,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
4444
LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
4545
| ^^^^
4646
|
47-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
47+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
4848

4949
error: lifetime may not live long enough
5050
--> $DIR/ref-struct-async.rs:23:66
@@ -64,7 +64,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
6464
LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
6565
| ^^^^
6666
|
67-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
67+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
6868

6969
error: lifetime may not live long enough
7070
--> $DIR/ref-struct-async.rs:27:75
@@ -84,7 +84,7 @@ error[E0700]: hidden type for `impl Trait` captures lifetime that does not appea
8484
LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
8585
| ^^^^
8686
|
87-
= note: hidden type `impl std::future::Future` captures lifetime '_#18r
87+
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
8888

8989
error: lifetime may not live long enough
9090
--> $DIR/ref-struct-async.rs:31:71

0 commit comments

Comments
 (0)