rust/compiler
Matthias Krüger 25fcc0ef8c
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.
2022-01-04 16:34:17 +01:00
..
2021-12-14 18:50:31 -04:00
2021-12-22 10:47:36 -06:00
2021-12-14 18:50:31 -04:00
2021-12-30 22:33:44 -05:00
2021-12-26 16:56:34 +01:00