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 14 pull requests #59043

Closed
wants to merge 82 commits into from
Closed

Rollup of 14 pull requests #59043

wants to merge 82 commits into from

Commits on Feb 22, 2019

  1. Add MaybeUninit::read_uninitialized

    Also remove a no-longer accurate comments
    RalfJung committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    13ffbee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc570fb View commit details
    Browse the repository at this point in the history
  3. misc tweaks

    RalfJung committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    10f511d View commit details
    Browse the repository at this point in the history
  4. examples for as[_mut]_ptr

    RalfJung committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    48aa59e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    084ee7a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d10366f View commit details
    Browse the repository at this point in the history
  7. make MaybeUninit Copy

    RalfJung committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    aa4a9b0 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2019

  1. Apply suggestions from code review

    Co-Authored-By: RalfJung <post@ralfj.de>
    Centril and RalfJung authored Feb 23, 2019
    Configuration menu
    Copy the full SHA
    53c0275 View commit details
    Browse the repository at this point in the history
  2. expand type name

    RalfJung committed Feb 23, 2019
    Configuration menu
    Copy the full SHA
    ac2284b View commit details
    Browse the repository at this point in the history
  3. fix link

    RalfJung committed Feb 23, 2019
    Configuration menu
    Copy the full SHA
    8ce9b86 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2019

  1. Configuration menu
    Copy the full SHA
    a5e2d0c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be8d728 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d32e5a View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2019

  1. Mention unwind(aborts) in diagnostics for #[unwind]

    Simplify input validation for `#[unwind]`, add tests
    petrochenkov committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    b11502f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc00a8a View commit details
    Browse the repository at this point in the history
  3. Add a test for rust-lang#10876

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    fc4b916 View commit details
    Browse the repository at this point in the history
  4. Add tests for rust-lang#26448

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    e206d4e View commit details
    Browse the repository at this point in the history
  5. Add a test for rust-lang#26619

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    93ff7dc View commit details
    Browse the repository at this point in the history
  6. Add a test for rust-lang#44127

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    987d71f View commit details
    Browse the repository at this point in the history
  7. Add a test for rust-lang#44255

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    bdd3826 View commit details
    Browse the repository at this point in the history
  8. Add a test for rust-lang#46101

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    36b1326 View commit details
    Browse the repository at this point in the history
  9. Add a test for rust-lang#55731

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    1068424 View commit details
    Browse the repository at this point in the history
  10. Add a test for rust-lang#57781

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    525dc46 View commit details
    Browse the repository at this point in the history
  11. Add a test for rust-lang#22892

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    5fb2d8b View commit details
    Browse the repository at this point in the history
  12. Add a test for rust-lang#28587

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    0976e5e View commit details
    Browse the repository at this point in the history
  13. Add a test for rust-lang#26577

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    42a89c6 View commit details
    Browse the repository at this point in the history
  14. Add a test for rust-lang#27054

    varkor committed Feb 27, 2019
    Configuration menu
    Copy the full SHA
    0df193f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    70b853d View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2019

  1. Make Unique::as_ptr, NonNull::dangling and NonNull::cast const

    Make `Unique::as_ptr` const without feature attribute as it's unstable
    Make `NonNull::dangling` and `NonNull::cast` const with `feature = "const_ptr_nonnull"`
    Tim committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    797d8ea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    009c91a View commit details
    Browse the repository at this point in the history
  3. tabs -> spaces

    QuietMisdreavus committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    9e98a25 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fc94593 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    95500c0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5eb1ab5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a3a2559 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3ce19b4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    63bdd29 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    80b4919 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1b63543 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    74cf1ad View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    515dbe7 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2019

  1. fix an issue with path probing on Windows

    The old logic would incorrectly look for "python2.exe" when searching
    for "python2.7.exe".
    euclio committed Mar 2, 2019
    Configuration menu
    Copy the full SHA
    5360ded View commit details
    Browse the repository at this point in the history
  2. look for python2 symlinks before bootstrap python

    Before this commit, if you're running x.py directly on a system where
    `python` is symlinked to Python 3, then the `python` config option will
    default to a Python 3 interpreter. This causes debuginfo tests to fail
    with an opaque error message, since they have a hard requirement on
    Python 2.
    
    This commit modifies the Python probe behavior to look for python2.7 and
    python2 *before* using the interpreter used to execute `x.py`.
    euclio committed Mar 2, 2019
    Configuration menu
    Copy the full SHA
    12d8a7d View commit details
    Browse the repository at this point in the history
  3. Ignore WASM on asm tests

    varkor committed Mar 2, 2019
    Configuration menu
    Copy the full SHA
    c38c959 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2019

  1. Ignore should_panic tests on android

    These tests currently segfault sometimes. Android is a tier-2 target so
    this is fine to disable instead of fixing.
    
    Unfortunately, this isn't quite enough as rustdoc doesn't currently
    correctly interpret the --exclude-should-panic flag (i.e., ignores it).
    That proved to be harder to fix than I had time for so we're going to
    leave it and hope that at least some of the failures are fixed.
    Mark-Simulacrum committed Mar 3, 2019
    Configuration menu
    Copy the full SHA
    1055263 View commit details
    Browse the repository at this point in the history
  2. Add .nll.stderr output

    Tim committed Mar 3, 2019
    Configuration menu
    Copy the full SHA
    60a649e View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2019

  1. Configuration menu
    Copy the full SHA
    5c0615b View commit details
    Browse the repository at this point in the history
  2. Add as_slice() to slice::IterMut and vec::Drain

    In indexmap-rs/indexmap#88, we found that there was no easy way to implement
    `Debug` for our `IterMut` and `Drain` iterators. Those are built on
    `slice::IterMut` and `vec::Drain`, which implement `Debug` themselves,
    but have no other way to access their data. With a new `as_slice()`
    method, we can read the data and customize its presentation.
    cuviper committed Mar 4, 2019
    Configuration menu
    Copy the full SHA
    538a096 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2019

  1. fixes rust-lang#52482

    Saleem Jaffer committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    9902f8c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e28cf74 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3df0b89 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2019

  1. Apply suggestions from code review

    Co-Authored-By: cuviper <cuviper@gmail.com>
    Centril and cuviper authored Mar 6, 2019
    Configuration menu
    Copy the full SHA
    5384a11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51e0d1c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e478cad View commit details
    Browse the repository at this point in the history
  4. Split up privacy checking so privacy_access_levels only does computat…

    …ions required for AccessLevels
    Zoxc committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    d5bb71c View commit details
    Browse the repository at this point in the history
  5. Run the first block in a parallel! macro directly in the scope which …

    …guarantees that it will run immediately
    Zoxc committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    d2923e5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1745957 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    140a837 View commit details
    Browse the repository at this point in the history
  8. Make wf checking parallel

    Zoxc committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    350f72f View commit details
    Browse the repository at this point in the history
  9. Update tests

    Zoxc committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    01f7450 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7cc7b8f View commit details
    Browse the repository at this point in the history
  11. Add some comments

    Zoxc committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    db9a1c1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7985c6f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9e5def9 View commit details
    Browse the repository at this point in the history
  14. Apply suggestions from code review

    Co-Authored-By: RalfJung <post@ralfj.de>
    Centril and RalfJung authored Mar 6, 2019
    Configuration menu
    Copy the full SHA
    90bb07e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    cefe9b0 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2019

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

Commits on Mar 8, 2019

  1. std: Delete a by-definition spuriously failing test

    This commit deletes the `connect_timeout_unbound` test from the standard
    library which, unfortunately, is by definition eventually going to be a
    spuriously failing test. There's no way to reserve a port as unbound so
    we can rely on ecosystem testing for this feature for now.
    
    Closes rust-lang#52590
    alexcrichton committed Mar 8, 2019
    Configuration menu
    Copy the full SHA
    6465257 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2019

  1. Rollup merge of rust-lang#58518 - oli-obk:unreachable_result_errors, …

    …r=RalfJung
    
    Use early unwraps instead of bubbling up errors just to unwrap in the end
    
    r? @RalfJung
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    c65d544 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#58626 - QuietMisdreavus:doc-coverage, r=Gui…

    …llaumeGomez
    
    rustdoc: add option to calculate "documentation coverage"
    
    This PR adds a new flag to rustdoc, `--show-coverage`. When passed, this flag will make rustdoc count the number of items in a crate with documentation instead of generating docs. This count will be output as a table of each file in the crate, like this (when run on my crate `egg-mode`):
    
    ```
    +-------------------------------------+------------+------------+------------+
    | File                                | Documented |      Total | Percentage |
    +-------------------------------------+------------+------------+------------+
    | src/auth.rs                         |         16 |         16 |     100.0% |
    | src/common/mod.rs                   |          1 |          1 |     100.0% |
    | src/common/response.rs              |          9 |          9 |     100.0% |
    | src/cursor.rs                       |         24 |         24 |     100.0% |
    | src/direct/fun.rs                   |          6 |          6 |     100.0% |
    | src/direct/mod.rs                   |         41 |         41 |     100.0% |
    | src/entities.rs                     |         50 |         50 |     100.0% |
    | src/error.rs                        |         27 |         27 |     100.0% |
    | src/lib.rs                          |          1 |          1 |     100.0% |
    | src/list/fun.rs                     |         19 |         19 |     100.0% |
    | src/list/mod.rs                     |         22 |         22 |     100.0% |
    | src/media/mod.rs                    |         27 |         27 |     100.0% |
    | src/place/fun.rs                    |          8 |          8 |     100.0% |
    | src/place/mod.rs                    |         35 |         35 |     100.0% |
    | src/search.rs                       |         26 |         26 |     100.0% |
    | src/service.rs                      |         74 |         74 |     100.0% |
    | src/stream/mod.rs                   |         49 |         49 |     100.0% |
    | src/tweet/fun.rs                    |         15 |         15 |     100.0% |
    | src/tweet/mod.rs                    |         73 |         73 |     100.0% |
    | src/user/fun.rs                     |         24 |         24 |     100.0% |
    | src/user/mod.rs                     |         87 |         87 |     100.0% |
    +-------------------------------------+------------+------------+------------+
    | Total                               |        634 |        634 |     100.0% |
    +-------------------------------------+------------+------------+------------+
    ```
    
    Trait implementations are not counted because by default they "inherit" the docs from the trait, even though an impl can override those docs. Similarly, inherent impl blocks are not counted at all, because for the majority of cases such docs are not useful. (The usual pattern for inherent impl blocks is to throw all the methods on a type into a single impl block. Any docs you would put on that block would be better served on the type itself.)
    
    In addition, `--show-coverage` can be combined with `--document-private-items` to get the coverage counts for everything in the crate, not just public items.
    
    The coverage calculation is implemented as a late pass and two new sets of passes which strip out most of the work that rustdoc otherwise does when generating docs. The is because after the new pass is executed, rustdoc immediately closes instead of going on to generate documentation.
    
    Many examples of coverage calculations have been included as `rustdoc-ui` tests.
    
    r? @rust-lang/rustdoc
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    83362be View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#58629 - euclio:debug-empty-str, r=alexcrichton

    rust-lldb: fix crash when printing empty string
    
    Fixes rust-lang#52185.
    
    ~Re-enables the pretty-std debuginfo test and tweaks the test as necessary to get it to pass again. This reveals that lldb's formatting of enums is broken (rust-lang#58492). I also removed the emoji from the test because I couldn't get the docker image's gdb to print the emoji, just octal escapes (https://github.com/rust-lang/rust/pull/53154/files#r208263904).~
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    14a6aa7 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#58660 - RalfJung:maybe-uninit, r=Centril

    MaybeUninit: add read_initialized, add examples
    
    This adds a new `read_initialized` method, similar to suggestions by @Amanieu and @shepmaster. I also added examples to this and other methods.
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    f7e5076 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e4bbec View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#58676 - euclio:bootstrap-python, r=alexcric…

    …hton
    
    look for python2 symlinks before bootstrap python
    
    Before this commit, if you're running x.py directly on a system where
    `python` is symlinked to Python 3, then the `python` config option will
    default to a Python 3 interpreter. This causes debuginfo tests to fail
    with an opaque error message, since they have a hard requirement on
    Python 2.
    
    This commit modifies the Python probe behavior to look for python2.7 and
    python2 *before* using the interpreter used to execute `x.py`.
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    bca962a View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#58679 - Zoxc:passes-refactor, r=michaelwoer…

    …ister
    
    Refactor passes and pass execution to be more parallel
    
    For `syntex_syntax` (with 16 threads and 8 cores):
    - Cuts `misc checking 1` from `0.096s` to `0.08325s`.
    - Cuts `misc checking 2` from `0.3575s` to `0.2545s`.
    - Cuts `misc checking 3` from `0.34625s` to `0.21375s`.
    - Cuts `wf checking` from `0.3085s` to `0.05025s`.
    
    Reduces overall execution time for `syntex_syntax` (with 8 threads and cores) from `4.92s` to `4.34s`.
    
    Subsumes rust-lang#58494
    Blocked on rust-lang#58250
    
    r? @michaelwoerister
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    2a9b328 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#58743 - varkor:bulk-needstest-1, r=alexcric…

    …hton
    
    Add tests for several E-needstest issues
    
    This PR adds a number of tests for various `E-needstest` errors. These tend to have been left open for a long time and seem unlikely to be closed otherwise.
    
    Closes rust-lang#10876.
    Closes rust-lang#22892.
    Closes rust-lang#26448.
    Closes rust-lang#26577.
    Closes rust-lang#26619.
    Closes rust-lang#27054.
    Closes rust-lang#28587.
    Closes rust-lang#44127.
    Closes rust-lang#44255.
    Closes rust-lang#55731.
    Closes rust-lang#57781.
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    bdf6263 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#58750 - TimDiekmann:master, r=oli-obk

    Make `Unique::as_ptr`, `NonNull::dangling` and `NonNull::cast` const
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    70c1977 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#58762 - petrochenkov:unwind, r=Mark-Simulacrum

    Mention `unwind(aborts)` in diagnostics for `#[unwind]`
    
    Simplify input validation for `#[unwind]`, add tests
    
    cc rust-lang#58760
    r? @Mark-Simulacrum
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    9a0a16a View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#58900 - Mark-Simulacrum:ignore-should-panic…

    …-android, r=kennytm
    
    Ignore should_panic tests on android
    
    These tests currently segfault sometimes. Android is a tier-2 target so
    this is fine to disable instead of fixing.
    
    Unfortunately, this isn't quite enough as rustdoc doesn't currently
    correctly interpret the --exclude-should-panic flag (i.e., ignores it).
    That proved to be harder to fix than I had time for so we're going to
    leave it and hope that at least some of the failures are fixed.
    
    Hopefully alleviates rust-lang#55861; I don't have the time to investigate fixing rustdoc.
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    5753b9e View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#58924 - cuviper:more-as_slice, r=dtolnay

    Add as_slice() to slice::IterMut and vec::Drain
    
    In indexmap-rs/indexmap#88, we found that there was no easy way to implement
    `Debug` for our `IterMut` and `Drain` iterators. Those are built on
    `slice::IterMut` and `vec::Drain`, which implement `Debug` themselves,
    but have no other way to access their data. With a new `as_slice()`
    method, we can read the data and customize its presentation.
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    eb77056 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#58990 - oli-obk:miri_manifest, r=alexcrichton

    Actually publish miri in the manifest
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    aa64a77 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#59018 - alexcrichton:omg, r=sfackler

    std: Delete a by-definition spuriously failing test
    
    This commit deletes the `connect_timeout_unbound` test from the standard
    library which, unfortunately, is by definition eventually going to be a
    spuriously failing test. There's no way to reserve a port as unbound so
    we can rely on ecosystem testing for this feature for now.
    
    Closes rust-lang#52590
    Centril authored Mar 9, 2019
    Configuration menu
    Copy the full SHA
    fbfffd0 View commit details
    Browse the repository at this point in the history