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

Merged
merged 16 commits into from
Jun 7, 2022
Merged

Rollup of 5 pull requests #97825

merged 16 commits into from
Jun 7, 2022

Commits on Jun 4, 2022

  1. Configuration menu
    Copy the full SHA
    ba2f14e View commit details
    Browse the repository at this point in the history
  2. Added test for rust-lang#97732

    Kixiron committed Jun 4, 2022
    Configuration menu
    Copy the full SHA
    857453d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f3d93b6 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2022

  1. Remove SIGIO reference on Haiku

    Haiku doesn't define SIGIO. The nix crate already employs this workaround:
    https://github.com/nix-rust/nix/blob/5dedbc7850448ae3922ab0a833f3eb971bf7e25f/src/sys/signal.rs#L92-L94
    rtzoeller committed Jun 5, 2022
    Configuration menu
    Copy the full SHA
    fac5cbc View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2022

  1. Remove unnecessary cgu name length hash

    This is a tiny optimization
    bjorn3 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    85136db View commit details
    Browse the repository at this point in the history
  2. Rename CodegenUnit::work_product to previous_work_product

    It returns the previous work product or panics if there is none. This rename
    makes the purpose of this method clearer.
    bjorn3 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    02162c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    065e202 View commit details
    Browse the repository at this point in the history
  4. Factor Option out of copy_cgu_workproduct_to_incr_comp_cache_dir call

    This improves clarity of the code a bit
    bjorn3 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    906b851 View commit details
    Browse the repository at this point in the history
  5. Make saved_file field of WorkProduct non-optional

    A WorkProduct without a saved file is useless
    bjorn3 committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    e16c3b4 View commit details
    Browse the repository at this point in the history
  6. Update src/test/ui/unsized/issue-97732.rs

    Co-authored-by: Eduard-Mihai Burtescu <edy.burt@gmail.com>
    Kixiron and eddyb committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    10336cf View commit details
    Browse the repository at this point in the history
  7. Add some unstable target features for the wasm target codegen

    I was experimenting with cross-language LTO for the wasm target recently
    between Rust and C and found that C was injecting the `+mutable-globals`
    flag on all functions. When specifying the corresponding
    `-Ctarget-feature=+mutable-globals` feature to Rust it prints a warning
    about an unknown feature. I've added the `mutable-globals` feature plus
    another few I know of to the list of known features for wasm targets.
    These features all continue to be unstable to source code as they were
    before.
    alexcrichton committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    ff37001 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Rollup merge of rust-lang#97058 - bjorn3:multi_artifact_work_products…

    …, r=nagisa
    
    Various refactors to the incr comp workproduct handling
    
    This is the result of me looking into adding support for having multiple object files for a single codegen unit to incr comp. This is necessary to support inline assembly in cg_clif without requiring partial linking which is not supported on Windows and seems to fail on macOS for some reason. Cg_clif uses an external assembler to handle inline asm and thus produces one object file with regular functions and one object file containing compiled inline asm for each codegen unit which uses inline asm. Current incr comp can't handle this. This PR doesn't yet add support for this, but it makes it easier to do so.
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    ab1027a View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#97301 - semicoleon:unstable-reexport, r=pet…

    …rochenkov
    
    Allow unstable items to be re-exported unstably without requiring the feature be enabled
    
    Closes rust-lang#94972
    
    The diagnostic may need some work still, and I haven't added a test yet
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    2035b50 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#97738 - Kixiron:zst-panic, r=eddyb

    Fix ICEs from zsts within unsized types with non-zero offsets
    
    - Fixes rust-lang#97732
    - Fixes ICEs while compiling `alloc` with `-Z randomize-layout`
    
    r? ``@eddyb``
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    62c260d View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#97771 - rtzoeller:haiku_no_sigio, r=kennytm

    Remove SIGIO reference on Haiku
    
    Haiku doesn't define SIGIO. The nix crate already employs this workaround:
    https://github.com/nix-rust/nix/blob/5dedbc7850448ae3922ab0a833f3eb971bf7e25f/src/sys/signal.rs#L92-L94
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    f32a4f0 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#97808 - alexcrichton:wasm-features, r=petro…

    …chenkov
    
    Add some unstable target features for the wasm target codegen
    
    I was experimenting with cross-language LTO for the wasm target recently
    between Rust and C and found that C was injecting the `+mutable-globals`
    flag on all functions. When specifying the corresponding
    `-Ctarget-feature=+mutable-globals` feature to Rust it prints a warning
    about an unknown feature. I've added the `mutable-globals` feature plus
    another few I know of to the list of known features for wasm targets.
    These features all continue to be unstable to source code as they were
    before.
    Dylan-DPC committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    9526653 View commit details
    Browse the repository at this point in the history