rust-clippy/tests
bors[bot] 14d2700b6f Merge #3217 #3366
3217: Fix string_lit_as_bytes lint for macros r=phansch a=yaahallo

Prior to this change, string_lit_as_bytes would trigger for constructs
like `include_str!("filename").as_bytes()` and would recommend fixing it
by rewriting as `binclude_str!("filename")`.

This change updates the lint to act as an EarlyLintPass lint. It then
differentiates between string literals and macros that have bytes
yielding alternatives.

Closes #3205

3366: Don't expand macros in some suggestions r=oli-obk a=phansch

Fixes #1148 
Fixes #1628
Fixes #2455
Fixes #3023
Fixes #3333
Fixes #3360

Co-authored-by: Jane Lusby <jlusby42@gmail.com>
Co-authored-by: Philipp Hansch <dev@phansch.net>
2018-10-28 17:13:34 +00:00
..
auxiliary Add license header to Rust files 2018-10-06 09:43:08 -07:00
run-pass Stabilize tool lints 2018-10-11 12:16:22 +02:00
ui Merge #3217 #3366 2018-10-28 17:13:34 +00:00
ui-toml Stabilize tool lints 2018-10-11 12:16:22 +02:00
compile-test.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
dogfood.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
matches.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
needless_continue_helpers.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00
versioncheck.rs Add license header to Rust files 2018-10-06 09:43:08 -07:00