convert the optimize attribute to a new parser

This commit is contained in:
Jana Dönszelmann
2025-03-09 23:46:47 +01:00
parent 1bb335244c
commit b64fd13a04
13 changed files with 72 additions and 58 deletions

View File

@@ -1,8 +1,14 @@
#### Note: this error code is no longer emitted by the compiler
This is because it was too specific to the `optimize` attribute.
Similar diagnostics occur for other attributes too.
The example here will now emit `E0539`
The `optimize` attribute was malformed.
Erroneous code example:
```compile_fail,E0722
```compile_fail,E0539
#![feature(optimize_attribute)]
#[optimize(something)] // error: invalid argument