Skip to content

Commit d7a886a

Browse files
fu5haManishearth
authored andcommitted
update ui tests
1 parent f0827b3 commit d7a886a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/ui/async-await/pin-needed-to-poll-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ note: required because it appears within the type `Sleep`
1313
|
1414
LL | struct Sleep(std::marker::PhantomPinned);
1515
| ^^^^^
16-
note: required by a bound in `Pin::<P>::new`
16+
note: required by a bound in `Pin::<Ptr>::new`
1717
--> $SRC_DIR/core/src/pin.rs:LL:COL
1818

1919
error: aborting due to 1 previous error

tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0133]: call to unsafe function `Pin::<P>::new_unchecked` is unsafe and requires unsafe function or block
1+
error[E0133]: call to unsafe function `Pin::<Ptr>::new_unchecked` is unsafe and requires unsafe function or block
22
--> $DIR/coerce-unsafe-closure-to-unsafe-fn-ptr.rs:2:31
33
|
44
LL | let _: unsafe fn() = || { ::std::pin::Pin::new_unchecked(&0_u8); };

tests/ui/self/arbitrary_self_types_pin_needing_borrow.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | Pin::new(S).x();
66
| |
77
| required by a bound introduced by this call
88
|
9-
note: required by a bound in `Pin::<P>::new`
9+
note: required by a bound in `Pin::<Ptr>::new`
1010
--> $SRC_DIR/core/src/pin.rs:LL:COL
1111
help: consider borrowing here
1212
|

tests/ui/suggestions/expected-boxed-future-isnt-pinned.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ LL | Pin::new(x)
5252
|
5353
= note: consider using the `pin!` macro
5454
consider using `Box::pin` if you need to access the pinned value outside of the current scope
55-
note: required by a bound in `Pin::<P>::new`
55+
note: required by a bound in `Pin::<Ptr>::new`
5656
--> $SRC_DIR/core/src/pin.rs:LL:COL
5757

5858
error[E0277]: `dyn Future<Output = i32> + Send` cannot be unpinned
@@ -65,7 +65,7 @@ LL | Pin::new(Box::new(x))
6565
|
6666
= note: consider using the `pin!` macro
6767
consider using `Box::pin` if you need to access the pinned value outside of the current scope
68-
note: required by a bound in `Pin::<P>::new`
68+
note: required by a bound in `Pin::<Ptr>::new`
6969
--> $SRC_DIR/core/src/pin.rs:LL:COL
7070

7171
error[E0308]: mismatched types

0 commit comments

Comments
 (0)