diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-08 16:40:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-08 16:40:47 +0100 |
| commit | 8429dcdb79b35182036e8de574287a7acc4b14d8 (patch) | |
| tree | 93dc9724295a46e3d2820e6df049776abe7c628e /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | d7c2eda794e8a666b6766b6fa0c4107a971ff4e3 (diff) | |
| parent | 9622a4277698a055c2f136834afa30e94bf93071 (diff) | |
| download | rust-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
