fix rustdoc test

This commit is contained in:
Esteban Küber 2024-03-17 23:46:39 +00:00
parent ea1883d7b2
commit f4d30b156b

View File

@ -95,7 +95,7 @@ pub(crate) fn emit_unescape_error(
} }
escaped.push(c); escaped.push(c);
} }
if escaped.len() != lit.len() { if escaped.len() != lit.len() || full_lit_span.is_empty() {
let sugg = format!("{prefix}\"{escaped}\""); let sugg = format!("{prefix}\"{escaped}\"");
MoreThanOneCharSugg::QuotesFull { MoreThanOneCharSugg::QuotesFull {
span: full_lit_span, span: full_lit_span,