Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
Esteban Küber
4e418805da
More detail when expecting expression but encountering bad macro argument
...
Partially address #71039 .
2023-11-16 16:19:04 +00:00
Lena Milizé
04f20d4ac8
compiler: print the suggestion only for local macros
...
And wrap the link in the diagnostic in angle brackets.
Signed-off-by: Lena Milizé <me@lvmn.org>
2023-04-12 15:43:50 +02:00
Lena Milizé
4b456cb683
compiler: improve captured metavariables diagnostic
...
Adds a link to the relevant part of The Rust Reference in the eror
message, and suggests a possible fix (replacing the fragment specifier
with :tt in the macro definition).
Fixes typos in the original message.
Signed-off-by: Lena Milizé <me@lvmn.org>
2023-04-12 11:32:25 +02:00
Nilstrieb
3dee4630ba
Add note when matching token with nonterminal
...
The current error message is _really_ confusing.
2023-03-10 16:59:26 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00