about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorCatherine Flores <catherine.3.flores@gmail.com>2025-02-07 13:33:18 +0000
committerGitHub <noreply@github.com>2025-02-07 13:33:18 +0000
commit0d3bf65bd45435c91a776972b7da8500562c2fe1 (patch)
treefed4a9441c3228c3735ea60468c3fc4375caa8f1 /tests/codegen/patchable-function-entry
parentf6d23c8d591e159d679a860b50e5e6ec68110195 (diff)
parent16e2196fc2d9aa87d261e6163e6a13bc9d761f60 (diff)
downloadrust-0d3bf65bd45435c91a776972b7da8500562c2fe1.tar.gz
rust-0d3bf65bd45435c91a776972b7da8500562c2fe1.zip
`useless_asref`: no lint if in a closure to change the ref depth (#14090)
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.

changelog: [`useless_asref`]: do not remove the `.as_ref()` or
`.as_mut()` call if this would change the type of the enclosing closure

Fix #14088
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions