Post
I wrote a clippy lint for this: coerce_container_to_any
rust-lang.github.ioClippy LintsA collection of lints to catch common mistakes and improve your Rust code.
For rustc, open a PR and nominate for lang. The most natural order would be if it were upgraded in clippy first. It isn't strictly necessary but gives confidence in the impl. If you face resistance to that, lang could weigh in and say we want this, assuming the rest of the team agrees with me.
0 reposts1 like
No replies yet.