| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-06-30 | add label to unknown meta item error | Andy Russell | -11/+33 | |
| 2018-06-30 | factor built-in attribute parsing into submodule | Andy Russell | -678/+718 | |
| 2018-06-30 | clarify why we're suggesting removing semicolon after braced items | Zack M. Davis | -0/+16 | |
| Previously (issue #46186, pull-request #46258), a suggestion was added to remove the semicolon after we fail to parse an item, but issue #51603 complains that it's still insufficiently obvious why. Let's add a note. Resolves #51603. | ||||
| 2018-06-30 | Auto merge of #51762 - petrochenkov:oh-hi-mark, r=oli-obk | bors | -39/+56 | |
| hygiene: Implement transparent marks and use them for call-site hygiene in proc-macros Fixes https://github.com/rust-lang/rust/issues/50050 | ||||
| 2018-06-30 | Auto merge of #51806 - oli-obk:lowering_cleanups1, r=cramertj | bors | -25/+54 | |
| Lowering cleanups [1/N] | ||||
| 2018-06-30 | Fortify dummy span checking | Vadim Petrochenkov | -19/+19 | |
| 2018-06-30 | hygiene: Implement transparent marks | Vadim Petrochenkov | -1/+12 | |
| 2018-06-30 | expansion: Give names to some fields of `SyntaxExtension` | Vadim Petrochenkov | -20/+26 | |
| 2018-06-28 | Suggest correct comparison against negative literal | Esteban Küber | -0/+10 | |
| When parsing as emplacement syntax (`x<-1`), suggest the correct syntax for comparison against a negative value (`x< -1`). | ||||
| 2018-06-28 | Auto merge of #50997 - michaelwoerister:pre-analyze-filemaps, r=Mark-Simulacrum | bors | -126/+47 | |
| Make FileMap::{lines, multibyte_chars, non_narrow_chars} non-mutable. This PR removes most of the interior mutability from `FileMap`, which should be beneficial, especially in a multithreaded setting. This is achieved by initializing the state in question when the filemap is constructed instead of during lexing. Hopefully this doesn't degrade performance. cc @wesleywiser | ||||
| 2018-06-28 | Fix FileMap::line_begin_pos(). | Michael Woerister | -2/+4 | |
| The method relied on the FileMap still being under construction in order for it to do what the name promises. It's now independent of the current state. | ||||
| 2018-06-28 | Use `Ident`s in a number of structures in HIR | Vadim Petrochenkov | -1/+1 | |
| Namely: labels, type parameters, bindings in patterns, parameter names in functions without body. All of these do not need hygiene after lowering to HIR, only span locations. | ||||
| 2018-06-28 | Rollup merge of #51799 - mark-i-m:lower_case_feature_gate, r=mark-i-m | kennytm | -4/+4 | |
| Lower case some feature gate error messages | ||||
| 2018-06-27 | syntax_pos: Store multibyte char size as u8 instead of u32. | Michael Woerister | -2/+2 | |
| 2018-06-27 | Use u32 instead of usize of encoding byte count of multi-byte chars. | Michael Woerister | -3/+3 | |
| 2018-06-27 | Update CodeMap tests after changing FileMap construction. | Michael Woerister | -61/+10 | |
| 2018-06-27 | Remove the now redundant CodeMap::new_filemap_with_lines() method. | Michael Woerister | -17/+13 | |
| 2018-06-27 | Make FileMap::{lines, multibyte_chars, non_narrow_chars} non-mutable. | Michael Woerister | -43/+17 | |
| 2018-06-27 | Implement `#[macro_export(local_inner_macros)]` | Vadim Petrochenkov | -1/+22 | |
| 2018-06-27 | Add a convenience method for getting the impl Trait `NodeId` of an `IsAysnc` | Oliver Schneider | -0/+7 | |
| 2018-06-27 | Generate `DefId`s for the impl trait of `async` functions | Oliver Schneider | -19/+37 | |
| 2018-06-27 | Generate the `NodeId` for `existential type` in the AST | Oliver Schneider | -6/+10 | |
| 2018-06-26 | lower case some feature gate messages | mark | -4/+4 | |
| 2018-06-26 | inclusive range syntax lint (`...` → `..=`) | Zack M. Davis | -18/+28 | |
| Our implementation ends up changing the `PatKind::Range` variant in the AST to take a `Spanned<RangeEnd>` instead of just a `RangeEnd`, because the alternative would be to try to infer the span of the range operator from the spans of the start and end subexpressions, which is both hideous and nontrivial to get right (whereas getting the change to the AST right was a simple game of type tennis). This is concerning #51043. | ||||
| 2018-06-26 | migrate codebase to `..=` inclusive range patterns | Zack M. Davis | -4/+4 | |
| These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043). | ||||
| 2018-06-26 | Auto merge of #49469 - Nokel81:allow-irrefutable-let-patterns, r=nikomatsakis | bors | -0/+3 | |
| Implementation of RFC 2086 - Allow Irrefutable Let patterns This is the set of changes for RFC2086. Tracking issue #44495. Rendered [here](https://github.com/rust-lang/rfcs/pull/2086) | ||||
| 2018-06-23 | structured suggestion and rewording for `...` expression syntax error | Zack M. Davis | -6/+8 | |
| Now that `..=` inclusive ranges are stabilized, people probably shouldn't be using `...` even in patterns, even if it's still legal there (see #51043). To avoid drawing attention to `...` being a real thing, let's reword this message to just say "unexpected token" rather "cannot be used in expressions". | ||||
| 2018-06-23 | hygiene: Merge `NameAndSpan` into `ExpnInfo` | Vadim Petrochenkov | -67/+51 | |
| 2018-06-23 | hygiene: Do not reset expansion info for `quote!` | Vadim Petrochenkov | -3/+7 | |
| 2018-06-23 | expansion: Add some comments | Vadim Petrochenkov | -2/+14 | |
| 2018-06-23 | expansion: Improve searchability for `AstFragments` methods | Vadim Petrochenkov | -48/+65 | |
| 2018-06-23 | expansion: Rename `Expansion` to `AstFragment` | Vadim Petrochenkov | -186/+198 | |
| 2018-06-23 | hygiene: Rename `MarkKind` to `Transparency` | Vadim Petrochenkov | -2/+2 | |
| Move `is_builtin` for `Mark` to a separate flag | ||||
| 2018-06-23 | expansion: Remove unnecessary override from `impl Folder for Marker` | Vadim Petrochenkov | -5/+0 | |
| 2018-06-23 | Auto merge of #51580 - cramertj:async-await, r=eddyb | bors | -118/+330 | |
| async/await This PR implements `async`/`await` syntax for `async fn` in Rust 2015 and `async` closures and `async` blocks in Rust 2018 (tracking issue: https://github.com/rust-lang/rust/issues/50547). Limitations: non-`move` async closures with arguments are currently not supported, nor are `async fn` with multiple different input lifetimes. These limitations are not fundamental and will be removed in the future, however I'd like to go ahead and get this PR merged so we can start experimenting with this in combination with futures 0.3. Based on https://github.com/rust-lang/rust/pull/51414. cc @petrochenkov for parsing changes. r? @eddyb | ||||
| 2018-06-22 | Update libsyntax test | Taylor Cramer | -4/+14 | |
| 2018-06-22 | Re-reexport some items that were recently made crate-private. | Tim Kuehn | -2/+2 | |
| 2018-06-22 | Remove unused map_slice | Taylor Cramer | -10/+0 | |
| 2018-06-22 | Auto merge of #51704 - kennytm:rollup, r=kennytm | bors | -4/+4 | |
| Rollup of 6 pull requests Successful merges: - #51158 (Mention spec and indented blocks in doctest docs) - #51629 (Do not consume semicolon twice while parsing local statement) - #51637 (Update zx_cprng_draw_new on Fuchsia) - #51664 (make more libsyntax methods public) - #51666 (Disable probestack when GCOV profiling is being used) - #51703 (Recognize the extra "LLVM tools versions" argument to build-manifest.) Failed merges: r? @ghost | ||||
| 2018-06-22 | add an explanatory comment for recovery behavior | Niko Matsakis | -0/+3 | |
| 2018-06-22 | Issue #50974: Fix compilation error and test | Lamb | -1/+1 | |
| 2018-06-22 | Fix when the help message is displayed | Maerten | -2/+2 | |
| Only display the "remove this comma" suggestion when followed by an identifier | ||||
| 2018-06-22 | Issue #50974: Change text of suggestion to be more direct | Lamb | -1/+1 | |
| 2018-06-22 | Issue #50974: Suboptimal error in case of duplicate `,` in struct constructor | Lamb | -2/+8 | |
| 2018-06-22 | Rollup merge of #51664 - jebrosen:pub_parse_methods2, r=Mark-Simulacrum | kennytm | -3/+3 | |
| make more libsyntax methods public Followup for #51502, which was sufficient only for the latest stable release of Rocket. The `master` branch uses a few more. I plan to reimplement the deleted method `parse_seq` in Rocket (see SergioBenitez/Rocket#666), rather than resurrecting it in libsyntax. r? @Mark-Simulacrum | ||||
| 2018-06-22 | Rollup merge of #51629 - topecongiro:multiple-semicolon-in-local-span, ↵ | kennytm | -1/+1 | |
| r=petrochenkov Do not consume semicolon twice while parsing local statement The span for a `let` statement includes multiple semicolons. For example, ```rust let x = 2;;; // ^^^^^^^^^^^ The span for the above statement. ``` This PR fixes it. cc https://github.com/rust-lang-nursery/rustfmt/issues/2791. | ||||
| 2018-06-21 | Move async edition check to the current span | Taylor Cramer | -2/+2 | |
| 2018-06-21 | Async methods | Taylor Cramer | -6/+23 | |
| 2018-06-21 | Parse `unsafe async fn` instead of `async unsafe fn` | Taylor Cramer | -4/+10 | |
| 2018-06-21 | async await desugaring and tests | Taylor Cramer | -22/+154 | |
