split MaybeUninit into several features, expand docs a bit by RalfJung · Pull Request #58468 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation10 Commits2 Checks0 Files changed

Conversation

This file contains hidden or 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

[ Show hidden characters]({{ revealButtonHref }})

RalfJung

This splits the maybe_uninit feature gate into several:

Is that an okay thing to do? The goal is to help people avoid APIs we do not want to stabilize yet. I used this to make sure rustc itself does not use get_ref and get_mut.

I also extended the docs to advise against uninitialized integers -- again this is something for which the rules are still being discussed.

@RalfJung

@rust-highfive

r? @shepmaster

(rust_highfive has picked a reviewer for you, use r? to override)

Centril

Choose a reason for hiding this comment

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

LGTM; seems like a good partition except for one thing.

@RalfJung

@Centril

r? @Centril

I think this is a good step allowing us to do incremental progress in a reasonable way...

...As such, r=me with green travis.

If team members disagree with this incremental approach, feel free to r-.

@Centril

@bors

📌 Commit 95ef9b4 has been approved by Centril

@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

Feb 15, 2019

kennytm added a commit to kennytm/rust that referenced this pull request

Feb 16, 2019

@kennytm

split MaybeUninit into several features, expand docs a bit

This splits the maybe_uninit feature gate into several:

Is that an okay thing to do? The goal is to help people avoid APIs we do not want to stabilize yet. I used this to make sure rustc itself does not use get_ref and get_mut.

I also extended the docs to advise against uninitialized integers -- again this is something for which the rules are still being discussed.

bors added a commit that referenced this pull request

Feb 16, 2019

@bors

Rollup of 19 pull requests

Successful merges:

bors added a commit that referenced this pull request

Feb 17, 2019

@bors

Rollup of 19 pull requests

Successful merges:

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.