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 6 pull requests #104758

Merged
merged 27 commits into from
Nov 23, 2022
Merged

Rollup of 6 pull requests #104758

merged 27 commits into from
Nov 23, 2022

Commits on Nov 19, 2022

  1. Lower return type outside async block creation

    This allows feeding a different output type to async blocks with a
    different `ImplTraitContext`.
    Swatinem committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    b59090e View commit details
    Browse the repository at this point in the history
  2. Refactor must_use lint into two parts

    Before, the lint did the checking for `must_use` and pretty printing the
    types in a special format in one pass, causing quite complex and
    untranslatable code.
    Now the collection and printing is split in two. That should also make
    it easier to translate or extract the type pretty printing in the
    future.
    
    Also fixes an integer overflow in the array length pluralization
    calculation.
    Noratrieb committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    4e9ceef View commit details
    Browse the repository at this point in the history
  3. Fix CrateLocationUnknownType error

    YC committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    1e4adaf View commit details
    Browse the repository at this point in the history
  4. Fix metadata_lib_filename_form

    YC committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    40b7e0e View commit details
    Browse the repository at this point in the history
  5. Check that library is file

    YC committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    a1ea1c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2022

  1. Configuration menu
    Copy the full SHA
    644a5a3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f5addd View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. Configuration menu
    Copy the full SHA
    1a69666 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2752e32 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94fe30f View commit details
    Browse the repository at this point in the history
  4. Add an always-ambiguous predicate to make sure that we don't accident…

    …lally allow trait resolution to prove false things during coherence
    oli-obk committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    ae80c76 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9cd44f8 View commit details
    Browse the repository at this point in the history
  6. Move a field around

    oli-obk committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    9a8e1ee View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f42e490 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    11ae334 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7301cd7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    11adf03 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c16a90f View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. Configuration menu
    Copy the full SHA
    395f2b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7169c7d View commit details
    Browse the repository at this point in the history
  3. Bump fd-lock in bootstrap again

    Followup to rust-lang#103778
    Sorry for the quick succession but this fixes one more building issue for Tier 3 `windows-gnullvm` that I have previously missed, and it would be nice to have it in the release.
    mati865 committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    cd22ce6 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2022

  1. Rollup merge of rust-lang#103488 - oli-obk:impl_trait_for_tait, r=lcnr

    Allow opaque types in trait impl headers and rely on coherence to reject unsound cases
    
    r? ````@lcnr````
    
    fixes rust-lang#99840
    Manishearth authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    53eab24 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#104359 - Nilstrieb:plus-one, r=fee1-dead

    Refactor must_use lint into two parts
    
    Before, the lint did the checking for `must_use` and pretty printing the types in a special format in one pass, causing quite complex and untranslatable code.
    Now the collection and printing is split in two. That should also make it easier to translate or extract the type pretty printing in the future.
    
    Also fixes an integer overflow in the array length pluralization
    calculation.
    
    fixes rust-lang#104352
    Manishearth authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    a673364 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#104612 - Swatinem:async-ret-y, r=estebank

    Lower return type outside async block creation
    
    This allows feeding a different output type to async blocks with a different `ImplTraitContext`. Spotted this while working on rust-lang#104321
    Manishearth authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    36815c6 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#104621 - YC:master, r=davidtwco

    Fix --extern library finding errors
    
    - `crate_name` is not specified/passed to `metadata_crate_location_unknown_type`
    https://github.com/rust-lang/rust/blob/c493bae0d8efd75723460ce5c371f726efa93f15/compiler/rustc_error_messages/locales/en-US/metadata.ftl#L274-L275
    - `metadata_lib_filename_form` is missing `$`
    - Add additional check to ensure that library is file
    
    Testing
    1. Create file `a.rs`
    ```rust
    extern crate t;
    fn main() {}
    ```
    1. Create empty file `x`
    1. Create empty directory `y`
    1. Run
    ```sh
    $ rustc -o a a.rs --extern t=x
    $ rustc -o a a.rs --extern t=y
    ```
    Both currently panic with stable.
    Manishearth authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    54b6292 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#104647 - RalfJung:alloc-strict-provenance, …

    …r=thomcc
    
    enable fuzzy_provenance_casts lint in liballoc and libstd
    
    r? ````@thomcc````
    Manishearth authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    316bda8 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#104750 - mati865:bump-fd-lock-again, r=jyn514

    Bump `fd-lock` in `bootstrap` again
    
    Followup to rust-lang#103778
    Sorry for the quick succession but this fixes one more building issue for Tier 3 `windows-gnullvm` that I have previously missed, and it would be nice to have it in the release.
    Manishearth authored Nov 23, 2022
    Configuration menu
    Copy the full SHA
    42afb70 View commit details
    Browse the repository at this point in the history