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 7 pull requests #99163

Closed
wants to merge 18 commits into from

Commits on Jul 9, 2022

  1. Fix duplicated type annotation suggestion

    Before, there was more or less duplicated suggestions to add type hints.
    Fix by clearing more generic suggestions when a more specific suggestion
    is possible.
    
    This fixes rust-lang#93506 .
    danobi committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    34e9e6d View commit details
    Browse the repository at this point in the history
  2. Fixup diagnostic-derive test

    danobi committed Jul 9, 2022
    Configuration menu
    Copy the full SHA
    f0a99f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2022

  1. Configuration menu
    Copy the full SHA
    fc26ca1 View commit details
    Browse the repository at this point in the history
  2. add more tests

    fee1-dead committed Jul 10, 2022
    Configuration menu
    Copy the full SHA
    5fb6784 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2022

  1. Configuration menu
    Copy the full SHA
    6c44357 View commit details
    Browse the repository at this point in the history
  2. Don't rerun the build script for the compiler each time on linux

    In practice, this doesn't matter very much because the script takes ~no time to run.
    But this makes `CARGO_LOG=info` easier to read, and theoretically saves a few milliseconds.
    jyn514 committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    033a025 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c39762 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    88f2140 View commit details
    Browse the repository at this point in the history
  5. clippy argument support

    Milo123459 authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    e3d84b2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    992346d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b65d3a6 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#97210 - Milo123459:clippy-args, r=jyn514

    Support `-A`, `-W`, `-D` and `-F` when running `./x.py clippy`
    
    Resolves rust-lang#97059
    
    This PR adds support for `-A`, `-W`, `-D` and `-F` when running `./x.py clippy`.
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    dc2f129 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#99020 - fee1-dead-contrib:repr_transparent_…

    …non_exhaustive, r=oli-obk
    
    check non_exhaustive attr and private fields for transparent types
    
    Fixes rust-lang#78586.
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    29b7427 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#99055 - GuillaumeGomez:rustdoc-help-options…

    …, r=jyn514
    
    Fix rustdoc help options
    
    Fixes rust-lang#98976.
    
    Since you're the one who found out about the problem and also provided the solution (thanks for both!):
    
    r? ``@jyn514``
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    da85ea2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#99075 - danobi:dup_type_hint_sugg, r=petroc…

    …henkov
    
    Fix duplicated type annotation suggestion
    
    Before, there was more or less duplicated suggestions to add type hints.
    Fix by clearing more generic suggestions when a more specific suggestion
    is possible.
    
    This fixes rust-lang#93506 .
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    cc4e21d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#99142 - notriddle:notriddle/doctest-multili…

    …ne-crate-attributes, r=GuillaumeGomez
    
    fix(doctest): treat fatal parse errors as incomplete attributes
    
    Fixes rust-lang#99089
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    3935853 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#99145 - jyn514:dont-rerun-build-script, r=w…

    …esleywiser
    
    Don't rerun the build script for the compiler each time on non-windows platforms
    
    In practice, this doesn't matter very much because the script takes ~no time to run.
    But this makes `CARGO_LOG=info` easier to read, and theoretically saves a few milliseconds.
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    8e51b53 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#99146 - compiler-errors:issue-61525, r=lcnr

    Do not error during method probe on `Sized` predicates for types that aren't the method receiver
    
    Fixes rust-lang#61525
    
    This is safe even though we're skipping an error because we end up confirming the method, which means we're still checking the `Sized` predicate in the end. It just means that we don't emit an erroneous message as below:
    
    ```
    error: the `query` method cannot be invoked on a trait object
      --> src/lib.rs:14:11
       |
    14 |         1.query::<dyn ToString>("")
       |           ^^^^^
       |
       = note: another candidate was found in the following trait, perhaps add a `use` for it:
               `use crate::Example;`
    ```
    
    Also fixes erroneously suggesting the same trait over again, as seen in the `issue-35976.rs` UI test.
    matthiaskrgr authored Jul 11, 2022
    Configuration menu
    Copy the full SHA
    a75ec28 View commit details
    Browse the repository at this point in the history