about summary refs log tree commit diff
path: root/src/libsyntax_ext/assert.rs
AgeCommit message (Collapse)AuthorLines
2019-12-30Rename directories for some crates from `syntax_x` to `rustc_x`Vadim Petrochenkov-137/+0
`syntax_expand` -> `rustc_expand` `syntax_pos` -> `rustc_span` `syntax_ext` -> `rustc_builtin_macros`
2019-12-22Format the worldMark Rousskov-34/+31
2019-12-02syntax: Remove redundant span from `ast::Mac`Vadim Petrochenkov-1/+0
Also remove a couple of redundant `visit_mac` asserts
2019-12-02syntax: Introduce a struct `MacArgs` for macro argumentsVadim Petrochenkov-11/+12
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-2/+2
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-07syntax::parser::token -> syntax::tokenMazdak Farrokhzad-1/+1
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-1/+1
2019-09-15Remove `with_legacy_ctxt`Matthew Jasper-1/+3
2019-09-03use TokenStream rather than &[TokenTree] for built-in macrosAleksey Kladov-3/+3
That way, we don't loose the jointness info
2019-08-23Audit uses of `apply_mark` in built-in macrosVadim Petrochenkov-1/+1
Replace them with equivalents of `Span::{def_site,call_site}` from proc macro API. The new API is much less error prone and doesn't rely on macros having default transparency.
2019-08-15Remove `Spanned` from `ast::Mac`Vadim Petrochenkov-6/+3
2019-08-13syntax: Remove `DummyResult::expn_only`Vadim Petrochenkov-1/+1
2019-08-04Auto merge of #62816 - estebank:type-ascription-macros, r=petrochenkovbors-0/+1
Point at type ascription before macro invocation on expansion parse error Fix https://github.com/rust-lang/rust/issues/47666. Follow up to https://github.com/rust-lang/rust/pull/62791. r? @petrochenkov
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-1/+0
2019-07-30Point at type ascription before macro invocation on expansion parse errorEsteban Küber-0/+1
2019-07-19Adjust other names after the `Mark` renamingVadim Petrochenkov-1/+1
2019-07-03Remove needless lifetimesJeremy Stucki-1/+1
2019-06-07parser: `self.span` -> `self.token.span`Vadim Petrochenkov-2/+2
2019-06-06Some code cleanup and tidy/test fixesVadim Petrochenkov-1/+2
2019-06-06syntax: Switch function parameter order in `TokenTree::token`Vadim Petrochenkov-1/+1
2019-06-06syntax: Use `Token` in `Parser`Vadim Petrochenkov-1/+1
2019-06-06syntax: Use `Token` in `TokenTree::Token`Vadim Petrochenkov-1/+1
2019-06-06syntax: Rename `Token` into `TokenKind`Vadim Petrochenkov-2/+2
2019-05-27Avoid unnecessary internings.Nicholas Nethercote-2/+2
Most involving `Symbol::intern` on string literals.
2019-05-23syntax: Turn `token::Lit` into a structVadim Petrochenkov-9/+6
2019-04-25Handle common assert! misusesAlexey Shmalko-14/+60
2019-04-17Make assert! ensure the macro is parsed completelyAlexey Shmalko-2/+9
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-1/+1
2019-02-04libsyntax_ext => 2018Taiki Endo-2/+3
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