mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-13 09:11:51 +00:00
Merge pull request #20795 from A4-Tacks/parse-edition-extract-expr-format-str
minor: Fix CURRENT_FIXME for extract_expressions_from_format_string
This commit is contained in:
commit
cd81783b5d
1 changed files with 1 additions and 3 deletions
|
|
@ -108,9 +108,7 @@ pub(crate) fn extract_expressions_from_format_string(
|
||||||
match arg {
|
match arg {
|
||||||
Arg::Expr(s) => {
|
Arg::Expr(s) => {
|
||||||
// insert arg
|
// insert arg
|
||||||
// FIXME: use the crate's edition for parsing
|
let expr = ast::Expr::parse(&s, ctx.edition()).syntax_node();
|
||||||
let expr =
|
|
||||||
ast::Expr::parse(&s, syntax::Edition::CURRENT_FIXME).syntax_node();
|
|
||||||
let mut expr_tt = utils::tt_from_syntax(expr);
|
let mut expr_tt = utils::tt_from_syntax(expr);
|
||||||
new_tt_bits.append(&mut expr_tt);
|
new_tt_bits.append(&mut expr_tt);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue