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 7 pull requests #71556

Merged
merged 19 commits into from
Apr 25, 2020
Merged

Rollup of 7 pull requests #71556

merged 19 commits into from
Apr 25, 2020

Commits on Mar 8, 2020

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

Commits on Apr 2, 2020

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

Commits on Apr 15, 2020

  1. Configuration menu
    Copy the full SHA
    cdb6bef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b359fe1 View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-Authored-By: Ralf Jung <post@ralfj.de>
    SimonSapin and RalfJung authored Apr 15, 2020
    Configuration menu
    Copy the full SHA
    9a1c7db View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. Implement Box::into_raw based on Box::leak

    … instead of the other way around.
    SimonSapin committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    7709d20 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2020

  1. Replace filter_map().next() calls with find_map()

    These are semantically the same, but `find_map()` is more concise.
    cuviper committed Apr 25, 2020
    Configuration menu
    Copy the full SHA
    4282776 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19c29c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b1fbd79 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    df99de5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    966a295 View commit details
    Browse the repository at this point in the history
  6. Use the correct bound for Cursor Send

    Co-Authored-By: Amanieu d'Antras <amanieu@gmail.com>
    crlf0710 and Amanieu authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    78a034d View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#69041 - petrochenkov:stabmodispan, r=Amanieu

    proc_macro: Stabilize `Span::resolved_at` and `Span::located_at`
    
    Introduced in rust-lang#47149.
    Part of rust-lang#54725.
    
    Motivation: rust-lang#68716 (comment).
    Identifiers in proc macros may want to inherit span locations for diagnostics from one tokens (e.g. some tokens from the macro input), but resolve those identifiers from some different location (e.g. from the macro's definition site).
    This becomes especially important when multiple resolution locations become available with stabilization of [`Span::mixed_site`](rust-lang#68716).
    
    Why I think this is the right API for setting span's location and hygiene - rust-lang#69041 (comment).
    
    r? @dtolnay
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    7b7c63c View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#69813 - thomcc:nonzero-bitor, r=Amanieu

    Implement BitOr and BitOrAssign for the NonZero integer types
    
    This provides overloaded operators for `NonZero$Int | NonZero$Int`, `NonZero$Int | $Int`, and `$Int | NonZero$Int`. It also provides `BitOrAssign` where `self` is `NonZero$Int`, for symmetry.
    
    It's a pretty small conceptual addition, but is good becasue but avoids a case where the operation is obviously sound, but you'd otherwise need unsafe to do it.
    
    In crates trying to minimize `unsafe` usage, this is unfortunate and makes working with `NonZero` types often not worth it, even if the operations you're doing are clearly sound.
    
    I've marked these as stable as I've been told in the past that trait impls are automatically stable. I'm happy to change it to unstable if this wasn't correct information.
    
    I'm not entirely confident what version I should have put down, so I followed https://www.whatrustisit.com. Hopefully it's correct for this.
    
    Apologies in advance if this has come up before, but I couldn't find it.
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    b6e03c4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#70712 - :stabilize-remove-entry, r=Amanieu

    stabilize BTreeMap::remove_entry
    
    This PR stabilizes `BTreeMap::remove_entry` as implemented in rust-lang#68378.
    
    Closes rust-lang#66714
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    29fd528 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#71168 - SimonSapin:into_raw_non_null, r=Ama…

    …nieu
    
    Deprecate `{Box,Rc,Arc}::into_raw_non_null`
    
    Per ongoing FCP at rust-lang#47336 (comment)
    See also rust-lang#47336 (comment)
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    939c932 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#71544 - cuviper:filter_map_next, r=Mark-Sim…

    …ulacrum
    
    Replace filter_map().next() calls with find_map()
    
    These are semantically the same, but `find_map()` is more concise.
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    9709785 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#71545 - Askaholic:patch-1, r=jonas-schievink

    Fix comment in docstring example for Error::kind
    
    Saw it while reading the docs.
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    ecef6c7 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#71548 - crlf0710:cursor_bounds, r=Amanieu

    Add missing Send and Sync impls for linked list Cursor and CursorMut.
    
    Someone pointed out these to me, and i think it's indeed reasonable to add those impl.
    
    r? @Amanieu
    Dylan-DPC authored Apr 25, 2020
    Configuration menu
    Copy the full SHA
    82642d7 View commit details
    Browse the repository at this point in the history