Skip to content

Make the public API of the alloc crate a subset of std#51569

Merged
bors merged 7 commits into
rust-lang:masterfrom
SimonSapin:liballoc
Jun 29, 2018
Merged

Make the public API of the alloc crate a subset of std#51569
bors merged 7 commits into
rust-lang:masterfrom
SimonSapin:liballoc

Conversation

@SimonSapin

Copy link
Copy Markdown
Contributor

This only affects unstable APIs.

I plan to submit an RFC proposing to stabilize the crate. The reason it isn’t stable yet (#27783) is in case we end up merging the standard library crates into one. However the core crate is already stable, so if that happens we’ll need to keep it working somehow (likely by making replacing its contents by pub use items). We can do the same for alloc. This PR will hopefully make this easier, but even if that doesn’t happen consistency with std seems good.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @withoutboats

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 15, 2018
@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@bors

bors commented Jun 19, 2018

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #51543) made this pull request unmergeable. Please resolve the merge conflicts.

@SimonSapin

Copy link
Copy Markdown
Contributor Author

r? @sfackler

@SimonSapin

Copy link
Copy Markdown
Contributor Author

Also rewrote the paragraph in the crate’s doc-comment that said “not intended for general usage” to instead mention #![no_std].

@bors

bors commented Jun 29, 2018

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #50357) made this pull request unmergeable. Please resolve the merge conflicts.

@SimonSapin

Copy link
Copy Markdown
Contributor Author

Rebased.

@sfackler

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Jun 29, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 15bb6c4 has been approved by sfackler

@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 Jun 29, 2018
@bors

bors commented Jun 29, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 15bb6c4 with merge 2c1a715...

bors added a commit that referenced this pull request Jun 29, 2018
Make the public API of the alloc crate a subset of std

This only affects **unstable** APIs.

I plan to submit an RFC proposing to stabilize the crate. The reason it isn’t stable yet (#27783) is in case we end up merging the standard library crates into one. However the `core` crate is already stable, so if that happens we’ll need to keep it working somehow (likely by making replacing its contents by `pub use` items). We can do the same for `alloc`. This PR will hopefully make this easier, but even if that doesn’t happen consistency with `std` seems good.
@bors

bors commented Jun 29, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: sfackler
Pushing 2c1a715 to master...

@bors bors merged commit 15bb6c4 into rust-lang:master Jun 29, 2018
@rust-highfive

Copy link
Copy Markdown
Contributor

📣 Toolstate changed by #51569!

Tested on commit 2c1a715.
Direct link to PR: #51569

💔 rls on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rls on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rustfmt on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rustfmt on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Jun 29, 2018
Tested on commit rust-lang/rust@2c1a715.
Direct link to PR: <rust-lang/rust#51569>

💔 rls on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rls on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rustfmt on windows: test-pass → build-fail (cc @nrc, @rust-lang/infra).
💔 rustfmt on linux: test-pass → build-fail (cc @nrc, @rust-lang/infra).
@SimonSapin SimonSapin deleted the liballoc branch June 29, 2018 22:58
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.

5 participants