about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-04 16:34:17 +0100
committerGitHub <noreply@github.com>2022-01-04 16:34:17 +0100
commit25fcc0ef8c4a3b7a8dbfefdb3b198c09cee9f1c4 (patch)
treef6326bcf7db03dfa6bad87c5a326efd04c18f3a4 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent4e4e1ec93104f8c5816d8ad92fbb007911e87610 (diff)
parent3087c4dfb7ba1c117f6f2fec7a7206eeb026e6fa (diff)
downloadrust-25fcc0ef8c4a3b7a8dbfefdb3b198c09cee9f1c4.tar.gz
rust-25fcc0ef8c4a3b7a8dbfefdb3b198c09cee9f1c4.zip
Rollup merge of #92507 - chordtoll:suggest-single-quotes, r=petrochenkov
Suggest single quotes when char expected, str provided

If a type mismatch occurs where a char is expected and a string literal is provided, suggest changing the double quotes to single quotes.

We already provide this suggestion in the other direction ( ' -> " ).

Especially useful for new rust devs used to a language in which single/double quotes are interchangeable.

Fixes #92479.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions