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

Stabilize and re-export core::array in std #60657

Closed
wants to merge 2 commits into from

Conversation

JohnTitor
Copy link
Member

Fixes #60014

@rust-highfive
Copy link
Collaborator

r? @cramertj

(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 May 9, 2019
src/libcore/array.rs Outdated Show resolved Hide resolved
@Centril Centril added the relnotes Marks issues that should be documented in the release notes of the next release. label May 9, 2019
@Centril Centril added this to the 1.36 milestone May 9, 2019
@Centril Centril added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label May 9, 2019
@SimonSapin
Copy link
Contributor

Looks good, thanks!

@bors r+

@bors
Copy link
Contributor

bors commented May 9, 2019

📌 Commit 028e78d has been approved by SimonSapin

@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 May 9, 2019
Centril added a commit to Centril/rust that referenced this pull request May 9, 2019
…apin

Stabilize and re-export core::array in std

Fixes rust-lang#60014
bors added a commit that referenced this pull request May 9, 2019
Rollup of 5 pull requests

Successful merges:

 - #60601 (Add a `cast` method to raw pointers.)
 - #60638 (pin: make the to-module link more visible)
 - #60647 (cleanup: Remove `DefIndexAddressSpace`)
 - #60656 (Inline some Cursor calls for slices)
 - #60657 (Stabilize and re-export core::array in std)

Failed merges:

r? @ghost
@jethrogb
Copy link
Contributor

jethrogb commented May 9, 2019

You're missing some changes in the sgx platform, see https://gist.github.com/fortanix-bot/a355e5bad7852c6b19e58ddff11418f8

@JohnTitor
Copy link
Member Author

@jethrogb Thank you for pointing out, what I should do is to add #![feature(fixed_size_array)] to the top in src/libstd/sys/sgx/rwlock.rs?

@jethrogb
Copy link
Contributor

jethrogb commented May 9, 2019

Well, features need to be added at the root of the crate, which you could do conditionally depending on the target (there's already a list for SGX). However, I haven't looked at this PR in detail, but since you're stabilizing, I'd image it's just a matter of changing to code to use the stable API instead?

@JohnTitor
Copy link
Member Author

Oh, I missed it, src/libstd/sys/sgx/mod.rs instead? And this PR stabilizes core::array, not fixed_size_array so we should add feature attribute I think.

@jethrogb
Copy link
Contributor

jethrogb commented May 9, 2019

Oh, I missed it, src/libstd/sys/sgx/mod.rs instead?

No, src/libstd/lib.rs.

@jethrogb
Copy link
Contributor

jethrogb commented May 9, 2019

I think you might get a warning about an unused feature now on non-SGX platforms (but I'm not sure).

@jethrogb
Copy link
Contributor

jethrogb commented May 9, 2019

I think your PR might be merged at 028e78d because the failure only happens when compiling with cfg(test, target_env = "sgx") and Rust CI is not gated on that build. A new PR would then be needed to fix this.

@jethrogb
Copy link
Contributor

jethrogb commented May 9, 2019

So it turns out if you push to your branch while bors is testing it in a rollup is a bad idea ;) I think this PR can be closed. I've filed #60684 for the SGX failure

@JohnTitor
Copy link
Member Author

Oops, sorry... I'll close this.

@JohnTitor JohnTitor closed this May 9, 2019
bors added a commit that referenced this pull request May 10, 2019
bors added a commit that referenced this pull request May 14, 2019
[beta] Rollup backports

Rolled up:

* #60806: [beta] save-analysis: Fix ICE when processing associated constant

Cherry-picked:

* #60837: Update release notes for 1.35.0
* #60657: Stabilize and re-export core::array in std

r? @ghost
@JohnTitor JohnTitor deleted the stabilize-array branch March 27, 2020 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stabilize the core::array module and reexport in std (for TryFromSliceError)
7 participants