mirror of https://github.com/rust-lang/rust.git
fix rustdoc test
This commit is contained in:
parent
ea1883d7b2
commit
f4d30b156b
|
@ -95,7 +95,7 @@ pub(crate) fn emit_unescape_error(
|
|||
}
|
||||
escaped.push(c);
|
||||
}
|
||||
if escaped.len() != lit.len() {
|
||||
if escaped.len() != lit.len() || full_lit_span.is_empty() {
|
||||
let sugg = format!("{prefix}\"{escaped}\"");
|
||||
MoreThanOneCharSugg::QuotesFull {
|
||||
span: full_lit_span,
|
||||
|
|
Loading…
Reference in New Issue