Skip to content
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 #88618

Merged
merged 17 commits into from
Sep 3, 2021
Merged

Rollup of 7 pull requests #88618

merged 17 commits into from
Sep 3, 2021

Conversation

m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented Sep 3, 2021

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

azdavis and others added 17 commits August 20, 2021 22:24
For some reason, I always forget which variants are smaller and which
are larger when you derive PartialOrd on an enum. And the wording in the
current docs is not entirely clear to me.

So, I often end up making a small enum, deriving PartialOrd on it, and
then writing a `#[test]` with an assert that the top one is smaller than
the bottom one (or the other way around) to figure out which way the
deriving goes.

So then I figured, it would be great if the standard library docs just
had that example, so if I keep forgetting, at least I can figure it out
quickly by looking at std's docs.
Co-authored-by: Boxy <supbscripter@gmail.com>
Add an example for deriving PartialOrd on enums

For some reason, I always forget which variants are smaller and which
are larger when you derive PartialOrd on an enum. And the wording in the
current docs is not entirely clear to me.

So, I often end up making a small enum, deriving PartialOrd on it, and
then writing a `#[test]` with an assert that the top one is smaller than
the bottom one (or the other way around) to figure out which way the
deriving goes.

So then I figured, it would be great if the standard library docs just
had that example, so if I keep forgetting, at least I can figure it out
quickly by looking at std's docs.
…tained, r=petrochenkov

Fix LLVM libunwind build for non-musl targets

Broken in rust-lang#85600. AFAICT, [only musl, mingw, and wasm](https://github.com/rust-lang/rust/blob/673d0db5e393e9c64897005b470bfeb6d5aec61b/compiler/rustc_target/src/spec/crt_objects.rs#L128-L132) should use the “self-contained” logic in rustbuild.
…t, r=RalfJung

Add test case for using `slice::fill` with MaybeUninit

Adds test for rust-lang#87891

Looks alright? `@RalfJung`
Fixes rust-lang#87891
remove redundant / misplaced sentence from docs

Removes sentence that seems to have drifted down into the examples section. Luckily, someone already added an explanation of what happens with packed structs back into the initial section of the doc entry and this wayward sentence can likely just be deleted.
…nieu

Update outdated docs of array::IntoIter::new.
@rustbot rustbot added the rollup A PR which is a rollup label Sep 3, 2021
@m-ou-se
Copy link
Member Author

m-ou-se commented Sep 3, 2021

@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Sep 3, 2021

📌 Commit 2ce74b0 has been approved by m-ou-se

@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 Sep 3, 2021
@bors
Copy link
Contributor

bors commented Sep 3, 2021

⌛ Testing commit 2ce74b0 with merge c5799b2...

@bors
Copy link
Contributor

bors commented Sep 3, 2021

☀️ Test successful - checks-actions
Approved by: m-ou-se
Pushing c5799b2 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 3, 2021
@bors bors merged commit c5799b2 into rust-lang:master Sep 3, 2021
@rustbot rustbot added this to the 1.56.0 milestone Sep 3, 2021
@m-ou-se m-ou-se deleted the rollup-6tss5z6 branch September 3, 2021 14:32
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants