Files
rust/clippy_lints/src
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
..
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-11 15:18:58 -07:00
2018-10-11 15:42:22 -07:00
2018-10-11 15:18:58 -07:00
2018-10-06 09:43:08 -07:00
2018-10-11 15:43:13 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-26 01:15:55 +09:00
2018-10-11 15:43:13 -07:00
2018-10-24 23:39:54 -04:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-12 04:48:54 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-09 23:35:10 -07:00
2018-10-13 00:42:55 +02:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-11 15:18:58 -07:00
2018-10-20 06:29:17 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00
2018-10-06 09:43:08 -07:00