Skip to content

Commit

Permalink
fix: tests: ui: update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
y86-dev committed May 23, 2024
1 parent 8fad8fa commit 1a5fdef
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 13 deletions.
3 changes: 0 additions & 3 deletions tests/ui/compile-fail/init/colon_instead_of_arrow.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ error[E0308]: mismatched types
found opaque type `impl pinned_init::PinInit<Bar>`
note: function defined here
--> $RUST/core/src/ptr/mod.rs
|
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
| ^^^^^
= note: this error originates in the macro `$crate::__init_internal` which comes from the expansion of the macro `pin_init` (in Nightly builds, run with -Z macro-backtrace for more info)
3 changes: 0 additions & 3 deletions tests/ui/compile-fail/init/field_value_wrong_type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ error[E0308]: mismatched types
|
note: function defined here
--> $RUST/core/src/ptr/mod.rs
|
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
| ^^^^^
= note: this error originates in the macro `$crate::__init_internal` which comes from the expansion of the macro `init` (in Nightly builds, run with -Z macro-backtrace for more info)
3 changes: 0 additions & 3 deletions tests/ui/compile-fail/init/missing_comma_with_zeroable.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ error[E0308]: mismatched types
found struct `std::ops::Range<{integer}>`
note: function defined here
--> $RUST/core/src/ptr/mod.rs
|
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
| ^^^^^
= note: this error originates in the macro `$crate::__init_internal` which comes from the expansion of the macro `init` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0063]: missing field `b` in initializer of `Foo`
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/compile-fail/init/wrong_generics2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,4 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
|
note: function defined here
--> $RUST/core/src/ptr/mod.rs
|
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
| ^^^^^
= note: this error originates in the macro `$crate::__init_internal` which comes from the expansion of the macro `init` (in Nightly builds, run with -Z macro-backtrace for more info)
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ error: The field `pin4` of type `PhantomPinned` only has an effect, if it has th
|
= note: this error originates in the macro `$crate::__pin_data` which comes from the expansion of the attribute macro `pin_data` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: unused imports: `PhantomPinned`, `self`
warning: unused imports: `PhantomPinned` and `self`
--> tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.rs:2:19
|
2 | use std::marker::{self, PhantomPinned};
Expand Down

0 comments on commit 1a5fdef

Please sign in to comment.