diff options
| author | Catherine Flores <catherine.3.flores@gmail.com> | 2025-02-07 13:33:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-07 13:33:18 +0000 |
| commit | 0d3bf65bd45435c91a776972b7da8500562c2fe1 (patch) | |
| tree | fed4a9441c3228c3735ea60468c3fc4375caa8f1 /tests/codegen/patchable-function-entry | |
| parent | f6d23c8d591e159d679a860b50e5e6ec68110195 (diff) | |
| parent | 16e2196fc2d9aa87d261e6163e6a13bc9d761f60 (diff) | |
| download | rust-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
