Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #12635 - antogilbert:tgt_feat, r=Veykril
Correct target_feature completion
I changed the `target_feature` to match the description given in #12616.
| -rw-r--r-- | crates/ide-completion/src/completions/attribute.rs | 4 | ||||
| -rw-r--r-- | crates/ide-completion/src/tests/attribute.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide-completion/src/completions/attribute.rs b/crates/ide-completion/src/completions/attribute.rs index 154c096f4d..2de33a7362 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), diff --git a/crates/ide-completion/src/tests/attribute.rs b/crates/ide-completion/src/tests/attribute.rs index 52c69f84b6..3b366c94bf 100644 --- a/crates/ide-completion/src/tests/attribute.rs +++ b/crates/ide-completion/src/tests/attribute.rs @@ -568,7 +568,7 @@ fn attr_on_fn() { at proc_macro_attribute at proc_macro_derive(…) at should_panic - at target_feature = "…" + at target_feature(enable = "…") at test at track_caller at warn(…) @@ -615,7 +615,7 @@ fn attr_in_source_file_end() { at proc_macro_derive(…) at repr(…) at should_panic - at target_feature = "…" + at target_feature(enable = "…") at test at track_caller at used |