Skip to content

Rollup of 7 pull requests - #69374

Merged
bors merged 16 commits into
rust-lang:masterfrom
Dylan-DPC-zz:rollup-x7mjd5z
Feb 22, 2020
Merged

Rollup of 7 pull requests#69374
bors merged 16 commits into
rust-lang:masterfrom
Dylan-DPC-zz:rollup-x7mjd5z

Conversation

@Dylan-DPC-zz

Copy link
Copy Markdown

Successful merges:

Failed merges:

r? @ghost

ecstatic-morseand others added 16 commits February 8, 2020 21:29
`char::is_ascii` is already a stable `const fn`, so there is no reason
for `u8::is_ascii` to be unstable.
A `Duration` is created from a second and nanoseconds variable. The
documentation says: "This constructor will panic if the carry from the
nanoseconds overflows the seconds counter". This was, however, not tested
in the tests. I doubt the behavior will ever regress, but it is usually a
good idea to test all documented behavior.
Bless tests
…=sfackler
Make `u8::is_ascii` a stable `const fn`
`char::is_ascii` was already stabilized as `const fn` in rust-lang#55278, so there is no reason for `u8::is_ascii` to go through an unstable period.
cc @rust-lang/libs
…nations, r=Dylan-DPC
Clean up E0323, E0324, E0325 and E0326 explanations
r? @Dylan-DPC
Wrong error message for move_ref_pattern
The current error message states that move occurs *because of `Copy`*:
```Rust
"move occurs because `{}` has type `{}` which does implement the `Copy` trait."
```
I found this randomly when surfing through the sources. This means, I don't have any context and might be completely wrong.
r? @Centril
…=Dylan-DPC
MIR is not an experiment anymore
At least I hope is not 😝
r? @oli-obk
…test, r=Centril
Test `Duration::new` panics on overflow
A `Duration` is created from a second and nanoseconds variable. The
documentation says: "This constructor will panic if the carry from the
nanoseconds overflows the seconds counter". This was, however, not tested
in the tests. I doubt the behavior will ever regress, but it is usually a
good idea to test all documented behavior.
move const_eval.rs into the module folder
This groups the file together with the other `const_eval` files in editors, diff views, etc.
r? @oli-obk
@Dylan-DPC-zz

Copy link
Copy Markdown
Author

@bors r+ p=7 rollup=never

@bors

bors commented Feb 22, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit e5fb129 has been approved by Dylan-DPC

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 22, 2020
@Dylan-DPC-zzDylan-DPC-zz added the rollup A PR which is a rollup label Feb 22, 2020
@bors

bors commented Feb 22, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit e5fb129 with merge 3eeefc2...

@bors

bors commented Feb 22, 2020

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-azure
Approved by: Dylan-DPC
Pushing 3eeefc2 to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Feb 22, 2020
@bors
bors merged commit 3eeefc2 into rust-lang:masterFeb 22, 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.

10 participants

@Dylan-DPC-zz@bors@ecstatic-morse@wesleywiser@GuillaumeGomez@spastorino@MichaelMcDonnell@LeSeulArtichaut@RalfJung@Dylan-DPC