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 #56186

Merged
merged 36 commits into from
Nov 23, 2018
Merged

Rollup of 14 pull requests #56186

merged 36 commits into from
Nov 23, 2018

Commits on Nov 10, 2018

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

Commits on Nov 16, 2018

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

Commits on Nov 17, 2018

  1. When popping in CTFE, perform validation before jumping to next state…

    …ment to have a better span for the error
    RalfJung committed Nov 17, 2018
    Configuration menu
    Copy the full SHA
    1d808d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bcf82ef View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2018

  1. Disable some pretty-printers when gdb is rust-enabled

    A rust-enabled gdb already knows how to display string slices,
    structs, tuples, and enums (and after rust-lang#54004, the pretty-printers
    can't handle enums at all).  This patch disables these pretty-printers
    when gdb is rust-enabled.
    
    The "gdb-pretty-struct-and-enums-pre-gdb-7-7.rs" test is renamed,
    because it does not seem to depend on any behavior of that version of
    gdb, and because gdb 7.7 is 4 years old now.
    tromey committed Nov 19, 2018
    Configuration menu
    Copy the full SHA
    30178b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2018

  1. Fix json output in the self-profiler

    Fix missing ',' array element separators and convert NaN's to 0.
    wesleywiser committed Nov 20, 2018
    Configuration menu
    Copy the full SHA
    c7dc868 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86d4135 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c21f66 View commit details
    Browse the repository at this point in the history
  4. Add std::iter::unfold

    SimonSapin committed Nov 20, 2018
    Configuration menu
    Copy the full SHA
    48aae09 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    544ad37 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2222818 View commit details
    Browse the repository at this point in the history
  7. Add std::iter::successors

    SimonSapin committed Nov 20, 2018
    Configuration menu
    Copy the full SHA
    641c490 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8a5bbd9 View commit details
    Browse the repository at this point in the history
  9. Capitalize

    SimonSapin committed Nov 20, 2018
    Configuration menu
    Copy the full SHA
    a4279a0 View commit details
    Browse the repository at this point in the history
  10. ci: Download clang/lldb from tarballs

    Hopefully will speed up CI slightly!
    alexcrichton committed Nov 20, 2018
    Configuration menu
    Copy the full SHA
    25d0418 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2018

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

Commits on Nov 22, 2018

  1. Pass additional linker flags when targeting Fuchsia

    This is a follow up to 8aa9267 which changed the driver to use lld
    directly rather than invoking it through Clang. This change ensures
    we pass all the necessary flags to lld.
    petrhosek committed Nov 22, 2018
    Configuration menu
    Copy the full SHA
    f41423c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    37f719e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    01fd001 View commit details
    Browse the repository at this point in the history
  4. Fix the tracking issue for hash_raw_entry

    It used to point to the implementation PR.
    sfackler committed Nov 22, 2018
    Configuration menu
    Copy the full SHA
    d0f99dd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6d8a33 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    60e4158 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2018

  1. Rollup merge of rust-lang#55767 - tromey:disable-some-pretty-printers…

    …, r=alexcrichton
    
    Disable some pretty-printers when gdb is rust-enabled
    
    A rust-enabled gdb already knows how to display string slices,
    structs, tuples, and enums (and after rust-lang#54004, the pretty-printers
    can't handle enums at all).  This patch disables these pretty-printers
    when gdb is rust-enabled.
    
    The "gdb-pretty-struct-and-enums-pre-gdb-7-7.rs" test is renamed,
    because it does not seem to depend on any behavior of that version of
    gdb, and because gdb 7.7 is 4 years old now.
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    91bceb8 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#55838 - dralley:fix-cfg-step, r=Kimundi

    Fix #[cfg] for step impl on ranges
    
    ```#[cfg(target_pointer_witdth = ...)]``` is misspelled
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    738afd4 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#55869 - SimonSapin:iterate, r=alexcrichton

    Add std::iter::unfold
    
    This adds an **unstable** ~`std::iter::iterate`~ `std::iter::unfold` function and ~`std::iter::Iterate`~ `std::iter::Unfold` type that trivially wrap a ~`FnMut() -> Option<T>`~ `FnMut(&mut State) -> Option<T>` closure to create an iterator. ~Iterator state can be kept in the closure’s environment or captures.~
    
    This is intended to help reduce amount of boilerplate needed when defining an iterator that is only created in one place. Compare the existing example of the `std::iter` module: (explanatory comments elided)
    
    ```rust
    struct Counter {
        count: usize,
    }
    
    impl Counter {
        fn new() -> Counter {
            Counter { count: 0 }
        }
    }
    
    impl Iterator for Counter {
        type Item = usize;
    
        fn next(&mut self) -> Option<usize> {
            self.count += 1;
            if self.count < 6 {
                Some(self.count)
            } else {
                None
            }
        }
    }
    ```
    
    … with the same algorithm rewritten to use this new API:
    
    ```rust
    fn counter() -> impl Iterator<Item=usize> {
        std::iter::unfold(0, |count| {
            *count += 1;
            if *count < 6 {
                Some(*count)
            } else {
                None
            }
        })
    }
    ```
    
    -----
    
    This also add unstable `std::iter::successors` which takes an (optional) initial item and a closure that takes an item and computes the next one (its successor).
    
    ```rust
    let powers_of_10 = successors(Some(1_u16), |n| n.checked_mul(10));
    assert_eq!(powers_of_10.collect::<Vec<_>>(), &[1, 10, 100, 1_000, 10_000]);
    ```
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    ef2cbec View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#55945 - oli-obk:static_assert_arg_type, r=m…

    …ichaelwoerister
    
    Ensure that the argument to `static_assert` is a `bool`
    
    cc @eddyb
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    12f6a42 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#56022 - RalfJung:validate-before-jump, r=ol…

    …i-obk
    
    When popping in CTFE, perform validation before jumping to next statement to have a better span for the error
    
    Currently, when validating the return value fails, the span points at the next statement after the call. That does not make much sense.
    
    r? @oli-obk
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    419a101 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#56048 - bjorn3:cg_ssa_sysroot, r=eddyb

    Add rustc_codegen_ssa to sysroot
    
    Outside of rustc you are currently unable to use it.
    
    r? @nikomatsakis (because you r+'ed rust-lang#55627)
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    1b707f7 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#56091 - wesleywiser:fix_self_profiler_json,…

    … r=petrochenkov
    
    Fix json output in the self-profiler
    
    Fix missing ',' array element separators and convert NaN's to 0.
    
    cc @Mark-Simulacrum
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    fb33fa4 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#56097 - ogoffart:union-abi, r=eddyb

    Fix invalid bitcast taking bool out of a union represented as a scalar
    
    As reported in rust-lang#54668 (comment)
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    e0025df View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#56116 - alexcrichton:tarball-calng, r=kennytm

    ci: Download clang/lldb from tarballs
    
    Hopefully will speed up CI slightly!
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    97e6007 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#56120 - SergioBenitez:subspan, r=alexcrichton

    Add unstable Literal::subspan().
    
    Take 2 of rust-lang#55971. Still ~wrong, but now with a comment! (and less of a surface) Unblocks rust-lang#49219.
    
    r? @alexcrichton
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    bf72971 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#56154 - petrhosek:fuchsia-linker-args, r=al…

    …excrichton
    
    Pass additional linker flags when targeting Fuchsia
    
    This is a follow up to 8aa9267 which changed the driver to use lld
    directly rather than invoking it through Clang. This change ensures
    we pass all the necessary flags to lld.
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    c9870a4 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#56162 - adrianheine:patch-1, r=withoutboats

    std::str Adapt documentation to reality
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    69d4901 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#56163 - pietroalbini:1.30.1-relnotes-master…

    …, r=pietroalbini
    
    [master] Backport 1.30.1 release notes
    
    Fixes rust-lang#56135
    
    r? @ghost
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    a56b0ab View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#56168 - sfackler:raw-entry-tracking, r=kennytm

    Fix the tracking issue for hash_raw_entry
    
    It used to point to the implementation PR.
    kennytm authored Nov 23, 2018
    Configuration menu
    Copy the full SHA
    36189a2 View commit details
    Browse the repository at this point in the history