Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e4e2a46

Browse files
committed
Correct target_feature completion
1 parent 5bb123d commit e4e2a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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),

0 commit comments

Comments
 (0)