Rollup merge of #125310 - workingjubilee:muck-out-the-test-stables, r=Nilstrieb
Move ~100 tests from tests/ui to subdirs new dirs for some, the rest in old sweep tests up before they turn cold to stop our code from growing mold
This commit is contained in:
commit
1b57ef3207
127 changed files with 42 additions and 45 deletions
|
@ -16,7 +16,7 @@ const ENTRY_LIMIT: usize = 900;
|
||||||
// FIXME: The following limits should be reduced eventually.
|
// FIXME: The following limits should be reduced eventually.
|
||||||
|
|
||||||
const ISSUES_ENTRY_LIMIT: usize = 1676;
|
const ISSUES_ENTRY_LIMIT: usize = 1676;
|
||||||
const ROOT_ENTRY_LIMIT: usize = 859;
|
const ROOT_ENTRY_LIMIT: usize = 757;
|
||||||
|
|
||||||
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
|
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
|
||||||
"rs", // test source files
|
"rs", // test source files
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0603]: static `j` is private
|
error[E0603]: static `j` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:23:29
|
--> $DIR/private-by-default.rs:23:29
|
||||||
|
|
|
|
||||||
LL | static_priv_by_default::j;
|
LL | static_priv_by_default::j;
|
||||||
| ^ private static
|
| ^ private static
|
||||||
|
@ -11,7 +11,7 @@ LL | static j: isize = 0;
|
||||||
| ^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error[E0603]: function `k` is private
|
error[E0603]: function `k` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:25:29
|
--> $DIR/private-by-default.rs:25:29
|
||||||
|
|
|
|
||||||
LL | static_priv_by_default::k;
|
LL | static_priv_by_default::k;
|
||||||
| ^ private function
|
| ^ private function
|
||||||
|
@ -23,7 +23,7 @@ LL | fn k() {}
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
||||||
error[E0603]: unit struct `l` is private
|
error[E0603]: unit struct `l` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:27:29
|
--> $DIR/private-by-default.rs:27:29
|
||||||
|
|
|
|
||||||
LL | static_priv_by_default::l;
|
LL | static_priv_by_default::l;
|
||||||
| ^ private unit struct
|
| ^ private unit struct
|
||||||
|
@ -35,7 +35,7 @@ LL | struct l;
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
||||||
error[E0603]: enum `m` is private
|
error[E0603]: enum `m` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:29:35
|
--> $DIR/private-by-default.rs:29:35
|
||||||
|
|
|
|
||||||
LL | foo::<static_priv_by_default::m>();
|
LL | foo::<static_priv_by_default::m>();
|
||||||
| ^ private enum
|
| ^ private enum
|
||||||
|
@ -47,7 +47,7 @@ LL | enum m {}
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
||||||
error[E0603]: type alias `n` is private
|
error[E0603]: type alias `n` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:31:35
|
--> $DIR/private-by-default.rs:31:35
|
||||||
|
|
|
|
||||||
LL | foo::<static_priv_by_default::n>();
|
LL | foo::<static_priv_by_default::n>();
|
||||||
| ^ private type alias
|
| ^ private type alias
|
||||||
|
@ -59,7 +59,7 @@ LL | type n = isize;
|
||||||
| ^^^^^^
|
| ^^^^^^
|
||||||
|
|
||||||
error[E0603]: module `foo` is private
|
error[E0603]: module `foo` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:35:29
|
--> $DIR/private-by-default.rs:35:29
|
||||||
|
|
|
|
||||||
LL | static_priv_by_default::foo::a;
|
LL | static_priv_by_default::foo::a;
|
||||||
| ^^^ - static `a` is not publicly re-exported
|
| ^^^ - static `a` is not publicly re-exported
|
||||||
|
@ -73,7 +73,7 @@ LL | mod foo {
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
||||||
error[E0603]: module `foo` is private
|
error[E0603]: module `foo` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:37:29
|
--> $DIR/private-by-default.rs:37:29
|
||||||
|
|
|
|
||||||
LL | static_priv_by_default::foo::b;
|
LL | static_priv_by_default::foo::b;
|
||||||
| ^^^ - function `b` is not publicly re-exported
|
| ^^^ - function `b` is not publicly re-exported
|
||||||
|
@ -87,7 +87,7 @@ LL | mod foo {
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
||||||
error[E0603]: module `foo` is private
|
error[E0603]: module `foo` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:39:29
|
--> $DIR/private-by-default.rs:39:29
|
||||||
|
|
|
|
||||||
LL | static_priv_by_default::foo::c;
|
LL | static_priv_by_default::foo::c;
|
||||||
| ^^^ - unit struct `c` is not publicly re-exported
|
| ^^^ - unit struct `c` is not publicly re-exported
|
||||||
|
@ -101,7 +101,7 @@ LL | mod foo {
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
||||||
error[E0603]: module `foo` is private
|
error[E0603]: module `foo` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:41:35
|
--> $DIR/private-by-default.rs:41:35
|
||||||
|
|
|
|
||||||
LL | foo::<static_priv_by_default::foo::d>();
|
LL | foo::<static_priv_by_default::foo::d>();
|
||||||
| ^^^ - enum `d` is not publicly re-exported
|
| ^^^ - enum `d` is not publicly re-exported
|
||||||
|
@ -115,7 +115,7 @@ LL | mod foo {
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
||||||
error[E0603]: module `foo` is private
|
error[E0603]: module `foo` is private
|
||||||
--> $DIR/xcrate-private-by-default.rs:43:35
|
--> $DIR/private-by-default.rs:43:35
|
||||||
|
|
|
|
||||||
LL | foo::<static_priv_by_default::foo::e>();
|
LL | foo::<static_priv_by_default::foo::e>();
|
||||||
| ^^^ - type alias `e` is not publicly re-exported
|
| ^^^ - type alias `e` is not publicly re-exported
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithFields`
|
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithFields`
|
||||||
--> $DIR/xcrate-unit-struct.rs:9:13
|
--> $DIR/unit-struct.rs:9:13
|
||||||
|
|
|
|
||||||
LL | let _ = xcrate_unit_struct::StructWithFields;
|
LL | let _ = xcrate_unit_struct::StructWithFields;
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `xcrate_unit_struct::StructWithFields { foo: val }`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `xcrate_unit_struct::StructWithFields { foo: val }`
|
||||||
|
@ -10,7 +10,7 @@ LL | pub struct StructWithFields {
|
||||||
| --------------------------- `xcrate_unit_struct::StructWithFields` defined here
|
| --------------------------- `xcrate_unit_struct::StructWithFields` defined here
|
||||||
|
|
||||||
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithPrivFields`
|
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithPrivFields`
|
||||||
--> $DIR/xcrate-unit-struct.rs:11:13
|
--> $DIR/unit-struct.rs:11:13
|
||||||
|
|
|
|
||||||
LL | let _ = xcrate_unit_struct::StructWithPrivFields;
|
LL | let _ = xcrate_unit_struct::StructWithPrivFields;
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
@ -1,11 +1,11 @@
|
||||||
error[E0601]: `main` function not found in crate `main_wrong_location`
|
error[E0601]: `main` function not found in crate `wrong_location`
|
||||||
--> $DIR/main-wrong-location.rs:5:2
|
--> $DIR/wrong-location.rs:5:2
|
||||||
|
|
|
|
||||||
LL | }
|
LL | }
|
||||||
| ^ the main function must be defined at the crate level (in `$DIR/main-wrong-location.rs`)
|
| ^ the main function must be defined at the crate level (in `$DIR/wrong-location.rs`)
|
||||||
|
|
|
|
||||||
note: here is a function named `main`
|
note: here is a function named `main`
|
||||||
--> $DIR/main-wrong-location.rs:4:5
|
--> $DIR/wrong-location.rs:4:5
|
||||||
|
|
|
|
||||||
LL | fn main() { }
|
LL | fn main() { }
|
||||||
| ^^^^^^^^^
|
| ^^^^^^^^^
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0580]: `main` function has wrong type
|
error[E0580]: `main` function has wrong type
|
||||||
--> $DIR/main-wrong-type.rs:6:1
|
--> $DIR/wrong-type.rs:6:1
|
||||||
|
|
|
|
||||||
LL | fn main(foo: S) {
|
LL | fn main(foo: S) {
|
||||||
| ^^^^^^^^^^^^^^^ incorrect number of function parameters
|
| ^^^^^^^^^^^^^^^ incorrect number of function parameters
|
|
@ -1,11 +1,11 @@
|
||||||
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
||||||
--> $DIR/intrinsics-always-extern.rs:4:32
|
--> $DIR/always-extern.rs:4:32
|
||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn foo(&self);
|
LL | extern "rust-intrinsic" fn foo(&self);
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
||||||
error[E0093]: unrecognized intrinsic function: `hello`
|
error[E0093]: unrecognized intrinsic function: `hello`
|
||||||
--> $DIR/intrinsics-always-extern.rs:12:28
|
--> $DIR/always-extern.rs:12:28
|
||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn hello() {
|
LL | extern "rust-intrinsic" fn hello() {
|
||||||
| ^^^^^ unrecognized intrinsic
|
| ^^^^^ unrecognized intrinsic
|
||||||
|
@ -13,7 +13,7 @@ LL | extern "rust-intrinsic" fn hello() {
|
||||||
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
= help: if you're adding an intrinsic, be sure to update `check_intrinsic_type`
|
||||||
|
|
||||||
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
||||||
--> $DIR/intrinsics-always-extern.rs:8:43
|
--> $DIR/always-extern.rs:8:43
|
||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn foo(&self) {
|
LL | extern "rust-intrinsic" fn foo(&self) {
|
||||||
| ___________________________________________^
|
| ___________________________________________^
|
||||||
|
@ -21,7 +21,7 @@ LL | | }
|
||||||
| |_____^
|
| |_____^
|
||||||
|
|
||||||
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
error: intrinsic must be in `extern "rust-intrinsic" { ... }` block
|
||||||
--> $DIR/intrinsics-always-extern.rs:12:36
|
--> $DIR/always-extern.rs:12:36
|
||||||
|
|
|
|
||||||
LL | extern "rust-intrinsic" fn hello() {
|
LL | extern "rust-intrinsic" fn hello() {
|
||||||
| ____________________________________^
|
| ____________________________________^
|
|
@ -1,5 +1,5 @@
|
||||||
error: unused variable: `x`
|
error: unused variable: `x`
|
||||||
--> $DIR/lint-group-forbid-always-trumps-cli.rs:4:9
|
--> $DIR/group-forbid-always-trumps-cli.rs:4:9
|
||||||
|
|
|
|
||||||
LL | let x = 1;
|
LL | let x = 1;
|
||||||
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
|
@ -3,10 +3,7 @@
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(non_upper_case_globals)]
|
#![allow(non_upper_case_globals)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
//@ exec-env:RUST_MIN_STACK=16000000
|
#![cfg_attr(rustfmt, rustfmt::skip)]
|
||||||
//@ rustc-env:RUST_MIN_STACK=16000000
|
|
||||||
//
|
|
||||||
// Big stack is needed for pretty printing, a little sad...
|
|
||||||
|
|
||||||
static a: isize =
|
static a: isize =
|
||||||
(((((((((((((((((((((((((((((((((((((((((((((((((((
|
(((((((((((((((((((((((((((((((((((((((((((((((((((
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue