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 10 pull requests #43487

Merged
merged 33 commits into from
Jul 26, 2017
Merged

Rollup of 10 pull requests #43487

merged 33 commits into from
Jul 26, 2017

Commits on Jul 22, 2017

  1. Configuration menu
    Copy the full SHA
    e9af03a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a08ad0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddaf9b2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ef24bb View commit details
    Browse the repository at this point in the history
  5. Add Box::into_unique

    SimonSapin committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    cbd2b6b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a4edae9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    938552a View commit details
    Browse the repository at this point in the history
  8. Use checked NonZero constructor in obligation forest NodeIndex

    … to remove an `unsafe` block.
    SimonSapin committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    13d17ad View commit details
    Browse the repository at this point in the history
  9. Use checked NonZero constructor in MIR move path indices

    … to protect against UB in the unlikely case that `idx + 1` overflows.
    SimonSapin committed Jul 22, 2017
    Configuration menu
    Copy the full SHA
    06e130f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1ba8b15 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f732911 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ff7f220 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0d1864b View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2017

  1. Configuration menu
    Copy the full SHA
    8aa8f80 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95b0f22 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ea23e50 View commit details
    Browse the repository at this point in the history
  4. avoid printing 'static

    RalfJung committed Jul 24, 2017
    Configuration menu
    Copy the full SHA
    4e1249d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5388470 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2017

  1. Configuration menu
    Copy the full SHA
    04aa5c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ea65a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e36769 View commit details
    Browse the repository at this point in the history
  4. Constrain the layout of Blake2bCtx for proper SPARC compilation

    On SPARC, optimization fuel ends up emitting incorrect load and store
    instructions for the transmute() call in blake2b_compress().  If we
    force Blake2bCtx to be repr(C), the problem disappears.
    
    Fixes rust-lang#43346
    Danek Duvall committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    f0fda53 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2017

  1. Point at path segment on module not found

    Point at the correct path segment on a import statement where a module
    doesn't exist.
    
    New output:
    
    ```rust
    error[E0432]: unresolved import `std::bar`
     --> <anon>:1:10
      |
    1 | use std::bar::{foo1, foo2};
      |          ^^^ Could not find `bar` in `std`
    ```
    
    instead of:
    
    ```rust
    error[E0432]: unresolved import `std::bar::foo1`
     --> <anon>:1:16
      |
    1 | use std::bar::{foo1, foo2};
      |                ^^^^ Could not find `bar` in `std`
    
    error[E0432]: unresolved import `std::bar::foo2`
     --> <anon>:1:22
      |
    1 | use std::bar::{foo1, foo2};
      |                      ^^^^ Could not find `bar` in `std`
    ```
    estebank committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    552ff07 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#42959 - SimonSapin:nonzero-checked, r=sfackler

    Make the "main" constructors of NonZero/Shared/Unique return Option
    
    Per discussion in rust-lang#27730 (comment).
    
    This is a breaking change to unstable APIs.
    
    The old behavior is still available under the name `new_unchecked`. Note that only that one can be `const fn`, since `if` is currently not allowed in constant contexts.
    
    In the case of `NonZero` this requires adding a new `is_zero` method to the `Zeroable` trait. I mildly dislike this, but it’s not much worse than having a `Zeroable` trait in the first place. `Zeroable` and `NonZero` are both unstable, this can be reworked later.
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    b5b7266 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#43447 - estebank:import-span, r=nikomatsakis

    Point at path segment on module not found
    
    Point at the correct path segment on a import statement where a module
    doesn't exist.
    
    New output:
    
    ```rust
    error[E0432]: unresolved import `std::bar`
     --> <anon>:1:10
      |
    1 | use std::bar::{foo1, foo2};
      |          ^^^ Could not find `bar` in `std`
    ```
    
    instead of:
    
    ```rust
    error[E0432]: unresolved import `std::bar::foo1`
     --> <anon>:1:16
      |
    1 | use std::bar::{foo1, foo2};
      |                ^^^^ Could not find `bar` in `std`
    
    error[E0432]: unresolved import `std::bar::foo2`
     --> <anon>:1:22
      |
    1 | use std::bar::{foo1, foo2};
      |                      ^^^^ Could not find `bar` in `std`
    ```
    
    Fix rust-lang#43040.
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    b583392 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#43455 - QuietMisdreavus:extend-spec-docs, r…

    …=steveklabnik
    
    add a note to Vec's Extend<&T> impl about its slice specialization
    
    From the regular documentation view, it's not at all apparent that [this specialization](https://github.com/rust-lang/rust/blob/5669c9988f50788b5ab5dee2d4538519d4e5663d/src/liballoc/vec.rs#L1879-L1891) exists for `slice::Iter`. This adds a documentation blurb to the Extend impl itself to note that this optimization exists.
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    3751d20 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#43456 - joshlf:spawn-doc-grammar, r=alexcri…

    …chton
    
    std::thread::spawn: Fix grammar in documentation
    
    Closes rust-lang#43435.
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    25e5f0a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#43458 - RalfJung:verbose, r=nikomatsakis

    Fix printing regions with -Z verbose
    
    When dumping MIR with `-Z verbose`, it would print regions on types, but not in the code. It seems the Rvalue printing code tried to be smart and guessed when the `Display` for `Region` would not possibly print anything.
    
    This PR makes it no longer be smart, and just always use the `Display` like all the other code (e.g. printing types) does.
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    7fa104f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#43462 - dhduvall:solaris-libresolv, r=aturon

    DNS functions are in libresolv on Solaris, just like on MacOS
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    9d02019 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#43463 - nrc:catch-span, r=petrochenkov

    Fix the spans of catch blocks to include the `do`
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    f7d06b3 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#43465 - topecongiro:needs-test, r=Mark-Simu…

    …lacrum
    
    Add tests for issues with the E-needstest label
    
    Fixes rust-lang#19181.
    Fixes rust-lang#29516.
    Fixes rust-lang#29798.
    Fixes rust-lang#33504.
    Fixes rust-lang#34780.
    Fixes rust-lang#39211.
    Fixes rust-lang#39467.
    Fixes rust-lang#39720.
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    9f4450b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#43471 - ollie27:try_from_ints, r=nagisa

    Add missing impl and tests for int to int TryFrom impls
    
    These were missing from rust-lang#43248.
    
    r? @nagisa
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    ed09d6d View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#43480 - dhduvall:sparc-blake2b, r=eddyb

    Constrain the layout of Blake2bCtx for proper SPARC compilation
    
    On SPARC, optimization fuel ends up emitting incorrect load and store
    instructions for the transmute() call in blake2b_compress().  If we
    force Blake2bCtx to be repr(C), the problem disappears.
    
    Fixes rust-lang#43346
    Mark-Simulacrum committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    959ebd6 View commit details
    Browse the repository at this point in the history