1
Fork 0

Remove Print::Error

All printing goes through `fmt::Error` now.
This commit is contained in:
Nilstrieb 2023-10-16 20:50:46 +02:00
parent 6038888118
commit 6fc6a6d783
6 changed files with 17 additions and 32 deletions

View file

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