Remove collapsing space behaviour from Printer (#4782)

This commit is contained in:
Micha Reiser 2023-06-01 13:38:42 +02:00 committed by GitHub
parent 5f4bce6d2b
commit 28aad95414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 31 deletions

View file

@ -144,6 +144,12 @@ impl std::fmt::Display for DisplayDocument<'_> {
}
}
impl std::fmt::Debug for DisplayDocument<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
std::fmt::Display::fmt(self, f)
}
}
#[derive(Clone, Debug)]
struct IrFormatContext<'a> {
/// The interned elements that have been printed to this point