about summary refs log tree commit diff
path: root/src/libsyntax_ext/assert.rs
AgeCommit message (Collapse)AuthorLines
2019-01-02make `panictry!` private to libsyntaxAndy Russell-24/+44
This commit completely removes usage of the `panictry!` macro from outside libsyntax. The macro causes parse errors to be fatal, so using it in libsyntax_ext caused parse failures *within* a syntax extension to be fatal, which is probably not intended. Furthermore, this commit adds spans to diagnostics emitted by empty extensions if they were missing, à la #56491.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-04emit error with span for empty assertsAndy Russell-0/+8
Fixes #55547.
2018-08-19mv (mod) codemap source_mapDonato Sciarra-1/+1
2018-07-12Deny bare trait objects in src/libsyntax_extljedrz-1/+1
2018-05-22rustc: Correctly pretty-print macro delimitersAlex Crichton-0/+1
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-06Fix assertion message generationShotaro Yamada-57/+4
2018-04-06Remove more duplicated spansVadim Petrochenkov-1/+2
2018-04-06Use `Span::apply_mark` where possibleVadim Petrochenkov-1/+1
2018-03-14Escape stringified expressionShotaro Yamada-5/+63
Payload of `Literal` token must be escaped. Also print printable non-ASCII characters.
2018-03-07Make `assert` macro a built-in procedural macroShotaro Yamada-0/+64