Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00
nils
2f9f097cb8
Migrate parts of rustc_expand
to session diagnostics
...
This migrates everything but the `mbe` and `proc_macro` modules. It also
contains a few cleanups and drive-by/accidental diagnostic improvements
which can be seen in the diff for the UI tests.
2022-12-10 11:02:41 +01:00
Mazdak Farrokhzad
5011ec7fed
move attr meta grammar to parse::validate_atr + ast_validation
2019-11-09 02:04:24 +01:00
Vadim Petrochenkov
8eaf17bca2
Introduce built-in macros through libcore
2019-07-26 13:09:54 +03:00
Esteban Küber
609ffa1a89
Reword malformed attribute input diagnostics
...
- Handle empty `cfg_attr` attribute
- Reword empty `derive` attribute error
- Use consistend error message: "malformed `attrname` attribute input"
- Provide suggestions when possible
- Move note/help to label/suggestion
- Use consistent wording "ill-formed" -> "malformed"
- Move diagnostic logic out of parser
2019-05-25 11:55:50 -07:00
Vadim Petrochenkov
5cb5083909
syntax_ext: Validate #[proc_macro_derive]
input better
...
Tweak some error wording
2019-03-16 23:13:15 +03:00
Vadim Petrochenkov
8371caf5ee
syntax: Do not accidentally treat multi-segment meta-items as single-segment
2019-03-16 23:13:15 +03:00
Vadim Petrochenkov
e2009ea5ff
Add tests for malformed input in #[proc_macro_derive]
2019-03-16 23:13:15 +03:00
Vadim Petrochenkov
d3411d3ee8
Address review comments
2019-01-13 15:02:18 +03:00
Vadim Petrochenkov
41c65992c5
Implement basic input validation for built-in attributes
2019-01-13 14:17:19 +03:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Vadim Petrochenkov
4c9c70af38
Move former compile-fail-fulldeps tests to ui
2018-12-09 19:56:30 +03:00