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 11 pull requests #80364

Merged
merged 26 commits into from
Dec 25, 2020
Merged

Rollup of 11 pull requests #80364

merged 26 commits into from
Dec 25, 2020

Commits on Dec 13, 2020

  1. Refactored verbose print into a function

    Also handle Tuple and Array separately, which was not explicitly checked.
    
    Fixes rust-lang#79799.
    hencrice committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    b66eb69 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2020

  1. Implemented a compiler diagnostic for move async mistake

    Ran the tidy check
    
    Following the diagnostic guide better
    
    Diagnostic generation is now relegated to its own function in the diagnostics module.
    Added tests
    
    Fixed the ui test
    diondokter committed Dec 21, 2020
    Configuration menu
    Copy the full SHA
    a272d62 View commit details
    Browse the repository at this point in the history
  2. Rename rustc_middle::lint::LintSource

    Rename rustc_middle::lint::LintSource to rustc_middle::lint::LintLevelSource.
    pierwill committed Dec 21, 2020
    Configuration menu
    Copy the full SHA
    aec3575 View commit details
    Browse the repository at this point in the history
  3. Document rustc_middle::lint::LevelSource

    This is to clarify the difference between `LevelSource`
    and `LintLevelSource`.
    
    Appease x.py fmt.
    pierwill committed Dec 21, 2020
    Configuration menu
    Copy the full SHA
    d3900d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c2281cc View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2020

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

Commits on Dec 23, 2020

  1. Configuration menu
    Copy the full SHA
    530c33c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c625d31 View commit details
    Browse the repository at this point in the history
  3. Fix typo in simplify_try.rs

    assigment -> assignment
    eltociear authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    8739708 View commit details
    Browse the repository at this point in the history
  4. Add more tests

    jyn514 committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    ceb66ad View commit details
    Browse the repository at this point in the history
  5. Addressed feedbacks

    Also updated the mir-opt test output files.
    hencrice committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    f459b0f View commit details
    Browse the repository at this point in the history
  6. Fixed formatting

    hencrice committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    ecba49c View commit details
    Browse the repository at this point in the history
  7. Don't unnecessarily override attrs for Module

    They were never changed from the default, which you can get with
    `tcx.get_attrs()`.
    jyn514 committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    6dc4f7a View commit details
    Browse the repository at this point in the history
  8. Fix typo

    pierwill authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    df94bfc View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2020

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

Commits on Dec 25, 2020

  1. Rollup merge of rust-lang#79213 - yoshuawuyts:stabilize-slice-fill, r…

    …=m-ou-se
    
    Stabilize `core::slice::fill`
    
    Tracking issue rust-lang#70758
    
    Stabilizes the `core::slice::fill` API in Rust 1.50, adding a `memset` doc alias so people coming from C/C++ looking for this operation can find it in the docs. This API hasn't seen any changes since we changed the signature in rust-lang#71165, and it seems like the right time to propose stabilization. Thanks!
    
    r? `@m-ou-se`
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    21d36e0 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#79999 - hencrice:yenlinc/79799, r=oli-obk

    Refactored verbose print into a function
    
    Also handle Tuple and Array separately, which was not explicitly checked.
    
    Fixes rust-lang#79799.
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    787b016 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#80160 - diondokter:move_async_fix, r=davidtwco

    Implemented a compiler diagnostic for move async mistake
    
    Fixes rust-lang#79694
    
    First time contributing, so I hope I'm doing everything right.
    (If not, please correct me!)
    
    This code performs a check when a move capture clause is parsed. The check is to detect if the user has reversed the async move keywords and to provide a diagnostic with a suggestion to fix it.
    
    Checked code:
    ```rust
    fn main() {
        move async { };
    }
    ```
    
    Previous output:
    ```txt
    PS C:\Repos\move_async_test> cargo build
       Compiling move_async_test v0.1.0 (C:\Repos\move_async_test)
    error: expected one of `|` or `||`, found keyword `async`
     --> src\main.rs:2:10
      |
    2 |     move async { };
      |          ^^^^^ expected one of `|` or `||`
    
    error: aborting due to previous error
    
    error: could not compile `move_async_test`
    ```
    
    New output:
    ```txt
    PS C:\Repos\move_async_test> cargo +dev build
       Compiling move_async_test v0.1.0 (C:\Repos\move_async_test)
    error: the order of `move` and `async` is incorrect
     --> src\main.rs:2:13
      |
    2 |     let _ = move async { };
      |             ^^^^^^^^^^
      |
    help: try switching the order
      |
    2 |     let _ = async move { };
      |             ^^^^^^^^^^
    
    error: aborting due to previous error
    
    error: could not compile `move_async_test`
    ```
    
    Is there a file/module where these kind of things are tested?
    Would love some feedback 😄
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    299c2fc View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#80274 - pierwill:lintlevelsource, r=petroch…

    …enkov
    
    Rename rustc_middle::lint::LintSource
    
    Rename [`rustc_middle::lint::LintSource`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/lint/enum.LintSource.html) to `rustc_middle::lint::LintLevelSource`.
    
    This enum represents the source of a *lint level*, not a lint. This should improve code readability.
    
    Update: Also documents `rustc_middle::lint::LevelSource` to clarify.
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    b295b8e View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#80280 - pierwill:x-readme, r=Mark-Simulacrum

    Add installation commands to `x` tool README
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    c24fcad View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#80319 - jyn514:async-lifetimes, r=tmandry

    Fix elided lifetimes shown as `'_` on async functions
    
    Closes rust-lang#63037.
    
    r? `@tmandry` on the implementation, `@Darksonn` on the test cases.
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    d837407 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#80327 - PankajChaudhary5:PankajChaudhary, r…

    …=GuillaumeGomez
    
    Updated the match with the matches macro
    
    r?````@GuillaumeGomez````
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    2dab627 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#80330 - eltociear:patch-2, r=lcnr

    Fix typo in simplify_try.rs
    
    assigment -> assignment
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    704f81e View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#80340 - jyn514:less-modules-attrs, r=Guilla…

    …umeGomez
    
    Don't unnecessarily override attrs for Module
    
    They were never changed from the default, which you can get with `tcx.get_attrs()`.
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    28267e3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3cf289b View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#80352 - ssomers:btree_test_diagnostics, r=M…

    …ark-Simulacrum
    
    BTreeMap: make test cases more explicit on failure
    
    r? `@Mark-Simulacrum`
    Dylan-DPC authored Dec 25, 2020
    Configuration menu
    Copy the full SHA
    7c7812d View commit details
    Browse the repository at this point in the history