From 6871d43d4cd1f7df246958af6c552911ef7a8933 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 07:53:54 +0900 Subject: [PATCH 1/9] Move parser-related tests --- src/test/ui/{ => parser}/parse-assoc-type-lt.rs | 0 src/test/ui/{ => parser}/parse-error-correct.rs | 0 src/test/ui/{ => parser}/parse-error-correct.stderr | 0 src/test/ui/{ => parser}/parse-panic.rs | 0 src/test/ui/{ => parser}/parser-recovery-1.rs | 0 src/test/ui/{ => parser}/parser-recovery-1.stderr | 0 src/test/ui/{ => parser}/parser-recovery-2.rs | 0 src/test/ui/{ => parser}/parser-recovery-2.stderr | 0 src/test/ui/{ => parser}/parser-unicode-whitespace.rs | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename src/test/ui/{ => parser}/parse-assoc-type-lt.rs (100%) rename src/test/ui/{ => parser}/parse-error-correct.rs (100%) rename src/test/ui/{ => parser}/parse-error-correct.stderr (100%) rename src/test/ui/{ => parser}/parse-panic.rs (100%) rename src/test/ui/{ => parser}/parser-recovery-1.rs (100%) rename src/test/ui/{ => parser}/parser-recovery-1.stderr (100%) rename src/test/ui/{ => parser}/parser-recovery-2.rs (100%) rename src/test/ui/{ => parser}/parser-recovery-2.stderr (100%) rename src/test/ui/{ => parser}/parser-unicode-whitespace.rs (100%) diff --git a/src/test/ui/parse-assoc-type-lt.rs b/src/test/ui/parser/parse-assoc-type-lt.rs similarity index 100% rename from src/test/ui/parse-assoc-type-lt.rs rename to src/test/ui/parser/parse-assoc-type-lt.rs diff --git a/src/test/ui/parse-error-correct.rs b/src/test/ui/parser/parse-error-correct.rs similarity index 100% rename from src/test/ui/parse-error-correct.rs rename to src/test/ui/parser/parse-error-correct.rs diff --git a/src/test/ui/parse-error-correct.stderr b/src/test/ui/parser/parse-error-correct.stderr similarity index 100% rename from src/test/ui/parse-error-correct.stderr rename to src/test/ui/parser/parse-error-correct.stderr diff --git a/src/test/ui/parse-panic.rs b/src/test/ui/parser/parse-panic.rs similarity index 100% rename from src/test/ui/parse-panic.rs rename to src/test/ui/parser/parse-panic.rs diff --git a/src/test/ui/parser-recovery-1.rs b/src/test/ui/parser/parser-recovery-1.rs similarity index 100% rename from src/test/ui/parser-recovery-1.rs rename to src/test/ui/parser/parser-recovery-1.rs diff --git a/src/test/ui/parser-recovery-1.stderr b/src/test/ui/parser/parser-recovery-1.stderr similarity index 100% rename from src/test/ui/parser-recovery-1.stderr rename to src/test/ui/parser/parser-recovery-1.stderr diff --git a/src/test/ui/parser-recovery-2.rs b/src/test/ui/parser/parser-recovery-2.rs similarity index 100% rename from src/test/ui/parser-recovery-2.rs rename to src/test/ui/parser/parser-recovery-2.rs diff --git a/src/test/ui/parser-recovery-2.stderr b/src/test/ui/parser/parser-recovery-2.stderr similarity index 100% rename from src/test/ui/parser-recovery-2.stderr rename to src/test/ui/parser/parser-recovery-2.stderr diff --git a/src/test/ui/parser-unicode-whitespace.rs b/src/test/ui/parser/parser-unicode-whitespace.rs similarity index 100% rename from src/test/ui/parser-unicode-whitespace.rs rename to src/test/ui/parser/parser-unicode-whitespace.rs From 50454cf64b1a3e27915973e5f9e5d5f2931aca7b Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:01:58 +0900 Subject: [PATCH 2/9] Move array-slice-vec-related tests --- .../ui/{ => array-slice-vec}/array-break-length.rs | 0 .../array-break-length.stderr | 0 .../ui/{ => array-slice-vec}/array-not-vector.rs | 0 .../{ => array-slice-vec}/array-not-vector.stderr | 0 .../{ => array-slice-vec}/array_const_index-0.rs | 0 .../array_const_index-0.stderr | 0 src/test/ui/array-slice-vec/array_const_index-1.rs | 14 +++++--------- .../array_const_index-1.stderr | 0 src/test/ui/array-slice-vec/array_const_index-2.rs | 12 ++++++++++++ src/test/ui/{ => array-slice-vec}/slice-2.rs | 0 src/test/ui/{ => array-slice-vec}/slice-2.stderr | 0 src/test/ui/{ => array-slice-vec}/slice-mut-2.rs | 0 .../ui/{ => array-slice-vec}/slice-mut-2.stderr | 0 src/test/ui/{ => array-slice-vec}/slice-mut.rs | 0 src/test/ui/{ => array-slice-vec}/slice-mut.stderr | 0 .../slice-to-vec-comparison.rs | 0 .../slice-to-vec-comparison.stderr | 0 .../vec-macro-with-comma-only.rs | 0 .../vec-macro-with-comma-only.stderr | 0 .../vec-mut-iter-borrow.rs | 0 .../vec-mut-iter-borrow.stderr | 0 .../ui/{vec => array-slice-vec}/vec-overrun.rs | 0 .../ui/{vec => array-slice-vec}/vec-res-add.rs | 0 .../ui/{vec => array-slice-vec}/vec-res-add.stderr | 0 .../{ => array-slice-vec}/vector-cast-weirdness.rs | 0 .../vector-cast-weirdness.stderr | 0 src/test/ui/{ => array-slice-vec}/vector-no-ann.rs | 0 .../ui/{ => array-slice-vec}/vector-no-ann.stderr | 0 src/test/ui/array_const_index-1.rs | 8 -------- 29 files changed, 17 insertions(+), 17 deletions(-) rename src/test/ui/{ => array-slice-vec}/array-break-length.rs (100%) rename src/test/ui/{ => array-slice-vec}/array-break-length.stderr (100%) rename src/test/ui/{ => array-slice-vec}/array-not-vector.rs (100%) rename src/test/ui/{ => array-slice-vec}/array-not-vector.stderr (100%) rename src/test/ui/{ => array-slice-vec}/array_const_index-0.rs (100%) rename src/test/ui/{ => array-slice-vec}/array_const_index-0.stderr (100%) rename src/test/ui/{ => array-slice-vec}/array_const_index-1.stderr (100%) create mode 100644 src/test/ui/array-slice-vec/array_const_index-2.rs rename src/test/ui/{ => array-slice-vec}/slice-2.rs (100%) rename src/test/ui/{ => array-slice-vec}/slice-2.stderr (100%) rename src/test/ui/{ => array-slice-vec}/slice-mut-2.rs (100%) rename src/test/ui/{ => array-slice-vec}/slice-mut-2.stderr (100%) rename src/test/ui/{ => array-slice-vec}/slice-mut.rs (100%) rename src/test/ui/{ => array-slice-vec}/slice-mut.stderr (100%) rename src/test/ui/{ => array-slice-vec}/slice-to-vec-comparison.rs (100%) rename src/test/ui/{ => array-slice-vec}/slice-to-vec-comparison.stderr (100%) rename src/test/ui/{vec => array-slice-vec}/vec-macro-with-comma-only.rs (100%) rename src/test/ui/{vec => array-slice-vec}/vec-macro-with-comma-only.stderr (100%) rename src/test/ui/{vec => array-slice-vec}/vec-mut-iter-borrow.rs (100%) rename src/test/ui/{vec => array-slice-vec}/vec-mut-iter-borrow.stderr (100%) rename src/test/ui/{vec => array-slice-vec}/vec-overrun.rs (100%) rename src/test/ui/{vec => array-slice-vec}/vec-res-add.rs (100%) rename src/test/ui/{vec => array-slice-vec}/vec-res-add.stderr (100%) rename src/test/ui/{ => array-slice-vec}/vector-cast-weirdness.rs (100%) rename src/test/ui/{ => array-slice-vec}/vector-cast-weirdness.stderr (100%) rename src/test/ui/{ => array-slice-vec}/vector-no-ann.rs (100%) rename src/test/ui/{ => array-slice-vec}/vector-no-ann.stderr (100%) delete mode 100644 src/test/ui/array_const_index-1.rs diff --git a/src/test/ui/array-break-length.rs b/src/test/ui/array-slice-vec/array-break-length.rs similarity index 100% rename from src/test/ui/array-break-length.rs rename to src/test/ui/array-slice-vec/array-break-length.rs diff --git a/src/test/ui/array-break-length.stderr b/src/test/ui/array-slice-vec/array-break-length.stderr similarity index 100% rename from src/test/ui/array-break-length.stderr rename to src/test/ui/array-slice-vec/array-break-length.stderr diff --git a/src/test/ui/array-not-vector.rs b/src/test/ui/array-slice-vec/array-not-vector.rs similarity index 100% rename from src/test/ui/array-not-vector.rs rename to src/test/ui/array-slice-vec/array-not-vector.rs diff --git a/src/test/ui/array-not-vector.stderr b/src/test/ui/array-slice-vec/array-not-vector.stderr similarity index 100% rename from src/test/ui/array-not-vector.stderr rename to src/test/ui/array-slice-vec/array-not-vector.stderr diff --git a/src/test/ui/array_const_index-0.rs b/src/test/ui/array-slice-vec/array_const_index-0.rs similarity index 100% rename from src/test/ui/array_const_index-0.rs rename to src/test/ui/array-slice-vec/array_const_index-0.rs diff --git a/src/test/ui/array_const_index-0.stderr b/src/test/ui/array-slice-vec/array_const_index-0.stderr similarity index 100% rename from src/test/ui/array_const_index-0.stderr rename to src/test/ui/array-slice-vec/array_const_index-0.stderr diff --git a/src/test/ui/array-slice-vec/array_const_index-1.rs b/src/test/ui/array-slice-vec/array_const_index-1.rs index 8ee225f5cdfea..d0ee1796c0ffc 100644 --- a/src/test/ui/array-slice-vec/array_const_index-1.rs +++ b/src/test/ui/array-slice-vec/array_const_index-1.rs @@ -1,12 +1,8 @@ -// run-pass -#![allow(dead_code)] -#![allow(stable_features)] - -#![feature(const_indexing)] +const A: [i32; 0] = []; +const B: i32 = A[1]; +//~^ index out of bounds: the length is 0 but the index is 1 +//~| ERROR any use of this value will cause an error fn main() { - const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47]; - const IDX: usize = 3; - const VAL: i32 = ARR[IDX]; - const BLUB: [i32; (ARR[0] - 41) as usize] = [5]; + let _ = B; } diff --git a/src/test/ui/array_const_index-1.stderr b/src/test/ui/array-slice-vec/array_const_index-1.stderr similarity index 100% rename from src/test/ui/array_const_index-1.stderr rename to src/test/ui/array-slice-vec/array_const_index-1.stderr diff --git a/src/test/ui/array-slice-vec/array_const_index-2.rs b/src/test/ui/array-slice-vec/array_const_index-2.rs new file mode 100644 index 0000000000000..8ee225f5cdfea --- /dev/null +++ b/src/test/ui/array-slice-vec/array_const_index-2.rs @@ -0,0 +1,12 @@ +// run-pass +#![allow(dead_code)] +#![allow(stable_features)] + +#![feature(const_indexing)] + +fn main() { + const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47]; + const IDX: usize = 3; + const VAL: i32 = ARR[IDX]; + const BLUB: [i32; (ARR[0] - 41) as usize] = [5]; +} diff --git a/src/test/ui/slice-2.rs b/src/test/ui/array-slice-vec/slice-2.rs similarity index 100% rename from src/test/ui/slice-2.rs rename to src/test/ui/array-slice-vec/slice-2.rs diff --git a/src/test/ui/slice-2.stderr b/src/test/ui/array-slice-vec/slice-2.stderr similarity index 100% rename from src/test/ui/slice-2.stderr rename to src/test/ui/array-slice-vec/slice-2.stderr diff --git a/src/test/ui/slice-mut-2.rs b/src/test/ui/array-slice-vec/slice-mut-2.rs similarity index 100% rename from src/test/ui/slice-mut-2.rs rename to src/test/ui/array-slice-vec/slice-mut-2.rs diff --git a/src/test/ui/slice-mut-2.stderr b/src/test/ui/array-slice-vec/slice-mut-2.stderr similarity index 100% rename from src/test/ui/slice-mut-2.stderr rename to src/test/ui/array-slice-vec/slice-mut-2.stderr diff --git a/src/test/ui/slice-mut.rs b/src/test/ui/array-slice-vec/slice-mut.rs similarity index 100% rename from src/test/ui/slice-mut.rs rename to src/test/ui/array-slice-vec/slice-mut.rs diff --git a/src/test/ui/slice-mut.stderr b/src/test/ui/array-slice-vec/slice-mut.stderr similarity index 100% rename from src/test/ui/slice-mut.stderr rename to src/test/ui/array-slice-vec/slice-mut.stderr diff --git a/src/test/ui/slice-to-vec-comparison.rs b/src/test/ui/array-slice-vec/slice-to-vec-comparison.rs similarity index 100% rename from src/test/ui/slice-to-vec-comparison.rs rename to src/test/ui/array-slice-vec/slice-to-vec-comparison.rs diff --git a/src/test/ui/slice-to-vec-comparison.stderr b/src/test/ui/array-slice-vec/slice-to-vec-comparison.stderr similarity index 100% rename from src/test/ui/slice-to-vec-comparison.stderr rename to src/test/ui/array-slice-vec/slice-to-vec-comparison.stderr diff --git a/src/test/ui/vec/vec-macro-with-comma-only.rs b/src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs similarity index 100% rename from src/test/ui/vec/vec-macro-with-comma-only.rs rename to src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs diff --git a/src/test/ui/vec/vec-macro-with-comma-only.stderr b/src/test/ui/array-slice-vec/vec-macro-with-comma-only.stderr similarity index 100% rename from src/test/ui/vec/vec-macro-with-comma-only.stderr rename to src/test/ui/array-slice-vec/vec-macro-with-comma-only.stderr diff --git a/src/test/ui/vec/vec-mut-iter-borrow.rs b/src/test/ui/array-slice-vec/vec-mut-iter-borrow.rs similarity index 100% rename from src/test/ui/vec/vec-mut-iter-borrow.rs rename to src/test/ui/array-slice-vec/vec-mut-iter-borrow.rs diff --git a/src/test/ui/vec/vec-mut-iter-borrow.stderr b/src/test/ui/array-slice-vec/vec-mut-iter-borrow.stderr similarity index 100% rename from src/test/ui/vec/vec-mut-iter-borrow.stderr rename to src/test/ui/array-slice-vec/vec-mut-iter-borrow.stderr diff --git a/src/test/ui/vec/vec-overrun.rs b/src/test/ui/array-slice-vec/vec-overrun.rs similarity index 100% rename from src/test/ui/vec/vec-overrun.rs rename to src/test/ui/array-slice-vec/vec-overrun.rs diff --git a/src/test/ui/vec/vec-res-add.rs b/src/test/ui/array-slice-vec/vec-res-add.rs similarity index 100% rename from src/test/ui/vec/vec-res-add.rs rename to src/test/ui/array-slice-vec/vec-res-add.rs diff --git a/src/test/ui/vec/vec-res-add.stderr b/src/test/ui/array-slice-vec/vec-res-add.stderr similarity index 100% rename from src/test/ui/vec/vec-res-add.stderr rename to src/test/ui/array-slice-vec/vec-res-add.stderr diff --git a/src/test/ui/vector-cast-weirdness.rs b/src/test/ui/array-slice-vec/vector-cast-weirdness.rs similarity index 100% rename from src/test/ui/vector-cast-weirdness.rs rename to src/test/ui/array-slice-vec/vector-cast-weirdness.rs diff --git a/src/test/ui/vector-cast-weirdness.stderr b/src/test/ui/array-slice-vec/vector-cast-weirdness.stderr similarity index 100% rename from src/test/ui/vector-cast-weirdness.stderr rename to src/test/ui/array-slice-vec/vector-cast-weirdness.stderr diff --git a/src/test/ui/vector-no-ann.rs b/src/test/ui/array-slice-vec/vector-no-ann.rs similarity index 100% rename from src/test/ui/vector-no-ann.rs rename to src/test/ui/array-slice-vec/vector-no-ann.rs diff --git a/src/test/ui/vector-no-ann.stderr b/src/test/ui/array-slice-vec/vector-no-ann.stderr similarity index 100% rename from src/test/ui/vector-no-ann.stderr rename to src/test/ui/array-slice-vec/vector-no-ann.stderr diff --git a/src/test/ui/array_const_index-1.rs b/src/test/ui/array_const_index-1.rs deleted file mode 100644 index d0ee1796c0ffc..0000000000000 --- a/src/test/ui/array_const_index-1.rs +++ /dev/null @@ -1,8 +0,0 @@ -const A: [i32; 0] = []; -const B: i32 = A[1]; -//~^ index out of bounds: the length is 0 but the index is 1 -//~| ERROR any use of this value will cause an error - -fn main() { - let _ = B; -} From 693f126ca04cfe49db603c18ef3500b5275980d9 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:04:03 +0900 Subject: [PATCH 3/9] Move binop-related tests --- src/test/ui/{ => binop}/binary-minus-without-space.rs | 0 src/test/ui/{ => binop}/binary-op-on-double-ref.fixed | 0 src/test/ui/{ => binop}/binary-op-on-double-ref.rs | 0 src/test/ui/{ => binop}/binary-op-on-double-ref.stderr | 0 src/test/ui/{ => binop}/binops-issue-22743.rs | 0 src/test/ui/{ => binop}/binops.rs | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename src/test/ui/{ => binop}/binary-minus-without-space.rs (100%) rename src/test/ui/{ => binop}/binary-op-on-double-ref.fixed (100%) rename src/test/ui/{ => binop}/binary-op-on-double-ref.rs (100%) rename src/test/ui/{ => binop}/binary-op-on-double-ref.stderr (100%) rename src/test/ui/{ => binop}/binops-issue-22743.rs (100%) rename src/test/ui/{ => binop}/binops.rs (100%) diff --git a/src/test/ui/binary-minus-without-space.rs b/src/test/ui/binop/binary-minus-without-space.rs similarity index 100% rename from src/test/ui/binary-minus-without-space.rs rename to src/test/ui/binop/binary-minus-without-space.rs diff --git a/src/test/ui/binary-op-on-double-ref.fixed b/src/test/ui/binop/binary-op-on-double-ref.fixed similarity index 100% rename from src/test/ui/binary-op-on-double-ref.fixed rename to src/test/ui/binop/binary-op-on-double-ref.fixed diff --git a/src/test/ui/binary-op-on-double-ref.rs b/src/test/ui/binop/binary-op-on-double-ref.rs similarity index 100% rename from src/test/ui/binary-op-on-double-ref.rs rename to src/test/ui/binop/binary-op-on-double-ref.rs diff --git a/src/test/ui/binary-op-on-double-ref.stderr b/src/test/ui/binop/binary-op-on-double-ref.stderr similarity index 100% rename from src/test/ui/binary-op-on-double-ref.stderr rename to src/test/ui/binop/binary-op-on-double-ref.stderr diff --git a/src/test/ui/binops-issue-22743.rs b/src/test/ui/binop/binops-issue-22743.rs similarity index 100% rename from src/test/ui/binops-issue-22743.rs rename to src/test/ui/binop/binops-issue-22743.rs diff --git a/src/test/ui/binops.rs b/src/test/ui/binop/binops.rs similarity index 100% rename from src/test/ui/binops.rs rename to src/test/ui/binop/binops.rs From 01c6998e6b083b8e0b77a393368b1003e19d5f6c Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:05:46 +0900 Subject: [PATCH 4/9] Move cast-related tests --- src/test/ui/{ => cast}/cast-char.rs | 0 src/test/ui/{ => cast}/cast-char.stderr | 0 src/test/ui/{ => cast}/cast-does-fallback.rs | 0 src/test/ui/{ => cast}/cast-region-to-uint.rs | 0 src/test/ui/{ => cast}/cast-rfc0401-vtable-kinds.rs | 0 src/test/ui/{ => cast}/cast-rfc0401.rs | 0 src/test/ui/{ => cast}/cast-to-infer-ty.rs | 0 src/test/ui/{ => cast}/cast.rs | 0 src/test/ui/{ => cast}/casts-differing-anon.rs | 0 src/test/ui/{ => cast}/casts-differing-anon.stderr | 0 src/test/ui/{ => cast}/casts-issue-46365.rs | 0 src/test/ui/{ => cast}/casts-issue-46365.stderr | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename src/test/ui/{ => cast}/cast-char.rs (100%) rename src/test/ui/{ => cast}/cast-char.stderr (100%) rename src/test/ui/{ => cast}/cast-does-fallback.rs (100%) rename src/test/ui/{ => cast}/cast-region-to-uint.rs (100%) rename src/test/ui/{ => cast}/cast-rfc0401-vtable-kinds.rs (100%) rename src/test/ui/{ => cast}/cast-rfc0401.rs (100%) rename src/test/ui/{ => cast}/cast-to-infer-ty.rs (100%) rename src/test/ui/{ => cast}/cast.rs (100%) rename src/test/ui/{ => cast}/casts-differing-anon.rs (100%) rename src/test/ui/{ => cast}/casts-differing-anon.stderr (100%) rename src/test/ui/{ => cast}/casts-issue-46365.rs (100%) rename src/test/ui/{ => cast}/casts-issue-46365.stderr (100%) diff --git a/src/test/ui/cast-char.rs b/src/test/ui/cast/cast-char.rs similarity index 100% rename from src/test/ui/cast-char.rs rename to src/test/ui/cast/cast-char.rs diff --git a/src/test/ui/cast-char.stderr b/src/test/ui/cast/cast-char.stderr similarity index 100% rename from src/test/ui/cast-char.stderr rename to src/test/ui/cast/cast-char.stderr diff --git a/src/test/ui/cast-does-fallback.rs b/src/test/ui/cast/cast-does-fallback.rs similarity index 100% rename from src/test/ui/cast-does-fallback.rs rename to src/test/ui/cast/cast-does-fallback.rs diff --git a/src/test/ui/cast-region-to-uint.rs b/src/test/ui/cast/cast-region-to-uint.rs similarity index 100% rename from src/test/ui/cast-region-to-uint.rs rename to src/test/ui/cast/cast-region-to-uint.rs diff --git a/src/test/ui/cast-rfc0401-vtable-kinds.rs b/src/test/ui/cast/cast-rfc0401-vtable-kinds.rs similarity index 100% rename from src/test/ui/cast-rfc0401-vtable-kinds.rs rename to src/test/ui/cast/cast-rfc0401-vtable-kinds.rs diff --git a/src/test/ui/cast-rfc0401.rs b/src/test/ui/cast/cast-rfc0401.rs similarity index 100% rename from src/test/ui/cast-rfc0401.rs rename to src/test/ui/cast/cast-rfc0401.rs diff --git a/src/test/ui/cast-to-infer-ty.rs b/src/test/ui/cast/cast-to-infer-ty.rs similarity index 100% rename from src/test/ui/cast-to-infer-ty.rs rename to src/test/ui/cast/cast-to-infer-ty.rs diff --git a/src/test/ui/cast.rs b/src/test/ui/cast/cast.rs similarity index 100% rename from src/test/ui/cast.rs rename to src/test/ui/cast/cast.rs diff --git a/src/test/ui/casts-differing-anon.rs b/src/test/ui/cast/casts-differing-anon.rs similarity index 100% rename from src/test/ui/casts-differing-anon.rs rename to src/test/ui/cast/casts-differing-anon.rs diff --git a/src/test/ui/casts-differing-anon.stderr b/src/test/ui/cast/casts-differing-anon.stderr similarity index 100% rename from src/test/ui/casts-differing-anon.stderr rename to src/test/ui/cast/casts-differing-anon.stderr diff --git a/src/test/ui/casts-issue-46365.rs b/src/test/ui/cast/casts-issue-46365.rs similarity index 100% rename from src/test/ui/casts-issue-46365.rs rename to src/test/ui/cast/casts-issue-46365.rs diff --git a/src/test/ui/casts-issue-46365.stderr b/src/test/ui/cast/casts-issue-46365.stderr similarity index 100% rename from src/test/ui/casts-issue-46365.stderr rename to src/test/ui/cast/casts-issue-46365.stderr From 049971c9909758c48a2e1ab1480d185a8e2fd0b8 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:09:22 +0900 Subject: [PATCH 5/9] Move block-related tests --- .../old-closure-arg-call-as.rs} | 0 src/test/ui/{block-arg.rs => closures/old-closure-arg.rs} | 0 .../old-closure-explicit-types.rs} | 0 .../old-closure-expr-precedence.rs} | 0 .../old-closure-expr-precedence.stderr} | 2 +- .../old-closure-expression-remove-semicolon.fixed} | 0 .../old-closure-expression-remove-semicolon.rs} | 0 .../old-closure-expression-remove-semicolon.stderr} | 2 +- .../{block-fn-coerce.rs => closures/old-closure-fn-coerce.rs} | 0 src/test/ui/{block-iter-1.rs => closures/old-closure-iter-1.rs} | 0 src/test/ui/{block-iter-2.rs => closures/old-closure-iter-2.rs} | 0 11 files changed, 2 insertions(+), 2 deletions(-) rename src/test/ui/{block-arg-call-as.rs => closures/old-closure-arg-call-as.rs} (100%) rename src/test/ui/{block-arg.rs => closures/old-closure-arg.rs} (100%) rename src/test/ui/{block-explicit-types.rs => closures/old-closure-explicit-types.rs} (100%) rename src/test/ui/{block-expr-precedence.rs => closures/old-closure-expr-precedence.rs} (100%) rename src/test/ui/{block-expr-precedence.stderr => closures/old-closure-expr-precedence.stderr} (82%) rename src/test/ui/{block-expression-remove-semicolon.fixed => closures/old-closure-expression-remove-semicolon.fixed} (100%) rename src/test/ui/{block-expression-remove-semicolon.rs => closures/old-closure-expression-remove-semicolon.rs} (100%) rename src/test/ui/{block-expression-remove-semicolon.stderr => closures/old-closure-expression-remove-semicolon.stderr} (85%) rename src/test/ui/{block-fn-coerce.rs => closures/old-closure-fn-coerce.rs} (100%) rename src/test/ui/{block-iter-1.rs => closures/old-closure-iter-1.rs} (100%) rename src/test/ui/{block-iter-2.rs => closures/old-closure-iter-2.rs} (100%) diff --git a/src/test/ui/block-arg-call-as.rs b/src/test/ui/closures/old-closure-arg-call-as.rs similarity index 100% rename from src/test/ui/block-arg-call-as.rs rename to src/test/ui/closures/old-closure-arg-call-as.rs diff --git a/src/test/ui/block-arg.rs b/src/test/ui/closures/old-closure-arg.rs similarity index 100% rename from src/test/ui/block-arg.rs rename to src/test/ui/closures/old-closure-arg.rs diff --git a/src/test/ui/block-explicit-types.rs b/src/test/ui/closures/old-closure-explicit-types.rs similarity index 100% rename from src/test/ui/block-explicit-types.rs rename to src/test/ui/closures/old-closure-explicit-types.rs diff --git a/src/test/ui/block-expr-precedence.rs b/src/test/ui/closures/old-closure-expr-precedence.rs similarity index 100% rename from src/test/ui/block-expr-precedence.rs rename to src/test/ui/closures/old-closure-expr-precedence.rs diff --git a/src/test/ui/block-expr-precedence.stderr b/src/test/ui/closures/old-closure-expr-precedence.stderr similarity index 82% rename from src/test/ui/block-expr-precedence.stderr rename to src/test/ui/closures/old-closure-expr-precedence.stderr index c28980bf14786..fabece1ad4a11 100644 --- a/src/test/ui/block-expr-precedence.stderr +++ b/src/test/ui/closures/old-closure-expr-precedence.stderr @@ -1,5 +1,5 @@ warning: unnecessary trailing semicolons - --> $DIR/block-expr-precedence.rs:60:21 + --> $DIR/old-closure-expr-precedence.rs:60:21 | LL | if (true) { 12; };;; -num; | ^^ help: remove these semicolons diff --git a/src/test/ui/block-expression-remove-semicolon.fixed b/src/test/ui/closures/old-closure-expression-remove-semicolon.fixed similarity index 100% rename from src/test/ui/block-expression-remove-semicolon.fixed rename to src/test/ui/closures/old-closure-expression-remove-semicolon.fixed diff --git a/src/test/ui/block-expression-remove-semicolon.rs b/src/test/ui/closures/old-closure-expression-remove-semicolon.rs similarity index 100% rename from src/test/ui/block-expression-remove-semicolon.rs rename to src/test/ui/closures/old-closure-expression-remove-semicolon.rs diff --git a/src/test/ui/block-expression-remove-semicolon.stderr b/src/test/ui/closures/old-closure-expression-remove-semicolon.stderr similarity index 85% rename from src/test/ui/block-expression-remove-semicolon.stderr rename to src/test/ui/closures/old-closure-expression-remove-semicolon.stderr index 74dc4d595a929..ab7983dc9e487 100644 --- a/src/test/ui/block-expression-remove-semicolon.stderr +++ b/src/test/ui/closures/old-closure-expression-remove-semicolon.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/block-expression-remove-semicolon.rs:8:19 + --> $DIR/old-closure-expression-remove-semicolon.rs:8:19 | LL | let _x: i32 = { | ___________________^ diff --git a/src/test/ui/block-fn-coerce.rs b/src/test/ui/closures/old-closure-fn-coerce.rs similarity index 100% rename from src/test/ui/block-fn-coerce.rs rename to src/test/ui/closures/old-closure-fn-coerce.rs diff --git a/src/test/ui/block-iter-1.rs b/src/test/ui/closures/old-closure-iter-1.rs similarity index 100% rename from src/test/ui/block-iter-1.rs rename to src/test/ui/closures/old-closure-iter-1.rs diff --git a/src/test/ui/block-iter-2.rs b/src/test/ui/closures/old-closure-iter-2.rs similarity index 100% rename from src/test/ui/block-iter-2.rs rename to src/test/ui/closures/old-closure-iter-2.rs From a73ad6b22a132a3b990f0f495df8b62a775ab8e0 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:15:53 +0900 Subject: [PATCH 6/9] Move builtin-superkinds-related tests --- src/test/ui/auxiliary/trait_superkinds_in_metadata.rs | 8 -------- .../builtin-superkinds-capabilities-transitive.rs | 0 .../builtin-superkinds-capabilities-xc.rs | 0 .../builtin-superkinds-capabilities.rs | 0 .../builtin-superkinds-in-metadata2.rs} | 0 .../builtin-superkinds-phantom-typaram.rs | 0 .../builtin-superkinds-simple2.rs} | 0 .../builtin-superkinds-typaram.rs | 0 8 files changed, 8 deletions(-) delete mode 100644 src/test/ui/auxiliary/trait_superkinds_in_metadata.rs rename src/test/ui/{ => builtin-superkinds}/builtin-superkinds-capabilities-transitive.rs (100%) rename src/test/ui/{ => builtin-superkinds}/builtin-superkinds-capabilities-xc.rs (100%) rename src/test/ui/{ => builtin-superkinds}/builtin-superkinds-capabilities.rs (100%) rename src/test/ui/{builtin-superkinds-in-metadata.rs => builtin-superkinds/builtin-superkinds-in-metadata2.rs} (100%) rename src/test/ui/{ => builtin-superkinds}/builtin-superkinds-phantom-typaram.rs (100%) rename src/test/ui/{builtin-superkinds-simple.rs => builtin-superkinds/builtin-superkinds-simple2.rs} (100%) rename src/test/ui/{ => builtin-superkinds}/builtin-superkinds-typaram.rs (100%) diff --git a/src/test/ui/auxiliary/trait_superkinds_in_metadata.rs b/src/test/ui/auxiliary/trait_superkinds_in_metadata.rs deleted file mode 100644 index acfd1e13e93e3..0000000000000 --- a/src/test/ui/auxiliary/trait_superkinds_in_metadata.rs +++ /dev/null @@ -1,8 +0,0 @@ -// Test library crate for cross-crate usages of traits inheriting -// from the builtin kinds. Mostly tests metadata correctness. - -#![crate_type="lib"] - -pub trait RequiresShare : Sync { } -pub trait RequiresRequiresShareAndSend : RequiresShare + Send { } -pub trait RequiresCopy : Copy { } diff --git a/src/test/ui/builtin-superkinds-capabilities-transitive.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-transitive.rs similarity index 100% rename from src/test/ui/builtin-superkinds-capabilities-transitive.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-transitive.rs diff --git a/src/test/ui/builtin-superkinds-capabilities-xc.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-xc.rs similarity index 100% rename from src/test/ui/builtin-superkinds-capabilities-xc.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-xc.rs diff --git a/src/test/ui/builtin-superkinds-capabilities.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-capabilities.rs similarity index 100% rename from src/test/ui/builtin-superkinds-capabilities.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-capabilities.rs diff --git a/src/test/ui/builtin-superkinds-in-metadata.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata2.rs similarity index 100% rename from src/test/ui/builtin-superkinds-in-metadata.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata2.rs diff --git a/src/test/ui/builtin-superkinds-phantom-typaram.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-phantom-typaram.rs similarity index 100% rename from src/test/ui/builtin-superkinds-phantom-typaram.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-phantom-typaram.rs diff --git a/src/test/ui/builtin-superkinds-simple.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-simple2.rs similarity index 100% rename from src/test/ui/builtin-superkinds-simple.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-simple2.rs diff --git a/src/test/ui/builtin-superkinds-typaram.rs b/src/test/ui/builtin-superkinds/builtin-superkinds-typaram.rs similarity index 100% rename from src/test/ui/builtin-superkinds-typaram.rs rename to src/test/ui/builtin-superkinds/builtin-superkinds-typaram.rs From 97031b12cf48a73ee17fd246ffc6051640eda0d1 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:23:00 +0900 Subject: [PATCH 7/9] Move rmeta-related tests --- src/test/ui/{ => rmeta}/auxiliary/rmeta-meta.rs | 0 src/test/ui/{ => rmeta}/auxiliary/rmeta-rlib-rpass.rs | 0 src/test/ui/{ => rmeta}/auxiliary/rmeta-rlib.rs | 0 src/test/ui/{ => rmeta}/auxiliary/rmeta-rmeta.rs | 0 src/test/ui/{ => rmeta}/rmeta-lib-pass.rs | 0 src/test/ui/{ => rmeta}/rmeta-pass.rs | 0 src/test/ui/{ => rmeta}/rmeta-priv-warn.rs | 0 src/test/ui/{ => rmeta}/rmeta-rpass.rs | 0 src/test/ui/{ => rmeta}/rmeta.rs | 0 src/test/ui/{ => rmeta}/rmeta.stderr | 0 src/test/ui/{ => rmeta}/rmeta_lib.rs | 0 src/test/ui/{ => rmeta}/rmeta_lib.stderr | 0 src/test/ui/{ => rmeta}/rmeta_meta_main.rs | 0 src/test/ui/{ => rmeta}/rmeta_meta_main.stderr | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename src/test/ui/{ => rmeta}/auxiliary/rmeta-meta.rs (100%) rename src/test/ui/{ => rmeta}/auxiliary/rmeta-rlib-rpass.rs (100%) rename src/test/ui/{ => rmeta}/auxiliary/rmeta-rlib.rs (100%) rename src/test/ui/{ => rmeta}/auxiliary/rmeta-rmeta.rs (100%) rename src/test/ui/{ => rmeta}/rmeta-lib-pass.rs (100%) rename src/test/ui/{ => rmeta}/rmeta-pass.rs (100%) rename src/test/ui/{ => rmeta}/rmeta-priv-warn.rs (100%) rename src/test/ui/{ => rmeta}/rmeta-rpass.rs (100%) rename src/test/ui/{ => rmeta}/rmeta.rs (100%) rename src/test/ui/{ => rmeta}/rmeta.stderr (100%) rename src/test/ui/{ => rmeta}/rmeta_lib.rs (100%) rename src/test/ui/{ => rmeta}/rmeta_lib.stderr (100%) rename src/test/ui/{ => rmeta}/rmeta_meta_main.rs (100%) rename src/test/ui/{ => rmeta}/rmeta_meta_main.stderr (100%) diff --git a/src/test/ui/auxiliary/rmeta-meta.rs b/src/test/ui/rmeta/auxiliary/rmeta-meta.rs similarity index 100% rename from src/test/ui/auxiliary/rmeta-meta.rs rename to src/test/ui/rmeta/auxiliary/rmeta-meta.rs diff --git a/src/test/ui/auxiliary/rmeta-rlib-rpass.rs b/src/test/ui/rmeta/auxiliary/rmeta-rlib-rpass.rs similarity index 100% rename from src/test/ui/auxiliary/rmeta-rlib-rpass.rs rename to src/test/ui/rmeta/auxiliary/rmeta-rlib-rpass.rs diff --git a/src/test/ui/auxiliary/rmeta-rlib.rs b/src/test/ui/rmeta/auxiliary/rmeta-rlib.rs similarity index 100% rename from src/test/ui/auxiliary/rmeta-rlib.rs rename to src/test/ui/rmeta/auxiliary/rmeta-rlib.rs diff --git a/src/test/ui/auxiliary/rmeta-rmeta.rs b/src/test/ui/rmeta/auxiliary/rmeta-rmeta.rs similarity index 100% rename from src/test/ui/auxiliary/rmeta-rmeta.rs rename to src/test/ui/rmeta/auxiliary/rmeta-rmeta.rs diff --git a/src/test/ui/rmeta-lib-pass.rs b/src/test/ui/rmeta/rmeta-lib-pass.rs similarity index 100% rename from src/test/ui/rmeta-lib-pass.rs rename to src/test/ui/rmeta/rmeta-lib-pass.rs diff --git a/src/test/ui/rmeta-pass.rs b/src/test/ui/rmeta/rmeta-pass.rs similarity index 100% rename from src/test/ui/rmeta-pass.rs rename to src/test/ui/rmeta/rmeta-pass.rs diff --git a/src/test/ui/rmeta-priv-warn.rs b/src/test/ui/rmeta/rmeta-priv-warn.rs similarity index 100% rename from src/test/ui/rmeta-priv-warn.rs rename to src/test/ui/rmeta/rmeta-priv-warn.rs diff --git a/src/test/ui/rmeta-rpass.rs b/src/test/ui/rmeta/rmeta-rpass.rs similarity index 100% rename from src/test/ui/rmeta-rpass.rs rename to src/test/ui/rmeta/rmeta-rpass.rs diff --git a/src/test/ui/rmeta.rs b/src/test/ui/rmeta/rmeta.rs similarity index 100% rename from src/test/ui/rmeta.rs rename to src/test/ui/rmeta/rmeta.rs diff --git a/src/test/ui/rmeta.stderr b/src/test/ui/rmeta/rmeta.stderr similarity index 100% rename from src/test/ui/rmeta.stderr rename to src/test/ui/rmeta/rmeta.stderr diff --git a/src/test/ui/rmeta_lib.rs b/src/test/ui/rmeta/rmeta_lib.rs similarity index 100% rename from src/test/ui/rmeta_lib.rs rename to src/test/ui/rmeta/rmeta_lib.rs diff --git a/src/test/ui/rmeta_lib.stderr b/src/test/ui/rmeta/rmeta_lib.stderr similarity index 100% rename from src/test/ui/rmeta_lib.stderr rename to src/test/ui/rmeta/rmeta_lib.stderr diff --git a/src/test/ui/rmeta_meta_main.rs b/src/test/ui/rmeta/rmeta_meta_main.rs similarity index 100% rename from src/test/ui/rmeta_meta_main.rs rename to src/test/ui/rmeta/rmeta_meta_main.rs diff --git a/src/test/ui/rmeta_meta_main.stderr b/src/test/ui/rmeta/rmeta_meta_main.stderr similarity index 100% rename from src/test/ui/rmeta_meta_main.stderr rename to src/test/ui/rmeta/rmeta_meta_main.stderr From 4530da7ff0cad9e324b7ab650fca52c356f45ddd Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:25:10 +0900 Subject: [PATCH 8/9] Move feature gate-related tests --- .../ui/{feature-gate => feature-gates}/allow-features-empty.rs | 0 .../{feature-gate => feature-gates}/allow-features-empty.stderr | 0 src/test/ui/{feature-gate => feature-gates}/allow-features.rs | 0 src/test/ui/{feature-gate => feature-gates}/allow-features.stderr | 0 src/test/ui/{feature-gate => feature-gates}/duplicate-features.rs | 0 .../ui/{feature-gate => feature-gates}/duplicate-features.stderr | 0 .../ui/{feature-gate => feature-gates}/feature-gate-c_variadic.rs | 0 .../feature-gate-c_variadic.stderr | 0 src/test/ui/{ => feature-gates}/feature-gate-inline_const.rs | 0 src/test/ui/{ => feature-gates}/feature-gate-inline_const.stderr | 0 src/test/ui/{ => feature-gates}/feature-gate-isa_attribute.rs | 0 src/test/ui/{ => feature-gates}/feature-gate-isa_attribute.stderr | 0 .../ui/{ => feature-gates}/feature-gate-optimize_attribute.rs | 0 .../ui/{ => feature-gates}/feature-gate-optimize_attribute.stderr | 0 .../feature-gate-static-nobundle-2.rs | 0 .../feature-gate-static-nobundle-2.stderr | 0 .../ui/{ => feature-gates}/feature-gated-feature-in-macro-arg.rs | 0 .../{ => feature-gates}/feature-gated-feature-in-macro-arg.stderr | 0 .../issue-43106-gating-of-bench.rs | 0 .../issue-43106-gating-of-bench.stderr | 0 .../issue-43106-gating-of-builtin-attrs-error.rs | 0 .../issue-43106-gating-of-builtin-attrs-error.stderr | 0 .../issue-43106-gating-of-builtin-attrs.rs | 0 .../issue-43106-gating-of-builtin-attrs.stderr | 0 .../issue-43106-gating-of-deprecated.rs | 0 .../issue-43106-gating-of-derive-2.rs | 0 .../issue-43106-gating-of-derive-2.stderr | 0 .../issue-43106-gating-of-derive.rs | 0 .../issue-43106-gating-of-derive.stderr | 0 .../issue-43106-gating-of-macro_escape.rs | 0 .../issue-43106-gating-of-macro_escape.stderr | 0 .../issue-43106-gating-of-macro_use.rs | 0 .../issue-43106-gating-of-macro_use.stderr | 0 .../issue-43106-gating-of-proc_macro_derive.rs | 0 .../issue-43106-gating-of-proc_macro_derive.stderr | 0 .../issue-43106-gating-of-rustc_deprecated.rs | 0 .../issue-43106-gating-of-rustc_deprecated.stderr | 0 .../issue-43106-gating-of-stable.rs | 0 .../issue-43106-gating-of-stable.stderr | 0 .../{feature-gate => feature-gates}/issue-43106-gating-of-test.rs | 0 .../issue-43106-gating-of-test.stderr | 0 .../issue-43106-gating-of-unstable.rs | 0 .../issue-43106-gating-of-unstable.stderr | 0 .../ui/{feature-gate => feature-gates}/issue-49983-see-issue-0.rs | 0 .../issue-49983-see-issue-0.stderr | 0 src/test/ui/{feature-gate => feature-gates}/rustc-private.rs | 0 src/test/ui/{feature-gate => feature-gates}/rustc-private.stderr | 0 .../stability-attribute-consistency.rs | 0 .../stability-attribute-consistency.stderr | 0 src/test/ui/{feature-gate => feature-gates}/unknown-feature.rs | 0 .../ui/{feature-gate => feature-gates}/unknown-feature.stderr | 0 .../unstable-attribute-allow-issue-0.rs | 0 .../unstable-attribute-allow-issue-0.stderr | 0 53 files changed, 0 insertions(+), 0 deletions(-) rename src/test/ui/{feature-gate => feature-gates}/allow-features-empty.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/allow-features-empty.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/allow-features.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/allow-features.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/duplicate-features.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/duplicate-features.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/feature-gate-c_variadic.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/feature-gate-c_variadic.stderr (100%) rename src/test/ui/{ => feature-gates}/feature-gate-inline_const.rs (100%) rename src/test/ui/{ => feature-gates}/feature-gate-inline_const.stderr (100%) rename src/test/ui/{ => feature-gates}/feature-gate-isa_attribute.rs (100%) rename src/test/ui/{ => feature-gates}/feature-gate-isa_attribute.stderr (100%) rename src/test/ui/{ => feature-gates}/feature-gate-optimize_attribute.rs (100%) rename src/test/ui/{ => feature-gates}/feature-gate-optimize_attribute.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/feature-gate-static-nobundle-2.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/feature-gate-static-nobundle-2.stderr (100%) rename src/test/ui/{ => feature-gates}/feature-gated-feature-in-macro-arg.rs (100%) rename src/test/ui/{ => feature-gates}/feature-gated-feature-in-macro-arg.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-bench.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-bench.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-builtin-attrs-error.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-builtin-attrs-error.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-builtin-attrs.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-builtin-attrs.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-deprecated.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-derive-2.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-derive-2.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-derive.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-derive.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-macro_escape.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-macro_escape.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-macro_use.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-macro_use.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-proc_macro_derive.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-proc_macro_derive.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-rustc_deprecated.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-rustc_deprecated.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-stable.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-stable.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-test.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-test.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-unstable.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-43106-gating-of-unstable.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-49983-see-issue-0.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/issue-49983-see-issue-0.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/rustc-private.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/rustc-private.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/stability-attribute-consistency.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/stability-attribute-consistency.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/unknown-feature.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/unknown-feature.stderr (100%) rename src/test/ui/{feature-gate => feature-gates}/unstable-attribute-allow-issue-0.rs (100%) rename src/test/ui/{feature-gate => feature-gates}/unstable-attribute-allow-issue-0.stderr (100%) diff --git a/src/test/ui/feature-gate/allow-features-empty.rs b/src/test/ui/feature-gates/allow-features-empty.rs similarity index 100% rename from src/test/ui/feature-gate/allow-features-empty.rs rename to src/test/ui/feature-gates/allow-features-empty.rs diff --git a/src/test/ui/feature-gate/allow-features-empty.stderr b/src/test/ui/feature-gates/allow-features-empty.stderr similarity index 100% rename from src/test/ui/feature-gate/allow-features-empty.stderr rename to src/test/ui/feature-gates/allow-features-empty.stderr diff --git a/src/test/ui/feature-gate/allow-features.rs b/src/test/ui/feature-gates/allow-features.rs similarity index 100% rename from src/test/ui/feature-gate/allow-features.rs rename to src/test/ui/feature-gates/allow-features.rs diff --git a/src/test/ui/feature-gate/allow-features.stderr b/src/test/ui/feature-gates/allow-features.stderr similarity index 100% rename from src/test/ui/feature-gate/allow-features.stderr rename to src/test/ui/feature-gates/allow-features.stderr diff --git a/src/test/ui/feature-gate/duplicate-features.rs b/src/test/ui/feature-gates/duplicate-features.rs similarity index 100% rename from src/test/ui/feature-gate/duplicate-features.rs rename to src/test/ui/feature-gates/duplicate-features.rs diff --git a/src/test/ui/feature-gate/duplicate-features.stderr b/src/test/ui/feature-gates/duplicate-features.stderr similarity index 100% rename from src/test/ui/feature-gate/duplicate-features.stderr rename to src/test/ui/feature-gates/duplicate-features.stderr diff --git a/src/test/ui/feature-gate/feature-gate-c_variadic.rs b/src/test/ui/feature-gates/feature-gate-c_variadic.rs similarity index 100% rename from src/test/ui/feature-gate/feature-gate-c_variadic.rs rename to src/test/ui/feature-gates/feature-gate-c_variadic.rs diff --git a/src/test/ui/feature-gate/feature-gate-c_variadic.stderr b/src/test/ui/feature-gates/feature-gate-c_variadic.stderr similarity index 100% rename from src/test/ui/feature-gate/feature-gate-c_variadic.stderr rename to src/test/ui/feature-gates/feature-gate-c_variadic.stderr diff --git a/src/test/ui/feature-gate-inline_const.rs b/src/test/ui/feature-gates/feature-gate-inline_const.rs similarity index 100% rename from src/test/ui/feature-gate-inline_const.rs rename to src/test/ui/feature-gates/feature-gate-inline_const.rs diff --git a/src/test/ui/feature-gate-inline_const.stderr b/src/test/ui/feature-gates/feature-gate-inline_const.stderr similarity index 100% rename from src/test/ui/feature-gate-inline_const.stderr rename to src/test/ui/feature-gates/feature-gate-inline_const.stderr diff --git a/src/test/ui/feature-gate-isa_attribute.rs b/src/test/ui/feature-gates/feature-gate-isa_attribute.rs similarity index 100% rename from src/test/ui/feature-gate-isa_attribute.rs rename to src/test/ui/feature-gates/feature-gate-isa_attribute.rs diff --git a/src/test/ui/feature-gate-isa_attribute.stderr b/src/test/ui/feature-gates/feature-gate-isa_attribute.stderr similarity index 100% rename from src/test/ui/feature-gate-isa_attribute.stderr rename to src/test/ui/feature-gates/feature-gate-isa_attribute.stderr diff --git a/src/test/ui/feature-gate-optimize_attribute.rs b/src/test/ui/feature-gates/feature-gate-optimize_attribute.rs similarity index 100% rename from src/test/ui/feature-gate-optimize_attribute.rs rename to src/test/ui/feature-gates/feature-gate-optimize_attribute.rs diff --git a/src/test/ui/feature-gate-optimize_attribute.stderr b/src/test/ui/feature-gates/feature-gate-optimize_attribute.stderr similarity index 100% rename from src/test/ui/feature-gate-optimize_attribute.stderr rename to src/test/ui/feature-gates/feature-gate-optimize_attribute.stderr diff --git a/src/test/ui/feature-gate/feature-gate-static-nobundle-2.rs b/src/test/ui/feature-gates/feature-gate-static-nobundle-2.rs similarity index 100% rename from src/test/ui/feature-gate/feature-gate-static-nobundle-2.rs rename to src/test/ui/feature-gates/feature-gate-static-nobundle-2.rs diff --git a/src/test/ui/feature-gate/feature-gate-static-nobundle-2.stderr b/src/test/ui/feature-gates/feature-gate-static-nobundle-2.stderr similarity index 100% rename from src/test/ui/feature-gate/feature-gate-static-nobundle-2.stderr rename to src/test/ui/feature-gates/feature-gate-static-nobundle-2.stderr diff --git a/src/test/ui/feature-gated-feature-in-macro-arg.rs b/src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.rs similarity index 100% rename from src/test/ui/feature-gated-feature-in-macro-arg.rs rename to src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.rs diff --git a/src/test/ui/feature-gated-feature-in-macro-arg.stderr b/src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.stderr similarity index 100% rename from src/test/ui/feature-gated-feature-in-macro-arg.stderr rename to src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-bench.rs b/src/test/ui/feature-gates/issue-43106-gating-of-bench.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-bench.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-bench.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-bench.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-bench.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-bench.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-bench.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs-error.rs b/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs-error.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs-error.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs-error.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.rs b/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-builtin-attrs.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-deprecated.rs b/src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-deprecated.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-derive-2.rs b/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-derive-2.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-derive-2.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-derive-2.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-derive-2.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-derive.rs b/src/test/ui/feature-gates/issue-43106-gating-of-derive.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-derive.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-derive.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-derive.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-derive.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-derive.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-derive.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.rs b/src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-macro_use.rs b/src/test/ui/feature-gates/issue-43106-gating-of-macro_use.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-macro_use.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-macro_use.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-macro_use.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-macro_use.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-macro_use.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-macro_use.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.rs b/src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.rs b/src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-rustc_deprecated.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-stable.rs b/src/test/ui/feature-gates/issue-43106-gating-of-stable.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-stable.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-stable.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-stable.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-stable.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-stable.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-test.rs b/src/test/ui/feature-gates/issue-43106-gating-of-test.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-test.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-test.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-test.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-test.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-test.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-test.stderr diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-unstable.rs b/src/test/ui/feature-gates/issue-43106-gating-of-unstable.rs similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-unstable.rs rename to src/test/ui/feature-gates/issue-43106-gating-of-unstable.rs diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr b/src/test/ui/feature-gates/issue-43106-gating-of-unstable.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-43106-gating-of-unstable.stderr rename to src/test/ui/feature-gates/issue-43106-gating-of-unstable.stderr diff --git a/src/test/ui/feature-gate/issue-49983-see-issue-0.rs b/src/test/ui/feature-gates/issue-49983-see-issue-0.rs similarity index 100% rename from src/test/ui/feature-gate/issue-49983-see-issue-0.rs rename to src/test/ui/feature-gates/issue-49983-see-issue-0.rs diff --git a/src/test/ui/feature-gate/issue-49983-see-issue-0.stderr b/src/test/ui/feature-gates/issue-49983-see-issue-0.stderr similarity index 100% rename from src/test/ui/feature-gate/issue-49983-see-issue-0.stderr rename to src/test/ui/feature-gates/issue-49983-see-issue-0.stderr diff --git a/src/test/ui/feature-gate/rustc-private.rs b/src/test/ui/feature-gates/rustc-private.rs similarity index 100% rename from src/test/ui/feature-gate/rustc-private.rs rename to src/test/ui/feature-gates/rustc-private.rs diff --git a/src/test/ui/feature-gate/rustc-private.stderr b/src/test/ui/feature-gates/rustc-private.stderr similarity index 100% rename from src/test/ui/feature-gate/rustc-private.stderr rename to src/test/ui/feature-gates/rustc-private.stderr diff --git a/src/test/ui/feature-gate/stability-attribute-consistency.rs b/src/test/ui/feature-gates/stability-attribute-consistency.rs similarity index 100% rename from src/test/ui/feature-gate/stability-attribute-consistency.rs rename to src/test/ui/feature-gates/stability-attribute-consistency.rs diff --git a/src/test/ui/feature-gate/stability-attribute-consistency.stderr b/src/test/ui/feature-gates/stability-attribute-consistency.stderr similarity index 100% rename from src/test/ui/feature-gate/stability-attribute-consistency.stderr rename to src/test/ui/feature-gates/stability-attribute-consistency.stderr diff --git a/src/test/ui/feature-gate/unknown-feature.rs b/src/test/ui/feature-gates/unknown-feature.rs similarity index 100% rename from src/test/ui/feature-gate/unknown-feature.rs rename to src/test/ui/feature-gates/unknown-feature.rs diff --git a/src/test/ui/feature-gate/unknown-feature.stderr b/src/test/ui/feature-gates/unknown-feature.stderr similarity index 100% rename from src/test/ui/feature-gate/unknown-feature.stderr rename to src/test/ui/feature-gates/unknown-feature.stderr diff --git a/src/test/ui/feature-gate/unstable-attribute-allow-issue-0.rs b/src/test/ui/feature-gates/unstable-attribute-allow-issue-0.rs similarity index 100% rename from src/test/ui/feature-gate/unstable-attribute-allow-issue-0.rs rename to src/test/ui/feature-gates/unstable-attribute-allow-issue-0.rs diff --git a/src/test/ui/feature-gate/unstable-attribute-allow-issue-0.stderr b/src/test/ui/feature-gates/unstable-attribute-allow-issue-0.stderr similarity index 100% rename from src/test/ui/feature-gate/unstable-attribute-allow-issue-0.stderr rename to src/test/ui/feature-gates/unstable-attribute-allow-issue-0.stderr From 9fb9f290b41927ea1533eace0f4c9d295faeba90 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 31 Dec 2020 08:26:24 +0900 Subject: [PATCH 9/9] Reduce `ROOT_ENTRY_LIMIT` to 1500 --- src/tools/tidy/src/ui_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/tidy/src/ui_tests.rs b/src/tools/tidy/src/ui_tests.rs index d8d2b449fee87..bc5e43d8f0a1c 100644 --- a/src/tools/tidy/src/ui_tests.rs +++ b/src/tools/tidy/src/ui_tests.rs @@ -7,7 +7,7 @@ use std::path::Path; const ENTRY_LIMIT: usize = 1000; // FIXME: The following limits should be reduced eventually. -const ROOT_ENTRY_LIMIT: usize = 1580; +const ROOT_ENTRY_LIMIT: usize = 1500; const ISSUES_ENTRY_LIMIT: usize = 2830; fn check_entries(path: &Path, bad: &mut bool) {