Skip to content

Rollup of 7 pull requests #69374

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 16 commits into from
Feb 22, 2020
Merged

Rollup of 7 pull requests #69374

merged 16 commits into from
Feb 22, 2020

Conversation

Dylan-DPC-zz
Copy link

Successful merges:

Failed merges:

r? @ghost

ecstatic-morse and 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
Author

@bors r+ p=7 rollup=never

@bors
Copy link
Collaborator

bors commented Feb 22, 2020

📌 Commit e5fb129 has been approved by Dylan-DPC

@bors bors 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-zz Dylan-DPC-zz added the rollup A PR which is a rollup label Feb 22, 2020
@bors
Copy link
Collaborator

bors commented Feb 22, 2020

⌛ Testing commit e5fb129 with merge 3eeefc2...

@bors
Copy link
Collaborator

bors commented Feb 22, 2020

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 22, 2020
@bors bors merged commit 3eeefc2 into rust-lang:master Feb 22, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup S-waiting-on-bors Status: 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