Remove Print::Error
All printing goes through `fmt::Error` now.
This commit is contained in:
parent
6038888118
commit
6fc6a6d783
6 changed files with 17 additions and 32 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue