| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2017-03-12 | Rollup merge of #40369 - petrochenkov:segspan, r=eddyb | Corey Farwell | -18/+29 | |
| Give spans to individual path segments in AST And use these spans in path resolution diagnostics. The spans are spans of identifiers in segments, not whole segments. I'm not sure what spans are more useful in general, but identifier spans are a better fit for resolve errors. HIR still doesn't have spans. Fixes https://github.com/rust-lang/rust/pull/38927#discussion_r95336667 https://github.com/rust-lang/rust/pull/38890#issuecomment-271731008 r? @nrc @eddyb | ||||
| 2017-03-12 | Auto merge of #40340 - petrochenkov:restricted, r=nikomatsakis | bors | -32/+40 | |
| Update syntax for `pub(restricted)` Update the syntax before stabilization. cc https://github.com/rust-lang/rust/issues/32409 r? @nikomatsakis | ||||
| 2017-03-11 | Temporarily prefix catch block with do keyword | Taylor Cramer | -13/+6 | |
| 2017-03-11 | Add catch expr to AST and disallow catch as a struct name | Taylor Cramer | -0/+35 | |
| 2017-03-10 | Give spans to individual path segments in AST | Vadim Petrochenkov | -18/+29 | |
| 2017-03-10 | Update syntax for `pub(restricted)` | Vadim Petrochenkov | -32/+40 | |
| 2017-03-10 | Avoid using `Mark` and `Invocation` for macro defs. | Jeffrey Seyfried | -2/+1 | |
| 2017-03-10 | Refactor out `ast::ItemKind::MacroDef`. | Jeffrey Seyfried | -3/+43 | |
| 2017-03-04 | Inline function to avoid naming confusion. | Mark Simulacrum | -8/+6 | |
| 2017-03-03 | Fix fallout in unit tests. | Jeffrey Seyfried | -29/+29 | |
| 2017-03-03 | Fix `token::Eof` spans. | Jeffrey Seyfried | -2/+6 | |
| 2017-03-03 | Integrate `TokenStream`. | Jeffrey Seyfried | -49/+46 | |
| 2017-03-03 | Introduce `syntax::parse::parser::TokenCursor`. | Jeffrey Seyfried | -47/+127 | |
| 2017-03-03 | Remove lifetime parameter from `syntax::tokenstream::Cursor`. | Jeffrey Seyfried | -1/+1 | |
| 2017-02-28 | Add warning cycle. | Jeffrey Seyfried | -0/+4 | |
| 2017-02-28 | Refactor out `parser.expect_delimited_token_tree()`. | Jeffrey Seyfried | -36/+13 | |
| 2017-02-28 | Remove `Token::MatchNt`. | Jeffrey Seyfried | -3/+0 | |
| 2017-02-28 | Add `syntax::ext::tt::quoted::{TokenTree, ..}` and remove ↵ | Jeffrey Seyfried | -155/+16 | |
| `tokenstream::TokenTree::Sequence`. | ||||
| 2017-02-28 | Avoid `Token::{OpenDelim, CloseDelim}`. | Jeffrey Seyfried | -1/+1 | |
| 2017-02-28 | Clean up `ext::tt::transcribe::TtFrame`, rename to `Frame`. | Jeffrey Seyfried | -2/+2 | |
| 2017-02-28 | rustc_save_analysis: don't pollute the codemap with fake files. | Eduard Burtescu | -8/+38 | |
| 2017-02-21 | Add long error explanations | Guillaume Gomez | -17/+17 | |
| 2017-02-20 | Add error codes for errors in libsyntax | Guillaume Gomez | -40/+82 | |
| 2017-02-10 | Fix ICE on certain sequence repetitions. | Jeffrey Seyfried | -5/+14 | |
| 2017-02-09 | Fix ICE when parsing token trees after an error. | Jeffrey Seyfried | -3/+10 | |
| 2017-02-05 | Rollup merge of #39453 - nrc:save-path, r=nikomatsakis | Corey Farwell | -0/+1 | |
| save-analysis: be more paranoid about generated paths fixes https://github.com/rust-lang-nursery/rls/issues/160 | ||||
| 2017-02-03 | Bump version, upgrade bootstrap | Alex Crichton | -4/+0 | |
| This commit updates the version number to 1.17.0 as we're not on that version of the nightly compiler, and at the same time this updates src/stage0.txt to bootstrap from freshly minted beta compiler and beta Cargo. | ||||
| 2017-02-02 | save-analysis: be more paranoid about generated paths | Nick Cameron | -0/+1 | |
| fixes https://github.com/rust-lang-nursery/rls/issues/160 | ||||
| 2017-01-31 | use suggestions instead of helps with code in them | Oliver Schneider | -4/+23 | |
| 2017-01-27 | Rollup merge of #39335 - cramertj:cramertj/can_begin_expr_fix, r=petrochenkov | Alex Crichton | -1/+23 | |
| Fix can_begin_expr keyword behavior Partial fix for #28784. | ||||
| 2017-01-26 | Fix can_begin_expr keyword behavior | Taylor Cramer | -1/+23 | |
| 2017-01-27 | Auto merge of #39158 - petrochenkov:bounds, r=nikomatsakis | bors | -433/+300 | |
| Bounds parsing refactoring 2 See https://github.com/rust-lang/rust/pull/37511 for previous discussion. cc @matklad Relaxed parsing rules: - zero bounds after `:` are allowed in all contexts. - zero predicates are allowed after `where`. - trailing separator `,` is allowed after predicates in `where` clauses not followed by `{`. Other parsing rules: - trailing separator `+` is still allowed in all bound lists. Code is also cleaned up and tests added. I haven't touched parsing of trait object types yet, I'll do it later. | ||||
| 2017-01-26 | Better comments for FIXMEs | Vadim Petrochenkov | -2/+2 | |
| 2017-01-25 | Auto merge of #35712 - oli-obk:exclusive_range_patterns, r=nikomatsakis | bors | -12/+31 | |
| exclusive range patterns adds `..` patterns to the language under a feature gate (`exclusive_range_pattern`). This allows turning ``` rust match i { 0...9 => {}, 10...19 => {}, 20...29 => {}, _ => {} } ``` into ``` rust match i { 0..10 => {}, 10..20 => {}, 20..30 => {}, _ => {} } ``` | ||||
| 2017-01-24 | parser: Permit trailing +'s in bound lists | Vadim Petrochenkov | -11/+3 | |
| 2017-01-24 | Improve some expected/found error messages from parser | Vadim Petrochenkov | -12/+49 | |
| 2017-01-24 | Refactor parsing of generic arguments/parameters and where clauses | Vadim Petrochenkov | -433/+271 | |
| 2017-01-24 | Auto merge of #39173 - jseyfried:tokenstream, r=nrc | bors | -19/+10 | |
| Refactor `TokenStream` r? @nrc | ||||
| 2017-01-24 | Add an option to the parser so cfg'ed out modules can still be parsed | Nick Cameron | -1/+5 | |
| 2017-01-23 | Remove `open_span` and `close_span` from `Delimited`. | Jeffrey Seyfried | -18/+9 | |
| 2017-01-22 | Refactor `TokenStream`. | Jeffrey Seyfried | -1/+1 | |
| 2017-01-20 | Rollup merge of #39179 - petrochenkov:objparen, r=eddyb | Alex Crichton | -2/+9 | |
| Fix regression in parsing of trait object types Fixes https://github.com/rust-lang/rust/issues/39169 Accepting parens in this position is a regression itself, introduced in Rust 1.6 by https://github.com/rust-lang/rust/pull/29870, so I hope to revert this in my next bounds refactoring patch (possibly with a warning, crater run, etc). r? @eddyb | ||||
| 2017-01-20 | Rollup merge of #39118 - jseyfried:token_tree_based_parser, r=nrc | Alex Crichton | -308/+276 | |
| Refactor the parser to consume token trees This is groundwork for efficiently parsing attribute proc macro invocations, bang macro invocations, and `TokenStream`-based attributes and fragment matchers. This improves parsing performance by 8-15% and expansion performance by 0-5% on a sampling of the compiler's crates. r? @nrc | ||||
| 2017-01-19 | Fix regression in parsing of trait object types | Vadim Petrochenkov | -2/+9 | |
| 2017-01-19 | add exclusive range patterns under a feature gate | Oliver Schneider | -12/+31 | |
| 2017-01-17 | Fix fallout in `rustdoc`. | Jeffrey Seyfried | -3/+3 | |
| 2017-01-17 | Remove the lookahead buffer. | Jeffrey Seyfried | -37/+14 | |
| 2017-01-17 | Auto merge of #39110 - petrochenkov:sum, r=eddyb | bors | -58/+110 | |
| Merge ObjectSum and PolyTraitRef in AST/HIR + some other refactoring `ObjectSum` and `PolyTraitRef` are the same thing (list of bounds), they exist separately only due to parser quirks. The second commit merges them. The first commit replaces `Path` with `Ty` in (not yet supported) equality predicates. They are parsed as types anyway and arbitrary types can always be disguised as paths using aliases, so this doesn't add any new functionality. The third commit uses `Vec` instead of `P<[T]>` in AST. AST is not immutable like HIR and `Vec`s are more convenient for it, unnecessary conversions are also avoided. The last commit renames `parse_ty_sum` (which is used for parsing types in general) into `parse_ty`, and renames `parse_ty` (which is used restricted contexts where `+` is not permitted due to operator priorities or other reasons) into `parse_ty_no_plus`. This is the first part of https://github.com/rust-lang/rust/issues/39085#issuecomment-272743755 and https://github.com/rust-lang/rust/issues/39080 focused on data changes and mechanical renaming, I'll submit a PR with parser changes a bit later. r? @eddyb | ||||
| 2017-01-17 | Avoid interpolated token trees. | Jeffrey Seyfried | -20/+6 | |
| 2017-01-17 | Refactor the parser to consume token trees. | Jeffrey Seyfried | -174/+20 | |
