about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/mod.rs
diff options
context:
space:
mode:
authorErin Petra Sofiya Moon <emoon@starry.com>2022-02-14 14:21:43 -0500
committerErin Petra Sofiya Moon <emoon@starry.com>2022-02-14 15:11:38 -0500
commite59cda9ee1b9fab3fe966ea7e4b12c14b1f85789 (patch)
treea731617118a0361d343c6e7d9c48f84416cc3f33 /compiler/rustc_codegen_llvm/src/llvm/mod.rs
parent52dd59ed2154f4158ae37e6994b678a6249a7bb0 (diff)
downloadrust-e59cda9ee1b9fab3fe966ea7e4b12c14b1f85789.tar.gz
rust-e59cda9ee1b9fab3fe966ea7e4b12c14b1f85789.zip
suggest using raw string literals when invalid escapes appear
i'd guess about 70% of "bad escape" cases occur when someone meant to
use a raw string literal because they're passing it directly to
Regex::new(). this emits an advisory (Applicability::MaybeIncorrect)
help: suggestion to the user that they use an r"" string,
on top of the normal notes about looking at the
string literal documentation/spec.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions