about summary refs log tree commit diff
path: root/tests/ui/parser/variadic-ffi-semantic-restrictions.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-29 06:14:05 +0000
committerbors <bors@rust-lang.org>2024-05-29 06:14:05 +0000
commit5870f1ccbbb2661c92cdc356231386210a64d723 (patch)
treeed8998ef31a539d067edd5c8ad86933898d493eb /tests/ui/parser/variadic-ffi-semantic-restrictions.rs
parent751691271d76b8435559200b84d1947c2bd735bd (diff)
parent09c8e39adb5b19d4ff412e8f77ea42c569a8e02d (diff)
downloadrust-5870f1ccbbb2661c92cdc356231386210a64d723.tar.gz
rust-5870f1ccbbb2661c92cdc356231386210a64d723.zip
Auto merge of #125433 - surechen:fix_125189, r=Urgau
A small diagnostic improvement for dropping_copy_types

For a value `m`  which implements `Copy` trait, `drop(m);` does nothing.
We now suggest user to ignore it by a abstract and general note: `let _ = ...`.
I think we can give a clearer note here: `let _ = m;`

fixes #125189

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->
Diffstat (limited to 'tests/ui/parser/variadic-ffi-semantic-restrictions.rs')
0 files changed, 0 insertions, 0 deletions