rust/src
bors 265e4841b7 Auto merge of #6117 - dtolnay:string_lit_as_bytes, r=ebroto
Downgrade string_lit_as_bytes to nursery

Between #1402 (regarding `to_owned`) and #4494 (regarding `impl Read`), as well as other confusion I've seen hit in my work codebase involving string_lit_as_bytes (`"...".as_bytes().into()`), I don't think this lint is at a quality to be enabled by default.

I would consider re-enabling this lint after it is updated to understand when the surrounding type information is sufficient to unsize `b"..."` to &\[u8\] without causing a type error.

As currently implemented, this lint is pushing people to write `&b"_"[..]` which is not an improvement over `"_".as_bytes()` as far as I am concerned.

---

changelog: Remove string_lit_as_bytes from default set of enabled lints
2020-10-08 21:33:32 +00:00
..
lintlist Auto merge of #6117 - dtolnay:string_lit_as_bytes, r=ebroto 2020-10-08 21:33:32 +00:00
driver.rs Add option to pass a custom codegen backend from a driver 2020-09-27 14:16:42 +02:00
main.rs Merge commit 'c2c07fa9d0' into clippyup 2020-06-23 17:05:22 +02:00