-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 7 pull requests #69374
Merged
Merged
Rollup of 7 pull requests #69374
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`char::is_ascii` is already a stable `const fn`, so there is no reason for `u8::is_ascii` to be unstable.
This bug was fixed by rust-lang#67501. Closes rust-lang#69312
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
Add test for rust-lang#69312 This bug was fixed by rust-lang#67501. Closes rust-lang#69312
…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
@bors r+ p=7 rollup=never |
📌 Commit e5fb129 has been approved by |
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
☀️ Test successful - checks-azure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Successful merges:
u8::is_ascii
a stableconst fn
#68984 (Makeu8::is_ascii
a stableconst fn
)Duration::new
panics on overflow #69354 (TestDuration::new
panics on overflow)Failed merges:
r? @ghost