Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #60683

Merged
merged 27 commits into from
May 10, 2019
Merged

Rollup of 8 pull requests #60683

merged 27 commits into from
May 10, 2019

Commits on Apr 24, 2019

  1. Configuration menu
    Copy the full SHA
    902904a View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2019

  1. Identify when a stmt could have been parsed as an expr

    There are some expressions that can be parsed as a statement without
    a trailing semicolon depending on the context, which can lead to
    confusing errors due to the same looking code being accepted in some
    places and not others. Identify these cases and suggest enclosing in
    parenthesis making the parse non-ambiguous without changing the
    accepted grammar.
    estebank committed Apr 29, 2019
    Configuration menu
    Copy the full SHA
    f007e6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bff0be3 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2019

  1. Configuration menu
    Copy the full SHA
    617ce2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    145add7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6fff547 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2019

  1. fix typo

    estebank committed May 2, 2019
    Configuration menu
    Copy the full SHA
    e0cef5c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6a4b52 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2019

  1. rustfmt

    mark-i-m committed May 6, 2019
    Configuration menu
    Copy the full SHA
    6d26c5f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54430ad View commit details
    Browse the repository at this point in the history

Commits on May 7, 2019

  1. avoid extra copy

    mark-i-m committed May 7, 2019
    Configuration menu
    Copy the full SHA
    606bb6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5db665b View commit details
    Browse the repository at this point in the history

Commits on May 8, 2019

  1. fix incorrect assert

    mark-i-m committed May 8, 2019
    Configuration menu
    Copy the full SHA
    eb7d47c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d0ba8fe View commit details
    Browse the repository at this point in the history

Commits on May 9, 2019

  1. Configuration menu
    Copy the full SHA
    b2f71fb View commit details
    Browse the repository at this point in the history
  2. Add regression test for rust-lang#60674.

    This commit adds a regression test (with current broken behaviour) that
    tests that `mut` patterns are not lost when provided as input to a proc macro.
    davidtwco committed May 9, 2019
    Configuration menu
    Copy the full SHA
    e57c7b8 View commit details
    Browse the repository at this point in the history
  3. Remove the old await! macro

    This doesn't work anymore, and its continued
    presence is cause for confusion.
    cramertj committed May 9, 2019
    Configuration menu
    Copy the full SHA
    df41e4f View commit details
    Browse the repository at this point in the history
  4. Do not modify mutability of simple bindings.

    This commit removes the modification of the mutability of simple
    bindings. While the mutability isn't used, it is important that it is
    kept so that the input to procedural macros matches what the user wrote.
    This commit also modifies the span of the binding mode so that it is
    considered a compiler desugaring and won't be linted against for being
    unused..
    davidtwco committed May 9, 2019
    Configuration menu
    Copy the full SHA
    dcd3cf7 View commit details
    Browse the repository at this point in the history
  5. Add FIXME about construct_async_arguments.

    This is unrelated to the rest of this PR but it made sense to add a
    FIXME explaining that the function shouldn't really be in the parser.
    davidtwco committed May 9, 2019
    Configuration menu
    Copy the full SHA
    d5e0406 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#59348 - matthewjasper:cleanup-drop-shims, r…

    …=arielb1
    
    Clean up and add tests for slice drop shims
    
    Adds a test for the MIR generated by `real_drop_in_place::<[T]>`. Also slightly reduces the number of statements and locals used in the shim.
    
    r? @RalfJung
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    62ab971 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#60188 - estebank:recover-block, r=varkor

    Identify when a stmt could have been parsed as an expr
    
    There are some expressions that can be parsed as a statement without
    a trailing semicolon depending on the context, which can lead to
    confusing errors due to the same looking code being accepted in some
    places and not others. Identify these cases and suggest enclosing in
    parenthesis making the parse non-ambiguous without changing the
    accepted grammar.
    
    Fix rust-lang#54186, cc rust-lang#54482, fix rust-lang#59975, fix rust-lang#47287.
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    39edc68 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#60234 - tesaguri:cursor-default, r=Amanieu

    std: Derive `Default` for `io::Cursor`
    
    I think this change is quite obvious, so made it insta-stable, but I won't insist on that.
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    bd17b5c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#60618 - mark-i-m:transcribe, r=petrochenkov

    Comment ext::tt::transcribe
    
    Also did a bit of minor cleanup (remove unidiomatic use of `Add` and an unneeded `clone`). No functionality changes.
    
    r? @petrochenkov
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    903fc4b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#60648 - petrochenkov:shorten2, r=Dylan-DPC

    Skip codegen for one UI test with long file path
    
    The path to this test is so long that object files produced by it hit some path length limit on Windows and linker cannot find them.
    The workaround here is to skip codegen and avoid producing object files, this test doesn't need them anyway.
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    e7b4023 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#60671 - euclio:extern-crate, r=Centril

    remove unneeded `extern crate`s from build tools
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    f27f14b View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#60675 - cramertj:no-await-macro, r=nikomats…

    …akis,Centril
    
    Remove the old await! macro
    
    This doesn't work anymore, and its continued presence is cause for confusion. `yield` can no longer be used to return `Pending` from an `async` body.
    
    cc rust-lang#60660
    cc @taiki-e
    cc tokio-rs/tokio#1080
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    f6df1f6 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#60676 - davidtwco:issue-60674, r=cramertj

    Fix async desugaring providing wrong input to procedural macros.
    
    Fixes rust-lang#60674.
    
    This PR fixes a minor oversight introduced by rust-lang#60535 where unused `mut` binding modes were removed from the arguments to an `async fn` (as they were added to the statement that we insert into the closure body). However, this meant that the input to procedural macros was incorrect. This removes that and instead fixes the `unused_mut` error that it avoided.
    
    r? @cramertj
    cc @taiki-e
    Centril authored May 9, 2019
    Configuration menu
    Copy the full SHA
    45b0945 View commit details
    Browse the repository at this point in the history