about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorMarcel Müller <m.mueller@ifm.com>2023-01-04 09:31:12 +0100
committerxFrednet <xFrednet@gmail.com>2024-07-04 14:31:15 +0200
commit88c4a224807144b535854b53fbd46e6dc18555a1 (patch)
treeb4d70f50a9e778e46a3d6837088e16cb9aa410c4 /compiler/rustc_codegen_gcc/example/alloc_example.rs
parentd2400a49a43669025c37031791c1d200852ef160 (diff)
downloadrust-88c4a224807144b535854b53fbd46e6dc18555a1.tar.gz
rust-88c4a224807144b535854b53fbd46e6dc18555a1.zip
New Lint: `byte_char_slices`
This patch adds a new lint that checks for potentially harder to read
byte char slices: `&[b'a', b'b']` and suggests to replace them with the
easier to read `b"ab"` form.

Signed-Off-By: Marcel Müller <m.mueller@ifm.com>
Co-authored-by: Matthias Beyer <matthias.beyer@ifm.com>

Use iterator to skip validation

Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Suggested-by: Alex Macleod <alex@macleod.io>

Convert quote escapes to proper form

Signed-off-by: Marcel Müller <m.mueller@ifm.com>

Add more convertable test cases

Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions