| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2016-07-03 | prefer `if let` to match with `None => {}` arm in some places | Zack M. Davis | -17/+11 | |
| This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block. | ||||
| 2016-06-26 | Rollup merge of #34436 - jseyfried:no_block_expr, r=eddyb | Jeffrey Seyfried | -1/+1 | |
| To allow these braced macro invocation, this PR removes the optional expression from `ast::Block` and instead uses a `StmtKind::Expr` at the end of the statement list. Currently, braced macro invocations in blocks can expand into statements (and items) except when they are last in a block, in which case they can only expand into expressions. For example, ```rust macro_rules! make_stmt { () => { let x = 0; } } fn f() { make_stmt! {} //< This is OK... let x = 0; //< ... unless this line is commented out. } ``` Fixes #34418. | ||||
| 2016-06-26 | Rollup merge of #34316 - jseyfried:refactor_ast_stmt, r=eddyb | Jeffrey Seyfried | -5/+6 | |
| Refactor away `ast::Decl`, refactor `ast::Stmt`, and rename `ast::ExprKind::Again` to `ast::ExprKind::Continue`. | ||||
| 2016-06-26 | Rollup merge of #34385 - cgswords:tstream, r=nrc | Jeffrey Seyfried | -2/+3 | |
| 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-23 | Remove field `expr` of `ast::Block` | Jeffrey Seyfried | -3/+4 | |
| 2016-06-23 | Move errors from libsyntax to its own crate | Jonathan Turner | -1/+2 | |
| 2016-06-21 | Refactored tokentrees into their own files in preparation for tokenstreams. ↵ | cgswords | -2/+3 | |
| Modified tests to point to the new file now. | ||||
| 2016-06-17 | Fix fallout | Jeffrey Seyfried | -5/+7 | |
| 2016-05-16 | syntax_ext: format: remove reference to methods in comment | Wang Xuerui | -1/+1 | |
| 2016-05-16 | syntax_ext: format: nest_level's are no more | Wang Xuerui | -20/+4 | |
| `nest_level` is long dead since cac7a2053aba7be214d5e58e13867089638a8f50 (PR #14831), so is `check_positional_ok()`. Let's bid them farewell. | ||||
| 2016-04-24 | syntax: Merge keywords and remaining special idents in one list | Vadim Petrochenkov | -4/+3 | |
| Simplify the macro used for generation of keywords Make `Keyword::ident` private | ||||
| 2016-04-24 | syntax: Make static/super/self/Self keywords + special ident cleanup | Vadim Petrochenkov | -2/+2 | |
| 2016-04-24 | syntax: Get rid of token::IdentStyle | Vadim Petrochenkov | -1/+1 | |
| 2016-02-11 | Remove some unnecessary indirection from AST structures | Vadim Petrochenkov | -1/+1 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Mutablity variants | Oliver 'ker' Schneider | -3/+3 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Item_ variants | Oliver 'ker' Schneider | -1/+1 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Stmt_ variants | Oliver Schneider | -1/+1 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Lit_ variants | Oliver Schneider | -1/+1 | |
| 2016-02-11 | [breaking-change] don't pub export ast::Ty_ variants | Oliver Schneider | -1/+1 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Expr_ variants | Oliver Schneider | -1/+1 | |
| 2016-02-11 | [breaking-change] don't glob export ast::Decl_ variants | Oliver Schneider | -1/+1 | |
| 2016-01-22 | Extended save-analysis to support generated code, alterned some spans in ↵ | Daniel Campbell | -3/+3 | |
| format_args! and derive to maintain compatability | ||||
| 2015-12-31 | Cut out a bunch of Result and panictry! boilerplate from libsyntax. | Nick Cameron | -2/+2 | |
| [breaking-change] if you use any of the changed functions, you'll need to remove a try! or panictry! | ||||
| 2015-12-30 | use structured errors | Nick Cameron | -4/+5 | |
| 2015-12-15 | Move built-in syntax extensions to a separate crate | Seo Sanghyeon | -0/+716 | |
