Skip to content

Commit cd81783

Browse files
Merge pull request #20795 from A4-Tacks/parse-edition-extract-expr-format-str
minor: Fix CURRENT_FIXME for extract_expressions_from_format_string
2 parents 940e130 + 438dff3 commit cd81783

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ pub(crate) fn extract_expressions_from_format_string(
108108
match arg {
109109
Arg::Expr(s) => {
110110
// insert arg
111-
// FIXME: use the crate's edition for parsing
112-
let expr =
113-
ast::Expr::parse(&s, syntax::Edition::CURRENT_FIXME).syntax_node();
111+
let expr = ast::Expr::parse(&s, ctx.edition()).syntax_node();
114112
let mut expr_tt = utils::tt_from_syntax(expr);
115113
new_tt_bits.append(&mut expr_tt);
116114
}

0 commit comments

Comments
 (0)