Add ast::ExprKind::Dummy
This commit is contained in:
parent
8c0b1fcd29
commit
a3fce72a27
18 changed files with 37 additions and 24 deletions
|
@ -303,6 +303,7 @@ impl<'cx, 'a> Context<'cx, 'a> {
|
|||
| ExprKind::Closure(_)
|
||||
| ExprKind::ConstBlock(_)
|
||||
| ExprKind::Continue(_)
|
||||
| ExprKind::Dummy
|
||||
| ExprKind::Err
|
||||
| ExprKind::Field(_, _)
|
||||
| ExprKind::ForLoop { .. }
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue