Skip to content

Commit 926db33

Browse files
committed
Update target_feature for attribute template changes
1 parent 7667617 commit 926db33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/attributes/codegen.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Only the first use of the `no_builtins` attribute has effect.
181181
> [!NOTE]
182182
> `rustc` lints against any use following the first.
183183
184+
<!-- template:attributes -->
184185
r[attributes.codegen.target_feature]
185186
## The `target_feature` attribute
186187
@@ -228,7 +229,7 @@ It is not allowed on the following places:
228229
- safe default functions in traits
229230
230231
> [!NOTE]
231-
> `rustc` currently warns on some positions where it is ignored, but this may become an error in the future.
232+
> `rustc` ignores use in other positions but lints against it. This may become an error in the future.
232233
233234
r[attributes.codegen.target_feature.duplicates]
234235
If the `target_feature` attribute is specified multiple times on an item, then the union of all the specified features are enabled.

0 commit comments

Comments
 (0)