Andy Russell
a367cec6e3
emit error with span for empty asserts
...
Fixes #55547 .
2018-12-04 10:22:48 -05:00
Donato Sciarra
82607d2cf3
mv (mod) codemap source_map
2018-08-19 23:01:00 +02:00
ljedrz
08c113abef
Deny bare trait objects in src/libsyntax_ext
2018-07-12 11:58:16 +02:00
Alex Crichton
a137d00ce5
rustc: Correctly pretty-print macro delimiters
...
This commit updates the `Mac_` AST structure to keep track of the delimiters
that it originally had for its invocation. This allows us to faithfully
pretty-print macro invocations not using parentheses (e.g. `vec![...]`). This in
turn helps procedural macros due to #43081 .
Closes #50840
2018-05-22 11:56:41 -07:00
Shotaro Yamada
39df2231bb
Fix assertion message generation
2018-05-06 12:13:32 +09:00
Vadim Petrochenkov
b3b5ef186c
Remove more duplicated spans
2018-04-06 11:50:49 +03:00
Vadim Petrochenkov
43ad972318
Use Span::apply_mark where possible
2018-04-06 11:48:19 +03:00
Shotaro Yamada
4a254c0050
Escape stringified expression
...
Payload of `Literal` token must be escaped.
Also print printable non-ASCII characters.
2018-03-14 18:11:42 +09:00
Shotaro Yamada
517083fbad
Make assert macro a built-in procedural macro
2018-03-07 17:22:58 +09:00