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

Merged
merged 44 commits into from
Oct 13, 2017
Merged

Rollup of 14 pull requests #45261

merged 44 commits into from
Oct 13, 2017

Commits on Sep 25, 2017

  1. Expand the introduction to the ffi module.

    We describe the representation of C strings, and the purpose of
    OsString/OsStr.
    
    Part of rust-lang#29354
    federicomenaquintero committed Sep 25, 2017
    Configuration menu
    Copy the full SHA
    5451b72 View commit details
    Browse the repository at this point in the history
  2. Overhaul the ffi::CString docs

    Explain the struct's reason for being, and its most common usage
    patterns.  Add a bunch of links.
    
    Clarify the method docs a bit.
    
    Part of rust-lang#29354
    federicomenaquintero committed Sep 25, 2017
    Configuration menu
    Copy the full SHA
    8da694a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2cb2a06 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3c5e18f View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2017

  1. Configuration menu
    Copy the full SHA
    155b4b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    91f6445 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4143422 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2017

  1. Configuration menu
    Copy the full SHA
    9854e83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50505aa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d989cd0 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2017

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

Commits on Oct 9, 2017

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

Commits on Oct 10, 2017

  1. Add suggestions for misspelled labels

    Another part of rust-lang#30197
    Thomas Jespersen committed Oct 10, 2017
    Configuration menu
    Copy the full SHA
    843dc60 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2017

  1. Add error for comma after base struct field

    `let x = { ..default(), } // This comma is an error`
    Badel2 committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    72cfd20 View commit details
    Browse the repository at this point in the history
  2. output compiler message updated

    output message is shown in another 'help:' block
    
    line with +100 columns formatted
    
    test adjusted
    jean-lourenco committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    db91b00 View commit details
    Browse the repository at this point in the history
  3. rustc: Update LLVM with a ThinLTO fix

    This commit updates LLVM with a patch that's landed upstream to fix an assertion
    that was tripping when ThinLTO was activated. Unfortunately I wasn't able to get
    a reduced test case, but I've tested manually on the affected crates and the
    assertion is indeed fixed.
    
    Closes rust-lang#45131
    alexcrichton committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    a2aba79 View commit details
    Browse the repository at this point in the history
  4. rustbuild: Make openssl download more reliable.

    1. Add -f flag to curl, so when the server returns 403 or 500 it will fail
       immediately.
    2. Moved the checksum part into the retry loop, assuming checksum failure
       is due to broken download that can be fixed by downloading again.
    kennytm committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    90d58a3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d5bdfbc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a9a4ce6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0264510 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c8e232d View commit details
    Browse the repository at this point in the history
  9. Point at immutable outer variable

    When attempting to mutate an immutable outer variable from a closure,
    point at the outer variable and suggest making it mutable.
    estebank committed Oct 11, 2017
    Configuration menu
    Copy the full SHA
    fab6a10 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5fb8e3d View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2017

  1. Move const qualifier from brackets to constant values and remove comm…

    …a from after identifier
    Nashenas88 committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    9423bee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97fe353 View commit details
    Browse the repository at this point in the history
  3. rustbuild: Prevent spurious rebuilds of the RLS

    The RLS currently is rebuilt every time you test it because the `OPENSSL_DIR`
    env var is changing, which is in turn caused by an accidental omission of
    `prepare_tool_cargo` when testing the RLS.
    alexcrichton committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    e6da40c View commit details
    Browse the repository at this point in the history
  4. rustc: Handle #[linkage] anywhere in a crate

    This commit updates the reachability pass of the compiler to seed the local
    worklist with `#[linkage]`-like items anywhere in a crate, not just those
    reachable from public items.
    
    Closes rust-lang#45165
    alexcrichton committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    6cae080 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9da9c3b View commit details
    Browse the repository at this point in the history
  6. Increase padding between consecutive impls

    Stjepan Glavina committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    16ec7b9 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2017

  1. Configuration menu
    Copy the full SHA
    11775ab View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#44855 - federicomenaquintero:master, r=stev…

    …eklabnik
    
    Improved docs for CStr, CString, OsStr, OsString
    
    This expands the documentation for those structs and their corresponding traits, per rust-lang#29354
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    6c43bd3 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#45110 - Nashenas88:master, r=arielb1

    Improve newtype_index macro to handle description and constants consistently
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    82f2c28 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#45122 - jean-lourenco:master, r=nikomatsakis

    Better compile error output when using arguments instead of types
    
    Following @estebank sugestion on issue rust-lang#18945 (comment)
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    9eab4ec View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#45133 - GuillaumeGomez:usize-index-msg, r=d…

    …tolnay
    
    usize index message for vec
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    b290568 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#45173 - laumann:suggest-misspelled-labels, …

    …r=petrochenkov
    
    Add suggestions for misspelled labels
    
    Another part of rust-lang#30197
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    46d86d3 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#45178 - Badel2:comma-after-struct, r=petroc…

    …henkov
    
    Better error message for comma after base struct
    
    rust-lang#41834
    
    This adds a better error for commas after the base struct:
    ```
    let foo = Foo {
        one: 111,
        ..Foo::default(), // This comma is a syntax error
    };
    ```
    
    The current error is a generic `expected one of ...` which isn't beginner-friendly. My error looks like this:
    
    ```
    error: cannot use a comma after the base struct
      --> tmp/example.rs:26:9
       |
    26 |         ..Foo::default(),
       |         ^^^^^^^^^^^^^^^^- help: remove this comma
       |
       = note: the base struct expansion must always be the last field
    ```
    
    I even added a note for people who don't know why this isn't allowed.
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    e6a6d98 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#45189 - alexcrichton:thinlto-allocators, r=…

    …michaelwoerister
    
    rustc: Handle `#[no_mangle]` anywhere in a crate
    
    This commit updates the reachability pass of the compiler to seed the local
    worklist with `#[no_mangle]`-like items anywhere in a crate, not just those
    reachable from public items.
    
    Closes rust-lang#45165
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    a481d7c View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#45203 - alexcrichton:update-llvm, r=michael…

    …woerister
    
    rustc: Update LLVM with a ThinLTO fix
    
    This commit updates LLVM with a patch that's landed upstream to fix an assertion
    that was tripping when ThinLTO was activated. Unfortunately I wasn't able to get
    a reduced test case, but I've tested manually on the affected crates and the
    assertion is indeed fixed.
    
    Closes rust-lang#45131
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    64cc5ec View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#45209 - kennytm:treat-checksum-error-as-dow…

    …nload-error, r=Mark-Simulacrum
    
    rustbuild: Make openssl download more reliable.
    
    1. Add `-f` flag to curl, so when the server returns 403 or 500 it will fail immediately.
    2. Moved the checksum part into the retry loop, assuming checksum failure is due to broken download that can be fixed by downloading again.
    
    This PR is created responding to two recent spurious failures in rust-lang#45075 (comment) and rust-lang#45030 (comment).
    
    r? @Mark-Simulacrum , cc @aidanhs
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    9b128e4 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#45221 - estebank:issue-41790, r=nikomatsakis

    Point at immutable outer variable
    
    When attempting to mutate an immutable outer variable from a closure,
    point at the outer variable and suggest making it mutable.
    
    Fix rust-lang#41790.
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    2a6a4e7 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#45236 - alexcrichton:build-less, r=Mark-Sim…

    …ulacrum
    
    rustbuild: Prevent spurious rebuilds of the RLS
    
    The RLS currently is rebuilt every time you test it because the `OPENSSL_DIR`
    env var is changing, which is in turn caused by an accidental omission of
    `prepare_tool_cargo` when testing the RLS.
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    4ed348e View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#45240 - GuillaumeGomez:mobile-sidebar-impro…

    …vements, r=QuietMisdreavus
    
    Mobile sidebar improvements
    
    Very small changes, I just made the width of the sidebar of 100% and centered vertically both items a bit more:
    
    <img width="1440" alt="screen shot 2017-10-12 at 20 00 47" src="https://user-images.githubusercontent.com/3050060/31511496-302bb474-af88-11e7-8dab-2c88799eafcc.png">
    
    r? @rust-lang/docs
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    f43c54e View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#45245 - stjepang:more-padding-between-impls…

    …, r=QuietMisdreavus
    
    Rustdoc: Increase padding between consecutive impls
    
    Currently, [implementors](https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html#implementors) list is a bit too condensed. More spacing makes the list easier to read.
    Check out [this comment](rust-lang#41879 (comment)) to see what's the effect of this change.
    
    Closes rust-lang#41879.
    
    cc @QuietMisdreavus
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    fb98e3e View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#45253 - Gankro:drop_docs, r=kennytm

    Clarify how needs_drop is conservative
    kennytm committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    8ea6790 View commit details
    Browse the repository at this point in the history