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 16 pull requests #76316

Closed
wants to merge 41 commits into from
Closed

Commits on Aug 19, 2020

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

Commits on Aug 26, 2020

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

Commits on Aug 27, 2020

  1. impl Rc::new_cyclic

    mental32 committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    f03d0b3 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2020

  1. typo

    Co-authored-by: Andrew Hickman <[email protected]>
    mental32 and andrewhickman authored Aug 29, 2020
    Configuration menu
    Copy the full SHA
    42fb270 View commit details
    Browse the repository at this point in the history
  2. Link vec doc to & reference

    It is not always obvious that people could see the docs for `&`
    especially for beginners, it also helps learnability.
    pickfire authored Aug 29, 2020
    Configuration menu
    Copy the full SHA
    bb5e79c View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2020

  1. Configuration menu
    Copy the full SHA
    20a6866 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81e85ce View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6b75e3d View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2020

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

Commits on Sep 2, 2020

  1. rename MaybeUninit slice methods

    first_ptr -> slice_as_ptr
    first_ptr_mut -> slice_as_mut_ptr
    slice_get_ref -> slice_assume_init_ref
    slice_get_mut -> slice_assume_init_mut
    RalfJung committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    dddc5ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e0a47d View commit details
    Browse the repository at this point in the history
  3. Add regression test

    JulianKnodt committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    acac5c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Add missing link in README

    camelid committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    8783c62 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e29fdb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    791f93c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4231fbc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4df6490 View commit details
    Browse the repository at this point in the history
  6. Rename IsJoint -> Spacing

    To match better naming from proc-macro
    matklad committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    ccf41dd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c6ab3ff View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2278c72 View commit details
    Browse the repository at this point in the history
  9. Make Ipv4Addr and Ipv6Addr const tests unit tests under library

    These tests are about the standard library, not the compiler itself, thus should live in `library`, see rust-lang#76268.
    CDirkx committed Sep 3, 2020
    Configuration menu
    Copy the full SHA
    a2e077e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8c93125 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    7b823df View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2020

  1. Move various ui const tests to library

    Move:
     - `src\test\ui\consts\const-nonzero.rs` to `library\core`
     - `src\test\ui\consts\ascii.rs` to `library\core`
     - `src\test\ui\consts\cow-is-borrowed` to `library\alloc`
    
    Part of rust-lang#76268
    CDirkx committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    538e198 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85146b9 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#75580 - JulianKnodt:or_pattern, r=wesleywiser

    Add test for checking duplicated branch or-patterns
    
    This adds a regression test for checking `or-patterns` in MIR as shown in rust-lang#75439.
    This doesn't introduce a fix as I'm not sure where it would go(I suspect maybe here: src/librustc_mir_build/build/matches/mod.rs), and I'm not particularly able to fix it.
    
    cc: @lzutao
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    1893161 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#75695 - JohnTitor:regression-test, r=Dylan-DPC

    Add a regression test for issue-72793
    
    Adds a regression test for rust-lang#72793, which is fixed by rust-lang#75443. Note that this won't close the issue as the snippet still shows ICE with `-Zmir-opt-level=2`. But it makes sense to add a test anyway.
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    23c6435 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#75954 - ArekPiekarz:unstable_book_ffi_track…

    …ing_issues, r=steveklabnik
    
    Unstable Book: add links to tracking issues for FFI features
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    ab1e517 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    621605f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#76060 - pickfire:patch-12, r=jyn514

    Link vec doc to & reference
    
    It is not always obvious that people could see the docs for `&`
    especially for beginners, it also helps learnability.
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    f199602 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#76128 - poliorcetics:doc-use-arc-clone, r=K…

    …odrAus
    
    Use Arc::clone and Rc::clone in documentation
    
    This PR replaces uses of `x.clone()` by `Rc::clone(&x)` (or `Arc::clone(&x)`) to better match the documentation for those types.
    
    @rustbot modify labels: T-doc
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    5734041 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#76217 - RalfJung:maybe-uninit-slice, r=KodrAus

    rename MaybeUninit slice methods
    
    The `first` methods conceptually point to the whole slice, not just its first element, so rename them to be consistent with the raw ptr methods on ref-slices.
    
    Also, do the equivalent of rust-lang#76047 for the slice reference getters, and make them part of rust-lang#63569 (so far they somehow had no tracking issue).
    
    * first_ptr -> slice_as_ptr
    * first_ptr_mut -> slice_as_mut_ptr
    * slice_get_ref -> slice_assume_init_ref
    * slice_get_mut -> slice_assume_init_mut
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    c191b36 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#76229 - camelid:patch-3, r=jonas-schievink

    Add missing link in README
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    149d339 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#76257 - JulianKnodt:i75777, r=Dylan-DPC

    Add regression test
    
    This adds a regression test for rust-lang#75777, effectively closing it since it is solved on nightly and beta.
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    0f9bbea View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#76273 - CraftSpider:master, r=matklad

    Move some Vec UI tests into alloc unit tests
    
    A bit of work towards rust-lang#76268, makes a number of the Vec UI tests that are simply running code into unit tests. Ensured that they are being run when testing liballoc locally.
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    602babc View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#76274 - scottmcm:fix-76271, r=petrochenkov

    Allow try blocks as the argument to return expressions
    
    Fixes rust-lang#76271
    
    I don't think this needs to be edition-aware (phew) since `return try` in 2015 is also the start of an expression, just with a struct literal instead of a block (`return try { x: 4, y: 5 }`).
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    8155dd4 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#76291 - matklad:spacing, r=petrochenkov

    Rename IsJoint -> Spacing
    
    Builds on rust-lang#76286 and might conflict with rust-lang#76285
    
    r? @petrochenkov
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    3ea07a3 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#76299 - CDirkx:ip-tests, r=matklad

    Make `Ipv4Addr` and `Ipv6Addr` const tests unit tests under `library`
    
    These tests are about the standard library, not the compiler itself, thus should live in `library`, see rust-lang#76268.
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    405de83 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#76302 - jyn514:peekable-2, r=Dylan-DPC

    Address review comments on `Peekable::next_if`
    
    r? @pickfire
    See rust-lang#72310 (review) for context.
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    c40f193 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#76303 - jyn514:vec-assert-doc, r=Dylan-DPC

    Link to `#capacity-and-reallocation` when using with_capacity
    
    Follow up to rust-lang#76058 (comment).
    r? @pickfire
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    3b0e366 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#76305 - CDirkx:const-tests, r=matklad

    Move various ui const tests to `library`
    
    Move:
     - `src\test\ui\consts\const-nonzero.rs` to `library\core`
     - `src\test\ui\consts\ascii.rs` to `library\core`
     - `src\test\ui\consts\cow-is-borrowed` to `library\alloc`
    
    Part of rust-lang#76268
    
    r? @matklad
    matklad authored Sep 4, 2020
    Configuration menu
    Copy the full SHA
    7758c4d View commit details
    Browse the repository at this point in the history