diff options
| author | bors <bors@rust-lang.org> | 2024-05-29 06:14:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-29 06:14:05 +0000 |
| commit | 5870f1ccbbb2661c92cdc356231386210a64d723 (patch) | |
| tree | ed8998ef31a539d067edd5c8ad86933898d493eb /compiler/rustc_trait_selection/src/infer.rs | |
| parent | 751691271d76b8435559200b84d1947c2bd735bd (diff) | |
| parent | 09c8e39adb5b19d4ff412e8f77ea42c569a8e02d (diff) | |
| download | rust-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 'compiler/rustc_trait_selection/src/infer.rs')
0 files changed, 0 insertions, 0 deletions
