Skip to content

Rollup of 7 pull requests - #51369

Merged
bors merged 19 commits into
rust-lang:masterfrom
Mark-Simulacrum:rollup
Jun 5, 2018
Merged

Rollup of 7 pull requests#51369
bors merged 19 commits into
rust-lang:masterfrom
Mark-Simulacrum:rollup

Conversation

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

mandeepand others added 19 commits May 18, 2018 10:06
Refactor hiding example to be more complete
When subtracting an Instant from another, the function will panick when `RHS > self`, but the error message confusingly displays a different error:
```rust
let i = Instant::now();
let other = Instant::now();
if other > i {
println!("{:?}", i - other);
}
```
This results in a panic:
```
thread 'test_instant' panicked at 'other was less than the current instant', libstd/sys/unix/time.rs:292:17
```
…, r=GuillaumeGomez
Add doc comment to hiding portions of code example
fixesrust-lang#50816
Not sure if this is all that's needed, but I think it's a good start. One thing to note is that the code block is a text block where it could possibly be a rust block.
…=steveklabnik
Update rustdoc book to suggest using Termination trait instead of hidden ‘foo’ function
Closesrust-lang#50721.
I suggest that someone double-checks my English since I am not a native speaker.
r? @steveklabnik
Fix confusing error message for sub_instant
When subtracting an Instant from another, the function will panick when `RHS > self`, but the error message confusingly displays a different error:
```rust
let i = Instant::now();
let other = Instant::now();
if other > i {
println!("{:?}", i - other);
}
```
This results in a panic:
```
thread 'test_instant' panicked at 'other was less than the current instant', libstd/sys/unix/time.rs:292:17
```
But clearly, `other` was actually greater than the current instant.
…me, r=QuietMisdreavus
Fix crate-name option in rustdoc
Fixesrust-lang#51229.
r? @QuietMisdreavus
…ck, r=oli-obk
Check array indices in constant propagation
Previously, uses of constant weren't correctly propagated.
This fixesrust-lang#48920.
r? @oli-obk because you suggested it
test: Ignore some problematic tests on sparc and sparc64
This updates the list of tests which can be safely ignored on sparc and sparc64.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @frewsxcv

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 5, 2018
@Mark-Simulacrum

Copy link
Copy Markdown
MemberAuthor

r? @Mark-Simulacrum

@bors r+ p=10

@bors

bors commented Jun 5, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit d011150 has been approved by Mark-Simulacrum

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 5, 2018
@bors

bors commented Jun 5, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit d011150 with merge 4a9c58c...

bors added a commit that referenced this pull request Jun 5, 2018
Rollup of 7 pull requests
Successful merges:
- #50852 (Add doc comment to hiding portions of code example)
- #51183 (Update rustdoc book to suggest using Termination trait instead of hidden ‘foo’ function)
- #51255 (Fix confusing error message for sub_instant)
- #51256 (Fix crate-name option in rustdoc)
- #51308 (Check array indices in constant propagation)
- #51343 (test: Ignore some problematic tests on sparc and sparc64)
- #51358 (Tests that #39963 is fixed on MIR borrowck)
Failed merges:
@bors

bors commented Jun 5, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 4a9c58c to master...

@bors
bors merged commit d011150 into rust-lang:masterJun 5, 2018
@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

@Mark-Simulacrum@rust-highfive@bors@frewsxcv@Centril@mandeep@avdv@GuillaumeGomez@glaubitz@barzamin@fanzier@teiesti