1
Fork 0

Remove Print::Output

Now that `Printer` doesn't have subprinters anymore, the output of a
printing operation is always the same.
This commit is contained in:
Nilstrieb 2023-10-16 20:36:56 +02:00
parent 3895f0e9af
commit 0b5a4c1adf
6 changed files with 27 additions and 43 deletions

View file

@ -140,7 +140,7 @@ impl<'tcx> PrettyPrinter<'tcx> for AbsolutePathPrinter<'tcx> {
}
fn comma_sep<T>(mut self, mut elems: impl Iterator<Item = T>) -> Result<Self, Self::Error>
where
T: Print<'tcx, Self, Output = Self, Error = Self::Error>,
T: Print<'tcx, Self, Error = Self::Error>,
{
if let Some(first) = elems.next() {
self = first.print(self)?;