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

Merged
merged 13 commits into from
Apr 24, 2024
Merged

Rollup of 6 pull requests #124330

merged 13 commits into from
Apr 24, 2024

Commits on Apr 13, 2024

  1. Bump Fuchsia versions

    This updates the Fuchsia commit used in `auto - x86_64-gnu-integration`
    CI bot to use the Rust commit 703dc9c.
    This should help improve the coverage of this builder.
    
    It also updates the SDK version to F20.20240412.3.1, and the Fuchsia Clang
    version to c777c011a709dffd4fa5e79cad7947b7c3405d02.
    erickt committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    b76de15 View commit details
    Browse the repository at this point in the history
  2. Test #[unix_sigpipe = "inherit"] with both SIG_DFL and SIG_IGN

    Add a test that fails if `#[unix_sigpipe = "inherit"]` wrongly results
    in `SIGPIPE` being `SIG_DFL` if the parent has `SIG_IGN`. We have no
    current test for this particular case.
    Enselic committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    4559e61 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Configuration menu
    Copy the full SHA
    a21c2d8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5d714b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bcc4469 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    ca4a18f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c55d6a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#123316 - Enselic:sigpipe-inherit-variants, …

    …r=fmease
    
    Test `#[unix_sigpipe = "inherit"]` with both `SIG_DFL` and `SIG_IGN`
    
    Extend our `#[unix_sigpipe = "inherit"]` test so that it detects if  `SIGPIPE` wrongly ends up being `SIG_DFL` when the parent has `SIG_IGN`. We have no current test for this particular case.
    
    Tracking issue: rust-lang#97889
    fmease committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    453c23f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#123794 - oli-obk:define_opaque_types2, r=lcnr

    More DefineOpaqueTypes::Yes
    
    This accepts more code on stable. It is now possible to have match arms return a function item `foo::<ConcreteType>` and a function item `foo::<OpaqueTypeInDefiningScope>` in another, and that will constrain `OpaqueTypeInDefiningScope` to have the hidden type `ConcreteType`. So the following function will now compile, but on master it errors with a type mismatch on the second match arm
    
    ```rust
    // The function item whose generic params we want to merge.
    fn foo<T>(t: T) -> T { t }
    // Helper ensuring we can constrain `T` on `F` without explicitly specifying it
    fn bind<T, F: FnOnce(T) -> T>(_: T, f: F) -> F { f }
    
    fn k() -> impl Sized {
        let x = match true {
            true => {
                // `f` is `FnDef(foo, [infer_var])`
                let f = foo;
                // Get a value of an opaque type on stable
                let t = k();
                // this returns `FnDef(foo, [k::return])`
                bind(t, f)
            }
            false => foo::<()>,
        };
        todo!()
    }
    ```
    
    r? ``@compiler-errors``
    
    cc rust-lang#116652
    fmease committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    dc81f6d View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#123881 - erickt:bump-fuchsia, r=tmandry

    Bump Fuchsia versions
    
    This updates the Fuchsia commit used in `auto - x86_64-gnu-integration` CI bot to use the Rust commit 703dc9c. This should help improve the coverage of this builder.
    
    It also updates the SDK version to F20.20240412.3.1, and the Fuchsia Clang version to c777c011a709dffd4fa5e79cad7947b7c3405d02.
    
    r? ``@tmandry``
    fmease committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    bef0f3f View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#124281 - RalfJung:win-tls, r=joboet

    fix weak memory bug in TLS on Windows
    
    We need to store the `key` *after* we register the dtor.
    
    Now I hope there isn't also some other reason why we have to actually register the dtor last... `@joboet` is there a reason you picked this particular order in rust-lang#102655?
    
    Fixes rust-lang#123583
    fmease committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    4eda876 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#124282 - RalfJung:fill_utf16_buf, r=ChrisDe…

    …nton
    
    windows fill_utf16_buf: explain the expected return value
    
    The comment just says "return what the syscall returns", but that doesn't work for all syscalls as the Windows API is not consistent in how buffer size is negotiated. For instance, GetUserProfileDirectoryW works a bit differently, and so home_dir_crt has to translate this to the usual protocol itself. So it's worth describing that protocol.
    
    r? ``@ChrisDenton``
    fmease committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    388dc0d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#124308 - CBSpeir:diagnostic-item-enumerate,…

    … r=compiler-errors
    
    Add diagnostic item for `std::iter::Enumerate`
    
    This adds a diagnostic item for `std::iter::Enumerate`.  The change will be used by the clippy `unused_enumerate_index` lint to move away from type paths to using diagnostic items.
    
    see: rust-lang/rust-clippy#5393
    fmease committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    eaeaeb9 View commit details
    Browse the repository at this point in the history