mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Move 100 entries from tests/ui into subdirs
- Move super-fast-paren-parsing test into ui/parser - Move stmt_expr_attrs test into ui/feature-gates - Move macro tests into ui/macros - Move global_asm tests into ui/asm - Move env tests into ui/process - Move xcrate tests into ui/cross-crate - Move unop tests into ui/unop - Move backtrace tests into ui/backtrace - Move check-static tests into ui/statics - Move expr tests into ui/expr - Move optimization fuel tests into ui/fuel - Move ffi attribute tests into ui/ffi-attrs - Move suggestion tests into ui/suggestions - Move main tests into ui/fn-main - Move lint tests into ui/lint - Move repr tests into ui/repr - Move intrinsics tests into ui/intrinsics - Move tool lint tests into ui/tool-attributes - Move return tests into ui/return - Move pattern tests into ui/patttern - Move range tests into ui/range - Move foreign-fn tests into ui/foreign - Move orphan-check tests into ui/coherence - Move inference tests into ui/inference - Reduce ROOT_ENTRY_LIMIT
This commit is contained in:
parent
8e7517d99a
commit
d89500843c
@ -16,7 +16,7 @@ const ENTRY_LIMIT: usize = 900;
|
||||
// FIXME: The following limits should be reduced eventually.
|
||||
|
||||
const ISSUES_ENTRY_LIMIT: usize = 1676;
|
||||
const ROOT_ENTRY_LIMIT: usize = 859;
|
||||
const ROOT_ENTRY_LIMIT: usize = 757;
|
||||
|
||||
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
|
||||
"rs", // test source files
|
||||
|
@ -1,5 +1,5 @@
|
||||
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;
|
||||
| ^ private static
|
||||
@ -11,7 +11,7 @@ LL | static j: isize = 0;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
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;
|
||||
| ^ private function
|
||||
@ -23,7 +23,7 @@ LL | fn k() {}
|
||||
| ^^^^^^
|
||||
|
||||
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;
|
||||
| ^ private unit struct
|
||||
@ -35,7 +35,7 @@ LL | struct l;
|
||||
| ^^^^^^^^
|
||||
|
||||
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>();
|
||||
| ^ private enum
|
||||
@ -47,7 +47,7 @@ LL | enum m {}
|
||||
| ^^^^^^
|
||||
|
||||
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>();
|
||||
| ^ private type alias
|
||||
@ -59,7 +59,7 @@ LL | type n = isize;
|
||||
| ^^^^^^
|
||||
|
||||
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;
|
||||
| ^^^ - static `a` is not publicly re-exported
|
||||
@ -73,7 +73,7 @@ LL | mod foo {
|
||||
| ^^^^^^^
|
||||
|
||||
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;
|
||||
| ^^^ - function `b` is not publicly re-exported
|
||||
@ -87,7 +87,7 @@ LL | mod foo {
|
||||
| ^^^^^^^
|
||||
|
||||
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;
|
||||
| ^^^ - unit struct `c` is not publicly re-exported
|
||||
@ -101,7 +101,7 @@ LL | mod foo {
|
||||
| ^^^^^^^
|
||||
|
||||
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>();
|
||||
| ^^^ - enum `d` is not publicly re-exported
|
||||
@ -115,7 +115,7 @@ LL | mod foo {
|
||||
| ^^^^^^^
|
||||
|
||||
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>();
|
||||
| ^^^ - type alias `e` is not publicly re-exported
|
@ -1,5 +1,5 @@
|
||||
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;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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
|
||||
|
||||
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;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
@ -1,11 +1,11 @@
|
||||
error[E0601]: `main` function not found in crate `main_wrong_location`
|
||||
--> $DIR/main-wrong-location.rs:5:2
|
||||
error[E0601]: `main` function not found in crate `wrong_location`
|
||||
--> $DIR/wrong-location.rs:5:2
|
||||
|
|
||||
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`
|
||||
--> $DIR/main-wrong-location.rs:4:5
|
||||
--> $DIR/wrong-location.rs:4:5
|
||||
|
|
||||
LL | fn main() { }
|
||||
| ^^^^^^^^^
|
@ -1,5 +1,5 @@
|
||||
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) {
|
||||
| ^^^^^^^^^^^^^^^ incorrect number of function parameters
|
@ -1,11 +1,11 @@
|
||||
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);
|
||||
| ^^^
|
||||
|
||||
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() {
|
||||
| ^^^^^ 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`
|
||||
|
||||
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) {
|
||||
| ___________________________________________^
|
||||
@ -21,7 +21,7 @@ LL | | }
|
||||
| |_____^
|
||||
|
||||
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() {
|
||||
| ____________________________________^
|
@ -1,5 +1,5 @@
|
||||
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;
|
||||
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
@ -3,10 +3,7 @@
|
||||
#![allow(unused_parens)]
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![allow(dead_code)]
|
||||
//@ exec-env:RUST_MIN_STACK=16000000
|
||||
//@ rustc-env:RUST_MIN_STACK=16000000
|
||||
//
|
||||
// Big stack is needed for pretty printing, a little sad...
|
||||
#![cfg_attr(rustfmt, rustfmt::skip)]
|
||||
|
||||
static a: isize =
|
||||
(((((((((((((((((((((((((((((((((((((((((((((((((((
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user