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/completion/src/completions/attribute.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/completion/src/completions/attribute.rs') diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs index 17276b5a4..10739750c 100644 --- a/crates/completion/src/completions/attribute.rs +++ b/crates/completion/src/completions/attribute.rs @@ -413,7 +413,7 @@ mod tests { fn empty_derive_completion() { check( r#" -#[derive(<|>)] +#[derive($0)] struct Test {} "#, expect![[r#" @@ -434,7 +434,7 @@ struct Test {} fn no_completion_for_incorrect_derive() { check( r#" -#[derive{<|>)] +#[derive{$0)] struct Test {} "#, expect![[r#""#]], @@ -445,7 +445,7 @@ struct Test {} fn derive_with_input_completion() { check( r#" -#[derive(serde::Serialize, PartialEq, <|>)] +#[derive(serde::Serialize, PartialEq, $0)] struct Test {} "#, expect![[r#" @@ -464,7 +464,7 @@ struct Test {} #[test] fn test_attribute_completion() { check( - r#"#[<|>]"#, + r#"#[$0]"#, expect![[r#" at allow(…) at automatically_derived @@ -504,13 +504,13 @@ struct Test {} #[test] fn test_attribute_completion_inside_nested_attr() { - check(r#"#[cfg(<|>)]"#, expect![[]]) + check(r#"#[cfg($0)]"#, expect![[]]) } #[test] fn test_inner_attribute_completion() { check( - r"#![<|>]", + r"#![$0]", expect![[r#" at allow(…) at automatically_derived -- cgit v1.2.3