WIP partial implementation for desugar_defs_node_suffixed

This commit is contained in:
Luke Boswell 2024-03-19 12:57:30 +11:00
parent 3b2e9e36b8
commit 406ffdffab
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
4 changed files with 105 additions and 7 deletions

View file

@ -1441,7 +1441,12 @@ pub fn canonicalize_expr<'a>(
bad_expr
);
}
ast::Expr::Suffixed(_) => todo!(),
bad_expr @ ast::Expr::Suffixed(_) => {
internal_error!(
"A suffixed expression did not get desugared somehow: {:#?}",
bad_expr
);
},
};
// At the end, diff used_idents and defined_idents to see which were unused.