mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Use new try impl for ? operator
This commit is contained in:
parent
193c23bac8
commit
de626102c8
20 changed files with 429 additions and 110 deletions
|
@ -201,7 +201,7 @@ impl<'a> Formattable for Expr<'a> {
|
|||
buf.indent(indent);
|
||||
buf.push_str("try");
|
||||
}
|
||||
LowLevelTry(_) => unreachable!(
|
||||
LowLevelTry(_, _) => unreachable!(
|
||||
"LowLevelTry should only exist after desugaring, not during formatting"
|
||||
),
|
||||
Return(return_value, after_return) => {
|
||||
|
@ -370,7 +370,7 @@ pub fn expr_is_multiline(me: &Expr<'_>, comments_only: bool) -> bool {
|
|||
| Expr::Crash
|
||||
| Expr::Dbg
|
||||
| Expr::Try => false,
|
||||
Expr::LowLevelTry(_) => {
|
||||
Expr::LowLevelTry(_, _) => {
|
||||
unreachable!("LowLevelTry should only exist after desugaring, not during formatting")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue