Skip to content

Rollup of 5 pull requests - #57955

Closed
Centril wants to merge 10 commits into
rust-lang:masterfrom
Centril:rollup
Closed

Rollup of 5 pull requests#57955
Centril wants to merge 10 commits into
rust-lang:masterfrom
Centril:rollup

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Successful merges:

Failed merges:

r? @ghost

Jethro Beekmanand others added 10 commits January 22, 2019 18:55
Currently, the target of a use statement will be updated with
the visibility of the use statement itself (if the use statement was
visible).
This commit ensures that if the path to the target item is via another
use statement then that intermediate use statement will also have the
visibility updated like the target. This silences incorrect
`unreachable_pub` lints with inactionable suggestions.
…alexcrichton
Print a slightly clearer message when failing to launch a thread
As discussed in rust-lang#46345, the `io::Error` you get when a thread fails to launch is of type `io::ErrorKind::WouldBlock`. This is super uninformative when an arbitrary `thread::spawn` fails somewhere in your code:
```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 11,
kind: WouldBlock, message: "operation would block" }', src/libcore/result.rs:997:5
```
This PR improves the situation a little bit by using `expect` instead of `unwrap`. I don't consider this a complete fix for rust-lang#46345 though.
…ietMisdreavus
Fix invalid background color
As discussed in rust-lang#57814.
r? @QuietMisdreavus
add typo suggestion to unknown attribute error
Provides a suggestion using Levenshtein distance to suggest built-in attributes and attribute macros.
Fixesrust-lang#49270.
Pretty print `$crate` as `crate` or `crate_name` in more cases
So, people do parse output of `--pretty=expanded` (sigh), so covering only the legacy proc-macro case (like it was done in rust-lang#57155) is not enough.
This PRs resolves all `$crate`s produced by macros, so they are all printed in the parseable form `$crate::foo` -> `crate::foo` or `crate_name::foo`.
Fixesrust-lang#38016 (comment)Fixesrust-lang#57155 (comment)
Update visibility of intermediate use items.
Fixesrust-lang#57410 and fixesrust-lang#53925 and fixesrust-lang#47816.
Currently, the target of a use statement will be updated with
the visibility of the use statement itself (if the use statement was
visible).
This PR ensures that if the path to the target item is via another
use statement then that intermediate use statement will also have the
visibility updated like the target. This silences incorrect
`unreachable_pub` lints with inactionable suggestions.
@Centril

Copy link
Copy Markdown
ContributorAuthor

@bors r+ p=5

@bors

bors commented Jan 28, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit ae34f21 has been approved by Centril

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 28, 2019
@bors

bors commented Jan 28, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit ae34f21 with merge 8fad8648496acb2dba01d9ee7a21b1eee67005ba...

@bors

bors commented Jan 28, 2019

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 28, 2019
@CentrilCentril closed this Jan 28, 2019
@Centril
Centril deleted the rollup branch January 28, 2019 21:18
@CentrilCentril added the rollup A PR which is a rollup label Oct 24, 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-reviewStatus: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Centril@bors@GuillaumeGomez@petrochenkov@euclio@davidtwco