Emit an error if #[optimize]
is applied to an incompatible item
This commit is contained in:
parent
99322d84c4
commit
6d7bb127e6
5 changed files with 78 additions and 0 deletions
|
@ -542,6 +542,10 @@ passes_only_has_effect_on =
|
|||
*[unspecified] (unspecified--this is a compiler bug)
|
||||
}
|
||||
|
||||
passes_optimize_not_fn_or_closure =
|
||||
attribute should be applied to function or closure
|
||||
.label = not a function or closure
|
||||
|
||||
passes_outer_crate_level_attr =
|
||||
crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue