Skip to content

Commit 85e91dc

Browse files
committed
Auto merge of #8671 - andy-k:fix-typo, r=flip1995
fix typo fix typo in #8630 changelog: none
2 parents 5344236 + 1450c98 commit 85e91dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/drop_forget_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const DROP_COPY_SUMMARY: &str = "calls to `std::mem::drop` with a value that imp
180180
const FORGET_COPY_SUMMARY: &str = "calls to `std::mem::forget` with a value that implements `Copy`. \
181181
Forgetting a copy leaves the original intact";
182182
const DROP_NON_DROP_SUMMARY: &str = "call to `std::mem::drop` with a value that does not implement `Drop`. \
183-
Dropping such a type only extends it's contained lifetimes";
183+
Dropping such a type only extends its contained lifetimes";
184184
const FORGET_NON_DROP_SUMMARY: &str = "call to `std::mem::forget` with a value that does not implement `Drop`. \
185185
Forgetting such a type is the same as dropping it";
186186

tests/ui/drop_non_drop.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends it's contained lifetimes
1+
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
22
--> $DIR/drop_non_drop.rs:22:5
33
|
44
LL | drop(Foo);
@@ -11,7 +11,7 @@ note: argument has type `main::Foo`
1111
LL | drop(Foo);
1212
| ^^^
1313

14-
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends it's contained lifetimes
14+
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
1515
--> $DIR/drop_non_drop.rs:37:5
1616
|
1717
LL | drop(Baz(Foo));

0 commit comments

Comments
 (0)