diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-01-28 00:03:00 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-01-28 00:08:39 +0100 |
| commit | 16e2196fc2d9aa87d261e6163e6a13bc9d761f60 (patch) | |
| tree | 8015a3b8fe5641246b4a80a9399dd376f9c32ac8 /tests/codegen/patchable-function-entry | |
| parent | 83bde363b633a68a1a94441b685ee5a87c60879c (diff) | |
| download | rust-16e2196fc2d9aa87d261e6163e6a13bc9d761f60.tar.gz rust-16e2196fc2d9aa87d261e6163e6a13bc9d761f60.zip | |
`useless_asref`: no lint if in a closure to change the ref depth
Removing the `.as_ref()` or `.as_mut()` as the top-level expression in a closure may change the type of the result. In this case, it may be better not to lint rather than proposing a fix that would not work.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions
