Add ast::ExprKind::Dummy
This commit is contained in:
parent
8c0b1fcd29
commit
a3fce72a27
18 changed files with 37 additions and 24 deletions
|
@ -1279,6 +1279,9 @@ pub fn expr_to_spanned_string<'a>(
|
|||
_ => Some((cx.dcx().struct_span_err(expr.span, err_msg), false)),
|
||||
},
|
||||
ast::ExprKind::Err => None,
|
||||
ast::ExprKind::Dummy => {
|
||||
cx.dcx().span_bug(expr.span, "tried to get a string literal from `ExprKind::Dummy`")
|
||||
}
|
||||
_ => Some((cx.dcx().struct_span_err(expr.span, err_msg), false)),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue