Skip to content

Commit 4c39546

Browse files
committed
Auto merge of rust-lang#12635 - antogilbert:tgt_feat, r=Veykril
Correct target_feature completion I changed the `target_feature` to match the description given in rust-lang#12616.
2 parents f6c0bf8 + bef89e9 commit 4c39546

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/ide-completion/src/completions/attribute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ const ATTRIBUTES: &[AttrCompletion] = &[
330330
attr("repr(…)", Some("repr"), Some("repr(${0:C})")),
331331
attr("should_panic", Some("should_panic"), Some(r#"should_panic"#)),
332332
attr(
333-
r#"target_feature = "…""#,
333+
r#"target_feature(enable = "…")"#,
334334
Some("target_feature"),
335-
Some(r#"target_feature = "${0:feature}""#),
335+
Some(r#"target_feature(enable = "${0:feature}")"#),
336336
),
337337
attr("test", None, None),
338338
attr("track_caller", None, None),

crates/ide-completion/src/tests/attribute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ fn attr_on_fn() {
568568
at proc_macro_attribute
569569
at proc_macro_derive(…)
570570
at should_panic
571-
at target_feature = "…"
571+
at target_feature(enable = "…")
572572
at test
573573
at track_caller
574574
at warn(…)
@@ -615,7 +615,7 @@ fn attr_in_source_file_end() {
615615
at proc_macro_derive(…)
616616
at repr(…)
617617
at should_panic
618-
at target_feature = "…"
618+
at target_feature(enable = "…")
619619
at test
620620
at track_caller
621621
at used

0 commit comments

Comments
 (0)