aboutsummaryrefslogtreecommitdiff
path: root/crates/completion
diff options
context:
space:
mode:
Diffstat (limited to 'crates/completion')
-rw-r--r--crates/completion/src/completions/attribute.rs22
1 files changed, 9 insertions, 13 deletions
diff --git a/crates/completion/src/completions/attribute.rs b/crates/completion/src/completions/attribute.rs
index 8695eed39..17276b5a4 100644
--- a/crates/completion/src/completions/attribute.rs
+++ b/crates/completion/src/completions/attribute.rs
@@ -98,7 +98,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
98 attr(r#"crate_name = """#, Some("crate_name"), Some(r#"crate_name = "${0:crate_name}""#)) 98 attr(r#"crate_name = """#, Some("crate_name"), Some(r#"crate_name = "${0:crate_name}""#))
99 .prefer_inner(), 99 .prefer_inner(),
100 attr("deny(…)", Some("deny"), Some("deny(${0:lint})")), 100 attr("deny(…)", Some("deny"), Some("deny(${0:lint})")),
101 attr(r#"deprecated = "…""#, Some("deprecated"), Some(r#"deprecated = "${0:reason}""#)), 101 attr(r#"deprecated"#, Some("deprecated"), Some(r#"deprecated"#)),
102 attr("derive(…)", Some("derive"), Some(r#"derive(${0:Debug})"#)), 102 attr("derive(…)", Some("derive"), Some(r#"derive(${0:Debug})"#)),
103 attr( 103 attr(
104 r#"export_name = "…""#, 104 r#"export_name = "…""#,
@@ -121,7 +121,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
121 ), 121 ),
122 attr("macro_export", None, None), 122 attr("macro_export", None, None),
123 attr("macro_use", None, None), 123 attr("macro_use", None, None),
124 attr(r#"must_use = "…""#, Some("must_use"), Some(r#"must_use = "${0:reason}""#)), 124 attr(r#"must_use"#, Some("must_use"), Some(r#"must_use"#)),
125 attr("no_link", None, None).prefer_inner(), 125 attr("no_link", None, None).prefer_inner(),
126 attr("no_implicit_prelude", None, None).prefer_inner(), 126 attr("no_implicit_prelude", None, None).prefer_inner(),
127 attr("no_main", None, None).prefer_inner(), 127 attr("no_main", None, None).prefer_inner(),
@@ -136,11 +136,7 @@ const ATTRIBUTES: &[AttrCompletion] = &[
136 attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}")) 136 attr("recursion_limit = …", Some("recursion_limit"), Some("recursion_limit = ${0:128}"))
137 .prefer_inner(), 137 .prefer_inner(),
138 attr("repr(…)", Some("repr"), Some("repr(${0:C})")), 138 attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
139 attr( 139 attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
140 "should_panic(…)",
141 Some("should_panic"),
142 Some(r#"should_panic(expected = "${0:reason}")"#),
143 ),
144 attr( 140 attr(
145 r#"target_feature = "…""#, 141 r#"target_feature = "…""#,
146 Some("target_feature"), 142 Some("target_feature"),
@@ -476,7 +472,7 @@ struct Test {}
476 at cfg(…) 472 at cfg(…)
477 at cold 473 at cold
478 at deny(…) 474 at deny(…)
479 at deprecated = "…" 475 at deprecated
480 at derive(…) 476 at derive(…)
481 at export_name = "…" 477 at export_name = "…"
482 at doc = "…" 478 at doc = "…"
@@ -488,7 +484,7 @@ struct Test {}
488 at link_section = "…" 484 at link_section = "…"
489 at macro_export 485 at macro_export
490 at macro_use 486 at macro_use
491 at must_use = "…" 487 at must_use
492 at no_mangle 488 at no_mangle
493 at non_exhaustive 489 at non_exhaustive
494 at path = "…" 490 at path = "…"
@@ -496,7 +492,7 @@ struct Test {}
496 at proc_macro_attribute 492 at proc_macro_attribute
497 at proc_macro_derive(…) 493 at proc_macro_derive(…)
498 at repr(…) 494 at repr(…)
499 at should_panic(…) 495 at should_panic
500 at target_feature = "…" 496 at target_feature = "…"
501 at test 497 at test
502 at track_caller 498 at track_caller
@@ -523,7 +519,7 @@ struct Test {}
523 at cold 519 at cold
524 at crate_name = "" 520 at crate_name = ""
525 at deny(…) 521 at deny(…)
526 at deprecated = "…" 522 at deprecated
527 at derive(…) 523 at derive(…)
528 at export_name = "…" 524 at export_name = "…"
529 at doc = "…" 525 at doc = "…"
@@ -537,7 +533,7 @@ struct Test {}
537 at link_section = "…" 533 at link_section = "…"
538 at macro_export 534 at macro_export
539 at macro_use 535 at macro_use
540 at must_use = "…" 536 at must_use
541 at no_link 537 at no_link
542 at no_implicit_prelude 538 at no_implicit_prelude
543 at no_main 539 at no_main
@@ -551,7 +547,7 @@ struct Test {}
551 at proc_macro_derive(…) 547 at proc_macro_derive(…)
552 at recursion_limit = … 548 at recursion_limit = …
553 at repr(…) 549 at repr(…)
554 at should_panic(…) 550 at should_panic
555 at target_feature = "…" 551 at target_feature = "…"
556 at test 552 at test
557 at track_caller 553 at track_caller