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 4 pull requests #70775

Closed
wants to merge 9 commits into from

Commits on Apr 3, 2020

  1. Configuration menu
    Copy the full SHA
    f8d6fc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fdd4f3 View commit details
    Browse the repository at this point in the history
  3. Do not disable field reordering on enums with big discriminant

    The field are always re-ordered to minimize padding, regardless of the
    alignment of the discriminant
    ogoffart committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    6b6cb7b View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2020

  1. use ManuallyDrop instead of forget inside collections

    This commit changes some usage of mem::forget into mem::ManuallyDrop
    in some Vec, VecDeque, BTreeMap and Box methods.
    
    Before the commit, the generated IR for some of the methods was
    longer, and even after optimization, some unwinding artifacts were
    still present.
    tspiteri committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    2b718e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cd79400 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#70635 - petrochenkov:nodefault, r=nagisa

    rustc_target: Some cleanup to `no_default_libraries`
    Dylan-DPC committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    54bbe07 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#70748 - ogoffart:enum-layout-optim2, r=eddyb

    Do not disable field reordering on enums with big discriminant
    
    The field are always re-ordered to minimize padding, regardless of the
    alignment of the discriminant
    
    (spinoff from rust-lang#70477)
    Dylan-DPC committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    d49221f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#70750 - cuviper:direct-fuse, r=scottmcm

    Match options directly in the Fuse implementation
    
    Rather than using `as_ref()`, `as_mut()`, and `?`, we can use `match` directly to save a lot of generated code. This was mentioned as a possibility in rust-lang#70366 (comment), and I found that it had a very large impact on rust-lang#70332 using `Fuse` within `Chain`. Let's evaluate this change on its own first.
    Dylan-DPC committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    d0e10c7 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#70766 - tspiteri:forget-to-ManuallyDrop, r=…

    …Mark-Simulacrum,RalfJung
    
    use ManuallyDrop instead of forget inside collections
    
    This PR changes some usage of `mem::forget` into `mem::ManuallyDrop` in some `Vec`, `VecDeque`, `BTreeMap` and `Box` methods.
    
    Before the commit, the generated IR for some of the methods was longer, and even after optimization, some unwinding artifacts were still present.
    Dylan-DPC committed Apr 4, 2020
    Configuration menu
    Copy the full SHA
    55680e4 View commit details
    Browse the repository at this point in the history