Commit 2714ef5 1 parent 2454aed commit 2714ef5 Copy full SHA for 2714ef5
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ fn validate_sig(sig: &Signature) -> Result<()> {
108
108
const INVALID_ARGUMENT : & str = "method `drop` must take an argument `self: Pin<&mut Self>`" ;
109
109
110
110
if sig. ident != "drop" {
111
- bail ! ( sig. ident, "method `{}` is not a member of trait `PinnedDrop" , sig. ident) ;
111
+ bail ! ( sig. ident, "method `{}` is not a member of trait `PinnedDrop` " , sig. ident) ;
112
112
}
113
113
114
114
if let ReturnType :: Type ( _, ty) = & sig. output {
@@ -128,7 +128,7 @@ fn validate_sig(sig: &Signature) -> Result<()> {
128
128
// (mut) self: <path>
129
129
if let Some ( path) = get_ty_path ( & arg. ty ) {
130
130
let ty =
131
- path. segments . last ( ) . expect ( "Type paths should always have at least one segment" ) ;
131
+ path. segments . last ( ) . expect ( "type paths should always have at least one segment" ) ;
132
132
if let PathArguments :: AngleBracketed ( args) = & ty. arguments {
133
133
// (mut) self: (<path>::)<ty><&mut <elem>..>
134
134
if let Some ( GenericArgument :: Type ( Type :: Reference ( TypeReference {
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ mod method {
204
204
205
205
#[ pinned_drop]
206
206
impl PinnedDrop for InvalidName {
207
- fn pinned_drop ( self : Pin < & mut Self > ) { } //~ ERROR method `pinned_drop` is not a member of trait `PinnedDrop
207
+ fn pinned_drop ( self : Pin < & mut Self > ) { } //~ ERROR method `pinned_drop` is not a member of trait `PinnedDrop`
208
208
}
209
209
}
210
210
Original file line number Diff line number Diff line change @@ -118,10 +118,10 @@ error: method `drop` must take an argument `self: Pin<&mut Self>`
118
118
199 | fn drop(self: Pin<&mut ()>) {} //~ ERROR method `drop` must take an argument `self: Pin<&mut Self>`
119
119
| ^^^^^^^^^^^^^^^^^^
120
120
121
- error: method `pinned_drop` is not a member of trait `PinnedDrop
121
+ error: method `pinned_drop` is not a member of trait `PinnedDrop`
122
122
--> tests/ui/pinned_drop/invalid.rs:207:12
123
123
|
124
- 207 | fn pinned_drop(self: Pin<&mut Self>) {} //~ ERROR method `pinned_drop` is not a member of trait `PinnedDrop
124
+ 207 | fn pinned_drop(self: Pin<&mut Self>) {} //~ ERROR method `pinned_drop` is not a member of trait `PinnedDrop`
125
125
| ^^^^^^^^^^^
126
126
127
127
error: implementing the trait `PinnedDrop` on this type is unsupported
You can’t perform that action at this time.
0 commit comments