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 9 pull requests #64944

Closed
wants to merge 50 commits into from
Closed

Commits on Sep 25, 2019

  1. Configuration menu
    Copy the full SHA
    2cb460e View commit details
    Browse the repository at this point in the history
  2. Use max instead of ifs

    AnthonyMikh authored Sep 25, 2019
    Configuration menu
    Copy the full SHA
    e9a93be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4fc5650 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d6327e8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aef169b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9b447e2 View commit details
    Browse the repository at this point in the history
  7. Simplify Emitter::fix_multispan_in_std_macros

    1. Rewrite `if let` into `match` to return earl and avoid indenting giant block 
    2. Assign `spans_updated` only once
    AnthonyMikh authored Sep 25, 2019
    Configuration menu
    Copy the full SHA
    f93827f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ea32862 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7a0725f View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2019

  1. Revert "Simplify Unicode-aware trimming"

    `taken` is actually used afterwards
    AnthonyMikh authored Sep 26, 2019
    Configuration menu
    Copy the full SHA
    75a7c27 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2019

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

Commits on Sep 30, 2019

  1. Configuration menu
    Copy the full SHA
    d938a80 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fdd1a62 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8a4af2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    13b61b5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    49c6c86 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    33ed03f View commit details
    Browse the repository at this point in the history
  7. Stabilize macros in extern blocks

    Add some tests for macros in extern blocks, remove duplicate tests
    petrochenkov committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    349259d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5ae38bb View commit details
    Browse the repository at this point in the history
  9. Upgrade Emscripten targets to use upstream LLVM backend

     - Refactors the Emscripten target spec to share code with other wasm
       targets.
     - Replaces the incorrect wasm32 C call ABI with the old asmjs
       version, which is correct for both wasm32 and JS.
     - Updates the varargs ABI used by Emscripten and deletes the old one.
     - Removes the obsolete wasm32-experimental-emscripten target.
     - Temporarily makes Emscripten targets use panic=abort by default
       because supporting unwinding will require an LLVM patch.
    tlively committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    b04d5f7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    535d474 View commit details
    Browse the repository at this point in the history
  11. Add test for rust-lang#50571

    JohnTitor committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    576c215 View commit details
    Browse the repository at this point in the history
  12. Add test for rust-lang#58022

    JohnTitor committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    bc25746 View commit details
    Browse the repository at this point in the history
  13. Add test for rust-lang#58344

    JohnTitor committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    9c73131 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    957986d View commit details
    Browse the repository at this point in the history
  15. typeck: silence unreachable code from await

    This commit silences the unreachable code lint when it originates from
    within a await desugaring.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    870b47f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7dc953b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6b6a79b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    7b4c5c6 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    21724ed View commit details
    Browse the repository at this point in the history
  20. Simplify EmitterWriter::emit_suggestion_default

    Make function return early if source map is not present
    AnthonyMikh authored Sep 30, 2019
    Configuration menu
    Copy the full SHA
    7a807c5 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9d73176 View commit details
    Browse the repository at this point in the history
  22. Simplify a conditional in collect_annotations

    Also avoid excessive cloning
    AnthonyMikh authored Sep 30, 2019
    Configuration menu
    Copy the full SHA
    55b5428 View commit details
    Browse the repository at this point in the history
  23. Address review comments

    petrochenkov committed Sep 30, 2019
    Configuration menu
    Copy the full SHA
    6ea4a52 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    bb44288 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    e5db5b3 View commit details
    Browse the repository at this point in the history
  26. Fix errors

    AnthonyMikh authored Sep 30, 2019
    Configuration menu
    Copy the full SHA
    61bc38e View commit details
    Browse the repository at this point in the history
  27. Ascript type explicitly

    AnthonyMikh authored Sep 30, 2019
    Configuration menu
    Copy the full SHA
    515262c View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2019

  1. Hint type for .sum()

    AnthonyMikh authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    fdce416 View commit details
    Browse the repository at this point in the history
  2. Fix borrowck errors

    Reborrowing doesn't work for loops
    AnthonyMikh authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    50c2a58 View commit details
    Browse the repository at this point in the history
  3. Deduplicate closure type errors

    Closure typing obligations flow in both direcitons to properly infer
    types. Because of this, we will get 2 type errors whenever there's
    an unfulfilled obligation. To avoid this, we deduplicate them in the
    `InferCtxt`.
    estebank committed Oct 1, 2019
    Configuration menu
    Copy the full SHA
    13e9b3d View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#63649 - tlively:emscripten-upstream-upgrade…

    …, r=alexcrichton
    
    Upgrade Emscripten targets to use upstream LLVM backend
    
     - Refactors the Emscripten target spec to share code with other wasm
       targets.
     - Replaces the incorrect wasm32 C call ABI with the old asmjs
       version, which is correct for both wasm32 and JS.
     - Updates the varargs ABI used by Emscripten and deletes the old one.
     - Removes the obsolete wasm32-experimental-emscripten target.
     - Temporarily makes Emscripten targets use panic=abort by default
       because supporting unwinding will require an LLVM patch.
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    2aafa46 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#63674 - petrochenkov:meta2, r=Centril

    syntax: Support modern attribute syntax in the `meta` matcher
    
    Where "modern" means rust-lang#57367:
    ```
    PATH
    PATH `(` TOKEN_STREAM `)`
    PATH `[` TOKEN_STREAM `]`
    PATH `{` TOKEN_STREAM `}`
    ```
    
    Unfortunately, `meta` wasn't future-proofed using the `FOLLOW` token set like other matchers (rust-lang#34011), so code like `$meta:meta {` or `$meta:meta [` may break, and we need a crater run to find out how often this happens in practice.
    
    Closes rust-lang#49629 (by fully supporting `meta` rather than removing it.)
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    3ca5804 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#63931 - petrochenkov:stabmac, r=Centril

    Stabilize macros in some more positions
    
    - Fn-like macros and attribute macros in `extern` blocks
    - Fn-like procedural macros in type positions
    - ~Attribute macros on inline modules~ (moved to rust-lang#64273)
    
    Stabilization report: rust-lang#63931 (comment).
    
    Closes rust-lang#49476
    cc rust-lang#54727
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    8bae91d View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#64887 - Centril:recover-trailing-vert, r=es…

    …tebank
    
    syntax: recover trailing `|` in or-patterns
    
    Fixes rust-lang#64879.
    
    For example (this also shows that we are sensitive to the typo `||`):
    
    ```
    error: a trailing `|` is not allowed in an or-pattern
      --> $DIR/remove-leading-vert.rs:33:11
       |
    LL |         A || => {}
       |         - ^^ help: remove the `||`
       |         |
       |         while parsing this or-pattern starting here
       |
       = note: alternatives in or-patterns are separated with `|`, not `||`
    ```
    
    r? @estebank
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    8206e61 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#64907 - alexreg:tidy-up, r=Mark-Simulacrum

    A small amount of tidying-up factored out from PR rust-lang#64648
    
    As requested by @Mark-Simulacrum, I put this in a separate commit to make it easier to review. (As far as I can tell, no violations of the policy here, and they are simply in a separate PR because they're not directly related to the import of that PR.)
    
    r? @Mark-Simulacrum
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    857b2b9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0aaab33 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#64930 - davidtwco:issue-61798-diverging-awa…

    …it, r=petrochenkov
    
    Silence unreachable code lint from await desugaring
    
    Fixes rust-lang#61798.
    
    This PR silences the unreachable code lint when it originates from within an await desugaring.
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    cac592f View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#64935 - AnthonyMikh:librustc_errors/emmiter…

    …__code-clarity, r=estebank
    
    Improve code clarity
    
    No commit except 55b5428 address performance, just making the existing code more clear.
    
    r? @estebank
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    3ff0f33 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#64937 - estebank:dedup-closure-err, r=Centril

    Deduplicate closure type errors
    
    Closure typing obligations flow in both direcitons to properly infer
    types. Because of this, we will get 2 type errors whenever there's
    an unfulfilled obligation. To avoid this, we deduplicate them in the
    `InferCtxt`.
    Centril authored Oct 1, 2019
    Configuration menu
    Copy the full SHA
    7ca64cc View commit details
    Browse the repository at this point in the history