1
Fork 0

Emit an error if #[optimize] is applied to an incompatible item

This commit is contained in:
clubby789 2024-07-31 19:39:39 +00:00
parent 99322d84c4
commit 6d7bb127e6
5 changed files with 78 additions and 0 deletions

View file

@ -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]`