Skip to content

Commit 1a5fdef

Browse files
committed
fix: tests: ui: update error messages
1 parent 8fad8fa commit 1a5fdef

File tree

5 files changed

+1
-13
lines changed

5 files changed

+1
-13
lines changed

tests/ui/compile-fail/init/colon_instead_of_arrow.stderr

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@ error[E0308]: mismatched types
1414
found opaque type `impl pinned_init::PinInit<Bar>`
1515
note: function defined here
1616
--> $RUST/core/src/ptr/mod.rs
17-
|
18-
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
19-
| ^^^^^
2017
= 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)

tests/ui/compile-fail/init/field_value_wrong_type.stderr

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ error[E0308]: mismatched types
99
|
1010
note: function defined here
1111
--> $RUST/core/src/ptr/mod.rs
12-
|
13-
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
14-
| ^^^^^
1512
= 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)

tests/ui/compile-fail/init/missing_comma_with_zeroable.stderr

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ error[E0308]: mismatched types
3131
found struct `std::ops::Range<{integer}>`
3232
note: function defined here
3333
--> $RUST/core/src/ptr/mod.rs
34-
|
35-
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
36-
| ^^^^^
3734
= 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)
3835

3936
error[E0063]: missing field `b` in initializer of `Foo`

tests/ui/compile-fail/init/wrong_generics2.stderr

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,4 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
7171
|
7272
note: function defined here
7373
--> $RUST/core/src/ptr/mod.rs
74-
|
75-
| pub const unsafe fn write<T>(dst: *mut T, src: T) {
76-
| ^^^^^
7774
= 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)

tests/ui/compile-fail/pin_data/no_pin_on_phantompinned.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ error: The field `pin4` of type `PhantomPinned` only has an effect, if it has th
3030
|
3131
= 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)
3232

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

0 commit comments

Comments
 (0)