about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-28 00:03:00 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-28 00:08:39 +0100
commit16e2196fc2d9aa87d261e6163e6a13bc9d761f60 (patch)
tree8015a3b8fe5641246b4a80a9399dd376f9c32ac8 /tests/codegen/patchable-function-entry
parent83bde363b633a68a1a94441b685ee5a87c60879c (diff)
downloadrust-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