remove unit type from EmptyDefsFinal

This commit is contained in:
Luke Boswell 2024-04-14 13:44:43 +10:00
parent 93ef5e42dc
commit 129ca94733
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
7 changed files with 13 additions and 13 deletions

View file

@ -623,7 +623,7 @@ pub fn canonicalize_expr<'a>(
use Expr::*;
let (expr, output) = match expr {
&ast::Expr::EmptyDefsFinal() => {
&ast::Expr::EmptyDefsFinal => {
internal_error!("EmptyDefsFinal should have been desugared")
}
&ast::Expr::Num(str) => {
@ -2431,7 +2431,7 @@ pub fn is_valid_interpolation(expr: &ast::Expr<'_>) -> bool {
| ast::Expr::SpaceBefore(_, _)
| ast::Expr::Str(StrLiteral::Block(_))
| ast::Expr::SpaceAfter(_, _)
| ast::Expr::EmptyDefsFinal() => false,
| ast::Expr::EmptyDefsFinal => false,
// These can contain subexpressions, so we need to recursively check those
ast::Expr::Str(StrLiteral::Line(segments)) => {
segments.iter().all(|segment| match segment {