about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMarco Mastropaolo <marco@mastropaolo.com>2022-06-10 18:28:31 +0200
committerMarco Mastropaolo <marcomp@amazon.com>2022-08-26 17:41:17 -0700
commitde028e2fb9d81d58d62dfc7bc8fd2335a9885641 (patch)
treecef77a398d8c012606fcb79ea588d301bd0e0b4f /src/test/debuginfo/enum-thinlto.rs
parent602bec26b0b60b39196108f518c805af14111e2b (diff)
downloadrust-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 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions