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

test: Verify all sysroot crates are unstable #39851

Merged
merged 1 commit into from
Feb 24, 2017

Conversation

alexcrichton
Copy link
Member

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new run-make test
which will attempt to extern crate foo all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the std_shim and test_shim crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.

@rust-highfive
Copy link
Collaborator

r? @aturon

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

@alexcrichton
Copy link
Member Author

My current plan for bringing external crates to the compiler is that we'll pass --cfg rustbuild to all compilations initiated by rustbuild itself, and then crates will need a preamble like alexcrichton/log@75c6a0e if we pull them in. I'm open to other opinions/options though!

@brson brson added the relnotes Marks issues that should be documented in the release notes of the next release. label Feb 15, 2017
@brson
Copy link
Contributor

brson commented Feb 15, 2017

relnotes because the backcompat thing, though probably nobody ever noticed.

@bors r+

@bors
Copy link
Contributor

bors commented Feb 15, 2017

📌 Commit 1a0f9d2 has been approved by brson

@brson
Copy link
Contributor

brson commented Feb 15, 2017

cc @japaric dropping the shims may affect xargo

@alexcrichton
Copy link
Member Author

Hm so actually I'm not sure that the strategy of --cfg rustbuild will work. I'll back out that piece but otherwise this PR is still good, so let's still merge.

@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented Feb 15, 2017

📌 Commit f313646 has been approved by brson

@japaric
Copy link
Member

japaric commented Feb 15, 2017

Thanks for the ping, @brson. Today's Xargo doesn't depend on the shim crates and it's up to the end user to adapt to changes in the std facade (there's a Xargo.toml where you declare what crates from the std facade you want to build)

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Feb 16, 2017
test: Verify all sysroot crates are unstable

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Feb 17, 2017
test: Verify all sysroot crates are unstable

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit f313646 with merge 8f7c975...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member Author

alexcrichton commented Feb 17, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit f313646 with merge 4e1e670...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member Author

alexcrichton commented Feb 17, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit f313646 with merge 2e77c41...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented Feb 17, 2017

📌 Commit 472f02d has been approved by brson

@bors
Copy link
Contributor

bors commented Feb 18, 2017

⌛ Testing commit 472f02d with merge e3ea8a8...

@bors
Copy link
Contributor

bors commented Feb 18, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented Feb 21, 2017

📌 Commit f9dabcf has been approved by brson

@bors
Copy link
Contributor

bors commented Feb 21, 2017

⌛ Testing commit f9dabcf with merge a836657...

@bors
Copy link
Contributor

bors commented Feb 21, 2017

💔 Test failed - status-appveyor

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented Feb 21, 2017

📌 Commit 40aaa65 has been approved by brson

@bors
Copy link
Contributor

bors commented Feb 21, 2017

⌛ Testing commit 40aaa65 with merge 968f054...

@bors
Copy link
Contributor

bors commented Feb 21, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member Author

alexcrichton commented Feb 22, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 23, 2017

⌛ Testing commit 40aaa65 with merge d850515...

bors added a commit that referenced this pull request Feb 23, 2017
test: Verify all sysroot crates are unstable

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
@bors
Copy link
Contributor

bors commented Feb 23, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member Author

alexcrichton commented Feb 23, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 24, 2017

⌛ Testing commit 40aaa65 with merge 674af8c...

bors added a commit that referenced this pull request Feb 24, 2017
test: Verify all sysroot crates are unstable

As we continue to add more crates to the compiler and use them to implement
various features we want to be sure we're not accidentally expanding the API
surface area of the compiler! To that end this commit adds a new `run-make` test
which will attempt to `extern crate foo` all crates in the sysroot, verifying
that they're all unstable.

This commit discovered that the `std_shim` and `test_shim` crates were
accidentally stable and fixes the situation by deleting those shims. The shims
are no longer necessary due to changes in Cargo that have happened since they
were originally incepted.
@bors
Copy link
Contributor

bors commented Feb 24, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: brson
Pushing 674af8c to master...

@bors bors merged commit 40aaa65 into rust-lang:master Feb 24, 2017
@alexcrichton alexcrichton deleted the verify-unstable branch March 8, 2017 16:18
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants