builtin_macros: expect raw strings too
`expr_to_string` allows raw strings through so this code should be expected to handle those. Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
@@ -84,7 +84,7 @@ pub fn expand_env<'cx>(
|
||||
// Use the string literal in the code in the diagnostic to avoid confusing diagnostics,
|
||||
// e.g. when the literal contains escape sequences.
|
||||
let ast::ExprKind::Lit(ast::token::Lit {
|
||||
kind: ast::token::LitKind::Str,
|
||||
kind: ast::token::LitKind::Str | ast::token::LitKind::StrRaw(..),
|
||||
symbol: original_var,
|
||||
..
|
||||
}) = &var_expr.kind
|
||||
|
||||
Reference in New Issue
Block a user