diff --git a/crates/ide-completion/src/completions/attribute.rs b/crates/ide-completion/src/completions/attribute.rs index 154c096f4d598..2de33a7362286 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 52c69f84b6108..3b366c94bf045 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