Skip to content

Rollup of 14 pull requests - #45261

Merged
bors merged 44 commits into
rust-lang:masterfrom
kennytm:rollup
Oct 13, 2017
Merged

Rollup of 14 pull requests#45261
bors merged 44 commits into
rust-lang:masterfrom
kennytm:rollup

Conversation

We describe the representation of C strings, and the purpose of
OsString/OsStr.
Part of rust-lang#29354
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
`let x = { ..default(), } // This comma is an error`
output message is shown in another 'help:' block
line with +100 columns formatted
test adjusted
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.
Closesrust-lang#45131
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.
When attempting to mutate an immutable outer variable from a closure,
point at the outer variable and suggest making it mutable.
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.
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.
Closesrust-lang#45165
…eklabnik
Improved docs for CStr, CString, OsStr, OsString
This expands the documentation for those structs and their corresponding traits, per rust-lang#29354
Improve newtype_index macro to handle description and constants consistently
Better compile error output when using arguments instead of types
Following @estebank sugestion on issue rust-lang#18945 (comment)
…r=petrochenkov
Add suggestions for misspelled labels
Another part of rust-lang#30197
…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.
…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.
Closesrust-lang#45165
…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.
Closesrust-lang#45131
…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
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.
Fixrust-lang#41790.
…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.
…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
…, 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.
Closesrust-lang#41879.
cc @QuietMisdreavus
@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in HTML/CSS.

cc @GuillaumeGomez

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@kennytm

Copy link
Copy Markdown
MemberAuthor

@bors r+ p=14

@bors

bors commented Oct 13, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 8ea6790 has been approved by kennytm

@kennytmkennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 13, 2017
@bors

bors commented Oct 13, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 8ea6790 with merge 6cb49d2...

bors added a commit that referenced this pull request Oct 13, 2017
Rollup of 14 pull requests
- Successful merges: #44855, #45110, #45122, #45133, #45173, #45178, #45189, #45203, #45209, #45221, #45236, #45240, #45245, #45253
- Failed merges:
@bors

bors commented Oct 13, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: kennytm
Pushing 6cb49d2 to master...

@bors
bors merged commit 8ea6790 into rust-lang:masterOct 13, 2017
@borsbors mentioned this pull request Oct 13, 2017
@kennytm
kennytm deleted the rollup branch October 13, 2017 20:30
@CentrilCentril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollupS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

12 participants

@kennytm@rust-highfive@bors@alexcrichton@Centril@federicomenaquintero@Nashenas88@GuillaumeGomez@Badel2@jean-lourenco@estebank@Gankra