Skip to content

Commit 81a6437

Browse files
committed
rustc: Blanket whitelist #[target_feature]
This commit transitions the `target_feature` attribute from `Normal` to `Whitelisted`. Discovered in #50095 the fact of whether this attribute is used or not is dependent on typechecking running and executing `check_name`, but incremental compilation doesn't currently account for this, meaning that the attribute ends up being flagged as unused when it shouldn't be. I was a little too ambitious it seems hoping that `Normal` could be used, so instead this transitions to `Whitelisted` to be the same as other codegen attributes like `#[inline]` Closes #50095
1 parent fc9da8f commit 81a6437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
921921
"the `#[naked]` attribute \
922922
is an experimental feature",
923923
cfg_fn!(naked_functions))),
924-
("target_feature", Normal, Ungated),
924+
("target_feature", Whitelisted, Ungated),
925925
("export_name", Whitelisted, Ungated),
926926
("inline", Whitelisted, Ungated),
927927
("link", Whitelisted, Ungated),

0 commit comments

Comments
 (0)