@@ -6,7 +6,7 @@ LL | val.0.into_iter().next();
66LL | val.0;
77 | ^^^^^ value used here after move
88 |
9- note: this function consumes the receiver `self` by taking ownership of it , which moves `val.0`
9+ note: this function takes ownership of the receiver `self`, which moves `val.0`
1010 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
1111 |
1212LL | fn into_iter(self) -> Self::IntoIter;
@@ -23,7 +23,7 @@ LL | foo.use_self();
2323LL | foo;
2424 | ^^^ value used here after move
2525 |
26- note: this function consumes the receiver `self` by taking ownership of it , which moves `foo`
26+ note: this function takes ownership of the receiver `self`, which moves `foo`
2727 --> $DIR/move-fn-self-receiver.rs:13:17
2828 |
2929LL | fn use_self(self) {}
@@ -49,7 +49,7 @@ LL | boxed_foo.use_box_self();
4949LL | boxed_foo;
5050 | ^^^^^^^^^ value used here after move
5151 |
52- note: this function consumes the receiver `self` by taking ownership of it , which moves `boxed_foo`
52+ note: this function takes ownership of the receiver `self`, which moves `boxed_foo`
5353 --> $DIR/move-fn-self-receiver.rs:14:21
5454 |
5555LL | fn use_box_self(self: Box<Self>) {}
@@ -65,7 +65,7 @@ LL | pin_box_foo.use_pin_box_self();
6565LL | pin_box_foo;
6666 | ^^^^^^^^^^^ value used here after move
6767 |
68- note: this function consumes the receiver `self` by taking ownership of it , which moves `pin_box_foo`
68+ note: this function takes ownership of the receiver `self`, which moves `pin_box_foo`
6969 --> $DIR/move-fn-self-receiver.rs:15:25
7070 |
7171LL | fn use_pin_box_self(self: Pin<Box<Self>>) {}
@@ -91,7 +91,7 @@ LL | rc_foo.use_rc_self();
9191LL | rc_foo;
9292 | ^^^^^^ value used here after move
9393 |
94- note: this function consumes the receiver `self` by taking ownership of it , which moves `rc_foo`
94+ note: this function takes ownership of the receiver `self`, which moves `rc_foo`
9595 --> $DIR/move-fn-self-receiver.rs:16:20
9696 |
9797LL | fn use_rc_self(self: Rc<Self>) {}
@@ -146,7 +146,7 @@ LL | for _val in container.custom_into_iter() {}
146146LL | container;
147147 | ^^^^^^^^^ value used here after move
148148 |
149- note: this function consumes the receiver `self` by taking ownership of it , which moves `container`
149+ note: this function takes ownership of the receiver `self`, which moves `container`
150150 --> $DIR/move-fn-self-receiver.rs:23:25
151151 |
152152LL | fn custom_into_iter(self) -> impl Iterator<Item = bool> {
0 commit comments