A SubstitutionPart is not a deletion if it replaces nothing with nothing

This commit is contained in:
Michael Goulet 2022-09-11 19:19:07 +00:00
parent 52e003a6e9
commit 370c816a71
21 changed files with 130 additions and 198 deletions

View file

@ -1704,7 +1704,7 @@ impl EmitterWriter {
{
notice_capitalization |= only_capitalization;
let has_deletion = parts.iter().any(|p| p.is_deletion());
let has_deletion = parts.iter().any(|p| p.is_deletion(sm));
let is_multiline = complete.lines().count() > 1;
if let Some(span) = span.primary_span() {