mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Print a single ellipsis for any number of omitted types
This commit is contained in:
parent
0f8c96c926
commit
601dc50b5a
@ -151,6 +151,12 @@ impl<'a> HirFormatter<'a> {
|
||||
write!(self, "{}", sep)?;
|
||||
}
|
||||
first = false;
|
||||
|
||||
// Abbreviate multiple omitted types with a single ellipsis.
|
||||
if self.should_truncate() {
|
||||
return write!(self, "{}", TYPE_HINT_TRUNCATION);
|
||||
}
|
||||
|
||||
e.hir_fmt(self)?;
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user