1
Fork 0

Add ast::ExprKind::Dummy

This commit is contained in:
Lieselotte 2024-02-25 22:22:09 +01:00
parent 8c0b1fcd29
commit a3fce72a27
No known key found for this signature in database
GPG key ID: 43A6A32F83A6F9B1
18 changed files with 37 additions and 24 deletions

View file

@ -303,6 +303,7 @@ impl<'cx, 'a> Context<'cx, 'a> {
| ExprKind::Closure(_)
| ExprKind::ConstBlock(_)
| ExprKind::Continue(_)
| ExprKind::Dummy
| ExprKind::Err
| ExprKind::Field(_, _)
| ExprKind::ForLoop { .. }

View file

@ -68,6 +68,7 @@ pub fn expand_concat(
ast::ExprKind::Err => {
has_errors = true;
}
ast::ExprKind::Dummy => cx.dcx().span_bug(e.span, "concatenating `ExprKind::Dummy`"),
_ => {
missing_literal.push(e.span);
}

View file

@ -176,6 +176,7 @@ pub fn expand_concat_bytes(
ast::ExprKind::Err => {
has_errors = true;
}
ast::ExprKind::Dummy => cx.dcx().span_bug(e.span, "concatenating `ExprKind::Dummy`"),
_ => {
missing_literals.push(e.span);
}