diff options
Diffstat (limited to 'crates/completion/src/completions/attribute.rs')
-rw-r--r-- | crates/completion/src/completions/attribute.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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 { | |||
413 | fn empty_derive_completion() { | 413 | fn empty_derive_completion() { |
414 | check( | 414 | check( |
415 | r#" | 415 | r#" |
416 | #[derive(<|>)] | 416 | #[derive($0)] |
417 | struct Test {} | 417 | struct Test {} |
418 | "#, | 418 | "#, |
419 | expect![[r#" | 419 | expect![[r#" |
@@ -434,7 +434,7 @@ struct Test {} | |||
434 | fn no_completion_for_incorrect_derive() { | 434 | fn no_completion_for_incorrect_derive() { |
435 | check( | 435 | check( |
436 | r#" | 436 | r#" |
437 | #[derive{<|>)] | 437 | #[derive{$0)] |
438 | struct Test {} | 438 | struct Test {} |
439 | "#, | 439 | "#, |
440 | expect![[r#""#]], | 440 | expect![[r#""#]], |
@@ -445,7 +445,7 @@ struct Test {} | |||
445 | fn derive_with_input_completion() { | 445 | fn derive_with_input_completion() { |
446 | check( | 446 | check( |
447 | r#" | 447 | r#" |
448 | #[derive(serde::Serialize, PartialEq, <|>)] | 448 | #[derive(serde::Serialize, PartialEq, $0)] |
449 | struct Test {} | 449 | struct Test {} |
450 | "#, | 450 | "#, |
451 | expect![[r#" | 451 | expect![[r#" |
@@ -464,7 +464,7 @@ struct Test {} | |||
464 | #[test] | 464 | #[test] |
465 | fn test_attribute_completion() { | 465 | fn test_attribute_completion() { |
466 | check( | 466 | check( |
467 | r#"#[<|>]"#, | 467 | r#"#[$0]"#, |
468 | expect![[r#" | 468 | expect![[r#" |
469 | at allow(…) | 469 | at allow(…) |
470 | at automatically_derived | 470 | at automatically_derived |
@@ -504,13 +504,13 @@ struct Test {} | |||
504 | 504 | ||
505 | #[test] | 505 | #[test] |
506 | fn test_attribute_completion_inside_nested_attr() { | 506 | fn test_attribute_completion_inside_nested_attr() { |
507 | check(r#"#[cfg(<|>)]"#, expect![[]]) | 507 | check(r#"#[cfg($0)]"#, expect![[]]) |
508 | } | 508 | } |
509 | 509 | ||
510 | #[test] | 510 | #[test] |
511 | fn test_inner_attribute_completion() { | 511 | fn test_inner_attribute_completion() { |
512 | check( | 512 | check( |
513 | r"#![<|>]", | 513 | r"#![$0]", |
514 | expect![[r#" | 514 | expect![[r#" |
515 | at allow(…) | 515 | at allow(…) |
516 | at automatically_derived | 516 | at automatically_derived |