Merge pull request #7151 from hrishisd/deprecate-old-str-interpolation

Remove deprecated string interpolation syntax #7148
This commit is contained in:
Luke Boswell 2024-10-09 11:21:18 +11:00 committed by GitHub
commit 0271f2eeb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 17 additions and 94 deletions

View file

@ -0,0 +1 @@
Expr(Str(UnknownEscape(@1), @0), @0)

View file

@ -1,17 +0,0 @@
SpaceAfter(
Str(
Line(
[
DeprecatedInterpolated(
@3-4 Var {
module_name: "",
ident: "e",
},
),
],
),
),
[
Newline,
],
)

View file

@ -192,6 +192,7 @@ mod test_snapshots {
fail/comment_with_tab.expr,
fail/def_missing_final_expression.expr,
fail/def_without_newline.expr,
fail/deprecated_interpolated_string.expr,
fail/double_plus.expr,
fail/elm_function_syntax.expr,
fail/empty_or_pattern.expr,
@ -303,11 +304,10 @@ mod test_snapshots {
pass/comment_with_non_ascii.expr,
pass/control_characters_in_scalar.expr,
pass/crash.expr,
pass/dbg.expr,
pass/dbg_stmt.expr,
pass/dbg_stmt_multiline.expr,
pass/dbg.expr,
pass/defs_suffixed_middle_extra_indents.moduledefs,
pass/deprecated_interpolated_string.expr,
pass/destructure_tag_assignment.expr,
pass/docs.expr,
pass/empty_app_header.header,