resolved issue 6188 and added some tests

This commit is contained in:
ptaszor3 2023-12-09 20:10:30 +01:00
parent 5652d4ec18
commit 6a6d5cebc0
No known key found for this signature in database
GPG key ID: 083F32091F5D7CEE
6 changed files with 41 additions and 7 deletions

View file

@ -61,7 +61,7 @@ impl<'a> Formattable for Expr<'a> {
Expect(condition, continuation) => {
condition.is_multiline() || continuation.is_multiline()
}
Dbg(condition, continuation) => condition.is_multiline() || continuation.is_multiline(),
Dbg(condition, _) => condition.is_multiline(),
LowLevelDbg(_, _, _) => unreachable!(
"LowLevelDbg should only exist after desugaring, not during formatting"
),