1
Fork 0

Prevent using #[target_feature] on lang item functions

This commit is contained in:
Eduardo Sánchez Muñoz 2023-09-18 20:11:01 +02:00
parent cdd182cbb2
commit 9102816bc4
7 changed files with 99 additions and 3 deletions

View file

@ -404,6 +404,10 @@ passes_invalid_stability =
.label = invalid stability version
.item = the stability attribute annotates this item
passes_lang_item_fn_with_target_feature =
`{$name}` language item function is not allowed to have `#[target_feature]`
.label = `{$name}` language item function is not allowed to have `#[target_feature]`
passes_lang_item_on_incorrect_target =
`{$name}` language item must be applied to a {$expected_target}
.label = attribute should be applied to a {$expected_target}, not a {$actual_target}