Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs')
-rw-r--r--crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs b/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs
index e3c7ea1b09..61af2de6ec 100644
--- a/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs
+++ b/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs
@@ -108,9 +108,7 @@ pub(crate) fn extract_expressions_from_format_string(
match arg {
Arg::Expr(s) => {
// insert arg
- // FIXME: use the crate's edition for parsing
- let expr =
- ast::Expr::parse(&s, syntax::Edition::CURRENT_FIXME).syntax_node();
+ let expr = ast::Expr::parse(&s, ctx.edition()).syntax_node();
let mut expr_tt = utils::tt_from_syntax(expr);
new_tt_bits.append(&mut expr_tt);
}