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 19 pull requests #74229

Closed
wants to merge 54 commits into from

Commits on Jun 30, 2020

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

Commits on Jul 2, 2020

  1. Configuration menu
    Copy the full SHA
    8e256b1 View commit details
    Browse the repository at this point in the history
  2. Add test of tuple nested indexing

    dtolnay authored and petrochenkov committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    40a2170 View commit details
    Browse the repository at this point in the history
  3. Test even deeper nested indexing

    dtolnay authored and petrochenkov committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    0432f63 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    776deb6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6dfa549 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3814eec View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    63f95a4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    64a88db View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    52bdaaa View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. Explain effects of debugging options from config.toml

    Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
    tmiasko and teymour-aldridge committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    bcef848 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2020

  1. Add VecDeque::range* methods

    This patch adds `VecDeque::range` and `VecDeque::range_mut` to provide
    iterators over a sub-range of a `VecDeque`. This behavior can be
    emulated with `skip` and `take`, but directly providing a `Range` is
    more ergonomic. This also partially makes up for `VecDeque`'s lack of
    `SliceIndex` support.
    jonhoo committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    7fb2693 View commit details
    Browse the repository at this point in the history
  2. fixups

    jonhoo committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    8872ec3 View commit details
    Browse the repository at this point in the history
  3. Suppress debuginfo on naked function arguments

    A function that has no prologue cannot be reasonably expected to support
    debuginfo. In fact, the existing code (before this patch) would generate
    invalid instructions that caused crashes. We can solve this easily by
    just not emitting the debuginfo in this case.
    
    Fixes rust-lang#42779
    cc rust-lang#32408
    npmccallum committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    6b59cac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5702e02 View commit details
    Browse the repository at this point in the history
  5. Add UI test for issue 74082

    nbdd0121 committed Jul 6, 2020
    Configuration menu
    Copy the full SHA
    97867bb View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2020

  1. ⬆️ rust-analyzer

    matklad committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    b82df31 View commit details
    Browse the repository at this point in the history
  2. Update books

    ehuss committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    b50c13c View commit details
    Browse the repository at this point in the history
  3. Update rust-installer to latest version

    This pulls in a fix for the install script on some tr(1) implementations,
    as well as an update to use `anyhow` instead of `failure` for error
    handling.
    michaelforney committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    32025fd View commit details
    Browse the repository at this point in the history
  4. Add read_exact_at and write_all_at to WASI's FileExt

    This adds `read_exact_at` and `write_all_at` to WASI's `FileExt`,
    similar to the Unix versions of the same names.
    sunfishcode committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    653c091 View commit details
    Browse the repository at this point in the history
  5. Make WASI's FileExt's read_at/write_at consistent with other targets.

    Rename the existing read_at/write_at to read_vectored_at/write_vectored_at,
    for consistency with libstd's read_vectored/write_vectored. And,
    introduce new read_at/write_at functions which take a single buffer,
    similar to all other targets which provide these functions, so this will
    make it easier for applications to share code between WASI and other
    targets.
    
    Note that WASI's FileExt is currently unstable.
    sunfishcode committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    58fc61b View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Configuration menu
    Copy the full SHA
    3c63fba View commit details
    Browse the repository at this point in the history
  2. ToPredicate by value

    lcnr committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    1f98230 View commit details
    Browse the repository at this point in the history
  3. linker: illumos ld does not support --eh-frame-hdr

    As of rust-lang#73564, the --eh-frame-hdr flag is unconditionally
    passed to linkers on many platforms.  The illumos link editor does not
    currently support this flag.
    
    The linker machinery in the Rust toolchain currently seems to use the
    (potentially cross-compiled) target to choose linker flags, rather than
    looking at what might be running on the build system.  Disabling the
    flag for all illumos/Solaris targets seems like the best we can do for
    now without more serious surgery.
    jclulow committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    7fb421b View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2020

  1. Configuration menu
    Copy the full SHA
    7ca2a4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6864546 View commit details
    Browse the repository at this point in the history
  3. Tweak wording

    JohnTitor committed Jul 9, 2020
    Configuration menu
    Copy the full SHA
    a9b6476 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2020

  1. Eliminate rust_input.

    It has a single call site and having it as a separate (higher-order!)
    function makes the code harder to read.
    nnethercote committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    0a7d297 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e8ec2d View commit details
    Browse the repository at this point in the history
  3. Tweak spawn_thread_pool.

    This makes the two versions (parallel and non-parallel) more similar to
    each other.
    nnethercote committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    4ad5de2 View commit details
    Browse the repository at this point in the history
  4. Change some function names.

    A couple of these are quite long, but they do a much better job of
    explaining what they do, which was non-obvious before.
    nnethercote committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    bf70786 View commit details
    Browse the repository at this point in the history
  5. Use str::strip* in bootstrap

    This commit replaces the use of `trim_start_matches`
    because in `rustc -Vv` output there are no lines
    starting with multiple "release:".
    tesuji committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    481988b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1ca7bfe View commit details
    Browse the repository at this point in the history
  7. Avoid "whitelist"

    Other terms are more inclusive and precise.
    tamird committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    62cf767 View commit details
    Browse the repository at this point in the history
  8. Add tracking issue

    jonhoo committed Jul 10, 2020
    Configuration menu
    Copy the full SHA
    a1a19cb View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2020

  1. Rollup merge of rust-lang#71322 - petrochenkov:tuple00, r=nikomatsakis

    Accept tuple.0.0 as tuple indexing (take 2)
    
    If we expect something identifier-like when parsing a field name after `.`, but encounter a float token, we break that float token into parts, similarly to how we break `&&` into `&` `&`, or `<<` into `<` `<`, etc.
    
    An alternative to rust-lang#70420.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    6ea49cd View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#72920 - oli-obk:const_transmute, r=RalfJung

    Stabilize `transmute` in constants and statics but not const fn
    
    cc rust-lang#53605 (leaving issue open so we can add `transmute` to `const fn` later)
    
    Previous attempt: rust-lang#64011
    
    r? @RalfJung
    
    cc @rust-lang/wg-const-eval
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    abc5933 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#73862 - oli-obk:const_array_to_slice, r=Ral…

    …fJung
    
    Stabilize casts and coercions to `&[T]` in const fn
    
    Part of rust-lang#64992
    
    There was never a reason to not stabilize this, we just accidentally prevented them when we implemented the `min_const_fn` feature that gave us `const fn` on stable. This PR stabilizes these casts (which are already stable in `const` outside `const fn`), while keeping all other unsizing casts (so `T` -> `dyn Trait`) unstable within const fn.
    These casts have no forward compatibility concerns with any future features for const eval and users were able to use them under the `const_fn` feature gate already since at least the miri merger, possibly longer.
    
    r? @rust-lang/lang
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    c1ef66e View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#74045 - tmiasko:config-debug, r=nikomatsakis

    Explain effects of debugging options from config.toml
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    a2e3e19 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#74076 - sunfishcode:wasi-fileext-newmethods…

    …, r=alexcrichton
    
    Add `read_exact_at` and `write_all_at` to WASI's `FileExt`
    
    This adds `read_exact_at` and `write_all_at` to WASI's `FileExt`,
    similar to the Unix versions of the same names.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    b424009 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#74099 - jonhoo:deque-range, r=dtolnay

    Add VecDeque::range* methods
    
    This patch adds `VecDeque::range` and `VecDeque::range_mut` to provide
    iterators over a sub-range of a `VecDeque`. This behavior can be
    emulated with `skip` and `take`, but directly providing a `Range` is
    more ergonomic. This also partially makes up for `VecDeque`'s lack of
    `SliceIndex` support.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    6a1d414 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#74100 - lzutao:strip-bootstrap, r=Mark-Simu…

    …lacrum
    
    Use str::strip* in bootstrap
    
    This is technically a breaking change, replacing the use of `trim_start_matches` with `strip_prefix`. However, because in `rustc -Vv` output there are no lines starting with multiple "release:", this should go unnoticed in practice.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    cd699b9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#74103 - ajpaverd:cfguard-msvc-only, r=nikom…

    …atsakis
    
    Only add CFGuard on `windows-msvc` targets
    
    As @ollie27 pointed out in rust-lang#73893, the `cfguard` module flag causes incorrect behavior on `windows-gnu` targets. This patch restricts rustc to only add this flag for `windows-msvc` targets (this may need to be changed if other linkers gain support for CFGuard).
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    e048504 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#74105 - npmccallum:naked, r=matthewjasper

    Suppress debuginfo on naked function arguments
    
    A function that has no prologue cannot be reasonably expected to support
    debuginfo. In fact, the existing code (before this patch) would generate
    invalid instructions that caused crashes. We can solve this easily by
    just not emitting the debuginfo in this case.
    
    Fixes rust-lang#42779
    cc rust-lang#32408
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    bed8cf6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#74109 - nbdd0121:issue-74082, r=petrochenkov

    Only allow `repr(i128/u128)` on enum
    
    Fixes rust-lang#74082
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    733d3ac View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#74122 - nnethercote:startup-cleanup, r=petr…

    …ochenkov
    
    Start-up clean-up
    
    r? @petrochenkov
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    c423243 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#74125 - ayazhafiz:i/74050, r=matthewjasper

    Correctly mark the ending span of a match arm
    
    Closes rust-lang#74050
    
    r? @matthewjasper
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    ffc3dbf View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#74127 - tamird:allowlist, r=oli-obk

    Avoid "whitelist"
    
    Other terms are more inclusive and precise.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    54d59f6 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#74129 - matklad:rust-analyzer-2020-07-07, r…

    …=Mark-Simulacrum
    
    ⬆️ rust-analyzer
    
    This updates rust-analyzer submodule to the latest release.
    
    I plan to do that every Monday after rust-analyzer release (about 16:00 CET).
    
    This is semi-automated by https://github.com/rust-analyzer/rust-analyzer/pull/5253/files#diff-c06f6a9cbd0ad2421bcc2ddc28805457R77-R100.
    
    Who would be the appropriate person to r? on Mondays?
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    8baace7 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#74135 - ehuss:update-books, r=ehuss

    Update books
    
    ## book
    
    3 commits in 4e7c00bece1544d409312ec93467beb62b5bd0cb..84a31397b34f9d405df44f2899ff17a4828dba18
    2020-06-19 09:39:12 -0400 to 2020-07-04 10:50:18 -0500
    - Update Windows install instructions (rust-lang/book#2389)
    - Update ch01-02-hello-world.md (rust-lang/book#2386)
    - bump mdbook version in github action (rust-lang/book#2380)
    
    ## reference
    
    2 commits in 04d5d5d7ba624b6f5016298451f3a63d557f3260..0ea7bc494f1289234d8800bb9185021e0ad946f0
    2020-06-16 15:08:05 -0700 to 2020-07-02 15:33:04 -0700
    - Fix mis-capitalization of type name. (rust-lang/reference#844)
    - Fix name of trait for array indexing. (rust-lang/reference#840)
    
    ## embedded-book
    
    1 commits in 616962ad0dd80f34d8b802da038d0aed9dd691bb..94d9ea8460bcbbbfef1877b47cb930260b5849a7
    2020-06-23 16:03:45 +0000 to 2020-07-05 14:17:40 +0000
    - Note on transformation of static variables by attribute exception  (rust-embedded/book#251)
    
    ## rust-by-example
    
    1 commits in 6f94ccb48da6fa4ed0031290f21411cf789f7d5e..229c6945a26a53a751ffa4f9cb418388c00029d3
    2020-06-20 17:51:30 -0300 to 2020-07-06 10:13:15 -0300
    - Modify comments (rust-lang/rust-by-example#1359)
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    daae473 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#74145 - michaelforney:rust-installer, r=Mar…

    …k-Simulacrum
    
    Update rust-installer to latest version
    
    This pulls in a fix for the install script on some tr(1) implementations,
    as well as an update to use `anyhow` instead of `failure` for error
    handling.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    21d13c2 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#74162 - lcnr:ToPredicate-no-ref, r=varkor

    take self by value in ToPredicate
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    fb5d9ad View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#74167 - jclulow:illumos-linker-eh-frame-hdr…

    …-fix, r=petrochenkov
    
    linker: illumos ld does not support --eh-frame-hdr
    
    As of rust-lang#73564, the --eh-frame-hdr flag is unconditionally
    passed to linkers on many platforms.  The illumos link editor does not
    currently support this flag.
    
    The linker machinery in the Rust toolchain currently seems to use the
    (potentially cross-compiled) target to choose linker flags, rather than
    looking at what might be running on the build system.  Disabling the
    flag for all illumos/Solaris targets seems like the best we can do for
    now without more serious surgery.
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    d6a36f4 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#74168 - JohnTitor:help-for-in-band-lifetime…

    …s, r=petrochenkov
    
    Add a help to use `in_band_lifetimes` in nightly
    
    Fixes rust-lang#73775
    Manishearth authored Jul 11, 2020
    Configuration menu
    Copy the full SHA
    29d543b View commit details
    Browse the repository at this point in the history