diff options
| author | Marco Mastropaolo <marco@mastropaolo.com> | 2022-06-10 18:28:31 +0200 |
|---|---|---|
| committer | Marco Mastropaolo <marcomp@amazon.com> | 2022-08-26 17:41:17 -0700 |
| commit | de028e2fb9d81d58d62dfc7bc8fd2335a9885641 (patch) | |
| tree | cef77a398d8c012606fcb79ea588d301bd0e0b4f /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff | |
| parent | 602bec26b0b60b39196108f518c805af14111e2b (diff) | |
| download | rust-de028e2fb9d81d58d62dfc7bc8fd2335a9885641.tar.gz rust-de028e2fb9d81d58d62dfc7bc8fd2335a9885641.zip | |
Implemented suspicious_to_owned lint to check if `to_owned` is called on a `Cow`.
This is done because `to_owned` is very similarly named to `into_owned`, but the effect of calling those two methods is completely different. This creates confusion (stemming from the ambiguity of the 'owned' term in the context of `Cow`s) and might not be what the writer intended.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions
