Fix chars_next_cmp suggestion not escaped

This commit is contained in:
dswij 2022-01-31 13:35:14 +08:00
parent 0ed8ca45f4
commit 5faa7ebb70
4 changed files with 56 additions and 16 deletions

View file

@ -32,7 +32,7 @@ pub(super) fn check<'tcx>(
if info.eq { "" } else { "!" },
snippet_with_applicability(cx, args[0][0].span, "..", &mut applicability),
suggest,
c),
c.escape_default()),
applicability,
);