Skip to content

Commit bf9bf73

Browse files
committed
Adjust test expectations for latest nightly version of rustc.
1 parent 07d2bca commit bf9bf73

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

tests/ui/opaque_autotraits.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ error[E0277]: `PhantomPinned` cannot be unpinned
5757
note: required because it appears within the type `PhantomData<PhantomPinned>`
5858
--> $RUST/core/src/marker.rs
5959
|
60-
| pub struct PhantomData<T: ?Sized>;
60+
| pub struct PhantomData<T: PointeeSized>;
6161
| ^^^^^^^^^^^
6262
note: required because it appears within the type `cxx::private::Opaque`
6363
--> src/opaque.rs

tests/ui/result_no_display.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@ error[E0277]: `NonError` doesn't implement `std::fmt::Display`
22
--> tests/ui/result_no_display.rs:4:19
33
|
44
4 | fn f() -> Result<()>;
5-
| ^^^^^^^^^^ `NonError` cannot be formatted with the default formatter
6-
|
7-
= help: the trait `std::fmt::Display` is not implemented for `NonError`
8-
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
5+
| ^^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `NonError`

tests/ui/vector_autotraits.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ note: required because it appears within the type `NotThreadSafe`
2020
note: required because it appears within the type `PhantomData<[NotThreadSafe]>`
2121
--> $RUST/core/src/marker.rs
2222
|
23-
| pub struct PhantomData<T: ?Sized>;
23+
| pub struct PhantomData<T: PointeeSized>;
2424
| ^^^^^^^^^^^
2525
note: required because it appears within the type `CxxVector<NotThreadSafe>`
2626
--> src/cxx_vector.rs

0 commit comments

Comments
 (0)