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 31 pull requests #59207

Closed
wants to merge 83 commits into from
Closed

Rollup of 31 pull requests #59207

wants to merge 83 commits into from

Commits on Mar 1, 2019

  1. Configuration menu
    Copy the full SHA
    6da206b View commit details
    Browse the repository at this point in the history
  2. appveyor: Use VS2017 for all our images

    Originally added in rust-lang#55935 to test build times, this was reverted
    in rust-lang#56201 due to a belief that it caused the exit code 259 spurious
    errors. We've since learned, however, that the 259 exit code is likely
    not related to this image update as we're getting it in a number of
    locations now.
    
    VS2017 looks like it may be required to compile LLVm in the near future,
    notably discovered by rust-lang#58408 where we attempted to update LLVM.
    alexcrichton committed Mar 1, 2019
    Configuration menu
    Copy the full SHA
    02b0085 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2019

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

Commits on Mar 4, 2019

  1. fs::copy() unix: set file mode early

    same fix as commit fb98ca7
    PR: rust-lang#58803
    
    A convenience method like fs::copy() should try to prevent pitfalls a
    normal user doesn't think about.
    
    In case of an empty umask, setting the file mode early prevents
    temporarily world readable or even writeable files,
    because the default mode is 0o666.
    
    In case the target is a named pipe or special device node, setting the
    file mode can lead to unwanted side effects, like setting permissons on
    /dev/stdout or for root setting permissions on /dev/null.
    haraldh committed Mar 4, 2019
    Configuration menu
    Copy the full SHA
    1a19c46 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2019

  1. Move alloc::prelude::* to alloc::prelude::v1, make alloc a subset of std

    This was one of the unresolved questions of rust-lang/rfcs#2480.
    As the RFC says this is maybe not useful in the sense that we are unlikely
    to ever have a second version, but making the crate a true subset
    makes one less issue to think about if we stabilize it and later
    want to merge standard library crates and have Cargo feature flags
    to enable or disable parts of the `std` crate.
    
    See also discussion in rust-lang#58175
    SimonSapin committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    2b49ec0 View commit details
    Browse the repository at this point in the history
  2. core: ensure VaList passes improper_ctypes lint

    Ensure the core::ffi::VaList structure passes the improper_ctypes lint.
    dlrobertson committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    1243859 View commit details
    Browse the repository at this point in the history
  3. Rename the feature gate for alloc::prelude

    … to separate it from that of the crate.
    
    New tracking issue: rust-lang#58935
    SimonSapin committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    5d1022a View commit details
    Browse the repository at this point in the history
  4. std: Spin for a global malloc lock on wasm32

    There's lots of comments in the code, but the main gist of this commit
    is that the acquisition of the global malloc lock on the
    `wasm32-unknown-unknown` target when threads are enabled will not spin
    on contention rather than block.
    alexcrichton committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    72958ac View commit details
    Browse the repository at this point in the history
  5. MIPS: add r6 support

    MIPS r6 is quite different with the previous version.
    It use some new target triples:
      mipsisa32r6-unknown-linux-gnu
      mipsisa32r6el-unknown-linux-gnu
      mipsisa64r6-unknown-linux-gnuabi64
      mipsisa64r6el-unknown-linux-gnuabi64
    
    This patch has been tested with Debian Port for mips64r6el,
    and the support of these triples also is included in llvm:
      https://reviews.llvm.org/rGe58c45a695f39004710b6ce940d489fee800dbd3
    wzssyqa committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    710988a View commit details
    Browse the repository at this point in the history
  6. fs::copy() set file mode early

    A convenience method like fs::copy() should try to prevent pitfalls a
    normal user doesn't think about.
    
    In case of an empty umask, setting the file mode early prevents
    temporarily world readable or even writeable files,
    because the default mode is 0o666.
    
    In case the target is a named pipe or special device node, setting the
    file mode can lead to unwanted side effects, like setting permissons on
    `/dev/stdout` or for root setting permissions on `/dev/null`.
    
    copy_file_range() returns EINVAL, if the destination is a FIFO/pipe or
    a device like "/dev/null", so fallback to io::copy, too.
    
    Fixes: rust-lang#26933
    Fixed: rust-lang#37885
    haraldh committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    5cf5832 View commit details
    Browse the repository at this point in the history
  7. SGX target: Expose thread id function in os module

    Jethro Beekman committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    67eabc6 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2019

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

Commits on Mar 7, 2019

  1. [CI] Update binutils for powerpc64 and powerpc64le

    Cargo powerpc64 and powerpc64le are seeing `SIGILL` crashes in openssl,
    which was found to be a linking problem, fixed by newer binutils. See
    <rust-lang#57345 (comment)>
    
    For powerpc64 we're using crosstool-ng, which doesn't offer a newer
    binutils version, but we can just compile it separately. On powerpc64le
    we're already building binutils. Both are now updated to binutils 2.32.
    
    Closes rust-lang/cargo#6320
    Closes rust-lang#57345
    Closes rust-lang/rustup#1620
    cuviper committed Mar 7, 2019
    Configuration menu
    Copy the full SHA
    3477939 View commit details
    Browse the repository at this point in the history
  2. Wrap a long configure line

    cuviper committed Mar 7, 2019
    Configuration menu
    Copy the full SHA
    c843fe7 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2019

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

Commits on Mar 9, 2019

  1. Configuration menu
    Copy the full SHA
    94a6936 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a4ea084 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2019

  1. Fix ICE in MIR pretty printing

    A `Def::Variant` should be considered as a function in mir pretty
    printing. Each variant has a constructor that we must print.
    
    Given the following enum definition:
    
    ```
    pub enum TestMe {
        X(usize),
    }
    ```
    
    We will need to generate a constructor for the variant `X` with a
    signature that looks something like the following:
    
    ```
    fn TestMe::X(_1: usize) -> TestMe;
    ```
    dlrobertson committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    3a83cb2 View commit details
    Browse the repository at this point in the history
  2. Update src/tools/publish_toolstate.py

    Co-Authored-By: kennytm <kennytm@gmail.com>
    jamesmunns and kennytm committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    135b686 View commit details
    Browse the repository at this point in the history
  3. Fix tidy

    kennytm committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    d6f5100 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4888b1f View commit details
    Browse the repository at this point in the history
  5. enabled too many tests

    RalfJung committed Mar 10, 2019
    Configuration menu
    Copy the full SHA
    52d9fa8 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2019

  1. Configuration menu
    Copy the full SHA
    8629fd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e25df32 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    35c19c5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d4b2071 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    02f26e3 View commit details
    Browse the repository at this point in the history
  6. fix tests

    newpavlov committed Mar 11, 2019
    Configuration menu
    Copy the full SHA
    980871a View commit details
    Browse the repository at this point in the history
  7. fix test

    newpavlov committed Mar 11, 2019
    Configuration menu
    Copy the full SHA
    197efb0 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2019

  1. fix typo

    newpavlov committed Mar 12, 2019
    Configuration menu
    Copy the full SHA
    78b248d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df2dce3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54bf8e0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5074489 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    79695ea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ca32fe4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    df05fbf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    795d307 View commit details
    Browse the repository at this point in the history
  9. review comments

    estebank committed Mar 12, 2019
    Configuration menu
    Copy the full SHA
    f923476 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2019

  1. Make std time tests more robust for platform differences

    Jethro Beekman committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    adbd0a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ea9b58 View commit details
    Browse the repository at this point in the history
  3. Stabilize Range*::contains.

    smmalis37 committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    266ca31 View commit details
    Browse the repository at this point in the history
  4. Add test for rust-lang#55809.

    This commit adds a regression test for rust-lang#55809 which checks that a
    overflow does not occur when evaluating a requirement for async
    functions and `&mut` arguments in some specific circumstances.
    davidtwco committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    9d938f6 View commit details
    Browse the repository at this point in the history
  5. Fix generic argument lookup for Self

    Rewrite the SelfCtor early and use the replacement Def when
    calculating the path_segs.
    
    Note that this also changes which def is seen by the code that
    computes user_self_ty and is_alias_variant_ctor; I don't see a
    immediate issue with that, but I'm not 100% clear on the
    implications.
    
    Fixes rust-lang#57924
    Angelos Oikonomopoulos committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    311025e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c37dab7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5abd6d9 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2019

  1. Configuration menu
    Copy the full SHA
    88d43a0 View commit details
    Browse the repository at this point in the history
  2. Run RustdocUi earlier

    Zoxc committed Mar 14, 2019
    Configuration menu
    Copy the full SHA
    41cdf07 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab19e58 View commit details
    Browse the repository at this point in the history
  4. Update sources.rs

    The current language may be amusing, yet is just imprecise and most especially difficult to understand for someone who speaks English as a foreign language.
    lukaslueg committed Mar 14, 2019
    Configuration menu
    Copy the full SHA
    d1fcd86 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa8fd3d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7c59ce9 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2019

  1. Rollup merge of rust-lang#58803 - haraldh:fs_copy_fix, r=alexcrichton

    fs::copy() unix: set file mode early
    
    A convenience method like fs::copy() should try to prevent pitfalls a
    normal user doesn't think about.
    
    In case of an empty umask, setting the file mode early prevents
    temporarily world readable or even writeable files,
    because the default mode is 0o666.
    
    In case the target is a named pipe or special device node, setting the
    file mode can lead to unwanted side effects, like setting permissons on
    `/dev/stdout` or for root setting permissions on `/dev/null`.
    
    copy_file_range() returns EINVAL, if the destination is a FIFO/pipe or
    a device like "/dev/null", so fallback to io::copy, too.
    
    Fixes: rust-lang#26933
    Fixed: rust-lang#37885
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    ad8e2b1 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#58854 - alexcrichton:update-windows, r=Mark…

    …-Simulacrum
    
    appveyor: Use VS2017 for all our images
    
    Originally added in rust-lang#55935 to test build times, this was reverted
    in rust-lang#56201 due to a belief that it caused the exit code 259 spurious
    errors. We've since learned, however, that the 259 exit code is likely
    not related to this image update as we're getting it in a number of
    locations now.
    
    VS2017 looks like it may be required to compile LLVm in the near future,
    notably discovered by rust-lang#58408 where we attempted to update LLVM.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    2bb8c9b View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#58855 - alexcrichton:wasm-multithreaded-all…

    …oc, r=fitzgen
    
    std: Spin for a global malloc lock on wasm32
    
    There's lots of comments in the code, but the main gist of this commit
    is that the acquisition of the global malloc lock on the
    `wasm32-unknown-unknown` target when threads are enabled will not spin
    on contention rather than block.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    d0a4fac View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#58873 - GuillaumeGomez:fix-auto-hide-method…

    …-doc, r=QuietMisdreavus
    
    Fix "Auto-hide item methods documentation" setting
    
    Fixes rust-lang#58825.
    
    r? @QuietMisdreavus
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    b3c597f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#58933 - SimonSapin:alloc-prelude-v1, r=Amanieu

    Move alloc::prelude::* to alloc::prelude::v1, make alloc a subset of std
    
    This was one of the unresolved questions of rust-lang/rfcs#2480. As the RFC says this is maybe not useful in the sense that we are unlikely to ever have a second version, but making the crate a true subset makes one less issue to think about if we stabilize it and later want to merge standard library crates and have Cargo feature flags to enable or disable parts of the `std` crate.
    
    See also discussion in rust-lang#58175.
    
    Also rename the feature gate and point to a dedicated tracking issue: rust-lang#58935
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    237d769 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#58938 - dlrobertson:fix_58280, r=joshtriplett

    core: ensure VaList passes improper_ctypes lint
    
    Ensure the `core::ffi::VaList` structure passes the `improper_ctypes` lint.
    
    Fixes: rust-lang#58280
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    3d305f9 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#58941 - wzssyqa:master, r=alexcrichton

    MIPS: add r6 support
    
    MIPS r6 is quite different with the previous version.
    It use some new target triples:
      mipsisa32r6-unknown-linux-gnu
      mipsisa32r6el-unknown-linux-gnu
      mipsisa64r6-unknown-linux-gnuabi64
      mipsisa64r6el-unknown-linux-gnuabi64
    
    This patch has been tested with Debian Port for mips64r6el,
    and the support of these triples also is included in llvm:
      https://reviews.llvm.org/rGe58c45a695f39004710b6ce940d489fee800dbd3
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    b072116 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#58949 - jethrogb:jb/sgx-thread-id, r=joshtr…

    …iplett
    
    SGX target: Expose thread id function in os module
    
    In order to call `std::os::fortanix_sgx::usercalls::send`, you need the thread id. This exposes it through another function in `std::os::fortanix_sgx`.
    
    I looked at how other platforms do this. On Windows and `cfg(unix)` you can get the OS handle from a `thread::JoinHandle`, but that's not sufficient, I need it for a `thread::Thread`. In the future, this functionality could be added to `thread::Thread` and this platform can follow suit.
    
    r? @joshtriplett
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    e0f7f9a View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#58976 - phil-opp:patch-2, r=alexcrichton

    Default to integrated `rust-lld` linker for UEFI targets
    
    The `x86_64-unknown-uefi` target was added in rust-lang#56769 with the linker defaulting to `lld-link`. This means that a system linker with that name is required for linking.
    
    I think defaulting to `rust-lld`, which is shipped with Rust, is a better default for the following reasons:
    
    - Most systems don't have `lld-link` installed, so it forces users to install it first.
    - The naming of LLD executables is not standarized, so users often need to create an additional symlink before things work. For example, on Ubuntu `apt install lld` leads to an executable named `lld-link-6.0`.
    - We already default to `rust-lld` for [many targets](https://github.com/rust-lang/rust/search?utf8=%E2%9C%93&q=rust-lld&type=), including embedded and WASM targets, so doing the same for UEFI crates seems consistent to me. (It even seems like `x86_64-unknown-uefi` is the [only target](https://github.com/rust-lang/rust/search?q=lld-link&unscoped_q=lld-link) that uses `lld-link`.)
    
    cc @dvdhrm who added the target and @KKK669 who [proposed to use `rust-lld`](rust-lang#56769 (comment)).
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    4b4707e View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#58986 - cuviper:ppc64-binutils, r=alexcrichton

    [CI] Update binutils for powerpc64 and powerpc64le
    
    Cargo powerpc64 and powerpc64le are seeing `SIGILL` crashes in openssl,
    which was found to be a linking problem, fixed by newer binutils. See
    <rust-lang#57345 (comment)>
    
    For powerpc64 we're using crosstool-ng, which doesn't offer a newer
    binutils version, but we can just compile it separately. On powerpc64le
    we're already building binutils. Both are now updated to binutils 2.32.
    
    Closes rust-lang/cargo#6320
    Closes rust-lang#57345
    Closes rust-lang/rustup#1620
    
    r? @alexcrichton
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    6a0e3cd View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#59009 - sfackler:fix-sgx-vectors, r=alexcri…

    …chton
    
    Fix SGX implementations of read/write_vectored.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    d3893c7 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#59025 - aoikonomopoulos:issue-57924, r=varkor

    Fix generic argument lookup for Self
    
    Rewrite the SelfCtor early and use the replacement Def when
    calculating the path_segs.
    
    Note that this also changes which def is seen by the code that
    computes user_self_ty and is_alias_variant_ctor; I don't see a
    immediate issue with that, but I'm not 100% clear on the
    implications.
    
    Fixes rust-lang#57924
    
    r? @eddyb
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    05ad8ba View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#59036 - dlrobertson:fix_59021, r=estebank

    Fix ICE in MIR pretty printing
    
    A `Def::Variant` should be considered as a function in mir pretty
    printing. Each variant has a constructor that we must print.
    
    Given the following enum definition:
    
    ```rust
    pub enum TestMe {
        X(usize),
    }
    ```
    
    We will need to generate a constructor for the variant `X` with a
    signature that looks something like the following:
    
    ```
    fn TestMe::X(_1: usize) -> TestMe;
    ```
    
    Fixes: rust-lang#59021
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    b0cc65b View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#59037 - Manishearth:intra-doc-false, r=Quie…

    …tMisdreavus
    
    Avoid some common false positives in intra doc link checking
    
    The empty string case is never going to be a link. The numeric case may be a link, but if it were it would have resolved locally. It's more likely the makeshift markdown footnote notation (`[0]`, etc)
    
    r? @QuietMisdreavus
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    5b78001 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#59038 - kennytm:track-embedded-book, r=oli-obk

    Track embedded-book in the toolstate
    
    The embedded book was tested in the tools job but the test result was never published. This PR adds maintainer information of embedded-book. This PR also requires the next update to embedded-book to pass the all tests, currently its state is test-fail.
    
    rust-lang-nursery/rust-toolstate#10 should be merged before this PR.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    cdc2f47 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#59072 - RalfJung:miri-alloc-tests, r=kennytm

    we can now skip should_panic tests with the libtest harness
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    3463053 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#59079 - euclio:macro-semi, r=estebank

    add suggestions to invalid macro item error
    
    r? @estebank
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    8a55a86 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#59082 - alexreg:cosmetic-2-doc-comments, r=…

    …Centril
    
    A few improvements to comments in user-facing crates
    
    Not too many this time, and all concern comments (almost all doc comments) in user-facing crates (libstd, libcore, liballoc).
    
    r? @steveklabnik
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    7267bce View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#59102 - newpavlov:duration_float, r=alexcri…

    …chton
    
    Consistent naming for duration_float methods and additional f32 methods
    
    `duration_float` tracking issue: rust-lang#54361
    
    New list of methods:
    - `as_secs_f64(&self) -> f64`
    - `as_secs_f32(&self) -> f32`
    - `from_secs_f64(secs: f64) -> Duration`
    - `from_secs_f32(secs: f32) -> Duration`
    - `mul_f64(self, rhs: f64) -> Duration`
    - `mul_f32(self, rhs: f32) -> Duration`
    - `div_f64(self, rhs: f64) -> Duration`
    - `div_f32(self, rhs: f64) -> Duration`
    - `div_duration_f64(self, rhs: Duration) -> f64`
    - `div_duration_f32(self, rhs: Duration) -> f32`
    
    With [`num_traits::Float`](https://docs.rs/num-traits/0.2.6/num_traits/float/trait.Float.html) we could've reduced number of methods by factor of two, but unfortunately it's not part of `std`.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    348ee6d View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#59106 - LinusU:udp-peer-addr, r=kennytm

    Add peer_addr function to UdpSocket
    
    Fixes rust-lang#59104
    
    This is my first pull request to Rust, so opening early for some feedback.
    
    My biggest question is: where do I add tests?
    
    Any comments very much appreciated!
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    3672ef7 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#59118 - seanmonstar:alias-where-self-ice, r…

    …=alexreg
    
    rustc: fix ICE when trait alias has bare Self
    
    Fixes rust-lang#59029
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    3086e1d View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#59139 - oli-obk:unions_are_a_good_thing, r=…

    …RalfJung
    
    Unregress using scalar unions in constants.
    
    fixes rust-lang#59126
    
    r? @RalfJung
    
    I also made a bunch of these invariants panic instead of report an error.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    7f70db6 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#59146 - estebank:suggest-return-lt, r=varkor

    Suggest return lifetime when there's only one named lifetime
    
    Fix rust-lang#29094.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    d93e460 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#59147 - jethrogb:jb/time-tests, r=sfackler

    Make std time tests more robust for platform differences
    
    Previously, `time::tests::since_epoch` and `time::tests::system_time_math` would fail if the platform represents a SystemTime as unix epoch + `u64` nanoseconds.
    
    r? @sfackler
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    ea3c111 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#59152 - smmalis37:range_contains, r=SimonSapin

    Stabilize Range*::contains.
    
    Closes rust-lang#32311. There's also a bit of rustfmt on range.rs thrown in for good measure (I forgot to turn off format-on-save in VSCode).
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    2a20230 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#59156 - davidtwco:issue-55809, r=nikomatsakis

    [wg-async-await] Add regression test for rust-lang#55809.
    
    Fixes rust-lang#55809.
    
    This PR adds a regression test for rust-lang#55809 which checks that a
    overflow does not occur when evaluating a requirement for async
    functions and `&mut` arguments in some specific circumstances.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    5c680ee View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#59158 - Manishearth:fix-minification, r=Gui…

    …llaumeGomez
    
    Revert "Don't generate minification variable if minification disabled"
    
    Reverts rust-lang#58643
    
    Fixes rust-lang#59157
    
    rust-lang#58643 made us stop generating minification variables when minification is disabled, however they may still be needed for parent crates that were generated with minification (this will always be the case for libstd and libcore)
    
    r? @QuietMisdreavus @GuillaumeGomez
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    14ba4d5 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#59169 - tmandry:allow-features-flag, r=cram…

    …ertj
    
    Add `-Z allow_features=...` flag
    
    Adds a compiler option to allow only whitelisted features.
    
    For projects on nightly that want to prevent feature-creep (and maybe, someday, move off of nightly). Not being able to enforce this has been a problem on Fuchsia and at other big companies.
    
    This doesn't support filtering edition feature flags, but someone is welcome to add that if they need it.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    076be4d View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#59175 - Zoxc:fix-process-test, r=alexcrichton

    Don't run test launching `echo` since that doesn't exist on Windows
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    6d865eb View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#59180 - taiki-e:try_blocks, r=scottmcm

    Use try blocks in rustc_codegen_ssa
    
    r? @scottmcm
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    a2f345e View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#59185 - lukaslueg:patch-2, r=cramertj

    No old chestnuts in iter::repeat docs
    
    The current language may be amusing, yet is just imprecise and most especially difficult to understand for someone who speaks English as a foreign language.
    kennytm committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    f8257ab View commit details
    Browse the repository at this point in the history