Skip to content

Rollup of 10 pull requests - #60291

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

Rollup of 10 pull requests#60291
Centril wants to merge 26 commits into
rust-lang:masterfrom
Centril:rollup-uat6tsv

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Successful merges:

Failed merges:

r? @ghost

tmandryand others added 26 commits April 22, 2019 14:52
This was left over from when closure copy and clone were gated behind
feature flags.
Here, ExprKind::Use(P<Expr>) tweaks the drop order to act the
same way as '{ let _tmp = expr; _tmp }' does.
…ure, r=ollie27
Prevent failure in case no space left on device in rustdoc
Fixesrust-lang#59703.
r? @QuietMisdreavus
…nishearth
Fix index-page generation
Fixesrust-lang#60096.
The minifier was minifying crates name in `searchIndex` key position, which was a bit problematic for multiple reasons.
r? @rust-lang/rustdoc
Add Pin::{into_inner,into_inner_unchecked}
These functions are useful for unsafe code that needs to temporarily pull smart pointers out of the `Pin`, e.g. [the change that inspired them](Nemo157/futures-rs@b436178#diff-1a4e0ba4d1b539412ca576411ec6c7c2R258) is taking a `Pin<Box<dyn Future>>`, turning it into a `*mut dyn Future` via `Box::into_raw(unsafe { Pin::into_inner_unchecked(pin) })` then later dropping this via `drop(Pin::from(Box::from_raw(ptr)))`. This can be accomplished today via `{ let ptr = unsafe { Pin::get_unchecked_mut(pin.as_mut()) } as *mut dyn Future; mem::forget(pin); ptr }`, but this is far more complicated and loses out on the symmetry of using `Box::into_raw` and `Box::from_raw`.
I'll extend the documentation on what guarantees `into_inner_unchecked` needs to uphold once I get some feedback on whether this API is wanted or not.
r? @withoutboats
…ps, r=oli-obk
Introduce hir::ExprKind::Use and employ in for loop desugaring.
In the `for $pat in $expr $block` desugaring we end with a `{ let _result = $match_expr; _result }` construct which makes `for` loops into a terminating scope and affects drop order. The construct was introduced in year 2015 by @pnkfelix in rust-lang#21984.
This PR replaces the construct with `hir::ExprKind::Use(P<hir::Expr>)` which is equivalent semantically but should hopefully be less costly in terms of compile time performance (to be determined).
This is extracted out of rust-lang@91b0abd from rust-lang#59288 for easier review and so that the perf implications wrt. `for`-loops can be measured.
r? @oli-obk
Implement Debug for Place using Place::iterate
r? @oli-obk
…, r=Centril
Derive Default instead of new in applicable lint
Closesrust-lang#60181
As far as I can see, at least within the `src/librustc_lint` directory this is the only place this is applicable.
…ss, r=alexcrichton
PGO: Add a run-make test that makes sure that PGO profiling data is used by the compiler during optimizations.
From the tests comment section:
```
# This test makes sure that PGO profiling data leads to cold functions being
# marked as `cold` and hot functions with `inlinehint`.
# The test program contains an `if` were actual execution only ever takes the
# `else` branch. Accordingly, we expect the function that is never called to
# be marked as cold.
```
r? @alexcrichton
…richton
Add feature-gate for f16c target feature
r? @alexcrichton
Do not ICE when checking types against foreign fn
Fixrust-lang#60275.
@Centril

Copy link
Copy Markdown
ContributorAuthor

@bors r+ p=10

@bors

bors commented Apr 25, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 31a710d 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 Apr 25, 2019
@bors

bors commented Apr 25, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 31a710d with merge f54d87aea1a0abecd3b240c369d0798903ab706d...

@bors

bors commented Apr 26, 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 Apr 26, 2019
@CentrilCentril closed this Apr 26, 2019
@Centril
Centril deleted the rollup-uat6tsv branch April 26, 2019 01:47
@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.

9 participants

@Centril@bors@tmandry@GuillaumeGomez@Nemo157@spastorino@michaelwoerister@gnzlbg@estebank