about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-08 16:40:47 +0100
committerGitHub <noreply@github.com>2022-02-08 16:40:47 +0100
commit8429dcdb79b35182036e8de574287a7acc4b14d8 (patch)
tree93dc9724295a46e3d2820e6df049776abe7c628e /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentd7c2eda794e8a666b6766b6fa0c4107a971ff4e3 (diff)
parent9622a4277698a055c2f136834afa30e94bf93071 (diff)
downloadrust-8429dcdb79b35182036e8de574287a7acc4b14d8.tar.gz
rust-8429dcdb79b35182036e8de574287a7acc4b14d8.zip
Rollup merge of #92715 - chordtoll:empty-string, r=davidtwco
Do not suggest char literal for zero-length strings

PR #92507 adds a hint to switch to single quotes when a char is expected and a single-character string literal is provided.

The check to ensure the string literal is one character long missed the 0-char case, and would incorrectly offer the hint.

This PR adds the missing check, and a test case to confirm the new behavior.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions