-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #111363 - asquared31415:tidy_no_random_ui_tests, r=fee1…
…-dead Add a tidy check to find unexpected files in UI tests, and clean up the results While looking at UI tests, I noticed several weird files that were not being tested, some from even pre-1.0. I added a tidy check that fails if any files not known to compiletest or not used in tests (via manual list) are present in the ui tests. Unfortunately the root entry limit had to be raised by 1 to accommodate the stderr file for one of the tests. r? `@fee1-dead`
- Loading branch information
Showing
12 changed files
with
82 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
This file contains 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,8 @@ | ||
error: expected item after attributes | ||
--> $DIR/attr-bad-crate-attr.rs:4:1 | ||
| | ||
LL | #[attr = "val"] // Unterminated | ||
| ^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains 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 |
---|---|---|
@@ -1,24 +1,26 @@ | ||
// run-pass | ||
|
||
// Regression test for a problem with the first mod attribute | ||
// being applied to every mod | ||
|
||
// pretty-expanded FIXME #23616 | ||
|
||
#[cfg(target_os = "linux")] | ||
mod hello; | ||
mod hello {} | ||
|
||
#[cfg(target_os = "macos")] | ||
mod hello; | ||
mod hello {} | ||
|
||
#[cfg(target_os = "windows")] | ||
mod hello; | ||
mod hello {} | ||
|
||
#[cfg(target_os = "freebsd")] | ||
mod hello; | ||
mod hello {} | ||
|
||
#[cfg(target_os = "dragonfly")] | ||
mod hello; | ||
mod hello {} | ||
|
||
#[cfg(target_os = "android")] | ||
mod hello; | ||
mod hello {} | ||
|
||
pub fn main() { } | ||
fn main() {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// run-pass | ||
// aux-build:issue-3136-a.rc | ||
// aux-build:issue-3136-a.rs | ||
|
||
// pretty-expanded FIXME #23616 | ||
|
||
|
This file contains 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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
extern crate core; | ||
|
||
fn assert_send<T:Send>() { } | ||
fn assert_send<T: Send>() {} | ||
|
||
fn test70() { | ||
assert_send::<*mut isize>(); | ||
//~^ ERROR `*mut isize` cannot be sent between threads safely | ||
} | ||
|
||
fn test71<'a>() { | ||
assert_send::<*mut &'a isize>(); | ||
//~^ ERROR `*mut &'a isize` cannot be sent between threads safely | ||
} | ||
|
||
fn main() { | ||
} | ||
fn main() {} |
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,16 +1,29 @@ | ||
error[E0277]: `*mut &'a isize` cannot be sent between threads safely | ||
error[E0277]: `*mut isize` cannot be sent between threads safely | ||
--> $DIR/kindck-send-unsafe.rs:6:19 | ||
| | ||
LL | assert_send::<*mut isize>(); | ||
| ^^^^^^^^^^ `*mut isize` cannot be sent between threads safely | ||
| | ||
= help: the trait `Send` is not implemented for `*mut isize` | ||
note: required by a bound in `assert_send` | ||
--> $DIR/kindck-send-unsafe.rs:3:19 | ||
| | ||
LL | fn assert_send<T: Send>() {} | ||
| ^^^^ required by this bound in `assert_send` | ||
|
||
error[E0277]: `*mut &'a isize` cannot be sent between threads safely | ||
--> $DIR/kindck-send-unsafe.rs:11:19 | ||
| | ||
LL | assert_send::<*mut &'a isize>(); | ||
| ^^^^^^^^^^^^^^ `*mut &'a isize` cannot be sent between threads safely | ||
| | ||
= help: the trait `Send` is not implemented for `*mut &'a isize` | ||
note: required by a bound in `assert_send` | ||
--> $DIR/kindck-send-unsafe.rs:3:18 | ||
--> $DIR/kindck-send-unsafe.rs:3:19 | ||
| | ||
LL | fn assert_send<T:Send>() { } | ||
| ^^^^ required by this bound in `assert_send` | ||
LL | fn assert_send<T: Send>() {} | ||
| ^^^^ required by this bound in `assert_send` | ||
|
||
error: aborting due to previous error | ||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0277`. |