diff options
| author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-10-28 17:13:34 +0000 |
|---|---|---|
| committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-10-28 17:13:34 +0000 |
| commit | 14d2700b6f1fa838884d32c9e40c3da32bf9a1b1 (patch) | |
| tree | bb62a869b991b49fa5a8433edda510035ee06a81 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff | |
| parent | 6ce5edcdd5f520f647e19a8376d797566dec686a (diff) | |
| parent | 19ac2e94c6cb12ae4f9fb410f165e2aa5309e124 (diff) | |
| parent | 840e50e97f023c2d0bfeb0222d094fa407f12f2f (diff) | |
| download | rust-14d2700b6f1fa838884d32c9e40c3da32bf9a1b1.tar.gz rust-14d2700b6f1fa838884d32c9e40c3da32bf9a1b1.zip | |
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>
