about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2018-06-23hygiene: Give `Debug` impls to hygiene structuresVadim Petrochenkov-2/+4
2018-06-23Auto merge of #51727 - varkor:expragain-to-exprcontinue, r=petrochenkovbors-540/+540
Rename hir::ExprAgain to hir::ExprContinue The current name is confusing and historical. I also used this PR to clean up the annoying indentation in `check/mod.rs`. If that's viewed as too tangential a change, I'll split it up, but it seemed reasonable to slip it in to reduce @bors's work. It's easy to compare for the two commits individually. r? @petrochenkov
2018-06-23Auto merge of #51723 - estebank:abolish-ice, r=oli-obkbors-0/+38
Accept `TyError` in `analyze_closure` to avoid ICE Fix #51714.
2018-06-23Reindent check/mod.rsvarkor-524/+524
2018-06-23Rename ExprAgain to ExprContinuevarkor-17/+17
2018-06-23Auto merge of #51580 - cramertj:async-await, r=eddybbors-538/+1796
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-23Auto merge of #51696 - estebank:fuzzy-ice-ice, r=oli-obkbors-1/+41
Accept `TyError` in patterns to avoid ICE on bad input Fix #50585.
2018-06-23Auto merge of #51724 - tikue:master, r=Mark-Simulacrumbors-2/+2
Re-pub some items whose visibilities were recently reduced. Reasons described in the most recent comments of https://github.com/rust-lang/rust/pull/51265. tarpc can't move off of plugins until proc macros can be reexported from other crates. Fixes https://github.com/google/tarpc/issues/191
2018-06-22Update libsyntax testTaylor Cramer-4/+14
2018-06-23Auto merge of #51712 - SLaabsDev:master, r=Mark-Simulacrumbors-0/+12
Add support for current directory prefixes (#51071) Fixes #51071
2018-06-22Fix rustdoc and remove default impl for FnHeaderTaylor Cramer-23/+27
2018-06-23Auto merge of #51697 - estebank:once-used-lifetime-label, r=oli-obkbors-11/+36
Add label to lint for lifetimes used once ``` error: lifetime parameter `'a` only used once --> $DIR/fn-types.rs:19:10 | LL | a: for<'a> fn(&'a u32), //~ ERROR `'a` only used once | ^^ -- ...is used only here | | | this lifetime... ```
2018-06-22Re-reexport some items that were recently made crate-private.Tim Kuehn-2/+2
2018-06-22Remove impl trait names and move bits of await into a functionTaylor Cramer-30/+28
2018-06-22Accept `TyError` in `analyze_closure` to avoid ICEEsteban Küber-0/+38
2018-06-22Auto merge of #51482 - GuillaumeGomez:table-display, r=QuietMisdreavusbors-7/+3
Greatly improve tables display in docs Fixes #51454. r? @QuietMisdreavus Before: <img width="1440" alt="screen shot 2018-06-10 at 22 43 52" src="https://user-images.githubusercontent.com/3050060/41206138-cc61b2b4-6cff-11e8-9b6f-0b1e435d4b1b.png"> After: <img width="1440" alt="screen shot 2018-06-10 at 23 33 16" src="https://user-images.githubusercontent.com/3050060/41207049-d455c03c-6d0e-11e8-968f-d4fccaeb4265.png">
2018-06-22Auto merge of #51681 - varkor:rustc_deprecated-future-deprecation, ↵bors-2/+17
r=petrochenkov Support future deprecation for rustc_deprecated Follow-up to #49179 to allow `since` parameters to be set to future versions of Rust and correspondingly to not be treated as deprecated until that version. This is required for #30459 to be completed (though we'll need to wait until this hits beta).
2018-06-22Remove unused map_sliceTaylor Cramer-10/+0
2018-06-22Review nits and updatesTaylor Cramer-53/+51
Move future_from_generator out of raw Update await to use $crate Renumber errors
2018-06-22Auto merge of #51670 - estebank:issue-51634, r=oli-obkbors-12/+100
Don't suggest incorrect syntax Fix #51634.
2018-06-22Auto merge of #51704 - kennytm:rollup, r=kennytmbors-8/+37
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-22Handle current directory prefix for parsing command arguments in bootstrap ↵Steven Laabs-0/+6
test command.
2018-06-22Added stripping current directory prefixes when comparing suite path namesSteven Laabs-0/+6
2018-06-22Auto merge of #51184 - lambtowolf:master, r=nikomatsakisbors-2/+51
Issue #50974 : Suboptimal error in case of duplicate `,` in struct constructor Fixes #50974
2018-06-22add an explanatory comment for recovery behaviorNiko Matsakis-0/+3
2018-06-22Issue #50974: Fix compilation error and testLamb-2/+2
2018-06-22Fix when the help message is displayedMaerten-2/+2
Only display the "remove this comma" suggestion when followed by an identifier
2018-06-22Issue #50974: Adding issue number in the testLamb-1/+3
2018-06-22Issue #50974: Adding testsLamb-0/+38
2018-06-22Issue #50974: Change text of suggestion to be more directLamb-1/+1
2018-06-22Issue #50974: Suboptimal error in case of duplicate `,` in struct constructorLamb-2/+8
2018-06-22Rollup merge of #51703 - kennytm:fix-51699, r=nrckennytm-0/+1
Recognize the extra "LLVM tools versions" argument to build-manifest. Fix #51699.
2018-06-22Rollup merge of #51666 - marco-c:disable_probestack, r=nagisakennytm-0/+5
Disable probestack when GCOV profiling is being used If I compile Firefox with gcov profiling enabled, Firefox crashes at startup because of probestack. Since it's disabled for PGO, I think it makes sense to disable it for gcov too.
2018-06-22Rollup merge of #51664 - jebrosen:pub_parse_methods2, r=Mark-Simulacrumkennytm-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-22Rollup merge of #51637 - abarth:new_prng, r=cramertjkennytm-4/+3
Update zx_cprng_draw_new on Fuchsia Fuchsia is changing the semantics for zx_cprng_draw and zx_cprng_draw_new is a temporary name for the new semantics.
2018-06-22Rollup 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-22Rollup merge of #51158 - ogham:patch-1, r=steveklabnikkennytm-0/+24
Mention spec and indented blocks in doctest docs Fixes #49717. This commit adds a new section to the Documentation Test docs, which briefly mentions indented code blocks, and links to the CommonMark specification for both. I’m not sure about saying "fenced code blocks the more popular choice in the Rust community” because it seems like I’m speaking for everyone, but I can’t think of a better way to phrase it!
2018-06-22Auto merge of #51660 - lqd:the-MIRnistry-of-walks, r=nikomatsakisbors-33/+84
NLL: Walk the MIR only once for the "unused mut" lint Turns the quadratic loop gathering local variable assignments into a single MIR walk, and brings down the number of `super_mir` calls generated from `do_mir_borrowck` to the expected levels seen in `nll::replace_regions_in_mir` and `nll::compute_regions`, i.e. on clap: 1883 `super_mir` calls instead of 8011. The limited perf numbers I could gather on my machines look to be what we expected: `clap-check` seems to be gaining back a lot of the 7% we previously saw in `visit_mir`. Fixes #51641. r? @nikomatsakis
2018-06-22Recognize the extra "LLVM tools versions" argument to build-manifest.kennytm-0/+1
Fix #51699.
2018-06-22Auto merge of #51686 - ↵bors-5/+48
nikomatsakis:issue-51415-borrowck-match-default-bindings-bug, r=eddyb yet another "old borrowck" bug around match default bindings We were getting the type of the parameter from its pattern, but that didn't include adjustments. I did a `ripgrep` around and this seemed to be the only affected case. The reason this didn't show up as an ICE earlier is that mem-categorization is lenient with respect to weird discrepancies. I am going to add more delay-span-bug calls shortly around that (I'll push onto the PR). This example is an ICE, but I presume that there is a way to make a soundness example out of this -- it basically ignores borrows occuring inside match-default-bindings in a closure, though only if the implicit deref is at the top-level. It happens though that this occurs frequently in iterators, which often give a `&T` parameter. Fixes #51415 Fixes #49534 r? @eddyb
2018-06-21PathParameters -> GenericArgs fixesTaylor Cramer-38/+26
2018-06-21Add path parameters to std_pathTaylor Cramer-35/+63
2018-06-21Fix test using ExprKind::ClosureTaylor Cramer-0/+1
2018-06-21Truncate errors to make tidy happyTaylor Cramer-6/+6
2018-06-21Fix parse-fail tests that now mention asyncTaylor Cramer-7/+7
2018-06-21Move async edition check to the current spanTaylor Cramer-2/+2
2018-06-21Allow unsafe code inside of await macroTaylor Cramer-0/+1
2018-06-21Explicitly ban async in trait implsTaylor Cramer-4/+5
This wouldn't compile before because the return type wouldn't match, but now it's properly an error.
2018-06-21Async methodsTaylor Cramer-79/+122
2018-06-21Fix typo in multiple lifetimes errorTaylor Cramer-1/+1