Skip to content

Commit a0dc18e

Browse files
committed
fix: incorrecte truncated flag set in write_joined
1 parent b7ef890 commit a0dc18e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/hir-ty/src/display.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ impl HirFormatter<'_> {
419419
first = false;
420420

421421
// Abbreviate multiple omitted types with a single ellipsis.
422-
in_truncated = !in_truncated && self.should_truncate() && self.fmt.start_truncated();
422+
if !in_truncated && self.should_truncate() && self.fmt.start_truncated() {
423+
in_truncated = true;
424+
}
423425

424426
e.hir_fmt(self)?;
425427
}

0 commit comments

Comments
 (0)