From c1569cc62c4d1c5daf604922102c09fed8a91eb4 Mon Sep 17 00:00:00 2001 From: Joel Galenson Date: Mon, 9 Aug 2021 10:36:36 -0700 Subject: Upgrade rust/crates/pin-project to 1.0.8 Test: make Change-Id: I5d34b05966fb665ac1d6a09229743a24d6927742 --- .../project_replace_unsized_fn_params.stderr | 60 ++++++++++++---------- 1 file changed, 34 insertions(+), 26 deletions(-) (limited to 'tests/ui/pin_project/project_replace_unsized_fn_params.stderr') diff --git a/tests/ui/pin_project/project_replace_unsized_fn_params.stderr b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr index f8cee98..8ac4ad7 100644 --- a/tests/ui/pin_project/project_replace_unsized_fn_params.stderr +++ b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr @@ -15,20 +15,24 @@ note: required because it appears within the type `__StructProjectionOwned` = note: the return type of a function must have a statically known size error[E0277]: the size for values of type `T` cannot be known at compilation time - --> $DIR/project_replace_unsized_fn_params.rs:5:1 - | -5 | #[pin_project(project_replace)] //~ ERROR E0277 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time -6 | struct Struct { - | - this type parameter needs to be `std::marker::Sized` - | + --> $DIR/project_replace_unsized_fn_params.rs:5:1 + | +5 | #[pin_project(project_replace)] //~ ERROR E0277 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time +6 | struct Struct { + | - this type parameter needs to be `std::marker::Sized` + | note: required because it appears within the type `Struct` - --> $DIR/project_replace_unsized_fn_params.rs:6:8 - | -6 | struct Struct { - | ^^^^^^ - = note: required by `UnsafeOverwriteGuard` - = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) + --> $DIR/project_replace_unsized_fn_params.rs:6:8 + | +6 | struct Struct { + | ^^^^^^ +note: required by `UnsafeOverwriteGuard` + --> $DIR/lib.rs:269:5 + | +269 | pub struct UnsafeOverwriteGuard { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the size for values of type `T` cannot be known at compilation time --> $DIR/project_replace_unsized_fn_params.rs:7:5 @@ -55,17 +59,21 @@ note: required because it appears within the type `__TupleStructProjectionOwned< = note: the return type of a function must have a statically known size error[E0277]: the size for values of type `T` cannot be known at compilation time - --> $DIR/project_replace_unsized_fn_params.rs:10:1 - | -10 | #[pin_project(project_replace)] //~ ERROR E0277 - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time -11 | struct TupleStruct(T); - | - this type parameter needs to be `std::marker::Sized` - | + --> $DIR/project_replace_unsized_fn_params.rs:10:1 + | +10 | #[pin_project(project_replace)] //~ ERROR E0277 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time +11 | struct TupleStruct(T); + | - this type parameter needs to be `std::marker::Sized` + | note: required because it appears within the type `TupleStruct` - --> $DIR/project_replace_unsized_fn_params.rs:11:8 - | -11 | struct TupleStruct(T); - | ^^^^^^^^^^^ - = note: required by `UnsafeOverwriteGuard` - = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) + --> $DIR/project_replace_unsized_fn_params.rs:11:8 + | +11 | struct TupleStruct(T); + | ^^^^^^^^^^^ +note: required by `UnsafeOverwriteGuard` + --> $DIR/lib.rs:269:5 + | +269 | pub struct UnsafeOverwriteGuard { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info) -- cgit v1.2.3