Skip to content

Add missing examples for MaybeUninit#77228

Merged
bors merged 1 commit intorust-lang:masterfrom
GuillaumeGomez:maybeuninit-examples
Oct 6, 2020
Merged

Add missing examples for MaybeUninit#77228
bors merged 1 commit intorust-lang:masterfrom
GuillaumeGomez:maybeuninit-examples

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Member

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 26, 2020
@GuillaumeGomez
Copy link
Copy Markdown
Member Author

ping @Dylan-DPC

@GuillaumeGomez
Copy link
Copy Markdown
Member Author

r? @pickfire

Comment thread library/core/src/mem/maybe_uninit.rs Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// let v = MaybeUninit::new(vec![42]);
/// let v: MaybeUninit<Vec<u8>> = MaybeUninit::new(vec![42]);

Add a type for clarification.

Copy link
Copy Markdown
Contributor

@pickfire pickfire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the mentioned change looks good to me.

Comment thread library/core/src/mem/maybe_uninit.rs Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like removing these links.

Comment thread library/core/src/mem/maybe_uninit.rs Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// [type]: union.MaybeUninit.html
/// [type]: MaybeUninit

I think this should work?

Copy link
Copy Markdown
Contributor

@pickfire pickfire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@GuillaumeGomez
Copy link
Copy Markdown
Member Author

Let's merge then, thanks for the review!

@bors: r=pickfire rollup

@bors
Copy link
Copy Markdown
Collaborator

bors commented Oct 5, 2020

📌 Commit b1ce619 has been approved by pickfire

@bors bors 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 Oct 5, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 6, 2020
Rollup of 13 pull requests

Successful merges:

 - rust-lang#76388 (Add a note about the panic behavior of math operations on time objects)
 - rust-lang#76855 (Revamp rustdoc docs about documentation using `cfg`)
 - rust-lang#76995 (Reduce boilerplate with the matches! macro)
 - rust-lang#77228 (Add missing examples for MaybeUninit)
 - rust-lang#77528 (Avoid unchecked casts in net parser)
 - rust-lang#77534 (Disallow overriding forbid in same scope)
 - rust-lang#77555 (Allow anyone to set regression labels)
 - rust-lang#77558 (Rename bootstrap/defaults/{config.toml.PROFILE => config.PROFILE.toml})
 - rust-lang#77559 (Fix rustdoc warnings about invalid Rust syntax)
 - rust-lang#77560 (Fix LitKind's byte buffer to use refcounted slice)
 - rust-lang#77573 (Hint doc use convert::identity relative link)
 - rust-lang#77587 (Fix span for unicode escape suggestion.)
 - rust-lang#77591 (Record `expansion_that_defined` into crate metadata)

Failed merges:

r? `@ghost`
@bors bors merged commit d7123c2 into rust-lang:master Oct 6, 2020
@rustbot rustbot added this to the 1.49.0 milestone Oct 6, 2020
@GuillaumeGomez GuillaumeGomez deleted the maybeuninit-examples branch October 6, 2020 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

6 participants