Permalink
Commits on Dec 10, 2018
  1. Auto merge of #56666 - Xanewok:rustfmt, r=kennytm

    bors committed Dec 10, 2018
    Update Rustfmt and RLS
    
    Supersedes #56652, hopefully fixes toolstate.
    
    r? @SimonSapin
  2. Auto merge of #56157 - RalfJung:park, r=nagisa

    bors committed Dec 10, 2018
    expand thread::park explanation
    
    Cc @carllerche @parched @stjepang
  3. Auto merge of #56624 - RalfJung:miri, r=oli-obk

    bors committed Dec 10, 2018
    update miri
    
    r? @oli-obk
  4. Bump failure to 0.1.3

    Xanewok committed Dec 10, 2018
    We use failure_derive 0.1.3, try to work around
    ```
    error[E0433]: failed to resolve: could not find `AsFail` in `failure`
    ```
  5. Update in-tree rustfmt to 1.0.1 to dedup versions

    Xanewok committed Dec 10, 2018
  6. Update RLS

    Xanewok committed Dec 10, 2018
  7. Update rustfmt

    SimonSapin authored and Xanewok committed Dec 9, 2018
  8. Auto merge of #56369 - nnethercote:rm-Delimited, r=petrochenkov

    bors committed Dec 10, 2018
    Remove `tokenstream::Delimited`.
    
    Because it's an extra type layer that doesn't really help; in a couple
    of places it actively gets in the way, and overall removing it makes the
    code nicer. It does, however, move `tokenstream::TokenTree` further away
    from the `TokenTree` in `quote.rs`.
    
    More importantly, this change reduces the size of `TokenStream` from 48
    bytes to 40 bytes on x86-64, which is enough to slightly reduce
    instruction counts on numerous benchmarks, the best by 1.5%.
    
    Note that `open_tt` and `close_tt` have gone from being methods on
    `Delimited` to associated methods of `TokenTree`.
  9. Remove `tokenstream::Delimited`.

    nnethercote committed Nov 29, 2018
    Because it's an extra type layer that doesn't really help; in a couple
    of places it actively gets in the way, and overall removing it makes the
    code nicer. It does, however, move `tokenstream::TokenTree` further away
    from the `TokenTree` in `quote.rs`.
    
    More importantly, this change reduces the size of `TokenStream` from 48
    bytes to 40 bytes on x86-64, which is enough to slightly reduce
    instruction counts on numerous benchmarks, the best by 1.5%.
    
    Note that `open_tt` and `close_tt` have gone from being methods on
    `Delimited` to associated methods of `TokenTree`.
  10. Auto merge of #56269 - nnethercote:_match-Matrix-SmallVec, r=simulacrum

    bors committed Dec 10, 2018
    Use a `SmallVec` within `_match::Matrix`.
    
    This avoids allocations.
  11. Use a `SmallVec` within `_match::Matrix`.

    nnethercote committed Nov 28, 2018
    This commit also fixes up lifetimes a bit:
    
    - Renames `'a` as `'p` when used with `Matrix` and `Pattern`, for
      consistency.
    
    - Removes some unnecessary `'p` lifetimes on some function arguments.
    
    - Adds some missing lifetime parameters.
Commits on Dec 9, 2018
  1. Auto merge of #56463 - ljedrz:slice_concat_join, r=nikic

    bors committed Dec 9, 2018
    slice: tweak concat & join
    
    - use `sum` instead of `fold` (readability)
    - adjust the capacity for `join` - the number of separators is `n - 1`, not `n`; proof:
    ```
    fn main() {
        let a = [[1, 2], [4, 5]];
        let v = a.join(&3);
    
        assert_ne!(v.len(), v.capacity()); // len is 5, capacity is 6
    }
    ```
  2. Auto merge of #56444 - petrochenkov:uifull, r=davidtwco

    bors committed Dec 9, 2018
    Move compile-fail-fulldeps tests to UI
    
    cc #53353
    
    r? @davidtwco
  3. Fix rebase + Add missing `// force-host`

    petrochenkov committed Dec 7, 2018
  4. Auto merge of #56644 - jens1o:patch-1, r=pietroalbini

    bors committed Dec 9, 2018
    Fix security link in CONTRIBUTING to its new place
    
    avoiding an 404
  5. Fix security link in CONTRIBUTING to its new place

    jens1o committed Dec 9, 2018
    avoiding an 404
  6. Auto merge of #56631 - matthiaskrgr:clippy, r=nikic

    bors committed Dec 9, 2018
    submodules: update clippy from 1df5766c to a3c77f6a
    
    fixes clippy toolstate
    
    Changes:
    ````
    s/rustfmt-preview/rustfmt/
    Swap if branches
    Fix c_void false positive caused by libc refactoring
    rustup #56502 ( .hir -> .hir() )
    typo: emum → enum
    Fix format.
    Add sysroot gettinh code to dogfood tests.
    Add sysroot getting code to tests.
    Don't try to determine sysroot. rustc_driver will use default value.
    Fix suggestion for multiple derefs
    Fix `clone_on_copy` not detecting derefs sometimes
    ````
    r? @oli-obk
  7. Auto merge of #56630 - sinkuu:core_iter, r=kennytm

    bors committed Dec 9, 2018
    Resolve FIXME in libcore/iter/mod.rs
    
    and makes a few improvements.
Commits on Dec 8, 2018
  1. Auto merge of #56615 - integer32llc:update-book, r=GuillaumeGomez

    bors committed Dec 8, 2018
    Update the book to fix some edition-related bugs
    
    I'd love to have this included in a point release if one happens, but the changes aren't worth doing a point release on their own IMO. I'd definitely like to see this backported to beta.
    
    The most urgent changes included here are:
    
    - Chapter 19.6, on macros (including the macro changes that just stabilized), [is cut off](rust-lang/book#1668) because of an ill-placed newline in a comment that [pulldown-cmark interprets incorrectly](raphlinus/pulldown-cmark#124).
    - [The `Cargo.toml` shown in the Guessing Game example in Chapter 2 (and one in Chapter 14) doesn't have `edition="2018"`](rust-lang/book#1671), which can be confusing depending on whether the readers have it in theirs or not, think they should remove it if they have it, and the rest of the chapter assumes it's there and the code doesn't compile if you don't have it.
    - The redirects implemented as part of only shipping the 2018 edition of the book sometimes lead to [having to click through 2 redirect pages](rust-lang/book#1667) when it could be just one.
    
    There are other small corrections included that were made since the last time the book was updated, but those aren't urgent.
    
    cc @steveklabnik
  2. Auto merge of #56616 - estebank:issue-56539, r=davidtwco

    bors committed Dec 8, 2018
    Encode `TraitAlias` as if they were `Trait`
    
    Fix #56539.
  3. Auto merge of #56632 - Eijebong:synup, r=Mark-Simulacrum

    bors committed Dec 8, 2018
    Reduce the number of syn versions compiled from 4 to 2
    
    The last remaining one comes from mdbook. Unfortunately updating it
    breaks everything
  4. Don't call size_hint of underlying iterator needlessly

    sinkuu committed Dec 8, 2018
  5. Resolve FIXME and cleanup

    sinkuu committed Dec 8, 2018
  6. Override Cycle::try_fold

    sinkuu committed Dec 8, 2018
     name                            old ns/iter  new ns/iter  diff ns/iter   diff %  speedup
     iter::bench_cycle_take_ref_sum  927,152      927,194                42    0.00%   x 1.00
     iter::bench_cycle_take_sum      938,129      603,492          -334,637  -35.67%   x 1.55
  7. Reduce the numbers of syn versions compiled from 4 to 2

    Eijebong committed Dec 8, 2018
    The last remaining one comes from mdbook. Unfortunately updating it
    breaks everything
  8. submodules: update clippy from 1df5766c to a3c77f6a

    matthiaskrgr committed Dec 8, 2018
    Changes:
    ````
    s/rustfmt-preview/rustfmt/
    Swap if branches
    Fix c_void false positive caused by libc refactoring
    rustup #56502 ( .hir -> .hir() )
    typo: emum → enum
    Fix format.
    Add sysroot gettinh code to dogfood tests.
    Add sysroot getting code to tests.
    Don't try to determine sysroot. rustc_driver will use default value.
    Fix suggestion for multiple derefs
    Fix `clone_on_copy` not detecting derefs sometimes
    ````
  9. update miri

    RalfJung committed Dec 8, 2018
  10. Auto merge of #56623 - Centril:rollup, r=Centril

    bors committed Dec 8, 2018
    Rollup of 6 pull requests
    
    Successful merges:
    
     - #56248 (Suggest an appropriate token when encountering `pub Ident<'a>`)
     - #56597 (Improve the usage message for `-Z dump-mir`.)
     - #56599 (codegen: Fix va_list - aarch64 iOS/Windows)
     - #56602 (Fix the just-introduced ptr::hash docs)
     - #56620 (resolve: Reduce some clutter in import ambiguity errors)
     - #56621 (Add missing comma in Generators)
    
    Failed merges:
    
    r? @ghost
  11. Rollup merge of #56621 - Morganamilo:fix-generators-comma, r=Centril

    Centril committed Dec 8, 2018
    Add missing comma in Generators
  12. Rollup merge of #56620 - petrochenkov:noclutter, r=estebank

    Centril committed Dec 8, 2018
    resolve: Reduce some clutter in import ambiguity errors
    
    Noticed in https://www.reddit.com/r/rust/comments/a3pyrw/announcing_rust_131_and_rust_2018/eb8alhi/.
    The first error is distracting, but unnecessary, it's a *consequence* of the ambiguity error and appears because one of the ambiguous `actix` modules (unsurprisingly) doesn't have the expected name in it.