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 8 pull requests #116769

Closed
wants to merge 16 commits into from

Commits on Sep 19, 2023

  1. Stabilize {IpAddr, Ipv6Addr}::to_canonical

    Make `IpAddr::to_canonical` and `IpV6Addr::to_canonical` stable, as well as
    const stabilize `Ipv6Addr::to_ipv4_mapped`.
    
    Newly stable API:
    
        impl IpAddr {
            // Now stable under `ip_to_canonical`
            const fn to_canonical(&self) -> IpAddr;
        }
    
        impl Ipv6Addr {
            // Now stable under `ip_to_canonical`
            const fn to_canonical(&self) -> IpAddr;
    
            // Already stable, this makes it const stable under
            // `const_ipv6_to_ipv4_mapped`
            const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr>
        }
    
    These stabilize a subset of the following tracking issues:
    
    - rust-lang#27709
    - rust-lang#76205
    tgross35 committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    7381f9d View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

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

Commits on Oct 14, 2023

  1. Make x capable of resolving symlinks

    When bootstrapping from outside of the rust source,
    instead of calling 'x' from the absolute path
    (like /home/user/rust/x), we should be able to link 'x'
    from the rust source to binary paths so it can be used easily.
    Before this change, 'x' was not capable of finding 'x.py' when
    called from the linked file.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    e0fe1d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2023

  1. Configuration menu
    Copy the full SHA
    b50aa24 View commit details
    Browse the repository at this point in the history
  2. Remove trivial cast in guaranteed_eq

    I found this while accidentally breaking trivial casts in another
    branch.
    Noratrieb committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    fe9d422 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    223674a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6beb394 View commit details
    Browse the repository at this point in the history
  5. Implement args for UEFI

    - Uses `EFI_LOADED_IMAGE_PROTOCOL`
    - verify that cli args are valid UTF-16
    - Update Docs
    
    Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
    Ayush1325 committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    6713ae9 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#115955 - tgross35:ip-to-canonical, r=dtolnay

    Stabilize `{IpAddr, Ipv6Addr}::to_canonical`
    
    Make `IpAddr::to_canonical` and `IpV6Addr::to_canonical` stable (+const), as well as const stabilize `Ipv6Addr::to_ipv4_mapped`.
    
    Newly stable API:
    
    ```rust
    impl IpAddr {
        // Newly stable under `ip_to_canonical`
        const fn to_canonical(&self) -> IpAddr;
    }
    
    impl Ipv6Addr {
        // Newly stable under `ip_to_canonical`
        const fn to_canonical(&self) -> IpAddr;
    
        // Already stable, this makes it const stable under
        // `const_ipv6_to_ipv4_mapped`
        const fn to_ipv4_mapped(&self) -> Option<Ipv4Addr>
    }
    ```
    
    These stabilize a subset of the following tracking issues:
    
    - rust-lang#27709
    - rust-lang#76205
    
    Stabilization of all methods under the `ip` gate was attempted once at rust-lang#66584 then again at rust-lang#76098. These were not successful because there are still unknowns about `is_documentation` `is_benchmarking` and similar; `to_canonical` is much more straightforward.
    
    I have looked and could not find any known issues with `to_canonical`. These were added in 2021 in rust-lang#87708
    
    cc implementor `@the8472`
    
    r? libs-api
    `@rustbot` label +T-libs-api +needs-fcp
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    0e5cf4f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#116033 - bvanjoi:fix-116032, r=petrochenkov

    report `unused_import` for empty reexports even it is pub
    
    Fixes rust-lang#116032
    
    An easy fix. r? `@petrochenkov`
    
    (Discovered this issue while reviewing rust-lang#115993.)
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    8a2877b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#116172 - joboet:recursive_tls_initializatio…

    …n, r=dtolnay
    
    Broaden the consequences of recursive TLS initialization
    
    This PR updates the documentation of `LocalKey` to clearly disallow the behaviour described in [this comment](rust-lang#110897 (comment)). This allows using `OnceCell` for the lazy initialization of TLS variables, which panics on reentrant initialization instead of updating the value like TLS variables currently do.
    
    `@rustbot` label +T-libs-api
    r? `@m-ou-se`
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    8c1b136 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#116341 - Ayush1325:uefi-args, r=Mark-Simula…

    …crum
    
    Implement sys::args for UEFI
    
    - Uses `EFI_LOADED_IMAGE_PROTOCOL`, which is implemented for all loaded images.
    
    Tested on qemu with OVMF
    
    cc `@nicholasbishop`
    cc `@dvdhrm`
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    bb6ef61 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#116522 - bvanjoi:fix-115599, r=oli-obk

    use `PatKind::Error` when an ADT const value has violation
    
    Fixes rust-lang#115599
    
    Since the [to_pat](https://github.com/rust-lang/rust/pull/111913/files#diff-6d8d99538aca600d633270051580c7a9e40b35824ea2863d9dda2c85a733b5d9R126-R155) behavior has been changed in the rust-lang#111913 update, the kind of `inlined_const_ast_pat` has transformed from `PatKind::Leaf { pattern: Pat { kind: Wild, ..} } ` to `PatKind::Constant`. This caused a scenario where there are no matched candidates, leading to a testing of the candidates. This process ultimately attempts to test the string const, triggering the `bug!` invocation finally.
    
    r? `@oli-obk`
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    74e0fd3 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#116732 - onur-ozkan:resolve-linked-x, r=Mar…

    …k-Simulacrum
    
    Make x capable of resolving symlinks
    
    When bootstrapping from outside of the rust source, instead of calling 'x' from the absolute path
    (like /home/user/rust/x), we should be able to link 'x' from the rust source to binary paths so it can be used easily. Before this change, 'x' was not capable of finding 'x.py' when called from the linked file.
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    11a0b4f View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#116755 - scottmcm:review-rotation, r=Mark-S…

    …imulacrum
    
    Remove me from libcore review rotation
    
    I'm looking at my commitments right now, and unfortunately this needs to go for at least a while.
    
    If there's something in particular I can probably still take them, but I should drop out of the rotation for now.
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    2bc2522 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#116760 - Nilstrieb:triviality, r=oli-obk

    Remove trivial cast in `guaranteed_eq`
    
    I found this while accidentally breaking trivial casts in another branch.
    
    r? oli-obk
    matthiaskrgr committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    fe8ff72 View commit details
    Browse the repository at this point in the history