Skip to content

Commit

Permalink
Auto merge of rust-lang#12635 - antogilbert:tgt_feat, r=Veykril
Browse files Browse the repository at this point in the history
Correct target_feature completion

I changed the `target_feature` to match the description given in rust-lang#12616.
  • Loading branch information
bors committed Jun 27, 2022
2 parents f6c0bf8 + bef89e9 commit 4c39546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/ide-completion/src/completions/attribute.rs
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions crates/ide-completion/src/tests/attribute.rs
Expand Up @@ -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(…)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4c39546

Please sign in to comment.