From 582167a2fc4298337b8aa840a519998bf2296fde Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Sun, 22 Dec 2024 01:02:35 +0000 Subject: [PATCH] Flatten effects directory now that it doesn't really test anything specific --- .../{effects => }/auxiliary/minicore.rs | 0 ...nst_closure-const_trait_impl-ice-113381.rs | 0 ...closure-const_trait_impl-ice-113381.stderr | 0 ...dont-prefer-param-env-for-infer-self-ty.rs | 0 .../{effects => }/effect-param-infer.rs | 0 .../effects/auxiliary/cross-crate.rs | 13 ---- .../no-explicit-const-params-cross-crate.rs | 18 ------ ...o-explicit-const-params-cross-crate.stderr | 59 ------------------- .../const-traits/{effects => }/fallback.rs | 0 .../{effects => }/group-traits.rs | 0 .../ice-112822-expected-type-for-param.rs | 0 .../ice-112822-expected-type-for-param.stderr | 0 ...ice-113375-index-out-of-bounds-generics.rs | 0 .../{effects => }/infer-fallback.rs | 0 .../minicore-const-fn-early-bound.rs | 0 .../{effects => }/minicore-deref-fail.rs | 0 .../{effects => }/minicore-deref-fail.stderr | 0 .../{effects => }/minicore-drop-fail.rs | 0 .../{effects => }/minicore-drop-fail.stderr | 0 ...nicore-drop-without-feature-gate.no.stderr | 0 .../minicore-drop-without-feature-gate.rs | 0 .../{effects => }/minicore-fn-fail.rs | 0 .../{effects => }/minicore-fn-fail.stderr | 0 .../{effects => }/minicore-works.rs | 0 .../{effects => }/mismatched_generic_args.rs | 0 .../mismatched_generic_args.stderr | 0 .../{effects => }/no-explicit-const-params.rs | 0 .../no-explicit-const-params.stderr | 0 .../const-traits/{effects => }/project.rs | 0 .../{effects => }/span-bug-issue-121418.rs | 0 .../span-bug-issue-121418.stderr | 0 .../{effects => }/spec-effectvar-ice.rs | 0 .../{effects => }/spec-effectvar-ice.stderr | 0 .../{effects => }/trait-fn-const.rs | 0 .../{effects => }/trait-fn-const.stderr | 0 35 files changed, 90 deletions(-) rename tests/ui/traits/const-traits/{effects => }/auxiliary/minicore.rs (100%) rename tests/ui/traits/const-traits/{effects => }/const_closure-const_trait_impl-ice-113381.rs (100%) rename tests/ui/traits/const-traits/{effects => }/const_closure-const_trait_impl-ice-113381.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/dont-prefer-param-env-for-infer-self-ty.rs (100%) rename tests/ui/traits/const-traits/{effects => }/effect-param-infer.rs (100%) delete mode 100644 tests/ui/traits/const-traits/effects/auxiliary/cross-crate.rs delete mode 100644 tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.rs delete mode 100644 tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.stderr rename tests/ui/traits/const-traits/{effects => }/fallback.rs (100%) rename tests/ui/traits/const-traits/{effects => }/group-traits.rs (100%) rename tests/ui/traits/const-traits/{effects => }/ice-112822-expected-type-for-param.rs (100%) rename tests/ui/traits/const-traits/{effects => }/ice-112822-expected-type-for-param.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/ice-113375-index-out-of-bounds-generics.rs (100%) rename tests/ui/traits/const-traits/{effects => }/infer-fallback.rs (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-const-fn-early-bound.rs (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-deref-fail.rs (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-deref-fail.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-drop-fail.rs (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-drop-fail.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-drop-without-feature-gate.no.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-drop-without-feature-gate.rs (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-fn-fail.rs (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-fn-fail.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/minicore-works.rs (100%) rename tests/ui/traits/const-traits/{effects => }/mismatched_generic_args.rs (100%) rename tests/ui/traits/const-traits/{effects => }/mismatched_generic_args.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/no-explicit-const-params.rs (100%) rename tests/ui/traits/const-traits/{effects => }/no-explicit-const-params.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/project.rs (100%) rename tests/ui/traits/const-traits/{effects => }/span-bug-issue-121418.rs (100%) rename tests/ui/traits/const-traits/{effects => }/span-bug-issue-121418.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/spec-effectvar-ice.rs (100%) rename tests/ui/traits/const-traits/{effects => }/spec-effectvar-ice.stderr (100%) rename tests/ui/traits/const-traits/{effects => }/trait-fn-const.rs (100%) rename tests/ui/traits/const-traits/{effects => }/trait-fn-const.stderr (100%) diff --git a/tests/ui/traits/const-traits/effects/auxiliary/minicore.rs b/tests/ui/traits/const-traits/auxiliary/minicore.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/auxiliary/minicore.rs rename to tests/ui/traits/const-traits/auxiliary/minicore.rs diff --git a/tests/ui/traits/const-traits/effects/const_closure-const_trait_impl-ice-113381.rs b/tests/ui/traits/const-traits/const_closure-const_trait_impl-ice-113381.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/const_closure-const_trait_impl-ice-113381.rs rename to tests/ui/traits/const-traits/const_closure-const_trait_impl-ice-113381.rs diff --git a/tests/ui/traits/const-traits/effects/const_closure-const_trait_impl-ice-113381.stderr b/tests/ui/traits/const-traits/const_closure-const_trait_impl-ice-113381.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/const_closure-const_trait_impl-ice-113381.stderr rename to tests/ui/traits/const-traits/const_closure-const_trait_impl-ice-113381.stderr diff --git a/tests/ui/traits/const-traits/effects/dont-prefer-param-env-for-infer-self-ty.rs b/tests/ui/traits/const-traits/dont-prefer-param-env-for-infer-self-ty.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/dont-prefer-param-env-for-infer-self-ty.rs rename to tests/ui/traits/const-traits/dont-prefer-param-env-for-infer-self-ty.rs diff --git a/tests/ui/traits/const-traits/effects/effect-param-infer.rs b/tests/ui/traits/const-traits/effect-param-infer.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/effect-param-infer.rs rename to tests/ui/traits/const-traits/effect-param-infer.rs diff --git a/tests/ui/traits/const-traits/effects/auxiliary/cross-crate.rs b/tests/ui/traits/const-traits/effects/auxiliary/cross-crate.rs deleted file mode 100644 index e02bf6a4d2c43..0000000000000 --- a/tests/ui/traits/const-traits/effects/auxiliary/cross-crate.rs +++ /dev/null @@ -1,13 +0,0 @@ -//@ compile-flags: -Znext-solver -#![feature(const_trait_impl)] - -pub const fn foo() {} - -#[const_trait] -pub trait Bar { - fn bar(); -} - -impl Bar for () { - fn bar() {} -} diff --git a/tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.rs b/tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.rs deleted file mode 100644 index 97052a1d09a48..0000000000000 --- a/tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.rs +++ /dev/null @@ -1,18 +0,0 @@ -//@ aux-build: cross-crate.rs -extern crate cross_crate; - -use cross_crate::{Bar, foo}; - -fn main() { - foo::(); - //~^ ERROR: function takes 0 generic arguments but 1 generic argument was supplied - <() as Bar>::bar(); - //~^ ERROR: trait takes 0 generic arguments but 1 generic argument was supplied -} - -const FOO: () = { - foo::(); - //~^ ERROR: function takes 0 generic arguments but 1 generic argument was supplied - <() as Bar>::bar(); - //~^ ERROR: trait takes 0 generic arguments but 1 generic argument was supplied -}; diff --git a/tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.stderr b/tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.stderr deleted file mode 100644 index d1180dbd80e68..0000000000000 --- a/tests/ui/traits/const-traits/effects/no-explicit-const-params-cross-crate.stderr +++ /dev/null @@ -1,59 +0,0 @@ -error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied - --> $DIR/no-explicit-const-params-cross-crate.rs:14:5 - | -LL | foo::(); - | ^^^--------- help: remove the unnecessary generics - | | - | expected 0 generic arguments - | -note: function defined here, with 0 generic parameters - --> $DIR/auxiliary/cross-crate.rs:4:14 - | -LL | pub const fn foo() {} - | ^^^ - -error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied - --> $DIR/no-explicit-const-params-cross-crate.rs:16:12 - | -LL | <() as Bar>::bar(); - | ^^^------- help: remove the unnecessary generics - | | - | expected 0 generic arguments - | -note: trait defined here, with 0 generic parameters - --> $DIR/auxiliary/cross-crate.rs:7:11 - | -LL | pub trait Bar { - | ^^^ - -error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied - --> $DIR/no-explicit-const-params-cross-crate.rs:7:5 - | -LL | foo::(); - | ^^^-------- help: remove the unnecessary generics - | | - | expected 0 generic arguments - | -note: function defined here, with 0 generic parameters - --> $DIR/auxiliary/cross-crate.rs:4:14 - | -LL | pub const fn foo() {} - | ^^^ - -error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied - --> $DIR/no-explicit-const-params-cross-crate.rs:9:12 - | -LL | <() as Bar>::bar(); - | ^^^------ help: remove the unnecessary generics - | | - | expected 0 generic arguments - | -note: trait defined here, with 0 generic parameters - --> $DIR/auxiliary/cross-crate.rs:7:11 - | -LL | pub trait Bar { - | ^^^ - -error: aborting due to 4 previous errors - -For more information about this error, try `rustc --explain E0107`. diff --git a/tests/ui/traits/const-traits/effects/fallback.rs b/tests/ui/traits/const-traits/fallback.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/fallback.rs rename to tests/ui/traits/const-traits/fallback.rs diff --git a/tests/ui/traits/const-traits/effects/group-traits.rs b/tests/ui/traits/const-traits/group-traits.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/group-traits.rs rename to tests/ui/traits/const-traits/group-traits.rs diff --git a/tests/ui/traits/const-traits/effects/ice-112822-expected-type-for-param.rs b/tests/ui/traits/const-traits/ice-112822-expected-type-for-param.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/ice-112822-expected-type-for-param.rs rename to tests/ui/traits/const-traits/ice-112822-expected-type-for-param.rs diff --git a/tests/ui/traits/const-traits/effects/ice-112822-expected-type-for-param.stderr b/tests/ui/traits/const-traits/ice-112822-expected-type-for-param.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/ice-112822-expected-type-for-param.stderr rename to tests/ui/traits/const-traits/ice-112822-expected-type-for-param.stderr diff --git a/tests/ui/traits/const-traits/effects/ice-113375-index-out-of-bounds-generics.rs b/tests/ui/traits/const-traits/ice-113375-index-out-of-bounds-generics.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/ice-113375-index-out-of-bounds-generics.rs rename to tests/ui/traits/const-traits/ice-113375-index-out-of-bounds-generics.rs diff --git a/tests/ui/traits/const-traits/effects/infer-fallback.rs b/tests/ui/traits/const-traits/infer-fallback.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/infer-fallback.rs rename to tests/ui/traits/const-traits/infer-fallback.rs diff --git a/tests/ui/traits/const-traits/effects/minicore-const-fn-early-bound.rs b/tests/ui/traits/const-traits/minicore-const-fn-early-bound.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-const-fn-early-bound.rs rename to tests/ui/traits/const-traits/minicore-const-fn-early-bound.rs diff --git a/tests/ui/traits/const-traits/effects/minicore-deref-fail.rs b/tests/ui/traits/const-traits/minicore-deref-fail.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-deref-fail.rs rename to tests/ui/traits/const-traits/minicore-deref-fail.rs diff --git a/tests/ui/traits/const-traits/effects/minicore-deref-fail.stderr b/tests/ui/traits/const-traits/minicore-deref-fail.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-deref-fail.stderr rename to tests/ui/traits/const-traits/minicore-deref-fail.stderr diff --git a/tests/ui/traits/const-traits/effects/minicore-drop-fail.rs b/tests/ui/traits/const-traits/minicore-drop-fail.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-drop-fail.rs rename to tests/ui/traits/const-traits/minicore-drop-fail.rs diff --git a/tests/ui/traits/const-traits/effects/minicore-drop-fail.stderr b/tests/ui/traits/const-traits/minicore-drop-fail.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-drop-fail.stderr rename to tests/ui/traits/const-traits/minicore-drop-fail.stderr diff --git a/tests/ui/traits/const-traits/effects/minicore-drop-without-feature-gate.no.stderr b/tests/ui/traits/const-traits/minicore-drop-without-feature-gate.no.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-drop-without-feature-gate.no.stderr rename to tests/ui/traits/const-traits/minicore-drop-without-feature-gate.no.stderr diff --git a/tests/ui/traits/const-traits/effects/minicore-drop-without-feature-gate.rs b/tests/ui/traits/const-traits/minicore-drop-without-feature-gate.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-drop-without-feature-gate.rs rename to tests/ui/traits/const-traits/minicore-drop-without-feature-gate.rs diff --git a/tests/ui/traits/const-traits/effects/minicore-fn-fail.rs b/tests/ui/traits/const-traits/minicore-fn-fail.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-fn-fail.rs rename to tests/ui/traits/const-traits/minicore-fn-fail.rs diff --git a/tests/ui/traits/const-traits/effects/minicore-fn-fail.stderr b/tests/ui/traits/const-traits/minicore-fn-fail.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-fn-fail.stderr rename to tests/ui/traits/const-traits/minicore-fn-fail.stderr diff --git a/tests/ui/traits/const-traits/effects/minicore-works.rs b/tests/ui/traits/const-traits/minicore-works.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/minicore-works.rs rename to tests/ui/traits/const-traits/minicore-works.rs diff --git a/tests/ui/traits/const-traits/effects/mismatched_generic_args.rs b/tests/ui/traits/const-traits/mismatched_generic_args.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/mismatched_generic_args.rs rename to tests/ui/traits/const-traits/mismatched_generic_args.rs diff --git a/tests/ui/traits/const-traits/effects/mismatched_generic_args.stderr b/tests/ui/traits/const-traits/mismatched_generic_args.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/mismatched_generic_args.stderr rename to tests/ui/traits/const-traits/mismatched_generic_args.stderr diff --git a/tests/ui/traits/const-traits/effects/no-explicit-const-params.rs b/tests/ui/traits/const-traits/no-explicit-const-params.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/no-explicit-const-params.rs rename to tests/ui/traits/const-traits/no-explicit-const-params.rs diff --git a/tests/ui/traits/const-traits/effects/no-explicit-const-params.stderr b/tests/ui/traits/const-traits/no-explicit-const-params.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/no-explicit-const-params.stderr rename to tests/ui/traits/const-traits/no-explicit-const-params.stderr diff --git a/tests/ui/traits/const-traits/effects/project.rs b/tests/ui/traits/const-traits/project.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/project.rs rename to tests/ui/traits/const-traits/project.rs diff --git a/tests/ui/traits/const-traits/effects/span-bug-issue-121418.rs b/tests/ui/traits/const-traits/span-bug-issue-121418.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/span-bug-issue-121418.rs rename to tests/ui/traits/const-traits/span-bug-issue-121418.rs diff --git a/tests/ui/traits/const-traits/effects/span-bug-issue-121418.stderr b/tests/ui/traits/const-traits/span-bug-issue-121418.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/span-bug-issue-121418.stderr rename to tests/ui/traits/const-traits/span-bug-issue-121418.stderr diff --git a/tests/ui/traits/const-traits/effects/spec-effectvar-ice.rs b/tests/ui/traits/const-traits/spec-effectvar-ice.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/spec-effectvar-ice.rs rename to tests/ui/traits/const-traits/spec-effectvar-ice.rs diff --git a/tests/ui/traits/const-traits/effects/spec-effectvar-ice.stderr b/tests/ui/traits/const-traits/spec-effectvar-ice.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/spec-effectvar-ice.stderr rename to tests/ui/traits/const-traits/spec-effectvar-ice.stderr diff --git a/tests/ui/traits/const-traits/effects/trait-fn-const.rs b/tests/ui/traits/const-traits/trait-fn-const.rs similarity index 100% rename from tests/ui/traits/const-traits/effects/trait-fn-const.rs rename to tests/ui/traits/const-traits/trait-fn-const.rs diff --git a/tests/ui/traits/const-traits/effects/trait-fn-const.stderr b/tests/ui/traits/const-traits/trait-fn-const.stderr similarity index 100% rename from tests/ui/traits/const-traits/effects/trait-fn-const.stderr rename to tests/ui/traits/const-traits/trait-fn-const.stderr