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 5 pull requests #94916

Merged
merged 14 commits into from
Mar 13, 2022
Merged

Rollup of 5 pull requests #94916

merged 14 commits into from
Mar 13, 2022

Commits on Mar 9, 2022

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

Commits on Mar 10, 2022

  1. Add Atomic*::get_mut_slice

    Just as `get_mut` is the inverse of `from_mut`, `get_mut_slice` is the
    inverse of `from_mut_slice`.
    WaffleLapkin committed Mar 10, 2022
    Configuration menu
    Copy the full SHA
    ecf46d1 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2022

  1. Configuration menu
    Copy the full SHA
    1d13de6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b5acf0 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2022

  1. Configuration menu
    Copy the full SHA
    88609e5 View commit details
    Browse the repository at this point in the history
  2. Use trimmed down deserialization impl for config

    This reduces binary size from 10.1MiB (6.2MiB for just rustbuild code)
    to 9.7MiB (5.8MiB for just rustbuild code).
    
    This also reduces compile time from ~6.1s for incr recompilation to ~5.6s.
    
    There is still a lot of
    unnecessary code due to the toml crate monomorphizing every
    deserialization impl 5 times.
    bjorn3 committed Mar 13, 2022
    Configuration menu
    Copy the full SHA
    a0b4d21 View commit details
    Browse the repository at this point in the history
  3. Prevent duplicate monomorphization of deserialization impls

    This reduces binary size from 9.7MiB (5.8MiB for just rustbuild code)
    to 9.3MiB (5.3MiB for just rustbuild code).
    
    This doesn't reduce compile time in a statistically significant way.
    bjorn3 committed Mar 13, 2022
    Configuration menu
    Copy the full SHA
    dca8ff5 View commit details
    Browse the repository at this point in the history
  4. Remove FieldName enum

    bjorn3 committed Mar 13, 2022
    Configuration menu
    Copy the full SHA
    a0163f7 View commit details
    Browse the repository at this point in the history
  5. Omit stdarch test crates from the rust-src component

    These crates aren't necessary for building the standard library. This
    saves 30MB of disk space.
    
    Fixes rust-lang#94906
    bjorn3 committed Mar 13, 2022
    Configuration menu
    Copy the full SHA
    cd5e75a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#93292 - nvzqz:nonzero-bits, r=dtolnay

    Implement `BITS` constant for non-zero integers
    
    This adds the associated [`BITS`](https://doc.rust-lang.org/stable/std/primitive.usize.html#associatedconstant.BITS) constant to `NonZero{U,I}{8,16,32,64,128,size}`.
    
    This is useful when a type alias refers to either a regular or non-zero integer.
    matthiaskrgr authored Mar 13, 2022
    Configuration menu
    Copy the full SHA
    2f9bc56 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#94777 - lancethepants:armv7-unknown-linux-u…

    …clibceabi, r=Mark-Simulacrum
    
    Update armv7-unknown-linux-uclibceabi platform support page.
    
    A few edits and fixes to the support page for the armv7-unknown-linux-uclibceabi target.
    matthiaskrgr authored Mar 13, 2022
    Configuration menu
    Copy the full SHA
    3c943d0 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#94816 - WaffleLapkin:atomic_get_mut_slice, …

    …r=Mark-Simulacrum
    
    Add `Atomic*::get_mut_slice`
    
    This PR adds the inverse of `Atomic*::from_mut_slice` introduced in rust-lang#94384 with the following API:
    ```rust
    // core::sync::atomic
    
    impl Atomic* {
        fn get_mut_slice(this: &mut [Self]) -> &mut [*];
    }
    ```
    
    cc `@cuviper`
    
    -----
    
    For now I've used the same tracking issue as `Atomic*::from_mut_slice`, should I open a new one?
    matthiaskrgr authored Mar 13, 2022
    Configuration menu
    Copy the full SHA
    8dad2d1 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#94844 - bjorn3:rustbuild_cleanup, r=Mark-Si…

    …mulacrum
    
    Reduce rustbuild bloat caused by serde_derive
    
    This reduces the size of the `.text` section from 10.1MiB (6.2MiB for just rustbuild code) to 9.3MiB (5.3MiB for just rustbuild code).
    
    This also reduces compile time from ~6.1s for incr recompilation to ~5.6s.
    
    r? `@Mark-Simulacrum`
    matthiaskrgr authored Mar 13, 2022
    Configuration menu
    Copy the full SHA
    d14ba95 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#94907 - bjorn3:smaller_rust_src_component, …

    …r=Mark-Simulacrum
    
    Omit stdarch test crates from the rust-src component
    
    These crates aren't necessary for building the standard library. This saves 30MB of disk space.
    
    Fixes rust-lang#94906
    matthiaskrgr authored Mar 13, 2022
    Configuration menu
    Copy the full SHA
    c7030d3 View commit details
    Browse the repository at this point in the history