Skip to content

Rollup of 7 pull requests - #70722

Merged
bors merged 14 commits into
rust-lang:masterfrom
Centril:rollup-ar4gn1x
Apr 3, 2020
Merged

Rollup of 7 pull requests#70722
bors merged 14 commits into
rust-lang:masterfrom
Centril:rollup-ar4gn1x

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Successful merges:

Failed merges:

r? @ghost

Mark-Simulacrumand others added 14 commits March 29, 2020 10:27
This renames and stabilizes unsafe floating point to integer casts, which are
intended to be the substitute for the currently unsound `as` behavior, once that
changes to safe-but-slower saturating casts.
Allow the `SimplifyLocals` pass to remove reads of discriminants if the
read is never used.
…ts, r=SimonSapin
Stabilize float::to_int_unchecked
This renames and stabilizes unsafe floating point to integer casts, which are intended to be the substitute for the currently unsound `as` behavior, once that changes to safe-but-slower saturating casts. As such, I believe this also likely unblocks rust-lang#10184 (our oldest I-unsound issue!), as once this rolls out to stable it would be far easier IMO to change the behavior of `as` to be safe by default.
This does not stabilize the trait or the associated method, as they are deemed internal implementation details (and consumers should not, generally, want to expose them, as in practice all callers likely know statically/without generics what the return type is).
Closesrust-lang#67058
…ant_reads, r=oli-obk
Remove unused discriminant reads from MIR bodies
Allow the `SimplifyLocals` pass to remove reads of discriminants if the
read is never used.
Fixesrust-lang#70531
r? @oli-obk
Use Self over specific type in return position
…n-DPC
Expand on platform details of `include_xxx` macros
This is a small detail that is not explicitly mentioned, but it left me scratching my head for a while until I looked into its implementation details. Maybe worth mentioning.
… r=sfackler
Fix typo in u8::to_ascii_uppercase and u8::to_ascii_lowercase
Corrects misspelling of fifth.
…ons, r=eddyb
Unerase regions in infer_placeholder_type
closesrust-lang#70608
@Centril

Copy link
Copy Markdown
ContributorAuthor

@bors r+ p=7 rollup=never

@bors

bors commented Apr 2, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 98cf9d9 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 2, 2020
@bors

bors commented Apr 2, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 98cf9d9 with merge c520802...

@CentrilCentril added the rollup A PR which is a rollup label Apr 2, 2020
@bors

bors commented Apr 3, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-azure
Approved by: Centril
Pushing c520802 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Apr 3, 2020
@bors
bors merged commit c520802 into rust-lang:masterApr 3, 2020
@Centril
Centril deleted the rollup-ar4gn1x branch April 3, 2020 01:28
@borsbors mentioned this pull request Apr 3, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.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.

9 participants

@Centril@bors@Mark-Simulacrum@tesuji@wesleywiser@TimDiekmann@jrvidal@Pocakking@matthewjasper