From 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Wed, 6 Jan 2021 20:15:48 +0000 Subject: Change <|> to $0 - Rebase --- crates/ide/src/diagnostics/field_shorthand.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ide/src/diagnostics') diff --git a/crates/ide/src/diagnostics/field_shorthand.rs b/crates/ide/src/diagnostics/field_shorthand.rs index f41bcd619..16c6ea827 100644 --- a/crates/ide/src/diagnostics/field_shorthand.rs +++ b/crates/ide/src/diagnostics/field_shorthand.rs @@ -120,7 +120,7 @@ fn main() { A { 0: 0 } } struct A { a: &'static str } fn main() { let a = "haha"; - A { a<|>: a } + A { a$0: a } } "#, r#" @@ -138,7 +138,7 @@ struct A { a: &'static str, b: &'static str } fn main() { let a = "haha"; let b = "bb"; - A { a<|>: a, b } + A { a$0: a, b } } "#, r#" @@ -171,7 +171,7 @@ fn f(a: A) { let A { 0: 0 } = a; } r#" struct A { a: &'static str } fn f(a: A) { - let A { a<|>: a } = a; + let A { a$0: a } = a; } "#, r#" @@ -186,7 +186,7 @@ fn f(a: A) { r#" struct A { a: &'static str, b: &'static str } fn f(a: A) { - let A { a<|>: a, b } = a; + let A { a$0: a, b } = a; } "#, r#" -- cgit v1.2.3