diff options
| author | Jane Lusby <jlusby42@gmail.com> | 2018-10-05 09:06:05 -0700 |
|---|---|---|
| committer | Jane Lusby <jlusby42@gmail.com> | 2018-10-26 09:12:01 -0700 |
| commit | c209fc9349ff750dc983ecfe23d8e0bb74f002df (patch) | |
| tree | b43d0e01088ba930cd7252068dd20d43c5b9ee56 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff | |
| parent | 457e7f12e9fc028eae182f23b279194e5344b676 (diff) | |
| download | rust-c209fc9349ff750dc983ecfe23d8e0bb74f002df.tar.gz rust-c209fc9349ff750dc983ecfe23d8e0bb74f002df.zip | |
Fix string_lit_as_bytes lint for macros
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
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions
