Mark incorrect recovered char literals as TyErr to avoid type errors
This commit is contained in:
@@ -23,6 +23,7 @@ pub fn expand_syntax_ext(
|
||||
match e.node {
|
||||
ast::ExprKind::Lit(ref lit) => match lit.node {
|
||||
ast::LitKind::Str(ref s, _)
|
||||
| ast::LitKind::Err(ref s)
|
||||
| ast::LitKind::Float(ref s, _)
|
||||
| ast::LitKind::FloatUnsuffixed(ref s) => {
|
||||
accumulator.push_str(&s.as_str());
|
||||
|
||||
Reference in New Issue
Block a user