Don't expand macros in some suggestions #3366
I added a separate function called
I will also go through all the other issues and try to find more cases that can be fixed easily.
edit: Ok, I can't find any more issues that will be fixed by this.
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 <email@example.com> Co-authored-by: Philipp Hansch <firstname.lastname@example.org>