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

Merged
merged 20 commits into from
Apr 5, 2020
Merged

Rollup of 5 pull requests #70807

merged 20 commits into from
Apr 5, 2020

Commits on Mar 30, 2020

  1. Configuration menu
    Copy the full SHA
    6556549 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86c1c43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa6c883 View commit details
    Browse the repository at this point in the history
  4. add some tests

    RalfJung committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    4393923 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3411ade View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4eacf45 View commit details
    Browse the repository at this point in the history
  7. fix aliasing in remove()

    also add smoke test to detect relocation even in rustc runs
    RalfJung committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    8f479e3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5bbaac3 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2020

  1. Configuration menu
    Copy the full SHA
    b4f416d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e901b2f View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2020

  1. tweak swap_remove

    RalfJung committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    7e81c11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05a5895 View commit details
    Browse the repository at this point in the history
  3. add test

    RalfJung committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    315a3b9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6cbe172 View commit details
    Browse the repository at this point in the history
  5. fix comment

    RalfJung committed Apr 5, 2020
    Configuration menu
    Copy the full SHA
    e52a451 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#70558 - RalfJung:vec-extend-aliasing, r=Ama…

    …nieu
    
    Fix some aliasing issues in Vec
    
    `Vec::extend` and `Vec::truncate` invalidated references into the vector even without reallocation, because they (implicitly) created a mutable reference covering the *entire* initialized part of the vector.
    
    Fixes rust-lang#70301
    I verified the fix by adding some new tests here that I ran in Miri.
    Dylan-DPC authored Apr 5, 2020
    Configuration menu
    Copy the full SHA
    7e4ed72 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#70760 - PonasKovas:docs, r=Dylan-DPC

    docs: make the description of Result::map_or more clear
    
    The documentation of [`Result::map_or`](https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or) is very unclear and confusing, probably because it was copied straight from [`Option::map_or`](https://doc.rust-lang.org/std/option/enum.Option.html#method.map_or) and someone forgot to adapt it for Result.
    Dylan-DPC authored Apr 5, 2020
    Configuration menu
    Copy the full SHA
    6f595e8 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#70769 - RalfJung:fixed, r=Dylan-DPC

    Miri: remove an outdated FIXME
    
    We even [have a test ](https://github.com/rust-lang/rust/blob/49dc2f9f091748beb1a8a9d5b3eb3bbe7362c3bd/src/test/ui/consts/miri_unleashed/drop.rs) making sure that we detect dropping with a non-const implementation.
    
    r? @oli-obk
    Dylan-DPC authored Apr 5, 2020
    Configuration menu
    Copy the full SHA
    2448a23 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#70776 - RalfJung:raw-vec, r=Dylan-DPC,TimDi…

    …ekmann
    
    clarify comment in RawVec::into_box
    
    On first reading I almost thought "len <= cap" would be all that there is to check here. Expand the comment to clarify that that is not the case.
    Dylan-DPC authored Apr 5, 2020
    Configuration menu
    Copy the full SHA
    c185c4f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#70806 - RalfJung:miri-assignment-check, r=e…

    …ddyb
    
    fix Miri assignment sanity check
    
    Thanks @eddyb for pointing me to the right APIs!
    
    r? @eddyb
    Fixes rust-lang#70804
    Dylan-DPC authored Apr 5, 2020
    Configuration menu
    Copy the full SHA
    31b8d65 View commit details
    Browse the repository at this point in the history