about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntonello Palazzi <antplz87@gmail.com>2022-06-26 00:50:41 +0100
committerAntonello Palazzi <antplz87@gmail.com>2022-06-26 00:50:41 +0100
commite4e2a467732ff4460ca75954fc2b051caad0416d (patch)
treefefa9060556cbd887cc748dc366dadb0c6d689ec
parent5bb123d97000a85c7a909fe1ab0b981d54c967f2 (diff)
Correct target_feature completion
-rw-r--r--crates/ide-completion/src/completions/attribute.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-completion/src/completions/attribute.rs b/crates/ide-completion/src/completions/attribute.rs
index 154c096f4d5..2de33a73622 100644
--- a/crates/ide-completion/src/completions/attribute.rs
+++ b/crates/ide-completion/src/completions/attribute.rs
@@ -330,9 +330,9 @@ const ATTRIBUTES: &[AttrCompletion] = &[
     attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
     attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
     attr(
-        r#"target_feature = "…""#,
+        r#"target_feature(enable = "…")"#,
         Some("target_feature"),
-        Some(r#"target_feature = "${0:feature}""#),
+        Some(r#"target_feature(enable = "${0:feature}")"#),
     ),
     attr("test", None, None),
     attr("track_caller", None, None),