| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-07-16 | Rollup merge of #62666 - estebank:preempt-ice, r=eddyb | Mark Rousskov | -8/+9 | |
| Cancel unemitted diagnostics during error recovery Follow up to https://github.com/rust-lang/rust/pull/62604. Use @eddyb's preferred style and catch other case of the same problem. r? @eddyb | ||||
| 2019-07-15 | Rollup merge of #62668 - goodmanjonathan:fix-62660, r=estebank | Mark Rousskov | -1/+1 | |
| Fix #62660 If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE. Fixes #62660. | ||||
| 2019-07-15 | Auto merge of #62670 - estebank:extern-fn-with-body, r=petrochenkov | bors | -14/+24 | |
| Detect `fn` with a body in an `extern` block Fix #62109. | ||||
| 2019-07-14 | Auto merge of #62643 - estebank:parse-recovery-type-errs, r=petrochenkov | bors | -2/+4 | |
| Do not emit type errors after parse error in last statement of block When recovering from a parse error inside a block, do not emit type errors generating on that block's recovered return expression. Fix #57383. | ||||
| 2019-07-14 | Auto merge of #62638 - estebank:issue-62554, r=petrochenkov | bors | -17/+13 | |
| Use snippet instead of pprinting statement Fix #62554. | ||||
| 2019-07-13 | Detect `fn` with a body in an `extern` block | Esteban Küber | -14/+24 | |
| 2019-07-13 | Don't drop DiagnosticBuilder if parsing fails | Jonathan Goodman | -1/+1 | |
| If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE. Fixes #62660. | ||||
| 2019-07-13 | Cancel unemitted diagnostics during error recovery | Esteban Küber | -8/+9 | |
| 2019-07-13 | Rollup merge of #62604 - estebank:unemitted-err-ice, r=pnkfelix | Mazdak Farrokhzad | -4/+7 | |
| Handle errors during error recovery gracefully Fix #62546. | ||||
| 2019-07-12 | Do not emit type errors after parse error in last statement of block | Esteban Küber | -2/+4 | |
| When recovering from a parse error inside a block, do not emit type errors generating on that block's recovered return expression. Fix #57383. | ||||
| 2019-07-12 | Use snippet instead of pprinting statement | Esteban Küber | -17/+13 | |
| 2019-07-12 | Rollup merge of #62607 - estebank:this-mem-is-out-of-control, r=petrochenkov | Mazdak Farrokhzad | -2/+3 | |
| Correctly break out of recovery loop Fix #61858. | ||||
| 2019-07-11 | Correctly break out of recovery loop | Esteban Küber | -2/+3 | |
| 2019-07-11 | Emit dropped unemitted errors to aid in ICE debugging | Esteban Küber | -6/+7 | |
| 2019-07-11 | Handle errors during error recovery gracefully | Esteban Küber | -4/+7 | |
| 2019-07-10 | Remove needless indent arguments | Mark Rousskov | -1/+1 | |
| We're always indenting by INDENT_UNIT anyway | ||||
| 2019-07-10 | Move pp::Printer helpers to direct impl | Mark Rousskov | -2/+1 | |
| 2019-07-05 | Rollup merge of #62292 - Centril:split-async-closures, r=cramertj | Mazdak Farrokhzad | -15/+21 | |
| Move `async || ...` closures into `#![feature(async_closure)]` The `async || expr` syntax is moved out from `#![feature(async_await)]` into its own gate `#![feature(async_closure)]`. New tracking issue: https://github.com/rust-lang/rust/issues/62290 Closes https://github.com/rust-lang/rust/issues/62214. cc https://github.com/rust-lang/rust/issues/62149 r? @varkor | ||||
| 2019-07-05 | Auto merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddyb | bors | -9/+9 | |
| Remove io::Result from syntax::print Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure | ||||
| 2019-07-04 | Rollup merge of #62258 - petrochenkov:idclean, r=Centril | Mazdak Farrokhzad | -137/+77 | |
| syntax: Unsupport `foo! bar { ... }` macros in the parser Their support in expansion was removed in https://github.com/rust-lang/rust/pull/61606. Also un-reserve `macro_rules` as a macro name, there's no ambiguity between `macro_rules` definitions and macro calls (it also wasn't reserved correctly). cc https://github.com/rust-lang-nursery/wg-grammar/issues/51 | ||||
| 2019-07-03 | Add separate 'async_closure' feature gate. | Mazdak Farrokhzad | -15/+21 | |
| 2019-07-01 | Convert more usages over | Chris Gregory | -2/+2 | |
| 2019-07-01 | Address review comments | Vadim Petrochenkov | -48/+45 | |
| 2019-07-01 | syntax: Unsupport `foo! bar { ... }` macros in the parser | Vadim Petrochenkov | -93/+36 | |
| Unreserve `macro_rules` as a macro name | ||||
| 2019-06-29 | Always parse 'async unsafe fn' + properly ban in 2015. | Mazdak Farrokhzad | -8/+18 | |
| 2019-06-29 | Remove io::Result from syntax::print | Mark Rousskov | -9/+9 | |
| Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure | ||||
| 2019-06-26 | Fix clippy::redundant_field_names | Igor Matuszewski | -9/+9 | |
| 2019-06-25 | Auto merge of #60732 - jswrenn:arbitrary_enum_discriminant, r=pnkfelix | bors | -17/+14 | |
| Implement arbitrary_enum_discriminant Implements RFC rust-lang/rfcs#2363 (tracking issue #60553). | ||||
| 2019-06-24 | Auto merge of #62075 - Centril:guardless-match-arms, r=petrochenkov | bors | -2/+2 | |
| Remove `ast::Guard` With the introduction of `ast::ExprKind::Let` in https://github.com/rust-lang/rust/pull/60861, the `ast::Guard` structure is now redundant in terms of representing [`if let` guards](https://github.com/rust-lang/rust/issues/51114) in AST since it can be represented by `ExprKind::Let` syntactically. Therefore, we remove `ast::Guard` here. However, we keep `hir::Guard` because the semantic representation is a different matter and this story is more unclear right now (might involve `goto 'arm` in HIR or something...). r? @petrochenkov | ||||
| 2019-06-23 | Remove redundant syntax::ast::Guard. | Mazdak Farrokhzad | -2/+2 | |
| 2019-06-23 | let_chains: Fix bugs in pretty printing. | Mazdak Farrokhzad | -2/+2 | |
| 2019-06-23 | let_chains: Refactor parse_{if,while}_expr a bit. | Mazdak Farrokhzad | -9/+12 | |
| 2019-06-23 | let_chains: Move feature gating to pre-expansion. | Mazdak Farrokhzad | -2/+13 | |
| 2019-06-23 | let_chains: Fix outdated doc-comment re. 'parse_if_expr'. | Mazdak Farrokhzad | -1/+1 | |
| 2019-06-23 | let_chains: Add support for parsing let expressions. | Mazdak Farrokhzad | -49/+18 | |
| 2019-06-21 | Implement arbitrary_enum_discriminant | John Wrenn | -17/+14 | |
| 2019-06-18 | Remove the HirId/NodeId from where clauses | Matthew Jasper | -2/+0 | |
| Also give them a span in the HIR | ||||
| 2019-06-12 | Auto merge of #61612 - nnethercote:improve-parse_bottom_expr, r=petrochenkov | bors | -10/+22 | |
| Special-case literals in `parse_bottom_expr`. This makes parsing faster, particularly for code with large constants, for two reasons: - it skips all the keyword comparisons for literals; - it skips the allocation done by the `mk_expr` call in `parse_literal_maybe_minus`. r? @petrochenkov | ||||
| 2019-06-12 | Auto merge of #60669 - c410-f3r:attrs-fn, r=petrochenkov | bors | -28/+52 | |
| Allow attributes in formal function parameters Implements https://github.com/rust-lang/rust/issues/60406. This is my first contribution to the compiler and since this is a large and complex project, I am not fully aware of the consequences of the changes I have made. **TODO** - [x] Forbid some built-in attributes. - [x] Expand cfg/cfg_attr | ||||
| 2019-06-10 | Special-case literals in `parse_bottom_expr`. | Nicholas Nethercote | -10/+22 | |
| This makes parsing faster, particularly for code with large constants, for two reasons: - it skips all the keyword comparisons for literals; - it replaces the unnecessary `parse_literal_maybe_minus` call with `parse_lit`, avoiding an unnecessary allocation via `mk_expr`. | ||||
| 2019-06-09 | Allow attributes in formal function parameters | Caio | -28/+52 | |
| 2019-06-08 | syntax: Remove `Deref` impl from `Token` | Vadim Petrochenkov | -9/+9 | |
| 2019-06-08 | syntax: Move most of the `TokenKind` methods to `Token` | Vadim Petrochenkov | -3/+5 | |
| 2019-06-07 | parser: Remove `look_ahead_span` | Vadim Petrochenkov | -13/+1 | |
| 2019-06-07 | parser: Remove `Deref` impl from `Parser` | Vadim Petrochenkov | -10/+0 | |
| 2019-06-07 | parser: `self.span` -> `self.token.span` | Vadim Petrochenkov | -179/+192 | |
| 2019-06-06 | Address review comments | Vadim Petrochenkov | -4/+8 | |
| 2019-06-06 | Some code cleanup and tidy/test fixes | Vadim Petrochenkov | -25/+30 | |
| 2019-06-06 | syntax: Switch function parameter order in `TokenTree::token` | Vadim Petrochenkov | -7/+7 | |
| 2019-06-06 | syntax: Remove duplicate span from `token::Ident` | Vadim Petrochenkov | -27/+21 | |
