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

Merged
merged 13 commits into from
Feb 20, 2020
Merged

Rollup of 5 pull requests #69309

merged 13 commits into from
Feb 20, 2020

Commits on Feb 8, 2020

  1. Stabilize Once::is_completed

    mjbshaw committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    348278a View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2020

  1. [!] Use rustc_inherit_overflow_checks in next_power_of_two

    I believe the previous code was calling `ops::Add::add` instead of the
    `+` operator to get this behavior.
    ecstatic-morse committed Feb 9, 2020
    Configuration menu
    Copy the full SHA
    c981d67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2afa993 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    269bf89 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7fe5eaf View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2020

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

Commits on Feb 19, 2020

  1. Configuration menu
    Copy the full SHA
    1b342f7 View commit details
    Browse the repository at this point in the history
  2. Add LinkedList::remove()

    LinkedList::remove() removes the element at the specified index and returns it.
    
    Signed-off-by: Bijan Tabatabai <bijan311@yahoo.com>
    BijanT committed Feb 19, 2020
    Configuration menu
    Copy the full SHA
    c797ce7 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2020

  1. Rollup merge of rust-lang#68705 - BijanT:ll_remove, r=Mark-Simulacrum

    Add LinkedList::remove()
    
    LinkedList::remove() removes the element at the specified index and returns it.
    
    I added this because I think having a remove function would be useful to have, and similar functions are in other containers, like Vec and HashMap.
    
    I'm not sure if adding a feature like this requires an RFC or not, so I'm sorry if this PR is premature.
    Dylan-DPC authored Feb 20, 2020
    Configuration menu
    Copy the full SHA
    f7ce5ff View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#68945 - mjbshaw:once_is_completed, r=LukasK…

    …albertodt
    
    Stabilize Once::is_completed
    
    Closes rust-lang#54890
    
    This function has been around for some time. I haven't seen anyone raise any objections to it. I've personally found it useful myself. It would be nice to finally stabilize it and
    Dylan-DPC authored Feb 20, 2020
    Configuration menu
    Copy the full SHA
    588f008 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#68978 - ecstatic-morse:const-int-pow, r=oli…

    …-obk
    
    Make integer exponentiation methods unstably const
    
    cc rust-lang#53718
    
    This makes the following inherent methods on integer primitives into unstable `const fn`:
    - `pow`
    - `checked_pow`
    - `wrapping_pow`
    - `overflowing_pow`
    - `saturating_pow`
    - `next_power_of_two`
    - `checked_next_power_of_two`
    - `wrapping_next_power_of_two`
    
    Only two changes were made to the implementation of these methods. First, I had to switch from the `?` operator, which is not yet implemented in a const context, to a `try_opt` macro. Second, `next_power_of_two` was using `ops::Add::add` (see the first commit) to "get overflow checks", so I switched to `#[rustc_inherit_overflow_checks]`. I'm not quite sure why the attribute wasn't used in the first place.
    Dylan-DPC authored Feb 20, 2020
    Configuration menu
    Copy the full SHA
    d96951f View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#69266 - Zoxc:fix-source-map-race, r=wesleyw…

    …iser
    
    Fix race condition when allocating source files in SourceMap
    
    This makes allocating address space in the source map an atomic operation. `rustc` does not currently do this in parallel, so this bug can't trigger, but parsing files in parallel could trigger it, and that is something we want to do.
    
    Fixes rust-lang#69261.
    
    r? @wesleywiser
    Dylan-DPC authored Feb 20, 2020
    Configuration menu
    Copy the full SHA
    5d285dc View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#69287 - GuillaumeGomez:clean-e0317, r=Dylan…

    …-DPC
    
    Clean up E0317 explanation
    
    r? @Dylan-DPC
    Dylan-DPC authored Feb 20, 2020
    Configuration menu
    Copy the full SHA
    941ce1a View commit details
    Browse the repository at this point in the history