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 #108559

Closed
wants to merge 14 commits into from
Closed

Commits on Feb 23, 2023

  1. Lazily compute crate name for consider_optimizing

    The extra query is unnecessary in the common case of not having fuel.
    Nilstrieb committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    7ee01b4 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

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

Commits on Feb 27, 2023

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

Commits on Feb 28, 2023

  1. Configuration menu
    Copy the full SHA
    f83ce99 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecac8fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f851a8a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    229aef1 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#89518 - a1phyr:unix_file_vectored_at, r=wor…

    …kingjubilee
    
    Add vectored positioned I/O on Unix
    
    Add methods for vectored I/O with an offset on `File` for `unix` under `#![feature(unix_file_vectored_at)]`.
    
    The new methods are wrappers around `preadv` and `pwritev`.
    
    Tracking issue: rust-lang#89517
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    f5fcfcf View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#108405 - Nilstrieb:lazy-crate-name-optimiza…

    …tion-fuel, r=WaffleLapkin
    
    Lazily compute crate name for consider_optimizing
    
    The extra query is unnecessary in the common case of not having fuel.
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    96dd30a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#108520 - compiler-errors:one-bound-nit, r=j…

    …ackh726
    
    Small cleanup to `one_bound_for_assoc_type`
    
    Use fewer closures :)
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    53e2d53 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#108550 - clubby789:remove-disjoint, r=compi…

    …ler-errors
    
    Remove the `capture_disjoint_fields` feature
    
    As best I can tell, this was stabilized for Edition 2021 in rust-lang#88126 but the feature was never removed.
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    79bb38c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#108551 - compiler-errors:rpitit-bad-spec, r…

    …=oli-obk
    
    Descriptive error when users try to combine RPITIT/AFIT with specialization
    
    Previously we failed with some esoteric error like:
    
    ```
    error[E0053]: method `foo` has an incompatible type for trait
      --> $DIR/dont-project-to-specializable-projection.rs:14:35
       |
    LL |     default async fn foo(_: T) -> &'static str {
       |                                   ^^^^^^^^^^^^ expected associated type, found future
       |
    note: type in trait
      --> $DIR/dont-project-to-specializable-projection.rs:10:27
       |
    LL |     async fn foo(_: T) -> &'static str;
       |                           ^^^^^^^^^^^^
       = note: expected signature `fn(_) -> impl Future<Output = &'static str>`
                  found signature `fn(_) -> impl Future<Output = &'static str>`
    ```
    
    Now we error like:
    
    ```
    error: async associated function in trait cannot be specialized
      --> $DIR/dont-project-to-specializable-projection.rs:14:5
       |
    LL |     default async fn foo(_: T) -> &'static str {
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: specialization behaves in inconsistent and surprising ways with `#![feature(async_fn_in_trait)]`, and for now is disallowed
    ```
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    24018a4 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#108554 - compiler-errors:late-bound-object-…

    …default, r=oli-obk
    
    Only look for param in item's generics if it actually comes from generics
    
    Record whether a `hir::GenericParam` comes from an item's generics, or from a `for<...>` binder. Then, only look for the param in `object_lifetime_default` if it actually comes from the item's generics.
    
    Fixes rust-lang#108177
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    c0f9b23 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#108558 - RalfJung:core-tests, r=thomcc

    add missing feature in core/tests
    
    rust-lang#104265 introduced the `ip_in_core` feature. For some reason core tests seem to still build without that feature -- no idea how that is possible. Might be related to rust-lang#15702? I was under the impression that `pub use` with different stability doesn't actually work. That's why `intrinsics::transmute` is stable, for example.
    
    Either way, core tests fail to build in miri-test-libstd, and adding the feature fixes that.
    
    r? `@thomcc`
    Dylan-DPC committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    bb5d3bb View commit details
    Browse the repository at this point in the history