Prevent using #[target_feature]
on lang item functions
This commit is contained in:
parent
cdd182cbb2
commit
9102816bc4
7 changed files with 99 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue