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

Merged
merged 20 commits into from
Oct 14, 2024
Merged

Rollup of 8 pull requests #131672

merged 20 commits into from
Oct 14, 2024

Commits on Oct 3, 2024

  1. std::fs::get_path freebsd update.

    what matters is we re doing the right things as doing sizeof, rather than
    KINFO_FILE_SIZE (only defined on intel architectures), the kernel
     making sure it matches the expectation in its side.
    devnexen committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    82b4d0d View commit details
    Browse the repository at this point in the history
  2. update libc version

    devnexen committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    65532e7 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. library: Stabilize const MaybeUninit::assume_init_mut

    Co-authored-by: Ralf Jung <post@ralfj.de>
    workingjubilee and RalfJung committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    0b00a54 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. emscripten: Use the latest emsdk 3.1.68

    This should fix our precompiled std being unsound in `std::fs` code.
    workingjubilee committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    2c38ecf View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. Configuration menu
    Copy the full SHA
    559de74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    255bdd2 View commit details
    Browse the repository at this point in the history
  3. compiler: Wire {TyAnd,}Layout into rustc_abi

    This finally unites TyAndLayout, Layout, and LayoutS into the same crate,
    as one might imagine they would be placed. No functional changes.
    workingjubilee committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    1072190 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bc4366b View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. Configuration menu
    Copy the full SHA
    1ebfd97 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5e91a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    725d1f7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b7e399 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Rollup merge of rust-lang#128967 - devnexen:get_path_fbsd_upd, r=joboet

    std::fs::get_path freebsd update.
    
    what matters is we re doing the right things as doing sizeof, rather than passing KINFO_FILE_SIZE (only defined on intel architectures), the kernel
     making sure it matches the expectation in its side.
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    55f8b9e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#130629 - Dirbaio:net-from-octets, r=tgross35

    core/net: add Ipv[46]Addr::from_octets, Ipv6Addr::from_segments.
    
    Adds:
    
    - `Ipv4Address::from_octets([u8;4])`
    - `Ipv6Address::from_octets([u8;16])`
    - `Ipv6Address::from_segments([u16;8])`
    
    equivalent to the existing `From` impls.
    
    Advantages:
    
    - Consistent with `to_bits, from_bits`.
    - More discoverable than the `From` impls.
    - Helps with type inference: it's common to want to convert byte slices to IP addrs. If you try this
    
    ```rust
    fn foo(x: &[u8]) -> Ipv4Addr {
       Ipv4Addr::from(foo.try_into().unwrap())
    }
    ```
    
    it [doesn't work](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=0e2873312de275a58fa6e33d1b213bec). You have to write `Ipv4Addr::from(<[u8;4]>::try_from(x).unwrap())` instead, which is not great. With `from_octets` it is able to infer the right types.
    
    Found this while porting [smoltcp](https://github.com/smoltcp-rs/smoltcp/) from its own IP address types to the `core::net` types.
    
    ~~Tracking issues rust-lang#27709 rust-lang#76205~~
    Tracking issue: rust-lang#131360
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    e01eae7 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#131274 - workingjubilee:stabilize-the-one-t…

    …hat-got-away, r=scottmcm
    
    library: Const-stabilize `MaybeUninit::assume_init_mut`
    
    FCP completed in rust-lang#86722 (comment)
    
    Also moves const-ness of an unstable fn under the `maybe_uninit_slice` gate, Cc rust-lang#63569
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    cc5d86a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#131473 - workingjubilee:move-that-abi-up, r…

    …=saethlin
    
    compiler: `{TyAnd,}Layout` comes home
    
    The `Layout` and `TyAndLayout` types are heavily abstract and have no particular target-specific qualities, though we do use them to answer questions particular to targets. We can keep it that way if we simply move them out of `rustc_target` and into `rustc_abi`. They bring a small entourage of connected types with them, but that's fine.
    
    This will allow us to strengthen a few abstraction barriers over time and thus make the notoriously gnarly layout code easier to refactor. For now, we don't need to worry about that and deliberately use reexports to minimize this particular diff.
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    cb140dc View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#131533 - workingjubilee:update-emscripten-v…

    …ersion, r=Kobzol
    
    emscripten: Use the latest emsdk 3.1.68
    
    This should fix our precompiled std being unsound in `std::fs` code.
    
    Should resolve rust-lang#131467 I hope.
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    eb060f6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#131593 - RalfJung:alloc-no-clone, r=saethlin

    miri: avoid cloning AllocExtra
    
    We shouldn't be cloning Miri allocations, so make `AllocExtra::clone` panic instead, and adjust the one case where we *do* clone (the leak check) to avoid cloning.
    
    This is in preparation for rust-lang/miri#3966 where I am adding something to `AllocExtra` that cannot (easily) be cloned.
    
    r? ``@saethlin``
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4139018 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#131616 - RalfJung:const_ip, r=tgross35

    merge const_ipv4 / const_ipv6 feature gate into 'ip' feature gate
    
    rust-lang#76205 has been closed a while ago, but there are still some functions that reference it. Those functions are all unstable *and* const-unstable. There's no good reason to use a separate feature gate for their const-stability, so this PR moves their const-stability under the same gate as their regular stability, and therefore removes the remaining references to rust-lang#76205.
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    5d63a3d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#131660 - Urgau:non_local_def-131643, r=jiey…

    …ouxu
    
    Also use outermost const-anon for impl items in `non_local_defs` lint
    
    This PR update the logic for the impl paths (items) in the `non_local_definitions` lint to also consider const-anon in case the impl definition is wrapped inside const-anon it-self wrapped into a const-anon where the items are.
    
    r? `@jieyouxu` *(since you interacted on the issue)*
    Fixes *(after beta-backport)* rust-lang#131643
    matthiaskrgr authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d34b932 View commit details
    Browse the repository at this point in the history