-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[WIP] Update libtest to version 0.0.2 #59440
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
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
bcd8bdb
Update libtest version
gnzlbg 5886c8a
Use libtest 0.0.2 branch
gnzlbg 6b43995
Make sure that none of the std/test/rustc deps unify with each other
gnzlbg 10b5e73
Fix formatting
gnzlbg 7b5c9c6
WIP: allow invalid sources
gnzlbg 1e4a224
Fix rustdoc
gnzlbg 0a36b4b
Remove unnecessary feature(asm)
gnzlbg 71dedad
Update Cargo.lock
gnzlbg 1288616
Update Cargo.lock
gnzlbg 62effd3
Update Cargo.lock
gnzlbg ee0a6b3
Display name of crate requiring rustc_private
gnzlbg 6849749
test is also a tool now
gnzlbg 2e2da05
Test is a tool
gnzlbg d8b0f75
Fix hash-stable-is-unstable test
gnzlbg e3fe8ba
Fix hash-stable-is-unstable test
gnzlbg c10eb4f
Add rustc_private feature to the test crate
gnzlbg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
extern crate libc; //~ ERROR use of unstable | ||
use libc::*; //~ ERROR unresolved import | ||
} |
18 changes: 18 additions & 0 deletions
18
src/test/ui/feature-gates/feature-gate-rustc_private-libc.stderr
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error[E0432]: unresolved import `libc` | ||
--> $DIR/feature-gate-rustc_private-libc.rs:3:9 | ||
| | ||
LL | use libc::*; | ||
| ^^^^ maybe a missing `extern crate libc;`? | ||
|
||
error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812) | ||
--> $DIR/feature-gate-rustc_private-libc.rs:2:5 | ||
| | ||
LL | extern crate libc; | ||
| ^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: add #![feature(rustc_private)] to the crate attributes to enable | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors occurred: E0432, E0658. | ||
For more information about an error, try `rustc --explain E0432`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
extern crate test; //~ ERROR use of unstable | ||
use test::*; //~ ERROR unresolved import | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error[E0432]: unresolved import `test` | ||
--> $DIR/feature-gate-test.rs:3:9 | ||
| | ||
LL | use test::*; | ||
| ^^^^ maybe a missing `extern crate test;`? | ||
|
||
error[E0658]: use of unstable library feature 'test' (see issue #27812) | ||
--> $DIR/feature-gate-test.rs:2:5 | ||
| | ||
LL | extern crate test; | ||
| ^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: add #![feature(test)] to the crate attributes to enable | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors occurred: E0432, E0658. | ||
For more information about an error, try `rustc --explain E0432`. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
extern crate libtest; | ||
use libtest::*; //~ ERROR unresolved import | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
error[E0432]: unresolved import `libtest` | ||
--> $DIR/rustc_private-libtest.rs:3:9 | ||
| | ||
LL | use libtest::*; | ||
| ^^^^^^^ maybe a missing `extern crate libtest;`? | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0432`. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.