about summary refs log tree commit diff
path: root/src/libsyntax_ext/cfg.rs
AgeCommit message (Collapse)AuthorLines
2019-12-30Rename directories for some crates from `syntax_x` to `rustc_x`Vadim Petrochenkov-54/+0
`syntax_expand` -> `rustc_expand` `syntax_pos` -> `rustc_span` `syntax_ext` -> `rustc_builtin_macros`
2019-12-22Format the worldMark Rousskov-3/+2
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/+1
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-13syntax: Remove `DummyResult::expn_only`Vadim Petrochenkov-1/+1
2019-07-31Replace AstBuilder with inherent methodsMark Rousskov-1/+0
2019-07-19Adjust other names after the `Mark` renamingVadim Petrochenkov-1/+1
2019-06-11Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-4/+5
2019-06-11syntax_ext: deny(unused_lifetimes).Eduard-Mihai Burtescu-1/+1
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-1/+1
2019-02-04libsyntax_ext => 2018Taiki Endo-4/+4
2019-01-02make `panictry!` private to libsyntaxAndy Russell-5/+30
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-07-12Deny bare trait objects in src/libsyntax_extljedrz-1/+1
2018-04-06Use `Span::apply_mark` where possibleVadim Petrochenkov-1/+1
2018-02-07libsyntax/ext: trailing commas in builtin macrosMichael Lamparski-0/+2
Most notably this changes 'syntax::ext::base::get_single_str_from_tts' to accept a trailing comma, and revises the documentation so that this aspect is not surprising. I made this change under the understanding that this crate is private rustc implementation detail (I hope this is correct!). After reviewing all call sites, I believe the revised semantics are closer to the intended spirit of the function.
2017-09-04Produce expansion info for more builtin macrosOliver Schneider-0/+1
2016-10-29Move `CrateConfig` from `Crate` to `ParseSess`.Jeffrey Seyfried-1/+1
2016-08-12run rustfmt on libsyntax_ext folderSrinivas Reddy Thatiparthy-1/+1
2016-06-26Rollup merge of #34385 - cgswords:tstream, r=nrcJeffrey Seyfried-2/+2
syntax-[breaking-change] cc #31645 (Only breaking because ast::TokenTree is now tokenstream::TokenTree.) This pull request refactors TokenTrees into their own file as src/libsyntax/tokenstream.rs, moving them out of src/libsyntax/ast.rs, in order to prepare for an accompanying TokenStream implementation (per RFC 1566).
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-06-21Refactored tokentrees into their own files in preparation for tokenstreams. ↵cgswords-2/+2
Modified tests to point to the new file now.
2016-06-16Simplify gated cfg checkingJeffrey Seyfried-8/+1
2015-12-31Cut out a bunch of Result and panictry! boilerplate from libsyntax.Nick Cameron-1/+1
[breaking-change] if you use any of the changed functions, you'll need to remove a try! or panictry!
2015-12-17Remove unused importsJeffrey Seyfried-1/+0
2015-12-15Move built-in syntax extensions to a separate crateSeo Sanghyeon-0/+45