Skip to content

test: Verify all sysroot crates are unstable#39851

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:verify-unstable
Feb 24, 2017
Merged

test: Verify all sysroot crates are unstable#39851
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:verify-unstable

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @aturon

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

@alexcrichton

Copy link
Copy Markdown
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

brson commented Feb 15, 2017

Copy link
Copy Markdown
Contributor

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

@bors r+

@bors

bors commented Feb 15, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 1a0f9d2 has been approved by brson

@brson

brson commented Feb 15, 2017

Copy link
Copy Markdown
Contributor

cc @japaric dropping the shims may affect xargo

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Feb 15, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit f313646 has been approved by brson

@japaric

japaric commented Feb 15, 2017

Copy link
Copy Markdown
Contributor

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

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f313646 with merge 8f7c975...

@bors

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@alexcrichton

alexcrichton commented Feb 17, 2017 via email

Copy link
Copy Markdown
Member Author

@bors

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f313646 with merge 4e1e670...

@bors

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@alexcrichton

alexcrichton commented Feb 17, 2017 via email

Copy link
Copy Markdown
Member Author

@bors

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f313646 with merge 2e77c41...

@bors

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Feb 17, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 472f02d has been approved by brson

@bors

bors commented Feb 18, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 472f02d with merge e3ea8a8...

@bors

bors commented Feb 18, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Feb 21, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit f9dabcf has been approved by brson

@bors

bors commented Feb 21, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f9dabcf with merge a836657...

@bors

bors commented Feb 21, 2017

Copy link
Copy Markdown
Collaborator

💔 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
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Feb 21, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 40aaa65 has been approved by brson

@bors

bors commented Feb 21, 2017

Copy link
Copy Markdown
Collaborator

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

@bors

bors commented Feb 21, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@alexcrichton

alexcrichton commented Feb 22, 2017 via email

Copy link
Copy Markdown
Member Author

@bors

bors commented Feb 23, 2017

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Feb 23, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@alexcrichton

alexcrichton commented Feb 23, 2017 via email

Copy link
Copy Markdown
Member Author

@bors

bors commented Feb 24, 2017

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Feb 24, 2017

Copy link
Copy Markdown
Collaborator

☀️ 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