diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23d3e71424b2b..82048f800d0e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -342,7 +342,7 @@ jobs: os: macos-12-xl - name: x86_64-apple-1 env: - SCRIPT: "./x.py --stage 2 test --exclude src/test/ui --exclude src/test/rustdoc --exclude src/test/run-make-fulldeps" + SCRIPT: "./x.py --stage 2 test --exclude tests/ui --exclude tests/rustdoc --exclude tests/run-make-fulldeps" RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false" RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 MACOSX_DEPLOYMENT_TARGET: 10.8 @@ -353,7 +353,7 @@ jobs: os: macos-12-xl - name: x86_64-apple-2 env: - SCRIPT: "./x.py --stage 2 test src/test/ui src/test/rustdoc src/test/run-make-fulldeps" + SCRIPT: "./x.py --stage 2 test tests/ui tests/rustdoc tests/run-make-fulldeps" RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false" RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 MACOSX_DEPLOYMENT_TARGET: 10.8 diff --git a/.gitignore b/.gitignore index 37972532b3614..e5ca3e503130f 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ Session.vim .valgrindrc .cargo # Included because it is part of the test case -!/src/test/run-make/thumb-none-qemu/example/.cargo +!/tests/run-make/thumb-none-qemu/example/.cargo ## Configuration /config.toml @@ -74,6 +74,6 @@ package-lock.json package.json ## Rustdoc GUI tests -src/test/rustdoc-gui/src/**.lock +tests/rustdoc-gui/src/**.lock # Before adding new lines, see the comment at the top. diff --git a/Cargo.toml b/Cargo.toml index ce08d4edb567d..15cbb2659c9b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ exclude = [ "compiler/rustc_codegen_cranelift", "compiler/rustc_codegen_gcc", "src/bootstrap", - "src/test/rustdoc-gui", + "tests/rustdoc-gui", # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`. "obj", # The `x` binary is a thin wrapper that calls `x.py`, which initializes diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index 3634e6e47ce12..14f082be9ba8c 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -689,8 +689,8 @@ impl<'hir> LoweringContext<'_, 'hir> { // call (like the identity function), as otherwise type and lifetime // inference have a hard time figuring things out. // Without this, we would get: - // E0720 in src/test/ui/impl-trait/in-trait/default-body-with-rpit.rs - // E0700 in src/test/ui/self/self_lifetime-async.rs + // E0720 in tests/ui/impl-trait/in-trait/default-body-with-rpit.rs + // E0700 in tests/ui/self/self_lifetime-async.rs // `future::identity_future`: let identity_future = diff --git a/compiler/rustc_borrowck/src/consumers.rs b/compiler/rustc_borrowck/src/consumers.rs index becc04bbdab0d..055b281bc2e70 100644 --- a/compiler/rustc_borrowck/src/consumers.rs +++ b/compiler/rustc_borrowck/src/consumers.rs @@ -25,7 +25,7 @@ pub use super::{ /// can, for example, happen when requesting a body of a `const` function /// because they are evaluated during typechecking. The panic can be avoided /// by overriding the `mir_borrowck` query. You can find a complete example -/// that shows how to do this at `src/test/run-make/obtain-borrowck/`. +/// that shows how to do this at `tests/run-make/obtain-borrowck/`. /// /// * Polonius is highly unstable, so expect regular changes in its signature or other details. pub fn get_body_with_borrowck_facts( diff --git a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs index eda5588a4d52e..6658ee89ad6f1 100644 --- a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs @@ -1737,7 +1737,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> { /// We check that there's a single level of block nesting to ensure always correct /// suggestions. If we don't, then we only provide a free-form message to avoid - /// misleading users in cases like `src/test/ui/nll/borrowed-temporary-error.rs`. + /// misleading users in cases like `tests/ui/nll/borrowed-temporary-error.rs`. /// We could expand the analysis to suggest hoising all of the relevant parts of /// the users' code to make the code compile, but that could be too much. struct NestedStatementVisitor { diff --git a/compiler/rustc_borrowck/src/region_infer/opaque_types.rs b/compiler/rustc_borrowck/src/region_infer/opaque_types.rs index 4fe14c7af2faa..767f9fe39c68b 100644 --- a/compiler/rustc_borrowck/src/region_infer/opaque_types.rs +++ b/compiler/rustc_borrowck/src/region_infer/opaque_types.rs @@ -262,7 +262,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> { return self.tcx.ty_error(); } - // Only check this for TAIT. RPIT already supports `src/test/ui/impl-trait/nested-return-type2.rs` + // Only check this for TAIT. RPIT already supports `tests/ui/impl-trait/nested-return-type2.rs` // on stable and we'd break that. let OpaqueTyOrigin::TyAlias = origin else { return definition_ty; diff --git a/compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh b/compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh index 04ad77ec97eac..12ecb8cf4e17d 100755 --- a/compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh +++ b/compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh @@ -10,118 +10,118 @@ pushd rust command -v rg >/dev/null 2>&1 || cargo install ripgrep -rm -r src/test/ui/{extern/,unsized-locals/,lto/,linkage*} || true -for test in $(rg --files-with-matches "lto|// needs-asm-support|// needs-unwind" src/test/{ui,incremental}); do +rm -r tests/ui/{extern/,unsized-locals/,lto/,linkage*} || true +for test in $(rg --files-with-matches "lto|// needs-asm-support|// needs-unwind" tests/{ui,incremental}); do rm $test done -for test in $(rg -i --files-with-matches "//(\[\w+\])?~[^\|]*\s*ERR|// error-pattern:|// build-fail|// run-fail|-Cllvm-args" src/test/ui); do +for test in $(rg -i --files-with-matches "//(\[\w+\])?~[^\|]*\s*ERR|// error-pattern:|// build-fail|// run-fail|-Cllvm-args" tests/ui); do rm $test done -git checkout -- src/test/ui/issues/auxiliary/issue-3136-a.rs # contains //~ERROR, but shouldn't be removed -git checkout -- src/test/ui/proc-macro/pretty-print-hack/ +git checkout -- tests/ui/issues/auxiliary/issue-3136-a.rs # contains //~ERROR, but shouldn't be removed +git checkout -- tests/ui/proc-macro/pretty-print-hack/ # missing features # ================ # requires stack unwinding -rm src/test/incremental/change_crate_dep_kind.rs -rm src/test/incremental/issue-80691-bad-eval-cache.rs # -Cpanic=abort causes abort instead of exit(101) +rm tests/incremental/change_crate_dep_kind.rs +rm tests/incremental/issue-80691-bad-eval-cache.rs # -Cpanic=abort causes abort instead of exit(101) # requires compiling with -Cpanic=unwind -rm -r src/test/ui/macros/rfc-2011-nicer-assert-messages/ -rm -r src/test/run-make/test-benches +rm -r tests/ui/macros/rfc-2011-nicer-assert-messages/ +rm -r tests/run-make/test-benches # vendor intrinsics -rm src/test/ui/sse2.rs # cpuid not supported, so sse2 not detected -rm src/test/ui/intrinsics/const-eval-select-x86_64.rs # requires x86_64 vendor intrinsics -rm src/test/ui/simd/array-type.rs # "Index argument for `simd_insert` is not a constant" -rm src/test/ui/simd/intrinsic/generic-bitmask-pass.rs # simd_bitmask unimplemented -rm src/test/ui/simd/intrinsic/generic-as.rs # simd_as unimplemented -rm src/test/ui/simd/intrinsic/generic-arithmetic-saturating-pass.rs # simd_saturating_add unimplemented -rm src/test/ui/simd/intrinsic/float-math-pass.rs # simd_fcos unimplemented -rm src/test/ui/simd/intrinsic/generic-gather-pass.rs # simd_gather unimplemented -rm src/test/ui/simd/intrinsic/generic-select-pass.rs # simd_select_bitmask unimplemented -rm src/test/ui/simd/issue-85915-simd-ptrs.rs # simd_gather unimplemented -rm src/test/ui/simd/issue-89193.rs # simd_gather unimplemented -rm src/test/ui/simd/simd-bitmask.rs # simd_bitmask unimplemented +rm tests/ui/sse2.rs # cpuid not supported, so sse2 not detected +rm tests/ui/intrinsics/const-eval-select-x86_64.rs # requires x86_64 vendor intrinsics +rm tests/ui/simd/array-type.rs # "Index argument for `simd_insert` is not a constant" +rm tests/ui/simd/intrinsic/generic-bitmask-pass.rs # simd_bitmask unimplemented +rm tests/ui/simd/intrinsic/generic-as.rs # simd_as unimplemented +rm tests/ui/simd/intrinsic/generic-arithmetic-saturating-pass.rs # simd_saturating_add unimplemented +rm tests/ui/simd/intrinsic/float-math-pass.rs # simd_fcos unimplemented +rm tests/ui/simd/intrinsic/generic-gather-pass.rs # simd_gather unimplemented +rm tests/ui/simd/intrinsic/generic-select-pass.rs # simd_select_bitmask unimplemented +rm tests/ui/simd/issue-85915-simd-ptrs.rs # simd_gather unimplemented +rm tests/ui/simd/issue-89193.rs # simd_gather unimplemented +rm tests/ui/simd/simd-bitmask.rs # simd_bitmask unimplemented # exotic linkages -rm src/test/ui/issues/issue-33992.rs # unsupported linkages -rm src/test/incremental/hashes/function_interfaces.rs # same -rm src/test/incremental/hashes/statics.rs # same +rm tests/ui/issues/issue-33992.rs # unsupported linkages +rm tests/incremental/hashes/function_interfaces.rs # same +rm tests/incremental/hashes/statics.rs # same # variadic arguments -rm src/test/ui/abi/mir/mir_codegen_calls_variadic.rs # requires float varargs -rm src/test/ui/abi/variadic-ffi.rs # requires callee side vararg support +rm tests/ui/abi/mir/mir_codegen_calls_variadic.rs # requires float varargs +rm tests/ui/abi/variadic-ffi.rs # requires callee side vararg support # unsized locals -rm -r src/test/run-pass-valgrind/unsized-locals +rm -r tests/run-pass-valgrind/unsized-locals # misc unimplemented things -rm src/test/ui/intrinsics/intrinsic-nearby.rs # unimplemented nearbyintf32 and nearbyintf64 intrinsics -rm src/test/ui/target-feature/missing-plusminus.rs # error not implemented -rm src/test/ui/fn/dyn-fn-alignment.rs # wants a 256 byte alignment -rm -r src/test/run-make/emit-named-files # requires full --emit support -rm src/test/ui/abi/stack-probes.rs # stack probes not yet implemented -rm src/test/ui/simd/intrinsic/ptr-cast.rs # simd_expose_addr intrinsic unimplemented -rm -r src/test/run-make/repr128-dwarf # debuginfo test -rm src/test/codegen-units/item-collection/asm-sym.rs # requires support for sym in asm!() +rm tests/ui/intrinsics/intrinsic-nearby.rs # unimplemented nearbyintf32 and nearbyintf64 intrinsics +rm tests/ui/target-feature/missing-plusminus.rs # error not implemented +rm tests/ui/fn/dyn-fn-alignment.rs # wants a 256 byte alignment +rm -r tests/run-make/emit-named-files # requires full --emit support +rm tests/ui/abi/stack-probes.rs # stack probes not yet implemented +rm tests/ui/simd/intrinsic/ptr-cast.rs # simd_expose_addr intrinsic unimplemented +rm -r tests/run-make/repr128-dwarf # debuginfo test +rm tests/codegen-units/item-collection/asm-sym.rs # requires support for sym in asm!() # optimization tests # ================== -rm src/test/ui/codegen/issue-28950.rs # depends on stack size optimizations -rm src/test/ui/codegen/init-large-type.rs # same -rm src/test/ui/issues/issue-40883.rs # same -rm -r src/test/run-make/fmt-write-bloat/ # tests an optimization +rm tests/ui/codegen/issue-28950.rs # depends on stack size optimizations +rm tests/ui/codegen/init-large-type.rs # same +rm tests/ui/issues/issue-40883.rs # same +rm -r tests/run-make/fmt-write-bloat/ # tests an optimization # backend specific tests # ====================== -rm src/test/incremental/thinlto/cgu_invalidated_when_import_{added,removed}.rs # requires LLVM -rm src/test/ui/abi/stack-protector.rs # requires stack protector support +rm tests/incremental/thinlto/cgu_invalidated_when_import_{added,removed}.rs # requires LLVM +rm tests/ui/abi/stack-protector.rs # requires stack protector support # giving different but possibly correct results # ============================================= -rm src/test/ui/mir/mir_misc_casts.rs # depends on deduplication of constants -rm src/test/ui/mir/mir_raw_fat_ptr.rs # same -rm src/test/ui/consts/issue-33537.rs # same -rm src/test/ui/layout/valid_range_oob.rs # different ICE message +rm tests/ui/mir/mir_misc_casts.rs # depends on deduplication of constants +rm tests/ui/mir/mir_raw_fat_ptr.rs # same +rm tests/ui/consts/issue-33537.rs # same +rm tests/ui/layout/valid_range_oob.rs # different ICE message # doesn't work due to the way the rustc test suite is invoked. # should work when using ./x.py test the way it is intended # ============================================================ -rm -r src/test/run-make/emit-shared-files # requires the rustdoc executable in dist/bin/ -rm -r src/test/run-make/unstable-flag-required # same -rm -r src/test/run-make/rustdoc-* # same -rm -r src/test/run-make/issue-88756-default-output # same -rm -r src/test/run-make/remap-path-prefix-dwarf # requires llvm-dwarfdump -rm -r src/test/ui/consts/missing_span_in_backtrace.rs # expects sysroot source to be elsewhere +rm -r tests/run-make/emit-shared-files # requires the rustdoc executable in dist/bin/ +rm -r tests/run-make/unstable-flag-required # same +rm -r tests/run-make/rustdoc-* # same +rm -r tests/run-make/issue-88756-default-output # same +rm -r tests/run-make/remap-path-prefix-dwarf # requires llvm-dwarfdump +rm -r tests/ui/consts/missing_span_in_backtrace.rs # expects sysroot source to be elsewhere # genuine bugs # ============ -rm src/test/incremental/spike-neg1.rs # errors out for some reason -rm src/test/incremental/spike-neg2.rs # same -rm src/test/ui/issues/issue-74564-if-expr-stack-overflow.rs # gives a stackoverflow before the backend runs -rm src/test/ui/mir/ssa-analysis-regression-50041.rs # produces ICE -rm src/test/ui/type-alias-impl-trait/assoc-projection-ice.rs # produces ICE +rm tests/incremental/spike-neg1.rs # errors out for some reason +rm tests/incremental/spike-neg2.rs # same +rm tests/ui/issues/issue-74564-if-expr-stack-overflow.rs # gives a stackoverflow before the backend runs +rm tests/ui/mir/ssa-analysis-regression-50041.rs # produces ICE +rm tests/ui/type-alias-impl-trait/assoc-projection-ice.rs # produces ICE -rm src/test/ui/simd/intrinsic/generic-reduction-pass.rs # simd_reduce_add_unordered doesn't accept an accumulator for integer vectors +rm tests/ui/simd/intrinsic/generic-reduction-pass.rs # simd_reduce_add_unordered doesn't accept an accumulator for integer vectors -rm src/test/ui/runtime/out-of-stack.rs # SIGSEGV instead of SIGABRT for some reason (#1301) +rm tests/ui/runtime/out-of-stack.rs # SIGSEGV instead of SIGABRT for some reason (#1301) # bugs in the test suite # ====================== -rm src/test/ui/backtrace.rs # TODO warning -rm src/test/ui/simple_global_asm.rs # TODO add needs-asm-support -rm src/test/ui/test-attrs/test-type.rs # TODO panic message on stderr. correct stdout +rm tests/ui/backtrace.rs # TODO warning +rm tests/ui/simple_global_asm.rs # TODO add needs-asm-support +rm tests/ui/test-attrs/test-type.rs # TODO panic message on stderr. correct stdout # not sure if this is actually a bug in the test suite, but the symbol list shows the function without leading _ for some reason -rm -r src/test/run-make/native-link-modifier-bundle -rm src/test/ui/process/nofile-limit.rs # TODO some AArch64 linking issue -rm src/test/ui/dyn-star/dispatch-on-pin-mut.rs # TODO failed assertion in vtable::get_ptr_and_method_ref +rm -r tests/run-make/native-link-modifier-bundle +rm tests/ui/process/nofile-limit.rs # TODO some AArch64 linking issue +rm tests/ui/dyn-star/dispatch-on-pin-mut.rs # TODO failed assertion in vtable::get_ptr_and_method_ref -rm src/test/ui/stdio-is-blocking.rs # really slow with unoptimized libstd +rm tests/ui/stdio-is-blocking.rs # really slow with unoptimized libstd echo "[TEST] rustc test suite" -RUST_TEST_NOCAPTURE=1 COMPILETEST_FORCE_STAGE0=1 ./x.py test --stage 0 src/test/{codegen-units,run-make,run-pass-valgrind,ui,incremental} +RUST_TEST_NOCAPTURE=1 COMPILETEST_FORCE_STAGE0=1 ./x.py test --stage 0 tests/{codegen-units,run-make,run-pass-valgrind,ui,incremental} popd diff --git a/compiler/rustc_codegen_gcc/test.sh b/compiler/rustc_codegen_gcc/test.sh index 8b390f95a4b9b..c5ffb763673d2 100755 --- a/compiler/rustc_codegen_gcc/test.sh +++ b/compiler/rustc_codegen_gcc/test.sh @@ -253,25 +253,25 @@ rustc = "$HOME/.rustup/toolchains/$rust_toolchain-$TARGET_TRIPLE/bin/rustc" EOF rustc -V | cut -d' ' -f3 | tr -d '(' - git checkout $(rustc -V | cut -d' ' -f3 | tr -d '(') src/test + git checkout $(rustc -V | cut -d' ' -f3 | tr -d '(') tests - for test in $(rg -i --files-with-matches "//(\[\w+\])?~|// error-pattern:|// build-fail|// run-fail|-Cllvm-args" src/test/ui); do + for test in $(rg -i --files-with-matches "//(\[\w+\])?~|// error-pattern:|// build-fail|// run-fail|-Cllvm-args" tests/ui); do rm $test done - git checkout -- src/test/ui/issues/auxiliary/issue-3136-a.rs # contains //~ERROR, but shouldn't be removed + git checkout -- tests/ui/issues/auxiliary/issue-3136-a.rs # contains //~ERROR, but shouldn't be removed - rm -r src/test/ui/{abi*,extern/,panic-runtime/,panics/,unsized-locals/,proc-macro/,threads-sendsync/,thinlto/,borrowck/,test*,*lto*.rs} || true - for test in $(rg --files-with-matches "catch_unwind|should_panic|thread|lto" src/test/ui); do + rm -r tests/ui/{abi*,extern/,panic-runtime/,panics/,unsized-locals/,proc-macro/,threads-sendsync/,thinlto/,borrowck/,test*,*lto*.rs} || true + for test in $(rg --files-with-matches "catch_unwind|should_panic|thread|lto" tests/ui); do rm $test done - git checkout src/test/ui/type-alias-impl-trait/auxiliary/cross_crate_ice.rs - git checkout src/test/ui/type-alias-impl-trait/auxiliary/cross_crate_ice2.rs + git checkout tests/ui/type-alias-impl-trait/auxiliary/cross_crate_ice.rs + git checkout tests/ui/type-alias-impl-trait/auxiliary/cross_crate_ice2.rs RUSTC_ARGS="-Zpanic-abort-tests -Csymbol-mangling-version=v0 -Zcodegen-backend="$(pwd)"/../target/"$CHANNEL"/librustc_codegen_gcc."$dylib_ext" --sysroot "$(pwd)"/../build_sysroot/sysroot -Cpanic=abort" echo "[TEST] rustc test suite" - COMPILETEST_FORCE_STAGE0=1 ./x.py test --run always --stage 0 src/test/ui/ --rustc-args "$RUSTC_ARGS" + COMPILETEST_FORCE_STAGE0=1 ./x.py test --run always --stage 0 tests/ui/ --rustc-args "$RUSTC_ARGS" } function clean_ui_tests() { diff --git a/compiler/rustc_const_eval/src/transform/check_consts/post_drop_elaboration.rs b/compiler/rustc_const_eval/src/transform/check_consts/post_drop_elaboration.rs index d4570c5988914..cf4e875c91f0b 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/post_drop_elaboration.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/post_drop_elaboration.rs @@ -95,7 +95,7 @@ impl<'tcx> Visitor<'tcx> for CheckLiveDrops<'_, 'tcx> { } // Drop elaboration is not precise enough to accept code like - // `src/test/ui/consts/control-flow/drop-pass.rs`; e.g., when an `Option>` is + // `tests/ui/consts/control-flow/drop-pass.rs`; e.g., when an `Option>` is // initialized with `None` and never changed, it still emits drop glue. // Hence we additionally check the qualifs here to allow more code to pass. if self.qualifs.needs_non_const_drop(self.ccx, dropped_place.local, location) { diff --git a/compiler/rustc_hir_analysis/src/astconv/errors.rs b/compiler/rustc_hir_analysis/src/astconv/errors.rs index e6465d641f1e6..5368dc0735bc1 100644 --- a/compiler/rustc_hir_analysis/src/astconv/errors.rs +++ b/compiler/rustc_hir_analysis/src/astconv/errors.rs @@ -267,7 +267,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { // segments, even though `trait_ref.path.segments` is of length `1`. Work // around that bug here, even though it should be fixed elsewhere. // This would otherwise cause an invalid suggestion. For an example, look at - // `src/test/ui/issues/issue-28344.rs` where instead of the following: + // `tests/ui/issues/issue-28344.rs` where instead of the following: // // error[E0191]: the value of the associated type `Output` // (from trait `std::ops::BitXor`) must be specified diff --git a/compiler/rustc_hir_typeck/src/coercion.rs b/compiler/rustc_hir_typeck/src/coercion.rs index 9e91a3f90764c..a0e086bc26103 100644 --- a/compiler/rustc_hir_typeck/src/coercion.rs +++ b/compiler/rustc_hir_typeck/src/coercion.rs @@ -13,7 +13,7 @@ //! useful for freezing mut things (that is, when the expected type is &T //! but you have &mut T) and also for avoiding the linearity //! of mut things (when the expected is &mut T and you have &mut T). See -//! the various `src/test/ui/coerce/*.rs` tests for +//! the various `tests/ui/coerce/*.rs` tests for //! examples of where this is useful. //! //! ## Subtle note diff --git a/compiler/rustc_hir_typeck/src/demand.rs b/compiler/rustc_hir_typeck/src/demand.rs index 33fc7413a679c..6c128d0aa1a65 100644 --- a/compiler/rustc_hir_typeck/src/demand.rs +++ b/compiler/rustc_hir_typeck/src/demand.rs @@ -1855,7 +1855,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { let mut expectation = Some(expected_ty); while let hir::ExprKind::MethodCall(_, rcvr, ..) = expr.kind { // Getting to the root receiver and asserting it is a fn call let's us ignore cases in - // `src/test/ui/methods/issues/issue-90315.stderr`. + // `tests/ui/methods/issues/issue-90315.stderr`. expr = rcvr; // If we have more than one layer of calls, then the expected ty // cannot guide the method probe. diff --git a/compiler/rustc_hir_typeck/src/fallback.rs b/compiler/rustc_hir_typeck/src/fallback.rs index ac6b0924ab572..2cc7b357c0a46 100644 --- a/compiler/rustc_hir_typeck/src/fallback.rs +++ b/compiler/rustc_hir_typeck/src/fallback.rs @@ -308,7 +308,7 @@ impl<'tcx> FnCtxt<'_, 'tcx> { if relationship.self_in_trait && relationship.output { // This case falls back to () to ensure that the code pattern in - // src/test/ui/never_type/fallback-closure-ret.rs continues to + // tests/ui/never_type/fallback-closure-ret.rs continues to // compile when never_type_fallback is enabled. // // This rule is not readily explainable from first principles, diff --git a/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs b/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs index 594a60c70a798..47c4b7d743193 100644 --- a/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs +++ b/compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs @@ -670,8 +670,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // Note: this check is pessimistic, as the inference type could be matched with something other // than the opaque type, but then we need a new `TypeRelation` just for this specific case and // can't re-use `sup` below. - // See src/test/ui/impl-trait/hidden-type-is-opaque.rs and - // src/test/ui/impl-trait/hidden-type-is-opaque-2.rs for examples that hit this path. + // See tests/ui/impl-trait/hidden-type-is-opaque.rs and + // tests/ui/impl-trait/hidden-type-is-opaque-2.rs for examples that hit this path. if formal_ret.has_infer_types() { for ty in ret_ty.walk() { if let ty::subst::GenericArgKind::Type(ty) = ty.unpack() diff --git a/compiler/rustc_hir_typeck/src/generator_interior/mod.rs b/compiler/rustc_hir_typeck/src/generator_interior/mod.rs index e4ac91befac61..7990d95310be5 100644 --- a/compiler/rustc_hir_typeck/src/generator_interior/mod.rs +++ b/compiler/rustc_hir_typeck/src/generator_interior/mod.rs @@ -448,7 +448,7 @@ impl<'a, 'tcx> Visitor<'tcx> for InteriorVisitor<'a, 'tcx> { // the yield, even if it's not borrowed or referenced after the yield. Ideally this would // *only* happen for types with observable drop, not all types which wrap them, but that // doesn't match the behavior of MIR borrowck and causes ICEs. See the FIXME comment in - // src/test/ui/generator/drop-tracking-parent-expression.rs. + // tests/ui/generator/drop-tracking-parent-expression.rs. let scope = if self.drop_ranges.is_borrowed_temporary(expr) || ty.map_or(true, |ty| { // Avoid ICEs in needs_drop. diff --git a/compiler/rustc_hir_typeck/src/method/confirm.rs b/compiler/rustc_hir_typeck/src/method/confirm.rs index a2c6e246610b2..7d2ba1fd09df5 100644 --- a/compiler/rustc_hir_typeck/src/method/confirm.rs +++ b/compiler/rustc_hir_typeck/src/method/confirm.rs @@ -90,7 +90,7 @@ impl<'a, 'tcx> ConfirmContext<'a, 'tcx> { // If there is a `Self: Sized` bound and `Self` is a trait object, it is possible that // something which derefs to `Self` actually implements the trait and the caller // wanted to make a static dispatch on it but forgot to import the trait. - // See test `src/test/ui/issue-35976.rs`. + // See test `tests/ui/issue-35976.rs`. // // In that case, we'll error anyway, but we'll also re-run the search with all traits // in scope, and if we find another method which can be used, we'll output an diff --git a/compiler/rustc_hir_typeck/src/method/probe.rs b/compiler/rustc_hir_typeck/src/method/probe.rs index 02b4d5bb2fbe6..5d8383170f0dc 100644 --- a/compiler/rustc_hir_typeck/src/method/probe.rs +++ b/compiler/rustc_hir_typeck/src/method/probe.rs @@ -1713,7 +1713,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> { /// probe. This will result in a pending obligation so when more type-info is available we can /// make the final decision. /// - /// Example (`src/test/ui/method-two-trait-defer-resolution-1.rs`): + /// Example (`tests/ui/method-two-trait-defer-resolution-1.rs`): /// /// ```ignore (illustrative) /// trait Foo { ... } diff --git a/compiler/rustc_hir_typeck/src/upvar.rs b/compiler/rustc_hir_typeck/src/upvar.rs index a9347991e7f98..e12a575d5acde 100644 --- a/compiler/rustc_hir_typeck/src/upvar.rs +++ b/compiler/rustc_hir_typeck/src/upvar.rs @@ -663,7 +663,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { // fields of some type, the observable drop order will remain the same as it previously // was even though we're dropping each capture individually. // See https://github.com/rust-lang/project-rfc-2229/issues/42 and - // `src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs`. + // `tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs`. for (_, captures) in &mut root_var_min_capture_list { captures.sort_by(|capture1, capture2| { for (p1, p2) in capture1.place.projections.iter().zip(&capture2.place.projections) { diff --git a/compiler/rustc_infer/src/infer/combine.rs b/compiler/rustc_infer/src/infer/combine.rs index 9a1c49c1aa6af..77e38e47fcfa0 100644 --- a/compiler/rustc_infer/src/infer/combine.rs +++ b/compiler/rustc_infer/src/infer/combine.rs @@ -219,7 +219,7 @@ impl<'tcx> InferCtxt<'tcx> { /// /// As `3 + 4` contains `N` in its substs, this must not succeed. /// - /// See `src/test/ui/const-generics/occurs-check/` for more examples where this is relevant. + /// See `tests/ui/const-generics/occurs-check/` for more examples where this is relevant. #[instrument(level = "debug", skip(self))] fn unify_const_variable( &self, diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs index 5c3e9a2d5cccd..66db1a2f92890 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs @@ -310,7 +310,7 @@ pub fn unexpected_hidden_region_diagnostic<'tcx>( // Ugh. This is a painful case: the hidden region is not one // that we can easily summarize or explain. This can happen // in a case like - // `src/test/ui/multiple-lifetimes/ordinary-bounds-unsuited.rs`: + // `tests/ui/multiple-lifetimes/ordinary-bounds-unsuited.rs`: // // ``` // fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b> { @@ -1395,7 +1395,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { /// `swap_secondary_and_primary` is used to make projection errors in particular nicer by using /// the message in `secondary_span` as the primary label, and apply the message that would /// otherwise be used for the primary label on the `secondary_span` `Span`. This applies on - /// E0271, like `src/test/ui/issues/issue-39970.stderr`. + /// E0271, like `tests/ui/issues/issue-39970.stderr`. #[instrument( level = "debug", skip(self, diag, secondary_span, swap_secondary_and_primary, prefer_label) diff --git a/compiler/rustc_mir_transform/src/unreachable_prop.rs b/compiler/rustc_mir_transform/src/unreachable_prop.rs index 06deca2fffb48..d4b1cfe433723 100644 --- a/compiler/rustc_mir_transform/src/unreachable_prop.rs +++ b/compiler/rustc_mir_transform/src/unreachable_prop.rs @@ -87,7 +87,7 @@ where // unless otherwise is unreachable, in which case deleting a normal branch causes it to be merged with // the otherwise, keeping its unreachable. // This looses information about reachability causing worse codegen. - // For example (see src/test/codegen/match-optimizes-away.rs) + // For example (see tests/codegen/match-optimizes-away.rs) // // pub enum Two { A, B } // pub fn identity(x: Two) -> Two { diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index 8fe47d862e77d..564cb1baa6909 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -1755,7 +1755,7 @@ impl SearchInterfaceForPrivateItemsVisitor<'_> { // clauses that the compiler inferred. We only want to // consider the ones that the user wrote. This is important // for the inferred outlives rules; see - // `src/test/ui/rfc-2093-infer-outlives/privacy.rs`. + // `tests/ui/rfc-2093-infer-outlives/privacy.rs`. self.visit_predicates(self.tcx.explicit_predicates_of(self.item_def_id)); self } diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs index cf63599626866..58f6fd2b006ff 100644 --- a/compiler/rustc_resolve/src/build_reduced_graph.rs +++ b/compiler/rustc_resolve/src/build_reduced_graph.rs @@ -514,7 +514,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> { ModuleKind::Block => unreachable!(), }; // HACK(eddyb) unclear how good this is, but keeping `$crate` - // in `source` breaks `src/test/ui/imports/import-crate-var.rs`, + // in `source` breaks `tests/ui/imports/import-crate-var.rs`, // while the current crate doesn't have a valid `crate_name`. if crate_name != kw::Empty { // `crate_name` should not be interpreted as relative. diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs index 26757965c9583..258d2e2d28c9d 100644 --- a/compiler/rustc_trait_selection/src/traits/coherence.rs +++ b/compiler/rustc_trait_selection/src/traits/coherence.rs @@ -749,7 +749,7 @@ impl<'tcx> TypeVisitor<'tcx> for OrphanChecker<'tcx> { /// /// This means that we can completely ignore constants during the orphan check. /// - /// See `src/test/ui/coherence/const-generics-orphan-check-ok.rs` for examples. + /// See `tests/ui/coherence/const-generics-orphan-check-ok.rs` for examples. /// /// [^1]: This might not hold for function pointers or trait objects in the future. /// As these should be quite rare as const arguments and especially rare as impl diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs index f7614997585cf..81966f3fcb231 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -282,7 +282,7 @@ fn project_and_unify_type<'cx, 'tcx>( }; debug!(?normalized, ?obligations, "project_and_unify_type result"); let actual = obligation.predicate.term; - // For an example where this is necessary see src/test/ui/impl-trait/nested-return-type2.rs + // For an example where this is necessary see tests/ui/impl-trait/nested-return-type2.rs // This allows users to omit re-mentioning all bounds on an associated type and just use an // `impl Trait` for the assoc type to add more bounds. let InferOk { value: actual, obligations: new } = diff --git a/compiler/rustc_trait_selection/src/traits/wf.rs b/compiler/rustc_trait_selection/src/traits/wf.rs index 0e0a883d9f590..fec4047ff49ba 100644 --- a/compiler/rustc_trait_selection/src/traits/wf.rs +++ b/compiler/rustc_trait_selection/src/traits/wf.rs @@ -232,7 +232,7 @@ fn extend_cause_with_original_assoc_item_obligation<'tcx>( // The obligation comes not from the current `impl` nor the `trait` being implemented, // but rather from a "second order" obligation, where an associated type has a // projection coming from another associated type. See - // `src/test/ui/associated-types/point-at-type-on-obligation-failure.rs` and + // `tests/ui/associated-types/point-at-type-on-obligation-failure.rs` and // `traits-assoc-type-in-supertrait-bad.rs`. if let Some(ty::Alias(ty::Projection, projection_ty)) = proj.term.ty().map(|ty| ty.kind()) && let Some(&impl_item_id) = @@ -640,7 +640,7 @@ impl<'tcx> WfPredicates<'tcx> { // hidden type that is not actually well formed and // can cause compiler crashes when the user abuses unsafe // code to procure such a closure. - // See src/test/ui/type-alias-impl-trait/wf_check_closures.rs + // See tests/ui/type-alias-impl-trait/wf_check_closures.rs let obligations = self.nominal_obligations(did, substs); self.out.extend(obligations); } diff --git a/compiler/rustc_ty_utils/src/abi.rs b/compiler/rustc_ty_utils/src/abi.rs index d1197774fe96c..dc1dd1bfaf8e7 100644 --- a/compiler/rustc_ty_utils/src/abi.rs +++ b/compiler/rustc_ty_utils/src/abi.rs @@ -35,7 +35,7 @@ fn fn_sig_for_fn_abi<'tcx>( // HACK(davidtwco,eddyb): This is a workaround for polymorphization considering // parameters unused if they show up in the signature, but not in the `mir::Body` // (i.e. due to being inside a projection that got normalized, see - // `src/test/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping + // `tests/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping // track of a polymorphization `ParamEnv` to allow normalizing later. // // We normalize the `fn_sig` again after substituting at a later point. diff --git a/library/std/src/sys/unix/process/process_unix/tests.rs b/library/std/src/sys/unix/process/process_unix/tests.rs index e0e2d478fad73..4c87f633a2609 100644 --- a/library/std/src/sys/unix/process/process_unix/tests.rs +++ b/library/std/src/sys/unix/process/process_unix/tests.rs @@ -3,7 +3,7 @@ use crate::panic::catch_unwind; use crate::process::Command; // Many of the other aspects of this situation, including heap alloc concurrency -// safety etc., are tested in src/test/ui/process/process-panic-after-fork.rs +// safety etc., are tested in tests/ui/process/process-panic-after-fork.rs #[test] fn exitstatus_display_tests() { diff --git a/rustfmt.toml b/rustfmt.toml index aa0d4888f082d..828d492a3d19c 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -13,7 +13,7 @@ ignore = [ # tests for now are not formatted, as they are sometimes pretty-printing constrained # (and generally rustfmt can move around comments in UI-testing incompatible ways) - "src/test", + "tests", # do not format submodules "library/backtrace", diff --git a/src/bootstrap/README.md b/src/bootstrap/README.md index 79c2eb31cdae0..8dce9e79e16b8 100644 --- a/src/bootstrap/README.md +++ b/src/bootstrap/README.md @@ -59,10 +59,10 @@ The script accepts commands, flags, and arguments to determine what to do: ./x.py test tidy # execute the UI test suite - ./x.py test src/test/ui + ./x.py test tests/ui # execute only some tests in the UI test suite - ./x.py test src/test/ui --test-args substring-of-test-name + ./x.py test tests/ui --test-args substring-of-test-name # execute tests in the standard library in stage0 ./x.py test --stage 0 library/std diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index b54bf43262198..52a83fa29c704 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -191,9 +191,9 @@ pub enum PathSet { /// A "suite" of paths. /// /// These can match as a path suffix (like `Set`), or as a prefix. For - /// example, a command-line value of `src/test/ui/abi/variadic-ffi.rs` - /// will match `src/test/ui`. A command-line value of `ui` would also - /// match `src/test/ui`. + /// example, a command-line value of `tests/ui/abi/variadic-ffi.rs` + /// will match `tests/ui`. A command-line value of `ui` would also + /// match `tests/ui`. Suite(TaskPath), } diff --git a/src/bootstrap/builder/tests.rs b/src/bootstrap/builder/tests.rs index 5f21d2b0067dc..d5fcd107502e3 100644 --- a/src/bootstrap/builder/tests.rs +++ b/src/bootstrap/builder/tests.rs @@ -78,7 +78,7 @@ macro_rules! rustc { #[test] fn test_valid() { // make sure multi suite paths are accepted - check_cli(["test", "src/test/ui/attr-start.rs", "src/test/ui/attr-shebang.rs"]); + check_cli(["test", "tests/ui/attr-start.rs", "tests/ui/attr-shebang.rs"]); } #[test] diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index 6b211d3ec6e89..68d1db0160a2e 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -1193,7 +1193,7 @@ impl Step for Sysroot { ); if builder.config.rust_remap_debuginfo { eprintln!( - "warning: some `src/test/ui` tests will fail when lacking `{}`", + "warning: some `tests/ui` tests will fail when lacking `{}`", sysroot_lib_rustlib_src_rust.display(), ); } diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py index 31cc4aa57bbea..0af329e7007ac 100755 --- a/src/bootstrap/configure.py +++ b/src/bootstrap/configure.py @@ -45,7 +45,7 @@ def v(*args): o("llvm-link-shared", "llvm.link-shared", "prefer shared linking to LLVM (llvm-config --link-shared)") o("rpath", "rust.rpath", "build rpaths into rustc itself") o("llvm-version-check", "llvm.version-check", "check if the LLVM version is supported, build anyway") -o("codegen-tests", "rust.codegen-tests", "run the src/test/codegen tests") +o("codegen-tests", "rust.codegen-tests", "run the tests/codegen tests") o("option-checking", None, "complain about unrecognized options in this configure script") o("ninja", "llvm.ninja", "build LLVM using the Ninja generator (for MSVC, requires building in the correct environment)") o("locked-deps", "build.locked-deps", "force Cargo.lock to be up to date") diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index 2c6d201d18fbe..52c3dc0bf7591 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -487,13 +487,13 @@ Arguments: This subcommand accepts a number of paths to test directories that should be compiled and run. For example: - ./x.py test src/test/ui + ./x.py test tests/ui ./x.py test library/std --test-args hash_map ./x.py test library/std --stage 0 --no-doc - ./x.py test src/test/ui --bless - ./x.py test src/test/ui --compare-mode chalk + ./x.py test tests/ui --bless + ./x.py test tests/ui --compare-mode chalk - Note that `test src/test/* --stage N` does NOT depend on `build compiler/rustc --stage N`; + Note that `test tests/* --stage N` does NOT depend on `build compiler/rustc --stage N`; just like `build library/std --stage N` it tests the compiler produced by the previous stage. diff --git a/src/bootstrap/mk/Makefile.in b/src/bootstrap/mk/Makefile.in index 5b2aba9aa2dc8..d54a21b9f1641 100644 --- a/src/bootstrap/mk/Makefile.in +++ b/src/bootstrap/mk/Makefile.in @@ -58,7 +58,7 @@ prepare: $(Q)$(BOOTSTRAP) build --stage 2 nonexistent/path/to/trigger/cargo/metadata TESTS_IN_2 := \ - src/test/ui \ + tests/ui \ src/tools/linkchecker ## MSVC native builders @@ -72,7 +72,7 @@ ci-subset-2: ## MingW native builders TESTS_IN_MINGW_2 := \ - src/test/ui + tests/ui ci-mingw-subset-1: $(Q)$(CFG_SRC_DIR)/x test --stage 2 $(TESTS_IN_MINGW_2:%=--exclude %) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 89bb2b770f90d..e0d1504c9c780 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -907,7 +907,7 @@ impl Step for TestHelpers { type Output = (); fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { - run.path("src/test/auxiliary/rust_test_helpers.c") + run.path("tests/auxiliary/rust_test_helpers.c") } fn make_run(run: RunConfig<'_>) { @@ -929,7 +929,7 @@ impl Step for TestHelpers { self.target }; let dst = builder.test_helpers_out(target); - let src = builder.src.join("src/test/auxiliary/rust_test_helpers.c"); + let src = builder.src.join("tests/auxiliary/rust_test_helpers.c"); if up_to_date(&src, &dst.join("librust_test_helpers.a")) { return; } @@ -958,7 +958,7 @@ impl Step for TestHelpers { .opt_level(0) .warnings(false) .debug(false) - .file(builder.src.join("src/test/auxiliary/rust_test_helpers.c")) + .file(builder.src.join("tests/auxiliary/rust_test_helpers.c")) .compile("rust_test_helpers"); } } diff --git a/src/bootstrap/setup.rs b/src/bootstrap/setup.rs index ca4feac6fac70..004601cb68b10 100644 --- a/src/bootstrap/setup.rs +++ b/src/bootstrap/setup.rs @@ -144,7 +144,7 @@ pub fn setup(config: &Config, profile: Profile) { Profile::Tools => &[ "check", "build", - "test src/test/rustdoc*", + "test tests/rustdoc*", "test src/tools/clippy", "test src/tools/miri", "test src/tools/rustfmt", diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index ea906be7e3ac2..159f2fba671c9 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -841,7 +841,7 @@ impl Step for RustdocJSStd { const ONLY_HOSTS: bool = true; fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { - run.suite_path("src/test/rustdoc-js-std") + run.suite_path("tests/rustdoc-js-std") } fn make_run(run: RunConfig<'_>) { @@ -860,10 +860,10 @@ impl Step for RustdocJSStd { .arg("--doc-folder") .arg(builder.doc_out(self.target)) .arg("--test-folder") - .arg(builder.src.join("src/test/rustdoc-js-std")); + .arg(builder.src.join("tests/rustdoc-js-std")); for path in &builder.paths { if let Some(p) = - util::is_valid_test_suite_arg(path, "src/test/rustdoc-js-std", builder) + util::is_valid_test_suite_arg(path, "tests/rustdoc-js-std", builder) { if !p.ends_with(".js") { eprintln!("A non-js file was given: `{}`", path.display()); @@ -879,7 +879,7 @@ impl Step for RustdocJSStd { }); builder.run(&mut command); } else { - builder.info("No nodejs found, skipping \"src/test/rustdoc-js-std\" tests"); + builder.info("No nodejs found, skipping \"tests/rustdoc-js-std\" tests"); } } } @@ -896,7 +896,7 @@ impl Step for RustdocJSNotStd { const ONLY_HOSTS: bool = true; fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { - run.suite_path("src/test/rustdoc-js") + run.suite_path("tests/rustdoc-js") } fn make_run(run: RunConfig<'_>) { @@ -911,11 +911,11 @@ impl Step for RustdocJSNotStd { target: self.target, mode: "js-doc-test", suite: "rustdoc-js", - path: "src/test/rustdoc-js", + path: "tests/rustdoc-js", compare_mode: None, }); } else { - builder.info("No nodejs found, skipping \"src/test/rustdoc-js\" tests"); + builder.info("No nodejs found, skipping \"tests/rustdoc-js\" tests"); } } } @@ -976,7 +976,7 @@ impl Step for RustdocGUI { fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { let builder = run.builder; - let run = run.suite_path("src/test/rustdoc-gui"); + let run = run.suite_path("tests/rustdoc-gui"); run.lazy_default_condition(Box::new(move || { builder.config.nodejs.is_some() && builder @@ -1025,7 +1025,7 @@ impl Step for RustdocGUI { // We remove existing folder to be sure there won't be artifacts remaining. builder.clear_if_dirty(&out_dir, &builder.rustdoc(self.compiler)); - let src_path = builder.build.src.join("src/test/rustdoc-gui/src"); + let src_path = builder.build.src.join("tests/rustdoc-gui/src"); // We generate docs for the libraries present in the rustdoc-gui's src folder. for entry in src_path.read_dir().expect("read_dir call failed") { if let Ok(entry) = entry { @@ -1064,9 +1064,9 @@ impl Step for RustdocGUI { .arg("--doc-folder") .arg(out_dir.join("doc")) .arg("--tests-folder") - .arg(builder.build.src.join("src/test/rustdoc-gui")); + .arg(builder.build.src.join("tests/rustdoc-gui")); for path in &builder.paths { - if let Some(p) = util::is_valid_test_suite_arg(path, "src/test/rustdoc-gui", builder) { + if let Some(p) = util::is_valid_test_suite_arg(path, "tests/rustdoc-gui", builder) { if !p.ends_with(".goml") { eprintln!("A non-goml file was given: `{}`", path.display()); panic!("Cannot run rustdoc-gui tests"); @@ -1308,59 +1308,51 @@ macro_rules! test_definitions { }; } -default_test!(Ui { path: "src/test/ui", mode: "ui", suite: "ui" }); +default_test!(Ui { path: "tests/ui", mode: "ui", suite: "ui" }); default_test!(RunPassValgrind { - path: "src/test/run-pass-valgrind", + path: "tests/run-pass-valgrind", mode: "run-pass-valgrind", suite: "run-pass-valgrind" }); -default_test!(MirOpt { path: "src/test/mir-opt", mode: "mir-opt", suite: "mir-opt" }); +default_test!(MirOpt { path: "tests/mir-opt", mode: "mir-opt", suite: "mir-opt" }); -default_test!(Codegen { path: "src/test/codegen", mode: "codegen", suite: "codegen" }); +default_test!(Codegen { path: "tests/codegen", mode: "codegen", suite: "codegen" }); default_test!(CodegenUnits { - path: "src/test/codegen-units", + path: "tests/codegen-units", mode: "codegen-units", suite: "codegen-units" }); -default_test!(Incremental { - path: "src/test/incremental", - mode: "incremental", - suite: "incremental" -}); +default_test!(Incremental { path: "tests/incremental", mode: "incremental", suite: "incremental" }); default_test_with_compare_mode!(Debuginfo { - path: "src/test/debuginfo", + path: "tests/debuginfo", mode: "debuginfo", suite: "debuginfo", compare_mode: "split-dwarf" }); -host_test!(UiFullDeps { path: "src/test/ui-fulldeps", mode: "ui", suite: "ui-fulldeps" }); +host_test!(UiFullDeps { path: "tests/ui-fulldeps", mode: "ui", suite: "ui-fulldeps" }); -host_test!(Rustdoc { path: "src/test/rustdoc", mode: "rustdoc", suite: "rustdoc" }); -host_test!(RustdocUi { path: "src/test/rustdoc-ui", mode: "ui", suite: "rustdoc-ui" }); +host_test!(Rustdoc { path: "tests/rustdoc", mode: "rustdoc", suite: "rustdoc" }); +host_test!(RustdocUi { path: "tests/rustdoc-ui", mode: "ui", suite: "rustdoc-ui" }); -host_test!(RustdocJson { - path: "src/test/rustdoc-json", - mode: "rustdoc-json", - suite: "rustdoc-json" -}); +host_test!(RustdocJson { path: "tests/rustdoc-json", mode: "rustdoc-json", suite: "rustdoc-json" }); -host_test!(Pretty { path: "src/test/pretty", mode: "pretty", suite: "pretty" }); +host_test!(Pretty { path: "tests/pretty", mode: "pretty", suite: "pretty" }); -default_test!(RunMake { path: "src/test/run-make", mode: "run-make", suite: "run-make" }); +default_test!(RunMake { path: "tests/run-make", mode: "run-make", suite: "run-make" }); host_test!(RunMakeFullDeps { - path: "src/test/run-make-fulldeps", + path: "tests/run-make-fulldeps", mode: "run-make", suite: "run-make-fulldeps" }); -default_test!(Assembly { path: "src/test/assembly", mode: "assembly", suite: "assembly" }); +default_test!(Assembly { path: "tests/assembly", mode: "assembly", suite: "assembly" }); #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] struct Compiletest { @@ -1472,7 +1464,7 @@ note: if you're sure you want to do this, please open an issue as to why. In the cmd.arg("--rust-demangler-path").arg(rust_demangler); } - cmd.arg("--src-base").arg(builder.src.join("src/test").join(suite)); + cmd.arg("--src-base").arg(builder.src.join("tests").join(suite)); cmd.arg("--build-base").arg(testdir(builder, compiler.host).join(suite)); cmd.arg("--sysroot-base").arg(builder.sysroot(compiler)); cmd.arg("--stage-id").arg(format!("stage{}-{}", compiler.stage, target)); @@ -1936,7 +1928,7 @@ impl Step for ErrorIndex { fn make_run(run: RunConfig<'_>) { // error_index_generator depends on librustdoc. Use the compiler that // is normally used to build rustdoc for other tests (like compiletest - // tests in src/test/rustdoc) so that it shares the same artifacts. + // tests in tests/rustdoc) so that it shares the same artifacts. let compiler = run.builder.compiler(run.builder.top_stage, run.builder.config.build); run.builder.ensure(ErrorIndex { compiler }); } @@ -2233,7 +2225,7 @@ impl Step for CrateRustdoc { builder.compiler(builder.top_stage, target) } else { // Use the previous stage compiler to reuse the artifacts that are - // created when running compiletest for src/test/rustdoc. If this used + // created when running compiletest for tests/rustdoc. If this used // `compiler`, then it would cause rustdoc to be built *again*, which // isn't really necessary. builder.compiler_for(builder.top_stage, target, target) @@ -2349,7 +2341,7 @@ impl Step for CrateRustdocJsonTypes { let target = self.host; // Use the previous stage compiler to reuse the artifacts that are - // created when running compiletest for src/test/rustdoc. If this used + // created when running compiletest for tests/rustdoc. If this used // `compiler`, then it would cause rustdoc to be built *again*, which // isn't really necessary. let compiler = builder.compiler_for(builder.top_stage, target, target); diff --git a/src/ci/docker/host-x86_64/dist-i586-gnu-i586-i686-musl/Dockerfile b/src/ci/docker/host-x86_64/dist-i586-gnu-i586-i686-musl/Dockerfile index 26eb69f2eae93..34829adf79bcf 100644 --- a/src/ci/docker/host-x86_64/dist-i586-gnu-i586-i686-musl/Dockerfile +++ b/src/ci/docker/host-x86_64/dist-i586-gnu-i586-i686-musl/Dockerfile @@ -48,7 +48,7 @@ RUN CC=gcc CFLAGS="-m32 -Wa,-mrelax-relocations=no" \ rm -rf /build # FIXME: musl really shouldn't be linking libgcc_s.so, as it's linked to glibc, -# but it's required by src/test/ui/proc-macro/crt-static.rs. Ubuntu:16.04 gcc-5 +# but it's required by tests/ui/proc-macro/crt-static.rs. Ubuntu:16.04 gcc-5 # had libgcc_s.so as a symlink to the absolute libgcc_s.so.1, but now it's an # ld-script that expects to find libgcc_s.so.1 in the library search path. # See also https://github.com/rust-lang/rust/issues/82521 diff --git a/src/ci/docker/host-x86_64/dist-various-1/Dockerfile b/src/ci/docker/host-x86_64/dist-various-1/Dockerfile index cd0f01faa1bfa..4576e6d4fa256 100644 --- a/src/ci/docker/host-x86_64/dist-various-1/Dockerfile +++ b/src/ci/docker/host-x86_64/dist-various-1/Dockerfile @@ -183,7 +183,7 @@ ENV RUST_CONFIGURE_ARGS \ --disable-docs ENV SCRIPT \ - python3 ../x.py --stage 2 test --host='' --target $RUN_MAKE_TARGETS src/test/run-make && \ + python3 ../x.py --stage 2 test --host='' --target $RUN_MAKE_TARGETS tests/run-make && \ python3 ../x.py dist --host='' --target $TARGETS # sccache diff --git a/src/ci/docker/host-x86_64/i686-gnu/Dockerfile b/src/ci/docker/host-x86_64/i686-gnu/Dockerfile index cb6559707d962..d9e58386256d3 100644 --- a/src/ci/docker/host-x86_64/i686-gnu/Dockerfile +++ b/src/ci/docker/host-x86_64/i686-gnu/Dockerfile @@ -27,6 +27,6 @@ ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu # this slow job. ENV SCRIPT python3 ../x.py --stage 2 test \ --exclude src/bootstrap \ - --exclude src/test/rustdoc-js \ + --exclude tests/rustdoc-js \ --exclude src/tools/error_index_generator \ --exclude src/tools/linkchecker diff --git a/src/ci/docker/host-x86_64/test-various/Dockerfile b/src/ci/docker/host-x86_64/test-various/Dockerfile index cf4451f8b33b6..930f58baf02e2 100644 --- a/src/ci/docker/host-x86_64/test-various/Dockerfile +++ b/src/ci/docker/host-x86_64/test-various/Dockerfile @@ -59,16 +59,16 @@ ENV NO_OVERFLOW_CHECKS=1 ENV WASM_TARGETS=wasm32-unknown-unknown ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $WASM_TARGETS \ - src/test/run-make \ - src/test/ui \ - src/test/mir-opt \ - src/test/codegen-units \ + tests/run-make \ + tests/ui \ + tests/mir-opt \ + tests/codegen-units \ library/core ENV NVPTX_TARGETS=nvptx64-nvidia-cuda ENV NVPTX_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $NVPTX_TARGETS \ - src/test/run-make \ - src/test/assembly + tests/run-make \ + tests/assembly ENV MUSL_TARGETS=x86_64-unknown-linux-musl \ CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \ diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-debug/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-debug/Dockerfile index c2b002055a8fc..735d4d4dfcfa1 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-debug/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-debug/Dockerfile @@ -46,4 +46,4 @@ ENV RUST_CONFIGURE_ARGS \ ENV SCRIPT \ python3 ../x.py --stage 2 build && \ - python3 ../x.py --stage 2 test src/test/run-make-fulldeps --test-args clang + python3 ../x.py --stage 2 test tests/run-make-fulldeps --test-args clang diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13-stage1/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13-stage1/Dockerfile index 16976a9428ef1..bcbf58253b190 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13-stage1/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13-stage1/Dockerfile @@ -45,5 +45,5 @@ ENV SCRIPT python2.7 ../x.py --stage 1 test --exclude src/tools/tidy && \ # the PR is approved and tested for merging. # It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`, # despite having different output on 32-bit vs 64-bit targets. - python2.7 ../x.py --stage 1 test src/test/mir-opt \ + python2.7 ../x.py --stage 1 test tests/mir-opt \ --host='' --target=i686-unknown-linux-gnu diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13/Dockerfile index 06f15bd121174..9fc9e9cbffbed 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-llvm-13/Dockerfile @@ -56,14 +56,14 @@ ENV SCRIPT ../x.py --stage 2 test --exclude src/tools/tidy && \ # the PR is approved and tested for merging. # It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`, # despite having different output on 32-bit vs 64-bit targets. - ../x --stage 2 test src/test/mir-opt \ + ../x --stage 2 test tests/mir-opt \ --host='' --target=i686-unknown-linux-gnu && \ # Run the UI test suite again, but in `--pass=check` mode # # This is intended to make sure that both `--pass=check` continues to # work. # - ../x.ps1 --stage 2 test src/test/ui --pass=check \ + ../x.ps1 --stage 2 test tests/ui --pass=check \ --host='' --target=i686-unknown-linux-gnu && \ # Run tidy at the very end, after all the other tests. python2.7 ../x.py --stage 2 test src/tools/tidy diff --git a/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile b/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile index 58c0c5db1a5d6..85f2f84a44c32 100644 --- a/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile +++ b/src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile @@ -84,5 +84,5 @@ ENV RUST_CONFIGURE_ARGS \ --save-toolstates=/tmp/toolstate/toolstates.json ENV SCRIPT /tmp/checktools.sh ../x.py && \ - NODE_PATH=`npm root -g` python3 ../x.py test src/test/rustdoc-gui --stage 2 \ + NODE_PATH=`npm root -g` python3 ../x.py test tests/rustdoc-gui --stage 2 \ --test-args "'--no-sandbox --jobs 1'" diff --git a/src/ci/github-actions/ci.yml b/src/ci/github-actions/ci.yml index d33396dcc80fe..d2a9264c84a12 100644 --- a/src/ci/github-actions/ci.yml +++ b/src/ci/github-actions/ci.yml @@ -511,7 +511,7 @@ jobs: - name: x86_64-apple-1 env: &env-x86_64-apple-tests - SCRIPT: ./x.py --stage 2 test --exclude src/test/ui --exclude src/test/rustdoc --exclude src/test/run-make-fulldeps + SCRIPT: ./x.py --stage 2 test --exclude tests/ui --exclude tests/rustdoc --exclude tests/run-make-fulldeps RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 MACOSX_DEPLOYMENT_TARGET: 10.8 @@ -523,7 +523,7 @@ jobs: - name: x86_64-apple-2 env: - SCRIPT: ./x.py --stage 2 test src/test/ui src/test/rustdoc src/test/run-make-fulldeps + SCRIPT: ./x.py --stage 2 test tests/ui tests/rustdoc tests/run-make-fulldeps <<: *env-x86_64-apple-tests <<: *job-macos-xl diff --git a/src/ci/scripts/should-skip-this.sh b/src/ci/scripts/should-skip-this.sh index a8a1899317f87..85d772253808a 100755 --- a/src/ci/scripts/should-skip-this.sh +++ b/src/ci/scripts/should-skip-this.sh @@ -27,7 +27,7 @@ if [[ -n "${CI_ONLY_WHEN_SUBMODULES_CHANGED-}" ]]; then # that breaks Miri. echo "Tool subtrees were updated" elif ! (git diff --quiet "$BASE_COMMIT" -- \ - src/test/rustdoc-gui \ + tests/rustdoc-gui \ src/librustdoc \ src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile \ src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version \ diff --git a/src/doc/rustc/src/platform-support/fuchsia.md b/src/doc/rustc/src/platform-support/fuchsia.md index 95c242cc161e9..29e70129a62ed 100644 --- a/src/doc/rustc/src/platform-support/fuchsia.md +++ b/src/doc/rustc/src/platform-support/fuchsia.md @@ -705,7 +705,7 @@ Where `${RUST_SRC_PATH}/install` is the `prefix` set in `config.toml` and Once our environment is started, we can run our tests using `x.py` as usual. The test runner script will run the compiled tests on an emulated Fuchsia device. To -run the full `src/test/ui` test suite: +run the full `tests/ui` test suite: ```sh ( \ @@ -713,7 +713,7 @@ run the full `src/test/ui` test suite: ./x.py \ --config config.toml \ --stage=2 \ - test src/test/ui \ + test tests/ui \ --target x86_64-unknown-fuchsia \ --run=always --jobs 1 \ --test-args --target-rustcflags \ diff --git a/src/doc/unstable-book/src/compiler-flags/codegen-backend.md b/src/doc/unstable-book/src/compiler-flags/codegen-backend.md index 3c0cd32fae172..67634be699316 100644 --- a/src/doc/unstable-book/src/compiler-flags/codegen-backend.md +++ b/src/doc/unstable-book/src/compiler-flags/codegen-backend.md @@ -12,7 +12,7 @@ backend. The library must be of crate type `dylib` and must contain a function named `__rustc_codegen_backend` with a signature of `fn() -> Box`. ## Example -See also the [`hotplug_codegen_backend`](https://github.com/rust-lang/rust/tree/master/src/test/run-make-fulldeps/hotplug_codegen_backend) test +See also the [`hotplug_codegen_backend`](https://github.com/rust-lang/rust/tree/master/tests/run-make-fulldeps/hotplug_codegen_backend) test for a full example. ```rust,ignore (partial-example) diff --git a/src/doc/unstable-book/src/language-features/plugin.md b/src/doc/unstable-book/src/language-features/plugin.md index 56fe9a31bfe3d..dfbb468d4df94 100644 --- a/src/doc/unstable-book/src/language-features/plugin.md +++ b/src/doc/unstable-book/src/language-features/plugin.md @@ -33,7 +33,7 @@ of a library. Plugins can extend [Rust's lint infrastructure](../../reference/attributes/diagnostics.md#lint-check-attributes) with additional checks for code style, safety, etc. Now let's write a plugin -[`lint-plugin-test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs) +[`lint-plugin-test.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui-fulldeps/auxiliary/lint-plugin-test.rs) that warns about any item named `lintme`. ```rust,ignore (requires-stage-2) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 91bc63f83b624..b2fa6e82acce2 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -707,7 +707,7 @@ h2.small-section-header > .anchor { /* In most contexts we use `overflow-wrap: anywhere` to ensure that we can wrap as much as needed on mobile (see - src/test/rustdoc-gui/type-declaration-overflow.goml for an example of why + tests/rustdoc-gui/type-declaration-overflow.goml for an example of why this matters). The `anywhere` value means: "Soft wrap opportunities introduced by the word break are considered when diff --git a/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile b/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile deleted file mode 100644 index 735d91bd27c51..0000000000000 --- a/src/test/run-make-fulldeps/alloc-no-oom-handling/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -include ../tools.mk - -all: - $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_global_oom_handling diff --git a/src/test/run-make-fulldeps/alloc-no-rc/Makefile b/src/test/run-make-fulldeps/alloc-no-rc/Makefile deleted file mode 100644 index 5f7ae70fa0268..0000000000000 --- a/src/test/run-make-fulldeps/alloc-no-rc/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -include ../tools.mk - -all: - $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_rc diff --git a/src/test/run-make-fulldeps/alloc-no-sync/Makefile b/src/test/run-make-fulldeps/alloc-no-sync/Makefile deleted file mode 100644 index 6a258a2ddfd69..0000000000000 --- a/src/test/run-make-fulldeps/alloc-no-sync/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -include ../tools.mk - -all: - $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/alloc/src/lib.rs --cfg no_sync diff --git a/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile b/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile deleted file mode 100644 index ec05ebea55582..0000000000000 --- a/src/test/run-make-fulldeps/core-no-fp-fmt-parse/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -include ../tools.mk - -all: - $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../../library/core/src/lib.rs --cfg no_fp_fmt_parse diff --git a/src/test/run-make/coverage/compiletest-ignore-dir b/src/test/run-make/coverage/compiletest-ignore-dir deleted file mode 100644 index b533b272d38cf..0000000000000 --- a/src/test/run-make/coverage/compiletest-ignore-dir +++ /dev/null @@ -1,3 +0,0 @@ -# Directory "coverage" supports the tests at prefix ../coverage-* - -# Use ./x.py [options] test src/test/run-make/coverage to run all related tests. diff --git a/src/tools/clippy/tests/ui/crashes/ice-6254.rs b/src/tools/clippy/tests/ui/crashes/ice-6254.rs index a2a60a1691534..8af60890390e7 100644 --- a/src/tools/clippy/tests/ui/crashes/ice-6254.rs +++ b/src/tools/clippy/tests/ui/crashes/ice-6254.rs @@ -1,4 +1,4 @@ -// originally from ./src/test/ui/pattern/usefulness/consts-opaque.rs +// originally from ./tests/ui/pattern/usefulness/consts-opaque.rs // panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', // compiler/rustc_mir_build/src/thir/pattern/_match.rs:2030:5 diff --git a/src/tools/clippy/tests/ui/crashes/ice-6255.rs b/src/tools/clippy/tests/ui/crashes/ice-6255.rs index bd4a81d98e2e7..ccde6aa2b0f77 100644 --- a/src/tools/clippy/tests/ui/crashes/ice-6255.rs +++ b/src/tools/clippy/tests/ui/crashes/ice-6255.rs @@ -1,4 +1,4 @@ -// originally from rustc ./src/test/ui/macros/issue-78325-inconsistent-resolution.rs +// originally from rustc ./tests/ui/macros/issue-78325-inconsistent-resolution.rs // inconsistent resolution for a macro macro_rules! define_other_core { diff --git a/src/tools/clippy/tests/ui/crashes/ice-6256.rs b/src/tools/clippy/tests/ui/crashes/ice-6256.rs index 67308263dadda..f9ee3e058c111 100644 --- a/src/tools/clippy/tests/ui/crashes/ice-6256.rs +++ b/src/tools/clippy/tests/ui/crashes/ice-6256.rs @@ -1,4 +1,4 @@ -// originally from rustc ./src/test/ui/regions/issue-78262.rs +// originally from rustc ./tests/ui/regions/issue-78262.rs // ICE: to get the signature of a closure, use substs.as_closure().sig() not fn_sig() #![allow(clippy::upper_case_acronyms)] diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs index a4f1167bf9d15..a5f5eb447da6c 100644 --- a/src/tools/compiletest/src/common.rs +++ b/src/tools/compiletest/src/common.rs @@ -240,7 +240,7 @@ pub struct Config { pub mode: Mode, /// The test suite (essentially which directory is running, but without the - /// directory prefix such as src/test) + /// directory prefix such as tests) pub suite: String, /// The debugger to use in debuginfo mode. Unset otherwise. diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 91c701a5ddd2e..2aea30870ff5e 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -774,7 +774,7 @@ fn make_test_name( revision: Option<&String>, ) -> test::TestName { // Print the name of the file, relative to the repository root. - // `src_base` looks like `/path/to/rust/src/test/ui` + // `src_base` looks like `/path/to/rust/tests/ui` let root_directory = config.src_base.parent().unwrap().parent().unwrap().parent().unwrap(); let path = testpaths.file.strip_prefix(root_directory).unwrap(); let debugger = match config.debugger { diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 7e48dd2066068..a16ab11e2f978 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -2102,9 +2102,7 @@ impl<'test> TestCx<'test> { .parent() .unwrap() // chop off `ui` .parent() - .unwrap() // chop off `test` - .parent() - .unwrap(); // chop off `src` + .unwrap(); // chop off `tests` args.push(src.join("src/etc/wasm32-shim.js").display().to_string()); } @@ -2932,7 +2930,7 @@ impl<'test> TestCx<'test> { fn run_rmake_test(&self) { let cwd = env::current_dir().unwrap(); - let src_root = self.config.src_base.parent().unwrap().parent().unwrap().parent().unwrap(); + let src_root = self.config.src_base.parent().unwrap().parent().unwrap(); let src_root = cwd.join(&src_root); let tmpdir = cwd.join(self.output_base_name()); @@ -3548,8 +3546,8 @@ impl<'test> TestCx<'test> { normalize_path(parent_dir, "$DIR"); let source_bases = &[ - // Source base on the current filesystem (calculated as parent of `src/test/$suite`): - Some(self.config.src_base.parent().unwrap().parent().unwrap().parent().unwrap().into()), + // Source base on the current filesystem (calculated as parent of `tests/$suite`): + Some(self.config.src_base.parent().unwrap().parent().unwrap().into()), // Source base on the sysroot (from the src components downloaded by `download-rustc`): Some(self.config.sysroot_base.join("lib").join("rustlib").join("src").join("rust")), // Virtual `/rustc/$sha` remapped paths (if `remap-debuginfo` is enabled): diff --git a/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/mbe/meta_syntax.rs b/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/mbe/meta_syntax.rs index 8aff784087c30..7e7b400442187 100644 --- a/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/mbe/meta_syntax.rs +++ b/src/tools/rust-analyzer/crates/hir-def/src/macro_expansion_tests/mbe/meta_syntax.rs @@ -94,7 +94,7 @@ macro_rules! m2 { () => ( ${invalid()} ) } #[test] fn test_rustc_issue_57597() { - // + // check( r#" macro_rules! m0 { ($($($i:ident)?)+) => {}; } diff --git a/src/tools/rust-analyzer/crates/ide-db/src/generated/lints.rs b/src/tools/rust-analyzer/crates/ide-db/src/generated/lints.rs index 64dd2bb5f2d14..f0c3690962aff 100644 --- a/src/tools/rust-analyzer/crates/ide-db/src/generated/lints.rs +++ b/src/tools/rust-analyzer/crates/ide-db/src/generated/lints.rs @@ -3624,7 +3624,7 @@ of a library. Plugins can extend [Rust's lint infrastructure](../../reference/attributes/diagnostics.md#lint-check-attributes) with additional checks for code style, safety, etc. Now let's write a plugin -[`lint-plugin-test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs) +[`lint-plugin-test.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui-fulldeps/auxiliary/lint-plugin-test.rs) that warns about any item named `lintme`. ```rust,ignore (requires-stage-2) diff --git a/src/tools/rustdoc-gui/tester.js b/src/tools/rustdoc-gui/tester.js index 554b2f81fa3bb..2f0ca1ec3d0bf 100644 --- a/src/tools/rustdoc-gui/tester.js +++ b/src/tools/rustdoc-gui/tester.js @@ -262,7 +262,7 @@ async function main(argv) { console.log(""); console.log( "`browser-ui-test` crashed unexpectedly. Please try again with adding `--test-args \ ---no-sandbox` at the end. For example: `x.py test src/test/rustdoc-gui --test-args --no-sandbox`"); +--no-sandbox` at the end. For example: `x.py test tests/rustdoc-gui --test-args --no-sandbox`"); console.log(""); } }; diff --git a/src/tools/rustfmt/tests/source/issue-2445.rs b/src/tools/rustfmt/tests/source/issue-2445.rs index 84ce6e647b83c..deef429dbee08 100644 --- a/src/tools/rustfmt/tests/source/issue-2445.rs +++ b/src/tools/rustfmt/tests/source/issue-2445.rs @@ -1,6 +1,6 @@ test!(RunPassPretty { // comment - path: "src/test/run-pass/pretty", + path: "tests/run-pass/pretty", mode: "pretty", suite: "run-pass", default: false, @@ -9,7 +9,7 @@ test!(RunPassPretty { test!(RunPassPretty { // comment - path: "src/test/run-pass/pretty", + path: "tests/run-pass/pretty", mode: "pretty", suite: "run-pass", default: false, diff --git a/src/tools/rustfmt/tests/target/issue-2445.rs b/src/tools/rustfmt/tests/target/issue-2445.rs index 1bc7752fd1619..463c5d4957686 100644 --- a/src/tools/rustfmt/tests/target/issue-2445.rs +++ b/src/tools/rustfmt/tests/target/issue-2445.rs @@ -1,6 +1,6 @@ test!(RunPassPretty { // comment - path: "src/test/run-pass/pretty", + path: "tests/run-pass/pretty", mode: "pretty", suite: "run-pass", default: false, @@ -9,7 +9,7 @@ test!(RunPassPretty { test!(RunPassPretty { // comment - path: "src/test/run-pass/pretty", + path: "tests/run-pass/pretty", mode: "pretty", suite: "run-pass", default: false, diff --git a/src/tools/tidy/src/debug_artifacts.rs b/src/tools/tidy/src/debug_artifacts.rs index 9880a32ad0c28..0dd9c1e160cee 100644 --- a/src/tools/tidy/src/debug_artifacts.rs +++ b/src/tools/tidy/src/debug_artifacts.rs @@ -1,14 +1,12 @@ //! Tidy check to prevent creation of unnecessary debug artifacts while running tests. use crate::walk::{filter_dirs, walk}; -use std::path::{Path, PathBuf}; +use std::path::Path; const GRAPHVIZ_POSTFLOW_MSG: &str = "`borrowck_graphviz_postflow` attribute in test"; -pub fn check(path: &Path, bad: &mut bool) { - let test_dir: PathBuf = path.join("test"); - - walk(&test_dir, &mut filter_dirs, &mut |entry, contents| { +pub fn check(test_dir: &Path, bad: &mut bool) { + walk(test_dir, &mut filter_dirs, &mut |entry, contents| { let filename = entry.path(); let is_rust = filename.extension().map_or(false, |ext| ext == "rs"); if !is_rust { diff --git a/src/tools/tidy/src/edition.rs b/src/tools/tidy/src/edition.rs index 8a7c4460dc7ea..8172e3d292bd9 100644 --- a/src/tools/tidy/src/edition.rs +++ b/src/tools/tidy/src/edition.rs @@ -11,7 +11,10 @@ fn is_edition_2021(mut line: &str) -> bool { pub fn check(path: &Path, bad: &mut bool) { walk( path, - &mut |path| filter_dirs(path) || path.ends_with("src/test"), + &mut |path| { + filter_dirs(path) + || (path.ends_with("tests") && path.join("COMPILER_TESTS.md").exists()) + }, &mut |entry, contents| { let file = entry.path(); let filename = file.file_name().unwrap(); diff --git a/src/tools/tidy/src/error_codes.rs b/src/tools/tidy/src/error_codes.rs index 9aacc07e0ab4f..ac8b5f6834c63 100644 --- a/src/tools/tidy/src/error_codes.rs +++ b/src/tools/tidy/src/error_codes.rs @@ -8,7 +8,7 @@ //! - The explanation is expected to contain a `doctest` that fails with the correct error code. (`EXEMPT_FROM_DOCTEST` *currently* bypasses this check) //! - Note that other stylistic conventions for markdown files are checked in the `style.rs` tidy check. //! -//! 3. We check that the error code has a UI test in `src/test/ui/error-codes/`. +//! 3. We check that the error code has a UI test in `tests/ui/error-codes/`. //! - We ensure that there is both a `Exxxx.rs` file and a corresponding `Exxxx.stderr` file. //! - We also ensure that the error code is used in the tests. //! - *Currently*, it is possible to opt-out of this check with the `EXEMPTED_FROM_TEST` constant. @@ -24,7 +24,7 @@ use crate::walk::{filter_dirs, walk, walk_many}; const ERROR_CODES_PATH: &str = "compiler/rustc_error_codes/src/error_codes.rs"; const ERROR_DOCS_PATH: &str = "compiler/rustc_error_codes/src/error_codes/"; -const ERROR_TESTS_PATH: &str = "src/test/ui/error-codes/"; +const ERROR_TESTS_PATH: &str = "tests/ui/error-codes/"; // Error codes that (for some reason) can't have a doctest in their explanation. Error codes are still expected to provide a code example, even if untested. const IGNORE_DOCTEST_CHECK: &[&str] = @@ -270,14 +270,14 @@ fn check_error_codes_tests( if !test_path.exists() && !IGNORE_UI_TEST_CHECK.contains(&code.as_str()) { verbose_print!( verbose, - "warning: Error code `{code}` needs to have at least one UI test in the `src/test/ui/error-codes/` directory`!" + "warning: Error code `{code}` needs to have at least one UI test in the `tests/error-codes/` directory`!" ); continue; } if IGNORE_UI_TEST_CHECK.contains(&code.as_str()) { if test_path.exists() { errors.push(format!( - "Error code `{code}` has a UI test in `src/test/ui/error-codes/{code}.rs`, it shouldn't be listed in `EXEMPTED_FROM_TEST`!" + "Error code `{code}` has a UI test in `tests/ui/error-codes/{code}.rs`, it shouldn't be listed in `EXEMPTED_FROM_TEST`!" )); } continue; diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs index f10ecf5f201e3..af92e6eb86376 100644 --- a/src/tools/tidy/src/features.rs +++ b/src/tools/tidy/src/features.rs @@ -82,6 +82,7 @@ pub fn collect_lib_features(base_src_path: &Path) -> Features { pub fn check( src_path: &Path, + tests_path: &Path, compiler_path: &Path, lib_path: &Path, bad: &mut bool, @@ -95,10 +96,10 @@ pub fn check( walk_many( &[ - &src_path.join("test/ui"), - &src_path.join("test/ui-fulldeps"), - &src_path.join("test/rustdoc-ui"), - &src_path.join("test/rustdoc"), + &tests_path.join("ui"), + &tests_path.join("ui-fulldeps"), + &tests_path.join("rustdoc-ui"), + &tests_path.join("rustdoc"), ], &mut filter_dirs, &mut |entry, contents| { @@ -480,7 +481,7 @@ fn map_lib_features( ) { walk( base_src_path, - &mut |path| filter_dirs(path) || path.ends_with("src/test"), + &mut |path| filter_dirs(path) || path.ends_with("tests"), &mut |entry, contents| { let file = entry.path(); let filename = file.file_name().unwrap().to_string_lossy(); diff --git a/src/tools/tidy/src/main.rs b/src/tools/tidy/src/main.rs index a5685ba7c942c..2a4853b37be39 100644 --- a/src/tools/tidy/src/main.rs +++ b/src/tools/tidy/src/main.rs @@ -25,6 +25,7 @@ fn main() { .expect("concurrency must be a number"); let src_path = root_path.join("src"); + let tests_path = root_path.join("tests"); let library_path = root_path.join("library"); let compiler_path = root_path.join("compiler"); let librustdoc_path = src_path.join("librustdoc"); @@ -68,16 +69,16 @@ fn main() { } } - check!(target_specific_tests, &src_path); + check!(target_specific_tests, &tests_path); // Checks that are done on the cargo workspace. check!(deps, &root_path, &cargo); check!(extdeps, &root_path); // Checks over tests. - check!(debug_artifacts, &src_path); - check!(ui_tests, &src_path); - check!(mir_opt_tests, &src_path, bless); + check!(debug_artifacts, &tests_path); + check!(ui_tests, &tests_path); + check!(mir_opt_tests, &tests_path, bless); // Checks that only make sense for the compiler. check!(error_codes, &root_path, &[&compiler_path, &librustdoc_path], verbose); @@ -88,6 +89,7 @@ fn main() { // Checks that need to be done for both the compiler and std libraries. check!(unit_tests, &src_path); + check!(unit_tests, &tests_path); check!(unit_tests, &compiler_path); check!(unit_tests, &library_path); @@ -96,14 +98,17 @@ fn main() { } check!(style, &src_path); + check!(style, &tests_path); check!(style, &compiler_path); check!(style, &library_path); check!(edition, &src_path); check!(edition, &compiler_path); check!(edition, &library_path); + check!(edition, &tests_path); check!(alphabetical, &src_path); + check!(alphabetical, &tests_path); check!(alphabetical, &compiler_path); check!(alphabetical, &library_path); @@ -113,7 +118,14 @@ fn main() { drain_handles(&mut handles); let mut flag = false; - let r = features::check(&src_path, &compiler_path, &library_path, &mut flag, verbose); + let r = features::check( + &src_path, + &tests_path, + &compiler_path, + &library_path, + &mut flag, + verbose, + ); if flag { bad.store(true, Ordering::Relaxed); } diff --git a/src/tools/tidy/src/mir_opt_tests.rs b/src/tools/tidy/src/mir_opt_tests.rs index 018573284ea79..2a9dcac2e8d38 100644 --- a/src/tools/tidy/src/mir_opt_tests.rs +++ b/src/tools/tidy/src/mir_opt_tests.rs @@ -6,7 +6,7 @@ use std::path::{Path, PathBuf}; fn check_unused_files(path: &Path, bless: bool, bad: &mut bool) { let mut rs_files = Vec::::new(); let mut output_files = HashSet::::new(); - let files = walkdir::WalkDir::new(&path.join("test/mir-opt")).into_iter(); + let files = walkdir::WalkDir::new(&path.join("mir-opt")).into_iter(); for file in files.filter_map(Result::ok).filter(|e| e.file_type().is_file()) { let filepath = file.path(); @@ -41,7 +41,7 @@ fn check_unused_files(path: &Path, bless: bool, bad: &mut bool) { } fn check_dash_files(path: &Path, bless: bool, bad: &mut bool) { - for file in walkdir::WalkDir::new(&path.join("test/mir-opt")) + for file in walkdir::WalkDir::new(&path.join("mir-opt")) .into_iter() .filter_map(Result::ok) .filter(|e| e.file_type().is_file()) diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs index b293efdc585ad..5c4ba86936456 100644 --- a/src/tools/tidy/src/style.rs +++ b/src/tools/tidy/src/style.rs @@ -246,7 +246,7 @@ pub fn check(path: &Path, bad: &mut bool) { // This list should ideally be sourced from rustfmt.toml but we don't want to add a toml // parser to tidy. !file.ancestors().any(|a| { - a.ends_with("src/test") || + (a.ends_with("tests") && a.join("COMPILER_TESTS.md").exists()) || a.ends_with("src/doc/book") }); @@ -324,9 +324,10 @@ pub fn check(path: &Path, bad: &mut bool) { if trimmed.contains("dbg!") && !trimmed.starts_with("//") - && !file - .ancestors() - .any(|a| a.ends_with("src/test") || a.ends_with("library/alloc/tests")) + && !file.ancestors().any(|a| { + (a.ends_with("tests") && a.join("COMPILER_TESTS.md").exists()) + || a.ends_with("library/alloc/tests") + }) && filename != "tests.rs" { suppressible_tidy_err!( diff --git a/src/tools/tidy/src/target_specific_tests.rs b/src/tools/tidy/src/target_specific_tests.rs index 8ba25705666a9..d7a157672cf5b 100644 --- a/src/tools/tidy/src/target_specific_tests.rs +++ b/src/tools/tidy/src/target_specific_tests.rs @@ -35,9 +35,8 @@ struct RevisionInfo<'a> { } pub fn check(path: &Path, bad: &mut bool) { - let tests = path.join("test"); crate::walk::walk( - &tests, + path, &mut |path| path.extension().map(|p| p == "rs") == Some(false), &mut |entry, content| { let file = entry.path().display(); diff --git a/src/tools/tidy/src/ui_tests.rs b/src/tools/tidy/src/ui_tests.rs index 166d09fa8b068..806e84025c4a2 100644 --- a/src/tools/tidy/src/ui_tests.rs +++ b/src/tools/tidy/src/ui_tests.rs @@ -13,13 +13,13 @@ const ROOT_ENTRY_LIMIT: usize = 939; const ISSUES_ENTRY_LIMIT: usize = 1998; fn check_entries(path: &Path, bad: &mut bool) { - for dir in Walk::new(&path.join("test/ui")) { + for dir in Walk::new(&path.join("ui")) { if let Ok(entry) = dir { if entry.file_type().map(|ft| ft.is_dir()).unwrap_or(false) { let dir_path = entry.path(); // Use special values for these dirs. - let is_root = path.join("test/ui") == dir_path; - let is_issues_dir = path.join("test/ui/issues") == dir_path; + let is_root = path.join("ui") == dir_path; + let is_issues_dir = path.join("ui/issues") == dir_path; let limit = if is_root { ROOT_ENTRY_LIMIT } else if is_issues_dir { @@ -53,7 +53,7 @@ fn check_entries(path: &Path, bad: &mut bool) { pub fn check(path: &Path, bad: &mut bool) { check_entries(&path, bad); - for path in &[&path.join("test/ui"), &path.join("test/ui-fulldeps")] { + for path in &[&path.join("ui"), &path.join("ui-fulldeps")] { crate::walk::walk_no_read(path, &mut |_| false, &mut |entry| { let file_path = entry.path(); if let Some(ext) = file_path.extension() { diff --git a/src/tools/tidy/src/unit_tests.rs b/src/tools/tidy/src/unit_tests.rs index 2c23b6ebc75e2..27f36c855613d 100644 --- a/src/tools/tidy/src/unit_tests.rs +++ b/src/tools/tidy/src/unit_tests.rs @@ -22,7 +22,7 @@ pub fn check(root_path: &Path, bad: &mut bool) { let file_name = path.file_name().unwrap_or_default(); if path.is_dir() { filter_dirs(path) - || path.ends_with("src/test") + || path.ends_with("tests") || path.ends_with("src/doc") || (file_name == "tests" || file_name == "benches") && !is_core(path) } else { diff --git a/src/test/COMPILER_TESTS.md b/tests/COMPILER_TESTS.md similarity index 100% rename from src/test/COMPILER_TESTS.md rename to tests/COMPILER_TESTS.md diff --git a/src/test/assembly/aarch64-naked-fn-no-bti-prolog.rs b/tests/assembly/aarch64-naked-fn-no-bti-prolog.rs similarity index 100% rename from src/test/assembly/aarch64-naked-fn-no-bti-prolog.rs rename to tests/assembly/aarch64-naked-fn-no-bti-prolog.rs diff --git a/src/test/assembly/aarch64-pointer-auth.rs b/tests/assembly/aarch64-pointer-auth.rs similarity index 100% rename from src/test/assembly/aarch64-pointer-auth.rs rename to tests/assembly/aarch64-pointer-auth.rs diff --git a/src/test/assembly/align_offset.rs b/tests/assembly/align_offset.rs similarity index 100% rename from src/test/assembly/align_offset.rs rename to tests/assembly/align_offset.rs diff --git a/src/test/assembly/asm/aarch64-el2vmsa.rs b/tests/assembly/asm/aarch64-el2vmsa.rs similarity index 100% rename from src/test/assembly/asm/aarch64-el2vmsa.rs rename to tests/assembly/asm/aarch64-el2vmsa.rs diff --git a/src/test/assembly/asm/aarch64-modifiers.rs b/tests/assembly/asm/aarch64-modifiers.rs similarity index 100% rename from src/test/assembly/asm/aarch64-modifiers.rs rename to tests/assembly/asm/aarch64-modifiers.rs diff --git a/src/test/assembly/asm/aarch64-outline-atomics.rs b/tests/assembly/asm/aarch64-outline-atomics.rs similarity index 100% rename from src/test/assembly/asm/aarch64-outline-atomics.rs rename to tests/assembly/asm/aarch64-outline-atomics.rs diff --git a/src/test/assembly/asm/aarch64-types.rs b/tests/assembly/asm/aarch64-types.rs similarity index 100% rename from src/test/assembly/asm/aarch64-types.rs rename to tests/assembly/asm/aarch64-types.rs diff --git a/src/test/assembly/asm/arm-modifiers.rs b/tests/assembly/asm/arm-modifiers.rs similarity index 100% rename from src/test/assembly/asm/arm-modifiers.rs rename to tests/assembly/asm/arm-modifiers.rs diff --git a/src/test/assembly/asm/arm-types.rs b/tests/assembly/asm/arm-types.rs similarity index 100% rename from src/test/assembly/asm/arm-types.rs rename to tests/assembly/asm/arm-types.rs diff --git a/src/test/assembly/asm/avr-modifiers.rs b/tests/assembly/asm/avr-modifiers.rs similarity index 100% rename from src/test/assembly/asm/avr-modifiers.rs rename to tests/assembly/asm/avr-modifiers.rs diff --git a/src/test/assembly/asm/avr-types.rs b/tests/assembly/asm/avr-types.rs similarity index 100% rename from src/test/assembly/asm/avr-types.rs rename to tests/assembly/asm/avr-types.rs diff --git a/src/test/assembly/asm/bpf-types.rs b/tests/assembly/asm/bpf-types.rs similarity index 100% rename from src/test/assembly/asm/bpf-types.rs rename to tests/assembly/asm/bpf-types.rs diff --git a/src/test/assembly/asm/global_asm.rs b/tests/assembly/asm/global_asm.rs similarity index 100% rename from src/test/assembly/asm/global_asm.rs rename to tests/assembly/asm/global_asm.rs diff --git a/src/test/assembly/asm/hexagon-types.rs b/tests/assembly/asm/hexagon-types.rs similarity index 100% rename from src/test/assembly/asm/hexagon-types.rs rename to tests/assembly/asm/hexagon-types.rs diff --git a/src/test/assembly/asm/mips-types.rs b/tests/assembly/asm/mips-types.rs similarity index 100% rename from src/test/assembly/asm/mips-types.rs rename to tests/assembly/asm/mips-types.rs diff --git a/src/test/assembly/asm/msp430-types.rs b/tests/assembly/asm/msp430-types.rs similarity index 100% rename from src/test/assembly/asm/msp430-types.rs rename to tests/assembly/asm/msp430-types.rs diff --git a/src/test/assembly/asm/nvptx-types.rs b/tests/assembly/asm/nvptx-types.rs similarity index 100% rename from src/test/assembly/asm/nvptx-types.rs rename to tests/assembly/asm/nvptx-types.rs diff --git a/src/test/assembly/asm/powerpc-types.rs b/tests/assembly/asm/powerpc-types.rs similarity index 100% rename from src/test/assembly/asm/powerpc-types.rs rename to tests/assembly/asm/powerpc-types.rs diff --git a/src/test/assembly/asm/riscv-types.rs b/tests/assembly/asm/riscv-types.rs similarity index 100% rename from src/test/assembly/asm/riscv-types.rs rename to tests/assembly/asm/riscv-types.rs diff --git a/src/test/assembly/asm/s390x-types.rs b/tests/assembly/asm/s390x-types.rs similarity index 100% rename from src/test/assembly/asm/s390x-types.rs rename to tests/assembly/asm/s390x-types.rs diff --git a/src/test/assembly/asm/wasm-types.rs b/tests/assembly/asm/wasm-types.rs similarity index 100% rename from src/test/assembly/asm/wasm-types.rs rename to tests/assembly/asm/wasm-types.rs diff --git a/src/test/assembly/asm/x86-modifiers.rs b/tests/assembly/asm/x86-modifiers.rs similarity index 100% rename from src/test/assembly/asm/x86-modifiers.rs rename to tests/assembly/asm/x86-modifiers.rs diff --git a/src/test/assembly/asm/x86-types.rs b/tests/assembly/asm/x86-types.rs similarity index 100% rename from src/test/assembly/asm/x86-types.rs rename to tests/assembly/asm/x86-types.rs diff --git a/src/test/assembly/auxiliary/breakpoint-panic-handler.rs b/tests/assembly/auxiliary/breakpoint-panic-handler.rs similarity index 100% rename from src/test/assembly/auxiliary/breakpoint-panic-handler.rs rename to tests/assembly/auxiliary/breakpoint-panic-handler.rs diff --git a/src/test/assembly/auxiliary/non-inline-dependency.rs b/tests/assembly/auxiliary/non-inline-dependency.rs similarity index 100% rename from src/test/assembly/auxiliary/non-inline-dependency.rs rename to tests/assembly/auxiliary/non-inline-dependency.rs diff --git a/src/test/assembly/dwarf5.rs b/tests/assembly/dwarf5.rs similarity index 100% rename from src/test/assembly/dwarf5.rs rename to tests/assembly/dwarf5.rs diff --git a/src/test/assembly/is_aligned.rs b/tests/assembly/is_aligned.rs similarity index 100% rename from src/test/assembly/is_aligned.rs rename to tests/assembly/is_aligned.rs diff --git a/src/test/assembly/niche-prefer-zero.rs b/tests/assembly/niche-prefer-zero.rs similarity index 100% rename from src/test/assembly/niche-prefer-zero.rs rename to tests/assembly/niche-prefer-zero.rs diff --git a/src/test/assembly/nvptx-arch-default.rs b/tests/assembly/nvptx-arch-default.rs similarity index 100% rename from src/test/assembly/nvptx-arch-default.rs rename to tests/assembly/nvptx-arch-default.rs diff --git a/src/test/assembly/nvptx-arch-emit-asm.rs b/tests/assembly/nvptx-arch-emit-asm.rs similarity index 100% rename from src/test/assembly/nvptx-arch-emit-asm.rs rename to tests/assembly/nvptx-arch-emit-asm.rs diff --git a/src/test/assembly/nvptx-arch-link-arg.rs b/tests/assembly/nvptx-arch-link-arg.rs similarity index 100% rename from src/test/assembly/nvptx-arch-link-arg.rs rename to tests/assembly/nvptx-arch-link-arg.rs diff --git a/src/test/assembly/nvptx-arch-target-cpu.rs b/tests/assembly/nvptx-arch-target-cpu.rs similarity index 100% rename from src/test/assembly/nvptx-arch-target-cpu.rs rename to tests/assembly/nvptx-arch-target-cpu.rs diff --git a/src/test/assembly/nvptx-atomics.rs b/tests/assembly/nvptx-atomics.rs similarity index 100% rename from src/test/assembly/nvptx-atomics.rs rename to tests/assembly/nvptx-atomics.rs diff --git a/src/test/assembly/nvptx-internalizing.rs b/tests/assembly/nvptx-internalizing.rs similarity index 100% rename from src/test/assembly/nvptx-internalizing.rs rename to tests/assembly/nvptx-internalizing.rs diff --git a/src/test/assembly/nvptx-kernel-abi/nvptx-kernel-args-abi-v7.rs b/tests/assembly/nvptx-kernel-abi/nvptx-kernel-args-abi-v7.rs similarity index 100% rename from src/test/assembly/nvptx-kernel-abi/nvptx-kernel-args-abi-v7.rs rename to tests/assembly/nvptx-kernel-abi/nvptx-kernel-args-abi-v7.rs diff --git a/src/test/assembly/nvptx-linking-binary.rs b/tests/assembly/nvptx-linking-binary.rs similarity index 100% rename from src/test/assembly/nvptx-linking-binary.rs rename to tests/assembly/nvptx-linking-binary.rs diff --git a/src/test/assembly/nvptx-linking-cdylib.rs b/tests/assembly/nvptx-linking-cdylib.rs similarity index 100% rename from src/test/assembly/nvptx-linking-cdylib.rs rename to tests/assembly/nvptx-linking-cdylib.rs diff --git a/src/test/assembly/nvptx-safe-naming.rs b/tests/assembly/nvptx-safe-naming.rs similarity index 100% rename from src/test/assembly/nvptx-safe-naming.rs rename to tests/assembly/nvptx-safe-naming.rs diff --git a/src/test/assembly/panic-no-unwind-no-uwtable.rs b/tests/assembly/panic-no-unwind-no-uwtable.rs similarity index 100% rename from src/test/assembly/panic-no-unwind-no-uwtable.rs rename to tests/assembly/panic-no-unwind-no-uwtable.rs diff --git a/src/test/assembly/panic-unwind-no-uwtable.rs b/tests/assembly/panic-unwind-no-uwtable.rs similarity index 100% rename from src/test/assembly/panic-unwind-no-uwtable.rs rename to tests/assembly/panic-unwind-no-uwtable.rs diff --git a/src/test/assembly/pic-relocation-model.rs b/tests/assembly/pic-relocation-model.rs similarity index 100% rename from src/test/assembly/pic-relocation-model.rs rename to tests/assembly/pic-relocation-model.rs diff --git a/src/test/assembly/pie-relocation-model.rs b/tests/assembly/pie-relocation-model.rs similarity index 100% rename from src/test/assembly/pie-relocation-model.rs rename to tests/assembly/pie-relocation-model.rs diff --git a/src/test/assembly/sparc-struct-abi.rs b/tests/assembly/sparc-struct-abi.rs similarity index 100% rename from src/test/assembly/sparc-struct-abi.rs rename to tests/assembly/sparc-struct-abi.rs diff --git a/src/test/assembly/stack-protector/stack-protector-heuristics-effect.rs b/tests/assembly/stack-protector/stack-protector-heuristics-effect.rs similarity index 100% rename from src/test/assembly/stack-protector/stack-protector-heuristics-effect.rs rename to tests/assembly/stack-protector/stack-protector-heuristics-effect.rs diff --git a/src/test/assembly/stack-protector/stack-protector-target-support.rs b/tests/assembly/stack-protector/stack-protector-target-support.rs similarity index 100% rename from src/test/assembly/stack-protector/stack-protector-target-support.rs rename to tests/assembly/stack-protector/stack-protector-target-support.rs diff --git a/src/test/assembly/static-relocation-model.rs b/tests/assembly/static-relocation-model.rs similarity index 100% rename from src/test/assembly/static-relocation-model.rs rename to tests/assembly/static-relocation-model.rs diff --git a/src/test/assembly/strict_provenance.rs b/tests/assembly/strict_provenance.rs similarity index 100% rename from src/test/assembly/strict_provenance.rs rename to tests/assembly/strict_provenance.rs diff --git a/src/test/assembly/target-feature-multiple.rs b/tests/assembly/target-feature-multiple.rs similarity index 95% rename from src/test/assembly/target-feature-multiple.rs rename to tests/assembly/target-feature-multiple.rs index 18d896e86b215..5c5d93863d71e 100644 --- a/src/test/assembly/target-feature-multiple.rs +++ b/tests/assembly/target-feature-multiple.rs @@ -14,7 +14,7 @@ // > LLVM ERROR: Cannot select: 0x7f00f400c010: i32,i32,ch = X86ISD::RDSEED 0x7f00f400bfa8:2 // > In function: foo // -// See also src/test/codegen/target-feature-overrides.rs +// See also tests/codegen/target-feature-overrides.rs #![feature(no_core, lang_items, link_llvm_intrinsics, abi_unadjusted)] #![crate_type = "lib"] #![no_core] diff --git a/src/test/assembly/x86-stack-probes.rs b/tests/assembly/x86-stack-probes.rs similarity index 100% rename from src/test/assembly/x86-stack-probes.rs rename to tests/assembly/x86-stack-probes.rs diff --git a/src/test/assembly/x86_64-floating-point-clamp.rs b/tests/assembly/x86_64-floating-point-clamp.rs similarity index 100% rename from src/test/assembly/x86_64-floating-point-clamp.rs rename to tests/assembly/x86_64-floating-point-clamp.rs diff --git a/src/test/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-load.rs b/tests/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-load.rs similarity index 100% rename from src/test/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-load.rs rename to tests/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-load.rs diff --git a/src/test/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-ret.rs b/tests/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-ret.rs similarity index 100% rename from src/test/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-ret.rs rename to tests/assembly/x86_64-fortanix-unknown-sgx-lvi-generic-ret.rs diff --git a/src/test/assembly/x86_64-fortanix-unknown-sgx-lvi-inline-assembly.rs b/tests/assembly/x86_64-fortanix-unknown-sgx-lvi-inline-assembly.rs similarity index 100% rename from src/test/assembly/x86_64-fortanix-unknown-sgx-lvi-inline-assembly.rs rename to tests/assembly/x86_64-fortanix-unknown-sgx-lvi-inline-assembly.rs diff --git a/src/test/assembly/x86_64-naked-fn-no-cet-prolog.rs b/tests/assembly/x86_64-naked-fn-no-cet-prolog.rs similarity index 100% rename from src/test/assembly/x86_64-naked-fn-no-cet-prolog.rs rename to tests/assembly/x86_64-naked-fn-no-cet-prolog.rs diff --git a/src/test/assembly/x86_64-no-jump-tables.rs b/tests/assembly/x86_64-no-jump-tables.rs similarity index 100% rename from src/test/assembly/x86_64-no-jump-tables.rs rename to tests/assembly/x86_64-no-jump-tables.rs diff --git a/src/test/assembly/x86_64-sse_crc.rs b/tests/assembly/x86_64-sse_crc.rs similarity index 100% rename from src/test/assembly/x86_64-sse_crc.rs rename to tests/assembly/x86_64-sse_crc.rs diff --git a/src/test/auxiliary/rust_test_helpers.c b/tests/auxiliary/rust_test_helpers.c similarity index 100% rename from src/test/auxiliary/rust_test_helpers.c rename to tests/auxiliary/rust_test_helpers.c diff --git a/src/test/codegen-units/item-collection/asm-sym.rs b/tests/codegen-units/item-collection/asm-sym.rs similarity index 100% rename from src/test/codegen-units/item-collection/asm-sym.rs rename to tests/codegen-units/item-collection/asm-sym.rs diff --git a/src/test/codegen-units/item-collection/auxiliary/cgu_export_trait_method.rs b/tests/codegen-units/item-collection/auxiliary/cgu_export_trait_method.rs similarity index 100% rename from src/test/codegen-units/item-collection/auxiliary/cgu_export_trait_method.rs rename to tests/codegen-units/item-collection/auxiliary/cgu_export_trait_method.rs diff --git a/src/test/codegen-units/item-collection/auxiliary/cgu_extern_closures.rs b/tests/codegen-units/item-collection/auxiliary/cgu_extern_closures.rs similarity index 100% rename from src/test/codegen-units/item-collection/auxiliary/cgu_extern_closures.rs rename to tests/codegen-units/item-collection/auxiliary/cgu_extern_closures.rs diff --git a/src/test/codegen-units/item-collection/auxiliary/cgu_generic_function.rs b/tests/codegen-units/item-collection/auxiliary/cgu_generic_function.rs similarity index 100% rename from src/test/codegen-units/item-collection/auxiliary/cgu_generic_function.rs rename to tests/codegen-units/item-collection/auxiliary/cgu_generic_function.rs diff --git a/src/test/codegen-units/item-collection/cross-crate-closures.rs b/tests/codegen-units/item-collection/cross-crate-closures.rs similarity index 100% rename from src/test/codegen-units/item-collection/cross-crate-closures.rs rename to tests/codegen-units/item-collection/cross-crate-closures.rs diff --git a/src/test/codegen-units/item-collection/cross-crate-generic-functions.rs b/tests/codegen-units/item-collection/cross-crate-generic-functions.rs similarity index 100% rename from src/test/codegen-units/item-collection/cross-crate-generic-functions.rs rename to tests/codegen-units/item-collection/cross-crate-generic-functions.rs diff --git a/src/test/codegen-units/item-collection/cross-crate-trait-method.rs b/tests/codegen-units/item-collection/cross-crate-trait-method.rs similarity index 100% rename from src/test/codegen-units/item-collection/cross-crate-trait-method.rs rename to tests/codegen-units/item-collection/cross-crate-trait-method.rs diff --git a/src/test/codegen-units/item-collection/drop_in_place_intrinsic.rs b/tests/codegen-units/item-collection/drop_in_place_intrinsic.rs similarity index 100% rename from src/test/codegen-units/item-collection/drop_in_place_intrinsic.rs rename to tests/codegen-units/item-collection/drop_in_place_intrinsic.rs diff --git a/src/test/codegen-units/item-collection/function-as-argument.rs b/tests/codegen-units/item-collection/function-as-argument.rs similarity index 100% rename from src/test/codegen-units/item-collection/function-as-argument.rs rename to tests/codegen-units/item-collection/function-as-argument.rs diff --git a/src/test/codegen-units/item-collection/generic-drop-glue.rs b/tests/codegen-units/item-collection/generic-drop-glue.rs similarity index 100% rename from src/test/codegen-units/item-collection/generic-drop-glue.rs rename to tests/codegen-units/item-collection/generic-drop-glue.rs diff --git a/src/test/codegen-units/item-collection/generic-functions.rs b/tests/codegen-units/item-collection/generic-functions.rs similarity index 100% rename from src/test/codegen-units/item-collection/generic-functions.rs rename to tests/codegen-units/item-collection/generic-functions.rs diff --git a/src/test/codegen-units/item-collection/generic-impl.rs b/tests/codegen-units/item-collection/generic-impl.rs similarity index 100% rename from src/test/codegen-units/item-collection/generic-impl.rs rename to tests/codegen-units/item-collection/generic-impl.rs diff --git a/src/test/codegen-units/item-collection/impl-in-non-instantiated-generic.rs b/tests/codegen-units/item-collection/impl-in-non-instantiated-generic.rs similarity index 100% rename from src/test/codegen-units/item-collection/impl-in-non-instantiated-generic.rs rename to tests/codegen-units/item-collection/impl-in-non-instantiated-generic.rs diff --git a/src/test/codegen-units/item-collection/implicit-panic-call.rs b/tests/codegen-units/item-collection/implicit-panic-call.rs similarity index 100% rename from src/test/codegen-units/item-collection/implicit-panic-call.rs rename to tests/codegen-units/item-collection/implicit-panic-call.rs diff --git a/src/test/codegen-units/item-collection/instantiation-through-vtable.rs b/tests/codegen-units/item-collection/instantiation-through-vtable.rs similarity index 100% rename from src/test/codegen-units/item-collection/instantiation-through-vtable.rs rename to tests/codegen-units/item-collection/instantiation-through-vtable.rs diff --git a/src/test/codegen-units/item-collection/items-within-generic-items.rs b/tests/codegen-units/item-collection/items-within-generic-items.rs similarity index 100% rename from src/test/codegen-units/item-collection/items-within-generic-items.rs rename to tests/codegen-units/item-collection/items-within-generic-items.rs diff --git a/src/test/codegen-units/item-collection/non-generic-closures.rs b/tests/codegen-units/item-collection/non-generic-closures.rs similarity index 100% rename from src/test/codegen-units/item-collection/non-generic-closures.rs rename to tests/codegen-units/item-collection/non-generic-closures.rs diff --git a/src/test/codegen-units/item-collection/non-generic-drop-glue.rs b/tests/codegen-units/item-collection/non-generic-drop-glue.rs similarity index 100% rename from src/test/codegen-units/item-collection/non-generic-drop-glue.rs rename to tests/codegen-units/item-collection/non-generic-drop-glue.rs diff --git a/src/test/codegen-units/item-collection/non-generic-functions.rs b/tests/codegen-units/item-collection/non-generic-functions.rs similarity index 100% rename from src/test/codegen-units/item-collection/non-generic-functions.rs rename to tests/codegen-units/item-collection/non-generic-functions.rs diff --git a/src/test/codegen-units/item-collection/overloaded-operators.rs b/tests/codegen-units/item-collection/overloaded-operators.rs similarity index 100% rename from src/test/codegen-units/item-collection/overloaded-operators.rs rename to tests/codegen-units/item-collection/overloaded-operators.rs diff --git a/src/test/codegen-units/item-collection/static-init.rs b/tests/codegen-units/item-collection/static-init.rs similarity index 100% rename from src/test/codegen-units/item-collection/static-init.rs rename to tests/codegen-units/item-collection/static-init.rs diff --git a/src/test/codegen-units/item-collection/statics-and-consts.rs b/tests/codegen-units/item-collection/statics-and-consts.rs similarity index 100% rename from src/test/codegen-units/item-collection/statics-and-consts.rs rename to tests/codegen-units/item-collection/statics-and-consts.rs diff --git a/src/test/codegen-units/item-collection/trait-implementations.rs b/tests/codegen-units/item-collection/trait-implementations.rs similarity index 100% rename from src/test/codegen-units/item-collection/trait-implementations.rs rename to tests/codegen-units/item-collection/trait-implementations.rs diff --git a/src/test/codegen-units/item-collection/trait-method-as-argument.rs b/tests/codegen-units/item-collection/trait-method-as-argument.rs similarity index 100% rename from src/test/codegen-units/item-collection/trait-method-as-argument.rs rename to tests/codegen-units/item-collection/trait-method-as-argument.rs diff --git a/src/test/codegen-units/item-collection/trait-method-default-impl.rs b/tests/codegen-units/item-collection/trait-method-default-impl.rs similarity index 100% rename from src/test/codegen-units/item-collection/trait-method-default-impl.rs rename to tests/codegen-units/item-collection/trait-method-default-impl.rs diff --git a/src/test/codegen-units/item-collection/transitive-drop-glue.rs b/tests/codegen-units/item-collection/transitive-drop-glue.rs similarity index 100% rename from src/test/codegen-units/item-collection/transitive-drop-glue.rs rename to tests/codegen-units/item-collection/transitive-drop-glue.rs diff --git a/src/test/codegen-units/item-collection/tuple-drop-glue.rs b/tests/codegen-units/item-collection/tuple-drop-glue.rs similarity index 100% rename from src/test/codegen-units/item-collection/tuple-drop-glue.rs rename to tests/codegen-units/item-collection/tuple-drop-glue.rs diff --git a/src/test/codegen-units/item-collection/unreferenced-const-fn.rs b/tests/codegen-units/item-collection/unreferenced-const-fn.rs similarity index 100% rename from src/test/codegen-units/item-collection/unreferenced-const-fn.rs rename to tests/codegen-units/item-collection/unreferenced-const-fn.rs diff --git a/src/test/codegen-units/item-collection/unreferenced-inline-function.rs b/tests/codegen-units/item-collection/unreferenced-inline-function.rs similarity index 100% rename from src/test/codegen-units/item-collection/unreferenced-inline-function.rs rename to tests/codegen-units/item-collection/unreferenced-inline-function.rs diff --git a/src/test/codegen-units/item-collection/unsizing.rs b/tests/codegen-units/item-collection/unsizing.rs similarity index 100% rename from src/test/codegen-units/item-collection/unsizing.rs rename to tests/codegen-units/item-collection/unsizing.rs diff --git a/src/test/codegen-units/item-collection/unused-traits-and-generics.rs b/tests/codegen-units/item-collection/unused-traits-and-generics.rs similarity index 100% rename from src/test/codegen-units/item-collection/unused-traits-and-generics.rs rename to tests/codegen-units/item-collection/unused-traits-and-generics.rs diff --git a/src/test/codegen-units/partitioning/auxiliary/cgu_explicit_inlining.rs b/tests/codegen-units/partitioning/auxiliary/cgu_explicit_inlining.rs similarity index 100% rename from src/test/codegen-units/partitioning/auxiliary/cgu_explicit_inlining.rs rename to tests/codegen-units/partitioning/auxiliary/cgu_explicit_inlining.rs diff --git a/src/test/codegen-units/partitioning/auxiliary/cgu_extern_drop_glue.rs b/tests/codegen-units/partitioning/auxiliary/cgu_extern_drop_glue.rs similarity index 100% rename from src/test/codegen-units/partitioning/auxiliary/cgu_extern_drop_glue.rs rename to tests/codegen-units/partitioning/auxiliary/cgu_extern_drop_glue.rs diff --git a/src/test/codegen-units/partitioning/auxiliary/cgu_generic_function.rs b/tests/codegen-units/partitioning/auxiliary/cgu_generic_function.rs similarity index 100% rename from src/test/codegen-units/partitioning/auxiliary/cgu_generic_function.rs rename to tests/codegen-units/partitioning/auxiliary/cgu_generic_function.rs diff --git a/src/test/codegen-units/partitioning/auxiliary/shared_generics_aux.rs b/tests/codegen-units/partitioning/auxiliary/shared_generics_aux.rs similarity index 100% rename from src/test/codegen-units/partitioning/auxiliary/shared_generics_aux.rs rename to tests/codegen-units/partitioning/auxiliary/shared_generics_aux.rs diff --git a/src/test/codegen-units/partitioning/extern-drop-glue.rs b/tests/codegen-units/partitioning/extern-drop-glue.rs similarity index 100% rename from src/test/codegen-units/partitioning/extern-drop-glue.rs rename to tests/codegen-units/partitioning/extern-drop-glue.rs diff --git a/src/test/codegen-units/partitioning/extern-generic.rs b/tests/codegen-units/partitioning/extern-generic.rs similarity index 100% rename from src/test/codegen-units/partitioning/extern-generic.rs rename to tests/codegen-units/partitioning/extern-generic.rs diff --git a/src/test/codegen-units/partitioning/incremental-merging.rs b/tests/codegen-units/partitioning/incremental-merging.rs similarity index 100% rename from src/test/codegen-units/partitioning/incremental-merging.rs rename to tests/codegen-units/partitioning/incremental-merging.rs diff --git a/src/test/codegen-units/partitioning/inlining-from-extern-crate.rs b/tests/codegen-units/partitioning/inlining-from-extern-crate.rs similarity index 100% rename from src/test/codegen-units/partitioning/inlining-from-extern-crate.rs rename to tests/codegen-units/partitioning/inlining-from-extern-crate.rs diff --git a/src/test/codegen-units/partitioning/local-drop-glue.rs b/tests/codegen-units/partitioning/local-drop-glue.rs similarity index 100% rename from src/test/codegen-units/partitioning/local-drop-glue.rs rename to tests/codegen-units/partitioning/local-drop-glue.rs diff --git a/src/test/codegen-units/partitioning/local-generic.rs b/tests/codegen-units/partitioning/local-generic.rs similarity index 100% rename from src/test/codegen-units/partitioning/local-generic.rs rename to tests/codegen-units/partitioning/local-generic.rs diff --git a/src/test/codegen-units/partitioning/local-inlining-but-not-all.rs b/tests/codegen-units/partitioning/local-inlining-but-not-all.rs similarity index 100% rename from src/test/codegen-units/partitioning/local-inlining-but-not-all.rs rename to tests/codegen-units/partitioning/local-inlining-but-not-all.rs diff --git a/src/test/codegen-units/partitioning/local-inlining.rs b/tests/codegen-units/partitioning/local-inlining.rs similarity index 100% rename from src/test/codegen-units/partitioning/local-inlining.rs rename to tests/codegen-units/partitioning/local-inlining.rs diff --git a/src/test/codegen-units/partitioning/local-transitive-inlining.rs b/tests/codegen-units/partitioning/local-transitive-inlining.rs similarity index 100% rename from src/test/codegen-units/partitioning/local-transitive-inlining.rs rename to tests/codegen-units/partitioning/local-transitive-inlining.rs diff --git a/src/test/codegen-units/partitioning/methods-are-with-self-type.rs b/tests/codegen-units/partitioning/methods-are-with-self-type.rs similarity index 100% rename from src/test/codegen-units/partitioning/methods-are-with-self-type.rs rename to tests/codegen-units/partitioning/methods-are-with-self-type.rs diff --git a/src/test/codegen-units/partitioning/regular-modules.rs b/tests/codegen-units/partitioning/regular-modules.rs similarity index 100% rename from src/test/codegen-units/partitioning/regular-modules.rs rename to tests/codegen-units/partitioning/regular-modules.rs diff --git a/src/test/codegen-units/partitioning/shared-generics.rs b/tests/codegen-units/partitioning/shared-generics.rs similarity index 100% rename from src/test/codegen-units/partitioning/shared-generics.rs rename to tests/codegen-units/partitioning/shared-generics.rs diff --git a/src/test/codegen-units/partitioning/statics.rs b/tests/codegen-units/partitioning/statics.rs similarity index 100% rename from src/test/codegen-units/partitioning/statics.rs rename to tests/codegen-units/partitioning/statics.rs diff --git a/src/test/codegen-units/partitioning/vtable-through-const.rs b/tests/codegen-units/partitioning/vtable-through-const.rs similarity index 100% rename from src/test/codegen-units/partitioning/vtable-through-const.rs rename to tests/codegen-units/partitioning/vtable-through-const.rs diff --git a/src/test/codegen-units/polymorphization/unused_type_parameters.rs b/tests/codegen-units/polymorphization/unused_type_parameters.rs similarity index 100% rename from src/test/codegen-units/polymorphization/unused_type_parameters.rs rename to tests/codegen-units/polymorphization/unused_type_parameters.rs diff --git a/src/test/codegen/README.md b/tests/codegen/README.md similarity index 100% rename from src/test/codegen/README.md rename to tests/codegen/README.md diff --git a/src/test/codegen/abi-efiapi.rs b/tests/codegen/abi-efiapi.rs similarity index 100% rename from src/test/codegen/abi-efiapi.rs rename to tests/codegen/abi-efiapi.rs diff --git a/src/test/codegen/abi-main-signature-16bit-c-int.rs b/tests/codegen/abi-main-signature-16bit-c-int.rs similarity index 100% rename from src/test/codegen/abi-main-signature-16bit-c-int.rs rename to tests/codegen/abi-main-signature-16bit-c-int.rs diff --git a/src/test/codegen/abi-main-signature-32bit-c-int.rs b/tests/codegen/abi-main-signature-32bit-c-int.rs similarity index 100% rename from src/test/codegen/abi-main-signature-32bit-c-int.rs rename to tests/codegen/abi-main-signature-32bit-c-int.rs diff --git a/src/test/codegen/abi-repr-ext.rs b/tests/codegen/abi-repr-ext.rs similarity index 100% rename from src/test/codegen/abi-repr-ext.rs rename to tests/codegen/abi-repr-ext.rs diff --git a/src/test/codegen/abi-sysv64.rs b/tests/codegen/abi-sysv64.rs similarity index 100% rename from src/test/codegen/abi-sysv64.rs rename to tests/codegen/abi-sysv64.rs diff --git a/src/test/codegen/abi-x86-interrupt.rs b/tests/codegen/abi-x86-interrupt.rs similarity index 100% rename from src/test/codegen/abi-x86-interrupt.rs rename to tests/codegen/abi-x86-interrupt.rs diff --git a/src/test/codegen/abi-x86_64_sysv.rs b/tests/codegen/abi-x86_64_sysv.rs similarity index 100% rename from src/test/codegen/abi-x86_64_sysv.rs rename to tests/codegen/abi-x86_64_sysv.rs diff --git a/src/test/codegen/adjustments.rs b/tests/codegen/adjustments.rs similarity index 100% rename from src/test/codegen/adjustments.rs rename to tests/codegen/adjustments.rs diff --git a/src/test/codegen/align-enum.rs b/tests/codegen/align-enum.rs similarity index 100% rename from src/test/codegen/align-enum.rs rename to tests/codegen/align-enum.rs diff --git a/src/test/codegen/align-fn.rs b/tests/codegen/align-fn.rs similarity index 100% rename from src/test/codegen/align-fn.rs rename to tests/codegen/align-fn.rs diff --git a/src/test/codegen/align-struct.rs b/tests/codegen/align-struct.rs similarity index 100% rename from src/test/codegen/align-struct.rs rename to tests/codegen/align-struct.rs diff --git a/src/test/codegen/alloc-optimisation.rs b/tests/codegen/alloc-optimisation.rs similarity index 100% rename from src/test/codegen/alloc-optimisation.rs rename to tests/codegen/alloc-optimisation.rs diff --git a/src/test/codegen/array-clone.rs b/tests/codegen/array-clone.rs similarity index 100% rename from src/test/codegen/array-clone.rs rename to tests/codegen/array-clone.rs diff --git a/src/test/codegen/array-equality.rs b/tests/codegen/array-equality.rs similarity index 100% rename from src/test/codegen/array-equality.rs rename to tests/codegen/array-equality.rs diff --git a/src/test/codegen/asm-clobber_abi.rs b/tests/codegen/asm-clobber_abi.rs similarity index 100% rename from src/test/codegen/asm-clobber_abi.rs rename to tests/codegen/asm-clobber_abi.rs diff --git a/src/test/codegen/asm-clobbers.rs b/tests/codegen/asm-clobbers.rs similarity index 100% rename from src/test/codegen/asm-clobbers.rs rename to tests/codegen/asm-clobbers.rs diff --git a/src/test/codegen/asm-may_unwind.rs b/tests/codegen/asm-may_unwind.rs similarity index 100% rename from src/test/codegen/asm-may_unwind.rs rename to tests/codegen/asm-may_unwind.rs diff --git a/src/test/codegen/asm-multiple-options.rs b/tests/codegen/asm-multiple-options.rs similarity index 100% rename from src/test/codegen/asm-multiple-options.rs rename to tests/codegen/asm-multiple-options.rs diff --git a/src/test/codegen/asm-options.rs b/tests/codegen/asm-options.rs similarity index 100% rename from src/test/codegen/asm-options.rs rename to tests/codegen/asm-options.rs diff --git a/src/test/codegen/asm-powerpc-clobbers.rs b/tests/codegen/asm-powerpc-clobbers.rs similarity index 100% rename from src/test/codegen/asm-powerpc-clobbers.rs rename to tests/codegen/asm-powerpc-clobbers.rs diff --git a/src/test/codegen/asm-sanitize-llvm.rs b/tests/codegen/asm-sanitize-llvm.rs similarity index 100% rename from src/test/codegen/asm-sanitize-llvm.rs rename to tests/codegen/asm-sanitize-llvm.rs diff --git a/src/test/codegen/asm-target-clobbers.rs b/tests/codegen/asm-target-clobbers.rs similarity index 100% rename from src/test/codegen/asm-target-clobbers.rs rename to tests/codegen/asm-target-clobbers.rs diff --git a/src/test/codegen/async-fn-debug-awaitee-field.rs b/tests/codegen/async-fn-debug-awaitee-field.rs similarity index 100% rename from src/test/codegen/async-fn-debug-awaitee-field.rs rename to tests/codegen/async-fn-debug-awaitee-field.rs diff --git a/src/test/codegen/async-fn-debug-msvc.rs b/tests/codegen/async-fn-debug-msvc.rs similarity index 100% rename from src/test/codegen/async-fn-debug-msvc.rs rename to tests/codegen/async-fn-debug-msvc.rs diff --git a/src/test/codegen/async-fn-debug.rs b/tests/codegen/async-fn-debug.rs similarity index 100% rename from src/test/codegen/async-fn-debug.rs rename to tests/codegen/async-fn-debug.rs diff --git a/src/test/codegen/atomic-operations.rs b/tests/codegen/atomic-operations.rs similarity index 100% rename from src/test/codegen/atomic-operations.rs rename to tests/codegen/atomic-operations.rs diff --git a/src/test/codegen/autovectorize-f32x4.rs b/tests/codegen/autovectorize-f32x4.rs similarity index 100% rename from src/test/codegen/autovectorize-f32x4.rs rename to tests/codegen/autovectorize-f32x4.rs diff --git a/src/test/codegen/auxiliary/extern_decl.rs b/tests/codegen/auxiliary/extern_decl.rs similarity index 100% rename from src/test/codegen/auxiliary/extern_decl.rs rename to tests/codegen/auxiliary/extern_decl.rs diff --git a/src/test/codegen/auxiliary/nounwind.rs b/tests/codegen/auxiliary/nounwind.rs similarity index 100% rename from src/test/codegen/auxiliary/nounwind.rs rename to tests/codegen/auxiliary/nounwind.rs diff --git a/src/test/codegen/auxiliary/static_dllimport_aux.rs b/tests/codegen/auxiliary/static_dllimport_aux.rs similarity index 100% rename from src/test/codegen/auxiliary/static_dllimport_aux.rs rename to tests/codegen/auxiliary/static_dllimport_aux.rs diff --git a/src/test/codegen/auxiliary/thread_local_aux.rs b/tests/codegen/auxiliary/thread_local_aux.rs similarity index 100% rename from src/test/codegen/auxiliary/thread_local_aux.rs rename to tests/codegen/auxiliary/thread_local_aux.rs diff --git a/src/test/codegen/avr/avr-func-addrspace.rs b/tests/codegen/avr/avr-func-addrspace.rs similarity index 100% rename from src/test/codegen/avr/avr-func-addrspace.rs rename to tests/codegen/avr/avr-func-addrspace.rs diff --git a/src/test/codegen/binary-search-index-no-bound-check.rs b/tests/codegen/binary-search-index-no-bound-check.rs similarity index 100% rename from src/test/codegen/binary-search-index-no-bound-check.rs rename to tests/codegen/binary-search-index-no-bound-check.rs diff --git a/src/test/codegen/bool-cmp.rs b/tests/codegen/bool-cmp.rs similarity index 100% rename from src/test/codegen/bool-cmp.rs rename to tests/codegen/bool-cmp.rs diff --git a/src/test/codegen/box-maybe-uninit-llvm14.rs b/tests/codegen/box-maybe-uninit-llvm14.rs similarity index 100% rename from src/test/codegen/box-maybe-uninit-llvm14.rs rename to tests/codegen/box-maybe-uninit-llvm14.rs diff --git a/src/test/codegen/box-maybe-uninit.rs b/tests/codegen/box-maybe-uninit.rs similarity index 100% rename from src/test/codegen/box-maybe-uninit.rs rename to tests/codegen/box-maybe-uninit.rs diff --git a/src/test/codegen/bpf-alu32.rs b/tests/codegen/bpf-alu32.rs similarity index 100% rename from src/test/codegen/bpf-alu32.rs rename to tests/codegen/bpf-alu32.rs diff --git a/src/test/codegen/branch-protection.rs b/tests/codegen/branch-protection.rs similarity index 100% rename from src/test/codegen/branch-protection.rs rename to tests/codegen/branch-protection.rs diff --git a/src/test/codegen/c-variadic-copy.rs b/tests/codegen/c-variadic-copy.rs similarity index 100% rename from src/test/codegen/c-variadic-copy.rs rename to tests/codegen/c-variadic-copy.rs diff --git a/src/test/codegen/c-variadic-opt.rs b/tests/codegen/c-variadic-opt.rs similarity index 100% rename from src/test/codegen/c-variadic-opt.rs rename to tests/codegen/c-variadic-opt.rs diff --git a/src/test/codegen/c-variadic.rs b/tests/codegen/c-variadic.rs similarity index 100% rename from src/test/codegen/c-variadic.rs rename to tests/codegen/c-variadic.rs diff --git a/src/test/codegen/call-llvm-intrinsics.rs b/tests/codegen/call-llvm-intrinsics.rs similarity index 100% rename from src/test/codegen/call-llvm-intrinsics.rs rename to tests/codegen/call-llvm-intrinsics.rs diff --git a/src/test/codegen/call-metadata.rs b/tests/codegen/call-metadata.rs similarity index 100% rename from src/test/codegen/call-metadata.rs rename to tests/codegen/call-metadata.rs diff --git a/src/test/codegen/catch-unwind.rs b/tests/codegen/catch-unwind.rs similarity index 100% rename from src/test/codegen/catch-unwind.rs rename to tests/codegen/catch-unwind.rs diff --git a/src/test/codegen/cdylib-external-inline-fns.rs b/tests/codegen/cdylib-external-inline-fns.rs similarity index 100% rename from src/test/codegen/cdylib-external-inline-fns.rs rename to tests/codegen/cdylib-external-inline-fns.rs diff --git a/src/test/codegen/cf-protection.rs b/tests/codegen/cf-protection.rs similarity index 100% rename from src/test/codegen/cf-protection.rs rename to tests/codegen/cf-protection.rs diff --git a/src/test/codegen/cfguard-checks.rs b/tests/codegen/cfguard-checks.rs similarity index 100% rename from src/test/codegen/cfguard-checks.rs rename to tests/codegen/cfguard-checks.rs diff --git a/src/test/codegen/cfguard-disabled.rs b/tests/codegen/cfguard-disabled.rs similarity index 100% rename from src/test/codegen/cfguard-disabled.rs rename to tests/codegen/cfguard-disabled.rs diff --git a/src/test/codegen/cfguard-nochecks.rs b/tests/codegen/cfguard-nochecks.rs similarity index 100% rename from src/test/codegen/cfguard-nochecks.rs rename to tests/codegen/cfguard-nochecks.rs diff --git a/src/test/codegen/cfguard-non-msvc.rs b/tests/codegen/cfguard-non-msvc.rs similarity index 100% rename from src/test/codegen/cfguard-non-msvc.rs rename to tests/codegen/cfguard-non-msvc.rs diff --git a/src/test/codegen/codemodels.rs b/tests/codegen/codemodels.rs similarity index 100% rename from src/test/codegen/codemodels.rs rename to tests/codegen/codemodels.rs diff --git a/src/test/codegen/coercions.rs b/tests/codegen/coercions.rs similarity index 100% rename from src/test/codegen/coercions.rs rename to tests/codegen/coercions.rs diff --git a/src/test/codegen/cold-call-declare-and-call.rs b/tests/codegen/cold-call-declare-and-call.rs similarity index 100% rename from src/test/codegen/cold-call-declare-and-call.rs rename to tests/codegen/cold-call-declare-and-call.rs diff --git a/src/test/codegen/comparison-operators-newtype.rs b/tests/codegen/comparison-operators-newtype.rs similarity index 100% rename from src/test/codegen/comparison-operators-newtype.rs rename to tests/codegen/comparison-operators-newtype.rs diff --git a/src/test/codegen/consts.rs b/tests/codegen/consts.rs similarity index 100% rename from src/test/codegen/consts.rs rename to tests/codegen/consts.rs diff --git a/src/test/codegen/dealloc-no-unwind.rs b/tests/codegen/dealloc-no-unwind.rs similarity index 100% rename from src/test/codegen/dealloc-no-unwind.rs rename to tests/codegen/dealloc-no-unwind.rs diff --git a/src/test/codegen/debug-alignment.rs b/tests/codegen/debug-alignment.rs similarity index 100% rename from src/test/codegen/debug-alignment.rs rename to tests/codegen/debug-alignment.rs diff --git a/src/test/codegen/debug-column-msvc.rs b/tests/codegen/debug-column-msvc.rs similarity index 100% rename from src/test/codegen/debug-column-msvc.rs rename to tests/codegen/debug-column-msvc.rs diff --git a/src/test/codegen/debug-column.rs b/tests/codegen/debug-column.rs similarity index 100% rename from src/test/codegen/debug-column.rs rename to tests/codegen/debug-column.rs diff --git a/src/test/codegen/debug-compile-unit-path.rs b/tests/codegen/debug-compile-unit-path.rs similarity index 100% rename from src/test/codegen/debug-compile-unit-path.rs rename to tests/codegen/debug-compile-unit-path.rs diff --git a/src/test/codegen/debug-linkage-name.rs b/tests/codegen/debug-linkage-name.rs similarity index 100% rename from src/test/codegen/debug-linkage-name.rs rename to tests/codegen/debug-linkage-name.rs diff --git a/src/test/codegen/debug-vtable.rs b/tests/codegen/debug-vtable.rs similarity index 100% rename from src/test/codegen/debug-vtable.rs rename to tests/codegen/debug-vtable.rs diff --git a/src/test/codegen/debuginfo-generic-closure-env-names.rs b/tests/codegen/debuginfo-generic-closure-env-names.rs similarity index 100% rename from src/test/codegen/debuginfo-generic-closure-env-names.rs rename to tests/codegen/debuginfo-generic-closure-env-names.rs diff --git a/src/test/codegen/deduced-param-attrs.rs b/tests/codegen/deduced-param-attrs.rs similarity index 100% rename from src/test/codegen/deduced-param-attrs.rs rename to tests/codegen/deduced-param-attrs.rs diff --git a/src/test/codegen/default-requires-uwtable.rs b/tests/codegen/default-requires-uwtable.rs similarity index 100% rename from src/test/codegen/default-requires-uwtable.rs rename to tests/codegen/default-requires-uwtable.rs diff --git a/src/test/codegen/dllimports/auxiliary/dummy.rs b/tests/codegen/dllimports/auxiliary/dummy.rs similarity index 100% rename from src/test/codegen/dllimports/auxiliary/dummy.rs rename to tests/codegen/dllimports/auxiliary/dummy.rs diff --git a/src/test/codegen/dllimports/auxiliary/wrapper.rs b/tests/codegen/dllimports/auxiliary/wrapper.rs similarity index 100% rename from src/test/codegen/dllimports/auxiliary/wrapper.rs rename to tests/codegen/dllimports/auxiliary/wrapper.rs diff --git a/src/test/codegen/dllimports/main.rs b/tests/codegen/dllimports/main.rs similarity index 100% rename from src/test/codegen/dllimports/main.rs rename to tests/codegen/dllimports/main.rs diff --git a/src/test/codegen/drop.rs b/tests/codegen/drop.rs similarity index 100% rename from src/test/codegen/drop.rs rename to tests/codegen/drop.rs diff --git a/src/test/codegen/dst-vtable-align-nonzero.rs b/tests/codegen/dst-vtable-align-nonzero.rs similarity index 100% rename from src/test/codegen/dst-vtable-align-nonzero.rs rename to tests/codegen/dst-vtable-align-nonzero.rs diff --git a/src/test/codegen/dst-vtable-size-range.rs b/tests/codegen/dst-vtable-size-range.rs similarity index 100% rename from src/test/codegen/dst-vtable-size-range.rs rename to tests/codegen/dst-vtable-size-range.rs diff --git a/src/test/codegen/enum-bounds-check-derived-idx.rs b/tests/codegen/enum-bounds-check-derived-idx.rs similarity index 100% rename from src/test/codegen/enum-bounds-check-derived-idx.rs rename to tests/codegen/enum-bounds-check-derived-idx.rs diff --git a/src/test/codegen/enum-bounds-check-issue-13926.rs b/tests/codegen/enum-bounds-check-issue-13926.rs similarity index 100% rename from src/test/codegen/enum-bounds-check-issue-13926.rs rename to tests/codegen/enum-bounds-check-issue-13926.rs diff --git a/src/test/codegen/enum-bounds-check-issue-82871.rs b/tests/codegen/enum-bounds-check-issue-82871.rs similarity index 100% rename from src/test/codegen/enum-bounds-check-issue-82871.rs rename to tests/codegen/enum-bounds-check-issue-82871.rs diff --git a/src/test/codegen/enum-bounds-check.rs b/tests/codegen/enum-bounds-check.rs similarity index 100% rename from src/test/codegen/enum-bounds-check.rs rename to tests/codegen/enum-bounds-check.rs diff --git a/src/test/codegen/enum-debug-clike.rs b/tests/codegen/enum-debug-clike.rs similarity index 100% rename from src/test/codegen/enum-debug-clike.rs rename to tests/codegen/enum-debug-clike.rs diff --git a/src/test/codegen/enum-debug-niche-2.rs b/tests/codegen/enum-debug-niche-2.rs similarity index 100% rename from src/test/codegen/enum-debug-niche-2.rs rename to tests/codegen/enum-debug-niche-2.rs diff --git a/src/test/codegen/enum-debug-niche.rs b/tests/codegen/enum-debug-niche.rs similarity index 100% rename from src/test/codegen/enum-debug-niche.rs rename to tests/codegen/enum-debug-niche.rs diff --git a/src/test/codegen/enum-debug-tagged.rs b/tests/codegen/enum-debug-tagged.rs similarity index 100% rename from src/test/codegen/enum-debug-tagged.rs rename to tests/codegen/enum-debug-tagged.rs diff --git a/src/test/codegen/enum-discriminant-value.rs b/tests/codegen/enum-discriminant-value.rs similarity index 100% rename from src/test/codegen/enum-discriminant-value.rs rename to tests/codegen/enum-discriminant-value.rs diff --git a/src/test/codegen/enum-match.rs b/tests/codegen/enum-match.rs similarity index 100% rename from src/test/codegen/enum-match.rs rename to tests/codegen/enum-match.rs diff --git a/src/test/codegen/export-no-mangle.rs b/tests/codegen/export-no-mangle.rs similarity index 100% rename from src/test/codegen/export-no-mangle.rs rename to tests/codegen/export-no-mangle.rs diff --git a/src/test/codegen/external-no-mangle-fns.rs b/tests/codegen/external-no-mangle-fns.rs similarity index 100% rename from src/test/codegen/external-no-mangle-fns.rs rename to tests/codegen/external-no-mangle-fns.rs diff --git a/src/test/codegen/external-no-mangle-statics.rs b/tests/codegen/external-no-mangle-statics.rs similarity index 100% rename from src/test/codegen/external-no-mangle-statics.rs rename to tests/codegen/external-no-mangle-statics.rs diff --git a/src/test/codegen/fastcall-inreg.rs b/tests/codegen/fastcall-inreg.rs similarity index 100% rename from src/test/codegen/fastcall-inreg.rs rename to tests/codegen/fastcall-inreg.rs diff --git a/src/test/codegen/fatptr.rs b/tests/codegen/fatptr.rs similarity index 100% rename from src/test/codegen/fatptr.rs rename to tests/codegen/fatptr.rs diff --git a/src/test/codegen/fewer-names.rs b/tests/codegen/fewer-names.rs similarity index 100% rename from src/test/codegen/fewer-names.rs rename to tests/codegen/fewer-names.rs diff --git a/src/test/codegen/ffi-const.rs b/tests/codegen/ffi-const.rs similarity index 100% rename from src/test/codegen/ffi-const.rs rename to tests/codegen/ffi-const.rs diff --git a/src/test/codegen/ffi-out-of-bounds-loads.rs b/tests/codegen/ffi-out-of-bounds-loads.rs similarity index 100% rename from src/test/codegen/ffi-out-of-bounds-loads.rs rename to tests/codegen/ffi-out-of-bounds-loads.rs diff --git a/src/test/codegen/ffi-pure.rs b/tests/codegen/ffi-pure.rs similarity index 100% rename from src/test/codegen/ffi-pure.rs rename to tests/codegen/ffi-pure.rs diff --git a/src/test/codegen/ffi-returns-twice.rs b/tests/codegen/ffi-returns-twice.rs similarity index 100% rename from src/test/codegen/ffi-returns-twice.rs rename to tests/codegen/ffi-returns-twice.rs diff --git a/src/test/codegen/float_math.rs b/tests/codegen/float_math.rs similarity index 100% rename from src/test/codegen/float_math.rs rename to tests/codegen/float_math.rs diff --git a/src/test/codegen/fn-impl-trait-self.rs b/tests/codegen/fn-impl-trait-self.rs similarity index 100% rename from src/test/codegen/fn-impl-trait-self.rs rename to tests/codegen/fn-impl-trait-self.rs diff --git a/src/test/codegen/foo.s b/tests/codegen/foo.s similarity index 100% rename from src/test/codegen/foo.s rename to tests/codegen/foo.s diff --git a/src/test/codegen/force-frame-pointers.rs b/tests/codegen/force-frame-pointers.rs similarity index 100% rename from src/test/codegen/force-frame-pointers.rs rename to tests/codegen/force-frame-pointers.rs diff --git a/src/test/codegen/force-no-unwind-tables.rs b/tests/codegen/force-no-unwind-tables.rs similarity index 100% rename from src/test/codegen/force-no-unwind-tables.rs rename to tests/codegen/force-no-unwind-tables.rs diff --git a/src/test/codegen/force-unwind-tables.rs b/tests/codegen/force-unwind-tables.rs similarity index 100% rename from src/test/codegen/force-unwind-tables.rs rename to tests/codegen/force-unwind-tables.rs diff --git a/src/test/codegen/frame-pointer.rs b/tests/codegen/frame-pointer.rs similarity index 100% rename from src/test/codegen/frame-pointer.rs rename to tests/codegen/frame-pointer.rs diff --git a/src/test/codegen/function-arguments-noopt.rs b/tests/codegen/function-arguments-noopt.rs similarity index 100% rename from src/test/codegen/function-arguments-noopt.rs rename to tests/codegen/function-arguments-noopt.rs diff --git a/src/test/codegen/function-arguments.rs b/tests/codegen/function-arguments.rs similarity index 100% rename from src/test/codegen/function-arguments.rs rename to tests/codegen/function-arguments.rs diff --git a/src/test/codegen/gdb_debug_script_load.rs b/tests/codegen/gdb_debug_script_load.rs similarity index 100% rename from src/test/codegen/gdb_debug_script_load.rs rename to tests/codegen/gdb_debug_script_load.rs diff --git a/src/test/codegen/generator-debug-msvc.rs b/tests/codegen/generator-debug-msvc.rs similarity index 100% rename from src/test/codegen/generator-debug-msvc.rs rename to tests/codegen/generator-debug-msvc.rs diff --git a/src/test/codegen/generator-debug.rs b/tests/codegen/generator-debug.rs similarity index 100% rename from src/test/codegen/generator-debug.rs rename to tests/codegen/generator-debug.rs diff --git a/src/test/codegen/generic-debug.rs b/tests/codegen/generic-debug.rs similarity index 100% rename from src/test/codegen/generic-debug.rs rename to tests/codegen/generic-debug.rs diff --git a/src/test/codegen/global_asm.rs b/tests/codegen/global_asm.rs similarity index 100% rename from src/test/codegen/global_asm.rs rename to tests/codegen/global_asm.rs diff --git a/src/test/codegen/global_asm_include.rs b/tests/codegen/global_asm_include.rs similarity index 100% rename from src/test/codegen/global_asm_include.rs rename to tests/codegen/global_asm_include.rs diff --git a/src/test/codegen/global_asm_x2.rs b/tests/codegen/global_asm_x2.rs similarity index 100% rename from src/test/codegen/global_asm_x2.rs rename to tests/codegen/global_asm_x2.rs diff --git a/src/test/codegen/i686-macosx-deployment-target.rs b/tests/codegen/i686-macosx-deployment-target.rs similarity index 100% rename from src/test/codegen/i686-macosx-deployment-target.rs rename to tests/codegen/i686-macosx-deployment-target.rs diff --git a/src/test/codegen/i686-no-macosx-deployment-target.rs b/tests/codegen/i686-no-macosx-deployment-target.rs similarity index 100% rename from src/test/codegen/i686-no-macosx-deployment-target.rs rename to tests/codegen/i686-no-macosx-deployment-target.rs diff --git a/src/test/codegen/inline-always-works-always.rs b/tests/codegen/inline-always-works-always.rs similarity index 100% rename from src/test/codegen/inline-always-works-always.rs rename to tests/codegen/inline-always-works-always.rs diff --git a/src/test/codegen/inline-debuginfo.rs b/tests/codegen/inline-debuginfo.rs similarity index 100% rename from src/test/codegen/inline-debuginfo.rs rename to tests/codegen/inline-debuginfo.rs diff --git a/src/test/codegen/inline-hint.rs b/tests/codegen/inline-hint.rs similarity index 100% rename from src/test/codegen/inline-hint.rs rename to tests/codegen/inline-hint.rs diff --git a/src/test/codegen/instrument-coverage.rs b/tests/codegen/instrument-coverage.rs similarity index 100% rename from src/test/codegen/instrument-coverage.rs rename to tests/codegen/instrument-coverage.rs diff --git a/src/test/codegen/instrument-mcount.rs b/tests/codegen/instrument-mcount.rs similarity index 100% rename from src/test/codegen/instrument-mcount.rs rename to tests/codegen/instrument-mcount.rs diff --git a/src/test/codegen/integer-cmp.rs b/tests/codegen/integer-cmp.rs similarity index 100% rename from src/test/codegen/integer-cmp.rs rename to tests/codegen/integer-cmp.rs diff --git a/src/test/codegen/integer-overflow.rs b/tests/codegen/integer-overflow.rs similarity index 100% rename from src/test/codegen/integer-overflow.rs rename to tests/codegen/integer-overflow.rs diff --git a/src/test/codegen/internalize-closures.rs b/tests/codegen/internalize-closures.rs similarity index 100% rename from src/test/codegen/internalize-closures.rs rename to tests/codegen/internalize-closures.rs diff --git a/src/test/codegen/intrinsic-no-unnamed-attr.rs b/tests/codegen/intrinsic-no-unnamed-attr.rs similarity index 100% rename from src/test/codegen/intrinsic-no-unnamed-attr.rs rename to tests/codegen/intrinsic-no-unnamed-attr.rs diff --git a/src/test/codegen/intrinsics/const_eval_select.rs b/tests/codegen/intrinsics/const_eval_select.rs similarity index 100% rename from src/test/codegen/intrinsics/const_eval_select.rs rename to tests/codegen/intrinsics/const_eval_select.rs diff --git a/src/test/codegen/intrinsics/exact_div.rs b/tests/codegen/intrinsics/exact_div.rs similarity index 100% rename from src/test/codegen/intrinsics/exact_div.rs rename to tests/codegen/intrinsics/exact_div.rs diff --git a/src/test/codegen/intrinsics/likely.rs b/tests/codegen/intrinsics/likely.rs similarity index 100% rename from src/test/codegen/intrinsics/likely.rs rename to tests/codegen/intrinsics/likely.rs diff --git a/src/test/codegen/intrinsics/mask.rs b/tests/codegen/intrinsics/mask.rs similarity index 100% rename from src/test/codegen/intrinsics/mask.rs rename to tests/codegen/intrinsics/mask.rs diff --git a/src/test/codegen/intrinsics/nearby.rs b/tests/codegen/intrinsics/nearby.rs similarity index 100% rename from src/test/codegen/intrinsics/nearby.rs rename to tests/codegen/intrinsics/nearby.rs diff --git a/src/test/codegen/intrinsics/nontemporal.rs b/tests/codegen/intrinsics/nontemporal.rs similarity index 100% rename from src/test/codegen/intrinsics/nontemporal.rs rename to tests/codegen/intrinsics/nontemporal.rs diff --git a/src/test/codegen/intrinsics/offset_from.rs b/tests/codegen/intrinsics/offset_from.rs similarity index 100% rename from src/test/codegen/intrinsics/offset_from.rs rename to tests/codegen/intrinsics/offset_from.rs diff --git a/src/test/codegen/intrinsics/prefetch.rs b/tests/codegen/intrinsics/prefetch.rs similarity index 100% rename from src/test/codegen/intrinsics/prefetch.rs rename to tests/codegen/intrinsics/prefetch.rs diff --git a/src/test/codegen/intrinsics/unchecked_math.rs b/tests/codegen/intrinsics/unchecked_math.rs similarity index 100% rename from src/test/codegen/intrinsics/unchecked_math.rs rename to tests/codegen/intrinsics/unchecked_math.rs diff --git a/src/test/codegen/intrinsics/volatile.rs b/tests/codegen/intrinsics/volatile.rs similarity index 100% rename from src/test/codegen/intrinsics/volatile.rs rename to tests/codegen/intrinsics/volatile.rs diff --git a/src/test/codegen/intrinsics/volatile_order.rs b/tests/codegen/intrinsics/volatile_order.rs similarity index 100% rename from src/test/codegen/intrinsics/volatile_order.rs rename to tests/codegen/intrinsics/volatile_order.rs diff --git a/src/test/codegen/issue-103285-ptr-addr-overflow-check.rs b/tests/codegen/issue-103285-ptr-addr-overflow-check.rs similarity index 100% rename from src/test/codegen/issue-103285-ptr-addr-overflow-check.rs rename to tests/codegen/issue-103285-ptr-addr-overflow-check.rs diff --git a/src/test/codegen/issue-103840.rs b/tests/codegen/issue-103840.rs similarity index 100% rename from src/test/codegen/issue-103840.rs rename to tests/codegen/issue-103840.rs diff --git a/src/test/codegen/issue-105386-ub-in-debuginfo.rs b/tests/codegen/issue-105386-ub-in-debuginfo.rs similarity index 100% rename from src/test/codegen/issue-105386-ub-in-debuginfo.rs rename to tests/codegen/issue-105386-ub-in-debuginfo.rs diff --git a/src/test/codegen/issue-13018.rs b/tests/codegen/issue-13018.rs similarity index 100% rename from src/test/codegen/issue-13018.rs rename to tests/codegen/issue-13018.rs diff --git a/src/test/codegen/issue-15953.rs b/tests/codegen/issue-15953.rs similarity index 100% rename from src/test/codegen/issue-15953.rs rename to tests/codegen/issue-15953.rs diff --git a/src/test/codegen/issue-27130.rs b/tests/codegen/issue-27130.rs similarity index 100% rename from src/test/codegen/issue-27130.rs rename to tests/codegen/issue-27130.rs diff --git a/src/test/codegen/issue-32031.rs b/tests/codegen/issue-32031.rs similarity index 100% rename from src/test/codegen/issue-32031.rs rename to tests/codegen/issue-32031.rs diff --git a/src/test/codegen/issue-32364.rs b/tests/codegen/issue-32364.rs similarity index 100% rename from src/test/codegen/issue-32364.rs rename to tests/codegen/issue-32364.rs diff --git a/src/test/codegen/issue-34634.rs b/tests/codegen/issue-34634.rs similarity index 100% rename from src/test/codegen/issue-34634.rs rename to tests/codegen/issue-34634.rs diff --git a/src/test/codegen/issue-34947-pow-i32.rs b/tests/codegen/issue-34947-pow-i32.rs similarity index 100% rename from src/test/codegen/issue-34947-pow-i32.rs rename to tests/codegen/issue-34947-pow-i32.rs diff --git a/src/test/codegen/issue-37945.rs b/tests/codegen/issue-37945.rs similarity index 100% rename from src/test/codegen/issue-37945.rs rename to tests/codegen/issue-37945.rs diff --git a/src/test/codegen/issue-44056-macos-tls-align.rs b/tests/codegen/issue-44056-macos-tls-align.rs similarity index 100% rename from src/test/codegen/issue-44056-macos-tls-align.rs rename to tests/codegen/issue-44056-macos-tls-align.rs diff --git a/src/test/codegen/issue-45222.rs b/tests/codegen/issue-45222.rs similarity index 100% rename from src/test/codegen/issue-45222.rs rename to tests/codegen/issue-45222.rs diff --git a/src/test/codegen/issue-45466.rs b/tests/codegen/issue-45466.rs similarity index 100% rename from src/test/codegen/issue-45466.rs rename to tests/codegen/issue-45466.rs diff --git a/src/test/codegen/issue-45964-bounds-check-slice-pos.rs b/tests/codegen/issue-45964-bounds-check-slice-pos.rs similarity index 100% rename from src/test/codegen/issue-45964-bounds-check-slice-pos.rs rename to tests/codegen/issue-45964-bounds-check-slice-pos.rs diff --git a/src/test/codegen/issue-47278.rs b/tests/codegen/issue-47278.rs similarity index 100% rename from src/test/codegen/issue-47278.rs rename to tests/codegen/issue-47278.rs diff --git a/src/test/codegen/issue-47442.rs b/tests/codegen/issue-47442.rs similarity index 100% rename from src/test/codegen/issue-47442.rs rename to tests/codegen/issue-47442.rs diff --git a/src/test/codegen/issue-56267-2.rs b/tests/codegen/issue-56267-2.rs similarity index 100% rename from src/test/codegen/issue-56267-2.rs rename to tests/codegen/issue-56267-2.rs diff --git a/src/test/codegen/issue-56267.rs b/tests/codegen/issue-56267.rs similarity index 100% rename from src/test/codegen/issue-56267.rs rename to tests/codegen/issue-56267.rs diff --git a/src/test/codegen/issue-56927.rs b/tests/codegen/issue-56927.rs similarity index 100% rename from src/test/codegen/issue-56927.rs rename to tests/codegen/issue-56927.rs diff --git a/src/test/codegen/issue-58881.rs b/tests/codegen/issue-58881.rs similarity index 100% rename from src/test/codegen/issue-58881.rs rename to tests/codegen/issue-58881.rs diff --git a/src/test/codegen/issue-59352.rs b/tests/codegen/issue-59352.rs similarity index 100% rename from src/test/codegen/issue-59352.rs rename to tests/codegen/issue-59352.rs diff --git a/src/test/codegen/issue-69101-bounds-check.rs b/tests/codegen/issue-69101-bounds-check.rs similarity index 100% rename from src/test/codegen/issue-69101-bounds-check.rs rename to tests/codegen/issue-69101-bounds-check.rs diff --git a/src/test/codegen/issue-73031.rs b/tests/codegen/issue-73031.rs similarity index 100% rename from src/test/codegen/issue-73031.rs rename to tests/codegen/issue-73031.rs diff --git a/src/test/codegen/issue-73338-effecient-cmp.rs b/tests/codegen/issue-73338-effecient-cmp.rs similarity index 100% rename from src/test/codegen/issue-73338-effecient-cmp.rs rename to tests/codegen/issue-73338-effecient-cmp.rs diff --git a/src/test/codegen/issue-73396-bounds-check-after-position.rs b/tests/codegen/issue-73396-bounds-check-after-position.rs similarity index 100% rename from src/test/codegen/issue-73396-bounds-check-after-position.rs rename to tests/codegen/issue-73396-bounds-check-after-position.rs diff --git a/src/test/codegen/issue-73827-bounds-check-index-in-subexpr.rs b/tests/codegen/issue-73827-bounds-check-index-in-subexpr.rs similarity index 100% rename from src/test/codegen/issue-73827-bounds-check-index-in-subexpr.rs rename to tests/codegen/issue-73827-bounds-check-index-in-subexpr.rs diff --git a/src/test/codegen/issue-75525-bounds-checks.rs b/tests/codegen/issue-75525-bounds-checks.rs similarity index 100% rename from src/test/codegen/issue-75525-bounds-checks.rs rename to tests/codegen/issue-75525-bounds-checks.rs diff --git a/src/test/codegen/issue-75546.rs b/tests/codegen/issue-75546.rs similarity index 100% rename from src/test/codegen/issue-75546.rs rename to tests/codegen/issue-75546.rs diff --git a/src/test/codegen/issue-75659.rs b/tests/codegen/issue-75659.rs similarity index 100% rename from src/test/codegen/issue-75659.rs rename to tests/codegen/issue-75659.rs diff --git a/src/test/codegen/issue-77812.rs b/tests/codegen/issue-77812.rs similarity index 100% rename from src/test/codegen/issue-77812.rs rename to tests/codegen/issue-77812.rs diff --git a/src/test/codegen/issue-81408-dllimport-thinlto-windows.rs b/tests/codegen/issue-81408-dllimport-thinlto-windows.rs similarity index 100% rename from src/test/codegen/issue-81408-dllimport-thinlto-windows.rs rename to tests/codegen/issue-81408-dllimport-thinlto-windows.rs diff --git a/src/test/codegen/issue-84268.rs b/tests/codegen/issue-84268.rs similarity index 100% rename from src/test/codegen/issue-84268.rs rename to tests/codegen/issue-84268.rs diff --git a/src/test/codegen/issue-85872-multiple-reverse.rs b/tests/codegen/issue-85872-multiple-reverse.rs similarity index 100% rename from src/test/codegen/issue-85872-multiple-reverse.rs rename to tests/codegen/issue-85872-multiple-reverse.rs diff --git a/src/test/codegen/issue-86106.rs b/tests/codegen/issue-86106.rs similarity index 100% rename from src/test/codegen/issue-86106.rs rename to tests/codegen/issue-86106.rs diff --git a/src/test/codegen/issue-96274.rs b/tests/codegen/issue-96274.rs similarity index 100% rename from src/test/codegen/issue-96274.rs rename to tests/codegen/issue-96274.rs diff --git a/src/test/codegen/issue-96497-slice-size-nowrap.rs b/tests/codegen/issue-96497-slice-size-nowrap.rs similarity index 100% rename from src/test/codegen/issue-96497-slice-size-nowrap.rs rename to tests/codegen/issue-96497-slice-size-nowrap.rs diff --git a/src/test/codegen/issue-98156-const-arg-temp-lifetime.rs b/tests/codegen/issue-98156-const-arg-temp-lifetime.rs similarity index 100% rename from src/test/codegen/issue-98156-const-arg-temp-lifetime.rs rename to tests/codegen/issue-98156-const-arg-temp-lifetime.rs diff --git a/src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs b/tests/codegen/issue-98294-get-mut-copy-from-slice-opt.rs similarity index 100% rename from src/test/codegen/issue-98294-get-mut-copy-from-slice-opt.rs rename to tests/codegen/issue-98294-get-mut-copy-from-slice-opt.rs diff --git a/src/test/codegen/iter-repeat-n-trivial-drop.rs b/tests/codegen/iter-repeat-n-trivial-drop.rs similarity index 100% rename from src/test/codegen/iter-repeat-n-trivial-drop.rs rename to tests/codegen/iter-repeat-n-trivial-drop.rs diff --git a/src/test/codegen/layout-size-checks.rs b/tests/codegen/layout-size-checks.rs similarity index 100% rename from src/test/codegen/layout-size-checks.rs rename to tests/codegen/layout-size-checks.rs diff --git a/src/test/codegen/lifetime_start_end.rs b/tests/codegen/lifetime_start_end.rs similarity index 100% rename from src/test/codegen/lifetime_start_end.rs rename to tests/codegen/lifetime_start_end.rs diff --git a/src/test/codegen/link-dead-code.rs b/tests/codegen/link-dead-code.rs similarity index 100% rename from src/test/codegen/link-dead-code.rs rename to tests/codegen/link-dead-code.rs diff --git a/src/test/codegen/link_section.rs b/tests/codegen/link_section.rs similarity index 100% rename from src/test/codegen/link_section.rs rename to tests/codegen/link_section.rs diff --git a/src/test/codegen/loads.rs b/tests/codegen/loads.rs similarity index 100% rename from src/test/codegen/loads.rs rename to tests/codegen/loads.rs diff --git a/src/test/codegen/local-generics-in-exe-internalized.rs b/tests/codegen/local-generics-in-exe-internalized.rs similarity index 100% rename from src/test/codegen/local-generics-in-exe-internalized.rs rename to tests/codegen/local-generics-in-exe-internalized.rs diff --git a/src/test/codegen/lto-removes-invokes.rs b/tests/codegen/lto-removes-invokes.rs similarity index 100% rename from src/test/codegen/lto-removes-invokes.rs rename to tests/codegen/lto-removes-invokes.rs diff --git a/src/test/codegen/mainsubprogram.rs b/tests/codegen/mainsubprogram.rs similarity index 100% rename from src/test/codegen/mainsubprogram.rs rename to tests/codegen/mainsubprogram.rs diff --git a/src/test/codegen/mainsubprogramstart.rs b/tests/codegen/mainsubprogramstart.rs similarity index 100% rename from src/test/codegen/mainsubprogramstart.rs rename to tests/codegen/mainsubprogramstart.rs diff --git a/src/test/codegen/match-optimized.rs b/tests/codegen/match-optimized.rs similarity index 94% rename from src/test/codegen/match-optimized.rs rename to tests/codegen/match-optimized.rs index 36402cc7353ff..520c46a0d570f 100644 --- a/src/test/codegen/match-optimized.rs +++ b/tests/codegen/match-optimized.rs @@ -42,7 +42,7 @@ pub enum E2 { } // For optimized code we produce a switch with an unreachable target as the `otherwise` so LLVM -// knows the possible values. Compare with `src/test/codegen/match-unoptimized.rs`. +// knows the possible values. Compare with `tests/codegen/match-unoptimized.rs`. // CHECK-LABEL: @exhaustive_match_2 #[no_mangle] diff --git a/src/test/codegen/match-optimizes-away.rs b/tests/codegen/match-optimizes-away.rs similarity index 100% rename from src/test/codegen/match-optimizes-away.rs rename to tests/codegen/match-optimizes-away.rs diff --git a/src/test/codegen/match-unoptimized.rs b/tests/codegen/match-unoptimized.rs similarity index 91% rename from src/test/codegen/match-unoptimized.rs rename to tests/codegen/match-unoptimized.rs index be40b29e3d3e1..78ea4f9b40946 100644 --- a/src/test/codegen/match-unoptimized.rs +++ b/tests/codegen/match-unoptimized.rs @@ -9,7 +9,7 @@ pub enum E2 { } // For unoptimized code we produce a `br` instead of a `switch`. Compare with -// `src/test/codegen/match-optimized.rs` +// `tests/codegen/match-optimized.rs` // CHECK-LABEL: @exhaustive_match_2 #[no_mangle] diff --git a/src/test/codegen/mem-replace-direct-memcpy.rs b/tests/codegen/mem-replace-direct-memcpy.rs similarity index 100% rename from src/test/codegen/mem-replace-direct-memcpy.rs rename to tests/codegen/mem-replace-direct-memcpy.rs diff --git a/src/test/codegen/merge-functions.rs b/tests/codegen/merge-functions.rs similarity index 100% rename from src/test/codegen/merge-functions.rs rename to tests/codegen/merge-functions.rs diff --git a/src/test/codegen/mir-inlined-line-numbers.rs b/tests/codegen/mir-inlined-line-numbers.rs similarity index 100% rename from src/test/codegen/mir-inlined-line-numbers.rs rename to tests/codegen/mir-inlined-line-numbers.rs diff --git a/src/test/codegen/mir_zst_stores.rs b/tests/codegen/mir_zst_stores.rs similarity index 100% rename from src/test/codegen/mir_zst_stores.rs rename to tests/codegen/mir_zst_stores.rs diff --git a/src/test/codegen/naked-functions.rs b/tests/codegen/naked-functions.rs similarity index 100% rename from src/test/codegen/naked-functions.rs rename to tests/codegen/naked-functions.rs diff --git a/src/test/codegen/naked-nocoverage.rs b/tests/codegen/naked-nocoverage.rs similarity index 100% rename from src/test/codegen/naked-nocoverage.rs rename to tests/codegen/naked-nocoverage.rs diff --git a/src/test/codegen/naked-noinline.rs b/tests/codegen/naked-noinline.rs similarity index 100% rename from src/test/codegen/naked-noinline.rs rename to tests/codegen/naked-noinline.rs diff --git a/src/test/codegen/no-assumes-on-casts.rs b/tests/codegen/no-assumes-on-casts.rs similarity index 100% rename from src/test/codegen/no-assumes-on-casts.rs rename to tests/codegen/no-assumes-on-casts.rs diff --git a/src/test/codegen/no-dllimport-w-cross-lang-lto.rs b/tests/codegen/no-dllimport-w-cross-lang-lto.rs similarity index 100% rename from src/test/codegen/no-dllimport-w-cross-lang-lto.rs rename to tests/codegen/no-dllimport-w-cross-lang-lto.rs diff --git a/src/test/codegen/no-jump-tables.rs b/tests/codegen/no-jump-tables.rs similarity index 100% rename from src/test/codegen/no-jump-tables.rs rename to tests/codegen/no-jump-tables.rs diff --git a/src/test/codegen/no-plt.rs b/tests/codegen/no-plt.rs similarity index 100% rename from src/test/codegen/no-plt.rs rename to tests/codegen/no-plt.rs diff --git a/src/test/codegen/noalias-box-off.rs b/tests/codegen/noalias-box-off.rs similarity index 100% rename from src/test/codegen/noalias-box-off.rs rename to tests/codegen/noalias-box-off.rs diff --git a/src/test/codegen/noalias-box.rs b/tests/codegen/noalias-box.rs similarity index 100% rename from src/test/codegen/noalias-box.rs rename to tests/codegen/noalias-box.rs diff --git a/src/test/codegen/noalias-flag.rs b/tests/codegen/noalias-flag.rs similarity index 100% rename from src/test/codegen/noalias-flag.rs rename to tests/codegen/noalias-flag.rs diff --git a/src/test/codegen/noalias-refcell.rs b/tests/codegen/noalias-refcell.rs similarity index 100% rename from src/test/codegen/noalias-refcell.rs rename to tests/codegen/noalias-refcell.rs diff --git a/src/test/codegen/noalias-rwlockreadguard.rs b/tests/codegen/noalias-rwlockreadguard.rs similarity index 100% rename from src/test/codegen/noalias-rwlockreadguard.rs rename to tests/codegen/noalias-rwlockreadguard.rs diff --git a/src/test/codegen/noalias-unpin.rs b/tests/codegen/noalias-unpin.rs similarity index 100% rename from src/test/codegen/noalias-unpin.rs rename to tests/codegen/noalias-unpin.rs diff --git a/src/test/codegen/non-terminate/infinite-loop-1.rs b/tests/codegen/non-terminate/infinite-loop-1.rs similarity index 100% rename from src/test/codegen/non-terminate/infinite-loop-1.rs rename to tests/codegen/non-terminate/infinite-loop-1.rs diff --git a/src/test/codegen/non-terminate/infinite-loop-2.rs b/tests/codegen/non-terminate/infinite-loop-2.rs similarity index 100% rename from src/test/codegen/non-terminate/infinite-loop-2.rs rename to tests/codegen/non-terminate/infinite-loop-2.rs diff --git a/src/test/codegen/non-terminate/infinite-recursion.rs b/tests/codegen/non-terminate/infinite-recursion.rs similarity index 100% rename from src/test/codegen/non-terminate/infinite-recursion.rs rename to tests/codegen/non-terminate/infinite-recursion.rs diff --git a/src/test/codegen/non-terminate/nonempty-infinite-loop.rs b/tests/codegen/non-terminate/nonempty-infinite-loop.rs similarity index 100% rename from src/test/codegen/non-terminate/nonempty-infinite-loop.rs rename to tests/codegen/non-terminate/nonempty-infinite-loop.rs diff --git a/src/test/codegen/noreturn-uninhabited.rs b/tests/codegen/noreturn-uninhabited.rs similarity index 100% rename from src/test/codegen/noreturn-uninhabited.rs rename to tests/codegen/noreturn-uninhabited.rs diff --git a/src/test/codegen/noreturnflag.rs b/tests/codegen/noreturnflag.rs similarity index 100% rename from src/test/codegen/noreturnflag.rs rename to tests/codegen/noreturnflag.rs diff --git a/src/test/codegen/nounwind.rs b/tests/codegen/nounwind.rs similarity index 100% rename from src/test/codegen/nounwind.rs rename to tests/codegen/nounwind.rs diff --git a/src/test/codegen/nrvo.rs b/tests/codegen/nrvo.rs similarity index 100% rename from src/test/codegen/nrvo.rs rename to tests/codegen/nrvo.rs diff --git a/src/test/codegen/optimize-attr-1.rs b/tests/codegen/optimize-attr-1.rs similarity index 100% rename from src/test/codegen/optimize-attr-1.rs rename to tests/codegen/optimize-attr-1.rs diff --git a/src/test/codegen/option-nonzero-eq.rs b/tests/codegen/option-nonzero-eq.rs similarity index 100% rename from src/test/codegen/option-nonzero-eq.rs rename to tests/codegen/option-nonzero-eq.rs diff --git a/src/test/codegen/packed.rs b/tests/codegen/packed.rs similarity index 100% rename from src/test/codegen/packed.rs rename to tests/codegen/packed.rs diff --git a/src/test/codegen/panic-abort-windows.rs b/tests/codegen/panic-abort-windows.rs similarity index 100% rename from src/test/codegen/panic-abort-windows.rs rename to tests/codegen/panic-abort-windows.rs diff --git a/src/test/codegen/panic-in-drop-abort.rs b/tests/codegen/panic-in-drop-abort.rs similarity index 100% rename from src/test/codegen/panic-in-drop-abort.rs rename to tests/codegen/panic-in-drop-abort.rs diff --git a/src/test/codegen/panic-unwind-default-uwtable.rs b/tests/codegen/panic-unwind-default-uwtable.rs similarity index 100% rename from src/test/codegen/panic-unwind-default-uwtable.rs rename to tests/codegen/panic-unwind-default-uwtable.rs diff --git a/src/test/codegen/personality_lifetimes.rs b/tests/codegen/personality_lifetimes.rs similarity index 100% rename from src/test/codegen/personality_lifetimes.rs rename to tests/codegen/personality_lifetimes.rs diff --git a/src/test/codegen/pgo-counter-bias.rs b/tests/codegen/pgo-counter-bias.rs similarity index 100% rename from src/test/codegen/pgo-counter-bias.rs rename to tests/codegen/pgo-counter-bias.rs diff --git a/src/test/codegen/pgo-instrumentation.rs b/tests/codegen/pgo-instrumentation.rs similarity index 100% rename from src/test/codegen/pgo-instrumentation.rs rename to tests/codegen/pgo-instrumentation.rs diff --git a/src/test/codegen/pic-relocation-model.rs b/tests/codegen/pic-relocation-model.rs similarity index 100% rename from src/test/codegen/pic-relocation-model.rs rename to tests/codegen/pic-relocation-model.rs diff --git a/src/test/codegen/pie-relocation-model.rs b/tests/codegen/pie-relocation-model.rs similarity index 100% rename from src/test/codegen/pie-relocation-model.rs rename to tests/codegen/pie-relocation-model.rs diff --git a/src/test/codegen/refs.rs b/tests/codegen/refs.rs similarity index 100% rename from src/test/codegen/refs.rs rename to tests/codegen/refs.rs diff --git a/src/test/codegen/remap_path_prefix/aux_mod.rs b/tests/codegen/remap_path_prefix/aux_mod.rs similarity index 100% rename from src/test/codegen/remap_path_prefix/aux_mod.rs rename to tests/codegen/remap_path_prefix/aux_mod.rs diff --git a/src/test/codegen/remap_path_prefix/auxiliary/remap_path_prefix_aux.rs b/tests/codegen/remap_path_prefix/auxiliary/remap_path_prefix_aux.rs similarity index 100% rename from src/test/codegen/remap_path_prefix/auxiliary/remap_path_prefix_aux.rs rename to tests/codegen/remap_path_prefix/auxiliary/remap_path_prefix_aux.rs diff --git a/src/test/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs b/tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs similarity index 100% rename from src/test/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs rename to tests/codegen/remap_path_prefix/auxiliary/xcrate-generic.rs diff --git a/src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs b/tests/codegen/remap_path_prefix/issue-73167-remap-std.rs similarity index 100% rename from src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs rename to tests/codegen/remap_path_prefix/issue-73167-remap-std.rs diff --git a/src/test/codegen/remap_path_prefix/main.rs b/tests/codegen/remap_path_prefix/main.rs similarity index 100% rename from src/test/codegen/remap_path_prefix/main.rs rename to tests/codegen/remap_path_prefix/main.rs diff --git a/src/test/codegen/remap_path_prefix/xcrate-generic.rs b/tests/codegen/remap_path_prefix/xcrate-generic.rs similarity index 100% rename from src/test/codegen/remap_path_prefix/xcrate-generic.rs rename to tests/codegen/remap_path_prefix/xcrate-generic.rs diff --git a/src/test/codegen/repeat-trusted-len.rs b/tests/codegen/repeat-trusted-len.rs similarity index 100% rename from src/test/codegen/repeat-trusted-len.rs rename to tests/codegen/repeat-trusted-len.rs diff --git a/src/test/codegen/repr-transparent-aggregates-1.rs b/tests/codegen/repr-transparent-aggregates-1.rs similarity index 100% rename from src/test/codegen/repr-transparent-aggregates-1.rs rename to tests/codegen/repr-transparent-aggregates-1.rs diff --git a/src/test/codegen/repr-transparent-aggregates-2.rs b/tests/codegen/repr-transparent-aggregates-2.rs similarity index 100% rename from src/test/codegen/repr-transparent-aggregates-2.rs rename to tests/codegen/repr-transparent-aggregates-2.rs diff --git a/src/test/codegen/repr-transparent-aggregates-3.rs b/tests/codegen/repr-transparent-aggregates-3.rs similarity index 100% rename from src/test/codegen/repr-transparent-aggregates-3.rs rename to tests/codegen/repr-transparent-aggregates-3.rs diff --git a/src/test/codegen/repr-transparent-sysv64.rs b/tests/codegen/repr-transparent-sysv64.rs similarity index 100% rename from src/test/codegen/repr-transparent-sysv64.rs rename to tests/codegen/repr-transparent-sysv64.rs diff --git a/src/test/codegen/repr-transparent.rs b/tests/codegen/repr-transparent.rs similarity index 100% rename from src/test/codegen/repr-transparent.rs rename to tests/codegen/repr-transparent.rs diff --git a/src/test/codegen/riscv-abi/call-llvm-intrinsics.rs b/tests/codegen/riscv-abi/call-llvm-intrinsics.rs similarity index 100% rename from src/test/codegen/riscv-abi/call-llvm-intrinsics.rs rename to tests/codegen/riscv-abi/call-llvm-intrinsics.rs diff --git a/src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs b/tests/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs similarity index 100% rename from src/test/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs rename to tests/codegen/riscv-abi/riscv64-lp64-lp64f-lp64d-abi.rs diff --git a/src/test/codegen/riscv-abi/riscv64-lp64d-abi.rs b/tests/codegen/riscv-abi/riscv64-lp64d-abi.rs similarity index 100% rename from src/test/codegen/riscv-abi/riscv64-lp64d-abi.rs rename to tests/codegen/riscv-abi/riscv64-lp64d-abi.rs diff --git a/src/test/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs b/tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs similarity index 100% rename from src/test/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs rename to tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs diff --git a/src/test/codegen/sanitizer-cfi-add-canonical-jump-tables-flag.rs b/tests/codegen/sanitizer-cfi-add-canonical-jump-tables-flag.rs similarity index 100% rename from src/test/codegen/sanitizer-cfi-add-canonical-jump-tables-flag.rs rename to tests/codegen/sanitizer-cfi-add-canonical-jump-tables-flag.rs diff --git a/src/test/codegen/sanitizer-cfi-emit-type-checks.rs b/tests/codegen/sanitizer-cfi-emit-type-checks.rs similarity index 100% rename from src/test/codegen/sanitizer-cfi-emit-type-checks.rs rename to tests/codegen/sanitizer-cfi-emit-type-checks.rs diff --git a/src/test/codegen/sanitizer-cfi-emit-type-metadata-id-itanium-cxx-abi.rs b/tests/codegen/sanitizer-cfi-emit-type-metadata-id-itanium-cxx-abi.rs similarity index 100% rename from src/test/codegen/sanitizer-cfi-emit-type-metadata-id-itanium-cxx-abi.rs rename to tests/codegen/sanitizer-cfi-emit-type-metadata-id-itanium-cxx-abi.rs diff --git a/src/test/codegen/sanitizer-cfi-emit-type-metadata-itanium-cxx-abi.rs b/tests/codegen/sanitizer-cfi-emit-type-metadata-itanium-cxx-abi.rs similarity index 100% rename from src/test/codegen/sanitizer-cfi-emit-type-metadata-itanium-cxx-abi.rs rename to tests/codegen/sanitizer-cfi-emit-type-metadata-itanium-cxx-abi.rs diff --git a/src/test/codegen/sanitizer-kcfi-add-kcfi-flag.rs b/tests/codegen/sanitizer-kcfi-add-kcfi-flag.rs similarity index 100% rename from src/test/codegen/sanitizer-kcfi-add-kcfi-flag.rs rename to tests/codegen/sanitizer-kcfi-add-kcfi-flag.rs diff --git a/src/test/codegen/sanitizer-kcfi-emit-kcfi-operand-bundle-itanium-cxx-abi.rs b/tests/codegen/sanitizer-kcfi-emit-kcfi-operand-bundle-itanium-cxx-abi.rs similarity index 100% rename from src/test/codegen/sanitizer-kcfi-emit-kcfi-operand-bundle-itanium-cxx-abi.rs rename to tests/codegen/sanitizer-kcfi-emit-kcfi-operand-bundle-itanium-cxx-abi.rs diff --git a/src/test/codegen/sanitizer-memory-track-orgins.rs b/tests/codegen/sanitizer-memory-track-orgins.rs similarity index 100% rename from src/test/codegen/sanitizer-memory-track-orgins.rs rename to tests/codegen/sanitizer-memory-track-orgins.rs diff --git a/src/test/codegen/sanitizer-no-sanitize-inlining.rs b/tests/codegen/sanitizer-no-sanitize-inlining.rs similarity index 100% rename from src/test/codegen/sanitizer-no-sanitize-inlining.rs rename to tests/codegen/sanitizer-no-sanitize-inlining.rs diff --git a/src/test/codegen/sanitizer-no-sanitize.rs b/tests/codegen/sanitizer-no-sanitize.rs similarity index 100% rename from src/test/codegen/sanitizer-no-sanitize.rs rename to tests/codegen/sanitizer-no-sanitize.rs diff --git a/src/test/codegen/sanitizer-recover.rs b/tests/codegen/sanitizer-recover.rs similarity index 100% rename from src/test/codegen/sanitizer-recover.rs rename to tests/codegen/sanitizer-recover.rs diff --git a/src/test/codegen/sanitizer_memtag_attr_check.rs b/tests/codegen/sanitizer_memtag_attr_check.rs similarity index 100% rename from src/test/codegen/sanitizer_memtag_attr_check.rs rename to tests/codegen/sanitizer_memtag_attr_check.rs diff --git a/src/test/codegen/sanitizer_scs_attr_check.rs b/tests/codegen/sanitizer_scs_attr_check.rs similarity index 100% rename from src/test/codegen/sanitizer_scs_attr_check.rs rename to tests/codegen/sanitizer_scs_attr_check.rs diff --git a/src/test/codegen/scalar-pair-bool.rs b/tests/codegen/scalar-pair-bool.rs similarity index 100% rename from src/test/codegen/scalar-pair-bool.rs rename to tests/codegen/scalar-pair-bool.rs diff --git a/src/test/codegen/set-discriminant-invalid.rs b/tests/codegen/set-discriminant-invalid.rs similarity index 100% rename from src/test/codegen/set-discriminant-invalid.rs rename to tests/codegen/set-discriminant-invalid.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-abs.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-abs.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-abs.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-abs.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-ceil.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-ceil.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-ceil.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-ceil.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-cos.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-cos.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-cos.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-cos.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-exp.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-exp.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-exp.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-exp.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-exp2.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-exp2.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-exp2.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-exp2.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-floor.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-floor.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-floor.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-floor.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-fma.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-fma.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-fma.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-fma.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-fsqrt.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-fsqrt.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-fsqrt.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-fsqrt.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-log.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-log.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-log.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-log.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-log10.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-log10.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-log10.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-log10.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-log2.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-log2.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-log2.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-log2.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-minmax.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-minmax.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-minmax.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-minmax.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-pow.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-pow.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-pow.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-pow.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-powi.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-powi.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-powi.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-powi.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-float-sin.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-float-sin.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-float-sin.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-float-sin.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-generic-arithmetic-saturating.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-generic-arithmetic-saturating.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-generic-arithmetic-saturating.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-generic-arithmetic-saturating.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-generic-bitmask.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-generic-bitmask.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-generic-bitmask.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-generic-bitmask.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-generic-extract-insert.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-generic-extract-insert.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-generic-extract-insert.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-generic-extract-insert.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-generic-gather.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-generic-gather.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-generic-gather.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-generic-gather.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-generic-scatter.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-generic-scatter.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-generic-scatter.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-generic-scatter.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-generic-select.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-generic-select.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-generic-select.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-generic-select.rs diff --git a/src/test/codegen/simd-intrinsic/simd-intrinsic-transmute-array.rs b/tests/codegen/simd-intrinsic/simd-intrinsic-transmute-array.rs similarity index 100% rename from src/test/codegen/simd-intrinsic/simd-intrinsic-transmute-array.rs rename to tests/codegen/simd-intrinsic/simd-intrinsic-transmute-array.rs diff --git a/src/test/codegen/simd-wide-sum.rs b/tests/codegen/simd-wide-sum.rs similarity index 100% rename from src/test/codegen/simd-wide-sum.rs rename to tests/codegen/simd-wide-sum.rs diff --git a/src/test/codegen/simd_arith_offset.rs b/tests/codegen/simd_arith_offset.rs similarity index 100% rename from src/test/codegen/simd_arith_offset.rs rename to tests/codegen/simd_arith_offset.rs diff --git a/src/test/codegen/slice-as_chunks.rs b/tests/codegen/slice-as_chunks.rs similarity index 100% rename from src/test/codegen/slice-as_chunks.rs rename to tests/codegen/slice-as_chunks.rs diff --git a/src/test/codegen/slice-init.rs b/tests/codegen/slice-init.rs similarity index 100% rename from src/test/codegen/slice-init.rs rename to tests/codegen/slice-init.rs diff --git a/src/test/codegen/slice-iter-len-eq-zero.rs b/tests/codegen/slice-iter-len-eq-zero.rs similarity index 100% rename from src/test/codegen/slice-iter-len-eq-zero.rs rename to tests/codegen/slice-iter-len-eq-zero.rs diff --git a/src/test/codegen/slice-position-bounds-check.rs b/tests/codegen/slice-position-bounds-check.rs similarity index 100% rename from src/test/codegen/slice-position-bounds-check.rs rename to tests/codegen/slice-position-bounds-check.rs diff --git a/src/test/codegen/slice-ref-equality.rs b/tests/codegen/slice-ref-equality.rs similarity index 100% rename from src/test/codegen/slice-ref-equality.rs rename to tests/codegen/slice-ref-equality.rs diff --git a/src/test/codegen/slice-reverse.rs b/tests/codegen/slice-reverse.rs similarity index 100% rename from src/test/codegen/slice-reverse.rs rename to tests/codegen/slice-reverse.rs diff --git a/src/test/codegen/slice-windows-no-bounds-check.rs b/tests/codegen/slice-windows-no-bounds-check.rs similarity index 100% rename from src/test/codegen/slice-windows-no-bounds-check.rs rename to tests/codegen/slice-windows-no-bounds-check.rs diff --git a/src/test/codegen/slice_as_from_ptr_range.rs b/tests/codegen/slice_as_from_ptr_range.rs similarity index 100% rename from src/test/codegen/slice_as_from_ptr_range.rs rename to tests/codegen/slice_as_from_ptr_range.rs diff --git a/src/test/codegen/some-abis-do-extend-params-to-32-bits.rs b/tests/codegen/some-abis-do-extend-params-to-32-bits.rs similarity index 100% rename from src/test/codegen/some-abis-do-extend-params-to-32-bits.rs rename to tests/codegen/some-abis-do-extend-params-to-32-bits.rs diff --git a/src/test/codegen/some-global-nonnull.rs b/tests/codegen/some-global-nonnull.rs similarity index 100% rename from src/test/codegen/some-global-nonnull.rs rename to tests/codegen/some-global-nonnull.rs diff --git a/src/test/codegen/sparc-struct-abi.rs b/tests/codegen/sparc-struct-abi.rs similarity index 100% rename from src/test/codegen/sparc-struct-abi.rs rename to tests/codegen/sparc-struct-abi.rs diff --git a/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs b/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs similarity index 100% rename from src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs rename to tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs diff --git a/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs b/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs similarity index 100% rename from src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs rename to tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs diff --git a/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs b/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs similarity index 100% rename from src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs rename to tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs diff --git a/src/test/codegen/sse42-implies-crc32.rs b/tests/codegen/sse42-implies-crc32.rs similarity index 100% rename from src/test/codegen/sse42-implies-crc32.rs rename to tests/codegen/sse42-implies-crc32.rs diff --git a/src/test/codegen/stack-probes-call.rs b/tests/codegen/stack-probes-call.rs similarity index 100% rename from src/test/codegen/stack-probes-call.rs rename to tests/codegen/stack-probes-call.rs diff --git a/src/test/codegen/stack-probes-inline.rs b/tests/codegen/stack-probes-inline.rs similarity index 100% rename from src/test/codegen/stack-probes-inline.rs rename to tests/codegen/stack-probes-inline.rs diff --git a/src/test/codegen/stack-protector.rs b/tests/codegen/stack-protector.rs similarity index 100% rename from src/test/codegen/stack-protector.rs rename to tests/codegen/stack-protector.rs diff --git a/src/test/codegen/static-relocation-model-msvc.rs b/tests/codegen/static-relocation-model-msvc.rs similarity index 100% rename from src/test/codegen/static-relocation-model-msvc.rs rename to tests/codegen/static-relocation-model-msvc.rs diff --git a/src/test/codegen/staticlib-external-inline-fns.rs b/tests/codegen/staticlib-external-inline-fns.rs similarity index 100% rename from src/test/codegen/staticlib-external-inline-fns.rs rename to tests/codegen/staticlib-external-inline-fns.rs diff --git a/src/test/codegen/stores.rs b/tests/codegen/stores.rs similarity index 100% rename from src/test/codegen/stores.rs rename to tests/codegen/stores.rs diff --git a/src/test/codegen/swap-large-types.rs b/tests/codegen/swap-large-types.rs similarity index 100% rename from src/test/codegen/swap-large-types.rs rename to tests/codegen/swap-large-types.rs diff --git a/src/test/codegen/swap-simd-types.rs b/tests/codegen/swap-simd-types.rs similarity index 100% rename from src/test/codegen/swap-simd-types.rs rename to tests/codegen/swap-simd-types.rs diff --git a/src/test/codegen/swap-small-types.rs b/tests/codegen/swap-small-types.rs similarity index 100% rename from src/test/codegen/swap-small-types.rs rename to tests/codegen/swap-small-types.rs diff --git a/src/test/codegen/target-cpu-on-functions.rs b/tests/codegen/target-cpu-on-functions.rs similarity index 100% rename from src/test/codegen/target-cpu-on-functions.rs rename to tests/codegen/target-cpu-on-functions.rs diff --git a/src/test/codegen/target-feature-overrides.rs b/tests/codegen/target-feature-overrides.rs similarity index 95% rename from src/test/codegen/target-feature-overrides.rs rename to tests/codegen/target-feature-overrides.rs index 4be77e36e760b..1bebf66f0df43 100644 --- a/src/test/codegen/target-feature-overrides.rs +++ b/tests/codegen/target-feature-overrides.rs @@ -4,7 +4,7 @@ // [COMPAT] compile-flags: -Ctarget-feature=+avx2,+avx // [INCOMPAT] compile-flags: -Ctarget-feature=-avx2,-avx -// See also src/test/assembly/target-feature-multiple.rs +// See also tests/assembly/target-feature-multiple.rs #![feature(no_core, lang_items)] #![crate_type = "lib"] #![no_core] diff --git a/src/test/codegen/thread-local.rs b/tests/codegen/thread-local.rs similarity index 100% rename from src/test/codegen/thread-local.rs rename to tests/codegen/thread-local.rs diff --git a/src/test/codegen/to_vec.rs b/tests/codegen/to_vec.rs similarity index 100% rename from src/test/codegen/to_vec.rs rename to tests/codegen/to_vec.rs diff --git a/src/test/codegen/transmute-scalar.rs b/tests/codegen/transmute-scalar.rs similarity index 100% rename from src/test/codegen/transmute-scalar.rs rename to tests/codegen/transmute-scalar.rs diff --git a/src/test/codegen/try_identity.rs b/tests/codegen/try_identity.rs similarity index 100% rename from src/test/codegen/try_identity.rs rename to tests/codegen/try_identity.rs diff --git a/src/test/codegen/try_question_mark_nop.rs b/tests/codegen/try_question_mark_nop.rs similarity index 100% rename from src/test/codegen/try_question_mark_nop.rs rename to tests/codegen/try_question_mark_nop.rs diff --git a/src/test/codegen/tune-cpu-on-functions.rs b/tests/codegen/tune-cpu-on-functions.rs similarity index 100% rename from src/test/codegen/tune-cpu-on-functions.rs rename to tests/codegen/tune-cpu-on-functions.rs diff --git a/src/test/codegen/tuple-layout-opt.rs b/tests/codegen/tuple-layout-opt.rs similarity index 100% rename from src/test/codegen/tuple-layout-opt.rs rename to tests/codegen/tuple-layout-opt.rs diff --git a/src/test/codegen/unchecked-float-casts.rs b/tests/codegen/unchecked-float-casts.rs similarity index 100% rename from src/test/codegen/unchecked-float-casts.rs rename to tests/codegen/unchecked-float-casts.rs diff --git a/src/test/codegen/unchecked_shifts.rs b/tests/codegen/unchecked_shifts.rs similarity index 100% rename from src/test/codegen/unchecked_shifts.rs rename to tests/codegen/unchecked_shifts.rs diff --git a/src/test/codegen/uninit-consts.rs b/tests/codegen/uninit-consts.rs similarity index 100% rename from src/test/codegen/uninit-consts.rs rename to tests/codegen/uninit-consts.rs diff --git a/src/test/codegen/union-abi.rs b/tests/codegen/union-abi.rs similarity index 100% rename from src/test/codegen/union-abi.rs rename to tests/codegen/union-abi.rs diff --git a/src/test/codegen/unpadded-simd.rs b/tests/codegen/unpadded-simd.rs similarity index 100% rename from src/test/codegen/unpadded-simd.rs rename to tests/codegen/unpadded-simd.rs diff --git a/src/test/codegen/unwind-abis/aapcs-unwind-abi.rs b/tests/codegen/unwind-abis/aapcs-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/aapcs-unwind-abi.rs rename to tests/codegen/unwind-abis/aapcs-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs b/tests/codegen/unwind-abis/c-unwind-abi-panic-abort.rs similarity index 100% rename from src/test/codegen/unwind-abis/c-unwind-abi-panic-abort.rs rename to tests/codegen/unwind-abis/c-unwind-abi-panic-abort.rs diff --git a/src/test/codegen/unwind-abis/c-unwind-abi.rs b/tests/codegen/unwind-abis/c-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/c-unwind-abi.rs rename to tests/codegen/unwind-abis/c-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/cdecl-unwind-abi.rs b/tests/codegen/unwind-abis/cdecl-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/cdecl-unwind-abi.rs rename to tests/codegen/unwind-abis/cdecl-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/fastcall-unwind-abi.rs b/tests/codegen/unwind-abis/fastcall-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/fastcall-unwind-abi.rs rename to tests/codegen/unwind-abis/fastcall-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs b/tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs similarity index 100% rename from src/test/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs rename to tests/codegen/unwind-abis/nounwind-on-stable-panic-abort.rs diff --git a/src/test/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs b/tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs similarity index 100% rename from src/test/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs rename to tests/codegen/unwind-abis/nounwind-on-stable-panic-unwind.rs diff --git a/src/test/codegen/unwind-abis/nounwind.rs b/tests/codegen/unwind-abis/nounwind.rs similarity index 100% rename from src/test/codegen/unwind-abis/nounwind.rs rename to tests/codegen/unwind-abis/nounwind.rs diff --git a/src/test/codegen/unwind-abis/stdcall-unwind-abi.rs b/tests/codegen/unwind-abis/stdcall-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/stdcall-unwind-abi.rs rename to tests/codegen/unwind-abis/stdcall-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/system-unwind-abi.rs b/tests/codegen/unwind-abis/system-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/system-unwind-abi.rs rename to tests/codegen/unwind-abis/system-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/sysv64-unwind-abi.rs b/tests/codegen/unwind-abis/sysv64-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/sysv64-unwind-abi.rs rename to tests/codegen/unwind-abis/sysv64-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/thiscall-unwind-abi.rs b/tests/codegen/unwind-abis/thiscall-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/thiscall-unwind-abi.rs rename to tests/codegen/unwind-abis/thiscall-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/vectorcall-unwind-abi.rs b/tests/codegen/unwind-abis/vectorcall-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/vectorcall-unwind-abi.rs rename to tests/codegen/unwind-abis/vectorcall-unwind-abi.rs diff --git a/src/test/codegen/unwind-abis/win64-unwind-abi.rs b/tests/codegen/unwind-abis/win64-unwind-abi.rs similarity index 100% rename from src/test/codegen/unwind-abis/win64-unwind-abi.rs rename to tests/codegen/unwind-abis/win64-unwind-abi.rs diff --git a/src/test/codegen/unwind-and-panic-abort.rs b/tests/codegen/unwind-and-panic-abort.rs similarity index 100% rename from src/test/codegen/unwind-and-panic-abort.rs rename to tests/codegen/unwind-and-panic-abort.rs diff --git a/src/test/codegen/unwind-extern-exports.rs b/tests/codegen/unwind-extern-exports.rs similarity index 100% rename from src/test/codegen/unwind-extern-exports.rs rename to tests/codegen/unwind-extern-exports.rs diff --git a/src/test/codegen/unwind-extern-imports.rs b/tests/codegen/unwind-extern-imports.rs similarity index 100% rename from src/test/codegen/unwind-extern-imports.rs rename to tests/codegen/unwind-extern-imports.rs diff --git a/src/test/codegen/used_with_arg.rs b/tests/codegen/used_with_arg.rs similarity index 100% rename from src/test/codegen/used_with_arg.rs rename to tests/codegen/used_with_arg.rs diff --git a/src/test/codegen/var-names.rs b/tests/codegen/var-names.rs similarity index 100% rename from src/test/codegen/var-names.rs rename to tests/codegen/var-names.rs diff --git a/src/test/codegen/vec-calloc-llvm14.rs b/tests/codegen/vec-calloc-llvm14.rs similarity index 100% rename from src/test/codegen/vec-calloc-llvm14.rs rename to tests/codegen/vec-calloc-llvm14.rs diff --git a/src/test/codegen/vec-calloc.rs b/tests/codegen/vec-calloc.rs similarity index 100% rename from src/test/codegen/vec-calloc.rs rename to tests/codegen/vec-calloc.rs diff --git a/src/test/codegen/vec-in-place.rs b/tests/codegen/vec-in-place.rs similarity index 100% rename from src/test/codegen/vec-in-place.rs rename to tests/codegen/vec-in-place.rs diff --git a/src/test/codegen/vec-iter-collect-len.rs b/tests/codegen/vec-iter-collect-len.rs similarity index 100% rename from src/test/codegen/vec-iter-collect-len.rs rename to tests/codegen/vec-iter-collect-len.rs diff --git a/src/test/codegen/vec-optimizes-away.rs b/tests/codegen/vec-optimizes-away.rs similarity index 100% rename from src/test/codegen/vec-optimizes-away.rs rename to tests/codegen/vec-optimizes-away.rs diff --git a/src/test/codegen/vec-shrink-panik.rs b/tests/codegen/vec-shrink-panik.rs similarity index 100% rename from src/test/codegen/vec-shrink-panik.rs rename to tests/codegen/vec-shrink-panik.rs diff --git a/src/test/codegen/vecdeque_no_panic.rs b/tests/codegen/vecdeque_no_panic.rs similarity index 100% rename from src/test/codegen/vecdeque_no_panic.rs rename to tests/codegen/vecdeque_no_panic.rs diff --git a/src/test/codegen/virtual-function-elimination-32bit.rs b/tests/codegen/virtual-function-elimination-32bit.rs similarity index 100% rename from src/test/codegen/virtual-function-elimination-32bit.rs rename to tests/codegen/virtual-function-elimination-32bit.rs diff --git a/src/test/codegen/virtual-function-elimination.rs b/tests/codegen/virtual-function-elimination.rs similarity index 100% rename from src/test/codegen/virtual-function-elimination.rs rename to tests/codegen/virtual-function-elimination.rs diff --git a/src/test/codegen/wasm_casts_trapping.rs b/tests/codegen/wasm_casts_trapping.rs similarity index 100% rename from src/test/codegen/wasm_casts_trapping.rs rename to tests/codegen/wasm_casts_trapping.rs diff --git a/src/test/codegen/x86_64-macosx-deployment-target.rs b/tests/codegen/x86_64-macosx-deployment-target.rs similarity index 100% rename from src/test/codegen/x86_64-macosx-deployment-target.rs rename to tests/codegen/x86_64-macosx-deployment-target.rs diff --git a/src/test/codegen/x86_64-no-macosx-deployment-target.rs b/tests/codegen/x86_64-no-macosx-deployment-target.rs similarity index 100% rename from src/test/codegen/x86_64-no-macosx-deployment-target.rs rename to tests/codegen/x86_64-no-macosx-deployment-target.rs diff --git a/src/test/codegen/zip.rs b/tests/codegen/zip.rs similarity index 100% rename from src/test/codegen/zip.rs rename to tests/codegen/zip.rs diff --git a/src/test/codegen/zst-offset.rs b/tests/codegen/zst-offset.rs similarity index 100% rename from src/test/codegen/zst-offset.rs rename to tests/codegen/zst-offset.rs diff --git a/src/test/debuginfo/associated-types.rs b/tests/debuginfo/associated-types.rs similarity index 100% rename from src/test/debuginfo/associated-types.rs rename to tests/debuginfo/associated-types.rs diff --git a/src/test/debuginfo/auxiliary/cross_crate_debuginfo_type_uniquing.rs b/tests/debuginfo/auxiliary/cross_crate_debuginfo_type_uniquing.rs similarity index 100% rename from src/test/debuginfo/auxiliary/cross_crate_debuginfo_type_uniquing.rs rename to tests/debuginfo/auxiliary/cross_crate_debuginfo_type_uniquing.rs diff --git a/src/test/debuginfo/auxiliary/cross_crate_spans.rs b/tests/debuginfo/auxiliary/cross_crate_spans.rs similarity index 100% rename from src/test/debuginfo/auxiliary/cross_crate_spans.rs rename to tests/debuginfo/auxiliary/cross_crate_spans.rs diff --git a/src/test/debuginfo/auxiliary/dependency-with-embedded-visualizers.natvis b/tests/debuginfo/auxiliary/dependency-with-embedded-visualizers.natvis similarity index 100% rename from src/test/debuginfo/auxiliary/dependency-with-embedded-visualizers.natvis rename to tests/debuginfo/auxiliary/dependency-with-embedded-visualizers.natvis diff --git a/src/test/debuginfo/auxiliary/dependency-with-embedded-visualizers.py b/tests/debuginfo/auxiliary/dependency-with-embedded-visualizers.py similarity index 100% rename from src/test/debuginfo/auxiliary/dependency-with-embedded-visualizers.py rename to tests/debuginfo/auxiliary/dependency-with-embedded-visualizers.py diff --git a/src/test/debuginfo/auxiliary/dependency-with-embedded-visualizers.rs b/tests/debuginfo/auxiliary/dependency-with-embedded-visualizers.rs similarity index 100% rename from src/test/debuginfo/auxiliary/dependency-with-embedded-visualizers.rs rename to tests/debuginfo/auxiliary/dependency-with-embedded-visualizers.rs diff --git a/src/test/debuginfo/auxiliary/issue-13213-aux.rs b/tests/debuginfo/auxiliary/issue-13213-aux.rs similarity index 100% rename from src/test/debuginfo/auxiliary/issue-13213-aux.rs rename to tests/debuginfo/auxiliary/issue-13213-aux.rs diff --git a/src/test/debuginfo/auxiliary/macro-stepping.rs b/tests/debuginfo/auxiliary/macro-stepping.rs similarity index 100% rename from src/test/debuginfo/auxiliary/macro-stepping.rs rename to tests/debuginfo/auxiliary/macro-stepping.rs diff --git a/src/test/debuginfo/basic-types-globals-metadata.rs b/tests/debuginfo/basic-types-globals-metadata.rs similarity index 100% rename from src/test/debuginfo/basic-types-globals-metadata.rs rename to tests/debuginfo/basic-types-globals-metadata.rs diff --git a/src/test/debuginfo/basic-types-globals.rs b/tests/debuginfo/basic-types-globals.rs similarity index 100% rename from src/test/debuginfo/basic-types-globals.rs rename to tests/debuginfo/basic-types-globals.rs diff --git a/src/test/debuginfo/basic-types-metadata.rs b/tests/debuginfo/basic-types-metadata.rs similarity index 100% rename from src/test/debuginfo/basic-types-metadata.rs rename to tests/debuginfo/basic-types-metadata.rs diff --git a/src/test/debuginfo/basic-types-mut-globals.rs b/tests/debuginfo/basic-types-mut-globals.rs similarity index 100% rename from src/test/debuginfo/basic-types-mut-globals.rs rename to tests/debuginfo/basic-types-mut-globals.rs diff --git a/src/test/debuginfo/basic-types.rs b/tests/debuginfo/basic-types.rs similarity index 100% rename from src/test/debuginfo/basic-types.rs rename to tests/debuginfo/basic-types.rs diff --git a/src/test/debuginfo/borrowed-basic.rs b/tests/debuginfo/borrowed-basic.rs similarity index 100% rename from src/test/debuginfo/borrowed-basic.rs rename to tests/debuginfo/borrowed-basic.rs diff --git a/src/test/debuginfo/borrowed-c-style-enum.rs b/tests/debuginfo/borrowed-c-style-enum.rs similarity index 100% rename from src/test/debuginfo/borrowed-c-style-enum.rs rename to tests/debuginfo/borrowed-c-style-enum.rs diff --git a/src/test/debuginfo/borrowed-enum.rs b/tests/debuginfo/borrowed-enum.rs similarity index 100% rename from src/test/debuginfo/borrowed-enum.rs rename to tests/debuginfo/borrowed-enum.rs diff --git a/src/test/debuginfo/borrowed-struct.rs b/tests/debuginfo/borrowed-struct.rs similarity index 100% rename from src/test/debuginfo/borrowed-struct.rs rename to tests/debuginfo/borrowed-struct.rs diff --git a/src/test/debuginfo/borrowed-tuple.rs b/tests/debuginfo/borrowed-tuple.rs similarity index 100% rename from src/test/debuginfo/borrowed-tuple.rs rename to tests/debuginfo/borrowed-tuple.rs diff --git a/src/test/debuginfo/borrowed-unique-basic.rs b/tests/debuginfo/borrowed-unique-basic.rs similarity index 100% rename from src/test/debuginfo/borrowed-unique-basic.rs rename to tests/debuginfo/borrowed-unique-basic.rs diff --git a/src/test/debuginfo/box.rs b/tests/debuginfo/box.rs similarity index 100% rename from src/test/debuginfo/box.rs rename to tests/debuginfo/box.rs diff --git a/src/test/debuginfo/boxed-struct.rs b/tests/debuginfo/boxed-struct.rs similarity index 100% rename from src/test/debuginfo/boxed-struct.rs rename to tests/debuginfo/boxed-struct.rs diff --git a/src/test/debuginfo/by-value-non-immediate-argument.rs b/tests/debuginfo/by-value-non-immediate-argument.rs similarity index 100% rename from src/test/debuginfo/by-value-non-immediate-argument.rs rename to tests/debuginfo/by-value-non-immediate-argument.rs diff --git a/src/test/debuginfo/by-value-self-argument-in-trait-impl.rs b/tests/debuginfo/by-value-self-argument-in-trait-impl.rs similarity index 100% rename from src/test/debuginfo/by-value-self-argument-in-trait-impl.rs rename to tests/debuginfo/by-value-self-argument-in-trait-impl.rs diff --git a/src/test/debuginfo/c-style-enum-in-composite.rs b/tests/debuginfo/c-style-enum-in-composite.rs similarity index 100% rename from src/test/debuginfo/c-style-enum-in-composite.rs rename to tests/debuginfo/c-style-enum-in-composite.rs diff --git a/src/test/debuginfo/c-style-enum.rs b/tests/debuginfo/c-style-enum.rs similarity index 100% rename from src/test/debuginfo/c-style-enum.rs rename to tests/debuginfo/c-style-enum.rs diff --git a/src/test/debuginfo/captured-fields-1.rs b/tests/debuginfo/captured-fields-1.rs similarity index 100% rename from src/test/debuginfo/captured-fields-1.rs rename to tests/debuginfo/captured-fields-1.rs diff --git a/src/test/debuginfo/captured-fields-2.rs b/tests/debuginfo/captured-fields-2.rs similarity index 100% rename from src/test/debuginfo/captured-fields-2.rs rename to tests/debuginfo/captured-fields-2.rs diff --git a/src/test/debuginfo/closure-in-generic-function.rs b/tests/debuginfo/closure-in-generic-function.rs similarity index 100% rename from src/test/debuginfo/closure-in-generic-function.rs rename to tests/debuginfo/closure-in-generic-function.rs diff --git a/src/test/debuginfo/collapse-debuginfo-no-attr-flag.rs b/tests/debuginfo/collapse-debuginfo-no-attr-flag.rs similarity index 100% rename from src/test/debuginfo/collapse-debuginfo-no-attr-flag.rs rename to tests/debuginfo/collapse-debuginfo-no-attr-flag.rs diff --git a/src/test/debuginfo/collapse-debuginfo-no-attr.rs b/tests/debuginfo/collapse-debuginfo-no-attr.rs similarity index 100% rename from src/test/debuginfo/collapse-debuginfo-no-attr.rs rename to tests/debuginfo/collapse-debuginfo-no-attr.rs diff --git a/src/test/debuginfo/collapse-debuginfo-with-attr-flag.rs b/tests/debuginfo/collapse-debuginfo-with-attr-flag.rs similarity index 100% rename from src/test/debuginfo/collapse-debuginfo-with-attr-flag.rs rename to tests/debuginfo/collapse-debuginfo-with-attr-flag.rs diff --git a/src/test/debuginfo/collapse-debuginfo-with-attr.rs b/tests/debuginfo/collapse-debuginfo-with-attr.rs similarity index 100% rename from src/test/debuginfo/collapse-debuginfo-with-attr.rs rename to tests/debuginfo/collapse-debuginfo-with-attr.rs diff --git a/src/test/debuginfo/constant-debug-locs.rs b/tests/debuginfo/constant-debug-locs.rs similarity index 100% rename from src/test/debuginfo/constant-debug-locs.rs rename to tests/debuginfo/constant-debug-locs.rs diff --git a/src/test/debuginfo/constant-in-match-pattern.rs b/tests/debuginfo/constant-in-match-pattern.rs similarity index 100% rename from src/test/debuginfo/constant-in-match-pattern.rs rename to tests/debuginfo/constant-in-match-pattern.rs diff --git a/src/test/debuginfo/cross-crate-spans.rs b/tests/debuginfo/cross-crate-spans.rs similarity index 100% rename from src/test/debuginfo/cross-crate-spans.rs rename to tests/debuginfo/cross-crate-spans.rs diff --git a/src/test/debuginfo/cross-crate-type-uniquing.rs b/tests/debuginfo/cross-crate-type-uniquing.rs similarity index 100% rename from src/test/debuginfo/cross-crate-type-uniquing.rs rename to tests/debuginfo/cross-crate-type-uniquing.rs diff --git a/src/test/debuginfo/destructured-fn-argument.rs b/tests/debuginfo/destructured-fn-argument.rs similarity index 100% rename from src/test/debuginfo/destructured-fn-argument.rs rename to tests/debuginfo/destructured-fn-argument.rs diff --git a/src/test/debuginfo/destructured-for-loop-variable.rs b/tests/debuginfo/destructured-for-loop-variable.rs similarity index 100% rename from src/test/debuginfo/destructured-for-loop-variable.rs rename to tests/debuginfo/destructured-for-loop-variable.rs diff --git a/src/test/debuginfo/destructured-local.rs b/tests/debuginfo/destructured-local.rs similarity index 100% rename from src/test/debuginfo/destructured-local.rs rename to tests/debuginfo/destructured-local.rs diff --git a/src/test/debuginfo/drop-locations.rs b/tests/debuginfo/drop-locations.rs similarity index 100% rename from src/test/debuginfo/drop-locations.rs rename to tests/debuginfo/drop-locations.rs diff --git a/src/test/debuginfo/duration-type.rs b/tests/debuginfo/duration-type.rs similarity index 100% rename from src/test/debuginfo/duration-type.rs rename to tests/debuginfo/duration-type.rs diff --git a/src/test/debuginfo/embedded-visualizer-point.natvis b/tests/debuginfo/embedded-visualizer-point.natvis similarity index 100% rename from src/test/debuginfo/embedded-visualizer-point.natvis rename to tests/debuginfo/embedded-visualizer-point.natvis diff --git a/src/test/debuginfo/embedded-visualizer-point.py b/tests/debuginfo/embedded-visualizer-point.py similarity index 100% rename from src/test/debuginfo/embedded-visualizer-point.py rename to tests/debuginfo/embedded-visualizer-point.py diff --git a/src/test/debuginfo/embedded-visualizer.natvis b/tests/debuginfo/embedded-visualizer.natvis similarity index 100% rename from src/test/debuginfo/embedded-visualizer.natvis rename to tests/debuginfo/embedded-visualizer.natvis diff --git a/src/test/debuginfo/embedded-visualizer.py b/tests/debuginfo/embedded-visualizer.py similarity index 100% rename from src/test/debuginfo/embedded-visualizer.py rename to tests/debuginfo/embedded-visualizer.py diff --git a/src/test/debuginfo/embedded-visualizer.rs b/tests/debuginfo/embedded-visualizer.rs similarity index 100% rename from src/test/debuginfo/embedded-visualizer.rs rename to tests/debuginfo/embedded-visualizer.rs diff --git a/src/test/debuginfo/empty-string.rs b/tests/debuginfo/empty-string.rs similarity index 100% rename from src/test/debuginfo/empty-string.rs rename to tests/debuginfo/empty-string.rs diff --git a/src/test/debuginfo/enum-thinlto.rs b/tests/debuginfo/enum-thinlto.rs similarity index 100% rename from src/test/debuginfo/enum-thinlto.rs rename to tests/debuginfo/enum-thinlto.rs diff --git a/src/test/debuginfo/evec-in-struct.rs b/tests/debuginfo/evec-in-struct.rs similarity index 100% rename from src/test/debuginfo/evec-in-struct.rs rename to tests/debuginfo/evec-in-struct.rs diff --git a/src/test/debuginfo/extern-c-fn.rs b/tests/debuginfo/extern-c-fn.rs similarity index 100% rename from src/test/debuginfo/extern-c-fn.rs rename to tests/debuginfo/extern-c-fn.rs diff --git a/src/test/debuginfo/fixed-sized-array.rs b/tests/debuginfo/fixed-sized-array.rs similarity index 100% rename from src/test/debuginfo/fixed-sized-array.rs rename to tests/debuginfo/fixed-sized-array.rs diff --git a/src/test/debuginfo/function-arg-initialization.rs b/tests/debuginfo/function-arg-initialization.rs similarity index 100% rename from src/test/debuginfo/function-arg-initialization.rs rename to tests/debuginfo/function-arg-initialization.rs diff --git a/src/test/debuginfo/function-arguments.rs b/tests/debuginfo/function-arguments.rs similarity index 100% rename from src/test/debuginfo/function-arguments.rs rename to tests/debuginfo/function-arguments.rs diff --git a/src/test/debuginfo/function-call.rs b/tests/debuginfo/function-call.rs similarity index 100% rename from src/test/debuginfo/function-call.rs rename to tests/debuginfo/function-call.rs diff --git a/src/test/debuginfo/function-names.rs b/tests/debuginfo/function-names.rs similarity index 100% rename from src/test/debuginfo/function-names.rs rename to tests/debuginfo/function-names.rs diff --git a/src/test/debuginfo/function-prologue-stepping-regular.rs b/tests/debuginfo/function-prologue-stepping-regular.rs similarity index 100% rename from src/test/debuginfo/function-prologue-stepping-regular.rs rename to tests/debuginfo/function-prologue-stepping-regular.rs diff --git a/src/test/debuginfo/gdb-char.rs b/tests/debuginfo/gdb-char.rs similarity index 100% rename from src/test/debuginfo/gdb-char.rs rename to tests/debuginfo/gdb-char.rs diff --git a/src/test/debuginfo/gdb-pretty-struct-and-enums.rs b/tests/debuginfo/gdb-pretty-struct-and-enums.rs similarity index 100% rename from src/test/debuginfo/gdb-pretty-struct-and-enums.rs rename to tests/debuginfo/gdb-pretty-struct-and-enums.rs diff --git a/src/test/debuginfo/generator-locals.rs b/tests/debuginfo/generator-locals.rs similarity index 100% rename from src/test/debuginfo/generator-locals.rs rename to tests/debuginfo/generator-locals.rs diff --git a/src/test/debuginfo/generator-objects.rs b/tests/debuginfo/generator-objects.rs similarity index 100% rename from src/test/debuginfo/generator-objects.rs rename to tests/debuginfo/generator-objects.rs diff --git a/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs b/tests/debuginfo/generic-enum-with-different-disr-sizes.rs similarity index 100% rename from src/test/debuginfo/generic-enum-with-different-disr-sizes.rs rename to tests/debuginfo/generic-enum-with-different-disr-sizes.rs diff --git a/src/test/debuginfo/generic-function.rs b/tests/debuginfo/generic-function.rs similarity index 100% rename from src/test/debuginfo/generic-function.rs rename to tests/debuginfo/generic-function.rs diff --git a/src/test/debuginfo/generic-functions-nested.rs b/tests/debuginfo/generic-functions-nested.rs similarity index 100% rename from src/test/debuginfo/generic-functions-nested.rs rename to tests/debuginfo/generic-functions-nested.rs diff --git a/src/test/debuginfo/generic-method-on-generic-struct.rs b/tests/debuginfo/generic-method-on-generic-struct.rs similarity index 100% rename from src/test/debuginfo/generic-method-on-generic-struct.rs rename to tests/debuginfo/generic-method-on-generic-struct.rs diff --git a/src/test/debuginfo/generic-static-method-on-struct-and-enum.rs b/tests/debuginfo/generic-static-method-on-struct-and-enum.rs similarity index 100% rename from src/test/debuginfo/generic-static-method-on-struct-and-enum.rs rename to tests/debuginfo/generic-static-method-on-struct-and-enum.rs diff --git a/src/test/debuginfo/generic-struct-style-enum.rs b/tests/debuginfo/generic-struct-style-enum.rs similarity index 100% rename from src/test/debuginfo/generic-struct-style-enum.rs rename to tests/debuginfo/generic-struct-style-enum.rs diff --git a/src/test/debuginfo/generic-struct.rs b/tests/debuginfo/generic-struct.rs similarity index 100% rename from src/test/debuginfo/generic-struct.rs rename to tests/debuginfo/generic-struct.rs diff --git a/src/test/debuginfo/generic-tuple-style-enum.rs b/tests/debuginfo/generic-tuple-style-enum.rs similarity index 100% rename from src/test/debuginfo/generic-tuple-style-enum.rs rename to tests/debuginfo/generic-tuple-style-enum.rs diff --git a/src/test/debuginfo/include_string.rs b/tests/debuginfo/include_string.rs similarity index 100% rename from src/test/debuginfo/include_string.rs rename to tests/debuginfo/include_string.rs diff --git a/src/test/debuginfo/issue-12886.rs b/tests/debuginfo/issue-12886.rs similarity index 100% rename from src/test/debuginfo/issue-12886.rs rename to tests/debuginfo/issue-12886.rs diff --git a/src/test/debuginfo/issue-13213.rs b/tests/debuginfo/issue-13213.rs similarity index 100% rename from src/test/debuginfo/issue-13213.rs rename to tests/debuginfo/issue-13213.rs diff --git a/src/test/debuginfo/issue-14411.rs b/tests/debuginfo/issue-14411.rs similarity index 100% rename from src/test/debuginfo/issue-14411.rs rename to tests/debuginfo/issue-14411.rs diff --git a/src/test/debuginfo/issue-22656.rs b/tests/debuginfo/issue-22656.rs similarity index 100% rename from src/test/debuginfo/issue-22656.rs rename to tests/debuginfo/issue-22656.rs diff --git a/src/test/debuginfo/issue-57822.rs b/tests/debuginfo/issue-57822.rs similarity index 100% rename from src/test/debuginfo/issue-57822.rs rename to tests/debuginfo/issue-57822.rs diff --git a/src/test/debuginfo/issue-7712.rs b/tests/debuginfo/issue-7712.rs similarity index 100% rename from src/test/debuginfo/issue-7712.rs rename to tests/debuginfo/issue-7712.rs diff --git a/src/test/debuginfo/lexical-scope-in-for-loop.rs b/tests/debuginfo/lexical-scope-in-for-loop.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-for-loop.rs rename to tests/debuginfo/lexical-scope-in-for-loop.rs diff --git a/src/test/debuginfo/lexical-scope-in-if-let.rs b/tests/debuginfo/lexical-scope-in-if-let.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-if-let.rs rename to tests/debuginfo/lexical-scope-in-if-let.rs diff --git a/src/test/debuginfo/lexical-scope-in-if.rs b/tests/debuginfo/lexical-scope-in-if.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-if.rs rename to tests/debuginfo/lexical-scope-in-if.rs diff --git a/src/test/debuginfo/lexical-scope-in-match.rs b/tests/debuginfo/lexical-scope-in-match.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-match.rs rename to tests/debuginfo/lexical-scope-in-match.rs diff --git a/src/test/debuginfo/lexical-scope-in-parameterless-closure.rs b/tests/debuginfo/lexical-scope-in-parameterless-closure.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-parameterless-closure.rs rename to tests/debuginfo/lexical-scope-in-parameterless-closure.rs diff --git a/src/test/debuginfo/lexical-scope-in-stack-closure.rs b/tests/debuginfo/lexical-scope-in-stack-closure.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-stack-closure.rs rename to tests/debuginfo/lexical-scope-in-stack-closure.rs diff --git a/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs b/tests/debuginfo/lexical-scope-in-unconditional-loop.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-unconditional-loop.rs rename to tests/debuginfo/lexical-scope-in-unconditional-loop.rs diff --git a/src/test/debuginfo/lexical-scope-in-unique-closure.rs b/tests/debuginfo/lexical-scope-in-unique-closure.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-unique-closure.rs rename to tests/debuginfo/lexical-scope-in-unique-closure.rs diff --git a/src/test/debuginfo/lexical-scope-in-while.rs b/tests/debuginfo/lexical-scope-in-while.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-in-while.rs rename to tests/debuginfo/lexical-scope-in-while.rs diff --git a/src/test/debuginfo/lexical-scope-with-macro.rs b/tests/debuginfo/lexical-scope-with-macro.rs similarity index 100% rename from src/test/debuginfo/lexical-scope-with-macro.rs rename to tests/debuginfo/lexical-scope-with-macro.rs diff --git a/src/test/debuginfo/lexical-scopes-in-block-expression.rs b/tests/debuginfo/lexical-scopes-in-block-expression.rs similarity index 100% rename from src/test/debuginfo/lexical-scopes-in-block-expression.rs rename to tests/debuginfo/lexical-scopes-in-block-expression.rs diff --git a/src/test/debuginfo/limited-debuginfo.rs b/tests/debuginfo/limited-debuginfo.rs similarity index 100% rename from src/test/debuginfo/limited-debuginfo.rs rename to tests/debuginfo/limited-debuginfo.rs diff --git a/src/test/debuginfo/macro-stepping.inc b/tests/debuginfo/macro-stepping.inc similarity index 100% rename from src/test/debuginfo/macro-stepping.inc rename to tests/debuginfo/macro-stepping.inc diff --git a/src/test/debuginfo/macro-stepping.rs b/tests/debuginfo/macro-stepping.rs similarity index 100% rename from src/test/debuginfo/macro-stepping.rs rename to tests/debuginfo/macro-stepping.rs diff --git a/src/test/debuginfo/marker-types.rs b/tests/debuginfo/marker-types.rs similarity index 100% rename from src/test/debuginfo/marker-types.rs rename to tests/debuginfo/marker-types.rs diff --git a/src/test/debuginfo/method-on-enum.rs b/tests/debuginfo/method-on-enum.rs similarity index 100% rename from src/test/debuginfo/method-on-enum.rs rename to tests/debuginfo/method-on-enum.rs diff --git a/src/test/debuginfo/method-on-generic-struct.rs b/tests/debuginfo/method-on-generic-struct.rs similarity index 100% rename from src/test/debuginfo/method-on-generic-struct.rs rename to tests/debuginfo/method-on-generic-struct.rs diff --git a/src/test/debuginfo/method-on-struct.rs b/tests/debuginfo/method-on-struct.rs similarity index 100% rename from src/test/debuginfo/method-on-struct.rs rename to tests/debuginfo/method-on-struct.rs diff --git a/src/test/debuginfo/method-on-trait.rs b/tests/debuginfo/method-on-trait.rs similarity index 100% rename from src/test/debuginfo/method-on-trait.rs rename to tests/debuginfo/method-on-trait.rs diff --git a/src/test/debuginfo/method-on-tuple-struct.rs b/tests/debuginfo/method-on-tuple-struct.rs similarity index 100% rename from src/test/debuginfo/method-on-tuple-struct.rs rename to tests/debuginfo/method-on-tuple-struct.rs diff --git a/src/test/debuginfo/msvc-pretty-enums.rs b/tests/debuginfo/msvc-pretty-enums.rs similarity index 100% rename from src/test/debuginfo/msvc-pretty-enums.rs rename to tests/debuginfo/msvc-pretty-enums.rs diff --git a/src/test/debuginfo/msvc-scalarpair-params.rs b/tests/debuginfo/msvc-scalarpair-params.rs similarity index 100% rename from src/test/debuginfo/msvc-scalarpair-params.rs rename to tests/debuginfo/msvc-scalarpair-params.rs diff --git a/src/test/debuginfo/multi-byte-chars.rs b/tests/debuginfo/multi-byte-chars.rs similarity index 100% rename from src/test/debuginfo/multi-byte-chars.rs rename to tests/debuginfo/multi-byte-chars.rs diff --git a/src/test/debuginfo/multi-cgu.rs b/tests/debuginfo/multi-cgu.rs similarity index 100% rename from src/test/debuginfo/multi-cgu.rs rename to tests/debuginfo/multi-cgu.rs diff --git a/src/test/debuginfo/multiple-functions-equal-var-names.rs b/tests/debuginfo/multiple-functions-equal-var-names.rs similarity index 100% rename from src/test/debuginfo/multiple-functions-equal-var-names.rs rename to tests/debuginfo/multiple-functions-equal-var-names.rs diff --git a/src/test/debuginfo/multiple-functions.rs b/tests/debuginfo/multiple-functions.rs similarity index 100% rename from src/test/debuginfo/multiple-functions.rs rename to tests/debuginfo/multiple-functions.rs diff --git a/src/test/debuginfo/mutable-locs.rs b/tests/debuginfo/mutable-locs.rs similarity index 100% rename from src/test/debuginfo/mutable-locs.rs rename to tests/debuginfo/mutable-locs.rs diff --git a/src/test/debuginfo/mutex.rs b/tests/debuginfo/mutex.rs similarity index 100% rename from src/test/debuginfo/mutex.rs rename to tests/debuginfo/mutex.rs diff --git a/src/test/debuginfo/name-shadowing-and-scope-nesting.rs b/tests/debuginfo/name-shadowing-and-scope-nesting.rs similarity index 100% rename from src/test/debuginfo/name-shadowing-and-scope-nesting.rs rename to tests/debuginfo/name-shadowing-and-scope-nesting.rs diff --git a/src/test/debuginfo/no_mangle-info.rs b/tests/debuginfo/no_mangle-info.rs similarity index 100% rename from src/test/debuginfo/no_mangle-info.rs rename to tests/debuginfo/no_mangle-info.rs diff --git a/src/test/debuginfo/numeric-types.rs b/tests/debuginfo/numeric-types.rs similarity index 100% rename from src/test/debuginfo/numeric-types.rs rename to tests/debuginfo/numeric-types.rs diff --git a/src/test/debuginfo/option-like-enum.rs b/tests/debuginfo/option-like-enum.rs similarity index 100% rename from src/test/debuginfo/option-like-enum.rs rename to tests/debuginfo/option-like-enum.rs diff --git a/src/test/debuginfo/packed-struct-with-destructor.rs b/tests/debuginfo/packed-struct-with-destructor.rs similarity index 100% rename from src/test/debuginfo/packed-struct-with-destructor.rs rename to tests/debuginfo/packed-struct-with-destructor.rs diff --git a/src/test/debuginfo/packed-struct.rs b/tests/debuginfo/packed-struct.rs similarity index 100% rename from src/test/debuginfo/packed-struct.rs rename to tests/debuginfo/packed-struct.rs diff --git a/src/test/debuginfo/pretty-huge-vec.rs b/tests/debuginfo/pretty-huge-vec.rs similarity index 100% rename from src/test/debuginfo/pretty-huge-vec.rs rename to tests/debuginfo/pretty-huge-vec.rs diff --git a/src/test/debuginfo/pretty-slices.rs b/tests/debuginfo/pretty-slices.rs similarity index 100% rename from src/test/debuginfo/pretty-slices.rs rename to tests/debuginfo/pretty-slices.rs diff --git a/src/test/debuginfo/pretty-std-collections-hash.rs b/tests/debuginfo/pretty-std-collections-hash.rs similarity index 100% rename from src/test/debuginfo/pretty-std-collections-hash.rs rename to tests/debuginfo/pretty-std-collections-hash.rs diff --git a/src/test/debuginfo/pretty-std-collections.rs b/tests/debuginfo/pretty-std-collections.rs similarity index 100% rename from src/test/debuginfo/pretty-std-collections.rs rename to tests/debuginfo/pretty-std-collections.rs diff --git a/src/test/debuginfo/pretty-std.rs b/tests/debuginfo/pretty-std.rs similarity index 100% rename from src/test/debuginfo/pretty-std.rs rename to tests/debuginfo/pretty-std.rs diff --git a/src/test/debuginfo/pretty-uninitialized-vec.rs b/tests/debuginfo/pretty-uninitialized-vec.rs similarity index 100% rename from src/test/debuginfo/pretty-uninitialized-vec.rs rename to tests/debuginfo/pretty-uninitialized-vec.rs diff --git a/src/test/debuginfo/range-types.rs b/tests/debuginfo/range-types.rs similarity index 100% rename from src/test/debuginfo/range-types.rs rename to tests/debuginfo/range-types.rs diff --git a/src/test/debuginfo/rc_arc.rs b/tests/debuginfo/rc_arc.rs similarity index 100% rename from src/test/debuginfo/rc_arc.rs rename to tests/debuginfo/rc_arc.rs diff --git a/src/test/debuginfo/recursive-enum.rs b/tests/debuginfo/recursive-enum.rs similarity index 100% rename from src/test/debuginfo/recursive-enum.rs rename to tests/debuginfo/recursive-enum.rs diff --git a/src/test/debuginfo/recursive-struct.rs b/tests/debuginfo/recursive-struct.rs similarity index 100% rename from src/test/debuginfo/recursive-struct.rs rename to tests/debuginfo/recursive-struct.rs diff --git a/src/test/debuginfo/result-types.rs b/tests/debuginfo/result-types.rs similarity index 100% rename from src/test/debuginfo/result-types.rs rename to tests/debuginfo/result-types.rs diff --git a/src/test/debuginfo/rwlock-read.rs b/tests/debuginfo/rwlock-read.rs similarity index 100% rename from src/test/debuginfo/rwlock-read.rs rename to tests/debuginfo/rwlock-read.rs diff --git a/src/test/debuginfo/rwlock-write.rs b/tests/debuginfo/rwlock-write.rs similarity index 100% rename from src/test/debuginfo/rwlock-write.rs rename to tests/debuginfo/rwlock-write.rs diff --git a/src/test/debuginfo/self-in-default-method.rs b/tests/debuginfo/self-in-default-method.rs similarity index 100% rename from src/test/debuginfo/self-in-default-method.rs rename to tests/debuginfo/self-in-default-method.rs diff --git a/src/test/debuginfo/self-in-generic-default-method.rs b/tests/debuginfo/self-in-generic-default-method.rs similarity index 100% rename from src/test/debuginfo/self-in-generic-default-method.rs rename to tests/debuginfo/self-in-generic-default-method.rs diff --git a/src/test/debuginfo/shadowed-argument.rs b/tests/debuginfo/shadowed-argument.rs similarity index 100% rename from src/test/debuginfo/shadowed-argument.rs rename to tests/debuginfo/shadowed-argument.rs diff --git a/src/test/debuginfo/shadowed-variable.rs b/tests/debuginfo/shadowed-variable.rs similarity index 100% rename from src/test/debuginfo/shadowed-variable.rs rename to tests/debuginfo/shadowed-variable.rs diff --git a/src/test/debuginfo/should-fail.rs b/tests/debuginfo/should-fail.rs similarity index 100% rename from src/test/debuginfo/should-fail.rs rename to tests/debuginfo/should-fail.rs diff --git a/src/test/debuginfo/simd.rs b/tests/debuginfo/simd.rs similarity index 100% rename from src/test/debuginfo/simd.rs rename to tests/debuginfo/simd.rs diff --git a/src/test/debuginfo/simple-lexical-scope.rs b/tests/debuginfo/simple-lexical-scope.rs similarity index 100% rename from src/test/debuginfo/simple-lexical-scope.rs rename to tests/debuginfo/simple-lexical-scope.rs diff --git a/src/test/debuginfo/simple-struct.rs b/tests/debuginfo/simple-struct.rs similarity index 100% rename from src/test/debuginfo/simple-struct.rs rename to tests/debuginfo/simple-struct.rs diff --git a/src/test/debuginfo/simple-tuple.rs b/tests/debuginfo/simple-tuple.rs similarity index 100% rename from src/test/debuginfo/simple-tuple.rs rename to tests/debuginfo/simple-tuple.rs diff --git a/src/test/debuginfo/static-method-on-struct-and-enum.rs b/tests/debuginfo/static-method-on-struct-and-enum.rs similarity index 100% rename from src/test/debuginfo/static-method-on-struct-and-enum.rs rename to tests/debuginfo/static-method-on-struct-and-enum.rs diff --git a/src/test/debuginfo/step-into-match.rs b/tests/debuginfo/step-into-match.rs similarity index 100% rename from src/test/debuginfo/step-into-match.rs rename to tests/debuginfo/step-into-match.rs diff --git a/src/test/debuginfo/struct-in-enum.rs b/tests/debuginfo/struct-in-enum.rs similarity index 100% rename from src/test/debuginfo/struct-in-enum.rs rename to tests/debuginfo/struct-in-enum.rs diff --git a/src/test/debuginfo/struct-in-struct.rs b/tests/debuginfo/struct-in-struct.rs similarity index 100% rename from src/test/debuginfo/struct-in-struct.rs rename to tests/debuginfo/struct-in-struct.rs diff --git a/src/test/debuginfo/struct-namespace.rs b/tests/debuginfo/struct-namespace.rs similarity index 100% rename from src/test/debuginfo/struct-namespace.rs rename to tests/debuginfo/struct-namespace.rs diff --git a/src/test/debuginfo/struct-style-enum.rs b/tests/debuginfo/struct-style-enum.rs similarity index 100% rename from src/test/debuginfo/struct-style-enum.rs rename to tests/debuginfo/struct-style-enum.rs diff --git a/src/test/debuginfo/struct-with-destructor.rs b/tests/debuginfo/struct-with-destructor.rs similarity index 100% rename from src/test/debuginfo/struct-with-destructor.rs rename to tests/debuginfo/struct-with-destructor.rs diff --git a/src/test/debuginfo/text-to-include-1.txt b/tests/debuginfo/text-to-include-1.txt similarity index 100% rename from src/test/debuginfo/text-to-include-1.txt rename to tests/debuginfo/text-to-include-1.txt diff --git a/src/test/debuginfo/text-to-include-2.txt b/tests/debuginfo/text-to-include-2.txt similarity index 100% rename from src/test/debuginfo/text-to-include-2.txt rename to tests/debuginfo/text-to-include-2.txt diff --git a/src/test/debuginfo/text-to-include-3.txt b/tests/debuginfo/text-to-include-3.txt similarity index 100% rename from src/test/debuginfo/text-to-include-3.txt rename to tests/debuginfo/text-to-include-3.txt diff --git a/src/test/debuginfo/thread-names.rs b/tests/debuginfo/thread-names.rs similarity index 100% rename from src/test/debuginfo/thread-names.rs rename to tests/debuginfo/thread-names.rs diff --git a/src/test/debuginfo/thread.rs b/tests/debuginfo/thread.rs similarity index 100% rename from src/test/debuginfo/thread.rs rename to tests/debuginfo/thread.rs diff --git a/src/test/debuginfo/trait-pointers.rs b/tests/debuginfo/trait-pointers.rs similarity index 100% rename from src/test/debuginfo/trait-pointers.rs rename to tests/debuginfo/trait-pointers.rs diff --git a/src/test/debuginfo/tuple-in-struct.rs b/tests/debuginfo/tuple-in-struct.rs similarity index 100% rename from src/test/debuginfo/tuple-in-struct.rs rename to tests/debuginfo/tuple-in-struct.rs diff --git a/src/test/debuginfo/tuple-in-tuple.rs b/tests/debuginfo/tuple-in-tuple.rs similarity index 100% rename from src/test/debuginfo/tuple-in-tuple.rs rename to tests/debuginfo/tuple-in-tuple.rs diff --git a/src/test/debuginfo/tuple-struct.rs b/tests/debuginfo/tuple-struct.rs similarity index 100% rename from src/test/debuginfo/tuple-struct.rs rename to tests/debuginfo/tuple-struct.rs diff --git a/src/test/debuginfo/tuple-style-enum.rs b/tests/debuginfo/tuple-style-enum.rs similarity index 100% rename from src/test/debuginfo/tuple-style-enum.rs rename to tests/debuginfo/tuple-style-enum.rs diff --git a/src/test/debuginfo/type-names.cdb.js b/tests/debuginfo/type-names.cdb.js similarity index 100% rename from src/test/debuginfo/type-names.cdb.js rename to tests/debuginfo/type-names.cdb.js diff --git a/src/test/debuginfo/type-names.rs b/tests/debuginfo/type-names.rs similarity index 100% rename from src/test/debuginfo/type-names.rs rename to tests/debuginfo/type-names.rs diff --git a/src/test/debuginfo/union-smoke.rs b/tests/debuginfo/union-smoke.rs similarity index 100% rename from src/test/debuginfo/union-smoke.rs rename to tests/debuginfo/union-smoke.rs diff --git a/src/test/debuginfo/unique-enum.rs b/tests/debuginfo/unique-enum.rs similarity index 100% rename from src/test/debuginfo/unique-enum.rs rename to tests/debuginfo/unique-enum.rs diff --git a/src/test/debuginfo/unit-type.rs b/tests/debuginfo/unit-type.rs similarity index 100% rename from src/test/debuginfo/unit-type.rs rename to tests/debuginfo/unit-type.rs diff --git a/src/test/debuginfo/unreachable-locals.rs b/tests/debuginfo/unreachable-locals.rs similarity index 100% rename from src/test/debuginfo/unreachable-locals.rs rename to tests/debuginfo/unreachable-locals.rs diff --git a/src/test/debuginfo/unsized.rs b/tests/debuginfo/unsized.rs similarity index 100% rename from src/test/debuginfo/unsized.rs rename to tests/debuginfo/unsized.rs diff --git a/src/test/debuginfo/var-captured-in-nested-closure.rs b/tests/debuginfo/var-captured-in-nested-closure.rs similarity index 100% rename from src/test/debuginfo/var-captured-in-nested-closure.rs rename to tests/debuginfo/var-captured-in-nested-closure.rs diff --git a/src/test/debuginfo/var-captured-in-sendable-closure.rs b/tests/debuginfo/var-captured-in-sendable-closure.rs similarity index 100% rename from src/test/debuginfo/var-captured-in-sendable-closure.rs rename to tests/debuginfo/var-captured-in-sendable-closure.rs diff --git a/src/test/debuginfo/var-captured-in-stack-closure.rs b/tests/debuginfo/var-captured-in-stack-closure.rs similarity index 100% rename from src/test/debuginfo/var-captured-in-stack-closure.rs rename to tests/debuginfo/var-captured-in-stack-closure.rs diff --git a/src/test/debuginfo/vec-slices.rs b/tests/debuginfo/vec-slices.rs similarity index 100% rename from src/test/debuginfo/vec-slices.rs rename to tests/debuginfo/vec-slices.rs diff --git a/src/test/debuginfo/vec.rs b/tests/debuginfo/vec.rs similarity index 100% rename from src/test/debuginfo/vec.rs rename to tests/debuginfo/vec.rs diff --git a/src/test/incremental/add_private_fn_at_krate_root_cc/auxiliary/point.rs b/tests/incremental/add_private_fn_at_krate_root_cc/auxiliary/point.rs similarity index 100% rename from src/test/incremental/add_private_fn_at_krate_root_cc/auxiliary/point.rs rename to tests/incremental/add_private_fn_at_krate_root_cc/auxiliary/point.rs diff --git a/src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs b/tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs similarity index 100% rename from src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs rename to tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs diff --git a/src/test/incremental/async-lifetimes.rs b/tests/incremental/async-lifetimes.rs similarity index 100% rename from src/test/incremental/async-lifetimes.rs rename to tests/incremental/async-lifetimes.rs diff --git a/src/test/incremental/auxiliary/incremental_proc_macro_aux.rs b/tests/incremental/auxiliary/incremental_proc_macro_aux.rs similarity index 100% rename from src/test/incremental/auxiliary/incremental_proc_macro_aux.rs rename to tests/incremental/auxiliary/incremental_proc_macro_aux.rs diff --git a/src/test/incremental/auxiliary/issue-49482-macro-def.rs b/tests/incremental/auxiliary/issue-49482-macro-def.rs similarity index 100% rename from src/test/incremental/auxiliary/issue-49482-macro-def.rs rename to tests/incremental/auxiliary/issue-49482-macro-def.rs diff --git a/src/test/incremental/auxiliary/issue-49482-reexport.rs b/tests/incremental/auxiliary/issue-49482-reexport.rs similarity index 100% rename from src/test/incremental/auxiliary/issue-49482-reexport.rs rename to tests/incremental/auxiliary/issue-49482-reexport.rs diff --git a/src/test/incremental/auxiliary/issue-54059.rs b/tests/incremental/auxiliary/issue-54059.rs similarity index 100% rename from src/test/incremental/auxiliary/issue-54059.rs rename to tests/incremental/auxiliary/issue-54059.rs diff --git a/src/test/incremental/auxiliary/issue-79661.rs b/tests/incremental/auxiliary/issue-79661.rs similarity index 100% rename from src/test/incremental/auxiliary/issue-79661.rs rename to tests/incremental/auxiliary/issue-79661.rs diff --git a/src/test/incremental/auxiliary/issue-79890.rs b/tests/incremental/auxiliary/issue-79890.rs similarity index 100% rename from src/test/incremental/auxiliary/issue-79890.rs rename to tests/incremental/auxiliary/issue-79890.rs diff --git a/src/test/incremental/auxiliary/rustc-rust-log-aux.rs b/tests/incremental/auxiliary/rustc-rust-log-aux.rs similarity index 100% rename from src/test/incremental/auxiliary/rustc-rust-log-aux.rs rename to tests/incremental/auxiliary/rustc-rust-log-aux.rs diff --git a/src/test/incremental/cache_file_headers.rs b/tests/incremental/cache_file_headers.rs similarity index 100% rename from src/test/incremental/cache_file_headers.rs rename to tests/incremental/cache_file_headers.rs diff --git a/src/test/incremental/callee_caller_cross_crate/auxiliary/a.rs b/tests/incremental/callee_caller_cross_crate/auxiliary/a.rs similarity index 100% rename from src/test/incremental/callee_caller_cross_crate/auxiliary/a.rs rename to tests/incremental/callee_caller_cross_crate/auxiliary/a.rs diff --git a/src/test/incremental/callee_caller_cross_crate/b.rs b/tests/incremental/callee_caller_cross_crate/b.rs similarity index 100% rename from src/test/incremental/callee_caller_cross_crate/b.rs rename to tests/incremental/callee_caller_cross_crate/b.rs diff --git a/src/test/incremental/change_add_field/struct_point.rs b/tests/incremental/change_add_field/struct_point.rs similarity index 100% rename from src/test/incremental/change_add_field/struct_point.rs rename to tests/incremental/change_add_field/struct_point.rs diff --git a/src/test/incremental/change_crate_dep_kind.rs b/tests/incremental/change_crate_dep_kind.rs similarity index 100% rename from src/test/incremental/change_crate_dep_kind.rs rename to tests/incremental/change_crate_dep_kind.rs diff --git a/src/test/incremental/change_crate_order/auxiliary/a.rs b/tests/incremental/change_crate_order/auxiliary/a.rs similarity index 100% rename from src/test/incremental/change_crate_order/auxiliary/a.rs rename to tests/incremental/change_crate_order/auxiliary/a.rs diff --git a/src/test/incremental/change_crate_order/auxiliary/b.rs b/tests/incremental/change_crate_order/auxiliary/b.rs similarity index 100% rename from src/test/incremental/change_crate_order/auxiliary/b.rs rename to tests/incremental/change_crate_order/auxiliary/b.rs diff --git a/src/test/incremental/change_crate_order/main.rs b/tests/incremental/change_crate_order/main.rs similarity index 100% rename from src/test/incremental/change_crate_order/main.rs rename to tests/incremental/change_crate_order/main.rs diff --git a/src/test/incremental/change_implementation_cross_crate/auxiliary/a.rs b/tests/incremental/change_implementation_cross_crate/auxiliary/a.rs similarity index 100% rename from src/test/incremental/change_implementation_cross_crate/auxiliary/a.rs rename to tests/incremental/change_implementation_cross_crate/auxiliary/a.rs diff --git a/src/test/incremental/change_implementation_cross_crate/main.rs b/tests/incremental/change_implementation_cross_crate/main.rs similarity index 100% rename from src/test/incremental/change_implementation_cross_crate/main.rs rename to tests/incremental/change_implementation_cross_crate/main.rs diff --git a/src/test/incremental/change_name_of_static_in_fn.rs b/tests/incremental/change_name_of_static_in_fn.rs similarity index 100% rename from src/test/incremental/change_name_of_static_in_fn.rs rename to tests/incremental/change_name_of_static_in_fn.rs diff --git a/src/test/incremental/change_private_fn/struct_point.rs b/tests/incremental/change_private_fn/struct_point.rs similarity index 100% rename from src/test/incremental/change_private_fn/struct_point.rs rename to tests/incremental/change_private_fn/struct_point.rs diff --git a/src/test/incremental/change_private_fn_cc/auxiliary/point.rs b/tests/incremental/change_private_fn_cc/auxiliary/point.rs similarity index 100% rename from src/test/incremental/change_private_fn_cc/auxiliary/point.rs rename to tests/incremental/change_private_fn_cc/auxiliary/point.rs diff --git a/src/test/incremental/change_private_fn_cc/struct_point.rs b/tests/incremental/change_private_fn_cc/struct_point.rs similarity index 100% rename from src/test/incremental/change_private_fn_cc/struct_point.rs rename to tests/incremental/change_private_fn_cc/struct_point.rs diff --git a/src/test/incremental/change_private_impl_method/struct_point.rs b/tests/incremental/change_private_impl_method/struct_point.rs similarity index 100% rename from src/test/incremental/change_private_impl_method/struct_point.rs rename to tests/incremental/change_private_impl_method/struct_point.rs diff --git a/src/test/incremental/change_private_impl_method_cc/auxiliary/point.rs b/tests/incremental/change_private_impl_method_cc/auxiliary/point.rs similarity index 100% rename from src/test/incremental/change_private_impl_method_cc/auxiliary/point.rs rename to tests/incremental/change_private_impl_method_cc/auxiliary/point.rs diff --git a/src/test/incremental/change_private_impl_method_cc/struct_point.rs b/tests/incremental/change_private_impl_method_cc/struct_point.rs similarity index 100% rename from src/test/incremental/change_private_impl_method_cc/struct_point.rs rename to tests/incremental/change_private_impl_method_cc/struct_point.rs diff --git a/src/test/incremental/change_pub_inherent_method_body/struct_point.rs b/tests/incremental/change_pub_inherent_method_body/struct_point.rs similarity index 100% rename from src/test/incremental/change_pub_inherent_method_body/struct_point.rs rename to tests/incremental/change_pub_inherent_method_body/struct_point.rs diff --git a/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs b/tests/incremental/change_pub_inherent_method_sig/struct_point.rs similarity index 100% rename from src/test/incremental/change_pub_inherent_method_sig/struct_point.rs rename to tests/incremental/change_pub_inherent_method_sig/struct_point.rs diff --git a/src/test/incremental/change_symbol_export_status.rs b/tests/incremental/change_symbol_export_status.rs similarity index 100% rename from src/test/incremental/change_symbol_export_status.rs rename to tests/incremental/change_symbol_export_status.rs diff --git a/src/test/incremental/commandline-args.rs b/tests/incremental/commandline-args.rs similarity index 100% rename from src/test/incremental/commandline-args.rs rename to tests/incremental/commandline-args.rs diff --git a/src/test/incremental/const-generics/hash-tyvid-regression-1.rs b/tests/incremental/const-generics/hash-tyvid-regression-1.rs similarity index 100% rename from src/test/incremental/const-generics/hash-tyvid-regression-1.rs rename to tests/incremental/const-generics/hash-tyvid-regression-1.rs diff --git a/src/test/incremental/const-generics/hash-tyvid-regression-2.rs b/tests/incremental/const-generics/hash-tyvid-regression-2.rs similarity index 100% rename from src/test/incremental/const-generics/hash-tyvid-regression-2.rs rename to tests/incremental/const-generics/hash-tyvid-regression-2.rs diff --git a/src/test/incremental/const-generics/hash-tyvid-regression-3.rs b/tests/incremental/const-generics/hash-tyvid-regression-3.rs similarity index 100% rename from src/test/incremental/const-generics/hash-tyvid-regression-3.rs rename to tests/incremental/const-generics/hash-tyvid-regression-3.rs diff --git a/src/test/incremental/const-generics/hash-tyvid-regression-4.rs b/tests/incremental/const-generics/hash-tyvid-regression-4.rs similarity index 100% rename from src/test/incremental/const-generics/hash-tyvid-regression-4.rs rename to tests/incremental/const-generics/hash-tyvid-regression-4.rs diff --git a/src/test/incremental/const-generics/issue-61338.rs b/tests/incremental/const-generics/issue-61338.rs similarity index 100% rename from src/test/incremental/const-generics/issue-61338.rs rename to tests/incremental/const-generics/issue-61338.rs diff --git a/src/test/incremental/const-generics/issue-61516.rs b/tests/incremental/const-generics/issue-61516.rs similarity index 100% rename from src/test/incremental/const-generics/issue-61516.rs rename to tests/incremental/const-generics/issue-61516.rs diff --git a/src/test/incremental/const-generics/issue-62536.rs b/tests/incremental/const-generics/issue-62536.rs similarity index 100% rename from src/test/incremental/const-generics/issue-62536.rs rename to tests/incremental/const-generics/issue-62536.rs diff --git a/src/test/incremental/const-generics/issue-64087.rs b/tests/incremental/const-generics/issue-64087.rs similarity index 100% rename from src/test/incremental/const-generics/issue-64087.rs rename to tests/incremental/const-generics/issue-64087.rs diff --git a/src/test/incremental/const-generics/issue-65623.rs b/tests/incremental/const-generics/issue-65623.rs similarity index 100% rename from src/test/incremental/const-generics/issue-65623.rs rename to tests/incremental/const-generics/issue-65623.rs diff --git a/src/test/incremental/const-generics/issue-68477.rs b/tests/incremental/const-generics/issue-68477.rs similarity index 100% rename from src/test/incremental/const-generics/issue-68477.rs rename to tests/incremental/const-generics/issue-68477.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-1.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-1.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-1.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-1.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-2.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-2.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-2.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-2.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-3.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-3.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-3.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-77708-3.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-82034.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-82034.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-82034.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-82034.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-1.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-1.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-1.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-1.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-3.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-3.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-3.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-85031-3.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-86953.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-86953.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-86953.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-86953.rs diff --git a/src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-88022.rs b/tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-88022.rs similarity index 100% rename from src/test/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-88022.rs rename to tests/incremental/const-generics/try_unify_abstract_const_regression_tests/issue-88022.rs diff --git a/src/test/incremental/crate_hash_reorder.rs b/tests/incremental/crate_hash_reorder.rs similarity index 100% rename from src/test/incremental/crate_hash_reorder.rs rename to tests/incremental/crate_hash_reorder.rs diff --git a/src/test/incremental/cyclic-trait-hierarchy.rs b/tests/incremental/cyclic-trait-hierarchy.rs similarity index 100% rename from src/test/incremental/cyclic-trait-hierarchy.rs rename to tests/incremental/cyclic-trait-hierarchy.rs diff --git a/src/test/incremental/delayed_span_bug.rs b/tests/incremental/delayed_span_bug.rs similarity index 100% rename from src/test/incremental/delayed_span_bug.rs rename to tests/incremental/delayed_span_bug.rs diff --git a/src/test/incremental/dirty_clean.rs b/tests/incremental/dirty_clean.rs similarity index 100% rename from src/test/incremental/dirty_clean.rs rename to tests/incremental/dirty_clean.rs diff --git a/src/test/incremental/extern_static/issue-49153.rs b/tests/incremental/extern_static/issue-49153.rs similarity index 100% rename from src/test/incremental/extern_static/issue-49153.rs rename to tests/incremental/extern_static/issue-49153.rs diff --git a/src/test/incremental/feature_gate.rs b/tests/incremental/feature_gate.rs similarity index 100% rename from src/test/incremental/feature_gate.rs rename to tests/incremental/feature_gate.rs diff --git a/src/test/incremental/foreign.rs b/tests/incremental/foreign.rs similarity index 100% rename from src/test/incremental/foreign.rs rename to tests/incremental/foreign.rs diff --git a/src/test/incremental/hash-module-order.rs b/tests/incremental/hash-module-order.rs similarity index 100% rename from src/test/incremental/hash-module-order.rs rename to tests/incremental/hash-module-order.rs diff --git a/src/test/incremental/hashes/call_expressions.rs b/tests/incremental/hashes/call_expressions.rs similarity index 100% rename from src/test/incremental/hashes/call_expressions.rs rename to tests/incremental/hashes/call_expressions.rs diff --git a/src/test/incremental/hashes/closure_expressions.rs b/tests/incremental/hashes/closure_expressions.rs similarity index 100% rename from src/test/incremental/hashes/closure_expressions.rs rename to tests/incremental/hashes/closure_expressions.rs diff --git a/src/test/incremental/hashes/consts.rs b/tests/incremental/hashes/consts.rs similarity index 100% rename from src/test/incremental/hashes/consts.rs rename to tests/incremental/hashes/consts.rs diff --git a/src/test/incremental/hashes/enum_constructors.rs b/tests/incremental/hashes/enum_constructors.rs similarity index 100% rename from src/test/incremental/hashes/enum_constructors.rs rename to tests/incremental/hashes/enum_constructors.rs diff --git a/src/test/incremental/hashes/enum_defs.rs b/tests/incremental/hashes/enum_defs.rs similarity index 100% rename from src/test/incremental/hashes/enum_defs.rs rename to tests/incremental/hashes/enum_defs.rs diff --git a/src/test/incremental/hashes/exported_vs_not.rs b/tests/incremental/hashes/exported_vs_not.rs similarity index 100% rename from src/test/incremental/hashes/exported_vs_not.rs rename to tests/incremental/hashes/exported_vs_not.rs diff --git a/src/test/incremental/hashes/extern_mods.rs b/tests/incremental/hashes/extern_mods.rs similarity index 100% rename from src/test/incremental/hashes/extern_mods.rs rename to tests/incremental/hashes/extern_mods.rs diff --git a/src/test/incremental/hashes/for_loops.rs b/tests/incremental/hashes/for_loops.rs similarity index 100% rename from src/test/incremental/hashes/for_loops.rs rename to tests/incremental/hashes/for_loops.rs diff --git a/src/test/incremental/hashes/function_interfaces.rs b/tests/incremental/hashes/function_interfaces.rs similarity index 100% rename from src/test/incremental/hashes/function_interfaces.rs rename to tests/incremental/hashes/function_interfaces.rs diff --git a/src/test/incremental/hashes/if_expressions.rs b/tests/incremental/hashes/if_expressions.rs similarity index 100% rename from src/test/incremental/hashes/if_expressions.rs rename to tests/incremental/hashes/if_expressions.rs diff --git a/src/test/incremental/hashes/indexing_expressions.rs b/tests/incremental/hashes/indexing_expressions.rs similarity index 100% rename from src/test/incremental/hashes/indexing_expressions.rs rename to tests/incremental/hashes/indexing_expressions.rs diff --git a/src/test/incremental/hashes/inherent_impls.rs b/tests/incremental/hashes/inherent_impls.rs similarity index 100% rename from src/test/incremental/hashes/inherent_impls.rs rename to tests/incremental/hashes/inherent_impls.rs diff --git a/src/test/incremental/hashes/inline_asm.rs b/tests/incremental/hashes/inline_asm.rs similarity index 100% rename from src/test/incremental/hashes/inline_asm.rs rename to tests/incremental/hashes/inline_asm.rs diff --git a/src/test/incremental/hashes/let_expressions.rs b/tests/incremental/hashes/let_expressions.rs similarity index 100% rename from src/test/incremental/hashes/let_expressions.rs rename to tests/incremental/hashes/let_expressions.rs diff --git a/src/test/incremental/hashes/loop_expressions.rs b/tests/incremental/hashes/loop_expressions.rs similarity index 100% rename from src/test/incremental/hashes/loop_expressions.rs rename to tests/incremental/hashes/loop_expressions.rs diff --git a/src/test/incremental/hashes/match_expressions.rs b/tests/incremental/hashes/match_expressions.rs similarity index 100% rename from src/test/incremental/hashes/match_expressions.rs rename to tests/incremental/hashes/match_expressions.rs diff --git a/src/test/incremental/hashes/panic_exprs.rs b/tests/incremental/hashes/panic_exprs.rs similarity index 100% rename from src/test/incremental/hashes/panic_exprs.rs rename to tests/incremental/hashes/panic_exprs.rs diff --git a/src/test/incremental/hashes/statics.rs b/tests/incremental/hashes/statics.rs similarity index 100% rename from src/test/incremental/hashes/statics.rs rename to tests/incremental/hashes/statics.rs diff --git a/src/test/incremental/hashes/struct_constructors.rs b/tests/incremental/hashes/struct_constructors.rs similarity index 100% rename from src/test/incremental/hashes/struct_constructors.rs rename to tests/incremental/hashes/struct_constructors.rs diff --git a/src/test/incremental/hashes/struct_defs.rs b/tests/incremental/hashes/struct_defs.rs similarity index 100% rename from src/test/incremental/hashes/struct_defs.rs rename to tests/incremental/hashes/struct_defs.rs diff --git a/src/test/incremental/hashes/trait_defs.rs b/tests/incremental/hashes/trait_defs.rs similarity index 100% rename from src/test/incremental/hashes/trait_defs.rs rename to tests/incremental/hashes/trait_defs.rs diff --git a/src/test/incremental/hashes/trait_impls.rs b/tests/incremental/hashes/trait_impls.rs similarity index 100% rename from src/test/incremental/hashes/trait_impls.rs rename to tests/incremental/hashes/trait_impls.rs diff --git a/src/test/incremental/hashes/type_defs.rs b/tests/incremental/hashes/type_defs.rs similarity index 100% rename from src/test/incremental/hashes/type_defs.rs rename to tests/incremental/hashes/type_defs.rs diff --git a/src/test/incremental/hashes/unary_and_binary_exprs.rs b/tests/incremental/hashes/unary_and_binary_exprs.rs similarity index 100% rename from src/test/incremental/hashes/unary_and_binary_exprs.rs rename to tests/incremental/hashes/unary_and_binary_exprs.rs diff --git a/src/test/incremental/hashes/while_let_loops.rs b/tests/incremental/hashes/while_let_loops.rs similarity index 100% rename from src/test/incremental/hashes/while_let_loops.rs rename to tests/incremental/hashes/while_let_loops.rs diff --git a/src/test/incremental/hashes/while_loops.rs b/tests/incremental/hashes/while_loops.rs similarity index 100% rename from src/test/incremental/hashes/while_loops.rs rename to tests/incremental/hashes/while_loops.rs diff --git a/src/test/incremental/hello_world.rs b/tests/incremental/hello_world.rs similarity index 100% rename from src/test/incremental/hello_world.rs rename to tests/incremental/hello_world.rs diff --git a/src/test/incremental/hygiene/auxiliary/cached_hygiene.rs b/tests/incremental/hygiene/auxiliary/cached_hygiene.rs similarity index 100% rename from src/test/incremental/hygiene/auxiliary/cached_hygiene.rs rename to tests/incremental/hygiene/auxiliary/cached_hygiene.rs diff --git a/src/test/incremental/hygiene/load_cached_hygiene.rs b/tests/incremental/hygiene/load_cached_hygiene.rs similarity index 100% rename from src/test/incremental/hygiene/load_cached_hygiene.rs rename to tests/incremental/hygiene/load_cached_hygiene.rs diff --git a/src/test/incremental/ich_method_call_trait_scope.rs b/tests/incremental/ich_method_call_trait_scope.rs similarity index 100% rename from src/test/incremental/ich_method_call_trait_scope.rs rename to tests/incremental/ich_method_call_trait_scope.rs diff --git a/src/test/incremental/ich_nested_items.rs b/tests/incremental/ich_nested_items.rs similarity index 100% rename from src/test/incremental/ich_nested_items.rs rename to tests/incremental/ich_nested_items.rs diff --git a/src/test/incremental/ich_resolve_results.rs b/tests/incremental/ich_resolve_results.rs similarity index 100% rename from src/test/incremental/ich_resolve_results.rs rename to tests/incremental/ich_resolve_results.rs diff --git a/src/test/incremental/incremental_proc_macro.rs b/tests/incremental/incremental_proc_macro.rs similarity index 100% rename from src/test/incremental/incremental_proc_macro.rs rename to tests/incremental/incremental_proc_macro.rs diff --git a/src/test/incremental/inlined_hir_34991/main.rs b/tests/incremental/inlined_hir_34991/main.rs similarity index 100% rename from src/test/incremental/inlined_hir_34991/main.rs rename to tests/incremental/inlined_hir_34991/main.rs diff --git a/src/test/incremental/issue-100521-change-struct-name-assocty.rs b/tests/incremental/issue-100521-change-struct-name-assocty.rs similarity index 100% rename from src/test/incremental/issue-100521-change-struct-name-assocty.rs rename to tests/incremental/issue-100521-change-struct-name-assocty.rs diff --git a/src/test/incremental/issue-101518.rs b/tests/incremental/issue-101518.rs similarity index 100% rename from src/test/incremental/issue-101518.rs rename to tests/incremental/issue-101518.rs diff --git a/src/test/incremental/issue-35593.rs b/tests/incremental/issue-35593.rs similarity index 100% rename from src/test/incremental/issue-35593.rs rename to tests/incremental/issue-35593.rs diff --git a/src/test/incremental/issue-38222.rs b/tests/incremental/issue-38222.rs similarity index 100% rename from src/test/incremental/issue-38222.rs rename to tests/incremental/issue-38222.rs diff --git a/src/test/incremental/issue-39569.rs b/tests/incremental/issue-39569.rs similarity index 100% rename from src/test/incremental/issue-39569.rs rename to tests/incremental/issue-39569.rs diff --git a/src/test/incremental/issue-39828/auxiliary/generic.rs b/tests/incremental/issue-39828/auxiliary/generic.rs similarity index 100% rename from src/test/incremental/issue-39828/auxiliary/generic.rs rename to tests/incremental/issue-39828/auxiliary/generic.rs diff --git a/src/test/incremental/issue-39828/issue-39828.rs b/tests/incremental/issue-39828/issue-39828.rs similarity index 100% rename from src/test/incremental/issue-39828/issue-39828.rs rename to tests/incremental/issue-39828/issue-39828.rs diff --git a/src/test/incremental/issue-42602.rs b/tests/incremental/issue-42602.rs similarity index 100% rename from src/test/incremental/issue-42602.rs rename to tests/incremental/issue-42602.rs diff --git a/src/test/incremental/issue-49043.rs b/tests/incremental/issue-49043.rs similarity index 100% rename from src/test/incremental/issue-49043.rs rename to tests/incremental/issue-49043.rs diff --git a/src/test/incremental/issue-49482.rs b/tests/incremental/issue-49482.rs similarity index 100% rename from src/test/incremental/issue-49482.rs rename to tests/incremental/issue-49482.rs diff --git a/src/test/incremental/issue-49595/auxiliary/lit_a.rs b/tests/incremental/issue-49595/auxiliary/lit_a.rs similarity index 100% rename from src/test/incremental/issue-49595/auxiliary/lit_a.rs rename to tests/incremental/issue-49595/auxiliary/lit_a.rs diff --git a/src/test/incremental/issue-49595/auxiliary/lit_b.rs b/tests/incremental/issue-49595/auxiliary/lit_b.rs similarity index 100% rename from src/test/incremental/issue-49595/auxiliary/lit_b.rs rename to tests/incremental/issue-49595/auxiliary/lit_b.rs diff --git a/src/test/incremental/issue-49595/issue-49595.rs b/tests/incremental/issue-49595/issue-49595.rs similarity index 100% rename from src/test/incremental/issue-49595/issue-49595.rs rename to tests/incremental/issue-49595/issue-49595.rs diff --git a/src/test/incremental/issue-51409.rs b/tests/incremental/issue-51409.rs similarity index 100% rename from src/test/incremental/issue-51409.rs rename to tests/incremental/issue-51409.rs diff --git a/src/test/incremental/issue-54059.rs b/tests/incremental/issue-54059.rs similarity index 100% rename from src/test/incremental/issue-54059.rs rename to tests/incremental/issue-54059.rs diff --git a/src/test/incremental/issue-54242.rs b/tests/incremental/issue-54242.rs similarity index 100% rename from src/test/incremental/issue-54242.rs rename to tests/incremental/issue-54242.rs diff --git a/src/test/incremental/issue-59523-on-implemented-is-not-unused.rs b/tests/incremental/issue-59523-on-implemented-is-not-unused.rs similarity index 100% rename from src/test/incremental/issue-59523-on-implemented-is-not-unused.rs rename to tests/incremental/issue-59523-on-implemented-is-not-unused.rs diff --git a/src/test/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs b/tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs similarity index 100% rename from src/test/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs rename to tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs diff --git a/src/test/incremental/issue-60629.rs b/tests/incremental/issue-60629.rs similarity index 100% rename from src/test/incremental/issue-60629.rs rename to tests/incremental/issue-60629.rs diff --git a/src/test/incremental/issue-61323.rs b/tests/incremental/issue-61323.rs similarity index 100% rename from src/test/incremental/issue-61323.rs rename to tests/incremental/issue-61323.rs diff --git a/src/test/incremental/issue-61530.rs b/tests/incremental/issue-61530.rs similarity index 100% rename from src/test/incremental/issue-61530.rs rename to tests/incremental/issue-61530.rs diff --git a/src/test/incremental/issue-62649-path-collisions-happen.rs b/tests/incremental/issue-62649-path-collisions-happen.rs similarity index 100% rename from src/test/incremental/issue-62649-path-collisions-happen.rs rename to tests/incremental/issue-62649-path-collisions-happen.rs diff --git a/src/test/incremental/issue-69596.rs b/tests/incremental/issue-69596.rs similarity index 100% rename from src/test/incremental/issue-69596.rs rename to tests/incremental/issue-69596.rs diff --git a/src/test/incremental/issue-72386.rs b/tests/incremental/issue-72386.rs similarity index 100% rename from src/test/incremental/issue-72386.rs rename to tests/incremental/issue-72386.rs diff --git a/src/test/incremental/issue-79661-missing-def-path-hash.rs b/tests/incremental/issue-79661-missing-def-path-hash.rs similarity index 100% rename from src/test/incremental/issue-79661-missing-def-path-hash.rs rename to tests/incremental/issue-79661-missing-def-path-hash.rs diff --git a/src/test/incremental/issue-79890-imported-crates-changed.rs b/tests/incremental/issue-79890-imported-crates-changed.rs similarity index 100% rename from src/test/incremental/issue-79890-imported-crates-changed.rs rename to tests/incremental/issue-79890-imported-crates-changed.rs diff --git a/src/test/incremental/issue-80336-invalid-span.rs b/tests/incremental/issue-80336-invalid-span.rs similarity index 100% rename from src/test/incremental/issue-80336-invalid-span.rs rename to tests/incremental/issue-80336-invalid-span.rs diff --git a/src/test/incremental/issue-80691-bad-eval-cache.rs b/tests/incremental/issue-80691-bad-eval-cache.rs similarity index 100% rename from src/test/incremental/issue-80691-bad-eval-cache.rs rename to tests/incremental/issue-80691-bad-eval-cache.rs diff --git a/src/test/incremental/issue-82920-predicate-order-miscompile.rs b/tests/incremental/issue-82920-predicate-order-miscompile.rs similarity index 100% rename from src/test/incremental/issue-82920-predicate-order-miscompile.rs rename to tests/incremental/issue-82920-predicate-order-miscompile.rs diff --git a/src/test/incremental/issue-84252-global-alloc.rs b/tests/incremental/issue-84252-global-alloc.rs similarity index 100% rename from src/test/incremental/issue-84252-global-alloc.rs rename to tests/incremental/issue-84252-global-alloc.rs diff --git a/src/test/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-lib.rs b/tests/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-lib.rs similarity index 100% rename from src/test/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-lib.rs rename to tests/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-lib.rs diff --git a/src/test/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-mod.rs b/tests/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-mod.rs similarity index 100% rename from src/test/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-mod.rs rename to tests/incremental/issue-85197-invalid-span/auxiliary/invalid-span-helper-mod.rs diff --git a/src/test/incremental/issue-85197-invalid-span/auxiliary/respan.rs b/tests/incremental/issue-85197-invalid-span/auxiliary/respan.rs similarity index 100% rename from src/test/incremental/issue-85197-invalid-span/auxiliary/respan.rs rename to tests/incremental/issue-85197-invalid-span/auxiliary/respan.rs diff --git a/src/test/incremental/issue-85197-invalid-span/invalid_span_main.rs b/tests/incremental/issue-85197-invalid-span/invalid_span_main.rs similarity index 100% rename from src/test/incremental/issue-85197-invalid-span/invalid_span_main.rs rename to tests/incremental/issue-85197-invalid-span/invalid_span_main.rs diff --git a/src/test/incremental/issue-85360-eval-obligation-ice.rs b/tests/incremental/issue-85360-eval-obligation-ice.rs similarity index 100% rename from src/test/incremental/issue-85360-eval-obligation-ice.rs rename to tests/incremental/issue-85360-eval-obligation-ice.rs diff --git a/src/test/incremental/issue-86753.rs b/tests/incremental/issue-86753.rs similarity index 100% rename from src/test/incremental/issue-86753.rs rename to tests/incremental/issue-86753.rs diff --git a/src/test/incremental/issue-92163-missing-sourcefile/auxiliary/first_crate.rs b/tests/incremental/issue-92163-missing-sourcefile/auxiliary/first_crate.rs similarity index 100% rename from src/test/incremental/issue-92163-missing-sourcefile/auxiliary/first_crate.rs rename to tests/incremental/issue-92163-missing-sourcefile/auxiliary/first_crate.rs diff --git a/src/test/incremental/issue-92163-missing-sourcefile/auxiliary/second_crate.rs b/tests/incremental/issue-92163-missing-sourcefile/auxiliary/second_crate.rs similarity index 100% rename from src/test/incremental/issue-92163-missing-sourcefile/auxiliary/second_crate.rs rename to tests/incremental/issue-92163-missing-sourcefile/auxiliary/second_crate.rs diff --git a/src/test/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs b/tests/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs similarity index 100% rename from src/test/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs rename to tests/incremental/issue-92163-missing-sourcefile/issue_92163_main.rs diff --git a/src/test/incremental/issue-92987-provisional-dep-node.rs b/tests/incremental/issue-92987-provisional-dep-node.rs similarity index 100% rename from src/test/incremental/issue-92987-provisional-dep-node.rs rename to tests/incremental/issue-92987-provisional-dep-node.rs diff --git a/src/test/incremental/issue-96319-coinductive-cycle.rs b/tests/incremental/issue-96319-coinductive-cycle.rs similarity index 100% rename from src/test/incremental/issue-96319-coinductive-cycle.rs rename to tests/incremental/issue-96319-coinductive-cycle.rs diff --git a/src/test/incremental/krate-inherent.rs b/tests/incremental/krate-inherent.rs similarity index 100% rename from src/test/incremental/krate-inherent.rs rename to tests/incremental/krate-inherent.rs diff --git a/src/test/incremental/krate-inlined.rs b/tests/incremental/krate-inlined.rs similarity index 100% rename from src/test/incremental/krate-inlined.rs rename to tests/incremental/krate-inlined.rs diff --git a/src/test/incremental/krate_reassign_34991/auxiliary/a.rs b/tests/incremental/krate_reassign_34991/auxiliary/a.rs similarity index 100% rename from src/test/incremental/krate_reassign_34991/auxiliary/a.rs rename to tests/incremental/krate_reassign_34991/auxiliary/a.rs diff --git a/src/test/incremental/krate_reassign_34991/main.rs b/tests/incremental/krate_reassign_34991/main.rs similarity index 100% rename from src/test/incremental/krate_reassign_34991/main.rs rename to tests/incremental/krate_reassign_34991/main.rs diff --git a/src/test/incremental/link_order/auxiliary/my_lib.rs b/tests/incremental/link_order/auxiliary/my_lib.rs similarity index 100% rename from src/test/incremental/link_order/auxiliary/my_lib.rs rename to tests/incremental/link_order/auxiliary/my_lib.rs diff --git a/src/test/incremental/link_order/main.rs b/tests/incremental/link_order/main.rs similarity index 100% rename from src/test/incremental/link_order/main.rs rename to tests/incremental/link_order/main.rs diff --git a/src/test/incremental/lto-in-linker.rs b/tests/incremental/lto-in-linker.rs similarity index 100% rename from src/test/incremental/lto-in-linker.rs rename to tests/incremental/lto-in-linker.rs diff --git a/src/test/incremental/lto.rs b/tests/incremental/lto.rs similarity index 100% rename from src/test/incremental/lto.rs rename to tests/incremental/lto.rs diff --git a/src/test/incremental/macro_export.rs b/tests/incremental/macro_export.rs similarity index 100% rename from src/test/incremental/macro_export.rs rename to tests/incremental/macro_export.rs diff --git a/src/test/incremental/mir-opt.rs b/tests/incremental/mir-opt.rs similarity index 100% rename from src/test/incremental/mir-opt.rs rename to tests/incremental/mir-opt.rs diff --git a/src/test/incremental/no_mangle.rs b/tests/incremental/no_mangle.rs similarity index 100% rename from src/test/incremental/no_mangle.rs rename to tests/incremental/no_mangle.rs diff --git a/src/test/incremental/remapped_paths_cc/auxiliary/extern_crate.rs b/tests/incremental/remapped_paths_cc/auxiliary/extern_crate.rs similarity index 100% rename from src/test/incremental/remapped_paths_cc/auxiliary/extern_crate.rs rename to tests/incremental/remapped_paths_cc/auxiliary/extern_crate.rs diff --git a/src/test/incremental/remapped_paths_cc/main.rs b/tests/incremental/remapped_paths_cc/main.rs similarity index 100% rename from src/test/incremental/remapped_paths_cc/main.rs rename to tests/incremental/remapped_paths_cc/main.rs diff --git a/src/test/incremental/remove-private-item-cross-crate/auxiliary/a.rs b/tests/incremental/remove-private-item-cross-crate/auxiliary/a.rs similarity index 100% rename from src/test/incremental/remove-private-item-cross-crate/auxiliary/a.rs rename to tests/incremental/remove-private-item-cross-crate/auxiliary/a.rs diff --git a/src/test/incremental/remove-private-item-cross-crate/main.rs b/tests/incremental/remove-private-item-cross-crate/main.rs similarity index 100% rename from src/test/incremental/remove-private-item-cross-crate/main.rs rename to tests/incremental/remove-private-item-cross-crate/main.rs diff --git a/src/test/incremental/remove_crate/auxiliary/extern_crate.rs b/tests/incremental/remove_crate/auxiliary/extern_crate.rs similarity index 100% rename from src/test/incremental/remove_crate/auxiliary/extern_crate.rs rename to tests/incremental/remove_crate/auxiliary/extern_crate.rs diff --git a/src/test/incremental/remove_crate/main.rs b/tests/incremental/remove_crate/main.rs similarity index 100% rename from src/test/incremental/remove_crate/main.rs rename to tests/incremental/remove_crate/main.rs diff --git a/src/test/incremental/remove_source_file/auxiliary/mod.rs b/tests/incremental/remove_source_file/auxiliary/mod.rs similarity index 100% rename from src/test/incremental/remove_source_file/auxiliary/mod.rs rename to tests/incremental/remove_source_file/auxiliary/mod.rs diff --git a/src/test/incremental/remove_source_file/main.rs b/tests/incremental/remove_source_file/main.rs similarity index 100% rename from src/test/incremental/remove_source_file/main.rs rename to tests/incremental/remove_source_file/main.rs diff --git a/src/test/incremental/reorder_vtable.rs b/tests/incremental/reorder_vtable.rs similarity index 100% rename from src/test/incremental/reorder_vtable.rs rename to tests/incremental/reorder_vtable.rs diff --git a/src/test/incremental/rlib-lto.rs b/tests/incremental/rlib-lto.rs similarity index 100% rename from src/test/incremental/rlib-lto.rs rename to tests/incremental/rlib-lto.rs diff --git a/src/test/incremental/rlib_cross_crate/auxiliary/a.rs b/tests/incremental/rlib_cross_crate/auxiliary/a.rs similarity index 100% rename from src/test/incremental/rlib_cross_crate/auxiliary/a.rs rename to tests/incremental/rlib_cross_crate/auxiliary/a.rs diff --git a/src/test/incremental/rlib_cross_crate/b.rs b/tests/incremental/rlib_cross_crate/b.rs similarity index 100% rename from src/test/incremental/rlib_cross_crate/b.rs rename to tests/incremental/rlib_cross_crate/b.rs diff --git a/src/test/incremental/rustc-rust-log.rs b/tests/incremental/rustc-rust-log.rs similarity index 100% rename from src/test/incremental/rustc-rust-log.rs rename to tests/incremental/rustc-rust-log.rs diff --git a/src/test/incremental/source_loc_macros.rs b/tests/incremental/source_loc_macros.rs similarity index 100% rename from src/test/incremental/source_loc_macros.rs rename to tests/incremental/source_loc_macros.rs diff --git a/src/test/incremental/span_hash_stable/auxiliary/mod.rs b/tests/incremental/span_hash_stable/auxiliary/mod.rs similarity index 100% rename from src/test/incremental/span_hash_stable/auxiliary/mod.rs rename to tests/incremental/span_hash_stable/auxiliary/mod.rs diff --git a/src/test/incremental/span_hash_stable/auxiliary/sub1.rs b/tests/incremental/span_hash_stable/auxiliary/sub1.rs similarity index 100% rename from src/test/incremental/span_hash_stable/auxiliary/sub1.rs rename to tests/incremental/span_hash_stable/auxiliary/sub1.rs diff --git a/src/test/incremental/span_hash_stable/auxiliary/sub2.rs b/tests/incremental/span_hash_stable/auxiliary/sub2.rs similarity index 100% rename from src/test/incremental/span_hash_stable/auxiliary/sub2.rs rename to tests/incremental/span_hash_stable/auxiliary/sub2.rs diff --git a/src/test/incremental/span_hash_stable/main.rs b/tests/incremental/span_hash_stable/main.rs similarity index 100% rename from src/test/incremental/span_hash_stable/main.rs rename to tests/incremental/span_hash_stable/main.rs diff --git a/src/test/incremental/spans_in_type_debuginfo.rs b/tests/incremental/spans_in_type_debuginfo.rs similarity index 100% rename from src/test/incremental/spans_in_type_debuginfo.rs rename to tests/incremental/spans_in_type_debuginfo.rs diff --git a/src/test/incremental/spans_significant_w_debuginfo.rs b/tests/incremental/spans_significant_w_debuginfo.rs similarity index 100% rename from src/test/incremental/spans_significant_w_debuginfo.rs rename to tests/incremental/spans_significant_w_debuginfo.rs diff --git a/src/test/incremental/spans_significant_w_panic.rs b/tests/incremental/spans_significant_w_panic.rs similarity index 100% rename from src/test/incremental/spans_significant_w_panic.rs rename to tests/incremental/spans_significant_w_panic.rs diff --git a/src/test/incremental/spike-neg1.rs b/tests/incremental/spike-neg1.rs similarity index 100% rename from src/test/incremental/spike-neg1.rs rename to tests/incremental/spike-neg1.rs diff --git a/src/test/incremental/spike-neg2.rs b/tests/incremental/spike-neg2.rs similarity index 100% rename from src/test/incremental/spike-neg2.rs rename to tests/incremental/spike-neg2.rs diff --git a/src/test/incremental/spike.rs b/tests/incremental/spike.rs similarity index 100% rename from src/test/incremental/spike.rs rename to tests/incremental/spike.rs diff --git a/src/test/incremental/split_debuginfo_cached.rs b/tests/incremental/split_debuginfo_cached.rs similarity index 100% rename from src/test/incremental/split_debuginfo_cached.rs rename to tests/incremental/split_debuginfo_cached.rs diff --git a/src/test/incremental/split_debuginfo_mode.rs b/tests/incremental/split_debuginfo_mode.rs similarity index 100% rename from src/test/incremental/split_debuginfo_mode.rs rename to tests/incremental/split_debuginfo_mode.rs diff --git a/src/test/incremental/static_cycle/b.rs b/tests/incremental/static_cycle/b.rs similarity index 100% rename from src/test/incremental/static_cycle/b.rs rename to tests/incremental/static_cycle/b.rs diff --git a/src/test/incremental/static_refering_to_other_static/issue-49081.rs b/tests/incremental/static_refering_to_other_static/issue-49081.rs similarity index 100% rename from src/test/incremental/static_refering_to_other_static/issue-49081.rs rename to tests/incremental/static_refering_to_other_static/issue-49081.rs diff --git a/src/test/incremental/static_refering_to_other_static2/issue.rs b/tests/incremental/static_refering_to_other_static2/issue.rs similarity index 100% rename from src/test/incremental/static_refering_to_other_static2/issue.rs rename to tests/incremental/static_refering_to_other_static2/issue.rs diff --git a/src/test/incremental/static_refering_to_other_static3/issue.rs b/tests/incremental/static_refering_to_other_static3/issue.rs similarity index 100% rename from src/test/incremental/static_refering_to_other_static3/issue.rs rename to tests/incremental/static_refering_to_other_static3/issue.rs diff --git a/src/test/incremental/static_stable_hash/issue-49301.rs b/tests/incremental/static_stable_hash/issue-49301.rs similarity index 100% rename from src/test/incremental/static_stable_hash/issue-49301.rs rename to tests/incremental/static_stable_hash/issue-49301.rs diff --git a/src/test/incremental/string_constant.rs b/tests/incremental/string_constant.rs similarity index 100% rename from src/test/incremental/string_constant.rs rename to tests/incremental/string_constant.rs diff --git a/src/test/incremental/struct_add_field.rs b/tests/incremental/struct_add_field.rs similarity index 100% rename from src/test/incremental/struct_add_field.rs rename to tests/incremental/struct_add_field.rs diff --git a/src/test/incremental/struct_change_field_name.rs b/tests/incremental/struct_change_field_name.rs similarity index 100% rename from src/test/incremental/struct_change_field_name.rs rename to tests/incremental/struct_change_field_name.rs diff --git a/src/test/incremental/struct_change_field_type.rs b/tests/incremental/struct_change_field_type.rs similarity index 100% rename from src/test/incremental/struct_change_field_type.rs rename to tests/incremental/struct_change_field_type.rs diff --git a/src/test/incremental/struct_change_field_type_cross_crate/auxiliary/a.rs b/tests/incremental/struct_change_field_type_cross_crate/auxiliary/a.rs similarity index 100% rename from src/test/incremental/struct_change_field_type_cross_crate/auxiliary/a.rs rename to tests/incremental/struct_change_field_type_cross_crate/auxiliary/a.rs diff --git a/src/test/incremental/struct_change_field_type_cross_crate/b.rs b/tests/incremental/struct_change_field_type_cross_crate/b.rs similarity index 100% rename from src/test/incremental/struct_change_field_type_cross_crate/b.rs rename to tests/incremental/struct_change_field_type_cross_crate/b.rs diff --git a/src/test/incremental/struct_change_nothing.rs b/tests/incremental/struct_change_nothing.rs similarity index 100% rename from src/test/incremental/struct_change_nothing.rs rename to tests/incremental/struct_change_nothing.rs diff --git a/src/test/incremental/struct_remove_field.rs b/tests/incremental/struct_remove_field.rs similarity index 100% rename from src/test/incremental/struct_remove_field.rs rename to tests/incremental/struct_remove_field.rs diff --git a/src/test/incremental/thinlto/cgu_invalidated_via_import.rs b/tests/incremental/thinlto/cgu_invalidated_via_import.rs similarity index 100% rename from src/test/incremental/thinlto/cgu_invalidated_via_import.rs rename to tests/incremental/thinlto/cgu_invalidated_via_import.rs diff --git a/src/test/incremental/thinlto/cgu_invalidated_when_export_added.rs b/tests/incremental/thinlto/cgu_invalidated_when_export_added.rs similarity index 100% rename from src/test/incremental/thinlto/cgu_invalidated_when_export_added.rs rename to tests/incremental/thinlto/cgu_invalidated_when_export_added.rs diff --git a/src/test/incremental/thinlto/cgu_invalidated_when_export_removed.rs b/tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs similarity index 100% rename from src/test/incremental/thinlto/cgu_invalidated_when_export_removed.rs rename to tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs diff --git a/src/test/incremental/thinlto/cgu_invalidated_when_import_added.rs b/tests/incremental/thinlto/cgu_invalidated_when_import_added.rs similarity index 100% rename from src/test/incremental/thinlto/cgu_invalidated_when_import_added.rs rename to tests/incremental/thinlto/cgu_invalidated_when_import_added.rs diff --git a/src/test/incremental/thinlto/cgu_invalidated_when_import_removed.rs b/tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs similarity index 100% rename from src/test/incremental/thinlto/cgu_invalidated_when_import_removed.rs rename to tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs diff --git a/src/test/incremental/thinlto/cgu_keeps_identical_fn.rs b/tests/incremental/thinlto/cgu_keeps_identical_fn.rs similarity index 100% rename from src/test/incremental/thinlto/cgu_keeps_identical_fn.rs rename to tests/incremental/thinlto/cgu_keeps_identical_fn.rs diff --git a/src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs b/tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs similarity index 100% rename from src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs rename to tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs diff --git a/src/test/incremental/type_alias_cross_crate/auxiliary/a.rs b/tests/incremental/type_alias_cross_crate/auxiliary/a.rs similarity index 100% rename from src/test/incremental/type_alias_cross_crate/auxiliary/a.rs rename to tests/incremental/type_alias_cross_crate/auxiliary/a.rs diff --git a/src/test/incremental/type_alias_cross_crate/b.rs b/tests/incremental/type_alias_cross_crate/b.rs similarity index 100% rename from src/test/incremental/type_alias_cross_crate/b.rs rename to tests/incremental/type_alias_cross_crate/b.rs diff --git a/src/test/incremental/unchecked_dirty_clean.rs b/tests/incremental/unchecked_dirty_clean.rs similarity index 100% rename from src/test/incremental/unchecked_dirty_clean.rs rename to tests/incremental/unchecked_dirty_clean.rs diff --git a/src/test/incremental/warnings-reemitted.rs b/tests/incremental/warnings-reemitted.rs similarity index 100% rename from src/test/incremental/warnings-reemitted.rs rename to tests/incremental/warnings-reemitted.rs diff --git a/src/test/mir-opt/76803_regression.encode.SimplifyBranchSame.diff b/tests/mir-opt/76803_regression.encode.SimplifyBranchSame.diff similarity index 100% rename from src/test/mir-opt/76803_regression.encode.SimplifyBranchSame.diff rename to tests/mir-opt/76803_regression.encode.SimplifyBranchSame.diff diff --git a/src/test/mir-opt/76803_regression.rs b/tests/mir-opt/76803_regression.rs similarity index 100% rename from src/test/mir-opt/76803_regression.rs rename to tests/mir-opt/76803_regression.rs diff --git a/src/test/mir-opt/README.md b/tests/mir-opt/README.md similarity index 100% rename from src/test/mir-opt/README.md rename to tests/mir-opt/README.md diff --git a/src/test/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir b/tests/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir rename to tests/mir-opt/address_of.address_of_reborrow.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir b/tests/mir-opt/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir rename to tests/mir-opt/address_of.borrow_and_cast.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/address_of.rs b/tests/mir-opt/address_of.rs similarity index 100% rename from src/test/mir-opt/address_of.rs rename to tests/mir-opt/address_of.rs diff --git a/src/test/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/array_index_is_temporary.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/array_index_is_temporary.rs b/tests/mir-opt/array_index_is_temporary.rs similarity index 100% rename from src/test/mir-opt/array_index_is_temporary.rs rename to tests/mir-opt/array_index_is_temporary.rs diff --git a/src/test/mir-opt/asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir b/tests/mir-opt/asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir similarity index 100% rename from src/test/mir-opt/asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir rename to tests/mir-opt/asm_unwind_panic_abort.main.AbortUnwindingCalls.after.mir diff --git a/src/test/mir-opt/asm_unwind_panic_abort.rs b/tests/mir-opt/asm_unwind_panic_abort.rs similarity index 100% rename from src/test/mir-opt/asm_unwind_panic_abort.rs rename to tests/mir-opt/asm_unwind_panic_abort.rs diff --git a/src/test/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir b/tests/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir rename to tests/mir-opt/basic_assignment.main.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/basic_assignment.rs b/tests/mir-opt/basic_assignment.rs similarity index 100% rename from src/test/mir-opt/basic_assignment.rs rename to tests/mir-opt/basic_assignment.rs diff --git a/src/test/mir-opt/bool_compare.opt1.InstCombine.diff b/tests/mir-opt/bool_compare.opt1.InstCombine.diff similarity index 100% rename from src/test/mir-opt/bool_compare.opt1.InstCombine.diff rename to tests/mir-opt/bool_compare.opt1.InstCombine.diff diff --git a/src/test/mir-opt/bool_compare.opt2.InstCombine.diff b/tests/mir-opt/bool_compare.opt2.InstCombine.diff similarity index 100% rename from src/test/mir-opt/bool_compare.opt2.InstCombine.diff rename to tests/mir-opt/bool_compare.opt2.InstCombine.diff diff --git a/src/test/mir-opt/bool_compare.opt3.InstCombine.diff b/tests/mir-opt/bool_compare.opt3.InstCombine.diff similarity index 100% rename from src/test/mir-opt/bool_compare.opt3.InstCombine.diff rename to tests/mir-opt/bool_compare.opt3.InstCombine.diff diff --git a/src/test/mir-opt/bool_compare.opt4.InstCombine.diff b/tests/mir-opt/bool_compare.opt4.InstCombine.diff similarity index 100% rename from src/test/mir-opt/bool_compare.opt4.InstCombine.diff rename to tests/mir-opt/bool_compare.opt4.InstCombine.diff diff --git a/src/test/mir-opt/bool_compare.rs b/tests/mir-opt/bool_compare.rs similarity index 100% rename from src/test/mir-opt/bool_compare.rs rename to tests/mir-opt/bool_compare.rs diff --git a/src/test/mir-opt/box_expr.main.ElaborateDrops.before.mir b/tests/mir-opt/box_expr.main.ElaborateDrops.before.mir similarity index 100% rename from src/test/mir-opt/box_expr.main.ElaborateDrops.before.mir rename to tests/mir-opt/box_expr.main.ElaborateDrops.before.mir diff --git a/src/test/mir-opt/box_expr.rs b/tests/mir-opt/box_expr.rs similarity index 100% rename from src/test/mir-opt/box_expr.rs rename to tests/mir-opt/box_expr.rs diff --git a/src/test/mir-opt/building/custom/arbitrary_let.arbitrary_let.built.after.mir b/tests/mir-opt/building/custom/arbitrary_let.arbitrary_let.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/arbitrary_let.arbitrary_let.built.after.mir rename to tests/mir-opt/building/custom/arbitrary_let.arbitrary_let.built.after.mir diff --git a/src/test/mir-opt/building/custom/arbitrary_let.rs b/tests/mir-opt/building/custom/arbitrary_let.rs similarity index 100% rename from src/test/mir-opt/building/custom/arbitrary_let.rs rename to tests/mir-opt/building/custom/arbitrary_let.rs diff --git a/src/test/mir-opt/building/custom/consts.consts.built.after.mir b/tests/mir-opt/building/custom/consts.consts.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/consts.consts.built.after.mir rename to tests/mir-opt/building/custom/consts.consts.built.after.mir diff --git a/src/test/mir-opt/building/custom/consts.rs b/tests/mir-opt/building/custom/consts.rs similarity index 100% rename from src/test/mir-opt/building/custom/consts.rs rename to tests/mir-opt/building/custom/consts.rs diff --git a/src/test/mir-opt/building/custom/consts.statics.built.after.mir b/tests/mir-opt/building/custom/consts.statics.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/consts.statics.built.after.mir rename to tests/mir-opt/building/custom/consts.statics.built.after.mir diff --git a/src/test/mir-opt/building/custom/enums.rs b/tests/mir-opt/building/custom/enums.rs similarity index 100% rename from src/test/mir-opt/building/custom/enums.rs rename to tests/mir-opt/building/custom/enums.rs diff --git a/src/test/mir-opt/building/custom/enums.set_discr.built.after.mir b/tests/mir-opt/building/custom/enums.set_discr.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/enums.set_discr.built.after.mir rename to tests/mir-opt/building/custom/enums.set_discr.built.after.mir diff --git a/src/test/mir-opt/building/custom/enums.set_discr_repr.built.after.mir b/tests/mir-opt/building/custom/enums.set_discr_repr.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/enums.set_discr_repr.built.after.mir rename to tests/mir-opt/building/custom/enums.set_discr_repr.built.after.mir diff --git a/src/test/mir-opt/building/custom/enums.switch_bool.built.after.mir b/tests/mir-opt/building/custom/enums.switch_bool.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/enums.switch_bool.built.after.mir rename to tests/mir-opt/building/custom/enums.switch_bool.built.after.mir diff --git a/src/test/mir-opt/building/custom/enums.switch_option.built.after.mir b/tests/mir-opt/building/custom/enums.switch_option.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/enums.switch_option.built.after.mir rename to tests/mir-opt/building/custom/enums.switch_option.built.after.mir diff --git a/src/test/mir-opt/building/custom/enums.switch_option_repr.built.after.mir b/tests/mir-opt/building/custom/enums.switch_option_repr.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/enums.switch_option_repr.built.after.mir rename to tests/mir-opt/building/custom/enums.switch_option_repr.built.after.mir diff --git a/src/test/mir-opt/building/custom/projections.rs b/tests/mir-opt/building/custom/projections.rs similarity index 100% rename from src/test/mir-opt/building/custom/projections.rs rename to tests/mir-opt/building/custom/projections.rs diff --git a/src/test/mir-opt/building/custom/projections.set.built.after.mir b/tests/mir-opt/building/custom/projections.set.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/projections.set.built.after.mir rename to tests/mir-opt/building/custom/projections.set.built.after.mir diff --git a/src/test/mir-opt/building/custom/projections.simple_index.built.after.mir b/tests/mir-opt/building/custom/projections.simple_index.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/projections.simple_index.built.after.mir rename to tests/mir-opt/building/custom/projections.simple_index.built.after.mir diff --git a/src/test/mir-opt/building/custom/projections.tuples.built.after.mir b/tests/mir-opt/building/custom/projections.tuples.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/projections.tuples.built.after.mir rename to tests/mir-opt/building/custom/projections.tuples.built.after.mir diff --git a/src/test/mir-opt/building/custom/projections.unions.built.after.mir b/tests/mir-opt/building/custom/projections.unions.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/projections.unions.built.after.mir rename to tests/mir-opt/building/custom/projections.unions.built.after.mir diff --git a/src/test/mir-opt/building/custom/projections.unwrap.built.after.mir b/tests/mir-opt/building/custom/projections.unwrap.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/projections.unwrap.built.after.mir rename to tests/mir-opt/building/custom/projections.unwrap.built.after.mir diff --git a/src/test/mir-opt/building/custom/projections.unwrap_deref.built.after.mir b/tests/mir-opt/building/custom/projections.unwrap_deref.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/projections.unwrap_deref.built.after.mir rename to tests/mir-opt/building/custom/projections.unwrap_deref.built.after.mir diff --git a/src/test/mir-opt/building/custom/references.immut_ref.built.after.mir b/tests/mir-opt/building/custom/references.immut_ref.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/references.immut_ref.built.after.mir rename to tests/mir-opt/building/custom/references.immut_ref.built.after.mir diff --git a/src/test/mir-opt/building/custom/references.mut_ref.built.after.mir b/tests/mir-opt/building/custom/references.mut_ref.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/references.mut_ref.built.after.mir rename to tests/mir-opt/building/custom/references.mut_ref.built.after.mir diff --git a/src/test/mir-opt/building/custom/references.raw_pointer.built.after.mir b/tests/mir-opt/building/custom/references.raw_pointer.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/references.raw_pointer.built.after.mir rename to tests/mir-opt/building/custom/references.raw_pointer.built.after.mir diff --git a/src/test/mir-opt/building/custom/references.rs b/tests/mir-opt/building/custom/references.rs similarity index 100% rename from src/test/mir-opt/building/custom/references.rs rename to tests/mir-opt/building/custom/references.rs diff --git a/src/test/mir-opt/building/custom/simple_assign.rs b/tests/mir-opt/building/custom/simple_assign.rs similarity index 100% rename from src/test/mir-opt/building/custom/simple_assign.rs rename to tests/mir-opt/building/custom/simple_assign.rs diff --git a/src/test/mir-opt/building/custom/simple_assign.simple.built.after.mir b/tests/mir-opt/building/custom/simple_assign.simple.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/simple_assign.simple.built.after.mir rename to tests/mir-opt/building/custom/simple_assign.simple.built.after.mir diff --git a/src/test/mir-opt/building/custom/simple_assign.simple_ref.built.after.mir b/tests/mir-opt/building/custom/simple_assign.simple_ref.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/simple_assign.simple_ref.built.after.mir rename to tests/mir-opt/building/custom/simple_assign.simple_ref.built.after.mir diff --git a/src/test/mir-opt/building/custom/terminators.assert_nonzero.built.after.mir b/tests/mir-opt/building/custom/terminators.assert_nonzero.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/terminators.assert_nonzero.built.after.mir rename to tests/mir-opt/building/custom/terminators.assert_nonzero.built.after.mir diff --git a/src/test/mir-opt/building/custom/terminators.direct_call.built.after.mir b/tests/mir-opt/building/custom/terminators.direct_call.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/terminators.direct_call.built.after.mir rename to tests/mir-opt/building/custom/terminators.direct_call.built.after.mir diff --git a/src/test/mir-opt/building/custom/terminators.drop_first.built.after.mir b/tests/mir-opt/building/custom/terminators.drop_first.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/terminators.drop_first.built.after.mir rename to tests/mir-opt/building/custom/terminators.drop_first.built.after.mir diff --git a/src/test/mir-opt/building/custom/terminators.drop_second.built.after.mir b/tests/mir-opt/building/custom/terminators.drop_second.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/terminators.drop_second.built.after.mir rename to tests/mir-opt/building/custom/terminators.drop_second.built.after.mir diff --git a/src/test/mir-opt/building/custom/terminators.indirect_call.built.after.mir b/tests/mir-opt/building/custom/terminators.indirect_call.built.after.mir similarity index 100% rename from src/test/mir-opt/building/custom/terminators.indirect_call.built.after.mir rename to tests/mir-opt/building/custom/terminators.indirect_call.built.after.mir diff --git a/src/test/mir-opt/building/custom/terminators.rs b/tests/mir-opt/building/custom/terminators.rs similarity index 100% rename from src/test/mir-opt/building/custom/terminators.rs rename to tests/mir-opt/building/custom/terminators.rs diff --git a/src/test/mir-opt/building/enum_cast.bar.built.after.mir b/tests/mir-opt/building/enum_cast.bar.built.after.mir similarity index 100% rename from src/test/mir-opt/building/enum_cast.bar.built.after.mir rename to tests/mir-opt/building/enum_cast.bar.built.after.mir diff --git a/src/test/mir-opt/building/enum_cast.boo.built.after.mir b/tests/mir-opt/building/enum_cast.boo.built.after.mir similarity index 100% rename from src/test/mir-opt/building/enum_cast.boo.built.after.mir rename to tests/mir-opt/building/enum_cast.boo.built.after.mir diff --git a/src/test/mir-opt/building/enum_cast.droppy.built.after.mir b/tests/mir-opt/building/enum_cast.droppy.built.after.mir similarity index 100% rename from src/test/mir-opt/building/enum_cast.droppy.built.after.mir rename to tests/mir-opt/building/enum_cast.droppy.built.after.mir diff --git a/src/test/mir-opt/building/enum_cast.foo.built.after.mir b/tests/mir-opt/building/enum_cast.foo.built.after.mir similarity index 100% rename from src/test/mir-opt/building/enum_cast.foo.built.after.mir rename to tests/mir-opt/building/enum_cast.foo.built.after.mir diff --git a/src/test/mir-opt/building/enum_cast.rs b/tests/mir-opt/building/enum_cast.rs similarity index 100% rename from src/test/mir-opt/building/enum_cast.rs rename to tests/mir-opt/building/enum_cast.rs diff --git a/src/test/mir-opt/building/issue_101867.main.built.after.mir b/tests/mir-opt/building/issue_101867.main.built.after.mir similarity index 100% rename from src/test/mir-opt/building/issue_101867.main.built.after.mir rename to tests/mir-opt/building/issue_101867.main.built.after.mir diff --git a/src/test/mir-opt/building/issue_101867.rs b/tests/mir-opt/building/issue_101867.rs similarity index 100% rename from src/test/mir-opt/building/issue_101867.rs rename to tests/mir-opt/building/issue_101867.rs diff --git a/src/test/mir-opt/building/issue_49232.main.built.after.mir b/tests/mir-opt/building/issue_49232.main.built.after.mir similarity index 100% rename from src/test/mir-opt/building/issue_49232.main.built.after.mir rename to tests/mir-opt/building/issue_49232.main.built.after.mir diff --git a/src/test/mir-opt/building/issue_49232.rs b/tests/mir-opt/building/issue_49232.rs similarity index 100% rename from src/test/mir-opt/building/issue_49232.rs rename to tests/mir-opt/building/issue_49232.rs diff --git a/src/test/mir-opt/building/match_false_edges.full_tested_match.built.after.mir b/tests/mir-opt/building/match_false_edges.full_tested_match.built.after.mir similarity index 100% rename from src/test/mir-opt/building/match_false_edges.full_tested_match.built.after.mir rename to tests/mir-opt/building/match_false_edges.full_tested_match.built.after.mir diff --git a/src/test/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir b/tests/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir similarity index 100% rename from src/test/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir rename to tests/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir diff --git a/src/test/mir-opt/building/match_false_edges.main.built.after.mir b/tests/mir-opt/building/match_false_edges.main.built.after.mir similarity index 100% rename from src/test/mir-opt/building/match_false_edges.main.built.after.mir rename to tests/mir-opt/building/match_false_edges.main.built.after.mir diff --git a/src/test/mir-opt/building/match_false_edges.rs b/tests/mir-opt/building/match_false_edges.rs similarity index 100% rename from src/test/mir-opt/building/match_false_edges.rs rename to tests/mir-opt/building/match_false_edges.rs diff --git a/src/test/mir-opt/building/receiver_ptr_mutability.main.built.after.mir b/tests/mir-opt/building/receiver_ptr_mutability.main.built.after.mir similarity index 100% rename from src/test/mir-opt/building/receiver_ptr_mutability.main.built.after.mir rename to tests/mir-opt/building/receiver_ptr_mutability.main.built.after.mir diff --git a/src/test/mir-opt/building/receiver_ptr_mutability.rs b/tests/mir-opt/building/receiver_ptr_mutability.rs similarity index 100% rename from src/test/mir-opt/building/receiver_ptr_mutability.rs rename to tests/mir-opt/building/receiver_ptr_mutability.rs diff --git a/src/test/mir-opt/building/simple_match.match_bool.built.after.mir b/tests/mir-opt/building/simple_match.match_bool.built.after.mir similarity index 100% rename from src/test/mir-opt/building/simple_match.match_bool.built.after.mir rename to tests/mir-opt/building/simple_match.match_bool.built.after.mir diff --git a/src/test/mir-opt/building/simple_match.rs b/tests/mir-opt/building/simple_match.rs similarity index 100% rename from src/test/mir-opt/building/simple_match.rs rename to tests/mir-opt/building/simple_match.rs diff --git a/src/test/mir-opt/building/storage_live_dead_in_statics.XXX.built.after.mir b/tests/mir-opt/building/storage_live_dead_in_statics.XXX.built.after.mir similarity index 100% rename from src/test/mir-opt/building/storage_live_dead_in_statics.XXX.built.after.mir rename to tests/mir-opt/building/storage_live_dead_in_statics.XXX.built.after.mir diff --git a/src/test/mir-opt/building/storage_live_dead_in_statics.rs b/tests/mir-opt/building/storage_live_dead_in_statics.rs similarity index 100% rename from src/test/mir-opt/building/storage_live_dead_in_statics.rs rename to tests/mir-opt/building/storage_live_dead_in_statics.rs diff --git a/src/test/mir-opt/building/uniform_array_move_out.move_out_by_subslice.built.after.mir b/tests/mir-opt/building/uniform_array_move_out.move_out_by_subslice.built.after.mir similarity index 100% rename from src/test/mir-opt/building/uniform_array_move_out.move_out_by_subslice.built.after.mir rename to tests/mir-opt/building/uniform_array_move_out.move_out_by_subslice.built.after.mir diff --git a/src/test/mir-opt/building/uniform_array_move_out.move_out_from_end.built.after.mir b/tests/mir-opt/building/uniform_array_move_out.move_out_from_end.built.after.mir similarity index 100% rename from src/test/mir-opt/building/uniform_array_move_out.move_out_from_end.built.after.mir rename to tests/mir-opt/building/uniform_array_move_out.move_out_from_end.built.after.mir diff --git a/src/test/mir-opt/building/uniform_array_move_out.rs b/tests/mir-opt/building/uniform_array_move_out.rs similarity index 100% rename from src/test/mir-opt/building/uniform_array_move_out.rs rename to tests/mir-opt/building/uniform_array_move_out.rs diff --git a/src/test/mir-opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/byte_slice.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/byte_slice.rs b/tests/mir-opt/byte_slice.rs similarity index 100% rename from src/test/mir-opt/byte_slice.rs rename to tests/mir-opt/byte_slice.rs diff --git a/src/test/mir-opt/combine_array_len.norm2.InstCombine.diff b/tests/mir-opt/combine_array_len.norm2.InstCombine.diff similarity index 100% rename from src/test/mir-opt/combine_array_len.norm2.InstCombine.diff rename to tests/mir-opt/combine_array_len.norm2.InstCombine.diff diff --git a/src/test/mir-opt/combine_array_len.rs b/tests/mir-opt/combine_array_len.rs similarity index 100% rename from src/test/mir-opt/combine_array_len.rs rename to tests/mir-opt/combine_array_len.rs diff --git a/src/test/mir-opt/combine_clone_of_primitives.rs b/tests/mir-opt/combine_clone_of_primitives.rs similarity index 100% rename from src/test/mir-opt/combine_clone_of_primitives.rs rename to tests/mir-opt/combine_clone_of_primitives.rs diff --git a/src/test/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstCombine.diff b/tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstCombine.diff similarity index 100% rename from src/test/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstCombine.diff rename to tests/mir-opt/combine_clone_of_primitives.{impl#0}-clone.InstCombine.diff diff --git a/src/test/mir-opt/const_allocation.main.ConstProp.after.32bit.mir b/tests/mir-opt/const_allocation.main.ConstProp.after.32bit.mir similarity index 100% rename from src/test/mir-opt/const_allocation.main.ConstProp.after.32bit.mir rename to tests/mir-opt/const_allocation.main.ConstProp.after.32bit.mir diff --git a/src/test/mir-opt/const_allocation.main.ConstProp.after.64bit.mir b/tests/mir-opt/const_allocation.main.ConstProp.after.64bit.mir similarity index 100% rename from src/test/mir-opt/const_allocation.main.ConstProp.after.64bit.mir rename to tests/mir-opt/const_allocation.main.ConstProp.after.64bit.mir diff --git a/src/test/mir-opt/const_allocation.rs b/tests/mir-opt/const_allocation.rs similarity index 100% rename from src/test/mir-opt/const_allocation.rs rename to tests/mir-opt/const_allocation.rs diff --git a/src/test/mir-opt/const_allocation2.main.ConstProp.after.32bit.mir b/tests/mir-opt/const_allocation2.main.ConstProp.after.32bit.mir similarity index 100% rename from src/test/mir-opt/const_allocation2.main.ConstProp.after.32bit.mir rename to tests/mir-opt/const_allocation2.main.ConstProp.after.32bit.mir diff --git a/src/test/mir-opt/const_allocation2.main.ConstProp.after.64bit.mir b/tests/mir-opt/const_allocation2.main.ConstProp.after.64bit.mir similarity index 100% rename from src/test/mir-opt/const_allocation2.main.ConstProp.after.64bit.mir rename to tests/mir-opt/const_allocation2.main.ConstProp.after.64bit.mir diff --git a/src/test/mir-opt/const_allocation2.rs b/tests/mir-opt/const_allocation2.rs similarity index 100% rename from src/test/mir-opt/const_allocation2.rs rename to tests/mir-opt/const_allocation2.rs diff --git a/src/test/mir-opt/const_allocation3.main.ConstProp.after.32bit.mir b/tests/mir-opt/const_allocation3.main.ConstProp.after.32bit.mir similarity index 100% rename from src/test/mir-opt/const_allocation3.main.ConstProp.after.32bit.mir rename to tests/mir-opt/const_allocation3.main.ConstProp.after.32bit.mir diff --git a/src/test/mir-opt/const_allocation3.main.ConstProp.after.64bit.mir b/tests/mir-opt/const_allocation3.main.ConstProp.after.64bit.mir similarity index 100% rename from src/test/mir-opt/const_allocation3.main.ConstProp.after.64bit.mir rename to tests/mir-opt/const_allocation3.main.ConstProp.after.64bit.mir diff --git a/src/test/mir-opt/const_allocation3.rs b/tests/mir-opt/const_allocation3.rs similarity index 100% rename from src/test/mir-opt/const_allocation3.rs rename to tests/mir-opt/const_allocation3.rs diff --git a/src/test/mir-opt/const_debuginfo.main.ConstDebugInfo.diff b/tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff similarity index 100% rename from src/test/mir-opt/const_debuginfo.main.ConstDebugInfo.diff rename to tests/mir-opt/const_debuginfo.main.ConstDebugInfo.diff diff --git a/src/test/mir-opt/const_debuginfo.rs b/tests/mir-opt/const_debuginfo.rs similarity index 100% rename from src/test/mir-opt/const_debuginfo.rs rename to tests/mir-opt/const_debuginfo.rs diff --git a/src/test/mir-opt/const_goto.issue_77355_opt.ConstGoto.diff b/tests/mir-opt/const_goto.issue_77355_opt.ConstGoto.diff similarity index 100% rename from src/test/mir-opt/const_goto.issue_77355_opt.ConstGoto.diff rename to tests/mir-opt/const_goto.issue_77355_opt.ConstGoto.diff diff --git a/src/test/mir-opt/const_goto.rs b/tests/mir-opt/const_goto.rs similarity index 100% rename from src/test/mir-opt/const_goto.rs rename to tests/mir-opt/const_goto.rs diff --git a/src/test/mir-opt/const_goto_const_eval_fail.f.ConstGoto.diff b/tests/mir-opt/const_goto_const_eval_fail.f.ConstGoto.diff similarity index 100% rename from src/test/mir-opt/const_goto_const_eval_fail.f.ConstGoto.diff rename to tests/mir-opt/const_goto_const_eval_fail.f.ConstGoto.diff diff --git a/src/test/mir-opt/const_goto_const_eval_fail.rs b/tests/mir-opt/const_goto_const_eval_fail.rs similarity index 100% rename from src/test/mir-opt/const_goto_const_eval_fail.rs rename to tests/mir-opt/const_goto_const_eval_fail.rs diff --git a/src/test/mir-opt/const_goto_storage.match_nested_if.ConstGoto.diff b/tests/mir-opt/const_goto_storage.match_nested_if.ConstGoto.diff similarity index 100% rename from src/test/mir-opt/const_goto_storage.match_nested_if.ConstGoto.diff rename to tests/mir-opt/const_goto_storage.match_nested_if.ConstGoto.diff diff --git a/src/test/mir-opt/const_goto_storage.rs b/tests/mir-opt/const_goto_storage.rs similarity index 100% rename from src/test/mir-opt/const_goto_storage.rs rename to tests/mir-opt/const_goto_storage.rs diff --git a/src/test/mir-opt/const_promotion_extern_static.BAR-promoted[0].SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/const_promotion_extern_static.BAR-promoted[0].SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/const_promotion_extern_static.BAR-promoted[0].SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/const_promotion_extern_static.BAR-promoted[0].SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/const_promotion_extern_static.BAR.PromoteTemps.diff b/tests/mir-opt/const_promotion_extern_static.BAR.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const_promotion_extern_static.BAR.PromoteTemps.diff rename to tests/mir-opt/const_promotion_extern_static.BAR.PromoteTemps.diff diff --git a/src/test/mir-opt/const_promotion_extern_static.BOP.built.after.mir b/tests/mir-opt/const_promotion_extern_static.BOP.built.after.mir similarity index 100% rename from src/test/mir-opt/const_promotion_extern_static.BOP.built.after.mir rename to tests/mir-opt/const_promotion_extern_static.BOP.built.after.mir diff --git a/src/test/mir-opt/const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/const_promotion_extern_static.FOO-promoted[0].SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff b/tests/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff rename to tests/mir-opt/const_promotion_extern_static.FOO.PromoteTemps.diff diff --git a/src/test/mir-opt/const_promotion_extern_static.rs b/tests/mir-opt/const_promotion_extern_static.rs similarity index 100% rename from src/test/mir-opt/const_promotion_extern_static.rs rename to tests/mir-opt/const_promotion_extern_static.rs diff --git a/src/test/mir-opt/const_prop/aggregate.main.ConstProp.diff b/tests/mir-opt/const_prop/aggregate.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/aggregate.main.ConstProp.diff rename to tests/mir-opt/const_prop/aggregate.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/aggregate.main.PreCodegen.after.mir b/tests/mir-opt/const_prop/aggregate.main.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/const_prop/aggregate.main.PreCodegen.after.mir rename to tests/mir-opt/const_prop/aggregate.main.PreCodegen.after.mir diff --git a/src/test/mir-opt/const_prop/aggregate.rs b/tests/mir-opt/const_prop/aggregate.rs similarity index 100% rename from src/test/mir-opt/const_prop/aggregate.rs rename to tests/mir-opt/const_prop/aggregate.rs diff --git a/src/test/mir-opt/const_prop/array_index.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/array_index.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/array_index.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/array_index.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/array_index.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/array_index.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/array_index.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/array_index.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/array_index.rs b/tests/mir-opt/const_prop/array_index.rs similarity index 100% rename from src/test/mir-opt/const_prop/array_index.rs rename to tests/mir-opt/const_prop/array_index.rs diff --git a/src/test/mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff b/tests/mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff rename to tests/mir-opt/const_prop/bad_op_div_by_zero.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/bad_op_div_by_zero.rs b/tests/mir-opt/const_prop/bad_op_div_by_zero.rs similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_div_by_zero.rs rename to tests/mir-opt/const_prop/bad_op_div_by_zero.rs diff --git a/src/test/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff b/tests/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff rename to tests/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs b/tests/mir-opt/const_prop/bad_op_mod_by_zero.rs similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs rename to tests/mir-opt/const_prop/bad_op_mod_by_zero.rs diff --git a/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs b/tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs similarity index 100% rename from src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs rename to tests/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.rs diff --git a/src/test/mir-opt/const_prop/boolean_identities.rs b/tests/mir-opt/const_prop/boolean_identities.rs similarity index 100% rename from src/test/mir-opt/const_prop/boolean_identities.rs rename to tests/mir-opt/const_prop/boolean_identities.rs diff --git a/src/test/mir-opt/const_prop/boolean_identities.test.ConstProp.diff b/tests/mir-opt/const_prop/boolean_identities.test.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/boolean_identities.test.ConstProp.diff rename to tests/mir-opt/const_prop/boolean_identities.test.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/boxes.main.ConstProp.diff b/tests/mir-opt/const_prop/boxes.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/boxes.main.ConstProp.diff rename to tests/mir-opt/const_prop/boxes.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/boxes.rs b/tests/mir-opt/const_prop/boxes.rs similarity index 100% rename from src/test/mir-opt/const_prop/boxes.rs rename to tests/mir-opt/const_prop/boxes.rs diff --git a/src/test/mir-opt/const_prop/cast.main.ConstProp.diff b/tests/mir-opt/const_prop/cast.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/cast.main.ConstProp.diff rename to tests/mir-opt/const_prop/cast.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/cast.rs b/tests/mir-opt/const_prop/cast.rs similarity index 100% rename from src/test/mir-opt/const_prop/cast.rs rename to tests/mir-opt/const_prop/cast.rs diff --git a/src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff b/tests/mir-opt/const_prop/checked_add.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/checked_add.main.ConstProp.diff rename to tests/mir-opt/const_prop/checked_add.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/checked_add.rs b/tests/mir-opt/const_prop/checked_add.rs similarity index 100% rename from src/test/mir-opt/const_prop/checked_add.rs rename to tests/mir-opt/const_prop/checked_add.rs diff --git a/src/test/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff b/tests/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff rename to tests/mir-opt/const_prop/const_prop_fails_gracefully.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs b/tests/mir-opt/const_prop/const_prop_fails_gracefully.rs similarity index 100% rename from src/test/mir-opt/const_prop/const_prop_fails_gracefully.rs rename to tests/mir-opt/const_prop/const_prop_fails_gracefully.rs diff --git a/src/test/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff b/tests/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff rename to tests/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/control_flow_simplification.hello.PreCodegen.before.mir b/tests/mir-opt/const_prop/control_flow_simplification.hello.PreCodegen.before.mir similarity index 100% rename from src/test/mir-opt/const_prop/control_flow_simplification.hello.PreCodegen.before.mir rename to tests/mir-opt/const_prop/control_flow_simplification.hello.PreCodegen.before.mir diff --git a/src/test/mir-opt/const_prop/control_flow_simplification.rs b/tests/mir-opt/const_prop/control_flow_simplification.rs similarity index 100% rename from src/test/mir-opt/const_prop/control_flow_simplification.rs rename to tests/mir-opt/const_prop/control_flow_simplification.rs diff --git a/src/test/mir-opt/const_prop/discriminant.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/discriminant.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/discriminant.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/discriminant.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/discriminant.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/discriminant.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/discriminant.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/discriminant.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/discriminant.rs b/tests/mir-opt/const_prop/discriminant.rs similarity index 100% rename from src/test/mir-opt/const_prop/discriminant.rs rename to tests/mir-opt/const_prop/discriminant.rs diff --git a/src/test/mir-opt/const_prop/indirect.main.ConstProp.diff b/tests/mir-opt/const_prop/indirect.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/indirect.main.ConstProp.diff rename to tests/mir-opt/const_prop/indirect.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/indirect.rs b/tests/mir-opt/const_prop/indirect.rs similarity index 100% rename from src/test/mir-opt/const_prop/indirect.rs rename to tests/mir-opt/const_prop/indirect.rs diff --git a/src/test/mir-opt/const_prop/invalid_constant.main.ConstProp.diff b/tests/mir-opt/const_prop/invalid_constant.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/invalid_constant.main.ConstProp.diff rename to tests/mir-opt/const_prop/invalid_constant.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/invalid_constant.rs b/tests/mir-opt/const_prop/invalid_constant.rs similarity index 100% rename from src/test/mir-opt/const_prop/invalid_constant.rs rename to tests/mir-opt/const_prop/invalid_constant.rs diff --git a/src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff b/tests/mir-opt/const_prop/issue_66971.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff rename to tests/mir-opt/const_prop/issue_66971.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/issue_66971.rs b/tests/mir-opt/const_prop/issue_66971.rs similarity index 100% rename from src/test/mir-opt/const_prop/issue_66971.rs rename to tests/mir-opt/const_prop/issue_66971.rs diff --git a/src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff b/tests/mir-opt/const_prop/issue_67019.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff rename to tests/mir-opt/const_prop/issue_67019.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/issue_67019.rs b/tests/mir-opt/const_prop/issue_67019.rs similarity index 100% rename from src/test/mir-opt/const_prop/issue_67019.rs rename to tests/mir-opt/const_prop/issue_67019.rs diff --git a/src/test/mir-opt/const_prop/large_array_index.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/large_array_index.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/large_array_index.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/large_array_index.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/large_array_index.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/large_array_index.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/large_array_index.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/large_array_index.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/large_array_index.rs b/tests/mir-opt/const_prop/large_array_index.rs similarity index 100% rename from src/test/mir-opt/const_prop/large_array_index.rs rename to tests/mir-opt/const_prop/large_array_index.rs diff --git a/src/test/mir-opt/const_prop/mult_by_zero.rs b/tests/mir-opt/const_prop/mult_by_zero.rs similarity index 100% rename from src/test/mir-opt/const_prop/mult_by_zero.rs rename to tests/mir-opt/const_prop/mult_by_zero.rs diff --git a/src/test/mir-opt/const_prop/mult_by_zero.test.ConstProp.diff b/tests/mir-opt/const_prop/mult_by_zero.test.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mult_by_zero.test.ConstProp.diff rename to tests/mir-opt/const_prop/mult_by_zero.test.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable.main.ConstProp.diff b/tests/mir-opt/const_prop/mutable_variable.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable.main.ConstProp.diff rename to tests/mir-opt/const_prop/mutable_variable.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable.rs b/tests/mir-opt/const_prop/mutable_variable.rs similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable.rs rename to tests/mir-opt/const_prop/mutable_variable.rs diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff b/tests/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff rename to tests/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs b/tests/mir-opt/const_prop/mutable_variable_aggregate.rs similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate.rs rename to tests/mir-opt/const_prop/mutable_variable_aggregate.rs diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff b/tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff rename to tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs b/tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs rename to tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff b/tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff rename to tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs b/tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs rename to tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs diff --git a/src/test/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff b/tests/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff rename to tests/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_no_prop.rs b/tests/mir-opt/const_prop/mutable_variable_no_prop.rs similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_no_prop.rs rename to tests/mir-opt/const_prop/mutable_variable_no_prop.rs diff --git a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff b/tests/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff rename to tests/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/mutable_variable_unprop_assign.rs b/tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs similarity index 100% rename from src/test/mir-opt/const_prop/mutable_variable_unprop_assign.rs rename to tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.32bit.mir b/tests/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.32bit.mir similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.32bit.mir rename to tests/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.32bit.mir diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.64bit.mir b/tests/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.64bit.mir similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.64bit.mir rename to tests/mir-opt/const_prop/optimizes_into_variable.main.PreCodegen.after.64bit.mir diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff b/tests/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff rename to tests/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.32bit.diff diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff b/tests/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff rename to tests/mir-opt/const_prop/optimizes_into_variable.main.ScalarReplacementOfAggregates.64bit.diff diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir b/tests/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir rename to tests/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.32bit.mir diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir b/tests/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir rename to tests/mir-opt/const_prop/optimizes_into_variable.main.SimplifyLocals-final.after.64bit.mir diff --git a/src/test/mir-opt/const_prop/optimizes_into_variable.rs b/tests/mir-opt/const_prop/optimizes_into_variable.rs similarity index 100% rename from src/test/mir-opt/const_prop/optimizes_into_variable.rs rename to tests/mir-opt/const_prop/optimizes_into_variable.rs diff --git a/src/test/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff b/tests/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff rename to tests/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/read_immutable_static.rs b/tests/mir-opt/const_prop/read_immutable_static.rs similarity index 100% rename from src/test/mir-opt/const_prop/read_immutable_static.rs rename to tests/mir-opt/const_prop/read_immutable_static.rs diff --git a/src/test/mir-opt/const_prop/ref_deref.main.ConstProp.diff b/tests/mir-opt/const_prop/ref_deref.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref.main.ConstProp.diff rename to tests/mir-opt/const_prop/ref_deref.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff b/tests/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff rename to tests/mir-opt/const_prop/ref_deref.main.PromoteTemps.diff diff --git a/src/test/mir-opt/const_prop/ref_deref.rs b/tests/mir-opt/const_prop/ref_deref.rs similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref.rs rename to tests/mir-opt/const_prop/ref_deref.rs diff --git a/src/test/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff b/tests/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff rename to tests/mir-opt/const_prop/ref_deref_project.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff b/tests/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff rename to tests/mir-opt/const_prop/ref_deref_project.main.PromoteTemps.diff diff --git a/src/test/mir-opt/const_prop/ref_deref_project.rs b/tests/mir-opt/const_prop/ref_deref_project.rs similarity index 100% rename from src/test/mir-opt/const_prop/ref_deref_project.rs rename to tests/mir-opt/const_prop/ref_deref_project.rs diff --git a/src/test/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff b/tests/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff rename to tests/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/reify_fn_ptr.rs b/tests/mir-opt/const_prop/reify_fn_ptr.rs similarity index 100% rename from src/test/mir-opt/const_prop/reify_fn_ptr.rs rename to tests/mir-opt/const_prop/reify_fn_ptr.rs diff --git a/src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/repeat.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/repeat.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/repeat.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/repeat.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/repeat.rs b/tests/mir-opt/const_prop/repeat.rs similarity index 100% rename from src/test/mir-opt/const_prop/repeat.rs rename to tests/mir-opt/const_prop/repeat.rs diff --git a/src/test/mir-opt/const_prop/return_place.add.ConstProp.diff b/tests/mir-opt/const_prop/return_place.add.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/return_place.add.ConstProp.diff rename to tests/mir-opt/const_prop/return_place.add.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/return_place.add.PreCodegen.before.mir b/tests/mir-opt/const_prop/return_place.add.PreCodegen.before.mir similarity index 100% rename from src/test/mir-opt/const_prop/return_place.add.PreCodegen.before.mir rename to tests/mir-opt/const_prop/return_place.add.PreCodegen.before.mir diff --git a/src/test/mir-opt/const_prop/return_place.rs b/tests/mir-opt/const_prop/return_place.rs similarity index 100% rename from src/test/mir-opt/const_prop/return_place.rs rename to tests/mir-opt/const_prop/return_place.rs diff --git a/src/test/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff b/tests/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff rename to tests/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/scalar_literal_propagation.rs b/tests/mir-opt/const_prop/scalar_literal_propagation.rs similarity index 100% rename from src/test/mir-opt/const_prop/scalar_literal_propagation.rs rename to tests/mir-opt/const_prop/scalar_literal_propagation.rs diff --git a/src/test/mir-opt/const_prop/slice_len.main.ConstProp.32bit.diff b/tests/mir-opt/const_prop/slice_len.main.ConstProp.32bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/slice_len.main.ConstProp.32bit.diff rename to tests/mir-opt/const_prop/slice_len.main.ConstProp.32bit.diff diff --git a/src/test/mir-opt/const_prop/slice_len.main.ConstProp.64bit.diff b/tests/mir-opt/const_prop/slice_len.main.ConstProp.64bit.diff similarity index 100% rename from src/test/mir-opt/const_prop/slice_len.main.ConstProp.64bit.diff rename to tests/mir-opt/const_prop/slice_len.main.ConstProp.64bit.diff diff --git a/src/test/mir-opt/const_prop/slice_len.rs b/tests/mir-opt/const_prop/slice_len.rs similarity index 100% rename from src/test/mir-opt/const_prop/slice_len.rs rename to tests/mir-opt/const_prop/slice_len.rs diff --git a/src/test/mir-opt/const_prop/switch_int.main.ConstProp.diff b/tests/mir-opt/const_prop/switch_int.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/switch_int.main.ConstProp.diff rename to tests/mir-opt/const_prop/switch_int.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/switch_int.main.SimplifyConstCondition-after-const-prop.diff b/tests/mir-opt/const_prop/switch_int.main.SimplifyConstCondition-after-const-prop.diff similarity index 100% rename from src/test/mir-opt/const_prop/switch_int.main.SimplifyConstCondition-after-const-prop.diff rename to tests/mir-opt/const_prop/switch_int.main.SimplifyConstCondition-after-const-prop.diff diff --git a/src/test/mir-opt/const_prop/switch_int.rs b/tests/mir-opt/const_prop/switch_int.rs similarity index 100% rename from src/test/mir-opt/const_prop/switch_int.rs rename to tests/mir-opt/const_prop/switch_int.rs diff --git a/src/test/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff b/tests/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff rename to tests/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff diff --git a/src/test/mir-opt/const_prop/tuple_literal_propagation.rs b/tests/mir-opt/const_prop/tuple_literal_propagation.rs similarity index 100% rename from src/test/mir-opt/const_prop/tuple_literal_propagation.rs rename to tests/mir-opt/const_prop/tuple_literal_propagation.rs diff --git a/src/test/mir-opt/const_prop_miscompile.bar.ConstProp.diff b/tests/mir-opt/const_prop_miscompile.bar.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop_miscompile.bar.ConstProp.diff rename to tests/mir-opt/const_prop_miscompile.bar.ConstProp.diff diff --git a/src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff b/tests/mir-opt/const_prop_miscompile.foo.ConstProp.diff similarity index 100% rename from src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff rename to tests/mir-opt/const_prop_miscompile.foo.ConstProp.diff diff --git a/src/test/mir-opt/const_prop_miscompile.rs b/tests/mir-opt/const_prop_miscompile.rs similarity index 100% rename from src/test/mir-opt/const_prop_miscompile.rs rename to tests/mir-opt/const_prop_miscompile.rs diff --git a/src/test/mir-opt/coverage_graphviz.bar.InstrumentCoverage.0.dot b/tests/mir-opt/coverage_graphviz.bar.InstrumentCoverage.0.dot similarity index 100% rename from src/test/mir-opt/coverage_graphviz.bar.InstrumentCoverage.0.dot rename to tests/mir-opt/coverage_graphviz.bar.InstrumentCoverage.0.dot diff --git a/src/test/mir-opt/coverage_graphviz.main.InstrumentCoverage.0.dot b/tests/mir-opt/coverage_graphviz.main.InstrumentCoverage.0.dot similarity index 100% rename from src/test/mir-opt/coverage_graphviz.main.InstrumentCoverage.0.dot rename to tests/mir-opt/coverage_graphviz.main.InstrumentCoverage.0.dot diff --git a/src/test/mir-opt/coverage_graphviz.rs b/tests/mir-opt/coverage_graphviz.rs similarity index 100% rename from src/test/mir-opt/coverage_graphviz.rs rename to tests/mir-opt/coverage_graphviz.rs diff --git a/src/test/mir-opt/dataflow-const-prop/cast.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/cast.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/cast.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/cast.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/cast.rs b/tests/mir-opt/dataflow-const-prop/cast.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/cast.rs rename to tests/mir-opt/dataflow-const-prop/cast.rs diff --git a/src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/checked.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/checked.rs b/tests/mir-opt/dataflow-const-prop/checked.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/checked.rs rename to tests/mir-opt/dataflow-const-prop/checked.rs diff --git a/src/test/mir-opt/dataflow-const-prop/enum.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/enum.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/enum.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/enum.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/enum.rs b/tests/mir-opt/dataflow-const-prop/enum.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/enum.rs rename to tests/mir-opt/dataflow-const-prop/enum.rs diff --git a/src/test/mir-opt/dataflow-const-prop/if.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/if.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/if.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/if.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/if.rs b/tests/mir-opt/dataflow-const-prop/if.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/if.rs rename to tests/mir-opt/dataflow-const-prop/if.rs diff --git a/src/test/mir-opt/dataflow-const-prop/inherit_overflow.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/inherit_overflow.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/inherit_overflow.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/inherit_overflow.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/inherit_overflow.rs b/tests/mir-opt/dataflow-const-prop/inherit_overflow.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/inherit_overflow.rs rename to tests/mir-opt/dataflow-const-prop/inherit_overflow.rs diff --git a/src/test/mir-opt/dataflow-const-prop/issue_81605.f.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/issue_81605.f.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/issue_81605.f.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/issue_81605.f.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/issue_81605.rs b/tests/mir-opt/dataflow-const-prop/issue_81605.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/issue_81605.rs rename to tests/mir-opt/dataflow-const-prop/issue_81605.rs diff --git a/src/test/mir-opt/dataflow-const-prop/ref_without_sb.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/ref_without_sb.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/ref_without_sb.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/ref_without_sb.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/ref_without_sb.rs b/tests/mir-opt/dataflow-const-prop/ref_without_sb.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/ref_without_sb.rs rename to tests/mir-opt/dataflow-const-prop/ref_without_sb.rs diff --git a/src/test/mir-opt/dataflow-const-prop/repr_transparent.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/repr_transparent.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/repr_transparent.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/repr_transparent.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/repr_transparent.rs b/tests/mir-opt/dataflow-const-prop/repr_transparent.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/repr_transparent.rs rename to tests/mir-opt/dataflow-const-prop/repr_transparent.rs diff --git a/src/test/mir-opt/dataflow-const-prop/self_assign.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/self_assign.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/self_assign.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/self_assign.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/self_assign.rs b/tests/mir-opt/dataflow-const-prop/self_assign.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/self_assign.rs rename to tests/mir-opt/dataflow-const-prop/self_assign.rs diff --git a/src/test/mir-opt/dataflow-const-prop/self_assign_add.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/self_assign_add.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/self_assign_add.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/self_assign_add.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/self_assign_add.rs b/tests/mir-opt/dataflow-const-prop/self_assign_add.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/self_assign_add.rs rename to tests/mir-opt/dataflow-const-prop/self_assign_add.rs diff --git a/src/test/mir-opt/dataflow-const-prop/sibling_ptr.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/sibling_ptr.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/sibling_ptr.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/sibling_ptr.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/sibling_ptr.rs b/tests/mir-opt/dataflow-const-prop/sibling_ptr.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/sibling_ptr.rs rename to tests/mir-opt/dataflow-const-prop/sibling_ptr.rs diff --git a/src/test/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/struct.rs b/tests/mir-opt/dataflow-const-prop/struct.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/struct.rs rename to tests/mir-opt/dataflow-const-prop/struct.rs diff --git a/src/test/mir-opt/dataflow-const-prop/terminator.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/terminator.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/terminator.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/terminator.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/terminator.rs b/tests/mir-opt/dataflow-const-prop/terminator.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/terminator.rs rename to tests/mir-opt/dataflow-const-prop/terminator.rs diff --git a/src/test/mir-opt/dataflow-const-prop/tuple.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/tuple.main.DataflowConstProp.diff similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/tuple.main.DataflowConstProp.diff rename to tests/mir-opt/dataflow-const-prop/tuple.main.DataflowConstProp.diff diff --git a/src/test/mir-opt/dataflow-const-prop/tuple.rs b/tests/mir-opt/dataflow-const-prop/tuple.rs similarity index 100% rename from src/test/mir-opt/dataflow-const-prop/tuple.rs rename to tests/mir-opt/dataflow-const-prop/tuple.rs diff --git a/src/test/mir-opt/dead-store-elimination/cycle.cycle.DeadStoreElimination.diff b/tests/mir-opt/dead-store-elimination/cycle.cycle.DeadStoreElimination.diff similarity index 100% rename from src/test/mir-opt/dead-store-elimination/cycle.cycle.DeadStoreElimination.diff rename to tests/mir-opt/dead-store-elimination/cycle.cycle.DeadStoreElimination.diff diff --git a/src/test/mir-opt/dead-store-elimination/cycle.rs b/tests/mir-opt/dead-store-elimination/cycle.rs similarity index 100% rename from src/test/mir-opt/dead-store-elimination/cycle.rs rename to tests/mir-opt/dead-store-elimination/cycle.rs diff --git a/src/test/mir-opt/dead-store-elimination/provenance_soundness.pointer_to_int.DeadStoreElimination.diff b/tests/mir-opt/dead-store-elimination/provenance_soundness.pointer_to_int.DeadStoreElimination.diff similarity index 100% rename from src/test/mir-opt/dead-store-elimination/provenance_soundness.pointer_to_int.DeadStoreElimination.diff rename to tests/mir-opt/dead-store-elimination/provenance_soundness.pointer_to_int.DeadStoreElimination.diff diff --git a/src/test/mir-opt/dead-store-elimination/provenance_soundness.retags.DeadStoreElimination.diff b/tests/mir-opt/dead-store-elimination/provenance_soundness.retags.DeadStoreElimination.diff similarity index 100% rename from src/test/mir-opt/dead-store-elimination/provenance_soundness.retags.DeadStoreElimination.diff rename to tests/mir-opt/dead-store-elimination/provenance_soundness.retags.DeadStoreElimination.diff diff --git a/src/test/mir-opt/dead-store-elimination/provenance_soundness.rs b/tests/mir-opt/dead-store-elimination/provenance_soundness.rs similarity index 100% rename from src/test/mir-opt/dead-store-elimination/provenance_soundness.rs rename to tests/mir-opt/dead-store-elimination/provenance_soundness.rs diff --git a/src/test/mir-opt/deaggregator_test.bar.Deaggregator.diff b/tests/mir-opt/deaggregator_test.bar.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test.bar.Deaggregator.diff rename to tests/mir-opt/deaggregator_test.bar.Deaggregator.diff diff --git a/src/test/mir-opt/deaggregator_test.rs b/tests/mir-opt/deaggregator_test.rs similarity index 100% rename from src/test/mir-opt/deaggregator_test.rs rename to tests/mir-opt/deaggregator_test.rs diff --git a/src/test/mir-opt/deaggregator_test_enum.bar.Deaggregator.diff b/tests/mir-opt/deaggregator_test_enum.bar.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test_enum.bar.Deaggregator.diff rename to tests/mir-opt/deaggregator_test_enum.bar.Deaggregator.diff diff --git a/src/test/mir-opt/deaggregator_test_enum.rs b/tests/mir-opt/deaggregator_test_enum.rs similarity index 100% rename from src/test/mir-opt/deaggregator_test_enum.rs rename to tests/mir-opt/deaggregator_test_enum.rs diff --git a/src/test/mir-opt/deaggregator_test_enum_2.rs b/tests/mir-opt/deaggregator_test_enum_2.rs similarity index 100% rename from src/test/mir-opt/deaggregator_test_enum_2.rs rename to tests/mir-opt/deaggregator_test_enum_2.rs diff --git a/src/test/mir-opt/deaggregator_test_enum_2.test1.Deaggregator.diff b/tests/mir-opt/deaggregator_test_enum_2.test1.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test_enum_2.test1.Deaggregator.diff rename to tests/mir-opt/deaggregator_test_enum_2.test1.Deaggregator.diff diff --git a/src/test/mir-opt/deaggregator_test_multiple.rs b/tests/mir-opt/deaggregator_test_multiple.rs similarity index 100% rename from src/test/mir-opt/deaggregator_test_multiple.rs rename to tests/mir-opt/deaggregator_test_multiple.rs diff --git a/src/test/mir-opt/deaggregator_test_multiple.test.Deaggregator.diff b/tests/mir-opt/deaggregator_test_multiple.test.Deaggregator.diff similarity index 100% rename from src/test/mir-opt/deaggregator_test_multiple.test.Deaggregator.diff rename to tests/mir-opt/deaggregator_test_multiple.test.Deaggregator.diff diff --git a/src/test/mir-opt/deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff b/tests/mir-opt/deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff similarity index 100% rename from src/test/mir-opt/deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff rename to tests/mir-opt/deduplicate_blocks.is_line_doc_comment_2.DeduplicateBlocks.diff diff --git a/src/test/mir-opt/deduplicate_blocks.rs b/tests/mir-opt/deduplicate_blocks.rs similarity index 100% rename from src/test/mir-opt/deduplicate_blocks.rs rename to tests/mir-opt/deduplicate_blocks.rs diff --git a/src/test/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir b/tests/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir rename to tests/mir-opt/deref-patterns/string.foo.PreCodegen.after.mir diff --git a/src/test/mir-opt/deref-patterns/string.rs b/tests/mir-opt/deref-patterns/string.rs similarity index 100% rename from src/test/mir-opt/deref-patterns/string.rs rename to tests/mir-opt/deref-patterns/string.rs diff --git a/src/test/mir-opt/derefer_complex_case.main.Derefer.diff b/tests/mir-opt/derefer_complex_case.main.Derefer.diff similarity index 100% rename from src/test/mir-opt/derefer_complex_case.main.Derefer.diff rename to tests/mir-opt/derefer_complex_case.main.Derefer.diff diff --git a/src/test/mir-opt/derefer_complex_case.rs b/tests/mir-opt/derefer_complex_case.rs similarity index 100% rename from src/test/mir-opt/derefer_complex_case.rs rename to tests/mir-opt/derefer_complex_case.rs diff --git a/src/test/mir-opt/derefer_inline_test.main.Derefer.diff b/tests/mir-opt/derefer_inline_test.main.Derefer.diff similarity index 100% rename from src/test/mir-opt/derefer_inline_test.main.Derefer.diff rename to tests/mir-opt/derefer_inline_test.main.Derefer.diff diff --git a/src/test/mir-opt/derefer_inline_test.rs b/tests/mir-opt/derefer_inline_test.rs similarity index 100% rename from src/test/mir-opt/derefer_inline_test.rs rename to tests/mir-opt/derefer_inline_test.rs diff --git a/src/test/mir-opt/derefer_terminator_test.main.Derefer.diff b/tests/mir-opt/derefer_terminator_test.main.Derefer.diff similarity index 100% rename from src/test/mir-opt/derefer_terminator_test.main.Derefer.diff rename to tests/mir-opt/derefer_terminator_test.main.Derefer.diff diff --git a/src/test/mir-opt/derefer_terminator_test.rs b/tests/mir-opt/derefer_terminator_test.rs similarity index 100% rename from src/test/mir-opt/derefer_terminator_test.rs rename to tests/mir-opt/derefer_terminator_test.rs diff --git a/src/test/mir-opt/derefer_test.main.Derefer.diff b/tests/mir-opt/derefer_test.main.Derefer.diff similarity index 100% rename from src/test/mir-opt/derefer_test.main.Derefer.diff rename to tests/mir-opt/derefer_test.main.Derefer.diff diff --git a/src/test/mir-opt/derefer_test.rs b/tests/mir-opt/derefer_test.rs similarity index 100% rename from src/test/mir-opt/derefer_test.rs rename to tests/mir-opt/derefer_test.rs diff --git a/src/test/mir-opt/derefer_test_multiple.main.Derefer.diff b/tests/mir-opt/derefer_test_multiple.main.Derefer.diff similarity index 100% rename from src/test/mir-opt/derefer_test_multiple.main.Derefer.diff rename to tests/mir-opt/derefer_test_multiple.main.Derefer.diff diff --git a/src/test/mir-opt/derefer_test_multiple.rs b/tests/mir-opt/derefer_test_multiple.rs similarity index 100% rename from src/test/mir-opt/derefer_test_multiple.rs rename to tests/mir-opt/derefer_test_multiple.rs diff --git a/src/test/mir-opt/dest-prop/branch.foo.DestinationPropagation.diff b/tests/mir-opt/dest-prop/branch.foo.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/branch.foo.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/branch.foo.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/branch.rs b/tests/mir-opt/dest-prop/branch.rs similarity index 100% rename from src/test/mir-opt/dest-prop/branch.rs rename to tests/mir-opt/dest-prop/branch.rs diff --git a/src/test/mir-opt/dest-prop/copy_propagation_arg.arg_src.DestinationPropagation.diff b/tests/mir-opt/dest-prop/copy_propagation_arg.arg_src.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/copy_propagation_arg.arg_src.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/copy_propagation_arg.arg_src.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/copy_propagation_arg.bar.DestinationPropagation.diff b/tests/mir-opt/dest-prop/copy_propagation_arg.bar.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/copy_propagation_arg.bar.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/copy_propagation_arg.bar.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/copy_propagation_arg.baz.DestinationPropagation.diff b/tests/mir-opt/dest-prop/copy_propagation_arg.baz.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/copy_propagation_arg.baz.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/copy_propagation_arg.baz.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/copy_propagation_arg.foo.DestinationPropagation.diff b/tests/mir-opt/dest-prop/copy_propagation_arg.foo.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/copy_propagation_arg.foo.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/copy_propagation_arg.foo.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/copy_propagation_arg.rs b/tests/mir-opt/dest-prop/copy_propagation_arg.rs similarity index 100% rename from src/test/mir-opt/dest-prop/copy_propagation_arg.rs rename to tests/mir-opt/dest-prop/copy_propagation_arg.rs diff --git a/src/test/mir-opt/dest-prop/cycle.main.DestinationPropagation.diff b/tests/mir-opt/dest-prop/cycle.main.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/cycle.main.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/cycle.main.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/cycle.rs b/tests/mir-opt/dest-prop/cycle.rs similarity index 100% rename from src/test/mir-opt/dest-prop/cycle.rs rename to tests/mir-opt/dest-prop/cycle.rs diff --git a/src/test/mir-opt/dest-prop/dead_stores_79191.f.DestinationPropagation.after.mir b/tests/mir-opt/dest-prop/dead_stores_79191.f.DestinationPropagation.after.mir similarity index 100% rename from src/test/mir-opt/dest-prop/dead_stores_79191.f.DestinationPropagation.after.mir rename to tests/mir-opt/dest-prop/dead_stores_79191.f.DestinationPropagation.after.mir diff --git a/src/test/mir-opt/dest-prop/dead_stores_79191.rs b/tests/mir-opt/dest-prop/dead_stores_79191.rs similarity index 100% rename from src/test/mir-opt/dest-prop/dead_stores_79191.rs rename to tests/mir-opt/dest-prop/dead_stores_79191.rs diff --git a/src/test/mir-opt/dest-prop/dead_stores_better.f.DestinationPropagation.after.mir b/tests/mir-opt/dest-prop/dead_stores_better.f.DestinationPropagation.after.mir similarity index 100% rename from src/test/mir-opt/dest-prop/dead_stores_better.f.DestinationPropagation.after.mir rename to tests/mir-opt/dest-prop/dead_stores_better.f.DestinationPropagation.after.mir diff --git a/src/test/mir-opt/dest-prop/dead_stores_better.rs b/tests/mir-opt/dest-prop/dead_stores_better.rs similarity index 100% rename from src/test/mir-opt/dest-prop/dead_stores_better.rs rename to tests/mir-opt/dest-prop/dead_stores_better.rs diff --git a/src/test/mir-opt/dest-prop/simple.nrvo.DestinationPropagation.diff b/tests/mir-opt/dest-prop/simple.nrvo.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/simple.nrvo.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/simple.nrvo.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/simple.rs b/tests/mir-opt/dest-prop/simple.rs similarity index 100% rename from src/test/mir-opt/dest-prop/simple.rs rename to tests/mir-opt/dest-prop/simple.rs diff --git a/src/test/mir-opt/dest-prop/union.main.DestinationPropagation.diff b/tests/mir-opt/dest-prop/union.main.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/union.main.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/union.main.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/union.rs b/tests/mir-opt/dest-prop/union.rs similarity index 100% rename from src/test/mir-opt/dest-prop/union.rs rename to tests/mir-opt/dest-prop/union.rs diff --git a/src/test/mir-opt/dest-prop/unreachable.f.DestinationPropagation.diff b/tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.diff similarity index 100% rename from src/test/mir-opt/dest-prop/unreachable.f.DestinationPropagation.diff rename to tests/mir-opt/dest-prop/unreachable.f.DestinationPropagation.diff diff --git a/src/test/mir-opt/dest-prop/unreachable.rs b/tests/mir-opt/dest-prop/unreachable.rs similarity index 100% rename from src/test/mir-opt/dest-prop/unreachable.rs rename to tests/mir-opt/dest-prop/unreachable.rs diff --git a/src/test/mir-opt/div_overflow.const_dividend.PreCodegen.after.mir b/tests/mir-opt/div_overflow.const_dividend.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/div_overflow.const_dividend.PreCodegen.after.mir rename to tests/mir-opt/div_overflow.const_dividend.PreCodegen.after.mir diff --git a/src/test/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir b/tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir rename to tests/mir-opt/div_overflow.const_divisor.PreCodegen.after.mir diff --git a/src/test/mir-opt/div_overflow.rs b/tests/mir-opt/div_overflow.rs similarity index 100% rename from src/test/mir-opt/div_overflow.rs rename to tests/mir-opt/div_overflow.rs diff --git a/src/test/mir-opt/early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch.opt2.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch.opt3.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch.opt3.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch.opt3.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch.opt3.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch.rs b/tests/mir-opt/early_otherwise_branch.rs similarity index 100% rename from src/test/mir-opt/early_otherwise_branch.rs rename to tests/mir-opt/early_otherwise_branch.rs diff --git a/src/test/mir-opt/early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch_3_element_tuple.rs b/tests/mir-opt/early_otherwise_branch_3_element_tuple.rs similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_3_element_tuple.rs rename to tests/mir-opt/early_otherwise_branch_3_element_tuple.rs diff --git a/src/test/mir-opt/early_otherwise_branch_68867.rs b/tests/mir-opt/early_otherwise_branch_68867.rs similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_68867.rs rename to tests/mir-opt/early_otherwise_branch_68867.rs diff --git a/src/test/mir-opt/early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch_noopt.noopt1.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch_noopt.rs b/tests/mir-opt/early_otherwise_branch_noopt.rs similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_noopt.rs rename to tests/mir-opt/early_otherwise_branch_noopt.rs diff --git a/src/test/mir-opt/early_otherwise_branch_soundness.no_deref_ptr.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch_soundness.no_deref_ptr.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_soundness.no_deref_ptr.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch_soundness.no_deref_ptr.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch_soundness.no_downcast.EarlyOtherwiseBranch.diff b/tests/mir-opt/early_otherwise_branch_soundness.no_downcast.EarlyOtherwiseBranch.diff similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_soundness.no_downcast.EarlyOtherwiseBranch.diff rename to tests/mir-opt/early_otherwise_branch_soundness.no_downcast.EarlyOtherwiseBranch.diff diff --git a/src/test/mir-opt/early_otherwise_branch_soundness.rs b/tests/mir-opt/early_otherwise_branch_soundness.rs similarity index 100% rename from src/test/mir-opt/early_otherwise_branch_soundness.rs rename to tests/mir-opt/early_otherwise_branch_soundness.rs diff --git a/src/test/mir-opt/equal_true.opt.InstCombine.diff b/tests/mir-opt/equal_true.opt.InstCombine.diff similarity index 100% rename from src/test/mir-opt/equal_true.opt.InstCombine.diff rename to tests/mir-opt/equal_true.opt.InstCombine.diff diff --git a/src/test/mir-opt/equal_true.rs b/tests/mir-opt/equal_true.rs similarity index 100% rename from src/test/mir-opt/equal_true.rs rename to tests/mir-opt/equal_true.rs diff --git a/src/test/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir b/tests/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir rename to tests/mir-opt/exponential_or.match_tuple.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/exponential_or.rs b/tests/mir-opt/exponential_or.rs similarity index 100% rename from src/test/mir-opt/exponential_or.rs rename to tests/mir-opt/exponential_or.rs diff --git a/src/test/mir-opt/fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir b/tests/mir-opt/fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir similarity index 100% rename from src/test/mir-opt/fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir rename to tests/mir-opt/fn_ptr_shim.core.ops-function-Fn-call.AddMovesForPackedDrops.before.mir diff --git a/src/test/mir-opt/fn_ptr_shim.rs b/tests/mir-opt/fn_ptr_shim.rs similarity index 100% rename from src/test/mir-opt/fn_ptr_shim.rs rename to tests/mir-opt/fn_ptr_shim.rs diff --git a/src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff b/tests/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff similarity index 100% rename from src/test/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff rename to tests/mir-opt/funky_arms.float_to_exponential_common.ConstProp.diff diff --git a/src/test/mir-opt/funky_arms.rs b/tests/mir-opt/funky_arms.rs similarity index 100% rename from src/test/mir-opt/funky_arms.rs rename to tests/mir-opt/funky_arms.rs diff --git a/src/test/mir-opt/generator_drop_cleanup.main-{closure#0}.generator_drop.0.mir b/tests/mir-opt/generator_drop_cleanup.main-{closure#0}.generator_drop.0.mir similarity index 100% rename from src/test/mir-opt/generator_drop_cleanup.main-{closure#0}.generator_drop.0.mir rename to tests/mir-opt/generator_drop_cleanup.main-{closure#0}.generator_drop.0.mir diff --git a/src/test/mir-opt/generator_drop_cleanup.rs b/tests/mir-opt/generator_drop_cleanup.rs similarity index 100% rename from src/test/mir-opt/generator_drop_cleanup.rs rename to tests/mir-opt/generator_drop_cleanup.rs diff --git a/src/test/mir-opt/generator_storage_dead_unwind.main-{closure#0}.StateTransform.before.mir b/tests/mir-opt/generator_storage_dead_unwind.main-{closure#0}.StateTransform.before.mir similarity index 100% rename from src/test/mir-opt/generator_storage_dead_unwind.main-{closure#0}.StateTransform.before.mir rename to tests/mir-opt/generator_storage_dead_unwind.main-{closure#0}.StateTransform.before.mir diff --git a/src/test/mir-opt/generator_storage_dead_unwind.rs b/tests/mir-opt/generator_storage_dead_unwind.rs similarity index 100% rename from src/test/mir-opt/generator_storage_dead_unwind.rs rename to tests/mir-opt/generator_storage_dead_unwind.rs diff --git a/src/test/mir-opt/generator_tiny.main-{closure#0}.generator_resume.0.mir b/tests/mir-opt/generator_tiny.main-{closure#0}.generator_resume.0.mir similarity index 100% rename from src/test/mir-opt/generator_tiny.main-{closure#0}.generator_resume.0.mir rename to tests/mir-opt/generator_tiny.main-{closure#0}.generator_resume.0.mir diff --git a/src/test/mir-opt/generator_tiny.rs b/tests/mir-opt/generator_tiny.rs similarity index 100% rename from src/test/mir-opt/generator_tiny.rs rename to tests/mir-opt/generator_tiny.rs diff --git a/src/test/mir-opt/graphviz.main.built.after.dot b/tests/mir-opt/graphviz.main.built.after.dot similarity index 100% rename from src/test/mir-opt/graphviz.main.built.after.dot rename to tests/mir-opt/graphviz.main.built.after.dot diff --git a/src/test/mir-opt/graphviz.rs b/tests/mir-opt/graphviz.rs similarity index 100% rename from src/test/mir-opt/graphviz.rs rename to tests/mir-opt/graphviz.rs diff --git a/src/test/mir-opt/if_condition_int.dont_opt_bool.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.dont_opt_bool.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.dont_opt_bool.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.dont_opt_bool.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.dont_opt_floats.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.dont_opt_floats.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.dont_opt_floats.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.dont_opt_floats.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.dont_remove_comparison.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.opt_char.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.opt_i8.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.opt_i8.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.opt_i8.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.opt_i8.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.opt_multiple_ifs.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.opt_multiple_ifs.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.opt_multiple_ifs.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.opt_multiple_ifs.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.opt_negative.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.opt_negative.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.opt_negative.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.opt_negative.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.opt_u32.SimplifyComparisonIntegral.diff b/tests/mir-opt/if_condition_int.opt_u32.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/if_condition_int.opt_u32.SimplifyComparisonIntegral.diff rename to tests/mir-opt/if_condition_int.opt_u32.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/if_condition_int.rs b/tests/mir-opt/if_condition_int.rs similarity index 100% rename from src/test/mir-opt/if_condition_int.rs rename to tests/mir-opt/if_condition_int.rs diff --git a/src/test/mir-opt/inline/asm_unwind.main.Inline.diff b/tests/mir-opt/inline/asm_unwind.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/asm_unwind.main.Inline.diff rename to tests/mir-opt/inline/asm_unwind.main.Inline.diff diff --git a/src/test/mir-opt/inline/asm_unwind.rs b/tests/mir-opt/inline/asm_unwind.rs similarity index 100% rename from src/test/mir-opt/inline/asm_unwind.rs rename to tests/mir-opt/inline/asm_unwind.rs diff --git a/src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff b/tests/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff rename to tests/mir-opt/inline/caller_with_trivial_bound.foo.Inline.diff diff --git a/src/test/mir-opt/inline/caller_with_trivial_bound.rs b/tests/mir-opt/inline/caller_with_trivial_bound.rs similarity index 100% rename from src/test/mir-opt/inline/caller_with_trivial_bound.rs rename to tests/mir-opt/inline/caller_with_trivial_bound.rs diff --git a/src/test/mir-opt/inline/cycle.f.Inline.diff b/tests/mir-opt/inline/cycle.f.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/cycle.f.Inline.diff rename to tests/mir-opt/inline/cycle.f.Inline.diff diff --git a/src/test/mir-opt/inline/cycle.g.Inline.diff b/tests/mir-opt/inline/cycle.g.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/cycle.g.Inline.diff rename to tests/mir-opt/inline/cycle.g.Inline.diff diff --git a/src/test/mir-opt/inline/cycle.main.Inline.diff b/tests/mir-opt/inline/cycle.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/cycle.main.Inline.diff rename to tests/mir-opt/inline/cycle.main.Inline.diff diff --git a/src/test/mir-opt/inline/cycle.rs b/tests/mir-opt/inline/cycle.rs similarity index 100% rename from src/test/mir-opt/inline/cycle.rs rename to tests/mir-opt/inline/cycle.rs diff --git a/src/test/mir-opt/inline/dyn_trait.get_query.Inline.diff b/tests/mir-opt/inline/dyn_trait.get_query.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/dyn_trait.get_query.Inline.diff rename to tests/mir-opt/inline/dyn_trait.get_query.Inline.diff diff --git a/src/test/mir-opt/inline/dyn_trait.mk_cycle.Inline.diff b/tests/mir-opt/inline/dyn_trait.mk_cycle.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/dyn_trait.mk_cycle.Inline.diff rename to tests/mir-opt/inline/dyn_trait.mk_cycle.Inline.diff diff --git a/src/test/mir-opt/inline/dyn_trait.rs b/tests/mir-opt/inline/dyn_trait.rs similarity index 100% rename from src/test/mir-opt/inline/dyn_trait.rs rename to tests/mir-opt/inline/dyn_trait.rs diff --git a/src/test/mir-opt/inline/dyn_trait.try_execute_query.Inline.diff b/tests/mir-opt/inline/dyn_trait.try_execute_query.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/dyn_trait.try_execute_query.Inline.diff rename to tests/mir-opt/inline/dyn_trait.try_execute_query.Inline.diff diff --git a/src/test/mir-opt/inline/exponential_runtime.main.Inline.diff b/tests/mir-opt/inline/exponential_runtime.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/exponential_runtime.main.Inline.diff rename to tests/mir-opt/inline/exponential_runtime.main.Inline.diff diff --git a/src/test/mir-opt/inline/exponential_runtime.rs b/tests/mir-opt/inline/exponential_runtime.rs similarity index 100% rename from src/test/mir-opt/inline/exponential_runtime.rs rename to tests/mir-opt/inline/exponential_runtime.rs diff --git a/src/test/mir-opt/inline/inline_any_operand.bar.Inline.after.mir b/tests/mir-opt/inline/inline_any_operand.bar.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_any_operand.bar.Inline.after.mir rename to tests/mir-opt/inline/inline_any_operand.bar.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_any_operand.rs b/tests/mir-opt/inline/inline_any_operand.rs similarity index 100% rename from src/test/mir-opt/inline/inline_any_operand.rs rename to tests/mir-opt/inline/inline_any_operand.rs diff --git a/src/test/mir-opt/inline/inline_async.rs b/tests/mir-opt/inline/inline_async.rs similarity index 100% rename from src/test/mir-opt/inline/inline_async.rs rename to tests/mir-opt/inline/inline_async.rs diff --git a/src/test/mir-opt/inline/inline_closure.foo.Inline.after.mir b/tests/mir-opt/inline/inline_closure.foo.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_closure.foo.Inline.after.mir rename to tests/mir-opt/inline/inline_closure.foo.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_closure.rs b/tests/mir-opt/inline/inline_closure.rs similarity index 100% rename from src/test/mir-opt/inline/inline_closure.rs rename to tests/mir-opt/inline/inline_closure.rs diff --git a/src/test/mir-opt/inline/inline_closure_borrows_arg.foo.Inline.after.mir b/tests/mir-opt/inline/inline_closure_borrows_arg.foo.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_closure_borrows_arg.foo.Inline.after.mir rename to tests/mir-opt/inline/inline_closure_borrows_arg.foo.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_closure_borrows_arg.rs b/tests/mir-opt/inline/inline_closure_borrows_arg.rs similarity index 100% rename from src/test/mir-opt/inline/inline_closure_borrows_arg.rs rename to tests/mir-opt/inline/inline_closure_borrows_arg.rs diff --git a/src/test/mir-opt/inline/inline_closure_captures.foo.Inline.after.mir b/tests/mir-opt/inline/inline_closure_captures.foo.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_closure_captures.foo.Inline.after.mir rename to tests/mir-opt/inline/inline_closure_captures.foo.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_closure_captures.rs b/tests/mir-opt/inline/inline_closure_captures.rs similarity index 100% rename from src/test/mir-opt/inline/inline_closure_captures.rs rename to tests/mir-opt/inline/inline_closure_captures.rs diff --git a/src/test/mir-opt/inline/inline_compatibility.inlined_no_sanitize.Inline.diff b/tests/mir-opt/inline/inline_compatibility.inlined_no_sanitize.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_compatibility.inlined_no_sanitize.Inline.diff rename to tests/mir-opt/inline/inline_compatibility.inlined_no_sanitize.Inline.diff diff --git a/src/test/mir-opt/inline/inline_compatibility.inlined_target_feature.Inline.diff b/tests/mir-opt/inline/inline_compatibility.inlined_target_feature.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_compatibility.inlined_target_feature.Inline.diff rename to tests/mir-opt/inline/inline_compatibility.inlined_target_feature.Inline.diff diff --git a/src/test/mir-opt/inline/inline_compatibility.not_inlined_c_variadic.Inline.diff b/tests/mir-opt/inline/inline_compatibility.not_inlined_c_variadic.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_compatibility.not_inlined_c_variadic.Inline.diff rename to tests/mir-opt/inline/inline_compatibility.not_inlined_c_variadic.Inline.diff diff --git a/src/test/mir-opt/inline/inline_compatibility.not_inlined_no_sanitize.Inline.diff b/tests/mir-opt/inline/inline_compatibility.not_inlined_no_sanitize.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_compatibility.not_inlined_no_sanitize.Inline.diff rename to tests/mir-opt/inline/inline_compatibility.not_inlined_no_sanitize.Inline.diff diff --git a/src/test/mir-opt/inline/inline_compatibility.not_inlined_target_feature.Inline.diff b/tests/mir-opt/inline/inline_compatibility.not_inlined_target_feature.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_compatibility.not_inlined_target_feature.Inline.diff rename to tests/mir-opt/inline/inline_compatibility.not_inlined_target_feature.Inline.diff diff --git a/src/test/mir-opt/inline/inline_compatibility.rs b/tests/mir-opt/inline/inline_compatibility.rs similarity index 100% rename from src/test/mir-opt/inline/inline_compatibility.rs rename to tests/mir-opt/inline/inline_compatibility.rs diff --git a/src/test/mir-opt/inline/inline_cycle.one.Inline.diff b/tests/mir-opt/inline/inline_cycle.one.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_cycle.one.Inline.diff rename to tests/mir-opt/inline/inline_cycle.one.Inline.diff diff --git a/src/test/mir-opt/inline/inline_cycle.rs b/tests/mir-opt/inline/inline_cycle.rs similarity index 100% rename from src/test/mir-opt/inline/inline_cycle.rs rename to tests/mir-opt/inline/inline_cycle.rs diff --git a/src/test/mir-opt/inline/inline_cycle.two.Inline.diff b/tests/mir-opt/inline/inline_cycle.two.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_cycle.two.Inline.diff rename to tests/mir-opt/inline/inline_cycle.two.Inline.diff diff --git a/src/test/mir-opt/inline/inline_cycle_generic.main.Inline.diff b/tests/mir-opt/inline/inline_cycle_generic.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_cycle_generic.main.Inline.diff rename to tests/mir-opt/inline/inline_cycle_generic.main.Inline.diff diff --git a/src/test/mir-opt/inline/inline_cycle_generic.rs b/tests/mir-opt/inline/inline_cycle_generic.rs similarity index 100% rename from src/test/mir-opt/inline/inline_cycle_generic.rs rename to tests/mir-opt/inline/inline_cycle_generic.rs diff --git a/src/test/mir-opt/inline/inline_diverging.f.Inline.diff b/tests/mir-opt/inline/inline_diverging.f.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_diverging.f.Inline.diff rename to tests/mir-opt/inline/inline_diverging.f.Inline.diff diff --git a/src/test/mir-opt/inline/inline_diverging.g.Inline.diff b/tests/mir-opt/inline/inline_diverging.g.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_diverging.g.Inline.diff rename to tests/mir-opt/inline/inline_diverging.g.Inline.diff diff --git a/src/test/mir-opt/inline/inline_diverging.h.Inline.diff b/tests/mir-opt/inline/inline_diverging.h.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_diverging.h.Inline.diff rename to tests/mir-opt/inline/inline_diverging.h.Inline.diff diff --git a/src/test/mir-opt/inline/inline_diverging.rs b/tests/mir-opt/inline/inline_diverging.rs similarity index 100% rename from src/test/mir-opt/inline/inline_diverging.rs rename to tests/mir-opt/inline/inline_diverging.rs diff --git a/src/test/mir-opt/inline/inline_generator.main.Inline.diff b/tests/mir-opt/inline/inline_generator.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_generator.main.Inline.diff rename to tests/mir-opt/inline/inline_generator.main.Inline.diff diff --git a/src/test/mir-opt/inline/inline_generator.rs b/tests/mir-opt/inline/inline_generator.rs similarity index 100% rename from src/test/mir-opt/inline/inline_generator.rs rename to tests/mir-opt/inline/inline_generator.rs diff --git a/src/test/mir-opt/inline/inline_instruction_set.default.Inline.diff b/tests/mir-opt/inline/inline_instruction_set.default.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_instruction_set.default.Inline.diff rename to tests/mir-opt/inline/inline_instruction_set.default.Inline.diff diff --git a/src/test/mir-opt/inline/inline_instruction_set.rs b/tests/mir-opt/inline/inline_instruction_set.rs similarity index 100% rename from src/test/mir-opt/inline/inline_instruction_set.rs rename to tests/mir-opt/inline/inline_instruction_set.rs diff --git a/src/test/mir-opt/inline/inline_instruction_set.t32.Inline.diff b/tests/mir-opt/inline/inline_instruction_set.t32.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_instruction_set.t32.Inline.diff rename to tests/mir-opt/inline/inline_instruction_set.t32.Inline.diff diff --git a/src/test/mir-opt/inline/inline_into_box_place.main.Inline.diff b/tests/mir-opt/inline/inline_into_box_place.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_into_box_place.main.Inline.diff rename to tests/mir-opt/inline/inline_into_box_place.main.Inline.diff diff --git a/src/test/mir-opt/inline/inline_into_box_place.rs b/tests/mir-opt/inline/inline_into_box_place.rs similarity index 100% rename from src/test/mir-opt/inline/inline_into_box_place.rs rename to tests/mir-opt/inline/inline_into_box_place.rs diff --git a/src/test/mir-opt/inline/inline_options.main.Inline.after.mir b/tests/mir-opt/inline/inline_options.main.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_options.main.Inline.after.mir rename to tests/mir-opt/inline/inline_options.main.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_options.rs b/tests/mir-opt/inline/inline_options.rs similarity index 100% rename from src/test/mir-opt/inline/inline_options.rs rename to tests/mir-opt/inline/inline_options.rs diff --git a/src/test/mir-opt/inline/inline_retag.bar.Inline.after.mir b/tests/mir-opt/inline/inline_retag.bar.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_retag.bar.Inline.after.mir rename to tests/mir-opt/inline/inline_retag.bar.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_retag.rs b/tests/mir-opt/inline/inline_retag.rs similarity index 100% rename from src/test/mir-opt/inline/inline_retag.rs rename to tests/mir-opt/inline/inline_retag.rs diff --git a/src/test/mir-opt/inline/inline_shims.clone.Inline.diff b/tests/mir-opt/inline/inline_shims.clone.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_shims.clone.Inline.diff rename to tests/mir-opt/inline/inline_shims.clone.Inline.diff diff --git a/src/test/mir-opt/inline/inline_shims.drop.Inline.diff b/tests/mir-opt/inline/inline_shims.drop.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_shims.drop.Inline.diff rename to tests/mir-opt/inline/inline_shims.drop.Inline.diff diff --git a/src/test/mir-opt/inline/inline_shims.rs b/tests/mir-opt/inline/inline_shims.rs similarity index 100% rename from src/test/mir-opt/inline/inline_shims.rs rename to tests/mir-opt/inline/inline_shims.rs diff --git a/src/test/mir-opt/inline/inline_specialization.main.Inline.diff b/tests/mir-opt/inline/inline_specialization.main.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/inline_specialization.main.Inline.diff rename to tests/mir-opt/inline/inline_specialization.main.Inline.diff diff --git a/src/test/mir-opt/inline/inline_specialization.rs b/tests/mir-opt/inline/inline_specialization.rs similarity index 100% rename from src/test/mir-opt/inline/inline_specialization.rs rename to tests/mir-opt/inline/inline_specialization.rs diff --git a/src/test/mir-opt/inline/inline_trait_method.rs b/tests/mir-opt/inline/inline_trait_method.rs similarity index 100% rename from src/test/mir-opt/inline/inline_trait_method.rs rename to tests/mir-opt/inline/inline_trait_method.rs diff --git a/src/test/mir-opt/inline/inline_trait_method.test.Inline.after.mir b/tests/mir-opt/inline/inline_trait_method.test.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_trait_method.test.Inline.after.mir rename to tests/mir-opt/inline/inline_trait_method.test.Inline.after.mir diff --git a/src/test/mir-opt/inline/inline_trait_method_2.rs b/tests/mir-opt/inline/inline_trait_method_2.rs similarity index 100% rename from src/test/mir-opt/inline/inline_trait_method_2.rs rename to tests/mir-opt/inline/inline_trait_method_2.rs diff --git a/src/test/mir-opt/inline/inline_trait_method_2.test2.Inline.after.mir b/tests/mir-opt/inline/inline_trait_method_2.test2.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/inline_trait_method_2.test2.Inline.after.mir rename to tests/mir-opt/inline/inline_trait_method_2.test2.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.a.Inline.after.mir b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.a.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.a.Inline.after.mir rename to tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.a.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.b.Inline.after.mir b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.b.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.b.Inline.after.mir rename to tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.b.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.c.Inline.after.mir b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.c.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.c.Inline.after.mir rename to tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.c.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.d.Inline.after.mir b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.d.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.d.Inline.after.mir rename to tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.d.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs similarity index 100% rename from src/test/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs rename to tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs diff --git a/src/test/mir-opt/inline/issue_76997_inline_scopes_parenting.main.Inline.after.mir b/tests/mir-opt/inline/issue_76997_inline_scopes_parenting.main.Inline.after.mir similarity index 100% rename from src/test/mir-opt/inline/issue_76997_inline_scopes_parenting.main.Inline.after.mir rename to tests/mir-opt/inline/issue_76997_inline_scopes_parenting.main.Inline.after.mir diff --git a/src/test/mir-opt/inline/issue_76997_inline_scopes_parenting.rs b/tests/mir-opt/inline/issue_76997_inline_scopes_parenting.rs similarity index 100% rename from src/test/mir-opt/inline/issue_76997_inline_scopes_parenting.rs rename to tests/mir-opt/inline/issue_76997_inline_scopes_parenting.rs diff --git a/src/test/mir-opt/inline/issue_78442.bar.Inline.diff b/tests/mir-opt/inline/issue_78442.bar.Inline.diff similarity index 100% rename from src/test/mir-opt/inline/issue_78442.bar.Inline.diff rename to tests/mir-opt/inline/issue_78442.bar.Inline.diff diff --git a/src/test/mir-opt/inline/issue_78442.bar.RevealAll.diff b/tests/mir-opt/inline/issue_78442.bar.RevealAll.diff similarity index 100% rename from src/test/mir-opt/inline/issue_78442.bar.RevealAll.diff rename to tests/mir-opt/inline/issue_78442.bar.RevealAll.diff diff --git a/src/test/mir-opt/inline/issue_78442.rs b/tests/mir-opt/inline/issue_78442.rs similarity index 100% rename from src/test/mir-opt/inline/issue_78442.rs rename to tests/mir-opt/inline/issue_78442.rs diff --git a/src/test/mir-opt/inline/polymorphic_recursion.rs b/tests/mir-opt/inline/polymorphic_recursion.rs similarity index 100% rename from src/test/mir-opt/inline/polymorphic_recursion.rs rename to tests/mir-opt/inline/polymorphic_recursion.rs diff --git a/src/test/mir-opt/instrument_coverage.bar.InstrumentCoverage.diff b/tests/mir-opt/instrument_coverage.bar.InstrumentCoverage.diff similarity index 100% rename from src/test/mir-opt/instrument_coverage.bar.InstrumentCoverage.diff rename to tests/mir-opt/instrument_coverage.bar.InstrumentCoverage.diff diff --git a/src/test/mir-opt/instrument_coverage.main.InstrumentCoverage.diff b/tests/mir-opt/instrument_coverage.main.InstrumentCoverage.diff similarity index 100% rename from src/test/mir-opt/instrument_coverage.main.InstrumentCoverage.diff rename to tests/mir-opt/instrument_coverage.main.InstrumentCoverage.diff diff --git a/src/test/mir-opt/instrument_coverage.rs b/tests/mir-opt/instrument_coverage.rs similarity index 100% rename from src/test/mir-opt/instrument_coverage.rs rename to tests/mir-opt/instrument_coverage.rs diff --git a/src/test/mir-opt/issue_101973.inner.ConstProp.diff b/tests/mir-opt/issue_101973.inner.ConstProp.diff similarity index 100% rename from src/test/mir-opt/issue_101973.inner.ConstProp.diff rename to tests/mir-opt/issue_101973.inner.ConstProp.diff diff --git a/src/test/mir-opt/issue_101973.rs b/tests/mir-opt/issue_101973.rs similarity index 100% rename from src/test/mir-opt/issue_101973.rs rename to tests/mir-opt/issue_101973.rs diff --git a/src/test/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir b/tests/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir rename to tests/mir-opt/issue_38669.main.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/issue_38669.rs b/tests/mir-opt/issue_38669.rs similarity index 100% rename from src/test/mir-opt/issue_38669.rs rename to tests/mir-opt/issue_38669.rs diff --git a/src/test/mir-opt/issue_41110.main.ElaborateDrops.after.mir b/tests/mir-opt/issue_41110.main.ElaborateDrops.after.mir similarity index 100% rename from src/test/mir-opt/issue_41110.main.ElaborateDrops.after.mir rename to tests/mir-opt/issue_41110.main.ElaborateDrops.after.mir diff --git a/src/test/mir-opt/issue_41110.rs b/tests/mir-opt/issue_41110.rs similarity index 100% rename from src/test/mir-opt/issue_41110.rs rename to tests/mir-opt/issue_41110.rs diff --git a/src/test/mir-opt/issue_41110.test.ElaborateDrops.after.mir b/tests/mir-opt/issue_41110.test.ElaborateDrops.after.mir similarity index 100% rename from src/test/mir-opt/issue_41110.test.ElaborateDrops.after.mir rename to tests/mir-opt/issue_41110.test.ElaborateDrops.after.mir diff --git a/src/test/mir-opt/issue_41697.rs b/tests/mir-opt/issue_41697.rs similarity index 100% rename from src/test/mir-opt/issue_41697.rs rename to tests/mir-opt/issue_41697.rs diff --git a/src/test/mir-opt/issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir b/tests/mir-opt/issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir similarity index 100% rename from src/test/mir-opt/issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir rename to tests/mir-opt/issue_41697.{impl#0}-{constant#0}.SimplifyCfg-promote-consts.after.mir diff --git a/src/test/mir-opt/issue_41888.main.ElaborateDrops.after.mir b/tests/mir-opt/issue_41888.main.ElaborateDrops.after.mir similarity index 100% rename from src/test/mir-opt/issue_41888.main.ElaborateDrops.after.mir rename to tests/mir-opt/issue_41888.main.ElaborateDrops.after.mir diff --git a/src/test/mir-opt/issue_41888.rs b/tests/mir-opt/issue_41888.rs similarity index 100% rename from src/test/mir-opt/issue_41888.rs rename to tests/mir-opt/issue_41888.rs diff --git a/src/test/mir-opt/issue_62289.rs b/tests/mir-opt/issue_62289.rs similarity index 100% rename from src/test/mir-opt/issue_62289.rs rename to tests/mir-opt/issue_62289.rs diff --git a/src/test/mir-opt/issue_62289.test.ElaborateDrops.before.mir b/tests/mir-opt/issue_62289.test.ElaborateDrops.before.mir similarity index 100% rename from src/test/mir-opt/issue_62289.test.ElaborateDrops.before.mir rename to tests/mir-opt/issue_62289.test.ElaborateDrops.before.mir diff --git a/src/test/mir-opt/issue_72181.bar.built.after.mir b/tests/mir-opt/issue_72181.bar.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_72181.bar.built.after.mir rename to tests/mir-opt/issue_72181.bar.built.after.mir diff --git a/src/test/mir-opt/issue_72181.foo.built.after.mir b/tests/mir-opt/issue_72181.foo.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_72181.foo.built.after.mir rename to tests/mir-opt/issue_72181.foo.built.after.mir diff --git a/src/test/mir-opt/issue_72181.main.built.after.mir b/tests/mir-opt/issue_72181.main.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_72181.main.built.after.mir rename to tests/mir-opt/issue_72181.main.built.after.mir diff --git a/src/test/mir-opt/issue_72181.rs b/tests/mir-opt/issue_72181.rs similarity index 100% rename from src/test/mir-opt/issue_72181.rs rename to tests/mir-opt/issue_72181.rs diff --git a/src/test/mir-opt/issue_72181_1.f.built.after.mir b/tests/mir-opt/issue_72181_1.f.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_72181_1.f.built.after.mir rename to tests/mir-opt/issue_72181_1.f.built.after.mir diff --git a/src/test/mir-opt/issue_72181_1.main.built.after.mir b/tests/mir-opt/issue_72181_1.main.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_72181_1.main.built.after.mir rename to tests/mir-opt/issue_72181_1.main.built.after.mir diff --git a/src/test/mir-opt/issue_72181_1.rs b/tests/mir-opt/issue_72181_1.rs similarity index 100% rename from src/test/mir-opt/issue_72181_1.rs rename to tests/mir-opt/issue_72181_1.rs diff --git a/src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.diff b/tests/mir-opt/issue_73223.main.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/issue_73223.main.SimplifyArmIdentity.diff rename to tests/mir-opt/issue_73223.main.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/issue_73223.rs b/tests/mir-opt/issue_73223.rs similarity index 100% rename from src/test/mir-opt/issue_73223.rs rename to tests/mir-opt/issue_73223.rs diff --git a/src/test/mir-opt/issue_76432.rs b/tests/mir-opt/issue_76432.rs similarity index 100% rename from src/test/mir-opt/issue_76432.rs rename to tests/mir-opt/issue_76432.rs diff --git a/src/test/mir-opt/issue_76432.test.SimplifyComparisonIntegral.diff b/tests/mir-opt/issue_76432.test.SimplifyComparisonIntegral.diff similarity index 100% rename from src/test/mir-opt/issue_76432.test.SimplifyComparisonIntegral.diff rename to tests/mir-opt/issue_76432.test.SimplifyComparisonIntegral.diff diff --git a/src/test/mir-opt/issue_78192.f.InstCombine.diff b/tests/mir-opt/issue_78192.f.InstCombine.diff similarity index 100% rename from src/test/mir-opt/issue_78192.f.InstCombine.diff rename to tests/mir-opt/issue_78192.f.InstCombine.diff diff --git a/src/test/mir-opt/issue_78192.rs b/tests/mir-opt/issue_78192.rs similarity index 100% rename from src/test/mir-opt/issue_78192.rs rename to tests/mir-opt/issue_78192.rs diff --git a/src/test/mir-opt/issue_91633.bar.built.after.mir b/tests/mir-opt/issue_91633.bar.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_91633.bar.built.after.mir rename to tests/mir-opt/issue_91633.bar.built.after.mir diff --git a/src/test/mir-opt/issue_91633.foo.built.after.mir b/tests/mir-opt/issue_91633.foo.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_91633.foo.built.after.mir rename to tests/mir-opt/issue_91633.foo.built.after.mir diff --git a/src/test/mir-opt/issue_91633.fun.built.after.mir b/tests/mir-opt/issue_91633.fun.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_91633.fun.built.after.mir rename to tests/mir-opt/issue_91633.fun.built.after.mir diff --git a/src/test/mir-opt/issue_91633.hey.built.after.mir b/tests/mir-opt/issue_91633.hey.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_91633.hey.built.after.mir rename to tests/mir-opt/issue_91633.hey.built.after.mir diff --git a/src/test/mir-opt/issue_91633.rs b/tests/mir-opt/issue_91633.rs similarity index 100% rename from src/test/mir-opt/issue_91633.rs rename to tests/mir-opt/issue_91633.rs diff --git a/src/test/mir-opt/issue_99325.main.built.after.mir b/tests/mir-opt/issue_99325.main.built.after.mir similarity index 100% rename from src/test/mir-opt/issue_99325.main.built.after.mir rename to tests/mir-opt/issue_99325.main.built.after.mir diff --git a/src/test/mir-opt/issue_99325.rs b/tests/mir-opt/issue_99325.rs similarity index 100% rename from src/test/mir-opt/issue_99325.rs rename to tests/mir-opt/issue_99325.rs diff --git a/src/test/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.mir b/tests/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.mir rename to tests/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.mir diff --git a/src/test/mir-opt/issues/issue_59352.rs b/tests/mir-opt/issues/issue_59352.rs similarity index 100% rename from src/test/mir-opt/issues/issue_59352.rs rename to tests/mir-opt/issues/issue_59352.rs diff --git a/src/test/mir-opt/issues/issue_75439.foo.MatchBranchSimplification.diff b/tests/mir-opt/issues/issue_75439.foo.MatchBranchSimplification.diff similarity index 100% rename from src/test/mir-opt/issues/issue_75439.foo.MatchBranchSimplification.diff rename to tests/mir-opt/issues/issue_75439.foo.MatchBranchSimplification.diff diff --git a/src/test/mir-opt/issues/issue_75439.rs b/tests/mir-opt/issues/issue_75439.rs similarity index 100% rename from src/test/mir-opt/issues/issue_75439.rs rename to tests/mir-opt/issues/issue_75439.rs diff --git a/src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir b/tests/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir similarity index 100% rename from src/test/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir rename to tests/mir-opt/loop_test.main.SimplifyCfg-promote-consts.after.mir diff --git a/src/test/mir-opt/loop_test.rs b/tests/mir-opt/loop_test.rs similarity index 100% rename from src/test/mir-opt/loop_test.rs rename to tests/mir-opt/loop_test.rs diff --git a/src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff b/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff similarity index 100% rename from src/test/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff rename to tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.diff diff --git a/src/test/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff b/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff similarity index 100% rename from src/test/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff rename to tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff diff --git a/src/test/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff b/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff similarity index 100% rename from src/test/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff rename to tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff diff --git a/src/test/mir-opt/lower_array_len.array_len_by_value.NormalizeArrayLen.diff b/tests/mir-opt/lower_array_len.array_len_by_value.NormalizeArrayLen.diff similarity index 100% rename from src/test/mir-opt/lower_array_len.array_len_by_value.NormalizeArrayLen.diff rename to tests/mir-opt/lower_array_len.array_len_by_value.NormalizeArrayLen.diff diff --git a/src/test/mir-opt/lower_array_len.rs b/tests/mir-opt/lower_array_len.rs similarity index 100% rename from src/test/mir-opt/lower_array_len.rs rename to tests/mir-opt/lower_array_len.rs diff --git a/src/test/mir-opt/lower_array_len_e2e.array_bound.PreCodegen.after.mir b/tests/mir-opt/lower_array_len_e2e.array_bound.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/lower_array_len_e2e.array_bound.PreCodegen.after.mir rename to tests/mir-opt/lower_array_len_e2e.array_bound.PreCodegen.after.mir diff --git a/src/test/mir-opt/lower_array_len_e2e.array_bound_mut.PreCodegen.after.mir b/tests/mir-opt/lower_array_len_e2e.array_bound_mut.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/lower_array_len_e2e.array_bound_mut.PreCodegen.after.mir rename to tests/mir-opt/lower_array_len_e2e.array_bound_mut.PreCodegen.after.mir diff --git a/src/test/mir-opt/lower_array_len_e2e.array_len.PreCodegen.after.mir b/tests/mir-opt/lower_array_len_e2e.array_len.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/lower_array_len_e2e.array_len.PreCodegen.after.mir rename to tests/mir-opt/lower_array_len_e2e.array_len.PreCodegen.after.mir diff --git a/src/test/mir-opt/lower_array_len_e2e.array_len_by_value.PreCodegen.after.mir b/tests/mir-opt/lower_array_len_e2e.array_len_by_value.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/lower_array_len_e2e.array_len_by_value.PreCodegen.after.mir rename to tests/mir-opt/lower_array_len_e2e.array_len_by_value.PreCodegen.after.mir diff --git a/src/test/mir-opt/lower_array_len_e2e.rs b/tests/mir-opt/lower_array_len_e2e.rs similarity index 100% rename from src/test/mir-opt/lower_array_len_e2e.rs rename to tests/mir-opt/lower_array_len_e2e.rs diff --git a/src/test/mir-opt/lower_intrinsics.align_of.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.align_of.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.align_of.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.align_of.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.assume.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.assume.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.assume.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.assume.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.discriminant.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.f_copy_nonoverlapping.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.forget.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.forget.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.forget.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.forget.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.non_const.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.non_const.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.non_const.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.non_const.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.rs b/tests/mir-opt/lower_intrinsics.rs similarity index 100% rename from src/test/mir-opt/lower_intrinsics.rs rename to tests/mir-opt/lower_intrinsics.rs diff --git a/src/test/mir-opt/lower_intrinsics.size_of.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.size_of.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.size_of.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.size_of.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics.wrapping.LowerIntrinsics.diff b/tests/mir-opt/lower_intrinsics.wrapping.LowerIntrinsics.diff similarity index 100% rename from src/test/mir-opt/lower_intrinsics.wrapping.LowerIntrinsics.diff rename to tests/mir-opt/lower_intrinsics.wrapping.LowerIntrinsics.diff diff --git a/src/test/mir-opt/lower_intrinsics_e2e.f_u64.PreCodegen.after.mir b/tests/mir-opt/lower_intrinsics_e2e.f_u64.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/lower_intrinsics_e2e.f_u64.PreCodegen.after.mir rename to tests/mir-opt/lower_intrinsics_e2e.f_u64.PreCodegen.after.mir diff --git a/src/test/mir-opt/lower_intrinsics_e2e.f_unit.PreCodegen.after.mir b/tests/mir-opt/lower_intrinsics_e2e.f_unit.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/lower_intrinsics_e2e.f_unit.PreCodegen.after.mir rename to tests/mir-opt/lower_intrinsics_e2e.f_unit.PreCodegen.after.mir diff --git a/src/test/mir-opt/lower_intrinsics_e2e.rs b/tests/mir-opt/lower_intrinsics_e2e.rs similarity index 100% rename from src/test/mir-opt/lower_intrinsics_e2e.rs rename to tests/mir-opt/lower_intrinsics_e2e.rs diff --git a/src/test/mir-opt/lower_slice_len.bound.LowerSliceLenCalls.diff b/tests/mir-opt/lower_slice_len.bound.LowerSliceLenCalls.diff similarity index 100% rename from src/test/mir-opt/lower_slice_len.bound.LowerSliceLenCalls.diff rename to tests/mir-opt/lower_slice_len.bound.LowerSliceLenCalls.diff diff --git a/src/test/mir-opt/lower_slice_len.rs b/tests/mir-opt/lower_slice_len.rs similarity index 100% rename from src/test/mir-opt/lower_slice_len.rs rename to tests/mir-opt/lower_slice_len.rs diff --git a/src/test/mir-opt/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff b/tests/mir-opt/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff similarity index 100% rename from src/test/mir-opt/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff rename to tests/mir-opt/match_arm_scopes.complicated_match.SimplifyCfg-initial.after-ElaborateDrops.after.diff diff --git a/src/test/mir-opt/match_arm_scopes.rs b/tests/mir-opt/match_arm_scopes.rs similarity index 100% rename from src/test/mir-opt/match_arm_scopes.rs rename to tests/mir-opt/match_arm_scopes.rs diff --git a/src/test/mir-opt/match_test.main.SimplifyCfg-initial.after.mir b/tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir similarity index 100% rename from src/test/mir-opt/match_test.main.SimplifyCfg-initial.after.mir rename to tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir diff --git a/src/test/mir-opt/match_test.rs b/tests/mir-opt/match_test.rs similarity index 100% rename from src/test/mir-opt/match_test.rs rename to tests/mir-opt/match_test.rs diff --git a/src/test/mir-opt/matches_reduce_branches.bar.MatchBranchSimplification.diff b/tests/mir-opt/matches_reduce_branches.bar.MatchBranchSimplification.diff similarity index 100% rename from src/test/mir-opt/matches_reduce_branches.bar.MatchBranchSimplification.diff rename to tests/mir-opt/matches_reduce_branches.bar.MatchBranchSimplification.diff diff --git a/src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff b/tests/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff similarity index 100% rename from src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff rename to tests/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff diff --git a/src/test/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff b/tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff similarity index 100% rename from src/test/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff rename to tests/mir-opt/matches_reduce_branches.match_nested_if.MatchBranchSimplification.diff diff --git a/src/test/mir-opt/matches_reduce_branches.rs b/tests/mir-opt/matches_reduce_branches.rs similarity index 100% rename from src/test/mir-opt/matches_reduce_branches.rs rename to tests/mir-opt/matches_reduce_branches.rs diff --git a/src/test/mir-opt/matches_u8.exhaustive_match.MatchBranchSimplification.diff b/tests/mir-opt/matches_u8.exhaustive_match.MatchBranchSimplification.diff similarity index 100% rename from src/test/mir-opt/matches_u8.exhaustive_match.MatchBranchSimplification.diff rename to tests/mir-opt/matches_u8.exhaustive_match.MatchBranchSimplification.diff diff --git a/src/test/mir-opt/matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff b/tests/mir-opt/matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff similarity index 100% rename from src/test/mir-opt/matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff rename to tests/mir-opt/matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff diff --git a/src/test/mir-opt/matches_u8.rs b/tests/mir-opt/matches_u8.rs similarity index 100% rename from src/test/mir-opt/matches_u8.rs rename to tests/mir-opt/matches_u8.rs diff --git a/src/test/mir-opt/multiple_return_terminators.rs b/tests/mir-opt/multiple_return_terminators.rs similarity index 100% rename from src/test/mir-opt/multiple_return_terminators.rs rename to tests/mir-opt/multiple_return_terminators.rs diff --git a/src/test/mir-opt/multiple_return_terminators.test.MultipleReturnTerminators.diff b/tests/mir-opt/multiple_return_terminators.test.MultipleReturnTerminators.diff similarity index 100% rename from src/test/mir-opt/multiple_return_terminators.test.MultipleReturnTerminators.diff rename to tests/mir-opt/multiple_return_terminators.test.MultipleReturnTerminators.diff diff --git a/src/test/mir-opt/nll/named_lifetimes_basic.rs b/tests/mir-opt/nll/named_lifetimes_basic.rs similarity index 100% rename from src/test/mir-opt/nll/named_lifetimes_basic.rs rename to tests/mir-opt/nll/named_lifetimes_basic.rs diff --git a/src/test/mir-opt/nll/named_lifetimes_basic.use_x.nll.0.mir b/tests/mir-opt/nll/named_lifetimes_basic.use_x.nll.0.mir similarity index 100% rename from src/test/mir-opt/nll/named_lifetimes_basic.use_x.nll.0.mir rename to tests/mir-opt/nll/named_lifetimes_basic.use_x.nll.0.mir diff --git a/src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir b/tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir similarity index 100% rename from src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir rename to tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir diff --git a/src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.64bit.mir b/tests/mir-opt/nll/region_subtyping_basic.main.nll.0.64bit.mir similarity index 100% rename from src/test/mir-opt/nll/region_subtyping_basic.main.nll.0.64bit.mir rename to tests/mir-opt/nll/region_subtyping_basic.main.nll.0.64bit.mir diff --git a/src/test/mir-opt/nll/region_subtyping_basic.rs b/tests/mir-opt/nll/region_subtyping_basic.rs similarity index 100% rename from src/test/mir-opt/nll/region_subtyping_basic.rs rename to tests/mir-opt/nll/region_subtyping_basic.rs diff --git a/src/test/mir-opt/no_drop_for_inactive_variant.rs b/tests/mir-opt/no_drop_for_inactive_variant.rs similarity index 100% rename from src/test/mir-opt/no_drop_for_inactive_variant.rs rename to tests/mir-opt/no_drop_for_inactive_variant.rs diff --git a/src/test/mir-opt/no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/no_drop_for_inactive_variant.unwrap.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.mir b/tests/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.mir similarity index 100% rename from src/test/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.mir rename to tests/mir-opt/no_spurious_drop_after_call.main.ElaborateDrops.before.mir diff --git a/src/test/mir-opt/no_spurious_drop_after_call.rs b/tests/mir-opt/no_spurious_drop_after_call.rs similarity index 100% rename from src/test/mir-opt/no_spurious_drop_after_call.rs rename to tests/mir-opt/no_spurious_drop_after_call.rs diff --git a/src/test/mir-opt/not_equal_false.opt.InstCombine.diff b/tests/mir-opt/not_equal_false.opt.InstCombine.diff similarity index 100% rename from src/test/mir-opt/not_equal_false.opt.InstCombine.diff rename to tests/mir-opt/not_equal_false.opt.InstCombine.diff diff --git a/src/test/mir-opt/not_equal_false.rs b/tests/mir-opt/not_equal_false.rs similarity index 100% rename from src/test/mir-opt/not_equal_false.rs rename to tests/mir-opt/not_equal_false.rs diff --git a/src/test/mir-opt/nrvo_simple.nrvo.RenameReturnPlace.diff b/tests/mir-opt/nrvo_simple.nrvo.RenameReturnPlace.diff similarity index 100% rename from src/test/mir-opt/nrvo_simple.nrvo.RenameReturnPlace.diff rename to tests/mir-opt/nrvo_simple.nrvo.RenameReturnPlace.diff diff --git a/src/test/mir-opt/nrvo_simple.rs b/tests/mir-opt/nrvo_simple.rs similarity index 100% rename from src/test/mir-opt/nrvo_simple.rs rename to tests/mir-opt/nrvo_simple.rs diff --git a/src/test/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/packed_struct_drop_aligned.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/packed_struct_drop_aligned.rs b/tests/mir-opt/packed_struct_drop_aligned.rs similarity index 100% rename from src/test/mir-opt/packed_struct_drop_aligned.rs rename to tests/mir-opt/packed_struct_drop_aligned.rs diff --git a/src/test/mir-opt/remove_fake_borrows.match_guard.CleanupPostBorrowck.diff b/tests/mir-opt/remove_fake_borrows.match_guard.CleanupPostBorrowck.diff similarity index 100% rename from src/test/mir-opt/remove_fake_borrows.match_guard.CleanupPostBorrowck.diff rename to tests/mir-opt/remove_fake_borrows.match_guard.CleanupPostBorrowck.diff diff --git a/src/test/mir-opt/remove_fake_borrows.rs b/tests/mir-opt/remove_fake_borrows.rs similarity index 100% rename from src/test/mir-opt/remove_fake_borrows.rs rename to tests/mir-opt/remove_fake_borrows.rs diff --git a/src/test/mir-opt/remove_never_const.no_codegen.PreCodegen.after.mir b/tests/mir-opt/remove_never_const.no_codegen.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/remove_never_const.no_codegen.PreCodegen.after.mir rename to tests/mir-opt/remove_never_const.no_codegen.PreCodegen.after.mir diff --git a/src/test/mir-opt/remove_never_const.rs b/tests/mir-opt/remove_never_const.rs similarity index 88% rename from src/test/mir-opt/remove_never_const.rs rename to tests/mir-opt/remove_never_const.rs index 16095cfdd7dc0..160cc955534c2 100644 --- a/src/test/mir-opt/remove_never_const.rs +++ b/tests/mir-opt/remove_never_const.rs @@ -1,6 +1,6 @@ // This was originally a regression test for #66975 - ensure that we do not generate never typed // consts in codegen. We also have tests for this that catches the error, see -// src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs. +// tests/ui/consts/const-eval/index-out-of-bounds-never-type.rs. // Force generation of optimized mir for functions that do not reach codegen. // compile-flags: --emit mir,link diff --git a/src/test/mir-opt/remove_storage_markers.main.RemoveStorageMarkers.diff b/tests/mir-opt/remove_storage_markers.main.RemoveStorageMarkers.diff similarity index 100% rename from src/test/mir-opt/remove_storage_markers.main.RemoveStorageMarkers.diff rename to tests/mir-opt/remove_storage_markers.main.RemoveStorageMarkers.diff diff --git a/src/test/mir-opt/remove_storage_markers.rs b/tests/mir-opt/remove_storage_markers.rs similarity index 100% rename from src/test/mir-opt/remove_storage_markers.rs rename to tests/mir-opt/remove_storage_markers.rs diff --git a/src/test/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff b/tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff similarity index 100% rename from src/test/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff rename to tests/mir-opt/remove_unneeded_drops.cannot_opt_generic.RemoveUnneededDrops.diff diff --git a/src/test/mir-opt/remove_unneeded_drops.dont_opt.RemoveUnneededDrops.diff b/tests/mir-opt/remove_unneeded_drops.dont_opt.RemoveUnneededDrops.diff similarity index 100% rename from src/test/mir-opt/remove_unneeded_drops.dont_opt.RemoveUnneededDrops.diff rename to tests/mir-opt/remove_unneeded_drops.dont_opt.RemoveUnneededDrops.diff diff --git a/src/test/mir-opt/remove_unneeded_drops.opt.RemoveUnneededDrops.diff b/tests/mir-opt/remove_unneeded_drops.opt.RemoveUnneededDrops.diff similarity index 100% rename from src/test/mir-opt/remove_unneeded_drops.opt.RemoveUnneededDrops.diff rename to tests/mir-opt/remove_unneeded_drops.opt.RemoveUnneededDrops.diff diff --git a/src/test/mir-opt/remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.diff b/tests/mir-opt/remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.diff similarity index 100% rename from src/test/mir-opt/remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.diff rename to tests/mir-opt/remove_unneeded_drops.opt_generic_copy.RemoveUnneededDrops.diff diff --git a/src/test/mir-opt/remove_unneeded_drops.rs b/tests/mir-opt/remove_unneeded_drops.rs similarity index 100% rename from src/test/mir-opt/remove_unneeded_drops.rs rename to tests/mir-opt/remove_unneeded_drops.rs diff --git a/src/test/mir-opt/remove_zsts.get_union.PreCodegen.after.mir b/tests/mir-opt/remove_zsts.get_union.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/remove_zsts.get_union.PreCodegen.after.mir rename to tests/mir-opt/remove_zsts.get_union.PreCodegen.after.mir diff --git a/src/test/mir-opt/remove_zsts.get_union.RemoveZsts.diff b/tests/mir-opt/remove_zsts.get_union.RemoveZsts.diff similarity index 100% rename from src/test/mir-opt/remove_zsts.get_union.RemoveZsts.diff rename to tests/mir-opt/remove_zsts.get_union.RemoveZsts.diff diff --git a/src/test/mir-opt/remove_zsts.rs b/tests/mir-opt/remove_zsts.rs similarity index 100% rename from src/test/mir-opt/remove_zsts.rs rename to tests/mir-opt/remove_zsts.rs diff --git a/src/test/mir-opt/retag.array_casts.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/retag.array_casts.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag.array_casts.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/retag.array_casts.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir b/tests/mir-opt/retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir similarity index 100% rename from src/test/mir-opt/retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir rename to tests/mir-opt/retag.core.ptr-drop_in_place.Test.SimplifyCfg-make_shim.after.mir diff --git a/src/test/mir-opt/retag.main-{closure#0}.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/retag.main-{closure#0}.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag.main-{closure#0}.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/retag.main-{closure#0}.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/retag.main.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag.rs b/tests/mir-opt/retag.rs similarity index 100% rename from src/test/mir-opt/retag.rs rename to tests/mir-opt/retag.rs diff --git a/src/test/mir-opt/retag.{impl#0}-foo.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/retag.{impl#0}-foo.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag.{impl#0}-foo.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/retag.{impl#0}-foo.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/retag.{impl#0}-foo_shr.SimplifyCfg-elaborate-drops.after.mir b/tests/mir-opt/retag.{impl#0}-foo_shr.SimplifyCfg-elaborate-drops.after.mir similarity index 100% rename from src/test/mir-opt/retag.{impl#0}-foo_shr.SimplifyCfg-elaborate-drops.after.mir rename to tests/mir-opt/retag.{impl#0}-foo_shr.SimplifyCfg-elaborate-drops.after.mir diff --git a/src/test/mir-opt/return_an_array.rs b/tests/mir-opt/return_an_array.rs similarity index 100% rename from src/test/mir-opt/return_an_array.rs rename to tests/mir-opt/return_an_array.rs diff --git a/src/test/mir-opt/separate_const_switch.identity.SeparateConstSwitch.diff b/tests/mir-opt/separate_const_switch.identity.SeparateConstSwitch.diff similarity index 100% rename from src/test/mir-opt/separate_const_switch.identity.SeparateConstSwitch.diff rename to tests/mir-opt/separate_const_switch.identity.SeparateConstSwitch.diff diff --git a/src/test/mir-opt/separate_const_switch.rs b/tests/mir-opt/separate_const_switch.rs similarity index 100% rename from src/test/mir-opt/separate_const_switch.rs rename to tests/mir-opt/separate_const_switch.rs diff --git a/src/test/mir-opt/separate_const_switch.too_complex.SeparateConstSwitch.diff b/tests/mir-opt/separate_const_switch.too_complex.SeparateConstSwitch.diff similarity index 100% rename from src/test/mir-opt/separate_const_switch.too_complex.SeparateConstSwitch.diff rename to tests/mir-opt/separate_const_switch.too_complex.SeparateConstSwitch.diff diff --git a/src/test/mir-opt/simple_option_map_e2e.ezmap.PreCodegen.after.mir b/tests/mir-opt/simple_option_map_e2e.ezmap.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/simple_option_map_e2e.ezmap.PreCodegen.after.mir rename to tests/mir-opt/simple_option_map_e2e.ezmap.PreCodegen.after.mir diff --git a/src/test/mir-opt/simple_option_map_e2e.rs b/tests/mir-opt/simple_option_map_e2e.rs similarity index 100% rename from src/test/mir-opt/simple_option_map_e2e.rs rename to tests/mir-opt/simple_option_map_e2e.rs diff --git a/src/test/mir-opt/simplify_arm.id_try.SimplifyArmIdentity.diff b/tests/mir-opt/simplify_arm.id_try.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify_arm.id_try.SimplifyArmIdentity.diff rename to tests/mir-opt/simplify_arm.id_try.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/simplify_arm.id_try.SimplifyBranchSame.diff b/tests/mir-opt/simplify_arm.id_try.SimplifyBranchSame.diff similarity index 100% rename from src/test/mir-opt/simplify_arm.id_try.SimplifyBranchSame.diff rename to tests/mir-opt/simplify_arm.id_try.SimplifyBranchSame.diff diff --git a/src/test/mir-opt/simplify_arm.rs b/tests/mir-opt/simplify_arm.rs similarity index 100% rename from src/test/mir-opt/simplify_arm.rs rename to tests/mir-opt/simplify_arm.rs diff --git a/src/test/mir-opt/simplify_arm_identity.rs b/tests/mir-opt/simplify_arm_identity.rs similarity index 100% rename from src/test/mir-opt/simplify_arm_identity.rs rename to tests/mir-opt/simplify_arm_identity.rs diff --git a/src/test/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff b/tests/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff similarity index 100% rename from src/test/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff rename to tests/mir-opt/simplify_cfg.main.SimplifyCfg-early-opt.diff diff --git a/src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff b/tests/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff similarity index 100% rename from src/test/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff rename to tests/mir-opt/simplify_cfg.main.SimplifyCfg-initial.diff diff --git a/src/test/mir-opt/simplify_cfg.rs b/tests/mir-opt/simplify_cfg.rs similarity index 100% rename from src/test/mir-opt/simplify_cfg.rs rename to tests/mir-opt/simplify_cfg.rs diff --git a/src/test/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.diff b/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.diff rename to tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.diff diff --git a/src/test/mir-opt/simplify_if.rs b/tests/mir-opt/simplify_if.rs similarity index 100% rename from src/test/mir-opt/simplify_if.rs rename to tests/mir-opt/simplify_if.rs diff --git a/src/test/mir-opt/simplify_locals.c.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.c.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.c.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.c.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.d1.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.d1.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.d1.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.d1.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.d2.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.d2.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.d2.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.d2.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.expose_addr.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.expose_addr.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.expose_addr.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.expose_addr.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.r.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.r.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.r.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.r.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.rs b/tests/mir-opt/simplify_locals.rs similarity index 100% rename from src/test/mir-opt/simplify_locals.rs rename to tests/mir-opt/simplify_locals.rs diff --git a/src/test/mir-opt/simplify_locals.t1.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.t1.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.t1.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.t1.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.t2.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.t2.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.t2.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.t2.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.t3.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.t3.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.t3.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.t3.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals.t4.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals.t4.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals.t4.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals.t4.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.diff b/tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.diff similarity index 100% rename from src/test/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.diff rename to tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.diff diff --git a/src/test/mir-opt/simplify_locals_fixedpoint.rs b/tests/mir-opt/simplify_locals_fixedpoint.rs similarity index 100% rename from src/test/mir-opt/simplify_locals_fixedpoint.rs rename to tests/mir-opt/simplify_locals_fixedpoint.rs diff --git a/src/test/mir-opt/simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals_removes_unused_consts.main.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals_removes_unused_consts.rs b/tests/mir-opt/simplify_locals_removes_unused_consts.rs similarity index 100% rename from src/test/mir-opt/simplify_locals_removes_unused_consts.rs rename to tests/mir-opt/simplify_locals_removes_unused_consts.rs diff --git a/src/test/mir-opt/simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff b/tests/mir-opt/simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff similarity index 100% rename from src/test/mir-opt/simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff rename to tests/mir-opt/simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff diff --git a/src/test/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs b/tests/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs similarity index 100% rename from src/test/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs rename to tests/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs diff --git a/src/test/mir-opt/simplify_match.main.ConstProp.diff b/tests/mir-opt/simplify_match.main.ConstProp.diff similarity index 100% rename from src/test/mir-opt/simplify_match.main.ConstProp.diff rename to tests/mir-opt/simplify_match.main.ConstProp.diff diff --git a/src/test/mir-opt/simplify_match.rs b/tests/mir-opt/simplify_match.rs similarity index 100% rename from src/test/mir-opt/simplify_match.rs rename to tests/mir-opt/simplify_match.rs diff --git a/src/test/mir-opt/simplify_try_if_let.rs b/tests/mir-opt/simplify_try_if_let.rs similarity index 100% rename from src/test/mir-opt/simplify_try_if_let.rs rename to tests/mir-opt/simplify_try_if_let.rs diff --git a/src/test/mir-opt/simplify_try_if_let.{impl#0}-append.SimplifyArmIdentity.diff b/tests/mir-opt/simplify_try_if_let.{impl#0}-append.SimplifyArmIdentity.diff similarity index 100% rename from src/test/mir-opt/simplify_try_if_let.{impl#0}-append.SimplifyArmIdentity.diff rename to tests/mir-opt/simplify_try_if_let.{impl#0}-append.SimplifyArmIdentity.diff diff --git a/src/test/mir-opt/slice_drop_shim.core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir b/tests/mir-opt/slice_drop_shim.core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir similarity index 100% rename from src/test/mir-opt/slice_drop_shim.core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir rename to tests/mir-opt/slice_drop_shim.core.ptr-drop_in_place.[String].AddMovesForPackedDrops.before.mir diff --git a/src/test/mir-opt/slice_drop_shim.rs b/tests/mir-opt/slice_drop_shim.rs similarity index 100% rename from src/test/mir-opt/slice_drop_shim.rs rename to tests/mir-opt/slice_drop_shim.rs diff --git a/src/test/mir-opt/spanview_block.main.built.after.html b/tests/mir-opt/spanview_block.main.built.after.html similarity index 100% rename from src/test/mir-opt/spanview_block.main.built.after.html rename to tests/mir-opt/spanview_block.main.built.after.html diff --git a/src/test/mir-opt/spanview_block.rs b/tests/mir-opt/spanview_block.rs similarity index 100% rename from src/test/mir-opt/spanview_block.rs rename to tests/mir-opt/spanview_block.rs diff --git a/src/test/mir-opt/spanview_statement.main.built.after.html b/tests/mir-opt/spanview_statement.main.built.after.html similarity index 100% rename from src/test/mir-opt/spanview_statement.main.built.after.html rename to tests/mir-opt/spanview_statement.main.built.after.html diff --git a/src/test/mir-opt/spanview_statement.rs b/tests/mir-opt/spanview_statement.rs similarity index 100% rename from src/test/mir-opt/spanview_statement.rs rename to tests/mir-opt/spanview_statement.rs diff --git a/src/test/mir-opt/spanview_terminator.main.built.after.html b/tests/mir-opt/spanview_terminator.main.built.after.html similarity index 100% rename from src/test/mir-opt/spanview_terminator.main.built.after.html rename to tests/mir-opt/spanview_terminator.main.built.after.html diff --git a/src/test/mir-opt/spanview_terminator.rs b/tests/mir-opt/spanview_terminator.rs similarity index 100% rename from src/test/mir-opt/spanview_terminator.rs rename to tests/mir-opt/spanview_terminator.rs diff --git a/src/test/mir-opt/sroa.dropping.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa.dropping.ScalarReplacementOfAggregates.diff similarity index 100% rename from src/test/mir-opt/sroa.dropping.ScalarReplacementOfAggregates.diff rename to tests/mir-opt/sroa.dropping.ScalarReplacementOfAggregates.diff diff --git a/src/test/mir-opt/sroa.enums.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa.enums.ScalarReplacementOfAggregates.diff similarity index 100% rename from src/test/mir-opt/sroa.enums.ScalarReplacementOfAggregates.diff rename to tests/mir-opt/sroa.enums.ScalarReplacementOfAggregates.diff diff --git a/src/test/mir-opt/sroa.escaping.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa.escaping.ScalarReplacementOfAggregates.diff similarity index 100% rename from src/test/mir-opt/sroa.escaping.ScalarReplacementOfAggregates.diff rename to tests/mir-opt/sroa.escaping.ScalarReplacementOfAggregates.diff diff --git a/src/test/mir-opt/sroa.flat.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa.flat.ScalarReplacementOfAggregates.diff similarity index 100% rename from src/test/mir-opt/sroa.flat.ScalarReplacementOfAggregates.diff rename to tests/mir-opt/sroa.flat.ScalarReplacementOfAggregates.diff diff --git a/src/test/mir-opt/sroa.rs b/tests/mir-opt/sroa.rs similarity index 100% rename from src/test/mir-opt/sroa.rs rename to tests/mir-opt/sroa.rs diff --git a/src/test/mir-opt/sroa.structs.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa.structs.ScalarReplacementOfAggregates.diff similarity index 100% rename from src/test/mir-opt/sroa.structs.ScalarReplacementOfAggregates.diff rename to tests/mir-opt/sroa.structs.ScalarReplacementOfAggregates.diff diff --git a/src/test/mir-opt/sroa.unions.ScalarReplacementOfAggregates.diff b/tests/mir-opt/sroa.unions.ScalarReplacementOfAggregates.diff similarity index 100% rename from src/test/mir-opt/sroa.unions.ScalarReplacementOfAggregates.diff rename to tests/mir-opt/sroa.unions.ScalarReplacementOfAggregates.diff diff --git a/src/test/mir-opt/storage_ranges.main.nll.0.mir b/tests/mir-opt/storage_ranges.main.nll.0.mir similarity index 100% rename from src/test/mir-opt/storage_ranges.main.nll.0.mir rename to tests/mir-opt/storage_ranges.main.nll.0.mir diff --git a/src/test/mir-opt/storage_ranges.rs b/tests/mir-opt/storage_ranges.rs similarity index 100% rename from src/test/mir-opt/storage_ranges.rs rename to tests/mir-opt/storage_ranges.rs diff --git a/src/test/mir-opt/tls_access.main.PreCodegen.after.mir b/tests/mir-opt/tls_access.main.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/tls_access.main.PreCodegen.after.mir rename to tests/mir-opt/tls_access.main.PreCodegen.after.mir diff --git a/src/test/mir-opt/tls_access.rs b/tests/mir-opt/tls_access.rs similarity index 100% rename from src/test/mir-opt/tls_access.rs rename to tests/mir-opt/tls_access.rs diff --git a/src/test/mir-opt/try_identity_e2e.new.PreCodegen.after.mir b/tests/mir-opt/try_identity_e2e.new.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/try_identity_e2e.new.PreCodegen.after.mir rename to tests/mir-opt/try_identity_e2e.new.PreCodegen.after.mir diff --git a/src/test/mir-opt/try_identity_e2e.old.PreCodegen.after.mir b/tests/mir-opt/try_identity_e2e.old.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/try_identity_e2e.old.PreCodegen.after.mir rename to tests/mir-opt/try_identity_e2e.old.PreCodegen.after.mir diff --git a/src/test/mir-opt/try_identity_e2e.rs b/tests/mir-opt/try_identity_e2e.rs similarity index 100% rename from src/test/mir-opt/try_identity_e2e.rs rename to tests/mir-opt/try_identity_e2e.rs diff --git a/src/test/mir-opt/uninhabited_enum.process_never.SimplifyLocals-final.after.mir b/tests/mir-opt/uninhabited_enum.process_never.SimplifyLocals-final.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited_enum.process_never.SimplifyLocals-final.after.mir rename to tests/mir-opt/uninhabited_enum.process_never.SimplifyLocals-final.after.mir diff --git a/src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals-final.after.mir b/tests/mir-opt/uninhabited_enum.process_void.SimplifyLocals-final.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited_enum.process_void.SimplifyLocals-final.after.mir rename to tests/mir-opt/uninhabited_enum.process_void.SimplifyLocals-final.after.mir diff --git a/src/test/mir-opt/uninhabited_enum.rs b/tests/mir-opt/uninhabited_enum.rs similarity index 100% rename from src/test/mir-opt/uninhabited_enum.rs rename to tests/mir-opt/uninhabited_enum.rs diff --git a/src/test/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir b/tests/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir rename to tests/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir diff --git a/src/test/mir-opt/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff b/tests/mir-opt/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff rename to tests/mir-opt/uninhabited_enum_branching.main.UninhabitedEnumBranching.diff diff --git a/src/test/mir-opt/uninhabited_enum_branching.rs b/tests/mir-opt/uninhabited_enum_branching.rs similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching.rs rename to tests/mir-opt/uninhabited_enum_branching.rs diff --git a/src/test/mir-opt/uninhabited_enum_branching2.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir b/tests/mir-opt/uninhabited_enum_branching2.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching2.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir rename to tests/mir-opt/uninhabited_enum_branching2.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir diff --git a/src/test/mir-opt/uninhabited_enum_branching2.main.UninhabitedEnumBranching.diff b/tests/mir-opt/uninhabited_enum_branching2.main.UninhabitedEnumBranching.diff similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching2.main.UninhabitedEnumBranching.diff rename to tests/mir-opt/uninhabited_enum_branching2.main.UninhabitedEnumBranching.diff diff --git a/src/test/mir-opt/uninhabited_enum_branching2.rs b/tests/mir-opt/uninhabited_enum_branching2.rs similarity index 100% rename from src/test/mir-opt/uninhabited_enum_branching2.rs rename to tests/mir-opt/uninhabited_enum_branching2.rs diff --git a/src/test/mir-opt/uninhabited_fallthrough_elimination.eliminate_fallthrough.UninhabitedEnumBranching.diff b/tests/mir-opt/uninhabited_fallthrough_elimination.eliminate_fallthrough.UninhabitedEnumBranching.diff similarity index 100% rename from src/test/mir-opt/uninhabited_fallthrough_elimination.eliminate_fallthrough.UninhabitedEnumBranching.diff rename to tests/mir-opt/uninhabited_fallthrough_elimination.eliminate_fallthrough.UninhabitedEnumBranching.diff diff --git a/src/test/mir-opt/uninhabited_fallthrough_elimination.keep_fallthrough.UninhabitedEnumBranching.diff b/tests/mir-opt/uninhabited_fallthrough_elimination.keep_fallthrough.UninhabitedEnumBranching.diff similarity index 100% rename from src/test/mir-opt/uninhabited_fallthrough_elimination.keep_fallthrough.UninhabitedEnumBranching.diff rename to tests/mir-opt/uninhabited_fallthrough_elimination.keep_fallthrough.UninhabitedEnumBranching.diff diff --git a/src/test/mir-opt/uninhabited_fallthrough_elimination.rs b/tests/mir-opt/uninhabited_fallthrough_elimination.rs similarity index 100% rename from src/test/mir-opt/uninhabited_fallthrough_elimination.rs rename to tests/mir-opt/uninhabited_fallthrough_elimination.rs diff --git a/src/test/mir-opt/unreachable.main.UnreachablePropagation.diff b/tests/mir-opt/unreachable.main.UnreachablePropagation.diff similarity index 100% rename from src/test/mir-opt/unreachable.main.UnreachablePropagation.diff rename to tests/mir-opt/unreachable.main.UnreachablePropagation.diff diff --git a/src/test/mir-opt/unreachable.rs b/tests/mir-opt/unreachable.rs similarity index 100% rename from src/test/mir-opt/unreachable.rs rename to tests/mir-opt/unreachable.rs diff --git a/src/test/mir-opt/unreachable_diverging.main.UnreachablePropagation.diff b/tests/mir-opt/unreachable_diverging.main.UnreachablePropagation.diff similarity index 100% rename from src/test/mir-opt/unreachable_diverging.main.UnreachablePropagation.diff rename to tests/mir-opt/unreachable_diverging.main.UnreachablePropagation.diff diff --git a/src/test/mir-opt/unreachable_diverging.rs b/tests/mir-opt/unreachable_diverging.rs similarity index 100% rename from src/test/mir-opt/unreachable_diverging.rs rename to tests/mir-opt/unreachable_diverging.rs diff --git a/src/test/mir-opt/unusual_item_types.E-V-{constant#0}.built.after.mir b/tests/mir-opt/unusual_item_types.E-V-{constant#0}.built.after.mir similarity index 100% rename from src/test/mir-opt/unusual_item_types.E-V-{constant#0}.built.after.mir rename to tests/mir-opt/unusual_item_types.E-V-{constant#0}.built.after.mir diff --git a/src/test/mir-opt/unusual_item_types.Test-X-{constructor#0}.built.after.mir b/tests/mir-opt/unusual_item_types.Test-X-{constructor#0}.built.after.mir similarity index 100% rename from src/test/mir-opt/unusual_item_types.Test-X-{constructor#0}.built.after.mir rename to tests/mir-opt/unusual_item_types.Test-X-{constructor#0}.built.after.mir diff --git a/src/test/mir-opt/unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir b/tests/mir-opt/unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir similarity index 100% rename from src/test/mir-opt/unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir rename to tests/mir-opt/unusual_item_types.core.ptr-drop_in_place.Vec_i32_.AddMovesForPackedDrops.before.mir diff --git a/src/test/mir-opt/unusual_item_types.rs b/tests/mir-opt/unusual_item_types.rs similarity index 100% rename from src/test/mir-opt/unusual_item_types.rs rename to tests/mir-opt/unusual_item_types.rs diff --git a/src/test/mir-opt/unusual_item_types.{impl#0}-ASSOCIATED_CONSTANT.built.after.mir b/tests/mir-opt/unusual_item_types.{impl#0}-ASSOCIATED_CONSTANT.built.after.mir similarity index 100% rename from src/test/mir-opt/unusual_item_types.{impl#0}-ASSOCIATED_CONSTANT.built.after.mir rename to tests/mir-opt/unusual_item_types.{impl#0}-ASSOCIATED_CONSTANT.built.after.mir diff --git a/src/test/mir-opt/while_let_loops.change_loop_body.ConstProp.diff b/tests/mir-opt/while_let_loops.change_loop_body.ConstProp.diff similarity index 100% rename from src/test/mir-opt/while_let_loops.change_loop_body.ConstProp.diff rename to tests/mir-opt/while_let_loops.change_loop_body.ConstProp.diff diff --git a/src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir b/tests/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir rename to tests/mir-opt/while_let_loops.change_loop_body.PreCodegen.after.mir diff --git a/src/test/mir-opt/while_let_loops.rs b/tests/mir-opt/while_let_loops.rs similarity index 100% rename from src/test/mir-opt/while_let_loops.rs rename to tests/mir-opt/while_let_loops.rs diff --git a/src/test/mir-opt/while_storage.rs b/tests/mir-opt/while_storage.rs similarity index 100% rename from src/test/mir-opt/while_storage.rs rename to tests/mir-opt/while_storage.rs diff --git a/src/test/mir-opt/while_storage.while_loop.PreCodegen.after.mir b/tests/mir-opt/while_storage.while_loop.PreCodegen.after.mir similarity index 100% rename from src/test/mir-opt/while_storage.while_loop.PreCodegen.after.mir rename to tests/mir-opt/while_storage.while_loop.PreCodegen.after.mir diff --git a/src/test/pretty/asm.pp b/tests/pretty/asm.pp similarity index 100% rename from src/test/pretty/asm.pp rename to tests/pretty/asm.pp diff --git a/src/test/pretty/asm.rs b/tests/pretty/asm.rs similarity index 100% rename from src/test/pretty/asm.rs rename to tests/pretty/asm.rs diff --git a/src/test/pretty/ast-stmt-expr-attr.rs b/tests/pretty/ast-stmt-expr-attr.rs similarity index 100% rename from src/test/pretty/ast-stmt-expr-attr.rs rename to tests/pretty/ast-stmt-expr-attr.rs diff --git a/src/test/pretty/async.rs b/tests/pretty/async.rs similarity index 100% rename from src/test/pretty/async.rs rename to tests/pretty/async.rs diff --git a/src/test/pretty/attr-derive.rs b/tests/pretty/attr-derive.rs similarity index 100% rename from src/test/pretty/attr-derive.rs rename to tests/pretty/attr-derive.rs diff --git a/src/test/pretty/attr-fn-inner.rs b/tests/pretty/attr-fn-inner.rs similarity index 100% rename from src/test/pretty/attr-fn-inner.rs rename to tests/pretty/attr-fn-inner.rs diff --git a/src/test/pretty/attr-literals.rs b/tests/pretty/attr-literals.rs similarity index 100% rename from src/test/pretty/attr-literals.rs rename to tests/pretty/attr-literals.rs diff --git a/src/test/pretty/attr-tokens-raw-ident.rs b/tests/pretty/attr-tokens-raw-ident.rs similarity index 100% rename from src/test/pretty/attr-tokens-raw-ident.rs rename to tests/pretty/attr-tokens-raw-ident.rs diff --git a/src/test/pretty/auto-trait.rs b/tests/pretty/auto-trait.rs similarity index 100% rename from src/test/pretty/auto-trait.rs rename to tests/pretty/auto-trait.rs diff --git a/src/test/pretty/auxiliary/derive-foo.rs b/tests/pretty/auxiliary/derive-foo.rs similarity index 100% rename from src/test/pretty/auxiliary/derive-foo.rs rename to tests/pretty/auxiliary/derive-foo.rs diff --git a/src/test/pretty/blank-lines.rs b/tests/pretty/blank-lines.rs similarity index 100% rename from src/test/pretty/blank-lines.rs rename to tests/pretty/blank-lines.rs diff --git a/src/test/pretty/block-comment-multiple-asterisks.rs b/tests/pretty/block-comment-multiple-asterisks.rs similarity index 100% rename from src/test/pretty/block-comment-multiple-asterisks.rs rename to tests/pretty/block-comment-multiple-asterisks.rs diff --git a/src/test/pretty/block-comment-trailing-whitespace.rs b/tests/pretty/block-comment-trailing-whitespace.rs similarity index 100% rename from src/test/pretty/block-comment-trailing-whitespace.rs rename to tests/pretty/block-comment-trailing-whitespace.rs diff --git a/src/test/pretty/block-comment-trailing-whitespace2.rs b/tests/pretty/block-comment-trailing-whitespace2.rs similarity index 100% rename from src/test/pretty/block-comment-trailing-whitespace2.rs rename to tests/pretty/block-comment-trailing-whitespace2.rs diff --git a/src/test/pretty/block-comment-wchar.pp b/tests/pretty/block-comment-wchar.pp similarity index 97% rename from src/test/pretty/block-comment-wchar.pp rename to tests/pretty/block-comment-wchar.pp index 8c8580b07c218..9d64fb4156ca1 100644 --- a/src/test/pretty/block-comment-wchar.pp +++ b/tests/pretty/block-comment-wchar.pp @@ -1,6 +1,6 @@ // This is meant as a test case for Issue 3961. // -// Test via: rustc -Zunpretty normal src/test/pretty/block-comment-wchar.rs +// Test via: rustc -Zunpretty normal tests/pretty/block-comment-wchar.rs // ignore-tidy-cr // ignore-tidy-tab // pp-exact:block-comment-wchar.pp diff --git a/src/test/pretty/block-comment-wchar.rs b/tests/pretty/block-comment-wchar.rs similarity index 97% rename from src/test/pretty/block-comment-wchar.rs rename to tests/pretty/block-comment-wchar.rs index e0606e49752c9..c042ea6859009 100644 --- a/src/test/pretty/block-comment-wchar.rs +++ b/tests/pretty/block-comment-wchar.rs @@ -1,6 +1,6 @@ // This is meant as a test case for Issue 3961. // -// Test via: rustc -Zunpretty normal src/test/pretty/block-comment-wchar.rs +// Test via: rustc -Zunpretty normal tests/pretty/block-comment-wchar.rs // ignore-tidy-cr // ignore-tidy-tab // pp-exact:block-comment-wchar.pp diff --git a/src/test/pretty/block-disambig.rs b/tests/pretty/block-disambig.rs similarity index 100% rename from src/test/pretty/block-disambig.rs rename to tests/pretty/block-disambig.rs diff --git a/src/test/pretty/cast-lt.pp b/tests/pretty/cast-lt.pp similarity index 100% rename from src/test/pretty/cast-lt.pp rename to tests/pretty/cast-lt.pp diff --git a/src/test/pretty/cast-lt.rs b/tests/pretty/cast-lt.rs similarity index 100% rename from src/test/pretty/cast-lt.rs rename to tests/pretty/cast-lt.rs diff --git a/src/test/pretty/closure-reform-pretty.rs b/tests/pretty/closure-reform-pretty.rs similarity index 100% rename from src/test/pretty/closure-reform-pretty.rs rename to tests/pretty/closure-reform-pretty.rs diff --git a/src/test/pretty/delimited-token-groups.rs b/tests/pretty/delimited-token-groups.rs similarity index 100% rename from src/test/pretty/delimited-token-groups.rs rename to tests/pretty/delimited-token-groups.rs diff --git a/src/test/pretty/disamb-stmt-expr.rs b/tests/pretty/disamb-stmt-expr.rs similarity index 100% rename from src/test/pretty/disamb-stmt-expr.rs rename to tests/pretty/disamb-stmt-expr.rs diff --git a/src/test/pretty/do1.rs b/tests/pretty/do1.rs similarity index 100% rename from src/test/pretty/do1.rs rename to tests/pretty/do1.rs diff --git a/src/test/pretty/doc-comments.rs b/tests/pretty/doc-comments.rs similarity index 100% rename from src/test/pretty/doc-comments.rs rename to tests/pretty/doc-comments.rs diff --git a/src/test/pretty/dollar-crate.pp b/tests/pretty/dollar-crate.pp similarity index 100% rename from src/test/pretty/dollar-crate.pp rename to tests/pretty/dollar-crate.pp diff --git a/src/test/pretty/dollar-crate.rs b/tests/pretty/dollar-crate.rs similarity index 100% rename from src/test/pretty/dollar-crate.rs rename to tests/pretty/dollar-crate.rs diff --git a/src/test/pretty/empty-impl.rs b/tests/pretty/empty-impl.rs similarity index 100% rename from src/test/pretty/empty-impl.rs rename to tests/pretty/empty-impl.rs diff --git a/src/test/pretty/empty-lines.rs b/tests/pretty/empty-lines.rs similarity index 100% rename from src/test/pretty/empty-lines.rs rename to tests/pretty/empty-lines.rs diff --git a/src/test/pretty/enum-variant-vis.rs b/tests/pretty/enum-variant-vis.rs similarity index 100% rename from src/test/pretty/enum-variant-vis.rs rename to tests/pretty/enum-variant-vis.rs diff --git a/src/test/pretty/example1.rs b/tests/pretty/example1.rs similarity index 100% rename from src/test/pretty/example1.rs rename to tests/pretty/example1.rs diff --git a/src/test/pretty/example2.pp b/tests/pretty/example2.pp similarity index 100% rename from src/test/pretty/example2.pp rename to tests/pretty/example2.pp diff --git a/src/test/pretty/example2.rs b/tests/pretty/example2.rs similarity index 100% rename from src/test/pretty/example2.rs rename to tests/pretty/example2.rs diff --git a/src/test/pretty/expanded-and-path-remap-80832.pp b/tests/pretty/expanded-and-path-remap-80832.pp similarity index 100% rename from src/test/pretty/expanded-and-path-remap-80832.pp rename to tests/pretty/expanded-and-path-remap-80832.pp diff --git a/src/test/pretty/expanded-and-path-remap-80832.rs b/tests/pretty/expanded-and-path-remap-80832.rs similarity index 100% rename from src/test/pretty/expanded-and-path-remap-80832.rs rename to tests/pretty/expanded-and-path-remap-80832.rs diff --git a/src/test/pretty/fn-return.rs b/tests/pretty/fn-return.rs similarity index 100% rename from src/test/pretty/fn-return.rs rename to tests/pretty/fn-return.rs diff --git a/src/test/pretty/fn-types.rs b/tests/pretty/fn-types.rs similarity index 100% rename from src/test/pretty/fn-types.rs rename to tests/pretty/fn-types.rs diff --git a/src/test/pretty/fn-variadic.rs b/tests/pretty/fn-variadic.rs similarity index 100% rename from src/test/pretty/fn-variadic.rs rename to tests/pretty/fn-variadic.rs diff --git a/src/test/pretty/for-comment.rs b/tests/pretty/for-comment.rs similarity index 100% rename from src/test/pretty/for-comment.rs rename to tests/pretty/for-comment.rs diff --git a/src/test/pretty/gat-bounds.rs b/tests/pretty/gat-bounds.rs similarity index 100% rename from src/test/pretty/gat-bounds.rs rename to tests/pretty/gat-bounds.rs diff --git a/src/test/pretty/hir-pretty-loop.pp b/tests/pretty/hir-pretty-loop.pp similarity index 100% rename from src/test/pretty/hir-pretty-loop.pp rename to tests/pretty/hir-pretty-loop.pp diff --git a/src/test/pretty/hir-pretty-loop.rs b/tests/pretty/hir-pretty-loop.rs similarity index 100% rename from src/test/pretty/hir-pretty-loop.rs rename to tests/pretty/hir-pretty-loop.rs diff --git a/src/test/pretty/if-attr.rs b/tests/pretty/if-attr.rs similarity index 100% rename from src/test/pretty/if-attr.rs rename to tests/pretty/if-attr.rs diff --git a/src/test/pretty/import-renames.rs b/tests/pretty/import-renames.rs similarity index 100% rename from src/test/pretty/import-renames.rs rename to tests/pretty/import-renames.rs diff --git a/src/test/pretty/issue-12590-a.rs b/tests/pretty/issue-12590-a.rs similarity index 100% rename from src/test/pretty/issue-12590-a.rs rename to tests/pretty/issue-12590-a.rs diff --git a/src/test/pretty/issue-12590-b.rs b/tests/pretty/issue-12590-b.rs similarity index 100% rename from src/test/pretty/issue-12590-b.rs rename to tests/pretty/issue-12590-b.rs diff --git a/src/test/pretty/issue-12590-c.pp b/tests/pretty/issue-12590-c.pp similarity index 100% rename from src/test/pretty/issue-12590-c.pp rename to tests/pretty/issue-12590-c.pp diff --git a/src/test/pretty/issue-12590-c.rs b/tests/pretty/issue-12590-c.rs similarity index 100% rename from src/test/pretty/issue-12590-c.rs rename to tests/pretty/issue-12590-c.rs diff --git a/src/test/pretty/issue-19077.rs b/tests/pretty/issue-19077.rs similarity index 100% rename from src/test/pretty/issue-19077.rs rename to tests/pretty/issue-19077.rs diff --git a/src/test/pretty/issue-25031.rs b/tests/pretty/issue-25031.rs similarity index 100% rename from src/test/pretty/issue-25031.rs rename to tests/pretty/issue-25031.rs diff --git a/src/test/pretty/issue-30731.rs b/tests/pretty/issue-30731.rs similarity index 100% rename from src/test/pretty/issue-30731.rs rename to tests/pretty/issue-30731.rs diff --git a/src/test/pretty/issue-31073.pp b/tests/pretty/issue-31073.pp similarity index 100% rename from src/test/pretty/issue-31073.pp rename to tests/pretty/issue-31073.pp diff --git a/src/test/pretty/issue-31073.rs b/tests/pretty/issue-31073.rs similarity index 100% rename from src/test/pretty/issue-31073.rs rename to tests/pretty/issue-31073.rs diff --git a/src/test/pretty/issue-4264.pp b/tests/pretty/issue-4264.pp similarity index 100% rename from src/test/pretty/issue-4264.pp rename to tests/pretty/issue-4264.pp diff --git a/src/test/pretty/issue-4264.rs b/tests/pretty/issue-4264.rs similarity index 100% rename from src/test/pretty/issue-4264.rs rename to tests/pretty/issue-4264.rs diff --git a/src/test/pretty/issue-68710-field-attr-proc-mac-lost.rs b/tests/pretty/issue-68710-field-attr-proc-mac-lost.rs similarity index 100% rename from src/test/pretty/issue-68710-field-attr-proc-mac-lost.rs rename to tests/pretty/issue-68710-field-attr-proc-mac-lost.rs diff --git a/src/test/pretty/issue-73626.rs b/tests/pretty/issue-73626.rs similarity index 100% rename from src/test/pretty/issue-73626.rs rename to tests/pretty/issue-73626.rs diff --git a/src/test/pretty/issue-74745.rs b/tests/pretty/issue-74745.rs similarity index 100% rename from src/test/pretty/issue-74745.rs rename to tests/pretty/issue-74745.rs diff --git a/src/test/pretty/issue-85089.pp b/tests/pretty/issue-85089.pp similarity index 100% rename from src/test/pretty/issue-85089.pp rename to tests/pretty/issue-85089.pp diff --git a/src/test/pretty/issue-85089.rs b/tests/pretty/issue-85089.rs similarity index 100% rename from src/test/pretty/issue-85089.rs rename to tests/pretty/issue-85089.rs diff --git a/src/test/pretty/let.rs b/tests/pretty/let.rs similarity index 100% rename from src/test/pretty/let.rs rename to tests/pretty/let.rs diff --git a/src/test/pretty/lifetime.rs b/tests/pretty/lifetime.rs similarity index 100% rename from src/test/pretty/lifetime.rs rename to tests/pretty/lifetime.rs diff --git a/src/test/pretty/macro.rs b/tests/pretty/macro.rs similarity index 100% rename from src/test/pretty/macro.rs rename to tests/pretty/macro.rs diff --git a/src/test/pretty/macro_rules.rs b/tests/pretty/macro_rules.rs similarity index 100% rename from src/test/pretty/macro_rules.rs rename to tests/pretty/macro_rules.rs diff --git a/src/test/pretty/match-block-expr.rs b/tests/pretty/match-block-expr.rs similarity index 100% rename from src/test/pretty/match-block-expr.rs rename to tests/pretty/match-block-expr.rs diff --git a/src/test/pretty/match-naked-expr-medium.rs b/tests/pretty/match-naked-expr-medium.rs similarity index 100% rename from src/test/pretty/match-naked-expr-medium.rs rename to tests/pretty/match-naked-expr-medium.rs diff --git a/src/test/pretty/match-naked-expr.rs b/tests/pretty/match-naked-expr.rs similarity index 100% rename from src/test/pretty/match-naked-expr.rs rename to tests/pretty/match-naked-expr.rs diff --git a/src/test/pretty/nested-item-vis-defaultness.rs b/tests/pretty/nested-item-vis-defaultness.rs similarity index 100% rename from src/test/pretty/nested-item-vis-defaultness.rs rename to tests/pretty/nested-item-vis-defaultness.rs diff --git a/src/test/pretty/path-type-bounds.rs b/tests/pretty/path-type-bounds.rs similarity index 100% rename from src/test/pretty/path-type-bounds.rs rename to tests/pretty/path-type-bounds.rs diff --git a/src/test/pretty/qpath-associated-type-bound.rs b/tests/pretty/qpath-associated-type-bound.rs similarity index 100% rename from src/test/pretty/qpath-associated-type-bound.rs rename to tests/pretty/qpath-associated-type-bound.rs diff --git a/src/test/pretty/raw-address-of.rs b/tests/pretty/raw-address-of.rs similarity index 100% rename from src/test/pretty/raw-address-of.rs rename to tests/pretty/raw-address-of.rs diff --git a/src/test/pretty/raw-str-nonexpr.rs b/tests/pretty/raw-str-nonexpr.rs similarity index 100% rename from src/test/pretty/raw-str-nonexpr.rs rename to tests/pretty/raw-str-nonexpr.rs diff --git a/src/test/pretty/stmt_expr_attributes.rs b/tests/pretty/stmt_expr_attributes.rs similarity index 100% rename from src/test/pretty/stmt_expr_attributes.rs rename to tests/pretty/stmt_expr_attributes.rs diff --git a/src/test/pretty/struct-pattern.rs b/tests/pretty/struct-pattern.rs similarity index 100% rename from src/test/pretty/struct-pattern.rs rename to tests/pretty/struct-pattern.rs diff --git a/src/test/pretty/struct-tuple.rs b/tests/pretty/struct-tuple.rs similarity index 100% rename from src/test/pretty/struct-tuple.rs rename to tests/pretty/struct-tuple.rs diff --git a/src/test/pretty/tag-blank-lines.rs b/tests/pretty/tag-blank-lines.rs similarity index 100% rename from src/test/pretty/tag-blank-lines.rs rename to tests/pretty/tag-blank-lines.rs diff --git a/src/test/pretty/tests-are-sorted.pp b/tests/pretty/tests-are-sorted.pp similarity index 100% rename from src/test/pretty/tests-are-sorted.pp rename to tests/pretty/tests-are-sorted.pp diff --git a/src/test/pretty/tests-are-sorted.rs b/tests/pretty/tests-are-sorted.rs similarity index 100% rename from src/test/pretty/tests-are-sorted.rs rename to tests/pretty/tests-are-sorted.rs diff --git a/src/test/pretty/top-level-doc-comments.rs b/tests/pretty/top-level-doc-comments.rs similarity index 100% rename from src/test/pretty/top-level-doc-comments.rs rename to tests/pretty/top-level-doc-comments.rs diff --git a/src/test/pretty/trait-inner-attr.rs b/tests/pretty/trait-inner-attr.rs similarity index 100% rename from src/test/pretty/trait-inner-attr.rs rename to tests/pretty/trait-inner-attr.rs diff --git a/src/test/pretty/trait-polarity.rs b/tests/pretty/trait-polarity.rs similarity index 100% rename from src/test/pretty/trait-polarity.rs rename to tests/pretty/trait-polarity.rs diff --git a/src/test/pretty/trait-safety.rs b/tests/pretty/trait-safety.rs similarity index 100% rename from src/test/pretty/trait-safety.rs rename to tests/pretty/trait-safety.rs diff --git a/src/test/pretty/unary-op-disambig.rs b/tests/pretty/unary-op-disambig.rs similarity index 100% rename from src/test/pretty/unary-op-disambig.rs rename to tests/pretty/unary-op-disambig.rs diff --git a/src/test/pretty/use-tree.rs b/tests/pretty/use-tree.rs similarity index 100% rename from src/test/pretty/use-tree.rs rename to tests/pretty/use-tree.rs diff --git a/src/test/pretty/vec-comments.pp b/tests/pretty/vec-comments.pp similarity index 100% rename from src/test/pretty/vec-comments.pp rename to tests/pretty/vec-comments.pp diff --git a/src/test/pretty/vec-comments.rs b/tests/pretty/vec-comments.rs similarity index 100% rename from src/test/pretty/vec-comments.rs rename to tests/pretty/vec-comments.rs diff --git a/src/test/pretty/where-clauses.rs b/tests/pretty/where-clauses.rs similarity index 100% rename from src/test/pretty/where-clauses.rs rename to tests/pretty/where-clauses.rs diff --git a/src/test/pretty/yeet-expr.rs b/tests/pretty/yeet-expr.rs similarity index 100% rename from src/test/pretty/yeet-expr.rs rename to tests/pretty/yeet-expr.rs diff --git a/src/test/run-make-fulldeps/a-b-a-linker-guard/Makefile b/tests/run-make-fulldeps/a-b-a-linker-guard/Makefile similarity index 100% rename from src/test/run-make-fulldeps/a-b-a-linker-guard/Makefile rename to tests/run-make-fulldeps/a-b-a-linker-guard/Makefile diff --git a/src/test/run-make-fulldeps/a-b-a-linker-guard/a.rs b/tests/run-make-fulldeps/a-b-a-linker-guard/a.rs similarity index 100% rename from src/test/run-make-fulldeps/a-b-a-linker-guard/a.rs rename to tests/run-make-fulldeps/a-b-a-linker-guard/a.rs diff --git a/src/test/run-make-fulldeps/a-b-a-linker-guard/b.rs b/tests/run-make-fulldeps/a-b-a-linker-guard/b.rs similarity index 100% rename from src/test/run-make-fulldeps/a-b-a-linker-guard/b.rs rename to tests/run-make-fulldeps/a-b-a-linker-guard/b.rs diff --git a/tests/run-make-fulldeps/alloc-no-oom-handling/Makefile b/tests/run-make-fulldeps/alloc-no-oom-handling/Makefile new file mode 100644 index 0000000000000..87f74c69c7939 --- /dev/null +++ b/tests/run-make-fulldeps/alloc-no-oom-handling/Makefile @@ -0,0 +1,4 @@ +include ../tools.mk + +all: + $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/alloc/src/lib.rs --cfg no_global_oom_handling diff --git a/tests/run-make-fulldeps/alloc-no-rc/Makefile b/tests/run-make-fulldeps/alloc-no-rc/Makefile new file mode 100644 index 0000000000000..9824b17e6c2a7 --- /dev/null +++ b/tests/run-make-fulldeps/alloc-no-rc/Makefile @@ -0,0 +1,4 @@ +include ../tools.mk + +all: + $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/alloc/src/lib.rs --cfg no_rc diff --git a/tests/run-make-fulldeps/alloc-no-sync/Makefile b/tests/run-make-fulldeps/alloc-no-sync/Makefile new file mode 100644 index 0000000000000..04ec4c7d8bc9a --- /dev/null +++ b/tests/run-make-fulldeps/alloc-no-sync/Makefile @@ -0,0 +1,4 @@ +include ../tools.mk + +all: + $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/alloc/src/lib.rs --cfg no_sync diff --git a/src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile b/tests/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile similarity index 100% rename from src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile rename to tests/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile diff --git a/src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/foo.rs b/tests/run-make-fulldeps/allow-non-lint-warnings-cmdline/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/foo.rs rename to tests/run-make-fulldeps/allow-non-lint-warnings-cmdline/foo.rs diff --git a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/Makefile b/tests/run-make-fulldeps/allow-warnings-cmdline-stability/Makefile similarity index 100% rename from src/test/run-make-fulldeps/allow-warnings-cmdline-stability/Makefile rename to tests/run-make-fulldeps/allow-warnings-cmdline-stability/Makefile diff --git a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs b/tests/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs rename to tests/run-make-fulldeps/allow-warnings-cmdline-stability/bar.rs diff --git a/src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs b/tests/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs rename to tests/run-make-fulldeps/allow-warnings-cmdline-stability/foo.rs diff --git a/src/test/run-make-fulldeps/archive-duplicate-names/Makefile b/tests/run-make-fulldeps/archive-duplicate-names/Makefile similarity index 100% rename from src/test/run-make-fulldeps/archive-duplicate-names/Makefile rename to tests/run-make-fulldeps/archive-duplicate-names/Makefile diff --git a/src/test/run-make-fulldeps/archive-duplicate-names/bar.c b/tests/run-make-fulldeps/archive-duplicate-names/bar.c similarity index 100% rename from src/test/run-make-fulldeps/archive-duplicate-names/bar.c rename to tests/run-make-fulldeps/archive-duplicate-names/bar.c diff --git a/src/test/run-make-fulldeps/archive-duplicate-names/bar.rs b/tests/run-make-fulldeps/archive-duplicate-names/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/archive-duplicate-names/bar.rs rename to tests/run-make-fulldeps/archive-duplicate-names/bar.rs diff --git a/src/test/run-make-fulldeps/archive-duplicate-names/foo.c b/tests/run-make-fulldeps/archive-duplicate-names/foo.c similarity index 100% rename from src/test/run-make-fulldeps/archive-duplicate-names/foo.c rename to tests/run-make-fulldeps/archive-duplicate-names/foo.c diff --git a/src/test/run-make-fulldeps/archive-duplicate-names/foo.rs b/tests/run-make-fulldeps/archive-duplicate-names/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/archive-duplicate-names/foo.rs rename to tests/run-make-fulldeps/archive-duplicate-names/foo.rs diff --git a/src/test/run-make-fulldeps/arguments-non-c-like-enum/Makefile b/tests/run-make-fulldeps/arguments-non-c-like-enum/Makefile similarity index 100% rename from src/test/run-make-fulldeps/arguments-non-c-like-enum/Makefile rename to tests/run-make-fulldeps/arguments-non-c-like-enum/Makefile diff --git a/src/test/run-make-fulldeps/arguments-non-c-like-enum/nonclike.rs b/tests/run-make-fulldeps/arguments-non-c-like-enum/nonclike.rs similarity index 100% rename from src/test/run-make-fulldeps/arguments-non-c-like-enum/nonclike.rs rename to tests/run-make-fulldeps/arguments-non-c-like-enum/nonclike.rs diff --git a/src/test/run-make-fulldeps/arguments-non-c-like-enum/test.c b/tests/run-make-fulldeps/arguments-non-c-like-enum/test.c similarity index 100% rename from src/test/run-make-fulldeps/arguments-non-c-like-enum/test.c rename to tests/run-make-fulldeps/arguments-non-c-like-enum/test.c diff --git a/src/test/run-make-fulldeps/atomic-lock-free/Makefile b/tests/run-make-fulldeps/atomic-lock-free/Makefile similarity index 100% rename from src/test/run-make-fulldeps/atomic-lock-free/Makefile rename to tests/run-make-fulldeps/atomic-lock-free/Makefile diff --git a/src/test/run-make-fulldeps/atomic-lock-free/atomic_lock_free.rs b/tests/run-make-fulldeps/atomic-lock-free/atomic_lock_free.rs similarity index 100% rename from src/test/run-make-fulldeps/atomic-lock-free/atomic_lock_free.rs rename to tests/run-make-fulldeps/atomic-lock-free/atomic_lock_free.rs diff --git a/src/test/run-make-fulldeps/bare-outfile/Makefile b/tests/run-make-fulldeps/bare-outfile/Makefile similarity index 100% rename from src/test/run-make-fulldeps/bare-outfile/Makefile rename to tests/run-make-fulldeps/bare-outfile/Makefile diff --git a/src/test/run-make-fulldeps/bare-outfile/foo.rs b/tests/run-make-fulldeps/bare-outfile/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/bare-outfile/foo.rs rename to tests/run-make-fulldeps/bare-outfile/foo.rs diff --git a/src/test/run-make-fulldeps/c-dynamic-dylib/Makefile b/tests/run-make-fulldeps/c-dynamic-dylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-dylib/Makefile rename to tests/run-make-fulldeps/c-dynamic-dylib/Makefile diff --git a/src/test/run-make-fulldeps/c-dynamic-dylib/bar.rs b/tests/run-make-fulldeps/c-dynamic-dylib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-dylib/bar.rs rename to tests/run-make-fulldeps/c-dynamic-dylib/bar.rs diff --git a/src/test/run-make-fulldeps/c-dynamic-dylib/cfoo.c b/tests/run-make-fulldeps/c-dynamic-dylib/cfoo.c similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-dylib/cfoo.c rename to tests/run-make-fulldeps/c-dynamic-dylib/cfoo.c diff --git a/src/test/run-make-fulldeps/c-dynamic-dylib/foo.rs b/tests/run-make-fulldeps/c-dynamic-dylib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-dylib/foo.rs rename to tests/run-make-fulldeps/c-dynamic-dylib/foo.rs diff --git a/src/test/run-make-fulldeps/c-dynamic-rlib/Makefile b/tests/run-make-fulldeps/c-dynamic-rlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-rlib/Makefile rename to tests/run-make-fulldeps/c-dynamic-rlib/Makefile diff --git a/src/test/run-make-fulldeps/c-dynamic-rlib/bar.rs b/tests/run-make-fulldeps/c-dynamic-rlib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-rlib/bar.rs rename to tests/run-make-fulldeps/c-dynamic-rlib/bar.rs diff --git a/src/test/run-make-fulldeps/c-dynamic-rlib/cfoo.c b/tests/run-make-fulldeps/c-dynamic-rlib/cfoo.c similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-rlib/cfoo.c rename to tests/run-make-fulldeps/c-dynamic-rlib/cfoo.c diff --git a/src/test/run-make-fulldeps/c-dynamic-rlib/foo.rs b/tests/run-make-fulldeps/c-dynamic-rlib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/c-dynamic-rlib/foo.rs rename to tests/run-make-fulldeps/c-dynamic-rlib/foo.rs diff --git a/src/test/run-make-fulldeps/c-link-to-rust-dylib/Makefile b/tests/run-make-fulldeps/c-link-to-rust-dylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-dylib/Makefile rename to tests/run-make-fulldeps/c-link-to-rust-dylib/Makefile diff --git a/src/test/run-make-fulldeps/c-link-to-rust-dylib/bar.c b/tests/run-make-fulldeps/c-link-to-rust-dylib/bar.c similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-dylib/bar.c rename to tests/run-make-fulldeps/c-link-to-rust-dylib/bar.c diff --git a/src/test/run-make-fulldeps/c-link-to-rust-dylib/foo.rs b/tests/run-make-fulldeps/c-link-to-rust-dylib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-dylib/foo.rs rename to tests/run-make-fulldeps/c-link-to-rust-dylib/foo.rs diff --git a/src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile b/tests/run-make-fulldeps/c-link-to-rust-staticlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-staticlib/Makefile rename to tests/run-make-fulldeps/c-link-to-rust-staticlib/Makefile diff --git a/src/test/run-make-fulldeps/c-link-to-rust-staticlib/bar.c b/tests/run-make-fulldeps/c-link-to-rust-staticlib/bar.c similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-staticlib/bar.c rename to tests/run-make-fulldeps/c-link-to-rust-staticlib/bar.c diff --git a/src/test/run-make-fulldeps/c-link-to-rust-staticlib/foo.rs b/tests/run-make-fulldeps/c-link-to-rust-staticlib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-staticlib/foo.rs rename to tests/run-make-fulldeps/c-link-to-rust-staticlib/foo.rs diff --git a/src/test/run-make-fulldeps/c-link-to-rust-va-list-fn/Makefile b/tests/run-make-fulldeps/c-link-to-rust-va-list-fn/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-va-list-fn/Makefile rename to tests/run-make-fulldeps/c-link-to-rust-va-list-fn/Makefile diff --git a/src/test/run-make-fulldeps/c-link-to-rust-va-list-fn/checkrust.rs b/tests/run-make-fulldeps/c-link-to-rust-va-list-fn/checkrust.rs similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-va-list-fn/checkrust.rs rename to tests/run-make-fulldeps/c-link-to-rust-va-list-fn/checkrust.rs diff --git a/src/test/run-make-fulldeps/c-link-to-rust-va-list-fn/test.c b/tests/run-make-fulldeps/c-link-to-rust-va-list-fn/test.c similarity index 100% rename from src/test/run-make-fulldeps/c-link-to-rust-va-list-fn/test.c rename to tests/run-make-fulldeps/c-link-to-rust-va-list-fn/test.c diff --git a/src/test/run-make-fulldeps/c-static-dylib/Makefile b/tests/run-make-fulldeps/c-static-dylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-static-dylib/Makefile rename to tests/run-make-fulldeps/c-static-dylib/Makefile diff --git a/src/test/run-make-fulldeps/c-static-dylib/bar.rs b/tests/run-make-fulldeps/c-static-dylib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/c-static-dylib/bar.rs rename to tests/run-make-fulldeps/c-static-dylib/bar.rs diff --git a/src/test/run-make-fulldeps/c-static-dylib/cfoo.c b/tests/run-make-fulldeps/c-static-dylib/cfoo.c similarity index 100% rename from src/test/run-make-fulldeps/c-static-dylib/cfoo.c rename to tests/run-make-fulldeps/c-static-dylib/cfoo.c diff --git a/src/test/run-make-fulldeps/c-static-dylib/foo.rs b/tests/run-make-fulldeps/c-static-dylib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/c-static-dylib/foo.rs rename to tests/run-make-fulldeps/c-static-dylib/foo.rs diff --git a/src/test/run-make-fulldeps/c-static-rlib/Makefile b/tests/run-make-fulldeps/c-static-rlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-static-rlib/Makefile rename to tests/run-make-fulldeps/c-static-rlib/Makefile diff --git a/src/test/run-make-fulldeps/c-static-rlib/bar.rs b/tests/run-make-fulldeps/c-static-rlib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/c-static-rlib/bar.rs rename to tests/run-make-fulldeps/c-static-rlib/bar.rs diff --git a/src/test/run-make-fulldeps/c-static-rlib/cfoo.c b/tests/run-make-fulldeps/c-static-rlib/cfoo.c similarity index 100% rename from src/test/run-make-fulldeps/c-static-rlib/cfoo.c rename to tests/run-make-fulldeps/c-static-rlib/cfoo.c diff --git a/src/test/run-make-fulldeps/c-static-rlib/foo.rs b/tests/run-make-fulldeps/c-static-rlib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/c-static-rlib/foo.rs rename to tests/run-make-fulldeps/c-static-rlib/foo.rs diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/Makefile b/tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/Makefile rename to tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/Makefile diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/add.c b/tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/add.c similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/add.c rename to tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/add.c diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/main.rs b/tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/main.rs similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/main.rs rename to tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/main.rs diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/panic.rs b/tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/panic.rs similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-lib-panic/panic.rs rename to tests/run-make-fulldeps/c-unwind-abi-catch-lib-panic/panic.rs diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-panic/Makefile b/tests/run-make-fulldeps/c-unwind-abi-catch-panic/Makefile similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-panic/Makefile rename to tests/run-make-fulldeps/c-unwind-abi-catch-panic/Makefile diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-panic/add.c b/tests/run-make-fulldeps/c-unwind-abi-catch-panic/add.c similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-panic/add.c rename to tests/run-make-fulldeps/c-unwind-abi-catch-panic/add.c diff --git a/src/test/run-make-fulldeps/c-unwind-abi-catch-panic/main.rs b/tests/run-make-fulldeps/c-unwind-abi-catch-panic/main.rs similarity index 100% rename from src/test/run-make-fulldeps/c-unwind-abi-catch-panic/main.rs rename to tests/run-make-fulldeps/c-unwind-abi-catch-panic/main.rs diff --git a/src/test/run-make-fulldeps/cat-and-grep-sanity-check/Makefile b/tests/run-make-fulldeps/cat-and-grep-sanity-check/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cat-and-grep-sanity-check/Makefile rename to tests/run-make-fulldeps/cat-and-grep-sanity-check/Makefile diff --git a/src/test/run-make-fulldeps/cdylib-dylib-linkage/Makefile b/tests/run-make-fulldeps/cdylib-dylib-linkage/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cdylib-dylib-linkage/Makefile rename to tests/run-make-fulldeps/cdylib-dylib-linkage/Makefile diff --git a/src/test/run-make-fulldeps/cdylib-dylib-linkage/bar.rs b/tests/run-make-fulldeps/cdylib-dylib-linkage/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/cdylib-dylib-linkage/bar.rs rename to tests/run-make-fulldeps/cdylib-dylib-linkage/bar.rs diff --git a/src/test/run-make-fulldeps/cdylib-dylib-linkage/foo.c b/tests/run-make-fulldeps/cdylib-dylib-linkage/foo.c similarity index 100% rename from src/test/run-make-fulldeps/cdylib-dylib-linkage/foo.c rename to tests/run-make-fulldeps/cdylib-dylib-linkage/foo.c diff --git a/src/test/run-make-fulldeps/cdylib-dylib-linkage/foo.rs b/tests/run-make-fulldeps/cdylib-dylib-linkage/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/cdylib-dylib-linkage/foo.rs rename to tests/run-make-fulldeps/cdylib-dylib-linkage/foo.rs diff --git a/src/test/run-make-fulldeps/cdylib-fewer-symbols/Makefile b/tests/run-make-fulldeps/cdylib-fewer-symbols/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cdylib-fewer-symbols/Makefile rename to tests/run-make-fulldeps/cdylib-fewer-symbols/Makefile diff --git a/src/test/run-make-fulldeps/cdylib-fewer-symbols/foo.rs b/tests/run-make-fulldeps/cdylib-fewer-symbols/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/cdylib-fewer-symbols/foo.rs rename to tests/run-make-fulldeps/cdylib-fewer-symbols/foo.rs diff --git a/src/test/run-make-fulldeps/cdylib/Makefile b/tests/run-make-fulldeps/cdylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cdylib/Makefile rename to tests/run-make-fulldeps/cdylib/Makefile diff --git a/src/test/run-make-fulldeps/cdylib/bar.rs b/tests/run-make-fulldeps/cdylib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/cdylib/bar.rs rename to tests/run-make-fulldeps/cdylib/bar.rs diff --git a/src/test/run-make-fulldeps/cdylib/foo.c b/tests/run-make-fulldeps/cdylib/foo.c similarity index 100% rename from src/test/run-make-fulldeps/cdylib/foo.c rename to tests/run-make-fulldeps/cdylib/foo.c diff --git a/src/test/run-make-fulldeps/cdylib/foo.rs b/tests/run-make-fulldeps/cdylib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/cdylib/foo.rs rename to tests/run-make-fulldeps/cdylib/foo.rs diff --git a/src/test/run-make-fulldeps/codegen-options-parsing/Makefile b/tests/run-make-fulldeps/codegen-options-parsing/Makefile similarity index 100% rename from src/test/run-make-fulldeps/codegen-options-parsing/Makefile rename to tests/run-make-fulldeps/codegen-options-parsing/Makefile diff --git a/src/test/run-make-fulldeps/codegen-options-parsing/dummy.rs b/tests/run-make-fulldeps/codegen-options-parsing/dummy.rs similarity index 100% rename from src/test/run-make-fulldeps/codegen-options-parsing/dummy.rs rename to tests/run-make-fulldeps/codegen-options-parsing/dummy.rs diff --git a/src/test/run-make-fulldeps/compile-stdin/Makefile b/tests/run-make-fulldeps/compile-stdin/Makefile similarity index 100% rename from src/test/run-make-fulldeps/compile-stdin/Makefile rename to tests/run-make-fulldeps/compile-stdin/Makefile diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths-2/Makefile b/tests/run-make-fulldeps/compiler-lookup-paths-2/Makefile similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths-2/Makefile rename to tests/run-make-fulldeps/compiler-lookup-paths-2/Makefile diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths-2/a.rs b/tests/run-make-fulldeps/compiler-lookup-paths-2/a.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths-2/a.rs rename to tests/run-make-fulldeps/compiler-lookup-paths-2/a.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths-2/b.rs b/tests/run-make-fulldeps/compiler-lookup-paths-2/b.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths-2/b.rs rename to tests/run-make-fulldeps/compiler-lookup-paths-2/b.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths-2/c.rs b/tests/run-make-fulldeps/compiler-lookup-paths-2/c.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths-2/c.rs rename to tests/run-make-fulldeps/compiler-lookup-paths-2/c.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/Makefile b/tests/run-make-fulldeps/compiler-lookup-paths/Makefile similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/Makefile rename to tests/run-make-fulldeps/compiler-lookup-paths/Makefile diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/a.rs b/tests/run-make-fulldeps/compiler-lookup-paths/a.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/a.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/a.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/b.rs b/tests/run-make-fulldeps/compiler-lookup-paths/b.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/b.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/b.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/c.rs b/tests/run-make-fulldeps/compiler-lookup-paths/c.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/c.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/c.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/d.rs b/tests/run-make-fulldeps/compiler-lookup-paths/d.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/d.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/d.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/e.rs b/tests/run-make-fulldeps/compiler-lookup-paths/e.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/e.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/e.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/e2.rs b/tests/run-make-fulldeps/compiler-lookup-paths/e2.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/e2.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/e2.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/f.rs b/tests/run-make-fulldeps/compiler-lookup-paths/f.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/f.rs rename to tests/run-make-fulldeps/compiler-lookup-paths/f.rs diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/native.c b/tests/run-make-fulldeps/compiler-lookup-paths/native.c similarity index 100% rename from src/test/run-make-fulldeps/compiler-lookup-paths/native.c rename to tests/run-make-fulldeps/compiler-lookup-paths/native.c diff --git a/src/test/run-make-fulldeps/compiler-rt-works-on-mingw/Makefile b/tests/run-make-fulldeps/compiler-rt-works-on-mingw/Makefile similarity index 100% rename from src/test/run-make-fulldeps/compiler-rt-works-on-mingw/Makefile rename to tests/run-make-fulldeps/compiler-rt-works-on-mingw/Makefile diff --git a/src/test/run-make-fulldeps/compiler-rt-works-on-mingw/foo.cpp b/tests/run-make-fulldeps/compiler-rt-works-on-mingw/foo.cpp similarity index 100% rename from src/test/run-make-fulldeps/compiler-rt-works-on-mingw/foo.cpp rename to tests/run-make-fulldeps/compiler-rt-works-on-mingw/foo.cpp diff --git a/src/test/run-make-fulldeps/compiler-rt-works-on-mingw/foo.rs b/tests/run-make-fulldeps/compiler-rt-works-on-mingw/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/compiler-rt-works-on-mingw/foo.rs rename to tests/run-make-fulldeps/compiler-rt-works-on-mingw/foo.rs diff --git a/tests/run-make-fulldeps/core-no-fp-fmt-parse/Makefile b/tests/run-make-fulldeps/core-no-fp-fmt-parse/Makefile new file mode 100644 index 0000000000000..837664d92b938 --- /dev/null +++ b/tests/run-make-fulldeps/core-no-fp-fmt-parse/Makefile @@ -0,0 +1,4 @@ +include ../tools.mk + +all: + $(RUSTC) --edition=2021 -Dwarnings --crate-type=rlib ../../../library/core/src/lib.rs --cfg no_fp_fmt_parse diff --git a/src/test/run-make-fulldeps/crate-data-smoke/Makefile b/tests/run-make-fulldeps/crate-data-smoke/Makefile similarity index 100% rename from src/test/run-make-fulldeps/crate-data-smoke/Makefile rename to tests/run-make-fulldeps/crate-data-smoke/Makefile diff --git a/src/test/run-make-fulldeps/crate-data-smoke/crate.rs b/tests/run-make-fulldeps/crate-data-smoke/crate.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-data-smoke/crate.rs rename to tests/run-make-fulldeps/crate-data-smoke/crate.rs diff --git a/src/test/run-make-fulldeps/crate-data-smoke/lib.rs b/tests/run-make-fulldeps/crate-data-smoke/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-data-smoke/lib.rs rename to tests/run-make-fulldeps/crate-data-smoke/lib.rs diff --git a/src/test/run-make-fulldeps/crate-data-smoke/rlib.rs b/tests/run-make-fulldeps/crate-data-smoke/rlib.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-data-smoke/rlib.rs rename to tests/run-make-fulldeps/crate-data-smoke/rlib.rs diff --git a/src/test/run-make-fulldeps/crate-hash-rustc-version/Makefile b/tests/run-make-fulldeps/crate-hash-rustc-version/Makefile similarity index 100% rename from src/test/run-make-fulldeps/crate-hash-rustc-version/Makefile rename to tests/run-make-fulldeps/crate-hash-rustc-version/Makefile diff --git a/src/test/run-make-fulldeps/crate-hash-rustc-version/a.rs b/tests/run-make-fulldeps/crate-hash-rustc-version/a.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-hash-rustc-version/a.rs rename to tests/run-make-fulldeps/crate-hash-rustc-version/a.rs diff --git a/src/test/run-make-fulldeps/crate-hash-rustc-version/b.rs b/tests/run-make-fulldeps/crate-hash-rustc-version/b.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-hash-rustc-version/b.rs rename to tests/run-make-fulldeps/crate-hash-rustc-version/b.rs diff --git a/src/test/run-make-fulldeps/crate-name-priority/Makefile b/tests/run-make-fulldeps/crate-name-priority/Makefile similarity index 100% rename from src/test/run-make-fulldeps/crate-name-priority/Makefile rename to tests/run-make-fulldeps/crate-name-priority/Makefile diff --git a/src/test/run-make-fulldeps/crate-name-priority/foo.rs b/tests/run-make-fulldeps/crate-name-priority/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-name-priority/foo.rs rename to tests/run-make-fulldeps/crate-name-priority/foo.rs diff --git a/src/test/run-make-fulldeps/crate-name-priority/foo1.rs b/tests/run-make-fulldeps/crate-name-priority/foo1.rs similarity index 100% rename from src/test/run-make-fulldeps/crate-name-priority/foo1.rs rename to tests/run-make-fulldeps/crate-name-priority/foo1.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto-clang/Makefile b/tests/run-make-fulldeps/cross-lang-lto-clang/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-clang/Makefile rename to tests/run-make-fulldeps/cross-lang-lto-clang/Makefile diff --git a/src/test/run-make-fulldeps/cross-lang-lto-clang/clib.c b/tests/run-make-fulldeps/cross-lang-lto-clang/clib.c similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-clang/clib.c rename to tests/run-make-fulldeps/cross-lang-lto-clang/clib.c diff --git a/src/test/run-make-fulldeps/cross-lang-lto-clang/cmain.c b/tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-clang/cmain.c rename to tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c diff --git a/src/test/run-make-fulldeps/cross-lang-lto-clang/main.rs b/tests/run-make-fulldeps/cross-lang-lto-clang/main.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-clang/main.rs rename to tests/run-make-fulldeps/cross-lang-lto-clang/main.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto-clang/rustlib.rs b/tests/run-make-fulldeps/cross-lang-lto-clang/rustlib.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-clang/rustlib.rs rename to tests/run-make-fulldeps/cross-lang-lto-clang/rustlib.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/Makefile b/tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/Makefile rename to tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/Makefile diff --git a/src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/clib.c b/tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/clib.c similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/clib.c rename to tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/clib.c diff --git a/src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/cmain.c b/tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/cmain.c similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/cmain.c rename to tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/cmain.c diff --git a/src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/main.rs b/tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/main.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/main.rs rename to tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/main.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/rustlib.rs b/tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/rustlib.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-pgo-smoketest/rustlib.rs rename to tests/run-make-fulldeps/cross-lang-lto-pgo-smoketest/rustlib.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/Makefile b/tests/run-make-fulldeps/cross-lang-lto-upstream-rlibs/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/Makefile rename to tests/run-make-fulldeps/cross-lang-lto-upstream-rlibs/Makefile diff --git a/src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/staticlib.rs b/tests/run-make-fulldeps/cross-lang-lto-upstream-rlibs/staticlib.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/staticlib.rs rename to tests/run-make-fulldeps/cross-lang-lto-upstream-rlibs/staticlib.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/upstream.rs b/tests/run-make-fulldeps/cross-lang-lto-upstream-rlibs/upstream.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto-upstream-rlibs/upstream.rs rename to tests/run-make-fulldeps/cross-lang-lto-upstream-rlibs/upstream.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto/Makefile b/tests/run-make-fulldeps/cross-lang-lto/Makefile similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto/Makefile rename to tests/run-make-fulldeps/cross-lang-lto/Makefile diff --git a/src/test/run-make-fulldeps/cross-lang-lto/lib.rs b/tests/run-make-fulldeps/cross-lang-lto/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto/lib.rs rename to tests/run-make-fulldeps/cross-lang-lto/lib.rs diff --git a/src/test/run-make-fulldeps/cross-lang-lto/main.rs b/tests/run-make-fulldeps/cross-lang-lto/main.rs similarity index 100% rename from src/test/run-make-fulldeps/cross-lang-lto/main.rs rename to tests/run-make-fulldeps/cross-lang-lto/main.rs diff --git a/src/test/run-make-fulldeps/debug-assertions/Makefile b/tests/run-make-fulldeps/debug-assertions/Makefile similarity index 100% rename from src/test/run-make-fulldeps/debug-assertions/Makefile rename to tests/run-make-fulldeps/debug-assertions/Makefile diff --git a/src/test/run-make-fulldeps/debug-assertions/debug.rs b/tests/run-make-fulldeps/debug-assertions/debug.rs similarity index 100% rename from src/test/run-make-fulldeps/debug-assertions/debug.rs rename to tests/run-make-fulldeps/debug-assertions/debug.rs diff --git a/src/test/run-make-fulldeps/dep-info-doesnt-run-much/Makefile b/tests/run-make-fulldeps/dep-info-doesnt-run-much/Makefile similarity index 100% rename from src/test/run-make-fulldeps/dep-info-doesnt-run-much/Makefile rename to tests/run-make-fulldeps/dep-info-doesnt-run-much/Makefile diff --git a/src/test/run-make-fulldeps/dep-info-doesnt-run-much/foo.rs b/tests/run-make-fulldeps/dep-info-doesnt-run-much/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info-doesnt-run-much/foo.rs rename to tests/run-make-fulldeps/dep-info-doesnt-run-much/foo.rs diff --git a/src/test/run-make-fulldeps/dep-info-spaces/Makefile b/tests/run-make-fulldeps/dep-info-spaces/Makefile similarity index 100% rename from src/test/run-make-fulldeps/dep-info-spaces/Makefile rename to tests/run-make-fulldeps/dep-info-spaces/Makefile diff --git a/src/test/run-make-fulldeps/dep-info-spaces/Makefile.foo b/tests/run-make-fulldeps/dep-info-spaces/Makefile.foo similarity index 100% rename from src/test/run-make-fulldeps/dep-info-spaces/Makefile.foo rename to tests/run-make-fulldeps/dep-info-spaces/Makefile.foo diff --git a/src/test/run-make-fulldeps/dep-info-spaces/bar.rs b/tests/run-make-fulldeps/dep-info-spaces/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info-spaces/bar.rs rename to tests/run-make-fulldeps/dep-info-spaces/bar.rs diff --git a/src/test/run-make-fulldeps/dep-info-spaces/foo foo.rs b/tests/run-make-fulldeps/dep-info-spaces/foo foo.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info-spaces/foo foo.rs rename to tests/run-make-fulldeps/dep-info-spaces/foo foo.rs diff --git a/src/test/run-make-fulldeps/dep-info-spaces/lib.rs b/tests/run-make-fulldeps/dep-info-spaces/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info-spaces/lib.rs rename to tests/run-make-fulldeps/dep-info-spaces/lib.rs diff --git a/src/test/run-make-fulldeps/dep-info/Makefile b/tests/run-make-fulldeps/dep-info/Makefile similarity index 100% rename from src/test/run-make-fulldeps/dep-info/Makefile rename to tests/run-make-fulldeps/dep-info/Makefile diff --git a/src/test/run-make-fulldeps/dep-info/Makefile.foo b/tests/run-make-fulldeps/dep-info/Makefile.foo similarity index 100% rename from src/test/run-make-fulldeps/dep-info/Makefile.foo rename to tests/run-make-fulldeps/dep-info/Makefile.foo diff --git a/src/test/run-make-fulldeps/dep-info/bar.rs b/tests/run-make-fulldeps/dep-info/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info/bar.rs rename to tests/run-make-fulldeps/dep-info/bar.rs diff --git a/src/test/run-make-fulldeps/dep-info/foo.rs b/tests/run-make-fulldeps/dep-info/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info/foo.rs rename to tests/run-make-fulldeps/dep-info/foo.rs diff --git a/src/test/run-make-fulldeps/dep-info/lib.rs b/tests/run-make-fulldeps/dep-info/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info/lib.rs rename to tests/run-make-fulldeps/dep-info/lib.rs diff --git a/src/test/run-make-fulldeps/dep-info/lib2.rs b/tests/run-make-fulldeps/dep-info/lib2.rs similarity index 100% rename from src/test/run-make-fulldeps/dep-info/lib2.rs rename to tests/run-make-fulldeps/dep-info/lib2.rs diff --git a/src/test/run-make-fulldeps/doctests-keep-binaries/Makefile b/tests/run-make-fulldeps/doctests-keep-binaries/Makefile similarity index 100% rename from src/test/run-make-fulldeps/doctests-keep-binaries/Makefile rename to tests/run-make-fulldeps/doctests-keep-binaries/Makefile diff --git a/src/test/run-make-fulldeps/doctests-keep-binaries/t.rs b/tests/run-make-fulldeps/doctests-keep-binaries/t.rs similarity index 100% rename from src/test/run-make-fulldeps/doctests-keep-binaries/t.rs rename to tests/run-make-fulldeps/doctests-keep-binaries/t.rs diff --git a/src/test/run-make-fulldeps/duplicate-output-flavors/Makefile b/tests/run-make-fulldeps/duplicate-output-flavors/Makefile similarity index 100% rename from src/test/run-make-fulldeps/duplicate-output-flavors/Makefile rename to tests/run-make-fulldeps/duplicate-output-flavors/Makefile diff --git a/src/test/run-make-fulldeps/duplicate-output-flavors/foo.rs b/tests/run-make-fulldeps/duplicate-output-flavors/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/duplicate-output-flavors/foo.rs rename to tests/run-make-fulldeps/duplicate-output-flavors/foo.rs diff --git a/src/test/run-make-fulldeps/dylib-chain/Makefile b/tests/run-make-fulldeps/dylib-chain/Makefile similarity index 100% rename from src/test/run-make-fulldeps/dylib-chain/Makefile rename to tests/run-make-fulldeps/dylib-chain/Makefile diff --git a/src/test/run-make-fulldeps/dylib-chain/m1.rs b/tests/run-make-fulldeps/dylib-chain/m1.rs similarity index 100% rename from src/test/run-make-fulldeps/dylib-chain/m1.rs rename to tests/run-make-fulldeps/dylib-chain/m1.rs diff --git a/src/test/run-make-fulldeps/dylib-chain/m2.rs b/tests/run-make-fulldeps/dylib-chain/m2.rs similarity index 100% rename from src/test/run-make-fulldeps/dylib-chain/m2.rs rename to tests/run-make-fulldeps/dylib-chain/m2.rs diff --git a/src/test/run-make-fulldeps/dylib-chain/m3.rs b/tests/run-make-fulldeps/dylib-chain/m3.rs similarity index 100% rename from src/test/run-make-fulldeps/dylib-chain/m3.rs rename to tests/run-make-fulldeps/dylib-chain/m3.rs diff --git a/src/test/run-make-fulldeps/dylib-chain/m4.rs b/tests/run-make-fulldeps/dylib-chain/m4.rs similarity index 100% rename from src/test/run-make-fulldeps/dylib-chain/m4.rs rename to tests/run-make-fulldeps/dylib-chain/m4.rs diff --git a/src/test/run-make-fulldeps/emit-stack-sizes/Makefile b/tests/run-make-fulldeps/emit-stack-sizes/Makefile similarity index 100% rename from src/test/run-make-fulldeps/emit-stack-sizes/Makefile rename to tests/run-make-fulldeps/emit-stack-sizes/Makefile diff --git a/src/test/run-make-fulldeps/emit-stack-sizes/foo.rs b/tests/run-make-fulldeps/emit-stack-sizes/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/emit-stack-sizes/foo.rs rename to tests/run-make-fulldeps/emit-stack-sizes/foo.rs diff --git a/src/test/run-make-fulldeps/emit/Makefile b/tests/run-make-fulldeps/emit/Makefile similarity index 100% rename from src/test/run-make-fulldeps/emit/Makefile rename to tests/run-make-fulldeps/emit/Makefile diff --git a/src/test/run-make-fulldeps/emit/test-24876.rs b/tests/run-make-fulldeps/emit/test-24876.rs similarity index 100% rename from src/test/run-make-fulldeps/emit/test-24876.rs rename to tests/run-make-fulldeps/emit/test-24876.rs diff --git a/src/test/run-make-fulldeps/emit/test-26235.rs b/tests/run-make-fulldeps/emit/test-26235.rs similarity index 100% rename from src/test/run-make-fulldeps/emit/test-26235.rs rename to tests/run-make-fulldeps/emit/test-26235.rs diff --git a/src/test/run-make-fulldeps/error-found-staticlib-instead-crate/Makefile b/tests/run-make-fulldeps/error-found-staticlib-instead-crate/Makefile similarity index 100% rename from src/test/run-make-fulldeps/error-found-staticlib-instead-crate/Makefile rename to tests/run-make-fulldeps/error-found-staticlib-instead-crate/Makefile diff --git a/src/test/run-make-fulldeps/error-found-staticlib-instead-crate/bar.rs b/tests/run-make-fulldeps/error-found-staticlib-instead-crate/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/error-found-staticlib-instead-crate/bar.rs rename to tests/run-make-fulldeps/error-found-staticlib-instead-crate/bar.rs diff --git a/src/test/run-make-fulldeps/error-found-staticlib-instead-crate/foo.rs b/tests/run-make-fulldeps/error-found-staticlib-instead-crate/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/error-found-staticlib-instead-crate/foo.rs rename to tests/run-make-fulldeps/error-found-staticlib-instead-crate/foo.rs diff --git a/src/test/run-make-fulldeps/error-writing-dependencies/Makefile b/tests/run-make-fulldeps/error-writing-dependencies/Makefile similarity index 100% rename from src/test/run-make-fulldeps/error-writing-dependencies/Makefile rename to tests/run-make-fulldeps/error-writing-dependencies/Makefile diff --git a/src/test/run-make-fulldeps/error-writing-dependencies/foo.rs b/tests/run-make-fulldeps/error-writing-dependencies/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/error-writing-dependencies/foo.rs rename to tests/run-make-fulldeps/error-writing-dependencies/foo.rs diff --git a/src/test/run-make-fulldeps/exit-code/Makefile b/tests/run-make-fulldeps/exit-code/Makefile similarity index 100% rename from src/test/run-make-fulldeps/exit-code/Makefile rename to tests/run-make-fulldeps/exit-code/Makefile diff --git a/src/test/run-make-fulldeps/exit-code/compile-error.rs b/tests/run-make-fulldeps/exit-code/compile-error.rs similarity index 100% rename from src/test/run-make-fulldeps/exit-code/compile-error.rs rename to tests/run-make-fulldeps/exit-code/compile-error.rs diff --git a/src/test/run-make-fulldeps/exit-code/lint-failure.rs b/tests/run-make-fulldeps/exit-code/lint-failure.rs similarity index 100% rename from src/test/run-make-fulldeps/exit-code/lint-failure.rs rename to tests/run-make-fulldeps/exit-code/lint-failure.rs diff --git a/src/test/run-make-fulldeps/exit-code/success.rs b/tests/run-make-fulldeps/exit-code/success.rs similarity index 100% rename from src/test/run-make-fulldeps/exit-code/success.rs rename to tests/run-make-fulldeps/exit-code/success.rs diff --git a/src/test/run-make-fulldeps/extern-diff-internal-name/Makefile b/tests/run-make-fulldeps/extern-diff-internal-name/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-diff-internal-name/Makefile rename to tests/run-make-fulldeps/extern-diff-internal-name/Makefile diff --git a/src/test/run-make-fulldeps/extern-diff-internal-name/lib.rs b/tests/run-make-fulldeps/extern-diff-internal-name/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-diff-internal-name/lib.rs rename to tests/run-make-fulldeps/extern-diff-internal-name/lib.rs diff --git a/src/test/run-make-fulldeps/extern-diff-internal-name/test.rs b/tests/run-make-fulldeps/extern-diff-internal-name/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-diff-internal-name/test.rs rename to tests/run-make-fulldeps/extern-diff-internal-name/test.rs diff --git a/src/test/run-make-fulldeps/extern-flag-disambiguates/Makefile b/tests/run-make-fulldeps/extern-flag-disambiguates/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-disambiguates/Makefile rename to tests/run-make-fulldeps/extern-flag-disambiguates/Makefile diff --git a/src/test/run-make-fulldeps/extern-flag-disambiguates/a.rs b/tests/run-make-fulldeps/extern-flag-disambiguates/a.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-disambiguates/a.rs rename to tests/run-make-fulldeps/extern-flag-disambiguates/a.rs diff --git a/src/test/run-make-fulldeps/extern-flag-disambiguates/b.rs b/tests/run-make-fulldeps/extern-flag-disambiguates/b.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-disambiguates/b.rs rename to tests/run-make-fulldeps/extern-flag-disambiguates/b.rs diff --git a/src/test/run-make-fulldeps/extern-flag-disambiguates/c.rs b/tests/run-make-fulldeps/extern-flag-disambiguates/c.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-disambiguates/c.rs rename to tests/run-make-fulldeps/extern-flag-disambiguates/c.rs diff --git a/src/test/run-make-fulldeps/extern-flag-disambiguates/d.rs b/tests/run-make-fulldeps/extern-flag-disambiguates/d.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-disambiguates/d.rs rename to tests/run-make-fulldeps/extern-flag-disambiguates/d.rs diff --git a/src/test/run-make-fulldeps/extern-flag-fun/Makefile b/tests/run-make-fulldeps/extern-flag-fun/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-fun/Makefile rename to tests/run-make-fulldeps/extern-flag-fun/Makefile diff --git a/src/test/run-make-fulldeps/extern-flag-fun/bar-alt.rs b/tests/run-make-fulldeps/extern-flag-fun/bar-alt.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-fun/bar-alt.rs rename to tests/run-make-fulldeps/extern-flag-fun/bar-alt.rs diff --git a/src/test/run-make-fulldeps/extern-flag-fun/bar.rs b/tests/run-make-fulldeps/extern-flag-fun/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-fun/bar.rs rename to tests/run-make-fulldeps/extern-flag-fun/bar.rs diff --git a/src/test/run-make-fulldeps/extern-flag-fun/foo.rs b/tests/run-make-fulldeps/extern-flag-fun/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-fun/foo.rs rename to tests/run-make-fulldeps/extern-flag-fun/foo.rs diff --git a/src/test/run-make-fulldeps/extern-flag-fun/gated_unstable.rs b/tests/run-make-fulldeps/extern-flag-fun/gated_unstable.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-fun/gated_unstable.rs rename to tests/run-make-fulldeps/extern-flag-fun/gated_unstable.rs diff --git a/src/test/run-make-fulldeps/extern-flag-fun/rustc.rs b/tests/run-make-fulldeps/extern-flag-fun/rustc.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-fun/rustc.rs rename to tests/run-make-fulldeps/extern-flag-fun/rustc.rs diff --git a/src/test/run-make-fulldeps/extern-flag-pathless/Makefile b/tests/run-make-fulldeps/extern-flag-pathless/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-pathless/Makefile rename to tests/run-make-fulldeps/extern-flag-pathless/Makefile diff --git a/src/test/run-make-fulldeps/extern-flag-pathless/bar-dynamic.rs b/tests/run-make-fulldeps/extern-flag-pathless/bar-dynamic.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-pathless/bar-dynamic.rs rename to tests/run-make-fulldeps/extern-flag-pathless/bar-dynamic.rs diff --git a/src/test/run-make-fulldeps/extern-flag-pathless/bar-static.rs b/tests/run-make-fulldeps/extern-flag-pathless/bar-static.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-pathless/bar-static.rs rename to tests/run-make-fulldeps/extern-flag-pathless/bar-static.rs diff --git a/src/test/run-make-fulldeps/extern-flag-pathless/foo.rs b/tests/run-make-fulldeps/extern-flag-pathless/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-pathless/foo.rs rename to tests/run-make-fulldeps/extern-flag-pathless/foo.rs diff --git a/src/test/run-make-fulldeps/extern-flag-rename-transitive/Makefile b/tests/run-make-fulldeps/extern-flag-rename-transitive/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-rename-transitive/Makefile rename to tests/run-make-fulldeps/extern-flag-rename-transitive/Makefile diff --git a/src/test/run-make-fulldeps/extern-flag-rename-transitive/bar.rs b/tests/run-make-fulldeps/extern-flag-rename-transitive/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-rename-transitive/bar.rs rename to tests/run-make-fulldeps/extern-flag-rename-transitive/bar.rs diff --git a/src/test/run-make-fulldeps/extern-flag-rename-transitive/baz.rs b/tests/run-make-fulldeps/extern-flag-rename-transitive/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-rename-transitive/baz.rs rename to tests/run-make-fulldeps/extern-flag-rename-transitive/baz.rs diff --git a/src/test/run-make-fulldeps/extern-flag-rename-transitive/foo.rs b/tests/run-make-fulldeps/extern-flag-rename-transitive/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-flag-rename-transitive/foo.rs rename to tests/run-make-fulldeps/extern-flag-rename-transitive/foo.rs diff --git a/src/test/run-make-fulldeps/extern-fn-generic/Makefile b/tests/run-make-fulldeps/extern-fn-generic/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-generic/Makefile rename to tests/run-make-fulldeps/extern-fn-generic/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-generic/test.c b/tests/run-make-fulldeps/extern-fn-generic/test.c similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-generic/test.c rename to tests/run-make-fulldeps/extern-fn-generic/test.c diff --git a/src/test/run-make-fulldeps/extern-fn-generic/test.rs b/tests/run-make-fulldeps/extern-fn-generic/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-generic/test.rs rename to tests/run-make-fulldeps/extern-fn-generic/test.rs diff --git a/src/test/run-make-fulldeps/extern-fn-generic/testcrate.rs b/tests/run-make-fulldeps/extern-fn-generic/testcrate.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-generic/testcrate.rs rename to tests/run-make-fulldeps/extern-fn-generic/testcrate.rs diff --git a/src/test/run-make-fulldeps/extern-fn-mangle/Makefile b/tests/run-make-fulldeps/extern-fn-mangle/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-mangle/Makefile rename to tests/run-make-fulldeps/extern-fn-mangle/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-mangle/test.c b/tests/run-make-fulldeps/extern-fn-mangle/test.c similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-mangle/test.c rename to tests/run-make-fulldeps/extern-fn-mangle/test.c diff --git a/src/test/run-make-fulldeps/extern-fn-mangle/test.rs b/tests/run-make-fulldeps/extern-fn-mangle/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-mangle/test.rs rename to tests/run-make-fulldeps/extern-fn-mangle/test.rs diff --git a/src/test/run-make-fulldeps/extern-fn-reachable/Makefile b/tests/run-make-fulldeps/extern-fn-reachable/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-reachable/Makefile rename to tests/run-make-fulldeps/extern-fn-reachable/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-reachable/dylib.rs b/tests/run-make-fulldeps/extern-fn-reachable/dylib.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-reachable/dylib.rs rename to tests/run-make-fulldeps/extern-fn-reachable/dylib.rs diff --git a/src/test/run-make-fulldeps/extern-fn-struct-passing-abi/Makefile b/tests/run-make-fulldeps/extern-fn-struct-passing-abi/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-struct-passing-abi/Makefile rename to tests/run-make-fulldeps/extern-fn-struct-passing-abi/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-struct-passing-abi/test.c b/tests/run-make-fulldeps/extern-fn-struct-passing-abi/test.c similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-struct-passing-abi/test.c rename to tests/run-make-fulldeps/extern-fn-struct-passing-abi/test.c diff --git a/src/test/run-make-fulldeps/extern-fn-struct-passing-abi/test.rs b/tests/run-make-fulldeps/extern-fn-struct-passing-abi/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-struct-passing-abi/test.rs rename to tests/run-make-fulldeps/extern-fn-struct-passing-abi/test.rs diff --git a/src/test/run-make-fulldeps/extern-fn-with-extern-types/Makefile b/tests/run-make-fulldeps/extern-fn-with-extern-types/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-extern-types/Makefile rename to tests/run-make-fulldeps/extern-fn-with-extern-types/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-with-extern-types/ctest.c b/tests/run-make-fulldeps/extern-fn-with-extern-types/ctest.c similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-extern-types/ctest.c rename to tests/run-make-fulldeps/extern-fn-with-extern-types/ctest.c diff --git a/src/test/run-make-fulldeps/extern-fn-with-extern-types/test.rs b/tests/run-make-fulldeps/extern-fn-with-extern-types/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-extern-types/test.rs rename to tests/run-make-fulldeps/extern-fn-with-extern-types/test.rs diff --git a/src/test/run-make-fulldeps/extern-fn-with-packed-struct/Makefile b/tests/run-make-fulldeps/extern-fn-with-packed-struct/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-packed-struct/Makefile rename to tests/run-make-fulldeps/extern-fn-with-packed-struct/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-with-packed-struct/test.c b/tests/run-make-fulldeps/extern-fn-with-packed-struct/test.c similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-packed-struct/test.c rename to tests/run-make-fulldeps/extern-fn-with-packed-struct/test.c diff --git a/src/test/run-make-fulldeps/extern-fn-with-packed-struct/test.rs b/tests/run-make-fulldeps/extern-fn-with-packed-struct/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-packed-struct/test.rs rename to tests/run-make-fulldeps/extern-fn-with-packed-struct/test.rs diff --git a/src/test/run-make-fulldeps/extern-fn-with-union/Makefile b/tests/run-make-fulldeps/extern-fn-with-union/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-union/Makefile rename to tests/run-make-fulldeps/extern-fn-with-union/Makefile diff --git a/src/test/run-make-fulldeps/extern-fn-with-union/ctest.c b/tests/run-make-fulldeps/extern-fn-with-union/ctest.c similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-union/ctest.c rename to tests/run-make-fulldeps/extern-fn-with-union/ctest.c diff --git a/src/test/run-make-fulldeps/extern-fn-with-union/test.rs b/tests/run-make-fulldeps/extern-fn-with-union/test.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-union/test.rs rename to tests/run-make-fulldeps/extern-fn-with-union/test.rs diff --git a/src/test/run-make-fulldeps/extern-fn-with-union/testcrate.rs b/tests/run-make-fulldeps/extern-fn-with-union/testcrate.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-fn-with-union/testcrate.rs rename to tests/run-make-fulldeps/extern-fn-with-union/testcrate.rs diff --git a/src/test/run-make-fulldeps/extern-multiple-copies/Makefile b/tests/run-make-fulldeps/extern-multiple-copies/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies/Makefile rename to tests/run-make-fulldeps/extern-multiple-copies/Makefile diff --git a/src/test/run-make-fulldeps/extern-multiple-copies/bar.rs b/tests/run-make-fulldeps/extern-multiple-copies/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies/bar.rs rename to tests/run-make-fulldeps/extern-multiple-copies/bar.rs diff --git a/src/test/run-make-fulldeps/extern-multiple-copies/foo1.rs b/tests/run-make-fulldeps/extern-multiple-copies/foo1.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies/foo1.rs rename to tests/run-make-fulldeps/extern-multiple-copies/foo1.rs diff --git a/src/test/run-make-fulldeps/extern-multiple-copies/foo2.rs b/tests/run-make-fulldeps/extern-multiple-copies/foo2.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies/foo2.rs rename to tests/run-make-fulldeps/extern-multiple-copies/foo2.rs diff --git a/src/test/run-make-fulldeps/extern-multiple-copies2/Makefile b/tests/run-make-fulldeps/extern-multiple-copies2/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies2/Makefile rename to tests/run-make-fulldeps/extern-multiple-copies2/Makefile diff --git a/src/test/run-make-fulldeps/extern-multiple-copies2/bar.rs b/tests/run-make-fulldeps/extern-multiple-copies2/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies2/bar.rs rename to tests/run-make-fulldeps/extern-multiple-copies2/bar.rs diff --git a/src/test/run-make-fulldeps/extern-multiple-copies2/foo1.rs b/tests/run-make-fulldeps/extern-multiple-copies2/foo1.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies2/foo1.rs rename to tests/run-make-fulldeps/extern-multiple-copies2/foo1.rs diff --git a/src/test/run-make-fulldeps/extern-multiple-copies2/foo2.rs b/tests/run-make-fulldeps/extern-multiple-copies2/foo2.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-multiple-copies2/foo2.rs rename to tests/run-make-fulldeps/extern-multiple-copies2/foo2.rs diff --git a/src/test/run-make-fulldeps/extern-overrides-distribution/Makefile b/tests/run-make-fulldeps/extern-overrides-distribution/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extern-overrides-distribution/Makefile rename to tests/run-make-fulldeps/extern-overrides-distribution/Makefile diff --git a/src/test/run-make-fulldeps/extern-overrides-distribution/libc.rs b/tests/run-make-fulldeps/extern-overrides-distribution/libc.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-overrides-distribution/libc.rs rename to tests/run-make-fulldeps/extern-overrides-distribution/libc.rs diff --git a/src/test/run-make-fulldeps/extern-overrides-distribution/main.rs b/tests/run-make-fulldeps/extern-overrides-distribution/main.rs similarity index 100% rename from src/test/run-make-fulldeps/extern-overrides-distribution/main.rs rename to tests/run-make-fulldeps/extern-overrides-distribution/main.rs diff --git a/src/test/run-make-fulldeps/extra-filename-with-temp-outputs/Makefile b/tests/run-make-fulldeps/extra-filename-with-temp-outputs/Makefile similarity index 100% rename from src/test/run-make-fulldeps/extra-filename-with-temp-outputs/Makefile rename to tests/run-make-fulldeps/extra-filename-with-temp-outputs/Makefile diff --git a/src/test/run-make-fulldeps/extra-filename-with-temp-outputs/foo.rs b/tests/run-make-fulldeps/extra-filename-with-temp-outputs/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/extra-filename-with-temp-outputs/foo.rs rename to tests/run-make-fulldeps/extra-filename-with-temp-outputs/foo.rs diff --git a/src/test/run-make-fulldeps/foreign-double-unwind/Makefile b/tests/run-make-fulldeps/foreign-double-unwind/Makefile similarity index 100% rename from src/test/run-make-fulldeps/foreign-double-unwind/Makefile rename to tests/run-make-fulldeps/foreign-double-unwind/Makefile diff --git a/src/test/run-make-fulldeps/foreign-double-unwind/foo.cpp b/tests/run-make-fulldeps/foreign-double-unwind/foo.cpp similarity index 100% rename from src/test/run-make-fulldeps/foreign-double-unwind/foo.cpp rename to tests/run-make-fulldeps/foreign-double-unwind/foo.cpp diff --git a/src/test/run-make-fulldeps/foreign-double-unwind/foo.rs b/tests/run-make-fulldeps/foreign-double-unwind/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/foreign-double-unwind/foo.rs rename to tests/run-make-fulldeps/foreign-double-unwind/foo.rs diff --git a/src/test/run-make-fulldeps/foreign-exceptions/Makefile b/tests/run-make-fulldeps/foreign-exceptions/Makefile similarity index 100% rename from src/test/run-make-fulldeps/foreign-exceptions/Makefile rename to tests/run-make-fulldeps/foreign-exceptions/Makefile diff --git a/src/test/run-make-fulldeps/foreign-exceptions/foo.cpp b/tests/run-make-fulldeps/foreign-exceptions/foo.cpp similarity index 100% rename from src/test/run-make-fulldeps/foreign-exceptions/foo.cpp rename to tests/run-make-fulldeps/foreign-exceptions/foo.cpp diff --git a/src/test/run-make-fulldeps/foreign-exceptions/foo.rs b/tests/run-make-fulldeps/foreign-exceptions/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/foreign-exceptions/foo.rs rename to tests/run-make-fulldeps/foreign-exceptions/foo.rs diff --git a/src/test/run-make-fulldeps/foreign-rust-exceptions/Makefile b/tests/run-make-fulldeps/foreign-rust-exceptions/Makefile similarity index 100% rename from src/test/run-make-fulldeps/foreign-rust-exceptions/Makefile rename to tests/run-make-fulldeps/foreign-rust-exceptions/Makefile diff --git a/src/test/run-make-fulldeps/foreign-rust-exceptions/bar.rs b/tests/run-make-fulldeps/foreign-rust-exceptions/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/foreign-rust-exceptions/bar.rs rename to tests/run-make-fulldeps/foreign-rust-exceptions/bar.rs diff --git a/src/test/run-make-fulldeps/foreign-rust-exceptions/foo.rs b/tests/run-make-fulldeps/foreign-rust-exceptions/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/foreign-rust-exceptions/foo.rs rename to tests/run-make-fulldeps/foreign-rust-exceptions/foo.rs diff --git a/src/test/run-make-fulldeps/fpic/Makefile b/tests/run-make-fulldeps/fpic/Makefile similarity index 100% rename from src/test/run-make-fulldeps/fpic/Makefile rename to tests/run-make-fulldeps/fpic/Makefile diff --git a/src/test/run-make-fulldeps/fpic/hello.rs b/tests/run-make-fulldeps/fpic/hello.rs similarity index 100% rename from src/test/run-make-fulldeps/fpic/hello.rs rename to tests/run-make-fulldeps/fpic/hello.rs diff --git a/src/test/run-make-fulldeps/glibc-staticlib-args/Makefile b/tests/run-make-fulldeps/glibc-staticlib-args/Makefile similarity index 100% rename from src/test/run-make-fulldeps/glibc-staticlib-args/Makefile rename to tests/run-make-fulldeps/glibc-staticlib-args/Makefile diff --git a/src/test/run-make-fulldeps/glibc-staticlib-args/library.rs b/tests/run-make-fulldeps/glibc-staticlib-args/library.rs similarity index 100% rename from src/test/run-make-fulldeps/glibc-staticlib-args/library.rs rename to tests/run-make-fulldeps/glibc-staticlib-args/library.rs diff --git a/src/test/run-make-fulldeps/glibc-staticlib-args/program.c b/tests/run-make-fulldeps/glibc-staticlib-args/program.c similarity index 100% rename from src/test/run-make-fulldeps/glibc-staticlib-args/program.c rename to tests/run-make-fulldeps/glibc-staticlib-args/program.c diff --git a/src/test/run-make-fulldeps/hir-tree/Makefile b/tests/run-make-fulldeps/hir-tree/Makefile similarity index 100% rename from src/test/run-make-fulldeps/hir-tree/Makefile rename to tests/run-make-fulldeps/hir-tree/Makefile diff --git a/src/test/run-make-fulldeps/hir-tree/input.rs b/tests/run-make-fulldeps/hir-tree/input.rs similarity index 100% rename from src/test/run-make-fulldeps/hir-tree/input.rs rename to tests/run-make-fulldeps/hir-tree/input.rs diff --git a/src/test/run-make-fulldeps/hotplug_codegen_backend/Makefile b/tests/run-make-fulldeps/hotplug_codegen_backend/Makefile similarity index 100% rename from src/test/run-make-fulldeps/hotplug_codegen_backend/Makefile rename to tests/run-make-fulldeps/hotplug_codegen_backend/Makefile diff --git a/src/test/run-make-fulldeps/hotplug_codegen_backend/some_crate.rs b/tests/run-make-fulldeps/hotplug_codegen_backend/some_crate.rs similarity index 100% rename from src/test/run-make-fulldeps/hotplug_codegen_backend/some_crate.rs rename to tests/run-make-fulldeps/hotplug_codegen_backend/some_crate.rs diff --git a/src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs b/tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs similarity index 100% rename from src/test/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs rename to tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs diff --git a/src/test/run-make-fulldeps/include_bytes_deps/Makefile b/tests/run-make-fulldeps/include_bytes_deps/Makefile similarity index 100% rename from src/test/run-make-fulldeps/include_bytes_deps/Makefile rename to tests/run-make-fulldeps/include_bytes_deps/Makefile diff --git a/src/test/run-make-fulldeps/include_bytes_deps/input.bin b/tests/run-make-fulldeps/include_bytes_deps/input.bin similarity index 100% rename from src/test/run-make-fulldeps/include_bytes_deps/input.bin rename to tests/run-make-fulldeps/include_bytes_deps/input.bin diff --git a/src/test/run-make-fulldeps/include_bytes_deps/input.md b/tests/run-make-fulldeps/include_bytes_deps/input.md similarity index 100% rename from src/test/run-make-fulldeps/include_bytes_deps/input.md rename to tests/run-make-fulldeps/include_bytes_deps/input.md diff --git a/src/test/run-make-fulldeps/include_bytes_deps/input.txt b/tests/run-make-fulldeps/include_bytes_deps/input.txt similarity index 100% rename from src/test/run-make-fulldeps/include_bytes_deps/input.txt rename to tests/run-make-fulldeps/include_bytes_deps/input.txt diff --git a/src/test/run-make-fulldeps/include_bytes_deps/main.rs b/tests/run-make-fulldeps/include_bytes_deps/main.rs similarity index 100% rename from src/test/run-make-fulldeps/include_bytes_deps/main.rs rename to tests/run-make-fulldeps/include_bytes_deps/main.rs diff --git a/src/test/run-make-fulldeps/incr-add-rust-src-component/Makefile b/tests/run-make-fulldeps/incr-add-rust-src-component/Makefile similarity index 100% rename from src/test/run-make-fulldeps/incr-add-rust-src-component/Makefile rename to tests/run-make-fulldeps/incr-add-rust-src-component/Makefile diff --git a/src/test/run-make-fulldeps/incr-add-rust-src-component/main.rs b/tests/run-make-fulldeps/incr-add-rust-src-component/main.rs similarity index 100% rename from src/test/run-make-fulldeps/incr-add-rust-src-component/main.rs rename to tests/run-make-fulldeps/incr-add-rust-src-component/main.rs diff --git a/src/test/run-make-fulldeps/inline-always-many-cgu/Makefile b/tests/run-make-fulldeps/inline-always-many-cgu/Makefile similarity index 100% rename from src/test/run-make-fulldeps/inline-always-many-cgu/Makefile rename to tests/run-make-fulldeps/inline-always-many-cgu/Makefile diff --git a/src/test/run-make-fulldeps/inline-always-many-cgu/foo.rs b/tests/run-make-fulldeps/inline-always-many-cgu/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/inline-always-many-cgu/foo.rs rename to tests/run-make-fulldeps/inline-always-many-cgu/foo.rs diff --git a/src/test/run-make-fulldeps/interdependent-c-libraries/Makefile b/tests/run-make-fulldeps/interdependent-c-libraries/Makefile similarity index 100% rename from src/test/run-make-fulldeps/interdependent-c-libraries/Makefile rename to tests/run-make-fulldeps/interdependent-c-libraries/Makefile diff --git a/src/test/run-make-fulldeps/interdependent-c-libraries/bar.c b/tests/run-make-fulldeps/interdependent-c-libraries/bar.c similarity index 100% rename from src/test/run-make-fulldeps/interdependent-c-libraries/bar.c rename to tests/run-make-fulldeps/interdependent-c-libraries/bar.c diff --git a/src/test/run-make-fulldeps/interdependent-c-libraries/bar.rs b/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/interdependent-c-libraries/bar.rs rename to tests/run-make-fulldeps/interdependent-c-libraries/bar.rs diff --git a/src/test/run-make-fulldeps/interdependent-c-libraries/foo.c b/tests/run-make-fulldeps/interdependent-c-libraries/foo.c similarity index 100% rename from src/test/run-make-fulldeps/interdependent-c-libraries/foo.c rename to tests/run-make-fulldeps/interdependent-c-libraries/foo.c diff --git a/src/test/run-make-fulldeps/interdependent-c-libraries/foo.rs b/tests/run-make-fulldeps/interdependent-c-libraries/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/interdependent-c-libraries/foo.rs rename to tests/run-make-fulldeps/interdependent-c-libraries/foo.rs diff --git a/src/test/run-make-fulldeps/interdependent-c-libraries/main.rs b/tests/run-make-fulldeps/interdependent-c-libraries/main.rs similarity index 100% rename from src/test/run-make-fulldeps/interdependent-c-libraries/main.rs rename to tests/run-make-fulldeps/interdependent-c-libraries/main.rs diff --git a/src/test/run-make-fulldeps/intrinsic-unreachable/Makefile b/tests/run-make-fulldeps/intrinsic-unreachable/Makefile similarity index 100% rename from src/test/run-make-fulldeps/intrinsic-unreachable/Makefile rename to tests/run-make-fulldeps/intrinsic-unreachable/Makefile diff --git a/src/test/run-make-fulldeps/intrinsic-unreachable/exit-ret.rs b/tests/run-make-fulldeps/intrinsic-unreachable/exit-ret.rs similarity index 100% rename from src/test/run-make-fulldeps/intrinsic-unreachable/exit-ret.rs rename to tests/run-make-fulldeps/intrinsic-unreachable/exit-ret.rs diff --git a/src/test/run-make-fulldeps/intrinsic-unreachable/exit-unreachable.rs b/tests/run-make-fulldeps/intrinsic-unreachable/exit-unreachable.rs similarity index 100% rename from src/test/run-make-fulldeps/intrinsic-unreachable/exit-unreachable.rs rename to tests/run-make-fulldeps/intrinsic-unreachable/exit-unreachable.rs diff --git a/src/test/run-make-fulldeps/invalid-library/Makefile b/tests/run-make-fulldeps/invalid-library/Makefile similarity index 100% rename from src/test/run-make-fulldeps/invalid-library/Makefile rename to tests/run-make-fulldeps/invalid-library/Makefile diff --git a/src/test/run-make-fulldeps/invalid-library/foo.rs b/tests/run-make-fulldeps/invalid-library/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/invalid-library/foo.rs rename to tests/run-make-fulldeps/invalid-library/foo.rs diff --git a/src/test/run-make-fulldeps/invalid-staticlib/Makefile b/tests/run-make-fulldeps/invalid-staticlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/invalid-staticlib/Makefile rename to tests/run-make-fulldeps/invalid-staticlib/Makefile diff --git a/src/test/run-make-fulldeps/issue-11908/Makefile b/tests/run-make-fulldeps/issue-11908/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-11908/Makefile rename to tests/run-make-fulldeps/issue-11908/Makefile diff --git a/src/test/run-make-fulldeps/issue-11908/bar.rs b/tests/run-make-fulldeps/issue-11908/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-11908/bar.rs rename to tests/run-make-fulldeps/issue-11908/bar.rs diff --git a/src/test/run-make-fulldeps/issue-11908/foo.rs b/tests/run-make-fulldeps/issue-11908/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-11908/foo.rs rename to tests/run-make-fulldeps/issue-11908/foo.rs diff --git a/src/test/run-make-fulldeps/issue-14500/Makefile b/tests/run-make-fulldeps/issue-14500/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-14500/Makefile rename to tests/run-make-fulldeps/issue-14500/Makefile diff --git a/src/test/run-make-fulldeps/issue-14500/bar.rs b/tests/run-make-fulldeps/issue-14500/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-14500/bar.rs rename to tests/run-make-fulldeps/issue-14500/bar.rs diff --git a/src/test/run-make-fulldeps/issue-14500/foo.c b/tests/run-make-fulldeps/issue-14500/foo.c similarity index 100% rename from src/test/run-make-fulldeps/issue-14500/foo.c rename to tests/run-make-fulldeps/issue-14500/foo.c diff --git a/src/test/run-make-fulldeps/issue-14500/foo.rs b/tests/run-make-fulldeps/issue-14500/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-14500/foo.rs rename to tests/run-make-fulldeps/issue-14500/foo.rs diff --git a/src/test/run-make-fulldeps/issue-14698/Makefile b/tests/run-make-fulldeps/issue-14698/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-14698/Makefile rename to tests/run-make-fulldeps/issue-14698/Makefile diff --git a/src/test/run-make-fulldeps/issue-14698/foo.rs b/tests/run-make-fulldeps/issue-14698/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-14698/foo.rs rename to tests/run-make-fulldeps/issue-14698/foo.rs diff --git a/src/test/run-make-fulldeps/issue-15460/Makefile b/tests/run-make-fulldeps/issue-15460/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-15460/Makefile rename to tests/run-make-fulldeps/issue-15460/Makefile diff --git a/src/test/run-make-fulldeps/issue-15460/bar.rs b/tests/run-make-fulldeps/issue-15460/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-15460/bar.rs rename to tests/run-make-fulldeps/issue-15460/bar.rs diff --git a/src/test/run-make-fulldeps/issue-15460/foo.c b/tests/run-make-fulldeps/issue-15460/foo.c similarity index 100% rename from src/test/run-make-fulldeps/issue-15460/foo.c rename to tests/run-make-fulldeps/issue-15460/foo.c diff --git a/src/test/run-make-fulldeps/issue-15460/foo.rs b/tests/run-make-fulldeps/issue-15460/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-15460/foo.rs rename to tests/run-make-fulldeps/issue-15460/foo.rs diff --git a/src/test/run-make-fulldeps/issue-18943/Makefile b/tests/run-make-fulldeps/issue-18943/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-18943/Makefile rename to tests/run-make-fulldeps/issue-18943/Makefile diff --git a/src/test/run-make-fulldeps/issue-18943/foo.rs b/tests/run-make-fulldeps/issue-18943/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-18943/foo.rs rename to tests/run-make-fulldeps/issue-18943/foo.rs diff --git a/src/test/run-make-fulldeps/issue-19371/Makefile b/tests/run-make-fulldeps/issue-19371/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-19371/Makefile rename to tests/run-make-fulldeps/issue-19371/Makefile diff --git a/src/test/run-make-fulldeps/issue-19371/foo.rs b/tests/run-make-fulldeps/issue-19371/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-19371/foo.rs rename to tests/run-make-fulldeps/issue-19371/foo.rs diff --git a/src/test/run-make-fulldeps/issue-20626/Makefile b/tests/run-make-fulldeps/issue-20626/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-20626/Makefile rename to tests/run-make-fulldeps/issue-20626/Makefile diff --git a/src/test/run-make-fulldeps/issue-20626/foo.rs b/tests/run-make-fulldeps/issue-20626/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-20626/foo.rs rename to tests/run-make-fulldeps/issue-20626/foo.rs diff --git a/src/test/run-make-fulldeps/issue-22131/Makefile b/tests/run-make-fulldeps/issue-22131/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-22131/Makefile rename to tests/run-make-fulldeps/issue-22131/Makefile diff --git a/src/test/run-make-fulldeps/issue-22131/foo.rs b/tests/run-make-fulldeps/issue-22131/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-22131/foo.rs rename to tests/run-make-fulldeps/issue-22131/foo.rs diff --git a/src/test/run-make-fulldeps/issue-24445/Makefile b/tests/run-make-fulldeps/issue-24445/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-24445/Makefile rename to tests/run-make-fulldeps/issue-24445/Makefile diff --git a/src/test/run-make-fulldeps/issue-24445/foo.c b/tests/run-make-fulldeps/issue-24445/foo.c similarity index 100% rename from src/test/run-make-fulldeps/issue-24445/foo.c rename to tests/run-make-fulldeps/issue-24445/foo.c diff --git a/src/test/run-make-fulldeps/issue-24445/foo.rs b/tests/run-make-fulldeps/issue-24445/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-24445/foo.rs rename to tests/run-make-fulldeps/issue-24445/foo.rs diff --git a/src/test/run-make-fulldeps/issue-25581/Makefile b/tests/run-make-fulldeps/issue-25581/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-25581/Makefile rename to tests/run-make-fulldeps/issue-25581/Makefile diff --git a/src/test/run-make-fulldeps/issue-25581/test.c b/tests/run-make-fulldeps/issue-25581/test.c similarity index 100% rename from src/test/run-make-fulldeps/issue-25581/test.c rename to tests/run-make-fulldeps/issue-25581/test.c diff --git a/src/test/run-make-fulldeps/issue-25581/test.rs b/tests/run-make-fulldeps/issue-25581/test.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-25581/test.rs rename to tests/run-make-fulldeps/issue-25581/test.rs diff --git a/src/test/run-make-fulldeps/issue-26006/Makefile b/tests/run-make-fulldeps/issue-26006/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-26006/Makefile rename to tests/run-make-fulldeps/issue-26006/Makefile diff --git a/src/test/run-make-fulldeps/issue-26006/in/libc/lib.rs b/tests/run-make-fulldeps/issue-26006/in/libc/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-26006/in/libc/lib.rs rename to tests/run-make-fulldeps/issue-26006/in/libc/lib.rs diff --git a/src/test/run-make-fulldeps/issue-26006/in/time/lib.rs b/tests/run-make-fulldeps/issue-26006/in/time/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-26006/in/time/lib.rs rename to tests/run-make-fulldeps/issue-26006/in/time/lib.rs diff --git a/src/test/run-make-fulldeps/issue-26092/Makefile b/tests/run-make-fulldeps/issue-26092/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-26092/Makefile rename to tests/run-make-fulldeps/issue-26092/Makefile diff --git a/src/test/run-make-fulldeps/issue-26092/blank.rs b/tests/run-make-fulldeps/issue-26092/blank.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-26092/blank.rs rename to tests/run-make-fulldeps/issue-26092/blank.rs diff --git a/src/test/run-make-fulldeps/issue-28595/Makefile b/tests/run-make-fulldeps/issue-28595/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-28595/Makefile rename to tests/run-make-fulldeps/issue-28595/Makefile diff --git a/src/test/run-make-fulldeps/issue-28595/a.c b/tests/run-make-fulldeps/issue-28595/a.c similarity index 100% rename from src/test/run-make-fulldeps/issue-28595/a.c rename to tests/run-make-fulldeps/issue-28595/a.c diff --git a/src/test/run-make-fulldeps/issue-28595/a.rs b/tests/run-make-fulldeps/issue-28595/a.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-28595/a.rs rename to tests/run-make-fulldeps/issue-28595/a.rs diff --git a/src/test/run-make-fulldeps/issue-28595/b.c b/tests/run-make-fulldeps/issue-28595/b.c similarity index 100% rename from src/test/run-make-fulldeps/issue-28595/b.c rename to tests/run-make-fulldeps/issue-28595/b.c diff --git a/src/test/run-make-fulldeps/issue-28595/b.rs b/tests/run-make-fulldeps/issue-28595/b.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-28595/b.rs rename to tests/run-make-fulldeps/issue-28595/b.rs diff --git a/src/test/run-make-fulldeps/issue-28766/Makefile b/tests/run-make-fulldeps/issue-28766/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-28766/Makefile rename to tests/run-make-fulldeps/issue-28766/Makefile diff --git a/src/test/run-make-fulldeps/issue-28766/foo.rs b/tests/run-make-fulldeps/issue-28766/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-28766/foo.rs rename to tests/run-make-fulldeps/issue-28766/foo.rs diff --git a/src/test/run-make-fulldeps/issue-28766/main.rs b/tests/run-make-fulldeps/issue-28766/main.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-28766/main.rs rename to tests/run-make-fulldeps/issue-28766/main.rs diff --git a/src/test/run-make-fulldeps/issue-30063/Makefile b/tests/run-make-fulldeps/issue-30063/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-30063/Makefile rename to tests/run-make-fulldeps/issue-30063/Makefile diff --git a/src/test/run-make-fulldeps/issue-30063/foo.rs b/tests/run-make-fulldeps/issue-30063/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-30063/foo.rs rename to tests/run-make-fulldeps/issue-30063/foo.rs diff --git a/src/test/run-make-fulldeps/issue-33329/Makefile b/tests/run-make-fulldeps/issue-33329/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-33329/Makefile rename to tests/run-make-fulldeps/issue-33329/Makefile diff --git a/src/test/run-make-fulldeps/issue-33329/main.rs b/tests/run-make-fulldeps/issue-33329/main.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-33329/main.rs rename to tests/run-make-fulldeps/issue-33329/main.rs diff --git a/src/test/run-make-fulldeps/issue-35164/Makefile b/tests/run-make-fulldeps/issue-35164/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-35164/Makefile rename to tests/run-make-fulldeps/issue-35164/Makefile diff --git a/src/test/run-make-fulldeps/issue-35164/main.rs b/tests/run-make-fulldeps/issue-35164/main.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-35164/main.rs rename to tests/run-make-fulldeps/issue-35164/main.rs diff --git a/src/test/run-make-fulldeps/issue-35164/submodule/mod.rs b/tests/run-make-fulldeps/issue-35164/submodule/mod.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-35164/submodule/mod.rs rename to tests/run-make-fulldeps/issue-35164/submodule/mod.rs diff --git a/src/test/run-make-fulldeps/issue-37839/Makefile b/tests/run-make-fulldeps/issue-37839/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-37839/Makefile rename to tests/run-make-fulldeps/issue-37839/Makefile diff --git a/src/test/run-make-fulldeps/issue-37839/a.rs b/tests/run-make-fulldeps/issue-37839/a.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-37839/a.rs rename to tests/run-make-fulldeps/issue-37839/a.rs diff --git a/src/test/run-make-fulldeps/issue-37839/b.rs b/tests/run-make-fulldeps/issue-37839/b.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-37839/b.rs rename to tests/run-make-fulldeps/issue-37839/b.rs diff --git a/src/test/run-make-fulldeps/issue-37839/c.rs b/tests/run-make-fulldeps/issue-37839/c.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-37839/c.rs rename to tests/run-make-fulldeps/issue-37839/c.rs diff --git a/src/test/run-make-fulldeps/issue-37893/Makefile b/tests/run-make-fulldeps/issue-37893/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-37893/Makefile rename to tests/run-make-fulldeps/issue-37893/Makefile diff --git a/src/test/run-make-fulldeps/issue-37893/a.rs b/tests/run-make-fulldeps/issue-37893/a.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-37893/a.rs rename to tests/run-make-fulldeps/issue-37893/a.rs diff --git a/src/test/run-make-fulldeps/issue-37893/b.rs b/tests/run-make-fulldeps/issue-37893/b.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-37893/b.rs rename to tests/run-make-fulldeps/issue-37893/b.rs diff --git a/src/test/run-make-fulldeps/issue-37893/c.rs b/tests/run-make-fulldeps/issue-37893/c.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-37893/c.rs rename to tests/run-make-fulldeps/issue-37893/c.rs diff --git a/src/test/run-make-fulldeps/issue-38237/Makefile b/tests/run-make-fulldeps/issue-38237/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-38237/Makefile rename to tests/run-make-fulldeps/issue-38237/Makefile diff --git a/src/test/run-make-fulldeps/issue-38237/bar.rs b/tests/run-make-fulldeps/issue-38237/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-38237/bar.rs rename to tests/run-make-fulldeps/issue-38237/bar.rs diff --git a/src/test/run-make-fulldeps/issue-38237/baz.rs b/tests/run-make-fulldeps/issue-38237/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-38237/baz.rs rename to tests/run-make-fulldeps/issue-38237/baz.rs diff --git a/src/test/run-make-fulldeps/issue-38237/foo.rs b/tests/run-make-fulldeps/issue-38237/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-38237/foo.rs rename to tests/run-make-fulldeps/issue-38237/foo.rs diff --git a/src/test/run-make-fulldeps/issue-40535/Makefile b/tests/run-make-fulldeps/issue-40535/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-40535/Makefile rename to tests/run-make-fulldeps/issue-40535/Makefile diff --git a/src/test/run-make-fulldeps/issue-40535/bar.rs b/tests/run-make-fulldeps/issue-40535/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-40535/bar.rs rename to tests/run-make-fulldeps/issue-40535/bar.rs diff --git a/src/test/run-make-fulldeps/issue-40535/baz.rs b/tests/run-make-fulldeps/issue-40535/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-40535/baz.rs rename to tests/run-make-fulldeps/issue-40535/baz.rs diff --git a/src/test/run-make-fulldeps/issue-40535/foo.rs b/tests/run-make-fulldeps/issue-40535/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-40535/foo.rs rename to tests/run-make-fulldeps/issue-40535/foo.rs diff --git a/src/test/run-make-fulldeps/issue-46239/Makefile b/tests/run-make-fulldeps/issue-46239/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-46239/Makefile rename to tests/run-make-fulldeps/issue-46239/Makefile diff --git a/src/test/run-make-fulldeps/issue-46239/main.rs b/tests/run-make-fulldeps/issue-46239/main.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-46239/main.rs rename to tests/run-make-fulldeps/issue-46239/main.rs diff --git a/src/test/run-make-fulldeps/issue-47551/Makefile b/tests/run-make-fulldeps/issue-47551/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-47551/Makefile rename to tests/run-make-fulldeps/issue-47551/Makefile diff --git a/src/test/run-make-fulldeps/issue-47551/eh_frame-terminator.rs b/tests/run-make-fulldeps/issue-47551/eh_frame-terminator.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-47551/eh_frame-terminator.rs rename to tests/run-make-fulldeps/issue-47551/eh_frame-terminator.rs diff --git a/src/test/run-make-fulldeps/issue-51671/Makefile b/tests/run-make-fulldeps/issue-51671/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-51671/Makefile rename to tests/run-make-fulldeps/issue-51671/Makefile diff --git a/src/test/run-make-fulldeps/issue-51671/app.rs b/tests/run-make-fulldeps/issue-51671/app.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-51671/app.rs rename to tests/run-make-fulldeps/issue-51671/app.rs diff --git a/src/test/run-make-fulldeps/issue-53964/Makefile b/tests/run-make-fulldeps/issue-53964/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-53964/Makefile rename to tests/run-make-fulldeps/issue-53964/Makefile diff --git a/src/test/run-make-fulldeps/issue-53964/app.rs b/tests/run-make-fulldeps/issue-53964/app.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-53964/app.rs rename to tests/run-make-fulldeps/issue-53964/app.rs diff --git a/src/test/run-make-fulldeps/issue-53964/panic.rs b/tests/run-make-fulldeps/issue-53964/panic.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-53964/panic.rs rename to tests/run-make-fulldeps/issue-53964/panic.rs diff --git a/src/test/run-make-fulldeps/issue-64153/Makefile b/tests/run-make-fulldeps/issue-64153/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-64153/Makefile rename to tests/run-make-fulldeps/issue-64153/Makefile diff --git a/src/test/run-make-fulldeps/issue-64153/downstream.rs b/tests/run-make-fulldeps/issue-64153/downstream.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-64153/downstream.rs rename to tests/run-make-fulldeps/issue-64153/downstream.rs diff --git a/src/test/run-make-fulldeps/issue-64153/upstream.rs b/tests/run-make-fulldeps/issue-64153/upstream.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-64153/upstream.rs rename to tests/run-make-fulldeps/issue-64153/upstream.rs diff --git a/src/test/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/Makefile b/tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/Makefile rename to tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/Makefile diff --git a/src/test/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/bar.c b/tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/bar.c similarity index 100% rename from src/test/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/bar.c rename to tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/bar.c diff --git a/src/test/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/foo.rs b/tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/foo.rs rename to tests/run-make-fulldeps/issue-68794-textrel-on-minimal-lib/foo.rs diff --git a/src/test/run-make-fulldeps/issue-69368/Makefile b/tests/run-make-fulldeps/issue-69368/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-69368/Makefile rename to tests/run-make-fulldeps/issue-69368/Makefile diff --git a/src/test/run-make-fulldeps/issue-69368/a.rs b/tests/run-make-fulldeps/issue-69368/a.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-69368/a.rs rename to tests/run-make-fulldeps/issue-69368/a.rs diff --git a/src/test/run-make-fulldeps/issue-69368/b.rs b/tests/run-make-fulldeps/issue-69368/b.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-69368/b.rs rename to tests/run-make-fulldeps/issue-69368/b.rs diff --git a/src/test/run-make-fulldeps/issue-69368/c.rs b/tests/run-make-fulldeps/issue-69368/c.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-69368/c.rs rename to tests/run-make-fulldeps/issue-69368/c.rs diff --git a/src/test/run-make-fulldeps/issue-7349/Makefile b/tests/run-make-fulldeps/issue-7349/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-7349/Makefile rename to tests/run-make-fulldeps/issue-7349/Makefile diff --git a/src/test/run-make-fulldeps/issue-7349/foo.rs b/tests/run-make-fulldeps/issue-7349/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-7349/foo.rs rename to tests/run-make-fulldeps/issue-7349/foo.rs diff --git a/src/test/run-make-fulldeps/issue-83045/Makefile b/tests/run-make-fulldeps/issue-83045/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-83045/Makefile rename to tests/run-make-fulldeps/issue-83045/Makefile diff --git a/src/test/run-make-fulldeps/issue-83045/a.rs b/tests/run-make-fulldeps/issue-83045/a.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-83045/a.rs rename to tests/run-make-fulldeps/issue-83045/a.rs diff --git a/src/test/run-make-fulldeps/issue-83045/b.rs b/tests/run-make-fulldeps/issue-83045/b.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-83045/b.rs rename to tests/run-make-fulldeps/issue-83045/b.rs diff --git a/src/test/run-make-fulldeps/issue-83045/c.rs b/tests/run-make-fulldeps/issue-83045/c.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-83045/c.rs rename to tests/run-make-fulldeps/issue-83045/c.rs diff --git a/src/test/run-make-fulldeps/issue-84395-lto-embed-bitcode/Makefile b/tests/run-make-fulldeps/issue-84395-lto-embed-bitcode/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-84395-lto-embed-bitcode/Makefile rename to tests/run-make-fulldeps/issue-84395-lto-embed-bitcode/Makefile diff --git a/src/test/run-make-fulldeps/issue-84395-lto-embed-bitcode/test.rs b/tests/run-make-fulldeps/issue-84395-lto-embed-bitcode/test.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-84395-lto-embed-bitcode/test.rs rename to tests/run-make-fulldeps/issue-84395-lto-embed-bitcode/test.rs diff --git a/src/test/run-make-fulldeps/issue-97463-abi-param-passing/Makefile b/tests/run-make-fulldeps/issue-97463-abi-param-passing/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue-97463-abi-param-passing/Makefile rename to tests/run-make-fulldeps/issue-97463-abi-param-passing/Makefile diff --git a/src/test/run-make-fulldeps/issue-97463-abi-param-passing/bad.c b/tests/run-make-fulldeps/issue-97463-abi-param-passing/bad.c similarity index 100% rename from src/test/run-make-fulldeps/issue-97463-abi-param-passing/bad.c rename to tests/run-make-fulldeps/issue-97463-abi-param-passing/bad.c diff --git a/src/test/run-make-fulldeps/issue-97463-abi-param-passing/param_passing.rs b/tests/run-make-fulldeps/issue-97463-abi-param-passing/param_passing.rs similarity index 100% rename from src/test/run-make-fulldeps/issue-97463-abi-param-passing/param_passing.rs rename to tests/run-make-fulldeps/issue-97463-abi-param-passing/param_passing.rs diff --git a/src/test/run-make-fulldeps/issue64319/Makefile b/tests/run-make-fulldeps/issue64319/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issue64319/Makefile rename to tests/run-make-fulldeps/issue64319/Makefile diff --git a/src/test/run-make-fulldeps/issue64319/bar.rs b/tests/run-make-fulldeps/issue64319/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/issue64319/bar.rs rename to tests/run-make-fulldeps/issue64319/bar.rs diff --git a/src/test/run-make-fulldeps/issue64319/foo.rs b/tests/run-make-fulldeps/issue64319/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/issue64319/foo.rs rename to tests/run-make-fulldeps/issue64319/foo.rs diff --git a/src/test/run-make-fulldeps/issues-41478-43796/Makefile b/tests/run-make-fulldeps/issues-41478-43796/Makefile similarity index 100% rename from src/test/run-make-fulldeps/issues-41478-43796/Makefile rename to tests/run-make-fulldeps/issues-41478-43796/Makefile diff --git a/src/test/run-make-fulldeps/issues-41478-43796/a.rs b/tests/run-make-fulldeps/issues-41478-43796/a.rs similarity index 100% rename from src/test/run-make-fulldeps/issues-41478-43796/a.rs rename to tests/run-make-fulldeps/issues-41478-43796/a.rs diff --git a/src/test/run-make-fulldeps/libs-through-symlinks/Makefile b/tests/run-make-fulldeps/libs-through-symlinks/Makefile similarity index 100% rename from src/test/run-make-fulldeps/libs-through-symlinks/Makefile rename to tests/run-make-fulldeps/libs-through-symlinks/Makefile diff --git a/src/test/run-make-fulldeps/libs-through-symlinks/bar.rs b/tests/run-make-fulldeps/libs-through-symlinks/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/libs-through-symlinks/bar.rs rename to tests/run-make-fulldeps/libs-through-symlinks/bar.rs diff --git a/src/test/run-make-fulldeps/libs-through-symlinks/foo.rs b/tests/run-make-fulldeps/libs-through-symlinks/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/libs-through-symlinks/foo.rs rename to tests/run-make-fulldeps/libs-through-symlinks/foo.rs diff --git a/src/test/run-make-fulldeps/libtest-json/Makefile b/tests/run-make-fulldeps/libtest-json/Makefile similarity index 100% rename from src/test/run-make-fulldeps/libtest-json/Makefile rename to tests/run-make-fulldeps/libtest-json/Makefile diff --git a/src/test/run-make-fulldeps/libtest-json/f.rs b/tests/run-make-fulldeps/libtest-json/f.rs similarity index 100% rename from src/test/run-make-fulldeps/libtest-json/f.rs rename to tests/run-make-fulldeps/libtest-json/f.rs diff --git a/src/test/run-make-fulldeps/libtest-json/output-default.json b/tests/run-make-fulldeps/libtest-json/output-default.json similarity index 100% rename from src/test/run-make-fulldeps/libtest-json/output-default.json rename to tests/run-make-fulldeps/libtest-json/output-default.json diff --git a/src/test/run-make-fulldeps/libtest-json/output-stdout-success.json b/tests/run-make-fulldeps/libtest-json/output-stdout-success.json similarity index 100% rename from src/test/run-make-fulldeps/libtest-json/output-stdout-success.json rename to tests/run-make-fulldeps/libtest-json/output-stdout-success.json diff --git a/src/test/run-make-fulldeps/libtest-json/validate_json.py b/tests/run-make-fulldeps/libtest-json/validate_json.py similarity index 100% rename from src/test/run-make-fulldeps/libtest-json/validate_json.py rename to tests/run-make-fulldeps/libtest-json/validate_json.py diff --git a/src/test/run-make-fulldeps/link-arg/Makefile b/tests/run-make-fulldeps/link-arg/Makefile similarity index 100% rename from src/test/run-make-fulldeps/link-arg/Makefile rename to tests/run-make-fulldeps/link-arg/Makefile diff --git a/src/test/run-make-fulldeps/link-arg/empty.rs b/tests/run-make-fulldeps/link-arg/empty.rs similarity index 100% rename from src/test/run-make-fulldeps/link-arg/empty.rs rename to tests/run-make-fulldeps/link-arg/empty.rs diff --git a/src/test/run-make-fulldeps/link-args-order/Makefile b/tests/run-make-fulldeps/link-args-order/Makefile similarity index 100% rename from src/test/run-make-fulldeps/link-args-order/Makefile rename to tests/run-make-fulldeps/link-args-order/Makefile diff --git a/src/test/run-make-fulldeps/link-args-order/empty.rs b/tests/run-make-fulldeps/link-args-order/empty.rs similarity index 100% rename from src/test/run-make-fulldeps/link-args-order/empty.rs rename to tests/run-make-fulldeps/link-args-order/empty.rs diff --git a/src/test/run-make-fulldeps/link-cfg/Makefile b/tests/run-make-fulldeps/link-cfg/Makefile similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/Makefile rename to tests/run-make-fulldeps/link-cfg/Makefile diff --git a/src/test/run-make-fulldeps/link-cfg/dep-with-staticlib.rs b/tests/run-make-fulldeps/link-cfg/dep-with-staticlib.rs similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/dep-with-staticlib.rs rename to tests/run-make-fulldeps/link-cfg/dep-with-staticlib.rs diff --git a/src/test/run-make-fulldeps/link-cfg/dep.rs b/tests/run-make-fulldeps/link-cfg/dep.rs similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/dep.rs rename to tests/run-make-fulldeps/link-cfg/dep.rs diff --git a/src/test/run-make-fulldeps/link-cfg/no-deps.rs b/tests/run-make-fulldeps/link-cfg/no-deps.rs similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/no-deps.rs rename to tests/run-make-fulldeps/link-cfg/no-deps.rs diff --git a/src/test/run-make-fulldeps/link-cfg/return1.c b/tests/run-make-fulldeps/link-cfg/return1.c similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/return1.c rename to tests/run-make-fulldeps/link-cfg/return1.c diff --git a/src/test/run-make-fulldeps/link-cfg/return2.c b/tests/run-make-fulldeps/link-cfg/return2.c similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/return2.c rename to tests/run-make-fulldeps/link-cfg/return2.c diff --git a/src/test/run-make-fulldeps/link-cfg/return3.c b/tests/run-make-fulldeps/link-cfg/return3.c similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/return3.c rename to tests/run-make-fulldeps/link-cfg/return3.c diff --git a/src/test/run-make-fulldeps/link-cfg/with-deps.rs b/tests/run-make-fulldeps/link-cfg/with-deps.rs similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/with-deps.rs rename to tests/run-make-fulldeps/link-cfg/with-deps.rs diff --git a/src/test/run-make-fulldeps/link-cfg/with-staticlib-deps.rs b/tests/run-make-fulldeps/link-cfg/with-staticlib-deps.rs similarity index 100% rename from src/test/run-make-fulldeps/link-cfg/with-staticlib-deps.rs rename to tests/run-make-fulldeps/link-cfg/with-staticlib-deps.rs diff --git a/src/test/run-make-fulldeps/link-dedup/Makefile b/tests/run-make-fulldeps/link-dedup/Makefile similarity index 100% rename from src/test/run-make-fulldeps/link-dedup/Makefile rename to tests/run-make-fulldeps/link-dedup/Makefile diff --git a/src/test/run-make-fulldeps/link-dedup/depa.rs b/tests/run-make-fulldeps/link-dedup/depa.rs similarity index 100% rename from src/test/run-make-fulldeps/link-dedup/depa.rs rename to tests/run-make-fulldeps/link-dedup/depa.rs diff --git a/src/test/run-make-fulldeps/link-dedup/depb.rs b/tests/run-make-fulldeps/link-dedup/depb.rs similarity index 100% rename from src/test/run-make-fulldeps/link-dedup/depb.rs rename to tests/run-make-fulldeps/link-dedup/depb.rs diff --git a/src/test/run-make-fulldeps/link-dedup/depc.rs b/tests/run-make-fulldeps/link-dedup/depc.rs similarity index 100% rename from src/test/run-make-fulldeps/link-dedup/depc.rs rename to tests/run-make-fulldeps/link-dedup/depc.rs diff --git a/src/test/run-make-fulldeps/link-dedup/empty.rs b/tests/run-make-fulldeps/link-dedup/empty.rs similarity index 100% rename from src/test/run-make-fulldeps/link-dedup/empty.rs rename to tests/run-make-fulldeps/link-dedup/empty.rs diff --git a/src/test/run-make-fulldeps/link-path-order/Makefile b/tests/run-make-fulldeps/link-path-order/Makefile similarity index 100% rename from src/test/run-make-fulldeps/link-path-order/Makefile rename to tests/run-make-fulldeps/link-path-order/Makefile diff --git a/src/test/run-make-fulldeps/link-path-order/correct.c b/tests/run-make-fulldeps/link-path-order/correct.c similarity index 100% rename from src/test/run-make-fulldeps/link-path-order/correct.c rename to tests/run-make-fulldeps/link-path-order/correct.c diff --git a/src/test/run-make-fulldeps/link-path-order/main.rs b/tests/run-make-fulldeps/link-path-order/main.rs similarity index 100% rename from src/test/run-make-fulldeps/link-path-order/main.rs rename to tests/run-make-fulldeps/link-path-order/main.rs diff --git a/src/test/run-make-fulldeps/link-path-order/wrong.c b/tests/run-make-fulldeps/link-path-order/wrong.c similarity index 100% rename from src/test/run-make-fulldeps/link-path-order/wrong.c rename to tests/run-make-fulldeps/link-path-order/wrong.c diff --git a/src/test/run-make-fulldeps/linkage-attr-on-static/Makefile b/tests/run-make-fulldeps/linkage-attr-on-static/Makefile similarity index 100% rename from src/test/run-make-fulldeps/linkage-attr-on-static/Makefile rename to tests/run-make-fulldeps/linkage-attr-on-static/Makefile diff --git a/src/test/run-make-fulldeps/linkage-attr-on-static/bar.rs b/tests/run-make-fulldeps/linkage-attr-on-static/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/linkage-attr-on-static/bar.rs rename to tests/run-make-fulldeps/linkage-attr-on-static/bar.rs diff --git a/src/test/run-make-fulldeps/linkage-attr-on-static/foo.c b/tests/run-make-fulldeps/linkage-attr-on-static/foo.c similarity index 100% rename from src/test/run-make-fulldeps/linkage-attr-on-static/foo.c rename to tests/run-make-fulldeps/linkage-attr-on-static/foo.c diff --git a/src/test/run-make-fulldeps/long-linker-command-lines-cmd-exe/Makefile b/tests/run-make-fulldeps/long-linker-command-lines-cmd-exe/Makefile similarity index 100% rename from src/test/run-make-fulldeps/long-linker-command-lines-cmd-exe/Makefile rename to tests/run-make-fulldeps/long-linker-command-lines-cmd-exe/Makefile diff --git a/src/test/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.bat b/tests/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.bat similarity index 100% rename from src/test/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.bat rename to tests/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.bat diff --git a/src/test/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.rs b/tests/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.rs rename to tests/run-make-fulldeps/long-linker-command-lines-cmd-exe/foo.rs diff --git a/src/test/run-make-fulldeps/long-linker-command-lines/Makefile b/tests/run-make-fulldeps/long-linker-command-lines/Makefile similarity index 100% rename from src/test/run-make-fulldeps/long-linker-command-lines/Makefile rename to tests/run-make-fulldeps/long-linker-command-lines/Makefile diff --git a/src/test/run-make-fulldeps/long-linker-command-lines/foo.rs b/tests/run-make-fulldeps/long-linker-command-lines/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/long-linker-command-lines/foo.rs rename to tests/run-make-fulldeps/long-linker-command-lines/foo.rs diff --git a/src/test/run-make-fulldeps/longjmp-across-rust/Makefile b/tests/run-make-fulldeps/longjmp-across-rust/Makefile similarity index 100% rename from src/test/run-make-fulldeps/longjmp-across-rust/Makefile rename to tests/run-make-fulldeps/longjmp-across-rust/Makefile diff --git a/src/test/run-make-fulldeps/longjmp-across-rust/foo.c b/tests/run-make-fulldeps/longjmp-across-rust/foo.c similarity index 100% rename from src/test/run-make-fulldeps/longjmp-across-rust/foo.c rename to tests/run-make-fulldeps/longjmp-across-rust/foo.c diff --git a/src/test/run-make-fulldeps/longjmp-across-rust/main.rs b/tests/run-make-fulldeps/longjmp-across-rust/main.rs similarity index 100% rename from src/test/run-make-fulldeps/longjmp-across-rust/main.rs rename to tests/run-make-fulldeps/longjmp-across-rust/main.rs diff --git a/src/test/run-make-fulldeps/ls-metadata/Makefile b/tests/run-make-fulldeps/ls-metadata/Makefile similarity index 100% rename from src/test/run-make-fulldeps/ls-metadata/Makefile rename to tests/run-make-fulldeps/ls-metadata/Makefile diff --git a/src/test/run-make-fulldeps/ls-metadata/foo.rs b/tests/run-make-fulldeps/ls-metadata/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/ls-metadata/foo.rs rename to tests/run-make-fulldeps/ls-metadata/foo.rs diff --git a/src/test/run-make-fulldeps/lto-dylib-dep/Makefile b/tests/run-make-fulldeps/lto-dylib-dep/Makefile similarity index 100% rename from src/test/run-make-fulldeps/lto-dylib-dep/Makefile rename to tests/run-make-fulldeps/lto-dylib-dep/Makefile diff --git a/src/test/run-make-fulldeps/lto-dylib-dep/a_dylib.rs b/tests/run-make-fulldeps/lto-dylib-dep/a_dylib.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-dylib-dep/a_dylib.rs rename to tests/run-make-fulldeps/lto-dylib-dep/a_dylib.rs diff --git a/src/test/run-make-fulldeps/lto-dylib-dep/main.rs b/tests/run-make-fulldeps/lto-dylib-dep/main.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-dylib-dep/main.rs rename to tests/run-make-fulldeps/lto-dylib-dep/main.rs diff --git a/src/test/run-make-fulldeps/lto-empty/Makefile b/tests/run-make-fulldeps/lto-empty/Makefile similarity index 100% rename from src/test/run-make-fulldeps/lto-empty/Makefile rename to tests/run-make-fulldeps/lto-empty/Makefile diff --git a/src/test/run-make-fulldeps/lto-empty/lib.rs b/tests/run-make-fulldeps/lto-empty/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-empty/lib.rs rename to tests/run-make-fulldeps/lto-empty/lib.rs diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/Makefile b/tests/run-make-fulldeps/lto-no-link-whole-rlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/lto-no-link-whole-rlib/Makefile rename to tests/run-make-fulldeps/lto-no-link-whole-rlib/Makefile diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/bar.c b/tests/run-make-fulldeps/lto-no-link-whole-rlib/bar.c similarity index 100% rename from src/test/run-make-fulldeps/lto-no-link-whole-rlib/bar.c rename to tests/run-make-fulldeps/lto-no-link-whole-rlib/bar.c diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/foo.c b/tests/run-make-fulldeps/lto-no-link-whole-rlib/foo.c similarity index 100% rename from src/test/run-make-fulldeps/lto-no-link-whole-rlib/foo.c rename to tests/run-make-fulldeps/lto-no-link-whole-rlib/foo.c diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs b/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs rename to tests/run-make-fulldeps/lto-no-link-whole-rlib/lib1.rs diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs b/tests/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs rename to tests/run-make-fulldeps/lto-no-link-whole-rlib/lib2.rs diff --git a/src/test/run-make-fulldeps/lto-no-link-whole-rlib/main.rs b/tests/run-make-fulldeps/lto-no-link-whole-rlib/main.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-no-link-whole-rlib/main.rs rename to tests/run-make-fulldeps/lto-no-link-whole-rlib/main.rs diff --git a/src/test/run-make-fulldeps/lto-readonly-lib/Makefile b/tests/run-make-fulldeps/lto-readonly-lib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/lto-readonly-lib/Makefile rename to tests/run-make-fulldeps/lto-readonly-lib/Makefile diff --git a/src/test/run-make-fulldeps/lto-readonly-lib/lib.rs b/tests/run-make-fulldeps/lto-readonly-lib/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-readonly-lib/lib.rs rename to tests/run-make-fulldeps/lto-readonly-lib/lib.rs diff --git a/src/test/run-make-fulldeps/lto-readonly-lib/main.rs b/tests/run-make-fulldeps/lto-readonly-lib/main.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-readonly-lib/main.rs rename to tests/run-make-fulldeps/lto-readonly-lib/main.rs diff --git a/src/test/run-make-fulldeps/lto-smoke-c/Makefile b/tests/run-make-fulldeps/lto-smoke-c/Makefile similarity index 100% rename from src/test/run-make-fulldeps/lto-smoke-c/Makefile rename to tests/run-make-fulldeps/lto-smoke-c/Makefile diff --git a/src/test/run-make-fulldeps/lto-smoke-c/bar.c b/tests/run-make-fulldeps/lto-smoke-c/bar.c similarity index 100% rename from src/test/run-make-fulldeps/lto-smoke-c/bar.c rename to tests/run-make-fulldeps/lto-smoke-c/bar.c diff --git a/src/test/run-make-fulldeps/lto-smoke-c/foo.rs b/tests/run-make-fulldeps/lto-smoke-c/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-smoke-c/foo.rs rename to tests/run-make-fulldeps/lto-smoke-c/foo.rs diff --git a/src/test/run-make-fulldeps/lto-smoke/Makefile b/tests/run-make-fulldeps/lto-smoke/Makefile similarity index 100% rename from src/test/run-make-fulldeps/lto-smoke/Makefile rename to tests/run-make-fulldeps/lto-smoke/Makefile diff --git a/src/test/run-make-fulldeps/lto-smoke/lib.rs b/tests/run-make-fulldeps/lto-smoke/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-smoke/lib.rs rename to tests/run-make-fulldeps/lto-smoke/lib.rs diff --git a/src/test/run-make-fulldeps/lto-smoke/main.rs b/tests/run-make-fulldeps/lto-smoke/main.rs similarity index 100% rename from src/test/run-make-fulldeps/lto-smoke/main.rs rename to tests/run-make-fulldeps/lto-smoke/main.rs diff --git a/src/test/run-make-fulldeps/manual-crate-name/Makefile b/tests/run-make-fulldeps/manual-crate-name/Makefile similarity index 100% rename from src/test/run-make-fulldeps/manual-crate-name/Makefile rename to tests/run-make-fulldeps/manual-crate-name/Makefile diff --git a/src/test/run-make-fulldeps/manual-crate-name/bar.rs b/tests/run-make-fulldeps/manual-crate-name/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/manual-crate-name/bar.rs rename to tests/run-make-fulldeps/manual-crate-name/bar.rs diff --git a/src/test/run-make-fulldeps/manual-link/Makefile b/tests/run-make-fulldeps/manual-link/Makefile similarity index 100% rename from src/test/run-make-fulldeps/manual-link/Makefile rename to tests/run-make-fulldeps/manual-link/Makefile diff --git a/src/test/run-make-fulldeps/manual-link/bar.c b/tests/run-make-fulldeps/manual-link/bar.c similarity index 100% rename from src/test/run-make-fulldeps/manual-link/bar.c rename to tests/run-make-fulldeps/manual-link/bar.c diff --git a/src/test/run-make-fulldeps/manual-link/foo.c b/tests/run-make-fulldeps/manual-link/foo.c similarity index 100% rename from src/test/run-make-fulldeps/manual-link/foo.c rename to tests/run-make-fulldeps/manual-link/foo.c diff --git a/src/test/run-make-fulldeps/manual-link/foo.rs b/tests/run-make-fulldeps/manual-link/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/manual-link/foo.rs rename to tests/run-make-fulldeps/manual-link/foo.rs diff --git a/src/test/run-make-fulldeps/manual-link/main.rs b/tests/run-make-fulldeps/manual-link/main.rs similarity index 100% rename from src/test/run-make-fulldeps/manual-link/main.rs rename to tests/run-make-fulldeps/manual-link/main.rs diff --git a/src/test/run-make-fulldeps/many-crates-but-no-match/Makefile b/tests/run-make-fulldeps/many-crates-but-no-match/Makefile similarity index 100% rename from src/test/run-make-fulldeps/many-crates-but-no-match/Makefile rename to tests/run-make-fulldeps/many-crates-but-no-match/Makefile diff --git a/src/test/run-make-fulldeps/many-crates-but-no-match/crateA1.rs b/tests/run-make-fulldeps/many-crates-but-no-match/crateA1.rs similarity index 100% rename from src/test/run-make-fulldeps/many-crates-but-no-match/crateA1.rs rename to tests/run-make-fulldeps/many-crates-but-no-match/crateA1.rs diff --git a/src/test/run-make-fulldeps/many-crates-but-no-match/crateA2.rs b/tests/run-make-fulldeps/many-crates-but-no-match/crateA2.rs similarity index 100% rename from src/test/run-make-fulldeps/many-crates-but-no-match/crateA2.rs rename to tests/run-make-fulldeps/many-crates-but-no-match/crateA2.rs diff --git a/src/test/run-make-fulldeps/many-crates-but-no-match/crateA3.rs b/tests/run-make-fulldeps/many-crates-but-no-match/crateA3.rs similarity index 100% rename from src/test/run-make-fulldeps/many-crates-but-no-match/crateA3.rs rename to tests/run-make-fulldeps/many-crates-but-no-match/crateA3.rs diff --git a/src/test/run-make-fulldeps/many-crates-but-no-match/crateB.rs b/tests/run-make-fulldeps/many-crates-but-no-match/crateB.rs similarity index 100% rename from src/test/run-make-fulldeps/many-crates-but-no-match/crateB.rs rename to tests/run-make-fulldeps/many-crates-but-no-match/crateB.rs diff --git a/src/test/run-make-fulldeps/many-crates-but-no-match/crateC.rs b/tests/run-make-fulldeps/many-crates-but-no-match/crateC.rs similarity index 100% rename from src/test/run-make-fulldeps/many-crates-but-no-match/crateC.rs rename to tests/run-make-fulldeps/many-crates-but-no-match/crateC.rs diff --git a/src/test/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile b/tests/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile similarity index 100% rename from src/test/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile rename to tests/run-make-fulldeps/metadata-flag-frobs-symbols/Makefile diff --git a/src/test/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs b/tests/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs rename to tests/run-make-fulldeps/metadata-flag-frobs-symbols/bar.rs diff --git a/src/test/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs b/tests/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs rename to tests/run-make-fulldeps/metadata-flag-frobs-symbols/foo.rs diff --git a/src/test/run-make-fulldeps/min-global-align/Makefile b/tests/run-make-fulldeps/min-global-align/Makefile similarity index 100% rename from src/test/run-make-fulldeps/min-global-align/Makefile rename to tests/run-make-fulldeps/min-global-align/Makefile diff --git a/src/test/run-make-fulldeps/min-global-align/min_global_align.rs b/tests/run-make-fulldeps/min-global-align/min_global_align.rs similarity index 100% rename from src/test/run-make-fulldeps/min-global-align/min_global_align.rs rename to tests/run-make-fulldeps/min-global-align/min_global_align.rs diff --git a/src/test/run-make-fulldeps/mingw-export-call-convention/Makefile b/tests/run-make-fulldeps/mingw-export-call-convention/Makefile similarity index 100% rename from src/test/run-make-fulldeps/mingw-export-call-convention/Makefile rename to tests/run-make-fulldeps/mingw-export-call-convention/Makefile diff --git a/src/test/run-make-fulldeps/mingw-export-call-convention/foo.rs b/tests/run-make-fulldeps/mingw-export-call-convention/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/mingw-export-call-convention/foo.rs rename to tests/run-make-fulldeps/mingw-export-call-convention/foo.rs diff --git a/src/test/run-make-fulldeps/mismatching-target-triples/Makefile b/tests/run-make-fulldeps/mismatching-target-triples/Makefile similarity index 100% rename from src/test/run-make-fulldeps/mismatching-target-triples/Makefile rename to tests/run-make-fulldeps/mismatching-target-triples/Makefile diff --git a/src/test/run-make-fulldeps/mismatching-target-triples/bar.rs b/tests/run-make-fulldeps/mismatching-target-triples/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/mismatching-target-triples/bar.rs rename to tests/run-make-fulldeps/mismatching-target-triples/bar.rs diff --git a/src/test/run-make-fulldeps/mismatching-target-triples/foo.rs b/tests/run-make-fulldeps/mismatching-target-triples/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/mismatching-target-triples/foo.rs rename to tests/run-make-fulldeps/mismatching-target-triples/foo.rs diff --git a/src/test/run-make-fulldeps/missing-crate-dependency/Makefile b/tests/run-make-fulldeps/missing-crate-dependency/Makefile similarity index 100% rename from src/test/run-make-fulldeps/missing-crate-dependency/Makefile rename to tests/run-make-fulldeps/missing-crate-dependency/Makefile diff --git a/src/test/run-make-fulldeps/missing-crate-dependency/crateA.rs b/tests/run-make-fulldeps/missing-crate-dependency/crateA.rs similarity index 100% rename from src/test/run-make-fulldeps/missing-crate-dependency/crateA.rs rename to tests/run-make-fulldeps/missing-crate-dependency/crateA.rs diff --git a/src/test/run-make-fulldeps/missing-crate-dependency/crateB.rs b/tests/run-make-fulldeps/missing-crate-dependency/crateB.rs similarity index 100% rename from src/test/run-make-fulldeps/missing-crate-dependency/crateB.rs rename to tests/run-make-fulldeps/missing-crate-dependency/crateB.rs diff --git a/src/test/run-make-fulldeps/missing-crate-dependency/crateC.rs b/tests/run-make-fulldeps/missing-crate-dependency/crateC.rs similarity index 100% rename from src/test/run-make-fulldeps/missing-crate-dependency/crateC.rs rename to tests/run-make-fulldeps/missing-crate-dependency/crateC.rs diff --git a/src/test/run-make-fulldeps/mixing-deps/Makefile b/tests/run-make-fulldeps/mixing-deps/Makefile similarity index 100% rename from src/test/run-make-fulldeps/mixing-deps/Makefile rename to tests/run-make-fulldeps/mixing-deps/Makefile diff --git a/src/test/run-make-fulldeps/mixing-deps/both.rs b/tests/run-make-fulldeps/mixing-deps/both.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-deps/both.rs rename to tests/run-make-fulldeps/mixing-deps/both.rs diff --git a/src/test/run-make-fulldeps/mixing-deps/dylib.rs b/tests/run-make-fulldeps/mixing-deps/dylib.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-deps/dylib.rs rename to tests/run-make-fulldeps/mixing-deps/dylib.rs diff --git a/src/test/run-make-fulldeps/mixing-deps/prog.rs b/tests/run-make-fulldeps/mixing-deps/prog.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-deps/prog.rs rename to tests/run-make-fulldeps/mixing-deps/prog.rs diff --git a/src/test/run-make-fulldeps/mixing-formats/Makefile b/tests/run-make-fulldeps/mixing-formats/Makefile similarity index 100% rename from src/test/run-make-fulldeps/mixing-formats/Makefile rename to tests/run-make-fulldeps/mixing-formats/Makefile diff --git a/src/test/run-make-fulldeps/mixing-formats/bar1.rs b/tests/run-make-fulldeps/mixing-formats/bar1.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-formats/bar1.rs rename to tests/run-make-fulldeps/mixing-formats/bar1.rs diff --git a/src/test/run-make-fulldeps/mixing-formats/bar2.rs b/tests/run-make-fulldeps/mixing-formats/bar2.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-formats/bar2.rs rename to tests/run-make-fulldeps/mixing-formats/bar2.rs diff --git a/src/test/run-make-fulldeps/mixing-formats/baz.rs b/tests/run-make-fulldeps/mixing-formats/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-formats/baz.rs rename to tests/run-make-fulldeps/mixing-formats/baz.rs diff --git a/src/test/run-make-fulldeps/mixing-formats/baz2.rs b/tests/run-make-fulldeps/mixing-formats/baz2.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-formats/baz2.rs rename to tests/run-make-fulldeps/mixing-formats/baz2.rs diff --git a/src/test/run-make-fulldeps/mixing-formats/foo.rs b/tests/run-make-fulldeps/mixing-formats/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-formats/foo.rs rename to tests/run-make-fulldeps/mixing-formats/foo.rs diff --git a/src/test/run-make-fulldeps/mixing-libs/Makefile b/tests/run-make-fulldeps/mixing-libs/Makefile similarity index 100% rename from src/test/run-make-fulldeps/mixing-libs/Makefile rename to tests/run-make-fulldeps/mixing-libs/Makefile diff --git a/src/test/run-make-fulldeps/mixing-libs/dylib.rs b/tests/run-make-fulldeps/mixing-libs/dylib.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-libs/dylib.rs rename to tests/run-make-fulldeps/mixing-libs/dylib.rs diff --git a/src/test/run-make-fulldeps/mixing-libs/prog.rs b/tests/run-make-fulldeps/mixing-libs/prog.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-libs/prog.rs rename to tests/run-make-fulldeps/mixing-libs/prog.rs diff --git a/src/test/run-make-fulldeps/mixing-libs/rlib.rs b/tests/run-make-fulldeps/mixing-libs/rlib.rs similarity index 100% rename from src/test/run-make-fulldeps/mixing-libs/rlib.rs rename to tests/run-make-fulldeps/mixing-libs/rlib.rs diff --git a/src/test/run-make-fulldeps/msvc-opt-minsize/Makefile b/tests/run-make-fulldeps/msvc-opt-minsize/Makefile similarity index 100% rename from src/test/run-make-fulldeps/msvc-opt-minsize/Makefile rename to tests/run-make-fulldeps/msvc-opt-minsize/Makefile diff --git a/src/test/run-make-fulldeps/msvc-opt-minsize/foo.rs b/tests/run-make-fulldeps/msvc-opt-minsize/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/msvc-opt-minsize/foo.rs rename to tests/run-make-fulldeps/msvc-opt-minsize/foo.rs diff --git a/src/test/run-make-fulldeps/multiple-emits/Makefile b/tests/run-make-fulldeps/multiple-emits/Makefile similarity index 100% rename from src/test/run-make-fulldeps/multiple-emits/Makefile rename to tests/run-make-fulldeps/multiple-emits/Makefile diff --git a/src/test/run-make-fulldeps/multiple-emits/foo.rs b/tests/run-make-fulldeps/multiple-emits/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/multiple-emits/foo.rs rename to tests/run-make-fulldeps/multiple-emits/foo.rs diff --git a/src/test/run-make-fulldeps/no-builtins-lto/Makefile b/tests/run-make-fulldeps/no-builtins-lto/Makefile similarity index 100% rename from src/test/run-make-fulldeps/no-builtins-lto/Makefile rename to tests/run-make-fulldeps/no-builtins-lto/Makefile diff --git a/src/test/run-make-fulldeps/no-builtins-lto/main.rs b/tests/run-make-fulldeps/no-builtins-lto/main.rs similarity index 100% rename from src/test/run-make-fulldeps/no-builtins-lto/main.rs rename to tests/run-make-fulldeps/no-builtins-lto/main.rs diff --git a/src/test/run-make-fulldeps/no-builtins-lto/no_builtins.rs b/tests/run-make-fulldeps/no-builtins-lto/no_builtins.rs similarity index 100% rename from src/test/run-make-fulldeps/no-builtins-lto/no_builtins.rs rename to tests/run-make-fulldeps/no-builtins-lto/no_builtins.rs diff --git a/src/test/run-make-fulldeps/no-duplicate-libs/Makefile b/tests/run-make-fulldeps/no-duplicate-libs/Makefile similarity index 100% rename from src/test/run-make-fulldeps/no-duplicate-libs/Makefile rename to tests/run-make-fulldeps/no-duplicate-libs/Makefile diff --git a/src/test/run-make-fulldeps/no-duplicate-libs/bar.c b/tests/run-make-fulldeps/no-duplicate-libs/bar.c similarity index 100% rename from src/test/run-make-fulldeps/no-duplicate-libs/bar.c rename to tests/run-make-fulldeps/no-duplicate-libs/bar.c diff --git a/src/test/run-make-fulldeps/no-duplicate-libs/foo.c b/tests/run-make-fulldeps/no-duplicate-libs/foo.c similarity index 100% rename from src/test/run-make-fulldeps/no-duplicate-libs/foo.c rename to tests/run-make-fulldeps/no-duplicate-libs/foo.c diff --git a/src/test/run-make-fulldeps/no-duplicate-libs/main.rs b/tests/run-make-fulldeps/no-duplicate-libs/main.rs similarity index 100% rename from src/test/run-make-fulldeps/no-duplicate-libs/main.rs rename to tests/run-make-fulldeps/no-duplicate-libs/main.rs diff --git a/src/test/run-make-fulldeps/no-intermediate-extras/Makefile b/tests/run-make-fulldeps/no-intermediate-extras/Makefile similarity index 100% rename from src/test/run-make-fulldeps/no-intermediate-extras/Makefile rename to tests/run-make-fulldeps/no-intermediate-extras/Makefile diff --git a/src/test/run-make-fulldeps/no-intermediate-extras/foo.rs b/tests/run-make-fulldeps/no-intermediate-extras/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/no-intermediate-extras/foo.rs rename to tests/run-make-fulldeps/no-intermediate-extras/foo.rs diff --git a/src/test/run-make-fulldeps/obey-crate-type-flag/Makefile b/tests/run-make-fulldeps/obey-crate-type-flag/Makefile similarity index 100% rename from src/test/run-make-fulldeps/obey-crate-type-flag/Makefile rename to tests/run-make-fulldeps/obey-crate-type-flag/Makefile diff --git a/src/test/run-make-fulldeps/obey-crate-type-flag/test.rs b/tests/run-make-fulldeps/obey-crate-type-flag/test.rs similarity index 100% rename from src/test/run-make-fulldeps/obey-crate-type-flag/test.rs rename to tests/run-make-fulldeps/obey-crate-type-flag/test.rs diff --git a/src/test/run-make-fulldeps/obtain-borrowck/Makefile b/tests/run-make-fulldeps/obtain-borrowck/Makefile similarity index 91% rename from src/test/run-make-fulldeps/obtain-borrowck/Makefile rename to tests/run-make-fulldeps/obtain-borrowck/Makefile index 223993125c809..212d0f67d0063 100644 --- a/src/test/run-make-fulldeps/obtain-borrowck/Makefile +++ b/tests/run-make-fulldeps/obtain-borrowck/Makefile @@ -4,7 +4,7 @@ include ../tools.mk # together with the borrow checker information. # How to run this -# $ ./x.py test src/test/run-make-fulldeps/obtain-borrowck +# $ ./x.py test tests/run-make-fulldeps/obtain-borrowck DRIVER_BINARY := "$(TMPDIR)"/driver SYSROOT := $(shell $(RUSTC) --print sysroot) diff --git a/src/test/run-make-fulldeps/obtain-borrowck/driver.rs b/tests/run-make-fulldeps/obtain-borrowck/driver.rs similarity index 100% rename from src/test/run-make-fulldeps/obtain-borrowck/driver.rs rename to tests/run-make-fulldeps/obtain-borrowck/driver.rs diff --git a/src/test/run-make-fulldeps/obtain-borrowck/output.stdout b/tests/run-make-fulldeps/obtain-borrowck/output.stdout similarity index 100% rename from src/test/run-make-fulldeps/obtain-borrowck/output.stdout rename to tests/run-make-fulldeps/obtain-borrowck/output.stdout diff --git a/src/test/run-make-fulldeps/obtain-borrowck/test.rs b/tests/run-make-fulldeps/obtain-borrowck/test.rs similarity index 100% rename from src/test/run-make-fulldeps/obtain-borrowck/test.rs rename to tests/run-make-fulldeps/obtain-borrowck/test.rs diff --git a/src/test/run-make-fulldeps/output-filename-conflicts-with-directory/Makefile b/tests/run-make-fulldeps/output-filename-conflicts-with-directory/Makefile similarity index 100% rename from src/test/run-make-fulldeps/output-filename-conflicts-with-directory/Makefile rename to tests/run-make-fulldeps/output-filename-conflicts-with-directory/Makefile diff --git a/src/test/run-make-fulldeps/output-filename-conflicts-with-directory/foo.rs b/tests/run-make-fulldeps/output-filename-conflicts-with-directory/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/output-filename-conflicts-with-directory/foo.rs rename to tests/run-make-fulldeps/output-filename-conflicts-with-directory/foo.rs diff --git a/src/test/run-make-fulldeps/output-filename-overwrites-input/Makefile b/tests/run-make-fulldeps/output-filename-overwrites-input/Makefile similarity index 100% rename from src/test/run-make-fulldeps/output-filename-overwrites-input/Makefile rename to tests/run-make-fulldeps/output-filename-overwrites-input/Makefile diff --git a/src/test/run-make-fulldeps/output-filename-overwrites-input/bar.rs b/tests/run-make-fulldeps/output-filename-overwrites-input/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/output-filename-overwrites-input/bar.rs rename to tests/run-make-fulldeps/output-filename-overwrites-input/bar.rs diff --git a/src/test/run-make-fulldeps/output-filename-overwrites-input/foo.rs b/tests/run-make-fulldeps/output-filename-overwrites-input/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/output-filename-overwrites-input/foo.rs rename to tests/run-make-fulldeps/output-filename-overwrites-input/foo.rs diff --git a/src/test/run-make-fulldeps/output-type-permutations/Makefile b/tests/run-make-fulldeps/output-type-permutations/Makefile similarity index 100% rename from src/test/run-make-fulldeps/output-type-permutations/Makefile rename to tests/run-make-fulldeps/output-type-permutations/Makefile diff --git a/src/test/run-make-fulldeps/output-type-permutations/foo.rs b/tests/run-make-fulldeps/output-type-permutations/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/output-type-permutations/foo.rs rename to tests/run-make-fulldeps/output-type-permutations/foo.rs diff --git a/src/test/run-make-fulldeps/output-with-hyphens/Makefile b/tests/run-make-fulldeps/output-with-hyphens/Makefile similarity index 100% rename from src/test/run-make-fulldeps/output-with-hyphens/Makefile rename to tests/run-make-fulldeps/output-with-hyphens/Makefile diff --git a/src/test/run-make-fulldeps/output-with-hyphens/foo-bar.rs b/tests/run-make-fulldeps/output-with-hyphens/foo-bar.rs similarity index 100% rename from src/test/run-make-fulldeps/output-with-hyphens/foo-bar.rs rename to tests/run-make-fulldeps/output-with-hyphens/foo-bar.rs diff --git a/src/test/run-make-fulldeps/override-aliased-flags/Makefile b/tests/run-make-fulldeps/override-aliased-flags/Makefile similarity index 100% rename from src/test/run-make-fulldeps/override-aliased-flags/Makefile rename to tests/run-make-fulldeps/override-aliased-flags/Makefile diff --git a/src/test/run-make-fulldeps/override-aliased-flags/main.rs b/tests/run-make-fulldeps/override-aliased-flags/main.rs similarity index 100% rename from src/test/run-make-fulldeps/override-aliased-flags/main.rs rename to tests/run-make-fulldeps/override-aliased-flags/main.rs diff --git a/src/test/run-make-fulldeps/panic-impl-transitive/Makefile b/tests/run-make-fulldeps/panic-impl-transitive/Makefile similarity index 100% rename from src/test/run-make-fulldeps/panic-impl-transitive/Makefile rename to tests/run-make-fulldeps/panic-impl-transitive/Makefile diff --git a/src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-consumer.rs b/tests/run-make-fulldeps/panic-impl-transitive/panic-impl-consumer.rs similarity index 100% rename from src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-consumer.rs rename to tests/run-make-fulldeps/panic-impl-transitive/panic-impl-consumer.rs diff --git a/src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs b/tests/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs similarity index 100% rename from src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs rename to tests/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs diff --git a/src/test/run-make-fulldeps/pass-non-c-like-enum-to-c/Makefile b/tests/run-make-fulldeps/pass-non-c-like-enum-to-c/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pass-non-c-like-enum-to-c/Makefile rename to tests/run-make-fulldeps/pass-non-c-like-enum-to-c/Makefile diff --git a/src/test/run-make-fulldeps/pass-non-c-like-enum-to-c/nonclike.rs b/tests/run-make-fulldeps/pass-non-c-like-enum-to-c/nonclike.rs similarity index 100% rename from src/test/run-make-fulldeps/pass-non-c-like-enum-to-c/nonclike.rs rename to tests/run-make-fulldeps/pass-non-c-like-enum-to-c/nonclike.rs diff --git a/src/test/run-make-fulldeps/pass-non-c-like-enum-to-c/test.c b/tests/run-make-fulldeps/pass-non-c-like-enum-to-c/test.c similarity index 100% rename from src/test/run-make-fulldeps/pass-non-c-like-enum-to-c/test.c rename to tests/run-make-fulldeps/pass-non-c-like-enum-to-c/test.c diff --git a/src/test/run-make-fulldeps/pgo-branch-weights/Makefile b/tests/run-make-fulldeps/pgo-branch-weights/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pgo-branch-weights/Makefile rename to tests/run-make-fulldeps/pgo-branch-weights/Makefile diff --git a/src/test/run-make-fulldeps/pgo-branch-weights/filecheck-patterns.txt b/tests/run-make-fulldeps/pgo-branch-weights/filecheck-patterns.txt similarity index 100% rename from src/test/run-make-fulldeps/pgo-branch-weights/filecheck-patterns.txt rename to tests/run-make-fulldeps/pgo-branch-weights/filecheck-patterns.txt diff --git a/src/test/run-make-fulldeps/pgo-branch-weights/interesting.rs b/tests/run-make-fulldeps/pgo-branch-weights/interesting.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-branch-weights/interesting.rs rename to tests/run-make-fulldeps/pgo-branch-weights/interesting.rs diff --git a/src/test/run-make-fulldeps/pgo-branch-weights/main.rs b/tests/run-make-fulldeps/pgo-branch-weights/main.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-branch-weights/main.rs rename to tests/run-make-fulldeps/pgo-branch-weights/main.rs diff --git a/src/test/run-make-fulldeps/pgo-branch-weights/opaque.rs b/tests/run-make-fulldeps/pgo-branch-weights/opaque.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-branch-weights/opaque.rs rename to tests/run-make-fulldeps/pgo-branch-weights/opaque.rs diff --git a/src/test/run-make-fulldeps/pgo-gen-lto/Makefile b/tests/run-make-fulldeps/pgo-gen-lto/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pgo-gen-lto/Makefile rename to tests/run-make-fulldeps/pgo-gen-lto/Makefile diff --git a/src/test/run-make-fulldeps/pgo-gen-lto/test.rs b/tests/run-make-fulldeps/pgo-gen-lto/test.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-gen-lto/test.rs rename to tests/run-make-fulldeps/pgo-gen-lto/test.rs diff --git a/src/test/run-make-fulldeps/pgo-gen-no-imp-symbols/Makefile b/tests/run-make-fulldeps/pgo-gen-no-imp-symbols/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pgo-gen-no-imp-symbols/Makefile rename to tests/run-make-fulldeps/pgo-gen-no-imp-symbols/Makefile diff --git a/src/test/run-make-fulldeps/pgo-gen-no-imp-symbols/test.rs b/tests/run-make-fulldeps/pgo-gen-no-imp-symbols/test.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-gen-no-imp-symbols/test.rs rename to tests/run-make-fulldeps/pgo-gen-no-imp-symbols/test.rs diff --git a/src/test/run-make-fulldeps/pgo-gen/Makefile b/tests/run-make-fulldeps/pgo-gen/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pgo-gen/Makefile rename to tests/run-make-fulldeps/pgo-gen/Makefile diff --git a/src/test/run-make-fulldeps/pgo-gen/test.rs b/tests/run-make-fulldeps/pgo-gen/test.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-gen/test.rs rename to tests/run-make-fulldeps/pgo-gen/test.rs diff --git a/src/test/run-make-fulldeps/pgo-indirect-call-promotion/Makefile b/tests/run-make-fulldeps/pgo-indirect-call-promotion/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pgo-indirect-call-promotion/Makefile rename to tests/run-make-fulldeps/pgo-indirect-call-promotion/Makefile diff --git a/src/test/run-make-fulldeps/pgo-indirect-call-promotion/filecheck-patterns.txt b/tests/run-make-fulldeps/pgo-indirect-call-promotion/filecheck-patterns.txt similarity index 100% rename from src/test/run-make-fulldeps/pgo-indirect-call-promotion/filecheck-patterns.txt rename to tests/run-make-fulldeps/pgo-indirect-call-promotion/filecheck-patterns.txt diff --git a/src/test/run-make-fulldeps/pgo-indirect-call-promotion/interesting.rs b/tests/run-make-fulldeps/pgo-indirect-call-promotion/interesting.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-indirect-call-promotion/interesting.rs rename to tests/run-make-fulldeps/pgo-indirect-call-promotion/interesting.rs diff --git a/src/test/run-make-fulldeps/pgo-indirect-call-promotion/main.rs b/tests/run-make-fulldeps/pgo-indirect-call-promotion/main.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-indirect-call-promotion/main.rs rename to tests/run-make-fulldeps/pgo-indirect-call-promotion/main.rs diff --git a/src/test/run-make-fulldeps/pgo-indirect-call-promotion/opaque.rs b/tests/run-make-fulldeps/pgo-indirect-call-promotion/opaque.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-indirect-call-promotion/opaque.rs rename to tests/run-make-fulldeps/pgo-indirect-call-promotion/opaque.rs diff --git a/src/test/run-make-fulldeps/pgo-use/Makefile b/tests/run-make-fulldeps/pgo-use/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pgo-use/Makefile rename to tests/run-make-fulldeps/pgo-use/Makefile diff --git a/src/test/run-make-fulldeps/pgo-use/filecheck-patterns.txt b/tests/run-make-fulldeps/pgo-use/filecheck-patterns.txt similarity index 100% rename from src/test/run-make-fulldeps/pgo-use/filecheck-patterns.txt rename to tests/run-make-fulldeps/pgo-use/filecheck-patterns.txt diff --git a/src/test/run-make-fulldeps/pgo-use/main.rs b/tests/run-make-fulldeps/pgo-use/main.rs similarity index 100% rename from src/test/run-make-fulldeps/pgo-use/main.rs rename to tests/run-make-fulldeps/pgo-use/main.rs diff --git a/src/test/run-make-fulldeps/pointer-auth-link-with-c/Makefile b/tests/run-make-fulldeps/pointer-auth-link-with-c/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pointer-auth-link-with-c/Makefile rename to tests/run-make-fulldeps/pointer-auth-link-with-c/Makefile diff --git a/src/test/run-make-fulldeps/pointer-auth-link-with-c/test.c b/tests/run-make-fulldeps/pointer-auth-link-with-c/test.c similarity index 100% rename from src/test/run-make-fulldeps/pointer-auth-link-with-c/test.c rename to tests/run-make-fulldeps/pointer-auth-link-with-c/test.c diff --git a/src/test/run-make-fulldeps/pointer-auth-link-with-c/test.rs b/tests/run-make-fulldeps/pointer-auth-link-with-c/test.rs similarity index 100% rename from src/test/run-make-fulldeps/pointer-auth-link-with-c/test.rs rename to tests/run-make-fulldeps/pointer-auth-link-with-c/test.rs diff --git a/src/test/run-make-fulldeps/prefer-dylib/Makefile b/tests/run-make-fulldeps/prefer-dylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/prefer-dylib/Makefile rename to tests/run-make-fulldeps/prefer-dylib/Makefile diff --git a/src/test/run-make-fulldeps/prefer-dylib/bar.rs b/tests/run-make-fulldeps/prefer-dylib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/prefer-dylib/bar.rs rename to tests/run-make-fulldeps/prefer-dylib/bar.rs diff --git a/src/test/run-make-fulldeps/prefer-dylib/foo.rs b/tests/run-make-fulldeps/prefer-dylib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/prefer-dylib/foo.rs rename to tests/run-make-fulldeps/prefer-dylib/foo.rs diff --git a/src/test/run-make-fulldeps/prefer-rlib/Makefile b/tests/run-make-fulldeps/prefer-rlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/prefer-rlib/Makefile rename to tests/run-make-fulldeps/prefer-rlib/Makefile diff --git a/src/test/run-make-fulldeps/prefer-rlib/bar.rs b/tests/run-make-fulldeps/prefer-rlib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/prefer-rlib/bar.rs rename to tests/run-make-fulldeps/prefer-rlib/bar.rs diff --git a/src/test/run-make-fulldeps/prefer-rlib/foo.rs b/tests/run-make-fulldeps/prefer-rlib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/prefer-rlib/foo.rs rename to tests/run-make-fulldeps/prefer-rlib/foo.rs diff --git a/src/test/run-make-fulldeps/pretty-expanded/Makefile b/tests/run-make-fulldeps/pretty-expanded/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pretty-expanded/Makefile rename to tests/run-make-fulldeps/pretty-expanded/Makefile diff --git a/src/test/run-make-fulldeps/pretty-expanded/input.rs b/tests/run-make-fulldeps/pretty-expanded/input.rs similarity index 100% rename from src/test/run-make-fulldeps/pretty-expanded/input.rs rename to tests/run-make-fulldeps/pretty-expanded/input.rs diff --git a/src/test/run-make-fulldeps/pretty-print-to-file/Makefile b/tests/run-make-fulldeps/pretty-print-to-file/Makefile similarity index 100% rename from src/test/run-make-fulldeps/pretty-print-to-file/Makefile rename to tests/run-make-fulldeps/pretty-print-to-file/Makefile diff --git a/src/test/run-make-fulldeps/pretty-print-to-file/input.pp b/tests/run-make-fulldeps/pretty-print-to-file/input.pp similarity index 100% rename from src/test/run-make-fulldeps/pretty-print-to-file/input.pp rename to tests/run-make-fulldeps/pretty-print-to-file/input.pp diff --git a/src/test/run-make-fulldeps/pretty-print-to-file/input.rs b/tests/run-make-fulldeps/pretty-print-to-file/input.rs similarity index 100% rename from src/test/run-make-fulldeps/pretty-print-to-file/input.rs rename to tests/run-make-fulldeps/pretty-print-to-file/input.rs diff --git a/src/test/run-make-fulldeps/print-calling-conventions/Makefile b/tests/run-make-fulldeps/print-calling-conventions/Makefile similarity index 100% rename from src/test/run-make-fulldeps/print-calling-conventions/Makefile rename to tests/run-make-fulldeps/print-calling-conventions/Makefile diff --git a/src/test/run-make-fulldeps/print-cfg/Makefile b/tests/run-make-fulldeps/print-cfg/Makefile similarity index 100% rename from src/test/run-make-fulldeps/print-cfg/Makefile rename to tests/run-make-fulldeps/print-cfg/Makefile diff --git a/src/test/run-make-fulldeps/print-target-list/Makefile b/tests/run-make-fulldeps/print-target-list/Makefile similarity index 100% rename from src/test/run-make-fulldeps/print-target-list/Makefile rename to tests/run-make-fulldeps/print-target-list/Makefile diff --git a/src/test/run-make-fulldeps/profile/Makefile b/tests/run-make-fulldeps/profile/Makefile similarity index 100% rename from src/test/run-make-fulldeps/profile/Makefile rename to tests/run-make-fulldeps/profile/Makefile diff --git a/src/test/run-make-fulldeps/profile/test.rs b/tests/run-make-fulldeps/profile/test.rs similarity index 100% rename from src/test/run-make-fulldeps/profile/test.rs rename to tests/run-make-fulldeps/profile/test.rs diff --git a/src/test/run-make-fulldeps/prune-link-args/Makefile b/tests/run-make-fulldeps/prune-link-args/Makefile similarity index 100% rename from src/test/run-make-fulldeps/prune-link-args/Makefile rename to tests/run-make-fulldeps/prune-link-args/Makefile diff --git a/src/test/run-make-fulldeps/prune-link-args/empty.rs b/tests/run-make-fulldeps/prune-link-args/empty.rs similarity index 100% rename from src/test/run-make-fulldeps/prune-link-args/empty.rs rename to tests/run-make-fulldeps/prune-link-args/empty.rs diff --git a/src/test/run-make-fulldeps/redundant-libs/Makefile b/tests/run-make-fulldeps/redundant-libs/Makefile similarity index 100% rename from src/test/run-make-fulldeps/redundant-libs/Makefile rename to tests/run-make-fulldeps/redundant-libs/Makefile diff --git a/src/test/run-make-fulldeps/redundant-libs/bar.c b/tests/run-make-fulldeps/redundant-libs/bar.c similarity index 100% rename from src/test/run-make-fulldeps/redundant-libs/bar.c rename to tests/run-make-fulldeps/redundant-libs/bar.c diff --git a/src/test/run-make-fulldeps/redundant-libs/baz.c b/tests/run-make-fulldeps/redundant-libs/baz.c similarity index 100% rename from src/test/run-make-fulldeps/redundant-libs/baz.c rename to tests/run-make-fulldeps/redundant-libs/baz.c diff --git a/src/test/run-make-fulldeps/redundant-libs/foo.c b/tests/run-make-fulldeps/redundant-libs/foo.c similarity index 100% rename from src/test/run-make-fulldeps/redundant-libs/foo.c rename to tests/run-make-fulldeps/redundant-libs/foo.c diff --git a/src/test/run-make-fulldeps/redundant-libs/main.rs b/tests/run-make-fulldeps/redundant-libs/main.rs similarity index 100% rename from src/test/run-make-fulldeps/redundant-libs/main.rs rename to tests/run-make-fulldeps/redundant-libs/main.rs diff --git a/src/test/run-make-fulldeps/relocation-model/Makefile b/tests/run-make-fulldeps/relocation-model/Makefile similarity index 100% rename from src/test/run-make-fulldeps/relocation-model/Makefile rename to tests/run-make-fulldeps/relocation-model/Makefile diff --git a/src/test/run-make-fulldeps/relocation-model/foo.rs b/tests/run-make-fulldeps/relocation-model/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/relocation-model/foo.rs rename to tests/run-make-fulldeps/relocation-model/foo.rs diff --git a/src/test/run-make-fulldeps/relro-levels/Makefile b/tests/run-make-fulldeps/relro-levels/Makefile similarity index 100% rename from src/test/run-make-fulldeps/relro-levels/Makefile rename to tests/run-make-fulldeps/relro-levels/Makefile diff --git a/src/test/run-make-fulldeps/relro-levels/hello.rs b/tests/run-make-fulldeps/relro-levels/hello.rs similarity index 100% rename from src/test/run-make-fulldeps/relro-levels/hello.rs rename to tests/run-make-fulldeps/relro-levels/hello.rs diff --git a/src/test/run-make-fulldeps/remap-path-prefix/Makefile b/tests/run-make-fulldeps/remap-path-prefix/Makefile similarity index 100% rename from src/test/run-make-fulldeps/remap-path-prefix/Makefile rename to tests/run-make-fulldeps/remap-path-prefix/Makefile diff --git a/src/test/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs b/tests/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs rename to tests/run-make-fulldeps/remap-path-prefix/auxiliary/lib.rs diff --git a/src/test/run-make-fulldeps/reproducible-build-2/Makefile b/tests/run-make-fulldeps/reproducible-build-2/Makefile similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build-2/Makefile rename to tests/run-make-fulldeps/reproducible-build-2/Makefile diff --git a/src/test/run-make-fulldeps/reproducible-build-2/linker.rs b/tests/run-make-fulldeps/reproducible-build-2/linker.rs similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build-2/linker.rs rename to tests/run-make-fulldeps/reproducible-build-2/linker.rs diff --git a/src/test/run-make-fulldeps/reproducible-build-2/reproducible-build-aux.rs b/tests/run-make-fulldeps/reproducible-build-2/reproducible-build-aux.rs similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build-2/reproducible-build-aux.rs rename to tests/run-make-fulldeps/reproducible-build-2/reproducible-build-aux.rs diff --git a/src/test/run-make-fulldeps/reproducible-build-2/reproducible-build.rs b/tests/run-make-fulldeps/reproducible-build-2/reproducible-build.rs similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build-2/reproducible-build.rs rename to tests/run-make-fulldeps/reproducible-build-2/reproducible-build.rs diff --git a/src/test/run-make-fulldeps/reproducible-build/Makefile b/tests/run-make-fulldeps/reproducible-build/Makefile similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build/Makefile rename to tests/run-make-fulldeps/reproducible-build/Makefile diff --git a/src/test/run-make-fulldeps/reproducible-build/linker.rs b/tests/run-make-fulldeps/reproducible-build/linker.rs similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build/linker.rs rename to tests/run-make-fulldeps/reproducible-build/linker.rs diff --git a/src/test/run-make-fulldeps/reproducible-build/reproducible-build-aux.rs b/tests/run-make-fulldeps/reproducible-build/reproducible-build-aux.rs similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build/reproducible-build-aux.rs rename to tests/run-make-fulldeps/reproducible-build/reproducible-build-aux.rs diff --git a/src/test/run-make-fulldeps/reproducible-build/reproducible-build.rs b/tests/run-make-fulldeps/reproducible-build/reproducible-build.rs similarity index 100% rename from src/test/run-make-fulldeps/reproducible-build/reproducible-build.rs rename to tests/run-make-fulldeps/reproducible-build/reproducible-build.rs diff --git a/src/test/run-make-fulldeps/resolve-rename/Makefile b/tests/run-make-fulldeps/resolve-rename/Makefile similarity index 100% rename from src/test/run-make-fulldeps/resolve-rename/Makefile rename to tests/run-make-fulldeps/resolve-rename/Makefile diff --git a/src/test/run-make-fulldeps/resolve-rename/bar.rs b/tests/run-make-fulldeps/resolve-rename/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/resolve-rename/bar.rs rename to tests/run-make-fulldeps/resolve-rename/bar.rs diff --git a/src/test/run-make-fulldeps/resolve-rename/baz.rs b/tests/run-make-fulldeps/resolve-rename/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/resolve-rename/baz.rs rename to tests/run-make-fulldeps/resolve-rename/baz.rs diff --git a/src/test/run-make-fulldeps/resolve-rename/foo.rs b/tests/run-make-fulldeps/resolve-rename/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/resolve-rename/foo.rs rename to tests/run-make-fulldeps/resolve-rename/foo.rs diff --git a/src/test/run-make-fulldeps/return-non-c-like-enum-from-c/Makefile b/tests/run-make-fulldeps/return-non-c-like-enum-from-c/Makefile similarity index 100% rename from src/test/run-make-fulldeps/return-non-c-like-enum-from-c/Makefile rename to tests/run-make-fulldeps/return-non-c-like-enum-from-c/Makefile diff --git a/src/test/run-make-fulldeps/return-non-c-like-enum-from-c/nonclike.rs b/tests/run-make-fulldeps/return-non-c-like-enum-from-c/nonclike.rs similarity index 100% rename from src/test/run-make-fulldeps/return-non-c-like-enum-from-c/nonclike.rs rename to tests/run-make-fulldeps/return-non-c-like-enum-from-c/nonclike.rs diff --git a/src/test/run-make-fulldeps/return-non-c-like-enum-from-c/test.c b/tests/run-make-fulldeps/return-non-c-like-enum-from-c/test.c similarity index 100% rename from src/test/run-make-fulldeps/return-non-c-like-enum-from-c/test.c rename to tests/run-make-fulldeps/return-non-c-like-enum-from-c/test.c diff --git a/src/test/run-make-fulldeps/return-non-c-like-enum/Makefile b/tests/run-make-fulldeps/return-non-c-like-enum/Makefile similarity index 100% rename from src/test/run-make-fulldeps/return-non-c-like-enum/Makefile rename to tests/run-make-fulldeps/return-non-c-like-enum/Makefile diff --git a/src/test/run-make-fulldeps/return-non-c-like-enum/nonclike.rs b/tests/run-make-fulldeps/return-non-c-like-enum/nonclike.rs similarity index 100% rename from src/test/run-make-fulldeps/return-non-c-like-enum/nonclike.rs rename to tests/run-make-fulldeps/return-non-c-like-enum/nonclike.rs diff --git a/src/test/run-make-fulldeps/return-non-c-like-enum/test.c b/tests/run-make-fulldeps/return-non-c-like-enum/test.c similarity index 100% rename from src/test/run-make-fulldeps/return-non-c-like-enum/test.c rename to tests/run-make-fulldeps/return-non-c-like-enum/test.c diff --git a/src/test/run-make-fulldeps/rlib-chain/Makefile b/tests/run-make-fulldeps/rlib-chain/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rlib-chain/Makefile rename to tests/run-make-fulldeps/rlib-chain/Makefile diff --git a/src/test/run-make-fulldeps/rlib-chain/m1.rs b/tests/run-make-fulldeps/rlib-chain/m1.rs similarity index 100% rename from src/test/run-make-fulldeps/rlib-chain/m1.rs rename to tests/run-make-fulldeps/rlib-chain/m1.rs diff --git a/src/test/run-make-fulldeps/rlib-chain/m2.rs b/tests/run-make-fulldeps/rlib-chain/m2.rs similarity index 100% rename from src/test/run-make-fulldeps/rlib-chain/m2.rs rename to tests/run-make-fulldeps/rlib-chain/m2.rs diff --git a/src/test/run-make-fulldeps/rlib-chain/m3.rs b/tests/run-make-fulldeps/rlib-chain/m3.rs similarity index 100% rename from src/test/run-make-fulldeps/rlib-chain/m3.rs rename to tests/run-make-fulldeps/rlib-chain/m3.rs diff --git a/src/test/run-make-fulldeps/rlib-chain/m4.rs b/tests/run-make-fulldeps/rlib-chain/m4.rs similarity index 100% rename from src/test/run-make-fulldeps/rlib-chain/m4.rs rename to tests/run-make-fulldeps/rlib-chain/m4.rs diff --git a/src/test/run-make-fulldeps/rustdoc-determinism/Makefile b/tests/run-make-fulldeps/rustdoc-determinism/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-determinism/Makefile rename to tests/run-make-fulldeps/rustdoc-determinism/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-determinism/bar.rs b/tests/run-make-fulldeps/rustdoc-determinism/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-determinism/bar.rs rename to tests/run-make-fulldeps/rustdoc-determinism/bar.rs diff --git a/src/test/run-make-fulldeps/rustdoc-determinism/foo.rs b/tests/run-make-fulldeps/rustdoc-determinism/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-determinism/foo.rs rename to tests/run-make-fulldeps/rustdoc-determinism/foo.rs diff --git a/src/test/run-make-fulldeps/rustdoc-error-lines/Makefile b/tests/run-make-fulldeps/rustdoc-error-lines/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-error-lines/Makefile rename to tests/run-make-fulldeps/rustdoc-error-lines/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-error-lines/input.rs b/tests/run-make-fulldeps/rustdoc-error-lines/input.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-error-lines/input.rs rename to tests/run-make-fulldeps/rustdoc-error-lines/input.rs diff --git a/src/test/run-make-fulldeps/rustdoc-io-error/Makefile b/tests/run-make-fulldeps/rustdoc-io-error/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-io-error/Makefile rename to tests/run-make-fulldeps/rustdoc-io-error/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-io-error/foo.rs b/tests/run-make-fulldeps/rustdoc-io-error/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-io-error/foo.rs rename to tests/run-make-fulldeps/rustdoc-io-error/foo.rs diff --git a/src/test/run-make-fulldeps/rustdoc-map-file/Makefile b/tests/run-make-fulldeps/rustdoc-map-file/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-map-file/Makefile rename to tests/run-make-fulldeps/rustdoc-map-file/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-map-file/expected.json b/tests/run-make-fulldeps/rustdoc-map-file/expected.json similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-map-file/expected.json rename to tests/run-make-fulldeps/rustdoc-map-file/expected.json diff --git a/src/test/run-make-fulldeps/rustdoc-map-file/foo.rs b/tests/run-make-fulldeps/rustdoc-map-file/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-map-file/foo.rs rename to tests/run-make-fulldeps/rustdoc-map-file/foo.rs diff --git a/src/test/run-make-fulldeps/rustdoc-map-file/validate_json.py b/tests/run-make-fulldeps/rustdoc-map-file/validate_json.py similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-map-file/validate_json.py rename to tests/run-make-fulldeps/rustdoc-map-file/validate_json.py diff --git a/src/test/run-make-fulldeps/rustdoc-output-path/Makefile b/tests/run-make-fulldeps/rustdoc-output-path/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-output-path/Makefile rename to tests/run-make-fulldeps/rustdoc-output-path/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-output-path/foo.rs b/tests/run-make-fulldeps/rustdoc-output-path/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-output-path/foo.rs rename to tests/run-make-fulldeps/rustdoc-output-path/foo.rs diff --git a/src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/Makefile b/tests/run-make-fulldeps/rustdoc-scrape-examples-macros/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/Makefile rename to tests/run-make-fulldeps/rustdoc-scrape-examples-macros/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/examples/ex.rs b/tests/run-make-fulldeps/rustdoc-scrape-examples-macros/examples/ex.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/examples/ex.rs rename to tests/run-make-fulldeps/rustdoc-scrape-examples-macros/examples/ex.rs diff --git a/src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/src/lib.rs b/tests/run-make-fulldeps/rustdoc-scrape-examples-macros/src/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/src/lib.rs rename to tests/run-make-fulldeps/rustdoc-scrape-examples-macros/src/lib.rs diff --git a/src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/src/proc.rs b/tests/run-make-fulldeps/rustdoc-scrape-examples-macros/src/proc.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/src/proc.rs rename to tests/run-make-fulldeps/rustdoc-scrape-examples-macros/src/proc.rs diff --git a/src/test/run-make-fulldeps/rustdoc-target-spec-json-path/Makefile b/tests/run-make-fulldeps/rustdoc-target-spec-json-path/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-target-spec-json-path/Makefile rename to tests/run-make-fulldeps/rustdoc-target-spec-json-path/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-target-spec-json-path/dummy_core.rs b/tests/run-make-fulldeps/rustdoc-target-spec-json-path/dummy_core.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-target-spec-json-path/dummy_core.rs rename to tests/run-make-fulldeps/rustdoc-target-spec-json-path/dummy_core.rs diff --git a/src/test/run-make-fulldeps/rustdoc-target-spec-json-path/my_crate.rs b/tests/run-make-fulldeps/rustdoc-target-spec-json-path/my_crate.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-target-spec-json-path/my_crate.rs rename to tests/run-make-fulldeps/rustdoc-target-spec-json-path/my_crate.rs diff --git a/src/test/run-make-fulldeps/rustdoc-target-spec-json-path/target.json b/tests/run-make-fulldeps/rustdoc-target-spec-json-path/target.json similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-target-spec-json-path/target.json rename to tests/run-make-fulldeps/rustdoc-target-spec-json-path/target.json diff --git a/src/test/run-make-fulldeps/rustdoc-themes/Makefile b/tests/run-make-fulldeps/rustdoc-themes/Makefile similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-themes/Makefile rename to tests/run-make-fulldeps/rustdoc-themes/Makefile diff --git a/src/test/run-make-fulldeps/rustdoc-themes/foo.rs b/tests/run-make-fulldeps/rustdoc-themes/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/rustdoc-themes/foo.rs rename to tests/run-make-fulldeps/rustdoc-themes/foo.rs diff --git a/src/test/run-make-fulldeps/sanitizer-cdylib-link/Makefile b/tests/run-make-fulldeps/sanitizer-cdylib-link/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-cdylib-link/Makefile rename to tests/run-make-fulldeps/sanitizer-cdylib-link/Makefile diff --git a/src/test/run-make-fulldeps/sanitizer-cdylib-link/library.rs b/tests/run-make-fulldeps/sanitizer-cdylib-link/library.rs similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-cdylib-link/library.rs rename to tests/run-make-fulldeps/sanitizer-cdylib-link/library.rs diff --git a/src/test/run-make-fulldeps/sanitizer-cdylib-link/program.rs b/tests/run-make-fulldeps/sanitizer-cdylib-link/program.rs similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-cdylib-link/program.rs rename to tests/run-make-fulldeps/sanitizer-cdylib-link/program.rs diff --git a/src/test/run-make-fulldeps/sanitizer-dylib-link/Makefile b/tests/run-make-fulldeps/sanitizer-dylib-link/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-dylib-link/Makefile rename to tests/run-make-fulldeps/sanitizer-dylib-link/Makefile diff --git a/src/test/run-make-fulldeps/sanitizer-dylib-link/library.rs b/tests/run-make-fulldeps/sanitizer-dylib-link/library.rs similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-dylib-link/library.rs rename to tests/run-make-fulldeps/sanitizer-dylib-link/library.rs diff --git a/src/test/run-make-fulldeps/sanitizer-dylib-link/program.rs b/tests/run-make-fulldeps/sanitizer-dylib-link/program.rs similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-dylib-link/program.rs rename to tests/run-make-fulldeps/sanitizer-dylib-link/program.rs diff --git a/src/test/run-make-fulldeps/sanitizer-staticlib-link/Makefile b/tests/run-make-fulldeps/sanitizer-staticlib-link/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-staticlib-link/Makefile rename to tests/run-make-fulldeps/sanitizer-staticlib-link/Makefile diff --git a/src/test/run-make-fulldeps/sanitizer-staticlib-link/library.rs b/tests/run-make-fulldeps/sanitizer-staticlib-link/library.rs similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-staticlib-link/library.rs rename to tests/run-make-fulldeps/sanitizer-staticlib-link/library.rs diff --git a/src/test/run-make-fulldeps/sanitizer-staticlib-link/program.c b/tests/run-make-fulldeps/sanitizer-staticlib-link/program.c similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-staticlib-link/program.c rename to tests/run-make-fulldeps/sanitizer-staticlib-link/program.c diff --git a/src/test/run-make-fulldeps/sanitizer-staticlib-link/program.rs b/tests/run-make-fulldeps/sanitizer-staticlib-link/program.rs similarity index 100% rename from src/test/run-make-fulldeps/sanitizer-staticlib-link/program.rs rename to tests/run-make-fulldeps/sanitizer-staticlib-link/program.rs diff --git a/src/test/run-make-fulldeps/save-analysis-fail/Makefile b/tests/run-make-fulldeps/save-analysis-fail/Makefile similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-fail/Makefile rename to tests/run-make-fulldeps/save-analysis-fail/Makefile diff --git a/src/test/run-make-fulldeps/save-analysis-fail/SameDir.rs b/tests/run-make-fulldeps/save-analysis-fail/SameDir.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-fail/SameDir.rs rename to tests/run-make-fulldeps/save-analysis-fail/SameDir.rs diff --git a/src/test/run-make-fulldeps/save-analysis-fail/SameDir3.rs b/tests/run-make-fulldeps/save-analysis-fail/SameDir3.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-fail/SameDir3.rs rename to tests/run-make-fulldeps/save-analysis-fail/SameDir3.rs diff --git a/src/test/run-make-fulldeps/save-analysis-fail/SubDir/mod.rs b/tests/run-make-fulldeps/save-analysis-fail/SubDir/mod.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-fail/SubDir/mod.rs rename to tests/run-make-fulldeps/save-analysis-fail/SubDir/mod.rs diff --git a/src/test/run-make-fulldeps/save-analysis-fail/foo.rs b/tests/run-make-fulldeps/save-analysis-fail/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-fail/foo.rs rename to tests/run-make-fulldeps/save-analysis-fail/foo.rs diff --git a/src/test/run-make-fulldeps/save-analysis-fail/krate2.rs b/tests/run-make-fulldeps/save-analysis-fail/krate2.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-fail/krate2.rs rename to tests/run-make-fulldeps/save-analysis-fail/krate2.rs diff --git a/src/test/run-make-fulldeps/save-analysis-rfc2126/Makefile b/tests/run-make-fulldeps/save-analysis-rfc2126/Makefile similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-rfc2126/Makefile rename to tests/run-make-fulldeps/save-analysis-rfc2126/Makefile diff --git a/src/test/run-make-fulldeps/save-analysis-rfc2126/extern_absolute_paths.rs b/tests/run-make-fulldeps/save-analysis-rfc2126/extern_absolute_paths.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-rfc2126/extern_absolute_paths.rs rename to tests/run-make-fulldeps/save-analysis-rfc2126/extern_absolute_paths.rs diff --git a/src/test/run-make-fulldeps/save-analysis-rfc2126/krate2.rs b/tests/run-make-fulldeps/save-analysis-rfc2126/krate2.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-rfc2126/krate2.rs rename to tests/run-make-fulldeps/save-analysis-rfc2126/krate2.rs diff --git a/src/test/run-make-fulldeps/save-analysis-rfc2126/validate_json.py b/tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py similarity index 100% rename from src/test/run-make-fulldeps/save-analysis-rfc2126/validate_json.py rename to tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py diff --git a/src/test/run-make-fulldeps/save-analysis/Makefile b/tests/run-make-fulldeps/save-analysis/Makefile similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/Makefile rename to tests/run-make-fulldeps/save-analysis/Makefile diff --git a/src/test/run-make-fulldeps/save-analysis/SameDir.rs b/tests/run-make-fulldeps/save-analysis/SameDir.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/SameDir.rs rename to tests/run-make-fulldeps/save-analysis/SameDir.rs diff --git a/src/test/run-make-fulldeps/save-analysis/SameDir3.rs b/tests/run-make-fulldeps/save-analysis/SameDir3.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/SameDir3.rs rename to tests/run-make-fulldeps/save-analysis/SameDir3.rs diff --git a/src/test/run-make-fulldeps/save-analysis/SubDir/mod.rs b/tests/run-make-fulldeps/save-analysis/SubDir/mod.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/SubDir/mod.rs rename to tests/run-make-fulldeps/save-analysis/SubDir/mod.rs diff --git a/src/test/run-make-fulldeps/save-analysis/extra-docs.md b/tests/run-make-fulldeps/save-analysis/extra-docs.md similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/extra-docs.md rename to tests/run-make-fulldeps/save-analysis/extra-docs.md diff --git a/src/test/run-make-fulldeps/save-analysis/foo.rs b/tests/run-make-fulldeps/save-analysis/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/foo.rs rename to tests/run-make-fulldeps/save-analysis/foo.rs diff --git a/src/test/run-make-fulldeps/save-analysis/krate2.rs b/tests/run-make-fulldeps/save-analysis/krate2.rs similarity index 100% rename from src/test/run-make-fulldeps/save-analysis/krate2.rs rename to tests/run-make-fulldeps/save-analysis/krate2.rs diff --git a/src/test/run-make-fulldeps/separate-link-fail/Makefile b/tests/run-make-fulldeps/separate-link-fail/Makefile similarity index 100% rename from src/test/run-make-fulldeps/separate-link-fail/Makefile rename to tests/run-make-fulldeps/separate-link-fail/Makefile diff --git a/src/test/run-make-fulldeps/separate-link/Makefile b/tests/run-make-fulldeps/separate-link/Makefile similarity index 100% rename from src/test/run-make-fulldeps/separate-link/Makefile rename to tests/run-make-fulldeps/separate-link/Makefile diff --git a/src/test/run-make-fulldeps/sepcomp-cci-copies/Makefile b/tests/run-make-fulldeps/sepcomp-cci-copies/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-cci-copies/Makefile rename to tests/run-make-fulldeps/sepcomp-cci-copies/Makefile diff --git a/src/test/run-make-fulldeps/sepcomp-cci-copies/cci_lib.rs b/tests/run-make-fulldeps/sepcomp-cci-copies/cci_lib.rs similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-cci-copies/cci_lib.rs rename to tests/run-make-fulldeps/sepcomp-cci-copies/cci_lib.rs diff --git a/src/test/run-make-fulldeps/sepcomp-cci-copies/foo.rs b/tests/run-make-fulldeps/sepcomp-cci-copies/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-cci-copies/foo.rs rename to tests/run-make-fulldeps/sepcomp-cci-copies/foo.rs diff --git a/src/test/run-make-fulldeps/sepcomp-inlining/Makefile b/tests/run-make-fulldeps/sepcomp-inlining/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-inlining/Makefile rename to tests/run-make-fulldeps/sepcomp-inlining/Makefile diff --git a/src/test/run-make-fulldeps/sepcomp-inlining/foo.rs b/tests/run-make-fulldeps/sepcomp-inlining/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-inlining/foo.rs rename to tests/run-make-fulldeps/sepcomp-inlining/foo.rs diff --git a/src/test/run-make-fulldeps/sepcomp-separate/Makefile b/tests/run-make-fulldeps/sepcomp-separate/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-separate/Makefile rename to tests/run-make-fulldeps/sepcomp-separate/Makefile diff --git a/src/test/run-make-fulldeps/sepcomp-separate/foo.rs b/tests/run-make-fulldeps/sepcomp-separate/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/sepcomp-separate/foo.rs rename to tests/run-make-fulldeps/sepcomp-separate/foo.rs diff --git a/src/test/run-make-fulldeps/share-generics-dylib/Makefile b/tests/run-make-fulldeps/share-generics-dylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/Makefile rename to tests/run-make-fulldeps/share-generics-dylib/Makefile diff --git a/src/test/run-make-fulldeps/share-generics-dylib/instance_provider_a.rs b/tests/run-make-fulldeps/share-generics-dylib/instance_provider_a.rs similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/instance_provider_a.rs rename to tests/run-make-fulldeps/share-generics-dylib/instance_provider_a.rs diff --git a/src/test/run-make-fulldeps/share-generics-dylib/instance_provider_b.rs b/tests/run-make-fulldeps/share-generics-dylib/instance_provider_b.rs similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/instance_provider_b.rs rename to tests/run-make-fulldeps/share-generics-dylib/instance_provider_b.rs diff --git a/src/test/run-make-fulldeps/share-generics-dylib/instance_user_a_rlib.rs b/tests/run-make-fulldeps/share-generics-dylib/instance_user_a_rlib.rs similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/instance_user_a_rlib.rs rename to tests/run-make-fulldeps/share-generics-dylib/instance_user_a_rlib.rs diff --git a/src/test/run-make-fulldeps/share-generics-dylib/instance_user_b_rlib.rs b/tests/run-make-fulldeps/share-generics-dylib/instance_user_b_rlib.rs similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/instance_user_b_rlib.rs rename to tests/run-make-fulldeps/share-generics-dylib/instance_user_b_rlib.rs diff --git a/src/test/run-make-fulldeps/share-generics-dylib/instance_user_dylib.rs b/tests/run-make-fulldeps/share-generics-dylib/instance_user_dylib.rs similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/instance_user_dylib.rs rename to tests/run-make-fulldeps/share-generics-dylib/instance_user_dylib.rs diff --git a/src/test/run-make-fulldeps/share-generics-dylib/linked_leaf.rs b/tests/run-make-fulldeps/share-generics-dylib/linked_leaf.rs similarity index 100% rename from src/test/run-make-fulldeps/share-generics-dylib/linked_leaf.rs rename to tests/run-make-fulldeps/share-generics-dylib/linked_leaf.rs diff --git a/src/test/run-make-fulldeps/simd-ffi/Makefile b/tests/run-make-fulldeps/simd-ffi/Makefile similarity index 100% rename from src/test/run-make-fulldeps/simd-ffi/Makefile rename to tests/run-make-fulldeps/simd-ffi/Makefile diff --git a/src/test/run-make-fulldeps/simd-ffi/simd.rs b/tests/run-make-fulldeps/simd-ffi/simd.rs similarity index 100% rename from src/test/run-make-fulldeps/simd-ffi/simd.rs rename to tests/run-make-fulldeps/simd-ffi/simd.rs diff --git a/src/test/run-make-fulldeps/simple-dylib/Makefile b/tests/run-make-fulldeps/simple-dylib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/simple-dylib/Makefile rename to tests/run-make-fulldeps/simple-dylib/Makefile diff --git a/src/test/run-make-fulldeps/simple-dylib/bar.rs b/tests/run-make-fulldeps/simple-dylib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/simple-dylib/bar.rs rename to tests/run-make-fulldeps/simple-dylib/bar.rs diff --git a/src/test/run-make-fulldeps/simple-dylib/foo.rs b/tests/run-make-fulldeps/simple-dylib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/simple-dylib/foo.rs rename to tests/run-make-fulldeps/simple-dylib/foo.rs diff --git a/src/test/run-make-fulldeps/simple-rlib/Makefile b/tests/run-make-fulldeps/simple-rlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/simple-rlib/Makefile rename to tests/run-make-fulldeps/simple-rlib/Makefile diff --git a/src/test/run-make-fulldeps/simple-rlib/bar.rs b/tests/run-make-fulldeps/simple-rlib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/simple-rlib/bar.rs rename to tests/run-make-fulldeps/simple-rlib/bar.rs diff --git a/src/test/run-make-fulldeps/simple-rlib/foo.rs b/tests/run-make-fulldeps/simple-rlib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/simple-rlib/foo.rs rename to tests/run-make-fulldeps/simple-rlib/foo.rs diff --git a/src/test/run-make-fulldeps/split-debuginfo/Makefile b/tests/run-make-fulldeps/split-debuginfo/Makefile similarity index 100% rename from src/test/run-make-fulldeps/split-debuginfo/Makefile rename to tests/run-make-fulldeps/split-debuginfo/Makefile diff --git a/src/test/run-make-fulldeps/split-debuginfo/bar.rs b/tests/run-make-fulldeps/split-debuginfo/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/split-debuginfo/bar.rs rename to tests/run-make-fulldeps/split-debuginfo/bar.rs diff --git a/src/test/run-make-fulldeps/split-debuginfo/baz.rs b/tests/run-make-fulldeps/split-debuginfo/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/split-debuginfo/baz.rs rename to tests/run-make-fulldeps/split-debuginfo/baz.rs diff --git a/src/test/run-make-fulldeps/split-debuginfo/foo.rs b/tests/run-make-fulldeps/split-debuginfo/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/split-debuginfo/foo.rs rename to tests/run-make-fulldeps/split-debuginfo/foo.rs diff --git a/src/test/run-make-fulldeps/split-debuginfo/main.rs b/tests/run-make-fulldeps/split-debuginfo/main.rs similarity index 100% rename from src/test/run-make-fulldeps/split-debuginfo/main.rs rename to tests/run-make-fulldeps/split-debuginfo/main.rs diff --git a/src/test/run-make-fulldeps/stable-symbol-names/Makefile b/tests/run-make-fulldeps/stable-symbol-names/Makefile similarity index 100% rename from src/test/run-make-fulldeps/stable-symbol-names/Makefile rename to tests/run-make-fulldeps/stable-symbol-names/Makefile diff --git a/src/test/run-make-fulldeps/stable-symbol-names/stable-symbol-names1.rs b/tests/run-make-fulldeps/stable-symbol-names/stable-symbol-names1.rs similarity index 100% rename from src/test/run-make-fulldeps/stable-symbol-names/stable-symbol-names1.rs rename to tests/run-make-fulldeps/stable-symbol-names/stable-symbol-names1.rs diff --git a/src/test/run-make-fulldeps/stable-symbol-names/stable-symbol-names2.rs b/tests/run-make-fulldeps/stable-symbol-names/stable-symbol-names2.rs similarity index 100% rename from src/test/run-make-fulldeps/stable-symbol-names/stable-symbol-names2.rs rename to tests/run-make-fulldeps/stable-symbol-names/stable-symbol-names2.rs diff --git a/src/test/run-make-fulldeps/static-dylib-by-default/Makefile b/tests/run-make-fulldeps/static-dylib-by-default/Makefile similarity index 100% rename from src/test/run-make-fulldeps/static-dylib-by-default/Makefile rename to tests/run-make-fulldeps/static-dylib-by-default/Makefile diff --git a/src/test/run-make-fulldeps/static-dylib-by-default/bar.rs b/tests/run-make-fulldeps/static-dylib-by-default/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/static-dylib-by-default/bar.rs rename to tests/run-make-fulldeps/static-dylib-by-default/bar.rs diff --git a/src/test/run-make-fulldeps/static-dylib-by-default/foo.rs b/tests/run-make-fulldeps/static-dylib-by-default/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/static-dylib-by-default/foo.rs rename to tests/run-make-fulldeps/static-dylib-by-default/foo.rs diff --git a/src/test/run-make-fulldeps/static-dylib-by-default/main.c b/tests/run-make-fulldeps/static-dylib-by-default/main.c similarity index 100% rename from src/test/run-make-fulldeps/static-dylib-by-default/main.c rename to tests/run-make-fulldeps/static-dylib-by-default/main.c diff --git a/src/test/run-make-fulldeps/static-extern-type/Makefile b/tests/run-make-fulldeps/static-extern-type/Makefile similarity index 100% rename from src/test/run-make-fulldeps/static-extern-type/Makefile rename to tests/run-make-fulldeps/static-extern-type/Makefile diff --git a/src/test/run-make-fulldeps/static-extern-type/define-foo.c b/tests/run-make-fulldeps/static-extern-type/define-foo.c similarity index 100% rename from src/test/run-make-fulldeps/static-extern-type/define-foo.c rename to tests/run-make-fulldeps/static-extern-type/define-foo.c diff --git a/src/test/run-make-fulldeps/static-extern-type/use-foo.rs b/tests/run-make-fulldeps/static-extern-type/use-foo.rs similarity index 100% rename from src/test/run-make-fulldeps/static-extern-type/use-foo.rs rename to tests/run-make-fulldeps/static-extern-type/use-foo.rs diff --git a/src/test/run-make-fulldeps/static-unwinding/Makefile b/tests/run-make-fulldeps/static-unwinding/Makefile similarity index 100% rename from src/test/run-make-fulldeps/static-unwinding/Makefile rename to tests/run-make-fulldeps/static-unwinding/Makefile diff --git a/src/test/run-make-fulldeps/static-unwinding/lib.rs b/tests/run-make-fulldeps/static-unwinding/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/static-unwinding/lib.rs rename to tests/run-make-fulldeps/static-unwinding/lib.rs diff --git a/src/test/run-make-fulldeps/static-unwinding/main.rs b/tests/run-make-fulldeps/static-unwinding/main.rs similarity index 100% rename from src/test/run-make-fulldeps/static-unwinding/main.rs rename to tests/run-make-fulldeps/static-unwinding/main.rs diff --git a/src/test/run-make-fulldeps/staticlib-blank-lib/Makefile b/tests/run-make-fulldeps/staticlib-blank-lib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/staticlib-blank-lib/Makefile rename to tests/run-make-fulldeps/staticlib-blank-lib/Makefile diff --git a/src/test/run-make-fulldeps/staticlib-blank-lib/foo.rs b/tests/run-make-fulldeps/staticlib-blank-lib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/staticlib-blank-lib/foo.rs rename to tests/run-make-fulldeps/staticlib-blank-lib/foo.rs diff --git a/src/test/run-make-fulldeps/std-core-cycle/Makefile b/tests/run-make-fulldeps/std-core-cycle/Makefile similarity index 100% rename from src/test/run-make-fulldeps/std-core-cycle/Makefile rename to tests/run-make-fulldeps/std-core-cycle/Makefile diff --git a/src/test/run-make-fulldeps/std-core-cycle/bar.rs b/tests/run-make-fulldeps/std-core-cycle/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/std-core-cycle/bar.rs rename to tests/run-make-fulldeps/std-core-cycle/bar.rs diff --git a/src/test/run-make-fulldeps/std-core-cycle/foo.rs b/tests/run-make-fulldeps/std-core-cycle/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/std-core-cycle/foo.rs rename to tests/run-make-fulldeps/std-core-cycle/foo.rs diff --git a/src/test/run-make-fulldeps/stdin-non-utf8/Makefile b/tests/run-make-fulldeps/stdin-non-utf8/Makefile similarity index 100% rename from src/test/run-make-fulldeps/stdin-non-utf8/Makefile rename to tests/run-make-fulldeps/stdin-non-utf8/Makefile diff --git a/src/test/run-make-fulldeps/stdin-non-utf8/non-utf8 b/tests/run-make-fulldeps/stdin-non-utf8/non-utf8 similarity index 100% rename from src/test/run-make-fulldeps/stdin-non-utf8/non-utf8 rename to tests/run-make-fulldeps/stdin-non-utf8/non-utf8 diff --git a/src/test/run-make-fulldeps/suspicious-library/Makefile b/tests/run-make-fulldeps/suspicious-library/Makefile similarity index 100% rename from src/test/run-make-fulldeps/suspicious-library/Makefile rename to tests/run-make-fulldeps/suspicious-library/Makefile diff --git a/src/test/run-make-fulldeps/suspicious-library/bar.rs b/tests/run-make-fulldeps/suspicious-library/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/suspicious-library/bar.rs rename to tests/run-make-fulldeps/suspicious-library/bar.rs diff --git a/src/test/run-make-fulldeps/suspicious-library/foo.rs b/tests/run-make-fulldeps/suspicious-library/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/suspicious-library/foo.rs rename to tests/run-make-fulldeps/suspicious-library/foo.rs diff --git a/src/test/run-make-fulldeps/symbol-visibility/Makefile b/tests/run-make-fulldeps/symbol-visibility/Makefile similarity index 100% rename from src/test/run-make-fulldeps/symbol-visibility/Makefile rename to tests/run-make-fulldeps/symbol-visibility/Makefile diff --git a/src/test/run-make-fulldeps/symbol-visibility/a_cdylib.rs b/tests/run-make-fulldeps/symbol-visibility/a_cdylib.rs similarity index 100% rename from src/test/run-make-fulldeps/symbol-visibility/a_cdylib.rs rename to tests/run-make-fulldeps/symbol-visibility/a_cdylib.rs diff --git a/src/test/run-make-fulldeps/symbol-visibility/a_proc_macro.rs b/tests/run-make-fulldeps/symbol-visibility/a_proc_macro.rs similarity index 100% rename from src/test/run-make-fulldeps/symbol-visibility/a_proc_macro.rs rename to tests/run-make-fulldeps/symbol-visibility/a_proc_macro.rs diff --git a/src/test/run-make-fulldeps/symbol-visibility/a_rust_dylib.rs b/tests/run-make-fulldeps/symbol-visibility/a_rust_dylib.rs similarity index 100% rename from src/test/run-make-fulldeps/symbol-visibility/a_rust_dylib.rs rename to tests/run-make-fulldeps/symbol-visibility/a_rust_dylib.rs diff --git a/src/test/run-make-fulldeps/symbol-visibility/an_executable.rs b/tests/run-make-fulldeps/symbol-visibility/an_executable.rs similarity index 100% rename from src/test/run-make-fulldeps/symbol-visibility/an_executable.rs rename to tests/run-make-fulldeps/symbol-visibility/an_executable.rs diff --git a/src/test/run-make-fulldeps/symbol-visibility/an_rlib.rs b/tests/run-make-fulldeps/symbol-visibility/an_rlib.rs similarity index 100% rename from src/test/run-make-fulldeps/symbol-visibility/an_rlib.rs rename to tests/run-make-fulldeps/symbol-visibility/an_rlib.rs diff --git a/src/test/run-make-fulldeps/symbols-include-type-name/Makefile b/tests/run-make-fulldeps/symbols-include-type-name/Makefile similarity index 100% rename from src/test/run-make-fulldeps/symbols-include-type-name/Makefile rename to tests/run-make-fulldeps/symbols-include-type-name/Makefile diff --git a/src/test/run-make-fulldeps/symbols-include-type-name/lib.rs b/tests/run-make-fulldeps/symbols-include-type-name/lib.rs similarity index 100% rename from src/test/run-make-fulldeps/symbols-include-type-name/lib.rs rename to tests/run-make-fulldeps/symbols-include-type-name/lib.rs diff --git a/src/test/run-make-fulldeps/symlinked-extern/Makefile b/tests/run-make-fulldeps/symlinked-extern/Makefile similarity index 100% rename from src/test/run-make-fulldeps/symlinked-extern/Makefile rename to tests/run-make-fulldeps/symlinked-extern/Makefile diff --git a/src/test/run-make-fulldeps/symlinked-extern/bar.rs b/tests/run-make-fulldeps/symlinked-extern/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-extern/bar.rs rename to tests/run-make-fulldeps/symlinked-extern/bar.rs diff --git a/src/test/run-make-fulldeps/symlinked-extern/baz.rs b/tests/run-make-fulldeps/symlinked-extern/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-extern/baz.rs rename to tests/run-make-fulldeps/symlinked-extern/baz.rs diff --git a/src/test/run-make-fulldeps/symlinked-extern/foo.rs b/tests/run-make-fulldeps/symlinked-extern/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-extern/foo.rs rename to tests/run-make-fulldeps/symlinked-extern/foo.rs diff --git a/src/test/run-make-fulldeps/symlinked-libraries/Makefile b/tests/run-make-fulldeps/symlinked-libraries/Makefile similarity index 100% rename from src/test/run-make-fulldeps/symlinked-libraries/Makefile rename to tests/run-make-fulldeps/symlinked-libraries/Makefile diff --git a/src/test/run-make-fulldeps/symlinked-libraries/bar.rs b/tests/run-make-fulldeps/symlinked-libraries/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-libraries/bar.rs rename to tests/run-make-fulldeps/symlinked-libraries/bar.rs diff --git a/src/test/run-make-fulldeps/symlinked-libraries/foo.rs b/tests/run-make-fulldeps/symlinked-libraries/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-libraries/foo.rs rename to tests/run-make-fulldeps/symlinked-libraries/foo.rs diff --git a/src/test/run-make-fulldeps/symlinked-rlib/Makefile b/tests/run-make-fulldeps/symlinked-rlib/Makefile similarity index 100% rename from src/test/run-make-fulldeps/symlinked-rlib/Makefile rename to tests/run-make-fulldeps/symlinked-rlib/Makefile diff --git a/src/test/run-make-fulldeps/symlinked-rlib/bar.rs b/tests/run-make-fulldeps/symlinked-rlib/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-rlib/bar.rs rename to tests/run-make-fulldeps/symlinked-rlib/bar.rs diff --git a/src/test/run-make-fulldeps/symlinked-rlib/foo.rs b/tests/run-make-fulldeps/symlinked-rlib/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/symlinked-rlib/foo.rs rename to tests/run-make-fulldeps/symlinked-rlib/foo.rs diff --git a/src/test/run-make-fulldeps/sysroot-crates-are-unstable/Makefile b/tests/run-make-fulldeps/sysroot-crates-are-unstable/Makefile similarity index 100% rename from src/test/run-make-fulldeps/sysroot-crates-are-unstable/Makefile rename to tests/run-make-fulldeps/sysroot-crates-are-unstable/Makefile diff --git a/src/test/run-make-fulldeps/sysroot-crates-are-unstable/test.py b/tests/run-make-fulldeps/sysroot-crates-are-unstable/test.py similarity index 100% rename from src/test/run-make-fulldeps/sysroot-crates-are-unstable/test.py rename to tests/run-make-fulldeps/sysroot-crates-are-unstable/test.py diff --git a/src/test/run-make-fulldeps/target-cpu-native/Makefile b/tests/run-make-fulldeps/target-cpu-native/Makefile similarity index 100% rename from src/test/run-make-fulldeps/target-cpu-native/Makefile rename to tests/run-make-fulldeps/target-cpu-native/Makefile diff --git a/src/test/run-make-fulldeps/target-cpu-native/foo.rs b/tests/run-make-fulldeps/target-cpu-native/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/target-cpu-native/foo.rs rename to tests/run-make-fulldeps/target-cpu-native/foo.rs diff --git a/src/test/run-make-fulldeps/target-specs/Makefile b/tests/run-make-fulldeps/target-specs/Makefile similarity index 100% rename from src/test/run-make-fulldeps/target-specs/Makefile rename to tests/run-make-fulldeps/target-specs/Makefile diff --git a/src/test/run-make-fulldeps/target-specs/definitely-not-builtin-target.json b/tests/run-make-fulldeps/target-specs/definitely-not-builtin-target.json similarity index 100% rename from src/test/run-make-fulldeps/target-specs/definitely-not-builtin-target.json rename to tests/run-make-fulldeps/target-specs/definitely-not-builtin-target.json diff --git a/src/test/run-make-fulldeps/target-specs/foo.rs b/tests/run-make-fulldeps/target-specs/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/target-specs/foo.rs rename to tests/run-make-fulldeps/target-specs/foo.rs diff --git a/src/test/run-make-fulldeps/target-specs/mismatching-data-layout.json b/tests/run-make-fulldeps/target-specs/mismatching-data-layout.json similarity index 100% rename from src/test/run-make-fulldeps/target-specs/mismatching-data-layout.json rename to tests/run-make-fulldeps/target-specs/mismatching-data-layout.json diff --git a/src/test/run-make-fulldeps/target-specs/my-awesome-platform.json b/tests/run-make-fulldeps/target-specs/my-awesome-platform.json similarity index 100% rename from src/test/run-make-fulldeps/target-specs/my-awesome-platform.json rename to tests/run-make-fulldeps/target-specs/my-awesome-platform.json diff --git a/src/test/run-make-fulldeps/target-specs/my-incomplete-platform.json b/tests/run-make-fulldeps/target-specs/my-incomplete-platform.json similarity index 100% rename from src/test/run-make-fulldeps/target-specs/my-incomplete-platform.json rename to tests/run-make-fulldeps/target-specs/my-incomplete-platform.json diff --git a/src/test/run-make-fulldeps/target-specs/my-invalid-platform.json b/tests/run-make-fulldeps/target-specs/my-invalid-platform.json similarity index 100% rename from src/test/run-make-fulldeps/target-specs/my-invalid-platform.json rename to tests/run-make-fulldeps/target-specs/my-invalid-platform.json diff --git a/src/test/run-make-fulldeps/target-specs/my-x86_64-unknown-linux-gnu-platform.json b/tests/run-make-fulldeps/target-specs/my-x86_64-unknown-linux-gnu-platform.json similarity index 100% rename from src/test/run-make-fulldeps/target-specs/my-x86_64-unknown-linux-gnu-platform.json rename to tests/run-make-fulldeps/target-specs/my-x86_64-unknown-linux-gnu-platform.json diff --git a/src/test/run-make-fulldeps/target-without-atomic-cas/Makefile b/tests/run-make-fulldeps/target-without-atomic-cas/Makefile similarity index 100% rename from src/test/run-make-fulldeps/target-without-atomic-cas/Makefile rename to tests/run-make-fulldeps/target-without-atomic-cas/Makefile diff --git a/src/test/run-make-fulldeps/test-harness/Makefile b/tests/run-make-fulldeps/test-harness/Makefile similarity index 100% rename from src/test/run-make-fulldeps/test-harness/Makefile rename to tests/run-make-fulldeps/test-harness/Makefile diff --git a/src/test/run-make-fulldeps/test-harness/test-ignore-cfg.rs b/tests/run-make-fulldeps/test-harness/test-ignore-cfg.rs similarity index 100% rename from src/test/run-make-fulldeps/test-harness/test-ignore-cfg.rs rename to tests/run-make-fulldeps/test-harness/test-ignore-cfg.rs diff --git a/src/test/run-make-fulldeps/tools.mk b/tests/run-make-fulldeps/tools.mk similarity index 100% rename from src/test/run-make-fulldeps/tools.mk rename to tests/run-make-fulldeps/tools.mk diff --git a/src/test/run-make-fulldeps/type-mismatch-same-crate-name/Makefile b/tests/run-make-fulldeps/type-mismatch-same-crate-name/Makefile similarity index 100% rename from src/test/run-make-fulldeps/type-mismatch-same-crate-name/Makefile rename to tests/run-make-fulldeps/type-mismatch-same-crate-name/Makefile diff --git a/src/test/run-make-fulldeps/type-mismatch-same-crate-name/crateA.rs b/tests/run-make-fulldeps/type-mismatch-same-crate-name/crateA.rs similarity index 100% rename from src/test/run-make-fulldeps/type-mismatch-same-crate-name/crateA.rs rename to tests/run-make-fulldeps/type-mismatch-same-crate-name/crateA.rs diff --git a/src/test/run-make-fulldeps/type-mismatch-same-crate-name/crateB.rs b/tests/run-make-fulldeps/type-mismatch-same-crate-name/crateB.rs similarity index 100% rename from src/test/run-make-fulldeps/type-mismatch-same-crate-name/crateB.rs rename to tests/run-make-fulldeps/type-mismatch-same-crate-name/crateB.rs diff --git a/src/test/run-make-fulldeps/type-mismatch-same-crate-name/crateC.rs b/tests/run-make-fulldeps/type-mismatch-same-crate-name/crateC.rs similarity index 100% rename from src/test/run-make-fulldeps/type-mismatch-same-crate-name/crateC.rs rename to tests/run-make-fulldeps/type-mismatch-same-crate-name/crateC.rs diff --git a/src/test/run-make-fulldeps/use-extern-for-plugins/Makefile b/tests/run-make-fulldeps/use-extern-for-plugins/Makefile similarity index 100% rename from src/test/run-make-fulldeps/use-extern-for-plugins/Makefile rename to tests/run-make-fulldeps/use-extern-for-plugins/Makefile diff --git a/src/test/run-make-fulldeps/use-extern-for-plugins/bar.rs b/tests/run-make-fulldeps/use-extern-for-plugins/bar.rs similarity index 100% rename from src/test/run-make-fulldeps/use-extern-for-plugins/bar.rs rename to tests/run-make-fulldeps/use-extern-for-plugins/bar.rs diff --git a/src/test/run-make-fulldeps/use-extern-for-plugins/baz.rs b/tests/run-make-fulldeps/use-extern-for-plugins/baz.rs similarity index 100% rename from src/test/run-make-fulldeps/use-extern-for-plugins/baz.rs rename to tests/run-make-fulldeps/use-extern-for-plugins/baz.rs diff --git a/src/test/run-make-fulldeps/use-extern-for-plugins/foo.rs b/tests/run-make-fulldeps/use-extern-for-plugins/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/use-extern-for-plugins/foo.rs rename to tests/run-make-fulldeps/use-extern-for-plugins/foo.rs diff --git a/src/test/run-make-fulldeps/use-suggestions-rust-2018/Makefile b/tests/run-make-fulldeps/use-suggestions-rust-2018/Makefile similarity index 100% rename from src/test/run-make-fulldeps/use-suggestions-rust-2018/Makefile rename to tests/run-make-fulldeps/use-suggestions-rust-2018/Makefile diff --git a/src/test/run-make-fulldeps/use-suggestions-rust-2018/ep-nested-lib.rs b/tests/run-make-fulldeps/use-suggestions-rust-2018/ep-nested-lib.rs similarity index 100% rename from src/test/run-make-fulldeps/use-suggestions-rust-2018/ep-nested-lib.rs rename to tests/run-make-fulldeps/use-suggestions-rust-2018/ep-nested-lib.rs diff --git a/src/test/run-make-fulldeps/use-suggestions-rust-2018/use-suggestions.rs b/tests/run-make-fulldeps/use-suggestions-rust-2018/use-suggestions.rs similarity index 100% rename from src/test/run-make-fulldeps/use-suggestions-rust-2018/use-suggestions.rs rename to tests/run-make-fulldeps/use-suggestions-rust-2018/use-suggestions.rs diff --git a/src/test/run-make-fulldeps/used-cdylib-macos/Makefile b/tests/run-make-fulldeps/used-cdylib-macos/Makefile similarity index 100% rename from src/test/run-make-fulldeps/used-cdylib-macos/Makefile rename to tests/run-make-fulldeps/used-cdylib-macos/Makefile diff --git a/src/test/run-make-fulldeps/used-cdylib-macos/dylib_used.rs b/tests/run-make-fulldeps/used-cdylib-macos/dylib_used.rs similarity index 100% rename from src/test/run-make-fulldeps/used-cdylib-macos/dylib_used.rs rename to tests/run-make-fulldeps/used-cdylib-macos/dylib_used.rs diff --git a/src/test/run-make-fulldeps/used/Makefile b/tests/run-make-fulldeps/used/Makefile similarity index 100% rename from src/test/run-make-fulldeps/used/Makefile rename to tests/run-make-fulldeps/used/Makefile diff --git a/src/test/run-make-fulldeps/used/used.rs b/tests/run-make-fulldeps/used/used.rs similarity index 100% rename from src/test/run-make-fulldeps/used/used.rs rename to tests/run-make-fulldeps/used/used.rs diff --git a/src/test/run-make-fulldeps/version/Makefile b/tests/run-make-fulldeps/version/Makefile similarity index 100% rename from src/test/run-make-fulldeps/version/Makefile rename to tests/run-make-fulldeps/version/Makefile diff --git a/src/test/run-make-fulldeps/volatile-intrinsics/Makefile b/tests/run-make-fulldeps/volatile-intrinsics/Makefile similarity index 100% rename from src/test/run-make-fulldeps/volatile-intrinsics/Makefile rename to tests/run-make-fulldeps/volatile-intrinsics/Makefile diff --git a/src/test/run-make-fulldeps/volatile-intrinsics/main.rs b/tests/run-make-fulldeps/volatile-intrinsics/main.rs similarity index 100% rename from src/test/run-make-fulldeps/volatile-intrinsics/main.rs rename to tests/run-make-fulldeps/volatile-intrinsics/main.rs diff --git a/src/test/run-make-fulldeps/weird-output-filenames/Makefile b/tests/run-make-fulldeps/weird-output-filenames/Makefile similarity index 100% rename from src/test/run-make-fulldeps/weird-output-filenames/Makefile rename to tests/run-make-fulldeps/weird-output-filenames/Makefile diff --git a/src/test/run-make-fulldeps/weird-output-filenames/foo.rs b/tests/run-make-fulldeps/weird-output-filenames/foo.rs similarity index 100% rename from src/test/run-make-fulldeps/weird-output-filenames/foo.rs rename to tests/run-make-fulldeps/weird-output-filenames/foo.rs diff --git a/src/test/run-make-fulldeps/windows-binary-no-external-deps/Makefile b/tests/run-make-fulldeps/windows-binary-no-external-deps/Makefile similarity index 100% rename from src/test/run-make-fulldeps/windows-binary-no-external-deps/Makefile rename to tests/run-make-fulldeps/windows-binary-no-external-deps/Makefile diff --git a/src/test/run-make-fulldeps/windows-binary-no-external-deps/hello.rs b/tests/run-make-fulldeps/windows-binary-no-external-deps/hello.rs similarity index 100% rename from src/test/run-make-fulldeps/windows-binary-no-external-deps/hello.rs rename to tests/run-make-fulldeps/windows-binary-no-external-deps/hello.rs diff --git a/src/test/run-make-fulldeps/windows-spawn/Makefile b/tests/run-make-fulldeps/windows-spawn/Makefile similarity index 100% rename from src/test/run-make-fulldeps/windows-spawn/Makefile rename to tests/run-make-fulldeps/windows-spawn/Makefile diff --git a/src/test/run-make-fulldeps/windows-spawn/hello.rs b/tests/run-make-fulldeps/windows-spawn/hello.rs similarity index 100% rename from src/test/run-make-fulldeps/windows-spawn/hello.rs rename to tests/run-make-fulldeps/windows-spawn/hello.rs diff --git a/src/test/run-make-fulldeps/windows-spawn/spawn.rs b/tests/run-make-fulldeps/windows-spawn/spawn.rs similarity index 100% rename from src/test/run-make-fulldeps/windows-spawn/spawn.rs rename to tests/run-make-fulldeps/windows-spawn/spawn.rs diff --git a/src/test/run-make-fulldeps/windows-subsystem/Makefile b/tests/run-make-fulldeps/windows-subsystem/Makefile similarity index 100% rename from src/test/run-make-fulldeps/windows-subsystem/Makefile rename to tests/run-make-fulldeps/windows-subsystem/Makefile diff --git a/src/test/run-make-fulldeps/windows-subsystem/console.rs b/tests/run-make-fulldeps/windows-subsystem/console.rs similarity index 100% rename from src/test/run-make-fulldeps/windows-subsystem/console.rs rename to tests/run-make-fulldeps/windows-subsystem/console.rs diff --git a/src/test/run-make-fulldeps/windows-subsystem/windows.rs b/tests/run-make-fulldeps/windows-subsystem/windows.rs similarity index 100% rename from src/test/run-make-fulldeps/windows-subsystem/windows.rs rename to tests/run-make-fulldeps/windows-subsystem/windows.rs diff --git a/src/test/run-make/const_fn_mir/Makefile b/tests/run-make/const_fn_mir/Makefile similarity index 100% rename from src/test/run-make/const_fn_mir/Makefile rename to tests/run-make/const_fn_mir/Makefile diff --git a/src/test/run-make/const_fn_mir/dump.mir b/tests/run-make/const_fn_mir/dump.mir similarity index 100% rename from src/test/run-make/const_fn_mir/dump.mir rename to tests/run-make/const_fn_mir/dump.mir diff --git a/src/test/run-make/const_fn_mir/main.rs b/tests/run-make/const_fn_mir/main.rs similarity index 100% rename from src/test/run-make/const_fn_mir/main.rs rename to tests/run-make/const_fn_mir/main.rs diff --git a/src/test/run-make/coverage-llvmir/Makefile b/tests/run-make/coverage-llvmir/Makefile similarity index 100% rename from src/test/run-make/coverage-llvmir/Makefile rename to tests/run-make/coverage-llvmir/Makefile diff --git a/src/test/run-make/coverage-llvmir/filecheck.testprog.txt b/tests/run-make/coverage-llvmir/filecheck.testprog.txt similarity index 100% rename from src/test/run-make/coverage-llvmir/filecheck.testprog.txt rename to tests/run-make/coverage-llvmir/filecheck.testprog.txt diff --git a/src/test/run-make/coverage-llvmir/testprog.rs b/tests/run-make/coverage-llvmir/testprog.rs similarity index 100% rename from src/test/run-make/coverage-llvmir/testprog.rs rename to tests/run-make/coverage-llvmir/testprog.rs diff --git a/src/test/run-make/coverage-reports/Makefile b/tests/run-make/coverage-reports/Makefile similarity index 100% rename from src/test/run-make/coverage-reports/Makefile rename to tests/run-make/coverage-reports/Makefile diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.abort.txt b/tests/run-make/coverage-reports/expected_show_coverage.abort.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.abort.txt rename to tests/run-make/coverage-reports/expected_show_coverage.abort.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.assert.txt b/tests/run-make/coverage-reports/expected_show_coverage.assert.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.assert.txt rename to tests/run-make/coverage-reports/expected_show_coverage.assert.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.async.txt b/tests/run-make/coverage-reports/expected_show_coverage.async.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.async.txt rename to tests/run-make/coverage-reports/expected_show_coverage.async.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.async2.txt b/tests/run-make/coverage-reports/expected_show_coverage.async2.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.async2.txt rename to tests/run-make/coverage-reports/expected_show_coverage.async2.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.closure.txt b/tests/run-make/coverage-reports/expected_show_coverage.closure.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.closure.txt rename to tests/run-make/coverage-reports/expected_show_coverage.closure.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.closure_macro.txt b/tests/run-make/coverage-reports/expected_show_coverage.closure_macro.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.closure_macro.txt rename to tests/run-make/coverage-reports/expected_show_coverage.closure_macro.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.closure_macro_async.txt b/tests/run-make/coverage-reports/expected_show_coverage.closure_macro_async.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.closure_macro_async.txt rename to tests/run-make/coverage-reports/expected_show_coverage.closure_macro_async.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.conditions.txt b/tests/run-make/coverage-reports/expected_show_coverage.conditions.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.conditions.txt rename to tests/run-make/coverage-reports/expected_show_coverage.conditions.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.continue.txt b/tests/run-make/coverage-reports/expected_show_coverage.continue.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.continue.txt rename to tests/run-make/coverage-reports/expected_show_coverage.continue.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.dead_code.txt b/tests/run-make/coverage-reports/expected_show_coverage.dead_code.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.dead_code.txt rename to tests/run-make/coverage-reports/expected_show_coverage.dead_code.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.doctest.txt b/tests/run-make/coverage-reports/expected_show_coverage.doctest.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.doctest.txt rename to tests/run-make/coverage-reports/expected_show_coverage.doctest.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.drop_trait.txt b/tests/run-make/coverage-reports/expected_show_coverage.drop_trait.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.drop_trait.txt rename to tests/run-make/coverage-reports/expected_show_coverage.drop_trait.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.generator.txt b/tests/run-make/coverage-reports/expected_show_coverage.generator.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.generator.txt rename to tests/run-make/coverage-reports/expected_show_coverage.generator.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.generics.txt b/tests/run-make/coverage-reports/expected_show_coverage.generics.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.generics.txt rename to tests/run-make/coverage-reports/expected_show_coverage.generics.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.if.txt b/tests/run-make/coverage-reports/expected_show_coverage.if.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.if.txt rename to tests/run-make/coverage-reports/expected_show_coverage.if.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.if_else.txt b/tests/run-make/coverage-reports/expected_show_coverage.if_else.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.if_else.txt rename to tests/run-make/coverage-reports/expected_show_coverage.if_else.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.inline-dead.txt b/tests/run-make/coverage-reports/expected_show_coverage.inline-dead.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.inline-dead.txt rename to tests/run-make/coverage-reports/expected_show_coverage.inline-dead.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.inline.txt b/tests/run-make/coverage-reports/expected_show_coverage.inline.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.inline.txt rename to tests/run-make/coverage-reports/expected_show_coverage.inline.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.inner_items.txt b/tests/run-make/coverage-reports/expected_show_coverage.inner_items.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.inner_items.txt rename to tests/run-make/coverage-reports/expected_show_coverage.inner_items.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.issue-83601.txt b/tests/run-make/coverage-reports/expected_show_coverage.issue-83601.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.issue-83601.txt rename to tests/run-make/coverage-reports/expected_show_coverage.issue-83601.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.issue-84561.txt b/tests/run-make/coverage-reports/expected_show_coverage.issue-84561.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.issue-84561.txt rename to tests/run-make/coverage-reports/expected_show_coverage.issue-84561.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.issue-85461.txt b/tests/run-make/coverage-reports/expected_show_coverage.issue-85461.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.issue-85461.txt rename to tests/run-make/coverage-reports/expected_show_coverage.issue-85461.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.issue-93054.txt b/tests/run-make/coverage-reports/expected_show_coverage.issue-93054.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.issue-93054.txt rename to tests/run-make/coverage-reports/expected_show_coverage.issue-93054.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.lazy_boolean.txt b/tests/run-make/coverage-reports/expected_show_coverage.lazy_boolean.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.lazy_boolean.txt rename to tests/run-make/coverage-reports/expected_show_coverage.lazy_boolean.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.loop_break_value.txt b/tests/run-make/coverage-reports/expected_show_coverage.loop_break_value.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.loop_break_value.txt rename to tests/run-make/coverage-reports/expected_show_coverage.loop_break_value.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.loops_branches.txt b/tests/run-make/coverage-reports/expected_show_coverage.loops_branches.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.loops_branches.txt rename to tests/run-make/coverage-reports/expected_show_coverage.loops_branches.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.match_or_pattern.txt b/tests/run-make/coverage-reports/expected_show_coverage.match_or_pattern.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.match_or_pattern.txt rename to tests/run-make/coverage-reports/expected_show_coverage.match_or_pattern.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.nested_loops.txt b/tests/run-make/coverage-reports/expected_show_coverage.nested_loops.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.nested_loops.txt rename to tests/run-make/coverage-reports/expected_show_coverage.nested_loops.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.no_cov_crate.txt b/tests/run-make/coverage-reports/expected_show_coverage.no_cov_crate.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.no_cov_crate.txt rename to tests/run-make/coverage-reports/expected_show_coverage.no_cov_crate.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.overflow.txt b/tests/run-make/coverage-reports/expected_show_coverage.overflow.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.overflow.txt rename to tests/run-make/coverage-reports/expected_show_coverage.overflow.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.panic_unwind.txt b/tests/run-make/coverage-reports/expected_show_coverage.panic_unwind.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.panic_unwind.txt rename to tests/run-make/coverage-reports/expected_show_coverage.panic_unwind.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.partial_eq.txt b/tests/run-make/coverage-reports/expected_show_coverage.partial_eq.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.partial_eq.txt rename to tests/run-make/coverage-reports/expected_show_coverage.partial_eq.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.simple_loop.txt b/tests/run-make/coverage-reports/expected_show_coverage.simple_loop.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.simple_loop.txt rename to tests/run-make/coverage-reports/expected_show_coverage.simple_loop.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.simple_match.txt b/tests/run-make/coverage-reports/expected_show_coverage.simple_match.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.simple_match.txt rename to tests/run-make/coverage-reports/expected_show_coverage.simple_match.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.tight_inf_loop.txt b/tests/run-make/coverage-reports/expected_show_coverage.tight_inf_loop.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.tight_inf_loop.txt rename to tests/run-make/coverage-reports/expected_show_coverage.tight_inf_loop.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.try_error_result.txt b/tests/run-make/coverage-reports/expected_show_coverage.try_error_result.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.try_error_result.txt rename to tests/run-make/coverage-reports/expected_show_coverage.try_error_result.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.unused.txt b/tests/run-make/coverage-reports/expected_show_coverage.unused.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.unused.txt rename to tests/run-make/coverage-reports/expected_show_coverage.unused.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.unused_mod.txt b/tests/run-make/coverage-reports/expected_show_coverage.unused_mod.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.unused_mod.txt rename to tests/run-make/coverage-reports/expected_show_coverage.unused_mod.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.uses_crate.txt b/tests/run-make/coverage-reports/expected_show_coverage.uses_crate.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.uses_crate.txt rename to tests/run-make/coverage-reports/expected_show_coverage.uses_crate.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.uses_inline_crate.txt b/tests/run-make/coverage-reports/expected_show_coverage.uses_inline_crate.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.uses_inline_crate.txt rename to tests/run-make/coverage-reports/expected_show_coverage.uses_inline_crate.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.while.txt b/tests/run-make/coverage-reports/expected_show_coverage.while.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.while.txt rename to tests/run-make/coverage-reports/expected_show_coverage.while.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.while_early_ret.txt b/tests/run-make/coverage-reports/expected_show_coverage.while_early_ret.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.while_early_ret.txt rename to tests/run-make/coverage-reports/expected_show_coverage.while_early_ret.txt diff --git a/src/test/run-make/coverage-reports/expected_show_coverage.yield.txt b/tests/run-make/coverage-reports/expected_show_coverage.yield.txt similarity index 100% rename from src/test/run-make/coverage-reports/expected_show_coverage.yield.txt rename to tests/run-make/coverage-reports/expected_show_coverage.yield.txt diff --git a/src/test/run-make/coverage-reports/normalize_paths.py b/tests/run-make/coverage-reports/normalize_paths.py similarity index 100% rename from src/test/run-make/coverage-reports/normalize_paths.py rename to tests/run-make/coverage-reports/normalize_paths.py diff --git a/src/test/run-make/coverage/WARNING_KEEP_NAMES_SHORT.txt b/tests/run-make/coverage/WARNING_KEEP_NAMES_SHORT.txt similarity index 100% rename from src/test/run-make/coverage/WARNING_KEEP_NAMES_SHORT.txt rename to tests/run-make/coverage/WARNING_KEEP_NAMES_SHORT.txt diff --git a/src/test/run-make/coverage/abort.rs b/tests/run-make/coverage/abort.rs similarity index 100% rename from src/test/run-make/coverage/abort.rs rename to tests/run-make/coverage/abort.rs diff --git a/src/test/run-make/coverage/assert.rs b/tests/run-make/coverage/assert.rs similarity index 100% rename from src/test/run-make/coverage/assert.rs rename to tests/run-make/coverage/assert.rs diff --git a/src/test/run-make/coverage/async.rs b/tests/run-make/coverage/async.rs similarity index 100% rename from src/test/run-make/coverage/async.rs rename to tests/run-make/coverage/async.rs diff --git a/src/test/run-make/coverage/async2.rs b/tests/run-make/coverage/async2.rs similarity index 100% rename from src/test/run-make/coverage/async2.rs rename to tests/run-make/coverage/async2.rs diff --git a/src/test/run-make/coverage/closure.rs b/tests/run-make/coverage/closure.rs similarity index 100% rename from src/test/run-make/coverage/closure.rs rename to tests/run-make/coverage/closure.rs diff --git a/src/test/run-make/coverage/closure_macro.rs b/tests/run-make/coverage/closure_macro.rs similarity index 100% rename from src/test/run-make/coverage/closure_macro.rs rename to tests/run-make/coverage/closure_macro.rs diff --git a/src/test/run-make/coverage/closure_macro_async.rs b/tests/run-make/coverage/closure_macro_async.rs similarity index 100% rename from src/test/run-make/coverage/closure_macro_async.rs rename to tests/run-make/coverage/closure_macro_async.rs diff --git a/tests/run-make/coverage/compiletest-ignore-dir b/tests/run-make/coverage/compiletest-ignore-dir new file mode 100644 index 0000000000000..470ff996098b3 --- /dev/null +++ b/tests/run-make/coverage/compiletest-ignore-dir @@ -0,0 +1,3 @@ +# Directory "coverage" supports the tests at prefix ../coverage-* + +# Use ./x.py [options] test tests/run-make/coverage to run all related tests. diff --git a/src/test/run-make/coverage/conditions.rs b/tests/run-make/coverage/conditions.rs similarity index 100% rename from src/test/run-make/coverage/conditions.rs rename to tests/run-make/coverage/conditions.rs diff --git a/src/test/run-make/coverage/continue.rs b/tests/run-make/coverage/continue.rs similarity index 100% rename from src/test/run-make/coverage/continue.rs rename to tests/run-make/coverage/continue.rs diff --git a/src/test/run-make/coverage/coverage_tools.mk b/tests/run-make/coverage/coverage_tools.mk similarity index 100% rename from src/test/run-make/coverage/coverage_tools.mk rename to tests/run-make/coverage/coverage_tools.mk diff --git a/src/test/run-make/coverage/dead_code.rs b/tests/run-make/coverage/dead_code.rs similarity index 100% rename from src/test/run-make/coverage/dead_code.rs rename to tests/run-make/coverage/dead_code.rs diff --git a/src/test/run-make/coverage/doctest.rs b/tests/run-make/coverage/doctest.rs similarity index 100% rename from src/test/run-make/coverage/doctest.rs rename to tests/run-make/coverage/doctest.rs diff --git a/src/test/run-make/coverage/drop_trait.rs b/tests/run-make/coverage/drop_trait.rs similarity index 100% rename from src/test/run-make/coverage/drop_trait.rs rename to tests/run-make/coverage/drop_trait.rs diff --git a/src/test/run-make/coverage/generator.rs b/tests/run-make/coverage/generator.rs similarity index 100% rename from src/test/run-make/coverage/generator.rs rename to tests/run-make/coverage/generator.rs diff --git a/src/test/run-make/coverage/generics.rs b/tests/run-make/coverage/generics.rs similarity index 100% rename from src/test/run-make/coverage/generics.rs rename to tests/run-make/coverage/generics.rs diff --git a/src/test/run-make/coverage/if.rs b/tests/run-make/coverage/if.rs similarity index 100% rename from src/test/run-make/coverage/if.rs rename to tests/run-make/coverage/if.rs diff --git a/src/test/run-make/coverage/if_else.rs b/tests/run-make/coverage/if_else.rs similarity index 100% rename from src/test/run-make/coverage/if_else.rs rename to tests/run-make/coverage/if_else.rs diff --git a/src/test/run-make/coverage/inline-dead.rs b/tests/run-make/coverage/inline-dead.rs similarity index 100% rename from src/test/run-make/coverage/inline-dead.rs rename to tests/run-make/coverage/inline-dead.rs diff --git a/src/test/run-make/coverage/inline.rs b/tests/run-make/coverage/inline.rs similarity index 100% rename from src/test/run-make/coverage/inline.rs rename to tests/run-make/coverage/inline.rs diff --git a/src/test/run-make/coverage/inner_items.rs b/tests/run-make/coverage/inner_items.rs similarity index 100% rename from src/test/run-make/coverage/inner_items.rs rename to tests/run-make/coverage/inner_items.rs diff --git a/src/test/run-make/coverage/issue-83601.rs b/tests/run-make/coverage/issue-83601.rs similarity index 100% rename from src/test/run-make/coverage/issue-83601.rs rename to tests/run-make/coverage/issue-83601.rs diff --git a/src/test/run-make/coverage/issue-84561.rs b/tests/run-make/coverage/issue-84561.rs similarity index 100% rename from src/test/run-make/coverage/issue-84561.rs rename to tests/run-make/coverage/issue-84561.rs diff --git a/src/test/run-make/coverage/issue-85461.rs b/tests/run-make/coverage/issue-85461.rs similarity index 100% rename from src/test/run-make/coverage/issue-85461.rs rename to tests/run-make/coverage/issue-85461.rs diff --git a/src/test/run-make/coverage/issue-93054.rs b/tests/run-make/coverage/issue-93054.rs similarity index 100% rename from src/test/run-make/coverage/issue-93054.rs rename to tests/run-make/coverage/issue-93054.rs diff --git a/src/test/run-make/coverage/lazy_boolean.rs b/tests/run-make/coverage/lazy_boolean.rs similarity index 100% rename from src/test/run-make/coverage/lazy_boolean.rs rename to tests/run-make/coverage/lazy_boolean.rs diff --git a/src/test/run-make/coverage/lib/doctest_crate.rs b/tests/run-make/coverage/lib/doctest_crate.rs similarity index 100% rename from src/test/run-make/coverage/lib/doctest_crate.rs rename to tests/run-make/coverage/lib/doctest_crate.rs diff --git a/src/test/run-make/coverage/lib/inline_always_with_dead_code.rs b/tests/run-make/coverage/lib/inline_always_with_dead_code.rs similarity index 100% rename from src/test/run-make/coverage/lib/inline_always_with_dead_code.rs rename to tests/run-make/coverage/lib/inline_always_with_dead_code.rs diff --git a/src/test/run-make/coverage/lib/unused_mod_helper.rs b/tests/run-make/coverage/lib/unused_mod_helper.rs similarity index 100% rename from src/test/run-make/coverage/lib/unused_mod_helper.rs rename to tests/run-make/coverage/lib/unused_mod_helper.rs diff --git a/src/test/run-make/coverage/lib/used_crate.rs b/tests/run-make/coverage/lib/used_crate.rs similarity index 100% rename from src/test/run-make/coverage/lib/used_crate.rs rename to tests/run-make/coverage/lib/used_crate.rs diff --git a/src/test/run-make/coverage/lib/used_inline_crate.rs b/tests/run-make/coverage/lib/used_inline_crate.rs similarity index 100% rename from src/test/run-make/coverage/lib/used_inline_crate.rs rename to tests/run-make/coverage/lib/used_inline_crate.rs diff --git a/src/test/run-make/coverage/loop_break_value.rs b/tests/run-make/coverage/loop_break_value.rs similarity index 100% rename from src/test/run-make/coverage/loop_break_value.rs rename to tests/run-make/coverage/loop_break_value.rs diff --git a/src/test/run-make/coverage/loops_branches.rs b/tests/run-make/coverage/loops_branches.rs similarity index 100% rename from src/test/run-make/coverage/loops_branches.rs rename to tests/run-make/coverage/loops_branches.rs diff --git a/src/test/run-make/coverage/match_or_pattern.rs b/tests/run-make/coverage/match_or_pattern.rs similarity index 100% rename from src/test/run-make/coverage/match_or_pattern.rs rename to tests/run-make/coverage/match_or_pattern.rs diff --git a/src/test/run-make/coverage/nested_loops.rs b/tests/run-make/coverage/nested_loops.rs similarity index 100% rename from src/test/run-make/coverage/nested_loops.rs rename to tests/run-make/coverage/nested_loops.rs diff --git a/src/test/run-make/coverage/no_cov_crate.rs b/tests/run-make/coverage/no_cov_crate.rs similarity index 100% rename from src/test/run-make/coverage/no_cov_crate.rs rename to tests/run-make/coverage/no_cov_crate.rs diff --git a/src/test/run-make/coverage/overflow.rs b/tests/run-make/coverage/overflow.rs similarity index 100% rename from src/test/run-make/coverage/overflow.rs rename to tests/run-make/coverage/overflow.rs diff --git a/src/test/run-make/coverage/panic_unwind.rs b/tests/run-make/coverage/panic_unwind.rs similarity index 100% rename from src/test/run-make/coverage/panic_unwind.rs rename to tests/run-make/coverage/panic_unwind.rs diff --git a/src/test/run-make/coverage/partial_eq.rs b/tests/run-make/coverage/partial_eq.rs similarity index 100% rename from src/test/run-make/coverage/partial_eq.rs rename to tests/run-make/coverage/partial_eq.rs diff --git a/src/test/run-make/coverage/simple_loop.rs b/tests/run-make/coverage/simple_loop.rs similarity index 100% rename from src/test/run-make/coverage/simple_loop.rs rename to tests/run-make/coverage/simple_loop.rs diff --git a/src/test/run-make/coverage/simple_match.rs b/tests/run-make/coverage/simple_match.rs similarity index 100% rename from src/test/run-make/coverage/simple_match.rs rename to tests/run-make/coverage/simple_match.rs diff --git a/src/test/run-make/coverage/tight_inf_loop.rs b/tests/run-make/coverage/tight_inf_loop.rs similarity index 100% rename from src/test/run-make/coverage/tight_inf_loop.rs rename to tests/run-make/coverage/tight_inf_loop.rs diff --git a/src/test/run-make/coverage/try_error_result.rs b/tests/run-make/coverage/try_error_result.rs similarity index 100% rename from src/test/run-make/coverage/try_error_result.rs rename to tests/run-make/coverage/try_error_result.rs diff --git a/src/test/run-make/coverage/unused.rs b/tests/run-make/coverage/unused.rs similarity index 100% rename from src/test/run-make/coverage/unused.rs rename to tests/run-make/coverage/unused.rs diff --git a/src/test/run-make/coverage/unused_mod.rs b/tests/run-make/coverage/unused_mod.rs similarity index 100% rename from src/test/run-make/coverage/unused_mod.rs rename to tests/run-make/coverage/unused_mod.rs diff --git a/src/test/run-make/coverage/uses_crate.rs b/tests/run-make/coverage/uses_crate.rs similarity index 100% rename from src/test/run-make/coverage/uses_crate.rs rename to tests/run-make/coverage/uses_crate.rs diff --git a/src/test/run-make/coverage/uses_inline_crate.rs b/tests/run-make/coverage/uses_inline_crate.rs similarity index 100% rename from src/test/run-make/coverage/uses_inline_crate.rs rename to tests/run-make/coverage/uses_inline_crate.rs diff --git a/src/test/run-make/coverage/while.rs b/tests/run-make/coverage/while.rs similarity index 100% rename from src/test/run-make/coverage/while.rs rename to tests/run-make/coverage/while.rs diff --git a/src/test/run-make/coverage/while_early_ret.rs b/tests/run-make/coverage/while_early_ret.rs similarity index 100% rename from src/test/run-make/coverage/while_early_ret.rs rename to tests/run-make/coverage/while_early_ret.rs diff --git a/src/test/run-make/coverage/yield.rs b/tests/run-make/coverage/yield.rs similarity index 100% rename from src/test/run-make/coverage/yield.rs rename to tests/run-make/coverage/yield.rs diff --git a/src/test/run-make/dep-graph/Makefile b/tests/run-make/dep-graph/Makefile similarity index 100% rename from src/test/run-make/dep-graph/Makefile rename to tests/run-make/dep-graph/Makefile diff --git a/src/test/run-make/dep-graph/foo.rs b/tests/run-make/dep-graph/foo.rs similarity index 100% rename from src/test/run-make/dep-graph/foo.rs rename to tests/run-make/dep-graph/foo.rs diff --git a/src/test/run-make/dump-mono-stats/Makefile b/tests/run-make/dump-mono-stats/Makefile similarity index 100% rename from src/test/run-make/dump-mono-stats/Makefile rename to tests/run-make/dump-mono-stats/Makefile diff --git a/src/test/run-make/dump-mono-stats/foo.rs b/tests/run-make/dump-mono-stats/foo.rs similarity index 100% rename from src/test/run-make/dump-mono-stats/foo.rs rename to tests/run-make/dump-mono-stats/foo.rs diff --git a/src/test/run-make/emit-named-files/Makefile b/tests/run-make/emit-named-files/Makefile similarity index 100% rename from src/test/run-make/emit-named-files/Makefile rename to tests/run-make/emit-named-files/Makefile diff --git a/src/test/run-make/emit-named-files/foo.rs b/tests/run-make/emit-named-files/foo.rs similarity index 100% rename from src/test/run-make/emit-named-files/foo.rs rename to tests/run-make/emit-named-files/foo.rs diff --git a/src/test/run-make/emit-path-unhashed/Makefile b/tests/run-make/emit-path-unhashed/Makefile similarity index 100% rename from src/test/run-make/emit-path-unhashed/Makefile rename to tests/run-make/emit-path-unhashed/Makefile diff --git a/src/test/run-make/emit-path-unhashed/foo.rs b/tests/run-make/emit-path-unhashed/foo.rs similarity index 100% rename from src/test/run-make/emit-path-unhashed/foo.rs rename to tests/run-make/emit-path-unhashed/foo.rs diff --git a/src/test/run-make/emit-shared-files/Makefile b/tests/run-make/emit-shared-files/Makefile similarity index 100% rename from src/test/run-make/emit-shared-files/Makefile rename to tests/run-make/emit-shared-files/Makefile diff --git a/src/test/run-make/emit-shared-files/x.rs b/tests/run-make/emit-shared-files/x.rs similarity index 100% rename from src/test/run-make/emit-shared-files/x.rs rename to tests/run-make/emit-shared-files/x.rs diff --git a/src/test/run-make/emit-shared-files/y.css b/tests/run-make/emit-shared-files/y.css similarity index 100% rename from src/test/run-make/emit-shared-files/y.css rename to tests/run-make/emit-shared-files/y.css diff --git a/src/test/run-make/emit-shared-files/z.css b/tests/run-make/emit-shared-files/z.css similarity index 100% rename from src/test/run-make/emit-shared-files/z.css rename to tests/run-make/emit-shared-files/z.css diff --git a/src/test/run-make/env-dep-info/Makefile b/tests/run-make/env-dep-info/Makefile similarity index 100% rename from src/test/run-make/env-dep-info/Makefile rename to tests/run-make/env-dep-info/Makefile diff --git a/src/test/run-make/env-dep-info/macro_def.rs b/tests/run-make/env-dep-info/macro_def.rs similarity index 100% rename from src/test/run-make/env-dep-info/macro_def.rs rename to tests/run-make/env-dep-info/macro_def.rs diff --git a/src/test/run-make/env-dep-info/macro_use.rs b/tests/run-make/env-dep-info/macro_use.rs similarity index 100% rename from src/test/run-make/env-dep-info/macro_use.rs rename to tests/run-make/env-dep-info/macro_use.rs diff --git a/src/test/run-make/env-dep-info/main.rs b/tests/run-make/env-dep-info/main.rs similarity index 100% rename from src/test/run-make/env-dep-info/main.rs rename to tests/run-make/env-dep-info/main.rs diff --git a/src/test/run-make/export-executable-symbols/Makefile b/tests/run-make/export-executable-symbols/Makefile similarity index 100% rename from src/test/run-make/export-executable-symbols/Makefile rename to tests/run-make/export-executable-symbols/Makefile diff --git a/src/test/run-make/export-executable-symbols/main.rs b/tests/run-make/export-executable-symbols/main.rs similarity index 100% rename from src/test/run-make/export-executable-symbols/main.rs rename to tests/run-make/export-executable-symbols/main.rs diff --git a/src/test/run-make/fmt-write-bloat/Makefile b/tests/run-make/fmt-write-bloat/Makefile similarity index 100% rename from src/test/run-make/fmt-write-bloat/Makefile rename to tests/run-make/fmt-write-bloat/Makefile diff --git a/src/test/run-make/fmt-write-bloat/main.rs b/tests/run-make/fmt-write-bloat/main.rs similarity index 100% rename from src/test/run-make/fmt-write-bloat/main.rs rename to tests/run-make/fmt-write-bloat/main.rs diff --git a/src/test/run-make/git_clone_sha1.sh b/tests/run-make/git_clone_sha1.sh similarity index 100% rename from src/test/run-make/git_clone_sha1.sh rename to tests/run-make/git_clone_sha1.sh diff --git a/src/test/run-make/incr-foreign-head-span/Makefile b/tests/run-make/incr-foreign-head-span/Makefile similarity index 100% rename from src/test/run-make/incr-foreign-head-span/Makefile rename to tests/run-make/incr-foreign-head-span/Makefile diff --git a/src/test/run-make/incr-foreign-head-span/first_crate.rs b/tests/run-make/incr-foreign-head-span/first_crate.rs similarity index 100% rename from src/test/run-make/incr-foreign-head-span/first_crate.rs rename to tests/run-make/incr-foreign-head-span/first_crate.rs diff --git a/src/test/run-make/incr-foreign-head-span/second_crate.rs b/tests/run-make/incr-foreign-head-span/second_crate.rs similarity index 100% rename from src/test/run-make/incr-foreign-head-span/second_crate.rs rename to tests/run-make/incr-foreign-head-span/second_crate.rs diff --git a/src/test/run-make/incr-prev-body-beyond-eof/Makefile b/tests/run-make/incr-prev-body-beyond-eof/Makefile similarity index 100% rename from src/test/run-make/incr-prev-body-beyond-eof/Makefile rename to tests/run-make/incr-prev-body-beyond-eof/Makefile diff --git a/src/test/run-make/incr-prev-body-beyond-eof/a.rs b/tests/run-make/incr-prev-body-beyond-eof/a.rs similarity index 100% rename from src/test/run-make/incr-prev-body-beyond-eof/a.rs rename to tests/run-make/incr-prev-body-beyond-eof/a.rs diff --git a/src/test/run-make/incr-prev-body-beyond-eof/b.rs b/tests/run-make/incr-prev-body-beyond-eof/b.rs similarity index 100% rename from src/test/run-make/incr-prev-body-beyond-eof/b.rs rename to tests/run-make/incr-prev-body-beyond-eof/b.rs diff --git a/src/test/run-make/incremental-session-fail/Makefile b/tests/run-make/incremental-session-fail/Makefile similarity index 100% rename from src/test/run-make/incremental-session-fail/Makefile rename to tests/run-make/incremental-session-fail/Makefile diff --git a/src/test/run-make/incremental-session-fail/foo.rs b/tests/run-make/incremental-session-fail/foo.rs similarity index 100% rename from src/test/run-make/incremental-session-fail/foo.rs rename to tests/run-make/incremental-session-fail/foo.rs diff --git a/src/test/run-make/invalid-so/Makefile b/tests/run-make/invalid-so/Makefile similarity index 100% rename from src/test/run-make/invalid-so/Makefile rename to tests/run-make/invalid-so/Makefile diff --git a/src/test/run-make/invalid-so/bar.rs b/tests/run-make/invalid-so/bar.rs similarity index 100% rename from src/test/run-make/invalid-so/bar.rs rename to tests/run-make/invalid-so/bar.rs diff --git a/src/test/run-make/issue-10971-temps-dir/Makefile b/tests/run-make/issue-10971-temps-dir/Makefile similarity index 100% rename from src/test/run-make/issue-10971-temps-dir/Makefile rename to tests/run-make/issue-10971-temps-dir/Makefile diff --git a/src/test/run-make/issue-36710/Makefile b/tests/run-make/issue-36710/Makefile similarity index 100% rename from src/test/run-make/issue-36710/Makefile rename to tests/run-make/issue-36710/Makefile diff --git a/src/test/run-make/issue-36710/foo.cpp b/tests/run-make/issue-36710/foo.cpp similarity index 100% rename from src/test/run-make/issue-36710/foo.cpp rename to tests/run-make/issue-36710/foo.cpp diff --git a/src/test/run-make/issue-36710/foo.rs b/tests/run-make/issue-36710/foo.rs similarity index 100% rename from src/test/run-make/issue-36710/foo.rs rename to tests/run-make/issue-36710/foo.rs diff --git a/src/test/run-make/issue-47384/Makefile b/tests/run-make/issue-47384/Makefile similarity index 100% rename from src/test/run-make/issue-47384/Makefile rename to tests/run-make/issue-47384/Makefile diff --git a/src/test/run-make/issue-47384/lib.rs b/tests/run-make/issue-47384/lib.rs similarity index 100% rename from src/test/run-make/issue-47384/lib.rs rename to tests/run-make/issue-47384/lib.rs diff --git a/src/test/run-make/issue-47384/linker.ld b/tests/run-make/issue-47384/linker.ld similarity index 100% rename from src/test/run-make/issue-47384/linker.ld rename to tests/run-make/issue-47384/linker.ld diff --git a/src/test/run-make/issue-47384/main.rs b/tests/run-make/issue-47384/main.rs similarity index 100% rename from src/test/run-make/issue-47384/main.rs rename to tests/run-make/issue-47384/main.rs diff --git a/src/test/run-make/issue-71519/Makefile b/tests/run-make/issue-71519/Makefile similarity index 100% rename from src/test/run-make/issue-71519/Makefile rename to tests/run-make/issue-71519/Makefile diff --git a/src/test/run-make/issue-71519/main.rs b/tests/run-make/issue-71519/main.rs similarity index 100% rename from src/test/run-make/issue-71519/main.rs rename to tests/run-make/issue-71519/main.rs diff --git a/src/test/run-make/issue-83112-incr-test-moved-file/Makefile b/tests/run-make/issue-83112-incr-test-moved-file/Makefile similarity index 100% rename from src/test/run-make/issue-83112-incr-test-moved-file/Makefile rename to tests/run-make/issue-83112-incr-test-moved-file/Makefile diff --git a/src/test/run-make/issue-83112-incr-test-moved-file/main.rs b/tests/run-make/issue-83112-incr-test-moved-file/main.rs similarity index 100% rename from src/test/run-make/issue-83112-incr-test-moved-file/main.rs rename to tests/run-make/issue-83112-incr-test-moved-file/main.rs diff --git a/src/test/run-make/issue-85019-moved-src-dir/Makefile b/tests/run-make/issue-85019-moved-src-dir/Makefile similarity index 100% rename from src/test/run-make/issue-85019-moved-src-dir/Makefile rename to tests/run-make/issue-85019-moved-src-dir/Makefile diff --git a/src/test/run-make/issue-85019-moved-src-dir/main.rs b/tests/run-make/issue-85019-moved-src-dir/main.rs similarity index 100% rename from src/test/run-make/issue-85019-moved-src-dir/main.rs rename to tests/run-make/issue-85019-moved-src-dir/main.rs diff --git a/src/test/run-make/issue-85019-moved-src-dir/my_lib.rs b/tests/run-make/issue-85019-moved-src-dir/my_lib.rs similarity index 100% rename from src/test/run-make/issue-85019-moved-src-dir/my_lib.rs rename to tests/run-make/issue-85019-moved-src-dir/my_lib.rs diff --git a/src/test/run-make/issue-85401-static-mir/Makefile b/tests/run-make/issue-85401-static-mir/Makefile similarity index 100% rename from src/test/run-make/issue-85401-static-mir/Makefile rename to tests/run-make/issue-85401-static-mir/Makefile diff --git a/src/test/run-make/issue-85401-static-mir/bar.rs b/tests/run-make/issue-85401-static-mir/bar.rs similarity index 100% rename from src/test/run-make/issue-85401-static-mir/bar.rs rename to tests/run-make/issue-85401-static-mir/bar.rs diff --git a/src/test/run-make/issue-85401-static-mir/baz.rs b/tests/run-make/issue-85401-static-mir/baz.rs similarity index 100% rename from src/test/run-make/issue-85401-static-mir/baz.rs rename to tests/run-make/issue-85401-static-mir/baz.rs diff --git a/src/test/run-make/issue-85401-static-mir/foo.rs b/tests/run-make/issue-85401-static-mir/foo.rs similarity index 100% rename from src/test/run-make/issue-85401-static-mir/foo.rs rename to tests/run-make/issue-85401-static-mir/foo.rs diff --git a/src/test/run-make/issue-85441/Makefile b/tests/run-make/issue-85441/Makefile similarity index 100% rename from src/test/run-make/issue-85441/Makefile rename to tests/run-make/issue-85441/Makefile diff --git a/src/test/run-make/issue-85441/empty.rs b/tests/run-make/issue-85441/empty.rs similarity index 100% rename from src/test/run-make/issue-85441/empty.rs rename to tests/run-make/issue-85441/empty.rs diff --git a/src/test/run-make/issue-88756-default-output/Makefile b/tests/run-make/issue-88756-default-output/Makefile similarity index 100% rename from src/test/run-make/issue-88756-default-output/Makefile rename to tests/run-make/issue-88756-default-output/Makefile diff --git a/src/test/run-make/issue-88756-default-output/README.md b/tests/run-make/issue-88756-default-output/README.md similarity index 100% rename from src/test/run-make/issue-88756-default-output/README.md rename to tests/run-make/issue-88756-default-output/README.md diff --git a/src/test/run-make/issue-88756-default-output/output-default.stdout b/tests/run-make/issue-88756-default-output/output-default.stdout similarity index 100% rename from src/test/run-make/issue-88756-default-output/output-default.stdout rename to tests/run-make/issue-88756-default-output/output-default.stdout diff --git a/src/test/run-make/issue-88756-default-output/x.rs b/tests/run-make/issue-88756-default-output/x.rs similarity index 100% rename from src/test/run-make/issue-88756-default-output/x.rs rename to tests/run-make/issue-88756-default-output/x.rs diff --git a/src/test/run-make/issue-96498/Makefile b/tests/run-make/issue-96498/Makefile similarity index 100% rename from src/test/run-make/issue-96498/Makefile rename to tests/run-make/issue-96498/Makefile diff --git a/src/test/run-make/issue-96498/foo.rs b/tests/run-make/issue-96498/foo.rs similarity index 100% rename from src/test/run-make/issue-96498/foo.rs rename to tests/run-make/issue-96498/foo.rs diff --git a/src/test/run-make/libtest-thread-limit/Makefile b/tests/run-make/libtest-thread-limit/Makefile similarity index 100% rename from src/test/run-make/libtest-thread-limit/Makefile rename to tests/run-make/libtest-thread-limit/Makefile diff --git a/src/test/run-make/libtest-thread-limit/test.rs b/tests/run-make/libtest-thread-limit/test.rs similarity index 100% rename from src/test/run-make/libtest-thread-limit/test.rs rename to tests/run-make/libtest-thread-limit/test.rs diff --git a/src/test/run-make/llvm-outputs/Makefile b/tests/run-make/llvm-outputs/Makefile similarity index 100% rename from src/test/run-make/llvm-outputs/Makefile rename to tests/run-make/llvm-outputs/Makefile diff --git a/src/test/run-make/macos-deployment-target/Makefile b/tests/run-make/macos-deployment-target/Makefile similarity index 100% rename from src/test/run-make/macos-deployment-target/Makefile rename to tests/run-make/macos-deployment-target/Makefile diff --git a/src/test/run-make/macos-deployment-target/with_deployment_target.rs b/tests/run-make/macos-deployment-target/with_deployment_target.rs similarity index 100% rename from src/test/run-make/macos-deployment-target/with_deployment_target.rs rename to tests/run-make/macos-deployment-target/with_deployment_target.rs diff --git a/src/test/run-make/macos-fat-archive/Makefile b/tests/run-make/macos-fat-archive/Makefile similarity index 100% rename from src/test/run-make/macos-fat-archive/Makefile rename to tests/run-make/macos-fat-archive/Makefile diff --git a/src/test/run-make/macos-fat-archive/lib.rs b/tests/run-make/macos-fat-archive/lib.rs similarity index 100% rename from src/test/run-make/macos-fat-archive/lib.rs rename to tests/run-make/macos-fat-archive/lib.rs diff --git a/src/test/run-make/macos-fat-archive/native-library.c b/tests/run-make/macos-fat-archive/native-library.c similarity index 100% rename from src/test/run-make/macos-fat-archive/native-library.c rename to tests/run-make/macos-fat-archive/native-library.c diff --git a/src/test/run-make/native-link-modifier-bundle/Makefile b/tests/run-make/native-link-modifier-bundle/Makefile similarity index 100% rename from src/test/run-make/native-link-modifier-bundle/Makefile rename to tests/run-make/native-link-modifier-bundle/Makefile diff --git a/src/test/run-make/native-link-modifier-bundle/bundled.rs b/tests/run-make/native-link-modifier-bundle/bundled.rs similarity index 100% rename from src/test/run-make/native-link-modifier-bundle/bundled.rs rename to tests/run-make/native-link-modifier-bundle/bundled.rs diff --git a/src/test/run-make/native-link-modifier-bundle/cdylib-bundled.rs b/tests/run-make/native-link-modifier-bundle/cdylib-bundled.rs similarity index 100% rename from src/test/run-make/native-link-modifier-bundle/cdylib-bundled.rs rename to tests/run-make/native-link-modifier-bundle/cdylib-bundled.rs diff --git a/src/test/run-make/native-link-modifier-bundle/cdylib-non-bundled.rs b/tests/run-make/native-link-modifier-bundle/cdylib-non-bundled.rs similarity index 100% rename from src/test/run-make/native-link-modifier-bundle/cdylib-non-bundled.rs rename to tests/run-make/native-link-modifier-bundle/cdylib-non-bundled.rs diff --git a/src/test/run-make/native-link-modifier-bundle/native-staticlib.c b/tests/run-make/native-link-modifier-bundle/native-staticlib.c similarity index 100% rename from src/test/run-make/native-link-modifier-bundle/native-staticlib.c rename to tests/run-make/native-link-modifier-bundle/native-staticlib.c diff --git a/src/test/run-make/native-link-modifier-bundle/non-bundled.rs b/tests/run-make/native-link-modifier-bundle/non-bundled.rs similarity index 100% rename from src/test/run-make/native-link-modifier-bundle/non-bundled.rs rename to tests/run-make/native-link-modifier-bundle/non-bundled.rs diff --git a/src/test/run-make/native-link-modifier-verbatim-linker/Makefile b/tests/run-make/native-link-modifier-verbatim-linker/Makefile similarity index 100% rename from src/test/run-make/native-link-modifier-verbatim-linker/Makefile rename to tests/run-make/native-link-modifier-verbatim-linker/Makefile diff --git a/src/test/run-make/native-link-modifier-verbatim-linker/local_native_dep.rs b/tests/run-make/native-link-modifier-verbatim-linker/local_native_dep.rs similarity index 100% rename from src/test/run-make/native-link-modifier-verbatim-linker/local_native_dep.rs rename to tests/run-make/native-link-modifier-verbatim-linker/local_native_dep.rs diff --git a/src/test/run-make/native-link-modifier-verbatim-linker/main.rs b/tests/run-make/native-link-modifier-verbatim-linker/main.rs similarity index 100% rename from src/test/run-make/native-link-modifier-verbatim-linker/main.rs rename to tests/run-make/native-link-modifier-verbatim-linker/main.rs diff --git a/src/test/run-make/native-link-modifier-verbatim-rustc/Makefile b/tests/run-make/native-link-modifier-verbatim-rustc/Makefile similarity index 100% rename from src/test/run-make/native-link-modifier-verbatim-rustc/Makefile rename to tests/run-make/native-link-modifier-verbatim-rustc/Makefile diff --git a/src/test/run-make/native-link-modifier-verbatim-rustc/rust_dep.rs b/tests/run-make/native-link-modifier-verbatim-rustc/rust_dep.rs similarity index 100% rename from src/test/run-make/native-link-modifier-verbatim-rustc/rust_dep.rs rename to tests/run-make/native-link-modifier-verbatim-rustc/rust_dep.rs diff --git a/src/test/run-make/native-link-modifier-verbatim-rustc/upstream_native_dep.rs b/tests/run-make/native-link-modifier-verbatim-rustc/upstream_native_dep.rs similarity index 100% rename from src/test/run-make/native-link-modifier-verbatim-rustc/upstream_native_dep.rs rename to tests/run-make/native-link-modifier-verbatim-rustc/upstream_native_dep.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/Makefile b/tests/run-make/native-link-modifier-whole-archive/Makefile similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/Makefile rename to tests/run-make/native-link-modifier-whole-archive/Makefile diff --git a/src/test/run-make/native-link-modifier-whole-archive/c_static_lib_with_constructor.cpp b/tests/run-make/native-link-modifier-whole-archive/c_static_lib_with_constructor.cpp similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/c_static_lib_with_constructor.cpp rename to tests/run-make/native-link-modifier-whole-archive/c_static_lib_with_constructor.cpp diff --git a/src/test/run-make/native-link-modifier-whole-archive/directly_linked.rs b/tests/run-make/native-link-modifier-whole-archive/directly_linked.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/directly_linked.rs rename to tests/run-make/native-link-modifier-whole-archive/directly_linked.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/directly_linked_test_minus_whole_archive.rs b/tests/run-make/native-link-modifier-whole-archive/directly_linked_test_minus_whole_archive.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/directly_linked_test_minus_whole_archive.rs rename to tests/run-make/native-link-modifier-whole-archive/directly_linked_test_minus_whole_archive.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/directly_linked_test_plus_whole_archive.rs b/tests/run-make/native-link-modifier-whole-archive/directly_linked_test_plus_whole_archive.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/directly_linked_test_plus_whole_archive.rs rename to tests/run-make/native-link-modifier-whole-archive/directly_linked_test_plus_whole_archive.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/indirectly_linked.rs b/tests/run-make/native-link-modifier-whole-archive/indirectly_linked.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/indirectly_linked.rs rename to tests/run-make/native-link-modifier-whole-archive/indirectly_linked.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/indirectly_linked_via_attr.rs b/tests/run-make/native-link-modifier-whole-archive/indirectly_linked_via_attr.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/indirectly_linked_via_attr.rs rename to tests/run-make/native-link-modifier-whole-archive/indirectly_linked_via_attr.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs b/tests/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs rename to tests/run-make/native-link-modifier-whole-archive/native_lib_in_src.rs diff --git a/src/test/run-make/native-link-modifier-whole-archive/rlib_with_cmdline_native_lib.rs b/tests/run-make/native-link-modifier-whole-archive/rlib_with_cmdline_native_lib.rs similarity index 100% rename from src/test/run-make/native-link-modifier-whole-archive/rlib_with_cmdline_native_lib.rs rename to tests/run-make/native-link-modifier-whole-archive/rlib_with_cmdline_native_lib.rs diff --git a/src/test/run-make/pass-linker-flags-from-dep/Makefile b/tests/run-make/pass-linker-flags-from-dep/Makefile similarity index 100% rename from src/test/run-make/pass-linker-flags-from-dep/Makefile rename to tests/run-make/pass-linker-flags-from-dep/Makefile diff --git a/src/test/run-make/pass-linker-flags-from-dep/main.rs b/tests/run-make/pass-linker-flags-from-dep/main.rs similarity index 100% rename from src/test/run-make/pass-linker-flags-from-dep/main.rs rename to tests/run-make/pass-linker-flags-from-dep/main.rs diff --git a/src/test/run-make/pass-linker-flags-from-dep/native_dep_1.rs b/tests/run-make/pass-linker-flags-from-dep/native_dep_1.rs similarity index 100% rename from src/test/run-make/pass-linker-flags-from-dep/native_dep_1.rs rename to tests/run-make/pass-linker-flags-from-dep/native_dep_1.rs diff --git a/src/test/run-make/pass-linker-flags-from-dep/native_dep_2.rs b/tests/run-make/pass-linker-flags-from-dep/native_dep_2.rs similarity index 100% rename from src/test/run-make/pass-linker-flags-from-dep/native_dep_2.rs rename to tests/run-make/pass-linker-flags-from-dep/native_dep_2.rs diff --git a/src/test/run-make/pass-linker-flags-from-dep/rust_dep.rs b/tests/run-make/pass-linker-flags-from-dep/rust_dep.rs similarity index 100% rename from src/test/run-make/pass-linker-flags-from-dep/rust_dep.rs rename to tests/run-make/pass-linker-flags-from-dep/rust_dep.rs diff --git a/src/test/run-make/pass-linker-flags/Makefile b/tests/run-make/pass-linker-flags/Makefile similarity index 100% rename from src/test/run-make/pass-linker-flags/Makefile rename to tests/run-make/pass-linker-flags/Makefile diff --git a/src/test/run-make/pass-linker-flags/rs.rs b/tests/run-make/pass-linker-flags/rs.rs similarity index 100% rename from src/test/run-make/pass-linker-flags/rs.rs rename to tests/run-make/pass-linker-flags/rs.rs diff --git a/src/test/run-make/raw-dylib-alt-calling-convention/Makefile b/tests/run-make/raw-dylib-alt-calling-convention/Makefile similarity index 100% rename from src/test/run-make/raw-dylib-alt-calling-convention/Makefile rename to tests/run-make/raw-dylib-alt-calling-convention/Makefile diff --git a/src/test/run-make/raw-dylib-alt-calling-convention/driver.rs b/tests/run-make/raw-dylib-alt-calling-convention/driver.rs similarity index 100% rename from src/test/run-make/raw-dylib-alt-calling-convention/driver.rs rename to tests/run-make/raw-dylib-alt-calling-convention/driver.rs diff --git a/src/test/run-make/raw-dylib-alt-calling-convention/extern.c b/tests/run-make/raw-dylib-alt-calling-convention/extern.c similarity index 100% rename from src/test/run-make/raw-dylib-alt-calling-convention/extern.c rename to tests/run-make/raw-dylib-alt-calling-convention/extern.c diff --git a/src/test/run-make/raw-dylib-alt-calling-convention/lib.rs b/tests/run-make/raw-dylib-alt-calling-convention/lib.rs similarity index 100% rename from src/test/run-make/raw-dylib-alt-calling-convention/lib.rs rename to tests/run-make/raw-dylib-alt-calling-convention/lib.rs diff --git a/src/test/run-make/raw-dylib-alt-calling-convention/output.msvc.txt b/tests/run-make/raw-dylib-alt-calling-convention/output.msvc.txt similarity index 100% rename from src/test/run-make/raw-dylib-alt-calling-convention/output.msvc.txt rename to tests/run-make/raw-dylib-alt-calling-convention/output.msvc.txt diff --git a/src/test/run-make/raw-dylib-alt-calling-convention/output.txt b/tests/run-make/raw-dylib-alt-calling-convention/output.txt similarity index 100% rename from src/test/run-make/raw-dylib-alt-calling-convention/output.txt rename to tests/run-make/raw-dylib-alt-calling-convention/output.txt diff --git a/src/test/run-make/raw-dylib-c/Makefile b/tests/run-make/raw-dylib-c/Makefile similarity index 100% rename from src/test/run-make/raw-dylib-c/Makefile rename to tests/run-make/raw-dylib-c/Makefile diff --git a/src/test/run-make/raw-dylib-c/driver.rs b/tests/run-make/raw-dylib-c/driver.rs similarity index 100% rename from src/test/run-make/raw-dylib-c/driver.rs rename to tests/run-make/raw-dylib-c/driver.rs diff --git a/src/test/run-make/raw-dylib-c/extern_1.c b/tests/run-make/raw-dylib-c/extern_1.c similarity index 100% rename from src/test/run-make/raw-dylib-c/extern_1.c rename to tests/run-make/raw-dylib-c/extern_1.c diff --git a/src/test/run-make/raw-dylib-c/extern_2.c b/tests/run-make/raw-dylib-c/extern_2.c similarity index 100% rename from src/test/run-make/raw-dylib-c/extern_2.c rename to tests/run-make/raw-dylib-c/extern_2.c diff --git a/src/test/run-make/raw-dylib-c/lib.rs b/tests/run-make/raw-dylib-c/lib.rs similarity index 100% rename from src/test/run-make/raw-dylib-c/lib.rs rename to tests/run-make/raw-dylib-c/lib.rs diff --git a/src/test/run-make/raw-dylib-c/output.txt b/tests/run-make/raw-dylib-c/output.txt similarity index 100% rename from src/test/run-make/raw-dylib-c/output.txt rename to tests/run-make/raw-dylib-c/output.txt diff --git a/src/test/run-make/raw-dylib-import-name-type/Makefile b/tests/run-make/raw-dylib-import-name-type/Makefile similarity index 100% rename from src/test/run-make/raw-dylib-import-name-type/Makefile rename to tests/run-make/raw-dylib-import-name-type/Makefile diff --git a/src/test/run-make/raw-dylib-import-name-type/driver.rs b/tests/run-make/raw-dylib-import-name-type/driver.rs similarity index 100% rename from src/test/run-make/raw-dylib-import-name-type/driver.rs rename to tests/run-make/raw-dylib-import-name-type/driver.rs diff --git a/src/test/run-make/raw-dylib-import-name-type/extern.c b/tests/run-make/raw-dylib-import-name-type/extern.c similarity index 100% rename from src/test/run-make/raw-dylib-import-name-type/extern.c rename to tests/run-make/raw-dylib-import-name-type/extern.c diff --git a/src/test/run-make/raw-dylib-import-name-type/extern.gnu.def b/tests/run-make/raw-dylib-import-name-type/extern.gnu.def similarity index 100% rename from src/test/run-make/raw-dylib-import-name-type/extern.gnu.def rename to tests/run-make/raw-dylib-import-name-type/extern.gnu.def diff --git a/src/test/run-make/raw-dylib-import-name-type/extern.msvc.def b/tests/run-make/raw-dylib-import-name-type/extern.msvc.def similarity index 100% rename from src/test/run-make/raw-dylib-import-name-type/extern.msvc.def rename to tests/run-make/raw-dylib-import-name-type/extern.msvc.def diff --git a/src/test/run-make/raw-dylib-import-name-type/output.txt b/tests/run-make/raw-dylib-import-name-type/output.txt similarity index 100% rename from src/test/run-make/raw-dylib-import-name-type/output.txt rename to tests/run-make/raw-dylib-import-name-type/output.txt diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/Makefile b/tests/run-make/raw-dylib-inline-cross-dylib/Makefile similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/Makefile rename to tests/run-make/raw-dylib-inline-cross-dylib/Makefile diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/driver.rs b/tests/run-make/raw-dylib-inline-cross-dylib/driver.rs similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/driver.rs rename to tests/run-make/raw-dylib-inline-cross-dylib/driver.rs diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/extern_1.c b/tests/run-make/raw-dylib-inline-cross-dylib/extern_1.c similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/extern_1.c rename to tests/run-make/raw-dylib-inline-cross-dylib/extern_1.c diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/extern_2.c b/tests/run-make/raw-dylib-inline-cross-dylib/extern_2.c similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/extern_2.c rename to tests/run-make/raw-dylib-inline-cross-dylib/extern_2.c diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/lib.rs b/tests/run-make/raw-dylib-inline-cross-dylib/lib.rs similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/lib.rs rename to tests/run-make/raw-dylib-inline-cross-dylib/lib.rs diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/lib_wrapper.rs b/tests/run-make/raw-dylib-inline-cross-dylib/lib_wrapper.rs similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/lib_wrapper.rs rename to tests/run-make/raw-dylib-inline-cross-dylib/lib_wrapper.rs diff --git a/src/test/run-make/raw-dylib-inline-cross-dylib/output.txt b/tests/run-make/raw-dylib-inline-cross-dylib/output.txt similarity index 100% rename from src/test/run-make/raw-dylib-inline-cross-dylib/output.txt rename to tests/run-make/raw-dylib-inline-cross-dylib/output.txt diff --git a/src/test/run-make/raw-dylib-link-ordinal/Makefile b/tests/run-make/raw-dylib-link-ordinal/Makefile similarity index 100% rename from src/test/run-make/raw-dylib-link-ordinal/Makefile rename to tests/run-make/raw-dylib-link-ordinal/Makefile diff --git a/src/test/run-make/raw-dylib-link-ordinal/driver.rs b/tests/run-make/raw-dylib-link-ordinal/driver.rs similarity index 100% rename from src/test/run-make/raw-dylib-link-ordinal/driver.rs rename to tests/run-make/raw-dylib-link-ordinal/driver.rs diff --git a/src/test/run-make/raw-dylib-link-ordinal/exporter.c b/tests/run-make/raw-dylib-link-ordinal/exporter.c similarity index 100% rename from src/test/run-make/raw-dylib-link-ordinal/exporter.c rename to tests/run-make/raw-dylib-link-ordinal/exporter.c diff --git a/src/test/run-make/raw-dylib-link-ordinal/exporter.def b/tests/run-make/raw-dylib-link-ordinal/exporter.def similarity index 100% rename from src/test/run-make/raw-dylib-link-ordinal/exporter.def rename to tests/run-make/raw-dylib-link-ordinal/exporter.def diff --git a/src/test/run-make/raw-dylib-link-ordinal/lib.rs b/tests/run-make/raw-dylib-link-ordinal/lib.rs similarity index 100% rename from src/test/run-make/raw-dylib-link-ordinal/lib.rs rename to tests/run-make/raw-dylib-link-ordinal/lib.rs diff --git a/src/test/run-make/raw-dylib-link-ordinal/output.txt b/tests/run-make/raw-dylib-link-ordinal/output.txt similarity index 100% rename from src/test/run-make/raw-dylib-link-ordinal/output.txt rename to tests/run-make/raw-dylib-link-ordinal/output.txt diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/Makefile b/tests/run-make/raw-dylib-stdcall-ordinal/Makefile similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/Makefile rename to tests/run-make/raw-dylib-stdcall-ordinal/Makefile diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/driver.rs b/tests/run-make/raw-dylib-stdcall-ordinal/driver.rs similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/driver.rs rename to tests/run-make/raw-dylib-stdcall-ordinal/driver.rs diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/expected_output.txt b/tests/run-make/raw-dylib-stdcall-ordinal/expected_output.txt similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/expected_output.txt rename to tests/run-make/raw-dylib-stdcall-ordinal/expected_output.txt diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/exporter-gnu.def b/tests/run-make/raw-dylib-stdcall-ordinal/exporter-gnu.def similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/exporter-gnu.def rename to tests/run-make/raw-dylib-stdcall-ordinal/exporter-gnu.def diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/exporter-msvc.def b/tests/run-make/raw-dylib-stdcall-ordinal/exporter-msvc.def similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/exporter-msvc.def rename to tests/run-make/raw-dylib-stdcall-ordinal/exporter-msvc.def diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/exporter.c b/tests/run-make/raw-dylib-stdcall-ordinal/exporter.c similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/exporter.c rename to tests/run-make/raw-dylib-stdcall-ordinal/exporter.c diff --git a/src/test/run-make/raw-dylib-stdcall-ordinal/lib.rs b/tests/run-make/raw-dylib-stdcall-ordinal/lib.rs similarity index 100% rename from src/test/run-make/raw-dylib-stdcall-ordinal/lib.rs rename to tests/run-make/raw-dylib-stdcall-ordinal/lib.rs diff --git a/src/test/run-make/remap-path-prefix-dwarf/Makefile b/tests/run-make/remap-path-prefix-dwarf/Makefile similarity index 100% rename from src/test/run-make/remap-path-prefix-dwarf/Makefile rename to tests/run-make/remap-path-prefix-dwarf/Makefile diff --git a/src/test/run-make/remap-path-prefix-dwarf/src/quux.rs b/tests/run-make/remap-path-prefix-dwarf/src/quux.rs similarity index 100% rename from src/test/run-make/remap-path-prefix-dwarf/src/quux.rs rename to tests/run-make/remap-path-prefix-dwarf/src/quux.rs diff --git a/src/test/run-make/repr128-dwarf/Makefile b/tests/run-make/repr128-dwarf/Makefile similarity index 93% rename from src/test/run-make/repr128-dwarf/Makefile rename to tests/run-make/repr128-dwarf/Makefile index a840e3ee6d80b..2b03c22c0d0d2 100644 --- a/src/test/run-make/repr128-dwarf/Makefile +++ b/tests/run-make/repr128-dwarf/Makefile @@ -1,5 +1,5 @@ # ignore-windows -# This test should be replaced with one in src/test/debuginfo once GDB or LLDB support 128-bit +# This test should be replaced with one in tests/debuginfo once GDB or LLDB support 128-bit # enums. include ../../run-make-fulldeps/tools.mk diff --git a/src/test/run-make/repr128-dwarf/lib.rs b/tests/run-make/repr128-dwarf/lib.rs similarity index 100% rename from src/test/run-make/repr128-dwarf/lib.rs rename to tests/run-make/repr128-dwarf/lib.rs diff --git a/src/test/run-make/rlib-format-packed-bundled-libs-2/Makefile b/tests/run-make/rlib-format-packed-bundled-libs-2/Makefile similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs-2/Makefile rename to tests/run-make/rlib-format-packed-bundled-libs-2/Makefile diff --git a/src/test/run-make/rlib-format-packed-bundled-libs-2/main.rs b/tests/run-make/rlib-format-packed-bundled-libs-2/main.rs similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs-2/main.rs rename to tests/run-make/rlib-format-packed-bundled-libs-2/main.rs diff --git a/src/test/run-make/rlib-format-packed-bundled-libs-2/native_dep.rs b/tests/run-make/rlib-format-packed-bundled-libs-2/native_dep.rs similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs-2/native_dep.rs rename to tests/run-make/rlib-format-packed-bundled-libs-2/native_dep.rs diff --git a/src/test/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs b/tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs rename to tests/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/Makefile b/tests/run-make/rlib-format-packed-bundled-libs/Makefile similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/Makefile rename to tests/run-make/rlib-format-packed-bundled-libs/Makefile diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/main.rs b/tests/run-make/rlib-format-packed-bundled-libs/main.rs similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/main.rs rename to tests/run-make/rlib-format-packed-bundled-libs/main.rs diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/native_dep_1.c b/tests/run-make/rlib-format-packed-bundled-libs/native_dep_1.c similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/native_dep_1.c rename to tests/run-make/rlib-format-packed-bundled-libs/native_dep_1.c diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/native_dep_2.c b/tests/run-make/rlib-format-packed-bundled-libs/native_dep_2.c similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/native_dep_2.c rename to tests/run-make/rlib-format-packed-bundled-libs/native_dep_2.c diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/native_dep_3.c b/tests/run-make/rlib-format-packed-bundled-libs/native_dep_3.c similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/native_dep_3.c rename to tests/run-make/rlib-format-packed-bundled-libs/native_dep_3.c diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/rust_dep_local.rs b/tests/run-make/rlib-format-packed-bundled-libs/rust_dep_local.rs similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/rust_dep_local.rs rename to tests/run-make/rlib-format-packed-bundled-libs/rust_dep_local.rs diff --git a/src/test/run-make/rlib-format-packed-bundled-libs/rust_dep_up.rs b/tests/run-make/rlib-format-packed-bundled-libs/rust_dep_up.rs similarity index 100% rename from src/test/run-make/rlib-format-packed-bundled-libs/rust_dep_up.rs rename to tests/run-make/rlib-format-packed-bundled-libs/rust_dep_up.rs diff --git a/src/test/run-make/rustc-macro-dep-files/Makefile b/tests/run-make/rustc-macro-dep-files/Makefile similarity index 100% rename from src/test/run-make/rustc-macro-dep-files/Makefile rename to tests/run-make/rustc-macro-dep-files/Makefile diff --git a/src/test/run-make/rustc-macro-dep-files/bar.rs b/tests/run-make/rustc-macro-dep-files/bar.rs similarity index 100% rename from src/test/run-make/rustc-macro-dep-files/bar.rs rename to tests/run-make/rustc-macro-dep-files/bar.rs diff --git a/src/test/run-make/rustc-macro-dep-files/foo.rs b/tests/run-make/rustc-macro-dep-files/foo.rs similarity index 100% rename from src/test/run-make/rustc-macro-dep-files/foo.rs rename to tests/run-make/rustc-macro-dep-files/foo.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-invalid-expr/Makefile b/tests/run-make/rustdoc-scrape-examples-invalid-expr/Makefile similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-invalid-expr/Makefile rename to tests/run-make/rustdoc-scrape-examples-invalid-expr/Makefile diff --git a/src/test/run-make/rustdoc-scrape-examples-invalid-expr/examples/ex.rs b/tests/run-make/rustdoc-scrape-examples-invalid-expr/examples/ex.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-invalid-expr/examples/ex.rs rename to tests/run-make/rustdoc-scrape-examples-invalid-expr/examples/ex.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs rename to tests/run-make/rustdoc-scrape-examples-invalid-expr/src/lib.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-multiple/Makefile b/tests/run-make/rustdoc-scrape-examples-multiple/Makefile similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-multiple/Makefile rename to tests/run-make/rustdoc-scrape-examples-multiple/Makefile diff --git a/src/test/run-make/rustdoc-scrape-examples-multiple/examples/ex.rs b/tests/run-make/rustdoc-scrape-examples-multiple/examples/ex.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-multiple/examples/ex.rs rename to tests/run-make/rustdoc-scrape-examples-multiple/examples/ex.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-multiple/examples/ex2.rs b/tests/run-make/rustdoc-scrape-examples-multiple/examples/ex2.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-multiple/examples/ex2.rs rename to tests/run-make/rustdoc-scrape-examples-multiple/examples/ex2.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-multiple/scrape.mk b/tests/run-make/rustdoc-scrape-examples-multiple/scrape.mk similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-multiple/scrape.mk rename to tests/run-make/rustdoc-scrape-examples-multiple/scrape.mk diff --git a/src/test/run-make/rustdoc-scrape-examples-multiple/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-multiple/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-multiple/src/lib.rs rename to tests/run-make/rustdoc-scrape-examples-multiple/src/lib.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-ordering/Makefile b/tests/run-make/rustdoc-scrape-examples-ordering/Makefile similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-ordering/Makefile rename to tests/run-make/rustdoc-scrape-examples-ordering/Makefile diff --git a/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs b/tests/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs rename to tests/run-make/rustdoc-scrape-examples-ordering/examples/ex1.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs b/tests/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs rename to tests/run-make/rustdoc-scrape-examples-ordering/examples/ex2.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-ordering/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-ordering/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-ordering/src/lib.rs rename to tests/run-make/rustdoc-scrape-examples-ordering/src/lib.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-remap/Makefile b/tests/run-make/rustdoc-scrape-examples-remap/Makefile similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-remap/Makefile rename to tests/run-make/rustdoc-scrape-examples-remap/Makefile diff --git a/src/test/run-make/rustdoc-scrape-examples-remap/examples/ex.rs b/tests/run-make/rustdoc-scrape-examples-remap/examples/ex.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-remap/examples/ex.rs rename to tests/run-make/rustdoc-scrape-examples-remap/examples/ex.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-remap/src/a.rs b/tests/run-make/rustdoc-scrape-examples-remap/src/a.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-remap/src/a.rs rename to tests/run-make/rustdoc-scrape-examples-remap/src/a.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-remap/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-remap/src/lib.rs rename to tests/run-make/rustdoc-scrape-examples-remap/src/lib.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-test/Makefile b/tests/run-make/rustdoc-scrape-examples-test/Makefile similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-test/Makefile rename to tests/run-make/rustdoc-scrape-examples-test/Makefile diff --git a/src/test/run-make/rustdoc-scrape-examples-test/examples/ex.rs b/tests/run-make/rustdoc-scrape-examples-test/examples/ex.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-test/examples/ex.rs rename to tests/run-make/rustdoc-scrape-examples-test/examples/ex.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-test/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-test/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-test/src/lib.rs rename to tests/run-make/rustdoc-scrape-examples-test/src/lib.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-whitespace/Makefile b/tests/run-make/rustdoc-scrape-examples-whitespace/Makefile similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-whitespace/Makefile rename to tests/run-make/rustdoc-scrape-examples-whitespace/Makefile diff --git a/src/test/run-make/rustdoc-scrape-examples-whitespace/examples/ex.rs b/tests/run-make/rustdoc-scrape-examples-whitespace/examples/ex.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-whitespace/examples/ex.rs rename to tests/run-make/rustdoc-scrape-examples-whitespace/examples/ex.rs diff --git a/src/test/run-make/rustdoc-scrape-examples-whitespace/src/lib.rs b/tests/run-make/rustdoc-scrape-examples-whitespace/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-scrape-examples-whitespace/src/lib.rs rename to tests/run-make/rustdoc-scrape-examples-whitespace/src/lib.rs diff --git a/src/test/run-make/rustdoc-verify-output-files/Makefile b/tests/run-make/rustdoc-verify-output-files/Makefile similarity index 100% rename from src/test/run-make/rustdoc-verify-output-files/Makefile rename to tests/run-make/rustdoc-verify-output-files/Makefile diff --git a/src/test/run-make/rustdoc-verify-output-files/src/lib.rs b/tests/run-make/rustdoc-verify-output-files/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-verify-output-files/src/lib.rs rename to tests/run-make/rustdoc-verify-output-files/src/lib.rs diff --git a/src/test/run-make/rustdoc-with-out-dir-option/Makefile b/tests/run-make/rustdoc-with-out-dir-option/Makefile similarity index 100% rename from src/test/run-make/rustdoc-with-out-dir-option/Makefile rename to tests/run-make/rustdoc-with-out-dir-option/Makefile diff --git a/src/test/run-make/rustdoc-with-out-dir-option/src/lib.rs b/tests/run-make/rustdoc-with-out-dir-option/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-with-out-dir-option/src/lib.rs rename to tests/run-make/rustdoc-with-out-dir-option/src/lib.rs diff --git a/src/test/run-make/rustdoc-with-output-option/Makefile b/tests/run-make/rustdoc-with-output-option/Makefile similarity index 100% rename from src/test/run-make/rustdoc-with-output-option/Makefile rename to tests/run-make/rustdoc-with-output-option/Makefile diff --git a/src/test/run-make/rustdoc-with-output-option/src/lib.rs b/tests/run-make/rustdoc-with-output-option/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-with-output-option/src/lib.rs rename to tests/run-make/rustdoc-with-output-option/src/lib.rs diff --git a/src/test/run-make/rustdoc-with-short-out-dir-option/Makefile b/tests/run-make/rustdoc-with-short-out-dir-option/Makefile similarity index 100% rename from src/test/run-make/rustdoc-with-short-out-dir-option/Makefile rename to tests/run-make/rustdoc-with-short-out-dir-option/Makefile diff --git a/src/test/run-make/rustdoc-with-short-out-dir-option/src/lib.rs b/tests/run-make/rustdoc-with-short-out-dir-option/src/lib.rs similarity index 100% rename from src/test/run-make/rustdoc-with-short-out-dir-option/src/lib.rs rename to tests/run-make/rustdoc-with-short-out-dir-option/src/lib.rs diff --git a/src/test/run-make/static-pie/Makefile b/tests/run-make/static-pie/Makefile similarity index 84% rename from src/test/run-make/static-pie/Makefile rename to tests/run-make/static-pie/Makefile index e71770636ee10..f4e6adf1b183c 100644 --- a/src/test/run-make/static-pie/Makefile +++ b/tests/run-make/static-pie/Makefile @@ -5,7 +5,7 @@ include ../../run-make-fulldeps/tools.mk # ignore-gnux32 # How to manually run this -# $ ./x.py test --target x86_64-unknown-linux-[musl,gnu] src/test/run-make/static-pie +# $ ./x.py test --target x86_64-unknown-linux-[musl,gnu] tests/run-make/static-pie all: test-clang test-gcc diff --git a/src/test/run-make/static-pie/check_clang_version.sh b/tests/run-make/static-pie/check_clang_version.sh similarity index 100% rename from src/test/run-make/static-pie/check_clang_version.sh rename to tests/run-make/static-pie/check_clang_version.sh diff --git a/src/test/run-make/static-pie/check_gcc_version.sh b/tests/run-make/static-pie/check_gcc_version.sh similarity index 100% rename from src/test/run-make/static-pie/check_gcc_version.sh rename to tests/run-make/static-pie/check_gcc_version.sh diff --git a/src/test/run-make/static-pie/test-aslr.rs b/tests/run-make/static-pie/test-aslr.rs similarity index 100% rename from src/test/run-make/static-pie/test-aslr.rs rename to tests/run-make/static-pie/test-aslr.rs diff --git a/src/test/run-make/test-benches/Makefile b/tests/run-make/test-benches/Makefile similarity index 100% rename from src/test/run-make/test-benches/Makefile rename to tests/run-make/test-benches/Makefile diff --git a/src/test/run-make/test-benches/smokebench.rs b/tests/run-make/test-benches/smokebench.rs similarity index 100% rename from src/test/run-make/test-benches/smokebench.rs rename to tests/run-make/test-benches/smokebench.rs diff --git a/src/test/run-make/thumb-none-cortex-m/Makefile b/tests/run-make/thumb-none-cortex-m/Makefile similarity index 93% rename from src/test/run-make/thumb-none-cortex-m/Makefile rename to tests/run-make/thumb-none-cortex-m/Makefile index aa046af95da85..3065141c08a39 100644 --- a/src/test/run-make/thumb-none-cortex-m/Makefile +++ b/tests/run-make/thumb-none-cortex-m/Makefile @@ -2,7 +2,7 @@ include ../../run-make-fulldeps/tools.mk # How to run this # $ ./x.py clean -# $ ./x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi src/test/run-make +# $ ./x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi tests/run-make # Supported targets: # - thumbv6m-none-eabi (Bare Cortex-M0, M0+, M1) diff --git a/src/test/run-make/thumb-none-qemu/Makefile b/tests/run-make/thumb-none-qemu/Makefile similarity index 89% rename from src/test/run-make/thumb-none-qemu/Makefile rename to tests/run-make/thumb-none-qemu/Makefile index 328758d41ba66..a1c2ba12cd069 100644 --- a/src/test/run-make/thumb-none-qemu/Makefile +++ b/tests/run-make/thumb-none-qemu/Makefile @@ -4,7 +4,7 @@ include ../../run-make-fulldeps/tools.mk # How to run this # $ ./x.py clean -# $ ./x.py test --target thumbv7m-none-eabi src/test/run-make +# $ ./x.py test --target thumbv7m-none-eabi tests/run-make # For cargo setting export RUSTC := $(RUSTC_ORIGINAL) diff --git a/src/test/run-make/thumb-none-qemu/example/.cargo/config b/tests/run-make/thumb-none-qemu/example/.cargo/config similarity index 100% rename from src/test/run-make/thumb-none-qemu/example/.cargo/config rename to tests/run-make/thumb-none-qemu/example/.cargo/config diff --git a/src/test/run-make/thumb-none-qemu/example/Cargo.lock b/tests/run-make/thumb-none-qemu/example/Cargo.lock similarity index 100% rename from src/test/run-make/thumb-none-qemu/example/Cargo.lock rename to tests/run-make/thumb-none-qemu/example/Cargo.lock diff --git a/src/test/run-make/thumb-none-qemu/example/Cargo.toml b/tests/run-make/thumb-none-qemu/example/Cargo.toml similarity index 100% rename from src/test/run-make/thumb-none-qemu/example/Cargo.toml rename to tests/run-make/thumb-none-qemu/example/Cargo.toml diff --git a/src/test/run-make/thumb-none-qemu/example/memory.x b/tests/run-make/thumb-none-qemu/example/memory.x similarity index 100% rename from src/test/run-make/thumb-none-qemu/example/memory.x rename to tests/run-make/thumb-none-qemu/example/memory.x diff --git a/src/test/run-make/thumb-none-qemu/example/src/main.rs b/tests/run-make/thumb-none-qemu/example/src/main.rs similarity index 100% rename from src/test/run-make/thumb-none-qemu/example/src/main.rs rename to tests/run-make/thumb-none-qemu/example/src/main.rs diff --git a/src/test/run-make/thumb-none-qemu/script.sh b/tests/run-make/thumb-none-qemu/script.sh similarity index 100% rename from src/test/run-make/thumb-none-qemu/script.sh rename to tests/run-make/thumb-none-qemu/script.sh diff --git a/src/test/run-make/track-path-dep-info/Makefile b/tests/run-make/track-path-dep-info/Makefile similarity index 100% rename from src/test/run-make/track-path-dep-info/Makefile rename to tests/run-make/track-path-dep-info/Makefile diff --git a/src/test/run-make/track-path-dep-info/emojis.txt b/tests/run-make/track-path-dep-info/emojis.txt similarity index 100% rename from src/test/run-make/track-path-dep-info/emojis.txt rename to tests/run-make/track-path-dep-info/emojis.txt diff --git a/src/test/run-make/track-path-dep-info/macro_def.rs b/tests/run-make/track-path-dep-info/macro_def.rs similarity index 100% rename from src/test/run-make/track-path-dep-info/macro_def.rs rename to tests/run-make/track-path-dep-info/macro_def.rs diff --git a/src/test/run-make/track-path-dep-info/macro_use.rs b/tests/run-make/track-path-dep-info/macro_use.rs similarity index 100% rename from src/test/run-make/track-path-dep-info/macro_use.rs rename to tests/run-make/track-path-dep-info/macro_use.rs diff --git a/src/test/run-make/track-pgo-dep-info/Makefile b/tests/run-make/track-pgo-dep-info/Makefile similarity index 100% rename from src/test/run-make/track-pgo-dep-info/Makefile rename to tests/run-make/track-pgo-dep-info/Makefile diff --git a/src/test/run-make/track-pgo-dep-info/main.rs b/tests/run-make/track-pgo-dep-info/main.rs similarity index 100% rename from src/test/run-make/track-pgo-dep-info/main.rs rename to tests/run-make/track-pgo-dep-info/main.rs diff --git a/src/test/run-make/translation/Makefile b/tests/run-make/translation/Makefile similarity index 100% rename from src/test/run-make/translation/Makefile rename to tests/run-make/translation/Makefile diff --git a/src/test/run-make/translation/broken.ftl b/tests/run-make/translation/broken.ftl similarity index 100% rename from src/test/run-make/translation/broken.ftl rename to tests/run-make/translation/broken.ftl diff --git a/src/test/run-make/translation/missing.ftl b/tests/run-make/translation/missing.ftl similarity index 100% rename from src/test/run-make/translation/missing.ftl rename to tests/run-make/translation/missing.ftl diff --git a/src/test/run-make/translation/test.rs b/tests/run-make/translation/test.rs similarity index 100% rename from src/test/run-make/translation/test.rs rename to tests/run-make/translation/test.rs diff --git a/src/test/run-make/translation/working.ftl b/tests/run-make/translation/working.ftl similarity index 100% rename from src/test/run-make/translation/working.ftl rename to tests/run-make/translation/working.ftl diff --git a/src/test/run-make/unstable-flag-required/Makefile b/tests/run-make/unstable-flag-required/Makefile similarity index 100% rename from src/test/run-make/unstable-flag-required/Makefile rename to tests/run-make/unstable-flag-required/Makefile diff --git a/src/test/run-make/unstable-flag-required/README.md b/tests/run-make/unstable-flag-required/README.md similarity index 100% rename from src/test/run-make/unstable-flag-required/README.md rename to tests/run-make/unstable-flag-required/README.md diff --git a/src/test/run-make/unstable-flag-required/output-format-json.stderr b/tests/run-make/unstable-flag-required/output-format-json.stderr similarity index 100% rename from src/test/run-make/unstable-flag-required/output-format-json.stderr rename to tests/run-make/unstable-flag-required/output-format-json.stderr diff --git a/src/test/run-make/unstable-flag-required/x.rs b/tests/run-make/unstable-flag-required/x.rs similarity index 100% rename from src/test/run-make/unstable-flag-required/x.rs rename to tests/run-make/unstable-flag-required/x.rs diff --git a/src/test/run-make/valid-print-requests/Makefile b/tests/run-make/valid-print-requests/Makefile similarity index 100% rename from src/test/run-make/valid-print-requests/Makefile rename to tests/run-make/valid-print-requests/Makefile diff --git a/src/test/run-make/valid-print-requests/valid-print-requests.stderr b/tests/run-make/valid-print-requests/valid-print-requests.stderr similarity index 100% rename from src/test/run-make/valid-print-requests/valid-print-requests.stderr rename to tests/run-make/valid-print-requests/valid-print-requests.stderr diff --git a/src/test/run-make/wasm-abi/Makefile b/tests/run-make/wasm-abi/Makefile similarity index 100% rename from src/test/run-make/wasm-abi/Makefile rename to tests/run-make/wasm-abi/Makefile diff --git a/src/test/run-make/wasm-abi/foo.js b/tests/run-make/wasm-abi/foo.js similarity index 100% rename from src/test/run-make/wasm-abi/foo.js rename to tests/run-make/wasm-abi/foo.js diff --git a/src/test/run-make/wasm-abi/foo.rs b/tests/run-make/wasm-abi/foo.rs similarity index 100% rename from src/test/run-make/wasm-abi/foo.rs rename to tests/run-make/wasm-abi/foo.rs diff --git a/src/test/run-make/wasm-custom-section/Makefile b/tests/run-make/wasm-custom-section/Makefile similarity index 100% rename from src/test/run-make/wasm-custom-section/Makefile rename to tests/run-make/wasm-custom-section/Makefile diff --git a/src/test/run-make/wasm-custom-section/bar.rs b/tests/run-make/wasm-custom-section/bar.rs similarity index 100% rename from src/test/run-make/wasm-custom-section/bar.rs rename to tests/run-make/wasm-custom-section/bar.rs diff --git a/src/test/run-make/wasm-custom-section/foo.js b/tests/run-make/wasm-custom-section/foo.js similarity index 100% rename from src/test/run-make/wasm-custom-section/foo.js rename to tests/run-make/wasm-custom-section/foo.js diff --git a/src/test/run-make/wasm-custom-section/foo.rs b/tests/run-make/wasm-custom-section/foo.rs similarity index 100% rename from src/test/run-make/wasm-custom-section/foo.rs rename to tests/run-make/wasm-custom-section/foo.rs diff --git a/src/test/run-make/wasm-custom-sections-opt/Makefile b/tests/run-make/wasm-custom-sections-opt/Makefile similarity index 100% rename from src/test/run-make/wasm-custom-sections-opt/Makefile rename to tests/run-make/wasm-custom-sections-opt/Makefile diff --git a/src/test/run-make/wasm-custom-sections-opt/foo.js b/tests/run-make/wasm-custom-sections-opt/foo.js similarity index 100% rename from src/test/run-make/wasm-custom-sections-opt/foo.js rename to tests/run-make/wasm-custom-sections-opt/foo.js diff --git a/src/test/run-make/wasm-custom-sections-opt/foo.rs b/tests/run-make/wasm-custom-sections-opt/foo.rs similarity index 100% rename from src/test/run-make/wasm-custom-sections-opt/foo.rs rename to tests/run-make/wasm-custom-sections-opt/foo.rs diff --git a/src/test/run-make/wasm-export-all-symbols/Makefile b/tests/run-make/wasm-export-all-symbols/Makefile similarity index 100% rename from src/test/run-make/wasm-export-all-symbols/Makefile rename to tests/run-make/wasm-export-all-symbols/Makefile diff --git a/src/test/run-make/wasm-export-all-symbols/bar.rs b/tests/run-make/wasm-export-all-symbols/bar.rs similarity index 100% rename from src/test/run-make/wasm-export-all-symbols/bar.rs rename to tests/run-make/wasm-export-all-symbols/bar.rs diff --git a/src/test/run-make/wasm-export-all-symbols/foo.rs b/tests/run-make/wasm-export-all-symbols/foo.rs similarity index 100% rename from src/test/run-make/wasm-export-all-symbols/foo.rs rename to tests/run-make/wasm-export-all-symbols/foo.rs diff --git a/src/test/run-make/wasm-export-all-symbols/main.rs b/tests/run-make/wasm-export-all-symbols/main.rs similarity index 100% rename from src/test/run-make/wasm-export-all-symbols/main.rs rename to tests/run-make/wasm-export-all-symbols/main.rs diff --git a/src/test/run-make/wasm-export-all-symbols/verify.js b/tests/run-make/wasm-export-all-symbols/verify.js similarity index 100% rename from src/test/run-make/wasm-export-all-symbols/verify.js rename to tests/run-make/wasm-export-all-symbols/verify.js diff --git a/src/test/run-make/wasm-import-module/Makefile b/tests/run-make/wasm-import-module/Makefile similarity index 100% rename from src/test/run-make/wasm-import-module/Makefile rename to tests/run-make/wasm-import-module/Makefile diff --git a/src/test/run-make/wasm-import-module/bar.rs b/tests/run-make/wasm-import-module/bar.rs similarity index 100% rename from src/test/run-make/wasm-import-module/bar.rs rename to tests/run-make/wasm-import-module/bar.rs diff --git a/src/test/run-make/wasm-import-module/foo.js b/tests/run-make/wasm-import-module/foo.js similarity index 100% rename from src/test/run-make/wasm-import-module/foo.js rename to tests/run-make/wasm-import-module/foo.js diff --git a/src/test/run-make/wasm-import-module/foo.rs b/tests/run-make/wasm-import-module/foo.rs similarity index 100% rename from src/test/run-make/wasm-import-module/foo.rs rename to tests/run-make/wasm-import-module/foo.rs diff --git a/src/test/run-make/wasm-panic-small/Makefile b/tests/run-make/wasm-panic-small/Makefile similarity index 100% rename from src/test/run-make/wasm-panic-small/Makefile rename to tests/run-make/wasm-panic-small/Makefile diff --git a/src/test/run-make/wasm-panic-small/foo.rs b/tests/run-make/wasm-panic-small/foo.rs similarity index 100% rename from src/test/run-make/wasm-panic-small/foo.rs rename to tests/run-make/wasm-panic-small/foo.rs diff --git a/src/test/run-make/wasm-spurious-import/Makefile b/tests/run-make/wasm-spurious-import/Makefile similarity index 100% rename from src/test/run-make/wasm-spurious-import/Makefile rename to tests/run-make/wasm-spurious-import/Makefile diff --git a/src/test/run-make/wasm-spurious-import/main.rs b/tests/run-make/wasm-spurious-import/main.rs similarity index 100% rename from src/test/run-make/wasm-spurious-import/main.rs rename to tests/run-make/wasm-spurious-import/main.rs diff --git a/src/test/run-make/wasm-spurious-import/verify.js b/tests/run-make/wasm-spurious-import/verify.js similarity index 100% rename from src/test/run-make/wasm-spurious-import/verify.js rename to tests/run-make/wasm-spurious-import/verify.js diff --git a/src/test/run-make/wasm-stringify-ints-small/Makefile b/tests/run-make/wasm-stringify-ints-small/Makefile similarity index 100% rename from src/test/run-make/wasm-stringify-ints-small/Makefile rename to tests/run-make/wasm-stringify-ints-small/Makefile diff --git a/src/test/run-make/wasm-stringify-ints-small/foo.rs b/tests/run-make/wasm-stringify-ints-small/foo.rs similarity index 100% rename from src/test/run-make/wasm-stringify-ints-small/foo.rs rename to tests/run-make/wasm-stringify-ints-small/foo.rs diff --git a/src/test/run-make/wasm-symbols-different-module/Makefile b/tests/run-make/wasm-symbols-different-module/Makefile similarity index 100% rename from src/test/run-make/wasm-symbols-different-module/Makefile rename to tests/run-make/wasm-symbols-different-module/Makefile diff --git a/src/test/run-make/wasm-symbols-different-module/bar.rs b/tests/run-make/wasm-symbols-different-module/bar.rs similarity index 100% rename from src/test/run-make/wasm-symbols-different-module/bar.rs rename to tests/run-make/wasm-symbols-different-module/bar.rs diff --git a/src/test/run-make/wasm-symbols-different-module/baz.rs b/tests/run-make/wasm-symbols-different-module/baz.rs similarity index 100% rename from src/test/run-make/wasm-symbols-different-module/baz.rs rename to tests/run-make/wasm-symbols-different-module/baz.rs diff --git a/src/test/run-make/wasm-symbols-different-module/foo.rs b/tests/run-make/wasm-symbols-different-module/foo.rs similarity index 100% rename from src/test/run-make/wasm-symbols-different-module/foo.rs rename to tests/run-make/wasm-symbols-different-module/foo.rs diff --git a/src/test/run-make/wasm-symbols-different-module/log.rs b/tests/run-make/wasm-symbols-different-module/log.rs similarity index 100% rename from src/test/run-make/wasm-symbols-different-module/log.rs rename to tests/run-make/wasm-symbols-different-module/log.rs diff --git a/src/test/run-make/wasm-symbols-different-module/verify-imports.js b/tests/run-make/wasm-symbols-different-module/verify-imports.js similarity index 100% rename from src/test/run-make/wasm-symbols-different-module/verify-imports.js rename to tests/run-make/wasm-symbols-different-module/verify-imports.js diff --git a/src/test/run-make/wasm-symbols-not-exported/Makefile b/tests/run-make/wasm-symbols-not-exported/Makefile similarity index 100% rename from src/test/run-make/wasm-symbols-not-exported/Makefile rename to tests/run-make/wasm-symbols-not-exported/Makefile diff --git a/src/test/run-make/wasm-symbols-not-exported/bar.rs b/tests/run-make/wasm-symbols-not-exported/bar.rs similarity index 100% rename from src/test/run-make/wasm-symbols-not-exported/bar.rs rename to tests/run-make/wasm-symbols-not-exported/bar.rs diff --git a/src/test/run-make/wasm-symbols-not-exported/foo.rs b/tests/run-make/wasm-symbols-not-exported/foo.rs similarity index 100% rename from src/test/run-make/wasm-symbols-not-exported/foo.rs rename to tests/run-make/wasm-symbols-not-exported/foo.rs diff --git a/src/test/run-make/wasm-symbols-not-exported/verify-exported-symbols.js b/tests/run-make/wasm-symbols-not-exported/verify-exported-symbols.js similarity index 100% rename from src/test/run-make/wasm-symbols-not-exported/verify-exported-symbols.js rename to tests/run-make/wasm-symbols-not-exported/verify-exported-symbols.js diff --git a/src/test/run-make/wasm-symbols-not-imported/Makefile b/tests/run-make/wasm-symbols-not-imported/Makefile similarity index 100% rename from src/test/run-make/wasm-symbols-not-imported/Makefile rename to tests/run-make/wasm-symbols-not-imported/Makefile diff --git a/src/test/run-make/wasm-symbols-not-imported/foo.rs b/tests/run-make/wasm-symbols-not-imported/foo.rs similarity index 100% rename from src/test/run-make/wasm-symbols-not-imported/foo.rs rename to tests/run-make/wasm-symbols-not-imported/foo.rs diff --git a/src/test/run-make/wasm-symbols-not-imported/verify-no-imports.js b/tests/run-make/wasm-symbols-not-imported/verify-no-imports.js similarity index 100% rename from src/test/run-make/wasm-symbols-not-imported/verify-no-imports.js rename to tests/run-make/wasm-symbols-not-imported/verify-no-imports.js diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/Makefile diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_c_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cc_plus_one_cxx_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_global_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_global_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_global_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_c_global_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_global_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_global_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_global_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/cmake_plus_one_cxx_global_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/Cargo.toml b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/Cargo.toml similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/Cargo.toml rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/Cargo.toml diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/build.rs b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/build.rs similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/build.rs rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/build.rs diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo.c b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo.c similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo.c rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo.c diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_asm.s b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_asm.s similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_asm.s rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_asm.s diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_cxx.cpp b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_cxx.cpp similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_cxx.cpp rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/foo_cxx.cpp diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/CMakeLists.txt b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/CMakeLists.txt similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/CMakeLists.txt rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/CMakeLists.txt diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo.c b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo.c similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo.c rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo.c diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_asm.s b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_asm.s similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_asm.s rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_asm.s diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_cxx.cpp b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_cxx.cpp similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_cxx.cpp rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/libcmake_foo/src/foo_cxx.cpp diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/src/main.rs b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/src/main.rs similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/src/main.rs rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/enclave/src/main.rs diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/jumpto.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/jumpto.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/jumpto.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/jumpto.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/print.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/print.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/print.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/print.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/rust_plus_one_global_asm.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/rust_plus_one_global_asm.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/rust_plus_one_global_asm.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/rust_plus_one_global_asm.checks diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/script.sh diff --git a/src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/unw_getcontext.checks b/tests/run-make/x86_64-fortanix-unknown-sgx-lvi/unw_getcontext.checks similarity index 100% rename from src/test/run-make/x86_64-fortanix-unknown-sgx-lvi/unw_getcontext.checks rename to tests/run-make/x86_64-fortanix-unknown-sgx-lvi/unw_getcontext.checks diff --git a/src/test/run-pass-valgrind/cast-enum-with-dtor.rs b/tests/run-pass-valgrind/cast-enum-with-dtor.rs similarity index 100% rename from src/test/run-pass-valgrind/cast-enum-with-dtor.rs rename to tests/run-pass-valgrind/cast-enum-with-dtor.rs diff --git a/src/test/run-pass-valgrind/cleanup-auto-borrow-obj.rs b/tests/run-pass-valgrind/cleanup-auto-borrow-obj.rs similarity index 100% rename from src/test/run-pass-valgrind/cleanup-auto-borrow-obj.rs rename to tests/run-pass-valgrind/cleanup-auto-borrow-obj.rs diff --git a/src/test/run-pass-valgrind/cleanup-stdin.rs b/tests/run-pass-valgrind/cleanup-stdin.rs similarity index 100% rename from src/test/run-pass-valgrind/cleanup-stdin.rs rename to tests/run-pass-valgrind/cleanup-stdin.rs diff --git a/src/test/run-pass-valgrind/coerce-match-calls.rs b/tests/run-pass-valgrind/coerce-match-calls.rs similarity index 100% rename from src/test/run-pass-valgrind/coerce-match-calls.rs rename to tests/run-pass-valgrind/coerce-match-calls.rs diff --git a/src/test/run-pass-valgrind/coerce-match.rs b/tests/run-pass-valgrind/coerce-match.rs similarity index 100% rename from src/test/run-pass-valgrind/coerce-match.rs rename to tests/run-pass-valgrind/coerce-match.rs diff --git a/src/test/run-pass-valgrind/down-with-thread-dtors.rs b/tests/run-pass-valgrind/down-with-thread-dtors.rs similarity index 100% rename from src/test/run-pass-valgrind/down-with-thread-dtors.rs rename to tests/run-pass-valgrind/down-with-thread-dtors.rs diff --git a/src/test/run-pass-valgrind/dst-dtor-1.rs b/tests/run-pass-valgrind/dst-dtor-1.rs similarity index 100% rename from src/test/run-pass-valgrind/dst-dtor-1.rs rename to tests/run-pass-valgrind/dst-dtor-1.rs diff --git a/src/test/run-pass-valgrind/dst-dtor-2.rs b/tests/run-pass-valgrind/dst-dtor-2.rs similarity index 100% rename from src/test/run-pass-valgrind/dst-dtor-2.rs rename to tests/run-pass-valgrind/dst-dtor-2.rs diff --git a/src/test/run-pass-valgrind/dst-dtor-3.rs b/tests/run-pass-valgrind/dst-dtor-3.rs similarity index 100% rename from src/test/run-pass-valgrind/dst-dtor-3.rs rename to tests/run-pass-valgrind/dst-dtor-3.rs diff --git a/src/test/run-pass-valgrind/dst-dtor-4.rs b/tests/run-pass-valgrind/dst-dtor-4.rs similarity index 100% rename from src/test/run-pass-valgrind/dst-dtor-4.rs rename to tests/run-pass-valgrind/dst-dtor-4.rs diff --git a/src/test/run-pass-valgrind/exit-flushes.rs b/tests/run-pass-valgrind/exit-flushes.rs similarity index 100% rename from src/test/run-pass-valgrind/exit-flushes.rs rename to tests/run-pass-valgrind/exit-flushes.rs diff --git a/src/test/run-pass-valgrind/issue-44800.rs b/tests/run-pass-valgrind/issue-44800.rs similarity index 100% rename from src/test/run-pass-valgrind/issue-44800.rs rename to tests/run-pass-valgrind/issue-44800.rs diff --git a/src/test/run-pass-valgrind/osx-frameworks.rs b/tests/run-pass-valgrind/osx-frameworks.rs similarity index 100% rename from src/test/run-pass-valgrind/osx-frameworks.rs rename to tests/run-pass-valgrind/osx-frameworks.rs diff --git a/src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call.rs b/tests/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call.rs similarity index 100% rename from src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call.rs rename to tests/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call.rs diff --git a/src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call2.rs b/tests/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call2.rs similarity index 100% rename from src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call2.rs rename to tests/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call2.rs diff --git a/src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects.rs b/tests/run-pass-valgrind/unsized-locals/by-value-trait-objects.rs similarity index 100% rename from src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects.rs rename to tests/run-pass-valgrind/unsized-locals/by-value-trait-objects.rs diff --git a/src/test/run-pass-valgrind/unsized-locals/long-live-the-unsized-temporary.rs b/tests/run-pass-valgrind/unsized-locals/long-live-the-unsized-temporary.rs similarity index 100% rename from src/test/run-pass-valgrind/unsized-locals/long-live-the-unsized-temporary.rs rename to tests/run-pass-valgrind/unsized-locals/long-live-the-unsized-temporary.rs diff --git a/src/test/rustdoc-gui/README.md b/tests/rustdoc-gui/README.md similarity index 81% rename from src/test/rustdoc-gui/README.md rename to tests/rustdoc-gui/README.md index d9854e2e71548..1126a72ab67ea 100644 --- a/src/test/rustdoc-gui/README.md +++ b/tests/rustdoc-gui/README.md @@ -11,14 +11,14 @@ You can find more information and its documentation in its [repository][browser- If you need to have more information on the tests run, you can use `--test-args`: ```bash -$ ./x.py test src/test/rustdoc-gui --stage 1 --test-args --debug +$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --debug ``` If you don't want to run in headless mode (helpful to debug sometimes), you can use `--no-headless`: ```bash -$ ./x.py test src/test/rustdoc-gui --stage 1 --test-args --no-headless +$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-headless ``` To see the supported options, use `--help`. @@ -27,7 +27,7 @@ Important to be noted: if the chromium instance crashes when you run it, you mig use `--no-sandbox` to make it work: ```bash -$ ./x.py test src/test/rustdoc-gui --stage 1 --test-args --no-sandbox +$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-sandbox ``` [browser-ui-test]: https://github.com/GuillaumeGomez/browser-UI-test/ diff --git a/src/test/rustdoc-gui/anchor-navigable.goml b/tests/rustdoc-gui/anchor-navigable.goml similarity index 100% rename from src/test/rustdoc-gui/anchor-navigable.goml rename to tests/rustdoc-gui/anchor-navigable.goml diff --git a/src/test/rustdoc-gui/anchors.goml b/tests/rustdoc-gui/anchors.goml similarity index 100% rename from src/test/rustdoc-gui/anchors.goml rename to tests/rustdoc-gui/anchors.goml diff --git a/src/test/rustdoc-gui/auto-hide-trait-implementations.goml b/tests/rustdoc-gui/auto-hide-trait-implementations.goml similarity index 100% rename from src/test/rustdoc-gui/auto-hide-trait-implementations.goml rename to tests/rustdoc-gui/auto-hide-trait-implementations.goml diff --git a/src/test/rustdoc-gui/basic-code.goml b/tests/rustdoc-gui/basic-code.goml similarity index 100% rename from src/test/rustdoc-gui/basic-code.goml rename to tests/rustdoc-gui/basic-code.goml diff --git a/src/test/rustdoc-gui/check-code-blocks-margin.goml b/tests/rustdoc-gui/check-code-blocks-margin.goml similarity index 100% rename from src/test/rustdoc-gui/check-code-blocks-margin.goml rename to tests/rustdoc-gui/check-code-blocks-margin.goml diff --git a/src/test/rustdoc-gui/check-stab-in-docblock.goml b/tests/rustdoc-gui/check-stab-in-docblock.goml similarity index 100% rename from src/test/rustdoc-gui/check-stab-in-docblock.goml rename to tests/rustdoc-gui/check-stab-in-docblock.goml diff --git a/src/test/rustdoc-gui/check_info_sign_position.goml b/tests/rustdoc-gui/check_info_sign_position.goml similarity index 100% rename from src/test/rustdoc-gui/check_info_sign_position.goml rename to tests/rustdoc-gui/check_info_sign_position.goml diff --git a/src/test/rustdoc-gui/code-blocks-overflow.goml b/tests/rustdoc-gui/code-blocks-overflow.goml similarity index 100% rename from src/test/rustdoc-gui/code-blocks-overflow.goml rename to tests/rustdoc-gui/code-blocks-overflow.goml diff --git a/src/test/rustdoc-gui/code-color.goml b/tests/rustdoc-gui/code-color.goml similarity index 100% rename from src/test/rustdoc-gui/code-color.goml rename to tests/rustdoc-gui/code-color.goml diff --git a/src/test/rustdoc-gui/code-sidebar-toggle.goml b/tests/rustdoc-gui/code-sidebar-toggle.goml similarity index 100% rename from src/test/rustdoc-gui/code-sidebar-toggle.goml rename to tests/rustdoc-gui/code-sidebar-toggle.goml diff --git a/src/test/rustdoc-gui/code-tags.goml b/tests/rustdoc-gui/code-tags.goml similarity index 100% rename from src/test/rustdoc-gui/code-tags.goml rename to tests/rustdoc-gui/code-tags.goml diff --git a/src/test/rustdoc-gui/codeblock-sub.goml b/tests/rustdoc-gui/codeblock-sub.goml similarity index 100% rename from src/test/rustdoc-gui/codeblock-sub.goml rename to tests/rustdoc-gui/codeblock-sub.goml diff --git a/src/test/rustdoc-gui/codeblock-tooltip.goml b/tests/rustdoc-gui/codeblock-tooltip.goml similarity index 100% rename from src/test/rustdoc-gui/codeblock-tooltip.goml rename to tests/rustdoc-gui/codeblock-tooltip.goml diff --git a/src/test/rustdoc-gui/cursor.goml b/tests/rustdoc-gui/cursor.goml similarity index 100% rename from src/test/rustdoc-gui/cursor.goml rename to tests/rustdoc-gui/cursor.goml diff --git a/src/test/rustdoc-gui/default-settings.goml b/tests/rustdoc-gui/default-settings.goml similarity index 100% rename from src/test/rustdoc-gui/default-settings.goml rename to tests/rustdoc-gui/default-settings.goml diff --git a/src/test/rustdoc-gui/docblock-big-code-mobile.goml b/tests/rustdoc-gui/docblock-big-code-mobile.goml similarity index 100% rename from src/test/rustdoc-gui/docblock-big-code-mobile.goml rename to tests/rustdoc-gui/docblock-big-code-mobile.goml diff --git a/src/test/rustdoc-gui/docblock-code-block-line-number.goml b/tests/rustdoc-gui/docblock-code-block-line-number.goml similarity index 100% rename from src/test/rustdoc-gui/docblock-code-block-line-number.goml rename to tests/rustdoc-gui/docblock-code-block-line-number.goml diff --git a/src/test/rustdoc-gui/docblock-details.goml b/tests/rustdoc-gui/docblock-details.goml similarity index 100% rename from src/test/rustdoc-gui/docblock-details.goml rename to tests/rustdoc-gui/docblock-details.goml diff --git a/src/test/rustdoc-gui/docblock-table-overflow.goml b/tests/rustdoc-gui/docblock-table-overflow.goml similarity index 100% rename from src/test/rustdoc-gui/docblock-table-overflow.goml rename to tests/rustdoc-gui/docblock-table-overflow.goml diff --git a/src/test/rustdoc-gui/docblock-table.goml b/tests/rustdoc-gui/docblock-table.goml similarity index 100% rename from src/test/rustdoc-gui/docblock-table.goml rename to tests/rustdoc-gui/docblock-table.goml diff --git a/src/test/rustdoc-gui/duplicate-macro-reexport.goml b/tests/rustdoc-gui/duplicate-macro-reexport.goml similarity index 100% rename from src/test/rustdoc-gui/duplicate-macro-reexport.goml rename to tests/rustdoc-gui/duplicate-macro-reexport.goml diff --git a/src/test/rustdoc-gui/enum-variants.goml b/tests/rustdoc-gui/enum-variants.goml similarity index 100% rename from src/test/rustdoc-gui/enum-variants.goml rename to tests/rustdoc-gui/enum-variants.goml diff --git a/src/test/rustdoc-gui/escape-key.goml b/tests/rustdoc-gui/escape-key.goml similarity index 100% rename from src/test/rustdoc-gui/escape-key.goml rename to tests/rustdoc-gui/escape-key.goml diff --git a/src/test/rustdoc-gui/font-weight.goml b/tests/rustdoc-gui/font-weight.goml similarity index 100% rename from src/test/rustdoc-gui/font-weight.goml rename to tests/rustdoc-gui/font-weight.goml diff --git a/src/test/rustdoc-gui/hash-item-expansion.goml b/tests/rustdoc-gui/hash-item-expansion.goml similarity index 100% rename from src/test/rustdoc-gui/hash-item-expansion.goml rename to tests/rustdoc-gui/hash-item-expansion.goml diff --git a/src/test/rustdoc-gui/headers-color.goml b/tests/rustdoc-gui/headers-color.goml similarity index 100% rename from src/test/rustdoc-gui/headers-color.goml rename to tests/rustdoc-gui/headers-color.goml diff --git a/src/test/rustdoc-gui/headings.goml b/tests/rustdoc-gui/headings.goml similarity index 100% rename from src/test/rustdoc-gui/headings.goml rename to tests/rustdoc-gui/headings.goml diff --git a/src/test/rustdoc-gui/help-page.goml b/tests/rustdoc-gui/help-page.goml similarity index 100% rename from src/test/rustdoc-gui/help-page.goml rename to tests/rustdoc-gui/help-page.goml diff --git a/src/test/rustdoc-gui/highlight-colors.goml b/tests/rustdoc-gui/highlight-colors.goml similarity index 100% rename from src/test/rustdoc-gui/highlight-colors.goml rename to tests/rustdoc-gui/highlight-colors.goml diff --git a/src/test/rustdoc-gui/huge-collection-of-constants.goml b/tests/rustdoc-gui/huge-collection-of-constants.goml similarity index 100% rename from src/test/rustdoc-gui/huge-collection-of-constants.goml rename to tests/rustdoc-gui/huge-collection-of-constants.goml diff --git a/src/test/rustdoc-gui/huge-logo.goml b/tests/rustdoc-gui/huge-logo.goml similarity index 100% rename from src/test/rustdoc-gui/huge-logo.goml rename to tests/rustdoc-gui/huge-logo.goml diff --git a/src/test/rustdoc-gui/impl-default-expansion.goml b/tests/rustdoc-gui/impl-default-expansion.goml similarity index 100% rename from src/test/rustdoc-gui/impl-default-expansion.goml rename to tests/rustdoc-gui/impl-default-expansion.goml diff --git a/src/test/rustdoc-gui/impl-doc.goml b/tests/rustdoc-gui/impl-doc.goml similarity index 100% rename from src/test/rustdoc-gui/impl-doc.goml rename to tests/rustdoc-gui/impl-doc.goml diff --git a/src/test/rustdoc-gui/implementors.goml b/tests/rustdoc-gui/implementors.goml similarity index 100% rename from src/test/rustdoc-gui/implementors.goml rename to tests/rustdoc-gui/implementors.goml diff --git a/src/test/rustdoc-gui/item-decl-colors.goml b/tests/rustdoc-gui/item-decl-colors.goml similarity index 100% rename from src/test/rustdoc-gui/item-decl-colors.goml rename to tests/rustdoc-gui/item-decl-colors.goml diff --git a/src/test/rustdoc-gui/item-info-alignment.goml b/tests/rustdoc-gui/item-info-alignment.goml similarity index 100% rename from src/test/rustdoc-gui/item-info-alignment.goml rename to tests/rustdoc-gui/item-info-alignment.goml diff --git a/src/test/rustdoc-gui/item-info-overflow.goml b/tests/rustdoc-gui/item-info-overflow.goml similarity index 100% rename from src/test/rustdoc-gui/item-info-overflow.goml rename to tests/rustdoc-gui/item-info-overflow.goml diff --git a/src/test/rustdoc-gui/item-info.goml b/tests/rustdoc-gui/item-info.goml similarity index 100% rename from src/test/rustdoc-gui/item-info.goml rename to tests/rustdoc-gui/item-info.goml diff --git a/src/test/rustdoc-gui/item-summary-table.goml b/tests/rustdoc-gui/item-summary-table.goml similarity index 100% rename from src/test/rustdoc-gui/item-summary-table.goml rename to tests/rustdoc-gui/item-summary-table.goml diff --git a/src/test/rustdoc-gui/javascript-disabled.goml b/tests/rustdoc-gui/javascript-disabled.goml similarity index 100% rename from src/test/rustdoc-gui/javascript-disabled.goml rename to tests/rustdoc-gui/javascript-disabled.goml diff --git a/src/test/rustdoc-gui/jump-to-def-background.goml b/tests/rustdoc-gui/jump-to-def-background.goml similarity index 100% rename from src/test/rustdoc-gui/jump-to-def-background.goml rename to tests/rustdoc-gui/jump-to-def-background.goml diff --git a/src/test/rustdoc-gui/label-next-to-symbol.goml b/tests/rustdoc-gui/label-next-to-symbol.goml similarity index 100% rename from src/test/rustdoc-gui/label-next-to-symbol.goml rename to tests/rustdoc-gui/label-next-to-symbol.goml diff --git a/src/test/rustdoc-gui/links-color.goml b/tests/rustdoc-gui/links-color.goml similarity index 100% rename from src/test/rustdoc-gui/links-color.goml rename to tests/rustdoc-gui/links-color.goml diff --git a/src/test/rustdoc-gui/list_code_block.goml b/tests/rustdoc-gui/list_code_block.goml similarity index 100% rename from src/test/rustdoc-gui/list_code_block.goml rename to tests/rustdoc-gui/list_code_block.goml diff --git a/src/test/rustdoc-gui/method-margins.goml b/tests/rustdoc-gui/method-margins.goml similarity index 100% rename from src/test/rustdoc-gui/method-margins.goml rename to tests/rustdoc-gui/method-margins.goml diff --git a/src/test/rustdoc-gui/mobile.goml b/tests/rustdoc-gui/mobile.goml similarity index 100% rename from src/test/rustdoc-gui/mobile.goml rename to tests/rustdoc-gui/mobile.goml diff --git a/src/test/rustdoc-gui/module-items-font.goml b/tests/rustdoc-gui/module-items-font.goml similarity index 100% rename from src/test/rustdoc-gui/module-items-font.goml rename to tests/rustdoc-gui/module-items-font.goml diff --git a/src/test/rustdoc-gui/no-docblock.goml b/tests/rustdoc-gui/no-docblock.goml similarity index 100% rename from src/test/rustdoc-gui/no-docblock.goml rename to tests/rustdoc-gui/no-docblock.goml diff --git a/src/test/rustdoc-gui/notable-trait.goml b/tests/rustdoc-gui/notable-trait.goml similarity index 100% rename from src/test/rustdoc-gui/notable-trait.goml rename to tests/rustdoc-gui/notable-trait.goml diff --git a/src/test/rustdoc-gui/overflow-tooltip-information.goml b/tests/rustdoc-gui/overflow-tooltip-information.goml similarity index 100% rename from src/test/rustdoc-gui/overflow-tooltip-information.goml rename to tests/rustdoc-gui/overflow-tooltip-information.goml diff --git a/src/test/rustdoc-gui/pocket-menu.goml b/tests/rustdoc-gui/pocket-menu.goml similarity index 100% rename from src/test/rustdoc-gui/pocket-menu.goml rename to tests/rustdoc-gui/pocket-menu.goml diff --git a/src/test/rustdoc-gui/run-on-hover.goml b/tests/rustdoc-gui/run-on-hover.goml similarity index 100% rename from src/test/rustdoc-gui/run-on-hover.goml rename to tests/rustdoc-gui/run-on-hover.goml diff --git a/src/test/rustdoc-gui/rust-logo.goml b/tests/rustdoc-gui/rust-logo.goml similarity index 100% rename from src/test/rustdoc-gui/rust-logo.goml rename to tests/rustdoc-gui/rust-logo.goml diff --git a/src/test/rustdoc-gui/scrape-examples-button-focus.goml b/tests/rustdoc-gui/scrape-examples-button-focus.goml similarity index 100% rename from src/test/rustdoc-gui/scrape-examples-button-focus.goml rename to tests/rustdoc-gui/scrape-examples-button-focus.goml diff --git a/src/test/rustdoc-gui/scrape-examples-color.goml b/tests/rustdoc-gui/scrape-examples-color.goml similarity index 100% rename from src/test/rustdoc-gui/scrape-examples-color.goml rename to tests/rustdoc-gui/scrape-examples-color.goml diff --git a/src/test/rustdoc-gui/scrape-examples-fonts.goml b/tests/rustdoc-gui/scrape-examples-fonts.goml similarity index 100% rename from src/test/rustdoc-gui/scrape-examples-fonts.goml rename to tests/rustdoc-gui/scrape-examples-fonts.goml diff --git a/src/test/rustdoc-gui/scrape-examples-layout.goml b/tests/rustdoc-gui/scrape-examples-layout.goml similarity index 100% rename from src/test/rustdoc-gui/scrape-examples-layout.goml rename to tests/rustdoc-gui/scrape-examples-layout.goml diff --git a/src/test/rustdoc-gui/scrape-examples-toggle.goml b/tests/rustdoc-gui/scrape-examples-toggle.goml similarity index 100% rename from src/test/rustdoc-gui/scrape-examples-toggle.goml rename to tests/rustdoc-gui/scrape-examples-toggle.goml diff --git a/src/test/rustdoc-gui/search-filter.goml b/tests/rustdoc-gui/search-filter.goml similarity index 100% rename from src/test/rustdoc-gui/search-filter.goml rename to tests/rustdoc-gui/search-filter.goml diff --git a/src/test/rustdoc-gui/search-form-elements.goml b/tests/rustdoc-gui/search-form-elements.goml similarity index 100% rename from src/test/rustdoc-gui/search-form-elements.goml rename to tests/rustdoc-gui/search-form-elements.goml diff --git a/src/test/rustdoc-gui/search-input-mobile.goml b/tests/rustdoc-gui/search-input-mobile.goml similarity index 100% rename from src/test/rustdoc-gui/search-input-mobile.goml rename to tests/rustdoc-gui/search-input-mobile.goml diff --git a/src/test/rustdoc-gui/search-keyboard.goml b/tests/rustdoc-gui/search-keyboard.goml similarity index 100% rename from src/test/rustdoc-gui/search-keyboard.goml rename to tests/rustdoc-gui/search-keyboard.goml diff --git a/src/test/rustdoc-gui/search-no-result.goml b/tests/rustdoc-gui/search-no-result.goml similarity index 100% rename from src/test/rustdoc-gui/search-no-result.goml rename to tests/rustdoc-gui/search-no-result.goml diff --git a/src/test/rustdoc-gui/search-reexport.goml b/tests/rustdoc-gui/search-reexport.goml similarity index 100% rename from src/test/rustdoc-gui/search-reexport.goml rename to tests/rustdoc-gui/search-reexport.goml diff --git a/src/test/rustdoc-gui/search-result-color.goml b/tests/rustdoc-gui/search-result-color.goml similarity index 100% rename from src/test/rustdoc-gui/search-result-color.goml rename to tests/rustdoc-gui/search-result-color.goml diff --git a/src/test/rustdoc-gui/search-result-description.goml b/tests/rustdoc-gui/search-result-description.goml similarity index 100% rename from src/test/rustdoc-gui/search-result-description.goml rename to tests/rustdoc-gui/search-result-description.goml diff --git a/src/test/rustdoc-gui/search-result-display.goml b/tests/rustdoc-gui/search-result-display.goml similarity index 100% rename from src/test/rustdoc-gui/search-result-display.goml rename to tests/rustdoc-gui/search-result-display.goml diff --git a/src/test/rustdoc-gui/search-result-go-to-first.goml b/tests/rustdoc-gui/search-result-go-to-first.goml similarity index 100% rename from src/test/rustdoc-gui/search-result-go-to-first.goml rename to tests/rustdoc-gui/search-result-go-to-first.goml diff --git a/src/test/rustdoc-gui/search-result-keyword.goml b/tests/rustdoc-gui/search-result-keyword.goml similarity index 100% rename from src/test/rustdoc-gui/search-result-keyword.goml rename to tests/rustdoc-gui/search-result-keyword.goml diff --git a/src/test/rustdoc-gui/search-tab-change-title-fn-sig.goml b/tests/rustdoc-gui/search-tab-change-title-fn-sig.goml similarity index 100% rename from src/test/rustdoc-gui/search-tab-change-title-fn-sig.goml rename to tests/rustdoc-gui/search-tab-change-title-fn-sig.goml diff --git a/src/test/rustdoc-gui/search-tab.goml b/tests/rustdoc-gui/search-tab.goml similarity index 100% rename from src/test/rustdoc-gui/search-tab.goml rename to tests/rustdoc-gui/search-tab.goml diff --git a/src/test/rustdoc-gui/settings.goml b/tests/rustdoc-gui/settings.goml similarity index 100% rename from src/test/rustdoc-gui/settings.goml rename to tests/rustdoc-gui/settings.goml diff --git a/src/test/rustdoc-gui/shortcuts.goml b/tests/rustdoc-gui/shortcuts.goml similarity index 100% rename from src/test/rustdoc-gui/shortcuts.goml rename to tests/rustdoc-gui/shortcuts.goml diff --git a/src/test/rustdoc-gui/sidebar-links-color.goml b/tests/rustdoc-gui/sidebar-links-color.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar-links-color.goml rename to tests/rustdoc-gui/sidebar-links-color.goml diff --git a/src/test/rustdoc-gui/sidebar-macro-reexport.goml b/tests/rustdoc-gui/sidebar-macro-reexport.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar-macro-reexport.goml rename to tests/rustdoc-gui/sidebar-macro-reexport.goml diff --git a/src/test/rustdoc-gui/sidebar-mobile-scroll.goml b/tests/rustdoc-gui/sidebar-mobile-scroll.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar-mobile-scroll.goml rename to tests/rustdoc-gui/sidebar-mobile-scroll.goml diff --git a/src/test/rustdoc-gui/sidebar-mobile.goml b/tests/rustdoc-gui/sidebar-mobile.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar-mobile.goml rename to tests/rustdoc-gui/sidebar-mobile.goml diff --git a/src/test/rustdoc-gui/sidebar-source-code-display.goml b/tests/rustdoc-gui/sidebar-source-code-display.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar-source-code-display.goml rename to tests/rustdoc-gui/sidebar-source-code-display.goml diff --git a/src/test/rustdoc-gui/sidebar-source-code.goml b/tests/rustdoc-gui/sidebar-source-code.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar-source-code.goml rename to tests/rustdoc-gui/sidebar-source-code.goml diff --git a/src/test/rustdoc-gui/sidebar.goml b/tests/rustdoc-gui/sidebar.goml similarity index 100% rename from src/test/rustdoc-gui/sidebar.goml rename to tests/rustdoc-gui/sidebar.goml diff --git a/src/test/rustdoc-gui/source-anchor-scroll.goml b/tests/rustdoc-gui/source-anchor-scroll.goml similarity index 100% rename from src/test/rustdoc-gui/source-anchor-scroll.goml rename to tests/rustdoc-gui/source-anchor-scroll.goml diff --git a/src/test/rustdoc-gui/source-code-page.goml b/tests/rustdoc-gui/source-code-page.goml similarity index 100% rename from src/test/rustdoc-gui/source-code-page.goml rename to tests/rustdoc-gui/source-code-page.goml diff --git a/src/test/rustdoc-gui/src-font-size.goml b/tests/rustdoc-gui/src-font-size.goml similarity index 100% rename from src/test/rustdoc-gui/src-font-size.goml rename to tests/rustdoc-gui/src-font-size.goml diff --git a/src/test/rustdoc-gui/src/huge_logo/Cargo.lock b/tests/rustdoc-gui/src/huge_logo/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/huge_logo/Cargo.lock rename to tests/rustdoc-gui/src/huge_logo/Cargo.lock diff --git a/src/test/rustdoc-gui/src/huge_logo/Cargo.toml b/tests/rustdoc-gui/src/huge_logo/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/huge_logo/Cargo.toml rename to tests/rustdoc-gui/src/huge_logo/Cargo.toml diff --git a/src/test/rustdoc-gui/src/huge_logo/src/lib.rs b/tests/rustdoc-gui/src/huge_logo/src/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/huge_logo/src/lib.rs rename to tests/rustdoc-gui/src/huge_logo/src/lib.rs diff --git a/src/test/rustdoc-gui/src/lib2/Cargo.lock b/tests/rustdoc-gui/src/lib2/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/lib2/Cargo.lock rename to tests/rustdoc-gui/src/lib2/Cargo.lock diff --git a/src/test/rustdoc-gui/src/lib2/Cargo.toml b/tests/rustdoc-gui/src/lib2/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/lib2/Cargo.toml rename to tests/rustdoc-gui/src/lib2/Cargo.toml diff --git a/src/test/rustdoc-gui/src/lib2/another_folder/mod.rs b/tests/rustdoc-gui/src/lib2/another_folder/mod.rs similarity index 100% rename from src/test/rustdoc-gui/src/lib2/another_folder/mod.rs rename to tests/rustdoc-gui/src/lib2/another_folder/mod.rs diff --git a/src/test/rustdoc-gui/src/lib2/another_folder/sub_mod/mod.rs b/tests/rustdoc-gui/src/lib2/another_folder/sub_mod/mod.rs similarity index 100% rename from src/test/rustdoc-gui/src/lib2/another_folder/sub_mod/mod.rs rename to tests/rustdoc-gui/src/lib2/another_folder/sub_mod/mod.rs diff --git a/src/test/rustdoc-gui/src/lib2/another_mod/mod.rs b/tests/rustdoc-gui/src/lib2/another_mod/mod.rs similarity index 100% rename from src/test/rustdoc-gui/src/lib2/another_mod/mod.rs rename to tests/rustdoc-gui/src/lib2/another_mod/mod.rs diff --git a/src/test/rustdoc-gui/src/lib2/http/Cargo.toml b/tests/rustdoc-gui/src/lib2/http/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/lib2/http/Cargo.toml rename to tests/rustdoc-gui/src/lib2/http/Cargo.toml diff --git a/src/test/rustdoc-gui/src/lib2/http/lib.rs b/tests/rustdoc-gui/src/lib2/http/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/lib2/http/lib.rs rename to tests/rustdoc-gui/src/lib2/http/lib.rs diff --git a/src/test/rustdoc-gui/src/lib2/implementors/Cargo.lock b/tests/rustdoc-gui/src/lib2/implementors/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/lib2/implementors/Cargo.lock rename to tests/rustdoc-gui/src/lib2/implementors/Cargo.lock diff --git a/src/test/rustdoc-gui/src/lib2/implementors/Cargo.toml b/tests/rustdoc-gui/src/lib2/implementors/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/lib2/implementors/Cargo.toml rename to tests/rustdoc-gui/src/lib2/implementors/Cargo.toml diff --git a/src/test/rustdoc-gui/src/lib2/implementors/lib.rs b/tests/rustdoc-gui/src/lib2/implementors/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/lib2/implementors/lib.rs rename to tests/rustdoc-gui/src/lib2/implementors/lib.rs diff --git a/src/test/rustdoc-gui/src/lib2/lib.rs b/tests/rustdoc-gui/src/lib2/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/lib2/lib.rs rename to tests/rustdoc-gui/src/lib2/lib.rs diff --git a/src/test/rustdoc-gui/src/link_to_definition/Cargo.lock b/tests/rustdoc-gui/src/link_to_definition/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/link_to_definition/Cargo.lock rename to tests/rustdoc-gui/src/link_to_definition/Cargo.lock diff --git a/src/test/rustdoc-gui/src/link_to_definition/Cargo.toml b/tests/rustdoc-gui/src/link_to_definition/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/link_to_definition/Cargo.toml rename to tests/rustdoc-gui/src/link_to_definition/Cargo.toml diff --git a/src/test/rustdoc-gui/src/link_to_definition/lib.rs b/tests/rustdoc-gui/src/link_to_definition/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/link_to_definition/lib.rs rename to tests/rustdoc-gui/src/link_to_definition/lib.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/Cargo.lock b/tests/rustdoc-gui/src/scrape_examples/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/Cargo.lock rename to tests/rustdoc-gui/src/scrape_examples/Cargo.lock diff --git a/src/test/rustdoc-gui/src/scrape_examples/Cargo.toml b/tests/rustdoc-gui/src/scrape_examples/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/Cargo.toml rename to tests/rustdoc-gui/src/scrape_examples/Cargo.toml diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-1.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-1.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-1.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-1.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-2.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-2.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-2.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-2.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-3.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-3.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-3.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-3.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-4.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-4.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-4.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-4.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-5.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-5.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-5.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-5.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-6.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-6.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-6.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-6.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check-many-7.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check-many-7.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check-many-7.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check-many-7.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/examples/check.rs b/tests/rustdoc-gui/src/scrape_examples/examples/check.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/examples/check.rs rename to tests/rustdoc-gui/src/scrape_examples/examples/check.rs diff --git a/src/test/rustdoc-gui/src/scrape_examples/src/lib.rs b/tests/rustdoc-gui/src/scrape_examples/src/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/scrape_examples/src/lib.rs rename to tests/rustdoc-gui/src/scrape_examples/src/lib.rs diff --git a/src/test/rustdoc-gui/src/settings/.cargo/config.toml b/tests/rustdoc-gui/src/settings/.cargo/config.toml similarity index 100% rename from src/test/rustdoc-gui/src/settings/.cargo/config.toml rename to tests/rustdoc-gui/src/settings/.cargo/config.toml diff --git a/src/test/rustdoc-gui/src/settings/Cargo.lock b/tests/rustdoc-gui/src/settings/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/settings/Cargo.lock rename to tests/rustdoc-gui/src/settings/Cargo.lock diff --git a/src/test/rustdoc-gui/src/settings/Cargo.toml b/tests/rustdoc-gui/src/settings/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/settings/Cargo.toml rename to tests/rustdoc-gui/src/settings/Cargo.toml diff --git a/src/test/rustdoc-gui/src/settings/lib.rs b/tests/rustdoc-gui/src/settings/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/settings/lib.rs rename to tests/rustdoc-gui/src/settings/lib.rs diff --git a/src/test/rustdoc-gui/src/staged_api/Cargo.lock b/tests/rustdoc-gui/src/staged_api/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/staged_api/Cargo.lock rename to tests/rustdoc-gui/src/staged_api/Cargo.lock diff --git a/src/test/rustdoc-gui/src/staged_api/Cargo.toml b/tests/rustdoc-gui/src/staged_api/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/staged_api/Cargo.toml rename to tests/rustdoc-gui/src/staged_api/Cargo.toml diff --git a/src/test/rustdoc-gui/src/staged_api/lib.rs b/tests/rustdoc-gui/src/staged_api/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/staged_api/lib.rs rename to tests/rustdoc-gui/src/staged_api/lib.rs diff --git a/src/test/rustdoc-gui/src/test_docs/Cargo.lock b/tests/rustdoc-gui/src/test_docs/Cargo.lock similarity index 100% rename from src/test/rustdoc-gui/src/test_docs/Cargo.lock rename to tests/rustdoc-gui/src/test_docs/Cargo.lock diff --git a/src/test/rustdoc-gui/src/test_docs/Cargo.toml b/tests/rustdoc-gui/src/test_docs/Cargo.toml similarity index 100% rename from src/test/rustdoc-gui/src/test_docs/Cargo.toml rename to tests/rustdoc-gui/src/test_docs/Cargo.toml diff --git a/src/test/rustdoc-gui/src/test_docs/build.rs b/tests/rustdoc-gui/src/test_docs/build.rs similarity index 100% rename from src/test/rustdoc-gui/src/test_docs/build.rs rename to tests/rustdoc-gui/src/test_docs/build.rs diff --git a/src/test/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs similarity index 100% rename from src/test/rustdoc-gui/src/test_docs/lib.rs rename to tests/rustdoc-gui/src/test_docs/lib.rs diff --git a/src/test/rustdoc-gui/src/test_docs/macros.rs b/tests/rustdoc-gui/src/test_docs/macros.rs similarity index 100% rename from src/test/rustdoc-gui/src/test_docs/macros.rs rename to tests/rustdoc-gui/src/test_docs/macros.rs diff --git a/src/test/rustdoc-gui/stab-badge.goml b/tests/rustdoc-gui/stab-badge.goml similarity index 100% rename from src/test/rustdoc-gui/stab-badge.goml rename to tests/rustdoc-gui/stab-badge.goml diff --git a/src/test/rustdoc-gui/struct-fields.goml b/tests/rustdoc-gui/struct-fields.goml similarity index 100% rename from src/test/rustdoc-gui/struct-fields.goml rename to tests/rustdoc-gui/struct-fields.goml diff --git a/src/test/rustdoc-gui/target.goml b/tests/rustdoc-gui/target.goml similarity index 100% rename from src/test/rustdoc-gui/target.goml rename to tests/rustdoc-gui/target.goml diff --git a/src/test/rustdoc-gui/theme-change.goml b/tests/rustdoc-gui/theme-change.goml similarity index 100% rename from src/test/rustdoc-gui/theme-change.goml rename to tests/rustdoc-gui/theme-change.goml diff --git a/src/test/rustdoc-gui/theme-in-history.goml b/tests/rustdoc-gui/theme-in-history.goml similarity index 100% rename from src/test/rustdoc-gui/theme-in-history.goml rename to tests/rustdoc-gui/theme-in-history.goml diff --git a/src/test/rustdoc-gui/toggle-click-deadspace.goml b/tests/rustdoc-gui/toggle-click-deadspace.goml similarity index 100% rename from src/test/rustdoc-gui/toggle-click-deadspace.goml rename to tests/rustdoc-gui/toggle-click-deadspace.goml diff --git a/src/test/rustdoc-gui/toggle-docs-mobile.goml b/tests/rustdoc-gui/toggle-docs-mobile.goml similarity index 100% rename from src/test/rustdoc-gui/toggle-docs-mobile.goml rename to tests/rustdoc-gui/toggle-docs-mobile.goml diff --git a/src/test/rustdoc-gui/toggle-docs.goml b/tests/rustdoc-gui/toggle-docs.goml similarity index 100% rename from src/test/rustdoc-gui/toggle-docs.goml rename to tests/rustdoc-gui/toggle-docs.goml diff --git a/src/test/rustdoc-gui/toggle-implementors.goml b/tests/rustdoc-gui/toggle-implementors.goml similarity index 100% rename from src/test/rustdoc-gui/toggle-implementors.goml rename to tests/rustdoc-gui/toggle-implementors.goml diff --git a/src/test/rustdoc-gui/toggled-open-implementations.goml b/tests/rustdoc-gui/toggled-open-implementations.goml similarity index 100% rename from src/test/rustdoc-gui/toggled-open-implementations.goml rename to tests/rustdoc-gui/toggled-open-implementations.goml diff --git a/src/test/rustdoc-gui/trait-sidebar-item-order.goml b/tests/rustdoc-gui/trait-sidebar-item-order.goml similarity index 100% rename from src/test/rustdoc-gui/trait-sidebar-item-order.goml rename to tests/rustdoc-gui/trait-sidebar-item-order.goml diff --git a/src/test/rustdoc-gui/type-declation-overflow.goml b/tests/rustdoc-gui/type-declation-overflow.goml similarity index 100% rename from src/test/rustdoc-gui/type-declation-overflow.goml rename to tests/rustdoc-gui/type-declation-overflow.goml diff --git a/src/test/rustdoc-gui/unsafe-fn.goml b/tests/rustdoc-gui/unsafe-fn.goml similarity index 100% rename from src/test/rustdoc-gui/unsafe-fn.goml rename to tests/rustdoc-gui/unsafe-fn.goml diff --git a/src/test/rustdoc-gui/where-whitespace.goml b/tests/rustdoc-gui/where-whitespace.goml similarity index 100% rename from src/test/rustdoc-gui/where-whitespace.goml rename to tests/rustdoc-gui/where-whitespace.goml diff --git a/src/test/rustdoc-js-std/alias-1.js b/tests/rustdoc-js-std/alias-1.js similarity index 100% rename from src/test/rustdoc-js-std/alias-1.js rename to tests/rustdoc-js-std/alias-1.js diff --git a/src/test/rustdoc-js-std/alias-2.js b/tests/rustdoc-js-std/alias-2.js similarity index 100% rename from src/test/rustdoc-js-std/alias-2.js rename to tests/rustdoc-js-std/alias-2.js diff --git a/src/test/rustdoc-js-std/alias-3.js b/tests/rustdoc-js-std/alias-3.js similarity index 100% rename from src/test/rustdoc-js-std/alias-3.js rename to tests/rustdoc-js-std/alias-3.js diff --git a/src/test/rustdoc-js-std/alias-4.js b/tests/rustdoc-js-std/alias-4.js similarity index 100% rename from src/test/rustdoc-js-std/alias-4.js rename to tests/rustdoc-js-std/alias-4.js diff --git a/src/test/rustdoc-js-std/alias.js b/tests/rustdoc-js-std/alias.js similarity index 100% rename from src/test/rustdoc-js-std/alias.js rename to tests/rustdoc-js-std/alias.js diff --git a/src/test/rustdoc-js-std/asrawfd.js b/tests/rustdoc-js-std/asrawfd.js similarity index 100% rename from src/test/rustdoc-js-std/asrawfd.js rename to tests/rustdoc-js-std/asrawfd.js diff --git a/src/test/rustdoc-js-std/basic.js b/tests/rustdoc-js-std/basic.js similarity index 100% rename from src/test/rustdoc-js-std/basic.js rename to tests/rustdoc-js-std/basic.js diff --git a/src/test/rustdoc-js-std/deduplication.js b/tests/rustdoc-js-std/deduplication.js similarity index 100% rename from src/test/rustdoc-js-std/deduplication.js rename to tests/rustdoc-js-std/deduplication.js diff --git a/src/test/rustdoc-js-std/enum-option.js b/tests/rustdoc-js-std/enum-option.js similarity index 100% rename from src/test/rustdoc-js-std/enum-option.js rename to tests/rustdoc-js-std/enum-option.js diff --git a/src/test/rustdoc-js-std/filter-crate.js b/tests/rustdoc-js-std/filter-crate.js similarity index 100% rename from src/test/rustdoc-js-std/filter-crate.js rename to tests/rustdoc-js-std/filter-crate.js diff --git a/src/test/rustdoc-js-std/fn-forget.js b/tests/rustdoc-js-std/fn-forget.js similarity index 100% rename from src/test/rustdoc-js-std/fn-forget.js rename to tests/rustdoc-js-std/fn-forget.js diff --git a/src/test/rustdoc-js-std/from_u.js b/tests/rustdoc-js-std/from_u.js similarity index 100% rename from src/test/rustdoc-js-std/from_u.js rename to tests/rustdoc-js-std/from_u.js diff --git a/src/test/rustdoc-js-std/keyword.js b/tests/rustdoc-js-std/keyword.js similarity index 100% rename from src/test/rustdoc-js-std/keyword.js rename to tests/rustdoc-js-std/keyword.js diff --git a/src/test/rustdoc-js-std/macro-check.js b/tests/rustdoc-js-std/macro-check.js similarity index 100% rename from src/test/rustdoc-js-std/macro-check.js rename to tests/rustdoc-js-std/macro-check.js diff --git a/src/test/rustdoc-js-std/macro-print.js b/tests/rustdoc-js-std/macro-print.js similarity index 100% rename from src/test/rustdoc-js-std/macro-print.js rename to tests/rustdoc-js-std/macro-print.js diff --git a/src/test/rustdoc-js-std/never.js b/tests/rustdoc-js-std/never.js similarity index 100% rename from src/test/rustdoc-js-std/never.js rename to tests/rustdoc-js-std/never.js diff --git a/src/test/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js similarity index 100% rename from src/test/rustdoc-js-std/parser-errors.js rename to tests/rustdoc-js-std/parser-errors.js diff --git a/src/test/rustdoc-js-std/parser-filter.js b/tests/rustdoc-js-std/parser-filter.js similarity index 100% rename from src/test/rustdoc-js-std/parser-filter.js rename to tests/rustdoc-js-std/parser-filter.js diff --git a/src/test/rustdoc-js-std/parser-generics.js b/tests/rustdoc-js-std/parser-generics.js similarity index 100% rename from src/test/rustdoc-js-std/parser-generics.js rename to tests/rustdoc-js-std/parser-generics.js diff --git a/src/test/rustdoc-js-std/parser-ident.js b/tests/rustdoc-js-std/parser-ident.js similarity index 100% rename from src/test/rustdoc-js-std/parser-ident.js rename to tests/rustdoc-js-std/parser-ident.js diff --git a/src/test/rustdoc-js-std/parser-literal.js b/tests/rustdoc-js-std/parser-literal.js similarity index 100% rename from src/test/rustdoc-js-std/parser-literal.js rename to tests/rustdoc-js-std/parser-literal.js diff --git a/src/test/rustdoc-js-std/parser-paths.js b/tests/rustdoc-js-std/parser-paths.js similarity index 100% rename from src/test/rustdoc-js-std/parser-paths.js rename to tests/rustdoc-js-std/parser-paths.js diff --git a/src/test/rustdoc-js-std/parser-quote.js b/tests/rustdoc-js-std/parser-quote.js similarity index 100% rename from src/test/rustdoc-js-std/parser-quote.js rename to tests/rustdoc-js-std/parser-quote.js diff --git a/src/test/rustdoc-js-std/parser-returned.js b/tests/rustdoc-js-std/parser-returned.js similarity index 100% rename from src/test/rustdoc-js-std/parser-returned.js rename to tests/rustdoc-js-std/parser-returned.js diff --git a/src/test/rustdoc-js-std/parser-separators.js b/tests/rustdoc-js-std/parser-separators.js similarity index 100% rename from src/test/rustdoc-js-std/parser-separators.js rename to tests/rustdoc-js-std/parser-separators.js diff --git a/src/test/rustdoc-js-std/parser-weird-queries.js b/tests/rustdoc-js-std/parser-weird-queries.js similarity index 100% rename from src/test/rustdoc-js-std/parser-weird-queries.js rename to tests/rustdoc-js-std/parser-weird-queries.js diff --git a/src/test/rustdoc-js-std/path-ordering.js b/tests/rustdoc-js-std/path-ordering.js similarity index 100% rename from src/test/rustdoc-js-std/path-ordering.js rename to tests/rustdoc-js-std/path-ordering.js diff --git a/src/test/rustdoc-js-std/primitive.js b/tests/rustdoc-js-std/primitive.js similarity index 100% rename from src/test/rustdoc-js-std/primitive.js rename to tests/rustdoc-js-std/primitive.js diff --git a/src/test/rustdoc-js-std/quoted.js b/tests/rustdoc-js-std/quoted.js similarity index 100% rename from src/test/rustdoc-js-std/quoted.js rename to tests/rustdoc-js-std/quoted.js diff --git a/src/test/rustdoc-js-std/return-specific-literal.js b/tests/rustdoc-js-std/return-specific-literal.js similarity index 100% rename from src/test/rustdoc-js-std/return-specific-literal.js rename to tests/rustdoc-js-std/return-specific-literal.js diff --git a/src/test/rustdoc-js-std/return-specific.js b/tests/rustdoc-js-std/return-specific.js similarity index 100% rename from src/test/rustdoc-js-std/return-specific.js rename to tests/rustdoc-js-std/return-specific.js diff --git a/src/test/rustdoc-js-std/should-fail.js b/tests/rustdoc-js-std/should-fail.js similarity index 100% rename from src/test/rustdoc-js-std/should-fail.js rename to tests/rustdoc-js-std/should-fail.js diff --git a/src/test/rustdoc-js-std/string-from_ut.js b/tests/rustdoc-js-std/string-from_ut.js similarity index 100% rename from src/test/rustdoc-js-std/string-from_ut.js rename to tests/rustdoc-js-std/string-from_ut.js diff --git a/src/test/rustdoc-js-std/struct-vec.js b/tests/rustdoc-js-std/struct-vec.js similarity index 100% rename from src/test/rustdoc-js-std/struct-vec.js rename to tests/rustdoc-js-std/struct-vec.js diff --git a/src/test/rustdoc-js-std/typed-query.js b/tests/rustdoc-js-std/typed-query.js similarity index 100% rename from src/test/rustdoc-js-std/typed-query.js rename to tests/rustdoc-js-std/typed-query.js diff --git a/src/test/rustdoc-js-std/vec-new.js b/tests/rustdoc-js-std/vec-new.js similarity index 100% rename from src/test/rustdoc-js-std/vec-new.js rename to tests/rustdoc-js-std/vec-new.js diff --git a/src/test/rustdoc-js/basic.js b/tests/rustdoc-js/basic.js similarity index 100% rename from src/test/rustdoc-js/basic.js rename to tests/rustdoc-js/basic.js diff --git a/src/test/rustdoc-js/basic.rs b/tests/rustdoc-js/basic.rs similarity index 100% rename from src/test/rustdoc-js/basic.rs rename to tests/rustdoc-js/basic.rs diff --git a/src/test/rustdoc-js/doc-alias-filter-out.js b/tests/rustdoc-js/doc-alias-filter-out.js similarity index 100% rename from src/test/rustdoc-js/doc-alias-filter-out.js rename to tests/rustdoc-js/doc-alias-filter-out.js diff --git a/src/test/rustdoc-js/doc-alias-filter-out.rs b/tests/rustdoc-js/doc-alias-filter-out.rs similarity index 100% rename from src/test/rustdoc-js/doc-alias-filter-out.rs rename to tests/rustdoc-js/doc-alias-filter-out.rs diff --git a/src/test/rustdoc-js/doc-alias-filter.js b/tests/rustdoc-js/doc-alias-filter.js similarity index 100% rename from src/test/rustdoc-js/doc-alias-filter.js rename to tests/rustdoc-js/doc-alias-filter.js diff --git a/src/test/rustdoc-js/doc-alias-filter.rs b/tests/rustdoc-js/doc-alias-filter.rs similarity index 100% rename from src/test/rustdoc-js/doc-alias-filter.rs rename to tests/rustdoc-js/doc-alias-filter.rs diff --git a/src/test/rustdoc-js/doc-alias-whitespace.js b/tests/rustdoc-js/doc-alias-whitespace.js similarity index 100% rename from src/test/rustdoc-js/doc-alias-whitespace.js rename to tests/rustdoc-js/doc-alias-whitespace.js diff --git a/src/test/rustdoc-js/doc-alias-whitespace.rs b/tests/rustdoc-js/doc-alias-whitespace.rs similarity index 100% rename from src/test/rustdoc-js/doc-alias-whitespace.rs rename to tests/rustdoc-js/doc-alias-whitespace.rs diff --git a/src/test/rustdoc-js/doc-alias.js b/tests/rustdoc-js/doc-alias.js similarity index 100% rename from src/test/rustdoc-js/doc-alias.js rename to tests/rustdoc-js/doc-alias.js diff --git a/src/test/rustdoc-js/doc-alias.rs b/tests/rustdoc-js/doc-alias.rs similarity index 100% rename from src/test/rustdoc-js/doc-alias.rs rename to tests/rustdoc-js/doc-alias.rs diff --git a/src/test/rustdoc-js/exact-match.js b/tests/rustdoc-js/exact-match.js similarity index 100% rename from src/test/rustdoc-js/exact-match.js rename to tests/rustdoc-js/exact-match.js diff --git a/src/test/rustdoc-js/exact-match.rs b/tests/rustdoc-js/exact-match.rs similarity index 100% rename from src/test/rustdoc-js/exact-match.rs rename to tests/rustdoc-js/exact-match.rs diff --git a/src/test/rustdoc-js/foreign-type-path.js b/tests/rustdoc-js/foreign-type-path.js similarity index 100% rename from src/test/rustdoc-js/foreign-type-path.js rename to tests/rustdoc-js/foreign-type-path.js diff --git a/src/test/rustdoc-js/foreign-type-path.rs b/tests/rustdoc-js/foreign-type-path.rs similarity index 100% rename from src/test/rustdoc-js/foreign-type-path.rs rename to tests/rustdoc-js/foreign-type-path.rs diff --git a/src/test/rustdoc-js/generics-impl.js b/tests/rustdoc-js/generics-impl.js similarity index 100% rename from src/test/rustdoc-js/generics-impl.js rename to tests/rustdoc-js/generics-impl.js diff --git a/src/test/rustdoc-js/generics-impl.rs b/tests/rustdoc-js/generics-impl.rs similarity index 100% rename from src/test/rustdoc-js/generics-impl.rs rename to tests/rustdoc-js/generics-impl.rs diff --git a/src/test/rustdoc-js/generics-multi-trait.js b/tests/rustdoc-js/generics-multi-trait.js similarity index 100% rename from src/test/rustdoc-js/generics-multi-trait.js rename to tests/rustdoc-js/generics-multi-trait.js diff --git a/src/test/rustdoc-js/generics-multi-trait.rs b/tests/rustdoc-js/generics-multi-trait.rs similarity index 100% rename from src/test/rustdoc-js/generics-multi-trait.rs rename to tests/rustdoc-js/generics-multi-trait.rs diff --git a/src/test/rustdoc-js/generics-trait.js b/tests/rustdoc-js/generics-trait.js similarity index 100% rename from src/test/rustdoc-js/generics-trait.js rename to tests/rustdoc-js/generics-trait.js diff --git a/src/test/rustdoc-js/generics-trait.rs b/tests/rustdoc-js/generics-trait.rs similarity index 100% rename from src/test/rustdoc-js/generics-trait.rs rename to tests/rustdoc-js/generics-trait.rs diff --git a/src/test/rustdoc-js/generics.js b/tests/rustdoc-js/generics.js similarity index 100% rename from src/test/rustdoc-js/generics.js rename to tests/rustdoc-js/generics.js diff --git a/src/test/rustdoc-js/generics.rs b/tests/rustdoc-js/generics.rs similarity index 100% rename from src/test/rustdoc-js/generics.rs rename to tests/rustdoc-js/generics.rs diff --git a/src/test/rustdoc-js/impl-trait.js b/tests/rustdoc-js/impl-trait.js similarity index 100% rename from src/test/rustdoc-js/impl-trait.js rename to tests/rustdoc-js/impl-trait.js diff --git a/src/test/rustdoc-js/impl-trait.rs b/tests/rustdoc-js/impl-trait.rs similarity index 100% rename from src/test/rustdoc-js/impl-trait.rs rename to tests/rustdoc-js/impl-trait.rs diff --git a/src/test/rustdoc-js/module-substring.js b/tests/rustdoc-js/module-substring.js similarity index 100% rename from src/test/rustdoc-js/module-substring.js rename to tests/rustdoc-js/module-substring.js diff --git a/src/test/rustdoc-js/module-substring.rs b/tests/rustdoc-js/module-substring.rs similarity index 100% rename from src/test/rustdoc-js/module-substring.rs rename to tests/rustdoc-js/module-substring.rs diff --git a/src/test/rustdoc-js/path-ordering.js b/tests/rustdoc-js/path-ordering.js similarity index 100% rename from src/test/rustdoc-js/path-ordering.js rename to tests/rustdoc-js/path-ordering.js diff --git a/src/test/rustdoc-js/path-ordering.rs b/tests/rustdoc-js/path-ordering.rs similarity index 100% rename from src/test/rustdoc-js/path-ordering.rs rename to tests/rustdoc-js/path-ordering.rs diff --git a/src/test/rustdoc-js/primitive.js b/tests/rustdoc-js/primitive.js similarity index 100% rename from src/test/rustdoc-js/primitive.js rename to tests/rustdoc-js/primitive.js diff --git a/src/test/rustdoc-js/primitive.rs b/tests/rustdoc-js/primitive.rs similarity index 100% rename from src/test/rustdoc-js/primitive.rs rename to tests/rustdoc-js/primitive.rs diff --git a/src/test/rustdoc-js/prototype.js b/tests/rustdoc-js/prototype.js similarity index 100% rename from src/test/rustdoc-js/prototype.js rename to tests/rustdoc-js/prototype.js diff --git a/src/test/rustdoc-js/prototype.rs b/tests/rustdoc-js/prototype.rs similarity index 100% rename from src/test/rustdoc-js/prototype.rs rename to tests/rustdoc-js/prototype.rs diff --git a/src/test/rustdoc-js/raw-pointer.js b/tests/rustdoc-js/raw-pointer.js similarity index 100% rename from src/test/rustdoc-js/raw-pointer.js rename to tests/rustdoc-js/raw-pointer.js diff --git a/src/test/rustdoc-js/raw-pointer.rs b/tests/rustdoc-js/raw-pointer.rs similarity index 100% rename from src/test/rustdoc-js/raw-pointer.rs rename to tests/rustdoc-js/raw-pointer.rs diff --git a/src/test/rustdoc-js/reexport.js b/tests/rustdoc-js/reexport.js similarity index 100% rename from src/test/rustdoc-js/reexport.js rename to tests/rustdoc-js/reexport.js diff --git a/src/test/rustdoc-js/reexport.rs b/tests/rustdoc-js/reexport.rs similarity index 100% rename from src/test/rustdoc-js/reexport.rs rename to tests/rustdoc-js/reexport.rs diff --git a/src/test/rustdoc-js/search-short-types.js b/tests/rustdoc-js/search-short-types.js similarity index 100% rename from src/test/rustdoc-js/search-short-types.js rename to tests/rustdoc-js/search-short-types.js diff --git a/src/test/rustdoc-js/search-short-types.rs b/tests/rustdoc-js/search-short-types.rs similarity index 100% rename from src/test/rustdoc-js/search-short-types.rs rename to tests/rustdoc-js/search-short-types.rs diff --git a/src/test/rustdoc-js/struct-like-variant.js b/tests/rustdoc-js/struct-like-variant.js similarity index 100% rename from src/test/rustdoc-js/struct-like-variant.js rename to tests/rustdoc-js/struct-like-variant.js diff --git a/src/test/rustdoc-js/struct-like-variant.rs b/tests/rustdoc-js/struct-like-variant.rs similarity index 100% rename from src/test/rustdoc-js/struct-like-variant.rs rename to tests/rustdoc-js/struct-like-variant.rs diff --git a/src/test/rustdoc-js/substring.js b/tests/rustdoc-js/substring.js similarity index 100% rename from src/test/rustdoc-js/substring.js rename to tests/rustdoc-js/substring.js diff --git a/src/test/rustdoc-js/substring.rs b/tests/rustdoc-js/substring.rs similarity index 100% rename from src/test/rustdoc-js/substring.rs rename to tests/rustdoc-js/substring.rs diff --git a/src/test/rustdoc-js/summaries.js b/tests/rustdoc-js/summaries.js similarity index 100% rename from src/test/rustdoc-js/summaries.js rename to tests/rustdoc-js/summaries.js diff --git a/src/test/rustdoc-js/summaries.rs b/tests/rustdoc-js/summaries.rs similarity index 100% rename from src/test/rustdoc-js/summaries.rs rename to tests/rustdoc-js/summaries.rs diff --git a/src/test/rustdoc-json/assoc_items.rs b/tests/rustdoc-json/assoc_items.rs similarity index 100% rename from src/test/rustdoc-json/assoc_items.rs rename to tests/rustdoc-json/assoc_items.rs diff --git a/src/test/rustdoc-json/assoc_type.rs b/tests/rustdoc-json/assoc_type.rs similarity index 100% rename from src/test/rustdoc-json/assoc_type.rs rename to tests/rustdoc-json/assoc_type.rs diff --git a/src/test/rustdoc-json/blanket_impls.rs b/tests/rustdoc-json/blanket_impls.rs similarity index 100% rename from src/test/rustdoc-json/blanket_impls.rs rename to tests/rustdoc-json/blanket_impls.rs diff --git a/src/test/rustdoc-json/doc_hidden_failure.rs b/tests/rustdoc-json/doc_hidden_failure.rs similarity index 100% rename from src/test/rustdoc-json/doc_hidden_failure.rs rename to tests/rustdoc-json/doc_hidden_failure.rs diff --git a/src/test/rustdoc-json/enums/auxiliary/color.rs b/tests/rustdoc-json/enums/auxiliary/color.rs similarity index 100% rename from src/test/rustdoc-json/enums/auxiliary/color.rs rename to tests/rustdoc-json/enums/auxiliary/color.rs diff --git a/src/test/rustdoc-json/enums/discriminant/basic.rs b/tests/rustdoc-json/enums/discriminant/basic.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/basic.rs rename to tests/rustdoc-json/enums/discriminant/basic.rs diff --git a/src/test/rustdoc-json/enums/discriminant/expr.rs b/tests/rustdoc-json/enums/discriminant/expr.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/expr.rs rename to tests/rustdoc-json/enums/discriminant/expr.rs diff --git a/src/test/rustdoc-json/enums/discriminant/limits.rs b/tests/rustdoc-json/enums/discriminant/limits.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/limits.rs rename to tests/rustdoc-json/enums/discriminant/limits.rs diff --git a/src/test/rustdoc-json/enums/discriminant/num_underscore_and_suffix.rs b/tests/rustdoc-json/enums/discriminant/num_underscore_and_suffix.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/num_underscore_and_suffix.rs rename to tests/rustdoc-json/enums/discriminant/num_underscore_and_suffix.rs diff --git a/src/test/rustdoc-json/enums/discriminant/only_some_have_discriminant.rs b/tests/rustdoc-json/enums/discriminant/only_some_have_discriminant.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/only_some_have_discriminant.rs rename to tests/rustdoc-json/enums/discriminant/only_some_have_discriminant.rs diff --git a/src/test/rustdoc-json/enums/discriminant/struct.rs b/tests/rustdoc-json/enums/discriminant/struct.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/struct.rs rename to tests/rustdoc-json/enums/discriminant/struct.rs diff --git a/src/test/rustdoc-json/enums/discriminant/tuple.rs b/tests/rustdoc-json/enums/discriminant/tuple.rs similarity index 100% rename from src/test/rustdoc-json/enums/discriminant/tuple.rs rename to tests/rustdoc-json/enums/discriminant/tuple.rs diff --git a/src/test/rustdoc-json/enums/doc_link_to_foreign_variant.rs b/tests/rustdoc-json/enums/doc_link_to_foreign_variant.rs similarity index 100% rename from src/test/rustdoc-json/enums/doc_link_to_foreign_variant.rs rename to tests/rustdoc-json/enums/doc_link_to_foreign_variant.rs diff --git a/src/test/rustdoc-json/enums/field_hidden.rs b/tests/rustdoc-json/enums/field_hidden.rs similarity index 100% rename from src/test/rustdoc-json/enums/field_hidden.rs rename to tests/rustdoc-json/enums/field_hidden.rs diff --git a/src/test/rustdoc-json/enums/kind.rs b/tests/rustdoc-json/enums/kind.rs similarity index 100% rename from src/test/rustdoc-json/enums/kind.rs rename to tests/rustdoc-json/enums/kind.rs diff --git a/src/test/rustdoc-json/enums/struct_field_hidden.rs b/tests/rustdoc-json/enums/struct_field_hidden.rs similarity index 100% rename from src/test/rustdoc-json/enums/struct_field_hidden.rs rename to tests/rustdoc-json/enums/struct_field_hidden.rs diff --git a/src/test/rustdoc-json/enums/tuple_fields_hidden.rs b/tests/rustdoc-json/enums/tuple_fields_hidden.rs similarity index 100% rename from src/test/rustdoc-json/enums/tuple_fields_hidden.rs rename to tests/rustdoc-json/enums/tuple_fields_hidden.rs diff --git a/src/test/rustdoc-json/enums/use_glob.rs b/tests/rustdoc-json/enums/use_glob.rs similarity index 100% rename from src/test/rustdoc-json/enums/use_glob.rs rename to tests/rustdoc-json/enums/use_glob.rs diff --git a/src/test/rustdoc-json/enums/use_variant.rs b/tests/rustdoc-json/enums/use_variant.rs similarity index 100% rename from src/test/rustdoc-json/enums/use_variant.rs rename to tests/rustdoc-json/enums/use_variant.rs diff --git a/src/test/rustdoc-json/enums/use_variant_foreign.rs b/tests/rustdoc-json/enums/use_variant_foreign.rs similarity index 100% rename from src/test/rustdoc-json/enums/use_variant_foreign.rs rename to tests/rustdoc-json/enums/use_variant_foreign.rs diff --git a/src/test/rustdoc-json/enums/variant_struct.rs b/tests/rustdoc-json/enums/variant_struct.rs similarity index 100% rename from src/test/rustdoc-json/enums/variant_struct.rs rename to tests/rustdoc-json/enums/variant_struct.rs diff --git a/src/test/rustdoc-json/enums/variant_tuple_struct.rs b/tests/rustdoc-json/enums/variant_tuple_struct.rs similarity index 100% rename from src/test/rustdoc-json/enums/variant_tuple_struct.rs rename to tests/rustdoc-json/enums/variant_tuple_struct.rs diff --git a/src/test/rustdoc-json/fn_pointer/abi.rs b/tests/rustdoc-json/fn_pointer/abi.rs similarity index 100% rename from src/test/rustdoc-json/fn_pointer/abi.rs rename to tests/rustdoc-json/fn_pointer/abi.rs diff --git a/src/test/rustdoc-json/fn_pointer/generics.rs b/tests/rustdoc-json/fn_pointer/generics.rs similarity index 100% rename from src/test/rustdoc-json/fn_pointer/generics.rs rename to tests/rustdoc-json/fn_pointer/generics.rs diff --git a/src/test/rustdoc-json/fn_pointer/qualifiers.rs b/tests/rustdoc-json/fn_pointer/qualifiers.rs similarity index 100% rename from src/test/rustdoc-json/fn_pointer/qualifiers.rs rename to tests/rustdoc-json/fn_pointer/qualifiers.rs diff --git a/src/test/rustdoc-json/fns/abi.rs b/tests/rustdoc-json/fns/abi.rs similarity index 100% rename from src/test/rustdoc-json/fns/abi.rs rename to tests/rustdoc-json/fns/abi.rs diff --git a/src/test/rustdoc-json/fns/async_return.rs b/tests/rustdoc-json/fns/async_return.rs similarity index 100% rename from src/test/rustdoc-json/fns/async_return.rs rename to tests/rustdoc-json/fns/async_return.rs diff --git a/src/test/rustdoc-json/fns/generic_args.rs b/tests/rustdoc-json/fns/generic_args.rs similarity index 100% rename from src/test/rustdoc-json/fns/generic_args.rs rename to tests/rustdoc-json/fns/generic_args.rs diff --git a/src/test/rustdoc-json/fns/generic_returns.rs b/tests/rustdoc-json/fns/generic_returns.rs similarity index 100% rename from src/test/rustdoc-json/fns/generic_returns.rs rename to tests/rustdoc-json/fns/generic_returns.rs diff --git a/src/test/rustdoc-json/fns/generics.rs b/tests/rustdoc-json/fns/generics.rs similarity index 100% rename from src/test/rustdoc-json/fns/generics.rs rename to tests/rustdoc-json/fns/generics.rs diff --git a/src/test/rustdoc-json/fns/pattern_arg.rs b/tests/rustdoc-json/fns/pattern_arg.rs similarity index 100% rename from src/test/rustdoc-json/fns/pattern_arg.rs rename to tests/rustdoc-json/fns/pattern_arg.rs diff --git a/src/test/rustdoc-json/fns/qualifiers.rs b/tests/rustdoc-json/fns/qualifiers.rs similarity index 100% rename from src/test/rustdoc-json/fns/qualifiers.rs rename to tests/rustdoc-json/fns/qualifiers.rs diff --git a/src/test/rustdoc-json/fns/return_type_alias.rs b/tests/rustdoc-json/fns/return_type_alias.rs similarity index 100% rename from src/test/rustdoc-json/fns/return_type_alias.rs rename to tests/rustdoc-json/fns/return_type_alias.rs diff --git a/src/test/rustdoc-json/generic-associated-types/gats.rs b/tests/rustdoc-json/generic-associated-types/gats.rs similarity index 100% rename from src/test/rustdoc-json/generic-associated-types/gats.rs rename to tests/rustdoc-json/generic-associated-types/gats.rs diff --git a/src/test/rustdoc-json/generic_impl.rs b/tests/rustdoc-json/generic_impl.rs similarity index 100% rename from src/test/rustdoc-json/generic_impl.rs rename to tests/rustdoc-json/generic_impl.rs diff --git a/src/test/rustdoc-json/glob_import.rs b/tests/rustdoc-json/glob_import.rs similarity index 100% rename from src/test/rustdoc-json/glob_import.rs rename to tests/rustdoc-json/glob_import.rs diff --git a/src/test/rustdoc-json/impls/auto.rs b/tests/rustdoc-json/impls/auto.rs similarity index 100% rename from src/test/rustdoc-json/impls/auto.rs rename to tests/rustdoc-json/impls/auto.rs diff --git a/src/test/rustdoc-json/impls/auxiliary/foreign_struct.rs b/tests/rustdoc-json/impls/auxiliary/foreign_struct.rs similarity index 100% rename from src/test/rustdoc-json/impls/auxiliary/foreign_struct.rs rename to tests/rustdoc-json/impls/auxiliary/foreign_struct.rs diff --git a/src/test/rustdoc-json/impls/auxiliary/foreign_trait.rs b/tests/rustdoc-json/impls/auxiliary/foreign_trait.rs similarity index 100% rename from src/test/rustdoc-json/impls/auxiliary/foreign_trait.rs rename to tests/rustdoc-json/impls/auxiliary/foreign_trait.rs diff --git a/src/test/rustdoc-json/impls/blanket_with_local.rs b/tests/rustdoc-json/impls/blanket_with_local.rs similarity index 100% rename from src/test/rustdoc-json/impls/blanket_with_local.rs rename to tests/rustdoc-json/impls/blanket_with_local.rs diff --git a/src/test/rustdoc-json/impls/foreign_for_local.rs b/tests/rustdoc-json/impls/foreign_for_local.rs similarity index 100% rename from src/test/rustdoc-json/impls/foreign_for_local.rs rename to tests/rustdoc-json/impls/foreign_for_local.rs diff --git a/src/test/rustdoc-json/impls/import_from_private.rs b/tests/rustdoc-json/impls/import_from_private.rs similarity index 100% rename from src/test/rustdoc-json/impls/import_from_private.rs rename to tests/rustdoc-json/impls/import_from_private.rs diff --git a/src/test/rustdoc-json/impls/local_for_foreign.rs b/tests/rustdoc-json/impls/local_for_foreign.rs similarity index 100% rename from src/test/rustdoc-json/impls/local_for_foreign.rs rename to tests/rustdoc-json/impls/local_for_foreign.rs diff --git a/src/test/rustdoc-json/impls/local_for_local.rs b/tests/rustdoc-json/impls/local_for_local.rs similarity index 100% rename from src/test/rustdoc-json/impls/local_for_local.rs rename to tests/rustdoc-json/impls/local_for_local.rs diff --git a/src/test/rustdoc-json/impls/local_for_local_primitive.rs b/tests/rustdoc-json/impls/local_for_local_primitive.rs similarity index 100% rename from src/test/rustdoc-json/impls/local_for_local_primitive.rs rename to tests/rustdoc-json/impls/local_for_local_primitive.rs diff --git a/src/test/rustdoc-json/impls/local_for_primitive.rs b/tests/rustdoc-json/impls/local_for_primitive.rs similarity index 100% rename from src/test/rustdoc-json/impls/local_for_primitive.rs rename to tests/rustdoc-json/impls/local_for_primitive.rs diff --git a/src/test/rustdoc-json/intra-doc-links/auxiliary/enum_variant_in_trait_method.rs b/tests/rustdoc-json/intra-doc-links/auxiliary/enum_variant_in_trait_method.rs similarity index 100% rename from src/test/rustdoc-json/intra-doc-links/auxiliary/enum_variant_in_trait_method.rs rename to tests/rustdoc-json/intra-doc-links/auxiliary/enum_variant_in_trait_method.rs diff --git a/src/test/rustdoc-json/intra-doc-links/foreign_variant.rs b/tests/rustdoc-json/intra-doc-links/foreign_variant.rs similarity index 100% rename from src/test/rustdoc-json/intra-doc-links/foreign_variant.rs rename to tests/rustdoc-json/intra-doc-links/foreign_variant.rs diff --git a/src/test/rustdoc-json/intra-doc-links/non_page.rs b/tests/rustdoc-json/intra-doc-links/non_page.rs similarity index 100% rename from src/test/rustdoc-json/intra-doc-links/non_page.rs rename to tests/rustdoc-json/intra-doc-links/non_page.rs diff --git a/src/test/rustdoc-json/intra-doc-links/user_written.rs b/tests/rustdoc-json/intra-doc-links/user_written.rs similarity index 100% rename from src/test/rustdoc-json/intra-doc-links/user_written.rs rename to tests/rustdoc-json/intra-doc-links/user_written.rs diff --git a/src/test/rustdoc-json/keyword.rs b/tests/rustdoc-json/keyword.rs similarity index 100% rename from src/test/rustdoc-json/keyword.rs rename to tests/rustdoc-json/keyword.rs diff --git a/src/test/rustdoc-json/lifetime/longest.rs b/tests/rustdoc-json/lifetime/longest.rs similarity index 100% rename from src/test/rustdoc-json/lifetime/longest.rs rename to tests/rustdoc-json/lifetime/longest.rs diff --git a/src/test/rustdoc-json/lifetime/outlives.rs b/tests/rustdoc-json/lifetime/outlives.rs similarity index 100% rename from src/test/rustdoc-json/lifetime/outlives.rs rename to tests/rustdoc-json/lifetime/outlives.rs diff --git a/src/test/rustdoc-json/methods/abi.rs b/tests/rustdoc-json/methods/abi.rs similarity index 100% rename from src/test/rustdoc-json/methods/abi.rs rename to tests/rustdoc-json/methods/abi.rs diff --git a/src/test/rustdoc-json/methods/qualifiers.rs b/tests/rustdoc-json/methods/qualifiers.rs similarity index 100% rename from src/test/rustdoc-json/methods/qualifiers.rs rename to tests/rustdoc-json/methods/qualifiers.rs diff --git a/src/test/rustdoc-json/nested.rs b/tests/rustdoc-json/nested.rs similarity index 100% rename from src/test/rustdoc-json/nested.rs rename to tests/rustdoc-json/nested.rs diff --git a/src/test/rustdoc-json/output_generics.rs b/tests/rustdoc-json/output_generics.rs similarity index 100% rename from src/test/rustdoc-json/output_generics.rs rename to tests/rustdoc-json/output_generics.rs diff --git a/src/test/rustdoc-json/primitives/local_primitive.rs b/tests/rustdoc-json/primitives/local_primitive.rs similarity index 100% rename from src/test/rustdoc-json/primitives/local_primitive.rs rename to tests/rustdoc-json/primitives/local_primitive.rs diff --git a/src/test/rustdoc-json/primitives/primitive_impls.rs b/tests/rustdoc-json/primitives/primitive_impls.rs similarity index 100% rename from src/test/rustdoc-json/primitives/primitive_impls.rs rename to tests/rustdoc-json/primitives/primitive_impls.rs diff --git a/src/test/rustdoc-json/primitives/primitive_overloading.rs b/tests/rustdoc-json/primitives/primitive_overloading.rs similarity index 100% rename from src/test/rustdoc-json/primitives/primitive_overloading.rs rename to tests/rustdoc-json/primitives/primitive_overloading.rs diff --git a/src/test/rustdoc-json/primitives/primitive_type.rs b/tests/rustdoc-json/primitives/primitive_type.rs similarity index 100% rename from src/test/rustdoc-json/primitives/primitive_type.rs rename to tests/rustdoc-json/primitives/primitive_type.rs diff --git a/src/test/rustdoc-json/primitives/use_primitive.rs b/tests/rustdoc-json/primitives/use_primitive.rs similarity index 100% rename from src/test/rustdoc-json/primitives/use_primitive.rs rename to tests/rustdoc-json/primitives/use_primitive.rs diff --git a/src/test/rustdoc-json/reexport/auxiliary/pub-struct.rs b/tests/rustdoc-json/reexport/auxiliary/pub-struct.rs similarity index 100% rename from src/test/rustdoc-json/reexport/auxiliary/pub-struct.rs rename to tests/rustdoc-json/reexport/auxiliary/pub-struct.rs diff --git a/src/test/rustdoc-json/reexport/auxiliary/trait_with_docs.rs b/tests/rustdoc-json/reexport/auxiliary/trait_with_docs.rs similarity index 100% rename from src/test/rustdoc-json/reexport/auxiliary/trait_with_docs.rs rename to tests/rustdoc-json/reexport/auxiliary/trait_with_docs.rs diff --git a/src/test/rustdoc-json/reexport/export_extern_crate_as_self.rs b/tests/rustdoc-json/reexport/export_extern_crate_as_self.rs similarity index 100% rename from src/test/rustdoc-json/reexport/export_extern_crate_as_self.rs rename to tests/rustdoc-json/reexport/export_extern_crate_as_self.rs diff --git a/src/test/rustdoc-json/reexport/glob_collision.rs b/tests/rustdoc-json/reexport/glob_collision.rs similarity index 100% rename from src/test/rustdoc-json/reexport/glob_collision.rs rename to tests/rustdoc-json/reexport/glob_collision.rs diff --git a/src/test/rustdoc-json/reexport/glob_empty_mod.rs b/tests/rustdoc-json/reexport/glob_empty_mod.rs similarity index 100% rename from src/test/rustdoc-json/reexport/glob_empty_mod.rs rename to tests/rustdoc-json/reexport/glob_empty_mod.rs diff --git a/src/test/rustdoc-json/reexport/glob_extern.rs b/tests/rustdoc-json/reexport/glob_extern.rs similarity index 100% rename from src/test/rustdoc-json/reexport/glob_extern.rs rename to tests/rustdoc-json/reexport/glob_extern.rs diff --git a/src/test/rustdoc-json/reexport/glob_private.rs b/tests/rustdoc-json/reexport/glob_private.rs similarity index 100% rename from src/test/rustdoc-json/reexport/glob_private.rs rename to tests/rustdoc-json/reexport/glob_private.rs diff --git a/src/test/rustdoc-json/reexport/in_root_and_mod.rs b/tests/rustdoc-json/reexport/in_root_and_mod.rs similarity index 100% rename from src/test/rustdoc-json/reexport/in_root_and_mod.rs rename to tests/rustdoc-json/reexport/in_root_and_mod.rs diff --git a/src/test/rustdoc-json/reexport/in_root_and_mod_pub.rs b/tests/rustdoc-json/reexport/in_root_and_mod_pub.rs similarity index 100% rename from src/test/rustdoc-json/reexport/in_root_and_mod_pub.rs rename to tests/rustdoc-json/reexport/in_root_and_mod_pub.rs diff --git a/src/test/rustdoc-json/reexport/macro.rs b/tests/rustdoc-json/reexport/macro.rs similarity index 100% rename from src/test/rustdoc-json/reexport/macro.rs rename to tests/rustdoc-json/reexport/macro.rs diff --git a/src/test/rustdoc-json/reexport/mod_not_included.rs b/tests/rustdoc-json/reexport/mod_not_included.rs similarity index 100% rename from src/test/rustdoc-json/reexport/mod_not_included.rs rename to tests/rustdoc-json/reexport/mod_not_included.rs diff --git a/src/test/rustdoc-json/reexport/private_twice_one_inline.rs b/tests/rustdoc-json/reexport/private_twice_one_inline.rs similarity index 100% rename from src/test/rustdoc-json/reexport/private_twice_one_inline.rs rename to tests/rustdoc-json/reexport/private_twice_one_inline.rs diff --git a/src/test/rustdoc-json/reexport/private_two_names.rs b/tests/rustdoc-json/reexport/private_two_names.rs similarity index 100% rename from src/test/rustdoc-json/reexport/private_two_names.rs rename to tests/rustdoc-json/reexport/private_two_names.rs diff --git a/src/test/rustdoc-json/reexport/pub_use_doc_hidden.rs b/tests/rustdoc-json/reexport/pub_use_doc_hidden.rs similarity index 100% rename from src/test/rustdoc-json/reexport/pub_use_doc_hidden.rs rename to tests/rustdoc-json/reexport/pub_use_doc_hidden.rs diff --git a/src/test/rustdoc-json/reexport/reexport_method_from_private_module.rs b/tests/rustdoc-json/reexport/reexport_method_from_private_module.rs similarity index 100% rename from src/test/rustdoc-json/reexport/reexport_method_from_private_module.rs rename to tests/rustdoc-json/reexport/reexport_method_from_private_module.rs diff --git a/src/test/rustdoc-json/reexport/rename_private.rs b/tests/rustdoc-json/reexport/rename_private.rs similarity index 100% rename from src/test/rustdoc-json/reexport/rename_private.rs rename to tests/rustdoc-json/reexport/rename_private.rs diff --git a/src/test/rustdoc-json/reexport/rename_public.rs b/tests/rustdoc-json/reexport/rename_public.rs similarity index 100% rename from src/test/rustdoc-json/reexport/rename_public.rs rename to tests/rustdoc-json/reexport/rename_public.rs diff --git a/src/test/rustdoc-json/reexport/same_type_reexported_more_than_once.rs b/tests/rustdoc-json/reexport/same_type_reexported_more_than_once.rs similarity index 100% rename from src/test/rustdoc-json/reexport/same_type_reexported_more_than_once.rs rename to tests/rustdoc-json/reexport/same_type_reexported_more_than_once.rs diff --git a/src/test/rustdoc-json/reexport/simple_private.rs b/tests/rustdoc-json/reexport/simple_private.rs similarity index 100% rename from src/test/rustdoc-json/reexport/simple_private.rs rename to tests/rustdoc-json/reexport/simple_private.rs diff --git a/src/test/rustdoc-json/reexport/simple_public.rs b/tests/rustdoc-json/reexport/simple_public.rs similarity index 100% rename from src/test/rustdoc-json/reexport/simple_public.rs rename to tests/rustdoc-json/reexport/simple_public.rs diff --git a/src/test/rustdoc-json/reexport/synthesize_trait_with_docs.rs b/tests/rustdoc-json/reexport/synthesize_trait_with_docs.rs similarity index 100% rename from src/test/rustdoc-json/reexport/synthesize_trait_with_docs.rs rename to tests/rustdoc-json/reexport/synthesize_trait_with_docs.rs diff --git a/src/test/rustdoc-json/return_private.rs b/tests/rustdoc-json/return_private.rs similarity index 100% rename from src/test/rustdoc-json/return_private.rs rename to tests/rustdoc-json/return_private.rs diff --git a/src/test/rustdoc-json/stripped_modules.rs b/tests/rustdoc-json/stripped_modules.rs similarity index 100% rename from src/test/rustdoc-json/stripped_modules.rs rename to tests/rustdoc-json/stripped_modules.rs diff --git a/src/test/rustdoc-json/structs/plain_all_pub.rs b/tests/rustdoc-json/structs/plain_all_pub.rs similarity index 100% rename from src/test/rustdoc-json/structs/plain_all_pub.rs rename to tests/rustdoc-json/structs/plain_all_pub.rs diff --git a/src/test/rustdoc-json/structs/plain_doc_hidden.rs b/tests/rustdoc-json/structs/plain_doc_hidden.rs similarity index 100% rename from src/test/rustdoc-json/structs/plain_doc_hidden.rs rename to tests/rustdoc-json/structs/plain_doc_hidden.rs diff --git a/src/test/rustdoc-json/structs/plain_empty.rs b/tests/rustdoc-json/structs/plain_empty.rs similarity index 100% rename from src/test/rustdoc-json/structs/plain_empty.rs rename to tests/rustdoc-json/structs/plain_empty.rs diff --git a/src/test/rustdoc-json/structs/plain_pub_priv.rs b/tests/rustdoc-json/structs/plain_pub_priv.rs similarity index 100% rename from src/test/rustdoc-json/structs/plain_pub_priv.rs rename to tests/rustdoc-json/structs/plain_pub_priv.rs diff --git a/src/test/rustdoc-json/structs/tuple.rs b/tests/rustdoc-json/structs/tuple.rs similarity index 100% rename from src/test/rustdoc-json/structs/tuple.rs rename to tests/rustdoc-json/structs/tuple.rs diff --git a/src/test/rustdoc-json/structs/tuple_empty.rs b/tests/rustdoc-json/structs/tuple_empty.rs similarity index 100% rename from src/test/rustdoc-json/structs/tuple_empty.rs rename to tests/rustdoc-json/structs/tuple_empty.rs diff --git a/src/test/rustdoc-json/structs/tuple_pub_priv.rs b/tests/rustdoc-json/structs/tuple_pub_priv.rs similarity index 100% rename from src/test/rustdoc-json/structs/tuple_pub_priv.rs rename to tests/rustdoc-json/structs/tuple_pub_priv.rs diff --git a/src/test/rustdoc-json/structs/unit.rs b/tests/rustdoc-json/structs/unit.rs similarity index 100% rename from src/test/rustdoc-json/structs/unit.rs rename to tests/rustdoc-json/structs/unit.rs diff --git a/src/test/rustdoc-json/structs/with_generics.rs b/tests/rustdoc-json/structs/with_generics.rs similarity index 100% rename from src/test/rustdoc-json/structs/with_generics.rs rename to tests/rustdoc-json/structs/with_generics.rs diff --git a/src/test/rustdoc-json/structs/with_primitives.rs b/tests/rustdoc-json/structs/with_primitives.rs similarity index 100% rename from src/test/rustdoc-json/structs/with_primitives.rs rename to tests/rustdoc-json/structs/with_primitives.rs diff --git a/src/test/rustdoc-json/traits/has_body.rs b/tests/rustdoc-json/traits/has_body.rs similarity index 100% rename from src/test/rustdoc-json/traits/has_body.rs rename to tests/rustdoc-json/traits/has_body.rs diff --git a/src/test/rustdoc-json/traits/implementors.rs b/tests/rustdoc-json/traits/implementors.rs similarity index 100% rename from src/test/rustdoc-json/traits/implementors.rs rename to tests/rustdoc-json/traits/implementors.rs diff --git a/src/test/rustdoc-json/traits/supertrait.rs b/tests/rustdoc-json/traits/supertrait.rs similarity index 100% rename from src/test/rustdoc-json/traits/supertrait.rs rename to tests/rustdoc-json/traits/supertrait.rs diff --git a/src/test/rustdoc-json/traits/trait_alias.rs b/tests/rustdoc-json/traits/trait_alias.rs similarity index 100% rename from src/test/rustdoc-json/traits/trait_alias.rs rename to tests/rustdoc-json/traits/trait_alias.rs diff --git a/src/test/rustdoc-json/traits/uses_extern_trait.rs b/tests/rustdoc-json/traits/uses_extern_trait.rs similarity index 100% rename from src/test/rustdoc-json/traits/uses_extern_trait.rs rename to tests/rustdoc-json/traits/uses_extern_trait.rs diff --git a/src/test/rustdoc-json/type/dyn.rs b/tests/rustdoc-json/type/dyn.rs similarity index 100% rename from src/test/rustdoc-json/type/dyn.rs rename to tests/rustdoc-json/type/dyn.rs diff --git a/src/test/rustdoc-json/type/extern.rs b/tests/rustdoc-json/type/extern.rs similarity index 100% rename from src/test/rustdoc-json/type/extern.rs rename to tests/rustdoc-json/type/extern.rs diff --git a/src/test/rustdoc-json/type/fn_lifetime.rs b/tests/rustdoc-json/type/fn_lifetime.rs similarity index 100% rename from src/test/rustdoc-json/type/fn_lifetime.rs rename to tests/rustdoc-json/type/fn_lifetime.rs diff --git a/src/test/rustdoc-json/type/generic_default.rs b/tests/rustdoc-json/type/generic_default.rs similarity index 100% rename from src/test/rustdoc-json/type/generic_default.rs rename to tests/rustdoc-json/type/generic_default.rs diff --git a/src/test/rustdoc-json/type/hrtb.rs b/tests/rustdoc-json/type/hrtb.rs similarity index 100% rename from src/test/rustdoc-json/type/hrtb.rs rename to tests/rustdoc-json/type/hrtb.rs diff --git a/src/test/rustdoc-json/unions/impl.rs b/tests/rustdoc-json/unions/impl.rs similarity index 100% rename from src/test/rustdoc-json/unions/impl.rs rename to tests/rustdoc-json/unions/impl.rs diff --git a/src/test/rustdoc-json/unions/union.rs b/tests/rustdoc-json/unions/union.rs similarity index 100% rename from src/test/rustdoc-json/unions/union.rs rename to tests/rustdoc-json/unions/union.rs diff --git a/src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs b/tests/rustdoc-ui/ambiguous-inherent-assoc-ty.rs similarity index 100% rename from src/test/rustdoc-ui/ambiguous-inherent-assoc-ty.rs rename to tests/rustdoc-ui/ambiguous-inherent-assoc-ty.rs diff --git a/src/test/rustdoc-ui/assoc-item-not-in-scope.rs b/tests/rustdoc-ui/assoc-item-not-in-scope.rs similarity index 100% rename from src/test/rustdoc-ui/assoc-item-not-in-scope.rs rename to tests/rustdoc-ui/assoc-item-not-in-scope.rs diff --git a/src/test/rustdoc-ui/assoc-item-not-in-scope.stderr b/tests/rustdoc-ui/assoc-item-not-in-scope.stderr similarity index 100% rename from src/test/rustdoc-ui/assoc-item-not-in-scope.stderr rename to tests/rustdoc-ui/assoc-item-not-in-scope.stderr diff --git a/src/test/rustdoc-ui/auxiliary/empty-fn.rs b/tests/rustdoc-ui/auxiliary/empty-fn.rs similarity index 100% rename from src/test/rustdoc-ui/auxiliary/empty-fn.rs rename to tests/rustdoc-ui/auxiliary/empty-fn.rs diff --git a/src/test/rustdoc-ui/auxiliary/extern_macros.rs b/tests/rustdoc-ui/auxiliary/extern_macros.rs similarity index 100% rename from src/test/rustdoc-ui/auxiliary/extern_macros.rs rename to tests/rustdoc-ui/auxiliary/extern_macros.rs diff --git a/src/test/rustdoc-ui/auxiliary/issue-61592.rs b/tests/rustdoc-ui/auxiliary/issue-61592.rs similarity index 100% rename from src/test/rustdoc-ui/auxiliary/issue-61592.rs rename to tests/rustdoc-ui/auxiliary/issue-61592.rs diff --git a/src/test/rustdoc-ui/auxiliary/module_macro_doc.rs b/tests/rustdoc-ui/auxiliary/module_macro_doc.rs similarity index 100% rename from src/test/rustdoc-ui/auxiliary/module_macro_doc.rs rename to tests/rustdoc-ui/auxiliary/module_macro_doc.rs diff --git a/src/test/rustdoc-ui/auxiliary/overflow.rs b/tests/rustdoc-ui/auxiliary/overflow.rs similarity index 100% rename from src/test/rustdoc-ui/auxiliary/overflow.rs rename to tests/rustdoc-ui/auxiliary/overflow.rs diff --git a/src/test/rustdoc-ui/auxiliary/panic-item.rs b/tests/rustdoc-ui/auxiliary/panic-item.rs similarity index 100% rename from src/test/rustdoc-ui/auxiliary/panic-item.rs rename to tests/rustdoc-ui/auxiliary/panic-item.rs diff --git a/src/test/rustdoc-ui/bare-urls.fixed b/tests/rustdoc-ui/bare-urls.fixed similarity index 100% rename from src/test/rustdoc-ui/bare-urls.fixed rename to tests/rustdoc-ui/bare-urls.fixed diff --git a/src/test/rustdoc-ui/bare-urls.rs b/tests/rustdoc-ui/bare-urls.rs similarity index 100% rename from src/test/rustdoc-ui/bare-urls.rs rename to tests/rustdoc-ui/bare-urls.rs diff --git a/src/test/rustdoc-ui/bare-urls.stderr b/tests/rustdoc-ui/bare-urls.stderr similarity index 100% rename from src/test/rustdoc-ui/bare-urls.stderr rename to tests/rustdoc-ui/bare-urls.stderr diff --git a/src/test/rustdoc-ui/block-doc-comment.rs b/tests/rustdoc-ui/block-doc-comment.rs similarity index 100% rename from src/test/rustdoc-ui/block-doc-comment.rs rename to tests/rustdoc-ui/block-doc-comment.rs diff --git a/src/test/rustdoc-ui/block-doc-comment.stdout b/tests/rustdoc-ui/block-doc-comment.stdout similarity index 100% rename from src/test/rustdoc-ui/block-doc-comment.stdout rename to tests/rustdoc-ui/block-doc-comment.stdout diff --git a/src/test/rustdoc-ui/bounded-hr-lifetime.rs b/tests/rustdoc-ui/bounded-hr-lifetime.rs similarity index 100% rename from src/test/rustdoc-ui/bounded-hr-lifetime.rs rename to tests/rustdoc-ui/bounded-hr-lifetime.rs diff --git a/src/test/rustdoc-ui/bounded-hr-lifetime.stderr b/tests/rustdoc-ui/bounded-hr-lifetime.stderr similarity index 100% rename from src/test/rustdoc-ui/bounded-hr-lifetime.stderr rename to tests/rustdoc-ui/bounded-hr-lifetime.stderr diff --git a/src/test/rustdoc-ui/c-help.rs b/tests/rustdoc-ui/c-help.rs similarity index 100% rename from src/test/rustdoc-ui/c-help.rs rename to tests/rustdoc-ui/c-help.rs diff --git a/src/test/rustdoc-ui/c-help.stdout b/tests/rustdoc-ui/c-help.stdout similarity index 100% rename from src/test/rustdoc-ui/c-help.stdout rename to tests/rustdoc-ui/c-help.stdout diff --git a/src/test/rustdoc-ui/cfg-test.rs b/tests/rustdoc-ui/cfg-test.rs similarity index 91% rename from src/test/rustdoc-ui/cfg-test.rs rename to tests/rustdoc-ui/cfg-test.rs index d4ca925858714..d40b928373555 100644 --- a/src/test/rustdoc-ui/cfg-test.rs +++ b/tests/rustdoc-ui/cfg-test.rs @@ -1,6 +1,6 @@ // check-pass // compile-flags:--test --test-args --test-threads=1 -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // Crates like core have doctests gated on `cfg(not(test))` so we need to make diff --git a/src/test/rustdoc-ui/cfg-test.stdout b/tests/rustdoc-ui/cfg-test.stdout similarity index 100% rename from src/test/rustdoc-ui/cfg-test.stdout rename to tests/rustdoc-ui/cfg-test.stdout diff --git a/src/test/rustdoc-ui/check-attr-test.rs b/tests/rustdoc-ui/check-attr-test.rs similarity index 100% rename from src/test/rustdoc-ui/check-attr-test.rs rename to tests/rustdoc-ui/check-attr-test.rs diff --git a/src/test/rustdoc-ui/check-attr-test.stderr b/tests/rustdoc-ui/check-attr-test.stderr similarity index 100% rename from src/test/rustdoc-ui/check-attr-test.stderr rename to tests/rustdoc-ui/check-attr-test.stderr diff --git a/src/test/rustdoc-ui/check-attr.rs b/tests/rustdoc-ui/check-attr.rs similarity index 100% rename from src/test/rustdoc-ui/check-attr.rs rename to tests/rustdoc-ui/check-attr.rs diff --git a/src/test/rustdoc-ui/check-attr.stderr b/tests/rustdoc-ui/check-attr.stderr similarity index 100% rename from src/test/rustdoc-ui/check-attr.stderr rename to tests/rustdoc-ui/check-attr.stderr diff --git a/src/test/rustdoc-ui/check-cfg-test.rs b/tests/rustdoc-ui/check-cfg-test.rs similarity index 74% rename from src/test/rustdoc-ui/check-cfg-test.rs rename to tests/rustdoc-ui/check-cfg-test.rs index 626cc838704b3..920432276cba0 100644 --- a/src/test/rustdoc-ui/check-cfg-test.rs +++ b/tests/rustdoc-ui/check-cfg-test.rs @@ -1,7 +1,7 @@ // check-pass // compile-flags: --test --nocapture --check-cfg=values(feature,"test") -Z unstable-options -// normalize-stderr-test: "src/test/rustdoc-ui" -> "$$DIR" -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stderr-test: "tests/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// The doctest will produce a warning because feature invalid is unexpected diff --git a/src/test/rustdoc-ui/check-cfg-test.stderr b/tests/rustdoc-ui/check-cfg-test.stderr similarity index 100% rename from src/test/rustdoc-ui/check-cfg-test.stderr rename to tests/rustdoc-ui/check-cfg-test.stderr diff --git a/src/test/rustdoc-ui/check-cfg-test.stdout b/tests/rustdoc-ui/check-cfg-test.stdout similarity index 100% rename from src/test/rustdoc-ui/check-cfg-test.stdout rename to tests/rustdoc-ui/check-cfg-test.stdout diff --git a/src/test/rustdoc-ui/check-cfg-unstable.rs b/tests/rustdoc-ui/check-cfg-unstable.rs similarity index 100% rename from src/test/rustdoc-ui/check-cfg-unstable.rs rename to tests/rustdoc-ui/check-cfg-unstable.rs diff --git a/src/test/rustdoc-ui/check-cfg-unstable.stderr b/tests/rustdoc-ui/check-cfg-unstable.stderr similarity index 100% rename from src/test/rustdoc-ui/check-cfg-unstable.stderr rename to tests/rustdoc-ui/check-cfg-unstable.stderr diff --git a/src/test/rustdoc-ui/check-cfg.rs b/tests/rustdoc-ui/check-cfg.rs similarity index 100% rename from src/test/rustdoc-ui/check-cfg.rs rename to tests/rustdoc-ui/check-cfg.rs diff --git a/src/test/rustdoc-ui/check-cfg.stderr b/tests/rustdoc-ui/check-cfg.stderr similarity index 100% rename from src/test/rustdoc-ui/check-cfg.stderr rename to tests/rustdoc-ui/check-cfg.stderr diff --git a/src/test/rustdoc-ui/check-doc-alias-attr-location.rs b/tests/rustdoc-ui/check-doc-alias-attr-location.rs similarity index 100% rename from src/test/rustdoc-ui/check-doc-alias-attr-location.rs rename to tests/rustdoc-ui/check-doc-alias-attr-location.rs diff --git a/src/test/rustdoc-ui/check-doc-alias-attr-location.stderr b/tests/rustdoc-ui/check-doc-alias-attr-location.stderr similarity index 100% rename from src/test/rustdoc-ui/check-doc-alias-attr-location.stderr rename to tests/rustdoc-ui/check-doc-alias-attr-location.stderr diff --git a/src/test/rustdoc-ui/check-doc-alias-attr.rs b/tests/rustdoc-ui/check-doc-alias-attr.rs similarity index 100% rename from src/test/rustdoc-ui/check-doc-alias-attr.rs rename to tests/rustdoc-ui/check-doc-alias-attr.rs diff --git a/src/test/rustdoc-ui/check-doc-alias-attr.stderr b/tests/rustdoc-ui/check-doc-alias-attr.stderr similarity index 100% rename from src/test/rustdoc-ui/check-doc-alias-attr.stderr rename to tests/rustdoc-ui/check-doc-alias-attr.stderr diff --git a/src/test/rustdoc-ui/check-fail.rs b/tests/rustdoc-ui/check-fail.rs similarity index 100% rename from src/test/rustdoc-ui/check-fail.rs rename to tests/rustdoc-ui/check-fail.rs diff --git a/src/test/rustdoc-ui/check-fail.stderr b/tests/rustdoc-ui/check-fail.stderr similarity index 100% rename from src/test/rustdoc-ui/check-fail.stderr rename to tests/rustdoc-ui/check-fail.stderr diff --git a/src/test/rustdoc-ui/check.rs b/tests/rustdoc-ui/check.rs similarity index 100% rename from src/test/rustdoc-ui/check.rs rename to tests/rustdoc-ui/check.rs diff --git a/src/test/rustdoc-ui/check.stderr b/tests/rustdoc-ui/check.stderr similarity index 100% rename from src/test/rustdoc-ui/check.stderr rename to tests/rustdoc-ui/check.stderr diff --git a/src/test/rustdoc-ui/commandline-argfile-badutf8.args b/tests/rustdoc-ui/commandline-argfile-badutf8.args similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile-badutf8.args rename to tests/rustdoc-ui/commandline-argfile-badutf8.args diff --git a/src/test/rustdoc-ui/commandline-argfile-badutf8.rs b/tests/rustdoc-ui/commandline-argfile-badutf8.rs similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile-badutf8.rs rename to tests/rustdoc-ui/commandline-argfile-badutf8.rs diff --git a/src/test/rustdoc-ui/commandline-argfile-badutf8.stderr b/tests/rustdoc-ui/commandline-argfile-badutf8.stderr similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile-badutf8.stderr rename to tests/rustdoc-ui/commandline-argfile-badutf8.stderr diff --git a/src/test/rustdoc-ui/commandline-argfile-missing.rs b/tests/rustdoc-ui/commandline-argfile-missing.rs similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile-missing.rs rename to tests/rustdoc-ui/commandline-argfile-missing.rs diff --git a/src/test/rustdoc-ui/commandline-argfile-missing.stderr b/tests/rustdoc-ui/commandline-argfile-missing.stderr similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile-missing.stderr rename to tests/rustdoc-ui/commandline-argfile-missing.stderr diff --git a/src/test/rustdoc-ui/commandline-argfile.args b/tests/rustdoc-ui/commandline-argfile.args similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile.args rename to tests/rustdoc-ui/commandline-argfile.args diff --git a/src/test/rustdoc-ui/commandline-argfile.rs b/tests/rustdoc-ui/commandline-argfile.rs similarity index 100% rename from src/test/rustdoc-ui/commandline-argfile.rs rename to tests/rustdoc-ui/commandline-argfile.rs diff --git a/src/test/rustdoc-ui/const-evalutation-ice.rs b/tests/rustdoc-ui/const-evalutation-ice.rs similarity index 100% rename from src/test/rustdoc-ui/const-evalutation-ice.rs rename to tests/rustdoc-ui/const-evalutation-ice.rs diff --git a/src/test/rustdoc-ui/const-evalutation-ice.stderr b/tests/rustdoc-ui/const-evalutation-ice.stderr similarity index 100% rename from src/test/rustdoc-ui/const-evalutation-ice.stderr rename to tests/rustdoc-ui/const-evalutation-ice.stderr diff --git a/src/test/rustdoc-ui/coverage/allow_missing_docs.rs b/tests/rustdoc-ui/coverage/allow_missing_docs.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/allow_missing_docs.rs rename to tests/rustdoc-ui/coverage/allow_missing_docs.rs diff --git a/src/test/rustdoc-ui/coverage/allow_missing_docs.stderr b/tests/rustdoc-ui/coverage/allow_missing_docs.stderr similarity index 100% rename from src/test/rustdoc-ui/coverage/allow_missing_docs.stderr rename to tests/rustdoc-ui/coverage/allow_missing_docs.stderr diff --git a/src/test/rustdoc-ui/coverage/allow_missing_docs.stdout b/tests/rustdoc-ui/coverage/allow_missing_docs.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/allow_missing_docs.stdout rename to tests/rustdoc-ui/coverage/allow_missing_docs.stdout diff --git a/src/test/rustdoc-ui/coverage/basic.rs b/tests/rustdoc-ui/coverage/basic.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/basic.rs rename to tests/rustdoc-ui/coverage/basic.rs diff --git a/src/test/rustdoc-ui/coverage/basic.stdout b/tests/rustdoc-ui/coverage/basic.stdout similarity index 90% rename from src/test/rustdoc-ui/coverage/basic.stdout rename to tests/rustdoc-ui/coverage/basic.stdout index 3c602b3da4c7c..545662f0f3d1d 100644 --- a/src/test/rustdoc-ui/coverage/basic.stdout +++ b/tests/rustdoc-ui/coverage/basic.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...est/rustdoc-ui/coverage/basic.rs | 7 | 50.0% | 0 | 0.0% | +| ...sts/rustdoc-ui/coverage/basic.rs | 7 | 50.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ | Total | 7 | 50.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ diff --git a/src/test/rustdoc-ui/coverage/doc-examples-json.rs b/tests/rustdoc-ui/coverage/doc-examples-json.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/doc-examples-json.rs rename to tests/rustdoc-ui/coverage/doc-examples-json.rs diff --git a/src/test/rustdoc-ui/coverage/doc-examples-json.stdout b/tests/rustdoc-ui/coverage/doc-examples-json.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/doc-examples-json.stdout rename to tests/rustdoc-ui/coverage/doc-examples-json.stdout diff --git a/src/test/rustdoc-ui/coverage/doc-examples.rs b/tests/rustdoc-ui/coverage/doc-examples.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/doc-examples.rs rename to tests/rustdoc-ui/coverage/doc-examples.rs diff --git a/src/test/rustdoc-ui/coverage/doc-examples.stdout b/tests/rustdoc-ui/coverage/doc-examples.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/doc-examples.stdout rename to tests/rustdoc-ui/coverage/doc-examples.stdout diff --git a/src/test/rustdoc-ui/coverage/empty.rs b/tests/rustdoc-ui/coverage/empty.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/empty.rs rename to tests/rustdoc-ui/coverage/empty.rs diff --git a/src/test/rustdoc-ui/coverage/empty.stdout b/tests/rustdoc-ui/coverage/empty.stdout similarity index 90% rename from src/test/rustdoc-ui/coverage/empty.stdout rename to tests/rustdoc-ui/coverage/empty.stdout index 890a7d56e162d..d486825287b1c 100644 --- a/src/test/rustdoc-ui/coverage/empty.stdout +++ b/tests/rustdoc-ui/coverage/empty.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...est/rustdoc-ui/coverage/empty.rs | 0 | 0.0% | 0 | 0.0% | +| ...sts/rustdoc-ui/coverage/empty.rs | 0 | 0.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ | Total | 0 | 0.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ diff --git a/src/test/rustdoc-ui/coverage/enum-tuple-documented.rs b/tests/rustdoc-ui/coverage/enum-tuple-documented.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/enum-tuple-documented.rs rename to tests/rustdoc-ui/coverage/enum-tuple-documented.rs diff --git a/src/test/rustdoc-ui/coverage/enum-tuple-documented.stdout b/tests/rustdoc-ui/coverage/enum-tuple-documented.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/enum-tuple-documented.stdout rename to tests/rustdoc-ui/coverage/enum-tuple-documented.stdout diff --git a/src/test/rustdoc-ui/coverage/enum-tuple.rs b/tests/rustdoc-ui/coverage/enum-tuple.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/enum-tuple.rs rename to tests/rustdoc-ui/coverage/enum-tuple.rs diff --git a/src/test/rustdoc-ui/coverage/enum-tuple.stdout b/tests/rustdoc-ui/coverage/enum-tuple.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/enum-tuple.stdout rename to tests/rustdoc-ui/coverage/enum-tuple.stdout diff --git a/src/test/rustdoc-ui/coverage/enums.rs b/tests/rustdoc-ui/coverage/enums.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/enums.rs rename to tests/rustdoc-ui/coverage/enums.rs diff --git a/src/test/rustdoc-ui/coverage/enums.stdout b/tests/rustdoc-ui/coverage/enums.stdout similarity index 90% rename from src/test/rustdoc-ui/coverage/enums.stdout rename to tests/rustdoc-ui/coverage/enums.stdout index 64c012c1f66e3..bb224aac8c0b7 100644 --- a/src/test/rustdoc-ui/coverage/enums.stdout +++ b/tests/rustdoc-ui/coverage/enums.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...est/rustdoc-ui/coverage/enums.rs | 6 | 75.0% | 0 | 0.0% | +| ...sts/rustdoc-ui/coverage/enums.rs | 6 | 75.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ | Total | 6 | 75.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ diff --git a/src/test/rustdoc-ui/coverage/exotic.rs b/tests/rustdoc-ui/coverage/exotic.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/exotic.rs rename to tests/rustdoc-ui/coverage/exotic.rs diff --git a/src/test/rustdoc-ui/coverage/exotic.stdout b/tests/rustdoc-ui/coverage/exotic.stdout similarity index 90% rename from src/test/rustdoc-ui/coverage/exotic.stdout rename to tests/rustdoc-ui/coverage/exotic.stdout index 27798b813101e..bd894898cc45c 100644 --- a/src/test/rustdoc-ui/coverage/exotic.stdout +++ b/tests/rustdoc-ui/coverage/exotic.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...st/rustdoc-ui/coverage/exotic.rs | 3 | 100.0% | 0 | 0.0% | +| ...ts/rustdoc-ui/coverage/exotic.rs | 3 | 100.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ | Total | 3 | 100.0% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ diff --git a/src/test/rustdoc-ui/coverage/html.rs b/tests/rustdoc-ui/coverage/html.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/html.rs rename to tests/rustdoc-ui/coverage/html.rs diff --git a/src/test/rustdoc-ui/coverage/html.stderr b/tests/rustdoc-ui/coverage/html.stderr similarity index 100% rename from src/test/rustdoc-ui/coverage/html.stderr rename to tests/rustdoc-ui/coverage/html.stderr diff --git a/src/test/rustdoc-ui/coverage/json.rs b/tests/rustdoc-ui/coverage/json.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/json.rs rename to tests/rustdoc-ui/coverage/json.rs diff --git a/src/test/rustdoc-ui/coverage/json.stdout b/tests/rustdoc-ui/coverage/json.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/json.stdout rename to tests/rustdoc-ui/coverage/json.stdout diff --git a/src/test/rustdoc-ui/coverage/private.rs b/tests/rustdoc-ui/coverage/private.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/private.rs rename to tests/rustdoc-ui/coverage/private.rs diff --git a/src/test/rustdoc-ui/coverage/private.stdout b/tests/rustdoc-ui/coverage/private.stdout similarity index 90% rename from src/test/rustdoc-ui/coverage/private.stdout rename to tests/rustdoc-ui/coverage/private.stdout index 37a0f5187b512..b9981c7c50aac 100644 --- a/src/test/rustdoc-ui/coverage/private.stdout +++ b/tests/rustdoc-ui/coverage/private.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...t/rustdoc-ui/coverage/private.rs | 4 | 57.1% | 0 | 0.0% | +| ...s/rustdoc-ui/coverage/private.rs | 4 | 57.1% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ | Total | 4 | 57.1% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ diff --git a/src/test/rustdoc-ui/coverage/statics-consts.rs b/tests/rustdoc-ui/coverage/statics-consts.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/statics-consts.rs rename to tests/rustdoc-ui/coverage/statics-consts.rs diff --git a/src/test/rustdoc-ui/coverage/statics-consts.stdout b/tests/rustdoc-ui/coverage/statics-consts.stdout similarity index 100% rename from src/test/rustdoc-ui/coverage/statics-consts.stdout rename to tests/rustdoc-ui/coverage/statics-consts.stdout diff --git a/src/test/rustdoc-ui/coverage/traits.rs b/tests/rustdoc-ui/coverage/traits.rs similarity index 100% rename from src/test/rustdoc-ui/coverage/traits.rs rename to tests/rustdoc-ui/coverage/traits.rs diff --git a/src/test/rustdoc-ui/coverage/traits.stdout b/tests/rustdoc-ui/coverage/traits.stdout similarity index 90% rename from src/test/rustdoc-ui/coverage/traits.stdout rename to tests/rustdoc-ui/coverage/traits.stdout index 5053d02090c44..0c7857cf29cef 100644 --- a/src/test/rustdoc-ui/coverage/traits.stdout +++ b/tests/rustdoc-ui/coverage/traits.stdout @@ -1,7 +1,7 @@ +-------------------------------------+------------+------------+------------+------------+ | File | Documented | Percentage | Examples | Percentage | +-------------------------------------+------------+------------+------------+------------+ -| ...st/rustdoc-ui/coverage/traits.rs | 8 | 88.9% | 0 | 0.0% | +| ...ts/rustdoc-ui/coverage/traits.rs | 8 | 88.9% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ | Total | 8 | 88.9% | 0 | 0.0% | +-------------------------------------+------------+------------+------------+------------+ diff --git a/src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs b/tests/rustdoc-ui/deny-intra-link-resolution-failure.rs similarity index 100% rename from src/test/rustdoc-ui/deny-intra-link-resolution-failure.rs rename to tests/rustdoc-ui/deny-intra-link-resolution-failure.rs diff --git a/src/test/rustdoc-ui/deny-intra-link-resolution-failure.stderr b/tests/rustdoc-ui/deny-intra-link-resolution-failure.stderr similarity index 100% rename from src/test/rustdoc-ui/deny-intra-link-resolution-failure.stderr rename to tests/rustdoc-ui/deny-intra-link-resolution-failure.stderr diff --git a/src/test/rustdoc-ui/deny-missing-docs-crate.rs b/tests/rustdoc-ui/deny-missing-docs-crate.rs similarity index 100% rename from src/test/rustdoc-ui/deny-missing-docs-crate.rs rename to tests/rustdoc-ui/deny-missing-docs-crate.rs diff --git a/src/test/rustdoc-ui/deny-missing-docs-crate.stderr b/tests/rustdoc-ui/deny-missing-docs-crate.stderr similarity index 100% rename from src/test/rustdoc-ui/deny-missing-docs-crate.stderr rename to tests/rustdoc-ui/deny-missing-docs-crate.stderr diff --git a/src/test/rustdoc-ui/deny-missing-docs-macro.rs b/tests/rustdoc-ui/deny-missing-docs-macro.rs similarity index 100% rename from src/test/rustdoc-ui/deny-missing-docs-macro.rs rename to tests/rustdoc-ui/deny-missing-docs-macro.rs diff --git a/src/test/rustdoc-ui/deny-missing-docs-macro.stderr b/tests/rustdoc-ui/deny-missing-docs-macro.stderr similarity index 100% rename from src/test/rustdoc-ui/deny-missing-docs-macro.stderr rename to tests/rustdoc-ui/deny-missing-docs-macro.stderr diff --git a/src/test/rustdoc-ui/deprecated-attrs.rs b/tests/rustdoc-ui/deprecated-attrs.rs similarity index 100% rename from src/test/rustdoc-ui/deprecated-attrs.rs rename to tests/rustdoc-ui/deprecated-attrs.rs diff --git a/src/test/rustdoc-ui/deprecated-attrs.stderr b/tests/rustdoc-ui/deprecated-attrs.stderr similarity index 100% rename from src/test/rustdoc-ui/deprecated-attrs.stderr rename to tests/rustdoc-ui/deprecated-attrs.stderr diff --git a/src/test/rustdoc-ui/deref-generic.rs b/tests/rustdoc-ui/deref-generic.rs similarity index 100% rename from src/test/rustdoc-ui/deref-generic.rs rename to tests/rustdoc-ui/deref-generic.rs diff --git a/src/test/rustdoc-ui/diagnostic-width.rs b/tests/rustdoc-ui/diagnostic-width.rs similarity index 100% rename from src/test/rustdoc-ui/diagnostic-width.rs rename to tests/rustdoc-ui/diagnostic-width.rs diff --git a/src/test/rustdoc-ui/diagnostic-width.stderr b/tests/rustdoc-ui/diagnostic-width.stderr similarity index 100% rename from src/test/rustdoc-ui/diagnostic-width.stderr rename to tests/rustdoc-ui/diagnostic-width.stderr diff --git a/src/test/rustdoc-ui/display-output.rs b/tests/rustdoc-ui/display-output.rs similarity index 85% rename from src/test/rustdoc-ui/display-output.rs rename to tests/rustdoc-ui/display-output.rs index ec27a9f6ba31c..23bc54e3cde1a 100644 --- a/src/test/rustdoc-ui/display-output.rs +++ b/tests/rustdoc-ui/display-output.rs @@ -3,7 +3,7 @@ // check-pass // edition:2018 // compile-flags:--test --test-args=--show-output -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// ``` diff --git a/src/test/rustdoc-ui/display-output.stdout b/tests/rustdoc-ui/display-output.stdout similarity index 100% rename from src/test/rustdoc-ui/display-output.stdout rename to tests/rustdoc-ui/display-output.stdout diff --git a/src/test/rustdoc-ui/doc-alias-assoc-const.rs b/tests/rustdoc-ui/doc-alias-assoc-const.rs similarity index 100% rename from src/test/rustdoc-ui/doc-alias-assoc-const.rs rename to tests/rustdoc-ui/doc-alias-assoc-const.rs diff --git a/src/test/rustdoc-ui/doc-alias-assoc-const.stderr b/tests/rustdoc-ui/doc-alias-assoc-const.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-alias-assoc-const.stderr rename to tests/rustdoc-ui/doc-alias-assoc-const.stderr diff --git a/src/test/rustdoc-ui/doc-alias-crate-level.rs b/tests/rustdoc-ui/doc-alias-crate-level.rs similarity index 100% rename from src/test/rustdoc-ui/doc-alias-crate-level.rs rename to tests/rustdoc-ui/doc-alias-crate-level.rs diff --git a/src/test/rustdoc-ui/doc-alias-crate-level.stderr b/tests/rustdoc-ui/doc-alias-crate-level.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-alias-crate-level.stderr rename to tests/rustdoc-ui/doc-alias-crate-level.stderr diff --git a/src/test/rustdoc-ui/doc-alias-same-name.rs b/tests/rustdoc-ui/doc-alias-same-name.rs similarity index 100% rename from src/test/rustdoc-ui/doc-alias-same-name.rs rename to tests/rustdoc-ui/doc-alias-same-name.rs diff --git a/src/test/rustdoc-ui/doc-alias-same-name.stderr b/tests/rustdoc-ui/doc-alias-same-name.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-alias-same-name.stderr rename to tests/rustdoc-ui/doc-alias-same-name.stderr diff --git a/src/test/rustdoc-ui/doc-attr.rs b/tests/rustdoc-ui/doc-attr.rs similarity index 100% rename from src/test/rustdoc-ui/doc-attr.rs rename to tests/rustdoc-ui/doc-attr.rs diff --git a/src/test/rustdoc-ui/doc-attr.stderr b/tests/rustdoc-ui/doc-attr.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-attr.stderr rename to tests/rustdoc-ui/doc-attr.stderr diff --git a/src/test/rustdoc-ui/doc-cfg.rs b/tests/rustdoc-ui/doc-cfg.rs similarity index 100% rename from src/test/rustdoc-ui/doc-cfg.rs rename to tests/rustdoc-ui/doc-cfg.rs diff --git a/src/test/rustdoc-ui/doc-cfg.stderr b/tests/rustdoc-ui/doc-cfg.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-cfg.stderr rename to tests/rustdoc-ui/doc-cfg.stderr diff --git a/src/test/rustdoc-ui/doc-comment-multi-line-attr.rs b/tests/rustdoc-ui/doc-comment-multi-line-attr.rs similarity index 81% rename from src/test/rustdoc-ui/doc-comment-multi-line-attr.rs rename to tests/rustdoc-ui/doc-comment-multi-line-attr.rs index 97259f782bdde..db674e229fc0d 100644 --- a/src/test/rustdoc-ui/doc-comment-multi-line-attr.rs +++ b/tests/rustdoc-ui/doc-comment-multi-line-attr.rs @@ -1,6 +1,6 @@ // Regression test for #97440: Multiline inner attribute triggers ICE during doctest // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // check-pass diff --git a/src/test/rustdoc-ui/doc-comment-multi-line-attr.stdout b/tests/rustdoc-ui/doc-comment-multi-line-attr.stdout similarity index 100% rename from src/test/rustdoc-ui/doc-comment-multi-line-attr.stdout rename to tests/rustdoc-ui/doc-comment-multi-line-attr.stdout diff --git a/src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs b/tests/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs similarity index 80% rename from src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs rename to tests/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs index b2a8133c90e12..6ce3cb9fc0707 100644 --- a/src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs +++ b/tests/rustdoc-ui/doc-comment-multi-line-cfg-attr.rs @@ -1,5 +1,5 @@ // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // check-pass diff --git a/src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.stdout b/tests/rustdoc-ui/doc-comment-multi-line-cfg-attr.stdout similarity index 100% rename from src/test/rustdoc-ui/doc-comment-multi-line-cfg-attr.stdout rename to tests/rustdoc-ui/doc-comment-multi-line-cfg-attr.stdout diff --git a/src/test/rustdoc-ui/doc-include-suggestion.rs b/tests/rustdoc-ui/doc-include-suggestion.rs similarity index 100% rename from src/test/rustdoc-ui/doc-include-suggestion.rs rename to tests/rustdoc-ui/doc-include-suggestion.rs diff --git a/src/test/rustdoc-ui/doc-include-suggestion.stderr b/tests/rustdoc-ui/doc-include-suggestion.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-include-suggestion.stderr rename to tests/rustdoc-ui/doc-include-suggestion.stderr diff --git a/src/test/rustdoc-ui/doc-spotlight.fixed b/tests/rustdoc-ui/doc-spotlight.fixed similarity index 100% rename from src/test/rustdoc-ui/doc-spotlight.fixed rename to tests/rustdoc-ui/doc-spotlight.fixed diff --git a/src/test/rustdoc-ui/doc-spotlight.rs b/tests/rustdoc-ui/doc-spotlight.rs similarity index 100% rename from src/test/rustdoc-ui/doc-spotlight.rs rename to tests/rustdoc-ui/doc-spotlight.rs diff --git a/src/test/rustdoc-ui/doc-spotlight.stderr b/tests/rustdoc-ui/doc-spotlight.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-spotlight.stderr rename to tests/rustdoc-ui/doc-spotlight.stderr diff --git a/src/test/rustdoc-ui/doc-test-attr-pass.rs b/tests/rustdoc-ui/doc-test-attr-pass.rs similarity index 100% rename from src/test/rustdoc-ui/doc-test-attr-pass.rs rename to tests/rustdoc-ui/doc-test-attr-pass.rs diff --git a/src/test/rustdoc-ui/doc-test-attr.rs b/tests/rustdoc-ui/doc-test-attr.rs similarity index 100% rename from src/test/rustdoc-ui/doc-test-attr.rs rename to tests/rustdoc-ui/doc-test-attr.rs diff --git a/src/test/rustdoc-ui/doc-test-attr.stderr b/tests/rustdoc-ui/doc-test-attr.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-test-attr.stderr rename to tests/rustdoc-ui/doc-test-attr.stderr diff --git a/src/test/rustdoc-ui/doc-test-doctest-feature.rs b/tests/rustdoc-ui/doc-test-doctest-feature.rs similarity index 82% rename from src/test/rustdoc-ui/doc-test-doctest-feature.rs rename to tests/rustdoc-ui/doc-test-doctest-feature.rs index 0b79aaece8a03..88cf44e643be0 100644 --- a/src/test/rustdoc-ui/doc-test-doctest-feature.rs +++ b/tests/rustdoc-ui/doc-test-doctest-feature.rs @@ -1,6 +1,6 @@ // check-pass // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // Make sure `cfg(doctest)` is set when finding doctests but not inside diff --git a/src/test/rustdoc-ui/doc-test-doctest-feature.stdout b/tests/rustdoc-ui/doc-test-doctest-feature.stdout similarity index 100% rename from src/test/rustdoc-ui/doc-test-doctest-feature.stdout rename to tests/rustdoc-ui/doc-test-doctest-feature.stdout diff --git a/src/test/rustdoc-ui/doc-test-rustdoc-feature.rs b/tests/rustdoc-ui/doc-test-rustdoc-feature.rs similarity index 84% rename from src/test/rustdoc-ui/doc-test-rustdoc-feature.rs rename to tests/rustdoc-ui/doc-test-rustdoc-feature.rs index bf334c67ecab7..dc72a4857645e 100644 --- a/src/test/rustdoc-ui/doc-test-rustdoc-feature.rs +++ b/tests/rustdoc-ui/doc-test-rustdoc-feature.rs @@ -1,6 +1,6 @@ // check-pass // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" #![feature(doc_cfg)] diff --git a/src/test/rustdoc-ui/doc-test-rustdoc-feature.stdout b/tests/rustdoc-ui/doc-test-rustdoc-feature.stdout similarity index 100% rename from src/test/rustdoc-ui/doc-test-rustdoc-feature.stdout rename to tests/rustdoc-ui/doc-test-rustdoc-feature.stdout diff --git a/src/test/rustdoc-ui/doc-without-codeblock.rs b/tests/rustdoc-ui/doc-without-codeblock.rs similarity index 100% rename from src/test/rustdoc-ui/doc-without-codeblock.rs rename to tests/rustdoc-ui/doc-without-codeblock.rs diff --git a/src/test/rustdoc-ui/doc-without-codeblock.stderr b/tests/rustdoc-ui/doc-without-codeblock.stderr similarity index 100% rename from src/test/rustdoc-ui/doc-without-codeblock.stderr rename to tests/rustdoc-ui/doc-without-codeblock.stderr diff --git a/src/test/rustdoc-ui/doc_cfg_hide.rs b/tests/rustdoc-ui/doc_cfg_hide.rs similarity index 100% rename from src/test/rustdoc-ui/doc_cfg_hide.rs rename to tests/rustdoc-ui/doc_cfg_hide.rs diff --git a/src/test/rustdoc-ui/doc_cfg_hide.stderr b/tests/rustdoc-ui/doc_cfg_hide.stderr similarity index 100% rename from src/test/rustdoc-ui/doc_cfg_hide.stderr rename to tests/rustdoc-ui/doc_cfg_hide.stderr diff --git a/src/test/rustdoc-ui/doctest-edition.rs b/tests/rustdoc-ui/doctest-edition.rs similarity index 100% rename from src/test/rustdoc-ui/doctest-edition.rs rename to tests/rustdoc-ui/doctest-edition.rs diff --git a/src/test/rustdoc-ui/doctest-edition.stderr b/tests/rustdoc-ui/doctest-edition.stderr similarity index 100% rename from src/test/rustdoc-ui/doctest-edition.stderr rename to tests/rustdoc-ui/doctest-edition.stderr diff --git a/src/test/rustdoc-ui/doctest-multiline-crate-attribute.rs b/tests/rustdoc-ui/doctest-multiline-crate-attribute.rs similarity index 82% rename from src/test/rustdoc-ui/doctest-multiline-crate-attribute.rs rename to tests/rustdoc-ui/doctest-multiline-crate-attribute.rs index a30472ac56b24..260f5a7a64f50 100644 --- a/src/test/rustdoc-ui/doctest-multiline-crate-attribute.rs +++ b/tests/rustdoc-ui/doctest-multiline-crate-attribute.rs @@ -1,5 +1,5 @@ // compile-flags:--test --test-args=--test-threads=1 -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // check-pass diff --git a/src/test/rustdoc-ui/doctest-multiline-crate-attribute.stdout b/tests/rustdoc-ui/doctest-multiline-crate-attribute.stdout similarity index 100% rename from src/test/rustdoc-ui/doctest-multiline-crate-attribute.stdout rename to tests/rustdoc-ui/doctest-multiline-crate-attribute.stdout diff --git a/src/test/rustdoc-ui/doctest-output.rs b/tests/rustdoc-ui/doctest-output.rs similarity index 88% rename from src/test/rustdoc-ui/doctest-output.rs rename to tests/rustdoc-ui/doctest-output.rs index 2670fa572010d..303f768969817 100644 --- a/src/test/rustdoc-ui/doctest-output.rs +++ b/tests/rustdoc-ui/doctest-output.rs @@ -1,7 +1,7 @@ // edition:2018 // aux-build:extern_macros.rs // compile-flags:--test --test-args=--test-threads=1 -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // check-pass diff --git a/src/test/rustdoc-ui/doctest-output.stdout b/tests/rustdoc-ui/doctest-output.stdout similarity index 100% rename from src/test/rustdoc-ui/doctest-output.stdout rename to tests/rustdoc-ui/doctest-output.stdout diff --git a/src/test/rustdoc-ui/error-in-impl-trait/README.md b/tests/rustdoc-ui/error-in-impl-trait/README.md similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/README.md rename to tests/rustdoc-ui/error-in-impl-trait/README.md diff --git a/src/test/rustdoc-ui/error-in-impl-trait/async.rs b/tests/rustdoc-ui/error-in-impl-trait/async.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/async.rs rename to tests/rustdoc-ui/error-in-impl-trait/async.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/closure.rs b/tests/rustdoc-ui/error-in-impl-trait/closure.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/closure.rs rename to tests/rustdoc-ui/error-in-impl-trait/closure.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/const-generics.rs b/tests/rustdoc-ui/error-in-impl-trait/const-generics.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/const-generics.rs rename to tests/rustdoc-ui/error-in-impl-trait/const-generics.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/generic-argument.rs b/tests/rustdoc-ui/error-in-impl-trait/generic-argument.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/generic-argument.rs rename to tests/rustdoc-ui/error-in-impl-trait/generic-argument.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/impl-keyword-closure.rs b/tests/rustdoc-ui/error-in-impl-trait/impl-keyword-closure.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/impl-keyword-closure.rs rename to tests/rustdoc-ui/error-in-impl-trait/impl-keyword-closure.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/impl-keyword.rs b/tests/rustdoc-ui/error-in-impl-trait/impl-keyword.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/impl-keyword.rs rename to tests/rustdoc-ui/error-in-impl-trait/impl-keyword.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/realistic-async.rs b/tests/rustdoc-ui/error-in-impl-trait/realistic-async.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/realistic-async.rs rename to tests/rustdoc-ui/error-in-impl-trait/realistic-async.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/trait-alias-closure.rs b/tests/rustdoc-ui/error-in-impl-trait/trait-alias-closure.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/trait-alias-closure.rs rename to tests/rustdoc-ui/error-in-impl-trait/trait-alias-closure.rs diff --git a/src/test/rustdoc-ui/error-in-impl-trait/trait-alias.rs b/tests/rustdoc-ui/error-in-impl-trait/trait-alias.rs similarity index 100% rename from src/test/rustdoc-ui/error-in-impl-trait/trait-alias.rs rename to tests/rustdoc-ui/error-in-impl-trait/trait-alias.rs diff --git a/src/test/rustdoc-ui/expect-tool-lint-rfc-2383.rs b/tests/rustdoc-ui/expect-tool-lint-rfc-2383.rs similarity index 100% rename from src/test/rustdoc-ui/expect-tool-lint-rfc-2383.rs rename to tests/rustdoc-ui/expect-tool-lint-rfc-2383.rs diff --git a/src/test/rustdoc-ui/expect-tool-lint-rfc-2383.stderr b/tests/rustdoc-ui/expect-tool-lint-rfc-2383.stderr similarity index 100% rename from src/test/rustdoc-ui/expect-tool-lint-rfc-2383.stderr rename to tests/rustdoc-ui/expect-tool-lint-rfc-2383.stderr diff --git a/src/test/rustdoc-ui/failed-doctest-compile-fail.rs b/tests/rustdoc-ui/failed-doctest-compile-fail.rs similarity index 85% rename from src/test/rustdoc-ui/failed-doctest-compile-fail.rs rename to tests/rustdoc-ui/failed-doctest-compile-fail.rs index 6f2ff5d703a11..4dfca600f1627 100644 --- a/src/test/rustdoc-ui/failed-doctest-compile-fail.rs +++ b/tests/rustdoc-ui/failed-doctest-compile-fail.rs @@ -2,7 +2,7 @@ // adapted to use that, and that normalize line can go away // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/failed-doctest-compile-fail.stdout b/tests/rustdoc-ui/failed-doctest-compile-fail.stdout similarity index 100% rename from src/test/rustdoc-ui/failed-doctest-compile-fail.stdout rename to tests/rustdoc-ui/failed-doctest-compile-fail.stdout diff --git a/src/test/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs b/tests/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs similarity index 88% rename from src/test/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs rename to tests/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs index 16d737106ea89..03a5b9d5d842f 100644 --- a/src/test/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs +++ b/tests/rustdoc-ui/failed-doctest-extra-semicolon-on-item.rs @@ -2,7 +2,7 @@ // adapted to use that, and that normalize line can go away // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/failed-doctest-extra-semicolon-on-item.stdout b/tests/rustdoc-ui/failed-doctest-extra-semicolon-on-item.stdout similarity index 100% rename from src/test/rustdoc-ui/failed-doctest-extra-semicolon-on-item.stdout rename to tests/rustdoc-ui/failed-doctest-extra-semicolon-on-item.stdout diff --git a/src/test/rustdoc-ui/failed-doctest-missing-codes.rs b/tests/rustdoc-ui/failed-doctest-missing-codes.rs similarity index 85% rename from src/test/rustdoc-ui/failed-doctest-missing-codes.rs rename to tests/rustdoc-ui/failed-doctest-missing-codes.rs index 57b70b478e624..66a229a0c7576 100644 --- a/src/test/rustdoc-ui/failed-doctest-missing-codes.rs +++ b/tests/rustdoc-ui/failed-doctest-missing-codes.rs @@ -2,7 +2,7 @@ // adapted to use that, and that normalize line can go away // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/failed-doctest-missing-codes.stdout b/tests/rustdoc-ui/failed-doctest-missing-codes.stdout similarity index 100% rename from src/test/rustdoc-ui/failed-doctest-missing-codes.stdout rename to tests/rustdoc-ui/failed-doctest-missing-codes.stdout diff --git a/src/test/rustdoc-ui/failed-doctest-output-windows.rs b/tests/rustdoc-ui/failed-doctest-output-windows.rs similarity index 92% rename from src/test/rustdoc-ui/failed-doctest-output-windows.rs rename to tests/rustdoc-ui/failed-doctest-output-windows.rs index 4cd9993d8d5b3..456a9e68f20c1 100644 --- a/src/test/rustdoc-ui/failed-doctest-output-windows.rs +++ b/tests/rustdoc-ui/failed-doctest-output-windows.rs @@ -7,7 +7,7 @@ // compile-flags:--test --test-args --test-threads=1 // rustc-env:RUST_BACKTRACE=0 -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/failed-doctest-output-windows.stdout b/tests/rustdoc-ui/failed-doctest-output-windows.stdout similarity index 100% rename from src/test/rustdoc-ui/failed-doctest-output-windows.stdout rename to tests/rustdoc-ui/failed-doctest-output-windows.stdout diff --git a/src/test/rustdoc-ui/failed-doctest-output.rs b/tests/rustdoc-ui/failed-doctest-output.rs similarity index 92% rename from src/test/rustdoc-ui/failed-doctest-output.rs rename to tests/rustdoc-ui/failed-doctest-output.rs index 42de954d052b3..77647f8eca954 100644 --- a/src/test/rustdoc-ui/failed-doctest-output.rs +++ b/tests/rustdoc-ui/failed-doctest-output.rs @@ -7,7 +7,7 @@ // compile-flags:--test --test-args --test-threads=1 // rustc-env:RUST_BACKTRACE=0 -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/failed-doctest-output.stdout b/tests/rustdoc-ui/failed-doctest-output.stdout similarity index 100% rename from src/test/rustdoc-ui/failed-doctest-output.stdout rename to tests/rustdoc-ui/failed-doctest-output.stdout diff --git a/src/test/rustdoc-ui/failed-doctest-should-panic.rs b/tests/rustdoc-ui/failed-doctest-should-panic.rs similarity index 85% rename from src/test/rustdoc-ui/failed-doctest-should-panic.rs rename to tests/rustdoc-ui/failed-doctest-should-panic.rs index 2b8bb31686f2e..c134f80064d55 100644 --- a/src/test/rustdoc-ui/failed-doctest-should-panic.rs +++ b/tests/rustdoc-ui/failed-doctest-should-panic.rs @@ -2,7 +2,7 @@ // adapted to use that, and that normalize line can go away // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/failed-doctest-should-panic.stdout b/tests/rustdoc-ui/failed-doctest-should-panic.stdout similarity index 100% rename from src/test/rustdoc-ui/failed-doctest-should-panic.stdout rename to tests/rustdoc-ui/failed-doctest-should-panic.stdout diff --git a/src/test/rustdoc-ui/feature-gate-doc_cfg_hide.rs b/tests/rustdoc-ui/feature-gate-doc_cfg_hide.rs similarity index 100% rename from src/test/rustdoc-ui/feature-gate-doc_cfg_hide.rs rename to tests/rustdoc-ui/feature-gate-doc_cfg_hide.rs diff --git a/src/test/rustdoc-ui/feature-gate-doc_cfg_hide.stderr b/tests/rustdoc-ui/feature-gate-doc_cfg_hide.stderr similarity index 100% rename from src/test/rustdoc-ui/feature-gate-doc_cfg_hide.stderr rename to tests/rustdoc-ui/feature-gate-doc_cfg_hide.stderr diff --git a/src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs b/tests/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs similarity index 100% rename from src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs rename to tests/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs diff --git a/src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.stderr b/tests/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.stderr similarity index 100% rename from src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.stderr rename to tests/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.stderr diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt-unstable.rs b/tests/rustdoc-ui/generate-link-to-definition-opt-unstable.rs similarity index 100% rename from src/test/rustdoc-ui/generate-link-to-definition-opt-unstable.rs rename to tests/rustdoc-ui/generate-link-to-definition-opt-unstable.rs diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt-unstable.stderr b/tests/rustdoc-ui/generate-link-to-definition-opt-unstable.stderr similarity index 100% rename from src/test/rustdoc-ui/generate-link-to-definition-opt-unstable.stderr rename to tests/rustdoc-ui/generate-link-to-definition-opt-unstable.stderr diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt.rs b/tests/rustdoc-ui/generate-link-to-definition-opt.rs similarity index 100% rename from src/test/rustdoc-ui/generate-link-to-definition-opt.rs rename to tests/rustdoc-ui/generate-link-to-definition-opt.rs diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt.stderr b/tests/rustdoc-ui/generate-link-to-definition-opt.stderr similarity index 100% rename from src/test/rustdoc-ui/generate-link-to-definition-opt.stderr rename to tests/rustdoc-ui/generate-link-to-definition-opt.stderr diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt2.rs b/tests/rustdoc-ui/generate-link-to-definition-opt2.rs similarity index 100% rename from src/test/rustdoc-ui/generate-link-to-definition-opt2.rs rename to tests/rustdoc-ui/generate-link-to-definition-opt2.rs diff --git a/src/test/rustdoc-ui/generate-link-to-definition-opt2.stderr b/tests/rustdoc-ui/generate-link-to-definition-opt2.stderr similarity index 100% rename from src/test/rustdoc-ui/generate-link-to-definition-opt2.stderr rename to tests/rustdoc-ui/generate-link-to-definition-opt2.stderr diff --git a/src/test/rustdoc-ui/ignore-block-help.rs b/tests/rustdoc-ui/ignore-block-help.rs similarity index 100% rename from src/test/rustdoc-ui/ignore-block-help.rs rename to tests/rustdoc-ui/ignore-block-help.rs diff --git a/src/test/rustdoc-ui/ignore-block-help.stderr b/tests/rustdoc-ui/ignore-block-help.stderr similarity index 100% rename from src/test/rustdoc-ui/ignore-block-help.stderr rename to tests/rustdoc-ui/ignore-block-help.stderr diff --git a/src/test/rustdoc-ui/impl-fn-nesting.rs b/tests/rustdoc-ui/impl-fn-nesting.rs similarity index 100% rename from src/test/rustdoc-ui/impl-fn-nesting.rs rename to tests/rustdoc-ui/impl-fn-nesting.rs diff --git a/src/test/rustdoc-ui/impl-fn-nesting.stderr b/tests/rustdoc-ui/impl-fn-nesting.stderr similarity index 100% rename from src/test/rustdoc-ui/impl-fn-nesting.stderr rename to tests/rustdoc-ui/impl-fn-nesting.stderr diff --git a/src/test/rustdoc-ui/infinite-recursive-type-impl-trait-return.rs b/tests/rustdoc-ui/infinite-recursive-type-impl-trait-return.rs similarity index 100% rename from src/test/rustdoc-ui/infinite-recursive-type-impl-trait-return.rs rename to tests/rustdoc-ui/infinite-recursive-type-impl-trait-return.rs diff --git a/src/test/rustdoc-ui/infinite-recursive-type-impl-trait-return.stderr b/tests/rustdoc-ui/infinite-recursive-type-impl-trait-return.stderr similarity index 100% rename from src/test/rustdoc-ui/infinite-recursive-type-impl-trait-return.stderr rename to tests/rustdoc-ui/infinite-recursive-type-impl-trait-return.stderr diff --git a/src/test/rustdoc-ui/infinite-recursive-type-impl-trait.rs b/tests/rustdoc-ui/infinite-recursive-type-impl-trait.rs similarity index 100% rename from src/test/rustdoc-ui/infinite-recursive-type-impl-trait.rs rename to tests/rustdoc-ui/infinite-recursive-type-impl-trait.rs diff --git a/src/test/rustdoc-ui/infinite-recursive-type-impl-trait.stderr b/tests/rustdoc-ui/infinite-recursive-type-impl-trait.stderr similarity index 100% rename from src/test/rustdoc-ui/infinite-recursive-type-impl-trait.stderr rename to tests/rustdoc-ui/infinite-recursive-type-impl-trait.stderr diff --git a/src/test/rustdoc-ui/infinite-recursive-type.rs b/tests/rustdoc-ui/infinite-recursive-type.rs similarity index 100% rename from src/test/rustdoc-ui/infinite-recursive-type.rs rename to tests/rustdoc-ui/infinite-recursive-type.rs diff --git a/src/test/rustdoc-ui/infinite-recursive-type.stderr b/tests/rustdoc-ui/infinite-recursive-type.stderr similarity index 100% rename from src/test/rustdoc-ui/infinite-recursive-type.stderr rename to tests/rustdoc-ui/infinite-recursive-type.stderr diff --git a/src/test/rustdoc-ui/intra-doc/.gitattributes b/tests/rustdoc-ui/intra-doc/.gitattributes similarity index 100% rename from src/test/rustdoc-ui/intra-doc/.gitattributes rename to tests/rustdoc-ui/intra-doc/.gitattributes diff --git a/src/test/rustdoc-ui/intra-doc/alias-ice.rs b/tests/rustdoc-ui/intra-doc/alias-ice.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/alias-ice.rs rename to tests/rustdoc-ui/intra-doc/alias-ice.rs diff --git a/src/test/rustdoc-ui/intra-doc/alias-ice.stderr b/tests/rustdoc-ui/intra-doc/alias-ice.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/alias-ice.stderr rename to tests/rustdoc-ui/intra-doc/alias-ice.stderr diff --git a/src/test/rustdoc-ui/intra-doc/ambiguity.rs b/tests/rustdoc-ui/intra-doc/ambiguity.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/ambiguity.rs rename to tests/rustdoc-ui/intra-doc/ambiguity.rs diff --git a/src/test/rustdoc-ui/intra-doc/ambiguity.stderr b/tests/rustdoc-ui/intra-doc/ambiguity.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/ambiguity.stderr rename to tests/rustdoc-ui/intra-doc/ambiguity.stderr diff --git a/src/test/rustdoc-ui/intra-doc/anchors.rs b/tests/rustdoc-ui/intra-doc/anchors.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/anchors.rs rename to tests/rustdoc-ui/intra-doc/anchors.rs diff --git a/src/test/rustdoc-ui/intra-doc/anchors.stderr b/tests/rustdoc-ui/intra-doc/anchors.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/anchors.stderr rename to tests/rustdoc-ui/intra-doc/anchors.stderr diff --git a/src/test/rustdoc-ui/intra-doc/assoc-field.rs b/tests/rustdoc-ui/intra-doc/assoc-field.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/assoc-field.rs rename to tests/rustdoc-ui/intra-doc/assoc-field.rs diff --git a/src/test/rustdoc-ui/intra-doc/assoc-mod-inner-outer.rs b/tests/rustdoc-ui/intra-doc/assoc-mod-inner-outer.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/assoc-mod-inner-outer.rs rename to tests/rustdoc-ui/intra-doc/assoc-mod-inner-outer.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/assoc-field-dep.rs b/tests/rustdoc-ui/intra-doc/auxiliary/assoc-field-dep.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/assoc-field-dep.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/assoc-field-dep.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/assoc-mod-inner-outer-dep.rs b/tests/rustdoc-ui/intra-doc/auxiliary/assoc-mod-inner-outer-dep.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/assoc-mod-inner-outer-dep.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/assoc-mod-inner-outer-dep.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/dep1.rs b/tests/rustdoc-ui/intra-doc/auxiliary/dep1.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/dep1.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/dep1.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/dep2.rs b/tests/rustdoc-ui/intra-doc/auxiliary/dep2.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/dep2.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/dep2.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/dep3.rs b/tests/rustdoc-ui/intra-doc/auxiliary/dep3.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/dep3.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/dep3.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/dep4.rs b/tests/rustdoc-ui/intra-doc/auxiliary/dep4.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/dep4.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/dep4.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/intra-doc-broken.rs b/tests/rustdoc-ui/intra-doc/auxiliary/intra-doc-broken.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/intra-doc-broken.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/intra-doc-broken.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/pointer-reexports-allowed.rs b/tests/rustdoc-ui/intra-doc/auxiliary/pointer-reexports-allowed.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/pointer-reexports-allowed.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/pointer-reexports-allowed.rs diff --git a/src/test/rustdoc-ui/intra-doc/auxiliary/through-proc-macro-aux.rs b/tests/rustdoc-ui/intra-doc/auxiliary/through-proc-macro-aux.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/auxiliary/through-proc-macro-aux.rs rename to tests/rustdoc-ui/intra-doc/auxiliary/through-proc-macro-aux.rs diff --git a/src/test/rustdoc-ui/intra-doc/broken-reexport.rs b/tests/rustdoc-ui/intra-doc/broken-reexport.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/broken-reexport.rs rename to tests/rustdoc-ui/intra-doc/broken-reexport.rs diff --git a/src/test/rustdoc-ui/intra-doc/crate-nonexistent.rs b/tests/rustdoc-ui/intra-doc/crate-nonexistent.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/crate-nonexistent.rs rename to tests/rustdoc-ui/intra-doc/crate-nonexistent.rs diff --git a/src/test/rustdoc-ui/intra-doc/crate-nonexistent.stderr b/tests/rustdoc-ui/intra-doc/crate-nonexistent.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/crate-nonexistent.stderr rename to tests/rustdoc-ui/intra-doc/crate-nonexistent.stderr diff --git a/src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.rs b/tests/rustdoc-ui/intra-doc/disambiguator-mismatch.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.rs rename to tests/rustdoc-ui/intra-doc/disambiguator-mismatch.rs diff --git a/src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr b/tests/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr rename to tests/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr diff --git a/src/test/rustdoc-ui/intra-doc/double-anchor.rs b/tests/rustdoc-ui/intra-doc/double-anchor.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/double-anchor.rs rename to tests/rustdoc-ui/intra-doc/double-anchor.rs diff --git a/src/test/rustdoc-ui/intra-doc/double-anchor.stderr b/tests/rustdoc-ui/intra-doc/double-anchor.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/double-anchor.stderr rename to tests/rustdoc-ui/intra-doc/double-anchor.stderr diff --git a/src/test/rustdoc-ui/intra-doc/email-address-localhost.rs b/tests/rustdoc-ui/intra-doc/email-address-localhost.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/email-address-localhost.rs rename to tests/rustdoc-ui/intra-doc/email-address-localhost.rs diff --git a/src/test/rustdoc-ui/intra-doc/errors.rs b/tests/rustdoc-ui/intra-doc/errors.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/errors.rs rename to tests/rustdoc-ui/intra-doc/errors.rs diff --git a/src/test/rustdoc-ui/intra-doc/errors.stderr b/tests/rustdoc-ui/intra-doc/errors.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/errors.stderr rename to tests/rustdoc-ui/intra-doc/errors.stderr diff --git a/src/test/rustdoc-ui/intra-doc/extern-crate-load.rs b/tests/rustdoc-ui/intra-doc/extern-crate-load.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/extern-crate-load.rs rename to tests/rustdoc-ui/intra-doc/extern-crate-load.rs diff --git a/src/test/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.rs b/tests/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.rs rename to tests/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.rs diff --git a/src/test/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.stderr b/tests/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.stderr rename to tests/rustdoc-ui/intra-doc/feature-gate-intra-doc-pointers.stderr diff --git a/src/test/rustdoc-ui/intra-doc/field-ice.rs b/tests/rustdoc-ui/intra-doc/field-ice.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/field-ice.rs rename to tests/rustdoc-ui/intra-doc/field-ice.rs diff --git a/src/test/rustdoc-ui/intra-doc/field-ice.stderr b/tests/rustdoc-ui/intra-doc/field-ice.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/field-ice.stderr rename to tests/rustdoc-ui/intra-doc/field-ice.stderr diff --git a/src/test/rustdoc-ui/intra-doc/global-path.rs b/tests/rustdoc-ui/intra-doc/global-path.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/global-path.rs rename to tests/rustdoc-ui/intra-doc/global-path.rs diff --git a/src/test/rustdoc-ui/intra-doc/global-path.stderr b/tests/rustdoc-ui/intra-doc/global-path.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/global-path.stderr rename to tests/rustdoc-ui/intra-doc/global-path.stderr diff --git a/src/test/rustdoc-ui/intra-doc/html-as-generics-intra-doc.rs b/tests/rustdoc-ui/intra-doc/html-as-generics-intra-doc.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/html-as-generics-intra-doc.rs rename to tests/rustdoc-ui/intra-doc/html-as-generics-intra-doc.rs diff --git a/src/test/rustdoc-ui/intra-doc/html-as-generics-intra-doc.stderr b/tests/rustdoc-ui/intra-doc/html-as-generics-intra-doc.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/html-as-generics-intra-doc.stderr rename to tests/rustdoc-ui/intra-doc/html-as-generics-intra-doc.stderr diff --git a/src/test/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.rs b/tests/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.rs rename to tests/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.rs diff --git a/src/test/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.stderr b/tests/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.stderr rename to tests/rustdoc-ui/intra-doc/incompatible-primitive-disambiguator.stderr diff --git a/src/test/rustdoc-ui/intra-doc/macro-rules-error.rs b/tests/rustdoc-ui/intra-doc/macro-rules-error.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/macro-rules-error.rs rename to tests/rustdoc-ui/intra-doc/macro-rules-error.rs diff --git a/src/test/rustdoc-ui/intra-doc/macro-rules-error.stderr b/tests/rustdoc-ui/intra-doc/macro-rules-error.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/macro-rules-error.stderr rename to tests/rustdoc-ui/intra-doc/macro-rules-error.stderr diff --git a/src/test/rustdoc-ui/intra-doc/macro-rules.rs b/tests/rustdoc-ui/intra-doc/macro-rules.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/macro-rules.rs rename to tests/rustdoc-ui/intra-doc/macro-rules.rs diff --git a/src/test/rustdoc-ui/intra-doc/malformed-generics.rs b/tests/rustdoc-ui/intra-doc/malformed-generics.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/malformed-generics.rs rename to tests/rustdoc-ui/intra-doc/malformed-generics.rs diff --git a/src/test/rustdoc-ui/intra-doc/malformed-generics.stderr b/tests/rustdoc-ui/intra-doc/malformed-generics.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/malformed-generics.stderr rename to tests/rustdoc-ui/intra-doc/malformed-generics.stderr diff --git a/src/test/rustdoc-ui/intra-doc/non-path-primitives.rs b/tests/rustdoc-ui/intra-doc/non-path-primitives.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/non-path-primitives.rs rename to tests/rustdoc-ui/intra-doc/non-path-primitives.rs diff --git a/src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr b/tests/rustdoc-ui/intra-doc/non-path-primitives.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr rename to tests/rustdoc-ui/intra-doc/non-path-primitives.stderr diff --git a/src/test/rustdoc-ui/intra-doc/pointer-reexports-allowed.rs b/tests/rustdoc-ui/intra-doc/pointer-reexports-allowed.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/pointer-reexports-allowed.rs rename to tests/rustdoc-ui/intra-doc/pointer-reexports-allowed.rs diff --git a/src/test/rustdoc-ui/intra-doc/prim-conflict.rs b/tests/rustdoc-ui/intra-doc/prim-conflict.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/prim-conflict.rs rename to tests/rustdoc-ui/intra-doc/prim-conflict.rs diff --git a/src/test/rustdoc-ui/intra-doc/prim-conflict.stderr b/tests/rustdoc-ui/intra-doc/prim-conflict.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/prim-conflict.stderr rename to tests/rustdoc-ui/intra-doc/prim-conflict.stderr diff --git a/src/test/rustdoc-ui/intra-doc/private-from-crate-level.rs b/tests/rustdoc-ui/intra-doc/private-from-crate-level.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/private-from-crate-level.rs rename to tests/rustdoc-ui/intra-doc/private-from-crate-level.rs diff --git a/src/test/rustdoc-ui/intra-doc/private-from-crate-level.stderr b/tests/rustdoc-ui/intra-doc/private-from-crate-level.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/private-from-crate-level.stderr rename to tests/rustdoc-ui/intra-doc/private-from-crate-level.stderr diff --git a/src/test/rustdoc-ui/intra-doc/private.private.stderr b/tests/rustdoc-ui/intra-doc/private.private.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/private.private.stderr rename to tests/rustdoc-ui/intra-doc/private.private.stderr diff --git a/src/test/rustdoc-ui/intra-doc/private.public.stderr b/tests/rustdoc-ui/intra-doc/private.public.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/private.public.stderr rename to tests/rustdoc-ui/intra-doc/private.public.stderr diff --git a/src/test/rustdoc-ui/intra-doc/private.rs b/tests/rustdoc-ui/intra-doc/private.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/private.rs rename to tests/rustdoc-ui/intra-doc/private.rs diff --git a/src/test/rustdoc-ui/intra-doc/span-ice-55723.rs b/tests/rustdoc-ui/intra-doc/span-ice-55723.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/span-ice-55723.rs rename to tests/rustdoc-ui/intra-doc/span-ice-55723.rs diff --git a/src/test/rustdoc-ui/intra-doc/span-ice-55723.stderr b/tests/rustdoc-ui/intra-doc/span-ice-55723.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/span-ice-55723.stderr rename to tests/rustdoc-ui/intra-doc/span-ice-55723.stderr diff --git a/src/test/rustdoc-ui/intra-doc/through-proc-macro.rs b/tests/rustdoc-ui/intra-doc/through-proc-macro.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/through-proc-macro.rs rename to tests/rustdoc-ui/intra-doc/through-proc-macro.rs diff --git a/src/test/rustdoc-ui/intra-doc/through-proc-macro.stderr b/tests/rustdoc-ui/intra-doc/through-proc-macro.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/through-proc-macro.stderr rename to tests/rustdoc-ui/intra-doc/through-proc-macro.stderr diff --git a/src/test/rustdoc-ui/intra-doc/unknown-disambiguator.rs b/tests/rustdoc-ui/intra-doc/unknown-disambiguator.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/unknown-disambiguator.rs rename to tests/rustdoc-ui/intra-doc/unknown-disambiguator.rs diff --git a/src/test/rustdoc-ui/intra-doc/unknown-disambiguator.stderr b/tests/rustdoc-ui/intra-doc/unknown-disambiguator.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/unknown-disambiguator.stderr rename to tests/rustdoc-ui/intra-doc/unknown-disambiguator.stderr diff --git a/src/test/rustdoc-ui/intra-doc/unresolved-import-recovery.rs b/tests/rustdoc-ui/intra-doc/unresolved-import-recovery.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/unresolved-import-recovery.rs rename to tests/rustdoc-ui/intra-doc/unresolved-import-recovery.rs diff --git a/src/test/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr b/tests/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr rename to tests/rustdoc-ui/intra-doc/unresolved-import-recovery.stderr diff --git a/src/test/rustdoc-ui/intra-doc/unused-extern-crate.rs b/tests/rustdoc-ui/intra-doc/unused-extern-crate.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/unused-extern-crate.rs rename to tests/rustdoc-ui/intra-doc/unused-extern-crate.rs diff --git a/src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr b/tests/rustdoc-ui/intra-doc/unused-extern-crate.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr rename to tests/rustdoc-ui/intra-doc/unused-extern-crate.stderr diff --git a/src/test/rustdoc-ui/intra-doc/warning-crlf.rs b/tests/rustdoc-ui/intra-doc/warning-crlf.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/warning-crlf.rs rename to tests/rustdoc-ui/intra-doc/warning-crlf.rs diff --git a/src/test/rustdoc-ui/intra-doc/warning-crlf.stderr b/tests/rustdoc-ui/intra-doc/warning-crlf.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/warning-crlf.stderr rename to tests/rustdoc-ui/intra-doc/warning-crlf.stderr diff --git a/src/test/rustdoc-ui/intra-doc/warning.rs b/tests/rustdoc-ui/intra-doc/warning.rs similarity index 100% rename from src/test/rustdoc-ui/intra-doc/warning.rs rename to tests/rustdoc-ui/intra-doc/warning.rs diff --git a/src/test/rustdoc-ui/intra-doc/warning.stderr b/tests/rustdoc-ui/intra-doc/warning.stderr similarity index 100% rename from src/test/rustdoc-ui/intra-doc/warning.stderr rename to tests/rustdoc-ui/intra-doc/warning.stderr diff --git a/src/test/rustdoc-ui/invalid-cfg.rs b/tests/rustdoc-ui/invalid-cfg.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-cfg.rs rename to tests/rustdoc-ui/invalid-cfg.rs diff --git a/src/test/rustdoc-ui/invalid-cfg.stderr b/tests/rustdoc-ui/invalid-cfg.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-cfg.stderr rename to tests/rustdoc-ui/invalid-cfg.stderr diff --git a/src/test/rustdoc-ui/invalid-doc-attr.rs b/tests/rustdoc-ui/invalid-doc-attr.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-doc-attr.rs rename to tests/rustdoc-ui/invalid-doc-attr.rs diff --git a/src/test/rustdoc-ui/invalid-doc-attr.stderr b/tests/rustdoc-ui/invalid-doc-attr.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-doc-attr.stderr rename to tests/rustdoc-ui/invalid-doc-attr.stderr diff --git a/src/test/rustdoc-ui/invalid-html-self-closing-tag.rs b/tests/rustdoc-ui/invalid-html-self-closing-tag.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-html-self-closing-tag.rs rename to tests/rustdoc-ui/invalid-html-self-closing-tag.rs diff --git a/src/test/rustdoc-ui/invalid-html-self-closing-tag.stderr b/tests/rustdoc-ui/invalid-html-self-closing-tag.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-html-self-closing-tag.stderr rename to tests/rustdoc-ui/invalid-html-self-closing-tag.stderr diff --git a/src/test/rustdoc-ui/invalid-html-tags.rs b/tests/rustdoc-ui/invalid-html-tags.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-html-tags.rs rename to tests/rustdoc-ui/invalid-html-tags.rs diff --git a/src/test/rustdoc-ui/invalid-html-tags.stderr b/tests/rustdoc-ui/invalid-html-tags.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-html-tags.stderr rename to tests/rustdoc-ui/invalid-html-tags.stderr diff --git a/src/test/rustdoc-ui/invalid-keyword.rs b/tests/rustdoc-ui/invalid-keyword.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-keyword.rs rename to tests/rustdoc-ui/invalid-keyword.rs diff --git a/src/test/rustdoc-ui/invalid-keyword.stderr b/tests/rustdoc-ui/invalid-keyword.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-keyword.stderr rename to tests/rustdoc-ui/invalid-keyword.stderr diff --git a/src/test/rustdoc-ui/invalid-syntax.rs b/tests/rustdoc-ui/invalid-syntax.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-syntax.rs rename to tests/rustdoc-ui/invalid-syntax.rs diff --git a/src/test/rustdoc-ui/invalid-syntax.stderr b/tests/rustdoc-ui/invalid-syntax.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-syntax.stderr rename to tests/rustdoc-ui/invalid-syntax.stderr diff --git a/src/test/rustdoc-ui/invalid-theme-name.rs b/tests/rustdoc-ui/invalid-theme-name.rs similarity index 100% rename from src/test/rustdoc-ui/invalid-theme-name.rs rename to tests/rustdoc-ui/invalid-theme-name.rs diff --git a/src/test/rustdoc-ui/invalid-theme-name.stderr b/tests/rustdoc-ui/invalid-theme-name.stderr similarity index 100% rename from src/test/rustdoc-ui/invalid-theme-name.stderr rename to tests/rustdoc-ui/invalid-theme-name.stderr diff --git a/src/test/rustdoc-ui/issue-101076.rs b/tests/rustdoc-ui/issue-101076.rs similarity index 100% rename from src/test/rustdoc-ui/issue-101076.rs rename to tests/rustdoc-ui/issue-101076.rs diff --git a/src/test/rustdoc-ui/issue-102986.rs b/tests/rustdoc-ui/issue-102986.rs similarity index 100% rename from src/test/rustdoc-ui/issue-102986.rs rename to tests/rustdoc-ui/issue-102986.rs diff --git a/src/test/rustdoc-ui/issue-102986.stderr b/tests/rustdoc-ui/issue-102986.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-102986.stderr rename to tests/rustdoc-ui/issue-102986.stderr diff --git a/src/test/rustdoc-ui/issue-103997.rs b/tests/rustdoc-ui/issue-103997.rs similarity index 100% rename from src/test/rustdoc-ui/issue-103997.rs rename to tests/rustdoc-ui/issue-103997.rs diff --git a/src/test/rustdoc-ui/issue-103997.stderr b/tests/rustdoc-ui/issue-103997.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-103997.stderr rename to tests/rustdoc-ui/issue-103997.stderr diff --git a/src/test/rustdoc-ui/issue-105334.rs b/tests/rustdoc-ui/issue-105334.rs similarity index 100% rename from src/test/rustdoc-ui/issue-105334.rs rename to tests/rustdoc-ui/issue-105334.rs diff --git a/src/test/rustdoc-ui/issue-105334.stderr b/tests/rustdoc-ui/issue-105334.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-105334.stderr rename to tests/rustdoc-ui/issue-105334.stderr diff --git a/src/test/rustdoc-ui/issue-105737.rs b/tests/rustdoc-ui/issue-105737.rs similarity index 100% rename from src/test/rustdoc-ui/issue-105737.rs rename to tests/rustdoc-ui/issue-105737.rs diff --git a/src/test/rustdoc-ui/issue-105737.stderr b/tests/rustdoc-ui/issue-105737.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-105737.stderr rename to tests/rustdoc-ui/issue-105737.stderr diff --git a/src/test/rustdoc-ui/issue-105742.rs b/tests/rustdoc-ui/issue-105742.rs similarity index 100% rename from src/test/rustdoc-ui/issue-105742.rs rename to tests/rustdoc-ui/issue-105742.rs diff --git a/src/test/rustdoc-ui/issue-105742.stderr b/tests/rustdoc-ui/issue-105742.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-105742.stderr rename to tests/rustdoc-ui/issue-105742.stderr diff --git a/src/test/rustdoc-ui/issue-106213.rs b/tests/rustdoc-ui/issue-106213.rs similarity index 100% rename from src/test/rustdoc-ui/issue-106213.rs rename to tests/rustdoc-ui/issue-106213.rs diff --git a/src/test/rustdoc-ui/issue-106213.stderr b/tests/rustdoc-ui/issue-106213.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-106213.stderr rename to tests/rustdoc-ui/issue-106213.stderr diff --git a/src/test/rustdoc-ui/issue-106226.rs b/tests/rustdoc-ui/issue-106226.rs similarity index 100% rename from src/test/rustdoc-ui/issue-106226.rs rename to tests/rustdoc-ui/issue-106226.rs diff --git a/src/test/rustdoc-ui/issue-106226.stderr b/tests/rustdoc-ui/issue-106226.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-106226.stderr rename to tests/rustdoc-ui/issue-106226.stderr diff --git a/src/test/rustdoc-ui/issue-58473-2.rs b/tests/rustdoc-ui/issue-58473-2.rs similarity index 100% rename from src/test/rustdoc-ui/issue-58473-2.rs rename to tests/rustdoc-ui/issue-58473-2.rs diff --git a/src/test/rustdoc-ui/issue-58473.rs b/tests/rustdoc-ui/issue-58473.rs similarity index 100% rename from src/test/rustdoc-ui/issue-58473.rs rename to tests/rustdoc-ui/issue-58473.rs diff --git a/src/test/rustdoc-ui/issue-61592-2.rs b/tests/rustdoc-ui/issue-61592-2.rs similarity index 100% rename from src/test/rustdoc-ui/issue-61592-2.rs rename to tests/rustdoc-ui/issue-61592-2.rs diff --git a/src/test/rustdoc-ui/issue-61592-2.stderr b/tests/rustdoc-ui/issue-61592-2.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-61592-2.stderr rename to tests/rustdoc-ui/issue-61592-2.stderr diff --git a/src/test/rustdoc-ui/issue-61592.rs b/tests/rustdoc-ui/issue-61592.rs similarity index 100% rename from src/test/rustdoc-ui/issue-61592.rs rename to tests/rustdoc-ui/issue-61592.rs diff --git a/src/test/rustdoc-ui/issue-61592.stderr b/tests/rustdoc-ui/issue-61592.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-61592.stderr rename to tests/rustdoc-ui/issue-61592.stderr diff --git a/src/test/rustdoc-ui/issue-61732.rs b/tests/rustdoc-ui/issue-61732.rs similarity index 100% rename from src/test/rustdoc-ui/issue-61732.rs rename to tests/rustdoc-ui/issue-61732.rs diff --git a/src/test/rustdoc-ui/issue-61732.stderr b/tests/rustdoc-ui/issue-61732.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-61732.stderr rename to tests/rustdoc-ui/issue-61732.stderr diff --git a/src/test/rustdoc-ui/issue-74134.private.stderr b/tests/rustdoc-ui/issue-74134.private.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-74134.private.stderr rename to tests/rustdoc-ui/issue-74134.private.stderr diff --git a/src/test/rustdoc-ui/issue-74134.public.stderr b/tests/rustdoc-ui/issue-74134.public.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-74134.public.stderr rename to tests/rustdoc-ui/issue-74134.public.stderr diff --git a/src/test/rustdoc-ui/issue-74134.rs b/tests/rustdoc-ui/issue-74134.rs similarity index 100% rename from src/test/rustdoc-ui/issue-74134.rs rename to tests/rustdoc-ui/issue-74134.rs diff --git a/src/test/rustdoc-ui/issue-79465.rs b/tests/rustdoc-ui/issue-79465.rs similarity index 100% rename from src/test/rustdoc-ui/issue-79465.rs rename to tests/rustdoc-ui/issue-79465.rs diff --git a/src/test/rustdoc-ui/issue-79465.stderr b/tests/rustdoc-ui/issue-79465.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-79465.stderr rename to tests/rustdoc-ui/issue-79465.stderr diff --git a/src/test/rustdoc-ui/issue-79467.rs b/tests/rustdoc-ui/issue-79467.rs similarity index 100% rename from src/test/rustdoc-ui/issue-79467.rs rename to tests/rustdoc-ui/issue-79467.rs diff --git a/src/test/rustdoc-ui/issue-79467.stderr b/tests/rustdoc-ui/issue-79467.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-79467.stderr rename to tests/rustdoc-ui/issue-79467.stderr diff --git a/src/test/rustdoc-ui/issue-79494.rs b/tests/rustdoc-ui/issue-79494.rs similarity index 100% rename from src/test/rustdoc-ui/issue-79494.rs rename to tests/rustdoc-ui/issue-79494.rs diff --git a/src/test/rustdoc-ui/issue-79494.stderr b/tests/rustdoc-ui/issue-79494.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-79494.stderr rename to tests/rustdoc-ui/issue-79494.stderr diff --git a/src/test/rustdoc-ui/issue-80992.rs b/tests/rustdoc-ui/issue-80992.rs similarity index 79% rename from src/test/rustdoc-ui/issue-80992.rs rename to tests/rustdoc-ui/issue-80992.rs index 8983439bb64d3..80ff225b8791f 100644 --- a/src/test/rustdoc-ui/issue-80992.rs +++ b/tests/rustdoc-ui/issue-80992.rs @@ -1,6 +1,6 @@ // check-pass // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" pub fn test() -> Result<(), ()> { diff --git a/src/test/rustdoc-ui/issue-80992.stdout b/tests/rustdoc-ui/issue-80992.stdout similarity index 100% rename from src/test/rustdoc-ui/issue-80992.stdout rename to tests/rustdoc-ui/issue-80992.stdout diff --git a/src/test/rustdoc-ui/issue-81662-shortness.rs b/tests/rustdoc-ui/issue-81662-shortness.rs similarity index 82% rename from src/test/rustdoc-ui/issue-81662-shortness.rs rename to tests/rustdoc-ui/issue-81662-shortness.rs index 27a21a313bc55..8a90813b31d52 100644 --- a/src/test/rustdoc-ui/issue-81662-shortness.rs +++ b/tests/rustdoc-ui/issue-81662-shortness.rs @@ -1,5 +1,5 @@ // compile-flags:--test --error-format=short -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 diff --git a/src/test/rustdoc-ui/issue-81662-shortness.stdout b/tests/rustdoc-ui/issue-81662-shortness.stdout similarity index 100% rename from src/test/rustdoc-ui/issue-81662-shortness.stdout rename to tests/rustdoc-ui/issue-81662-shortness.stdout diff --git a/src/test/rustdoc-ui/issue-83883-describe-lints.rs b/tests/rustdoc-ui/issue-83883-describe-lints.rs similarity index 100% rename from src/test/rustdoc-ui/issue-83883-describe-lints.rs rename to tests/rustdoc-ui/issue-83883-describe-lints.rs diff --git a/src/test/rustdoc-ui/issue-83883-describe-lints.stdout b/tests/rustdoc-ui/issue-83883-describe-lints.stdout similarity index 100% rename from src/test/rustdoc-ui/issue-83883-describe-lints.stdout rename to tests/rustdoc-ui/issue-83883-describe-lints.stdout diff --git a/src/test/rustdoc-ui/issue-91134.rs b/tests/rustdoc-ui/issue-91134.rs similarity index 86% rename from src/test/rustdoc-ui/issue-91134.rs rename to tests/rustdoc-ui/issue-91134.rs index d2ff3a252266f..42703ee4d7998 100644 --- a/src/test/rustdoc-ui/issue-91134.rs +++ b/tests/rustdoc-ui/issue-91134.rs @@ -1,7 +1,7 @@ // compile-flags: --test --crate-name=empty_fn --extern=empty_fn --test-args=--test-threads=1 // aux-build:empty-fn.rs // check-pass -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // edition:2021 diff --git a/src/test/rustdoc-ui/issue-91134.stdout b/tests/rustdoc-ui/issue-91134.stdout similarity index 100% rename from src/test/rustdoc-ui/issue-91134.stdout rename to tests/rustdoc-ui/issue-91134.stdout diff --git a/src/test/rustdoc-ui/issue-91713.rs b/tests/rustdoc-ui/issue-91713.rs similarity index 100% rename from src/test/rustdoc-ui/issue-91713.rs rename to tests/rustdoc-ui/issue-91713.rs diff --git a/src/test/rustdoc-ui/issue-91713.stderr b/tests/rustdoc-ui/issue-91713.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-91713.stderr rename to tests/rustdoc-ui/issue-91713.stderr diff --git a/src/test/rustdoc-ui/issue-91713.stdout b/tests/rustdoc-ui/issue-91713.stdout similarity index 100% rename from src/test/rustdoc-ui/issue-91713.stdout rename to tests/rustdoc-ui/issue-91713.stdout diff --git a/src/test/rustdoc-ui/issue-96287.rs b/tests/rustdoc-ui/issue-96287.rs similarity index 100% rename from src/test/rustdoc-ui/issue-96287.rs rename to tests/rustdoc-ui/issue-96287.rs diff --git a/src/test/rustdoc-ui/issue-96287.stderr b/tests/rustdoc-ui/issue-96287.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-96287.stderr rename to tests/rustdoc-ui/issue-96287.stderr diff --git a/src/test/rustdoc-ui/issue-98690.rs b/tests/rustdoc-ui/issue-98690.rs similarity index 100% rename from src/test/rustdoc-ui/issue-98690.rs rename to tests/rustdoc-ui/issue-98690.rs diff --git a/src/test/rustdoc-ui/issue-98690.stderr b/tests/rustdoc-ui/issue-98690.stderr similarity index 100% rename from src/test/rustdoc-ui/issue-98690.stderr rename to tests/rustdoc-ui/issue-98690.stderr diff --git a/src/test/rustdoc-ui/lint-group.rs b/tests/rustdoc-ui/lint-group.rs similarity index 100% rename from src/test/rustdoc-ui/lint-group.rs rename to tests/rustdoc-ui/lint-group.rs diff --git a/src/test/rustdoc-ui/lint-group.stderr b/tests/rustdoc-ui/lint-group.stderr similarity index 100% rename from src/test/rustdoc-ui/lint-group.stderr rename to tests/rustdoc-ui/lint-group.stderr diff --git a/src/test/rustdoc-ui/lint-missing-doc-code-example.rs b/tests/rustdoc-ui/lint-missing-doc-code-example.rs similarity index 100% rename from src/test/rustdoc-ui/lint-missing-doc-code-example.rs rename to tests/rustdoc-ui/lint-missing-doc-code-example.rs diff --git a/src/test/rustdoc-ui/lint-missing-doc-code-example.stderr b/tests/rustdoc-ui/lint-missing-doc-code-example.stderr similarity index 100% rename from src/test/rustdoc-ui/lint-missing-doc-code-example.stderr rename to tests/rustdoc-ui/lint-missing-doc-code-example.stderr diff --git a/src/test/rustdoc-ui/macro-docs.rs b/tests/rustdoc-ui/macro-docs.rs similarity index 100% rename from src/test/rustdoc-ui/macro-docs.rs rename to tests/rustdoc-ui/macro-docs.rs diff --git a/src/test/rustdoc-ui/macro-docs.stderr b/tests/rustdoc-ui/macro-docs.stderr similarity index 100% rename from src/test/rustdoc-ui/macro-docs.stderr rename to tests/rustdoc-ui/macro-docs.stderr diff --git a/src/test/rustdoc-ui/macro-docs.stdout b/tests/rustdoc-ui/macro-docs.stdout similarity index 100% rename from src/test/rustdoc-ui/macro-docs.stdout rename to tests/rustdoc-ui/macro-docs.stdout diff --git a/src/test/rustdoc-ui/no-crate-level-doc-lint.rs b/tests/rustdoc-ui/no-crate-level-doc-lint.rs similarity index 100% rename from src/test/rustdoc-ui/no-crate-level-doc-lint.rs rename to tests/rustdoc-ui/no-crate-level-doc-lint.rs diff --git a/src/test/rustdoc-ui/no-crate-level-doc-lint.stderr b/tests/rustdoc-ui/no-crate-level-doc-lint.stderr similarity index 100% rename from src/test/rustdoc-ui/no-crate-level-doc-lint.stderr rename to tests/rustdoc-ui/no-crate-level-doc-lint.stderr diff --git a/src/test/rustdoc-ui/no-run-flag-error.rs b/tests/rustdoc-ui/no-run-flag-error.rs similarity index 100% rename from src/test/rustdoc-ui/no-run-flag-error.rs rename to tests/rustdoc-ui/no-run-flag-error.rs diff --git a/src/test/rustdoc-ui/no-run-flag-error.stderr b/tests/rustdoc-ui/no-run-flag-error.stderr similarity index 100% rename from src/test/rustdoc-ui/no-run-flag-error.stderr rename to tests/rustdoc-ui/no-run-flag-error.stderr diff --git a/src/test/rustdoc-ui/no-run-flag.rs b/tests/rustdoc-ui/no-run-flag.rs similarity index 92% rename from src/test/rustdoc-ui/no-run-flag.rs rename to tests/rustdoc-ui/no-run-flag.rs index da1672c4a6e78..181730eb41618 100644 --- a/src/test/rustdoc-ui/no-run-flag.rs +++ b/tests/rustdoc-ui/no-run-flag.rs @@ -2,7 +2,7 @@ // check-pass // compile-flags:-Z unstable-options --test --no-run --test-args=--test-threads=1 -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// ``` diff --git a/src/test/rustdoc-ui/no-run-flag.stdout b/tests/rustdoc-ui/no-run-flag.stdout similarity index 100% rename from src/test/rustdoc-ui/no-run-flag.stdout rename to tests/rustdoc-ui/no-run-flag.stdout diff --git a/src/test/rustdoc-ui/nocapture-fail.rs b/tests/rustdoc-ui/nocapture-fail.rs similarity index 65% rename from src/test/rustdoc-ui/nocapture-fail.rs rename to tests/rustdoc-ui/nocapture-fail.rs index 7706bd1f3e39c..9a3fb592c6304 100644 --- a/src/test/rustdoc-ui/nocapture-fail.rs +++ b/tests/rustdoc-ui/nocapture-fail.rs @@ -1,7 +1,7 @@ // check-pass // compile-flags:--test -Zunstable-options --nocapture -// normalize-stderr-test: "src/test/rustdoc-ui" -> "$$DIR" -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stderr-test: "tests/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// ```compile_fail diff --git a/src/test/rustdoc-ui/nocapture-fail.stderr b/tests/rustdoc-ui/nocapture-fail.stderr similarity index 100% rename from src/test/rustdoc-ui/nocapture-fail.stderr rename to tests/rustdoc-ui/nocapture-fail.stderr diff --git a/src/test/rustdoc-ui/nocapture-fail.stdout b/tests/rustdoc-ui/nocapture-fail.stdout similarity index 100% rename from src/test/rustdoc-ui/nocapture-fail.stdout rename to tests/rustdoc-ui/nocapture-fail.stdout diff --git a/src/test/rustdoc-ui/nocapture.rs b/tests/rustdoc-ui/nocapture.rs similarity index 79% rename from src/test/rustdoc-ui/nocapture.rs rename to tests/rustdoc-ui/nocapture.rs index 321f5ca08eded..3eb38f2fb3b8b 100644 --- a/src/test/rustdoc-ui/nocapture.rs +++ b/tests/rustdoc-ui/nocapture.rs @@ -1,6 +1,6 @@ // check-pass // compile-flags:--test -Zunstable-options --nocapture -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// ``` diff --git a/src/test/rustdoc-ui/nocapture.stderr b/tests/rustdoc-ui/nocapture.stderr similarity index 100% rename from src/test/rustdoc-ui/nocapture.stderr rename to tests/rustdoc-ui/nocapture.stderr diff --git a/src/test/rustdoc-ui/nocapture.stdout b/tests/rustdoc-ui/nocapture.stdout similarity index 100% rename from src/test/rustdoc-ui/nocapture.stdout rename to tests/rustdoc-ui/nocapture.stdout diff --git a/src/test/rustdoc-ui/normalize-cycle.rs b/tests/rustdoc-ui/normalize-cycle.rs similarity index 100% rename from src/test/rustdoc-ui/normalize-cycle.rs rename to tests/rustdoc-ui/normalize-cycle.rs diff --git a/src/test/rustdoc-ui/normalize-overflow.rs b/tests/rustdoc-ui/normalize-overflow.rs similarity index 100% rename from src/test/rustdoc-ui/normalize-overflow.rs rename to tests/rustdoc-ui/normalize-overflow.rs diff --git a/src/test/rustdoc-ui/output-format-html-stable.rs b/tests/rustdoc-ui/output-format-html-stable.rs similarity index 100% rename from src/test/rustdoc-ui/output-format-html-stable.rs rename to tests/rustdoc-ui/output-format-html-stable.rs diff --git a/src/test/rustdoc-ui/private-doc-test.rs b/tests/rustdoc-ui/private-doc-test.rs similarity index 100% rename from src/test/rustdoc-ui/private-doc-test.rs rename to tests/rustdoc-ui/private-doc-test.rs diff --git a/src/test/rustdoc-ui/private-item-doc-test.rs b/tests/rustdoc-ui/private-item-doc-test.rs similarity index 100% rename from src/test/rustdoc-ui/private-item-doc-test.rs rename to tests/rustdoc-ui/private-item-doc-test.rs diff --git a/src/test/rustdoc-ui/private-item-doc-test.stderr b/tests/rustdoc-ui/private-item-doc-test.stderr similarity index 100% rename from src/test/rustdoc-ui/private-item-doc-test.stderr rename to tests/rustdoc-ui/private-item-doc-test.stderr diff --git a/src/test/rustdoc-ui/private-public-item-doc-test.rs b/tests/rustdoc-ui/private-public-item-doc-test.rs similarity index 100% rename from src/test/rustdoc-ui/private-public-item-doc-test.rs rename to tests/rustdoc-ui/private-public-item-doc-test.rs diff --git a/src/test/rustdoc-ui/private-public-item-doc-test.stderr b/tests/rustdoc-ui/private-public-item-doc-test.stderr similarity index 100% rename from src/test/rustdoc-ui/private-public-item-doc-test.stderr rename to tests/rustdoc-ui/private-public-item-doc-test.stderr diff --git a/src/test/rustdoc-ui/pub-export-lint.rs b/tests/rustdoc-ui/pub-export-lint.rs similarity index 100% rename from src/test/rustdoc-ui/pub-export-lint.rs rename to tests/rustdoc-ui/pub-export-lint.rs diff --git a/src/test/rustdoc-ui/pub-export-lint.stderr b/tests/rustdoc-ui/pub-export-lint.stderr similarity index 100% rename from src/test/rustdoc-ui/pub-export-lint.stderr rename to tests/rustdoc-ui/pub-export-lint.stderr diff --git a/src/test/rustdoc-ui/public-reexported-item-doc-test.rs b/tests/rustdoc-ui/public-reexported-item-doc-test.rs similarity index 100% rename from src/test/rustdoc-ui/public-reexported-item-doc-test.rs rename to tests/rustdoc-ui/public-reexported-item-doc-test.rs diff --git a/src/test/rustdoc-ui/range-pattern.rs b/tests/rustdoc-ui/range-pattern.rs similarity index 100% rename from src/test/rustdoc-ui/range-pattern.rs rename to tests/rustdoc-ui/range-pattern.rs diff --git a/src/test/rustdoc-ui/recursive-deref-ice.rs b/tests/rustdoc-ui/recursive-deref-ice.rs similarity index 100% rename from src/test/rustdoc-ui/recursive-deref-ice.rs rename to tests/rustdoc-ui/recursive-deref-ice.rs diff --git a/src/test/rustdoc-ui/reference-link-reports-error-once.rs b/tests/rustdoc-ui/reference-link-reports-error-once.rs similarity index 100% rename from src/test/rustdoc-ui/reference-link-reports-error-once.rs rename to tests/rustdoc-ui/reference-link-reports-error-once.rs diff --git a/src/test/rustdoc-ui/reference-link-reports-error-once.stderr b/tests/rustdoc-ui/reference-link-reports-error-once.stderr similarity index 100% rename from src/test/rustdoc-ui/reference-link-reports-error-once.stderr rename to tests/rustdoc-ui/reference-link-reports-error-once.stderr diff --git a/src/test/rustdoc-ui/reference-links.rs b/tests/rustdoc-ui/reference-links.rs similarity index 100% rename from src/test/rustdoc-ui/reference-links.rs rename to tests/rustdoc-ui/reference-links.rs diff --git a/src/test/rustdoc-ui/reference-links.stderr b/tests/rustdoc-ui/reference-links.stderr similarity index 100% rename from src/test/rustdoc-ui/reference-links.stderr rename to tests/rustdoc-ui/reference-links.stderr diff --git a/src/test/rustdoc-ui/renamed-lint-still-applies.rs b/tests/rustdoc-ui/renamed-lint-still-applies.rs similarity index 100% rename from src/test/rustdoc-ui/renamed-lint-still-applies.rs rename to tests/rustdoc-ui/renamed-lint-still-applies.rs diff --git a/src/test/rustdoc-ui/renamed-lint-still-applies.stderr b/tests/rustdoc-ui/renamed-lint-still-applies.stderr similarity index 100% rename from src/test/rustdoc-ui/renamed-lint-still-applies.stderr rename to tests/rustdoc-ui/renamed-lint-still-applies.stderr diff --git a/src/test/rustdoc-ui/run-directory.correct.stdout b/tests/rustdoc-ui/run-directory.correct.stdout similarity index 100% rename from src/test/rustdoc-ui/run-directory.correct.stdout rename to tests/rustdoc-ui/run-directory.correct.stdout diff --git a/src/test/rustdoc-ui/run-directory.incorrect.stdout b/tests/rustdoc-ui/run-directory.incorrect.stdout similarity index 100% rename from src/test/rustdoc-ui/run-directory.incorrect.stdout rename to tests/rustdoc-ui/run-directory.incorrect.stdout diff --git a/src/test/rustdoc-ui/run-directory.rs b/tests/rustdoc-ui/run-directory.rs similarity index 91% rename from src/test/rustdoc-ui/run-directory.rs rename to tests/rustdoc-ui/run-directory.rs index 0d432c1e6996a..bbceaaf824f92 100644 --- a/src/test/rustdoc-ui/run-directory.rs +++ b/tests/rustdoc-ui/run-directory.rs @@ -4,7 +4,7 @@ // check-pass // [correct]compile-flags:--test --test-run-directory={{src-base}} -Zunstable-options // [incorrect]compile-flags:--test --test-run-directory={{src-base}}/coverage -Zunstable-options -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// ``` diff --git a/src/test/rustdoc-ui/rustc-check-passes.rs b/tests/rustdoc-ui/rustc-check-passes.rs similarity index 100% rename from src/test/rustdoc-ui/rustc-check-passes.rs rename to tests/rustdoc-ui/rustc-check-passes.rs diff --git a/src/test/rustdoc-ui/rustc-check-passes.stderr b/tests/rustdoc-ui/rustc-check-passes.stderr similarity index 100% rename from src/test/rustdoc-ui/rustc-check-passes.stderr rename to tests/rustdoc-ui/rustc-check-passes.stderr diff --git a/src/test/rustdoc-ui/scrape-examples-fail-if-type-error.rs b/tests/rustdoc-ui/scrape-examples-fail-if-type-error.rs similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-fail-if-type-error.rs rename to tests/rustdoc-ui/scrape-examples-fail-if-type-error.rs diff --git a/src/test/rustdoc-ui/scrape-examples-fail-if-type-error.stderr b/tests/rustdoc-ui/scrape-examples-fail-if-type-error.stderr similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-fail-if-type-error.stderr rename to tests/rustdoc-ui/scrape-examples-fail-if-type-error.stderr diff --git a/src/test/rustdoc-ui/scrape-examples-ice.rs b/tests/rustdoc-ui/scrape-examples-ice.rs similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-ice.rs rename to tests/rustdoc-ui/scrape-examples-ice.rs diff --git a/src/test/rustdoc-ui/scrape-examples-wrong-options-1.rs b/tests/rustdoc-ui/scrape-examples-wrong-options-1.rs similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-wrong-options-1.rs rename to tests/rustdoc-ui/scrape-examples-wrong-options-1.rs diff --git a/src/test/rustdoc-ui/scrape-examples-wrong-options-1.stderr b/tests/rustdoc-ui/scrape-examples-wrong-options-1.stderr similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-wrong-options-1.stderr rename to tests/rustdoc-ui/scrape-examples-wrong-options-1.stderr diff --git a/src/test/rustdoc-ui/scrape-examples-wrong-options-2.rs b/tests/rustdoc-ui/scrape-examples-wrong-options-2.rs similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-wrong-options-2.rs rename to tests/rustdoc-ui/scrape-examples-wrong-options-2.rs diff --git a/src/test/rustdoc-ui/scrape-examples-wrong-options-2.stderr b/tests/rustdoc-ui/scrape-examples-wrong-options-2.stderr similarity index 100% rename from src/test/rustdoc-ui/scrape-examples-wrong-options-2.stderr rename to tests/rustdoc-ui/scrape-examples-wrong-options-2.stderr diff --git a/src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs b/tests/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs similarity index 100% rename from src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs rename to tests/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs diff --git a/src/test/rustdoc-ui/suggestions/html-as-generics-no-suggestions.rs b/tests/rustdoc-ui/suggestions/html-as-generics-no-suggestions.rs similarity index 100% rename from src/test/rustdoc-ui/suggestions/html-as-generics-no-suggestions.rs rename to tests/rustdoc-ui/suggestions/html-as-generics-no-suggestions.rs diff --git a/src/test/rustdoc-ui/suggestions/html-as-generics-no-suggestions.stderr b/tests/rustdoc-ui/suggestions/html-as-generics-no-suggestions.stderr similarity index 100% rename from src/test/rustdoc-ui/suggestions/html-as-generics-no-suggestions.stderr rename to tests/rustdoc-ui/suggestions/html-as-generics-no-suggestions.stderr diff --git a/src/test/rustdoc-ui/suggestions/html-as-generics.fixed b/tests/rustdoc-ui/suggestions/html-as-generics.fixed similarity index 100% rename from src/test/rustdoc-ui/suggestions/html-as-generics.fixed rename to tests/rustdoc-ui/suggestions/html-as-generics.fixed diff --git a/src/test/rustdoc-ui/suggestions/html-as-generics.rs b/tests/rustdoc-ui/suggestions/html-as-generics.rs similarity index 100% rename from src/test/rustdoc-ui/suggestions/html-as-generics.rs rename to tests/rustdoc-ui/suggestions/html-as-generics.rs diff --git a/src/test/rustdoc-ui/suggestions/html-as-generics.stderr b/tests/rustdoc-ui/suggestions/html-as-generics.stderr similarity index 100% rename from src/test/rustdoc-ui/suggestions/html-as-generics.stderr rename to tests/rustdoc-ui/suggestions/html-as-generics.stderr diff --git a/src/test/rustdoc-ui/test-compile-fail1.rs b/tests/rustdoc-ui/test-compile-fail1.rs similarity index 100% rename from src/test/rustdoc-ui/test-compile-fail1.rs rename to tests/rustdoc-ui/test-compile-fail1.rs diff --git a/src/test/rustdoc-ui/test-compile-fail1.stderr b/tests/rustdoc-ui/test-compile-fail1.stderr similarity index 100% rename from src/test/rustdoc-ui/test-compile-fail1.stderr rename to tests/rustdoc-ui/test-compile-fail1.stderr diff --git a/src/test/rustdoc-ui/test-compile-fail2.rs b/tests/rustdoc-ui/test-compile-fail2.rs similarity index 100% rename from src/test/rustdoc-ui/test-compile-fail2.rs rename to tests/rustdoc-ui/test-compile-fail2.rs diff --git a/src/test/rustdoc-ui/test-compile-fail2.stderr b/tests/rustdoc-ui/test-compile-fail2.stderr similarity index 100% rename from src/test/rustdoc-ui/test-compile-fail2.stderr rename to tests/rustdoc-ui/test-compile-fail2.stderr diff --git a/src/test/rustdoc-ui/test-compile-fail3.rs b/tests/rustdoc-ui/test-compile-fail3.rs similarity index 100% rename from src/test/rustdoc-ui/test-compile-fail3.rs rename to tests/rustdoc-ui/test-compile-fail3.rs diff --git a/src/test/rustdoc-ui/test-compile-fail3.stderr b/tests/rustdoc-ui/test-compile-fail3.stderr similarity index 100% rename from src/test/rustdoc-ui/test-compile-fail3.stderr rename to tests/rustdoc-ui/test-compile-fail3.stderr diff --git a/src/test/rustdoc-ui/test-no_std.rs b/tests/rustdoc-ui/test-no_std.rs similarity index 76% rename from src/test/rustdoc-ui/test-no_std.rs rename to tests/rustdoc-ui/test-no_std.rs index ee919985e7a91..51abf1c721768 100644 --- a/src/test/rustdoc-ui/test-no_std.rs +++ b/tests/rustdoc-ui/test-no_std.rs @@ -1,5 +1,5 @@ // compile-flags:--test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // check-pass diff --git a/src/test/rustdoc-ui/test-no_std.stdout b/tests/rustdoc-ui/test-no_std.stdout similarity index 100% rename from src/test/rustdoc-ui/test-no_std.stdout rename to tests/rustdoc-ui/test-no_std.stdout diff --git a/src/test/rustdoc-ui/test-type.rs b/tests/rustdoc-ui/test-type.rs similarity index 88% rename from src/test/rustdoc-ui/test-type.rs rename to tests/rustdoc-ui/test-type.rs index 882da5c2503fe..7f5a8f3fc415a 100644 --- a/src/test/rustdoc-ui/test-type.rs +++ b/tests/rustdoc-ui/test-type.rs @@ -1,6 +1,6 @@ // compile-flags: --test --test-args=--test-threads=1 // check-pass -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" /// ``` diff --git a/src/test/rustdoc-ui/test-type.stdout b/tests/rustdoc-ui/test-type.stdout similarity index 100% rename from src/test/rustdoc-ui/test-type.stdout rename to tests/rustdoc-ui/test-type.stdout diff --git a/src/test/rustdoc-ui/track-diagnostics.rs b/tests/rustdoc-ui/track-diagnostics.rs similarity index 100% rename from src/test/rustdoc-ui/track-diagnostics.rs rename to tests/rustdoc-ui/track-diagnostics.rs diff --git a/src/test/rustdoc-ui/track-diagnostics.stderr b/tests/rustdoc-ui/track-diagnostics.stderr similarity index 100% rename from src/test/rustdoc-ui/track-diagnostics.stderr rename to tests/rustdoc-ui/track-diagnostics.stderr diff --git a/src/test/rustdoc-ui/tuple-variadic-check.rs b/tests/rustdoc-ui/tuple-variadic-check.rs similarity index 100% rename from src/test/rustdoc-ui/tuple-variadic-check.rs rename to tests/rustdoc-ui/tuple-variadic-check.rs diff --git a/src/test/rustdoc-ui/tuple-variadic-check.stderr b/tests/rustdoc-ui/tuple-variadic-check.stderr similarity index 100% rename from src/test/rustdoc-ui/tuple-variadic-check.stderr rename to tests/rustdoc-ui/tuple-variadic-check.stderr diff --git a/src/test/rustdoc-ui/unable-fulfill-trait.rs b/tests/rustdoc-ui/unable-fulfill-trait.rs similarity index 100% rename from src/test/rustdoc-ui/unable-fulfill-trait.rs rename to tests/rustdoc-ui/unable-fulfill-trait.rs diff --git a/src/test/rustdoc-ui/unable-fulfill-trait.stderr b/tests/rustdoc-ui/unable-fulfill-trait.stderr similarity index 100% rename from src/test/rustdoc-ui/unable-fulfill-trait.stderr rename to tests/rustdoc-ui/unable-fulfill-trait.stderr diff --git a/src/test/rustdoc-ui/unknown-renamed-lints.rs b/tests/rustdoc-ui/unknown-renamed-lints.rs similarity index 100% rename from src/test/rustdoc-ui/unknown-renamed-lints.rs rename to tests/rustdoc-ui/unknown-renamed-lints.rs diff --git a/src/test/rustdoc-ui/unknown-renamed-lints.stderr b/tests/rustdoc-ui/unknown-renamed-lints.stderr similarity index 100% rename from src/test/rustdoc-ui/unknown-renamed-lints.stderr rename to tests/rustdoc-ui/unknown-renamed-lints.stderr diff --git a/src/test/rustdoc-ui/unparseable-doc-test.rs b/tests/rustdoc-ui/unparseable-doc-test.rs similarity index 79% rename from src/test/rustdoc-ui/unparseable-doc-test.rs rename to tests/rustdoc-ui/unparseable-doc-test.rs index 0cff8cd9a33a8..f0a56a91bf549 100644 --- a/src/test/rustdoc-ui/unparseable-doc-test.rs +++ b/tests/rustdoc-ui/unparseable-doc-test.rs @@ -1,5 +1,5 @@ // compile-flags: --test -// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR" +// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR" // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // failure-status: 101 // rustc-env: RUST_BACKTRACE=0 diff --git a/src/test/rustdoc-ui/unparseable-doc-test.stdout b/tests/rustdoc-ui/unparseable-doc-test.stdout similarity index 100% rename from src/test/rustdoc-ui/unparseable-doc-test.stdout rename to tests/rustdoc-ui/unparseable-doc-test.stdout diff --git a/src/test/rustdoc-ui/unused-braces-lint.rs b/tests/rustdoc-ui/unused-braces-lint.rs similarity index 100% rename from src/test/rustdoc-ui/unused-braces-lint.rs rename to tests/rustdoc-ui/unused-braces-lint.rs diff --git a/src/test/rustdoc-ui/unused-extern-crate.rs b/tests/rustdoc-ui/unused-extern-crate.rs similarity index 100% rename from src/test/rustdoc-ui/unused-extern-crate.rs rename to tests/rustdoc-ui/unused-extern-crate.rs diff --git a/src/test/rustdoc-ui/unused.rs b/tests/rustdoc-ui/unused.rs similarity index 100% rename from src/test/rustdoc-ui/unused.rs rename to tests/rustdoc-ui/unused.rs diff --git a/src/test/rustdoc-ui/use_both_out_dir_and_output_options.rs b/tests/rustdoc-ui/use_both_out_dir_and_output_options.rs similarity index 100% rename from src/test/rustdoc-ui/use_both_out_dir_and_output_options.rs rename to tests/rustdoc-ui/use_both_out_dir_and_output_options.rs diff --git a/src/test/rustdoc-ui/use_both_out_dir_and_output_options.stderr b/tests/rustdoc-ui/use_both_out_dir_and_output_options.stderr similarity index 100% rename from src/test/rustdoc-ui/use_both_out_dir_and_output_options.stderr rename to tests/rustdoc-ui/use_both_out_dir_and_output_options.stderr diff --git a/src/test/rustdoc-ui/wasm-safe.rs b/tests/rustdoc-ui/wasm-safe.rs similarity index 100% rename from src/test/rustdoc-ui/wasm-safe.rs rename to tests/rustdoc-ui/wasm-safe.rs diff --git a/src/test/rustdoc-ui/z-help.rs b/tests/rustdoc-ui/z-help.rs similarity index 100% rename from src/test/rustdoc-ui/z-help.rs rename to tests/rustdoc-ui/z-help.rs diff --git a/src/test/rustdoc-ui/z-help.stdout b/tests/rustdoc-ui/z-help.stdout similarity index 100% rename from src/test/rustdoc-ui/z-help.stdout rename to tests/rustdoc-ui/z-help.stdout diff --git a/src/test/rustdoc/all.rs b/tests/rustdoc/all.rs similarity index 100% rename from src/test/rustdoc/all.rs rename to tests/rustdoc/all.rs diff --git a/src/test/rustdoc/anchors.no_const_anchor.html b/tests/rustdoc/anchors.no_const_anchor.html similarity index 100% rename from src/test/rustdoc/anchors.no_const_anchor.html rename to tests/rustdoc/anchors.no_const_anchor.html diff --git a/src/test/rustdoc/anchors.no_const_anchor2.html b/tests/rustdoc/anchors.no_const_anchor2.html similarity index 100% rename from src/test/rustdoc/anchors.no_const_anchor2.html rename to tests/rustdoc/anchors.no_const_anchor2.html diff --git a/src/test/rustdoc/anchors.no_method_anchor.html b/tests/rustdoc/anchors.no_method_anchor.html similarity index 100% rename from src/test/rustdoc/anchors.no_method_anchor.html rename to tests/rustdoc/anchors.no_method_anchor.html diff --git a/src/test/rustdoc/anchors.no_trait_method_anchor.html b/tests/rustdoc/anchors.no_trait_method_anchor.html similarity index 100% rename from src/test/rustdoc/anchors.no_trait_method_anchor.html rename to tests/rustdoc/anchors.no_trait_method_anchor.html diff --git a/src/test/rustdoc/anchors.no_tymethod_anchor.html b/tests/rustdoc/anchors.no_tymethod_anchor.html similarity index 100% rename from src/test/rustdoc/anchors.no_tymethod_anchor.html rename to tests/rustdoc/anchors.no_tymethod_anchor.html diff --git a/src/test/rustdoc/anchors.no_type_anchor.html b/tests/rustdoc/anchors.no_type_anchor.html similarity index 100% rename from src/test/rustdoc/anchors.no_type_anchor.html rename to tests/rustdoc/anchors.no_type_anchor.html diff --git a/src/test/rustdoc/anchors.no_type_anchor2.html b/tests/rustdoc/anchors.no_type_anchor2.html similarity index 100% rename from src/test/rustdoc/anchors.no_type_anchor2.html rename to tests/rustdoc/anchors.no_type_anchor2.html diff --git a/src/test/rustdoc/anchors.rs b/tests/rustdoc/anchors.rs similarity index 100% rename from src/test/rustdoc/anchors.rs rename to tests/rustdoc/anchors.rs diff --git a/src/test/rustdoc/anonymous-lifetime.rs b/tests/rustdoc/anonymous-lifetime.rs similarity index 100% rename from src/test/rustdoc/anonymous-lifetime.rs rename to tests/rustdoc/anonymous-lifetime.rs diff --git a/src/test/rustdoc/anonymous-reexport.rs b/tests/rustdoc/anonymous-reexport.rs similarity index 100% rename from src/test/rustdoc/anonymous-reexport.rs rename to tests/rustdoc/anonymous-reexport.rs diff --git a/src/test/rustdoc/array-links.link_box_generic.html b/tests/rustdoc/array-links.link_box_generic.html similarity index 100% rename from src/test/rustdoc/array-links.link_box_generic.html rename to tests/rustdoc/array-links.link_box_generic.html diff --git a/src/test/rustdoc/array-links.link_box_u32.html b/tests/rustdoc/array-links.link_box_u32.html similarity index 100% rename from src/test/rustdoc/array-links.link_box_u32.html rename to tests/rustdoc/array-links.link_box_u32.html diff --git a/src/test/rustdoc/array-links.link_slice_generic.html b/tests/rustdoc/array-links.link_slice_generic.html similarity index 100% rename from src/test/rustdoc/array-links.link_slice_generic.html rename to tests/rustdoc/array-links.link_slice_generic.html diff --git a/src/test/rustdoc/array-links.link_slice_u32.html b/tests/rustdoc/array-links.link_slice_u32.html similarity index 100% rename from src/test/rustdoc/array-links.link_slice_u32.html rename to tests/rustdoc/array-links.link_slice_u32.html diff --git a/src/test/rustdoc/array-links.rs b/tests/rustdoc/array-links.rs similarity index 100% rename from src/test/rustdoc/array-links.rs rename to tests/rustdoc/array-links.rs diff --git a/src/test/rustdoc/asm-foreign.rs b/tests/rustdoc/asm-foreign.rs similarity index 100% rename from src/test/rustdoc/asm-foreign.rs rename to tests/rustdoc/asm-foreign.rs diff --git a/src/test/rustdoc/asm-foreign2.rs b/tests/rustdoc/asm-foreign2.rs similarity index 100% rename from src/test/rustdoc/asm-foreign2.rs rename to tests/rustdoc/asm-foreign2.rs diff --git a/src/test/rustdoc/assoc-consts-version.rs b/tests/rustdoc/assoc-consts-version.rs similarity index 100% rename from src/test/rustdoc/assoc-consts-version.rs rename to tests/rustdoc/assoc-consts-version.rs diff --git a/src/test/rustdoc/assoc-consts.rs b/tests/rustdoc/assoc-consts.rs similarity index 100% rename from src/test/rustdoc/assoc-consts.rs rename to tests/rustdoc/assoc-consts.rs diff --git a/src/test/rustdoc/assoc-item-cast.rs b/tests/rustdoc/assoc-item-cast.rs similarity index 100% rename from src/test/rustdoc/assoc-item-cast.rs rename to tests/rustdoc/assoc-item-cast.rs diff --git a/src/test/rustdoc/assoc-types.rs b/tests/rustdoc/assoc-types.rs similarity index 100% rename from src/test/rustdoc/assoc-types.rs rename to tests/rustdoc/assoc-types.rs diff --git a/src/test/rustdoc/associated-consts.rs b/tests/rustdoc/associated-consts.rs similarity index 100% rename from src/test/rustdoc/associated-consts.rs rename to tests/rustdoc/associated-consts.rs diff --git a/src/test/rustdoc/async-fn.rs b/tests/rustdoc/async-fn.rs similarity index 100% rename from src/test/rustdoc/async-fn.rs rename to tests/rustdoc/async-fn.rs diff --git a/src/test/rustdoc/async-move-doctest.rs b/tests/rustdoc/async-move-doctest.rs similarity index 100% rename from src/test/rustdoc/async-move-doctest.rs rename to tests/rustdoc/async-move-doctest.rs diff --git a/src/test/rustdoc/async-trait-sig.rs b/tests/rustdoc/async-trait-sig.rs similarity index 100% rename from src/test/rustdoc/async-trait-sig.rs rename to tests/rustdoc/async-trait-sig.rs diff --git a/src/test/rustdoc/async-trait.rs b/tests/rustdoc/async-trait.rs similarity index 100% rename from src/test/rustdoc/async-trait.rs rename to tests/rustdoc/async-trait.rs diff --git a/src/test/rustdoc/attribute-rendering.rs b/tests/rustdoc/attribute-rendering.rs similarity index 100% rename from src/test/rustdoc/attribute-rendering.rs rename to tests/rustdoc/attribute-rendering.rs diff --git a/src/test/rustdoc/attributes.rs b/tests/rustdoc/attributes.rs similarity index 100% rename from src/test/rustdoc/attributes.rs rename to tests/rustdoc/attributes.rs diff --git a/src/test/rustdoc/auto-impl-for-trait.rs b/tests/rustdoc/auto-impl-for-trait.rs similarity index 100% rename from src/test/rustdoc/auto-impl-for-trait.rs rename to tests/rustdoc/auto-impl-for-trait.rs diff --git a/src/test/rustdoc/auto-impl-primitive.rs b/tests/rustdoc/auto-impl-primitive.rs similarity index 100% rename from src/test/rustdoc/auto-impl-primitive.rs rename to tests/rustdoc/auto-impl-primitive.rs diff --git a/src/test/rustdoc/auto-trait-not-send.rs b/tests/rustdoc/auto-trait-not-send.rs similarity index 100% rename from src/test/rustdoc/auto-trait-not-send.rs rename to tests/rustdoc/auto-trait-not-send.rs diff --git a/src/test/rustdoc/auto-traits.rs b/tests/rustdoc/auto-traits.rs similarity index 100% rename from src/test/rustdoc/auto-traits.rs rename to tests/rustdoc/auto-traits.rs diff --git a/src/test/rustdoc/auto_aliases.rs b/tests/rustdoc/auto_aliases.rs similarity index 100% rename from src/test/rustdoc/auto_aliases.rs rename to tests/rustdoc/auto_aliases.rs diff --git a/src/test/rustdoc/auxiliary/all-item-types.rs b/tests/rustdoc/auxiliary/all-item-types.rs similarity index 100% rename from src/test/rustdoc/auxiliary/all-item-types.rs rename to tests/rustdoc/auxiliary/all-item-types.rs diff --git a/src/test/rustdoc/auxiliary/async-trait-dep.rs b/tests/rustdoc/auxiliary/async-trait-dep.rs similarity index 100% rename from src/test/rustdoc/auxiliary/async-trait-dep.rs rename to tests/rustdoc/auxiliary/async-trait-dep.rs diff --git a/src/test/rustdoc/auxiliary/auto-traits.rs b/tests/rustdoc/auxiliary/auto-traits.rs similarity index 100% rename from src/test/rustdoc/auxiliary/auto-traits.rs rename to tests/rustdoc/auxiliary/auto-traits.rs diff --git a/src/test/rustdoc/auxiliary/cross-crate-hidden-assoc-trait-items.rs b/tests/rustdoc/auxiliary/cross-crate-hidden-assoc-trait-items.rs similarity index 100% rename from src/test/rustdoc/auxiliary/cross-crate-hidden-assoc-trait-items.rs rename to tests/rustdoc/auxiliary/cross-crate-hidden-assoc-trait-items.rs diff --git a/src/test/rustdoc/auxiliary/cross-crate-hidden-impl-parameter.rs b/tests/rustdoc/auxiliary/cross-crate-hidden-impl-parameter.rs similarity index 100% rename from src/test/rustdoc/auxiliary/cross-crate-hidden-impl-parameter.rs rename to tests/rustdoc/auxiliary/cross-crate-hidden-impl-parameter.rs diff --git a/src/test/rustdoc/auxiliary/elided-lifetime.rs b/tests/rustdoc/auxiliary/elided-lifetime.rs similarity index 100% rename from src/test/rustdoc/auxiliary/elided-lifetime.rs rename to tests/rustdoc/auxiliary/elided-lifetime.rs diff --git a/src/test/rustdoc/auxiliary/empty.rs b/tests/rustdoc/auxiliary/empty.rs similarity index 100% rename from src/test/rustdoc/auxiliary/empty.rs rename to tests/rustdoc/auxiliary/empty.rs diff --git a/src/test/rustdoc/auxiliary/enum-primitive.rs b/tests/rustdoc/auxiliary/enum-primitive.rs similarity index 100% rename from src/test/rustdoc/auxiliary/enum-primitive.rs rename to tests/rustdoc/auxiliary/enum-primitive.rs diff --git a/src/test/rustdoc/auxiliary/extern-impl-trait.rs b/tests/rustdoc/auxiliary/extern-impl-trait.rs similarity index 100% rename from src/test/rustdoc/auxiliary/extern-impl-trait.rs rename to tests/rustdoc/auxiliary/extern-impl-trait.rs diff --git a/src/test/rustdoc/auxiliary/extern-links.rs b/tests/rustdoc/auxiliary/extern-links.rs similarity index 100% rename from src/test/rustdoc/auxiliary/extern-links.rs rename to tests/rustdoc/auxiliary/extern-links.rs diff --git a/src/test/rustdoc/auxiliary/external-cross-doc.md b/tests/rustdoc/auxiliary/external-cross-doc.md similarity index 100% rename from src/test/rustdoc/auxiliary/external-cross-doc.md rename to tests/rustdoc/auxiliary/external-cross-doc.md diff --git a/src/test/rustdoc/auxiliary/external-cross.rs b/tests/rustdoc/auxiliary/external-cross.rs similarity index 100% rename from src/test/rustdoc/auxiliary/external-cross.rs rename to tests/rustdoc/auxiliary/external-cross.rs diff --git a/src/test/rustdoc/auxiliary/external-doc.md b/tests/rustdoc/auxiliary/external-doc.md similarity index 100% rename from src/test/rustdoc/auxiliary/external-doc.md rename to tests/rustdoc/auxiliary/external-doc.md diff --git a/src/test/rustdoc/auxiliary/external-macro-src.rs b/tests/rustdoc/auxiliary/external-macro-src.rs similarity index 100% rename from src/test/rustdoc/auxiliary/external-macro-src.rs rename to tests/rustdoc/auxiliary/external-macro-src.rs diff --git a/src/test/rustdoc/auxiliary/html_root.rs b/tests/rustdoc/auxiliary/html_root.rs similarity index 100% rename from src/test/rustdoc/auxiliary/html_root.rs rename to tests/rustdoc/auxiliary/html_root.rs diff --git a/src/test/rustdoc/auxiliary/incoherent-impl-types.rs b/tests/rustdoc/auxiliary/incoherent-impl-types.rs similarity index 100% rename from src/test/rustdoc/auxiliary/incoherent-impl-types.rs rename to tests/rustdoc/auxiliary/incoherent-impl-types.rs diff --git a/src/test/rustdoc/auxiliary/inline-default-methods.rs b/tests/rustdoc/auxiliary/inline-default-methods.rs similarity index 100% rename from src/test/rustdoc/auxiliary/inline-default-methods.rs rename to tests/rustdoc/auxiliary/inline-default-methods.rs diff --git a/src/test/rustdoc/auxiliary/issue-100204-aux.rs b/tests/rustdoc/auxiliary/issue-100204-aux.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-100204-aux.rs rename to tests/rustdoc/auxiliary/issue-100204-aux.rs diff --git a/src/test/rustdoc/auxiliary/issue-13698.rs b/tests/rustdoc/auxiliary/issue-13698.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-13698.rs rename to tests/rustdoc/auxiliary/issue-13698.rs diff --git a/src/test/rustdoc/auxiliary/issue-15318.rs b/tests/rustdoc/auxiliary/issue-15318.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-15318.rs rename to tests/rustdoc/auxiliary/issue-15318.rs diff --git a/src/test/rustdoc/auxiliary/issue-17476.rs b/tests/rustdoc/auxiliary/issue-17476.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-17476.rs rename to tests/rustdoc/auxiliary/issue-17476.rs diff --git a/src/test/rustdoc/auxiliary/issue-19190-3.rs b/tests/rustdoc/auxiliary/issue-19190-3.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-19190-3.rs rename to tests/rustdoc/auxiliary/issue-19190-3.rs diff --git a/src/test/rustdoc/auxiliary/issue-20646.rs b/tests/rustdoc/auxiliary/issue-20646.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-20646.rs rename to tests/rustdoc/auxiliary/issue-20646.rs diff --git a/src/test/rustdoc/auxiliary/issue-20727.rs b/tests/rustdoc/auxiliary/issue-20727.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-20727.rs rename to tests/rustdoc/auxiliary/issue-20727.rs diff --git a/src/test/rustdoc/auxiliary/issue-21092.rs b/tests/rustdoc/auxiliary/issue-21092.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-21092.rs rename to tests/rustdoc/auxiliary/issue-21092.rs diff --git a/src/test/rustdoc/auxiliary/issue-21801.rs b/tests/rustdoc/auxiliary/issue-21801.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-21801.rs rename to tests/rustdoc/auxiliary/issue-21801.rs diff --git a/src/test/rustdoc/auxiliary/issue-22025.rs b/tests/rustdoc/auxiliary/issue-22025.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-22025.rs rename to tests/rustdoc/auxiliary/issue-22025.rs diff --git a/src/test/rustdoc/auxiliary/issue-23207-1.rs b/tests/rustdoc/auxiliary/issue-23207-1.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-23207-1.rs rename to tests/rustdoc/auxiliary/issue-23207-1.rs diff --git a/src/test/rustdoc/auxiliary/issue-23207-2.rs b/tests/rustdoc/auxiliary/issue-23207-2.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-23207-2.rs rename to tests/rustdoc/auxiliary/issue-23207-2.rs diff --git a/src/test/rustdoc/auxiliary/issue-26606-macro.rs b/tests/rustdoc/auxiliary/issue-26606-macro.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-26606-macro.rs rename to tests/rustdoc/auxiliary/issue-26606-macro.rs diff --git a/src/test/rustdoc/auxiliary/issue-27362-aux.rs b/tests/rustdoc/auxiliary/issue-27362-aux.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-27362-aux.rs rename to tests/rustdoc/auxiliary/issue-27362-aux.rs diff --git a/src/test/rustdoc/auxiliary/issue-28927-1.rs b/tests/rustdoc/auxiliary/issue-28927-1.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-28927-1.rs rename to tests/rustdoc/auxiliary/issue-28927-1.rs diff --git a/src/test/rustdoc/auxiliary/issue-28927-2.rs b/tests/rustdoc/auxiliary/issue-28927-2.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-28927-2.rs rename to tests/rustdoc/auxiliary/issue-28927-2.rs diff --git a/src/test/rustdoc/auxiliary/issue-29584.rs b/tests/rustdoc/auxiliary/issue-29584.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-29584.rs rename to tests/rustdoc/auxiliary/issue-29584.rs diff --git a/src/test/rustdoc/auxiliary/issue-30109-1.rs b/tests/rustdoc/auxiliary/issue-30109-1.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-30109-1.rs rename to tests/rustdoc/auxiliary/issue-30109-1.rs diff --git a/src/test/rustdoc/auxiliary/issue-34274.rs b/tests/rustdoc/auxiliary/issue-34274.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-34274.rs rename to tests/rustdoc/auxiliary/issue-34274.rs diff --git a/src/test/rustdoc/auxiliary/issue-36031.rs b/tests/rustdoc/auxiliary/issue-36031.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-36031.rs rename to tests/rustdoc/auxiliary/issue-36031.rs diff --git a/src/test/rustdoc/auxiliary/issue-40936.rs b/tests/rustdoc/auxiliary/issue-40936.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-40936.rs rename to tests/rustdoc/auxiliary/issue-40936.rs diff --git a/src/test/rustdoc/auxiliary/issue-46727.rs b/tests/rustdoc/auxiliary/issue-46727.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-46727.rs rename to tests/rustdoc/auxiliary/issue-46727.rs diff --git a/src/test/rustdoc/auxiliary/issue-48414.rs b/tests/rustdoc/auxiliary/issue-48414.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-48414.rs rename to tests/rustdoc/auxiliary/issue-48414.rs diff --git a/src/test/rustdoc/auxiliary/issue-53689.rs b/tests/rustdoc/auxiliary/issue-53689.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-53689.rs rename to tests/rustdoc/auxiliary/issue-53689.rs diff --git a/src/test/rustdoc/auxiliary/issue-57180.rs b/tests/rustdoc/auxiliary/issue-57180.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-57180.rs rename to tests/rustdoc/auxiliary/issue-57180.rs diff --git a/src/test/rustdoc/auxiliary/issue-61592.rs b/tests/rustdoc/auxiliary/issue-61592.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-61592.rs rename to tests/rustdoc/auxiliary/issue-61592.rs diff --git a/src/test/rustdoc/auxiliary/issue-73061.rs b/tests/rustdoc/auxiliary/issue-73061.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-73061.rs rename to tests/rustdoc/auxiliary/issue-73061.rs diff --git a/src/test/rustdoc/auxiliary/issue-85454.rs b/tests/rustdoc/auxiliary/issue-85454.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-85454.rs rename to tests/rustdoc/auxiliary/issue-85454.rs diff --git a/src/test/rustdoc/auxiliary/issue-86620-1.rs b/tests/rustdoc/auxiliary/issue-86620-1.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-86620-1.rs rename to tests/rustdoc/auxiliary/issue-86620-1.rs diff --git a/src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs b/tests/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs rename to tests/rustdoc/auxiliary/issue-98697-reexport-with-anonymous-lifetime.rs diff --git a/src/test/rustdoc/auxiliary/issue-99221-aux.rs b/tests/rustdoc/auxiliary/issue-99221-aux.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-99221-aux.rs rename to tests/rustdoc/auxiliary/issue-99221-aux.rs diff --git a/src/test/rustdoc/auxiliary/issue-99734-aux.rs b/tests/rustdoc/auxiliary/issue-99734-aux.rs similarity index 100% rename from src/test/rustdoc/auxiliary/issue-99734-aux.rs rename to tests/rustdoc/auxiliary/issue-99734-aux.rs diff --git a/src/test/rustdoc/auxiliary/macro_pub_in_module.rs b/tests/rustdoc/auxiliary/macro_pub_in_module.rs similarity index 100% rename from src/test/rustdoc/auxiliary/macro_pub_in_module.rs rename to tests/rustdoc/auxiliary/macro_pub_in_module.rs diff --git a/src/test/rustdoc/auxiliary/masked.rs b/tests/rustdoc/auxiliary/masked.rs similarity index 100% rename from src/test/rustdoc/auxiliary/masked.rs rename to tests/rustdoc/auxiliary/masked.rs diff --git a/src/test/rustdoc/auxiliary/mod-stackoverflow.rs b/tests/rustdoc/auxiliary/mod-stackoverflow.rs similarity index 100% rename from src/test/rustdoc/auxiliary/mod-stackoverflow.rs rename to tests/rustdoc/auxiliary/mod-stackoverflow.rs diff --git a/src/test/rustdoc/auxiliary/no_html_root.rs b/tests/rustdoc/auxiliary/no_html_root.rs similarity index 100% rename from src/test/rustdoc/auxiliary/no_html_root.rs rename to tests/rustdoc/auxiliary/no_html_root.rs diff --git a/src/test/rustdoc/auxiliary/normalize-assoc-item.rs b/tests/rustdoc/auxiliary/normalize-assoc-item.rs similarity index 100% rename from src/test/rustdoc/auxiliary/normalize-assoc-item.rs rename to tests/rustdoc/auxiliary/normalize-assoc-item.rs diff --git a/src/test/rustdoc/auxiliary/primitive-doc.rs b/tests/rustdoc/auxiliary/primitive-doc.rs similarity index 100% rename from src/test/rustdoc/auxiliary/primitive-doc.rs rename to tests/rustdoc/auxiliary/primitive-doc.rs diff --git a/src/test/rustdoc/auxiliary/primitive-reexport.rs b/tests/rustdoc/auxiliary/primitive-reexport.rs similarity index 100% rename from src/test/rustdoc/auxiliary/primitive-reexport.rs rename to tests/rustdoc/auxiliary/primitive-reexport.rs diff --git a/src/test/rustdoc/auxiliary/pub-extern-crate.rs b/tests/rustdoc/auxiliary/pub-extern-crate.rs similarity index 100% rename from src/test/rustdoc/auxiliary/pub-extern-crate.rs rename to tests/rustdoc/auxiliary/pub-extern-crate.rs diff --git a/src/test/rustdoc/auxiliary/pub-use-extern-macros.rs b/tests/rustdoc/auxiliary/pub-use-extern-macros.rs similarity index 100% rename from src/test/rustdoc/auxiliary/pub-use-extern-macros.rs rename to tests/rustdoc/auxiliary/pub-use-extern-macros.rs diff --git a/src/test/rustdoc/auxiliary/real_gimli.rs b/tests/rustdoc/auxiliary/real_gimli.rs similarity index 100% rename from src/test/rustdoc/auxiliary/real_gimli.rs rename to tests/rustdoc/auxiliary/real_gimli.rs diff --git a/src/test/rustdoc/auxiliary/realcore.rs b/tests/rustdoc/auxiliary/realcore.rs similarity index 100% rename from src/test/rustdoc/auxiliary/realcore.rs rename to tests/rustdoc/auxiliary/realcore.rs diff --git a/src/test/rustdoc/auxiliary/reexp-stripped.rs b/tests/rustdoc/auxiliary/reexp-stripped.rs similarity index 100% rename from src/test/rustdoc/auxiliary/reexp-stripped.rs rename to tests/rustdoc/auxiliary/reexp-stripped.rs diff --git a/src/test/rustdoc/auxiliary/reexport-check.rs b/tests/rustdoc/auxiliary/reexport-check.rs similarity index 100% rename from src/test/rustdoc/auxiliary/reexport-check.rs rename to tests/rustdoc/auxiliary/reexport-check.rs diff --git a/src/test/rustdoc/auxiliary/reexport-doc-aux.rs b/tests/rustdoc/auxiliary/reexport-doc-aux.rs similarity index 100% rename from src/test/rustdoc/auxiliary/reexport-doc-aux.rs rename to tests/rustdoc/auxiliary/reexport-doc-aux.rs diff --git a/src/test/rustdoc/auxiliary/reexports.rs b/tests/rustdoc/auxiliary/reexports.rs similarity index 100% rename from src/test/rustdoc/auxiliary/reexports.rs rename to tests/rustdoc/auxiliary/reexports.rs diff --git a/src/test/rustdoc/auxiliary/rustdoc-default-impl.rs b/tests/rustdoc/auxiliary/rustdoc-default-impl.rs similarity index 100% rename from src/test/rustdoc/auxiliary/rustdoc-default-impl.rs rename to tests/rustdoc/auxiliary/rustdoc-default-impl.rs diff --git a/src/test/rustdoc/auxiliary/rustdoc-extern-default-method.rs b/tests/rustdoc/auxiliary/rustdoc-extern-default-method.rs similarity index 100% rename from src/test/rustdoc/auxiliary/rustdoc-extern-default-method.rs rename to tests/rustdoc/auxiliary/rustdoc-extern-default-method.rs diff --git a/src/test/rustdoc/auxiliary/rustdoc-extern-method.rs b/tests/rustdoc/auxiliary/rustdoc-extern-method.rs similarity index 100% rename from src/test/rustdoc/auxiliary/rustdoc-extern-method.rs rename to tests/rustdoc/auxiliary/rustdoc-extern-method.rs diff --git a/src/test/rustdoc/auxiliary/rustdoc-ffi.rs b/tests/rustdoc/auxiliary/rustdoc-ffi.rs similarity index 100% rename from src/test/rustdoc/auxiliary/rustdoc-ffi.rs rename to tests/rustdoc/auxiliary/rustdoc-ffi.rs diff --git a/src/test/rustdoc/auxiliary/rustdoc-impl-parts-crosscrate.rs b/tests/rustdoc/auxiliary/rustdoc-impl-parts-crosscrate.rs similarity index 100% rename from src/test/rustdoc/auxiliary/rustdoc-impl-parts-crosscrate.rs rename to tests/rustdoc/auxiliary/rustdoc-impl-parts-crosscrate.rs diff --git a/src/test/rustdoc/auxiliary/source-code-bar.rs b/tests/rustdoc/auxiliary/source-code-bar.rs similarity index 100% rename from src/test/rustdoc/auxiliary/source-code-bar.rs rename to tests/rustdoc/auxiliary/source-code-bar.rs diff --git a/src/test/rustdoc/auxiliary/source_code.rs b/tests/rustdoc/auxiliary/source_code.rs similarity index 100% rename from src/test/rustdoc/auxiliary/source_code.rs rename to tests/rustdoc/auxiliary/source_code.rs diff --git a/src/test/rustdoc/auxiliary/src-links-external.rs b/tests/rustdoc/auxiliary/src-links-external.rs similarity index 100% rename from src/test/rustdoc/auxiliary/src-links-external.rs rename to tests/rustdoc/auxiliary/src-links-external.rs diff --git a/src/test/rustdoc/auxiliary/trait-alias-mention.rs b/tests/rustdoc/auxiliary/trait-alias-mention.rs similarity index 100% rename from src/test/rustdoc/auxiliary/trait-alias-mention.rs rename to tests/rustdoc/auxiliary/trait-alias-mention.rs diff --git a/src/test/rustdoc/auxiliary/trait-visibility.rs b/tests/rustdoc/auxiliary/trait-visibility.rs similarity index 100% rename from src/test/rustdoc/auxiliary/trait-visibility.rs rename to tests/rustdoc/auxiliary/trait-visibility.rs diff --git a/src/test/rustdoc/auxiliary/unit-return.rs b/tests/rustdoc/auxiliary/unit-return.rs similarity index 100% rename from src/test/rustdoc/auxiliary/unit-return.rs rename to tests/rustdoc/auxiliary/unit-return.rs diff --git a/src/test/rustdoc/auxiliary/unstable-trait.rs b/tests/rustdoc/auxiliary/unstable-trait.rs similarity index 100% rename from src/test/rustdoc/auxiliary/unstable-trait.rs rename to tests/rustdoc/auxiliary/unstable-trait.rs diff --git a/src/test/rustdoc/auxiliary/variant-struct.rs b/tests/rustdoc/auxiliary/variant-struct.rs similarity index 100% rename from src/test/rustdoc/auxiliary/variant-struct.rs rename to tests/rustdoc/auxiliary/variant-struct.rs diff --git a/src/test/rustdoc/bad-codeblock-syntax.rs b/tests/rustdoc/bad-codeblock-syntax.rs similarity index 100% rename from src/test/rustdoc/bad-codeblock-syntax.rs rename to tests/rustdoc/bad-codeblock-syntax.rs diff --git a/src/test/rustdoc/blanket-reexport-item.rs b/tests/rustdoc/blanket-reexport-item.rs similarity index 100% rename from src/test/rustdoc/blanket-reexport-item.rs rename to tests/rustdoc/blanket-reexport-item.rs diff --git a/src/test/rustdoc/bounds-in-multiple-parts.rs b/tests/rustdoc/bounds-in-multiple-parts.rs similarity index 100% rename from src/test/rustdoc/bounds-in-multiple-parts.rs rename to tests/rustdoc/bounds-in-multiple-parts.rs diff --git a/src/test/rustdoc/cap-lints.rs b/tests/rustdoc/cap-lints.rs similarity index 100% rename from src/test/rustdoc/cap-lints.rs rename to tests/rustdoc/cap-lints.rs diff --git a/src/test/rustdoc/cfg-doctest.rs b/tests/rustdoc/cfg-doctest.rs similarity index 100% rename from src/test/rustdoc/cfg-doctest.rs rename to tests/rustdoc/cfg-doctest.rs diff --git a/src/test/rustdoc/cfg_doc_reexport.rs b/tests/rustdoc/cfg_doc_reexport.rs similarity index 100% rename from src/test/rustdoc/cfg_doc_reexport.rs rename to tests/rustdoc/cfg_doc_reexport.rs diff --git a/src/test/rustdoc/check-source-code-urls-to-def-std.rs b/tests/rustdoc/check-source-code-urls-to-def-std.rs similarity index 100% rename from src/test/rustdoc/check-source-code-urls-to-def-std.rs rename to tests/rustdoc/check-source-code-urls-to-def-std.rs diff --git a/src/test/rustdoc/check-source-code-urls-to-def.rs b/tests/rustdoc/check-source-code-urls-to-def.rs similarity index 100% rename from src/test/rustdoc/check-source-code-urls-to-def.rs rename to tests/rustdoc/check-source-code-urls-to-def.rs diff --git a/src/test/rustdoc/check-styled-link.rs b/tests/rustdoc/check-styled-link.rs similarity index 100% rename from src/test/rustdoc/check-styled-link.rs rename to tests/rustdoc/check-styled-link.rs diff --git a/src/test/rustdoc/check.rs b/tests/rustdoc/check.rs similarity index 100% rename from src/test/rustdoc/check.rs rename to tests/rustdoc/check.rs diff --git a/src/test/rustdoc/codeblock-title.rs b/tests/rustdoc/codeblock-title.rs similarity index 100% rename from src/test/rustdoc/codeblock-title.rs rename to tests/rustdoc/codeblock-title.rs diff --git a/src/test/rustdoc/comment-in-doctest.rs b/tests/rustdoc/comment-in-doctest.rs similarity index 100% rename from src/test/rustdoc/comment-in-doctest.rs rename to tests/rustdoc/comment-in-doctest.rs diff --git a/src/test/rustdoc/const-display.rs b/tests/rustdoc/const-display.rs similarity index 100% rename from src/test/rustdoc/const-display.rs rename to tests/rustdoc/const-display.rs diff --git a/src/test/rustdoc/const-doc.rs b/tests/rustdoc/const-doc.rs similarity index 100% rename from src/test/rustdoc/const-doc.rs rename to tests/rustdoc/const-doc.rs diff --git a/src/test/rustdoc/const-fn.rs b/tests/rustdoc/const-fn.rs similarity index 100% rename from src/test/rustdoc/const-fn.rs rename to tests/rustdoc/const-fn.rs diff --git a/src/test/rustdoc/const-generics/add-impl.rs b/tests/rustdoc/const-generics/add-impl.rs similarity index 100% rename from src/test/rustdoc/const-generics/add-impl.rs rename to tests/rustdoc/const-generics/add-impl.rs diff --git a/src/test/rustdoc/const-generics/auxiliary/extern_crate.rs b/tests/rustdoc/const-generics/auxiliary/extern_crate.rs similarity index 100% rename from src/test/rustdoc/const-generics/auxiliary/extern_crate.rs rename to tests/rustdoc/const-generics/auxiliary/extern_crate.rs diff --git a/src/test/rustdoc/const-generics/const-generic-defaults.rs b/tests/rustdoc/const-generics/const-generic-defaults.rs similarity index 100% rename from src/test/rustdoc/const-generics/const-generic-defaults.rs rename to tests/rustdoc/const-generics/const-generic-defaults.rs diff --git a/src/test/rustdoc/const-generics/const-generic-slice.rs b/tests/rustdoc/const-generics/const-generic-slice.rs similarity index 100% rename from src/test/rustdoc/const-generics/const-generic-slice.rs rename to tests/rustdoc/const-generics/const-generic-slice.rs diff --git a/src/test/rustdoc/const-generics/const-generics-docs.rs b/tests/rustdoc/const-generics/const-generics-docs.rs similarity index 100% rename from src/test/rustdoc/const-generics/const-generics-docs.rs rename to tests/rustdoc/const-generics/const-generics-docs.rs diff --git a/src/test/rustdoc/const-generics/const-impl.rs b/tests/rustdoc/const-generics/const-impl.rs similarity index 100% rename from src/test/rustdoc/const-generics/const-impl.rs rename to tests/rustdoc/const-generics/const-impl.rs diff --git a/src/test/rustdoc/const-generics/generic_const_exprs.rs b/tests/rustdoc/const-generics/generic_const_exprs.rs similarity index 100% rename from src/test/rustdoc/const-generics/generic_const_exprs.rs rename to tests/rustdoc/const-generics/generic_const_exprs.rs diff --git a/src/test/rustdoc/const-generics/lazy_normalization_consts/const-equate-pred.rs b/tests/rustdoc/const-generics/lazy_normalization_consts/const-equate-pred.rs similarity index 100% rename from src/test/rustdoc/const-generics/lazy_normalization_consts/const-equate-pred.rs rename to tests/rustdoc/const-generics/lazy_normalization_consts/const-equate-pred.rs diff --git a/src/test/rustdoc/const-generics/type-alias.rs b/tests/rustdoc/const-generics/type-alias.rs similarity index 100% rename from src/test/rustdoc/const-generics/type-alias.rs rename to tests/rustdoc/const-generics/type-alias.rs diff --git a/src/test/rustdoc/const-underscore.rs b/tests/rustdoc/const-underscore.rs similarity index 100% rename from src/test/rustdoc/const-underscore.rs rename to tests/rustdoc/const-underscore.rs diff --git a/src/test/rustdoc/const-value-display.rs b/tests/rustdoc/const-value-display.rs similarity index 100% rename from src/test/rustdoc/const-value-display.rs rename to tests/rustdoc/const-value-display.rs diff --git a/src/test/rustdoc/const.rs b/tests/rustdoc/const.rs similarity index 100% rename from src/test/rustdoc/const.rs rename to tests/rustdoc/const.rs diff --git a/src/test/rustdoc/constructor-imports.rs b/tests/rustdoc/constructor-imports.rs similarity index 100% rename from src/test/rustdoc/constructor-imports.rs rename to tests/rustdoc/constructor-imports.rs diff --git a/src/test/rustdoc/crate-version-escape.rs b/tests/rustdoc/crate-version-escape.rs similarity index 100% rename from src/test/rustdoc/crate-version-escape.rs rename to tests/rustdoc/crate-version-escape.rs diff --git a/src/test/rustdoc/crate-version.rs b/tests/rustdoc/crate-version.rs similarity index 100% rename from src/test/rustdoc/crate-version.rs rename to tests/rustdoc/crate-version.rs diff --git a/src/test/rustdoc/cross-crate-hidden-assoc-trait-items.rs b/tests/rustdoc/cross-crate-hidden-assoc-trait-items.rs similarity index 100% rename from src/test/rustdoc/cross-crate-hidden-assoc-trait-items.rs rename to tests/rustdoc/cross-crate-hidden-assoc-trait-items.rs diff --git a/src/test/rustdoc/cross-crate-hidden-impl-parameter.rs b/tests/rustdoc/cross-crate-hidden-impl-parameter.rs similarity index 100% rename from src/test/rustdoc/cross-crate-hidden-impl-parameter.rs rename to tests/rustdoc/cross-crate-hidden-impl-parameter.rs diff --git a/src/test/rustdoc/cross-crate-links.rs b/tests/rustdoc/cross-crate-links.rs similarity index 100% rename from src/test/rustdoc/cross-crate-links.rs rename to tests/rustdoc/cross-crate-links.rs diff --git a/src/test/rustdoc/cross-crate-primitive-doc.rs b/tests/rustdoc/cross-crate-primitive-doc.rs similarity index 100% rename from src/test/rustdoc/cross-crate-primitive-doc.rs rename to tests/rustdoc/cross-crate-primitive-doc.rs diff --git a/src/test/rustdoc/decl-trailing-whitespace.declaration.html b/tests/rustdoc/decl-trailing-whitespace.declaration.html similarity index 100% rename from src/test/rustdoc/decl-trailing-whitespace.declaration.html rename to tests/rustdoc/decl-trailing-whitespace.declaration.html diff --git a/src/test/rustdoc/decl-trailing-whitespace.rs b/tests/rustdoc/decl-trailing-whitespace.rs similarity index 100% rename from src/test/rustdoc/decl-trailing-whitespace.rs rename to tests/rustdoc/decl-trailing-whitespace.rs diff --git a/src/test/rustdoc/decl_macro.rs b/tests/rustdoc/decl_macro.rs similarity index 100% rename from src/test/rustdoc/decl_macro.rs rename to tests/rustdoc/decl_macro.rs diff --git a/src/test/rustdoc/decl_macro_priv.rs b/tests/rustdoc/decl_macro_priv.rs similarity index 100% rename from src/test/rustdoc/decl_macro_priv.rs rename to tests/rustdoc/decl_macro_priv.rs diff --git a/src/test/rustdoc/deep-structures.rs b/tests/rustdoc/deep-structures.rs similarity index 100% rename from src/test/rustdoc/deep-structures.rs rename to tests/rustdoc/deep-structures.rs diff --git a/src/test/rustdoc/default-impl.rs b/tests/rustdoc/default-impl.rs similarity index 100% rename from src/test/rustdoc/default-impl.rs rename to tests/rustdoc/default-impl.rs diff --git a/src/test/rustdoc/default-theme.rs b/tests/rustdoc/default-theme.rs similarity index 100% rename from src/test/rustdoc/default-theme.rs rename to tests/rustdoc/default-theme.rs diff --git a/src/test/rustdoc/default-trait-method-link.rs b/tests/rustdoc/default-trait-method-link.rs similarity index 100% rename from src/test/rustdoc/default-trait-method-link.rs rename to tests/rustdoc/default-trait-method-link.rs diff --git a/src/test/rustdoc/default-trait-method.rs b/tests/rustdoc/default-trait-method.rs similarity index 100% rename from src/test/rustdoc/default-trait-method.rs rename to tests/rustdoc/default-trait-method.rs diff --git a/src/test/rustdoc/deprecated-future-staged-api.rs b/tests/rustdoc/deprecated-future-staged-api.rs similarity index 100% rename from src/test/rustdoc/deprecated-future-staged-api.rs rename to tests/rustdoc/deprecated-future-staged-api.rs diff --git a/src/test/rustdoc/deprecated-future.rs b/tests/rustdoc/deprecated-future.rs similarity index 100% rename from src/test/rustdoc/deprecated-future.rs rename to tests/rustdoc/deprecated-future.rs diff --git a/src/test/rustdoc/deprecated-impls.rs b/tests/rustdoc/deprecated-impls.rs similarity index 100% rename from src/test/rustdoc/deprecated-impls.rs rename to tests/rustdoc/deprecated-impls.rs diff --git a/src/test/rustdoc/deprecated.rs b/tests/rustdoc/deprecated.rs similarity index 100% rename from src/test/rustdoc/deprecated.rs rename to tests/rustdoc/deprecated.rs diff --git a/src/test/rustdoc/deref-const-fn.rs b/tests/rustdoc/deref-const-fn.rs similarity index 100% rename from src/test/rustdoc/deref-const-fn.rs rename to tests/rustdoc/deref-const-fn.rs diff --git a/src/test/rustdoc/deref-mut-methods.rs b/tests/rustdoc/deref-mut-methods.rs similarity index 100% rename from src/test/rustdoc/deref-mut-methods.rs rename to tests/rustdoc/deref-mut-methods.rs diff --git a/src/test/rustdoc/deref-recursive-pathbuf.rs b/tests/rustdoc/deref-recursive-pathbuf.rs similarity index 100% rename from src/test/rustdoc/deref-recursive-pathbuf.rs rename to tests/rustdoc/deref-recursive-pathbuf.rs diff --git a/src/test/rustdoc/deref-recursive.rs b/tests/rustdoc/deref-recursive.rs similarity index 100% rename from src/test/rustdoc/deref-recursive.rs rename to tests/rustdoc/deref-recursive.rs diff --git a/src/test/rustdoc/deref-slice-core.rs b/tests/rustdoc/deref-slice-core.rs similarity index 100% rename from src/test/rustdoc/deref-slice-core.rs rename to tests/rustdoc/deref-slice-core.rs diff --git a/src/test/rustdoc/deref-to-primitive.rs b/tests/rustdoc/deref-to-primitive.rs similarity index 100% rename from src/test/rustdoc/deref-to-primitive.rs rename to tests/rustdoc/deref-to-primitive.rs diff --git a/src/test/rustdoc/deref-typedef.rs b/tests/rustdoc/deref-typedef.rs similarity index 100% rename from src/test/rustdoc/deref-typedef.rs rename to tests/rustdoc/deref-typedef.rs diff --git a/src/test/rustdoc/description.rs b/tests/rustdoc/description.rs similarity index 100% rename from src/test/rustdoc/description.rs rename to tests/rustdoc/description.rs diff --git a/src/test/rustdoc/description_default.rs b/tests/rustdoc/description_default.rs similarity index 100% rename from src/test/rustdoc/description_default.rs rename to tests/rustdoc/description_default.rs diff --git a/src/test/rustdoc/doc-assoc-item.rs b/tests/rustdoc/doc-assoc-item.rs similarity index 100% rename from src/test/rustdoc/doc-assoc-item.rs rename to tests/rustdoc/doc-assoc-item.rs diff --git a/src/test/rustdoc/doc-auto-cfg.rs b/tests/rustdoc/doc-auto-cfg.rs similarity index 100% rename from src/test/rustdoc/doc-auto-cfg.rs rename to tests/rustdoc/doc-auto-cfg.rs diff --git a/src/test/rustdoc/doc-cfg-hide.rs b/tests/rustdoc/doc-cfg-hide.rs similarity index 100% rename from src/test/rustdoc/doc-cfg-hide.rs rename to tests/rustdoc/doc-cfg-hide.rs diff --git a/src/test/rustdoc/doc-cfg-implicit-gate.rs b/tests/rustdoc/doc-cfg-implicit-gate.rs similarity index 100% rename from src/test/rustdoc/doc-cfg-implicit-gate.rs rename to tests/rustdoc/doc-cfg-implicit-gate.rs diff --git a/src/test/rustdoc/doc-cfg-implicit.rs b/tests/rustdoc/doc-cfg-implicit.rs similarity index 100% rename from src/test/rustdoc/doc-cfg-implicit.rs rename to tests/rustdoc/doc-cfg-implicit.rs diff --git a/src/test/rustdoc/doc-cfg-simplification.rs b/tests/rustdoc/doc-cfg-simplification.rs similarity index 100% rename from src/test/rustdoc/doc-cfg-simplification.rs rename to tests/rustdoc/doc-cfg-simplification.rs diff --git a/src/test/rustdoc/doc-cfg-target-feature.rs b/tests/rustdoc/doc-cfg-target-feature.rs similarity index 100% rename from src/test/rustdoc/doc-cfg-target-feature.rs rename to tests/rustdoc/doc-cfg-target-feature.rs diff --git a/src/test/rustdoc/doc-cfg-traits.rs b/tests/rustdoc/doc-cfg-traits.rs similarity index 100% rename from src/test/rustdoc/doc-cfg-traits.rs rename to tests/rustdoc/doc-cfg-traits.rs diff --git a/src/test/rustdoc/doc-cfg.rs b/tests/rustdoc/doc-cfg.rs similarity index 100% rename from src/test/rustdoc/doc-cfg.rs rename to tests/rustdoc/doc-cfg.rs diff --git a/src/test/rustdoc/doc-notable_trait-mut_t_is_not_an_iterator.rs b/tests/rustdoc/doc-notable_trait-mut_t_is_not_an_iterator.rs similarity index 100% rename from src/test/rustdoc/doc-notable_trait-mut_t_is_not_an_iterator.rs rename to tests/rustdoc/doc-notable_trait-mut_t_is_not_an_iterator.rs diff --git a/src/test/rustdoc/doc-notable_trait-mut_t_is_not_ref_t.rs b/tests/rustdoc/doc-notable_trait-mut_t_is_not_ref_t.rs similarity index 100% rename from src/test/rustdoc/doc-notable_trait-mut_t_is_not_ref_t.rs rename to tests/rustdoc/doc-notable_trait-mut_t_is_not_ref_t.rs diff --git a/src/test/rustdoc/doc-notable_trait-slice.bare_fn_matches.html b/tests/rustdoc/doc-notable_trait-slice.bare_fn_matches.html similarity index 100% rename from src/test/rustdoc/doc-notable_trait-slice.bare_fn_matches.html rename to tests/rustdoc/doc-notable_trait-slice.bare_fn_matches.html diff --git a/src/test/rustdoc/doc-notable_trait-slice.rs b/tests/rustdoc/doc-notable_trait-slice.rs similarity index 100% rename from src/test/rustdoc/doc-notable_trait-slice.rs rename to tests/rustdoc/doc-notable_trait-slice.rs diff --git a/src/test/rustdoc/doc-notable_trait.bare-fn.html b/tests/rustdoc/doc-notable_trait.bare-fn.html similarity index 100% rename from src/test/rustdoc/doc-notable_trait.bare-fn.html rename to tests/rustdoc/doc-notable_trait.bare-fn.html diff --git a/src/test/rustdoc/doc-notable_trait.rs b/tests/rustdoc/doc-notable_trait.rs similarity index 100% rename from src/test/rustdoc/doc-notable_trait.rs rename to tests/rustdoc/doc-notable_trait.rs diff --git a/src/test/rustdoc/doc-notable_trait.some-struct-new.html b/tests/rustdoc/doc-notable_trait.some-struct-new.html similarity index 100% rename from src/test/rustdoc/doc-notable_trait.some-struct-new.html rename to tests/rustdoc/doc-notable_trait.some-struct-new.html diff --git a/src/test/rustdoc/doc-notable_trait.wrap-me.html b/tests/rustdoc/doc-notable_trait.wrap-me.html similarity index 100% rename from src/test/rustdoc/doc-notable_trait.wrap-me.html rename to tests/rustdoc/doc-notable_trait.wrap-me.html diff --git a/src/test/rustdoc/doc-notable_trait_box_is_not_an_iterator.rs b/tests/rustdoc/doc-notable_trait_box_is_not_an_iterator.rs similarity index 100% rename from src/test/rustdoc/doc-notable_trait_box_is_not_an_iterator.rs rename to tests/rustdoc/doc-notable_trait_box_is_not_an_iterator.rs diff --git a/src/test/rustdoc/doc-proc-macro.rs b/tests/rustdoc/doc-proc-macro.rs similarity index 100% rename from src/test/rustdoc/doc-proc-macro.rs rename to tests/rustdoc/doc-proc-macro.rs diff --git a/src/test/rustdoc/doc_auto_cfg_nested_impl.rs b/tests/rustdoc/doc_auto_cfg_nested_impl.rs similarity index 100% rename from src/test/rustdoc/doc_auto_cfg_nested_impl.rs rename to tests/rustdoc/doc_auto_cfg_nested_impl.rs diff --git a/src/test/rustdoc/doctest-manual-crate-name.rs b/tests/rustdoc/doctest-manual-crate-name.rs similarity index 100% rename from src/test/rustdoc/doctest-manual-crate-name.rs rename to tests/rustdoc/doctest-manual-crate-name.rs diff --git a/src/test/rustdoc/double-quote-escape.rs b/tests/rustdoc/double-quote-escape.rs similarity index 100% rename from src/test/rustdoc/double-quote-escape.rs rename to tests/rustdoc/double-quote-escape.rs diff --git a/src/test/rustdoc/duplicate-cfg.rs b/tests/rustdoc/duplicate-cfg.rs similarity index 100% rename from src/test/rustdoc/duplicate-cfg.rs rename to tests/rustdoc/duplicate-cfg.rs diff --git a/src/test/rustdoc/duplicate-flags.rs b/tests/rustdoc/duplicate-flags.rs similarity index 100% rename from src/test/rustdoc/duplicate-flags.rs rename to tests/rustdoc/duplicate-flags.rs diff --git a/src/test/rustdoc/duplicate_impls/impls.rs b/tests/rustdoc/duplicate_impls/impls.rs similarity index 100% rename from src/test/rustdoc/duplicate_impls/impls.rs rename to tests/rustdoc/duplicate_impls/impls.rs diff --git a/src/test/rustdoc/duplicate_impls/issue-33054.rs b/tests/rustdoc/duplicate_impls/issue-33054.rs similarity index 100% rename from src/test/rustdoc/duplicate_impls/issue-33054.rs rename to tests/rustdoc/duplicate_impls/issue-33054.rs diff --git a/src/test/rustdoc/duplicated_impl.rs b/tests/rustdoc/duplicated_impl.rs similarity index 100% rename from src/test/rustdoc/duplicated_impl.rs rename to tests/rustdoc/duplicated_impl.rs diff --git a/src/test/rustdoc/early-unindent.rs b/tests/rustdoc/early-unindent.rs similarity index 100% rename from src/test/rustdoc/early-unindent.rs rename to tests/rustdoc/early-unindent.rs diff --git a/src/test/rustdoc/edition-doctest.rs b/tests/rustdoc/edition-doctest.rs similarity index 100% rename from src/test/rustdoc/edition-doctest.rs rename to tests/rustdoc/edition-doctest.rs diff --git a/src/test/rustdoc/edition-flag.rs b/tests/rustdoc/edition-flag.rs similarity index 100% rename from src/test/rustdoc/edition-flag.rs rename to tests/rustdoc/edition-flag.rs diff --git a/src/test/rustdoc/elided-lifetime.rs b/tests/rustdoc/elided-lifetime.rs similarity index 100% rename from src/test/rustdoc/elided-lifetime.rs rename to tests/rustdoc/elided-lifetime.rs diff --git a/src/test/rustdoc/empty-doc-comment.rs b/tests/rustdoc/empty-doc-comment.rs similarity index 100% rename from src/test/rustdoc/empty-doc-comment.rs rename to tests/rustdoc/empty-doc-comment.rs diff --git a/src/test/rustdoc/empty-impl-block-private-with-doc.rs b/tests/rustdoc/empty-impl-block-private-with-doc.rs similarity index 100% rename from src/test/rustdoc/empty-impl-block-private-with-doc.rs rename to tests/rustdoc/empty-impl-block-private-with-doc.rs diff --git a/src/test/rustdoc/empty-impl-block-private.rs b/tests/rustdoc/empty-impl-block-private.rs similarity index 100% rename from src/test/rustdoc/empty-impl-block-private.rs rename to tests/rustdoc/empty-impl-block-private.rs diff --git a/src/test/rustdoc/empty-impl-block.rs b/tests/rustdoc/empty-impl-block.rs similarity index 100% rename from src/test/rustdoc/empty-impl-block.rs rename to tests/rustdoc/empty-impl-block.rs diff --git a/src/test/rustdoc/empty-impls.rs b/tests/rustdoc/empty-impls.rs similarity index 100% rename from src/test/rustdoc/empty-impls.rs rename to tests/rustdoc/empty-impls.rs diff --git a/src/test/rustdoc/empty-mod-private.rs b/tests/rustdoc/empty-mod-private.rs similarity index 100% rename from src/test/rustdoc/empty-mod-private.rs rename to tests/rustdoc/empty-mod-private.rs diff --git a/src/test/rustdoc/empty-mod-public.rs b/tests/rustdoc/empty-mod-public.rs similarity index 100% rename from src/test/rustdoc/empty-mod-public.rs rename to tests/rustdoc/empty-mod-public.rs diff --git a/src/test/rustdoc/empty-section.rs b/tests/rustdoc/empty-section.rs similarity index 100% rename from src/test/rustdoc/empty-section.rs rename to tests/rustdoc/empty-section.rs diff --git a/src/test/rustdoc/ensure-src-link.rs b/tests/rustdoc/ensure-src-link.rs similarity index 100% rename from src/test/rustdoc/ensure-src-link.rs rename to tests/rustdoc/ensure-src-link.rs diff --git a/src/test/rustdoc/enum-headings.rs b/tests/rustdoc/enum-headings.rs similarity index 100% rename from src/test/rustdoc/enum-headings.rs rename to tests/rustdoc/enum-headings.rs diff --git a/src/test/rustdoc/escape-deref-methods.rs b/tests/rustdoc/escape-deref-methods.rs similarity index 100% rename from src/test/rustdoc/escape-deref-methods.rs rename to tests/rustdoc/escape-deref-methods.rs diff --git a/src/test/rustdoc/extern-default-method.no_href_on_anchor.html b/tests/rustdoc/extern-default-method.no_href_on_anchor.html similarity index 100% rename from src/test/rustdoc/extern-default-method.no_href_on_anchor.html rename to tests/rustdoc/extern-default-method.no_href_on_anchor.html diff --git a/src/test/rustdoc/extern-default-method.rs b/tests/rustdoc/extern-default-method.rs similarity index 100% rename from src/test/rustdoc/extern-default-method.rs rename to tests/rustdoc/extern-default-method.rs diff --git a/src/test/rustdoc/extern-html-root-url-precedence.rs b/tests/rustdoc/extern-html-root-url-precedence.rs similarity index 100% rename from src/test/rustdoc/extern-html-root-url-precedence.rs rename to tests/rustdoc/extern-html-root-url-precedence.rs diff --git a/src/test/rustdoc/extern-html-root-url.rs b/tests/rustdoc/extern-html-root-url.rs similarity index 100% rename from src/test/rustdoc/extern-html-root-url.rs rename to tests/rustdoc/extern-html-root-url.rs diff --git a/src/test/rustdoc/extern-impl-trait.rs b/tests/rustdoc/extern-impl-trait.rs similarity index 100% rename from src/test/rustdoc/extern-impl-trait.rs rename to tests/rustdoc/extern-impl-trait.rs diff --git a/src/test/rustdoc/extern-impl.rs b/tests/rustdoc/extern-impl.rs similarity index 100% rename from src/test/rustdoc/extern-impl.rs rename to tests/rustdoc/extern-impl.rs diff --git a/src/test/rustdoc/extern-links.rs b/tests/rustdoc/extern-links.rs similarity index 100% rename from src/test/rustdoc/extern-links.rs rename to tests/rustdoc/extern-links.rs diff --git a/src/test/rustdoc/extern-method.rs b/tests/rustdoc/extern-method.rs similarity index 100% rename from src/test/rustdoc/extern-method.rs rename to tests/rustdoc/extern-method.rs diff --git a/src/test/rustdoc/external-cross.rs b/tests/rustdoc/external-cross.rs similarity index 100% rename from src/test/rustdoc/external-cross.rs rename to tests/rustdoc/external-cross.rs diff --git a/src/test/rustdoc/external-doc.rs b/tests/rustdoc/external-doc.rs similarity index 100% rename from src/test/rustdoc/external-doc.rs rename to tests/rustdoc/external-doc.rs diff --git a/src/test/rustdoc/external-macro-src.rs b/tests/rustdoc/external-macro-src.rs similarity index 100% rename from src/test/rustdoc/external-macro-src.rs rename to tests/rustdoc/external-macro-src.rs diff --git a/src/test/rustdoc/feature-gate-doc_auto_cfg.rs b/tests/rustdoc/feature-gate-doc_auto_cfg.rs similarity index 100% rename from src/test/rustdoc/feature-gate-doc_auto_cfg.rs rename to tests/rustdoc/feature-gate-doc_auto_cfg.rs diff --git a/src/test/rustdoc/ffi.rs b/tests/rustdoc/ffi.rs similarity index 100% rename from src/test/rustdoc/ffi.rs rename to tests/rustdoc/ffi.rs diff --git a/src/test/rustdoc/fn-bound.rs b/tests/rustdoc/fn-bound.rs similarity index 100% rename from src/test/rustdoc/fn-bound.rs rename to tests/rustdoc/fn-bound.rs diff --git a/src/test/rustdoc/fn-pointer-arg-name.rs b/tests/rustdoc/fn-pointer-arg-name.rs similarity index 100% rename from src/test/rustdoc/fn-pointer-arg-name.rs rename to tests/rustdoc/fn-pointer-arg-name.rs diff --git a/src/test/rustdoc/fn-sidebar.rs b/tests/rustdoc/fn-sidebar.rs similarity index 100% rename from src/test/rustdoc/fn-sidebar.rs rename to tests/rustdoc/fn-sidebar.rs diff --git a/src/test/rustdoc/fn-type.rs b/tests/rustdoc/fn-type.rs similarity index 100% rename from src/test/rustdoc/fn-type.rs rename to tests/rustdoc/fn-type.rs diff --git a/src/test/rustdoc/force-target-feature.rs b/tests/rustdoc/force-target-feature.rs similarity index 100% rename from src/test/rustdoc/force-target-feature.rs rename to tests/rustdoc/force-target-feature.rs diff --git a/src/test/rustdoc/foreigntype-reexport.rs b/tests/rustdoc/foreigntype-reexport.rs similarity index 100% rename from src/test/rustdoc/foreigntype-reexport.rs rename to tests/rustdoc/foreigntype-reexport.rs diff --git a/src/test/rustdoc/foreigntype.rs b/tests/rustdoc/foreigntype.rs similarity index 100% rename from src/test/rustdoc/foreigntype.rs rename to tests/rustdoc/foreigntype.rs diff --git a/src/test/rustdoc/generic-associated-types/gats.rs b/tests/rustdoc/generic-associated-types/gats.rs similarity index 100% rename from src/test/rustdoc/generic-associated-types/gats.rs rename to tests/rustdoc/generic-associated-types/gats.rs diff --git a/src/test/rustdoc/generic-associated-types/issue-94683.rs b/tests/rustdoc/generic-associated-types/issue-94683.rs similarity index 100% rename from src/test/rustdoc/generic-associated-types/issue-94683.rs rename to tests/rustdoc/generic-associated-types/issue-94683.rs diff --git a/src/test/rustdoc/generic-impl.rs b/tests/rustdoc/generic-impl.rs similarity index 100% rename from src/test/rustdoc/generic-impl.rs rename to tests/rustdoc/generic-impl.rs diff --git a/src/test/rustdoc/generic_const_exprs.rs b/tests/rustdoc/generic_const_exprs.rs similarity index 100% rename from src/test/rustdoc/generic_const_exprs.rs rename to tests/rustdoc/generic_const_exprs.rs diff --git a/src/test/rustdoc/glob-shadowing-const.rs b/tests/rustdoc/glob-shadowing-const.rs similarity index 100% rename from src/test/rustdoc/glob-shadowing-const.rs rename to tests/rustdoc/glob-shadowing-const.rs diff --git a/src/test/rustdoc/glob-shadowing.rs b/tests/rustdoc/glob-shadowing.rs similarity index 100% rename from src/test/rustdoc/glob-shadowing.rs rename to tests/rustdoc/glob-shadowing.rs diff --git a/src/test/rustdoc/hidden-impls.rs b/tests/rustdoc/hidden-impls.rs similarity index 100% rename from src/test/rustdoc/hidden-impls.rs rename to tests/rustdoc/hidden-impls.rs diff --git a/src/test/rustdoc/hidden-line.rs b/tests/rustdoc/hidden-line.rs similarity index 100% rename from src/test/rustdoc/hidden-line.rs rename to tests/rustdoc/hidden-line.rs diff --git a/src/test/rustdoc/hidden-methods.rs b/tests/rustdoc/hidden-methods.rs similarity index 100% rename from src/test/rustdoc/hidden-methods.rs rename to tests/rustdoc/hidden-methods.rs diff --git a/src/test/rustdoc/hidden-trait-methods-with-document-hidden-items.rs b/tests/rustdoc/hidden-trait-methods-with-document-hidden-items.rs similarity index 100% rename from src/test/rustdoc/hidden-trait-methods-with-document-hidden-items.rs rename to tests/rustdoc/hidden-trait-methods-with-document-hidden-items.rs diff --git a/src/test/rustdoc/hidden-trait-methods.rs b/tests/rustdoc/hidden-trait-methods.rs similarity index 100% rename from src/test/rustdoc/hidden-trait-methods.rs rename to tests/rustdoc/hidden-trait-methods.rs diff --git a/src/test/rustdoc/hidden-trait-struct-impls.rs b/tests/rustdoc/hidden-trait-struct-impls.rs similarity index 100% rename from src/test/rustdoc/hidden-trait-struct-impls.rs rename to tests/rustdoc/hidden-trait-struct-impls.rs diff --git a/src/test/rustdoc/hide-complex-unevaluated-const-arguments.rs b/tests/rustdoc/hide-complex-unevaluated-const-arguments.rs similarity index 100% rename from src/test/rustdoc/hide-complex-unevaluated-const-arguments.rs rename to tests/rustdoc/hide-complex-unevaluated-const-arguments.rs diff --git a/src/test/rustdoc/hide-complex-unevaluated-consts.rs b/tests/rustdoc/hide-complex-unevaluated-consts.rs similarity index 100% rename from src/test/rustdoc/hide-complex-unevaluated-consts.rs rename to tests/rustdoc/hide-complex-unevaluated-consts.rs diff --git a/src/test/rustdoc/hide-unstable-trait.rs b/tests/rustdoc/hide-unstable-trait.rs similarity index 100% rename from src/test/rustdoc/hide-unstable-trait.rs rename to tests/rustdoc/hide-unstable-trait.rs diff --git a/src/test/rustdoc/higher-ranked-trait-bounds.rs b/tests/rustdoc/higher-ranked-trait-bounds.rs similarity index 100% rename from src/test/rustdoc/higher-ranked-trait-bounds.rs rename to tests/rustdoc/higher-ranked-trait-bounds.rs diff --git a/src/test/rustdoc/impl-box.rs b/tests/rustdoc/impl-box.rs similarity index 100% rename from src/test/rustdoc/impl-box.rs rename to tests/rustdoc/impl-box.rs diff --git a/src/test/rustdoc/impl-disambiguation.rs b/tests/rustdoc/impl-disambiguation.rs similarity index 100% rename from src/test/rustdoc/impl-disambiguation.rs rename to tests/rustdoc/impl-disambiguation.rs diff --git a/src/test/rustdoc/impl-everywhere.rs b/tests/rustdoc/impl-everywhere.rs similarity index 100% rename from src/test/rustdoc/impl-everywhere.rs rename to tests/rustdoc/impl-everywhere.rs diff --git a/src/test/rustdoc/impl-in-const-block.rs b/tests/rustdoc/impl-in-const-block.rs similarity index 100% rename from src/test/rustdoc/impl-in-const-block.rs rename to tests/rustdoc/impl-in-const-block.rs diff --git a/src/test/rustdoc/impl-parts-crosscrate.rs b/tests/rustdoc/impl-parts-crosscrate.rs similarity index 100% rename from src/test/rustdoc/impl-parts-crosscrate.rs rename to tests/rustdoc/impl-parts-crosscrate.rs diff --git a/src/test/rustdoc/impl-parts.rs b/tests/rustdoc/impl-parts.rs similarity index 100% rename from src/test/rustdoc/impl-parts.rs rename to tests/rustdoc/impl-parts.rs diff --git a/src/test/rustdoc/impl-trait-alias.rs b/tests/rustdoc/impl-trait-alias.rs similarity index 100% rename from src/test/rustdoc/impl-trait-alias.rs rename to tests/rustdoc/impl-trait-alias.rs diff --git a/src/test/rustdoc/implementor-stable-version.rs b/tests/rustdoc/implementor-stable-version.rs similarity index 100% rename from src/test/rustdoc/implementor-stable-version.rs rename to tests/rustdoc/implementor-stable-version.rs diff --git a/src/test/rustdoc/impossible-default.rs b/tests/rustdoc/impossible-default.rs similarity index 100% rename from src/test/rustdoc/impossible-default.rs rename to tests/rustdoc/impossible-default.rs diff --git a/src/test/rustdoc/include_str_cut.rs b/tests/rustdoc/include_str_cut.rs similarity index 100% rename from src/test/rustdoc/include_str_cut.rs rename to tests/rustdoc/include_str_cut.rs diff --git a/src/test/rustdoc/index-page.rs b/tests/rustdoc/index-page.rs similarity index 100% rename from src/test/rustdoc/index-page.rs rename to tests/rustdoc/index-page.rs diff --git a/src/test/rustdoc/infinite-redirection.rs b/tests/rustdoc/infinite-redirection.rs similarity index 100% rename from src/test/rustdoc/infinite-redirection.rs rename to tests/rustdoc/infinite-redirection.rs diff --git a/src/test/rustdoc/inline-default-methods.rs b/tests/rustdoc/inline-default-methods.rs similarity index 100% rename from src/test/rustdoc/inline-default-methods.rs rename to tests/rustdoc/inline-default-methods.rs diff --git a/src/test/rustdoc/inline_cross/add-docs.rs b/tests/rustdoc/inline_cross/add-docs.rs similarity index 100% rename from src/test/rustdoc/inline_cross/add-docs.rs rename to tests/rustdoc/inline_cross/add-docs.rs diff --git a/src/test/rustdoc/inline_cross/assoc-items.rs b/tests/rustdoc/inline_cross/assoc-items.rs similarity index 100% rename from src/test/rustdoc/inline_cross/assoc-items.rs rename to tests/rustdoc/inline_cross/assoc-items.rs diff --git a/src/test/rustdoc/inline_cross/assoc_item_trait_bounds.out0.html b/tests/rustdoc/inline_cross/assoc_item_trait_bounds.out0.html similarity index 100% rename from src/test/rustdoc/inline_cross/assoc_item_trait_bounds.out0.html rename to tests/rustdoc/inline_cross/assoc_item_trait_bounds.out0.html diff --git a/src/test/rustdoc/inline_cross/assoc_item_trait_bounds.out2.html b/tests/rustdoc/inline_cross/assoc_item_trait_bounds.out2.html similarity index 100% rename from src/test/rustdoc/inline_cross/assoc_item_trait_bounds.out2.html rename to tests/rustdoc/inline_cross/assoc_item_trait_bounds.out2.html diff --git a/src/test/rustdoc/inline_cross/assoc_item_trait_bounds.out9.html b/tests/rustdoc/inline_cross/assoc_item_trait_bounds.out9.html similarity index 100% rename from src/test/rustdoc/inline_cross/assoc_item_trait_bounds.out9.html rename to tests/rustdoc/inline_cross/assoc_item_trait_bounds.out9.html diff --git a/src/test/rustdoc/inline_cross/assoc_item_trait_bounds.rs b/tests/rustdoc/inline_cross/assoc_item_trait_bounds.rs similarity index 100% rename from src/test/rustdoc/inline_cross/assoc_item_trait_bounds.rs rename to tests/rustdoc/inline_cross/assoc_item_trait_bounds.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/add-docs.rs b/tests/rustdoc/inline_cross/auxiliary/add-docs.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/add-docs.rs rename to tests/rustdoc/inline_cross/auxiliary/add-docs.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/assoc-items.rs b/tests/rustdoc/inline_cross/auxiliary/assoc-items.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/assoc-items.rs rename to tests/rustdoc/inline_cross/auxiliary/assoc-items.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs b/tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs rename to tests/rustdoc/inline_cross/auxiliary/assoc_item_trait_bounds.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/cross-glob.rs b/tests/rustdoc/inline_cross/auxiliary/cross-glob.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/cross-glob.rs rename to tests/rustdoc/inline_cross/auxiliary/cross-glob.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/default-trait-method.rs b/tests/rustdoc/inline_cross/auxiliary/default-trait-method.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/default-trait-method.rs rename to tests/rustdoc/inline_cross/auxiliary/default-trait-method.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/dyn_trait.rs b/tests/rustdoc/inline_cross/auxiliary/dyn_trait.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/dyn_trait.rs rename to tests/rustdoc/inline_cross/auxiliary/dyn_trait.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/impl-inline-without-trait.rs b/tests/rustdoc/inline_cross/auxiliary/impl-inline-without-trait.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/impl-inline-without-trait.rs rename to tests/rustdoc/inline_cross/auxiliary/impl-inline-without-trait.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/impl_trait_aux.rs b/tests/rustdoc/inline_cross/auxiliary/impl_trait_aux.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/impl_trait_aux.rs rename to tests/rustdoc/inline_cross/auxiliary/impl_trait_aux.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/implementors_inline.rs b/tests/rustdoc/inline_cross/auxiliary/implementors_inline.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/implementors_inline.rs rename to tests/rustdoc/inline_cross/auxiliary/implementors_inline.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/issue-24183.rs b/tests/rustdoc/inline_cross/auxiliary/issue-24183.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/issue-24183.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-24183.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/issue-33113.rs b/tests/rustdoc/inline_cross/auxiliary/issue-33113.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/issue-33113.rs rename to tests/rustdoc/inline_cross/auxiliary/issue-33113.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/macro-vis.rs b/tests/rustdoc/inline_cross/auxiliary/macro-vis.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/macro-vis.rs rename to tests/rustdoc/inline_cross/auxiliary/macro-vis.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/macros.rs b/tests/rustdoc/inline_cross/auxiliary/macros.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/macros.rs rename to tests/rustdoc/inline_cross/auxiliary/macros.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/proc_macro.rs b/tests/rustdoc/inline_cross/auxiliary/proc_macro.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/proc_macro.rs rename to tests/rustdoc/inline_cross/auxiliary/proc_macro.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/renamed-via-module.rs b/tests/rustdoc/inline_cross/auxiliary/renamed-via-module.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/renamed-via-module.rs rename to tests/rustdoc/inline_cross/auxiliary/renamed-via-module.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/rustdoc-hidden-sig.rs b/tests/rustdoc/inline_cross/auxiliary/rustdoc-hidden-sig.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/rustdoc-hidden-sig.rs rename to tests/rustdoc/inline_cross/auxiliary/rustdoc-hidden-sig.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/rustdoc-hidden.rs b/tests/rustdoc/inline_cross/auxiliary/rustdoc-hidden.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/rustdoc-hidden.rs rename to tests/rustdoc/inline_cross/auxiliary/rustdoc-hidden.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/rustdoc-nonreachable-impls.rs b/tests/rustdoc/inline_cross/auxiliary/rustdoc-nonreachable-impls.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/rustdoc-nonreachable-impls.rs rename to tests/rustdoc/inline_cross/auxiliary/rustdoc-nonreachable-impls.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/rustdoc-trait-object-impl.rs b/tests/rustdoc/inline_cross/auxiliary/rustdoc-trait-object-impl.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/rustdoc-trait-object-impl.rs rename to tests/rustdoc/inline_cross/auxiliary/rustdoc-trait-object-impl.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/trait-vis.rs b/tests/rustdoc/inline_cross/auxiliary/trait-vis.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/trait-vis.rs rename to tests/rustdoc/inline_cross/auxiliary/trait-vis.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/use_crate.rs b/tests/rustdoc/inline_cross/auxiliary/use_crate.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/use_crate.rs rename to tests/rustdoc/inline_cross/auxiliary/use_crate.rs diff --git a/src/test/rustdoc/inline_cross/auxiliary/use_crate_2.rs b/tests/rustdoc/inline_cross/auxiliary/use_crate_2.rs similarity index 100% rename from src/test/rustdoc/inline_cross/auxiliary/use_crate_2.rs rename to tests/rustdoc/inline_cross/auxiliary/use_crate_2.rs diff --git a/src/test/rustdoc/inline_cross/cross-glob.rs b/tests/rustdoc/inline_cross/cross-glob.rs similarity index 100% rename from src/test/rustdoc/inline_cross/cross-glob.rs rename to tests/rustdoc/inline_cross/cross-glob.rs diff --git a/src/test/rustdoc/inline_cross/default-trait-method.rs b/tests/rustdoc/inline_cross/default-trait-method.rs similarity index 100% rename from src/test/rustdoc/inline_cross/default-trait-method.rs rename to tests/rustdoc/inline_cross/default-trait-method.rs diff --git a/src/test/rustdoc/inline_cross/dyn_trait.rs b/tests/rustdoc/inline_cross/dyn_trait.rs similarity index 100% rename from src/test/rustdoc/inline_cross/dyn_trait.rs rename to tests/rustdoc/inline_cross/dyn_trait.rs diff --git a/src/test/rustdoc/inline_cross/hidden-use.rs b/tests/rustdoc/inline_cross/hidden-use.rs similarity index 100% rename from src/test/rustdoc/inline_cross/hidden-use.rs rename to tests/rustdoc/inline_cross/hidden-use.rs diff --git a/src/test/rustdoc/inline_cross/impl-inline-without-trait.rs b/tests/rustdoc/inline_cross/impl-inline-without-trait.rs similarity index 100% rename from src/test/rustdoc/inline_cross/impl-inline-without-trait.rs rename to tests/rustdoc/inline_cross/impl-inline-without-trait.rs diff --git a/src/test/rustdoc/inline_cross/impl_trait.rs b/tests/rustdoc/inline_cross/impl_trait.rs similarity index 100% rename from src/test/rustdoc/inline_cross/impl_trait.rs rename to tests/rustdoc/inline_cross/impl_trait.rs diff --git a/src/test/rustdoc/inline_cross/implementors-js.rs b/tests/rustdoc/inline_cross/implementors-js.rs similarity index 100% rename from src/test/rustdoc/inline_cross/implementors-js.rs rename to tests/rustdoc/inline_cross/implementors-js.rs diff --git a/src/test/rustdoc/inline_cross/inline_hidden.rs b/tests/rustdoc/inline_cross/inline_hidden.rs similarity index 100% rename from src/test/rustdoc/inline_cross/inline_hidden.rs rename to tests/rustdoc/inline_cross/inline_hidden.rs diff --git a/src/test/rustdoc/inline_cross/issue-24183.method_no_where_self_sized.html b/tests/rustdoc/inline_cross/issue-24183.method_no_where_self_sized.html similarity index 100% rename from src/test/rustdoc/inline_cross/issue-24183.method_no_where_self_sized.html rename to tests/rustdoc/inline_cross/issue-24183.method_no_where_self_sized.html diff --git a/src/test/rustdoc/inline_cross/issue-24183.rs b/tests/rustdoc/inline_cross/issue-24183.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-24183.rs rename to tests/rustdoc/inline_cross/issue-24183.rs diff --git a/src/test/rustdoc/inline_cross/issue-28480.rs b/tests/rustdoc/inline_cross/issue-28480.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-28480.rs rename to tests/rustdoc/inline_cross/issue-28480.rs diff --git a/src/test/rustdoc/inline_cross/issue-31948-1.rs b/tests/rustdoc/inline_cross/issue-31948-1.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-31948-1.rs rename to tests/rustdoc/inline_cross/issue-31948-1.rs diff --git a/src/test/rustdoc/inline_cross/issue-31948-2.rs b/tests/rustdoc/inline_cross/issue-31948-2.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-31948-2.rs rename to tests/rustdoc/inline_cross/issue-31948-2.rs diff --git a/src/test/rustdoc/inline_cross/issue-31948.rs b/tests/rustdoc/inline_cross/issue-31948.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-31948.rs rename to tests/rustdoc/inline_cross/issue-31948.rs diff --git a/src/test/rustdoc/inline_cross/issue-32881.rs b/tests/rustdoc/inline_cross/issue-32881.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-32881.rs rename to tests/rustdoc/inline_cross/issue-32881.rs diff --git a/src/test/rustdoc/inline_cross/issue-33113.rs b/tests/rustdoc/inline_cross/issue-33113.rs similarity index 100% rename from src/test/rustdoc/inline_cross/issue-33113.rs rename to tests/rustdoc/inline_cross/issue-33113.rs diff --git a/src/test/rustdoc/inline_cross/macro-vis.rs b/tests/rustdoc/inline_cross/macro-vis.rs similarity index 100% rename from src/test/rustdoc/inline_cross/macro-vis.rs rename to tests/rustdoc/inline_cross/macro-vis.rs diff --git a/src/test/rustdoc/inline_cross/macros.rs b/tests/rustdoc/inline_cross/macros.rs similarity index 100% rename from src/test/rustdoc/inline_cross/macros.rs rename to tests/rustdoc/inline_cross/macros.rs diff --git a/src/test/rustdoc/inline_cross/proc_macro.rs b/tests/rustdoc/inline_cross/proc_macro.rs similarity index 100% rename from src/test/rustdoc/inline_cross/proc_macro.rs rename to tests/rustdoc/inline_cross/proc_macro.rs diff --git a/src/test/rustdoc/inline_cross/renamed-via-module.rs b/tests/rustdoc/inline_cross/renamed-via-module.rs similarity index 100% rename from src/test/rustdoc/inline_cross/renamed-via-module.rs rename to tests/rustdoc/inline_cross/renamed-via-module.rs diff --git a/src/test/rustdoc/inline_cross/trait-vis.rs b/tests/rustdoc/inline_cross/trait-vis.rs similarity index 100% rename from src/test/rustdoc/inline_cross/trait-vis.rs rename to tests/rustdoc/inline_cross/trait-vis.rs diff --git a/src/test/rustdoc/inline_cross/use_crate.rs b/tests/rustdoc/inline_cross/use_crate.rs similarity index 100% rename from src/test/rustdoc/inline_cross/use_crate.rs rename to tests/rustdoc/inline_cross/use_crate.rs diff --git a/src/test/rustdoc/inline_local/glob-extern-document-private-items.rs b/tests/rustdoc/inline_local/glob-extern-document-private-items.rs similarity index 100% rename from src/test/rustdoc/inline_local/glob-extern-document-private-items.rs rename to tests/rustdoc/inline_local/glob-extern-document-private-items.rs diff --git a/src/test/rustdoc/inline_local/glob-extern.rs b/tests/rustdoc/inline_local/glob-extern.rs similarity index 100% rename from src/test/rustdoc/inline_local/glob-extern.rs rename to tests/rustdoc/inline_local/glob-extern.rs diff --git a/src/test/rustdoc/inline_local/glob-private-document-private-items.rs b/tests/rustdoc/inline_local/glob-private-document-private-items.rs similarity index 100% rename from src/test/rustdoc/inline_local/glob-private-document-private-items.rs rename to tests/rustdoc/inline_local/glob-private-document-private-items.rs diff --git a/src/test/rustdoc/inline_local/glob-private.rs b/tests/rustdoc/inline_local/glob-private.rs similarity index 100% rename from src/test/rustdoc/inline_local/glob-private.rs rename to tests/rustdoc/inline_local/glob-private.rs diff --git a/src/test/rustdoc/inline_local/hidden-use.rs b/tests/rustdoc/inline_local/hidden-use.rs similarity index 100% rename from src/test/rustdoc/inline_local/hidden-use.rs rename to tests/rustdoc/inline_local/hidden-use.rs diff --git a/src/test/rustdoc/inline_local/issue-28537.rs b/tests/rustdoc/inline_local/issue-28537.rs similarity index 100% rename from src/test/rustdoc/inline_local/issue-28537.rs rename to tests/rustdoc/inline_local/issue-28537.rs diff --git a/src/test/rustdoc/inline_local/issue-32343.rs b/tests/rustdoc/inline_local/issue-32343.rs similarity index 100% rename from src/test/rustdoc/inline_local/issue-32343.rs rename to tests/rustdoc/inline_local/issue-32343.rs diff --git a/src/test/rustdoc/inline_local/macro_by_example.rs b/tests/rustdoc/inline_local/macro_by_example.rs similarity index 100% rename from src/test/rustdoc/inline_local/macro_by_example.rs rename to tests/rustdoc/inline_local/macro_by_example.rs diff --git a/src/test/rustdoc/inline_local/please_inline.rs b/tests/rustdoc/inline_local/please_inline.rs similarity index 100% rename from src/test/rustdoc/inline_local/please_inline.rs rename to tests/rustdoc/inline_local/please_inline.rs diff --git a/src/test/rustdoc/inline_local/trait-vis.rs b/tests/rustdoc/inline_local/trait-vis.rs similarity index 100% rename from src/test/rustdoc/inline_local/trait-vis.rs rename to tests/rustdoc/inline_local/trait-vis.rs diff --git a/src/test/rustdoc/internal.rs b/tests/rustdoc/internal.rs similarity index 100% rename from src/test/rustdoc/internal.rs rename to tests/rustdoc/internal.rs diff --git a/src/test/rustdoc/intra-doc-crate/auxiliary/self.rs b/tests/rustdoc/intra-doc-crate/auxiliary/self.rs similarity index 100% rename from src/test/rustdoc/intra-doc-crate/auxiliary/self.rs rename to tests/rustdoc/intra-doc-crate/auxiliary/self.rs diff --git a/src/test/rustdoc/intra-doc-crate/self.rs b/tests/rustdoc/intra-doc-crate/self.rs similarity index 100% rename from src/test/rustdoc/intra-doc-crate/self.rs rename to tests/rustdoc/intra-doc-crate/self.rs diff --git a/src/test/rustdoc/intra-doc/anchors.rs b/tests/rustdoc/intra-doc/anchors.rs similarity index 100% rename from src/test/rustdoc/intra-doc/anchors.rs rename to tests/rustdoc/intra-doc/anchors.rs diff --git a/src/test/rustdoc/intra-doc/assoc-reexport-super.rs b/tests/rustdoc/intra-doc/assoc-reexport-super.rs similarity index 100% rename from src/test/rustdoc/intra-doc/assoc-reexport-super.rs rename to tests/rustdoc/intra-doc/assoc-reexport-super.rs diff --git a/src/test/rustdoc/intra-doc/associated-defaults.rs b/tests/rustdoc/intra-doc/associated-defaults.rs similarity index 100% rename from src/test/rustdoc/intra-doc/associated-defaults.rs rename to tests/rustdoc/intra-doc/associated-defaults.rs diff --git a/src/test/rustdoc/intra-doc/associated-items.rs b/tests/rustdoc/intra-doc/associated-items.rs similarity index 100% rename from src/test/rustdoc/intra-doc/associated-items.rs rename to tests/rustdoc/intra-doc/associated-items.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/empty.rs b/tests/rustdoc/intra-doc/auxiliary/empty.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/empty.rs rename to tests/rustdoc/intra-doc/auxiliary/empty.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/empty2.rs b/tests/rustdoc/intra-doc/auxiliary/empty2.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/empty2.rs rename to tests/rustdoc/intra-doc/auxiliary/empty2.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/extern-builtin-type-impl-dep.rs b/tests/rustdoc/intra-doc/auxiliary/extern-builtin-type-impl-dep.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/extern-builtin-type-impl-dep.rs rename to tests/rustdoc/intra-doc/auxiliary/extern-builtin-type-impl-dep.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/extern-inherent-impl-dep.rs b/tests/rustdoc/intra-doc/auxiliary/extern-inherent-impl-dep.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/extern-inherent-impl-dep.rs rename to tests/rustdoc/intra-doc/auxiliary/extern-inherent-impl-dep.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/intra-link-extern-crate.rs b/tests/rustdoc/intra-doc/auxiliary/intra-link-extern-crate.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/intra-link-extern-crate.rs rename to tests/rustdoc/intra-doc/auxiliary/intra-link-extern-crate.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/intra-link-pub-use.rs b/tests/rustdoc/intra-doc/auxiliary/intra-link-pub-use.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/intra-link-pub-use.rs rename to tests/rustdoc/intra-doc/auxiliary/intra-link-pub-use.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/intra-link-reexport-additional-docs.rs b/tests/rustdoc/intra-doc/auxiliary/intra-link-reexport-additional-docs.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/intra-link-reexport-additional-docs.rs rename to tests/rustdoc/intra-doc/auxiliary/intra-link-reexport-additional-docs.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/intra-links-external-traits.rs b/tests/rustdoc/intra-doc/auxiliary/intra-links-external-traits.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/intra-links-external-traits.rs rename to tests/rustdoc/intra-doc/auxiliary/intra-links-external-traits.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/issue-103463-aux.rs b/tests/rustdoc/intra-doc/auxiliary/issue-103463-aux.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/issue-103463-aux.rs rename to tests/rustdoc/intra-doc/auxiliary/issue-103463-aux.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/issue-66159-1.rs b/tests/rustdoc/intra-doc/auxiliary/issue-66159-1.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/issue-66159-1.rs rename to tests/rustdoc/intra-doc/auxiliary/issue-66159-1.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/my-core.rs b/tests/rustdoc/intra-doc/auxiliary/my-core.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/my-core.rs rename to tests/rustdoc/intra-doc/auxiliary/my-core.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/proc-macro-macro.rs b/tests/rustdoc/intra-doc/auxiliary/proc-macro-macro.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/proc-macro-macro.rs rename to tests/rustdoc/intra-doc/auxiliary/proc-macro-macro.rs diff --git a/src/test/rustdoc/intra-doc/auxiliary/pub-struct.rs b/tests/rustdoc/intra-doc/auxiliary/pub-struct.rs similarity index 100% rename from src/test/rustdoc/intra-doc/auxiliary/pub-struct.rs rename to tests/rustdoc/intra-doc/auxiliary/pub-struct.rs diff --git a/src/test/rustdoc/intra-doc/basic.rs b/tests/rustdoc/intra-doc/basic.rs similarity index 100% rename from src/test/rustdoc/intra-doc/basic.rs rename to tests/rustdoc/intra-doc/basic.rs diff --git a/src/test/rustdoc/intra-doc/builtin-macros.rs b/tests/rustdoc/intra-doc/builtin-macros.rs similarity index 100% rename from src/test/rustdoc/intra-doc/builtin-macros.rs rename to tests/rustdoc/intra-doc/builtin-macros.rs diff --git a/src/test/rustdoc/intra-doc/crate-relative-assoc.rs b/tests/rustdoc/intra-doc/crate-relative-assoc.rs similarity index 100% rename from src/test/rustdoc/intra-doc/crate-relative-assoc.rs rename to tests/rustdoc/intra-doc/crate-relative-assoc.rs diff --git a/src/test/rustdoc/intra-doc/crate-relative.rs b/tests/rustdoc/intra-doc/crate-relative.rs similarity index 100% rename from src/test/rustdoc/intra-doc/crate-relative.rs rename to tests/rustdoc/intra-doc/crate-relative.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/additional_doc.rs b/tests/rustdoc/intra-doc/cross-crate/additional_doc.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/additional_doc.rs rename to tests/rustdoc/intra-doc/cross-crate/additional_doc.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/additional_doc.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/additional_doc.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/additional_doc.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/additional_doc.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/hidden.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/hidden.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/hidden.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/hidden.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/intra-doc-basic.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/intra-doc-basic.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/intra-doc-basic.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/intra-doc-basic.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/intra-link-cross-crate-crate.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/intra-link-cross-crate-crate.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/intra-link-cross-crate-crate.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/intra-link-cross-crate-crate.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/macro_inner.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/macro_inner.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/macro_inner.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/macro_inner.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/module.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/module.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/module.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/module.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/proc_macro.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/proc_macro.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/proc_macro.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/proc_macro.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/submodule-inner.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/submodule-inner.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/submodule-inner.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/submodule-inner.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/submodule-outer.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/submodule-outer.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/submodule-outer.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/submodule-outer.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/auxiliary/traits.rs b/tests/rustdoc/intra-doc/cross-crate/auxiliary/traits.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/auxiliary/traits.rs rename to tests/rustdoc/intra-doc/cross-crate/auxiliary/traits.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/basic.rs b/tests/rustdoc/intra-doc/cross-crate/basic.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/basic.rs rename to tests/rustdoc/intra-doc/cross-crate/basic.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/crate.rs b/tests/rustdoc/intra-doc/cross-crate/crate.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/crate.rs rename to tests/rustdoc/intra-doc/cross-crate/crate.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/hidden.rs b/tests/rustdoc/intra-doc/cross-crate/hidden.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/hidden.rs rename to tests/rustdoc/intra-doc/cross-crate/hidden.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/macro.rs b/tests/rustdoc/intra-doc/cross-crate/macro.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/macro.rs rename to tests/rustdoc/intra-doc/cross-crate/macro.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/module.rs b/tests/rustdoc/intra-doc/cross-crate/module.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/module.rs rename to tests/rustdoc/intra-doc/cross-crate/module.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/submodule-inner.rs b/tests/rustdoc/intra-doc/cross-crate/submodule-inner.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/submodule-inner.rs rename to tests/rustdoc/intra-doc/cross-crate/submodule-inner.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/submodule-outer.rs b/tests/rustdoc/intra-doc/cross-crate/submodule-outer.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/submodule-outer.rs rename to tests/rustdoc/intra-doc/cross-crate/submodule-outer.rs diff --git a/src/test/rustdoc/intra-doc/cross-crate/traits.rs b/tests/rustdoc/intra-doc/cross-crate/traits.rs similarity index 100% rename from src/test/rustdoc/intra-doc/cross-crate/traits.rs rename to tests/rustdoc/intra-doc/cross-crate/traits.rs diff --git a/src/test/rustdoc/intra-doc/disambiguators-removed.rs b/tests/rustdoc/intra-doc/disambiguators-removed.rs similarity index 100% rename from src/test/rustdoc/intra-doc/disambiguators-removed.rs rename to tests/rustdoc/intra-doc/disambiguators-removed.rs diff --git a/src/test/rustdoc/intra-doc/email-address.rs b/tests/rustdoc/intra-doc/email-address.rs similarity index 100% rename from src/test/rustdoc/intra-doc/email-address.rs rename to tests/rustdoc/intra-doc/email-address.rs diff --git a/src/test/rustdoc/intra-doc/enum-struct-field.rs b/tests/rustdoc/intra-doc/enum-struct-field.rs similarity index 100% rename from src/test/rustdoc/intra-doc/enum-struct-field.rs rename to tests/rustdoc/intra-doc/enum-struct-field.rs diff --git a/src/test/rustdoc/intra-doc/extern-builtin-type-impl.rs b/tests/rustdoc/intra-doc/extern-builtin-type-impl.rs similarity index 100% rename from src/test/rustdoc/intra-doc/extern-builtin-type-impl.rs rename to tests/rustdoc/intra-doc/extern-builtin-type-impl.rs diff --git a/src/test/rustdoc/intra-doc/extern-crate-only-used-in-link.rs b/tests/rustdoc/intra-doc/extern-crate-only-used-in-link.rs similarity index 100% rename from src/test/rustdoc/intra-doc/extern-crate-only-used-in-link.rs rename to tests/rustdoc/intra-doc/extern-crate-only-used-in-link.rs diff --git a/src/test/rustdoc/intra-doc/extern-crate.rs b/tests/rustdoc/intra-doc/extern-crate.rs similarity index 100% rename from src/test/rustdoc/intra-doc/extern-crate.rs rename to tests/rustdoc/intra-doc/extern-crate.rs diff --git a/src/test/rustdoc/intra-doc/extern-inherent-impl.rs b/tests/rustdoc/intra-doc/extern-inherent-impl.rs similarity index 100% rename from src/test/rustdoc/intra-doc/extern-inherent-impl.rs rename to tests/rustdoc/intra-doc/extern-inherent-impl.rs diff --git a/src/test/rustdoc/intra-doc/extern-reference-link.rs b/tests/rustdoc/intra-doc/extern-reference-link.rs similarity index 100% rename from src/test/rustdoc/intra-doc/extern-reference-link.rs rename to tests/rustdoc/intra-doc/extern-reference-link.rs diff --git a/src/test/rustdoc/intra-doc/extern-type.rs b/tests/rustdoc/intra-doc/extern-type.rs similarity index 100% rename from src/test/rustdoc/intra-doc/extern-type.rs rename to tests/rustdoc/intra-doc/extern-type.rs diff --git a/src/test/rustdoc/intra-doc/external-traits.rs b/tests/rustdoc/intra-doc/external-traits.rs similarity index 100% rename from src/test/rustdoc/intra-doc/external-traits.rs rename to tests/rustdoc/intra-doc/external-traits.rs diff --git a/src/test/rustdoc/intra-doc/field.rs b/tests/rustdoc/intra-doc/field.rs similarity index 100% rename from src/test/rustdoc/intra-doc/field.rs rename to tests/rustdoc/intra-doc/field.rs diff --git a/src/test/rustdoc/intra-doc/generic-params.rs b/tests/rustdoc/intra-doc/generic-params.rs similarity index 100% rename from src/test/rustdoc/intra-doc/generic-params.rs rename to tests/rustdoc/intra-doc/generic-params.rs diff --git a/src/test/rustdoc/intra-doc/generic-trait-impl.rs b/tests/rustdoc/intra-doc/generic-trait-impl.rs similarity index 100% rename from src/test/rustdoc/intra-doc/generic-trait-impl.rs rename to tests/rustdoc/intra-doc/generic-trait-impl.rs diff --git a/src/test/rustdoc/intra-doc/in-bodies.rs b/tests/rustdoc/intra-doc/in-bodies.rs similarity index 100% rename from src/test/rustdoc/intra-doc/in-bodies.rs rename to tests/rustdoc/intra-doc/in-bodies.rs diff --git a/src/test/rustdoc/intra-doc/issue-103463.rs b/tests/rustdoc/intra-doc/issue-103463.rs similarity index 100% rename from src/test/rustdoc/intra-doc/issue-103463.rs rename to tests/rustdoc/intra-doc/issue-103463.rs diff --git a/src/test/rustdoc/intra-doc/issue-104145.rs b/tests/rustdoc/intra-doc/issue-104145.rs similarity index 100% rename from src/test/rustdoc/intra-doc/issue-104145.rs rename to tests/rustdoc/intra-doc/issue-104145.rs diff --git a/src/test/rustdoc/intra-doc/issue-66159.rs b/tests/rustdoc/intra-doc/issue-66159.rs similarity index 100% rename from src/test/rustdoc/intra-doc/issue-66159.rs rename to tests/rustdoc/intra-doc/issue-66159.rs diff --git a/src/test/rustdoc/intra-doc/issue-82209.rs b/tests/rustdoc/intra-doc/issue-82209.rs similarity index 100% rename from src/test/rustdoc/intra-doc/issue-82209.rs rename to tests/rustdoc/intra-doc/issue-82209.rs diff --git a/src/test/rustdoc/intra-doc/libstd-re-export.rs b/tests/rustdoc/intra-doc/libstd-re-export.rs similarity index 100% rename from src/test/rustdoc/intra-doc/libstd-re-export.rs rename to tests/rustdoc/intra-doc/libstd-re-export.rs diff --git a/src/test/rustdoc/intra-doc/macros-disambiguators.rs b/tests/rustdoc/intra-doc/macros-disambiguators.rs similarity index 100% rename from src/test/rustdoc/intra-doc/macros-disambiguators.rs rename to tests/rustdoc/intra-doc/macros-disambiguators.rs diff --git a/src/test/rustdoc/intra-doc/mod-ambiguity.rs b/tests/rustdoc/intra-doc/mod-ambiguity.rs similarity index 100% rename from src/test/rustdoc/intra-doc/mod-ambiguity.rs rename to tests/rustdoc/intra-doc/mod-ambiguity.rs diff --git a/src/test/rustdoc/intra-doc/mod-relative.rs b/tests/rustdoc/intra-doc/mod-relative.rs similarity index 100% rename from src/test/rustdoc/intra-doc/mod-relative.rs rename to tests/rustdoc/intra-doc/mod-relative.rs diff --git a/src/test/rustdoc/intra-doc/no-doc-primitive.rs b/tests/rustdoc/intra-doc/no-doc-primitive.rs similarity index 100% rename from src/test/rustdoc/intra-doc/no-doc-primitive.rs rename to tests/rustdoc/intra-doc/no-doc-primitive.rs diff --git a/src/test/rustdoc/intra-doc/non-path-primitives.rs b/tests/rustdoc/intra-doc/non-path-primitives.rs similarity index 100% rename from src/test/rustdoc/intra-doc/non-path-primitives.rs rename to tests/rustdoc/intra-doc/non-path-primitives.rs diff --git a/src/test/rustdoc/intra-doc/prim-assoc.rs b/tests/rustdoc/intra-doc/prim-assoc.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-assoc.rs rename to tests/rustdoc/intra-doc/prim-assoc.rs diff --git a/src/test/rustdoc/intra-doc/prim-associated-traits.rs b/tests/rustdoc/intra-doc/prim-associated-traits.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-associated-traits.rs rename to tests/rustdoc/intra-doc/prim-associated-traits.rs diff --git a/src/test/rustdoc/intra-doc/prim-methods-external-core.rs b/tests/rustdoc/intra-doc/prim-methods-external-core.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-methods-external-core.rs rename to tests/rustdoc/intra-doc/prim-methods-external-core.rs diff --git a/src/test/rustdoc/intra-doc/prim-methods-local.rs b/tests/rustdoc/intra-doc/prim-methods-local.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-methods-local.rs rename to tests/rustdoc/intra-doc/prim-methods-local.rs diff --git a/src/test/rustdoc/intra-doc/prim-methods.rs b/tests/rustdoc/intra-doc/prim-methods.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-methods.rs rename to tests/rustdoc/intra-doc/prim-methods.rs diff --git a/src/test/rustdoc/intra-doc/prim-precedence.rs b/tests/rustdoc/intra-doc/prim-precedence.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-precedence.rs rename to tests/rustdoc/intra-doc/prim-precedence.rs diff --git a/src/test/rustdoc/intra-doc/prim-self.rs b/tests/rustdoc/intra-doc/prim-self.rs similarity index 100% rename from src/test/rustdoc/intra-doc/prim-self.rs rename to tests/rustdoc/intra-doc/prim-self.rs diff --git a/src/test/rustdoc/intra-doc/primitive-disambiguators.rs b/tests/rustdoc/intra-doc/primitive-disambiguators.rs similarity index 100% rename from src/test/rustdoc/intra-doc/primitive-disambiguators.rs rename to tests/rustdoc/intra-doc/primitive-disambiguators.rs diff --git a/src/test/rustdoc/intra-doc/primitive-non-default-impl.rs b/tests/rustdoc/intra-doc/primitive-non-default-impl.rs similarity index 100% rename from src/test/rustdoc/intra-doc/primitive-non-default-impl.rs rename to tests/rustdoc/intra-doc/primitive-non-default-impl.rs diff --git a/src/test/rustdoc/intra-doc/private-failures-ignored.rs b/tests/rustdoc/intra-doc/private-failures-ignored.rs similarity index 100% rename from src/test/rustdoc/intra-doc/private-failures-ignored.rs rename to tests/rustdoc/intra-doc/private-failures-ignored.rs diff --git a/src/test/rustdoc/intra-doc/private.rs b/tests/rustdoc/intra-doc/private.rs similarity index 100% rename from src/test/rustdoc/intra-doc/private.rs rename to tests/rustdoc/intra-doc/private.rs diff --git a/src/test/rustdoc/intra-doc/proc-macro.rs b/tests/rustdoc/intra-doc/proc-macro.rs similarity index 100% rename from src/test/rustdoc/intra-doc/proc-macro.rs rename to tests/rustdoc/intra-doc/proc-macro.rs diff --git a/src/test/rustdoc/intra-doc/pub-use.rs b/tests/rustdoc/intra-doc/pub-use.rs similarity index 100% rename from src/test/rustdoc/intra-doc/pub-use.rs rename to tests/rustdoc/intra-doc/pub-use.rs diff --git a/src/test/rustdoc/intra-doc/raw-ident-self.rs b/tests/rustdoc/intra-doc/raw-ident-self.rs similarity index 100% rename from src/test/rustdoc/intra-doc/raw-ident-self.rs rename to tests/rustdoc/intra-doc/raw-ident-self.rs diff --git a/src/test/rustdoc/intra-doc/reexport-additional-docs.rs b/tests/rustdoc/intra-doc/reexport-additional-docs.rs similarity index 100% rename from src/test/rustdoc/intra-doc/reexport-additional-docs.rs rename to tests/rustdoc/intra-doc/reexport-additional-docs.rs diff --git a/src/test/rustdoc/intra-doc/self-cache.rs b/tests/rustdoc/intra-doc/self-cache.rs similarity index 100% rename from src/test/rustdoc/intra-doc/self-cache.rs rename to tests/rustdoc/intra-doc/self-cache.rs diff --git a/src/test/rustdoc/intra-doc/self.rs b/tests/rustdoc/intra-doc/self.rs similarity index 100% rename from src/test/rustdoc/intra-doc/self.rs rename to tests/rustdoc/intra-doc/self.rs diff --git a/src/test/rustdoc/intra-doc/trait-impl.rs b/tests/rustdoc/intra-doc/trait-impl.rs similarity index 100% rename from src/test/rustdoc/intra-doc/trait-impl.rs rename to tests/rustdoc/intra-doc/trait-impl.rs diff --git a/src/test/rustdoc/intra-doc/trait-item.rs b/tests/rustdoc/intra-doc/trait-item.rs similarity index 100% rename from src/test/rustdoc/intra-doc/trait-item.rs rename to tests/rustdoc/intra-doc/trait-item.rs diff --git a/src/test/rustdoc/intra-doc/true-false.rs b/tests/rustdoc/intra-doc/true-false.rs similarity index 100% rename from src/test/rustdoc/intra-doc/true-false.rs rename to tests/rustdoc/intra-doc/true-false.rs diff --git a/src/test/rustdoc/intra-doc/type-alias.rs b/tests/rustdoc/intra-doc/type-alias.rs similarity index 100% rename from src/test/rustdoc/intra-doc/type-alias.rs rename to tests/rustdoc/intra-doc/type-alias.rs diff --git a/src/test/rustdoc/invalid.crate.name.rs b/tests/rustdoc/invalid.crate.name.rs similarity index 100% rename from src/test/rustdoc/invalid.crate.name.rs rename to tests/rustdoc/invalid.crate.name.rs diff --git a/src/test/rustdoc/issue-100204-inline-impl-through-glob-import.rs b/tests/rustdoc/issue-100204-inline-impl-through-glob-import.rs similarity index 100% rename from src/test/rustdoc/issue-100204-inline-impl-through-glob-import.rs rename to tests/rustdoc/issue-100204-inline-impl-through-glob-import.rs diff --git a/src/test/rustdoc/issue-100241.rs b/tests/rustdoc/issue-100241.rs similarity index 100% rename from src/test/rustdoc/issue-100241.rs rename to tests/rustdoc/issue-100241.rs diff --git a/src/test/rustdoc/issue-100620.rs b/tests/rustdoc/issue-100620.rs similarity index 100% rename from src/test/rustdoc/issue-100620.rs rename to tests/rustdoc/issue-100620.rs diff --git a/src/test/rustdoc/issue-100679-sidebar-links-deref.rs b/tests/rustdoc/issue-100679-sidebar-links-deref.rs similarity index 100% rename from src/test/rustdoc/issue-100679-sidebar-links-deref.rs rename to tests/rustdoc/issue-100679-sidebar-links-deref.rs diff --git a/src/test/rustdoc/issue-101743-bold-tag.rs b/tests/rustdoc/issue-101743-bold-tag.rs similarity index 100% rename from src/test/rustdoc/issue-101743-bold-tag.rs rename to tests/rustdoc/issue-101743-bold-tag.rs diff --git a/src/test/rustdoc/issue-102154.rs b/tests/rustdoc/issue-102154.rs similarity index 100% rename from src/test/rustdoc/issue-102154.rs rename to tests/rustdoc/issue-102154.rs diff --git a/src/test/rustdoc/issue-105952.rs b/tests/rustdoc/issue-105952.rs similarity index 100% rename from src/test/rustdoc/issue-105952.rs rename to tests/rustdoc/issue-105952.rs diff --git a/src/test/rustdoc/issue-12834.rs b/tests/rustdoc/issue-12834.rs similarity index 100% rename from src/test/rustdoc/issue-12834.rs rename to tests/rustdoc/issue-12834.rs diff --git a/src/test/rustdoc/issue-13698.rs b/tests/rustdoc/issue-13698.rs similarity index 100% rename from src/test/rustdoc/issue-13698.rs rename to tests/rustdoc/issue-13698.rs diff --git a/src/test/rustdoc/issue-15169.rs b/tests/rustdoc/issue-15169.rs similarity index 100% rename from src/test/rustdoc/issue-15169.rs rename to tests/rustdoc/issue-15169.rs diff --git a/src/test/rustdoc/issue-15318-2.rs b/tests/rustdoc/issue-15318-2.rs similarity index 100% rename from src/test/rustdoc/issue-15318-2.rs rename to tests/rustdoc/issue-15318-2.rs diff --git a/src/test/rustdoc/issue-15318-3.rs b/tests/rustdoc/issue-15318-3.rs similarity index 100% rename from src/test/rustdoc/issue-15318-3.rs rename to tests/rustdoc/issue-15318-3.rs diff --git a/src/test/rustdoc/issue-15318.rs b/tests/rustdoc/issue-15318.rs similarity index 100% rename from src/test/rustdoc/issue-15318.rs rename to tests/rustdoc/issue-15318.rs diff --git a/src/test/rustdoc/issue-15347.rs b/tests/rustdoc/issue-15347.rs similarity index 100% rename from src/test/rustdoc/issue-15347.rs rename to tests/rustdoc/issue-15347.rs diff --git a/src/test/rustdoc/issue-16019.rs b/tests/rustdoc/issue-16019.rs similarity index 100% rename from src/test/rustdoc/issue-16019.rs rename to tests/rustdoc/issue-16019.rs diff --git a/src/test/rustdoc/issue-16265-1.rs b/tests/rustdoc/issue-16265-1.rs similarity index 100% rename from src/test/rustdoc/issue-16265-1.rs rename to tests/rustdoc/issue-16265-1.rs diff --git a/src/test/rustdoc/issue-16265-2.rs b/tests/rustdoc/issue-16265-2.rs similarity index 100% rename from src/test/rustdoc/issue-16265-2.rs rename to tests/rustdoc/issue-16265-2.rs diff --git a/src/test/rustdoc/issue-17476.rs b/tests/rustdoc/issue-17476.rs similarity index 100% rename from src/test/rustdoc/issue-17476.rs rename to tests/rustdoc/issue-17476.rs diff --git a/src/test/rustdoc/issue-18199.rs b/tests/rustdoc/issue-18199.rs similarity index 100% rename from src/test/rustdoc/issue-18199.rs rename to tests/rustdoc/issue-18199.rs diff --git a/src/test/rustdoc/issue-19181.rs b/tests/rustdoc/issue-19181.rs similarity index 100% rename from src/test/rustdoc/issue-19181.rs rename to tests/rustdoc/issue-19181.rs diff --git a/src/test/rustdoc/issue-19190-2.rs b/tests/rustdoc/issue-19190-2.rs similarity index 100% rename from src/test/rustdoc/issue-19190-2.rs rename to tests/rustdoc/issue-19190-2.rs diff --git a/src/test/rustdoc/issue-19190-3.rs b/tests/rustdoc/issue-19190-3.rs similarity index 100% rename from src/test/rustdoc/issue-19190-3.rs rename to tests/rustdoc/issue-19190-3.rs diff --git a/src/test/rustdoc/issue-19190.rs b/tests/rustdoc/issue-19190.rs similarity index 100% rename from src/test/rustdoc/issue-19190.rs rename to tests/rustdoc/issue-19190.rs diff --git a/src/test/rustdoc/issue-20175.rs b/tests/rustdoc/issue-20175.rs similarity index 100% rename from src/test/rustdoc/issue-20175.rs rename to tests/rustdoc/issue-20175.rs diff --git a/src/test/rustdoc/issue-20646.rs b/tests/rustdoc/issue-20646.rs similarity index 100% rename from src/test/rustdoc/issue-20646.rs rename to tests/rustdoc/issue-20646.rs diff --git a/src/test/rustdoc/issue-20727-2.rs b/tests/rustdoc/issue-20727-2.rs similarity index 100% rename from src/test/rustdoc/issue-20727-2.rs rename to tests/rustdoc/issue-20727-2.rs diff --git a/src/test/rustdoc/issue-20727-3.rs b/tests/rustdoc/issue-20727-3.rs similarity index 100% rename from src/test/rustdoc/issue-20727-3.rs rename to tests/rustdoc/issue-20727-3.rs diff --git a/src/test/rustdoc/issue-20727-4.rs b/tests/rustdoc/issue-20727-4.rs similarity index 100% rename from src/test/rustdoc/issue-20727-4.rs rename to tests/rustdoc/issue-20727-4.rs diff --git a/src/test/rustdoc/issue-20727.rs b/tests/rustdoc/issue-20727.rs similarity index 100% rename from src/test/rustdoc/issue-20727.rs rename to tests/rustdoc/issue-20727.rs diff --git a/src/test/rustdoc/issue-21092.rs b/tests/rustdoc/issue-21092.rs similarity index 100% rename from src/test/rustdoc/issue-21092.rs rename to tests/rustdoc/issue-21092.rs diff --git a/src/test/rustdoc/issue-21474.rs b/tests/rustdoc/issue-21474.rs similarity index 100% rename from src/test/rustdoc/issue-21474.rs rename to tests/rustdoc/issue-21474.rs diff --git a/src/test/rustdoc/issue-21801.rs b/tests/rustdoc/issue-21801.rs similarity index 100% rename from src/test/rustdoc/issue-21801.rs rename to tests/rustdoc/issue-21801.rs diff --git a/src/test/rustdoc/issue-22025.rs b/tests/rustdoc/issue-22025.rs similarity index 100% rename from src/test/rustdoc/issue-22025.rs rename to tests/rustdoc/issue-22025.rs diff --git a/src/test/rustdoc/issue-22038.rs b/tests/rustdoc/issue-22038.rs similarity index 100% rename from src/test/rustdoc/issue-22038.rs rename to tests/rustdoc/issue-22038.rs diff --git a/src/test/rustdoc/issue-23106.rs b/tests/rustdoc/issue-23106.rs similarity index 100% rename from src/test/rustdoc/issue-23106.rs rename to tests/rustdoc/issue-23106.rs diff --git a/src/test/rustdoc/issue-23207.rs b/tests/rustdoc/issue-23207.rs similarity index 100% rename from src/test/rustdoc/issue-23207.rs rename to tests/rustdoc/issue-23207.rs diff --git a/src/test/rustdoc/issue-23511.rs b/tests/rustdoc/issue-23511.rs similarity index 100% rename from src/test/rustdoc/issue-23511.rs rename to tests/rustdoc/issue-23511.rs diff --git a/src/test/rustdoc/issue-23744.rs b/tests/rustdoc/issue-23744.rs similarity index 100% rename from src/test/rustdoc/issue-23744.rs rename to tests/rustdoc/issue-23744.rs diff --git a/src/test/rustdoc/issue-23812.rs b/tests/rustdoc/issue-23812.rs similarity index 100% rename from src/test/rustdoc/issue-23812.rs rename to tests/rustdoc/issue-23812.rs diff --git a/src/test/rustdoc/issue-25001.rs b/tests/rustdoc/issue-25001.rs similarity index 100% rename from src/test/rustdoc/issue-25001.rs rename to tests/rustdoc/issue-25001.rs diff --git a/src/test/rustdoc/issue-25944.rs b/tests/rustdoc/issue-25944.rs similarity index 100% rename from src/test/rustdoc/issue-25944.rs rename to tests/rustdoc/issue-25944.rs diff --git a/src/test/rustdoc/issue-26606.rs b/tests/rustdoc/issue-26606.rs similarity index 100% rename from src/test/rustdoc/issue-26606.rs rename to tests/rustdoc/issue-26606.rs diff --git a/src/test/rustdoc/issue-26995.rs b/tests/rustdoc/issue-26995.rs similarity index 100% rename from src/test/rustdoc/issue-26995.rs rename to tests/rustdoc/issue-26995.rs diff --git a/src/test/rustdoc/issue-27104.rs b/tests/rustdoc/issue-27104.rs similarity index 100% rename from src/test/rustdoc/issue-27104.rs rename to tests/rustdoc/issue-27104.rs diff --git a/src/test/rustdoc/issue-27362.rs b/tests/rustdoc/issue-27362.rs similarity index 100% rename from src/test/rustdoc/issue-27362.rs rename to tests/rustdoc/issue-27362.rs diff --git a/src/test/rustdoc/issue-27759.rs b/tests/rustdoc/issue-27759.rs similarity index 100% rename from src/test/rustdoc/issue-27759.rs rename to tests/rustdoc/issue-27759.rs diff --git a/src/test/rustdoc/issue-27862.rs b/tests/rustdoc/issue-27862.rs similarity index 100% rename from src/test/rustdoc/issue-27862.rs rename to tests/rustdoc/issue-27862.rs diff --git a/src/test/rustdoc/issue-28478.rs b/tests/rustdoc/issue-28478.rs similarity index 100% rename from src/test/rustdoc/issue-28478.rs rename to tests/rustdoc/issue-28478.rs diff --git a/src/test/rustdoc/issue-28927.rs b/tests/rustdoc/issue-28927.rs similarity index 100% rename from src/test/rustdoc/issue-28927.rs rename to tests/rustdoc/issue-28927.rs diff --git a/src/test/rustdoc/issue-29449.rs b/tests/rustdoc/issue-29449.rs similarity index 100% rename from src/test/rustdoc/issue-29449.rs rename to tests/rustdoc/issue-29449.rs diff --git a/src/test/rustdoc/issue-29503.rs b/tests/rustdoc/issue-29503.rs similarity index 100% rename from src/test/rustdoc/issue-29503.rs rename to tests/rustdoc/issue-29503.rs diff --git a/src/test/rustdoc/issue-29584.rs b/tests/rustdoc/issue-29584.rs similarity index 100% rename from src/test/rustdoc/issue-29584.rs rename to tests/rustdoc/issue-29584.rs diff --git a/src/test/rustdoc/issue-30109.rs b/tests/rustdoc/issue-30109.rs similarity index 100% rename from src/test/rustdoc/issue-30109.rs rename to tests/rustdoc/issue-30109.rs diff --git a/src/test/rustdoc/issue-30252.rs b/tests/rustdoc/issue-30252.rs similarity index 100% rename from src/test/rustdoc/issue-30252.rs rename to tests/rustdoc/issue-30252.rs diff --git a/src/test/rustdoc/issue-30366.rs b/tests/rustdoc/issue-30366.rs similarity index 100% rename from src/test/rustdoc/issue-30366.rs rename to tests/rustdoc/issue-30366.rs diff --git a/src/test/rustdoc/issue-31808.rs b/tests/rustdoc/issue-31808.rs similarity index 100% rename from src/test/rustdoc/issue-31808.rs rename to tests/rustdoc/issue-31808.rs diff --git a/src/test/rustdoc/issue-31899.rs b/tests/rustdoc/issue-31899.rs similarity index 100% rename from src/test/rustdoc/issue-31899.rs rename to tests/rustdoc/issue-31899.rs diff --git a/src/test/rustdoc/issue-32374.rs b/tests/rustdoc/issue-32374.rs similarity index 100% rename from src/test/rustdoc/issue-32374.rs rename to tests/rustdoc/issue-32374.rs diff --git a/src/test/rustdoc/issue-32395.rs b/tests/rustdoc/issue-32395.rs similarity index 100% rename from src/test/rustdoc/issue-32395.rs rename to tests/rustdoc/issue-32395.rs diff --git a/src/test/rustdoc/issue-32556.rs b/tests/rustdoc/issue-32556.rs similarity index 100% rename from src/test/rustdoc/issue-32556.rs rename to tests/rustdoc/issue-32556.rs diff --git a/src/test/rustdoc/issue-32890.rs b/tests/rustdoc/issue-32890.rs similarity index 100% rename from src/test/rustdoc/issue-32890.rs rename to tests/rustdoc/issue-32890.rs diff --git a/src/test/rustdoc/issue-33069.rs b/tests/rustdoc/issue-33069.rs similarity index 100% rename from src/test/rustdoc/issue-33069.rs rename to tests/rustdoc/issue-33069.rs diff --git a/src/test/rustdoc/issue-33178-1.rs b/tests/rustdoc/issue-33178-1.rs similarity index 100% rename from src/test/rustdoc/issue-33178-1.rs rename to tests/rustdoc/issue-33178-1.rs diff --git a/src/test/rustdoc/issue-33178.rs b/tests/rustdoc/issue-33178.rs similarity index 100% rename from src/test/rustdoc/issue-33178.rs rename to tests/rustdoc/issue-33178.rs diff --git a/src/test/rustdoc/issue-33302.rs b/tests/rustdoc/issue-33302.rs similarity index 100% rename from src/test/rustdoc/issue-33302.rs rename to tests/rustdoc/issue-33302.rs diff --git a/src/test/rustdoc/issue-33592.rs b/tests/rustdoc/issue-33592.rs similarity index 100% rename from src/test/rustdoc/issue-33592.rs rename to tests/rustdoc/issue-33592.rs diff --git a/src/test/rustdoc/issue-34025.rs b/tests/rustdoc/issue-34025.rs similarity index 100% rename from src/test/rustdoc/issue-34025.rs rename to tests/rustdoc/issue-34025.rs diff --git a/src/test/rustdoc/issue-34274.rs b/tests/rustdoc/issue-34274.rs similarity index 100% rename from src/test/rustdoc/issue-34274.rs rename to tests/rustdoc/issue-34274.rs diff --git a/src/test/rustdoc/issue-34423.rs b/tests/rustdoc/issue-34423.rs similarity index 100% rename from src/test/rustdoc/issue-34423.rs rename to tests/rustdoc/issue-34423.rs diff --git a/src/test/rustdoc/issue-34473.rs b/tests/rustdoc/issue-34473.rs similarity index 100% rename from src/test/rustdoc/issue-34473.rs rename to tests/rustdoc/issue-34473.rs diff --git a/src/test/rustdoc/issue-34928.rs b/tests/rustdoc/issue-34928.rs similarity index 100% rename from src/test/rustdoc/issue-34928.rs rename to tests/rustdoc/issue-34928.rs diff --git a/src/test/rustdoc/issue-35169-2.rs b/tests/rustdoc/issue-35169-2.rs similarity index 100% rename from src/test/rustdoc/issue-35169-2.rs rename to tests/rustdoc/issue-35169-2.rs diff --git a/src/test/rustdoc/issue-35169.rs b/tests/rustdoc/issue-35169.rs similarity index 100% rename from src/test/rustdoc/issue-35169.rs rename to tests/rustdoc/issue-35169.rs diff --git a/src/test/rustdoc/issue-35488.rs b/tests/rustdoc/issue-35488.rs similarity index 100% rename from src/test/rustdoc/issue-35488.rs rename to tests/rustdoc/issue-35488.rs diff --git a/src/test/rustdoc/issue-36031.rs b/tests/rustdoc/issue-36031.rs similarity index 100% rename from src/test/rustdoc/issue-36031.rs rename to tests/rustdoc/issue-36031.rs diff --git a/src/test/rustdoc/issue-38129.rs b/tests/rustdoc/issue-38129.rs similarity index 100% rename from src/test/rustdoc/issue-38129.rs rename to tests/rustdoc/issue-38129.rs diff --git a/src/test/rustdoc/issue-38219.rs b/tests/rustdoc/issue-38219.rs similarity index 100% rename from src/test/rustdoc/issue-38219.rs rename to tests/rustdoc/issue-38219.rs diff --git a/src/test/rustdoc/issue-40936.rs b/tests/rustdoc/issue-40936.rs similarity index 100% rename from src/test/rustdoc/issue-40936.rs rename to tests/rustdoc/issue-40936.rs diff --git a/src/test/rustdoc/issue-41783.codeblock.html b/tests/rustdoc/issue-41783.codeblock.html similarity index 100% rename from src/test/rustdoc/issue-41783.codeblock.html rename to tests/rustdoc/issue-41783.codeblock.html diff --git a/src/test/rustdoc/issue-41783.rs b/tests/rustdoc/issue-41783.rs similarity index 100% rename from src/test/rustdoc/issue-41783.rs rename to tests/rustdoc/issue-41783.rs diff --git a/src/test/rustdoc/issue-42760.rs b/tests/rustdoc/issue-42760.rs similarity index 100% rename from src/test/rustdoc/issue-42760.rs rename to tests/rustdoc/issue-42760.rs diff --git a/src/test/rustdoc/issue-43153.rs b/tests/rustdoc/issue-43153.rs similarity index 100% rename from src/test/rustdoc/issue-43153.rs rename to tests/rustdoc/issue-43153.rs diff --git a/src/test/rustdoc/issue-43701.rs b/tests/rustdoc/issue-43701.rs similarity index 100% rename from src/test/rustdoc/issue-43701.rs rename to tests/rustdoc/issue-43701.rs diff --git a/src/test/rustdoc/issue-43869.rs b/tests/rustdoc/issue-43869.rs similarity index 100% rename from src/test/rustdoc/issue-43869.rs rename to tests/rustdoc/issue-43869.rs diff --git a/src/test/rustdoc/issue-43893.rs b/tests/rustdoc/issue-43893.rs similarity index 100% rename from src/test/rustdoc/issue-43893.rs rename to tests/rustdoc/issue-43893.rs diff --git a/src/test/rustdoc/issue-45584.rs b/tests/rustdoc/issue-45584.rs similarity index 100% rename from src/test/rustdoc/issue-45584.rs rename to tests/rustdoc/issue-45584.rs diff --git a/src/test/rustdoc/issue-46271.rs b/tests/rustdoc/issue-46271.rs similarity index 100% rename from src/test/rustdoc/issue-46271.rs rename to tests/rustdoc/issue-46271.rs diff --git a/src/test/rustdoc/issue-46377.rs b/tests/rustdoc/issue-46377.rs similarity index 100% rename from src/test/rustdoc/issue-46377.rs rename to tests/rustdoc/issue-46377.rs diff --git a/src/test/rustdoc/issue-46380-2.rs b/tests/rustdoc/issue-46380-2.rs similarity index 100% rename from src/test/rustdoc/issue-46380-2.rs rename to tests/rustdoc/issue-46380-2.rs diff --git a/src/test/rustdoc/issue-46727.rs b/tests/rustdoc/issue-46727.rs similarity index 100% rename from src/test/rustdoc/issue-46727.rs rename to tests/rustdoc/issue-46727.rs diff --git a/src/test/rustdoc/issue-46766.rs b/tests/rustdoc/issue-46766.rs similarity index 100% rename from src/test/rustdoc/issue-46766.rs rename to tests/rustdoc/issue-46766.rs diff --git a/src/test/rustdoc/issue-46767.rs b/tests/rustdoc/issue-46767.rs similarity index 100% rename from src/test/rustdoc/issue-46767.rs rename to tests/rustdoc/issue-46767.rs diff --git a/src/test/rustdoc/issue-46976.rs b/tests/rustdoc/issue-46976.rs similarity index 100% rename from src/test/rustdoc/issue-46976.rs rename to tests/rustdoc/issue-46976.rs diff --git a/src/test/rustdoc/issue-47038.rs b/tests/rustdoc/issue-47038.rs similarity index 100% rename from src/test/rustdoc/issue-47038.rs rename to tests/rustdoc/issue-47038.rs diff --git a/src/test/rustdoc/issue-47197-blank-line-in-doc-block.rs b/tests/rustdoc/issue-47197-blank-line-in-doc-block.rs similarity index 100% rename from src/test/rustdoc/issue-47197-blank-line-in-doc-block.rs rename to tests/rustdoc/issue-47197-blank-line-in-doc-block.rs diff --git a/src/test/rustdoc/issue-47639.rs b/tests/rustdoc/issue-47639.rs similarity index 100% rename from src/test/rustdoc/issue-47639.rs rename to tests/rustdoc/issue-47639.rs diff --git a/src/test/rustdoc/issue-48377.rs b/tests/rustdoc/issue-48377.rs similarity index 100% rename from src/test/rustdoc/issue-48377.rs rename to tests/rustdoc/issue-48377.rs diff --git a/src/test/rustdoc/issue-48414.rs b/tests/rustdoc/issue-48414.rs similarity index 100% rename from src/test/rustdoc/issue-48414.rs rename to tests/rustdoc/issue-48414.rs diff --git a/src/test/rustdoc/issue-50159.rs b/tests/rustdoc/issue-50159.rs similarity index 100% rename from src/test/rustdoc/issue-50159.rs rename to tests/rustdoc/issue-50159.rs diff --git a/src/test/rustdoc/issue-51236.rs b/tests/rustdoc/issue-51236.rs similarity index 100% rename from src/test/rustdoc/issue-51236.rs rename to tests/rustdoc/issue-51236.rs diff --git a/src/test/rustdoc/issue-52873.rs b/tests/rustdoc/issue-52873.rs similarity index 100% rename from src/test/rustdoc/issue-52873.rs rename to tests/rustdoc/issue-52873.rs diff --git a/src/test/rustdoc/issue-53689.rs b/tests/rustdoc/issue-53689.rs similarity index 100% rename from src/test/rustdoc/issue-53689.rs rename to tests/rustdoc/issue-53689.rs diff --git a/src/test/rustdoc/issue-53812.rs b/tests/rustdoc/issue-53812.rs similarity index 100% rename from src/test/rustdoc/issue-53812.rs rename to tests/rustdoc/issue-53812.rs diff --git a/src/test/rustdoc/issue-54478-demo-allocator.rs b/tests/rustdoc/issue-54478-demo-allocator.rs similarity index 100% rename from src/test/rustdoc/issue-54478-demo-allocator.rs rename to tests/rustdoc/issue-54478-demo-allocator.rs diff --git a/src/test/rustdoc/issue-54705.rs b/tests/rustdoc/issue-54705.rs similarity index 100% rename from src/test/rustdoc/issue-54705.rs rename to tests/rustdoc/issue-54705.rs diff --git a/src/test/rustdoc/issue-55001.rs b/tests/rustdoc/issue-55001.rs similarity index 100% rename from src/test/rustdoc/issue-55001.rs rename to tests/rustdoc/issue-55001.rs diff --git a/src/test/rustdoc/issue-55321.rs b/tests/rustdoc/issue-55321.rs similarity index 100% rename from src/test/rustdoc/issue-55321.rs rename to tests/rustdoc/issue-55321.rs diff --git a/src/test/rustdoc/issue-55364.rs b/tests/rustdoc/issue-55364.rs similarity index 100% rename from src/test/rustdoc/issue-55364.rs rename to tests/rustdoc/issue-55364.rs diff --git a/src/test/rustdoc/issue-56701.rs b/tests/rustdoc/issue-56701.rs similarity index 100% rename from src/test/rustdoc/issue-56701.rs rename to tests/rustdoc/issue-56701.rs diff --git a/src/test/rustdoc/issue-56822.rs b/tests/rustdoc/issue-56822.rs similarity index 100% rename from src/test/rustdoc/issue-56822.rs rename to tests/rustdoc/issue-56822.rs diff --git a/src/test/rustdoc/issue-57180.rs b/tests/rustdoc/issue-57180.rs similarity index 100% rename from src/test/rustdoc/issue-57180.rs rename to tests/rustdoc/issue-57180.rs diff --git a/src/test/rustdoc/issue-60482.rs b/tests/rustdoc/issue-60482.rs similarity index 100% rename from src/test/rustdoc/issue-60482.rs rename to tests/rustdoc/issue-60482.rs diff --git a/src/test/rustdoc/issue-60726.rs b/tests/rustdoc/issue-60726.rs similarity index 100% rename from src/test/rustdoc/issue-60726.rs rename to tests/rustdoc/issue-60726.rs diff --git a/src/test/rustdoc/issue-61592.rs b/tests/rustdoc/issue-61592.rs similarity index 100% rename from src/test/rustdoc/issue-61592.rs rename to tests/rustdoc/issue-61592.rs diff --git a/src/test/rustdoc/issue-67851-both.rs b/tests/rustdoc/issue-67851-both.rs similarity index 100% rename from src/test/rustdoc/issue-67851-both.rs rename to tests/rustdoc/issue-67851-both.rs diff --git a/src/test/rustdoc/issue-67851-hidden.rs b/tests/rustdoc/issue-67851-hidden.rs similarity index 100% rename from src/test/rustdoc/issue-67851-hidden.rs rename to tests/rustdoc/issue-67851-hidden.rs diff --git a/src/test/rustdoc/issue-67851-neither.rs b/tests/rustdoc/issue-67851-neither.rs similarity index 100% rename from src/test/rustdoc/issue-67851-neither.rs rename to tests/rustdoc/issue-67851-neither.rs diff --git a/src/test/rustdoc/issue-67851-private.rs b/tests/rustdoc/issue-67851-private.rs similarity index 100% rename from src/test/rustdoc/issue-67851-private.rs rename to tests/rustdoc/issue-67851-private.rs diff --git a/src/test/rustdoc/issue-72340.rs b/tests/rustdoc/issue-72340.rs similarity index 100% rename from src/test/rustdoc/issue-72340.rs rename to tests/rustdoc/issue-72340.rs diff --git a/src/test/rustdoc/issue-73061-cross-crate-opaque-assoc-type.rs b/tests/rustdoc/issue-73061-cross-crate-opaque-assoc-type.rs similarity index 100% rename from src/test/rustdoc/issue-73061-cross-crate-opaque-assoc-type.rs rename to tests/rustdoc/issue-73061-cross-crate-opaque-assoc-type.rs diff --git a/src/test/rustdoc/issue-74083.rs b/tests/rustdoc/issue-74083.rs similarity index 100% rename from src/test/rustdoc/issue-74083.rs rename to tests/rustdoc/issue-74083.rs diff --git a/src/test/rustdoc/issue-75588.rs b/tests/rustdoc/issue-75588.rs similarity index 100% rename from src/test/rustdoc/issue-75588.rs rename to tests/rustdoc/issue-75588.rs diff --git a/src/test/rustdoc/issue-76501.rs b/tests/rustdoc/issue-76501.rs similarity index 100% rename from src/test/rustdoc/issue-76501.rs rename to tests/rustdoc/issue-76501.rs diff --git a/src/test/rustdoc/issue-78673.rs b/tests/rustdoc/issue-78673.rs similarity index 100% rename from src/test/rustdoc/issue-78673.rs rename to tests/rustdoc/issue-78673.rs diff --git a/src/test/rustdoc/issue-78701.rs b/tests/rustdoc/issue-78701.rs similarity index 100% rename from src/test/rustdoc/issue-78701.rs rename to tests/rustdoc/issue-78701.rs diff --git a/src/test/rustdoc/issue-79201.rs b/tests/rustdoc/issue-79201.rs similarity index 100% rename from src/test/rustdoc/issue-79201.rs rename to tests/rustdoc/issue-79201.rs diff --git a/src/test/rustdoc/issue-80233-normalize-auto-trait.rs b/tests/rustdoc/issue-80233-normalize-auto-trait.rs similarity index 100% rename from src/test/rustdoc/issue-80233-normalize-auto-trait.rs rename to tests/rustdoc/issue-80233-normalize-auto-trait.rs diff --git a/src/test/rustdoc/issue-82465-asref-for-and-of-local.rs b/tests/rustdoc/issue-82465-asref-for-and-of-local.rs similarity index 100% rename from src/test/rustdoc/issue-82465-asref-for-and-of-local.rs rename to tests/rustdoc/issue-82465-asref-for-and-of-local.rs diff --git a/src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline-last-item.rs b/tests/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline-last-item.rs similarity index 100% rename from src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline-last-item.rs rename to tests/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline-last-item.rs diff --git a/src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs b/tests/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs similarity index 100% rename from src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs rename to tests/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs diff --git a/src/test/rustdoc/issue-85454.rs b/tests/rustdoc/issue-85454.rs similarity index 100% rename from src/test/rustdoc/issue-85454.rs rename to tests/rustdoc/issue-85454.rs diff --git a/src/test/rustdoc/issue-86620.rs b/tests/rustdoc/issue-86620.rs similarity index 100% rename from src/test/rustdoc/issue-86620.rs rename to tests/rustdoc/issue-86620.rs diff --git a/src/test/rustdoc/issue-88600.rs b/tests/rustdoc/issue-88600.rs similarity index 100% rename from src/test/rustdoc/issue-88600.rs rename to tests/rustdoc/issue-88600.rs diff --git a/src/test/rustdoc/issue-89309-heading-levels.rs b/tests/rustdoc/issue-89309-heading-levels.rs similarity index 100% rename from src/test/rustdoc/issue-89309-heading-levels.rs rename to tests/rustdoc/issue-89309-heading-levels.rs diff --git a/src/test/rustdoc/issue-89852.rs b/tests/rustdoc/issue-89852.rs similarity index 100% rename from src/test/rustdoc/issue-89852.rs rename to tests/rustdoc/issue-89852.rs diff --git a/src/test/rustdoc/issue-95633.rs b/tests/rustdoc/issue-95633.rs similarity index 100% rename from src/test/rustdoc/issue-95633.rs rename to tests/rustdoc/issue-95633.rs diff --git a/src/test/rustdoc/issue-95873.rs b/tests/rustdoc/issue-95873.rs similarity index 100% rename from src/test/rustdoc/issue-95873.rs rename to tests/rustdoc/issue-95873.rs diff --git a/src/test/rustdoc/issue-96381.rs b/tests/rustdoc/issue-96381.rs similarity index 100% rename from src/test/rustdoc/issue-96381.rs rename to tests/rustdoc/issue-96381.rs diff --git a/src/test/rustdoc/issue-98697.rs b/tests/rustdoc/issue-98697.rs similarity index 100% rename from src/test/rustdoc/issue-98697.rs rename to tests/rustdoc/issue-98697.rs diff --git a/src/test/rustdoc/issue-99221-multiple-macro-rules-w-same-name-submodule.rs b/tests/rustdoc/issue-99221-multiple-macro-rules-w-same-name-submodule.rs similarity index 100% rename from src/test/rustdoc/issue-99221-multiple-macro-rules-w-same-name-submodule.rs rename to tests/rustdoc/issue-99221-multiple-macro-rules-w-same-name-submodule.rs diff --git a/src/test/rustdoc/issue-99221-multiple-macro-rules-w-same-name.rs b/tests/rustdoc/issue-99221-multiple-macro-rules-w-same-name.rs similarity index 100% rename from src/test/rustdoc/issue-99221-multiple-macro-rules-w-same-name.rs rename to tests/rustdoc/issue-99221-multiple-macro-rules-w-same-name.rs diff --git a/src/test/rustdoc/issue-99221-multiple-structs-w-same-name.rs b/tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs similarity index 100% rename from src/test/rustdoc/issue-99221-multiple-structs-w-same-name.rs rename to tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs diff --git a/src/test/rustdoc/issue-99734-multiple-foreigns-w-same-name.rs b/tests/rustdoc/issue-99734-multiple-foreigns-w-same-name.rs similarity index 100% rename from src/test/rustdoc/issue-99734-multiple-foreigns-w-same-name.rs rename to tests/rustdoc/issue-99734-multiple-foreigns-w-same-name.rs diff --git a/src/test/rustdoc/issue-99734-multiple-mods-w-same-name.rs b/tests/rustdoc/issue-99734-multiple-mods-w-same-name.rs similarity index 100% rename from src/test/rustdoc/issue-99734-multiple-mods-w-same-name.rs rename to tests/rustdoc/issue-99734-multiple-mods-w-same-name.rs diff --git a/src/test/rustdoc/keyword.rs b/tests/rustdoc/keyword.rs similarity index 100% rename from src/test/rustdoc/keyword.rs rename to tests/rustdoc/keyword.rs diff --git a/src/test/rustdoc/legacy-const-generic.rs b/tests/rustdoc/legacy-const-generic.rs similarity index 100% rename from src/test/rustdoc/legacy-const-generic.rs rename to tests/rustdoc/legacy-const-generic.rs diff --git a/src/test/rustdoc/lifetime-name.rs b/tests/rustdoc/lifetime-name.rs similarity index 100% rename from src/test/rustdoc/lifetime-name.rs rename to tests/rustdoc/lifetime-name.rs diff --git a/src/test/rustdoc/line-breaks.rs b/tests/rustdoc/line-breaks.rs similarity index 100% rename from src/test/rustdoc/line-breaks.rs rename to tests/rustdoc/line-breaks.rs diff --git a/src/test/rustdoc/link-assoc-const.rs b/tests/rustdoc/link-assoc-const.rs similarity index 100% rename from src/test/rustdoc/link-assoc-const.rs rename to tests/rustdoc/link-assoc-const.rs diff --git a/src/test/rustdoc/link-title-escape.rs b/tests/rustdoc/link-title-escape.rs similarity index 100% rename from src/test/rustdoc/link-title-escape.rs rename to tests/rustdoc/link-title-escape.rs diff --git a/src/test/rustdoc/local-reexport-doc.rs b/tests/rustdoc/local-reexport-doc.rs similarity index 100% rename from src/test/rustdoc/local-reexport-doc.rs rename to tests/rustdoc/local-reexport-doc.rs diff --git a/src/test/rustdoc/logo-class-default.rs b/tests/rustdoc/logo-class-default.rs similarity index 100% rename from src/test/rustdoc/logo-class-default.rs rename to tests/rustdoc/logo-class-default.rs diff --git a/src/test/rustdoc/logo-class.rs b/tests/rustdoc/logo-class.rs similarity index 100% rename from src/test/rustdoc/logo-class.rs rename to tests/rustdoc/logo-class.rs diff --git a/src/test/rustdoc/macro-document-private-duplicate.rs b/tests/rustdoc/macro-document-private-duplicate.rs similarity index 100% rename from src/test/rustdoc/macro-document-private-duplicate.rs rename to tests/rustdoc/macro-document-private-duplicate.rs diff --git a/src/test/rustdoc/macro-document-private.rs b/tests/rustdoc/macro-document-private.rs similarity index 100% rename from src/test/rustdoc/macro-document-private.rs rename to tests/rustdoc/macro-document-private.rs diff --git a/src/test/rustdoc/macro-generated-macro.macro_linebreak_pre.html b/tests/rustdoc/macro-generated-macro.macro_linebreak_pre.html similarity index 100% rename from src/test/rustdoc/macro-generated-macro.macro_linebreak_pre.html rename to tests/rustdoc/macro-generated-macro.macro_linebreak_pre.html diff --git a/src/test/rustdoc/macro-generated-macro.macro_morestuff_pre.html b/tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html similarity index 100% rename from src/test/rustdoc/macro-generated-macro.macro_morestuff_pre.html rename to tests/rustdoc/macro-generated-macro.macro_morestuff_pre.html diff --git a/src/test/rustdoc/macro-generated-macro.rs b/tests/rustdoc/macro-generated-macro.rs similarity index 100% rename from src/test/rustdoc/macro-generated-macro.rs rename to tests/rustdoc/macro-generated-macro.rs diff --git a/src/test/rustdoc/macro-higher-kinded-function.rs b/tests/rustdoc/macro-higher-kinded-function.rs similarity index 100% rename from src/test/rustdoc/macro-higher-kinded-function.rs rename to tests/rustdoc/macro-higher-kinded-function.rs diff --git a/src/test/rustdoc/macro-in-async-block.rs b/tests/rustdoc/macro-in-async-block.rs similarity index 100% rename from src/test/rustdoc/macro-in-async-block.rs rename to tests/rustdoc/macro-in-async-block.rs diff --git a/src/test/rustdoc/macro-in-closure.rs b/tests/rustdoc/macro-in-closure.rs similarity index 100% rename from src/test/rustdoc/macro-in-closure.rs rename to tests/rustdoc/macro-in-closure.rs diff --git a/src/test/rustdoc/macro-indirect-use.rs b/tests/rustdoc/macro-indirect-use.rs similarity index 100% rename from src/test/rustdoc/macro-indirect-use.rs rename to tests/rustdoc/macro-indirect-use.rs diff --git a/src/test/rustdoc/macro-private-not-documented.rs b/tests/rustdoc/macro-private-not-documented.rs similarity index 100% rename from src/test/rustdoc/macro-private-not-documented.rs rename to tests/rustdoc/macro-private-not-documented.rs diff --git a/src/test/rustdoc/macro_pub_in_module.rs b/tests/rustdoc/macro_pub_in_module.rs similarity index 100% rename from src/test/rustdoc/macro_pub_in_module.rs rename to tests/rustdoc/macro_pub_in_module.rs diff --git a/src/test/rustdoc/macro_rules-matchers.rs b/tests/rustdoc/macro_rules-matchers.rs similarity index 100% rename from src/test/rustdoc/macro_rules-matchers.rs rename to tests/rustdoc/macro_rules-matchers.rs diff --git a/src/test/rustdoc/macros.rs b/tests/rustdoc/macros.rs similarity index 100% rename from src/test/rustdoc/macros.rs rename to tests/rustdoc/macros.rs diff --git a/src/test/rustdoc/manual_impl.rs b/tests/rustdoc/manual_impl.rs similarity index 100% rename from src/test/rustdoc/manual_impl.rs rename to tests/rustdoc/manual_impl.rs diff --git a/src/test/rustdoc/markdown-summaries.rs b/tests/rustdoc/markdown-summaries.rs similarity index 100% rename from src/test/rustdoc/markdown-summaries.rs rename to tests/rustdoc/markdown-summaries.rs diff --git a/src/test/rustdoc/masked.rs b/tests/rustdoc/masked.rs similarity index 100% rename from src/test/rustdoc/masked.rs rename to tests/rustdoc/masked.rs diff --git a/src/test/rustdoc/method-list.rs b/tests/rustdoc/method-list.rs similarity index 100% rename from src/test/rustdoc/method-list.rs rename to tests/rustdoc/method-list.rs diff --git a/src/test/rustdoc/mixing-doc-comments-and-attrs.S1_top-doc.html b/tests/rustdoc/mixing-doc-comments-and-attrs.S1_top-doc.html similarity index 100% rename from src/test/rustdoc/mixing-doc-comments-and-attrs.S1_top-doc.html rename to tests/rustdoc/mixing-doc-comments-and-attrs.S1_top-doc.html diff --git a/src/test/rustdoc/mixing-doc-comments-and-attrs.S2_top-doc.html b/tests/rustdoc/mixing-doc-comments-and-attrs.S2_top-doc.html similarity index 100% rename from src/test/rustdoc/mixing-doc-comments-and-attrs.S2_top-doc.html rename to tests/rustdoc/mixing-doc-comments-and-attrs.S2_top-doc.html diff --git a/src/test/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html b/tests/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html similarity index 100% rename from src/test/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html rename to tests/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html diff --git a/src/test/rustdoc/mixing-doc-comments-and-attrs.rs b/tests/rustdoc/mixing-doc-comments-and-attrs.rs similarity index 100% rename from src/test/rustdoc/mixing-doc-comments-and-attrs.rs rename to tests/rustdoc/mixing-doc-comments-and-attrs.rs diff --git a/src/test/rustdoc/mod-stackoverflow.rs b/tests/rustdoc/mod-stackoverflow.rs similarity index 100% rename from src/test/rustdoc/mod-stackoverflow.rs rename to tests/rustdoc/mod-stackoverflow.rs diff --git a/src/test/rustdoc/module-impls.rs b/tests/rustdoc/module-impls.rs similarity index 100% rename from src/test/rustdoc/module-impls.rs rename to tests/rustdoc/module-impls.rs diff --git a/src/test/rustdoc/multiple-import-levels.rs b/tests/rustdoc/multiple-import-levels.rs similarity index 100% rename from src/test/rustdoc/multiple-import-levels.rs rename to tests/rustdoc/multiple-import-levels.rs diff --git a/src/test/rustdoc/must_implement_one_of.rs b/tests/rustdoc/must_implement_one_of.rs similarity index 100% rename from src/test/rustdoc/must_implement_one_of.rs rename to tests/rustdoc/must_implement_one_of.rs diff --git a/src/test/rustdoc/mut-params.rs b/tests/rustdoc/mut-params.rs similarity index 100% rename from src/test/rustdoc/mut-params.rs rename to tests/rustdoc/mut-params.rs diff --git a/src/test/rustdoc/namespaces.rs b/tests/rustdoc/namespaces.rs similarity index 100% rename from src/test/rustdoc/namespaces.rs rename to tests/rustdoc/namespaces.rs diff --git a/src/test/rustdoc/negative-impl-sidebar.rs b/tests/rustdoc/negative-impl-sidebar.rs similarity index 100% rename from src/test/rustdoc/negative-impl-sidebar.rs rename to tests/rustdoc/negative-impl-sidebar.rs diff --git a/src/test/rustdoc/negative-impl.rs b/tests/rustdoc/negative-impl.rs similarity index 100% rename from src/test/rustdoc/negative-impl.rs rename to tests/rustdoc/negative-impl.rs diff --git a/src/test/rustdoc/nested-modules.rs b/tests/rustdoc/nested-modules.rs similarity index 100% rename from src/test/rustdoc/nested-modules.rs rename to tests/rustdoc/nested-modules.rs diff --git a/src/test/rustdoc/no-compiler-reexport.rs b/tests/rustdoc/no-compiler-reexport.rs similarity index 100% rename from src/test/rustdoc/no-compiler-reexport.rs rename to tests/rustdoc/no-compiler-reexport.rs diff --git a/src/test/rustdoc/no-crate-filter.rs b/tests/rustdoc/no-crate-filter.rs similarity index 100% rename from src/test/rustdoc/no-crate-filter.rs rename to tests/rustdoc/no-crate-filter.rs diff --git a/src/test/rustdoc/no-run-still-checks-lints.rs b/tests/rustdoc/no-run-still-checks-lints.rs similarity index 100% rename from src/test/rustdoc/no-run-still-checks-lints.rs rename to tests/rustdoc/no-run-still-checks-lints.rs diff --git a/src/test/rustdoc/no-stack-overflow-25295.rs b/tests/rustdoc/no-stack-overflow-25295.rs similarity index 100% rename from src/test/rustdoc/no-stack-overflow-25295.rs rename to tests/rustdoc/no-stack-overflow-25295.rs diff --git a/src/test/rustdoc/no-unit-struct-field.rs b/tests/rustdoc/no-unit-struct-field.rs similarity index 100% rename from src/test/rustdoc/no-unit-struct-field.rs rename to tests/rustdoc/no-unit-struct-field.rs diff --git a/src/test/rustdoc/no_std-primitive.rs b/tests/rustdoc/no_std-primitive.rs similarity index 100% rename from src/test/rustdoc/no_std-primitive.rs rename to tests/rustdoc/no_std-primitive.rs diff --git a/src/test/rustdoc/normalize-assoc-item.rs b/tests/rustdoc/normalize-assoc-item.rs similarity index 100% rename from src/test/rustdoc/normalize-assoc-item.rs rename to tests/rustdoc/normalize-assoc-item.rs diff --git a/src/test/rustdoc/not-wf-ambiguous-normalization.rs b/tests/rustdoc/not-wf-ambiguous-normalization.rs similarity index 100% rename from src/test/rustdoc/not-wf-ambiguous-normalization.rs rename to tests/rustdoc/not-wf-ambiguous-normalization.rs diff --git a/src/test/rustdoc/nul-error.rs b/tests/rustdoc/nul-error.rs similarity index 100% rename from src/test/rustdoc/nul-error.rs rename to tests/rustdoc/nul-error.rs diff --git a/src/test/rustdoc/playground-arg.rs b/tests/rustdoc/playground-arg.rs similarity index 100% rename from src/test/rustdoc/playground-arg.rs rename to tests/rustdoc/playground-arg.rs diff --git a/src/test/rustdoc/playground-empty.rs b/tests/rustdoc/playground-empty.rs similarity index 100% rename from src/test/rustdoc/playground-empty.rs rename to tests/rustdoc/playground-empty.rs diff --git a/src/test/rustdoc/playground-none.rs b/tests/rustdoc/playground-none.rs similarity index 100% rename from src/test/rustdoc/playground-none.rs rename to tests/rustdoc/playground-none.rs diff --git a/src/test/rustdoc/playground-syntax-error.rs b/tests/rustdoc/playground-syntax-error.rs similarity index 100% rename from src/test/rustdoc/playground-syntax-error.rs rename to tests/rustdoc/playground-syntax-error.rs diff --git a/src/test/rustdoc/playground.rs b/tests/rustdoc/playground.rs similarity index 100% rename from src/test/rustdoc/playground.rs rename to tests/rustdoc/playground.rs diff --git a/src/test/rustdoc/primitive-link.rs b/tests/rustdoc/primitive-link.rs similarity index 100% rename from src/test/rustdoc/primitive-link.rs rename to tests/rustdoc/primitive-link.rs diff --git a/src/test/rustdoc/primitive-reexport.rs b/tests/rustdoc/primitive-reexport.rs similarity index 100% rename from src/test/rustdoc/primitive-reexport.rs rename to tests/rustdoc/primitive-reexport.rs diff --git a/src/test/rustdoc/primitive-reference.rs b/tests/rustdoc/primitive-reference.rs similarity index 100% rename from src/test/rustdoc/primitive-reference.rs rename to tests/rustdoc/primitive-reference.rs diff --git a/src/test/rustdoc/primitive-slice-auto-trait.rs b/tests/rustdoc/primitive-slice-auto-trait.rs similarity index 100% rename from src/test/rustdoc/primitive-slice-auto-trait.rs rename to tests/rustdoc/primitive-slice-auto-trait.rs diff --git a/src/test/rustdoc/primitive-tuple-auto-trait.rs b/tests/rustdoc/primitive-tuple-auto-trait.rs similarity index 100% rename from src/test/rustdoc/primitive-tuple-auto-trait.rs rename to tests/rustdoc/primitive-tuple-auto-trait.rs diff --git a/src/test/rustdoc/primitive-tuple-variadic.rs b/tests/rustdoc/primitive-tuple-variadic.rs similarity index 100% rename from src/test/rustdoc/primitive-tuple-variadic.rs rename to tests/rustdoc/primitive-tuple-variadic.rs diff --git a/src/test/rustdoc/primitive-unit-auto-trait.rs b/tests/rustdoc/primitive-unit-auto-trait.rs similarity index 100% rename from src/test/rustdoc/primitive-unit-auto-trait.rs rename to tests/rustdoc/primitive-unit-auto-trait.rs diff --git a/src/test/rustdoc/primitive.rs b/tests/rustdoc/primitive.rs similarity index 100% rename from src/test/rustdoc/primitive.rs rename to tests/rustdoc/primitive.rs diff --git a/src/test/rustdoc/primitive/no_std.rs b/tests/rustdoc/primitive/no_std.rs similarity index 100% rename from src/test/rustdoc/primitive/no_std.rs rename to tests/rustdoc/primitive/no_std.rs diff --git a/src/test/rustdoc/primitive/primitive-generic-impl.rs b/tests/rustdoc/primitive/primitive-generic-impl.rs similarity index 100% rename from src/test/rustdoc/primitive/primitive-generic-impl.rs rename to tests/rustdoc/primitive/primitive-generic-impl.rs diff --git a/src/test/rustdoc/private-type-alias.rs b/tests/rustdoc/private-type-alias.rs similarity index 100% rename from src/test/rustdoc/private-type-alias.rs rename to tests/rustdoc/private-type-alias.rs diff --git a/src/test/rustdoc/proc-macro.rs b/tests/rustdoc/proc-macro.rs similarity index 100% rename from src/test/rustdoc/proc-macro.rs rename to tests/rustdoc/proc-macro.rs diff --git a/src/test/rustdoc/process-termination.rs b/tests/rustdoc/process-termination.rs similarity index 100% rename from src/test/rustdoc/process-termination.rs rename to tests/rustdoc/process-termination.rs diff --git a/src/test/rustdoc/pub-extern-crate.rs b/tests/rustdoc/pub-extern-crate.rs similarity index 100% rename from src/test/rustdoc/pub-extern-crate.rs rename to tests/rustdoc/pub-extern-crate.rs diff --git a/src/test/rustdoc/pub-method.rs b/tests/rustdoc/pub-method.rs similarity index 100% rename from src/test/rustdoc/pub-method.rs rename to tests/rustdoc/pub-method.rs diff --git a/src/test/rustdoc/pub-use-extern-macros.rs b/tests/rustdoc/pub-use-extern-macros.rs similarity index 100% rename from src/test/rustdoc/pub-use-extern-macros.rs rename to tests/rustdoc/pub-use-extern-macros.rs diff --git a/src/test/rustdoc/range-arg-pattern.rs b/tests/rustdoc/range-arg-pattern.rs similarity index 100% rename from src/test/rustdoc/range-arg-pattern.rs rename to tests/rustdoc/range-arg-pattern.rs diff --git a/src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs b/tests/rustdoc/raw-ident-eliminate-r-hashtag.rs similarity index 100% rename from src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs rename to tests/rustdoc/raw-ident-eliminate-r-hashtag.rs diff --git a/src/test/rustdoc/read-more-unneeded.rs b/tests/rustdoc/read-more-unneeded.rs similarity index 100% rename from src/test/rustdoc/read-more-unneeded.rs rename to tests/rustdoc/read-more-unneeded.rs diff --git a/src/test/rustdoc/recursion1.rs b/tests/rustdoc/recursion1.rs similarity index 100% rename from src/test/rustdoc/recursion1.rs rename to tests/rustdoc/recursion1.rs diff --git a/src/test/rustdoc/recursion2.rs b/tests/rustdoc/recursion2.rs similarity index 100% rename from src/test/rustdoc/recursion2.rs rename to tests/rustdoc/recursion2.rs diff --git a/src/test/rustdoc/recursion3.rs b/tests/rustdoc/recursion3.rs similarity index 100% rename from src/test/rustdoc/recursion3.rs rename to tests/rustdoc/recursion3.rs diff --git a/src/test/rustdoc/recursive-deref-sidebar.rs b/tests/rustdoc/recursive-deref-sidebar.rs similarity index 100% rename from src/test/rustdoc/recursive-deref-sidebar.rs rename to tests/rustdoc/recursive-deref-sidebar.rs diff --git a/src/test/rustdoc/recursive-deref.rs b/tests/rustdoc/recursive-deref.rs similarity index 100% rename from src/test/rustdoc/recursive-deref.rs rename to tests/rustdoc/recursive-deref.rs diff --git a/src/test/rustdoc/redirect-const.rs b/tests/rustdoc/redirect-const.rs similarity index 100% rename from src/test/rustdoc/redirect-const.rs rename to tests/rustdoc/redirect-const.rs diff --git a/src/test/rustdoc/redirect-map-empty.rs b/tests/rustdoc/redirect-map-empty.rs similarity index 100% rename from src/test/rustdoc/redirect-map-empty.rs rename to tests/rustdoc/redirect-map-empty.rs diff --git a/src/test/rustdoc/redirect-map.rs b/tests/rustdoc/redirect-map.rs similarity index 100% rename from src/test/rustdoc/redirect-map.rs rename to tests/rustdoc/redirect-map.rs diff --git a/src/test/rustdoc/redirect-rename.rs b/tests/rustdoc/redirect-rename.rs similarity index 100% rename from src/test/rustdoc/redirect-rename.rs rename to tests/rustdoc/redirect-rename.rs diff --git a/src/test/rustdoc/redirect.rs b/tests/rustdoc/redirect.rs similarity index 100% rename from src/test/rustdoc/redirect.rs rename to tests/rustdoc/redirect.rs diff --git a/src/test/rustdoc/reexport-check.rs b/tests/rustdoc/reexport-check.rs similarity index 100% rename from src/test/rustdoc/reexport-check.rs rename to tests/rustdoc/reexport-check.rs diff --git a/src/test/rustdoc/reexport-dep-foreign-fn.rs b/tests/rustdoc/reexport-dep-foreign-fn.rs similarity index 100% rename from src/test/rustdoc/reexport-dep-foreign-fn.rs rename to tests/rustdoc/reexport-dep-foreign-fn.rs diff --git a/src/test/rustdoc/reexport-doc.rs b/tests/rustdoc/reexport-doc.rs similarity index 100% rename from src/test/rustdoc/reexport-doc.rs rename to tests/rustdoc/reexport-doc.rs diff --git a/src/test/rustdoc/reexport-stability-tags-deprecated-and-portability.rs b/tests/rustdoc/reexport-stability-tags-deprecated-and-portability.rs similarity index 100% rename from src/test/rustdoc/reexport-stability-tags-deprecated-and-portability.rs rename to tests/rustdoc/reexport-stability-tags-deprecated-and-portability.rs diff --git a/src/test/rustdoc/reexport-stability-tags-unstable-and-portability.rs b/tests/rustdoc/reexport-stability-tags-unstable-and-portability.rs similarity index 100% rename from src/test/rustdoc/reexport-stability-tags-unstable-and-portability.rs rename to tests/rustdoc/reexport-stability-tags-unstable-and-portability.rs diff --git a/src/test/rustdoc/reexports-priv.rs b/tests/rustdoc/reexports-priv.rs similarity index 100% rename from src/test/rustdoc/reexports-priv.rs rename to tests/rustdoc/reexports-priv.rs diff --git a/src/test/rustdoc/reexports.rs b/tests/rustdoc/reexports.rs similarity index 100% rename from src/test/rustdoc/reexports.rs rename to tests/rustdoc/reexports.rs diff --git a/src/test/rustdoc/remove-duplicates.rs b/tests/rustdoc/remove-duplicates.rs similarity index 100% rename from src/test/rustdoc/remove-duplicates.rs rename to tests/rustdoc/remove-duplicates.rs diff --git a/src/test/rustdoc/remove-url-from-headings.rs b/tests/rustdoc/remove-url-from-headings.rs similarity index 100% rename from src/test/rustdoc/remove-url-from-headings.rs rename to tests/rustdoc/remove-url-from-headings.rs diff --git a/src/test/rustdoc/return-impl-trait.rs b/tests/rustdoc/return-impl-trait.rs similarity index 100% rename from src/test/rustdoc/return-impl-trait.rs rename to tests/rustdoc/return-impl-trait.rs diff --git a/src/test/rustdoc/rfc-2632-const-trait-impl.rs b/tests/rustdoc/rfc-2632-const-trait-impl.rs similarity index 100% rename from src/test/rustdoc/rfc-2632-const-trait-impl.rs rename to tests/rustdoc/rfc-2632-const-trait-impl.rs diff --git a/src/test/rustdoc/rustc-incoherent-impls.rs b/tests/rustdoc/rustc-incoherent-impls.rs similarity index 100% rename from src/test/rustdoc/rustc-incoherent-impls.rs rename to tests/rustdoc/rustc-incoherent-impls.rs diff --git a/src/test/rustdoc/rustc-macro-crate.rs b/tests/rustdoc/rustc-macro-crate.rs similarity index 100% rename from src/test/rustdoc/rustc-macro-crate.rs rename to tests/rustdoc/rustc-macro-crate.rs diff --git a/src/test/rustdoc/safe-intrinsic.rs b/tests/rustdoc/safe-intrinsic.rs similarity index 100% rename from src/test/rustdoc/safe-intrinsic.rs rename to tests/rustdoc/safe-intrinsic.rs diff --git a/src/test/rustdoc/same-crate-hidden-impl-parameter.rs b/tests/rustdoc/same-crate-hidden-impl-parameter.rs similarity index 100% rename from src/test/rustdoc/same-crate-hidden-impl-parameter.rs rename to tests/rustdoc/same-crate-hidden-impl-parameter.rs diff --git a/src/test/rustdoc/sanitizer-option.rs b/tests/rustdoc/sanitizer-option.rs similarity index 100% rename from src/test/rustdoc/sanitizer-option.rs rename to tests/rustdoc/sanitizer-option.rs diff --git a/src/test/rustdoc/search-index-summaries.rs b/tests/rustdoc/search-index-summaries.rs similarity index 100% rename from src/test/rustdoc/search-index-summaries.rs rename to tests/rustdoc/search-index-summaries.rs diff --git a/src/test/rustdoc/search-index.rs b/tests/rustdoc/search-index.rs similarity index 100% rename from src/test/rustdoc/search-index.rs rename to tests/rustdoc/search-index.rs diff --git a/src/test/rustdoc/short-docblock-codeblock.rs b/tests/rustdoc/short-docblock-codeblock.rs similarity index 100% rename from src/test/rustdoc/short-docblock-codeblock.rs rename to tests/rustdoc/short-docblock-codeblock.rs diff --git a/src/test/rustdoc/short-docblock.rs b/tests/rustdoc/short-docblock.rs similarity index 100% rename from src/test/rustdoc/short-docblock.rs rename to tests/rustdoc/short-docblock.rs diff --git a/src/test/rustdoc/short-line.md b/tests/rustdoc/short-line.md similarity index 100% rename from src/test/rustdoc/short-line.md rename to tests/rustdoc/short-line.md diff --git a/src/test/rustdoc/show-const-contents.rs b/tests/rustdoc/show-const-contents.rs similarity index 100% rename from src/test/rustdoc/show-const-contents.rs rename to tests/rustdoc/show-const-contents.rs diff --git a/src/test/rustdoc/sidebar-all-page.rs b/tests/rustdoc/sidebar-all-page.rs similarity index 100% rename from src/test/rustdoc/sidebar-all-page.rs rename to tests/rustdoc/sidebar-all-page.rs diff --git a/src/test/rustdoc/sidebar-items.rs b/tests/rustdoc/sidebar-items.rs similarity index 100% rename from src/test/rustdoc/sidebar-items.rs rename to tests/rustdoc/sidebar-items.rs diff --git a/src/test/rustdoc/sidebar-link-generation.rs b/tests/rustdoc/sidebar-link-generation.rs similarity index 100% rename from src/test/rustdoc/sidebar-link-generation.rs rename to tests/rustdoc/sidebar-link-generation.rs diff --git a/src/test/rustdoc/sidebar-links-to-foreign-impl.rs b/tests/rustdoc/sidebar-links-to-foreign-impl.rs similarity index 100% rename from src/test/rustdoc/sidebar-links-to-foreign-impl.rs rename to tests/rustdoc/sidebar-links-to-foreign-impl.rs diff --git a/src/test/rustdoc/sized_trait.rs b/tests/rustdoc/sized_trait.rs similarity index 100% rename from src/test/rustdoc/sized_trait.rs rename to tests/rustdoc/sized_trait.rs diff --git a/src/test/rustdoc/slice-links.link_box_generic.html b/tests/rustdoc/slice-links.link_box_generic.html similarity index 100% rename from src/test/rustdoc/slice-links.link_box_generic.html rename to tests/rustdoc/slice-links.link_box_generic.html diff --git a/src/test/rustdoc/slice-links.link_box_u32.html b/tests/rustdoc/slice-links.link_box_u32.html similarity index 100% rename from src/test/rustdoc/slice-links.link_box_u32.html rename to tests/rustdoc/slice-links.link_box_u32.html diff --git a/src/test/rustdoc/slice-links.link_slice_generic.html b/tests/rustdoc/slice-links.link_slice_generic.html similarity index 100% rename from src/test/rustdoc/slice-links.link_slice_generic.html rename to tests/rustdoc/slice-links.link_slice_generic.html diff --git a/src/test/rustdoc/slice-links.link_slice_u32.html b/tests/rustdoc/slice-links.link_slice_u32.html similarity index 100% rename from src/test/rustdoc/slice-links.link_slice_u32.html rename to tests/rustdoc/slice-links.link_slice_u32.html diff --git a/src/test/rustdoc/slice-links.rs b/tests/rustdoc/slice-links.rs similarity index 100% rename from src/test/rustdoc/slice-links.rs rename to tests/rustdoc/slice-links.rs diff --git a/src/test/rustdoc/smart-punct.rs b/tests/rustdoc/smart-punct.rs similarity index 100% rename from src/test/rustdoc/smart-punct.rs rename to tests/rustdoc/smart-punct.rs diff --git a/src/test/rustdoc/smoke.rs b/tests/rustdoc/smoke.rs similarity index 100% rename from src/test/rustdoc/smoke.rs rename to tests/rustdoc/smoke.rs diff --git a/src/test/rustdoc/sort-modules-by-appearance.rs b/tests/rustdoc/sort-modules-by-appearance.rs similarity index 100% rename from src/test/rustdoc/sort-modules-by-appearance.rs rename to tests/rustdoc/sort-modules-by-appearance.rs diff --git a/src/test/rustdoc/source-file.rs b/tests/rustdoc/source-file.rs similarity index 100% rename from src/test/rustdoc/source-file.rs rename to tests/rustdoc/source-file.rs diff --git a/src/test/rustdoc/source-version-separator.rs b/tests/rustdoc/source-version-separator.rs similarity index 100% rename from src/test/rustdoc/source-version-separator.rs rename to tests/rustdoc/source-version-separator.rs diff --git a/src/test/rustdoc/spotlight-from-dependency.odd.html b/tests/rustdoc/spotlight-from-dependency.odd.html similarity index 100% rename from src/test/rustdoc/spotlight-from-dependency.odd.html rename to tests/rustdoc/spotlight-from-dependency.odd.html diff --git a/src/test/rustdoc/spotlight-from-dependency.rs b/tests/rustdoc/spotlight-from-dependency.rs similarity index 100% rename from src/test/rustdoc/spotlight-from-dependency.rs rename to tests/rustdoc/spotlight-from-dependency.rs diff --git a/src/test/rustdoc/src-links-auto-impls.rs b/tests/rustdoc/src-links-auto-impls.rs similarity index 100% rename from src/test/rustdoc/src-links-auto-impls.rs rename to tests/rustdoc/src-links-auto-impls.rs diff --git a/src/test/rustdoc/src-links-external.rs b/tests/rustdoc/src-links-external.rs similarity index 100% rename from src/test/rustdoc/src-links-external.rs rename to tests/rustdoc/src-links-external.rs diff --git a/src/test/rustdoc/src-links.rs b/tests/rustdoc/src-links.rs similarity index 100% rename from src/test/rustdoc/src-links.rs rename to tests/rustdoc/src-links.rs diff --git a/src/test/rustdoc/src-links/compiletest-ignore-dir b/tests/rustdoc/src-links/compiletest-ignore-dir similarity index 100% rename from src/test/rustdoc/src-links/compiletest-ignore-dir rename to tests/rustdoc/src-links/compiletest-ignore-dir diff --git a/src/test/rustdoc/src-links/fizz.rs b/tests/rustdoc/src-links/fizz.rs similarity index 100% rename from src/test/rustdoc/src-links/fizz.rs rename to tests/rustdoc/src-links/fizz.rs diff --git a/src/test/rustdoc/src-links/mod.rs b/tests/rustdoc/src-links/mod.rs similarity index 100% rename from src/test/rustdoc/src-links/mod.rs rename to tests/rustdoc/src-links/mod.rs diff --git a/src/test/rustdoc/stability.rs b/tests/rustdoc/stability.rs similarity index 100% rename from src/test/rustdoc/stability.rs rename to tests/rustdoc/stability.rs diff --git a/src/test/rustdoc/static-root-path.rs b/tests/rustdoc/static-root-path.rs similarity index 100% rename from src/test/rustdoc/static-root-path.rs rename to tests/rustdoc/static-root-path.rs diff --git a/src/test/rustdoc/static.rs b/tests/rustdoc/static.rs similarity index 100% rename from src/test/rustdoc/static.rs rename to tests/rustdoc/static.rs diff --git a/src/test/rustdoc/strip-block-doc-comments-stars.docblock.html b/tests/rustdoc/strip-block-doc-comments-stars.docblock.html similarity index 100% rename from src/test/rustdoc/strip-block-doc-comments-stars.docblock.html rename to tests/rustdoc/strip-block-doc-comments-stars.docblock.html diff --git a/src/test/rustdoc/strip-block-doc-comments-stars.rs b/tests/rustdoc/strip-block-doc-comments-stars.rs similarity index 100% rename from src/test/rustdoc/strip-block-doc-comments-stars.rs rename to tests/rustdoc/strip-block-doc-comments-stars.rs diff --git a/src/test/rustdoc/strip-enum-variant.no-not-shown.html b/tests/rustdoc/strip-enum-variant.no-not-shown.html similarity index 100% rename from src/test/rustdoc/strip-enum-variant.no-not-shown.html rename to tests/rustdoc/strip-enum-variant.no-not-shown.html diff --git a/src/test/rustdoc/strip-enum-variant.rs b/tests/rustdoc/strip-enum-variant.rs similarity index 100% rename from src/test/rustdoc/strip-enum-variant.rs rename to tests/rustdoc/strip-enum-variant.rs diff --git a/src/test/rustdoc/struct-arg-pattern.rs b/tests/rustdoc/struct-arg-pattern.rs similarity index 100% rename from src/test/rustdoc/struct-arg-pattern.rs rename to tests/rustdoc/struct-arg-pattern.rs diff --git a/src/test/rustdoc/struct-field.rs b/tests/rustdoc/struct-field.rs similarity index 100% rename from src/test/rustdoc/struct-field.rs rename to tests/rustdoc/struct-field.rs diff --git a/src/test/rustdoc/struct-implementations-title.rs b/tests/rustdoc/struct-implementations-title.rs similarity index 100% rename from src/test/rustdoc/struct-implementations-title.rs rename to tests/rustdoc/struct-implementations-title.rs diff --git a/src/test/rustdoc/structfields.rs b/tests/rustdoc/structfields.rs similarity index 100% rename from src/test/rustdoc/structfields.rs rename to tests/rustdoc/structfields.rs diff --git a/src/test/rustdoc/synthetic_auto/basic.rs b/tests/rustdoc/synthetic_auto/basic.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/basic.rs rename to tests/rustdoc/synthetic_auto/basic.rs diff --git a/src/test/rustdoc/synthetic_auto/complex.rs b/tests/rustdoc/synthetic_auto/complex.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/complex.rs rename to tests/rustdoc/synthetic_auto/complex.rs diff --git a/src/test/rustdoc/synthetic_auto/crate-local.rs b/tests/rustdoc/synthetic_auto/crate-local.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/crate-local.rs rename to tests/rustdoc/synthetic_auto/crate-local.rs diff --git a/src/test/rustdoc/synthetic_auto/issue-72213-projection-lifetime.rs b/tests/rustdoc/synthetic_auto/issue-72213-projection-lifetime.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/issue-72213-projection-lifetime.rs rename to tests/rustdoc/synthetic_auto/issue-72213-projection-lifetime.rs diff --git a/src/test/rustdoc/synthetic_auto/lifetimes.rs b/tests/rustdoc/synthetic_auto/lifetimes.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/lifetimes.rs rename to tests/rustdoc/synthetic_auto/lifetimes.rs diff --git a/src/test/rustdoc/synthetic_auto/manual.rs b/tests/rustdoc/synthetic_auto/manual.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/manual.rs rename to tests/rustdoc/synthetic_auto/manual.rs diff --git a/src/test/rustdoc/synthetic_auto/negative.rs b/tests/rustdoc/synthetic_auto/negative.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/negative.rs rename to tests/rustdoc/synthetic_auto/negative.rs diff --git a/src/test/rustdoc/synthetic_auto/nested.rs b/tests/rustdoc/synthetic_auto/nested.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/nested.rs rename to tests/rustdoc/synthetic_auto/nested.rs diff --git a/src/test/rustdoc/synthetic_auto/no-redundancy.rs b/tests/rustdoc/synthetic_auto/no-redundancy.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/no-redundancy.rs rename to tests/rustdoc/synthetic_auto/no-redundancy.rs diff --git a/src/test/rustdoc/synthetic_auto/overflow.rs b/tests/rustdoc/synthetic_auto/overflow.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/overflow.rs rename to tests/rustdoc/synthetic_auto/overflow.rs diff --git a/src/test/rustdoc/synthetic_auto/project.rs b/tests/rustdoc/synthetic_auto/project.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/project.rs rename to tests/rustdoc/synthetic_auto/project.rs diff --git a/src/test/rustdoc/synthetic_auto/self-referential.rs b/tests/rustdoc/synthetic_auto/self-referential.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/self-referential.rs rename to tests/rustdoc/synthetic_auto/self-referential.rs diff --git a/src/test/rustdoc/synthetic_auto/static-region.rs b/tests/rustdoc/synthetic_auto/static-region.rs similarity index 100% rename from src/test/rustdoc/synthetic_auto/static-region.rs rename to tests/rustdoc/synthetic_auto/static-region.rs diff --git a/src/test/rustdoc/tab_title.rs b/tests/rustdoc/tab_title.rs similarity index 100% rename from src/test/rustdoc/tab_title.rs rename to tests/rustdoc/tab_title.rs diff --git a/src/test/rustdoc/table-in-docblock.rs b/tests/rustdoc/table-in-docblock.rs similarity index 100% rename from src/test/rustdoc/table-in-docblock.rs rename to tests/rustdoc/table-in-docblock.rs diff --git a/src/test/rustdoc/task-lists.rs b/tests/rustdoc/task-lists.rs similarity index 100% rename from src/test/rustdoc/task-lists.rs rename to tests/rustdoc/task-lists.rs diff --git a/src/test/rustdoc/test-lists.rs b/tests/rustdoc/test-lists.rs similarity index 100% rename from src/test/rustdoc/test-lists.rs rename to tests/rustdoc/test-lists.rs diff --git a/src/test/rustdoc/test-parens.rs b/tests/rustdoc/test-parens.rs similarity index 100% rename from src/test/rustdoc/test-parens.rs rename to tests/rustdoc/test-parens.rs diff --git a/src/test/rustdoc/test-strikethrough.rs b/tests/rustdoc/test-strikethrough.rs similarity index 100% rename from src/test/rustdoc/test-strikethrough.rs rename to tests/rustdoc/test-strikethrough.rs diff --git a/src/test/rustdoc/test_option_check/bar.rs b/tests/rustdoc/test_option_check/bar.rs similarity index 100% rename from src/test/rustdoc/test_option_check/bar.rs rename to tests/rustdoc/test_option_check/bar.rs diff --git a/src/test/rustdoc/test_option_check/test.rs b/tests/rustdoc/test_option_check/test.rs similarity index 100% rename from src/test/rustdoc/test_option_check/test.rs rename to tests/rustdoc/test_option_check/test.rs diff --git a/src/test/rustdoc/thread-local-src.rs b/tests/rustdoc/thread-local-src.rs similarity index 100% rename from src/test/rustdoc/thread-local-src.rs rename to tests/rustdoc/thread-local-src.rs diff --git a/src/test/rustdoc/titles.rs b/tests/rustdoc/titles.rs similarity index 100% rename from src/test/rustdoc/titles.rs rename to tests/rustdoc/titles.rs diff --git a/src/test/rustdoc/toggle-item-contents.rs b/tests/rustdoc/toggle-item-contents.rs similarity index 100% rename from src/test/rustdoc/toggle-item-contents.rs rename to tests/rustdoc/toggle-item-contents.rs diff --git a/src/test/rustdoc/toggle-method.rs b/tests/rustdoc/toggle-method.rs similarity index 100% rename from src/test/rustdoc/toggle-method.rs rename to tests/rustdoc/toggle-method.rs diff --git a/src/test/rustdoc/toggle-trait-fn.rs b/tests/rustdoc/toggle-trait-fn.rs similarity index 100% rename from src/test/rustdoc/toggle-trait-fn.rs rename to tests/rustdoc/toggle-trait-fn.rs diff --git a/src/test/rustdoc/trait-alias-mention.rs b/tests/rustdoc/trait-alias-mention.rs similarity index 100% rename from src/test/rustdoc/trait-alias-mention.rs rename to tests/rustdoc/trait-alias-mention.rs diff --git a/src/test/rustdoc/trait-impl-items-links-and-anchors.rs b/tests/rustdoc/trait-impl-items-links-and-anchors.rs similarity index 100% rename from src/test/rustdoc/trait-impl-items-links-and-anchors.rs rename to tests/rustdoc/trait-impl-items-links-and-anchors.rs diff --git a/src/test/rustdoc/trait-impl.rs b/tests/rustdoc/trait-impl.rs similarity index 100% rename from src/test/rustdoc/trait-impl.rs rename to tests/rustdoc/trait-impl.rs diff --git a/src/test/rustdoc/trait-self-link.rs b/tests/rustdoc/trait-self-link.rs similarity index 100% rename from src/test/rustdoc/trait-self-link.rs rename to tests/rustdoc/trait-self-link.rs diff --git a/src/test/rustdoc/trait-src-link.rs b/tests/rustdoc/trait-src-link.rs similarity index 100% rename from src/test/rustdoc/trait-src-link.rs rename to tests/rustdoc/trait-src-link.rs diff --git a/src/test/rustdoc/trait-visibility.rs b/tests/rustdoc/trait-visibility.rs similarity index 100% rename from src/test/rustdoc/trait-visibility.rs rename to tests/rustdoc/trait-visibility.rs diff --git a/src/test/rustdoc/trait_alias.rs b/tests/rustdoc/trait_alias.rs similarity index 100% rename from src/test/rustdoc/trait_alias.rs rename to tests/rustdoc/trait_alias.rs diff --git a/src/test/rustdoc/traits-in-bodies-private.rs b/tests/rustdoc/traits-in-bodies-private.rs similarity index 100% rename from src/test/rustdoc/traits-in-bodies-private.rs rename to tests/rustdoc/traits-in-bodies-private.rs diff --git a/src/test/rustdoc/traits-in-bodies.rs b/tests/rustdoc/traits-in-bodies.rs similarity index 100% rename from src/test/rustdoc/traits-in-bodies.rs rename to tests/rustdoc/traits-in-bodies.rs diff --git a/src/test/rustdoc/tuple-struct-fields-doc.rs b/tests/rustdoc/tuple-struct-fields-doc.rs similarity index 100% rename from src/test/rustdoc/tuple-struct-fields-doc.rs rename to tests/rustdoc/tuple-struct-fields-doc.rs diff --git a/src/test/rustdoc/tuples.link1_i32.html b/tests/rustdoc/tuples.link1_i32.html similarity index 100% rename from src/test/rustdoc/tuples.link1_i32.html rename to tests/rustdoc/tuples.link1_i32.html diff --git a/src/test/rustdoc/tuples.link1_t.html b/tests/rustdoc/tuples.link1_t.html similarity index 100% rename from src/test/rustdoc/tuples.link1_t.html rename to tests/rustdoc/tuples.link1_t.html diff --git a/src/test/rustdoc/tuples.link2_i32.html b/tests/rustdoc/tuples.link2_i32.html similarity index 100% rename from src/test/rustdoc/tuples.link2_i32.html rename to tests/rustdoc/tuples.link2_i32.html diff --git a/src/test/rustdoc/tuples.link2_t.html b/tests/rustdoc/tuples.link2_t.html similarity index 100% rename from src/test/rustdoc/tuples.link2_t.html rename to tests/rustdoc/tuples.link2_t.html diff --git a/src/test/rustdoc/tuples.link2_tu.html b/tests/rustdoc/tuples.link2_tu.html similarity index 100% rename from src/test/rustdoc/tuples.link2_tu.html rename to tests/rustdoc/tuples.link2_tu.html diff --git a/src/test/rustdoc/tuples.link_unit.html b/tests/rustdoc/tuples.link_unit.html similarity index 100% rename from src/test/rustdoc/tuples.link_unit.html rename to tests/rustdoc/tuples.link_unit.html diff --git a/src/test/rustdoc/tuples.rs b/tests/rustdoc/tuples.rs similarity index 100% rename from src/test/rustdoc/tuples.rs rename to tests/rustdoc/tuples.rs diff --git a/src/test/rustdoc/type-layout-flag-required.rs b/tests/rustdoc/type-layout-flag-required.rs similarity index 100% rename from src/test/rustdoc/type-layout-flag-required.rs rename to tests/rustdoc/type-layout-flag-required.rs diff --git a/src/test/rustdoc/type-layout.rs b/tests/rustdoc/type-layout.rs similarity index 100% rename from src/test/rustdoc/type-layout.rs rename to tests/rustdoc/type-layout.rs diff --git a/src/test/rustdoc/typedef.rs b/tests/rustdoc/typedef.rs similarity index 100% rename from src/test/rustdoc/typedef.rs rename to tests/rustdoc/typedef.rs diff --git a/src/test/rustdoc/unindent.md b/tests/rustdoc/unindent.md similarity index 100% rename from src/test/rustdoc/unindent.md rename to tests/rustdoc/unindent.md diff --git a/src/test/rustdoc/unindent.rs b/tests/rustdoc/unindent.rs similarity index 100% rename from src/test/rustdoc/unindent.rs rename to tests/rustdoc/unindent.rs diff --git a/src/test/rustdoc/union.rs b/tests/rustdoc/union.rs similarity index 100% rename from src/test/rustdoc/union.rs rename to tests/rustdoc/union.rs diff --git a/src/test/rustdoc/unit-return.rs b/tests/rustdoc/unit-return.rs similarity index 100% rename from src/test/rustdoc/unit-return.rs rename to tests/rustdoc/unit-return.rs diff --git a/src/test/rustdoc/universal-impl-trait.rs b/tests/rustdoc/universal-impl-trait.rs similarity index 100% rename from src/test/rustdoc/universal-impl-trait.rs rename to tests/rustdoc/universal-impl-trait.rs diff --git a/src/test/rustdoc/unneeded-trait-implementations-title.rs b/tests/rustdoc/unneeded-trait-implementations-title.rs similarity index 100% rename from src/test/rustdoc/unneeded-trait-implementations-title.rs rename to tests/rustdoc/unneeded-trait-implementations-title.rs diff --git a/src/test/rustdoc/use-attr.rs b/tests/rustdoc/use-attr.rs similarity index 100% rename from src/test/rustdoc/use-attr.rs rename to tests/rustdoc/use-attr.rs diff --git a/src/test/rustdoc/useless_lifetime_bound.rs b/tests/rustdoc/useless_lifetime_bound.rs similarity index 100% rename from src/test/rustdoc/useless_lifetime_bound.rs rename to tests/rustdoc/useless_lifetime_bound.rs diff --git a/src/test/rustdoc/variadic.rs b/tests/rustdoc/variadic.rs similarity index 100% rename from src/test/rustdoc/variadic.rs rename to tests/rustdoc/variadic.rs diff --git a/src/test/rustdoc/version-separator-without-source.rs b/tests/rustdoc/version-separator-without-source.rs similarity index 100% rename from src/test/rustdoc/version-separator-without-source.rs rename to tests/rustdoc/version-separator-without-source.rs diff --git a/src/test/rustdoc/viewpath-rename.rs b/tests/rustdoc/viewpath-rename.rs similarity index 100% rename from src/test/rustdoc/viewpath-rename.rs rename to tests/rustdoc/viewpath-rename.rs diff --git a/src/test/rustdoc/viewpath-self.rs b/tests/rustdoc/viewpath-self.rs similarity index 100% rename from src/test/rustdoc/viewpath-self.rs rename to tests/rustdoc/viewpath-self.rs diff --git a/src/test/rustdoc/visibility.rs b/tests/rustdoc/visibility.rs similarity index 100% rename from src/test/rustdoc/visibility.rs rename to tests/rustdoc/visibility.rs diff --git a/src/test/rustdoc/where-clause-order.rs b/tests/rustdoc/where-clause-order.rs similarity index 100% rename from src/test/rustdoc/where-clause-order.rs rename to tests/rustdoc/where-clause-order.rs diff --git a/src/test/rustdoc/where-sized.rs b/tests/rustdoc/where-sized.rs similarity index 100% rename from src/test/rustdoc/where-sized.rs rename to tests/rustdoc/where-sized.rs diff --git a/src/test/rustdoc/where.SWhere_Simd_item-decl.html b/tests/rustdoc/where.SWhere_Simd_item-decl.html similarity index 100% rename from src/test/rustdoc/where.SWhere_Simd_item-decl.html rename to tests/rustdoc/where.SWhere_Simd_item-decl.html diff --git a/src/test/rustdoc/where.SWhere_TraitWhere_item-decl.html b/tests/rustdoc/where.SWhere_TraitWhere_item-decl.html similarity index 100% rename from src/test/rustdoc/where.SWhere_TraitWhere_item-decl.html rename to tests/rustdoc/where.SWhere_TraitWhere_item-decl.html diff --git a/src/test/rustdoc/where.rs b/tests/rustdoc/where.rs similarity index 100% rename from src/test/rustdoc/where.rs rename to tests/rustdoc/where.rs diff --git a/src/test/rustdoc/whitespace-after-where-clause.enum.html b/tests/rustdoc/whitespace-after-where-clause.enum.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.enum.html rename to tests/rustdoc/whitespace-after-where-clause.enum.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.enum2.html b/tests/rustdoc/whitespace-after-where-clause.enum2.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.enum2.html rename to tests/rustdoc/whitespace-after-where-clause.enum2.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.rs b/tests/rustdoc/whitespace-after-where-clause.rs similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.rs rename to tests/rustdoc/whitespace-after-where-clause.rs diff --git a/src/test/rustdoc/whitespace-after-where-clause.struct.html b/tests/rustdoc/whitespace-after-where-clause.struct.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.struct.html rename to tests/rustdoc/whitespace-after-where-clause.struct.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.struct2.html b/tests/rustdoc/whitespace-after-where-clause.struct2.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.struct2.html rename to tests/rustdoc/whitespace-after-where-clause.struct2.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.trait.html b/tests/rustdoc/whitespace-after-where-clause.trait.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.trait.html rename to tests/rustdoc/whitespace-after-where-clause.trait.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.trait2.html b/tests/rustdoc/whitespace-after-where-clause.trait2.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.trait2.html rename to tests/rustdoc/whitespace-after-where-clause.trait2.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.union.html b/tests/rustdoc/whitespace-after-where-clause.union.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.union.html rename to tests/rustdoc/whitespace-after-where-clause.union.html diff --git a/src/test/rustdoc/whitespace-after-where-clause.union2.html b/tests/rustdoc/whitespace-after-where-clause.union2.html similarity index 100% rename from src/test/rustdoc/whitespace-after-where-clause.union2.html rename to tests/rustdoc/whitespace-after-where-clause.union2.html diff --git a/src/test/rustdoc/without-redirect.rs b/tests/rustdoc/without-redirect.rs similarity index 100% rename from src/test/rustdoc/without-redirect.rs rename to tests/rustdoc/without-redirect.rs diff --git a/src/test/rustdoc/wrapping.rs b/tests/rustdoc/wrapping.rs similarity index 100% rename from src/test/rustdoc/wrapping.rs rename to tests/rustdoc/wrapping.rs diff --git a/src/test/ui-fulldeps/auxiliary/empty-plugin.rs b/tests/ui-fulldeps/auxiliary/empty-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/empty-plugin.rs rename to tests/ui-fulldeps/auxiliary/empty-plugin.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-13560-1.rs b/tests/ui-fulldeps/auxiliary/issue-13560-1.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-13560-1.rs rename to tests/ui-fulldeps/auxiliary/issue-13560-1.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-13560-2.rs b/tests/ui-fulldeps/auxiliary/issue-13560-2.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-13560-2.rs rename to tests/ui-fulldeps/auxiliary/issue-13560-2.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-13560-3.rs b/tests/ui-fulldeps/auxiliary/issue-13560-3.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-13560-3.rs rename to tests/ui-fulldeps/auxiliary/issue-13560-3.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-16822.rs b/tests/ui-fulldeps/auxiliary/issue-16822.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-16822.rs rename to tests/ui-fulldeps/auxiliary/issue-16822.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-18502.rs b/tests/ui-fulldeps/auxiliary/issue-18502.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-18502.rs rename to tests/ui-fulldeps/auxiliary/issue-18502.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-24106.rs b/tests/ui-fulldeps/auxiliary/issue-24106.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-24106.rs rename to tests/ui-fulldeps/auxiliary/issue-24106.rs diff --git a/src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs b/tests/ui-fulldeps/auxiliary/issue-40001-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/issue-40001-plugin.rs rename to tests/ui-fulldeps/auxiliary/issue-40001-plugin.rs diff --git a/src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs b/tests/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs rename to tests/ui-fulldeps/auxiliary/lint-for-crate-rpass.rs diff --git a/src/test/ui-fulldeps/auxiliary/lint-for-crate.rs b/tests/ui-fulldeps/auxiliary/lint-for-crate.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lint-for-crate.rs rename to tests/ui-fulldeps/auxiliary/lint-for-crate.rs diff --git a/src/test/ui-fulldeps/auxiliary/lint-group-plugin-test.rs b/tests/ui-fulldeps/auxiliary/lint-group-plugin-test.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lint-group-plugin-test.rs rename to tests/ui-fulldeps/auxiliary/lint-group-plugin-test.rs diff --git a/src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs b/tests/ui-fulldeps/auxiliary/lint-plugin-test.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lint-plugin-test.rs rename to tests/ui-fulldeps/auxiliary/lint-plugin-test.rs diff --git a/src/test/ui-fulldeps/auxiliary/lint-tool-test.rs b/tests/ui-fulldeps/auxiliary/lint-tool-test.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lint-tool-test.rs rename to tests/ui-fulldeps/auxiliary/lint-tool-test.rs diff --git a/src/test/ui-fulldeps/auxiliary/lto-syntax-extension-lib.rs b/tests/ui-fulldeps/auxiliary/lto-syntax-extension-lib.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lto-syntax-extension-lib.rs rename to tests/ui-fulldeps/auxiliary/lto-syntax-extension-lib.rs diff --git a/src/test/ui-fulldeps/auxiliary/lto-syntax-extension-plugin.rs b/tests/ui-fulldeps/auxiliary/lto-syntax-extension-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/lto-syntax-extension-plugin.rs rename to tests/ui-fulldeps/auxiliary/lto-syntax-extension-plugin.rs diff --git a/src/test/ui-fulldeps/auxiliary/multiple-plugins-1.rs b/tests/ui-fulldeps/auxiliary/multiple-plugins-1.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/multiple-plugins-1.rs rename to tests/ui-fulldeps/auxiliary/multiple-plugins-1.rs diff --git a/src/test/ui-fulldeps/auxiliary/multiple-plugins-2.rs b/tests/ui-fulldeps/auxiliary/multiple-plugins-2.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/multiple-plugins-2.rs rename to tests/ui-fulldeps/auxiliary/multiple-plugins-2.rs diff --git a/src/test/ui-fulldeps/auxiliary/outlive-expansion-phase.rs b/tests/ui-fulldeps/auxiliary/outlive-expansion-phase.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/outlive-expansion-phase.rs rename to tests/ui-fulldeps/auxiliary/outlive-expansion-phase.rs diff --git a/src/test/ui-fulldeps/auxiliary/rlib-crate-test.rs b/tests/ui-fulldeps/auxiliary/rlib-crate-test.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/rlib-crate-test.rs rename to tests/ui-fulldeps/auxiliary/rlib-crate-test.rs diff --git a/src/test/ui-fulldeps/auxiliary/syntax-extension-with-dll-deps-1.rs b/tests/ui-fulldeps/auxiliary/syntax-extension-with-dll-deps-1.rs similarity index 100% rename from src/test/ui-fulldeps/auxiliary/syntax-extension-with-dll-deps-1.rs rename to tests/ui-fulldeps/auxiliary/syntax-extension-with-dll-deps-1.rs diff --git a/src/test/ui-fulldeps/compiler-calls.rs b/tests/ui-fulldeps/compiler-calls.rs similarity index 100% rename from src/test/ui-fulldeps/compiler-calls.rs rename to tests/ui-fulldeps/compiler-calls.rs diff --git a/src/test/ui-fulldeps/create-dir-all-bare.rs b/tests/ui-fulldeps/create-dir-all-bare.rs similarity index 100% rename from src/test/ui-fulldeps/create-dir-all-bare.rs rename to tests/ui-fulldeps/create-dir-all-bare.rs diff --git a/src/test/ui-fulldeps/deriving-encodable-decodable-box.rs b/tests/ui-fulldeps/deriving-encodable-decodable-box.rs similarity index 100% rename from src/test/ui-fulldeps/deriving-encodable-decodable-box.rs rename to tests/ui-fulldeps/deriving-encodable-decodable-box.rs diff --git a/src/test/ui-fulldeps/deriving-encodable-decodable-cell-refcell.rs b/tests/ui-fulldeps/deriving-encodable-decodable-cell-refcell.rs similarity index 100% rename from src/test/ui-fulldeps/deriving-encodable-decodable-cell-refcell.rs rename to tests/ui-fulldeps/deriving-encodable-decodable-cell-refcell.rs diff --git a/src/test/ui-fulldeps/deriving-global.rs b/tests/ui-fulldeps/deriving-global.rs similarity index 100% rename from src/test/ui-fulldeps/deriving-global.rs rename to tests/ui-fulldeps/deriving-global.rs diff --git a/src/test/ui-fulldeps/deriving-hygiene.rs b/tests/ui-fulldeps/deriving-hygiene.rs similarity index 100% rename from src/test/ui-fulldeps/deriving-hygiene.rs rename to tests/ui-fulldeps/deriving-hygiene.rs diff --git a/src/test/ui-fulldeps/dropck-tarena-cycle-checked.rs b/tests/ui-fulldeps/dropck-tarena-cycle-checked.rs similarity index 100% rename from src/test/ui-fulldeps/dropck-tarena-cycle-checked.rs rename to tests/ui-fulldeps/dropck-tarena-cycle-checked.rs diff --git a/src/test/ui-fulldeps/dropck-tarena-cycle-checked.stderr b/tests/ui-fulldeps/dropck-tarena-cycle-checked.stderr similarity index 100% rename from src/test/ui-fulldeps/dropck-tarena-cycle-checked.stderr rename to tests/ui-fulldeps/dropck-tarena-cycle-checked.stderr diff --git a/src/test/ui-fulldeps/dropck-tarena-unsound-drop.rs b/tests/ui-fulldeps/dropck-tarena-unsound-drop.rs similarity index 100% rename from src/test/ui-fulldeps/dropck-tarena-unsound-drop.rs rename to tests/ui-fulldeps/dropck-tarena-unsound-drop.rs diff --git a/src/test/ui-fulldeps/dropck-tarena-unsound-drop.stderr b/tests/ui-fulldeps/dropck-tarena-unsound-drop.stderr similarity index 100% rename from src/test/ui-fulldeps/dropck-tarena-unsound-drop.stderr rename to tests/ui-fulldeps/dropck-tarena-unsound-drop.stderr diff --git a/src/test/ui-fulldeps/dropck_tarena_sound_drop.rs b/tests/ui-fulldeps/dropck_tarena_sound_drop.rs similarity index 100% rename from src/test/ui-fulldeps/dropck_tarena_sound_drop.rs rename to tests/ui-fulldeps/dropck_tarena_sound_drop.rs diff --git a/src/test/ui-fulldeps/empty-struct-braces-derive.rs b/tests/ui-fulldeps/empty-struct-braces-derive.rs similarity index 100% rename from src/test/ui-fulldeps/empty-struct-braces-derive.rs rename to tests/ui-fulldeps/empty-struct-braces-derive.rs diff --git a/src/test/ui-fulldeps/extern-mod-syntax.rs b/tests/ui-fulldeps/extern-mod-syntax.rs similarity index 100% rename from src/test/ui-fulldeps/extern-mod-syntax.rs rename to tests/ui-fulldeps/extern-mod-syntax.rs diff --git a/src/test/ui-fulldeps/feature-gate-plugin.rs b/tests/ui-fulldeps/feature-gate-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/feature-gate-plugin.rs rename to tests/ui-fulldeps/feature-gate-plugin.rs diff --git a/src/test/ui-fulldeps/feature-gate-plugin.stderr b/tests/ui-fulldeps/feature-gate-plugin.stderr similarity index 100% rename from src/test/ui-fulldeps/feature-gate-plugin.stderr rename to tests/ui-fulldeps/feature-gate-plugin.stderr diff --git a/src/test/ui-fulldeps/fluent-messages/duplicate-a-b.ftl b/tests/ui-fulldeps/fluent-messages/duplicate-a-b.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/duplicate-a-b.ftl rename to tests/ui-fulldeps/fluent-messages/duplicate-a-b.ftl diff --git a/src/test/ui-fulldeps/fluent-messages/duplicate-a.ftl b/tests/ui-fulldeps/fluent-messages/duplicate-a.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/duplicate-a.ftl rename to tests/ui-fulldeps/fluent-messages/duplicate-a.ftl diff --git a/src/test/ui-fulldeps/fluent-messages/label-with-hyphens.ftl b/tests/ui-fulldeps/fluent-messages/label-with-hyphens.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/label-with-hyphens.ftl rename to tests/ui-fulldeps/fluent-messages/label-with-hyphens.ftl diff --git a/src/test/ui-fulldeps/fluent-messages/missing-crate-name.ftl b/tests/ui-fulldeps/fluent-messages/missing-crate-name.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/missing-crate-name.ftl rename to tests/ui-fulldeps/fluent-messages/missing-crate-name.ftl diff --git a/src/test/ui-fulldeps/fluent-messages/missing-message.ftl b/tests/ui-fulldeps/fluent-messages/missing-message.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/missing-message.ftl rename to tests/ui-fulldeps/fluent-messages/missing-message.ftl diff --git a/src/test/ui-fulldeps/fluent-messages/slug-with-hyphens.ftl b/tests/ui-fulldeps/fluent-messages/slug-with-hyphens.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/slug-with-hyphens.ftl rename to tests/ui-fulldeps/fluent-messages/slug-with-hyphens.ftl diff --git a/src/test/ui-fulldeps/fluent-messages/test.rs b/tests/ui-fulldeps/fluent-messages/test.rs similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/test.rs rename to tests/ui-fulldeps/fluent-messages/test.rs diff --git a/src/test/ui-fulldeps/fluent-messages/test.stderr b/tests/ui-fulldeps/fluent-messages/test.stderr similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/test.stderr rename to tests/ui-fulldeps/fluent-messages/test.stderr diff --git a/src/test/ui-fulldeps/fluent-messages/valid.ftl b/tests/ui-fulldeps/fluent-messages/valid.ftl similarity index 100% rename from src/test/ui-fulldeps/fluent-messages/valid.ftl rename to tests/ui-fulldeps/fluent-messages/valid.ftl diff --git a/src/test/ui-fulldeps/gated-plugin.rs b/tests/ui-fulldeps/gated-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/gated-plugin.rs rename to tests/ui-fulldeps/gated-plugin.rs diff --git a/src/test/ui-fulldeps/gated-plugin.stderr b/tests/ui-fulldeps/gated-plugin.stderr similarity index 100% rename from src/test/ui-fulldeps/gated-plugin.stderr rename to tests/ui-fulldeps/gated-plugin.stderr diff --git a/src/test/ui-fulldeps/hash-stable-is-unstable.rs b/tests/ui-fulldeps/hash-stable-is-unstable.rs similarity index 100% rename from src/test/ui-fulldeps/hash-stable-is-unstable.rs rename to tests/ui-fulldeps/hash-stable-is-unstable.rs diff --git a/src/test/ui-fulldeps/hash-stable-is-unstable.stderr b/tests/ui-fulldeps/hash-stable-is-unstable.stderr similarity index 100% rename from src/test/ui-fulldeps/hash-stable-is-unstable.stderr rename to tests/ui-fulldeps/hash-stable-is-unstable.stderr diff --git a/src/test/ui-fulldeps/internal-lints/bad_opt_access.rs b/tests/ui-fulldeps/internal-lints/bad_opt_access.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/bad_opt_access.rs rename to tests/ui-fulldeps/internal-lints/bad_opt_access.rs diff --git a/src/test/ui-fulldeps/internal-lints/bad_opt_access.stderr b/tests/ui-fulldeps/internal-lints/bad_opt_access.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/bad_opt_access.stderr rename to tests/ui-fulldeps/internal-lints/bad_opt_access.stderr diff --git a/src/test/ui-fulldeps/internal-lints/default_hash_types.rs b/tests/ui-fulldeps/internal-lints/default_hash_types.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/default_hash_types.rs rename to tests/ui-fulldeps/internal-lints/default_hash_types.rs diff --git a/src/test/ui-fulldeps/internal-lints/default_hash_types.stderr b/tests/ui-fulldeps/internal-lints/default_hash_types.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/default_hash_types.stderr rename to tests/ui-fulldeps/internal-lints/default_hash_types.stderr diff --git a/src/test/ui-fulldeps/internal-lints/diagnostics.rs b/tests/ui-fulldeps/internal-lints/diagnostics.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/diagnostics.rs rename to tests/ui-fulldeps/internal-lints/diagnostics.rs diff --git a/src/test/ui-fulldeps/internal-lints/diagnostics.stderr b/tests/ui-fulldeps/internal-lints/diagnostics.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/diagnostics.stderr rename to tests/ui-fulldeps/internal-lints/diagnostics.stderr diff --git a/src/test/ui-fulldeps/internal-lints/diagnostics_incorrect.rs b/tests/ui-fulldeps/internal-lints/diagnostics_incorrect.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/diagnostics_incorrect.rs rename to tests/ui-fulldeps/internal-lints/diagnostics_incorrect.rs diff --git a/src/test/ui-fulldeps/internal-lints/diagnostics_incorrect.stderr b/tests/ui-fulldeps/internal-lints/diagnostics_incorrect.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/diagnostics_incorrect.stderr rename to tests/ui-fulldeps/internal-lints/diagnostics_incorrect.stderr diff --git a/src/test/ui-fulldeps/internal-lints/existing_doc_keyword.rs b/tests/ui-fulldeps/internal-lints/existing_doc_keyword.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/existing_doc_keyword.rs rename to tests/ui-fulldeps/internal-lints/existing_doc_keyword.rs diff --git a/src/test/ui-fulldeps/internal-lints/existing_doc_keyword.stderr b/tests/ui-fulldeps/internal-lints/existing_doc_keyword.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/existing_doc_keyword.stderr rename to tests/ui-fulldeps/internal-lints/existing_doc_keyword.stderr diff --git a/src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs b/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs rename to tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs diff --git a/src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr b/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr rename to tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr diff --git a/src/test/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs b/tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs rename to tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs diff --git a/src/test/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.stderr b/tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.stderr rename to tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.stderr diff --git a/src/test/ui-fulldeps/internal-lints/query_stability.rs b/tests/ui-fulldeps/internal-lints/query_stability.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/query_stability.rs rename to tests/ui-fulldeps/internal-lints/query_stability.rs diff --git a/src/test/ui-fulldeps/internal-lints/query_stability.stderr b/tests/ui-fulldeps/internal-lints/query_stability.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/query_stability.stderr rename to tests/ui-fulldeps/internal-lints/query_stability.stderr diff --git a/src/test/ui-fulldeps/internal-lints/query_stability_incorrect.rs b/tests/ui-fulldeps/internal-lints/query_stability_incorrect.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/query_stability_incorrect.rs rename to tests/ui-fulldeps/internal-lints/query_stability_incorrect.rs diff --git a/src/test/ui-fulldeps/internal-lints/query_stability_incorrect.stderr b/tests/ui-fulldeps/internal-lints/query_stability_incorrect.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/query_stability_incorrect.stderr rename to tests/ui-fulldeps/internal-lints/query_stability_incorrect.stderr diff --git a/src/test/ui-fulldeps/internal-lints/rustc_pass_by_value.rs b/tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/rustc_pass_by_value.rs rename to tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs diff --git a/src/test/ui-fulldeps/internal-lints/rustc_pass_by_value.stderr b/tests/ui-fulldeps/internal-lints/rustc_pass_by_value.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/rustc_pass_by_value.stderr rename to tests/ui-fulldeps/internal-lints/rustc_pass_by_value.stderr diff --git a/src/test/ui-fulldeps/internal-lints/rustc_pass_by_value_self.rs b/tests/ui-fulldeps/internal-lints/rustc_pass_by_value_self.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/rustc_pass_by_value_self.rs rename to tests/ui-fulldeps/internal-lints/rustc_pass_by_value_self.rs diff --git a/src/test/ui-fulldeps/internal-lints/rustc_pass_by_value_self.stderr b/tests/ui-fulldeps/internal-lints/rustc_pass_by_value_self.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/rustc_pass_by_value_self.stderr rename to tests/ui-fulldeps/internal-lints/rustc_pass_by_value_self.stderr diff --git a/src/test/ui-fulldeps/internal-lints/ty_tykind_usage.rs b/tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs similarity index 100% rename from src/test/ui-fulldeps/internal-lints/ty_tykind_usage.rs rename to tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs diff --git a/src/test/ui-fulldeps/internal-lints/ty_tykind_usage.stderr b/tests/ui-fulldeps/internal-lints/ty_tykind_usage.stderr similarity index 100% rename from src/test/ui-fulldeps/internal-lints/ty_tykind_usage.stderr rename to tests/ui-fulldeps/internal-lints/ty_tykind_usage.stderr diff --git a/src/test/ui-fulldeps/issue-11881.rs b/tests/ui-fulldeps/issue-11881.rs similarity index 100% rename from src/test/ui-fulldeps/issue-11881.rs rename to tests/ui-fulldeps/issue-11881.rs diff --git a/src/test/ui-fulldeps/issue-13560.rs b/tests/ui-fulldeps/issue-13560.rs similarity index 100% rename from src/test/ui-fulldeps/issue-13560.rs rename to tests/ui-fulldeps/issue-13560.rs diff --git a/src/test/ui-fulldeps/issue-14021.rs b/tests/ui-fulldeps/issue-14021.rs similarity index 100% rename from src/test/ui-fulldeps/issue-14021.rs rename to tests/ui-fulldeps/issue-14021.rs diff --git a/src/test/ui-fulldeps/issue-15149.rs b/tests/ui-fulldeps/issue-15149.rs similarity index 100% rename from src/test/ui-fulldeps/issue-15149.rs rename to tests/ui-fulldeps/issue-15149.rs diff --git a/src/test/ui-fulldeps/issue-15778-fail.rs b/tests/ui-fulldeps/issue-15778-fail.rs similarity index 100% rename from src/test/ui-fulldeps/issue-15778-fail.rs rename to tests/ui-fulldeps/issue-15778-fail.rs diff --git a/src/test/ui-fulldeps/issue-15778-fail.stderr b/tests/ui-fulldeps/issue-15778-fail.stderr similarity index 100% rename from src/test/ui-fulldeps/issue-15778-fail.stderr rename to tests/ui-fulldeps/issue-15778-fail.stderr diff --git a/src/test/ui-fulldeps/issue-15924.rs b/tests/ui-fulldeps/issue-15924.rs similarity index 100% rename from src/test/ui-fulldeps/issue-15924.rs rename to tests/ui-fulldeps/issue-15924.rs diff --git a/src/test/ui-fulldeps/issue-16822.rs b/tests/ui-fulldeps/issue-16822.rs similarity index 100% rename from src/test/ui-fulldeps/issue-16822.rs rename to tests/ui-fulldeps/issue-16822.rs diff --git a/src/test/ui-fulldeps/issue-18502.rs b/tests/ui-fulldeps/issue-18502.rs similarity index 100% rename from src/test/ui-fulldeps/issue-18502.rs rename to tests/ui-fulldeps/issue-18502.rs diff --git a/src/test/ui-fulldeps/issue-24106.rs b/tests/ui-fulldeps/issue-24106.rs similarity index 100% rename from src/test/ui-fulldeps/issue-24106.rs rename to tests/ui-fulldeps/issue-24106.rs diff --git a/src/test/ui-fulldeps/issue-2804.rs b/tests/ui-fulldeps/issue-2804.rs similarity index 100% rename from src/test/ui-fulldeps/issue-2804.rs rename to tests/ui-fulldeps/issue-2804.rs diff --git a/src/test/ui-fulldeps/issue-40001.rs b/tests/ui-fulldeps/issue-40001.rs similarity index 100% rename from src/test/ui-fulldeps/issue-40001.rs rename to tests/ui-fulldeps/issue-40001.rs diff --git a/src/test/ui-fulldeps/issue-40001.stderr b/tests/ui-fulldeps/issue-40001.stderr similarity index 100% rename from src/test/ui-fulldeps/issue-40001.stderr rename to tests/ui-fulldeps/issue-40001.stderr diff --git a/src/test/ui-fulldeps/issue-81357-unsound-file-methods.rs b/tests/ui-fulldeps/issue-81357-unsound-file-methods.rs similarity index 100% rename from src/test/ui-fulldeps/issue-81357-unsound-file-methods.rs rename to tests/ui-fulldeps/issue-81357-unsound-file-methods.rs diff --git a/src/test/ui-fulldeps/lint-group-denied-lint-allowed.rs b/tests/ui-fulldeps/lint-group-denied-lint-allowed.rs similarity index 100% rename from src/test/ui-fulldeps/lint-group-denied-lint-allowed.rs rename to tests/ui-fulldeps/lint-group-denied-lint-allowed.rs diff --git a/src/test/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs b/tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs similarity index 100% rename from src/test/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs rename to tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.rs diff --git a/src/test/ui-fulldeps/lint-group-forbid-always-trumps-cli.stderr b/tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-group-forbid-always-trumps-cli.stderr rename to tests/ui-fulldeps/lint-group-forbid-always-trumps-cli.stderr diff --git a/src/test/ui-fulldeps/lint-group-plugin-deny-cmdline.rs b/tests/ui-fulldeps/lint-group-plugin-deny-cmdline.rs similarity index 100% rename from src/test/ui-fulldeps/lint-group-plugin-deny-cmdline.rs rename to tests/ui-fulldeps/lint-group-plugin-deny-cmdline.rs diff --git a/src/test/ui-fulldeps/lint-group-plugin-deny-cmdline.stderr b/tests/ui-fulldeps/lint-group-plugin-deny-cmdline.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-group-plugin-deny-cmdline.stderr rename to tests/ui-fulldeps/lint-group-plugin-deny-cmdline.stderr diff --git a/src/test/ui-fulldeps/lint-group-plugin.rs b/tests/ui-fulldeps/lint-group-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/lint-group-plugin.rs rename to tests/ui-fulldeps/lint-group-plugin.rs diff --git a/src/test/ui-fulldeps/lint-group-plugin.stderr b/tests/ui-fulldeps/lint-group-plugin.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-group-plugin.stderr rename to tests/ui-fulldeps/lint-group-plugin.stderr diff --git a/src/test/ui-fulldeps/lint-pass-macros.rs b/tests/ui-fulldeps/lint-pass-macros.rs similarity index 100% rename from src/test/ui-fulldeps/lint-pass-macros.rs rename to tests/ui-fulldeps/lint-pass-macros.rs diff --git a/src/test/ui-fulldeps/lint-plugin-cmdline-allow.rs b/tests/ui-fulldeps/lint-plugin-cmdline-allow.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-cmdline-allow.rs rename to tests/ui-fulldeps/lint-plugin-cmdline-allow.rs diff --git a/src/test/ui-fulldeps/lint-plugin-cmdline-allow.stderr b/tests/ui-fulldeps/lint-plugin-cmdline-allow.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-cmdline-allow.stderr rename to tests/ui-fulldeps/lint-plugin-cmdline-allow.stderr diff --git a/src/test/ui-fulldeps/lint-plugin-cmdline-load.rs b/tests/ui-fulldeps/lint-plugin-cmdline-load.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-cmdline-load.rs rename to tests/ui-fulldeps/lint-plugin-cmdline-load.rs diff --git a/src/test/ui-fulldeps/lint-plugin-cmdline-load.stderr b/tests/ui-fulldeps/lint-plugin-cmdline-load.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-cmdline-load.stderr rename to tests/ui-fulldeps/lint-plugin-cmdline-load.stderr diff --git a/src/test/ui-fulldeps/lint-plugin-deny-attr.rs b/tests/ui-fulldeps/lint-plugin-deny-attr.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-deny-attr.rs rename to tests/ui-fulldeps/lint-plugin-deny-attr.rs diff --git a/src/test/ui-fulldeps/lint-plugin-deny-attr.stderr b/tests/ui-fulldeps/lint-plugin-deny-attr.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-deny-attr.stderr rename to tests/ui-fulldeps/lint-plugin-deny-attr.stderr diff --git a/src/test/ui-fulldeps/lint-plugin-deny-cmdline.rs b/tests/ui-fulldeps/lint-plugin-deny-cmdline.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-deny-cmdline.rs rename to tests/ui-fulldeps/lint-plugin-deny-cmdline.rs diff --git a/src/test/ui-fulldeps/lint-plugin-deny-cmdline.stderr b/tests/ui-fulldeps/lint-plugin-deny-cmdline.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-deny-cmdline.stderr rename to tests/ui-fulldeps/lint-plugin-deny-cmdline.stderr diff --git a/src/test/ui-fulldeps/lint-plugin-forbid-attrs.rs b/tests/ui-fulldeps/lint-plugin-forbid-attrs.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-forbid-attrs.rs rename to tests/ui-fulldeps/lint-plugin-forbid-attrs.rs diff --git a/src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr b/tests/ui-fulldeps/lint-plugin-forbid-attrs.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr rename to tests/ui-fulldeps/lint-plugin-forbid-attrs.stderr diff --git a/src/test/ui-fulldeps/lint-plugin-forbid-cmdline.rs b/tests/ui-fulldeps/lint-plugin-forbid-cmdline.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-forbid-cmdline.rs rename to tests/ui-fulldeps/lint-plugin-forbid-cmdline.rs diff --git a/src/test/ui-fulldeps/lint-plugin-forbid-cmdline.stderr b/tests/ui-fulldeps/lint-plugin-forbid-cmdline.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin-forbid-cmdline.stderr rename to tests/ui-fulldeps/lint-plugin-forbid-cmdline.stderr diff --git a/src/test/ui-fulldeps/lint-plugin.rs b/tests/ui-fulldeps/lint-plugin.rs similarity index 100% rename from src/test/ui-fulldeps/lint-plugin.rs rename to tests/ui-fulldeps/lint-plugin.rs diff --git a/src/test/ui-fulldeps/lint-plugin.stderr b/tests/ui-fulldeps/lint-plugin.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-plugin.stderr rename to tests/ui-fulldeps/lint-plugin.stderr diff --git a/src/test/ui-fulldeps/lint-tool-cmdline-allow.rs b/tests/ui-fulldeps/lint-tool-cmdline-allow.rs similarity index 100% rename from src/test/ui-fulldeps/lint-tool-cmdline-allow.rs rename to tests/ui-fulldeps/lint-tool-cmdline-allow.rs diff --git a/src/test/ui-fulldeps/lint-tool-cmdline-allow.stderr b/tests/ui-fulldeps/lint-tool-cmdline-allow.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-tool-cmdline-allow.stderr rename to tests/ui-fulldeps/lint-tool-cmdline-allow.stderr diff --git a/src/test/ui-fulldeps/lint-tool-test.rs b/tests/ui-fulldeps/lint-tool-test.rs similarity index 100% rename from src/test/ui-fulldeps/lint-tool-test.rs rename to tests/ui-fulldeps/lint-tool-test.rs diff --git a/src/test/ui-fulldeps/lint-tool-test.stderr b/tests/ui-fulldeps/lint-tool-test.stderr similarity index 100% rename from src/test/ui-fulldeps/lint-tool-test.stderr rename to tests/ui-fulldeps/lint-tool-test.stderr diff --git a/src/test/ui-fulldeps/lto-syntax-extension.rs b/tests/ui-fulldeps/lto-syntax-extension.rs similarity index 100% rename from src/test/ui-fulldeps/lto-syntax-extension.rs rename to tests/ui-fulldeps/lto-syntax-extension.rs diff --git a/src/test/ui-fulldeps/lto-syntax-extension.stderr b/tests/ui-fulldeps/lto-syntax-extension.stderr similarity index 100% rename from src/test/ui-fulldeps/lto-syntax-extension.stderr rename to tests/ui-fulldeps/lto-syntax-extension.stderr diff --git a/src/test/ui-fulldeps/macro-crate-rlib.rs b/tests/ui-fulldeps/macro-crate-rlib.rs similarity index 100% rename from src/test/ui-fulldeps/macro-crate-rlib.rs rename to tests/ui-fulldeps/macro-crate-rlib.rs diff --git a/src/test/ui-fulldeps/macro-crate-rlib.stderr b/tests/ui-fulldeps/macro-crate-rlib.stderr similarity index 100% rename from src/test/ui-fulldeps/macro-crate-rlib.stderr rename to tests/ui-fulldeps/macro-crate-rlib.stderr diff --git a/src/test/ui-fulldeps/missing-rustc-driver-error.rs b/tests/ui-fulldeps/missing-rustc-driver-error.rs similarity index 100% rename from src/test/ui-fulldeps/missing-rustc-driver-error.rs rename to tests/ui-fulldeps/missing-rustc-driver-error.rs diff --git a/src/test/ui-fulldeps/missing-rustc-driver-error.stderr b/tests/ui-fulldeps/missing-rustc-driver-error.stderr similarity index 100% rename from src/test/ui-fulldeps/missing-rustc-driver-error.stderr rename to tests/ui-fulldeps/missing-rustc-driver-error.stderr diff --git a/src/test/ui-fulldeps/mod_dir_path_canonicalized.rs b/tests/ui-fulldeps/mod_dir_path_canonicalized.rs similarity index 100% rename from src/test/ui-fulldeps/mod_dir_path_canonicalized.rs rename to tests/ui-fulldeps/mod_dir_path_canonicalized.rs diff --git a/src/test/ui-fulldeps/mod_dir_simple/compiletest-ignore-dir b/tests/ui-fulldeps/mod_dir_simple/compiletest-ignore-dir similarity index 100% rename from src/test/ui-fulldeps/mod_dir_simple/compiletest-ignore-dir rename to tests/ui-fulldeps/mod_dir_simple/compiletest-ignore-dir diff --git a/src/test/ui-fulldeps/mod_dir_simple/test.rs b/tests/ui-fulldeps/mod_dir_simple/test.rs similarity index 100% rename from src/test/ui-fulldeps/mod_dir_simple/test.rs rename to tests/ui-fulldeps/mod_dir_simple/test.rs diff --git a/src/test/ui-fulldeps/multiple-plugins.rs b/tests/ui-fulldeps/multiple-plugins.rs similarity index 100% rename from src/test/ui-fulldeps/multiple-plugins.rs rename to tests/ui-fulldeps/multiple-plugins.rs diff --git a/src/test/ui-fulldeps/multiple-plugins.stderr b/tests/ui-fulldeps/multiple-plugins.stderr similarity index 100% rename from src/test/ui-fulldeps/multiple-plugins.stderr rename to tests/ui-fulldeps/multiple-plugins.stderr diff --git a/src/test/ui-fulldeps/myriad-closures.rs b/tests/ui-fulldeps/myriad-closures.rs similarity index 100% rename from src/test/ui-fulldeps/myriad-closures.rs rename to tests/ui-fulldeps/myriad-closures.rs diff --git a/src/test/ui-fulldeps/outlive-expansion-phase.rs b/tests/ui-fulldeps/outlive-expansion-phase.rs similarity index 100% rename from src/test/ui-fulldeps/outlive-expansion-phase.rs rename to tests/ui-fulldeps/outlive-expansion-phase.rs diff --git a/src/test/ui-fulldeps/outlive-expansion-phase.stderr b/tests/ui-fulldeps/outlive-expansion-phase.stderr similarity index 100% rename from src/test/ui-fulldeps/outlive-expansion-phase.stderr rename to tests/ui-fulldeps/outlive-expansion-phase.stderr diff --git a/src/test/ui-fulldeps/pathless-extern-unstable.rs b/tests/ui-fulldeps/pathless-extern-unstable.rs similarity index 100% rename from src/test/ui-fulldeps/pathless-extern-unstable.rs rename to tests/ui-fulldeps/pathless-extern-unstable.rs diff --git a/src/test/ui-fulldeps/pathless-extern-unstable.stderr b/tests/ui-fulldeps/pathless-extern-unstable.stderr similarity index 100% rename from src/test/ui-fulldeps/pathless-extern-unstable.stderr rename to tests/ui-fulldeps/pathless-extern-unstable.stderr diff --git a/src/test/ui-fulldeps/plugin-args.rs b/tests/ui-fulldeps/plugin-args.rs similarity index 100% rename from src/test/ui-fulldeps/plugin-args.rs rename to tests/ui-fulldeps/plugin-args.rs diff --git a/src/test/ui-fulldeps/plugin-args.stderr b/tests/ui-fulldeps/plugin-args.stderr similarity index 100% rename from src/test/ui-fulldeps/plugin-args.stderr rename to tests/ui-fulldeps/plugin-args.stderr diff --git a/src/test/ui-fulldeps/plugin-as-extern-crate.rs b/tests/ui-fulldeps/plugin-as-extern-crate.rs similarity index 100% rename from src/test/ui-fulldeps/plugin-as-extern-crate.rs rename to tests/ui-fulldeps/plugin-as-extern-crate.rs diff --git a/src/test/ui-fulldeps/pprust-expr-roundtrip.rs b/tests/ui-fulldeps/pprust-expr-roundtrip.rs similarity index 100% rename from src/test/ui-fulldeps/pprust-expr-roundtrip.rs rename to tests/ui-fulldeps/pprust-expr-roundtrip.rs diff --git a/src/test/ui-fulldeps/regions-mock-tcx.rs b/tests/ui-fulldeps/regions-mock-tcx.rs similarity index 100% rename from src/test/ui-fulldeps/regions-mock-tcx.rs rename to tests/ui-fulldeps/regions-mock-tcx.rs diff --git a/src/test/ui-fulldeps/rename-directory.rs b/tests/ui-fulldeps/rename-directory.rs similarity index 100% rename from src/test/ui-fulldeps/rename-directory.rs rename to tests/ui-fulldeps/rename-directory.rs diff --git a/src/test/ui-fulldeps/rustc_encodable_hygiene.rs b/tests/ui-fulldeps/rustc_encodable_hygiene.rs similarity index 100% rename from src/test/ui-fulldeps/rustc_encodable_hygiene.rs rename to tests/ui-fulldeps/rustc_encodable_hygiene.rs diff --git a/src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.rs b/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs similarity index 100% rename from src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.rs rename to tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs diff --git a/src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr b/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr similarity index 100% rename from src/test/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr rename to tests/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr diff --git a/src/test/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs b/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs similarity index 100% rename from src/test/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs rename to tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs diff --git a/src/test/ui-fulldeps/session-diagnostic/enforce_slug_naming.stderr b/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.stderr similarity index 100% rename from src/test/ui-fulldeps/session-diagnostic/enforce_slug_naming.stderr rename to tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.stderr diff --git a/src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs b/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs similarity index 100% rename from src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs rename to tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs diff --git a/src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr b/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr similarity index 100% rename from src/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr rename to tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr diff --git a/src/test/ui-fulldeps/stdio-from.rs b/tests/ui-fulldeps/stdio-from.rs similarity index 100% rename from src/test/ui-fulldeps/stdio-from.rs rename to tests/ui-fulldeps/stdio-from.rs diff --git a/src/test/ui-fulldeps/switch-stdout.rs b/tests/ui-fulldeps/switch-stdout.rs similarity index 100% rename from src/test/ui-fulldeps/switch-stdout.rs rename to tests/ui-fulldeps/switch-stdout.rs diff --git a/src/test/ui/.gitattributes b/tests/ui/.gitattributes similarity index 100% rename from src/test/ui/.gitattributes rename to tests/ui/.gitattributes diff --git a/src/test/ui/abi/abi-sysv64-arg-passing.rs b/tests/ui/abi/abi-sysv64-arg-passing.rs similarity index 100% rename from src/test/ui/abi/abi-sysv64-arg-passing.rs rename to tests/ui/abi/abi-sysv64-arg-passing.rs diff --git a/src/test/ui/abi/abi-sysv64-register-usage.rs b/tests/ui/abi/abi-sysv64-register-usage.rs similarity index 100% rename from src/test/ui/abi/abi-sysv64-register-usage.rs rename to tests/ui/abi/abi-sysv64-register-usage.rs diff --git a/src/test/ui/abi/abi-typo-unstable.rs b/tests/ui/abi/abi-typo-unstable.rs similarity index 100% rename from src/test/ui/abi/abi-typo-unstable.rs rename to tests/ui/abi/abi-typo-unstable.rs diff --git a/src/test/ui/abi/abi-typo-unstable.stderr b/tests/ui/abi/abi-typo-unstable.stderr similarity index 100% rename from src/test/ui/abi/abi-typo-unstable.stderr rename to tests/ui/abi/abi-typo-unstable.stderr diff --git a/src/test/ui/abi/anon-extern-mod.rs b/tests/ui/abi/anon-extern-mod.rs similarity index 100% rename from src/test/ui/abi/anon-extern-mod.rs rename to tests/ui/abi/anon-extern-mod.rs diff --git a/src/test/ui/abi/c-stack-as-value.rs b/tests/ui/abi/c-stack-as-value.rs similarity index 100% rename from src/test/ui/abi/c-stack-as-value.rs rename to tests/ui/abi/c-stack-as-value.rs diff --git a/src/test/ui/abi/c-stack-returning-int64.rs b/tests/ui/abi/c-stack-returning-int64.rs similarity index 100% rename from src/test/ui/abi/c-stack-returning-int64.rs rename to tests/ui/abi/c-stack-returning-int64.rs diff --git a/src/test/ui/abi/cabi-int-widening.rs b/tests/ui/abi/cabi-int-widening.rs similarity index 100% rename from src/test/ui/abi/cabi-int-widening.rs rename to tests/ui/abi/cabi-int-widening.rs diff --git a/src/test/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs b/tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs similarity index 100% rename from src/test/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs rename to tests/ui/abi/cross-crate/anon-extern-mod-cross-crate-2.rs diff --git a/src/test/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs b/tests/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs similarity index 100% rename from src/test/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs rename to tests/ui/abi/cross-crate/auxiliary/anon-extern-mod-cross-crate-1.rs diff --git a/src/test/ui/abi/cross-crate/duplicated-external-mods.rs b/tests/ui/abi/cross-crate/duplicated-external-mods.rs similarity index 100% rename from src/test/ui/abi/cross-crate/duplicated-external-mods.rs rename to tests/ui/abi/cross-crate/duplicated-external-mods.rs diff --git a/src/test/ui/abi/extern/auxiliary/extern-crosscrate-source.rs b/tests/ui/abi/extern/auxiliary/extern-crosscrate-source.rs similarity index 100% rename from src/test/ui/abi/extern/auxiliary/extern-crosscrate-source.rs rename to tests/ui/abi/extern/auxiliary/extern-crosscrate-source.rs diff --git a/src/test/ui/abi/extern/extern-call-deep.rs b/tests/ui/abi/extern/extern-call-deep.rs similarity index 100% rename from src/test/ui/abi/extern/extern-call-deep.rs rename to tests/ui/abi/extern/extern-call-deep.rs diff --git a/src/test/ui/abi/extern/extern-call-deep2.rs b/tests/ui/abi/extern/extern-call-deep2.rs similarity index 100% rename from src/test/ui/abi/extern/extern-call-deep2.rs rename to tests/ui/abi/extern/extern-call-deep2.rs diff --git a/src/test/ui/abi/extern/extern-call-direct.rs b/tests/ui/abi/extern/extern-call-direct.rs similarity index 100% rename from src/test/ui/abi/extern/extern-call-direct.rs rename to tests/ui/abi/extern/extern-call-direct.rs diff --git a/src/test/ui/abi/extern/extern-call-indirect.rs b/tests/ui/abi/extern/extern-call-indirect.rs similarity index 100% rename from src/test/ui/abi/extern/extern-call-indirect.rs rename to tests/ui/abi/extern/extern-call-indirect.rs diff --git a/src/test/ui/abi/extern/extern-call-scrub.rs b/tests/ui/abi/extern/extern-call-scrub.rs similarity index 100% rename from src/test/ui/abi/extern/extern-call-scrub.rs rename to tests/ui/abi/extern/extern-call-scrub.rs diff --git a/src/test/ui/abi/extern/extern-crosscrate.rs b/tests/ui/abi/extern/extern-crosscrate.rs similarity index 100% rename from src/test/ui/abi/extern/extern-crosscrate.rs rename to tests/ui/abi/extern/extern-crosscrate.rs diff --git a/src/test/ui/abi/extern/extern-pass-TwoU16s.rs b/tests/ui/abi/extern/extern-pass-TwoU16s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-TwoU16s.rs rename to tests/ui/abi/extern/extern-pass-TwoU16s.rs diff --git a/src/test/ui/abi/extern/extern-pass-TwoU32s.rs b/tests/ui/abi/extern/extern-pass-TwoU32s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-TwoU32s.rs rename to tests/ui/abi/extern/extern-pass-TwoU32s.rs diff --git a/src/test/ui/abi/extern/extern-pass-TwoU64s.rs b/tests/ui/abi/extern/extern-pass-TwoU64s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-TwoU64s.rs rename to tests/ui/abi/extern/extern-pass-TwoU64s.rs diff --git a/src/test/ui/abi/extern/extern-pass-TwoU8s.rs b/tests/ui/abi/extern/extern-pass-TwoU8s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-TwoU8s.rs rename to tests/ui/abi/extern/extern-pass-TwoU8s.rs diff --git a/src/test/ui/abi/extern/extern-pass-char.rs b/tests/ui/abi/extern/extern-pass-char.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-char.rs rename to tests/ui/abi/extern/extern-pass-char.rs diff --git a/src/test/ui/abi/extern/extern-pass-double.rs b/tests/ui/abi/extern/extern-pass-double.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-double.rs rename to tests/ui/abi/extern/extern-pass-double.rs diff --git a/src/test/ui/abi/extern/extern-pass-empty.rs b/tests/ui/abi/extern/extern-pass-empty.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-empty.rs rename to tests/ui/abi/extern/extern-pass-empty.rs diff --git a/src/test/ui/abi/extern/extern-pass-u32.rs b/tests/ui/abi/extern/extern-pass-u32.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-u32.rs rename to tests/ui/abi/extern/extern-pass-u32.rs diff --git a/src/test/ui/abi/extern/extern-pass-u64.rs b/tests/ui/abi/extern/extern-pass-u64.rs similarity index 100% rename from src/test/ui/abi/extern/extern-pass-u64.rs rename to tests/ui/abi/extern/extern-pass-u64.rs diff --git a/src/test/ui/abi/extern/extern-return-TwoU16s.rs b/tests/ui/abi/extern/extern-return-TwoU16s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-return-TwoU16s.rs rename to tests/ui/abi/extern/extern-return-TwoU16s.rs diff --git a/src/test/ui/abi/extern/extern-return-TwoU32s.rs b/tests/ui/abi/extern/extern-return-TwoU32s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-return-TwoU32s.rs rename to tests/ui/abi/extern/extern-return-TwoU32s.rs diff --git a/src/test/ui/abi/extern/extern-return-TwoU64s.rs b/tests/ui/abi/extern/extern-return-TwoU64s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-return-TwoU64s.rs rename to tests/ui/abi/extern/extern-return-TwoU64s.rs diff --git a/src/test/ui/abi/extern/extern-return-TwoU8s.rs b/tests/ui/abi/extern/extern-return-TwoU8s.rs similarity index 100% rename from src/test/ui/abi/extern/extern-return-TwoU8s.rs rename to tests/ui/abi/extern/extern-return-TwoU8s.rs diff --git a/src/test/ui/abi/foreign/auxiliary/foreign_lib.rs b/tests/ui/abi/foreign/auxiliary/foreign_lib.rs similarity index 100% rename from src/test/ui/abi/foreign/auxiliary/foreign_lib.rs rename to tests/ui/abi/foreign/auxiliary/foreign_lib.rs diff --git a/src/test/ui/abi/foreign/foreign-call-no-runtime.rs b/tests/ui/abi/foreign/foreign-call-no-runtime.rs similarity index 100% rename from src/test/ui/abi/foreign/foreign-call-no-runtime.rs rename to tests/ui/abi/foreign/foreign-call-no-runtime.rs diff --git a/src/test/ui/abi/foreign/foreign-dupe.rs b/tests/ui/abi/foreign/foreign-dupe.rs similarity index 100% rename from src/test/ui/abi/foreign/foreign-dupe.rs rename to tests/ui/abi/foreign/foreign-dupe.rs diff --git a/src/test/ui/abi/foreign/foreign-fn-with-byval.rs b/tests/ui/abi/foreign/foreign-fn-with-byval.rs similarity index 100% rename from src/test/ui/abi/foreign/foreign-fn-with-byval.rs rename to tests/ui/abi/foreign/foreign-fn-with-byval.rs diff --git a/src/test/ui/abi/foreign/foreign-no-abi.rs b/tests/ui/abi/foreign/foreign-no-abi.rs similarity index 100% rename from src/test/ui/abi/foreign/foreign-no-abi.rs rename to tests/ui/abi/foreign/foreign-no-abi.rs diff --git a/src/test/ui/abi/foreign/invoke-external-foreign.rs b/tests/ui/abi/foreign/invoke-external-foreign.rs similarity index 100% rename from src/test/ui/abi/foreign/invoke-external-foreign.rs rename to tests/ui/abi/foreign/invoke-external-foreign.rs diff --git a/src/test/ui/abi/homogenous-floats-target-feature-mixup.rs b/tests/ui/abi/homogenous-floats-target-feature-mixup.rs similarity index 98% rename from src/test/ui/abi/homogenous-floats-target-feature-mixup.rs rename to tests/ui/abi/homogenous-floats-target-feature-mixup.rs index d7f5e19219ed6..4600bd090cc64 100644 --- a/src/test/ui/abi/homogenous-floats-target-feature-mixup.rs +++ b/tests/ui/abi/homogenous-floats-target-feature-mixup.rs @@ -1,7 +1,7 @@ // This test check that even if we mixup target feature of function with homogenous floats, // the abi is sound and still produce the right answer. // -// This is basically the same test as src/test/ui/simd/target-feature-mixup.rs but for floats and +// This is basically the same test as tests/ui/simd/target-feature-mixup.rs but for floats and // without #[repr(simd)] // run-pass diff --git a/src/test/ui/abi/issue-28676.rs b/tests/ui/abi/issue-28676.rs similarity index 100% rename from src/test/ui/abi/issue-28676.rs rename to tests/ui/abi/issue-28676.rs diff --git a/src/test/ui/abi/issues/issue-22565-rust-call.rs b/tests/ui/abi/issues/issue-22565-rust-call.rs similarity index 100% rename from src/test/ui/abi/issues/issue-22565-rust-call.rs rename to tests/ui/abi/issues/issue-22565-rust-call.rs diff --git a/src/test/ui/abi/issues/issue-22565-rust-call.stderr b/tests/ui/abi/issues/issue-22565-rust-call.stderr similarity index 100% rename from src/test/ui/abi/issues/issue-22565-rust-call.stderr rename to tests/ui/abi/issues/issue-22565-rust-call.stderr diff --git a/src/test/ui/abi/issues/issue-62350-sysv-neg-reg-counts.rs b/tests/ui/abi/issues/issue-62350-sysv-neg-reg-counts.rs similarity index 100% rename from src/test/ui/abi/issues/issue-62350-sysv-neg-reg-counts.rs rename to tests/ui/abi/issues/issue-62350-sysv-neg-reg-counts.rs diff --git a/src/test/ui/abi/issues/issue-97463-broken-abi-leaked-uninit-data.rs b/tests/ui/abi/issues/issue-97463-broken-abi-leaked-uninit-data.rs similarity index 100% rename from src/test/ui/abi/issues/issue-97463-broken-abi-leaked-uninit-data.rs rename to tests/ui/abi/issues/issue-97463-broken-abi-leaked-uninit-data.rs diff --git a/src/test/ui/abi/lib-defaults.rs b/tests/ui/abi/lib-defaults.rs similarity index 100% rename from src/test/ui/abi/lib-defaults.rs rename to tests/ui/abi/lib-defaults.rs diff --git a/src/test/ui/abi/mir/mir_codegen_calls_variadic.rs b/tests/ui/abi/mir/mir_codegen_calls_variadic.rs similarity index 100% rename from src/test/ui/abi/mir/mir_codegen_calls_variadic.rs rename to tests/ui/abi/mir/mir_codegen_calls_variadic.rs diff --git a/src/test/ui/abi/nullable-pointer-ffi-compat.rs b/tests/ui/abi/nullable-pointer-ffi-compat.rs similarity index 100% rename from src/test/ui/abi/nullable-pointer-ffi-compat.rs rename to tests/ui/abi/nullable-pointer-ffi-compat.rs diff --git a/src/test/ui/abi/numbers-arithmetic/i128-ffi.rs b/tests/ui/abi/numbers-arithmetic/i128-ffi.rs similarity index 100% rename from src/test/ui/abi/numbers-arithmetic/i128-ffi.rs rename to tests/ui/abi/numbers-arithmetic/i128-ffi.rs diff --git a/src/test/ui/abi/rustcall-generic.rs b/tests/ui/abi/rustcall-generic.rs similarity index 100% rename from src/test/ui/abi/rustcall-generic.rs rename to tests/ui/abi/rustcall-generic.rs diff --git a/src/test/ui/abi/segfault-no-out-of-stack.rs b/tests/ui/abi/segfault-no-out-of-stack.rs similarity index 100% rename from src/test/ui/abi/segfault-no-out-of-stack.rs rename to tests/ui/abi/segfault-no-out-of-stack.rs diff --git a/src/test/ui/abi/stack-probes-lto.rs b/tests/ui/abi/stack-probes-lto.rs similarity index 100% rename from src/test/ui/abi/stack-probes-lto.rs rename to tests/ui/abi/stack-probes-lto.rs diff --git a/src/test/ui/abi/stack-probes.rs b/tests/ui/abi/stack-probes.rs similarity index 100% rename from src/test/ui/abi/stack-probes.rs rename to tests/ui/abi/stack-probes.rs diff --git a/src/test/ui/abi/stack-protector.rs b/tests/ui/abi/stack-protector.rs similarity index 100% rename from src/test/ui/abi/stack-protector.rs rename to tests/ui/abi/stack-protector.rs diff --git a/src/test/ui/abi/statics/static-mut-foreign.rs b/tests/ui/abi/statics/static-mut-foreign.rs similarity index 100% rename from src/test/ui/abi/statics/static-mut-foreign.rs rename to tests/ui/abi/statics/static-mut-foreign.rs diff --git a/src/test/ui/abi/struct-enums/struct-return.rs b/tests/ui/abi/struct-enums/struct-return.rs similarity index 100% rename from src/test/ui/abi/struct-enums/struct-return.rs rename to tests/ui/abi/struct-enums/struct-return.rs diff --git a/src/test/ui/abi/union/union-c-interop.rs b/tests/ui/abi/union/union-c-interop.rs similarity index 100% rename from src/test/ui/abi/union/union-c-interop.rs rename to tests/ui/abi/union/union-c-interop.rs diff --git a/src/test/ui/abi/unsupported.aarch64.stderr b/tests/ui/abi/unsupported.aarch64.stderr similarity index 100% rename from src/test/ui/abi/unsupported.aarch64.stderr rename to tests/ui/abi/unsupported.aarch64.stderr diff --git a/src/test/ui/abi/unsupported.arm.stderr b/tests/ui/abi/unsupported.arm.stderr similarity index 100% rename from src/test/ui/abi/unsupported.arm.stderr rename to tests/ui/abi/unsupported.arm.stderr diff --git a/src/test/ui/abi/unsupported.i686.stderr b/tests/ui/abi/unsupported.i686.stderr similarity index 100% rename from src/test/ui/abi/unsupported.i686.stderr rename to tests/ui/abi/unsupported.i686.stderr diff --git a/src/test/ui/abi/unsupported.rs b/tests/ui/abi/unsupported.rs similarity index 100% rename from src/test/ui/abi/unsupported.rs rename to tests/ui/abi/unsupported.rs diff --git a/src/test/ui/abi/unsupported.x64.stderr b/tests/ui/abi/unsupported.x64.stderr similarity index 100% rename from src/test/ui/abi/unsupported.x64.stderr rename to tests/ui/abi/unsupported.x64.stderr diff --git a/src/test/ui/abi/variadic-ffi.rs b/tests/ui/abi/variadic-ffi.rs similarity index 100% rename from src/test/ui/abi/variadic-ffi.rs rename to tests/ui/abi/variadic-ffi.rs diff --git a/src/test/ui/abi/x86stdcall.rs b/tests/ui/abi/x86stdcall.rs similarity index 100% rename from src/test/ui/abi/x86stdcall.rs rename to tests/ui/abi/x86stdcall.rs diff --git a/src/test/ui/abi/x86stdcall2.rs b/tests/ui/abi/x86stdcall2.rs similarity index 100% rename from src/test/ui/abi/x86stdcall2.rs rename to tests/ui/abi/x86stdcall2.rs diff --git a/src/test/ui/alias-uninit-value.rs b/tests/ui/alias-uninit-value.rs similarity index 100% rename from src/test/ui/alias-uninit-value.rs rename to tests/ui/alias-uninit-value.rs diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs b/tests/ui/alloc-error/alloc-error-handler-bad-signature-1.rs similarity index 100% rename from src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs rename to tests/ui/alloc-error/alloc-error-handler-bad-signature-1.rs diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.stderr b/tests/ui/alloc-error/alloc-error-handler-bad-signature-1.stderr similarity index 100% rename from src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.stderr rename to tests/ui/alloc-error/alloc-error-handler-bad-signature-1.stderr diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs b/tests/ui/alloc-error/alloc-error-handler-bad-signature-2.rs similarity index 100% rename from src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs rename to tests/ui/alloc-error/alloc-error-handler-bad-signature-2.rs diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.stderr b/tests/ui/alloc-error/alloc-error-handler-bad-signature-2.stderr similarity index 100% rename from src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.stderr rename to tests/ui/alloc-error/alloc-error-handler-bad-signature-2.stderr diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs b/tests/ui/alloc-error/alloc-error-handler-bad-signature-3.rs similarity index 100% rename from src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs rename to tests/ui/alloc-error/alloc-error-handler-bad-signature-3.rs diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr b/tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr similarity index 100% rename from src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr rename to tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr diff --git a/src/test/ui/alloc-error/default-alloc-error-hook.rs b/tests/ui/alloc-error/default-alloc-error-hook.rs similarity index 100% rename from src/test/ui/alloc-error/default-alloc-error-hook.rs rename to tests/ui/alloc-error/default-alloc-error-hook.rs diff --git a/src/test/ui/allocator/allocator-args.rs b/tests/ui/allocator/allocator-args.rs similarity index 100% rename from src/test/ui/allocator/allocator-args.rs rename to tests/ui/allocator/allocator-args.rs diff --git a/src/test/ui/allocator/allocator-args.stderr b/tests/ui/allocator/allocator-args.stderr similarity index 100% rename from src/test/ui/allocator/allocator-args.stderr rename to tests/ui/allocator/allocator-args.stderr diff --git a/src/test/ui/allocator/auxiliary/custom-as-global.rs b/tests/ui/allocator/auxiliary/custom-as-global.rs similarity index 100% rename from src/test/ui/allocator/auxiliary/custom-as-global.rs rename to tests/ui/allocator/auxiliary/custom-as-global.rs diff --git a/src/test/ui/allocator/auxiliary/custom.rs b/tests/ui/allocator/auxiliary/custom.rs similarity index 100% rename from src/test/ui/allocator/auxiliary/custom.rs rename to tests/ui/allocator/auxiliary/custom.rs diff --git a/src/test/ui/allocator/auxiliary/helper.rs b/tests/ui/allocator/auxiliary/helper.rs similarity index 100% rename from src/test/ui/allocator/auxiliary/helper.rs rename to tests/ui/allocator/auxiliary/helper.rs diff --git a/src/test/ui/allocator/auxiliary/system-allocator.rs b/tests/ui/allocator/auxiliary/system-allocator.rs similarity index 100% rename from src/test/ui/allocator/auxiliary/system-allocator.rs rename to tests/ui/allocator/auxiliary/system-allocator.rs diff --git a/src/test/ui/allocator/auxiliary/system-allocator2.rs b/tests/ui/allocator/auxiliary/system-allocator2.rs similarity index 100% rename from src/test/ui/allocator/auxiliary/system-allocator2.rs rename to tests/ui/allocator/auxiliary/system-allocator2.rs diff --git a/src/test/ui/allocator/custom-in-block.rs b/tests/ui/allocator/custom-in-block.rs similarity index 100% rename from src/test/ui/allocator/custom-in-block.rs rename to tests/ui/allocator/custom-in-block.rs diff --git a/src/test/ui/allocator/custom-in-submodule.rs b/tests/ui/allocator/custom-in-submodule.rs similarity index 100% rename from src/test/ui/allocator/custom-in-submodule.rs rename to tests/ui/allocator/custom-in-submodule.rs diff --git a/src/test/ui/allocator/custom.rs b/tests/ui/allocator/custom.rs similarity index 100% rename from src/test/ui/allocator/custom.rs rename to tests/ui/allocator/custom.rs diff --git a/src/test/ui/allocator/function-allocator.rs b/tests/ui/allocator/function-allocator.rs similarity index 100% rename from src/test/ui/allocator/function-allocator.rs rename to tests/ui/allocator/function-allocator.rs diff --git a/src/test/ui/allocator/function-allocator.stderr b/tests/ui/allocator/function-allocator.stderr similarity index 100% rename from src/test/ui/allocator/function-allocator.stderr rename to tests/ui/allocator/function-allocator.stderr diff --git a/src/test/ui/allocator/hygiene.rs b/tests/ui/allocator/hygiene.rs similarity index 100% rename from src/test/ui/allocator/hygiene.rs rename to tests/ui/allocator/hygiene.rs diff --git a/src/test/ui/allocator/no_std-alloc-error-handler-custom.rs b/tests/ui/allocator/no_std-alloc-error-handler-custom.rs similarity index 100% rename from src/test/ui/allocator/no_std-alloc-error-handler-custom.rs rename to tests/ui/allocator/no_std-alloc-error-handler-custom.rs diff --git a/src/test/ui/allocator/no_std-alloc-error-handler-default.rs b/tests/ui/allocator/no_std-alloc-error-handler-default.rs similarity index 100% rename from src/test/ui/allocator/no_std-alloc-error-handler-default.rs rename to tests/ui/allocator/no_std-alloc-error-handler-default.rs diff --git a/src/test/ui/allocator/not-an-allocator.rs b/tests/ui/allocator/not-an-allocator.rs similarity index 100% rename from src/test/ui/allocator/not-an-allocator.rs rename to tests/ui/allocator/not-an-allocator.rs diff --git a/src/test/ui/allocator/not-an-allocator.stderr b/tests/ui/allocator/not-an-allocator.stderr similarity index 100% rename from src/test/ui/allocator/not-an-allocator.stderr rename to tests/ui/allocator/not-an-allocator.stderr diff --git a/src/test/ui/allocator/object-safe.rs b/tests/ui/allocator/object-safe.rs similarity index 100% rename from src/test/ui/allocator/object-safe.rs rename to tests/ui/allocator/object-safe.rs diff --git a/src/test/ui/allocator/two-allocators.rs b/tests/ui/allocator/two-allocators.rs similarity index 100% rename from src/test/ui/allocator/two-allocators.rs rename to tests/ui/allocator/two-allocators.rs diff --git a/src/test/ui/allocator/two-allocators.stderr b/tests/ui/allocator/two-allocators.stderr similarity index 100% rename from src/test/ui/allocator/two-allocators.stderr rename to tests/ui/allocator/two-allocators.stderr diff --git a/src/test/ui/allocator/two-allocators2.rs b/tests/ui/allocator/two-allocators2.rs similarity index 100% rename from src/test/ui/allocator/two-allocators2.rs rename to tests/ui/allocator/two-allocators2.rs diff --git a/src/test/ui/allocator/two-allocators2.stderr b/tests/ui/allocator/two-allocators2.stderr similarity index 100% rename from src/test/ui/allocator/two-allocators2.stderr rename to tests/ui/allocator/two-allocators2.stderr diff --git a/src/test/ui/allocator/two-allocators3.rs b/tests/ui/allocator/two-allocators3.rs similarity index 100% rename from src/test/ui/allocator/two-allocators3.rs rename to tests/ui/allocator/two-allocators3.rs diff --git a/src/test/ui/allocator/two-allocators3.stderr b/tests/ui/allocator/two-allocators3.stderr similarity index 100% rename from src/test/ui/allocator/two-allocators3.stderr rename to tests/ui/allocator/two-allocators3.stderr diff --git a/src/test/ui/allocator/xcrate-use.rs b/tests/ui/allocator/xcrate-use.rs similarity index 100% rename from src/test/ui/allocator/xcrate-use.rs rename to tests/ui/allocator/xcrate-use.rs diff --git a/src/test/ui/allocator/xcrate-use2.rs b/tests/ui/allocator/xcrate-use2.rs similarity index 100% rename from src/test/ui/allocator/xcrate-use2.rs rename to tests/ui/allocator/xcrate-use2.rs diff --git a/src/test/ui/annotate-snippet/auxiliary/multispan.rs b/tests/ui/annotate-snippet/auxiliary/multispan.rs similarity index 100% rename from src/test/ui/annotate-snippet/auxiliary/multispan.rs rename to tests/ui/annotate-snippet/auxiliary/multispan.rs diff --git a/src/test/ui/annotate-snippet/missing-type.rs b/tests/ui/annotate-snippet/missing-type.rs similarity index 100% rename from src/test/ui/annotate-snippet/missing-type.rs rename to tests/ui/annotate-snippet/missing-type.rs diff --git a/src/test/ui/annotate-snippet/missing-type.stderr b/tests/ui/annotate-snippet/missing-type.stderr similarity index 100% rename from src/test/ui/annotate-snippet/missing-type.stderr rename to tests/ui/annotate-snippet/missing-type.stderr diff --git a/src/test/ui/annotate-snippet/multispan.rs b/tests/ui/annotate-snippet/multispan.rs similarity index 100% rename from src/test/ui/annotate-snippet/multispan.rs rename to tests/ui/annotate-snippet/multispan.rs diff --git a/src/test/ui/annotate-snippet/multispan.stderr b/tests/ui/annotate-snippet/multispan.stderr similarity index 100% rename from src/test/ui/annotate-snippet/multispan.stderr rename to tests/ui/annotate-snippet/multispan.stderr diff --git a/src/test/ui/anon-params/anon-params-denied-2018.rs b/tests/ui/anon-params/anon-params-denied-2018.rs similarity index 100% rename from src/test/ui/anon-params/anon-params-denied-2018.rs rename to tests/ui/anon-params/anon-params-denied-2018.rs diff --git a/src/test/ui/anon-params/anon-params-denied-2018.stderr b/tests/ui/anon-params/anon-params-denied-2018.stderr similarity index 100% rename from src/test/ui/anon-params/anon-params-denied-2018.stderr rename to tests/ui/anon-params/anon-params-denied-2018.stderr diff --git a/src/test/ui/anon-params/anon-params-deprecated.fixed b/tests/ui/anon-params/anon-params-deprecated.fixed similarity index 100% rename from src/test/ui/anon-params/anon-params-deprecated.fixed rename to tests/ui/anon-params/anon-params-deprecated.fixed diff --git a/src/test/ui/anon-params/anon-params-deprecated.rs b/tests/ui/anon-params/anon-params-deprecated.rs similarity index 100% rename from src/test/ui/anon-params/anon-params-deprecated.rs rename to tests/ui/anon-params/anon-params-deprecated.rs diff --git a/src/test/ui/anon-params/anon-params-deprecated.stderr b/tests/ui/anon-params/anon-params-deprecated.stderr similarity index 100% rename from src/test/ui/anon-params/anon-params-deprecated.stderr rename to tests/ui/anon-params/anon-params-deprecated.stderr diff --git a/src/test/ui/anon-params/anon-params-edition-hygiene.rs b/tests/ui/anon-params/anon-params-edition-hygiene.rs similarity index 100% rename from src/test/ui/anon-params/anon-params-edition-hygiene.rs rename to tests/ui/anon-params/anon-params-edition-hygiene.rs diff --git a/src/test/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs b/tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs similarity index 100% rename from src/test/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs rename to tests/ui/anon-params/auxiliary/anon-params-edition-hygiene.rs diff --git a/src/test/ui/anonymous-higher-ranked-lifetime.rs b/tests/ui/anonymous-higher-ranked-lifetime.rs similarity index 100% rename from src/test/ui/anonymous-higher-ranked-lifetime.rs rename to tests/ui/anonymous-higher-ranked-lifetime.rs diff --git a/src/test/ui/anonymous-higher-ranked-lifetime.stderr b/tests/ui/anonymous-higher-ranked-lifetime.stderr similarity index 100% rename from src/test/ui/anonymous-higher-ranked-lifetime.stderr rename to tests/ui/anonymous-higher-ranked-lifetime.stderr diff --git a/src/test/ui/argument-suggestions/basic.rs b/tests/ui/argument-suggestions/basic.rs similarity index 100% rename from src/test/ui/argument-suggestions/basic.rs rename to tests/ui/argument-suggestions/basic.rs diff --git a/src/test/ui/argument-suggestions/basic.stderr b/tests/ui/argument-suggestions/basic.stderr similarity index 100% rename from src/test/ui/argument-suggestions/basic.stderr rename to tests/ui/argument-suggestions/basic.stderr diff --git a/src/test/ui/argument-suggestions/complex.rs b/tests/ui/argument-suggestions/complex.rs similarity index 100% rename from src/test/ui/argument-suggestions/complex.rs rename to tests/ui/argument-suggestions/complex.rs diff --git a/src/test/ui/argument-suggestions/complex.stderr b/tests/ui/argument-suggestions/complex.stderr similarity index 100% rename from src/test/ui/argument-suggestions/complex.stderr rename to tests/ui/argument-suggestions/complex.stderr diff --git a/src/test/ui/argument-suggestions/display-is-suggestable.rs b/tests/ui/argument-suggestions/display-is-suggestable.rs similarity index 100% rename from src/test/ui/argument-suggestions/display-is-suggestable.rs rename to tests/ui/argument-suggestions/display-is-suggestable.rs diff --git a/src/test/ui/argument-suggestions/display-is-suggestable.stderr b/tests/ui/argument-suggestions/display-is-suggestable.stderr similarity index 100% rename from src/test/ui/argument-suggestions/display-is-suggestable.stderr rename to tests/ui/argument-suggestions/display-is-suggestable.stderr diff --git a/src/test/ui/argument-suggestions/exotic-calls.rs b/tests/ui/argument-suggestions/exotic-calls.rs similarity index 100% rename from src/test/ui/argument-suggestions/exotic-calls.rs rename to tests/ui/argument-suggestions/exotic-calls.rs diff --git a/src/test/ui/argument-suggestions/exotic-calls.stderr b/tests/ui/argument-suggestions/exotic-calls.stderr similarity index 100% rename from src/test/ui/argument-suggestions/exotic-calls.stderr rename to tests/ui/argument-suggestions/exotic-calls.stderr diff --git a/src/test/ui/argument-suggestions/extern-fn-arg-names.rs b/tests/ui/argument-suggestions/extern-fn-arg-names.rs similarity index 100% rename from src/test/ui/argument-suggestions/extern-fn-arg-names.rs rename to tests/ui/argument-suggestions/extern-fn-arg-names.rs diff --git a/src/test/ui/argument-suggestions/extern-fn-arg-names.stderr b/tests/ui/argument-suggestions/extern-fn-arg-names.stderr similarity index 100% rename from src/test/ui/argument-suggestions/extern-fn-arg-names.stderr rename to tests/ui/argument-suggestions/extern-fn-arg-names.stderr diff --git a/src/test/ui/argument-suggestions/extra_arguments.rs b/tests/ui/argument-suggestions/extra_arguments.rs similarity index 100% rename from src/test/ui/argument-suggestions/extra_arguments.rs rename to tests/ui/argument-suggestions/extra_arguments.rs diff --git a/src/test/ui/argument-suggestions/extra_arguments.stderr b/tests/ui/argument-suggestions/extra_arguments.stderr similarity index 100% rename from src/test/ui/argument-suggestions/extra_arguments.stderr rename to tests/ui/argument-suggestions/extra_arguments.stderr diff --git a/src/test/ui/argument-suggestions/formal-and-expected-differ.rs b/tests/ui/argument-suggestions/formal-and-expected-differ.rs similarity index 100% rename from src/test/ui/argument-suggestions/formal-and-expected-differ.rs rename to tests/ui/argument-suggestions/formal-and-expected-differ.rs diff --git a/src/test/ui/argument-suggestions/formal-and-expected-differ.stderr b/tests/ui/argument-suggestions/formal-and-expected-differ.stderr similarity index 100% rename from src/test/ui/argument-suggestions/formal-and-expected-differ.stderr rename to tests/ui/argument-suggestions/formal-and-expected-differ.stderr diff --git a/src/test/ui/argument-suggestions/invalid_arguments.rs b/tests/ui/argument-suggestions/invalid_arguments.rs similarity index 100% rename from src/test/ui/argument-suggestions/invalid_arguments.rs rename to tests/ui/argument-suggestions/invalid_arguments.rs diff --git a/src/test/ui/argument-suggestions/invalid_arguments.stderr b/tests/ui/argument-suggestions/invalid_arguments.stderr similarity index 100% rename from src/test/ui/argument-suggestions/invalid_arguments.stderr rename to tests/ui/argument-suggestions/invalid_arguments.stderr diff --git a/src/test/ui/argument-suggestions/issue-100154.rs b/tests/ui/argument-suggestions/issue-100154.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-100154.rs rename to tests/ui/argument-suggestions/issue-100154.rs diff --git a/src/test/ui/argument-suggestions/issue-100154.stderr b/tests/ui/argument-suggestions/issue-100154.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-100154.stderr rename to tests/ui/argument-suggestions/issue-100154.stderr diff --git a/src/test/ui/argument-suggestions/issue-100478.rs b/tests/ui/argument-suggestions/issue-100478.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-100478.rs rename to tests/ui/argument-suggestions/issue-100478.rs diff --git a/src/test/ui/argument-suggestions/issue-100478.stderr b/tests/ui/argument-suggestions/issue-100478.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-100478.stderr rename to tests/ui/argument-suggestions/issue-100478.stderr diff --git a/src/test/ui/argument-suggestions/issue-101097.rs b/tests/ui/argument-suggestions/issue-101097.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-101097.rs rename to tests/ui/argument-suggestions/issue-101097.rs diff --git a/src/test/ui/argument-suggestions/issue-101097.stderr b/tests/ui/argument-suggestions/issue-101097.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-101097.stderr rename to tests/ui/argument-suggestions/issue-101097.stderr diff --git a/src/test/ui/argument-suggestions/issue-96638.rs b/tests/ui/argument-suggestions/issue-96638.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-96638.rs rename to tests/ui/argument-suggestions/issue-96638.rs diff --git a/src/test/ui/argument-suggestions/issue-96638.stderr b/tests/ui/argument-suggestions/issue-96638.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-96638.stderr rename to tests/ui/argument-suggestions/issue-96638.stderr diff --git a/src/test/ui/argument-suggestions/issue-97197.rs b/tests/ui/argument-suggestions/issue-97197.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-97197.rs rename to tests/ui/argument-suggestions/issue-97197.rs diff --git a/src/test/ui/argument-suggestions/issue-97197.stderr b/tests/ui/argument-suggestions/issue-97197.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-97197.stderr rename to tests/ui/argument-suggestions/issue-97197.stderr diff --git a/src/test/ui/argument-suggestions/issue-97484.rs b/tests/ui/argument-suggestions/issue-97484.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-97484.rs rename to tests/ui/argument-suggestions/issue-97484.rs diff --git a/src/test/ui/argument-suggestions/issue-97484.stderr b/tests/ui/argument-suggestions/issue-97484.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-97484.stderr rename to tests/ui/argument-suggestions/issue-97484.stderr diff --git a/src/test/ui/argument-suggestions/issue-98894.rs b/tests/ui/argument-suggestions/issue-98894.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-98894.rs rename to tests/ui/argument-suggestions/issue-98894.rs diff --git a/src/test/ui/argument-suggestions/issue-98894.stderr b/tests/ui/argument-suggestions/issue-98894.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-98894.stderr rename to tests/ui/argument-suggestions/issue-98894.stderr diff --git a/src/test/ui/argument-suggestions/issue-98897.rs b/tests/ui/argument-suggestions/issue-98897.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-98897.rs rename to tests/ui/argument-suggestions/issue-98897.rs diff --git a/src/test/ui/argument-suggestions/issue-98897.stderr b/tests/ui/argument-suggestions/issue-98897.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-98897.stderr rename to tests/ui/argument-suggestions/issue-98897.stderr diff --git a/src/test/ui/argument-suggestions/issue-99482.rs b/tests/ui/argument-suggestions/issue-99482.rs similarity index 100% rename from src/test/ui/argument-suggestions/issue-99482.rs rename to tests/ui/argument-suggestions/issue-99482.rs diff --git a/src/test/ui/argument-suggestions/issue-99482.stderr b/tests/ui/argument-suggestions/issue-99482.stderr similarity index 100% rename from src/test/ui/argument-suggestions/issue-99482.stderr rename to tests/ui/argument-suggestions/issue-99482.stderr diff --git a/src/test/ui/argument-suggestions/missing_arguments.rs b/tests/ui/argument-suggestions/missing_arguments.rs similarity index 100% rename from src/test/ui/argument-suggestions/missing_arguments.rs rename to tests/ui/argument-suggestions/missing_arguments.rs diff --git a/src/test/ui/argument-suggestions/missing_arguments.stderr b/tests/ui/argument-suggestions/missing_arguments.stderr similarity index 100% rename from src/test/ui/argument-suggestions/missing_arguments.stderr rename to tests/ui/argument-suggestions/missing_arguments.stderr diff --git a/src/test/ui/argument-suggestions/mixed_cases.rs b/tests/ui/argument-suggestions/mixed_cases.rs similarity index 100% rename from src/test/ui/argument-suggestions/mixed_cases.rs rename to tests/ui/argument-suggestions/mixed_cases.rs diff --git a/src/test/ui/argument-suggestions/mixed_cases.stderr b/tests/ui/argument-suggestions/mixed_cases.stderr similarity index 100% rename from src/test/ui/argument-suggestions/mixed_cases.stderr rename to tests/ui/argument-suggestions/mixed_cases.stderr diff --git a/src/test/ui/argument-suggestions/permuted_arguments.rs b/tests/ui/argument-suggestions/permuted_arguments.rs similarity index 100% rename from src/test/ui/argument-suggestions/permuted_arguments.rs rename to tests/ui/argument-suggestions/permuted_arguments.rs diff --git a/src/test/ui/argument-suggestions/permuted_arguments.stderr b/tests/ui/argument-suggestions/permuted_arguments.stderr similarity index 100% rename from src/test/ui/argument-suggestions/permuted_arguments.stderr rename to tests/ui/argument-suggestions/permuted_arguments.stderr diff --git a/src/test/ui/argument-suggestions/swapped_arguments.rs b/tests/ui/argument-suggestions/swapped_arguments.rs similarity index 100% rename from src/test/ui/argument-suggestions/swapped_arguments.rs rename to tests/ui/argument-suggestions/swapped_arguments.rs diff --git a/src/test/ui/argument-suggestions/swapped_arguments.stderr b/tests/ui/argument-suggestions/swapped_arguments.stderr similarity index 100% rename from src/test/ui/argument-suggestions/swapped_arguments.stderr rename to tests/ui/argument-suggestions/swapped_arguments.stderr diff --git a/src/test/ui/argument-suggestions/too-long.rs b/tests/ui/argument-suggestions/too-long.rs similarity index 100% rename from src/test/ui/argument-suggestions/too-long.rs rename to tests/ui/argument-suggestions/too-long.rs diff --git a/src/test/ui/argument-suggestions/too-long.stderr b/tests/ui/argument-suggestions/too-long.stderr similarity index 100% rename from src/test/ui/argument-suggestions/too-long.stderr rename to tests/ui/argument-suggestions/too-long.stderr diff --git a/src/test/ui/argument-suggestions/two-mismatch-notes.rs b/tests/ui/argument-suggestions/two-mismatch-notes.rs similarity index 100% rename from src/test/ui/argument-suggestions/two-mismatch-notes.rs rename to tests/ui/argument-suggestions/two-mismatch-notes.rs diff --git a/src/test/ui/argument-suggestions/two-mismatch-notes.stderr b/tests/ui/argument-suggestions/two-mismatch-notes.stderr similarity index 100% rename from src/test/ui/argument-suggestions/two-mismatch-notes.stderr rename to tests/ui/argument-suggestions/two-mismatch-notes.stderr diff --git a/src/test/ui/array-slice-vec/array-break-length.rs b/tests/ui/array-slice-vec/array-break-length.rs similarity index 100% rename from src/test/ui/array-slice-vec/array-break-length.rs rename to tests/ui/array-slice-vec/array-break-length.rs diff --git a/src/test/ui/array-slice-vec/array-break-length.stderr b/tests/ui/array-slice-vec/array-break-length.stderr similarity index 100% rename from src/test/ui/array-slice-vec/array-break-length.stderr rename to tests/ui/array-slice-vec/array-break-length.stderr diff --git a/src/test/ui/array-slice-vec/array-not-vector.rs b/tests/ui/array-slice-vec/array-not-vector.rs similarity index 100% rename from src/test/ui/array-slice-vec/array-not-vector.rs rename to tests/ui/array-slice-vec/array-not-vector.rs diff --git a/src/test/ui/array-slice-vec/array-not-vector.stderr b/tests/ui/array-slice-vec/array-not-vector.stderr similarity index 100% rename from src/test/ui/array-slice-vec/array-not-vector.stderr rename to tests/ui/array-slice-vec/array-not-vector.stderr diff --git a/src/test/ui/array-slice-vec/array_const_index-0.rs b/tests/ui/array-slice-vec/array_const_index-0.rs similarity index 100% rename from src/test/ui/array-slice-vec/array_const_index-0.rs rename to tests/ui/array-slice-vec/array_const_index-0.rs diff --git a/src/test/ui/array-slice-vec/array_const_index-0.stderr b/tests/ui/array-slice-vec/array_const_index-0.stderr similarity index 100% rename from src/test/ui/array-slice-vec/array_const_index-0.stderr rename to tests/ui/array-slice-vec/array_const_index-0.stderr diff --git a/src/test/ui/array-slice-vec/array_const_index-1.rs b/tests/ui/array-slice-vec/array_const_index-1.rs similarity index 100% rename from src/test/ui/array-slice-vec/array_const_index-1.rs rename to tests/ui/array-slice-vec/array_const_index-1.rs diff --git a/src/test/ui/array-slice-vec/array_const_index-1.stderr b/tests/ui/array-slice-vec/array_const_index-1.stderr similarity index 100% rename from src/test/ui/array-slice-vec/array_const_index-1.stderr rename to tests/ui/array-slice-vec/array_const_index-1.stderr diff --git a/src/test/ui/array-slice-vec/array_const_index-2.rs b/tests/ui/array-slice-vec/array_const_index-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/array_const_index-2.rs rename to tests/ui/array-slice-vec/array_const_index-2.rs diff --git a/src/test/ui/array-slice-vec/bounds-check-no-overflow.rs b/tests/ui/array-slice-vec/bounds-check-no-overflow.rs similarity index 100% rename from src/test/ui/array-slice-vec/bounds-check-no-overflow.rs rename to tests/ui/array-slice-vec/bounds-check-no-overflow.rs diff --git a/src/test/ui/array-slice-vec/box-of-array-of-drop-1.rs b/tests/ui/array-slice-vec/box-of-array-of-drop-1.rs similarity index 100% rename from src/test/ui/array-slice-vec/box-of-array-of-drop-1.rs rename to tests/ui/array-slice-vec/box-of-array-of-drop-1.rs diff --git a/src/test/ui/array-slice-vec/box-of-array-of-drop-2.rs b/tests/ui/array-slice-vec/box-of-array-of-drop-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/box-of-array-of-drop-2.rs rename to tests/ui/array-slice-vec/box-of-array-of-drop-2.rs diff --git a/src/test/ui/array-slice-vec/byte-literals.rs b/tests/ui/array-slice-vec/byte-literals.rs similarity index 100% rename from src/test/ui/array-slice-vec/byte-literals.rs rename to tests/ui/array-slice-vec/byte-literals.rs diff --git a/src/test/ui/array-slice-vec/cast-in-array-size.rs b/tests/ui/array-slice-vec/cast-in-array-size.rs similarity index 100% rename from src/test/ui/array-slice-vec/cast-in-array-size.rs rename to tests/ui/array-slice-vec/cast-in-array-size.rs diff --git a/src/test/ui/array-slice-vec/check-static-mut-slices.rs b/tests/ui/array-slice-vec/check-static-mut-slices.rs similarity index 100% rename from src/test/ui/array-slice-vec/check-static-mut-slices.rs rename to tests/ui/array-slice-vec/check-static-mut-slices.rs diff --git a/src/test/ui/array-slice-vec/check-static-slice.rs b/tests/ui/array-slice-vec/check-static-slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/check-static-slice.rs rename to tests/ui/array-slice-vec/check-static-slice.rs diff --git a/src/test/ui/array-slice-vec/copy-out-of-array-1.rs b/tests/ui/array-slice-vec/copy-out-of-array-1.rs similarity index 100% rename from src/test/ui/array-slice-vec/copy-out-of-array-1.rs rename to tests/ui/array-slice-vec/copy-out-of-array-1.rs diff --git a/src/test/ui/array-slice-vec/destructure-array-1.rs b/tests/ui/array-slice-vec/destructure-array-1.rs similarity index 100% rename from src/test/ui/array-slice-vec/destructure-array-1.rs rename to tests/ui/array-slice-vec/destructure-array-1.rs diff --git a/src/test/ui/array-slice-vec/dst-raw-slice.rs b/tests/ui/array-slice-vec/dst-raw-slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/dst-raw-slice.rs rename to tests/ui/array-slice-vec/dst-raw-slice.rs diff --git a/src/test/ui/array-slice-vec/empty-mutable-vec.rs b/tests/ui/array-slice-vec/empty-mutable-vec.rs similarity index 100% rename from src/test/ui/array-slice-vec/empty-mutable-vec.rs rename to tests/ui/array-slice-vec/empty-mutable-vec.rs diff --git a/src/test/ui/array-slice-vec/estr-slice.rs b/tests/ui/array-slice-vec/estr-slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/estr-slice.rs rename to tests/ui/array-slice-vec/estr-slice.rs diff --git a/src/test/ui/array-slice-vec/evec-slice.rs b/tests/ui/array-slice-vec/evec-slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/evec-slice.rs rename to tests/ui/array-slice-vec/evec-slice.rs diff --git a/src/test/ui/array-slice-vec/fixed_length_copy.rs b/tests/ui/array-slice-vec/fixed_length_copy.rs similarity index 100% rename from src/test/ui/array-slice-vec/fixed_length_copy.rs rename to tests/ui/array-slice-vec/fixed_length_copy.rs diff --git a/src/test/ui/array-slice-vec/huge-largest-array.rs b/tests/ui/array-slice-vec/huge-largest-array.rs similarity index 100% rename from src/test/ui/array-slice-vec/huge-largest-array.rs rename to tests/ui/array-slice-vec/huge-largest-array.rs diff --git a/src/test/ui/array-slice-vec/infer_array_len.rs b/tests/ui/array-slice-vec/infer_array_len.rs similarity index 100% rename from src/test/ui/array-slice-vec/infer_array_len.rs rename to tests/ui/array-slice-vec/infer_array_len.rs diff --git a/src/test/ui/array-slice-vec/infer_array_len.stderr b/tests/ui/array-slice-vec/infer_array_len.stderr similarity index 100% rename from src/test/ui/array-slice-vec/infer_array_len.stderr rename to tests/ui/array-slice-vec/infer_array_len.stderr diff --git a/src/test/ui/array-slice-vec/issue-15730.rs b/tests/ui/array-slice-vec/issue-15730.rs similarity index 100% rename from src/test/ui/array-slice-vec/issue-15730.rs rename to tests/ui/array-slice-vec/issue-15730.rs diff --git a/src/test/ui/array-slice-vec/issue-18425.rs b/tests/ui/array-slice-vec/issue-18425.rs similarity index 100% rename from src/test/ui/array-slice-vec/issue-18425.rs rename to tests/ui/array-slice-vec/issue-18425.rs diff --git a/src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.rs b/tests/ui/array-slice-vec/issue-69103-extra-binding-subslice.rs similarity index 100% rename from src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.rs rename to tests/ui/array-slice-vec/issue-69103-extra-binding-subslice.rs diff --git a/src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.stderr b/tests/ui/array-slice-vec/issue-69103-extra-binding-subslice.stderr similarity index 100% rename from src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.stderr rename to tests/ui/array-slice-vec/issue-69103-extra-binding-subslice.stderr diff --git a/src/test/ui/array-slice-vec/ivec-pass-by-value.rs b/tests/ui/array-slice-vec/ivec-pass-by-value.rs similarity index 100% rename from src/test/ui/array-slice-vec/ivec-pass-by-value.rs rename to tests/ui/array-slice-vec/ivec-pass-by-value.rs diff --git a/src/test/ui/array-slice-vec/match_arr_unknown_len.rs b/tests/ui/array-slice-vec/match_arr_unknown_len.rs similarity index 100% rename from src/test/ui/array-slice-vec/match_arr_unknown_len.rs rename to tests/ui/array-slice-vec/match_arr_unknown_len.rs diff --git a/src/test/ui/array-slice-vec/match_arr_unknown_len.stderr b/tests/ui/array-slice-vec/match_arr_unknown_len.stderr similarity index 100% rename from src/test/ui/array-slice-vec/match_arr_unknown_len.stderr rename to tests/ui/array-slice-vec/match_arr_unknown_len.stderr diff --git a/src/test/ui/array-slice-vec/mut-vstore-expr.rs b/tests/ui/array-slice-vec/mut-vstore-expr.rs similarity index 100% rename from src/test/ui/array-slice-vec/mut-vstore-expr.rs rename to tests/ui/array-slice-vec/mut-vstore-expr.rs diff --git a/src/test/ui/array-slice-vec/mutability-inherits-through-fixed-length-vec.rs b/tests/ui/array-slice-vec/mutability-inherits-through-fixed-length-vec.rs similarity index 100% rename from src/test/ui/array-slice-vec/mutability-inherits-through-fixed-length-vec.rs rename to tests/ui/array-slice-vec/mutability-inherits-through-fixed-length-vec.rs diff --git a/src/test/ui/array-slice-vec/mutable-alias-vec.rs b/tests/ui/array-slice-vec/mutable-alias-vec.rs similarity index 100% rename from src/test/ui/array-slice-vec/mutable-alias-vec.rs rename to tests/ui/array-slice-vec/mutable-alias-vec.rs diff --git a/src/test/ui/array-slice-vec/nested-vec-1.rs b/tests/ui/array-slice-vec/nested-vec-1.rs similarity index 100% rename from src/test/ui/array-slice-vec/nested-vec-1.rs rename to tests/ui/array-slice-vec/nested-vec-1.rs diff --git a/src/test/ui/array-slice-vec/nested-vec-2.rs b/tests/ui/array-slice-vec/nested-vec-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/nested-vec-2.rs rename to tests/ui/array-slice-vec/nested-vec-2.rs diff --git a/src/test/ui/array-slice-vec/nested-vec-3.rs b/tests/ui/array-slice-vec/nested-vec-3.rs similarity index 100% rename from src/test/ui/array-slice-vec/nested-vec-3.rs rename to tests/ui/array-slice-vec/nested-vec-3.rs diff --git a/src/test/ui/array-slice-vec/new-style-fixed-length-vec.rs b/tests/ui/array-slice-vec/new-style-fixed-length-vec.rs similarity index 100% rename from src/test/ui/array-slice-vec/new-style-fixed-length-vec.rs rename to tests/ui/array-slice-vec/new-style-fixed-length-vec.rs diff --git a/src/test/ui/array-slice-vec/rcvr-borrowed-to-slice.rs b/tests/ui/array-slice-vec/rcvr-borrowed-to-slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/rcvr-borrowed-to-slice.rs rename to tests/ui/array-slice-vec/rcvr-borrowed-to-slice.rs diff --git a/src/test/ui/array-slice-vec/repeat_empty_ok.rs b/tests/ui/array-slice-vec/repeat_empty_ok.rs similarity index 100% rename from src/test/ui/array-slice-vec/repeat_empty_ok.rs rename to tests/ui/array-slice-vec/repeat_empty_ok.rs diff --git a/src/test/ui/array-slice-vec/repeat_empty_ok.stderr b/tests/ui/array-slice-vec/repeat_empty_ok.stderr similarity index 100% rename from src/test/ui/array-slice-vec/repeat_empty_ok.stderr rename to tests/ui/array-slice-vec/repeat_empty_ok.stderr diff --git a/src/test/ui/array-slice-vec/repeated-vector-syntax.rs b/tests/ui/array-slice-vec/repeated-vector-syntax.rs similarity index 100% rename from src/test/ui/array-slice-vec/repeated-vector-syntax.rs rename to tests/ui/array-slice-vec/repeated-vector-syntax.rs diff --git a/src/test/ui/array-slice-vec/show-boxed-slice.rs b/tests/ui/array-slice-vec/show-boxed-slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/show-boxed-slice.rs rename to tests/ui/array-slice-vec/show-boxed-slice.rs diff --git a/src/test/ui/array-slice-vec/slice-2.rs b/tests/ui/array-slice-vec/slice-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-2.rs rename to tests/ui/array-slice-vec/slice-2.rs diff --git a/src/test/ui/array-slice-vec/slice-2.stderr b/tests/ui/array-slice-vec/slice-2.stderr similarity index 100% rename from src/test/ui/array-slice-vec/slice-2.stderr rename to tests/ui/array-slice-vec/slice-2.stderr diff --git a/src/test/ui/array-slice-vec/slice-mut-2.rs b/tests/ui/array-slice-vec/slice-mut-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-mut-2.rs rename to tests/ui/array-slice-vec/slice-mut-2.rs diff --git a/src/test/ui/array-slice-vec/slice-mut-2.stderr b/tests/ui/array-slice-vec/slice-mut-2.stderr similarity index 100% rename from src/test/ui/array-slice-vec/slice-mut-2.stderr rename to tests/ui/array-slice-vec/slice-mut-2.stderr diff --git a/src/test/ui/array-slice-vec/slice-mut.rs b/tests/ui/array-slice-vec/slice-mut.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-mut.rs rename to tests/ui/array-slice-vec/slice-mut.rs diff --git a/src/test/ui/array-slice-vec/slice-mut.stderr b/tests/ui/array-slice-vec/slice-mut.stderr similarity index 100% rename from src/test/ui/array-slice-vec/slice-mut.stderr rename to tests/ui/array-slice-vec/slice-mut.stderr diff --git a/src/test/ui/array-slice-vec/slice-of-zero-size-elements.rs b/tests/ui/array-slice-vec/slice-of-zero-size-elements.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-of-zero-size-elements.rs rename to tests/ui/array-slice-vec/slice-of-zero-size-elements.rs diff --git a/src/test/ui/array-slice-vec/slice-panic-1.rs b/tests/ui/array-slice-vec/slice-panic-1.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-panic-1.rs rename to tests/ui/array-slice-vec/slice-panic-1.rs diff --git a/src/test/ui/array-slice-vec/slice-panic-2.rs b/tests/ui/array-slice-vec/slice-panic-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-panic-2.rs rename to tests/ui/array-slice-vec/slice-panic-2.rs diff --git a/src/test/ui/array-slice-vec/slice-pat-type-mismatches.rs b/tests/ui/array-slice-vec/slice-pat-type-mismatches.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-pat-type-mismatches.rs rename to tests/ui/array-slice-vec/slice-pat-type-mismatches.rs diff --git a/src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr b/tests/ui/array-slice-vec/slice-pat-type-mismatches.stderr similarity index 100% rename from src/test/ui/array-slice-vec/slice-pat-type-mismatches.stderr rename to tests/ui/array-slice-vec/slice-pat-type-mismatches.stderr diff --git a/src/test/ui/array-slice-vec/slice-to-vec-comparison.rs b/tests/ui/array-slice-vec/slice-to-vec-comparison.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice-to-vec-comparison.rs rename to tests/ui/array-slice-vec/slice-to-vec-comparison.rs diff --git a/src/test/ui/array-slice-vec/slice-to-vec-comparison.stderr b/tests/ui/array-slice-vec/slice-to-vec-comparison.stderr similarity index 100% rename from src/test/ui/array-slice-vec/slice-to-vec-comparison.stderr rename to tests/ui/array-slice-vec/slice-to-vec-comparison.stderr diff --git a/src/test/ui/array-slice-vec/slice.rs b/tests/ui/array-slice-vec/slice.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice.rs rename to tests/ui/array-slice-vec/slice.rs diff --git a/src/test/ui/array-slice-vec/slice_binary_search.rs b/tests/ui/array-slice-vec/slice_binary_search.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice_binary_search.rs rename to tests/ui/array-slice-vec/slice_binary_search.rs diff --git a/src/test/ui/array-slice-vec/slice_is_sorted_by_borrow.rs b/tests/ui/array-slice-vec/slice_is_sorted_by_borrow.rs similarity index 100% rename from src/test/ui/array-slice-vec/slice_is_sorted_by_borrow.rs rename to tests/ui/array-slice-vec/slice_is_sorted_by_borrow.rs diff --git a/src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs b/tests/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs similarity index 100% rename from src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs rename to tests/ui/array-slice-vec/subslice-only-once-semantic-restriction.rs diff --git a/src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.stderr b/tests/ui/array-slice-vec/subslice-only-once-semantic-restriction.stderr similarity index 100% rename from src/test/ui/array-slice-vec/subslice-only-once-semantic-restriction.stderr rename to tests/ui/array-slice-vec/subslice-only-once-semantic-restriction.stderr diff --git a/src/test/ui/array-slice-vec/subslice-patterns-const-eval-match.rs b/tests/ui/array-slice-vec/subslice-patterns-const-eval-match.rs similarity index 100% rename from src/test/ui/array-slice-vec/subslice-patterns-const-eval-match.rs rename to tests/ui/array-slice-vec/subslice-patterns-const-eval-match.rs diff --git a/src/test/ui/array-slice-vec/subslice-patterns-const-eval.rs b/tests/ui/array-slice-vec/subslice-patterns-const-eval.rs similarity index 100% rename from src/test/ui/array-slice-vec/subslice-patterns-const-eval.rs rename to tests/ui/array-slice-vec/subslice-patterns-const-eval.rs diff --git a/src/test/ui/array-slice-vec/suggest-array-length.fixed b/tests/ui/array-slice-vec/suggest-array-length.fixed similarity index 100% rename from src/test/ui/array-slice-vec/suggest-array-length.fixed rename to tests/ui/array-slice-vec/suggest-array-length.fixed diff --git a/src/test/ui/array-slice-vec/suggest-array-length.rs b/tests/ui/array-slice-vec/suggest-array-length.rs similarity index 100% rename from src/test/ui/array-slice-vec/suggest-array-length.rs rename to tests/ui/array-slice-vec/suggest-array-length.rs diff --git a/src/test/ui/array-slice-vec/suggest-array-length.stderr b/tests/ui/array-slice-vec/suggest-array-length.stderr similarity index 100% rename from src/test/ui/array-slice-vec/suggest-array-length.stderr rename to tests/ui/array-slice-vec/suggest-array-length.stderr diff --git a/src/test/ui/array-slice-vec/variance-vec-covariant.rs b/tests/ui/array-slice-vec/variance-vec-covariant.rs similarity index 100% rename from src/test/ui/array-slice-vec/variance-vec-covariant.rs rename to tests/ui/array-slice-vec/variance-vec-covariant.rs diff --git a/src/test/ui/array-slice-vec/vec-dst.rs b/tests/ui/array-slice-vec/vec-dst.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-dst.rs rename to tests/ui/array-slice-vec/vec-dst.rs diff --git a/src/test/ui/array-slice-vec/vec-fixed-length.rs b/tests/ui/array-slice-vec/vec-fixed-length.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-fixed-length.rs rename to tests/ui/array-slice-vec/vec-fixed-length.rs diff --git a/src/test/ui/array-slice-vec/vec-late-init.rs b/tests/ui/array-slice-vec/vec-late-init.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-late-init.rs rename to tests/ui/array-slice-vec/vec-late-init.rs diff --git a/src/test/ui/array-slice-vec/vec-macro-no-std.rs b/tests/ui/array-slice-vec/vec-macro-no-std.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-macro-no-std.rs rename to tests/ui/array-slice-vec/vec-macro-no-std.rs diff --git a/src/test/ui/array-slice-vec/vec-macro-rvalue-scope.rs b/tests/ui/array-slice-vec/vec-macro-rvalue-scope.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-macro-rvalue-scope.rs rename to tests/ui/array-slice-vec/vec-macro-rvalue-scope.rs diff --git a/src/test/ui/array-slice-vec/vec-macro-with-brackets.rs b/tests/ui/array-slice-vec/vec-macro-with-brackets.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-macro-with-brackets.rs rename to tests/ui/array-slice-vec/vec-macro-with-brackets.rs diff --git a/src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs b/tests/ui/array-slice-vec/vec-macro-with-comma-only.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs rename to tests/ui/array-slice-vec/vec-macro-with-comma-only.rs diff --git a/src/test/ui/array-slice-vec/vec-macro-with-comma-only.stderr b/tests/ui/array-slice-vec/vec-macro-with-comma-only.stderr similarity index 100% rename from src/test/ui/array-slice-vec/vec-macro-with-comma-only.stderr rename to tests/ui/array-slice-vec/vec-macro-with-comma-only.stderr diff --git a/src/test/ui/array-slice-vec/vec-macro-with-trailing-comma.rs b/tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-macro-with-trailing-comma.rs rename to tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs diff --git a/src/test/ui/array-slice-vec/vec-matching-autoslice.rs b/tests/ui/array-slice-vec/vec-matching-autoslice.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-matching-autoslice.rs rename to tests/ui/array-slice-vec/vec-matching-autoslice.rs diff --git a/src/test/ui/array-slice-vec/vec-matching-fixed.rs b/tests/ui/array-slice-vec/vec-matching-fixed.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-matching-fixed.rs rename to tests/ui/array-slice-vec/vec-matching-fixed.rs diff --git a/src/test/ui/array-slice-vec/vec-matching-fold.rs b/tests/ui/array-slice-vec/vec-matching-fold.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-matching-fold.rs rename to tests/ui/array-slice-vec/vec-matching-fold.rs diff --git a/src/test/ui/array-slice-vec/vec-matching-legal-tail-element-borrow.rs b/tests/ui/array-slice-vec/vec-matching-legal-tail-element-borrow.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-matching-legal-tail-element-borrow.rs rename to tests/ui/array-slice-vec/vec-matching-legal-tail-element-borrow.rs diff --git a/src/test/ui/array-slice-vec/vec-matching.rs b/tests/ui/array-slice-vec/vec-matching.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-matching.rs rename to tests/ui/array-slice-vec/vec-matching.rs diff --git a/src/test/ui/array-slice-vec/vec-mut-iter-borrow.rs b/tests/ui/array-slice-vec/vec-mut-iter-borrow.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-mut-iter-borrow.rs rename to tests/ui/array-slice-vec/vec-mut-iter-borrow.rs diff --git a/src/test/ui/array-slice-vec/vec-mut-iter-borrow.stderr b/tests/ui/array-slice-vec/vec-mut-iter-borrow.stderr similarity index 100% rename from src/test/ui/array-slice-vec/vec-mut-iter-borrow.stderr rename to tests/ui/array-slice-vec/vec-mut-iter-borrow.stderr diff --git a/src/test/ui/array-slice-vec/vec-overrun.rs b/tests/ui/array-slice-vec/vec-overrun.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-overrun.rs rename to tests/ui/array-slice-vec/vec-overrun.rs diff --git a/src/test/ui/array-slice-vec/vec-repeat-with-cast.rs b/tests/ui/array-slice-vec/vec-repeat-with-cast.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-repeat-with-cast.rs rename to tests/ui/array-slice-vec/vec-repeat-with-cast.rs diff --git a/src/test/ui/array-slice-vec/vec-res-add.rs b/tests/ui/array-slice-vec/vec-res-add.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-res-add.rs rename to tests/ui/array-slice-vec/vec-res-add.rs diff --git a/src/test/ui/array-slice-vec/vec-res-add.stderr b/tests/ui/array-slice-vec/vec-res-add.stderr similarity index 100% rename from src/test/ui/array-slice-vec/vec-res-add.stderr rename to tests/ui/array-slice-vec/vec-res-add.stderr diff --git a/src/test/ui/array-slice-vec/vec-tail-matching.rs b/tests/ui/array-slice-vec/vec-tail-matching.rs similarity index 100% rename from src/test/ui/array-slice-vec/vec-tail-matching.rs rename to tests/ui/array-slice-vec/vec-tail-matching.rs diff --git a/src/test/ui/array-slice-vec/vector-cast-weirdness.rs b/tests/ui/array-slice-vec/vector-cast-weirdness.rs similarity index 100% rename from src/test/ui/array-slice-vec/vector-cast-weirdness.rs rename to tests/ui/array-slice-vec/vector-cast-weirdness.rs diff --git a/src/test/ui/array-slice-vec/vector-cast-weirdness.stderr b/tests/ui/array-slice-vec/vector-cast-weirdness.stderr similarity index 100% rename from src/test/ui/array-slice-vec/vector-cast-weirdness.stderr rename to tests/ui/array-slice-vec/vector-cast-weirdness.stderr diff --git a/src/test/ui/array-slice-vec/vector-no-ann-2.rs b/tests/ui/array-slice-vec/vector-no-ann-2.rs similarity index 100% rename from src/test/ui/array-slice-vec/vector-no-ann-2.rs rename to tests/ui/array-slice-vec/vector-no-ann-2.rs diff --git a/src/test/ui/array-slice-vec/vector-no-ann.rs b/tests/ui/array-slice-vec/vector-no-ann.rs similarity index 100% rename from src/test/ui/array-slice-vec/vector-no-ann.rs rename to tests/ui/array-slice-vec/vector-no-ann.rs diff --git a/src/test/ui/array-slice-vec/vector-no-ann.stderr b/tests/ui/array-slice-vec/vector-no-ann.stderr similarity index 100% rename from src/test/ui/array-slice-vec/vector-no-ann.stderr rename to tests/ui/array-slice-vec/vector-no-ann.stderr diff --git a/src/test/ui/artificial-block.rs b/tests/ui/artificial-block.rs similarity index 100% rename from src/test/ui/artificial-block.rs rename to tests/ui/artificial-block.rs diff --git a/src/test/ui/as-precedence.rs b/tests/ui/as-precedence.rs similarity index 100% rename from src/test/ui/as-precedence.rs rename to tests/ui/as-precedence.rs diff --git a/src/test/ui/asm/aarch64/bad-options.rs b/tests/ui/asm/aarch64/bad-options.rs similarity index 100% rename from src/test/ui/asm/aarch64/bad-options.rs rename to tests/ui/asm/aarch64/bad-options.rs diff --git a/src/test/ui/asm/aarch64/bad-options.stderr b/tests/ui/asm/aarch64/bad-options.stderr similarity index 100% rename from src/test/ui/asm/aarch64/bad-options.stderr rename to tests/ui/asm/aarch64/bad-options.stderr diff --git a/src/test/ui/asm/aarch64/bad-reg.rs b/tests/ui/asm/aarch64/bad-reg.rs similarity index 100% rename from src/test/ui/asm/aarch64/bad-reg.rs rename to tests/ui/asm/aarch64/bad-reg.rs diff --git a/src/test/ui/asm/aarch64/bad-reg.stderr b/tests/ui/asm/aarch64/bad-reg.stderr similarity index 100% rename from src/test/ui/asm/aarch64/bad-reg.stderr rename to tests/ui/asm/aarch64/bad-reg.stderr diff --git a/src/test/ui/asm/aarch64/const.rs b/tests/ui/asm/aarch64/const.rs similarity index 100% rename from src/test/ui/asm/aarch64/const.rs rename to tests/ui/asm/aarch64/const.rs diff --git a/src/test/ui/asm/aarch64/duplicate-options.fixed b/tests/ui/asm/aarch64/duplicate-options.fixed similarity index 100% rename from src/test/ui/asm/aarch64/duplicate-options.fixed rename to tests/ui/asm/aarch64/duplicate-options.fixed diff --git a/src/test/ui/asm/aarch64/duplicate-options.rs b/tests/ui/asm/aarch64/duplicate-options.rs similarity index 100% rename from src/test/ui/asm/aarch64/duplicate-options.rs rename to tests/ui/asm/aarch64/duplicate-options.rs diff --git a/src/test/ui/asm/aarch64/duplicate-options.stderr b/tests/ui/asm/aarch64/duplicate-options.stderr similarity index 100% rename from src/test/ui/asm/aarch64/duplicate-options.stderr rename to tests/ui/asm/aarch64/duplicate-options.stderr diff --git a/src/test/ui/asm/aarch64/interpolated-idents.rs b/tests/ui/asm/aarch64/interpolated-idents.rs similarity index 100% rename from src/test/ui/asm/aarch64/interpolated-idents.rs rename to tests/ui/asm/aarch64/interpolated-idents.rs diff --git a/src/test/ui/asm/aarch64/interpolated-idents.stderr b/tests/ui/asm/aarch64/interpolated-idents.stderr similarity index 100% rename from src/test/ui/asm/aarch64/interpolated-idents.stderr rename to tests/ui/asm/aarch64/interpolated-idents.stderr diff --git a/src/test/ui/asm/aarch64/llvm-58384.rs b/tests/ui/asm/aarch64/llvm-58384.rs similarity index 100% rename from src/test/ui/asm/aarch64/llvm-58384.rs rename to tests/ui/asm/aarch64/llvm-58384.rs diff --git a/src/test/ui/asm/aarch64/may_unwind.rs b/tests/ui/asm/aarch64/may_unwind.rs similarity index 100% rename from src/test/ui/asm/aarch64/may_unwind.rs rename to tests/ui/asm/aarch64/may_unwind.rs diff --git a/src/test/ui/asm/aarch64/parse-error.rs b/tests/ui/asm/aarch64/parse-error.rs similarity index 100% rename from src/test/ui/asm/aarch64/parse-error.rs rename to tests/ui/asm/aarch64/parse-error.rs diff --git a/src/test/ui/asm/aarch64/parse-error.stderr b/tests/ui/asm/aarch64/parse-error.stderr similarity index 100% rename from src/test/ui/asm/aarch64/parse-error.stderr rename to tests/ui/asm/aarch64/parse-error.stderr diff --git a/src/test/ui/asm/aarch64/srcloc.rs b/tests/ui/asm/aarch64/srcloc.rs similarity index 100% rename from src/test/ui/asm/aarch64/srcloc.rs rename to tests/ui/asm/aarch64/srcloc.rs diff --git a/src/test/ui/asm/aarch64/srcloc.stderr b/tests/ui/asm/aarch64/srcloc.stderr similarity index 100% rename from src/test/ui/asm/aarch64/srcloc.stderr rename to tests/ui/asm/aarch64/srcloc.stderr diff --git a/src/test/ui/asm/aarch64/sym.rs b/tests/ui/asm/aarch64/sym.rs similarity index 100% rename from src/test/ui/asm/aarch64/sym.rs rename to tests/ui/asm/aarch64/sym.rs diff --git a/src/test/ui/asm/aarch64/type-check-2-2.rs b/tests/ui/asm/aarch64/type-check-2-2.rs similarity index 100% rename from src/test/ui/asm/aarch64/type-check-2-2.rs rename to tests/ui/asm/aarch64/type-check-2-2.rs diff --git a/src/test/ui/asm/aarch64/type-check-2-2.stderr b/tests/ui/asm/aarch64/type-check-2-2.stderr similarity index 100% rename from src/test/ui/asm/aarch64/type-check-2-2.stderr rename to tests/ui/asm/aarch64/type-check-2-2.stderr diff --git a/src/test/ui/asm/aarch64/type-check-2.rs b/tests/ui/asm/aarch64/type-check-2.rs similarity index 100% rename from src/test/ui/asm/aarch64/type-check-2.rs rename to tests/ui/asm/aarch64/type-check-2.rs diff --git a/src/test/ui/asm/aarch64/type-check-2.stderr b/tests/ui/asm/aarch64/type-check-2.stderr similarity index 100% rename from src/test/ui/asm/aarch64/type-check-2.stderr rename to tests/ui/asm/aarch64/type-check-2.stderr diff --git a/src/test/ui/asm/aarch64/type-check-3.rs b/tests/ui/asm/aarch64/type-check-3.rs similarity index 100% rename from src/test/ui/asm/aarch64/type-check-3.rs rename to tests/ui/asm/aarch64/type-check-3.rs diff --git a/src/test/ui/asm/aarch64/type-check-3.stderr b/tests/ui/asm/aarch64/type-check-3.stderr similarity index 100% rename from src/test/ui/asm/aarch64/type-check-3.stderr rename to tests/ui/asm/aarch64/type-check-3.stderr diff --git a/src/test/ui/asm/aarch64/type-check-4.rs b/tests/ui/asm/aarch64/type-check-4.rs similarity index 100% rename from src/test/ui/asm/aarch64/type-check-4.rs rename to tests/ui/asm/aarch64/type-check-4.rs diff --git a/src/test/ui/asm/aarch64/type-check-4.stderr b/tests/ui/asm/aarch64/type-check-4.stderr similarity index 100% rename from src/test/ui/asm/aarch64/type-check-4.stderr rename to tests/ui/asm/aarch64/type-check-4.stderr diff --git a/src/test/ui/asm/bad-arch.mirunsafeck.stderr b/tests/ui/asm/bad-arch.mirunsafeck.stderr similarity index 100% rename from src/test/ui/asm/bad-arch.mirunsafeck.stderr rename to tests/ui/asm/bad-arch.mirunsafeck.stderr diff --git a/src/test/ui/asm/bad-arch.rs b/tests/ui/asm/bad-arch.rs similarity index 100% rename from src/test/ui/asm/bad-arch.rs rename to tests/ui/asm/bad-arch.rs diff --git a/src/test/ui/asm/bad-arch.thirunsafeck.stderr b/tests/ui/asm/bad-arch.thirunsafeck.stderr similarity index 100% rename from src/test/ui/asm/bad-arch.thirunsafeck.stderr rename to tests/ui/asm/bad-arch.thirunsafeck.stderr diff --git a/src/test/ui/asm/bad-template.aarch64_mirunsafeck.stderr b/tests/ui/asm/bad-template.aarch64_mirunsafeck.stderr similarity index 100% rename from src/test/ui/asm/bad-template.aarch64_mirunsafeck.stderr rename to tests/ui/asm/bad-template.aarch64_mirunsafeck.stderr diff --git a/src/test/ui/asm/bad-template.aarch64_thirunsafeck.stderr b/tests/ui/asm/bad-template.aarch64_thirunsafeck.stderr similarity index 100% rename from src/test/ui/asm/bad-template.aarch64_thirunsafeck.stderr rename to tests/ui/asm/bad-template.aarch64_thirunsafeck.stderr diff --git a/src/test/ui/asm/bad-template.rs b/tests/ui/asm/bad-template.rs similarity index 100% rename from src/test/ui/asm/bad-template.rs rename to tests/ui/asm/bad-template.rs diff --git a/src/test/ui/asm/bad-template.x86_64_mirunsafeck.stderr b/tests/ui/asm/bad-template.x86_64_mirunsafeck.stderr similarity index 100% rename from src/test/ui/asm/bad-template.x86_64_mirunsafeck.stderr rename to tests/ui/asm/bad-template.x86_64_mirunsafeck.stderr diff --git a/src/test/ui/asm/bad-template.x86_64_thirunsafeck.stderr b/tests/ui/asm/bad-template.x86_64_thirunsafeck.stderr similarity index 100% rename from src/test/ui/asm/bad-template.x86_64_thirunsafeck.stderr rename to tests/ui/asm/bad-template.x86_64_thirunsafeck.stderr diff --git a/src/test/ui/asm/generic-const.rs b/tests/ui/asm/generic-const.rs similarity index 100% rename from src/test/ui/asm/generic-const.rs rename to tests/ui/asm/generic-const.rs diff --git a/src/test/ui/asm/inline-syntax.arm.stderr b/tests/ui/asm/inline-syntax.arm.stderr similarity index 100% rename from src/test/ui/asm/inline-syntax.arm.stderr rename to tests/ui/asm/inline-syntax.arm.stderr diff --git a/src/test/ui/asm/inline-syntax.rs b/tests/ui/asm/inline-syntax.rs similarity index 100% rename from src/test/ui/asm/inline-syntax.rs rename to tests/ui/asm/inline-syntax.rs diff --git a/src/test/ui/asm/inline-syntax.x86_64.stderr b/tests/ui/asm/inline-syntax.x86_64.stderr similarity index 100% rename from src/test/ui/asm/inline-syntax.x86_64.stderr rename to tests/ui/asm/inline-syntax.x86_64.stderr diff --git a/src/test/ui/asm/issue-72570.rs b/tests/ui/asm/issue-72570.rs similarity index 100% rename from src/test/ui/asm/issue-72570.rs rename to tests/ui/asm/issue-72570.rs diff --git a/src/test/ui/asm/issue-72570.stderr b/tests/ui/asm/issue-72570.stderr similarity index 100% rename from src/test/ui/asm/issue-72570.stderr rename to tests/ui/asm/issue-72570.stderr diff --git a/src/test/ui/asm/issue-85247.rs b/tests/ui/asm/issue-85247.rs similarity index 100% rename from src/test/ui/asm/issue-85247.rs rename to tests/ui/asm/issue-85247.rs diff --git a/src/test/ui/asm/issue-85247.rwpi.stderr b/tests/ui/asm/issue-85247.rwpi.stderr similarity index 100% rename from src/test/ui/asm/issue-85247.rwpi.stderr rename to tests/ui/asm/issue-85247.rwpi.stderr diff --git a/src/test/ui/asm/issue-87802.rs b/tests/ui/asm/issue-87802.rs similarity index 100% rename from src/test/ui/asm/issue-87802.rs rename to tests/ui/asm/issue-87802.rs diff --git a/src/test/ui/asm/issue-87802.stderr b/tests/ui/asm/issue-87802.stderr similarity index 100% rename from src/test/ui/asm/issue-87802.stderr rename to tests/ui/asm/issue-87802.stderr diff --git a/src/test/ui/asm/issue-89305.rs b/tests/ui/asm/issue-89305.rs similarity index 100% rename from src/test/ui/asm/issue-89305.rs rename to tests/ui/asm/issue-89305.rs diff --git a/src/test/ui/asm/issue-89305.stderr b/tests/ui/asm/issue-89305.stderr similarity index 100% rename from src/test/ui/asm/issue-89305.stderr rename to tests/ui/asm/issue-89305.stderr diff --git a/src/test/ui/asm/issue-92378.rs b/tests/ui/asm/issue-92378.rs similarity index 100% rename from src/test/ui/asm/issue-92378.rs rename to tests/ui/asm/issue-92378.rs diff --git a/src/test/ui/asm/issue-97490.rs b/tests/ui/asm/issue-97490.rs similarity index 100% rename from src/test/ui/asm/issue-97490.rs rename to tests/ui/asm/issue-97490.rs diff --git a/src/test/ui/asm/issue-99071.rs b/tests/ui/asm/issue-99071.rs similarity index 100% rename from src/test/ui/asm/issue-99071.rs rename to tests/ui/asm/issue-99071.rs diff --git a/src/test/ui/asm/issue-99071.stderr b/tests/ui/asm/issue-99071.stderr similarity index 100% rename from src/test/ui/asm/issue-99071.stderr rename to tests/ui/asm/issue-99071.stderr diff --git a/src/test/ui/asm/issue-99122-2.rs b/tests/ui/asm/issue-99122-2.rs similarity index 100% rename from src/test/ui/asm/issue-99122-2.rs rename to tests/ui/asm/issue-99122-2.rs diff --git a/src/test/ui/asm/issue-99122.rs b/tests/ui/asm/issue-99122.rs similarity index 100% rename from src/test/ui/asm/issue-99122.rs rename to tests/ui/asm/issue-99122.rs diff --git a/src/test/ui/asm/issue-99122.stderr b/tests/ui/asm/issue-99122.stderr similarity index 100% rename from src/test/ui/asm/issue-99122.stderr rename to tests/ui/asm/issue-99122.stderr diff --git a/src/test/ui/asm/may_unwind.rs b/tests/ui/asm/may_unwind.rs similarity index 100% rename from src/test/ui/asm/may_unwind.rs rename to tests/ui/asm/may_unwind.rs diff --git a/src/test/ui/asm/naked-functions-ffi.rs b/tests/ui/asm/naked-functions-ffi.rs similarity index 100% rename from src/test/ui/asm/naked-functions-ffi.rs rename to tests/ui/asm/naked-functions-ffi.rs diff --git a/src/test/ui/asm/naked-functions-ffi.stderr b/tests/ui/asm/naked-functions-ffi.stderr similarity index 100% rename from src/test/ui/asm/naked-functions-ffi.stderr rename to tests/ui/asm/naked-functions-ffi.stderr diff --git a/src/test/ui/asm/naked-functions-unused.aarch64.stderr b/tests/ui/asm/naked-functions-unused.aarch64.stderr similarity index 100% rename from src/test/ui/asm/naked-functions-unused.aarch64.stderr rename to tests/ui/asm/naked-functions-unused.aarch64.stderr diff --git a/src/test/ui/asm/naked-functions-unused.rs b/tests/ui/asm/naked-functions-unused.rs similarity index 100% rename from src/test/ui/asm/naked-functions-unused.rs rename to tests/ui/asm/naked-functions-unused.rs diff --git a/src/test/ui/asm/naked-functions-unused.x86_64.stderr b/tests/ui/asm/naked-functions-unused.x86_64.stderr similarity index 100% rename from src/test/ui/asm/naked-functions-unused.x86_64.stderr rename to tests/ui/asm/naked-functions-unused.x86_64.stderr diff --git a/src/test/ui/asm/naked-functions.rs b/tests/ui/asm/naked-functions.rs similarity index 100% rename from src/test/ui/asm/naked-functions.rs rename to tests/ui/asm/naked-functions.rs diff --git a/src/test/ui/asm/naked-functions.stderr b/tests/ui/asm/naked-functions.stderr similarity index 100% rename from src/test/ui/asm/naked-functions.stderr rename to tests/ui/asm/naked-functions.stderr diff --git a/src/test/ui/asm/naked-invalid-attr.rs b/tests/ui/asm/naked-invalid-attr.rs similarity index 100% rename from src/test/ui/asm/naked-invalid-attr.rs rename to tests/ui/asm/naked-invalid-attr.rs diff --git a/src/test/ui/asm/naked-invalid-attr.stderr b/tests/ui/asm/naked-invalid-attr.stderr similarity index 100% rename from src/test/ui/asm/naked-invalid-attr.stderr rename to tests/ui/asm/naked-invalid-attr.stderr diff --git a/src/test/ui/asm/named-asm-labels.rs b/tests/ui/asm/named-asm-labels.rs similarity index 100% rename from src/test/ui/asm/named-asm-labels.rs rename to tests/ui/asm/named-asm-labels.rs diff --git a/src/test/ui/asm/named-asm-labels.s b/tests/ui/asm/named-asm-labels.s similarity index 100% rename from src/test/ui/asm/named-asm-labels.s rename to tests/ui/asm/named-asm-labels.s diff --git a/src/test/ui/asm/named-asm-labels.stderr b/tests/ui/asm/named-asm-labels.stderr similarity index 100% rename from src/test/ui/asm/named-asm-labels.stderr rename to tests/ui/asm/named-asm-labels.stderr diff --git a/src/test/ui/asm/noreturn.rs b/tests/ui/asm/noreturn.rs similarity index 100% rename from src/test/ui/asm/noreturn.rs rename to tests/ui/asm/noreturn.rs diff --git a/src/test/ui/asm/reg-conflict.rs b/tests/ui/asm/reg-conflict.rs similarity index 100% rename from src/test/ui/asm/reg-conflict.rs rename to tests/ui/asm/reg-conflict.rs diff --git a/src/test/ui/asm/reg-conflict.stderr b/tests/ui/asm/reg-conflict.stderr similarity index 100% rename from src/test/ui/asm/reg-conflict.stderr rename to tests/ui/asm/reg-conflict.stderr diff --git a/src/test/ui/asm/type-check-1.rs b/tests/ui/asm/type-check-1.rs similarity index 100% rename from src/test/ui/asm/type-check-1.rs rename to tests/ui/asm/type-check-1.rs diff --git a/src/test/ui/asm/type-check-1.stderr b/tests/ui/asm/type-check-1.stderr similarity index 100% rename from src/test/ui/asm/type-check-1.stderr rename to tests/ui/asm/type-check-1.stderr diff --git a/src/test/ui/asm/type-check-4.rs b/tests/ui/asm/type-check-4.rs similarity index 100% rename from src/test/ui/asm/type-check-4.rs rename to tests/ui/asm/type-check-4.rs diff --git a/src/test/ui/asm/type-check-4.stderr b/tests/ui/asm/type-check-4.stderr similarity index 100% rename from src/test/ui/asm/type-check-4.stderr rename to tests/ui/asm/type-check-4.stderr diff --git a/src/test/ui/asm/unpretty-expanded.rs b/tests/ui/asm/unpretty-expanded.rs similarity index 100% rename from src/test/ui/asm/unpretty-expanded.rs rename to tests/ui/asm/unpretty-expanded.rs diff --git a/src/test/ui/asm/unpretty-expanded.stdout b/tests/ui/asm/unpretty-expanded.stdout similarity index 100% rename from src/test/ui/asm/unpretty-expanded.stdout rename to tests/ui/asm/unpretty-expanded.stdout diff --git a/src/test/ui/asm/x86_64/bad-clobber-abi.rs b/tests/ui/asm/x86_64/bad-clobber-abi.rs similarity index 100% rename from src/test/ui/asm/x86_64/bad-clobber-abi.rs rename to tests/ui/asm/x86_64/bad-clobber-abi.rs diff --git a/src/test/ui/asm/x86_64/bad-clobber-abi.stderr b/tests/ui/asm/x86_64/bad-clobber-abi.stderr similarity index 100% rename from src/test/ui/asm/x86_64/bad-clobber-abi.stderr rename to tests/ui/asm/x86_64/bad-clobber-abi.stderr diff --git a/src/test/ui/asm/x86_64/bad-options.rs b/tests/ui/asm/x86_64/bad-options.rs similarity index 100% rename from src/test/ui/asm/x86_64/bad-options.rs rename to tests/ui/asm/x86_64/bad-options.rs diff --git a/src/test/ui/asm/x86_64/bad-options.stderr b/tests/ui/asm/x86_64/bad-options.stderr similarity index 100% rename from src/test/ui/asm/x86_64/bad-options.stderr rename to tests/ui/asm/x86_64/bad-options.stderr diff --git a/src/test/ui/asm/x86_64/bad-reg.rs b/tests/ui/asm/x86_64/bad-reg.rs similarity index 100% rename from src/test/ui/asm/x86_64/bad-reg.rs rename to tests/ui/asm/x86_64/bad-reg.rs diff --git a/src/test/ui/asm/x86_64/bad-reg.stderr b/tests/ui/asm/x86_64/bad-reg.stderr similarity index 100% rename from src/test/ui/asm/x86_64/bad-reg.stderr rename to tests/ui/asm/x86_64/bad-reg.stderr diff --git a/src/test/ui/asm/x86_64/const.rs b/tests/ui/asm/x86_64/const.rs similarity index 100% rename from src/test/ui/asm/x86_64/const.rs rename to tests/ui/asm/x86_64/const.rs diff --git a/src/test/ui/asm/x86_64/duplicate-options.fixed b/tests/ui/asm/x86_64/duplicate-options.fixed similarity index 100% rename from src/test/ui/asm/x86_64/duplicate-options.fixed rename to tests/ui/asm/x86_64/duplicate-options.fixed diff --git a/src/test/ui/asm/x86_64/duplicate-options.rs b/tests/ui/asm/x86_64/duplicate-options.rs similarity index 100% rename from src/test/ui/asm/x86_64/duplicate-options.rs rename to tests/ui/asm/x86_64/duplicate-options.rs diff --git a/src/test/ui/asm/x86_64/duplicate-options.stderr b/tests/ui/asm/x86_64/duplicate-options.stderr similarity index 100% rename from src/test/ui/asm/x86_64/duplicate-options.stderr rename to tests/ui/asm/x86_64/duplicate-options.stderr diff --git a/src/test/ui/asm/x86_64/interpolated-idents.rs b/tests/ui/asm/x86_64/interpolated-idents.rs similarity index 100% rename from src/test/ui/asm/x86_64/interpolated-idents.rs rename to tests/ui/asm/x86_64/interpolated-idents.rs diff --git a/src/test/ui/asm/x86_64/interpolated-idents.stderr b/tests/ui/asm/x86_64/interpolated-idents.stderr similarity index 100% rename from src/test/ui/asm/x86_64/interpolated-idents.stderr rename to tests/ui/asm/x86_64/interpolated-idents.stderr diff --git a/src/test/ui/asm/x86_64/issue-82869.rs b/tests/ui/asm/x86_64/issue-82869.rs similarity index 100% rename from src/test/ui/asm/x86_64/issue-82869.rs rename to tests/ui/asm/x86_64/issue-82869.rs diff --git a/src/test/ui/asm/x86_64/issue-82869.stderr b/tests/ui/asm/x86_64/issue-82869.stderr similarity index 100% rename from src/test/ui/asm/x86_64/issue-82869.stderr rename to tests/ui/asm/x86_64/issue-82869.stderr diff --git a/src/test/ui/asm/x86_64/issue-89875.rs b/tests/ui/asm/x86_64/issue-89875.rs similarity index 100% rename from src/test/ui/asm/x86_64/issue-89875.rs rename to tests/ui/asm/x86_64/issue-89875.rs diff --git a/src/test/ui/asm/x86_64/issue-96797.rs b/tests/ui/asm/x86_64/issue-96797.rs similarity index 100% rename from src/test/ui/asm/x86_64/issue-96797.rs rename to tests/ui/asm/x86_64/issue-96797.rs diff --git a/src/test/ui/asm/x86_64/may_unwind.rs b/tests/ui/asm/x86_64/may_unwind.rs similarity index 100% rename from src/test/ui/asm/x86_64/may_unwind.rs rename to tests/ui/asm/x86_64/may_unwind.rs diff --git a/src/test/ui/asm/x86_64/multiple-clobber-abi.rs b/tests/ui/asm/x86_64/multiple-clobber-abi.rs similarity index 100% rename from src/test/ui/asm/x86_64/multiple-clobber-abi.rs rename to tests/ui/asm/x86_64/multiple-clobber-abi.rs diff --git a/src/test/ui/asm/x86_64/parse-error.rs b/tests/ui/asm/x86_64/parse-error.rs similarity index 100% rename from src/test/ui/asm/x86_64/parse-error.rs rename to tests/ui/asm/x86_64/parse-error.rs diff --git a/src/test/ui/asm/x86_64/parse-error.stderr b/tests/ui/asm/x86_64/parse-error.stderr similarity index 100% rename from src/test/ui/asm/x86_64/parse-error.stderr rename to tests/ui/asm/x86_64/parse-error.stderr diff --git a/src/test/ui/asm/x86_64/srcloc.rs b/tests/ui/asm/x86_64/srcloc.rs similarity index 100% rename from src/test/ui/asm/x86_64/srcloc.rs rename to tests/ui/asm/x86_64/srcloc.rs diff --git a/src/test/ui/asm/x86_64/srcloc.stderr b/tests/ui/asm/x86_64/srcloc.stderr similarity index 100% rename from src/test/ui/asm/x86_64/srcloc.stderr rename to tests/ui/asm/x86_64/srcloc.stderr diff --git a/src/test/ui/asm/x86_64/sym.rs b/tests/ui/asm/x86_64/sym.rs similarity index 100% rename from src/test/ui/asm/x86_64/sym.rs rename to tests/ui/asm/x86_64/sym.rs diff --git a/src/test/ui/asm/x86_64/target-feature-attr.rs b/tests/ui/asm/x86_64/target-feature-attr.rs similarity index 100% rename from src/test/ui/asm/x86_64/target-feature-attr.rs rename to tests/ui/asm/x86_64/target-feature-attr.rs diff --git a/src/test/ui/asm/x86_64/target-feature-attr.stderr b/tests/ui/asm/x86_64/target-feature-attr.stderr similarity index 100% rename from src/test/ui/asm/x86_64/target-feature-attr.stderr rename to tests/ui/asm/x86_64/target-feature-attr.stderr diff --git a/src/test/ui/asm/x86_64/type-check-2.rs b/tests/ui/asm/x86_64/type-check-2.rs similarity index 100% rename from src/test/ui/asm/x86_64/type-check-2.rs rename to tests/ui/asm/x86_64/type-check-2.rs diff --git a/src/test/ui/asm/x86_64/type-check-2.stderr b/tests/ui/asm/x86_64/type-check-2.stderr similarity index 100% rename from src/test/ui/asm/x86_64/type-check-2.stderr rename to tests/ui/asm/x86_64/type-check-2.stderr diff --git a/src/test/ui/asm/x86_64/type-check-3.rs b/tests/ui/asm/x86_64/type-check-3.rs similarity index 100% rename from src/test/ui/asm/x86_64/type-check-3.rs rename to tests/ui/asm/x86_64/type-check-3.rs diff --git a/src/test/ui/asm/x86_64/type-check-3.stderr b/tests/ui/asm/x86_64/type-check-3.stderr similarity index 100% rename from src/test/ui/asm/x86_64/type-check-3.stderr rename to tests/ui/asm/x86_64/type-check-3.stderr diff --git a/src/test/ui/asm/x86_64/type-check-4.rs b/tests/ui/asm/x86_64/type-check-4.rs similarity index 100% rename from src/test/ui/asm/x86_64/type-check-4.rs rename to tests/ui/asm/x86_64/type-check-4.rs diff --git a/src/test/ui/asm/x86_64/type-check-4.stderr b/tests/ui/asm/x86_64/type-check-4.stderr similarity index 100% rename from src/test/ui/asm/x86_64/type-check-4.stderr rename to tests/ui/asm/x86_64/type-check-4.stderr diff --git a/src/test/ui/asm/x86_64/type-check-5.rs b/tests/ui/asm/x86_64/type-check-5.rs similarity index 100% rename from src/test/ui/asm/x86_64/type-check-5.rs rename to tests/ui/asm/x86_64/type-check-5.rs diff --git a/src/test/ui/asm/x86_64/type-check-5.stderr b/tests/ui/asm/x86_64/type-check-5.stderr similarity index 100% rename from src/test/ui/asm/x86_64/type-check-5.stderr rename to tests/ui/asm/x86_64/type-check-5.stderr diff --git a/src/test/ui/assign-assign.rs b/tests/ui/assign-assign.rs similarity index 100% rename from src/test/ui/assign-assign.rs rename to tests/ui/assign-assign.rs diff --git a/src/test/ui/assign-imm-local-twice.rs b/tests/ui/assign-imm-local-twice.rs similarity index 100% rename from src/test/ui/assign-imm-local-twice.rs rename to tests/ui/assign-imm-local-twice.rs diff --git a/src/test/ui/assign-imm-local-twice.stderr b/tests/ui/assign-imm-local-twice.stderr similarity index 100% rename from src/test/ui/assign-imm-local-twice.stderr rename to tests/ui/assign-imm-local-twice.stderr diff --git a/src/test/ui/assoc-lang-items.rs b/tests/ui/assoc-lang-items.rs similarity index 100% rename from src/test/ui/assoc-lang-items.rs rename to tests/ui/assoc-lang-items.rs diff --git a/src/test/ui/assoc-lang-items.stderr b/tests/ui/assoc-lang-items.stderr similarity index 100% rename from src/test/ui/assoc-lang-items.stderr rename to tests/ui/assoc-lang-items.stderr diff --git a/src/test/ui/assoc-oddities-3.rs b/tests/ui/assoc-oddities-3.rs similarity index 100% rename from src/test/ui/assoc-oddities-3.rs rename to tests/ui/assoc-oddities-3.rs diff --git a/src/test/ui/associated-consts/assoc-const-eq-missing.rs b/tests/ui/associated-consts/assoc-const-eq-missing.rs similarity index 100% rename from src/test/ui/associated-consts/assoc-const-eq-missing.rs rename to tests/ui/associated-consts/assoc-const-eq-missing.rs diff --git a/src/test/ui/associated-consts/assoc-const-eq-missing.stderr b/tests/ui/associated-consts/assoc-const-eq-missing.stderr similarity index 100% rename from src/test/ui/associated-consts/assoc-const-eq-missing.stderr rename to tests/ui/associated-consts/assoc-const-eq-missing.stderr diff --git a/src/test/ui/associated-consts/assoc-const-ty-mismatch.rs b/tests/ui/associated-consts/assoc-const-ty-mismatch.rs similarity index 100% rename from src/test/ui/associated-consts/assoc-const-ty-mismatch.rs rename to tests/ui/associated-consts/assoc-const-ty-mismatch.rs diff --git a/src/test/ui/associated-consts/assoc-const-ty-mismatch.stderr b/tests/ui/associated-consts/assoc-const-ty-mismatch.stderr similarity index 100% rename from src/test/ui/associated-consts/assoc-const-ty-mismatch.stderr rename to tests/ui/associated-consts/assoc-const-ty-mismatch.stderr diff --git a/src/test/ui/associated-consts/assoc-const.rs b/tests/ui/associated-consts/assoc-const.rs similarity index 100% rename from src/test/ui/associated-consts/assoc-const.rs rename to tests/ui/associated-consts/assoc-const.rs diff --git a/src/test/ui/associated-consts/associated-const-ambiguity-report.rs b/tests/ui/associated-consts/associated-const-ambiguity-report.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-ambiguity-report.rs rename to tests/ui/associated-consts/associated-const-ambiguity-report.rs diff --git a/src/test/ui/associated-consts/associated-const-ambiguity-report.stderr b/tests/ui/associated-consts/associated-const-ambiguity-report.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-ambiguity-report.stderr rename to tests/ui/associated-consts/associated-const-ambiguity-report.stderr diff --git a/src/test/ui/associated-consts/associated-const-array-len.rs b/tests/ui/associated-consts/associated-const-array-len.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-array-len.rs rename to tests/ui/associated-consts/associated-const-array-len.rs diff --git a/src/test/ui/associated-consts/associated-const-array-len.stderr b/tests/ui/associated-consts/associated-const-array-len.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-array-len.stderr rename to tests/ui/associated-consts/associated-const-array-len.stderr diff --git a/src/test/ui/associated-consts/associated-const-const-eval.rs b/tests/ui/associated-consts/associated-const-const-eval.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-const-eval.rs rename to tests/ui/associated-consts/associated-const-const-eval.rs diff --git a/src/test/ui/associated-consts/associated-const-cross-crate-const-eval.rs b/tests/ui/associated-consts/associated-const-cross-crate-const-eval.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-cross-crate-const-eval.rs rename to tests/ui/associated-consts/associated-const-cross-crate-const-eval.rs diff --git a/src/test/ui/associated-consts/associated-const-cross-crate-defaults.rs b/tests/ui/associated-consts/associated-const-cross-crate-defaults.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-cross-crate-defaults.rs rename to tests/ui/associated-consts/associated-const-cross-crate-defaults.rs diff --git a/src/test/ui/associated-consts/associated-const-cross-crate.rs b/tests/ui/associated-consts/associated-const-cross-crate.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-cross-crate.rs rename to tests/ui/associated-consts/associated-const-cross-crate.rs diff --git a/src/test/ui/associated-consts/associated-const-dead-code.rs b/tests/ui/associated-consts/associated-const-dead-code.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-dead-code.rs rename to tests/ui/associated-consts/associated-const-dead-code.rs diff --git a/src/test/ui/associated-consts/associated-const-dead-code.stderr b/tests/ui/associated-consts/associated-const-dead-code.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-dead-code.stderr rename to tests/ui/associated-consts/associated-const-dead-code.stderr diff --git a/src/test/ui/associated-consts/associated-const-generic-obligations.rs b/tests/ui/associated-consts/associated-const-generic-obligations.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-generic-obligations.rs rename to tests/ui/associated-consts/associated-const-generic-obligations.rs diff --git a/src/test/ui/associated-consts/associated-const-generic-obligations.stderr b/tests/ui/associated-consts/associated-const-generic-obligations.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-generic-obligations.stderr rename to tests/ui/associated-consts/associated-const-generic-obligations.stderr diff --git a/src/test/ui/associated-consts/associated-const-impl-wrong-lifetime.rs b/tests/ui/associated-consts/associated-const-impl-wrong-lifetime.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-impl-wrong-lifetime.rs rename to tests/ui/associated-consts/associated-const-impl-wrong-lifetime.rs diff --git a/src/test/ui/associated-consts/associated-const-impl-wrong-lifetime.stderr b/tests/ui/associated-consts/associated-const-impl-wrong-lifetime.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-impl-wrong-lifetime.stderr rename to tests/ui/associated-consts/associated-const-impl-wrong-lifetime.stderr diff --git a/src/test/ui/associated-consts/associated-const-impl-wrong-type.rs b/tests/ui/associated-consts/associated-const-impl-wrong-type.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-impl-wrong-type.rs rename to tests/ui/associated-consts/associated-const-impl-wrong-type.rs diff --git a/src/test/ui/associated-consts/associated-const-impl-wrong-type.stderr b/tests/ui/associated-consts/associated-const-impl-wrong-type.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-impl-wrong-type.stderr rename to tests/ui/associated-consts/associated-const-impl-wrong-type.stderr diff --git a/src/test/ui/associated-consts/associated-const-in-global-const.rs b/tests/ui/associated-consts/associated-const-in-global-const.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-in-global-const.rs rename to tests/ui/associated-consts/associated-const-in-global-const.rs diff --git a/src/test/ui/associated-consts/associated-const-in-trait.rs b/tests/ui/associated-consts/associated-const-in-trait.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-in-trait.rs rename to tests/ui/associated-consts/associated-const-in-trait.rs diff --git a/src/test/ui/associated-consts/associated-const-in-trait.stderr b/tests/ui/associated-consts/associated-const-in-trait.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-in-trait.stderr rename to tests/ui/associated-consts/associated-const-in-trait.stderr diff --git a/src/test/ui/associated-consts/associated-const-inherent-impl.rs b/tests/ui/associated-consts/associated-const-inherent-impl.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-inherent-impl.rs rename to tests/ui/associated-consts/associated-const-inherent-impl.rs diff --git a/src/test/ui/associated-consts/associated-const-marks-live-code.rs b/tests/ui/associated-consts/associated-const-marks-live-code.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-marks-live-code.rs rename to tests/ui/associated-consts/associated-const-marks-live-code.rs diff --git a/src/test/ui/associated-consts/associated-const-match-patterns.rs b/tests/ui/associated-consts/associated-const-match-patterns.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-match-patterns.rs rename to tests/ui/associated-consts/associated-const-match-patterns.rs diff --git a/src/test/ui/associated-consts/associated-const-no-item.rs b/tests/ui/associated-consts/associated-const-no-item.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-no-item.rs rename to tests/ui/associated-consts/associated-const-no-item.rs diff --git a/src/test/ui/associated-consts/associated-const-no-item.stderr b/tests/ui/associated-consts/associated-const-no-item.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-no-item.stderr rename to tests/ui/associated-consts/associated-const-no-item.stderr diff --git a/src/test/ui/associated-consts/associated-const-outer-ty-refs.rs b/tests/ui/associated-consts/associated-const-outer-ty-refs.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-outer-ty-refs.rs rename to tests/ui/associated-consts/associated-const-outer-ty-refs.rs diff --git a/src/test/ui/associated-consts/associated-const-overwrite-default.rs b/tests/ui/associated-consts/associated-const-overwrite-default.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-overwrite-default.rs rename to tests/ui/associated-consts/associated-const-overwrite-default.rs diff --git a/src/test/ui/associated-consts/associated-const-private-impl.rs b/tests/ui/associated-consts/associated-const-private-impl.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-private-impl.rs rename to tests/ui/associated-consts/associated-const-private-impl.rs diff --git a/src/test/ui/associated-consts/associated-const-private-impl.stderr b/tests/ui/associated-consts/associated-const-private-impl.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-private-impl.stderr rename to tests/ui/associated-consts/associated-const-private-impl.stderr diff --git a/src/test/ui/associated-consts/associated-const-public-impl.rs b/tests/ui/associated-consts/associated-const-public-impl.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-public-impl.rs rename to tests/ui/associated-consts/associated-const-public-impl.rs diff --git a/src/test/ui/associated-consts/associated-const-range-match-patterns.rs b/tests/ui/associated-consts/associated-const-range-match-patterns.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-range-match-patterns.rs rename to tests/ui/associated-consts/associated-const-range-match-patterns.rs diff --git a/src/test/ui/associated-consts/associated-const-resolution-order.rs b/tests/ui/associated-consts/associated-const-resolution-order.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-resolution-order.rs rename to tests/ui/associated-consts/associated-const-resolution-order.rs diff --git a/src/test/ui/associated-consts/associated-const-self-type.rs b/tests/ui/associated-consts/associated-const-self-type.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-self-type.rs rename to tests/ui/associated-consts/associated-const-self-type.rs diff --git a/src/test/ui/associated-consts/associated-const-trait-bound.rs b/tests/ui/associated-consts/associated-const-trait-bound.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-trait-bound.rs rename to tests/ui/associated-consts/associated-const-trait-bound.rs diff --git a/src/test/ui/associated-consts/associated-const-type-parameter-arms.rs b/tests/ui/associated-consts/associated-const-type-parameter-arms.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameter-arms.rs rename to tests/ui/associated-consts/associated-const-type-parameter-arms.rs diff --git a/src/test/ui/associated-consts/associated-const-type-parameter-arms.stderr b/tests/ui/associated-consts/associated-const-type-parameter-arms.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameter-arms.stderr rename to tests/ui/associated-consts/associated-const-type-parameter-arms.stderr diff --git a/src/test/ui/associated-consts/associated-const-type-parameter-arrays-2.rs b/tests/ui/associated-consts/associated-const-type-parameter-arrays-2.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameter-arrays-2.rs rename to tests/ui/associated-consts/associated-const-type-parameter-arrays-2.rs diff --git a/src/test/ui/associated-consts/associated-const-type-parameter-arrays-2.stderr b/tests/ui/associated-consts/associated-const-type-parameter-arrays-2.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameter-arrays-2.stderr rename to tests/ui/associated-consts/associated-const-type-parameter-arrays-2.stderr diff --git a/src/test/ui/associated-consts/associated-const-type-parameter-arrays.rs b/tests/ui/associated-consts/associated-const-type-parameter-arrays.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameter-arrays.rs rename to tests/ui/associated-consts/associated-const-type-parameter-arrays.rs diff --git a/src/test/ui/associated-consts/associated-const-type-parameter-arrays.stderr b/tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameter-arrays.stderr rename to tests/ui/associated-consts/associated-const-type-parameter-arrays.stderr diff --git a/src/test/ui/associated-consts/associated-const-type-parameters.rs b/tests/ui/associated-consts/associated-const-type-parameters.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-type-parameters.rs rename to tests/ui/associated-consts/associated-const-type-parameters.rs diff --git a/src/test/ui/associated-consts/associated-const-ufcs-infer-trait.rs b/tests/ui/associated-consts/associated-const-ufcs-infer-trait.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-ufcs-infer-trait.rs rename to tests/ui/associated-consts/associated-const-ufcs-infer-trait.rs diff --git a/src/test/ui/associated-consts/associated-const-use-default.rs b/tests/ui/associated-consts/associated-const-use-default.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-use-default.rs rename to tests/ui/associated-consts/associated-const-use-default.rs diff --git a/src/test/ui/associated-consts/associated-const-use-impl-of-same-trait.rs b/tests/ui/associated-consts/associated-const-use-impl-of-same-trait.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const-use-impl-of-same-trait.rs rename to tests/ui/associated-consts/associated-const-use-impl-of-same-trait.rs diff --git a/src/test/ui/associated-consts/associated-const.rs b/tests/ui/associated-consts/associated-const.rs similarity index 100% rename from src/test/ui/associated-consts/associated-const.rs rename to tests/ui/associated-consts/associated-const.rs diff --git a/src/test/ui/associated-consts/auxiliary/associated-const-cc-lib.rs b/tests/ui/associated-consts/auxiliary/associated-const-cc-lib.rs similarity index 100% rename from src/test/ui/associated-consts/auxiliary/associated-const-cc-lib.rs rename to tests/ui/associated-consts/auxiliary/associated-const-cc-lib.rs diff --git a/src/test/ui/associated-consts/auxiliary/empty-struct.rs b/tests/ui/associated-consts/auxiliary/empty-struct.rs similarity index 100% rename from src/test/ui/associated-consts/auxiliary/empty-struct.rs rename to tests/ui/associated-consts/auxiliary/empty-struct.rs diff --git a/src/test/ui/associated-consts/defaults-cyclic-fail.rs b/tests/ui/associated-consts/defaults-cyclic-fail.rs similarity index 100% rename from src/test/ui/associated-consts/defaults-cyclic-fail.rs rename to tests/ui/associated-consts/defaults-cyclic-fail.rs diff --git a/src/test/ui/associated-consts/defaults-cyclic-fail.stderr b/tests/ui/associated-consts/defaults-cyclic-fail.stderr similarity index 100% rename from src/test/ui/associated-consts/defaults-cyclic-fail.stderr rename to tests/ui/associated-consts/defaults-cyclic-fail.stderr diff --git a/src/test/ui/associated-consts/defaults-cyclic-pass.rs b/tests/ui/associated-consts/defaults-cyclic-pass.rs similarity index 100% rename from src/test/ui/associated-consts/defaults-cyclic-pass.rs rename to tests/ui/associated-consts/defaults-cyclic-pass.rs diff --git a/src/test/ui/associated-consts/defaults-not-assumed-fail.rs b/tests/ui/associated-consts/defaults-not-assumed-fail.rs similarity index 100% rename from src/test/ui/associated-consts/defaults-not-assumed-fail.rs rename to tests/ui/associated-consts/defaults-not-assumed-fail.rs diff --git a/src/test/ui/associated-consts/defaults-not-assumed-fail.stderr b/tests/ui/associated-consts/defaults-not-assumed-fail.stderr similarity index 100% rename from src/test/ui/associated-consts/defaults-not-assumed-fail.stderr rename to tests/ui/associated-consts/defaults-not-assumed-fail.stderr diff --git a/src/test/ui/associated-consts/defaults-not-assumed-pass.rs b/tests/ui/associated-consts/defaults-not-assumed-pass.rs similarity index 100% rename from src/test/ui/associated-consts/defaults-not-assumed-pass.rs rename to tests/ui/associated-consts/defaults-not-assumed-pass.rs diff --git a/src/test/ui/associated-consts/issue-102335-const.rs b/tests/ui/associated-consts/issue-102335-const.rs similarity index 100% rename from src/test/ui/associated-consts/issue-102335-const.rs rename to tests/ui/associated-consts/issue-102335-const.rs diff --git a/src/test/ui/associated-consts/issue-102335-const.stderr b/tests/ui/associated-consts/issue-102335-const.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-102335-const.stderr rename to tests/ui/associated-consts/issue-102335-const.stderr diff --git a/src/test/ui/associated-consts/issue-105330.rs b/tests/ui/associated-consts/issue-105330.rs similarity index 100% rename from src/test/ui/associated-consts/issue-105330.rs rename to tests/ui/associated-consts/issue-105330.rs diff --git a/src/test/ui/associated-consts/issue-105330.stderr b/tests/ui/associated-consts/issue-105330.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-105330.stderr rename to tests/ui/associated-consts/issue-105330.stderr diff --git a/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs b/tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs similarity index 100% rename from src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs rename to tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs diff --git a/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr b/tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr rename to tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr diff --git a/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.rs b/tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.rs similarity index 100% rename from src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.rs rename to tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.rs diff --git a/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.stderr b/tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.stderr rename to tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.stderr diff --git a/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs b/tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs similarity index 100% rename from src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs rename to tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs diff --git a/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.stderr b/tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.stderr rename to tests/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.stderr diff --git a/src/test/ui/associated-consts/issue-47814.rs b/tests/ui/associated-consts/issue-47814.rs similarity index 100% rename from src/test/ui/associated-consts/issue-47814.rs rename to tests/ui/associated-consts/issue-47814.rs diff --git a/src/test/ui/associated-consts/issue-47814.stderr b/tests/ui/associated-consts/issue-47814.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-47814.stderr rename to tests/ui/associated-consts/issue-47814.stderr diff --git a/src/test/ui/associated-consts/issue-58022.rs b/tests/ui/associated-consts/issue-58022.rs similarity index 100% rename from src/test/ui/associated-consts/issue-58022.rs rename to tests/ui/associated-consts/issue-58022.rs diff --git a/src/test/ui/associated-consts/issue-58022.stderr b/tests/ui/associated-consts/issue-58022.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-58022.stderr rename to tests/ui/associated-consts/issue-58022.stderr diff --git a/src/test/ui/associated-consts/issue-63496.rs b/tests/ui/associated-consts/issue-63496.rs similarity index 100% rename from src/test/ui/associated-consts/issue-63496.rs rename to tests/ui/associated-consts/issue-63496.rs diff --git a/src/test/ui/associated-consts/issue-63496.stderr b/tests/ui/associated-consts/issue-63496.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-63496.stderr rename to tests/ui/associated-consts/issue-63496.stderr diff --git a/src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.noopt.stderr b/tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.noopt.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.noopt.stderr rename to tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.noopt.stderr diff --git a/src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt.stderr b/tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt.stderr rename to tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt.stderr diff --git a/src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt_with_overflow_checks.stderr b/tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt_with_overflow_checks.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt_with_overflow_checks.stderr rename to tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.opt_with_overflow_checks.stderr diff --git a/src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.rs b/tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.rs similarity index 100% rename from src/test/ui/associated-consts/issue-69020-assoc-const-arith-overflow.rs rename to tests/ui/associated-consts/issue-69020-assoc-const-arith-overflow.rs diff --git a/src/test/ui/associated-consts/issue-88599-ref-self.rs b/tests/ui/associated-consts/issue-88599-ref-self.rs similarity index 100% rename from src/test/ui/associated-consts/issue-88599-ref-self.rs rename to tests/ui/associated-consts/issue-88599-ref-self.rs diff --git a/src/test/ui/associated-consts/issue-93775.rs b/tests/ui/associated-consts/issue-93775.rs similarity index 100% rename from src/test/ui/associated-consts/issue-93775.rs rename to tests/ui/associated-consts/issue-93775.rs diff --git a/src/test/ui/associated-consts/issue-93835.rs b/tests/ui/associated-consts/issue-93835.rs similarity index 100% rename from src/test/ui/associated-consts/issue-93835.rs rename to tests/ui/associated-consts/issue-93835.rs diff --git a/src/test/ui/associated-consts/issue-93835.stderr b/tests/ui/associated-consts/issue-93835.stderr similarity index 100% rename from src/test/ui/associated-consts/issue-93835.stderr rename to tests/ui/associated-consts/issue-93835.stderr diff --git a/src/test/ui/associated-consts/mismatched_impl_ty_1.rs b/tests/ui/associated-consts/mismatched_impl_ty_1.rs similarity index 100% rename from src/test/ui/associated-consts/mismatched_impl_ty_1.rs rename to tests/ui/associated-consts/mismatched_impl_ty_1.rs diff --git a/src/test/ui/associated-consts/mismatched_impl_ty_2.rs b/tests/ui/associated-consts/mismatched_impl_ty_2.rs similarity index 100% rename from src/test/ui/associated-consts/mismatched_impl_ty_2.rs rename to tests/ui/associated-consts/mismatched_impl_ty_2.rs diff --git a/src/test/ui/associated-consts/mismatched_impl_ty_3.rs b/tests/ui/associated-consts/mismatched_impl_ty_3.rs similarity index 100% rename from src/test/ui/associated-consts/mismatched_impl_ty_3.rs rename to tests/ui/associated-consts/mismatched_impl_ty_3.rs diff --git a/src/test/ui/associated-consts/shadowed-const.rs b/tests/ui/associated-consts/shadowed-const.rs similarity index 100% rename from src/test/ui/associated-consts/shadowed-const.rs rename to tests/ui/associated-consts/shadowed-const.rs diff --git a/src/test/ui/associated-consts/shadowed-const.stderr b/tests/ui/associated-consts/shadowed-const.stderr similarity index 100% rename from src/test/ui/associated-consts/shadowed-const.stderr rename to tests/ui/associated-consts/shadowed-const.stderr diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs b/tests/ui/associated-inherent-types/assoc-inherent-no-body.rs similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-no-body.rs rename to tests/ui/associated-inherent-types/assoc-inherent-no-body.rs diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-no-body.stderr b/tests/ui/associated-inherent-types/assoc-inherent-no-body.stderr similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-no-body.stderr rename to tests/ui/associated-inherent-types/assoc-inherent-no-body.stderr diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-private.rs b/tests/ui/associated-inherent-types/assoc-inherent-private.rs similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-private.rs rename to tests/ui/associated-inherent-types/assoc-inherent-private.rs diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-private.stderr b/tests/ui/associated-inherent-types/assoc-inherent-private.stderr similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-private.stderr rename to tests/ui/associated-inherent-types/assoc-inherent-private.stderr diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-unstable.rs b/tests/ui/associated-inherent-types/assoc-inherent-unstable.rs similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-unstable.rs rename to tests/ui/associated-inherent-types/assoc-inherent-unstable.rs diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-unstable.stderr b/tests/ui/associated-inherent-types/assoc-inherent-unstable.stderr similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-unstable.stderr rename to tests/ui/associated-inherent-types/assoc-inherent-unstable.stderr diff --git a/src/test/ui/associated-inherent-types/assoc-inherent-use.rs b/tests/ui/associated-inherent-types/assoc-inherent-use.rs similarity index 100% rename from src/test/ui/associated-inherent-types/assoc-inherent-use.rs rename to tests/ui/associated-inherent-types/assoc-inherent-use.rs diff --git a/src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs b/tests/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs similarity index 100% rename from src/test/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs rename to tests/ui/associated-inherent-types/auxiliary/assoc-inherent-unstable.rs diff --git a/src/test/ui/associated-inherent-types/issue-104260.rs b/tests/ui/associated-inherent-types/issue-104260.rs similarity index 100% rename from src/test/ui/associated-inherent-types/issue-104260.rs rename to tests/ui/associated-inherent-types/issue-104260.rs diff --git a/src/test/ui/associated-inherent-types/normalize-projection-0.rs b/tests/ui/associated-inherent-types/normalize-projection-0.rs similarity index 100% rename from src/test/ui/associated-inherent-types/normalize-projection-0.rs rename to tests/ui/associated-inherent-types/normalize-projection-0.rs diff --git a/src/test/ui/associated-inherent-types/normalize-projection-1.rs b/tests/ui/associated-inherent-types/normalize-projection-1.rs similarity index 100% rename from src/test/ui/associated-inherent-types/normalize-projection-1.rs rename to tests/ui/associated-inherent-types/normalize-projection-1.rs diff --git a/src/test/ui/associated-inherent-types/struct-generics.rs b/tests/ui/associated-inherent-types/struct-generics.rs similarity index 100% rename from src/test/ui/associated-inherent-types/struct-generics.rs rename to tests/ui/associated-inherent-types/struct-generics.rs diff --git a/src/test/ui/associated-inherent-types/style.rs b/tests/ui/associated-inherent-types/style.rs similarity index 100% rename from src/test/ui/associated-inherent-types/style.rs rename to tests/ui/associated-inherent-types/style.rs diff --git a/src/test/ui/associated-inherent-types/style.stderr b/tests/ui/associated-inherent-types/style.stderr similarity index 100% rename from src/test/ui/associated-inherent-types/style.stderr rename to tests/ui/associated-inherent-types/style.stderr diff --git a/src/test/ui/associated-item/associated-item-duplicate-bounds.rs b/tests/ui/associated-item/associated-item-duplicate-bounds.rs similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-bounds.rs rename to tests/ui/associated-item/associated-item-duplicate-bounds.rs diff --git a/src/test/ui/associated-item/associated-item-duplicate-bounds.stderr b/tests/ui/associated-item/associated-item-duplicate-bounds.stderr similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-bounds.stderr rename to tests/ui/associated-item/associated-item-duplicate-bounds.stderr diff --git a/src/test/ui/associated-item/associated-item-duplicate-names-2.rs b/tests/ui/associated-item/associated-item-duplicate-names-2.rs similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-names-2.rs rename to tests/ui/associated-item/associated-item-duplicate-names-2.rs diff --git a/src/test/ui/associated-item/associated-item-duplicate-names-2.stderr b/tests/ui/associated-item/associated-item-duplicate-names-2.stderr similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-names-2.stderr rename to tests/ui/associated-item/associated-item-duplicate-names-2.stderr diff --git a/src/test/ui/associated-item/associated-item-duplicate-names-3.rs b/tests/ui/associated-item/associated-item-duplicate-names-3.rs similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-names-3.rs rename to tests/ui/associated-item/associated-item-duplicate-names-3.rs diff --git a/src/test/ui/associated-item/associated-item-duplicate-names-3.stderr b/tests/ui/associated-item/associated-item-duplicate-names-3.stderr similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-names-3.stderr rename to tests/ui/associated-item/associated-item-duplicate-names-3.stderr diff --git a/src/test/ui/associated-item/associated-item-duplicate-names.rs b/tests/ui/associated-item/associated-item-duplicate-names.rs similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-names.rs rename to tests/ui/associated-item/associated-item-duplicate-names.rs diff --git a/src/test/ui/associated-item/associated-item-duplicate-names.stderr b/tests/ui/associated-item/associated-item-duplicate-names.stderr similarity index 100% rename from src/test/ui/associated-item/associated-item-duplicate-names.stderr rename to tests/ui/associated-item/associated-item-duplicate-names.stderr diff --git a/src/test/ui/associated-item/associated-item-enum.rs b/tests/ui/associated-item/associated-item-enum.rs similarity index 100% rename from src/test/ui/associated-item/associated-item-enum.rs rename to tests/ui/associated-item/associated-item-enum.rs diff --git a/src/test/ui/associated-item/associated-item-enum.stderr b/tests/ui/associated-item/associated-item-enum.stderr similarity index 100% rename from src/test/ui/associated-item/associated-item-enum.stderr rename to tests/ui/associated-item/associated-item-enum.stderr diff --git a/src/test/ui/associated-item/associated-item-two-bounds.rs b/tests/ui/associated-item/associated-item-two-bounds.rs similarity index 100% rename from src/test/ui/associated-item/associated-item-two-bounds.rs rename to tests/ui/associated-item/associated-item-two-bounds.rs diff --git a/src/test/ui/associated-item/impl-duplicate-methods.rs b/tests/ui/associated-item/impl-duplicate-methods.rs similarity index 100% rename from src/test/ui/associated-item/impl-duplicate-methods.rs rename to tests/ui/associated-item/impl-duplicate-methods.rs diff --git a/src/test/ui/associated-item/impl-duplicate-methods.stderr b/tests/ui/associated-item/impl-duplicate-methods.stderr similarity index 100% rename from src/test/ui/associated-item/impl-duplicate-methods.stderr rename to tests/ui/associated-item/impl-duplicate-methods.stderr diff --git a/src/test/ui/associated-item/issue-105449.rs b/tests/ui/associated-item/issue-105449.rs similarity index 100% rename from src/test/ui/associated-item/issue-105449.rs rename to tests/ui/associated-item/issue-105449.rs diff --git a/src/test/ui/associated-item/issue-48027.rs b/tests/ui/associated-item/issue-48027.rs similarity index 100% rename from src/test/ui/associated-item/issue-48027.rs rename to tests/ui/associated-item/issue-48027.rs diff --git a/src/test/ui/associated-item/issue-48027.stderr b/tests/ui/associated-item/issue-48027.stderr similarity index 100% rename from src/test/ui/associated-item/issue-48027.stderr rename to tests/ui/associated-item/issue-48027.stderr diff --git a/src/test/ui/associated-item/issue-87638.fixed b/tests/ui/associated-item/issue-87638.fixed similarity index 100% rename from src/test/ui/associated-item/issue-87638.fixed rename to tests/ui/associated-item/issue-87638.fixed diff --git a/src/test/ui/associated-item/issue-87638.rs b/tests/ui/associated-item/issue-87638.rs similarity index 100% rename from src/test/ui/associated-item/issue-87638.rs rename to tests/ui/associated-item/issue-87638.rs diff --git a/src/test/ui/associated-item/issue-87638.stderr b/tests/ui/associated-item/issue-87638.stderr similarity index 100% rename from src/test/ui/associated-item/issue-87638.stderr rename to tests/ui/associated-item/issue-87638.stderr diff --git a/src/test/ui/associated-path-shl.rs b/tests/ui/associated-path-shl.rs similarity index 100% rename from src/test/ui/associated-path-shl.rs rename to tests/ui/associated-path-shl.rs diff --git a/src/test/ui/associated-path-shl.stderr b/tests/ui/associated-path-shl.stderr similarity index 100% rename from src/test/ui/associated-path-shl.stderr rename to tests/ui/associated-path-shl.stderr diff --git a/src/test/ui/associated-type-bounds/ambiguous-associated-type.rs b/tests/ui/associated-type-bounds/ambiguous-associated-type.rs similarity index 100% rename from src/test/ui/associated-type-bounds/ambiguous-associated-type.rs rename to tests/ui/associated-type-bounds/ambiguous-associated-type.rs diff --git a/src/test/ui/associated-type-bounds/ambiguous-associated-type2.rs b/tests/ui/associated-type-bounds/ambiguous-associated-type2.rs similarity index 100% rename from src/test/ui/associated-type-bounds/ambiguous-associated-type2.rs rename to tests/ui/associated-type-bounds/ambiguous-associated-type2.rs diff --git a/src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr b/tests/ui/associated-type-bounds/ambiguous-associated-type2.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/ambiguous-associated-type2.stderr rename to tests/ui/associated-type-bounds/ambiguous-associated-type2.stderr diff --git a/src/test/ui/associated-type-bounds/assoc-type-bound-through-where-clause.rs b/tests/ui/associated-type-bounds/assoc-type-bound-through-where-clause.rs similarity index 100% rename from src/test/ui/associated-type-bounds/assoc-type-bound-through-where-clause.rs rename to tests/ui/associated-type-bounds/assoc-type-bound-through-where-clause.rs diff --git a/src/test/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.rs b/tests/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.rs similarity index 100% rename from src/test/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.rs rename to tests/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.rs diff --git a/src/test/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.stderr b/tests/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.stderr rename to tests/ui/associated-type-bounds/assoc-type-eq-with-dyn-atb-fail.stderr diff --git a/src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs b/tests/ui/associated-type-bounds/associated-item-through-where-clause.rs similarity index 100% rename from src/test/ui/associated-type-bounds/associated-item-through-where-clause.rs rename to tests/ui/associated-type-bounds/associated-item-through-where-clause.rs diff --git a/src/test/ui/associated-type-bounds/auxiliary/fn-aux.rs b/tests/ui/associated-type-bounds/auxiliary/fn-aux.rs similarity index 100% rename from src/test/ui/associated-type-bounds/auxiliary/fn-aux.rs rename to tests/ui/associated-type-bounds/auxiliary/fn-aux.rs diff --git a/src/test/ui/associated-type-bounds/auxiliary/fn-dyn-aux.rs b/tests/ui/associated-type-bounds/auxiliary/fn-dyn-aux.rs similarity index 100% rename from src/test/ui/associated-type-bounds/auxiliary/fn-dyn-aux.rs rename to tests/ui/associated-type-bounds/auxiliary/fn-dyn-aux.rs diff --git a/src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.rs b/tests/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.rs similarity index 100% rename from src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.rs rename to tests/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.rs diff --git a/src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr b/tests/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr rename to tests/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr diff --git a/src/test/ui/associated-type-bounds/binder-on-bound.rs b/tests/ui/associated-type-bounds/binder-on-bound.rs similarity index 100% rename from src/test/ui/associated-type-bounds/binder-on-bound.rs rename to tests/ui/associated-type-bounds/binder-on-bound.rs diff --git a/src/test/ui/associated-type-bounds/binder-on-bound.stderr b/tests/ui/associated-type-bounds/binder-on-bound.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/binder-on-bound.stderr rename to tests/ui/associated-type-bounds/binder-on-bound.stderr diff --git a/src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs b/tests/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs similarity index 100% rename from src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs rename to tests/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs diff --git a/src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.stderr b/tests/ui/associated-type-bounds/bounds-on-assoc-in-trait.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.stderr rename to tests/ui/associated-type-bounds/bounds-on-assoc-in-trait.stderr diff --git a/src/test/ui/associated-type-bounds/const-projection-err.gce.stderr b/tests/ui/associated-type-bounds/const-projection-err.gce.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/const-projection-err.gce.stderr rename to tests/ui/associated-type-bounds/const-projection-err.gce.stderr diff --git a/src/test/ui/associated-type-bounds/const-projection-err.rs b/tests/ui/associated-type-bounds/const-projection-err.rs similarity index 100% rename from src/test/ui/associated-type-bounds/const-projection-err.rs rename to tests/ui/associated-type-bounds/const-projection-err.rs diff --git a/src/test/ui/associated-type-bounds/const-projection-err.stock.stderr b/tests/ui/associated-type-bounds/const-projection-err.stock.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/const-projection-err.stock.stderr rename to tests/ui/associated-type-bounds/const-projection-err.stock.stderr diff --git a/src/test/ui/associated-type-bounds/duplicate.rs b/tests/ui/associated-type-bounds/duplicate.rs similarity index 100% rename from src/test/ui/associated-type-bounds/duplicate.rs rename to tests/ui/associated-type-bounds/duplicate.rs diff --git a/src/test/ui/associated-type-bounds/duplicate.stderr b/tests/ui/associated-type-bounds/duplicate.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/duplicate.stderr rename to tests/ui/associated-type-bounds/duplicate.stderr diff --git a/src/test/ui/associated-type-bounds/dyn-impl-trait-type.rs b/tests/ui/associated-type-bounds/dyn-impl-trait-type.rs similarity index 100% rename from src/test/ui/associated-type-bounds/dyn-impl-trait-type.rs rename to tests/ui/associated-type-bounds/dyn-impl-trait-type.rs diff --git a/src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs b/tests/ui/associated-type-bounds/dyn-rpit-and-let.rs similarity index 100% rename from src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs rename to tests/ui/associated-type-bounds/dyn-rpit-and-let.rs diff --git a/src/test/ui/associated-type-bounds/elision.rs b/tests/ui/associated-type-bounds/elision.rs similarity index 100% rename from src/test/ui/associated-type-bounds/elision.rs rename to tests/ui/associated-type-bounds/elision.rs diff --git a/src/test/ui/associated-type-bounds/elision.stderr b/tests/ui/associated-type-bounds/elision.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/elision.stderr rename to tests/ui/associated-type-bounds/elision.stderr diff --git a/src/test/ui/associated-type-bounds/entails-sized-object-safety.rs b/tests/ui/associated-type-bounds/entails-sized-object-safety.rs similarity index 100% rename from src/test/ui/associated-type-bounds/entails-sized-object-safety.rs rename to tests/ui/associated-type-bounds/entails-sized-object-safety.rs diff --git a/src/test/ui/associated-type-bounds/enum-bounds.rs b/tests/ui/associated-type-bounds/enum-bounds.rs similarity index 100% rename from src/test/ui/associated-type-bounds/enum-bounds.rs rename to tests/ui/associated-type-bounds/enum-bounds.rs diff --git a/src/test/ui/associated-type-bounds/fn-apit.rs b/tests/ui/associated-type-bounds/fn-apit.rs similarity index 100% rename from src/test/ui/associated-type-bounds/fn-apit.rs rename to tests/ui/associated-type-bounds/fn-apit.rs diff --git a/src/test/ui/associated-type-bounds/fn-aux.rs b/tests/ui/associated-type-bounds/fn-aux.rs similarity index 100% rename from src/test/ui/associated-type-bounds/fn-aux.rs rename to tests/ui/associated-type-bounds/fn-aux.rs diff --git a/src/test/ui/associated-type-bounds/fn-dyn-apit.rs b/tests/ui/associated-type-bounds/fn-dyn-apit.rs similarity index 100% rename from src/test/ui/associated-type-bounds/fn-dyn-apit.rs rename to tests/ui/associated-type-bounds/fn-dyn-apit.rs diff --git a/src/test/ui/associated-type-bounds/fn-inline.rs b/tests/ui/associated-type-bounds/fn-inline.rs similarity index 100% rename from src/test/ui/associated-type-bounds/fn-inline.rs rename to tests/ui/associated-type-bounds/fn-inline.rs diff --git a/src/test/ui/associated-type-bounds/fn-where.rs b/tests/ui/associated-type-bounds/fn-where.rs similarity index 100% rename from src/test/ui/associated-type-bounds/fn-where.rs rename to tests/ui/associated-type-bounds/fn-where.rs diff --git a/src/test/ui/associated-type-bounds/fn-wrap-apit.rs b/tests/ui/associated-type-bounds/fn-wrap-apit.rs similarity index 100% rename from src/test/ui/associated-type-bounds/fn-wrap-apit.rs rename to tests/ui/associated-type-bounds/fn-wrap-apit.rs diff --git a/src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs b/tests/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs similarity index 100% rename from src/test/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs rename to tests/ui/associated-type-bounds/handle-predicates-that-can-define-assoc-type.rs diff --git a/src/test/ui/associated-type-bounds/hrtb.rs b/tests/ui/associated-type-bounds/hrtb.rs similarity index 100% rename from src/test/ui/associated-type-bounds/hrtb.rs rename to tests/ui/associated-type-bounds/hrtb.rs diff --git a/src/test/ui/associated-type-bounds/implied-region-constraints.rs b/tests/ui/associated-type-bounds/implied-region-constraints.rs similarity index 100% rename from src/test/ui/associated-type-bounds/implied-region-constraints.rs rename to tests/ui/associated-type-bounds/implied-region-constraints.rs diff --git a/src/test/ui/associated-type-bounds/implied-region-constraints.stderr b/tests/ui/associated-type-bounds/implied-region-constraints.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/implied-region-constraints.stderr rename to tests/ui/associated-type-bounds/implied-region-constraints.stderr diff --git a/src/test/ui/associated-type-bounds/inside-adt.rs b/tests/ui/associated-type-bounds/inside-adt.rs similarity index 100% rename from src/test/ui/associated-type-bounds/inside-adt.rs rename to tests/ui/associated-type-bounds/inside-adt.rs diff --git a/src/test/ui/associated-type-bounds/inside-adt.stderr b/tests/ui/associated-type-bounds/inside-adt.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/inside-adt.stderr rename to tests/ui/associated-type-bounds/inside-adt.stderr diff --git a/src/test/ui/associated-type-bounds/issue-102335-ty.rs b/tests/ui/associated-type-bounds/issue-102335-ty.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-102335-ty.rs rename to tests/ui/associated-type-bounds/issue-102335-ty.rs diff --git a/src/test/ui/associated-type-bounds/issue-102335-ty.stderr b/tests/ui/associated-type-bounds/issue-102335-ty.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/issue-102335-ty.stderr rename to tests/ui/associated-type-bounds/issue-102335-ty.stderr diff --git a/src/test/ui/associated-type-bounds/issue-61752.rs b/tests/ui/associated-type-bounds/issue-61752.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-61752.rs rename to tests/ui/associated-type-bounds/issue-61752.rs diff --git a/src/test/ui/associated-type-bounds/issue-70292.rs b/tests/ui/associated-type-bounds/issue-70292.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-70292.rs rename to tests/ui/associated-type-bounds/issue-70292.rs diff --git a/src/test/ui/associated-type-bounds/issue-71443-1.rs b/tests/ui/associated-type-bounds/issue-71443-1.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-71443-1.rs rename to tests/ui/associated-type-bounds/issue-71443-1.rs diff --git a/src/test/ui/associated-type-bounds/issue-71443-1.stderr b/tests/ui/associated-type-bounds/issue-71443-1.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/issue-71443-1.stderr rename to tests/ui/associated-type-bounds/issue-71443-1.stderr diff --git a/src/test/ui/associated-type-bounds/issue-71443-2.rs b/tests/ui/associated-type-bounds/issue-71443-2.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-71443-2.rs rename to tests/ui/associated-type-bounds/issue-71443-2.rs diff --git a/src/test/ui/associated-type-bounds/issue-73818.rs b/tests/ui/associated-type-bounds/issue-73818.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-73818.rs rename to tests/ui/associated-type-bounds/issue-73818.rs diff --git a/src/test/ui/associated-type-bounds/issue-79949.rs b/tests/ui/associated-type-bounds/issue-79949.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-79949.rs rename to tests/ui/associated-type-bounds/issue-79949.rs diff --git a/src/test/ui/associated-type-bounds/issue-81193.rs b/tests/ui/associated-type-bounds/issue-81193.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-81193.rs rename to tests/ui/associated-type-bounds/issue-81193.rs diff --git a/src/test/ui/associated-type-bounds/issue-83017.rs b/tests/ui/associated-type-bounds/issue-83017.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-83017.rs rename to tests/ui/associated-type-bounds/issue-83017.rs diff --git a/src/test/ui/associated-type-bounds/issue-99828.rs b/tests/ui/associated-type-bounds/issue-99828.rs similarity index 100% rename from src/test/ui/associated-type-bounds/issue-99828.rs rename to tests/ui/associated-type-bounds/issue-99828.rs diff --git a/src/test/ui/associated-type-bounds/issue-99828.stderr b/tests/ui/associated-type-bounds/issue-99828.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/issue-99828.stderr rename to tests/ui/associated-type-bounds/issue-99828.stderr diff --git a/src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs b/tests/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs similarity index 100% rename from src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs rename to tests/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.rs diff --git a/src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.stderr b/tests/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.stderr rename to tests/ui/associated-type-bounds/missing-trait-bound-for-assoc-fails.stderr diff --git a/src/test/ui/associated-type-bounds/order-dependent-bounds-issue-54121.rs b/tests/ui/associated-type-bounds/order-dependent-bounds-issue-54121.rs similarity index 100% rename from src/test/ui/associated-type-bounds/order-dependent-bounds-issue-54121.rs rename to tests/ui/associated-type-bounds/order-dependent-bounds-issue-54121.rs diff --git a/src/test/ui/associated-type-bounds/rpit.rs b/tests/ui/associated-type-bounds/rpit.rs similarity index 100% rename from src/test/ui/associated-type-bounds/rpit.rs rename to tests/ui/associated-type-bounds/rpit.rs diff --git a/src/test/ui/associated-type-bounds/struct-bounds.rs b/tests/ui/associated-type-bounds/struct-bounds.rs similarity index 100% rename from src/test/ui/associated-type-bounds/struct-bounds.rs rename to tests/ui/associated-type-bounds/struct-bounds.rs diff --git a/src/test/ui/associated-type-bounds/supertrait-referencing-self.rs b/tests/ui/associated-type-bounds/supertrait-referencing-self.rs similarity index 100% rename from src/test/ui/associated-type-bounds/supertrait-referencing-self.rs rename to tests/ui/associated-type-bounds/supertrait-referencing-self.rs diff --git a/src/test/ui/associated-type-bounds/supertrait-referencing.rs b/tests/ui/associated-type-bounds/supertrait-referencing.rs similarity index 100% rename from src/test/ui/associated-type-bounds/supertrait-referencing.rs rename to tests/ui/associated-type-bounds/supertrait-referencing.rs diff --git a/src/test/ui/associated-type-bounds/supertrait-where-referencing-self.rs b/tests/ui/associated-type-bounds/supertrait-where-referencing-self.rs similarity index 100% rename from src/test/ui/associated-type-bounds/supertrait-where-referencing-self.rs rename to tests/ui/associated-type-bounds/supertrait-where-referencing-self.rs diff --git a/src/test/ui/associated-type-bounds/trait-alias-impl-trait.rs b/tests/ui/associated-type-bounds/trait-alias-impl-trait.rs similarity index 100% rename from src/test/ui/associated-type-bounds/trait-alias-impl-trait.rs rename to tests/ui/associated-type-bounds/trait-alias-impl-trait.rs diff --git a/src/test/ui/associated-type-bounds/trait-params.rs b/tests/ui/associated-type-bounds/trait-params.rs similarity index 100% rename from src/test/ui/associated-type-bounds/trait-params.rs rename to tests/ui/associated-type-bounds/trait-params.rs diff --git a/src/test/ui/associated-type-bounds/traits-assoc-anonymized.rs b/tests/ui/associated-type-bounds/traits-assoc-anonymized.rs similarity index 100% rename from src/test/ui/associated-type-bounds/traits-assoc-anonymized.rs rename to tests/ui/associated-type-bounds/traits-assoc-anonymized.rs diff --git a/src/test/ui/associated-type-bounds/traits-assoc-type-macros.rs b/tests/ui/associated-type-bounds/traits-assoc-type-macros.rs similarity index 100% rename from src/test/ui/associated-type-bounds/traits-assoc-type-macros.rs rename to tests/ui/associated-type-bounds/traits-assoc-type-macros.rs diff --git a/src/test/ui/associated-type-bounds/type-alias.rs b/tests/ui/associated-type-bounds/type-alias.rs similarity index 100% rename from src/test/ui/associated-type-bounds/type-alias.rs rename to tests/ui/associated-type-bounds/type-alias.rs diff --git a/src/test/ui/associated-type-bounds/type-alias.stderr b/tests/ui/associated-type-bounds/type-alias.stderr similarity index 100% rename from src/test/ui/associated-type-bounds/type-alias.stderr rename to tests/ui/associated-type-bounds/type-alias.stderr diff --git a/src/test/ui/associated-type-bounds/union-bounds.rs b/tests/ui/associated-type-bounds/union-bounds.rs similarity index 100% rename from src/test/ui/associated-type-bounds/union-bounds.rs rename to tests/ui/associated-type-bounds/union-bounds.rs diff --git a/src/test/ui/associated-types/associate-type-bound-normalization.rs b/tests/ui/associated-types/associate-type-bound-normalization.rs similarity index 100% rename from src/test/ui/associated-types/associate-type-bound-normalization.rs rename to tests/ui/associated-types/associate-type-bound-normalization.rs diff --git a/src/test/ui/associated-types/associated-item-long-paths.rs b/tests/ui/associated-types/associated-item-long-paths.rs similarity index 100% rename from src/test/ui/associated-types/associated-item-long-paths.rs rename to tests/ui/associated-types/associated-item-long-paths.rs diff --git a/src/test/ui/associated-types/associated-type-destructuring-assignment.rs b/tests/ui/associated-types/associated-type-destructuring-assignment.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-destructuring-assignment.rs rename to tests/ui/associated-types/associated-type-destructuring-assignment.rs diff --git a/src/test/ui/associated-types/associated-type-macro.rs b/tests/ui/associated-types/associated-type-macro.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-macro.rs rename to tests/ui/associated-types/associated-type-macro.rs diff --git a/src/test/ui/associated-types/associated-type-macro.stderr b/tests/ui/associated-types/associated-type-macro.stderr similarity index 100% rename from src/test/ui/associated-types/associated-type-macro.stderr rename to tests/ui/associated-types/associated-type-macro.stderr diff --git a/src/test/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.rs b/tests/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.rs rename to tests/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.rs diff --git a/src/test/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.stderr b/tests/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.stderr similarity index 100% rename from src/test/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.stderr rename to tests/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.stderr diff --git a/src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.rs b/tests/ui/associated-types/associated-type-projection-from-multiple-supertraits.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.rs rename to tests/ui/associated-types/associated-type-projection-from-multiple-supertraits.rs diff --git a/src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr b/tests/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr similarity index 100% rename from src/test/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr rename to tests/ui/associated-types/associated-type-projection-from-multiple-supertraits.stderr diff --git a/src/test/ui/associated-types/associated-type-projection-from-supertrait.rs b/tests/ui/associated-types/associated-type-projection-from-supertrait.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-projection-from-supertrait.rs rename to tests/ui/associated-types/associated-type-projection-from-supertrait.rs diff --git a/src/test/ui/associated-types/associated-type-projection-from-supertrait.stderr b/tests/ui/associated-types/associated-type-projection-from-supertrait.stderr similarity index 100% rename from src/test/ui/associated-types/associated-type-projection-from-supertrait.stderr rename to tests/ui/associated-types/associated-type-projection-from-supertrait.stderr diff --git a/src/test/ui/associated-types/associated-type-struct-construction.rs b/tests/ui/associated-types/associated-type-struct-construction.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-struct-construction.rs rename to tests/ui/associated-types/associated-type-struct-construction.rs diff --git a/src/test/ui/associated-types/associated-type-tuple-struct-construction.rs b/tests/ui/associated-types/associated-type-tuple-struct-construction.rs similarity index 100% rename from src/test/ui/associated-types/associated-type-tuple-struct-construction.rs rename to tests/ui/associated-types/associated-type-tuple-struct-construction.rs diff --git a/src/test/ui/associated-types/associated-type-tuple-struct-construction.stderr b/tests/ui/associated-types/associated-type-tuple-struct-construction.stderr similarity index 100% rename from src/test/ui/associated-types/associated-type-tuple-struct-construction.stderr rename to tests/ui/associated-types/associated-type-tuple-struct-construction.stderr diff --git a/src/test/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.rs b/tests/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.rs rename to tests/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.rs diff --git a/src/test/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.stderr b/tests/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.stderr rename to tests/ui/associated-types/associated-types-ICE-when-projecting-out-of-err.stderr diff --git a/src/test/ui/associated-types/associated-types-basic.rs b/tests/ui/associated-types/associated-types-basic.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-basic.rs rename to tests/ui/associated-types/associated-types-basic.rs diff --git a/src/test/ui/associated-types/associated-types-binding-in-trait.rs b/tests/ui/associated-types/associated-types-binding-in-trait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-binding-in-trait.rs rename to tests/ui/associated-types/associated-types-binding-in-trait.rs diff --git a/src/test/ui/associated-types/associated-types-binding-in-where-clause.rs b/tests/ui/associated-types/associated-types-binding-in-where-clause.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-binding-in-where-clause.rs rename to tests/ui/associated-types/associated-types-binding-in-where-clause.rs diff --git a/src/test/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.rs b/tests/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.rs rename to tests/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.rs diff --git a/src/test/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.stderr b/tests/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.stderr rename to tests/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.stderr diff --git a/src/test/ui/associated-types/associated-types-bound-ambiguity.rs b/tests/ui/associated-types/associated-types-bound-ambiguity.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-bound-ambiguity.rs rename to tests/ui/associated-types/associated-types-bound-ambiguity.rs diff --git a/src/test/ui/associated-types/associated-types-bound-failure.fixed b/tests/ui/associated-types/associated-types-bound-failure.fixed similarity index 100% rename from src/test/ui/associated-types/associated-types-bound-failure.fixed rename to tests/ui/associated-types/associated-types-bound-failure.fixed diff --git a/src/test/ui/associated-types/associated-types-bound-failure.rs b/tests/ui/associated-types/associated-types-bound-failure.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-bound-failure.rs rename to tests/ui/associated-types/associated-types-bound-failure.rs diff --git a/src/test/ui/associated-types/associated-types-bound-failure.stderr b/tests/ui/associated-types/associated-types-bound-failure.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-bound-failure.stderr rename to tests/ui/associated-types/associated-types-bound-failure.stderr diff --git a/src/test/ui/associated-types/associated-types-bound.rs b/tests/ui/associated-types/associated-types-bound.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-bound.rs rename to tests/ui/associated-types/associated-types-bound.rs diff --git a/src/test/ui/associated-types/associated-types-cc.rs b/tests/ui/associated-types/associated-types-cc.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-cc.rs rename to tests/ui/associated-types/associated-types-cc.rs diff --git a/src/test/ui/associated-types/associated-types-coherence-failure.rs b/tests/ui/associated-types/associated-types-coherence-failure.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-coherence-failure.rs rename to tests/ui/associated-types/associated-types-coherence-failure.rs diff --git a/src/test/ui/associated-types/associated-types-coherence-failure.stderr b/tests/ui/associated-types/associated-types-coherence-failure.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-coherence-failure.stderr rename to tests/ui/associated-types/associated-types-coherence-failure.stderr diff --git a/src/test/ui/associated-types/associated-types-conditional-dispatch.rs b/tests/ui/associated-types/associated-types-conditional-dispatch.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-conditional-dispatch.rs rename to tests/ui/associated-types/associated-types-conditional-dispatch.rs diff --git a/src/test/ui/associated-types/associated-types-constant-type.rs b/tests/ui/associated-types/associated-types-constant-type.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-constant-type.rs rename to tests/ui/associated-types/associated-types-constant-type.rs diff --git a/src/test/ui/associated-types/associated-types-doubleendediterator-object.rs b/tests/ui/associated-types/associated-types-doubleendediterator-object.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-doubleendediterator-object.rs rename to tests/ui/associated-types/associated-types-doubleendediterator-object.rs diff --git a/src/test/ui/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs b/tests/ui/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs rename to tests/ui/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs diff --git a/src/test/ui/associated-types/associated-types-duplicate-binding-in-env.rs b/tests/ui/associated-types/associated-types-duplicate-binding-in-env.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-duplicate-binding-in-env.rs rename to tests/ui/associated-types/associated-types-duplicate-binding-in-env.rs diff --git a/src/test/ui/associated-types/associated-types-enum-field-named.rs b/tests/ui/associated-types/associated-types-enum-field-named.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-enum-field-named.rs rename to tests/ui/associated-types/associated-types-enum-field-named.rs diff --git a/src/test/ui/associated-types/associated-types-enum-field-numbered.rs b/tests/ui/associated-types/associated-types-enum-field-numbered.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-enum-field-numbered.rs rename to tests/ui/associated-types/associated-types-enum-field-numbered.rs diff --git a/src/test/ui/associated-types/associated-types-eq-1.rs b/tests/ui/associated-types/associated-types-eq-1.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-1.rs rename to tests/ui/associated-types/associated-types-eq-1.rs diff --git a/src/test/ui/associated-types/associated-types-eq-1.stderr b/tests/ui/associated-types/associated-types-eq-1.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-1.stderr rename to tests/ui/associated-types/associated-types-eq-1.stderr diff --git a/src/test/ui/associated-types/associated-types-eq-2.rs b/tests/ui/associated-types/associated-types-eq-2.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-2.rs rename to tests/ui/associated-types/associated-types-eq-2.rs diff --git a/src/test/ui/associated-types/associated-types-eq-2.stderr b/tests/ui/associated-types/associated-types-eq-2.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-2.stderr rename to tests/ui/associated-types/associated-types-eq-2.stderr diff --git a/src/test/ui/associated-types/associated-types-eq-3.rs b/tests/ui/associated-types/associated-types-eq-3.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-3.rs rename to tests/ui/associated-types/associated-types-eq-3.rs diff --git a/src/test/ui/associated-types/associated-types-eq-3.stderr b/tests/ui/associated-types/associated-types-eq-3.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-3.stderr rename to tests/ui/associated-types/associated-types-eq-3.stderr diff --git a/src/test/ui/associated-types/associated-types-eq-expr-path.rs b/tests/ui/associated-types/associated-types-eq-expr-path.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-expr-path.rs rename to tests/ui/associated-types/associated-types-eq-expr-path.rs diff --git a/src/test/ui/associated-types/associated-types-eq-expr-path.stderr b/tests/ui/associated-types/associated-types-eq-expr-path.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-expr-path.stderr rename to tests/ui/associated-types/associated-types-eq-expr-path.stderr diff --git a/src/test/ui/associated-types/associated-types-eq-hr.rs b/tests/ui/associated-types/associated-types-eq-hr.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-hr.rs rename to tests/ui/associated-types/associated-types-eq-hr.rs diff --git a/src/test/ui/associated-types/associated-types-eq-hr.stderr b/tests/ui/associated-types/associated-types-eq-hr.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-hr.stderr rename to tests/ui/associated-types/associated-types-eq-hr.stderr diff --git a/src/test/ui/associated-types/associated-types-eq-obj.rs b/tests/ui/associated-types/associated-types-eq-obj.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-eq-obj.rs rename to tests/ui/associated-types/associated-types-eq-obj.rs diff --git a/src/test/ui/associated-types/associated-types-for-unimpl-trait.fixed b/tests/ui/associated-types/associated-types-for-unimpl-trait.fixed similarity index 100% rename from src/test/ui/associated-types/associated-types-for-unimpl-trait.fixed rename to tests/ui/associated-types/associated-types-for-unimpl-trait.fixed diff --git a/src/test/ui/associated-types/associated-types-for-unimpl-trait.rs b/tests/ui/associated-types/associated-types-for-unimpl-trait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-for-unimpl-trait.rs rename to tests/ui/associated-types/associated-types-for-unimpl-trait.rs diff --git a/src/test/ui/associated-types/associated-types-for-unimpl-trait.stderr b/tests/ui/associated-types/associated-types-for-unimpl-trait.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-for-unimpl-trait.stderr rename to tests/ui/associated-types/associated-types-for-unimpl-trait.stderr diff --git a/src/test/ui/associated-types/associated-types-from-supertrait.rs b/tests/ui/associated-types/associated-types-from-supertrait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-from-supertrait.rs rename to tests/ui/associated-types/associated-types-from-supertrait.rs diff --git a/src/test/ui/associated-types/associated-types-impl-redirect.rs b/tests/ui/associated-types/associated-types-impl-redirect.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-impl-redirect.rs rename to tests/ui/associated-types/associated-types-impl-redirect.rs diff --git a/src/test/ui/associated-types/associated-types-in-ambiguous-context.rs b/tests/ui/associated-types/associated-types-in-ambiguous-context.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-in-ambiguous-context.rs rename to tests/ui/associated-types/associated-types-in-ambiguous-context.rs diff --git a/src/test/ui/associated-types/associated-types-in-ambiguous-context.stderr b/tests/ui/associated-types/associated-types-in-ambiguous-context.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-in-ambiguous-context.stderr rename to tests/ui/associated-types/associated-types-in-ambiguous-context.stderr diff --git a/src/test/ui/associated-types/associated-types-in-bound-type-arg.rs b/tests/ui/associated-types/associated-types-in-bound-type-arg.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-in-bound-type-arg.rs rename to tests/ui/associated-types/associated-types-in-bound-type-arg.rs diff --git a/src/test/ui/associated-types/associated-types-in-default-method.rs b/tests/ui/associated-types/associated-types-in-default-method.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-in-default-method.rs rename to tests/ui/associated-types/associated-types-in-default-method.rs diff --git a/src/test/ui/associated-types/associated-types-in-fn.rs b/tests/ui/associated-types/associated-types-in-fn.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-in-fn.rs rename to tests/ui/associated-types/associated-types-in-fn.rs diff --git a/src/test/ui/associated-types/associated-types-in-impl-generics.rs b/tests/ui/associated-types/associated-types-in-impl-generics.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-in-impl-generics.rs rename to tests/ui/associated-types/associated-types-in-impl-generics.rs diff --git a/src/test/ui/associated-types/associated-types-in-inherent-method.rs b/tests/ui/associated-types/associated-types-in-inherent-method.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-in-inherent-method.rs rename to tests/ui/associated-types/associated-types-in-inherent-method.rs diff --git a/src/test/ui/associated-types/associated-types-incomplete-object.rs b/tests/ui/associated-types/associated-types-incomplete-object.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-incomplete-object.rs rename to tests/ui/associated-types/associated-types-incomplete-object.rs diff --git a/src/test/ui/associated-types/associated-types-incomplete-object.stderr b/tests/ui/associated-types/associated-types-incomplete-object.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-incomplete-object.stderr rename to tests/ui/associated-types/associated-types-incomplete-object.stderr diff --git a/src/test/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.rs b/tests/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.rs rename to tests/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.rs diff --git a/src/test/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.stderr b/tests/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.stderr rename to tests/ui/associated-types/associated-types-invalid-trait-ref-issue-18865.stderr diff --git a/src/test/ui/associated-types/associated-types-issue-17359.rs b/tests/ui/associated-types/associated-types-issue-17359.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-17359.rs rename to tests/ui/associated-types/associated-types-issue-17359.rs diff --git a/src/test/ui/associated-types/associated-types-issue-17359.stderr b/tests/ui/associated-types/associated-types-issue-17359.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-17359.stderr rename to tests/ui/associated-types/associated-types-issue-17359.stderr diff --git a/src/test/ui/associated-types/associated-types-issue-20220.rs b/tests/ui/associated-types/associated-types-issue-20220.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-20220.rs rename to tests/ui/associated-types/associated-types-issue-20220.rs diff --git a/src/test/ui/associated-types/associated-types-issue-20346.rs b/tests/ui/associated-types/associated-types-issue-20346.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-20346.rs rename to tests/ui/associated-types/associated-types-issue-20346.rs diff --git a/src/test/ui/associated-types/associated-types-issue-20346.stderr b/tests/ui/associated-types/associated-types-issue-20346.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-20346.stderr rename to tests/ui/associated-types/associated-types-issue-20346.stderr diff --git a/src/test/ui/associated-types/associated-types-issue-20371.rs b/tests/ui/associated-types/associated-types-issue-20371.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-20371.rs rename to tests/ui/associated-types/associated-types-issue-20371.rs diff --git a/src/test/ui/associated-types/associated-types-issue-21212.rs b/tests/ui/associated-types/associated-types-issue-21212.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-issue-21212.rs rename to tests/ui/associated-types/associated-types-issue-21212.rs diff --git a/src/test/ui/associated-types/associated-types-iterator-binding.rs b/tests/ui/associated-types/associated-types-iterator-binding.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-iterator-binding.rs rename to tests/ui/associated-types/associated-types-iterator-binding.rs diff --git a/src/test/ui/associated-types/associated-types-method.rs b/tests/ui/associated-types/associated-types-method.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-method.rs rename to tests/ui/associated-types/associated-types-method.rs diff --git a/src/test/ui/associated-types/associated-types-multiple-types-one-trait.rs b/tests/ui/associated-types/associated-types-multiple-types-one-trait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-multiple-types-one-trait.rs rename to tests/ui/associated-types/associated-types-multiple-types-one-trait.rs diff --git a/src/test/ui/associated-types/associated-types-multiple-types-one-trait.stderr b/tests/ui/associated-types/associated-types-multiple-types-one-trait.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-multiple-types-one-trait.stderr rename to tests/ui/associated-types/associated-types-multiple-types-one-trait.stderr diff --git a/src/test/ui/associated-types/associated-types-nested-projections.rs b/tests/ui/associated-types/associated-types-nested-projections.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-nested-projections.rs rename to tests/ui/associated-types/associated-types-nested-projections.rs diff --git a/src/test/ui/associated-types/associated-types-no-suitable-bound.rs b/tests/ui/associated-types/associated-types-no-suitable-bound.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-no-suitable-bound.rs rename to tests/ui/associated-types/associated-types-no-suitable-bound.rs diff --git a/src/test/ui/associated-types/associated-types-no-suitable-bound.stderr b/tests/ui/associated-types/associated-types-no-suitable-bound.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-no-suitable-bound.stderr rename to tests/ui/associated-types/associated-types-no-suitable-bound.stderr diff --git a/src/test/ui/associated-types/associated-types-no-suitable-supertrait-2.rs b/tests/ui/associated-types/associated-types-no-suitable-supertrait-2.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-no-suitable-supertrait-2.rs rename to tests/ui/associated-types/associated-types-no-suitable-supertrait-2.rs diff --git a/src/test/ui/associated-types/associated-types-no-suitable-supertrait-2.stderr b/tests/ui/associated-types/associated-types-no-suitable-supertrait-2.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-no-suitable-supertrait-2.stderr rename to tests/ui/associated-types/associated-types-no-suitable-supertrait-2.stderr diff --git a/src/test/ui/associated-types/associated-types-no-suitable-supertrait.rs b/tests/ui/associated-types/associated-types-no-suitable-supertrait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-no-suitable-supertrait.rs rename to tests/ui/associated-types/associated-types-no-suitable-supertrait.rs diff --git a/src/test/ui/associated-types/associated-types-no-suitable-supertrait.stderr b/tests/ui/associated-types/associated-types-no-suitable-supertrait.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-no-suitable-supertrait.stderr rename to tests/ui/associated-types/associated-types-no-suitable-supertrait.stderr diff --git a/src/test/ui/associated-types/associated-types-normalize-in-bounds-binding.rs b/tests/ui/associated-types/associated-types-normalize-in-bounds-binding.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-normalize-in-bounds-binding.rs rename to tests/ui/associated-types/associated-types-normalize-in-bounds-binding.rs diff --git a/src/test/ui/associated-types/associated-types-normalize-in-bounds-ufcs.rs b/tests/ui/associated-types/associated-types-normalize-in-bounds-ufcs.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-normalize-in-bounds-ufcs.rs rename to tests/ui/associated-types/associated-types-normalize-in-bounds-ufcs.rs diff --git a/src/test/ui/associated-types/associated-types-normalize-in-bounds.rs b/tests/ui/associated-types/associated-types-normalize-in-bounds.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-normalize-in-bounds.rs rename to tests/ui/associated-types/associated-types-normalize-in-bounds.rs diff --git a/src/test/ui/associated-types/associated-types-normalize-unifield-struct.rs b/tests/ui/associated-types/associated-types-normalize-unifield-struct.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-normalize-unifield-struct.rs rename to tests/ui/associated-types/associated-types-normalize-unifield-struct.rs diff --git a/src/test/ui/associated-types/associated-types-outlives.rs b/tests/ui/associated-types/associated-types-outlives.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-outlives.rs rename to tests/ui/associated-types/associated-types-outlives.rs diff --git a/src/test/ui/associated-types/associated-types-outlives.stderr b/tests/ui/associated-types/associated-types-outlives.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-outlives.stderr rename to tests/ui/associated-types/associated-types-outlives.stderr diff --git a/src/test/ui/associated-types/associated-types-overridden-binding-2.rs b/tests/ui/associated-types/associated-types-overridden-binding-2.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-overridden-binding-2.rs rename to tests/ui/associated-types/associated-types-overridden-binding-2.rs diff --git a/src/test/ui/associated-types/associated-types-overridden-binding-2.stderr b/tests/ui/associated-types/associated-types-overridden-binding-2.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-overridden-binding-2.stderr rename to tests/ui/associated-types/associated-types-overridden-binding-2.stderr diff --git a/src/test/ui/associated-types/associated-types-overridden-binding.rs b/tests/ui/associated-types/associated-types-overridden-binding.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-overridden-binding.rs rename to tests/ui/associated-types/associated-types-overridden-binding.rs diff --git a/src/test/ui/associated-types/associated-types-overridden-binding.stderr b/tests/ui/associated-types/associated-types-overridden-binding.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-overridden-binding.stderr rename to tests/ui/associated-types/associated-types-overridden-binding.stderr diff --git a/src/test/ui/associated-types/associated-types-overridden-default.rs b/tests/ui/associated-types/associated-types-overridden-default.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-overridden-default.rs rename to tests/ui/associated-types/associated-types-overridden-default.rs diff --git a/src/test/ui/associated-types/associated-types-path-1.rs b/tests/ui/associated-types/associated-types-path-1.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-path-1.rs rename to tests/ui/associated-types/associated-types-path-1.rs diff --git a/src/test/ui/associated-types/associated-types-path-1.stderr b/tests/ui/associated-types/associated-types-path-1.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-path-1.stderr rename to tests/ui/associated-types/associated-types-path-1.stderr diff --git a/src/test/ui/associated-types/associated-types-path-2.rs b/tests/ui/associated-types/associated-types-path-2.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-path-2.rs rename to tests/ui/associated-types/associated-types-path-2.rs diff --git a/src/test/ui/associated-types/associated-types-path-2.stderr b/tests/ui/associated-types/associated-types-path-2.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-path-2.stderr rename to tests/ui/associated-types/associated-types-path-2.stderr diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.rs b/tests/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.rs rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.rs diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr b/tests/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-fn-body.stderr diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn.fixed b/tests/ui/associated-types/associated-types-project-from-hrtb-in-fn.fixed similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn.fixed rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-fn.fixed diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn.rs b/tests/ui/associated-types/associated-types-project-from-hrtb-in-fn.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn.rs rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-fn.rs diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn.stderr b/tests/ui/associated-types/associated-types-project-from-hrtb-in-fn.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-fn.stderr rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-fn.stderr diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-struct.rs b/tests/ui/associated-types/associated-types-project-from-hrtb-in-struct.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-struct.rs rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-struct.rs diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-struct.stderr b/tests/ui/associated-types/associated-types-project-from-hrtb-in-struct.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-struct.stderr rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-struct.stderr diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.fixed b/tests/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.fixed similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.fixed rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.fixed diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.rs b/tests/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.rs rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.rs diff --git a/src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr b/tests/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr rename to tests/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr diff --git a/src/test/ui/associated-types/associated-types-project-from-type-param-via-bound-in-where.rs b/tests/ui/associated-types/associated-types-project-from-type-param-via-bound-in-where.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-project-from-type-param-via-bound-in-where.rs rename to tests/ui/associated-types/associated-types-project-from-type-param-via-bound-in-where.rs diff --git a/src/test/ui/associated-types/associated-types-projection-bound-ambiguity.rs b/tests/ui/associated-types/associated-types-projection-bound-ambiguity.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-bound-ambiguity.rs rename to tests/ui/associated-types/associated-types-projection-bound-ambiguity.rs diff --git a/src/test/ui/associated-types/associated-types-projection-bound-in-supertraits.rs b/tests/ui/associated-types/associated-types-projection-bound-in-supertraits.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-bound-in-supertraits.rs rename to tests/ui/associated-types/associated-types-projection-bound-in-supertraits.rs diff --git a/src/test/ui/associated-types/associated-types-projection-from-known-type-in-impl.rs b/tests/ui/associated-types/associated-types-projection-from-known-type-in-impl.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-from-known-type-in-impl.rs rename to tests/ui/associated-types/associated-types-projection-from-known-type-in-impl.rs diff --git a/src/test/ui/associated-types/associated-types-projection-in-object-type.rs b/tests/ui/associated-types/associated-types-projection-in-object-type.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-in-object-type.rs rename to tests/ui/associated-types/associated-types-projection-in-object-type.rs diff --git a/src/test/ui/associated-types/associated-types-projection-in-supertrait.rs b/tests/ui/associated-types/associated-types-projection-in-supertrait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-in-supertrait.rs rename to tests/ui/associated-types/associated-types-projection-in-supertrait.rs diff --git a/src/test/ui/associated-types/associated-types-projection-in-where-clause.rs b/tests/ui/associated-types/associated-types-projection-in-where-clause.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-in-where-clause.rs rename to tests/ui/associated-types/associated-types-projection-in-where-clause.rs diff --git a/src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.fixed b/tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.fixed similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.fixed rename to tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.fixed diff --git a/src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.rs b/tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.rs rename to tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.rs diff --git a/src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.stderr b/tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.stderr rename to tests/ui/associated-types/associated-types-projection-to-unrelated-trait-in-method-without-default.stderr diff --git a/src/test/ui/associated-types/associated-types-projection-to-unrelated-trait.rs b/tests/ui/associated-types/associated-types-projection-to-unrelated-trait.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-projection-to-unrelated-trait.rs rename to tests/ui/associated-types/associated-types-projection-to-unrelated-trait.rs diff --git a/src/test/ui/associated-types/associated-types-qualified-path-with-trait-with-type-parameters.rs b/tests/ui/associated-types/associated-types-qualified-path-with-trait-with-type-parameters.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-qualified-path-with-trait-with-type-parameters.rs rename to tests/ui/associated-types/associated-types-qualified-path-with-trait-with-type-parameters.rs diff --git a/src/test/ui/associated-types/associated-types-ref-from-struct.rs b/tests/ui/associated-types/associated-types-ref-from-struct.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-ref-from-struct.rs rename to tests/ui/associated-types/associated-types-ref-from-struct.rs diff --git a/src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs b/tests/ui/associated-types/associated-types-ref-in-struct-literal.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-ref-in-struct-literal.rs rename to tests/ui/associated-types/associated-types-ref-in-struct-literal.rs diff --git a/src/test/ui/associated-types/associated-types-region-erasure-issue-20582.rs b/tests/ui/associated-types/associated-types-region-erasure-issue-20582.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-region-erasure-issue-20582.rs rename to tests/ui/associated-types/associated-types-region-erasure-issue-20582.rs diff --git a/src/test/ui/associated-types/associated-types-resolve-lifetime.rs b/tests/ui/associated-types/associated-types-resolve-lifetime.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-resolve-lifetime.rs rename to tests/ui/associated-types/associated-types-resolve-lifetime.rs diff --git a/src/test/ui/associated-types/associated-types-return.rs b/tests/ui/associated-types/associated-types-return.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-return.rs rename to tests/ui/associated-types/associated-types-return.rs diff --git a/src/test/ui/associated-types/associated-types-simple.rs b/tests/ui/associated-types/associated-types-simple.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-simple.rs rename to tests/ui/associated-types/associated-types-simple.rs diff --git a/src/test/ui/associated-types/associated-types-stream.rs b/tests/ui/associated-types/associated-types-stream.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-stream.rs rename to tests/ui/associated-types/associated-types-stream.rs diff --git a/src/test/ui/associated-types/associated-types-struct-field-named.rs b/tests/ui/associated-types/associated-types-struct-field-named.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-struct-field-named.rs rename to tests/ui/associated-types/associated-types-struct-field-named.rs diff --git a/src/test/ui/associated-types/associated-types-struct-field-numbered.rs b/tests/ui/associated-types/associated-types-struct-field-numbered.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-struct-field-numbered.rs rename to tests/ui/associated-types/associated-types-struct-field-numbered.rs diff --git a/src/test/ui/associated-types/associated-types-subtyping-1.rs b/tests/ui/associated-types/associated-types-subtyping-1.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-subtyping-1.rs rename to tests/ui/associated-types/associated-types-subtyping-1.rs diff --git a/src/test/ui/associated-types/associated-types-subtyping-1.stderr b/tests/ui/associated-types/associated-types-subtyping-1.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-subtyping-1.stderr rename to tests/ui/associated-types/associated-types-subtyping-1.stderr diff --git a/src/test/ui/associated-types/associated-types-sugar-path.rs b/tests/ui/associated-types/associated-types-sugar-path.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-sugar-path.rs rename to tests/ui/associated-types/associated-types-sugar-path.rs diff --git a/src/test/ui/associated-types/associated-types-unconstrained.rs b/tests/ui/associated-types/associated-types-unconstrained.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-unconstrained.rs rename to tests/ui/associated-types/associated-types-unconstrained.rs diff --git a/src/test/ui/associated-types/associated-types-unconstrained.stderr b/tests/ui/associated-types/associated-types-unconstrained.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-unconstrained.stderr rename to tests/ui/associated-types/associated-types-unconstrained.stderr diff --git a/src/test/ui/associated-types/associated-types-unsized.fixed b/tests/ui/associated-types/associated-types-unsized.fixed similarity index 100% rename from src/test/ui/associated-types/associated-types-unsized.fixed rename to tests/ui/associated-types/associated-types-unsized.fixed diff --git a/src/test/ui/associated-types/associated-types-unsized.rs b/tests/ui/associated-types/associated-types-unsized.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-unsized.rs rename to tests/ui/associated-types/associated-types-unsized.rs diff --git a/src/test/ui/associated-types/associated-types-unsized.stderr b/tests/ui/associated-types/associated-types-unsized.stderr similarity index 100% rename from src/test/ui/associated-types/associated-types-unsized.stderr rename to tests/ui/associated-types/associated-types-unsized.stderr diff --git a/src/test/ui/associated-types/associated-types-where-clause-impl-ambiguity.rs b/tests/ui/associated-types/associated-types-where-clause-impl-ambiguity.rs similarity index 100% rename from src/test/ui/associated-types/associated-types-where-clause-impl-ambiguity.rs rename to tests/ui/associated-types/associated-types-where-clause-impl-ambiguity.rs diff --git a/src/test/ui/associated-types/auxiliary/associated-types-cc-lib.rs b/tests/ui/associated-types/auxiliary/associated-types-cc-lib.rs similarity index 100% rename from src/test/ui/associated-types/auxiliary/associated-types-cc-lib.rs rename to tests/ui/associated-types/auxiliary/associated-types-cc-lib.rs diff --git a/src/test/ui/associated-types/bound-lifetime-constrained.clause.stderr b/tests/ui/associated-types/bound-lifetime-constrained.clause.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-constrained.clause.stderr rename to tests/ui/associated-types/bound-lifetime-constrained.clause.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-constrained.func.stderr b/tests/ui/associated-types/bound-lifetime-constrained.func.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-constrained.func.stderr rename to tests/ui/associated-types/bound-lifetime-constrained.func.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-constrained.object.stderr b/tests/ui/associated-types/bound-lifetime-constrained.object.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-constrained.object.stderr rename to tests/ui/associated-types/bound-lifetime-constrained.object.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-constrained.rs b/tests/ui/associated-types/bound-lifetime-constrained.rs similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-constrained.rs rename to tests/ui/associated-types/bound-lifetime-constrained.rs diff --git a/src/test/ui/associated-types/bound-lifetime-in-binding-only.angle.stderr b/tests/ui/associated-types/bound-lifetime-in-binding-only.angle.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-binding-only.angle.stderr rename to tests/ui/associated-types/bound-lifetime-in-binding-only.angle.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-binding-only.elision.stderr b/tests/ui/associated-types/bound-lifetime-in-binding-only.elision.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-binding-only.elision.stderr rename to tests/ui/associated-types/bound-lifetime-in-binding-only.elision.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-binding-only.ok.stderr b/tests/ui/associated-types/bound-lifetime-in-binding-only.ok.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-binding-only.ok.stderr rename to tests/ui/associated-types/bound-lifetime-in-binding-only.ok.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-binding-only.paren.stderr b/tests/ui/associated-types/bound-lifetime-in-binding-only.paren.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-binding-only.paren.stderr rename to tests/ui/associated-types/bound-lifetime-in-binding-only.paren.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-binding-only.rs b/tests/ui/associated-types/bound-lifetime-in-binding-only.rs similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-binding-only.rs rename to tests/ui/associated-types/bound-lifetime-in-binding-only.rs diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.elision.stderr b/tests/ui/associated-types/bound-lifetime-in-return-only.elision.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-return-only.elision.stderr rename to tests/ui/associated-types/bound-lifetime-in-return-only.elision.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr b/tests/ui/associated-types/bound-lifetime-in-return-only.local.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-return-only.local.stderr rename to tests/ui/associated-types/bound-lifetime-in-return-only.local.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.ok.stderr b/tests/ui/associated-types/bound-lifetime-in-return-only.ok.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-return-only.ok.stderr rename to tests/ui/associated-types/bound-lifetime-in-return-only.ok.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.rs b/tests/ui/associated-types/bound-lifetime-in-return-only.rs similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-return-only.rs rename to tests/ui/associated-types/bound-lifetime-in-return-only.rs diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.sig.stderr b/tests/ui/associated-types/bound-lifetime-in-return-only.sig.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-return-only.sig.stderr rename to tests/ui/associated-types/bound-lifetime-in-return-only.sig.stderr diff --git a/src/test/ui/associated-types/bound-lifetime-in-return-only.structure.stderr b/tests/ui/associated-types/bound-lifetime-in-return-only.structure.stderr similarity index 100% rename from src/test/ui/associated-types/bound-lifetime-in-return-only.structure.stderr rename to tests/ui/associated-types/bound-lifetime-in-return-only.structure.stderr diff --git a/src/test/ui/associated-types/cache/chrono-scan.rs b/tests/ui/associated-types/cache/chrono-scan.rs similarity index 100% rename from src/test/ui/associated-types/cache/chrono-scan.rs rename to tests/ui/associated-types/cache/chrono-scan.rs diff --git a/src/test/ui/associated-types/cache/elision.rs b/tests/ui/associated-types/cache/elision.rs similarity index 100% rename from src/test/ui/associated-types/cache/elision.rs rename to tests/ui/associated-types/cache/elision.rs diff --git a/src/test/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.stderr b/tests/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.stderr similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.stderr rename to tests/ui/associated-types/cache/project-fn-ret-contravariant.krisskross.stderr diff --git a/src/test/ui/associated-types/cache/project-fn-ret-contravariant.rs b/tests/ui/associated-types/cache/project-fn-ret-contravariant.rs similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-contravariant.rs rename to tests/ui/associated-types/cache/project-fn-ret-contravariant.rs diff --git a/src/test/ui/associated-types/cache/project-fn-ret-contravariant.transmute.stderr b/tests/ui/associated-types/cache/project-fn-ret-contravariant.transmute.stderr similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-contravariant.transmute.stderr rename to tests/ui/associated-types/cache/project-fn-ret-contravariant.transmute.stderr diff --git a/src/test/ui/associated-types/cache/project-fn-ret-invariant.krisskross.stderr b/tests/ui/associated-types/cache/project-fn-ret-invariant.krisskross.stderr similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-invariant.krisskross.stderr rename to tests/ui/associated-types/cache/project-fn-ret-invariant.krisskross.stderr diff --git a/src/test/ui/associated-types/cache/project-fn-ret-invariant.oneuse.stderr b/tests/ui/associated-types/cache/project-fn-ret-invariant.oneuse.stderr similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-invariant.oneuse.stderr rename to tests/ui/associated-types/cache/project-fn-ret-invariant.oneuse.stderr diff --git a/src/test/ui/associated-types/cache/project-fn-ret-invariant.rs b/tests/ui/associated-types/cache/project-fn-ret-invariant.rs similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-invariant.rs rename to tests/ui/associated-types/cache/project-fn-ret-invariant.rs diff --git a/src/test/ui/associated-types/cache/project-fn-ret-invariant.transmute.stderr b/tests/ui/associated-types/cache/project-fn-ret-invariant.transmute.stderr similarity index 100% rename from src/test/ui/associated-types/cache/project-fn-ret-invariant.transmute.stderr rename to tests/ui/associated-types/cache/project-fn-ret-invariant.transmute.stderr diff --git a/src/test/ui/associated-types/default-associated-types.rs b/tests/ui/associated-types/default-associated-types.rs similarity index 100% rename from src/test/ui/associated-types/default-associated-types.rs rename to tests/ui/associated-types/default-associated-types.rs diff --git a/src/test/ui/associated-types/defaults-cyclic-fail-1.rs b/tests/ui/associated-types/defaults-cyclic-fail-1.rs similarity index 100% rename from src/test/ui/associated-types/defaults-cyclic-fail-1.rs rename to tests/ui/associated-types/defaults-cyclic-fail-1.rs diff --git a/src/test/ui/associated-types/defaults-cyclic-fail-1.stderr b/tests/ui/associated-types/defaults-cyclic-fail-1.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-cyclic-fail-1.stderr rename to tests/ui/associated-types/defaults-cyclic-fail-1.stderr diff --git a/src/test/ui/associated-types/defaults-cyclic-fail-2.rs b/tests/ui/associated-types/defaults-cyclic-fail-2.rs similarity index 100% rename from src/test/ui/associated-types/defaults-cyclic-fail-2.rs rename to tests/ui/associated-types/defaults-cyclic-fail-2.rs diff --git a/src/test/ui/associated-types/defaults-cyclic-fail-2.stderr b/tests/ui/associated-types/defaults-cyclic-fail-2.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-cyclic-fail-2.stderr rename to tests/ui/associated-types/defaults-cyclic-fail-2.stderr diff --git a/src/test/ui/associated-types/defaults-cyclic-pass-1.rs b/tests/ui/associated-types/defaults-cyclic-pass-1.rs similarity index 100% rename from src/test/ui/associated-types/defaults-cyclic-pass-1.rs rename to tests/ui/associated-types/defaults-cyclic-pass-1.rs diff --git a/src/test/ui/associated-types/defaults-cyclic-pass-2.rs b/tests/ui/associated-types/defaults-cyclic-pass-2.rs similarity index 100% rename from src/test/ui/associated-types/defaults-cyclic-pass-2.rs rename to tests/ui/associated-types/defaults-cyclic-pass-2.rs diff --git a/src/test/ui/associated-types/defaults-in-other-trait-items-pass.rs b/tests/ui/associated-types/defaults-in-other-trait-items-pass.rs similarity index 100% rename from src/test/ui/associated-types/defaults-in-other-trait-items-pass.rs rename to tests/ui/associated-types/defaults-in-other-trait-items-pass.rs diff --git a/src/test/ui/associated-types/defaults-in-other-trait-items.rs b/tests/ui/associated-types/defaults-in-other-trait-items.rs similarity index 100% rename from src/test/ui/associated-types/defaults-in-other-trait-items.rs rename to tests/ui/associated-types/defaults-in-other-trait-items.rs diff --git a/src/test/ui/associated-types/defaults-in-other-trait-items.stderr b/tests/ui/associated-types/defaults-in-other-trait-items.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-in-other-trait-items.stderr rename to tests/ui/associated-types/defaults-in-other-trait-items.stderr diff --git a/src/test/ui/associated-types/defaults-mixed.rs b/tests/ui/associated-types/defaults-mixed.rs similarity index 100% rename from src/test/ui/associated-types/defaults-mixed.rs rename to tests/ui/associated-types/defaults-mixed.rs diff --git a/src/test/ui/associated-types/defaults-mixed.stderr b/tests/ui/associated-types/defaults-mixed.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-mixed.stderr rename to tests/ui/associated-types/defaults-mixed.stderr diff --git a/src/test/ui/associated-types/defaults-specialization.rs b/tests/ui/associated-types/defaults-specialization.rs similarity index 100% rename from src/test/ui/associated-types/defaults-specialization.rs rename to tests/ui/associated-types/defaults-specialization.rs diff --git a/src/test/ui/associated-types/defaults-specialization.stderr b/tests/ui/associated-types/defaults-specialization.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-specialization.stderr rename to tests/ui/associated-types/defaults-specialization.stderr diff --git a/src/test/ui/associated-types/defaults-suitability.rs b/tests/ui/associated-types/defaults-suitability.rs similarity index 100% rename from src/test/ui/associated-types/defaults-suitability.rs rename to tests/ui/associated-types/defaults-suitability.rs diff --git a/src/test/ui/associated-types/defaults-suitability.stderr b/tests/ui/associated-types/defaults-suitability.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-suitability.stderr rename to tests/ui/associated-types/defaults-suitability.stderr diff --git a/src/test/ui/associated-types/defaults-unsound-62211-1.rs b/tests/ui/associated-types/defaults-unsound-62211-1.rs similarity index 100% rename from src/test/ui/associated-types/defaults-unsound-62211-1.rs rename to tests/ui/associated-types/defaults-unsound-62211-1.rs diff --git a/src/test/ui/associated-types/defaults-unsound-62211-1.stderr b/tests/ui/associated-types/defaults-unsound-62211-1.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-unsound-62211-1.stderr rename to tests/ui/associated-types/defaults-unsound-62211-1.stderr diff --git a/src/test/ui/associated-types/defaults-unsound-62211-2.rs b/tests/ui/associated-types/defaults-unsound-62211-2.rs similarity index 100% rename from src/test/ui/associated-types/defaults-unsound-62211-2.rs rename to tests/ui/associated-types/defaults-unsound-62211-2.rs diff --git a/src/test/ui/associated-types/defaults-unsound-62211-2.stderr b/tests/ui/associated-types/defaults-unsound-62211-2.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-unsound-62211-2.stderr rename to tests/ui/associated-types/defaults-unsound-62211-2.stderr diff --git a/src/test/ui/associated-types/defaults-wf.rs b/tests/ui/associated-types/defaults-wf.rs similarity index 100% rename from src/test/ui/associated-types/defaults-wf.rs rename to tests/ui/associated-types/defaults-wf.rs diff --git a/src/test/ui/associated-types/defaults-wf.stderr b/tests/ui/associated-types/defaults-wf.stderr similarity index 100% rename from src/test/ui/associated-types/defaults-wf.stderr rename to tests/ui/associated-types/defaults-wf.stderr diff --git a/src/test/ui/associated-types/higher-ranked-projection.bad.stderr b/tests/ui/associated-types/higher-ranked-projection.bad.stderr similarity index 100% rename from src/test/ui/associated-types/higher-ranked-projection.bad.stderr rename to tests/ui/associated-types/higher-ranked-projection.bad.stderr diff --git a/src/test/ui/associated-types/higher-ranked-projection.rs b/tests/ui/associated-types/higher-ranked-projection.rs similarity index 100% rename from src/test/ui/associated-types/higher-ranked-projection.rs rename to tests/ui/associated-types/higher-ranked-projection.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-1.rs b/tests/ui/associated-types/hr-associated-type-bound-1.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-1.rs rename to tests/ui/associated-types/hr-associated-type-bound-1.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-1.stderr b/tests/ui/associated-types/hr-associated-type-bound-1.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-1.stderr rename to tests/ui/associated-types/hr-associated-type-bound-1.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-2.rs b/tests/ui/associated-types/hr-associated-type-bound-2.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-2.rs rename to tests/ui/associated-types/hr-associated-type-bound-2.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-2.stderr b/tests/ui/associated-types/hr-associated-type-bound-2.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-2.stderr rename to tests/ui/associated-types/hr-associated-type-bound-2.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-object.rs b/tests/ui/associated-types/hr-associated-type-bound-object.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-object.rs rename to tests/ui/associated-types/hr-associated-type-bound-object.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-object.stderr b/tests/ui/associated-types/hr-associated-type-bound-object.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-object.stderr rename to tests/ui/associated-types/hr-associated-type-bound-object.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-1.rs b/tests/ui/associated-types/hr-associated-type-bound-param-1.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-1.rs rename to tests/ui/associated-types/hr-associated-type-bound-param-1.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-1.stderr b/tests/ui/associated-types/hr-associated-type-bound-param-1.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-1.stderr rename to tests/ui/associated-types/hr-associated-type-bound-param-1.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-2.rs b/tests/ui/associated-types/hr-associated-type-bound-param-2.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-2.rs rename to tests/ui/associated-types/hr-associated-type-bound-param-2.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-2.stderr b/tests/ui/associated-types/hr-associated-type-bound-param-2.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-2.stderr rename to tests/ui/associated-types/hr-associated-type-bound-param-2.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-3.rs b/tests/ui/associated-types/hr-associated-type-bound-param-3.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-3.rs rename to tests/ui/associated-types/hr-associated-type-bound-param-3.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-3.stderr b/tests/ui/associated-types/hr-associated-type-bound-param-3.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-3.stderr rename to tests/ui/associated-types/hr-associated-type-bound-param-3.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-4.rs b/tests/ui/associated-types/hr-associated-type-bound-param-4.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-4.rs rename to tests/ui/associated-types/hr-associated-type-bound-param-4.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-4.stderr b/tests/ui/associated-types/hr-associated-type-bound-param-4.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-4.stderr rename to tests/ui/associated-types/hr-associated-type-bound-param-4.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-5.rs b/tests/ui/associated-types/hr-associated-type-bound-param-5.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-5.rs rename to tests/ui/associated-types/hr-associated-type-bound-param-5.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-5.stderr b/tests/ui/associated-types/hr-associated-type-bound-param-5.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-5.stderr rename to tests/ui/associated-types/hr-associated-type-bound-param-5.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-6.rs b/tests/ui/associated-types/hr-associated-type-bound-param-6.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-6.rs rename to tests/ui/associated-types/hr-associated-type-bound-param-6.rs diff --git a/src/test/ui/associated-types/hr-associated-type-bound-param-6.stderr b/tests/ui/associated-types/hr-associated-type-bound-param-6.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-bound-param-6.stderr rename to tests/ui/associated-types/hr-associated-type-bound-param-6.stderr diff --git a/src/test/ui/associated-types/hr-associated-type-projection-1.rs b/tests/ui/associated-types/hr-associated-type-projection-1.rs similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-projection-1.rs rename to tests/ui/associated-types/hr-associated-type-projection-1.rs diff --git a/src/test/ui/associated-types/hr-associated-type-projection-1.stderr b/tests/ui/associated-types/hr-associated-type-projection-1.stderr similarity index 100% rename from src/test/ui/associated-types/hr-associated-type-projection-1.stderr rename to tests/ui/associated-types/hr-associated-type-projection-1.stderr diff --git a/src/test/ui/associated-types/impl-trait-return-missing-constraint.rs b/tests/ui/associated-types/impl-trait-return-missing-constraint.rs similarity index 100% rename from src/test/ui/associated-types/impl-trait-return-missing-constraint.rs rename to tests/ui/associated-types/impl-trait-return-missing-constraint.rs diff --git a/src/test/ui/associated-types/impl-trait-return-missing-constraint.stderr b/tests/ui/associated-types/impl-trait-return-missing-constraint.stderr similarity index 100% rename from src/test/ui/associated-types/impl-trait-return-missing-constraint.stderr rename to tests/ui/associated-types/impl-trait-return-missing-constraint.stderr diff --git a/src/test/ui/associated-types/impl-wf-cycle-1.rs b/tests/ui/associated-types/impl-wf-cycle-1.rs similarity index 100% rename from src/test/ui/associated-types/impl-wf-cycle-1.rs rename to tests/ui/associated-types/impl-wf-cycle-1.rs diff --git a/src/test/ui/associated-types/impl-wf-cycle-1.stderr b/tests/ui/associated-types/impl-wf-cycle-1.stderr similarity index 100% rename from src/test/ui/associated-types/impl-wf-cycle-1.stderr rename to tests/ui/associated-types/impl-wf-cycle-1.stderr diff --git a/src/test/ui/associated-types/impl-wf-cycle-2.rs b/tests/ui/associated-types/impl-wf-cycle-2.rs similarity index 100% rename from src/test/ui/associated-types/impl-wf-cycle-2.rs rename to tests/ui/associated-types/impl-wf-cycle-2.rs diff --git a/src/test/ui/associated-types/impl-wf-cycle-2.stderr b/tests/ui/associated-types/impl-wf-cycle-2.stderr similarity index 100% rename from src/test/ui/associated-types/impl-wf-cycle-2.stderr rename to tests/ui/associated-types/impl-wf-cycle-2.stderr diff --git a/src/test/ui/associated-types/issue-18655.rs b/tests/ui/associated-types/issue-18655.rs similarity index 100% rename from src/test/ui/associated-types/issue-18655.rs rename to tests/ui/associated-types/issue-18655.rs diff --git a/src/test/ui/associated-types/issue-19081.rs b/tests/ui/associated-types/issue-19081.rs similarity index 100% rename from src/test/ui/associated-types/issue-19081.rs rename to tests/ui/associated-types/issue-19081.rs diff --git a/src/test/ui/associated-types/issue-19883.rs b/tests/ui/associated-types/issue-19883.rs similarity index 100% rename from src/test/ui/associated-types/issue-19883.rs rename to tests/ui/associated-types/issue-19883.rs diff --git a/src/test/ui/associated-types/issue-19883.stderr b/tests/ui/associated-types/issue-19883.stderr similarity index 100% rename from src/test/ui/associated-types/issue-19883.stderr rename to tests/ui/associated-types/issue-19883.stderr diff --git a/src/test/ui/associated-types/issue-20005.rs b/tests/ui/associated-types/issue-20005.rs similarity index 100% rename from src/test/ui/associated-types/issue-20005.rs rename to tests/ui/associated-types/issue-20005.rs diff --git a/src/test/ui/associated-types/issue-20005.stderr b/tests/ui/associated-types/issue-20005.stderr similarity index 100% rename from src/test/ui/associated-types/issue-20005.stderr rename to tests/ui/associated-types/issue-20005.stderr diff --git a/src/test/ui/associated-types/issue-20825-2.rs b/tests/ui/associated-types/issue-20825-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-20825-2.rs rename to tests/ui/associated-types/issue-20825-2.rs diff --git a/src/test/ui/associated-types/issue-20825.rs b/tests/ui/associated-types/issue-20825.rs similarity index 100% rename from src/test/ui/associated-types/issue-20825.rs rename to tests/ui/associated-types/issue-20825.rs diff --git a/src/test/ui/associated-types/issue-20825.stderr b/tests/ui/associated-types/issue-20825.stderr similarity index 100% rename from src/test/ui/associated-types/issue-20825.stderr rename to tests/ui/associated-types/issue-20825.stderr diff --git a/src/test/ui/associated-types/issue-21363.rs b/tests/ui/associated-types/issue-21363.rs similarity index 100% rename from src/test/ui/associated-types/issue-21363.rs rename to tests/ui/associated-types/issue-21363.rs diff --git a/src/test/ui/associated-types/issue-21726.rs b/tests/ui/associated-types/issue-21726.rs similarity index 100% rename from src/test/ui/associated-types/issue-21726.rs rename to tests/ui/associated-types/issue-21726.rs diff --git a/src/test/ui/associated-types/issue-22037.rs b/tests/ui/associated-types/issue-22037.rs similarity index 100% rename from src/test/ui/associated-types/issue-22037.rs rename to tests/ui/associated-types/issue-22037.rs diff --git a/src/test/ui/associated-types/issue-22037.stderr b/tests/ui/associated-types/issue-22037.stderr similarity index 100% rename from src/test/ui/associated-types/issue-22037.stderr rename to tests/ui/associated-types/issue-22037.stderr diff --git a/src/test/ui/associated-types/issue-22066.rs b/tests/ui/associated-types/issue-22066.rs similarity index 100% rename from src/test/ui/associated-types/issue-22066.rs rename to tests/ui/associated-types/issue-22066.rs diff --git a/src/test/ui/associated-types/issue-22560.rs b/tests/ui/associated-types/issue-22560.rs similarity index 100% rename from src/test/ui/associated-types/issue-22560.rs rename to tests/ui/associated-types/issue-22560.rs diff --git a/src/test/ui/associated-types/issue-22560.stderr b/tests/ui/associated-types/issue-22560.stderr similarity index 100% rename from src/test/ui/associated-types/issue-22560.stderr rename to tests/ui/associated-types/issue-22560.stderr diff --git a/src/test/ui/associated-types/issue-22828.rs b/tests/ui/associated-types/issue-22828.rs similarity index 100% rename from src/test/ui/associated-types/issue-22828.rs rename to tests/ui/associated-types/issue-22828.rs diff --git a/src/test/ui/associated-types/issue-23208.rs b/tests/ui/associated-types/issue-23208.rs similarity index 100% rename from src/test/ui/associated-types/issue-23208.rs rename to tests/ui/associated-types/issue-23208.rs diff --git a/src/test/ui/associated-types/issue-23595-1.rs b/tests/ui/associated-types/issue-23595-1.rs similarity index 100% rename from src/test/ui/associated-types/issue-23595-1.rs rename to tests/ui/associated-types/issue-23595-1.rs diff --git a/src/test/ui/associated-types/issue-23595-1.stderr b/tests/ui/associated-types/issue-23595-1.stderr similarity index 100% rename from src/test/ui/associated-types/issue-23595-1.stderr rename to tests/ui/associated-types/issue-23595-1.stderr diff --git a/src/test/ui/associated-types/issue-23595-2.rs b/tests/ui/associated-types/issue-23595-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-23595-2.rs rename to tests/ui/associated-types/issue-23595-2.rs diff --git a/src/test/ui/associated-types/issue-23595-2.stderr b/tests/ui/associated-types/issue-23595-2.stderr similarity index 100% rename from src/test/ui/associated-types/issue-23595-2.stderr rename to tests/ui/associated-types/issue-23595-2.stderr diff --git a/src/test/ui/associated-types/issue-24159.rs b/tests/ui/associated-types/issue-24159.rs similarity index 100% rename from src/test/ui/associated-types/issue-24159.rs rename to tests/ui/associated-types/issue-24159.rs diff --git a/src/test/ui/associated-types/issue-24204.rs b/tests/ui/associated-types/issue-24204.rs similarity index 100% rename from src/test/ui/associated-types/issue-24204.rs rename to tests/ui/associated-types/issue-24204.rs diff --git a/src/test/ui/associated-types/issue-24338.rs b/tests/ui/associated-types/issue-24338.rs similarity index 100% rename from src/test/ui/associated-types/issue-24338.rs rename to tests/ui/associated-types/issue-24338.rs diff --git a/src/test/ui/associated-types/issue-25339.rs b/tests/ui/associated-types/issue-25339.rs similarity index 100% rename from src/test/ui/associated-types/issue-25339.rs rename to tests/ui/associated-types/issue-25339.rs diff --git a/src/test/ui/associated-types/issue-25700-1.rs b/tests/ui/associated-types/issue-25700-1.rs similarity index 100% rename from src/test/ui/associated-types/issue-25700-1.rs rename to tests/ui/associated-types/issue-25700-1.rs diff --git a/src/test/ui/associated-types/issue-25700-2.rs b/tests/ui/associated-types/issue-25700-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-25700-2.rs rename to tests/ui/associated-types/issue-25700-2.rs diff --git a/src/test/ui/associated-types/issue-25700.rs b/tests/ui/associated-types/issue-25700.rs similarity index 100% rename from src/test/ui/associated-types/issue-25700.rs rename to tests/ui/associated-types/issue-25700.rs diff --git a/src/test/ui/associated-types/issue-25700.stderr b/tests/ui/associated-types/issue-25700.stderr similarity index 100% rename from src/test/ui/associated-types/issue-25700.stderr rename to tests/ui/associated-types/issue-25700.stderr diff --git a/src/test/ui/associated-types/issue-26681.rs b/tests/ui/associated-types/issue-26681.rs similarity index 100% rename from src/test/ui/associated-types/issue-26681.rs rename to tests/ui/associated-types/issue-26681.rs diff --git a/src/test/ui/associated-types/issue-26681.stderr b/tests/ui/associated-types/issue-26681.stderr similarity index 100% rename from src/test/ui/associated-types/issue-26681.stderr rename to tests/ui/associated-types/issue-26681.stderr diff --git a/src/test/ui/associated-types/issue-27675-unchecked-bounds.rs b/tests/ui/associated-types/issue-27675-unchecked-bounds.rs similarity index 100% rename from src/test/ui/associated-types/issue-27675-unchecked-bounds.rs rename to tests/ui/associated-types/issue-27675-unchecked-bounds.rs diff --git a/src/test/ui/associated-types/issue-27675-unchecked-bounds.stderr b/tests/ui/associated-types/issue-27675-unchecked-bounds.stderr similarity index 100% rename from src/test/ui/associated-types/issue-27675-unchecked-bounds.stderr rename to tests/ui/associated-types/issue-27675-unchecked-bounds.stderr diff --git a/src/test/ui/associated-types/issue-28871.rs b/tests/ui/associated-types/issue-28871.rs similarity index 100% rename from src/test/ui/associated-types/issue-28871.rs rename to tests/ui/associated-types/issue-28871.rs diff --git a/src/test/ui/associated-types/issue-31597.rs b/tests/ui/associated-types/issue-31597.rs similarity index 100% rename from src/test/ui/associated-types/issue-31597.rs rename to tests/ui/associated-types/issue-31597.rs diff --git a/src/test/ui/associated-types/issue-32350.rs b/tests/ui/associated-types/issue-32350.rs similarity index 100% rename from src/test/ui/associated-types/issue-32350.rs rename to tests/ui/associated-types/issue-32350.rs diff --git a/src/test/ui/associated-types/issue-36499.rs b/tests/ui/associated-types/issue-36499.rs similarity index 100% rename from src/test/ui/associated-types/issue-36499.rs rename to tests/ui/associated-types/issue-36499.rs diff --git a/src/test/ui/associated-types/issue-36499.stderr b/tests/ui/associated-types/issue-36499.stderr similarity index 100% rename from src/test/ui/associated-types/issue-36499.stderr rename to tests/ui/associated-types/issue-36499.stderr diff --git a/src/test/ui/associated-types/issue-37808.rs b/tests/ui/associated-types/issue-37808.rs similarity index 100% rename from src/test/ui/associated-types/issue-37808.rs rename to tests/ui/associated-types/issue-37808.rs diff --git a/src/test/ui/associated-types/issue-37883.rs b/tests/ui/associated-types/issue-37883.rs similarity index 100% rename from src/test/ui/associated-types/issue-37883.rs rename to tests/ui/associated-types/issue-37883.rs diff --git a/src/test/ui/associated-types/issue-38917.rs b/tests/ui/associated-types/issue-38917.rs similarity index 100% rename from src/test/ui/associated-types/issue-38917.rs rename to tests/ui/associated-types/issue-38917.rs diff --git a/src/test/ui/associated-types/issue-39532.rs b/tests/ui/associated-types/issue-39532.rs similarity index 100% rename from src/test/ui/associated-types/issue-39532.rs rename to tests/ui/associated-types/issue-39532.rs diff --git a/src/test/ui/associated-types/issue-40093.rs b/tests/ui/associated-types/issue-40093.rs similarity index 100% rename from src/test/ui/associated-types/issue-40093.rs rename to tests/ui/associated-types/issue-40093.rs diff --git a/src/test/ui/associated-types/issue-41868.rs b/tests/ui/associated-types/issue-41868.rs similarity index 100% rename from src/test/ui/associated-types/issue-41868.rs rename to tests/ui/associated-types/issue-41868.rs diff --git a/src/test/ui/associated-types/issue-43475.rs b/tests/ui/associated-types/issue-43475.rs similarity index 100% rename from src/test/ui/associated-types/issue-43475.rs rename to tests/ui/associated-types/issue-43475.rs diff --git a/src/test/ui/associated-types/issue-43784-associated-type.rs b/tests/ui/associated-types/issue-43784-associated-type.rs similarity index 100% rename from src/test/ui/associated-types/issue-43784-associated-type.rs rename to tests/ui/associated-types/issue-43784-associated-type.rs diff --git a/src/test/ui/associated-types/issue-43784-associated-type.stderr b/tests/ui/associated-types/issue-43784-associated-type.stderr similarity index 100% rename from src/test/ui/associated-types/issue-43784-associated-type.stderr rename to tests/ui/associated-types/issue-43784-associated-type.stderr diff --git a/src/test/ui/associated-types/issue-43924.rs b/tests/ui/associated-types/issue-43924.rs similarity index 100% rename from src/test/ui/associated-types/issue-43924.rs rename to tests/ui/associated-types/issue-43924.rs diff --git a/src/test/ui/associated-types/issue-43924.stderr b/tests/ui/associated-types/issue-43924.stderr similarity index 100% rename from src/test/ui/associated-types/issue-43924.stderr rename to tests/ui/associated-types/issue-43924.stderr diff --git a/src/test/ui/associated-types/issue-44153.rs b/tests/ui/associated-types/issue-44153.rs similarity index 100% rename from src/test/ui/associated-types/issue-44153.rs rename to tests/ui/associated-types/issue-44153.rs diff --git a/src/test/ui/associated-types/issue-44153.stderr b/tests/ui/associated-types/issue-44153.stderr similarity index 100% rename from src/test/ui/associated-types/issue-44153.stderr rename to tests/ui/associated-types/issue-44153.stderr diff --git a/src/test/ui/associated-types/issue-47139-1.rs b/tests/ui/associated-types/issue-47139-1.rs similarity index 100% rename from src/test/ui/associated-types/issue-47139-1.rs rename to tests/ui/associated-types/issue-47139-1.rs diff --git a/src/test/ui/associated-types/issue-47139-2.rs b/tests/ui/associated-types/issue-47139-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-47139-2.rs rename to tests/ui/associated-types/issue-47139-2.rs diff --git a/src/test/ui/associated-types/issue-47385.rs b/tests/ui/associated-types/issue-47385.rs similarity index 100% rename from src/test/ui/associated-types/issue-47385.rs rename to tests/ui/associated-types/issue-47385.rs diff --git a/src/test/ui/associated-types/issue-47814.rs b/tests/ui/associated-types/issue-47814.rs similarity index 100% rename from src/test/ui/associated-types/issue-47814.rs rename to tests/ui/associated-types/issue-47814.rs diff --git a/src/test/ui/associated-types/issue-47814.stderr b/tests/ui/associated-types/issue-47814.stderr similarity index 100% rename from src/test/ui/associated-types/issue-47814.stderr rename to tests/ui/associated-types/issue-47814.stderr diff --git a/src/test/ui/associated-types/issue-48010.rs b/tests/ui/associated-types/issue-48010.rs similarity index 100% rename from src/test/ui/associated-types/issue-48010.rs rename to tests/ui/associated-types/issue-48010.rs diff --git a/src/test/ui/associated-types/issue-48551.rs b/tests/ui/associated-types/issue-48551.rs similarity index 100% rename from src/test/ui/associated-types/issue-48551.rs rename to tests/ui/associated-types/issue-48551.rs diff --git a/src/test/ui/associated-types/issue-50301.rs b/tests/ui/associated-types/issue-50301.rs similarity index 100% rename from src/test/ui/associated-types/issue-50301.rs rename to tests/ui/associated-types/issue-50301.rs diff --git a/src/test/ui/associated-types/issue-54108.rs b/tests/ui/associated-types/issue-54108.rs similarity index 100% rename from src/test/ui/associated-types/issue-54108.rs rename to tests/ui/associated-types/issue-54108.rs diff --git a/src/test/ui/associated-types/issue-54108.stderr b/tests/ui/associated-types/issue-54108.stderr similarity index 100% rename from src/test/ui/associated-types/issue-54108.stderr rename to tests/ui/associated-types/issue-54108.stderr diff --git a/src/test/ui/associated-types/issue-54182-1.rs b/tests/ui/associated-types/issue-54182-1.rs similarity index 100% rename from src/test/ui/associated-types/issue-54182-1.rs rename to tests/ui/associated-types/issue-54182-1.rs diff --git a/src/test/ui/associated-types/issue-54182-2.rs b/tests/ui/associated-types/issue-54182-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-54182-2.rs rename to tests/ui/associated-types/issue-54182-2.rs diff --git a/src/test/ui/associated-types/issue-54467.rs b/tests/ui/associated-types/issue-54467.rs similarity index 100% rename from src/test/ui/associated-types/issue-54467.rs rename to tests/ui/associated-types/issue-54467.rs diff --git a/src/test/ui/associated-types/issue-55846.rs b/tests/ui/associated-types/issue-55846.rs similarity index 100% rename from src/test/ui/associated-types/issue-55846.rs rename to tests/ui/associated-types/issue-55846.rs diff --git a/src/test/ui/associated-types/issue-59324.rs b/tests/ui/associated-types/issue-59324.rs similarity index 100% rename from src/test/ui/associated-types/issue-59324.rs rename to tests/ui/associated-types/issue-59324.rs diff --git a/src/test/ui/associated-types/issue-59324.stderr b/tests/ui/associated-types/issue-59324.stderr similarity index 100% rename from src/test/ui/associated-types/issue-59324.stderr rename to tests/ui/associated-types/issue-59324.stderr diff --git a/src/test/ui/associated-types/issue-62200.rs b/tests/ui/associated-types/issue-62200.rs similarity index 100% rename from src/test/ui/associated-types/issue-62200.rs rename to tests/ui/associated-types/issue-62200.rs diff --git a/src/test/ui/associated-types/issue-62200.stderr b/tests/ui/associated-types/issue-62200.stderr similarity index 100% rename from src/test/ui/associated-types/issue-62200.stderr rename to tests/ui/associated-types/issue-62200.stderr diff --git a/src/test/ui/associated-types/issue-63591.rs b/tests/ui/associated-types/issue-63591.rs similarity index 100% rename from src/test/ui/associated-types/issue-63591.rs rename to tests/ui/associated-types/issue-63591.rs diff --git a/src/test/ui/associated-types/issue-63593.rs b/tests/ui/associated-types/issue-63593.rs similarity index 100% rename from src/test/ui/associated-types/issue-63593.rs rename to tests/ui/associated-types/issue-63593.rs diff --git a/src/test/ui/associated-types/issue-63593.stderr b/tests/ui/associated-types/issue-63593.stderr similarity index 100% rename from src/test/ui/associated-types/issue-63593.stderr rename to tests/ui/associated-types/issue-63593.stderr diff --git a/src/test/ui/associated-types/issue-64848.rs b/tests/ui/associated-types/issue-64848.rs similarity index 100% rename from src/test/ui/associated-types/issue-64848.rs rename to tests/ui/associated-types/issue-64848.rs diff --git a/src/test/ui/associated-types/issue-64855-2.rs b/tests/ui/associated-types/issue-64855-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-64855-2.rs rename to tests/ui/associated-types/issue-64855-2.rs diff --git a/src/test/ui/associated-types/issue-64855.rs b/tests/ui/associated-types/issue-64855.rs similarity index 100% rename from src/test/ui/associated-types/issue-64855.rs rename to tests/ui/associated-types/issue-64855.rs diff --git a/src/test/ui/associated-types/issue-64855.stderr b/tests/ui/associated-types/issue-64855.stderr similarity index 100% rename from src/test/ui/associated-types/issue-64855.stderr rename to tests/ui/associated-types/issue-64855.stderr diff --git a/src/test/ui/associated-types/issue-65774-1.rs b/tests/ui/associated-types/issue-65774-1.rs similarity index 100% rename from src/test/ui/associated-types/issue-65774-1.rs rename to tests/ui/associated-types/issue-65774-1.rs diff --git a/src/test/ui/associated-types/issue-65774-1.stderr b/tests/ui/associated-types/issue-65774-1.stderr similarity index 100% rename from src/test/ui/associated-types/issue-65774-1.stderr rename to tests/ui/associated-types/issue-65774-1.stderr diff --git a/src/test/ui/associated-types/issue-65774-2.rs b/tests/ui/associated-types/issue-65774-2.rs similarity index 100% rename from src/test/ui/associated-types/issue-65774-2.rs rename to tests/ui/associated-types/issue-65774-2.rs diff --git a/src/test/ui/associated-types/issue-65774-2.stderr b/tests/ui/associated-types/issue-65774-2.stderr similarity index 100% rename from src/test/ui/associated-types/issue-65774-2.stderr rename to tests/ui/associated-types/issue-65774-2.stderr diff --git a/src/test/ui/associated-types/issue-65934.rs b/tests/ui/associated-types/issue-65934.rs similarity index 100% rename from src/test/ui/associated-types/issue-65934.rs rename to tests/ui/associated-types/issue-65934.rs diff --git a/src/test/ui/associated-types/issue-67684.rs b/tests/ui/associated-types/issue-67684.rs similarity index 100% rename from src/test/ui/associated-types/issue-67684.rs rename to tests/ui/associated-types/issue-67684.rs diff --git a/src/test/ui/associated-types/issue-69398.rs b/tests/ui/associated-types/issue-69398.rs similarity index 100% rename from src/test/ui/associated-types/issue-69398.rs rename to tests/ui/associated-types/issue-69398.rs diff --git a/src/test/ui/associated-types/issue-71113.rs b/tests/ui/associated-types/issue-71113.rs similarity index 100% rename from src/test/ui/associated-types/issue-71113.rs rename to tests/ui/associated-types/issue-71113.rs diff --git a/src/test/ui/associated-types/issue-72806.rs b/tests/ui/associated-types/issue-72806.rs similarity index 100% rename from src/test/ui/associated-types/issue-72806.rs rename to tests/ui/associated-types/issue-72806.rs diff --git a/src/test/ui/associated-types/issue-72806.stderr b/tests/ui/associated-types/issue-72806.stderr similarity index 100% rename from src/test/ui/associated-types/issue-72806.stderr rename to tests/ui/associated-types/issue-72806.stderr diff --git a/src/test/ui/associated-types/issue-76179.rs b/tests/ui/associated-types/issue-76179.rs similarity index 100% rename from src/test/ui/associated-types/issue-76179.rs rename to tests/ui/associated-types/issue-76179.rs diff --git a/src/test/ui/associated-types/issue-82079.rs b/tests/ui/associated-types/issue-82079.rs similarity index 100% rename from src/test/ui/associated-types/issue-82079.rs rename to tests/ui/associated-types/issue-82079.rs diff --git a/src/test/ui/associated-types/issue-85103.rs b/tests/ui/associated-types/issue-85103.rs similarity index 100% rename from src/test/ui/associated-types/issue-85103.rs rename to tests/ui/associated-types/issue-85103.rs diff --git a/src/test/ui/associated-types/issue-85103.stderr b/tests/ui/associated-types/issue-85103.stderr similarity index 100% rename from src/test/ui/associated-types/issue-85103.stderr rename to tests/ui/associated-types/issue-85103.stderr diff --git a/src/test/ui/associated-types/issue-87261.rs b/tests/ui/associated-types/issue-87261.rs similarity index 100% rename from src/test/ui/associated-types/issue-87261.rs rename to tests/ui/associated-types/issue-87261.rs diff --git a/src/test/ui/associated-types/issue-87261.stderr b/tests/ui/associated-types/issue-87261.stderr similarity index 100% rename from src/test/ui/associated-types/issue-87261.stderr rename to tests/ui/associated-types/issue-87261.stderr diff --git a/src/test/ui/associated-types/issue-88856.rs b/tests/ui/associated-types/issue-88856.rs similarity index 100% rename from src/test/ui/associated-types/issue-88856.rs rename to tests/ui/associated-types/issue-88856.rs diff --git a/src/test/ui/associated-types/issue-91069.rs b/tests/ui/associated-types/issue-91069.rs similarity index 100% rename from src/test/ui/associated-types/issue-91069.rs rename to tests/ui/associated-types/issue-91069.rs diff --git a/src/test/ui/associated-types/issue-91231.rs b/tests/ui/associated-types/issue-91231.rs similarity index 100% rename from src/test/ui/associated-types/issue-91231.rs rename to tests/ui/associated-types/issue-91231.rs diff --git a/src/test/ui/associated-types/issue-91234.rs b/tests/ui/associated-types/issue-91234.rs similarity index 100% rename from src/test/ui/associated-types/issue-91234.rs rename to tests/ui/associated-types/issue-91234.rs diff --git a/src/test/ui/associated-types/missing-associated-types.rs b/tests/ui/associated-types/missing-associated-types.rs similarity index 100% rename from src/test/ui/associated-types/missing-associated-types.rs rename to tests/ui/associated-types/missing-associated-types.rs diff --git a/src/test/ui/associated-types/missing-associated-types.stderr b/tests/ui/associated-types/missing-associated-types.stderr similarity index 100% rename from src/test/ui/associated-types/missing-associated-types.stderr rename to tests/ui/associated-types/missing-associated-types.stderr diff --git a/src/test/ui/associated-types/normalization-debruijn-1.rs b/tests/ui/associated-types/normalization-debruijn-1.rs similarity index 100% rename from src/test/ui/associated-types/normalization-debruijn-1.rs rename to tests/ui/associated-types/normalization-debruijn-1.rs diff --git a/src/test/ui/associated-types/normalization-debruijn-2.rs b/tests/ui/associated-types/normalization-debruijn-2.rs similarity index 100% rename from src/test/ui/associated-types/normalization-debruijn-2.rs rename to tests/ui/associated-types/normalization-debruijn-2.rs diff --git a/src/test/ui/associated-types/normalization-debruijn-3.rs b/tests/ui/associated-types/normalization-debruijn-3.rs similarity index 100% rename from src/test/ui/associated-types/normalization-debruijn-3.rs rename to tests/ui/associated-types/normalization-debruijn-3.rs diff --git a/src/test/ui/associated-types/normalization-generality-2.rs b/tests/ui/associated-types/normalization-generality-2.rs similarity index 100% rename from src/test/ui/associated-types/normalization-generality-2.rs rename to tests/ui/associated-types/normalization-generality-2.rs diff --git a/src/test/ui/associated-types/normalization-generality.rs b/tests/ui/associated-types/normalization-generality.rs similarity index 100% rename from src/test/ui/associated-types/normalization-generality.rs rename to tests/ui/associated-types/normalization-generality.rs diff --git a/src/test/ui/associated-types/normalization-probe-cycle.rs b/tests/ui/associated-types/normalization-probe-cycle.rs similarity index 100% rename from src/test/ui/associated-types/normalization-probe-cycle.rs rename to tests/ui/associated-types/normalization-probe-cycle.rs diff --git a/src/test/ui/associated-types/normalize-cycle-in-eval-no-region.rs b/tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs similarity index 100% rename from src/test/ui/associated-types/normalize-cycle-in-eval-no-region.rs rename to tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs diff --git a/src/test/ui/associated-types/normalize-cycle-in-eval.rs b/tests/ui/associated-types/normalize-cycle-in-eval.rs similarity index 100% rename from src/test/ui/associated-types/normalize-cycle-in-eval.rs rename to tests/ui/associated-types/normalize-cycle-in-eval.rs diff --git a/src/test/ui/associated-types/object-method-numbering.rs b/tests/ui/associated-types/object-method-numbering.rs similarity index 100% rename from src/test/ui/associated-types/object-method-numbering.rs rename to tests/ui/associated-types/object-method-numbering.rs diff --git a/src/test/ui/associated-types/object-normalization.rs b/tests/ui/associated-types/object-normalization.rs similarity index 100% rename from src/test/ui/associated-types/object-normalization.rs rename to tests/ui/associated-types/object-normalization.rs diff --git a/src/test/ui/associated-types/param-env-normalize-cycle.rs b/tests/ui/associated-types/param-env-normalize-cycle.rs similarity index 100% rename from src/test/ui/associated-types/param-env-normalize-cycle.rs rename to tests/ui/associated-types/param-env-normalize-cycle.rs diff --git a/src/test/ui/associated-types/point-at-type-on-obligation-failure-2.rs b/tests/ui/associated-types/point-at-type-on-obligation-failure-2.rs similarity index 100% rename from src/test/ui/associated-types/point-at-type-on-obligation-failure-2.rs rename to tests/ui/associated-types/point-at-type-on-obligation-failure-2.rs diff --git a/src/test/ui/associated-types/point-at-type-on-obligation-failure-2.stderr b/tests/ui/associated-types/point-at-type-on-obligation-failure-2.stderr similarity index 100% rename from src/test/ui/associated-types/point-at-type-on-obligation-failure-2.stderr rename to tests/ui/associated-types/point-at-type-on-obligation-failure-2.stderr diff --git a/src/test/ui/associated-types/point-at-type-on-obligation-failure.rs b/tests/ui/associated-types/point-at-type-on-obligation-failure.rs similarity index 100% rename from src/test/ui/associated-types/point-at-type-on-obligation-failure.rs rename to tests/ui/associated-types/point-at-type-on-obligation-failure.rs diff --git a/src/test/ui/associated-types/point-at-type-on-obligation-failure.stderr b/tests/ui/associated-types/point-at-type-on-obligation-failure.stderr similarity index 100% rename from src/test/ui/associated-types/point-at-type-on-obligation-failure.stderr rename to tests/ui/associated-types/point-at-type-on-obligation-failure.stderr diff --git a/src/test/ui/associated-types/project-defer-unification.rs b/tests/ui/associated-types/project-defer-unification.rs similarity index 100% rename from src/test/ui/associated-types/project-defer-unification.rs rename to tests/ui/associated-types/project-defer-unification.rs diff --git a/src/test/ui/associated-types/project-recursion-limit-non-fatal.rs b/tests/ui/associated-types/project-recursion-limit-non-fatal.rs similarity index 100% rename from src/test/ui/associated-types/project-recursion-limit-non-fatal.rs rename to tests/ui/associated-types/project-recursion-limit-non-fatal.rs diff --git a/src/test/ui/associated-types/substs-ppaux.normal.stderr b/tests/ui/associated-types/substs-ppaux.normal.stderr similarity index 100% rename from src/test/ui/associated-types/substs-ppaux.normal.stderr rename to tests/ui/associated-types/substs-ppaux.normal.stderr diff --git a/src/test/ui/associated-types/substs-ppaux.rs b/tests/ui/associated-types/substs-ppaux.rs similarity index 100% rename from src/test/ui/associated-types/substs-ppaux.rs rename to tests/ui/associated-types/substs-ppaux.rs diff --git a/src/test/ui/associated-types/substs-ppaux.verbose.stderr b/tests/ui/associated-types/substs-ppaux.verbose.stderr similarity index 100% rename from src/test/ui/associated-types/substs-ppaux.verbose.stderr rename to tests/ui/associated-types/substs-ppaux.verbose.stderr diff --git a/src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.rs b/tests/ui/associated-types/trait-with-supertraits-needing-sized-self.rs similarity index 100% rename from src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.rs rename to tests/ui/associated-types/trait-with-supertraits-needing-sized-self.rs diff --git a/src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr b/tests/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr similarity index 100% rename from src/test/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr rename to tests/ui/associated-types/trait-with-supertraits-needing-sized-self.stderr diff --git a/src/test/ui/associated-types/wf-cycle-2.rs b/tests/ui/associated-types/wf-cycle-2.rs similarity index 100% rename from src/test/ui/associated-types/wf-cycle-2.rs rename to tests/ui/associated-types/wf-cycle-2.rs diff --git a/src/test/ui/associated-types/wf-cycle.rs b/tests/ui/associated-types/wf-cycle.rs similarity index 100% rename from src/test/ui/associated-types/wf-cycle.rs rename to tests/ui/associated-types/wf-cycle.rs diff --git a/src/test/ui/async-await/argument-patterns.rs b/tests/ui/async-await/argument-patterns.rs similarity index 100% rename from src/test/ui/async-await/argument-patterns.rs rename to tests/ui/async-await/argument-patterns.rs diff --git a/src/test/ui/async-await/async-assoc-fn-anon-lifetimes.rs b/tests/ui/async-await/async-assoc-fn-anon-lifetimes.rs similarity index 100% rename from src/test/ui/async-await/async-assoc-fn-anon-lifetimes.rs rename to tests/ui/async-await/async-assoc-fn-anon-lifetimes.rs diff --git a/src/test/ui/async-await/async-await-let-else.drop-tracking.stderr b/tests/ui/async-await/async-await-let-else.drop-tracking.stderr similarity index 100% rename from src/test/ui/async-await/async-await-let-else.drop-tracking.stderr rename to tests/ui/async-await/async-await-let-else.drop-tracking.stderr diff --git a/src/test/ui/async-await/async-await-let-else.no-drop-tracking.stderr b/tests/ui/async-await/async-await-let-else.no-drop-tracking.stderr similarity index 100% rename from src/test/ui/async-await/async-await-let-else.no-drop-tracking.stderr rename to tests/ui/async-await/async-await-let-else.no-drop-tracking.stderr diff --git a/src/test/ui/async-await/async-await-let-else.rs b/tests/ui/async-await/async-await-let-else.rs similarity index 100% rename from src/test/ui/async-await/async-await-let-else.rs rename to tests/ui/async-await/async-await-let-else.rs diff --git a/src/test/ui/async-await/async-await.rs b/tests/ui/async-await/async-await.rs similarity index 100% rename from src/test/ui/async-await/async-await.rs rename to tests/ui/async-await/async-await.rs diff --git a/src/test/ui/async-await/async-block-control-flow-static-semantics.rs b/tests/ui/async-await/async-block-control-flow-static-semantics.rs similarity index 100% rename from src/test/ui/async-await/async-block-control-flow-static-semantics.rs rename to tests/ui/async-await/async-block-control-flow-static-semantics.rs diff --git a/src/test/ui/async-await/async-block-control-flow-static-semantics.stderr b/tests/ui/async-await/async-block-control-flow-static-semantics.stderr similarity index 100% rename from src/test/ui/async-await/async-block-control-flow-static-semantics.stderr rename to tests/ui/async-await/async-block-control-flow-static-semantics.stderr diff --git a/src/test/ui/async-await/async-borrowck-escaping-block-error.fixed b/tests/ui/async-await/async-borrowck-escaping-block-error.fixed similarity index 100% rename from src/test/ui/async-await/async-borrowck-escaping-block-error.fixed rename to tests/ui/async-await/async-borrowck-escaping-block-error.fixed diff --git a/src/test/ui/async-await/async-borrowck-escaping-block-error.rs b/tests/ui/async-await/async-borrowck-escaping-block-error.rs similarity index 100% rename from src/test/ui/async-await/async-borrowck-escaping-block-error.rs rename to tests/ui/async-await/async-borrowck-escaping-block-error.rs diff --git a/src/test/ui/async-await/async-borrowck-escaping-block-error.stderr b/tests/ui/async-await/async-borrowck-escaping-block-error.stderr similarity index 100% rename from src/test/ui/async-await/async-borrowck-escaping-block-error.stderr rename to tests/ui/async-await/async-borrowck-escaping-block-error.stderr diff --git a/src/test/ui/async-await/async-borrowck-escaping-closure-error.rs b/tests/ui/async-await/async-borrowck-escaping-closure-error.rs similarity index 100% rename from src/test/ui/async-await/async-borrowck-escaping-closure-error.rs rename to tests/ui/async-await/async-borrowck-escaping-closure-error.rs diff --git a/src/test/ui/async-await/async-borrowck-escaping-closure-error.stderr b/tests/ui/async-await/async-borrowck-escaping-closure-error.stderr similarity index 100% rename from src/test/ui/async-await/async-borrowck-escaping-closure-error.stderr rename to tests/ui/async-await/async-borrowck-escaping-closure-error.stderr diff --git a/src/test/ui/async-await/async-closure-matches-expr.rs b/tests/ui/async-await/async-closure-matches-expr.rs similarity index 100% rename from src/test/ui/async-await/async-closure-matches-expr.rs rename to tests/ui/async-await/async-closure-matches-expr.rs diff --git a/src/test/ui/async-await/async-closure.rs b/tests/ui/async-await/async-closure.rs similarity index 100% rename from src/test/ui/async-await/async-closure.rs rename to tests/ui/async-await/async-closure.rs diff --git a/src/test/ui/async-await/async-error-span.rs b/tests/ui/async-await/async-error-span.rs similarity index 100% rename from src/test/ui/async-await/async-error-span.rs rename to tests/ui/async-await/async-error-span.rs diff --git a/src/test/ui/async-await/async-error-span.stderr b/tests/ui/async-await/async-error-span.stderr similarity index 100% rename from src/test/ui/async-await/async-error-span.stderr rename to tests/ui/async-await/async-error-span.stderr diff --git a/src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs b/tests/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs similarity index 100% rename from src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs rename to tests/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs diff --git a/src/test/ui/async-await/async-fn-nonsend.rs b/tests/ui/async-await/async-fn-nonsend.rs similarity index 100% rename from src/test/ui/async-await/async-fn-nonsend.rs rename to tests/ui/async-await/async-fn-nonsend.rs diff --git a/src/test/ui/async-await/async-fn-nonsend.stderr b/tests/ui/async-await/async-fn-nonsend.stderr similarity index 100% rename from src/test/ui/async-await/async-fn-nonsend.stderr rename to tests/ui/async-await/async-fn-nonsend.stderr diff --git a/src/test/ui/async-await/async-fn-path-elision.rs b/tests/ui/async-await/async-fn-path-elision.rs similarity index 100% rename from src/test/ui/async-await/async-fn-path-elision.rs rename to tests/ui/async-await/async-fn-path-elision.rs diff --git a/src/test/ui/async-await/async-fn-path-elision.stderr b/tests/ui/async-await/async-fn-path-elision.stderr similarity index 100% rename from src/test/ui/async-await/async-fn-path-elision.stderr rename to tests/ui/async-await/async-fn-path-elision.stderr diff --git a/src/test/ui/async-await/async-fn-send-uses-nonsend.rs b/tests/ui/async-await/async-fn-send-uses-nonsend.rs similarity index 100% rename from src/test/ui/async-await/async-fn-send-uses-nonsend.rs rename to tests/ui/async-await/async-fn-send-uses-nonsend.rs diff --git a/src/test/ui/async-await/async-fn-size-moved-locals.rs b/tests/ui/async-await/async-fn-size-moved-locals.rs similarity index 100% rename from src/test/ui/async-await/async-fn-size-moved-locals.rs rename to tests/ui/async-await/async-fn-size-moved-locals.rs diff --git a/src/test/ui/async-await/async-fn-size-uninit-locals.rs b/tests/ui/async-await/async-fn-size-uninit-locals.rs similarity index 100% rename from src/test/ui/async-await/async-fn-size-uninit-locals.rs rename to tests/ui/async-await/async-fn-size-uninit-locals.rs diff --git a/src/test/ui/async-await/async-fn-size.rs b/tests/ui/async-await/async-fn-size.rs similarity index 100% rename from src/test/ui/async-await/async-fn-size.rs rename to tests/ui/async-await/async-fn-size.rs diff --git a/src/test/ui/async-await/async-is-unwindsafe.rs b/tests/ui/async-await/async-is-unwindsafe.rs similarity index 100% rename from src/test/ui/async-await/async-is-unwindsafe.rs rename to tests/ui/async-await/async-is-unwindsafe.rs diff --git a/src/test/ui/async-await/async-is-unwindsafe.stderr b/tests/ui/async-await/async-is-unwindsafe.stderr similarity index 100% rename from src/test/ui/async-await/async-is-unwindsafe.stderr rename to tests/ui/async-await/async-is-unwindsafe.stderr diff --git a/src/test/ui/async-await/async-matches-expr.rs b/tests/ui/async-await/async-matches-expr.rs similarity index 100% rename from src/test/ui/async-await/async-matches-expr.rs rename to tests/ui/async-await/async-matches-expr.rs diff --git a/src/test/ui/async-await/async-trait-fn.rs b/tests/ui/async-await/async-trait-fn.rs similarity index 100% rename from src/test/ui/async-await/async-trait-fn.rs rename to tests/ui/async-await/async-trait-fn.rs diff --git a/src/test/ui/async-await/async-trait-fn.stderr b/tests/ui/async-await/async-trait-fn.stderr similarity index 100% rename from src/test/ui/async-await/async-trait-fn.stderr rename to tests/ui/async-await/async-trait-fn.stderr diff --git a/src/test/ui/async-await/async-unsafe-fn-call-in-safe.mir.stderr b/tests/ui/async-await/async-unsafe-fn-call-in-safe.mir.stderr similarity index 100% rename from src/test/ui/async-await/async-unsafe-fn-call-in-safe.mir.stderr rename to tests/ui/async-await/async-unsafe-fn-call-in-safe.mir.stderr diff --git a/src/test/ui/async-await/async-unsafe-fn-call-in-safe.rs b/tests/ui/async-await/async-unsafe-fn-call-in-safe.rs similarity index 100% rename from src/test/ui/async-await/async-unsafe-fn-call-in-safe.rs rename to tests/ui/async-await/async-unsafe-fn-call-in-safe.rs diff --git a/src/test/ui/async-await/async-unsafe-fn-call-in-safe.thir.stderr b/tests/ui/async-await/async-unsafe-fn-call-in-safe.thir.stderr similarity index 100% rename from src/test/ui/async-await/async-unsafe-fn-call-in-safe.thir.stderr rename to tests/ui/async-await/async-unsafe-fn-call-in-safe.thir.stderr diff --git a/src/test/ui/async-await/async-with-closure.rs b/tests/ui/async-await/async-with-closure.rs similarity index 100% rename from src/test/ui/async-await/async-with-closure.rs rename to tests/ui/async-await/async-with-closure.rs diff --git a/src/test/ui/async-await/auxiliary/arc_wake.rs b/tests/ui/async-await/auxiliary/arc_wake.rs similarity index 100% rename from src/test/ui/async-await/auxiliary/arc_wake.rs rename to tests/ui/async-await/auxiliary/arc_wake.rs diff --git a/src/test/ui/async-await/auxiliary/issue-72470-lib.rs b/tests/ui/async-await/auxiliary/issue-72470-lib.rs similarity index 100% rename from src/test/ui/async-await/auxiliary/issue-72470-lib.rs rename to tests/ui/async-await/auxiliary/issue-72470-lib.rs diff --git a/src/test/ui/async-await/await-into-future.rs b/tests/ui/async-await/await-into-future.rs similarity index 100% rename from src/test/ui/async-await/await-into-future.rs rename to tests/ui/async-await/await-into-future.rs diff --git a/src/test/ui/async-await/await-keyword/2015-edition-error-various-positions.rs b/tests/ui/async-await/await-keyword/2015-edition-error-various-positions.rs similarity index 100% rename from src/test/ui/async-await/await-keyword/2015-edition-error-various-positions.rs rename to tests/ui/async-await/await-keyword/2015-edition-error-various-positions.rs diff --git a/src/test/ui/async-await/await-keyword/2015-edition-error-various-positions.stderr b/tests/ui/async-await/await-keyword/2015-edition-error-various-positions.stderr similarity index 100% rename from src/test/ui/async-await/await-keyword/2015-edition-error-various-positions.stderr rename to tests/ui/async-await/await-keyword/2015-edition-error-various-positions.stderr diff --git a/src/test/ui/async-await/await-keyword/2015-edition-warning.fixed b/tests/ui/async-await/await-keyword/2015-edition-warning.fixed similarity index 100% rename from src/test/ui/async-await/await-keyword/2015-edition-warning.fixed rename to tests/ui/async-await/await-keyword/2015-edition-warning.fixed diff --git a/src/test/ui/async-await/await-keyword/2015-edition-warning.rs b/tests/ui/async-await/await-keyword/2015-edition-warning.rs similarity index 100% rename from src/test/ui/async-await/await-keyword/2015-edition-warning.rs rename to tests/ui/async-await/await-keyword/2015-edition-warning.rs diff --git a/src/test/ui/async-await/await-keyword/2015-edition-warning.stderr b/tests/ui/async-await/await-keyword/2015-edition-warning.stderr similarity index 100% rename from src/test/ui/async-await/await-keyword/2015-edition-warning.stderr rename to tests/ui/async-await/await-keyword/2015-edition-warning.stderr diff --git a/src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.rs b/tests/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.rs similarity index 100% rename from src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.rs rename to tests/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.rs diff --git a/src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.stderr b/tests/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.stderr similarity index 100% rename from src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.stderr rename to tests/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.stderr diff --git a/src/test/ui/async-await/await-keyword/2018-edition-error.rs b/tests/ui/async-await/await-keyword/2018-edition-error.rs similarity index 100% rename from src/test/ui/async-await/await-keyword/2018-edition-error.rs rename to tests/ui/async-await/await-keyword/2018-edition-error.rs diff --git a/src/test/ui/async-await/await-keyword/2018-edition-error.stderr b/tests/ui/async-await/await-keyword/2018-edition-error.stderr similarity index 100% rename from src/test/ui/async-await/await-keyword/2018-edition-error.stderr rename to tests/ui/async-await/await-keyword/2018-edition-error.stderr diff --git a/src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.rs b/tests/ui/async-await/await-keyword/incorrect-syntax-suggestions.rs similarity index 100% rename from src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.rs rename to tests/ui/async-await/await-keyword/incorrect-syntax-suggestions.rs diff --git a/src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.stderr b/tests/ui/async-await/await-keyword/incorrect-syntax-suggestions.stderr similarity index 100% rename from src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.stderr rename to tests/ui/async-await/await-keyword/incorrect-syntax-suggestions.stderr diff --git a/src/test/ui/async-await/await-keyword/post_expansion_error.rs b/tests/ui/async-await/await-keyword/post_expansion_error.rs similarity index 100% rename from src/test/ui/async-await/await-keyword/post_expansion_error.rs rename to tests/ui/async-await/await-keyword/post_expansion_error.rs diff --git a/src/test/ui/async-await/await-keyword/post_expansion_error.stderr b/tests/ui/async-await/await-keyword/post_expansion_error.stderr similarity index 100% rename from src/test/ui/async-await/await-keyword/post_expansion_error.stderr rename to tests/ui/async-await/await-keyword/post_expansion_error.stderr diff --git a/src/test/ui/async-await/await-unsize.rs b/tests/ui/async-await/await-unsize.rs similarity index 100% rename from src/test/ui/async-await/await-unsize.rs rename to tests/ui/async-await/await-unsize.rs diff --git a/src/test/ui/async-await/bound-normalization.rs b/tests/ui/async-await/bound-normalization.rs similarity index 100% rename from src/test/ui/async-await/bound-normalization.rs rename to tests/ui/async-await/bound-normalization.rs diff --git a/src/test/ui/async-await/conditional-and-guaranteed-initialization.rs b/tests/ui/async-await/conditional-and-guaranteed-initialization.rs similarity index 100% rename from src/test/ui/async-await/conditional-and-guaranteed-initialization.rs rename to tests/ui/async-await/conditional-and-guaranteed-initialization.rs diff --git a/src/test/ui/async-await/default-struct-update.rs b/tests/ui/async-await/default-struct-update.rs similarity index 100% rename from src/test/ui/async-await/default-struct-update.rs rename to tests/ui/async-await/default-struct-update.rs diff --git a/src/test/ui/async-await/dont-print-desugared-async.rs b/tests/ui/async-await/dont-print-desugared-async.rs similarity index 100% rename from src/test/ui/async-await/dont-print-desugared-async.rs rename to tests/ui/async-await/dont-print-desugared-async.rs diff --git a/src/test/ui/async-await/dont-print-desugared-async.stderr b/tests/ui/async-await/dont-print-desugared-async.stderr similarity index 100% rename from src/test/ui/async-await/dont-print-desugared-async.stderr rename to tests/ui/async-await/dont-print-desugared-async.stderr diff --git a/src/test/ui/async-await/dont-suggest-await-on-method-return-mismatch.rs b/tests/ui/async-await/dont-suggest-await-on-method-return-mismatch.rs similarity index 100% rename from src/test/ui/async-await/dont-suggest-await-on-method-return-mismatch.rs rename to tests/ui/async-await/dont-suggest-await-on-method-return-mismatch.rs diff --git a/src/test/ui/async-await/dont-suggest-await-on-method-return-mismatch.stderr b/tests/ui/async-await/dont-suggest-await-on-method-return-mismatch.stderr similarity index 100% rename from src/test/ui/async-await/dont-suggest-await-on-method-return-mismatch.stderr rename to tests/ui/async-await/dont-suggest-await-on-method-return-mismatch.stderr diff --git a/src/test/ui/async-await/dont-suggest-missing-await.rs b/tests/ui/async-await/dont-suggest-missing-await.rs similarity index 100% rename from src/test/ui/async-await/dont-suggest-missing-await.rs rename to tests/ui/async-await/dont-suggest-missing-await.rs diff --git a/src/test/ui/async-await/dont-suggest-missing-await.stderr b/tests/ui/async-await/dont-suggest-missing-await.stderr similarity index 100% rename from src/test/ui/async-await/dont-suggest-missing-await.stderr rename to tests/ui/async-await/dont-suggest-missing-await.stderr diff --git a/src/test/ui/async-await/drop-and-assign.rs b/tests/ui/async-await/drop-and-assign.rs similarity index 100% rename from src/test/ui/async-await/drop-and-assign.rs rename to tests/ui/async-await/drop-and-assign.rs diff --git a/src/test/ui/async-await/drop-order/auxiliary/arc_wake.rs b/tests/ui/async-await/drop-order/auxiliary/arc_wake.rs similarity index 100% rename from src/test/ui/async-await/drop-order/auxiliary/arc_wake.rs rename to tests/ui/async-await/drop-order/auxiliary/arc_wake.rs diff --git a/src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters-by-ref-binding.rs b/tests/ui/async-await/drop-order/drop-order-for-async-fn-parameters-by-ref-binding.rs similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters-by-ref-binding.rs rename to tests/ui/async-await/drop-order/drop-order-for-async-fn-parameters-by-ref-binding.rs diff --git a/src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs b/tests/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs rename to tests/ui/async-await/drop-order/drop-order-for-async-fn-parameters.rs diff --git a/src/test/ui/async-await/drop-order/drop-order-for-locals-when-cancelled.rs b/tests/ui/async-await/drop-order/drop-order-for-locals-when-cancelled.rs similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-for-locals-when-cancelled.rs rename to tests/ui/async-await/drop-order/drop-order-for-locals-when-cancelled.rs diff --git a/src/test/ui/async-await/drop-order/drop-order-for-temporary-in-tail-return-expr.rs b/tests/ui/async-await/drop-order/drop-order-for-temporary-in-tail-return-expr.rs similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-for-temporary-in-tail-return-expr.rs rename to tests/ui/async-await/drop-order/drop-order-for-temporary-in-tail-return-expr.rs diff --git a/src/test/ui/async-await/drop-order/drop-order-locals-are-hidden.rs b/tests/ui/async-await/drop-order/drop-order-locals-are-hidden.rs similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-locals-are-hidden.rs rename to tests/ui/async-await/drop-order/drop-order-locals-are-hidden.rs diff --git a/src/test/ui/async-await/drop-order/drop-order-locals-are-hidden.stderr b/tests/ui/async-await/drop-order/drop-order-locals-are-hidden.stderr similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-locals-are-hidden.stderr rename to tests/ui/async-await/drop-order/drop-order-locals-are-hidden.stderr diff --git a/src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs b/tests/ui/async-await/drop-order/drop-order-when-cancelled.rs similarity index 100% rename from src/test/ui/async-await/drop-order/drop-order-when-cancelled.rs rename to tests/ui/async-await/drop-order/drop-order-when-cancelled.rs diff --git a/src/test/ui/async-await/drop-track-bad-field-in-fru.rs b/tests/ui/async-await/drop-track-bad-field-in-fru.rs similarity index 100% rename from src/test/ui/async-await/drop-track-bad-field-in-fru.rs rename to tests/ui/async-await/drop-track-bad-field-in-fru.rs diff --git a/src/test/ui/async-await/drop-track-bad-field-in-fru.stderr b/tests/ui/async-await/drop-track-bad-field-in-fru.stderr similarity index 100% rename from src/test/ui/async-await/drop-track-bad-field-in-fru.stderr rename to tests/ui/async-await/drop-track-bad-field-in-fru.stderr diff --git a/src/test/ui/async-await/drop-track-field-assign-nonsend.rs b/tests/ui/async-await/drop-track-field-assign-nonsend.rs similarity index 100% rename from src/test/ui/async-await/drop-track-field-assign-nonsend.rs rename to tests/ui/async-await/drop-track-field-assign-nonsend.rs diff --git a/src/test/ui/async-await/drop-track-field-assign-nonsend.stderr b/tests/ui/async-await/drop-track-field-assign-nonsend.stderr similarity index 100% rename from src/test/ui/async-await/drop-track-field-assign-nonsend.stderr rename to tests/ui/async-await/drop-track-field-assign-nonsend.stderr diff --git a/src/test/ui/async-await/drop-track-field-assign.rs b/tests/ui/async-await/drop-track-field-assign.rs similarity index 100% rename from src/test/ui/async-await/drop-track-field-assign.rs rename to tests/ui/async-await/drop-track-field-assign.rs diff --git a/src/test/ui/async-await/drop-tracking-unresolved-typeck-results.rs b/tests/ui/async-await/drop-tracking-unresolved-typeck-results.rs similarity index 100% rename from src/test/ui/async-await/drop-tracking-unresolved-typeck-results.rs rename to tests/ui/async-await/drop-tracking-unresolved-typeck-results.rs diff --git a/src/test/ui/async-await/drop-tracking-unresolved-typeck-results.stderr b/tests/ui/async-await/drop-tracking-unresolved-typeck-results.stderr similarity index 100% rename from src/test/ui/async-await/drop-tracking-unresolved-typeck-results.stderr rename to tests/ui/async-await/drop-tracking-unresolved-typeck-results.stderr diff --git a/src/test/ui/async-await/edition-deny-async-fns-2015.rs b/tests/ui/async-await/edition-deny-async-fns-2015.rs similarity index 100% rename from src/test/ui/async-await/edition-deny-async-fns-2015.rs rename to tests/ui/async-await/edition-deny-async-fns-2015.rs diff --git a/src/test/ui/async-await/edition-deny-async-fns-2015.stderr b/tests/ui/async-await/edition-deny-async-fns-2015.stderr similarity index 100% rename from src/test/ui/async-await/edition-deny-async-fns-2015.stderr rename to tests/ui/async-await/edition-deny-async-fns-2015.stderr diff --git a/src/test/ui/async-await/expansion-in-attrs.rs b/tests/ui/async-await/expansion-in-attrs.rs similarity index 100% rename from src/test/ui/async-await/expansion-in-attrs.rs rename to tests/ui/async-await/expansion-in-attrs.rs diff --git a/src/test/ui/async-await/feature-async-closure.rs b/tests/ui/async-await/feature-async-closure.rs similarity index 100% rename from src/test/ui/async-await/feature-async-closure.rs rename to tests/ui/async-await/feature-async-closure.rs diff --git a/src/test/ui/async-await/feature-async-closure.stderr b/tests/ui/async-await/feature-async-closure.stderr similarity index 100% rename from src/test/ui/async-await/feature-async-closure.stderr rename to tests/ui/async-await/feature-async-closure.stderr diff --git a/src/test/ui/async-await/feature-gate-async_fn_in_trait.rs b/tests/ui/async-await/feature-gate-async_fn_in_trait.rs similarity index 100% rename from src/test/ui/async-await/feature-gate-async_fn_in_trait.rs rename to tests/ui/async-await/feature-gate-async_fn_in_trait.rs diff --git a/src/test/ui/async-await/feature-gate-async_fn_in_trait.stderr b/tests/ui/async-await/feature-gate-async_fn_in_trait.stderr similarity index 100% rename from src/test/ui/async-await/feature-gate-async_fn_in_trait.stderr rename to tests/ui/async-await/feature-gate-async_fn_in_trait.stderr diff --git a/src/test/ui/async-await/feature-self-return-type.rs b/tests/ui/async-await/feature-self-return-type.rs similarity index 100% rename from src/test/ui/async-await/feature-self-return-type.rs rename to tests/ui/async-await/feature-self-return-type.rs diff --git a/src/test/ui/async-await/feature-self-return-type.stderr b/tests/ui/async-await/feature-self-return-type.stderr similarity index 100% rename from src/test/ui/async-await/feature-self-return-type.stderr rename to tests/ui/async-await/feature-self-return-type.stderr diff --git a/src/test/ui/async-await/futures-api.rs b/tests/ui/async-await/futures-api.rs similarity index 100% rename from src/test/ui/async-await/futures-api.rs rename to tests/ui/async-await/futures-api.rs diff --git a/src/test/ui/async-await/generator-desc.rs b/tests/ui/async-await/generator-desc.rs similarity index 100% rename from src/test/ui/async-await/generator-desc.rs rename to tests/ui/async-await/generator-desc.rs diff --git a/src/test/ui/async-await/generator-desc.stderr b/tests/ui/async-await/generator-desc.stderr similarity index 100% rename from src/test/ui/async-await/generator-desc.stderr rename to tests/ui/async-await/generator-desc.stderr diff --git a/src/test/ui/async-await/generator-not-future.rs b/tests/ui/async-await/generator-not-future.rs similarity index 100% rename from src/test/ui/async-await/generator-not-future.rs rename to tests/ui/async-await/generator-not-future.rs diff --git a/src/test/ui/async-await/generator-not-future.stderr b/tests/ui/async-await/generator-not-future.stderr similarity index 100% rename from src/test/ui/async-await/generator-not-future.stderr rename to tests/ui/async-await/generator-not-future.stderr diff --git a/src/test/ui/async-await/generics-and-bounds.rs b/tests/ui/async-await/generics-and-bounds.rs similarity index 100% rename from src/test/ui/async-await/generics-and-bounds.rs rename to tests/ui/async-await/generics-and-bounds.rs diff --git a/src/test/ui/async-await/in-trait/async-associated-types.rs b/tests/ui/async-await/in-trait/async-associated-types.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-associated-types.rs rename to tests/ui/async-await/in-trait/async-associated-types.rs diff --git a/src/test/ui/async-await/in-trait/async-associated-types2.rs b/tests/ui/async-await/in-trait/async-associated-types2.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-associated-types2.rs rename to tests/ui/async-await/in-trait/async-associated-types2.rs diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.rs b/tests/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.rs rename to tests/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.rs diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.stderr b/tests/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.stderr rename to tests/ui/async-await/in-trait/async-example-desugared-boxed-in-trait.stderr diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-boxed.rs b/tests/ui/async-await/in-trait/async-example-desugared-boxed.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-boxed.rs rename to tests/ui/async-await/in-trait/async-example-desugared-boxed.rs diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-boxed.stderr b/tests/ui/async-await/in-trait/async-example-desugared-boxed.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-boxed.stderr rename to tests/ui/async-await/in-trait/async-example-desugared-boxed.stderr diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-extra.rs b/tests/ui/async-await/in-trait/async-example-desugared-extra.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-extra.rs rename to tests/ui/async-await/in-trait/async-example-desugared-extra.rs diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-in-trait.rs b/tests/ui/async-await/in-trait/async-example-desugared-in-trait.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-in-trait.rs rename to tests/ui/async-await/in-trait/async-example-desugared-in-trait.rs diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-manual.rs b/tests/ui/async-await/in-trait/async-example-desugared-manual.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-manual.rs rename to tests/ui/async-await/in-trait/async-example-desugared-manual.rs diff --git a/src/test/ui/async-await/in-trait/async-example-desugared-manual.stderr b/tests/ui/async-await/in-trait/async-example-desugared-manual.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared-manual.stderr rename to tests/ui/async-await/in-trait/async-example-desugared-manual.stderr diff --git a/src/test/ui/async-await/in-trait/async-example-desugared.rs b/tests/ui/async-await/in-trait/async-example-desugared.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example-desugared.rs rename to tests/ui/async-await/in-trait/async-example-desugared.rs diff --git a/src/test/ui/async-await/in-trait/async-example.rs b/tests/ui/async-await/in-trait/async-example.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-example.rs rename to tests/ui/async-await/in-trait/async-example.rs diff --git a/src/test/ui/async-await/in-trait/async-generics-and-bounds.rs b/tests/ui/async-await/in-trait/async-generics-and-bounds.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-generics-and-bounds.rs rename to tests/ui/async-await/in-trait/async-generics-and-bounds.rs diff --git a/src/test/ui/async-await/in-trait/async-generics-and-bounds.stderr b/tests/ui/async-await/in-trait/async-generics-and-bounds.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-generics-and-bounds.stderr rename to tests/ui/async-await/in-trait/async-generics-and-bounds.stderr diff --git a/src/test/ui/async-await/in-trait/async-generics.rs b/tests/ui/async-await/in-trait/async-generics.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-generics.rs rename to tests/ui/async-await/in-trait/async-generics.rs diff --git a/src/test/ui/async-await/in-trait/async-generics.stderr b/tests/ui/async-await/in-trait/async-generics.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-generics.stderr rename to tests/ui/async-await/in-trait/async-generics.stderr diff --git a/src/test/ui/async-await/in-trait/async-lifetimes-and-bounds.rs b/tests/ui/async-await/in-trait/async-lifetimes-and-bounds.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-lifetimes-and-bounds.rs rename to tests/ui/async-await/in-trait/async-lifetimes-and-bounds.rs diff --git a/src/test/ui/async-await/in-trait/async-lifetimes.rs b/tests/ui/async-await/in-trait/async-lifetimes.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-lifetimes.rs rename to tests/ui/async-await/in-trait/async-lifetimes.rs diff --git a/src/test/ui/async-await/in-trait/async-recursive-generic.rs b/tests/ui/async-await/in-trait/async-recursive-generic.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-recursive-generic.rs rename to tests/ui/async-await/in-trait/async-recursive-generic.rs diff --git a/src/test/ui/async-await/in-trait/async-recursive-generic.stderr b/tests/ui/async-await/in-trait/async-recursive-generic.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-recursive-generic.stderr rename to tests/ui/async-await/in-trait/async-recursive-generic.stderr diff --git a/src/test/ui/async-await/in-trait/async-recursive.rs b/tests/ui/async-await/in-trait/async-recursive.rs similarity index 100% rename from src/test/ui/async-await/in-trait/async-recursive.rs rename to tests/ui/async-await/in-trait/async-recursive.rs diff --git a/src/test/ui/async-await/in-trait/async-recursive.stderr b/tests/ui/async-await/in-trait/async-recursive.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/async-recursive.stderr rename to tests/ui/async-await/in-trait/async-recursive.stderr diff --git a/src/test/ui/async-await/in-trait/bad-signatures.rs b/tests/ui/async-await/in-trait/bad-signatures.rs similarity index 100% rename from src/test/ui/async-await/in-trait/bad-signatures.rs rename to tests/ui/async-await/in-trait/bad-signatures.rs diff --git a/src/test/ui/async-await/in-trait/bad-signatures.stderr b/tests/ui/async-await/in-trait/bad-signatures.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/bad-signatures.stderr rename to tests/ui/async-await/in-trait/bad-signatures.stderr diff --git a/src/test/ui/async-await/in-trait/early-bound-1.rs b/tests/ui/async-await/in-trait/early-bound-1.rs similarity index 100% rename from src/test/ui/async-await/in-trait/early-bound-1.rs rename to tests/ui/async-await/in-trait/early-bound-1.rs diff --git a/src/test/ui/async-await/in-trait/early-bound-2.rs b/tests/ui/async-await/in-trait/early-bound-2.rs similarity index 100% rename from src/test/ui/async-await/in-trait/early-bound-2.rs rename to tests/ui/async-await/in-trait/early-bound-2.rs diff --git a/src/test/ui/async-await/in-trait/fn-not-async-err.rs b/tests/ui/async-await/in-trait/fn-not-async-err.rs similarity index 100% rename from src/test/ui/async-await/in-trait/fn-not-async-err.rs rename to tests/ui/async-await/in-trait/fn-not-async-err.rs diff --git a/src/test/ui/async-await/in-trait/fn-not-async-err.stderr b/tests/ui/async-await/in-trait/fn-not-async-err.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/fn-not-async-err.stderr rename to tests/ui/async-await/in-trait/fn-not-async-err.stderr diff --git a/src/test/ui/async-await/in-trait/fn-not-async-err2.rs b/tests/ui/async-await/in-trait/fn-not-async-err2.rs similarity index 100% rename from src/test/ui/async-await/in-trait/fn-not-async-err2.rs rename to tests/ui/async-await/in-trait/fn-not-async-err2.rs diff --git a/src/test/ui/async-await/in-trait/fn-not-async-err2.stderr b/tests/ui/async-await/in-trait/fn-not-async-err2.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/fn-not-async-err2.stderr rename to tests/ui/async-await/in-trait/fn-not-async-err2.stderr diff --git a/src/test/ui/async-await/in-trait/implied-bounds.rs b/tests/ui/async-await/in-trait/implied-bounds.rs similarity index 100% rename from src/test/ui/async-await/in-trait/implied-bounds.rs rename to tests/ui/async-await/in-trait/implied-bounds.rs diff --git a/src/test/ui/async-await/in-trait/issue-102138.rs b/tests/ui/async-await/in-trait/issue-102138.rs similarity index 100% rename from src/test/ui/async-await/in-trait/issue-102138.rs rename to tests/ui/async-await/in-trait/issue-102138.rs diff --git a/src/test/ui/async-await/in-trait/issue-102219.rs b/tests/ui/async-await/in-trait/issue-102219.rs similarity index 100% rename from src/test/ui/async-await/in-trait/issue-102219.rs rename to tests/ui/async-await/in-trait/issue-102219.rs diff --git a/src/test/ui/async-await/in-trait/issue-102310.rs b/tests/ui/async-await/in-trait/issue-102310.rs similarity index 100% rename from src/test/ui/async-await/in-trait/issue-102310.rs rename to tests/ui/async-await/in-trait/issue-102310.rs diff --git a/src/test/ui/async-await/in-trait/issue-104678.rs b/tests/ui/async-await/in-trait/issue-104678.rs similarity index 100% rename from src/test/ui/async-await/in-trait/issue-104678.rs rename to tests/ui/async-await/in-trait/issue-104678.rs diff --git a/src/test/ui/async-await/in-trait/lifetime-mismatch.rs b/tests/ui/async-await/in-trait/lifetime-mismatch.rs similarity index 100% rename from src/test/ui/async-await/in-trait/lifetime-mismatch.rs rename to tests/ui/async-await/in-trait/lifetime-mismatch.rs diff --git a/src/test/ui/async-await/in-trait/lifetime-mismatch.stderr b/tests/ui/async-await/in-trait/lifetime-mismatch.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/lifetime-mismatch.stderr rename to tests/ui/async-await/in-trait/lifetime-mismatch.stderr diff --git a/src/test/ui/async-await/in-trait/nested-rpit.rs b/tests/ui/async-await/in-trait/nested-rpit.rs similarity index 100% rename from src/test/ui/async-await/in-trait/nested-rpit.rs rename to tests/ui/async-await/in-trait/nested-rpit.rs diff --git a/src/test/ui/async-await/in-trait/object-safety.rs b/tests/ui/async-await/in-trait/object-safety.rs similarity index 100% rename from src/test/ui/async-await/in-trait/object-safety.rs rename to tests/ui/async-await/in-trait/object-safety.rs diff --git a/src/test/ui/async-await/in-trait/object-safety.stderr b/tests/ui/async-await/in-trait/object-safety.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/object-safety.stderr rename to tests/ui/async-await/in-trait/object-safety.stderr diff --git a/src/test/ui/async-await/in-trait/return-type-suggestion.rs b/tests/ui/async-await/in-trait/return-type-suggestion.rs similarity index 100% rename from src/test/ui/async-await/in-trait/return-type-suggestion.rs rename to tests/ui/async-await/in-trait/return-type-suggestion.rs diff --git a/src/test/ui/async-await/in-trait/return-type-suggestion.stderr b/tests/ui/async-await/in-trait/return-type-suggestion.stderr similarity index 100% rename from src/test/ui/async-await/in-trait/return-type-suggestion.stderr rename to tests/ui/async-await/in-trait/return-type-suggestion.stderr diff --git a/src/test/ui/async-await/incorrect-move-async-order-issue-79694.fixed b/tests/ui/async-await/incorrect-move-async-order-issue-79694.fixed similarity index 100% rename from src/test/ui/async-await/incorrect-move-async-order-issue-79694.fixed rename to tests/ui/async-await/incorrect-move-async-order-issue-79694.fixed diff --git a/src/test/ui/async-await/incorrect-move-async-order-issue-79694.rs b/tests/ui/async-await/incorrect-move-async-order-issue-79694.rs similarity index 100% rename from src/test/ui/async-await/incorrect-move-async-order-issue-79694.rs rename to tests/ui/async-await/incorrect-move-async-order-issue-79694.rs diff --git a/src/test/ui/async-await/incorrect-move-async-order-issue-79694.stderr b/tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr similarity index 100% rename from src/test/ui/async-await/incorrect-move-async-order-issue-79694.stderr rename to tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr diff --git a/src/test/ui/async-await/interior-with-const-generic-expr.rs b/tests/ui/async-await/interior-with-const-generic-expr.rs similarity index 100% rename from src/test/ui/async-await/interior-with-const-generic-expr.rs rename to tests/ui/async-await/interior-with-const-generic-expr.rs diff --git a/src/test/ui/async-await/issue-101715.rs b/tests/ui/async-await/issue-101715.rs similarity index 100% rename from src/test/ui/async-await/issue-101715.rs rename to tests/ui/async-await/issue-101715.rs diff --git a/src/test/ui/async-await/issue-101715.stderr b/tests/ui/async-await/issue-101715.stderr similarity index 100% rename from src/test/ui/async-await/issue-101715.stderr rename to tests/ui/async-await/issue-101715.stderr diff --git a/src/test/ui/async-await/issue-105501.rs b/tests/ui/async-await/issue-105501.rs similarity index 100% rename from src/test/ui/async-await/issue-105501.rs rename to tests/ui/async-await/issue-105501.rs diff --git a/src/test/ui/async-await/issue-54239-private-type-triggers-lint.rs b/tests/ui/async-await/issue-54239-private-type-triggers-lint.rs similarity index 100% rename from src/test/ui/async-await/issue-54239-private-type-triggers-lint.rs rename to tests/ui/async-await/issue-54239-private-type-triggers-lint.rs diff --git a/src/test/ui/async-await/issue-60709.rs b/tests/ui/async-await/issue-60709.rs similarity index 100% rename from src/test/ui/async-await/issue-60709.rs rename to tests/ui/async-await/issue-60709.rs diff --git a/src/test/ui/async-await/issue-61076.rs b/tests/ui/async-await/issue-61076.rs similarity index 100% rename from src/test/ui/async-await/issue-61076.rs rename to tests/ui/async-await/issue-61076.rs diff --git a/src/test/ui/async-await/issue-61076.stderr b/tests/ui/async-await/issue-61076.stderr similarity index 100% rename from src/test/ui/async-await/issue-61076.stderr rename to tests/ui/async-await/issue-61076.stderr diff --git a/src/test/ui/async-await/issue-61452.rs b/tests/ui/async-await/issue-61452.rs similarity index 100% rename from src/test/ui/async-await/issue-61452.rs rename to tests/ui/async-await/issue-61452.rs diff --git a/src/test/ui/async-await/issue-61452.stderr b/tests/ui/async-await/issue-61452.stderr similarity index 100% rename from src/test/ui/async-await/issue-61452.stderr rename to tests/ui/async-await/issue-61452.stderr diff --git a/src/test/ui/async-await/issue-61793.rs b/tests/ui/async-await/issue-61793.rs similarity index 100% rename from src/test/ui/async-await/issue-61793.rs rename to tests/ui/async-await/issue-61793.rs diff --git a/src/test/ui/async-await/issue-61949-self-return-type.rs b/tests/ui/async-await/issue-61949-self-return-type.rs similarity index 100% rename from src/test/ui/async-await/issue-61949-self-return-type.rs rename to tests/ui/async-await/issue-61949-self-return-type.rs diff --git a/src/test/ui/async-await/issue-61949-self-return-type.stderr b/tests/ui/async-await/issue-61949-self-return-type.stderr similarity index 100% rename from src/test/ui/async-await/issue-61949-self-return-type.stderr rename to tests/ui/async-await/issue-61949-self-return-type.stderr diff --git a/src/test/ui/async-await/issue-62658.rs b/tests/ui/async-await/issue-62658.rs similarity index 100% rename from src/test/ui/async-await/issue-62658.rs rename to tests/ui/async-await/issue-62658.rs diff --git a/src/test/ui/async-await/issue-63832-await-short-temporary-lifetime-1.rs b/tests/ui/async-await/issue-63832-await-short-temporary-lifetime-1.rs similarity index 100% rename from src/test/ui/async-await/issue-63832-await-short-temporary-lifetime-1.rs rename to tests/ui/async-await/issue-63832-await-short-temporary-lifetime-1.rs diff --git a/src/test/ui/async-await/issue-63832-await-short-temporary-lifetime.rs b/tests/ui/async-await/issue-63832-await-short-temporary-lifetime.rs similarity index 100% rename from src/test/ui/async-await/issue-63832-await-short-temporary-lifetime.rs rename to tests/ui/async-await/issue-63832-await-short-temporary-lifetime.rs diff --git a/src/test/ui/async-await/issue-64130-1-sync.rs b/tests/ui/async-await/issue-64130-1-sync.rs similarity index 100% rename from src/test/ui/async-await/issue-64130-1-sync.rs rename to tests/ui/async-await/issue-64130-1-sync.rs diff --git a/src/test/ui/async-await/issue-64130-1-sync.stderr b/tests/ui/async-await/issue-64130-1-sync.stderr similarity index 100% rename from src/test/ui/async-await/issue-64130-1-sync.stderr rename to tests/ui/async-await/issue-64130-1-sync.stderr diff --git a/src/test/ui/async-await/issue-64130-2-send.rs b/tests/ui/async-await/issue-64130-2-send.rs similarity index 100% rename from src/test/ui/async-await/issue-64130-2-send.rs rename to tests/ui/async-await/issue-64130-2-send.rs diff --git a/src/test/ui/async-await/issue-64130-2-send.stderr b/tests/ui/async-await/issue-64130-2-send.stderr similarity index 100% rename from src/test/ui/async-await/issue-64130-2-send.stderr rename to tests/ui/async-await/issue-64130-2-send.stderr diff --git a/src/test/ui/async-await/issue-64130-3-other.rs b/tests/ui/async-await/issue-64130-3-other.rs similarity index 100% rename from src/test/ui/async-await/issue-64130-3-other.rs rename to tests/ui/async-await/issue-64130-3-other.rs diff --git a/src/test/ui/async-await/issue-64130-3-other.stderr b/tests/ui/async-await/issue-64130-3-other.stderr similarity index 100% rename from src/test/ui/async-await/issue-64130-3-other.stderr rename to tests/ui/async-await/issue-64130-3-other.stderr diff --git a/src/test/ui/async-await/issue-64130-4-async-move.drop-tracking.stderr b/tests/ui/async-await/issue-64130-4-async-move.drop-tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-64130-4-async-move.drop-tracking.stderr rename to tests/ui/async-await/issue-64130-4-async-move.drop-tracking.stderr diff --git a/src/test/ui/async-await/issue-64130-4-async-move.no_drop_tracking.stderr b/tests/ui/async-await/issue-64130-4-async-move.no_drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-64130-4-async-move.no_drop_tracking.stderr rename to tests/ui/async-await/issue-64130-4-async-move.no_drop_tracking.stderr diff --git a/src/test/ui/async-await/issue-64130-4-async-move.rs b/tests/ui/async-await/issue-64130-4-async-move.rs similarity index 100% rename from src/test/ui/async-await/issue-64130-4-async-move.rs rename to tests/ui/async-await/issue-64130-4-async-move.rs diff --git a/src/test/ui/async-await/issue-64130-non-send-future-diags.rs b/tests/ui/async-await/issue-64130-non-send-future-diags.rs similarity index 100% rename from src/test/ui/async-await/issue-64130-non-send-future-diags.rs rename to tests/ui/async-await/issue-64130-non-send-future-diags.rs diff --git a/src/test/ui/async-await/issue-64130-non-send-future-diags.stderr b/tests/ui/async-await/issue-64130-non-send-future-diags.stderr similarity index 100% rename from src/test/ui/async-await/issue-64130-non-send-future-diags.stderr rename to tests/ui/async-await/issue-64130-non-send-future-diags.stderr diff --git a/src/test/ui/async-await/issue-64391.rs b/tests/ui/async-await/issue-64391.rs similarity index 100% rename from src/test/ui/async-await/issue-64391.rs rename to tests/ui/async-await/issue-64391.rs diff --git a/src/test/ui/async-await/issue-66312.rs b/tests/ui/async-await/issue-66312.rs similarity index 100% rename from src/test/ui/async-await/issue-66312.rs rename to tests/ui/async-await/issue-66312.rs diff --git a/src/test/ui/async-await/issue-66312.stderr b/tests/ui/async-await/issue-66312.stderr similarity index 100% rename from src/test/ui/async-await/issue-66312.stderr rename to tests/ui/async-await/issue-66312.stderr diff --git a/src/test/ui/async-await/issue-66387-if-without-else.rs b/tests/ui/async-await/issue-66387-if-without-else.rs similarity index 100% rename from src/test/ui/async-await/issue-66387-if-without-else.rs rename to tests/ui/async-await/issue-66387-if-without-else.rs diff --git a/src/test/ui/async-await/issue-66387-if-without-else.stderr b/tests/ui/async-await/issue-66387-if-without-else.stderr similarity index 100% rename from src/test/ui/async-await/issue-66387-if-without-else.stderr rename to tests/ui/async-await/issue-66387-if-without-else.stderr diff --git a/src/test/ui/async-await/issue-67252-unnamed-future.rs b/tests/ui/async-await/issue-67252-unnamed-future.rs similarity index 100% rename from src/test/ui/async-await/issue-67252-unnamed-future.rs rename to tests/ui/async-await/issue-67252-unnamed-future.rs diff --git a/src/test/ui/async-await/issue-67252-unnamed-future.stderr b/tests/ui/async-await/issue-67252-unnamed-future.stderr similarity index 100% rename from src/test/ui/async-await/issue-67252-unnamed-future.stderr rename to tests/ui/async-await/issue-67252-unnamed-future.stderr diff --git a/src/test/ui/async-await/issue-67651.rs b/tests/ui/async-await/issue-67651.rs similarity index 100% rename from src/test/ui/async-await/issue-67651.rs rename to tests/ui/async-await/issue-67651.rs diff --git a/src/test/ui/async-await/issue-67651.stderr b/tests/ui/async-await/issue-67651.stderr similarity index 100% rename from src/test/ui/async-await/issue-67651.stderr rename to tests/ui/async-await/issue-67651.stderr diff --git a/src/test/ui/async-await/issue-67765-async-diagnostic.rs b/tests/ui/async-await/issue-67765-async-diagnostic.rs similarity index 100% rename from src/test/ui/async-await/issue-67765-async-diagnostic.rs rename to tests/ui/async-await/issue-67765-async-diagnostic.rs diff --git a/src/test/ui/async-await/issue-67765-async-diagnostic.stderr b/tests/ui/async-await/issue-67765-async-diagnostic.stderr similarity index 100% rename from src/test/ui/async-await/issue-67765-async-diagnostic.stderr rename to tests/ui/async-await/issue-67765-async-diagnostic.stderr diff --git a/src/test/ui/async-await/issue-68112.drop_tracking.stderr b/tests/ui/async-await/issue-68112.drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-68112.drop_tracking.stderr rename to tests/ui/async-await/issue-68112.drop_tracking.stderr diff --git a/src/test/ui/async-await/issue-68112.no_drop_tracking.stderr b/tests/ui/async-await/issue-68112.no_drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-68112.no_drop_tracking.stderr rename to tests/ui/async-await/issue-68112.no_drop_tracking.stderr diff --git a/src/test/ui/async-await/issue-68112.rs b/tests/ui/async-await/issue-68112.rs similarity index 100% rename from src/test/ui/async-await/issue-68112.rs rename to tests/ui/async-await/issue-68112.rs diff --git a/src/test/ui/async-await/issue-68523-start.rs b/tests/ui/async-await/issue-68523-start.rs similarity index 100% rename from src/test/ui/async-await/issue-68523-start.rs rename to tests/ui/async-await/issue-68523-start.rs diff --git a/src/test/ui/async-await/issue-68523-start.stderr b/tests/ui/async-await/issue-68523-start.stderr similarity index 100% rename from src/test/ui/async-await/issue-68523-start.stderr rename to tests/ui/async-await/issue-68523-start.stderr diff --git a/src/test/ui/async-await/issue-68523.rs b/tests/ui/async-await/issue-68523.rs similarity index 100% rename from src/test/ui/async-await/issue-68523.rs rename to tests/ui/async-await/issue-68523.rs diff --git a/src/test/ui/async-await/issue-68523.stderr b/tests/ui/async-await/issue-68523.stderr similarity index 100% rename from src/test/ui/async-await/issue-68523.stderr rename to tests/ui/async-await/issue-68523.stderr diff --git a/src/test/ui/async-await/issue-69446-fnmut-capture.rs b/tests/ui/async-await/issue-69446-fnmut-capture.rs similarity index 100% rename from src/test/ui/async-await/issue-69446-fnmut-capture.rs rename to tests/ui/async-await/issue-69446-fnmut-capture.rs diff --git a/src/test/ui/async-await/issue-69446-fnmut-capture.stderr b/tests/ui/async-await/issue-69446-fnmut-capture.stderr similarity index 100% rename from src/test/ui/async-await/issue-69446-fnmut-capture.stderr rename to tests/ui/async-await/issue-69446-fnmut-capture.stderr diff --git a/src/test/ui/async-await/issue-70594.rs b/tests/ui/async-await/issue-70594.rs similarity index 100% rename from src/test/ui/async-await/issue-70594.rs rename to tests/ui/async-await/issue-70594.rs diff --git a/src/test/ui/async-await/issue-70594.stderr b/tests/ui/async-await/issue-70594.stderr similarity index 100% rename from src/test/ui/async-await/issue-70594.stderr rename to tests/ui/async-await/issue-70594.stderr diff --git a/src/test/ui/async-await/issue-70818.rs b/tests/ui/async-await/issue-70818.rs similarity index 100% rename from src/test/ui/async-await/issue-70818.rs rename to tests/ui/async-await/issue-70818.rs diff --git a/src/test/ui/async-await/issue-70818.stderr b/tests/ui/async-await/issue-70818.stderr similarity index 100% rename from src/test/ui/async-await/issue-70818.stderr rename to tests/ui/async-await/issue-70818.stderr diff --git a/src/test/ui/async-await/issue-70935-complex-spans.drop_tracking.stderr b/tests/ui/async-await/issue-70935-complex-spans.drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-70935-complex-spans.drop_tracking.stderr rename to tests/ui/async-await/issue-70935-complex-spans.drop_tracking.stderr diff --git a/src/test/ui/async-await/issue-70935-complex-spans.no_drop_tracking.stderr b/tests/ui/async-await/issue-70935-complex-spans.no_drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-70935-complex-spans.no_drop_tracking.stderr rename to tests/ui/async-await/issue-70935-complex-spans.no_drop_tracking.stderr diff --git a/src/test/ui/async-await/issue-70935-complex-spans.rs b/tests/ui/async-await/issue-70935-complex-spans.rs similarity index 100% rename from src/test/ui/async-await/issue-70935-complex-spans.rs rename to tests/ui/async-await/issue-70935-complex-spans.rs diff --git a/src/test/ui/async-await/issue-71137.rs b/tests/ui/async-await/issue-71137.rs similarity index 100% rename from src/test/ui/async-await/issue-71137.rs rename to tests/ui/async-await/issue-71137.rs diff --git a/src/test/ui/async-await/issue-71137.stderr b/tests/ui/async-await/issue-71137.stderr similarity index 100% rename from src/test/ui/async-await/issue-71137.stderr rename to tests/ui/async-await/issue-71137.stderr diff --git a/src/test/ui/async-await/issue-72442.rs b/tests/ui/async-await/issue-72442.rs similarity index 100% rename from src/test/ui/async-await/issue-72442.rs rename to tests/ui/async-await/issue-72442.rs diff --git a/src/test/ui/async-await/issue-72442.stderr b/tests/ui/async-await/issue-72442.stderr similarity index 100% rename from src/test/ui/async-await/issue-72442.stderr rename to tests/ui/async-await/issue-72442.stderr diff --git a/src/test/ui/async-await/issue-72470-llvm-dominate.rs b/tests/ui/async-await/issue-72470-llvm-dominate.rs similarity index 100% rename from src/test/ui/async-await/issue-72470-llvm-dominate.rs rename to tests/ui/async-await/issue-72470-llvm-dominate.rs diff --git a/src/test/ui/async-await/issue-72590-type-error-sized.rs b/tests/ui/async-await/issue-72590-type-error-sized.rs similarity index 100% rename from src/test/ui/async-await/issue-72590-type-error-sized.rs rename to tests/ui/async-await/issue-72590-type-error-sized.rs diff --git a/src/test/ui/async-await/issue-72590-type-error-sized.stderr b/tests/ui/async-await/issue-72590-type-error-sized.stderr similarity index 100% rename from src/test/ui/async-await/issue-72590-type-error-sized.stderr rename to tests/ui/async-await/issue-72590-type-error-sized.stderr diff --git a/src/test/ui/async-await/issue-73050.rs b/tests/ui/async-await/issue-73050.rs similarity index 100% rename from src/test/ui/async-await/issue-73050.rs rename to tests/ui/async-await/issue-73050.rs diff --git a/src/test/ui/async-await/issue-73137.rs b/tests/ui/async-await/issue-73137.rs similarity index 100% rename from src/test/ui/async-await/issue-73137.rs rename to tests/ui/async-await/issue-73137.rs diff --git a/src/test/ui/async-await/issue-73541-1.rs b/tests/ui/async-await/issue-73541-1.rs similarity index 100% rename from src/test/ui/async-await/issue-73541-1.rs rename to tests/ui/async-await/issue-73541-1.rs diff --git a/src/test/ui/async-await/issue-73541-1.stderr b/tests/ui/async-await/issue-73541-1.stderr similarity index 100% rename from src/test/ui/async-await/issue-73541-1.stderr rename to tests/ui/async-await/issue-73541-1.stderr diff --git a/src/test/ui/async-await/issue-73541-2.rs b/tests/ui/async-await/issue-73541-2.rs similarity index 100% rename from src/test/ui/async-await/issue-73541-2.rs rename to tests/ui/async-await/issue-73541-2.rs diff --git a/src/test/ui/async-await/issue-73541-2.stderr b/tests/ui/async-await/issue-73541-2.stderr similarity index 100% rename from src/test/ui/async-await/issue-73541-2.stderr rename to tests/ui/async-await/issue-73541-2.stderr diff --git a/src/test/ui/async-await/issue-73541-3.rs b/tests/ui/async-await/issue-73541-3.rs similarity index 100% rename from src/test/ui/async-await/issue-73541-3.rs rename to tests/ui/async-await/issue-73541-3.rs diff --git a/src/test/ui/async-await/issue-73541-3.stderr b/tests/ui/async-await/issue-73541-3.stderr similarity index 100% rename from src/test/ui/async-await/issue-73541-3.stderr rename to tests/ui/async-await/issue-73541-3.stderr diff --git a/src/test/ui/async-await/issue-73541.rs b/tests/ui/async-await/issue-73541.rs similarity index 100% rename from src/test/ui/async-await/issue-73541.rs rename to tests/ui/async-await/issue-73541.rs diff --git a/src/test/ui/async-await/issue-73541.stderr b/tests/ui/async-await/issue-73541.stderr similarity index 100% rename from src/test/ui/async-await/issue-73541.stderr rename to tests/ui/async-await/issue-73541.stderr diff --git a/src/test/ui/async-await/issue-73741-type-err-drop-tracking.rs b/tests/ui/async-await/issue-73741-type-err-drop-tracking.rs similarity index 100% rename from src/test/ui/async-await/issue-73741-type-err-drop-tracking.rs rename to tests/ui/async-await/issue-73741-type-err-drop-tracking.rs diff --git a/src/test/ui/async-await/issue-73741-type-err-drop-tracking.stderr b/tests/ui/async-await/issue-73741-type-err-drop-tracking.stderr similarity index 100% rename from src/test/ui/async-await/issue-73741-type-err-drop-tracking.stderr rename to tests/ui/async-await/issue-73741-type-err-drop-tracking.stderr diff --git a/src/test/ui/async-await/issue-73741-type-err.rs b/tests/ui/async-await/issue-73741-type-err.rs similarity index 100% rename from src/test/ui/async-await/issue-73741-type-err.rs rename to tests/ui/async-await/issue-73741-type-err.rs diff --git a/src/test/ui/async-await/issue-73741-type-err.stderr b/tests/ui/async-await/issue-73741-type-err.stderr similarity index 100% rename from src/test/ui/async-await/issue-73741-type-err.stderr rename to tests/ui/async-await/issue-73741-type-err.stderr diff --git a/src/test/ui/async-await/issue-74047.rs b/tests/ui/async-await/issue-74047.rs similarity index 100% rename from src/test/ui/async-await/issue-74047.rs rename to tests/ui/async-await/issue-74047.rs diff --git a/src/test/ui/async-await/issue-74047.stderr b/tests/ui/async-await/issue-74047.stderr similarity index 100% rename from src/test/ui/async-await/issue-74047.stderr rename to tests/ui/async-await/issue-74047.stderr diff --git a/src/test/ui/async-await/issue-74072-lifetime-name-annotations.rs b/tests/ui/async-await/issue-74072-lifetime-name-annotations.rs similarity index 100% rename from src/test/ui/async-await/issue-74072-lifetime-name-annotations.rs rename to tests/ui/async-await/issue-74072-lifetime-name-annotations.rs diff --git a/src/test/ui/async-await/issue-74072-lifetime-name-annotations.stderr b/tests/ui/async-await/issue-74072-lifetime-name-annotations.stderr similarity index 100% rename from src/test/ui/async-await/issue-74072-lifetime-name-annotations.stderr rename to tests/ui/async-await/issue-74072-lifetime-name-annotations.stderr diff --git a/src/test/ui/async-await/issue-74497-lifetime-in-opaque.rs b/tests/ui/async-await/issue-74497-lifetime-in-opaque.rs similarity index 100% rename from src/test/ui/async-await/issue-74497-lifetime-in-opaque.rs rename to tests/ui/async-await/issue-74497-lifetime-in-opaque.rs diff --git a/src/test/ui/async-await/issue-74497-lifetime-in-opaque.stderr b/tests/ui/async-await/issue-74497-lifetime-in-opaque.stderr similarity index 100% rename from src/test/ui/async-await/issue-74497-lifetime-in-opaque.stderr rename to tests/ui/async-await/issue-74497-lifetime-in-opaque.stderr diff --git a/src/test/ui/async-await/issue-75785-confusing-named-region.rs b/tests/ui/async-await/issue-75785-confusing-named-region.rs similarity index 100% rename from src/test/ui/async-await/issue-75785-confusing-named-region.rs rename to tests/ui/async-await/issue-75785-confusing-named-region.rs diff --git a/src/test/ui/async-await/issue-75785-confusing-named-region.stderr b/tests/ui/async-await/issue-75785-confusing-named-region.stderr similarity index 100% rename from src/test/ui/async-await/issue-75785-confusing-named-region.stderr rename to tests/ui/async-await/issue-75785-confusing-named-region.stderr diff --git a/src/test/ui/async-await/issue-76547.rs b/tests/ui/async-await/issue-76547.rs similarity index 100% rename from src/test/ui/async-await/issue-76547.rs rename to tests/ui/async-await/issue-76547.rs diff --git a/src/test/ui/async-await/issue-76547.stderr b/tests/ui/async-await/issue-76547.stderr similarity index 100% rename from src/test/ui/async-await/issue-76547.stderr rename to tests/ui/async-await/issue-76547.stderr diff --git a/src/test/ui/async-await/issue-77993-2.rs b/tests/ui/async-await/issue-77993-2.rs similarity index 100% rename from src/test/ui/async-await/issue-77993-2.rs rename to tests/ui/async-await/issue-77993-2.rs diff --git a/src/test/ui/async-await/issue-77993-2.stderr b/tests/ui/async-await/issue-77993-2.stderr similarity index 100% rename from src/test/ui/async-await/issue-77993-2.stderr rename to tests/ui/async-await/issue-77993-2.stderr diff --git a/src/test/ui/async-await/issue-84841.rs b/tests/ui/async-await/issue-84841.rs similarity index 100% rename from src/test/ui/async-await/issue-84841.rs rename to tests/ui/async-await/issue-84841.rs diff --git a/src/test/ui/async-await/issue-84841.stderr b/tests/ui/async-await/issue-84841.stderr similarity index 100% rename from src/test/ui/async-await/issue-84841.stderr rename to tests/ui/async-await/issue-84841.stderr diff --git a/src/test/ui/async-await/issue-86507.rs b/tests/ui/async-await/issue-86507.rs similarity index 100% rename from src/test/ui/async-await/issue-86507.rs rename to tests/ui/async-await/issue-86507.rs diff --git a/src/test/ui/async-await/issue-86507.stderr b/tests/ui/async-await/issue-86507.stderr similarity index 100% rename from src/test/ui/async-await/issue-86507.stderr rename to tests/ui/async-await/issue-86507.stderr diff --git a/src/test/ui/async-await/issue-93197.rs b/tests/ui/async-await/issue-93197.rs similarity index 100% rename from src/test/ui/async-await/issue-93197.rs rename to tests/ui/async-await/issue-93197.rs diff --git a/src/test/ui/async-await/issue-93648.rs b/tests/ui/async-await/issue-93648.rs similarity index 100% rename from src/test/ui/async-await/issue-93648.rs rename to tests/ui/async-await/issue-93648.rs diff --git a/src/test/ui/async-await/issue-98634.rs b/tests/ui/async-await/issue-98634.rs similarity index 100% rename from src/test/ui/async-await/issue-98634.rs rename to tests/ui/async-await/issue-98634.rs diff --git a/src/test/ui/async-await/issue-98634.stderr b/tests/ui/async-await/issue-98634.stderr similarity index 100% rename from src/test/ui/async-await/issue-98634.stderr rename to tests/ui/async-await/issue-98634.stderr diff --git a/src/test/ui/async-await/issues/auxiliary/issue-60674.rs b/tests/ui/async-await/issues/auxiliary/issue-60674.rs similarity index 100% rename from src/test/ui/async-await/issues/auxiliary/issue-60674.rs rename to tests/ui/async-await/issues/auxiliary/issue-60674.rs diff --git a/src/test/ui/async-await/issues/auxiliary/issue_67893.rs b/tests/ui/async-await/issues/auxiliary/issue_67893.rs similarity index 100% rename from src/test/ui/async-await/issues/auxiliary/issue_67893.rs rename to tests/ui/async-await/issues/auxiliary/issue_67893.rs diff --git a/src/test/ui/async-await/issues/issue-102206.rs b/tests/ui/async-await/issues/issue-102206.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-102206.rs rename to tests/ui/async-await/issues/issue-102206.rs diff --git a/src/test/ui/async-await/issues/issue-102206.stderr b/tests/ui/async-await/issues/issue-102206.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-102206.stderr rename to tests/ui/async-await/issues/issue-102206.stderr diff --git a/src/test/ui/async-await/issues/issue-51719.rs b/tests/ui/async-await/issues/issue-51719.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-51719.rs rename to tests/ui/async-await/issues/issue-51719.rs diff --git a/src/test/ui/async-await/issues/issue-51719.stderr b/tests/ui/async-await/issues/issue-51719.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-51719.stderr rename to tests/ui/async-await/issues/issue-51719.stderr diff --git a/src/test/ui/async-await/issues/issue-51751.rs b/tests/ui/async-await/issues/issue-51751.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-51751.rs rename to tests/ui/async-await/issues/issue-51751.rs diff --git a/src/test/ui/async-await/issues/issue-51751.stderr b/tests/ui/async-await/issues/issue-51751.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-51751.stderr rename to tests/ui/async-await/issues/issue-51751.stderr diff --git a/src/test/ui/async-await/issues/issue-53249.rs b/tests/ui/async-await/issues/issue-53249.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-53249.rs rename to tests/ui/async-await/issues/issue-53249.rs diff --git a/src/test/ui/async-await/issues/issue-54752-async-block.rs b/tests/ui/async-await/issues/issue-54752-async-block.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-54752-async-block.rs rename to tests/ui/async-await/issues/issue-54752-async-block.rs diff --git a/src/test/ui/async-await/issues/issue-54752-async-block.stderr b/tests/ui/async-await/issues/issue-54752-async-block.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-54752-async-block.stderr rename to tests/ui/async-await/issues/issue-54752-async-block.stderr diff --git a/src/test/ui/async-await/issues/issue-54974.rs b/tests/ui/async-await/issues/issue-54974.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-54974.rs rename to tests/ui/async-await/issues/issue-54974.rs diff --git a/src/test/ui/async-await/issues/issue-55324.rs b/tests/ui/async-await/issues/issue-55324.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-55324.rs rename to tests/ui/async-await/issues/issue-55324.rs diff --git a/src/test/ui/async-await/issues/issue-55809.rs b/tests/ui/async-await/issues/issue-55809.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-55809.rs rename to tests/ui/async-await/issues/issue-55809.rs diff --git a/src/test/ui/async-await/issues/issue-58885.rs b/tests/ui/async-await/issues/issue-58885.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-58885.rs rename to tests/ui/async-await/issues/issue-58885.rs diff --git a/src/test/ui/async-await/issues/issue-59001.rs b/tests/ui/async-await/issues/issue-59001.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-59001.rs rename to tests/ui/async-await/issues/issue-59001.rs diff --git a/src/test/ui/async-await/issues/issue-59972.rs b/tests/ui/async-await/issues/issue-59972.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-59972.rs rename to tests/ui/async-await/issues/issue-59972.rs diff --git a/src/test/ui/async-await/issues/issue-60518.rs b/tests/ui/async-await/issues/issue-60518.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-60518.rs rename to tests/ui/async-await/issues/issue-60518.rs diff --git a/src/test/ui/async-await/issues/issue-60655-latebound-regions.rs b/tests/ui/async-await/issues/issue-60655-latebound-regions.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-60655-latebound-regions.rs rename to tests/ui/async-await/issues/issue-60655-latebound-regions.rs diff --git a/src/test/ui/async-await/issues/issue-60674.rs b/tests/ui/async-await/issues/issue-60674.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-60674.rs rename to tests/ui/async-await/issues/issue-60674.rs diff --git a/src/test/ui/async-await/issues/issue-60674.stdout b/tests/ui/async-await/issues/issue-60674.stdout similarity index 100% rename from src/test/ui/async-await/issues/issue-60674.stdout rename to tests/ui/async-await/issues/issue-60674.stdout diff --git a/src/test/ui/async-await/issues/issue-61187.rs b/tests/ui/async-await/issues/issue-61187.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-61187.rs rename to tests/ui/async-await/issues/issue-61187.rs diff --git a/src/test/ui/async-await/issues/issue-61187.stderr b/tests/ui/async-await/issues/issue-61187.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-61187.stderr rename to tests/ui/async-await/issues/issue-61187.stderr diff --git a/src/test/ui/async-await/issues/issue-61986.rs b/tests/ui/async-await/issues/issue-61986.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-61986.rs rename to tests/ui/async-await/issues/issue-61986.rs diff --git a/src/test/ui/async-await/issues/issue-62009-1.rs b/tests/ui/async-await/issues/issue-62009-1.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-62009-1.rs rename to tests/ui/async-await/issues/issue-62009-1.rs diff --git a/src/test/ui/async-await/issues/issue-62009-1.stderr b/tests/ui/async-await/issues/issue-62009-1.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-62009-1.stderr rename to tests/ui/async-await/issues/issue-62009-1.stderr diff --git a/src/test/ui/async-await/issues/issue-62009-2.rs b/tests/ui/async-await/issues/issue-62009-2.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-62009-2.rs rename to tests/ui/async-await/issues/issue-62009-2.rs diff --git a/src/test/ui/async-await/issues/issue-62009-2.stderr b/tests/ui/async-await/issues/issue-62009-2.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-62009-2.stderr rename to tests/ui/async-await/issues/issue-62009-2.stderr diff --git a/src/test/ui/async-await/issues/issue-62097.rs b/tests/ui/async-await/issues/issue-62097.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-62097.rs rename to tests/ui/async-await/issues/issue-62097.rs diff --git a/src/test/ui/async-await/issues/issue-62097.stderr b/tests/ui/async-await/issues/issue-62097.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-62097.stderr rename to tests/ui/async-await/issues/issue-62097.stderr diff --git a/src/test/ui/async-await/issues/issue-62517-1.rs b/tests/ui/async-await/issues/issue-62517-1.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-62517-1.rs rename to tests/ui/async-await/issues/issue-62517-1.rs diff --git a/src/test/ui/async-await/issues/issue-62517-2.rs b/tests/ui/async-await/issues/issue-62517-2.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-62517-2.rs rename to tests/ui/async-await/issues/issue-62517-2.rs diff --git a/src/test/ui/async-await/issues/issue-63388-1.rs b/tests/ui/async-await/issues/issue-63388-1.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-63388-1.rs rename to tests/ui/async-await/issues/issue-63388-1.rs diff --git a/src/test/ui/async-await/issues/issue-63388-1.stderr b/tests/ui/async-await/issues/issue-63388-1.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-63388-1.stderr rename to tests/ui/async-await/issues/issue-63388-1.stderr diff --git a/src/test/ui/async-await/issues/issue-63388-2.rs b/tests/ui/async-await/issues/issue-63388-2.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-63388-2.rs rename to tests/ui/async-await/issues/issue-63388-2.rs diff --git a/src/test/ui/async-await/issues/issue-63388-2.stderr b/tests/ui/async-await/issues/issue-63388-2.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-63388-2.stderr rename to tests/ui/async-await/issues/issue-63388-2.stderr diff --git a/src/test/ui/async-await/issues/issue-63388-3.rs b/tests/ui/async-await/issues/issue-63388-3.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-63388-3.rs rename to tests/ui/async-await/issues/issue-63388-3.rs diff --git a/src/test/ui/async-await/issues/issue-63388-4.rs b/tests/ui/async-await/issues/issue-63388-4.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-63388-4.rs rename to tests/ui/async-await/issues/issue-63388-4.rs diff --git a/src/test/ui/async-await/issues/issue-64391-2.rs b/tests/ui/async-await/issues/issue-64391-2.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-64391-2.rs rename to tests/ui/async-await/issues/issue-64391-2.rs diff --git a/src/test/ui/async-await/issues/issue-64433.rs b/tests/ui/async-await/issues/issue-64433.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-64433.rs rename to tests/ui/async-await/issues/issue-64433.rs diff --git a/src/test/ui/async-await/issues/issue-64477-2.rs b/tests/ui/async-await/issues/issue-64477-2.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-64477-2.rs rename to tests/ui/async-await/issues/issue-64477-2.rs diff --git a/src/test/ui/async-await/issues/issue-64477.rs b/tests/ui/async-await/issues/issue-64477.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-64477.rs rename to tests/ui/async-await/issues/issue-64477.rs diff --git a/src/test/ui/async-await/issues/issue-64964.rs b/tests/ui/async-await/issues/issue-64964.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-64964.rs rename to tests/ui/async-await/issues/issue-64964.rs diff --git a/src/test/ui/async-await/issues/issue-65159.rs b/tests/ui/async-await/issues/issue-65159.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-65159.rs rename to tests/ui/async-await/issues/issue-65159.rs diff --git a/src/test/ui/async-await/issues/issue-65159.stderr b/tests/ui/async-await/issues/issue-65159.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-65159.stderr rename to tests/ui/async-await/issues/issue-65159.stderr diff --git a/src/test/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-completion.rs b/tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-completion.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-completion.rs rename to tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-completion.rs diff --git a/src/test/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs b/tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs rename to tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs diff --git a/src/test/ui/async-await/issues/issue-65419/issue-65419-generator-resume-after-completion.rs b/tests/ui/async-await/issues/issue-65419/issue-65419-generator-resume-after-completion.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-65419/issue-65419-generator-resume-after-completion.rs rename to tests/ui/async-await/issues/issue-65419/issue-65419-generator-resume-after-completion.rs diff --git a/src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.no_drop_tracking.stderr b/tests/ui/async-await/issues/issue-65436-raw-ptr-not-send.no_drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.no_drop_tracking.stderr rename to tests/ui/async-await/issues/issue-65436-raw-ptr-not-send.no_drop_tracking.stderr diff --git a/src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.rs b/tests/ui/async-await/issues/issue-65436-raw-ptr-not-send.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-65436-raw-ptr-not-send.rs rename to tests/ui/async-await/issues/issue-65436-raw-ptr-not-send.rs diff --git a/src/test/ui/async-await/issues/issue-66695-static-refs.rs b/tests/ui/async-await/issues/issue-66695-static-refs.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-66695-static-refs.rs rename to tests/ui/async-await/issues/issue-66695-static-refs.rs diff --git a/src/test/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.rs b/tests/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.rs rename to tests/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.rs diff --git a/src/test/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.stderr b/tests/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.stderr rename to tests/ui/async-await/issues/issue-66958-non-copy-infered-type-arg.stderr diff --git a/src/test/ui/async-await/issues/issue-67611-static-mut-refs.rs b/tests/ui/async-await/issues/issue-67611-static-mut-refs.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-67611-static-mut-refs.rs rename to tests/ui/async-await/issues/issue-67611-static-mut-refs.rs diff --git a/src/test/ui/async-await/issues/issue-67893.rs b/tests/ui/async-await/issues/issue-67893.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-67893.rs rename to tests/ui/async-await/issues/issue-67893.rs diff --git a/src/test/ui/async-await/issues/issue-67893.stderr b/tests/ui/async-await/issues/issue-67893.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-67893.stderr rename to tests/ui/async-await/issues/issue-67893.stderr diff --git a/src/test/ui/async-await/issues/issue-69307-nested.rs b/tests/ui/async-await/issues/issue-69307-nested.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-69307-nested.rs rename to tests/ui/async-await/issues/issue-69307-nested.rs diff --git a/src/test/ui/async-await/issues/issue-69307.rs b/tests/ui/async-await/issues/issue-69307.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-69307.rs rename to tests/ui/async-await/issues/issue-69307.rs diff --git a/src/test/ui/async-await/issues/issue-72312.rs b/tests/ui/async-await/issues/issue-72312.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-72312.rs rename to tests/ui/async-await/issues/issue-72312.rs diff --git a/src/test/ui/async-await/issues/issue-72312.stderr b/tests/ui/async-await/issues/issue-72312.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-72312.stderr rename to tests/ui/async-await/issues/issue-72312.stderr diff --git a/src/test/ui/async-await/issues/issue-78600.rs b/tests/ui/async-await/issues/issue-78600.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-78600.rs rename to tests/ui/async-await/issues/issue-78600.rs diff --git a/src/test/ui/async-await/issues/issue-78600.stderr b/tests/ui/async-await/issues/issue-78600.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-78600.stderr rename to tests/ui/async-await/issues/issue-78600.stderr diff --git a/src/test/ui/async-await/issues/issue-78654.full.stderr b/tests/ui/async-await/issues/issue-78654.full.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-78654.full.stderr rename to tests/ui/async-await/issues/issue-78654.full.stderr diff --git a/src/test/ui/async-await/issues/issue-78654.min.stderr b/tests/ui/async-await/issues/issue-78654.min.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-78654.min.stderr rename to tests/ui/async-await/issues/issue-78654.min.stderr diff --git a/src/test/ui/async-await/issues/issue-78654.rs b/tests/ui/async-await/issues/issue-78654.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-78654.rs rename to tests/ui/async-await/issues/issue-78654.rs diff --git a/src/test/ui/async-await/issues/issue-78938-async-block.rs b/tests/ui/async-await/issues/issue-78938-async-block.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-78938-async-block.rs rename to tests/ui/async-await/issues/issue-78938-async-block.rs diff --git a/src/test/ui/async-await/issues/issue-78938-async-block.stderr b/tests/ui/async-await/issues/issue-78938-async-block.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-78938-async-block.stderr rename to tests/ui/async-await/issues/issue-78938-async-block.stderr diff --git a/src/test/ui/async-await/issues/issue-95307.rs b/tests/ui/async-await/issues/issue-95307.rs similarity index 100% rename from src/test/ui/async-await/issues/issue-95307.rs rename to tests/ui/async-await/issues/issue-95307.rs diff --git a/src/test/ui/async-await/issues/issue-95307.stderr b/tests/ui/async-await/issues/issue-95307.stderr similarity index 100% rename from src/test/ui/async-await/issues/issue-95307.stderr rename to tests/ui/async-await/issues/issue-95307.stderr diff --git a/src/test/ui/async-await/issues/non-async-enclosing-span.rs b/tests/ui/async-await/issues/non-async-enclosing-span.rs similarity index 100% rename from src/test/ui/async-await/issues/non-async-enclosing-span.rs rename to tests/ui/async-await/issues/non-async-enclosing-span.rs diff --git a/src/test/ui/async-await/issues/non-async-enclosing-span.stderr b/tests/ui/async-await/issues/non-async-enclosing-span.stderr similarity index 100% rename from src/test/ui/async-await/issues/non-async-enclosing-span.stderr rename to tests/ui/async-await/issues/non-async-enclosing-span.stderr diff --git a/src/test/ui/async-await/large_moves.attribute.stderr b/tests/ui/async-await/large_moves.attribute.stderr similarity index 100% rename from src/test/ui/async-await/large_moves.attribute.stderr rename to tests/ui/async-await/large_moves.attribute.stderr diff --git a/src/test/ui/async-await/large_moves.option.stderr b/tests/ui/async-await/large_moves.option.stderr similarity index 100% rename from src/test/ui/async-await/large_moves.option.stderr rename to tests/ui/async-await/large_moves.option.stderr diff --git a/src/test/ui/async-await/large_moves.rs b/tests/ui/async-await/large_moves.rs similarity index 100% rename from src/test/ui/async-await/large_moves.rs rename to tests/ui/async-await/large_moves.rs diff --git a/src/test/ui/async-await/move-part-await-return-rest-struct.rs b/tests/ui/async-await/move-part-await-return-rest-struct.rs similarity index 100% rename from src/test/ui/async-await/move-part-await-return-rest-struct.rs rename to tests/ui/async-await/move-part-await-return-rest-struct.rs diff --git a/src/test/ui/async-await/move-part-await-return-rest-tuple.rs b/tests/ui/async-await/move-part-await-return-rest-tuple.rs similarity index 100% rename from src/test/ui/async-await/move-part-await-return-rest-tuple.rs rename to tests/ui/async-await/move-part-await-return-rest-tuple.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/elided.rs b/tests/ui/async-await/multiple-lifetimes/elided.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/elided.rs rename to tests/ui/async-await/multiple-lifetimes/elided.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/fn-ptr.rs b/tests/ui/async-await/multiple-lifetimes/fn-ptr.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/fn-ptr.rs rename to tests/ui/async-await/multiple-lifetimes/fn-ptr.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/hrtb.rs b/tests/ui/async-await/multiple-lifetimes/hrtb.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/hrtb.rs rename to tests/ui/async-await/multiple-lifetimes/hrtb.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/named.rs b/tests/ui/async-await/multiple-lifetimes/named.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/named.rs rename to tests/ui/async-await/multiple-lifetimes/named.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/partial-relation.rs b/tests/ui/async-await/multiple-lifetimes/partial-relation.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/partial-relation.rs rename to tests/ui/async-await/multiple-lifetimes/partial-relation.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-fg.rs b/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-fg.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-fg.rs rename to tests/ui/async-await/multiple-lifetimes/ret-impl-trait-fg.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.rs b/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.rs rename to tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr b/tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr rename to tests/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr diff --git a/src/test/ui/async-await/multiple-lifetimes/ret-ref.rs b/tests/ui/async-await/multiple-lifetimes/ret-ref.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/ret-ref.rs rename to tests/ui/async-await/multiple-lifetimes/ret-ref.rs diff --git a/src/test/ui/async-await/multiple-lifetimes/ret-ref.stderr b/tests/ui/async-await/multiple-lifetimes/ret-ref.stderr similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/ret-ref.stderr rename to tests/ui/async-await/multiple-lifetimes/ret-ref.stderr diff --git a/src/test/ui/async-await/multiple-lifetimes/variance.rs b/tests/ui/async-await/multiple-lifetimes/variance.rs similarity index 100% rename from src/test/ui/async-await/multiple-lifetimes/variance.rs rename to tests/ui/async-await/multiple-lifetimes/variance.rs diff --git a/src/test/ui/async-await/mutually-recursive-async-impl-trait-type.rs b/tests/ui/async-await/mutually-recursive-async-impl-trait-type.rs similarity index 100% rename from src/test/ui/async-await/mutually-recursive-async-impl-trait-type.rs rename to tests/ui/async-await/mutually-recursive-async-impl-trait-type.rs diff --git a/src/test/ui/async-await/mutually-recursive-async-impl-trait-type.stderr b/tests/ui/async-await/mutually-recursive-async-impl-trait-type.stderr similarity index 100% rename from src/test/ui/async-await/mutually-recursive-async-impl-trait-type.stderr rename to tests/ui/async-await/mutually-recursive-async-impl-trait-type.stderr diff --git a/src/test/ui/async-await/nested-in-impl.rs b/tests/ui/async-await/nested-in-impl.rs similarity index 100% rename from src/test/ui/async-await/nested-in-impl.rs rename to tests/ui/async-await/nested-in-impl.rs diff --git a/src/test/ui/async-await/no-async-const.rs b/tests/ui/async-await/no-async-const.rs similarity index 100% rename from src/test/ui/async-await/no-async-const.rs rename to tests/ui/async-await/no-async-const.rs diff --git a/src/test/ui/async-await/no-async-const.stderr b/tests/ui/async-await/no-async-const.stderr similarity index 100% rename from src/test/ui/async-await/no-async-const.stderr rename to tests/ui/async-await/no-async-const.stderr diff --git a/src/test/ui/async-await/no-const-async.rs b/tests/ui/async-await/no-const-async.rs similarity index 100% rename from src/test/ui/async-await/no-const-async.rs rename to tests/ui/async-await/no-const-async.rs diff --git a/src/test/ui/async-await/no-const-async.stderr b/tests/ui/async-await/no-const-async.stderr similarity index 100% rename from src/test/ui/async-await/no-const-async.stderr rename to tests/ui/async-await/no-const-async.stderr diff --git a/src/test/ui/async-await/no-move-across-await-struct.rs b/tests/ui/async-await/no-move-across-await-struct.rs similarity index 100% rename from src/test/ui/async-await/no-move-across-await-struct.rs rename to tests/ui/async-await/no-move-across-await-struct.rs diff --git a/src/test/ui/async-await/no-move-across-await-struct.stderr b/tests/ui/async-await/no-move-across-await-struct.stderr similarity index 100% rename from src/test/ui/async-await/no-move-across-await-struct.stderr rename to tests/ui/async-await/no-move-across-await-struct.stderr diff --git a/src/test/ui/async-await/no-move-across-await-tuple.rs b/tests/ui/async-await/no-move-across-await-tuple.rs similarity index 100% rename from src/test/ui/async-await/no-move-across-await-tuple.rs rename to tests/ui/async-await/no-move-across-await-tuple.rs diff --git a/src/test/ui/async-await/no-move-across-await-tuple.stderr b/tests/ui/async-await/no-move-across-await-tuple.stderr similarity index 100% rename from src/test/ui/async-await/no-move-across-await-tuple.stderr rename to tests/ui/async-await/no-move-across-await-tuple.stderr diff --git a/src/test/ui/async-await/no-non-guaranteed-initialization.rs b/tests/ui/async-await/no-non-guaranteed-initialization.rs similarity index 100% rename from src/test/ui/async-await/no-non-guaranteed-initialization.rs rename to tests/ui/async-await/no-non-guaranteed-initialization.rs diff --git a/src/test/ui/async-await/no-non-guaranteed-initialization.stderr b/tests/ui/async-await/no-non-guaranteed-initialization.stderr similarity index 100% rename from src/test/ui/async-await/no-non-guaranteed-initialization.stderr rename to tests/ui/async-await/no-non-guaranteed-initialization.stderr diff --git a/src/test/ui/async-await/no-params-non-move-async-closure.rs b/tests/ui/async-await/no-params-non-move-async-closure.rs similarity index 100% rename from src/test/ui/async-await/no-params-non-move-async-closure.rs rename to tests/ui/async-await/no-params-non-move-async-closure.rs diff --git a/src/test/ui/async-await/no-params-non-move-async-closure.stderr b/tests/ui/async-await/no-params-non-move-async-closure.stderr similarity index 100% rename from src/test/ui/async-await/no-params-non-move-async-closure.stderr rename to tests/ui/async-await/no-params-non-move-async-closure.stderr diff --git a/src/test/ui/async-await/no-std.rs b/tests/ui/async-await/no-std.rs similarity index 100% rename from src/test/ui/async-await/no-std.rs rename to tests/ui/async-await/no-std.rs diff --git a/src/test/ui/async-await/no-unsafe-async.rs b/tests/ui/async-await/no-unsafe-async.rs similarity index 100% rename from src/test/ui/async-await/no-unsafe-async.rs rename to tests/ui/async-await/no-unsafe-async.rs diff --git a/src/test/ui/async-await/no-unsafe-async.stderr b/tests/ui/async-await/no-unsafe-async.stderr similarity index 100% rename from src/test/ui/async-await/no-unsafe-async.stderr rename to tests/ui/async-await/no-unsafe-async.stderr diff --git a/src/test/ui/async-await/non-trivial-drop.rs b/tests/ui/async-await/non-trivial-drop.rs similarity index 100% rename from src/test/ui/async-await/non-trivial-drop.rs rename to tests/ui/async-await/non-trivial-drop.rs diff --git a/src/test/ui/async-await/partial-drop-partial-reinit.drop_tracking.stderr b/tests/ui/async-await/partial-drop-partial-reinit.drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/partial-drop-partial-reinit.drop_tracking.stderr rename to tests/ui/async-await/partial-drop-partial-reinit.drop_tracking.stderr diff --git a/src/test/ui/async-await/partial-drop-partial-reinit.no_drop_tracking.stderr b/tests/ui/async-await/partial-drop-partial-reinit.no_drop_tracking.stderr similarity index 100% rename from src/test/ui/async-await/partial-drop-partial-reinit.no_drop_tracking.stderr rename to tests/ui/async-await/partial-drop-partial-reinit.no_drop_tracking.stderr diff --git a/src/test/ui/async-await/partial-drop-partial-reinit.rs b/tests/ui/async-await/partial-drop-partial-reinit.rs similarity index 100% rename from src/test/ui/async-await/partial-drop-partial-reinit.rs rename to tests/ui/async-await/partial-drop-partial-reinit.rs diff --git a/src/test/ui/async-await/partial-initialization-across-await.rs b/tests/ui/async-await/partial-initialization-across-await.rs similarity index 100% rename from src/test/ui/async-await/partial-initialization-across-await.rs rename to tests/ui/async-await/partial-initialization-across-await.rs diff --git a/src/test/ui/async-await/partial-initialization-across-await.stderr b/tests/ui/async-await/partial-initialization-across-await.stderr similarity index 100% rename from src/test/ui/async-await/partial-initialization-across-await.stderr rename to tests/ui/async-await/partial-initialization-across-await.stderr diff --git a/src/test/ui/async-await/pin-needed-to-poll-2.rs b/tests/ui/async-await/pin-needed-to-poll-2.rs similarity index 100% rename from src/test/ui/async-await/pin-needed-to-poll-2.rs rename to tests/ui/async-await/pin-needed-to-poll-2.rs diff --git a/src/test/ui/async-await/pin-needed-to-poll-2.stderr b/tests/ui/async-await/pin-needed-to-poll-2.stderr similarity index 100% rename from src/test/ui/async-await/pin-needed-to-poll-2.stderr rename to tests/ui/async-await/pin-needed-to-poll-2.stderr diff --git a/src/test/ui/async-await/pin-needed-to-poll.rs b/tests/ui/async-await/pin-needed-to-poll.rs similarity index 100% rename from src/test/ui/async-await/pin-needed-to-poll.rs rename to tests/ui/async-await/pin-needed-to-poll.rs diff --git a/src/test/ui/async-await/pin-needed-to-poll.stderr b/tests/ui/async-await/pin-needed-to-poll.stderr similarity index 100% rename from src/test/ui/async-await/pin-needed-to-poll.stderr rename to tests/ui/async-await/pin-needed-to-poll.stderr diff --git a/src/test/ui/async-await/proper-span-for-type-error.fixed b/tests/ui/async-await/proper-span-for-type-error.fixed similarity index 100% rename from src/test/ui/async-await/proper-span-for-type-error.fixed rename to tests/ui/async-await/proper-span-for-type-error.fixed diff --git a/src/test/ui/async-await/proper-span-for-type-error.rs b/tests/ui/async-await/proper-span-for-type-error.rs similarity index 100% rename from src/test/ui/async-await/proper-span-for-type-error.rs rename to tests/ui/async-await/proper-span-for-type-error.rs diff --git a/src/test/ui/async-await/proper-span-for-type-error.stderr b/tests/ui/async-await/proper-span-for-type-error.stderr similarity index 100% rename from src/test/ui/async-await/proper-span-for-type-error.stderr rename to tests/ui/async-await/proper-span-for-type-error.stderr diff --git a/src/test/ui/async-await/recursive-async-impl-trait-type.rs b/tests/ui/async-await/recursive-async-impl-trait-type.rs similarity index 100% rename from src/test/ui/async-await/recursive-async-impl-trait-type.rs rename to tests/ui/async-await/recursive-async-impl-trait-type.rs diff --git a/src/test/ui/async-await/recursive-async-impl-trait-type.stderr b/tests/ui/async-await/recursive-async-impl-trait-type.stderr similarity index 100% rename from src/test/ui/async-await/recursive-async-impl-trait-type.stderr rename to tests/ui/async-await/recursive-async-impl-trait-type.stderr diff --git a/src/test/ui/async-await/repeat_count_const_in_async_fn.rs b/tests/ui/async-await/repeat_count_const_in_async_fn.rs similarity index 100% rename from src/test/ui/async-await/repeat_count_const_in_async_fn.rs rename to tests/ui/async-await/repeat_count_const_in_async_fn.rs diff --git a/src/test/ui/async-await/return-ty-raw-ptr-coercion.rs b/tests/ui/async-await/return-ty-raw-ptr-coercion.rs similarity index 100% rename from src/test/ui/async-await/return-ty-raw-ptr-coercion.rs rename to tests/ui/async-await/return-ty-raw-ptr-coercion.rs diff --git a/src/test/ui/async-await/return-ty-unsize-coercion.rs b/tests/ui/async-await/return-ty-unsize-coercion.rs similarity index 100% rename from src/test/ui/async-await/return-ty-unsize-coercion.rs rename to tests/ui/async-await/return-ty-unsize-coercion.rs diff --git a/src/test/ui/async-await/suggest-missing-await-closure.fixed b/tests/ui/async-await/suggest-missing-await-closure.fixed similarity index 100% rename from src/test/ui/async-await/suggest-missing-await-closure.fixed rename to tests/ui/async-await/suggest-missing-await-closure.fixed diff --git a/src/test/ui/async-await/suggest-missing-await-closure.rs b/tests/ui/async-await/suggest-missing-await-closure.rs similarity index 100% rename from src/test/ui/async-await/suggest-missing-await-closure.rs rename to tests/ui/async-await/suggest-missing-await-closure.rs diff --git a/src/test/ui/async-await/suggest-missing-await-closure.stderr b/tests/ui/async-await/suggest-missing-await-closure.stderr similarity index 100% rename from src/test/ui/async-await/suggest-missing-await-closure.stderr rename to tests/ui/async-await/suggest-missing-await-closure.stderr diff --git a/src/test/ui/async-await/suggest-missing-await.rs b/tests/ui/async-await/suggest-missing-await.rs similarity index 100% rename from src/test/ui/async-await/suggest-missing-await.rs rename to tests/ui/async-await/suggest-missing-await.rs diff --git a/src/test/ui/async-await/suggest-missing-await.stderr b/tests/ui/async-await/suggest-missing-await.stderr similarity index 100% rename from src/test/ui/async-await/suggest-missing-await.stderr rename to tests/ui/async-await/suggest-missing-await.stderr diff --git a/src/test/ui/async-await/suggest-switching-edition-on-await-cargo.rs b/tests/ui/async-await/suggest-switching-edition-on-await-cargo.rs similarity index 100% rename from src/test/ui/async-await/suggest-switching-edition-on-await-cargo.rs rename to tests/ui/async-await/suggest-switching-edition-on-await-cargo.rs diff --git a/src/test/ui/async-await/suggest-switching-edition-on-await-cargo.stderr b/tests/ui/async-await/suggest-switching-edition-on-await-cargo.stderr similarity index 100% rename from src/test/ui/async-await/suggest-switching-edition-on-await-cargo.stderr rename to tests/ui/async-await/suggest-switching-edition-on-await-cargo.stderr diff --git a/src/test/ui/async-await/suggest-switching-edition-on-await.rs b/tests/ui/async-await/suggest-switching-edition-on-await.rs similarity index 100% rename from src/test/ui/async-await/suggest-switching-edition-on-await.rs rename to tests/ui/async-await/suggest-switching-edition-on-await.rs diff --git a/src/test/ui/async-await/suggest-switching-edition-on-await.stderr b/tests/ui/async-await/suggest-switching-edition-on-await.stderr similarity index 100% rename from src/test/ui/async-await/suggest-switching-edition-on-await.stderr rename to tests/ui/async-await/suggest-switching-edition-on-await.stderr diff --git a/src/test/ui/async-await/track-caller/async-block.rs b/tests/ui/async-await/track-caller/async-block.rs similarity index 100% rename from src/test/ui/async-await/track-caller/async-block.rs rename to tests/ui/async-await/track-caller/async-block.rs diff --git a/src/test/ui/async-await/track-caller/async-block.stderr b/tests/ui/async-await/track-caller/async-block.stderr similarity index 100% rename from src/test/ui/async-await/track-caller/async-block.stderr rename to tests/ui/async-await/track-caller/async-block.stderr diff --git a/src/test/ui/async-await/track-caller/async-closure-gate.rs b/tests/ui/async-await/track-caller/async-closure-gate.rs similarity index 100% rename from src/test/ui/async-await/track-caller/async-closure-gate.rs rename to tests/ui/async-await/track-caller/async-closure-gate.rs diff --git a/src/test/ui/async-await/track-caller/async-closure-gate.stderr b/tests/ui/async-await/track-caller/async-closure-gate.stderr similarity index 100% rename from src/test/ui/async-await/track-caller/async-closure-gate.stderr rename to tests/ui/async-await/track-caller/async-closure-gate.stderr diff --git a/src/test/ui/async-await/track-caller/issue-105134.rs b/tests/ui/async-await/track-caller/issue-105134.rs similarity index 100% rename from src/test/ui/async-await/track-caller/issue-105134.rs rename to tests/ui/async-await/track-caller/issue-105134.rs diff --git a/src/test/ui/async-await/track-caller/panic-track-caller.nofeat.stderr b/tests/ui/async-await/track-caller/panic-track-caller.nofeat.stderr similarity index 100% rename from src/test/ui/async-await/track-caller/panic-track-caller.nofeat.stderr rename to tests/ui/async-await/track-caller/panic-track-caller.nofeat.stderr diff --git a/src/test/ui/async-await/track-caller/panic-track-caller.rs b/tests/ui/async-await/track-caller/panic-track-caller.rs similarity index 100% rename from src/test/ui/async-await/track-caller/panic-track-caller.rs rename to tests/ui/async-await/track-caller/panic-track-caller.rs diff --git a/src/test/ui/async-await/try-on-option-in-async.rs b/tests/ui/async-await/try-on-option-in-async.rs similarity index 100% rename from src/test/ui/async-await/try-on-option-in-async.rs rename to tests/ui/async-await/try-on-option-in-async.rs diff --git a/src/test/ui/async-await/try-on-option-in-async.stderr b/tests/ui/async-await/try-on-option-in-async.stderr similarity index 100% rename from src/test/ui/async-await/try-on-option-in-async.stderr rename to tests/ui/async-await/try-on-option-in-async.stderr diff --git a/src/test/ui/async-await/type-parameter-send.rs b/tests/ui/async-await/type-parameter-send.rs similarity index 100% rename from src/test/ui/async-await/type-parameter-send.rs rename to tests/ui/async-await/type-parameter-send.rs diff --git a/src/test/ui/async-await/unnecessary-await.rs b/tests/ui/async-await/unnecessary-await.rs similarity index 100% rename from src/test/ui/async-await/unnecessary-await.rs rename to tests/ui/async-await/unnecessary-await.rs diff --git a/src/test/ui/async-await/unnecessary-await.stderr b/tests/ui/async-await/unnecessary-await.stderr similarity index 100% rename from src/test/ui/async-await/unnecessary-await.stderr rename to tests/ui/async-await/unnecessary-await.stderr diff --git a/src/test/ui/async-await/unreachable-lint-1.rs b/tests/ui/async-await/unreachable-lint-1.rs similarity index 100% rename from src/test/ui/async-await/unreachable-lint-1.rs rename to tests/ui/async-await/unreachable-lint-1.rs diff --git a/src/test/ui/async-await/unreachable-lint-1.stderr b/tests/ui/async-await/unreachable-lint-1.stderr similarity index 100% rename from src/test/ui/async-await/unreachable-lint-1.stderr rename to tests/ui/async-await/unreachable-lint-1.stderr diff --git a/src/test/ui/async-await/unreachable-lint.rs b/tests/ui/async-await/unreachable-lint.rs similarity index 100% rename from src/test/ui/async-await/unreachable-lint.rs rename to tests/ui/async-await/unreachable-lint.rs diff --git a/src/test/ui/async-await/unresolved_type_param.rs b/tests/ui/async-await/unresolved_type_param.rs similarity index 100% rename from src/test/ui/async-await/unresolved_type_param.rs rename to tests/ui/async-await/unresolved_type_param.rs diff --git a/src/test/ui/async-await/unresolved_type_param.stderr b/tests/ui/async-await/unresolved_type_param.stderr similarity index 100% rename from src/test/ui/async-await/unresolved_type_param.stderr rename to tests/ui/async-await/unresolved_type_param.stderr diff --git a/src/test/ui/async-await/unused-lifetime.rs b/tests/ui/async-await/unused-lifetime.rs similarity index 100% rename from src/test/ui/async-await/unused-lifetime.rs rename to tests/ui/async-await/unused-lifetime.rs diff --git a/src/test/ui/async-await/unused-lifetime.stderr b/tests/ui/async-await/unused-lifetime.stderr similarity index 100% rename from src/test/ui/async-await/unused-lifetime.stderr rename to tests/ui/async-await/unused-lifetime.stderr diff --git a/src/test/ui/atomic-from-mut-not-available.rs b/tests/ui/atomic-from-mut-not-available.rs similarity index 100% rename from src/test/ui/atomic-from-mut-not-available.rs rename to tests/ui/atomic-from-mut-not-available.rs diff --git a/src/test/ui/atomic-from-mut-not-available.stderr b/tests/ui/atomic-from-mut-not-available.stderr similarity index 100% rename from src/test/ui/atomic-from-mut-not-available.stderr rename to tests/ui/atomic-from-mut-not-available.stderr diff --git a/src/test/ui/attempted-access-non-fatal.rs b/tests/ui/attempted-access-non-fatal.rs similarity index 100% rename from src/test/ui/attempted-access-non-fatal.rs rename to tests/ui/attempted-access-non-fatal.rs diff --git a/src/test/ui/attempted-access-non-fatal.stderr b/tests/ui/attempted-access-non-fatal.stderr similarity index 100% rename from src/test/ui/attempted-access-non-fatal.stderr rename to tests/ui/attempted-access-non-fatal.stderr diff --git a/src/test/ui/attr-bad-crate-attr.rc b/tests/ui/attr-bad-crate-attr.rc similarity index 100% rename from src/test/ui/attr-bad-crate-attr.rc rename to tests/ui/attr-bad-crate-attr.rc diff --git a/src/test/ui/attr-shebang.rs b/tests/ui/attr-shebang.rs similarity index 100% rename from src/test/ui/attr-shebang.rs rename to tests/ui/attr-shebang.rs diff --git a/src/test/ui/attr-start.rs b/tests/ui/attr-start.rs similarity index 100% rename from src/test/ui/attr-start.rs rename to tests/ui/attr-start.rs diff --git a/src/test/ui/attr-usage-inline.rs b/tests/ui/attr-usage-inline.rs similarity index 100% rename from src/test/ui/attr-usage-inline.rs rename to tests/ui/attr-usage-inline.rs diff --git a/src/test/ui/attr-usage-inline.stderr b/tests/ui/attr-usage-inline.stderr similarity index 100% rename from src/test/ui/attr-usage-inline.stderr rename to tests/ui/attr-usage-inline.stderr diff --git a/src/test/ui/attributes/attr-before-view-item.rs b/tests/ui/attributes/attr-before-view-item.rs similarity index 100% rename from src/test/ui/attributes/attr-before-view-item.rs rename to tests/ui/attributes/attr-before-view-item.rs diff --git a/src/test/ui/attributes/attr-before-view-item2.rs b/tests/ui/attributes/attr-before-view-item2.rs similarity index 100% rename from src/test/ui/attributes/attr-before-view-item2.rs rename to tests/ui/attributes/attr-before-view-item2.rs diff --git a/src/test/ui/attributes/attr-eq-token-tree.rs b/tests/ui/attributes/attr-eq-token-tree.rs similarity index 100% rename from src/test/ui/attributes/attr-eq-token-tree.rs rename to tests/ui/attributes/attr-eq-token-tree.rs diff --git a/src/test/ui/attributes/attr-eq-token-tree.stderr b/tests/ui/attributes/attr-eq-token-tree.stderr similarity index 100% rename from src/test/ui/attributes/attr-eq-token-tree.stderr rename to tests/ui/attributes/attr-eq-token-tree.stderr diff --git a/src/test/ui/attributes/attr-mix-new.rs b/tests/ui/attributes/attr-mix-new.rs similarity index 100% rename from src/test/ui/attributes/attr-mix-new.rs rename to tests/ui/attributes/attr-mix-new.rs diff --git a/src/test/ui/attributes/attrs-on-params.rs b/tests/ui/attributes/attrs-on-params.rs similarity index 100% rename from src/test/ui/attributes/attrs-on-params.rs rename to tests/ui/attributes/attrs-on-params.rs diff --git a/src/test/ui/attributes/attrs-on-params.stderr b/tests/ui/attributes/attrs-on-params.stderr similarity index 100% rename from src/test/ui/attributes/attrs-on-params.stderr rename to tests/ui/attributes/attrs-on-params.stderr diff --git a/src/test/ui/attributes/attrs-with-no-formal-in-generics-1.rs b/tests/ui/attributes/attrs-with-no-formal-in-generics-1.rs similarity index 100% rename from src/test/ui/attributes/attrs-with-no-formal-in-generics-1.rs rename to tests/ui/attributes/attrs-with-no-formal-in-generics-1.rs diff --git a/src/test/ui/attributes/attrs-with-no-formal-in-generics-1.stderr b/tests/ui/attributes/attrs-with-no-formal-in-generics-1.stderr similarity index 100% rename from src/test/ui/attributes/attrs-with-no-formal-in-generics-1.stderr rename to tests/ui/attributes/attrs-with-no-formal-in-generics-1.stderr diff --git a/src/test/ui/attributes/attrs-with-no-formal-in-generics-2.rs b/tests/ui/attributes/attrs-with-no-formal-in-generics-2.rs similarity index 100% rename from src/test/ui/attributes/attrs-with-no-formal-in-generics-2.rs rename to tests/ui/attributes/attrs-with-no-formal-in-generics-2.rs diff --git a/src/test/ui/attributes/attrs-with-no-formal-in-generics-2.stderr b/tests/ui/attributes/attrs-with-no-formal-in-generics-2.stderr similarity index 100% rename from src/test/ui/attributes/attrs-with-no-formal-in-generics-2.stderr rename to tests/ui/attributes/attrs-with-no-formal-in-generics-2.stderr diff --git a/src/test/ui/attributes/attrs-with-no-formal-in-generics-3.rs b/tests/ui/attributes/attrs-with-no-formal-in-generics-3.rs similarity index 100% rename from src/test/ui/attributes/attrs-with-no-formal-in-generics-3.rs rename to tests/ui/attributes/attrs-with-no-formal-in-generics-3.rs diff --git a/src/test/ui/attributes/attrs-with-no-formal-in-generics-3.stderr b/tests/ui/attributes/attrs-with-no-formal-in-generics-3.stderr similarity index 100% rename from src/test/ui/attributes/attrs-with-no-formal-in-generics-3.stderr rename to tests/ui/attributes/attrs-with-no-formal-in-generics-3.stderr diff --git a/src/test/ui/attributes/auxiliary/key-value-expansion.rs b/tests/ui/attributes/auxiliary/key-value-expansion.rs similarity index 100% rename from src/test/ui/attributes/auxiliary/key-value-expansion.rs rename to tests/ui/attributes/auxiliary/key-value-expansion.rs diff --git a/src/test/ui/attributes/class-attributes-1.rs b/tests/ui/attributes/class-attributes-1.rs similarity index 100% rename from src/test/ui/attributes/class-attributes-1.rs rename to tests/ui/attributes/class-attributes-1.rs diff --git a/src/test/ui/attributes/class-attributes-2.rs b/tests/ui/attributes/class-attributes-2.rs similarity index 100% rename from src/test/ui/attributes/class-attributes-2.rs rename to tests/ui/attributes/class-attributes-2.rs diff --git a/src/test/ui/attributes/collapse-debuginfo-invalid.rs b/tests/ui/attributes/collapse-debuginfo-invalid.rs similarity index 100% rename from src/test/ui/attributes/collapse-debuginfo-invalid.rs rename to tests/ui/attributes/collapse-debuginfo-invalid.rs diff --git a/src/test/ui/attributes/collapse-debuginfo-invalid.stderr b/tests/ui/attributes/collapse-debuginfo-invalid.stderr similarity index 100% rename from src/test/ui/attributes/collapse-debuginfo-invalid.stderr rename to tests/ui/attributes/collapse-debuginfo-invalid.stderr diff --git a/src/test/ui/attributes/const-stability-on-macro.rs b/tests/ui/attributes/const-stability-on-macro.rs similarity index 100% rename from src/test/ui/attributes/const-stability-on-macro.rs rename to tests/ui/attributes/const-stability-on-macro.rs diff --git a/src/test/ui/attributes/const-stability-on-macro.stderr b/tests/ui/attributes/const-stability-on-macro.stderr similarity index 100% rename from src/test/ui/attributes/const-stability-on-macro.stderr rename to tests/ui/attributes/const-stability-on-macro.stderr diff --git a/src/test/ui/attributes/doc-attr.rs b/tests/ui/attributes/doc-attr.rs similarity index 100% rename from src/test/ui/attributes/doc-attr.rs rename to tests/ui/attributes/doc-attr.rs diff --git a/src/test/ui/attributes/doc-attr.stderr b/tests/ui/attributes/doc-attr.stderr similarity index 100% rename from src/test/ui/attributes/doc-attr.stderr rename to tests/ui/attributes/doc-attr.stderr diff --git a/src/test/ui/attributes/duplicated-attributes.rs b/tests/ui/attributes/duplicated-attributes.rs similarity index 100% rename from src/test/ui/attributes/duplicated-attributes.rs rename to tests/ui/attributes/duplicated-attributes.rs diff --git a/src/test/ui/attributes/duplicated-attributes.stderr b/tests/ui/attributes/duplicated-attributes.stderr similarity index 100% rename from src/test/ui/attributes/duplicated-attributes.stderr rename to tests/ui/attributes/duplicated-attributes.stderr diff --git a/src/test/ui/attributes/extented-attribute-macro-error.rs b/tests/ui/attributes/extented-attribute-macro-error.rs similarity index 100% rename from src/test/ui/attributes/extented-attribute-macro-error.rs rename to tests/ui/attributes/extented-attribute-macro-error.rs diff --git a/src/test/ui/attributes/extented-attribute-macro-error.stderr b/tests/ui/attributes/extented-attribute-macro-error.stderr similarity index 100% rename from src/test/ui/attributes/extented-attribute-macro-error.stderr rename to tests/ui/attributes/extented-attribute-macro-error.stderr diff --git a/src/test/ui/attributes/field-attributes-vis-unresolved.rs b/tests/ui/attributes/field-attributes-vis-unresolved.rs similarity index 100% rename from src/test/ui/attributes/field-attributes-vis-unresolved.rs rename to tests/ui/attributes/field-attributes-vis-unresolved.rs diff --git a/src/test/ui/attributes/field-attributes-vis-unresolved.stderr b/tests/ui/attributes/field-attributes-vis-unresolved.stderr similarity index 100% rename from src/test/ui/attributes/field-attributes-vis-unresolved.stderr rename to tests/ui/attributes/field-attributes-vis-unresolved.stderr diff --git a/src/test/ui/attributes/invalid-doc-attr.rs b/tests/ui/attributes/invalid-doc-attr.rs similarity index 100% rename from src/test/ui/attributes/invalid-doc-attr.rs rename to tests/ui/attributes/invalid-doc-attr.rs diff --git a/src/test/ui/attributes/invalid-doc-attr.stderr b/tests/ui/attributes/invalid-doc-attr.stderr similarity index 100% rename from src/test/ui/attributes/invalid-doc-attr.stderr rename to tests/ui/attributes/invalid-doc-attr.stderr diff --git a/src/test/ui/attributes/issue-100631.rs b/tests/ui/attributes/issue-100631.rs similarity index 100% rename from src/test/ui/attributes/issue-100631.rs rename to tests/ui/attributes/issue-100631.rs diff --git a/src/test/ui/attributes/issue-100631.stderr b/tests/ui/attributes/issue-100631.stderr similarity index 100% rename from src/test/ui/attributes/issue-100631.stderr rename to tests/ui/attributes/issue-100631.stderr diff --git a/src/test/ui/attributes/issue-105594-invalid-attr-validation.rs b/tests/ui/attributes/issue-105594-invalid-attr-validation.rs similarity index 100% rename from src/test/ui/attributes/issue-105594-invalid-attr-validation.rs rename to tests/ui/attributes/issue-105594-invalid-attr-validation.rs diff --git a/src/test/ui/attributes/issue-105594-invalid-attr-validation.stderr b/tests/ui/attributes/issue-105594-invalid-attr-validation.stderr similarity index 100% rename from src/test/ui/attributes/issue-105594-invalid-attr-validation.stderr rename to tests/ui/attributes/issue-105594-invalid-attr-validation.stderr diff --git a/src/test/ui/attributes/issue-40962.rs b/tests/ui/attributes/issue-40962.rs similarity index 100% rename from src/test/ui/attributes/issue-40962.rs rename to tests/ui/attributes/issue-40962.rs diff --git a/src/test/ui/attributes/issue-90873.rs b/tests/ui/attributes/issue-90873.rs similarity index 100% rename from src/test/ui/attributes/issue-90873.rs rename to tests/ui/attributes/issue-90873.rs diff --git a/src/test/ui/attributes/issue-90873.stderr b/tests/ui/attributes/issue-90873.stderr similarity index 100% rename from src/test/ui/attributes/issue-90873.stderr rename to tests/ui/attributes/issue-90873.stderr diff --git a/src/test/ui/attributes/item-attributes.rs b/tests/ui/attributes/item-attributes.rs similarity index 100% rename from src/test/ui/attributes/item-attributes.rs rename to tests/ui/attributes/item-attributes.rs diff --git a/src/test/ui/attributes/key-value-expansion-on-mac.rs b/tests/ui/attributes/key-value-expansion-on-mac.rs similarity index 100% rename from src/test/ui/attributes/key-value-expansion-on-mac.rs rename to tests/ui/attributes/key-value-expansion-on-mac.rs diff --git a/src/test/ui/attributes/key-value-expansion-on-mac.stderr b/tests/ui/attributes/key-value-expansion-on-mac.stderr similarity index 100% rename from src/test/ui/attributes/key-value-expansion-on-mac.stderr rename to tests/ui/attributes/key-value-expansion-on-mac.stderr diff --git a/src/test/ui/attributes/key-value-expansion.rs b/tests/ui/attributes/key-value-expansion.rs similarity index 100% rename from src/test/ui/attributes/key-value-expansion.rs rename to tests/ui/attributes/key-value-expansion.rs diff --git a/src/test/ui/attributes/key-value-expansion.stderr b/tests/ui/attributes/key-value-expansion.stderr similarity index 100% rename from src/test/ui/attributes/key-value-expansion.stderr rename to tests/ui/attributes/key-value-expansion.stderr diff --git a/src/test/ui/attributes/key-value-non-ascii.rs b/tests/ui/attributes/key-value-non-ascii.rs similarity index 100% rename from src/test/ui/attributes/key-value-non-ascii.rs rename to tests/ui/attributes/key-value-non-ascii.rs diff --git a/src/test/ui/attributes/key-value-non-ascii.stderr b/tests/ui/attributes/key-value-non-ascii.stderr similarity index 100% rename from src/test/ui/attributes/key-value-non-ascii.stderr rename to tests/ui/attributes/key-value-non-ascii.stderr diff --git a/src/test/ui/attributes/main-removed-1.rs b/tests/ui/attributes/main-removed-1.rs similarity index 100% rename from src/test/ui/attributes/main-removed-1.rs rename to tests/ui/attributes/main-removed-1.rs diff --git a/src/test/ui/attributes/main-removed-1.stderr b/tests/ui/attributes/main-removed-1.stderr similarity index 100% rename from src/test/ui/attributes/main-removed-1.stderr rename to tests/ui/attributes/main-removed-1.stderr diff --git a/src/test/ui/attributes/main-removed-2/auxiliary/tokyo.rs b/tests/ui/attributes/main-removed-2/auxiliary/tokyo.rs similarity index 100% rename from src/test/ui/attributes/main-removed-2/auxiliary/tokyo.rs rename to tests/ui/attributes/main-removed-2/auxiliary/tokyo.rs diff --git a/src/test/ui/attributes/main-removed-2/main.rs b/tests/ui/attributes/main-removed-2/main.rs similarity index 100% rename from src/test/ui/attributes/main-removed-2/main.rs rename to tests/ui/attributes/main-removed-2/main.rs diff --git a/src/test/ui/attributes/method-attributes.rs b/tests/ui/attributes/method-attributes.rs similarity index 100% rename from src/test/ui/attributes/method-attributes.rs rename to tests/ui/attributes/method-attributes.rs diff --git a/src/test/ui/attributes/multiple-invalid.rs b/tests/ui/attributes/multiple-invalid.rs similarity index 100% rename from src/test/ui/attributes/multiple-invalid.rs rename to tests/ui/attributes/multiple-invalid.rs diff --git a/src/test/ui/attributes/multiple-invalid.stderr b/tests/ui/attributes/multiple-invalid.stderr similarity index 100% rename from src/test/ui/attributes/multiple-invalid.stderr rename to tests/ui/attributes/multiple-invalid.stderr diff --git a/src/test/ui/attributes/nonterminal-expansion.rs b/tests/ui/attributes/nonterminal-expansion.rs similarity index 100% rename from src/test/ui/attributes/nonterminal-expansion.rs rename to tests/ui/attributes/nonterminal-expansion.rs diff --git a/src/test/ui/attributes/nonterminal-expansion.stderr b/tests/ui/attributes/nonterminal-expansion.stderr similarity index 100% rename from src/test/ui/attributes/nonterminal-expansion.stderr rename to tests/ui/attributes/nonterminal-expansion.stderr diff --git a/src/test/ui/attributes/obsolete-attr.rs b/tests/ui/attributes/obsolete-attr.rs similarity index 100% rename from src/test/ui/attributes/obsolete-attr.rs rename to tests/ui/attributes/obsolete-attr.rs diff --git a/src/test/ui/attributes/obsolete-attr.stderr b/tests/ui/attributes/obsolete-attr.stderr similarity index 100% rename from src/test/ui/attributes/obsolete-attr.stderr rename to tests/ui/attributes/obsolete-attr.stderr diff --git a/src/test/ui/attributes/suffixed-literal-meta.rs b/tests/ui/attributes/suffixed-literal-meta.rs similarity index 100% rename from src/test/ui/attributes/suffixed-literal-meta.rs rename to tests/ui/attributes/suffixed-literal-meta.rs diff --git a/src/test/ui/attributes/suffixed-literal-meta.stderr b/tests/ui/attributes/suffixed-literal-meta.stderr similarity index 100% rename from src/test/ui/attributes/suffixed-literal-meta.stderr rename to tests/ui/attributes/suffixed-literal-meta.stderr diff --git a/src/test/ui/attributes/tool_attributes.rs b/tests/ui/attributes/tool_attributes.rs similarity index 100% rename from src/test/ui/attributes/tool_attributes.rs rename to tests/ui/attributes/tool_attributes.rs diff --git a/src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs b/tests/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs rename to tests/ui/attributes/unix_sigpipe/auxiliary/sigpipe-utils.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-crate.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-crate.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-crate.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-crate.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-crate.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-crate.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-crate.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-crate.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-duplicates.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-error.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-inherit.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-inherit.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-inherit.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-inherit.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-list.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-list.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-list.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-list.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-list.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-list.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-list.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-list.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-main-fn.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-non-root-main.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-only-feature.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-only-feature.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-only-feature.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-only-feature.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-rustc_main.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-rustc_main.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-rustc_main.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-rustc_main.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-sig_dfl.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-sig_dfl.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-sig_dfl.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-sig_dfl.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-start.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-struct.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-struct.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-struct.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe-wrong.stderr diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe.rs b/tests/ui/attributes/unix_sigpipe/unix_sigpipe.rs similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe.rs rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe.rs diff --git a/src/test/ui/attributes/unix_sigpipe/unix_sigpipe.stderr b/tests/ui/attributes/unix_sigpipe/unix_sigpipe.stderr similarity index 100% rename from src/test/ui/attributes/unix_sigpipe/unix_sigpipe.stderr rename to tests/ui/attributes/unix_sigpipe/unix_sigpipe.stderr diff --git a/src/test/ui/attributes/unknown-attr.rs b/tests/ui/attributes/unknown-attr.rs similarity index 100% rename from src/test/ui/attributes/unknown-attr.rs rename to tests/ui/attributes/unknown-attr.rs diff --git a/src/test/ui/attributes/unknown-attr.stderr b/tests/ui/attributes/unknown-attr.stderr similarity index 100% rename from src/test/ui/attributes/unknown-attr.stderr rename to tests/ui/attributes/unknown-attr.stderr diff --git a/src/test/ui/attributes/unnamed-field-attributes-dup.rs b/tests/ui/attributes/unnamed-field-attributes-dup.rs similarity index 100% rename from src/test/ui/attributes/unnamed-field-attributes-dup.rs rename to tests/ui/attributes/unnamed-field-attributes-dup.rs diff --git a/src/test/ui/attributes/unnamed-field-attributes-vis.rs b/tests/ui/attributes/unnamed-field-attributes-vis.rs similarity index 100% rename from src/test/ui/attributes/unnamed-field-attributes-vis.rs rename to tests/ui/attributes/unnamed-field-attributes-vis.rs diff --git a/src/test/ui/attributes/unnamed-field-attributes.rs b/tests/ui/attributes/unnamed-field-attributes.rs similarity index 100% rename from src/test/ui/attributes/unnamed-field-attributes.rs rename to tests/ui/attributes/unnamed-field-attributes.rs diff --git a/src/test/ui/attributes/unrestricted-attribute-tokens.rs b/tests/ui/attributes/unrestricted-attribute-tokens.rs similarity index 100% rename from src/test/ui/attributes/unrestricted-attribute-tokens.rs rename to tests/ui/attributes/unrestricted-attribute-tokens.rs diff --git a/src/test/ui/attributes/unused-item-in-attr.rs b/tests/ui/attributes/unused-item-in-attr.rs similarity index 100% rename from src/test/ui/attributes/unused-item-in-attr.rs rename to tests/ui/attributes/unused-item-in-attr.rs diff --git a/src/test/ui/attributes/unused-item-in-attr.stderr b/tests/ui/attributes/unused-item-in-attr.stderr similarity index 100% rename from src/test/ui/attributes/unused-item-in-attr.stderr rename to tests/ui/attributes/unused-item-in-attr.stderr diff --git a/src/test/ui/attributes/used_with_arg.rs b/tests/ui/attributes/used_with_arg.rs similarity index 100% rename from src/test/ui/attributes/used_with_arg.rs rename to tests/ui/attributes/used_with_arg.rs diff --git a/src/test/ui/attributes/used_with_arg.stderr b/tests/ui/attributes/used_with_arg.stderr similarity index 100% rename from src/test/ui/attributes/used_with_arg.stderr rename to tests/ui/attributes/used_with_arg.stderr diff --git a/src/test/ui/attributes/used_with_arg_no_mangle.rs b/tests/ui/attributes/used_with_arg_no_mangle.rs similarity index 100% rename from src/test/ui/attributes/used_with_arg_no_mangle.rs rename to tests/ui/attributes/used_with_arg_no_mangle.rs diff --git a/src/test/ui/attributes/used_with_multi_args.rs b/tests/ui/attributes/used_with_multi_args.rs similarity index 100% rename from src/test/ui/attributes/used_with_multi_args.rs rename to tests/ui/attributes/used_with_multi_args.rs diff --git a/src/test/ui/attributes/used_with_multi_args.stderr b/tests/ui/attributes/used_with_multi_args.stderr similarity index 100% rename from src/test/ui/attributes/used_with_multi_args.stderr rename to tests/ui/attributes/used_with_multi_args.stderr diff --git a/src/test/ui/attributes/variant-attributes.rs b/tests/ui/attributes/variant-attributes.rs similarity index 100% rename from src/test/ui/attributes/variant-attributes.rs rename to tests/ui/attributes/variant-attributes.rs diff --git a/src/test/ui/attributes/z-crate-attr.rs b/tests/ui/attributes/z-crate-attr.rs similarity index 100% rename from src/test/ui/attributes/z-crate-attr.rs rename to tests/ui/attributes/z-crate-attr.rs diff --git a/src/test/ui/attrs-resolution-errors.rs b/tests/ui/attrs-resolution-errors.rs similarity index 100% rename from src/test/ui/attrs-resolution-errors.rs rename to tests/ui/attrs-resolution-errors.rs diff --git a/src/test/ui/attrs-resolution-errors.stderr b/tests/ui/attrs-resolution-errors.stderr similarity index 100% rename from src/test/ui/attrs-resolution-errors.stderr rename to tests/ui/attrs-resolution-errors.stderr diff --git a/src/test/ui/attrs-resolution.rs b/tests/ui/attrs-resolution.rs similarity index 100% rename from src/test/ui/attrs-resolution.rs rename to tests/ui/attrs-resolution.rs diff --git a/src/test/ui/augmented-assignments-feature-gate-cross.rs b/tests/ui/augmented-assignments-feature-gate-cross.rs similarity index 100% rename from src/test/ui/augmented-assignments-feature-gate-cross.rs rename to tests/ui/augmented-assignments-feature-gate-cross.rs diff --git a/src/test/ui/augmented-assignments-rpass.rs b/tests/ui/augmented-assignments-rpass.rs similarity index 100% rename from src/test/ui/augmented-assignments-rpass.rs rename to tests/ui/augmented-assignments-rpass.rs diff --git a/src/test/ui/augmented-assignments.rs b/tests/ui/augmented-assignments.rs similarity index 100% rename from src/test/ui/augmented-assignments.rs rename to tests/ui/augmented-assignments.rs diff --git a/src/test/ui/augmented-assignments.stderr b/tests/ui/augmented-assignments.stderr similarity index 100% rename from src/test/ui/augmented-assignments.stderr rename to tests/ui/augmented-assignments.stderr diff --git a/src/test/ui/auto-instantiate.rs b/tests/ui/auto-instantiate.rs similarity index 100% rename from src/test/ui/auto-instantiate.rs rename to tests/ui/auto-instantiate.rs diff --git a/src/test/ui/auto-ref-slice-plus-ref.rs b/tests/ui/auto-ref-slice-plus-ref.rs similarity index 100% rename from src/test/ui/auto-ref-slice-plus-ref.rs rename to tests/ui/auto-ref-slice-plus-ref.rs diff --git a/src/test/ui/auto-ref-slice-plus-ref.stderr b/tests/ui/auto-ref-slice-plus-ref.stderr similarity index 100% rename from src/test/ui/auto-ref-slice-plus-ref.stderr rename to tests/ui/auto-ref-slice-plus-ref.stderr diff --git a/src/test/ui/auto-traits/auto-is-contextual.rs b/tests/ui/auto-traits/auto-is-contextual.rs similarity index 100% rename from src/test/ui/auto-traits/auto-is-contextual.rs rename to tests/ui/auto-traits/auto-is-contextual.rs diff --git a/src/test/ui/auto-traits/auto-trait-projection-recursion.rs b/tests/ui/auto-traits/auto-trait-projection-recursion.rs similarity index 100% rename from src/test/ui/auto-traits/auto-trait-projection-recursion.rs rename to tests/ui/auto-traits/auto-trait-projection-recursion.rs diff --git a/src/test/ui/auto-traits/auto-trait-validation.fixed b/tests/ui/auto-traits/auto-trait-validation.fixed similarity index 100% rename from src/test/ui/auto-traits/auto-trait-validation.fixed rename to tests/ui/auto-traits/auto-trait-validation.fixed diff --git a/src/test/ui/auto-traits/auto-trait-validation.rs b/tests/ui/auto-traits/auto-trait-validation.rs similarity index 100% rename from src/test/ui/auto-traits/auto-trait-validation.rs rename to tests/ui/auto-traits/auto-trait-validation.rs diff --git a/src/test/ui/auto-traits/auto-trait-validation.stderr b/tests/ui/auto-traits/auto-trait-validation.stderr similarity index 100% rename from src/test/ui/auto-traits/auto-trait-validation.stderr rename to tests/ui/auto-traits/auto-trait-validation.stderr diff --git a/src/test/ui/auto-traits/auto-traits.rs b/tests/ui/auto-traits/auto-traits.rs similarity index 100% rename from src/test/ui/auto-traits/auto-traits.rs rename to tests/ui/auto-traits/auto-traits.rs diff --git a/src/test/ui/auto-traits/bad-generics-on-dyn.rs b/tests/ui/auto-traits/bad-generics-on-dyn.rs similarity index 100% rename from src/test/ui/auto-traits/bad-generics-on-dyn.rs rename to tests/ui/auto-traits/bad-generics-on-dyn.rs diff --git a/src/test/ui/auto-traits/bad-generics-on-dyn.stderr b/tests/ui/auto-traits/bad-generics-on-dyn.stderr similarity index 100% rename from src/test/ui/auto-traits/bad-generics-on-dyn.stderr rename to tests/ui/auto-traits/bad-generics-on-dyn.stderr diff --git a/src/test/ui/auto-traits/issue-23080-2.rs b/tests/ui/auto-traits/issue-23080-2.rs similarity index 100% rename from src/test/ui/auto-traits/issue-23080-2.rs rename to tests/ui/auto-traits/issue-23080-2.rs diff --git a/src/test/ui/auto-traits/issue-23080-2.stderr b/tests/ui/auto-traits/issue-23080-2.stderr similarity index 100% rename from src/test/ui/auto-traits/issue-23080-2.stderr rename to tests/ui/auto-traits/issue-23080-2.stderr diff --git a/src/test/ui/auto-traits/issue-23080.rs b/tests/ui/auto-traits/issue-23080.rs similarity index 100% rename from src/test/ui/auto-traits/issue-23080.rs rename to tests/ui/auto-traits/issue-23080.rs diff --git a/src/test/ui/auto-traits/issue-23080.stderr b/tests/ui/auto-traits/issue-23080.stderr similarity index 100% rename from src/test/ui/auto-traits/issue-23080.stderr rename to tests/ui/auto-traits/issue-23080.stderr diff --git a/src/test/ui/auto-traits/issue-84075.rs b/tests/ui/auto-traits/issue-84075.rs similarity index 100% rename from src/test/ui/auto-traits/issue-84075.rs rename to tests/ui/auto-traits/issue-84075.rs diff --git a/src/test/ui/auto-traits/issue-84075.stderr b/tests/ui/auto-traits/issue-84075.stderr similarity index 100% rename from src/test/ui/auto-traits/issue-84075.stderr rename to tests/ui/auto-traits/issue-84075.stderr diff --git a/src/test/ui/auto-traits/suspicious-impls-lint.rs b/tests/ui/auto-traits/suspicious-impls-lint.rs similarity index 100% rename from src/test/ui/auto-traits/suspicious-impls-lint.rs rename to tests/ui/auto-traits/suspicious-impls-lint.rs diff --git a/src/test/ui/auto-traits/suspicious-impls-lint.stderr b/tests/ui/auto-traits/suspicious-impls-lint.stderr similarity index 100% rename from src/test/ui/auto-traits/suspicious-impls-lint.stderr rename to tests/ui/auto-traits/suspicious-impls-lint.stderr diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs similarity index 100% rename from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs rename to tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.rs diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr similarity index 100% rename from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr rename to tests/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.rs b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits.rs similarity index 100% rename from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.rs rename to tests/ui/auto-traits/typeck-auto-trait-no-supertraits.rs diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr b/tests/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr similarity index 100% rename from src/test/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr rename to tests/ui/auto-traits/typeck-auto-trait-no-supertraits.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs rename to tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr rename to tests/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs rename to tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr rename to tests/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-negation.rs b/tests/ui/auto-traits/typeck-default-trait-impl-negation.rs similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-negation.rs rename to tests/ui/auto-traits/typeck-default-trait-impl-negation.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-negation.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-negation.stderr similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-negation.stderr rename to tests/ui/auto-traits/typeck-default-trait-impl-negation.stderr diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.rs b/tests/ui/auto-traits/typeck-default-trait-impl-precedence.rs similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-precedence.rs rename to tests/ui/auto-traits/typeck-default-trait-impl-precedence.rs diff --git a/src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr b/tests/ui/auto-traits/typeck-default-trait-impl-precedence.stderr similarity index 100% rename from src/test/ui/auto-traits/typeck-default-trait-impl-precedence.stderr rename to tests/ui/auto-traits/typeck-default-trait-impl-precedence.stderr diff --git a/src/test/ui/autoderef-full-lval.rs b/tests/ui/autoderef-full-lval.rs similarity index 100% rename from src/test/ui/autoderef-full-lval.rs rename to tests/ui/autoderef-full-lval.rs diff --git a/src/test/ui/autoderef-full-lval.stderr b/tests/ui/autoderef-full-lval.stderr similarity index 100% rename from src/test/ui/autoderef-full-lval.stderr rename to tests/ui/autoderef-full-lval.stderr diff --git a/src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs b/tests/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs similarity index 100% rename from src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs rename to tests/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs diff --git a/src/test/ui/autoref-autoderef/auto-ref-sliceable.rs b/tests/ui/autoref-autoderef/auto-ref-sliceable.rs similarity index 100% rename from src/test/ui/autoref-autoderef/auto-ref-sliceable.rs rename to tests/ui/autoref-autoderef/auto-ref-sliceable.rs diff --git a/src/test/ui/autoref-autoderef/auto-ref.rs b/tests/ui/autoref-autoderef/auto-ref.rs similarity index 100% rename from src/test/ui/autoref-autoderef/auto-ref.rs rename to tests/ui/autoref-autoderef/auto-ref.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs b/tests/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs rename to tests/ui/autoref-autoderef/autoderef-and-borrow-method-receiver.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-method-on-trait.rs b/tests/ui/autoref-autoderef/autoderef-method-on-trait.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-method-on-trait.rs rename to tests/ui/autoref-autoderef/autoderef-method-on-trait.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-method-priority.rs b/tests/ui/autoref-autoderef/autoderef-method-priority.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-method-priority.rs rename to tests/ui/autoref-autoderef/autoderef-method-priority.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs b/tests/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs rename to tests/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-method-twice.rs b/tests/ui/autoref-autoderef/autoderef-method-twice.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-method-twice.rs rename to tests/ui/autoref-autoderef/autoderef-method-twice.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-method.rs b/tests/ui/autoref-autoderef/autoderef-method.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-method.rs rename to tests/ui/autoref-autoderef/autoderef-method.rs diff --git a/src/test/ui/autoref-autoderef/autoderef-privacy.rs b/tests/ui/autoref-autoderef/autoderef-privacy.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoderef-privacy.rs rename to tests/ui/autoref-autoderef/autoderef-privacy.rs diff --git a/src/test/ui/autoref-autoderef/autoref-intermediate-types-issue-3585.rs b/tests/ui/autoref-autoderef/autoref-intermediate-types-issue-3585.rs similarity index 100% rename from src/test/ui/autoref-autoderef/autoref-intermediate-types-issue-3585.rs rename to tests/ui/autoref-autoderef/autoref-intermediate-types-issue-3585.rs diff --git a/src/test/ui/autoref-autoderef/deref-into-array.rs b/tests/ui/autoref-autoderef/deref-into-array.rs similarity index 100% rename from src/test/ui/autoref-autoderef/deref-into-array.rs rename to tests/ui/autoref-autoderef/deref-into-array.rs diff --git a/src/test/ui/autoref-autoderef/issue-38940.rs b/tests/ui/autoref-autoderef/issue-38940.rs similarity index 100% rename from src/test/ui/autoref-autoderef/issue-38940.rs rename to tests/ui/autoref-autoderef/issue-38940.rs diff --git a/src/test/ui/autoref-autoderef/issue-38940.stderr b/tests/ui/autoref-autoderef/issue-38940.stderr similarity index 100% rename from src/test/ui/autoref-autoderef/issue-38940.stderr rename to tests/ui/autoref-autoderef/issue-38940.stderr diff --git a/src/test/ui/auxiliary/augmented_assignments.rs b/tests/ui/auxiliary/augmented_assignments.rs similarity index 100% rename from src/test/ui/auxiliary/augmented_assignments.rs rename to tests/ui/auxiliary/augmented_assignments.rs diff --git a/src/test/ui/auxiliary/check_static_recursion_foreign_helper.rs b/tests/ui/auxiliary/check_static_recursion_foreign_helper.rs similarity index 100% rename from src/test/ui/auxiliary/check_static_recursion_foreign_helper.rs rename to tests/ui/auxiliary/check_static_recursion_foreign_helper.rs diff --git a/src/test/ui/auxiliary/crate-method-reexport-grrrrrrr2.rs b/tests/ui/auxiliary/crate-method-reexport-grrrrrrr2.rs similarity index 100% rename from src/test/ui/auxiliary/crate-method-reexport-grrrrrrr2.rs rename to tests/ui/auxiliary/crate-method-reexport-grrrrrrr2.rs diff --git a/src/test/ui/auxiliary/default-ty-param-cross-crate-crate.rs b/tests/ui/auxiliary/default-ty-param-cross-crate-crate.rs similarity index 100% rename from src/test/ui/auxiliary/default-ty-param-cross-crate-crate.rs rename to tests/ui/auxiliary/default-ty-param-cross-crate-crate.rs diff --git a/src/test/ui/auxiliary/edition-kw-macro-2015.rs b/tests/ui/auxiliary/edition-kw-macro-2015.rs similarity index 100% rename from src/test/ui/auxiliary/edition-kw-macro-2015.rs rename to tests/ui/auxiliary/edition-kw-macro-2015.rs diff --git a/src/test/ui/auxiliary/edition-kw-macro-2018.rs b/tests/ui/auxiliary/edition-kw-macro-2018.rs similarity index 100% rename from src/test/ui/auxiliary/edition-kw-macro-2018.rs rename to tests/ui/auxiliary/edition-kw-macro-2018.rs diff --git a/src/test/ui/auxiliary/fancy-panic.rs b/tests/ui/auxiliary/fancy-panic.rs similarity index 100% rename from src/test/ui/auxiliary/fancy-panic.rs rename to tests/ui/auxiliary/fancy-panic.rs diff --git a/src/test/ui/auxiliary/hello_macro.rs b/tests/ui/auxiliary/hello_macro.rs similarity index 100% rename from src/test/ui/auxiliary/hello_macro.rs rename to tests/ui/auxiliary/hello_macro.rs diff --git a/src/test/ui/auxiliary/impl_privacy_xc_1.rs b/tests/ui/auxiliary/impl_privacy_xc_1.rs similarity index 100% rename from src/test/ui/auxiliary/impl_privacy_xc_1.rs rename to tests/ui/auxiliary/impl_privacy_xc_1.rs diff --git a/src/test/ui/auxiliary/inner_static.rs b/tests/ui/auxiliary/inner_static.rs similarity index 100% rename from src/test/ui/auxiliary/inner_static.rs rename to tests/ui/auxiliary/inner_static.rs diff --git a/src/test/ui/auxiliary/issue-76387.rs b/tests/ui/auxiliary/issue-76387.rs similarity index 100% rename from src/test/ui/auxiliary/issue-76387.rs rename to tests/ui/auxiliary/issue-76387.rs diff --git a/src/test/ui/auxiliary/kinds_in_metadata.rs b/tests/ui/auxiliary/kinds_in_metadata.rs similarity index 100% rename from src/test/ui/auxiliary/kinds_in_metadata.rs rename to tests/ui/auxiliary/kinds_in_metadata.rs diff --git a/src/test/ui/auxiliary/msvc-data-only-lib.rs b/tests/ui/auxiliary/msvc-data-only-lib.rs similarity index 100% rename from src/test/ui/auxiliary/msvc-data-only-lib.rs rename to tests/ui/auxiliary/msvc-data-only-lib.rs diff --git a/src/test/ui/auxiliary/noexporttypelib.rs b/tests/ui/auxiliary/noexporttypelib.rs similarity index 100% rename from src/test/ui/auxiliary/noexporttypelib.rs rename to tests/ui/auxiliary/noexporttypelib.rs diff --git a/src/test/ui/auxiliary/orphan-check-diagnostics.rs b/tests/ui/auxiliary/orphan-check-diagnostics.rs similarity index 100% rename from src/test/ui/auxiliary/orphan-check-diagnostics.rs rename to tests/ui/auxiliary/orphan-check-diagnostics.rs diff --git a/src/test/ui/auxiliary/pub-and-stability.rs b/tests/ui/auxiliary/pub-and-stability.rs similarity index 100% rename from src/test/ui/auxiliary/pub-and-stability.rs rename to tests/ui/auxiliary/pub-and-stability.rs diff --git a/src/test/ui/auxiliary/removing-extern-crate.rs b/tests/ui/auxiliary/removing-extern-crate.rs similarity index 100% rename from src/test/ui/auxiliary/removing-extern-crate.rs rename to tests/ui/auxiliary/removing-extern-crate.rs diff --git a/src/test/ui/auxiliary/rustc-rust-log-aux.rs b/tests/ui/auxiliary/rustc-rust-log-aux.rs similarity index 100% rename from src/test/ui/auxiliary/rustc-rust-log-aux.rs rename to tests/ui/auxiliary/rustc-rust-log-aux.rs diff --git a/src/test/ui/auxiliary/svh-a-base.rs b/tests/ui/auxiliary/svh-a-base.rs similarity index 100% rename from src/test/ui/auxiliary/svh-a-base.rs rename to tests/ui/auxiliary/svh-a-base.rs diff --git a/src/test/ui/auxiliary/svh-b.rs b/tests/ui/auxiliary/svh-b.rs similarity index 100% rename from src/test/ui/auxiliary/svh-b.rs rename to tests/ui/auxiliary/svh-b.rs diff --git a/src/test/ui/auxiliary/typeid-intrinsic-aux1.rs b/tests/ui/auxiliary/typeid-intrinsic-aux1.rs similarity index 100% rename from src/test/ui/auxiliary/typeid-intrinsic-aux1.rs rename to tests/ui/auxiliary/typeid-intrinsic-aux1.rs diff --git a/src/test/ui/auxiliary/typeid-intrinsic-aux2.rs b/tests/ui/auxiliary/typeid-intrinsic-aux2.rs similarity index 100% rename from src/test/ui/auxiliary/typeid-intrinsic-aux2.rs rename to tests/ui/auxiliary/typeid-intrinsic-aux2.rs diff --git a/src/test/ui/auxiliary/using-target-feature-unstable.rs b/tests/ui/auxiliary/using-target-feature-unstable.rs similarity index 100% rename from src/test/ui/auxiliary/using-target-feature-unstable.rs rename to tests/ui/auxiliary/using-target-feature-unstable.rs diff --git a/src/test/ui/auxiliary/xc-private-method-lib.rs b/tests/ui/auxiliary/xc-private-method-lib.rs similarity index 100% rename from src/test/ui/auxiliary/xc-private-method-lib.rs rename to tests/ui/auxiliary/xc-private-method-lib.rs diff --git a/src/test/ui/backtrace-apple-no-dsymutil.rs b/tests/ui/backtrace-apple-no-dsymutil.rs similarity index 100% rename from src/test/ui/backtrace-apple-no-dsymutil.rs rename to tests/ui/backtrace-apple-no-dsymutil.rs diff --git a/src/test/ui/backtrace.rs b/tests/ui/backtrace.rs similarity index 100% rename from src/test/ui/backtrace.rs rename to tests/ui/backtrace.rs diff --git a/src/test/ui/bare-fn-implements-fn-mut.rs b/tests/ui/bare-fn-implements-fn-mut.rs similarity index 100% rename from src/test/ui/bare-fn-implements-fn-mut.rs rename to tests/ui/bare-fn-implements-fn-mut.rs diff --git a/src/test/ui/bare-static-string.rs b/tests/ui/bare-static-string.rs similarity index 100% rename from src/test/ui/bare-static-string.rs rename to tests/ui/bare-static-string.rs diff --git a/src/test/ui/bench/issue-32062.rs b/tests/ui/bench/issue-32062.rs similarity index 100% rename from src/test/ui/bench/issue-32062.rs rename to tests/ui/bench/issue-32062.rs diff --git a/src/test/ui/big-literals.rs b/tests/ui/big-literals.rs similarity index 100% rename from src/test/ui/big-literals.rs rename to tests/ui/big-literals.rs diff --git a/src/test/ui/bind-by-move.rs b/tests/ui/bind-by-move.rs similarity index 100% rename from src/test/ui/bind-by-move.rs rename to tests/ui/bind-by-move.rs diff --git a/src/test/ui/binding/ambiguity-item.rs b/tests/ui/binding/ambiguity-item.rs similarity index 100% rename from src/test/ui/binding/ambiguity-item.rs rename to tests/ui/binding/ambiguity-item.rs diff --git a/src/test/ui/binding/ambiguity-item.stderr b/tests/ui/binding/ambiguity-item.stderr similarity index 100% rename from src/test/ui/binding/ambiguity-item.stderr rename to tests/ui/binding/ambiguity-item.stderr diff --git a/src/test/ui/binding/bind-field-short-with-modifiers.rs b/tests/ui/binding/bind-field-short-with-modifiers.rs similarity index 100% rename from src/test/ui/binding/bind-field-short-with-modifiers.rs rename to tests/ui/binding/bind-field-short-with-modifiers.rs diff --git a/src/test/ui/binding/borrowed-ptr-pattern-2.rs b/tests/ui/binding/borrowed-ptr-pattern-2.rs similarity index 100% rename from src/test/ui/binding/borrowed-ptr-pattern-2.rs rename to tests/ui/binding/borrowed-ptr-pattern-2.rs diff --git a/src/test/ui/binding/borrowed-ptr-pattern-3.rs b/tests/ui/binding/borrowed-ptr-pattern-3.rs similarity index 100% rename from src/test/ui/binding/borrowed-ptr-pattern-3.rs rename to tests/ui/binding/borrowed-ptr-pattern-3.rs diff --git a/src/test/ui/binding/borrowed-ptr-pattern-infallible.rs b/tests/ui/binding/borrowed-ptr-pattern-infallible.rs similarity index 100% rename from src/test/ui/binding/borrowed-ptr-pattern-infallible.rs rename to tests/ui/binding/borrowed-ptr-pattern-infallible.rs diff --git a/src/test/ui/binding/borrowed-ptr-pattern-option.rs b/tests/ui/binding/borrowed-ptr-pattern-option.rs similarity index 100% rename from src/test/ui/binding/borrowed-ptr-pattern-option.rs rename to tests/ui/binding/borrowed-ptr-pattern-option.rs diff --git a/src/test/ui/binding/borrowed-ptr-pattern.rs b/tests/ui/binding/borrowed-ptr-pattern.rs similarity index 100% rename from src/test/ui/binding/borrowed-ptr-pattern.rs rename to tests/ui/binding/borrowed-ptr-pattern.rs diff --git a/src/test/ui/binding/const-param.rs b/tests/ui/binding/const-param.rs similarity index 100% rename from src/test/ui/binding/const-param.rs rename to tests/ui/binding/const-param.rs diff --git a/src/test/ui/binding/const-param.stderr b/tests/ui/binding/const-param.stderr similarity index 100% rename from src/test/ui/binding/const-param.stderr rename to tests/ui/binding/const-param.stderr diff --git a/src/test/ui/binding/empty-types-in-patterns.rs b/tests/ui/binding/empty-types-in-patterns.rs similarity index 100% rename from src/test/ui/binding/empty-types-in-patterns.rs rename to tests/ui/binding/empty-types-in-patterns.rs diff --git a/src/test/ui/binding/exhaustive-bool-match-sanity.rs b/tests/ui/binding/exhaustive-bool-match-sanity.rs similarity index 100% rename from src/test/ui/binding/exhaustive-bool-match-sanity.rs rename to tests/ui/binding/exhaustive-bool-match-sanity.rs diff --git a/src/test/ui/binding/expr-match-generic-unique1.rs b/tests/ui/binding/expr-match-generic-unique1.rs similarity index 100% rename from src/test/ui/binding/expr-match-generic-unique1.rs rename to tests/ui/binding/expr-match-generic-unique1.rs diff --git a/src/test/ui/binding/expr-match-generic-unique2.rs b/tests/ui/binding/expr-match-generic-unique2.rs similarity index 100% rename from src/test/ui/binding/expr-match-generic-unique2.rs rename to tests/ui/binding/expr-match-generic-unique2.rs diff --git a/src/test/ui/binding/expr-match-generic.rs b/tests/ui/binding/expr-match-generic.rs similarity index 100% rename from src/test/ui/binding/expr-match-generic.rs rename to tests/ui/binding/expr-match-generic.rs diff --git a/src/test/ui/binding/expr-match-panic-all.rs b/tests/ui/binding/expr-match-panic-all.rs similarity index 100% rename from src/test/ui/binding/expr-match-panic-all.rs rename to tests/ui/binding/expr-match-panic-all.rs diff --git a/src/test/ui/binding/expr-match-panic.rs b/tests/ui/binding/expr-match-panic.rs similarity index 100% rename from src/test/ui/binding/expr-match-panic.rs rename to tests/ui/binding/expr-match-panic.rs diff --git a/src/test/ui/binding/expr-match-unique.rs b/tests/ui/binding/expr-match-unique.rs similarity index 100% rename from src/test/ui/binding/expr-match-unique.rs rename to tests/ui/binding/expr-match-unique.rs diff --git a/src/test/ui/binding/expr-match.rs b/tests/ui/binding/expr-match.rs similarity index 100% rename from src/test/ui/binding/expr-match.rs rename to tests/ui/binding/expr-match.rs diff --git a/src/test/ui/binding/fat-arrow-match.rs b/tests/ui/binding/fat-arrow-match.rs similarity index 100% rename from src/test/ui/binding/fat-arrow-match.rs rename to tests/ui/binding/fat-arrow-match.rs diff --git a/src/test/ui/binding/fn-arg-incomplete-pattern-drop-order.rs b/tests/ui/binding/fn-arg-incomplete-pattern-drop-order.rs similarity index 100% rename from src/test/ui/binding/fn-arg-incomplete-pattern-drop-order.rs rename to tests/ui/binding/fn-arg-incomplete-pattern-drop-order.rs diff --git a/src/test/ui/binding/fn-pattern-expected-type-2.rs b/tests/ui/binding/fn-pattern-expected-type-2.rs similarity index 100% rename from src/test/ui/binding/fn-pattern-expected-type-2.rs rename to tests/ui/binding/fn-pattern-expected-type-2.rs diff --git a/src/test/ui/binding/fn-pattern-expected-type.rs b/tests/ui/binding/fn-pattern-expected-type.rs similarity index 100% rename from src/test/ui/binding/fn-pattern-expected-type.rs rename to tests/ui/binding/fn-pattern-expected-type.rs diff --git a/src/test/ui/binding/func-arg-incomplete-pattern.rs b/tests/ui/binding/func-arg-incomplete-pattern.rs similarity index 100% rename from src/test/ui/binding/func-arg-incomplete-pattern.rs rename to tests/ui/binding/func-arg-incomplete-pattern.rs diff --git a/src/test/ui/binding/func-arg-ref-pattern.rs b/tests/ui/binding/func-arg-ref-pattern.rs similarity index 100% rename from src/test/ui/binding/func-arg-ref-pattern.rs rename to tests/ui/binding/func-arg-ref-pattern.rs diff --git a/src/test/ui/binding/func-arg-wild-pattern.rs b/tests/ui/binding/func-arg-wild-pattern.rs similarity index 100% rename from src/test/ui/binding/func-arg-wild-pattern.rs rename to tests/ui/binding/func-arg-wild-pattern.rs diff --git a/src/test/ui/binding/if-let.rs b/tests/ui/binding/if-let.rs similarity index 100% rename from src/test/ui/binding/if-let.rs rename to tests/ui/binding/if-let.rs diff --git a/src/test/ui/binding/inconsistent-lifetime-mismatch.rs b/tests/ui/binding/inconsistent-lifetime-mismatch.rs similarity index 100% rename from src/test/ui/binding/inconsistent-lifetime-mismatch.rs rename to tests/ui/binding/inconsistent-lifetime-mismatch.rs diff --git a/src/test/ui/binding/inferred-suffix-in-pattern-range.rs b/tests/ui/binding/inferred-suffix-in-pattern-range.rs similarity index 100% rename from src/test/ui/binding/inferred-suffix-in-pattern-range.rs rename to tests/ui/binding/inferred-suffix-in-pattern-range.rs diff --git a/src/test/ui/binding/irrefutable-slice-patterns.rs b/tests/ui/binding/irrefutable-slice-patterns.rs similarity index 100% rename from src/test/ui/binding/irrefutable-slice-patterns.rs rename to tests/ui/binding/irrefutable-slice-patterns.rs diff --git a/src/test/ui/binding/issue-53114-borrow-checks.rs b/tests/ui/binding/issue-53114-borrow-checks.rs similarity index 100% rename from src/test/ui/binding/issue-53114-borrow-checks.rs rename to tests/ui/binding/issue-53114-borrow-checks.rs diff --git a/src/test/ui/binding/issue-53114-borrow-checks.stderr b/tests/ui/binding/issue-53114-borrow-checks.stderr similarity index 100% rename from src/test/ui/binding/issue-53114-borrow-checks.stderr rename to tests/ui/binding/issue-53114-borrow-checks.stderr diff --git a/src/test/ui/binding/issue-53114-safety-checks.rs b/tests/ui/binding/issue-53114-safety-checks.rs similarity index 100% rename from src/test/ui/binding/issue-53114-safety-checks.rs rename to tests/ui/binding/issue-53114-safety-checks.rs diff --git a/src/test/ui/binding/issue-53114-safety-checks.stderr b/tests/ui/binding/issue-53114-safety-checks.stderr similarity index 100% rename from src/test/ui/binding/issue-53114-safety-checks.stderr rename to tests/ui/binding/issue-53114-safety-checks.stderr diff --git a/src/test/ui/binding/let-assignability.rs b/tests/ui/binding/let-assignability.rs similarity index 100% rename from src/test/ui/binding/let-assignability.rs rename to tests/ui/binding/let-assignability.rs diff --git a/src/test/ui/binding/let-destruct-ref.rs b/tests/ui/binding/let-destruct-ref.rs similarity index 100% rename from src/test/ui/binding/let-destruct-ref.rs rename to tests/ui/binding/let-destruct-ref.rs diff --git a/src/test/ui/binding/let-var-hygiene.rs b/tests/ui/binding/let-var-hygiene.rs similarity index 100% rename from src/test/ui/binding/let-var-hygiene.rs rename to tests/ui/binding/let-var-hygiene.rs diff --git a/src/test/ui/binding/match-arm-statics.rs b/tests/ui/binding/match-arm-statics.rs similarity index 100% rename from src/test/ui/binding/match-arm-statics.rs rename to tests/ui/binding/match-arm-statics.rs diff --git a/src/test/ui/binding/match-beginning-vert.rs b/tests/ui/binding/match-beginning-vert.rs similarity index 100% rename from src/test/ui/binding/match-beginning-vert.rs rename to tests/ui/binding/match-beginning-vert.rs diff --git a/src/test/ui/binding/match-borrowed_str.rs b/tests/ui/binding/match-borrowed_str.rs similarity index 100% rename from src/test/ui/binding/match-borrowed_str.rs rename to tests/ui/binding/match-borrowed_str.rs diff --git a/src/test/ui/binding/match-bot-2.rs b/tests/ui/binding/match-bot-2.rs similarity index 100% rename from src/test/ui/binding/match-bot-2.rs rename to tests/ui/binding/match-bot-2.rs diff --git a/src/test/ui/binding/match-bot.rs b/tests/ui/binding/match-bot.rs similarity index 100% rename from src/test/ui/binding/match-bot.rs rename to tests/ui/binding/match-bot.rs diff --git a/src/test/ui/binding/match-byte-array-patterns.rs b/tests/ui/binding/match-byte-array-patterns.rs similarity index 100% rename from src/test/ui/binding/match-byte-array-patterns.rs rename to tests/ui/binding/match-byte-array-patterns.rs diff --git a/src/test/ui/binding/match-enum-struct-0.rs b/tests/ui/binding/match-enum-struct-0.rs similarity index 100% rename from src/test/ui/binding/match-enum-struct-0.rs rename to tests/ui/binding/match-enum-struct-0.rs diff --git a/src/test/ui/binding/match-enum-struct-1.rs b/tests/ui/binding/match-enum-struct-1.rs similarity index 100% rename from src/test/ui/binding/match-enum-struct-1.rs rename to tests/ui/binding/match-enum-struct-1.rs diff --git a/src/test/ui/binding/match-implicit-copy-unique.rs b/tests/ui/binding/match-implicit-copy-unique.rs similarity index 100% rename from src/test/ui/binding/match-implicit-copy-unique.rs rename to tests/ui/binding/match-implicit-copy-unique.rs diff --git a/src/test/ui/binding/match-in-macro.rs b/tests/ui/binding/match-in-macro.rs similarity index 100% rename from src/test/ui/binding/match-in-macro.rs rename to tests/ui/binding/match-in-macro.rs diff --git a/src/test/ui/binding/match-join.rs b/tests/ui/binding/match-join.rs similarity index 100% rename from src/test/ui/binding/match-join.rs rename to tests/ui/binding/match-join.rs diff --git a/src/test/ui/binding/match-larger-const.rs b/tests/ui/binding/match-larger-const.rs similarity index 100% rename from src/test/ui/binding/match-larger-const.rs rename to tests/ui/binding/match-larger-const.rs diff --git a/src/test/ui/binding/match-naked-record-expr.rs b/tests/ui/binding/match-naked-record-expr.rs similarity index 100% rename from src/test/ui/binding/match-naked-record-expr.rs rename to tests/ui/binding/match-naked-record-expr.rs diff --git a/src/test/ui/binding/match-naked-record.rs b/tests/ui/binding/match-naked-record.rs similarity index 100% rename from src/test/ui/binding/match-naked-record.rs rename to tests/ui/binding/match-naked-record.rs diff --git a/src/test/ui/binding/match-path.rs b/tests/ui/binding/match-path.rs similarity index 100% rename from src/test/ui/binding/match-path.rs rename to tests/ui/binding/match-path.rs diff --git a/src/test/ui/binding/match-pattern-bindings.rs b/tests/ui/binding/match-pattern-bindings.rs similarity index 100% rename from src/test/ui/binding/match-pattern-bindings.rs rename to tests/ui/binding/match-pattern-bindings.rs diff --git a/src/test/ui/binding/match-pattern-lit.rs b/tests/ui/binding/match-pattern-lit.rs similarity index 100% rename from src/test/ui/binding/match-pattern-lit.rs rename to tests/ui/binding/match-pattern-lit.rs diff --git a/src/test/ui/binding/match-pattern-no-type-params.rs b/tests/ui/binding/match-pattern-no-type-params.rs similarity index 100% rename from src/test/ui/binding/match-pattern-no-type-params.rs rename to tests/ui/binding/match-pattern-no-type-params.rs diff --git a/src/test/ui/binding/match-pattern-simple.rs b/tests/ui/binding/match-pattern-simple.rs similarity index 100% rename from src/test/ui/binding/match-pattern-simple.rs rename to tests/ui/binding/match-pattern-simple.rs diff --git a/src/test/ui/binding/match-phi.rs b/tests/ui/binding/match-phi.rs similarity index 100% rename from src/test/ui/binding/match-phi.rs rename to tests/ui/binding/match-phi.rs diff --git a/src/test/ui/binding/match-pipe-binding.rs b/tests/ui/binding/match-pipe-binding.rs similarity index 100% rename from src/test/ui/binding/match-pipe-binding.rs rename to tests/ui/binding/match-pipe-binding.rs diff --git a/src/test/ui/binding/match-range-infer.rs b/tests/ui/binding/match-range-infer.rs similarity index 100% rename from src/test/ui/binding/match-range-infer.rs rename to tests/ui/binding/match-range-infer.rs diff --git a/src/test/ui/binding/match-range-static.rs b/tests/ui/binding/match-range-static.rs similarity index 100% rename from src/test/ui/binding/match-range-static.rs rename to tests/ui/binding/match-range-static.rs diff --git a/src/test/ui/binding/match-range.rs b/tests/ui/binding/match-range.rs similarity index 100% rename from src/test/ui/binding/match-range.rs rename to tests/ui/binding/match-range.rs diff --git a/src/test/ui/binding/match-reassign.rs b/tests/ui/binding/match-reassign.rs similarity index 100% rename from src/test/ui/binding/match-reassign.rs rename to tests/ui/binding/match-reassign.rs diff --git a/src/test/ui/binding/match-ref-binding-in-guard-3256.rs b/tests/ui/binding/match-ref-binding-in-guard-3256.rs similarity index 100% rename from src/test/ui/binding/match-ref-binding-in-guard-3256.rs rename to tests/ui/binding/match-ref-binding-in-guard-3256.rs diff --git a/src/test/ui/binding/match-ref-binding-mut-option.rs b/tests/ui/binding/match-ref-binding-mut-option.rs similarity index 100% rename from src/test/ui/binding/match-ref-binding-mut-option.rs rename to tests/ui/binding/match-ref-binding-mut-option.rs diff --git a/src/test/ui/binding/match-ref-binding-mut.rs b/tests/ui/binding/match-ref-binding-mut.rs similarity index 100% rename from src/test/ui/binding/match-ref-binding-mut.rs rename to tests/ui/binding/match-ref-binding-mut.rs diff --git a/src/test/ui/binding/match-ref-binding.rs b/tests/ui/binding/match-ref-binding.rs similarity index 100% rename from src/test/ui/binding/match-ref-binding.rs rename to tests/ui/binding/match-ref-binding.rs diff --git a/src/test/ui/binding/match-ref-unsized.rs b/tests/ui/binding/match-ref-unsized.rs similarity index 100% rename from src/test/ui/binding/match-ref-unsized.rs rename to tests/ui/binding/match-ref-unsized.rs diff --git a/src/test/ui/binding/match-str.rs b/tests/ui/binding/match-str.rs similarity index 100% rename from src/test/ui/binding/match-str.rs rename to tests/ui/binding/match-str.rs diff --git a/src/test/ui/binding/match-struct-0.rs b/tests/ui/binding/match-struct-0.rs similarity index 100% rename from src/test/ui/binding/match-struct-0.rs rename to tests/ui/binding/match-struct-0.rs diff --git a/src/test/ui/binding/match-tag.rs b/tests/ui/binding/match-tag.rs similarity index 100% rename from src/test/ui/binding/match-tag.rs rename to tests/ui/binding/match-tag.rs diff --git a/src/test/ui/binding/match-unique-bind.rs b/tests/ui/binding/match-unique-bind.rs similarity index 100% rename from src/test/ui/binding/match-unique-bind.rs rename to tests/ui/binding/match-unique-bind.rs diff --git a/src/test/ui/binding/match-unsized.rs b/tests/ui/binding/match-unsized.rs similarity index 100% rename from src/test/ui/binding/match-unsized.rs rename to tests/ui/binding/match-unsized.rs diff --git a/src/test/ui/binding/match-value-binding-in-guard-3291.rs b/tests/ui/binding/match-value-binding-in-guard-3291.rs similarity index 100% rename from src/test/ui/binding/match-value-binding-in-guard-3291.rs rename to tests/ui/binding/match-value-binding-in-guard-3291.rs diff --git a/src/test/ui/binding/match-var-hygiene.rs b/tests/ui/binding/match-var-hygiene.rs similarity index 100% rename from src/test/ui/binding/match-var-hygiene.rs rename to tests/ui/binding/match-var-hygiene.rs diff --git a/src/test/ui/binding/match-vec-alternatives.rs b/tests/ui/binding/match-vec-alternatives.rs similarity index 100% rename from src/test/ui/binding/match-vec-alternatives.rs rename to tests/ui/binding/match-vec-alternatives.rs diff --git a/src/test/ui/binding/match-vec-rvalue.rs b/tests/ui/binding/match-vec-rvalue.rs similarity index 100% rename from src/test/ui/binding/match-vec-rvalue.rs rename to tests/ui/binding/match-vec-rvalue.rs diff --git a/src/test/ui/binding/match-with-ret-arm.rs b/tests/ui/binding/match-with-ret-arm.rs similarity index 100% rename from src/test/ui/binding/match-with-ret-arm.rs rename to tests/ui/binding/match-with-ret-arm.rs diff --git a/src/test/ui/binding/multi-let.rs b/tests/ui/binding/multi-let.rs similarity index 100% rename from src/test/ui/binding/multi-let.rs rename to tests/ui/binding/multi-let.rs diff --git a/src/test/ui/binding/mut-in-ident-patterns.rs b/tests/ui/binding/mut-in-ident-patterns.rs similarity index 100% rename from src/test/ui/binding/mut-in-ident-patterns.rs rename to tests/ui/binding/mut-in-ident-patterns.rs diff --git a/src/test/ui/binding/nested-matchs.rs b/tests/ui/binding/nested-matchs.rs similarity index 100% rename from src/test/ui/binding/nested-matchs.rs rename to tests/ui/binding/nested-matchs.rs diff --git a/src/test/ui/binding/nested-pattern.rs b/tests/ui/binding/nested-pattern.rs similarity index 100% rename from src/test/ui/binding/nested-pattern.rs rename to tests/ui/binding/nested-pattern.rs diff --git a/src/test/ui/binding/nil-pattern.rs b/tests/ui/binding/nil-pattern.rs similarity index 100% rename from src/test/ui/binding/nil-pattern.rs rename to tests/ui/binding/nil-pattern.rs diff --git a/src/test/ui/binding/nullary-or-pattern.rs b/tests/ui/binding/nullary-or-pattern.rs similarity index 100% rename from src/test/ui/binding/nullary-or-pattern.rs rename to tests/ui/binding/nullary-or-pattern.rs diff --git a/src/test/ui/binding/optional_comma_in_match_arm.rs b/tests/ui/binding/optional_comma_in_match_arm.rs similarity index 100% rename from src/test/ui/binding/optional_comma_in_match_arm.rs rename to tests/ui/binding/optional_comma_in_match_arm.rs diff --git a/src/test/ui/binding/or-pattern.rs b/tests/ui/binding/or-pattern.rs similarity index 100% rename from src/test/ui/binding/or-pattern.rs rename to tests/ui/binding/or-pattern.rs diff --git a/src/test/ui/binding/order-drop-with-match.rs b/tests/ui/binding/order-drop-with-match.rs similarity index 100% rename from src/test/ui/binding/order-drop-with-match.rs rename to tests/ui/binding/order-drop-with-match.rs diff --git a/src/test/ui/binding/pat-ranges.rs b/tests/ui/binding/pat-ranges.rs similarity index 100% rename from src/test/ui/binding/pat-ranges.rs rename to tests/ui/binding/pat-ranges.rs diff --git a/src/test/ui/binding/pat-tuple-1.rs b/tests/ui/binding/pat-tuple-1.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-1.rs rename to tests/ui/binding/pat-tuple-1.rs diff --git a/src/test/ui/binding/pat-tuple-2.rs b/tests/ui/binding/pat-tuple-2.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-2.rs rename to tests/ui/binding/pat-tuple-2.rs diff --git a/src/test/ui/binding/pat-tuple-3.rs b/tests/ui/binding/pat-tuple-3.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-3.rs rename to tests/ui/binding/pat-tuple-3.rs diff --git a/src/test/ui/binding/pat-tuple-4.rs b/tests/ui/binding/pat-tuple-4.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-4.rs rename to tests/ui/binding/pat-tuple-4.rs diff --git a/src/test/ui/binding/pat-tuple-5.rs b/tests/ui/binding/pat-tuple-5.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-5.rs rename to tests/ui/binding/pat-tuple-5.rs diff --git a/src/test/ui/binding/pat-tuple-6.rs b/tests/ui/binding/pat-tuple-6.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-6.rs rename to tests/ui/binding/pat-tuple-6.rs diff --git a/src/test/ui/binding/pat-tuple-7.rs b/tests/ui/binding/pat-tuple-7.rs similarity index 100% rename from src/test/ui/binding/pat-tuple-7.rs rename to tests/ui/binding/pat-tuple-7.rs diff --git a/src/test/ui/binding/pattern-bound-var-in-for-each.rs b/tests/ui/binding/pattern-bound-var-in-for-each.rs similarity index 100% rename from src/test/ui/binding/pattern-bound-var-in-for-each.rs rename to tests/ui/binding/pattern-bound-var-in-for-each.rs diff --git a/src/test/ui/binding/pattern-in-closure.rs b/tests/ui/binding/pattern-in-closure.rs similarity index 100% rename from src/test/ui/binding/pattern-in-closure.rs rename to tests/ui/binding/pattern-in-closure.rs diff --git a/src/test/ui/binding/range-inclusive-pattern-precedence.rs b/tests/ui/binding/range-inclusive-pattern-precedence.rs similarity index 100% rename from src/test/ui/binding/range-inclusive-pattern-precedence.rs rename to tests/ui/binding/range-inclusive-pattern-precedence.rs diff --git a/src/test/ui/binding/shadow.rs b/tests/ui/binding/shadow.rs similarity index 100% rename from src/test/ui/binding/shadow.rs rename to tests/ui/binding/shadow.rs diff --git a/src/test/ui/binding/simple-generic-match.rs b/tests/ui/binding/simple-generic-match.rs similarity index 100% rename from src/test/ui/binding/simple-generic-match.rs rename to tests/ui/binding/simple-generic-match.rs diff --git a/src/test/ui/binding/use-uninit-match.rs b/tests/ui/binding/use-uninit-match.rs similarity index 100% rename from src/test/ui/binding/use-uninit-match.rs rename to tests/ui/binding/use-uninit-match.rs diff --git a/src/test/ui/binding/use-uninit-match2.rs b/tests/ui/binding/use-uninit-match2.rs similarity index 100% rename from src/test/ui/binding/use-uninit-match2.rs rename to tests/ui/binding/use-uninit-match2.rs diff --git a/src/test/ui/binding/zero_sized_subslice_match.rs b/tests/ui/binding/zero_sized_subslice_match.rs similarity index 100% rename from src/test/ui/binding/zero_sized_subslice_match.rs rename to tests/ui/binding/zero_sized_subslice_match.rs diff --git a/src/test/ui/binop/binary-minus-without-space.rs b/tests/ui/binop/binary-minus-without-space.rs similarity index 100% rename from src/test/ui/binop/binary-minus-without-space.rs rename to tests/ui/binop/binary-minus-without-space.rs diff --git a/src/test/ui/binop/binary-op-on-double-ref.fixed b/tests/ui/binop/binary-op-on-double-ref.fixed similarity index 100% rename from src/test/ui/binop/binary-op-on-double-ref.fixed rename to tests/ui/binop/binary-op-on-double-ref.fixed diff --git a/src/test/ui/binop/binary-op-on-double-ref.rs b/tests/ui/binop/binary-op-on-double-ref.rs similarity index 100% rename from src/test/ui/binop/binary-op-on-double-ref.rs rename to tests/ui/binop/binary-op-on-double-ref.rs diff --git a/src/test/ui/binop/binary-op-on-double-ref.stderr b/tests/ui/binop/binary-op-on-double-ref.stderr similarity index 100% rename from src/test/ui/binop/binary-op-on-double-ref.stderr rename to tests/ui/binop/binary-op-on-double-ref.stderr diff --git a/src/test/ui/binop/binary-op-on-fn-ptr-eq.rs b/tests/ui/binop/binary-op-on-fn-ptr-eq.rs similarity index 100% rename from src/test/ui/binop/binary-op-on-fn-ptr-eq.rs rename to tests/ui/binop/binary-op-on-fn-ptr-eq.rs diff --git a/src/test/ui/binop/binop-bitxor-str.rs b/tests/ui/binop/binop-bitxor-str.rs similarity index 100% rename from src/test/ui/binop/binop-bitxor-str.rs rename to tests/ui/binop/binop-bitxor-str.rs diff --git a/src/test/ui/binop/binop-bitxor-str.stderr b/tests/ui/binop/binop-bitxor-str.stderr similarity index 100% rename from src/test/ui/binop/binop-bitxor-str.stderr rename to tests/ui/binop/binop-bitxor-str.stderr diff --git a/src/test/ui/binop/binop-consume-args.rs b/tests/ui/binop/binop-consume-args.rs similarity index 100% rename from src/test/ui/binop/binop-consume-args.rs rename to tests/ui/binop/binop-consume-args.rs diff --git a/src/test/ui/binop/binop-consume-args.stderr b/tests/ui/binop/binop-consume-args.stderr similarity index 100% rename from src/test/ui/binop/binop-consume-args.stderr rename to tests/ui/binop/binop-consume-args.stderr diff --git a/src/test/ui/binop/binop-fail-3.rs b/tests/ui/binop/binop-fail-3.rs similarity index 100% rename from src/test/ui/binop/binop-fail-3.rs rename to tests/ui/binop/binop-fail-3.rs diff --git a/src/test/ui/binop/binop-logic-float.rs b/tests/ui/binop/binop-logic-float.rs similarity index 100% rename from src/test/ui/binop/binop-logic-float.rs rename to tests/ui/binop/binop-logic-float.rs diff --git a/src/test/ui/binop/binop-logic-float.stderr b/tests/ui/binop/binop-logic-float.stderr similarity index 100% rename from src/test/ui/binop/binop-logic-float.stderr rename to tests/ui/binop/binop-logic-float.stderr diff --git a/src/test/ui/binop/binop-logic-int.rs b/tests/ui/binop/binop-logic-int.rs similarity index 100% rename from src/test/ui/binop/binop-logic-int.rs rename to tests/ui/binop/binop-logic-int.rs diff --git a/src/test/ui/binop/binop-logic-int.stderr b/tests/ui/binop/binop-logic-int.stderr similarity index 100% rename from src/test/ui/binop/binop-logic-int.stderr rename to tests/ui/binop/binop-logic-int.stderr diff --git a/src/test/ui/binop/binop-move-semantics.rs b/tests/ui/binop/binop-move-semantics.rs similarity index 100% rename from src/test/ui/binop/binop-move-semantics.rs rename to tests/ui/binop/binop-move-semantics.rs diff --git a/src/test/ui/binop/binop-move-semantics.stderr b/tests/ui/binop/binop-move-semantics.stderr similarity index 100% rename from src/test/ui/binop/binop-move-semantics.stderr rename to tests/ui/binop/binop-move-semantics.stderr diff --git a/src/test/ui/binop/binop-mul-bool.rs b/tests/ui/binop/binop-mul-bool.rs similarity index 100% rename from src/test/ui/binop/binop-mul-bool.rs rename to tests/ui/binop/binop-mul-bool.rs diff --git a/src/test/ui/binop/binop-mul-bool.stderr b/tests/ui/binop/binop-mul-bool.stderr similarity index 100% rename from src/test/ui/binop/binop-mul-bool.stderr rename to tests/ui/binop/binop-mul-bool.stderr diff --git a/src/test/ui/binop/binop-mul-i32-f32.rs b/tests/ui/binop/binop-mul-i32-f32.rs similarity index 100% rename from src/test/ui/binop/binop-mul-i32-f32.rs rename to tests/ui/binop/binop-mul-i32-f32.rs diff --git a/src/test/ui/binop/binop-mul-i32-f32.stderr b/tests/ui/binop/binop-mul-i32-f32.stderr similarity index 100% rename from src/test/ui/binop/binop-mul-i32-f32.stderr rename to tests/ui/binop/binop-mul-i32-f32.stderr diff --git a/src/test/ui/binop/binop-panic.rs b/tests/ui/binop/binop-panic.rs similarity index 100% rename from src/test/ui/binop/binop-panic.rs rename to tests/ui/binop/binop-panic.rs diff --git a/src/test/ui/binop/binop-typeck.rs b/tests/ui/binop/binop-typeck.rs similarity index 100% rename from src/test/ui/binop/binop-typeck.rs rename to tests/ui/binop/binop-typeck.rs diff --git a/src/test/ui/binop/binop-typeck.stderr b/tests/ui/binop/binop-typeck.stderr similarity index 100% rename from src/test/ui/binop/binop-typeck.stderr rename to tests/ui/binop/binop-typeck.stderr diff --git a/src/test/ui/binop/binops-issue-22743.rs b/tests/ui/binop/binops-issue-22743.rs similarity index 100% rename from src/test/ui/binop/binops-issue-22743.rs rename to tests/ui/binop/binops-issue-22743.rs diff --git a/src/test/ui/binop/binops.rs b/tests/ui/binop/binops.rs similarity index 100% rename from src/test/ui/binop/binops.rs rename to tests/ui/binop/binops.rs diff --git a/src/test/ui/binop/issue-25916.rs b/tests/ui/binop/issue-25916.rs similarity index 100% rename from src/test/ui/binop/issue-25916.rs rename to tests/ui/binop/issue-25916.rs diff --git a/src/test/ui/binop/issue-28837.rs b/tests/ui/binop/issue-28837.rs similarity index 100% rename from src/test/ui/binop/issue-28837.rs rename to tests/ui/binop/issue-28837.rs diff --git a/src/test/ui/binop/issue-28837.stderr b/tests/ui/binop/issue-28837.stderr similarity index 100% rename from src/test/ui/binop/issue-28837.stderr rename to tests/ui/binop/issue-28837.stderr diff --git a/src/test/ui/binop/issue-3820.rs b/tests/ui/binop/issue-3820.rs similarity index 100% rename from src/test/ui/binop/issue-3820.rs rename to tests/ui/binop/issue-3820.rs diff --git a/src/test/ui/binop/issue-3820.stderr b/tests/ui/binop/issue-3820.stderr similarity index 100% rename from src/test/ui/binop/issue-3820.stderr rename to tests/ui/binop/issue-3820.stderr diff --git a/src/test/ui/binop/issue-77910-1.rs b/tests/ui/binop/issue-77910-1.rs similarity index 100% rename from src/test/ui/binop/issue-77910-1.rs rename to tests/ui/binop/issue-77910-1.rs diff --git a/src/test/ui/binop/issue-77910-1.stderr b/tests/ui/binop/issue-77910-1.stderr similarity index 100% rename from src/test/ui/binop/issue-77910-1.stderr rename to tests/ui/binop/issue-77910-1.stderr diff --git a/src/test/ui/binop/issue-77910-2.rs b/tests/ui/binop/issue-77910-2.rs similarity index 100% rename from src/test/ui/binop/issue-77910-2.rs rename to tests/ui/binop/issue-77910-2.rs diff --git a/src/test/ui/binop/issue-77910-2.stderr b/tests/ui/binop/issue-77910-2.stderr similarity index 100% rename from src/test/ui/binop/issue-77910-2.stderr rename to tests/ui/binop/issue-77910-2.stderr diff --git a/src/test/ui/binop/issue-93927.rs b/tests/ui/binop/issue-93927.rs similarity index 100% rename from src/test/ui/binop/issue-93927.rs rename to tests/ui/binop/issue-93927.rs diff --git a/src/test/ui/binop/issue-93927.stderr b/tests/ui/binop/issue-93927.stderr similarity index 100% rename from src/test/ui/binop/issue-93927.stderr rename to tests/ui/binop/issue-93927.stderr diff --git a/src/test/ui/binop/operator-multidispatch.rs b/tests/ui/binop/operator-multidispatch.rs similarity index 100% rename from src/test/ui/binop/operator-multidispatch.rs rename to tests/ui/binop/operator-multidispatch.rs diff --git a/src/test/ui/binop/operator-overloading.rs b/tests/ui/binop/operator-overloading.rs similarity index 100% rename from src/test/ui/binop/operator-overloading.rs rename to tests/ui/binop/operator-overloading.rs diff --git a/src/test/ui/binop/placement-syntax.rs b/tests/ui/binop/placement-syntax.rs similarity index 100% rename from src/test/ui/binop/placement-syntax.rs rename to tests/ui/binop/placement-syntax.rs diff --git a/src/test/ui/binop/placement-syntax.stderr b/tests/ui/binop/placement-syntax.stderr similarity index 100% rename from src/test/ui/binop/placement-syntax.stderr rename to tests/ui/binop/placement-syntax.stderr diff --git a/src/test/ui/binop/shift-various-bad-types.rs b/tests/ui/binop/shift-various-bad-types.rs similarity index 100% rename from src/test/ui/binop/shift-various-bad-types.rs rename to tests/ui/binop/shift-various-bad-types.rs diff --git a/src/test/ui/binop/shift-various-bad-types.stderr b/tests/ui/binop/shift-various-bad-types.stderr similarity index 100% rename from src/test/ui/binop/shift-various-bad-types.stderr rename to tests/ui/binop/shift-various-bad-types.stderr diff --git a/src/test/ui/binop/structured-compare.rs b/tests/ui/binop/structured-compare.rs similarity index 100% rename from src/test/ui/binop/structured-compare.rs rename to tests/ui/binop/structured-compare.rs diff --git a/src/test/ui/bitwise.rs b/tests/ui/bitwise.rs similarity index 100% rename from src/test/ui/bitwise.rs rename to tests/ui/bitwise.rs diff --git a/src/test/ui/blind/blind-item-block-item-shadow.rs b/tests/ui/blind/blind-item-block-item-shadow.rs similarity index 100% rename from src/test/ui/blind/blind-item-block-item-shadow.rs rename to tests/ui/blind/blind-item-block-item-shadow.rs diff --git a/src/test/ui/blind/blind-item-block-item-shadow.stderr b/tests/ui/blind/blind-item-block-item-shadow.stderr similarity index 100% rename from src/test/ui/blind/blind-item-block-item-shadow.stderr rename to tests/ui/blind/blind-item-block-item-shadow.stderr diff --git a/src/test/ui/blind/blind-item-block-middle.rs b/tests/ui/blind/blind-item-block-middle.rs similarity index 100% rename from src/test/ui/blind/blind-item-block-middle.rs rename to tests/ui/blind/blind-item-block-middle.rs diff --git a/src/test/ui/blind/blind-item-block-middle.stderr b/tests/ui/blind/blind-item-block-middle.stderr similarity index 100% rename from src/test/ui/blind/blind-item-block-middle.stderr rename to tests/ui/blind/blind-item-block-middle.stderr diff --git a/src/test/ui/blind/blind-item-item-shadow.rs b/tests/ui/blind/blind-item-item-shadow.rs similarity index 100% rename from src/test/ui/blind/blind-item-item-shadow.rs rename to tests/ui/blind/blind-item-item-shadow.rs diff --git a/src/test/ui/blind/blind-item-item-shadow.stderr b/tests/ui/blind/blind-item-item-shadow.stderr similarity index 100% rename from src/test/ui/blind/blind-item-item-shadow.stderr rename to tests/ui/blind/blind-item-item-shadow.stderr diff --git a/src/test/ui/block-result/block-must-not-have-result-do.rs b/tests/ui/block-result/block-must-not-have-result-do.rs similarity index 100% rename from src/test/ui/block-result/block-must-not-have-result-do.rs rename to tests/ui/block-result/block-must-not-have-result-do.rs diff --git a/src/test/ui/block-result/block-must-not-have-result-do.stderr b/tests/ui/block-result/block-must-not-have-result-do.stderr similarity index 100% rename from src/test/ui/block-result/block-must-not-have-result-do.stderr rename to tests/ui/block-result/block-must-not-have-result-do.stderr diff --git a/src/test/ui/block-result/block-must-not-have-result-res.rs b/tests/ui/block-result/block-must-not-have-result-res.rs similarity index 100% rename from src/test/ui/block-result/block-must-not-have-result-res.rs rename to tests/ui/block-result/block-must-not-have-result-res.rs diff --git a/src/test/ui/block-result/block-must-not-have-result-res.stderr b/tests/ui/block-result/block-must-not-have-result-res.stderr similarity index 100% rename from src/test/ui/block-result/block-must-not-have-result-res.stderr rename to tests/ui/block-result/block-must-not-have-result-res.stderr diff --git a/src/test/ui/block-result/block-must-not-have-result-while.rs b/tests/ui/block-result/block-must-not-have-result-while.rs similarity index 100% rename from src/test/ui/block-result/block-must-not-have-result-while.rs rename to tests/ui/block-result/block-must-not-have-result-while.rs diff --git a/src/test/ui/block-result/block-must-not-have-result-while.stderr b/tests/ui/block-result/block-must-not-have-result-while.stderr similarity index 100% rename from src/test/ui/block-result/block-must-not-have-result-while.stderr rename to tests/ui/block-result/block-must-not-have-result-while.stderr diff --git a/src/test/ui/block-result/consider-removing-last-semi.fixed b/tests/ui/block-result/consider-removing-last-semi.fixed similarity index 100% rename from src/test/ui/block-result/consider-removing-last-semi.fixed rename to tests/ui/block-result/consider-removing-last-semi.fixed diff --git a/src/test/ui/block-result/consider-removing-last-semi.rs b/tests/ui/block-result/consider-removing-last-semi.rs similarity index 100% rename from src/test/ui/block-result/consider-removing-last-semi.rs rename to tests/ui/block-result/consider-removing-last-semi.rs diff --git a/src/test/ui/block-result/consider-removing-last-semi.stderr b/tests/ui/block-result/consider-removing-last-semi.stderr similarity index 100% rename from src/test/ui/block-result/consider-removing-last-semi.stderr rename to tests/ui/block-result/consider-removing-last-semi.stderr diff --git a/src/test/ui/block-result/issue-11714.rs b/tests/ui/block-result/issue-11714.rs similarity index 100% rename from src/test/ui/block-result/issue-11714.rs rename to tests/ui/block-result/issue-11714.rs diff --git a/src/test/ui/block-result/issue-11714.stderr b/tests/ui/block-result/issue-11714.stderr similarity index 100% rename from src/test/ui/block-result/issue-11714.stderr rename to tests/ui/block-result/issue-11714.stderr diff --git a/src/test/ui/block-result/issue-13428.rs b/tests/ui/block-result/issue-13428.rs similarity index 100% rename from src/test/ui/block-result/issue-13428.rs rename to tests/ui/block-result/issue-13428.rs diff --git a/src/test/ui/block-result/issue-13428.stderr b/tests/ui/block-result/issue-13428.stderr similarity index 100% rename from src/test/ui/block-result/issue-13428.stderr rename to tests/ui/block-result/issue-13428.stderr diff --git a/src/test/ui/block-result/issue-13624.rs b/tests/ui/block-result/issue-13624.rs similarity index 100% rename from src/test/ui/block-result/issue-13624.rs rename to tests/ui/block-result/issue-13624.rs diff --git a/src/test/ui/block-result/issue-13624.stderr b/tests/ui/block-result/issue-13624.stderr similarity index 100% rename from src/test/ui/block-result/issue-13624.stderr rename to tests/ui/block-result/issue-13624.stderr diff --git a/src/test/ui/block-result/issue-20862.rs b/tests/ui/block-result/issue-20862.rs similarity index 100% rename from src/test/ui/block-result/issue-20862.rs rename to tests/ui/block-result/issue-20862.rs diff --git a/src/test/ui/block-result/issue-20862.stderr b/tests/ui/block-result/issue-20862.stderr similarity index 100% rename from src/test/ui/block-result/issue-20862.stderr rename to tests/ui/block-result/issue-20862.stderr diff --git a/src/test/ui/block-result/issue-22645.rs b/tests/ui/block-result/issue-22645.rs similarity index 100% rename from src/test/ui/block-result/issue-22645.rs rename to tests/ui/block-result/issue-22645.rs diff --git a/src/test/ui/block-result/issue-22645.stderr b/tests/ui/block-result/issue-22645.stderr similarity index 100% rename from src/test/ui/block-result/issue-22645.stderr rename to tests/ui/block-result/issue-22645.stderr diff --git a/src/test/ui/block-result/issue-3563.rs b/tests/ui/block-result/issue-3563.rs similarity index 100% rename from src/test/ui/block-result/issue-3563.rs rename to tests/ui/block-result/issue-3563.rs diff --git a/src/test/ui/block-result/issue-3563.stderr b/tests/ui/block-result/issue-3563.stderr similarity index 100% rename from src/test/ui/block-result/issue-3563.stderr rename to tests/ui/block-result/issue-3563.stderr diff --git a/src/test/ui/block-result/issue-5500.rs b/tests/ui/block-result/issue-5500.rs similarity index 100% rename from src/test/ui/block-result/issue-5500.rs rename to tests/ui/block-result/issue-5500.rs diff --git a/src/test/ui/block-result/issue-5500.stderr b/tests/ui/block-result/issue-5500.stderr similarity index 100% rename from src/test/ui/block-result/issue-5500.stderr rename to tests/ui/block-result/issue-5500.stderr diff --git a/src/test/ui/block-result/unexpected-return-on-unit.rs b/tests/ui/block-result/unexpected-return-on-unit.rs similarity index 100% rename from src/test/ui/block-result/unexpected-return-on-unit.rs rename to tests/ui/block-result/unexpected-return-on-unit.rs diff --git a/src/test/ui/block-result/unexpected-return-on-unit.stderr b/tests/ui/block-result/unexpected-return-on-unit.stderr similarity index 100% rename from src/test/ui/block-result/unexpected-return-on-unit.stderr rename to tests/ui/block-result/unexpected-return-on-unit.stderr diff --git a/src/test/ui/bogus-tag.rs b/tests/ui/bogus-tag.rs similarity index 100% rename from src/test/ui/bogus-tag.rs rename to tests/ui/bogus-tag.rs diff --git a/src/test/ui/bogus-tag.stderr b/tests/ui/bogus-tag.stderr similarity index 100% rename from src/test/ui/bogus-tag.stderr rename to tests/ui/bogus-tag.stderr diff --git a/src/test/ui/borrow-by-val-method-receiver.rs b/tests/ui/borrow-by-val-method-receiver.rs similarity index 100% rename from src/test/ui/borrow-by-val-method-receiver.rs rename to tests/ui/borrow-by-val-method-receiver.rs diff --git a/src/test/ui/borrowck/access-mode-in-closures.rs b/tests/ui/borrowck/access-mode-in-closures.rs similarity index 100% rename from src/test/ui/borrowck/access-mode-in-closures.rs rename to tests/ui/borrowck/access-mode-in-closures.rs diff --git a/src/test/ui/borrowck/access-mode-in-closures.stderr b/tests/ui/borrowck/access-mode-in-closures.stderr similarity index 100% rename from src/test/ui/borrowck/access-mode-in-closures.stderr rename to tests/ui/borrowck/access-mode-in-closures.stderr diff --git a/src/test/ui/borrowck/anonymous-region-in-apit.rs b/tests/ui/borrowck/anonymous-region-in-apit.rs similarity index 100% rename from src/test/ui/borrowck/anonymous-region-in-apit.rs rename to tests/ui/borrowck/anonymous-region-in-apit.rs diff --git a/src/test/ui/borrowck/anonymous-region-in-apit.stderr b/tests/ui/borrowck/anonymous-region-in-apit.stderr similarity index 100% rename from src/test/ui/borrowck/anonymous-region-in-apit.stderr rename to tests/ui/borrowck/anonymous-region-in-apit.stderr diff --git a/src/test/ui/borrowck/assign-never-type.rs b/tests/ui/borrowck/assign-never-type.rs similarity index 100% rename from src/test/ui/borrowck/assign-never-type.rs rename to tests/ui/borrowck/assign-never-type.rs diff --git a/src/test/ui/borrowck/assign_mutable_fields.rs b/tests/ui/borrowck/assign_mutable_fields.rs similarity index 100% rename from src/test/ui/borrowck/assign_mutable_fields.rs rename to tests/ui/borrowck/assign_mutable_fields.rs diff --git a/src/test/ui/borrowck/assign_mutable_fields.stderr b/tests/ui/borrowck/assign_mutable_fields.stderr similarity index 100% rename from src/test/ui/borrowck/assign_mutable_fields.stderr rename to tests/ui/borrowck/assign_mutable_fields.stderr diff --git a/src/test/ui/borrowck/async-reference-generality.rs b/tests/ui/borrowck/async-reference-generality.rs similarity index 100% rename from src/test/ui/borrowck/async-reference-generality.rs rename to tests/ui/borrowck/async-reference-generality.rs diff --git a/src/test/ui/borrowck/async-reference-generality.stderr b/tests/ui/borrowck/async-reference-generality.stderr similarity index 100% rename from src/test/ui/borrowck/async-reference-generality.stderr rename to tests/ui/borrowck/async-reference-generality.stderr diff --git a/src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs b/tests/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs similarity index 100% rename from src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs rename to tests/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.rs diff --git a/src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr b/tests/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr similarity index 100% rename from src/test/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr rename to tests/ui/borrowck/bindings-after-at-or-patterns-slice-patterns-box-patterns.stderr diff --git a/src/test/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.rs b/tests/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.rs similarity index 100% rename from src/test/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.rs rename to tests/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.rs diff --git a/src/test/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.stderr b/tests/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.stderr similarity index 100% rename from src/test/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.stderr rename to tests/ui/borrowck/borrow-immutable-upvar-mutation-impl-trait.stderr diff --git a/src/test/ui/borrowck/borrow-immutable-upvar-mutation.rs b/tests/ui/borrowck/borrow-immutable-upvar-mutation.rs similarity index 100% rename from src/test/ui/borrowck/borrow-immutable-upvar-mutation.rs rename to tests/ui/borrowck/borrow-immutable-upvar-mutation.rs diff --git a/src/test/ui/borrowck/borrow-immutable-upvar-mutation.stderr b/tests/ui/borrowck/borrow-immutable-upvar-mutation.stderr similarity index 100% rename from src/test/ui/borrowck/borrow-immutable-upvar-mutation.stderr rename to tests/ui/borrowck/borrow-immutable-upvar-mutation.stderr diff --git a/src/test/ui/borrowck/borrow-raw-address-of-borrowed.rs b/tests/ui/borrowck/borrow-raw-address-of-borrowed.rs similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-borrowed.rs rename to tests/ui/borrowck/borrow-raw-address-of-borrowed.rs diff --git a/src/test/ui/borrowck/borrow-raw-address-of-borrowed.stderr b/tests/ui/borrowck/borrow-raw-address-of-borrowed.stderr similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-borrowed.stderr rename to tests/ui/borrowck/borrow-raw-address-of-borrowed.stderr diff --git a/src/test/ui/borrowck/borrow-raw-address-of-deref-mutability-ok.rs b/tests/ui/borrowck/borrow-raw-address-of-deref-mutability-ok.rs similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-deref-mutability-ok.rs rename to tests/ui/borrowck/borrow-raw-address-of-deref-mutability-ok.rs diff --git a/src/test/ui/borrowck/borrow-raw-address-of-deref-mutability.rs b/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.rs similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-deref-mutability.rs rename to tests/ui/borrowck/borrow-raw-address-of-deref-mutability.rs diff --git a/src/test/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr b/tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr rename to tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr diff --git a/src/test/ui/borrowck/borrow-raw-address-of-mutability-ok.rs b/tests/ui/borrowck/borrow-raw-address-of-mutability-ok.rs similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-mutability-ok.rs rename to tests/ui/borrowck/borrow-raw-address-of-mutability-ok.rs diff --git a/src/test/ui/borrowck/borrow-raw-address-of-mutability.rs b/tests/ui/borrowck/borrow-raw-address-of-mutability.rs similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-mutability.rs rename to tests/ui/borrowck/borrow-raw-address-of-mutability.rs diff --git a/src/test/ui/borrowck/borrow-raw-address-of-mutability.stderr b/tests/ui/borrowck/borrow-raw-address-of-mutability.stderr similarity index 100% rename from src/test/ui/borrowck/borrow-raw-address-of-mutability.stderr rename to tests/ui/borrowck/borrow-raw-address-of-mutability.stderr diff --git a/src/test/ui/borrowck/borrow-tuple-fields.rs b/tests/ui/borrowck/borrow-tuple-fields.rs similarity index 100% rename from src/test/ui/borrowck/borrow-tuple-fields.rs rename to tests/ui/borrowck/borrow-tuple-fields.rs diff --git a/src/test/ui/borrowck/borrow-tuple-fields.stderr b/tests/ui/borrowck/borrow-tuple-fields.stderr similarity index 100% rename from src/test/ui/borrowck/borrow-tuple-fields.stderr rename to tests/ui/borrowck/borrow-tuple-fields.stderr diff --git a/src/test/ui/borrowck/borrowck-access-permissions.rs b/tests/ui/borrowck/borrowck-access-permissions.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-access-permissions.rs rename to tests/ui/borrowck/borrowck-access-permissions.rs diff --git a/src/test/ui/borrowck/borrowck-access-permissions.stderr b/tests/ui/borrowck/borrowck-access-permissions.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-access-permissions.stderr rename to tests/ui/borrowck/borrowck-access-permissions.stderr diff --git a/src/test/ui/borrowck/borrowck-and-init.rs b/tests/ui/borrowck/borrowck-and-init.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-and-init.rs rename to tests/ui/borrowck/borrowck-and-init.rs diff --git a/src/test/ui/borrowck/borrowck-and-init.stderr b/tests/ui/borrowck/borrowck-and-init.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-and-init.stderr rename to tests/ui/borrowck/borrowck-and-init.stderr diff --git a/src/test/ui/borrowck/borrowck-anon-fields-struct.rs b/tests/ui/borrowck/borrowck-anon-fields-struct.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-anon-fields-struct.rs rename to tests/ui/borrowck/borrowck-anon-fields-struct.rs diff --git a/src/test/ui/borrowck/borrowck-anon-fields-struct.stderr b/tests/ui/borrowck/borrowck-anon-fields-struct.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-anon-fields-struct.stderr rename to tests/ui/borrowck/borrowck-anon-fields-struct.stderr diff --git a/src/test/ui/borrowck/borrowck-anon-fields-tuple.rs b/tests/ui/borrowck/borrowck-anon-fields-tuple.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-anon-fields-tuple.rs rename to tests/ui/borrowck/borrowck-anon-fields-tuple.rs diff --git a/src/test/ui/borrowck/borrowck-anon-fields-tuple.stderr b/tests/ui/borrowck/borrowck-anon-fields-tuple.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-anon-fields-tuple.stderr rename to tests/ui/borrowck/borrowck-anon-fields-tuple.stderr diff --git a/src/test/ui/borrowck/borrowck-anon-fields-variant.rs b/tests/ui/borrowck/borrowck-anon-fields-variant.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-anon-fields-variant.rs rename to tests/ui/borrowck/borrowck-anon-fields-variant.rs diff --git a/src/test/ui/borrowck/borrowck-anon-fields-variant.stderr b/tests/ui/borrowck/borrowck-anon-fields-variant.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-anon-fields-variant.stderr rename to tests/ui/borrowck/borrowck-anon-fields-variant.stderr diff --git a/src/test/ui/borrowck/borrowck-argument.rs b/tests/ui/borrowck/borrowck-argument.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-argument.rs rename to tests/ui/borrowck/borrowck-argument.rs diff --git a/src/test/ui/borrowck/borrowck-argument.stderr b/tests/ui/borrowck/borrowck-argument.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-argument.stderr rename to tests/ui/borrowck/borrowck-argument.stderr diff --git a/src/test/ui/borrowck/borrowck-assign-comp-idx.rs b/tests/ui/borrowck/borrowck-assign-comp-idx.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-comp-idx.rs rename to tests/ui/borrowck/borrowck-assign-comp-idx.rs diff --git a/src/test/ui/borrowck/borrowck-assign-comp-idx.stderr b/tests/ui/borrowck/borrowck-assign-comp-idx.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-comp-idx.stderr rename to tests/ui/borrowck/borrowck-assign-comp-idx.stderr diff --git a/src/test/ui/borrowck/borrowck-assign-comp.rs b/tests/ui/borrowck/borrowck-assign-comp.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-comp.rs rename to tests/ui/borrowck/borrowck-assign-comp.rs diff --git a/src/test/ui/borrowck/borrowck-assign-comp.stderr b/tests/ui/borrowck/borrowck-assign-comp.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-comp.stderr rename to tests/ui/borrowck/borrowck-assign-comp.stderr diff --git a/src/test/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.rs b/tests/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.rs rename to tests/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.rs diff --git a/src/test/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.stderr b/tests/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.stderr rename to tests/ui/borrowck/borrowck-assign-to-andmut-in-aliasable-loc.stderr diff --git a/src/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs b/tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs rename to tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.rs diff --git a/src/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.stderr b/tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.stderr rename to tests/ui/borrowck/borrowck-assign-to-andmut-in-borrowed-loc.stderr diff --git a/src/test/ui/borrowck/borrowck-assign-to-constants.rs b/tests/ui/borrowck/borrowck-assign-to-constants.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-constants.rs rename to tests/ui/borrowck/borrowck-assign-to-constants.rs diff --git a/src/test/ui/borrowck/borrowck-assign-to-constants.stderr b/tests/ui/borrowck/borrowck-assign-to-constants.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-constants.stderr rename to tests/ui/borrowck/borrowck-assign-to-constants.stderr diff --git a/src/test/ui/borrowck/borrowck-assign-to-subfield.rs b/tests/ui/borrowck/borrowck-assign-to-subfield.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assign-to-subfield.rs rename to tests/ui/borrowck/borrowck-assign-to-subfield.rs diff --git a/src/test/ui/borrowck/borrowck-assignment-to-static-mut.rs b/tests/ui/borrowck/borrowck-assignment-to-static-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-assignment-to-static-mut.rs rename to tests/ui/borrowck/borrowck-assignment-to-static-mut.rs diff --git a/src/test/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.rs b/tests/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.rs rename to tests/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.rs diff --git a/src/test/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.stderr b/tests/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.stderr rename to tests/ui/borrowck/borrowck-auto-mut-ref-to-immut-var.stderr diff --git a/src/test/ui/borrowck/borrowck-autoref-3261.rs b/tests/ui/borrowck/borrowck-autoref-3261.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-autoref-3261.rs rename to tests/ui/borrowck/borrowck-autoref-3261.rs diff --git a/src/test/ui/borrowck/borrowck-autoref-3261.stderr b/tests/ui/borrowck/borrowck-autoref-3261.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-autoref-3261.stderr rename to tests/ui/borrowck/borrowck-autoref-3261.stderr diff --git a/src/test/ui/borrowck/borrowck-bad-nested-calls-free.rs b/tests/ui/borrowck/borrowck-bad-nested-calls-free.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-bad-nested-calls-free.rs rename to tests/ui/borrowck/borrowck-bad-nested-calls-free.rs diff --git a/src/test/ui/borrowck/borrowck-bad-nested-calls-free.stderr b/tests/ui/borrowck/borrowck-bad-nested-calls-free.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-bad-nested-calls-free.stderr rename to tests/ui/borrowck/borrowck-bad-nested-calls-free.stderr diff --git a/src/test/ui/borrowck/borrowck-bad-nested-calls-move.rs b/tests/ui/borrowck/borrowck-bad-nested-calls-move.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-bad-nested-calls-move.rs rename to tests/ui/borrowck/borrowck-bad-nested-calls-move.rs diff --git a/src/test/ui/borrowck/borrowck-bad-nested-calls-move.stderr b/tests/ui/borrowck/borrowck-bad-nested-calls-move.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-bad-nested-calls-move.stderr rename to tests/ui/borrowck/borrowck-bad-nested-calls-move.stderr diff --git a/src/test/ui/borrowck/borrowck-binding-mutbl.rs b/tests/ui/borrowck/borrowck-binding-mutbl.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-binding-mutbl.rs rename to tests/ui/borrowck/borrowck-binding-mutbl.rs diff --git a/src/test/ui/borrowck/borrowck-block-unint.rs b/tests/ui/borrowck/borrowck-block-unint.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-block-unint.rs rename to tests/ui/borrowck/borrowck-block-unint.rs diff --git a/src/test/ui/borrowck/borrowck-block-unint.stderr b/tests/ui/borrowck/borrowck-block-unint.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-block-unint.stderr rename to tests/ui/borrowck/borrowck-block-unint.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-from-expr-block.rs b/tests/ui/borrowck/borrowck-borrow-from-expr-block.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-expr-block.rs rename to tests/ui/borrowck/borrowck-borrow-from-expr-block.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-from-owned-ptr.rs b/tests/ui/borrowck/borrowck-borrow-from-owned-ptr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-owned-ptr.rs rename to tests/ui/borrowck/borrowck-borrow-from-owned-ptr.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-from-owned-ptr.stderr b/tests/ui/borrowck/borrowck-borrow-from-owned-ptr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-owned-ptr.stderr rename to tests/ui/borrowck/borrowck-borrow-from-owned-ptr.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-from-stack-variable.rs b/tests/ui/borrowck/borrowck-borrow-from-stack-variable.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-stack-variable.rs rename to tests/ui/borrowck/borrowck-borrow-from-stack-variable.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-from-stack-variable.stderr b/tests/ui/borrowck/borrowck-borrow-from-stack-variable.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-stack-variable.stderr rename to tests/ui/borrowck/borrowck-borrow-from-stack-variable.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-from-temporary.rs b/tests/ui/borrowck/borrowck-borrow-from-temporary.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-temporary.rs rename to tests/ui/borrowck/borrowck-borrow-from-temporary.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-from-temporary.stderr b/tests/ui/borrowck/borrowck-borrow-from-temporary.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-from-temporary.stderr rename to tests/ui/borrowck/borrowck-borrow-from-temporary.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs b/tests/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs rename to tests/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.stderr b/tests/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.stderr rename to tests/ui/borrowck/borrowck-borrow-immut-deref-of-box-as-mut.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs b/tests/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs rename to tests/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr b/tests/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr rename to tests/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-mut-object-twice.rs b/tests/ui/borrowck/borrowck-borrow-mut-object-twice.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-mut-object-twice.rs rename to tests/ui/borrowck/borrowck-borrow-mut-object-twice.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-mut-object-twice.stderr b/tests/ui/borrowck/borrowck-borrow-mut-object-twice.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-mut-object-twice.stderr rename to tests/ui/borrowck/borrowck-borrow-mut-object-twice.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs b/tests/ui/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs rename to tests/ui/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-overloaded-auto-deref.rs b/tests/ui/borrowck/borrowck-borrow-overloaded-auto-deref.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-overloaded-auto-deref.rs rename to tests/ui/borrowck/borrowck-borrow-overloaded-auto-deref.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-overloaded-auto-deref.stderr b/tests/ui/borrowck/borrowck-borrow-overloaded-auto-deref.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-overloaded-auto-deref.stderr rename to tests/ui/borrowck/borrowck-borrow-overloaded-auto-deref.stderr diff --git a/src/test/ui/borrowck/borrowck-borrow-overloaded-deref.rs b/tests/ui/borrowck/borrowck-borrow-overloaded-deref.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-overloaded-deref.rs rename to tests/ui/borrowck/borrowck-borrow-overloaded-deref.rs diff --git a/src/test/ui/borrowck/borrowck-borrow-overloaded-deref.stderr b/tests/ui/borrowck/borrowck-borrow-overloaded-deref.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrow-overloaded-deref.stderr rename to tests/ui/borrowck/borrowck-borrow-overloaded-deref.stderr diff --git a/src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.rs b/tests/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.rs rename to tests/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.rs diff --git a/src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.stderr b/tests/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.stderr rename to tests/ui/borrowck/borrowck-borrowed-uniq-rvalue-2.stderr diff --git a/src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.fixed b/tests/ui/borrowck/borrowck-borrowed-uniq-rvalue.fixed similarity index 100% rename from src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.fixed rename to tests/ui/borrowck/borrowck-borrowed-uniq-rvalue.fixed diff --git a/src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.rs b/tests/ui/borrowck/borrowck-borrowed-uniq-rvalue.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.rs rename to tests/ui/borrowck/borrowck-borrowed-uniq-rvalue.rs diff --git a/src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.stderr b/tests/ui/borrowck/borrowck-borrowed-uniq-rvalue.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-borrowed-uniq-rvalue.stderr rename to tests/ui/borrowck/borrowck-borrowed-uniq-rvalue.stderr diff --git a/src/test/ui/borrowck/borrowck-box-sensitivity.rs b/tests/ui/borrowck/borrowck-box-sensitivity.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-box-sensitivity.rs rename to tests/ui/borrowck/borrowck-box-sensitivity.rs diff --git a/src/test/ui/borrowck/borrowck-break-uninit-2.rs b/tests/ui/borrowck/borrowck-break-uninit-2.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-break-uninit-2.rs rename to tests/ui/borrowck/borrowck-break-uninit-2.rs diff --git a/src/test/ui/borrowck/borrowck-break-uninit-2.stderr b/tests/ui/borrowck/borrowck-break-uninit-2.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-break-uninit-2.stderr rename to tests/ui/borrowck/borrowck-break-uninit-2.stderr diff --git a/src/test/ui/borrowck/borrowck-break-uninit.rs b/tests/ui/borrowck/borrowck-break-uninit.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-break-uninit.rs rename to tests/ui/borrowck/borrowck-break-uninit.rs diff --git a/src/test/ui/borrowck/borrowck-break-uninit.stderr b/tests/ui/borrowck/borrowck-break-uninit.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-break-uninit.stderr rename to tests/ui/borrowck/borrowck-break-uninit.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-mut-and-imm.rs b/tests/ui/borrowck/borrowck-closures-mut-and-imm.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-mut-and-imm.rs rename to tests/ui/borrowck/borrowck-closures-mut-and-imm.rs diff --git a/src/test/ui/borrowck/borrowck-closures-mut-and-imm.stderr b/tests/ui/borrowck/borrowck-closures-mut-and-imm.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-mut-and-imm.stderr rename to tests/ui/borrowck/borrowck-closures-mut-and-imm.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-mut-of-imm.rs b/tests/ui/borrowck/borrowck-closures-mut-of-imm.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-mut-of-imm.rs rename to tests/ui/borrowck/borrowck-closures-mut-of-imm.rs diff --git a/src/test/ui/borrowck/borrowck-closures-mut-of-imm.stderr b/tests/ui/borrowck/borrowck-closures-mut-of-imm.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-mut-of-imm.stderr rename to tests/ui/borrowck/borrowck-closures-mut-of-imm.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-mut-of-mut.rs b/tests/ui/borrowck/borrowck-closures-mut-of-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-mut-of-mut.rs rename to tests/ui/borrowck/borrowck-closures-mut-of-mut.rs diff --git a/src/test/ui/borrowck/borrowck-closures-mut-of-mut.stderr b/tests/ui/borrowck/borrowck-closures-mut-of-mut.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-mut-of-mut.stderr rename to tests/ui/borrowck/borrowck-closures-mut-of-mut.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-slice-patterns-ok.rs b/tests/ui/borrowck/borrowck-closures-slice-patterns-ok.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-slice-patterns-ok.rs rename to tests/ui/borrowck/borrowck-closures-slice-patterns-ok.rs diff --git a/src/test/ui/borrowck/borrowck-closures-slice-patterns.rs b/tests/ui/borrowck/borrowck-closures-slice-patterns.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-slice-patterns.rs rename to tests/ui/borrowck/borrowck-closures-slice-patterns.rs diff --git a/src/test/ui/borrowck/borrowck-closures-slice-patterns.stderr b/tests/ui/borrowck/borrowck-closures-slice-patterns.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-slice-patterns.stderr rename to tests/ui/borrowck/borrowck-closures-slice-patterns.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-two-imm.rs b/tests/ui/borrowck/borrowck-closures-two-imm.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-two-imm.rs rename to tests/ui/borrowck/borrowck-closures-two-imm.rs diff --git a/src/test/ui/borrowck/borrowck-closures-two-mut-fail.rs b/tests/ui/borrowck/borrowck-closures-two-mut-fail.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-two-mut-fail.rs rename to tests/ui/borrowck/borrowck-closures-two-mut-fail.rs diff --git a/src/test/ui/borrowck/borrowck-closures-two-mut-fail.stderr b/tests/ui/borrowck/borrowck-closures-two-mut-fail.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-two-mut-fail.stderr rename to tests/ui/borrowck/borrowck-closures-two-mut-fail.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-two-mut.rs b/tests/ui/borrowck/borrowck-closures-two-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-two-mut.rs rename to tests/ui/borrowck/borrowck-closures-two-mut.rs diff --git a/src/test/ui/borrowck/borrowck-closures-two-mut.stderr b/tests/ui/borrowck/borrowck-closures-two-mut.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-two-mut.stderr rename to tests/ui/borrowck/borrowck-closures-two-mut.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-unique-imm.rs b/tests/ui/borrowck/borrowck-closures-unique-imm.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-unique-imm.rs rename to tests/ui/borrowck/borrowck-closures-unique-imm.rs diff --git a/src/test/ui/borrowck/borrowck-closures-unique-imm.stderr b/tests/ui/borrowck/borrowck-closures-unique-imm.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-unique-imm.stderr rename to tests/ui/borrowck/borrowck-closures-unique-imm.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-unique.rs b/tests/ui/borrowck/borrowck-closures-unique.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-unique.rs rename to tests/ui/borrowck/borrowck-closures-unique.rs diff --git a/src/test/ui/borrowck/borrowck-closures-unique.stderr b/tests/ui/borrowck/borrowck-closures-unique.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-unique.stderr rename to tests/ui/borrowck/borrowck-closures-unique.stderr diff --git a/src/test/ui/borrowck/borrowck-closures-use-after-free.rs b/tests/ui/borrowck/borrowck-closures-use-after-free.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-use-after-free.rs rename to tests/ui/borrowck/borrowck-closures-use-after-free.rs diff --git a/src/test/ui/borrowck/borrowck-closures-use-after-free.stderr b/tests/ui/borrowck/borrowck-closures-use-after-free.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-closures-use-after-free.stderr rename to tests/ui/borrowck/borrowck-closures-use-after-free.stderr diff --git a/src/test/ui/borrowck/borrowck-consume-unsize-vec.rs b/tests/ui/borrowck/borrowck-consume-unsize-vec.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-consume-unsize-vec.rs rename to tests/ui/borrowck/borrowck-consume-unsize-vec.rs diff --git a/src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr b/tests/ui/borrowck/borrowck-consume-unsize-vec.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr rename to tests/ui/borrowck/borrowck-consume-unsize-vec.stderr diff --git a/src/test/ui/borrowck/borrowck-consume-upcast-box.rs b/tests/ui/borrowck/borrowck-consume-upcast-box.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-consume-upcast-box.rs rename to tests/ui/borrowck/borrowck-consume-upcast-box.rs diff --git a/src/test/ui/borrowck/borrowck-consume-upcast-box.stderr b/tests/ui/borrowck/borrowck-consume-upcast-box.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-consume-upcast-box.stderr rename to tests/ui/borrowck/borrowck-consume-upcast-box.stderr diff --git a/src/test/ui/borrowck/borrowck-describe-lvalue.rs b/tests/ui/borrowck/borrowck-describe-lvalue.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-describe-lvalue.rs rename to tests/ui/borrowck/borrowck-describe-lvalue.rs diff --git a/src/test/ui/borrowck/borrowck-describe-lvalue.stderr b/tests/ui/borrowck/borrowck-describe-lvalue.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-describe-lvalue.stderr rename to tests/ui/borrowck/borrowck-describe-lvalue.stderr diff --git a/src/test/ui/borrowck/borrowck-drop-from-guard.rs b/tests/ui/borrowck/borrowck-drop-from-guard.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-drop-from-guard.rs rename to tests/ui/borrowck/borrowck-drop-from-guard.rs diff --git a/src/test/ui/borrowck/borrowck-drop-from-guard.stderr b/tests/ui/borrowck/borrowck-drop-from-guard.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-drop-from-guard.stderr rename to tests/ui/borrowck/borrowck-drop-from-guard.stderr diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-1.rs b/tests/ui/borrowck/borrowck-escaping-closure-error-1.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-escaping-closure-error-1.rs rename to tests/ui/borrowck/borrowck-escaping-closure-error-1.rs diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr b/tests/ui/borrowck/borrowck-escaping-closure-error-1.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-escaping-closure-error-1.stderr rename to tests/ui/borrowck/borrowck-escaping-closure-error-1.stderr diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-2.rs b/tests/ui/borrowck/borrowck-escaping-closure-error-2.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-escaping-closure-error-2.rs rename to tests/ui/borrowck/borrowck-escaping-closure-error-2.rs diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr b/tests/ui/borrowck/borrowck-escaping-closure-error-2.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-escaping-closure-error-2.stderr rename to tests/ui/borrowck/borrowck-escaping-closure-error-2.stderr diff --git a/src/test/ui/borrowck/borrowck-field-sensitivity-rpass.rs b/tests/ui/borrowck/borrowck-field-sensitivity-rpass.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-field-sensitivity-rpass.rs rename to tests/ui/borrowck/borrowck-field-sensitivity-rpass.rs diff --git a/src/test/ui/borrowck/borrowck-field-sensitivity.rs b/tests/ui/borrowck/borrowck-field-sensitivity.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-field-sensitivity.rs rename to tests/ui/borrowck/borrowck-field-sensitivity.rs diff --git a/src/test/ui/borrowck/borrowck-field-sensitivity.stderr b/tests/ui/borrowck/borrowck-field-sensitivity.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-field-sensitivity.stderr rename to tests/ui/borrowck/borrowck-field-sensitivity.stderr diff --git a/src/test/ui/borrowck/borrowck-fixed-length-vecs.rs b/tests/ui/borrowck/borrowck-fixed-length-vecs.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-fixed-length-vecs.rs rename to tests/ui/borrowck/borrowck-fixed-length-vecs.rs diff --git a/src/test/ui/borrowck/borrowck-fn-in-const-a.rs b/tests/ui/borrowck/borrowck-fn-in-const-a.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-fn-in-const-a.rs rename to tests/ui/borrowck/borrowck-fn-in-const-a.rs diff --git a/src/test/ui/borrowck/borrowck-fn-in-const-a.stderr b/tests/ui/borrowck/borrowck-fn-in-const-a.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-fn-in-const-a.stderr rename to tests/ui/borrowck/borrowck-fn-in-const-a.stderr diff --git a/src/test/ui/borrowck/borrowck-fn-in-const-c.rs b/tests/ui/borrowck/borrowck-fn-in-const-c.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-fn-in-const-c.rs rename to tests/ui/borrowck/borrowck-fn-in-const-c.rs diff --git a/src/test/ui/borrowck/borrowck-fn-in-const-c.stderr b/tests/ui/borrowck/borrowck-fn-in-const-c.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-fn-in-const-c.stderr rename to tests/ui/borrowck/borrowck-fn-in-const-c.stderr diff --git a/src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.rs b/tests/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.rs rename to tests/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.rs diff --git a/src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.stderr b/tests/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.stderr rename to tests/ui/borrowck/borrowck-for-loop-correct-cmt-for-pattern.stderr diff --git a/src/test/ui/borrowck/borrowck-for-loop-head-linkage.rs b/tests/ui/borrowck/borrowck-for-loop-head-linkage.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-for-loop-head-linkage.rs rename to tests/ui/borrowck/borrowck-for-loop-head-linkage.rs diff --git a/src/test/ui/borrowck/borrowck-for-loop-head-linkage.stderr b/tests/ui/borrowck/borrowck-for-loop-head-linkage.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-for-loop-head-linkage.stderr rename to tests/ui/borrowck/borrowck-for-loop-head-linkage.stderr diff --git a/src/test/ui/borrowck/borrowck-for-loop-uninitialized-binding.rs b/tests/ui/borrowck/borrowck-for-loop-uninitialized-binding.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-for-loop-uninitialized-binding.rs rename to tests/ui/borrowck/borrowck-for-loop-uninitialized-binding.rs diff --git a/src/test/ui/borrowck/borrowck-for-loop-uninitialized-binding.stderr b/tests/ui/borrowck/borrowck-for-loop-uninitialized-binding.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-for-loop-uninitialized-binding.stderr rename to tests/ui/borrowck/borrowck-for-loop-uninitialized-binding.stderr diff --git a/src/test/ui/borrowck/borrowck-freeze-frozen-mut.rs b/tests/ui/borrowck/borrowck-freeze-frozen-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-freeze-frozen-mut.rs rename to tests/ui/borrowck/borrowck-freeze-frozen-mut.rs diff --git a/src/test/ui/borrowck/borrowck-if-no-else.rs b/tests/ui/borrowck/borrowck-if-no-else.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-if-no-else.rs rename to tests/ui/borrowck/borrowck-if-no-else.rs diff --git a/src/test/ui/borrowck/borrowck-if-no-else.stderr b/tests/ui/borrowck/borrowck-if-no-else.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-if-no-else.stderr rename to tests/ui/borrowck/borrowck-if-no-else.stderr diff --git a/src/test/ui/borrowck/borrowck-if-with-else.rs b/tests/ui/borrowck/borrowck-if-with-else.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-if-with-else.rs rename to tests/ui/borrowck/borrowck-if-with-else.rs diff --git a/src/test/ui/borrowck/borrowck-if-with-else.stderr b/tests/ui/borrowck/borrowck-if-with-else.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-if-with-else.stderr rename to tests/ui/borrowck/borrowck-if-with-else.stderr diff --git a/src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs b/tests/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs rename to tests/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.rs diff --git a/src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.stderr b/tests/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.stderr rename to tests/ui/borrowck/borrowck-imm-ref-to-mut-rec-field-issue-3162-c.stderr diff --git a/src/test/ui/borrowck/borrowck-in-static.rs b/tests/ui/borrowck/borrowck-in-static.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-in-static.rs rename to tests/ui/borrowck/borrowck-in-static.rs diff --git a/src/test/ui/borrowck/borrowck-in-static.stderr b/tests/ui/borrowck/borrowck-in-static.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-in-static.stderr rename to tests/ui/borrowck/borrowck-in-static.stderr diff --git a/src/test/ui/borrowck/borrowck-init-in-called-fn-expr.rs b/tests/ui/borrowck/borrowck-init-in-called-fn-expr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-init-in-called-fn-expr.rs rename to tests/ui/borrowck/borrowck-init-in-called-fn-expr.rs diff --git a/src/test/ui/borrowck/borrowck-init-in-called-fn-expr.stderr b/tests/ui/borrowck/borrowck-init-in-called-fn-expr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-init-in-called-fn-expr.stderr rename to tests/ui/borrowck/borrowck-init-in-called-fn-expr.stderr diff --git a/src/test/ui/borrowck/borrowck-init-in-fn-expr.rs b/tests/ui/borrowck/borrowck-init-in-fn-expr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-init-in-fn-expr.rs rename to tests/ui/borrowck/borrowck-init-in-fn-expr.rs diff --git a/src/test/ui/borrowck/borrowck-init-in-fn-expr.stderr b/tests/ui/borrowck/borrowck-init-in-fn-expr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-init-in-fn-expr.stderr rename to tests/ui/borrowck/borrowck-init-in-fn-expr.stderr diff --git a/src/test/ui/borrowck/borrowck-init-in-fru.rs b/tests/ui/borrowck/borrowck-init-in-fru.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-init-in-fru.rs rename to tests/ui/borrowck/borrowck-init-in-fru.rs diff --git a/src/test/ui/borrowck/borrowck-init-in-fru.stderr b/tests/ui/borrowck/borrowck-init-in-fru.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-init-in-fru.stderr rename to tests/ui/borrowck/borrowck-init-in-fru.stderr diff --git a/src/test/ui/borrowck/borrowck-init-op-equal.rs b/tests/ui/borrowck/borrowck-init-op-equal.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-init-op-equal.rs rename to tests/ui/borrowck/borrowck-init-op-equal.rs diff --git a/src/test/ui/borrowck/borrowck-init-op-equal.stderr b/tests/ui/borrowck/borrowck-init-op-equal.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-init-op-equal.stderr rename to tests/ui/borrowck/borrowck-init-op-equal.stderr diff --git a/src/test/ui/borrowck/borrowck-init-plus-equal.rs b/tests/ui/borrowck/borrowck-init-plus-equal.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-init-plus-equal.rs rename to tests/ui/borrowck/borrowck-init-plus-equal.rs diff --git a/src/test/ui/borrowck/borrowck-init-plus-equal.stderr b/tests/ui/borrowck/borrowck-init-plus-equal.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-init-plus-equal.stderr rename to tests/ui/borrowck/borrowck-init-plus-equal.stderr diff --git a/src/test/ui/borrowck/borrowck-insert-during-each.rs b/tests/ui/borrowck/borrowck-insert-during-each.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-insert-during-each.rs rename to tests/ui/borrowck/borrowck-insert-during-each.rs diff --git a/src/test/ui/borrowck/borrowck-insert-during-each.stderr b/tests/ui/borrowck/borrowck-insert-during-each.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-insert-during-each.stderr rename to tests/ui/borrowck/borrowck-insert-during-each.stderr diff --git a/src/test/ui/borrowck/borrowck-issue-14498.rs b/tests/ui/borrowck/borrowck-issue-14498.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-14498.rs rename to tests/ui/borrowck/borrowck-issue-14498.rs diff --git a/src/test/ui/borrowck/borrowck-issue-14498.stderr b/tests/ui/borrowck/borrowck-issue-14498.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-14498.stderr rename to tests/ui/borrowck/borrowck-issue-14498.stderr diff --git a/src/test/ui/borrowck/borrowck-issue-2657-1.rs b/tests/ui/borrowck/borrowck-issue-2657-1.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-2657-1.rs rename to tests/ui/borrowck/borrowck-issue-2657-1.rs diff --git a/src/test/ui/borrowck/borrowck-issue-2657-1.stderr b/tests/ui/borrowck/borrowck-issue-2657-1.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-2657-1.stderr rename to tests/ui/borrowck/borrowck-issue-2657-1.stderr diff --git a/src/test/ui/borrowck/borrowck-issue-2657-2.fixed b/tests/ui/borrowck/borrowck-issue-2657-2.fixed similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-2657-2.fixed rename to tests/ui/borrowck/borrowck-issue-2657-2.fixed diff --git a/src/test/ui/borrowck/borrowck-issue-2657-2.rs b/tests/ui/borrowck/borrowck-issue-2657-2.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-2657-2.rs rename to tests/ui/borrowck/borrowck-issue-2657-2.rs diff --git a/src/test/ui/borrowck/borrowck-issue-2657-2.stderr b/tests/ui/borrowck/borrowck-issue-2657-2.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-2657-2.stderr rename to tests/ui/borrowck/borrowck-issue-2657-2.stderr diff --git a/src/test/ui/borrowck/borrowck-issue-48962.rs b/tests/ui/borrowck/borrowck-issue-48962.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-48962.rs rename to tests/ui/borrowck/borrowck-issue-48962.rs diff --git a/src/test/ui/borrowck/borrowck-issue-48962.stderr b/tests/ui/borrowck/borrowck-issue-48962.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-issue-48962.stderr rename to tests/ui/borrowck/borrowck-issue-48962.stderr diff --git a/src/test/ui/borrowck/borrowck-lend-args.rs b/tests/ui/borrowck/borrowck-lend-args.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-args.rs rename to tests/ui/borrowck/borrowck-lend-args.rs diff --git a/src/test/ui/borrowck/borrowck-lend-flow-if.rs b/tests/ui/borrowck/borrowck-lend-flow-if.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow-if.rs rename to tests/ui/borrowck/borrowck-lend-flow-if.rs diff --git a/src/test/ui/borrowck/borrowck-lend-flow-if.stderr b/tests/ui/borrowck/borrowck-lend-flow-if.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow-if.stderr rename to tests/ui/borrowck/borrowck-lend-flow-if.stderr diff --git a/src/test/ui/borrowck/borrowck-lend-flow-loop.rs b/tests/ui/borrowck/borrowck-lend-flow-loop.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow-loop.rs rename to tests/ui/borrowck/borrowck-lend-flow-loop.rs diff --git a/src/test/ui/borrowck/borrowck-lend-flow-loop.stderr b/tests/ui/borrowck/borrowck-lend-flow-loop.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow-loop.stderr rename to tests/ui/borrowck/borrowck-lend-flow-loop.stderr diff --git a/src/test/ui/borrowck/borrowck-lend-flow-match.rs b/tests/ui/borrowck/borrowck-lend-flow-match.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow-match.rs rename to tests/ui/borrowck/borrowck-lend-flow-match.rs diff --git a/src/test/ui/borrowck/borrowck-lend-flow-match.stderr b/tests/ui/borrowck/borrowck-lend-flow-match.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow-match.stderr rename to tests/ui/borrowck/borrowck-lend-flow-match.stderr diff --git a/src/test/ui/borrowck/borrowck-lend-flow.rs b/tests/ui/borrowck/borrowck-lend-flow.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow.rs rename to tests/ui/borrowck/borrowck-lend-flow.rs diff --git a/src/test/ui/borrowck/borrowck-lend-flow.stderr b/tests/ui/borrowck/borrowck-lend-flow.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-lend-flow.stderr rename to tests/ui/borrowck/borrowck-lend-flow.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-blocks-move-cc.rs b/tests/ui/borrowck/borrowck-loan-blocks-move-cc.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-blocks-move-cc.rs rename to tests/ui/borrowck/borrowck-loan-blocks-move-cc.rs diff --git a/src/test/ui/borrowck/borrowck-loan-blocks-move-cc.stderr b/tests/ui/borrowck/borrowck-loan-blocks-move-cc.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-blocks-move-cc.stderr rename to tests/ui/borrowck/borrowck-loan-blocks-move-cc.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-blocks-move.rs b/tests/ui/borrowck/borrowck-loan-blocks-move.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-blocks-move.rs rename to tests/ui/borrowck/borrowck-loan-blocks-move.rs diff --git a/src/test/ui/borrowck/borrowck-loan-blocks-move.stderr b/tests/ui/borrowck/borrowck-loan-blocks-move.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-blocks-move.stderr rename to tests/ui/borrowck/borrowck-loan-blocks-move.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-blocks-mut-uniq.rs b/tests/ui/borrowck/borrowck-loan-blocks-mut-uniq.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-blocks-mut-uniq.rs rename to tests/ui/borrowck/borrowck-loan-blocks-mut-uniq.rs diff --git a/src/test/ui/borrowck/borrowck-loan-blocks-mut-uniq.stderr b/tests/ui/borrowck/borrowck-loan-blocks-mut-uniq.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-blocks-mut-uniq.stderr rename to tests/ui/borrowck/borrowck-loan-blocks-mut-uniq.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-in-overloaded-op.rs b/tests/ui/borrowck/borrowck-loan-in-overloaded-op.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-in-overloaded-op.rs rename to tests/ui/borrowck/borrowck-loan-in-overloaded-op.rs diff --git a/src/test/ui/borrowck/borrowck-loan-in-overloaded-op.stderr b/tests/ui/borrowck/borrowck-loan-in-overloaded-op.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-in-overloaded-op.stderr rename to tests/ui/borrowck/borrowck-loan-in-overloaded-op.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-of-static-data-issue-27616.rs b/tests/ui/borrowck/borrowck-loan-of-static-data-issue-27616.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-of-static-data-issue-27616.rs rename to tests/ui/borrowck/borrowck-loan-of-static-data-issue-27616.rs diff --git a/src/test/ui/borrowck/borrowck-loan-of-static-data-issue-27616.stderr b/tests/ui/borrowck/borrowck-loan-of-static-data-issue-27616.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-of-static-data-issue-27616.stderr rename to tests/ui/borrowck/borrowck-loan-of-static-data-issue-27616.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-rcvr-overloaded-op.rs b/tests/ui/borrowck/borrowck-loan-rcvr-overloaded-op.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-rcvr-overloaded-op.rs rename to tests/ui/borrowck/borrowck-loan-rcvr-overloaded-op.rs diff --git a/src/test/ui/borrowck/borrowck-loan-rcvr-overloaded-op.stderr b/tests/ui/borrowck/borrowck-loan-rcvr-overloaded-op.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-rcvr-overloaded-op.stderr rename to tests/ui/borrowck/borrowck-loan-rcvr-overloaded-op.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-rcvr.rs b/tests/ui/borrowck/borrowck-loan-rcvr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-rcvr.rs rename to tests/ui/borrowck/borrowck-loan-rcvr.rs diff --git a/src/test/ui/borrowck/borrowck-loan-rcvr.stderr b/tests/ui/borrowck/borrowck-loan-rcvr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-rcvr.stderr rename to tests/ui/borrowck/borrowck-loan-rcvr.stderr diff --git a/src/test/ui/borrowck/borrowck-loan-vec-content.rs b/tests/ui/borrowck/borrowck-loan-vec-content.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-vec-content.rs rename to tests/ui/borrowck/borrowck-loan-vec-content.rs diff --git a/src/test/ui/borrowck/borrowck-loan-vec-content.stderr b/tests/ui/borrowck/borrowck-loan-vec-content.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-loan-vec-content.stderr rename to tests/ui/borrowck/borrowck-loan-vec-content.stderr diff --git a/src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs b/tests/ui/borrowck/borrowck-local-borrow-outlives-fn.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs rename to tests/ui/borrowck/borrowck-local-borrow-outlives-fn.rs diff --git a/src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.stderr b/tests/ui/borrowck/borrowck-local-borrow-outlives-fn.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.stderr rename to tests/ui/borrowck/borrowck-local-borrow-outlives-fn.stderr diff --git a/src/test/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.rs b/tests/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.rs rename to tests/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.rs diff --git a/src/test/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.stderr b/tests/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.stderr rename to tests/ui/borrowck/borrowck-local-borrow-with-panic-outlives-fn.stderr diff --git a/src/test/ui/borrowck/borrowck-local-borrow.rs b/tests/ui/borrowck/borrowck-local-borrow.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-local-borrow.rs rename to tests/ui/borrowck/borrowck-local-borrow.rs diff --git a/src/test/ui/borrowck/borrowck-macro-interaction-issue-6304.rs b/tests/ui/borrowck/borrowck-macro-interaction-issue-6304.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-macro-interaction-issue-6304.rs rename to tests/ui/borrowck/borrowck-macro-interaction-issue-6304.rs diff --git a/src/test/ui/borrowck/borrowck-match-already-borrowed.rs b/tests/ui/borrowck/borrowck-match-already-borrowed.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-match-already-borrowed.rs rename to tests/ui/borrowck/borrowck-match-already-borrowed.rs diff --git a/src/test/ui/borrowck/borrowck-match-already-borrowed.stderr b/tests/ui/borrowck/borrowck-match-already-borrowed.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-match-already-borrowed.stderr rename to tests/ui/borrowck/borrowck-match-already-borrowed.stderr diff --git a/src/test/ui/borrowck/borrowck-match-binding-is-assignment.rs b/tests/ui/borrowck/borrowck-match-binding-is-assignment.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-match-binding-is-assignment.rs rename to tests/ui/borrowck/borrowck-match-binding-is-assignment.rs diff --git a/src/test/ui/borrowck/borrowck-match-binding-is-assignment.stderr b/tests/ui/borrowck/borrowck-match-binding-is-assignment.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-match-binding-is-assignment.stderr rename to tests/ui/borrowck/borrowck-match-binding-is-assignment.stderr diff --git a/src/test/ui/borrowck/borrowck-move-by-capture-ok.rs b/tests/ui/borrowck/borrowck-move-by-capture-ok.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-by-capture-ok.rs rename to tests/ui/borrowck/borrowck-move-by-capture-ok.rs diff --git a/src/test/ui/borrowck/borrowck-move-by-capture.rs b/tests/ui/borrowck/borrowck-move-by-capture.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-by-capture.rs rename to tests/ui/borrowck/borrowck-move-by-capture.rs diff --git a/src/test/ui/borrowck/borrowck-move-by-capture.stderr b/tests/ui/borrowck/borrowck-move-by-capture.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-by-capture.stderr rename to tests/ui/borrowck/borrowck-move-by-capture.stderr diff --git a/src/test/ui/borrowck/borrowck-move-error-with-note.fixed b/tests/ui/borrowck/borrowck-move-error-with-note.fixed similarity index 100% rename from src/test/ui/borrowck/borrowck-move-error-with-note.fixed rename to tests/ui/borrowck/borrowck-move-error-with-note.fixed diff --git a/src/test/ui/borrowck/borrowck-move-error-with-note.rs b/tests/ui/borrowck/borrowck-move-error-with-note.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-error-with-note.rs rename to tests/ui/borrowck/borrowck-move-error-with-note.rs diff --git a/src/test/ui/borrowck/borrowck-move-error-with-note.stderr b/tests/ui/borrowck/borrowck-move-error-with-note.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-error-with-note.stderr rename to tests/ui/borrowck/borrowck-move-error-with-note.stderr diff --git a/src/test/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.rs b/tests/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.rs rename to tests/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.rs diff --git a/src/test/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.stderr b/tests/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.stderr rename to tests/ui/borrowck/borrowck-move-from-subpath-of-borrowed-path.stderr diff --git a/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs b/tests/ui/borrowck/borrowck-move-from-unsafe-ptr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs rename to tests/ui/borrowck/borrowck-move-from-unsafe-ptr.rs diff --git a/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.stderr b/tests/ui/borrowck/borrowck-move-from-unsafe-ptr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.stderr rename to tests/ui/borrowck/borrowck-move-from-unsafe-ptr.stderr diff --git a/src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs b/tests/ui/borrowck/borrowck-move-in-irrefut-pat.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-in-irrefut-pat.rs rename to tests/ui/borrowck/borrowck-move-in-irrefut-pat.rs diff --git a/src/test/ui/borrowck/borrowck-move-in-irrefut-pat.stderr b/tests/ui/borrowck/borrowck-move-in-irrefut-pat.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-in-irrefut-pat.stderr rename to tests/ui/borrowck/borrowck-move-in-irrefut-pat.stderr diff --git a/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs b/tests/ui/borrowck/borrowck-move-moved-value-into-closure.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-moved-value-into-closure.rs rename to tests/ui/borrowck/borrowck-move-moved-value-into-closure.rs diff --git a/src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr b/tests/ui/borrowck/borrowck-move-moved-value-into-closure.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-moved-value-into-closure.stderr rename to tests/ui/borrowck/borrowck-move-moved-value-into-closure.stderr diff --git a/src/test/ui/borrowck/borrowck-move-mut-base-ptr.rs b/tests/ui/borrowck/borrowck-move-mut-base-ptr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-mut-base-ptr.rs rename to tests/ui/borrowck/borrowck-move-mut-base-ptr.rs diff --git a/src/test/ui/borrowck/borrowck-move-mut-base-ptr.stderr b/tests/ui/borrowck/borrowck-move-mut-base-ptr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-mut-base-ptr.stderr rename to tests/ui/borrowck/borrowck-move-mut-base-ptr.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-match.rs b/tests/ui/borrowck/borrowck-move-out-from-array-match.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-match.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-match.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-match.stderr b/tests/ui/borrowck/borrowck-move-out-from-array-match.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-match.stderr rename to tests/ui/borrowck/borrowck-move-out-from-array-match.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.rs b/tests/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.stderr b/tests/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.stderr rename to tests/ui/borrowck/borrowck-move-out-from-array-no-overlap-match.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-no-overlap.rs b/tests/ui/borrowck/borrowck-move-out-from-array-no-overlap.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-no-overlap.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-no-overlap.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use-match.rs b/tests/ui/borrowck/borrowck-move-out-from-array-use-match.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use-match.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-use-match.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use-match.stderr b/tests/ui/borrowck/borrowck-move-out-from-array-use-match.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use-match.stderr rename to tests/ui/borrowck/borrowck-move-out-from-array-use-match.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.rs b/tests/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.stderr b/tests/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.stderr rename to tests/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap.rs b/tests/ui/borrowck/borrowck-move-out-from-array-use-no-overlap.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-use-no-overlap.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use.rs b/tests/ui/borrowck/borrowck-move-out-from-array-use.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use.rs rename to tests/ui/borrowck/borrowck-move-out-from-array-use.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array-use.stderr b/tests/ui/borrowck/borrowck-move-out-from-array-use.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array-use.stderr rename to tests/ui/borrowck/borrowck-move-out-from-array-use.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array.rs b/tests/ui/borrowck/borrowck-move-out-from-array.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array.rs rename to tests/ui/borrowck/borrowck-move-out-from-array.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-from-array.stderr b/tests/ui/borrowck/borrowck-move-out-from-array.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-from-array.stderr rename to tests/ui/borrowck/borrowck-move-out-from-array.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs b/tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs rename to tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.stderr b/tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.stderr rename to tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-of-overloaded-deref.rs b/tests/ui/borrowck/borrowck-move-out-of-overloaded-deref.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-overloaded-deref.rs rename to tests/ui/borrowck/borrowck-move-out-of-overloaded-deref.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-of-overloaded-deref.stderr b/tests/ui/borrowck/borrowck-move-out-of-overloaded-deref.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-overloaded-deref.stderr rename to tests/ui/borrowck/borrowck-move-out-of-overloaded-deref.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-of-static-item.rs b/tests/ui/borrowck/borrowck-move-out-of-static-item.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-static-item.rs rename to tests/ui/borrowck/borrowck-move-out-of-static-item.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-of-static-item.stderr b/tests/ui/borrowck/borrowck-move-out-of-static-item.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-static-item.stderr rename to tests/ui/borrowck/borrowck-move-out-of-static-item.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-of-struct-with-dtor.fixed b/tests/ui/borrowck/borrowck-move-out-of-struct-with-dtor.fixed similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-struct-with-dtor.fixed rename to tests/ui/borrowck/borrowck-move-out-of-struct-with-dtor.fixed diff --git a/src/test/ui/borrowck/borrowck-move-out-of-struct-with-dtor.rs b/tests/ui/borrowck/borrowck-move-out-of-struct-with-dtor.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-struct-with-dtor.rs rename to tests/ui/borrowck/borrowck-move-out-of-struct-with-dtor.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-of-struct-with-dtor.stderr b/tests/ui/borrowck/borrowck-move-out-of-struct-with-dtor.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-struct-with-dtor.stderr rename to tests/ui/borrowck/borrowck-move-out-of-struct-with-dtor.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.fixed b/tests/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.fixed similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.fixed rename to tests/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.fixed diff --git a/src/test/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.rs b/tests/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.rs rename to tests/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.stderr b/tests/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.stderr rename to tests/ui/borrowck/borrowck-move-out-of-tuple-struct-with-dtor.stderr diff --git a/src/test/ui/borrowck/borrowck-move-out-of-vec-tail.rs b/tests/ui/borrowck/borrowck-move-out-of-vec-tail.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-vec-tail.rs rename to tests/ui/borrowck/borrowck-move-out-of-vec-tail.rs diff --git a/src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr b/tests/ui/borrowck/borrowck-move-out-of-vec-tail.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-out-of-vec-tail.stderr rename to tests/ui/borrowck/borrowck-move-out-of-vec-tail.stderr diff --git a/src/test/ui/borrowck/borrowck-move-subcomponent.rs b/tests/ui/borrowck/borrowck-move-subcomponent.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-move-subcomponent.rs rename to tests/ui/borrowck/borrowck-move-subcomponent.rs diff --git a/src/test/ui/borrowck/borrowck-move-subcomponent.stderr b/tests/ui/borrowck/borrowck-move-subcomponent.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-move-subcomponent.stderr rename to tests/ui/borrowck/borrowck-move-subcomponent.stderr diff --git a/src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs b/tests/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs rename to tests/ui/borrowck/borrowck-multiple-borrows-interior-boxes.rs diff --git a/src/test/ui/borrowck/borrowck-multiple-captures.rs b/tests/ui/borrowck/borrowck-multiple-captures.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-multiple-captures.rs rename to tests/ui/borrowck/borrowck-multiple-captures.rs diff --git a/src/test/ui/borrowck/borrowck-multiple-captures.stderr b/tests/ui/borrowck/borrowck-multiple-captures.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-multiple-captures.stderr rename to tests/ui/borrowck/borrowck-multiple-captures.stderr diff --git a/src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.rs b/tests/ui/borrowck/borrowck-mut-addr-of-imm-var.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.rs rename to tests/ui/borrowck/borrowck-mut-addr-of-imm-var.rs diff --git a/src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.stderr b/tests/ui/borrowck/borrowck-mut-addr-of-imm-var.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.stderr rename to tests/ui/borrowck/borrowck-mut-addr-of-imm-var.stderr diff --git a/src/test/ui/borrowck/borrowck-mut-borrow-linear-errors.rs b/tests/ui/borrowck/borrowck-mut-borrow-linear-errors.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-borrow-linear-errors.rs rename to tests/ui/borrowck/borrowck-mut-borrow-linear-errors.rs diff --git a/src/test/ui/borrowck/borrowck-mut-borrow-linear-errors.stderr b/tests/ui/borrowck/borrowck-mut-borrow-linear-errors.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-borrow-linear-errors.stderr rename to tests/ui/borrowck/borrowck-mut-borrow-linear-errors.stderr diff --git a/src/test/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.rs b/tests/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.rs rename to tests/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.rs diff --git a/src/test/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.stderr b/tests/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.stderr rename to tests/ui/borrowck/borrowck-mut-borrow-of-mut-base-ptr.stderr diff --git a/src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs b/tests/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs rename to tests/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs diff --git a/src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.stderr b/tests/ui/borrowck/borrowck-mut-slice-of-imm-vec.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.stderr rename to tests/ui/borrowck/borrowck-mut-slice-of-imm-vec.stderr diff --git a/src/test/ui/borrowck/borrowck-mut-uniq.rs b/tests/ui/borrowck/borrowck-mut-uniq.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-uniq.rs rename to tests/ui/borrowck/borrowck-mut-uniq.rs diff --git a/src/test/ui/borrowck/borrowck-mut-vec-as-imm-slice.rs b/tests/ui/borrowck/borrowck-mut-vec-as-imm-slice.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mut-vec-as-imm-slice.rs rename to tests/ui/borrowck/borrowck-mut-vec-as-imm-slice.rs diff --git a/src/test/ui/borrowck/borrowck-mutate-in-guard.rs b/tests/ui/borrowck/borrowck-mutate-in-guard.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-mutate-in-guard.rs rename to tests/ui/borrowck/borrowck-mutate-in-guard.rs diff --git a/src/test/ui/borrowck/borrowck-mutate-in-guard.stderr b/tests/ui/borrowck/borrowck-mutate-in-guard.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-mutate-in-guard.stderr rename to tests/ui/borrowck/borrowck-mutate-in-guard.stderr diff --git a/src/test/ui/borrowck/borrowck-no-cycle-in-exchange-heap.rs b/tests/ui/borrowck/borrowck-no-cycle-in-exchange-heap.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-no-cycle-in-exchange-heap.rs rename to tests/ui/borrowck/borrowck-no-cycle-in-exchange-heap.rs diff --git a/src/test/ui/borrowck/borrowck-no-cycle-in-exchange-heap.stderr b/tests/ui/borrowck/borrowck-no-cycle-in-exchange-heap.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-no-cycle-in-exchange-heap.stderr rename to tests/ui/borrowck/borrowck-no-cycle-in-exchange-heap.stderr diff --git a/src/test/ui/borrowck/borrowck-object-lifetime.rs b/tests/ui/borrowck/borrowck-object-lifetime.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-object-lifetime.rs rename to tests/ui/borrowck/borrowck-object-lifetime.rs diff --git a/src/test/ui/borrowck/borrowck-object-lifetime.stderr b/tests/ui/borrowck/borrowck-object-lifetime.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-object-lifetime.stderr rename to tests/ui/borrowck/borrowck-object-lifetime.stderr diff --git a/src/test/ui/borrowck/borrowck-or-init.rs b/tests/ui/borrowck/borrowck-or-init.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-or-init.rs rename to tests/ui/borrowck/borrowck-or-init.rs diff --git a/src/test/ui/borrowck/borrowck-or-init.stderr b/tests/ui/borrowck/borrowck-or-init.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-or-init.stderr rename to tests/ui/borrowck/borrowck-or-init.stderr diff --git a/src/test/ui/borrowck/borrowck-overloaded-call.rs b/tests/ui/borrowck/borrowck-overloaded-call.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-call.rs rename to tests/ui/borrowck/borrowck-overloaded-call.rs diff --git a/src/test/ui/borrowck/borrowck-overloaded-call.stderr b/tests/ui/borrowck/borrowck-overloaded-call.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-call.stderr rename to tests/ui/borrowck/borrowck-overloaded-call.stderr diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.rs b/tests/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.rs rename to tests/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.rs diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.stderr b/tests/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.stderr rename to tests/ui/borrowck/borrowck-overloaded-index-and-overloaded-deref.stderr diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-autoderef.rs b/tests/ui/borrowck/borrowck-overloaded-index-autoderef.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-autoderef.rs rename to tests/ui/borrowck/borrowck-overloaded-index-autoderef.rs diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-autoderef.stderr b/tests/ui/borrowck/borrowck-overloaded-index-autoderef.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-autoderef.stderr rename to tests/ui/borrowck/borrowck-overloaded-index-autoderef.stderr diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-move-from-vec.rs b/tests/ui/borrowck/borrowck-overloaded-index-move-from-vec.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-move-from-vec.rs rename to tests/ui/borrowck/borrowck-overloaded-index-move-from-vec.rs diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-move-from-vec.stderr b/tests/ui/borrowck/borrowck-overloaded-index-move-from-vec.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-move-from-vec.stderr rename to tests/ui/borrowck/borrowck-overloaded-index-move-from-vec.stderr diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-move-index.rs b/tests/ui/borrowck/borrowck-overloaded-index-move-index.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-move-index.rs rename to tests/ui/borrowck/borrowck-overloaded-index-move-index.rs diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-move-index.stderr b/tests/ui/borrowck/borrowck-overloaded-index-move-index.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-move-index.stderr rename to tests/ui/borrowck/borrowck-overloaded-index-move-index.stderr diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-ref-index.rs b/tests/ui/borrowck/borrowck-overloaded-index-ref-index.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-ref-index.rs rename to tests/ui/borrowck/borrowck-overloaded-index-ref-index.rs diff --git a/src/test/ui/borrowck/borrowck-overloaded-index-ref-index.stderr b/tests/ui/borrowck/borrowck-overloaded-index-ref-index.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-overloaded-index-ref-index.stderr rename to tests/ui/borrowck/borrowck-overloaded-index-ref-index.stderr diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-1.rs b/tests/ui/borrowck/borrowck-partial-reinit-1.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-1.rs rename to tests/ui/borrowck/borrowck-partial-reinit-1.rs diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-1.stderr b/tests/ui/borrowck/borrowck-partial-reinit-1.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-1.stderr rename to tests/ui/borrowck/borrowck-partial-reinit-1.stderr diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-2.rs b/tests/ui/borrowck/borrowck-partial-reinit-2.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-2.rs rename to tests/ui/borrowck/borrowck-partial-reinit-2.rs diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-2.stderr b/tests/ui/borrowck/borrowck-partial-reinit-2.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-2.stderr rename to tests/ui/borrowck/borrowck-partial-reinit-2.stderr diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-3.rs b/tests/ui/borrowck/borrowck-partial-reinit-3.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-3.rs rename to tests/ui/borrowck/borrowck-partial-reinit-3.rs diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-3.stderr b/tests/ui/borrowck/borrowck-partial-reinit-3.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-3.stderr rename to tests/ui/borrowck/borrowck-partial-reinit-3.stderr diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-4.rs b/tests/ui/borrowck/borrowck-partial-reinit-4.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-4.rs rename to tests/ui/borrowck/borrowck-partial-reinit-4.rs diff --git a/src/test/ui/borrowck/borrowck-partial-reinit-4.stderr b/tests/ui/borrowck/borrowck-partial-reinit-4.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-partial-reinit-4.stderr rename to tests/ui/borrowck/borrowck-partial-reinit-4.stderr diff --git a/src/test/ui/borrowck/borrowck-pat-enum.rs b/tests/ui/borrowck/borrowck-pat-enum.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-pat-enum.rs rename to tests/ui/borrowck/borrowck-pat-enum.rs diff --git a/src/test/ui/borrowck/borrowck-pat-reassign-binding.rs b/tests/ui/borrowck/borrowck-pat-reassign-binding.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-pat-reassign-binding.rs rename to tests/ui/borrowck/borrowck-pat-reassign-binding.rs diff --git a/src/test/ui/borrowck/borrowck-pat-reassign-binding.stderr b/tests/ui/borrowck/borrowck-pat-reassign-binding.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-pat-reassign-binding.stderr rename to tests/ui/borrowck/borrowck-pat-reassign-binding.stderr diff --git a/src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs b/tests/ui/borrowck/borrowck-pat-reassign-no-binding.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-pat-reassign-no-binding.rs rename to tests/ui/borrowck/borrowck-pat-reassign-no-binding.rs diff --git a/src/test/ui/borrowck/borrowck-reborrow-from-mut.rs b/tests/ui/borrowck/borrowck-reborrow-from-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-reborrow-from-mut.rs rename to tests/ui/borrowck/borrowck-reborrow-from-mut.rs diff --git a/src/test/ui/borrowck/borrowck-reborrow-from-mut.stderr b/tests/ui/borrowck/borrowck-reborrow-from-mut.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-reborrow-from-mut.stderr rename to tests/ui/borrowck/borrowck-reborrow-from-mut.stderr diff --git a/src/test/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.rs b/tests/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.rs rename to tests/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.rs diff --git a/src/test/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.stderr b/tests/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.stderr rename to tests/ui/borrowck/borrowck-reborrow-from-shorter-lived-andmut.stderr diff --git a/src/test/ui/borrowck/borrowck-ref-mut-of-imm.rs b/tests/ui/borrowck/borrowck-ref-mut-of-imm.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-ref-mut-of-imm.rs rename to tests/ui/borrowck/borrowck-ref-mut-of-imm.rs diff --git a/src/test/ui/borrowck/borrowck-ref-mut-of-imm.stderr b/tests/ui/borrowck/borrowck-ref-mut-of-imm.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-ref-mut-of-imm.stderr rename to tests/ui/borrowck/borrowck-ref-mut-of-imm.stderr diff --git a/src/test/ui/borrowck/borrowck-reinit.rs b/tests/ui/borrowck/borrowck-reinit.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-reinit.rs rename to tests/ui/borrowck/borrowck-reinit.rs diff --git a/src/test/ui/borrowck/borrowck-reinit.stderr b/tests/ui/borrowck/borrowck-reinit.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-reinit.stderr rename to tests/ui/borrowck/borrowck-reinit.stderr diff --git a/src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.rs b/tests/ui/borrowck/borrowck-report-with-custom-diagnostic.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.rs rename to tests/ui/borrowck/borrowck-report-with-custom-diagnostic.rs diff --git a/src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr b/tests/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr rename to tests/ui/borrowck/borrowck-report-with-custom-diagnostic.stderr diff --git a/src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.rs b/tests/ui/borrowck/borrowck-return-variable-on-stack-via-clone.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.rs rename to tests/ui/borrowck/borrowck-return-variable-on-stack-via-clone.rs diff --git a/src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr b/tests/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr rename to tests/ui/borrowck/borrowck-return-variable-on-stack-via-clone.stderr diff --git a/src/test/ui/borrowck/borrowck-return.rs b/tests/ui/borrowck/borrowck-return.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-return.rs rename to tests/ui/borrowck/borrowck-return.rs diff --git a/src/test/ui/borrowck/borrowck-return.stderr b/tests/ui/borrowck/borrowck-return.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-return.stderr rename to tests/ui/borrowck/borrowck-return.stderr diff --git a/src/test/ui/borrowck/borrowck-rvalues-mutable.rs b/tests/ui/borrowck/borrowck-rvalues-mutable.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-rvalues-mutable.rs rename to tests/ui/borrowck/borrowck-rvalues-mutable.rs diff --git a/src/test/ui/borrowck/borrowck-scope-of-deref-issue-4666.rs b/tests/ui/borrowck/borrowck-scope-of-deref-issue-4666.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-scope-of-deref-issue-4666.rs rename to tests/ui/borrowck/borrowck-scope-of-deref-issue-4666.rs diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-array-no-overlap.rs b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-array-no-overlap.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-array-no-overlap.rs rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-array-no-overlap.rs diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-array.rs b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-array.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-array.rs rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-array.rs diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-array.stderr b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-array.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-array.stderr rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-array.stderr diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-rpass.rs b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-rpass.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-rpass.rs rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-rpass.rs diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-slice-no-overlap.rs b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-slice-no-overlap.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-slice-no-overlap.rs rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-slice-no-overlap.rs diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-slice.rs b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-slice.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-slice.rs rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-slice.rs diff --git a/src/test/ui/borrowck/borrowck-slice-pattern-element-loan-slice.stderr b/tests/ui/borrowck/borrowck-slice-pattern-element-loan-slice.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-slice-pattern-element-loan-slice.stderr rename to tests/ui/borrowck/borrowck-slice-pattern-element-loan-slice.stderr diff --git a/src/test/ui/borrowck/borrowck-static-item-in-fn.rs b/tests/ui/borrowck/borrowck-static-item-in-fn.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-static-item-in-fn.rs rename to tests/ui/borrowck/borrowck-static-item-in-fn.rs diff --git a/src/test/ui/borrowck/borrowck-storage-dead.rs b/tests/ui/borrowck/borrowck-storage-dead.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-storage-dead.rs rename to tests/ui/borrowck/borrowck-storage-dead.rs diff --git a/src/test/ui/borrowck/borrowck-storage-dead.stderr b/tests/ui/borrowck/borrowck-storage-dead.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-storage-dead.stderr rename to tests/ui/borrowck/borrowck-storage-dead.stderr diff --git a/src/test/ui/borrowck/borrowck-struct-update-with-dtor.rs b/tests/ui/borrowck/borrowck-struct-update-with-dtor.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-struct-update-with-dtor.rs rename to tests/ui/borrowck/borrowck-struct-update-with-dtor.rs diff --git a/src/test/ui/borrowck/borrowck-struct-update-with-dtor.stderr b/tests/ui/borrowck/borrowck-struct-update-with-dtor.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-struct-update-with-dtor.stderr rename to tests/ui/borrowck/borrowck-struct-update-with-dtor.stderr diff --git a/src/test/ui/borrowck/borrowck-swap-mut-base-ptr.rs b/tests/ui/borrowck/borrowck-swap-mut-base-ptr.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-swap-mut-base-ptr.rs rename to tests/ui/borrowck/borrowck-swap-mut-base-ptr.rs diff --git a/src/test/ui/borrowck/borrowck-swap-mut-base-ptr.stderr b/tests/ui/borrowck/borrowck-swap-mut-base-ptr.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-swap-mut-base-ptr.stderr rename to tests/ui/borrowck/borrowck-swap-mut-base-ptr.stderr diff --git a/src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs b/tests/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs rename to tests/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.rs diff --git a/src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.stderr b/tests/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.stderr rename to tests/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.stderr diff --git a/src/test/ui/borrowck/borrowck-trait-lifetime.rs b/tests/ui/borrowck/borrowck-trait-lifetime.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-trait-lifetime.rs rename to tests/ui/borrowck/borrowck-trait-lifetime.rs diff --git a/src/test/ui/borrowck/borrowck-unary-move.rs b/tests/ui/borrowck/borrowck-unary-move.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-unary-move.rs rename to tests/ui/borrowck/borrowck-unary-move.rs diff --git a/src/test/ui/borrowck/borrowck-unary-move.stderr b/tests/ui/borrowck/borrowck-unary-move.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-unary-move.stderr rename to tests/ui/borrowck/borrowck-unary-move.stderr diff --git a/src/test/ui/borrowck/borrowck-unboxed-closures.rs b/tests/ui/borrowck/borrowck-unboxed-closures.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-unboxed-closures.rs rename to tests/ui/borrowck/borrowck-unboxed-closures.rs diff --git a/src/test/ui/borrowck/borrowck-unboxed-closures.stderr b/tests/ui/borrowck/borrowck-unboxed-closures.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-unboxed-closures.stderr rename to tests/ui/borrowck/borrowck-unboxed-closures.stderr diff --git a/src/test/ui/borrowck/borrowck-uninit-after-item.rs b/tests/ui/borrowck/borrowck-uninit-after-item.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-after-item.rs rename to tests/ui/borrowck/borrowck-uninit-after-item.rs diff --git a/src/test/ui/borrowck/borrowck-uninit-after-item.stderr b/tests/ui/borrowck/borrowck-uninit-after-item.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-after-item.stderr rename to tests/ui/borrowck/borrowck-uninit-after-item.stderr diff --git a/src/test/ui/borrowck/borrowck-uninit-field-access.rs b/tests/ui/borrowck/borrowck-uninit-field-access.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-field-access.rs rename to tests/ui/borrowck/borrowck-uninit-field-access.rs diff --git a/src/test/ui/borrowck/borrowck-uninit-field-access.stderr b/tests/ui/borrowck/borrowck-uninit-field-access.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-field-access.stderr rename to tests/ui/borrowck/borrowck-uninit-field-access.stderr diff --git a/src/test/ui/borrowck/borrowck-uninit-in-assignop.rs b/tests/ui/borrowck/borrowck-uninit-in-assignop.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-in-assignop.rs rename to tests/ui/borrowck/borrowck-uninit-in-assignop.rs diff --git a/src/test/ui/borrowck/borrowck-uninit-in-assignop.stderr b/tests/ui/borrowck/borrowck-uninit-in-assignop.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-in-assignop.stderr rename to tests/ui/borrowck/borrowck-uninit-in-assignop.stderr diff --git a/src/test/ui/borrowck/borrowck-uninit-ref-chain.rs b/tests/ui/borrowck/borrowck-uninit-ref-chain.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-ref-chain.rs rename to tests/ui/borrowck/borrowck-uninit-ref-chain.rs diff --git a/src/test/ui/borrowck/borrowck-uninit-ref-chain.stderr b/tests/ui/borrowck/borrowck-uninit-ref-chain.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit-ref-chain.stderr rename to tests/ui/borrowck/borrowck-uninit-ref-chain.stderr diff --git a/src/test/ui/borrowck/borrowck-uninit.rs b/tests/ui/borrowck/borrowck-uninit.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit.rs rename to tests/ui/borrowck/borrowck-uninit.rs diff --git a/src/test/ui/borrowck/borrowck-uninit.stderr b/tests/ui/borrowck/borrowck-uninit.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-uninit.stderr rename to tests/ui/borrowck/borrowck-uninit.stderr diff --git a/src/test/ui/borrowck/borrowck-union-borrow-nested.rs b/tests/ui/borrowck/borrowck-union-borrow-nested.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-union-borrow-nested.rs rename to tests/ui/borrowck/borrowck-union-borrow-nested.rs diff --git a/src/test/ui/borrowck/borrowck-union-borrow-nested.stderr b/tests/ui/borrowck/borrowck-union-borrow-nested.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-union-borrow-nested.stderr rename to tests/ui/borrowck/borrowck-union-borrow-nested.stderr diff --git a/src/test/ui/borrowck/borrowck-union-borrow.rs b/tests/ui/borrowck/borrowck-union-borrow.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-union-borrow.rs rename to tests/ui/borrowck/borrowck-union-borrow.rs diff --git a/src/test/ui/borrowck/borrowck-union-borrow.stderr b/tests/ui/borrowck/borrowck-union-borrow.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-union-borrow.stderr rename to tests/ui/borrowck/borrowck-union-borrow.stderr diff --git a/src/test/ui/borrowck/borrowck-union-move-assign.rs b/tests/ui/borrowck/borrowck-union-move-assign.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-union-move-assign.rs rename to tests/ui/borrowck/borrowck-union-move-assign.rs diff --git a/src/test/ui/borrowck/borrowck-union-move-assign.stderr b/tests/ui/borrowck/borrowck-union-move-assign.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-union-move-assign.stderr rename to tests/ui/borrowck/borrowck-union-move-assign.stderr diff --git a/src/test/ui/borrowck/borrowck-union-move.rs b/tests/ui/borrowck/borrowck-union-move.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-union-move.rs rename to tests/ui/borrowck/borrowck-union-move.rs diff --git a/src/test/ui/borrowck/borrowck-union-move.stderr b/tests/ui/borrowck/borrowck-union-move.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-union-move.stderr rename to tests/ui/borrowck/borrowck-union-move.stderr diff --git a/src/test/ui/borrowck/borrowck-union-uninitialized.rs b/tests/ui/borrowck/borrowck-union-uninitialized.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-union-uninitialized.rs rename to tests/ui/borrowck/borrowck-union-uninitialized.rs diff --git a/src/test/ui/borrowck/borrowck-union-uninitialized.stderr b/tests/ui/borrowck/borrowck-union-uninitialized.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-union-uninitialized.stderr rename to tests/ui/borrowck/borrowck-union-uninitialized.stderr diff --git a/src/test/ui/borrowck/borrowck-uniq-via-lend.rs b/tests/ui/borrowck/borrowck-uniq-via-lend.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uniq-via-lend.rs rename to tests/ui/borrowck/borrowck-uniq-via-lend.rs diff --git a/src/test/ui/borrowck/borrowck-uniq-via-lend.stderr b/tests/ui/borrowck/borrowck-uniq-via-lend.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-uniq-via-lend.stderr rename to tests/ui/borrowck/borrowck-uniq-via-lend.stderr diff --git a/src/test/ui/borrowck/borrowck-uniq-via-ref.rs b/tests/ui/borrowck/borrowck-uniq-via-ref.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-uniq-via-ref.rs rename to tests/ui/borrowck/borrowck-uniq-via-ref.rs diff --git a/src/test/ui/borrowck/borrowck-univariant-enum.rs b/tests/ui/borrowck/borrowck-univariant-enum.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-univariant-enum.rs rename to tests/ui/borrowck/borrowck-univariant-enum.rs diff --git a/src/test/ui/borrowck/borrowck-unsafe-static-mutable-borrows.rs b/tests/ui/borrowck/borrowck-unsafe-static-mutable-borrows.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-unsafe-static-mutable-borrows.rs rename to tests/ui/borrowck/borrowck-unsafe-static-mutable-borrows.rs diff --git a/src/test/ui/borrowck/borrowck-unused-mut-locals.rs b/tests/ui/borrowck/borrowck-unused-mut-locals.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-unused-mut-locals.rs rename to tests/ui/borrowck/borrowck-unused-mut-locals.rs diff --git a/src/test/ui/borrowck/borrowck-use-in-index-lvalue.rs b/tests/ui/borrowck/borrowck-use-in-index-lvalue.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-use-in-index-lvalue.rs rename to tests/ui/borrowck/borrowck-use-in-index-lvalue.rs diff --git a/src/test/ui/borrowck/borrowck-use-in-index-lvalue.stderr b/tests/ui/borrowck/borrowck-use-in-index-lvalue.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-use-in-index-lvalue.stderr rename to tests/ui/borrowck/borrowck-use-in-index-lvalue.stderr diff --git a/src/test/ui/borrowck/borrowck-use-mut-borrow-rpass.rs b/tests/ui/borrowck/borrowck-use-mut-borrow-rpass.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-use-mut-borrow-rpass.rs rename to tests/ui/borrowck/borrowck-use-mut-borrow-rpass.rs diff --git a/src/test/ui/borrowck/borrowck-use-mut-borrow.rs b/tests/ui/borrowck/borrowck-use-mut-borrow.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-use-mut-borrow.rs rename to tests/ui/borrowck/borrowck-use-mut-borrow.rs diff --git a/src/test/ui/borrowck/borrowck-use-mut-borrow.stderr b/tests/ui/borrowck/borrowck-use-mut-borrow.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-use-mut-borrow.stderr rename to tests/ui/borrowck/borrowck-use-mut-borrow.stderr diff --git a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs b/tests/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs rename to tests/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.rs diff --git a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.stderr b/tests/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.stderr rename to tests/ui/borrowck/borrowck-use-uninitialized-in-cast-trait.stderr diff --git a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs b/tests/ui/borrowck/borrowck-use-uninitialized-in-cast.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.rs rename to tests/ui/borrowck/borrowck-use-uninitialized-in-cast.rs diff --git a/src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.stderr b/tests/ui/borrowck/borrowck-use-uninitialized-in-cast.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-use-uninitialized-in-cast.stderr rename to tests/ui/borrowck/borrowck-use-uninitialized-in-cast.stderr diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-element-loan.rs b/tests/ui/borrowck/borrowck-vec-pattern-element-loan.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-element-loan.rs rename to tests/ui/borrowck/borrowck-vec-pattern-element-loan.rs diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-element-loan.stderr b/tests/ui/borrowck/borrowck-vec-pattern-element-loan.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-element-loan.stderr rename to tests/ui/borrowck/borrowck-vec-pattern-element-loan.stderr diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs b/tests/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs rename to tests/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.stderr b/tests/ui/borrowck/borrowck-vec-pattern-loan-from-mut.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.stderr rename to tests/ui/borrowck/borrowck-vec-pattern-loan-from-mut.stderr diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-move-tail.rs b/tests/ui/borrowck/borrowck-vec-pattern-move-tail.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-move-tail.rs rename to tests/ui/borrowck/borrowck-vec-pattern-move-tail.rs diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-move-tail.stderr b/tests/ui/borrowck/borrowck-vec-pattern-move-tail.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-move-tail.stderr rename to tests/ui/borrowck/borrowck-vec-pattern-move-tail.stderr diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-nesting.rs b/tests/ui/borrowck/borrowck-vec-pattern-nesting.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-nesting.rs rename to tests/ui/borrowck/borrowck-vec-pattern-nesting.rs diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr b/tests/ui/borrowck/borrowck-vec-pattern-nesting.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr rename to tests/ui/borrowck/borrowck-vec-pattern-nesting.stderr diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-tail-element-loan.rs b/tests/ui/borrowck/borrowck-vec-pattern-tail-element-loan.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-tail-element-loan.rs rename to tests/ui/borrowck/borrowck-vec-pattern-tail-element-loan.rs diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-tail-element-loan.stderr b/tests/ui/borrowck/borrowck-vec-pattern-tail-element-loan.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-vec-pattern-tail-element-loan.stderr rename to tests/ui/borrowck/borrowck-vec-pattern-tail-element-loan.stderr diff --git a/src/test/ui/borrowck/borrowck-while-break.rs b/tests/ui/borrowck/borrowck-while-break.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-while-break.rs rename to tests/ui/borrowck/borrowck-while-break.rs diff --git a/src/test/ui/borrowck/borrowck-while-break.stderr b/tests/ui/borrowck/borrowck-while-break.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-while-break.stderr rename to tests/ui/borrowck/borrowck-while-break.stderr diff --git a/src/test/ui/borrowck/borrowck-while-cond.rs b/tests/ui/borrowck/borrowck-while-cond.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-while-cond.rs rename to tests/ui/borrowck/borrowck-while-cond.rs diff --git a/src/test/ui/borrowck/borrowck-while-cond.stderr b/tests/ui/borrowck/borrowck-while-cond.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-while-cond.stderr rename to tests/ui/borrowck/borrowck-while-cond.stderr diff --git a/src/test/ui/borrowck/borrowck-while.rs b/tests/ui/borrowck/borrowck-while.rs similarity index 100% rename from src/test/ui/borrowck/borrowck-while.rs rename to tests/ui/borrowck/borrowck-while.rs diff --git a/src/test/ui/borrowck/borrowck-while.stderr b/tests/ui/borrowck/borrowck-while.stderr similarity index 100% rename from src/test/ui/borrowck/borrowck-while.stderr rename to tests/ui/borrowck/borrowck-while.stderr diff --git a/src/test/ui/borrowck/copy-suggestion-region-vid.rs b/tests/ui/borrowck/copy-suggestion-region-vid.rs similarity index 100% rename from src/test/ui/borrowck/copy-suggestion-region-vid.rs rename to tests/ui/borrowck/copy-suggestion-region-vid.rs diff --git a/src/test/ui/borrowck/copy-suggestion-region-vid.stderr b/tests/ui/borrowck/copy-suggestion-region-vid.stderr similarity index 100% rename from src/test/ui/borrowck/copy-suggestion-region-vid.stderr rename to tests/ui/borrowck/copy-suggestion-region-vid.stderr diff --git a/src/test/ui/borrowck/disallow-possibly-uninitialized.rs b/tests/ui/borrowck/disallow-possibly-uninitialized.rs similarity index 100% rename from src/test/ui/borrowck/disallow-possibly-uninitialized.rs rename to tests/ui/borrowck/disallow-possibly-uninitialized.rs diff --git a/src/test/ui/borrowck/disallow-possibly-uninitialized.stderr b/tests/ui/borrowck/disallow-possibly-uninitialized.stderr similarity index 100% rename from src/test/ui/borrowck/disallow-possibly-uninitialized.stderr rename to tests/ui/borrowck/disallow-possibly-uninitialized.stderr diff --git a/src/test/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.rs b/tests/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.rs similarity index 100% rename from src/test/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.rs rename to tests/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.rs diff --git a/src/test/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.stderr b/tests/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.stderr similarity index 100% rename from src/test/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.stderr rename to tests/ui/borrowck/do-not-suggest-adding-move-when-closure-is-already-marked-as-move.stderr diff --git a/src/test/ui/borrowck/fsu-moves-and-copies.rs b/tests/ui/borrowck/fsu-moves-and-copies.rs similarity index 100% rename from src/test/ui/borrowck/fsu-moves-and-copies.rs rename to tests/ui/borrowck/fsu-moves-and-copies.rs diff --git a/src/test/ui/borrowck/immut-function-arguments.rs b/tests/ui/borrowck/immut-function-arguments.rs similarity index 100% rename from src/test/ui/borrowck/immut-function-arguments.rs rename to tests/ui/borrowck/immut-function-arguments.rs diff --git a/src/test/ui/borrowck/immut-function-arguments.stderr b/tests/ui/borrowck/immut-function-arguments.stderr similarity index 100% rename from src/test/ui/borrowck/immut-function-arguments.stderr rename to tests/ui/borrowck/immut-function-arguments.stderr diff --git a/src/test/ui/borrowck/immutable-arg.rs b/tests/ui/borrowck/immutable-arg.rs similarity index 100% rename from src/test/ui/borrowck/immutable-arg.rs rename to tests/ui/borrowck/immutable-arg.rs diff --git a/src/test/ui/borrowck/immutable-arg.stderr b/tests/ui/borrowck/immutable-arg.stderr similarity index 100% rename from src/test/ui/borrowck/immutable-arg.stderr rename to tests/ui/borrowck/immutable-arg.stderr diff --git a/src/test/ui/borrowck/index-mut-help-with-impl.rs b/tests/ui/borrowck/index-mut-help-with-impl.rs similarity index 100% rename from src/test/ui/borrowck/index-mut-help-with-impl.rs rename to tests/ui/borrowck/index-mut-help-with-impl.rs diff --git a/src/test/ui/borrowck/index-mut-help-with-impl.stderr b/tests/ui/borrowck/index-mut-help-with-impl.stderr similarity index 100% rename from src/test/ui/borrowck/index-mut-help-with-impl.stderr rename to tests/ui/borrowck/index-mut-help-with-impl.stderr diff --git a/src/test/ui/borrowck/index-mut-help.rs b/tests/ui/borrowck/index-mut-help.rs similarity index 100% rename from src/test/ui/borrowck/index-mut-help.rs rename to tests/ui/borrowck/index-mut-help.rs diff --git a/src/test/ui/borrowck/index-mut-help.stderr b/tests/ui/borrowck/index-mut-help.stderr similarity index 100% rename from src/test/ui/borrowck/index-mut-help.stderr rename to tests/ui/borrowck/index-mut-help.stderr diff --git a/src/test/ui/borrowck/issue-101119.rs b/tests/ui/borrowck/issue-101119.rs similarity index 100% rename from src/test/ui/borrowck/issue-101119.rs rename to tests/ui/borrowck/issue-101119.rs diff --git a/src/test/ui/borrowck/issue-101119.stderr b/tests/ui/borrowck/issue-101119.stderr similarity index 100% rename from src/test/ui/borrowck/issue-101119.stderr rename to tests/ui/borrowck/issue-101119.stderr diff --git a/src/test/ui/borrowck/issue-102209.rs b/tests/ui/borrowck/issue-102209.rs similarity index 100% rename from src/test/ui/borrowck/issue-102209.rs rename to tests/ui/borrowck/issue-102209.rs diff --git a/src/test/ui/borrowck/issue-102209.stderr b/tests/ui/borrowck/issue-102209.stderr similarity index 100% rename from src/test/ui/borrowck/issue-102209.stderr rename to tests/ui/borrowck/issue-102209.stderr diff --git a/src/test/ui/borrowck/issue-103095.rs b/tests/ui/borrowck/issue-103095.rs similarity index 100% rename from src/test/ui/borrowck/issue-103095.rs rename to tests/ui/borrowck/issue-103095.rs diff --git a/src/test/ui/borrowck/issue-103250.rs b/tests/ui/borrowck/issue-103250.rs similarity index 100% rename from src/test/ui/borrowck/issue-103250.rs rename to tests/ui/borrowck/issue-103250.rs diff --git a/src/test/ui/borrowck/issue-103250.stderr b/tests/ui/borrowck/issue-103250.stderr similarity index 100% rename from src/test/ui/borrowck/issue-103250.stderr rename to tests/ui/borrowck/issue-103250.stderr diff --git a/src/test/ui/borrowck/issue-103624.rs b/tests/ui/borrowck/issue-103624.rs similarity index 100% rename from src/test/ui/borrowck/issue-103624.rs rename to tests/ui/borrowck/issue-103624.rs diff --git a/src/test/ui/borrowck/issue-103624.stderr b/tests/ui/borrowck/issue-103624.stderr similarity index 100% rename from src/test/ui/borrowck/issue-103624.stderr rename to tests/ui/borrowck/issue-103624.stderr diff --git a/src/test/ui/borrowck/issue-104639-lifetime-order.rs b/tests/ui/borrowck/issue-104639-lifetime-order.rs similarity index 100% rename from src/test/ui/borrowck/issue-104639-lifetime-order.rs rename to tests/ui/borrowck/issue-104639-lifetime-order.rs diff --git a/src/test/ui/borrowck/issue-10876.rs b/tests/ui/borrowck/issue-10876.rs similarity index 100% rename from src/test/ui/borrowck/issue-10876.rs rename to tests/ui/borrowck/issue-10876.rs diff --git a/src/test/ui/borrowck/issue-11493.fixed b/tests/ui/borrowck/issue-11493.fixed similarity index 100% rename from src/test/ui/borrowck/issue-11493.fixed rename to tests/ui/borrowck/issue-11493.fixed diff --git a/src/test/ui/borrowck/issue-11493.rs b/tests/ui/borrowck/issue-11493.rs similarity index 100% rename from src/test/ui/borrowck/issue-11493.rs rename to tests/ui/borrowck/issue-11493.rs diff --git a/src/test/ui/borrowck/issue-11493.stderr b/tests/ui/borrowck/issue-11493.stderr similarity index 100% rename from src/test/ui/borrowck/issue-11493.stderr rename to tests/ui/borrowck/issue-11493.stderr diff --git a/src/test/ui/borrowck/issue-17263.rs b/tests/ui/borrowck/issue-17263.rs similarity index 100% rename from src/test/ui/borrowck/issue-17263.rs rename to tests/ui/borrowck/issue-17263.rs diff --git a/src/test/ui/borrowck/issue-17545.rs b/tests/ui/borrowck/issue-17545.rs similarity index 100% rename from src/test/ui/borrowck/issue-17545.rs rename to tests/ui/borrowck/issue-17545.rs diff --git a/src/test/ui/borrowck/issue-17545.stderr b/tests/ui/borrowck/issue-17545.stderr similarity index 100% rename from src/test/ui/borrowck/issue-17545.stderr rename to tests/ui/borrowck/issue-17545.stderr diff --git a/src/test/ui/borrowck/issue-17718-static-move.rs b/tests/ui/borrowck/issue-17718-static-move.rs similarity index 100% rename from src/test/ui/borrowck/issue-17718-static-move.rs rename to tests/ui/borrowck/issue-17718-static-move.rs diff --git a/src/test/ui/borrowck/issue-17718-static-move.stderr b/tests/ui/borrowck/issue-17718-static-move.stderr similarity index 100% rename from src/test/ui/borrowck/issue-17718-static-move.stderr rename to tests/ui/borrowck/issue-17718-static-move.stderr diff --git a/src/test/ui/borrowck/issue-20801.rs b/tests/ui/borrowck/issue-20801.rs similarity index 100% rename from src/test/ui/borrowck/issue-20801.rs rename to tests/ui/borrowck/issue-20801.rs diff --git a/src/test/ui/borrowck/issue-20801.stderr b/tests/ui/borrowck/issue-20801.stderr similarity index 100% rename from src/test/ui/borrowck/issue-20801.stderr rename to tests/ui/borrowck/issue-20801.stderr diff --git a/src/test/ui/borrowck/issue-23338-params-outlive-temps-of-body.rs b/tests/ui/borrowck/issue-23338-params-outlive-temps-of-body.rs similarity index 100% rename from src/test/ui/borrowck/issue-23338-params-outlive-temps-of-body.rs rename to tests/ui/borrowck/issue-23338-params-outlive-temps-of-body.rs diff --git a/src/test/ui/borrowck/issue-24267-flow-exit.rs b/tests/ui/borrowck/issue-24267-flow-exit.rs similarity index 100% rename from src/test/ui/borrowck/issue-24267-flow-exit.rs rename to tests/ui/borrowck/issue-24267-flow-exit.rs diff --git a/src/test/ui/borrowck/issue-24267-flow-exit.stderr b/tests/ui/borrowck/issue-24267-flow-exit.stderr similarity index 100% rename from src/test/ui/borrowck/issue-24267-flow-exit.stderr rename to tests/ui/borrowck/issue-24267-flow-exit.stderr diff --git a/src/test/ui/borrowck/issue-25793.rs b/tests/ui/borrowck/issue-25793.rs similarity index 100% rename from src/test/ui/borrowck/issue-25793.rs rename to tests/ui/borrowck/issue-25793.rs diff --git a/src/test/ui/borrowck/issue-25793.stderr b/tests/ui/borrowck/issue-25793.stderr similarity index 100% rename from src/test/ui/borrowck/issue-25793.stderr rename to tests/ui/borrowck/issue-25793.stderr diff --git a/src/test/ui/borrowck/issue-28934.rs b/tests/ui/borrowck/issue-28934.rs similarity index 100% rename from src/test/ui/borrowck/issue-28934.rs rename to tests/ui/borrowck/issue-28934.rs diff --git a/src/test/ui/borrowck/issue-29166.rs b/tests/ui/borrowck/issue-29166.rs similarity index 100% rename from src/test/ui/borrowck/issue-29166.rs rename to tests/ui/borrowck/issue-29166.rs diff --git a/src/test/ui/borrowck/issue-31287-drop-in-guard.rs b/tests/ui/borrowck/issue-31287-drop-in-guard.rs similarity index 100% rename from src/test/ui/borrowck/issue-31287-drop-in-guard.rs rename to tests/ui/borrowck/issue-31287-drop-in-guard.rs diff --git a/src/test/ui/borrowck/issue-31287-drop-in-guard.stderr b/tests/ui/borrowck/issue-31287-drop-in-guard.stderr similarity index 100% rename from src/test/ui/borrowck/issue-31287-drop-in-guard.stderr rename to tests/ui/borrowck/issue-31287-drop-in-guard.stderr diff --git a/src/test/ui/borrowck/issue-33819.rs b/tests/ui/borrowck/issue-33819.rs similarity index 100% rename from src/test/ui/borrowck/issue-33819.rs rename to tests/ui/borrowck/issue-33819.rs diff --git a/src/test/ui/borrowck/issue-33819.stderr b/tests/ui/borrowck/issue-33819.stderr similarity index 100% rename from src/test/ui/borrowck/issue-33819.stderr rename to tests/ui/borrowck/issue-33819.stderr diff --git a/src/test/ui/borrowck/issue-36082.fixed b/tests/ui/borrowck/issue-36082.fixed similarity index 100% rename from src/test/ui/borrowck/issue-36082.fixed rename to tests/ui/borrowck/issue-36082.fixed diff --git a/src/test/ui/borrowck/issue-36082.rs b/tests/ui/borrowck/issue-36082.rs similarity index 100% rename from src/test/ui/borrowck/issue-36082.rs rename to tests/ui/borrowck/issue-36082.rs diff --git a/src/test/ui/borrowck/issue-36082.stderr b/tests/ui/borrowck/issue-36082.stderr similarity index 100% rename from src/test/ui/borrowck/issue-36082.stderr rename to tests/ui/borrowck/issue-36082.stderr diff --git a/src/test/ui/borrowck/issue-41962.rs b/tests/ui/borrowck/issue-41962.rs similarity index 100% rename from src/test/ui/borrowck/issue-41962.rs rename to tests/ui/borrowck/issue-41962.rs diff --git a/src/test/ui/borrowck/issue-41962.stderr b/tests/ui/borrowck/issue-41962.stderr similarity index 100% rename from src/test/ui/borrowck/issue-41962.stderr rename to tests/ui/borrowck/issue-41962.stderr diff --git a/src/test/ui/borrowck/issue-42344.rs b/tests/ui/borrowck/issue-42344.rs similarity index 100% rename from src/test/ui/borrowck/issue-42344.rs rename to tests/ui/borrowck/issue-42344.rs diff --git a/src/test/ui/borrowck/issue-42344.stderr b/tests/ui/borrowck/issue-42344.stderr similarity index 100% rename from src/test/ui/borrowck/issue-42344.stderr rename to tests/ui/borrowck/issue-42344.stderr diff --git a/src/test/ui/borrowck/issue-45199.rs b/tests/ui/borrowck/issue-45199.rs similarity index 100% rename from src/test/ui/borrowck/issue-45199.rs rename to tests/ui/borrowck/issue-45199.rs diff --git a/src/test/ui/borrowck/issue-45199.stderr b/tests/ui/borrowck/issue-45199.stderr similarity index 100% rename from src/test/ui/borrowck/issue-45199.stderr rename to tests/ui/borrowck/issue-45199.stderr diff --git a/src/test/ui/borrowck/issue-45983.rs b/tests/ui/borrowck/issue-45983.rs similarity index 100% rename from src/test/ui/borrowck/issue-45983.rs rename to tests/ui/borrowck/issue-45983.rs diff --git a/src/test/ui/borrowck/issue-45983.stderr b/tests/ui/borrowck/issue-45983.stderr similarity index 100% rename from src/test/ui/borrowck/issue-45983.stderr rename to tests/ui/borrowck/issue-45983.stderr diff --git a/src/test/ui/borrowck/issue-46095.rs b/tests/ui/borrowck/issue-46095.rs similarity index 100% rename from src/test/ui/borrowck/issue-46095.rs rename to tests/ui/borrowck/issue-46095.rs diff --git a/src/test/ui/borrowck/issue-46471.rs b/tests/ui/borrowck/issue-46471.rs similarity index 100% rename from src/test/ui/borrowck/issue-46471.rs rename to tests/ui/borrowck/issue-46471.rs diff --git a/src/test/ui/borrowck/issue-46471.stderr b/tests/ui/borrowck/issue-46471.stderr similarity index 100% rename from src/test/ui/borrowck/issue-46471.stderr rename to tests/ui/borrowck/issue-46471.stderr diff --git a/src/test/ui/borrowck/issue-47215-ice-from-drop-elab.rs b/tests/ui/borrowck/issue-47215-ice-from-drop-elab.rs similarity index 100% rename from src/test/ui/borrowck/issue-47215-ice-from-drop-elab.rs rename to tests/ui/borrowck/issue-47215-ice-from-drop-elab.rs diff --git a/src/test/ui/borrowck/issue-47215-ice-from-drop-elab.stderr b/tests/ui/borrowck/issue-47215-ice-from-drop-elab.stderr similarity index 100% rename from src/test/ui/borrowck/issue-47215-ice-from-drop-elab.stderr rename to tests/ui/borrowck/issue-47215-ice-from-drop-elab.stderr diff --git a/src/test/ui/borrowck/issue-51117.rs b/tests/ui/borrowck/issue-51117.rs similarity index 100% rename from src/test/ui/borrowck/issue-51117.rs rename to tests/ui/borrowck/issue-51117.rs diff --git a/src/test/ui/borrowck/issue-51117.stderr b/tests/ui/borrowck/issue-51117.stderr similarity index 100% rename from src/test/ui/borrowck/issue-51117.stderr rename to tests/ui/borrowck/issue-51117.stderr diff --git a/src/test/ui/borrowck/issue-51301.rs b/tests/ui/borrowck/issue-51301.rs similarity index 100% rename from src/test/ui/borrowck/issue-51301.rs rename to tests/ui/borrowck/issue-51301.rs diff --git a/src/test/ui/borrowck/issue-51301.stderr b/tests/ui/borrowck/issue-51301.stderr similarity index 100% rename from src/test/ui/borrowck/issue-51301.stderr rename to tests/ui/borrowck/issue-51301.stderr diff --git a/src/test/ui/borrowck/issue-51348-multi-ref-mut-in-guard.rs b/tests/ui/borrowck/issue-51348-multi-ref-mut-in-guard.rs similarity index 100% rename from src/test/ui/borrowck/issue-51348-multi-ref-mut-in-guard.rs rename to tests/ui/borrowck/issue-51348-multi-ref-mut-in-guard.rs diff --git a/src/test/ui/borrowck/issue-51415.fixed b/tests/ui/borrowck/issue-51415.fixed similarity index 100% rename from src/test/ui/borrowck/issue-51415.fixed rename to tests/ui/borrowck/issue-51415.fixed diff --git a/src/test/ui/borrowck/issue-51415.rs b/tests/ui/borrowck/issue-51415.rs similarity index 100% rename from src/test/ui/borrowck/issue-51415.rs rename to tests/ui/borrowck/issue-51415.rs diff --git a/src/test/ui/borrowck/issue-51415.stderr b/tests/ui/borrowck/issue-51415.stderr similarity index 100% rename from src/test/ui/borrowck/issue-51415.stderr rename to tests/ui/borrowck/issue-51415.stderr diff --git a/src/test/ui/borrowck/issue-52713-bug.rs b/tests/ui/borrowck/issue-52713-bug.rs similarity index 100% rename from src/test/ui/borrowck/issue-52713-bug.rs rename to tests/ui/borrowck/issue-52713-bug.rs diff --git a/src/test/ui/borrowck/issue-52713-bug.stderr b/tests/ui/borrowck/issue-52713-bug.stderr similarity index 100% rename from src/test/ui/borrowck/issue-52713-bug.stderr rename to tests/ui/borrowck/issue-52713-bug.stderr diff --git a/src/test/ui/borrowck/issue-52967-edition-2018-needs-two-phase-borrows.rs b/tests/ui/borrowck/issue-52967-edition-2018-needs-two-phase-borrows.rs similarity index 100% rename from src/test/ui/borrowck/issue-52967-edition-2018-needs-two-phase-borrows.rs rename to tests/ui/borrowck/issue-52967-edition-2018-needs-two-phase-borrows.rs diff --git a/src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs b/tests/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs similarity index 100% rename from src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs rename to tests/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs diff --git a/src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.stderr b/tests/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.stderr similarity index 100% rename from src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.stderr rename to tests/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.stderr diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.rs b/tests/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.rs similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.rs rename to tests/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.rs diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.stderr b/tests/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.stderr similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.stderr rename to tests/ui/borrowck/issue-54499-field-mutation-marks-mut-as-used.stderr diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.rs b/tests/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.rs similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.rs rename to tests/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.rs diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.stderr b/tests/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.stderr similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.stderr rename to tests/ui/borrowck/issue-54499-field-mutation-of-moved-out-with-mut.stderr diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out.rs b/tests/ui/borrowck/issue-54499-field-mutation-of-moved-out.rs similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out.rs rename to tests/ui/borrowck/issue-54499-field-mutation-of-moved-out.rs diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out.stderr b/tests/ui/borrowck/issue-54499-field-mutation-of-moved-out.stderr similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-of-moved-out.stderr rename to tests/ui/borrowck/issue-54499-field-mutation-of-moved-out.stderr diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-of-never-init.rs b/tests/ui/borrowck/issue-54499-field-mutation-of-never-init.rs similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-of-never-init.rs rename to tests/ui/borrowck/issue-54499-field-mutation-of-never-init.rs diff --git a/src/test/ui/borrowck/issue-54499-field-mutation-of-never-init.stderr b/tests/ui/borrowck/issue-54499-field-mutation-of-never-init.stderr similarity index 100% rename from src/test/ui/borrowck/issue-54499-field-mutation-of-never-init.stderr rename to tests/ui/borrowck/issue-54499-field-mutation-of-never-init.stderr diff --git a/src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs b/tests/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs similarity index 100% rename from src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs rename to tests/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs diff --git a/src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.stderr b/tests/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.stderr similarity index 100% rename from src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.stderr rename to tests/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.stderr diff --git a/src/test/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.rs b/tests/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.rs similarity index 100% rename from src/test/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.rs rename to tests/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.rs diff --git a/src/test/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.stderr b/tests/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.stderr similarity index 100% rename from src/test/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.stderr rename to tests/ui/borrowck/issue-55492-borrowck-migrate-scans-parents.stderr diff --git a/src/test/ui/borrowck/issue-55552-ascribe-wildcard-to-structured-pattern.rs b/tests/ui/borrowck/issue-55552-ascribe-wildcard-to-structured-pattern.rs similarity index 100% rename from src/test/ui/borrowck/issue-55552-ascribe-wildcard-to-structured-pattern.rs rename to tests/ui/borrowck/issue-55552-ascribe-wildcard-to-structured-pattern.rs diff --git a/src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs b/tests/ui/borrowck/issue-58776-borrowck-scans-children.rs similarity index 100% rename from src/test/ui/borrowck/issue-58776-borrowck-scans-children.rs rename to tests/ui/borrowck/issue-58776-borrowck-scans-children.rs diff --git a/src/test/ui/borrowck/issue-58776-borrowck-scans-children.stderr b/tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr similarity index 100% rename from src/test/ui/borrowck/issue-58776-borrowck-scans-children.stderr rename to tests/ui/borrowck/issue-58776-borrowck-scans-children.stderr diff --git a/src/test/ui/borrowck/issue-62007-assign-box.rs b/tests/ui/borrowck/issue-62007-assign-box.rs similarity index 100% rename from src/test/ui/borrowck/issue-62007-assign-box.rs rename to tests/ui/borrowck/issue-62007-assign-box.rs diff --git a/src/test/ui/borrowck/issue-62007-assign-field.rs b/tests/ui/borrowck/issue-62007-assign-field.rs similarity index 100% rename from src/test/ui/borrowck/issue-62007-assign-field.rs rename to tests/ui/borrowck/issue-62007-assign-field.rs diff --git a/src/test/ui/borrowck/issue-62107-match-arm-scopes.rs b/tests/ui/borrowck/issue-62107-match-arm-scopes.rs similarity index 100% rename from src/test/ui/borrowck/issue-62107-match-arm-scopes.rs rename to tests/ui/borrowck/issue-62107-match-arm-scopes.rs diff --git a/src/test/ui/borrowck/issue-62107-match-arm-scopes.stderr b/tests/ui/borrowck/issue-62107-match-arm-scopes.stderr similarity index 100% rename from src/test/ui/borrowck/issue-62107-match-arm-scopes.stderr rename to tests/ui/borrowck/issue-62107-match-arm-scopes.stderr diff --git a/src/test/ui/borrowck/issue-64453.rs b/tests/ui/borrowck/issue-64453.rs similarity index 100% rename from src/test/ui/borrowck/issue-64453.rs rename to tests/ui/borrowck/issue-64453.rs diff --git a/src/test/ui/borrowck/issue-64453.stderr b/tests/ui/borrowck/issue-64453.stderr similarity index 100% rename from src/test/ui/borrowck/issue-64453.stderr rename to tests/ui/borrowck/issue-64453.stderr diff --git a/src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs b/tests/ui/borrowck/issue-69789-iterator-mut-suggestion.rs similarity index 100% rename from src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.rs rename to tests/ui/borrowck/issue-69789-iterator-mut-suggestion.rs diff --git a/src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.stderr b/tests/ui/borrowck/issue-69789-iterator-mut-suggestion.stderr similarity index 100% rename from src/test/ui/borrowck/issue-69789-iterator-mut-suggestion.stderr rename to tests/ui/borrowck/issue-69789-iterator-mut-suggestion.stderr diff --git a/src/test/ui/borrowck/issue-71546.rs b/tests/ui/borrowck/issue-71546.rs similarity index 100% rename from src/test/ui/borrowck/issue-71546.rs rename to tests/ui/borrowck/issue-71546.rs diff --git a/src/test/ui/borrowck/issue-7573.rs b/tests/ui/borrowck/issue-7573.rs similarity index 100% rename from src/test/ui/borrowck/issue-7573.rs rename to tests/ui/borrowck/issue-7573.rs diff --git a/src/test/ui/borrowck/issue-7573.stderr b/tests/ui/borrowck/issue-7573.stderr similarity index 100% rename from src/test/ui/borrowck/issue-7573.stderr rename to tests/ui/borrowck/issue-7573.stderr diff --git a/src/test/ui/borrowck/issue-80772.rs b/tests/ui/borrowck/issue-80772.rs similarity index 100% rename from src/test/ui/borrowck/issue-80772.rs rename to tests/ui/borrowck/issue-80772.rs diff --git a/src/test/ui/borrowck/issue-81365-1.rs b/tests/ui/borrowck/issue-81365-1.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-1.rs rename to tests/ui/borrowck/issue-81365-1.rs diff --git a/src/test/ui/borrowck/issue-81365-1.stderr b/tests/ui/borrowck/issue-81365-1.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-1.stderr rename to tests/ui/borrowck/issue-81365-1.stderr diff --git a/src/test/ui/borrowck/issue-81365-10.rs b/tests/ui/borrowck/issue-81365-10.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-10.rs rename to tests/ui/borrowck/issue-81365-10.rs diff --git a/src/test/ui/borrowck/issue-81365-10.stderr b/tests/ui/borrowck/issue-81365-10.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-10.stderr rename to tests/ui/borrowck/issue-81365-10.stderr diff --git a/src/test/ui/borrowck/issue-81365-11.rs b/tests/ui/borrowck/issue-81365-11.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-11.rs rename to tests/ui/borrowck/issue-81365-11.rs diff --git a/src/test/ui/borrowck/issue-81365-11.stderr b/tests/ui/borrowck/issue-81365-11.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-11.stderr rename to tests/ui/borrowck/issue-81365-11.stderr diff --git a/src/test/ui/borrowck/issue-81365-2.rs b/tests/ui/borrowck/issue-81365-2.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-2.rs rename to tests/ui/borrowck/issue-81365-2.rs diff --git a/src/test/ui/borrowck/issue-81365-2.stderr b/tests/ui/borrowck/issue-81365-2.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-2.stderr rename to tests/ui/borrowck/issue-81365-2.stderr diff --git a/src/test/ui/borrowck/issue-81365-3.rs b/tests/ui/borrowck/issue-81365-3.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-3.rs rename to tests/ui/borrowck/issue-81365-3.rs diff --git a/src/test/ui/borrowck/issue-81365-3.stderr b/tests/ui/borrowck/issue-81365-3.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-3.stderr rename to tests/ui/borrowck/issue-81365-3.stderr diff --git a/src/test/ui/borrowck/issue-81365-4.rs b/tests/ui/borrowck/issue-81365-4.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-4.rs rename to tests/ui/borrowck/issue-81365-4.rs diff --git a/src/test/ui/borrowck/issue-81365-4.stderr b/tests/ui/borrowck/issue-81365-4.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-4.stderr rename to tests/ui/borrowck/issue-81365-4.stderr diff --git a/src/test/ui/borrowck/issue-81365-5.rs b/tests/ui/borrowck/issue-81365-5.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-5.rs rename to tests/ui/borrowck/issue-81365-5.rs diff --git a/src/test/ui/borrowck/issue-81365-5.stderr b/tests/ui/borrowck/issue-81365-5.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-5.stderr rename to tests/ui/borrowck/issue-81365-5.stderr diff --git a/src/test/ui/borrowck/issue-81365-6.rs b/tests/ui/borrowck/issue-81365-6.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-6.rs rename to tests/ui/borrowck/issue-81365-6.rs diff --git a/src/test/ui/borrowck/issue-81365-6.stderr b/tests/ui/borrowck/issue-81365-6.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-6.stderr rename to tests/ui/borrowck/issue-81365-6.stderr diff --git a/src/test/ui/borrowck/issue-81365-7.rs b/tests/ui/borrowck/issue-81365-7.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-7.rs rename to tests/ui/borrowck/issue-81365-7.rs diff --git a/src/test/ui/borrowck/issue-81365-7.stderr b/tests/ui/borrowck/issue-81365-7.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-7.stderr rename to tests/ui/borrowck/issue-81365-7.stderr diff --git a/src/test/ui/borrowck/issue-81365-8.rs b/tests/ui/borrowck/issue-81365-8.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-8.rs rename to tests/ui/borrowck/issue-81365-8.rs diff --git a/src/test/ui/borrowck/issue-81365-8.stderr b/tests/ui/borrowck/issue-81365-8.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-8.stderr rename to tests/ui/borrowck/issue-81365-8.stderr diff --git a/src/test/ui/borrowck/issue-81365-9.rs b/tests/ui/borrowck/issue-81365-9.rs similarity index 100% rename from src/test/ui/borrowck/issue-81365-9.rs rename to tests/ui/borrowck/issue-81365-9.rs diff --git a/src/test/ui/borrowck/issue-81365-9.stderr b/tests/ui/borrowck/issue-81365-9.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81365-9.stderr rename to tests/ui/borrowck/issue-81365-9.stderr diff --git a/src/test/ui/borrowck/issue-81899.rs b/tests/ui/borrowck/issue-81899.rs similarity index 100% rename from src/test/ui/borrowck/issue-81899.rs rename to tests/ui/borrowck/issue-81899.rs diff --git a/src/test/ui/borrowck/issue-81899.stderr b/tests/ui/borrowck/issue-81899.stderr similarity index 100% rename from src/test/ui/borrowck/issue-81899.stderr rename to tests/ui/borrowck/issue-81899.stderr diff --git a/src/test/ui/borrowck/issue-82032.rs b/tests/ui/borrowck/issue-82032.rs similarity index 100% rename from src/test/ui/borrowck/issue-82032.rs rename to tests/ui/borrowck/issue-82032.rs diff --git a/src/test/ui/borrowck/issue-82032.stderr b/tests/ui/borrowck/issue-82032.stderr similarity index 100% rename from src/test/ui/borrowck/issue-82032.stderr rename to tests/ui/borrowck/issue-82032.stderr diff --git a/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs b/tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs similarity index 100% rename from src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs rename to tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.rs diff --git a/src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.stderr b/tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.stderr similarity index 100% rename from src/test/ui/borrowck/issue-82126-mismatched-subst-and-hir.stderr rename to tests/ui/borrowck/issue-82126-mismatched-subst-and-hir.stderr diff --git a/src/test/ui/borrowck/issue-82462.rs b/tests/ui/borrowck/issue-82462.rs similarity index 100% rename from src/test/ui/borrowck/issue-82462.rs rename to tests/ui/borrowck/issue-82462.rs diff --git a/src/test/ui/borrowck/issue-82462.stderr b/tests/ui/borrowck/issue-82462.stderr similarity index 100% rename from src/test/ui/borrowck/issue-82462.stderr rename to tests/ui/borrowck/issue-82462.stderr diff --git a/src/test/ui/borrowck/issue-83309-ice-immut-in-for-loop.rs b/tests/ui/borrowck/issue-83309-ice-immut-in-for-loop.rs similarity index 100% rename from src/test/ui/borrowck/issue-83309-ice-immut-in-for-loop.rs rename to tests/ui/borrowck/issue-83309-ice-immut-in-for-loop.rs diff --git a/src/test/ui/borrowck/issue-83309-ice-immut-in-for-loop.stderr b/tests/ui/borrowck/issue-83309-ice-immut-in-for-loop.stderr similarity index 100% rename from src/test/ui/borrowck/issue-83309-ice-immut-in-for-loop.stderr rename to tests/ui/borrowck/issue-83309-ice-immut-in-for-loop.stderr diff --git a/src/test/ui/borrowck/issue-83760.rs b/tests/ui/borrowck/issue-83760.rs similarity index 100% rename from src/test/ui/borrowck/issue-83760.rs rename to tests/ui/borrowck/issue-83760.rs diff --git a/src/test/ui/borrowck/issue-83760.stderr b/tests/ui/borrowck/issue-83760.stderr similarity index 100% rename from src/test/ui/borrowck/issue-83760.stderr rename to tests/ui/borrowck/issue-83760.stderr diff --git a/src/test/ui/borrowck/issue-85581.rs b/tests/ui/borrowck/issue-85581.rs similarity index 100% rename from src/test/ui/borrowck/issue-85581.rs rename to tests/ui/borrowck/issue-85581.rs diff --git a/src/test/ui/borrowck/issue-85581.stderr b/tests/ui/borrowck/issue-85581.stderr similarity index 100% rename from src/test/ui/borrowck/issue-85581.stderr rename to tests/ui/borrowck/issue-85581.stderr diff --git a/src/test/ui/borrowck/issue-85765.rs b/tests/ui/borrowck/issue-85765.rs similarity index 100% rename from src/test/ui/borrowck/issue-85765.rs rename to tests/ui/borrowck/issue-85765.rs diff --git a/src/test/ui/borrowck/issue-85765.stderr b/tests/ui/borrowck/issue-85765.stderr similarity index 100% rename from src/test/ui/borrowck/issue-85765.stderr rename to tests/ui/borrowck/issue-85765.stderr diff --git a/src/test/ui/borrowck/issue-87456-point-to-closure.rs b/tests/ui/borrowck/issue-87456-point-to-closure.rs similarity index 100% rename from src/test/ui/borrowck/issue-87456-point-to-closure.rs rename to tests/ui/borrowck/issue-87456-point-to-closure.rs diff --git a/src/test/ui/borrowck/issue-87456-point-to-closure.stderr b/tests/ui/borrowck/issue-87456-point-to-closure.stderr similarity index 100% rename from src/test/ui/borrowck/issue-87456-point-to-closure.stderr rename to tests/ui/borrowck/issue-87456-point-to-closure.stderr diff --git a/src/test/ui/borrowck/issue-88434-minimal-example.rs b/tests/ui/borrowck/issue-88434-minimal-example.rs similarity index 100% rename from src/test/ui/borrowck/issue-88434-minimal-example.rs rename to tests/ui/borrowck/issue-88434-minimal-example.rs diff --git a/src/test/ui/borrowck/issue-88434-minimal-example.stderr b/tests/ui/borrowck/issue-88434-minimal-example.stderr similarity index 100% rename from src/test/ui/borrowck/issue-88434-minimal-example.stderr rename to tests/ui/borrowck/issue-88434-minimal-example.stderr diff --git a/src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs b/tests/ui/borrowck/issue-88434-removal-index-should-be-less.rs similarity index 100% rename from src/test/ui/borrowck/issue-88434-removal-index-should-be-less.rs rename to tests/ui/borrowck/issue-88434-removal-index-should-be-less.rs diff --git a/src/test/ui/borrowck/issue-88434-removal-index-should-be-less.stderr b/tests/ui/borrowck/issue-88434-removal-index-should-be-less.stderr similarity index 100% rename from src/test/ui/borrowck/issue-88434-removal-index-should-be-less.stderr rename to tests/ui/borrowck/issue-88434-removal-index-should-be-less.stderr diff --git a/src/test/ui/borrowck/issue-91206.rs b/tests/ui/borrowck/issue-91206.rs similarity index 100% rename from src/test/ui/borrowck/issue-91206.rs rename to tests/ui/borrowck/issue-91206.rs diff --git a/src/test/ui/borrowck/issue-91206.stderr b/tests/ui/borrowck/issue-91206.stderr similarity index 100% rename from src/test/ui/borrowck/issue-91206.stderr rename to tests/ui/borrowck/issue-91206.stderr diff --git a/src/test/ui/borrowck/issue-92015.rs b/tests/ui/borrowck/issue-92015.rs similarity index 100% rename from src/test/ui/borrowck/issue-92015.rs rename to tests/ui/borrowck/issue-92015.rs diff --git a/src/test/ui/borrowck/issue-92015.stderr b/tests/ui/borrowck/issue-92015.stderr similarity index 100% rename from src/test/ui/borrowck/issue-92015.stderr rename to tests/ui/borrowck/issue-92015.stderr diff --git a/src/test/ui/borrowck/issue-93078.rs b/tests/ui/borrowck/issue-93078.rs similarity index 100% rename from src/test/ui/borrowck/issue-93078.rs rename to tests/ui/borrowck/issue-93078.rs diff --git a/src/test/ui/borrowck/issue-93078.stderr b/tests/ui/borrowck/issue-93078.stderr similarity index 100% rename from src/test/ui/borrowck/issue-93078.stderr rename to tests/ui/borrowck/issue-93078.stderr diff --git a/src/test/ui/borrowck/issue-93093.rs b/tests/ui/borrowck/issue-93093.rs similarity index 100% rename from src/test/ui/borrowck/issue-93093.rs rename to tests/ui/borrowck/issue-93093.rs diff --git a/src/test/ui/borrowck/issue-93093.stderr b/tests/ui/borrowck/issue-93093.stderr similarity index 100% rename from src/test/ui/borrowck/issue-93093.stderr rename to tests/ui/borrowck/issue-93093.stderr diff --git a/src/test/ui/borrowck/issue-95079-missing-move-in-nested-closure.rs b/tests/ui/borrowck/issue-95079-missing-move-in-nested-closure.rs similarity index 100% rename from src/test/ui/borrowck/issue-95079-missing-move-in-nested-closure.rs rename to tests/ui/borrowck/issue-95079-missing-move-in-nested-closure.rs diff --git a/src/test/ui/borrowck/issue-95079-missing-move-in-nested-closure.stderr b/tests/ui/borrowck/issue-95079-missing-move-in-nested-closure.stderr similarity index 100% rename from src/test/ui/borrowck/issue-95079-missing-move-in-nested-closure.stderr rename to tests/ui/borrowck/issue-95079-missing-move-in-nested-closure.stderr diff --git a/src/test/ui/borrowck/kindck-implicit-close-over-mut-var.rs b/tests/ui/borrowck/kindck-implicit-close-over-mut-var.rs similarity index 100% rename from src/test/ui/borrowck/kindck-implicit-close-over-mut-var.rs rename to tests/ui/borrowck/kindck-implicit-close-over-mut-var.rs diff --git a/src/test/ui/borrowck/lazy-init.rs b/tests/ui/borrowck/lazy-init.rs similarity index 100% rename from src/test/ui/borrowck/lazy-init.rs rename to tests/ui/borrowck/lazy-init.rs diff --git a/src/test/ui/borrowck/many-mutable-borrows.rs b/tests/ui/borrowck/many-mutable-borrows.rs similarity index 100% rename from src/test/ui/borrowck/many-mutable-borrows.rs rename to tests/ui/borrowck/many-mutable-borrows.rs diff --git a/src/test/ui/borrowck/many-mutable-borrows.stderr b/tests/ui/borrowck/many-mutable-borrows.stderr similarity index 100% rename from src/test/ui/borrowck/many-mutable-borrows.stderr rename to tests/ui/borrowck/many-mutable-borrows.stderr diff --git a/src/test/ui/borrowck/move-error-in-promoted-2.rs b/tests/ui/borrowck/move-error-in-promoted-2.rs similarity index 100% rename from src/test/ui/borrowck/move-error-in-promoted-2.rs rename to tests/ui/borrowck/move-error-in-promoted-2.rs diff --git a/src/test/ui/borrowck/move-error-in-promoted-2.stderr b/tests/ui/borrowck/move-error-in-promoted-2.stderr similarity index 100% rename from src/test/ui/borrowck/move-error-in-promoted-2.stderr rename to tests/ui/borrowck/move-error-in-promoted-2.stderr diff --git a/src/test/ui/borrowck/move-error-in-promoted.rs b/tests/ui/borrowck/move-error-in-promoted.rs similarity index 100% rename from src/test/ui/borrowck/move-error-in-promoted.rs rename to tests/ui/borrowck/move-error-in-promoted.rs diff --git a/src/test/ui/borrowck/move-error-in-promoted.stderr b/tests/ui/borrowck/move-error-in-promoted.stderr similarity index 100% rename from src/test/ui/borrowck/move-error-in-promoted.stderr rename to tests/ui/borrowck/move-error-in-promoted.stderr diff --git a/src/test/ui/borrowck/move-error-snippets-ext.rs b/tests/ui/borrowck/move-error-snippets-ext.rs similarity index 100% rename from src/test/ui/borrowck/move-error-snippets-ext.rs rename to tests/ui/borrowck/move-error-snippets-ext.rs diff --git a/src/test/ui/borrowck/move-error-snippets.rs b/tests/ui/borrowck/move-error-snippets.rs similarity index 100% rename from src/test/ui/borrowck/move-error-snippets.rs rename to tests/ui/borrowck/move-error-snippets.rs diff --git a/src/test/ui/borrowck/move-error-snippets.stderr b/tests/ui/borrowck/move-error-snippets.stderr similarity index 100% rename from src/test/ui/borrowck/move-error-snippets.stderr rename to tests/ui/borrowck/move-error-snippets.stderr diff --git a/src/test/ui/borrowck/move-from-union-field-issue-66500.rs b/tests/ui/borrowck/move-from-union-field-issue-66500.rs similarity index 100% rename from src/test/ui/borrowck/move-from-union-field-issue-66500.rs rename to tests/ui/borrowck/move-from-union-field-issue-66500.rs diff --git a/src/test/ui/borrowck/move-from-union-field-issue-66500.stderr b/tests/ui/borrowck/move-from-union-field-issue-66500.stderr similarity index 100% rename from src/test/ui/borrowck/move-from-union-field-issue-66500.stderr rename to tests/ui/borrowck/move-from-union-field-issue-66500.stderr diff --git a/src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs b/tests/ui/borrowck/move-in-pattern-mut-in-loop.rs similarity index 100% rename from src/test/ui/borrowck/move-in-pattern-mut-in-loop.rs rename to tests/ui/borrowck/move-in-pattern-mut-in-loop.rs diff --git a/src/test/ui/borrowck/move-in-pattern-mut-in-loop.stderr b/tests/ui/borrowck/move-in-pattern-mut-in-loop.stderr similarity index 100% rename from src/test/ui/borrowck/move-in-pattern-mut-in-loop.stderr rename to tests/ui/borrowck/move-in-pattern-mut-in-loop.stderr diff --git a/src/test/ui/borrowck/move-in-pattern-mut.rs b/tests/ui/borrowck/move-in-pattern-mut.rs similarity index 100% rename from src/test/ui/borrowck/move-in-pattern-mut.rs rename to tests/ui/borrowck/move-in-pattern-mut.rs diff --git a/src/test/ui/borrowck/move-in-pattern-mut.stderr b/tests/ui/borrowck/move-in-pattern-mut.stderr similarity index 100% rename from src/test/ui/borrowck/move-in-pattern-mut.stderr rename to tests/ui/borrowck/move-in-pattern-mut.stderr diff --git a/src/test/ui/borrowck/move-in-pattern.fixed b/tests/ui/borrowck/move-in-pattern.fixed similarity index 100% rename from src/test/ui/borrowck/move-in-pattern.fixed rename to tests/ui/borrowck/move-in-pattern.fixed diff --git a/src/test/ui/borrowck/move-in-pattern.rs b/tests/ui/borrowck/move-in-pattern.rs similarity index 100% rename from src/test/ui/borrowck/move-in-pattern.rs rename to tests/ui/borrowck/move-in-pattern.rs diff --git a/src/test/ui/borrowck/move-in-pattern.stderr b/tests/ui/borrowck/move-in-pattern.stderr similarity index 100% rename from src/test/ui/borrowck/move-in-pattern.stderr rename to tests/ui/borrowck/move-in-pattern.stderr diff --git a/src/test/ui/borrowck/move-in-static-initializer-issue-38520.rs b/tests/ui/borrowck/move-in-static-initializer-issue-38520.rs similarity index 100% rename from src/test/ui/borrowck/move-in-static-initializer-issue-38520.rs rename to tests/ui/borrowck/move-in-static-initializer-issue-38520.rs diff --git a/src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr b/tests/ui/borrowck/move-in-static-initializer-issue-38520.stderr similarity index 100% rename from src/test/ui/borrowck/move-in-static-initializer-issue-38520.stderr rename to tests/ui/borrowck/move-in-static-initializer-issue-38520.stderr diff --git a/src/test/ui/borrowck/mut-borrow-in-loop-2.fixed b/tests/ui/borrowck/mut-borrow-in-loop-2.fixed similarity index 100% rename from src/test/ui/borrowck/mut-borrow-in-loop-2.fixed rename to tests/ui/borrowck/mut-borrow-in-loop-2.fixed diff --git a/src/test/ui/borrowck/mut-borrow-in-loop-2.rs b/tests/ui/borrowck/mut-borrow-in-loop-2.rs similarity index 100% rename from src/test/ui/borrowck/mut-borrow-in-loop-2.rs rename to tests/ui/borrowck/mut-borrow-in-loop-2.rs diff --git a/src/test/ui/borrowck/mut-borrow-in-loop-2.stderr b/tests/ui/borrowck/mut-borrow-in-loop-2.stderr similarity index 100% rename from src/test/ui/borrowck/mut-borrow-in-loop-2.stderr rename to tests/ui/borrowck/mut-borrow-in-loop-2.stderr diff --git a/src/test/ui/borrowck/mut-borrow-in-loop.rs b/tests/ui/borrowck/mut-borrow-in-loop.rs similarity index 100% rename from src/test/ui/borrowck/mut-borrow-in-loop.rs rename to tests/ui/borrowck/mut-borrow-in-loop.rs diff --git a/src/test/ui/borrowck/mut-borrow-in-loop.stderr b/tests/ui/borrowck/mut-borrow-in-loop.stderr similarity index 100% rename from src/test/ui/borrowck/mut-borrow-in-loop.stderr rename to tests/ui/borrowck/mut-borrow-in-loop.stderr diff --git a/src/test/ui/borrowck/mut-borrow-of-mut-ref.rs b/tests/ui/borrowck/mut-borrow-of-mut-ref.rs similarity index 100% rename from src/test/ui/borrowck/mut-borrow-of-mut-ref.rs rename to tests/ui/borrowck/mut-borrow-of-mut-ref.rs diff --git a/src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr b/tests/ui/borrowck/mut-borrow-of-mut-ref.stderr similarity index 100% rename from src/test/ui/borrowck/mut-borrow-of-mut-ref.stderr rename to tests/ui/borrowck/mut-borrow-of-mut-ref.stderr diff --git a/src/test/ui/borrowck/mut-borrow-outside-loop.rs b/tests/ui/borrowck/mut-borrow-outside-loop.rs similarity index 100% rename from src/test/ui/borrowck/mut-borrow-outside-loop.rs rename to tests/ui/borrowck/mut-borrow-outside-loop.rs diff --git a/src/test/ui/borrowck/mut-borrow-outside-loop.stderr b/tests/ui/borrowck/mut-borrow-outside-loop.stderr similarity index 100% rename from src/test/ui/borrowck/mut-borrow-outside-loop.stderr rename to tests/ui/borrowck/mut-borrow-outside-loop.stderr diff --git a/src/test/ui/borrowck/mutability-errors.rs b/tests/ui/borrowck/mutability-errors.rs similarity index 100% rename from src/test/ui/borrowck/mutability-errors.rs rename to tests/ui/borrowck/mutability-errors.rs diff --git a/src/test/ui/borrowck/mutability-errors.stderr b/tests/ui/borrowck/mutability-errors.stderr similarity index 100% rename from src/test/ui/borrowck/mutability-errors.stderr rename to tests/ui/borrowck/mutability-errors.stderr diff --git a/src/test/ui/borrowck/or-patterns.rs b/tests/ui/borrowck/or-patterns.rs similarity index 100% rename from src/test/ui/borrowck/or-patterns.rs rename to tests/ui/borrowck/or-patterns.rs diff --git a/src/test/ui/borrowck/or-patterns.stderr b/tests/ui/borrowck/or-patterns.stderr similarity index 100% rename from src/test/ui/borrowck/or-patterns.stderr rename to tests/ui/borrowck/or-patterns.stderr diff --git a/src/test/ui/borrowck/promote-ref-mut-in-let-issue-46557.rs b/tests/ui/borrowck/promote-ref-mut-in-let-issue-46557.rs similarity index 100% rename from src/test/ui/borrowck/promote-ref-mut-in-let-issue-46557.rs rename to tests/ui/borrowck/promote-ref-mut-in-let-issue-46557.rs diff --git a/src/test/ui/borrowck/promote-ref-mut-in-let-issue-46557.stderr b/tests/ui/borrowck/promote-ref-mut-in-let-issue-46557.stderr similarity index 100% rename from src/test/ui/borrowck/promote-ref-mut-in-let-issue-46557.stderr rename to tests/ui/borrowck/promote-ref-mut-in-let-issue-46557.stderr diff --git a/src/test/ui/borrowck/reassignment_immutable_fields.rs b/tests/ui/borrowck/reassignment_immutable_fields.rs similarity index 100% rename from src/test/ui/borrowck/reassignment_immutable_fields.rs rename to tests/ui/borrowck/reassignment_immutable_fields.rs diff --git a/src/test/ui/borrowck/reassignment_immutable_fields.stderr b/tests/ui/borrowck/reassignment_immutable_fields.stderr similarity index 100% rename from src/test/ui/borrowck/reassignment_immutable_fields.stderr rename to tests/ui/borrowck/reassignment_immutable_fields.stderr diff --git a/src/test/ui/borrowck/reassignment_immutable_fields_overlapping.rs b/tests/ui/borrowck/reassignment_immutable_fields_overlapping.rs similarity index 100% rename from src/test/ui/borrowck/reassignment_immutable_fields_overlapping.rs rename to tests/ui/borrowck/reassignment_immutable_fields_overlapping.rs diff --git a/src/test/ui/borrowck/reassignment_immutable_fields_overlapping.stderr b/tests/ui/borrowck/reassignment_immutable_fields_overlapping.stderr similarity index 100% rename from src/test/ui/borrowck/reassignment_immutable_fields_overlapping.stderr rename to tests/ui/borrowck/reassignment_immutable_fields_overlapping.stderr diff --git a/src/test/ui/borrowck/reassignment_immutable_fields_twice.rs b/tests/ui/borrowck/reassignment_immutable_fields_twice.rs similarity index 100% rename from src/test/ui/borrowck/reassignment_immutable_fields_twice.rs rename to tests/ui/borrowck/reassignment_immutable_fields_twice.rs diff --git a/src/test/ui/borrowck/reassignment_immutable_fields_twice.stderr b/tests/ui/borrowck/reassignment_immutable_fields_twice.stderr similarity index 100% rename from src/test/ui/borrowck/reassignment_immutable_fields_twice.stderr rename to tests/ui/borrowck/reassignment_immutable_fields_twice.stderr diff --git a/src/test/ui/borrowck/reborrow-sugg-move-then-borrow.rs b/tests/ui/borrowck/reborrow-sugg-move-then-borrow.rs similarity index 100% rename from src/test/ui/borrowck/reborrow-sugg-move-then-borrow.rs rename to tests/ui/borrowck/reborrow-sugg-move-then-borrow.rs diff --git a/src/test/ui/borrowck/reborrow-sugg-move-then-borrow.stderr b/tests/ui/borrowck/reborrow-sugg-move-then-borrow.stderr similarity index 100% rename from src/test/ui/borrowck/reborrow-sugg-move-then-borrow.stderr rename to tests/ui/borrowck/reborrow-sugg-move-then-borrow.stderr diff --git a/src/test/ui/borrowck/regions-bound-missing-bound-in-impl.rs b/tests/ui/borrowck/regions-bound-missing-bound-in-impl.rs similarity index 100% rename from src/test/ui/borrowck/regions-bound-missing-bound-in-impl.rs rename to tests/ui/borrowck/regions-bound-missing-bound-in-impl.rs diff --git a/src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr b/tests/ui/borrowck/regions-bound-missing-bound-in-impl.stderr similarity index 100% rename from src/test/ui/borrowck/regions-bound-missing-bound-in-impl.stderr rename to tests/ui/borrowck/regions-bound-missing-bound-in-impl.stderr diff --git a/src/test/ui/borrowck/regions-escape-bound-fn-2.rs b/tests/ui/borrowck/regions-escape-bound-fn-2.rs similarity index 100% rename from src/test/ui/borrowck/regions-escape-bound-fn-2.rs rename to tests/ui/borrowck/regions-escape-bound-fn-2.rs diff --git a/src/test/ui/borrowck/regions-escape-bound-fn-2.stderr b/tests/ui/borrowck/regions-escape-bound-fn-2.stderr similarity index 100% rename from src/test/ui/borrowck/regions-escape-bound-fn-2.stderr rename to tests/ui/borrowck/regions-escape-bound-fn-2.stderr diff --git a/src/test/ui/borrowck/regions-escape-bound-fn.rs b/tests/ui/borrowck/regions-escape-bound-fn.rs similarity index 100% rename from src/test/ui/borrowck/regions-escape-bound-fn.rs rename to tests/ui/borrowck/regions-escape-bound-fn.rs diff --git a/src/test/ui/borrowck/regions-escape-bound-fn.stderr b/tests/ui/borrowck/regions-escape-bound-fn.stderr similarity index 100% rename from src/test/ui/borrowck/regions-escape-bound-fn.stderr rename to tests/ui/borrowck/regions-escape-bound-fn.stderr diff --git a/src/test/ui/borrowck/regions-escape-unboxed-closure.rs b/tests/ui/borrowck/regions-escape-unboxed-closure.rs similarity index 100% rename from src/test/ui/borrowck/regions-escape-unboxed-closure.rs rename to tests/ui/borrowck/regions-escape-unboxed-closure.rs diff --git a/src/test/ui/borrowck/regions-escape-unboxed-closure.stderr b/tests/ui/borrowck/regions-escape-unboxed-closure.stderr similarity index 100% rename from src/test/ui/borrowck/regions-escape-unboxed-closure.stderr rename to tests/ui/borrowck/regions-escape-unboxed-closure.stderr diff --git a/src/test/ui/borrowck/return-local-binding-from-desugaring.rs b/tests/ui/borrowck/return-local-binding-from-desugaring.rs similarity index 100% rename from src/test/ui/borrowck/return-local-binding-from-desugaring.rs rename to tests/ui/borrowck/return-local-binding-from-desugaring.rs diff --git a/src/test/ui/borrowck/return-local-binding-from-desugaring.stderr b/tests/ui/borrowck/return-local-binding-from-desugaring.stderr similarity index 100% rename from src/test/ui/borrowck/return-local-binding-from-desugaring.stderr rename to tests/ui/borrowck/return-local-binding-from-desugaring.stderr diff --git a/src/test/ui/borrowck/slice-index-bounds-check-invalidation.rs b/tests/ui/borrowck/slice-index-bounds-check-invalidation.rs similarity index 100% rename from src/test/ui/borrowck/slice-index-bounds-check-invalidation.rs rename to tests/ui/borrowck/slice-index-bounds-check-invalidation.rs diff --git a/src/test/ui/borrowck/slice-index-bounds-check-invalidation.stderr b/tests/ui/borrowck/slice-index-bounds-check-invalidation.stderr similarity index 100% rename from src/test/ui/borrowck/slice-index-bounds-check-invalidation.stderr rename to tests/ui/borrowck/slice-index-bounds-check-invalidation.stderr diff --git a/src/test/ui/borrowck/suggest-as-ref-on-mut-closure.rs b/tests/ui/borrowck/suggest-as-ref-on-mut-closure.rs similarity index 100% rename from src/test/ui/borrowck/suggest-as-ref-on-mut-closure.rs rename to tests/ui/borrowck/suggest-as-ref-on-mut-closure.rs diff --git a/src/test/ui/borrowck/suggest-as-ref-on-mut-closure.stderr b/tests/ui/borrowck/suggest-as-ref-on-mut-closure.stderr similarity index 100% rename from src/test/ui/borrowck/suggest-as-ref-on-mut-closure.stderr rename to tests/ui/borrowck/suggest-as-ref-on-mut-closure.stderr diff --git a/src/test/ui/borrowck/suggest-assign-rvalue.rs b/tests/ui/borrowck/suggest-assign-rvalue.rs similarity index 100% rename from src/test/ui/borrowck/suggest-assign-rvalue.rs rename to tests/ui/borrowck/suggest-assign-rvalue.rs diff --git a/src/test/ui/borrowck/suggest-assign-rvalue.stderr b/tests/ui/borrowck/suggest-assign-rvalue.stderr similarity index 100% rename from src/test/ui/borrowck/suggest-assign-rvalue.stderr rename to tests/ui/borrowck/suggest-assign-rvalue.stderr diff --git a/src/test/ui/borrowck/suggest-local-var-double-mut.rs b/tests/ui/borrowck/suggest-local-var-double-mut.rs similarity index 100% rename from src/test/ui/borrowck/suggest-local-var-double-mut.rs rename to tests/ui/borrowck/suggest-local-var-double-mut.rs diff --git a/src/test/ui/borrowck/suggest-local-var-double-mut.stderr b/tests/ui/borrowck/suggest-local-var-double-mut.stderr similarity index 100% rename from src/test/ui/borrowck/suggest-local-var-double-mut.stderr rename to tests/ui/borrowck/suggest-local-var-double-mut.stderr diff --git a/src/test/ui/borrowck/suggest-local-var-for-vector.rs b/tests/ui/borrowck/suggest-local-var-for-vector.rs similarity index 100% rename from src/test/ui/borrowck/suggest-local-var-for-vector.rs rename to tests/ui/borrowck/suggest-local-var-for-vector.rs diff --git a/src/test/ui/borrowck/suggest-local-var-for-vector.stderr b/tests/ui/borrowck/suggest-local-var-for-vector.stderr similarity index 100% rename from src/test/ui/borrowck/suggest-local-var-for-vector.stderr rename to tests/ui/borrowck/suggest-local-var-for-vector.stderr diff --git a/src/test/ui/borrowck/suggest-local-var-imm-and-mut.rs b/tests/ui/borrowck/suggest-local-var-imm-and-mut.rs similarity index 100% rename from src/test/ui/borrowck/suggest-local-var-imm-and-mut.rs rename to tests/ui/borrowck/suggest-local-var-imm-and-mut.rs diff --git a/src/test/ui/borrowck/suggest-local-var-imm-and-mut.stderr b/tests/ui/borrowck/suggest-local-var-imm-and-mut.stderr similarity index 100% rename from src/test/ui/borrowck/suggest-local-var-imm-and-mut.stderr rename to tests/ui/borrowck/suggest-local-var-imm-and-mut.stderr diff --git a/src/test/ui/borrowck/suggest-storing-local-var-for-vector.rs b/tests/ui/borrowck/suggest-storing-local-var-for-vector.rs similarity index 100% rename from src/test/ui/borrowck/suggest-storing-local-var-for-vector.rs rename to tests/ui/borrowck/suggest-storing-local-var-for-vector.rs diff --git a/src/test/ui/borrowck/suggest-storing-local-var-for-vector.stderr b/tests/ui/borrowck/suggest-storing-local-var-for-vector.stderr similarity index 100% rename from src/test/ui/borrowck/suggest-storing-local-var-for-vector.stderr rename to tests/ui/borrowck/suggest-storing-local-var-for-vector.stderr diff --git a/src/test/ui/borrowck/two-phase-across-loop.rs b/tests/ui/borrowck/two-phase-across-loop.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-across-loop.rs rename to tests/ui/borrowck/two-phase-across-loop.rs diff --git a/src/test/ui/borrowck/two-phase-across-loop.stderr b/tests/ui/borrowck/two-phase-across-loop.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-across-loop.stderr rename to tests/ui/borrowck/two-phase-across-loop.stderr diff --git a/src/test/ui/borrowck/two-phase-activation-sharing-interference.nll_target.stderr b/tests/ui/borrowck/two-phase-activation-sharing-interference.nll_target.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-activation-sharing-interference.nll_target.stderr rename to tests/ui/borrowck/two-phase-activation-sharing-interference.nll_target.stderr diff --git a/src/test/ui/borrowck/two-phase-activation-sharing-interference.rs b/tests/ui/borrowck/two-phase-activation-sharing-interference.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-activation-sharing-interference.rs rename to tests/ui/borrowck/two-phase-activation-sharing-interference.rs diff --git a/src/test/ui/borrowck/two-phase-allow-access-during-reservation.nll_target.stderr b/tests/ui/borrowck/two-phase-allow-access-during-reservation.nll_target.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-allow-access-during-reservation.nll_target.stderr rename to tests/ui/borrowck/two-phase-allow-access-during-reservation.nll_target.stderr diff --git a/src/test/ui/borrowck/two-phase-allow-access-during-reservation.rs b/tests/ui/borrowck/two-phase-allow-access-during-reservation.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-allow-access-during-reservation.rs rename to tests/ui/borrowck/two-phase-allow-access-during-reservation.rs diff --git a/src/test/ui/borrowck/two-phase-baseline.rs b/tests/ui/borrowck/two-phase-baseline.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-baseline.rs rename to tests/ui/borrowck/two-phase-baseline.rs diff --git a/src/test/ui/borrowck/two-phase-bin-ops.rs b/tests/ui/borrowck/two-phase-bin-ops.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-bin-ops.rs rename to tests/ui/borrowck/two-phase-bin-ops.rs diff --git a/src/test/ui/borrowck/two-phase-cannot-nest-mut-self-calls.rs b/tests/ui/borrowck/two-phase-cannot-nest-mut-self-calls.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-cannot-nest-mut-self-calls.rs rename to tests/ui/borrowck/two-phase-cannot-nest-mut-self-calls.rs diff --git a/src/test/ui/borrowck/two-phase-cannot-nest-mut-self-calls.stderr b/tests/ui/borrowck/two-phase-cannot-nest-mut-self-calls.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-cannot-nest-mut-self-calls.stderr rename to tests/ui/borrowck/two-phase-cannot-nest-mut-self-calls.stderr diff --git a/src/test/ui/borrowck/two-phase-control-flow-split-before-activation.rs b/tests/ui/borrowck/two-phase-control-flow-split-before-activation.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-control-flow-split-before-activation.rs rename to tests/ui/borrowck/two-phase-control-flow-split-before-activation.rs diff --git a/src/test/ui/borrowck/two-phase-method-receivers.rs b/tests/ui/borrowck/two-phase-method-receivers.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-method-receivers.rs rename to tests/ui/borrowck/two-phase-method-receivers.rs diff --git a/src/test/ui/borrowck/two-phase-multi-mut.rs b/tests/ui/borrowck/two-phase-multi-mut.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-multi-mut.rs rename to tests/ui/borrowck/two-phase-multi-mut.rs diff --git a/src/test/ui/borrowck/two-phase-multi-mut.stderr b/tests/ui/borrowck/two-phase-multi-mut.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-multi-mut.stderr rename to tests/ui/borrowck/two-phase-multi-mut.stderr diff --git a/src/test/ui/borrowck/two-phase-multiple-activations.rs b/tests/ui/borrowck/two-phase-multiple-activations.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-multiple-activations.rs rename to tests/ui/borrowck/two-phase-multiple-activations.rs diff --git a/src/test/ui/borrowck/two-phase-nonrecv-autoref.base.stderr b/tests/ui/borrowck/two-phase-nonrecv-autoref.base.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-nonrecv-autoref.base.stderr rename to tests/ui/borrowck/two-phase-nonrecv-autoref.base.stderr diff --git a/src/test/ui/borrowck/two-phase-nonrecv-autoref.rs b/tests/ui/borrowck/two-phase-nonrecv-autoref.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-nonrecv-autoref.rs rename to tests/ui/borrowck/two-phase-nonrecv-autoref.rs diff --git a/src/test/ui/borrowck/two-phase-reservation-sharing-interference-2.rs b/tests/ui/borrowck/two-phase-reservation-sharing-interference-2.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-reservation-sharing-interference-2.rs rename to tests/ui/borrowck/two-phase-reservation-sharing-interference-2.rs diff --git a/src/test/ui/borrowck/two-phase-reservation-sharing-interference-2.stderr b/tests/ui/borrowck/two-phase-reservation-sharing-interference-2.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-reservation-sharing-interference-2.stderr rename to tests/ui/borrowck/two-phase-reservation-sharing-interference-2.stderr diff --git a/src/test/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr b/tests/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr rename to tests/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr diff --git a/src/test/ui/borrowck/two-phase-reservation-sharing-interference.rs b/tests/ui/borrowck/two-phase-reservation-sharing-interference.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-reservation-sharing-interference.rs rename to tests/ui/borrowck/two-phase-reservation-sharing-interference.rs diff --git a/src/test/ui/borrowck/two-phase-sneaky.rs b/tests/ui/borrowck/two-phase-sneaky.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-sneaky.rs rename to tests/ui/borrowck/two-phase-sneaky.rs diff --git a/src/test/ui/borrowck/two-phase-sneaky.stderr b/tests/ui/borrowck/two-phase-sneaky.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-sneaky.stderr rename to tests/ui/borrowck/two-phase-sneaky.stderr diff --git a/src/test/ui/borrowck/two-phase-surprise-no-conflict.rs b/tests/ui/borrowck/two-phase-surprise-no-conflict.rs similarity index 100% rename from src/test/ui/borrowck/two-phase-surprise-no-conflict.rs rename to tests/ui/borrowck/two-phase-surprise-no-conflict.rs diff --git a/src/test/ui/borrowck/two-phase-surprise-no-conflict.stderr b/tests/ui/borrowck/two-phase-surprise-no-conflict.stderr similarity index 100% rename from src/test/ui/borrowck/two-phase-surprise-no-conflict.stderr rename to tests/ui/borrowck/two-phase-surprise-no-conflict.stderr diff --git a/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.fixed b/tests/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.fixed similarity index 100% rename from src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.fixed rename to tests/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.fixed diff --git a/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.rs b/tests/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.rs similarity index 100% rename from src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.rs rename to tests/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.rs diff --git a/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr b/tests/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr similarity index 100% rename from src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr rename to tests/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr diff --git a/src/test/ui/bounds-lifetime.rs b/tests/ui/bounds-lifetime.rs similarity index 100% rename from src/test/ui/bounds-lifetime.rs rename to tests/ui/bounds-lifetime.rs diff --git a/src/test/ui/bounds-lifetime.stderr b/tests/ui/bounds-lifetime.stderr similarity index 100% rename from src/test/ui/bounds-lifetime.stderr rename to tests/ui/bounds-lifetime.stderr diff --git a/src/test/ui/box/alloc-unstable-fail.rs b/tests/ui/box/alloc-unstable-fail.rs similarity index 100% rename from src/test/ui/box/alloc-unstable-fail.rs rename to tests/ui/box/alloc-unstable-fail.rs diff --git a/src/test/ui/box/alloc-unstable-fail.stderr b/tests/ui/box/alloc-unstable-fail.stderr similarity index 100% rename from src/test/ui/box/alloc-unstable-fail.stderr rename to tests/ui/box/alloc-unstable-fail.stderr diff --git a/src/test/ui/box/alloc-unstable.rs b/tests/ui/box/alloc-unstable.rs similarity index 100% rename from src/test/ui/box/alloc-unstable.rs rename to tests/ui/box/alloc-unstable.rs diff --git a/src/test/ui/box/into-boxed-slice-fail.rs b/tests/ui/box/into-boxed-slice-fail.rs similarity index 100% rename from src/test/ui/box/into-boxed-slice-fail.rs rename to tests/ui/box/into-boxed-slice-fail.rs diff --git a/src/test/ui/box/into-boxed-slice-fail.stderr b/tests/ui/box/into-boxed-slice-fail.stderr similarity index 100% rename from src/test/ui/box/into-boxed-slice-fail.stderr rename to tests/ui/box/into-boxed-slice-fail.stderr diff --git a/src/test/ui/box/into-boxed-slice.rs b/tests/ui/box/into-boxed-slice.rs similarity index 100% rename from src/test/ui/box/into-boxed-slice.rs rename to tests/ui/box/into-boxed-slice.rs diff --git a/src/test/ui/box/issue-82446.rs b/tests/ui/box/issue-82446.rs similarity index 100% rename from src/test/ui/box/issue-82446.rs rename to tests/ui/box/issue-82446.rs diff --git a/src/test/ui/box/issue-82446.stderr b/tests/ui/box/issue-82446.stderr similarity index 100% rename from src/test/ui/box/issue-82446.stderr rename to tests/ui/box/issue-82446.stderr diff --git a/src/test/ui/box/issue-95036.rs b/tests/ui/box/issue-95036.rs similarity index 100% rename from src/test/ui/box/issue-95036.rs rename to tests/ui/box/issue-95036.rs diff --git a/src/test/ui/box/large-allocator-ice.rs b/tests/ui/box/large-allocator-ice.rs similarity index 100% rename from src/test/ui/box/large-allocator-ice.rs rename to tests/ui/box/large-allocator-ice.rs diff --git a/src/test/ui/box/leak-alloc.rs b/tests/ui/box/leak-alloc.rs similarity index 100% rename from src/test/ui/box/leak-alloc.rs rename to tests/ui/box/leak-alloc.rs diff --git a/src/test/ui/box/leak-alloc.stderr b/tests/ui/box/leak-alloc.stderr similarity index 100% rename from src/test/ui/box/leak-alloc.stderr rename to tests/ui/box/leak-alloc.stderr diff --git a/src/test/ui/box/new-box-syntax.rs b/tests/ui/box/new-box-syntax.rs similarity index 100% rename from src/test/ui/box/new-box-syntax.rs rename to tests/ui/box/new-box-syntax.rs diff --git a/src/test/ui/box/new-box.rs b/tests/ui/box/new-box.rs similarity index 100% rename from src/test/ui/box/new-box.rs rename to tests/ui/box/new-box.rs diff --git a/src/test/ui/box/new.rs b/tests/ui/box/new.rs similarity index 100% rename from src/test/ui/box/new.rs rename to tests/ui/box/new.rs diff --git a/src/test/ui/box/thin_align.rs b/tests/ui/box/thin_align.rs similarity index 100% rename from src/test/ui/box/thin_align.rs rename to tests/ui/box/thin_align.rs diff --git a/src/test/ui/box/thin_drop.rs b/tests/ui/box/thin_drop.rs similarity index 100% rename from src/test/ui/box/thin_drop.rs rename to tests/ui/box/thin_drop.rs diff --git a/src/test/ui/box/thin_new.rs b/tests/ui/box/thin_new.rs similarity index 100% rename from src/test/ui/box/thin_new.rs rename to tests/ui/box/thin_new.rs diff --git a/src/test/ui/box/thin_zst.rs b/tests/ui/box/thin_zst.rs similarity index 100% rename from src/test/ui/box/thin_zst.rs rename to tests/ui/box/thin_zst.rs diff --git a/src/test/ui/break-diverging-value.rs b/tests/ui/break-diverging-value.rs similarity index 100% rename from src/test/ui/break-diverging-value.rs rename to tests/ui/break-diverging-value.rs diff --git a/src/test/ui/break-diverging-value.stderr b/tests/ui/break-diverging-value.stderr similarity index 100% rename from src/test/ui/break-diverging-value.stderr rename to tests/ui/break-diverging-value.stderr diff --git a/src/test/ui/btreemap/btreemap-index-mut.rs b/tests/ui/btreemap/btreemap-index-mut.rs similarity index 100% rename from src/test/ui/btreemap/btreemap-index-mut.rs rename to tests/ui/btreemap/btreemap-index-mut.rs diff --git a/src/test/ui/btreemap/btreemap-index-mut.stderr b/tests/ui/btreemap/btreemap-index-mut.stderr similarity index 100% rename from src/test/ui/btreemap/btreemap-index-mut.stderr rename to tests/ui/btreemap/btreemap-index-mut.stderr diff --git a/src/test/ui/btreemap/btreemap_dropck.rs b/tests/ui/btreemap/btreemap_dropck.rs similarity index 100% rename from src/test/ui/btreemap/btreemap_dropck.rs rename to tests/ui/btreemap/btreemap_dropck.rs diff --git a/src/test/ui/btreemap/btreemap_dropck.stderr b/tests/ui/btreemap/btreemap_dropck.stderr similarity index 100% rename from src/test/ui/btreemap/btreemap_dropck.stderr rename to tests/ui/btreemap/btreemap_dropck.stderr diff --git a/src/test/ui/btreemap/btreemap_into_iterator_lifetime.rs b/tests/ui/btreemap/btreemap_into_iterator_lifetime.rs similarity index 100% rename from src/test/ui/btreemap/btreemap_into_iterator_lifetime.rs rename to tests/ui/btreemap/btreemap_into_iterator_lifetime.rs diff --git a/src/test/ui/builtin-clone-unwind.rs b/tests/ui/builtin-clone-unwind.rs similarity index 100% rename from src/test/ui/builtin-clone-unwind.rs rename to tests/ui/builtin-clone-unwind.rs diff --git a/src/test/ui/builtin-superkinds/auxiliary/trait_superkinds_in_metadata.rs b/tests/ui/builtin-superkinds/auxiliary/trait_superkinds_in_metadata.rs similarity index 100% rename from src/test/ui/builtin-superkinds/auxiliary/trait_superkinds_in_metadata.rs rename to tests/ui/builtin-superkinds/auxiliary/trait_superkinds_in_metadata.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-transitive.rs b/tests/ui/builtin-superkinds/builtin-superkinds-capabilities-transitive.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-transitive.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-capabilities-transitive.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-xc.rs b/tests/ui/builtin-superkinds/builtin-superkinds-capabilities-xc.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-capabilities-xc.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-capabilities-xc.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-capabilities.rs b/tests/ui/builtin-superkinds/builtin-superkinds-capabilities.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-capabilities.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-capabilities.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.rs b/tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr rename to tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.rs b/tests/ui/builtin-superkinds/builtin-superkinds-in-metadata.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-in-metadata.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr rename to tests/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata2.rs b/tests/ui/builtin-superkinds/builtin-superkinds-in-metadata2.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata2.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-in-metadata2.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-phantom-typaram.rs b/tests/ui/builtin-superkinds/builtin-superkinds-phantom-typaram.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-phantom-typaram.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-phantom-typaram.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-self-type.rs b/tests/ui/builtin-superkinds/builtin-superkinds-self-type.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-self-type.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-self-type.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-self-type.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-self-type.stderr rename to tests/ui/builtin-superkinds/builtin-superkinds-self-type.stderr diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs b/tests/ui/builtin-superkinds/builtin-superkinds-simple.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-simple.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-simple.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-simple.stderr similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-simple.stderr rename to tests/ui/builtin-superkinds/builtin-superkinds-simple.stderr diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-simple2.rs b/tests/ui/builtin-superkinds/builtin-superkinds-simple2.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-simple2.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-simple2.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs b/tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr b/tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr rename to tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr diff --git a/src/test/ui/builtin-superkinds/builtin-superkinds-typaram.rs b/tests/ui/builtin-superkinds/builtin-superkinds-typaram.rs similarity index 100% rename from src/test/ui/builtin-superkinds/builtin-superkinds-typaram.rs rename to tests/ui/builtin-superkinds/builtin-superkinds-typaram.rs diff --git a/src/test/ui/by-move-pattern-binding.rs b/tests/ui/by-move-pattern-binding.rs similarity index 100% rename from src/test/ui/by-move-pattern-binding.rs rename to tests/ui/by-move-pattern-binding.rs diff --git a/src/test/ui/by-move-pattern-binding.stderr b/tests/ui/by-move-pattern-binding.stderr similarity index 100% rename from src/test/ui/by-move-pattern-binding.stderr rename to tests/ui/by-move-pattern-binding.stderr diff --git a/src/test/ui/c-variadic/feature-gate-extended_varargs_abi_support.rs b/tests/ui/c-variadic/feature-gate-extended_varargs_abi_support.rs similarity index 100% rename from src/test/ui/c-variadic/feature-gate-extended_varargs_abi_support.rs rename to tests/ui/c-variadic/feature-gate-extended_varargs_abi_support.rs diff --git a/src/test/ui/c-variadic/feature-gate-extended_varargs_abi_support.stderr b/tests/ui/c-variadic/feature-gate-extended_varargs_abi_support.stderr similarity index 100% rename from src/test/ui/c-variadic/feature-gate-extended_varargs_abi_support.stderr rename to tests/ui/c-variadic/feature-gate-extended_varargs_abi_support.stderr diff --git a/src/test/ui/c-variadic/issue-32201.rs b/tests/ui/c-variadic/issue-32201.rs similarity index 100% rename from src/test/ui/c-variadic/issue-32201.rs rename to tests/ui/c-variadic/issue-32201.rs diff --git a/src/test/ui/c-variadic/issue-32201.stderr b/tests/ui/c-variadic/issue-32201.stderr similarity index 100% rename from src/test/ui/c-variadic/issue-32201.stderr rename to tests/ui/c-variadic/issue-32201.stderr diff --git a/src/test/ui/c-variadic/issue-86053-1.rs b/tests/ui/c-variadic/issue-86053-1.rs similarity index 100% rename from src/test/ui/c-variadic/issue-86053-1.rs rename to tests/ui/c-variadic/issue-86053-1.rs diff --git a/src/test/ui/c-variadic/issue-86053-1.stderr b/tests/ui/c-variadic/issue-86053-1.stderr similarity index 100% rename from src/test/ui/c-variadic/issue-86053-1.stderr rename to tests/ui/c-variadic/issue-86053-1.stderr diff --git a/src/test/ui/c-variadic/issue-86053-2.rs b/tests/ui/c-variadic/issue-86053-2.rs similarity index 100% rename from src/test/ui/c-variadic/issue-86053-2.rs rename to tests/ui/c-variadic/issue-86053-2.rs diff --git a/src/test/ui/c-variadic/issue-86053-2.stderr b/tests/ui/c-variadic/issue-86053-2.stderr similarity index 100% rename from src/test/ui/c-variadic/issue-86053-2.stderr rename to tests/ui/c-variadic/issue-86053-2.stderr diff --git a/src/test/ui/c-variadic/variadic-ffi-1.rs b/tests/ui/c-variadic/variadic-ffi-1.rs similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-1.rs rename to tests/ui/c-variadic/variadic-ffi-1.rs diff --git a/src/test/ui/c-variadic/variadic-ffi-1.stderr b/tests/ui/c-variadic/variadic-ffi-1.stderr similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-1.stderr rename to tests/ui/c-variadic/variadic-ffi-1.stderr diff --git a/src/test/ui/c-variadic/variadic-ffi-2.rs b/tests/ui/c-variadic/variadic-ffi-2.rs similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-2.rs rename to tests/ui/c-variadic/variadic-ffi-2.rs diff --git a/src/test/ui/c-variadic/variadic-ffi-2.stderr b/tests/ui/c-variadic/variadic-ffi-2.stderr similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-2.stderr rename to tests/ui/c-variadic/variadic-ffi-2.stderr diff --git a/src/test/ui/c-variadic/variadic-ffi-4.rs b/tests/ui/c-variadic/variadic-ffi-4.rs similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-4.rs rename to tests/ui/c-variadic/variadic-ffi-4.rs diff --git a/src/test/ui/c-variadic/variadic-ffi-4.stderr b/tests/ui/c-variadic/variadic-ffi-4.stderr similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-4.stderr rename to tests/ui/c-variadic/variadic-ffi-4.stderr diff --git a/src/test/ui/c-variadic/variadic-ffi-6.rs b/tests/ui/c-variadic/variadic-ffi-6.rs similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-6.rs rename to tests/ui/c-variadic/variadic-ffi-6.rs diff --git a/src/test/ui/c-variadic/variadic-ffi-6.stderr b/tests/ui/c-variadic/variadic-ffi-6.stderr similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-6.stderr rename to tests/ui/c-variadic/variadic-ffi-6.stderr diff --git a/src/test/ui/c-variadic/variadic-ffi-no-fixed-args.rs b/tests/ui/c-variadic/variadic-ffi-no-fixed-args.rs similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-no-fixed-args.rs rename to tests/ui/c-variadic/variadic-ffi-no-fixed-args.rs diff --git a/src/test/ui/c-variadic/variadic-ffi-no-fixed-args.stderr b/tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr similarity index 100% rename from src/test/ui/c-variadic/variadic-ffi-no-fixed-args.stderr rename to tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr diff --git a/src/test/ui/c-variadic/variadic-unreachable-arg-error.rs b/tests/ui/c-variadic/variadic-unreachable-arg-error.rs similarity index 100% rename from src/test/ui/c-variadic/variadic-unreachable-arg-error.rs rename to tests/ui/c-variadic/variadic-unreachable-arg-error.rs diff --git a/src/test/ui/can-copy-pod.rs b/tests/ui/can-copy-pod.rs similarity index 100% rename from src/test/ui/can-copy-pod.rs rename to tests/ui/can-copy-pod.rs diff --git a/src/test/ui/cancel-clean-via-immediate-rvalue-ref.rs b/tests/ui/cancel-clean-via-immediate-rvalue-ref.rs similarity index 100% rename from src/test/ui/cancel-clean-via-immediate-rvalue-ref.rs rename to tests/ui/cancel-clean-via-immediate-rvalue-ref.rs diff --git a/src/test/ui/cannot-mutate-captured-non-mut-var.rs b/tests/ui/cannot-mutate-captured-non-mut-var.rs similarity index 100% rename from src/test/ui/cannot-mutate-captured-non-mut-var.rs rename to tests/ui/cannot-mutate-captured-non-mut-var.rs diff --git a/src/test/ui/cannot-mutate-captured-non-mut-var.stderr b/tests/ui/cannot-mutate-captured-non-mut-var.stderr similarity index 100% rename from src/test/ui/cannot-mutate-captured-non-mut-var.stderr rename to tests/ui/cannot-mutate-captured-non-mut-var.stderr diff --git a/src/test/ui/capture1.rs b/tests/ui/capture1.rs similarity index 100% rename from src/test/ui/capture1.rs rename to tests/ui/capture1.rs diff --git a/src/test/ui/capture1.stderr b/tests/ui/capture1.stderr similarity index 100% rename from src/test/ui/capture1.stderr rename to tests/ui/capture1.stderr diff --git a/src/test/ui/cast/cast-as-bool.rs b/tests/ui/cast/cast-as-bool.rs similarity index 100% rename from src/test/ui/cast/cast-as-bool.rs rename to tests/ui/cast/cast-as-bool.rs diff --git a/src/test/ui/cast/cast-as-bool.stderr b/tests/ui/cast/cast-as-bool.stderr similarity index 100% rename from src/test/ui/cast/cast-as-bool.stderr rename to tests/ui/cast/cast-as-bool.stderr diff --git a/src/test/ui/cast/cast-char.rs b/tests/ui/cast/cast-char.rs similarity index 100% rename from src/test/ui/cast/cast-char.rs rename to tests/ui/cast/cast-char.rs diff --git a/src/test/ui/cast/cast-char.stderr b/tests/ui/cast/cast-char.stderr similarity index 100% rename from src/test/ui/cast/cast-char.stderr rename to tests/ui/cast/cast-char.stderr diff --git a/src/test/ui/cast/cast-does-fallback.rs b/tests/ui/cast/cast-does-fallback.rs similarity index 100% rename from src/test/ui/cast/cast-does-fallback.rs rename to tests/ui/cast/cast-does-fallback.rs diff --git a/src/test/ui/cast/cast-errors-issue-43825.rs b/tests/ui/cast/cast-errors-issue-43825.rs similarity index 100% rename from src/test/ui/cast/cast-errors-issue-43825.rs rename to tests/ui/cast/cast-errors-issue-43825.rs diff --git a/src/test/ui/cast/cast-errors-issue-43825.stderr b/tests/ui/cast/cast-errors-issue-43825.stderr similarity index 100% rename from src/test/ui/cast/cast-errors-issue-43825.stderr rename to tests/ui/cast/cast-errors-issue-43825.stderr diff --git a/src/test/ui/cast/cast-from-nil.rs b/tests/ui/cast/cast-from-nil.rs similarity index 100% rename from src/test/ui/cast/cast-from-nil.rs rename to tests/ui/cast/cast-from-nil.rs diff --git a/src/test/ui/cast/cast-from-nil.stderr b/tests/ui/cast/cast-from-nil.stderr similarity index 100% rename from src/test/ui/cast/cast-from-nil.stderr rename to tests/ui/cast/cast-from-nil.stderr diff --git a/src/test/ui/cast/cast-int-to-char.rs b/tests/ui/cast/cast-int-to-char.rs similarity index 100% rename from src/test/ui/cast/cast-int-to-char.rs rename to tests/ui/cast/cast-int-to-char.rs diff --git a/src/test/ui/cast/cast-int-to-char.stderr b/tests/ui/cast/cast-int-to-char.stderr similarity index 100% rename from src/test/ui/cast/cast-int-to-char.stderr rename to tests/ui/cast/cast-int-to-char.stderr diff --git a/src/test/ui/cast/cast-macro-lhs.rs b/tests/ui/cast/cast-macro-lhs.rs similarity index 100% rename from src/test/ui/cast/cast-macro-lhs.rs rename to tests/ui/cast/cast-macro-lhs.rs diff --git a/src/test/ui/cast/cast-macro-lhs.stderr b/tests/ui/cast/cast-macro-lhs.stderr similarity index 100% rename from src/test/ui/cast/cast-macro-lhs.stderr rename to tests/ui/cast/cast-macro-lhs.stderr diff --git a/src/test/ui/cast/cast-pointee-projection.rs b/tests/ui/cast/cast-pointee-projection.rs similarity index 100% rename from src/test/ui/cast/cast-pointee-projection.rs rename to tests/ui/cast/cast-pointee-projection.rs diff --git a/src/test/ui/cast/cast-region-to-uint.rs b/tests/ui/cast/cast-region-to-uint.rs similarity index 100% rename from src/test/ui/cast/cast-region-to-uint.rs rename to tests/ui/cast/cast-region-to-uint.rs diff --git a/src/test/ui/cast/cast-rfc0401-2.rs b/tests/ui/cast/cast-rfc0401-2.rs similarity index 100% rename from src/test/ui/cast/cast-rfc0401-2.rs rename to tests/ui/cast/cast-rfc0401-2.rs diff --git a/src/test/ui/cast/cast-rfc0401-2.stderr b/tests/ui/cast/cast-rfc0401-2.stderr similarity index 100% rename from src/test/ui/cast/cast-rfc0401-2.stderr rename to tests/ui/cast/cast-rfc0401-2.stderr diff --git a/src/test/ui/cast/cast-rfc0401-vtable-kinds.rs b/tests/ui/cast/cast-rfc0401-vtable-kinds.rs similarity index 100% rename from src/test/ui/cast/cast-rfc0401-vtable-kinds.rs rename to tests/ui/cast/cast-rfc0401-vtable-kinds.rs diff --git a/src/test/ui/cast/cast-rfc0401.rs b/tests/ui/cast/cast-rfc0401.rs similarity index 100% rename from src/test/ui/cast/cast-rfc0401.rs rename to tests/ui/cast/cast-rfc0401.rs diff --git a/src/test/ui/cast/cast-to-bare-fn.rs b/tests/ui/cast/cast-to-bare-fn.rs similarity index 100% rename from src/test/ui/cast/cast-to-bare-fn.rs rename to tests/ui/cast/cast-to-bare-fn.rs diff --git a/src/test/ui/cast/cast-to-bare-fn.stderr b/tests/ui/cast/cast-to-bare-fn.stderr similarity index 100% rename from src/test/ui/cast/cast-to-bare-fn.stderr rename to tests/ui/cast/cast-to-bare-fn.stderr diff --git a/src/test/ui/cast/cast-to-infer-ty.rs b/tests/ui/cast/cast-to-infer-ty.rs similarity index 100% rename from src/test/ui/cast/cast-to-infer-ty.rs rename to tests/ui/cast/cast-to-infer-ty.rs diff --git a/src/test/ui/cast/cast-to-nil.rs b/tests/ui/cast/cast-to-nil.rs similarity index 100% rename from src/test/ui/cast/cast-to-nil.rs rename to tests/ui/cast/cast-to-nil.rs diff --git a/src/test/ui/cast/cast-to-nil.stderr b/tests/ui/cast/cast-to-nil.stderr similarity index 100% rename from src/test/ui/cast/cast-to-nil.stderr rename to tests/ui/cast/cast-to-nil.stderr diff --git a/src/test/ui/cast/cast-to-unsized-trait-object-suggestion.rs b/tests/ui/cast/cast-to-unsized-trait-object-suggestion.rs similarity index 100% rename from src/test/ui/cast/cast-to-unsized-trait-object-suggestion.rs rename to tests/ui/cast/cast-to-unsized-trait-object-suggestion.rs diff --git a/src/test/ui/cast/cast-to-unsized-trait-object-suggestion.stderr b/tests/ui/cast/cast-to-unsized-trait-object-suggestion.stderr similarity index 100% rename from src/test/ui/cast/cast-to-unsized-trait-object-suggestion.stderr rename to tests/ui/cast/cast-to-unsized-trait-object-suggestion.stderr diff --git a/src/test/ui/cast/cast.rs b/tests/ui/cast/cast.rs similarity index 100% rename from src/test/ui/cast/cast.rs rename to tests/ui/cast/cast.rs diff --git a/src/test/ui/cast/casts-differing-anon.rs b/tests/ui/cast/casts-differing-anon.rs similarity index 100% rename from src/test/ui/cast/casts-differing-anon.rs rename to tests/ui/cast/casts-differing-anon.rs diff --git a/src/test/ui/cast/casts-differing-anon.stderr b/tests/ui/cast/casts-differing-anon.stderr similarity index 100% rename from src/test/ui/cast/casts-differing-anon.stderr rename to tests/ui/cast/casts-differing-anon.stderr diff --git a/src/test/ui/cast/casts-issue-46365.rs b/tests/ui/cast/casts-issue-46365.rs similarity index 100% rename from src/test/ui/cast/casts-issue-46365.rs rename to tests/ui/cast/casts-issue-46365.rs diff --git a/src/test/ui/cast/casts-issue-46365.stderr b/tests/ui/cast/casts-issue-46365.stderr similarity index 100% rename from src/test/ui/cast/casts-issue-46365.stderr rename to tests/ui/cast/casts-issue-46365.stderr diff --git a/src/test/ui/cast/codegen-object-shim.rs b/tests/ui/cast/codegen-object-shim.rs similarity index 100% rename from src/test/ui/cast/codegen-object-shim.rs rename to tests/ui/cast/codegen-object-shim.rs diff --git a/src/test/ui/cast/fat-ptr-cast-rpass.rs b/tests/ui/cast/fat-ptr-cast-rpass.rs similarity index 100% rename from src/test/ui/cast/fat-ptr-cast-rpass.rs rename to tests/ui/cast/fat-ptr-cast-rpass.rs diff --git a/src/test/ui/cast/fat-ptr-cast.rs b/tests/ui/cast/fat-ptr-cast.rs similarity index 100% rename from src/test/ui/cast/fat-ptr-cast.rs rename to tests/ui/cast/fat-ptr-cast.rs diff --git a/src/test/ui/cast/fat-ptr-cast.stderr b/tests/ui/cast/fat-ptr-cast.stderr similarity index 100% rename from src/test/ui/cast/fat-ptr-cast.stderr rename to tests/ui/cast/fat-ptr-cast.stderr diff --git a/src/test/ui/cast/issue-10991.rs b/tests/ui/cast/issue-10991.rs similarity index 100% rename from src/test/ui/cast/issue-10991.rs rename to tests/ui/cast/issue-10991.rs diff --git a/src/test/ui/cast/issue-10991.stderr b/tests/ui/cast/issue-10991.stderr similarity index 100% rename from src/test/ui/cast/issue-10991.stderr rename to tests/ui/cast/issue-10991.stderr diff --git a/src/test/ui/cast/issue-17444.rs b/tests/ui/cast/issue-17444.rs similarity index 100% rename from src/test/ui/cast/issue-17444.rs rename to tests/ui/cast/issue-17444.rs diff --git a/src/test/ui/cast/issue-17444.stderr b/tests/ui/cast/issue-17444.stderr similarity index 100% rename from src/test/ui/cast/issue-17444.stderr rename to tests/ui/cast/issue-17444.stderr diff --git a/src/test/ui/cast/issue-84213.fixed b/tests/ui/cast/issue-84213.fixed similarity index 100% rename from src/test/ui/cast/issue-84213.fixed rename to tests/ui/cast/issue-84213.fixed diff --git a/src/test/ui/cast/issue-84213.rs b/tests/ui/cast/issue-84213.rs similarity index 100% rename from src/test/ui/cast/issue-84213.rs rename to tests/ui/cast/issue-84213.rs diff --git a/src/test/ui/cast/issue-84213.stderr b/tests/ui/cast/issue-84213.stderr similarity index 100% rename from src/test/ui/cast/issue-84213.stderr rename to tests/ui/cast/issue-84213.stderr diff --git a/src/test/ui/cast/issue-85586.rs b/tests/ui/cast/issue-85586.rs similarity index 100% rename from src/test/ui/cast/issue-85586.rs rename to tests/ui/cast/issue-85586.rs diff --git a/src/test/ui/cast/issue-85586.stderr b/tests/ui/cast/issue-85586.stderr similarity index 100% rename from src/test/ui/cast/issue-85586.stderr rename to tests/ui/cast/issue-85586.stderr diff --git a/src/test/ui/cast/issue-88621.rs b/tests/ui/cast/issue-88621.rs similarity index 100% rename from src/test/ui/cast/issue-88621.rs rename to tests/ui/cast/issue-88621.rs diff --git a/src/test/ui/cast/issue-88621.stderr b/tests/ui/cast/issue-88621.stderr similarity index 100% rename from src/test/ui/cast/issue-88621.stderr rename to tests/ui/cast/issue-88621.stderr diff --git a/src/test/ui/cast/issue-89497.fixed b/tests/ui/cast/issue-89497.fixed similarity index 100% rename from src/test/ui/cast/issue-89497.fixed rename to tests/ui/cast/issue-89497.fixed diff --git a/src/test/ui/cast/issue-89497.rs b/tests/ui/cast/issue-89497.rs similarity index 100% rename from src/test/ui/cast/issue-89497.rs rename to tests/ui/cast/issue-89497.rs diff --git a/src/test/ui/cast/issue-89497.stderr b/tests/ui/cast/issue-89497.stderr similarity index 100% rename from src/test/ui/cast/issue-89497.stderr rename to tests/ui/cast/issue-89497.stderr diff --git a/src/test/ui/cast/supported-cast.rs b/tests/ui/cast/supported-cast.rs similarity index 100% rename from src/test/ui/cast/supported-cast.rs rename to tests/ui/cast/supported-cast.rs diff --git a/src/test/ui/cast/unsupported-cast.rs b/tests/ui/cast/unsupported-cast.rs similarity index 100% rename from src/test/ui/cast/unsupported-cast.rs rename to tests/ui/cast/unsupported-cast.rs diff --git a/src/test/ui/cast/unsupported-cast.stderr b/tests/ui/cast/unsupported-cast.stderr similarity index 100% rename from src/test/ui/cast/unsupported-cast.stderr rename to tests/ui/cast/unsupported-cast.stderr diff --git a/src/test/ui/catch-unwind-bang.rs b/tests/ui/catch-unwind-bang.rs similarity index 100% rename from src/test/ui/catch-unwind-bang.rs rename to tests/ui/catch-unwind-bang.rs diff --git a/src/test/ui/cenum_impl_drop_cast.rs b/tests/ui/cenum_impl_drop_cast.rs similarity index 100% rename from src/test/ui/cenum_impl_drop_cast.rs rename to tests/ui/cenum_impl_drop_cast.rs diff --git a/src/test/ui/cenum_impl_drop_cast.stderr b/tests/ui/cenum_impl_drop_cast.stderr similarity index 100% rename from src/test/ui/cenum_impl_drop_cast.stderr rename to tests/ui/cenum_impl_drop_cast.stderr diff --git a/src/test/ui/cfg/assume-incomplete-release/assume-incomplete.rs b/tests/ui/cfg/assume-incomplete-release/assume-incomplete.rs similarity index 100% rename from src/test/ui/cfg/assume-incomplete-release/assume-incomplete.rs rename to tests/ui/cfg/assume-incomplete-release/assume-incomplete.rs diff --git a/src/test/ui/cfg/assume-incomplete-release/auxiliary/ver-cfg-rel.rs b/tests/ui/cfg/assume-incomplete-release/auxiliary/ver-cfg-rel.rs similarity index 95% rename from src/test/ui/cfg/assume-incomplete-release/auxiliary/ver-cfg-rel.rs rename to tests/ui/cfg/assume-incomplete-release/auxiliary/ver-cfg-rel.rs index 6787527027e33..067c620f5fe85 100644 --- a/src/test/ui/cfg/assume-incomplete-release/auxiliary/ver-cfg-rel.rs +++ b/tests/ui/cfg/assume-incomplete-release/auxiliary/ver-cfg-rel.rs @@ -8,7 +8,7 @@ use proc_macro::{TokenStream, TokenTree as Tt}; use std::str::FromStr; // String containing the current version number of the tip, i.e. "1.41.2" -static VERSION_NUMBER: &str = include_str!("../../../../../version"); +static VERSION_NUMBER: &str = include_str!("../../../../../src/version"); #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] struct Version { diff --git a/src/test/ui/cfg/auxiliary/cfg_inner_static.rs b/tests/ui/cfg/auxiliary/cfg_inner_static.rs similarity index 100% rename from src/test/ui/cfg/auxiliary/cfg_inner_static.rs rename to tests/ui/cfg/auxiliary/cfg_inner_static.rs diff --git a/src/test/ui/cfg/cfg-attr-cfg.rs b/tests/ui/cfg/cfg-attr-cfg.rs similarity index 100% rename from src/test/ui/cfg/cfg-attr-cfg.rs rename to tests/ui/cfg/cfg-attr-cfg.rs diff --git a/src/test/ui/cfg/cfg-attr-crate.rs b/tests/ui/cfg/cfg-attr-crate.rs similarity index 100% rename from src/test/ui/cfg/cfg-attr-crate.rs rename to tests/ui/cfg/cfg-attr-crate.rs diff --git a/src/test/ui/cfg/cfg-family.rs b/tests/ui/cfg/cfg-family.rs similarity index 100% rename from src/test/ui/cfg/cfg-family.rs rename to tests/ui/cfg/cfg-family.rs diff --git a/src/test/ui/cfg/cfg-in-crate-1.rs b/tests/ui/cfg/cfg-in-crate-1.rs similarity index 100% rename from src/test/ui/cfg/cfg-in-crate-1.rs rename to tests/ui/cfg/cfg-in-crate-1.rs diff --git a/src/test/ui/cfg/cfg-macros-foo.rs b/tests/ui/cfg/cfg-macros-foo.rs similarity index 100% rename from src/test/ui/cfg/cfg-macros-foo.rs rename to tests/ui/cfg/cfg-macros-foo.rs diff --git a/src/test/ui/cfg/cfg-macros-notfoo.rs b/tests/ui/cfg/cfg-macros-notfoo.rs similarity index 100% rename from src/test/ui/cfg/cfg-macros-notfoo.rs rename to tests/ui/cfg/cfg-macros-notfoo.rs diff --git a/src/test/ui/cfg/cfg-match-arm.rs b/tests/ui/cfg/cfg-match-arm.rs similarity index 100% rename from src/test/ui/cfg/cfg-match-arm.rs rename to tests/ui/cfg/cfg-match-arm.rs diff --git a/src/test/ui/cfg/cfg-method-receiver-ok.rs b/tests/ui/cfg/cfg-method-receiver-ok.rs similarity index 100% rename from src/test/ui/cfg/cfg-method-receiver-ok.rs rename to tests/ui/cfg/cfg-method-receiver-ok.rs diff --git a/src/test/ui/cfg/cfg-method-receiver.rs b/tests/ui/cfg/cfg-method-receiver.rs similarity index 100% rename from src/test/ui/cfg/cfg-method-receiver.rs rename to tests/ui/cfg/cfg-method-receiver.rs diff --git a/src/test/ui/cfg/cfg-method-receiver.stderr b/tests/ui/cfg/cfg-method-receiver.stderr similarity index 100% rename from src/test/ui/cfg/cfg-method-receiver.stderr rename to tests/ui/cfg/cfg-method-receiver.stderr diff --git a/src/test/ui/cfg/cfg-panic-abort.rs b/tests/ui/cfg/cfg-panic-abort.rs similarity index 100% rename from src/test/ui/cfg/cfg-panic-abort.rs rename to tests/ui/cfg/cfg-panic-abort.rs diff --git a/src/test/ui/cfg/cfg-panic.rs b/tests/ui/cfg/cfg-panic.rs similarity index 100% rename from src/test/ui/cfg/cfg-panic.rs rename to tests/ui/cfg/cfg-panic.rs diff --git a/src/test/ui/cfg/cfg-path-error.rs b/tests/ui/cfg/cfg-path-error.rs similarity index 100% rename from src/test/ui/cfg/cfg-path-error.rs rename to tests/ui/cfg/cfg-path-error.rs diff --git a/src/test/ui/cfg/cfg-path-error.stderr b/tests/ui/cfg/cfg-path-error.stderr similarity index 100% rename from src/test/ui/cfg/cfg-path-error.stderr rename to tests/ui/cfg/cfg-path-error.stderr diff --git a/src/test/ui/cfg/cfg-target-abi.rs b/tests/ui/cfg/cfg-target-abi.rs similarity index 100% rename from src/test/ui/cfg/cfg-target-abi.rs rename to tests/ui/cfg/cfg-target-abi.rs diff --git a/src/test/ui/cfg/cfg-target-compact-errors.rs b/tests/ui/cfg/cfg-target-compact-errors.rs similarity index 100% rename from src/test/ui/cfg/cfg-target-compact-errors.rs rename to tests/ui/cfg/cfg-target-compact-errors.rs diff --git a/src/test/ui/cfg/cfg-target-compact-errors.stderr b/tests/ui/cfg/cfg-target-compact-errors.stderr similarity index 100% rename from src/test/ui/cfg/cfg-target-compact-errors.stderr rename to tests/ui/cfg/cfg-target-compact-errors.stderr diff --git a/src/test/ui/cfg/cfg-target-compact.rs b/tests/ui/cfg/cfg-target-compact.rs similarity index 100% rename from src/test/ui/cfg/cfg-target-compact.rs rename to tests/ui/cfg/cfg-target-compact.rs diff --git a/src/test/ui/cfg/cfg-target-family.rs b/tests/ui/cfg/cfg-target-family.rs similarity index 100% rename from src/test/ui/cfg/cfg-target-family.rs rename to tests/ui/cfg/cfg-target-family.rs diff --git a/src/test/ui/cfg/cfg-target-vendor.rs b/tests/ui/cfg/cfg-target-vendor.rs similarity index 100% rename from src/test/ui/cfg/cfg-target-vendor.rs rename to tests/ui/cfg/cfg-target-vendor.rs diff --git a/src/test/ui/cfg/cfg_attr.rs b/tests/ui/cfg/cfg_attr.rs similarity index 100% rename from src/test/ui/cfg/cfg_attr.rs rename to tests/ui/cfg/cfg_attr.rs diff --git a/src/test/ui/cfg/cfg_inner_static.rs b/tests/ui/cfg/cfg_inner_static.rs similarity index 100% rename from src/test/ui/cfg/cfg_inner_static.rs rename to tests/ui/cfg/cfg_inner_static.rs diff --git a/src/test/ui/cfg/cfg_stmt_expr.rs b/tests/ui/cfg/cfg_stmt_expr.rs similarity index 100% rename from src/test/ui/cfg/cfg_stmt_expr.rs rename to tests/ui/cfg/cfg_stmt_expr.rs diff --git a/src/test/ui/cfg/cfgs-on-items.rs b/tests/ui/cfg/cfgs-on-items.rs similarity index 100% rename from src/test/ui/cfg/cfgs-on-items.rs rename to tests/ui/cfg/cfgs-on-items.rs diff --git a/src/test/ui/cfg/conditional-compile-arch.rs b/tests/ui/cfg/conditional-compile-arch.rs similarity index 100% rename from src/test/ui/cfg/conditional-compile-arch.rs rename to tests/ui/cfg/conditional-compile-arch.rs diff --git a/src/test/ui/cfg/conditional-compile.rs b/tests/ui/cfg/conditional-compile.rs similarity index 100% rename from src/test/ui/cfg/conditional-compile.rs rename to tests/ui/cfg/conditional-compile.rs diff --git a/src/test/ui/cfg/crt-static-off-works.rs b/tests/ui/cfg/crt-static-off-works.rs similarity index 100% rename from src/test/ui/cfg/crt-static-off-works.rs rename to tests/ui/cfg/crt-static-off-works.rs diff --git a/src/test/ui/cfg/crt-static-on-works.rs b/tests/ui/cfg/crt-static-on-works.rs similarity index 100% rename from src/test/ui/cfg/crt-static-on-works.rs rename to tests/ui/cfg/crt-static-on-works.rs diff --git a/src/test/ui/cfg/expanded-cfg.rs b/tests/ui/cfg/expanded-cfg.rs similarity index 100% rename from src/test/ui/cfg/expanded-cfg.rs rename to tests/ui/cfg/expanded-cfg.rs diff --git a/src/test/ui/cfg/future-compat-crate-attributes-using-cfg_attr.rs b/tests/ui/cfg/future-compat-crate-attributes-using-cfg_attr.rs similarity index 100% rename from src/test/ui/cfg/future-compat-crate-attributes-using-cfg_attr.rs rename to tests/ui/cfg/future-compat-crate-attributes-using-cfg_attr.rs diff --git a/src/test/ui/cfg/future-compat-crate-attributes-using-cfg_attr.stderr b/tests/ui/cfg/future-compat-crate-attributes-using-cfg_attr.stderr similarity index 100% rename from src/test/ui/cfg/future-compat-crate-attributes-using-cfg_attr.stderr rename to tests/ui/cfg/future-compat-crate-attributes-using-cfg_attr.stderr diff --git a/src/test/ui/cfguard-run.rs b/tests/ui/cfguard-run.rs similarity index 100% rename from src/test/ui/cfguard-run.rs rename to tests/ui/cfguard-run.rs diff --git a/src/test/ui/chalkify/arithmetic.rs b/tests/ui/chalkify/arithmetic.rs similarity index 100% rename from src/test/ui/chalkify/arithmetic.rs rename to tests/ui/chalkify/arithmetic.rs diff --git a/src/test/ui/chalkify/assert.rs b/tests/ui/chalkify/assert.rs similarity index 100% rename from src/test/ui/chalkify/assert.rs rename to tests/ui/chalkify/assert.rs diff --git a/src/test/ui/chalkify/basic.rs b/tests/ui/chalkify/basic.rs similarity index 100% rename from src/test/ui/chalkify/basic.rs rename to tests/ui/chalkify/basic.rs diff --git a/src/test/ui/chalkify/bugs/async.rs b/tests/ui/chalkify/bugs/async.rs similarity index 100% rename from src/test/ui/chalkify/bugs/async.rs rename to tests/ui/chalkify/bugs/async.rs diff --git a/src/test/ui/chalkify/bugs/async.stderr b/tests/ui/chalkify/bugs/async.stderr similarity index 100% rename from src/test/ui/chalkify/bugs/async.stderr rename to tests/ui/chalkify/bugs/async.stderr diff --git a/src/test/ui/chalkify/builtin-copy-clone.rs b/tests/ui/chalkify/builtin-copy-clone.rs similarity index 100% rename from src/test/ui/chalkify/builtin-copy-clone.rs rename to tests/ui/chalkify/builtin-copy-clone.rs diff --git a/src/test/ui/chalkify/chalk_initial_program.rs b/tests/ui/chalkify/chalk_initial_program.rs similarity index 100% rename from src/test/ui/chalkify/chalk_initial_program.rs rename to tests/ui/chalkify/chalk_initial_program.rs diff --git a/src/test/ui/chalkify/chalk_initial_program.stderr b/tests/ui/chalkify/chalk_initial_program.stderr similarity index 100% rename from src/test/ui/chalkify/chalk_initial_program.stderr rename to tests/ui/chalkify/chalk_initial_program.stderr diff --git a/src/test/ui/chalkify/closure.rs b/tests/ui/chalkify/closure.rs similarity index 100% rename from src/test/ui/chalkify/closure.rs rename to tests/ui/chalkify/closure.rs diff --git a/src/test/ui/chalkify/closure.stderr b/tests/ui/chalkify/closure.stderr similarity index 100% rename from src/test/ui/chalkify/closure.stderr rename to tests/ui/chalkify/closure.stderr diff --git a/src/test/ui/chalkify/generic_impls.rs b/tests/ui/chalkify/generic_impls.rs similarity index 100% rename from src/test/ui/chalkify/generic_impls.rs rename to tests/ui/chalkify/generic_impls.rs diff --git a/src/test/ui/chalkify/generic_impls.stderr b/tests/ui/chalkify/generic_impls.stderr similarity index 100% rename from src/test/ui/chalkify/generic_impls.stderr rename to tests/ui/chalkify/generic_impls.stderr diff --git a/src/test/ui/chalkify/impl_wf.rs b/tests/ui/chalkify/impl_wf.rs similarity index 100% rename from src/test/ui/chalkify/impl_wf.rs rename to tests/ui/chalkify/impl_wf.rs diff --git a/src/test/ui/chalkify/impl_wf.stderr b/tests/ui/chalkify/impl_wf.stderr similarity index 100% rename from src/test/ui/chalkify/impl_wf.stderr rename to tests/ui/chalkify/impl_wf.stderr diff --git a/src/test/ui/chalkify/impl_wf_2.rs b/tests/ui/chalkify/impl_wf_2.rs similarity index 100% rename from src/test/ui/chalkify/impl_wf_2.rs rename to tests/ui/chalkify/impl_wf_2.rs diff --git a/src/test/ui/chalkify/impl_wf_2.stderr b/tests/ui/chalkify/impl_wf_2.stderr similarity index 100% rename from src/test/ui/chalkify/impl_wf_2.stderr rename to tests/ui/chalkify/impl_wf_2.stderr diff --git a/src/test/ui/chalkify/inherent_impl.rs b/tests/ui/chalkify/inherent_impl.rs similarity index 100% rename from src/test/ui/chalkify/inherent_impl.rs rename to tests/ui/chalkify/inherent_impl.rs diff --git a/src/test/ui/chalkify/inherent_impl_min.rs b/tests/ui/chalkify/inherent_impl_min.rs similarity index 100% rename from src/test/ui/chalkify/inherent_impl_min.rs rename to tests/ui/chalkify/inherent_impl_min.rs diff --git a/src/test/ui/chalkify/lower_env1.rs b/tests/ui/chalkify/lower_env1.rs similarity index 100% rename from src/test/ui/chalkify/lower_env1.rs rename to tests/ui/chalkify/lower_env1.rs diff --git a/src/test/ui/chalkify/lower_env2.rs b/tests/ui/chalkify/lower_env2.rs similarity index 100% rename from src/test/ui/chalkify/lower_env2.rs rename to tests/ui/chalkify/lower_env2.rs diff --git a/src/test/ui/chalkify/lower_env3.rs b/tests/ui/chalkify/lower_env3.rs similarity index 100% rename from src/test/ui/chalkify/lower_env3.rs rename to tests/ui/chalkify/lower_env3.rs diff --git a/src/test/ui/chalkify/lower_impl.rs b/tests/ui/chalkify/lower_impl.rs similarity index 100% rename from src/test/ui/chalkify/lower_impl.rs rename to tests/ui/chalkify/lower_impl.rs diff --git a/src/test/ui/chalkify/lower_struct.rs b/tests/ui/chalkify/lower_struct.rs similarity index 100% rename from src/test/ui/chalkify/lower_struct.rs rename to tests/ui/chalkify/lower_struct.rs diff --git a/src/test/ui/chalkify/lower_trait.rs b/tests/ui/chalkify/lower_trait.rs similarity index 100% rename from src/test/ui/chalkify/lower_trait.rs rename to tests/ui/chalkify/lower_trait.rs diff --git a/src/test/ui/chalkify/lower_trait_higher_rank.rs b/tests/ui/chalkify/lower_trait_higher_rank.rs similarity index 100% rename from src/test/ui/chalkify/lower_trait_higher_rank.rs rename to tests/ui/chalkify/lower_trait_higher_rank.rs diff --git a/src/test/ui/chalkify/lower_trait_where_clause.rs b/tests/ui/chalkify/lower_trait_where_clause.rs similarity index 100% rename from src/test/ui/chalkify/lower_trait_where_clause.rs rename to tests/ui/chalkify/lower_trait_where_clause.rs diff --git a/src/test/ui/chalkify/println.rs b/tests/ui/chalkify/println.rs similarity index 100% rename from src/test/ui/chalkify/println.rs rename to tests/ui/chalkify/println.rs diff --git a/src/test/ui/chalkify/projection.rs b/tests/ui/chalkify/projection.rs similarity index 100% rename from src/test/ui/chalkify/projection.rs rename to tests/ui/chalkify/projection.rs diff --git a/src/test/ui/chalkify/recursive_where_clause_on_type.rs b/tests/ui/chalkify/recursive_where_clause_on_type.rs similarity index 100% rename from src/test/ui/chalkify/recursive_where_clause_on_type.rs rename to tests/ui/chalkify/recursive_where_clause_on_type.rs diff --git a/src/test/ui/chalkify/recursive_where_clause_on_type.stderr b/tests/ui/chalkify/recursive_where_clause_on_type.stderr similarity index 100% rename from src/test/ui/chalkify/recursive_where_clause_on_type.stderr rename to tests/ui/chalkify/recursive_where_clause_on_type.stderr diff --git a/src/test/ui/chalkify/super_trait.rs b/tests/ui/chalkify/super_trait.rs similarity index 100% rename from src/test/ui/chalkify/super_trait.rs rename to tests/ui/chalkify/super_trait.rs diff --git a/src/test/ui/chalkify/trait-objects.rs b/tests/ui/chalkify/trait-objects.rs similarity index 100% rename from src/test/ui/chalkify/trait-objects.rs rename to tests/ui/chalkify/trait-objects.rs diff --git a/src/test/ui/chalkify/trait_implied_bound.rs b/tests/ui/chalkify/trait_implied_bound.rs similarity index 100% rename from src/test/ui/chalkify/trait_implied_bound.rs rename to tests/ui/chalkify/trait_implied_bound.rs diff --git a/src/test/ui/chalkify/type_implied_bound.rs b/tests/ui/chalkify/type_implied_bound.rs similarity index 100% rename from src/test/ui/chalkify/type_implied_bound.rs rename to tests/ui/chalkify/type_implied_bound.rs diff --git a/src/test/ui/chalkify/type_inference.rs b/tests/ui/chalkify/type_inference.rs similarity index 100% rename from src/test/ui/chalkify/type_inference.rs rename to tests/ui/chalkify/type_inference.rs diff --git a/src/test/ui/chalkify/type_inference.stderr b/tests/ui/chalkify/type_inference.stderr similarity index 100% rename from src/test/ui/chalkify/type_inference.stderr rename to tests/ui/chalkify/type_inference.stderr diff --git a/src/test/ui/chalkify/type_wf.rs b/tests/ui/chalkify/type_wf.rs similarity index 100% rename from src/test/ui/chalkify/type_wf.rs rename to tests/ui/chalkify/type_wf.rs diff --git a/src/test/ui/chalkify/type_wf.stderr b/tests/ui/chalkify/type_wf.stderr similarity index 100% rename from src/test/ui/chalkify/type_wf.stderr rename to tests/ui/chalkify/type_wf.stderr diff --git a/src/test/ui/char.rs b/tests/ui/char.rs similarity index 100% rename from src/test/ui/char.rs rename to tests/ui/char.rs diff --git a/src/test/ui/check-cfg/allow-at-crate-level.rs b/tests/ui/check-cfg/allow-at-crate-level.rs similarity index 100% rename from src/test/ui/check-cfg/allow-at-crate-level.rs rename to tests/ui/check-cfg/allow-at-crate-level.rs diff --git a/src/test/ui/check-cfg/allow-macro-cfg.rs b/tests/ui/check-cfg/allow-macro-cfg.rs similarity index 100% rename from src/test/ui/check-cfg/allow-macro-cfg.rs rename to tests/ui/check-cfg/allow-macro-cfg.rs diff --git a/src/test/ui/check-cfg/allow-same-level.rs b/tests/ui/check-cfg/allow-same-level.rs similarity index 100% rename from src/test/ui/check-cfg/allow-same-level.rs rename to tests/ui/check-cfg/allow-same-level.rs diff --git a/src/test/ui/check-cfg/allow-same-level.stderr b/tests/ui/check-cfg/allow-same-level.stderr similarity index 100% rename from src/test/ui/check-cfg/allow-same-level.stderr rename to tests/ui/check-cfg/allow-same-level.stderr diff --git a/src/test/ui/check-cfg/allow-top-level.rs b/tests/ui/check-cfg/allow-top-level.rs similarity index 100% rename from src/test/ui/check-cfg/allow-top-level.rs rename to tests/ui/check-cfg/allow-top-level.rs diff --git a/src/test/ui/check-cfg/allow-upper-level.rs b/tests/ui/check-cfg/allow-upper-level.rs similarity index 100% rename from src/test/ui/check-cfg/allow-upper-level.rs rename to tests/ui/check-cfg/allow-upper-level.rs diff --git a/src/test/ui/check-cfg/compact-names.rs b/tests/ui/check-cfg/compact-names.rs similarity index 100% rename from src/test/ui/check-cfg/compact-names.rs rename to tests/ui/check-cfg/compact-names.rs diff --git a/src/test/ui/check-cfg/compact-names.stderr b/tests/ui/check-cfg/compact-names.stderr similarity index 100% rename from src/test/ui/check-cfg/compact-names.stderr rename to tests/ui/check-cfg/compact-names.stderr diff --git a/src/test/ui/check-cfg/compact-values.rs b/tests/ui/check-cfg/compact-values.rs similarity index 100% rename from src/test/ui/check-cfg/compact-values.rs rename to tests/ui/check-cfg/compact-values.rs diff --git a/src/test/ui/check-cfg/compact-values.stderr b/tests/ui/check-cfg/compact-values.stderr similarity index 100% rename from src/test/ui/check-cfg/compact-values.stderr rename to tests/ui/check-cfg/compact-values.stderr diff --git a/src/test/ui/check-cfg/empty-names.rs b/tests/ui/check-cfg/empty-names.rs similarity index 100% rename from src/test/ui/check-cfg/empty-names.rs rename to tests/ui/check-cfg/empty-names.rs diff --git a/src/test/ui/check-cfg/empty-names.stderr b/tests/ui/check-cfg/empty-names.stderr similarity index 100% rename from src/test/ui/check-cfg/empty-names.stderr rename to tests/ui/check-cfg/empty-names.stderr diff --git a/src/test/ui/check-cfg/empty-values.rs b/tests/ui/check-cfg/empty-values.rs similarity index 100% rename from src/test/ui/check-cfg/empty-values.rs rename to tests/ui/check-cfg/empty-values.rs diff --git a/src/test/ui/check-cfg/empty-values.stderr b/tests/ui/check-cfg/empty-values.stderr similarity index 100% rename from src/test/ui/check-cfg/empty-values.stderr rename to tests/ui/check-cfg/empty-values.stderr diff --git a/src/test/ui/check-cfg/invalid-arguments.anything_else.stderr b/tests/ui/check-cfg/invalid-arguments.anything_else.stderr similarity index 100% rename from src/test/ui/check-cfg/invalid-arguments.anything_else.stderr rename to tests/ui/check-cfg/invalid-arguments.anything_else.stderr diff --git a/src/test/ui/check-cfg/invalid-arguments.names_simple_ident.stderr b/tests/ui/check-cfg/invalid-arguments.names_simple_ident.stderr similarity index 100% rename from src/test/ui/check-cfg/invalid-arguments.names_simple_ident.stderr rename to tests/ui/check-cfg/invalid-arguments.names_simple_ident.stderr diff --git a/src/test/ui/check-cfg/invalid-arguments.rs b/tests/ui/check-cfg/invalid-arguments.rs similarity index 100% rename from src/test/ui/check-cfg/invalid-arguments.rs rename to tests/ui/check-cfg/invalid-arguments.rs diff --git a/src/test/ui/check-cfg/invalid-arguments.values_simple_ident.stderr b/tests/ui/check-cfg/invalid-arguments.values_simple_ident.stderr similarity index 100% rename from src/test/ui/check-cfg/invalid-arguments.values_simple_ident.stderr rename to tests/ui/check-cfg/invalid-arguments.values_simple_ident.stderr diff --git a/src/test/ui/check-cfg/invalid-arguments.values_string_literals.stderr b/tests/ui/check-cfg/invalid-arguments.values_string_literals.stderr similarity index 100% rename from src/test/ui/check-cfg/invalid-arguments.values_string_literals.stderr rename to tests/ui/check-cfg/invalid-arguments.values_string_literals.stderr diff --git a/src/test/ui/check-cfg/invalid-cfg-name.rs b/tests/ui/check-cfg/invalid-cfg-name.rs similarity index 100% rename from src/test/ui/check-cfg/invalid-cfg-name.rs rename to tests/ui/check-cfg/invalid-cfg-name.rs diff --git a/src/test/ui/check-cfg/invalid-cfg-name.stderr b/tests/ui/check-cfg/invalid-cfg-name.stderr similarity index 100% rename from src/test/ui/check-cfg/invalid-cfg-name.stderr rename to tests/ui/check-cfg/invalid-cfg-name.stderr diff --git a/src/test/ui/check-cfg/invalid-cfg-value.rs b/tests/ui/check-cfg/invalid-cfg-value.rs similarity index 100% rename from src/test/ui/check-cfg/invalid-cfg-value.rs rename to tests/ui/check-cfg/invalid-cfg-value.rs diff --git a/src/test/ui/check-cfg/invalid-cfg-value.stderr b/tests/ui/check-cfg/invalid-cfg-value.stderr similarity index 100% rename from src/test/ui/check-cfg/invalid-cfg-value.stderr rename to tests/ui/check-cfg/invalid-cfg-value.stderr diff --git a/src/test/ui/check-cfg/mix.rs b/tests/ui/check-cfg/mix.rs similarity index 100% rename from src/test/ui/check-cfg/mix.rs rename to tests/ui/check-cfg/mix.rs diff --git a/src/test/ui/check-cfg/mix.stderr b/tests/ui/check-cfg/mix.stderr similarity index 100% rename from src/test/ui/check-cfg/mix.stderr rename to tests/ui/check-cfg/mix.stderr diff --git a/src/test/ui/check-cfg/no-values.rs b/tests/ui/check-cfg/no-values.rs similarity index 100% rename from src/test/ui/check-cfg/no-values.rs rename to tests/ui/check-cfg/no-values.rs diff --git a/src/test/ui/check-cfg/no-values.stderr b/tests/ui/check-cfg/no-values.stderr similarity index 100% rename from src/test/ui/check-cfg/no-values.stderr rename to tests/ui/check-cfg/no-values.stderr diff --git a/src/test/ui/check-cfg/stmt-no-ice.rs b/tests/ui/check-cfg/stmt-no-ice.rs similarity index 100% rename from src/test/ui/check-cfg/stmt-no-ice.rs rename to tests/ui/check-cfg/stmt-no-ice.rs diff --git a/src/test/ui/check-cfg/stmt-no-ice.stderr b/tests/ui/check-cfg/stmt-no-ice.stderr similarity index 100% rename from src/test/ui/check-cfg/stmt-no-ice.stderr rename to tests/ui/check-cfg/stmt-no-ice.stderr diff --git a/src/test/ui/check-cfg/well-known-names.rs b/tests/ui/check-cfg/well-known-names.rs similarity index 100% rename from src/test/ui/check-cfg/well-known-names.rs rename to tests/ui/check-cfg/well-known-names.rs diff --git a/src/test/ui/check-cfg/well-known-names.stderr b/tests/ui/check-cfg/well-known-names.stderr similarity index 100% rename from src/test/ui/check-cfg/well-known-names.stderr rename to tests/ui/check-cfg/well-known-names.stderr diff --git a/src/test/ui/check-cfg/well-known-values.rs b/tests/ui/check-cfg/well-known-values.rs similarity index 100% rename from src/test/ui/check-cfg/well-known-values.rs rename to tests/ui/check-cfg/well-known-values.rs diff --git a/src/test/ui/check-cfg/well-known-values.stderr b/tests/ui/check-cfg/well-known-values.stderr similarity index 100% rename from src/test/ui/check-cfg/well-known-values.stderr rename to tests/ui/check-cfg/well-known-values.stderr diff --git a/src/test/ui/check-static-immutable-mut-slices.rs b/tests/ui/check-static-immutable-mut-slices.rs similarity index 100% rename from src/test/ui/check-static-immutable-mut-slices.rs rename to tests/ui/check-static-immutable-mut-slices.rs diff --git a/src/test/ui/check-static-immutable-mut-slices.stderr b/tests/ui/check-static-immutable-mut-slices.stderr similarity index 100% rename from src/test/ui/check-static-immutable-mut-slices.stderr rename to tests/ui/check-static-immutable-mut-slices.stderr diff --git a/src/test/ui/check-static-recursion-foreign.rs b/tests/ui/check-static-recursion-foreign.rs similarity index 100% rename from src/test/ui/check-static-recursion-foreign.rs rename to tests/ui/check-static-recursion-foreign.rs diff --git a/src/test/ui/check-static-values-constraints.rs b/tests/ui/check-static-values-constraints.rs similarity index 100% rename from src/test/ui/check-static-values-constraints.rs rename to tests/ui/check-static-values-constraints.rs diff --git a/src/test/ui/check-static-values-constraints.stderr b/tests/ui/check-static-values-constraints.stderr similarity index 100% rename from src/test/ui/check-static-values-constraints.stderr rename to tests/ui/check-static-values-constraints.stderr diff --git a/src/test/ui/class-cast-to-trait.rs b/tests/ui/class-cast-to-trait.rs similarity index 100% rename from src/test/ui/class-cast-to-trait.rs rename to tests/ui/class-cast-to-trait.rs diff --git a/src/test/ui/class-cast-to-trait.stderr b/tests/ui/class-cast-to-trait.stderr similarity index 100% rename from src/test/ui/class-cast-to-trait.stderr rename to tests/ui/class-cast-to-trait.stderr diff --git a/src/test/ui/class-method-missing.rs b/tests/ui/class-method-missing.rs similarity index 100% rename from src/test/ui/class-method-missing.rs rename to tests/ui/class-method-missing.rs diff --git a/src/test/ui/class-method-missing.stderr b/tests/ui/class-method-missing.stderr similarity index 100% rename from src/test/ui/class-method-missing.stderr rename to tests/ui/class-method-missing.stderr diff --git a/src/test/ui/cleanup-rvalue-for-scope.rs b/tests/ui/cleanup-rvalue-for-scope.rs similarity index 100% rename from src/test/ui/cleanup-rvalue-for-scope.rs rename to tests/ui/cleanup-rvalue-for-scope.rs diff --git a/src/test/ui/cleanup-rvalue-scopes-cf.rs b/tests/ui/cleanup-rvalue-scopes-cf.rs similarity index 100% rename from src/test/ui/cleanup-rvalue-scopes-cf.rs rename to tests/ui/cleanup-rvalue-scopes-cf.rs diff --git a/src/test/ui/cleanup-rvalue-scopes-cf.stderr b/tests/ui/cleanup-rvalue-scopes-cf.stderr similarity index 100% rename from src/test/ui/cleanup-rvalue-scopes-cf.stderr rename to tests/ui/cleanup-rvalue-scopes-cf.stderr diff --git a/src/test/ui/cleanup-rvalue-scopes.rs b/tests/ui/cleanup-rvalue-scopes.rs similarity index 100% rename from src/test/ui/cleanup-rvalue-scopes.rs rename to tests/ui/cleanup-rvalue-scopes.rs diff --git a/src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs b/tests/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs similarity index 100% rename from src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs rename to tests/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs diff --git a/src/test/ui/cleanup-shortcircuit.rs b/tests/ui/cleanup-shortcircuit.rs similarity index 100% rename from src/test/ui/cleanup-shortcircuit.rs rename to tests/ui/cleanup-shortcircuit.rs diff --git a/src/test/ui/close-over-big-then-small-data.rs b/tests/ui/close-over-big-then-small-data.rs similarity index 100% rename from src/test/ui/close-over-big-then-small-data.rs rename to tests/ui/close-over-big-then-small-data.rs diff --git a/src/test/ui/closure-expected-type/expect-fn-supply-fn-multiple.rs b/tests/ui/closure-expected-type/expect-fn-supply-fn-multiple.rs similarity index 100% rename from src/test/ui/closure-expected-type/expect-fn-supply-fn-multiple.rs rename to tests/ui/closure-expected-type/expect-fn-supply-fn-multiple.rs diff --git a/src/test/ui/closure-expected-type/expect-fn-supply-fn.rs b/tests/ui/closure-expected-type/expect-fn-supply-fn.rs similarity index 100% rename from src/test/ui/closure-expected-type/expect-fn-supply-fn.rs rename to tests/ui/closure-expected-type/expect-fn-supply-fn.rs diff --git a/src/test/ui/closure-expected-type/expect-fn-supply-fn.stderr b/tests/ui/closure-expected-type/expect-fn-supply-fn.stderr similarity index 100% rename from src/test/ui/closure-expected-type/expect-fn-supply-fn.stderr rename to tests/ui/closure-expected-type/expect-fn-supply-fn.stderr diff --git a/src/test/ui/closure-expected-type/expect-infer-var-appearing-twice.rs b/tests/ui/closure-expected-type/expect-infer-var-appearing-twice.rs similarity index 100% rename from src/test/ui/closure-expected-type/expect-infer-var-appearing-twice.rs rename to tests/ui/closure-expected-type/expect-infer-var-appearing-twice.rs diff --git a/src/test/ui/closure-expected-type/expect-infer-var-appearing-twice.stderr b/tests/ui/closure-expected-type/expect-infer-var-appearing-twice.stderr similarity index 100% rename from src/test/ui/closure-expected-type/expect-infer-var-appearing-twice.stderr rename to tests/ui/closure-expected-type/expect-infer-var-appearing-twice.stderr diff --git a/src/test/ui/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs b/tests/ui/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs similarity index 100% rename from src/test/ui/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs rename to tests/ui/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs diff --git a/src/test/ui/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs b/tests/ui/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs similarity index 100% rename from src/test/ui/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs rename to tests/ui/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs diff --git a/src/test/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.rs b/tests/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.rs similarity index 100% rename from src/test/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.rs rename to tests/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.rs diff --git a/src/test/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.stderr b/tests/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.stderr similarity index 100% rename from src/test/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.stderr rename to tests/ui/closure-expected-type/expect-two-infer-vars-supply-ty-with-bound-region.stderr diff --git a/src/test/ui/closure-expected-type/issue-24421.rs b/tests/ui/closure-expected-type/issue-24421.rs similarity index 100% rename from src/test/ui/closure-expected-type/issue-24421.rs rename to tests/ui/closure-expected-type/issue-24421.rs diff --git a/src/test/ui/closure_context/issue-26046-fn-mut.rs b/tests/ui/closure_context/issue-26046-fn-mut.rs similarity index 100% rename from src/test/ui/closure_context/issue-26046-fn-mut.rs rename to tests/ui/closure_context/issue-26046-fn-mut.rs diff --git a/src/test/ui/closure_context/issue-26046-fn-mut.stderr b/tests/ui/closure_context/issue-26046-fn-mut.stderr similarity index 100% rename from src/test/ui/closure_context/issue-26046-fn-mut.stderr rename to tests/ui/closure_context/issue-26046-fn-mut.stderr diff --git a/src/test/ui/closure_context/issue-26046-fn-once.rs b/tests/ui/closure_context/issue-26046-fn-once.rs similarity index 100% rename from src/test/ui/closure_context/issue-26046-fn-once.rs rename to tests/ui/closure_context/issue-26046-fn-once.rs diff --git a/src/test/ui/closure_context/issue-26046-fn-once.stderr b/tests/ui/closure_context/issue-26046-fn-once.stderr similarity index 100% rename from src/test/ui/closure_context/issue-26046-fn-once.stderr rename to tests/ui/closure_context/issue-26046-fn-once.stderr diff --git a/src/test/ui/closure_context/issue-42065.rs b/tests/ui/closure_context/issue-42065.rs similarity index 100% rename from src/test/ui/closure_context/issue-42065.rs rename to tests/ui/closure_context/issue-42065.rs diff --git a/src/test/ui/closure_context/issue-42065.stderr b/tests/ui/closure_context/issue-42065.stderr similarity index 100% rename from src/test/ui/closure_context/issue-42065.stderr rename to tests/ui/closure_context/issue-42065.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.rs b/tests/ui/closures/2229_closure_analysis/arrays-completely-captured.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.rs rename to tests/ui/closures/2229_closure_analysis/arrays-completely-captured.rs diff --git a/src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr b/tests/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr rename to tests/ui/closures/2229_closure_analysis/arrays-completely-captured.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/by_value.rs b/tests/ui/closures/2229_closure_analysis/by_value.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/by_value.rs rename to tests/ui/closures/2229_closure_analysis/by_value.rs diff --git a/src/test/ui/closures/2229_closure_analysis/by_value.stderr b/tests/ui/closures/2229_closure_analysis/by_value.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/by_value.stderr rename to tests/ui/closures/2229_closure_analysis/by_value.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-1.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-1.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-1.rs rename to tests/ui/closures/2229_closure_analysis/capture-analysis-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-1.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr rename to tests/ui/closures/2229_closure_analysis/capture-analysis-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-2.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-2.rs rename to tests/ui/closures/2229_closure_analysis/capture-analysis-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-2.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-2.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-2.stderr rename to tests/ui/closures/2229_closure_analysis/capture-analysis-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-3.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-3.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-3.rs rename to tests/ui/closures/2229_closure_analysis/capture-analysis-3.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-3.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-3.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-3.stderr rename to tests/ui/closures/2229_closure_analysis/capture-analysis-3.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-4.rs b/tests/ui/closures/2229_closure_analysis/capture-analysis-4.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-4.rs rename to tests/ui/closures/2229_closure_analysis/capture-analysis-4.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-analysis-4.stderr b/tests/ui/closures/2229_closure_analysis/capture-analysis-4.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-analysis-4.stderr rename to tests/ui/closures/2229_closure_analysis/capture-analysis-4.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs rename to tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr rename to tests/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs rename to tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr b/tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr rename to tests/ui/closures/2229_closure_analysis/capture-disjoint-field-tuple.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/capture-enum-field.rs b/tests/ui/closures/2229_closure_analysis/capture-enum-field.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-enum-field.rs rename to tests/ui/closures/2229_closure_analysis/capture-enum-field.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-enums.rs b/tests/ui/closures/2229_closure_analysis/capture-enums.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-enums.rs rename to tests/ui/closures/2229_closure_analysis/capture-enums.rs diff --git a/src/test/ui/closures/2229_closure_analysis/capture-enums.stderr b/tests/ui/closures/2229_closure_analysis/capture-enums.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/capture-enums.stderr rename to tests/ui/closures/2229_closure_analysis/capture-enums.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs b/tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs rename to tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.rs diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr b/tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr rename to tests/ui/closures/2229_closure_analysis/deep-multilevel-struct.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs b/tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs rename to tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.rs diff --git a/src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr b/tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr rename to tests/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/destructure_patterns.rs b/tests/ui/closures/2229_closure_analysis/destructure_patterns.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/destructure_patterns.rs rename to tests/ui/closures/2229_closure_analysis/destructure_patterns.rs diff --git a/src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr b/tests/ui/closures/2229_closure_analysis/destructure_patterns.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr rename to tests/ui/closures/2229_closure_analysis/destructure_patterns.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/arrays.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/arrays.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-3.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-4.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/borrowck/borrowck-closures-mut-and-imm.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/box.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/box.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/box.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/box.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/box.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/box.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/box.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/box.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm-borrow.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-array-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-multi-variant-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-single-variant-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-struct-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/closure-origin-tuple-diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/liveness.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/liveness.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/liveness_unintentional_copy.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/multilevel-path.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/mut_ref.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/union.rs b/tests/ui/closures/2229_closure_analysis/diagnostics/union.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/union.rs rename to tests/ui/closures/2229_closure_analysis/diagnostics/union.rs diff --git a/src/test/ui/closures/2229_closure_analysis/diagnostics/union.stderr b/tests/ui/closures/2229_closure_analysis/diagnostics/union.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/diagnostics/union.stderr rename to tests/ui/closures/2229_closure_analysis/diagnostics/union.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs b/tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs rename to tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.rs diff --git a/src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr b/tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr rename to tests/ui/closures/2229_closure_analysis/feature-gate-capture_disjoint_fields.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.rs b/tests/ui/closures/2229_closure_analysis/filter-on-struct-member.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.rs rename to tests/ui/closures/2229_closure_analysis/filter-on-struct-member.rs diff --git a/src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr b/tests/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr rename to tests/ui/closures/2229_closure_analysis/filter-on-struct-member.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87378.rs b/tests/ui/closures/2229_closure_analysis/issue-87378.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-87378.rs rename to tests/ui/closures/2229_closure_analysis/issue-87378.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87378.stderr b/tests/ui/closures/2229_closure_analysis/issue-87378.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-87378.stderr rename to tests/ui/closures/2229_closure_analysis/issue-87378.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87987.rs b/tests/ui/closures/2229_closure_analysis/issue-87987.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-87987.rs rename to tests/ui/closures/2229_closure_analysis/issue-87987.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-87987.stderr b/tests/ui/closures/2229_closure_analysis/issue-87987.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-87987.stderr rename to tests/ui/closures/2229_closure_analysis/issue-87987.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88118-2.rs b/tests/ui/closures/2229_closure_analysis/issue-88118-2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-88118-2.rs rename to tests/ui/closures/2229_closure_analysis/issue-88118-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88118-2.stderr b/tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-88118-2.stderr rename to tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88476.rs b/tests/ui/closures/2229_closure_analysis/issue-88476.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-88476.rs rename to tests/ui/closures/2229_closure_analysis/issue-88476.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-88476.stderr b/tests/ui/closures/2229_closure_analysis/issue-88476.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-88476.stderr rename to tests/ui/closures/2229_closure_analysis/issue-88476.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-89606.rs b/tests/ui/closures/2229_closure_analysis/issue-89606.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-89606.rs rename to tests/ui/closures/2229_closure_analysis/issue-89606.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-90465.fixed b/tests/ui/closures/2229_closure_analysis/issue-90465.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-90465.fixed rename to tests/ui/closures/2229_closure_analysis/issue-90465.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/issue-90465.rs b/tests/ui/closures/2229_closure_analysis/issue-90465.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-90465.rs rename to tests/ui/closures/2229_closure_analysis/issue-90465.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue-90465.stderr b/tests/ui/closures/2229_closure_analysis/issue-90465.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-90465.stderr rename to tests/ui/closures/2229_closure_analysis/issue-90465.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs b/tests/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs rename to tests/ui/closures/2229_closure_analysis/issue-92724-needsdrop-query-cycle.rs diff --git a/src/test/ui/closures/2229_closure_analysis/issue_88118.rs b/tests/ui/closures/2229_closure_analysis/issue_88118.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/issue_88118.rs rename to tests/ui/closures/2229_closure_analysis/issue_88118.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs b/tests/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs rename to tests/ui/closures/2229_closure_analysis/match/auxiliary/match_non_exhaustive_lib.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87097.rs b/tests/ui/closures/2229_closure_analysis/match/issue-87097.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/issue-87097.rs rename to tests/ui/closures/2229_closure_analysis/match/issue-87097.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87097.stderr b/tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/issue-87097.stderr rename to tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87426.rs b/tests/ui/closures/2229_closure_analysis/match/issue-87426.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/issue-87426.rs rename to tests/ui/closures/2229_closure_analysis/match/issue-87426.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs b/tests/ui/closures/2229_closure_analysis/match/issue-87988.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/issue-87988.rs rename to tests/ui/closures/2229_closure_analysis/match/issue-87988.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-88331.rs b/tests/ui/closures/2229_closure_analysis/match/issue-88331.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/issue-88331.rs rename to tests/ui/closures/2229_closure_analysis/match/issue-88331.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/issue-88331.stderr b/tests/ui/closures/2229_closure_analysis/match/issue-88331.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/issue-88331.stderr rename to tests/ui/closures/2229_closure_analysis/match/issue-88331.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs rename to tests/ui/closures/2229_closure_analysis/match/match-edge-cases_1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs rename to tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr b/tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr rename to tests/ui/closures/2229_closure_analysis/match/match-edge-cases_2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs b/tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs rename to tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr b/tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr rename to tests/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs b/tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs rename to tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr b/tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr rename to tests/ui/closures/2229_closure_analysis/match/pattern-matching-should-fail.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs b/tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs rename to tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.rs diff --git a/src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr b/tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr rename to tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/auto_traits.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.rs b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.rs rename to tests/ui/closures/2229_closure_analysis/migrations/auto_traits.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr b/tests/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/auto_traits.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs rename to tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr b/tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/closure-body-macro-fragment.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs rename to tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs rename to tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_migrations.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs rename to tests/ui/closures/2229_closure_analysis/migrations/insignificant_drop_attr_no_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.rs b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.rs rename to tests/ui/closures/2229_closure_analysis/migrations/issue-78720.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-86753.rs b/tests/ui/closures/2229_closure_analysis/migrations/issue-86753.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/issue-86753.rs rename to tests/ui/closures/2229_closure_analysis/migrations/issue-86753.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs b/tests/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs rename to tests/ui/closures/2229_closure_analysis/migrations/issue-90024-adt-correct-subst.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/macro.fixed b/tests/ui/closures/2229_closure_analysis/migrations/macro.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/macro.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/macro.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/macro.rs b/tests/ui/closures/2229_closure_analysis/migrations/macro.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/macro.rs rename to tests/ui/closures/2229_closure_analysis/migrations/macro.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/macro.stderr b/tests/ui/closures/2229_closure_analysis/migrations/macro.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/macro.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/macro.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs rename to tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr b/tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/migrations_rustfix.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs rename to tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr b/tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/mir_calls_to_shims.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs rename to tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr b/tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/multi_diagnostics.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/no_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/no_migrations.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/no_migrations.rs rename to tests/ui/closures/2229_closure_analysis/migrations/no_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/old_name.rs b/tests/ui/closures/2229_closure_analysis/migrations/old_name.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/old_name.rs rename to tests/ui/closures/2229_closure_analysis/migrations/old_name.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/old_name.stderr b/tests/ui/closures/2229_closure_analysis/migrations/old_name.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/old_name.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/old_name.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise.fixed b/tests/ui/closures/2229_closure_analysis/migrations/precise.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/precise.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/precise.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise.rs b/tests/ui/closures/2229_closure_analysis/migrations/precise.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/precise.rs rename to tests/ui/closures/2229_closure_analysis/migrations/precise.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise.stderr b/tests/ui/closures/2229_closure_analysis/migrations/precise.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/precise.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/precise.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs b/tests/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs rename to tests/ui/closures/2229_closure_analysis/migrations/precise_no_migrations.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed rename to tests/ui/closures/2229_closure_analysis/migrations/significant_drop.fixed diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.rs b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.rs rename to tests/ui/closures/2229_closure_analysis/migrations/significant_drop.rs diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr b/tests/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr rename to tests/ui/closures/2229_closure_analysis/migrations/significant_drop.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs b/tests/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs rename to tests/ui/closures/2229_closure_analysis/migrations/unpin_no_migration.rs diff --git a/src/test/ui/closures/2229_closure_analysis/move_closure.rs b/tests/ui/closures/2229_closure_analysis/move_closure.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/move_closure.rs rename to tests/ui/closures/2229_closure_analysis/move_closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/move_closure.stderr b/tests/ui/closures/2229_closure_analysis/move_closure.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/move_closure.stderr rename to tests/ui/closures/2229_closure_analysis/move_closure.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-1.rs b/tests/ui/closures/2229_closure_analysis/multilevel-path-1.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/multilevel-path-1.rs rename to tests/ui/closures/2229_closure_analysis/multilevel-path-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-1.stderr b/tests/ui/closures/2229_closure_analysis/multilevel-path-1.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/multilevel-path-1.stderr rename to tests/ui/closures/2229_closure_analysis/multilevel-path-1.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-2.rs b/tests/ui/closures/2229_closure_analysis/multilevel-path-2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/multilevel-path-2.rs rename to tests/ui/closures/2229_closure_analysis/multilevel-path-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/multilevel-path-2.stderr b/tests/ui/closures/2229_closure_analysis/multilevel-path-2.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/multilevel-path-2.stderr rename to tests/ui/closures/2229_closure_analysis/multilevel-path-2.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/nested-closure.rs b/tests/ui/closures/2229_closure_analysis/nested-closure.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/nested-closure.rs rename to tests/ui/closures/2229_closure_analysis/nested-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/nested-closure.stderr b/tests/ui/closures/2229_closure_analysis/nested-closure.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/nested-closure.stderr rename to tests/ui/closures/2229_closure_analysis/nested-closure.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs b/tests/ui/closures/2229_closure_analysis/optimization/edge_case.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/optimization/edge_case.rs rename to tests/ui/closures/2229_closure_analysis/optimization/edge_case.rs diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case.stderr b/tests/ui/closures/2229_closure_analysis/optimization/edge_case.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/optimization/edge_case.stderr rename to tests/ui/closures/2229_closure_analysis/optimization/edge_case.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs b/tests/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs rename to tests/ui/closures/2229_closure_analysis/optimization/edge_case_run_pass.rs diff --git a/src/test/ui/closures/2229_closure_analysis/path-with-array-access.rs b/tests/ui/closures/2229_closure_analysis/path-with-array-access.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/path-with-array-access.rs rename to tests/ui/closures/2229_closure_analysis/path-with-array-access.rs diff --git a/src/test/ui/closures/2229_closure_analysis/path-with-array-access.stderr b/tests/ui/closures/2229_closure_analysis/path-with-array-access.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/path-with-array-access.stderr rename to tests/ui/closures/2229_closure_analysis/path-with-array-access.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs rename to tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.rs diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr rename to tests/ui/closures/2229_closure_analysis/preserve_field_drop_order.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs rename to tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout rename to tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_eighteen.run.stdout diff --git a/src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout b/tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout rename to tests/ui/closures/2229_closure_analysis/preserve_field_drop_order2.twenty_twentyone.run.stdout diff --git a/src/test/ui/closures/2229_closure_analysis/repr_packed.rs b/tests/ui/closures/2229_closure_analysis/repr_packed.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/repr_packed.rs rename to tests/ui/closures/2229_closure_analysis/repr_packed.rs diff --git a/src/test/ui/closures/2229_closure_analysis/repr_packed.stderr b/tests/ui/closures/2229_closure_analysis/repr_packed.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/repr_packed.stderr rename to tests/ui/closures/2229_closure_analysis/repr_packed.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/box.rs b/tests/ui/closures/2229_closure_analysis/run_pass/box.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/box.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/box.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/by_value.rs b/tests/ui/closures/2229_closure_analysis/run_pass/by_value.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/by_value.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/by_value.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-struct.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple-mut.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/capture-disjoint-field-tuple.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs b/tests/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/capture_with_wildcard_match.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr b/tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr rename to tests/ui/closures/2229_closure_analysis/run_pass/destructure-pattern-closure-within-closure.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs b/tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr b/tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr rename to tests/ui/closures/2229_closure_analysis/run_pass/destructure_patterns.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs b/tests/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/edition.rs b/tests/ui/closures/2229_closure_analysis/run_pass/edition.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/edition.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/edition.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs b/tests/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/filter-on-struct-member.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs b/tests/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/fru_syntax.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/issue-87378.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/issue-88372.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/issue-88431.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs b/tests/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/issue-88476.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/lit-pattern-matching-with-methods.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/move_closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/move_closure.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/move_closure.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/move_closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-1.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-2.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs b/tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/multilevel-path-3.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs b/tests/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/mut_ref.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs b/tests/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/mut_ref_struct_mem.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs b/tests/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/nested-closure.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/struct-pattern-matching-with-methods.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs b/tests/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/tuple-struct-pattern-matching-with-methods.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs b/tests/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/unsafe_ptr.rs diff --git a/src/test/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs b/tests/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs rename to tests/ui/closures/2229_closure_analysis/run_pass/use_of_mutable_borrow_and_fake_reads.rs diff --git a/src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs b/tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs rename to tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.rs diff --git a/src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr b/tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr rename to tests/ui/closures/2229_closure_analysis/simple-struct-min-capture.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/unsafe_ptr.rs b/tests/ui/closures/2229_closure_analysis/unsafe_ptr.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/unsafe_ptr.rs rename to tests/ui/closures/2229_closure_analysis/unsafe_ptr.rs diff --git a/src/test/ui/closures/2229_closure_analysis/unsafe_ptr.stderr b/tests/ui/closures/2229_closure_analysis/unsafe_ptr.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/unsafe_ptr.stderr rename to tests/ui/closures/2229_closure_analysis/unsafe_ptr.stderr diff --git a/src/test/ui/closures/2229_closure_analysis/wild_patterns.rs b/tests/ui/closures/2229_closure_analysis/wild_patterns.rs similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/wild_patterns.rs rename to tests/ui/closures/2229_closure_analysis/wild_patterns.rs diff --git a/src/test/ui/closures/2229_closure_analysis/wild_patterns.stderr b/tests/ui/closures/2229_closure_analysis/wild_patterns.stderr similarity index 100% rename from src/test/ui/closures/2229_closure_analysis/wild_patterns.stderr rename to tests/ui/closures/2229_closure_analysis/wild_patterns.stderr diff --git a/src/test/ui/closures/add_semicolon_non_block_closure.rs b/tests/ui/closures/add_semicolon_non_block_closure.rs similarity index 100% rename from src/test/ui/closures/add_semicolon_non_block_closure.rs rename to tests/ui/closures/add_semicolon_non_block_closure.rs diff --git a/src/test/ui/closures/add_semicolon_non_block_closure.stderr b/tests/ui/closures/add_semicolon_non_block_closure.stderr similarity index 100% rename from src/test/ui/closures/add_semicolon_non_block_closure.stderr rename to tests/ui/closures/add_semicolon_non_block_closure.stderr diff --git a/src/test/ui/closures/binder/async-closure-with-binder.rs b/tests/ui/closures/binder/async-closure-with-binder.rs similarity index 100% rename from src/test/ui/closures/binder/async-closure-with-binder.rs rename to tests/ui/closures/binder/async-closure-with-binder.rs diff --git a/src/test/ui/closures/binder/async-closure-with-binder.stderr b/tests/ui/closures/binder/async-closure-with-binder.stderr similarity index 100% rename from src/test/ui/closures/binder/async-closure-with-binder.stderr rename to tests/ui/closures/binder/async-closure-with-binder.stderr diff --git a/src/test/ui/closures/binder/disallow-const.rs b/tests/ui/closures/binder/disallow-const.rs similarity index 100% rename from src/test/ui/closures/binder/disallow-const.rs rename to tests/ui/closures/binder/disallow-const.rs diff --git a/src/test/ui/closures/binder/disallow-const.stderr b/tests/ui/closures/binder/disallow-const.stderr similarity index 100% rename from src/test/ui/closures/binder/disallow-const.stderr rename to tests/ui/closures/binder/disallow-const.stderr diff --git a/src/test/ui/closures/binder/disallow-ty.rs b/tests/ui/closures/binder/disallow-ty.rs similarity index 100% rename from src/test/ui/closures/binder/disallow-ty.rs rename to tests/ui/closures/binder/disallow-ty.rs diff --git a/src/test/ui/closures/binder/disallow-ty.stderr b/tests/ui/closures/binder/disallow-ty.stderr similarity index 100% rename from src/test/ui/closures/binder/disallow-ty.stderr rename to tests/ui/closures/binder/disallow-ty.stderr diff --git a/src/test/ui/closures/binder/implicit-return.rs b/tests/ui/closures/binder/implicit-return.rs similarity index 100% rename from src/test/ui/closures/binder/implicit-return.rs rename to tests/ui/closures/binder/implicit-return.rs diff --git a/src/test/ui/closures/binder/implicit-return.stderr b/tests/ui/closures/binder/implicit-return.stderr similarity index 100% rename from src/test/ui/closures/binder/implicit-return.stderr rename to tests/ui/closures/binder/implicit-return.stderr diff --git a/src/test/ui/closures/binder/implicit-stuff.rs b/tests/ui/closures/binder/implicit-stuff.rs similarity index 100% rename from src/test/ui/closures/binder/implicit-stuff.rs rename to tests/ui/closures/binder/implicit-stuff.rs diff --git a/src/test/ui/closures/binder/implicit-stuff.stderr b/tests/ui/closures/binder/implicit-stuff.stderr similarity index 100% rename from src/test/ui/closures/binder/implicit-stuff.stderr rename to tests/ui/closures/binder/implicit-stuff.stderr diff --git a/src/test/ui/closures/binder/late-bound-in-body.rs b/tests/ui/closures/binder/late-bound-in-body.rs similarity index 100% rename from src/test/ui/closures/binder/late-bound-in-body.rs rename to tests/ui/closures/binder/late-bound-in-body.rs diff --git a/src/test/ui/closures/binder/nested-closures-regions.rs b/tests/ui/closures/binder/nested-closures-regions.rs similarity index 100% rename from src/test/ui/closures/binder/nested-closures-regions.rs rename to tests/ui/closures/binder/nested-closures-regions.rs diff --git a/src/test/ui/closures/binder/nested-closures-regions.stderr b/tests/ui/closures/binder/nested-closures-regions.stderr similarity index 100% rename from src/test/ui/closures/binder/nested-closures-regions.stderr rename to tests/ui/closures/binder/nested-closures-regions.stderr diff --git a/src/test/ui/closures/binder/nested-closures.rs b/tests/ui/closures/binder/nested-closures.rs similarity index 100% rename from src/test/ui/closures/binder/nested-closures.rs rename to tests/ui/closures/binder/nested-closures.rs diff --git a/src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs b/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs similarity index 100% rename from src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs rename to tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.rs diff --git a/src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr b/tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr similarity index 100% rename from src/test/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr rename to tests/ui/closures/binder/suggestion-for-introducing-lifetime-into-binder.stderr diff --git a/src/test/ui/closures/closure-array-break-length.rs b/tests/ui/closures/closure-array-break-length.rs similarity index 100% rename from src/test/ui/closures/closure-array-break-length.rs rename to tests/ui/closures/closure-array-break-length.rs diff --git a/src/test/ui/closures/closure-array-break-length.stderr b/tests/ui/closures/closure-array-break-length.stderr similarity index 100% rename from src/test/ui/closures/closure-array-break-length.stderr rename to tests/ui/closures/closure-array-break-length.stderr diff --git a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs b/tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs similarity index 100% rename from src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs rename to tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.rs diff --git a/src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr b/tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr similarity index 100% rename from src/test/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr rename to tests/ui/closures/closure-bounds-cant-promote-superkind-in-struct.stderr diff --git a/src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.rs b/tests/ui/closures/closure-bounds-static-cant-capture-borrowed.rs similarity index 100% rename from src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.rs rename to tests/ui/closures/closure-bounds-static-cant-capture-borrowed.rs diff --git a/src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr b/tests/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr similarity index 100% rename from src/test/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr rename to tests/ui/closures/closure-bounds-static-cant-capture-borrowed.stderr diff --git a/src/test/ui/closures/closure-bounds-subtype.rs b/tests/ui/closures/closure-bounds-subtype.rs similarity index 100% rename from src/test/ui/closures/closure-bounds-subtype.rs rename to tests/ui/closures/closure-bounds-subtype.rs diff --git a/src/test/ui/closures/closure-bounds-subtype.stderr b/tests/ui/closures/closure-bounds-subtype.stderr similarity index 100% rename from src/test/ui/closures/closure-bounds-subtype.stderr rename to tests/ui/closures/closure-bounds-subtype.stderr diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr similarity index 100% rename from src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr rename to tests/ui/closures/closure-expected-type/expect-region-supply-region-2.polonius.stderr diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.rs b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.rs similarity index 100% rename from src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.rs rename to tests/ui/closures/closure-expected-type/expect-region-supply-region-2.rs diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr b/tests/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr similarity index 100% rename from src/test/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr rename to tests/ui/closures/closure-expected-type/expect-region-supply-region-2.stderr diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region.rs b/tests/ui/closures/closure-expected-type/expect-region-supply-region.rs similarity index 100% rename from src/test/ui/closures/closure-expected-type/expect-region-supply-region.rs rename to tests/ui/closures/closure-expected-type/expect-region-supply-region.rs diff --git a/src/test/ui/closures/closure-expected-type/expect-region-supply-region.stderr b/tests/ui/closures/closure-expected-type/expect-region-supply-region.stderr similarity index 100% rename from src/test/ui/closures/closure-expected-type/expect-region-supply-region.stderr rename to tests/ui/closures/closure-expected-type/expect-region-supply-region.stderr diff --git a/src/test/ui/closures/closure-expected.rs b/tests/ui/closures/closure-expected.rs similarity index 100% rename from src/test/ui/closures/closure-expected.rs rename to tests/ui/closures/closure-expected.rs diff --git a/src/test/ui/closures/closure-expected.stderr b/tests/ui/closures/closure-expected.stderr similarity index 100% rename from src/test/ui/closures/closure-expected.stderr rename to tests/ui/closures/closure-expected.stderr diff --git a/src/test/ui/closures/closure-immutable-outer-variable.fixed b/tests/ui/closures/closure-immutable-outer-variable.fixed similarity index 100% rename from src/test/ui/closures/closure-immutable-outer-variable.fixed rename to tests/ui/closures/closure-immutable-outer-variable.fixed diff --git a/src/test/ui/closures/closure-immutable-outer-variable.rs b/tests/ui/closures/closure-immutable-outer-variable.rs similarity index 100% rename from src/test/ui/closures/closure-immutable-outer-variable.rs rename to tests/ui/closures/closure-immutable-outer-variable.rs diff --git a/src/test/ui/closures/closure-immutable-outer-variable.rs.fixed b/tests/ui/closures/closure-immutable-outer-variable.rs.fixed similarity index 100% rename from src/test/ui/closures/closure-immutable-outer-variable.rs.fixed rename to tests/ui/closures/closure-immutable-outer-variable.rs.fixed diff --git a/src/test/ui/closures/closure-immutable-outer-variable.stderr b/tests/ui/closures/closure-immutable-outer-variable.stderr similarity index 100% rename from src/test/ui/closures/closure-immutable-outer-variable.stderr rename to tests/ui/closures/closure-immutable-outer-variable.stderr diff --git a/src/test/ui/closures/closure-move-sync.rs b/tests/ui/closures/closure-move-sync.rs similarity index 100% rename from src/test/ui/closures/closure-move-sync.rs rename to tests/ui/closures/closure-move-sync.rs diff --git a/src/test/ui/closures/closure-move-sync.stderr b/tests/ui/closures/closure-move-sync.stderr similarity index 100% rename from src/test/ui/closures/closure-move-sync.stderr rename to tests/ui/closures/closure-move-sync.stderr diff --git a/src/test/ui/closures/closure-no-fn-1.rs b/tests/ui/closures/closure-no-fn-1.rs similarity index 100% rename from src/test/ui/closures/closure-no-fn-1.rs rename to tests/ui/closures/closure-no-fn-1.rs diff --git a/src/test/ui/closures/closure-no-fn-1.stderr b/tests/ui/closures/closure-no-fn-1.stderr similarity index 100% rename from src/test/ui/closures/closure-no-fn-1.stderr rename to tests/ui/closures/closure-no-fn-1.stderr diff --git a/src/test/ui/closures/closure-no-fn-2.rs b/tests/ui/closures/closure-no-fn-2.rs similarity index 100% rename from src/test/ui/closures/closure-no-fn-2.rs rename to tests/ui/closures/closure-no-fn-2.rs diff --git a/src/test/ui/closures/closure-no-fn-2.stderr b/tests/ui/closures/closure-no-fn-2.stderr similarity index 100% rename from src/test/ui/closures/closure-no-fn-2.stderr rename to tests/ui/closures/closure-no-fn-2.stderr diff --git a/src/test/ui/closures/closure-no-fn-3.rs b/tests/ui/closures/closure-no-fn-3.rs similarity index 100% rename from src/test/ui/closures/closure-no-fn-3.rs rename to tests/ui/closures/closure-no-fn-3.rs diff --git a/src/test/ui/closures/closure-no-fn-3.stderr b/tests/ui/closures/closure-no-fn-3.stderr similarity index 100% rename from src/test/ui/closures/closure-no-fn-3.stderr rename to tests/ui/closures/closure-no-fn-3.stderr diff --git a/src/test/ui/closures/closure-no-fn-4.rs b/tests/ui/closures/closure-no-fn-4.rs similarity index 100% rename from src/test/ui/closures/closure-no-fn-4.rs rename to tests/ui/closures/closure-no-fn-4.rs diff --git a/src/test/ui/closures/closure-no-fn-4.stderr b/tests/ui/closures/closure-no-fn-4.stderr similarity index 100% rename from src/test/ui/closures/closure-no-fn-4.stderr rename to tests/ui/closures/closure-no-fn-4.stderr diff --git a/src/test/ui/closures/closure-no-fn-5.rs b/tests/ui/closures/closure-no-fn-5.rs similarity index 100% rename from src/test/ui/closures/closure-no-fn-5.rs rename to tests/ui/closures/closure-no-fn-5.rs diff --git a/src/test/ui/closures/closure-no-fn-5.stderr b/tests/ui/closures/closure-no-fn-5.stderr similarity index 100% rename from src/test/ui/closures/closure-no-fn-5.stderr rename to tests/ui/closures/closure-no-fn-5.stderr diff --git a/src/test/ui/closures/closure-referencing-itself-issue-25954.rs b/tests/ui/closures/closure-referencing-itself-issue-25954.rs similarity index 100% rename from src/test/ui/closures/closure-referencing-itself-issue-25954.rs rename to tests/ui/closures/closure-referencing-itself-issue-25954.rs diff --git a/src/test/ui/closures/closure-referencing-itself-issue-25954.stderr b/tests/ui/closures/closure-referencing-itself-issue-25954.stderr similarity index 100% rename from src/test/ui/closures/closure-referencing-itself-issue-25954.stderr rename to tests/ui/closures/closure-referencing-itself-issue-25954.stderr diff --git a/src/test/ui/closures/closure-reform-bad.rs b/tests/ui/closures/closure-reform-bad.rs similarity index 100% rename from src/test/ui/closures/closure-reform-bad.rs rename to tests/ui/closures/closure-reform-bad.rs diff --git a/src/test/ui/closures/closure-reform-bad.stderr b/tests/ui/closures/closure-reform-bad.stderr similarity index 100% rename from src/test/ui/closures/closure-reform-bad.stderr rename to tests/ui/closures/closure-reform-bad.stderr diff --git a/src/test/ui/closures/closure-return-type-mismatch.rs b/tests/ui/closures/closure-return-type-mismatch.rs similarity index 100% rename from src/test/ui/closures/closure-return-type-mismatch.rs rename to tests/ui/closures/closure-return-type-mismatch.rs diff --git a/src/test/ui/closures/closure-return-type-mismatch.stderr b/tests/ui/closures/closure-return-type-mismatch.stderr similarity index 100% rename from src/test/ui/closures/closure-return-type-mismatch.stderr rename to tests/ui/closures/closure-return-type-mismatch.stderr diff --git a/src/test/ui/closures/closure-return-type-must-be-sized.rs b/tests/ui/closures/closure-return-type-must-be-sized.rs similarity index 100% rename from src/test/ui/closures/closure-return-type-must-be-sized.rs rename to tests/ui/closures/closure-return-type-must-be-sized.rs diff --git a/src/test/ui/closures/closure-return-type-must-be-sized.stderr b/tests/ui/closures/closure-return-type-must-be-sized.stderr similarity index 100% rename from src/test/ui/closures/closure-return-type-must-be-sized.stderr rename to tests/ui/closures/closure-return-type-must-be-sized.stderr diff --git a/src/test/ui/closures/closure-wrong-kind.rs b/tests/ui/closures/closure-wrong-kind.rs similarity index 100% rename from src/test/ui/closures/closure-wrong-kind.rs rename to tests/ui/closures/closure-wrong-kind.rs diff --git a/src/test/ui/closures/closure-wrong-kind.stderr b/tests/ui/closures/closure-wrong-kind.stderr similarity index 100% rename from src/test/ui/closures/closure-wrong-kind.stderr rename to tests/ui/closures/closure-wrong-kind.stderr diff --git a/src/test/ui/closures/closure_cap_coerce_many_fail.rs b/tests/ui/closures/closure_cap_coerce_many_fail.rs similarity index 100% rename from src/test/ui/closures/closure_cap_coerce_many_fail.rs rename to tests/ui/closures/closure_cap_coerce_many_fail.rs diff --git a/src/test/ui/closures/closure_cap_coerce_many_fail.stderr b/tests/ui/closures/closure_cap_coerce_many_fail.stderr similarity index 100% rename from src/test/ui/closures/closure_cap_coerce_many_fail.stderr rename to tests/ui/closures/closure_cap_coerce_many_fail.stderr diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_check_pass.rs b/tests/ui/closures/closure_no_cap_coerce_many_check_pass.rs similarity index 100% rename from src/test/ui/closures/closure_no_cap_coerce_many_check_pass.rs rename to tests/ui/closures/closure_no_cap_coerce_many_check_pass.rs diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_run_pass.rs b/tests/ui/closures/closure_no_cap_coerce_many_run_pass.rs similarity index 100% rename from src/test/ui/closures/closure_no_cap_coerce_many_run_pass.rs rename to tests/ui/closures/closure_no_cap_coerce_many_run_pass.rs diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr similarity index 100% rename from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr rename to tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.mir.stderr diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs similarity index 100% rename from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs rename to tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.rs diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr similarity index 100% rename from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr rename to tests/ui/closures/closure_no_cap_coerce_many_unsafe_0.thir.stderr diff --git a/src/test/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs b/tests/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs similarity index 100% rename from src/test/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs rename to tests/ui/closures/closure_no_cap_coerce_many_unsafe_1.rs diff --git a/src/test/ui/closures/closure_promotion.rs b/tests/ui/closures/closure_promotion.rs similarity index 100% rename from src/test/ui/closures/closure_promotion.rs rename to tests/ui/closures/closure_promotion.rs diff --git a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr similarity index 100% rename from src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr rename to tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.mir.stderr diff --git a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs similarity index 100% rename from src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs rename to tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.rs diff --git a/src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr b/tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr similarity index 100% rename from src/test/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr rename to tests/ui/closures/coerce-unsafe-closure-to-unsafe-fn-ptr.thir.stderr diff --git a/src/test/ui/closures/coerce-unsafe-to-closure.rs b/tests/ui/closures/coerce-unsafe-to-closure.rs similarity index 100% rename from src/test/ui/closures/coerce-unsafe-to-closure.rs rename to tests/ui/closures/coerce-unsafe-to-closure.rs diff --git a/src/test/ui/closures/coerce-unsafe-to-closure.stderr b/tests/ui/closures/coerce-unsafe-to-closure.stderr similarity index 100% rename from src/test/ui/closures/coerce-unsafe-to-closure.stderr rename to tests/ui/closures/coerce-unsafe-to-closure.stderr diff --git a/src/test/ui/closures/deeply-nested_closures.rs b/tests/ui/closures/deeply-nested_closures.rs similarity index 100% rename from src/test/ui/closures/deeply-nested_closures.rs rename to tests/ui/closures/deeply-nested_closures.rs diff --git a/src/test/ui/closures/diverging-closure.rs b/tests/ui/closures/diverging-closure.rs similarity index 100% rename from src/test/ui/closures/diverging-closure.rs rename to tests/ui/closures/diverging-closure.rs diff --git a/src/test/ui/closures/issue-101696.rs b/tests/ui/closures/issue-101696.rs similarity index 100% rename from src/test/ui/closures/issue-101696.rs rename to tests/ui/closures/issue-101696.rs diff --git a/src/test/ui/closures/issue-102089-multiple-opaque-cast.rs b/tests/ui/closures/issue-102089-multiple-opaque-cast.rs similarity index 100% rename from src/test/ui/closures/issue-102089-multiple-opaque-cast.rs rename to tests/ui/closures/issue-102089-multiple-opaque-cast.rs diff --git a/src/test/ui/closures/issue-10398.rs b/tests/ui/closures/issue-10398.rs similarity index 100% rename from src/test/ui/closures/issue-10398.rs rename to tests/ui/closures/issue-10398.rs diff --git a/src/test/ui/closures/issue-10398.stderr b/tests/ui/closures/issue-10398.stderr similarity index 100% rename from src/test/ui/closures/issue-10398.stderr rename to tests/ui/closures/issue-10398.stderr diff --git a/src/test/ui/closures/issue-23012-supertrait-signature-inference.rs b/tests/ui/closures/issue-23012-supertrait-signature-inference.rs similarity index 100% rename from src/test/ui/closures/issue-23012-supertrait-signature-inference.rs rename to tests/ui/closures/issue-23012-supertrait-signature-inference.rs diff --git a/src/test/ui/closures/issue-41366.rs b/tests/ui/closures/issue-41366.rs similarity index 100% rename from src/test/ui/closures/issue-41366.rs rename to tests/ui/closures/issue-41366.rs diff --git a/src/test/ui/closures/issue-42463.rs b/tests/ui/closures/issue-42463.rs similarity index 100% rename from src/test/ui/closures/issue-42463.rs rename to tests/ui/closures/issue-42463.rs diff --git a/src/test/ui/closures/issue-46742.rs b/tests/ui/closures/issue-46742.rs similarity index 100% rename from src/test/ui/closures/issue-46742.rs rename to tests/ui/closures/issue-46742.rs diff --git a/src/test/ui/closures/issue-48109.rs b/tests/ui/closures/issue-48109.rs similarity index 100% rename from src/test/ui/closures/issue-48109.rs rename to tests/ui/closures/issue-48109.rs diff --git a/src/test/ui/closures/issue-52437.rs b/tests/ui/closures/issue-52437.rs similarity index 100% rename from src/test/ui/closures/issue-52437.rs rename to tests/ui/closures/issue-52437.rs diff --git a/src/test/ui/closures/issue-52437.stderr b/tests/ui/closures/issue-52437.stderr similarity index 100% rename from src/test/ui/closures/issue-52437.stderr rename to tests/ui/closures/issue-52437.stderr diff --git a/src/test/ui/closures/issue-67123.rs b/tests/ui/closures/issue-67123.rs similarity index 100% rename from src/test/ui/closures/issue-67123.rs rename to tests/ui/closures/issue-67123.rs diff --git a/src/test/ui/closures/issue-67123.stderr b/tests/ui/closures/issue-67123.stderr similarity index 100% rename from src/test/ui/closures/issue-67123.stderr rename to tests/ui/closures/issue-67123.stderr diff --git a/src/test/ui/closures/issue-6801.rs b/tests/ui/closures/issue-6801.rs similarity index 100% rename from src/test/ui/closures/issue-6801.rs rename to tests/ui/closures/issue-6801.rs diff --git a/src/test/ui/closures/issue-6801.stderr b/tests/ui/closures/issue-6801.stderr similarity index 100% rename from src/test/ui/closures/issue-6801.stderr rename to tests/ui/closures/issue-6801.stderr diff --git a/src/test/ui/closures/issue-68025.rs b/tests/ui/closures/issue-68025.rs similarity index 100% rename from src/test/ui/closures/issue-68025.rs rename to tests/ui/closures/issue-68025.rs diff --git a/src/test/ui/closures/issue-72408-nested-closures-exponential.rs b/tests/ui/closures/issue-72408-nested-closures-exponential.rs similarity index 100% rename from src/test/ui/closures/issue-72408-nested-closures-exponential.rs rename to tests/ui/closures/issue-72408-nested-closures-exponential.rs diff --git a/src/test/ui/closures/issue-78720.rs b/tests/ui/closures/issue-78720.rs similarity index 100% rename from src/test/ui/closures/issue-78720.rs rename to tests/ui/closures/issue-78720.rs diff --git a/src/test/ui/closures/issue-78720.stderr b/tests/ui/closures/issue-78720.stderr similarity index 100% rename from src/test/ui/closures/issue-78720.stderr rename to tests/ui/closures/issue-78720.stderr diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-closure.rs b/tests/ui/closures/issue-80313-mutable-borrow-in-closure.rs similarity index 100% rename from src/test/ui/closures/issue-80313-mutable-borrow-in-closure.rs rename to tests/ui/closures/issue-80313-mutable-borrow-in-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-closure.stderr b/tests/ui/closures/issue-80313-mutable-borrow-in-closure.stderr similarity index 100% rename from src/test/ui/closures/issue-80313-mutable-borrow-in-closure.stderr rename to tests/ui/closures/issue-80313-mutable-borrow-in-closure.stderr diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs b/tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs similarity index 100% rename from src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs rename to tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr b/tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr similarity index 100% rename from src/test/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr rename to tests/ui/closures/issue-80313-mutable-borrow-in-move-closure.stderr diff --git a/src/test/ui/closures/issue-80313-mutation-in-closure.rs b/tests/ui/closures/issue-80313-mutation-in-closure.rs similarity index 100% rename from src/test/ui/closures/issue-80313-mutation-in-closure.rs rename to tests/ui/closures/issue-80313-mutation-in-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutation-in-closure.stderr b/tests/ui/closures/issue-80313-mutation-in-closure.stderr similarity index 100% rename from src/test/ui/closures/issue-80313-mutation-in-closure.stderr rename to tests/ui/closures/issue-80313-mutation-in-closure.stderr diff --git a/src/test/ui/closures/issue-80313-mutation-in-move-closure.rs b/tests/ui/closures/issue-80313-mutation-in-move-closure.rs similarity index 100% rename from src/test/ui/closures/issue-80313-mutation-in-move-closure.rs rename to tests/ui/closures/issue-80313-mutation-in-move-closure.rs diff --git a/src/test/ui/closures/issue-80313-mutation-in-move-closure.stderr b/tests/ui/closures/issue-80313-mutation-in-move-closure.stderr similarity index 100% rename from src/test/ui/closures/issue-80313-mutation-in-move-closure.stderr rename to tests/ui/closures/issue-80313-mutation-in-move-closure.stderr diff --git a/src/test/ui/closures/issue-81700-mut-borrow.rs b/tests/ui/closures/issue-81700-mut-borrow.rs similarity index 100% rename from src/test/ui/closures/issue-81700-mut-borrow.rs rename to tests/ui/closures/issue-81700-mut-borrow.rs diff --git a/src/test/ui/closures/issue-81700-mut-borrow.stderr b/tests/ui/closures/issue-81700-mut-borrow.stderr similarity index 100% rename from src/test/ui/closures/issue-81700-mut-borrow.stderr rename to tests/ui/closures/issue-81700-mut-borrow.stderr diff --git a/src/test/ui/closures/issue-82438-mut-without-upvar.rs b/tests/ui/closures/issue-82438-mut-without-upvar.rs similarity index 100% rename from src/test/ui/closures/issue-82438-mut-without-upvar.rs rename to tests/ui/closures/issue-82438-mut-without-upvar.rs diff --git a/src/test/ui/closures/issue-82438-mut-without-upvar.stderr b/tests/ui/closures/issue-82438-mut-without-upvar.stderr similarity index 100% rename from src/test/ui/closures/issue-82438-mut-without-upvar.stderr rename to tests/ui/closures/issue-82438-mut-without-upvar.stderr diff --git a/src/test/ui/closures/issue-84044-drop-non-mut.rs b/tests/ui/closures/issue-84044-drop-non-mut.rs similarity index 100% rename from src/test/ui/closures/issue-84044-drop-non-mut.rs rename to tests/ui/closures/issue-84044-drop-non-mut.rs diff --git a/src/test/ui/closures/issue-84044-drop-non-mut.stderr b/tests/ui/closures/issue-84044-drop-non-mut.stderr similarity index 100% rename from src/test/ui/closures/issue-84044-drop-non-mut.stderr rename to tests/ui/closures/issue-84044-drop-non-mut.stderr diff --git a/src/test/ui/closures/issue-84128.rs b/tests/ui/closures/issue-84128.rs similarity index 100% rename from src/test/ui/closures/issue-84128.rs rename to tests/ui/closures/issue-84128.rs diff --git a/src/test/ui/closures/issue-84128.stderr b/tests/ui/closures/issue-84128.stderr similarity index 100% rename from src/test/ui/closures/issue-84128.stderr rename to tests/ui/closures/issue-84128.stderr diff --git a/src/test/ui/closures/issue-87461.rs b/tests/ui/closures/issue-87461.rs similarity index 100% rename from src/test/ui/closures/issue-87461.rs rename to tests/ui/closures/issue-87461.rs diff --git a/src/test/ui/closures/issue-87461.stderr b/tests/ui/closures/issue-87461.stderr similarity index 100% rename from src/test/ui/closures/issue-87461.stderr rename to tests/ui/closures/issue-87461.stderr diff --git a/src/test/ui/closures/issue-87814-1.rs b/tests/ui/closures/issue-87814-1.rs similarity index 100% rename from src/test/ui/closures/issue-87814-1.rs rename to tests/ui/closures/issue-87814-1.rs diff --git a/src/test/ui/closures/issue-87814-2.rs b/tests/ui/closures/issue-87814-2.rs similarity index 100% rename from src/test/ui/closures/issue-87814-2.rs rename to tests/ui/closures/issue-87814-2.rs diff --git a/src/test/ui/closures/issue-90871.rs b/tests/ui/closures/issue-90871.rs similarity index 100% rename from src/test/ui/closures/issue-90871.rs rename to tests/ui/closures/issue-90871.rs diff --git a/src/test/ui/closures/issue-90871.stderr b/tests/ui/closures/issue-90871.stderr similarity index 100% rename from src/test/ui/closures/issue-90871.stderr rename to tests/ui/closures/issue-90871.stderr diff --git a/src/test/ui/closures/issue-97607.rs b/tests/ui/closures/issue-97607.rs similarity index 100% rename from src/test/ui/closures/issue-97607.rs rename to tests/ui/closures/issue-97607.rs diff --git a/src/test/ui/closures/issue-99565.rs b/tests/ui/closures/issue-99565.rs similarity index 100% rename from src/test/ui/closures/issue-99565.rs rename to tests/ui/closures/issue-99565.rs diff --git a/src/test/ui/closures/issue-99565.stderr b/tests/ui/closures/issue-99565.stderr similarity index 100% rename from src/test/ui/closures/issue-99565.stderr rename to tests/ui/closures/issue-99565.stderr diff --git a/src/test/ui/closures/local-type-mix.rs b/tests/ui/closures/local-type-mix.rs similarity index 100% rename from src/test/ui/closures/local-type-mix.rs rename to tests/ui/closures/local-type-mix.rs diff --git a/src/test/ui/closures/local-type-mix.stderr b/tests/ui/closures/local-type-mix.stderr similarity index 100% rename from src/test/ui/closures/local-type-mix.stderr rename to tests/ui/closures/local-type-mix.stderr diff --git a/src/test/ui/closures/multiple-fn-bounds.rs b/tests/ui/closures/multiple-fn-bounds.rs similarity index 100% rename from src/test/ui/closures/multiple-fn-bounds.rs rename to tests/ui/closures/multiple-fn-bounds.rs diff --git a/src/test/ui/closures/multiple-fn-bounds.stderr b/tests/ui/closures/multiple-fn-bounds.stderr similarity index 100% rename from src/test/ui/closures/multiple-fn-bounds.stderr rename to tests/ui/closures/multiple-fn-bounds.stderr diff --git a/src/test/ui/closures/old-closure-arg-call-as.rs b/tests/ui/closures/old-closure-arg-call-as.rs similarity index 100% rename from src/test/ui/closures/old-closure-arg-call-as.rs rename to tests/ui/closures/old-closure-arg-call-as.rs diff --git a/src/test/ui/closures/old-closure-arg.rs b/tests/ui/closures/old-closure-arg.rs similarity index 100% rename from src/test/ui/closures/old-closure-arg.rs rename to tests/ui/closures/old-closure-arg.rs diff --git a/src/test/ui/closures/old-closure-explicit-types.rs b/tests/ui/closures/old-closure-explicit-types.rs similarity index 100% rename from src/test/ui/closures/old-closure-explicit-types.rs rename to tests/ui/closures/old-closure-explicit-types.rs diff --git a/src/test/ui/closures/old-closure-expr-precedence.rs b/tests/ui/closures/old-closure-expr-precedence.rs similarity index 100% rename from src/test/ui/closures/old-closure-expr-precedence.rs rename to tests/ui/closures/old-closure-expr-precedence.rs diff --git a/src/test/ui/closures/old-closure-expr-precedence.stderr b/tests/ui/closures/old-closure-expr-precedence.stderr similarity index 100% rename from src/test/ui/closures/old-closure-expr-precedence.stderr rename to tests/ui/closures/old-closure-expr-precedence.stderr diff --git a/src/test/ui/closures/old-closure-expression-remove-semicolon.fixed b/tests/ui/closures/old-closure-expression-remove-semicolon.fixed similarity index 100% rename from src/test/ui/closures/old-closure-expression-remove-semicolon.fixed rename to tests/ui/closures/old-closure-expression-remove-semicolon.fixed diff --git a/src/test/ui/closures/old-closure-expression-remove-semicolon.rs b/tests/ui/closures/old-closure-expression-remove-semicolon.rs similarity index 100% rename from src/test/ui/closures/old-closure-expression-remove-semicolon.rs rename to tests/ui/closures/old-closure-expression-remove-semicolon.rs diff --git a/src/test/ui/closures/old-closure-expression-remove-semicolon.stderr b/tests/ui/closures/old-closure-expression-remove-semicolon.stderr similarity index 100% rename from src/test/ui/closures/old-closure-expression-remove-semicolon.stderr rename to tests/ui/closures/old-closure-expression-remove-semicolon.stderr diff --git a/src/test/ui/closures/old-closure-fn-coerce.rs b/tests/ui/closures/old-closure-fn-coerce.rs similarity index 100% rename from src/test/ui/closures/old-closure-fn-coerce.rs rename to tests/ui/closures/old-closure-fn-coerce.rs diff --git a/src/test/ui/closures/old-closure-iter-1.rs b/tests/ui/closures/old-closure-iter-1.rs similarity index 100% rename from src/test/ui/closures/old-closure-iter-1.rs rename to tests/ui/closures/old-closure-iter-1.rs diff --git a/src/test/ui/closures/old-closure-iter-2.rs b/tests/ui/closures/old-closure-iter-2.rs similarity index 100% rename from src/test/ui/closures/old-closure-iter-2.rs rename to tests/ui/closures/old-closure-iter-2.rs diff --git a/src/test/ui/closures/once-move-out-on-heap.rs b/tests/ui/closures/once-move-out-on-heap.rs similarity index 100% rename from src/test/ui/closures/once-move-out-on-heap.rs rename to tests/ui/closures/once-move-out-on-heap.rs diff --git a/src/test/ui/closures/print/closure-print-generic-1.rs b/tests/ui/closures/print/closure-print-generic-1.rs similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-1.rs rename to tests/ui/closures/print/closure-print-generic-1.rs diff --git a/src/test/ui/closures/print/closure-print-generic-1.stderr b/tests/ui/closures/print/closure-print-generic-1.stderr similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-1.stderr rename to tests/ui/closures/print/closure-print-generic-1.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-2.rs b/tests/ui/closures/print/closure-print-generic-2.rs similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-2.rs rename to tests/ui/closures/print/closure-print-generic-2.rs diff --git a/src/test/ui/closures/print/closure-print-generic-2.stderr b/tests/ui/closures/print/closure-print-generic-2.stderr similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-2.stderr rename to tests/ui/closures/print/closure-print-generic-2.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs b/tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs rename to tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.rs diff --git a/src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr b/tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr rename to tests/ui/closures/print/closure-print-generic-trim-off-verbose-2.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-1.rs b/tests/ui/closures/print/closure-print-generic-verbose-1.rs similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-verbose-1.rs rename to tests/ui/closures/print/closure-print-generic-verbose-1.rs diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-1.stderr b/tests/ui/closures/print/closure-print-generic-verbose-1.stderr similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-verbose-1.stderr rename to tests/ui/closures/print/closure-print-generic-verbose-1.stderr diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-2.rs b/tests/ui/closures/print/closure-print-generic-verbose-2.rs similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-verbose-2.rs rename to tests/ui/closures/print/closure-print-generic-verbose-2.rs diff --git a/src/test/ui/closures/print/closure-print-generic-verbose-2.stderr b/tests/ui/closures/print/closure-print-generic-verbose-2.stderr similarity index 100% rename from src/test/ui/closures/print/closure-print-generic-verbose-2.stderr rename to tests/ui/closures/print/closure-print-generic-verbose-2.stderr diff --git a/src/test/ui/closures/print/closure-print-verbose.rs b/tests/ui/closures/print/closure-print-verbose.rs similarity index 100% rename from src/test/ui/closures/print/closure-print-verbose.rs rename to tests/ui/closures/print/closure-print-verbose.rs diff --git a/src/test/ui/closures/print/closure-print-verbose.stderr b/tests/ui/closures/print/closure-print-verbose.stderr similarity index 100% rename from src/test/ui/closures/print/closure-print-verbose.stderr rename to tests/ui/closures/print/closure-print-verbose.stderr diff --git a/src/test/ui/closures/semistatement-in-lambda.rs b/tests/ui/closures/semistatement-in-lambda.rs similarity index 100% rename from src/test/ui/closures/semistatement-in-lambda.rs rename to tests/ui/closures/semistatement-in-lambda.rs diff --git a/src/test/ui/closures/supertrait-hint-cycle-2.rs b/tests/ui/closures/supertrait-hint-cycle-2.rs similarity index 100% rename from src/test/ui/closures/supertrait-hint-cycle-2.rs rename to tests/ui/closures/supertrait-hint-cycle-2.rs diff --git a/src/test/ui/closures/supertrait-hint-cycle-3.rs b/tests/ui/closures/supertrait-hint-cycle-3.rs similarity index 100% rename from src/test/ui/closures/supertrait-hint-cycle-3.rs rename to tests/ui/closures/supertrait-hint-cycle-3.rs diff --git a/src/test/ui/closures/supertrait-hint-cycle.rs b/tests/ui/closures/supertrait-hint-cycle.rs similarity index 100% rename from src/test/ui/closures/supertrait-hint-cycle.rs rename to tests/ui/closures/supertrait-hint-cycle.rs diff --git a/src/test/ui/closures/supertrait-hint-references-assoc-ty.rs b/tests/ui/closures/supertrait-hint-references-assoc-ty.rs similarity index 100% rename from src/test/ui/closures/supertrait-hint-references-assoc-ty.rs rename to tests/ui/closures/supertrait-hint-references-assoc-ty.rs diff --git a/src/test/ui/closures/thir-unsafeck-issue-85871.rs b/tests/ui/closures/thir-unsafeck-issue-85871.rs similarity index 100% rename from src/test/ui/closures/thir-unsafeck-issue-85871.rs rename to tests/ui/closures/thir-unsafeck-issue-85871.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-registers.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-registers.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-registers.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-registers.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-stack.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/gate_test.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/issue-83475.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-registers.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-registers.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-registers.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-registers.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/trustzone-only.stderr diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.rs similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.rs rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.rs diff --git a/src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.stderr similarity index 100% rename from src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.stderr rename to tests/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.stderr diff --git a/src/test/ui/codegen/auxiliary/issue-97708-aux.rs b/tests/ui/codegen/auxiliary/issue-97708-aux.rs similarity index 100% rename from src/test/ui/codegen/auxiliary/issue-97708-aux.rs rename to tests/ui/codegen/auxiliary/issue-97708-aux.rs diff --git a/src/test/ui/codegen/auxiliary/llvm_pr32379.rs b/tests/ui/codegen/auxiliary/llvm_pr32379.rs similarity index 100% rename from src/test/ui/codegen/auxiliary/llvm_pr32379.rs rename to tests/ui/codegen/auxiliary/llvm_pr32379.rs diff --git a/src/test/ui/codegen/init-large-type.rs b/tests/ui/codegen/init-large-type.rs similarity index 100% rename from src/test/ui/codegen/init-large-type.rs rename to tests/ui/codegen/init-large-type.rs diff --git a/src/test/ui/codegen/issue-101585-128bit-repeat.rs b/tests/ui/codegen/issue-101585-128bit-repeat.rs similarity index 100% rename from src/test/ui/codegen/issue-101585-128bit-repeat.rs rename to tests/ui/codegen/issue-101585-128bit-repeat.rs diff --git a/src/test/ui/codegen/issue-16602-1.rs b/tests/ui/codegen/issue-16602-1.rs similarity index 100% rename from src/test/ui/codegen/issue-16602-1.rs rename to tests/ui/codegen/issue-16602-1.rs diff --git a/src/test/ui/codegen/issue-16602-2.rs b/tests/ui/codegen/issue-16602-2.rs similarity index 100% rename from src/test/ui/codegen/issue-16602-2.rs rename to tests/ui/codegen/issue-16602-2.rs diff --git a/src/test/ui/codegen/issue-16602-3.rs b/tests/ui/codegen/issue-16602-3.rs similarity index 100% rename from src/test/ui/codegen/issue-16602-3.rs rename to tests/ui/codegen/issue-16602-3.rs diff --git a/src/test/ui/codegen/issue-28950.rs b/tests/ui/codegen/issue-28950.rs similarity index 100% rename from src/test/ui/codegen/issue-28950.rs rename to tests/ui/codegen/issue-28950.rs diff --git a/src/test/ui/codegen/issue-55976.rs b/tests/ui/codegen/issue-55976.rs similarity index 100% rename from src/test/ui/codegen/issue-55976.rs rename to tests/ui/codegen/issue-55976.rs diff --git a/src/test/ui/codegen/issue-63787.rs b/tests/ui/codegen/issue-63787.rs similarity index 100% rename from src/test/ui/codegen/issue-63787.rs rename to tests/ui/codegen/issue-63787.rs diff --git a/src/test/ui/codegen/issue-64401.rs b/tests/ui/codegen/issue-64401.rs similarity index 100% rename from src/test/ui/codegen/issue-64401.rs rename to tests/ui/codegen/issue-64401.rs diff --git a/src/test/ui/codegen/issue-82859-slice-miscompile.rs b/tests/ui/codegen/issue-82859-slice-miscompile.rs similarity index 100% rename from src/test/ui/codegen/issue-82859-slice-miscompile.rs rename to tests/ui/codegen/issue-82859-slice-miscompile.rs diff --git a/src/test/ui/codegen/issue-88043-bb-does-not-have-terminator.rs b/tests/ui/codegen/issue-88043-bb-does-not-have-terminator.rs similarity index 100% rename from src/test/ui/codegen/issue-88043-bb-does-not-have-terminator.rs rename to tests/ui/codegen/issue-88043-bb-does-not-have-terminator.rs diff --git a/src/test/ui/codegen/issue-97708.rs b/tests/ui/codegen/issue-97708.rs similarity index 100% rename from src/test/ui/codegen/issue-97708.rs rename to tests/ui/codegen/issue-97708.rs diff --git a/src/test/ui/codegen/issue-99551.rs b/tests/ui/codegen/issue-99551.rs similarity index 100% rename from src/test/ui/codegen/issue-99551.rs rename to tests/ui/codegen/issue-99551.rs diff --git a/src/test/ui/codegen/llvm-pr32379.rs b/tests/ui/codegen/llvm-pr32379.rs similarity index 100% rename from src/test/ui/codegen/llvm-pr32379.rs rename to tests/ui/codegen/llvm-pr32379.rs diff --git a/src/test/ui/codemap_tests/bad-format-args.rs b/tests/ui/codemap_tests/bad-format-args.rs similarity index 100% rename from src/test/ui/codemap_tests/bad-format-args.rs rename to tests/ui/codemap_tests/bad-format-args.rs diff --git a/src/test/ui/codemap_tests/bad-format-args.stderr b/tests/ui/codemap_tests/bad-format-args.stderr similarity index 100% rename from src/test/ui/codemap_tests/bad-format-args.stderr rename to tests/ui/codemap_tests/bad-format-args.stderr diff --git a/src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.rs b/tests/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.rs similarity index 100% rename from src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.rs rename to tests/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.rs diff --git a/src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr b/tests/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr similarity index 100% rename from src/test/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr rename to tests/ui/codemap_tests/coherence-overlapping-inherent-impl-trait.stderr diff --git a/src/test/ui/codemap_tests/empty_span.rs b/tests/ui/codemap_tests/empty_span.rs similarity index 100% rename from src/test/ui/codemap_tests/empty_span.rs rename to tests/ui/codemap_tests/empty_span.rs diff --git a/src/test/ui/codemap_tests/empty_span.stderr b/tests/ui/codemap_tests/empty_span.stderr similarity index 100% rename from src/test/ui/codemap_tests/empty_span.stderr rename to tests/ui/codemap_tests/empty_span.stderr diff --git a/src/test/ui/codemap_tests/huge_multispan_highlight.rs b/tests/ui/codemap_tests/huge_multispan_highlight.rs similarity index 100% rename from src/test/ui/codemap_tests/huge_multispan_highlight.rs rename to tests/ui/codemap_tests/huge_multispan_highlight.rs diff --git a/src/test/ui/codemap_tests/huge_multispan_highlight.stderr b/tests/ui/codemap_tests/huge_multispan_highlight.stderr similarity index 100% rename from src/test/ui/codemap_tests/huge_multispan_highlight.stderr rename to tests/ui/codemap_tests/huge_multispan_highlight.stderr diff --git a/src/test/ui/codemap_tests/issue-11715.rs b/tests/ui/codemap_tests/issue-11715.rs similarity index 100% rename from src/test/ui/codemap_tests/issue-11715.rs rename to tests/ui/codemap_tests/issue-11715.rs diff --git a/src/test/ui/codemap_tests/issue-11715.stderr b/tests/ui/codemap_tests/issue-11715.stderr similarity index 100% rename from src/test/ui/codemap_tests/issue-11715.stderr rename to tests/ui/codemap_tests/issue-11715.stderr diff --git a/src/test/ui/codemap_tests/issue-28308.rs b/tests/ui/codemap_tests/issue-28308.rs similarity index 100% rename from src/test/ui/codemap_tests/issue-28308.rs rename to tests/ui/codemap_tests/issue-28308.rs diff --git a/src/test/ui/codemap_tests/issue-28308.stderr b/tests/ui/codemap_tests/issue-28308.stderr similarity index 100% rename from src/test/ui/codemap_tests/issue-28308.stderr rename to tests/ui/codemap_tests/issue-28308.stderr diff --git a/src/test/ui/codemap_tests/one_line.rs b/tests/ui/codemap_tests/one_line.rs similarity index 100% rename from src/test/ui/codemap_tests/one_line.rs rename to tests/ui/codemap_tests/one_line.rs diff --git a/src/test/ui/codemap_tests/one_line.stderr b/tests/ui/codemap_tests/one_line.stderr similarity index 100% rename from src/test/ui/codemap_tests/one_line.stderr rename to tests/ui/codemap_tests/one_line.stderr diff --git a/src/test/ui/codemap_tests/overlapping_inherent_impls.rs b/tests/ui/codemap_tests/overlapping_inherent_impls.rs similarity index 100% rename from src/test/ui/codemap_tests/overlapping_inherent_impls.rs rename to tests/ui/codemap_tests/overlapping_inherent_impls.rs diff --git a/src/test/ui/codemap_tests/overlapping_inherent_impls.stderr b/tests/ui/codemap_tests/overlapping_inherent_impls.stderr similarity index 100% rename from src/test/ui/codemap_tests/overlapping_inherent_impls.stderr rename to tests/ui/codemap_tests/overlapping_inherent_impls.stderr diff --git a/src/test/ui/codemap_tests/tab.rs b/tests/ui/codemap_tests/tab.rs similarity index 100% rename from src/test/ui/codemap_tests/tab.rs rename to tests/ui/codemap_tests/tab.rs diff --git a/src/test/ui/codemap_tests/tab.stderr b/tests/ui/codemap_tests/tab.stderr similarity index 100% rename from src/test/ui/codemap_tests/tab.stderr rename to tests/ui/codemap_tests/tab.stderr diff --git a/src/test/ui/codemap_tests/tab_2.rs b/tests/ui/codemap_tests/tab_2.rs similarity index 100% rename from src/test/ui/codemap_tests/tab_2.rs rename to tests/ui/codemap_tests/tab_2.rs diff --git a/src/test/ui/codemap_tests/tab_2.stderr b/tests/ui/codemap_tests/tab_2.stderr similarity index 100% rename from src/test/ui/codemap_tests/tab_2.stderr rename to tests/ui/codemap_tests/tab_2.stderr diff --git a/src/test/ui/codemap_tests/tab_3.rs b/tests/ui/codemap_tests/tab_3.rs similarity index 100% rename from src/test/ui/codemap_tests/tab_3.rs rename to tests/ui/codemap_tests/tab_3.rs diff --git a/src/test/ui/codemap_tests/tab_3.stderr b/tests/ui/codemap_tests/tab_3.stderr similarity index 100% rename from src/test/ui/codemap_tests/tab_3.stderr rename to tests/ui/codemap_tests/tab_3.stderr diff --git a/src/test/ui/codemap_tests/two_files.rs b/tests/ui/codemap_tests/two_files.rs similarity index 100% rename from src/test/ui/codemap_tests/two_files.rs rename to tests/ui/codemap_tests/two_files.rs diff --git a/src/test/ui/codemap_tests/two_files.stderr b/tests/ui/codemap_tests/two_files.stderr similarity index 100% rename from src/test/ui/codemap_tests/two_files.stderr rename to tests/ui/codemap_tests/two_files.stderr diff --git a/src/test/ui/codemap_tests/two_files_data.rs b/tests/ui/codemap_tests/two_files_data.rs similarity index 100% rename from src/test/ui/codemap_tests/two_files_data.rs rename to tests/ui/codemap_tests/two_files_data.rs diff --git a/src/test/ui/codemap_tests/unicode.expanded.stdout b/tests/ui/codemap_tests/unicode.expanded.stdout similarity index 100% rename from src/test/ui/codemap_tests/unicode.expanded.stdout rename to tests/ui/codemap_tests/unicode.expanded.stdout diff --git a/src/test/ui/codemap_tests/unicode.normal.stderr b/tests/ui/codemap_tests/unicode.normal.stderr similarity index 100% rename from src/test/ui/codemap_tests/unicode.normal.stderr rename to tests/ui/codemap_tests/unicode.normal.stderr diff --git a/src/test/ui/codemap_tests/unicode.rs b/tests/ui/codemap_tests/unicode.rs similarity index 100% rename from src/test/ui/codemap_tests/unicode.rs rename to tests/ui/codemap_tests/unicode.rs diff --git a/src/test/ui/codemap_tests/unicode_2.rs b/tests/ui/codemap_tests/unicode_2.rs similarity index 100% rename from src/test/ui/codemap_tests/unicode_2.rs rename to tests/ui/codemap_tests/unicode_2.rs diff --git a/src/test/ui/codemap_tests/unicode_2.stderr b/tests/ui/codemap_tests/unicode_2.stderr similarity index 100% rename from src/test/ui/codemap_tests/unicode_2.stderr rename to tests/ui/codemap_tests/unicode_2.stderr diff --git a/src/test/ui/codemap_tests/unicode_3.rs b/tests/ui/codemap_tests/unicode_3.rs similarity index 100% rename from src/test/ui/codemap_tests/unicode_3.rs rename to tests/ui/codemap_tests/unicode_3.rs diff --git a/src/test/ui/codemap_tests/unicode_3.stderr b/tests/ui/codemap_tests/unicode_3.stderr similarity index 100% rename from src/test/ui/codemap_tests/unicode_3.stderr rename to tests/ui/codemap_tests/unicode_3.stderr diff --git a/src/test/ui/coercion/auxiliary/issue-39823.rs b/tests/ui/coercion/auxiliary/issue-39823.rs similarity index 100% rename from src/test/ui/coercion/auxiliary/issue-39823.rs rename to tests/ui/coercion/auxiliary/issue-39823.rs diff --git a/src/test/ui/coercion/coerce-block-tail-26978.rs b/tests/ui/coercion/coerce-block-tail-26978.rs similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-26978.rs rename to tests/ui/coercion/coerce-block-tail-26978.rs diff --git a/src/test/ui/coercion/coerce-block-tail-26978.stderr b/tests/ui/coercion/coerce-block-tail-26978.stderr similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-26978.stderr rename to tests/ui/coercion/coerce-block-tail-26978.stderr diff --git a/src/test/ui/coercion/coerce-block-tail-57749.rs b/tests/ui/coercion/coerce-block-tail-57749.rs similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-57749.rs rename to tests/ui/coercion/coerce-block-tail-57749.rs diff --git a/src/test/ui/coercion/coerce-block-tail-57749.stderr b/tests/ui/coercion/coerce-block-tail-57749.stderr similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-57749.stderr rename to tests/ui/coercion/coerce-block-tail-57749.stderr diff --git a/src/test/ui/coercion/coerce-block-tail-83783.rs b/tests/ui/coercion/coerce-block-tail-83783.rs similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-83783.rs rename to tests/ui/coercion/coerce-block-tail-83783.rs diff --git a/src/test/ui/coercion/coerce-block-tail-83783.stderr b/tests/ui/coercion/coerce-block-tail-83783.stderr similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-83783.stderr rename to tests/ui/coercion/coerce-block-tail-83783.stderr diff --git a/src/test/ui/coercion/coerce-block-tail-83850.rs b/tests/ui/coercion/coerce-block-tail-83850.rs similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-83850.rs rename to tests/ui/coercion/coerce-block-tail-83850.rs diff --git a/src/test/ui/coercion/coerce-block-tail-83850.stderr b/tests/ui/coercion/coerce-block-tail-83850.stderr similarity index 100% rename from src/test/ui/coercion/coerce-block-tail-83850.stderr rename to tests/ui/coercion/coerce-block-tail-83850.stderr diff --git a/src/test/ui/coercion/coerce-block-tail.rs b/tests/ui/coercion/coerce-block-tail.rs similarity index 100% rename from src/test/ui/coercion/coerce-block-tail.rs rename to tests/ui/coercion/coerce-block-tail.rs diff --git a/src/test/ui/coercion/coerce-block-tail.stderr b/tests/ui/coercion/coerce-block-tail.stderr similarity index 100% rename from src/test/ui/coercion/coerce-block-tail.stderr rename to tests/ui/coercion/coerce-block-tail.stderr diff --git a/src/test/ui/coercion/coerce-expect-unsized-ascribed.rs b/tests/ui/coercion/coerce-expect-unsized-ascribed.rs similarity index 100% rename from src/test/ui/coercion/coerce-expect-unsized-ascribed.rs rename to tests/ui/coercion/coerce-expect-unsized-ascribed.rs diff --git a/src/test/ui/coercion/coerce-expect-unsized-ascribed.stderr b/tests/ui/coercion/coerce-expect-unsized-ascribed.stderr similarity index 100% rename from src/test/ui/coercion/coerce-expect-unsized-ascribed.stderr rename to tests/ui/coercion/coerce-expect-unsized-ascribed.stderr diff --git a/src/test/ui/coercion/coerce-expect-unsized.rs b/tests/ui/coercion/coerce-expect-unsized.rs similarity index 100% rename from src/test/ui/coercion/coerce-expect-unsized.rs rename to tests/ui/coercion/coerce-expect-unsized.rs diff --git a/src/test/ui/coercion/coerce-issue-49593-box-never-windows.nofallback.stderr b/tests/ui/coercion/coerce-issue-49593-box-never-windows.nofallback.stderr similarity index 100% rename from src/test/ui/coercion/coerce-issue-49593-box-never-windows.nofallback.stderr rename to tests/ui/coercion/coerce-issue-49593-box-never-windows.nofallback.stderr diff --git a/src/test/ui/coercion/coerce-issue-49593-box-never-windows.rs b/tests/ui/coercion/coerce-issue-49593-box-never-windows.rs similarity index 100% rename from src/test/ui/coercion/coerce-issue-49593-box-never-windows.rs rename to tests/ui/coercion/coerce-issue-49593-box-never-windows.rs diff --git a/src/test/ui/coercion/coerce-issue-49593-box-never.nofallback.stderr b/tests/ui/coercion/coerce-issue-49593-box-never.nofallback.stderr similarity index 100% rename from src/test/ui/coercion/coerce-issue-49593-box-never.nofallback.stderr rename to tests/ui/coercion/coerce-issue-49593-box-never.nofallback.stderr diff --git a/src/test/ui/coercion/coerce-issue-49593-box-never.rs b/tests/ui/coercion/coerce-issue-49593-box-never.rs similarity index 100% rename from src/test/ui/coercion/coerce-issue-49593-box-never.rs rename to tests/ui/coercion/coerce-issue-49593-box-never.rs diff --git a/src/test/ui/coercion/coerce-mut.rs b/tests/ui/coercion/coerce-mut.rs similarity index 100% rename from src/test/ui/coercion/coerce-mut.rs rename to tests/ui/coercion/coerce-mut.rs diff --git a/src/test/ui/coercion/coerce-mut.stderr b/tests/ui/coercion/coerce-mut.stderr similarity index 100% rename from src/test/ui/coercion/coerce-mut.stderr rename to tests/ui/coercion/coerce-mut.stderr diff --git a/src/test/ui/coercion/coerce-overloaded-autoderef-fail.rs b/tests/ui/coercion/coerce-overloaded-autoderef-fail.rs similarity index 100% rename from src/test/ui/coercion/coerce-overloaded-autoderef-fail.rs rename to tests/ui/coercion/coerce-overloaded-autoderef-fail.rs diff --git a/src/test/ui/coercion/coerce-overloaded-autoderef-fail.stderr b/tests/ui/coercion/coerce-overloaded-autoderef-fail.stderr similarity index 100% rename from src/test/ui/coercion/coerce-overloaded-autoderef-fail.stderr rename to tests/ui/coercion/coerce-overloaded-autoderef-fail.stderr diff --git a/src/test/ui/coercion/coerce-overloaded-autoderef.rs b/tests/ui/coercion/coerce-overloaded-autoderef.rs similarity index 100% rename from src/test/ui/coercion/coerce-overloaded-autoderef.rs rename to tests/ui/coercion/coerce-overloaded-autoderef.rs diff --git a/src/test/ui/coercion/coerce-reborrow-imm-ptr-arg.rs b/tests/ui/coercion/coerce-reborrow-imm-ptr-arg.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-imm-ptr-arg.rs rename to tests/ui/coercion/coerce-reborrow-imm-ptr-arg.rs diff --git a/src/test/ui/coercion/coerce-reborrow-imm-ptr-rcvr.rs b/tests/ui/coercion/coerce-reborrow-imm-ptr-rcvr.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-imm-ptr-rcvr.rs rename to tests/ui/coercion/coerce-reborrow-imm-ptr-rcvr.rs diff --git a/src/test/ui/coercion/coerce-reborrow-imm-vec-arg.rs b/tests/ui/coercion/coerce-reborrow-imm-vec-arg.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-imm-vec-arg.rs rename to tests/ui/coercion/coerce-reborrow-imm-vec-arg.rs diff --git a/src/test/ui/coercion/coerce-reborrow-imm-vec-rcvr.rs b/tests/ui/coercion/coerce-reborrow-imm-vec-rcvr.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-imm-vec-rcvr.rs rename to tests/ui/coercion/coerce-reborrow-imm-vec-rcvr.rs diff --git a/src/test/ui/coercion/coerce-reborrow-multi-arg-fail.rs b/tests/ui/coercion/coerce-reborrow-multi-arg-fail.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-multi-arg-fail.rs rename to tests/ui/coercion/coerce-reborrow-multi-arg-fail.rs diff --git a/src/test/ui/coercion/coerce-reborrow-multi-arg-fail.stderr b/tests/ui/coercion/coerce-reborrow-multi-arg-fail.stderr similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-multi-arg-fail.stderr rename to tests/ui/coercion/coerce-reborrow-multi-arg-fail.stderr diff --git a/src/test/ui/coercion/coerce-reborrow-multi-arg.rs b/tests/ui/coercion/coerce-reborrow-multi-arg.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-multi-arg.rs rename to tests/ui/coercion/coerce-reborrow-multi-arg.rs diff --git a/src/test/ui/coercion/coerce-reborrow-mut-ptr-arg.rs b/tests/ui/coercion/coerce-reborrow-mut-ptr-arg.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-mut-ptr-arg.rs rename to tests/ui/coercion/coerce-reborrow-mut-ptr-arg.rs diff --git a/src/test/ui/coercion/coerce-reborrow-mut-ptr-rcvr.rs b/tests/ui/coercion/coerce-reborrow-mut-ptr-rcvr.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-mut-ptr-rcvr.rs rename to tests/ui/coercion/coerce-reborrow-mut-ptr-rcvr.rs diff --git a/src/test/ui/coercion/coerce-reborrow-mut-vec-arg.rs b/tests/ui/coercion/coerce-reborrow-mut-vec-arg.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-mut-vec-arg.rs rename to tests/ui/coercion/coerce-reborrow-mut-vec-arg.rs diff --git a/src/test/ui/coercion/coerce-reborrow-mut-vec-rcvr.rs b/tests/ui/coercion/coerce-reborrow-mut-vec-rcvr.rs similarity index 100% rename from src/test/ui/coercion/coerce-reborrow-mut-vec-rcvr.rs rename to tests/ui/coercion/coerce-reborrow-mut-vec-rcvr.rs diff --git a/src/test/ui/coercion/coerce-to-bang-cast.rs b/tests/ui/coercion/coerce-to-bang-cast.rs similarity index 100% rename from src/test/ui/coercion/coerce-to-bang-cast.rs rename to tests/ui/coercion/coerce-to-bang-cast.rs diff --git a/src/test/ui/coercion/coerce-to-bang-cast.stderr b/tests/ui/coercion/coerce-to-bang-cast.stderr similarity index 100% rename from src/test/ui/coercion/coerce-to-bang-cast.stderr rename to tests/ui/coercion/coerce-to-bang-cast.stderr diff --git a/src/test/ui/coercion/coerce-to-bang.rs b/tests/ui/coercion/coerce-to-bang.rs similarity index 100% rename from src/test/ui/coercion/coerce-to-bang.rs rename to tests/ui/coercion/coerce-to-bang.rs diff --git a/src/test/ui/coercion/coerce-to-bang.stderr b/tests/ui/coercion/coerce-to-bang.stderr similarity index 100% rename from src/test/ui/coercion/coerce-to-bang.stderr rename to tests/ui/coercion/coerce-to-bang.stderr diff --git a/src/test/ui/coercion/coerce-unify-return.rs b/tests/ui/coercion/coerce-unify-return.rs similarity index 100% rename from src/test/ui/coercion/coerce-unify-return.rs rename to tests/ui/coercion/coerce-unify-return.rs diff --git a/src/test/ui/coercion/coerce-unify.rs b/tests/ui/coercion/coerce-unify.rs similarity index 100% rename from src/test/ui/coercion/coerce-unify.rs rename to tests/ui/coercion/coerce-unify.rs diff --git a/src/test/ui/coercion/coerce-unsize-subtype.rs b/tests/ui/coercion/coerce-unsize-subtype.rs similarity index 100% rename from src/test/ui/coercion/coerce-unsize-subtype.rs rename to tests/ui/coercion/coerce-unsize-subtype.rs diff --git a/src/test/ui/coercion/coercion-missing-tail-expected-type.fixed b/tests/ui/coercion/coercion-missing-tail-expected-type.fixed similarity index 100% rename from src/test/ui/coercion/coercion-missing-tail-expected-type.fixed rename to tests/ui/coercion/coercion-missing-tail-expected-type.fixed diff --git a/src/test/ui/coercion/coercion-missing-tail-expected-type.rs b/tests/ui/coercion/coercion-missing-tail-expected-type.rs similarity index 100% rename from src/test/ui/coercion/coercion-missing-tail-expected-type.rs rename to tests/ui/coercion/coercion-missing-tail-expected-type.rs diff --git a/src/test/ui/coercion/coercion-missing-tail-expected-type.stderr b/tests/ui/coercion/coercion-missing-tail-expected-type.stderr similarity index 100% rename from src/test/ui/coercion/coercion-missing-tail-expected-type.stderr rename to tests/ui/coercion/coercion-missing-tail-expected-type.stderr diff --git a/src/test/ui/coercion/coercion-slice.rs b/tests/ui/coercion/coercion-slice.rs similarity index 100% rename from src/test/ui/coercion/coercion-slice.rs rename to tests/ui/coercion/coercion-slice.rs diff --git a/src/test/ui/coercion/coercion-slice.stderr b/tests/ui/coercion/coercion-slice.stderr similarity index 100% rename from src/test/ui/coercion/coercion-slice.stderr rename to tests/ui/coercion/coercion-slice.stderr diff --git a/src/test/ui/coercion/issue-101066.rs b/tests/ui/coercion/issue-101066.rs similarity index 100% rename from src/test/ui/coercion/issue-101066.rs rename to tests/ui/coercion/issue-101066.rs diff --git a/src/test/ui/coercion/issue-14589.rs b/tests/ui/coercion/issue-14589.rs similarity index 100% rename from src/test/ui/coercion/issue-14589.rs rename to tests/ui/coercion/issue-14589.rs diff --git a/src/test/ui/coercion/issue-36007.rs b/tests/ui/coercion/issue-36007.rs similarity index 100% rename from src/test/ui/coercion/issue-36007.rs rename to tests/ui/coercion/issue-36007.rs diff --git a/src/test/ui/coercion/issue-37655.rs b/tests/ui/coercion/issue-37655.rs similarity index 100% rename from src/test/ui/coercion/issue-37655.rs rename to tests/ui/coercion/issue-37655.rs diff --git a/src/test/ui/coercion/issue-39823.rs b/tests/ui/coercion/issue-39823.rs similarity index 100% rename from src/test/ui/coercion/issue-39823.rs rename to tests/ui/coercion/issue-39823.rs diff --git a/src/test/ui/coercion/issue-53475.rs b/tests/ui/coercion/issue-53475.rs similarity index 100% rename from src/test/ui/coercion/issue-53475.rs rename to tests/ui/coercion/issue-53475.rs diff --git a/src/test/ui/coercion/issue-53475.stderr b/tests/ui/coercion/issue-53475.stderr similarity index 100% rename from src/test/ui/coercion/issue-53475.stderr rename to tests/ui/coercion/issue-53475.stderr diff --git a/src/test/ui/coercion/issue-73886.rs b/tests/ui/coercion/issue-73886.rs similarity index 100% rename from src/test/ui/coercion/issue-73886.rs rename to tests/ui/coercion/issue-73886.rs diff --git a/src/test/ui/coercion/issue-73886.stderr b/tests/ui/coercion/issue-73886.stderr similarity index 100% rename from src/test/ui/coercion/issue-73886.stderr rename to tests/ui/coercion/issue-73886.stderr diff --git a/src/test/ui/coercion/issue-88097.rs b/tests/ui/coercion/issue-88097.rs similarity index 100% rename from src/test/ui/coercion/issue-88097.rs rename to tests/ui/coercion/issue-88097.rs diff --git a/src/test/ui/coercion/retslot-cast.rs b/tests/ui/coercion/retslot-cast.rs similarity index 100% rename from src/test/ui/coercion/retslot-cast.rs rename to tests/ui/coercion/retslot-cast.rs diff --git a/src/test/ui/coercion/retslot-cast.stderr b/tests/ui/coercion/retslot-cast.stderr similarity index 100% rename from src/test/ui/coercion/retslot-cast.stderr rename to tests/ui/coercion/retslot-cast.stderr diff --git a/src/test/ui/coercion/unsafe-coercion.rs b/tests/ui/coercion/unsafe-coercion.rs similarity index 100% rename from src/test/ui/coercion/unsafe-coercion.rs rename to tests/ui/coercion/unsafe-coercion.rs diff --git a/src/test/ui/coherence/auxiliary/coherence_copy_like_lib.rs b/tests/ui/coherence/auxiliary/coherence_copy_like_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/coherence_copy_like_lib.rs rename to tests/ui/coherence/auxiliary/coherence_copy_like_lib.rs diff --git a/src/test/ui/coherence/auxiliary/coherence_fundamental_trait_lib.rs b/tests/ui/coherence/auxiliary/coherence_fundamental_trait_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/coherence_fundamental_trait_lib.rs rename to tests/ui/coherence/auxiliary/coherence_fundamental_trait_lib.rs diff --git a/src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs b/tests/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs rename to tests/ui/coherence/auxiliary/coherence_inherent_cc_lib.rs diff --git a/src/test/ui/coherence/auxiliary/coherence_lib.rs b/tests/ui/coherence/auxiliary/coherence_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/coherence_lib.rs rename to tests/ui/coherence/auxiliary/coherence_lib.rs diff --git a/src/test/ui/coherence/auxiliary/coherence_orphan_lib.rs b/tests/ui/coherence/auxiliary/coherence_orphan_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/coherence_orphan_lib.rs rename to tests/ui/coherence/auxiliary/coherence_orphan_lib.rs diff --git a/src/test/ui/coherence/auxiliary/error_lib.rs b/tests/ui/coherence/auxiliary/error_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/error_lib.rs rename to tests/ui/coherence/auxiliary/error_lib.rs diff --git a/src/test/ui/coherence/auxiliary/go_trait.rs b/tests/ui/coherence/auxiliary/go_trait.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/go_trait.rs rename to tests/ui/coherence/auxiliary/go_trait.rs diff --git a/src/test/ui/coherence/auxiliary/option_future.rs b/tests/ui/coherence/auxiliary/option_future.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/option_future.rs rename to tests/ui/coherence/auxiliary/option_future.rs diff --git a/src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib-rpass.rs b/tests/ui/coherence/auxiliary/re_rebalance_coherence_lib-rpass.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib-rpass.rs rename to tests/ui/coherence/auxiliary/re_rebalance_coherence_lib-rpass.rs diff --git a/src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib.rs b/tests/ui/coherence/auxiliary/re_rebalance_coherence_lib.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib.rs rename to tests/ui/coherence/auxiliary/re_rebalance_coherence_lib.rs diff --git a/src/test/ui/coherence/auxiliary/trait-with-const-param.rs b/tests/ui/coherence/auxiliary/trait-with-const-param.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/trait-with-const-param.rs rename to tests/ui/coherence/auxiliary/trait-with-const-param.rs diff --git a/src/test/ui/coherence/auxiliary/trait_impl_conflict.rs b/tests/ui/coherence/auxiliary/trait_impl_conflict.rs similarity index 100% rename from src/test/ui/coherence/auxiliary/trait_impl_conflict.rs rename to tests/ui/coherence/auxiliary/trait_impl_conflict.rs diff --git a/src/test/ui/coherence/coherence-all-remote.rs b/tests/ui/coherence/coherence-all-remote.rs similarity index 100% rename from src/test/ui/coherence/coherence-all-remote.rs rename to tests/ui/coherence/coherence-all-remote.rs diff --git a/src/test/ui/coherence/coherence-all-remote.stderr b/tests/ui/coherence/coherence-all-remote.stderr similarity index 100% rename from src/test/ui/coherence/coherence-all-remote.stderr rename to tests/ui/coherence/coherence-all-remote.stderr diff --git a/src/test/ui/coherence/coherence-bigint-int.rs b/tests/ui/coherence/coherence-bigint-int.rs similarity index 100% rename from src/test/ui/coherence/coherence-bigint-int.rs rename to tests/ui/coherence/coherence-bigint-int.rs diff --git a/src/test/ui/coherence/coherence-bigint-param.rs b/tests/ui/coherence/coherence-bigint-param.rs similarity index 100% rename from src/test/ui/coherence/coherence-bigint-param.rs rename to tests/ui/coherence/coherence-bigint-param.rs diff --git a/src/test/ui/coherence/coherence-bigint-param.stderr b/tests/ui/coherence/coherence-bigint-param.stderr similarity index 100% rename from src/test/ui/coherence/coherence-bigint-param.stderr rename to tests/ui/coherence/coherence-bigint-param.stderr diff --git a/src/test/ui/coherence/coherence-bigint-vecint.rs b/tests/ui/coherence/coherence-bigint-vecint.rs similarity index 100% rename from src/test/ui/coherence/coherence-bigint-vecint.rs rename to tests/ui/coherence/coherence-bigint-vecint.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.rs b/tests/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.rs rename to tests/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.stderr b/tests/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.stderr similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.stderr rename to tests/ui/coherence/coherence-blanket-conflicts-with-blanket-implemented.stderr diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.rs b/tests/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.rs rename to tests/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.stderr b/tests/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.stderr similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.stderr rename to tests/ui/coherence/coherence-blanket-conflicts-with-blanket-unimplemented.stderr diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.rs b/tests/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.rs rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.stderr b/tests/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.stderr similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.stderr rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific-cross-crate.stderr diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.rs b/tests/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.rs rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.stderr b/tests/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.stderr similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.stderr rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific-multidispatch.stderr diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.rs b/tests/ui/coherence/coherence-blanket-conflicts-with-specific-trait.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.rs rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific-trait.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.stderr b/tests/ui/coherence/coherence-blanket-conflicts-with-specific-trait.stderr similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific-trait.stderr rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific-trait.stderr diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific.rs b/tests/ui/coherence/coherence-blanket-conflicts-with-specific.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific.rs rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific.rs diff --git a/src/test/ui/coherence/coherence-blanket-conflicts-with-specific.stderr b/tests/ui/coherence/coherence-blanket-conflicts-with-specific.stderr similarity index 100% rename from src/test/ui/coherence/coherence-blanket-conflicts-with-specific.stderr rename to tests/ui/coherence/coherence-blanket-conflicts-with-specific.stderr diff --git a/src/test/ui/coherence/coherence-blanket.rs b/tests/ui/coherence/coherence-blanket.rs similarity index 100% rename from src/test/ui/coherence/coherence-blanket.rs rename to tests/ui/coherence/coherence-blanket.rs diff --git a/src/test/ui/coherence/coherence-conflicting-negative-trait-impl.rs b/tests/ui/coherence/coherence-conflicting-negative-trait-impl.rs similarity index 100% rename from src/test/ui/coherence/coherence-conflicting-negative-trait-impl.rs rename to tests/ui/coherence/coherence-conflicting-negative-trait-impl.rs diff --git a/src/test/ui/coherence/coherence-conflicting-negative-trait-impl.stderr b/tests/ui/coherence/coherence-conflicting-negative-trait-impl.stderr similarity index 100% rename from src/test/ui/coherence/coherence-conflicting-negative-trait-impl.stderr rename to tests/ui/coherence/coherence-conflicting-negative-trait-impl.stderr diff --git a/src/test/ui/coherence/coherence-covered-type-parameter.rs b/tests/ui/coherence/coherence-covered-type-parameter.rs similarity index 100% rename from src/test/ui/coherence/coherence-covered-type-parameter.rs rename to tests/ui/coherence/coherence-covered-type-parameter.rs diff --git a/src/test/ui/coherence/coherence-cow.re_a.stderr b/tests/ui/coherence/coherence-cow.re_a.stderr similarity index 100% rename from src/test/ui/coherence/coherence-cow.re_a.stderr rename to tests/ui/coherence/coherence-cow.re_a.stderr diff --git a/src/test/ui/coherence/coherence-cow.re_b.stderr b/tests/ui/coherence/coherence-cow.re_b.stderr similarity index 100% rename from src/test/ui/coherence/coherence-cow.re_b.stderr rename to tests/ui/coherence/coherence-cow.re_b.stderr diff --git a/src/test/ui/coherence/coherence-cow.re_c.stderr b/tests/ui/coherence/coherence-cow.re_c.stderr similarity index 100% rename from src/test/ui/coherence/coherence-cow.re_c.stderr rename to tests/ui/coherence/coherence-cow.re_c.stderr diff --git a/src/test/ui/coherence/coherence-cow.rs b/tests/ui/coherence/coherence-cow.rs similarity index 100% rename from src/test/ui/coherence/coherence-cow.rs rename to tests/ui/coherence/coherence-cow.rs diff --git a/src/test/ui/coherence/coherence-cross-crate-conflict.rs b/tests/ui/coherence/coherence-cross-crate-conflict.rs similarity index 100% rename from src/test/ui/coherence/coherence-cross-crate-conflict.rs rename to tests/ui/coherence/coherence-cross-crate-conflict.rs diff --git a/src/test/ui/coherence/coherence-cross-crate-conflict.stderr b/tests/ui/coherence/coherence-cross-crate-conflict.stderr similarity index 100% rename from src/test/ui/coherence/coherence-cross-crate-conflict.stderr rename to tests/ui/coherence/coherence-cross-crate-conflict.stderr diff --git a/src/test/ui/coherence/coherence-default-trait-impl.rs b/tests/ui/coherence/coherence-default-trait-impl.rs similarity index 100% rename from src/test/ui/coherence/coherence-default-trait-impl.rs rename to tests/ui/coherence/coherence-default-trait-impl.rs diff --git a/src/test/ui/coherence/coherence-default-trait-impl.stderr b/tests/ui/coherence/coherence-default-trait-impl.stderr similarity index 100% rename from src/test/ui/coherence/coherence-default-trait-impl.stderr rename to tests/ui/coherence/coherence-default-trait-impl.stderr diff --git a/src/test/ui/coherence/coherence-error-suppression.rs b/tests/ui/coherence/coherence-error-suppression.rs similarity index 100% rename from src/test/ui/coherence/coherence-error-suppression.rs rename to tests/ui/coherence/coherence-error-suppression.rs diff --git a/src/test/ui/coherence/coherence-error-suppression.stderr b/tests/ui/coherence/coherence-error-suppression.stderr similarity index 100% rename from src/test/ui/coherence/coherence-error-suppression.stderr rename to tests/ui/coherence/coherence-error-suppression.stderr diff --git a/src/test/ui/coherence/coherence-fn-covariant-bound-vs-static.rs b/tests/ui/coherence/coherence-fn-covariant-bound-vs-static.rs similarity index 100% rename from src/test/ui/coherence/coherence-fn-covariant-bound-vs-static.rs rename to tests/ui/coherence/coherence-fn-covariant-bound-vs-static.rs diff --git a/src/test/ui/coherence/coherence-fn-covariant-bound-vs-static.stderr b/tests/ui/coherence/coherence-fn-covariant-bound-vs-static.stderr similarity index 100% rename from src/test/ui/coherence/coherence-fn-covariant-bound-vs-static.stderr rename to tests/ui/coherence/coherence-fn-covariant-bound-vs-static.stderr diff --git a/src/test/ui/coherence/coherence-fn-implied-bounds.rs b/tests/ui/coherence/coherence-fn-implied-bounds.rs similarity index 100% rename from src/test/ui/coherence/coherence-fn-implied-bounds.rs rename to tests/ui/coherence/coherence-fn-implied-bounds.rs diff --git a/src/test/ui/coherence/coherence-fn-implied-bounds.stderr b/tests/ui/coherence/coherence-fn-implied-bounds.stderr similarity index 100% rename from src/test/ui/coherence/coherence-fn-implied-bounds.stderr rename to tests/ui/coherence/coherence-fn-implied-bounds.stderr diff --git a/src/test/ui/coherence/coherence-fn-inputs.rs b/tests/ui/coherence/coherence-fn-inputs.rs similarity index 100% rename from src/test/ui/coherence/coherence-fn-inputs.rs rename to tests/ui/coherence/coherence-fn-inputs.rs diff --git a/src/test/ui/coherence/coherence-fn-inputs.stderr b/tests/ui/coherence/coherence-fn-inputs.stderr similarity index 100% rename from src/test/ui/coherence/coherence-fn-inputs.stderr rename to tests/ui/coherence/coherence-fn-inputs.stderr diff --git a/src/test/ui/coherence/coherence-free-vs-bound-region.rs b/tests/ui/coherence/coherence-free-vs-bound-region.rs similarity index 100% rename from src/test/ui/coherence/coherence-free-vs-bound-region.rs rename to tests/ui/coherence/coherence-free-vs-bound-region.rs diff --git a/src/test/ui/coherence/coherence-free-vs-bound-region.stderr b/tests/ui/coherence/coherence-free-vs-bound-region.stderr similarity index 100% rename from src/test/ui/coherence/coherence-free-vs-bound-region.stderr rename to tests/ui/coherence/coherence-free-vs-bound-region.stderr diff --git a/src/test/ui/coherence/coherence-fundamental-trait-objects.rs b/tests/ui/coherence/coherence-fundamental-trait-objects.rs similarity index 100% rename from src/test/ui/coherence/coherence-fundamental-trait-objects.rs rename to tests/ui/coherence/coherence-fundamental-trait-objects.rs diff --git a/src/test/ui/coherence/coherence-fundamental-trait-objects.stderr b/tests/ui/coherence/coherence-fundamental-trait-objects.stderr similarity index 100% rename from src/test/ui/coherence/coherence-fundamental-trait-objects.stderr rename to tests/ui/coherence/coherence-fundamental-trait-objects.stderr diff --git a/src/test/ui/coherence/coherence-impl-in-fn.rs b/tests/ui/coherence/coherence-impl-in-fn.rs similarity index 100% rename from src/test/ui/coherence/coherence-impl-in-fn.rs rename to tests/ui/coherence/coherence-impl-in-fn.rs diff --git a/src/test/ui/coherence/coherence-impl-trait-for-marker-trait-negative.rs b/tests/ui/coherence/coherence-impl-trait-for-marker-trait-negative.rs similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-marker-trait-negative.rs rename to tests/ui/coherence/coherence-impl-trait-for-marker-trait-negative.rs diff --git a/src/test/ui/coherence/coherence-impl-trait-for-marker-trait-negative.stderr b/tests/ui/coherence/coherence-impl-trait-for-marker-trait-negative.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-marker-trait-negative.stderr rename to tests/ui/coherence/coherence-impl-trait-for-marker-trait-negative.stderr diff --git a/src/test/ui/coherence/coherence-impl-trait-for-marker-trait-positive.rs b/tests/ui/coherence/coherence-impl-trait-for-marker-trait-positive.rs similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-marker-trait-positive.rs rename to tests/ui/coherence/coherence-impl-trait-for-marker-trait-positive.rs diff --git a/src/test/ui/coherence/coherence-impl-trait-for-marker-trait-positive.stderr b/tests/ui/coherence/coherence-impl-trait-for-marker-trait-positive.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-marker-trait-positive.stderr rename to tests/ui/coherence/coherence-impl-trait-for-marker-trait-positive.stderr diff --git a/src/test/ui/coherence/coherence-impl-trait-for-trait-object-safe.rs b/tests/ui/coherence/coherence-impl-trait-for-trait-object-safe.rs similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-trait-object-safe.rs rename to tests/ui/coherence/coherence-impl-trait-for-trait-object-safe.rs diff --git a/src/test/ui/coherence/coherence-impl-trait-for-trait-object-safe.stderr b/tests/ui/coherence/coherence-impl-trait-for-trait-object-safe.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-trait-object-safe.stderr rename to tests/ui/coherence/coherence-impl-trait-for-trait-object-safe.stderr diff --git a/src/test/ui/coherence/coherence-impl-trait-for-trait.rs b/tests/ui/coherence/coherence-impl-trait-for-trait.rs similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-trait.rs rename to tests/ui/coherence/coherence-impl-trait-for-trait.rs diff --git a/src/test/ui/coherence/coherence-impl-trait-for-trait.stderr b/tests/ui/coherence/coherence-impl-trait-for-trait.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impl-trait-for-trait.stderr rename to tests/ui/coherence/coherence-impl-trait-for-trait.stderr diff --git a/src/test/ui/coherence/coherence-impls-copy.rs b/tests/ui/coherence/coherence-impls-copy.rs similarity index 100% rename from src/test/ui/coherence/coherence-impls-copy.rs rename to tests/ui/coherence/coherence-impls-copy.rs diff --git a/src/test/ui/coherence/coherence-impls-copy.stderr b/tests/ui/coherence/coherence-impls-copy.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impls-copy.stderr rename to tests/ui/coherence/coherence-impls-copy.stderr diff --git a/src/test/ui/coherence/coherence-impls-send.rs b/tests/ui/coherence/coherence-impls-send.rs similarity index 100% rename from src/test/ui/coherence/coherence-impls-send.rs rename to tests/ui/coherence/coherence-impls-send.rs diff --git a/src/test/ui/coherence/coherence-impls-send.stderr b/tests/ui/coherence/coherence-impls-send.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impls-send.stderr rename to tests/ui/coherence/coherence-impls-send.stderr diff --git a/src/test/ui/coherence/coherence-impls-sized.rs b/tests/ui/coherence/coherence-impls-sized.rs similarity index 100% rename from src/test/ui/coherence/coherence-impls-sized.rs rename to tests/ui/coherence/coherence-impls-sized.rs diff --git a/src/test/ui/coherence/coherence-impls-sized.stderr b/tests/ui/coherence/coherence-impls-sized.stderr similarity index 100% rename from src/test/ui/coherence/coherence-impls-sized.stderr rename to tests/ui/coherence/coherence-impls-sized.stderr diff --git a/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs b/tests/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs similarity index 100% rename from src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs rename to tests/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs diff --git a/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr b/tests/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr similarity index 100% rename from src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr rename to tests/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr diff --git a/src/test/ui/coherence/coherence-inherited-subtyping.old.stderr b/tests/ui/coherence/coherence-inherited-subtyping.old.stderr similarity index 100% rename from src/test/ui/coherence/coherence-inherited-subtyping.old.stderr rename to tests/ui/coherence/coherence-inherited-subtyping.old.stderr diff --git a/src/test/ui/coherence/coherence-inherited-subtyping.re.stderr b/tests/ui/coherence/coherence-inherited-subtyping.re.stderr similarity index 100% rename from src/test/ui/coherence/coherence-inherited-subtyping.re.stderr rename to tests/ui/coherence/coherence-inherited-subtyping.re.stderr diff --git a/src/test/ui/coherence/coherence-inherited-subtyping.rs b/tests/ui/coherence/coherence-inherited-subtyping.rs similarity index 100% rename from src/test/ui/coherence/coherence-inherited-subtyping.rs rename to tests/ui/coherence/coherence-inherited-subtyping.rs diff --git a/src/test/ui/coherence/coherence-iterator-vec-any-elem.rs b/tests/ui/coherence/coherence-iterator-vec-any-elem.rs similarity index 100% rename from src/test/ui/coherence/coherence-iterator-vec-any-elem.rs rename to tests/ui/coherence/coherence-iterator-vec-any-elem.rs diff --git a/src/test/ui/coherence/coherence-iterator-vec.rs b/tests/ui/coherence/coherence-iterator-vec.rs similarity index 100% rename from src/test/ui/coherence/coherence-iterator-vec.rs rename to tests/ui/coherence/coherence-iterator-vec.rs diff --git a/src/test/ui/coherence/coherence-lone-type-parameter.rs b/tests/ui/coherence/coherence-lone-type-parameter.rs similarity index 100% rename from src/test/ui/coherence/coherence-lone-type-parameter.rs rename to tests/ui/coherence/coherence-lone-type-parameter.rs diff --git a/src/test/ui/coherence/coherence-lone-type-parameter.stderr b/tests/ui/coherence/coherence-lone-type-parameter.stderr similarity index 100% rename from src/test/ui/coherence/coherence-lone-type-parameter.stderr rename to tests/ui/coherence/coherence-lone-type-parameter.stderr diff --git a/src/test/ui/coherence/coherence-multidispatch-tuple.rs b/tests/ui/coherence/coherence-multidispatch-tuple.rs similarity index 100% rename from src/test/ui/coherence/coherence-multidispatch-tuple.rs rename to tests/ui/coherence/coherence-multidispatch-tuple.rs diff --git a/src/test/ui/coherence/coherence-negative-impls-copy-bad.rs b/tests/ui/coherence/coherence-negative-impls-copy-bad.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-impls-copy-bad.rs rename to tests/ui/coherence/coherence-negative-impls-copy-bad.rs diff --git a/src/test/ui/coherence/coherence-negative-impls-copy-bad.stderr b/tests/ui/coherence/coherence-negative-impls-copy-bad.stderr similarity index 100% rename from src/test/ui/coherence/coherence-negative-impls-copy-bad.stderr rename to tests/ui/coherence/coherence-negative-impls-copy-bad.stderr diff --git a/src/test/ui/coherence/coherence-negative-impls-copy.rs b/tests/ui/coherence/coherence-negative-impls-copy.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-impls-copy.rs rename to tests/ui/coherence/coherence-negative-impls-copy.rs diff --git a/src/test/ui/coherence/coherence-negative-impls-safe-rpass.rs b/tests/ui/coherence/coherence-negative-impls-safe-rpass.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-impls-safe-rpass.rs rename to tests/ui/coherence/coherence-negative-impls-safe-rpass.rs diff --git a/src/test/ui/coherence/coherence-negative-impls-safe.rs b/tests/ui/coherence/coherence-negative-impls-safe.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-impls-safe.rs rename to tests/ui/coherence/coherence-negative-impls-safe.rs diff --git a/src/test/ui/coherence/coherence-negative-impls-safe.stderr b/tests/ui/coherence/coherence-negative-impls-safe.stderr similarity index 100% rename from src/test/ui/coherence/coherence-negative-impls-safe.stderr rename to tests/ui/coherence/coherence-negative-impls-safe.stderr diff --git a/src/test/ui/coherence/coherence-negative-inherent-where-bounds.rs b/tests/ui/coherence/coherence-negative-inherent-where-bounds.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-inherent-where-bounds.rs rename to tests/ui/coherence/coherence-negative-inherent-where-bounds.rs diff --git a/src/test/ui/coherence/coherence-negative-inherent.rs b/tests/ui/coherence/coherence-negative-inherent.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-inherent.rs rename to tests/ui/coherence/coherence-negative-inherent.rs diff --git a/src/test/ui/coherence/coherence-negative-outlives-lifetimes.rs b/tests/ui/coherence/coherence-negative-outlives-lifetimes.rs similarity index 100% rename from src/test/ui/coherence/coherence-negative-outlives-lifetimes.rs rename to tests/ui/coherence/coherence-negative-outlives-lifetimes.rs diff --git a/src/test/ui/coherence/coherence-negative-outlives-lifetimes.stock.stderr b/tests/ui/coherence/coherence-negative-outlives-lifetimes.stock.stderr similarity index 100% rename from src/test/ui/coherence/coherence-negative-outlives-lifetimes.stock.stderr rename to tests/ui/coherence/coherence-negative-outlives-lifetimes.stock.stderr diff --git a/src/test/ui/coherence/coherence-no-direct-lifetime-dispatch.rs b/tests/ui/coherence/coherence-no-direct-lifetime-dispatch.rs similarity index 100% rename from src/test/ui/coherence/coherence-no-direct-lifetime-dispatch.rs rename to tests/ui/coherence/coherence-no-direct-lifetime-dispatch.rs diff --git a/src/test/ui/coherence/coherence-no-direct-lifetime-dispatch.stderr b/tests/ui/coherence/coherence-no-direct-lifetime-dispatch.stderr similarity index 100% rename from src/test/ui/coherence/coherence-no-direct-lifetime-dispatch.stderr rename to tests/ui/coherence/coherence-no-direct-lifetime-dispatch.stderr diff --git a/src/test/ui/coherence/coherence-orphan.rs b/tests/ui/coherence/coherence-orphan.rs similarity index 100% rename from src/test/ui/coherence/coherence-orphan.rs rename to tests/ui/coherence/coherence-orphan.rs diff --git a/src/test/ui/coherence/coherence-orphan.stderr b/tests/ui/coherence/coherence-orphan.stderr similarity index 100% rename from src/test/ui/coherence/coherence-orphan.stderr rename to tests/ui/coherence/coherence-orphan.stderr diff --git a/src/test/ui/coherence/coherence-overlap-all-t-and-tuple.rs b/tests/ui/coherence/coherence-overlap-all-t-and-tuple.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-all-t-and-tuple.rs rename to tests/ui/coherence/coherence-overlap-all-t-and-tuple.rs diff --git a/src/test/ui/coherence/coherence-overlap-all-t-and-tuple.stderr b/tests/ui/coherence/coherence-overlap-all-t-and-tuple.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-all-t-and-tuple.stderr rename to tests/ui/coherence/coherence-overlap-all-t-and-tuple.stderr diff --git a/src/test/ui/coherence/coherence-overlap-double-negative.rs b/tests/ui/coherence/coherence-overlap-double-negative.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-double-negative.rs rename to tests/ui/coherence/coherence-overlap-double-negative.rs diff --git a/src/test/ui/coherence/coherence-overlap-downstream-inherent.rs b/tests/ui/coherence/coherence-overlap-downstream-inherent.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-downstream-inherent.rs rename to tests/ui/coherence/coherence-overlap-downstream-inherent.rs diff --git a/src/test/ui/coherence/coherence-overlap-downstream-inherent.stderr b/tests/ui/coherence/coherence-overlap-downstream-inherent.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-downstream-inherent.stderr rename to tests/ui/coherence/coherence-overlap-downstream-inherent.stderr diff --git a/src/test/ui/coherence/coherence-overlap-downstream.rs b/tests/ui/coherence/coherence-overlap-downstream.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-downstream.rs rename to tests/ui/coherence/coherence-overlap-downstream.rs diff --git a/src/test/ui/coherence/coherence-overlap-downstream.stderr b/tests/ui/coherence/coherence-overlap-downstream.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-downstream.stderr rename to tests/ui/coherence/coherence-overlap-downstream.stderr diff --git a/src/test/ui/coherence/coherence-overlap-issue-23516-inherent.rs b/tests/ui/coherence/coherence-overlap-issue-23516-inherent.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-issue-23516-inherent.rs rename to tests/ui/coherence/coherence-overlap-issue-23516-inherent.rs diff --git a/src/test/ui/coherence/coherence-overlap-issue-23516-inherent.stderr b/tests/ui/coherence/coherence-overlap-issue-23516-inherent.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-issue-23516-inherent.stderr rename to tests/ui/coherence/coherence-overlap-issue-23516-inherent.stderr diff --git a/src/test/ui/coherence/coherence-overlap-issue-23516.rs b/tests/ui/coherence/coherence-overlap-issue-23516.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-issue-23516.rs rename to tests/ui/coherence/coherence-overlap-issue-23516.rs diff --git a/src/test/ui/coherence/coherence-overlap-issue-23516.stderr b/tests/ui/coherence/coherence-overlap-issue-23516.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-issue-23516.stderr rename to tests/ui/coherence/coherence-overlap-issue-23516.stderr diff --git a/src/test/ui/coherence/coherence-overlap-messages.rs b/tests/ui/coherence/coherence-overlap-messages.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-messages.rs rename to tests/ui/coherence/coherence-overlap-messages.rs diff --git a/src/test/ui/coherence/coherence-overlap-messages.stderr b/tests/ui/coherence/coherence-overlap-messages.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-messages.stderr rename to tests/ui/coherence/coherence-overlap-messages.stderr diff --git a/src/test/ui/coherence/coherence-overlap-negate-alias-strict.rs b/tests/ui/coherence/coherence-overlap-negate-alias-strict.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negate-alias-strict.rs rename to tests/ui/coherence/coherence-overlap-negate-alias-strict.rs diff --git a/src/test/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs b/tests/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs rename to tests/ui/coherence/coherence-overlap-negate-not-use-feature-gate.rs diff --git a/src/test/ui/coherence/coherence-overlap-negate-not-use-feature-gate.stderr b/tests/ui/coherence/coherence-overlap-negate-not-use-feature-gate.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negate-not-use-feature-gate.stderr rename to tests/ui/coherence/coherence-overlap-negate-not-use-feature-gate.stderr diff --git a/src/test/ui/coherence/coherence-overlap-negate-strict.rs b/tests/ui/coherence/coherence-overlap-negate-strict.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negate-strict.rs rename to tests/ui/coherence/coherence-overlap-negate-strict.rs diff --git a/src/test/ui/coherence/coherence-overlap-negate-use-feature-gate.rs b/tests/ui/coherence/coherence-overlap-negate-use-feature-gate.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negate-use-feature-gate.rs rename to tests/ui/coherence/coherence-overlap-negate-use-feature-gate.rs diff --git a/src/test/ui/coherence/coherence-overlap-negative-trait.rs b/tests/ui/coherence/coherence-overlap-negative-trait.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negative-trait.rs rename to tests/ui/coherence/coherence-overlap-negative-trait.rs diff --git a/src/test/ui/coherence/coherence-overlap-negative-trait2.rs b/tests/ui/coherence/coherence-overlap-negative-trait2.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-negative-trait2.rs rename to tests/ui/coherence/coherence-overlap-negative-trait2.rs diff --git a/src/test/ui/coherence/coherence-overlap-super-negative.rs b/tests/ui/coherence/coherence-overlap-super-negative.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-super-negative.rs rename to tests/ui/coherence/coherence-overlap-super-negative.rs diff --git a/src/test/ui/coherence/coherence-overlap-trait-alias.rs b/tests/ui/coherence/coherence-overlap-trait-alias.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-trait-alias.rs rename to tests/ui/coherence/coherence-overlap-trait-alias.rs diff --git a/src/test/ui/coherence/coherence-overlap-trait-alias.stderr b/tests/ui/coherence/coherence-overlap-trait-alias.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-trait-alias.stderr rename to tests/ui/coherence/coherence-overlap-trait-alias.stderr diff --git a/src/test/ui/coherence/coherence-overlap-upstream-inherent.rs b/tests/ui/coherence/coherence-overlap-upstream-inherent.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-upstream-inherent.rs rename to tests/ui/coherence/coherence-overlap-upstream-inherent.rs diff --git a/src/test/ui/coherence/coherence-overlap-upstream-inherent.stderr b/tests/ui/coherence/coherence-overlap-upstream-inherent.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-upstream-inherent.stderr rename to tests/ui/coherence/coherence-overlap-upstream-inherent.stderr diff --git a/src/test/ui/coherence/coherence-overlap-upstream.rs b/tests/ui/coherence/coherence-overlap-upstream.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-upstream.rs rename to tests/ui/coherence/coherence-overlap-upstream.rs diff --git a/src/test/ui/coherence/coherence-overlap-upstream.stderr b/tests/ui/coherence/coherence-overlap-upstream.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlap-upstream.stderr rename to tests/ui/coherence/coherence-overlap-upstream.stderr diff --git a/src/test/ui/coherence/coherence-overlap-with-regions.rs b/tests/ui/coherence/coherence-overlap-with-regions.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlap-with-regions.rs rename to tests/ui/coherence/coherence-overlap-with-regions.rs diff --git a/src/test/ui/coherence/coherence-overlapping-pairs.rs b/tests/ui/coherence/coherence-overlapping-pairs.rs similarity index 100% rename from src/test/ui/coherence/coherence-overlapping-pairs.rs rename to tests/ui/coherence/coherence-overlapping-pairs.rs diff --git a/src/test/ui/coherence/coherence-overlapping-pairs.stderr b/tests/ui/coherence/coherence-overlapping-pairs.stderr similarity index 100% rename from src/test/ui/coherence/coherence-overlapping-pairs.stderr rename to tests/ui/coherence/coherence-overlapping-pairs.stderr diff --git a/src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs b/tests/ui/coherence/coherence-pair-covered-uncovered-1.rs similarity index 100% rename from src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs rename to tests/ui/coherence/coherence-pair-covered-uncovered-1.rs diff --git a/src/test/ui/coherence/coherence-pair-covered-uncovered-1.stderr b/tests/ui/coherence/coherence-pair-covered-uncovered-1.stderr similarity index 100% rename from src/test/ui/coherence/coherence-pair-covered-uncovered-1.stderr rename to tests/ui/coherence/coherence-pair-covered-uncovered-1.stderr diff --git a/src/test/ui/coherence/coherence-pair-covered-uncovered.rs b/tests/ui/coherence/coherence-pair-covered-uncovered.rs similarity index 100% rename from src/test/ui/coherence/coherence-pair-covered-uncovered.rs rename to tests/ui/coherence/coherence-pair-covered-uncovered.rs diff --git a/src/test/ui/coherence/coherence-pair-covered-uncovered.stderr b/tests/ui/coherence/coherence-pair-covered-uncovered.stderr similarity index 100% rename from src/test/ui/coherence/coherence-pair-covered-uncovered.stderr rename to tests/ui/coherence/coherence-pair-covered-uncovered.stderr diff --git a/src/test/ui/coherence/coherence-projection-conflict-orphan.rs b/tests/ui/coherence/coherence-projection-conflict-orphan.rs similarity index 100% rename from src/test/ui/coherence/coherence-projection-conflict-orphan.rs rename to tests/ui/coherence/coherence-projection-conflict-orphan.rs diff --git a/src/test/ui/coherence/coherence-projection-conflict-orphan.stderr b/tests/ui/coherence/coherence-projection-conflict-orphan.stderr similarity index 100% rename from src/test/ui/coherence/coherence-projection-conflict-orphan.stderr rename to tests/ui/coherence/coherence-projection-conflict-orphan.stderr diff --git a/src/test/ui/coherence/coherence-projection-conflict-ty-param.rs b/tests/ui/coherence/coherence-projection-conflict-ty-param.rs similarity index 100% rename from src/test/ui/coherence/coherence-projection-conflict-ty-param.rs rename to tests/ui/coherence/coherence-projection-conflict-ty-param.rs diff --git a/src/test/ui/coherence/coherence-projection-conflict-ty-param.stderr b/tests/ui/coherence/coherence-projection-conflict-ty-param.stderr similarity index 100% rename from src/test/ui/coherence/coherence-projection-conflict-ty-param.stderr rename to tests/ui/coherence/coherence-projection-conflict-ty-param.stderr diff --git a/src/test/ui/coherence/coherence-projection-conflict.rs b/tests/ui/coherence/coherence-projection-conflict.rs similarity index 100% rename from src/test/ui/coherence/coherence-projection-conflict.rs rename to tests/ui/coherence/coherence-projection-conflict.rs diff --git a/src/test/ui/coherence/coherence-projection-conflict.stderr b/tests/ui/coherence/coherence-projection-conflict.stderr similarity index 100% rename from src/test/ui/coherence/coherence-projection-conflict.stderr rename to tests/ui/coherence/coherence-projection-conflict.stderr diff --git a/src/test/ui/coherence/coherence-projection-ok-orphan.rs b/tests/ui/coherence/coherence-projection-ok-orphan.rs similarity index 100% rename from src/test/ui/coherence/coherence-projection-ok-orphan.rs rename to tests/ui/coherence/coherence-projection-ok-orphan.rs diff --git a/src/test/ui/coherence/coherence-projection-ok.rs b/tests/ui/coherence/coherence-projection-ok.rs similarity index 100% rename from src/test/ui/coherence/coherence-projection-ok.rs rename to tests/ui/coherence/coherence-projection-ok.rs diff --git a/src/test/ui/coherence/coherence-rfc447-constrained.rs b/tests/ui/coherence/coherence-rfc447-constrained.rs similarity index 100% rename from src/test/ui/coherence/coherence-rfc447-constrained.rs rename to tests/ui/coherence/coherence-rfc447-constrained.rs diff --git a/src/test/ui/coherence/coherence-subtyping.rs b/tests/ui/coherence/coherence-subtyping.rs similarity index 100% rename from src/test/ui/coherence/coherence-subtyping.rs rename to tests/ui/coherence/coherence-subtyping.rs diff --git a/src/test/ui/coherence/coherence-subtyping.stderr b/tests/ui/coherence/coherence-subtyping.stderr similarity index 100% rename from src/test/ui/coherence/coherence-subtyping.stderr rename to tests/ui/coherence/coherence-subtyping.stderr diff --git a/src/test/ui/coherence/coherence-tuple-conflict.rs b/tests/ui/coherence/coherence-tuple-conflict.rs similarity index 100% rename from src/test/ui/coherence/coherence-tuple-conflict.rs rename to tests/ui/coherence/coherence-tuple-conflict.rs diff --git a/src/test/ui/coherence/coherence-tuple-conflict.stderr b/tests/ui/coherence/coherence-tuple-conflict.stderr similarity index 100% rename from src/test/ui/coherence/coherence-tuple-conflict.stderr rename to tests/ui/coherence/coherence-tuple-conflict.stderr diff --git a/src/test/ui/coherence/coherence-unsafe-trait-object-impl.rs b/tests/ui/coherence/coherence-unsafe-trait-object-impl.rs similarity index 100% rename from src/test/ui/coherence/coherence-unsafe-trait-object-impl.rs rename to tests/ui/coherence/coherence-unsafe-trait-object-impl.rs diff --git a/src/test/ui/coherence/coherence-unsafe-trait-object-impl.stderr b/tests/ui/coherence/coherence-unsafe-trait-object-impl.stderr similarity index 100% rename from src/test/ui/coherence/coherence-unsafe-trait-object-impl.stderr rename to tests/ui/coherence/coherence-unsafe-trait-object-impl.stderr diff --git a/src/test/ui/coherence/coherence-vec-local-2.rs b/tests/ui/coherence/coherence-vec-local-2.rs similarity index 100% rename from src/test/ui/coherence/coherence-vec-local-2.rs rename to tests/ui/coherence/coherence-vec-local-2.rs diff --git a/src/test/ui/coherence/coherence-vec-local-2.stderr b/tests/ui/coherence/coherence-vec-local-2.stderr similarity index 100% rename from src/test/ui/coherence/coherence-vec-local-2.stderr rename to tests/ui/coherence/coherence-vec-local-2.stderr diff --git a/src/test/ui/coherence/coherence-vec-local.rs b/tests/ui/coherence/coherence-vec-local.rs similarity index 100% rename from src/test/ui/coherence/coherence-vec-local.rs rename to tests/ui/coherence/coherence-vec-local.rs diff --git a/src/test/ui/coherence/coherence-vec-local.stderr b/tests/ui/coherence/coherence-vec-local.stderr similarity index 100% rename from src/test/ui/coherence/coherence-vec-local.stderr rename to tests/ui/coherence/coherence-vec-local.stderr diff --git a/src/test/ui/coherence/coherence-wasm-bindgen.rs b/tests/ui/coherence/coherence-wasm-bindgen.rs similarity index 100% rename from src/test/ui/coherence/coherence-wasm-bindgen.rs rename to tests/ui/coherence/coherence-wasm-bindgen.rs diff --git a/src/test/ui/coherence/coherence-wasm-bindgen.stderr b/tests/ui/coherence/coherence-wasm-bindgen.stderr similarity index 100% rename from src/test/ui/coherence/coherence-wasm-bindgen.stderr rename to tests/ui/coherence/coherence-wasm-bindgen.stderr diff --git a/src/test/ui/coherence/coherence-where-clause.rs b/tests/ui/coherence/coherence-where-clause.rs similarity index 100% rename from src/test/ui/coherence/coherence-where-clause.rs rename to tests/ui/coherence/coherence-where-clause.rs diff --git a/src/test/ui/coherence/coherence-with-closure.rs b/tests/ui/coherence/coherence-with-closure.rs similarity index 100% rename from src/test/ui/coherence/coherence-with-closure.rs rename to tests/ui/coherence/coherence-with-closure.rs diff --git a/src/test/ui/coherence/coherence-with-closure.stderr b/tests/ui/coherence/coherence-with-closure.stderr similarity index 100% rename from src/test/ui/coherence/coherence-with-closure.stderr rename to tests/ui/coherence/coherence-with-closure.stderr diff --git a/src/test/ui/coherence/coherence-with-generator.rs b/tests/ui/coherence/coherence-with-generator.rs similarity index 100% rename from src/test/ui/coherence/coherence-with-generator.rs rename to tests/ui/coherence/coherence-with-generator.rs diff --git a/src/test/ui/coherence/coherence-with-generator.stderr b/tests/ui/coherence/coherence-with-generator.stderr similarity index 100% rename from src/test/ui/coherence/coherence-with-generator.stderr rename to tests/ui/coherence/coherence-with-generator.stderr diff --git a/src/test/ui/coherence/coherence_copy_like.rs b/tests/ui/coherence/coherence_copy_like.rs similarity index 100% rename from src/test/ui/coherence/coherence_copy_like.rs rename to tests/ui/coherence/coherence_copy_like.rs diff --git a/src/test/ui/coherence/coherence_copy_like_err_fundamental_struct.rs b/tests/ui/coherence/coherence_copy_like_err_fundamental_struct.rs similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_fundamental_struct.rs rename to tests/ui/coherence/coherence_copy_like_err_fundamental_struct.rs diff --git a/src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_ref.rs b/tests/ui/coherence/coherence_copy_like_err_fundamental_struct_ref.rs similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_ref.rs rename to tests/ui/coherence/coherence_copy_like_err_fundamental_struct_ref.rs diff --git a/src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.rs b/tests/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.rs similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.rs rename to tests/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.rs diff --git a/src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.stderr b/tests/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.stderr similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.stderr rename to tests/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.stderr diff --git a/src/test/ui/coherence/coherence_copy_like_err_struct.rs b/tests/ui/coherence/coherence_copy_like_err_struct.rs similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_struct.rs rename to tests/ui/coherence/coherence_copy_like_err_struct.rs diff --git a/src/test/ui/coherence/coherence_copy_like_err_struct.stderr b/tests/ui/coherence/coherence_copy_like_err_struct.stderr similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_struct.stderr rename to tests/ui/coherence/coherence_copy_like_err_struct.stderr diff --git a/src/test/ui/coherence/coherence_copy_like_err_tuple.rs b/tests/ui/coherence/coherence_copy_like_err_tuple.rs similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_tuple.rs rename to tests/ui/coherence/coherence_copy_like_err_tuple.rs diff --git a/src/test/ui/coherence/coherence_copy_like_err_tuple.stderr b/tests/ui/coherence/coherence_copy_like_err_tuple.stderr similarity index 100% rename from src/test/ui/coherence/coherence_copy_like_err_tuple.stderr rename to tests/ui/coherence/coherence_copy_like_err_tuple.stderr diff --git a/src/test/ui/coherence/coherence_inherent.rs b/tests/ui/coherence/coherence_inherent.rs similarity index 100% rename from src/test/ui/coherence/coherence_inherent.rs rename to tests/ui/coherence/coherence_inherent.rs diff --git a/src/test/ui/coherence/coherence_inherent.stderr b/tests/ui/coherence/coherence_inherent.stderr similarity index 100% rename from src/test/ui/coherence/coherence_inherent.stderr rename to tests/ui/coherence/coherence_inherent.stderr diff --git a/src/test/ui/coherence/coherence_inherent_cc.rs b/tests/ui/coherence/coherence_inherent_cc.rs similarity index 100% rename from src/test/ui/coherence/coherence_inherent_cc.rs rename to tests/ui/coherence/coherence_inherent_cc.rs diff --git a/src/test/ui/coherence/coherence_inherent_cc.stderr b/tests/ui/coherence/coherence_inherent_cc.stderr similarity index 100% rename from src/test/ui/coherence/coherence_inherent_cc.stderr rename to tests/ui/coherence/coherence_inherent_cc.stderr diff --git a/src/test/ui/coherence/coherence_local.rs b/tests/ui/coherence/coherence_local.rs similarity index 100% rename from src/test/ui/coherence/coherence_local.rs rename to tests/ui/coherence/coherence_local.rs diff --git a/src/test/ui/coherence/coherence_local_err_struct.rs b/tests/ui/coherence/coherence_local_err_struct.rs similarity index 100% rename from src/test/ui/coherence/coherence_local_err_struct.rs rename to tests/ui/coherence/coherence_local_err_struct.rs diff --git a/src/test/ui/coherence/coherence_local_err_struct.stderr b/tests/ui/coherence/coherence_local_err_struct.stderr similarity index 100% rename from src/test/ui/coherence/coherence_local_err_struct.stderr rename to tests/ui/coherence/coherence_local_err_struct.stderr diff --git a/src/test/ui/coherence/coherence_local_err_tuple.rs b/tests/ui/coherence/coherence_local_err_tuple.rs similarity index 100% rename from src/test/ui/coherence/coherence_local_err_tuple.rs rename to tests/ui/coherence/coherence_local_err_tuple.rs diff --git a/src/test/ui/coherence/coherence_local_err_tuple.stderr b/tests/ui/coherence/coherence_local_err_tuple.stderr similarity index 100% rename from src/test/ui/coherence/coherence_local_err_tuple.stderr rename to tests/ui/coherence/coherence_local_err_tuple.stderr diff --git a/src/test/ui/coherence/coherence_local_ref.rs b/tests/ui/coherence/coherence_local_ref.rs similarity index 100% rename from src/test/ui/coherence/coherence_local_ref.rs rename to tests/ui/coherence/coherence_local_ref.rs diff --git a/src/test/ui/coherence/conflicting-impl-with-err.rs b/tests/ui/coherence/conflicting-impl-with-err.rs similarity index 100% rename from src/test/ui/coherence/conflicting-impl-with-err.rs rename to tests/ui/coherence/conflicting-impl-with-err.rs diff --git a/src/test/ui/coherence/conflicting-impl-with-err.stderr b/tests/ui/coherence/conflicting-impl-with-err.stderr similarity index 100% rename from src/test/ui/coherence/conflicting-impl-with-err.stderr rename to tests/ui/coherence/conflicting-impl-with-err.stderr diff --git a/src/test/ui/coherence/const-generics-orphan-check-ok.rs b/tests/ui/coherence/const-generics-orphan-check-ok.rs similarity index 100% rename from src/test/ui/coherence/const-generics-orphan-check-ok.rs rename to tests/ui/coherence/const-generics-orphan-check-ok.rs diff --git a/src/test/ui/coherence/deep-bad-copy-reason.rs b/tests/ui/coherence/deep-bad-copy-reason.rs similarity index 100% rename from src/test/ui/coherence/deep-bad-copy-reason.rs rename to tests/ui/coherence/deep-bad-copy-reason.rs diff --git a/src/test/ui/coherence/deep-bad-copy-reason.stderr b/tests/ui/coherence/deep-bad-copy-reason.stderr similarity index 100% rename from src/test/ui/coherence/deep-bad-copy-reason.stderr rename to tests/ui/coherence/deep-bad-copy-reason.stderr diff --git a/src/test/ui/coherence/impl-foreign-for-foreign.rs b/tests/ui/coherence/impl-foreign-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-foreign.rs rename to tests/ui/coherence/impl-foreign-for-foreign.rs diff --git a/src/test/ui/coherence/impl-foreign-for-foreign.stderr b/tests/ui/coherence/impl-foreign-for-foreign.stderr similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-foreign.stderr rename to tests/ui/coherence/impl-foreign-for-foreign.stderr diff --git a/src/test/ui/coherence/impl-foreign-for-foreign[foreign].rs b/tests/ui/coherence/impl-foreign-for-foreign[foreign].rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-foreign[foreign].rs rename to tests/ui/coherence/impl-foreign-for-foreign[foreign].rs diff --git a/src/test/ui/coherence/impl-foreign-for-foreign[foreign].stderr b/tests/ui/coherence/impl-foreign-for-foreign[foreign].stderr similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-foreign[foreign].stderr rename to tests/ui/coherence/impl-foreign-for-foreign[foreign].stderr diff --git a/src/test/ui/coherence/impl-foreign-for-foreign[local].rs b/tests/ui/coherence/impl-foreign-for-foreign[local].rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-foreign[local].rs rename to tests/ui/coherence/impl-foreign-for-foreign[local].rs diff --git a/src/test/ui/coherence/impl-foreign-for-fundamental[foreign].rs b/tests/ui/coherence/impl-foreign-for-fundamental[foreign].rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-fundamental[foreign].rs rename to tests/ui/coherence/impl-foreign-for-fundamental[foreign].rs diff --git a/src/test/ui/coherence/impl-foreign-for-fundamental[foreign].stderr b/tests/ui/coherence/impl-foreign-for-fundamental[foreign].stderr similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-fundamental[foreign].stderr rename to tests/ui/coherence/impl-foreign-for-fundamental[foreign].stderr diff --git a/src/test/ui/coherence/impl-foreign-for-fundamental[local].rs b/tests/ui/coherence/impl-foreign-for-fundamental[local].rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-fundamental[local].rs rename to tests/ui/coherence/impl-foreign-for-fundamental[local].rs diff --git a/src/test/ui/coherence/impl-foreign-for-local.rs b/tests/ui/coherence/impl-foreign-for-local.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-local.rs rename to tests/ui/coherence/impl-foreign-for-local.rs diff --git a/src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs b/tests/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs rename to tests/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs diff --git a/src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental[foreign].rs b/tests/ui/coherence/impl-foreign-for-locally-defined-fundamental[foreign].rs similarity index 100% rename from src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental[foreign].rs rename to tests/ui/coherence/impl-foreign-for-locally-defined-fundamental[foreign].rs diff --git a/src/test/ui/coherence/impl-foreign[foreign]-for-foreign.rs b/tests/ui/coherence/impl-foreign[foreign]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign[foreign]-for-foreign.rs rename to tests/ui/coherence/impl-foreign[foreign]-for-foreign.rs diff --git a/src/test/ui/coherence/impl-foreign[foreign]-for-foreign.stderr b/tests/ui/coherence/impl-foreign[foreign]-for-foreign.stderr similarity index 100% rename from src/test/ui/coherence/impl-foreign[foreign]-for-foreign.stderr rename to tests/ui/coherence/impl-foreign[foreign]-for-foreign.stderr diff --git a/src/test/ui/coherence/impl-foreign[foreign]-for-local.rs b/tests/ui/coherence/impl-foreign[foreign]-for-local.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign[foreign]-for-local.rs rename to tests/ui/coherence/impl-foreign[foreign]-for-local.rs diff --git a/src/test/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.rs b/tests/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.rs rename to tests/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.rs diff --git a/src/test/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.stderr b/tests/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.stderr similarity index 100% rename from src/test/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.stderr rename to tests/ui/coherence/impl-foreign[fundemental[foreign]]-for-foreign.stderr diff --git a/src/test/ui/coherence/impl-foreign[fundemental[local]]-for-foreign.rs b/tests/ui/coherence/impl-foreign[fundemental[local]]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl-foreign[fundemental[local]]-for-foreign.rs rename to tests/ui/coherence/impl-foreign[fundemental[local]]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign-for-foreign[t].rs b/tests/ui/coherence/impl[t]-foreign-for-foreign[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign-for-foreign[t].rs rename to tests/ui/coherence/impl[t]-foreign-for-foreign[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign-for-foreign[t].stderr b/tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign-for-foreign[t].stderr rename to tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr diff --git a/src/test/ui/coherence/impl[t]-foreign-for-fundamental[t].rs b/tests/ui/coherence/impl[t]-foreign-for-fundamental[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign-for-fundamental[t].rs rename to tests/ui/coherence/impl[t]-foreign-for-fundamental[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign-for-fundamental[t].stderr b/tests/ui/coherence/impl[t]-foreign-for-fundamental[t].stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign-for-fundamental[t].stderr rename to tests/ui/coherence/impl[t]-foreign-for-fundamental[t].stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[foreign[t]_local]-for-foreign.rs b/tests/ui/coherence/impl[t]-foreign[foreign[t]_local]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[foreign[t]_local]-for-foreign.rs rename to tests/ui/coherence/impl[t]-foreign[foreign[t]_local]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].rs b/tests/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].rs rename to tests/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].stderr b/tests/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].stderr rename to tests/ui/coherence/impl[t]-foreign[foreign]-for-fundamental[t].stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[foreign]-for-t.rs b/tests/ui/coherence/impl[t]-foreign[foreign]-for-t.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[foreign]-for-t.rs rename to tests/ui/coherence/impl[t]-foreign[foreign]-for-t.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[foreign]-for-t.stderr b/tests/ui/coherence/impl[t]-foreign[foreign]-for-t.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[foreign]-for-t.stderr rename to tests/ui/coherence/impl[t]-foreign[foreign]-for-t.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.rs b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.rs rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.stderr b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.stderr rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-foreign.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].rs b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].rs rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].stderr b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].stderr rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-fundamental[t].stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-local.rs b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-local.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-local.rs rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-local.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.rs b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.rs rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.stderr b/tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.stderr rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.rs b/tests/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.rs rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.stderr b/tests/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.stderr rename to tests/ui/coherence/impl[t]-foreign[fundamental[t]_local]-for-foreign.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[fundemental[local]]-for-foreign[t].rs b/tests/ui/coherence/impl[t]-foreign[fundemental[local]]-for-foreign[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[fundemental[local]]-for-foreign[t].rs rename to tests/ui/coherence/impl[t]-foreign[fundemental[local]]-for-foreign[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-foreign.rs b/tests/ui/coherence/impl[t]-foreign[local]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-foreign.rs rename to tests/ui/coherence/impl[t]-foreign[local]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-foreign[t].rs b/tests/ui/coherence/impl[t]-foreign[local]-for-foreign[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-foreign[t].rs rename to tests/ui/coherence/impl[t]-foreign[local]-for-foreign[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[foreign[t]].rs b/tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[foreign[t]].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[foreign[t]].rs rename to tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[foreign[t]].rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].rs b/tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].rs rename to tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].stderr b/tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].stderr rename to tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-local.rs b/tests/ui/coherence/impl[t]-foreign[local]-for-local.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-local.rs rename to tests/ui/coherence/impl[t]-foreign[local]-for-local.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-t.rs b/tests/ui/coherence/impl[t]-foreign[local]-for-t.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-t.rs rename to tests/ui/coherence/impl[t]-foreign[local]-for-t.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[local]-for-t.stderr b/tests/ui/coherence/impl[t]-foreign[local]-for-t.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local]-for-t.stderr rename to tests/ui/coherence/impl[t]-foreign[local]-for-t.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[local_fundamental[t]]-for-foreign.rs b/tests/ui/coherence/impl[t]-foreign[local_fundamental[t]]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[local_fundamental[t]]-for-foreign.rs rename to tests/ui/coherence/impl[t]-foreign[local_fundamental[t]]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-foreign.rs b/tests/ui/coherence/impl[t]-foreign[t]-for-foreign.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-foreign.rs rename to tests/ui/coherence/impl[t]-foreign[t]-for-foreign.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-foreign.stderr b/tests/ui/coherence/impl[t]-foreign[t]-for-foreign.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-foreign.stderr rename to tests/ui/coherence/impl[t]-foreign[t]-for-foreign.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-fundamental.rs b/tests/ui/coherence/impl[t]-foreign[t]-for-fundamental.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-fundamental.rs rename to tests/ui/coherence/impl[t]-foreign[t]-for-fundamental.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-fundamental.stderr b/tests/ui/coherence/impl[t]-foreign[t]-for-fundamental.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-fundamental.stderr rename to tests/ui/coherence/impl[t]-foreign[t]-for-fundamental.stderr diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-local.rs b/tests/ui/coherence/impl[t]-foreign[t]-for-local.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-local.rs rename to tests/ui/coherence/impl[t]-foreign[t]-for-local.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-t.rs b/tests/ui/coherence/impl[t]-foreign[t]-for-t.rs similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-t.rs rename to tests/ui/coherence/impl[t]-foreign[t]-for-t.rs diff --git a/src/test/ui/coherence/impl[t]-foreign[t]-for-t.stderr b/tests/ui/coherence/impl[t]-foreign[t]-for-t.stderr similarity index 100% rename from src/test/ui/coherence/impl[t]-foreign[t]-for-t.stderr rename to tests/ui/coherence/impl[t]-foreign[t]-for-t.stderr diff --git a/src/test/ui/coherence/inter-crate-ambiguity-causes-notes.rs b/tests/ui/coherence/inter-crate-ambiguity-causes-notes.rs similarity index 100% rename from src/test/ui/coherence/inter-crate-ambiguity-causes-notes.rs rename to tests/ui/coherence/inter-crate-ambiguity-causes-notes.rs diff --git a/src/test/ui/coherence/inter-crate-ambiguity-causes-notes.stderr b/tests/ui/coherence/inter-crate-ambiguity-causes-notes.stderr similarity index 100% rename from src/test/ui/coherence/inter-crate-ambiguity-causes-notes.stderr rename to tests/ui/coherence/inter-crate-ambiguity-causes-notes.stderr diff --git a/src/test/ui/coherence/issue-85026.rs b/tests/ui/coherence/issue-85026.rs similarity index 100% rename from src/test/ui/coherence/issue-85026.rs rename to tests/ui/coherence/issue-85026.rs diff --git a/src/test/ui/coherence/issue-85026.stderr b/tests/ui/coherence/issue-85026.stderr similarity index 100% rename from src/test/ui/coherence/issue-85026.stderr rename to tests/ui/coherence/issue-85026.stderr diff --git a/src/test/ui/coherence/issue-99663-2.rs b/tests/ui/coherence/issue-99663-2.rs similarity index 100% rename from src/test/ui/coherence/issue-99663-2.rs rename to tests/ui/coherence/issue-99663-2.rs diff --git a/src/test/ui/coherence/issue-99663.rs b/tests/ui/coherence/issue-99663.rs similarity index 100% rename from src/test/ui/coherence/issue-99663.rs rename to tests/ui/coherence/issue-99663.rs diff --git a/src/test/ui/coherence/re-rebalance-coherence-default-generic-associated-type.rs b/tests/ui/coherence/re-rebalance-coherence-default-generic-associated-type.rs similarity index 100% rename from src/test/ui/coherence/re-rebalance-coherence-default-generic-associated-type.rs rename to tests/ui/coherence/re-rebalance-coherence-default-generic-associated-type.rs diff --git a/src/test/ui/coherence/re-rebalance-coherence.rs b/tests/ui/coherence/re-rebalance-coherence.rs similarity index 100% rename from src/test/ui/coherence/re-rebalance-coherence.rs rename to tests/ui/coherence/re-rebalance-coherence.rs diff --git a/src/test/ui/coherence/strict-coherence-needs-negative-coherence.rs b/tests/ui/coherence/strict-coherence-needs-negative-coherence.rs similarity index 100% rename from src/test/ui/coherence/strict-coherence-needs-negative-coherence.rs rename to tests/ui/coherence/strict-coherence-needs-negative-coherence.rs diff --git a/src/test/ui/coherence/strict-coherence-needs-negative-coherence.stderr b/tests/ui/coherence/strict-coherence-needs-negative-coherence.stderr similarity index 100% rename from src/test/ui/coherence/strict-coherence-needs-negative-coherence.stderr rename to tests/ui/coherence/strict-coherence-needs-negative-coherence.stderr diff --git a/src/test/ui/command-line-diagnostics.rs b/tests/ui/command-line-diagnostics.rs similarity index 100% rename from src/test/ui/command-line-diagnostics.rs rename to tests/ui/command-line-diagnostics.rs diff --git a/src/test/ui/command-line-diagnostics.stderr b/tests/ui/command-line-diagnostics.stderr similarity index 100% rename from src/test/ui/command-line-diagnostics.stderr rename to tests/ui/command-line-diagnostics.stderr diff --git a/src/test/ui/command/command-argv0.rs b/tests/ui/command/command-argv0.rs similarity index 100% rename from src/test/ui/command/command-argv0.rs rename to tests/ui/command/command-argv0.rs diff --git a/src/test/ui/command/command-create-pidfd.rs b/tests/ui/command/command-create-pidfd.rs similarity index 100% rename from src/test/ui/command/command-create-pidfd.rs rename to tests/ui/command/command-create-pidfd.rs diff --git a/src/test/ui/command/command-current-dir.rs b/tests/ui/command/command-current-dir.rs similarity index 100% rename from src/test/ui/command/command-current-dir.rs rename to tests/ui/command/command-current-dir.rs diff --git a/src/test/ui/command/command-exec.rs b/tests/ui/command/command-exec.rs similarity index 100% rename from src/test/ui/command/command-exec.rs rename to tests/ui/command/command-exec.rs diff --git a/src/test/ui/command/command-pre-exec.rs b/tests/ui/command/command-pre-exec.rs similarity index 100% rename from src/test/ui/command/command-pre-exec.rs rename to tests/ui/command/command-pre-exec.rs diff --git a/src/test/ui/command/command-setgroups.rs b/tests/ui/command/command-setgroups.rs similarity index 100% rename from src/test/ui/command/command-setgroups.rs rename to tests/ui/command/command-setgroups.rs diff --git a/src/test/ui/command/command-uid-gid.rs b/tests/ui/command/command-uid-gid.rs similarity index 100% rename from src/test/ui/command/command-uid-gid.rs rename to tests/ui/command/command-uid-gid.rs diff --git a/src/test/ui/command/issue-10626.rs b/tests/ui/command/issue-10626.rs similarity index 100% rename from src/test/ui/command/issue-10626.rs rename to tests/ui/command/issue-10626.rs diff --git a/src/test/ui/commandline-argfile-badutf8.args b/tests/ui/commandline-argfile-badutf8.args similarity index 100% rename from src/test/ui/commandline-argfile-badutf8.args rename to tests/ui/commandline-argfile-badutf8.args diff --git a/src/test/ui/commandline-argfile-badutf8.rs b/tests/ui/commandline-argfile-badutf8.rs similarity index 100% rename from src/test/ui/commandline-argfile-badutf8.rs rename to tests/ui/commandline-argfile-badutf8.rs diff --git a/src/test/ui/commandline-argfile-badutf8.stderr b/tests/ui/commandline-argfile-badutf8.stderr similarity index 100% rename from src/test/ui/commandline-argfile-badutf8.stderr rename to tests/ui/commandline-argfile-badutf8.stderr diff --git a/src/test/ui/commandline-argfile-missing.rs b/tests/ui/commandline-argfile-missing.rs similarity index 100% rename from src/test/ui/commandline-argfile-missing.rs rename to tests/ui/commandline-argfile-missing.rs diff --git a/src/test/ui/commandline-argfile-missing.stderr b/tests/ui/commandline-argfile-missing.stderr similarity index 100% rename from src/test/ui/commandline-argfile-missing.stderr rename to tests/ui/commandline-argfile-missing.stderr diff --git a/src/test/ui/commandline-argfile.args b/tests/ui/commandline-argfile.args similarity index 100% rename from src/test/ui/commandline-argfile.args rename to tests/ui/commandline-argfile.args diff --git a/src/test/ui/commandline-argfile.rs b/tests/ui/commandline-argfile.rs similarity index 100% rename from src/test/ui/commandline-argfile.rs rename to tests/ui/commandline-argfile.rs diff --git a/src/test/ui/compare-method/bad-self-type.rs b/tests/ui/compare-method/bad-self-type.rs similarity index 100% rename from src/test/ui/compare-method/bad-self-type.rs rename to tests/ui/compare-method/bad-self-type.rs diff --git a/src/test/ui/compare-method/bad-self-type.stderr b/tests/ui/compare-method/bad-self-type.stderr similarity index 100% rename from src/test/ui/compare-method/bad-self-type.stderr rename to tests/ui/compare-method/bad-self-type.stderr diff --git a/src/test/ui/compare-method/issue-90444.rs b/tests/ui/compare-method/issue-90444.rs similarity index 100% rename from src/test/ui/compare-method/issue-90444.rs rename to tests/ui/compare-method/issue-90444.rs diff --git a/src/test/ui/compare-method/issue-90444.stderr b/tests/ui/compare-method/issue-90444.stderr similarity index 100% rename from src/test/ui/compare-method/issue-90444.stderr rename to tests/ui/compare-method/issue-90444.stderr diff --git a/src/test/ui/compare-method/proj-outlives-region.rs b/tests/ui/compare-method/proj-outlives-region.rs similarity index 100% rename from src/test/ui/compare-method/proj-outlives-region.rs rename to tests/ui/compare-method/proj-outlives-region.rs diff --git a/src/test/ui/compare-method/proj-outlives-region.stderr b/tests/ui/compare-method/proj-outlives-region.stderr similarity index 100% rename from src/test/ui/compare-method/proj-outlives-region.stderr rename to tests/ui/compare-method/proj-outlives-region.stderr diff --git a/src/test/ui/compare-method/region-extra-2.rs b/tests/ui/compare-method/region-extra-2.rs similarity index 100% rename from src/test/ui/compare-method/region-extra-2.rs rename to tests/ui/compare-method/region-extra-2.rs diff --git a/src/test/ui/compare-method/region-extra-2.stderr b/tests/ui/compare-method/region-extra-2.stderr similarity index 100% rename from src/test/ui/compare-method/region-extra-2.stderr rename to tests/ui/compare-method/region-extra-2.stderr diff --git a/src/test/ui/compare-method/region-extra.rs b/tests/ui/compare-method/region-extra.rs similarity index 100% rename from src/test/ui/compare-method/region-extra.rs rename to tests/ui/compare-method/region-extra.rs diff --git a/src/test/ui/compare-method/region-extra.stderr b/tests/ui/compare-method/region-extra.stderr similarity index 100% rename from src/test/ui/compare-method/region-extra.stderr rename to tests/ui/compare-method/region-extra.stderr diff --git a/src/test/ui/compare-method/region-unrelated.rs b/tests/ui/compare-method/region-unrelated.rs similarity index 100% rename from src/test/ui/compare-method/region-unrelated.rs rename to tests/ui/compare-method/region-unrelated.rs diff --git a/src/test/ui/compare-method/region-unrelated.stderr b/tests/ui/compare-method/region-unrelated.stderr similarity index 100% rename from src/test/ui/compare-method/region-unrelated.stderr rename to tests/ui/compare-method/region-unrelated.stderr diff --git a/src/test/ui/compare-method/reordered-type-param.rs b/tests/ui/compare-method/reordered-type-param.rs similarity index 100% rename from src/test/ui/compare-method/reordered-type-param.rs rename to tests/ui/compare-method/reordered-type-param.rs diff --git a/src/test/ui/compare-method/reordered-type-param.stderr b/tests/ui/compare-method/reordered-type-param.stderr similarity index 100% rename from src/test/ui/compare-method/reordered-type-param.stderr rename to tests/ui/compare-method/reordered-type-param.stderr diff --git a/src/test/ui/compare-method/trait-bound-on-type-parameter.rs b/tests/ui/compare-method/trait-bound-on-type-parameter.rs similarity index 100% rename from src/test/ui/compare-method/trait-bound-on-type-parameter.rs rename to tests/ui/compare-method/trait-bound-on-type-parameter.rs diff --git a/src/test/ui/compare-method/trait-bound-on-type-parameter.stderr b/tests/ui/compare-method/trait-bound-on-type-parameter.stderr similarity index 100% rename from src/test/ui/compare-method/trait-bound-on-type-parameter.stderr rename to tests/ui/compare-method/trait-bound-on-type-parameter.stderr diff --git a/src/test/ui/compare-method/traits-misc-mismatch-1.rs b/tests/ui/compare-method/traits-misc-mismatch-1.rs similarity index 100% rename from src/test/ui/compare-method/traits-misc-mismatch-1.rs rename to tests/ui/compare-method/traits-misc-mismatch-1.rs diff --git a/src/test/ui/compare-method/traits-misc-mismatch-1.stderr b/tests/ui/compare-method/traits-misc-mismatch-1.stderr similarity index 100% rename from src/test/ui/compare-method/traits-misc-mismatch-1.stderr rename to tests/ui/compare-method/traits-misc-mismatch-1.stderr diff --git a/src/test/ui/compare-method/traits-misc-mismatch-2.rs b/tests/ui/compare-method/traits-misc-mismatch-2.rs similarity index 100% rename from src/test/ui/compare-method/traits-misc-mismatch-2.rs rename to tests/ui/compare-method/traits-misc-mismatch-2.rs diff --git a/src/test/ui/compare-method/traits-misc-mismatch-2.stderr b/tests/ui/compare-method/traits-misc-mismatch-2.stderr similarity index 100% rename from src/test/ui/compare-method/traits-misc-mismatch-2.stderr rename to tests/ui/compare-method/traits-misc-mismatch-2.stderr diff --git a/src/test/ui/compile_error_macro.rs b/tests/ui/compile_error_macro.rs similarity index 100% rename from src/test/ui/compile_error_macro.rs rename to tests/ui/compile_error_macro.rs diff --git a/src/test/ui/compile_error_macro.stderr b/tests/ui/compile_error_macro.stderr similarity index 100% rename from src/test/ui/compile_error_macro.stderr rename to tests/ui/compile_error_macro.stderr diff --git a/src/test/ui/compiletest-self-test/compile-flags-last.rs b/tests/ui/compiletest-self-test/compile-flags-last.rs similarity index 100% rename from src/test/ui/compiletest-self-test/compile-flags-last.rs rename to tests/ui/compiletest-self-test/compile-flags-last.rs diff --git a/src/test/ui/compiletest-self-test/compile-flags-last.stderr b/tests/ui/compiletest-self-test/compile-flags-last.stderr similarity index 100% rename from src/test/ui/compiletest-self-test/compile-flags-last.stderr rename to tests/ui/compiletest-self-test/compile-flags-last.stderr diff --git a/src/test/ui/compiletest-self-test/ui-testing-optout.rs b/tests/ui/compiletest-self-test/ui-testing-optout.rs similarity index 100% rename from src/test/ui/compiletest-self-test/ui-testing-optout.rs rename to tests/ui/compiletest-self-test/ui-testing-optout.rs diff --git a/src/test/ui/compiletest-self-test/ui-testing-optout.stderr b/tests/ui/compiletest-self-test/ui-testing-optout.stderr similarity index 100% rename from src/test/ui/compiletest-self-test/ui-testing-optout.stderr rename to tests/ui/compiletest-self-test/ui-testing-optout.stderr diff --git a/src/test/ui/complex.rs b/tests/ui/complex.rs similarity index 100% rename from src/test/ui/complex.rs rename to tests/ui/complex.rs diff --git a/src/test/ui/conditional-compilation/auxiliary/namespaced_enums.rs b/tests/ui/conditional-compilation/auxiliary/namespaced_enums.rs similarity index 100% rename from src/test/ui/conditional-compilation/auxiliary/namespaced_enums.rs rename to tests/ui/conditional-compilation/auxiliary/namespaced_enums.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-1.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-1.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-1.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-1.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-1.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-1.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-1.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-1.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-2.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-2.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-2.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-2.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-2.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-2.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-2.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-2.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-3.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-3.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-3.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-3.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-3.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-3.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-3.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-3.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-4.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-4.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-4.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-4.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-4.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-4.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-4.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-4.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-5.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-5.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-5.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-5.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-5.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-5.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-5.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-5.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-6.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-6.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-6.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-6.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-6.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-6.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-6.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-6.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-7.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-7.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-7.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-7.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-7.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-7.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-7.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-7.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-8.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-8.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-8.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-8.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-8.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-8.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-8.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-8.stderr diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-9.rs b/tests/ui/conditional-compilation/cfg-arg-invalid-9.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-9.rs rename to tests/ui/conditional-compilation/cfg-arg-invalid-9.rs diff --git a/src/test/ui/conditional-compilation/cfg-arg-invalid-9.stderr b/tests/ui/conditional-compilation/cfg-arg-invalid-9.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-arg-invalid-9.stderr rename to tests/ui/conditional-compilation/cfg-arg-invalid-9.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-cfg-2.rs b/tests/ui/conditional-compilation/cfg-attr-cfg-2.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-cfg-2.rs rename to tests/ui/conditional-compilation/cfg-attr-cfg-2.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-cfg-2.stderr b/tests/ui/conditional-compilation/cfg-attr-cfg-2.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-cfg-2.stderr rename to tests/ui/conditional-compilation/cfg-attr-cfg-2.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-crate-2.rs b/tests/ui/conditional-compilation/cfg-attr-crate-2.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-crate-2.rs rename to tests/ui/conditional-compilation/cfg-attr-crate-2.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-crate-2.stderr b/tests/ui/conditional-compilation/cfg-attr-crate-2.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-crate-2.stderr rename to tests/ui/conditional-compilation/cfg-attr-crate-2.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-empty-is-unused.rs b/tests/ui/conditional-compilation/cfg-attr-empty-is-unused.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-empty-is-unused.rs rename to tests/ui/conditional-compilation/cfg-attr-empty-is-unused.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-empty-is-unused.stderr b/tests/ui/conditional-compilation/cfg-attr-empty-is-unused.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-empty-is-unused.stderr rename to tests/ui/conditional-compilation/cfg-attr-empty-is-unused.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-invalid-predicate.rs b/tests/ui/conditional-compilation/cfg-attr-invalid-predicate.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-invalid-predicate.rs rename to tests/ui/conditional-compilation/cfg-attr-invalid-predicate.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-invalid-predicate.stderr b/tests/ui/conditional-compilation/cfg-attr-invalid-predicate.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-invalid-predicate.stderr rename to tests/ui/conditional-compilation/cfg-attr-invalid-predicate.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-false.rs b/tests/ui/conditional-compilation/cfg-attr-multi-false.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-false.rs rename to tests/ui/conditional-compilation/cfg-attr-multi-false.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-invalid-1.rs b/tests/ui/conditional-compilation/cfg-attr-multi-invalid-1.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-invalid-1.rs rename to tests/ui/conditional-compilation/cfg-attr-multi-invalid-1.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-invalid-1.stderr b/tests/ui/conditional-compilation/cfg-attr-multi-invalid-1.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-invalid-1.stderr rename to tests/ui/conditional-compilation/cfg-attr-multi-invalid-1.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-invalid-2.rs b/tests/ui/conditional-compilation/cfg-attr-multi-invalid-2.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-invalid-2.rs rename to tests/ui/conditional-compilation/cfg-attr-multi-invalid-2.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-invalid-2.stderr b/tests/ui/conditional-compilation/cfg-attr-multi-invalid-2.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-invalid-2.stderr rename to tests/ui/conditional-compilation/cfg-attr-multi-invalid-2.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-true.rs b/tests/ui/conditional-compilation/cfg-attr-multi-true.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-true.rs rename to tests/ui/conditional-compilation/cfg-attr-multi-true.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-multi-true.stderr b/tests/ui/conditional-compilation/cfg-attr-multi-true.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-multi-true.stderr rename to tests/ui/conditional-compilation/cfg-attr-multi-true.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-parse.rs b/tests/ui/conditional-compilation/cfg-attr-parse.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-parse.rs rename to tests/ui/conditional-compilation/cfg-attr-parse.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-parse.stderr b/tests/ui/conditional-compilation/cfg-attr-parse.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-parse.stderr rename to tests/ui/conditional-compilation/cfg-attr-parse.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs b/tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-syntax-validation.rs rename to tests/ui/conditional-compilation/cfg-attr-syntax-validation.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr b/tests/ui/conditional-compilation/cfg-attr-syntax-validation.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-syntax-validation.stderr rename to tests/ui/conditional-compilation/cfg-attr-syntax-validation.stderr diff --git a/src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.rs b/tests/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.rs rename to tests/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.rs diff --git a/src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.stderr b/tests/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.stderr rename to tests/ui/conditional-compilation/cfg-attr-unknown-attribute-macro-expansion.stderr diff --git a/src/test/ui/conditional-compilation/cfg-empty-codemap.rs b/tests/ui/conditional-compilation/cfg-empty-codemap.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-empty-codemap.rs rename to tests/ui/conditional-compilation/cfg-empty-codemap.rs diff --git a/src/test/ui/conditional-compilation/cfg-empty-codemap.stderr b/tests/ui/conditional-compilation/cfg-empty-codemap.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-empty-codemap.stderr rename to tests/ui/conditional-compilation/cfg-empty-codemap.stderr diff --git a/src/test/ui/conditional-compilation/cfg-generic-params.rs b/tests/ui/conditional-compilation/cfg-generic-params.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-generic-params.rs rename to tests/ui/conditional-compilation/cfg-generic-params.rs diff --git a/src/test/ui/conditional-compilation/cfg-generic-params.stderr b/tests/ui/conditional-compilation/cfg-generic-params.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-generic-params.stderr rename to tests/ui/conditional-compilation/cfg-generic-params.stderr diff --git a/src/test/ui/conditional-compilation/cfg-in-crate-1.rs b/tests/ui/conditional-compilation/cfg-in-crate-1.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-in-crate-1.rs rename to tests/ui/conditional-compilation/cfg-in-crate-1.rs diff --git a/src/test/ui/conditional-compilation/cfg-in-crate-1.stderr b/tests/ui/conditional-compilation/cfg-in-crate-1.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-in-crate-1.stderr rename to tests/ui/conditional-compilation/cfg-in-crate-1.stderr diff --git a/src/test/ui/conditional-compilation/cfg-non-opt-expr.rs b/tests/ui/conditional-compilation/cfg-non-opt-expr.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg-non-opt-expr.rs rename to tests/ui/conditional-compilation/cfg-non-opt-expr.rs diff --git a/src/test/ui/conditional-compilation/cfg-non-opt-expr.stderr b/tests/ui/conditional-compilation/cfg-non-opt-expr.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg-non-opt-expr.stderr rename to tests/ui/conditional-compilation/cfg-non-opt-expr.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible-bugs.rs b/tests/ui/conditional-compilation/cfg_accessible-bugs.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-bugs.rs rename to tests/ui/conditional-compilation/cfg_accessible-bugs.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible-bugs.stderr b/tests/ui/conditional-compilation/cfg_accessible-bugs.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-bugs.stderr rename to tests/ui/conditional-compilation/cfg_accessible-bugs.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible-input-validation.rs b/tests/ui/conditional-compilation/cfg_accessible-input-validation.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-input-validation.rs rename to tests/ui/conditional-compilation/cfg_accessible-input-validation.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible-input-validation.stderr b/tests/ui/conditional-compilation/cfg_accessible-input-validation.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-input-validation.stderr rename to tests/ui/conditional-compilation/cfg_accessible-input-validation.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible-not_sure.edition2015.stderr b/tests/ui/conditional-compilation/cfg_accessible-not_sure.edition2015.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-not_sure.edition2015.stderr rename to tests/ui/conditional-compilation/cfg_accessible-not_sure.edition2015.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible-not_sure.edition2021.stderr b/tests/ui/conditional-compilation/cfg_accessible-not_sure.edition2021.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-not_sure.edition2021.stderr rename to tests/ui/conditional-compilation/cfg_accessible-not_sure.edition2021.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible-not_sure.rs b/tests/ui/conditional-compilation/cfg_accessible-not_sure.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-not_sure.rs rename to tests/ui/conditional-compilation/cfg_accessible-not_sure.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible-private.rs b/tests/ui/conditional-compilation/cfg_accessible-private.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-private.rs rename to tests/ui/conditional-compilation/cfg_accessible-private.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible-stuck.rs b/tests/ui/conditional-compilation/cfg_accessible-stuck.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-stuck.rs rename to tests/ui/conditional-compilation/cfg_accessible-stuck.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible-stuck.stderr b/tests/ui/conditional-compilation/cfg_accessible-stuck.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-stuck.stderr rename to tests/ui/conditional-compilation/cfg_accessible-stuck.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible-unstable.rs b/tests/ui/conditional-compilation/cfg_accessible-unstable.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-unstable.rs rename to tests/ui/conditional-compilation/cfg_accessible-unstable.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible-unstable.stderr b/tests/ui/conditional-compilation/cfg_accessible-unstable.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible-unstable.stderr rename to tests/ui/conditional-compilation/cfg_accessible-unstable.stderr diff --git a/src/test/ui/conditional-compilation/cfg_accessible.rs b/tests/ui/conditional-compilation/cfg_accessible.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible.rs rename to tests/ui/conditional-compilation/cfg_accessible.rs diff --git a/src/test/ui/conditional-compilation/cfg_accessible.stderr b/tests/ui/conditional-compilation/cfg_accessible.stderr similarity index 100% rename from src/test/ui/conditional-compilation/cfg_accessible.stderr rename to tests/ui/conditional-compilation/cfg_accessible.stderr diff --git a/src/test/ui/conditional-compilation/cfg_attr_path.rs b/tests/ui/conditional-compilation/cfg_attr_path.rs similarity index 100% rename from src/test/ui/conditional-compilation/cfg_attr_path.rs rename to tests/ui/conditional-compilation/cfg_attr_path.rs diff --git a/src/test/ui/conditional-compilation/inner-cfg-non-inline-mod.rs b/tests/ui/conditional-compilation/inner-cfg-non-inline-mod.rs similarity index 100% rename from src/test/ui/conditional-compilation/inner-cfg-non-inline-mod.rs rename to tests/ui/conditional-compilation/inner-cfg-non-inline-mod.rs diff --git a/src/test/ui/conditional-compilation/issue-34028.rs b/tests/ui/conditional-compilation/issue-34028.rs similarity index 100% rename from src/test/ui/conditional-compilation/issue-34028.rs rename to tests/ui/conditional-compilation/issue-34028.rs diff --git a/src/test/ui/conditional-compilation/module_with_cfg.rs b/tests/ui/conditional-compilation/module_with_cfg.rs similarity index 100% rename from src/test/ui/conditional-compilation/module_with_cfg.rs rename to tests/ui/conditional-compilation/module_with_cfg.rs diff --git a/src/test/ui/conditional-compilation/test-cfg.rs b/tests/ui/conditional-compilation/test-cfg.rs similarity index 100% rename from src/test/ui/conditional-compilation/test-cfg.rs rename to tests/ui/conditional-compilation/test-cfg.rs diff --git a/src/test/ui/conditional-compilation/test-cfg.stderr b/tests/ui/conditional-compilation/test-cfg.stderr similarity index 100% rename from src/test/ui/conditional-compilation/test-cfg.stderr rename to tests/ui/conditional-compilation/test-cfg.stderr diff --git a/src/test/ui/conflicting-repr-hints.rs b/tests/ui/conflicting-repr-hints.rs similarity index 100% rename from src/test/ui/conflicting-repr-hints.rs rename to tests/ui/conflicting-repr-hints.rs diff --git a/src/test/ui/conflicting-repr-hints.stderr b/tests/ui/conflicting-repr-hints.stderr similarity index 100% rename from src/test/ui/conflicting-repr-hints.stderr rename to tests/ui/conflicting-repr-hints.stderr diff --git a/src/test/ui/confuse-field-and-method/issue-18343.rs b/tests/ui/confuse-field-and-method/issue-18343.rs similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-18343.rs rename to tests/ui/confuse-field-and-method/issue-18343.rs diff --git a/src/test/ui/confuse-field-and-method/issue-18343.stderr b/tests/ui/confuse-field-and-method/issue-18343.stderr similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-18343.stderr rename to tests/ui/confuse-field-and-method/issue-18343.stderr diff --git a/src/test/ui/confuse-field-and-method/issue-2392.rs b/tests/ui/confuse-field-and-method/issue-2392.rs similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-2392.rs rename to tests/ui/confuse-field-and-method/issue-2392.rs diff --git a/src/test/ui/confuse-field-and-method/issue-2392.stderr b/tests/ui/confuse-field-and-method/issue-2392.stderr similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-2392.stderr rename to tests/ui/confuse-field-and-method/issue-2392.stderr diff --git a/src/test/ui/confuse-field-and-method/issue-32128.rs b/tests/ui/confuse-field-and-method/issue-32128.rs similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-32128.rs rename to tests/ui/confuse-field-and-method/issue-32128.rs diff --git a/src/test/ui/confuse-field-and-method/issue-32128.stderr b/tests/ui/confuse-field-and-method/issue-32128.stderr similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-32128.stderr rename to tests/ui/confuse-field-and-method/issue-32128.stderr diff --git a/src/test/ui/confuse-field-and-method/issue-33784.rs b/tests/ui/confuse-field-and-method/issue-33784.rs similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-33784.rs rename to tests/ui/confuse-field-and-method/issue-33784.rs diff --git a/src/test/ui/confuse-field-and-method/issue-33784.stderr b/tests/ui/confuse-field-and-method/issue-33784.stderr similarity index 100% rename from src/test/ui/confuse-field-and-method/issue-33784.stderr rename to tests/ui/confuse-field-and-method/issue-33784.stderr diff --git a/src/test/ui/confuse-field-and-method/private-field.rs b/tests/ui/confuse-field-and-method/private-field.rs similarity index 100% rename from src/test/ui/confuse-field-and-method/private-field.rs rename to tests/ui/confuse-field-and-method/private-field.rs diff --git a/src/test/ui/confuse-field-and-method/private-field.stderr b/tests/ui/confuse-field-and-method/private-field.stderr similarity index 100% rename from src/test/ui/confuse-field-and-method/private-field.stderr rename to tests/ui/confuse-field-and-method/private-field.stderr diff --git a/src/test/ui/conservative_impl_trait.rs b/tests/ui/conservative_impl_trait.rs similarity index 100% rename from src/test/ui/conservative_impl_trait.rs rename to tests/ui/conservative_impl_trait.rs diff --git a/src/test/ui/conservative_impl_trait.stderr b/tests/ui/conservative_impl_trait.stderr similarity index 100% rename from src/test/ui/conservative_impl_trait.stderr rename to tests/ui/conservative_impl_trait.stderr diff --git a/src/test/ui/const-generics/apit-with-const-param.rs b/tests/ui/const-generics/apit-with-const-param.rs similarity index 100% rename from src/test/ui/const-generics/apit-with-const-param.rs rename to tests/ui/const-generics/apit-with-const-param.rs diff --git a/src/test/ui/const-generics/arg-in-pat-1.rs b/tests/ui/const-generics/arg-in-pat-1.rs similarity index 100% rename from src/test/ui/const-generics/arg-in-pat-1.rs rename to tests/ui/const-generics/arg-in-pat-1.rs diff --git a/src/test/ui/const-generics/arg-in-pat-2.rs b/tests/ui/const-generics/arg-in-pat-2.rs similarity index 100% rename from src/test/ui/const-generics/arg-in-pat-2.rs rename to tests/ui/const-generics/arg-in-pat-2.rs diff --git a/src/test/ui/const-generics/arg-in-pat-3.rs b/tests/ui/const-generics/arg-in-pat-3.rs similarity index 100% rename from src/test/ui/const-generics/arg-in-pat-3.rs rename to tests/ui/const-generics/arg-in-pat-3.rs diff --git a/src/test/ui/const-generics/argument_order.rs b/tests/ui/const-generics/argument_order.rs similarity index 100% rename from src/test/ui/const-generics/argument_order.rs rename to tests/ui/const-generics/argument_order.rs diff --git a/src/test/ui/const-generics/argument_order.stderr b/tests/ui/const-generics/argument_order.stderr similarity index 100% rename from src/test/ui/const-generics/argument_order.stderr rename to tests/ui/const-generics/argument_order.stderr diff --git a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs b/tests/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs rename to tests/ui/const-generics/array-impls/alloc-traits-impls-length-32.rs diff --git a/src/test/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs b/tests/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs rename to tests/ui/const-generics/array-impls/alloc-traits-impls-length-33.rs diff --git a/src/test/ui/const-generics/array-impls/alloc-types-impls-length-33.rs b/tests/ui/const-generics/array-impls/alloc-types-impls-length-33.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/alloc-types-impls-length-33.rs rename to tests/ui/const-generics/array-impls/alloc-types-impls-length-33.rs diff --git a/src/test/ui/const-generics/array-impls/core-traits-impls-length-32.rs b/tests/ui/const-generics/array-impls/core-traits-impls-length-32.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/core-traits-impls-length-32.rs rename to tests/ui/const-generics/array-impls/core-traits-impls-length-32.rs diff --git a/src/test/ui/const-generics/array-impls/core-traits-impls-length-33.rs b/tests/ui/const-generics/array-impls/core-traits-impls-length-33.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/core-traits-impls-length-33.rs rename to tests/ui/const-generics/array-impls/core-traits-impls-length-33.rs diff --git a/src/test/ui/const-generics/array-impls/into-iter-impls-length-32.rs b/tests/ui/const-generics/array-impls/into-iter-impls-length-32.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/into-iter-impls-length-32.rs rename to tests/ui/const-generics/array-impls/into-iter-impls-length-32.rs diff --git a/src/test/ui/const-generics/array-impls/into-iter-impls-length-33.rs b/tests/ui/const-generics/array-impls/into-iter-impls-length-33.rs similarity index 100% rename from src/test/ui/const-generics/array-impls/into-iter-impls-length-33.rs rename to tests/ui/const-generics/array-impls/into-iter-impls-length-33.rs diff --git a/src/test/ui/const-generics/array-wrapper-struct-ctor.rs b/tests/ui/const-generics/array-wrapper-struct-ctor.rs similarity index 100% rename from src/test/ui/const-generics/array-wrapper-struct-ctor.rs rename to tests/ui/const-generics/array-wrapper-struct-ctor.rs diff --git a/src/test/ui/const-generics/assoc_const_eq_diagnostic.rs b/tests/ui/const-generics/assoc_const_eq_diagnostic.rs similarity index 100% rename from src/test/ui/const-generics/assoc_const_eq_diagnostic.rs rename to tests/ui/const-generics/assoc_const_eq_diagnostic.rs diff --git a/src/test/ui/const-generics/assoc_const_eq_diagnostic.stderr b/tests/ui/const-generics/assoc_const_eq_diagnostic.stderr similarity index 100% rename from src/test/ui/const-generics/assoc_const_eq_diagnostic.stderr rename to tests/ui/const-generics/assoc_const_eq_diagnostic.stderr diff --git a/src/test/ui/const-generics/associated-type-bound-fail.rs b/tests/ui/const-generics/associated-type-bound-fail.rs similarity index 100% rename from src/test/ui/const-generics/associated-type-bound-fail.rs rename to tests/ui/const-generics/associated-type-bound-fail.rs diff --git a/src/test/ui/const-generics/associated-type-bound-fail.stderr b/tests/ui/const-generics/associated-type-bound-fail.stderr similarity index 100% rename from src/test/ui/const-generics/associated-type-bound-fail.stderr rename to tests/ui/const-generics/associated-type-bound-fail.stderr diff --git a/src/test/ui/const-generics/associated-type-bound.rs b/tests/ui/const-generics/associated-type-bound.rs similarity index 100% rename from src/test/ui/const-generics/associated-type-bound.rs rename to tests/ui/const-generics/associated-type-bound.rs diff --git a/src/test/ui/const-generics/auxiliary/const_generic_lib.rs b/tests/ui/const-generics/auxiliary/const_generic_lib.rs similarity index 100% rename from src/test/ui/const-generics/auxiliary/const_generic_lib.rs rename to tests/ui/const-generics/auxiliary/const_generic_lib.rs diff --git a/src/test/ui/const-generics/auxiliary/crayte.rs b/tests/ui/const-generics/auxiliary/crayte.rs similarity index 100% rename from src/test/ui/const-generics/auxiliary/crayte.rs rename to tests/ui/const-generics/auxiliary/crayte.rs diff --git a/src/test/ui/const-generics/auxiliary/generics_of_parent.rs b/tests/ui/const-generics/auxiliary/generics_of_parent.rs similarity index 100% rename from src/test/ui/const-generics/auxiliary/generics_of_parent.rs rename to tests/ui/const-generics/auxiliary/generics_of_parent.rs diff --git a/src/test/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs b/tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs similarity index 100% rename from src/test/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs rename to tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs diff --git a/src/test/ui/const-generics/auxiliary/legacy-const-generics.rs b/tests/ui/const-generics/auxiliary/legacy-const-generics.rs similarity index 100% rename from src/test/ui/const-generics/auxiliary/legacy-const-generics.rs rename to tests/ui/const-generics/auxiliary/legacy-const-generics.rs diff --git a/src/test/ui/const-generics/backcompat/trait-resolution-breakage.rs b/tests/ui/const-generics/backcompat/trait-resolution-breakage.rs similarity index 100% rename from src/test/ui/const-generics/backcompat/trait-resolution-breakage.rs rename to tests/ui/const-generics/backcompat/trait-resolution-breakage.rs diff --git a/src/test/ui/const-generics/backcompat/unevaluated-consts.rs b/tests/ui/const-generics/backcompat/unevaluated-consts.rs similarity index 100% rename from src/test/ui/const-generics/backcompat/unevaluated-consts.rs rename to tests/ui/const-generics/backcompat/unevaluated-consts.rs diff --git a/src/test/ui/const-generics/bad-const-generic-exprs.rs b/tests/ui/const-generics/bad-const-generic-exprs.rs similarity index 100% rename from src/test/ui/const-generics/bad-const-generic-exprs.rs rename to tests/ui/const-generics/bad-const-generic-exprs.rs diff --git a/src/test/ui/const-generics/bad-const-generic-exprs.stderr b/tests/ui/const-generics/bad-const-generic-exprs.stderr similarity index 100% rename from src/test/ui/const-generics/bad-const-generic-exprs.stderr rename to tests/ui/const-generics/bad-const-generic-exprs.stderr diff --git a/src/test/ui/const-generics/broken-mir-1.rs b/tests/ui/const-generics/broken-mir-1.rs similarity index 100% rename from src/test/ui/const-generics/broken-mir-1.rs rename to tests/ui/const-generics/broken-mir-1.rs diff --git a/src/test/ui/const-generics/broken-mir-2.rs b/tests/ui/const-generics/broken-mir-2.rs similarity index 100% rename from src/test/ui/const-generics/broken-mir-2.rs rename to tests/ui/const-generics/broken-mir-2.rs diff --git a/src/test/ui/const-generics/cannot-infer-type-for-const-param.rs b/tests/ui/const-generics/cannot-infer-type-for-const-param.rs similarity index 100% rename from src/test/ui/const-generics/cannot-infer-type-for-const-param.rs rename to tests/ui/const-generics/cannot-infer-type-for-const-param.rs diff --git a/src/test/ui/const-generics/coerce_unsized_array.rs b/tests/ui/const-generics/coerce_unsized_array.rs similarity index 100% rename from src/test/ui/const-generics/coerce_unsized_array.rs rename to tests/ui/const-generics/coerce_unsized_array.rs diff --git a/src/test/ui/const-generics/concrete-const-as-fn-arg.rs b/tests/ui/const-generics/concrete-const-as-fn-arg.rs similarity index 100% rename from src/test/ui/const-generics/concrete-const-as-fn-arg.rs rename to tests/ui/const-generics/concrete-const-as-fn-arg.rs diff --git a/src/test/ui/const-generics/concrete-const-impl-method.rs b/tests/ui/const-generics/concrete-const-impl-method.rs similarity index 100% rename from src/test/ui/const-generics/concrete-const-impl-method.rs rename to tests/ui/const-generics/concrete-const-impl-method.rs diff --git a/src/test/ui/const-generics/condition-in-trait-const-arg.rs b/tests/ui/const-generics/condition-in-trait-const-arg.rs similarity index 100% rename from src/test/ui/const-generics/condition-in-trait-const-arg.rs rename to tests/ui/const-generics/condition-in-trait-const-arg.rs diff --git a/src/test/ui/const-generics/const-arg-in-const-arg.full.stderr b/tests/ui/const-generics/const-arg-in-const-arg.full.stderr similarity index 100% rename from src/test/ui/const-generics/const-arg-in-const-arg.full.stderr rename to tests/ui/const-generics/const-arg-in-const-arg.full.stderr diff --git a/src/test/ui/const-generics/const-arg-in-const-arg.min.stderr b/tests/ui/const-generics/const-arg-in-const-arg.min.stderr similarity index 100% rename from src/test/ui/const-generics/const-arg-in-const-arg.min.stderr rename to tests/ui/const-generics/const-arg-in-const-arg.min.stderr diff --git a/src/test/ui/const-generics/const-arg-in-const-arg.rs b/tests/ui/const-generics/const-arg-in-const-arg.rs similarity index 100% rename from src/test/ui/const-generics/const-arg-in-const-arg.rs rename to tests/ui/const-generics/const-arg-in-const-arg.rs diff --git a/src/test/ui/const-generics/const-arg-in-fn.rs b/tests/ui/const-generics/const-arg-in-fn.rs similarity index 100% rename from src/test/ui/const-generics/const-arg-in-fn.rs rename to tests/ui/const-generics/const-arg-in-fn.rs diff --git a/src/test/ui/const-generics/const-arg-type-arg-misordered.rs b/tests/ui/const-generics/const-arg-type-arg-misordered.rs similarity index 100% rename from src/test/ui/const-generics/const-arg-type-arg-misordered.rs rename to tests/ui/const-generics/const-arg-type-arg-misordered.rs diff --git a/src/test/ui/const-generics/const-arg-type-arg-misordered.stderr b/tests/ui/const-generics/const-arg-type-arg-misordered.stderr similarity index 100% rename from src/test/ui/const-generics/const-arg-type-arg-misordered.stderr rename to tests/ui/const-generics/const-arg-type-arg-misordered.stderr diff --git a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.rs b/tests/ui/const-generics/const-argument-cross-crate-mismatch.rs similarity index 100% rename from src/test/ui/const-generics/const-argument-cross-crate-mismatch.rs rename to tests/ui/const-generics/const-argument-cross-crate-mismatch.rs diff --git a/src/test/ui/const-generics/const-argument-cross-crate-mismatch.stderr b/tests/ui/const-generics/const-argument-cross-crate-mismatch.stderr similarity index 100% rename from src/test/ui/const-generics/const-argument-cross-crate-mismatch.stderr rename to tests/ui/const-generics/const-argument-cross-crate-mismatch.stderr diff --git a/src/test/ui/const-generics/const-argument-cross-crate.rs b/tests/ui/const-generics/const-argument-cross-crate.rs similarity index 100% rename from src/test/ui/const-generics/const-argument-cross-crate.rs rename to tests/ui/const-generics/const-argument-cross-crate.rs diff --git a/src/test/ui/const-generics/const-argument-if-length.full.stderr b/tests/ui/const-generics/const-argument-if-length.full.stderr similarity index 100% rename from src/test/ui/const-generics/const-argument-if-length.full.stderr rename to tests/ui/const-generics/const-argument-if-length.full.stderr diff --git a/src/test/ui/const-generics/const-argument-if-length.min.stderr b/tests/ui/const-generics/const-argument-if-length.min.stderr similarity index 100% rename from src/test/ui/const-generics/const-argument-if-length.min.stderr rename to tests/ui/const-generics/const-argument-if-length.min.stderr diff --git a/src/test/ui/const-generics/const-argument-if-length.rs b/tests/ui/const-generics/const-argument-if-length.rs similarity index 100% rename from src/test/ui/const-generics/const-argument-if-length.rs rename to tests/ui/const-generics/const-argument-if-length.rs diff --git a/src/test/ui/const-generics/const-argument-non-static-lifetime.min.stderr b/tests/ui/const-generics/const-argument-non-static-lifetime.min.stderr similarity index 100% rename from src/test/ui/const-generics/const-argument-non-static-lifetime.min.stderr rename to tests/ui/const-generics/const-argument-non-static-lifetime.min.stderr diff --git a/src/test/ui/const-generics/const-argument-non-static-lifetime.rs b/tests/ui/const-generics/const-argument-non-static-lifetime.rs similarity index 100% rename from src/test/ui/const-generics/const-argument-non-static-lifetime.rs rename to tests/ui/const-generics/const-argument-non-static-lifetime.rs diff --git a/src/test/ui/const-generics/const-fn-with-const-param.rs b/tests/ui/const-generics/const-fn-with-const-param.rs similarity index 100% rename from src/test/ui/const-generics/const-fn-with-const-param.rs rename to tests/ui/const-generics/const-fn-with-const-param.rs diff --git a/src/test/ui/const-generics/const-generic-default-wont-borrowck.rs b/tests/ui/const-generics/const-generic-default-wont-borrowck.rs similarity index 100% rename from src/test/ui/const-generics/const-generic-default-wont-borrowck.rs rename to tests/ui/const-generics/const-generic-default-wont-borrowck.rs diff --git a/src/test/ui/const-generics/const-generic-default-wont-borrowck.stderr b/tests/ui/const-generics/const-generic-default-wont-borrowck.stderr similarity index 100% rename from src/test/ui/const-generics/const-generic-default-wont-borrowck.stderr rename to tests/ui/const-generics/const-generic-default-wont-borrowck.stderr diff --git a/src/test/ui/const-generics/const-generic-function.rs b/tests/ui/const-generics/const-generic-function.rs similarity index 100% rename from src/test/ui/const-generics/const-generic-function.rs rename to tests/ui/const-generics/const-generic-function.rs diff --git a/src/test/ui/const-generics/const-generic-function.stderr b/tests/ui/const-generics/const-generic-function.stderr similarity index 100% rename from src/test/ui/const-generics/const-generic-function.stderr rename to tests/ui/const-generics/const-generic-function.stderr diff --git a/src/test/ui/const-generics/const-generic-type_name.rs b/tests/ui/const-generics/const-generic-type_name.rs similarity index 100% rename from src/test/ui/const-generics/const-generic-type_name.rs rename to tests/ui/const-generics/const-generic-type_name.rs diff --git a/src/test/ui/const-generics/const-param-after-const-literal-arg.rs b/tests/ui/const-generics/const-param-after-const-literal-arg.rs similarity index 100% rename from src/test/ui/const-generics/const-param-after-const-literal-arg.rs rename to tests/ui/const-generics/const-param-after-const-literal-arg.rs diff --git a/src/test/ui/const-generics/const-param-before-other-params.rs b/tests/ui/const-generics/const-param-before-other-params.rs similarity index 100% rename from src/test/ui/const-generics/const-param-before-other-params.rs rename to tests/ui/const-generics/const-param-before-other-params.rs diff --git a/src/test/ui/const-generics/const-param-before-other-params.stderr b/tests/ui/const-generics/const-param-before-other-params.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-before-other-params.stderr rename to tests/ui/const-generics/const-param-before-other-params.stderr diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.full.stderr b/tests/ui/const-generics/const-param-elided-lifetime.full.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-elided-lifetime.full.stderr rename to tests/ui/const-generics/const-param-elided-lifetime.full.stderr diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.min.stderr b/tests/ui/const-generics/const-param-elided-lifetime.min.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-elided-lifetime.min.stderr rename to tests/ui/const-generics/const-param-elided-lifetime.min.stderr diff --git a/src/test/ui/const-generics/const-param-elided-lifetime.rs b/tests/ui/const-generics/const-param-elided-lifetime.rs similarity index 100% rename from src/test/ui/const-generics/const-param-elided-lifetime.rs rename to tests/ui/const-generics/const-param-elided-lifetime.rs diff --git a/src/test/ui/const-generics/const-param-in-async.rs b/tests/ui/const-generics/const-param-in-async.rs similarity index 100% rename from src/test/ui/const-generics/const-param-in-async.rs rename to tests/ui/const-generics/const-param-in-async.rs diff --git a/src/test/ui/const-generics/const-param-type-depends-on-const-param.full.stderr b/tests/ui/const-generics/const-param-type-depends-on-const-param.full.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-const-param.full.stderr rename to tests/ui/const-generics/const-param-type-depends-on-const-param.full.stderr diff --git a/src/test/ui/const-generics/const-param-type-depends-on-const-param.min.stderr b/tests/ui/const-generics/const-param-type-depends-on-const-param.min.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-const-param.min.stderr rename to tests/ui/const-generics/const-param-type-depends-on-const-param.min.stderr diff --git a/src/test/ui/const-generics/const-param-type-depends-on-const-param.rs b/tests/ui/const-generics/const-param-type-depends-on-const-param.rs similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-const-param.rs rename to tests/ui/const-generics/const-param-type-depends-on-const-param.rs diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs b/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs rename to tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr rename to tests/ui/const-generics/const-param-type-depends-on-type-param-ungated.stderr diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param.full.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param.full.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-type-param.full.stderr rename to tests/ui/const-generics/const-param-type-depends-on-type-param.full.stderr diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param.min.stderr b/tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-type-param.min.stderr rename to tests/ui/const-generics/const-param-type-depends-on-type-param.min.stderr diff --git a/src/test/ui/const-generics/const-param-type-depends-on-type-param.rs b/tests/ui/const-generics/const-param-type-depends-on-type-param.rs similarity index 100% rename from src/test/ui/const-generics/const-param-type-depends-on-type-param.rs rename to tests/ui/const-generics/const-param-type-depends-on-type-param.rs diff --git a/src/test/ui/const-generics/const-parameter-uppercase-lint.rs b/tests/ui/const-generics/const-parameter-uppercase-lint.rs similarity index 100% rename from src/test/ui/const-generics/const-parameter-uppercase-lint.rs rename to tests/ui/const-generics/const-parameter-uppercase-lint.rs diff --git a/src/test/ui/const-generics/const-parameter-uppercase-lint.stderr b/tests/ui/const-generics/const-parameter-uppercase-lint.stderr similarity index 100% rename from src/test/ui/const-generics/const-parameter-uppercase-lint.stderr rename to tests/ui/const-generics/const-parameter-uppercase-lint.stderr diff --git a/src/test/ui/const-generics/const_trait_fn-issue-88433.rs b/tests/ui/const-generics/const_trait_fn-issue-88433.rs similarity index 100% rename from src/test/ui/const-generics/const_trait_fn-issue-88433.rs rename to tests/ui/const-generics/const_trait_fn-issue-88433.rs diff --git a/src/test/ui/const-generics/core-types.rs b/tests/ui/const-generics/core-types.rs similarity index 100% rename from src/test/ui/const-generics/core-types.rs rename to tests/ui/const-generics/core-types.rs diff --git a/src/test/ui/const-generics/cross_crate_complex.rs b/tests/ui/const-generics/cross_crate_complex.rs similarity index 100% rename from src/test/ui/const-generics/cross_crate_complex.rs rename to tests/ui/const-generics/cross_crate_complex.rs diff --git a/src/test/ui/const-generics/defaults/auxiliary/const_defaulty.rs b/tests/ui/const-generics/defaults/auxiliary/const_defaulty.rs similarity index 100% rename from src/test/ui/const-generics/defaults/auxiliary/const_defaulty.rs rename to tests/ui/const-generics/defaults/auxiliary/const_defaulty.rs diff --git a/src/test/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs b/tests/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs similarity index 100% rename from src/test/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs rename to tests/ui/const-generics/defaults/auxiliary/trait_object_lt_defaults_lib.rs diff --git a/src/test/ui/const-generics/defaults/complex-generic-default-expr.min.stderr b/tests/ui/const-generics/defaults/complex-generic-default-expr.min.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/complex-generic-default-expr.min.stderr rename to tests/ui/const-generics/defaults/complex-generic-default-expr.min.stderr diff --git a/src/test/ui/const-generics/defaults/complex-generic-default-expr.rs b/tests/ui/const-generics/defaults/complex-generic-default-expr.rs similarity index 100% rename from src/test/ui/const-generics/defaults/complex-generic-default-expr.rs rename to tests/ui/const-generics/defaults/complex-generic-default-expr.rs diff --git a/src/test/ui/const-generics/defaults/complex-unord-param.rs b/tests/ui/const-generics/defaults/complex-unord-param.rs similarity index 100% rename from src/test/ui/const-generics/defaults/complex-unord-param.rs rename to tests/ui/const-generics/defaults/complex-unord-param.rs diff --git a/src/test/ui/const-generics/defaults/const-default.rs b/tests/ui/const-generics/defaults/const-default.rs similarity index 100% rename from src/test/ui/const-generics/defaults/const-default.rs rename to tests/ui/const-generics/defaults/const-default.rs diff --git a/src/test/ui/const-generics/defaults/const-param-as-default-value.rs b/tests/ui/const-generics/defaults/const-param-as-default-value.rs similarity index 100% rename from src/test/ui/const-generics/defaults/const-param-as-default-value.rs rename to tests/ui/const-generics/defaults/const-param-as-default-value.rs diff --git a/src/test/ui/const-generics/defaults/const-param-in-ty-defaults.rs b/tests/ui/const-generics/defaults/const-param-in-ty-defaults.rs similarity index 100% rename from src/test/ui/const-generics/defaults/const-param-in-ty-defaults.rs rename to tests/ui/const-generics/defaults/const-param-in-ty-defaults.rs diff --git a/src/test/ui/const-generics/defaults/default-annotation.rs b/tests/ui/const-generics/defaults/default-annotation.rs similarity index 100% rename from src/test/ui/const-generics/defaults/default-annotation.rs rename to tests/ui/const-generics/defaults/default-annotation.rs diff --git a/src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs b/tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs similarity index 100% rename from src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs rename to tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.rs diff --git a/src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr b/tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr rename to tests/ui/const-generics/defaults/default-const-param-cannot-reference-self.stderr diff --git a/src/test/ui/const-generics/defaults/default-on-impl.rs b/tests/ui/const-generics/defaults/default-on-impl.rs similarity index 100% rename from src/test/ui/const-generics/defaults/default-on-impl.rs rename to tests/ui/const-generics/defaults/default-on-impl.rs diff --git a/src/test/ui/const-generics/defaults/default-on-impl.stderr b/tests/ui/const-generics/defaults/default-on-impl.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/default-on-impl.stderr rename to tests/ui/const-generics/defaults/default-on-impl.stderr diff --git a/src/test/ui/const-generics/defaults/default-param-wf-concrete.rs b/tests/ui/const-generics/defaults/default-param-wf-concrete.rs similarity index 100% rename from src/test/ui/const-generics/defaults/default-param-wf-concrete.rs rename to tests/ui/const-generics/defaults/default-param-wf-concrete.rs diff --git a/src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr b/tests/ui/const-generics/defaults/default-param-wf-concrete.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr rename to tests/ui/const-generics/defaults/default-param-wf-concrete.stderr diff --git a/src/test/ui/const-generics/defaults/doesnt_infer.rs b/tests/ui/const-generics/defaults/doesnt_infer.rs similarity index 100% rename from src/test/ui/const-generics/defaults/doesnt_infer.rs rename to tests/ui/const-generics/defaults/doesnt_infer.rs diff --git a/src/test/ui/const-generics/defaults/doesnt_infer.stderr b/tests/ui/const-generics/defaults/doesnt_infer.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/doesnt_infer.stderr rename to tests/ui/const-generics/defaults/doesnt_infer.stderr diff --git a/src/test/ui/const-generics/defaults/external.rs b/tests/ui/const-generics/defaults/external.rs similarity index 100% rename from src/test/ui/const-generics/defaults/external.rs rename to tests/ui/const-generics/defaults/external.rs diff --git a/src/test/ui/const-generics/defaults/forward-declared.rs b/tests/ui/const-generics/defaults/forward-declared.rs similarity index 100% rename from src/test/ui/const-generics/defaults/forward-declared.rs rename to tests/ui/const-generics/defaults/forward-declared.rs diff --git a/src/test/ui/const-generics/defaults/forward-declared.stderr b/tests/ui/const-generics/defaults/forward-declared.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/forward-declared.stderr rename to tests/ui/const-generics/defaults/forward-declared.stderr diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-concrete.rs b/tests/ui/const-generics/defaults/generic-expr-default-concrete.rs similarity index 100% rename from src/test/ui/const-generics/defaults/generic-expr-default-concrete.rs rename to tests/ui/const-generics/defaults/generic-expr-default-concrete.rs diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-concrete.stderr b/tests/ui/const-generics/defaults/generic-expr-default-concrete.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/generic-expr-default-concrete.stderr rename to tests/ui/const-generics/defaults/generic-expr-default-concrete.stderr diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs b/tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs similarity index 100% rename from src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs rename to tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.rs diff --git a/src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr b/tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr rename to tests/ui/const-generics/defaults/generic-expr-default-mismatched-types.stderr diff --git a/src/test/ui/const-generics/defaults/generic-expr-default.rs b/tests/ui/const-generics/defaults/generic-expr-default.rs similarity index 100% rename from src/test/ui/const-generics/defaults/generic-expr-default.rs rename to tests/ui/const-generics/defaults/generic-expr-default.rs diff --git a/src/test/ui/const-generics/defaults/generic-expr-default.stderr b/tests/ui/const-generics/defaults/generic-expr-default.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/generic-expr-default.stderr rename to tests/ui/const-generics/defaults/generic-expr-default.stderr diff --git a/src/test/ui/const-generics/defaults/intermixed-lifetime.rs b/tests/ui/const-generics/defaults/intermixed-lifetime.rs similarity index 100% rename from src/test/ui/const-generics/defaults/intermixed-lifetime.rs rename to tests/ui/const-generics/defaults/intermixed-lifetime.rs diff --git a/src/test/ui/const-generics/defaults/intermixed-lifetime.stderr b/tests/ui/const-generics/defaults/intermixed-lifetime.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/intermixed-lifetime.stderr rename to tests/ui/const-generics/defaults/intermixed-lifetime.stderr diff --git a/src/test/ui/const-generics/defaults/mismatch.rs b/tests/ui/const-generics/defaults/mismatch.rs similarity index 100% rename from src/test/ui/const-generics/defaults/mismatch.rs rename to tests/ui/const-generics/defaults/mismatch.rs diff --git a/src/test/ui/const-generics/defaults/mismatch.stderr b/tests/ui/const-generics/defaults/mismatch.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/mismatch.stderr rename to tests/ui/const-generics/defaults/mismatch.stderr diff --git a/src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs b/tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs similarity index 100% rename from src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs rename to tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.rs diff --git a/src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr b/tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr rename to tests/ui/const-generics/defaults/mismatched_ty_const_in_trait_impl.stderr diff --git a/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs b/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs similarity index 100% rename from src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs rename to tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.rs diff --git a/src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr b/tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr rename to tests/ui/const-generics/defaults/param-order-err-pretty-prints-default.stderr diff --git a/src/test/ui/const-generics/defaults/pretty-printing-ast.rs b/tests/ui/const-generics/defaults/pretty-printing-ast.rs similarity index 100% rename from src/test/ui/const-generics/defaults/pretty-printing-ast.rs rename to tests/ui/const-generics/defaults/pretty-printing-ast.rs diff --git a/src/test/ui/const-generics/defaults/pretty-printing-ast.stdout b/tests/ui/const-generics/defaults/pretty-printing-ast.stdout similarity index 100% rename from src/test/ui/const-generics/defaults/pretty-printing-ast.stdout rename to tests/ui/const-generics/defaults/pretty-printing-ast.stdout diff --git a/src/test/ui/const-generics/defaults/repr-c-issue-82792.rs b/tests/ui/const-generics/defaults/repr-c-issue-82792.rs similarity index 100% rename from src/test/ui/const-generics/defaults/repr-c-issue-82792.rs rename to tests/ui/const-generics/defaults/repr-c-issue-82792.rs diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait.rs b/tests/ui/const-generics/defaults/rp_impl_trait.rs similarity index 100% rename from src/test/ui/const-generics/defaults/rp_impl_trait.rs rename to tests/ui/const-generics/defaults/rp_impl_trait.rs diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.rs b/tests/ui/const-generics/defaults/rp_impl_trait_fail.rs similarity index 100% rename from src/test/ui/const-generics/defaults/rp_impl_trait_fail.rs rename to tests/ui/const-generics/defaults/rp_impl_trait_fail.rs diff --git a/src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr b/tests/ui/const-generics/defaults/rp_impl_trait_fail.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/rp_impl_trait_fail.stderr rename to tests/ui/const-generics/defaults/rp_impl_trait_fail.stderr diff --git a/src/test/ui/const-generics/defaults/self-referential.rs b/tests/ui/const-generics/defaults/self-referential.rs similarity index 100% rename from src/test/ui/const-generics/defaults/self-referential.rs rename to tests/ui/const-generics/defaults/self-referential.rs diff --git a/src/test/ui/const-generics/defaults/self-referential.stderr b/tests/ui/const-generics/defaults/self-referential.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/self-referential.stderr rename to tests/ui/const-generics/defaults/self-referential.stderr diff --git a/src/test/ui/const-generics/defaults/simple-defaults.rs b/tests/ui/const-generics/defaults/simple-defaults.rs similarity index 100% rename from src/test/ui/const-generics/defaults/simple-defaults.rs rename to tests/ui/const-generics/defaults/simple-defaults.rs diff --git a/src/test/ui/const-generics/defaults/trait_object_lt_defaults.rs b/tests/ui/const-generics/defaults/trait_object_lt_defaults.rs similarity index 100% rename from src/test/ui/const-generics/defaults/trait_object_lt_defaults.rs rename to tests/ui/const-generics/defaults/trait_object_lt_defaults.rs diff --git a/src/test/ui/const-generics/defaults/trait_objects.rs b/tests/ui/const-generics/defaults/trait_objects.rs similarity index 100% rename from src/test/ui/const-generics/defaults/trait_objects.rs rename to tests/ui/const-generics/defaults/trait_objects.rs diff --git a/src/test/ui/const-generics/defaults/trait_objects_fail.rs b/tests/ui/const-generics/defaults/trait_objects_fail.rs similarity index 100% rename from src/test/ui/const-generics/defaults/trait_objects_fail.rs rename to tests/ui/const-generics/defaults/trait_objects_fail.rs diff --git a/src/test/ui/const-generics/defaults/trait_objects_fail.stderr b/tests/ui/const-generics/defaults/trait_objects_fail.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/trait_objects_fail.stderr rename to tests/ui/const-generics/defaults/trait_objects_fail.stderr diff --git a/src/test/ui/const-generics/defaults/type-default-const-param-name.rs b/tests/ui/const-generics/defaults/type-default-const-param-name.rs similarity index 100% rename from src/test/ui/const-generics/defaults/type-default-const-param-name.rs rename to tests/ui/const-generics/defaults/type-default-const-param-name.rs diff --git a/src/test/ui/const-generics/defaults/wfness.rs b/tests/ui/const-generics/defaults/wfness.rs similarity index 100% rename from src/test/ui/const-generics/defaults/wfness.rs rename to tests/ui/const-generics/defaults/wfness.rs diff --git a/src/test/ui/const-generics/defaults/wfness.stderr b/tests/ui/const-generics/defaults/wfness.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/wfness.stderr rename to tests/ui/const-generics/defaults/wfness.stderr diff --git a/src/test/ui/const-generics/defaults/wrong-order.rs b/tests/ui/const-generics/defaults/wrong-order.rs similarity index 100% rename from src/test/ui/const-generics/defaults/wrong-order.rs rename to tests/ui/const-generics/defaults/wrong-order.rs diff --git a/src/test/ui/const-generics/defaults/wrong-order.stderr b/tests/ui/const-generics/defaults/wrong-order.stderr similarity index 100% rename from src/test/ui/const-generics/defaults/wrong-order.stderr rename to tests/ui/const-generics/defaults/wrong-order.stderr diff --git a/src/test/ui/const-generics/deref-into-array-generic.rs b/tests/ui/const-generics/deref-into-array-generic.rs similarity index 100% rename from src/test/ui/const-generics/deref-into-array-generic.rs rename to tests/ui/const-generics/deref-into-array-generic.rs diff --git a/src/test/ui/const-generics/different_generic_args.full.stderr b/tests/ui/const-generics/different_generic_args.full.stderr similarity index 100% rename from src/test/ui/const-generics/different_generic_args.full.stderr rename to tests/ui/const-generics/different_generic_args.full.stderr diff --git a/src/test/ui/const-generics/different_generic_args.min.stderr b/tests/ui/const-generics/different_generic_args.min.stderr similarity index 100% rename from src/test/ui/const-generics/different_generic_args.min.stderr rename to tests/ui/const-generics/different_generic_args.min.stderr diff --git a/src/test/ui/const-generics/different_generic_args.rs b/tests/ui/const-generics/different_generic_args.rs similarity index 100% rename from src/test/ui/const-generics/different_generic_args.rs rename to tests/ui/const-generics/different_generic_args.rs diff --git a/src/test/ui/const-generics/different_generic_args_array.rs b/tests/ui/const-generics/different_generic_args_array.rs similarity index 100% rename from src/test/ui/const-generics/different_generic_args_array.rs rename to tests/ui/const-generics/different_generic_args_array.rs diff --git a/src/test/ui/const-generics/different_generic_args_array.stderr b/tests/ui/const-generics/different_generic_args_array.stderr similarity index 100% rename from src/test/ui/const-generics/different_generic_args_array.stderr rename to tests/ui/const-generics/different_generic_args_array.stderr diff --git a/src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.rs b/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.rs similarity index 100% rename from src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.rs rename to tests/ui/const-generics/dont-evaluate-array-len-on-err-1.rs diff --git a/src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr b/tests/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr similarity index 100% rename from src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr rename to tests/ui/const-generics/dont-evaluate-array-len-on-err-1.stderr diff --git a/src/test/ui/const-generics/dyn-supertraits.rs b/tests/ui/const-generics/dyn-supertraits.rs similarity index 100% rename from src/test/ui/const-generics/dyn-supertraits.rs rename to tests/ui/const-generics/dyn-supertraits.rs diff --git a/src/test/ui/const-generics/early/closing-args-token.rs b/tests/ui/const-generics/early/closing-args-token.rs similarity index 100% rename from src/test/ui/const-generics/early/closing-args-token.rs rename to tests/ui/const-generics/early/closing-args-token.rs diff --git a/src/test/ui/const-generics/early/closing-args-token.stderr b/tests/ui/const-generics/early/closing-args-token.stderr similarity index 100% rename from src/test/ui/const-generics/early/closing-args-token.stderr rename to tests/ui/const-generics/early/closing-args-token.stderr diff --git a/src/test/ui/const-generics/early/const-expression-parameter.rs b/tests/ui/const-generics/early/const-expression-parameter.rs similarity index 100% rename from src/test/ui/const-generics/early/const-expression-parameter.rs rename to tests/ui/const-generics/early/const-expression-parameter.rs diff --git a/src/test/ui/const-generics/early/const-expression-parameter.stderr b/tests/ui/const-generics/early/const-expression-parameter.stderr similarity index 100% rename from src/test/ui/const-generics/early/const-expression-parameter.stderr rename to tests/ui/const-generics/early/const-expression-parameter.stderr diff --git a/src/test/ui/const-generics/early/const-param-from-outer-fn.rs b/tests/ui/const-generics/early/const-param-from-outer-fn.rs similarity index 100% rename from src/test/ui/const-generics/early/const-param-from-outer-fn.rs rename to tests/ui/const-generics/early/const-param-from-outer-fn.rs diff --git a/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr b/tests/ui/const-generics/early/const-param-from-outer-fn.stderr similarity index 100% rename from src/test/ui/const-generics/early/const-param-from-outer-fn.stderr rename to tests/ui/const-generics/early/const-param-from-outer-fn.stderr diff --git a/src/test/ui/const-generics/early/const-param-hygiene.rs b/tests/ui/const-generics/early/const-param-hygiene.rs similarity index 100% rename from src/test/ui/const-generics/early/const-param-hygiene.rs rename to tests/ui/const-generics/early/const-param-hygiene.rs diff --git a/src/test/ui/const-generics/early/const-param-shadowing.rs b/tests/ui/const-generics/early/const-param-shadowing.rs similarity index 100% rename from src/test/ui/const-generics/early/const-param-shadowing.rs rename to tests/ui/const-generics/early/const-param-shadowing.rs diff --git a/src/test/ui/const-generics/early/const-param-shadowing.stderr b/tests/ui/const-generics/early/const-param-shadowing.stderr similarity index 100% rename from src/test/ui/const-generics/early/const-param-shadowing.stderr rename to tests/ui/const-generics/early/const-param-shadowing.stderr diff --git a/src/test/ui/const-generics/early/invalid-const-arguments.rs b/tests/ui/const-generics/early/invalid-const-arguments.rs similarity index 100% rename from src/test/ui/const-generics/early/invalid-const-arguments.rs rename to tests/ui/const-generics/early/invalid-const-arguments.rs diff --git a/src/test/ui/const-generics/early/invalid-const-arguments.stderr b/tests/ui/const-generics/early/invalid-const-arguments.stderr similarity index 100% rename from src/test/ui/const-generics/early/invalid-const-arguments.stderr rename to tests/ui/const-generics/early/invalid-const-arguments.stderr diff --git a/src/test/ui/const-generics/early/macro_rules-braces.rs b/tests/ui/const-generics/early/macro_rules-braces.rs similarity index 100% rename from src/test/ui/const-generics/early/macro_rules-braces.rs rename to tests/ui/const-generics/early/macro_rules-braces.rs diff --git a/src/test/ui/const-generics/early/macro_rules-braces.stderr b/tests/ui/const-generics/early/macro_rules-braces.stderr similarity index 100% rename from src/test/ui/const-generics/early/macro_rules-braces.stderr rename to tests/ui/const-generics/early/macro_rules-braces.stderr diff --git a/src/test/ui/const-generics/ensure_is_evaluatable.rs b/tests/ui/const-generics/ensure_is_evaluatable.rs similarity index 100% rename from src/test/ui/const-generics/ensure_is_evaluatable.rs rename to tests/ui/const-generics/ensure_is_evaluatable.rs diff --git a/src/test/ui/const-generics/ensure_is_evaluatable.stderr b/tests/ui/const-generics/ensure_is_evaluatable.stderr similarity index 100% rename from src/test/ui/const-generics/ensure_is_evaluatable.stderr rename to tests/ui/const-generics/ensure_is_evaluatable.stderr diff --git a/src/test/ui/const-generics/enum-variants.rs b/tests/ui/const-generics/enum-variants.rs similarity index 100% rename from src/test/ui/const-generics/enum-variants.rs rename to tests/ui/const-generics/enum-variants.rs diff --git a/src/test/ui/const-generics/exhaustive-value.rs b/tests/ui/const-generics/exhaustive-value.rs similarity index 100% rename from src/test/ui/const-generics/exhaustive-value.rs rename to tests/ui/const-generics/exhaustive-value.rs diff --git a/src/test/ui/const-generics/exhaustive-value.stderr b/tests/ui/const-generics/exhaustive-value.stderr similarity index 100% rename from src/test/ui/const-generics/exhaustive-value.stderr rename to tests/ui/const-generics/exhaustive-value.stderr diff --git a/src/test/ui/const-generics/expose-default-substs-param-env.rs b/tests/ui/const-generics/expose-default-substs-param-env.rs similarity index 100% rename from src/test/ui/const-generics/expose-default-substs-param-env.rs rename to tests/ui/const-generics/expose-default-substs-param-env.rs diff --git a/src/test/ui/const-generics/float-generic.adt_const_params.stderr b/tests/ui/const-generics/float-generic.adt_const_params.stderr similarity index 100% rename from src/test/ui/const-generics/float-generic.adt_const_params.stderr rename to tests/ui/const-generics/float-generic.adt_const_params.stderr diff --git a/src/test/ui/const-generics/float-generic.rs b/tests/ui/const-generics/float-generic.rs similarity index 100% rename from src/test/ui/const-generics/float-generic.rs rename to tests/ui/const-generics/float-generic.rs diff --git a/src/test/ui/const-generics/float-generic.simple.stderr b/tests/ui/const-generics/float-generic.simple.stderr similarity index 100% rename from src/test/ui/const-generics/float-generic.simple.stderr rename to tests/ui/const-generics/float-generic.simple.stderr diff --git a/src/test/ui/const-generics/fn-const-param-call.full.stderr b/tests/ui/const-generics/fn-const-param-call.full.stderr similarity index 100% rename from src/test/ui/const-generics/fn-const-param-call.full.stderr rename to tests/ui/const-generics/fn-const-param-call.full.stderr diff --git a/src/test/ui/const-generics/fn-const-param-call.min.stderr b/tests/ui/const-generics/fn-const-param-call.min.stderr similarity index 100% rename from src/test/ui/const-generics/fn-const-param-call.min.stderr rename to tests/ui/const-generics/fn-const-param-call.min.stderr diff --git a/src/test/ui/const-generics/fn-const-param-call.rs b/tests/ui/const-generics/fn-const-param-call.rs similarity index 100% rename from src/test/ui/const-generics/fn-const-param-call.rs rename to tests/ui/const-generics/fn-const-param-call.rs diff --git a/src/test/ui/const-generics/fn-const-param-infer.full.stderr b/tests/ui/const-generics/fn-const-param-infer.full.stderr similarity index 100% rename from src/test/ui/const-generics/fn-const-param-infer.full.stderr rename to tests/ui/const-generics/fn-const-param-infer.full.stderr diff --git a/src/test/ui/const-generics/fn-const-param-infer.min.stderr b/tests/ui/const-generics/fn-const-param-infer.min.stderr similarity index 100% rename from src/test/ui/const-generics/fn-const-param-infer.min.stderr rename to tests/ui/const-generics/fn-const-param-infer.min.stderr diff --git a/src/test/ui/const-generics/fn-const-param-infer.rs b/tests/ui/const-generics/fn-const-param-infer.rs similarity index 100% rename from src/test/ui/const-generics/fn-const-param-infer.rs rename to tests/ui/const-generics/fn-const-param-infer.rs diff --git a/src/test/ui/const-generics/fn_with_two_const_inputs.rs b/tests/ui/const-generics/fn_with_two_const_inputs.rs similarity index 100% rename from src/test/ui/const-generics/fn_with_two_const_inputs.rs rename to tests/ui/const-generics/fn_with_two_const_inputs.rs diff --git a/src/test/ui/const-generics/fn_with_two_const_inputs.stderr b/tests/ui/const-generics/fn_with_two_const_inputs.stderr similarity index 100% rename from src/test/ui/const-generics/fn_with_two_const_inputs.stderr rename to tests/ui/const-generics/fn_with_two_const_inputs.stderr diff --git a/src/test/ui/const-generics/fn_with_two_same_const_inputs.rs b/tests/ui/const-generics/fn_with_two_same_const_inputs.rs similarity index 100% rename from src/test/ui/const-generics/fn_with_two_same_const_inputs.rs rename to tests/ui/const-generics/fn_with_two_same_const_inputs.rs diff --git a/src/test/ui/const-generics/forbid-non-structural_match-types.rs b/tests/ui/const-generics/forbid-non-structural_match-types.rs similarity index 100% rename from src/test/ui/const-generics/forbid-non-structural_match-types.rs rename to tests/ui/const-generics/forbid-non-structural_match-types.rs diff --git a/src/test/ui/const-generics/forbid-non-structural_match-types.stderr b/tests/ui/const-generics/forbid-non-structural_match-types.stderr similarity index 100% rename from src/test/ui/const-generics/forbid-non-structural_match-types.stderr rename to tests/ui/const-generics/forbid-non-structural_match-types.stderr diff --git a/src/test/ui/const-generics/foreign-item-const-parameter.rs b/tests/ui/const-generics/foreign-item-const-parameter.rs similarity index 100% rename from src/test/ui/const-generics/foreign-item-const-parameter.rs rename to tests/ui/const-generics/foreign-item-const-parameter.rs diff --git a/src/test/ui/const-generics/foreign-item-const-parameter.stderr b/tests/ui/const-generics/foreign-item-const-parameter.stderr similarity index 100% rename from src/test/ui/const-generics/foreign-item-const-parameter.stderr rename to tests/ui/const-generics/foreign-item-const-parameter.stderr diff --git a/src/test/ui/const-generics/generic-param-mismatch.rs b/tests/ui/const-generics/generic-param-mismatch.rs similarity index 100% rename from src/test/ui/const-generics/generic-param-mismatch.rs rename to tests/ui/const-generics/generic-param-mismatch.rs diff --git a/src/test/ui/const-generics/generic-param-mismatch.stderr b/tests/ui/const-generics/generic-param-mismatch.stderr similarity index 100% rename from src/test/ui/const-generics/generic-param-mismatch.stderr rename to tests/ui/const-generics/generic-param-mismatch.stderr diff --git a/src/test/ui/const-generics/generic_arg_infer/array-repeat-expr.rs b/tests/ui/const-generics/generic_arg_infer/array-repeat-expr.rs similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/array-repeat-expr.rs rename to tests/ui/const-generics/generic_arg_infer/array-repeat-expr.rs diff --git a/src/test/ui/const-generics/generic_arg_infer/dont-use-defaults.rs b/tests/ui/const-generics/generic_arg_infer/dont-use-defaults.rs similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/dont-use-defaults.rs rename to tests/ui/const-generics/generic_arg_infer/dont-use-defaults.rs diff --git a/src/test/ui/const-generics/generic_arg_infer/in-signature.rs b/tests/ui/const-generics/generic_arg_infer/in-signature.rs similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/in-signature.rs rename to tests/ui/const-generics/generic_arg_infer/in-signature.rs diff --git a/src/test/ui/const-generics/generic_arg_infer/in-signature.stderr b/tests/ui/const-generics/generic_arg_infer/in-signature.stderr similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/in-signature.stderr rename to tests/ui/const-generics/generic_arg_infer/in-signature.stderr diff --git a/src/test/ui/const-generics/generic_arg_infer/infer-arg-test.rs b/tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/infer-arg-test.rs rename to tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs diff --git a/src/test/ui/const-generics/generic_arg_infer/infer-arg-test.stderr b/tests/ui/const-generics/generic_arg_infer/infer-arg-test.stderr similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/infer-arg-test.stderr rename to tests/ui/const-generics/generic_arg_infer/infer-arg-test.stderr diff --git a/src/test/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs b/tests/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs rename to tests/ui/const-generics/generic_arg_infer/infer_arg_and_const_arg.rs diff --git a/src/test/ui/const-generics/generic_arg_infer/issue-91614.rs b/tests/ui/const-generics/generic_arg_infer/issue-91614.rs similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/issue-91614.rs rename to tests/ui/const-generics/generic_arg_infer/issue-91614.rs diff --git a/src/test/ui/const-generics/generic_arg_infer/issue-91614.stderr b/tests/ui/const-generics/generic_arg_infer/issue-91614.stderr similarity index 100% rename from src/test/ui/const-generics/generic_arg_infer/issue-91614.stderr rename to tests/ui/const-generics/generic_arg_infer/issue-91614.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs rename to tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-1.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs rename to tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr rename to tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-2.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs rename to tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr rename to tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-3.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs b/tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs rename to tests/ui/const-generics/generic_const_exprs/abstract-const-as-cast-4.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs b/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs rename to tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr b/tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr rename to tests/ui/const-generics/generic_const_exprs/abstract-consts-as-cast-5.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr rename to tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr rename to tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.min.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs b/tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs rename to tests/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs rename to tests/ui/const-generics/generic_const_exprs/assoc_const_unification/const_equate_assoc_consts.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs rename to tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr rename to tests/ui/const-generics/generic_const_exprs/assoc_const_unification/doesnt_unify_evaluatable.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs rename to tests/ui/const-generics/generic_const_exprs/assoc_const_unification/dropck_unifies_assoc_consts.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs rename to tests/ui/const-generics/generic_const_exprs/assoc_const_unification/unifies_evaluatable.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/associated-const.rs b/tests/ui/const-generics/generic_const_exprs/associated-const.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/associated-const.rs rename to tests/ui/const-generics/generic_const_exprs/associated-const.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/associated-consts.rs b/tests/ui/const-generics/generic_const_exprs/associated-consts.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/associated-consts.rs rename to tests/ui/const-generics/generic_const_exprs/associated-consts.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs b/tests/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs rename to tests/ui/const-generics/generic_const_exprs/auxiliary/const_evaluatable_lib.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs b/tests/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs rename to tests/ui/const-generics/generic_const_exprs/auxiliary/issue-94287-aux.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/closures.rs b/tests/ui/const-generics/generic_const_exprs/closures.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/closures.rs rename to tests/ui/const-generics/generic_const_exprs/closures.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/closures.stderr b/tests/ui/const-generics/generic_const_exprs/closures.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/closures.stderr rename to tests/ui/const-generics/generic_const_exprs/closures.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs b/tests/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs rename to tests/ui/const-generics/generic_const_exprs/const_eval_resolve_canonical.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs b/tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs rename to tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr b/tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr rename to tests/ui/const-generics/generic_const_exprs/const_kind_expr/wf_obligation.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/cross_crate.rs b/tests/ui/const-generics/generic_const_exprs/cross_crate.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/cross_crate.rs rename to tests/ui/const-generics/generic_const_exprs/cross_crate.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs b/tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs rename to tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr b/tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr rename to tests/ui/const-generics/generic_const_exprs/cross_crate_predicate.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr b/tests/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr rename to tests/ui/const-generics/generic_const_exprs/dependence_lint.full.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr b/tests/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr rename to tests/ui/const-generics/generic_const_exprs/dependence_lint.gce.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/dependence_lint.rs b/tests/ui/const-generics/generic_const_exprs/dependence_lint.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/dependence_lint.rs rename to tests/ui/const-generics/generic_const_exprs/dependence_lint.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/different-fn.rs b/tests/ui/const-generics/generic_const_exprs/different-fn.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/different-fn.rs rename to tests/ui/const-generics/generic_const_exprs/different-fn.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/different-fn.stderr b/tests/ui/const-generics/generic_const_exprs/different-fn.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/different-fn.stderr rename to tests/ui/const-generics/generic_const_exprs/different-fn.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/division.rs b/tests/ui/const-generics/generic_const_exprs/division.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/division.rs rename to tests/ui/const-generics/generic_const_exprs/division.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs rename to tests/ui/const-generics/generic_const_exprs/dont-eagerly-error-in-is-const-evaluatable.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/drop_impl.rs b/tests/ui/const-generics/generic_const_exprs/drop_impl.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/drop_impl.rs rename to tests/ui/const-generics/generic_const_exprs/drop_impl.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs b/tests/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs rename to tests/ui/const-generics/generic_const_exprs/elaborate-trait-pred.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-privacy.rs b/tests/ui/const-generics/generic_const_exprs/eval-privacy.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/eval-privacy.rs rename to tests/ui/const-generics/generic_const_exprs/eval-privacy.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-privacy.stderr b/tests/ui/const-generics/generic_const_exprs/eval-privacy.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/eval-privacy.stderr rename to tests/ui/const-generics/generic_const_exprs/eval-privacy.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-try-unify.rs b/tests/ui/const-generics/generic_const_exprs/eval-try-unify.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/eval-try-unify.rs rename to tests/ui/const-generics/generic_const_exprs/eval-try-unify.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/eval-try-unify.stderr b/tests/ui/const-generics/generic_const_exprs/eval-try-unify.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/eval-try-unify.stderr rename to tests/ui/const-generics/generic_const_exprs/eval-try-unify.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs b/tests/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs rename to tests/ui/const-generics/generic_const_exprs/evaluated-to-ambig.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs b/tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs rename to tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr b/tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr rename to tests/ui/const-generics/generic_const_exprs/feature-gate-generic_const_exprs.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/fn_call.rs b/tests/ui/const-generics/generic_const_exprs/fn_call.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/fn_call.rs rename to tests/ui/const-generics/generic_const_exprs/fn_call.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs b/tests/ui/const-generics/generic_const_exprs/from-sig-fail.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/from-sig-fail.rs rename to tests/ui/const-generics/generic_const_exprs/from-sig-fail.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/from-sig-fail.stderr b/tests/ui/const-generics/generic_const_exprs/from-sig-fail.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/from-sig-fail.stderr rename to tests/ui/const-generics/generic_const_exprs/from-sig-fail.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/from-sig.rs b/tests/ui/const-generics/generic_const_exprs/from-sig.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/from-sig.rs rename to tests/ui/const-generics/generic_const_exprs/from-sig.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/function-call.rs b/tests/ui/const-generics/generic_const_exprs/function-call.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/function-call.rs rename to tests/ui/const-generics/generic_const_exprs/function-call.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/function-call.stderr b/tests/ui/const-generics/generic_const_exprs/function-call.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/function-call.stderr rename to tests/ui/const-generics/generic_const_exprs/function-call.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/impl-bounds.rs b/tests/ui/const-generics/generic_const_exprs/impl-bounds.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/impl-bounds.rs rename to tests/ui/const-generics/generic_const_exprs/impl-bounds.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/infer-too-generic.rs b/tests/ui/const-generics/generic_const_exprs/infer-too-generic.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/infer-too-generic.rs rename to tests/ui/const-generics/generic_const_exprs/infer-too-generic.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-100217.rs b/tests/ui/const-generics/generic_const_exprs/issue-100217.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-100217.rs rename to tests/ui/const-generics/generic_const_exprs/issue-100217.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-100360.rs b/tests/ui/const-generics/generic_const_exprs/issue-100360.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-100360.rs rename to tests/ui/const-generics/generic_const_exprs/issue-100360.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-102074.rs b/tests/ui/const-generics/generic_const_exprs/issue-102074.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-102074.rs rename to tests/ui/const-generics/generic_const_exprs/issue-102074.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-102768.rs b/tests/ui/const-generics/generic_const_exprs/issue-102768.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-102768.rs rename to tests/ui/const-generics/generic_const_exprs/issue-102768.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-102768.stderr b/tests/ui/const-generics/generic_const_exprs/issue-102768.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-102768.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-102768.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-105257.rs b/tests/ui/const-generics/generic_const_exprs/issue-105257.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-105257.rs rename to tests/ui/const-generics/generic_const_exprs/issue-105257.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-105257.stderr b/tests/ui/const-generics/generic_const_exprs/issue-105257.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-105257.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-105257.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-105608.rs b/tests/ui/const-generics/generic_const_exprs/issue-105608.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-105608.rs rename to tests/ui/const-generics/generic_const_exprs/issue-105608.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-105608.stderr b/tests/ui/const-generics/generic_const_exprs/issue-105608.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-105608.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-105608.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-62504.full.stderr b/tests/ui/const-generics/generic_const_exprs/issue-62504.full.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-62504.full.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-62504.full.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-62504.min.stderr b/tests/ui/const-generics/generic_const_exprs/issue-62504.min.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-62504.min.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-62504.min.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-62504.rs b/tests/ui/const-generics/generic_const_exprs/issue-62504.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-62504.rs rename to tests/ui/const-generics/generic_const_exprs/issue-62504.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-69654.rs b/tests/ui/const-generics/generic_const_exprs/issue-69654.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-69654.rs rename to tests/ui/const-generics/generic_const_exprs/issue-69654.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-69654.stderr b/tests/ui/const-generics/generic_const_exprs/issue-69654.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-69654.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-69654.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72787.min.stderr b/tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-72787.min.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-72787.min.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72787.rs b/tests/ui/const-generics/generic_const_exprs/issue-72787.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-72787.rs rename to tests/ui/const-generics/generic_const_exprs/issue-72787.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.full.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.min.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs b/tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs rename to tests/ui/const-generics/generic_const_exprs/issue-72819-generic-in-const-eval.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-73298.rs b/tests/ui/const-generics/generic_const_exprs/issue-73298.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-73298.rs rename to tests/ui/const-generics/generic_const_exprs/issue-73298.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-73899.rs b/tests/ui/const-generics/generic_const_exprs/issue-73899.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-73899.rs rename to tests/ui/const-generics/generic_const_exprs/issue-73899.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-74634.rs b/tests/ui/const-generics/generic_const_exprs/issue-74634.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-74634.rs rename to tests/ui/const-generics/generic_const_exprs/issue-74634.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-74713.rs b/tests/ui/const-generics/generic_const_exprs/issue-74713.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-74713.rs rename to tests/ui/const-generics/generic_const_exprs/issue-74713.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-74713.stderr b/tests/ui/const-generics/generic_const_exprs/issue-74713.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-74713.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-74713.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-76595.rs b/tests/ui/const-generics/generic_const_exprs/issue-76595.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-76595.rs rename to tests/ui/const-generics/generic_const_exprs/issue-76595.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-76595.stderr b/tests/ui/const-generics/generic_const_exprs/issue-76595.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-76595.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-76595.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs b/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs rename to tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr b/tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-79518-default_trait_method_normalization.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs b/tests/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs rename to tests/ui/const-generics/generic_const_exprs/issue-80561-incorrect-param-env.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-80742.rs b/tests/ui/const-generics/generic_const_exprs/issue-80742.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-80742.rs rename to tests/ui/const-generics/generic_const_exprs/issue-80742.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-80742.stderr b/tests/ui/const-generics/generic_const_exprs/issue-80742.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-80742.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-80742.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-82268.rs b/tests/ui/const-generics/generic_const_exprs/issue-82268.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-82268.rs rename to tests/ui/const-generics/generic_const_exprs/issue-82268.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-83765.rs b/tests/ui/const-generics/generic_const_exprs/issue-83765.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-83765.rs rename to tests/ui/const-generics/generic_const_exprs/issue-83765.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-83765.stderr b/tests/ui/const-generics/generic_const_exprs/issue-83765.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-83765.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-83765.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-83972.rs b/tests/ui/const-generics/generic_const_exprs/issue-83972.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-83972.rs rename to tests/ui/const-generics/generic_const_exprs/issue-83972.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-84408.rs b/tests/ui/const-generics/generic_const_exprs/issue-84408.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-84408.rs rename to tests/ui/const-generics/generic_const_exprs/issue-84408.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-84669.rs b/tests/ui/const-generics/generic_const_exprs/issue-84669.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-84669.rs rename to tests/ui/const-generics/generic_const_exprs/issue-84669.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-85848.rs b/tests/ui/const-generics/generic_const_exprs/issue-85848.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-85848.rs rename to tests/ui/const-generics/generic_const_exprs/issue-85848.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-85848.stderr b/tests/ui/const-generics/generic_const_exprs/issue-85848.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-85848.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-85848.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-86710.rs b/tests/ui/const-generics/generic_const_exprs/issue-86710.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-86710.rs rename to tests/ui/const-generics/generic_const_exprs/issue-86710.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-89851.rs b/tests/ui/const-generics/generic_const_exprs/issue-89851.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-89851.rs rename to tests/ui/const-generics/generic_const_exprs/issue-89851.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-90847.rs b/tests/ui/const-generics/generic_const_exprs/issue-90847.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-90847.rs rename to tests/ui/const-generics/generic_const_exprs/issue-90847.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-94287.rs b/tests/ui/const-generics/generic_const_exprs/issue-94287.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-94287.rs rename to tests/ui/const-generics/generic_const_exprs/issue-94287.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-94287.stderr b/tests/ui/const-generics/generic_const_exprs/issue-94287.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-94287.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-94287.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-94293.rs b/tests/ui/const-generics/generic_const_exprs/issue-94293.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-94293.rs rename to tests/ui/const-generics/generic_const_exprs/issue-94293.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs rename to tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-97047-ice-1.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs rename to tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr b/tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr rename to tests/ui/const-generics/generic_const_exprs/issue-97047-ice-2.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-99647.rs b/tests/ui/const-generics/generic_const_exprs/issue-99647.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-99647.rs rename to tests/ui/const-generics/generic_const_exprs/issue-99647.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-99705.rs b/tests/ui/const-generics/generic_const_exprs/issue-99705.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/issue-99705.rs rename to tests/ui/const-generics/generic_const_exprs/issue-99705.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/less_than.rs b/tests/ui/const-generics/generic_const_exprs/less_than.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/less_than.rs rename to tests/ui/const-generics/generic_const_exprs/less_than.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/let-bindings.rs b/tests/ui/const-generics/generic_const_exprs/let-bindings.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/let-bindings.rs rename to tests/ui/const-generics/generic_const_exprs/let-bindings.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/let-bindings.stderr b/tests/ui/const-generics/generic_const_exprs/let-bindings.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/let-bindings.stderr rename to tests/ui/const-generics/generic_const_exprs/let-bindings.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/needs_where_clause.rs b/tests/ui/const-generics/generic_const_exprs/needs_where_clause.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/needs_where_clause.rs rename to tests/ui/const-generics/generic_const_exprs/needs_where_clause.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/needs_where_clause.stderr b/tests/ui/const-generics/generic_const_exprs/needs_where_clause.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/needs_where_clause.stderr rename to tests/ui/const-generics/generic_const_exprs/needs_where_clause.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs b/tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs rename to tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-1.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs b/tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs rename to tests/ui/const-generics/generic_const_exprs/nested-abstract-consts-2.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs b/tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs rename to tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-1.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs b/tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs rename to tests/ui/const-generics/generic_const_exprs/nested_uneval_unification-2.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/no_dependence.rs b/tests/ui/const-generics/generic_const_exprs/no_dependence.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/no_dependence.rs rename to tests/ui/const-generics/generic_const_exprs/no_dependence.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/no_where_clause.rs b/tests/ui/const-generics/generic_const_exprs/no_where_clause.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/no_where_clause.rs rename to tests/ui/const-generics/generic_const_exprs/no_where_clause.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/no_where_clause.stderr b/tests/ui/const-generics/generic_const_exprs/no_where_clause.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/no_where_clause.stderr rename to tests/ui/const-generics/generic_const_exprs/no_where_clause.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs b/tests/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs rename to tests/ui/const-generics/generic_const_exprs/normed_to_param_is_evaluatable.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs rename to tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr b/tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr rename to tests/ui/const-generics/generic_const_exprs/object-safety-err-ret.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs rename to tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr b/tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr rename to tests/ui/const-generics/generic_const_exprs/object-safety-err-where-bounds.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs rename to tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr b/tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr rename to tests/ui/const-generics/generic_const_exprs/object-safety-ok-infer-err.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/object-safety-ok.rs b/tests/ui/const-generics/generic_const_exprs/object-safety-ok.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/object-safety-ok.rs rename to tests/ui/const-generics/generic_const_exprs/object-safety-ok.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/obligation-cause.rs b/tests/ui/const-generics/generic_const_exprs/obligation-cause.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/obligation-cause.rs rename to tests/ui/const-generics/generic_const_exprs/obligation-cause.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/obligation-cause.stderr b/tests/ui/const-generics/generic_const_exprs/obligation-cause.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/obligation-cause.stderr rename to tests/ui/const-generics/generic_const_exprs/obligation-cause.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/simple_fail.rs b/tests/ui/const-generics/generic_const_exprs/simple_fail.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/simple_fail.rs rename to tests/ui/const-generics/generic_const_exprs/simple_fail.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/simple_fail.stderr b/tests/ui/const-generics/generic_const_exprs/simple_fail.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/simple_fail.stderr rename to tests/ui/const-generics/generic_const_exprs/simple_fail.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs b/tests/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs rename to tests/ui/const-generics/generic_const_exprs/subexprs_are_const_evalutable.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs b/tests/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs rename to tests/ui/const-generics/generic_const_exprs/ty-alias-substitution.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs b/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs rename to tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr b/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr rename to tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr diff --git a/src/test/ui/const-generics/generic_const_exprs/unop.rs b/tests/ui/const-generics/generic_const_exprs/unop.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/unop.rs rename to tests/ui/const-generics/generic_const_exprs/unop.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs b/tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs rename to tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/unused_expr.rs b/tests/ui/const-generics/generic_const_exprs/unused_expr.rs similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/unused_expr.rs rename to tests/ui/const-generics/generic_const_exprs/unused_expr.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/unused_expr.stderr b/tests/ui/const-generics/generic_const_exprs/unused_expr.stderr similarity index 100% rename from src/test/ui/const-generics/generic_const_exprs/unused_expr.stderr rename to tests/ui/const-generics/generic_const_exprs/unused_expr.stderr diff --git a/src/test/ui/const-generics/ice-68875.rs b/tests/ui/const-generics/ice-68875.rs similarity index 100% rename from src/test/ui/const-generics/ice-68875.rs rename to tests/ui/const-generics/ice-68875.rs diff --git a/src/test/ui/const-generics/ice-68875.stderr b/tests/ui/const-generics/ice-68875.stderr similarity index 100% rename from src/test/ui/const-generics/ice-68875.stderr rename to tests/ui/const-generics/ice-68875.stderr diff --git a/src/test/ui/const-generics/ice-const-generic-function-return-ty.rs b/tests/ui/const-generics/ice-const-generic-function-return-ty.rs similarity index 100% rename from src/test/ui/const-generics/ice-const-generic-function-return-ty.rs rename to tests/ui/const-generics/ice-const-generic-function-return-ty.rs diff --git a/src/test/ui/const-generics/ice-const-generic-function-return-ty.stderr b/tests/ui/const-generics/ice-const-generic-function-return-ty.stderr similarity index 100% rename from src/test/ui/const-generics/ice-const-generic-function-return-ty.stderr rename to tests/ui/const-generics/ice-const-generic-function-return-ty.stderr diff --git a/src/test/ui/const-generics/impl-const-generic-struct.rs b/tests/ui/const-generics/impl-const-generic-struct.rs similarity index 100% rename from src/test/ui/const-generics/impl-const-generic-struct.rs rename to tests/ui/const-generics/impl-const-generic-struct.rs diff --git a/src/test/ui/const-generics/incorrect-number-of-const-args.rs b/tests/ui/const-generics/incorrect-number-of-const-args.rs similarity index 100% rename from src/test/ui/const-generics/incorrect-number-of-const-args.rs rename to tests/ui/const-generics/incorrect-number-of-const-args.rs diff --git a/src/test/ui/const-generics/incorrect-number-of-const-args.stderr b/tests/ui/const-generics/incorrect-number-of-const-args.stderr similarity index 100% rename from src/test/ui/const-generics/incorrect-number-of-const-args.stderr rename to tests/ui/const-generics/incorrect-number-of-const-args.stderr diff --git a/src/test/ui/const-generics/infer/cannot-infer-const-args.rs b/tests/ui/const-generics/infer/cannot-infer-const-args.rs similarity index 100% rename from src/test/ui/const-generics/infer/cannot-infer-const-args.rs rename to tests/ui/const-generics/infer/cannot-infer-const-args.rs diff --git a/src/test/ui/const-generics/infer/cannot-infer-const-args.stderr b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr similarity index 100% rename from src/test/ui/const-generics/infer/cannot-infer-const-args.stderr rename to tests/ui/const-generics/infer/cannot-infer-const-args.stderr diff --git a/src/test/ui/const-generics/infer/issue-77092.rs b/tests/ui/const-generics/infer/issue-77092.rs similarity index 100% rename from src/test/ui/const-generics/infer/issue-77092.rs rename to tests/ui/const-generics/infer/issue-77092.rs diff --git a/src/test/ui/const-generics/infer/issue-77092.stderr b/tests/ui/const-generics/infer/issue-77092.stderr similarity index 100% rename from src/test/ui/const-generics/infer/issue-77092.stderr rename to tests/ui/const-generics/infer/issue-77092.stderr diff --git a/src/test/ui/const-generics/infer/method-chain.rs b/tests/ui/const-generics/infer/method-chain.rs similarity index 100% rename from src/test/ui/const-generics/infer/method-chain.rs rename to tests/ui/const-generics/infer/method-chain.rs diff --git a/src/test/ui/const-generics/infer/method-chain.stderr b/tests/ui/const-generics/infer/method-chain.stderr similarity index 100% rename from src/test/ui/const-generics/infer/method-chain.stderr rename to tests/ui/const-generics/infer/method-chain.stderr diff --git a/src/test/ui/const-generics/infer/one-param-uninferred.rs b/tests/ui/const-generics/infer/one-param-uninferred.rs similarity index 100% rename from src/test/ui/const-generics/infer/one-param-uninferred.rs rename to tests/ui/const-generics/infer/one-param-uninferred.rs diff --git a/src/test/ui/const-generics/infer/one-param-uninferred.stderr b/tests/ui/const-generics/infer/one-param-uninferred.stderr similarity index 100% rename from src/test/ui/const-generics/infer/one-param-uninferred.stderr rename to tests/ui/const-generics/infer/one-param-uninferred.stderr diff --git a/src/test/ui/const-generics/infer/uninferred-consts.rs b/tests/ui/const-generics/infer/uninferred-consts.rs similarity index 100% rename from src/test/ui/const-generics/infer/uninferred-consts.rs rename to tests/ui/const-generics/infer/uninferred-consts.rs diff --git a/src/test/ui/const-generics/infer/uninferred-consts.stderr b/tests/ui/const-generics/infer/uninferred-consts.stderr similarity index 100% rename from src/test/ui/const-generics/infer/uninferred-consts.stderr rename to tests/ui/const-generics/infer/uninferred-consts.stderr diff --git a/src/test/ui/const-generics/infer_arg_from_pat.rs b/tests/ui/const-generics/infer_arg_from_pat.rs similarity index 100% rename from src/test/ui/const-generics/infer_arg_from_pat.rs rename to tests/ui/const-generics/infer_arg_from_pat.rs diff --git a/src/test/ui/const-generics/infer_arr_len_from_pat.rs b/tests/ui/const-generics/infer_arr_len_from_pat.rs similarity index 100% rename from src/test/ui/const-generics/infer_arr_len_from_pat.rs rename to tests/ui/const-generics/infer_arr_len_from_pat.rs diff --git a/src/test/ui/const-generics/inhabited-assoc-ty-ice-1.rs b/tests/ui/const-generics/inhabited-assoc-ty-ice-1.rs similarity index 100% rename from src/test/ui/const-generics/inhabited-assoc-ty-ice-1.rs rename to tests/ui/const-generics/inhabited-assoc-ty-ice-1.rs diff --git a/src/test/ui/const-generics/inhabited-assoc-ty-ice-2.rs b/tests/ui/const-generics/inhabited-assoc-ty-ice-2.rs similarity index 100% rename from src/test/ui/const-generics/inhabited-assoc-ty-ice-2.rs rename to tests/ui/const-generics/inhabited-assoc-ty-ice-2.rs diff --git a/src/test/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs b/tests/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs similarity index 100% rename from src/test/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs rename to tests/ui/const-generics/integer-literal-generic-arg-in-where-clause.rs diff --git a/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr b/tests/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr similarity index 100% rename from src/test/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr rename to tests/ui/const-generics/intrinsics-type_name-as-const-argument.min.stderr diff --git a/src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs b/tests/ui/const-generics/intrinsics-type_name-as-const-argument.rs similarity index 100% rename from src/test/ui/const-generics/intrinsics-type_name-as-const-argument.rs rename to tests/ui/const-generics/intrinsics-type_name-as-const-argument.rs diff --git a/src/test/ui/const-generics/invalid-const-arg-for-type-param.rs b/tests/ui/const-generics/invalid-const-arg-for-type-param.rs similarity index 100% rename from src/test/ui/const-generics/invalid-const-arg-for-type-param.rs rename to tests/ui/const-generics/invalid-const-arg-for-type-param.rs diff --git a/src/test/ui/const-generics/invalid-const-arg-for-type-param.stderr b/tests/ui/const-generics/invalid-const-arg-for-type-param.stderr similarity index 100% rename from src/test/ui/const-generics/invalid-const-arg-for-type-param.stderr rename to tests/ui/const-generics/invalid-const-arg-for-type-param.stderr diff --git a/src/test/ui/const-generics/invalid-constant-in-args.rs b/tests/ui/const-generics/invalid-constant-in-args.rs similarity index 100% rename from src/test/ui/const-generics/invalid-constant-in-args.rs rename to tests/ui/const-generics/invalid-constant-in-args.rs diff --git a/src/test/ui/const-generics/invalid-constant-in-args.stderr b/tests/ui/const-generics/invalid-constant-in-args.stderr similarity index 100% rename from src/test/ui/const-generics/invalid-constant-in-args.stderr rename to tests/ui/const-generics/invalid-constant-in-args.stderr diff --git a/src/test/ui/const-generics/invalid-enum.rs b/tests/ui/const-generics/invalid-enum.rs similarity index 100% rename from src/test/ui/const-generics/invalid-enum.rs rename to tests/ui/const-generics/invalid-enum.rs diff --git a/src/test/ui/const-generics/invalid-enum.stderr b/tests/ui/const-generics/invalid-enum.stderr similarity index 100% rename from src/test/ui/const-generics/invalid-enum.stderr rename to tests/ui/const-generics/invalid-enum.stderr diff --git a/src/test/ui/const-generics/invariant.rs b/tests/ui/const-generics/invariant.rs similarity index 100% rename from src/test/ui/const-generics/invariant.rs rename to tests/ui/const-generics/invariant.rs diff --git a/src/test/ui/const-generics/invariant.stderr b/tests/ui/const-generics/invariant.stderr similarity index 100% rename from src/test/ui/const-generics/invariant.stderr rename to tests/ui/const-generics/invariant.stderr diff --git a/src/test/ui/const-generics/issue-102124.rs b/tests/ui/const-generics/issue-102124.rs similarity index 100% rename from src/test/ui/const-generics/issue-102124.rs rename to tests/ui/const-generics/issue-102124.rs diff --git a/src/test/ui/const-generics/issue-105689.rs b/tests/ui/const-generics/issue-105689.rs similarity index 100% rename from src/test/ui/const-generics/issue-105689.rs rename to tests/ui/const-generics/issue-105689.rs diff --git a/src/test/ui/const-generics/issue-46511.rs b/tests/ui/const-generics/issue-46511.rs similarity index 100% rename from src/test/ui/const-generics/issue-46511.rs rename to tests/ui/const-generics/issue-46511.rs diff --git a/src/test/ui/const-generics/issue-46511.stderr b/tests/ui/const-generics/issue-46511.stderr similarity index 100% rename from src/test/ui/const-generics/issue-46511.stderr rename to tests/ui/const-generics/issue-46511.stderr diff --git a/src/test/ui/const-generics/issue-66451.rs b/tests/ui/const-generics/issue-66451.rs similarity index 100% rename from src/test/ui/const-generics/issue-66451.rs rename to tests/ui/const-generics/issue-66451.rs diff --git a/src/test/ui/const-generics/issue-66451.stderr b/tests/ui/const-generics/issue-66451.stderr similarity index 100% rename from src/test/ui/const-generics/issue-66451.stderr rename to tests/ui/const-generics/issue-66451.stderr diff --git a/src/test/ui/const-generics/issue-70408.rs b/tests/ui/const-generics/issue-70408.rs similarity index 100% rename from src/test/ui/const-generics/issue-70408.rs rename to tests/ui/const-generics/issue-70408.rs diff --git a/src/test/ui/const-generics/issue-80471.rs b/tests/ui/const-generics/issue-80471.rs similarity index 100% rename from src/test/ui/const-generics/issue-80471.rs rename to tests/ui/const-generics/issue-80471.rs diff --git a/src/test/ui/const-generics/issue-80471.stderr b/tests/ui/const-generics/issue-80471.stderr similarity index 100% rename from src/test/ui/const-generics/issue-80471.stderr rename to tests/ui/const-generics/issue-80471.stderr diff --git a/src/test/ui/const-generics/issue-93647.rs b/tests/ui/const-generics/issue-93647.rs similarity index 100% rename from src/test/ui/const-generics/issue-93647.rs rename to tests/ui/const-generics/issue-93647.rs diff --git a/src/test/ui/const-generics/issue-93647.stderr b/tests/ui/const-generics/issue-93647.stderr similarity index 100% rename from src/test/ui/const-generics/issue-93647.stderr rename to tests/ui/const-generics/issue-93647.stderr diff --git a/src/test/ui/const-generics/issue-97007.rs b/tests/ui/const-generics/issue-97007.rs similarity index 100% rename from src/test/ui/const-generics/issue-97007.rs rename to tests/ui/const-generics/issue-97007.rs diff --git a/src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs b/tests/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs similarity index 100% rename from src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs rename to tests/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs diff --git a/src/test/ui/const-generics/issues/auxiliary/impl-const.rs b/tests/ui/const-generics/issues/auxiliary/impl-const.rs similarity index 100% rename from src/test/ui/const-generics/issues/auxiliary/impl-const.rs rename to tests/ui/const-generics/issues/auxiliary/impl-const.rs diff --git a/src/test/ui/const-generics/issues/issue-100313.rs b/tests/ui/const-generics/issues/issue-100313.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-100313.rs rename to tests/ui/const-generics/issues/issue-100313.rs diff --git a/src/test/ui/const-generics/issues/issue-100313.stderr b/tests/ui/const-generics/issues/issue-100313.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-100313.stderr rename to tests/ui/const-generics/issues/issue-100313.stderr diff --git a/src/test/ui/const-generics/issues/issue-105037.rs b/tests/ui/const-generics/issues/issue-105037.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-105037.rs rename to tests/ui/const-generics/issues/issue-105037.rs diff --git a/src/test/ui/const-generics/issues/issue-56445-1.full.stderr b/tests/ui/const-generics/issues/issue-56445-1.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-1.full.stderr rename to tests/ui/const-generics/issues/issue-56445-1.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-56445-1.min.stderr b/tests/ui/const-generics/issues/issue-56445-1.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-1.min.stderr rename to tests/ui/const-generics/issues/issue-56445-1.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-56445-1.rs b/tests/ui/const-generics/issues/issue-56445-1.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-1.rs rename to tests/ui/const-generics/issues/issue-56445-1.rs diff --git a/src/test/ui/const-generics/issues/issue-56445-2.rs b/tests/ui/const-generics/issues/issue-56445-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-2.rs rename to tests/ui/const-generics/issues/issue-56445-2.rs diff --git a/src/test/ui/const-generics/issues/issue-56445-2.stderr b/tests/ui/const-generics/issues/issue-56445-2.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-2.stderr rename to tests/ui/const-generics/issues/issue-56445-2.stderr diff --git a/src/test/ui/const-generics/issues/issue-56445-3.rs b/tests/ui/const-generics/issues/issue-56445-3.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-3.rs rename to tests/ui/const-generics/issues/issue-56445-3.rs diff --git a/src/test/ui/const-generics/issues/issue-56445-3.stderr b/tests/ui/const-generics/issues/issue-56445-3.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-56445-3.stderr rename to tests/ui/const-generics/issues/issue-56445-3.stderr diff --git a/src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs b/tests/ui/const-generics/issues/issue-60818-struct-constructors.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs rename to tests/ui/const-generics/issues/issue-60818-struct-constructors.rs diff --git a/src/test/ui/const-generics/issues/issue-61336-1.rs b/tests/ui/const-generics/issues/issue-61336-1.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-61336-1.rs rename to tests/ui/const-generics/issues/issue-61336-1.rs diff --git a/src/test/ui/const-generics/issues/issue-61336-2.rs b/tests/ui/const-generics/issues/issue-61336-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-61336-2.rs rename to tests/ui/const-generics/issues/issue-61336-2.rs diff --git a/src/test/ui/const-generics/issues/issue-61336-2.stderr b/tests/ui/const-generics/issues/issue-61336-2.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-61336-2.stderr rename to tests/ui/const-generics/issues/issue-61336-2.stderr diff --git a/src/test/ui/const-generics/issues/issue-61336.rs b/tests/ui/const-generics/issues/issue-61336.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-61336.rs rename to tests/ui/const-generics/issues/issue-61336.rs diff --git a/src/test/ui/const-generics/issues/issue-61336.stderr b/tests/ui/const-generics/issues/issue-61336.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-61336.stderr rename to tests/ui/const-generics/issues/issue-61336.stderr diff --git a/src/test/ui/const-generics/issues/issue-61422.rs b/tests/ui/const-generics/issues/issue-61422.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-61422.rs rename to tests/ui/const-generics/issues/issue-61422.rs diff --git a/src/test/ui/const-generics/issues/issue-61432.rs b/tests/ui/const-generics/issues/issue-61432.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-61432.rs rename to tests/ui/const-generics/issues/issue-61432.rs diff --git a/src/test/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs b/tests/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs rename to tests/ui/const-generics/issues/issue-62187-encountered-polymorphic-const.rs diff --git a/src/test/ui/const-generics/issues/issue-62878.full.stderr b/tests/ui/const-generics/issues/issue-62878.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-62878.full.stderr rename to tests/ui/const-generics/issues/issue-62878.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-62878.min.stderr b/tests/ui/const-generics/issues/issue-62878.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-62878.min.stderr rename to tests/ui/const-generics/issues/issue-62878.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-62878.rs b/tests/ui/const-generics/issues/issue-62878.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-62878.rs rename to tests/ui/const-generics/issues/issue-62878.rs diff --git a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr rename to tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr rename to tests/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs b/tests/ui/const-generics/issues/issue-63322-forbid-dyn.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-63322-forbid-dyn.rs rename to tests/ui/const-generics/issues/issue-63322-forbid-dyn.rs diff --git a/src/test/ui/const-generics/issues/issue-64519.rs b/tests/ui/const-generics/issues/issue-64519.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-64519.rs rename to tests/ui/const-generics/issues/issue-64519.rs diff --git a/src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs b/tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs rename to tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs diff --git a/src/test/ui/const-generics/issues/issue-66906.rs b/tests/ui/const-generics/issues/issue-66906.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-66906.rs rename to tests/ui/const-generics/issues/issue-66906.rs diff --git a/src/test/ui/const-generics/issues/issue-67185-1.rs b/tests/ui/const-generics/issues/issue-67185-1.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67185-1.rs rename to tests/ui/const-generics/issues/issue-67185-1.rs diff --git a/src/test/ui/const-generics/issues/issue-67185-2.rs b/tests/ui/const-generics/issues/issue-67185-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67185-2.rs rename to tests/ui/const-generics/issues/issue-67185-2.rs diff --git a/src/test/ui/const-generics/issues/issue-67185-2.stderr b/tests/ui/const-generics/issues/issue-67185-2.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67185-2.stderr rename to tests/ui/const-generics/issues/issue-67185-2.stderr diff --git a/src/test/ui/const-generics/issues/issue-67375.full.stderr b/tests/ui/const-generics/issues/issue-67375.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67375.full.stderr rename to tests/ui/const-generics/issues/issue-67375.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-67375.min.stderr b/tests/ui/const-generics/issues/issue-67375.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67375.min.stderr rename to tests/ui/const-generics/issues/issue-67375.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-67375.rs b/tests/ui/const-generics/issues/issue-67375.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67375.rs rename to tests/ui/const-generics/issues/issue-67375.rs diff --git a/src/test/ui/const-generics/issues/issue-67739.full.stderr b/tests/ui/const-generics/issues/issue-67739.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67739.full.stderr rename to tests/ui/const-generics/issues/issue-67739.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-67739.min.stderr b/tests/ui/const-generics/issues/issue-67739.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67739.min.stderr rename to tests/ui/const-generics/issues/issue-67739.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-67739.rs b/tests/ui/const-generics/issues/issue-67739.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67739.rs rename to tests/ui/const-generics/issues/issue-67739.rs diff --git a/src/test/ui/const-generics/issues/issue-67945-1.full.stderr b/tests/ui/const-generics/issues/issue-67945-1.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-1.full.stderr rename to tests/ui/const-generics/issues/issue-67945-1.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-1.min.stderr b/tests/ui/const-generics/issues/issue-67945-1.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-1.min.stderr rename to tests/ui/const-generics/issues/issue-67945-1.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-1.rs b/tests/ui/const-generics/issues/issue-67945-1.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-1.rs rename to tests/ui/const-generics/issues/issue-67945-1.rs diff --git a/src/test/ui/const-generics/issues/issue-67945-2.full.stderr b/tests/ui/const-generics/issues/issue-67945-2.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-2.full.stderr rename to tests/ui/const-generics/issues/issue-67945-2.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-2.min.stderr b/tests/ui/const-generics/issues/issue-67945-2.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-2.min.stderr rename to tests/ui/const-generics/issues/issue-67945-2.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-2.rs b/tests/ui/const-generics/issues/issue-67945-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-2.rs rename to tests/ui/const-generics/issues/issue-67945-2.rs diff --git a/src/test/ui/const-generics/issues/issue-67945-3.full.stderr b/tests/ui/const-generics/issues/issue-67945-3.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-3.full.stderr rename to tests/ui/const-generics/issues/issue-67945-3.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-3.min.stderr b/tests/ui/const-generics/issues/issue-67945-3.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-3.min.stderr rename to tests/ui/const-generics/issues/issue-67945-3.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-3.rs b/tests/ui/const-generics/issues/issue-67945-3.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-3.rs rename to tests/ui/const-generics/issues/issue-67945-3.rs diff --git a/src/test/ui/const-generics/issues/issue-67945-4.full.stderr b/tests/ui/const-generics/issues/issue-67945-4.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-4.full.stderr rename to tests/ui/const-generics/issues/issue-67945-4.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-4.min.stderr b/tests/ui/const-generics/issues/issue-67945-4.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-4.min.stderr rename to tests/ui/const-generics/issues/issue-67945-4.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-67945-4.rs b/tests/ui/const-generics/issues/issue-67945-4.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-67945-4.rs rename to tests/ui/const-generics/issues/issue-67945-4.rs diff --git a/src/test/ui/const-generics/issues/issue-68104-print-stack-overflow.rs b/tests/ui/const-generics/issues/issue-68104-print-stack-overflow.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-68104-print-stack-overflow.rs rename to tests/ui/const-generics/issues/issue-68104-print-stack-overflow.rs diff --git a/src/test/ui/const-generics/issues/issue-68366.full.stderr b/tests/ui/const-generics/issues/issue-68366.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-68366.full.stderr rename to tests/ui/const-generics/issues/issue-68366.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-68366.min.stderr b/tests/ui/const-generics/issues/issue-68366.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-68366.min.stderr rename to tests/ui/const-generics/issues/issue-68366.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-68366.rs b/tests/ui/const-generics/issues/issue-68366.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-68366.rs rename to tests/ui/const-generics/issues/issue-68366.rs diff --git a/src/test/ui/const-generics/issues/issue-68596.rs b/tests/ui/const-generics/issues/issue-68596.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-68596.rs rename to tests/ui/const-generics/issues/issue-68596.rs diff --git a/src/test/ui/const-generics/issues/issue-68615-adt.min.stderr b/tests/ui/const-generics/issues/issue-68615-adt.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-68615-adt.min.stderr rename to tests/ui/const-generics/issues/issue-68615-adt.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-68615-adt.rs b/tests/ui/const-generics/issues/issue-68615-adt.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-68615-adt.rs rename to tests/ui/const-generics/issues/issue-68615-adt.rs diff --git a/src/test/ui/const-generics/issues/issue-68615-array.min.stderr b/tests/ui/const-generics/issues/issue-68615-array.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-68615-array.min.stderr rename to tests/ui/const-generics/issues/issue-68615-array.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-68615-array.rs b/tests/ui/const-generics/issues/issue-68615-array.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-68615-array.rs rename to tests/ui/const-generics/issues/issue-68615-array.rs diff --git a/src/test/ui/const-generics/issues/issue-69654-run-pass.rs b/tests/ui/const-generics/issues/issue-69654-run-pass.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-69654-run-pass.rs rename to tests/ui/const-generics/issues/issue-69654-run-pass.rs diff --git a/src/test/ui/const-generics/issues/issue-70125-1.rs b/tests/ui/const-generics/issues/issue-70125-1.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70125-1.rs rename to tests/ui/const-generics/issues/issue-70125-1.rs diff --git a/src/test/ui/const-generics/issues/issue-70125-2.rs b/tests/ui/const-generics/issues/issue-70125-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70125-2.rs rename to tests/ui/const-generics/issues/issue-70125-2.rs diff --git a/src/test/ui/const-generics/issues/issue-70167.rs b/tests/ui/const-generics/issues/issue-70167.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70167.rs rename to tests/ui/const-generics/issues/issue-70167.rs diff --git a/src/test/ui/const-generics/issues/issue-70180-1-stalled_on.rs b/tests/ui/const-generics/issues/issue-70180-1-stalled_on.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70180-1-stalled_on.rs rename to tests/ui/const-generics/issues/issue-70180-1-stalled_on.rs diff --git a/src/test/ui/const-generics/issues/issue-70180-2-stalled_on.rs b/tests/ui/const-generics/issues/issue-70180-2-stalled_on.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70180-2-stalled_on.rs rename to tests/ui/const-generics/issues/issue-70180-2-stalled_on.rs diff --git a/src/test/ui/const-generics/issues/issue-70225.rs b/tests/ui/const-generics/issues/issue-70225.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70225.rs rename to tests/ui/const-generics/issues/issue-70225.rs diff --git a/src/test/ui/const-generics/issues/issue-70273-assoc-fn.rs b/tests/ui/const-generics/issues/issue-70273-assoc-fn.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-70273-assoc-fn.rs rename to tests/ui/const-generics/issues/issue-70273-assoc-fn.rs diff --git a/src/test/ui/const-generics/issues/issue-71169.full.stderr b/tests/ui/const-generics/issues/issue-71169.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71169.full.stderr rename to tests/ui/const-generics/issues/issue-71169.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-71169.min.stderr b/tests/ui/const-generics/issues/issue-71169.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71169.min.stderr rename to tests/ui/const-generics/issues/issue-71169.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-71169.rs b/tests/ui/const-generics/issues/issue-71169.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71169.rs rename to tests/ui/const-generics/issues/issue-71169.rs diff --git a/src/test/ui/const-generics/issues/issue-71202.rs b/tests/ui/const-generics/issues/issue-71202.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71202.rs rename to tests/ui/const-generics/issues/issue-71202.rs diff --git a/src/test/ui/const-generics/issues/issue-71202.stderr b/tests/ui/const-generics/issues/issue-71202.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71202.stderr rename to tests/ui/const-generics/issues/issue-71202.stderr diff --git a/src/test/ui/const-generics/issues/issue-71381.full.stderr b/tests/ui/const-generics/issues/issue-71381.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71381.full.stderr rename to tests/ui/const-generics/issues/issue-71381.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-71381.min.stderr b/tests/ui/const-generics/issues/issue-71381.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71381.min.stderr rename to tests/ui/const-generics/issues/issue-71381.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-71381.rs b/tests/ui/const-generics/issues/issue-71381.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71381.rs rename to tests/ui/const-generics/issues/issue-71381.rs diff --git a/src/test/ui/const-generics/issues/issue-71382.full.stderr b/tests/ui/const-generics/issues/issue-71382.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71382.full.stderr rename to tests/ui/const-generics/issues/issue-71382.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-71382.min.stderr b/tests/ui/const-generics/issues/issue-71382.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71382.min.stderr rename to tests/ui/const-generics/issues/issue-71382.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-71382.rs b/tests/ui/const-generics/issues/issue-71382.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71382.rs rename to tests/ui/const-generics/issues/issue-71382.rs diff --git a/src/test/ui/const-generics/issues/issue-71547.rs b/tests/ui/const-generics/issues/issue-71547.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71547.rs rename to tests/ui/const-generics/issues/issue-71547.rs diff --git a/src/test/ui/const-generics/issues/issue-71611.full.stderr b/tests/ui/const-generics/issues/issue-71611.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71611.full.stderr rename to tests/ui/const-generics/issues/issue-71611.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-71611.min.stderr b/tests/ui/const-generics/issues/issue-71611.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-71611.min.stderr rename to tests/ui/const-generics/issues/issue-71611.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-71611.rs b/tests/ui/const-generics/issues/issue-71611.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71611.rs rename to tests/ui/const-generics/issues/issue-71611.rs diff --git a/src/test/ui/const-generics/issues/issue-71986.rs b/tests/ui/const-generics/issues/issue-71986.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-71986.rs rename to tests/ui/const-generics/issues/issue-71986.rs diff --git a/src/test/ui/const-generics/issues/issue-72352.full.stderr b/tests/ui/const-generics/issues/issue-72352.full.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-72352.full.stderr rename to tests/ui/const-generics/issues/issue-72352.full.stderr diff --git a/src/test/ui/const-generics/issues/issue-72352.min.stderr b/tests/ui/const-generics/issues/issue-72352.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-72352.min.stderr rename to tests/ui/const-generics/issues/issue-72352.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-72352.rs b/tests/ui/const-generics/issues/issue-72352.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-72352.rs rename to tests/ui/const-generics/issues/issue-72352.rs diff --git a/src/test/ui/const-generics/issues/issue-72845.rs b/tests/ui/const-generics/issues/issue-72845.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-72845.rs rename to tests/ui/const-generics/issues/issue-72845.rs diff --git a/src/test/ui/const-generics/issues/issue-72845.stderr b/tests/ui/const-generics/issues/issue-72845.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-72845.stderr rename to tests/ui/const-generics/issues/issue-72845.stderr diff --git a/src/test/ui/const-generics/issues/issue-73120.rs b/tests/ui/const-generics/issues/issue-73120.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-73120.rs rename to tests/ui/const-generics/issues/issue-73120.rs diff --git a/src/test/ui/const-generics/issues/issue-73260.rs b/tests/ui/const-generics/issues/issue-73260.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-73260.rs rename to tests/ui/const-generics/issues/issue-73260.rs diff --git a/src/test/ui/const-generics/issues/issue-73260.stderr b/tests/ui/const-generics/issues/issue-73260.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-73260.stderr rename to tests/ui/const-generics/issues/issue-73260.stderr diff --git a/src/test/ui/const-generics/issues/issue-73491.min.stderr b/tests/ui/const-generics/issues/issue-73491.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-73491.min.stderr rename to tests/ui/const-generics/issues/issue-73491.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-73491.rs b/tests/ui/const-generics/issues/issue-73491.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-73491.rs rename to tests/ui/const-generics/issues/issue-73491.rs diff --git a/src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr b/tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr rename to tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs b/tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs rename to tests/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs diff --git a/src/test/ui/const-generics/issues/issue-74101.min.stderr b/tests/ui/const-generics/issues/issue-74101.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-74101.min.stderr rename to tests/ui/const-generics/issues/issue-74101.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-74101.rs b/tests/ui/const-generics/issues/issue-74101.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-74101.rs rename to tests/ui/const-generics/issues/issue-74101.rs diff --git a/src/test/ui/const-generics/issues/issue-74255.min.stderr b/tests/ui/const-generics/issues/issue-74255.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-74255.min.stderr rename to tests/ui/const-generics/issues/issue-74255.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-74255.rs b/tests/ui/const-generics/issues/issue-74255.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-74255.rs rename to tests/ui/const-generics/issues/issue-74255.rs diff --git a/src/test/ui/const-generics/issues/issue-74906.rs b/tests/ui/const-generics/issues/issue-74906.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-74906.rs rename to tests/ui/const-generics/issues/issue-74906.rs diff --git a/src/test/ui/const-generics/issues/issue-74950.min.stderr b/tests/ui/const-generics/issues/issue-74950.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-74950.min.stderr rename to tests/ui/const-generics/issues/issue-74950.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-74950.rs b/tests/ui/const-generics/issues/issue-74950.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-74950.rs rename to tests/ui/const-generics/issues/issue-74950.rs diff --git a/src/test/ui/const-generics/issues/issue-75047.min.stderr b/tests/ui/const-generics/issues/issue-75047.min.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-75047.min.stderr rename to tests/ui/const-generics/issues/issue-75047.min.stderr diff --git a/src/test/ui/const-generics/issues/issue-75047.rs b/tests/ui/const-generics/issues/issue-75047.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-75047.rs rename to tests/ui/const-generics/issues/issue-75047.rs diff --git a/src/test/ui/const-generics/issues/issue-75299.rs b/tests/ui/const-generics/issues/issue-75299.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-75299.rs rename to tests/ui/const-generics/issues/issue-75299.rs diff --git a/src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.rs b/tests/ui/const-generics/issues/issue-76701-ty-param-in-const.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.rs rename to tests/ui/const-generics/issues/issue-76701-ty-param-in-const.rs diff --git a/src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr b/tests/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr rename to tests/ui/const-generics/issues/issue-76701-ty-param-in-const.stderr diff --git a/src/test/ui/const-generics/issues/issue-77357.rs b/tests/ui/const-generics/issues/issue-77357.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-77357.rs rename to tests/ui/const-generics/issues/issue-77357.rs diff --git a/src/test/ui/const-generics/issues/issue-77357.stderr b/tests/ui/const-generics/issues/issue-77357.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-77357.stderr rename to tests/ui/const-generics/issues/issue-77357.stderr diff --git a/src/test/ui/const-generics/issues/issue-79674.rs b/tests/ui/const-generics/issues/issue-79674.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-79674.rs rename to tests/ui/const-generics/issues/issue-79674.rs diff --git a/src/test/ui/const-generics/issues/issue-79674.stderr b/tests/ui/const-generics/issues/issue-79674.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-79674.stderr rename to tests/ui/const-generics/issues/issue-79674.stderr diff --git a/src/test/ui/const-generics/issues/issue-80062.rs b/tests/ui/const-generics/issues/issue-80062.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-80062.rs rename to tests/ui/const-generics/issues/issue-80062.rs diff --git a/src/test/ui/const-generics/issues/issue-80062.stderr b/tests/ui/const-generics/issues/issue-80062.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-80062.stderr rename to tests/ui/const-generics/issues/issue-80062.stderr diff --git a/src/test/ui/const-generics/issues/issue-80375.rs b/tests/ui/const-generics/issues/issue-80375.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-80375.rs rename to tests/ui/const-generics/issues/issue-80375.rs diff --git a/src/test/ui/const-generics/issues/issue-80375.stderr b/tests/ui/const-generics/issues/issue-80375.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-80375.stderr rename to tests/ui/const-generics/issues/issue-80375.stderr diff --git a/src/test/ui/const-generics/issues/issue-82956.rs b/tests/ui/const-generics/issues/issue-82956.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-82956.rs rename to tests/ui/const-generics/issues/issue-82956.rs diff --git a/src/test/ui/const-generics/issues/issue-82956.stderr b/tests/ui/const-generics/issues/issue-82956.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-82956.stderr rename to tests/ui/const-generics/issues/issue-82956.stderr diff --git a/src/test/ui/const-generics/issues/issue-83249.rs b/tests/ui/const-generics/issues/issue-83249.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-83249.rs rename to tests/ui/const-generics/issues/issue-83249.rs diff --git a/src/test/ui/const-generics/issues/issue-83249.stderr b/tests/ui/const-generics/issues/issue-83249.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-83249.stderr rename to tests/ui/const-generics/issues/issue-83249.stderr diff --git a/src/test/ui/const-generics/issues/issue-83288.rs b/tests/ui/const-generics/issues/issue-83288.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-83288.rs rename to tests/ui/const-generics/issues/issue-83288.rs diff --git a/src/test/ui/const-generics/issues/issue-83466.rs b/tests/ui/const-generics/issues/issue-83466.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-83466.rs rename to tests/ui/const-generics/issues/issue-83466.rs diff --git a/src/test/ui/const-generics/issues/issue-83466.stderr b/tests/ui/const-generics/issues/issue-83466.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-83466.stderr rename to tests/ui/const-generics/issues/issue-83466.stderr diff --git a/src/test/ui/const-generics/issues/issue-83765.rs b/tests/ui/const-generics/issues/issue-83765.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-83765.rs rename to tests/ui/const-generics/issues/issue-83765.rs diff --git a/src/test/ui/const-generics/issues/issue-83765.stderr b/tests/ui/const-generics/issues/issue-83765.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-83765.stderr rename to tests/ui/const-generics/issues/issue-83765.stderr diff --git a/src/test/ui/const-generics/issues/issue-83993.rs b/tests/ui/const-generics/issues/issue-83993.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-83993.rs rename to tests/ui/const-generics/issues/issue-83993.rs diff --git a/src/test/ui/const-generics/issues/issue-84659.rs b/tests/ui/const-generics/issues/issue-84659.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-84659.rs rename to tests/ui/const-generics/issues/issue-84659.rs diff --git a/src/test/ui/const-generics/issues/issue-84659.stderr b/tests/ui/const-generics/issues/issue-84659.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-84659.stderr rename to tests/ui/const-generics/issues/issue-84659.stderr diff --git a/src/test/ui/const-generics/issues/issue-85031-2.rs b/tests/ui/const-generics/issues/issue-85031-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-85031-2.rs rename to tests/ui/const-generics/issues/issue-85031-2.rs diff --git a/src/test/ui/const-generics/issues/issue-85031-2.stderr b/tests/ui/const-generics/issues/issue-85031-2.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-85031-2.stderr rename to tests/ui/const-generics/issues/issue-85031-2.stderr diff --git a/src/test/ui/const-generics/issues/issue-86033.rs b/tests/ui/const-generics/issues/issue-86033.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-86033.rs rename to tests/ui/const-generics/issues/issue-86033.rs diff --git a/src/test/ui/const-generics/issues/issue-86530.rs b/tests/ui/const-generics/issues/issue-86530.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-86530.rs rename to tests/ui/const-generics/issues/issue-86530.rs diff --git a/src/test/ui/const-generics/issues/issue-86530.stderr b/tests/ui/const-generics/issues/issue-86530.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-86530.stderr rename to tests/ui/const-generics/issues/issue-86530.stderr diff --git a/src/test/ui/const-generics/issues/issue-86535-2.rs b/tests/ui/const-generics/issues/issue-86535-2.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-86535-2.rs rename to tests/ui/const-generics/issues/issue-86535-2.rs diff --git a/src/test/ui/const-generics/issues/issue-86535.rs b/tests/ui/const-generics/issues/issue-86535.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-86535.rs rename to tests/ui/const-generics/issues/issue-86535.rs diff --git a/src/test/ui/const-generics/issues/issue-86820.rs b/tests/ui/const-generics/issues/issue-86820.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-86820.rs rename to tests/ui/const-generics/issues/issue-86820.rs diff --git a/src/test/ui/const-generics/issues/issue-86820.stderr b/tests/ui/const-generics/issues/issue-86820.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-86820.stderr rename to tests/ui/const-generics/issues/issue-86820.stderr diff --git a/src/test/ui/const-generics/issues/issue-87076.rs b/tests/ui/const-generics/issues/issue-87076.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-87076.rs rename to tests/ui/const-generics/issues/issue-87076.rs diff --git a/src/test/ui/const-generics/issues/issue-87470.rs b/tests/ui/const-generics/issues/issue-87470.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-87470.rs rename to tests/ui/const-generics/issues/issue-87470.rs diff --git a/src/test/ui/const-generics/issues/issue-87493.rs b/tests/ui/const-generics/issues/issue-87493.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-87493.rs rename to tests/ui/const-generics/issues/issue-87493.rs diff --git a/src/test/ui/const-generics/issues/issue-87493.stderr b/tests/ui/const-generics/issues/issue-87493.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-87493.stderr rename to tests/ui/const-generics/issues/issue-87493.stderr diff --git a/src/test/ui/const-generics/issues/issue-87964.rs b/tests/ui/const-generics/issues/issue-87964.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-87964.rs rename to tests/ui/const-generics/issues/issue-87964.rs diff --git a/src/test/ui/const-generics/issues/issue-88119.rs b/tests/ui/const-generics/issues/issue-88119.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-88119.rs rename to tests/ui/const-generics/issues/issue-88119.rs diff --git a/src/test/ui/const-generics/issues/issue-88468.rs b/tests/ui/const-generics/issues/issue-88468.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-88468.rs rename to tests/ui/const-generics/issues/issue-88468.rs diff --git a/src/test/ui/const-generics/issues/issue-88997.rs b/tests/ui/const-generics/issues/issue-88997.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-88997.rs rename to tests/ui/const-generics/issues/issue-88997.rs diff --git a/src/test/ui/const-generics/issues/issue-88997.stderr b/tests/ui/const-generics/issues/issue-88997.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-88997.stderr rename to tests/ui/const-generics/issues/issue-88997.stderr diff --git a/src/test/ui/const-generics/issues/issue-89146.rs b/tests/ui/const-generics/issues/issue-89146.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-89146.rs rename to tests/ui/const-generics/issues/issue-89146.rs diff --git a/src/test/ui/const-generics/issues/issue-89304.rs b/tests/ui/const-generics/issues/issue-89304.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-89304.rs rename to tests/ui/const-generics/issues/issue-89304.rs diff --git a/src/test/ui/const-generics/issues/issue-89320.rs b/tests/ui/const-generics/issues/issue-89320.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-89320.rs rename to tests/ui/const-generics/issues/issue-89320.rs diff --git a/src/test/ui/const-generics/issues/issue-89334.rs b/tests/ui/const-generics/issues/issue-89334.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-89334.rs rename to tests/ui/const-generics/issues/issue-89334.rs diff --git a/src/test/ui/const-generics/issues/issue-90318.rs b/tests/ui/const-generics/issues/issue-90318.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-90318.rs rename to tests/ui/const-generics/issues/issue-90318.rs diff --git a/src/test/ui/const-generics/issues/issue-90318.stderr b/tests/ui/const-generics/issues/issue-90318.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-90318.stderr rename to tests/ui/const-generics/issues/issue-90318.stderr diff --git a/src/test/ui/const-generics/issues/issue-90364.rs b/tests/ui/const-generics/issues/issue-90364.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-90364.rs rename to tests/ui/const-generics/issues/issue-90364.rs diff --git a/src/test/ui/const-generics/issues/issue-90364.stderr b/tests/ui/const-generics/issues/issue-90364.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-90364.stderr rename to tests/ui/const-generics/issues/issue-90364.stderr diff --git a/src/test/ui/const-generics/issues/issue-90455.rs b/tests/ui/const-generics/issues/issue-90455.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-90455.rs rename to tests/ui/const-generics/issues/issue-90455.rs diff --git a/src/test/ui/const-generics/issues/issue-90455.stderr b/tests/ui/const-generics/issues/issue-90455.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-90455.stderr rename to tests/ui/const-generics/issues/issue-90455.stderr diff --git a/src/test/ui/const-generics/issues/issue-92186.rs b/tests/ui/const-generics/issues/issue-92186.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-92186.rs rename to tests/ui/const-generics/issues/issue-92186.rs diff --git a/src/test/ui/const-generics/issues/issue-96654.rs b/tests/ui/const-generics/issues/issue-96654.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-96654.rs rename to tests/ui/const-generics/issues/issue-96654.rs diff --git a/src/test/ui/const-generics/issues/issue-97278.rs b/tests/ui/const-generics/issues/issue-97278.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-97278.rs rename to tests/ui/const-generics/issues/issue-97278.rs diff --git a/src/test/ui/const-generics/issues/issue-97278.stderr b/tests/ui/const-generics/issues/issue-97278.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-97278.stderr rename to tests/ui/const-generics/issues/issue-97278.stderr diff --git a/src/test/ui/const-generics/issues/issue-97634.rs b/tests/ui/const-generics/issues/issue-97634.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-97634.rs rename to tests/ui/const-generics/issues/issue-97634.rs diff --git a/src/test/ui/const-generics/issues/issue-98629.rs b/tests/ui/const-generics/issues/issue-98629.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-98629.rs rename to tests/ui/const-generics/issues/issue-98629.rs diff --git a/src/test/ui/const-generics/issues/issue-98629.stderr b/tests/ui/const-generics/issues/issue-98629.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-98629.stderr rename to tests/ui/const-generics/issues/issue-98629.stderr diff --git a/src/test/ui/const-generics/issues/issue-99641.rs b/tests/ui/const-generics/issues/issue-99641.rs similarity index 100% rename from src/test/ui/const-generics/issues/issue-99641.rs rename to tests/ui/const-generics/issues/issue-99641.rs diff --git a/src/test/ui/const-generics/issues/issue-99641.stderr b/tests/ui/const-generics/issues/issue-99641.stderr similarity index 100% rename from src/test/ui/const-generics/issues/issue-99641.stderr rename to tests/ui/const-generics/issues/issue-99641.stderr diff --git a/src/test/ui/const-generics/late-bound-vars/in_closure.rs b/tests/ui/const-generics/late-bound-vars/in_closure.rs similarity index 100% rename from src/test/ui/const-generics/late-bound-vars/in_closure.rs rename to tests/ui/const-generics/late-bound-vars/in_closure.rs diff --git a/src/test/ui/const-generics/late-bound-vars/simple.rs b/tests/ui/const-generics/late-bound-vars/simple.rs similarity index 100% rename from src/test/ui/const-generics/late-bound-vars/simple.rs rename to tests/ui/const-generics/late-bound-vars/simple.rs diff --git a/src/test/ui/const-generics/legacy-const-generics-bad.rs b/tests/ui/const-generics/legacy-const-generics-bad.rs similarity index 100% rename from src/test/ui/const-generics/legacy-const-generics-bad.rs rename to tests/ui/const-generics/legacy-const-generics-bad.rs diff --git a/src/test/ui/const-generics/legacy-const-generics-bad.stderr b/tests/ui/const-generics/legacy-const-generics-bad.stderr similarity index 100% rename from src/test/ui/const-generics/legacy-const-generics-bad.stderr rename to tests/ui/const-generics/legacy-const-generics-bad.stderr diff --git a/src/test/ui/const-generics/legacy-const-generics.rs b/tests/ui/const-generics/legacy-const-generics.rs similarity index 100% rename from src/test/ui/const-generics/legacy-const-generics.rs rename to tests/ui/const-generics/legacy-const-generics.rs diff --git a/src/test/ui/const-generics/min_const_generics/assoc_const.rs b/tests/ui/const-generics/min_const_generics/assoc_const.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/assoc_const.rs rename to tests/ui/const-generics/min_const_generics/assoc_const.rs diff --git a/src/test/ui/const-generics/min_const_generics/complex-expression.rs b/tests/ui/const-generics/min_const_generics/complex-expression.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/complex-expression.rs rename to tests/ui/const-generics/min_const_generics/complex-expression.rs diff --git a/src/test/ui/const-generics/min_const_generics/complex-expression.stderr b/tests/ui/const-generics/min_const_generics/complex-expression.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/complex-expression.stderr rename to tests/ui/const-generics/min_const_generics/complex-expression.stderr diff --git a/src/test/ui/const-generics/min_const_generics/complex-types.rs b/tests/ui/const-generics/min_const_generics/complex-types.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/complex-types.rs rename to tests/ui/const-generics/min_const_generics/complex-types.rs diff --git a/src/test/ui/const-generics/min_const_generics/complex-types.stderr b/tests/ui/const-generics/min_const_generics/complex-types.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/complex-types.stderr rename to tests/ui/const-generics/min_const_generics/complex-types.stderr diff --git a/src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs b/tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs rename to tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.rs diff --git a/src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr b/tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr rename to tests/ui/const-generics/min_const_generics/const-evaluatable-unchecked.stderr diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs rename to tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.rs diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr rename to tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces-without-turbofish.stderr diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs rename to tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.rs diff --git a/src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr b/tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr rename to tests/ui/const-generics/min_const_generics/const-expression-suggest-missing-braces.stderr diff --git a/src/test/ui/const-generics/min_const_generics/const_default_first.rs b/tests/ui/const-generics/min_const_generics/const_default_first.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const_default_first.rs rename to tests/ui/const-generics/min_const_generics/const_default_first.rs diff --git a/src/test/ui/const-generics/min_const_generics/const_default_first.stderr b/tests/ui/const-generics/min_const_generics/const_default_first.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const_default_first.stderr rename to tests/ui/const-generics/min_const_generics/const_default_first.stderr diff --git a/src/test/ui/const-generics/min_const_generics/const_fn_in_generics.rs b/tests/ui/const-generics/min_const_generics/const_fn_in_generics.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/const_fn_in_generics.rs rename to tests/ui/const-generics/min_const_generics/const_fn_in_generics.rs diff --git a/src/test/ui/const-generics/min_const_generics/default_function_param.rs b/tests/ui/const-generics/min_const_generics/default_function_param.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/default_function_param.rs rename to tests/ui/const-generics/min_const_generics/default_function_param.rs diff --git a/src/test/ui/const-generics/min_const_generics/default_function_param.stderr b/tests/ui/const-generics/min_const_generics/default_function_param.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/default_function_param.stderr rename to tests/ui/const-generics/min_const_generics/default_function_param.stderr diff --git a/src/test/ui/const-generics/min_const_generics/default_trait_param.rs b/tests/ui/const-generics/min_const_generics/default_trait_param.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/default_trait_param.rs rename to tests/ui/const-generics/min_const_generics/default_trait_param.rs diff --git a/src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs b/tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs rename to tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.rs diff --git a/src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr b/tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr rename to tests/ui/const-generics/min_const_generics/forbid-non-static-lifetimes.stderr diff --git a/src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs b/tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs rename to tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.rs diff --git a/src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr b/tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr rename to tests/ui/const-generics/min_const_generics/forbid-self-no-normalize.stderr diff --git a/src/test/ui/const-generics/min_const_generics/inferred_const.rs b/tests/ui/const-generics/min_const_generics/inferred_const.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/inferred_const.rs rename to tests/ui/const-generics/min_const_generics/inferred_const.rs diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr b/tests/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr rename to tests/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr b/tests/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr rename to tests/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.rs b/tests/ui/const-generics/min_const_generics/invalid-patterns.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/invalid-patterns.rs rename to tests/ui/const-generics/min_const_generics/invalid-patterns.rs diff --git a/src/test/ui/const-generics/min_const_generics/macro-fail.rs b/tests/ui/const-generics/min_const_generics/macro-fail.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/macro-fail.rs rename to tests/ui/const-generics/min_const_generics/macro-fail.rs diff --git a/src/test/ui/const-generics/min_const_generics/macro-fail.stderr b/tests/ui/const-generics/min_const_generics/macro-fail.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/macro-fail.stderr rename to tests/ui/const-generics/min_const_generics/macro-fail.stderr diff --git a/src/test/ui/const-generics/min_const_generics/macro.rs b/tests/ui/const-generics/min_const_generics/macro.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/macro.rs rename to tests/ui/const-generics/min_const_generics/macro.rs diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.rs b/tests/ui/const-generics/min_const_generics/self-ty-in-const-1.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.rs rename to tests/ui/const-generics/min_const_generics/self-ty-in-const-1.rs diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr b/tests/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr rename to tests/ui/const-generics/min_const_generics/self-ty-in-const-1.stderr diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.rs b/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.rs rename to tests/ui/const-generics/min_const_generics/self-ty-in-const-2.rs diff --git a/src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr b/tests/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr similarity index 100% rename from src/test/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr rename to tests/ui/const-generics/min_const_generics/self-ty-in-const-2.stderr diff --git a/src/test/ui/const-generics/min_const_generics/type_and_const_defaults.rs b/tests/ui/const-generics/min_const_generics/type_and_const_defaults.rs similarity index 100% rename from src/test/ui/const-generics/min_const_generics/type_and_const_defaults.rs rename to tests/ui/const-generics/min_const_generics/type_and_const_defaults.rs diff --git a/src/test/ui/const-generics/nested-type.full.stderr b/tests/ui/const-generics/nested-type.full.stderr similarity index 100% rename from src/test/ui/const-generics/nested-type.full.stderr rename to tests/ui/const-generics/nested-type.full.stderr diff --git a/src/test/ui/const-generics/nested-type.min.stderr b/tests/ui/const-generics/nested-type.min.stderr similarity index 100% rename from src/test/ui/const-generics/nested-type.min.stderr rename to tests/ui/const-generics/nested-type.min.stderr diff --git a/src/test/ui/const-generics/nested-type.rs b/tests/ui/const-generics/nested-type.rs similarity index 100% rename from src/test/ui/const-generics/nested-type.rs rename to tests/ui/const-generics/nested-type.rs diff --git a/src/test/ui/const-generics/occurs-check/bind-param.rs b/tests/ui/const-generics/occurs-check/bind-param.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/bind-param.rs rename to tests/ui/const-generics/occurs-check/bind-param.rs diff --git a/src/test/ui/const-generics/occurs-check/unify-fixpoint.rs b/tests/ui/const-generics/occurs-check/unify-fixpoint.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unify-fixpoint.rs rename to tests/ui/const-generics/occurs-check/unify-fixpoint.rs diff --git a/src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr b/tests/ui/const-generics/occurs-check/unify-fixpoint.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr rename to tests/ui/const-generics/occurs-check/unify-fixpoint.stderr diff --git a/src/test/ui/const-generics/occurs-check/unify-n-nplusone.rs b/tests/ui/const-generics/occurs-check/unify-n-nplusone.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unify-n-nplusone.rs rename to tests/ui/const-generics/occurs-check/unify-n-nplusone.rs diff --git a/src/test/ui/const-generics/occurs-check/unify-n-nplusone.stderr b/tests/ui/const-generics/occurs-check/unify-n-nplusone.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unify-n-nplusone.stderr rename to tests/ui/const-generics/occurs-check/unify-n-nplusone.stderr diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-1.rs b/tests/ui/const-generics/occurs-check/unused-substs-1.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-1.rs rename to tests/ui/const-generics/occurs-check/unused-substs-1.rs diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-1.stderr b/tests/ui/const-generics/occurs-check/unused-substs-1.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-1.stderr rename to tests/ui/const-generics/occurs-check/unused-substs-1.stderr diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-2.rs b/tests/ui/const-generics/occurs-check/unused-substs-2.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-2.rs rename to tests/ui/const-generics/occurs-check/unused-substs-2.rs diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-2.stderr b/tests/ui/const-generics/occurs-check/unused-substs-2.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-2.stderr rename to tests/ui/const-generics/occurs-check/unused-substs-2.stderr diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-3.rs b/tests/ui/const-generics/occurs-check/unused-substs-3.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-3.rs rename to tests/ui/const-generics/occurs-check/unused-substs-3.rs diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-3.stderr b/tests/ui/const-generics/occurs-check/unused-substs-3.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-3.stderr rename to tests/ui/const-generics/occurs-check/unused-substs-3.stderr diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-4.rs b/tests/ui/const-generics/occurs-check/unused-substs-4.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-4.rs rename to tests/ui/const-generics/occurs-check/unused-substs-4.rs diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-4.stderr b/tests/ui/const-generics/occurs-check/unused-substs-4.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-4.stderr rename to tests/ui/const-generics/occurs-check/unused-substs-4.stderr diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-5.rs b/tests/ui/const-generics/occurs-check/unused-substs-5.rs similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-5.rs rename to tests/ui/const-generics/occurs-check/unused-substs-5.rs diff --git a/src/test/ui/const-generics/occurs-check/unused-substs-5.stderr b/tests/ui/const-generics/occurs-check/unused-substs-5.stderr similarity index 100% rename from src/test/ui/const-generics/occurs-check/unused-substs-5.stderr rename to tests/ui/const-generics/occurs-check/unused-substs-5.stderr diff --git a/src/test/ui/const-generics/outer-lifetime-in-const-generic-default.rs b/tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs similarity index 100% rename from src/test/ui/const-generics/outer-lifetime-in-const-generic-default.rs rename to tests/ui/const-generics/outer-lifetime-in-const-generic-default.rs diff --git a/src/test/ui/const-generics/outer-lifetime-in-const-generic-default.stderr b/tests/ui/const-generics/outer-lifetime-in-const-generic-default.stderr similarity index 100% rename from src/test/ui/const-generics/outer-lifetime-in-const-generic-default.stderr rename to tests/ui/const-generics/outer-lifetime-in-const-generic-default.stderr diff --git a/src/test/ui/const-generics/overlapping_impls.rs b/tests/ui/const-generics/overlapping_impls.rs similarity index 100% rename from src/test/ui/const-generics/overlapping_impls.rs rename to tests/ui/const-generics/overlapping_impls.rs diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr similarity index 100% rename from src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr rename to tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.full.stderr diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr similarity index 100% rename from src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr rename to tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.min.stderr diff --git a/src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs b/tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs similarity index 100% rename from src/test/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs rename to tests/ui/const-generics/params-in-ct-in-ty-param-lazy-norm.rs diff --git a/src/test/ui/const-generics/parent_generics_of_encoding.rs b/tests/ui/const-generics/parent_generics_of_encoding.rs similarity index 100% rename from src/test/ui/const-generics/parent_generics_of_encoding.rs rename to tests/ui/const-generics/parent_generics_of_encoding.rs diff --git a/src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.rs b/tests/ui/const-generics/parent_generics_of_encoding_impl_trait.rs similarity index 100% rename from src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.rs rename to tests/ui/const-generics/parent_generics_of_encoding_impl_trait.rs diff --git a/src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr b/tests/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr similarity index 100% rename from src/test/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr rename to tests/ui/const-generics/parent_generics_of_encoding_impl_trait.stderr diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs rename to tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.rs diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr rename to tests/ui/const-generics/parser-error-recovery/issue-89013-no-assoc.stderr diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs rename to tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.rs diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr rename to tests/ui/const-generics/parser-error-recovery/issue-89013-no-kw.stderr diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-type.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013-type.rs similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013-type.rs rename to tests/ui/const-generics/parser-error-recovery/issue-89013-type.rs diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013-type.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013-type.stderr similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013-type.stderr rename to tests/ui/const-generics/parser-error-recovery/issue-89013-type.stderr diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013.rs b/tests/ui/const-generics/parser-error-recovery/issue-89013.rs similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013.rs rename to tests/ui/const-generics/parser-error-recovery/issue-89013.rs diff --git a/src/test/ui/const-generics/parser-error-recovery/issue-89013.stderr b/tests/ui/const-generics/parser-error-recovery/issue-89013.stderr similarity index 100% rename from src/test/ui/const-generics/parser-error-recovery/issue-89013.stderr rename to tests/ui/const-generics/parser-error-recovery/issue-89013.stderr diff --git a/src/test/ui/const-generics/projection-as-arg-const.rs b/tests/ui/const-generics/projection-as-arg-const.rs similarity index 100% rename from src/test/ui/const-generics/projection-as-arg-const.rs rename to tests/ui/const-generics/projection-as-arg-const.rs diff --git a/src/test/ui/const-generics/projection-as-arg-const.stderr b/tests/ui/const-generics/projection-as-arg-const.stderr similarity index 100% rename from src/test/ui/const-generics/projection-as-arg-const.stderr rename to tests/ui/const-generics/projection-as-arg-const.stderr diff --git a/src/test/ui/const-generics/promotion.rs b/tests/ui/const-generics/promotion.rs similarity index 100% rename from src/test/ui/const-generics/promotion.rs rename to tests/ui/const-generics/promotion.rs diff --git a/src/test/ui/const-generics/raw-ptr-const-param-deref.full.stderr b/tests/ui/const-generics/raw-ptr-const-param-deref.full.stderr similarity index 100% rename from src/test/ui/const-generics/raw-ptr-const-param-deref.full.stderr rename to tests/ui/const-generics/raw-ptr-const-param-deref.full.stderr diff --git a/src/test/ui/const-generics/raw-ptr-const-param-deref.min.stderr b/tests/ui/const-generics/raw-ptr-const-param-deref.min.stderr similarity index 100% rename from src/test/ui/const-generics/raw-ptr-const-param-deref.min.stderr rename to tests/ui/const-generics/raw-ptr-const-param-deref.min.stderr diff --git a/src/test/ui/const-generics/raw-ptr-const-param-deref.rs b/tests/ui/const-generics/raw-ptr-const-param-deref.rs similarity index 100% rename from src/test/ui/const-generics/raw-ptr-const-param-deref.rs rename to tests/ui/const-generics/raw-ptr-const-param-deref.rs diff --git a/src/test/ui/const-generics/raw-ptr-const-param.full.stderr b/tests/ui/const-generics/raw-ptr-const-param.full.stderr similarity index 100% rename from src/test/ui/const-generics/raw-ptr-const-param.full.stderr rename to tests/ui/const-generics/raw-ptr-const-param.full.stderr diff --git a/src/test/ui/const-generics/raw-ptr-const-param.min.stderr b/tests/ui/const-generics/raw-ptr-const-param.min.stderr similarity index 100% rename from src/test/ui/const-generics/raw-ptr-const-param.min.stderr rename to tests/ui/const-generics/raw-ptr-const-param.min.stderr diff --git a/src/test/ui/const-generics/raw-ptr-const-param.rs b/tests/ui/const-generics/raw-ptr-const-param.rs similarity index 100% rename from src/test/ui/const-generics/raw-ptr-const-param.rs rename to tests/ui/const-generics/raw-ptr-const-param.rs diff --git a/src/test/ui/const-generics/slice-const-param-mismatch.full.stderr b/tests/ui/const-generics/slice-const-param-mismatch.full.stderr similarity index 100% rename from src/test/ui/const-generics/slice-const-param-mismatch.full.stderr rename to tests/ui/const-generics/slice-const-param-mismatch.full.stderr diff --git a/src/test/ui/const-generics/slice-const-param-mismatch.min.stderr b/tests/ui/const-generics/slice-const-param-mismatch.min.stderr similarity index 100% rename from src/test/ui/const-generics/slice-const-param-mismatch.min.stderr rename to tests/ui/const-generics/slice-const-param-mismatch.min.stderr diff --git a/src/test/ui/const-generics/slice-const-param-mismatch.rs b/tests/ui/const-generics/slice-const-param-mismatch.rs similarity index 100% rename from src/test/ui/const-generics/slice-const-param-mismatch.rs rename to tests/ui/const-generics/slice-const-param-mismatch.rs diff --git a/src/test/ui/const-generics/slice-const-param.rs b/tests/ui/const-generics/slice-const-param.rs similarity index 100% rename from src/test/ui/const-generics/slice-const-param.rs rename to tests/ui/const-generics/slice-const-param.rs diff --git a/src/test/ui/const-generics/sneaky-array-repeat-expr.rs b/tests/ui/const-generics/sneaky-array-repeat-expr.rs similarity index 100% rename from src/test/ui/const-generics/sneaky-array-repeat-expr.rs rename to tests/ui/const-generics/sneaky-array-repeat-expr.rs diff --git a/src/test/ui/const-generics/sneaky-array-repeat-expr.stderr b/tests/ui/const-generics/sneaky-array-repeat-expr.stderr similarity index 100% rename from src/test/ui/const-generics/sneaky-array-repeat-expr.stderr rename to tests/ui/const-generics/sneaky-array-repeat-expr.stderr diff --git a/src/test/ui/const-generics/std/const-generics-range.min.stderr b/tests/ui/const-generics/std/const-generics-range.min.stderr similarity index 100% rename from src/test/ui/const-generics/std/const-generics-range.min.stderr rename to tests/ui/const-generics/std/const-generics-range.min.stderr diff --git a/src/test/ui/const-generics/std/const-generics-range.rs b/tests/ui/const-generics/std/const-generics-range.rs similarity index 100% rename from src/test/ui/const-generics/std/const-generics-range.rs rename to tests/ui/const-generics/std/const-generics-range.rs diff --git a/src/test/ui/const-generics/struct-with-invalid-const-param.rs b/tests/ui/const-generics/struct-with-invalid-const-param.rs similarity index 100% rename from src/test/ui/const-generics/struct-with-invalid-const-param.rs rename to tests/ui/const-generics/struct-with-invalid-const-param.rs diff --git a/src/test/ui/const-generics/struct-with-invalid-const-param.stderr b/tests/ui/const-generics/struct-with-invalid-const-param.stderr similarity index 100% rename from src/test/ui/const-generics/struct-with-invalid-const-param.stderr rename to tests/ui/const-generics/struct-with-invalid-const-param.stderr diff --git a/src/test/ui/const-generics/suggest_const_for_array.rs b/tests/ui/const-generics/suggest_const_for_array.rs similarity index 100% rename from src/test/ui/const-generics/suggest_const_for_array.rs rename to tests/ui/const-generics/suggest_const_for_array.rs diff --git a/src/test/ui/const-generics/suggest_const_for_array.stderr b/tests/ui/const-generics/suggest_const_for_array.stderr similarity index 100% rename from src/test/ui/const-generics/suggest_const_for_array.stderr rename to tests/ui/const-generics/suggest_const_for_array.stderr diff --git a/src/test/ui/const-generics/trait-const-args.rs b/tests/ui/const-generics/trait-const-args.rs similarity index 100% rename from src/test/ui/const-generics/trait-const-args.rs rename to tests/ui/const-generics/trait-const-args.rs diff --git a/src/test/ui/const-generics/transmute-const-param-static-reference.min.stderr b/tests/ui/const-generics/transmute-const-param-static-reference.min.stderr similarity index 100% rename from src/test/ui/const-generics/transmute-const-param-static-reference.min.stderr rename to tests/ui/const-generics/transmute-const-param-static-reference.min.stderr diff --git a/src/test/ui/const-generics/transmute-const-param-static-reference.rs b/tests/ui/const-generics/transmute-const-param-static-reference.rs similarity index 100% rename from src/test/ui/const-generics/transmute-const-param-static-reference.rs rename to tests/ui/const-generics/transmute-const-param-static-reference.rs diff --git a/src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs b/tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs similarity index 100% rename from src/test/ui/const-generics/transparent-maybeunit-array-wrapper.rs rename to tests/ui/const-generics/transparent-maybeunit-array-wrapper.rs diff --git a/src/test/ui/const-generics/try_unify_ignore_lifetimes.rs b/tests/ui/const-generics/try_unify_ignore_lifetimes.rs similarity index 100% rename from src/test/ui/const-generics/try_unify_ignore_lifetimes.rs rename to tests/ui/const-generics/try_unify_ignore_lifetimes.rs diff --git a/src/test/ui/const-generics/two_matching_preds.rs b/tests/ui/const-generics/two_matching_preds.rs similarity index 100% rename from src/test/ui/const-generics/two_matching_preds.rs rename to tests/ui/const-generics/two_matching_preds.rs diff --git a/src/test/ui/const-generics/type-after-const-ok.rs b/tests/ui/const-generics/type-after-const-ok.rs similarity index 100% rename from src/test/ui/const-generics/type-after-const-ok.rs rename to tests/ui/const-generics/type-after-const-ok.rs diff --git a/src/test/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs b/tests/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs rename to tests/ui/const-generics/type-dependent/auxiliary/type_dependent_lib.rs diff --git a/src/test/ui/const-generics/type-dependent/const-arg-in-const-arg.rs b/tests/ui/const-generics/type-dependent/const-arg-in-const-arg.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/const-arg-in-const-arg.rs rename to tests/ui/const-generics/type-dependent/const-arg-in-const-arg.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-61936.rs b/tests/ui/const-generics/type-dependent/issue-61936.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-61936.rs rename to tests/ui/const-generics/type-dependent/issue-61936.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-63695.rs b/tests/ui/const-generics/type-dependent/issue-63695.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-63695.rs rename to tests/ui/const-generics/type-dependent/issue-63695.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-67144-1.rs b/tests/ui/const-generics/type-dependent/issue-67144-1.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-67144-1.rs rename to tests/ui/const-generics/type-dependent/issue-67144-1.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-67144-2.rs b/tests/ui/const-generics/type-dependent/issue-67144-2.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-67144-2.rs rename to tests/ui/const-generics/type-dependent/issue-67144-2.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-69816.rs b/tests/ui/const-generics/type-dependent/issue-69816.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-69816.rs rename to tests/ui/const-generics/type-dependent/issue-69816.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-70217.rs b/tests/ui/const-generics/type-dependent/issue-70217.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-70217.rs rename to tests/ui/const-generics/type-dependent/issue-70217.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-70507.rs b/tests/ui/const-generics/type-dependent/issue-70507.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-70507.rs rename to tests/ui/const-generics/type-dependent/issue-70507.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-70586.rs b/tests/ui/const-generics/type-dependent/issue-70586.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-70586.rs rename to tests/ui/const-generics/type-dependent/issue-70586.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-71348.min.stderr b/tests/ui/const-generics/type-dependent/issue-71348.min.stderr similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-71348.min.stderr rename to tests/ui/const-generics/type-dependent/issue-71348.min.stderr diff --git a/src/test/ui/const-generics/type-dependent/issue-71348.rs b/tests/ui/const-generics/type-dependent/issue-71348.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-71348.rs rename to tests/ui/const-generics/type-dependent/issue-71348.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-71382.rs b/tests/ui/const-generics/type-dependent/issue-71382.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-71382.rs rename to tests/ui/const-generics/type-dependent/issue-71382.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-71382.stderr b/tests/ui/const-generics/type-dependent/issue-71382.stderr similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-71382.stderr rename to tests/ui/const-generics/type-dependent/issue-71382.stderr diff --git a/src/test/ui/const-generics/type-dependent/issue-71805.rs b/tests/ui/const-generics/type-dependent/issue-71805.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-71805.rs rename to tests/ui/const-generics/type-dependent/issue-71805.rs diff --git a/src/test/ui/const-generics/type-dependent/issue-73730.rs b/tests/ui/const-generics/type-dependent/issue-73730.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/issue-73730.rs rename to tests/ui/const-generics/type-dependent/issue-73730.rs diff --git a/src/test/ui/const-generics/type-dependent/non-local.rs b/tests/ui/const-generics/type-dependent/non-local.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/non-local.rs rename to tests/ui/const-generics/type-dependent/non-local.rs diff --git a/src/test/ui/const-generics/type-dependent/qpath.rs b/tests/ui/const-generics/type-dependent/qpath.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/qpath.rs rename to tests/ui/const-generics/type-dependent/qpath.rs diff --git a/src/test/ui/const-generics/type-dependent/simple.rs b/tests/ui/const-generics/type-dependent/simple.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/simple.rs rename to tests/ui/const-generics/type-dependent/simple.rs diff --git a/src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr b/tests/ui/const-generics/type-dependent/type-mismatch.full.stderr similarity index 100% rename from src/test/ui/const-generics/type-dependent/type-mismatch.full.stderr rename to tests/ui/const-generics/type-dependent/type-mismatch.full.stderr diff --git a/src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr b/tests/ui/const-generics/type-dependent/type-mismatch.min.stderr similarity index 100% rename from src/test/ui/const-generics/type-dependent/type-mismatch.min.stderr rename to tests/ui/const-generics/type-dependent/type-mismatch.min.stderr diff --git a/src/test/ui/const-generics/type-dependent/type-mismatch.rs b/tests/ui/const-generics/type-dependent/type-mismatch.rs similarity index 100% rename from src/test/ui/const-generics/type-dependent/type-mismatch.rs rename to tests/ui/const-generics/type-dependent/type-mismatch.rs diff --git a/src/test/ui/const-generics/type_mismatch.rs b/tests/ui/const-generics/type_mismatch.rs similarity index 100% rename from src/test/ui/const-generics/type_mismatch.rs rename to tests/ui/const-generics/type_mismatch.rs diff --git a/src/test/ui/const-generics/type_mismatch.stderr b/tests/ui/const-generics/type_mismatch.stderr similarity index 100% rename from src/test/ui/const-generics/type_mismatch.stderr rename to tests/ui/const-generics/type_mismatch.stderr diff --git a/src/test/ui/const-generics/type_not_in_scope.rs b/tests/ui/const-generics/type_not_in_scope.rs similarity index 100% rename from src/test/ui/const-generics/type_not_in_scope.rs rename to tests/ui/const-generics/type_not_in_scope.rs diff --git a/src/test/ui/const-generics/type_not_in_scope.stderr b/tests/ui/const-generics/type_not_in_scope.stderr similarity index 100% rename from src/test/ui/const-generics/type_not_in_scope.stderr rename to tests/ui/const-generics/type_not_in_scope.stderr diff --git a/src/test/ui/const-generics/type_of_anon_const.rs b/tests/ui/const-generics/type_of_anon_const.rs similarity index 100% rename from src/test/ui/const-generics/type_of_anon_const.rs rename to tests/ui/const-generics/type_of_anon_const.rs diff --git a/src/test/ui/const-generics/types-mismatch-const-args.full.stderr b/tests/ui/const-generics/types-mismatch-const-args.full.stderr similarity index 100% rename from src/test/ui/const-generics/types-mismatch-const-args.full.stderr rename to tests/ui/const-generics/types-mismatch-const-args.full.stderr diff --git a/src/test/ui/const-generics/types-mismatch-const-args.min.stderr b/tests/ui/const-generics/types-mismatch-const-args.min.stderr similarity index 100% rename from src/test/ui/const-generics/types-mismatch-const-args.min.stderr rename to tests/ui/const-generics/types-mismatch-const-args.min.stderr diff --git a/src/test/ui/const-generics/types-mismatch-const-args.rs b/tests/ui/const-generics/types-mismatch-const-args.rs similarity index 100% rename from src/test/ui/const-generics/types-mismatch-const-args.rs rename to tests/ui/const-generics/types-mismatch-const-args.rs diff --git a/src/test/ui/const-generics/unify_with_nested_expr.rs b/tests/ui/const-generics/unify_with_nested_expr.rs similarity index 100% rename from src/test/ui/const-generics/unify_with_nested_expr.rs rename to tests/ui/const-generics/unify_with_nested_expr.rs diff --git a/src/test/ui/const-generics/unify_with_nested_expr.stderr b/tests/ui/const-generics/unify_with_nested_expr.stderr similarity index 100% rename from src/test/ui/const-generics/unify_with_nested_expr.stderr rename to tests/ui/const-generics/unify_with_nested_expr.stderr diff --git a/src/test/ui/const-generics/uninferred-consts-during-codegen-1.rs b/tests/ui/const-generics/uninferred-consts-during-codegen-1.rs similarity index 100% rename from src/test/ui/const-generics/uninferred-consts-during-codegen-1.rs rename to tests/ui/const-generics/uninferred-consts-during-codegen-1.rs diff --git a/src/test/ui/const-generics/uninferred-consts-during-codegen-2.rs b/tests/ui/const-generics/uninferred-consts-during-codegen-2.rs similarity index 100% rename from src/test/ui/const-generics/uninferred-consts-during-codegen-2.rs rename to tests/ui/const-generics/uninferred-consts-during-codegen-2.rs diff --git a/src/test/ui/const-generics/unknown_adt.rs b/tests/ui/const-generics/unknown_adt.rs similarity index 100% rename from src/test/ui/const-generics/unknown_adt.rs rename to tests/ui/const-generics/unknown_adt.rs diff --git a/src/test/ui/const-generics/unknown_adt.stderr b/tests/ui/const-generics/unknown_adt.stderr similarity index 100% rename from src/test/ui/const-generics/unknown_adt.stderr rename to tests/ui/const-generics/unknown_adt.stderr diff --git a/src/test/ui/const-generics/unused-const-param.rs b/tests/ui/const-generics/unused-const-param.rs similarity index 100% rename from src/test/ui/const-generics/unused-const-param.rs rename to tests/ui/const-generics/unused-const-param.rs diff --git a/src/test/ui/const-generics/unused-type-param-suggestion.rs b/tests/ui/const-generics/unused-type-param-suggestion.rs similarity index 100% rename from src/test/ui/const-generics/unused-type-param-suggestion.rs rename to tests/ui/const-generics/unused-type-param-suggestion.rs diff --git a/src/test/ui/const-generics/unused-type-param-suggestion.stderr b/tests/ui/const-generics/unused-type-param-suggestion.stderr similarity index 100% rename from src/test/ui/const-generics/unused-type-param-suggestion.stderr rename to tests/ui/const-generics/unused-type-param-suggestion.stderr diff --git a/src/test/ui/const-generics/unused_braces.fixed b/tests/ui/const-generics/unused_braces.fixed similarity index 100% rename from src/test/ui/const-generics/unused_braces.fixed rename to tests/ui/const-generics/unused_braces.fixed diff --git a/src/test/ui/const-generics/unused_braces.full.fixed b/tests/ui/const-generics/unused_braces.full.fixed similarity index 100% rename from src/test/ui/const-generics/unused_braces.full.fixed rename to tests/ui/const-generics/unused_braces.full.fixed diff --git a/src/test/ui/const-generics/unused_braces.min.fixed b/tests/ui/const-generics/unused_braces.min.fixed similarity index 100% rename from src/test/ui/const-generics/unused_braces.min.fixed rename to tests/ui/const-generics/unused_braces.min.fixed diff --git a/src/test/ui/const-generics/unused_braces.rs b/tests/ui/const-generics/unused_braces.rs similarity index 100% rename from src/test/ui/const-generics/unused_braces.rs rename to tests/ui/const-generics/unused_braces.rs diff --git a/src/test/ui/const-generics/unused_braces.stderr b/tests/ui/const-generics/unused_braces.stderr similarity index 100% rename from src/test/ui/const-generics/unused_braces.stderr rename to tests/ui/const-generics/unused_braces.stderr diff --git a/src/test/ui/const-generics/where-clauses.rs b/tests/ui/const-generics/where-clauses.rs similarity index 100% rename from src/test/ui/const-generics/where-clauses.rs rename to tests/ui/const-generics/where-clauses.rs diff --git a/src/test/ui/const-ptr/allowed_slices.rs b/tests/ui/const-ptr/allowed_slices.rs similarity index 100% rename from src/test/ui/const-ptr/allowed_slices.rs rename to tests/ui/const-ptr/allowed_slices.rs diff --git a/src/test/ui/const-ptr/forbidden_slices.rs b/tests/ui/const-ptr/forbidden_slices.rs similarity index 100% rename from src/test/ui/const-ptr/forbidden_slices.rs rename to tests/ui/const-ptr/forbidden_slices.rs diff --git a/src/test/ui/const-ptr/forbidden_slices.stderr b/tests/ui/const-ptr/forbidden_slices.stderr similarity index 100% rename from src/test/ui/const-ptr/forbidden_slices.stderr rename to tests/ui/const-ptr/forbidden_slices.stderr diff --git a/src/test/ui/const-ptr/out_of_bounds_read.rs b/tests/ui/const-ptr/out_of_bounds_read.rs similarity index 100% rename from src/test/ui/const-ptr/out_of_bounds_read.rs rename to tests/ui/const-ptr/out_of_bounds_read.rs diff --git a/src/test/ui/const-ptr/out_of_bounds_read.stderr b/tests/ui/const-ptr/out_of_bounds_read.stderr similarity index 100% rename from src/test/ui/const-ptr/out_of_bounds_read.stderr rename to tests/ui/const-ptr/out_of_bounds_read.stderr diff --git a/src/test/ui/const_prop/ice-assert-fail-div-by-zero.rs b/tests/ui/const_prop/ice-assert-fail-div-by-zero.rs similarity index 100% rename from src/test/ui/const_prop/ice-assert-fail-div-by-zero.rs rename to tests/ui/const_prop/ice-assert-fail-div-by-zero.rs diff --git a/src/test/ui/const_prop/ice-assert-fail-div-by-zero.stderr b/tests/ui/const_prop/ice-assert-fail-div-by-zero.stderr similarity index 100% rename from src/test/ui/const_prop/ice-assert-fail-div-by-zero.stderr rename to tests/ui/const_prop/ice-assert-fail-div-by-zero.stderr diff --git a/src/test/ui/const_prop/inline_spans.rs b/tests/ui/const_prop/inline_spans.rs similarity index 100% rename from src/test/ui/const_prop/inline_spans.rs rename to tests/ui/const_prop/inline_spans.rs diff --git a/src/test/ui/const_prop/inline_spans_lint_attribute.rs b/tests/ui/const_prop/inline_spans_lint_attribute.rs similarity index 100% rename from src/test/ui/const_prop/inline_spans_lint_attribute.rs rename to tests/ui/const_prop/inline_spans_lint_attribute.rs diff --git a/src/test/ui/const_prop/issue-102553.rs b/tests/ui/const_prop/issue-102553.rs similarity index 100% rename from src/test/ui/const_prop/issue-102553.rs rename to tests/ui/const_prop/issue-102553.rs diff --git a/src/test/ui/constructor-lifetime-args.rs b/tests/ui/constructor-lifetime-args.rs similarity index 100% rename from src/test/ui/constructor-lifetime-args.rs rename to tests/ui/constructor-lifetime-args.rs diff --git a/src/test/ui/constructor-lifetime-args.stderr b/tests/ui/constructor-lifetime-args.stderr similarity index 100% rename from src/test/ui/constructor-lifetime-args.stderr rename to tests/ui/constructor-lifetime-args.stderr diff --git a/src/test/ui/consts/array-literal-index-oob.rs b/tests/ui/consts/array-literal-index-oob.rs similarity index 100% rename from src/test/ui/consts/array-literal-index-oob.rs rename to tests/ui/consts/array-literal-index-oob.rs diff --git a/src/test/ui/consts/array-literal-index-oob.stderr b/tests/ui/consts/array-literal-index-oob.stderr similarity index 100% rename from src/test/ui/consts/array-literal-index-oob.stderr rename to tests/ui/consts/array-literal-index-oob.stderr diff --git a/src/test/ui/consts/array-to-slice-cast.rs b/tests/ui/consts/array-to-slice-cast.rs similarity index 100% rename from src/test/ui/consts/array-to-slice-cast.rs rename to tests/ui/consts/array-to-slice-cast.rs diff --git a/src/test/ui/consts/assert-type-intrinsics.rs b/tests/ui/consts/assert-type-intrinsics.rs similarity index 100% rename from src/test/ui/consts/assert-type-intrinsics.rs rename to tests/ui/consts/assert-type-intrinsics.rs diff --git a/src/test/ui/consts/assert-type-intrinsics.stderr b/tests/ui/consts/assert-type-intrinsics.stderr similarity index 100% rename from src/test/ui/consts/assert-type-intrinsics.stderr rename to tests/ui/consts/assert-type-intrinsics.stderr diff --git a/src/test/ui/consts/assoc-const.rs b/tests/ui/consts/assoc-const.rs similarity index 100% rename from src/test/ui/consts/assoc-const.rs rename to tests/ui/consts/assoc-const.rs diff --git a/src/test/ui/consts/assoc_const_generic_impl.rs b/tests/ui/consts/assoc_const_generic_impl.rs similarity index 100% rename from src/test/ui/consts/assoc_const_generic_impl.rs rename to tests/ui/consts/assoc_const_generic_impl.rs diff --git a/src/test/ui/consts/assoc_const_generic_impl.stderr b/tests/ui/consts/assoc_const_generic_impl.stderr similarity index 100% rename from src/test/ui/consts/assoc_const_generic_impl.stderr rename to tests/ui/consts/assoc_const_generic_impl.stderr diff --git a/src/test/ui/consts/associated_const_generic.rs b/tests/ui/consts/associated_const_generic.rs similarity index 100% rename from src/test/ui/consts/associated_const_generic.rs rename to tests/ui/consts/associated_const_generic.rs diff --git a/src/test/ui/consts/async-block.rs b/tests/ui/consts/async-block.rs similarity index 100% rename from src/test/ui/consts/async-block.rs rename to tests/ui/consts/async-block.rs diff --git a/src/test/ui/consts/async-block.with_feature.stderr b/tests/ui/consts/async-block.with_feature.stderr similarity index 100% rename from src/test/ui/consts/async-block.with_feature.stderr rename to tests/ui/consts/async-block.with_feature.stderr diff --git a/src/test/ui/consts/async-block.without_feature.stderr b/tests/ui/consts/async-block.without_feature.stderr similarity index 100% rename from src/test/ui/consts/async-block.without_feature.stderr rename to tests/ui/consts/async-block.without_feature.stderr diff --git a/src/test/ui/consts/auxiliary/cci_const_block.rs b/tests/ui/consts/auxiliary/cci_const_block.rs similarity index 100% rename from src/test/ui/consts/auxiliary/cci_const_block.rs rename to tests/ui/consts/auxiliary/cci_const_block.rs diff --git a/src/test/ui/consts/auxiliary/const_fn_lib.rs b/tests/ui/consts/auxiliary/const_fn_lib.rs similarity index 100% rename from src/test/ui/consts/auxiliary/const_fn_lib.rs rename to tests/ui/consts/auxiliary/const_fn_lib.rs diff --git a/src/test/ui/consts/auxiliary/external_macro.rs b/tests/ui/consts/auxiliary/external_macro.rs similarity index 100% rename from src/test/ui/consts/auxiliary/external_macro.rs rename to tests/ui/consts/auxiliary/external_macro.rs diff --git a/src/test/ui/consts/auxiliary/issue-17718-aux.rs b/tests/ui/consts/auxiliary/issue-17718-aux.rs similarity index 100% rename from src/test/ui/consts/auxiliary/issue-17718-aux.rs rename to tests/ui/consts/auxiliary/issue-17718-aux.rs diff --git a/src/test/ui/consts/auxiliary/issue-63226.rs b/tests/ui/consts/auxiliary/issue-63226.rs similarity index 100% rename from src/test/ui/consts/auxiliary/issue-63226.rs rename to tests/ui/consts/auxiliary/issue-63226.rs diff --git a/src/test/ui/consts/auxiliary/promotable_const_fn_lib.rs b/tests/ui/consts/auxiliary/promotable_const_fn_lib.rs similarity index 100% rename from src/test/ui/consts/auxiliary/promotable_const_fn_lib.rs rename to tests/ui/consts/auxiliary/promotable_const_fn_lib.rs diff --git a/src/test/ui/consts/bswap-const.rs b/tests/ui/consts/bswap-const.rs similarity index 100% rename from src/test/ui/consts/bswap-const.rs rename to tests/ui/consts/bswap-const.rs diff --git a/src/test/ui/consts/cast-discriminant-zst-enum.rs b/tests/ui/consts/cast-discriminant-zst-enum.rs similarity index 100% rename from src/test/ui/consts/cast-discriminant-zst-enum.rs rename to tests/ui/consts/cast-discriminant-zst-enum.rs diff --git a/src/test/ui/consts/chained-constants-stackoverflow.rs b/tests/ui/consts/chained-constants-stackoverflow.rs similarity index 100% rename from src/test/ui/consts/chained-constants-stackoverflow.rs rename to tests/ui/consts/chained-constants-stackoverflow.rs diff --git a/src/test/ui/consts/check_const-feature-gated.rs b/tests/ui/consts/check_const-feature-gated.rs similarity index 100% rename from src/test/ui/consts/check_const-feature-gated.rs rename to tests/ui/consts/check_const-feature-gated.rs diff --git a/src/test/ui/consts/closure-structural-match-issue-90013.rs b/tests/ui/consts/closure-structural-match-issue-90013.rs similarity index 100% rename from src/test/ui/consts/closure-structural-match-issue-90013.rs rename to tests/ui/consts/closure-structural-match-issue-90013.rs diff --git a/src/test/ui/consts/const-address-of-interior-mut.rs b/tests/ui/consts/const-address-of-interior-mut.rs similarity index 100% rename from src/test/ui/consts/const-address-of-interior-mut.rs rename to tests/ui/consts/const-address-of-interior-mut.rs diff --git a/src/test/ui/consts/const-address-of-interior-mut.stderr b/tests/ui/consts/const-address-of-interior-mut.stderr similarity index 100% rename from src/test/ui/consts/const-address-of-interior-mut.stderr rename to tests/ui/consts/const-address-of-interior-mut.stderr diff --git a/src/test/ui/consts/const-address-of-mut.rs b/tests/ui/consts/const-address-of-mut.rs similarity index 100% rename from src/test/ui/consts/const-address-of-mut.rs rename to tests/ui/consts/const-address-of-mut.rs diff --git a/src/test/ui/consts/const-address-of-mut.stderr b/tests/ui/consts/const-address-of-mut.stderr similarity index 100% rename from src/test/ui/consts/const-address-of-mut.stderr rename to tests/ui/consts/const-address-of-mut.stderr diff --git a/src/test/ui/consts/const-address-of.rs b/tests/ui/consts/const-address-of.rs similarity index 100% rename from src/test/ui/consts/const-address-of.rs rename to tests/ui/consts/const-address-of.rs diff --git a/src/test/ui/consts/const-adt-align-mismatch.rs b/tests/ui/consts/const-adt-align-mismatch.rs similarity index 100% rename from src/test/ui/consts/const-adt-align-mismatch.rs rename to tests/ui/consts/const-adt-align-mismatch.rs diff --git a/src/test/ui/consts/const-array-oob-arith.rs b/tests/ui/consts/const-array-oob-arith.rs similarity index 100% rename from src/test/ui/consts/const-array-oob-arith.rs rename to tests/ui/consts/const-array-oob-arith.rs diff --git a/src/test/ui/consts/const-array-oob-arith.stderr b/tests/ui/consts/const-array-oob-arith.stderr similarity index 100% rename from src/test/ui/consts/const-array-oob-arith.stderr rename to tests/ui/consts/const-array-oob-arith.stderr diff --git a/src/test/ui/consts/const-array-oob.rs b/tests/ui/consts/const-array-oob.rs similarity index 100% rename from src/test/ui/consts/const-array-oob.rs rename to tests/ui/consts/const-array-oob.rs diff --git a/src/test/ui/consts/const-array-oob.stderr b/tests/ui/consts/const-array-oob.stderr similarity index 100% rename from src/test/ui/consts/const-array-oob.stderr rename to tests/ui/consts/const-array-oob.stderr diff --git a/src/test/ui/consts/const-as-fn.rs b/tests/ui/consts/const-as-fn.rs similarity index 100% rename from src/test/ui/consts/const-as-fn.rs rename to tests/ui/consts/const-as-fn.rs diff --git a/src/test/ui/consts/const-as-fn.stderr b/tests/ui/consts/const-as-fn.stderr similarity index 100% rename from src/test/ui/consts/const-as-fn.stderr rename to tests/ui/consts/const-as-fn.stderr diff --git a/src/test/ui/consts/const-autoderef.rs b/tests/ui/consts/const-autoderef.rs similarity index 100% rename from src/test/ui/consts/const-autoderef.rs rename to tests/ui/consts/const-autoderef.rs diff --git a/src/test/ui/consts/const-big-enum.rs b/tests/ui/consts/const-big-enum.rs similarity index 100% rename from src/test/ui/consts/const-big-enum.rs rename to tests/ui/consts/const-big-enum.rs diff --git a/src/test/ui/consts/const-binops.rs b/tests/ui/consts/const-binops.rs similarity index 100% rename from src/test/ui/consts/const-binops.rs rename to tests/ui/consts/const-binops.rs diff --git a/src/test/ui/consts/const-bitshift-rhs-inference.rs b/tests/ui/consts/const-bitshift-rhs-inference.rs similarity index 100% rename from src/test/ui/consts/const-bitshift-rhs-inference.rs rename to tests/ui/consts/const-bitshift-rhs-inference.rs diff --git a/src/test/ui/consts/const-block-const-bound.rs b/tests/ui/consts/const-block-const-bound.rs similarity index 100% rename from src/test/ui/consts/const-block-const-bound.rs rename to tests/ui/consts/const-block-const-bound.rs diff --git a/src/test/ui/consts/const-block-const-bound.stderr b/tests/ui/consts/const-block-const-bound.stderr similarity index 100% rename from src/test/ui/consts/const-block-const-bound.stderr rename to tests/ui/consts/const-block-const-bound.stderr diff --git a/src/test/ui/consts/const-block-cross-crate-fn.rs b/tests/ui/consts/const-block-cross-crate-fn.rs similarity index 100% rename from src/test/ui/consts/const-block-cross-crate-fn.rs rename to tests/ui/consts/const-block-cross-crate-fn.rs diff --git a/src/test/ui/consts/const-block-item-macro-codegen.rs b/tests/ui/consts/const-block-item-macro-codegen.rs similarity index 100% rename from src/test/ui/consts/const-block-item-macro-codegen.rs rename to tests/ui/consts/const-block-item-macro-codegen.rs diff --git a/src/test/ui/consts/const-block-item.rs b/tests/ui/consts/const-block-item.rs similarity index 100% rename from src/test/ui/consts/const-block-item.rs rename to tests/ui/consts/const-block-item.rs diff --git a/src/test/ui/consts/const-block-non-item-statement-3.rs b/tests/ui/consts/const-block-non-item-statement-3.rs similarity index 100% rename from src/test/ui/consts/const-block-non-item-statement-3.rs rename to tests/ui/consts/const-block-non-item-statement-3.rs diff --git a/src/test/ui/consts/const-block-non-item-statement-rpass.rs b/tests/ui/consts/const-block-non-item-statement-rpass.rs similarity index 100% rename from src/test/ui/consts/const-block-non-item-statement-rpass.rs rename to tests/ui/consts/const-block-non-item-statement-rpass.rs diff --git a/src/test/ui/consts/const-block-non-item-statement.rs b/tests/ui/consts/const-block-non-item-statement.rs similarity index 100% rename from src/test/ui/consts/const-block-non-item-statement.rs rename to tests/ui/consts/const-block-non-item-statement.rs diff --git a/src/test/ui/consts/const-block.rs b/tests/ui/consts/const-block.rs similarity index 100% rename from src/test/ui/consts/const-block.rs rename to tests/ui/consts/const-block.rs diff --git a/src/test/ui/consts/const-blocks/const-repeat.rs b/tests/ui/consts/const-blocks/const-repeat.rs similarity index 100% rename from src/test/ui/consts/const-blocks/const-repeat.rs rename to tests/ui/consts/const-blocks/const-repeat.rs diff --git a/src/test/ui/consts/const-blocks/fn-call-in-const.rs b/tests/ui/consts/const-blocks/fn-call-in-const.rs similarity index 100% rename from src/test/ui/consts/const-blocks/fn-call-in-const.rs rename to tests/ui/consts/const-blocks/fn-call-in-const.rs diff --git a/src/test/ui/consts/const-blocks/fn-call-in-non-const.rs b/tests/ui/consts/const-blocks/fn-call-in-non-const.rs similarity index 100% rename from src/test/ui/consts/const-blocks/fn-call-in-non-const.rs rename to tests/ui/consts/const-blocks/fn-call-in-non-const.rs diff --git a/src/test/ui/consts/const-blocks/fn-call-in-non-const.stderr b/tests/ui/consts/const-blocks/fn-call-in-non-const.stderr similarity index 100% rename from src/test/ui/consts/const-blocks/fn-call-in-non-const.stderr rename to tests/ui/consts/const-blocks/fn-call-in-non-const.stderr diff --git a/src/test/ui/consts/const-blocks/migrate-fail.rs b/tests/ui/consts/const-blocks/migrate-fail.rs similarity index 100% rename from src/test/ui/consts/const-blocks/migrate-fail.rs rename to tests/ui/consts/const-blocks/migrate-fail.rs diff --git a/src/test/ui/consts/const-blocks/migrate-fail.stderr b/tests/ui/consts/const-blocks/migrate-fail.stderr similarity index 100% rename from src/test/ui/consts/const-blocks/migrate-fail.stderr rename to tests/ui/consts/const-blocks/migrate-fail.stderr diff --git a/src/test/ui/consts/const-blocks/migrate-pass.rs b/tests/ui/consts/const-blocks/migrate-pass.rs similarity index 100% rename from src/test/ui/consts/const-blocks/migrate-pass.rs rename to tests/ui/consts/const-blocks/migrate-pass.rs diff --git a/src/test/ui/consts/const-blocks/nll-fail.rs b/tests/ui/consts/const-blocks/nll-fail.rs similarity index 100% rename from src/test/ui/consts/const-blocks/nll-fail.rs rename to tests/ui/consts/const-blocks/nll-fail.rs diff --git a/src/test/ui/consts/const-blocks/nll-fail.stderr b/tests/ui/consts/const-blocks/nll-fail.stderr similarity index 100% rename from src/test/ui/consts/const-blocks/nll-fail.stderr rename to tests/ui/consts/const-blocks/nll-fail.stderr diff --git a/src/test/ui/consts/const-blocks/nll-pass.rs b/tests/ui/consts/const-blocks/nll-pass.rs similarity index 100% rename from src/test/ui/consts/const-blocks/nll-pass.rs rename to tests/ui/consts/const-blocks/nll-pass.rs diff --git a/src/test/ui/consts/const-blocks/run-pass.rs b/tests/ui/consts/const-blocks/run-pass.rs similarity index 100% rename from src/test/ui/consts/const-blocks/run-pass.rs rename to tests/ui/consts/const-blocks/run-pass.rs diff --git a/src/test/ui/consts/const-blocks/trait-error.rs b/tests/ui/consts/const-blocks/trait-error.rs similarity index 100% rename from src/test/ui/consts/const-blocks/trait-error.rs rename to tests/ui/consts/const-blocks/trait-error.rs diff --git a/src/test/ui/consts/const-blocks/trait-error.stderr b/tests/ui/consts/const-blocks/trait-error.stderr similarity index 100% rename from src/test/ui/consts/const-blocks/trait-error.stderr rename to tests/ui/consts/const-blocks/trait-error.stderr diff --git a/src/test/ui/consts/const-bound.rs b/tests/ui/consts/const-bound.rs similarity index 100% rename from src/test/ui/consts/const-bound.rs rename to tests/ui/consts/const-bound.rs diff --git a/src/test/ui/consts/const-byte-str-cast.rs b/tests/ui/consts/const-byte-str-cast.rs similarity index 100% rename from src/test/ui/consts/const-byte-str-cast.rs rename to tests/ui/consts/const-byte-str-cast.rs diff --git a/src/test/ui/consts/const-call.rs b/tests/ui/consts/const-call.rs similarity index 100% rename from src/test/ui/consts/const-call.rs rename to tests/ui/consts/const-call.rs diff --git a/src/test/ui/consts/const-call.stderr b/tests/ui/consts/const-call.stderr similarity index 100% rename from src/test/ui/consts/const-call.stderr rename to tests/ui/consts/const-call.stderr diff --git a/src/test/ui/consts/const-cast-different-types.rs b/tests/ui/consts/const-cast-different-types.rs similarity index 100% rename from src/test/ui/consts/const-cast-different-types.rs rename to tests/ui/consts/const-cast-different-types.rs diff --git a/src/test/ui/consts/const-cast-different-types.stderr b/tests/ui/consts/const-cast-different-types.stderr similarity index 100% rename from src/test/ui/consts/const-cast-different-types.stderr rename to tests/ui/consts/const-cast-different-types.stderr diff --git a/src/test/ui/consts/const-cast-ptr-int.rs b/tests/ui/consts/const-cast-ptr-int.rs similarity index 100% rename from src/test/ui/consts/const-cast-ptr-int.rs rename to tests/ui/consts/const-cast-ptr-int.rs diff --git a/src/test/ui/consts/const-cast-wrong-type.rs b/tests/ui/consts/const-cast-wrong-type.rs similarity index 100% rename from src/test/ui/consts/const-cast-wrong-type.rs rename to tests/ui/consts/const-cast-wrong-type.rs diff --git a/src/test/ui/consts/const-cast-wrong-type.stderr b/tests/ui/consts/const-cast-wrong-type.stderr similarity index 100% rename from src/test/ui/consts/const-cast-wrong-type.stderr rename to tests/ui/consts/const-cast-wrong-type.stderr diff --git a/src/test/ui/consts/const-cast.rs b/tests/ui/consts/const-cast.rs similarity index 100% rename from src/test/ui/consts/const-cast.rs rename to tests/ui/consts/const-cast.rs diff --git a/src/test/ui/consts/const-const.rs b/tests/ui/consts/const-const.rs similarity index 100% rename from src/test/ui/consts/const-const.rs rename to tests/ui/consts/const-const.rs diff --git a/src/test/ui/consts/const-contents.rs b/tests/ui/consts/const-contents.rs similarity index 100% rename from src/test/ui/consts/const-contents.rs rename to tests/ui/consts/const-contents.rs diff --git a/src/test/ui/consts/const-deref-ptr.rs b/tests/ui/consts/const-deref-ptr.rs similarity index 100% rename from src/test/ui/consts/const-deref-ptr.rs rename to tests/ui/consts/const-deref-ptr.rs diff --git a/src/test/ui/consts/const-deref-ptr.stderr b/tests/ui/consts/const-deref-ptr.stderr similarity index 100% rename from src/test/ui/consts/const-deref-ptr.stderr rename to tests/ui/consts/const-deref-ptr.stderr diff --git a/src/test/ui/consts/const-deref.rs b/tests/ui/consts/const-deref.rs similarity index 100% rename from src/test/ui/consts/const-deref.rs rename to tests/ui/consts/const-deref.rs diff --git a/src/test/ui/consts/const-endianess.rs b/tests/ui/consts/const-endianess.rs similarity index 100% rename from src/test/ui/consts/const-endianess.rs rename to tests/ui/consts/const-endianess.rs diff --git a/src/test/ui/consts/const-enum-byref-self.rs b/tests/ui/consts/const-enum-byref-self.rs similarity index 100% rename from src/test/ui/consts/const-enum-byref-self.rs rename to tests/ui/consts/const-enum-byref-self.rs diff --git a/src/test/ui/consts/const-enum-byref.rs b/tests/ui/consts/const-enum-byref.rs similarity index 100% rename from src/test/ui/consts/const-enum-byref.rs rename to tests/ui/consts/const-enum-byref.rs diff --git a/src/test/ui/consts/const-enum-cast.rs b/tests/ui/consts/const-enum-cast.rs similarity index 100% rename from src/test/ui/consts/const-enum-cast.rs rename to tests/ui/consts/const-enum-cast.rs diff --git a/src/test/ui/consts/const-enum-ptr.rs b/tests/ui/consts/const-enum-ptr.rs similarity index 100% rename from src/test/ui/consts/const-enum-ptr.rs rename to tests/ui/consts/const-enum-ptr.rs diff --git a/src/test/ui/consts/const-enum-struct.rs b/tests/ui/consts/const-enum-struct.rs similarity index 100% rename from src/test/ui/consts/const-enum-struct.rs rename to tests/ui/consts/const-enum-struct.rs diff --git a/src/test/ui/consts/const-enum-struct2.rs b/tests/ui/consts/const-enum-struct2.rs similarity index 100% rename from src/test/ui/consts/const-enum-struct2.rs rename to tests/ui/consts/const-enum-struct2.rs diff --git a/src/test/ui/consts/const-enum-structlike.rs b/tests/ui/consts/const-enum-structlike.rs similarity index 100% rename from src/test/ui/consts/const-enum-structlike.rs rename to tests/ui/consts/const-enum-structlike.rs diff --git a/src/test/ui/consts/const-enum-tuple.rs b/tests/ui/consts/const-enum-tuple.rs similarity index 100% rename from src/test/ui/consts/const-enum-tuple.rs rename to tests/ui/consts/const-enum-tuple.rs diff --git a/src/test/ui/consts/const-enum-tuple2.rs b/tests/ui/consts/const-enum-tuple2.rs similarity index 100% rename from src/test/ui/consts/const-enum-tuple2.rs rename to tests/ui/consts/const-enum-tuple2.rs diff --git a/src/test/ui/consts/const-enum-tuplestruct.rs b/tests/ui/consts/const-enum-tuplestruct.rs similarity index 100% rename from src/test/ui/consts/const-enum-tuplestruct.rs rename to tests/ui/consts/const-enum-tuplestruct.rs diff --git a/src/test/ui/consts/const-enum-tuplestruct2.rs b/tests/ui/consts/const-enum-tuplestruct2.rs similarity index 100% rename from src/test/ui/consts/const-enum-tuplestruct2.rs rename to tests/ui/consts/const-enum-tuplestruct2.rs diff --git a/src/test/ui/consts/const-enum-vec-index.rs b/tests/ui/consts/const-enum-vec-index.rs similarity index 100% rename from src/test/ui/consts/const-enum-vec-index.rs rename to tests/ui/consts/const-enum-vec-index.rs diff --git a/src/test/ui/consts/const-enum-vec-ptr.rs b/tests/ui/consts/const-enum-vec-ptr.rs similarity index 100% rename from src/test/ui/consts/const-enum-vec-ptr.rs rename to tests/ui/consts/const-enum-vec-ptr.rs diff --git a/src/test/ui/consts/const-enum-vector.rs b/tests/ui/consts/const-enum-vector.rs similarity index 100% rename from src/test/ui/consts/const-enum-vector.rs rename to tests/ui/consts/const-enum-vector.rs diff --git a/src/test/ui/consts/const-err-early.rs b/tests/ui/consts/const-err-early.rs similarity index 100% rename from src/test/ui/consts/const-err-early.rs rename to tests/ui/consts/const-err-early.rs diff --git a/src/test/ui/consts/const-err-early.stderr b/tests/ui/consts/const-err-early.stderr similarity index 100% rename from src/test/ui/consts/const-err-early.stderr rename to tests/ui/consts/const-err-early.stderr diff --git a/src/test/ui/consts/const-err-late.rs b/tests/ui/consts/const-err-late.rs similarity index 100% rename from src/test/ui/consts/const-err-late.rs rename to tests/ui/consts/const-err-late.rs diff --git a/src/test/ui/consts/const-err-late.stderr b/tests/ui/consts/const-err-late.stderr similarity index 100% rename from src/test/ui/consts/const-err-late.stderr rename to tests/ui/consts/const-err-late.stderr diff --git a/src/test/ui/consts/const-err-multi.rs b/tests/ui/consts/const-err-multi.rs similarity index 100% rename from src/test/ui/consts/const-err-multi.rs rename to tests/ui/consts/const-err-multi.rs diff --git a/src/test/ui/consts/const-err-multi.stderr b/tests/ui/consts/const-err-multi.stderr similarity index 100% rename from src/test/ui/consts/const-err-multi.stderr rename to tests/ui/consts/const-err-multi.stderr diff --git a/src/test/ui/consts/const-err-rpass.rs b/tests/ui/consts/const-err-rpass.rs similarity index 100% rename from src/test/ui/consts/const-err-rpass.rs rename to tests/ui/consts/const-err-rpass.rs diff --git a/src/test/ui/consts/const-err2.noopt.stderr b/tests/ui/consts/const-err2.noopt.stderr similarity index 100% rename from src/test/ui/consts/const-err2.noopt.stderr rename to tests/ui/consts/const-err2.noopt.stderr diff --git a/src/test/ui/consts/const-err2.opt.stderr b/tests/ui/consts/const-err2.opt.stderr similarity index 100% rename from src/test/ui/consts/const-err2.opt.stderr rename to tests/ui/consts/const-err2.opt.stderr diff --git a/src/test/ui/consts/const-err2.opt_with_overflow_checks.stderr b/tests/ui/consts/const-err2.opt_with_overflow_checks.stderr similarity index 100% rename from src/test/ui/consts/const-err2.opt_with_overflow_checks.stderr rename to tests/ui/consts/const-err2.opt_with_overflow_checks.stderr diff --git a/src/test/ui/consts/const-err2.rs b/tests/ui/consts/const-err2.rs similarity index 100% rename from src/test/ui/consts/const-err2.rs rename to tests/ui/consts/const-err2.rs diff --git a/src/test/ui/consts/const-err4.32bit.stderr b/tests/ui/consts/const-err4.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-err4.32bit.stderr rename to tests/ui/consts/const-err4.32bit.stderr diff --git a/src/test/ui/consts/const-err4.64bit.stderr b/tests/ui/consts/const-err4.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-err4.64bit.stderr rename to tests/ui/consts/const-err4.64bit.stderr diff --git a/src/test/ui/consts/const-err4.rs b/tests/ui/consts/const-err4.rs similarity index 100% rename from src/test/ui/consts/const-err4.rs rename to tests/ui/consts/const-err4.rs diff --git a/src/test/ui/consts/const-eval/assign-to-static-within-other-static.rs b/tests/ui/consts/const-eval/assign-to-static-within-other-static.rs similarity index 100% rename from src/test/ui/consts/const-eval/assign-to-static-within-other-static.rs rename to tests/ui/consts/const-eval/assign-to-static-within-other-static.rs diff --git a/src/test/ui/consts/const-eval/assign-to-static-within-other-static.stderr b/tests/ui/consts/const-eval/assign-to-static-within-other-static.stderr similarity index 100% rename from src/test/ui/consts/const-eval/assign-to-static-within-other-static.stderr rename to tests/ui/consts/const-eval/assign-to-static-within-other-static.stderr diff --git a/src/test/ui/consts/const-eval/auxiliary/post_monomorphization_error.rs b/tests/ui/consts/const-eval/auxiliary/post_monomorphization_error.rs similarity index 100% rename from src/test/ui/consts/const-eval/auxiliary/post_monomorphization_error.rs rename to tests/ui/consts/const-eval/auxiliary/post_monomorphization_error.rs diff --git a/src/test/ui/consts/const-eval/auxiliary/stability.rs b/tests/ui/consts/const-eval/auxiliary/stability.rs similarity index 100% rename from src/test/ui/consts/const-eval/auxiliary/stability.rs rename to tests/ui/consts/const-eval/auxiliary/stability.rs diff --git a/src/test/ui/consts/const-eval/conditional_array_execution.rs b/tests/ui/consts/const-eval/conditional_array_execution.rs similarity index 100% rename from src/test/ui/consts/const-eval/conditional_array_execution.rs rename to tests/ui/consts/const-eval/conditional_array_execution.rs diff --git a/src/test/ui/consts/const-eval/conditional_array_execution.stderr b/tests/ui/consts/const-eval/conditional_array_execution.stderr similarity index 100% rename from src/test/ui/consts/const-eval/conditional_array_execution.stderr rename to tests/ui/consts/const-eval/conditional_array_execution.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-intrinsic-promotion.rs b/tests/ui/consts/const-eval/const-eval-intrinsic-promotion.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-intrinsic-promotion.rs rename to tests/ui/consts/const-eval/const-eval-intrinsic-promotion.rs diff --git a/src/test/ui/consts/const-eval/const-eval-intrinsic-promotion.stderr b/tests/ui/consts/const-eval/const-eval-intrinsic-promotion.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-intrinsic-promotion.stderr rename to tests/ui/consts/const-eval/const-eval-intrinsic-promotion.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-2.rs b/tests/ui/consts/const-eval/const-eval-overflow-2.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-2.rs rename to tests/ui/consts/const-eval/const-eval-overflow-2.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-2.stderr b/tests/ui/consts/const-eval/const-eval-overflow-2.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-2.stderr rename to tests/ui/consts/const-eval/const-eval-overflow-2.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-3.rs b/tests/ui/consts/const-eval/const-eval-overflow-3.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-3.rs rename to tests/ui/consts/const-eval/const-eval-overflow-3.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-3.stderr b/tests/ui/consts/const-eval/const-eval-overflow-3.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-3.stderr rename to tests/ui/consts/const-eval/const-eval-overflow-3.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-3b.rs b/tests/ui/consts/const-eval/const-eval-overflow-3b.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-3b.rs rename to tests/ui/consts/const-eval/const-eval-overflow-3b.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr b/tests/ui/consts/const-eval/const-eval-overflow-3b.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-3b.stderr rename to tests/ui/consts/const-eval/const-eval-overflow-3b.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-4.rs b/tests/ui/consts/const-eval/const-eval-overflow-4.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-4.rs rename to tests/ui/consts/const-eval/const-eval-overflow-4.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-4.stderr b/tests/ui/consts/const-eval/const-eval-overflow-4.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-4.stderr rename to tests/ui/consts/const-eval/const-eval-overflow-4.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-4b.rs b/tests/ui/consts/const-eval/const-eval-overflow-4b.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-4b.rs rename to tests/ui/consts/const-eval/const-eval-overflow-4b.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr b/tests/ui/consts/const-eval/const-eval-overflow-4b.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr rename to tests/ui/consts/const-eval/const-eval-overflow-4b.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow2.rs b/tests/ui/consts/const-eval/const-eval-overflow2.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow2.rs rename to tests/ui/consts/const-eval/const-eval-overflow2.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow2.stderr b/tests/ui/consts/const-eval/const-eval-overflow2.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow2.stderr rename to tests/ui/consts/const-eval/const-eval-overflow2.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow2b.rs b/tests/ui/consts/const-eval/const-eval-overflow2b.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow2b.rs rename to tests/ui/consts/const-eval/const-eval-overflow2b.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow2b.stderr b/tests/ui/consts/const-eval/const-eval-overflow2b.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow2b.stderr rename to tests/ui/consts/const-eval/const-eval-overflow2b.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-overflow2c.rs b/tests/ui/consts/const-eval/const-eval-overflow2c.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow2c.rs rename to tests/ui/consts/const-eval/const-eval-overflow2c.rs diff --git a/src/test/ui/consts/const-eval/const-eval-overflow2c.stderr b/tests/ui/consts/const-eval/const-eval-overflow2c.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-overflow2c.stderr rename to tests/ui/consts/const-eval/const-eval-overflow2c.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-query-stack.rs b/tests/ui/consts/const-eval/const-eval-query-stack.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-query-stack.rs rename to tests/ui/consts/const-eval/const-eval-query-stack.rs diff --git a/src/test/ui/consts/const-eval/const-eval-query-stack.stderr b/tests/ui/consts/const-eval/const-eval-query-stack.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-query-stack.stderr rename to tests/ui/consts/const-eval/const-eval-query-stack.stderr diff --git a/src/test/ui/consts/const-eval/const-eval-span.rs b/tests/ui/consts/const-eval/const-eval-span.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-span.rs rename to tests/ui/consts/const-eval/const-eval-span.rs diff --git a/src/test/ui/consts/const-eval/const-eval-span.stderr b/tests/ui/consts/const-eval/const-eval-span.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-eval-span.stderr rename to tests/ui/consts/const-eval/const-eval-span.stderr diff --git a/src/test/ui/consts/const-eval/const-pointer-values-in-various-types.64bit.stderr b/tests/ui/consts/const-eval/const-pointer-values-in-various-types.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const-pointer-values-in-various-types.64bit.stderr rename to tests/ui/consts/const-eval/const-pointer-values-in-various-types.64bit.stderr diff --git a/src/test/ui/consts/const-eval/const-pointer-values-in-various-types.rs b/tests/ui/consts/const-eval/const-pointer-values-in-various-types.rs similarity index 100% rename from src/test/ui/consts/const-eval/const-pointer-values-in-various-types.rs rename to tests/ui/consts/const-eval/const-pointer-values-in-various-types.rs diff --git a/src/test/ui/consts/const-eval/const_fn_ptr.rs b/tests/ui/consts/const-eval/const_fn_ptr.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_fn_ptr.rs rename to tests/ui/consts/const-eval/const_fn_ptr.rs diff --git a/src/test/ui/consts/const-eval/const_fn_ptr.stderr b/tests/ui/consts/const-eval/const_fn_ptr.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_fn_ptr.stderr rename to tests/ui/consts/const-eval/const_fn_ptr.stderr diff --git a/src/test/ui/consts/const-eval/const_fn_ptr_fail.rs b/tests/ui/consts/const-eval/const_fn_ptr_fail.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_fn_ptr_fail.rs rename to tests/ui/consts/const-eval/const_fn_ptr_fail.rs diff --git a/src/test/ui/consts/const-eval/const_fn_ptr_fail.stderr b/tests/ui/consts/const-eval/const_fn_ptr_fail.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_fn_ptr_fail.stderr rename to tests/ui/consts/const-eval/const_fn_ptr_fail.stderr diff --git a/src/test/ui/consts/const-eval/const_fn_ptr_fail2.rs b/tests/ui/consts/const-eval/const_fn_ptr_fail2.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_fn_ptr_fail2.rs rename to tests/ui/consts/const-eval/const_fn_ptr_fail2.rs diff --git a/src/test/ui/consts/const-eval/const_fn_ptr_fail2.stderr b/tests/ui/consts/const-eval/const_fn_ptr_fail2.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_fn_ptr_fail2.stderr rename to tests/ui/consts/const-eval/const_fn_ptr_fail2.stderr diff --git a/src/test/ui/consts/const-eval/const_let.rs b/tests/ui/consts/const-eval/const_let.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_let.rs rename to tests/ui/consts/const-eval/const_let.rs diff --git a/src/test/ui/consts/const-eval/const_let.stderr b/tests/ui/consts/const-eval/const_let.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_let.stderr rename to tests/ui/consts/const-eval/const_let.stderr diff --git a/src/test/ui/consts/const-eval/const_panic.rs b/tests/ui/consts/const-eval/const_panic.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_panic.rs rename to tests/ui/consts/const-eval/const_panic.rs diff --git a/src/test/ui/consts/const-eval/const_panic.stderr b/tests/ui/consts/const-eval/const_panic.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_panic.stderr rename to tests/ui/consts/const-eval/const_panic.stderr diff --git a/src/test/ui/consts/const-eval/const_panic_2021.rs b/tests/ui/consts/const-eval/const_panic_2021.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_2021.rs rename to tests/ui/consts/const-eval/const_panic_2021.rs diff --git a/src/test/ui/consts/const-eval/const_panic_2021.stderr b/tests/ui/consts/const-eval/const_panic_2021.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_2021.stderr rename to tests/ui/consts/const-eval/const_panic_2021.stderr diff --git a/src/test/ui/consts/const-eval/const_panic_libcore_bin.rs b/tests/ui/consts/const-eval/const_panic_libcore_bin.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_libcore_bin.rs rename to tests/ui/consts/const-eval/const_panic_libcore_bin.rs diff --git a/src/test/ui/consts/const-eval/const_panic_libcore_bin.stderr b/tests/ui/consts/const-eval/const_panic_libcore_bin.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_libcore_bin.stderr rename to tests/ui/consts/const-eval/const_panic_libcore_bin.stderr diff --git a/src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr b/tests/ui/consts/const-eval/const_panic_stability.e2018.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_stability.e2018.stderr rename to tests/ui/consts/const-eval/const_panic_stability.e2018.stderr diff --git a/src/test/ui/consts/const-eval/const_panic_stability.e2021.stderr b/tests/ui/consts/const-eval/const_panic_stability.e2021.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_stability.e2021.stderr rename to tests/ui/consts/const-eval/const_panic_stability.e2021.stderr diff --git a/src/test/ui/consts/const-eval/const_panic_stability.rs b/tests/ui/consts/const-eval/const_panic_stability.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_stability.rs rename to tests/ui/consts/const-eval/const_panic_stability.rs diff --git a/src/test/ui/consts/const-eval/const_panic_track_caller.rs b/tests/ui/consts/const-eval/const_panic_track_caller.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_track_caller.rs rename to tests/ui/consts/const-eval/const_panic_track_caller.rs diff --git a/src/test/ui/consts/const-eval/const_panic_track_caller.stderr b/tests/ui/consts/const-eval/const_panic_track_caller.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_panic_track_caller.stderr rename to tests/ui/consts/const-eval/const_panic_track_caller.stderr diff --git a/src/test/ui/consts/const-eval/const_prop_errors.rs b/tests/ui/consts/const-eval/const_prop_errors.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_prop_errors.rs rename to tests/ui/consts/const-eval/const_prop_errors.rs diff --git a/src/test/ui/consts/const-eval/const_raw_ptr_ops.rs b/tests/ui/consts/const-eval/const_raw_ptr_ops.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_raw_ptr_ops.rs rename to tests/ui/consts/const-eval/const_raw_ptr_ops.rs diff --git a/src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr b/tests/ui/consts/const-eval/const_raw_ptr_ops.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_raw_ptr_ops.stderr rename to tests/ui/consts/const-eval/const_raw_ptr_ops.stderr diff --git a/src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs b/tests/ui/consts/const-eval/const_raw_ptr_ops2.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs rename to tests/ui/consts/const-eval/const_raw_ptr_ops2.rs diff --git a/src/test/ui/consts/const-eval/const_raw_ptr_ops2.stderr b/tests/ui/consts/const-eval/const_raw_ptr_ops2.stderr similarity index 100% rename from src/test/ui/consts/const-eval/const_raw_ptr_ops2.stderr rename to tests/ui/consts/const-eval/const_raw_ptr_ops2.stderr diff --git a/src/test/ui/consts/const-eval/const_signed_pat.rs b/tests/ui/consts/const-eval/const_signed_pat.rs similarity index 100% rename from src/test/ui/consts/const-eval/const_signed_pat.rs rename to tests/ui/consts/const-eval/const_signed_pat.rs diff --git a/src/test/ui/consts/const-eval/dangling.rs b/tests/ui/consts/const-eval/dangling.rs similarity index 100% rename from src/test/ui/consts/const-eval/dangling.rs rename to tests/ui/consts/const-eval/dangling.rs diff --git a/src/test/ui/consts/const-eval/dangling.stderr b/tests/ui/consts/const-eval/dangling.stderr similarity index 100% rename from src/test/ui/consts/const-eval/dangling.stderr rename to tests/ui/consts/const-eval/dangling.stderr diff --git a/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs b/tests/ui/consts/const-eval/dont_promote_unstable_const_fn.rs similarity index 100% rename from src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.rs rename to tests/ui/consts/const-eval/dont_promote_unstable_const_fn.rs diff --git a/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.stderr b/tests/ui/consts/const-eval/dont_promote_unstable_const_fn.stderr similarity index 100% rename from src/test/ui/consts/const-eval/dont_promote_unstable_const_fn.stderr rename to tests/ui/consts/const-eval/dont_promote_unstable_const_fn.stderr diff --git a/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.rs b/tests/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.rs similarity index 100% rename from src/test/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.rs rename to tests/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.rs diff --git a/src/test/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.stderr b/tests/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.stderr similarity index 100% rename from src/test/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.stderr rename to tests/ui/consts/const-eval/dont_promote_unstable_const_fn_cross_crate.stderr diff --git a/src/test/ui/consts/const-eval/double_check.rs b/tests/ui/consts/const-eval/double_check.rs similarity index 100% rename from src/test/ui/consts/const-eval/double_check.rs rename to tests/ui/consts/const-eval/double_check.rs diff --git a/src/test/ui/consts/const-eval/double_check2.rs b/tests/ui/consts/const-eval/double_check2.rs similarity index 100% rename from src/test/ui/consts/const-eval/double_check2.rs rename to tests/ui/consts/const-eval/double_check2.rs diff --git a/src/test/ui/consts/const-eval/duration_conversion.rs b/tests/ui/consts/const-eval/duration_conversion.rs similarity index 100% rename from src/test/ui/consts/const-eval/duration_conversion.rs rename to tests/ui/consts/const-eval/duration_conversion.rs diff --git a/src/test/ui/consts/const-eval/enum_discr.rs b/tests/ui/consts/const-eval/enum_discr.rs similarity index 100% rename from src/test/ui/consts/const-eval/enum_discr.rs rename to tests/ui/consts/const-eval/enum_discr.rs diff --git a/src/test/ui/consts/const-eval/erroneous-const.rs b/tests/ui/consts/const-eval/erroneous-const.rs similarity index 100% rename from src/test/ui/consts/const-eval/erroneous-const.rs rename to tests/ui/consts/const-eval/erroneous-const.rs diff --git a/src/test/ui/consts/const-eval/erroneous-const.stderr b/tests/ui/consts/const-eval/erroneous-const.stderr similarity index 100% rename from src/test/ui/consts/const-eval/erroneous-const.stderr rename to tests/ui/consts/const-eval/erroneous-const.stderr diff --git a/src/test/ui/consts/const-eval/erroneous-const2.rs b/tests/ui/consts/const-eval/erroneous-const2.rs similarity index 100% rename from src/test/ui/consts/const-eval/erroneous-const2.rs rename to tests/ui/consts/const-eval/erroneous-const2.rs diff --git a/src/test/ui/consts/const-eval/erroneous-const2.stderr b/tests/ui/consts/const-eval/erroneous-const2.stderr similarity index 100% rename from src/test/ui/consts/const-eval/erroneous-const2.stderr rename to tests/ui/consts/const-eval/erroneous-const2.stderr diff --git a/src/test/ui/consts/const-eval/extern_fat_pointer.rs b/tests/ui/consts/const-eval/extern_fat_pointer.rs similarity index 100% rename from src/test/ui/consts/const-eval/extern_fat_pointer.rs rename to tests/ui/consts/const-eval/extern_fat_pointer.rs diff --git a/src/test/ui/consts/const-eval/format.rs b/tests/ui/consts/const-eval/format.rs similarity index 100% rename from src/test/ui/consts/const-eval/format.rs rename to tests/ui/consts/const-eval/format.rs diff --git a/src/test/ui/consts/const-eval/format.stderr b/tests/ui/consts/const-eval/format.stderr similarity index 100% rename from src/test/ui/consts/const-eval/format.stderr rename to tests/ui/consts/const-eval/format.stderr diff --git a/src/test/ui/consts/const-eval/generic-slice.rs b/tests/ui/consts/const-eval/generic-slice.rs similarity index 100% rename from src/test/ui/consts/const-eval/generic-slice.rs rename to tests/ui/consts/const-eval/generic-slice.rs diff --git a/src/test/ui/consts/const-eval/generic-slice.stderr b/tests/ui/consts/const-eval/generic-slice.stderr similarity index 100% rename from src/test/ui/consts/const-eval/generic-slice.stderr rename to tests/ui/consts/const-eval/generic-slice.stderr diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_errors.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_errors.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_errors.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_errors.rs diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_errors.stderr b/tests/ui/consts/const-eval/heap/alloc_intrinsic_errors.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_errors.stderr rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_errors.stderr diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_nontransient.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_nontransient.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient.rs diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.rs diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.stderr b/tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.stderr rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.stderr diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_transient.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_transient.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_transient.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_transient.rs diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.32bit.stderr b/tests/ui/consts/const-eval/heap/alloc_intrinsic_uninit.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.32bit.stderr rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_uninit.32bit.stderr diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.64bit.stderr b/tests/ui/consts/const-eval/heap/alloc_intrinsic_uninit.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.64bit.stderr rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_uninit.64bit.stderr diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_uninit.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_uninit.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_uninit.rs diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_untyped.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_untyped.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_untyped.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_untyped.rs diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_untyped.stderr b/tests/ui/consts/const-eval/heap/alloc_intrinsic_untyped.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_untyped.stderr rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_untyped.stderr diff --git a/src/test/ui/consts/const-eval/heap/alloc_intrinsic_zero_sized.rs b/tests/ui/consts/const-eval/heap/alloc_intrinsic_zero_sized.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/alloc_intrinsic_zero_sized.rs rename to tests/ui/consts/const-eval/heap/alloc_intrinsic_zero_sized.rs diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic.rs b/tests/ui/consts/const-eval/heap/dealloc_intrinsic.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic.rs rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic.rs diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.rs b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.rs rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.rs diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.stderr b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.stderr rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_dangling.stderr diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.rs b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.rs rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.rs diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.stderr b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.stderr rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_duplicate.stderr diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.rs b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.rs rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.rs diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.stderr b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.stderr similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.stderr rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_incorrect_layout.stderr diff --git a/src/test/ui/consts/const-eval/heap/dealloc_intrinsic_zero_sized.rs b/tests/ui/consts/const-eval/heap/dealloc_intrinsic_zero_sized.rs similarity index 100% rename from src/test/ui/consts/const-eval/heap/dealloc_intrinsic_zero_sized.rs rename to tests/ui/consts/const-eval/heap/dealloc_intrinsic_zero_sized.rs diff --git a/src/test/ui/consts/const-eval/ice-generic-assoc-const.rs b/tests/ui/consts/const-eval/ice-generic-assoc-const.rs similarity index 100% rename from src/test/ui/consts/const-eval/ice-generic-assoc-const.rs rename to tests/ui/consts/const-eval/ice-generic-assoc-const.rs diff --git a/src/test/ui/consts/const-eval/ice-packed.rs b/tests/ui/consts/const-eval/ice-packed.rs similarity index 100% rename from src/test/ui/consts/const-eval/ice-packed.rs rename to tests/ui/consts/const-eval/ice-packed.rs diff --git a/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs b/tests/ui/consts/const-eval/index-out-of-bounds-never-type.rs similarity index 100% rename from src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs rename to tests/ui/consts/const-eval/index-out-of-bounds-never-type.rs diff --git a/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.stderr b/tests/ui/consts/const-eval/index-out-of-bounds-never-type.stderr similarity index 100% rename from src/test/ui/consts/const-eval/index-out-of-bounds-never-type.stderr rename to tests/ui/consts/const-eval/index-out-of-bounds-never-type.stderr diff --git a/src/test/ui/consts/const-eval/index_out_of_bounds.rs b/tests/ui/consts/const-eval/index_out_of_bounds.rs similarity index 100% rename from src/test/ui/consts/const-eval/index_out_of_bounds.rs rename to tests/ui/consts/const-eval/index_out_of_bounds.rs diff --git a/src/test/ui/consts/const-eval/index_out_of_bounds.stderr b/tests/ui/consts/const-eval/index_out_of_bounds.stderr similarity index 100% rename from src/test/ui/consts/const-eval/index_out_of_bounds.stderr rename to tests/ui/consts/const-eval/index_out_of_bounds.stderr diff --git a/src/test/ui/consts/const-eval/index_out_of_bounds_propagated.rs b/tests/ui/consts/const-eval/index_out_of_bounds_propagated.rs similarity index 100% rename from src/test/ui/consts/const-eval/index_out_of_bounds_propagated.rs rename to tests/ui/consts/const-eval/index_out_of_bounds_propagated.rs diff --git a/src/test/ui/consts/const-eval/index_out_of_bounds_propagated.stderr b/tests/ui/consts/const-eval/index_out_of_bounds_propagated.stderr similarity index 100% rename from src/test/ui/consts/const-eval/index_out_of_bounds_propagated.stderr rename to tests/ui/consts/const-eval/index_out_of_bounds_propagated.stderr diff --git a/src/test/ui/consts/const-eval/infinite_loop.rs b/tests/ui/consts/const-eval/infinite_loop.rs similarity index 100% rename from src/test/ui/consts/const-eval/infinite_loop.rs rename to tests/ui/consts/const-eval/infinite_loop.rs diff --git a/src/test/ui/consts/const-eval/infinite_loop.stderr b/tests/ui/consts/const-eval/infinite_loop.stderr similarity index 100% rename from src/test/ui/consts/const-eval/infinite_loop.stderr rename to tests/ui/consts/const-eval/infinite_loop.stderr diff --git a/src/test/ui/consts/const-eval/issue-100878.rs b/tests/ui/consts/const-eval/issue-100878.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-100878.rs rename to tests/ui/consts/const-eval/issue-100878.rs diff --git a/src/test/ui/consts/const-eval/issue-104390.rs b/tests/ui/consts/const-eval/issue-104390.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-104390.rs rename to tests/ui/consts/const-eval/issue-104390.rs diff --git a/src/test/ui/consts/const-eval/issue-104390.stderr b/tests/ui/consts/const-eval/issue-104390.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-104390.stderr rename to tests/ui/consts/const-eval/issue-104390.stderr diff --git a/src/test/ui/consts/const-eval/issue-43197.rs b/tests/ui/consts/const-eval/issue-43197.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-43197.rs rename to tests/ui/consts/const-eval/issue-43197.rs diff --git a/src/test/ui/consts/const-eval/issue-43197.stderr b/tests/ui/consts/const-eval/issue-43197.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-43197.stderr rename to tests/ui/consts/const-eval/issue-43197.stderr diff --git a/src/test/ui/consts/const-eval/issue-44578.rs b/tests/ui/consts/const-eval/issue-44578.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-44578.rs rename to tests/ui/consts/const-eval/issue-44578.rs diff --git a/src/test/ui/consts/const-eval/issue-44578.stderr b/tests/ui/consts/const-eval/issue-44578.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-44578.stderr rename to tests/ui/consts/const-eval/issue-44578.stderr diff --git a/src/test/ui/consts/const-eval/issue-47971.rs b/tests/ui/consts/const-eval/issue-47971.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-47971.rs rename to tests/ui/consts/const-eval/issue-47971.rs diff --git a/src/test/ui/consts/const-eval/issue-49296.rs b/tests/ui/consts/const-eval/issue-49296.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-49296.rs rename to tests/ui/consts/const-eval/issue-49296.rs diff --git a/src/test/ui/consts/const-eval/issue-49296.stderr b/tests/ui/consts/const-eval/issue-49296.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-49296.stderr rename to tests/ui/consts/const-eval/issue-49296.stderr diff --git a/src/test/ui/consts/const-eval/issue-50706.rs b/tests/ui/consts/const-eval/issue-50706.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-50706.rs rename to tests/ui/consts/const-eval/issue-50706.rs diff --git a/src/test/ui/consts/const-eval/issue-50814-2.rs b/tests/ui/consts/const-eval/issue-50814-2.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-50814-2.rs rename to tests/ui/consts/const-eval/issue-50814-2.rs diff --git a/src/test/ui/consts/const-eval/issue-50814-2.stderr b/tests/ui/consts/const-eval/issue-50814-2.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-50814-2.stderr rename to tests/ui/consts/const-eval/issue-50814-2.stderr diff --git a/src/test/ui/consts/const-eval/issue-50814.rs b/tests/ui/consts/const-eval/issue-50814.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-50814.rs rename to tests/ui/consts/const-eval/issue-50814.rs diff --git a/src/test/ui/consts/const-eval/issue-50814.stderr b/tests/ui/consts/const-eval/issue-50814.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-50814.stderr rename to tests/ui/consts/const-eval/issue-50814.stderr diff --git a/src/test/ui/consts/const-eval/issue-51300.rs b/tests/ui/consts/const-eval/issue-51300.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-51300.rs rename to tests/ui/consts/const-eval/issue-51300.rs diff --git a/src/test/ui/consts/const-eval/issue-52475.rs b/tests/ui/consts/const-eval/issue-52475.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-52475.rs rename to tests/ui/consts/const-eval/issue-52475.rs diff --git a/src/test/ui/consts/const-eval/issue-52475.stderr b/tests/ui/consts/const-eval/issue-52475.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-52475.stderr rename to tests/ui/consts/const-eval/issue-52475.stderr diff --git a/src/test/ui/consts/const-eval/issue-53157.rs b/tests/ui/consts/const-eval/issue-53157.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-53157.rs rename to tests/ui/consts/const-eval/issue-53157.rs diff --git a/src/test/ui/consts/const-eval/issue-53401.rs b/tests/ui/consts/const-eval/issue-53401.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-53401.rs rename to tests/ui/consts/const-eval/issue-53401.rs diff --git a/src/test/ui/consts/const-eval/issue-55541.rs b/tests/ui/consts/const-eval/issue-55541.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-55541.rs rename to tests/ui/consts/const-eval/issue-55541.rs diff --git a/src/test/ui/consts/const-eval/issue-64908.rs b/tests/ui/consts/const-eval/issue-64908.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-64908.rs rename to tests/ui/consts/const-eval/issue-64908.rs diff --git a/src/test/ui/consts/const-eval/issue-64970.rs b/tests/ui/consts/const-eval/issue-64970.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-64970.rs rename to tests/ui/consts/const-eval/issue-64970.rs diff --git a/src/test/ui/consts/const-eval/issue-65394.rs b/tests/ui/consts/const-eval/issue-65394.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-65394.rs rename to tests/ui/consts/const-eval/issue-65394.rs diff --git a/src/test/ui/consts/const-eval/issue-65394.stderr b/tests/ui/consts/const-eval/issue-65394.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-65394.stderr rename to tests/ui/consts/const-eval/issue-65394.stderr diff --git a/src/test/ui/consts/const-eval/issue-70723.rs b/tests/ui/consts/const-eval/issue-70723.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-70723.rs rename to tests/ui/consts/const-eval/issue-70723.rs diff --git a/src/test/ui/consts/const-eval/issue-70723.stderr b/tests/ui/consts/const-eval/issue-70723.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-70723.stderr rename to tests/ui/consts/const-eval/issue-70723.stderr diff --git a/src/test/ui/consts/const-eval/issue-70804-fn-subtyping.rs b/tests/ui/consts/const-eval/issue-70804-fn-subtyping.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-70804-fn-subtyping.rs rename to tests/ui/consts/const-eval/issue-70804-fn-subtyping.rs diff --git a/src/test/ui/consts/const-eval/issue-84957-const-str-as-bytes.rs b/tests/ui/consts/const-eval/issue-84957-const-str-as-bytes.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-84957-const-str-as-bytes.rs rename to tests/ui/consts/const-eval/issue-84957-const-str-as-bytes.rs diff --git a/src/test/ui/consts/const-eval/issue-85155.rs b/tests/ui/consts/const-eval/issue-85155.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-85155.rs rename to tests/ui/consts/const-eval/issue-85155.rs diff --git a/src/test/ui/consts/const-eval/issue-85155.stderr b/tests/ui/consts/const-eval/issue-85155.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-85155.stderr rename to tests/ui/consts/const-eval/issue-85155.stderr diff --git a/src/test/ui/consts/const-eval/issue-85907.rs b/tests/ui/consts/const-eval/issue-85907.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-85907.rs rename to tests/ui/consts/const-eval/issue-85907.rs diff --git a/src/test/ui/consts/const-eval/issue-85907.stderr b/tests/ui/consts/const-eval/issue-85907.stderr similarity index 100% rename from src/test/ui/consts/const-eval/issue-85907.stderr rename to tests/ui/consts/const-eval/issue-85907.stderr diff --git a/src/test/ui/consts/const-eval/issue-91827-extern-types.rs b/tests/ui/consts/const-eval/issue-91827-extern-types.rs similarity index 100% rename from src/test/ui/consts/const-eval/issue-91827-extern-types.rs rename to tests/ui/consts/const-eval/issue-91827-extern-types.rs diff --git a/src/test/ui/consts/const-eval/livedrop.rs b/tests/ui/consts/const-eval/livedrop.rs similarity index 100% rename from src/test/ui/consts/const-eval/livedrop.rs rename to tests/ui/consts/const-eval/livedrop.rs diff --git a/src/test/ui/consts/const-eval/livedrop.stderr b/tests/ui/consts/const-eval/livedrop.stderr similarity index 100% rename from src/test/ui/consts/const-eval/livedrop.stderr rename to tests/ui/consts/const-eval/livedrop.stderr diff --git a/src/test/ui/consts/const-eval/match-test-ptr-null.rs b/tests/ui/consts/const-eval/match-test-ptr-null.rs similarity index 100% rename from src/test/ui/consts/const-eval/match-test-ptr-null.rs rename to tests/ui/consts/const-eval/match-test-ptr-null.rs diff --git a/src/test/ui/consts/const-eval/match-test-ptr-null.stderr b/tests/ui/consts/const-eval/match-test-ptr-null.stderr similarity index 100% rename from src/test/ui/consts/const-eval/match-test-ptr-null.stderr rename to tests/ui/consts/const-eval/match-test-ptr-null.stderr diff --git a/src/test/ui/consts/const-eval/mod-static-with-const-fn.rs b/tests/ui/consts/const-eval/mod-static-with-const-fn.rs similarity index 100% rename from src/test/ui/consts/const-eval/mod-static-with-const-fn.rs rename to tests/ui/consts/const-eval/mod-static-with-const-fn.rs diff --git a/src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr b/tests/ui/consts/const-eval/mod-static-with-const-fn.stderr similarity index 100% rename from src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr rename to tests/ui/consts/const-eval/mod-static-with-const-fn.stderr diff --git a/src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs b/tests/ui/consts/const-eval/no_lint_for_statically_known_error.rs similarity index 100% rename from src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs rename to tests/ui/consts/const-eval/no_lint_for_statically_known_error.rs diff --git a/src/test/ui/consts/const-eval/nrvo.rs b/tests/ui/consts/const-eval/nrvo.rs similarity index 100% rename from src/test/ui/consts/const-eval/nrvo.rs rename to tests/ui/consts/const-eval/nrvo.rs diff --git a/src/test/ui/consts/const-eval/panic-assoc-never-type.rs b/tests/ui/consts/const-eval/panic-assoc-never-type.rs similarity index 100% rename from src/test/ui/consts/const-eval/panic-assoc-never-type.rs rename to tests/ui/consts/const-eval/panic-assoc-never-type.rs diff --git a/src/test/ui/consts/const-eval/panic-assoc-never-type.stderr b/tests/ui/consts/const-eval/panic-assoc-never-type.stderr similarity index 100% rename from src/test/ui/consts/const-eval/panic-assoc-never-type.stderr rename to tests/ui/consts/const-eval/panic-assoc-never-type.stderr diff --git a/src/test/ui/consts/const-eval/panic-never-type.rs b/tests/ui/consts/const-eval/panic-never-type.rs similarity index 100% rename from src/test/ui/consts/const-eval/panic-never-type.rs rename to tests/ui/consts/const-eval/panic-never-type.rs diff --git a/src/test/ui/consts/const-eval/panic-never-type.stderr b/tests/ui/consts/const-eval/panic-never-type.stderr similarity index 100% rename from src/test/ui/consts/const-eval/panic-never-type.stderr rename to tests/ui/consts/const-eval/panic-never-type.stderr diff --git a/src/test/ui/consts/const-eval/partial_ptr_overwrite.rs b/tests/ui/consts/const-eval/partial_ptr_overwrite.rs similarity index 100% rename from src/test/ui/consts/const-eval/partial_ptr_overwrite.rs rename to tests/ui/consts/const-eval/partial_ptr_overwrite.rs diff --git a/src/test/ui/consts/const-eval/partial_ptr_overwrite.stderr b/tests/ui/consts/const-eval/partial_ptr_overwrite.stderr similarity index 100% rename from src/test/ui/consts/const-eval/partial_ptr_overwrite.stderr rename to tests/ui/consts/const-eval/partial_ptr_overwrite.stderr diff --git a/src/test/ui/consts/const-eval/promote-static.rs b/tests/ui/consts/const-eval/promote-static.rs similarity index 100% rename from src/test/ui/consts/const-eval/promote-static.rs rename to tests/ui/consts/const-eval/promote-static.rs diff --git a/src/test/ui/consts/const-eval/promote_mutable_zst_mir_borrowck.rs b/tests/ui/consts/const-eval/promote_mutable_zst_mir_borrowck.rs similarity index 100% rename from src/test/ui/consts/const-eval/promote_mutable_zst_mir_borrowck.rs rename to tests/ui/consts/const-eval/promote_mutable_zst_mir_borrowck.rs diff --git a/src/test/ui/consts/const-eval/promoted_const_fn_fail.rs b/tests/ui/consts/const-eval/promoted_const_fn_fail.rs similarity index 100% rename from src/test/ui/consts/const-eval/promoted_const_fn_fail.rs rename to tests/ui/consts/const-eval/promoted_const_fn_fail.rs diff --git a/src/test/ui/consts/const-eval/promoted_const_fn_fail.stderr b/tests/ui/consts/const-eval/promoted_const_fn_fail.stderr similarity index 100% rename from src/test/ui/consts/const-eval/promoted_const_fn_fail.stderr rename to tests/ui/consts/const-eval/promoted_const_fn_fail.stderr diff --git a/src/test/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.rs b/tests/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.rs similarity index 100% rename from src/test/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.rs rename to tests/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.rs diff --git a/src/test/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.stderr b/tests/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.stderr similarity index 100% rename from src/test/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.stderr rename to tests/ui/consts/const-eval/promoted_const_fn_fail_deny_const_err.stderr diff --git a/src/test/ui/consts/const-eval/promoted_errors.noopt.stderr b/tests/ui/consts/const-eval/promoted_errors.noopt.stderr similarity index 100% rename from src/test/ui/consts/const-eval/promoted_errors.noopt.stderr rename to tests/ui/consts/const-eval/promoted_errors.noopt.stderr diff --git a/src/test/ui/consts/const-eval/promoted_errors.opt.stderr b/tests/ui/consts/const-eval/promoted_errors.opt.stderr similarity index 100% rename from src/test/ui/consts/const-eval/promoted_errors.opt.stderr rename to tests/ui/consts/const-eval/promoted_errors.opt.stderr diff --git a/src/test/ui/consts/const-eval/promoted_errors.opt_with_overflow_checks.stderr b/tests/ui/consts/const-eval/promoted_errors.opt_with_overflow_checks.stderr similarity index 100% rename from src/test/ui/consts/const-eval/promoted_errors.opt_with_overflow_checks.stderr rename to tests/ui/consts/const-eval/promoted_errors.opt_with_overflow_checks.stderr diff --git a/src/test/ui/consts/const-eval/promoted_errors.rs b/tests/ui/consts/const-eval/promoted_errors.rs similarity index 100% rename from src/test/ui/consts/const-eval/promoted_errors.rs rename to tests/ui/consts/const-eval/promoted_errors.rs diff --git a/src/test/ui/consts/const-eval/promoted_raw_ptr_ops.rs b/tests/ui/consts/const-eval/promoted_raw_ptr_ops.rs similarity index 100% rename from src/test/ui/consts/const-eval/promoted_raw_ptr_ops.rs rename to tests/ui/consts/const-eval/promoted_raw_ptr_ops.rs diff --git a/src/test/ui/consts/const-eval/promoted_raw_ptr_ops.stderr b/tests/ui/consts/const-eval/promoted_raw_ptr_ops.stderr similarity index 100% rename from src/test/ui/consts/const-eval/promoted_raw_ptr_ops.stderr rename to tests/ui/consts/const-eval/promoted_raw_ptr_ops.stderr diff --git a/src/test/ui/consts/const-eval/raw-bytes.32bit.stderr b/tests/ui/consts/const-eval/raw-bytes.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/raw-bytes.32bit.stderr rename to tests/ui/consts/const-eval/raw-bytes.32bit.stderr diff --git a/src/test/ui/consts/const-eval/raw-bytes.64bit.stderr b/tests/ui/consts/const-eval/raw-bytes.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/raw-bytes.64bit.stderr rename to tests/ui/consts/const-eval/raw-bytes.64bit.stderr diff --git a/src/test/ui/consts/const-eval/raw-bytes.rs b/tests/ui/consts/const-eval/raw-bytes.rs similarity index 100% rename from src/test/ui/consts/const-eval/raw-bytes.rs rename to tests/ui/consts/const-eval/raw-bytes.rs diff --git a/src/test/ui/consts/const-eval/ref_to_int_match.32bit.stderr b/tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ref_to_int_match.32bit.stderr rename to tests/ui/consts/const-eval/ref_to_int_match.32bit.stderr diff --git a/src/test/ui/consts/const-eval/ref_to_int_match.64bit.stderr b/tests/ui/consts/const-eval/ref_to_int_match.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ref_to_int_match.64bit.stderr rename to tests/ui/consts/const-eval/ref_to_int_match.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ref_to_int_match.rs b/tests/ui/consts/const-eval/ref_to_int_match.rs similarity index 100% rename from src/test/ui/consts/const-eval/ref_to_int_match.rs rename to tests/ui/consts/const-eval/ref_to_int_match.rs diff --git a/src/test/ui/consts/const-eval/shift_overflow.rs b/tests/ui/consts/const-eval/shift_overflow.rs similarity index 100% rename from src/test/ui/consts/const-eval/shift_overflow.rs rename to tests/ui/consts/const-eval/shift_overflow.rs diff --git a/src/test/ui/consts/const-eval/shift_overflow.stderr b/tests/ui/consts/const-eval/shift_overflow.stderr similarity index 100% rename from src/test/ui/consts/const-eval/shift_overflow.stderr rename to tests/ui/consts/const-eval/shift_overflow.stderr diff --git a/src/test/ui/consts/const-eval/simd/insert_extract.rs b/tests/ui/consts/const-eval/simd/insert_extract.rs similarity index 100% rename from src/test/ui/consts/const-eval/simd/insert_extract.rs rename to tests/ui/consts/const-eval/simd/insert_extract.rs diff --git a/src/test/ui/consts/const-eval/simple_with_undef.rs b/tests/ui/consts/const-eval/simple_with_undef.rs similarity index 100% rename from src/test/ui/consts/const-eval/simple_with_undef.rs rename to tests/ui/consts/const-eval/simple_with_undef.rs diff --git a/src/test/ui/consts/const-eval/size-of-t.rs b/tests/ui/consts/const-eval/size-of-t.rs similarity index 100% rename from src/test/ui/consts/const-eval/size-of-t.rs rename to tests/ui/consts/const-eval/size-of-t.rs diff --git a/src/test/ui/consts/const-eval/size-of-t.stderr b/tests/ui/consts/const-eval/size-of-t.stderr similarity index 100% rename from src/test/ui/consts/const-eval/size-of-t.stderr rename to tests/ui/consts/const-eval/size-of-t.stderr diff --git a/src/test/ui/consts/const-eval/strlen.rs b/tests/ui/consts/const-eval/strlen.rs similarity index 100% rename from src/test/ui/consts/const-eval/strlen.rs rename to tests/ui/consts/const-eval/strlen.rs diff --git a/src/test/ui/consts/const-eval/transmute-const-promotion.rs b/tests/ui/consts/const-eval/transmute-const-promotion.rs similarity index 100% rename from src/test/ui/consts/const-eval/transmute-const-promotion.rs rename to tests/ui/consts/const-eval/transmute-const-promotion.rs diff --git a/src/test/ui/consts/const-eval/transmute-const-promotion.stderr b/tests/ui/consts/const-eval/transmute-const-promotion.stderr similarity index 100% rename from src/test/ui/consts/const-eval/transmute-const-promotion.stderr rename to tests/ui/consts/const-eval/transmute-const-promotion.stderr diff --git a/src/test/ui/consts/const-eval/transmute-const.32bit.stderr b/tests/ui/consts/const-eval/transmute-const.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/transmute-const.32bit.stderr rename to tests/ui/consts/const-eval/transmute-const.32bit.stderr diff --git a/src/test/ui/consts/const-eval/transmute-const.64bit.stderr b/tests/ui/consts/const-eval/transmute-const.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/transmute-const.64bit.stderr rename to tests/ui/consts/const-eval/transmute-const.64bit.stderr diff --git a/src/test/ui/consts/const-eval/transmute-const.rs b/tests/ui/consts/const-eval/transmute-const.rs similarity index 100% rename from src/test/ui/consts/const-eval/transmute-const.rs rename to tests/ui/consts/const-eval/transmute-const.rs diff --git a/src/test/ui/consts/const-eval/ub-enum-overwrite.rs b/tests/ui/consts/const-eval/ub-enum-overwrite.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-enum-overwrite.rs rename to tests/ui/consts/const-eval/ub-enum-overwrite.rs diff --git a/src/test/ui/consts/const-eval/ub-enum-overwrite.stderr b/tests/ui/consts/const-eval/ub-enum-overwrite.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-enum-overwrite.stderr rename to tests/ui/consts/const-eval/ub-enum-overwrite.stderr diff --git a/src/test/ui/consts/const-eval/ub-enum.32bit.stderr b/tests/ui/consts/const-eval/ub-enum.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-enum.32bit.stderr rename to tests/ui/consts/const-eval/ub-enum.32bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-enum.64bit.stderr b/tests/ui/consts/const-eval/ub-enum.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-enum.64bit.stderr rename to tests/ui/consts/const-eval/ub-enum.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-enum.rs b/tests/ui/consts/const-eval/ub-enum.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-enum.rs rename to tests/ui/consts/const-eval/ub-enum.rs diff --git a/src/test/ui/consts/const-eval/ub-incorrect-vtable.32bit.stderr b/tests/ui/consts/const-eval/ub-incorrect-vtable.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-incorrect-vtable.32bit.stderr rename to tests/ui/consts/const-eval/ub-incorrect-vtable.32bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-incorrect-vtable.64bit.stderr b/tests/ui/consts/const-eval/ub-incorrect-vtable.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-incorrect-vtable.64bit.stderr rename to tests/ui/consts/const-eval/ub-incorrect-vtable.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-incorrect-vtable.rs b/tests/ui/consts/const-eval/ub-incorrect-vtable.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-incorrect-vtable.rs rename to tests/ui/consts/const-eval/ub-incorrect-vtable.rs diff --git a/src/test/ui/consts/const-eval/ub-int-array.32bit.stderr b/tests/ui/consts/const-eval/ub-int-array.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-int-array.32bit.stderr rename to tests/ui/consts/const-eval/ub-int-array.32bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-int-array.64bit.stderr b/tests/ui/consts/const-eval/ub-int-array.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-int-array.64bit.stderr rename to tests/ui/consts/const-eval/ub-int-array.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-int-array.rs b/tests/ui/consts/const-eval/ub-int-array.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-int-array.rs rename to tests/ui/consts/const-eval/ub-int-array.rs diff --git a/src/test/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr b/tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr rename to tests/ui/consts/const-eval/ub-nonnull.chalk.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-nonnull.rs b/tests/ui/consts/const-eval/ub-nonnull.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-nonnull.rs rename to tests/ui/consts/const-eval/ub-nonnull.rs diff --git a/src/test/ui/consts/const-eval/ub-nonnull.stderr b/tests/ui/consts/const-eval/ub-nonnull.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-nonnull.stderr rename to tests/ui/consts/const-eval/ub-nonnull.stderr diff --git a/src/test/ui/consts/const-eval/ub-ref-ptr.rs b/tests/ui/consts/const-eval/ub-ref-ptr.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-ref-ptr.rs rename to tests/ui/consts/const-eval/ub-ref-ptr.rs diff --git a/src/test/ui/consts/const-eval/ub-ref-ptr.stderr b/tests/ui/consts/const-eval/ub-ref-ptr.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-ref-ptr.stderr rename to tests/ui/consts/const-eval/ub-ref-ptr.stderr diff --git a/src/test/ui/consts/const-eval/ub-uninhabit.rs b/tests/ui/consts/const-eval/ub-uninhabit.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-uninhabit.rs rename to tests/ui/consts/const-eval/ub-uninhabit.rs diff --git a/src/test/ui/consts/const-eval/ub-uninhabit.stderr b/tests/ui/consts/const-eval/ub-uninhabit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-uninhabit.stderr rename to tests/ui/consts/const-eval/ub-uninhabit.stderr diff --git a/src/test/ui/consts/const-eval/ub-upvars.32bit.stderr b/tests/ui/consts/const-eval/ub-upvars.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-upvars.32bit.stderr rename to tests/ui/consts/const-eval/ub-upvars.32bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-upvars.64bit.stderr b/tests/ui/consts/const-eval/ub-upvars.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-upvars.64bit.stderr rename to tests/ui/consts/const-eval/ub-upvars.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-upvars.rs b/tests/ui/consts/const-eval/ub-upvars.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-upvars.rs rename to tests/ui/consts/const-eval/ub-upvars.rs diff --git a/src/test/ui/consts/const-eval/ub-wide-ptr.chalk.64bit.stderr b/tests/ui/consts/const-eval/ub-wide-ptr.chalk.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-wide-ptr.chalk.64bit.stderr rename to tests/ui/consts/const-eval/ub-wide-ptr.chalk.64bit.stderr diff --git a/src/test/ui/consts/const-eval/ub-wide-ptr.rs b/tests/ui/consts/const-eval/ub-wide-ptr.rs similarity index 100% rename from src/test/ui/consts/const-eval/ub-wide-ptr.rs rename to tests/ui/consts/const-eval/ub-wide-ptr.rs diff --git a/src/test/ui/consts/const-eval/ub-wide-ptr.stderr b/tests/ui/consts/const-eval/ub-wide-ptr.stderr similarity index 100% rename from src/test/ui/consts/const-eval/ub-wide-ptr.stderr rename to tests/ui/consts/const-eval/ub-wide-ptr.stderr diff --git a/src/test/ui/consts/const-eval/union-const-eval-field.rs b/tests/ui/consts/const-eval/union-const-eval-field.rs similarity index 100% rename from src/test/ui/consts/const-eval/union-const-eval-field.rs rename to tests/ui/consts/const-eval/union-const-eval-field.rs diff --git a/src/test/ui/consts/const-eval/union-const-eval-field.stderr b/tests/ui/consts/const-eval/union-const-eval-field.stderr similarity index 100% rename from src/test/ui/consts/const-eval/union-const-eval-field.stderr rename to tests/ui/consts/const-eval/union-const-eval-field.stderr diff --git a/src/test/ui/consts/const-eval/union-ice.rs b/tests/ui/consts/const-eval/union-ice.rs similarity index 100% rename from src/test/ui/consts/const-eval/union-ice.rs rename to tests/ui/consts/const-eval/union-ice.rs diff --git a/src/test/ui/consts/const-eval/union-ice.stderr b/tests/ui/consts/const-eval/union-ice.stderr similarity index 100% rename from src/test/ui/consts/const-eval/union-ice.stderr rename to tests/ui/consts/const-eval/union-ice.stderr diff --git a/src/test/ui/consts/const-eval/union-ub.32bit.stderr b/tests/ui/consts/const-eval/union-ub.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/union-ub.32bit.stderr rename to tests/ui/consts/const-eval/union-ub.32bit.stderr diff --git a/src/test/ui/consts/const-eval/union-ub.64bit.stderr b/tests/ui/consts/const-eval/union-ub.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/union-ub.64bit.stderr rename to tests/ui/consts/const-eval/union-ub.64bit.stderr diff --git a/src/test/ui/consts/const-eval/union-ub.rs b/tests/ui/consts/const-eval/union-ub.rs similarity index 100% rename from src/test/ui/consts/const-eval/union-ub.rs rename to tests/ui/consts/const-eval/union-ub.rs diff --git a/src/test/ui/consts/const-eval/union_promotion.rs b/tests/ui/consts/const-eval/union_promotion.rs similarity index 100% rename from src/test/ui/consts/const-eval/union_promotion.rs rename to tests/ui/consts/const-eval/union_promotion.rs diff --git a/src/test/ui/consts/const-eval/union_promotion.stderr b/tests/ui/consts/const-eval/union_promotion.stderr similarity index 100% rename from src/test/ui/consts/const-eval/union_promotion.stderr rename to tests/ui/consts/const-eval/union_promotion.stderr diff --git a/src/test/ui/consts/const-eval/unused-broken-const.rs b/tests/ui/consts/const-eval/unused-broken-const.rs similarity index 100% rename from src/test/ui/consts/const-eval/unused-broken-const.rs rename to tests/ui/consts/const-eval/unused-broken-const.rs diff --git a/src/test/ui/consts/const-eval/unused-broken-const.stderr b/tests/ui/consts/const-eval/unused-broken-const.stderr similarity index 100% rename from src/test/ui/consts/const-eval/unused-broken-const.stderr rename to tests/ui/consts/const-eval/unused-broken-const.stderr diff --git a/src/test/ui/consts/const-eval/unwind-abort.rs b/tests/ui/consts/const-eval/unwind-abort.rs similarity index 100% rename from src/test/ui/consts/const-eval/unwind-abort.rs rename to tests/ui/consts/const-eval/unwind-abort.rs diff --git a/src/test/ui/consts/const-eval/unwind-abort.stderr b/tests/ui/consts/const-eval/unwind-abort.stderr similarity index 100% rename from src/test/ui/consts/const-eval/unwind-abort.stderr rename to tests/ui/consts/const-eval/unwind-abort.stderr diff --git a/src/test/ui/consts/const-eval/valid-const.rs b/tests/ui/consts/const-eval/valid-const.rs similarity index 100% rename from src/test/ui/consts/const-eval/valid-const.rs rename to tests/ui/consts/const-eval/valid-const.rs diff --git a/src/test/ui/consts/const-eval/validate_uninhabited_zsts.32bit.stderr b/tests/ui/consts/const-eval/validate_uninhabited_zsts.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/validate_uninhabited_zsts.32bit.stderr rename to tests/ui/consts/const-eval/validate_uninhabited_zsts.32bit.stderr diff --git a/src/test/ui/consts/const-eval/validate_uninhabited_zsts.64bit.stderr b/tests/ui/consts/const-eval/validate_uninhabited_zsts.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-eval/validate_uninhabited_zsts.64bit.stderr rename to tests/ui/consts/const-eval/validate_uninhabited_zsts.64bit.stderr diff --git a/src/test/ui/consts/const-eval/validate_uninhabited_zsts.rs b/tests/ui/consts/const-eval/validate_uninhabited_zsts.rs similarity index 100% rename from src/test/ui/consts/const-eval/validate_uninhabited_zsts.rs rename to tests/ui/consts/const-eval/validate_uninhabited_zsts.rs diff --git a/src/test/ui/consts/const-eval/write-to-uninhabited-enum-variant.rs b/tests/ui/consts/const-eval/write-to-uninhabited-enum-variant.rs similarity index 100% rename from src/test/ui/consts/const-eval/write-to-uninhabited-enum-variant.rs rename to tests/ui/consts/const-eval/write-to-uninhabited-enum-variant.rs diff --git a/src/test/ui/consts/const-eval/zst_operand_eval.rs b/tests/ui/consts/const-eval/zst_operand_eval.rs similarity index 100% rename from src/test/ui/consts/const-eval/zst_operand_eval.rs rename to tests/ui/consts/const-eval/zst_operand_eval.rs diff --git a/src/test/ui/consts/const-expr-addr-operator.rs b/tests/ui/consts/const-expr-addr-operator.rs similarity index 100% rename from src/test/ui/consts/const-expr-addr-operator.rs rename to tests/ui/consts/const-expr-addr-operator.rs diff --git a/src/test/ui/consts/const-expr-in-fixed-length-vec.rs b/tests/ui/consts/const-expr-in-fixed-length-vec.rs similarity index 100% rename from src/test/ui/consts/const-expr-in-fixed-length-vec.rs rename to tests/ui/consts/const-expr-in-fixed-length-vec.rs diff --git a/src/test/ui/consts/const-expr-in-vec-repeat.rs b/tests/ui/consts/const-expr-in-vec-repeat.rs similarity index 100% rename from src/test/ui/consts/const-expr-in-vec-repeat.rs rename to tests/ui/consts/const-expr-in-vec-repeat.rs diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs b/tests/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs rename to tests/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.stderr b/tests/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.stderr rename to tests/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.stderr diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.rs b/tests/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.rs rename to tests/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.rs diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr b/tests/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr rename to tests/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr b/tests/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr rename to tests/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.mir.stderr diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.rs b/tests/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.rs rename to tests/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.rs diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.thir.stderr b/tests/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.thir.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.thir.stderr rename to tests/ui/consts/const-extern-fn/const-extern-fn-requires-unsafe.thir.stderr diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn.rs b/tests/ui/consts/const-extern-fn/const-extern-fn.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/const-extern-fn.rs rename to tests/ui/consts/const-extern-fn/const-extern-fn.rs diff --git a/src/test/ui/consts/const-extern-fn/feature-gate-const_extern_fn.rs b/tests/ui/consts/const-extern-fn/feature-gate-const_extern_fn.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/feature-gate-const_extern_fn.rs rename to tests/ui/consts/const-extern-fn/feature-gate-const_extern_fn.rs diff --git a/src/test/ui/consts/const-extern-fn/feature-gate-const_extern_fn.stderr b/tests/ui/consts/const-extern-fn/feature-gate-const_extern_fn.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/feature-gate-const_extern_fn.stderr rename to tests/ui/consts/const-extern-fn/feature-gate-const_extern_fn.stderr diff --git a/src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.rs b/tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.rs rename to tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.rs diff --git a/src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.stderr b/tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.stderr rename to tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier-2.stderr diff --git a/src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.rs b/tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.rs similarity index 100% rename from src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.rs rename to tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.rs diff --git a/src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.stderr b/tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.stderr similarity index 100% rename from src/test/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.stderr rename to tests/ui/consts/const-extern-fn/issue-68062-const-extern-fns-dont-need-fn-specifier.stderr diff --git a/src/test/ui/consts/const-extern-function.rs b/tests/ui/consts/const-extern-function.rs similarity index 100% rename from src/test/ui/consts/const-extern-function.rs rename to tests/ui/consts/const-extern-function.rs diff --git a/src/test/ui/consts/const-external-macro-const-err.rs b/tests/ui/consts/const-external-macro-const-err.rs similarity index 100% rename from src/test/ui/consts/const-external-macro-const-err.rs rename to tests/ui/consts/const-external-macro-const-err.rs diff --git a/src/test/ui/consts/const-external-macro-const-err.stderr b/tests/ui/consts/const-external-macro-const-err.stderr similarity index 100% rename from src/test/ui/consts/const-external-macro-const-err.stderr rename to tests/ui/consts/const-external-macro-const-err.stderr diff --git a/src/test/ui/consts/const-fields-and-indexing.rs b/tests/ui/consts/const-fields-and-indexing.rs similarity index 100% rename from src/test/ui/consts/const-fields-and-indexing.rs rename to tests/ui/consts/const-fields-and-indexing.rs diff --git a/src/test/ui/consts/const-float-bits-conv.rs b/tests/ui/consts/const-float-bits-conv.rs similarity index 100% rename from src/test/ui/consts/const-float-bits-conv.rs rename to tests/ui/consts/const-float-bits-conv.rs diff --git a/src/test/ui/consts/const-float-bits-reject-conv.rs b/tests/ui/consts/const-float-bits-reject-conv.rs similarity index 100% rename from src/test/ui/consts/const-float-bits-reject-conv.rs rename to tests/ui/consts/const-float-bits-reject-conv.rs diff --git a/src/test/ui/consts/const-float-bits-reject-conv.stderr b/tests/ui/consts/const-float-bits-reject-conv.stderr similarity index 100% rename from src/test/ui/consts/const-float-bits-reject-conv.stderr rename to tests/ui/consts/const-float-bits-reject-conv.stderr diff --git a/src/test/ui/consts/const-float-classify.rs b/tests/ui/consts/const-float-classify.rs similarity index 100% rename from src/test/ui/consts/const-float-classify.rs rename to tests/ui/consts/const-float-classify.rs diff --git a/src/test/ui/consts/const-fn-const-eval.rs b/tests/ui/consts/const-fn-const-eval.rs similarity index 100% rename from src/test/ui/consts/const-fn-const-eval.rs rename to tests/ui/consts/const-fn-const-eval.rs diff --git a/src/test/ui/consts/const-fn-destructuring-arg.rs b/tests/ui/consts/const-fn-destructuring-arg.rs similarity index 100% rename from src/test/ui/consts/const-fn-destructuring-arg.rs rename to tests/ui/consts/const-fn-destructuring-arg.rs diff --git a/src/test/ui/consts/const-fn-error.rs b/tests/ui/consts/const-fn-error.rs similarity index 100% rename from src/test/ui/consts/const-fn-error.rs rename to tests/ui/consts/const-fn-error.rs diff --git a/src/test/ui/consts/const-fn-error.stderr b/tests/ui/consts/const-fn-error.stderr similarity index 100% rename from src/test/ui/consts/const-fn-error.stderr rename to tests/ui/consts/const-fn-error.stderr diff --git a/src/test/ui/consts/const-fn-in-vec.rs b/tests/ui/consts/const-fn-in-vec.rs similarity index 100% rename from src/test/ui/consts/const-fn-in-vec.rs rename to tests/ui/consts/const-fn-in-vec.rs diff --git a/src/test/ui/consts/const-fn-in-vec.stderr b/tests/ui/consts/const-fn-in-vec.stderr similarity index 100% rename from src/test/ui/consts/const-fn-in-vec.stderr rename to tests/ui/consts/const-fn-in-vec.stderr diff --git a/src/test/ui/consts/const-fn-method.rs b/tests/ui/consts/const-fn-method.rs similarity index 100% rename from src/test/ui/consts/const-fn-method.rs rename to tests/ui/consts/const-fn-method.rs diff --git a/src/test/ui/consts/const-fn-mismatch.rs b/tests/ui/consts/const-fn-mismatch.rs similarity index 100% rename from src/test/ui/consts/const-fn-mismatch.rs rename to tests/ui/consts/const-fn-mismatch.rs diff --git a/src/test/ui/consts/const-fn-mismatch.stderr b/tests/ui/consts/const-fn-mismatch.stderr similarity index 100% rename from src/test/ui/consts/const-fn-mismatch.stderr rename to tests/ui/consts/const-fn-mismatch.stderr diff --git a/src/test/ui/consts/const-fn-nested.rs b/tests/ui/consts/const-fn-nested.rs similarity index 100% rename from src/test/ui/consts/const-fn-nested.rs rename to tests/ui/consts/const-fn-nested.rs diff --git a/src/test/ui/consts/const-fn-not-in-trait.rs b/tests/ui/consts/const-fn-not-in-trait.rs similarity index 100% rename from src/test/ui/consts/const-fn-not-in-trait.rs rename to tests/ui/consts/const-fn-not-in-trait.rs diff --git a/src/test/ui/consts/const-fn-not-in-trait.stderr b/tests/ui/consts/const-fn-not-in-trait.stderr similarity index 100% rename from src/test/ui/consts/const-fn-not-in-trait.stderr rename to tests/ui/consts/const-fn-not-in-trait.stderr diff --git a/src/test/ui/consts/const-fn-not-safe-for-const.rs b/tests/ui/consts/const-fn-not-safe-for-const.rs similarity index 100% rename from src/test/ui/consts/const-fn-not-safe-for-const.rs rename to tests/ui/consts/const-fn-not-safe-for-const.rs diff --git a/src/test/ui/consts/const-fn-not-safe-for-const.stderr b/tests/ui/consts/const-fn-not-safe-for-const.stderr similarity index 100% rename from src/test/ui/consts/const-fn-not-safe-for-const.stderr rename to tests/ui/consts/const-fn-not-safe-for-const.stderr diff --git a/src/test/ui/consts/const-fn-ptr.rs b/tests/ui/consts/const-fn-ptr.rs similarity index 100% rename from src/test/ui/consts/const-fn-ptr.rs rename to tests/ui/consts/const-fn-ptr.rs diff --git a/src/test/ui/consts/const-fn-ptr.stderr b/tests/ui/consts/const-fn-ptr.stderr similarity index 100% rename from src/test/ui/consts/const-fn-ptr.stderr rename to tests/ui/consts/const-fn-ptr.stderr diff --git a/src/test/ui/consts/const-fn-stability-calls-3.rs b/tests/ui/consts/const-fn-stability-calls-3.rs similarity index 100% rename from src/test/ui/consts/const-fn-stability-calls-3.rs rename to tests/ui/consts/const-fn-stability-calls-3.rs diff --git a/src/test/ui/consts/const-fn-stability-calls.rs b/tests/ui/consts/const-fn-stability-calls.rs similarity index 100% rename from src/test/ui/consts/const-fn-stability-calls.rs rename to tests/ui/consts/const-fn-stability-calls.rs diff --git a/src/test/ui/consts/const-fn-type-name-any.rs b/tests/ui/consts/const-fn-type-name-any.rs similarity index 100% rename from src/test/ui/consts/const-fn-type-name-any.rs rename to tests/ui/consts/const-fn-type-name-any.rs diff --git a/src/test/ui/consts/const-fn-type-name.rs b/tests/ui/consts/const-fn-type-name.rs similarity index 100% rename from src/test/ui/consts/const-fn-type-name.rs rename to tests/ui/consts/const-fn-type-name.rs diff --git a/src/test/ui/consts/const-fn-val.rs b/tests/ui/consts/const-fn-val.rs similarity index 100% rename from src/test/ui/consts/const-fn-val.rs rename to tests/ui/consts/const-fn-val.rs diff --git a/src/test/ui/consts/const-fn-zst-args.rs b/tests/ui/consts/const-fn-zst-args.rs similarity index 100% rename from src/test/ui/consts/const-fn-zst-args.rs rename to tests/ui/consts/const-fn-zst-args.rs diff --git a/src/test/ui/consts/const-fn.rs b/tests/ui/consts/const-fn.rs similarity index 100% rename from src/test/ui/consts/const-fn.rs rename to tests/ui/consts/const-fn.rs diff --git a/src/test/ui/consts/const-for-feature-gate.rs b/tests/ui/consts/const-for-feature-gate.rs similarity index 100% rename from src/test/ui/consts/const-for-feature-gate.rs rename to tests/ui/consts/const-for-feature-gate.rs diff --git a/src/test/ui/consts/const-for-feature-gate.stderr b/tests/ui/consts/const-for-feature-gate.stderr similarity index 100% rename from src/test/ui/consts/const-for-feature-gate.stderr rename to tests/ui/consts/const-for-feature-gate.stderr diff --git a/src/test/ui/consts/const-for.rs b/tests/ui/consts/const-for.rs similarity index 100% rename from src/test/ui/consts/const-for.rs rename to tests/ui/consts/const-for.rs diff --git a/src/test/ui/consts/const-for.stderr b/tests/ui/consts/const-for.stderr similarity index 100% rename from src/test/ui/consts/const-for.stderr rename to tests/ui/consts/const-for.stderr diff --git a/src/test/ui/consts/const-index-feature-gate.rs b/tests/ui/consts/const-index-feature-gate.rs similarity index 100% rename from src/test/ui/consts/const-index-feature-gate.rs rename to tests/ui/consts/const-index-feature-gate.rs diff --git a/src/test/ui/consts/const-int-arithmetic-overflow.rs b/tests/ui/consts/const-int-arithmetic-overflow.rs similarity index 100% rename from src/test/ui/consts/const-int-arithmetic-overflow.rs rename to tests/ui/consts/const-int-arithmetic-overflow.rs diff --git a/src/test/ui/consts/const-int-arithmetic.rs b/tests/ui/consts/const-int-arithmetic.rs similarity index 100% rename from src/test/ui/consts/const-int-arithmetic.rs rename to tests/ui/consts/const-int-arithmetic.rs diff --git a/src/test/ui/consts/const-int-conversion-rpass.rs b/tests/ui/consts/const-int-conversion-rpass.rs similarity index 100% rename from src/test/ui/consts/const-int-conversion-rpass.rs rename to tests/ui/consts/const-int-conversion-rpass.rs diff --git a/src/test/ui/consts/const-int-conversion.rs b/tests/ui/consts/const-int-conversion.rs similarity index 100% rename from src/test/ui/consts/const-int-conversion.rs rename to tests/ui/consts/const-int-conversion.rs diff --git a/src/test/ui/consts/const-int-conversion.stderr b/tests/ui/consts/const-int-conversion.stderr similarity index 100% rename from src/test/ui/consts/const-int-conversion.stderr rename to tests/ui/consts/const-int-conversion.stderr diff --git a/src/test/ui/consts/const-int-overflowing-rpass.rs b/tests/ui/consts/const-int-overflowing-rpass.rs similarity index 100% rename from src/test/ui/consts/const-int-overflowing-rpass.rs rename to tests/ui/consts/const-int-overflowing-rpass.rs diff --git a/src/test/ui/consts/const-int-overflowing.rs b/tests/ui/consts/const-int-overflowing.rs similarity index 100% rename from src/test/ui/consts/const-int-overflowing.rs rename to tests/ui/consts/const-int-overflowing.rs diff --git a/src/test/ui/consts/const-int-overflowing.stderr b/tests/ui/consts/const-int-overflowing.stderr similarity index 100% rename from src/test/ui/consts/const-int-overflowing.stderr rename to tests/ui/consts/const-int-overflowing.stderr diff --git a/src/test/ui/consts/const-int-pow-rpass.rs b/tests/ui/consts/const-int-pow-rpass.rs similarity index 100% rename from src/test/ui/consts/const-int-pow-rpass.rs rename to tests/ui/consts/const-int-pow-rpass.rs diff --git a/src/test/ui/consts/const-int-rotate-rpass.rs b/tests/ui/consts/const-int-rotate-rpass.rs similarity index 100% rename from src/test/ui/consts/const-int-rotate-rpass.rs rename to tests/ui/consts/const-int-rotate-rpass.rs diff --git a/src/test/ui/consts/const-int-rotate.rs b/tests/ui/consts/const-int-rotate.rs similarity index 100% rename from src/test/ui/consts/const-int-rotate.rs rename to tests/ui/consts/const-int-rotate.rs diff --git a/src/test/ui/consts/const-int-rotate.stderr b/tests/ui/consts/const-int-rotate.stderr similarity index 100% rename from src/test/ui/consts/const-int-rotate.stderr rename to tests/ui/consts/const-int-rotate.stderr diff --git a/src/test/ui/consts/const-int-saturating-arith.rs b/tests/ui/consts/const-int-saturating-arith.rs similarity index 100% rename from src/test/ui/consts/const-int-saturating-arith.rs rename to tests/ui/consts/const-int-saturating-arith.rs diff --git a/src/test/ui/consts/const-int-sign-rpass.rs b/tests/ui/consts/const-int-sign-rpass.rs similarity index 100% rename from src/test/ui/consts/const-int-sign-rpass.rs rename to tests/ui/consts/const-int-sign-rpass.rs diff --git a/src/test/ui/consts/const-int-sign.rs b/tests/ui/consts/const-int-sign.rs similarity index 100% rename from src/test/ui/consts/const-int-sign.rs rename to tests/ui/consts/const-int-sign.rs diff --git a/src/test/ui/consts/const-int-sign.stderr b/tests/ui/consts/const-int-sign.stderr similarity index 100% rename from src/test/ui/consts/const-int-sign.stderr rename to tests/ui/consts/const-int-sign.stderr diff --git a/src/test/ui/consts/const-int-unchecked.rs b/tests/ui/consts/const-int-unchecked.rs similarity index 100% rename from src/test/ui/consts/const-int-unchecked.rs rename to tests/ui/consts/const-int-unchecked.rs diff --git a/src/test/ui/consts/const-int-unchecked.stderr b/tests/ui/consts/const-int-unchecked.stderr similarity index 100% rename from src/test/ui/consts/const-int-unchecked.stderr rename to tests/ui/consts/const-int-unchecked.stderr diff --git a/src/test/ui/consts/const-int-wrapping-rpass.rs b/tests/ui/consts/const-int-wrapping-rpass.rs similarity index 100% rename from src/test/ui/consts/const-int-wrapping-rpass.rs rename to tests/ui/consts/const-int-wrapping-rpass.rs diff --git a/src/test/ui/consts/const-int-wrapping.rs b/tests/ui/consts/const-int-wrapping.rs similarity index 100% rename from src/test/ui/consts/const-int-wrapping.rs rename to tests/ui/consts/const-int-wrapping.rs diff --git a/src/test/ui/consts/const-int-wrapping.stderr b/tests/ui/consts/const-int-wrapping.stderr similarity index 100% rename from src/test/ui/consts/const-int-wrapping.stderr rename to tests/ui/consts/const-int-wrapping.stderr diff --git a/src/test/ui/consts/const-integer-bool-ops.rs b/tests/ui/consts/const-integer-bool-ops.rs similarity index 100% rename from src/test/ui/consts/const-integer-bool-ops.rs rename to tests/ui/consts/const-integer-bool-ops.rs diff --git a/src/test/ui/consts/const-integer-bool-ops.stderr b/tests/ui/consts/const-integer-bool-ops.stderr similarity index 100% rename from src/test/ui/consts/const-integer-bool-ops.stderr rename to tests/ui/consts/const-integer-bool-ops.stderr diff --git a/src/test/ui/consts/const-labeled-break.rs b/tests/ui/consts/const-labeled-break.rs similarity index 100% rename from src/test/ui/consts/const-labeled-break.rs rename to tests/ui/consts/const-labeled-break.rs diff --git a/src/test/ui/consts/const-len-underflow-separate-spans.rs b/tests/ui/consts/const-len-underflow-separate-spans.rs similarity index 100% rename from src/test/ui/consts/const-len-underflow-separate-spans.rs rename to tests/ui/consts/const-len-underflow-separate-spans.rs diff --git a/src/test/ui/consts/const-len-underflow-separate-spans.stderr b/tests/ui/consts/const-len-underflow-separate-spans.stderr similarity index 100% rename from src/test/ui/consts/const-len-underflow-separate-spans.stderr rename to tests/ui/consts/const-len-underflow-separate-spans.stderr diff --git a/src/test/ui/consts/const-len-underflow-subspans.rs b/tests/ui/consts/const-len-underflow-subspans.rs similarity index 100% rename from src/test/ui/consts/const-len-underflow-subspans.rs rename to tests/ui/consts/const-len-underflow-subspans.rs diff --git a/src/test/ui/consts/const-len-underflow-subspans.stderr b/tests/ui/consts/const-len-underflow-subspans.stderr similarity index 100% rename from src/test/ui/consts/const-len-underflow-subspans.stderr rename to tests/ui/consts/const-len-underflow-subspans.stderr diff --git a/src/test/ui/consts/const-match-check.eval1.stderr b/tests/ui/consts/const-match-check.eval1.stderr similarity index 100% rename from src/test/ui/consts/const-match-check.eval1.stderr rename to tests/ui/consts/const-match-check.eval1.stderr diff --git a/src/test/ui/consts/const-match-check.eval2.stderr b/tests/ui/consts/const-match-check.eval2.stderr similarity index 100% rename from src/test/ui/consts/const-match-check.eval2.stderr rename to tests/ui/consts/const-match-check.eval2.stderr diff --git a/src/test/ui/consts/const-match-check.matchck.stderr b/tests/ui/consts/const-match-check.matchck.stderr similarity index 100% rename from src/test/ui/consts/const-match-check.matchck.stderr rename to tests/ui/consts/const-match-check.matchck.stderr diff --git a/src/test/ui/consts/const-match-check.rs b/tests/ui/consts/const-match-check.rs similarity index 100% rename from src/test/ui/consts/const-match-check.rs rename to tests/ui/consts/const-match-check.rs diff --git a/src/test/ui/consts/const-match-pattern-arm.rs b/tests/ui/consts/const-match-pattern-arm.rs similarity index 100% rename from src/test/ui/consts/const-match-pattern-arm.rs rename to tests/ui/consts/const-match-pattern-arm.rs diff --git a/src/test/ui/consts/const-meth-pattern.rs b/tests/ui/consts/const-meth-pattern.rs similarity index 100% rename from src/test/ui/consts/const-meth-pattern.rs rename to tests/ui/consts/const-meth-pattern.rs diff --git a/src/test/ui/consts/const-multi-ref.rs b/tests/ui/consts/const-multi-ref.rs similarity index 100% rename from src/test/ui/consts/const-multi-ref.rs rename to tests/ui/consts/const-multi-ref.rs diff --git a/src/test/ui/consts/const-multi-ref.stderr b/tests/ui/consts/const-multi-ref.stderr similarity index 100% rename from src/test/ui/consts/const-multi-ref.stderr rename to tests/ui/consts/const-multi-ref.stderr diff --git a/src/test/ui/consts/const-mut-refs/const_mut_address_of.rs b/tests/ui/consts/const-mut-refs/const_mut_address_of.rs similarity index 100% rename from src/test/ui/consts/const-mut-refs/const_mut_address_of.rs rename to tests/ui/consts/const-mut-refs/const_mut_address_of.rs diff --git a/src/test/ui/consts/const-mut-refs/const_mut_refs.rs b/tests/ui/consts/const-mut-refs/const_mut_refs.rs similarity index 100% rename from src/test/ui/consts/const-mut-refs/const_mut_refs.rs rename to tests/ui/consts/const-mut-refs/const_mut_refs.rs diff --git a/src/test/ui/consts/const-mut-refs/feature-gate-const_mut_refs.rs b/tests/ui/consts/const-mut-refs/feature-gate-const_mut_refs.rs similarity index 100% rename from src/test/ui/consts/const-mut-refs/feature-gate-const_mut_refs.rs rename to tests/ui/consts/const-mut-refs/feature-gate-const_mut_refs.rs diff --git a/src/test/ui/consts/const-mut-refs/feature-gate-const_mut_refs.stderr b/tests/ui/consts/const-mut-refs/feature-gate-const_mut_refs.stderr similarity index 100% rename from src/test/ui/consts/const-mut-refs/feature-gate-const_mut_refs.stderr rename to tests/ui/consts/const-mut-refs/feature-gate-const_mut_refs.stderr diff --git a/src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr b/tests/ui/consts/const-mut-refs/issue-76510.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-mut-refs/issue-76510.32bit.stderr rename to tests/ui/consts/const-mut-refs/issue-76510.32bit.stderr diff --git a/src/test/ui/consts/const-mut-refs/issue-76510.64bit.stderr b/tests/ui/consts/const-mut-refs/issue-76510.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-mut-refs/issue-76510.64bit.stderr rename to tests/ui/consts/const-mut-refs/issue-76510.64bit.stderr diff --git a/src/test/ui/consts/const-mut-refs/issue-76510.rs b/tests/ui/consts/const-mut-refs/issue-76510.rs similarity index 100% rename from src/test/ui/consts/const-mut-refs/issue-76510.rs rename to tests/ui/consts/const-mut-refs/issue-76510.rs diff --git a/src/test/ui/consts/const-mut-refs/mut_ref_in_final.rs b/tests/ui/consts/const-mut-refs/mut_ref_in_final.rs similarity index 100% rename from src/test/ui/consts/const-mut-refs/mut_ref_in_final.rs rename to tests/ui/consts/const-mut-refs/mut_ref_in_final.rs diff --git a/src/test/ui/consts/const-mut-refs/mut_ref_in_final.stderr b/tests/ui/consts/const-mut-refs/mut_ref_in_final.stderr similarity index 100% rename from src/test/ui/consts/const-mut-refs/mut_ref_in_final.stderr rename to tests/ui/consts/const-mut-refs/mut_ref_in_final.stderr diff --git a/src/test/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs b/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs similarity index 100% rename from src/test/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs rename to tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.rs diff --git a/src/test/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.stderr b/tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.stderr similarity index 100% rename from src/test/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.stderr rename to tests/ui/consts/const-mut-refs/mut_ref_in_final_dynamic_check.stderr diff --git a/src/test/ui/consts/const-needs_drop-monomorphic.rs b/tests/ui/consts/const-needs_drop-monomorphic.rs similarity index 100% rename from src/test/ui/consts/const-needs_drop-monomorphic.rs rename to tests/ui/consts/const-needs_drop-monomorphic.rs diff --git a/src/test/ui/consts/const-needs_drop-monomorphic.stderr b/tests/ui/consts/const-needs_drop-monomorphic.stderr similarity index 100% rename from src/test/ui/consts/const-needs_drop-monomorphic.stderr rename to tests/ui/consts/const-needs_drop-monomorphic.stderr diff --git a/src/test/ui/consts/const-needs_drop.rs b/tests/ui/consts/const-needs_drop.rs similarity index 100% rename from src/test/ui/consts/const-needs_drop.rs rename to tests/ui/consts/const-needs_drop.rs diff --git a/src/test/ui/consts/const-negation.rs b/tests/ui/consts/const-negation.rs similarity index 100% rename from src/test/ui/consts/const-negation.rs rename to tests/ui/consts/const-negation.rs diff --git a/src/test/ui/consts/const-negative.rs b/tests/ui/consts/const-negative.rs similarity index 100% rename from src/test/ui/consts/const-negative.rs rename to tests/ui/consts/const-negative.rs diff --git a/src/test/ui/consts/const-nullary-enum.rs b/tests/ui/consts/const-nullary-enum.rs similarity index 100% rename from src/test/ui/consts/const-nullary-enum.rs rename to tests/ui/consts/const-nullary-enum.rs diff --git a/src/test/ui/consts/const-nullary-univariant-enum.rs b/tests/ui/consts/const-nullary-univariant-enum.rs similarity index 100% rename from src/test/ui/consts/const-nullary-univariant-enum.rs rename to tests/ui/consts/const-nullary-univariant-enum.rs diff --git a/src/test/ui/consts/const-pattern-irrefutable.rs b/tests/ui/consts/const-pattern-irrefutable.rs similarity index 100% rename from src/test/ui/consts/const-pattern-irrefutable.rs rename to tests/ui/consts/const-pattern-irrefutable.rs diff --git a/src/test/ui/consts/const-pattern-irrefutable.stderr b/tests/ui/consts/const-pattern-irrefutable.stderr similarity index 100% rename from src/test/ui/consts/const-pattern-irrefutable.stderr rename to tests/ui/consts/const-pattern-irrefutable.stderr diff --git a/src/test/ui/consts/const-pattern-not-const-evaluable.rs b/tests/ui/consts/const-pattern-not-const-evaluable.rs similarity index 100% rename from src/test/ui/consts/const-pattern-not-const-evaluable.rs rename to tests/ui/consts/const-pattern-not-const-evaluable.rs diff --git a/src/test/ui/consts/const-pattern-variant.rs b/tests/ui/consts/const-pattern-variant.rs similarity index 100% rename from src/test/ui/consts/const-pattern-variant.rs rename to tests/ui/consts/const-pattern-variant.rs diff --git a/src/test/ui/consts/const-points-to-static.32bit.stderr b/tests/ui/consts/const-points-to-static.32bit.stderr similarity index 100% rename from src/test/ui/consts/const-points-to-static.32bit.stderr rename to tests/ui/consts/const-points-to-static.32bit.stderr diff --git a/src/test/ui/consts/const-points-to-static.64bit.stderr b/tests/ui/consts/const-points-to-static.64bit.stderr similarity index 100% rename from src/test/ui/consts/const-points-to-static.64bit.stderr rename to tests/ui/consts/const-points-to-static.64bit.stderr diff --git a/src/test/ui/consts/const-points-to-static.rs b/tests/ui/consts/const-points-to-static.rs similarity index 100% rename from src/test/ui/consts/const-points-to-static.rs rename to tests/ui/consts/const-points-to-static.rs diff --git a/src/test/ui/consts/const-prop-ice.rs b/tests/ui/consts/const-prop-ice.rs similarity index 100% rename from src/test/ui/consts/const-prop-ice.rs rename to tests/ui/consts/const-prop-ice.rs diff --git a/src/test/ui/consts/const-prop-ice.stderr b/tests/ui/consts/const-prop-ice.stderr similarity index 100% rename from src/test/ui/consts/const-prop-ice.stderr rename to tests/ui/consts/const-prop-ice.stderr diff --git a/src/test/ui/consts/const-prop-ice2.rs b/tests/ui/consts/const-prop-ice2.rs similarity index 100% rename from src/test/ui/consts/const-prop-ice2.rs rename to tests/ui/consts/const-prop-ice2.rs diff --git a/src/test/ui/consts/const-prop-ice2.stderr b/tests/ui/consts/const-prop-ice2.stderr similarity index 100% rename from src/test/ui/consts/const-prop-ice2.stderr rename to tests/ui/consts/const-prop-ice2.stderr diff --git a/src/test/ui/consts/const-prop-ice3.rs b/tests/ui/consts/const-prop-ice3.rs similarity index 100% rename from src/test/ui/consts/const-prop-ice3.rs rename to tests/ui/consts/const-prop-ice3.rs diff --git a/src/test/ui/consts/const-prop-overflowing-casts.rs b/tests/ui/consts/const-prop-overflowing-casts.rs similarity index 100% rename from src/test/ui/consts/const-prop-overflowing-casts.rs rename to tests/ui/consts/const-prop-overflowing-casts.rs diff --git a/src/test/ui/consts/const-prop-read-static-in-const.rs b/tests/ui/consts/const-prop-read-static-in-const.rs similarity index 100% rename from src/test/ui/consts/const-prop-read-static-in-const.rs rename to tests/ui/consts/const-prop-read-static-in-const.rs diff --git a/src/test/ui/consts/const-prop-read-static-in-const.stderr b/tests/ui/consts/const-prop-read-static-in-const.stderr similarity index 100% rename from src/test/ui/consts/const-prop-read-static-in-const.stderr rename to tests/ui/consts/const-prop-read-static-in-const.stderr diff --git a/src/test/ui/consts/const-ptr-nonnull-rpass.rs b/tests/ui/consts/const-ptr-nonnull-rpass.rs similarity index 100% rename from src/test/ui/consts/const-ptr-nonnull-rpass.rs rename to tests/ui/consts/const-ptr-nonnull-rpass.rs diff --git a/src/test/ui/consts/const-ptr-nonnull.rs b/tests/ui/consts/const-ptr-nonnull.rs similarity index 100% rename from src/test/ui/consts/const-ptr-nonnull.rs rename to tests/ui/consts/const-ptr-nonnull.rs diff --git a/src/test/ui/consts/const-ptr-nonnull.stderr b/tests/ui/consts/const-ptr-nonnull.stderr similarity index 100% rename from src/test/ui/consts/const-ptr-nonnull.stderr rename to tests/ui/consts/const-ptr-nonnull.stderr diff --git a/src/test/ui/consts/const-ptr-unique-rpass.rs b/tests/ui/consts/const-ptr-unique-rpass.rs similarity index 100% rename from src/test/ui/consts/const-ptr-unique-rpass.rs rename to tests/ui/consts/const-ptr-unique-rpass.rs diff --git a/src/test/ui/consts/const-ptr-unique.rs b/tests/ui/consts/const-ptr-unique.rs similarity index 100% rename from src/test/ui/consts/const-ptr-unique.rs rename to tests/ui/consts/const-ptr-unique.rs diff --git a/src/test/ui/consts/const-ptr-unique.stderr b/tests/ui/consts/const-ptr-unique.stderr similarity index 100% rename from src/test/ui/consts/const-ptr-unique.stderr rename to tests/ui/consts/const-ptr-unique.stderr diff --git a/src/test/ui/consts/const-rec-and-tup.rs b/tests/ui/consts/const-rec-and-tup.rs similarity index 100% rename from src/test/ui/consts/const-rec-and-tup.rs rename to tests/ui/consts/const-rec-and-tup.rs diff --git a/src/test/ui/consts/const-region-ptrs-noncopy.rs b/tests/ui/consts/const-region-ptrs-noncopy.rs similarity index 100% rename from src/test/ui/consts/const-region-ptrs-noncopy.rs rename to tests/ui/consts/const-region-ptrs-noncopy.rs diff --git a/src/test/ui/consts/const-region-ptrs.rs b/tests/ui/consts/const-region-ptrs.rs similarity index 100% rename from src/test/ui/consts/const-region-ptrs.rs rename to tests/ui/consts/const-region-ptrs.rs diff --git a/src/test/ui/consts/const-repeated-values.rs b/tests/ui/consts/const-repeated-values.rs similarity index 100% rename from src/test/ui/consts/const-repeated-values.rs rename to tests/ui/consts/const-repeated-values.rs diff --git a/src/test/ui/consts/const-size_of-align_of.rs b/tests/ui/consts/const-size_of-align_of.rs similarity index 100% rename from src/test/ui/consts/const-size_of-align_of.rs rename to tests/ui/consts/const-size_of-align_of.rs diff --git a/src/test/ui/consts/const-size_of-cycle.rs b/tests/ui/consts/const-size_of-cycle.rs similarity index 100% rename from src/test/ui/consts/const-size_of-cycle.rs rename to tests/ui/consts/const-size_of-cycle.rs diff --git a/src/test/ui/consts/const-size_of-cycle.stderr b/tests/ui/consts/const-size_of-cycle.stderr similarity index 100% rename from src/test/ui/consts/const-size_of-cycle.stderr rename to tests/ui/consts/const-size_of-cycle.stderr diff --git a/src/test/ui/consts/const-size_of_val-align_of_val-extern-type.rs b/tests/ui/consts/const-size_of_val-align_of_val-extern-type.rs similarity index 100% rename from src/test/ui/consts/const-size_of_val-align_of_val-extern-type.rs rename to tests/ui/consts/const-size_of_val-align_of_val-extern-type.rs diff --git a/src/test/ui/consts/const-size_of_val-align_of_val-extern-type.stderr b/tests/ui/consts/const-size_of_val-align_of_val-extern-type.stderr similarity index 100% rename from src/test/ui/consts/const-size_of_val-align_of_val-extern-type.stderr rename to tests/ui/consts/const-size_of_val-align_of_val-extern-type.stderr diff --git a/src/test/ui/consts/const-size_of_val-align_of_val.rs b/tests/ui/consts/const-size_of_val-align_of_val.rs similarity index 100% rename from src/test/ui/consts/const-size_of_val-align_of_val.rs rename to tests/ui/consts/const-size_of_val-align_of_val.rs diff --git a/src/test/ui/consts/const-slice-oob.rs b/tests/ui/consts/const-slice-oob.rs similarity index 100% rename from src/test/ui/consts/const-slice-oob.rs rename to tests/ui/consts/const-slice-oob.rs diff --git a/src/test/ui/consts/const-slice-oob.stderr b/tests/ui/consts/const-slice-oob.stderr similarity index 100% rename from src/test/ui/consts/const-slice-oob.stderr rename to tests/ui/consts/const-slice-oob.stderr diff --git a/src/test/ui/consts/const-struct-offsets.rs b/tests/ui/consts/const-struct-offsets.rs similarity index 100% rename from src/test/ui/consts/const-struct-offsets.rs rename to tests/ui/consts/const-struct-offsets.rs diff --git a/src/test/ui/consts/const-struct.rs b/tests/ui/consts/const-struct.rs similarity index 100% rename from src/test/ui/consts/const-struct.rs rename to tests/ui/consts/const-struct.rs diff --git a/src/test/ui/consts/const-suggest-feature.rs b/tests/ui/consts/const-suggest-feature.rs similarity index 100% rename from src/test/ui/consts/const-suggest-feature.rs rename to tests/ui/consts/const-suggest-feature.rs diff --git a/src/test/ui/consts/const-suggest-feature.stderr b/tests/ui/consts/const-suggest-feature.stderr similarity index 100% rename from src/test/ui/consts/const-suggest-feature.stderr rename to tests/ui/consts/const-suggest-feature.stderr diff --git a/src/test/ui/consts/const-trait-to-trait.rs b/tests/ui/consts/const-trait-to-trait.rs similarity index 100% rename from src/test/ui/consts/const-trait-to-trait.rs rename to tests/ui/consts/const-trait-to-trait.rs diff --git a/src/test/ui/consts/const-try-feature-gate.rs b/tests/ui/consts/const-try-feature-gate.rs similarity index 100% rename from src/test/ui/consts/const-try-feature-gate.rs rename to tests/ui/consts/const-try-feature-gate.rs diff --git a/src/test/ui/consts/const-try-feature-gate.stderr b/tests/ui/consts/const-try-feature-gate.stderr similarity index 100% rename from src/test/ui/consts/const-try-feature-gate.stderr rename to tests/ui/consts/const-try-feature-gate.stderr diff --git a/src/test/ui/consts/const-try.rs b/tests/ui/consts/const-try.rs similarity index 100% rename from src/test/ui/consts/const-try.rs rename to tests/ui/consts/const-try.rs diff --git a/src/test/ui/consts/const-tup-index-span.rs b/tests/ui/consts/const-tup-index-span.rs similarity index 100% rename from src/test/ui/consts/const-tup-index-span.rs rename to tests/ui/consts/const-tup-index-span.rs diff --git a/src/test/ui/consts/const-tup-index-span.stderr b/tests/ui/consts/const-tup-index-span.stderr similarity index 100% rename from src/test/ui/consts/const-tup-index-span.stderr rename to tests/ui/consts/const-tup-index-span.stderr diff --git a/src/test/ui/consts/const-tuple-struct.rs b/tests/ui/consts/const-tuple-struct.rs similarity index 100% rename from src/test/ui/consts/const-tuple-struct.rs rename to tests/ui/consts/const-tuple-struct.rs diff --git a/src/test/ui/consts/const-type-mismatch.rs b/tests/ui/consts/const-type-mismatch.rs similarity index 100% rename from src/test/ui/consts/const-type-mismatch.rs rename to tests/ui/consts/const-type-mismatch.rs diff --git a/src/test/ui/consts/const-type-mismatch.stderr b/tests/ui/consts/const-type-mismatch.stderr similarity index 100% rename from src/test/ui/consts/const-type-mismatch.stderr rename to tests/ui/consts/const-type-mismatch.stderr diff --git a/src/test/ui/consts/const-typeid-of-rpass.rs b/tests/ui/consts/const-typeid-of-rpass.rs similarity index 100% rename from src/test/ui/consts/const-typeid-of-rpass.rs rename to tests/ui/consts/const-typeid-of-rpass.rs diff --git a/src/test/ui/consts/const-unit-struct.rs b/tests/ui/consts/const-unit-struct.rs similarity index 100% rename from src/test/ui/consts/const-unit-struct.rs rename to tests/ui/consts/const-unit-struct.rs diff --git a/src/test/ui/consts/const-unsafe-fn.rs b/tests/ui/consts/const-unsafe-fn.rs similarity index 100% rename from src/test/ui/consts/const-unsafe-fn.rs rename to tests/ui/consts/const-unsafe-fn.rs diff --git a/src/test/ui/consts/const-unsized.rs b/tests/ui/consts/const-unsized.rs similarity index 100% rename from src/test/ui/consts/const-unsized.rs rename to tests/ui/consts/const-unsized.rs diff --git a/src/test/ui/consts/const-unsized.stderr b/tests/ui/consts/const-unsized.stderr similarity index 100% rename from src/test/ui/consts/const-unsized.stderr rename to tests/ui/consts/const-unsized.stderr diff --git a/src/test/ui/consts/const-unwrap.rs b/tests/ui/consts/const-unwrap.rs similarity index 100% rename from src/test/ui/consts/const-unwrap.rs rename to tests/ui/consts/const-unwrap.rs diff --git a/src/test/ui/consts/const-unwrap.stderr b/tests/ui/consts/const-unwrap.stderr similarity index 100% rename from src/test/ui/consts/const-unwrap.stderr rename to tests/ui/consts/const-unwrap.stderr diff --git a/src/test/ui/consts/const-validation-fail-55455.rs b/tests/ui/consts/const-validation-fail-55455.rs similarity index 100% rename from src/test/ui/consts/const-validation-fail-55455.rs rename to tests/ui/consts/const-validation-fail-55455.rs diff --git a/src/test/ui/consts/const-variant-count.rs b/tests/ui/consts/const-variant-count.rs similarity index 100% rename from src/test/ui/consts/const-variant-count.rs rename to tests/ui/consts/const-variant-count.rs diff --git a/src/test/ui/consts/const-vec-of-fns.rs b/tests/ui/consts/const-vec-of-fns.rs similarity index 100% rename from src/test/ui/consts/const-vec-of-fns.rs rename to tests/ui/consts/const-vec-of-fns.rs diff --git a/src/test/ui/consts/const-vec-syntax.rs b/tests/ui/consts/const-vec-syntax.rs similarity index 100% rename from src/test/ui/consts/const-vec-syntax.rs rename to tests/ui/consts/const-vec-syntax.rs diff --git a/src/test/ui/consts/const-vecs-and-slices.rs b/tests/ui/consts/const-vecs-and-slices.rs similarity index 100% rename from src/test/ui/consts/const-vecs-and-slices.rs rename to tests/ui/consts/const-vecs-and-slices.rs diff --git a/src/test/ui/consts/const.rs b/tests/ui/consts/const.rs similarity index 100% rename from src/test/ui/consts/const.rs rename to tests/ui/consts/const.rs diff --git a/src/test/ui/consts/const_constructor/const-construct-call.rs b/tests/ui/consts/const_constructor/const-construct-call.rs similarity index 100% rename from src/test/ui/consts/const_constructor/const-construct-call.rs rename to tests/ui/consts/const_constructor/const-construct-call.rs diff --git a/src/test/ui/consts/const_constructor/const_constructor_qpath.rs b/tests/ui/consts/const_constructor/const_constructor_qpath.rs similarity index 100% rename from src/test/ui/consts/const_constructor/const_constructor_qpath.rs rename to tests/ui/consts/const_constructor/const_constructor_qpath.rs diff --git a/src/test/ui/consts/const_discriminant.rs b/tests/ui/consts/const_discriminant.rs similarity index 100% rename from src/test/ui/consts/const_discriminant.rs rename to tests/ui/consts/const_discriminant.rs diff --git a/src/test/ui/consts/const_fn_floating_point_arithmetic.gated.stderr b/tests/ui/consts/const_fn_floating_point_arithmetic.gated.stderr similarity index 100% rename from src/test/ui/consts/const_fn_floating_point_arithmetic.gated.stderr rename to tests/ui/consts/const_fn_floating_point_arithmetic.gated.stderr diff --git a/src/test/ui/consts/const_fn_floating_point_arithmetic.rs b/tests/ui/consts/const_fn_floating_point_arithmetic.rs similarity index 100% rename from src/test/ui/consts/const_fn_floating_point_arithmetic.rs rename to tests/ui/consts/const_fn_floating_point_arithmetic.rs diff --git a/src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr b/tests/ui/consts/const_fn_floating_point_arithmetic.stock.stderr similarity index 100% rename from src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr rename to tests/ui/consts/const_fn_floating_point_arithmetic.stock.stderr diff --git a/src/test/ui/consts/const_fn_return_nested_fn_ptr.rs b/tests/ui/consts/const_fn_return_nested_fn_ptr.rs similarity index 100% rename from src/test/ui/consts/const_fn_return_nested_fn_ptr.rs rename to tests/ui/consts/const_fn_return_nested_fn_ptr.rs diff --git a/src/test/ui/consts/const_fn_unsize.rs b/tests/ui/consts/const_fn_unsize.rs similarity index 100% rename from src/test/ui/consts/const_fn_unsize.rs rename to tests/ui/consts/const_fn_unsize.rs diff --git a/src/test/ui/consts/const_forget.rs b/tests/ui/consts/const_forget.rs similarity index 100% rename from src/test/ui/consts/const_forget.rs rename to tests/ui/consts/const_forget.rs diff --git a/src/test/ui/consts/const_in_pattern/accept_structural.rs b/tests/ui/consts/const_in_pattern/accept_structural.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/accept_structural.rs rename to tests/ui/consts/const_in_pattern/accept_structural.rs diff --git a/src/test/ui/consts/const_in_pattern/auxiliary/consts.rs b/tests/ui/consts/const_in_pattern/auxiliary/consts.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/auxiliary/consts.rs rename to tests/ui/consts/const_in_pattern/auxiliary/consts.rs diff --git a/src/test/ui/consts/const_in_pattern/cross-crate-fail.rs b/tests/ui/consts/const_in_pattern/cross-crate-fail.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/cross-crate-fail.rs rename to tests/ui/consts/const_in_pattern/cross-crate-fail.rs diff --git a/src/test/ui/consts/const_in_pattern/cross-crate-fail.stderr b/tests/ui/consts/const_in_pattern/cross-crate-fail.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/cross-crate-fail.stderr rename to tests/ui/consts/const_in_pattern/cross-crate-fail.stderr diff --git a/src/test/ui/consts/const_in_pattern/cross-crate-pass.rs b/tests/ui/consts/const_in_pattern/cross-crate-pass.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/cross-crate-pass.rs rename to tests/ui/consts/const_in_pattern/cross-crate-pass.rs diff --git a/src/test/ui/consts/const_in_pattern/custom-eq-branch-pass.rs b/tests/ui/consts/const_in_pattern/custom-eq-branch-pass.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/custom-eq-branch-pass.rs rename to tests/ui/consts/const_in_pattern/custom-eq-branch-pass.rs diff --git a/src/test/ui/consts/const_in_pattern/custom-eq-branch-warn.rs b/tests/ui/consts/const_in_pattern/custom-eq-branch-warn.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/custom-eq-branch-warn.rs rename to tests/ui/consts/const_in_pattern/custom-eq-branch-warn.rs diff --git a/src/test/ui/consts/const_in_pattern/custom-eq-branch-warn.stderr b/tests/ui/consts/const_in_pattern/custom-eq-branch-warn.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/custom-eq-branch-warn.stderr rename to tests/ui/consts/const_in_pattern/custom-eq-branch-warn.stderr diff --git a/src/test/ui/consts/const_in_pattern/incomplete-slice.rs b/tests/ui/consts/const_in_pattern/incomplete-slice.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/incomplete-slice.rs rename to tests/ui/consts/const_in_pattern/incomplete-slice.rs diff --git a/src/test/ui/consts/const_in_pattern/incomplete-slice.stderr b/tests/ui/consts/const_in_pattern/incomplete-slice.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/incomplete-slice.stderr rename to tests/ui/consts/const_in_pattern/incomplete-slice.stderr diff --git a/src/test/ui/consts/const_in_pattern/issue-44333.rs b/tests/ui/consts/const_in_pattern/issue-44333.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-44333.rs rename to tests/ui/consts/const_in_pattern/issue-44333.rs diff --git a/src/test/ui/consts/const_in_pattern/issue-44333.stderr b/tests/ui/consts/const_in_pattern/issue-44333.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-44333.stderr rename to tests/ui/consts/const_in_pattern/issue-44333.stderr diff --git a/src/test/ui/consts/const_in_pattern/issue-53708.rs b/tests/ui/consts/const_in_pattern/issue-53708.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-53708.rs rename to tests/ui/consts/const_in_pattern/issue-53708.rs diff --git a/src/test/ui/consts/const_in_pattern/issue-62614.rs b/tests/ui/consts/const_in_pattern/issue-62614.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-62614.rs rename to tests/ui/consts/const_in_pattern/issue-62614.rs diff --git a/src/test/ui/consts/const_in_pattern/issue-65466.rs b/tests/ui/consts/const_in_pattern/issue-65466.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-65466.rs rename to tests/ui/consts/const_in_pattern/issue-65466.rs diff --git a/src/test/ui/consts/const_in_pattern/issue-73431.rs b/tests/ui/consts/const_in_pattern/issue-73431.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-73431.rs rename to tests/ui/consts/const_in_pattern/issue-73431.rs diff --git a/src/test/ui/consts/const_in_pattern/issue-73431.stderr b/tests/ui/consts/const_in_pattern/issue-73431.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-73431.stderr rename to tests/ui/consts/const_in_pattern/issue-73431.stderr diff --git a/src/test/ui/consts/const_in_pattern/issue-78057.rs b/tests/ui/consts/const_in_pattern/issue-78057.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-78057.rs rename to tests/ui/consts/const_in_pattern/issue-78057.rs diff --git a/src/test/ui/consts/const_in_pattern/issue-78057.stderr b/tests/ui/consts/const_in_pattern/issue-78057.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/issue-78057.stderr rename to tests/ui/consts/const_in_pattern/issue-78057.stderr diff --git a/src/test/ui/consts/const_in_pattern/no-eq-branch-fail.rs b/tests/ui/consts/const_in_pattern/no-eq-branch-fail.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/no-eq-branch-fail.rs rename to tests/ui/consts/const_in_pattern/no-eq-branch-fail.rs diff --git a/src/test/ui/consts/const_in_pattern/no-eq-branch-fail.stderr b/tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/no-eq-branch-fail.stderr rename to tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr diff --git a/src/test/ui/consts/const_in_pattern/reject_non_partial_eq.rs b/tests/ui/consts/const_in_pattern/reject_non_partial_eq.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/reject_non_partial_eq.rs rename to tests/ui/consts/const_in_pattern/reject_non_partial_eq.rs diff --git a/src/test/ui/consts/const_in_pattern/reject_non_partial_eq.stderr b/tests/ui/consts/const_in_pattern/reject_non_partial_eq.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/reject_non_partial_eq.stderr rename to tests/ui/consts/const_in_pattern/reject_non_partial_eq.stderr diff --git a/src/test/ui/consts/const_in_pattern/reject_non_structural.rs b/tests/ui/consts/const_in_pattern/reject_non_structural.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/reject_non_structural.rs rename to tests/ui/consts/const_in_pattern/reject_non_structural.rs diff --git a/src/test/ui/consts/const_in_pattern/reject_non_structural.stderr b/tests/ui/consts/const_in_pattern/reject_non_structural.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/reject_non_structural.stderr rename to tests/ui/consts/const_in_pattern/reject_non_structural.stderr diff --git a/src/test/ui/consts/const_in_pattern/warn_corner_cases.rs b/tests/ui/consts/const_in_pattern/warn_corner_cases.rs similarity index 100% rename from src/test/ui/consts/const_in_pattern/warn_corner_cases.rs rename to tests/ui/consts/const_in_pattern/warn_corner_cases.rs diff --git a/src/test/ui/consts/const_in_pattern/warn_corner_cases.stderr b/tests/ui/consts/const_in_pattern/warn_corner_cases.stderr similarity index 100% rename from src/test/ui/consts/const_in_pattern/warn_corner_cases.stderr rename to tests/ui/consts/const_in_pattern/warn_corner_cases.stderr diff --git a/src/test/ui/consts/const_let_assign.rs b/tests/ui/consts/const_let_assign.rs similarity index 100% rename from src/test/ui/consts/const_let_assign.rs rename to tests/ui/consts/const_let_assign.rs diff --git a/src/test/ui/consts/const_let_assign2.rs b/tests/ui/consts/const_let_assign2.rs similarity index 100% rename from src/test/ui/consts/const_let_assign2.rs rename to tests/ui/consts/const_let_assign2.rs diff --git a/src/test/ui/consts/const_let_assign3.rs b/tests/ui/consts/const_let_assign3.rs similarity index 100% rename from src/test/ui/consts/const_let_assign3.rs rename to tests/ui/consts/const_let_assign3.rs diff --git a/src/test/ui/consts/const_let_assign3.stderr b/tests/ui/consts/const_let_assign3.stderr similarity index 100% rename from src/test/ui/consts/const_let_assign3.stderr rename to tests/ui/consts/const_let_assign3.stderr diff --git a/src/test/ui/consts/const_let_eq.rs b/tests/ui/consts/const_let_eq.rs similarity index 100% rename from src/test/ui/consts/const_let_eq.rs rename to tests/ui/consts/const_let_eq.rs diff --git a/src/test/ui/consts/const_let_eq_float.rs b/tests/ui/consts/const_let_eq_float.rs similarity index 100% rename from src/test/ui/consts/const_let_eq_float.rs rename to tests/ui/consts/const_let_eq_float.rs diff --git a/src/test/ui/consts/const_let_irrefutable.rs b/tests/ui/consts/const_let_irrefutable.rs similarity index 100% rename from src/test/ui/consts/const_let_irrefutable.rs rename to tests/ui/consts/const_let_irrefutable.rs diff --git a/src/test/ui/consts/const_let_promote.rs b/tests/ui/consts/const_let_promote.rs similarity index 100% rename from src/test/ui/consts/const_let_promote.rs rename to tests/ui/consts/const_let_promote.rs diff --git a/src/test/ui/consts/const_let_refutable.rs b/tests/ui/consts/const_let_refutable.rs similarity index 100% rename from src/test/ui/consts/const_let_refutable.rs rename to tests/ui/consts/const_let_refutable.rs diff --git a/src/test/ui/consts/const_let_refutable.stderr b/tests/ui/consts/const_let_refutable.stderr similarity index 100% rename from src/test/ui/consts/const_let_refutable.stderr rename to tests/ui/consts/const_let_refutable.stderr diff --git a/src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs b/tests/ui/consts/const_limit/const_eval_limit_not_reached.rs similarity index 100% rename from src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs rename to tests/ui/consts/const_limit/const_eval_limit_not_reached.rs diff --git a/src/test/ui/consts/const_limit/const_eval_limit_overflow.rs b/tests/ui/consts/const_limit/const_eval_limit_overflow.rs similarity index 100% rename from src/test/ui/consts/const_limit/const_eval_limit_overflow.rs rename to tests/ui/consts/const_limit/const_eval_limit_overflow.rs diff --git a/src/test/ui/consts/const_limit/const_eval_limit_overflow.stderr b/tests/ui/consts/const_limit/const_eval_limit_overflow.stderr similarity index 100% rename from src/test/ui/consts/const_limit/const_eval_limit_overflow.stderr rename to tests/ui/consts/const_limit/const_eval_limit_overflow.stderr diff --git a/src/test/ui/consts/const_limit/const_eval_limit_reached.rs b/tests/ui/consts/const_limit/const_eval_limit_reached.rs similarity index 100% rename from src/test/ui/consts/const_limit/const_eval_limit_reached.rs rename to tests/ui/consts/const_limit/const_eval_limit_reached.rs diff --git a/src/test/ui/consts/const_limit/const_eval_limit_reached.stderr b/tests/ui/consts/const_limit/const_eval_limit_reached.stderr similarity index 100% rename from src/test/ui/consts/const_limit/const_eval_limit_reached.stderr rename to tests/ui/consts/const_limit/const_eval_limit_reached.stderr diff --git a/src/test/ui/consts/const_limit/feature-gate-const_eval_limit.rs b/tests/ui/consts/const_limit/feature-gate-const_eval_limit.rs similarity index 100% rename from src/test/ui/consts/const_limit/feature-gate-const_eval_limit.rs rename to tests/ui/consts/const_limit/feature-gate-const_eval_limit.rs diff --git a/src/test/ui/consts/const_limit/feature-gate-const_eval_limit.stderr b/tests/ui/consts/const_limit/feature-gate-const_eval_limit.stderr similarity index 100% rename from src/test/ui/consts/const_limit/feature-gate-const_eval_limit.stderr rename to tests/ui/consts/const_limit/feature-gate-const_eval_limit.stderr diff --git a/src/test/ui/consts/const_prop_slice_pat_ice.rs b/tests/ui/consts/const_prop_slice_pat_ice.rs similarity index 100% rename from src/test/ui/consts/const_prop_slice_pat_ice.rs rename to tests/ui/consts/const_prop_slice_pat_ice.rs diff --git a/src/test/ui/consts/const_short_circuit.rs b/tests/ui/consts/const_short_circuit.rs similarity index 100% rename from src/test/ui/consts/const_short_circuit.rs rename to tests/ui/consts/const_short_circuit.rs diff --git a/src/test/ui/consts/const_unsafe_unreachable.rs b/tests/ui/consts/const_unsafe_unreachable.rs similarity index 100% rename from src/test/ui/consts/const_unsafe_unreachable.rs rename to tests/ui/consts/const_unsafe_unreachable.rs diff --git a/src/test/ui/consts/const_unsafe_unreachable_ub.rs b/tests/ui/consts/const_unsafe_unreachable_ub.rs similarity index 100% rename from src/test/ui/consts/const_unsafe_unreachable_ub.rs rename to tests/ui/consts/const_unsafe_unreachable_ub.rs diff --git a/src/test/ui/consts/const_unsafe_unreachable_ub.stderr b/tests/ui/consts/const_unsafe_unreachable_ub.stderr similarity index 100% rename from src/test/ui/consts/const_unsafe_unreachable_ub.stderr rename to tests/ui/consts/const_unsafe_unreachable_ub.stderr diff --git a/src/test/ui/consts/constifconst-call-in-const-position.rs b/tests/ui/consts/constifconst-call-in-const-position.rs similarity index 100% rename from src/test/ui/consts/constifconst-call-in-const-position.rs rename to tests/ui/consts/constifconst-call-in-const-position.rs diff --git a/src/test/ui/consts/constifconst-call-in-const-position.stderr b/tests/ui/consts/constifconst-call-in-const-position.stderr similarity index 100% rename from src/test/ui/consts/constifconst-call-in-const-position.stderr rename to tests/ui/consts/constifconst-call-in-const-position.stderr diff --git a/src/test/ui/consts/consts-in-patterns.rs b/tests/ui/consts/consts-in-patterns.rs similarity index 100% rename from src/test/ui/consts/consts-in-patterns.rs rename to tests/ui/consts/consts-in-patterns.rs diff --git a/src/test/ui/consts/control-flow/assert.rs b/tests/ui/consts/control-flow/assert.rs similarity index 100% rename from src/test/ui/consts/control-flow/assert.rs rename to tests/ui/consts/control-flow/assert.rs diff --git a/src/test/ui/consts/control-flow/assert.stderr b/tests/ui/consts/control-flow/assert.stderr similarity index 100% rename from src/test/ui/consts/control-flow/assert.stderr rename to tests/ui/consts/control-flow/assert.stderr diff --git a/src/test/ui/consts/control-flow/basics.rs b/tests/ui/consts/control-flow/basics.rs similarity index 100% rename from src/test/ui/consts/control-flow/basics.rs rename to tests/ui/consts/control-flow/basics.rs diff --git a/src/test/ui/consts/control-flow/drop-fail.precise.stderr b/tests/ui/consts/control-flow/drop-fail.precise.stderr similarity index 100% rename from src/test/ui/consts/control-flow/drop-fail.precise.stderr rename to tests/ui/consts/control-flow/drop-fail.precise.stderr diff --git a/src/test/ui/consts/control-flow/drop-fail.rs b/tests/ui/consts/control-flow/drop-fail.rs similarity index 100% rename from src/test/ui/consts/control-flow/drop-fail.rs rename to tests/ui/consts/control-flow/drop-fail.rs diff --git a/src/test/ui/consts/control-flow/drop-fail.stock.stderr b/tests/ui/consts/control-flow/drop-fail.stock.stderr similarity index 100% rename from src/test/ui/consts/control-flow/drop-fail.stock.stderr rename to tests/ui/consts/control-flow/drop-fail.stock.stderr diff --git a/src/test/ui/consts/control-flow/drop-pass.rs b/tests/ui/consts/control-flow/drop-pass.rs similarity index 100% rename from src/test/ui/consts/control-flow/drop-pass.rs rename to tests/ui/consts/control-flow/drop-pass.rs diff --git a/src/test/ui/consts/control-flow/drop-precise.rs b/tests/ui/consts/control-flow/drop-precise.rs similarity index 100% rename from src/test/ui/consts/control-flow/drop-precise.rs rename to tests/ui/consts/control-flow/drop-precise.rs diff --git a/src/test/ui/consts/control-flow/exhaustive-c-like-enum-match.rs b/tests/ui/consts/control-flow/exhaustive-c-like-enum-match.rs similarity index 100% rename from src/test/ui/consts/control-flow/exhaustive-c-like-enum-match.rs rename to tests/ui/consts/control-flow/exhaustive-c-like-enum-match.rs diff --git a/src/test/ui/consts/control-flow/feature-gate-const-if-match.rs b/tests/ui/consts/control-flow/feature-gate-const-if-match.rs similarity index 100% rename from src/test/ui/consts/control-flow/feature-gate-const-if-match.rs rename to tests/ui/consts/control-flow/feature-gate-const-if-match.rs diff --git a/src/test/ui/consts/control-flow/interior-mutability.rs b/tests/ui/consts/control-flow/interior-mutability.rs similarity index 100% rename from src/test/ui/consts/control-flow/interior-mutability.rs rename to tests/ui/consts/control-flow/interior-mutability.rs diff --git a/src/test/ui/consts/control-flow/interior-mutability.stderr b/tests/ui/consts/control-flow/interior-mutability.stderr similarity index 100% rename from src/test/ui/consts/control-flow/interior-mutability.stderr rename to tests/ui/consts/control-flow/interior-mutability.stderr diff --git a/src/test/ui/consts/control-flow/issue-46843.rs b/tests/ui/consts/control-flow/issue-46843.rs similarity index 100% rename from src/test/ui/consts/control-flow/issue-46843.rs rename to tests/ui/consts/control-flow/issue-46843.rs diff --git a/src/test/ui/consts/control-flow/issue-46843.stderr b/tests/ui/consts/control-flow/issue-46843.stderr similarity index 100% rename from src/test/ui/consts/control-flow/issue-46843.stderr rename to tests/ui/consts/control-flow/issue-46843.stderr diff --git a/src/test/ui/consts/control-flow/issue-50577.rs b/tests/ui/consts/control-flow/issue-50577.rs similarity index 100% rename from src/test/ui/consts/control-flow/issue-50577.rs rename to tests/ui/consts/control-flow/issue-50577.rs diff --git a/src/test/ui/consts/control-flow/issue-50577.stderr b/tests/ui/consts/control-flow/issue-50577.stderr similarity index 100% rename from src/test/ui/consts/control-flow/issue-50577.stderr rename to tests/ui/consts/control-flow/issue-50577.stderr diff --git a/src/test/ui/consts/control-flow/loop.rs b/tests/ui/consts/control-flow/loop.rs similarity index 100% rename from src/test/ui/consts/control-flow/loop.rs rename to tests/ui/consts/control-flow/loop.rs diff --git a/src/test/ui/consts/control-flow/loop.stderr b/tests/ui/consts/control-flow/loop.stderr similarity index 100% rename from src/test/ui/consts/control-flow/loop.stderr rename to tests/ui/consts/control-flow/loop.stderr diff --git a/src/test/ui/consts/control-flow/short-circuit-let.rs b/tests/ui/consts/control-flow/short-circuit-let.rs similarity index 100% rename from src/test/ui/consts/control-flow/short-circuit-let.rs rename to tests/ui/consts/control-flow/short-circuit-let.rs diff --git a/src/test/ui/consts/control-flow/short-circuit.rs b/tests/ui/consts/control-flow/short-circuit.rs similarity index 100% rename from src/test/ui/consts/control-flow/short-circuit.rs rename to tests/ui/consts/control-flow/short-circuit.rs diff --git a/src/test/ui/consts/control-flow/single_variant_match_ice.rs b/tests/ui/consts/control-flow/single_variant_match_ice.rs similarity index 100% rename from src/test/ui/consts/control-flow/single_variant_match_ice.rs rename to tests/ui/consts/control-flow/single_variant_match_ice.rs diff --git a/src/test/ui/consts/control-flow/try.rs b/tests/ui/consts/control-flow/try.rs similarity index 100% rename from src/test/ui/consts/control-flow/try.rs rename to tests/ui/consts/control-flow/try.rs diff --git a/src/test/ui/consts/control-flow/try.stderr b/tests/ui/consts/control-flow/try.stderr similarity index 100% rename from src/test/ui/consts/control-flow/try.stderr rename to tests/ui/consts/control-flow/try.stderr diff --git a/src/test/ui/consts/copy-intrinsic.rs b/tests/ui/consts/copy-intrinsic.rs similarity index 100% rename from src/test/ui/consts/copy-intrinsic.rs rename to tests/ui/consts/copy-intrinsic.rs diff --git a/src/test/ui/consts/copy-intrinsic.stderr b/tests/ui/consts/copy-intrinsic.stderr similarity index 100% rename from src/test/ui/consts/copy-intrinsic.stderr rename to tests/ui/consts/copy-intrinsic.stderr diff --git a/src/test/ui/consts/dangling-alloc-id-ice.rs b/tests/ui/consts/dangling-alloc-id-ice.rs similarity index 100% rename from src/test/ui/consts/dangling-alloc-id-ice.rs rename to tests/ui/consts/dangling-alloc-id-ice.rs diff --git a/src/test/ui/consts/dangling-alloc-id-ice.stderr b/tests/ui/consts/dangling-alloc-id-ice.stderr similarity index 100% rename from src/test/ui/consts/dangling-alloc-id-ice.stderr rename to tests/ui/consts/dangling-alloc-id-ice.stderr diff --git a/src/test/ui/consts/dangling_raw_ptr.rs b/tests/ui/consts/dangling_raw_ptr.rs similarity index 100% rename from src/test/ui/consts/dangling_raw_ptr.rs rename to tests/ui/consts/dangling_raw_ptr.rs diff --git a/src/test/ui/consts/dangling_raw_ptr.stderr b/tests/ui/consts/dangling_raw_ptr.stderr similarity index 100% rename from src/test/ui/consts/dangling_raw_ptr.stderr rename to tests/ui/consts/dangling_raw_ptr.stderr diff --git a/src/test/ui/consts/deref_in_pattern.rs b/tests/ui/consts/deref_in_pattern.rs similarity index 100% rename from src/test/ui/consts/deref_in_pattern.rs rename to tests/ui/consts/deref_in_pattern.rs diff --git a/src/test/ui/consts/drop_box.rs b/tests/ui/consts/drop_box.rs similarity index 100% rename from src/test/ui/consts/drop_box.rs rename to tests/ui/consts/drop_box.rs diff --git a/src/test/ui/consts/drop_box.stderr b/tests/ui/consts/drop_box.stderr similarity index 100% rename from src/test/ui/consts/drop_box.stderr rename to tests/ui/consts/drop_box.stderr diff --git a/src/test/ui/consts/drop_none.rs b/tests/ui/consts/drop_none.rs similarity index 100% rename from src/test/ui/consts/drop_none.rs rename to tests/ui/consts/drop_none.rs diff --git a/src/test/ui/consts/drop_zst.rs b/tests/ui/consts/drop_zst.rs similarity index 100% rename from src/test/ui/consts/drop_zst.rs rename to tests/ui/consts/drop_zst.rs diff --git a/src/test/ui/consts/drop_zst.stderr b/tests/ui/consts/drop_zst.stderr similarity index 100% rename from src/test/ui/consts/drop_zst.stderr rename to tests/ui/consts/drop_zst.stderr diff --git a/src/test/ui/consts/enum-discr-type-err.rs b/tests/ui/consts/enum-discr-type-err.rs similarity index 100% rename from src/test/ui/consts/enum-discr-type-err.rs rename to tests/ui/consts/enum-discr-type-err.rs diff --git a/src/test/ui/consts/enum-discr-type-err.stderr b/tests/ui/consts/enum-discr-type-err.stderr similarity index 100% rename from src/test/ui/consts/enum-discr-type-err.stderr rename to tests/ui/consts/enum-discr-type-err.stderr diff --git a/src/test/ui/consts/eval-enum.rs b/tests/ui/consts/eval-enum.rs similarity index 100% rename from src/test/ui/consts/eval-enum.rs rename to tests/ui/consts/eval-enum.rs diff --git a/src/test/ui/consts/eval-enum.stderr b/tests/ui/consts/eval-enum.stderr similarity index 100% rename from src/test/ui/consts/eval-enum.stderr rename to tests/ui/consts/eval-enum.stderr diff --git a/src/test/ui/consts/extra-const-ub/detect-extra-ub.rs b/tests/ui/consts/extra-const-ub/detect-extra-ub.rs similarity index 100% rename from src/test/ui/consts/extra-const-ub/detect-extra-ub.rs rename to tests/ui/consts/extra-const-ub/detect-extra-ub.rs diff --git a/src/test/ui/consts/extra-const-ub/detect-extra-ub.with_flag.stderr b/tests/ui/consts/extra-const-ub/detect-extra-ub.with_flag.stderr similarity index 100% rename from src/test/ui/consts/extra-const-ub/detect-extra-ub.with_flag.stderr rename to tests/ui/consts/extra-const-ub/detect-extra-ub.with_flag.stderr diff --git a/src/test/ui/consts/extra-const-ub/issue-100771.rs b/tests/ui/consts/extra-const-ub/issue-100771.rs similarity index 100% rename from src/test/ui/consts/extra-const-ub/issue-100771.rs rename to tests/ui/consts/extra-const-ub/issue-100771.rs diff --git a/src/test/ui/consts/extra-const-ub/issue-101034.rs b/tests/ui/consts/extra-const-ub/issue-101034.rs similarity index 100% rename from src/test/ui/consts/extra-const-ub/issue-101034.rs rename to tests/ui/consts/extra-const-ub/issue-101034.rs diff --git a/src/test/ui/consts/fn_trait_refs.rs b/tests/ui/consts/fn_trait_refs.rs similarity index 100% rename from src/test/ui/consts/fn_trait_refs.rs rename to tests/ui/consts/fn_trait_refs.rs diff --git a/src/test/ui/consts/huge-values.rs b/tests/ui/consts/huge-values.rs similarity index 100% rename from src/test/ui/consts/huge-values.rs rename to tests/ui/consts/huge-values.rs diff --git a/src/test/ui/consts/ice-48279.rs b/tests/ui/consts/ice-48279.rs similarity index 100% rename from src/test/ui/consts/ice-48279.rs rename to tests/ui/consts/ice-48279.rs diff --git a/src/test/ui/consts/ice-zst-static-access.rs b/tests/ui/consts/ice-zst-static-access.rs similarity index 100% rename from src/test/ui/consts/ice-zst-static-access.rs rename to tests/ui/consts/ice-zst-static-access.rs diff --git a/src/test/ui/consts/inline_asm.rs b/tests/ui/consts/inline_asm.rs similarity index 100% rename from src/test/ui/consts/inline_asm.rs rename to tests/ui/consts/inline_asm.rs diff --git a/src/test/ui/consts/inline_asm.stderr b/tests/ui/consts/inline_asm.stderr similarity index 100% rename from src/test/ui/consts/inline_asm.stderr rename to tests/ui/consts/inline_asm.stderr diff --git a/src/test/ui/consts/int_ptr_for_zst_slices.rs b/tests/ui/consts/int_ptr_for_zst_slices.rs similarity index 100% rename from src/test/ui/consts/int_ptr_for_zst_slices.rs rename to tests/ui/consts/int_ptr_for_zst_slices.rs diff --git a/src/test/ui/consts/intrinsic_without_const_stab.rs b/tests/ui/consts/intrinsic_without_const_stab.rs similarity index 100% rename from src/test/ui/consts/intrinsic_without_const_stab.rs rename to tests/ui/consts/intrinsic_without_const_stab.rs diff --git a/src/test/ui/consts/intrinsic_without_const_stab.stderr b/tests/ui/consts/intrinsic_without_const_stab.stderr similarity index 100% rename from src/test/ui/consts/intrinsic_without_const_stab.stderr rename to tests/ui/consts/intrinsic_without_const_stab.stderr diff --git a/src/test/ui/consts/intrinsic_without_const_stab_fail.rs b/tests/ui/consts/intrinsic_without_const_stab_fail.rs similarity index 100% rename from src/test/ui/consts/intrinsic_without_const_stab_fail.rs rename to tests/ui/consts/intrinsic_without_const_stab_fail.rs diff --git a/src/test/ui/consts/intrinsic_without_const_stab_fail.stderr b/tests/ui/consts/intrinsic_without_const_stab_fail.stderr similarity index 100% rename from src/test/ui/consts/intrinsic_without_const_stab_fail.stderr rename to tests/ui/consts/intrinsic_without_const_stab_fail.stderr diff --git a/src/test/ui/consts/invalid-const-in-body.rs b/tests/ui/consts/invalid-const-in-body.rs similarity index 100% rename from src/test/ui/consts/invalid-const-in-body.rs rename to tests/ui/consts/invalid-const-in-body.rs diff --git a/src/test/ui/consts/invalid-const-in-body.stderr b/tests/ui/consts/invalid-const-in-body.stderr similarity index 100% rename from src/test/ui/consts/invalid-const-in-body.stderr rename to tests/ui/consts/invalid-const-in-body.stderr diff --git a/src/test/ui/consts/invalid-inline-const-in-match-arm.rs b/tests/ui/consts/invalid-inline-const-in-match-arm.rs similarity index 100% rename from src/test/ui/consts/invalid-inline-const-in-match-arm.rs rename to tests/ui/consts/invalid-inline-const-in-match-arm.rs diff --git a/src/test/ui/consts/invalid-inline-const-in-match-arm.stderr b/tests/ui/consts/invalid-inline-const-in-match-arm.stderr similarity index 100% rename from src/test/ui/consts/invalid-inline-const-in-match-arm.stderr rename to tests/ui/consts/invalid-inline-const-in-match-arm.stderr diff --git a/src/test/ui/consts/invalid-union.32bit.stderr b/tests/ui/consts/invalid-union.32bit.stderr similarity index 100% rename from src/test/ui/consts/invalid-union.32bit.stderr rename to tests/ui/consts/invalid-union.32bit.stderr diff --git a/src/test/ui/consts/invalid-union.64bit.stderr b/tests/ui/consts/invalid-union.64bit.stderr similarity index 100% rename from src/test/ui/consts/invalid-union.64bit.stderr rename to tests/ui/consts/invalid-union.64bit.stderr diff --git a/src/test/ui/consts/invalid-union.rs b/tests/ui/consts/invalid-union.rs similarity index 100% rename from src/test/ui/consts/invalid-union.rs rename to tests/ui/consts/invalid-union.rs diff --git a/src/test/ui/consts/invalid_promotion.rs b/tests/ui/consts/invalid_promotion.rs similarity index 100% rename from src/test/ui/consts/invalid_promotion.rs rename to tests/ui/consts/invalid_promotion.rs diff --git a/src/test/ui/consts/issue-102117.rs b/tests/ui/consts/issue-102117.rs similarity index 100% rename from src/test/ui/consts/issue-102117.rs rename to tests/ui/consts/issue-102117.rs diff --git a/src/test/ui/consts/issue-102117.stderr b/tests/ui/consts/issue-102117.stderr similarity index 100% rename from src/test/ui/consts/issue-102117.stderr rename to tests/ui/consts/issue-102117.stderr diff --git a/src/test/ui/consts/issue-103790.rs b/tests/ui/consts/issue-103790.rs similarity index 100% rename from src/test/ui/consts/issue-103790.rs rename to tests/ui/consts/issue-103790.rs diff --git a/src/test/ui/consts/issue-103790.stderr b/tests/ui/consts/issue-103790.stderr similarity index 100% rename from src/test/ui/consts/issue-103790.stderr rename to tests/ui/consts/issue-103790.stderr diff --git a/src/test/ui/consts/issue-104155.rs b/tests/ui/consts/issue-104155.rs similarity index 100% rename from src/test/ui/consts/issue-104155.rs rename to tests/ui/consts/issue-104155.rs diff --git a/src/test/ui/consts/issue-104396.rs b/tests/ui/consts/issue-104396.rs similarity index 100% rename from src/test/ui/consts/issue-104396.rs rename to tests/ui/consts/issue-104396.rs diff --git a/src/test/ui/consts/issue-104396.stderr b/tests/ui/consts/issue-104396.stderr similarity index 100% rename from src/test/ui/consts/issue-104396.stderr rename to tests/ui/consts/issue-104396.stderr diff --git a/src/test/ui/consts/issue-104609.rs b/tests/ui/consts/issue-104609.rs similarity index 100% rename from src/test/ui/consts/issue-104609.rs rename to tests/ui/consts/issue-104609.rs diff --git a/src/test/ui/consts/issue-104609.stderr b/tests/ui/consts/issue-104609.stderr similarity index 100% rename from src/test/ui/consts/issue-104609.stderr rename to tests/ui/consts/issue-104609.stderr diff --git a/src/test/ui/consts/issue-104768.rs b/tests/ui/consts/issue-104768.rs similarity index 100% rename from src/test/ui/consts/issue-104768.rs rename to tests/ui/consts/issue-104768.rs diff --git a/src/test/ui/consts/issue-104768.stderr b/tests/ui/consts/issue-104768.stderr similarity index 100% rename from src/test/ui/consts/issue-104768.stderr rename to tests/ui/consts/issue-104768.stderr diff --git a/src/test/ui/consts/issue-13837.rs b/tests/ui/consts/issue-13837.rs similarity index 100% rename from src/test/ui/consts/issue-13837.rs rename to tests/ui/consts/issue-13837.rs diff --git a/src/test/ui/consts/issue-13902.rs b/tests/ui/consts/issue-13902.rs similarity index 100% rename from src/test/ui/consts/issue-13902.rs rename to tests/ui/consts/issue-13902.rs diff --git a/src/test/ui/consts/issue-17074.rs b/tests/ui/consts/issue-17074.rs similarity index 100% rename from src/test/ui/consts/issue-17074.rs rename to tests/ui/consts/issue-17074.rs diff --git a/src/test/ui/consts/issue-17458.rs b/tests/ui/consts/issue-17458.rs similarity index 100% rename from src/test/ui/consts/issue-17458.rs rename to tests/ui/consts/issue-17458.rs diff --git a/src/test/ui/consts/issue-17458.stderr b/tests/ui/consts/issue-17458.stderr similarity index 100% rename from src/test/ui/consts/issue-17458.stderr rename to tests/ui/consts/issue-17458.stderr diff --git a/src/test/ui/consts/issue-17718-borrow-interior.rs b/tests/ui/consts/issue-17718-borrow-interior.rs similarity index 100% rename from src/test/ui/consts/issue-17718-borrow-interior.rs rename to tests/ui/consts/issue-17718-borrow-interior.rs diff --git a/src/test/ui/consts/issue-17718-const-bad-values.rs b/tests/ui/consts/issue-17718-const-bad-values.rs similarity index 100% rename from src/test/ui/consts/issue-17718-const-bad-values.rs rename to tests/ui/consts/issue-17718-const-bad-values.rs diff --git a/src/test/ui/consts/issue-17718-const-bad-values.stderr b/tests/ui/consts/issue-17718-const-bad-values.stderr similarity index 100% rename from src/test/ui/consts/issue-17718-const-bad-values.stderr rename to tests/ui/consts/issue-17718-const-bad-values.stderr diff --git a/src/test/ui/consts/issue-17718-const-borrow.rs b/tests/ui/consts/issue-17718-const-borrow.rs similarity index 100% rename from src/test/ui/consts/issue-17718-const-borrow.rs rename to tests/ui/consts/issue-17718-const-borrow.rs diff --git a/src/test/ui/consts/issue-17718-const-borrow.stderr b/tests/ui/consts/issue-17718-const-borrow.stderr similarity index 100% rename from src/test/ui/consts/issue-17718-const-borrow.stderr rename to tests/ui/consts/issue-17718-const-borrow.stderr diff --git a/src/test/ui/consts/issue-17718-constants-not-static.rs b/tests/ui/consts/issue-17718-constants-not-static.rs similarity index 100% rename from src/test/ui/consts/issue-17718-constants-not-static.rs rename to tests/ui/consts/issue-17718-constants-not-static.rs diff --git a/src/test/ui/consts/issue-17718-constants-not-static.stderr b/tests/ui/consts/issue-17718-constants-not-static.stderr similarity index 100% rename from src/test/ui/consts/issue-17718-constants-not-static.stderr rename to tests/ui/consts/issue-17718-constants-not-static.stderr diff --git a/src/test/ui/consts/issue-17718-references.rs b/tests/ui/consts/issue-17718-references.rs similarity index 100% rename from src/test/ui/consts/issue-17718-references.rs rename to tests/ui/consts/issue-17718-references.rs diff --git a/src/test/ui/consts/issue-17718-references.stderr b/tests/ui/consts/issue-17718-references.stderr similarity index 100% rename from src/test/ui/consts/issue-17718-references.stderr rename to tests/ui/consts/issue-17718-references.stderr diff --git a/src/test/ui/consts/issue-17718.rs b/tests/ui/consts/issue-17718.rs similarity index 100% rename from src/test/ui/consts/issue-17718.rs rename to tests/ui/consts/issue-17718.rs diff --git a/src/test/ui/consts/issue-17756.rs b/tests/ui/consts/issue-17756.rs similarity index 100% rename from src/test/ui/consts/issue-17756.rs rename to tests/ui/consts/issue-17756.rs diff --git a/src/test/ui/consts/issue-18294.rs b/tests/ui/consts/issue-18294.rs similarity index 100% rename from src/test/ui/consts/issue-18294.rs rename to tests/ui/consts/issue-18294.rs diff --git a/src/test/ui/consts/issue-18294.stderr b/tests/ui/consts/issue-18294.stderr similarity index 100% rename from src/test/ui/consts/issue-18294.stderr rename to tests/ui/consts/issue-18294.stderr diff --git a/src/test/ui/consts/issue-19244.rs b/tests/ui/consts/issue-19244.rs similarity index 100% rename from src/test/ui/consts/issue-19244.rs rename to tests/ui/consts/issue-19244.rs diff --git a/src/test/ui/consts/issue-21562.rs b/tests/ui/consts/issue-21562.rs similarity index 100% rename from src/test/ui/consts/issue-21562.rs rename to tests/ui/consts/issue-21562.rs diff --git a/src/test/ui/consts/issue-21721.rs b/tests/ui/consts/issue-21721.rs similarity index 100% rename from src/test/ui/consts/issue-21721.rs rename to tests/ui/consts/issue-21721.rs diff --git a/src/test/ui/consts/issue-23833.rs b/tests/ui/consts/issue-23833.rs similarity index 100% rename from src/test/ui/consts/issue-23833.rs rename to tests/ui/consts/issue-23833.rs diff --git a/src/test/ui/consts/issue-23968-const-not-overflow.rs b/tests/ui/consts/issue-23968-const-not-overflow.rs similarity index 100% rename from src/test/ui/consts/issue-23968-const-not-overflow.rs rename to tests/ui/consts/issue-23968-const-not-overflow.rs diff --git a/src/test/ui/consts/issue-25826.rs b/tests/ui/consts/issue-25826.rs similarity index 100% rename from src/test/ui/consts/issue-25826.rs rename to tests/ui/consts/issue-25826.rs diff --git a/src/test/ui/consts/issue-25826.stderr b/tests/ui/consts/issue-25826.stderr similarity index 100% rename from src/test/ui/consts/issue-25826.stderr rename to tests/ui/consts/issue-25826.stderr diff --git a/src/test/ui/consts/issue-27890.rs b/tests/ui/consts/issue-27890.rs similarity index 100% rename from src/test/ui/consts/issue-27890.rs rename to tests/ui/consts/issue-27890.rs diff --git a/src/test/ui/consts/issue-28113.rs b/tests/ui/consts/issue-28113.rs similarity index 100% rename from src/test/ui/consts/issue-28113.rs rename to tests/ui/consts/issue-28113.rs diff --git a/src/test/ui/consts/issue-28113.stderr b/tests/ui/consts/issue-28113.stderr similarity index 100% rename from src/test/ui/consts/issue-28113.stderr rename to tests/ui/consts/issue-28113.stderr diff --git a/src/test/ui/consts/issue-29914-2.rs b/tests/ui/consts/issue-29914-2.rs similarity index 100% rename from src/test/ui/consts/issue-29914-2.rs rename to tests/ui/consts/issue-29914-2.rs diff --git a/src/test/ui/consts/issue-29914-3.rs b/tests/ui/consts/issue-29914-3.rs similarity index 100% rename from src/test/ui/consts/issue-29914-3.rs rename to tests/ui/consts/issue-29914-3.rs diff --git a/src/test/ui/consts/issue-29914.rs b/tests/ui/consts/issue-29914.rs similarity index 100% rename from src/test/ui/consts/issue-29914.rs rename to tests/ui/consts/issue-29914.rs diff --git a/src/test/ui/consts/issue-29927-1.rs b/tests/ui/consts/issue-29927-1.rs similarity index 100% rename from src/test/ui/consts/issue-29927-1.rs rename to tests/ui/consts/issue-29927-1.rs diff --git a/src/test/ui/consts/issue-29927.rs b/tests/ui/consts/issue-29927.rs similarity index 100% rename from src/test/ui/consts/issue-29927.rs rename to tests/ui/consts/issue-29927.rs diff --git a/src/test/ui/consts/issue-32829-2.rs b/tests/ui/consts/issue-32829-2.rs similarity index 100% rename from src/test/ui/consts/issue-32829-2.rs rename to tests/ui/consts/issue-32829-2.rs diff --git a/src/test/ui/consts/issue-32829-2.stderr b/tests/ui/consts/issue-32829-2.stderr similarity index 100% rename from src/test/ui/consts/issue-32829-2.stderr rename to tests/ui/consts/issue-32829-2.stderr diff --git a/src/test/ui/consts/issue-32829.rs b/tests/ui/consts/issue-32829.rs similarity index 100% rename from src/test/ui/consts/issue-32829.rs rename to tests/ui/consts/issue-32829.rs diff --git a/src/test/ui/consts/issue-32829.stderr b/tests/ui/consts/issue-32829.stderr similarity index 100% rename from src/test/ui/consts/issue-32829.stderr rename to tests/ui/consts/issue-32829.stderr diff --git a/src/test/ui/consts/issue-33537.rs b/tests/ui/consts/issue-33537.rs similarity index 100% rename from src/test/ui/consts/issue-33537.rs rename to tests/ui/consts/issue-33537.rs diff --git a/src/test/ui/consts/issue-34784.rs b/tests/ui/consts/issue-34784.rs similarity index 100% rename from src/test/ui/consts/issue-34784.rs rename to tests/ui/consts/issue-34784.rs diff --git a/src/test/ui/consts/issue-3521.fixed b/tests/ui/consts/issue-3521.fixed similarity index 100% rename from src/test/ui/consts/issue-3521.fixed rename to tests/ui/consts/issue-3521.fixed diff --git a/src/test/ui/consts/issue-3521.rs b/tests/ui/consts/issue-3521.rs similarity index 100% rename from src/test/ui/consts/issue-3521.rs rename to tests/ui/consts/issue-3521.rs diff --git a/src/test/ui/consts/issue-3521.stderr b/tests/ui/consts/issue-3521.stderr similarity index 100% rename from src/test/ui/consts/issue-3521.stderr rename to tests/ui/consts/issue-3521.stderr diff --git a/src/test/ui/consts/issue-36163.rs b/tests/ui/consts/issue-36163.rs similarity index 100% rename from src/test/ui/consts/issue-36163.rs rename to tests/ui/consts/issue-36163.rs diff --git a/src/test/ui/consts/issue-36163.stderr b/tests/ui/consts/issue-36163.stderr similarity index 100% rename from src/test/ui/consts/issue-36163.stderr rename to tests/ui/consts/issue-36163.stderr diff --git a/src/test/ui/consts/issue-37222.rs b/tests/ui/consts/issue-37222.rs similarity index 100% rename from src/test/ui/consts/issue-37222.rs rename to tests/ui/consts/issue-37222.rs diff --git a/src/test/ui/consts/issue-37550-1.rs b/tests/ui/consts/issue-37550-1.rs similarity index 100% rename from src/test/ui/consts/issue-37550-1.rs rename to tests/ui/consts/issue-37550-1.rs diff --git a/src/test/ui/consts/issue-37550.rs b/tests/ui/consts/issue-37550.rs similarity index 100% rename from src/test/ui/consts/issue-37550.rs rename to tests/ui/consts/issue-37550.rs diff --git a/src/test/ui/consts/issue-37991.rs b/tests/ui/consts/issue-37991.rs similarity index 100% rename from src/test/ui/consts/issue-37991.rs rename to tests/ui/consts/issue-37991.rs diff --git a/src/test/ui/consts/issue-39161-bogus-error.rs b/tests/ui/consts/issue-39161-bogus-error.rs similarity index 100% rename from src/test/ui/consts/issue-39161-bogus-error.rs rename to tests/ui/consts/issue-39161-bogus-error.rs diff --git a/src/test/ui/consts/issue-39974.rs b/tests/ui/consts/issue-39974.rs similarity index 100% rename from src/test/ui/consts/issue-39974.rs rename to tests/ui/consts/issue-39974.rs diff --git a/src/test/ui/consts/issue-39974.stderr b/tests/ui/consts/issue-39974.stderr similarity index 100% rename from src/test/ui/consts/issue-39974.stderr rename to tests/ui/consts/issue-39974.stderr diff --git a/src/test/ui/consts/issue-43105.rs b/tests/ui/consts/issue-43105.rs similarity index 100% rename from src/test/ui/consts/issue-43105.rs rename to tests/ui/consts/issue-43105.rs diff --git a/src/test/ui/consts/issue-43105.stderr b/tests/ui/consts/issue-43105.stderr similarity index 100% rename from src/test/ui/consts/issue-43105.stderr rename to tests/ui/consts/issue-43105.stderr diff --git a/src/test/ui/consts/issue-44415.rs b/tests/ui/consts/issue-44415.rs similarity index 100% rename from src/test/ui/consts/issue-44415.rs rename to tests/ui/consts/issue-44415.rs diff --git a/src/test/ui/consts/issue-44415.stderr b/tests/ui/consts/issue-44415.stderr similarity index 100% rename from src/test/ui/consts/issue-44415.stderr rename to tests/ui/consts/issue-44415.stderr diff --git a/src/test/ui/consts/issue-46553.rs b/tests/ui/consts/issue-46553.rs similarity index 100% rename from src/test/ui/consts/issue-46553.rs rename to tests/ui/consts/issue-46553.rs diff --git a/src/test/ui/consts/issue-47789.rs b/tests/ui/consts/issue-47789.rs similarity index 100% rename from src/test/ui/consts/issue-47789.rs rename to tests/ui/consts/issue-47789.rs diff --git a/src/test/ui/consts/issue-50439.rs b/tests/ui/consts/issue-50439.rs similarity index 100% rename from src/test/ui/consts/issue-50439.rs rename to tests/ui/consts/issue-50439.rs diff --git a/src/test/ui/consts/issue-50439.stderr b/tests/ui/consts/issue-50439.stderr similarity index 100% rename from src/test/ui/consts/issue-50439.stderr rename to tests/ui/consts/issue-50439.stderr diff --git a/src/test/ui/consts/issue-52023-array-size-pointer-cast.rs b/tests/ui/consts/issue-52023-array-size-pointer-cast.rs similarity index 100% rename from src/test/ui/consts/issue-52023-array-size-pointer-cast.rs rename to tests/ui/consts/issue-52023-array-size-pointer-cast.rs diff --git a/src/test/ui/consts/issue-52023-array-size-pointer-cast.stderr b/tests/ui/consts/issue-52023-array-size-pointer-cast.stderr similarity index 100% rename from src/test/ui/consts/issue-52023-array-size-pointer-cast.stderr rename to tests/ui/consts/issue-52023-array-size-pointer-cast.stderr diff --git a/src/test/ui/consts/issue-52060.rs b/tests/ui/consts/issue-52060.rs similarity index 100% rename from src/test/ui/consts/issue-52060.rs rename to tests/ui/consts/issue-52060.rs diff --git a/src/test/ui/consts/issue-52060.stderr b/tests/ui/consts/issue-52060.stderr similarity index 100% rename from src/test/ui/consts/issue-52060.stderr rename to tests/ui/consts/issue-52060.stderr diff --git a/src/test/ui/consts/issue-54224.rs b/tests/ui/consts/issue-54224.rs similarity index 100% rename from src/test/ui/consts/issue-54224.rs rename to tests/ui/consts/issue-54224.rs diff --git a/src/test/ui/consts/issue-54224.stderr b/tests/ui/consts/issue-54224.stderr similarity index 100% rename from src/test/ui/consts/issue-54224.stderr rename to tests/ui/consts/issue-54224.stderr diff --git a/src/test/ui/consts/issue-54348.rs b/tests/ui/consts/issue-54348.rs similarity index 100% rename from src/test/ui/consts/issue-54348.rs rename to tests/ui/consts/issue-54348.rs diff --git a/src/test/ui/consts/issue-54348.stderr b/tests/ui/consts/issue-54348.stderr similarity index 100% rename from src/test/ui/consts/issue-54348.stderr rename to tests/ui/consts/issue-54348.stderr diff --git a/src/test/ui/consts/issue-54387.rs b/tests/ui/consts/issue-54387.rs similarity index 100% rename from src/test/ui/consts/issue-54387.rs rename to tests/ui/consts/issue-54387.rs diff --git a/src/test/ui/consts/issue-54954.rs b/tests/ui/consts/issue-54954.rs similarity index 100% rename from src/test/ui/consts/issue-54954.rs rename to tests/ui/consts/issue-54954.rs diff --git a/src/test/ui/consts/issue-54954.stderr b/tests/ui/consts/issue-54954.stderr similarity index 100% rename from src/test/ui/consts/issue-54954.stderr rename to tests/ui/consts/issue-54954.stderr diff --git a/src/test/ui/consts/issue-56164.rs b/tests/ui/consts/issue-56164.rs similarity index 100% rename from src/test/ui/consts/issue-56164.rs rename to tests/ui/consts/issue-56164.rs diff --git a/src/test/ui/consts/issue-56164.stderr b/tests/ui/consts/issue-56164.stderr similarity index 100% rename from src/test/ui/consts/issue-56164.stderr rename to tests/ui/consts/issue-56164.stderr diff --git a/src/test/ui/consts/issue-58435-ice-with-assoc-const.rs b/tests/ui/consts/issue-58435-ice-with-assoc-const.rs similarity index 100% rename from src/test/ui/consts/issue-58435-ice-with-assoc-const.rs rename to tests/ui/consts/issue-58435-ice-with-assoc-const.rs diff --git a/src/test/ui/consts/issue-62045.rs b/tests/ui/consts/issue-62045.rs similarity index 100% rename from src/test/ui/consts/issue-62045.rs rename to tests/ui/consts/issue-62045.rs diff --git a/src/test/ui/consts/issue-63226.rs b/tests/ui/consts/issue-63226.rs similarity index 100% rename from src/test/ui/consts/issue-63226.rs rename to tests/ui/consts/issue-63226.rs diff --git a/src/test/ui/consts/issue-63952.32bit.stderr b/tests/ui/consts/issue-63952.32bit.stderr similarity index 100% rename from src/test/ui/consts/issue-63952.32bit.stderr rename to tests/ui/consts/issue-63952.32bit.stderr diff --git a/src/test/ui/consts/issue-63952.64bit.stderr b/tests/ui/consts/issue-63952.64bit.stderr similarity index 100% rename from src/test/ui/consts/issue-63952.64bit.stderr rename to tests/ui/consts/issue-63952.64bit.stderr diff --git a/src/test/ui/consts/issue-63952.rs b/tests/ui/consts/issue-63952.rs similarity index 100% rename from src/test/ui/consts/issue-63952.rs rename to tests/ui/consts/issue-63952.rs diff --git a/src/test/ui/consts/issue-64059.rs b/tests/ui/consts/issue-64059.rs similarity index 100% rename from src/test/ui/consts/issue-64059.rs rename to tests/ui/consts/issue-64059.rs diff --git a/src/test/ui/consts/issue-64506.rs b/tests/ui/consts/issue-64506.rs similarity index 100% rename from src/test/ui/consts/issue-64506.rs rename to tests/ui/consts/issue-64506.rs diff --git a/src/test/ui/consts/issue-64662.rs b/tests/ui/consts/issue-64662.rs similarity index 100% rename from src/test/ui/consts/issue-64662.rs rename to tests/ui/consts/issue-64662.rs diff --git a/src/test/ui/consts/issue-64662.stderr b/tests/ui/consts/issue-64662.stderr similarity index 100% rename from src/test/ui/consts/issue-64662.stderr rename to tests/ui/consts/issue-64662.stderr diff --git a/src/test/ui/consts/issue-65348.rs b/tests/ui/consts/issue-65348.rs similarity index 100% rename from src/test/ui/consts/issue-65348.rs rename to tests/ui/consts/issue-65348.rs diff --git a/src/test/ui/consts/issue-66342.rs b/tests/ui/consts/issue-66342.rs similarity index 100% rename from src/test/ui/consts/issue-66342.rs rename to tests/ui/consts/issue-66342.rs diff --git a/src/test/ui/consts/issue-66345.rs b/tests/ui/consts/issue-66345.rs similarity index 100% rename from src/test/ui/consts/issue-66345.rs rename to tests/ui/consts/issue-66345.rs diff --git a/src/test/ui/consts/issue-66397.rs b/tests/ui/consts/issue-66397.rs similarity index 100% rename from src/test/ui/consts/issue-66397.rs rename to tests/ui/consts/issue-66397.rs diff --git a/src/test/ui/consts/issue-66693-panic-in-array-len.rs b/tests/ui/consts/issue-66693-panic-in-array-len.rs similarity index 100% rename from src/test/ui/consts/issue-66693-panic-in-array-len.rs rename to tests/ui/consts/issue-66693-panic-in-array-len.rs diff --git a/src/test/ui/consts/issue-66693-panic-in-array-len.stderr b/tests/ui/consts/issue-66693-panic-in-array-len.stderr similarity index 100% rename from src/test/ui/consts/issue-66693-panic-in-array-len.stderr rename to tests/ui/consts/issue-66693-panic-in-array-len.stderr diff --git a/src/test/ui/consts/issue-66693.rs b/tests/ui/consts/issue-66693.rs similarity index 100% rename from src/test/ui/consts/issue-66693.rs rename to tests/ui/consts/issue-66693.rs diff --git a/src/test/ui/consts/issue-66693.stderr b/tests/ui/consts/issue-66693.stderr similarity index 100% rename from src/test/ui/consts/issue-66693.stderr rename to tests/ui/consts/issue-66693.stderr diff --git a/src/test/ui/consts/issue-66787.rs b/tests/ui/consts/issue-66787.rs similarity index 100% rename from src/test/ui/consts/issue-66787.rs rename to tests/ui/consts/issue-66787.rs diff --git a/src/test/ui/consts/issue-67529.rs b/tests/ui/consts/issue-67529.rs similarity index 100% rename from src/test/ui/consts/issue-67529.rs rename to tests/ui/consts/issue-67529.rs diff --git a/src/test/ui/consts/issue-67640.rs b/tests/ui/consts/issue-67640.rs similarity index 100% rename from src/test/ui/consts/issue-67640.rs rename to tests/ui/consts/issue-67640.rs diff --git a/src/test/ui/consts/issue-67641.rs b/tests/ui/consts/issue-67641.rs similarity index 100% rename from src/test/ui/consts/issue-67641.rs rename to tests/ui/consts/issue-67641.rs diff --git a/src/test/ui/consts/issue-67696-const-prop-ice.rs b/tests/ui/consts/issue-67696-const-prop-ice.rs similarity index 100% rename from src/test/ui/consts/issue-67696-const-prop-ice.rs rename to tests/ui/consts/issue-67696-const-prop-ice.rs diff --git a/src/test/ui/consts/issue-67862.rs b/tests/ui/consts/issue-67862.rs similarity index 100% rename from src/test/ui/consts/issue-67862.rs rename to tests/ui/consts/issue-67862.rs diff --git a/src/test/ui/consts/issue-68264-overflow.rs b/tests/ui/consts/issue-68264-overflow.rs similarity index 100% rename from src/test/ui/consts/issue-68264-overflow.rs rename to tests/ui/consts/issue-68264-overflow.rs diff --git a/src/test/ui/consts/issue-68542-closure-in-array-len.rs b/tests/ui/consts/issue-68542-closure-in-array-len.rs similarity index 100% rename from src/test/ui/consts/issue-68542-closure-in-array-len.rs rename to tests/ui/consts/issue-68542-closure-in-array-len.rs diff --git a/src/test/ui/consts/issue-68542-closure-in-array-len.stderr b/tests/ui/consts/issue-68542-closure-in-array-len.stderr similarity index 100% rename from src/test/ui/consts/issue-68542-closure-in-array-len.stderr rename to tests/ui/consts/issue-68542-closure-in-array-len.stderr diff --git a/src/test/ui/consts/issue-68684.rs b/tests/ui/consts/issue-68684.rs similarity index 100% rename from src/test/ui/consts/issue-68684.rs rename to tests/ui/consts/issue-68684.rs diff --git a/src/test/ui/consts/issue-69191-ice-on-uninhabited-enum-field.rs b/tests/ui/consts/issue-69191-ice-on-uninhabited-enum-field.rs similarity index 100% rename from src/test/ui/consts/issue-69191-ice-on-uninhabited-enum-field.rs rename to tests/ui/consts/issue-69191-ice-on-uninhabited-enum-field.rs diff --git a/src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs b/tests/ui/consts/issue-69310-array-size-lit-wrong-ty.rs similarity index 100% rename from src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.rs rename to tests/ui/consts/issue-69310-array-size-lit-wrong-ty.rs diff --git a/src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.stderr b/tests/ui/consts/issue-69310-array-size-lit-wrong-ty.stderr similarity index 100% rename from src/test/ui/consts/issue-69310-array-size-lit-wrong-ty.stderr rename to tests/ui/consts/issue-69310-array-size-lit-wrong-ty.stderr diff --git a/src/test/ui/consts/issue-69312.rs b/tests/ui/consts/issue-69312.rs similarity index 100% rename from src/test/ui/consts/issue-69312.rs rename to tests/ui/consts/issue-69312.rs diff --git a/src/test/ui/consts/issue-69488.rs b/tests/ui/consts/issue-69488.rs similarity index 100% rename from src/test/ui/consts/issue-69488.rs rename to tests/ui/consts/issue-69488.rs diff --git a/src/test/ui/consts/issue-69532.rs b/tests/ui/consts/issue-69532.rs similarity index 100% rename from src/test/ui/consts/issue-69532.rs rename to tests/ui/consts/issue-69532.rs diff --git a/src/test/ui/consts/issue-6991.rs b/tests/ui/consts/issue-6991.rs similarity index 100% rename from src/test/ui/consts/issue-6991.rs rename to tests/ui/consts/issue-6991.rs diff --git a/src/test/ui/consts/issue-70773-mir-typeck-lt-norm.rs b/tests/ui/consts/issue-70773-mir-typeck-lt-norm.rs similarity index 100% rename from src/test/ui/consts/issue-70773-mir-typeck-lt-norm.rs rename to tests/ui/consts/issue-70773-mir-typeck-lt-norm.rs diff --git a/src/test/ui/consts/issue-70942-trait-vs-impl-mismatch.rs b/tests/ui/consts/issue-70942-trait-vs-impl-mismatch.rs similarity index 100% rename from src/test/ui/consts/issue-70942-trait-vs-impl-mismatch.rs rename to tests/ui/consts/issue-70942-trait-vs-impl-mismatch.rs diff --git a/src/test/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr b/tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr similarity index 100% rename from src/test/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr rename to tests/ui/consts/issue-70942-trait-vs-impl-mismatch.stderr diff --git a/src/test/ui/consts/issue-73976-monomorphic.rs b/tests/ui/consts/issue-73976-monomorphic.rs similarity index 100% rename from src/test/ui/consts/issue-73976-monomorphic.rs rename to tests/ui/consts/issue-73976-monomorphic.rs diff --git a/src/test/ui/consts/issue-73976-polymorphic.rs b/tests/ui/consts/issue-73976-polymorphic.rs similarity index 100% rename from src/test/ui/consts/issue-73976-polymorphic.rs rename to tests/ui/consts/issue-73976-polymorphic.rs diff --git a/src/test/ui/consts/issue-73976-polymorphic.stderr b/tests/ui/consts/issue-73976-polymorphic.stderr similarity index 100% rename from src/test/ui/consts/issue-73976-polymorphic.stderr rename to tests/ui/consts/issue-73976-polymorphic.stderr diff --git a/src/test/ui/consts/issue-76064.rs b/tests/ui/consts/issue-76064.rs similarity index 100% rename from src/test/ui/consts/issue-76064.rs rename to tests/ui/consts/issue-76064.rs diff --git a/src/test/ui/consts/issue-76064.stderr b/tests/ui/consts/issue-76064.stderr similarity index 100% rename from src/test/ui/consts/issue-76064.stderr rename to tests/ui/consts/issue-76064.stderr diff --git a/src/test/ui/consts/issue-77062-large-zst-array.rs b/tests/ui/consts/issue-77062-large-zst-array.rs similarity index 100% rename from src/test/ui/consts/issue-77062-large-zst-array.rs rename to tests/ui/consts/issue-77062-large-zst-array.rs diff --git a/src/test/ui/consts/issue-78655.rs b/tests/ui/consts/issue-78655.rs similarity index 100% rename from src/test/ui/consts/issue-78655.rs rename to tests/ui/consts/issue-78655.rs diff --git a/src/test/ui/consts/issue-78655.stderr b/tests/ui/consts/issue-78655.stderr similarity index 100% rename from src/test/ui/consts/issue-78655.stderr rename to tests/ui/consts/issue-78655.stderr diff --git a/src/test/ui/consts/issue-79137-monomorphic.rs b/tests/ui/consts/issue-79137-monomorphic.rs similarity index 100% rename from src/test/ui/consts/issue-79137-monomorphic.rs rename to tests/ui/consts/issue-79137-monomorphic.rs diff --git a/src/test/ui/consts/issue-79137-toogeneric.rs b/tests/ui/consts/issue-79137-toogeneric.rs similarity index 100% rename from src/test/ui/consts/issue-79137-toogeneric.rs rename to tests/ui/consts/issue-79137-toogeneric.rs diff --git a/src/test/ui/consts/issue-79137-toogeneric.stderr b/tests/ui/consts/issue-79137-toogeneric.stderr similarity index 100% rename from src/test/ui/consts/issue-79137-toogeneric.stderr rename to tests/ui/consts/issue-79137-toogeneric.stderr diff --git a/src/test/ui/consts/issue-79152-const-array-index.rs b/tests/ui/consts/issue-79152-const-array-index.rs similarity index 100% rename from src/test/ui/consts/issue-79152-const-array-index.rs rename to tests/ui/consts/issue-79152-const-array-index.rs diff --git a/src/test/ui/consts/issue-79690.64bit.stderr b/tests/ui/consts/issue-79690.64bit.stderr similarity index 100% rename from src/test/ui/consts/issue-79690.64bit.stderr rename to tests/ui/consts/issue-79690.64bit.stderr diff --git a/src/test/ui/consts/issue-79690.rs b/tests/ui/consts/issue-79690.rs similarity index 100% rename from src/test/ui/consts/issue-79690.rs rename to tests/ui/consts/issue-79690.rs diff --git a/src/test/ui/consts/issue-83182.rs b/tests/ui/consts/issue-83182.rs similarity index 100% rename from src/test/ui/consts/issue-83182.rs rename to tests/ui/consts/issue-83182.rs diff --git a/src/test/ui/consts/issue-83182.stderr b/tests/ui/consts/issue-83182.stderr similarity index 100% rename from src/test/ui/consts/issue-83182.stderr rename to tests/ui/consts/issue-83182.stderr diff --git a/src/test/ui/consts/issue-87046.rs b/tests/ui/consts/issue-87046.rs similarity index 100% rename from src/test/ui/consts/issue-87046.rs rename to tests/ui/consts/issue-87046.rs diff --git a/src/test/ui/consts/issue-87046.stderr b/tests/ui/consts/issue-87046.stderr similarity index 100% rename from src/test/ui/consts/issue-87046.stderr rename to tests/ui/consts/issue-87046.stderr diff --git a/src/test/ui/consts/issue-88071.rs b/tests/ui/consts/issue-88071.rs similarity index 100% rename from src/test/ui/consts/issue-88071.rs rename to tests/ui/consts/issue-88071.rs diff --git a/src/test/ui/consts/issue-88649.rs b/tests/ui/consts/issue-88649.rs similarity index 100% rename from src/test/ui/consts/issue-88649.rs rename to tests/ui/consts/issue-88649.rs diff --git a/src/test/ui/consts/issue-89088.rs b/tests/ui/consts/issue-89088.rs similarity index 100% rename from src/test/ui/consts/issue-89088.rs rename to tests/ui/consts/issue-89088.rs diff --git a/src/test/ui/consts/issue-90762.rs b/tests/ui/consts/issue-90762.rs similarity index 100% rename from src/test/ui/consts/issue-90762.rs rename to tests/ui/consts/issue-90762.rs diff --git a/src/test/ui/consts/issue-90870.fixed b/tests/ui/consts/issue-90870.fixed similarity index 100% rename from src/test/ui/consts/issue-90870.fixed rename to tests/ui/consts/issue-90870.fixed diff --git a/src/test/ui/consts/issue-90870.rs b/tests/ui/consts/issue-90870.rs similarity index 100% rename from src/test/ui/consts/issue-90870.rs rename to tests/ui/consts/issue-90870.rs diff --git a/src/test/ui/consts/issue-90870.stderr b/tests/ui/consts/issue-90870.stderr similarity index 100% rename from src/test/ui/consts/issue-90870.stderr rename to tests/ui/consts/issue-90870.stderr diff --git a/src/test/ui/consts/issue-90878-2.rs b/tests/ui/consts/issue-90878-2.rs similarity index 100% rename from src/test/ui/consts/issue-90878-2.rs rename to tests/ui/consts/issue-90878-2.rs diff --git a/src/test/ui/consts/issue-90878-2.stderr b/tests/ui/consts/issue-90878-2.stderr similarity index 100% rename from src/test/ui/consts/issue-90878-2.stderr rename to tests/ui/consts/issue-90878-2.stderr diff --git a/src/test/ui/consts/issue-90878-3.rs b/tests/ui/consts/issue-90878-3.rs similarity index 100% rename from src/test/ui/consts/issue-90878-3.rs rename to tests/ui/consts/issue-90878-3.rs diff --git a/src/test/ui/consts/issue-90878-3.stderr b/tests/ui/consts/issue-90878-3.stderr similarity index 100% rename from src/test/ui/consts/issue-90878-3.stderr rename to tests/ui/consts/issue-90878-3.stderr diff --git a/src/test/ui/consts/issue-90878.rs b/tests/ui/consts/issue-90878.rs similarity index 100% rename from src/test/ui/consts/issue-90878.rs rename to tests/ui/consts/issue-90878.rs diff --git a/src/test/ui/consts/issue-90878.stderr b/tests/ui/consts/issue-90878.stderr similarity index 100% rename from src/test/ui/consts/issue-90878.stderr rename to tests/ui/consts/issue-90878.stderr diff --git a/src/test/ui/consts/issue-91434.rs b/tests/ui/consts/issue-91434.rs similarity index 100% rename from src/test/ui/consts/issue-91434.rs rename to tests/ui/consts/issue-91434.rs diff --git a/src/test/ui/consts/issue-91434.stderr b/tests/ui/consts/issue-91434.stderr similarity index 100% rename from src/test/ui/consts/issue-91434.stderr rename to tests/ui/consts/issue-91434.stderr diff --git a/src/test/ui/consts/issue-91560.fixed b/tests/ui/consts/issue-91560.fixed similarity index 100% rename from src/test/ui/consts/issue-91560.fixed rename to tests/ui/consts/issue-91560.fixed diff --git a/src/test/ui/consts/issue-91560.rs b/tests/ui/consts/issue-91560.rs similarity index 100% rename from src/test/ui/consts/issue-91560.rs rename to tests/ui/consts/issue-91560.rs diff --git a/src/test/ui/consts/issue-91560.stderr b/tests/ui/consts/issue-91560.stderr similarity index 100% rename from src/test/ui/consts/issue-91560.stderr rename to tests/ui/consts/issue-91560.stderr diff --git a/src/test/ui/consts/issue-94371.rs b/tests/ui/consts/issue-94371.rs similarity index 100% rename from src/test/ui/consts/issue-94371.rs rename to tests/ui/consts/issue-94371.rs diff --git a/src/test/ui/consts/issue-94675.rs b/tests/ui/consts/issue-94675.rs similarity index 100% rename from src/test/ui/consts/issue-94675.rs rename to tests/ui/consts/issue-94675.rs diff --git a/src/test/ui/consts/issue-94675.stderr b/tests/ui/consts/issue-94675.stderr similarity index 100% rename from src/test/ui/consts/issue-94675.stderr rename to tests/ui/consts/issue-94675.stderr diff --git a/src/test/ui/consts/issue-96169.rs b/tests/ui/consts/issue-96169.rs similarity index 100% rename from src/test/ui/consts/issue-96169.rs rename to tests/ui/consts/issue-96169.rs diff --git a/src/test/ui/consts/issue-broken-mir.rs b/tests/ui/consts/issue-broken-mir.rs similarity index 100% rename from src/test/ui/consts/issue-broken-mir.rs rename to tests/ui/consts/issue-broken-mir.rs diff --git a/src/test/ui/consts/issue-miri-1910.rs b/tests/ui/consts/issue-miri-1910.rs similarity index 100% rename from src/test/ui/consts/issue-miri-1910.rs rename to tests/ui/consts/issue-miri-1910.rs diff --git a/src/test/ui/consts/issue-miri-1910.stderr b/tests/ui/consts/issue-miri-1910.stderr similarity index 100% rename from src/test/ui/consts/issue-miri-1910.stderr rename to tests/ui/consts/issue-miri-1910.stderr diff --git a/src/test/ui/consts/large_const_alloc.rs b/tests/ui/consts/large_const_alloc.rs similarity index 100% rename from src/test/ui/consts/large_const_alloc.rs rename to tests/ui/consts/large_const_alloc.rs diff --git a/src/test/ui/consts/large_const_alloc.stderr b/tests/ui/consts/large_const_alloc.stderr similarity index 100% rename from src/test/ui/consts/large_const_alloc.stderr rename to tests/ui/consts/large_const_alloc.stderr diff --git a/src/test/ui/consts/locals-in-const-fn.rs b/tests/ui/consts/locals-in-const-fn.rs similarity index 100% rename from src/test/ui/consts/locals-in-const-fn.rs rename to tests/ui/consts/locals-in-const-fn.rs diff --git a/src/test/ui/consts/match-const-fn-structs.rs b/tests/ui/consts/match-const-fn-structs.rs similarity index 100% rename from src/test/ui/consts/match-const-fn-structs.rs rename to tests/ui/consts/match-const-fn-structs.rs diff --git a/src/test/ui/consts/match_ice.rs b/tests/ui/consts/match_ice.rs similarity index 100% rename from src/test/ui/consts/match_ice.rs rename to tests/ui/consts/match_ice.rs diff --git a/src/test/ui/consts/match_ice.stderr b/tests/ui/consts/match_ice.stderr similarity index 100% rename from src/test/ui/consts/match_ice.stderr rename to tests/ui/consts/match_ice.stderr diff --git a/src/test/ui/consts/min_const_fn/address_of.rs b/tests/ui/consts/min_const_fn/address_of.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/address_of.rs rename to tests/ui/consts/min_const_fn/address_of.rs diff --git a/src/test/ui/consts/min_const_fn/address_of.stderr b/tests/ui/consts/min_const_fn/address_of.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/address_of.stderr rename to tests/ui/consts/min_const_fn/address_of.stderr diff --git a/src/test/ui/consts/min_const_fn/address_of_const.rs b/tests/ui/consts/min_const_fn/address_of_const.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/address_of_const.rs rename to tests/ui/consts/min_const_fn/address_of_const.rs diff --git a/src/test/ui/consts/min_const_fn/allow_const_fn_ptr_run_pass.rs b/tests/ui/consts/min_const_fn/allow_const_fn_ptr_run_pass.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/allow_const_fn_ptr_run_pass.rs rename to tests/ui/consts/min_const_fn/allow_const_fn_ptr_run_pass.rs diff --git a/src/test/ui/consts/min_const_fn/allow_raw_ptr_dereference_const_fn.rs b/tests/ui/consts/min_const_fn/allow_raw_ptr_dereference_const_fn.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/allow_raw_ptr_dereference_const_fn.rs rename to tests/ui/consts/min_const_fn/allow_raw_ptr_dereference_const_fn.rs diff --git a/src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.rs b/tests/ui/consts/min_const_fn/bad_const_fn_body_ice.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.rs rename to tests/ui/consts/min_const_fn/bad_const_fn_body_ice.rs diff --git a/src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr b/tests/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr rename to tests/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr diff --git a/src/test/ui/consts/min_const_fn/cast_fn.rs b/tests/ui/consts/min_const_fn/cast_fn.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/cast_fn.rs rename to tests/ui/consts/min_const_fn/cast_fn.rs diff --git a/src/test/ui/consts/min_const_fn/cmp_fn_pointers.rs b/tests/ui/consts/min_const_fn/cmp_fn_pointers.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/cmp_fn_pointers.rs rename to tests/ui/consts/min_const_fn/cmp_fn_pointers.rs diff --git a/src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr b/tests/ui/consts/min_const_fn/cmp_fn_pointers.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr rename to tests/ui/consts/min_const_fn/cmp_fn_pointers.stderr diff --git a/src/test/ui/consts/min_const_fn/min_const_fn.rs b/tests/ui/consts/min_const_fn/min_const_fn.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn.rs rename to tests/ui/consts/min_const_fn/min_const_fn.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_fn.stderr b/tests/ui/consts/min_const_fn/min_const_fn.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn.stderr rename to tests/ui/consts/min_const_fn/min_const_fn.stderr diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_dyn.rs b/tests/ui/consts/min_const_fn/min_const_fn_dyn.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_dyn.rs rename to tests/ui/consts/min_const_fn/min_const_fn_dyn.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_libstd.rs b/tests/ui/consts/min_const_fn/min_const_fn_libstd.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_libstd.rs rename to tests/ui/consts/min_const_fn/min_const_fn_libstd.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_libstd_stability.rs b/tests/ui/consts/min_const_fn/min_const_fn_libstd_stability.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_libstd_stability.rs rename to tests/ui/consts/min_const_fn/min_const_fn_libstd_stability.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_libstd_stability.stderr b/tests/ui/consts/min_const_fn/min_const_fn_libstd_stability.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_libstd_stability.stderr rename to tests/ui/consts/min_const_fn/min_const_fn_libstd_stability.stderr diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_unsafe_bad.rs b/tests/ui/consts/min_const_fn/min_const_fn_unsafe_bad.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_unsafe_bad.rs rename to tests/ui/consts/min_const_fn/min_const_fn_unsafe_bad.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_unsafe_bad.stderr b/tests/ui/consts/min_const_fn/min_const_fn_unsafe_bad.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_unsafe_bad.stderr rename to tests/ui/consts/min_const_fn/min_const_fn_unsafe_bad.stderr diff --git a/src/test/ui/consts/min_const_fn/min_const_fn_unsafe_ok.rs b/tests/ui/consts/min_const_fn/min_const_fn_unsafe_ok.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_fn_unsafe_ok.rs rename to tests/ui/consts/min_const_fn/min_const_fn_unsafe_ok.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.rs b/tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.rs rename to tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.stderr b/tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.stderr rename to tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability.stderr diff --git a/src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.rs b/tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.rs rename to tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.rs diff --git a/src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr b/tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr rename to tests/ui/consts/min_const_fn/min_const_unsafe_fn_libstd_stability2.stderr diff --git a/src/test/ui/consts/min_const_fn/mutable_borrow.rs b/tests/ui/consts/min_const_fn/mutable_borrow.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/mutable_borrow.rs rename to tests/ui/consts/min_const_fn/mutable_borrow.rs diff --git a/src/test/ui/consts/min_const_fn/mutable_borrow.stderr b/tests/ui/consts/min_const_fn/mutable_borrow.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/mutable_borrow.stderr rename to tests/ui/consts/min_const_fn/mutable_borrow.stderr diff --git a/src/test/ui/consts/min_const_fn/promotion.rs b/tests/ui/consts/min_const_fn/promotion.rs similarity index 100% rename from src/test/ui/consts/min_const_fn/promotion.rs rename to tests/ui/consts/min_const_fn/promotion.rs diff --git a/src/test/ui/consts/min_const_fn/promotion.stderr b/tests/ui/consts/min_const_fn/promotion.stderr similarity index 100% rename from src/test/ui/consts/min_const_fn/promotion.stderr rename to tests/ui/consts/min_const_fn/promotion.stderr diff --git a/src/test/ui/consts/mir_check_nonconst.rs b/tests/ui/consts/mir_check_nonconst.rs similarity index 100% rename from src/test/ui/consts/mir_check_nonconst.rs rename to tests/ui/consts/mir_check_nonconst.rs diff --git a/src/test/ui/consts/mir_check_nonconst.stderr b/tests/ui/consts/mir_check_nonconst.stderr similarity index 100% rename from src/test/ui/consts/mir_check_nonconst.stderr rename to tests/ui/consts/mir_check_nonconst.stderr diff --git a/src/test/ui/consts/miri_unleashed/abi-mismatch.rs b/tests/ui/consts/miri_unleashed/abi-mismatch.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/abi-mismatch.rs rename to tests/ui/consts/miri_unleashed/abi-mismatch.rs diff --git a/src/test/ui/consts/miri_unleashed/abi-mismatch.stderr b/tests/ui/consts/miri_unleashed/abi-mismatch.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/abi-mismatch.stderr rename to tests/ui/consts/miri_unleashed/abi-mismatch.stderr diff --git a/src/test/ui/consts/miri_unleashed/assoc_const.rs b/tests/ui/consts/miri_unleashed/assoc_const.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/assoc_const.rs rename to tests/ui/consts/miri_unleashed/assoc_const.rs diff --git a/src/test/ui/consts/miri_unleashed/assoc_const.stderr b/tests/ui/consts/miri_unleashed/assoc_const.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/assoc_const.stderr rename to tests/ui/consts/miri_unleashed/assoc_const.stderr diff --git a/src/test/ui/consts/miri_unleashed/assoc_const_2.rs b/tests/ui/consts/miri_unleashed/assoc_const_2.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/assoc_const_2.rs rename to tests/ui/consts/miri_unleashed/assoc_const_2.rs diff --git a/src/test/ui/consts/miri_unleashed/assoc_const_2.stderr b/tests/ui/consts/miri_unleashed/assoc_const_2.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/assoc_const_2.stderr rename to tests/ui/consts/miri_unleashed/assoc_const_2.stderr diff --git a/src/test/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs b/tests/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs rename to tests/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs diff --git a/src/test/ui/consts/miri_unleashed/box.rs b/tests/ui/consts/miri_unleashed/box.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/box.rs rename to tests/ui/consts/miri_unleashed/box.rs diff --git a/src/test/ui/consts/miri_unleashed/box.stderr b/tests/ui/consts/miri_unleashed/box.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/box.stderr rename to tests/ui/consts/miri_unleashed/box.stderr diff --git a/src/test/ui/consts/miri_unleashed/const_refers_to_static.32bit.stderr b/tests/ui/consts/miri_unleashed/const_refers_to_static.32bit.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/const_refers_to_static.32bit.stderr rename to tests/ui/consts/miri_unleashed/const_refers_to_static.32bit.stderr diff --git a/src/test/ui/consts/miri_unleashed/const_refers_to_static.64bit.stderr b/tests/ui/consts/miri_unleashed/const_refers_to_static.64bit.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/const_refers_to_static.64bit.stderr rename to tests/ui/consts/miri_unleashed/const_refers_to_static.64bit.stderr diff --git a/src/test/ui/consts/miri_unleashed/const_refers_to_static.rs b/tests/ui/consts/miri_unleashed/const_refers_to_static.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/const_refers_to_static.rs rename to tests/ui/consts/miri_unleashed/const_refers_to_static.rs diff --git a/src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.32bit.stderr b/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.32bit.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.32bit.stderr rename to tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.32bit.stderr diff --git a/src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.64bit.stderr b/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.64bit.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.64bit.stderr rename to tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.64bit.stderr diff --git a/src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs b/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs rename to tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs diff --git a/src/test/ui/consts/miri_unleashed/drop.rs b/tests/ui/consts/miri_unleashed/drop.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/drop.rs rename to tests/ui/consts/miri_unleashed/drop.rs diff --git a/src/test/ui/consts/miri_unleashed/drop.stderr b/tests/ui/consts/miri_unleashed/drop.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/drop.stderr rename to tests/ui/consts/miri_unleashed/drop.stderr diff --git a/src/test/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.rs b/tests/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.rs rename to tests/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.rs diff --git a/src/test/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.stderr b/tests/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.stderr rename to tests/ui/consts/miri_unleashed/feature-gate-unleash_the_miri_inside_of_you.stderr diff --git a/src/test/ui/consts/miri_unleashed/inline_asm.rs b/tests/ui/consts/miri_unleashed/inline_asm.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/inline_asm.rs rename to tests/ui/consts/miri_unleashed/inline_asm.rs diff --git a/src/test/ui/consts/miri_unleashed/inline_asm.stderr b/tests/ui/consts/miri_unleashed/inline_asm.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/inline_asm.stderr rename to tests/ui/consts/miri_unleashed/inline_asm.stderr diff --git a/src/test/ui/consts/miri_unleashed/mutable_references.rs b/tests/ui/consts/miri_unleashed/mutable_references.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutable_references.rs rename to tests/ui/consts/miri_unleashed/mutable_references.rs diff --git a/src/test/ui/consts/miri_unleashed/mutable_references.stderr b/tests/ui/consts/miri_unleashed/mutable_references.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutable_references.stderr rename to tests/ui/consts/miri_unleashed/mutable_references.stderr diff --git a/src/test/ui/consts/miri_unleashed/mutable_references_err.32bit.stderr b/tests/ui/consts/miri_unleashed/mutable_references_err.32bit.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutable_references_err.32bit.stderr rename to tests/ui/consts/miri_unleashed/mutable_references_err.32bit.stderr diff --git a/src/test/ui/consts/miri_unleashed/mutable_references_err.64bit.stderr b/tests/ui/consts/miri_unleashed/mutable_references_err.64bit.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutable_references_err.64bit.stderr rename to tests/ui/consts/miri_unleashed/mutable_references_err.64bit.stderr diff --git a/src/test/ui/consts/miri_unleashed/mutable_references_err.rs b/tests/ui/consts/miri_unleashed/mutable_references_err.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutable_references_err.rs rename to tests/ui/consts/miri_unleashed/mutable_references_err.rs diff --git a/src/test/ui/consts/miri_unleashed/mutating_global.rs b/tests/ui/consts/miri_unleashed/mutating_global.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutating_global.rs rename to tests/ui/consts/miri_unleashed/mutating_global.rs diff --git a/src/test/ui/consts/miri_unleashed/mutating_global.stderr b/tests/ui/consts/miri_unleashed/mutating_global.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/mutating_global.stderr rename to tests/ui/consts/miri_unleashed/mutating_global.stderr diff --git a/src/test/ui/consts/miri_unleashed/non_const_fn.rs b/tests/ui/consts/miri_unleashed/non_const_fn.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/non_const_fn.rs rename to tests/ui/consts/miri_unleashed/non_const_fn.rs diff --git a/src/test/ui/consts/miri_unleashed/non_const_fn.stderr b/tests/ui/consts/miri_unleashed/non_const_fn.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/non_const_fn.stderr rename to tests/ui/consts/miri_unleashed/non_const_fn.stderr diff --git a/src/test/ui/consts/miri_unleashed/ptr_arith.rs b/tests/ui/consts/miri_unleashed/ptr_arith.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/ptr_arith.rs rename to tests/ui/consts/miri_unleashed/ptr_arith.rs diff --git a/src/test/ui/consts/miri_unleashed/ptr_arith.stderr b/tests/ui/consts/miri_unleashed/ptr_arith.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/ptr_arith.stderr rename to tests/ui/consts/miri_unleashed/ptr_arith.stderr diff --git a/src/test/ui/consts/miri_unleashed/raw_mutable_const.rs b/tests/ui/consts/miri_unleashed/raw_mutable_const.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/raw_mutable_const.rs rename to tests/ui/consts/miri_unleashed/raw_mutable_const.rs diff --git a/src/test/ui/consts/miri_unleashed/raw_mutable_const.stderr b/tests/ui/consts/miri_unleashed/raw_mutable_const.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/raw_mutable_const.stderr rename to tests/ui/consts/miri_unleashed/raw_mutable_const.stderr diff --git a/src/test/ui/consts/miri_unleashed/slice_eq.rs b/tests/ui/consts/miri_unleashed/slice_eq.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/slice_eq.rs rename to tests/ui/consts/miri_unleashed/slice_eq.rs diff --git a/src/test/ui/consts/miri_unleashed/tls.rs b/tests/ui/consts/miri_unleashed/tls.rs similarity index 100% rename from src/test/ui/consts/miri_unleashed/tls.rs rename to tests/ui/consts/miri_unleashed/tls.rs diff --git a/src/test/ui/consts/miri_unleashed/tls.stderr b/tests/ui/consts/miri_unleashed/tls.stderr similarity index 100% rename from src/test/ui/consts/miri_unleashed/tls.stderr rename to tests/ui/consts/miri_unleashed/tls.stderr diff --git a/src/test/ui/consts/missing_span_in_backtrace.rs b/tests/ui/consts/missing_span_in_backtrace.rs similarity index 100% rename from src/test/ui/consts/missing_span_in_backtrace.rs rename to tests/ui/consts/missing_span_in_backtrace.rs diff --git a/src/test/ui/consts/missing_span_in_backtrace.stderr b/tests/ui/consts/missing_span_in_backtrace.stderr similarity index 100% rename from src/test/ui/consts/missing_span_in_backtrace.stderr rename to tests/ui/consts/missing_span_in_backtrace.stderr diff --git a/src/test/ui/consts/mozjs-error.rs b/tests/ui/consts/mozjs-error.rs similarity index 100% rename from src/test/ui/consts/mozjs-error.rs rename to tests/ui/consts/mozjs-error.rs diff --git a/src/test/ui/consts/nested_erroneous_ctfe.rs b/tests/ui/consts/nested_erroneous_ctfe.rs similarity index 100% rename from src/test/ui/consts/nested_erroneous_ctfe.rs rename to tests/ui/consts/nested_erroneous_ctfe.rs diff --git a/src/test/ui/consts/nested_erroneous_ctfe.stderr b/tests/ui/consts/nested_erroneous_ctfe.stderr similarity index 100% rename from src/test/ui/consts/nested_erroneous_ctfe.stderr rename to tests/ui/consts/nested_erroneous_ctfe.stderr diff --git a/src/test/ui/consts/non-const-value-in-const.rs b/tests/ui/consts/non-const-value-in-const.rs similarity index 100% rename from src/test/ui/consts/non-const-value-in-const.rs rename to tests/ui/consts/non-const-value-in-const.rs diff --git a/src/test/ui/consts/non-const-value-in-const.stderr b/tests/ui/consts/non-const-value-in-const.stderr similarity index 100% rename from src/test/ui/consts/non-const-value-in-const.stderr rename to tests/ui/consts/non-const-value-in-const.stderr diff --git a/src/test/ui/consts/non-scalar-cast.rs b/tests/ui/consts/non-scalar-cast.rs similarity index 100% rename from src/test/ui/consts/non-scalar-cast.rs rename to tests/ui/consts/non-scalar-cast.rs diff --git a/src/test/ui/consts/offset.rs b/tests/ui/consts/offset.rs similarity index 100% rename from src/test/ui/consts/offset.rs rename to tests/ui/consts/offset.rs diff --git a/src/test/ui/consts/offset_from.rs b/tests/ui/consts/offset_from.rs similarity index 100% rename from src/test/ui/consts/offset_from.rs rename to tests/ui/consts/offset_from.rs diff --git a/src/test/ui/consts/offset_from_ub.rs b/tests/ui/consts/offset_from_ub.rs similarity index 100% rename from src/test/ui/consts/offset_from_ub.rs rename to tests/ui/consts/offset_from_ub.rs diff --git a/src/test/ui/consts/offset_from_ub.stderr b/tests/ui/consts/offset_from_ub.stderr similarity index 100% rename from src/test/ui/consts/offset_from_ub.stderr rename to tests/ui/consts/offset_from_ub.stderr diff --git a/src/test/ui/consts/offset_ub.rs b/tests/ui/consts/offset_ub.rs similarity index 100% rename from src/test/ui/consts/offset_ub.rs rename to tests/ui/consts/offset_ub.rs diff --git a/src/test/ui/consts/offset_ub.stderr b/tests/ui/consts/offset_ub.stderr similarity index 100% rename from src/test/ui/consts/offset_ub.stderr rename to tests/ui/consts/offset_ub.stderr diff --git a/src/test/ui/consts/packed_pattern.rs b/tests/ui/consts/packed_pattern.rs similarity index 100% rename from src/test/ui/consts/packed_pattern.rs rename to tests/ui/consts/packed_pattern.rs diff --git a/src/test/ui/consts/packed_pattern.stderr b/tests/ui/consts/packed_pattern.stderr similarity index 100% rename from src/test/ui/consts/packed_pattern.stderr rename to tests/ui/consts/packed_pattern.stderr diff --git a/src/test/ui/consts/packed_pattern2.rs b/tests/ui/consts/packed_pattern2.rs similarity index 100% rename from src/test/ui/consts/packed_pattern2.rs rename to tests/ui/consts/packed_pattern2.rs diff --git a/src/test/ui/consts/packed_pattern2.stderr b/tests/ui/consts/packed_pattern2.stderr similarity index 100% rename from src/test/ui/consts/packed_pattern2.stderr rename to tests/ui/consts/packed_pattern2.stderr diff --git a/src/test/ui/consts/partial_qualif.rs b/tests/ui/consts/partial_qualif.rs similarity index 100% rename from src/test/ui/consts/partial_qualif.rs rename to tests/ui/consts/partial_qualif.rs diff --git a/src/test/ui/consts/partial_qualif.stderr b/tests/ui/consts/partial_qualif.stderr similarity index 100% rename from src/test/ui/consts/partial_qualif.stderr rename to tests/ui/consts/partial_qualif.stderr diff --git a/src/test/ui/consts/precise-drop-with-coverage.rs b/tests/ui/consts/precise-drop-with-coverage.rs similarity index 100% rename from src/test/ui/consts/precise-drop-with-coverage.rs rename to tests/ui/consts/precise-drop-with-coverage.rs diff --git a/src/test/ui/consts/precise-drop-with-promoted.rs b/tests/ui/consts/precise-drop-with-promoted.rs similarity index 100% rename from src/test/ui/consts/precise-drop-with-promoted.rs rename to tests/ui/consts/precise-drop-with-promoted.rs diff --git a/src/test/ui/consts/promote-not.rs b/tests/ui/consts/promote-not.rs similarity index 100% rename from src/test/ui/consts/promote-not.rs rename to tests/ui/consts/promote-not.rs diff --git a/src/test/ui/consts/promote-not.stderr b/tests/ui/consts/promote-not.stderr similarity index 100% rename from src/test/ui/consts/promote-not.stderr rename to tests/ui/consts/promote-not.stderr diff --git a/src/test/ui/consts/promote_borrowed_field.rs b/tests/ui/consts/promote_borrowed_field.rs similarity index 100% rename from src/test/ui/consts/promote_borrowed_field.rs rename to tests/ui/consts/promote_borrowed_field.rs diff --git a/src/test/ui/consts/promote_const_let.rs b/tests/ui/consts/promote_const_let.rs similarity index 100% rename from src/test/ui/consts/promote_const_let.rs rename to tests/ui/consts/promote_const_let.rs diff --git a/src/test/ui/consts/promote_const_let.stderr b/tests/ui/consts/promote_const_let.stderr similarity index 100% rename from src/test/ui/consts/promote_const_let.stderr rename to tests/ui/consts/promote_const_let.stderr diff --git a/src/test/ui/consts/promote_evaluation_unused_result.rs b/tests/ui/consts/promote_evaluation_unused_result.rs similarity index 100% rename from src/test/ui/consts/promote_evaluation_unused_result.rs rename to tests/ui/consts/promote_evaluation_unused_result.rs diff --git a/src/test/ui/consts/promote_fn_calls.rs b/tests/ui/consts/promote_fn_calls.rs similarity index 100% rename from src/test/ui/consts/promote_fn_calls.rs rename to tests/ui/consts/promote_fn_calls.rs diff --git a/src/test/ui/consts/promote_fn_calls_std.rs b/tests/ui/consts/promote_fn_calls_std.rs similarity index 100% rename from src/test/ui/consts/promote_fn_calls_std.rs rename to tests/ui/consts/promote_fn_calls_std.rs diff --git a/src/test/ui/consts/promoted-const-drop.rs b/tests/ui/consts/promoted-const-drop.rs similarity index 100% rename from src/test/ui/consts/promoted-const-drop.rs rename to tests/ui/consts/promoted-const-drop.rs diff --git a/src/test/ui/consts/promoted-const-drop.stderr b/tests/ui/consts/promoted-const-drop.stderr similarity index 100% rename from src/test/ui/consts/promoted-const-drop.stderr rename to tests/ui/consts/promoted-const-drop.stderr diff --git a/src/test/ui/consts/promoted-storage.rs b/tests/ui/consts/promoted-storage.rs similarity index 100% rename from src/test/ui/consts/promoted-storage.rs rename to tests/ui/consts/promoted-storage.rs diff --git a/src/test/ui/consts/promoted-validation-55454.rs b/tests/ui/consts/promoted-validation-55454.rs similarity index 100% rename from src/test/ui/consts/promoted-validation-55454.rs rename to tests/ui/consts/promoted-validation-55454.rs diff --git a/src/test/ui/consts/promoted_const_call.rs b/tests/ui/consts/promoted_const_call.rs similarity index 100% rename from src/test/ui/consts/promoted_const_call.rs rename to tests/ui/consts/promoted_const_call.rs diff --git a/src/test/ui/consts/promoted_const_call.stderr b/tests/ui/consts/promoted_const_call.stderr similarity index 100% rename from src/test/ui/consts/promoted_const_call.stderr rename to tests/ui/consts/promoted_const_call.stderr diff --git a/src/test/ui/consts/promoted_const_call2.rs b/tests/ui/consts/promoted_const_call2.rs similarity index 100% rename from src/test/ui/consts/promoted_const_call2.rs rename to tests/ui/consts/promoted_const_call2.rs diff --git a/src/test/ui/consts/promoted_const_call2.stderr b/tests/ui/consts/promoted_const_call2.stderr similarity index 100% rename from src/test/ui/consts/promoted_const_call2.stderr rename to tests/ui/consts/promoted_const_call2.stderr diff --git a/src/test/ui/consts/promoted_const_call3.rs b/tests/ui/consts/promoted_const_call3.rs similarity index 100% rename from src/test/ui/consts/promoted_const_call3.rs rename to tests/ui/consts/promoted_const_call3.rs diff --git a/src/test/ui/consts/promoted_const_call3.stderr b/tests/ui/consts/promoted_const_call3.stderr similarity index 100% rename from src/test/ui/consts/promoted_const_call3.stderr rename to tests/ui/consts/promoted_const_call3.stderr diff --git a/src/test/ui/consts/promoted_const_call4.rs b/tests/ui/consts/promoted_const_call4.rs similarity index 100% rename from src/test/ui/consts/promoted_const_call4.rs rename to tests/ui/consts/promoted_const_call4.rs diff --git a/src/test/ui/consts/promoted_const_call5.rs b/tests/ui/consts/promoted_const_call5.rs similarity index 100% rename from src/test/ui/consts/promoted_const_call5.rs rename to tests/ui/consts/promoted_const_call5.rs diff --git a/src/test/ui/consts/promoted_const_call5.stderr b/tests/ui/consts/promoted_const_call5.stderr similarity index 100% rename from src/test/ui/consts/promoted_const_call5.stderr rename to tests/ui/consts/promoted_const_call5.stderr diff --git a/src/test/ui/consts/promoted_regression.rs b/tests/ui/consts/promoted_regression.rs similarity index 100% rename from src/test/ui/consts/promoted_regression.rs rename to tests/ui/consts/promoted_regression.rs diff --git a/src/test/ui/consts/promotion-mutable-ref.rs b/tests/ui/consts/promotion-mutable-ref.rs similarity index 100% rename from src/test/ui/consts/promotion-mutable-ref.rs rename to tests/ui/consts/promotion-mutable-ref.rs diff --git a/src/test/ui/consts/promotion.rs b/tests/ui/consts/promotion.rs similarity index 100% rename from src/test/ui/consts/promotion.rs rename to tests/ui/consts/promotion.rs diff --git a/src/test/ui/consts/ptr_comparisons.rs b/tests/ui/consts/ptr_comparisons.rs similarity index 100% rename from src/test/ui/consts/ptr_comparisons.rs rename to tests/ui/consts/ptr_comparisons.rs diff --git a/src/test/ui/consts/ptr_comparisons.stderr b/tests/ui/consts/ptr_comparisons.stderr similarity index 100% rename from src/test/ui/consts/ptr_comparisons.stderr rename to tests/ui/consts/ptr_comparisons.stderr diff --git a/src/test/ui/consts/ptr_is_null.rs b/tests/ui/consts/ptr_is_null.rs similarity index 100% rename from src/test/ui/consts/ptr_is_null.rs rename to tests/ui/consts/ptr_is_null.rs diff --git a/src/test/ui/consts/qualif-indirect-mutation-fail.rs b/tests/ui/consts/qualif-indirect-mutation-fail.rs similarity index 100% rename from src/test/ui/consts/qualif-indirect-mutation-fail.rs rename to tests/ui/consts/qualif-indirect-mutation-fail.rs diff --git a/src/test/ui/consts/qualif-indirect-mutation-fail.stderr b/tests/ui/consts/qualif-indirect-mutation-fail.stderr similarity index 100% rename from src/test/ui/consts/qualif-indirect-mutation-fail.stderr rename to tests/ui/consts/qualif-indirect-mutation-fail.stderr diff --git a/src/test/ui/consts/qualif-indirect-mutation-pass.rs b/tests/ui/consts/qualif-indirect-mutation-pass.rs similarity index 100% rename from src/test/ui/consts/qualif-indirect-mutation-pass.rs rename to tests/ui/consts/qualif-indirect-mutation-pass.rs diff --git a/src/test/ui/consts/qualif-union.rs b/tests/ui/consts/qualif-union.rs similarity index 100% rename from src/test/ui/consts/qualif-union.rs rename to tests/ui/consts/qualif-union.rs diff --git a/src/test/ui/consts/qualif-union.stderr b/tests/ui/consts/qualif-union.stderr similarity index 100% rename from src/test/ui/consts/qualif-union.stderr rename to tests/ui/consts/qualif-union.stderr diff --git a/src/test/ui/consts/qualif_overwrite.rs b/tests/ui/consts/qualif_overwrite.rs similarity index 100% rename from src/test/ui/consts/qualif_overwrite.rs rename to tests/ui/consts/qualif_overwrite.rs diff --git a/src/test/ui/consts/qualif_overwrite.stderr b/tests/ui/consts/qualif_overwrite.stderr similarity index 100% rename from src/test/ui/consts/qualif_overwrite.stderr rename to tests/ui/consts/qualif_overwrite.stderr diff --git a/src/test/ui/consts/qualif_overwrite_2.rs b/tests/ui/consts/qualif_overwrite_2.rs similarity index 100% rename from src/test/ui/consts/qualif_overwrite_2.rs rename to tests/ui/consts/qualif_overwrite_2.rs diff --git a/src/test/ui/consts/qualif_overwrite_2.stderr b/tests/ui/consts/qualif_overwrite_2.stderr similarity index 100% rename from src/test/ui/consts/qualif_overwrite_2.stderr rename to tests/ui/consts/qualif_overwrite_2.stderr diff --git a/src/test/ui/consts/raw-ptr-const.rs b/tests/ui/consts/raw-ptr-const.rs similarity index 100% rename from src/test/ui/consts/raw-ptr-const.rs rename to tests/ui/consts/raw-ptr-const.rs diff --git a/src/test/ui/consts/raw-ptr-const.stderr b/tests/ui/consts/raw-ptr-const.stderr similarity index 100% rename from src/test/ui/consts/raw-ptr-const.stderr rename to tests/ui/consts/raw-ptr-const.stderr diff --git a/src/test/ui/consts/raw_pointer_promoted.rs b/tests/ui/consts/raw_pointer_promoted.rs similarity index 100% rename from src/test/ui/consts/raw_pointer_promoted.rs rename to tests/ui/consts/raw_pointer_promoted.rs diff --git a/src/test/ui/consts/recursive-zst-static.default.stderr b/tests/ui/consts/recursive-zst-static.default.stderr similarity index 100% rename from src/test/ui/consts/recursive-zst-static.default.stderr rename to tests/ui/consts/recursive-zst-static.default.stderr diff --git a/src/test/ui/consts/recursive-zst-static.rs b/tests/ui/consts/recursive-zst-static.rs similarity index 100% rename from src/test/ui/consts/recursive-zst-static.rs rename to tests/ui/consts/recursive-zst-static.rs diff --git a/src/test/ui/consts/recursive-zst-static.unleash.stderr b/tests/ui/consts/recursive-zst-static.unleash.stderr similarity index 100% rename from src/test/ui/consts/recursive-zst-static.unleash.stderr rename to tests/ui/consts/recursive-zst-static.unleash.stderr diff --git a/src/test/ui/consts/recursive.rs b/tests/ui/consts/recursive.rs similarity index 100% rename from src/test/ui/consts/recursive.rs rename to tests/ui/consts/recursive.rs diff --git a/src/test/ui/consts/recursive.stderr b/tests/ui/consts/recursive.stderr similarity index 100% rename from src/test/ui/consts/recursive.stderr rename to tests/ui/consts/recursive.stderr diff --git a/src/test/ui/consts/references.rs b/tests/ui/consts/references.rs similarity index 100% rename from src/test/ui/consts/references.rs rename to tests/ui/consts/references.rs diff --git a/src/test/ui/consts/refs_check_const_eq-issue-88384.rs b/tests/ui/consts/refs_check_const_eq-issue-88384.rs similarity index 100% rename from src/test/ui/consts/refs_check_const_eq-issue-88384.rs rename to tests/ui/consts/refs_check_const_eq-issue-88384.rs diff --git a/src/test/ui/consts/refs_check_const_eq-issue-88384.stderr b/tests/ui/consts/refs_check_const_eq-issue-88384.stderr similarity index 100% rename from src/test/ui/consts/refs_check_const_eq-issue-88384.stderr rename to tests/ui/consts/refs_check_const_eq-issue-88384.stderr diff --git a/src/test/ui/consts/refs_check_const_value_eq-issue-88876.rs b/tests/ui/consts/refs_check_const_value_eq-issue-88876.rs similarity index 100% rename from src/test/ui/consts/refs_check_const_value_eq-issue-88876.rs rename to tests/ui/consts/refs_check_const_value_eq-issue-88876.rs diff --git a/src/test/ui/consts/repeat_match.rs b/tests/ui/consts/repeat_match.rs similarity index 100% rename from src/test/ui/consts/repeat_match.rs rename to tests/ui/consts/repeat_match.rs diff --git a/src/test/ui/consts/return-in-const-fn.rs b/tests/ui/consts/return-in-const-fn.rs similarity index 100% rename from src/test/ui/consts/return-in-const-fn.rs rename to tests/ui/consts/return-in-const-fn.rs diff --git a/src/test/ui/consts/rustc-const-stability-require-const.rs b/tests/ui/consts/rustc-const-stability-require-const.rs similarity index 100% rename from src/test/ui/consts/rustc-const-stability-require-const.rs rename to tests/ui/consts/rustc-const-stability-require-const.rs diff --git a/src/test/ui/consts/rustc-const-stability-require-const.stderr b/tests/ui/consts/rustc-const-stability-require-const.stderr similarity index 100% rename from src/test/ui/consts/rustc-const-stability-require-const.stderr rename to tests/ui/consts/rustc-const-stability-require-const.stderr diff --git a/src/test/ui/consts/rustc-impl-const-stability.rs b/tests/ui/consts/rustc-impl-const-stability.rs similarity index 100% rename from src/test/ui/consts/rustc-impl-const-stability.rs rename to tests/ui/consts/rustc-impl-const-stability.rs diff --git a/src/test/ui/consts/rvalue-static-promotion.rs b/tests/ui/consts/rvalue-static-promotion.rs similarity index 100% rename from src/test/ui/consts/rvalue-static-promotion.rs rename to tests/ui/consts/rvalue-static-promotion.rs diff --git a/src/test/ui/consts/self_normalization.rs b/tests/ui/consts/self_normalization.rs similarity index 100% rename from src/test/ui/consts/self_normalization.rs rename to tests/ui/consts/self_normalization.rs diff --git a/src/test/ui/consts/self_normalization2.rs b/tests/ui/consts/self_normalization2.rs similarity index 100% rename from src/test/ui/consts/self_normalization2.rs rename to tests/ui/consts/self_normalization2.rs diff --git a/src/test/ui/consts/signed_enum_discr.rs b/tests/ui/consts/signed_enum_discr.rs similarity index 100% rename from src/test/ui/consts/signed_enum_discr.rs rename to tests/ui/consts/signed_enum_discr.rs diff --git a/src/test/ui/consts/stable-precise-live-drops-in-libcore.rs b/tests/ui/consts/stable-precise-live-drops-in-libcore.rs similarity index 100% rename from src/test/ui/consts/stable-precise-live-drops-in-libcore.rs rename to tests/ui/consts/stable-precise-live-drops-in-libcore.rs diff --git a/src/test/ui/consts/stable-precise-live-drops-in-libcore.stderr b/tests/ui/consts/stable-precise-live-drops-in-libcore.stderr similarity index 100% rename from src/test/ui/consts/stable-precise-live-drops-in-libcore.stderr rename to tests/ui/consts/stable-precise-live-drops-in-libcore.stderr diff --git a/src/test/ui/consts/static-cycle-error.rs b/tests/ui/consts/static-cycle-error.rs similarity index 100% rename from src/test/ui/consts/static-cycle-error.rs rename to tests/ui/consts/static-cycle-error.rs diff --git a/src/test/ui/consts/static-raw-pointer-interning.rs b/tests/ui/consts/static-raw-pointer-interning.rs similarity index 100% rename from src/test/ui/consts/static-raw-pointer-interning.rs rename to tests/ui/consts/static-raw-pointer-interning.rs diff --git a/src/test/ui/consts/static-raw-pointer-interning2.rs b/tests/ui/consts/static-raw-pointer-interning2.rs similarity index 100% rename from src/test/ui/consts/static-raw-pointer-interning2.rs rename to tests/ui/consts/static-raw-pointer-interning2.rs diff --git a/src/test/ui/consts/static_mut_containing_mut_ref.rs b/tests/ui/consts/static_mut_containing_mut_ref.rs similarity index 100% rename from src/test/ui/consts/static_mut_containing_mut_ref.rs rename to tests/ui/consts/static_mut_containing_mut_ref.rs diff --git a/src/test/ui/consts/static_mut_containing_mut_ref2.mut_refs.stderr b/tests/ui/consts/static_mut_containing_mut_ref2.mut_refs.stderr similarity index 100% rename from src/test/ui/consts/static_mut_containing_mut_ref2.mut_refs.stderr rename to tests/ui/consts/static_mut_containing_mut_ref2.mut_refs.stderr diff --git a/src/test/ui/consts/static_mut_containing_mut_ref2.rs b/tests/ui/consts/static_mut_containing_mut_ref2.rs similarity index 100% rename from src/test/ui/consts/static_mut_containing_mut_ref2.rs rename to tests/ui/consts/static_mut_containing_mut_ref2.rs diff --git a/src/test/ui/consts/static_mut_containing_mut_ref2.stock.stderr b/tests/ui/consts/static_mut_containing_mut_ref2.stock.stderr similarity index 100% rename from src/test/ui/consts/static_mut_containing_mut_ref2.stock.stderr rename to tests/ui/consts/static_mut_containing_mut_ref2.stock.stderr diff --git a/src/test/ui/consts/static_mut_containing_mut_ref3.rs b/tests/ui/consts/static_mut_containing_mut_ref3.rs similarity index 100% rename from src/test/ui/consts/static_mut_containing_mut_ref3.rs rename to tests/ui/consts/static_mut_containing_mut_ref3.rs diff --git a/src/test/ui/consts/static_mut_containing_mut_ref3.stderr b/tests/ui/consts/static_mut_containing_mut_ref3.stderr similarity index 100% rename from src/test/ui/consts/static_mut_containing_mut_ref3.stderr rename to tests/ui/consts/static_mut_containing_mut_ref3.stderr diff --git a/src/test/ui/consts/std/alloc.32bit.stderr b/tests/ui/consts/std/alloc.32bit.stderr similarity index 100% rename from src/test/ui/consts/std/alloc.32bit.stderr rename to tests/ui/consts/std/alloc.32bit.stderr diff --git a/src/test/ui/consts/std/alloc.64bit.stderr b/tests/ui/consts/std/alloc.64bit.stderr similarity index 100% rename from src/test/ui/consts/std/alloc.64bit.stderr rename to tests/ui/consts/std/alloc.64bit.stderr diff --git a/src/test/ui/consts/std/alloc.rs b/tests/ui/consts/std/alloc.rs similarity index 100% rename from src/test/ui/consts/std/alloc.rs rename to tests/ui/consts/std/alloc.rs diff --git a/src/test/ui/consts/std/cell.rs b/tests/ui/consts/std/cell.rs similarity index 100% rename from src/test/ui/consts/std/cell.rs rename to tests/ui/consts/std/cell.rs diff --git a/src/test/ui/consts/std/cell.stderr b/tests/ui/consts/std/cell.stderr similarity index 100% rename from src/test/ui/consts/std/cell.stderr rename to tests/ui/consts/std/cell.stderr diff --git a/src/test/ui/consts/std/iter.rs b/tests/ui/consts/std/iter.rs similarity index 100% rename from src/test/ui/consts/std/iter.rs rename to tests/ui/consts/std/iter.rs diff --git a/src/test/ui/consts/std/slice.rs b/tests/ui/consts/std/slice.rs similarity index 100% rename from src/test/ui/consts/std/slice.rs rename to tests/ui/consts/std/slice.rs diff --git a/src/test/ui/consts/too_generic_eval_ice.rs b/tests/ui/consts/too_generic_eval_ice.rs similarity index 100% rename from src/test/ui/consts/too_generic_eval_ice.rs rename to tests/ui/consts/too_generic_eval_ice.rs diff --git a/src/test/ui/consts/too_generic_eval_ice.stderr b/tests/ui/consts/too_generic_eval_ice.stderr similarity index 100% rename from src/test/ui/consts/too_generic_eval_ice.stderr rename to tests/ui/consts/too_generic_eval_ice.stderr diff --git a/src/test/ui/consts/trait_specialization.rs b/tests/ui/consts/trait_specialization.rs similarity index 100% rename from src/test/ui/consts/trait_specialization.rs rename to tests/ui/consts/trait_specialization.rs diff --git a/src/test/ui/consts/trait_specialization.stderr b/tests/ui/consts/trait_specialization.stderr similarity index 100% rename from src/test/ui/consts/trait_specialization.stderr rename to tests/ui/consts/trait_specialization.stderr diff --git a/src/test/ui/consts/transmute-const.rs b/tests/ui/consts/transmute-const.rs similarity index 100% rename from src/test/ui/consts/transmute-const.rs rename to tests/ui/consts/transmute-const.rs diff --git a/src/test/ui/consts/transmute-size-mismatch-before-typeck.rs b/tests/ui/consts/transmute-size-mismatch-before-typeck.rs similarity index 100% rename from src/test/ui/consts/transmute-size-mismatch-before-typeck.rs rename to tests/ui/consts/transmute-size-mismatch-before-typeck.rs diff --git a/src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr b/tests/ui/consts/transmute-size-mismatch-before-typeck.stderr similarity index 100% rename from src/test/ui/consts/transmute-size-mismatch-before-typeck.stderr rename to tests/ui/consts/transmute-size-mismatch-before-typeck.stderr diff --git a/src/test/ui/consts/try-operator.rs b/tests/ui/consts/try-operator.rs similarity index 100% rename from src/test/ui/consts/try-operator.rs rename to tests/ui/consts/try-operator.rs diff --git a/src/test/ui/consts/tuple-struct-constructors.rs b/tests/ui/consts/tuple-struct-constructors.rs similarity index 100% rename from src/test/ui/consts/tuple-struct-constructors.rs rename to tests/ui/consts/tuple-struct-constructors.rs diff --git a/src/test/ui/consts/underscore_const_names.rs b/tests/ui/consts/underscore_const_names.rs similarity index 100% rename from src/test/ui/consts/underscore_const_names.rs rename to tests/ui/consts/underscore_const_names.rs diff --git a/src/test/ui/consts/uninhabited-const-issue-61744.rs b/tests/ui/consts/uninhabited-const-issue-61744.rs similarity index 100% rename from src/test/ui/consts/uninhabited-const-issue-61744.rs rename to tests/ui/consts/uninhabited-const-issue-61744.rs diff --git a/src/test/ui/consts/uninhabited-const-issue-61744.stderr b/tests/ui/consts/uninhabited-const-issue-61744.stderr similarity index 100% rename from src/test/ui/consts/uninhabited-const-issue-61744.stderr rename to tests/ui/consts/uninhabited-const-issue-61744.stderr diff --git a/src/test/ui/consts/union_constant.rs b/tests/ui/consts/union_constant.rs similarity index 100% rename from src/test/ui/consts/union_constant.rs rename to tests/ui/consts/union_constant.rs diff --git a/src/test/ui/consts/unnormalized-param-env.rs b/tests/ui/consts/unnormalized-param-env.rs similarity index 100% rename from src/test/ui/consts/unnormalized-param-env.rs rename to tests/ui/consts/unnormalized-param-env.rs diff --git a/src/test/ui/consts/unstable-const-fn-in-libcore.rs b/tests/ui/consts/unstable-const-fn-in-libcore.rs similarity index 100% rename from src/test/ui/consts/unstable-const-fn-in-libcore.rs rename to tests/ui/consts/unstable-const-fn-in-libcore.rs diff --git a/src/test/ui/consts/unstable-const-fn-in-libcore.stderr b/tests/ui/consts/unstable-const-fn-in-libcore.stderr similarity index 100% rename from src/test/ui/consts/unstable-const-fn-in-libcore.stderr rename to tests/ui/consts/unstable-const-fn-in-libcore.stderr diff --git a/src/test/ui/consts/unstable-precise-live-drops-in-libcore.rs b/tests/ui/consts/unstable-precise-live-drops-in-libcore.rs similarity index 100% rename from src/test/ui/consts/unstable-precise-live-drops-in-libcore.rs rename to tests/ui/consts/unstable-precise-live-drops-in-libcore.rs diff --git a/src/test/ui/consts/unwind-abort.rs b/tests/ui/consts/unwind-abort.rs similarity index 100% rename from src/test/ui/consts/unwind-abort.rs rename to tests/ui/consts/unwind-abort.rs diff --git a/src/test/ui/consts/validate_never_arrays.rs b/tests/ui/consts/validate_never_arrays.rs similarity index 100% rename from src/test/ui/consts/validate_never_arrays.rs rename to tests/ui/consts/validate_never_arrays.rs diff --git a/src/test/ui/consts/validate_never_arrays.stderr b/tests/ui/consts/validate_never_arrays.stderr similarity index 100% rename from src/test/ui/consts/validate_never_arrays.stderr rename to tests/ui/consts/validate_never_arrays.stderr diff --git a/src/test/ui/consts/write-to-static-mut-in-static.rs b/tests/ui/consts/write-to-static-mut-in-static.rs similarity index 100% rename from src/test/ui/consts/write-to-static-mut-in-static.rs rename to tests/ui/consts/write-to-static-mut-in-static.rs diff --git a/src/test/ui/consts/write-to-static-mut-in-static.stderr b/tests/ui/consts/write-to-static-mut-in-static.stderr similarity index 100% rename from src/test/ui/consts/write-to-static-mut-in-static.stderr rename to tests/ui/consts/write-to-static-mut-in-static.stderr diff --git a/src/test/ui/consts/write_to_mut_ref_dest.rs b/tests/ui/consts/write_to_mut_ref_dest.rs similarity index 100% rename from src/test/ui/consts/write_to_mut_ref_dest.rs rename to tests/ui/consts/write_to_mut_ref_dest.rs diff --git a/src/test/ui/consts/write_to_mut_ref_dest.stock.stderr b/tests/ui/consts/write_to_mut_ref_dest.stock.stderr similarity index 100% rename from src/test/ui/consts/write_to_mut_ref_dest.stock.stderr rename to tests/ui/consts/write_to_mut_ref_dest.stock.stderr diff --git a/src/test/ui/consts/write_to_static_via_mut_ref.rs b/tests/ui/consts/write_to_static_via_mut_ref.rs similarity index 100% rename from src/test/ui/consts/write_to_static_via_mut_ref.rs rename to tests/ui/consts/write_to_static_via_mut_ref.rs diff --git a/src/test/ui/consts/write_to_static_via_mut_ref.stderr b/tests/ui/consts/write_to_static_via_mut_ref.stderr similarity index 100% rename from src/test/ui/consts/write_to_static_via_mut_ref.stderr rename to tests/ui/consts/write_to_static_via_mut_ref.stderr diff --git a/src/test/ui/consts/zst_no_llvm_alloc.rs b/tests/ui/consts/zst_no_llvm_alloc.rs similarity index 100% rename from src/test/ui/consts/zst_no_llvm_alloc.rs rename to tests/ui/consts/zst_no_llvm_alloc.rs diff --git a/src/test/ui/copy-a-resource.rs b/tests/ui/copy-a-resource.rs similarity index 100% rename from src/test/ui/copy-a-resource.rs rename to tests/ui/copy-a-resource.rs diff --git a/src/test/ui/copy-a-resource.stderr b/tests/ui/copy-a-resource.stderr similarity index 100% rename from src/test/ui/copy-a-resource.stderr rename to tests/ui/copy-a-resource.stderr diff --git a/src/test/ui/crate-leading-sep.rs b/tests/ui/crate-leading-sep.rs similarity index 100% rename from src/test/ui/crate-leading-sep.rs rename to tests/ui/crate-leading-sep.rs diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve1-1.rs b/tests/ui/crate-loading/auxiliary/crateresolve1-1.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/crateresolve1-1.rs rename to tests/ui/crate-loading/auxiliary/crateresolve1-1.rs diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve1-2.rs b/tests/ui/crate-loading/auxiliary/crateresolve1-2.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/crateresolve1-2.rs rename to tests/ui/crate-loading/auxiliary/crateresolve1-2.rs diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve1-3.rs b/tests/ui/crate-loading/auxiliary/crateresolve1-3.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/crateresolve1-3.rs rename to tests/ui/crate-loading/auxiliary/crateresolve1-3.rs diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve2-1.rs b/tests/ui/crate-loading/auxiliary/crateresolve2-1.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/crateresolve2-1.rs rename to tests/ui/crate-loading/auxiliary/crateresolve2-1.rs diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve2-2.rs b/tests/ui/crate-loading/auxiliary/crateresolve2-2.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/crateresolve2-2.rs rename to tests/ui/crate-loading/auxiliary/crateresolve2-2.rs diff --git a/src/test/ui/crate-loading/auxiliary/crateresolve2-3.rs b/tests/ui/crate-loading/auxiliary/crateresolve2-3.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/crateresolve2-3.rs rename to tests/ui/crate-loading/auxiliary/crateresolve2-3.rs diff --git a/src/test/ui/crate-loading/auxiliary/libfoo.rlib b/tests/ui/crate-loading/auxiliary/libfoo.rlib similarity index 100% rename from src/test/ui/crate-loading/auxiliary/libfoo.rlib rename to tests/ui/crate-loading/auxiliary/libfoo.rlib diff --git a/src/test/ui/crate-loading/auxiliary/proc-macro.rs b/tests/ui/crate-loading/auxiliary/proc-macro.rs similarity index 100% rename from src/test/ui/crate-loading/auxiliary/proc-macro.rs rename to tests/ui/crate-loading/auxiliary/proc-macro.rs diff --git a/src/test/ui/crate-loading/crateresolve1.rs b/tests/ui/crate-loading/crateresolve1.rs similarity index 84% rename from src/test/ui/crate-loading/crateresolve1.rs rename to tests/ui/crate-loading/crateresolve1.rs index f5477f244dd8f..61a1ee263eded 100644 --- a/src/test/ui/crate-loading/crateresolve1.rs +++ b/tests/ui/crate-loading/crateresolve1.rs @@ -6,7 +6,7 @@ // normalize-stderr-test: "\\\?\\" -> "" // normalize-stderr-test: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib" -// NOTE: This test is duplicated at `src/test/ui/error-codes/E0464.rs`. +// NOTE: This test is duplicated at `tests/ui/error-codes/E0464.rs`. extern crate crateresolve1; //~^ ERROR multiple candidates for `rlib` dependency `crateresolve1` found diff --git a/src/test/ui/crate-loading/crateresolve1.stderr b/tests/ui/crate-loading/crateresolve1.stderr similarity index 100% rename from src/test/ui/crate-loading/crateresolve1.stderr rename to tests/ui/crate-loading/crateresolve1.stderr diff --git a/src/test/ui/crate-loading/crateresolve2.rs b/tests/ui/crate-loading/crateresolve2.rs similarity index 100% rename from src/test/ui/crate-loading/crateresolve2.rs rename to tests/ui/crate-loading/crateresolve2.rs diff --git a/src/test/ui/crate-loading/crateresolve2.stderr b/tests/ui/crate-loading/crateresolve2.stderr similarity index 100% rename from src/test/ui/crate-loading/crateresolve2.stderr rename to tests/ui/crate-loading/crateresolve2.stderr diff --git a/src/test/ui/crate-loading/cross-compiled-proc-macro.rs b/tests/ui/crate-loading/cross-compiled-proc-macro.rs similarity index 100% rename from src/test/ui/crate-loading/cross-compiled-proc-macro.rs rename to tests/ui/crate-loading/cross-compiled-proc-macro.rs diff --git a/src/test/ui/crate-loading/invalid-rlib.rs b/tests/ui/crate-loading/invalid-rlib.rs similarity index 100% rename from src/test/ui/crate-loading/invalid-rlib.rs rename to tests/ui/crate-loading/invalid-rlib.rs diff --git a/src/test/ui/crate-loading/invalid-rlib.stderr b/tests/ui/crate-loading/invalid-rlib.stderr similarity index 100% rename from src/test/ui/crate-loading/invalid-rlib.stderr rename to tests/ui/crate-loading/invalid-rlib.stderr diff --git a/src/test/ui/crate-loading/missing-std.rs b/tests/ui/crate-loading/missing-std.rs similarity index 100% rename from src/test/ui/crate-loading/missing-std.rs rename to tests/ui/crate-loading/missing-std.rs diff --git a/src/test/ui/crate-loading/missing-std.stderr b/tests/ui/crate-loading/missing-std.stderr similarity index 100% rename from src/test/ui/crate-loading/missing-std.stderr rename to tests/ui/crate-loading/missing-std.stderr diff --git a/src/test/ui/crate-method-reexport-grrrrrrr.rs b/tests/ui/crate-method-reexport-grrrrrrr.rs similarity index 100% rename from src/test/ui/crate-method-reexport-grrrrrrr.rs rename to tests/ui/crate-method-reexport-grrrrrrr.rs diff --git a/src/test/ui/crate-name-attr-used.rs b/tests/ui/crate-name-attr-used.rs similarity index 100% rename from src/test/ui/crate-name-attr-used.rs rename to tests/ui/crate-name-attr-used.rs diff --git a/src/test/ui/crate-name-mismatch.rs b/tests/ui/crate-name-mismatch.rs similarity index 100% rename from src/test/ui/crate-name-mismatch.rs rename to tests/ui/crate-name-mismatch.rs diff --git a/src/test/ui/crate-name-mismatch.stderr b/tests/ui/crate-name-mismatch.stderr similarity index 100% rename from src/test/ui/crate-name-mismatch.stderr rename to tests/ui/crate-name-mismatch.stderr diff --git a/src/test/ui/cross-crate/auxiliary/cci_borrow_lib.rs b/tests/ui/cross-crate/auxiliary/cci_borrow_lib.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_borrow_lib.rs rename to tests/ui/cross-crate/auxiliary/cci_borrow_lib.rs diff --git a/src/test/ui/cross-crate/auxiliary/cci_capture_clause.rs b/tests/ui/cross-crate/auxiliary/cci_capture_clause.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_capture_clause.rs rename to tests/ui/cross-crate/auxiliary/cci_capture_clause.rs diff --git a/src/test/ui/cross-crate/auxiliary/cci_const.rs b/tests/ui/cross-crate/auxiliary/cci_const.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_const.rs rename to tests/ui/cross-crate/auxiliary/cci_const.rs diff --git a/src/test/ui/cross-crate/auxiliary/cci_impl_lib.rs b/tests/ui/cross-crate/auxiliary/cci_impl_lib.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_impl_lib.rs rename to tests/ui/cross-crate/auxiliary/cci_impl_lib.rs diff --git a/src/test/ui/cross-crate/auxiliary/cci_iter_lib.rs b/tests/ui/cross-crate/auxiliary/cci_iter_lib.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_iter_lib.rs rename to tests/ui/cross-crate/auxiliary/cci_iter_lib.rs diff --git a/src/test/ui/cross-crate/auxiliary/cci_nested_lib.rs b/tests/ui/cross-crate/auxiliary/cci_nested_lib.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_nested_lib.rs rename to tests/ui/cross-crate/auxiliary/cci_nested_lib.rs diff --git a/src/test/ui/cross-crate/auxiliary/cci_no_inline_lib.rs b/tests/ui/cross-crate/auxiliary/cci_no_inline_lib.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/cci_no_inline_lib.rs rename to tests/ui/cross-crate/auxiliary/cci_no_inline_lib.rs diff --git a/src/test/ui/cross-crate/auxiliary/moves_based_on_type_lib.rs b/tests/ui/cross-crate/auxiliary/moves_based_on_type_lib.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/moves_based_on_type_lib.rs rename to tests/ui/cross-crate/auxiliary/moves_based_on_type_lib.rs diff --git a/src/test/ui/cross-crate/auxiliary/pub_static_array.rs b/tests/ui/cross-crate/auxiliary/pub_static_array.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/pub_static_array.rs rename to tests/ui/cross-crate/auxiliary/pub_static_array.rs diff --git a/src/test/ui/cross-crate/auxiliary/reexported_static_methods.rs b/tests/ui/cross-crate/auxiliary/reexported_static_methods.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/reexported_static_methods.rs rename to tests/ui/cross-crate/auxiliary/reexported_static_methods.rs diff --git a/src/test/ui/cross-crate/auxiliary/static_init_aux.rs b/tests/ui/cross-crate/auxiliary/static_init_aux.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/static_init_aux.rs rename to tests/ui/cross-crate/auxiliary/static_init_aux.rs diff --git a/src/test/ui/cross-crate/auxiliary/xcrate-trait-lifetime-param.rs b/tests/ui/cross-crate/auxiliary/xcrate-trait-lifetime-param.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/xcrate-trait-lifetime-param.rs rename to tests/ui/cross-crate/auxiliary/xcrate-trait-lifetime-param.rs diff --git a/src/test/ui/cross-crate/auxiliary/xcrate_address_insignificant.rs b/tests/ui/cross-crate/auxiliary/xcrate_address_insignificant.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/xcrate_address_insignificant.rs rename to tests/ui/cross-crate/auxiliary/xcrate_address_insignificant.rs diff --git a/src/test/ui/cross-crate/auxiliary/xcrate_associated_type_defaults.rs b/tests/ui/cross-crate/auxiliary/xcrate_associated_type_defaults.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/xcrate_associated_type_defaults.rs rename to tests/ui/cross-crate/auxiliary/xcrate_associated_type_defaults.rs diff --git a/src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs b/tests/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs rename to tests/ui/cross-crate/auxiliary/xcrate_generic_fn_nested_return.rs diff --git a/src/test/ui/cross-crate/auxiliary/xcrate_static_addresses.rs b/tests/ui/cross-crate/auxiliary/xcrate_static_addresses.rs similarity index 100% rename from src/test/ui/cross-crate/auxiliary/xcrate_static_addresses.rs rename to tests/ui/cross-crate/auxiliary/xcrate_static_addresses.rs diff --git a/src/test/ui/cross-crate/cci_borrow.rs b/tests/ui/cross-crate/cci_borrow.rs similarity index 100% rename from src/test/ui/cross-crate/cci_borrow.rs rename to tests/ui/cross-crate/cci_borrow.rs diff --git a/src/test/ui/cross-crate/cci_capture_clause.rs b/tests/ui/cross-crate/cci_capture_clause.rs similarity index 100% rename from src/test/ui/cross-crate/cci_capture_clause.rs rename to tests/ui/cross-crate/cci_capture_clause.rs diff --git a/src/test/ui/cross-crate/cci_impl_exe.rs b/tests/ui/cross-crate/cci_impl_exe.rs similarity index 100% rename from src/test/ui/cross-crate/cci_impl_exe.rs rename to tests/ui/cross-crate/cci_impl_exe.rs diff --git a/src/test/ui/cross-crate/cci_iter_exe.rs b/tests/ui/cross-crate/cci_iter_exe.rs similarity index 100% rename from src/test/ui/cross-crate/cci_iter_exe.rs rename to tests/ui/cross-crate/cci_iter_exe.rs diff --git a/src/test/ui/cross-crate/cci_nested_exe.rs b/tests/ui/cross-crate/cci_nested_exe.rs similarity index 100% rename from src/test/ui/cross-crate/cci_nested_exe.rs rename to tests/ui/cross-crate/cci_nested_exe.rs diff --git a/src/test/ui/cross-crate/cci_no_inline_exe.rs b/tests/ui/cross-crate/cci_no_inline_exe.rs similarity index 100% rename from src/test/ui/cross-crate/cci_no_inline_exe.rs rename to tests/ui/cross-crate/cci_no_inline_exe.rs diff --git a/src/test/ui/cross-crate/const-cross-crate-const.rs b/tests/ui/cross-crate/const-cross-crate-const.rs similarity index 100% rename from src/test/ui/cross-crate/const-cross-crate-const.rs rename to tests/ui/cross-crate/const-cross-crate-const.rs diff --git a/src/test/ui/cross-crate/const-cross-crate-extern.rs b/tests/ui/cross-crate/const-cross-crate-extern.rs similarity index 100% rename from src/test/ui/cross-crate/const-cross-crate-extern.rs rename to tests/ui/cross-crate/const-cross-crate-extern.rs diff --git a/src/test/ui/cross-crate/cross-crate-const-pat.rs b/tests/ui/cross-crate/cross-crate-const-pat.rs similarity index 100% rename from src/test/ui/cross-crate/cross-crate-const-pat.rs rename to tests/ui/cross-crate/cross-crate-const-pat.rs diff --git a/src/test/ui/cross-crate/issue-64872/auxiliary/a_def_obj.rs b/tests/ui/cross-crate/issue-64872/auxiliary/a_def_obj.rs similarity index 100% rename from src/test/ui/cross-crate/issue-64872/auxiliary/a_def_obj.rs rename to tests/ui/cross-crate/issue-64872/auxiliary/a_def_obj.rs diff --git a/src/test/ui/cross-crate/issue-64872/auxiliary/b_reexport_obj.rs b/tests/ui/cross-crate/issue-64872/auxiliary/b_reexport_obj.rs similarity index 100% rename from src/test/ui/cross-crate/issue-64872/auxiliary/b_reexport_obj.rs rename to tests/ui/cross-crate/issue-64872/auxiliary/b_reexport_obj.rs diff --git a/src/test/ui/cross-crate/issue-64872/auxiliary/c_another_vtable_for_obj.rs b/tests/ui/cross-crate/issue-64872/auxiliary/c_another_vtable_for_obj.rs similarity index 100% rename from src/test/ui/cross-crate/issue-64872/auxiliary/c_another_vtable_for_obj.rs rename to tests/ui/cross-crate/issue-64872/auxiliary/c_another_vtable_for_obj.rs diff --git a/src/test/ui/cross-crate/issue-64872/auxiliary/d_chain_of_rlibs_and_dylibs.rs b/tests/ui/cross-crate/issue-64872/auxiliary/d_chain_of_rlibs_and_dylibs.rs similarity index 100% rename from src/test/ui/cross-crate/issue-64872/auxiliary/d_chain_of_rlibs_and_dylibs.rs rename to tests/ui/cross-crate/issue-64872/auxiliary/d_chain_of_rlibs_and_dylibs.rs diff --git a/src/test/ui/cross-crate/issue-64872/issue-64872.rs b/tests/ui/cross-crate/issue-64872/issue-64872.rs similarity index 100% rename from src/test/ui/cross-crate/issue-64872/issue-64872.rs rename to tests/ui/cross-crate/issue-64872/issue-64872.rs diff --git a/src/test/ui/cross-crate/moves-based-on-type-cross-crate.rs b/tests/ui/cross-crate/moves-based-on-type-cross-crate.rs similarity index 100% rename from src/test/ui/cross-crate/moves-based-on-type-cross-crate.rs rename to tests/ui/cross-crate/moves-based-on-type-cross-crate.rs diff --git a/src/test/ui/cross-crate/reexported-static-methods-cross-crate.rs b/tests/ui/cross-crate/reexported-static-methods-cross-crate.rs similarity index 100% rename from src/test/ui/cross-crate/reexported-static-methods-cross-crate.rs rename to tests/ui/cross-crate/reexported-static-methods-cross-crate.rs diff --git a/src/test/ui/cross-crate/static-array-across-crate.rs b/tests/ui/cross-crate/static-array-across-crate.rs similarity index 100% rename from src/test/ui/cross-crate/static-array-across-crate.rs rename to tests/ui/cross-crate/static-array-across-crate.rs diff --git a/src/test/ui/cross-crate/static-init.rs b/tests/ui/cross-crate/static-init.rs similarity index 100% rename from src/test/ui/cross-crate/static-init.rs rename to tests/ui/cross-crate/static-init.rs diff --git a/src/test/ui/cross-crate/xcrate-address-insignificant.rs b/tests/ui/cross-crate/xcrate-address-insignificant.rs similarity index 100% rename from src/test/ui/cross-crate/xcrate-address-insignificant.rs rename to tests/ui/cross-crate/xcrate-address-insignificant.rs diff --git a/src/test/ui/cross-crate/xcrate-associated-type-defaults.rs b/tests/ui/cross-crate/xcrate-associated-type-defaults.rs similarity index 100% rename from src/test/ui/cross-crate/xcrate-associated-type-defaults.rs rename to tests/ui/cross-crate/xcrate-associated-type-defaults.rs diff --git a/src/test/ui/cross-crate/xcrate-static-addresses.rs b/tests/ui/cross-crate/xcrate-static-addresses.rs similarity index 100% rename from src/test/ui/cross-crate/xcrate-static-addresses.rs rename to tests/ui/cross-crate/xcrate-static-addresses.rs diff --git a/src/test/ui/cross-crate/xcrate-trait-lifetime-param.rs b/tests/ui/cross-crate/xcrate-trait-lifetime-param.rs similarity index 100% rename from src/test/ui/cross-crate/xcrate-trait-lifetime-param.rs rename to tests/ui/cross-crate/xcrate-trait-lifetime-param.rs diff --git a/src/test/ui/cross-crate/xcrate_generic_fn_nested_return.rs b/tests/ui/cross-crate/xcrate_generic_fn_nested_return.rs similarity index 100% rename from src/test/ui/cross-crate/xcrate_generic_fn_nested_return.rs rename to tests/ui/cross-crate/xcrate_generic_fn_nested_return.rs diff --git a/src/test/ui/cross/cross-borrow-trait.rs b/tests/ui/cross/cross-borrow-trait.rs similarity index 100% rename from src/test/ui/cross/cross-borrow-trait.rs rename to tests/ui/cross/cross-borrow-trait.rs diff --git a/src/test/ui/cross/cross-borrow-trait.stderr b/tests/ui/cross/cross-borrow-trait.stderr similarity index 100% rename from src/test/ui/cross/cross-borrow-trait.stderr rename to tests/ui/cross/cross-borrow-trait.stderr diff --git a/src/test/ui/cross/cross-crate-macro-backtrace/auxiliary/extern_macro_crate.rs b/tests/ui/cross/cross-crate-macro-backtrace/auxiliary/extern_macro_crate.rs similarity index 100% rename from src/test/ui/cross/cross-crate-macro-backtrace/auxiliary/extern_macro_crate.rs rename to tests/ui/cross/cross-crate-macro-backtrace/auxiliary/extern_macro_crate.rs diff --git a/src/test/ui/cross/cross-crate-macro-backtrace/main.rs b/tests/ui/cross/cross-crate-macro-backtrace/main.rs similarity index 100% rename from src/test/ui/cross/cross-crate-macro-backtrace/main.rs rename to tests/ui/cross/cross-crate-macro-backtrace/main.rs diff --git a/src/test/ui/cross/cross-crate-macro-backtrace/main.stderr b/tests/ui/cross/cross-crate-macro-backtrace/main.stderr similarity index 100% rename from src/test/ui/cross/cross-crate-macro-backtrace/main.stderr rename to tests/ui/cross/cross-crate-macro-backtrace/main.stderr diff --git a/src/test/ui/cross/cross-file-errors/main.rs b/tests/ui/cross/cross-file-errors/main.rs similarity index 100% rename from src/test/ui/cross/cross-file-errors/main.rs rename to tests/ui/cross/cross-file-errors/main.rs diff --git a/src/test/ui/cross/cross-file-errors/main.stderr b/tests/ui/cross/cross-file-errors/main.stderr similarity index 100% rename from src/test/ui/cross/cross-file-errors/main.stderr rename to tests/ui/cross/cross-file-errors/main.stderr diff --git a/src/test/ui/cross/cross-file-errors/underscore.rs b/tests/ui/cross/cross-file-errors/underscore.rs similarity index 100% rename from src/test/ui/cross/cross-file-errors/underscore.rs rename to tests/ui/cross/cross-file-errors/underscore.rs diff --git a/src/test/ui/cross/cross-fn-cache-hole.rs b/tests/ui/cross/cross-fn-cache-hole.rs similarity index 100% rename from src/test/ui/cross/cross-fn-cache-hole.rs rename to tests/ui/cross/cross-fn-cache-hole.rs diff --git a/src/test/ui/cross/cross-fn-cache-hole.stderr b/tests/ui/cross/cross-fn-cache-hole.stderr similarity index 100% rename from src/test/ui/cross/cross-fn-cache-hole.stderr rename to tests/ui/cross/cross-fn-cache-hole.stderr diff --git a/src/test/ui/custom-attribute-multisegment.rs b/tests/ui/custom-attribute-multisegment.rs similarity index 100% rename from src/test/ui/custom-attribute-multisegment.rs rename to tests/ui/custom-attribute-multisegment.rs diff --git a/src/test/ui/custom-attribute-multisegment.stderr b/tests/ui/custom-attribute-multisegment.stderr similarity index 100% rename from src/test/ui/custom-attribute-multisegment.stderr rename to tests/ui/custom-attribute-multisegment.stderr diff --git a/src/test/ui/custom-test-frameworks-simple.rs b/tests/ui/custom-test-frameworks-simple.rs similarity index 100% rename from src/test/ui/custom-test-frameworks-simple.rs rename to tests/ui/custom-test-frameworks-simple.rs diff --git a/src/test/ui/custom_attribute.rs b/tests/ui/custom_attribute.rs similarity index 100% rename from src/test/ui/custom_attribute.rs rename to tests/ui/custom_attribute.rs diff --git a/src/test/ui/custom_attribute.stderr b/tests/ui/custom_attribute.stderr similarity index 100% rename from src/test/ui/custom_attribute.stderr rename to tests/ui/custom_attribute.stderr diff --git a/src/test/ui/custom_test_frameworks/auxiliary/dynamic_runner.rs b/tests/ui/custom_test_frameworks/auxiliary/dynamic_runner.rs similarity index 100% rename from src/test/ui/custom_test_frameworks/auxiliary/dynamic_runner.rs rename to tests/ui/custom_test_frameworks/auxiliary/dynamic_runner.rs diff --git a/src/test/ui/custom_test_frameworks/auxiliary/example_runner.rs b/tests/ui/custom_test_frameworks/auxiliary/example_runner.rs similarity index 100% rename from src/test/ui/custom_test_frameworks/auxiliary/example_runner.rs rename to tests/ui/custom_test_frameworks/auxiliary/example_runner.rs diff --git a/src/test/ui/custom_test_frameworks/dynamic.rs b/tests/ui/custom_test_frameworks/dynamic.rs similarity index 100% rename from src/test/ui/custom_test_frameworks/dynamic.rs rename to tests/ui/custom_test_frameworks/dynamic.rs diff --git a/src/test/ui/custom_test_frameworks/full.rs b/tests/ui/custom_test_frameworks/full.rs similarity index 100% rename from src/test/ui/custom_test_frameworks/full.rs rename to tests/ui/custom_test_frameworks/full.rs diff --git a/src/test/ui/custom_test_frameworks/mismatch.rs b/tests/ui/custom_test_frameworks/mismatch.rs similarity index 100% rename from src/test/ui/custom_test_frameworks/mismatch.rs rename to tests/ui/custom_test_frameworks/mismatch.rs diff --git a/src/test/ui/custom_test_frameworks/mismatch.stderr b/tests/ui/custom_test_frameworks/mismatch.stderr similarity index 100% rename from src/test/ui/custom_test_frameworks/mismatch.stderr rename to tests/ui/custom_test_frameworks/mismatch.stderr diff --git a/src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs b/tests/ui/cycle-trait/cycle-trait-default-type-trait.rs similarity index 100% rename from src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs rename to tests/ui/cycle-trait/cycle-trait-default-type-trait.rs diff --git a/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr b/tests/ui/cycle-trait/cycle-trait-default-type-trait.stderr similarity index 100% rename from src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr rename to tests/ui/cycle-trait/cycle-trait-default-type-trait.stderr diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs b/tests/ui/cycle-trait/cycle-trait-supertrait-direct.rs similarity index 100% rename from src/test/ui/cycle-trait/cycle-trait-supertrait-direct.rs rename to tests/ui/cycle-trait/cycle-trait-supertrait-direct.rs diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr b/tests/ui/cycle-trait/cycle-trait-supertrait-direct.stderr similarity index 100% rename from src/test/ui/cycle-trait/cycle-trait-supertrait-direct.stderr rename to tests/ui/cycle-trait/cycle-trait-supertrait-direct.stderr diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.rs b/tests/ui/cycle-trait/cycle-trait-supertrait-indirect.rs similarity index 100% rename from src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.rs rename to tests/ui/cycle-trait/cycle-trait-supertrait-indirect.rs diff --git a/src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr b/tests/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr similarity index 100% rename from src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr rename to tests/ui/cycle-trait/cycle-trait-supertrait-indirect.stderr diff --git a/src/test/ui/debuginfo/debuginfo-box-with-large-allocator.rs b/tests/ui/debuginfo/debuginfo-box-with-large-allocator.rs similarity index 100% rename from src/test/ui/debuginfo/debuginfo-box-with-large-allocator.rs rename to tests/ui/debuginfo/debuginfo-box-with-large-allocator.rs diff --git a/src/test/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs b/tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs similarity index 100% rename from src/test/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs rename to tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs diff --git a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs similarity index 100% rename from src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs rename to tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.rs diff --git a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr similarity index 100% rename from src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr rename to tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-1.stderr diff --git a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs similarity index 100% rename from src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs rename to tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.rs diff --git a/src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr b/tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr similarity index 100% rename from src/test/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr rename to tests/ui/debuginfo/debuginfo-type-name-layout-ice-94961-2.stderr diff --git a/src/test/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs b/tests/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs similarity index 100% rename from src/test/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs rename to tests/ui/debuginfo/debuginfo_with_uninhabitable_field_and_unsized.rs diff --git a/src/test/ui/debuginfo/issue-105386-debuginfo-ub.rs b/tests/ui/debuginfo/issue-105386-debuginfo-ub.rs similarity index 100% rename from src/test/ui/debuginfo/issue-105386-debuginfo-ub.rs rename to tests/ui/debuginfo/issue-105386-debuginfo-ub.rs diff --git a/src/test/ui/debuginfo/late-bound-projection.rs b/tests/ui/debuginfo/late-bound-projection.rs similarity index 100% rename from src/test/ui/debuginfo/late-bound-projection.rs rename to tests/ui/debuginfo/late-bound-projection.rs diff --git a/src/test/ui/deduplicate-diagnostics.deduplicate.stderr b/tests/ui/deduplicate-diagnostics.deduplicate.stderr similarity index 100% rename from src/test/ui/deduplicate-diagnostics.deduplicate.stderr rename to tests/ui/deduplicate-diagnostics.deduplicate.stderr diff --git a/src/test/ui/deduplicate-diagnostics.duplicate.stderr b/tests/ui/deduplicate-diagnostics.duplicate.stderr similarity index 100% rename from src/test/ui/deduplicate-diagnostics.duplicate.stderr rename to tests/ui/deduplicate-diagnostics.duplicate.stderr diff --git a/src/test/ui/deduplicate-diagnostics.rs b/tests/ui/deduplicate-diagnostics.rs similarity index 100% rename from src/test/ui/deduplicate-diagnostics.rs rename to tests/ui/deduplicate-diagnostics.rs diff --git a/src/test/ui/deep.rs b/tests/ui/deep.rs similarity index 100% rename from src/test/ui/deep.rs rename to tests/ui/deep.rs diff --git a/src/test/ui/default-method-parsing.rs b/tests/ui/default-method-parsing.rs similarity index 100% rename from src/test/ui/default-method-parsing.rs rename to tests/ui/default-method-parsing.rs diff --git a/src/test/ui/default-method-simple.rs b/tests/ui/default-method-simple.rs similarity index 100% rename from src/test/ui/default-method-simple.rs rename to tests/ui/default-method-simple.rs diff --git a/src/test/ui/defaults-well-formedness.rs b/tests/ui/defaults-well-formedness.rs similarity index 100% rename from src/test/ui/defaults-well-formedness.rs rename to tests/ui/defaults-well-formedness.rs diff --git a/src/test/ui/definition-reachable/auxiliary/field-method-macro.rs b/tests/ui/definition-reachable/auxiliary/field-method-macro.rs similarity index 100% rename from src/test/ui/definition-reachable/auxiliary/field-method-macro.rs rename to tests/ui/definition-reachable/auxiliary/field-method-macro.rs diff --git a/src/test/ui/definition-reachable/auxiliary/nested-fn-macro.rs b/tests/ui/definition-reachable/auxiliary/nested-fn-macro.rs similarity index 100% rename from src/test/ui/definition-reachable/auxiliary/nested-fn-macro.rs rename to tests/ui/definition-reachable/auxiliary/nested-fn-macro.rs diff --git a/src/test/ui/definition-reachable/auxiliary/private-use-macro.rs b/tests/ui/definition-reachable/auxiliary/private-use-macro.rs similarity index 100% rename from src/test/ui/definition-reachable/auxiliary/private-use-macro.rs rename to tests/ui/definition-reachable/auxiliary/private-use-macro.rs diff --git a/src/test/ui/definition-reachable/field-method.rs b/tests/ui/definition-reachable/field-method.rs similarity index 100% rename from src/test/ui/definition-reachable/field-method.rs rename to tests/ui/definition-reachable/field-method.rs diff --git a/src/test/ui/definition-reachable/nested-fn.rs b/tests/ui/definition-reachable/nested-fn.rs similarity index 100% rename from src/test/ui/definition-reachable/nested-fn.rs rename to tests/ui/definition-reachable/nested-fn.rs diff --git a/src/test/ui/definition-reachable/private-non-types.rs b/tests/ui/definition-reachable/private-non-types.rs similarity index 100% rename from src/test/ui/definition-reachable/private-non-types.rs rename to tests/ui/definition-reachable/private-non-types.rs diff --git a/src/test/ui/definition-reachable/private-types.rs b/tests/ui/definition-reachable/private-types.rs similarity index 100% rename from src/test/ui/definition-reachable/private-types.rs rename to tests/ui/definition-reachable/private-types.rs diff --git a/src/test/ui/definition-reachable/private-use.rs b/tests/ui/definition-reachable/private-use.rs similarity index 100% rename from src/test/ui/definition-reachable/private-use.rs rename to tests/ui/definition-reachable/private-use.rs diff --git a/src/test/ui/dep-graph/dep-graph-assoc-type-codegen.rs b/tests/ui/dep-graph/dep-graph-assoc-type-codegen.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-assoc-type-codegen.rs rename to tests/ui/dep-graph/dep-graph-assoc-type-codegen.rs diff --git a/src/test/ui/dep-graph/dep-graph-assoc-type-codegen.stderr b/tests/ui/dep-graph/dep-graph-assoc-type-codegen.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-assoc-type-codegen.stderr rename to tests/ui/dep-graph/dep-graph-assoc-type-codegen.stderr diff --git a/src/test/ui/dep-graph/dep-graph-caller-callee.rs b/tests/ui/dep-graph/dep-graph-caller-callee.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-caller-callee.rs rename to tests/ui/dep-graph/dep-graph-caller-callee.rs diff --git a/src/test/ui/dep-graph/dep-graph-caller-callee.stderr b/tests/ui/dep-graph/dep-graph-caller-callee.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-caller-callee.stderr rename to tests/ui/dep-graph/dep-graph-caller-callee.stderr diff --git a/src/test/ui/dep-graph/dep-graph-check-attr.rs b/tests/ui/dep-graph/dep-graph-check-attr.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-check-attr.rs rename to tests/ui/dep-graph/dep-graph-check-attr.rs diff --git a/src/test/ui/dep-graph/dep-graph-check-attr.stderr b/tests/ui/dep-graph/dep-graph-check-attr.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-check-attr.stderr rename to tests/ui/dep-graph/dep-graph-check-attr.stderr diff --git a/src/test/ui/dep-graph/dep-graph-struct-signature.rs b/tests/ui/dep-graph/dep-graph-struct-signature.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-struct-signature.rs rename to tests/ui/dep-graph/dep-graph-struct-signature.rs diff --git a/src/test/ui/dep-graph/dep-graph-struct-signature.stderr b/tests/ui/dep-graph/dep-graph-struct-signature.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-struct-signature.stderr rename to tests/ui/dep-graph/dep-graph-struct-signature.stderr diff --git a/src/test/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.rs b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.rs rename to tests/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.rs diff --git a/src/test/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.stderr b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.stderr rename to tests/ui/dep-graph/dep-graph-trait-impl-two-traits-same-method.stderr diff --git a/src/test/ui/dep-graph/dep-graph-trait-impl-two-traits.rs b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-trait-impl-two-traits.rs rename to tests/ui/dep-graph/dep-graph-trait-impl-two-traits.rs diff --git a/src/test/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr b/tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr rename to tests/ui/dep-graph/dep-graph-trait-impl-two-traits.stderr diff --git a/src/test/ui/dep-graph/dep-graph-trait-impl.rs b/tests/ui/dep-graph/dep-graph-trait-impl.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-trait-impl.rs rename to tests/ui/dep-graph/dep-graph-trait-impl.rs diff --git a/src/test/ui/dep-graph/dep-graph-trait-impl.stderr b/tests/ui/dep-graph/dep-graph-trait-impl.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-trait-impl.stderr rename to tests/ui/dep-graph/dep-graph-trait-impl.stderr diff --git a/src/test/ui/dep-graph/dep-graph-type-alias.rs b/tests/ui/dep-graph/dep-graph-type-alias.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-type-alias.rs rename to tests/ui/dep-graph/dep-graph-type-alias.rs diff --git a/src/test/ui/dep-graph/dep-graph-type-alias.stderr b/tests/ui/dep-graph/dep-graph-type-alias.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-type-alias.stderr rename to tests/ui/dep-graph/dep-graph-type-alias.stderr diff --git a/src/test/ui/dep-graph/dep-graph-variance-alias.rs b/tests/ui/dep-graph/dep-graph-variance-alias.rs similarity index 100% rename from src/test/ui/dep-graph/dep-graph-variance-alias.rs rename to tests/ui/dep-graph/dep-graph-variance-alias.rs diff --git a/src/test/ui/dep-graph/dep-graph-variance-alias.stderr b/tests/ui/dep-graph/dep-graph-variance-alias.stderr similarity index 100% rename from src/test/ui/dep-graph/dep-graph-variance-alias.stderr rename to tests/ui/dep-graph/dep-graph-variance-alias.stderr diff --git a/src/test/ui/deprecation-in-force-unstable.rs b/tests/ui/deprecation-in-force-unstable.rs similarity index 100% rename from src/test/ui/deprecation-in-force-unstable.rs rename to tests/ui/deprecation-in-force-unstable.rs diff --git a/src/test/ui/deprecation/atomic_initializers.fixed b/tests/ui/deprecation/atomic_initializers.fixed similarity index 100% rename from src/test/ui/deprecation/atomic_initializers.fixed rename to tests/ui/deprecation/atomic_initializers.fixed diff --git a/src/test/ui/deprecation/atomic_initializers.rs b/tests/ui/deprecation/atomic_initializers.rs similarity index 100% rename from src/test/ui/deprecation/atomic_initializers.rs rename to tests/ui/deprecation/atomic_initializers.rs diff --git a/src/test/ui/deprecation/atomic_initializers.stderr b/tests/ui/deprecation/atomic_initializers.stderr similarity index 100% rename from src/test/ui/deprecation/atomic_initializers.stderr rename to tests/ui/deprecation/atomic_initializers.stderr diff --git a/src/test/ui/deprecation/auxiliary/deprecation-lint.rs b/tests/ui/deprecation/auxiliary/deprecation-lint.rs similarity index 100% rename from src/test/ui/deprecation/auxiliary/deprecation-lint.rs rename to tests/ui/deprecation/auxiliary/deprecation-lint.rs diff --git a/src/test/ui/deprecation/deprecated-macro_escape-inner.rs b/tests/ui/deprecation/deprecated-macro_escape-inner.rs similarity index 100% rename from src/test/ui/deprecation/deprecated-macro_escape-inner.rs rename to tests/ui/deprecation/deprecated-macro_escape-inner.rs diff --git a/src/test/ui/deprecation/deprecated-macro_escape-inner.stderr b/tests/ui/deprecation/deprecated-macro_escape-inner.stderr similarity index 100% rename from src/test/ui/deprecation/deprecated-macro_escape-inner.stderr rename to tests/ui/deprecation/deprecated-macro_escape-inner.stderr diff --git a/src/test/ui/deprecation/deprecated-macro_escape.rs b/tests/ui/deprecation/deprecated-macro_escape.rs similarity index 100% rename from src/test/ui/deprecation/deprecated-macro_escape.rs rename to tests/ui/deprecation/deprecated-macro_escape.rs diff --git a/src/test/ui/deprecation/deprecated-macro_escape.stderr b/tests/ui/deprecation/deprecated-macro_escape.stderr similarity index 100% rename from src/test/ui/deprecation/deprecated-macro_escape.stderr rename to tests/ui/deprecation/deprecated-macro_escape.stderr diff --git a/src/test/ui/deprecation/deprecated_no_stack_check.rs b/tests/ui/deprecation/deprecated_no_stack_check.rs similarity index 100% rename from src/test/ui/deprecation/deprecated_no_stack_check.rs rename to tests/ui/deprecation/deprecated_no_stack_check.rs diff --git a/src/test/ui/deprecation/deprecated_no_stack_check.stderr b/tests/ui/deprecation/deprecated_no_stack_check.stderr similarity index 100% rename from src/test/ui/deprecation/deprecated_no_stack_check.stderr rename to tests/ui/deprecation/deprecated_no_stack_check.stderr diff --git a/src/test/ui/deprecation/deprecation-in-future.rs b/tests/ui/deprecation/deprecation-in-future.rs similarity index 100% rename from src/test/ui/deprecation/deprecation-in-future.rs rename to tests/ui/deprecation/deprecation-in-future.rs diff --git a/src/test/ui/deprecation/deprecation-in-future.stderr b/tests/ui/deprecation/deprecation-in-future.stderr similarity index 100% rename from src/test/ui/deprecation/deprecation-in-future.stderr rename to tests/ui/deprecation/deprecation-in-future.stderr diff --git a/src/test/ui/deprecation/deprecation-lint-2.rs b/tests/ui/deprecation/deprecation-lint-2.rs similarity index 100% rename from src/test/ui/deprecation/deprecation-lint-2.rs rename to tests/ui/deprecation/deprecation-lint-2.rs diff --git a/src/test/ui/deprecation/deprecation-lint-2.stderr b/tests/ui/deprecation/deprecation-lint-2.stderr similarity index 100% rename from src/test/ui/deprecation/deprecation-lint-2.stderr rename to tests/ui/deprecation/deprecation-lint-2.stderr diff --git a/src/test/ui/deprecation/deprecation-lint-3.rs b/tests/ui/deprecation/deprecation-lint-3.rs similarity index 100% rename from src/test/ui/deprecation/deprecation-lint-3.rs rename to tests/ui/deprecation/deprecation-lint-3.rs diff --git a/src/test/ui/deprecation/deprecation-lint-3.stderr b/tests/ui/deprecation/deprecation-lint-3.stderr similarity index 100% rename from src/test/ui/deprecation/deprecation-lint-3.stderr rename to tests/ui/deprecation/deprecation-lint-3.stderr diff --git a/src/test/ui/deprecation/deprecation-lint-nested.rs b/tests/ui/deprecation/deprecation-lint-nested.rs similarity index 100% rename from src/test/ui/deprecation/deprecation-lint-nested.rs rename to tests/ui/deprecation/deprecation-lint-nested.rs diff --git a/src/test/ui/deprecation/deprecation-lint-nested.stderr b/tests/ui/deprecation/deprecation-lint-nested.stderr similarity index 100% rename from src/test/ui/deprecation/deprecation-lint-nested.stderr rename to tests/ui/deprecation/deprecation-lint-nested.stderr diff --git a/src/test/ui/deprecation/deprecation-lint.rs b/tests/ui/deprecation/deprecation-lint.rs similarity index 100% rename from src/test/ui/deprecation/deprecation-lint.rs rename to tests/ui/deprecation/deprecation-lint.rs diff --git a/src/test/ui/deprecation/deprecation-lint.stderr b/tests/ui/deprecation/deprecation-lint.stderr similarity index 100% rename from src/test/ui/deprecation/deprecation-lint.stderr rename to tests/ui/deprecation/deprecation-lint.stderr diff --git a/src/test/ui/deprecation/deprecation-sanity.rs b/tests/ui/deprecation/deprecation-sanity.rs similarity index 100% rename from src/test/ui/deprecation/deprecation-sanity.rs rename to tests/ui/deprecation/deprecation-sanity.rs diff --git a/src/test/ui/deprecation/deprecation-sanity.stderr b/tests/ui/deprecation/deprecation-sanity.stderr similarity index 100% rename from src/test/ui/deprecation/deprecation-sanity.stderr rename to tests/ui/deprecation/deprecation-sanity.stderr diff --git a/src/test/ui/deprecation/derive_on_deprecated.rs b/tests/ui/deprecation/derive_on_deprecated.rs similarity index 100% rename from src/test/ui/deprecation/derive_on_deprecated.rs rename to tests/ui/deprecation/derive_on_deprecated.rs diff --git a/src/test/ui/deprecation/derive_on_deprecated_forbidden.rs b/tests/ui/deprecation/derive_on_deprecated_forbidden.rs similarity index 100% rename from src/test/ui/deprecation/derive_on_deprecated_forbidden.rs rename to tests/ui/deprecation/derive_on_deprecated_forbidden.rs diff --git a/src/test/ui/deprecation/feature-gate-deprecated_suggestion.rs b/tests/ui/deprecation/feature-gate-deprecated_suggestion.rs similarity index 100% rename from src/test/ui/deprecation/feature-gate-deprecated_suggestion.rs rename to tests/ui/deprecation/feature-gate-deprecated_suggestion.rs diff --git a/src/test/ui/deprecation/feature-gate-deprecated_suggestion.stderr b/tests/ui/deprecation/feature-gate-deprecated_suggestion.stderr similarity index 100% rename from src/test/ui/deprecation/feature-gate-deprecated_suggestion.stderr rename to tests/ui/deprecation/feature-gate-deprecated_suggestion.stderr diff --git a/src/test/ui/deprecation/invalid-literal.rs b/tests/ui/deprecation/invalid-literal.rs similarity index 100% rename from src/test/ui/deprecation/invalid-literal.rs rename to tests/ui/deprecation/invalid-literal.rs diff --git a/src/test/ui/deprecation/invalid-literal.stderr b/tests/ui/deprecation/invalid-literal.stderr similarity index 100% rename from src/test/ui/deprecation/invalid-literal.stderr rename to tests/ui/deprecation/invalid-literal.stderr diff --git a/src/test/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.rs b/tests/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.rs similarity index 100% rename from src/test/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.rs rename to tests/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.rs diff --git a/src/test/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.stderr b/tests/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.stderr similarity index 100% rename from src/test/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.stderr rename to tests/ui/deprecation/issue-66340-deprecated-attr-non-meta-grammar.stderr diff --git a/src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed b/tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed similarity index 100% rename from src/test/ui/deprecation/issue-84637-deprecated-associated-function.fixed rename to tests/ui/deprecation/issue-84637-deprecated-associated-function.fixed diff --git a/src/test/ui/deprecation/issue-84637-deprecated-associated-function.rs b/tests/ui/deprecation/issue-84637-deprecated-associated-function.rs similarity index 100% rename from src/test/ui/deprecation/issue-84637-deprecated-associated-function.rs rename to tests/ui/deprecation/issue-84637-deprecated-associated-function.rs diff --git a/src/test/ui/deprecation/issue-84637-deprecated-associated-function.stderr b/tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr similarity index 100% rename from src/test/ui/deprecation/issue-84637-deprecated-associated-function.stderr rename to tests/ui/deprecation/issue-84637-deprecated-associated-function.stderr diff --git a/src/test/ui/deprecation/staged-deprecation-in-future.rs b/tests/ui/deprecation/staged-deprecation-in-future.rs similarity index 100% rename from src/test/ui/deprecation/staged-deprecation-in-future.rs rename to tests/ui/deprecation/staged-deprecation-in-future.rs diff --git a/src/test/ui/deprecation/staged-deprecation-in-future.stderr b/tests/ui/deprecation/staged-deprecation-in-future.stderr similarity index 100% rename from src/test/ui/deprecation/staged-deprecation-in-future.stderr rename to tests/ui/deprecation/staged-deprecation-in-future.stderr diff --git a/src/test/ui/deprecation/suggestion.fixed b/tests/ui/deprecation/suggestion.fixed similarity index 100% rename from src/test/ui/deprecation/suggestion.fixed rename to tests/ui/deprecation/suggestion.fixed diff --git a/src/test/ui/deprecation/suggestion.rs b/tests/ui/deprecation/suggestion.rs similarity index 100% rename from src/test/ui/deprecation/suggestion.rs rename to tests/ui/deprecation/suggestion.rs diff --git a/src/test/ui/deprecation/suggestion.stderr b/tests/ui/deprecation/suggestion.stderr similarity index 100% rename from src/test/ui/deprecation/suggestion.stderr rename to tests/ui/deprecation/suggestion.stderr diff --git a/src/test/ui/deprecation/try-macro-suggestion.rs b/tests/ui/deprecation/try-macro-suggestion.rs similarity index 100% rename from src/test/ui/deprecation/try-macro-suggestion.rs rename to tests/ui/deprecation/try-macro-suggestion.rs diff --git a/src/test/ui/deprecation/try-macro-suggestion.stderr b/tests/ui/deprecation/try-macro-suggestion.stderr similarity index 100% rename from src/test/ui/deprecation/try-macro-suggestion.stderr rename to tests/ui/deprecation/try-macro-suggestion.stderr diff --git a/src/test/ui/deref-non-pointer.rs b/tests/ui/deref-non-pointer.rs similarity index 100% rename from src/test/ui/deref-non-pointer.rs rename to tests/ui/deref-non-pointer.rs diff --git a/src/test/ui/deref-non-pointer.stderr b/tests/ui/deref-non-pointer.stderr similarity index 100% rename from src/test/ui/deref-non-pointer.stderr rename to tests/ui/deref-non-pointer.stderr diff --git a/src/test/ui/deref-patterns/basic.rs b/tests/ui/deref-patterns/basic.rs similarity index 100% rename from src/test/ui/deref-patterns/basic.rs rename to tests/ui/deref-patterns/basic.rs diff --git a/src/test/ui/deref-patterns/basic.run.stdout b/tests/ui/deref-patterns/basic.run.stdout similarity index 100% rename from src/test/ui/deref-patterns/basic.run.stdout rename to tests/ui/deref-patterns/basic.run.stdout diff --git a/src/test/ui/deref-patterns/default-infer.rs b/tests/ui/deref-patterns/default-infer.rs similarity index 100% rename from src/test/ui/deref-patterns/default-infer.rs rename to tests/ui/deref-patterns/default-infer.rs diff --git a/src/test/ui/deref-patterns/gate.rs b/tests/ui/deref-patterns/gate.rs similarity index 100% rename from src/test/ui/deref-patterns/gate.rs rename to tests/ui/deref-patterns/gate.rs diff --git a/src/test/ui/deref-patterns/gate.stderr b/tests/ui/deref-patterns/gate.stderr similarity index 100% rename from src/test/ui/deref-patterns/gate.stderr rename to tests/ui/deref-patterns/gate.stderr diff --git a/src/test/ui/deref-patterns/refs.rs b/tests/ui/deref-patterns/refs.rs similarity index 100% rename from src/test/ui/deref-patterns/refs.rs rename to tests/ui/deref-patterns/refs.rs diff --git a/src/test/ui/deref-rc.rs b/tests/ui/deref-rc.rs similarity index 100% rename from src/test/ui/deref-rc.rs rename to tests/ui/deref-rc.rs diff --git a/src/test/ui/deref.rs b/tests/ui/deref.rs similarity index 100% rename from src/test/ui/deref.rs rename to tests/ui/deref.rs diff --git a/src/test/ui/derive-uninhabited-enum-38885.rs b/tests/ui/derive-uninhabited-enum-38885.rs similarity index 100% rename from src/test/ui/derive-uninhabited-enum-38885.rs rename to tests/ui/derive-uninhabited-enum-38885.rs diff --git a/src/test/ui/derive-uninhabited-enum-38885.stderr b/tests/ui/derive-uninhabited-enum-38885.stderr similarity index 100% rename from src/test/ui/derive-uninhabited-enum-38885.stderr rename to tests/ui/derive-uninhabited-enum-38885.stderr diff --git a/src/test/ui/derived-errors/issue-30580.rs b/tests/ui/derived-errors/issue-30580.rs similarity index 100% rename from src/test/ui/derived-errors/issue-30580.rs rename to tests/ui/derived-errors/issue-30580.rs diff --git a/src/test/ui/derived-errors/issue-30580.stderr b/tests/ui/derived-errors/issue-30580.stderr similarity index 100% rename from src/test/ui/derived-errors/issue-30580.stderr rename to tests/ui/derived-errors/issue-30580.stderr diff --git a/src/test/ui/derived-errors/issue-31997-1.rs b/tests/ui/derived-errors/issue-31997-1.rs similarity index 100% rename from src/test/ui/derived-errors/issue-31997-1.rs rename to tests/ui/derived-errors/issue-31997-1.rs diff --git a/src/test/ui/derived-errors/issue-31997-1.stderr b/tests/ui/derived-errors/issue-31997-1.stderr similarity index 100% rename from src/test/ui/derived-errors/issue-31997-1.stderr rename to tests/ui/derived-errors/issue-31997-1.stderr diff --git a/src/test/ui/derived-errors/issue-31997.rs b/tests/ui/derived-errors/issue-31997.rs similarity index 100% rename from src/test/ui/derived-errors/issue-31997.rs rename to tests/ui/derived-errors/issue-31997.rs diff --git a/src/test/ui/derived-errors/issue-31997.stderr b/tests/ui/derived-errors/issue-31997.stderr similarity index 100% rename from src/test/ui/derived-errors/issue-31997.stderr rename to tests/ui/derived-errors/issue-31997.stderr diff --git a/src/test/ui/derives/auxiliary/derive-marker-tricky.rs b/tests/ui/derives/auxiliary/derive-marker-tricky.rs similarity index 100% rename from src/test/ui/derives/auxiliary/derive-marker-tricky.rs rename to tests/ui/derives/auxiliary/derive-marker-tricky.rs diff --git a/src/test/ui/derives/clone-debug-dead-code-in-the-same-struct.rs b/tests/ui/derives/clone-debug-dead-code-in-the-same-struct.rs similarity index 100% rename from src/test/ui/derives/clone-debug-dead-code-in-the-same-struct.rs rename to tests/ui/derives/clone-debug-dead-code-in-the-same-struct.rs diff --git a/src/test/ui/derives/clone-debug-dead-code-in-the-same-struct.stderr b/tests/ui/derives/clone-debug-dead-code-in-the-same-struct.stderr similarity index 100% rename from src/test/ui/derives/clone-debug-dead-code-in-the-same-struct.stderr rename to tests/ui/derives/clone-debug-dead-code-in-the-same-struct.stderr diff --git a/src/test/ui/derives/clone-debug-dead-code.rs b/tests/ui/derives/clone-debug-dead-code.rs similarity index 100% rename from src/test/ui/derives/clone-debug-dead-code.rs rename to tests/ui/derives/clone-debug-dead-code.rs diff --git a/src/test/ui/derives/clone-debug-dead-code.stderr b/tests/ui/derives/clone-debug-dead-code.stderr similarity index 100% rename from src/test/ui/derives/clone-debug-dead-code.stderr rename to tests/ui/derives/clone-debug-dead-code.stderr diff --git a/src/test/ui/derives/derive-Debug-use-ufcs-struct.rs b/tests/ui/derives/derive-Debug-use-ufcs-struct.rs similarity index 100% rename from src/test/ui/derives/derive-Debug-use-ufcs-struct.rs rename to tests/ui/derives/derive-Debug-use-ufcs-struct.rs diff --git a/src/test/ui/derives/derive-Debug-use-ufcs-tuple.rs b/tests/ui/derives/derive-Debug-use-ufcs-tuple.rs similarity index 100% rename from src/test/ui/derives/derive-Debug-use-ufcs-tuple.rs rename to tests/ui/derives/derive-Debug-use-ufcs-tuple.rs diff --git a/src/test/ui/derives/derive-assoc-type-not-impl.rs b/tests/ui/derives/derive-assoc-type-not-impl.rs similarity index 100% rename from src/test/ui/derives/derive-assoc-type-not-impl.rs rename to tests/ui/derives/derive-assoc-type-not-impl.rs diff --git a/src/test/ui/derives/derive-assoc-type-not-impl.stderr b/tests/ui/derives/derive-assoc-type-not-impl.stderr similarity index 100% rename from src/test/ui/derives/derive-assoc-type-not-impl.stderr rename to tests/ui/derives/derive-assoc-type-not-impl.stderr diff --git a/src/test/ui/derives/derive-deadlock.rs b/tests/ui/derives/derive-deadlock.rs similarity index 100% rename from src/test/ui/derives/derive-deadlock.rs rename to tests/ui/derives/derive-deadlock.rs diff --git a/src/test/ui/derives/derive-deadlock.stderr b/tests/ui/derives/derive-deadlock.stderr similarity index 100% rename from src/test/ui/derives/derive-deadlock.stderr rename to tests/ui/derives/derive-deadlock.stderr diff --git a/src/test/ui/derives/derive-hygiene.rs b/tests/ui/derives/derive-hygiene.rs similarity index 100% rename from src/test/ui/derives/derive-hygiene.rs rename to tests/ui/derives/derive-hygiene.rs diff --git a/src/test/ui/derives/derive-macro-const-default.rs b/tests/ui/derives/derive-macro-const-default.rs similarity index 100% rename from src/test/ui/derives/derive-macro-const-default.rs rename to tests/ui/derives/derive-macro-const-default.rs diff --git a/src/test/ui/derives/derive-marker-tricky.rs b/tests/ui/derives/derive-marker-tricky.rs similarity index 100% rename from src/test/ui/derives/derive-marker-tricky.rs rename to tests/ui/derives/derive-marker-tricky.rs diff --git a/src/test/ui/derives/derive-multiple-with-packed.rs b/tests/ui/derives/derive-multiple-with-packed.rs similarity index 100% rename from src/test/ui/derives/derive-multiple-with-packed.rs rename to tests/ui/derives/derive-multiple-with-packed.rs diff --git a/src/test/ui/derives/derive-on-trait-item-or-impl-item.rs b/tests/ui/derives/derive-on-trait-item-or-impl-item.rs similarity index 100% rename from src/test/ui/derives/derive-on-trait-item-or-impl-item.rs rename to tests/ui/derives/derive-on-trait-item-or-impl-item.rs diff --git a/src/test/ui/derives/derive-on-trait-item-or-impl-item.stderr b/tests/ui/derives/derive-on-trait-item-or-impl-item.stderr similarity index 100% rename from src/test/ui/derives/derive-on-trait-item-or-impl-item.stderr rename to tests/ui/derives/derive-on-trait-item-or-impl-item.stderr diff --git a/src/test/ui/derives/derive-partial-ord.rs b/tests/ui/derives/derive-partial-ord.rs similarity index 100% rename from src/test/ui/derives/derive-partial-ord.rs rename to tests/ui/derives/derive-partial-ord.rs diff --git a/src/test/ui/derives/derive-renamed.rs b/tests/ui/derives/derive-renamed.rs similarity index 100% rename from src/test/ui/derives/derive-renamed.rs rename to tests/ui/derives/derive-renamed.rs diff --git a/src/test/ui/derives/derives-span-Clone-enum-struct-variant.rs b/tests/ui/derives/derives-span-Clone-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-Clone-enum-struct-variant.rs rename to tests/ui/derives/derives-span-Clone-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-Clone-enum-struct-variant.stderr b/tests/ui/derives/derives-span-Clone-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Clone-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-Clone-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-Clone-enum.rs b/tests/ui/derives/derives-span-Clone-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-Clone-enum.rs rename to tests/ui/derives/derives-span-Clone-enum.rs diff --git a/src/test/ui/derives/derives-span-Clone-enum.stderr b/tests/ui/derives/derives-span-Clone-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Clone-enum.stderr rename to tests/ui/derives/derives-span-Clone-enum.stderr diff --git a/src/test/ui/derives/derives-span-Clone-struct.rs b/tests/ui/derives/derives-span-Clone-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Clone-struct.rs rename to tests/ui/derives/derives-span-Clone-struct.rs diff --git a/src/test/ui/derives/derives-span-Clone-struct.stderr b/tests/ui/derives/derives-span-Clone-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Clone-struct.stderr rename to tests/ui/derives/derives-span-Clone-struct.stderr diff --git a/src/test/ui/derives/derives-span-Clone-tuple-struct.rs b/tests/ui/derives/derives-span-Clone-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Clone-tuple-struct.rs rename to tests/ui/derives/derives-span-Clone-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-Clone-tuple-struct.stderr b/tests/ui/derives/derives-span-Clone-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Clone-tuple-struct.stderr rename to tests/ui/derives/derives-span-Clone-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-Debug-enum-struct-variant.rs b/tests/ui/derives/derives-span-Debug-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-Debug-enum-struct-variant.rs rename to tests/ui/derives/derives-span-Debug-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-Debug-enum-struct-variant.stderr b/tests/ui/derives/derives-span-Debug-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Debug-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-Debug-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-Debug-enum.rs b/tests/ui/derives/derives-span-Debug-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-Debug-enum.rs rename to tests/ui/derives/derives-span-Debug-enum.rs diff --git a/src/test/ui/derives/derives-span-Debug-enum.stderr b/tests/ui/derives/derives-span-Debug-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Debug-enum.stderr rename to tests/ui/derives/derives-span-Debug-enum.stderr diff --git a/src/test/ui/derives/derives-span-Debug-struct.rs b/tests/ui/derives/derives-span-Debug-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Debug-struct.rs rename to tests/ui/derives/derives-span-Debug-struct.rs diff --git a/src/test/ui/derives/derives-span-Debug-struct.stderr b/tests/ui/derives/derives-span-Debug-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Debug-struct.stderr rename to tests/ui/derives/derives-span-Debug-struct.stderr diff --git a/src/test/ui/derives/derives-span-Debug-tuple-struct.rs b/tests/ui/derives/derives-span-Debug-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Debug-tuple-struct.rs rename to tests/ui/derives/derives-span-Debug-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-Debug-tuple-struct.stderr b/tests/ui/derives/derives-span-Debug-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Debug-tuple-struct.stderr rename to tests/ui/derives/derives-span-Debug-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-Default-struct.rs b/tests/ui/derives/derives-span-Default-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Default-struct.rs rename to tests/ui/derives/derives-span-Default-struct.rs diff --git a/src/test/ui/derives/derives-span-Default-struct.stderr b/tests/ui/derives/derives-span-Default-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Default-struct.stderr rename to tests/ui/derives/derives-span-Default-struct.stderr diff --git a/src/test/ui/derives/derives-span-Default-tuple-struct.rs b/tests/ui/derives/derives-span-Default-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Default-tuple-struct.rs rename to tests/ui/derives/derives-span-Default-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-Default-tuple-struct.stderr b/tests/ui/derives/derives-span-Default-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Default-tuple-struct.stderr rename to tests/ui/derives/derives-span-Default-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-Eq-enum-struct-variant.rs b/tests/ui/derives/derives-span-Eq-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-Eq-enum-struct-variant.rs rename to tests/ui/derives/derives-span-Eq-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-Eq-enum-struct-variant.stderr b/tests/ui/derives/derives-span-Eq-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Eq-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-Eq-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-Eq-enum.rs b/tests/ui/derives/derives-span-Eq-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-Eq-enum.rs rename to tests/ui/derives/derives-span-Eq-enum.rs diff --git a/src/test/ui/derives/derives-span-Eq-enum.stderr b/tests/ui/derives/derives-span-Eq-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Eq-enum.stderr rename to tests/ui/derives/derives-span-Eq-enum.stderr diff --git a/src/test/ui/derives/derives-span-Eq-struct.rs b/tests/ui/derives/derives-span-Eq-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Eq-struct.rs rename to tests/ui/derives/derives-span-Eq-struct.rs diff --git a/src/test/ui/derives/derives-span-Eq-struct.stderr b/tests/ui/derives/derives-span-Eq-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Eq-struct.stderr rename to tests/ui/derives/derives-span-Eq-struct.stderr diff --git a/src/test/ui/derives/derives-span-Eq-tuple-struct.rs b/tests/ui/derives/derives-span-Eq-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Eq-tuple-struct.rs rename to tests/ui/derives/derives-span-Eq-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-Eq-tuple-struct.stderr b/tests/ui/derives/derives-span-Eq-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Eq-tuple-struct.stderr rename to tests/ui/derives/derives-span-Eq-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-Hash-enum-struct-variant.rs b/tests/ui/derives/derives-span-Hash-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-Hash-enum-struct-variant.rs rename to tests/ui/derives/derives-span-Hash-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr b/tests/ui/derives/derives-span-Hash-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Hash-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-Hash-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-Hash-enum.rs b/tests/ui/derives/derives-span-Hash-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-Hash-enum.rs rename to tests/ui/derives/derives-span-Hash-enum.rs diff --git a/src/test/ui/derives/derives-span-Hash-enum.stderr b/tests/ui/derives/derives-span-Hash-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Hash-enum.stderr rename to tests/ui/derives/derives-span-Hash-enum.stderr diff --git a/src/test/ui/derives/derives-span-Hash-struct.rs b/tests/ui/derives/derives-span-Hash-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Hash-struct.rs rename to tests/ui/derives/derives-span-Hash-struct.rs diff --git a/src/test/ui/derives/derives-span-Hash-struct.stderr b/tests/ui/derives/derives-span-Hash-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Hash-struct.stderr rename to tests/ui/derives/derives-span-Hash-struct.stderr diff --git a/src/test/ui/derives/derives-span-Hash-tuple-struct.rs b/tests/ui/derives/derives-span-Hash-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Hash-tuple-struct.rs rename to tests/ui/derives/derives-span-Hash-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-Hash-tuple-struct.stderr b/tests/ui/derives/derives-span-Hash-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Hash-tuple-struct.stderr rename to tests/ui/derives/derives-span-Hash-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs b/tests/ui/derives/derives-span-Ord-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-Ord-enum-struct-variant.rs rename to tests/ui/derives/derives-span-Ord-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-Ord-enum-struct-variant.stderr b/tests/ui/derives/derives-span-Ord-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Ord-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-Ord-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-Ord-enum.rs b/tests/ui/derives/derives-span-Ord-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-Ord-enum.rs rename to tests/ui/derives/derives-span-Ord-enum.rs diff --git a/src/test/ui/derives/derives-span-Ord-enum.stderr b/tests/ui/derives/derives-span-Ord-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Ord-enum.stderr rename to tests/ui/derives/derives-span-Ord-enum.stderr diff --git a/src/test/ui/derives/derives-span-Ord-struct.rs b/tests/ui/derives/derives-span-Ord-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Ord-struct.rs rename to tests/ui/derives/derives-span-Ord-struct.rs diff --git a/src/test/ui/derives/derives-span-Ord-struct.stderr b/tests/ui/derives/derives-span-Ord-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Ord-struct.stderr rename to tests/ui/derives/derives-span-Ord-struct.stderr diff --git a/src/test/ui/derives/derives-span-Ord-tuple-struct.rs b/tests/ui/derives/derives-span-Ord-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-Ord-tuple-struct.rs rename to tests/ui/derives/derives-span-Ord-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-Ord-tuple-struct.stderr b/tests/ui/derives/derives-span-Ord-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-Ord-tuple-struct.stderr rename to tests/ui/derives/derives-span-Ord-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-PartialEq-enum-struct-variant.rs b/tests/ui/derives/derives-span-PartialEq-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-enum-struct-variant.rs rename to tests/ui/derives/derives-span-PartialEq-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-PartialEq-enum-struct-variant.stderr b/tests/ui/derives/derives-span-PartialEq-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-PartialEq-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-PartialEq-enum.rs b/tests/ui/derives/derives-span-PartialEq-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-enum.rs rename to tests/ui/derives/derives-span-PartialEq-enum.rs diff --git a/src/test/ui/derives/derives-span-PartialEq-enum.stderr b/tests/ui/derives/derives-span-PartialEq-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-enum.stderr rename to tests/ui/derives/derives-span-PartialEq-enum.stderr diff --git a/src/test/ui/derives/derives-span-PartialEq-struct.rs b/tests/ui/derives/derives-span-PartialEq-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-struct.rs rename to tests/ui/derives/derives-span-PartialEq-struct.rs diff --git a/src/test/ui/derives/derives-span-PartialEq-struct.stderr b/tests/ui/derives/derives-span-PartialEq-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-struct.stderr rename to tests/ui/derives/derives-span-PartialEq-struct.stderr diff --git a/src/test/ui/derives/derives-span-PartialEq-tuple-struct.rs b/tests/ui/derives/derives-span-PartialEq-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-tuple-struct.rs rename to tests/ui/derives/derives-span-PartialEq-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-PartialEq-tuple-struct.stderr b/tests/ui/derives/derives-span-PartialEq-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialEq-tuple-struct.stderr rename to tests/ui/derives/derives-span-PartialEq-tuple-struct.stderr diff --git a/src/test/ui/derives/derives-span-PartialOrd-enum-struct-variant.rs b/tests/ui/derives/derives-span-PartialOrd-enum-struct-variant.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-enum-struct-variant.rs rename to tests/ui/derives/derives-span-PartialOrd-enum-struct-variant.rs diff --git a/src/test/ui/derives/derives-span-PartialOrd-enum-struct-variant.stderr b/tests/ui/derives/derives-span-PartialOrd-enum-struct-variant.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-enum-struct-variant.stderr rename to tests/ui/derives/derives-span-PartialOrd-enum-struct-variant.stderr diff --git a/src/test/ui/derives/derives-span-PartialOrd-enum.rs b/tests/ui/derives/derives-span-PartialOrd-enum.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-enum.rs rename to tests/ui/derives/derives-span-PartialOrd-enum.rs diff --git a/src/test/ui/derives/derives-span-PartialOrd-enum.stderr b/tests/ui/derives/derives-span-PartialOrd-enum.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-enum.stderr rename to tests/ui/derives/derives-span-PartialOrd-enum.stderr diff --git a/src/test/ui/derives/derives-span-PartialOrd-struct.rs b/tests/ui/derives/derives-span-PartialOrd-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-struct.rs rename to tests/ui/derives/derives-span-PartialOrd-struct.rs diff --git a/src/test/ui/derives/derives-span-PartialOrd-struct.stderr b/tests/ui/derives/derives-span-PartialOrd-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-struct.stderr rename to tests/ui/derives/derives-span-PartialOrd-struct.stderr diff --git a/src/test/ui/derives/derives-span-PartialOrd-tuple-struct.rs b/tests/ui/derives/derives-span-PartialOrd-tuple-struct.rs similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-tuple-struct.rs rename to tests/ui/derives/derives-span-PartialOrd-tuple-struct.rs diff --git a/src/test/ui/derives/derives-span-PartialOrd-tuple-struct.stderr b/tests/ui/derives/derives-span-PartialOrd-tuple-struct.stderr similarity index 100% rename from src/test/ui/derives/derives-span-PartialOrd-tuple-struct.stderr rename to tests/ui/derives/derives-span-PartialOrd-tuple-struct.stderr diff --git a/src/test/ui/derives/deriving-bounds.rs b/tests/ui/derives/deriving-bounds.rs similarity index 100% rename from src/test/ui/derives/deriving-bounds.rs rename to tests/ui/derives/deriving-bounds.rs diff --git a/src/test/ui/derives/deriving-bounds.stderr b/tests/ui/derives/deriving-bounds.stderr similarity index 100% rename from src/test/ui/derives/deriving-bounds.stderr rename to tests/ui/derives/deriving-bounds.stderr diff --git a/src/test/ui/derives/deriving-copyclone.rs b/tests/ui/derives/deriving-copyclone.rs similarity index 100% rename from src/test/ui/derives/deriving-copyclone.rs rename to tests/ui/derives/deriving-copyclone.rs diff --git a/src/test/ui/derives/deriving-copyclone.stderr b/tests/ui/derives/deriving-copyclone.stderr similarity index 100% rename from src/test/ui/derives/deriving-copyclone.stderr rename to tests/ui/derives/deriving-copyclone.stderr diff --git a/src/test/ui/derives/deriving-meta-empty-trait-list.rs b/tests/ui/derives/deriving-meta-empty-trait-list.rs similarity index 100% rename from src/test/ui/derives/deriving-meta-empty-trait-list.rs rename to tests/ui/derives/deriving-meta-empty-trait-list.rs diff --git a/src/test/ui/derives/deriving-meta-unknown-trait.rs b/tests/ui/derives/deriving-meta-unknown-trait.rs similarity index 100% rename from src/test/ui/derives/deriving-meta-unknown-trait.rs rename to tests/ui/derives/deriving-meta-unknown-trait.rs diff --git a/src/test/ui/derives/deriving-meta-unknown-trait.stderr b/tests/ui/derives/deriving-meta-unknown-trait.stderr similarity index 100% rename from src/test/ui/derives/deriving-meta-unknown-trait.stderr rename to tests/ui/derives/deriving-meta-unknown-trait.stderr diff --git a/src/test/ui/derives/deriving-no-inner-impl-error-message.rs b/tests/ui/derives/deriving-no-inner-impl-error-message.rs similarity index 100% rename from src/test/ui/derives/deriving-no-inner-impl-error-message.rs rename to tests/ui/derives/deriving-no-inner-impl-error-message.rs diff --git a/src/test/ui/derives/deriving-no-inner-impl-error-message.stderr b/tests/ui/derives/deriving-no-inner-impl-error-message.stderr similarity index 100% rename from src/test/ui/derives/deriving-no-inner-impl-error-message.stderr rename to tests/ui/derives/deriving-no-inner-impl-error-message.stderr diff --git a/src/test/ui/derives/deriving-non-type.rs b/tests/ui/derives/deriving-non-type.rs similarity index 100% rename from src/test/ui/derives/deriving-non-type.rs rename to tests/ui/derives/deriving-non-type.rs diff --git a/src/test/ui/derives/deriving-non-type.stderr b/tests/ui/derives/deriving-non-type.stderr similarity index 100% rename from src/test/ui/derives/deriving-non-type.stderr rename to tests/ui/derives/deriving-non-type.stderr diff --git a/src/test/ui/derives/deriving-primitive.rs b/tests/ui/derives/deriving-primitive.rs similarity index 100% rename from src/test/ui/derives/deriving-primitive.rs rename to tests/ui/derives/deriving-primitive.rs diff --git a/src/test/ui/derives/deriving-primitive.stderr b/tests/ui/derives/deriving-primitive.stderr similarity index 100% rename from src/test/ui/derives/deriving-primitive.stderr rename to tests/ui/derives/deriving-primitive.stderr diff --git a/src/test/ui/derives/deriving-with-repr-packed.rs b/tests/ui/derives/deriving-with-repr-packed.rs similarity index 100% rename from src/test/ui/derives/deriving-with-repr-packed.rs rename to tests/ui/derives/deriving-with-repr-packed.rs diff --git a/src/test/ui/derives/deriving-with-repr-packed.stderr b/tests/ui/derives/deriving-with-repr-packed.stderr similarity index 100% rename from src/test/ui/derives/deriving-with-repr-packed.stderr rename to tests/ui/derives/deriving-with-repr-packed.stderr diff --git a/src/test/ui/derives/issue-36617.rs b/tests/ui/derives/issue-36617.rs similarity index 100% rename from src/test/ui/derives/issue-36617.rs rename to tests/ui/derives/issue-36617.rs diff --git a/src/test/ui/derives/issue-36617.stderr b/tests/ui/derives/issue-36617.stderr similarity index 100% rename from src/test/ui/derives/issue-36617.stderr rename to tests/ui/derives/issue-36617.stderr diff --git a/src/test/ui/derives/issue-43023.rs b/tests/ui/derives/issue-43023.rs similarity index 100% rename from src/test/ui/derives/issue-43023.rs rename to tests/ui/derives/issue-43023.rs diff --git a/src/test/ui/derives/issue-43023.stderr b/tests/ui/derives/issue-43023.stderr similarity index 100% rename from src/test/ui/derives/issue-43023.stderr rename to tests/ui/derives/issue-43023.stderr diff --git a/src/test/ui/derives/issue-91492.rs b/tests/ui/derives/issue-91492.rs similarity index 100% rename from src/test/ui/derives/issue-91492.rs rename to tests/ui/derives/issue-91492.rs diff --git a/src/test/ui/derives/issue-91492.stderr b/tests/ui/derives/issue-91492.stderr similarity index 100% rename from src/test/ui/derives/issue-91492.stderr rename to tests/ui/derives/issue-91492.stderr diff --git a/src/test/ui/derives/issue-91550.rs b/tests/ui/derives/issue-91550.rs similarity index 100% rename from src/test/ui/derives/issue-91550.rs rename to tests/ui/derives/issue-91550.rs diff --git a/src/test/ui/derives/issue-91550.stderr b/tests/ui/derives/issue-91550.stderr similarity index 100% rename from src/test/ui/derives/issue-91550.stderr rename to tests/ui/derives/issue-91550.stderr diff --git a/src/test/ui/derives/issue-97343.rs b/tests/ui/derives/issue-97343.rs similarity index 100% rename from src/test/ui/derives/issue-97343.rs rename to tests/ui/derives/issue-97343.rs diff --git a/src/test/ui/derives/issue-97343.stderr b/tests/ui/derives/issue-97343.stderr similarity index 100% rename from src/test/ui/derives/issue-97343.stderr rename to tests/ui/derives/issue-97343.stderr diff --git a/src/test/ui/deriving/auxiliary/derive-no-std.rs b/tests/ui/deriving/auxiliary/derive-no-std.rs similarity index 100% rename from src/test/ui/deriving/auxiliary/derive-no-std.rs rename to tests/ui/deriving/auxiliary/derive-no-std.rs diff --git a/src/test/ui/deriving/derive-no-std.rs b/tests/ui/deriving/derive-no-std.rs similarity index 100% rename from src/test/ui/deriving/derive-no-std.rs rename to tests/ui/deriving/derive-no-std.rs diff --git a/src/test/ui/deriving/derive-partialord-correctness.rs b/tests/ui/deriving/derive-partialord-correctness.rs similarity index 100% rename from src/test/ui/deriving/derive-partialord-correctness.rs rename to tests/ui/deriving/derive-partialord-correctness.rs diff --git a/src/test/ui/deriving/deriving-all-codegen.rs b/tests/ui/deriving/deriving-all-codegen.rs similarity index 100% rename from src/test/ui/deriving/deriving-all-codegen.rs rename to tests/ui/deriving/deriving-all-codegen.rs diff --git a/src/test/ui/deriving/deriving-all-codegen.stdout b/tests/ui/deriving/deriving-all-codegen.stdout similarity index 100% rename from src/test/ui/deriving/deriving-all-codegen.stdout rename to tests/ui/deriving/deriving-all-codegen.stdout diff --git a/src/test/ui/deriving/deriving-associated-types.rs b/tests/ui/deriving/deriving-associated-types.rs similarity index 100% rename from src/test/ui/deriving/deriving-associated-types.rs rename to tests/ui/deriving/deriving-associated-types.rs diff --git a/src/test/ui/deriving/deriving-bounds.rs b/tests/ui/deriving/deriving-bounds.rs similarity index 100% rename from src/test/ui/deriving/deriving-bounds.rs rename to tests/ui/deriving/deriving-bounds.rs diff --git a/src/test/ui/deriving/deriving-clone-array.rs b/tests/ui/deriving/deriving-clone-array.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-array.rs rename to tests/ui/deriving/deriving-clone-array.rs diff --git a/src/test/ui/deriving/deriving-clone-enum.rs b/tests/ui/deriving/deriving-clone-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-enum.rs rename to tests/ui/deriving/deriving-clone-enum.rs diff --git a/src/test/ui/deriving/deriving-clone-generic-enum.rs b/tests/ui/deriving/deriving-clone-generic-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-generic-enum.rs rename to tests/ui/deriving/deriving-clone-generic-enum.rs diff --git a/src/test/ui/deriving/deriving-clone-generic-struct.rs b/tests/ui/deriving/deriving-clone-generic-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-generic-struct.rs rename to tests/ui/deriving/deriving-clone-generic-struct.rs diff --git a/src/test/ui/deriving/deriving-clone-generic-tuple-struct.rs b/tests/ui/deriving/deriving-clone-generic-tuple-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-generic-tuple-struct.rs rename to tests/ui/deriving/deriving-clone-generic-tuple-struct.rs diff --git a/src/test/ui/deriving/deriving-clone-struct.rs b/tests/ui/deriving/deriving-clone-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-struct.rs rename to tests/ui/deriving/deriving-clone-struct.rs diff --git a/src/test/ui/deriving/deriving-clone-tuple-struct.rs b/tests/ui/deriving/deriving-clone-tuple-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-clone-tuple-struct.rs rename to tests/ui/deriving/deriving-clone-tuple-struct.rs diff --git a/src/test/ui/deriving/deriving-cmp-generic-enum.rs b/tests/ui/deriving/deriving-cmp-generic-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-cmp-generic-enum.rs rename to tests/ui/deriving/deriving-cmp-generic-enum.rs diff --git a/src/test/ui/deriving/deriving-cmp-generic-struct-enum.rs b/tests/ui/deriving/deriving-cmp-generic-struct-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-cmp-generic-struct-enum.rs rename to tests/ui/deriving/deriving-cmp-generic-struct-enum.rs diff --git a/src/test/ui/deriving/deriving-cmp-generic-struct.rs b/tests/ui/deriving/deriving-cmp-generic-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-cmp-generic-struct.rs rename to tests/ui/deriving/deriving-cmp-generic-struct.rs diff --git a/src/test/ui/deriving/deriving-cmp-generic-tuple-struct.rs b/tests/ui/deriving/deriving-cmp-generic-tuple-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-cmp-generic-tuple-struct.rs rename to tests/ui/deriving/deriving-cmp-generic-tuple-struct.rs diff --git a/src/test/ui/deriving/deriving-cmp-shortcircuit.rs b/tests/ui/deriving/deriving-cmp-shortcircuit.rs similarity index 100% rename from src/test/ui/deriving/deriving-cmp-shortcircuit.rs rename to tests/ui/deriving/deriving-cmp-shortcircuit.rs diff --git a/src/test/ui/deriving/deriving-copyclone.rs b/tests/ui/deriving/deriving-copyclone.rs similarity index 100% rename from src/test/ui/deriving/deriving-copyclone.rs rename to tests/ui/deriving/deriving-copyclone.rs diff --git a/src/test/ui/deriving/deriving-default-box.rs b/tests/ui/deriving/deriving-default-box.rs similarity index 100% rename from src/test/ui/deriving/deriving-default-box.rs rename to tests/ui/deriving/deriving-default-box.rs diff --git a/src/test/ui/deriving/deriving-default-enum.rs b/tests/ui/deriving/deriving-default-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-default-enum.rs rename to tests/ui/deriving/deriving-default-enum.rs diff --git a/src/test/ui/deriving/deriving-enum-single-variant.rs b/tests/ui/deriving/deriving-enum-single-variant.rs similarity index 100% rename from src/test/ui/deriving/deriving-enum-single-variant.rs rename to tests/ui/deriving/deriving-enum-single-variant.rs diff --git a/src/test/ui/deriving/deriving-eq-ord-boxed-slice.rs b/tests/ui/deriving/deriving-eq-ord-boxed-slice.rs similarity index 100% rename from src/test/ui/deriving/deriving-eq-ord-boxed-slice.rs rename to tests/ui/deriving/deriving-eq-ord-boxed-slice.rs diff --git a/src/test/ui/deriving/deriving-hash.rs b/tests/ui/deriving/deriving-hash.rs similarity index 100% rename from src/test/ui/deriving/deriving-hash.rs rename to tests/ui/deriving/deriving-hash.rs diff --git a/src/test/ui/deriving/deriving-in-fn.rs b/tests/ui/deriving/deriving-in-fn.rs similarity index 100% rename from src/test/ui/deriving/deriving-in-fn.rs rename to tests/ui/deriving/deriving-in-fn.rs diff --git a/src/test/ui/deriving/deriving-in-macro.rs b/tests/ui/deriving/deriving-in-macro.rs similarity index 100% rename from src/test/ui/deriving/deriving-in-macro.rs rename to tests/ui/deriving/deriving-in-macro.rs diff --git a/src/test/ui/deriving/deriving-meta-multiple.rs b/tests/ui/deriving/deriving-meta-multiple.rs similarity index 100% rename from src/test/ui/deriving/deriving-meta-multiple.rs rename to tests/ui/deriving/deriving-meta-multiple.rs diff --git a/src/test/ui/deriving/deriving-meta.rs b/tests/ui/deriving/deriving-meta.rs similarity index 100% rename from src/test/ui/deriving/deriving-meta.rs rename to tests/ui/deriving/deriving-meta.rs diff --git a/src/test/ui/deriving/deriving-self-lifetime-totalord-totaleq.rs b/tests/ui/deriving/deriving-self-lifetime-totalord-totaleq.rs similarity index 100% rename from src/test/ui/deriving/deriving-self-lifetime-totalord-totaleq.rs rename to tests/ui/deriving/deriving-self-lifetime-totalord-totaleq.rs diff --git a/src/test/ui/deriving/deriving-show-2.rs b/tests/ui/deriving/deriving-show-2.rs similarity index 100% rename from src/test/ui/deriving/deriving-show-2.rs rename to tests/ui/deriving/deriving-show-2.rs diff --git a/src/test/ui/deriving/deriving-show.rs b/tests/ui/deriving/deriving-show.rs similarity index 100% rename from src/test/ui/deriving/deriving-show.rs rename to tests/ui/deriving/deriving-show.rs diff --git a/src/test/ui/deriving/deriving-via-extension-c-enum.rs b/tests/ui/deriving/deriving-via-extension-c-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-c-enum.rs rename to tests/ui/deriving/deriving-via-extension-c-enum.rs diff --git a/src/test/ui/deriving/deriving-via-extension-enum.rs b/tests/ui/deriving/deriving-via-extension-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-enum.rs rename to tests/ui/deriving/deriving-via-extension-enum.rs diff --git a/src/test/ui/deriving/deriving-via-extension-hash-enum.rs b/tests/ui/deriving/deriving-via-extension-hash-enum.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-hash-enum.rs rename to tests/ui/deriving/deriving-via-extension-hash-enum.rs diff --git a/src/test/ui/deriving/deriving-via-extension-hash-struct.rs b/tests/ui/deriving/deriving-via-extension-hash-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-hash-struct.rs rename to tests/ui/deriving/deriving-via-extension-hash-struct.rs diff --git a/src/test/ui/deriving/deriving-via-extension-struct-empty.rs b/tests/ui/deriving/deriving-via-extension-struct-empty.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-struct-empty.rs rename to tests/ui/deriving/deriving-via-extension-struct-empty.rs diff --git a/src/test/ui/deriving/deriving-via-extension-struct-like-enum-variant.rs b/tests/ui/deriving/deriving-via-extension-struct-like-enum-variant.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-struct-like-enum-variant.rs rename to tests/ui/deriving/deriving-via-extension-struct-like-enum-variant.rs diff --git a/src/test/ui/deriving/deriving-via-extension-struct-tuple.rs b/tests/ui/deriving/deriving-via-extension-struct-tuple.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-struct-tuple.rs rename to tests/ui/deriving/deriving-via-extension-struct-tuple.rs diff --git a/src/test/ui/deriving/deriving-via-extension-struct.rs b/tests/ui/deriving/deriving-via-extension-struct.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-struct.rs rename to tests/ui/deriving/deriving-via-extension-struct.rs diff --git a/src/test/ui/deriving/deriving-via-extension-type-params.rs b/tests/ui/deriving/deriving-via-extension-type-params.rs similarity index 100% rename from src/test/ui/deriving/deriving-via-extension-type-params.rs rename to tests/ui/deriving/deriving-via-extension-type-params.rs diff --git a/src/test/ui/deriving/deriving-with-helper.rs b/tests/ui/deriving/deriving-with-helper.rs similarity index 100% rename from src/test/ui/deriving/deriving-with-helper.rs rename to tests/ui/deriving/deriving-with-helper.rs diff --git a/src/test/ui/deriving/deriving-with-repr-packed.rs b/tests/ui/deriving/deriving-with-repr-packed.rs similarity index 100% rename from src/test/ui/deriving/deriving-with-repr-packed.rs rename to tests/ui/deriving/deriving-with-repr-packed.rs diff --git a/src/test/ui/deriving/issue-103157.rs b/tests/ui/deriving/issue-103157.rs similarity index 100% rename from src/test/ui/deriving/issue-103157.rs rename to tests/ui/deriving/issue-103157.rs diff --git a/src/test/ui/deriving/issue-103157.stderr b/tests/ui/deriving/issue-103157.stderr similarity index 100% rename from src/test/ui/deriving/issue-103157.stderr rename to tests/ui/deriving/issue-103157.stderr diff --git a/src/test/ui/deriving/issue-105101.rs b/tests/ui/deriving/issue-105101.rs similarity index 100% rename from src/test/ui/deriving/issue-105101.rs rename to tests/ui/deriving/issue-105101.rs diff --git a/src/test/ui/deriving/issue-105101.stderr b/tests/ui/deriving/issue-105101.stderr similarity index 100% rename from src/test/ui/deriving/issue-105101.stderr rename to tests/ui/deriving/issue-105101.stderr diff --git a/src/test/ui/deriving/issue-19358.rs b/tests/ui/deriving/issue-19358.rs similarity index 100% rename from src/test/ui/deriving/issue-19358.rs rename to tests/ui/deriving/issue-19358.rs diff --git a/src/test/ui/deriving/issue-3935.rs b/tests/ui/deriving/issue-3935.rs similarity index 100% rename from src/test/ui/deriving/issue-3935.rs rename to tests/ui/deriving/issue-3935.rs diff --git a/src/test/ui/deriving/issue-58319.rs b/tests/ui/deriving/issue-58319.rs similarity index 100% rename from src/test/ui/deriving/issue-58319.rs rename to tests/ui/deriving/issue-58319.rs diff --git a/src/test/ui/deriving/issue-6341.rs b/tests/ui/deriving/issue-6341.rs similarity index 100% rename from src/test/ui/deriving/issue-6341.rs rename to tests/ui/deriving/issue-6341.rs diff --git a/src/test/ui/deriving/issue-89188-gat-hrtb.rs b/tests/ui/deriving/issue-89188-gat-hrtb.rs similarity index 100% rename from src/test/ui/deriving/issue-89188-gat-hrtb.rs rename to tests/ui/deriving/issue-89188-gat-hrtb.rs diff --git a/src/test/ui/dest-prop/skeptic-miscompile.rs b/tests/ui/dest-prop/skeptic-miscompile.rs similarity index 100% rename from src/test/ui/dest-prop/skeptic-miscompile.rs rename to tests/ui/dest-prop/skeptic-miscompile.rs diff --git a/src/test/ui/destructure-trait-ref.rs b/tests/ui/destructure-trait-ref.rs similarity index 100% rename from src/test/ui/destructure-trait-ref.rs rename to tests/ui/destructure-trait-ref.rs diff --git a/src/test/ui/destructure-trait-ref.stderr b/tests/ui/destructure-trait-ref.stderr similarity index 100% rename from src/test/ui/destructure-trait-ref.stderr rename to tests/ui/destructure-trait-ref.stderr diff --git a/src/test/ui/destructuring-assignment/bad-expr-lhs.rs b/tests/ui/destructuring-assignment/bad-expr-lhs.rs similarity index 100% rename from src/test/ui/destructuring-assignment/bad-expr-lhs.rs rename to tests/ui/destructuring-assignment/bad-expr-lhs.rs diff --git a/src/test/ui/destructuring-assignment/bad-expr-lhs.stderr b/tests/ui/destructuring-assignment/bad-expr-lhs.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/bad-expr-lhs.stderr rename to tests/ui/destructuring-assignment/bad-expr-lhs.stderr diff --git a/src/test/ui/destructuring-assignment/default-match-bindings-forbidden.rs b/tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs similarity index 100% rename from src/test/ui/destructuring-assignment/default-match-bindings-forbidden.rs rename to tests/ui/destructuring-assignment/default-match-bindings-forbidden.rs diff --git a/src/test/ui/destructuring-assignment/default-match-bindings-forbidden.stderr b/tests/ui/destructuring-assignment/default-match-bindings-forbidden.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/default-match-bindings-forbidden.stderr rename to tests/ui/destructuring-assignment/default-match-bindings-forbidden.stderr diff --git a/src/test/ui/destructuring-assignment/drop-order.rs b/tests/ui/destructuring-assignment/drop-order.rs similarity index 100% rename from src/test/ui/destructuring-assignment/drop-order.rs rename to tests/ui/destructuring-assignment/drop-order.rs diff --git a/src/test/ui/destructuring-assignment/nested_destructure.rs b/tests/ui/destructuring-assignment/nested_destructure.rs similarity index 100% rename from src/test/ui/destructuring-assignment/nested_destructure.rs rename to tests/ui/destructuring-assignment/nested_destructure.rs diff --git a/src/test/ui/destructuring-assignment/note-unsupported.rs b/tests/ui/destructuring-assignment/note-unsupported.rs similarity index 100% rename from src/test/ui/destructuring-assignment/note-unsupported.rs rename to tests/ui/destructuring-assignment/note-unsupported.rs diff --git a/src/test/ui/destructuring-assignment/note-unsupported.stderr b/tests/ui/destructuring-assignment/note-unsupported.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/note-unsupported.stderr rename to tests/ui/destructuring-assignment/note-unsupported.stderr diff --git a/src/test/ui/destructuring-assignment/slice_destructure.rs b/tests/ui/destructuring-assignment/slice_destructure.rs similarity index 100% rename from src/test/ui/destructuring-assignment/slice_destructure.rs rename to tests/ui/destructuring-assignment/slice_destructure.rs diff --git a/src/test/ui/destructuring-assignment/slice_destructure_fail.rs b/tests/ui/destructuring-assignment/slice_destructure_fail.rs similarity index 100% rename from src/test/ui/destructuring-assignment/slice_destructure_fail.rs rename to tests/ui/destructuring-assignment/slice_destructure_fail.rs diff --git a/src/test/ui/destructuring-assignment/slice_destructure_fail.stderr b/tests/ui/destructuring-assignment/slice_destructure_fail.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/slice_destructure_fail.stderr rename to tests/ui/destructuring-assignment/slice_destructure_fail.stderr diff --git a/src/test/ui/destructuring-assignment/struct-or-enum-variant-path.rs b/tests/ui/destructuring-assignment/struct-or-enum-variant-path.rs similarity index 100% rename from src/test/ui/destructuring-assignment/struct-or-enum-variant-path.rs rename to tests/ui/destructuring-assignment/struct-or-enum-variant-path.rs diff --git a/src/test/ui/destructuring-assignment/struct_destructure.rs b/tests/ui/destructuring-assignment/struct_destructure.rs similarity index 100% rename from src/test/ui/destructuring-assignment/struct_destructure.rs rename to tests/ui/destructuring-assignment/struct_destructure.rs diff --git a/src/test/ui/destructuring-assignment/struct_destructure_fail.rs b/tests/ui/destructuring-assignment/struct_destructure_fail.rs similarity index 100% rename from src/test/ui/destructuring-assignment/struct_destructure_fail.rs rename to tests/ui/destructuring-assignment/struct_destructure_fail.rs diff --git a/src/test/ui/destructuring-assignment/struct_destructure_fail.stderr b/tests/ui/destructuring-assignment/struct_destructure_fail.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/struct_destructure_fail.stderr rename to tests/ui/destructuring-assignment/struct_destructure_fail.stderr diff --git a/src/test/ui/destructuring-assignment/tuple_destructure.rs b/tests/ui/destructuring-assignment/tuple_destructure.rs similarity index 100% rename from src/test/ui/destructuring-assignment/tuple_destructure.rs rename to tests/ui/destructuring-assignment/tuple_destructure.rs diff --git a/src/test/ui/destructuring-assignment/tuple_destructure_fail.rs b/tests/ui/destructuring-assignment/tuple_destructure_fail.rs similarity index 100% rename from src/test/ui/destructuring-assignment/tuple_destructure_fail.rs rename to tests/ui/destructuring-assignment/tuple_destructure_fail.rs diff --git a/src/test/ui/destructuring-assignment/tuple_destructure_fail.stderr b/tests/ui/destructuring-assignment/tuple_destructure_fail.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/tuple_destructure_fail.stderr rename to tests/ui/destructuring-assignment/tuple_destructure_fail.stderr diff --git a/src/test/ui/destructuring-assignment/tuple_struct_destructure.rs b/tests/ui/destructuring-assignment/tuple_struct_destructure.rs similarity index 100% rename from src/test/ui/destructuring-assignment/tuple_struct_destructure.rs rename to tests/ui/destructuring-assignment/tuple_struct_destructure.rs diff --git a/src/test/ui/destructuring-assignment/tuple_struct_destructure_fail.rs b/tests/ui/destructuring-assignment/tuple_struct_destructure_fail.rs similarity index 100% rename from src/test/ui/destructuring-assignment/tuple_struct_destructure_fail.rs rename to tests/ui/destructuring-assignment/tuple_struct_destructure_fail.rs diff --git a/src/test/ui/destructuring-assignment/tuple_struct_destructure_fail.stderr b/tests/ui/destructuring-assignment/tuple_struct_destructure_fail.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/tuple_struct_destructure_fail.stderr rename to tests/ui/destructuring-assignment/tuple_struct_destructure_fail.stderr diff --git a/src/test/ui/destructuring-assignment/warn-unused-duplication.rs b/tests/ui/destructuring-assignment/warn-unused-duplication.rs similarity index 100% rename from src/test/ui/destructuring-assignment/warn-unused-duplication.rs rename to tests/ui/destructuring-assignment/warn-unused-duplication.rs diff --git a/src/test/ui/destructuring-assignment/warn-unused-duplication.stderr b/tests/ui/destructuring-assignment/warn-unused-duplication.stderr similarity index 100% rename from src/test/ui/destructuring-assignment/warn-unused-duplication.stderr rename to tests/ui/destructuring-assignment/warn-unused-duplication.stderr diff --git a/src/test/ui/diagnostic-width/flag-human.rs b/tests/ui/diagnostic-width/flag-human.rs similarity index 100% rename from src/test/ui/diagnostic-width/flag-human.rs rename to tests/ui/diagnostic-width/flag-human.rs diff --git a/src/test/ui/diagnostic-width/flag-human.stderr b/tests/ui/diagnostic-width/flag-human.stderr similarity index 100% rename from src/test/ui/diagnostic-width/flag-human.stderr rename to tests/ui/diagnostic-width/flag-human.stderr diff --git a/src/test/ui/diagnostic-width/flag-json.rs b/tests/ui/diagnostic-width/flag-json.rs similarity index 100% rename from src/test/ui/diagnostic-width/flag-json.rs rename to tests/ui/diagnostic-width/flag-json.rs diff --git a/src/test/ui/diagnostic-width/flag-json.stderr b/tests/ui/diagnostic-width/flag-json.stderr similarity index 100% rename from src/test/ui/diagnostic-width/flag-json.stderr rename to tests/ui/diagnostic-width/flag-json.stderr diff --git a/src/test/ui/diagnostic-width/long-E0308.rs b/tests/ui/diagnostic-width/long-E0308.rs similarity index 100% rename from src/test/ui/diagnostic-width/long-E0308.rs rename to tests/ui/diagnostic-width/long-E0308.rs diff --git a/src/test/ui/diagnostic-width/long-E0308.stderr b/tests/ui/diagnostic-width/long-E0308.stderr similarity index 100% rename from src/test/ui/diagnostic-width/long-E0308.stderr rename to tests/ui/diagnostic-width/long-E0308.stderr diff --git a/src/test/ui/diagnostic-width/non-1-width-unicode-multiline-label.rs b/tests/ui/diagnostic-width/non-1-width-unicode-multiline-label.rs similarity index 100% rename from src/test/ui/diagnostic-width/non-1-width-unicode-multiline-label.rs rename to tests/ui/diagnostic-width/non-1-width-unicode-multiline-label.rs diff --git a/src/test/ui/diagnostic-width/non-1-width-unicode-multiline-label.stderr b/tests/ui/diagnostic-width/non-1-width-unicode-multiline-label.stderr similarity index 100% rename from src/test/ui/diagnostic-width/non-1-width-unicode-multiline-label.stderr rename to tests/ui/diagnostic-width/non-1-width-unicode-multiline-label.stderr diff --git a/src/test/ui/diagnostic-width/non-whitespace-trimming-2.rs b/tests/ui/diagnostic-width/non-whitespace-trimming-2.rs similarity index 100% rename from src/test/ui/diagnostic-width/non-whitespace-trimming-2.rs rename to tests/ui/diagnostic-width/non-whitespace-trimming-2.rs diff --git a/src/test/ui/diagnostic-width/non-whitespace-trimming-2.stderr b/tests/ui/diagnostic-width/non-whitespace-trimming-2.stderr similarity index 100% rename from src/test/ui/diagnostic-width/non-whitespace-trimming-2.stderr rename to tests/ui/diagnostic-width/non-whitespace-trimming-2.stderr diff --git a/src/test/ui/diagnostic-width/non-whitespace-trimming-unicode.rs b/tests/ui/diagnostic-width/non-whitespace-trimming-unicode.rs similarity index 100% rename from src/test/ui/diagnostic-width/non-whitespace-trimming-unicode.rs rename to tests/ui/diagnostic-width/non-whitespace-trimming-unicode.rs diff --git a/src/test/ui/diagnostic-width/non-whitespace-trimming-unicode.stderr b/tests/ui/diagnostic-width/non-whitespace-trimming-unicode.stderr similarity index 100% rename from src/test/ui/diagnostic-width/non-whitespace-trimming-unicode.stderr rename to tests/ui/diagnostic-width/non-whitespace-trimming-unicode.stderr diff --git a/src/test/ui/diagnostic-width/non-whitespace-trimming.rs b/tests/ui/diagnostic-width/non-whitespace-trimming.rs similarity index 100% rename from src/test/ui/diagnostic-width/non-whitespace-trimming.rs rename to tests/ui/diagnostic-width/non-whitespace-trimming.rs diff --git a/src/test/ui/diagnostic-width/non-whitespace-trimming.stderr b/tests/ui/diagnostic-width/non-whitespace-trimming.stderr similarity index 100% rename from src/test/ui/diagnostic-width/non-whitespace-trimming.stderr rename to tests/ui/diagnostic-width/non-whitespace-trimming.stderr diff --git a/src/test/ui/diagnostic-width/tabs-trimming.rs b/tests/ui/diagnostic-width/tabs-trimming.rs similarity index 100% rename from src/test/ui/diagnostic-width/tabs-trimming.rs rename to tests/ui/diagnostic-width/tabs-trimming.rs diff --git a/src/test/ui/diagnostic-width/tabs-trimming.stderr b/tests/ui/diagnostic-width/tabs-trimming.stderr similarity index 100% rename from src/test/ui/diagnostic-width/tabs-trimming.stderr rename to tests/ui/diagnostic-width/tabs-trimming.stderr diff --git a/src/test/ui/diagnostic-width/whitespace-trimming-2.rs b/tests/ui/diagnostic-width/whitespace-trimming-2.rs similarity index 100% rename from src/test/ui/diagnostic-width/whitespace-trimming-2.rs rename to tests/ui/diagnostic-width/whitespace-trimming-2.rs diff --git a/src/test/ui/diagnostic-width/whitespace-trimming-2.stderr b/tests/ui/diagnostic-width/whitespace-trimming-2.stderr similarity index 100% rename from src/test/ui/diagnostic-width/whitespace-trimming-2.stderr rename to tests/ui/diagnostic-width/whitespace-trimming-2.stderr diff --git a/src/test/ui/diagnostic-width/whitespace-trimming.rs b/tests/ui/diagnostic-width/whitespace-trimming.rs similarity index 100% rename from src/test/ui/diagnostic-width/whitespace-trimming.rs rename to tests/ui/diagnostic-width/whitespace-trimming.rs diff --git a/src/test/ui/diagnostic-width/whitespace-trimming.stderr b/tests/ui/diagnostic-width/whitespace-trimming.stderr similarity index 100% rename from src/test/ui/diagnostic-width/whitespace-trimming.stderr rename to tests/ui/diagnostic-width/whitespace-trimming.stderr diff --git a/src/test/ui/did_you_mean/E0178.rs b/tests/ui/did_you_mean/E0178.rs similarity index 100% rename from src/test/ui/did_you_mean/E0178.rs rename to tests/ui/did_you_mean/E0178.rs diff --git a/src/test/ui/did_you_mean/E0178.stderr b/tests/ui/did_you_mean/E0178.stderr similarity index 100% rename from src/test/ui/did_you_mean/E0178.stderr rename to tests/ui/did_you_mean/E0178.stderr diff --git a/src/test/ui/did_you_mean/bad-assoc-expr.rs b/tests/ui/did_you_mean/bad-assoc-expr.rs similarity index 100% rename from src/test/ui/did_you_mean/bad-assoc-expr.rs rename to tests/ui/did_you_mean/bad-assoc-expr.rs diff --git a/src/test/ui/did_you_mean/bad-assoc-expr.stderr b/tests/ui/did_you_mean/bad-assoc-expr.stderr similarity index 100% rename from src/test/ui/did_you_mean/bad-assoc-expr.stderr rename to tests/ui/did_you_mean/bad-assoc-expr.stderr diff --git a/src/test/ui/did_you_mean/bad-assoc-pat.rs b/tests/ui/did_you_mean/bad-assoc-pat.rs similarity index 100% rename from src/test/ui/did_you_mean/bad-assoc-pat.rs rename to tests/ui/did_you_mean/bad-assoc-pat.rs diff --git a/src/test/ui/did_you_mean/bad-assoc-pat.stderr b/tests/ui/did_you_mean/bad-assoc-pat.stderr similarity index 100% rename from src/test/ui/did_you_mean/bad-assoc-pat.stderr rename to tests/ui/did_you_mean/bad-assoc-pat.stderr diff --git a/src/test/ui/did_you_mean/bad-assoc-ty.rs b/tests/ui/did_you_mean/bad-assoc-ty.rs similarity index 100% rename from src/test/ui/did_you_mean/bad-assoc-ty.rs rename to tests/ui/did_you_mean/bad-assoc-ty.rs diff --git a/src/test/ui/did_you_mean/bad-assoc-ty.stderr b/tests/ui/did_you_mean/bad-assoc-ty.stderr similarity index 100% rename from src/test/ui/did_you_mean/bad-assoc-ty.stderr rename to tests/ui/did_you_mean/bad-assoc-ty.stderr diff --git a/src/test/ui/did_you_mean/brackets-to-braces-single-element.rs b/tests/ui/did_you_mean/brackets-to-braces-single-element.rs similarity index 100% rename from src/test/ui/did_you_mean/brackets-to-braces-single-element.rs rename to tests/ui/did_you_mean/brackets-to-braces-single-element.rs diff --git a/src/test/ui/did_you_mean/brackets-to-braces-single-element.stderr b/tests/ui/did_you_mean/brackets-to-braces-single-element.stderr similarity index 100% rename from src/test/ui/did_you_mean/brackets-to-braces-single-element.stderr rename to tests/ui/did_you_mean/brackets-to-braces-single-element.stderr diff --git a/src/test/ui/did_you_mean/compatible-variants-in-pat.rs b/tests/ui/did_you_mean/compatible-variants-in-pat.rs similarity index 100% rename from src/test/ui/did_you_mean/compatible-variants-in-pat.rs rename to tests/ui/did_you_mean/compatible-variants-in-pat.rs diff --git a/src/test/ui/did_you_mean/compatible-variants-in-pat.stderr b/tests/ui/did_you_mean/compatible-variants-in-pat.stderr similarity index 100% rename from src/test/ui/did_you_mean/compatible-variants-in-pat.stderr rename to tests/ui/did_you_mean/compatible-variants-in-pat.stderr diff --git a/src/test/ui/did_you_mean/compatible-variants.rs b/tests/ui/did_you_mean/compatible-variants.rs similarity index 100% rename from src/test/ui/did_you_mean/compatible-variants.rs rename to tests/ui/did_you_mean/compatible-variants.rs diff --git a/src/test/ui/did_you_mean/compatible-variants.stderr b/tests/ui/did_you_mean/compatible-variants.stderr similarity index 100% rename from src/test/ui/did_you_mean/compatible-variants.stderr rename to tests/ui/did_you_mean/compatible-variants.stderr diff --git a/src/test/ui/did_you_mean/issue-103909.rs b/tests/ui/did_you_mean/issue-103909.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-103909.rs rename to tests/ui/did_you_mean/issue-103909.rs diff --git a/src/test/ui/did_you_mean/issue-103909.stderr b/tests/ui/did_you_mean/issue-103909.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-103909.stderr rename to tests/ui/did_you_mean/issue-103909.stderr diff --git a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.rs b/tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.rs rename to tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.rs diff --git a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr b/tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr rename to tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-1.stderr diff --git a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.rs b/tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.rs rename to tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.rs diff --git a/src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr b/tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr rename to tests/ui/did_you_mean/issue-21659-show-relevant-trait-impls-2.stderr diff --git a/src/test/ui/did_you_mean/issue-31424.rs b/tests/ui/did_you_mean/issue-31424.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-31424.rs rename to tests/ui/did_you_mean/issue-31424.rs diff --git a/src/test/ui/did_you_mean/issue-31424.stderr b/tests/ui/did_you_mean/issue-31424.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-31424.stderr rename to tests/ui/did_you_mean/issue-31424.stderr diff --git a/src/test/ui/did_you_mean/issue-34126.rs b/tests/ui/did_you_mean/issue-34126.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-34126.rs rename to tests/ui/did_you_mean/issue-34126.rs diff --git a/src/test/ui/did_you_mean/issue-34126.stderr b/tests/ui/did_you_mean/issue-34126.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-34126.stderr rename to tests/ui/did_you_mean/issue-34126.stderr diff --git a/src/test/ui/did_you_mean/issue-34337.rs b/tests/ui/did_you_mean/issue-34337.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-34337.rs rename to tests/ui/did_you_mean/issue-34337.rs diff --git a/src/test/ui/did_you_mean/issue-34337.stderr b/tests/ui/did_you_mean/issue-34337.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-34337.stderr rename to tests/ui/did_you_mean/issue-34337.stderr diff --git a/src/test/ui/did_you_mean/issue-35937.rs b/tests/ui/did_you_mean/issue-35937.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-35937.rs rename to tests/ui/did_you_mean/issue-35937.rs diff --git a/src/test/ui/did_you_mean/issue-35937.stderr b/tests/ui/did_you_mean/issue-35937.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-35937.stderr rename to tests/ui/did_you_mean/issue-35937.stderr diff --git a/src/test/ui/did_you_mean/issue-36798.rs b/tests/ui/did_you_mean/issue-36798.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-36798.rs rename to tests/ui/did_you_mean/issue-36798.rs diff --git a/src/test/ui/did_you_mean/issue-36798.stderr b/tests/ui/did_you_mean/issue-36798.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-36798.stderr rename to tests/ui/did_you_mean/issue-36798.stderr diff --git a/src/test/ui/did_you_mean/issue-36798_unknown_field.rs b/tests/ui/did_you_mean/issue-36798_unknown_field.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-36798_unknown_field.rs rename to tests/ui/did_you_mean/issue-36798_unknown_field.rs diff --git a/src/test/ui/did_you_mean/issue-36798_unknown_field.stderr b/tests/ui/did_you_mean/issue-36798_unknown_field.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-36798_unknown_field.stderr rename to tests/ui/did_you_mean/issue-36798_unknown_field.stderr diff --git a/src/test/ui/did_you_mean/issue-37139.rs b/tests/ui/did_you_mean/issue-37139.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-37139.rs rename to tests/ui/did_you_mean/issue-37139.rs diff --git a/src/test/ui/did_you_mean/issue-37139.stderr b/tests/ui/did_you_mean/issue-37139.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-37139.stderr rename to tests/ui/did_you_mean/issue-37139.stderr diff --git a/src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.rs b/tests/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.rs rename to tests/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.rs diff --git a/src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr b/tests/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr rename to tests/ui/did_you_mean/issue-38054-do-not-show-unresolved-names.stderr diff --git a/src/test/ui/did_you_mean/issue-38147-1.rs b/tests/ui/did_you_mean/issue-38147-1.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-1.rs rename to tests/ui/did_you_mean/issue-38147-1.rs diff --git a/src/test/ui/did_you_mean/issue-38147-1.stderr b/tests/ui/did_you_mean/issue-38147-1.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-1.stderr rename to tests/ui/did_you_mean/issue-38147-1.stderr diff --git a/src/test/ui/did_you_mean/issue-38147-2.rs b/tests/ui/did_you_mean/issue-38147-2.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-2.rs rename to tests/ui/did_you_mean/issue-38147-2.rs diff --git a/src/test/ui/did_you_mean/issue-38147-2.stderr b/tests/ui/did_you_mean/issue-38147-2.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-2.stderr rename to tests/ui/did_you_mean/issue-38147-2.stderr diff --git a/src/test/ui/did_you_mean/issue-38147-3.rs b/tests/ui/did_you_mean/issue-38147-3.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-3.rs rename to tests/ui/did_you_mean/issue-38147-3.rs diff --git a/src/test/ui/did_you_mean/issue-38147-3.stderr b/tests/ui/did_you_mean/issue-38147-3.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-3.stderr rename to tests/ui/did_you_mean/issue-38147-3.stderr diff --git a/src/test/ui/did_you_mean/issue-38147-4.rs b/tests/ui/did_you_mean/issue-38147-4.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-4.rs rename to tests/ui/did_you_mean/issue-38147-4.rs diff --git a/src/test/ui/did_you_mean/issue-38147-4.stderr b/tests/ui/did_you_mean/issue-38147-4.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-38147-4.stderr rename to tests/ui/did_you_mean/issue-38147-4.stderr diff --git a/src/test/ui/did_you_mean/issue-39544.rs b/tests/ui/did_you_mean/issue-39544.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-39544.rs rename to tests/ui/did_you_mean/issue-39544.rs diff --git a/src/test/ui/did_you_mean/issue-39544.stderr b/tests/ui/did_you_mean/issue-39544.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-39544.stderr rename to tests/ui/did_you_mean/issue-39544.stderr diff --git a/src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.rs b/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.rs rename to tests/ui/did_you_mean/issue-39802-show-5-trait-impls.rs diff --git a/src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr b/tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr rename to tests/ui/did_you_mean/issue-39802-show-5-trait-impls.stderr diff --git a/src/test/ui/did_you_mean/issue-40006.rs b/tests/ui/did_you_mean/issue-40006.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-40006.rs rename to tests/ui/did_you_mean/issue-40006.rs diff --git a/src/test/ui/did_you_mean/issue-40006.stderr b/tests/ui/did_you_mean/issue-40006.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-40006.stderr rename to tests/ui/did_you_mean/issue-40006.stderr diff --git a/src/test/ui/did_you_mean/issue-40396.rs b/tests/ui/did_you_mean/issue-40396.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-40396.rs rename to tests/ui/did_you_mean/issue-40396.rs diff --git a/src/test/ui/did_you_mean/issue-40396.stderr b/tests/ui/did_you_mean/issue-40396.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-40396.stderr rename to tests/ui/did_you_mean/issue-40396.stderr diff --git a/src/test/ui/did_you_mean/issue-40823.rs b/tests/ui/did_you_mean/issue-40823.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-40823.rs rename to tests/ui/did_you_mean/issue-40823.rs diff --git a/src/test/ui/did_you_mean/issue-40823.stderr b/tests/ui/did_you_mean/issue-40823.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-40823.stderr rename to tests/ui/did_you_mean/issue-40823.stderr diff --git a/src/test/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.fixed b/tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.fixed similarity index 100% rename from src/test/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.fixed rename to tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.fixed diff --git a/src/test/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.rs b/tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.rs rename to tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.rs diff --git a/src/test/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.stderr b/tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.stderr rename to tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.stderr diff --git a/src/test/ui/did_you_mean/issue-42599_available_fields_note.rs b/tests/ui/did_you_mean/issue-42599_available_fields_note.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-42599_available_fields_note.rs rename to tests/ui/did_you_mean/issue-42599_available_fields_note.rs diff --git a/src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr b/tests/ui/did_you_mean/issue-42599_available_fields_note.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr rename to tests/ui/did_you_mean/issue-42599_available_fields_note.stderr diff --git a/src/test/ui/did_you_mean/issue-42764.rs b/tests/ui/did_you_mean/issue-42764.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-42764.rs rename to tests/ui/did_you_mean/issue-42764.rs diff --git a/src/test/ui/did_you_mean/issue-42764.stderr b/tests/ui/did_you_mean/issue-42764.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-42764.stderr rename to tests/ui/did_you_mean/issue-42764.stderr diff --git a/src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.rs b/tests/ui/did_you_mean/issue-43871-enum-instead-of-variant.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.rs rename to tests/ui/did_you_mean/issue-43871-enum-instead-of-variant.rs diff --git a/src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr b/tests/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr rename to tests/ui/did_you_mean/issue-43871-enum-instead-of-variant.stderr diff --git a/src/test/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.rs b/tests/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.rs rename to tests/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.rs diff --git a/src/test/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.stderr b/tests/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.stderr rename to tests/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.stderr diff --git a/src/test/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.rs b/tests/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.rs rename to tests/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.rs diff --git a/src/test/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.stderr b/tests/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.stderr rename to tests/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.stderr diff --git a/src/test/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.rs b/tests/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.rs rename to tests/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.rs diff --git a/src/test/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr b/tests/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr rename to tests/ui/did_you_mean/issue-48492-tuple-destructure-missing-parens.stderr diff --git a/src/test/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.rs b/tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.rs rename to tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.rs diff --git a/src/test/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr b/tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr rename to tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr diff --git a/src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs b/tests/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs rename to tests/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.rs diff --git a/src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.stderr b/tests/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.stderr rename to tests/ui/did_you_mean/issue-53280-expected-float-found-integer-literal.stderr diff --git a/src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.rs b/tests/ui/did_you_mean/issue-54109-and_instead_of_ampersands.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.rs rename to tests/ui/did_you_mean/issue-54109-and_instead_of_ampersands.rs diff --git a/src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr b/tests/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr rename to tests/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr diff --git a/src/test/ui/did_you_mean/issue-54109-without-witness.fixed b/tests/ui/did_you_mean/issue-54109-without-witness.fixed similarity index 100% rename from src/test/ui/did_you_mean/issue-54109-without-witness.fixed rename to tests/ui/did_you_mean/issue-54109-without-witness.fixed diff --git a/src/test/ui/did_you_mean/issue-54109-without-witness.rs b/tests/ui/did_you_mean/issue-54109-without-witness.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-54109-without-witness.rs rename to tests/ui/did_you_mean/issue-54109-without-witness.rs diff --git a/src/test/ui/did_you_mean/issue-54109-without-witness.stderr b/tests/ui/did_you_mean/issue-54109-without-witness.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-54109-without-witness.stderr rename to tests/ui/did_you_mean/issue-54109-without-witness.stderr diff --git a/src/test/ui/did_you_mean/issue-56028-there-is-an-enum-variant.rs b/tests/ui/did_you_mean/issue-56028-there-is-an-enum-variant.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-56028-there-is-an-enum-variant.rs rename to tests/ui/did_you_mean/issue-56028-there-is-an-enum-variant.rs diff --git a/src/test/ui/did_you_mean/issue-56028-there-is-an-enum-variant.stderr b/tests/ui/did_you_mean/issue-56028-there-is-an-enum-variant.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-56028-there-is-an-enum-variant.stderr rename to tests/ui/did_you_mean/issue-56028-there-is-an-enum-variant.stderr diff --git a/src/test/ui/did_you_mean/issue-87830-try-brackets-for-arrays.rs b/tests/ui/did_you_mean/issue-87830-try-brackets-for-arrays.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-87830-try-brackets-for-arrays.rs rename to tests/ui/did_you_mean/issue-87830-try-brackets-for-arrays.rs diff --git a/src/test/ui/did_you_mean/issue-87830-try-brackets-for-arrays.stderr b/tests/ui/did_you_mean/issue-87830-try-brackets-for-arrays.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-87830-try-brackets-for-arrays.stderr rename to tests/ui/did_you_mean/issue-87830-try-brackets-for-arrays.stderr diff --git a/src/test/ui/did_you_mean/issue-93210-ignore-doc-hidden.rs b/tests/ui/did_you_mean/issue-93210-ignore-doc-hidden.rs similarity index 100% rename from src/test/ui/did_you_mean/issue-93210-ignore-doc-hidden.rs rename to tests/ui/did_you_mean/issue-93210-ignore-doc-hidden.rs diff --git a/src/test/ui/did_you_mean/issue-93210-ignore-doc-hidden.stderr b/tests/ui/did_you_mean/issue-93210-ignore-doc-hidden.stderr similarity index 100% rename from src/test/ui/did_you_mean/issue-93210-ignore-doc-hidden.stderr rename to tests/ui/did_you_mean/issue-93210-ignore-doc-hidden.stderr diff --git a/src/test/ui/did_you_mean/pub-macro-rules.rs b/tests/ui/did_you_mean/pub-macro-rules.rs similarity index 100% rename from src/test/ui/did_you_mean/pub-macro-rules.rs rename to tests/ui/did_you_mean/pub-macro-rules.rs diff --git a/src/test/ui/did_you_mean/pub-macro-rules.stderr b/tests/ui/did_you_mean/pub-macro-rules.stderr similarity index 100% rename from src/test/ui/did_you_mean/pub-macro-rules.stderr rename to tests/ui/did_you_mean/pub-macro-rules.stderr diff --git a/src/test/ui/did_you_mean/recursion_limit.rs b/tests/ui/did_you_mean/recursion_limit.rs similarity index 100% rename from src/test/ui/did_you_mean/recursion_limit.rs rename to tests/ui/did_you_mean/recursion_limit.rs diff --git a/src/test/ui/did_you_mean/recursion_limit.stderr b/tests/ui/did_you_mean/recursion_limit.stderr similarity index 100% rename from src/test/ui/did_you_mean/recursion_limit.stderr rename to tests/ui/did_you_mean/recursion_limit.stderr diff --git a/src/test/ui/did_you_mean/recursion_limit_deref.rs b/tests/ui/did_you_mean/recursion_limit_deref.rs similarity index 100% rename from src/test/ui/did_you_mean/recursion_limit_deref.rs rename to tests/ui/did_you_mean/recursion_limit_deref.rs diff --git a/src/test/ui/did_you_mean/recursion_limit_deref.stderr b/tests/ui/did_you_mean/recursion_limit_deref.stderr similarity index 100% rename from src/test/ui/did_you_mean/recursion_limit_deref.stderr rename to tests/ui/did_you_mean/recursion_limit_deref.stderr diff --git a/src/test/ui/did_you_mean/recursion_limit_macro.rs b/tests/ui/did_you_mean/recursion_limit_macro.rs similarity index 100% rename from src/test/ui/did_you_mean/recursion_limit_macro.rs rename to tests/ui/did_you_mean/recursion_limit_macro.rs diff --git a/src/test/ui/did_you_mean/recursion_limit_macro.stderr b/tests/ui/did_you_mean/recursion_limit_macro.stderr similarity index 100% rename from src/test/ui/did_you_mean/recursion_limit_macro.stderr rename to tests/ui/did_you_mean/recursion_limit_macro.stderr diff --git a/src/test/ui/did_you_mean/replace-impl-infer-ty-from-trait.fixed b/tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.fixed similarity index 100% rename from src/test/ui/did_you_mean/replace-impl-infer-ty-from-trait.fixed rename to tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.fixed diff --git a/src/test/ui/did_you_mean/replace-impl-infer-ty-from-trait.rs b/tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.rs similarity index 100% rename from src/test/ui/did_you_mean/replace-impl-infer-ty-from-trait.rs rename to tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.rs diff --git a/src/test/ui/did_you_mean/replace-impl-infer-ty-from-trait.stderr b/tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.stderr similarity index 100% rename from src/test/ui/did_you_mean/replace-impl-infer-ty-from-trait.stderr rename to tests/ui/did_you_mean/replace-impl-infer-ty-from-trait.stderr diff --git a/src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs b/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs similarity index 100% rename from src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs rename to tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.rs diff --git a/src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr b/tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr similarity index 100% rename from src/test/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr rename to tests/ui/did_you_mean/trait-object-reference-without-parens-suggestion.stderr diff --git a/src/test/ui/did_you_mean/use_instead_of_import.fixed b/tests/ui/did_you_mean/use_instead_of_import.fixed similarity index 100% rename from src/test/ui/did_you_mean/use_instead_of_import.fixed rename to tests/ui/did_you_mean/use_instead_of_import.fixed diff --git a/src/test/ui/did_you_mean/use_instead_of_import.rs b/tests/ui/did_you_mean/use_instead_of_import.rs similarity index 100% rename from src/test/ui/did_you_mean/use_instead_of_import.rs rename to tests/ui/did_you_mean/use_instead_of_import.rs diff --git a/src/test/ui/did_you_mean/use_instead_of_import.stderr b/tests/ui/did_you_mean/use_instead_of_import.stderr similarity index 100% rename from src/test/ui/did_you_mean/use_instead_of_import.stderr rename to tests/ui/did_you_mean/use_instead_of_import.stderr diff --git a/src/test/ui/directory_ownership/foo/compiletest-ignore-dir b/tests/ui/directory_ownership/foo/compiletest-ignore-dir similarity index 100% rename from src/test/ui/directory_ownership/foo/compiletest-ignore-dir rename to tests/ui/directory_ownership/foo/compiletest-ignore-dir diff --git a/src/test/ui/directory_ownership/foo/mod_file_not_owning/aux2.rs b/tests/ui/directory_ownership/foo/mod_file_not_owning/aux2.rs similarity index 100% rename from src/test/ui/directory_ownership/foo/mod_file_not_owning/aux2.rs rename to tests/ui/directory_ownership/foo/mod_file_not_owning/aux2.rs diff --git a/src/test/ui/directory_ownership/foo/mod_file_not_owning_aux2.rs b/tests/ui/directory_ownership/foo/mod_file_not_owning_aux2.rs similarity index 100% rename from src/test/ui/directory_ownership/foo/mod_file_not_owning_aux2.rs rename to tests/ui/directory_ownership/foo/mod_file_not_owning_aux2.rs diff --git a/src/test/ui/directory_ownership/macro-expanded-mod.rs b/tests/ui/directory_ownership/macro-expanded-mod.rs similarity index 100% rename from src/test/ui/directory_ownership/macro-expanded-mod.rs rename to tests/ui/directory_ownership/macro-expanded-mod.rs diff --git a/src/test/ui/directory_ownership/macro-expanded-mod.stderr b/tests/ui/directory_ownership/macro-expanded-mod.stderr similarity index 100% rename from src/test/ui/directory_ownership/macro-expanded-mod.stderr rename to tests/ui/directory_ownership/macro-expanded-mod.stderr diff --git a/src/test/ui/directory_ownership/macro_expanded_mod_helper/foo/bar.rs b/tests/ui/directory_ownership/macro_expanded_mod_helper/foo/bar.rs similarity index 100% rename from src/test/ui/directory_ownership/macro_expanded_mod_helper/foo/bar.rs rename to tests/ui/directory_ownership/macro_expanded_mod_helper/foo/bar.rs diff --git a/src/test/ui/directory_ownership/macro_expanded_mod_helper/foo/mod.rs b/tests/ui/directory_ownership/macro_expanded_mod_helper/foo/mod.rs similarity index 100% rename from src/test/ui/directory_ownership/macro_expanded_mod_helper/foo/mod.rs rename to tests/ui/directory_ownership/macro_expanded_mod_helper/foo/mod.rs diff --git a/src/test/ui/directory_ownership/mod_file_not_owning_aux1.rs b/tests/ui/directory_ownership/mod_file_not_owning_aux1.rs similarity index 100% rename from src/test/ui/directory_ownership/mod_file_not_owning_aux1.rs rename to tests/ui/directory_ownership/mod_file_not_owning_aux1.rs diff --git a/src/test/ui/directory_ownership/mod_file_not_owning_aux1/compiletest-ignore-dir b/tests/ui/directory_ownership/mod_file_not_owning_aux1/compiletest-ignore-dir similarity index 100% rename from src/test/ui/directory_ownership/mod_file_not_owning_aux1/compiletest-ignore-dir rename to tests/ui/directory_ownership/mod_file_not_owning_aux1/compiletest-ignore-dir diff --git a/src/test/ui/directory_ownership/mod_file_not_owning_aux1/mod_file_not_owning_aux2.rs b/tests/ui/directory_ownership/mod_file_not_owning_aux1/mod_file_not_owning_aux2.rs similarity index 100% rename from src/test/ui/directory_ownership/mod_file_not_owning_aux1/mod_file_not_owning_aux2.rs rename to tests/ui/directory_ownership/mod_file_not_owning_aux1/mod_file_not_owning_aux2.rs diff --git a/src/test/ui/directory_ownership/mod_file_not_owning_aux2.rs b/tests/ui/directory_ownership/mod_file_not_owning_aux2.rs similarity index 100% rename from src/test/ui/directory_ownership/mod_file_not_owning_aux2.rs rename to tests/ui/directory_ownership/mod_file_not_owning_aux2.rs diff --git a/src/test/ui/directory_ownership/mod_file_not_owning_aux3.rs b/tests/ui/directory_ownership/mod_file_not_owning_aux3.rs similarity index 100% rename from src/test/ui/directory_ownership/mod_file_not_owning_aux3.rs rename to tests/ui/directory_ownership/mod_file_not_owning_aux3.rs diff --git a/src/test/ui/directory_ownership/non-inline-mod-restriction.rs b/tests/ui/directory_ownership/non-inline-mod-restriction.rs similarity index 100% rename from src/test/ui/directory_ownership/non-inline-mod-restriction.rs rename to tests/ui/directory_ownership/non-inline-mod-restriction.rs diff --git a/src/test/ui/directory_ownership/non-inline-mod-restriction.stderr b/tests/ui/directory_ownership/non-inline-mod-restriction.stderr similarity index 100% rename from src/test/ui/directory_ownership/non-inline-mod-restriction.stderr rename to tests/ui/directory_ownership/non-inline-mod-restriction.stderr diff --git a/src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.fixed b/tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.fixed similarity index 100% rename from src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.fixed rename to tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.fixed diff --git a/src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.rs b/tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.rs similarity index 100% rename from src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.rs rename to tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.rs diff --git a/src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.stderr b/tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.stderr similarity index 100% rename from src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.stderr rename to tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-let.stderr diff --git a/src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.fixed b/tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.fixed similarity index 100% rename from src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.fixed rename to tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.fixed diff --git a/src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.rs b/tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.rs similarity index 100% rename from src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.rs rename to tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.rs diff --git a/src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.stderr b/tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.stderr similarity index 100% rename from src/test/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.stderr rename to tests/ui/disallowed-deconstructing/disallowed-deconstructing-destructing-struct-match.stderr diff --git a/src/test/ui/disambiguate-identical-names.rs b/tests/ui/disambiguate-identical-names.rs similarity index 100% rename from src/test/ui/disambiguate-identical-names.rs rename to tests/ui/disambiguate-identical-names.rs diff --git a/src/test/ui/disambiguate-identical-names.stderr b/tests/ui/disambiguate-identical-names.stderr similarity index 100% rename from src/test/ui/disambiguate-identical-names.stderr rename to tests/ui/disambiguate-identical-names.stderr diff --git a/src/test/ui/discrim/discrim-ill-typed.rs b/tests/ui/discrim/discrim-ill-typed.rs similarity index 100% rename from src/test/ui/discrim/discrim-ill-typed.rs rename to tests/ui/discrim/discrim-ill-typed.rs diff --git a/src/test/ui/discrim/discrim-ill-typed.stderr b/tests/ui/discrim/discrim-ill-typed.stderr similarity index 100% rename from src/test/ui/discrim/discrim-ill-typed.stderr rename to tests/ui/discrim/discrim-ill-typed.stderr diff --git a/src/test/ui/discrim/discrim-overflow-2.rs b/tests/ui/discrim/discrim-overflow-2.rs similarity index 100% rename from src/test/ui/discrim/discrim-overflow-2.rs rename to tests/ui/discrim/discrim-overflow-2.rs diff --git a/src/test/ui/discrim/discrim-overflow-2.stderr b/tests/ui/discrim/discrim-overflow-2.stderr similarity index 100% rename from src/test/ui/discrim/discrim-overflow-2.stderr rename to tests/ui/discrim/discrim-overflow-2.stderr diff --git a/src/test/ui/discrim/discrim-overflow.rs b/tests/ui/discrim/discrim-overflow.rs similarity index 100% rename from src/test/ui/discrim/discrim-overflow.rs rename to tests/ui/discrim/discrim-overflow.rs diff --git a/src/test/ui/discrim/discrim-overflow.stderr b/tests/ui/discrim/discrim-overflow.stderr similarity index 100% rename from src/test/ui/discrim/discrim-overflow.stderr rename to tests/ui/discrim/discrim-overflow.stderr diff --git a/src/test/ui/diverging-fallback-method-chain.rs b/tests/ui/diverging-fallback-method-chain.rs similarity index 100% rename from src/test/ui/diverging-fallback-method-chain.rs rename to tests/ui/diverging-fallback-method-chain.rs diff --git a/src/test/ui/diverging-fallback-option.rs b/tests/ui/diverging-fallback-option.rs similarity index 100% rename from src/test/ui/diverging-fallback-option.rs rename to tests/ui/diverging-fallback-option.rs diff --git a/src/test/ui/diverging-fn-tail-35849.rs b/tests/ui/diverging-fn-tail-35849.rs similarity index 100% rename from src/test/ui/diverging-fn-tail-35849.rs rename to tests/ui/diverging-fn-tail-35849.rs diff --git a/src/test/ui/diverging-fn-tail-35849.stderr b/tests/ui/diverging-fn-tail-35849.stderr similarity index 100% rename from src/test/ui/diverging-fn-tail-35849.stderr rename to tests/ui/diverging-fn-tail-35849.stderr diff --git a/src/test/ui/does-nothing.rs b/tests/ui/does-nothing.rs similarity index 100% rename from src/test/ui/does-nothing.rs rename to tests/ui/does-nothing.rs diff --git a/src/test/ui/does-nothing.stderr b/tests/ui/does-nothing.stderr similarity index 100% rename from src/test/ui/does-nothing.stderr rename to tests/ui/does-nothing.stderr diff --git a/src/test/ui/dollar-crate/dollar-crate-is-keyword-2.rs b/tests/ui/dollar-crate/dollar-crate-is-keyword-2.rs similarity index 100% rename from src/test/ui/dollar-crate/dollar-crate-is-keyword-2.rs rename to tests/ui/dollar-crate/dollar-crate-is-keyword-2.rs diff --git a/src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr b/tests/ui/dollar-crate/dollar-crate-is-keyword-2.stderr similarity index 100% rename from src/test/ui/dollar-crate/dollar-crate-is-keyword-2.stderr rename to tests/ui/dollar-crate/dollar-crate-is-keyword-2.stderr diff --git a/src/test/ui/dollar-crate/dollar-crate-is-keyword.rs b/tests/ui/dollar-crate/dollar-crate-is-keyword.rs similarity index 100% rename from src/test/ui/dollar-crate/dollar-crate-is-keyword.rs rename to tests/ui/dollar-crate/dollar-crate-is-keyword.rs diff --git a/src/test/ui/dollar-crate/dollar-crate-is-keyword.stderr b/tests/ui/dollar-crate/dollar-crate-is-keyword.stderr similarity index 100% rename from src/test/ui/dollar-crate/dollar-crate-is-keyword.stderr rename to tests/ui/dollar-crate/dollar-crate-is-keyword.stderr diff --git a/src/test/ui/dont-suggest-private-trait-method.rs b/tests/ui/dont-suggest-private-trait-method.rs similarity index 100% rename from src/test/ui/dont-suggest-private-trait-method.rs rename to tests/ui/dont-suggest-private-trait-method.rs diff --git a/src/test/ui/dont-suggest-private-trait-method.stderr b/tests/ui/dont-suggest-private-trait-method.stderr similarity index 100% rename from src/test/ui/dont-suggest-private-trait-method.stderr rename to tests/ui/dont-suggest-private-trait-method.stderr diff --git a/src/test/ui/double-ref.rs b/tests/ui/double-ref.rs similarity index 100% rename from src/test/ui/double-ref.rs rename to tests/ui/double-ref.rs diff --git a/src/test/ui/double-type-import.rs b/tests/ui/double-type-import.rs similarity index 100% rename from src/test/ui/double-type-import.rs rename to tests/ui/double-type-import.rs diff --git a/src/test/ui/double-type-import.stderr b/tests/ui/double-type-import.stderr similarity index 100% rename from src/test/ui/double-type-import.stderr rename to tests/ui/double-type-import.stderr diff --git a/src/test/ui/drop-bounds/drop-bounds-impl-drop.rs b/tests/ui/drop-bounds/drop-bounds-impl-drop.rs similarity index 100% rename from src/test/ui/drop-bounds/drop-bounds-impl-drop.rs rename to tests/ui/drop-bounds/drop-bounds-impl-drop.rs diff --git a/src/test/ui/drop-bounds/drop-bounds.rs b/tests/ui/drop-bounds/drop-bounds.rs similarity index 100% rename from src/test/ui/drop-bounds/drop-bounds.rs rename to tests/ui/drop-bounds/drop-bounds.rs diff --git a/src/test/ui/drop-bounds/drop-bounds.stderr b/tests/ui/drop-bounds/drop-bounds.stderr similarity index 100% rename from src/test/ui/drop-bounds/drop-bounds.stderr rename to tests/ui/drop-bounds/drop-bounds.stderr diff --git a/src/test/ui/drop/auxiliary/dropck_eyepatch_extern_crate.rs b/tests/ui/drop/auxiliary/dropck_eyepatch_extern_crate.rs similarity index 100% rename from src/test/ui/drop/auxiliary/dropck_eyepatch_extern_crate.rs rename to tests/ui/drop/auxiliary/dropck_eyepatch_extern_crate.rs diff --git a/src/test/ui/drop/auxiliary/inline_dtor.rs b/tests/ui/drop/auxiliary/inline_dtor.rs similarity index 100% rename from src/test/ui/drop/auxiliary/inline_dtor.rs rename to tests/ui/drop/auxiliary/inline_dtor.rs diff --git a/src/test/ui/drop/auxiliary/issue-10028.rs b/tests/ui/drop/auxiliary/issue-10028.rs similarity index 100% rename from src/test/ui/drop/auxiliary/issue-10028.rs rename to tests/ui/drop/auxiliary/issue-10028.rs diff --git a/src/test/ui/drop/drop-foreign-fundamental.rs b/tests/ui/drop/drop-foreign-fundamental.rs similarity index 100% rename from src/test/ui/drop/drop-foreign-fundamental.rs rename to tests/ui/drop/drop-foreign-fundamental.rs diff --git a/src/test/ui/drop/drop-foreign-fundamental.stderr b/tests/ui/drop/drop-foreign-fundamental.stderr similarity index 100% rename from src/test/ui/drop/drop-foreign-fundamental.stderr rename to tests/ui/drop/drop-foreign-fundamental.stderr diff --git a/src/test/ui/drop/drop-if-let-binding.rs b/tests/ui/drop/drop-if-let-binding.rs similarity index 100% rename from src/test/ui/drop/drop-if-let-binding.rs rename to tests/ui/drop/drop-if-let-binding.rs diff --git a/src/test/ui/drop/drop-on-empty-block-exit.rs b/tests/ui/drop/drop-on-empty-block-exit.rs similarity index 100% rename from src/test/ui/drop/drop-on-empty-block-exit.rs rename to tests/ui/drop/drop-on-empty-block-exit.rs diff --git a/src/test/ui/drop/drop-on-ret.rs b/tests/ui/drop/drop-on-ret.rs similarity index 100% rename from src/test/ui/drop/drop-on-ret.rs rename to tests/ui/drop/drop-on-ret.rs diff --git a/src/test/ui/drop/drop-struct-as-object.rs b/tests/ui/drop/drop-struct-as-object.rs similarity index 100% rename from src/test/ui/drop/drop-struct-as-object.rs rename to tests/ui/drop/drop-struct-as-object.rs diff --git a/src/test/ui/drop/drop-trait-enum.rs b/tests/ui/drop/drop-trait-enum.rs similarity index 100% rename from src/test/ui/drop/drop-trait-enum.rs rename to tests/ui/drop/drop-trait-enum.rs diff --git a/src/test/ui/drop/drop-trait-generic.rs b/tests/ui/drop/drop-trait-generic.rs similarity index 100% rename from src/test/ui/drop/drop-trait-generic.rs rename to tests/ui/drop/drop-trait-generic.rs diff --git a/src/test/ui/drop/drop-trait.rs b/tests/ui/drop/drop-trait.rs similarity index 100% rename from src/test/ui/drop/drop-trait.rs rename to tests/ui/drop/drop-trait.rs diff --git a/src/test/ui/drop/drop-uninhabited-enum.rs b/tests/ui/drop/drop-uninhabited-enum.rs similarity index 100% rename from src/test/ui/drop/drop-uninhabited-enum.rs rename to tests/ui/drop/drop-uninhabited-enum.rs diff --git a/src/test/ui/drop/drop-with-type-ascription-1.rs b/tests/ui/drop/drop-with-type-ascription-1.rs similarity index 100% rename from src/test/ui/drop/drop-with-type-ascription-1.rs rename to tests/ui/drop/drop-with-type-ascription-1.rs diff --git a/src/test/ui/drop/drop-with-type-ascription-2.rs b/tests/ui/drop/drop-with-type-ascription-2.rs similarity index 100% rename from src/test/ui/drop/drop-with-type-ascription-2.rs rename to tests/ui/drop/drop-with-type-ascription-2.rs diff --git a/src/test/ui/drop/drop_order.rs b/tests/ui/drop/drop_order.rs similarity index 100% rename from src/test/ui/drop/drop_order.rs rename to tests/ui/drop/drop_order.rs diff --git a/src/test/ui/drop/dropck-eyepatch-extern-crate.rs b/tests/ui/drop/dropck-eyepatch-extern-crate.rs similarity index 100% rename from src/test/ui/drop/dropck-eyepatch-extern-crate.rs rename to tests/ui/drop/dropck-eyepatch-extern-crate.rs diff --git a/src/test/ui/drop/dropck-eyepatch-reorder.rs b/tests/ui/drop/dropck-eyepatch-reorder.rs similarity index 100% rename from src/test/ui/drop/dropck-eyepatch-reorder.rs rename to tests/ui/drop/dropck-eyepatch-reorder.rs diff --git a/src/test/ui/drop/dropck-eyepatch.rs b/tests/ui/drop/dropck-eyepatch.rs similarity index 100% rename from src/test/ui/drop/dropck-eyepatch.rs rename to tests/ui/drop/dropck-eyepatch.rs diff --git a/src/test/ui/drop/dropck_legal_cycles.rs b/tests/ui/drop/dropck_legal_cycles.rs similarity index 100% rename from src/test/ui/drop/dropck_legal_cycles.rs rename to tests/ui/drop/dropck_legal_cycles.rs diff --git a/src/test/ui/drop/dynamic-drop-async.rs b/tests/ui/drop/dynamic-drop-async.rs similarity index 100% rename from src/test/ui/drop/dynamic-drop-async.rs rename to tests/ui/drop/dynamic-drop-async.rs diff --git a/src/test/ui/drop/dynamic-drop.rs b/tests/ui/drop/dynamic-drop.rs similarity index 100% rename from src/test/ui/drop/dynamic-drop.rs rename to tests/ui/drop/dynamic-drop.rs diff --git a/src/test/ui/drop/issue-100276.rs b/tests/ui/drop/issue-100276.rs similarity index 100% rename from src/test/ui/drop/issue-100276.rs rename to tests/ui/drop/issue-100276.rs diff --git a/src/test/ui/drop/issue-10028.rs b/tests/ui/drop/issue-10028.rs similarity index 100% rename from src/test/ui/drop/issue-10028.rs rename to tests/ui/drop/issue-10028.rs diff --git a/src/test/ui/drop/issue-103107.rs b/tests/ui/drop/issue-103107.rs similarity index 100% rename from src/test/ui/drop/issue-103107.rs rename to tests/ui/drop/issue-103107.rs diff --git a/src/test/ui/drop/issue-17718-const-destructors.rs b/tests/ui/drop/issue-17718-const-destructors.rs similarity index 100% rename from src/test/ui/drop/issue-17718-const-destructors.rs rename to tests/ui/drop/issue-17718-const-destructors.rs diff --git a/src/test/ui/drop/issue-21486.rs b/tests/ui/drop/issue-21486.rs similarity index 100% rename from src/test/ui/drop/issue-21486.rs rename to tests/ui/drop/issue-21486.rs diff --git a/src/test/ui/drop/issue-23338-ensure-param-drop-order.rs b/tests/ui/drop/issue-23338-ensure-param-drop-order.rs similarity index 100% rename from src/test/ui/drop/issue-23338-ensure-param-drop-order.rs rename to tests/ui/drop/issue-23338-ensure-param-drop-order.rs diff --git a/src/test/ui/drop/issue-2734.rs b/tests/ui/drop/issue-2734.rs similarity index 100% rename from src/test/ui/drop/issue-2734.rs rename to tests/ui/drop/issue-2734.rs diff --git a/src/test/ui/drop/issue-30018-nopanic.rs b/tests/ui/drop/issue-30018-nopanic.rs similarity index 100% rename from src/test/ui/drop/issue-30018-nopanic.rs rename to tests/ui/drop/issue-30018-nopanic.rs diff --git a/src/test/ui/drop/issue-35546.rs b/tests/ui/drop/issue-35546.rs similarity index 100% rename from src/test/ui/drop/issue-35546.rs rename to tests/ui/drop/issue-35546.rs diff --git a/src/test/ui/drop/issue-48962.rs b/tests/ui/drop/issue-48962.rs similarity index 100% rename from src/test/ui/drop/issue-48962.rs rename to tests/ui/drop/issue-48962.rs diff --git a/src/test/ui/drop/issue-90752-raw-ptr-shenanigans.rs b/tests/ui/drop/issue-90752-raw-ptr-shenanigans.rs similarity index 100% rename from src/test/ui/drop/issue-90752-raw-ptr-shenanigans.rs rename to tests/ui/drop/issue-90752-raw-ptr-shenanigans.rs diff --git a/src/test/ui/drop/issue-90752.rs b/tests/ui/drop/issue-90752.rs similarity index 100% rename from src/test/ui/drop/issue-90752.rs rename to tests/ui/drop/issue-90752.rs diff --git a/src/test/ui/drop/no-drop-flag-size.rs b/tests/ui/drop/no-drop-flag-size.rs similarity index 100% rename from src/test/ui/drop/no-drop-flag-size.rs rename to tests/ui/drop/no-drop-flag-size.rs diff --git a/src/test/ui/drop/nondrop-cycle.rs b/tests/ui/drop/nondrop-cycle.rs similarity index 100% rename from src/test/ui/drop/nondrop-cycle.rs rename to tests/ui/drop/nondrop-cycle.rs diff --git a/src/test/ui/drop/repeat-drop-2.rs b/tests/ui/drop/repeat-drop-2.rs similarity index 100% rename from src/test/ui/drop/repeat-drop-2.rs rename to tests/ui/drop/repeat-drop-2.rs diff --git a/src/test/ui/drop/repeat-drop-2.stderr b/tests/ui/drop/repeat-drop-2.stderr similarity index 100% rename from src/test/ui/drop/repeat-drop-2.stderr rename to tests/ui/drop/repeat-drop-2.stderr diff --git a/src/test/ui/drop/repeat-drop.rs b/tests/ui/drop/repeat-drop.rs similarity index 100% rename from src/test/ui/drop/repeat-drop.rs rename to tests/ui/drop/repeat-drop.rs diff --git a/src/test/ui/drop/terminate-in-initializer.rs b/tests/ui/drop/terminate-in-initializer.rs similarity index 100% rename from src/test/ui/drop/terminate-in-initializer.rs rename to tests/ui/drop/terminate-in-initializer.rs diff --git a/src/test/ui/drop/use_inline_dtor.rs b/tests/ui/drop/use_inline_dtor.rs similarity index 100% rename from src/test/ui/drop/use_inline_dtor.rs rename to tests/ui/drop/use_inline_dtor.rs diff --git a/src/test/ui/dropck/auxiliary/dropck_eyepatch_extern_crate.rs b/tests/ui/dropck/auxiliary/dropck_eyepatch_extern_crate.rs similarity index 100% rename from src/test/ui/dropck/auxiliary/dropck_eyepatch_extern_crate.rs rename to tests/ui/dropck/auxiliary/dropck_eyepatch_extern_crate.rs diff --git a/src/test/ui/dropck/cleanup-arm-conditional.rs b/tests/ui/dropck/cleanup-arm-conditional.rs similarity index 100% rename from src/test/ui/dropck/cleanup-arm-conditional.rs rename to tests/ui/dropck/cleanup-arm-conditional.rs diff --git a/src/test/ui/dropck/drop-on-non-struct.rs b/tests/ui/dropck/drop-on-non-struct.rs similarity index 100% rename from src/test/ui/dropck/drop-on-non-struct.rs rename to tests/ui/dropck/drop-on-non-struct.rs diff --git a/src/test/ui/dropck/drop-on-non-struct.stderr b/tests/ui/dropck/drop-on-non-struct.stderr similarity index 100% rename from src/test/ui/dropck/drop-on-non-struct.stderr rename to tests/ui/dropck/drop-on-non-struct.stderr diff --git a/src/test/ui/dropck/drop-with-active-borrows-1.rs b/tests/ui/dropck/drop-with-active-borrows-1.rs similarity index 100% rename from src/test/ui/dropck/drop-with-active-borrows-1.rs rename to tests/ui/dropck/drop-with-active-borrows-1.rs diff --git a/src/test/ui/dropck/drop-with-active-borrows-1.stderr b/tests/ui/dropck/drop-with-active-borrows-1.stderr similarity index 100% rename from src/test/ui/dropck/drop-with-active-borrows-1.stderr rename to tests/ui/dropck/drop-with-active-borrows-1.stderr diff --git a/src/test/ui/dropck/drop-with-active-borrows-2.rs b/tests/ui/dropck/drop-with-active-borrows-2.rs similarity index 100% rename from src/test/ui/dropck/drop-with-active-borrows-2.rs rename to tests/ui/dropck/drop-with-active-borrows-2.rs diff --git a/src/test/ui/dropck/drop-with-active-borrows-2.stderr b/tests/ui/dropck/drop-with-active-borrows-2.stderr similarity index 100% rename from src/test/ui/dropck/drop-with-active-borrows-2.stderr rename to tests/ui/dropck/drop-with-active-borrows-2.stderr diff --git a/src/test/ui/dropck/dropck-eyepatch-extern-crate.rs b/tests/ui/dropck/dropck-eyepatch-extern-crate.rs similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch-extern-crate.rs rename to tests/ui/dropck/dropck-eyepatch-extern-crate.rs diff --git a/src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr b/tests/ui/dropck/dropck-eyepatch-extern-crate.stderr similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch-extern-crate.stderr rename to tests/ui/dropck/dropck-eyepatch-extern-crate.stderr diff --git a/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.rs b/tests/ui/dropck/dropck-eyepatch-implies-unsafe-impl.rs similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.rs rename to tests/ui/dropck/dropck-eyepatch-implies-unsafe-impl.rs diff --git a/src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr b/tests/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr rename to tests/ui/dropck/dropck-eyepatch-implies-unsafe-impl.stderr diff --git a/src/test/ui/dropck/dropck-eyepatch-reorder.rs b/tests/ui/dropck/dropck-eyepatch-reorder.rs similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch-reorder.rs rename to tests/ui/dropck/dropck-eyepatch-reorder.rs diff --git a/src/test/ui/dropck/dropck-eyepatch-reorder.stderr b/tests/ui/dropck/dropck-eyepatch-reorder.stderr similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch-reorder.stderr rename to tests/ui/dropck/dropck-eyepatch-reorder.stderr diff --git a/src/test/ui/dropck/dropck-eyepatch.rs b/tests/ui/dropck/dropck-eyepatch.rs similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch.rs rename to tests/ui/dropck/dropck-eyepatch.rs diff --git a/src/test/ui/dropck/dropck-eyepatch.stderr b/tests/ui/dropck/dropck-eyepatch.stderr similarity index 100% rename from src/test/ui/dropck/dropck-eyepatch.stderr rename to tests/ui/dropck/dropck-eyepatch.stderr diff --git a/src/test/ui/dropck/dropck-union.rs b/tests/ui/dropck/dropck-union.rs similarity index 100% rename from src/test/ui/dropck/dropck-union.rs rename to tests/ui/dropck/dropck-union.rs diff --git a/src/test/ui/dropck/dropck-union.stderr b/tests/ui/dropck/dropck-union.stderr similarity index 100% rename from src/test/ui/dropck/dropck-union.stderr rename to tests/ui/dropck/dropck-union.stderr diff --git a/src/test/ui/dropck/dropck_fn_type.rs b/tests/ui/dropck/dropck_fn_type.rs similarity index 100% rename from src/test/ui/dropck/dropck_fn_type.rs rename to tests/ui/dropck/dropck_fn_type.rs diff --git a/src/test/ui/dropck/dropck_no_diverge_on_nonregular_1.rs b/tests/ui/dropck/dropck_no_diverge_on_nonregular_1.rs similarity index 100% rename from src/test/ui/dropck/dropck_no_diverge_on_nonregular_1.rs rename to tests/ui/dropck/dropck_no_diverge_on_nonregular_1.rs diff --git a/src/test/ui/dropck/dropck_no_diverge_on_nonregular_1.stderr b/tests/ui/dropck/dropck_no_diverge_on_nonregular_1.stderr similarity index 100% rename from src/test/ui/dropck/dropck_no_diverge_on_nonregular_1.stderr rename to tests/ui/dropck/dropck_no_diverge_on_nonregular_1.stderr diff --git a/src/test/ui/dropck/dropck_no_diverge_on_nonregular_2.rs b/tests/ui/dropck/dropck_no_diverge_on_nonregular_2.rs similarity index 100% rename from src/test/ui/dropck/dropck_no_diverge_on_nonregular_2.rs rename to tests/ui/dropck/dropck_no_diverge_on_nonregular_2.rs diff --git a/src/test/ui/dropck/dropck_no_diverge_on_nonregular_2.stderr b/tests/ui/dropck/dropck_no_diverge_on_nonregular_2.stderr similarity index 100% rename from src/test/ui/dropck/dropck_no_diverge_on_nonregular_2.stderr rename to tests/ui/dropck/dropck_no_diverge_on_nonregular_2.stderr diff --git a/src/test/ui/dropck/dropck_no_diverge_on_nonregular_3.rs b/tests/ui/dropck/dropck_no_diverge_on_nonregular_3.rs similarity index 100% rename from src/test/ui/dropck/dropck_no_diverge_on_nonregular_3.rs rename to tests/ui/dropck/dropck_no_diverge_on_nonregular_3.rs diff --git a/src/test/ui/dropck/dropck_no_diverge_on_nonregular_3.stderr b/tests/ui/dropck/dropck_no_diverge_on_nonregular_3.stderr similarity index 100% rename from src/test/ui/dropck/dropck_no_diverge_on_nonregular_3.stderr rename to tests/ui/dropck/dropck_no_diverge_on_nonregular_3.stderr diff --git a/src/test/ui/dropck/dropck_trait_cycle_checked.rs b/tests/ui/dropck/dropck_trait_cycle_checked.rs similarity index 100% rename from src/test/ui/dropck/dropck_trait_cycle_checked.rs rename to tests/ui/dropck/dropck_trait_cycle_checked.rs diff --git a/src/test/ui/dropck/dropck_trait_cycle_checked.stderr b/tests/ui/dropck/dropck_trait_cycle_checked.stderr similarity index 100% rename from src/test/ui/dropck/dropck_trait_cycle_checked.stderr rename to tests/ui/dropck/dropck_trait_cycle_checked.stderr diff --git a/src/test/ui/dropck/dropck_traits.rs b/tests/ui/dropck/dropck_traits.rs similarity index 100% rename from src/test/ui/dropck/dropck_traits.rs rename to tests/ui/dropck/dropck_traits.rs diff --git a/src/test/ui/dropck/issue-24805-dropck-itemless.rs b/tests/ui/dropck/issue-24805-dropck-itemless.rs similarity index 100% rename from src/test/ui/dropck/issue-24805-dropck-itemless.rs rename to tests/ui/dropck/issue-24805-dropck-itemless.rs diff --git a/src/test/ui/dropck/issue-28498-ugeh-with-lifetime-param.rs b/tests/ui/dropck/issue-28498-ugeh-with-lifetime-param.rs similarity index 100% rename from src/test/ui/dropck/issue-28498-ugeh-with-lifetime-param.rs rename to tests/ui/dropck/issue-28498-ugeh-with-lifetime-param.rs diff --git a/src/test/ui/dropck/issue-28498-ugeh-with-passed-to-fn.rs b/tests/ui/dropck/issue-28498-ugeh-with-passed-to-fn.rs similarity index 100% rename from src/test/ui/dropck/issue-28498-ugeh-with-passed-to-fn.rs rename to tests/ui/dropck/issue-28498-ugeh-with-passed-to-fn.rs diff --git a/src/test/ui/dropck/issue-28498-ugeh-with-trait-bound.rs b/tests/ui/dropck/issue-28498-ugeh-with-trait-bound.rs similarity index 100% rename from src/test/ui/dropck/issue-28498-ugeh-with-trait-bound.rs rename to tests/ui/dropck/issue-28498-ugeh-with-trait-bound.rs diff --git a/src/test/ui/dropck/issue-29844.rs b/tests/ui/dropck/issue-29844.rs similarity index 100% rename from src/test/ui/dropck/issue-29844.rs rename to tests/ui/dropck/issue-29844.rs diff --git a/src/test/ui/dropck/issue-34053.rs b/tests/ui/dropck/issue-34053.rs similarity index 100% rename from src/test/ui/dropck/issue-34053.rs rename to tests/ui/dropck/issue-34053.rs diff --git a/src/test/ui/dropck/issue-38868.rs b/tests/ui/dropck/issue-38868.rs similarity index 100% rename from src/test/ui/dropck/issue-38868.rs rename to tests/ui/dropck/issue-38868.rs diff --git a/src/test/ui/dropck/issue-38868.stderr b/tests/ui/dropck/issue-38868.stderr similarity index 100% rename from src/test/ui/dropck/issue-38868.stderr rename to tests/ui/dropck/issue-38868.stderr diff --git a/src/test/ui/dropck/issue-54943-1.rs b/tests/ui/dropck/issue-54943-1.rs similarity index 100% rename from src/test/ui/dropck/issue-54943-1.rs rename to tests/ui/dropck/issue-54943-1.rs diff --git a/src/test/ui/dropck/issue-54943-2.rs b/tests/ui/dropck/issue-54943-2.rs similarity index 100% rename from src/test/ui/dropck/issue-54943-2.rs rename to tests/ui/dropck/issue-54943-2.rs diff --git a/src/test/ui/dropck/reject-specialized-drops-8142.rs b/tests/ui/dropck/reject-specialized-drops-8142.rs similarity index 100% rename from src/test/ui/dropck/reject-specialized-drops-8142.rs rename to tests/ui/dropck/reject-specialized-drops-8142.rs diff --git a/src/test/ui/dropck/reject-specialized-drops-8142.stderr b/tests/ui/dropck/reject-specialized-drops-8142.stderr similarity index 100% rename from src/test/ui/dropck/reject-specialized-drops-8142.stderr rename to tests/ui/dropck/reject-specialized-drops-8142.stderr diff --git a/src/test/ui/dropck/relate_lt_in_type_outlives_bound.rs b/tests/ui/dropck/relate_lt_in_type_outlives_bound.rs similarity index 100% rename from src/test/ui/dropck/relate_lt_in_type_outlives_bound.rs rename to tests/ui/dropck/relate_lt_in_type_outlives_bound.rs diff --git a/src/test/ui/dropck/relate_lt_in_type_outlives_bound.stderr b/tests/ui/dropck/relate_lt_in_type_outlives_bound.stderr similarity index 100% rename from src/test/ui/dropck/relate_lt_in_type_outlives_bound.stderr rename to tests/ui/dropck/relate_lt_in_type_outlives_bound.stderr diff --git a/src/test/ui/dst/dst-bad-assign-2.rs b/tests/ui/dst/dst-bad-assign-2.rs similarity index 100% rename from src/test/ui/dst/dst-bad-assign-2.rs rename to tests/ui/dst/dst-bad-assign-2.rs diff --git a/src/test/ui/dst/dst-bad-assign-2.stderr b/tests/ui/dst/dst-bad-assign-2.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-assign-2.stderr rename to tests/ui/dst/dst-bad-assign-2.stderr diff --git a/src/test/ui/dst/dst-bad-assign-3.rs b/tests/ui/dst/dst-bad-assign-3.rs similarity index 100% rename from src/test/ui/dst/dst-bad-assign-3.rs rename to tests/ui/dst/dst-bad-assign-3.rs diff --git a/src/test/ui/dst/dst-bad-assign-3.stderr b/tests/ui/dst/dst-bad-assign-3.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-assign-3.stderr rename to tests/ui/dst/dst-bad-assign-3.stderr diff --git a/src/test/ui/dst/dst-bad-assign.rs b/tests/ui/dst/dst-bad-assign.rs similarity index 100% rename from src/test/ui/dst/dst-bad-assign.rs rename to tests/ui/dst/dst-bad-assign.rs diff --git a/src/test/ui/dst/dst-bad-assign.stderr b/tests/ui/dst/dst-bad-assign.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-assign.stderr rename to tests/ui/dst/dst-bad-assign.stderr diff --git a/src/test/ui/dst/dst-bad-coerce1.rs b/tests/ui/dst/dst-bad-coerce1.rs similarity index 100% rename from src/test/ui/dst/dst-bad-coerce1.rs rename to tests/ui/dst/dst-bad-coerce1.rs diff --git a/src/test/ui/dst/dst-bad-coerce1.stderr b/tests/ui/dst/dst-bad-coerce1.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-coerce1.stderr rename to tests/ui/dst/dst-bad-coerce1.stderr diff --git a/src/test/ui/dst/dst-bad-coerce2.rs b/tests/ui/dst/dst-bad-coerce2.rs similarity index 100% rename from src/test/ui/dst/dst-bad-coerce2.rs rename to tests/ui/dst/dst-bad-coerce2.rs diff --git a/src/test/ui/dst/dst-bad-coerce2.stderr b/tests/ui/dst/dst-bad-coerce2.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-coerce2.stderr rename to tests/ui/dst/dst-bad-coerce2.stderr diff --git a/src/test/ui/dst/dst-bad-coerce3.rs b/tests/ui/dst/dst-bad-coerce3.rs similarity index 100% rename from src/test/ui/dst/dst-bad-coerce3.rs rename to tests/ui/dst/dst-bad-coerce3.rs diff --git a/src/test/ui/dst/dst-bad-coerce3.stderr b/tests/ui/dst/dst-bad-coerce3.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-coerce3.stderr rename to tests/ui/dst/dst-bad-coerce3.stderr diff --git a/src/test/ui/dst/dst-bad-coerce4.rs b/tests/ui/dst/dst-bad-coerce4.rs similarity index 100% rename from src/test/ui/dst/dst-bad-coerce4.rs rename to tests/ui/dst/dst-bad-coerce4.rs diff --git a/src/test/ui/dst/dst-bad-coerce4.stderr b/tests/ui/dst/dst-bad-coerce4.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-coerce4.stderr rename to tests/ui/dst/dst-bad-coerce4.stderr diff --git a/src/test/ui/dst/dst-bad-coercions.rs b/tests/ui/dst/dst-bad-coercions.rs similarity index 100% rename from src/test/ui/dst/dst-bad-coercions.rs rename to tests/ui/dst/dst-bad-coercions.rs diff --git a/src/test/ui/dst/dst-bad-coercions.stderr b/tests/ui/dst/dst-bad-coercions.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-coercions.stderr rename to tests/ui/dst/dst-bad-coercions.stderr diff --git a/src/test/ui/dst/dst-bad-deep-2.rs b/tests/ui/dst/dst-bad-deep-2.rs similarity index 100% rename from src/test/ui/dst/dst-bad-deep-2.rs rename to tests/ui/dst/dst-bad-deep-2.rs diff --git a/src/test/ui/dst/dst-bad-deep-2.stderr b/tests/ui/dst/dst-bad-deep-2.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-deep-2.stderr rename to tests/ui/dst/dst-bad-deep-2.stderr diff --git a/src/test/ui/dst/dst-bad-deep.rs b/tests/ui/dst/dst-bad-deep.rs similarity index 100% rename from src/test/ui/dst/dst-bad-deep.rs rename to tests/ui/dst/dst-bad-deep.rs diff --git a/src/test/ui/dst/dst-bad-deep.stderr b/tests/ui/dst/dst-bad-deep.stderr similarity index 100% rename from src/test/ui/dst/dst-bad-deep.stderr rename to tests/ui/dst/dst-bad-deep.stderr diff --git a/src/test/ui/dst/dst-index.rs b/tests/ui/dst/dst-index.rs similarity index 100% rename from src/test/ui/dst/dst-index.rs rename to tests/ui/dst/dst-index.rs diff --git a/src/test/ui/dst/dst-index.stderr b/tests/ui/dst/dst-index.stderr similarity index 100% rename from src/test/ui/dst/dst-index.stderr rename to tests/ui/dst/dst-index.stderr diff --git a/src/test/ui/dst/dst-object-from-unsized-type.rs b/tests/ui/dst/dst-object-from-unsized-type.rs similarity index 100% rename from src/test/ui/dst/dst-object-from-unsized-type.rs rename to tests/ui/dst/dst-object-from-unsized-type.rs diff --git a/src/test/ui/dst/dst-object-from-unsized-type.stderr b/tests/ui/dst/dst-object-from-unsized-type.stderr similarity index 100% rename from src/test/ui/dst/dst-object-from-unsized-type.stderr rename to tests/ui/dst/dst-object-from-unsized-type.stderr diff --git a/src/test/ui/dst/dst-rvalue.rs b/tests/ui/dst/dst-rvalue.rs similarity index 100% rename from src/test/ui/dst/dst-rvalue.rs rename to tests/ui/dst/dst-rvalue.rs diff --git a/src/test/ui/dst/dst-rvalue.stderr b/tests/ui/dst/dst-rvalue.stderr similarity index 100% rename from src/test/ui/dst/dst-rvalue.stderr rename to tests/ui/dst/dst-rvalue.stderr diff --git a/src/test/ui/dst/dst-sized-trait-param.rs b/tests/ui/dst/dst-sized-trait-param.rs similarity index 100% rename from src/test/ui/dst/dst-sized-trait-param.rs rename to tests/ui/dst/dst-sized-trait-param.rs diff --git a/src/test/ui/dst/dst-sized-trait-param.stderr b/tests/ui/dst/dst-sized-trait-param.stderr similarity index 100% rename from src/test/ui/dst/dst-sized-trait-param.stderr rename to tests/ui/dst/dst-sized-trait-param.stderr diff --git a/src/test/ui/dupe-first-attr.rc b/tests/ui/dupe-first-attr.rc similarity index 100% rename from src/test/ui/dupe-first-attr.rc rename to tests/ui/dupe-first-attr.rc diff --git a/src/test/ui/duplicate/dupe-symbols-1.rs b/tests/ui/duplicate/dupe-symbols-1.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-1.rs rename to tests/ui/duplicate/dupe-symbols-1.rs diff --git a/src/test/ui/duplicate/dupe-symbols-1.stderr b/tests/ui/duplicate/dupe-symbols-1.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-1.stderr rename to tests/ui/duplicate/dupe-symbols-1.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-2.rs b/tests/ui/duplicate/dupe-symbols-2.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-2.rs rename to tests/ui/duplicate/dupe-symbols-2.rs diff --git a/src/test/ui/duplicate/dupe-symbols-2.stderr b/tests/ui/duplicate/dupe-symbols-2.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-2.stderr rename to tests/ui/duplicate/dupe-symbols-2.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-3.rs b/tests/ui/duplicate/dupe-symbols-3.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-3.rs rename to tests/ui/duplicate/dupe-symbols-3.rs diff --git a/src/test/ui/duplicate/dupe-symbols-3.stderr b/tests/ui/duplicate/dupe-symbols-3.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-3.stderr rename to tests/ui/duplicate/dupe-symbols-3.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-4.rs b/tests/ui/duplicate/dupe-symbols-4.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-4.rs rename to tests/ui/duplicate/dupe-symbols-4.rs diff --git a/src/test/ui/duplicate/dupe-symbols-4.stderr b/tests/ui/duplicate/dupe-symbols-4.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-4.stderr rename to tests/ui/duplicate/dupe-symbols-4.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-5.rs b/tests/ui/duplicate/dupe-symbols-5.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-5.rs rename to tests/ui/duplicate/dupe-symbols-5.rs diff --git a/src/test/ui/duplicate/dupe-symbols-5.stderr b/tests/ui/duplicate/dupe-symbols-5.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-5.stderr rename to tests/ui/duplicate/dupe-symbols-5.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-6.rs b/tests/ui/duplicate/dupe-symbols-6.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-6.rs rename to tests/ui/duplicate/dupe-symbols-6.rs diff --git a/src/test/ui/duplicate/dupe-symbols-6.stderr b/tests/ui/duplicate/dupe-symbols-6.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-6.stderr rename to tests/ui/duplicate/dupe-symbols-6.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-7.rs b/tests/ui/duplicate/dupe-symbols-7.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-7.rs rename to tests/ui/duplicate/dupe-symbols-7.rs diff --git a/src/test/ui/duplicate/dupe-symbols-7.stderr b/tests/ui/duplicate/dupe-symbols-7.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-7.stderr rename to tests/ui/duplicate/dupe-symbols-7.stderr diff --git a/src/test/ui/duplicate/dupe-symbols-8.rs b/tests/ui/duplicate/dupe-symbols-8.rs similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-8.rs rename to tests/ui/duplicate/dupe-symbols-8.rs diff --git a/src/test/ui/duplicate/dupe-symbols-8.stderr b/tests/ui/duplicate/dupe-symbols-8.stderr similarity index 100% rename from src/test/ui/duplicate/dupe-symbols-8.stderr rename to tests/ui/duplicate/dupe-symbols-8.stderr diff --git a/src/test/ui/duplicate/duplicate-check-macro-exports.rs b/tests/ui/duplicate/duplicate-check-macro-exports.rs similarity index 100% rename from src/test/ui/duplicate/duplicate-check-macro-exports.rs rename to tests/ui/duplicate/duplicate-check-macro-exports.rs diff --git a/src/test/ui/duplicate/duplicate-check-macro-exports.stderr b/tests/ui/duplicate/duplicate-check-macro-exports.stderr similarity index 100% rename from src/test/ui/duplicate/duplicate-check-macro-exports.stderr rename to tests/ui/duplicate/duplicate-check-macro-exports.stderr diff --git a/src/test/ui/duplicate/duplicate-parameter.rs b/tests/ui/duplicate/duplicate-parameter.rs similarity index 100% rename from src/test/ui/duplicate/duplicate-parameter.rs rename to tests/ui/duplicate/duplicate-parameter.rs diff --git a/src/test/ui/duplicate/duplicate-parameter.stderr b/tests/ui/duplicate/duplicate-parameter.stderr similarity index 100% rename from src/test/ui/duplicate/duplicate-parameter.stderr rename to tests/ui/duplicate/duplicate-parameter.stderr diff --git a/src/test/ui/duplicate/duplicate-type-parameter.rs b/tests/ui/duplicate/duplicate-type-parameter.rs similarity index 100% rename from src/test/ui/duplicate/duplicate-type-parameter.rs rename to tests/ui/duplicate/duplicate-type-parameter.rs diff --git a/src/test/ui/duplicate/duplicate-type-parameter.stderr b/tests/ui/duplicate/duplicate-type-parameter.stderr similarity index 100% rename from src/test/ui/duplicate/duplicate-type-parameter.stderr rename to tests/ui/duplicate/duplicate-type-parameter.stderr diff --git a/src/test/ui/duplicate_entry_error.rs b/tests/ui/duplicate_entry_error.rs similarity index 100% rename from src/test/ui/duplicate_entry_error.rs rename to tests/ui/duplicate_entry_error.rs diff --git a/src/test/ui/duplicate_entry_error.stderr b/tests/ui/duplicate_entry_error.stderr similarity index 100% rename from src/test/ui/duplicate_entry_error.stderr rename to tests/ui/duplicate_entry_error.stderr diff --git a/src/test/ui/dyn-drop/dyn-drop.rs b/tests/ui/dyn-drop/dyn-drop.rs similarity index 100% rename from src/test/ui/dyn-drop/dyn-drop.rs rename to tests/ui/dyn-drop/dyn-drop.rs diff --git a/src/test/ui/dyn-drop/dyn-drop.stderr b/tests/ui/dyn-drop/dyn-drop.stderr similarity index 100% rename from src/test/ui/dyn-drop/dyn-drop.stderr rename to tests/ui/dyn-drop/dyn-drop.stderr diff --git a/src/test/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.fixed b/tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.fixed similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.fixed rename to tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.fixed diff --git a/src/test/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.rs b/tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.rs rename to tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.rs diff --git a/src/test/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.stderr b/tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.stderr similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.stderr rename to tests/ui/dyn-keyword/dyn-2015-edition-keyword-ident-lint.stderr diff --git a/src/test/ui/dyn-keyword/dyn-2015-idents-in-decl-macros-unlinted.rs b/tests/ui/dyn-keyword/dyn-2015-idents-in-decl-macros-unlinted.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2015-idents-in-decl-macros-unlinted.rs rename to tests/ui/dyn-keyword/dyn-2015-idents-in-decl-macros-unlinted.rs diff --git a/src/test/ui/dyn-keyword/dyn-2015-idents-in-macros-unlinted.rs b/tests/ui/dyn-keyword/dyn-2015-idents-in-macros-unlinted.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2015-idents-in-macros-unlinted.rs rename to tests/ui/dyn-keyword/dyn-2015-idents-in-macros-unlinted.rs diff --git a/src/test/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs b/tests/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs rename to tests/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs diff --git a/src/test/ui/dyn-keyword/dyn-2018-edition-lint.rs b/tests/ui/dyn-keyword/dyn-2018-edition-lint.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2018-edition-lint.rs rename to tests/ui/dyn-keyword/dyn-2018-edition-lint.rs diff --git a/src/test/ui/dyn-keyword/dyn-2018-edition-lint.stderr b/tests/ui/dyn-keyword/dyn-2018-edition-lint.stderr similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2018-edition-lint.stderr rename to tests/ui/dyn-keyword/dyn-2018-edition-lint.stderr diff --git a/src/test/ui/dyn-keyword/dyn-2021-edition-error.rs b/tests/ui/dyn-keyword/dyn-2021-edition-error.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2021-edition-error.rs rename to tests/ui/dyn-keyword/dyn-2021-edition-error.rs diff --git a/src/test/ui/dyn-keyword/dyn-2021-edition-error.stderr b/tests/ui/dyn-keyword/dyn-2021-edition-error.stderr similarity index 100% rename from src/test/ui/dyn-keyword/dyn-2021-edition-error.stderr rename to tests/ui/dyn-keyword/dyn-2021-edition-error.stderr diff --git a/src/test/ui/dyn-keyword/dyn-angle-brackets.fixed b/tests/ui/dyn-keyword/dyn-angle-brackets.fixed similarity index 100% rename from src/test/ui/dyn-keyword/dyn-angle-brackets.fixed rename to tests/ui/dyn-keyword/dyn-angle-brackets.fixed diff --git a/src/test/ui/dyn-keyword/dyn-angle-brackets.rs b/tests/ui/dyn-keyword/dyn-angle-brackets.rs similarity index 100% rename from src/test/ui/dyn-keyword/dyn-angle-brackets.rs rename to tests/ui/dyn-keyword/dyn-angle-brackets.rs diff --git a/src/test/ui/dyn-keyword/dyn-angle-brackets.stderr b/tests/ui/dyn-keyword/dyn-angle-brackets.stderr similarity index 100% rename from src/test/ui/dyn-keyword/dyn-angle-brackets.stderr rename to tests/ui/dyn-keyword/dyn-angle-brackets.stderr diff --git a/src/test/ui/dyn-keyword/issue-56327-dyn-trait-in-macro-is-okay.rs b/tests/ui/dyn-keyword/issue-56327-dyn-trait-in-macro-is-okay.rs similarity index 100% rename from src/test/ui/dyn-keyword/issue-56327-dyn-trait-in-macro-is-okay.rs rename to tests/ui/dyn-keyword/issue-56327-dyn-trait-in-macro-is-okay.rs diff --git a/src/test/ui/dyn-star/align.normal.stderr b/tests/ui/dyn-star/align.normal.stderr similarity index 100% rename from src/test/ui/dyn-star/align.normal.stderr rename to tests/ui/dyn-star/align.normal.stderr diff --git a/src/test/ui/dyn-star/align.over_aligned.stderr b/tests/ui/dyn-star/align.over_aligned.stderr similarity index 100% rename from src/test/ui/dyn-star/align.over_aligned.stderr rename to tests/ui/dyn-star/align.over_aligned.stderr diff --git a/src/test/ui/dyn-star/align.rs b/tests/ui/dyn-star/align.rs similarity index 100% rename from src/test/ui/dyn-star/align.rs rename to tests/ui/dyn-star/align.rs diff --git a/src/test/ui/dyn-star/auxiliary/dyn-star-foreign.rs b/tests/ui/dyn-star/auxiliary/dyn-star-foreign.rs similarity index 100% rename from src/test/ui/dyn-star/auxiliary/dyn-star-foreign.rs rename to tests/ui/dyn-star/auxiliary/dyn-star-foreign.rs diff --git a/src/test/ui/dyn-star/box.rs b/tests/ui/dyn-star/box.rs similarity index 100% rename from src/test/ui/dyn-star/box.rs rename to tests/ui/dyn-star/box.rs diff --git a/src/test/ui/dyn-star/check-size-at-cast-polymorphic-bad.rs b/tests/ui/dyn-star/check-size-at-cast-polymorphic-bad.rs similarity index 100% rename from src/test/ui/dyn-star/check-size-at-cast-polymorphic-bad.rs rename to tests/ui/dyn-star/check-size-at-cast-polymorphic-bad.rs diff --git a/src/test/ui/dyn-star/check-size-at-cast-polymorphic-bad.stderr b/tests/ui/dyn-star/check-size-at-cast-polymorphic-bad.stderr similarity index 100% rename from src/test/ui/dyn-star/check-size-at-cast-polymorphic-bad.stderr rename to tests/ui/dyn-star/check-size-at-cast-polymorphic-bad.stderr diff --git a/src/test/ui/dyn-star/check-size-at-cast-polymorphic.rs b/tests/ui/dyn-star/check-size-at-cast-polymorphic.rs similarity index 100% rename from src/test/ui/dyn-star/check-size-at-cast-polymorphic.rs rename to tests/ui/dyn-star/check-size-at-cast-polymorphic.rs diff --git a/src/test/ui/dyn-star/check-size-at-cast.rs b/tests/ui/dyn-star/check-size-at-cast.rs similarity index 100% rename from src/test/ui/dyn-star/check-size-at-cast.rs rename to tests/ui/dyn-star/check-size-at-cast.rs diff --git a/src/test/ui/dyn-star/check-size-at-cast.stderr b/tests/ui/dyn-star/check-size-at-cast.stderr similarity index 100% rename from src/test/ui/dyn-star/check-size-at-cast.stderr rename to tests/ui/dyn-star/check-size-at-cast.stderr diff --git a/src/test/ui/dyn-star/const.rs b/tests/ui/dyn-star/const.rs similarity index 100% rename from src/test/ui/dyn-star/const.rs rename to tests/ui/dyn-star/const.rs diff --git a/src/test/ui/dyn-star/dispatch-on-pin-mut.rs b/tests/ui/dyn-star/dispatch-on-pin-mut.rs similarity index 100% rename from src/test/ui/dyn-star/dispatch-on-pin-mut.rs rename to tests/ui/dyn-star/dispatch-on-pin-mut.rs diff --git a/src/test/ui/dyn-star/dispatch-on-pin-mut.run.stdout b/tests/ui/dyn-star/dispatch-on-pin-mut.run.stdout similarity index 100% rename from src/test/ui/dyn-star/dispatch-on-pin-mut.run.stdout rename to tests/ui/dyn-star/dispatch-on-pin-mut.run.stdout diff --git a/src/test/ui/dyn-star/dispatch-on-pin-mut.stderr b/tests/ui/dyn-star/dispatch-on-pin-mut.stderr similarity index 100% rename from src/test/ui/dyn-star/dispatch-on-pin-mut.stderr rename to tests/ui/dyn-star/dispatch-on-pin-mut.stderr diff --git a/src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.rs b/tests/ui/dyn-star/dont-unsize-coerce-dyn-star.rs similarity index 100% rename from src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.rs rename to tests/ui/dyn-star/dont-unsize-coerce-dyn-star.rs diff --git a/src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.run.stdout b/tests/ui/dyn-star/dont-unsize-coerce-dyn-star.run.stdout similarity index 100% rename from src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.run.stdout rename to tests/ui/dyn-star/dont-unsize-coerce-dyn-star.run.stdout diff --git a/src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr b/tests/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr similarity index 100% rename from src/test/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr rename to tests/ui/dyn-star/dont-unsize-coerce-dyn-star.stderr diff --git a/src/test/ui/dyn-star/drop.rs b/tests/ui/dyn-star/drop.rs similarity index 100% rename from src/test/ui/dyn-star/drop.rs rename to tests/ui/dyn-star/drop.rs diff --git a/src/test/ui/dyn-star/drop.run.stdout b/tests/ui/dyn-star/drop.run.stdout similarity index 100% rename from src/test/ui/dyn-star/drop.run.stdout rename to tests/ui/dyn-star/drop.run.stdout diff --git a/src/test/ui/dyn-star/dyn-async-trait.rs b/tests/ui/dyn-star/dyn-async-trait.rs similarity index 100% rename from src/test/ui/dyn-star/dyn-async-trait.rs rename to tests/ui/dyn-star/dyn-async-trait.rs diff --git a/src/test/ui/dyn-star/dyn-to-rigid.rs b/tests/ui/dyn-star/dyn-to-rigid.rs similarity index 100% rename from src/test/ui/dyn-star/dyn-to-rigid.rs rename to tests/ui/dyn-star/dyn-to-rigid.rs diff --git a/src/test/ui/dyn-star/dyn-to-rigid.stderr b/tests/ui/dyn-star/dyn-to-rigid.stderr similarity index 100% rename from src/test/ui/dyn-star/dyn-to-rigid.stderr rename to tests/ui/dyn-star/dyn-to-rigid.stderr diff --git a/src/test/ui/dyn-star/error.rs b/tests/ui/dyn-star/error.rs similarity index 100% rename from src/test/ui/dyn-star/error.rs rename to tests/ui/dyn-star/error.rs diff --git a/src/test/ui/dyn-star/error.stderr b/tests/ui/dyn-star/error.stderr similarity index 100% rename from src/test/ui/dyn-star/error.stderr rename to tests/ui/dyn-star/error.stderr diff --git a/src/test/ui/dyn-star/feature-gate-dyn_star.rs b/tests/ui/dyn-star/feature-gate-dyn_star.rs similarity index 100% rename from src/test/ui/dyn-star/feature-gate-dyn_star.rs rename to tests/ui/dyn-star/feature-gate-dyn_star.rs diff --git a/src/test/ui/dyn-star/feature-gate-dyn_star.stderr b/tests/ui/dyn-star/feature-gate-dyn_star.stderr similarity index 100% rename from src/test/ui/dyn-star/feature-gate-dyn_star.stderr rename to tests/ui/dyn-star/feature-gate-dyn_star.stderr diff --git a/src/test/ui/dyn-star/issue-102430.rs b/tests/ui/dyn-star/issue-102430.rs similarity index 100% rename from src/test/ui/dyn-star/issue-102430.rs rename to tests/ui/dyn-star/issue-102430.rs diff --git a/src/test/ui/dyn-star/make-dyn-star.rs b/tests/ui/dyn-star/make-dyn-star.rs similarity index 100% rename from src/test/ui/dyn-star/make-dyn-star.rs rename to tests/ui/dyn-star/make-dyn-star.rs diff --git a/src/test/ui/dyn-star/method.rs b/tests/ui/dyn-star/method.rs similarity index 100% rename from src/test/ui/dyn-star/method.rs rename to tests/ui/dyn-star/method.rs diff --git a/src/test/ui/dyn-star/no-explicit-dyn-star-cast.rs b/tests/ui/dyn-star/no-explicit-dyn-star-cast.rs similarity index 100% rename from src/test/ui/dyn-star/no-explicit-dyn-star-cast.rs rename to tests/ui/dyn-star/no-explicit-dyn-star-cast.rs diff --git a/src/test/ui/dyn-star/no-explicit-dyn-star-cast.stderr b/tests/ui/dyn-star/no-explicit-dyn-star-cast.stderr similarity index 100% rename from src/test/ui/dyn-star/no-explicit-dyn-star-cast.stderr rename to tests/ui/dyn-star/no-explicit-dyn-star-cast.stderr diff --git a/src/test/ui/dyn-star/no-explicit-dyn-star.rs b/tests/ui/dyn-star/no-explicit-dyn-star.rs similarity index 100% rename from src/test/ui/dyn-star/no-explicit-dyn-star.rs rename to tests/ui/dyn-star/no-explicit-dyn-star.rs diff --git a/src/test/ui/dyn-star/no-explicit-dyn-star.stderr b/tests/ui/dyn-star/no-explicit-dyn-star.stderr similarity index 100% rename from src/test/ui/dyn-star/no-explicit-dyn-star.stderr rename to tests/ui/dyn-star/no-explicit-dyn-star.stderr diff --git a/src/test/ui/dyn-star/no-implicit-dyn-star.rs b/tests/ui/dyn-star/no-implicit-dyn-star.rs similarity index 100% rename from src/test/ui/dyn-star/no-implicit-dyn-star.rs rename to tests/ui/dyn-star/no-implicit-dyn-star.rs diff --git a/src/test/ui/dyn-star/no-implicit-dyn-star.stderr b/tests/ui/dyn-star/no-implicit-dyn-star.stderr similarity index 100% rename from src/test/ui/dyn-star/no-implicit-dyn-star.stderr rename to tests/ui/dyn-star/no-implicit-dyn-star.stderr diff --git a/src/test/ui/dyn-star/no-unsize-coerce-dyn-trait.rs b/tests/ui/dyn-star/no-unsize-coerce-dyn-trait.rs similarity index 100% rename from src/test/ui/dyn-star/no-unsize-coerce-dyn-trait.rs rename to tests/ui/dyn-star/no-unsize-coerce-dyn-trait.rs diff --git a/src/test/ui/dyn-star/no-unsize-coerce-dyn-trait.stderr b/tests/ui/dyn-star/no-unsize-coerce-dyn-trait.stderr similarity index 100% rename from src/test/ui/dyn-star/no-unsize-coerce-dyn-trait.stderr rename to tests/ui/dyn-star/no-unsize-coerce-dyn-trait.stderr diff --git a/src/test/ui/dyn-star/return.rs b/tests/ui/dyn-star/return.rs similarity index 100% rename from src/test/ui/dyn-star/return.rs rename to tests/ui/dyn-star/return.rs diff --git a/src/test/ui/dyn-star/return.stderr b/tests/ui/dyn-star/return.stderr similarity index 100% rename from src/test/ui/dyn-star/return.stderr rename to tests/ui/dyn-star/return.stderr diff --git a/src/test/ui/dyn-star/syntax.rs b/tests/ui/dyn-star/syntax.rs similarity index 100% rename from src/test/ui/dyn-star/syntax.rs rename to tests/ui/dyn-star/syntax.rs diff --git a/src/test/ui/dyn-star/unsize-into-ref-dyn-star.rs b/tests/ui/dyn-star/unsize-into-ref-dyn-star.rs similarity index 100% rename from src/test/ui/dyn-star/unsize-into-ref-dyn-star.rs rename to tests/ui/dyn-star/unsize-into-ref-dyn-star.rs diff --git a/src/test/ui/dyn-star/unsize-into-ref-dyn-star.stderr b/tests/ui/dyn-star/unsize-into-ref-dyn-star.stderr similarity index 100% rename from src/test/ui/dyn-star/unsize-into-ref-dyn-star.stderr rename to tests/ui/dyn-star/unsize-into-ref-dyn-star.stderr diff --git a/src/test/ui/dyn-star/upcast.rs b/tests/ui/dyn-star/upcast.rs similarity index 100% rename from src/test/ui/dyn-star/upcast.rs rename to tests/ui/dyn-star/upcast.rs diff --git a/src/test/ui/dyn-star/upcast.stderr b/tests/ui/dyn-star/upcast.stderr similarity index 100% rename from src/test/ui/dyn-star/upcast.stderr rename to tests/ui/dyn-star/upcast.stderr diff --git a/src/test/ui/dynamically-sized-types/dst-coerce-custom.rs b/tests/ui/dynamically-sized-types/dst-coerce-custom.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-coerce-custom.rs rename to tests/ui/dynamically-sized-types/dst-coerce-custom.rs diff --git a/src/test/ui/dynamically-sized-types/dst-coerce-rc.rs b/tests/ui/dynamically-sized-types/dst-coerce-rc.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-coerce-rc.rs rename to tests/ui/dynamically-sized-types/dst-coerce-rc.rs diff --git a/src/test/ui/dynamically-sized-types/dst-coercions.rs b/tests/ui/dynamically-sized-types/dst-coercions.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-coercions.rs rename to tests/ui/dynamically-sized-types/dst-coercions.rs diff --git a/src/test/ui/dynamically-sized-types/dst-deref-mut.rs b/tests/ui/dynamically-sized-types/dst-deref-mut.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-deref-mut.rs rename to tests/ui/dynamically-sized-types/dst-deref-mut.rs diff --git a/src/test/ui/dynamically-sized-types/dst-deref.rs b/tests/ui/dynamically-sized-types/dst-deref.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-deref.rs rename to tests/ui/dynamically-sized-types/dst-deref.rs diff --git a/src/test/ui/dynamically-sized-types/dst-field-align.rs b/tests/ui/dynamically-sized-types/dst-field-align.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-field-align.rs rename to tests/ui/dynamically-sized-types/dst-field-align.rs diff --git a/src/test/ui/dynamically-sized-types/dst-index.rs b/tests/ui/dynamically-sized-types/dst-index.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-index.rs rename to tests/ui/dynamically-sized-types/dst-index.rs diff --git a/src/test/ui/dynamically-sized-types/dst-irrefutable-bind.rs b/tests/ui/dynamically-sized-types/dst-irrefutable-bind.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-irrefutable-bind.rs rename to tests/ui/dynamically-sized-types/dst-irrefutable-bind.rs diff --git a/src/test/ui/dynamically-sized-types/dst-raw.rs b/tests/ui/dynamically-sized-types/dst-raw.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-raw.rs rename to tests/ui/dynamically-sized-types/dst-raw.rs diff --git a/src/test/ui/dynamically-sized-types/dst-struct-sole.rs b/tests/ui/dynamically-sized-types/dst-struct-sole.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-struct-sole.rs rename to tests/ui/dynamically-sized-types/dst-struct-sole.rs diff --git a/src/test/ui/dynamically-sized-types/dst-struct.rs b/tests/ui/dynamically-sized-types/dst-struct.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-struct.rs rename to tests/ui/dynamically-sized-types/dst-struct.rs diff --git a/src/test/ui/dynamically-sized-types/dst-trait-tuple.rs b/tests/ui/dynamically-sized-types/dst-trait-tuple.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-trait-tuple.rs rename to tests/ui/dynamically-sized-types/dst-trait-tuple.rs diff --git a/src/test/ui/dynamically-sized-types/dst-trait.rs b/tests/ui/dynamically-sized-types/dst-trait.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-trait.rs rename to tests/ui/dynamically-sized-types/dst-trait.rs diff --git a/src/test/ui/dynamically-sized-types/dst-tuple-no-reorder.rs b/tests/ui/dynamically-sized-types/dst-tuple-no-reorder.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-tuple-no-reorder.rs rename to tests/ui/dynamically-sized-types/dst-tuple-no-reorder.rs diff --git a/src/test/ui/dynamically-sized-types/dst-tuple-sole.rs b/tests/ui/dynamically-sized-types/dst-tuple-sole.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-tuple-sole.rs rename to tests/ui/dynamically-sized-types/dst-tuple-sole.rs diff --git a/src/test/ui/dynamically-sized-types/dst-tuple-zst-offsets.rs b/tests/ui/dynamically-sized-types/dst-tuple-zst-offsets.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-tuple-zst-offsets.rs rename to tests/ui/dynamically-sized-types/dst-tuple-zst-offsets.rs diff --git a/src/test/ui/dynamically-sized-types/dst-tuple.rs b/tests/ui/dynamically-sized-types/dst-tuple.rs similarity index 100% rename from src/test/ui/dynamically-sized-types/dst-tuple.rs rename to tests/ui/dynamically-sized-types/dst-tuple.rs diff --git a/src/test/ui/early-ret-binop-add.rs b/tests/ui/early-ret-binop-add.rs similarity index 100% rename from src/test/ui/early-ret-binop-add.rs rename to tests/ui/early-ret-binop-add.rs diff --git a/src/test/ui/editions/async-block-2015.rs b/tests/ui/editions/async-block-2015.rs similarity index 100% rename from src/test/ui/editions/async-block-2015.rs rename to tests/ui/editions/async-block-2015.rs diff --git a/src/test/ui/editions/async-block-2015.stderr b/tests/ui/editions/async-block-2015.stderr similarity index 100% rename from src/test/ui/editions/async-block-2015.stderr rename to tests/ui/editions/async-block-2015.stderr diff --git a/src/test/ui/editions/auxiliary/absolute.rs b/tests/ui/editions/auxiliary/absolute.rs similarity index 100% rename from src/test/ui/editions/auxiliary/absolute.rs rename to tests/ui/editions/auxiliary/absolute.rs diff --git a/src/test/ui/editions/auxiliary/edition-extern-crate-allowed.rs b/tests/ui/editions/auxiliary/edition-extern-crate-allowed.rs similarity index 100% rename from src/test/ui/editions/auxiliary/edition-extern-crate-allowed.rs rename to tests/ui/editions/auxiliary/edition-extern-crate-allowed.rs diff --git a/src/test/ui/editions/auxiliary/edition-imports-2015.rs b/tests/ui/editions/auxiliary/edition-imports-2015.rs similarity index 100% rename from src/test/ui/editions/auxiliary/edition-imports-2015.rs rename to tests/ui/editions/auxiliary/edition-imports-2015.rs diff --git a/src/test/ui/editions/auxiliary/edition-imports-2018.rs b/tests/ui/editions/auxiliary/edition-imports-2018.rs similarity index 100% rename from src/test/ui/editions/auxiliary/edition-imports-2018.rs rename to tests/ui/editions/auxiliary/edition-imports-2018.rs diff --git a/src/test/ui/editions/auxiliary/edition-kw-macro-2015.rs b/tests/ui/editions/auxiliary/edition-kw-macro-2015.rs similarity index 100% rename from src/test/ui/editions/auxiliary/edition-kw-macro-2015.rs rename to tests/ui/editions/auxiliary/edition-kw-macro-2015.rs diff --git a/src/test/ui/editions/auxiliary/edition-kw-macro-2018.rs b/tests/ui/editions/auxiliary/edition-kw-macro-2018.rs similarity index 100% rename from src/test/ui/editions/auxiliary/edition-kw-macro-2018.rs rename to tests/ui/editions/auxiliary/edition-kw-macro-2018.rs diff --git a/src/test/ui/editions/dyn-trait-sugg-2021.rs b/tests/ui/editions/dyn-trait-sugg-2021.rs similarity index 100% rename from src/test/ui/editions/dyn-trait-sugg-2021.rs rename to tests/ui/editions/dyn-trait-sugg-2021.rs diff --git a/src/test/ui/editions/dyn-trait-sugg-2021.stderr b/tests/ui/editions/dyn-trait-sugg-2021.stderr similarity index 100% rename from src/test/ui/editions/dyn-trait-sugg-2021.stderr rename to tests/ui/editions/dyn-trait-sugg-2021.stderr diff --git a/src/test/ui/editions/edition-extern-crate-allowed.rs b/tests/ui/editions/edition-extern-crate-allowed.rs similarity index 100% rename from src/test/ui/editions/edition-extern-crate-allowed.rs rename to tests/ui/editions/edition-extern-crate-allowed.rs diff --git a/src/test/ui/editions/edition-extern-crate-allowed.stderr b/tests/ui/editions/edition-extern-crate-allowed.stderr similarity index 100% rename from src/test/ui/editions/edition-extern-crate-allowed.stderr rename to tests/ui/editions/edition-extern-crate-allowed.stderr diff --git a/src/test/ui/editions/edition-feature-ok.rs b/tests/ui/editions/edition-feature-ok.rs similarity index 100% rename from src/test/ui/editions/edition-feature-ok.rs rename to tests/ui/editions/edition-feature-ok.rs diff --git a/src/test/ui/editions/edition-feature-redundant.rs b/tests/ui/editions/edition-feature-redundant.rs similarity index 100% rename from src/test/ui/editions/edition-feature-redundant.rs rename to tests/ui/editions/edition-feature-redundant.rs diff --git a/src/test/ui/editions/edition-feature-redundant.stderr b/tests/ui/editions/edition-feature-redundant.stderr similarity index 100% rename from src/test/ui/editions/edition-feature-redundant.stderr rename to tests/ui/editions/edition-feature-redundant.stderr diff --git a/src/test/ui/editions/edition-imports-2015.rs b/tests/ui/editions/edition-imports-2015.rs similarity index 100% rename from src/test/ui/editions/edition-imports-2015.rs rename to tests/ui/editions/edition-imports-2015.rs diff --git a/src/test/ui/editions/edition-imports-2015.stderr b/tests/ui/editions/edition-imports-2015.stderr similarity index 100% rename from src/test/ui/editions/edition-imports-2015.stderr rename to tests/ui/editions/edition-imports-2015.stderr diff --git a/src/test/ui/editions/edition-imports-2018.rs b/tests/ui/editions/edition-imports-2018.rs similarity index 100% rename from src/test/ui/editions/edition-imports-2018.rs rename to tests/ui/editions/edition-imports-2018.rs diff --git a/src/test/ui/editions/edition-imports-2018.stderr b/tests/ui/editions/edition-imports-2018.stderr similarity index 100% rename from src/test/ui/editions/edition-imports-2018.stderr rename to tests/ui/editions/edition-imports-2018.stderr diff --git a/src/test/ui/editions/edition-imports-virtual-2015-ambiguity.rs b/tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs similarity index 100% rename from src/test/ui/editions/edition-imports-virtual-2015-ambiguity.rs rename to tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs diff --git a/src/test/ui/editions/edition-imports-virtual-2015-gated.rs b/tests/ui/editions/edition-imports-virtual-2015-gated.rs similarity index 100% rename from src/test/ui/editions/edition-imports-virtual-2015-gated.rs rename to tests/ui/editions/edition-imports-virtual-2015-gated.rs diff --git a/src/test/ui/editions/edition-imports-virtual-2015-gated.stderr b/tests/ui/editions/edition-imports-virtual-2015-gated.stderr similarity index 100% rename from src/test/ui/editions/edition-imports-virtual-2015-gated.stderr rename to tests/ui/editions/edition-imports-virtual-2015-gated.stderr diff --git a/src/test/ui/editions/edition-keywords-2015-2015-expansion.rs b/tests/ui/editions/edition-keywords-2015-2015-expansion.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2015-expansion.rs rename to tests/ui/editions/edition-keywords-2015-2015-expansion.rs diff --git a/src/test/ui/editions/edition-keywords-2015-2015-parsing.rs b/tests/ui/editions/edition-keywords-2015-2015-parsing.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2015-parsing.rs rename to tests/ui/editions/edition-keywords-2015-2015-parsing.rs diff --git a/src/test/ui/editions/edition-keywords-2015-2015-parsing.stderr b/tests/ui/editions/edition-keywords-2015-2015-parsing.stderr similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2015-parsing.stderr rename to tests/ui/editions/edition-keywords-2015-2015-parsing.stderr diff --git a/src/test/ui/editions/edition-keywords-2015-2015.rs b/tests/ui/editions/edition-keywords-2015-2015.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2015.rs rename to tests/ui/editions/edition-keywords-2015-2015.rs diff --git a/src/test/ui/editions/edition-keywords-2015-2018-expansion.rs b/tests/ui/editions/edition-keywords-2015-2018-expansion.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2018-expansion.rs rename to tests/ui/editions/edition-keywords-2015-2018-expansion.rs diff --git a/src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr b/tests/ui/editions/edition-keywords-2015-2018-expansion.stderr similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr rename to tests/ui/editions/edition-keywords-2015-2018-expansion.stderr diff --git a/src/test/ui/editions/edition-keywords-2015-2018-parsing.rs b/tests/ui/editions/edition-keywords-2015-2018-parsing.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2018-parsing.rs rename to tests/ui/editions/edition-keywords-2015-2018-parsing.rs diff --git a/src/test/ui/editions/edition-keywords-2015-2018-parsing.stderr b/tests/ui/editions/edition-keywords-2015-2018-parsing.stderr similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2018-parsing.stderr rename to tests/ui/editions/edition-keywords-2015-2018-parsing.stderr diff --git a/src/test/ui/editions/edition-keywords-2015-2018.rs b/tests/ui/editions/edition-keywords-2015-2018.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2015-2018.rs rename to tests/ui/editions/edition-keywords-2015-2018.rs diff --git a/src/test/ui/editions/edition-keywords-2018-2015-expansion.rs b/tests/ui/editions/edition-keywords-2018-2015-expansion.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2015-expansion.rs rename to tests/ui/editions/edition-keywords-2018-2015-expansion.rs diff --git a/src/test/ui/editions/edition-keywords-2018-2015-parsing.rs b/tests/ui/editions/edition-keywords-2018-2015-parsing.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2015-parsing.rs rename to tests/ui/editions/edition-keywords-2018-2015-parsing.rs diff --git a/src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr b/tests/ui/editions/edition-keywords-2018-2015-parsing.stderr similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr rename to tests/ui/editions/edition-keywords-2018-2015-parsing.stderr diff --git a/src/test/ui/editions/edition-keywords-2018-2015.rs b/tests/ui/editions/edition-keywords-2018-2015.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2015.rs rename to tests/ui/editions/edition-keywords-2018-2015.rs diff --git a/src/test/ui/editions/edition-keywords-2018-2018-expansion.rs b/tests/ui/editions/edition-keywords-2018-2018-expansion.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2018-expansion.rs rename to tests/ui/editions/edition-keywords-2018-2018-expansion.rs diff --git a/src/test/ui/editions/edition-keywords-2018-2018-expansion.stderr b/tests/ui/editions/edition-keywords-2018-2018-expansion.stderr similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2018-expansion.stderr rename to tests/ui/editions/edition-keywords-2018-2018-expansion.stderr diff --git a/src/test/ui/editions/edition-keywords-2018-2018-parsing.rs b/tests/ui/editions/edition-keywords-2018-2018-parsing.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2018-parsing.rs rename to tests/ui/editions/edition-keywords-2018-2018-parsing.rs diff --git a/src/test/ui/editions/edition-keywords-2018-2018-parsing.stderr b/tests/ui/editions/edition-keywords-2018-2018-parsing.stderr similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2018-parsing.stderr rename to tests/ui/editions/edition-keywords-2018-2018-parsing.stderr diff --git a/src/test/ui/editions/edition-keywords-2018-2018.rs b/tests/ui/editions/edition-keywords-2018-2018.rs similarity index 100% rename from src/test/ui/editions/edition-keywords-2018-2018.rs rename to tests/ui/editions/edition-keywords-2018-2018.rs diff --git a/src/test/ui/editions/edition-raw-pointer-method-2015.rs b/tests/ui/editions/edition-raw-pointer-method-2015.rs similarity index 100% rename from src/test/ui/editions/edition-raw-pointer-method-2015.rs rename to tests/ui/editions/edition-raw-pointer-method-2015.rs diff --git a/src/test/ui/editions/edition-raw-pointer-method-2015.stderr b/tests/ui/editions/edition-raw-pointer-method-2015.stderr similarity index 100% rename from src/test/ui/editions/edition-raw-pointer-method-2015.stderr rename to tests/ui/editions/edition-raw-pointer-method-2015.stderr diff --git a/src/test/ui/editions/edition-raw-pointer-method-2018.rs b/tests/ui/editions/edition-raw-pointer-method-2018.rs similarity index 100% rename from src/test/ui/editions/edition-raw-pointer-method-2018.rs rename to tests/ui/editions/edition-raw-pointer-method-2018.rs diff --git a/src/test/ui/editions/edition-raw-pointer-method-2018.stderr b/tests/ui/editions/edition-raw-pointer-method-2018.stderr similarity index 100% rename from src/test/ui/editions/edition-raw-pointer-method-2018.stderr rename to tests/ui/editions/edition-raw-pointer-method-2018.stderr diff --git a/src/test/ui/editions/epoch-gate-feature.rs b/tests/ui/editions/epoch-gate-feature.rs similarity index 100% rename from src/test/ui/editions/epoch-gate-feature.rs rename to tests/ui/editions/epoch-gate-feature.rs diff --git a/src/test/ui/elide-errors-on-mismatched-tuple.rs b/tests/ui/elide-errors-on-mismatched-tuple.rs similarity index 100% rename from src/test/ui/elide-errors-on-mismatched-tuple.rs rename to tests/ui/elide-errors-on-mismatched-tuple.rs diff --git a/src/test/ui/elide-errors-on-mismatched-tuple.stderr b/tests/ui/elide-errors-on-mismatched-tuple.stderr similarity index 100% rename from src/test/ui/elide-errors-on-mismatched-tuple.stderr rename to tests/ui/elide-errors-on-mismatched-tuple.stderr diff --git a/src/test/ui/elided-test.rs b/tests/ui/elided-test.rs similarity index 100% rename from src/test/ui/elided-test.rs rename to tests/ui/elided-test.rs diff --git a/src/test/ui/elided-test.stderr b/tests/ui/elided-test.stderr similarity index 100% rename from src/test/ui/elided-test.stderr rename to tests/ui/elided-test.stderr diff --git a/src/test/ui/else-if.rs b/tests/ui/else-if.rs similarity index 100% rename from src/test/ui/else-if.rs rename to tests/ui/else-if.rs diff --git a/src/test/ui/empty-allocation-non-null.rs b/tests/ui/empty-allocation-non-null.rs similarity index 100% rename from src/test/ui/empty-allocation-non-null.rs rename to tests/ui/empty-allocation-non-null.rs diff --git a/src/test/ui/empty-allocation-rvalue-non-null.rs b/tests/ui/empty-allocation-rvalue-non-null.rs similarity index 100% rename from src/test/ui/empty-allocation-rvalue-non-null.rs rename to tests/ui/empty-allocation-rvalue-non-null.rs diff --git a/src/test/ui/empty-type-parameter-list.rs b/tests/ui/empty-type-parameter-list.rs similarity index 100% rename from src/test/ui/empty-type-parameter-list.rs rename to tests/ui/empty-type-parameter-list.rs diff --git a/src/test/ui/empty/auxiliary/empty-struct.rs b/tests/ui/empty/auxiliary/empty-struct.rs similarity index 100% rename from src/test/ui/empty/auxiliary/empty-struct.rs rename to tests/ui/empty/auxiliary/empty-struct.rs diff --git a/src/test/ui/empty/auxiliary/two_macros.rs b/tests/ui/empty/auxiliary/two_macros.rs similarity index 100% rename from src/test/ui/empty/auxiliary/two_macros.rs rename to tests/ui/empty/auxiliary/two_macros.rs diff --git a/src/test/ui/empty/empty-attributes.rs b/tests/ui/empty/empty-attributes.rs similarity index 100% rename from src/test/ui/empty/empty-attributes.rs rename to tests/ui/empty/empty-attributes.rs diff --git a/src/test/ui/empty/empty-attributes.stderr b/tests/ui/empty/empty-attributes.stderr similarity index 100% rename from src/test/ui/empty/empty-attributes.stderr rename to tests/ui/empty/empty-attributes.stderr diff --git a/src/test/ui/empty/empty-comment.rs b/tests/ui/empty/empty-comment.rs similarity index 100% rename from src/test/ui/empty/empty-comment.rs rename to tests/ui/empty/empty-comment.rs diff --git a/src/test/ui/empty/empty-comment.stderr b/tests/ui/empty/empty-comment.stderr similarity index 100% rename from src/test/ui/empty/empty-comment.stderr rename to tests/ui/empty/empty-comment.stderr diff --git a/src/test/ui/empty/empty-linkname.rs b/tests/ui/empty/empty-linkname.rs similarity index 100% rename from src/test/ui/empty/empty-linkname.rs rename to tests/ui/empty/empty-linkname.rs diff --git a/src/test/ui/empty/empty-linkname.stderr b/tests/ui/empty/empty-linkname.stderr similarity index 100% rename from src/test/ui/empty/empty-linkname.stderr rename to tests/ui/empty/empty-linkname.stderr diff --git a/src/test/ui/empty/empty-macro-use.rs b/tests/ui/empty/empty-macro-use.rs similarity index 100% rename from src/test/ui/empty/empty-macro-use.rs rename to tests/ui/empty/empty-macro-use.rs diff --git a/src/test/ui/empty/empty-macro-use.stderr b/tests/ui/empty/empty-macro-use.stderr similarity index 100% rename from src/test/ui/empty/empty-macro-use.stderr rename to tests/ui/empty/empty-macro-use.stderr diff --git a/src/test/ui/empty/empty-never-array.rs b/tests/ui/empty/empty-never-array.rs similarity index 100% rename from src/test/ui/empty/empty-never-array.rs rename to tests/ui/empty/empty-never-array.rs diff --git a/src/test/ui/empty/empty-never-array.stderr b/tests/ui/empty/empty-never-array.stderr similarity index 100% rename from src/test/ui/empty/empty-never-array.stderr rename to tests/ui/empty/empty-never-array.stderr diff --git a/src/test/ui/empty/empty-struct-braces-expr.rs b/tests/ui/empty/empty-struct-braces-expr.rs similarity index 100% rename from src/test/ui/empty/empty-struct-braces-expr.rs rename to tests/ui/empty/empty-struct-braces-expr.rs diff --git a/src/test/ui/empty/empty-struct-braces-expr.stderr b/tests/ui/empty/empty-struct-braces-expr.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-braces-expr.stderr rename to tests/ui/empty/empty-struct-braces-expr.stderr diff --git a/src/test/ui/empty/empty-struct-braces-pat-1.rs b/tests/ui/empty/empty-struct-braces-pat-1.rs similarity index 100% rename from src/test/ui/empty/empty-struct-braces-pat-1.rs rename to tests/ui/empty/empty-struct-braces-pat-1.rs diff --git a/src/test/ui/empty/empty-struct-braces-pat-1.stderr b/tests/ui/empty/empty-struct-braces-pat-1.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-braces-pat-1.stderr rename to tests/ui/empty/empty-struct-braces-pat-1.stderr diff --git a/src/test/ui/empty/empty-struct-braces-pat-2.rs b/tests/ui/empty/empty-struct-braces-pat-2.rs similarity index 100% rename from src/test/ui/empty/empty-struct-braces-pat-2.rs rename to tests/ui/empty/empty-struct-braces-pat-2.rs diff --git a/src/test/ui/empty/empty-struct-braces-pat-2.stderr b/tests/ui/empty/empty-struct-braces-pat-2.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-braces-pat-2.stderr rename to tests/ui/empty/empty-struct-braces-pat-2.stderr diff --git a/src/test/ui/empty/empty-struct-braces-pat-3.rs b/tests/ui/empty/empty-struct-braces-pat-3.rs similarity index 100% rename from src/test/ui/empty/empty-struct-braces-pat-3.rs rename to tests/ui/empty/empty-struct-braces-pat-3.rs diff --git a/src/test/ui/empty/empty-struct-braces-pat-3.stderr b/tests/ui/empty/empty-struct-braces-pat-3.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-braces-pat-3.stderr rename to tests/ui/empty/empty-struct-braces-pat-3.stderr diff --git a/src/test/ui/empty/empty-struct-tuple-pat.rs b/tests/ui/empty/empty-struct-tuple-pat.rs similarity index 100% rename from src/test/ui/empty/empty-struct-tuple-pat.rs rename to tests/ui/empty/empty-struct-tuple-pat.rs diff --git a/src/test/ui/empty/empty-struct-tuple-pat.stderr b/tests/ui/empty/empty-struct-tuple-pat.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-tuple-pat.stderr rename to tests/ui/empty/empty-struct-tuple-pat.stderr diff --git a/src/test/ui/empty/empty-struct-unit-expr.rs b/tests/ui/empty/empty-struct-unit-expr.rs similarity index 100% rename from src/test/ui/empty/empty-struct-unit-expr.rs rename to tests/ui/empty/empty-struct-unit-expr.rs diff --git a/src/test/ui/empty/empty-struct-unit-expr.stderr b/tests/ui/empty/empty-struct-unit-expr.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-unit-expr.stderr rename to tests/ui/empty/empty-struct-unit-expr.stderr diff --git a/src/test/ui/empty/empty-struct-unit-pat.rs b/tests/ui/empty/empty-struct-unit-pat.rs similarity index 100% rename from src/test/ui/empty/empty-struct-unit-pat.rs rename to tests/ui/empty/empty-struct-unit-pat.rs diff --git a/src/test/ui/empty/empty-struct-unit-pat.stderr b/tests/ui/empty/empty-struct-unit-pat.stderr similarity index 100% rename from src/test/ui/empty/empty-struct-unit-pat.stderr rename to tests/ui/empty/empty-struct-unit-pat.stderr diff --git a/src/test/ui/empty/issue-37026.rs b/tests/ui/empty/issue-37026.rs similarity index 100% rename from src/test/ui/empty/issue-37026.rs rename to tests/ui/empty/issue-37026.rs diff --git a/src/test/ui/empty/issue-37026.stderr b/tests/ui/empty/issue-37026.stderr similarity index 100% rename from src/test/ui/empty/issue-37026.stderr rename to tests/ui/empty/issue-37026.stderr diff --git a/src/test/ui/empty/no-link.rs b/tests/ui/empty/no-link.rs similarity index 100% rename from src/test/ui/empty/no-link.rs rename to tests/ui/empty/no-link.rs diff --git a/src/test/ui/empty_global_asm.rs b/tests/ui/empty_global_asm.rs similarity index 100% rename from src/test/ui/empty_global_asm.rs rename to tests/ui/empty_global_asm.rs diff --git a/src/test/ui/entry-point/auxiliary/main_functions.rs b/tests/ui/entry-point/auxiliary/main_functions.rs similarity index 100% rename from src/test/ui/entry-point/auxiliary/main_functions.rs rename to tests/ui/entry-point/auxiliary/main_functions.rs diff --git a/src/test/ui/entry-point/imported_main_conflict.rs b/tests/ui/entry-point/imported_main_conflict.rs similarity index 100% rename from src/test/ui/entry-point/imported_main_conflict.rs rename to tests/ui/entry-point/imported_main_conflict.rs diff --git a/src/test/ui/entry-point/imported_main_conflict.stderr b/tests/ui/entry-point/imported_main_conflict.stderr similarity index 100% rename from src/test/ui/entry-point/imported_main_conflict.stderr rename to tests/ui/entry-point/imported_main_conflict.stderr diff --git a/src/test/ui/entry-point/imported_main_const_fn_item_type_forbidden.rs b/tests/ui/entry-point/imported_main_const_fn_item_type_forbidden.rs similarity index 100% rename from src/test/ui/entry-point/imported_main_const_fn_item_type_forbidden.rs rename to tests/ui/entry-point/imported_main_const_fn_item_type_forbidden.rs diff --git a/src/test/ui/entry-point/imported_main_const_fn_item_type_forbidden.stderr b/tests/ui/entry-point/imported_main_const_fn_item_type_forbidden.stderr similarity index 100% rename from src/test/ui/entry-point/imported_main_const_fn_item_type_forbidden.stderr rename to tests/ui/entry-point/imported_main_const_fn_item_type_forbidden.stderr diff --git a/src/test/ui/entry-point/imported_main_const_forbidden.rs b/tests/ui/entry-point/imported_main_const_forbidden.rs similarity index 100% rename from src/test/ui/entry-point/imported_main_const_forbidden.rs rename to tests/ui/entry-point/imported_main_const_forbidden.rs diff --git a/src/test/ui/entry-point/imported_main_const_forbidden.stderr b/tests/ui/entry-point/imported_main_const_forbidden.stderr similarity index 100% rename from src/test/ui/entry-point/imported_main_const_forbidden.stderr rename to tests/ui/entry-point/imported_main_const_forbidden.stderr diff --git a/src/test/ui/entry-point/imported_main_from_extern_crate.rs b/tests/ui/entry-point/imported_main_from_extern_crate.rs similarity index 100% rename from src/test/ui/entry-point/imported_main_from_extern_crate.rs rename to tests/ui/entry-point/imported_main_from_extern_crate.rs diff --git a/src/test/ui/entry-point/imported_main_from_inner_mod.rs b/tests/ui/entry-point/imported_main_from_inner_mod.rs similarity index 100% rename from src/test/ui/entry-point/imported_main_from_inner_mod.rs rename to tests/ui/entry-point/imported_main_from_inner_mod.rs diff --git a/src/test/ui/entry-point/imported_main_unused_not_trigger_feature_gate.rs b/tests/ui/entry-point/imported_main_unused_not_trigger_feature_gate.rs similarity index 100% rename from src/test/ui/entry-point/imported_main_unused_not_trigger_feature_gate.rs rename to tests/ui/entry-point/imported_main_unused_not_trigger_feature_gate.rs diff --git a/src/test/ui/enum-discriminant/actually_not_an_enum-discriminant.rs b/tests/ui/enum-discriminant/actually_not_an_enum-discriminant.rs similarity index 100% rename from src/test/ui/enum-discriminant/actually_not_an_enum-discriminant.rs rename to tests/ui/enum-discriminant/actually_not_an_enum-discriminant.rs diff --git a/src/test/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.rs b/tests/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.rs similarity index 100% rename from src/test/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.rs rename to tests/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.rs diff --git a/src/test/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.stderr b/tests/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.stderr similarity index 100% rename from src/test/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.stderr rename to tests/ui/enum-discriminant/arbitrary_enum_discriminant-no-repr.stderr diff --git a/src/test/ui/enum-discriminant/arbitrary_enum_discriminant.rs b/tests/ui/enum-discriminant/arbitrary_enum_discriminant.rs similarity index 100% rename from src/test/ui/enum-discriminant/arbitrary_enum_discriminant.rs rename to tests/ui/enum-discriminant/arbitrary_enum_discriminant.rs diff --git a/src/test/ui/enum-discriminant/discriminant_size.rs b/tests/ui/enum-discriminant/discriminant_size.rs similarity index 100% rename from src/test/ui/enum-discriminant/discriminant_size.rs rename to tests/ui/enum-discriminant/discriminant_size.rs diff --git a/src/test/ui/enum-discriminant/discriminant_size.stderr b/tests/ui/enum-discriminant/discriminant_size.stderr similarity index 100% rename from src/test/ui/enum-discriminant/discriminant_size.stderr rename to tests/ui/enum-discriminant/discriminant_size.stderr diff --git a/src/test/ui/enum-discriminant/discriminant_value-wrapper.rs b/tests/ui/enum-discriminant/discriminant_value-wrapper.rs similarity index 100% rename from src/test/ui/enum-discriminant/discriminant_value-wrapper.rs rename to tests/ui/enum-discriminant/discriminant_value-wrapper.rs diff --git a/src/test/ui/enum-discriminant/discriminant_value.rs b/tests/ui/enum-discriminant/discriminant_value.rs similarity index 100% rename from src/test/ui/enum-discriminant/discriminant_value.rs rename to tests/ui/enum-discriminant/discriminant_value.rs diff --git a/src/test/ui/enum-discriminant/forbidden-discriminant-kind-impl.rs b/tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.rs similarity index 100% rename from src/test/ui/enum-discriminant/forbidden-discriminant-kind-impl.rs rename to tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.rs diff --git a/src/test/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr b/tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr similarity index 100% rename from src/test/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr rename to tests/ui/enum-discriminant/forbidden-discriminant-kind-impl.stderr diff --git a/src/test/ui/enum-discriminant/get_discr.rs b/tests/ui/enum-discriminant/get_discr.rs similarity index 100% rename from src/test/ui/enum-discriminant/get_discr.rs rename to tests/ui/enum-discriminant/get_discr.rs diff --git a/src/test/ui/enum-discriminant/issue-104519.rs b/tests/ui/enum-discriminant/issue-104519.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-104519.rs rename to tests/ui/enum-discriminant/issue-104519.rs diff --git a/src/test/ui/enum-discriminant/issue-43398.rs b/tests/ui/enum-discriminant/issue-43398.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-43398.rs rename to tests/ui/enum-discriminant/issue-43398.rs diff --git a/src/test/ui/enum-discriminant/issue-43398.stderr b/tests/ui/enum-discriminant/issue-43398.stderr similarity index 100% rename from src/test/ui/enum-discriminant/issue-43398.stderr rename to tests/ui/enum-discriminant/issue-43398.stderr diff --git a/src/test/ui/enum-discriminant/issue-46519.rs b/tests/ui/enum-discriminant/issue-46519.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-46519.rs rename to tests/ui/enum-discriminant/issue-46519.rs diff --git a/src/test/ui/enum-discriminant/issue-51582.rs b/tests/ui/enum-discriminant/issue-51582.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-51582.rs rename to tests/ui/enum-discriminant/issue-51582.rs diff --git a/src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.rs b/tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.rs rename to tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.rs diff --git a/src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.stderr b/tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.stderr similarity index 100% rename from src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.stderr rename to tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice-2.stderr diff --git a/src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice.rs b/tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice.rs rename to tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice.rs diff --git a/src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice.stderr b/tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice.stderr similarity index 100% rename from src/test/ui/enum-discriminant/issue-70453-generics-in-discr-ice.stderr rename to tests/ui/enum-discriminant/issue-70453-generics-in-discr-ice.stderr diff --git a/src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.rs b/tests/ui/enum-discriminant/issue-70453-polymorphic-ctfe.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.rs rename to tests/ui/enum-discriminant/issue-70453-polymorphic-ctfe.rs diff --git a/src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr b/tests/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr similarity index 100% rename from src/test/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr rename to tests/ui/enum-discriminant/issue-70453-polymorphic-ctfe.stderr diff --git a/src/test/ui/enum-discriminant/issue-70509-partial_eq.rs b/tests/ui/enum-discriminant/issue-70509-partial_eq.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-70509-partial_eq.rs rename to tests/ui/enum-discriminant/issue-70509-partial_eq.rs diff --git a/src/test/ui/enum-discriminant/issue-70509-partial_eq.stderr b/tests/ui/enum-discriminant/issue-70509-partial_eq.stderr similarity index 100% rename from src/test/ui/enum-discriminant/issue-70509-partial_eq.stderr rename to tests/ui/enum-discriminant/issue-70509-partial_eq.stderr diff --git a/src/test/ui/enum-discriminant/issue-72554.rs b/tests/ui/enum-discriminant/issue-72554.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-72554.rs rename to tests/ui/enum-discriminant/issue-72554.rs diff --git a/src/test/ui/enum-discriminant/issue-72554.stderr b/tests/ui/enum-discriminant/issue-72554.stderr similarity index 100% rename from src/test/ui/enum-discriminant/issue-72554.stderr rename to tests/ui/enum-discriminant/issue-72554.stderr diff --git a/src/test/ui/enum-discriminant/issue-90038.rs b/tests/ui/enum-discriminant/issue-90038.rs similarity index 100% rename from src/test/ui/enum-discriminant/issue-90038.rs rename to tests/ui/enum-discriminant/issue-90038.rs diff --git a/src/test/ui/enum-discriminant/niche-prefer-zero.rs b/tests/ui/enum-discriminant/niche-prefer-zero.rs similarity index 100% rename from src/test/ui/enum-discriminant/niche-prefer-zero.rs rename to tests/ui/enum-discriminant/niche-prefer-zero.rs diff --git a/src/test/ui/enum-discriminant/niche.rs b/tests/ui/enum-discriminant/niche.rs similarity index 100% rename from src/test/ui/enum-discriminant/niche.rs rename to tests/ui/enum-discriminant/niche.rs diff --git a/src/test/ui/enum-discriminant/repr128.rs b/tests/ui/enum-discriminant/repr128.rs similarity index 100% rename from src/test/ui/enum-discriminant/repr128.rs rename to tests/ui/enum-discriminant/repr128.rs diff --git a/src/test/ui/enum-discriminant/repr128.stderr b/tests/ui/enum-discriminant/repr128.stderr similarity index 100% rename from src/test/ui/enum-discriminant/repr128.stderr rename to tests/ui/enum-discriminant/repr128.stderr diff --git a/src/test/ui/enum/enum-and-module-in-same-scope.rs b/tests/ui/enum/enum-and-module-in-same-scope.rs similarity index 100% rename from src/test/ui/enum/enum-and-module-in-same-scope.rs rename to tests/ui/enum/enum-and-module-in-same-scope.rs diff --git a/src/test/ui/enum/enum-and-module-in-same-scope.stderr b/tests/ui/enum/enum-and-module-in-same-scope.stderr similarity index 100% rename from src/test/ui/enum/enum-and-module-in-same-scope.stderr rename to tests/ui/enum/enum-and-module-in-same-scope.stderr diff --git a/src/test/ui/enum/enum-discrim-autosizing.rs b/tests/ui/enum/enum-discrim-autosizing.rs similarity index 100% rename from src/test/ui/enum/enum-discrim-autosizing.rs rename to tests/ui/enum/enum-discrim-autosizing.rs diff --git a/src/test/ui/enum/enum-discrim-autosizing.stderr b/tests/ui/enum/enum-discrim-autosizing.stderr similarity index 100% rename from src/test/ui/enum/enum-discrim-autosizing.stderr rename to tests/ui/enum/enum-discrim-autosizing.stderr diff --git a/src/test/ui/enum/enum-discrim-too-small.rs b/tests/ui/enum/enum-discrim-too-small.rs similarity index 100% rename from src/test/ui/enum/enum-discrim-too-small.rs rename to tests/ui/enum/enum-discrim-too-small.rs diff --git a/src/test/ui/enum/enum-discrim-too-small.stderr b/tests/ui/enum/enum-discrim-too-small.stderr similarity index 100% rename from src/test/ui/enum/enum-discrim-too-small.stderr rename to tests/ui/enum/enum-discrim-too-small.stderr diff --git a/src/test/ui/enum/enum-discrim-too-small2.rs b/tests/ui/enum/enum-discrim-too-small2.rs similarity index 100% rename from src/test/ui/enum/enum-discrim-too-small2.rs rename to tests/ui/enum/enum-discrim-too-small2.rs diff --git a/src/test/ui/enum/enum-discrim-too-small2.stderr b/tests/ui/enum/enum-discrim-too-small2.stderr similarity index 100% rename from src/test/ui/enum/enum-discrim-too-small2.stderr rename to tests/ui/enum/enum-discrim-too-small2.stderr diff --git a/src/test/ui/enum/enum-in-scope.rs b/tests/ui/enum/enum-in-scope.rs similarity index 100% rename from src/test/ui/enum/enum-in-scope.rs rename to tests/ui/enum/enum-in-scope.rs diff --git a/src/test/ui/enum/enum-in-scope.stderr b/tests/ui/enum/enum-in-scope.stderr similarity index 100% rename from src/test/ui/enum/enum-in-scope.stderr rename to tests/ui/enum/enum-in-scope.stderr diff --git a/src/test/ui/enum/enum-size-variance.rs b/tests/ui/enum/enum-size-variance.rs similarity index 100% rename from src/test/ui/enum/enum-size-variance.rs rename to tests/ui/enum/enum-size-variance.rs diff --git a/src/test/ui/enum/enum-size-variance.stderr b/tests/ui/enum/enum-size-variance.stderr similarity index 100% rename from src/test/ui/enum/enum-size-variance.stderr rename to tests/ui/enum/enum-size-variance.stderr diff --git a/src/test/ui/enum/enum-to-float-cast-2.rs b/tests/ui/enum/enum-to-float-cast-2.rs similarity index 100% rename from src/test/ui/enum/enum-to-float-cast-2.rs rename to tests/ui/enum/enum-to-float-cast-2.rs diff --git a/src/test/ui/enum/enum-to-float-cast-2.stderr b/tests/ui/enum/enum-to-float-cast-2.stderr similarity index 100% rename from src/test/ui/enum/enum-to-float-cast-2.stderr rename to tests/ui/enum/enum-to-float-cast-2.stderr diff --git a/src/test/ui/enum/enum-to-float-cast.rs b/tests/ui/enum/enum-to-float-cast.rs similarity index 100% rename from src/test/ui/enum/enum-to-float-cast.rs rename to tests/ui/enum/enum-to-float-cast.rs diff --git a/src/test/ui/enum/enum-to-float-cast.stderr b/tests/ui/enum/enum-to-float-cast.stderr similarity index 100% rename from src/test/ui/enum/enum-to-float-cast.stderr rename to tests/ui/enum/enum-to-float-cast.stderr diff --git a/src/test/ui/enum/enum-variant-type-2.rs b/tests/ui/enum/enum-variant-type-2.rs similarity index 100% rename from src/test/ui/enum/enum-variant-type-2.rs rename to tests/ui/enum/enum-variant-type-2.rs diff --git a/src/test/ui/enum/enum-variant-type-2.stderr b/tests/ui/enum/enum-variant-type-2.stderr similarity index 100% rename from src/test/ui/enum/enum-variant-type-2.stderr rename to tests/ui/enum/enum-variant-type-2.stderr diff --git a/src/test/ui/enum/issue-42747.rs b/tests/ui/enum/issue-42747.rs similarity index 100% rename from src/test/ui/enum/issue-42747.rs rename to tests/ui/enum/issue-42747.rs diff --git a/src/test/ui/enum/issue-67945-1.rs b/tests/ui/enum/issue-67945-1.rs similarity index 100% rename from src/test/ui/enum/issue-67945-1.rs rename to tests/ui/enum/issue-67945-1.rs diff --git a/src/test/ui/enum/issue-67945-1.stderr b/tests/ui/enum/issue-67945-1.stderr similarity index 100% rename from src/test/ui/enum/issue-67945-1.stderr rename to tests/ui/enum/issue-67945-1.stderr diff --git a/src/test/ui/enum/issue-67945-2.rs b/tests/ui/enum/issue-67945-2.rs similarity index 100% rename from src/test/ui/enum/issue-67945-2.rs rename to tests/ui/enum/issue-67945-2.rs diff --git a/src/test/ui/enum/issue-67945-2.stderr b/tests/ui/enum/issue-67945-2.stderr similarity index 100% rename from src/test/ui/enum/issue-67945-2.stderr rename to tests/ui/enum/issue-67945-2.stderr diff --git a/src/test/ui/enum/nested-enum.rs b/tests/ui/enum/nested-enum.rs similarity index 100% rename from src/test/ui/enum/nested-enum.rs rename to tests/ui/enum/nested-enum.rs diff --git a/src/test/ui/enum/nested-enum.stderr b/tests/ui/enum/nested-enum.stderr similarity index 100% rename from src/test/ui/enum/nested-enum.stderr rename to tests/ui/enum/nested-enum.stderr diff --git a/src/test/ui/enum/suggest-default-attribute.rs b/tests/ui/enum/suggest-default-attribute.rs similarity index 100% rename from src/test/ui/enum/suggest-default-attribute.rs rename to tests/ui/enum/suggest-default-attribute.rs diff --git a/src/test/ui/enum/suggest-default-attribute.stderr b/tests/ui/enum/suggest-default-attribute.stderr similarity index 100% rename from src/test/ui/enum/suggest-default-attribute.stderr rename to tests/ui/enum/suggest-default-attribute.stderr diff --git a/src/test/ui/enum/union-in-enum.rs b/tests/ui/enum/union-in-enum.rs similarity index 100% rename from src/test/ui/enum/union-in-enum.rs rename to tests/ui/enum/union-in-enum.rs diff --git a/src/test/ui/env-args-reverse-iterator.rs b/tests/ui/env-args-reverse-iterator.rs similarity index 100% rename from src/test/ui/env-args-reverse-iterator.rs rename to tests/ui/env-args-reverse-iterator.rs diff --git a/src/test/ui/env-funky-keys.rs b/tests/ui/env-funky-keys.rs similarity index 100% rename from src/test/ui/env-funky-keys.rs rename to tests/ui/env-funky-keys.rs diff --git a/src/test/ui/env-null-vars.rs b/tests/ui/env-null-vars.rs similarity index 100% rename from src/test/ui/env-null-vars.rs rename to tests/ui/env-null-vars.rs diff --git a/src/test/ui/env-vars.rs b/tests/ui/env-vars.rs similarity index 100% rename from src/test/ui/env-vars.rs rename to tests/ui/env-vars.rs diff --git a/src/test/ui/error-codes/E0001.rs b/tests/ui/error-codes/E0001.rs similarity index 100% rename from src/test/ui/error-codes/E0001.rs rename to tests/ui/error-codes/E0001.rs diff --git a/src/test/ui/error-codes/E0001.stderr b/tests/ui/error-codes/E0001.stderr similarity index 100% rename from src/test/ui/error-codes/E0001.stderr rename to tests/ui/error-codes/E0001.stderr diff --git a/src/test/ui/error-codes/E0004-2.rs b/tests/ui/error-codes/E0004-2.rs similarity index 100% rename from src/test/ui/error-codes/E0004-2.rs rename to tests/ui/error-codes/E0004-2.rs diff --git a/src/test/ui/error-codes/E0004-2.stderr b/tests/ui/error-codes/E0004-2.stderr similarity index 100% rename from src/test/ui/error-codes/E0004-2.stderr rename to tests/ui/error-codes/E0004-2.stderr diff --git a/src/test/ui/error-codes/E0004.rs b/tests/ui/error-codes/E0004.rs similarity index 100% rename from src/test/ui/error-codes/E0004.rs rename to tests/ui/error-codes/E0004.rs diff --git a/src/test/ui/error-codes/E0004.stderr b/tests/ui/error-codes/E0004.stderr similarity index 100% rename from src/test/ui/error-codes/E0004.stderr rename to tests/ui/error-codes/E0004.stderr diff --git a/src/test/ui/error-codes/E0005.rs b/tests/ui/error-codes/E0005.rs similarity index 100% rename from src/test/ui/error-codes/E0005.rs rename to tests/ui/error-codes/E0005.rs diff --git a/src/test/ui/error-codes/E0005.stderr b/tests/ui/error-codes/E0005.stderr similarity index 100% rename from src/test/ui/error-codes/E0005.stderr rename to tests/ui/error-codes/E0005.stderr diff --git a/src/test/ui/error-codes/E0010-teach.rs b/tests/ui/error-codes/E0010-teach.rs similarity index 100% rename from src/test/ui/error-codes/E0010-teach.rs rename to tests/ui/error-codes/E0010-teach.rs diff --git a/src/test/ui/error-codes/E0010-teach.stderr b/tests/ui/error-codes/E0010-teach.stderr similarity index 100% rename from src/test/ui/error-codes/E0010-teach.stderr rename to tests/ui/error-codes/E0010-teach.stderr diff --git a/src/test/ui/error-codes/E0010.rs b/tests/ui/error-codes/E0010.rs similarity index 100% rename from src/test/ui/error-codes/E0010.rs rename to tests/ui/error-codes/E0010.rs diff --git a/src/test/ui/error-codes/E0010.stderr b/tests/ui/error-codes/E0010.stderr similarity index 100% rename from src/test/ui/error-codes/E0010.stderr rename to tests/ui/error-codes/E0010.stderr diff --git a/src/test/ui/error-codes/E0013.rs b/tests/ui/error-codes/E0013.rs similarity index 100% rename from src/test/ui/error-codes/E0013.rs rename to tests/ui/error-codes/E0013.rs diff --git a/src/test/ui/error-codes/E0013.stderr b/tests/ui/error-codes/E0013.stderr similarity index 100% rename from src/test/ui/error-codes/E0013.stderr rename to tests/ui/error-codes/E0013.stderr diff --git a/src/test/ui/error-codes/E0015.rs b/tests/ui/error-codes/E0015.rs similarity index 100% rename from src/test/ui/error-codes/E0015.rs rename to tests/ui/error-codes/E0015.rs diff --git a/src/test/ui/error-codes/E0015.stderr b/tests/ui/error-codes/E0015.stderr similarity index 100% rename from src/test/ui/error-codes/E0015.stderr rename to tests/ui/error-codes/E0015.stderr diff --git a/src/test/ui/error-codes/E0017.rs b/tests/ui/error-codes/E0017.rs similarity index 100% rename from src/test/ui/error-codes/E0017.rs rename to tests/ui/error-codes/E0017.rs diff --git a/src/test/ui/error-codes/E0017.stderr b/tests/ui/error-codes/E0017.stderr similarity index 100% rename from src/test/ui/error-codes/E0017.stderr rename to tests/ui/error-codes/E0017.stderr diff --git a/src/test/ui/error-codes/E0023.rs b/tests/ui/error-codes/E0023.rs similarity index 100% rename from src/test/ui/error-codes/E0023.rs rename to tests/ui/error-codes/E0023.rs diff --git a/src/test/ui/error-codes/E0023.stderr b/tests/ui/error-codes/E0023.stderr similarity index 100% rename from src/test/ui/error-codes/E0023.stderr rename to tests/ui/error-codes/E0023.stderr diff --git a/src/test/ui/error-codes/E0025.rs b/tests/ui/error-codes/E0025.rs similarity index 100% rename from src/test/ui/error-codes/E0025.rs rename to tests/ui/error-codes/E0025.rs diff --git a/src/test/ui/error-codes/E0025.stderr b/tests/ui/error-codes/E0025.stderr similarity index 100% rename from src/test/ui/error-codes/E0025.stderr rename to tests/ui/error-codes/E0025.stderr diff --git a/src/test/ui/error-codes/E0026-teach.rs b/tests/ui/error-codes/E0026-teach.rs similarity index 100% rename from src/test/ui/error-codes/E0026-teach.rs rename to tests/ui/error-codes/E0026-teach.rs diff --git a/src/test/ui/error-codes/E0026-teach.stderr b/tests/ui/error-codes/E0026-teach.stderr similarity index 100% rename from src/test/ui/error-codes/E0026-teach.stderr rename to tests/ui/error-codes/E0026-teach.stderr diff --git a/src/test/ui/error-codes/E0026.rs b/tests/ui/error-codes/E0026.rs similarity index 100% rename from src/test/ui/error-codes/E0026.rs rename to tests/ui/error-codes/E0026.rs diff --git a/src/test/ui/error-codes/E0026.stderr b/tests/ui/error-codes/E0026.stderr similarity index 100% rename from src/test/ui/error-codes/E0026.stderr rename to tests/ui/error-codes/E0026.stderr diff --git a/src/test/ui/error-codes/E0027.rs b/tests/ui/error-codes/E0027.rs similarity index 100% rename from src/test/ui/error-codes/E0027.rs rename to tests/ui/error-codes/E0027.rs diff --git a/src/test/ui/error-codes/E0027.stderr b/tests/ui/error-codes/E0027.stderr similarity index 100% rename from src/test/ui/error-codes/E0027.stderr rename to tests/ui/error-codes/E0027.stderr diff --git a/src/test/ui/error-codes/E0029-teach.rs b/tests/ui/error-codes/E0029-teach.rs similarity index 100% rename from src/test/ui/error-codes/E0029-teach.rs rename to tests/ui/error-codes/E0029-teach.rs diff --git a/src/test/ui/error-codes/E0029-teach.stderr b/tests/ui/error-codes/E0029-teach.stderr similarity index 100% rename from src/test/ui/error-codes/E0029-teach.stderr rename to tests/ui/error-codes/E0029-teach.stderr diff --git a/src/test/ui/error-codes/E0029.rs b/tests/ui/error-codes/E0029.rs similarity index 100% rename from src/test/ui/error-codes/E0029.rs rename to tests/ui/error-codes/E0029.rs diff --git a/src/test/ui/error-codes/E0029.stderr b/tests/ui/error-codes/E0029.stderr similarity index 100% rename from src/test/ui/error-codes/E0029.stderr rename to tests/ui/error-codes/E0029.stderr diff --git a/src/test/ui/error-codes/E0030-teach.rs b/tests/ui/error-codes/E0030-teach.rs similarity index 100% rename from src/test/ui/error-codes/E0030-teach.rs rename to tests/ui/error-codes/E0030-teach.rs diff --git a/src/test/ui/error-codes/E0030-teach.stderr b/tests/ui/error-codes/E0030-teach.stderr similarity index 100% rename from src/test/ui/error-codes/E0030-teach.stderr rename to tests/ui/error-codes/E0030-teach.stderr diff --git a/src/test/ui/error-codes/E0030.rs b/tests/ui/error-codes/E0030.rs similarity index 100% rename from src/test/ui/error-codes/E0030.rs rename to tests/ui/error-codes/E0030.rs diff --git a/src/test/ui/error-codes/E0030.stderr b/tests/ui/error-codes/E0030.stderr similarity index 100% rename from src/test/ui/error-codes/E0030.stderr rename to tests/ui/error-codes/E0030.stderr diff --git a/src/test/ui/error-codes/E0033-teach.rs b/tests/ui/error-codes/E0033-teach.rs similarity index 100% rename from src/test/ui/error-codes/E0033-teach.rs rename to tests/ui/error-codes/E0033-teach.rs diff --git a/src/test/ui/error-codes/E0033-teach.stderr b/tests/ui/error-codes/E0033-teach.stderr similarity index 100% rename from src/test/ui/error-codes/E0033-teach.stderr rename to tests/ui/error-codes/E0033-teach.stderr diff --git a/src/test/ui/error-codes/E0033.rs b/tests/ui/error-codes/E0033.rs similarity index 100% rename from src/test/ui/error-codes/E0033.rs rename to tests/ui/error-codes/E0033.rs diff --git a/src/test/ui/error-codes/E0033.stderr b/tests/ui/error-codes/E0033.stderr similarity index 100% rename from src/test/ui/error-codes/E0033.stderr rename to tests/ui/error-codes/E0033.stderr diff --git a/src/test/ui/error-codes/E0034.rs b/tests/ui/error-codes/E0034.rs similarity index 100% rename from src/test/ui/error-codes/E0034.rs rename to tests/ui/error-codes/E0034.rs diff --git a/src/test/ui/error-codes/E0034.stderr b/tests/ui/error-codes/E0034.stderr similarity index 100% rename from src/test/ui/error-codes/E0034.stderr rename to tests/ui/error-codes/E0034.stderr diff --git a/src/test/ui/error-codes/E0038.rs b/tests/ui/error-codes/E0038.rs similarity index 100% rename from src/test/ui/error-codes/E0038.rs rename to tests/ui/error-codes/E0038.rs diff --git a/src/test/ui/error-codes/E0038.stderr b/tests/ui/error-codes/E0038.stderr similarity index 100% rename from src/test/ui/error-codes/E0038.stderr rename to tests/ui/error-codes/E0038.stderr diff --git a/src/test/ui/error-codes/E0040.fixed b/tests/ui/error-codes/E0040.fixed similarity index 100% rename from src/test/ui/error-codes/E0040.fixed rename to tests/ui/error-codes/E0040.fixed diff --git a/src/test/ui/error-codes/E0040.rs b/tests/ui/error-codes/E0040.rs similarity index 100% rename from src/test/ui/error-codes/E0040.rs rename to tests/ui/error-codes/E0040.rs diff --git a/src/test/ui/error-codes/E0040.stderr b/tests/ui/error-codes/E0040.stderr similarity index 100% rename from src/test/ui/error-codes/E0040.stderr rename to tests/ui/error-codes/E0040.stderr diff --git a/src/test/ui/error-codes/E0044.rs b/tests/ui/error-codes/E0044.rs similarity index 100% rename from src/test/ui/error-codes/E0044.rs rename to tests/ui/error-codes/E0044.rs diff --git a/src/test/ui/error-codes/E0044.stderr b/tests/ui/error-codes/E0044.stderr similarity index 100% rename from src/test/ui/error-codes/E0044.stderr rename to tests/ui/error-codes/E0044.stderr diff --git a/src/test/ui/error-codes/E0045.rs b/tests/ui/error-codes/E0045.rs similarity index 100% rename from src/test/ui/error-codes/E0045.rs rename to tests/ui/error-codes/E0045.rs diff --git a/src/test/ui/error-codes/E0045.stderr b/tests/ui/error-codes/E0045.stderr similarity index 100% rename from src/test/ui/error-codes/E0045.stderr rename to tests/ui/error-codes/E0045.stderr diff --git a/src/test/ui/error-codes/E0049.rs b/tests/ui/error-codes/E0049.rs similarity index 100% rename from src/test/ui/error-codes/E0049.rs rename to tests/ui/error-codes/E0049.rs diff --git a/src/test/ui/error-codes/E0049.stderr b/tests/ui/error-codes/E0049.stderr similarity index 100% rename from src/test/ui/error-codes/E0049.stderr rename to tests/ui/error-codes/E0049.stderr diff --git a/src/test/ui/error-codes/E0050.rs b/tests/ui/error-codes/E0050.rs similarity index 100% rename from src/test/ui/error-codes/E0050.rs rename to tests/ui/error-codes/E0050.rs diff --git a/src/test/ui/error-codes/E0050.stderr b/tests/ui/error-codes/E0050.stderr similarity index 100% rename from src/test/ui/error-codes/E0050.stderr rename to tests/ui/error-codes/E0050.stderr diff --git a/src/test/ui/error-codes/E0054.rs b/tests/ui/error-codes/E0054.rs similarity index 100% rename from src/test/ui/error-codes/E0054.rs rename to tests/ui/error-codes/E0054.rs diff --git a/src/test/ui/error-codes/E0054.stderr b/tests/ui/error-codes/E0054.stderr similarity index 100% rename from src/test/ui/error-codes/E0054.stderr rename to tests/ui/error-codes/E0054.stderr diff --git a/src/test/ui/error-codes/E0055.rs b/tests/ui/error-codes/E0055.rs similarity index 100% rename from src/test/ui/error-codes/E0055.rs rename to tests/ui/error-codes/E0055.rs diff --git a/src/test/ui/error-codes/E0055.stderr b/tests/ui/error-codes/E0055.stderr similarity index 100% rename from src/test/ui/error-codes/E0055.stderr rename to tests/ui/error-codes/E0055.stderr diff --git a/src/test/ui/error-codes/E0057.rs b/tests/ui/error-codes/E0057.rs similarity index 100% rename from src/test/ui/error-codes/E0057.rs rename to tests/ui/error-codes/E0057.rs diff --git a/src/test/ui/error-codes/E0057.stderr b/tests/ui/error-codes/E0057.stderr similarity index 100% rename from src/test/ui/error-codes/E0057.stderr rename to tests/ui/error-codes/E0057.stderr diff --git a/src/test/ui/error-codes/E0059.rs b/tests/ui/error-codes/E0059.rs similarity index 100% rename from src/test/ui/error-codes/E0059.rs rename to tests/ui/error-codes/E0059.rs diff --git a/src/test/ui/error-codes/E0059.stderr b/tests/ui/error-codes/E0059.stderr similarity index 100% rename from src/test/ui/error-codes/E0059.stderr rename to tests/ui/error-codes/E0059.stderr diff --git a/src/test/ui/error-codes/E0060.rs b/tests/ui/error-codes/E0060.rs similarity index 100% rename from src/test/ui/error-codes/E0060.rs rename to tests/ui/error-codes/E0060.rs diff --git a/src/test/ui/error-codes/E0060.stderr b/tests/ui/error-codes/E0060.stderr similarity index 100% rename from src/test/ui/error-codes/E0060.stderr rename to tests/ui/error-codes/E0060.stderr diff --git a/src/test/ui/error-codes/E0061.rs b/tests/ui/error-codes/E0061.rs similarity index 100% rename from src/test/ui/error-codes/E0061.rs rename to tests/ui/error-codes/E0061.rs diff --git a/src/test/ui/error-codes/E0061.stderr b/tests/ui/error-codes/E0061.stderr similarity index 100% rename from src/test/ui/error-codes/E0061.stderr rename to tests/ui/error-codes/E0061.stderr diff --git a/src/test/ui/error-codes/E0062.rs b/tests/ui/error-codes/E0062.rs similarity index 100% rename from src/test/ui/error-codes/E0062.rs rename to tests/ui/error-codes/E0062.rs diff --git a/src/test/ui/error-codes/E0062.stderr b/tests/ui/error-codes/E0062.stderr similarity index 100% rename from src/test/ui/error-codes/E0062.stderr rename to tests/ui/error-codes/E0062.stderr diff --git a/src/test/ui/error-codes/E0063.rs b/tests/ui/error-codes/E0063.rs similarity index 100% rename from src/test/ui/error-codes/E0063.rs rename to tests/ui/error-codes/E0063.rs diff --git a/src/test/ui/error-codes/E0063.stderr b/tests/ui/error-codes/E0063.stderr similarity index 100% rename from src/test/ui/error-codes/E0063.stderr rename to tests/ui/error-codes/E0063.stderr diff --git a/src/test/ui/error-codes/E0067.rs b/tests/ui/error-codes/E0067.rs similarity index 100% rename from src/test/ui/error-codes/E0067.rs rename to tests/ui/error-codes/E0067.rs diff --git a/src/test/ui/error-codes/E0067.stderr b/tests/ui/error-codes/E0067.stderr similarity index 100% rename from src/test/ui/error-codes/E0067.stderr rename to tests/ui/error-codes/E0067.stderr diff --git a/src/test/ui/error-codes/E0069.rs b/tests/ui/error-codes/E0069.rs similarity index 100% rename from src/test/ui/error-codes/E0069.rs rename to tests/ui/error-codes/E0069.rs diff --git a/src/test/ui/error-codes/E0069.stderr b/tests/ui/error-codes/E0069.stderr similarity index 100% rename from src/test/ui/error-codes/E0069.stderr rename to tests/ui/error-codes/E0069.stderr diff --git a/src/test/ui/error-codes/E0070.rs b/tests/ui/error-codes/E0070.rs similarity index 100% rename from src/test/ui/error-codes/E0070.rs rename to tests/ui/error-codes/E0070.rs diff --git a/src/test/ui/error-codes/E0070.stderr b/tests/ui/error-codes/E0070.stderr similarity index 100% rename from src/test/ui/error-codes/E0070.stderr rename to tests/ui/error-codes/E0070.stderr diff --git a/src/test/ui/error-codes/E0071.rs b/tests/ui/error-codes/E0071.rs similarity index 100% rename from src/test/ui/error-codes/E0071.rs rename to tests/ui/error-codes/E0071.rs diff --git a/src/test/ui/error-codes/E0071.stderr b/tests/ui/error-codes/E0071.stderr similarity index 100% rename from src/test/ui/error-codes/E0071.stderr rename to tests/ui/error-codes/E0071.stderr diff --git a/src/test/ui/error-codes/E0075.rs b/tests/ui/error-codes/E0075.rs similarity index 100% rename from src/test/ui/error-codes/E0075.rs rename to tests/ui/error-codes/E0075.rs diff --git a/src/test/ui/error-codes/E0075.stderr b/tests/ui/error-codes/E0075.stderr similarity index 100% rename from src/test/ui/error-codes/E0075.stderr rename to tests/ui/error-codes/E0075.stderr diff --git a/src/test/ui/error-codes/E0076.rs b/tests/ui/error-codes/E0076.rs similarity index 100% rename from src/test/ui/error-codes/E0076.rs rename to tests/ui/error-codes/E0076.rs diff --git a/src/test/ui/error-codes/E0076.stderr b/tests/ui/error-codes/E0076.stderr similarity index 100% rename from src/test/ui/error-codes/E0076.stderr rename to tests/ui/error-codes/E0076.stderr diff --git a/src/test/ui/error-codes/E0077.rs b/tests/ui/error-codes/E0077.rs similarity index 100% rename from src/test/ui/error-codes/E0077.rs rename to tests/ui/error-codes/E0077.rs diff --git a/src/test/ui/error-codes/E0077.stderr b/tests/ui/error-codes/E0077.stderr similarity index 100% rename from src/test/ui/error-codes/E0077.stderr rename to tests/ui/error-codes/E0077.stderr diff --git a/src/test/ui/error-codes/E0080.rs b/tests/ui/error-codes/E0080.rs similarity index 100% rename from src/test/ui/error-codes/E0080.rs rename to tests/ui/error-codes/E0080.rs diff --git a/src/test/ui/error-codes/E0080.stderr b/tests/ui/error-codes/E0080.stderr similarity index 100% rename from src/test/ui/error-codes/E0080.stderr rename to tests/ui/error-codes/E0080.stderr diff --git a/src/test/ui/error-codes/E0081.rs b/tests/ui/error-codes/E0081.rs similarity index 100% rename from src/test/ui/error-codes/E0081.rs rename to tests/ui/error-codes/E0081.rs diff --git a/src/test/ui/error-codes/E0081.stderr b/tests/ui/error-codes/E0081.stderr similarity index 100% rename from src/test/ui/error-codes/E0081.stderr rename to tests/ui/error-codes/E0081.stderr diff --git a/src/test/ui/error-codes/E0084.rs b/tests/ui/error-codes/E0084.rs similarity index 100% rename from src/test/ui/error-codes/E0084.rs rename to tests/ui/error-codes/E0084.rs diff --git a/src/test/ui/error-codes/E0084.stderr b/tests/ui/error-codes/E0084.stderr similarity index 100% rename from src/test/ui/error-codes/E0084.stderr rename to tests/ui/error-codes/E0084.stderr diff --git a/src/test/ui/error-codes/E0091.rs b/tests/ui/error-codes/E0091.rs similarity index 100% rename from src/test/ui/error-codes/E0091.rs rename to tests/ui/error-codes/E0091.rs diff --git a/src/test/ui/error-codes/E0091.stderr b/tests/ui/error-codes/E0091.stderr similarity index 100% rename from src/test/ui/error-codes/E0091.stderr rename to tests/ui/error-codes/E0091.stderr diff --git a/src/test/ui/error-codes/E0092.rs b/tests/ui/error-codes/E0092.rs similarity index 100% rename from src/test/ui/error-codes/E0092.rs rename to tests/ui/error-codes/E0092.rs diff --git a/src/test/ui/error-codes/E0092.stderr b/tests/ui/error-codes/E0092.stderr similarity index 100% rename from src/test/ui/error-codes/E0092.stderr rename to tests/ui/error-codes/E0092.stderr diff --git a/src/test/ui/error-codes/E0093.rs b/tests/ui/error-codes/E0093.rs similarity index 100% rename from src/test/ui/error-codes/E0093.rs rename to tests/ui/error-codes/E0093.rs diff --git a/src/test/ui/error-codes/E0093.stderr b/tests/ui/error-codes/E0093.stderr similarity index 100% rename from src/test/ui/error-codes/E0093.stderr rename to tests/ui/error-codes/E0093.stderr diff --git a/src/test/ui/error-codes/E0094.rs b/tests/ui/error-codes/E0094.rs similarity index 100% rename from src/test/ui/error-codes/E0094.rs rename to tests/ui/error-codes/E0094.rs diff --git a/src/test/ui/error-codes/E0094.stderr b/tests/ui/error-codes/E0094.stderr similarity index 100% rename from src/test/ui/error-codes/E0094.stderr rename to tests/ui/error-codes/E0094.stderr diff --git a/src/test/ui/error-codes/E0106.rs b/tests/ui/error-codes/E0106.rs similarity index 100% rename from src/test/ui/error-codes/E0106.rs rename to tests/ui/error-codes/E0106.rs diff --git a/src/test/ui/error-codes/E0106.stderr b/tests/ui/error-codes/E0106.stderr similarity index 100% rename from src/test/ui/error-codes/E0106.stderr rename to tests/ui/error-codes/E0106.stderr diff --git a/src/test/ui/error-codes/E0107.rs b/tests/ui/error-codes/E0107.rs similarity index 100% rename from src/test/ui/error-codes/E0107.rs rename to tests/ui/error-codes/E0107.rs diff --git a/src/test/ui/error-codes/E0107.stderr b/tests/ui/error-codes/E0107.stderr similarity index 100% rename from src/test/ui/error-codes/E0107.stderr rename to tests/ui/error-codes/E0107.stderr diff --git a/src/test/ui/error-codes/E0109.rs b/tests/ui/error-codes/E0109.rs similarity index 100% rename from src/test/ui/error-codes/E0109.rs rename to tests/ui/error-codes/E0109.rs diff --git a/src/test/ui/error-codes/E0109.stderr b/tests/ui/error-codes/E0109.stderr similarity index 100% rename from src/test/ui/error-codes/E0109.stderr rename to tests/ui/error-codes/E0109.stderr diff --git a/src/test/ui/error-codes/E0110.rs b/tests/ui/error-codes/E0110.rs similarity index 100% rename from src/test/ui/error-codes/E0110.rs rename to tests/ui/error-codes/E0110.rs diff --git a/src/test/ui/error-codes/E0110.stderr b/tests/ui/error-codes/E0110.stderr similarity index 100% rename from src/test/ui/error-codes/E0110.stderr rename to tests/ui/error-codes/E0110.stderr diff --git a/src/test/ui/error-codes/E0116.rs b/tests/ui/error-codes/E0116.rs similarity index 100% rename from src/test/ui/error-codes/E0116.rs rename to tests/ui/error-codes/E0116.rs diff --git a/src/test/ui/error-codes/E0116.stderr b/tests/ui/error-codes/E0116.stderr similarity index 100% rename from src/test/ui/error-codes/E0116.stderr rename to tests/ui/error-codes/E0116.stderr diff --git a/src/test/ui/error-codes/E0117.rs b/tests/ui/error-codes/E0117.rs similarity index 100% rename from src/test/ui/error-codes/E0117.rs rename to tests/ui/error-codes/E0117.rs diff --git a/src/test/ui/error-codes/E0117.stderr b/tests/ui/error-codes/E0117.stderr similarity index 100% rename from src/test/ui/error-codes/E0117.stderr rename to tests/ui/error-codes/E0117.stderr diff --git a/src/test/ui/error-codes/E0118.rs b/tests/ui/error-codes/E0118.rs similarity index 100% rename from src/test/ui/error-codes/E0118.rs rename to tests/ui/error-codes/E0118.rs diff --git a/src/test/ui/error-codes/E0118.stderr b/tests/ui/error-codes/E0118.stderr similarity index 100% rename from src/test/ui/error-codes/E0118.stderr rename to tests/ui/error-codes/E0118.stderr diff --git a/src/test/ui/error-codes/E0119.rs b/tests/ui/error-codes/E0119.rs similarity index 100% rename from src/test/ui/error-codes/E0119.rs rename to tests/ui/error-codes/E0119.rs diff --git a/src/test/ui/error-codes/E0119.stderr b/tests/ui/error-codes/E0119.stderr similarity index 100% rename from src/test/ui/error-codes/E0119.stderr rename to tests/ui/error-codes/E0119.stderr diff --git a/src/test/ui/error-codes/E0120.rs b/tests/ui/error-codes/E0120.rs similarity index 100% rename from src/test/ui/error-codes/E0120.rs rename to tests/ui/error-codes/E0120.rs diff --git a/src/test/ui/error-codes/E0120.stderr b/tests/ui/error-codes/E0120.stderr similarity index 100% rename from src/test/ui/error-codes/E0120.stderr rename to tests/ui/error-codes/E0120.stderr diff --git a/src/test/ui/error-codes/E0121.rs b/tests/ui/error-codes/E0121.rs similarity index 100% rename from src/test/ui/error-codes/E0121.rs rename to tests/ui/error-codes/E0121.rs diff --git a/src/test/ui/error-codes/E0121.stderr b/tests/ui/error-codes/E0121.stderr similarity index 100% rename from src/test/ui/error-codes/E0121.stderr rename to tests/ui/error-codes/E0121.stderr diff --git a/src/test/ui/error-codes/E0124.rs b/tests/ui/error-codes/E0124.rs similarity index 100% rename from src/test/ui/error-codes/E0124.rs rename to tests/ui/error-codes/E0124.rs diff --git a/src/test/ui/error-codes/E0124.stderr b/tests/ui/error-codes/E0124.stderr similarity index 100% rename from src/test/ui/error-codes/E0124.stderr rename to tests/ui/error-codes/E0124.stderr diff --git a/src/test/ui/error-codes/E0128.rs b/tests/ui/error-codes/E0128.rs similarity index 100% rename from src/test/ui/error-codes/E0128.rs rename to tests/ui/error-codes/E0128.rs diff --git a/src/test/ui/error-codes/E0128.stderr b/tests/ui/error-codes/E0128.stderr similarity index 100% rename from src/test/ui/error-codes/E0128.stderr rename to tests/ui/error-codes/E0128.stderr diff --git a/src/test/ui/error-codes/E0130.rs b/tests/ui/error-codes/E0130.rs similarity index 100% rename from src/test/ui/error-codes/E0130.rs rename to tests/ui/error-codes/E0130.rs diff --git a/src/test/ui/error-codes/E0130.stderr b/tests/ui/error-codes/E0130.stderr similarity index 100% rename from src/test/ui/error-codes/E0130.stderr rename to tests/ui/error-codes/E0130.stderr diff --git a/src/test/ui/error-codes/E0131.rs b/tests/ui/error-codes/E0131.rs similarity index 100% rename from src/test/ui/error-codes/E0131.rs rename to tests/ui/error-codes/E0131.rs diff --git a/src/test/ui/error-codes/E0131.stderr b/tests/ui/error-codes/E0131.stderr similarity index 100% rename from src/test/ui/error-codes/E0131.stderr rename to tests/ui/error-codes/E0131.stderr diff --git a/src/test/ui/error-codes/E0132.rs b/tests/ui/error-codes/E0132.rs similarity index 100% rename from src/test/ui/error-codes/E0132.rs rename to tests/ui/error-codes/E0132.rs diff --git a/src/test/ui/error-codes/E0132.stderr b/tests/ui/error-codes/E0132.stderr similarity index 100% rename from src/test/ui/error-codes/E0132.stderr rename to tests/ui/error-codes/E0132.stderr diff --git a/src/test/ui/error-codes/E0133.mir.stderr b/tests/ui/error-codes/E0133.mir.stderr similarity index 100% rename from src/test/ui/error-codes/E0133.mir.stderr rename to tests/ui/error-codes/E0133.mir.stderr diff --git a/src/test/ui/error-codes/E0133.rs b/tests/ui/error-codes/E0133.rs similarity index 100% rename from src/test/ui/error-codes/E0133.rs rename to tests/ui/error-codes/E0133.rs diff --git a/src/test/ui/error-codes/E0133.thir.stderr b/tests/ui/error-codes/E0133.thir.stderr similarity index 100% rename from src/test/ui/error-codes/E0133.thir.stderr rename to tests/ui/error-codes/E0133.thir.stderr diff --git a/src/test/ui/error-codes/E0138.rs b/tests/ui/error-codes/E0138.rs similarity index 100% rename from src/test/ui/error-codes/E0138.rs rename to tests/ui/error-codes/E0138.rs diff --git a/src/test/ui/error-codes/E0138.stderr b/tests/ui/error-codes/E0138.stderr similarity index 100% rename from src/test/ui/error-codes/E0138.stderr rename to tests/ui/error-codes/E0138.stderr diff --git a/src/test/ui/error-codes/E0152.rs b/tests/ui/error-codes/E0152.rs similarity index 100% rename from src/test/ui/error-codes/E0152.rs rename to tests/ui/error-codes/E0152.rs diff --git a/src/test/ui/error-codes/E0152.stderr b/tests/ui/error-codes/E0152.stderr similarity index 100% rename from src/test/ui/error-codes/E0152.stderr rename to tests/ui/error-codes/E0152.stderr diff --git a/src/test/ui/error-codes/E0161.base.stderr b/tests/ui/error-codes/E0161.base.stderr similarity index 100% rename from src/test/ui/error-codes/E0161.base.stderr rename to tests/ui/error-codes/E0161.base.stderr diff --git a/src/test/ui/error-codes/E0161.rs b/tests/ui/error-codes/E0161.rs similarity index 100% rename from src/test/ui/error-codes/E0161.rs rename to tests/ui/error-codes/E0161.rs diff --git a/src/test/ui/error-codes/E0164.rs b/tests/ui/error-codes/E0164.rs similarity index 100% rename from src/test/ui/error-codes/E0164.rs rename to tests/ui/error-codes/E0164.rs diff --git a/src/test/ui/error-codes/E0164.stderr b/tests/ui/error-codes/E0164.stderr similarity index 100% rename from src/test/ui/error-codes/E0164.stderr rename to tests/ui/error-codes/E0164.stderr diff --git a/src/test/ui/error-codes/E0184.rs b/tests/ui/error-codes/E0184.rs similarity index 100% rename from src/test/ui/error-codes/E0184.rs rename to tests/ui/error-codes/E0184.rs diff --git a/src/test/ui/error-codes/E0184.stderr b/tests/ui/error-codes/E0184.stderr similarity index 100% rename from src/test/ui/error-codes/E0184.stderr rename to tests/ui/error-codes/E0184.stderr diff --git a/src/test/ui/error-codes/E0185.rs b/tests/ui/error-codes/E0185.rs similarity index 100% rename from src/test/ui/error-codes/E0185.rs rename to tests/ui/error-codes/E0185.rs diff --git a/src/test/ui/error-codes/E0185.stderr b/tests/ui/error-codes/E0185.stderr similarity index 100% rename from src/test/ui/error-codes/E0185.stderr rename to tests/ui/error-codes/E0185.stderr diff --git a/src/test/ui/error-codes/E0186.rs b/tests/ui/error-codes/E0186.rs similarity index 100% rename from src/test/ui/error-codes/E0186.rs rename to tests/ui/error-codes/E0186.rs diff --git a/src/test/ui/error-codes/E0186.stderr b/tests/ui/error-codes/E0186.stderr similarity index 100% rename from src/test/ui/error-codes/E0186.stderr rename to tests/ui/error-codes/E0186.stderr diff --git a/src/test/ui/error-codes/E0191.rs b/tests/ui/error-codes/E0191.rs similarity index 100% rename from src/test/ui/error-codes/E0191.rs rename to tests/ui/error-codes/E0191.rs diff --git a/src/test/ui/error-codes/E0191.stderr b/tests/ui/error-codes/E0191.stderr similarity index 100% rename from src/test/ui/error-codes/E0191.stderr rename to tests/ui/error-codes/E0191.stderr diff --git a/src/test/ui/error-codes/E0194.rs b/tests/ui/error-codes/E0194.rs similarity index 100% rename from src/test/ui/error-codes/E0194.rs rename to tests/ui/error-codes/E0194.rs diff --git a/src/test/ui/error-codes/E0194.stderr b/tests/ui/error-codes/E0194.stderr similarity index 100% rename from src/test/ui/error-codes/E0194.stderr rename to tests/ui/error-codes/E0194.stderr diff --git a/src/test/ui/error-codes/E0195.rs b/tests/ui/error-codes/E0195.rs similarity index 100% rename from src/test/ui/error-codes/E0195.rs rename to tests/ui/error-codes/E0195.rs diff --git a/src/test/ui/error-codes/E0195.stderr b/tests/ui/error-codes/E0195.stderr similarity index 100% rename from src/test/ui/error-codes/E0195.stderr rename to tests/ui/error-codes/E0195.stderr diff --git a/src/test/ui/error-codes/E0197.rs b/tests/ui/error-codes/E0197.rs similarity index 100% rename from src/test/ui/error-codes/E0197.rs rename to tests/ui/error-codes/E0197.rs diff --git a/src/test/ui/error-codes/E0197.stderr b/tests/ui/error-codes/E0197.stderr similarity index 100% rename from src/test/ui/error-codes/E0197.stderr rename to tests/ui/error-codes/E0197.stderr diff --git a/src/test/ui/error-codes/E0198.rs b/tests/ui/error-codes/E0198.rs similarity index 100% rename from src/test/ui/error-codes/E0198.rs rename to tests/ui/error-codes/E0198.rs diff --git a/src/test/ui/error-codes/E0198.stderr b/tests/ui/error-codes/E0198.stderr similarity index 100% rename from src/test/ui/error-codes/E0198.stderr rename to tests/ui/error-codes/E0198.stderr diff --git a/src/test/ui/error-codes/E0199.rs b/tests/ui/error-codes/E0199.rs similarity index 100% rename from src/test/ui/error-codes/E0199.rs rename to tests/ui/error-codes/E0199.rs diff --git a/src/test/ui/error-codes/E0199.stderr b/tests/ui/error-codes/E0199.stderr similarity index 100% rename from src/test/ui/error-codes/E0199.stderr rename to tests/ui/error-codes/E0199.stderr diff --git a/src/test/ui/error-codes/E0200.rs b/tests/ui/error-codes/E0200.rs similarity index 100% rename from src/test/ui/error-codes/E0200.rs rename to tests/ui/error-codes/E0200.rs diff --git a/src/test/ui/error-codes/E0200.stderr b/tests/ui/error-codes/E0200.stderr similarity index 100% rename from src/test/ui/error-codes/E0200.stderr rename to tests/ui/error-codes/E0200.stderr diff --git a/src/test/ui/error-codes/E0201.rs b/tests/ui/error-codes/E0201.rs similarity index 100% rename from src/test/ui/error-codes/E0201.rs rename to tests/ui/error-codes/E0201.rs diff --git a/src/test/ui/error-codes/E0201.stderr b/tests/ui/error-codes/E0201.stderr similarity index 100% rename from src/test/ui/error-codes/E0201.stderr rename to tests/ui/error-codes/E0201.stderr diff --git a/src/test/ui/error-codes/E0206.rs b/tests/ui/error-codes/E0206.rs similarity index 100% rename from src/test/ui/error-codes/E0206.rs rename to tests/ui/error-codes/E0206.rs diff --git a/src/test/ui/error-codes/E0206.stderr b/tests/ui/error-codes/E0206.stderr similarity index 100% rename from src/test/ui/error-codes/E0206.stderr rename to tests/ui/error-codes/E0206.stderr diff --git a/src/test/ui/error-codes/E0207.rs b/tests/ui/error-codes/E0207.rs similarity index 100% rename from src/test/ui/error-codes/E0207.rs rename to tests/ui/error-codes/E0207.rs diff --git a/src/test/ui/error-codes/E0207.stderr b/tests/ui/error-codes/E0207.stderr similarity index 100% rename from src/test/ui/error-codes/E0207.stderr rename to tests/ui/error-codes/E0207.stderr diff --git a/src/test/ui/error-codes/E0214.rs b/tests/ui/error-codes/E0214.rs similarity index 100% rename from src/test/ui/error-codes/E0214.rs rename to tests/ui/error-codes/E0214.rs diff --git a/src/test/ui/error-codes/E0214.stderr b/tests/ui/error-codes/E0214.stderr similarity index 100% rename from src/test/ui/error-codes/E0214.stderr rename to tests/ui/error-codes/E0214.stderr diff --git a/src/test/ui/error-codes/E0220.rs b/tests/ui/error-codes/E0220.rs similarity index 100% rename from src/test/ui/error-codes/E0220.rs rename to tests/ui/error-codes/E0220.rs diff --git a/src/test/ui/error-codes/E0220.stderr b/tests/ui/error-codes/E0220.stderr similarity index 100% rename from src/test/ui/error-codes/E0220.stderr rename to tests/ui/error-codes/E0220.stderr diff --git a/src/test/ui/error-codes/E0221.rs b/tests/ui/error-codes/E0221.rs similarity index 100% rename from src/test/ui/error-codes/E0221.rs rename to tests/ui/error-codes/E0221.rs diff --git a/src/test/ui/error-codes/E0221.stderr b/tests/ui/error-codes/E0221.stderr similarity index 100% rename from src/test/ui/error-codes/E0221.stderr rename to tests/ui/error-codes/E0221.stderr diff --git a/src/test/ui/error-codes/E0223.rs b/tests/ui/error-codes/E0223.rs similarity index 100% rename from src/test/ui/error-codes/E0223.rs rename to tests/ui/error-codes/E0223.rs diff --git a/src/test/ui/error-codes/E0223.stderr b/tests/ui/error-codes/E0223.stderr similarity index 100% rename from src/test/ui/error-codes/E0223.stderr rename to tests/ui/error-codes/E0223.stderr diff --git a/src/test/ui/error-codes/E0225.rs b/tests/ui/error-codes/E0225.rs similarity index 100% rename from src/test/ui/error-codes/E0225.rs rename to tests/ui/error-codes/E0225.rs diff --git a/src/test/ui/error-codes/E0225.stderr b/tests/ui/error-codes/E0225.stderr similarity index 100% rename from src/test/ui/error-codes/E0225.stderr rename to tests/ui/error-codes/E0225.stderr diff --git a/src/test/ui/error-codes/E0227.rs b/tests/ui/error-codes/E0227.rs similarity index 100% rename from src/test/ui/error-codes/E0227.rs rename to tests/ui/error-codes/E0227.rs diff --git a/src/test/ui/error-codes/E0227.stderr b/tests/ui/error-codes/E0227.stderr similarity index 100% rename from src/test/ui/error-codes/E0227.stderr rename to tests/ui/error-codes/E0227.stderr diff --git a/src/test/ui/error-codes/E0229.rs b/tests/ui/error-codes/E0229.rs similarity index 100% rename from src/test/ui/error-codes/E0229.rs rename to tests/ui/error-codes/E0229.rs diff --git a/src/test/ui/error-codes/E0229.stderr b/tests/ui/error-codes/E0229.stderr similarity index 100% rename from src/test/ui/error-codes/E0229.stderr rename to tests/ui/error-codes/E0229.stderr diff --git a/src/test/ui/error-codes/E0252.rs b/tests/ui/error-codes/E0252.rs similarity index 100% rename from src/test/ui/error-codes/E0252.rs rename to tests/ui/error-codes/E0252.rs diff --git a/src/test/ui/error-codes/E0252.stderr b/tests/ui/error-codes/E0252.stderr similarity index 100% rename from src/test/ui/error-codes/E0252.stderr rename to tests/ui/error-codes/E0252.stderr diff --git a/src/test/ui/error-codes/E0253.rs b/tests/ui/error-codes/E0253.rs similarity index 100% rename from src/test/ui/error-codes/E0253.rs rename to tests/ui/error-codes/E0253.rs diff --git a/src/test/ui/error-codes/E0253.stderr b/tests/ui/error-codes/E0253.stderr similarity index 100% rename from src/test/ui/error-codes/E0253.stderr rename to tests/ui/error-codes/E0253.stderr diff --git a/src/test/ui/error-codes/E0254.rs b/tests/ui/error-codes/E0254.rs similarity index 100% rename from src/test/ui/error-codes/E0254.rs rename to tests/ui/error-codes/E0254.rs diff --git a/src/test/ui/error-codes/E0254.stderr b/tests/ui/error-codes/E0254.stderr similarity index 100% rename from src/test/ui/error-codes/E0254.stderr rename to tests/ui/error-codes/E0254.stderr diff --git a/src/test/ui/error-codes/E0255.rs b/tests/ui/error-codes/E0255.rs similarity index 100% rename from src/test/ui/error-codes/E0255.rs rename to tests/ui/error-codes/E0255.rs diff --git a/src/test/ui/error-codes/E0255.stderr b/tests/ui/error-codes/E0255.stderr similarity index 100% rename from src/test/ui/error-codes/E0255.stderr rename to tests/ui/error-codes/E0255.stderr diff --git a/src/test/ui/error-codes/E0259.rs b/tests/ui/error-codes/E0259.rs similarity index 100% rename from src/test/ui/error-codes/E0259.rs rename to tests/ui/error-codes/E0259.rs diff --git a/src/test/ui/error-codes/E0259.stderr b/tests/ui/error-codes/E0259.stderr similarity index 100% rename from src/test/ui/error-codes/E0259.stderr rename to tests/ui/error-codes/E0259.stderr diff --git a/src/test/ui/error-codes/E0260.rs b/tests/ui/error-codes/E0260.rs similarity index 100% rename from src/test/ui/error-codes/E0260.rs rename to tests/ui/error-codes/E0260.rs diff --git a/src/test/ui/error-codes/E0260.stderr b/tests/ui/error-codes/E0260.stderr similarity index 100% rename from src/test/ui/error-codes/E0260.stderr rename to tests/ui/error-codes/E0260.stderr diff --git a/src/test/ui/error-codes/E0261.rs b/tests/ui/error-codes/E0261.rs similarity index 100% rename from src/test/ui/error-codes/E0261.rs rename to tests/ui/error-codes/E0261.rs diff --git a/src/test/ui/error-codes/E0261.stderr b/tests/ui/error-codes/E0261.stderr similarity index 100% rename from src/test/ui/error-codes/E0261.stderr rename to tests/ui/error-codes/E0261.stderr diff --git a/src/test/ui/error-codes/E0262.rs b/tests/ui/error-codes/E0262.rs similarity index 100% rename from src/test/ui/error-codes/E0262.rs rename to tests/ui/error-codes/E0262.rs diff --git a/src/test/ui/error-codes/E0262.stderr b/tests/ui/error-codes/E0262.stderr similarity index 100% rename from src/test/ui/error-codes/E0262.stderr rename to tests/ui/error-codes/E0262.stderr diff --git a/src/test/ui/error-codes/E0263.rs b/tests/ui/error-codes/E0263.rs similarity index 100% rename from src/test/ui/error-codes/E0263.rs rename to tests/ui/error-codes/E0263.rs diff --git a/src/test/ui/error-codes/E0263.stderr b/tests/ui/error-codes/E0263.stderr similarity index 100% rename from src/test/ui/error-codes/E0263.stderr rename to tests/ui/error-codes/E0263.stderr diff --git a/src/test/ui/error-codes/E0264.rs b/tests/ui/error-codes/E0264.rs similarity index 100% rename from src/test/ui/error-codes/E0264.rs rename to tests/ui/error-codes/E0264.rs diff --git a/src/test/ui/error-codes/E0264.stderr b/tests/ui/error-codes/E0264.stderr similarity index 100% rename from src/test/ui/error-codes/E0264.stderr rename to tests/ui/error-codes/E0264.stderr diff --git a/src/test/ui/error-codes/E0267.rs b/tests/ui/error-codes/E0267.rs similarity index 100% rename from src/test/ui/error-codes/E0267.rs rename to tests/ui/error-codes/E0267.rs diff --git a/src/test/ui/error-codes/E0267.stderr b/tests/ui/error-codes/E0267.stderr similarity index 100% rename from src/test/ui/error-codes/E0267.stderr rename to tests/ui/error-codes/E0267.stderr diff --git a/src/test/ui/error-codes/E0268.rs b/tests/ui/error-codes/E0268.rs similarity index 100% rename from src/test/ui/error-codes/E0268.rs rename to tests/ui/error-codes/E0268.rs diff --git a/src/test/ui/error-codes/E0268.stderr b/tests/ui/error-codes/E0268.stderr similarity index 100% rename from src/test/ui/error-codes/E0268.stderr rename to tests/ui/error-codes/E0268.stderr diff --git a/src/test/ui/error-codes/E0271.rs b/tests/ui/error-codes/E0271.rs similarity index 100% rename from src/test/ui/error-codes/E0271.rs rename to tests/ui/error-codes/E0271.rs diff --git a/src/test/ui/error-codes/E0271.stderr b/tests/ui/error-codes/E0271.stderr similarity index 100% rename from src/test/ui/error-codes/E0271.stderr rename to tests/ui/error-codes/E0271.stderr diff --git a/src/test/ui/error-codes/E0275.rs b/tests/ui/error-codes/E0275.rs similarity index 100% rename from src/test/ui/error-codes/E0275.rs rename to tests/ui/error-codes/E0275.rs diff --git a/src/test/ui/error-codes/E0275.stderr b/tests/ui/error-codes/E0275.stderr similarity index 100% rename from src/test/ui/error-codes/E0275.stderr rename to tests/ui/error-codes/E0275.stderr diff --git a/src/test/ui/error-codes/E0276.rs b/tests/ui/error-codes/E0276.rs similarity index 100% rename from src/test/ui/error-codes/E0276.rs rename to tests/ui/error-codes/E0276.rs diff --git a/src/test/ui/error-codes/E0276.stderr b/tests/ui/error-codes/E0276.stderr similarity index 100% rename from src/test/ui/error-codes/E0276.stderr rename to tests/ui/error-codes/E0276.stderr diff --git a/src/test/ui/error-codes/E0277-2.rs b/tests/ui/error-codes/E0277-2.rs similarity index 100% rename from src/test/ui/error-codes/E0277-2.rs rename to tests/ui/error-codes/E0277-2.rs diff --git a/src/test/ui/error-codes/E0277-2.stderr b/tests/ui/error-codes/E0277-2.stderr similarity index 100% rename from src/test/ui/error-codes/E0277-2.stderr rename to tests/ui/error-codes/E0277-2.stderr diff --git a/src/test/ui/error-codes/E0277-3.rs b/tests/ui/error-codes/E0277-3.rs similarity index 100% rename from src/test/ui/error-codes/E0277-3.rs rename to tests/ui/error-codes/E0277-3.rs diff --git a/src/test/ui/error-codes/E0277-3.stderr b/tests/ui/error-codes/E0277-3.stderr similarity index 100% rename from src/test/ui/error-codes/E0277-3.stderr rename to tests/ui/error-codes/E0277-3.stderr diff --git a/src/test/ui/error-codes/E0277.rs b/tests/ui/error-codes/E0277.rs similarity index 100% rename from src/test/ui/error-codes/E0277.rs rename to tests/ui/error-codes/E0277.rs diff --git a/src/test/ui/error-codes/E0277.stderr b/tests/ui/error-codes/E0277.stderr similarity index 100% rename from src/test/ui/error-codes/E0277.stderr rename to tests/ui/error-codes/E0277.stderr diff --git a/src/test/ui/error-codes/E0282.rs b/tests/ui/error-codes/E0282.rs similarity index 100% rename from src/test/ui/error-codes/E0282.rs rename to tests/ui/error-codes/E0282.rs diff --git a/src/test/ui/error-codes/E0282.stderr b/tests/ui/error-codes/E0282.stderr similarity index 100% rename from src/test/ui/error-codes/E0282.stderr rename to tests/ui/error-codes/E0282.stderr diff --git a/src/test/ui/error-codes/E0283.rs b/tests/ui/error-codes/E0283.rs similarity index 100% rename from src/test/ui/error-codes/E0283.rs rename to tests/ui/error-codes/E0283.rs diff --git a/src/test/ui/error-codes/E0283.stderr b/tests/ui/error-codes/E0283.stderr similarity index 100% rename from src/test/ui/error-codes/E0283.stderr rename to tests/ui/error-codes/E0283.stderr diff --git a/src/test/ui/error-codes/E0297.rs b/tests/ui/error-codes/E0297.rs similarity index 100% rename from src/test/ui/error-codes/E0297.rs rename to tests/ui/error-codes/E0297.rs diff --git a/src/test/ui/error-codes/E0297.stderr b/tests/ui/error-codes/E0297.stderr similarity index 100% rename from src/test/ui/error-codes/E0297.stderr rename to tests/ui/error-codes/E0297.stderr diff --git a/src/test/ui/error-codes/E0308-2.rs b/tests/ui/error-codes/E0308-2.rs similarity index 100% rename from src/test/ui/error-codes/E0308-2.rs rename to tests/ui/error-codes/E0308-2.rs diff --git a/src/test/ui/error-codes/E0308-2.stderr b/tests/ui/error-codes/E0308-2.stderr similarity index 100% rename from src/test/ui/error-codes/E0308-2.stderr rename to tests/ui/error-codes/E0308-2.stderr diff --git a/src/test/ui/error-codes/E0308-4.rs b/tests/ui/error-codes/E0308-4.rs similarity index 100% rename from src/test/ui/error-codes/E0308-4.rs rename to tests/ui/error-codes/E0308-4.rs diff --git a/src/test/ui/error-codes/E0308-4.stderr b/tests/ui/error-codes/E0308-4.stderr similarity index 100% rename from src/test/ui/error-codes/E0308-4.stderr rename to tests/ui/error-codes/E0308-4.stderr diff --git a/src/test/ui/error-codes/E0308.rs b/tests/ui/error-codes/E0308.rs similarity index 100% rename from src/test/ui/error-codes/E0308.rs rename to tests/ui/error-codes/E0308.rs diff --git a/src/test/ui/error-codes/E0308.stderr b/tests/ui/error-codes/E0308.stderr similarity index 100% rename from src/test/ui/error-codes/E0308.stderr rename to tests/ui/error-codes/E0308.stderr diff --git a/src/test/ui/error-codes/E0311.rs b/tests/ui/error-codes/E0311.rs similarity index 100% rename from src/test/ui/error-codes/E0311.rs rename to tests/ui/error-codes/E0311.rs diff --git a/src/test/ui/error-codes/E0311.stderr b/tests/ui/error-codes/E0311.stderr similarity index 100% rename from src/test/ui/error-codes/E0311.stderr rename to tests/ui/error-codes/E0311.stderr diff --git a/src/test/ui/error-codes/E0328.rs b/tests/ui/error-codes/E0328.rs similarity index 100% rename from src/test/ui/error-codes/E0328.rs rename to tests/ui/error-codes/E0328.rs diff --git a/src/test/ui/error-codes/E0328.stderr b/tests/ui/error-codes/E0328.stderr similarity index 100% rename from src/test/ui/error-codes/E0328.stderr rename to tests/ui/error-codes/E0328.stderr diff --git a/src/test/ui/error-codes/E0365.rs b/tests/ui/error-codes/E0365.rs similarity index 100% rename from src/test/ui/error-codes/E0365.rs rename to tests/ui/error-codes/E0365.rs diff --git a/src/test/ui/error-codes/E0365.stderr b/tests/ui/error-codes/E0365.stderr similarity index 100% rename from src/test/ui/error-codes/E0365.stderr rename to tests/ui/error-codes/E0365.stderr diff --git a/src/test/ui/error-codes/E0370.rs b/tests/ui/error-codes/E0370.rs similarity index 100% rename from src/test/ui/error-codes/E0370.rs rename to tests/ui/error-codes/E0370.rs diff --git a/src/test/ui/error-codes/E0370.stderr b/tests/ui/error-codes/E0370.stderr similarity index 100% rename from src/test/ui/error-codes/E0370.stderr rename to tests/ui/error-codes/E0370.stderr diff --git a/src/test/ui/error-codes/E0374.rs b/tests/ui/error-codes/E0374.rs similarity index 100% rename from src/test/ui/error-codes/E0374.rs rename to tests/ui/error-codes/E0374.rs diff --git a/src/test/ui/error-codes/E0374.stderr b/tests/ui/error-codes/E0374.stderr similarity index 100% rename from src/test/ui/error-codes/E0374.stderr rename to tests/ui/error-codes/E0374.stderr diff --git a/src/test/ui/error-codes/E0375.rs b/tests/ui/error-codes/E0375.rs similarity index 100% rename from src/test/ui/error-codes/E0375.rs rename to tests/ui/error-codes/E0375.rs diff --git a/src/test/ui/error-codes/E0375.stderr b/tests/ui/error-codes/E0375.stderr similarity index 100% rename from src/test/ui/error-codes/E0375.stderr rename to tests/ui/error-codes/E0375.stderr diff --git a/src/test/ui/error-codes/E0376.rs b/tests/ui/error-codes/E0376.rs similarity index 100% rename from src/test/ui/error-codes/E0376.rs rename to tests/ui/error-codes/E0376.rs diff --git a/src/test/ui/error-codes/E0376.stderr b/tests/ui/error-codes/E0376.stderr similarity index 100% rename from src/test/ui/error-codes/E0376.stderr rename to tests/ui/error-codes/E0376.stderr diff --git a/src/test/ui/error-codes/E0377.rs b/tests/ui/error-codes/E0377.rs similarity index 100% rename from src/test/ui/error-codes/E0377.rs rename to tests/ui/error-codes/E0377.rs diff --git a/src/test/ui/error-codes/E0377.stderr b/tests/ui/error-codes/E0377.stderr similarity index 100% rename from src/test/ui/error-codes/E0377.stderr rename to tests/ui/error-codes/E0377.stderr diff --git a/src/test/ui/error-codes/E0388.rs b/tests/ui/error-codes/E0388.rs similarity index 100% rename from src/test/ui/error-codes/E0388.rs rename to tests/ui/error-codes/E0388.rs diff --git a/src/test/ui/error-codes/E0388.stderr b/tests/ui/error-codes/E0388.stderr similarity index 100% rename from src/test/ui/error-codes/E0388.stderr rename to tests/ui/error-codes/E0388.stderr diff --git a/src/test/ui/error-codes/E0389.rs b/tests/ui/error-codes/E0389.rs similarity index 100% rename from src/test/ui/error-codes/E0389.rs rename to tests/ui/error-codes/E0389.rs diff --git a/src/test/ui/error-codes/E0389.stderr b/tests/ui/error-codes/E0389.stderr similarity index 100% rename from src/test/ui/error-codes/E0389.stderr rename to tests/ui/error-codes/E0389.stderr diff --git a/src/test/ui/error-codes/E0390.rs b/tests/ui/error-codes/E0390.rs similarity index 100% rename from src/test/ui/error-codes/E0390.rs rename to tests/ui/error-codes/E0390.rs diff --git a/src/test/ui/error-codes/E0390.stderr b/tests/ui/error-codes/E0390.stderr similarity index 100% rename from src/test/ui/error-codes/E0390.stderr rename to tests/ui/error-codes/E0390.stderr diff --git a/src/test/ui/error-codes/E0392.rs b/tests/ui/error-codes/E0392.rs similarity index 100% rename from src/test/ui/error-codes/E0392.rs rename to tests/ui/error-codes/E0392.rs diff --git a/src/test/ui/error-codes/E0392.stderr b/tests/ui/error-codes/E0392.stderr similarity index 100% rename from src/test/ui/error-codes/E0392.stderr rename to tests/ui/error-codes/E0392.stderr diff --git a/src/test/ui/error-codes/E0393.rs b/tests/ui/error-codes/E0393.rs similarity index 100% rename from src/test/ui/error-codes/E0393.rs rename to tests/ui/error-codes/E0393.rs diff --git a/src/test/ui/error-codes/E0393.stderr b/tests/ui/error-codes/E0393.stderr similarity index 100% rename from src/test/ui/error-codes/E0393.stderr rename to tests/ui/error-codes/E0393.stderr diff --git a/src/test/ui/error-codes/E0396-fixed.rs b/tests/ui/error-codes/E0396-fixed.rs similarity index 100% rename from src/test/ui/error-codes/E0396-fixed.rs rename to tests/ui/error-codes/E0396-fixed.rs diff --git a/src/test/ui/error-codes/E0396-fixed.stderr b/tests/ui/error-codes/E0396-fixed.stderr similarity index 100% rename from src/test/ui/error-codes/E0396-fixed.stderr rename to tests/ui/error-codes/E0396-fixed.stderr diff --git a/src/test/ui/error-codes/E0396.rs b/tests/ui/error-codes/E0396.rs similarity index 100% rename from src/test/ui/error-codes/E0396.rs rename to tests/ui/error-codes/E0396.rs diff --git a/src/test/ui/error-codes/E0396.stderr b/tests/ui/error-codes/E0396.stderr similarity index 100% rename from src/test/ui/error-codes/E0396.stderr rename to tests/ui/error-codes/E0396.stderr diff --git a/src/test/ui/error-codes/E0401.rs b/tests/ui/error-codes/E0401.rs similarity index 100% rename from src/test/ui/error-codes/E0401.rs rename to tests/ui/error-codes/E0401.rs diff --git a/src/test/ui/error-codes/E0401.stderr b/tests/ui/error-codes/E0401.stderr similarity index 100% rename from src/test/ui/error-codes/E0401.stderr rename to tests/ui/error-codes/E0401.stderr diff --git a/src/test/ui/error-codes/E0403.rs b/tests/ui/error-codes/E0403.rs similarity index 100% rename from src/test/ui/error-codes/E0403.rs rename to tests/ui/error-codes/E0403.rs diff --git a/src/test/ui/error-codes/E0403.stderr b/tests/ui/error-codes/E0403.stderr similarity index 100% rename from src/test/ui/error-codes/E0403.stderr rename to tests/ui/error-codes/E0403.stderr diff --git a/src/test/ui/error-codes/E0404.rs b/tests/ui/error-codes/E0404.rs similarity index 100% rename from src/test/ui/error-codes/E0404.rs rename to tests/ui/error-codes/E0404.rs diff --git a/src/test/ui/error-codes/E0404.stderr b/tests/ui/error-codes/E0404.stderr similarity index 100% rename from src/test/ui/error-codes/E0404.stderr rename to tests/ui/error-codes/E0404.stderr diff --git a/src/test/ui/error-codes/E0405.rs b/tests/ui/error-codes/E0405.rs similarity index 100% rename from src/test/ui/error-codes/E0405.rs rename to tests/ui/error-codes/E0405.rs diff --git a/src/test/ui/error-codes/E0405.stderr b/tests/ui/error-codes/E0405.stderr similarity index 100% rename from src/test/ui/error-codes/E0405.stderr rename to tests/ui/error-codes/E0405.stderr diff --git a/src/test/ui/error-codes/E0407.rs b/tests/ui/error-codes/E0407.rs similarity index 100% rename from src/test/ui/error-codes/E0407.rs rename to tests/ui/error-codes/E0407.rs diff --git a/src/test/ui/error-codes/E0407.stderr b/tests/ui/error-codes/E0407.stderr similarity index 100% rename from src/test/ui/error-codes/E0407.stderr rename to tests/ui/error-codes/E0407.stderr diff --git a/src/test/ui/error-codes/E0408.rs b/tests/ui/error-codes/E0408.rs similarity index 100% rename from src/test/ui/error-codes/E0408.rs rename to tests/ui/error-codes/E0408.rs diff --git a/src/test/ui/error-codes/E0408.stderr b/tests/ui/error-codes/E0408.stderr similarity index 100% rename from src/test/ui/error-codes/E0408.stderr rename to tests/ui/error-codes/E0408.stderr diff --git a/src/test/ui/error-codes/E0411.rs b/tests/ui/error-codes/E0411.rs similarity index 100% rename from src/test/ui/error-codes/E0411.rs rename to tests/ui/error-codes/E0411.rs diff --git a/src/test/ui/error-codes/E0411.stderr b/tests/ui/error-codes/E0411.stderr similarity index 100% rename from src/test/ui/error-codes/E0411.stderr rename to tests/ui/error-codes/E0411.stderr diff --git a/src/test/ui/error-codes/E0412.rs b/tests/ui/error-codes/E0412.rs similarity index 100% rename from src/test/ui/error-codes/E0412.rs rename to tests/ui/error-codes/E0412.rs diff --git a/src/test/ui/error-codes/E0412.stderr b/tests/ui/error-codes/E0412.stderr similarity index 100% rename from src/test/ui/error-codes/E0412.stderr rename to tests/ui/error-codes/E0412.stderr diff --git a/src/test/ui/error-codes/E0415.rs b/tests/ui/error-codes/E0415.rs similarity index 100% rename from src/test/ui/error-codes/E0415.rs rename to tests/ui/error-codes/E0415.rs diff --git a/src/test/ui/error-codes/E0415.stderr b/tests/ui/error-codes/E0415.stderr similarity index 100% rename from src/test/ui/error-codes/E0415.stderr rename to tests/ui/error-codes/E0415.stderr diff --git a/src/test/ui/error-codes/E0416.rs b/tests/ui/error-codes/E0416.rs similarity index 100% rename from src/test/ui/error-codes/E0416.rs rename to tests/ui/error-codes/E0416.rs diff --git a/src/test/ui/error-codes/E0416.stderr b/tests/ui/error-codes/E0416.stderr similarity index 100% rename from src/test/ui/error-codes/E0416.stderr rename to tests/ui/error-codes/E0416.stderr diff --git a/src/test/ui/error-codes/E0423.rs b/tests/ui/error-codes/E0423.rs similarity index 100% rename from src/test/ui/error-codes/E0423.rs rename to tests/ui/error-codes/E0423.rs diff --git a/src/test/ui/error-codes/E0423.stderr b/tests/ui/error-codes/E0423.stderr similarity index 100% rename from src/test/ui/error-codes/E0423.stderr rename to tests/ui/error-codes/E0423.stderr diff --git a/src/test/ui/error-codes/E0424.rs b/tests/ui/error-codes/E0424.rs similarity index 100% rename from src/test/ui/error-codes/E0424.rs rename to tests/ui/error-codes/E0424.rs diff --git a/src/test/ui/error-codes/E0424.stderr b/tests/ui/error-codes/E0424.stderr similarity index 100% rename from src/test/ui/error-codes/E0424.stderr rename to tests/ui/error-codes/E0424.stderr diff --git a/src/test/ui/error-codes/E0425.rs b/tests/ui/error-codes/E0425.rs similarity index 100% rename from src/test/ui/error-codes/E0425.rs rename to tests/ui/error-codes/E0425.rs diff --git a/src/test/ui/error-codes/E0425.stderr b/tests/ui/error-codes/E0425.stderr similarity index 100% rename from src/test/ui/error-codes/E0425.stderr rename to tests/ui/error-codes/E0425.stderr diff --git a/src/test/ui/error-codes/E0426.rs b/tests/ui/error-codes/E0426.rs similarity index 100% rename from src/test/ui/error-codes/E0426.rs rename to tests/ui/error-codes/E0426.rs diff --git a/src/test/ui/error-codes/E0426.stderr b/tests/ui/error-codes/E0426.stderr similarity index 100% rename from src/test/ui/error-codes/E0426.stderr rename to tests/ui/error-codes/E0426.stderr diff --git a/src/test/ui/error-codes/E0428.rs b/tests/ui/error-codes/E0428.rs similarity index 100% rename from src/test/ui/error-codes/E0428.rs rename to tests/ui/error-codes/E0428.rs diff --git a/src/test/ui/error-codes/E0428.stderr b/tests/ui/error-codes/E0428.stderr similarity index 100% rename from src/test/ui/error-codes/E0428.stderr rename to tests/ui/error-codes/E0428.stderr diff --git a/src/test/ui/error-codes/E0429.rs b/tests/ui/error-codes/E0429.rs similarity index 100% rename from src/test/ui/error-codes/E0429.rs rename to tests/ui/error-codes/E0429.rs diff --git a/src/test/ui/error-codes/E0429.stderr b/tests/ui/error-codes/E0429.stderr similarity index 100% rename from src/test/ui/error-codes/E0429.stderr rename to tests/ui/error-codes/E0429.stderr diff --git a/src/test/ui/error-codes/E0430.rs b/tests/ui/error-codes/E0430.rs similarity index 100% rename from src/test/ui/error-codes/E0430.rs rename to tests/ui/error-codes/E0430.rs diff --git a/src/test/ui/error-codes/E0430.stderr b/tests/ui/error-codes/E0430.stderr similarity index 100% rename from src/test/ui/error-codes/E0430.stderr rename to tests/ui/error-codes/E0430.stderr diff --git a/src/test/ui/error-codes/E0431.rs b/tests/ui/error-codes/E0431.rs similarity index 100% rename from src/test/ui/error-codes/E0431.rs rename to tests/ui/error-codes/E0431.rs diff --git a/src/test/ui/error-codes/E0431.stderr b/tests/ui/error-codes/E0431.stderr similarity index 100% rename from src/test/ui/error-codes/E0431.stderr rename to tests/ui/error-codes/E0431.stderr diff --git a/src/test/ui/error-codes/E0432.rs b/tests/ui/error-codes/E0432.rs similarity index 100% rename from src/test/ui/error-codes/E0432.rs rename to tests/ui/error-codes/E0432.rs diff --git a/src/test/ui/error-codes/E0432.stderr b/tests/ui/error-codes/E0432.stderr similarity index 100% rename from src/test/ui/error-codes/E0432.stderr rename to tests/ui/error-codes/E0432.stderr diff --git a/src/test/ui/error-codes/E0433.rs b/tests/ui/error-codes/E0433.rs similarity index 100% rename from src/test/ui/error-codes/E0433.rs rename to tests/ui/error-codes/E0433.rs diff --git a/src/test/ui/error-codes/E0433.stderr b/tests/ui/error-codes/E0433.stderr similarity index 100% rename from src/test/ui/error-codes/E0433.stderr rename to tests/ui/error-codes/E0433.stderr diff --git a/src/test/ui/error-codes/E0434.rs b/tests/ui/error-codes/E0434.rs similarity index 100% rename from src/test/ui/error-codes/E0434.rs rename to tests/ui/error-codes/E0434.rs diff --git a/src/test/ui/error-codes/E0434.stderr b/tests/ui/error-codes/E0434.stderr similarity index 100% rename from src/test/ui/error-codes/E0434.stderr rename to tests/ui/error-codes/E0434.stderr diff --git a/src/test/ui/error-codes/E0435.fixed b/tests/ui/error-codes/E0435.fixed similarity index 100% rename from src/test/ui/error-codes/E0435.fixed rename to tests/ui/error-codes/E0435.fixed diff --git a/src/test/ui/error-codes/E0435.rs b/tests/ui/error-codes/E0435.rs similarity index 100% rename from src/test/ui/error-codes/E0435.rs rename to tests/ui/error-codes/E0435.rs diff --git a/src/test/ui/error-codes/E0435.stderr b/tests/ui/error-codes/E0435.stderr similarity index 100% rename from src/test/ui/error-codes/E0435.stderr rename to tests/ui/error-codes/E0435.stderr diff --git a/src/test/ui/error-codes/E0437.rs b/tests/ui/error-codes/E0437.rs similarity index 100% rename from src/test/ui/error-codes/E0437.rs rename to tests/ui/error-codes/E0437.rs diff --git a/src/test/ui/error-codes/E0437.stderr b/tests/ui/error-codes/E0437.stderr similarity index 100% rename from src/test/ui/error-codes/E0437.stderr rename to tests/ui/error-codes/E0437.stderr diff --git a/src/test/ui/error-codes/E0438.rs b/tests/ui/error-codes/E0438.rs similarity index 100% rename from src/test/ui/error-codes/E0438.rs rename to tests/ui/error-codes/E0438.rs diff --git a/src/test/ui/error-codes/E0438.stderr b/tests/ui/error-codes/E0438.stderr similarity index 100% rename from src/test/ui/error-codes/E0438.stderr rename to tests/ui/error-codes/E0438.stderr diff --git a/src/test/ui/error-codes/E0445.rs b/tests/ui/error-codes/E0445.rs similarity index 100% rename from src/test/ui/error-codes/E0445.rs rename to tests/ui/error-codes/E0445.rs diff --git a/src/test/ui/error-codes/E0445.stderr b/tests/ui/error-codes/E0445.stderr similarity index 100% rename from src/test/ui/error-codes/E0445.stderr rename to tests/ui/error-codes/E0445.stderr diff --git a/src/test/ui/error-codes/E0446.rs b/tests/ui/error-codes/E0446.rs similarity index 100% rename from src/test/ui/error-codes/E0446.rs rename to tests/ui/error-codes/E0446.rs diff --git a/src/test/ui/error-codes/E0446.stderr b/tests/ui/error-codes/E0446.stderr similarity index 100% rename from src/test/ui/error-codes/E0446.stderr rename to tests/ui/error-codes/E0446.stderr diff --git a/src/test/ui/error-codes/E0449.rs b/tests/ui/error-codes/E0449.rs similarity index 100% rename from src/test/ui/error-codes/E0449.rs rename to tests/ui/error-codes/E0449.rs diff --git a/src/test/ui/error-codes/E0449.stderr b/tests/ui/error-codes/E0449.stderr similarity index 100% rename from src/test/ui/error-codes/E0449.stderr rename to tests/ui/error-codes/E0449.stderr diff --git a/src/test/ui/error-codes/E0451.rs b/tests/ui/error-codes/E0451.rs similarity index 100% rename from src/test/ui/error-codes/E0451.rs rename to tests/ui/error-codes/E0451.rs diff --git a/src/test/ui/error-codes/E0451.stderr b/tests/ui/error-codes/E0451.stderr similarity index 100% rename from src/test/ui/error-codes/E0451.stderr rename to tests/ui/error-codes/E0451.stderr diff --git a/src/test/ui/error-codes/E0452.rs b/tests/ui/error-codes/E0452.rs similarity index 100% rename from src/test/ui/error-codes/E0452.rs rename to tests/ui/error-codes/E0452.rs diff --git a/src/test/ui/error-codes/E0452.stderr b/tests/ui/error-codes/E0452.stderr similarity index 100% rename from src/test/ui/error-codes/E0452.stderr rename to tests/ui/error-codes/E0452.stderr diff --git a/src/test/ui/error-codes/E0453.rs b/tests/ui/error-codes/E0453.rs similarity index 100% rename from src/test/ui/error-codes/E0453.rs rename to tests/ui/error-codes/E0453.rs diff --git a/src/test/ui/error-codes/E0453.stderr b/tests/ui/error-codes/E0453.stderr similarity index 100% rename from src/test/ui/error-codes/E0453.stderr rename to tests/ui/error-codes/E0453.stderr diff --git a/src/test/ui/error-codes/E0454.rs b/tests/ui/error-codes/E0454.rs similarity index 100% rename from src/test/ui/error-codes/E0454.rs rename to tests/ui/error-codes/E0454.rs diff --git a/src/test/ui/error-codes/E0454.stderr b/tests/ui/error-codes/E0454.stderr similarity index 100% rename from src/test/ui/error-codes/E0454.stderr rename to tests/ui/error-codes/E0454.stderr diff --git a/src/test/ui/error-codes/E0458.rs b/tests/ui/error-codes/E0458.rs similarity index 100% rename from src/test/ui/error-codes/E0458.rs rename to tests/ui/error-codes/E0458.rs diff --git a/src/test/ui/error-codes/E0458.stderr b/tests/ui/error-codes/E0458.stderr similarity index 100% rename from src/test/ui/error-codes/E0458.stderr rename to tests/ui/error-codes/E0458.stderr diff --git a/src/test/ui/error-codes/E0459.rs b/tests/ui/error-codes/E0459.rs similarity index 100% rename from src/test/ui/error-codes/E0459.rs rename to tests/ui/error-codes/E0459.rs diff --git a/src/test/ui/error-codes/E0459.stderr b/tests/ui/error-codes/E0459.stderr similarity index 100% rename from src/test/ui/error-codes/E0459.stderr rename to tests/ui/error-codes/E0459.stderr diff --git a/src/test/ui/error-codes/E0462.rs b/tests/ui/error-codes/E0462.rs similarity index 100% rename from src/test/ui/error-codes/E0462.rs rename to tests/ui/error-codes/E0462.rs diff --git a/src/test/ui/error-codes/E0462.stderr b/tests/ui/error-codes/E0462.stderr similarity index 100% rename from src/test/ui/error-codes/E0462.stderr rename to tests/ui/error-codes/E0462.stderr diff --git a/src/test/ui/error-codes/E0463.rs b/tests/ui/error-codes/E0463.rs similarity index 100% rename from src/test/ui/error-codes/E0463.rs rename to tests/ui/error-codes/E0463.rs diff --git a/src/test/ui/error-codes/E0463.stderr b/tests/ui/error-codes/E0463.stderr similarity index 100% rename from src/test/ui/error-codes/E0463.stderr rename to tests/ui/error-codes/E0463.stderr diff --git a/src/test/ui/error-codes/E0464.rs b/tests/ui/error-codes/E0464.rs similarity index 82% rename from src/test/ui/error-codes/E0464.rs rename to tests/ui/error-codes/E0464.rs index 554f1ce72d9e8..47717fbd508a8 100644 --- a/src/test/ui/error-codes/E0464.rs +++ b/tests/ui/error-codes/E0464.rs @@ -6,7 +6,7 @@ // normalize-stderr-test: "\\\?\\" -> "" // normalize-stderr-test: "(lib)?crateresolve1-([123])\.[a-z]+" -> "libcrateresolve1-$2.somelib" -// NOTE: This test is duplicated from `src/test/ui/crate-loading/crateresolve1.rs`. +// NOTE: This test is duplicated from `tests/ui/crate-loading/crateresolve1.rs`. extern crate crateresolve1; //~^ ERROR multiple candidates for `rlib` dependency `crateresolve1` found diff --git a/src/test/ui/error-codes/E0464.stderr b/tests/ui/error-codes/E0464.stderr similarity index 100% rename from src/test/ui/error-codes/E0464.stderr rename to tests/ui/error-codes/E0464.stderr diff --git a/src/test/ui/error-codes/E0478.rs b/tests/ui/error-codes/E0478.rs similarity index 100% rename from src/test/ui/error-codes/E0478.rs rename to tests/ui/error-codes/E0478.rs diff --git a/src/test/ui/error-codes/E0478.stderr b/tests/ui/error-codes/E0478.stderr similarity index 100% rename from src/test/ui/error-codes/E0478.stderr rename to tests/ui/error-codes/E0478.stderr diff --git a/src/test/ui/error-codes/E0492.rs b/tests/ui/error-codes/E0492.rs similarity index 100% rename from src/test/ui/error-codes/E0492.rs rename to tests/ui/error-codes/E0492.rs diff --git a/src/test/ui/error-codes/E0492.stderr b/tests/ui/error-codes/E0492.stderr similarity index 100% rename from src/test/ui/error-codes/E0492.stderr rename to tests/ui/error-codes/E0492.stderr diff --git a/src/test/ui/error-codes/E0496.rs b/tests/ui/error-codes/E0496.rs similarity index 100% rename from src/test/ui/error-codes/E0496.rs rename to tests/ui/error-codes/E0496.rs diff --git a/src/test/ui/error-codes/E0496.stderr b/tests/ui/error-codes/E0496.stderr similarity index 100% rename from src/test/ui/error-codes/E0496.stderr rename to tests/ui/error-codes/E0496.stderr diff --git a/src/test/ui/error-codes/E0499.rs b/tests/ui/error-codes/E0499.rs similarity index 100% rename from src/test/ui/error-codes/E0499.rs rename to tests/ui/error-codes/E0499.rs diff --git a/src/test/ui/error-codes/E0499.stderr b/tests/ui/error-codes/E0499.stderr similarity index 100% rename from src/test/ui/error-codes/E0499.stderr rename to tests/ui/error-codes/E0499.stderr diff --git a/src/test/ui/error-codes/E0501.rs b/tests/ui/error-codes/E0501.rs similarity index 100% rename from src/test/ui/error-codes/E0501.rs rename to tests/ui/error-codes/E0501.rs diff --git a/src/test/ui/error-codes/E0501.stderr b/tests/ui/error-codes/E0501.stderr similarity index 100% rename from src/test/ui/error-codes/E0501.stderr rename to tests/ui/error-codes/E0501.stderr diff --git a/src/test/ui/error-codes/E0502.rs b/tests/ui/error-codes/E0502.rs similarity index 100% rename from src/test/ui/error-codes/E0502.rs rename to tests/ui/error-codes/E0502.rs diff --git a/src/test/ui/error-codes/E0502.stderr b/tests/ui/error-codes/E0502.stderr similarity index 100% rename from src/test/ui/error-codes/E0502.stderr rename to tests/ui/error-codes/E0502.stderr diff --git a/src/test/ui/error-codes/E0503.rs b/tests/ui/error-codes/E0503.rs similarity index 100% rename from src/test/ui/error-codes/E0503.rs rename to tests/ui/error-codes/E0503.rs diff --git a/src/test/ui/error-codes/E0503.stderr b/tests/ui/error-codes/E0503.stderr similarity index 100% rename from src/test/ui/error-codes/E0503.stderr rename to tests/ui/error-codes/E0503.stderr diff --git a/src/test/ui/error-codes/E0504.rs b/tests/ui/error-codes/E0504.rs similarity index 100% rename from src/test/ui/error-codes/E0504.rs rename to tests/ui/error-codes/E0504.rs diff --git a/src/test/ui/error-codes/E0504.stderr b/tests/ui/error-codes/E0504.stderr similarity index 100% rename from src/test/ui/error-codes/E0504.stderr rename to tests/ui/error-codes/E0504.stderr diff --git a/src/test/ui/error-codes/E0505.rs b/tests/ui/error-codes/E0505.rs similarity index 100% rename from src/test/ui/error-codes/E0505.rs rename to tests/ui/error-codes/E0505.rs diff --git a/src/test/ui/error-codes/E0505.stderr b/tests/ui/error-codes/E0505.stderr similarity index 100% rename from src/test/ui/error-codes/E0505.stderr rename to tests/ui/error-codes/E0505.stderr diff --git a/src/test/ui/error-codes/E0506.rs b/tests/ui/error-codes/E0506.rs similarity index 100% rename from src/test/ui/error-codes/E0506.rs rename to tests/ui/error-codes/E0506.rs diff --git a/src/test/ui/error-codes/E0506.stderr b/tests/ui/error-codes/E0506.stderr similarity index 100% rename from src/test/ui/error-codes/E0506.stderr rename to tests/ui/error-codes/E0506.stderr diff --git a/src/test/ui/error-codes/E0507.rs b/tests/ui/error-codes/E0507.rs similarity index 100% rename from src/test/ui/error-codes/E0507.rs rename to tests/ui/error-codes/E0507.rs diff --git a/src/test/ui/error-codes/E0507.stderr b/tests/ui/error-codes/E0507.stderr similarity index 100% rename from src/test/ui/error-codes/E0507.stderr rename to tests/ui/error-codes/E0507.stderr diff --git a/src/test/ui/error-codes/E0508-fail.rs b/tests/ui/error-codes/E0508-fail.rs similarity index 100% rename from src/test/ui/error-codes/E0508-fail.rs rename to tests/ui/error-codes/E0508-fail.rs diff --git a/src/test/ui/error-codes/E0508-fail.stderr b/tests/ui/error-codes/E0508-fail.stderr similarity index 100% rename from src/test/ui/error-codes/E0508-fail.stderr rename to tests/ui/error-codes/E0508-fail.stderr diff --git a/src/test/ui/error-codes/E0508.rs b/tests/ui/error-codes/E0508.rs similarity index 100% rename from src/test/ui/error-codes/E0508.rs rename to tests/ui/error-codes/E0508.rs diff --git a/src/test/ui/error-codes/E0508.stderr b/tests/ui/error-codes/E0508.stderr similarity index 100% rename from src/test/ui/error-codes/E0508.stderr rename to tests/ui/error-codes/E0508.stderr diff --git a/src/test/ui/error-codes/E0509.rs b/tests/ui/error-codes/E0509.rs similarity index 100% rename from src/test/ui/error-codes/E0509.rs rename to tests/ui/error-codes/E0509.rs diff --git a/src/test/ui/error-codes/E0509.stderr b/tests/ui/error-codes/E0509.stderr similarity index 100% rename from src/test/ui/error-codes/E0509.stderr rename to tests/ui/error-codes/E0509.stderr diff --git a/src/test/ui/error-codes/E0511.rs b/tests/ui/error-codes/E0511.rs similarity index 100% rename from src/test/ui/error-codes/E0511.rs rename to tests/ui/error-codes/E0511.rs diff --git a/src/test/ui/error-codes/E0511.stderr b/tests/ui/error-codes/E0511.stderr similarity index 100% rename from src/test/ui/error-codes/E0511.stderr rename to tests/ui/error-codes/E0511.stderr diff --git a/src/test/ui/error-codes/E0512.rs b/tests/ui/error-codes/E0512.rs similarity index 100% rename from src/test/ui/error-codes/E0512.rs rename to tests/ui/error-codes/E0512.rs diff --git a/src/test/ui/error-codes/E0512.stderr b/tests/ui/error-codes/E0512.stderr similarity index 100% rename from src/test/ui/error-codes/E0512.stderr rename to tests/ui/error-codes/E0512.stderr diff --git a/src/test/ui/error-codes/E0516.rs b/tests/ui/error-codes/E0516.rs similarity index 100% rename from src/test/ui/error-codes/E0516.rs rename to tests/ui/error-codes/E0516.rs diff --git a/src/test/ui/error-codes/E0516.stderr b/tests/ui/error-codes/E0516.stderr similarity index 100% rename from src/test/ui/error-codes/E0516.stderr rename to tests/ui/error-codes/E0516.stderr diff --git a/src/test/ui/error-codes/E0517.rs b/tests/ui/error-codes/E0517.rs similarity index 100% rename from src/test/ui/error-codes/E0517.rs rename to tests/ui/error-codes/E0517.rs diff --git a/src/test/ui/error-codes/E0517.stderr b/tests/ui/error-codes/E0517.stderr similarity index 100% rename from src/test/ui/error-codes/E0517.stderr rename to tests/ui/error-codes/E0517.stderr diff --git a/src/test/ui/error-codes/E0518.rs b/tests/ui/error-codes/E0518.rs similarity index 100% rename from src/test/ui/error-codes/E0518.rs rename to tests/ui/error-codes/E0518.rs diff --git a/src/test/ui/error-codes/E0518.stderr b/tests/ui/error-codes/E0518.stderr similarity index 100% rename from src/test/ui/error-codes/E0518.stderr rename to tests/ui/error-codes/E0518.stderr diff --git a/src/test/ui/error-codes/E0519.rs b/tests/ui/error-codes/E0519.rs similarity index 100% rename from src/test/ui/error-codes/E0519.rs rename to tests/ui/error-codes/E0519.rs diff --git a/src/test/ui/error-codes/E0519.stderr b/tests/ui/error-codes/E0519.stderr similarity index 100% rename from src/test/ui/error-codes/E0519.stderr rename to tests/ui/error-codes/E0519.stderr diff --git a/src/test/ui/error-codes/E0520.rs b/tests/ui/error-codes/E0520.rs similarity index 100% rename from src/test/ui/error-codes/E0520.rs rename to tests/ui/error-codes/E0520.rs diff --git a/src/test/ui/error-codes/E0520.stderr b/tests/ui/error-codes/E0520.stderr similarity index 100% rename from src/test/ui/error-codes/E0520.stderr rename to tests/ui/error-codes/E0520.stderr diff --git a/src/test/ui/error-codes/E0522.rs b/tests/ui/error-codes/E0522.rs similarity index 100% rename from src/test/ui/error-codes/E0522.rs rename to tests/ui/error-codes/E0522.rs diff --git a/src/test/ui/error-codes/E0522.stderr b/tests/ui/error-codes/E0522.stderr similarity index 100% rename from src/test/ui/error-codes/E0522.stderr rename to tests/ui/error-codes/E0522.stderr diff --git a/src/test/ui/error-codes/E0527.rs b/tests/ui/error-codes/E0527.rs similarity index 100% rename from src/test/ui/error-codes/E0527.rs rename to tests/ui/error-codes/E0527.rs diff --git a/src/test/ui/error-codes/E0527.stderr b/tests/ui/error-codes/E0527.stderr similarity index 100% rename from src/test/ui/error-codes/E0527.stderr rename to tests/ui/error-codes/E0527.stderr diff --git a/src/test/ui/error-codes/E0528.rs b/tests/ui/error-codes/E0528.rs similarity index 100% rename from src/test/ui/error-codes/E0528.rs rename to tests/ui/error-codes/E0528.rs diff --git a/src/test/ui/error-codes/E0528.stderr b/tests/ui/error-codes/E0528.stderr similarity index 100% rename from src/test/ui/error-codes/E0528.stderr rename to tests/ui/error-codes/E0528.stderr diff --git a/src/test/ui/error-codes/E0529.rs b/tests/ui/error-codes/E0529.rs similarity index 100% rename from src/test/ui/error-codes/E0529.rs rename to tests/ui/error-codes/E0529.rs diff --git a/src/test/ui/error-codes/E0529.stderr b/tests/ui/error-codes/E0529.stderr similarity index 100% rename from src/test/ui/error-codes/E0529.stderr rename to tests/ui/error-codes/E0529.stderr diff --git a/src/test/ui/error-codes/E0530.rs b/tests/ui/error-codes/E0530.rs similarity index 100% rename from src/test/ui/error-codes/E0530.rs rename to tests/ui/error-codes/E0530.rs diff --git a/src/test/ui/error-codes/E0530.stderr b/tests/ui/error-codes/E0530.stderr similarity index 100% rename from src/test/ui/error-codes/E0530.stderr rename to tests/ui/error-codes/E0530.stderr diff --git a/src/test/ui/error-codes/E0532.rs b/tests/ui/error-codes/E0532.rs similarity index 100% rename from src/test/ui/error-codes/E0532.rs rename to tests/ui/error-codes/E0532.rs diff --git a/src/test/ui/error-codes/E0532.stderr b/tests/ui/error-codes/E0532.stderr similarity index 100% rename from src/test/ui/error-codes/E0532.stderr rename to tests/ui/error-codes/E0532.stderr diff --git a/src/test/ui/error-codes/E0534.rs b/tests/ui/error-codes/E0534.rs similarity index 100% rename from src/test/ui/error-codes/E0534.rs rename to tests/ui/error-codes/E0534.rs diff --git a/src/test/ui/error-codes/E0534.stderr b/tests/ui/error-codes/E0534.stderr similarity index 100% rename from src/test/ui/error-codes/E0534.stderr rename to tests/ui/error-codes/E0534.stderr diff --git a/src/test/ui/error-codes/E0559.rs b/tests/ui/error-codes/E0559.rs similarity index 100% rename from src/test/ui/error-codes/E0559.rs rename to tests/ui/error-codes/E0559.rs diff --git a/src/test/ui/error-codes/E0559.stderr b/tests/ui/error-codes/E0559.stderr similarity index 100% rename from src/test/ui/error-codes/E0559.stderr rename to tests/ui/error-codes/E0559.stderr diff --git a/src/test/ui/error-codes/E0560.rs b/tests/ui/error-codes/E0560.rs similarity index 100% rename from src/test/ui/error-codes/E0560.rs rename to tests/ui/error-codes/E0560.rs diff --git a/src/test/ui/error-codes/E0560.stderr b/tests/ui/error-codes/E0560.stderr similarity index 100% rename from src/test/ui/error-codes/E0560.stderr rename to tests/ui/error-codes/E0560.stderr diff --git a/src/test/ui/error-codes/E0565-1.rs b/tests/ui/error-codes/E0565-1.rs similarity index 100% rename from src/test/ui/error-codes/E0565-1.rs rename to tests/ui/error-codes/E0565-1.rs diff --git a/src/test/ui/error-codes/E0565-1.stderr b/tests/ui/error-codes/E0565-1.stderr similarity index 100% rename from src/test/ui/error-codes/E0565-1.stderr rename to tests/ui/error-codes/E0565-1.stderr diff --git a/src/test/ui/error-codes/E0565-2.rs b/tests/ui/error-codes/E0565-2.rs similarity index 100% rename from src/test/ui/error-codes/E0565-2.rs rename to tests/ui/error-codes/E0565-2.rs diff --git a/src/test/ui/error-codes/E0565-2.stderr b/tests/ui/error-codes/E0565-2.stderr similarity index 100% rename from src/test/ui/error-codes/E0565-2.stderr rename to tests/ui/error-codes/E0565-2.stderr diff --git a/src/test/ui/error-codes/E0565.rs b/tests/ui/error-codes/E0565.rs similarity index 100% rename from src/test/ui/error-codes/E0565.rs rename to tests/ui/error-codes/E0565.rs diff --git a/src/test/ui/error-codes/E0565.stderr b/tests/ui/error-codes/E0565.stderr similarity index 100% rename from src/test/ui/error-codes/E0565.stderr rename to tests/ui/error-codes/E0565.stderr diff --git a/src/test/ui/error-codes/E0572.rs b/tests/ui/error-codes/E0572.rs similarity index 100% rename from src/test/ui/error-codes/E0572.rs rename to tests/ui/error-codes/E0572.rs diff --git a/src/test/ui/error-codes/E0572.stderr b/tests/ui/error-codes/E0572.stderr similarity index 100% rename from src/test/ui/error-codes/E0572.stderr rename to tests/ui/error-codes/E0572.stderr diff --git a/src/test/ui/error-codes/E0582.rs b/tests/ui/error-codes/E0582.rs similarity index 100% rename from src/test/ui/error-codes/E0582.rs rename to tests/ui/error-codes/E0582.rs diff --git a/src/test/ui/error-codes/E0582.stderr b/tests/ui/error-codes/E0582.stderr similarity index 100% rename from src/test/ui/error-codes/E0582.stderr rename to tests/ui/error-codes/E0582.stderr diff --git a/src/test/ui/error-codes/E0583.rs b/tests/ui/error-codes/E0583.rs similarity index 100% rename from src/test/ui/error-codes/E0583.rs rename to tests/ui/error-codes/E0583.rs diff --git a/src/test/ui/error-codes/E0583.stderr b/tests/ui/error-codes/E0583.stderr similarity index 100% rename from src/test/ui/error-codes/E0583.stderr rename to tests/ui/error-codes/E0583.stderr diff --git a/src/test/ui/error-codes/E0585.rs b/tests/ui/error-codes/E0585.rs similarity index 100% rename from src/test/ui/error-codes/E0585.rs rename to tests/ui/error-codes/E0585.rs diff --git a/src/test/ui/error-codes/E0585.stderr b/tests/ui/error-codes/E0585.stderr similarity index 100% rename from src/test/ui/error-codes/E0585.stderr rename to tests/ui/error-codes/E0585.stderr diff --git a/src/test/ui/error-codes/E0586.rs b/tests/ui/error-codes/E0586.rs similarity index 100% rename from src/test/ui/error-codes/E0586.rs rename to tests/ui/error-codes/E0586.rs diff --git a/src/test/ui/error-codes/E0586.stderr b/tests/ui/error-codes/E0586.stderr similarity index 100% rename from src/test/ui/error-codes/E0586.stderr rename to tests/ui/error-codes/E0586.stderr diff --git a/src/test/ui/error-codes/E0594.rs b/tests/ui/error-codes/E0594.rs similarity index 100% rename from src/test/ui/error-codes/E0594.rs rename to tests/ui/error-codes/E0594.rs diff --git a/src/test/ui/error-codes/E0594.stderr b/tests/ui/error-codes/E0594.stderr similarity index 100% rename from src/test/ui/error-codes/E0594.stderr rename to tests/ui/error-codes/E0594.stderr diff --git a/src/test/ui/error-codes/E0596.rs b/tests/ui/error-codes/E0596.rs similarity index 100% rename from src/test/ui/error-codes/E0596.rs rename to tests/ui/error-codes/E0596.rs diff --git a/src/test/ui/error-codes/E0596.stderr b/tests/ui/error-codes/E0596.stderr similarity index 100% rename from src/test/ui/error-codes/E0596.stderr rename to tests/ui/error-codes/E0596.stderr diff --git a/src/test/ui/error-codes/E0597.rs b/tests/ui/error-codes/E0597.rs similarity index 100% rename from src/test/ui/error-codes/E0597.rs rename to tests/ui/error-codes/E0597.rs diff --git a/src/test/ui/error-codes/E0597.stderr b/tests/ui/error-codes/E0597.stderr similarity index 100% rename from src/test/ui/error-codes/E0597.stderr rename to tests/ui/error-codes/E0597.stderr diff --git a/src/test/ui/error-codes/E0599.rs b/tests/ui/error-codes/E0599.rs similarity index 100% rename from src/test/ui/error-codes/E0599.rs rename to tests/ui/error-codes/E0599.rs diff --git a/src/test/ui/error-codes/E0599.stderr b/tests/ui/error-codes/E0599.stderr similarity index 100% rename from src/test/ui/error-codes/E0599.stderr rename to tests/ui/error-codes/E0599.stderr diff --git a/src/test/ui/error-codes/E0600.rs b/tests/ui/error-codes/E0600.rs similarity index 100% rename from src/test/ui/error-codes/E0600.rs rename to tests/ui/error-codes/E0600.rs diff --git a/src/test/ui/error-codes/E0600.stderr b/tests/ui/error-codes/E0600.stderr similarity index 100% rename from src/test/ui/error-codes/E0600.stderr rename to tests/ui/error-codes/E0600.stderr diff --git a/src/test/ui/error-codes/E0601.rs b/tests/ui/error-codes/E0601.rs similarity index 100% rename from src/test/ui/error-codes/E0601.rs rename to tests/ui/error-codes/E0601.rs diff --git a/src/test/ui/error-codes/E0601.stderr b/tests/ui/error-codes/E0601.stderr similarity index 100% rename from src/test/ui/error-codes/E0601.stderr rename to tests/ui/error-codes/E0601.stderr diff --git a/src/test/ui/error-codes/E0602.rs b/tests/ui/error-codes/E0602.rs similarity index 100% rename from src/test/ui/error-codes/E0602.rs rename to tests/ui/error-codes/E0602.rs diff --git a/src/test/ui/error-codes/E0602.stderr b/tests/ui/error-codes/E0602.stderr similarity index 100% rename from src/test/ui/error-codes/E0602.stderr rename to tests/ui/error-codes/E0602.stderr diff --git a/src/test/ui/error-codes/E0603.rs b/tests/ui/error-codes/E0603.rs similarity index 100% rename from src/test/ui/error-codes/E0603.rs rename to tests/ui/error-codes/E0603.rs diff --git a/src/test/ui/error-codes/E0603.stderr b/tests/ui/error-codes/E0603.stderr similarity index 100% rename from src/test/ui/error-codes/E0603.stderr rename to tests/ui/error-codes/E0603.stderr diff --git a/src/test/ui/error-codes/E0604.rs b/tests/ui/error-codes/E0604.rs similarity index 100% rename from src/test/ui/error-codes/E0604.rs rename to tests/ui/error-codes/E0604.rs diff --git a/src/test/ui/error-codes/E0604.stderr b/tests/ui/error-codes/E0604.stderr similarity index 100% rename from src/test/ui/error-codes/E0604.stderr rename to tests/ui/error-codes/E0604.stderr diff --git a/src/test/ui/error-codes/E0605.rs b/tests/ui/error-codes/E0605.rs similarity index 100% rename from src/test/ui/error-codes/E0605.rs rename to tests/ui/error-codes/E0605.rs diff --git a/src/test/ui/error-codes/E0605.stderr b/tests/ui/error-codes/E0605.stderr similarity index 100% rename from src/test/ui/error-codes/E0605.stderr rename to tests/ui/error-codes/E0605.stderr diff --git a/src/test/ui/error-codes/E0606.rs b/tests/ui/error-codes/E0606.rs similarity index 100% rename from src/test/ui/error-codes/E0606.rs rename to tests/ui/error-codes/E0606.rs diff --git a/src/test/ui/error-codes/E0606.stderr b/tests/ui/error-codes/E0606.stderr similarity index 100% rename from src/test/ui/error-codes/E0606.stderr rename to tests/ui/error-codes/E0606.stderr diff --git a/src/test/ui/error-codes/E0607.rs b/tests/ui/error-codes/E0607.rs similarity index 100% rename from src/test/ui/error-codes/E0607.rs rename to tests/ui/error-codes/E0607.rs diff --git a/src/test/ui/error-codes/E0607.stderr b/tests/ui/error-codes/E0607.stderr similarity index 100% rename from src/test/ui/error-codes/E0607.stderr rename to tests/ui/error-codes/E0607.stderr diff --git a/src/test/ui/error-codes/E0608.rs b/tests/ui/error-codes/E0608.rs similarity index 100% rename from src/test/ui/error-codes/E0608.rs rename to tests/ui/error-codes/E0608.rs diff --git a/src/test/ui/error-codes/E0608.stderr b/tests/ui/error-codes/E0608.stderr similarity index 100% rename from src/test/ui/error-codes/E0608.stderr rename to tests/ui/error-codes/E0608.stderr diff --git a/src/test/ui/error-codes/E0609.rs b/tests/ui/error-codes/E0609.rs similarity index 100% rename from src/test/ui/error-codes/E0609.rs rename to tests/ui/error-codes/E0609.rs diff --git a/src/test/ui/error-codes/E0609.stderr b/tests/ui/error-codes/E0609.stderr similarity index 100% rename from src/test/ui/error-codes/E0609.stderr rename to tests/ui/error-codes/E0609.stderr diff --git a/src/test/ui/error-codes/E0610.rs b/tests/ui/error-codes/E0610.rs similarity index 100% rename from src/test/ui/error-codes/E0610.rs rename to tests/ui/error-codes/E0610.rs diff --git a/src/test/ui/error-codes/E0610.stderr b/tests/ui/error-codes/E0610.stderr similarity index 100% rename from src/test/ui/error-codes/E0610.stderr rename to tests/ui/error-codes/E0610.stderr diff --git a/src/test/ui/error-codes/E0614.rs b/tests/ui/error-codes/E0614.rs similarity index 100% rename from src/test/ui/error-codes/E0614.rs rename to tests/ui/error-codes/E0614.rs diff --git a/src/test/ui/error-codes/E0614.stderr b/tests/ui/error-codes/E0614.stderr similarity index 100% rename from src/test/ui/error-codes/E0614.stderr rename to tests/ui/error-codes/E0614.stderr diff --git a/src/test/ui/error-codes/E0615.rs b/tests/ui/error-codes/E0615.rs similarity index 100% rename from src/test/ui/error-codes/E0615.rs rename to tests/ui/error-codes/E0615.rs diff --git a/src/test/ui/error-codes/E0615.stderr b/tests/ui/error-codes/E0615.stderr similarity index 100% rename from src/test/ui/error-codes/E0615.stderr rename to tests/ui/error-codes/E0615.stderr diff --git a/src/test/ui/error-codes/E0616.rs b/tests/ui/error-codes/E0616.rs similarity index 100% rename from src/test/ui/error-codes/E0616.rs rename to tests/ui/error-codes/E0616.rs diff --git a/src/test/ui/error-codes/E0616.stderr b/tests/ui/error-codes/E0616.stderr similarity index 100% rename from src/test/ui/error-codes/E0616.stderr rename to tests/ui/error-codes/E0616.stderr diff --git a/src/test/ui/error-codes/E0617.rs b/tests/ui/error-codes/E0617.rs similarity index 100% rename from src/test/ui/error-codes/E0617.rs rename to tests/ui/error-codes/E0617.rs diff --git a/src/test/ui/error-codes/E0617.stderr b/tests/ui/error-codes/E0617.stderr similarity index 100% rename from src/test/ui/error-codes/E0617.stderr rename to tests/ui/error-codes/E0617.stderr diff --git a/src/test/ui/error-codes/E0618.rs b/tests/ui/error-codes/E0618.rs similarity index 100% rename from src/test/ui/error-codes/E0618.rs rename to tests/ui/error-codes/E0618.rs diff --git a/src/test/ui/error-codes/E0618.stderr b/tests/ui/error-codes/E0618.stderr similarity index 100% rename from src/test/ui/error-codes/E0618.stderr rename to tests/ui/error-codes/E0618.stderr diff --git a/src/test/ui/error-codes/E0620.rs b/tests/ui/error-codes/E0620.rs similarity index 100% rename from src/test/ui/error-codes/E0620.rs rename to tests/ui/error-codes/E0620.rs diff --git a/src/test/ui/error-codes/E0620.stderr b/tests/ui/error-codes/E0620.stderr similarity index 100% rename from src/test/ui/error-codes/E0620.stderr rename to tests/ui/error-codes/E0620.stderr diff --git a/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.rs b/tests/ui/error-codes/E0621-does-not-trigger-for-closures.rs similarity index 100% rename from src/test/ui/error-codes/E0621-does-not-trigger-for-closures.rs rename to tests/ui/error-codes/E0621-does-not-trigger-for-closures.rs diff --git a/src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr b/tests/ui/error-codes/E0621-does-not-trigger-for-closures.stderr similarity index 100% rename from src/test/ui/error-codes/E0621-does-not-trigger-for-closures.stderr rename to tests/ui/error-codes/E0621-does-not-trigger-for-closures.stderr diff --git a/src/test/ui/error-codes/E0622.rs b/tests/ui/error-codes/E0622.rs similarity index 100% rename from src/test/ui/error-codes/E0622.rs rename to tests/ui/error-codes/E0622.rs diff --git a/src/test/ui/error-codes/E0622.stderr b/tests/ui/error-codes/E0622.stderr similarity index 100% rename from src/test/ui/error-codes/E0622.stderr rename to tests/ui/error-codes/E0622.stderr diff --git a/src/test/ui/error-codes/E0624.rs b/tests/ui/error-codes/E0624.rs similarity index 100% rename from src/test/ui/error-codes/E0624.rs rename to tests/ui/error-codes/E0624.rs diff --git a/src/test/ui/error-codes/E0624.stderr b/tests/ui/error-codes/E0624.stderr similarity index 100% rename from src/test/ui/error-codes/E0624.stderr rename to tests/ui/error-codes/E0624.stderr diff --git a/src/test/ui/error-codes/E0637.rs b/tests/ui/error-codes/E0637.rs similarity index 100% rename from src/test/ui/error-codes/E0637.rs rename to tests/ui/error-codes/E0637.rs diff --git a/src/test/ui/error-codes/E0637.stderr b/tests/ui/error-codes/E0637.stderr similarity index 100% rename from src/test/ui/error-codes/E0637.stderr rename to tests/ui/error-codes/E0637.stderr diff --git a/src/test/ui/error-codes/E0642.fixed b/tests/ui/error-codes/E0642.fixed similarity index 100% rename from src/test/ui/error-codes/E0642.fixed rename to tests/ui/error-codes/E0642.fixed diff --git a/src/test/ui/error-codes/E0642.rs b/tests/ui/error-codes/E0642.rs similarity index 100% rename from src/test/ui/error-codes/E0642.rs rename to tests/ui/error-codes/E0642.rs diff --git a/src/test/ui/error-codes/E0642.stderr b/tests/ui/error-codes/E0642.stderr similarity index 100% rename from src/test/ui/error-codes/E0642.stderr rename to tests/ui/error-codes/E0642.stderr diff --git a/src/test/ui/error-codes/E0646.rs b/tests/ui/error-codes/E0646.rs similarity index 100% rename from src/test/ui/error-codes/E0646.rs rename to tests/ui/error-codes/E0646.rs diff --git a/src/test/ui/error-codes/E0646.stderr b/tests/ui/error-codes/E0646.stderr similarity index 100% rename from src/test/ui/error-codes/E0646.stderr rename to tests/ui/error-codes/E0646.stderr diff --git a/src/test/ui/error-codes/E0647.rs b/tests/ui/error-codes/E0647.rs similarity index 100% rename from src/test/ui/error-codes/E0647.rs rename to tests/ui/error-codes/E0647.rs diff --git a/src/test/ui/error-codes/E0647.stderr b/tests/ui/error-codes/E0647.stderr similarity index 100% rename from src/test/ui/error-codes/E0647.stderr rename to tests/ui/error-codes/E0647.stderr diff --git a/src/test/ui/error-codes/E0648.rs b/tests/ui/error-codes/E0648.rs similarity index 100% rename from src/test/ui/error-codes/E0648.rs rename to tests/ui/error-codes/E0648.rs diff --git a/src/test/ui/error-codes/E0648.stderr b/tests/ui/error-codes/E0648.stderr similarity index 100% rename from src/test/ui/error-codes/E0648.stderr rename to tests/ui/error-codes/E0648.stderr diff --git a/src/test/ui/error-codes/E0657.rs b/tests/ui/error-codes/E0657.rs similarity index 100% rename from src/test/ui/error-codes/E0657.rs rename to tests/ui/error-codes/E0657.rs diff --git a/src/test/ui/error-codes/E0657.stderr b/tests/ui/error-codes/E0657.stderr similarity index 100% rename from src/test/ui/error-codes/E0657.stderr rename to tests/ui/error-codes/E0657.stderr diff --git a/src/test/ui/error-codes/E0658.rs b/tests/ui/error-codes/E0658.rs similarity index 100% rename from src/test/ui/error-codes/E0658.rs rename to tests/ui/error-codes/E0658.rs diff --git a/src/test/ui/error-codes/E0658.stderr b/tests/ui/error-codes/E0658.stderr similarity index 100% rename from src/test/ui/error-codes/E0658.stderr rename to tests/ui/error-codes/E0658.stderr diff --git a/src/test/ui/error-codes/E0659.rs b/tests/ui/error-codes/E0659.rs similarity index 100% rename from src/test/ui/error-codes/E0659.rs rename to tests/ui/error-codes/E0659.rs diff --git a/src/test/ui/error-codes/E0659.stderr b/tests/ui/error-codes/E0659.stderr similarity index 100% rename from src/test/ui/error-codes/E0659.stderr rename to tests/ui/error-codes/E0659.stderr diff --git a/src/test/ui/error-codes/E0705.rs b/tests/ui/error-codes/E0705.rs similarity index 100% rename from src/test/ui/error-codes/E0705.rs rename to tests/ui/error-codes/E0705.rs diff --git a/src/test/ui/error-codes/E0705.stderr b/tests/ui/error-codes/E0705.stderr similarity index 100% rename from src/test/ui/error-codes/E0705.stderr rename to tests/ui/error-codes/E0705.stderr diff --git a/src/test/ui/error-codes/E0711.rs b/tests/ui/error-codes/E0711.rs similarity index 84% rename from src/test/ui/error-codes/E0711.rs rename to tests/ui/error-codes/E0711.rs index 7d2044a7da2dc..7b1a217bdeca9 100644 --- a/src/test/ui/error-codes/E0711.rs +++ b/tests/ui/error-codes/E0711.rs @@ -1,4 +1,4 @@ -// copied from: src/test/ui/feature-gates/stability-attribute-consistency.rs +// copied from: tests/ui/feature-gates/stability-attribute-consistency.rs #![feature(staged_api)] diff --git a/src/test/ui/error-codes/E0711.stderr b/tests/ui/error-codes/E0711.stderr similarity index 100% rename from src/test/ui/error-codes/E0711.stderr rename to tests/ui/error-codes/E0711.stderr diff --git a/src/test/ui/error-codes/E0718.rs b/tests/ui/error-codes/E0718.rs similarity index 100% rename from src/test/ui/error-codes/E0718.rs rename to tests/ui/error-codes/E0718.rs diff --git a/src/test/ui/error-codes/E0718.stderr b/tests/ui/error-codes/E0718.stderr similarity index 100% rename from src/test/ui/error-codes/E0718.stderr rename to tests/ui/error-codes/E0718.stderr diff --git a/src/test/ui/error-codes/E0719.rs b/tests/ui/error-codes/E0719.rs similarity index 100% rename from src/test/ui/error-codes/E0719.rs rename to tests/ui/error-codes/E0719.rs diff --git a/src/test/ui/error-codes/E0719.stderr b/tests/ui/error-codes/E0719.stderr similarity index 100% rename from src/test/ui/error-codes/E0719.stderr rename to tests/ui/error-codes/E0719.stderr diff --git a/src/test/ui/error-codes/E0730.rs b/tests/ui/error-codes/E0730.rs similarity index 100% rename from src/test/ui/error-codes/E0730.rs rename to tests/ui/error-codes/E0730.rs diff --git a/src/test/ui/error-codes/E0730.stderr b/tests/ui/error-codes/E0730.stderr similarity index 100% rename from src/test/ui/error-codes/E0730.stderr rename to tests/ui/error-codes/E0730.stderr diff --git a/src/test/ui/error-codes/E0746.fixed b/tests/ui/error-codes/E0746.fixed similarity index 100% rename from src/test/ui/error-codes/E0746.fixed rename to tests/ui/error-codes/E0746.fixed diff --git a/src/test/ui/error-codes/E0746.rs b/tests/ui/error-codes/E0746.rs similarity index 100% rename from src/test/ui/error-codes/E0746.rs rename to tests/ui/error-codes/E0746.rs diff --git a/src/test/ui/error-codes/E0746.stderr b/tests/ui/error-codes/E0746.stderr similarity index 100% rename from src/test/ui/error-codes/E0746.stderr rename to tests/ui/error-codes/E0746.stderr diff --git a/src/test/ui/error-codes/E0767.rs b/tests/ui/error-codes/E0767.rs similarity index 100% rename from src/test/ui/error-codes/E0767.rs rename to tests/ui/error-codes/E0767.rs diff --git a/src/test/ui/error-codes/E0767.stderr b/tests/ui/error-codes/E0767.stderr similarity index 100% rename from src/test/ui/error-codes/E0767.stderr rename to tests/ui/error-codes/E0767.stderr diff --git a/src/test/ui/error-codes/E0771.rs b/tests/ui/error-codes/E0771.rs similarity index 100% rename from src/test/ui/error-codes/E0771.rs rename to tests/ui/error-codes/E0771.rs diff --git a/src/test/ui/error-codes/E0771.stderr b/tests/ui/error-codes/E0771.stderr similarity index 100% rename from src/test/ui/error-codes/E0771.stderr rename to tests/ui/error-codes/E0771.stderr diff --git a/src/test/ui/error-codes/E0777.rs b/tests/ui/error-codes/E0777.rs similarity index 100% rename from src/test/ui/error-codes/E0777.rs rename to tests/ui/error-codes/E0777.rs diff --git a/src/test/ui/error-codes/E0777.stderr b/tests/ui/error-codes/E0777.stderr similarity index 100% rename from src/test/ui/error-codes/E0777.stderr rename to tests/ui/error-codes/E0777.stderr diff --git a/src/test/ui/error-codes/E0778.rs b/tests/ui/error-codes/E0778.rs similarity index 100% rename from src/test/ui/error-codes/E0778.rs rename to tests/ui/error-codes/E0778.rs diff --git a/src/test/ui/error-codes/E0778.stderr b/tests/ui/error-codes/E0778.stderr similarity index 100% rename from src/test/ui/error-codes/E0778.stderr rename to tests/ui/error-codes/E0778.stderr diff --git a/src/test/ui/error-codes/E0779.rs b/tests/ui/error-codes/E0779.rs similarity index 100% rename from src/test/ui/error-codes/E0779.rs rename to tests/ui/error-codes/E0779.rs diff --git a/src/test/ui/error-codes/E0779.stderr b/tests/ui/error-codes/E0779.stderr similarity index 100% rename from src/test/ui/error-codes/E0779.stderr rename to tests/ui/error-codes/E0779.stderr diff --git a/src/test/ui/error-codes/E0790.rs b/tests/ui/error-codes/E0790.rs similarity index 100% rename from src/test/ui/error-codes/E0790.rs rename to tests/ui/error-codes/E0790.rs diff --git a/src/test/ui/error-codes/E0790.stderr b/tests/ui/error-codes/E0790.stderr similarity index 100% rename from src/test/ui/error-codes/E0790.stderr rename to tests/ui/error-codes/E0790.stderr diff --git a/src/test/ui/error-codes/auxiliary/crateresolve1-1.rs b/tests/ui/error-codes/auxiliary/crateresolve1-1.rs similarity index 100% rename from src/test/ui/error-codes/auxiliary/crateresolve1-1.rs rename to tests/ui/error-codes/auxiliary/crateresolve1-1.rs diff --git a/src/test/ui/error-codes/auxiliary/crateresolve1-2.rs b/tests/ui/error-codes/auxiliary/crateresolve1-2.rs similarity index 100% rename from src/test/ui/error-codes/auxiliary/crateresolve1-2.rs rename to tests/ui/error-codes/auxiliary/crateresolve1-2.rs diff --git a/src/test/ui/error-codes/auxiliary/crateresolve1-3.rs b/tests/ui/error-codes/auxiliary/crateresolve1-3.rs similarity index 100% rename from src/test/ui/error-codes/auxiliary/crateresolve1-3.rs rename to tests/ui/error-codes/auxiliary/crateresolve1-3.rs diff --git a/src/test/ui/error-codes/auxiliary/found-staticlib.rs b/tests/ui/error-codes/auxiliary/found-staticlib.rs similarity index 100% rename from src/test/ui/error-codes/auxiliary/found-staticlib.rs rename to tests/ui/error-codes/auxiliary/found-staticlib.rs diff --git a/src/test/ui/error-codes/e0119/auxiliary/complex_impl_support.rs b/tests/ui/error-codes/e0119/auxiliary/complex_impl_support.rs similarity index 100% rename from src/test/ui/error-codes/e0119/auxiliary/complex_impl_support.rs rename to tests/ui/error-codes/e0119/auxiliary/complex_impl_support.rs diff --git a/src/test/ui/error-codes/e0119/auxiliary/issue-23563-a.rs b/tests/ui/error-codes/e0119/auxiliary/issue-23563-a.rs similarity index 100% rename from src/test/ui/error-codes/e0119/auxiliary/issue-23563-a.rs rename to tests/ui/error-codes/e0119/auxiliary/issue-23563-a.rs diff --git a/src/test/ui/error-codes/e0119/complex-impl.rs b/tests/ui/error-codes/e0119/complex-impl.rs similarity index 100% rename from src/test/ui/error-codes/e0119/complex-impl.rs rename to tests/ui/error-codes/e0119/complex-impl.rs diff --git a/src/test/ui/error-codes/e0119/complex-impl.stderr b/tests/ui/error-codes/e0119/complex-impl.stderr similarity index 100% rename from src/test/ui/error-codes/e0119/complex-impl.stderr rename to tests/ui/error-codes/e0119/complex-impl.stderr diff --git a/src/test/ui/error-codes/e0119/conflict-with-std.rs b/tests/ui/error-codes/e0119/conflict-with-std.rs similarity index 100% rename from src/test/ui/error-codes/e0119/conflict-with-std.rs rename to tests/ui/error-codes/e0119/conflict-with-std.rs diff --git a/src/test/ui/error-codes/e0119/conflict-with-std.stderr b/tests/ui/error-codes/e0119/conflict-with-std.stderr similarity index 100% rename from src/test/ui/error-codes/e0119/conflict-with-std.stderr rename to tests/ui/error-codes/e0119/conflict-with-std.stderr diff --git a/src/test/ui/error-codes/e0119/issue-23563.rs b/tests/ui/error-codes/e0119/issue-23563.rs similarity index 100% rename from src/test/ui/error-codes/e0119/issue-23563.rs rename to tests/ui/error-codes/e0119/issue-23563.rs diff --git a/src/test/ui/error-codes/e0119/issue-23563.stderr b/tests/ui/error-codes/e0119/issue-23563.stderr similarity index 100% rename from src/test/ui/error-codes/e0119/issue-23563.stderr rename to tests/ui/error-codes/e0119/issue-23563.stderr diff --git a/src/test/ui/error-codes/e0119/issue-27403.rs b/tests/ui/error-codes/e0119/issue-27403.rs similarity index 100% rename from src/test/ui/error-codes/e0119/issue-27403.rs rename to tests/ui/error-codes/e0119/issue-27403.rs diff --git a/src/test/ui/error-codes/e0119/issue-27403.stderr b/tests/ui/error-codes/e0119/issue-27403.stderr similarity index 100% rename from src/test/ui/error-codes/e0119/issue-27403.stderr rename to tests/ui/error-codes/e0119/issue-27403.stderr diff --git a/src/test/ui/error-codes/e0119/issue-28981.rs b/tests/ui/error-codes/e0119/issue-28981.rs similarity index 100% rename from src/test/ui/error-codes/e0119/issue-28981.rs rename to tests/ui/error-codes/e0119/issue-28981.rs diff --git a/src/test/ui/error-codes/e0119/issue-28981.stderr b/tests/ui/error-codes/e0119/issue-28981.stderr similarity index 100% rename from src/test/ui/error-codes/e0119/issue-28981.stderr rename to tests/ui/error-codes/e0119/issue-28981.stderr diff --git a/src/test/ui/error-codes/e0119/so-37347311.rs b/tests/ui/error-codes/e0119/so-37347311.rs similarity index 100% rename from src/test/ui/error-codes/e0119/so-37347311.rs rename to tests/ui/error-codes/e0119/so-37347311.rs diff --git a/src/test/ui/error-codes/e0119/so-37347311.stderr b/tests/ui/error-codes/e0119/so-37347311.stderr similarity index 100% rename from src/test/ui/error-codes/e0119/so-37347311.stderr rename to tests/ui/error-codes/e0119/so-37347311.stderr diff --git a/src/test/ui/error-codes/ex-E0611.rs b/tests/ui/error-codes/ex-E0611.rs similarity index 100% rename from src/test/ui/error-codes/ex-E0611.rs rename to tests/ui/error-codes/ex-E0611.rs diff --git a/src/test/ui/error-codes/ex-E0611.stderr b/tests/ui/error-codes/ex-E0611.stderr similarity index 100% rename from src/test/ui/error-codes/ex-E0611.stderr rename to tests/ui/error-codes/ex-E0611.stderr diff --git a/src/test/ui/error-codes/ex-E0612.rs b/tests/ui/error-codes/ex-E0612.rs similarity index 100% rename from src/test/ui/error-codes/ex-E0612.rs rename to tests/ui/error-codes/ex-E0612.rs diff --git a/src/test/ui/error-codes/ex-E0612.stderr b/tests/ui/error-codes/ex-E0612.stderr similarity index 100% rename from src/test/ui/error-codes/ex-E0612.stderr rename to tests/ui/error-codes/ex-E0612.stderr diff --git a/src/test/ui/error-festival.rs b/tests/ui/error-festival.rs similarity index 100% rename from src/test/ui/error-festival.rs rename to tests/ui/error-festival.rs diff --git a/src/test/ui/error-festival.stderr b/tests/ui/error-festival.stderr similarity index 100% rename from src/test/ui/error-festival.stderr rename to tests/ui/error-festival.stderr diff --git a/src/test/ui/error-should-say-copy-not-pod.rs b/tests/ui/error-should-say-copy-not-pod.rs similarity index 100% rename from src/test/ui/error-should-say-copy-not-pod.rs rename to tests/ui/error-should-say-copy-not-pod.rs diff --git a/src/test/ui/error-should-say-copy-not-pod.stderr b/tests/ui/error-should-say-copy-not-pod.stderr similarity index 100% rename from src/test/ui/error-should-say-copy-not-pod.stderr rename to tests/ui/error-should-say-copy-not-pod.stderr diff --git a/src/test/ui/errors/issue-104621-extern-bad-file.rs b/tests/ui/errors/issue-104621-extern-bad-file.rs similarity index 100% rename from src/test/ui/errors/issue-104621-extern-bad-file.rs rename to tests/ui/errors/issue-104621-extern-bad-file.rs diff --git a/src/test/ui/errors/issue-104621-extern-bad-file.stderr b/tests/ui/errors/issue-104621-extern-bad-file.stderr similarity index 100% rename from src/test/ui/errors/issue-104621-extern-bad-file.stderr rename to tests/ui/errors/issue-104621-extern-bad-file.stderr diff --git a/src/test/ui/errors/issue-104621-extern-not-file.rs b/tests/ui/errors/issue-104621-extern-not-file.rs similarity index 100% rename from src/test/ui/errors/issue-104621-extern-not-file.rs rename to tests/ui/errors/issue-104621-extern-not-file.rs diff --git a/src/test/ui/errors/issue-104621-extern-not-file.stderr b/tests/ui/errors/issue-104621-extern-not-file.stderr similarity index 100% rename from src/test/ui/errors/issue-104621-extern-not-file.stderr rename to tests/ui/errors/issue-104621-extern-not-file.stderr diff --git a/src/test/ui/errors/issue-89280-emitter-overflow-splice-lines.rs b/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs similarity index 100% rename from src/test/ui/errors/issue-89280-emitter-overflow-splice-lines.rs rename to tests/ui/errors/issue-89280-emitter-overflow-splice-lines.rs diff --git a/src/test/ui/errors/issue-89280-emitter-overflow-splice-lines.stderr b/tests/ui/errors/issue-89280-emitter-overflow-splice-lines.stderr similarity index 100% rename from src/test/ui/errors/issue-89280-emitter-overflow-splice-lines.stderr rename to tests/ui/errors/issue-89280-emitter-overflow-splice-lines.stderr diff --git a/src/test/ui/errors/issue-99572-impl-trait-on-pointer.rs b/tests/ui/errors/issue-99572-impl-trait-on-pointer.rs similarity index 100% rename from src/test/ui/errors/issue-99572-impl-trait-on-pointer.rs rename to tests/ui/errors/issue-99572-impl-trait-on-pointer.rs diff --git a/src/test/ui/errors/issue-99572-impl-trait-on-pointer.stderr b/tests/ui/errors/issue-99572-impl-trait-on-pointer.stderr similarity index 100% rename from src/test/ui/errors/issue-99572-impl-trait-on-pointer.stderr rename to tests/ui/errors/issue-99572-impl-trait-on-pointer.stderr diff --git a/src/test/ui/exclusive-drop-and-copy.rs b/tests/ui/exclusive-drop-and-copy.rs similarity index 100% rename from src/test/ui/exclusive-drop-and-copy.rs rename to tests/ui/exclusive-drop-and-copy.rs diff --git a/src/test/ui/exclusive-drop-and-copy.stderr b/tests/ui/exclusive-drop-and-copy.stderr similarity index 100% rename from src/test/ui/exclusive-drop-and-copy.stderr rename to tests/ui/exclusive-drop-and-copy.stderr diff --git a/src/test/ui/exec-env.rs b/tests/ui/exec-env.rs similarity index 100% rename from src/test/ui/exec-env.rs rename to tests/ui/exec-env.rs diff --git a/src/test/ui/explain.rs b/tests/ui/explain.rs similarity index 100% rename from src/test/ui/explain.rs rename to tests/ui/explain.rs diff --git a/src/test/ui/explain.stdout b/tests/ui/explain.stdout similarity index 100% rename from src/test/ui/explain.stdout rename to tests/ui/explain.stdout diff --git a/src/test/ui/explicit-i-suffix.rs b/tests/ui/explicit-i-suffix.rs similarity index 100% rename from src/test/ui/explicit-i-suffix.rs rename to tests/ui/explicit-i-suffix.rs diff --git a/src/test/ui/explicit/explicit-call-to-dtor.fixed b/tests/ui/explicit/explicit-call-to-dtor.fixed similarity index 100% rename from src/test/ui/explicit/explicit-call-to-dtor.fixed rename to tests/ui/explicit/explicit-call-to-dtor.fixed diff --git a/src/test/ui/explicit/explicit-call-to-dtor.rs b/tests/ui/explicit/explicit-call-to-dtor.rs similarity index 100% rename from src/test/ui/explicit/explicit-call-to-dtor.rs rename to tests/ui/explicit/explicit-call-to-dtor.rs diff --git a/src/test/ui/explicit/explicit-call-to-dtor.stderr b/tests/ui/explicit/explicit-call-to-dtor.stderr similarity index 100% rename from src/test/ui/explicit/explicit-call-to-dtor.stderr rename to tests/ui/explicit/explicit-call-to-dtor.stderr diff --git a/src/test/ui/explicit/explicit-call-to-supertrait-dtor.fixed b/tests/ui/explicit/explicit-call-to-supertrait-dtor.fixed similarity index 100% rename from src/test/ui/explicit/explicit-call-to-supertrait-dtor.fixed rename to tests/ui/explicit/explicit-call-to-supertrait-dtor.fixed diff --git a/src/test/ui/explicit/explicit-call-to-supertrait-dtor.rs b/tests/ui/explicit/explicit-call-to-supertrait-dtor.rs similarity index 100% rename from src/test/ui/explicit/explicit-call-to-supertrait-dtor.rs rename to tests/ui/explicit/explicit-call-to-supertrait-dtor.rs diff --git a/src/test/ui/explicit/explicit-call-to-supertrait-dtor.stderr b/tests/ui/explicit/explicit-call-to-supertrait-dtor.stderr similarity index 100% rename from src/test/ui/explicit/explicit-call-to-supertrait-dtor.stderr rename to tests/ui/explicit/explicit-call-to-supertrait-dtor.stderr diff --git a/src/test/ui/explicit/explicit-self-lifetime-mismatch.rs b/tests/ui/explicit/explicit-self-lifetime-mismatch.rs similarity index 100% rename from src/test/ui/explicit/explicit-self-lifetime-mismatch.rs rename to tests/ui/explicit/explicit-self-lifetime-mismatch.rs diff --git a/src/test/ui/explicit/explicit-self-lifetime-mismatch.stderr b/tests/ui/explicit/explicit-self-lifetime-mismatch.stderr similarity index 100% rename from src/test/ui/explicit/explicit-self-lifetime-mismatch.stderr rename to tests/ui/explicit/explicit-self-lifetime-mismatch.stderr diff --git a/src/test/ui/explore-issue-38412.rs b/tests/ui/explore-issue-38412.rs similarity index 100% rename from src/test/ui/explore-issue-38412.rs rename to tests/ui/explore-issue-38412.rs diff --git a/src/test/ui/explore-issue-38412.stderr b/tests/ui/explore-issue-38412.stderr similarity index 100% rename from src/test/ui/explore-issue-38412.stderr rename to tests/ui/explore-issue-38412.stderr diff --git a/src/test/ui/expr-block-fn.rs b/tests/ui/expr-block-fn.rs similarity index 100% rename from src/test/ui/expr-block-fn.rs rename to tests/ui/expr-block-fn.rs diff --git a/src/test/ui/expr-block-generic-unique1.rs b/tests/ui/expr-block-generic-unique1.rs similarity index 100% rename from src/test/ui/expr-block-generic-unique1.rs rename to tests/ui/expr-block-generic-unique1.rs diff --git a/src/test/ui/expr-block-generic-unique2.rs b/tests/ui/expr-block-generic-unique2.rs similarity index 100% rename from src/test/ui/expr-block-generic-unique2.rs rename to tests/ui/expr-block-generic-unique2.rs diff --git a/src/test/ui/expr-block-generic.rs b/tests/ui/expr-block-generic.rs similarity index 100% rename from src/test/ui/expr-block-generic.rs rename to tests/ui/expr-block-generic.rs diff --git a/src/test/ui/expr-block.rs b/tests/ui/expr-block.rs similarity index 100% rename from src/test/ui/expr-block.rs rename to tests/ui/expr-block.rs diff --git a/src/test/ui/expr-copy.rs b/tests/ui/expr-copy.rs similarity index 100% rename from src/test/ui/expr-copy.rs rename to tests/ui/expr-copy.rs diff --git a/src/test/ui/expr-if-generic.rs b/tests/ui/expr-if-generic.rs similarity index 100% rename from src/test/ui/expr-if-generic.rs rename to tests/ui/expr-if-generic.rs diff --git a/src/test/ui/expr-if-panic-all.rs b/tests/ui/expr-if-panic-all.rs similarity index 100% rename from src/test/ui/expr-if-panic-all.rs rename to tests/ui/expr-if-panic-all.rs diff --git a/src/test/ui/expr-if-unique.rs b/tests/ui/expr-if-unique.rs similarity index 100% rename from src/test/ui/expr-if-unique.rs rename to tests/ui/expr-if-unique.rs diff --git a/src/test/ui/expr-scope.rs b/tests/ui/expr-scope.rs similarity index 100% rename from src/test/ui/expr-scope.rs rename to tests/ui/expr-scope.rs diff --git a/src/test/ui/expr/compound-assignment/eval-order.rs b/tests/ui/expr/compound-assignment/eval-order.rs similarity index 100% rename from src/test/ui/expr/compound-assignment/eval-order.rs rename to tests/ui/expr/compound-assignment/eval-order.rs diff --git a/src/test/ui/expr/if-bot.rs b/tests/ui/expr/if-bot.rs similarity index 100% rename from src/test/ui/expr/if-bot.rs rename to tests/ui/expr/if-bot.rs diff --git a/src/test/ui/expr/if/attrs/bad-cfg.rs b/tests/ui/expr/if/attrs/bad-cfg.rs similarity index 100% rename from src/test/ui/expr/if/attrs/bad-cfg.rs rename to tests/ui/expr/if/attrs/bad-cfg.rs diff --git a/src/test/ui/expr/if/attrs/bad-cfg.stderr b/tests/ui/expr/if/attrs/bad-cfg.stderr similarity index 100% rename from src/test/ui/expr/if/attrs/bad-cfg.stderr rename to tests/ui/expr/if/attrs/bad-cfg.stderr diff --git a/src/test/ui/expr/if/attrs/builtin-if-attr.rs b/tests/ui/expr/if/attrs/builtin-if-attr.rs similarity index 100% rename from src/test/ui/expr/if/attrs/builtin-if-attr.rs rename to tests/ui/expr/if/attrs/builtin-if-attr.rs diff --git a/src/test/ui/expr/if/attrs/cfg-false-if-attr.rs b/tests/ui/expr/if/attrs/cfg-false-if-attr.rs similarity index 100% rename from src/test/ui/expr/if/attrs/cfg-false-if-attr.rs rename to tests/ui/expr/if/attrs/cfg-false-if-attr.rs diff --git a/src/test/ui/expr/if/attrs/else-attrs.rs b/tests/ui/expr/if/attrs/else-attrs.rs similarity index 100% rename from src/test/ui/expr/if/attrs/else-attrs.rs rename to tests/ui/expr/if/attrs/else-attrs.rs diff --git a/src/test/ui/expr/if/attrs/else-attrs.stderr b/tests/ui/expr/if/attrs/else-attrs.stderr similarity index 100% rename from src/test/ui/expr/if/attrs/else-attrs.stderr rename to tests/ui/expr/if/attrs/else-attrs.stderr diff --git a/src/test/ui/expr/if/attrs/gate-whole-expr.rs b/tests/ui/expr/if/attrs/gate-whole-expr.rs similarity index 100% rename from src/test/ui/expr/if/attrs/gate-whole-expr.rs rename to tests/ui/expr/if/attrs/gate-whole-expr.rs diff --git a/src/test/ui/expr/if/attrs/let-chains-attr.rs b/tests/ui/expr/if/attrs/let-chains-attr.rs similarity index 100% rename from src/test/ui/expr/if/attrs/let-chains-attr.rs rename to tests/ui/expr/if/attrs/let-chains-attr.rs diff --git a/src/test/ui/expr/if/attrs/stmt-expr-gated.rs b/tests/ui/expr/if/attrs/stmt-expr-gated.rs similarity index 100% rename from src/test/ui/expr/if/attrs/stmt-expr-gated.rs rename to tests/ui/expr/if/attrs/stmt-expr-gated.rs diff --git a/src/test/ui/expr/if/attrs/stmt-expr-gated.stderr b/tests/ui/expr/if/attrs/stmt-expr-gated.stderr similarity index 100% rename from src/test/ui/expr/if/attrs/stmt-expr-gated.stderr rename to tests/ui/expr/if/attrs/stmt-expr-gated.stderr diff --git a/src/test/ui/expr/if/bad-if-let-suggestion.rs b/tests/ui/expr/if/bad-if-let-suggestion.rs similarity index 100% rename from src/test/ui/expr/if/bad-if-let-suggestion.rs rename to tests/ui/expr/if/bad-if-let-suggestion.rs diff --git a/src/test/ui/expr/if/bad-if-let-suggestion.stderr b/tests/ui/expr/if/bad-if-let-suggestion.stderr similarity index 100% rename from src/test/ui/expr/if/bad-if-let-suggestion.stderr rename to tests/ui/expr/if/bad-if-let-suggestion.stderr diff --git a/src/test/ui/expr/if/expr-if-panic-fn.rs b/tests/ui/expr/if/expr-if-panic-fn.rs similarity index 100% rename from src/test/ui/expr/if/expr-if-panic-fn.rs rename to tests/ui/expr/if/expr-if-panic-fn.rs diff --git a/src/test/ui/expr/if/expr-if-panic-pass.rs b/tests/ui/expr/if/expr-if-panic-pass.rs similarity index 100% rename from src/test/ui/expr/if/expr-if-panic-pass.rs rename to tests/ui/expr/if/expr-if-panic-pass.rs diff --git a/src/test/ui/expr/if/expr-if-panic.rs b/tests/ui/expr/if/expr-if-panic.rs similarity index 100% rename from src/test/ui/expr/if/expr-if-panic.rs rename to tests/ui/expr/if/expr-if-panic.rs diff --git a/src/test/ui/expr/if/expr-if.rs b/tests/ui/expr/if/expr-if.rs similarity index 100% rename from src/test/ui/expr/if/expr-if.rs rename to tests/ui/expr/if/expr-if.rs diff --git a/src/test/ui/expr/if/if-branch-types.rs b/tests/ui/expr/if/if-branch-types.rs similarity index 100% rename from src/test/ui/expr/if/if-branch-types.rs rename to tests/ui/expr/if/if-branch-types.rs diff --git a/src/test/ui/expr/if/if-branch-types.stderr b/tests/ui/expr/if/if-branch-types.stderr similarity index 100% rename from src/test/ui/expr/if/if-branch-types.stderr rename to tests/ui/expr/if/if-branch-types.stderr diff --git a/src/test/ui/expr/if/if-check-panic.rs b/tests/ui/expr/if/if-check-panic.rs similarity index 100% rename from src/test/ui/expr/if/if-check-panic.rs rename to tests/ui/expr/if/if-check-panic.rs diff --git a/src/test/ui/expr/if/if-check.rs b/tests/ui/expr/if/if-check.rs similarity index 100% rename from src/test/ui/expr/if/if-check.rs rename to tests/ui/expr/if/if-check.rs diff --git a/src/test/ui/expr/if/if-cond-bot.rs b/tests/ui/expr/if/if-cond-bot.rs similarity index 100% rename from src/test/ui/expr/if/if-cond-bot.rs rename to tests/ui/expr/if/if-cond-bot.rs diff --git a/src/test/ui/expr/if/if-else-type-mismatch.rs b/tests/ui/expr/if/if-else-type-mismatch.rs similarity index 100% rename from src/test/ui/expr/if/if-else-type-mismatch.rs rename to tests/ui/expr/if/if-else-type-mismatch.rs diff --git a/src/test/ui/expr/if/if-else-type-mismatch.stderr b/tests/ui/expr/if/if-else-type-mismatch.stderr similarity index 100% rename from src/test/ui/expr/if/if-else-type-mismatch.stderr rename to tests/ui/expr/if/if-else-type-mismatch.stderr diff --git a/src/test/ui/expr/if/if-let-arm-types.rs b/tests/ui/expr/if/if-let-arm-types.rs similarity index 100% rename from src/test/ui/expr/if/if-let-arm-types.rs rename to tests/ui/expr/if/if-let-arm-types.rs diff --git a/src/test/ui/expr/if/if-let-arm-types.stderr b/tests/ui/expr/if/if-let-arm-types.stderr similarity index 100% rename from src/test/ui/expr/if/if-let-arm-types.stderr rename to tests/ui/expr/if/if-let-arm-types.stderr diff --git a/src/test/ui/expr/if/if-let.rs b/tests/ui/expr/if/if-let.rs similarity index 100% rename from src/test/ui/expr/if/if-let.rs rename to tests/ui/expr/if/if-let.rs diff --git a/src/test/ui/expr/if/if-let.stderr b/tests/ui/expr/if/if-let.stderr similarity index 100% rename from src/test/ui/expr/if/if-let.stderr rename to tests/ui/expr/if/if-let.stderr diff --git a/src/test/ui/expr/if/if-loop.rs b/tests/ui/expr/if/if-loop.rs similarity index 100% rename from src/test/ui/expr/if/if-loop.rs rename to tests/ui/expr/if/if-loop.rs diff --git a/src/test/ui/expr/if/if-no-match-bindings.rs b/tests/ui/expr/if/if-no-match-bindings.rs similarity index 100% rename from src/test/ui/expr/if/if-no-match-bindings.rs rename to tests/ui/expr/if/if-no-match-bindings.rs diff --git a/src/test/ui/expr/if/if-no-match-bindings.stderr b/tests/ui/expr/if/if-no-match-bindings.stderr similarity index 100% rename from src/test/ui/expr/if/if-no-match-bindings.stderr rename to tests/ui/expr/if/if-no-match-bindings.stderr diff --git a/src/test/ui/expr/if/if-ret.rs b/tests/ui/expr/if/if-ret.rs similarity index 100% rename from src/test/ui/expr/if/if-ret.rs rename to tests/ui/expr/if/if-ret.rs diff --git a/src/test/ui/expr/if/if-ret.stderr b/tests/ui/expr/if/if-ret.stderr similarity index 100% rename from src/test/ui/expr/if/if-ret.stderr rename to tests/ui/expr/if/if-ret.stderr diff --git a/src/test/ui/expr/if/if-typeck.rs b/tests/ui/expr/if/if-typeck.rs similarity index 100% rename from src/test/ui/expr/if/if-typeck.rs rename to tests/ui/expr/if/if-typeck.rs diff --git a/src/test/ui/expr/if/if-typeck.stderr b/tests/ui/expr/if/if-typeck.stderr similarity index 100% rename from src/test/ui/expr/if/if-typeck.stderr rename to tests/ui/expr/if/if-typeck.stderr diff --git a/src/test/ui/expr/if/if-without-block.rs b/tests/ui/expr/if/if-without-block.rs similarity index 100% rename from src/test/ui/expr/if/if-without-block.rs rename to tests/ui/expr/if/if-without-block.rs diff --git a/src/test/ui/expr/if/if-without-block.stderr b/tests/ui/expr/if/if-without-block.stderr similarity index 100% rename from src/test/ui/expr/if/if-without-block.stderr rename to tests/ui/expr/if/if-without-block.stderr diff --git a/src/test/ui/expr/if/if-without-else-as-fn-expr.rs b/tests/ui/expr/if/if-without-else-as-fn-expr.rs similarity index 100% rename from src/test/ui/expr/if/if-without-else-as-fn-expr.rs rename to tests/ui/expr/if/if-without-else-as-fn-expr.rs diff --git a/src/test/ui/expr/if/if-without-else-as-fn-expr.stderr b/tests/ui/expr/if/if-without-else-as-fn-expr.stderr similarity index 100% rename from src/test/ui/expr/if/if-without-else-as-fn-expr.stderr rename to tests/ui/expr/if/if-without-else-as-fn-expr.stderr diff --git a/src/test/ui/expr/if/if-without-else-result.rs b/tests/ui/expr/if/if-without-else-result.rs similarity index 100% rename from src/test/ui/expr/if/if-without-else-result.rs rename to tests/ui/expr/if/if-without-else-result.rs diff --git a/src/test/ui/expr/if/if-without-else-result.stderr b/tests/ui/expr/if/if-without-else-result.stderr similarity index 100% rename from src/test/ui/expr/if/if-without-else-result.stderr rename to tests/ui/expr/if/if-without-else-result.stderr diff --git a/src/test/ui/expr/if/issue-4201.rs b/tests/ui/expr/if/issue-4201.rs similarity index 100% rename from src/test/ui/expr/if/issue-4201.rs rename to tests/ui/expr/if/issue-4201.rs diff --git a/src/test/ui/expr/if/issue-4201.stderr b/tests/ui/expr/if/issue-4201.stderr similarity index 100% rename from src/test/ui/expr/if/issue-4201.stderr rename to tests/ui/expr/if/issue-4201.stderr diff --git a/src/test/ui/expr/malformed_closure/missing_braces_around_block.fixed b/tests/ui/expr/malformed_closure/missing_braces_around_block.fixed similarity index 100% rename from src/test/ui/expr/malformed_closure/missing_braces_around_block.fixed rename to tests/ui/expr/malformed_closure/missing_braces_around_block.fixed diff --git a/src/test/ui/expr/malformed_closure/missing_braces_around_block.rs b/tests/ui/expr/malformed_closure/missing_braces_around_block.rs similarity index 100% rename from src/test/ui/expr/malformed_closure/missing_braces_around_block.rs rename to tests/ui/expr/malformed_closure/missing_braces_around_block.rs diff --git a/src/test/ui/expr/malformed_closure/missing_braces_around_block.stderr b/tests/ui/expr/malformed_closure/missing_braces_around_block.stderr similarity index 100% rename from src/test/ui/expr/malformed_closure/missing_braces_around_block.stderr rename to tests/ui/expr/malformed_closure/missing_braces_around_block.stderr diff --git a/src/test/ui/expr/malformed_closure/ruby_style_closure.rs b/tests/ui/expr/malformed_closure/ruby_style_closure.rs similarity index 100% rename from src/test/ui/expr/malformed_closure/ruby_style_closure.rs rename to tests/ui/expr/malformed_closure/ruby_style_closure.rs diff --git a/src/test/ui/expr/malformed_closure/ruby_style_closure.stderr b/tests/ui/expr/malformed_closure/ruby_style_closure.stderr similarity index 100% rename from src/test/ui/expr/malformed_closure/ruby_style_closure.stderr rename to tests/ui/expr/malformed_closure/ruby_style_closure.stderr diff --git a/src/test/ui/ext-expand-inner-exprs.rs b/tests/ui/ext-expand-inner-exprs.rs similarity index 100% rename from src/test/ui/ext-expand-inner-exprs.rs rename to tests/ui/ext-expand-inner-exprs.rs diff --git a/src/test/ui/ext-nonexistent.rs b/tests/ui/ext-nonexistent.rs similarity index 100% rename from src/test/ui/ext-nonexistent.rs rename to tests/ui/ext-nonexistent.rs diff --git a/src/test/ui/ext-nonexistent.stderr b/tests/ui/ext-nonexistent.stderr similarity index 100% rename from src/test/ui/ext-nonexistent.stderr rename to tests/ui/ext-nonexistent.stderr diff --git a/src/test/ui/extenv/extenv-arg-2-not-string-literal.rs b/tests/ui/extenv/extenv-arg-2-not-string-literal.rs similarity index 100% rename from src/test/ui/extenv/extenv-arg-2-not-string-literal.rs rename to tests/ui/extenv/extenv-arg-2-not-string-literal.rs diff --git a/src/test/ui/extenv/extenv-arg-2-not-string-literal.stderr b/tests/ui/extenv/extenv-arg-2-not-string-literal.stderr similarity index 100% rename from src/test/ui/extenv/extenv-arg-2-not-string-literal.stderr rename to tests/ui/extenv/extenv-arg-2-not-string-literal.stderr diff --git a/src/test/ui/extenv/extenv-no-args.rs b/tests/ui/extenv/extenv-no-args.rs similarity index 100% rename from src/test/ui/extenv/extenv-no-args.rs rename to tests/ui/extenv/extenv-no-args.rs diff --git a/src/test/ui/extenv/extenv-no-args.stderr b/tests/ui/extenv/extenv-no-args.stderr similarity index 100% rename from src/test/ui/extenv/extenv-no-args.stderr rename to tests/ui/extenv/extenv-no-args.stderr diff --git a/src/test/ui/extenv/extenv-not-defined-custom.rs b/tests/ui/extenv/extenv-not-defined-custom.rs similarity index 100% rename from src/test/ui/extenv/extenv-not-defined-custom.rs rename to tests/ui/extenv/extenv-not-defined-custom.rs diff --git a/src/test/ui/extenv/extenv-not-defined-custom.stderr b/tests/ui/extenv/extenv-not-defined-custom.stderr similarity index 100% rename from src/test/ui/extenv/extenv-not-defined-custom.stderr rename to tests/ui/extenv/extenv-not-defined-custom.stderr diff --git a/src/test/ui/extenv/extenv-not-defined-default.rs b/tests/ui/extenv/extenv-not-defined-default.rs similarity index 100% rename from src/test/ui/extenv/extenv-not-defined-default.rs rename to tests/ui/extenv/extenv-not-defined-default.rs diff --git a/src/test/ui/extenv/extenv-not-defined-default.stderr b/tests/ui/extenv/extenv-not-defined-default.stderr similarity index 100% rename from src/test/ui/extenv/extenv-not-defined-default.stderr rename to tests/ui/extenv/extenv-not-defined-default.stderr diff --git a/src/test/ui/extenv/extenv-not-string-literal.rs b/tests/ui/extenv/extenv-not-string-literal.rs similarity index 100% rename from src/test/ui/extenv/extenv-not-string-literal.rs rename to tests/ui/extenv/extenv-not-string-literal.rs diff --git a/src/test/ui/extenv/extenv-not-string-literal.stderr b/tests/ui/extenv/extenv-not-string-literal.stderr similarity index 100% rename from src/test/ui/extenv/extenv-not-string-literal.stderr rename to tests/ui/extenv/extenv-not-string-literal.stderr diff --git a/src/test/ui/extenv/extenv-too-many-args.rs b/tests/ui/extenv/extenv-too-many-args.rs similarity index 100% rename from src/test/ui/extenv/extenv-too-many-args.rs rename to tests/ui/extenv/extenv-too-many-args.rs diff --git a/src/test/ui/extenv/extenv-too-many-args.stderr b/tests/ui/extenv/extenv-too-many-args.stderr similarity index 100% rename from src/test/ui/extenv/extenv-too-many-args.stderr rename to tests/ui/extenv/extenv-too-many-args.stderr diff --git a/src/test/ui/extenv/issue-55897.rs b/tests/ui/extenv/issue-55897.rs similarity index 100% rename from src/test/ui/extenv/issue-55897.rs rename to tests/ui/extenv/issue-55897.rs diff --git a/src/test/ui/extenv/issue-55897.stderr b/tests/ui/extenv/issue-55897.stderr similarity index 100% rename from src/test/ui/extenv/issue-55897.stderr rename to tests/ui/extenv/issue-55897.stderr diff --git a/src/test/ui/extern-flag/auxiliary/somedep.rs b/tests/ui/extern-flag/auxiliary/somedep.rs similarity index 100% rename from src/test/ui/extern-flag/auxiliary/somedep.rs rename to tests/ui/extern-flag/auxiliary/somedep.rs diff --git a/src/test/ui/extern-flag/empty-extern-arg.rs b/tests/ui/extern-flag/empty-extern-arg.rs similarity index 100% rename from src/test/ui/extern-flag/empty-extern-arg.rs rename to tests/ui/extern-flag/empty-extern-arg.rs diff --git a/src/test/ui/extern-flag/empty-extern-arg.stderr b/tests/ui/extern-flag/empty-extern-arg.stderr similarity index 100% rename from src/test/ui/extern-flag/empty-extern-arg.stderr rename to tests/ui/extern-flag/empty-extern-arg.stderr diff --git a/src/test/ui/extern-flag/multiple-opts.rs b/tests/ui/extern-flag/multiple-opts.rs similarity index 100% rename from src/test/ui/extern-flag/multiple-opts.rs rename to tests/ui/extern-flag/multiple-opts.rs diff --git a/src/test/ui/extern-flag/multiple-opts.stderr b/tests/ui/extern-flag/multiple-opts.stderr similarity index 100% rename from src/test/ui/extern-flag/multiple-opts.stderr rename to tests/ui/extern-flag/multiple-opts.stderr diff --git a/src/test/ui/extern-flag/no-nounused.rs b/tests/ui/extern-flag/no-nounused.rs similarity index 100% rename from src/test/ui/extern-flag/no-nounused.rs rename to tests/ui/extern-flag/no-nounused.rs diff --git a/src/test/ui/extern-flag/no-nounused.stderr b/tests/ui/extern-flag/no-nounused.stderr similarity index 100% rename from src/test/ui/extern-flag/no-nounused.stderr rename to tests/ui/extern-flag/no-nounused.stderr diff --git a/src/test/ui/extern-flag/noprelude-and-prelude.rs b/tests/ui/extern-flag/noprelude-and-prelude.rs similarity index 100% rename from src/test/ui/extern-flag/noprelude-and-prelude.rs rename to tests/ui/extern-flag/noprelude-and-prelude.rs diff --git a/src/test/ui/extern-flag/noprelude-resolves.rs b/tests/ui/extern-flag/noprelude-resolves.rs similarity index 100% rename from src/test/ui/extern-flag/noprelude-resolves.rs rename to tests/ui/extern-flag/noprelude-resolves.rs diff --git a/src/test/ui/extern-flag/noprelude.rs b/tests/ui/extern-flag/noprelude.rs similarity index 100% rename from src/test/ui/extern-flag/noprelude.rs rename to tests/ui/extern-flag/noprelude.rs diff --git a/src/test/ui/extern-flag/noprelude.stderr b/tests/ui/extern-flag/noprelude.stderr similarity index 100% rename from src/test/ui/extern-flag/noprelude.stderr rename to tests/ui/extern-flag/noprelude.stderr diff --git a/src/test/ui/extern-flag/nounused.rs b/tests/ui/extern-flag/nounused.rs similarity index 100% rename from src/test/ui/extern-flag/nounused.rs rename to tests/ui/extern-flag/nounused.rs diff --git a/src/test/ui/extern-flag/public-and-private.rs b/tests/ui/extern-flag/public-and-private.rs similarity index 100% rename from src/test/ui/extern-flag/public-and-private.rs rename to tests/ui/extern-flag/public-and-private.rs diff --git a/src/test/ui/extern-flag/public-and-private.stderr b/tests/ui/extern-flag/public-and-private.stderr similarity index 100% rename from src/test/ui/extern-flag/public-and-private.stderr rename to tests/ui/extern-flag/public-and-private.stderr diff --git a/src/test/ui/extern/auxiliary/extern-take-value.rs b/tests/ui/extern/auxiliary/extern-take-value.rs similarity index 100% rename from src/test/ui/extern/auxiliary/extern-take-value.rs rename to tests/ui/extern/auxiliary/extern-take-value.rs diff --git a/src/test/ui/extern/auxiliary/extern-types-inherent-impl.rs b/tests/ui/extern/auxiliary/extern-types-inherent-impl.rs similarity index 100% rename from src/test/ui/extern/auxiliary/extern-types-inherent-impl.rs rename to tests/ui/extern/auxiliary/extern-types-inherent-impl.rs diff --git a/src/test/ui/extern/auxiliary/extern_calling_convention.rs b/tests/ui/extern/auxiliary/extern_calling_convention.rs similarity index 100% rename from src/test/ui/extern/auxiliary/extern_calling_convention.rs rename to tests/ui/extern/auxiliary/extern_calling_convention.rs diff --git a/src/test/ui/extern/auxiliary/extern_mod_ordering_lib.rs b/tests/ui/extern/auxiliary/extern_mod_ordering_lib.rs similarity index 100% rename from src/test/ui/extern/auxiliary/extern_mod_ordering_lib.rs rename to tests/ui/extern/auxiliary/extern_mod_ordering_lib.rs diff --git a/src/test/ui/extern/auxiliary/fat_drop.rs b/tests/ui/extern/auxiliary/fat_drop.rs similarity index 100% rename from src/test/ui/extern/auxiliary/fat_drop.rs rename to tests/ui/extern/auxiliary/fat_drop.rs diff --git a/src/test/ui/extern/auxiliary/invalid-utf8.txt b/tests/ui/extern/auxiliary/invalid-utf8.txt similarity index 100% rename from src/test/ui/extern/auxiliary/invalid-utf8.txt rename to tests/ui/extern/auxiliary/invalid-utf8.txt diff --git a/src/test/ui/extern/auxiliary/issue-80074-macro.rs b/tests/ui/extern/auxiliary/issue-80074-macro.rs similarity index 100% rename from src/test/ui/extern/auxiliary/issue-80074-macro.rs rename to tests/ui/extern/auxiliary/issue-80074-macro.rs diff --git a/src/test/ui/extern/auxiliary/m1.rs b/tests/ui/extern/auxiliary/m1.rs similarity index 100% rename from src/test/ui/extern/auxiliary/m1.rs rename to tests/ui/extern/auxiliary/m1.rs diff --git a/src/test/ui/extern/auxiliary/m2.rs b/tests/ui/extern/auxiliary/m2.rs similarity index 100% rename from src/test/ui/extern/auxiliary/m2.rs rename to tests/ui/extern/auxiliary/m2.rs diff --git a/src/test/ui/extern/auxiliary/no-mangle-associated-fn.rs b/tests/ui/extern/auxiliary/no-mangle-associated-fn.rs similarity index 100% rename from src/test/ui/extern/auxiliary/no-mangle-associated-fn.rs rename to tests/ui/extern/auxiliary/no-mangle-associated-fn.rs diff --git a/src/test/ui/extern/auxiliary/reexport-should-still-link.rs b/tests/ui/extern/auxiliary/reexport-should-still-link.rs similarity index 100% rename from src/test/ui/extern/auxiliary/reexport-should-still-link.rs rename to tests/ui/extern/auxiliary/reexport-should-still-link.rs diff --git a/src/test/ui/extern/extern-1.rs b/tests/ui/extern/extern-1.rs similarity index 100% rename from src/test/ui/extern/extern-1.rs rename to tests/ui/extern/extern-1.rs diff --git a/src/test/ui/extern/extern-calling-convention-test.rs b/tests/ui/extern/extern-calling-convention-test.rs similarity index 100% rename from src/test/ui/extern/extern-calling-convention-test.rs rename to tests/ui/extern/extern-calling-convention-test.rs diff --git a/src/test/ui/extern/extern-compare-with-return-type.rs b/tests/ui/extern/extern-compare-with-return-type.rs similarity index 100% rename from src/test/ui/extern/extern-compare-with-return-type.rs rename to tests/ui/extern/extern-compare-with-return-type.rs diff --git a/src/test/ui/extern/extern-const.fixed b/tests/ui/extern/extern-const.fixed similarity index 100% rename from src/test/ui/extern/extern-const.fixed rename to tests/ui/extern/extern-const.fixed diff --git a/src/test/ui/extern/extern-const.rs b/tests/ui/extern/extern-const.rs similarity index 100% rename from src/test/ui/extern/extern-const.rs rename to tests/ui/extern/extern-const.rs diff --git a/src/test/ui/extern/extern-const.stderr b/tests/ui/extern/extern-const.stderr similarity index 100% rename from src/test/ui/extern/extern-const.stderr rename to tests/ui/extern/extern-const.stderr diff --git a/src/test/ui/extern/extern-crate-multiple-missing.rs b/tests/ui/extern/extern-crate-multiple-missing.rs similarity index 100% rename from src/test/ui/extern/extern-crate-multiple-missing.rs rename to tests/ui/extern/extern-crate-multiple-missing.rs diff --git a/src/test/ui/extern/extern-crate-multiple-missing.stderr b/tests/ui/extern/extern-crate-multiple-missing.stderr similarity index 100% rename from src/test/ui/extern/extern-crate-multiple-missing.stderr rename to tests/ui/extern/extern-crate-multiple-missing.stderr diff --git a/src/test/ui/extern/extern-crate-rename.rs b/tests/ui/extern/extern-crate-rename.rs similarity index 100% rename from src/test/ui/extern/extern-crate-rename.rs rename to tests/ui/extern/extern-crate-rename.rs diff --git a/src/test/ui/extern/extern-crate-rename.stderr b/tests/ui/extern/extern-crate-rename.stderr similarity index 100% rename from src/test/ui/extern/extern-crate-rename.stderr rename to tests/ui/extern/extern-crate-rename.stderr diff --git a/src/test/ui/extern/extern-crate-visibility.rs b/tests/ui/extern/extern-crate-visibility.rs similarity index 100% rename from src/test/ui/extern/extern-crate-visibility.rs rename to tests/ui/extern/extern-crate-visibility.rs diff --git a/src/test/ui/extern/extern-crate-visibility.stderr b/tests/ui/extern/extern-crate-visibility.stderr similarity index 100% rename from src/test/ui/extern/extern-crate-visibility.stderr rename to tests/ui/extern/extern-crate-visibility.stderr diff --git a/src/test/ui/extern/extern-ffi-fn-with-body.rs b/tests/ui/extern/extern-ffi-fn-with-body.rs similarity index 100% rename from src/test/ui/extern/extern-ffi-fn-with-body.rs rename to tests/ui/extern/extern-ffi-fn-with-body.rs diff --git a/src/test/ui/extern/extern-ffi-fn-with-body.stderr b/tests/ui/extern/extern-ffi-fn-with-body.stderr similarity index 100% rename from src/test/ui/extern/extern-ffi-fn-with-body.stderr rename to tests/ui/extern/extern-ffi-fn-with-body.stderr diff --git a/src/test/ui/extern/extern-foreign-crate.rs b/tests/ui/extern/extern-foreign-crate.rs similarity index 100% rename from src/test/ui/extern/extern-foreign-crate.rs rename to tests/ui/extern/extern-foreign-crate.rs diff --git a/src/test/ui/extern/extern-macro.rs b/tests/ui/extern/extern-macro.rs similarity index 100% rename from src/test/ui/extern/extern-macro.rs rename to tests/ui/extern/extern-macro.rs diff --git a/src/test/ui/extern/extern-macro.stderr b/tests/ui/extern/extern-macro.stderr similarity index 100% rename from src/test/ui/extern/extern-macro.stderr rename to tests/ui/extern/extern-macro.stderr diff --git a/src/test/ui/extern/extern-main-fn.rs b/tests/ui/extern/extern-main-fn.rs similarity index 100% rename from src/test/ui/extern/extern-main-fn.rs rename to tests/ui/extern/extern-main-fn.rs diff --git a/src/test/ui/extern/extern-main-fn.stderr b/tests/ui/extern/extern-main-fn.stderr similarity index 100% rename from src/test/ui/extern/extern-main-fn.stderr rename to tests/ui/extern/extern-main-fn.stderr diff --git a/src/test/ui/extern/extern-main-issue-86110.rs b/tests/ui/extern/extern-main-issue-86110.rs similarity index 100% rename from src/test/ui/extern/extern-main-issue-86110.rs rename to tests/ui/extern/extern-main-issue-86110.rs diff --git a/src/test/ui/extern/extern-main-issue-86110.stderr b/tests/ui/extern/extern-main-issue-86110.stderr similarity index 100% rename from src/test/ui/extern/extern-main-issue-86110.stderr rename to tests/ui/extern/extern-main-issue-86110.stderr diff --git a/src/test/ui/extern/extern-methods.rs b/tests/ui/extern/extern-methods.rs similarity index 100% rename from src/test/ui/extern/extern-methods.rs rename to tests/ui/extern/extern-methods.rs diff --git a/src/test/ui/extern/extern-mod-abi.rs b/tests/ui/extern/extern-mod-abi.rs similarity index 100% rename from src/test/ui/extern/extern-mod-abi.rs rename to tests/ui/extern/extern-mod-abi.rs diff --git a/src/test/ui/extern/extern-mod-ordering-exe.rs b/tests/ui/extern/extern-mod-ordering-exe.rs similarity index 100% rename from src/test/ui/extern/extern-mod-ordering-exe.rs rename to tests/ui/extern/extern-mod-ordering-exe.rs diff --git a/src/test/ui/extern/extern-no-mangle.rs b/tests/ui/extern/extern-no-mangle.rs similarity index 100% rename from src/test/ui/extern/extern-no-mangle.rs rename to tests/ui/extern/extern-no-mangle.rs diff --git a/src/test/ui/extern/extern-no-mangle.stderr b/tests/ui/extern/extern-no-mangle.stderr similarity index 100% rename from src/test/ui/extern/extern-no-mangle.stderr rename to tests/ui/extern/extern-no-mangle.stderr diff --git a/src/test/ui/extern/extern-prelude-core.rs b/tests/ui/extern/extern-prelude-core.rs similarity index 100% rename from src/test/ui/extern/extern-prelude-core.rs rename to tests/ui/extern/extern-prelude-core.rs diff --git a/src/test/ui/extern/extern-prelude-no-speculative.rs b/tests/ui/extern/extern-prelude-no-speculative.rs similarity index 100% rename from src/test/ui/extern/extern-prelude-no-speculative.rs rename to tests/ui/extern/extern-prelude-no-speculative.rs diff --git a/src/test/ui/extern/extern-prelude-std.rs b/tests/ui/extern/extern-prelude-std.rs similarity index 100% rename from src/test/ui/extern/extern-prelude-std.rs rename to tests/ui/extern/extern-prelude-std.rs diff --git a/src/test/ui/extern/extern-pub.rs b/tests/ui/extern/extern-pub.rs similarity index 100% rename from src/test/ui/extern/extern-pub.rs rename to tests/ui/extern/extern-pub.rs diff --git a/src/test/ui/extern/extern-rust.rs b/tests/ui/extern/extern-rust.rs similarity index 100% rename from src/test/ui/extern/extern-rust.rs rename to tests/ui/extern/extern-rust.rs diff --git a/src/test/ui/extern/extern-static-size-overflow.rs b/tests/ui/extern/extern-static-size-overflow.rs similarity index 100% rename from src/test/ui/extern/extern-static-size-overflow.rs rename to tests/ui/extern/extern-static-size-overflow.rs diff --git a/src/test/ui/extern/extern-static-size-overflow.stderr b/tests/ui/extern/extern-static-size-overflow.stderr similarity index 100% rename from src/test/ui/extern/extern-static-size-overflow.stderr rename to tests/ui/extern/extern-static-size-overflow.stderr diff --git a/src/test/ui/extern/extern-take-value.rs b/tests/ui/extern/extern-take-value.rs similarity index 100% rename from src/test/ui/extern/extern-take-value.rs rename to tests/ui/extern/extern-take-value.rs diff --git a/src/test/ui/extern/extern-thiscall.rs b/tests/ui/extern/extern-thiscall.rs similarity index 100% rename from src/test/ui/extern/extern-thiscall.rs rename to tests/ui/extern/extern-thiscall.rs diff --git a/src/test/ui/extern/extern-type-diag-not-similar.rs b/tests/ui/extern/extern-type-diag-not-similar.rs similarity index 100% rename from src/test/ui/extern/extern-type-diag-not-similar.rs rename to tests/ui/extern/extern-type-diag-not-similar.rs diff --git a/src/test/ui/extern/extern-type-diag-not-similar.stderr b/tests/ui/extern/extern-type-diag-not-similar.stderr similarity index 100% rename from src/test/ui/extern/extern-type-diag-not-similar.stderr rename to tests/ui/extern/extern-type-diag-not-similar.stderr diff --git a/src/test/ui/extern/extern-types-distinct-types.rs b/tests/ui/extern/extern-types-distinct-types.rs similarity index 100% rename from src/test/ui/extern/extern-types-distinct-types.rs rename to tests/ui/extern/extern-types-distinct-types.rs diff --git a/src/test/ui/extern/extern-types-distinct-types.stderr b/tests/ui/extern/extern-types-distinct-types.stderr similarity index 100% rename from src/test/ui/extern/extern-types-distinct-types.stderr rename to tests/ui/extern/extern-types-distinct-types.stderr diff --git a/src/test/ui/extern/extern-types-inherent-impl.rs b/tests/ui/extern/extern-types-inherent-impl.rs similarity index 100% rename from src/test/ui/extern/extern-types-inherent-impl.rs rename to tests/ui/extern/extern-types-inherent-impl.rs diff --git a/src/test/ui/extern/extern-types-manual-sync-send.rs b/tests/ui/extern/extern-types-manual-sync-send.rs similarity index 100% rename from src/test/ui/extern/extern-types-manual-sync-send.rs rename to tests/ui/extern/extern-types-manual-sync-send.rs diff --git a/src/test/ui/extern/extern-types-not-sync-send.rs b/tests/ui/extern/extern-types-not-sync-send.rs similarity index 100% rename from src/test/ui/extern/extern-types-not-sync-send.rs rename to tests/ui/extern/extern-types-not-sync-send.rs diff --git a/src/test/ui/extern/extern-types-not-sync-send.stderr b/tests/ui/extern/extern-types-not-sync-send.stderr similarity index 100% rename from src/test/ui/extern/extern-types-not-sync-send.stderr rename to tests/ui/extern/extern-types-not-sync-send.stderr diff --git a/src/test/ui/extern/extern-types-pointer-cast.rs b/tests/ui/extern/extern-types-pointer-cast.rs similarity index 100% rename from src/test/ui/extern/extern-types-pointer-cast.rs rename to tests/ui/extern/extern-types-pointer-cast.rs diff --git a/src/test/ui/extern/extern-types-size_of_val.rs b/tests/ui/extern/extern-types-size_of_val.rs similarity index 100% rename from src/test/ui/extern/extern-types-size_of_val.rs rename to tests/ui/extern/extern-types-size_of_val.rs diff --git a/src/test/ui/extern/extern-types-thin-pointer.rs b/tests/ui/extern/extern-types-thin-pointer.rs similarity index 100% rename from src/test/ui/extern/extern-types-thin-pointer.rs rename to tests/ui/extern/extern-types-thin-pointer.rs diff --git a/src/test/ui/extern/extern-types-trait-impl.rs b/tests/ui/extern/extern-types-trait-impl.rs similarity index 100% rename from src/test/ui/extern/extern-types-trait-impl.rs rename to tests/ui/extern/extern-types-trait-impl.rs diff --git a/src/test/ui/extern/extern-types-unsized.rs b/tests/ui/extern/extern-types-unsized.rs similarity index 100% rename from src/test/ui/extern/extern-types-unsized.rs rename to tests/ui/extern/extern-types-unsized.rs diff --git a/src/test/ui/extern/extern-types-unsized.stderr b/tests/ui/extern/extern-types-unsized.stderr similarity index 100% rename from src/test/ui/extern/extern-types-unsized.stderr rename to tests/ui/extern/extern-types-unsized.stderr diff --git a/src/test/ui/extern/extern-vectorcall.rs b/tests/ui/extern/extern-vectorcall.rs similarity index 100% rename from src/test/ui/extern/extern-vectorcall.rs rename to tests/ui/extern/extern-vectorcall.rs diff --git a/src/test/ui/extern/extern-with-type-bounds.rs b/tests/ui/extern/extern-with-type-bounds.rs similarity index 100% rename from src/test/ui/extern/extern-with-type-bounds.rs rename to tests/ui/extern/extern-with-type-bounds.rs diff --git a/src/test/ui/extern/extern-with-type-bounds.stderr b/tests/ui/extern/extern-with-type-bounds.stderr similarity index 100% rename from src/test/ui/extern/extern-with-type-bounds.stderr rename to tests/ui/extern/extern-with-type-bounds.stderr diff --git a/src/test/ui/extern/extern-wrong-value-type.rs b/tests/ui/extern/extern-wrong-value-type.rs similarity index 100% rename from src/test/ui/extern/extern-wrong-value-type.rs rename to tests/ui/extern/extern-wrong-value-type.rs diff --git a/src/test/ui/extern/extern-wrong-value-type.stderr b/tests/ui/extern/extern-wrong-value-type.stderr similarity index 100% rename from src/test/ui/extern/extern-wrong-value-type.stderr rename to tests/ui/extern/extern-wrong-value-type.stderr diff --git a/src/test/ui/extern/extern_fat_drop.rs b/tests/ui/extern/extern_fat_drop.rs similarity index 100% rename from src/test/ui/extern/extern_fat_drop.rs rename to tests/ui/extern/extern_fat_drop.rs diff --git a/src/test/ui/extern/issue-10025.rs b/tests/ui/extern/issue-10025.rs similarity index 100% rename from src/test/ui/extern/issue-10025.rs rename to tests/ui/extern/issue-10025.rs diff --git a/src/test/ui/extern/issue-10763.rs b/tests/ui/extern/issue-10763.rs similarity index 100% rename from src/test/ui/extern/issue-10763.rs rename to tests/ui/extern/issue-10763.rs diff --git a/src/test/ui/extern/issue-10764-rpass.rs b/tests/ui/extern/issue-10764-rpass.rs similarity index 100% rename from src/test/ui/extern/issue-10764-rpass.rs rename to tests/ui/extern/issue-10764-rpass.rs diff --git a/src/test/ui/extern/issue-13655.rs b/tests/ui/extern/issue-13655.rs similarity index 100% rename from src/test/ui/extern/issue-13655.rs rename to tests/ui/extern/issue-13655.rs diff --git a/src/test/ui/extern/issue-28324.mir.stderr b/tests/ui/extern/issue-28324.mir.stderr similarity index 100% rename from src/test/ui/extern/issue-28324.mir.stderr rename to tests/ui/extern/issue-28324.mir.stderr diff --git a/src/test/ui/extern/issue-28324.rs b/tests/ui/extern/issue-28324.rs similarity index 100% rename from src/test/ui/extern/issue-28324.rs rename to tests/ui/extern/issue-28324.rs diff --git a/src/test/ui/extern/issue-28324.thir.stderr b/tests/ui/extern/issue-28324.thir.stderr similarity index 100% rename from src/test/ui/extern/issue-28324.thir.stderr rename to tests/ui/extern/issue-28324.thir.stderr diff --git a/src/test/ui/extern/issue-36122-accessing-externed-dst.rs b/tests/ui/extern/issue-36122-accessing-externed-dst.rs similarity index 100% rename from src/test/ui/extern/issue-36122-accessing-externed-dst.rs rename to tests/ui/extern/issue-36122-accessing-externed-dst.rs diff --git a/src/test/ui/extern/issue-36122-accessing-externed-dst.stderr b/tests/ui/extern/issue-36122-accessing-externed-dst.stderr similarity index 100% rename from src/test/ui/extern/issue-36122-accessing-externed-dst.stderr rename to tests/ui/extern/issue-36122-accessing-externed-dst.stderr diff --git a/src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs b/tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs similarity index 100% rename from src/test/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs rename to tests/ui/extern/issue-64655-allow-unwind-when-calling-panic-directly.rs diff --git a/src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs b/tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs similarity index 100% rename from src/test/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs rename to tests/ui/extern/issue-64655-extern-rust-must-allow-unwind.rs diff --git a/src/test/ui/extern/issue-80074.rs b/tests/ui/extern/issue-80074.rs similarity index 100% rename from src/test/ui/extern/issue-80074.rs rename to tests/ui/extern/issue-80074.rs diff --git a/src/test/ui/extern/issue-95829.rs b/tests/ui/extern/issue-95829.rs similarity index 100% rename from src/test/ui/extern/issue-95829.rs rename to tests/ui/extern/issue-95829.rs diff --git a/src/test/ui/extern/issue-95829.stderr b/tests/ui/extern/issue-95829.stderr similarity index 100% rename from src/test/ui/extern/issue-95829.stderr rename to tests/ui/extern/issue-95829.stderr diff --git a/src/test/ui/extern/no-mangle-associated-fn.rs b/tests/ui/extern/no-mangle-associated-fn.rs similarity index 100% rename from src/test/ui/extern/no-mangle-associated-fn.rs rename to tests/ui/extern/no-mangle-associated-fn.rs diff --git a/src/test/ui/extern/not-in-block.rs b/tests/ui/extern/not-in-block.rs similarity index 100% rename from src/test/ui/extern/not-in-block.rs rename to tests/ui/extern/not-in-block.rs diff --git a/src/test/ui/extern/not-in-block.stderr b/tests/ui/extern/not-in-block.stderr similarity index 100% rename from src/test/ui/extern/not-in-block.stderr rename to tests/ui/extern/not-in-block.stderr diff --git a/src/test/ui/extoption_env-no-args.rs b/tests/ui/extoption_env-no-args.rs similarity index 100% rename from src/test/ui/extoption_env-no-args.rs rename to tests/ui/extoption_env-no-args.rs diff --git a/src/test/ui/extoption_env-no-args.stderr b/tests/ui/extoption_env-no-args.stderr similarity index 100% rename from src/test/ui/extoption_env-no-args.stderr rename to tests/ui/extoption_env-no-args.stderr diff --git a/src/test/ui/extoption_env-not-defined.rs b/tests/ui/extoption_env-not-defined.rs similarity index 100% rename from src/test/ui/extoption_env-not-defined.rs rename to tests/ui/extoption_env-not-defined.rs diff --git a/src/test/ui/extoption_env-not-string-literal.rs b/tests/ui/extoption_env-not-string-literal.rs similarity index 100% rename from src/test/ui/extoption_env-not-string-literal.rs rename to tests/ui/extoption_env-not-string-literal.rs diff --git a/src/test/ui/extoption_env-not-string-literal.stderr b/tests/ui/extoption_env-not-string-literal.stderr similarity index 100% rename from src/test/ui/extoption_env-not-string-literal.stderr rename to tests/ui/extoption_env-not-string-literal.stderr diff --git a/src/test/ui/extoption_env-too-many-args.rs b/tests/ui/extoption_env-too-many-args.rs similarity index 100% rename from src/test/ui/extoption_env-too-many-args.rs rename to tests/ui/extoption_env-too-many-args.rs diff --git a/src/test/ui/extoption_env-too-many-args.stderr b/tests/ui/extoption_env-too-many-args.stderr similarity index 100% rename from src/test/ui/extoption_env-too-many-args.stderr rename to tests/ui/extoption_env-too-many-args.stderr diff --git a/src/test/ui/fact.rs b/tests/ui/fact.rs similarity index 100% rename from src/test/ui/fact.rs rename to tests/ui/fact.rs diff --git a/src/test/ui/fail-simple.rs b/tests/ui/fail-simple.rs similarity index 100% rename from src/test/ui/fail-simple.rs rename to tests/ui/fail-simple.rs diff --git a/src/test/ui/fail-simple.stderr b/tests/ui/fail-simple.stderr similarity index 100% rename from src/test/ui/fail-simple.stderr rename to tests/ui/fail-simple.stderr diff --git a/src/test/ui/feature-gates/allow-features-empty.rs b/tests/ui/feature-gates/allow-features-empty.rs similarity index 100% rename from src/test/ui/feature-gates/allow-features-empty.rs rename to tests/ui/feature-gates/allow-features-empty.rs diff --git a/src/test/ui/feature-gates/allow-features-empty.stderr b/tests/ui/feature-gates/allow-features-empty.stderr similarity index 100% rename from src/test/ui/feature-gates/allow-features-empty.stderr rename to tests/ui/feature-gates/allow-features-empty.stderr diff --git a/src/test/ui/feature-gates/allow-features.rs b/tests/ui/feature-gates/allow-features.rs similarity index 100% rename from src/test/ui/feature-gates/allow-features.rs rename to tests/ui/feature-gates/allow-features.rs diff --git a/src/test/ui/feature-gates/allow-features.stderr b/tests/ui/feature-gates/allow-features.stderr similarity index 100% rename from src/test/ui/feature-gates/allow-features.stderr rename to tests/ui/feature-gates/allow-features.stderr diff --git a/src/test/ui/feature-gates/auxiliary/cfg-target-thread-local.rs b/tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs similarity index 100% rename from src/test/ui/feature-gates/auxiliary/cfg-target-thread-local.rs rename to tests/ui/feature-gates/auxiliary/cfg-target-thread-local.rs diff --git a/src/test/ui/feature-gates/auxiliary/debugger-visualizer.natvis b/tests/ui/feature-gates/auxiliary/debugger-visualizer.natvis similarity index 100% rename from src/test/ui/feature-gates/auxiliary/debugger-visualizer.natvis rename to tests/ui/feature-gates/auxiliary/debugger-visualizer.natvis diff --git a/src/test/ui/feature-gates/auxiliary/pub_dep.rs b/tests/ui/feature-gates/auxiliary/pub_dep.rs similarity index 100% rename from src/test/ui/feature-gates/auxiliary/pub_dep.rs rename to tests/ui/feature-gates/auxiliary/pub_dep.rs diff --git a/src/test/ui/feature-gates/auxiliary/re_rebalance_coherence_lib.rs b/tests/ui/feature-gates/auxiliary/re_rebalance_coherence_lib.rs similarity index 100% rename from src/test/ui/feature-gates/auxiliary/re_rebalance_coherence_lib.rs rename to tests/ui/feature-gates/auxiliary/re_rebalance_coherence_lib.rs diff --git a/src/test/ui/feature-gates/bench.rs b/tests/ui/feature-gates/bench.rs similarity index 100% rename from src/test/ui/feature-gates/bench.rs rename to tests/ui/feature-gates/bench.rs diff --git a/src/test/ui/feature-gates/bench.stderr b/tests/ui/feature-gates/bench.stderr similarity index 100% rename from src/test/ui/feature-gates/bench.stderr rename to tests/ui/feature-gates/bench.stderr diff --git a/src/test/ui/feature-gates/duplicate-features.rs b/tests/ui/feature-gates/duplicate-features.rs similarity index 100% rename from src/test/ui/feature-gates/duplicate-features.rs rename to tests/ui/feature-gates/duplicate-features.rs diff --git a/src/test/ui/feature-gates/duplicate-features.stderr b/tests/ui/feature-gates/duplicate-features.stderr similarity index 100% rename from src/test/ui/feature-gates/duplicate-features.stderr rename to tests/ui/feature-gates/duplicate-features.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi-avr-interrupt.rs b/tests/ui/feature-gates/feature-gate-abi-avr-interrupt.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-avr-interrupt.rs rename to tests/ui/feature-gates/feature-gate-abi-avr-interrupt.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi-avr-interrupt.stderr b/tests/ui/feature-gates/feature-gate-abi-avr-interrupt.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-avr-interrupt.stderr rename to tests/ui/feature-gates/feature-gate-abi-avr-interrupt.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi-efiapi.rs b/tests/ui/feature-gates/feature-gate-abi-efiapi.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-efiapi.rs rename to tests/ui/feature-gates/feature-gate-abi-efiapi.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi-efiapi.stderr b/tests/ui/feature-gates/feature-gate-abi-efiapi.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-efiapi.stderr rename to tests/ui/feature-gates/feature-gate-abi-efiapi.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi-msp430-interrupt.rs b/tests/ui/feature-gates/feature-gate-abi-msp430-interrupt.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-msp430-interrupt.rs rename to tests/ui/feature-gates/feature-gate-abi-msp430-interrupt.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi-msp430-interrupt.stderr b/tests/ui/feature-gates/feature-gate-abi-msp430-interrupt.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-msp430-interrupt.stderr rename to tests/ui/feature-gates/feature-gate-abi-msp430-interrupt.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi-x86-interrupt.rs b/tests/ui/feature-gates/feature-gate-abi-x86-interrupt.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-x86-interrupt.rs rename to tests/ui/feature-gates/feature-gate-abi-x86-interrupt.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi-x86-interrupt.stderr b/tests/ui/feature-gates/feature-gate-abi-x86-interrupt.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi-x86-interrupt.stderr rename to tests/ui/feature-gates/feature-gate-abi-x86-interrupt.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi.rs b/tests/ui/feature-gates/feature-gate-abi.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi.rs rename to tests/ui/feature-gates/feature-gate-abi.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi.stderr b/tests/ui/feature-gates/feature-gate-abi.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi.stderr rename to tests/ui/feature-gates/feature-gate-abi.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi_amdgpu_kernel.rs b/tests/ui/feature-gates/feature-gate-abi_amdgpu_kernel.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi_amdgpu_kernel.rs rename to tests/ui/feature-gates/feature-gate-abi_amdgpu_kernel.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi_amdgpu_kernel.stderr b/tests/ui/feature-gates/feature-gate-abi_amdgpu_kernel.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi_amdgpu_kernel.stderr rename to tests/ui/feature-gates/feature-gate-abi_amdgpu_kernel.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi_ptx.rs b/tests/ui/feature-gates/feature-gate-abi_ptx.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi_ptx.rs rename to tests/ui/feature-gates/feature-gate-abi_ptx.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi_ptx.stderr b/tests/ui/feature-gates/feature-gate-abi_ptx.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi_ptx.stderr rename to tests/ui/feature-gates/feature-gate-abi_ptx.stderr diff --git a/src/test/ui/feature-gates/feature-gate-abi_unadjusted.rs b/tests/ui/feature-gates/feature-gate-abi_unadjusted.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi_unadjusted.rs rename to tests/ui/feature-gates/feature-gate-abi_unadjusted.rs diff --git a/src/test/ui/feature-gates/feature-gate-abi_unadjusted.stderr b/tests/ui/feature-gates/feature-gate-abi_unadjusted.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-abi_unadjusted.stderr rename to tests/ui/feature-gates/feature-gate-abi_unadjusted.stderr diff --git a/src/test/ui/feature-gates/feature-gate-adt_const_params.rs b/tests/ui/feature-gates/feature-gate-adt_const_params.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-adt_const_params.rs rename to tests/ui/feature-gates/feature-gate-adt_const_params.rs diff --git a/src/test/ui/feature-gates/feature-gate-adt_const_params.stderr b/tests/ui/feature-gates/feature-gate-adt_const_params.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-adt_const_params.stderr rename to tests/ui/feature-gates/feature-gate-adt_const_params.stderr diff --git a/src/test/ui/feature-gates/feature-gate-alloc-error-handler.rs b/tests/ui/feature-gates/feature-gate-alloc-error-handler.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-alloc-error-handler.rs rename to tests/ui/feature-gates/feature-gate-alloc-error-handler.rs diff --git a/src/test/ui/feature-gates/feature-gate-alloc-error-handler.stderr b/tests/ui/feature-gates/feature-gate-alloc-error-handler.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-alloc-error-handler.stderr rename to tests/ui/feature-gates/feature-gate-alloc-error-handler.stderr diff --git a/src/test/ui/feature-gates/feature-gate-allocator_internals.rs b/tests/ui/feature-gates/feature-gate-allocator_internals.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allocator_internals.rs rename to tests/ui/feature-gates/feature-gate-allocator_internals.rs diff --git a/src/test/ui/feature-gates/feature-gate-allocator_internals.stderr b/tests/ui/feature-gates/feature-gate-allocator_internals.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allocator_internals.stderr rename to tests/ui/feature-gates/feature-gate-allocator_internals.stderr diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.rs b/tests/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.rs rename to tests/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.rs diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.stderr b/tests/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.stderr rename to tests/ui/feature-gates/feature-gate-allow-internal-unsafe-nested-macro.stderr diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.rs b/tests/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.rs rename to tests/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.rs diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.stderr b/tests/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.stderr rename to tests/ui/feature-gates/feature-gate-allow-internal-unstable-nested-macro.stderr diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs b/tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs rename to tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.rs diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr b/tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr rename to tests/ui/feature-gates/feature-gate-allow-internal-unstable-struct.stderr diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unstable.rs b/tests/ui/feature-gates/feature-gate-allow-internal-unstable.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unstable.rs rename to tests/ui/feature-gates/feature-gate-allow-internal-unstable.rs diff --git a/src/test/ui/feature-gates/feature-gate-allow-internal-unstable.stderr b/tests/ui/feature-gates/feature-gate-allow-internal-unstable.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-allow-internal-unstable.stderr rename to tests/ui/feature-gates/feature-gate-allow-internal-unstable.stderr diff --git a/src/test/ui/feature-gates/feature-gate-arbitrary-self-types.rs b/tests/ui/feature-gates/feature-gate-arbitrary-self-types.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-arbitrary-self-types.rs rename to tests/ui/feature-gates/feature-gate-arbitrary-self-types.rs diff --git a/src/test/ui/feature-gates/feature-gate-arbitrary-self-types.stderr b/tests/ui/feature-gates/feature-gate-arbitrary-self-types.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-arbitrary-self-types.stderr rename to tests/ui/feature-gates/feature-gate-arbitrary-self-types.stderr diff --git a/src/test/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.rs b/tests/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.rs rename to tests/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.rs diff --git a/src/test/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.stderr b/tests/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.stderr rename to tests/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.stderr diff --git a/src/test/ui/feature-gates/feature-gate-asm_const.rs b/tests/ui/feature-gates/feature-gate-asm_const.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-asm_const.rs rename to tests/ui/feature-gates/feature-gate-asm_const.rs diff --git a/src/test/ui/feature-gates/feature-gate-asm_const.stderr b/tests/ui/feature-gates/feature-gate-asm_const.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-asm_const.stderr rename to tests/ui/feature-gates/feature-gate-asm_const.stderr diff --git a/src/test/ui/feature-gates/feature-gate-asm_experimental_arch.rs b/tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-asm_experimental_arch.rs rename to tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs diff --git a/src/test/ui/feature-gates/feature-gate-asm_experimental_arch.stderr b/tests/ui/feature-gates/feature-gate-asm_experimental_arch.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-asm_experimental_arch.stderr rename to tests/ui/feature-gates/feature-gate-asm_experimental_arch.stderr diff --git a/src/test/ui/feature-gates/feature-gate-asm_unwind.rs b/tests/ui/feature-gates/feature-gate-asm_unwind.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-asm_unwind.rs rename to tests/ui/feature-gates/feature-gate-asm_unwind.rs diff --git a/src/test/ui/feature-gates/feature-gate-asm_unwind.stderr b/tests/ui/feature-gates/feature-gate-asm_unwind.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-asm_unwind.stderr rename to tests/ui/feature-gates/feature-gate-asm_unwind.stderr diff --git a/src/test/ui/feature-gates/feature-gate-assoc-type-defaults.rs b/tests/ui/feature-gates/feature-gate-assoc-type-defaults.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-assoc-type-defaults.rs rename to tests/ui/feature-gates/feature-gate-assoc-type-defaults.rs diff --git a/src/test/ui/feature-gates/feature-gate-assoc-type-defaults.stderr b/tests/ui/feature-gates/feature-gate-assoc-type-defaults.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-assoc-type-defaults.stderr rename to tests/ui/feature-gates/feature-gate-assoc-type-defaults.stderr diff --git a/src/test/ui/feature-gates/feature-gate-associated_const_equality.rs b/tests/ui/feature-gates/feature-gate-associated_const_equality.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-associated_const_equality.rs rename to tests/ui/feature-gates/feature-gate-associated_const_equality.rs diff --git a/src/test/ui/feature-gates/feature-gate-associated_const_equality.stderr b/tests/ui/feature-gates/feature-gate-associated_const_equality.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-associated_const_equality.stderr rename to tests/ui/feature-gates/feature-gate-associated_const_equality.stderr diff --git a/src/test/ui/feature-gates/feature-gate-associated_type_bounds.rs b/tests/ui/feature-gates/feature-gate-associated_type_bounds.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-associated_type_bounds.rs rename to tests/ui/feature-gates/feature-gate-associated_type_bounds.rs diff --git a/src/test/ui/feature-gates/feature-gate-associated_type_bounds.stderr b/tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-associated_type_bounds.stderr rename to tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr diff --git a/src/test/ui/feature-gates/feature-gate-auto-traits.rs b/tests/ui/feature-gates/feature-gate-auto-traits.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-auto-traits.rs rename to tests/ui/feature-gates/feature-gate-auto-traits.rs diff --git a/src/test/ui/feature-gates/feature-gate-auto-traits.stderr b/tests/ui/feature-gates/feature-gate-auto-traits.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-auto-traits.stderr rename to tests/ui/feature-gates/feature-gate-auto-traits.stderr diff --git a/src/test/ui/feature-gates/feature-gate-box-expr.rs b/tests/ui/feature-gates/feature-gate-box-expr.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-box-expr.rs rename to tests/ui/feature-gates/feature-gate-box-expr.rs diff --git a/src/test/ui/feature-gates/feature-gate-box-expr.stderr b/tests/ui/feature-gates/feature-gate-box-expr.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-box-expr.stderr rename to tests/ui/feature-gates/feature-gate-box-expr.stderr diff --git a/src/test/ui/feature-gates/feature-gate-box_patterns.rs b/tests/ui/feature-gates/feature-gate-box_patterns.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-box_patterns.rs rename to tests/ui/feature-gates/feature-gate-box_patterns.rs diff --git a/src/test/ui/feature-gates/feature-gate-box_patterns.stderr b/tests/ui/feature-gates/feature-gate-box_patterns.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-box_patterns.stderr rename to tests/ui/feature-gates/feature-gate-box_patterns.stderr diff --git a/src/test/ui/feature-gates/feature-gate-box_syntax.rs b/tests/ui/feature-gates/feature-gate-box_syntax.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-box_syntax.rs rename to tests/ui/feature-gates/feature-gate-box_syntax.rs diff --git a/src/test/ui/feature-gates/feature-gate-box_syntax.stderr b/tests/ui/feature-gates/feature-gate-box_syntax.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-box_syntax.stderr rename to tests/ui/feature-gates/feature-gate-box_syntax.stderr diff --git a/src/test/ui/feature-gates/feature-gate-c_variadic.rs b/tests/ui/feature-gates/feature-gate-c_variadic.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-c_variadic.rs rename to tests/ui/feature-gates/feature-gate-c_variadic.rs diff --git a/src/test/ui/feature-gates/feature-gate-c_variadic.stderr b/tests/ui/feature-gates/feature-gate-c_variadic.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-c_variadic.stderr rename to tests/ui/feature-gates/feature-gate-c_variadic.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-abi.rs b/tests/ui/feature-gates/feature-gate-cfg-target-abi.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-abi.rs rename to tests/ui/feature-gates/feature-gate-cfg-target-abi.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-abi.stderr b/tests/ui/feature-gates/feature-gate-cfg-target-abi.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-abi.stderr rename to tests/ui/feature-gates/feature-gate-cfg-target-abi.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-compact.rs b/tests/ui/feature-gates/feature-gate-cfg-target-compact.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-compact.rs rename to tests/ui/feature-gates/feature-gate-cfg-target-compact.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-compact.stderr b/tests/ui/feature-gates/feature-gate-cfg-target-compact.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-compact.stderr rename to tests/ui/feature-gates/feature-gate-cfg-target-compact.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.rs b/tests/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.rs rename to tests/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.stderr b/tests/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.stderr rename to tests/ui/feature-gates/feature-gate-cfg-target-has-atomic-equal-alignment.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic.rs b/tests/ui/feature-gates/feature-gate-cfg-target-has-atomic.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic.rs rename to tests/ui/feature-gates/feature-gate-cfg-target-has-atomic.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic.stderr b/tests/ui/feature-gates/feature-gate-cfg-target-has-atomic.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic.stderr rename to tests/ui/feature-gates/feature-gate-cfg-target-has-atomic.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-thread-local.rs b/tests/ui/feature-gates/feature-gate-cfg-target-thread-local.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-thread-local.rs rename to tests/ui/feature-gates/feature-gate-cfg-target-thread-local.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg-target-thread-local.stderr b/tests/ui/feature-gates/feature-gate-cfg-target-thread-local.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-target-thread-local.stderr rename to tests/ui/feature-gates/feature-gate-cfg-target-thread-local.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg-version.rs b/tests/ui/feature-gates/feature-gate-cfg-version.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-version.rs rename to tests/ui/feature-gates/feature-gate-cfg-version.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg-version.stderr b/tests/ui/feature-gates/feature-gate-cfg-version.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg-version.stderr rename to tests/ui/feature-gates/feature-gate-cfg-version.stderr diff --git a/src/test/ui/feature-gates/feature-gate-cfg_sanitize.rs b/tests/ui/feature-gates/feature-gate-cfg_sanitize.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg_sanitize.rs rename to tests/ui/feature-gates/feature-gate-cfg_sanitize.rs diff --git a/src/test/ui/feature-gates/feature-gate-cfg_sanitize.stderr b/tests/ui/feature-gates/feature-gate-cfg_sanitize.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-cfg_sanitize.stderr rename to tests/ui/feature-gates/feature-gate-cfg_sanitize.stderr diff --git a/src/test/ui/feature-gates/feature-gate-check-cfg.rs b/tests/ui/feature-gates/feature-gate-check-cfg.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-check-cfg.rs rename to tests/ui/feature-gates/feature-gate-check-cfg.rs diff --git a/src/test/ui/feature-gates/feature-gate-check-cfg.stderr b/tests/ui/feature-gates/feature-gate-check-cfg.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-check-cfg.stderr rename to tests/ui/feature-gates/feature-gate-check-cfg.stderr diff --git a/src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs b/tests/ui/feature-gates/feature-gate-closure_lifetime_binder.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.rs rename to tests/ui/feature-gates/feature-gate-closure_lifetime_binder.rs diff --git a/src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.stderr b/tests/ui/feature-gates/feature-gate-closure_lifetime_binder.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.stderr rename to tests/ui/feature-gates/feature-gate-closure_lifetime_binder.stderr diff --git a/src/test/ui/feature-gates/feature-gate-closure_track_caller.rs b/tests/ui/feature-gates/feature-gate-closure_track_caller.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-closure_track_caller.rs rename to tests/ui/feature-gates/feature-gate-closure_track_caller.rs diff --git a/src/test/ui/feature-gates/feature-gate-closure_track_caller.stderr b/tests/ui/feature-gates/feature-gate-closure_track_caller.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-closure_track_caller.stderr rename to tests/ui/feature-gates/feature-gate-closure_track_caller.stderr diff --git a/src/test/ui/feature-gates/feature-gate-collapse_debuginfo.rs b/tests/ui/feature-gates/feature-gate-collapse_debuginfo.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-collapse_debuginfo.rs rename to tests/ui/feature-gates/feature-gate-collapse_debuginfo.rs diff --git a/src/test/ui/feature-gates/feature-gate-collapse_debuginfo.stderr b/tests/ui/feature-gates/feature-gate-collapse_debuginfo.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-collapse_debuginfo.stderr rename to tests/ui/feature-gates/feature-gate-collapse_debuginfo.stderr diff --git a/src/test/ui/feature-gates/feature-gate-compiler-builtins.rs b/tests/ui/feature-gates/feature-gate-compiler-builtins.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-compiler-builtins.rs rename to tests/ui/feature-gates/feature-gate-compiler-builtins.rs diff --git a/src/test/ui/feature-gates/feature-gate-compiler-builtins.stderr b/tests/ui/feature-gates/feature-gate-compiler-builtins.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-compiler-builtins.stderr rename to tests/ui/feature-gates/feature-gate-compiler-builtins.stderr diff --git a/src/test/ui/feature-gates/feature-gate-concat_bytes.rs b/tests/ui/feature-gates/feature-gate-concat_bytes.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_bytes.rs rename to tests/ui/feature-gates/feature-gate-concat_bytes.rs diff --git a/src/test/ui/feature-gates/feature-gate-concat_bytes.stderr b/tests/ui/feature-gates/feature-gate-concat_bytes.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_bytes.stderr rename to tests/ui/feature-gates/feature-gate-concat_bytes.stderr diff --git a/src/test/ui/feature-gates/feature-gate-concat_idents.rs b/tests/ui/feature-gates/feature-gate-concat_idents.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_idents.rs rename to tests/ui/feature-gates/feature-gate-concat_idents.rs diff --git a/src/test/ui/feature-gates/feature-gate-concat_idents.stderr b/tests/ui/feature-gates/feature-gate-concat_idents.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_idents.stderr rename to tests/ui/feature-gates/feature-gate-concat_idents.stderr diff --git a/src/test/ui/feature-gates/feature-gate-concat_idents2.rs b/tests/ui/feature-gates/feature-gate-concat_idents2.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_idents2.rs rename to tests/ui/feature-gates/feature-gate-concat_idents2.rs diff --git a/src/test/ui/feature-gates/feature-gate-concat_idents2.stderr b/tests/ui/feature-gates/feature-gate-concat_idents2.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_idents2.stderr rename to tests/ui/feature-gates/feature-gate-concat_idents2.stderr diff --git a/src/test/ui/feature-gates/feature-gate-concat_idents3.rs b/tests/ui/feature-gates/feature-gate-concat_idents3.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_idents3.rs rename to tests/ui/feature-gates/feature-gate-concat_idents3.rs diff --git a/src/test/ui/feature-gates/feature-gate-concat_idents3.stderr b/tests/ui/feature-gates/feature-gate-concat_idents3.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-concat_idents3.stderr rename to tests/ui/feature-gates/feature-gate-concat_idents3.stderr diff --git a/src/test/ui/feature-gates/feature-gate-const-indexing.rs b/tests/ui/feature-gates/feature-gate-const-indexing.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-const-indexing.rs rename to tests/ui/feature-gates/feature-gate-const-indexing.rs diff --git a/src/test/ui/feature-gates/feature-gate-const_refs_to_cell.rs b/tests/ui/feature-gates/feature-gate-const_refs_to_cell.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-const_refs_to_cell.rs rename to tests/ui/feature-gates/feature-gate-const_refs_to_cell.rs diff --git a/src/test/ui/feature-gates/feature-gate-custom_attribute.rs b/tests/ui/feature-gates/feature-gate-custom_attribute.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_attribute.rs rename to tests/ui/feature-gates/feature-gate-custom_attribute.rs diff --git a/src/test/ui/feature-gates/feature-gate-custom_attribute.stderr b/tests/ui/feature-gates/feature-gate-custom_attribute.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_attribute.stderr rename to tests/ui/feature-gates/feature-gate-custom_attribute.stderr diff --git a/src/test/ui/feature-gates/feature-gate-custom_attribute2.rs b/tests/ui/feature-gates/feature-gate-custom_attribute2.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_attribute2.rs rename to tests/ui/feature-gates/feature-gate-custom_attribute2.rs diff --git a/src/test/ui/feature-gates/feature-gate-custom_attribute2.stderr b/tests/ui/feature-gates/feature-gate-custom_attribute2.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_attribute2.stderr rename to tests/ui/feature-gates/feature-gate-custom_attribute2.stderr diff --git a/src/test/ui/feature-gates/feature-gate-custom_mir.rs b/tests/ui/feature-gates/feature-gate-custom_mir.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_mir.rs rename to tests/ui/feature-gates/feature-gate-custom_mir.rs diff --git a/src/test/ui/feature-gates/feature-gate-custom_mir.stderr b/tests/ui/feature-gates/feature-gate-custom_mir.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_mir.stderr rename to tests/ui/feature-gates/feature-gate-custom_mir.stderr diff --git a/src/test/ui/feature-gates/feature-gate-custom_test_frameworks.rs b/tests/ui/feature-gates/feature-gate-custom_test_frameworks.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_test_frameworks.rs rename to tests/ui/feature-gates/feature-gate-custom_test_frameworks.rs diff --git a/src/test/ui/feature-gates/feature-gate-custom_test_frameworks.stderr b/tests/ui/feature-gates/feature-gate-custom_test_frameworks.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-custom_test_frameworks.stderr rename to tests/ui/feature-gates/feature-gate-custom_test_frameworks.stderr diff --git a/src/test/ui/feature-gates/feature-gate-debugger-visualizer.rs b/tests/ui/feature-gates/feature-gate-debugger-visualizer.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-debugger-visualizer.rs rename to tests/ui/feature-gates/feature-gate-debugger-visualizer.rs diff --git a/src/test/ui/feature-gates/feature-gate-debugger-visualizer.stderr b/tests/ui/feature-gates/feature-gate-debugger-visualizer.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-debugger-visualizer.stderr rename to tests/ui/feature-gates/feature-gate-debugger-visualizer.stderr diff --git a/src/test/ui/feature-gates/feature-gate-decl_macro.rs b/tests/ui/feature-gates/feature-gate-decl_macro.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-decl_macro.rs rename to tests/ui/feature-gates/feature-gate-decl_macro.rs diff --git a/src/test/ui/feature-gates/feature-gate-decl_macro.stderr b/tests/ui/feature-gates/feature-gate-decl_macro.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-decl_macro.stderr rename to tests/ui/feature-gates/feature-gate-decl_macro.stderr diff --git a/src/test/ui/feature-gates/feature-gate-default_type_parameter_fallback.rs b/tests/ui/feature-gates/feature-gate-default_type_parameter_fallback.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-default_type_parameter_fallback.rs rename to tests/ui/feature-gates/feature-gate-default_type_parameter_fallback.rs diff --git a/src/test/ui/feature-gates/feature-gate-default_type_parameter_fallback.stderr b/tests/ui/feature-gates/feature-gate-default_type_parameter_fallback.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-default_type_parameter_fallback.stderr rename to tests/ui/feature-gates/feature-gate-default_type_parameter_fallback.stderr diff --git a/src/test/ui/feature-gates/feature-gate-deprecated_safe.rs b/tests/ui/feature-gates/feature-gate-deprecated_safe.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-deprecated_safe.rs rename to tests/ui/feature-gates/feature-gate-deprecated_safe.rs diff --git a/src/test/ui/feature-gates/feature-gate-deprecated_safe.stderr b/tests/ui/feature-gates/feature-gate-deprecated_safe.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-deprecated_safe.stderr rename to tests/ui/feature-gates/feature-gate-deprecated_safe.stderr diff --git a/src/test/ui/feature-gates/feature-gate-doc_cfg.rs b/tests/ui/feature-gates/feature-gate-doc_cfg.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-doc_cfg.rs rename to tests/ui/feature-gates/feature-gate-doc_cfg.rs diff --git a/src/test/ui/feature-gates/feature-gate-doc_cfg.stderr b/tests/ui/feature-gates/feature-gate-doc_cfg.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-doc_cfg.stderr rename to tests/ui/feature-gates/feature-gate-doc_cfg.stderr diff --git a/src/test/ui/feature-gates/feature-gate-doc_masked.rs b/tests/ui/feature-gates/feature-gate-doc_masked.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-doc_masked.rs rename to tests/ui/feature-gates/feature-gate-doc_masked.rs diff --git a/src/test/ui/feature-gates/feature-gate-doc_masked.stderr b/tests/ui/feature-gates/feature-gate-doc_masked.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-doc_masked.stderr rename to tests/ui/feature-gates/feature-gate-doc_masked.stderr diff --git a/src/test/ui/feature-gates/feature-gate-doc_notable_trait.rs b/tests/ui/feature-gates/feature-gate-doc_notable_trait.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-doc_notable_trait.rs rename to tests/ui/feature-gates/feature-gate-doc_notable_trait.rs diff --git a/src/test/ui/feature-gates/feature-gate-doc_notable_trait.stderr b/tests/ui/feature-gates/feature-gate-doc_notable_trait.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-doc_notable_trait.stderr rename to tests/ui/feature-gates/feature-gate-doc_notable_trait.stderr diff --git a/src/test/ui/feature-gates/feature-gate-exclusive-range-pattern.rs b/tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-exclusive-range-pattern.rs rename to tests/ui/feature-gates/feature-gate-exclusive-range-pattern.rs diff --git a/src/test/ui/feature-gates/feature-gate-exclusive-range-pattern.stderr b/tests/ui/feature-gates/feature-gate-exclusive-range-pattern.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-exclusive-range-pattern.stderr rename to tests/ui/feature-gates/feature-gate-exclusive-range-pattern.stderr diff --git a/src/test/ui/feature-gates/feature-gate-exhaustive-patterns.rs b/tests/ui/feature-gates/feature-gate-exhaustive-patterns.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-exhaustive-patterns.rs rename to tests/ui/feature-gates/feature-gate-exhaustive-patterns.rs diff --git a/src/test/ui/feature-gates/feature-gate-exhaustive-patterns.stderr b/tests/ui/feature-gates/feature-gate-exhaustive-patterns.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-exhaustive-patterns.stderr rename to tests/ui/feature-gates/feature-gate-exhaustive-patterns.stderr diff --git a/src/test/ui/feature-gates/feature-gate-extern_absolute_paths.rs b/tests/ui/feature-gates/feature-gate-extern_absolute_paths.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-extern_absolute_paths.rs rename to tests/ui/feature-gates/feature-gate-extern_absolute_paths.rs diff --git a/src/test/ui/feature-gates/feature-gate-extern_absolute_paths.stderr b/tests/ui/feature-gates/feature-gate-extern_absolute_paths.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-extern_absolute_paths.stderr rename to tests/ui/feature-gates/feature-gate-extern_absolute_paths.stderr diff --git a/src/test/ui/feature-gates/feature-gate-extern_prelude.rs b/tests/ui/feature-gates/feature-gate-extern_prelude.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-extern_prelude.rs rename to tests/ui/feature-gates/feature-gate-extern_prelude.rs diff --git a/src/test/ui/feature-gates/feature-gate-extern_prelude.stderr b/tests/ui/feature-gates/feature-gate-extern_prelude.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-extern_prelude.stderr rename to tests/ui/feature-gates/feature-gate-extern_prelude.stderr diff --git a/src/test/ui/feature-gates/feature-gate-extern_types.rs b/tests/ui/feature-gates/feature-gate-extern_types.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-extern_types.rs rename to tests/ui/feature-gates/feature-gate-extern_types.rs diff --git a/src/test/ui/feature-gates/feature-gate-extern_types.stderr b/tests/ui/feature-gates/feature-gate-extern_types.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-extern_types.stderr rename to tests/ui/feature-gates/feature-gate-extern_types.stderr diff --git a/src/test/ui/feature-gates/feature-gate-feature-gate.rs b/tests/ui/feature-gates/feature-gate-feature-gate.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-feature-gate.rs rename to tests/ui/feature-gates/feature-gate-feature-gate.rs diff --git a/src/test/ui/feature-gates/feature-gate-feature-gate.stderr b/tests/ui/feature-gates/feature-gate-feature-gate.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-feature-gate.stderr rename to tests/ui/feature-gates/feature-gate-feature-gate.stderr diff --git a/src/test/ui/feature-gates/feature-gate-ffi_const.rs b/tests/ui/feature-gates/feature-gate-ffi_const.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-ffi_const.rs rename to tests/ui/feature-gates/feature-gate-ffi_const.rs diff --git a/src/test/ui/feature-gates/feature-gate-ffi_const.stderr b/tests/ui/feature-gates/feature-gate-ffi_const.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-ffi_const.stderr rename to tests/ui/feature-gates/feature-gate-ffi_const.stderr diff --git a/src/test/ui/feature-gates/feature-gate-ffi_pure.rs b/tests/ui/feature-gates/feature-gate-ffi_pure.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-ffi_pure.rs rename to tests/ui/feature-gates/feature-gate-ffi_pure.rs diff --git a/src/test/ui/feature-gates/feature-gate-ffi_pure.stderr b/tests/ui/feature-gates/feature-gate-ffi_pure.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-ffi_pure.stderr rename to tests/ui/feature-gates/feature-gate-ffi_pure.stderr diff --git a/src/test/ui/feature-gates/feature-gate-ffi_returns_twice.rs b/tests/ui/feature-gates/feature-gate-ffi_returns_twice.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-ffi_returns_twice.rs rename to tests/ui/feature-gates/feature-gate-ffi_returns_twice.rs diff --git a/src/test/ui/feature-gates/feature-gate-ffi_returns_twice.stderr b/tests/ui/feature-gates/feature-gate-ffi_returns_twice.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-ffi_returns_twice.stderr rename to tests/ui/feature-gates/feature-gate-ffi_returns_twice.stderr diff --git a/src/test/ui/feature-gates/feature-gate-fn_align.rs b/tests/ui/feature-gates/feature-gate-fn_align.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-fn_align.rs rename to tests/ui/feature-gates/feature-gate-fn_align.rs diff --git a/src/test/ui/feature-gates/feature-gate-fn_align.stderr b/tests/ui/feature-gates/feature-gate-fn_align.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-fn_align.stderr rename to tests/ui/feature-gates/feature-gate-fn_align.stderr diff --git a/src/test/ui/feature-gates/feature-gate-format_args_nl.rs b/tests/ui/feature-gates/feature-gate-format_args_nl.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-format_args_nl.rs rename to tests/ui/feature-gates/feature-gate-format_args_nl.rs diff --git a/src/test/ui/feature-gates/feature-gate-format_args_nl.stderr b/tests/ui/feature-gates/feature-gate-format_args_nl.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-format_args_nl.stderr rename to tests/ui/feature-gates/feature-gate-format_args_nl.stderr diff --git a/src/test/ui/feature-gates/feature-gate-fundamental.rs b/tests/ui/feature-gates/feature-gate-fundamental.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-fundamental.rs rename to tests/ui/feature-gates/feature-gate-fundamental.rs diff --git a/src/test/ui/feature-gates/feature-gate-fundamental.stderr b/tests/ui/feature-gates/feature-gate-fundamental.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-fundamental.stderr rename to tests/ui/feature-gates/feature-gate-fundamental.stderr diff --git a/src/test/ui/feature-gates/feature-gate-generators.rs b/tests/ui/feature-gates/feature-gate-generators.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-generators.rs rename to tests/ui/feature-gates/feature-gate-generators.rs diff --git a/src/test/ui/feature-gates/feature-gate-generators.stderr b/tests/ui/feature-gates/feature-gate-generators.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-generators.stderr rename to tests/ui/feature-gates/feature-gate-generators.stderr diff --git a/src/test/ui/feature-gates/feature-gate-generic_arg_infer.normal.stderr b/tests/ui/feature-gates/feature-gate-generic_arg_infer.normal.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-generic_arg_infer.normal.stderr rename to tests/ui/feature-gates/feature-gate-generic_arg_infer.normal.stderr diff --git a/src/test/ui/feature-gates/feature-gate-generic_arg_infer.rs b/tests/ui/feature-gates/feature-gate-generic_arg_infer.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-generic_arg_infer.rs rename to tests/ui/feature-gates/feature-gate-generic_arg_infer.rs diff --git a/src/test/ui/feature-gates/feature-gate-generic_associated_types_extended.rs b/tests/ui/feature-gates/feature-gate-generic_associated_types_extended.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-generic_associated_types_extended.rs rename to tests/ui/feature-gates/feature-gate-generic_associated_types_extended.rs diff --git a/src/test/ui/feature-gates/feature-gate-generic_associated_types_extended.stderr b/tests/ui/feature-gates/feature-gate-generic_associated_types_extended.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-generic_associated_types_extended.stderr rename to tests/ui/feature-gates/feature-gate-generic_associated_types_extended.stderr diff --git a/src/test/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.rs b/tests/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.rs rename to tests/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.rs diff --git a/src/test/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.stderr b/tests/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.stderr rename to tests/ui/feature-gates/feature-gate-impl_trait_in_fn_trait_return.stderr diff --git a/src/test/ui/feature-gates/feature-gate-imported_main.rs b/tests/ui/feature-gates/feature-gate-imported_main.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-imported_main.rs rename to tests/ui/feature-gates/feature-gate-imported_main.rs diff --git a/src/test/ui/feature-gates/feature-gate-imported_main.stderr b/tests/ui/feature-gates/feature-gate-imported_main.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-imported_main.stderr rename to tests/ui/feature-gates/feature-gate-imported_main.stderr diff --git a/src/test/ui/feature-gates/feature-gate-inherent_associated_types.rs b/tests/ui/feature-gates/feature-gate-inherent_associated_types.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-inherent_associated_types.rs rename to tests/ui/feature-gates/feature-gate-inherent_associated_types.rs diff --git a/src/test/ui/feature-gates/feature-gate-inherent_associated_types.stderr b/tests/ui/feature-gates/feature-gate-inherent_associated_types.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-inherent_associated_types.stderr rename to tests/ui/feature-gates/feature-gate-inherent_associated_types.stderr diff --git a/src/test/ui/feature-gates/feature-gate-inline_const.rs b/tests/ui/feature-gates/feature-gate-inline_const.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-inline_const.rs rename to tests/ui/feature-gates/feature-gate-inline_const.rs diff --git a/src/test/ui/feature-gates/feature-gate-inline_const.stderr b/tests/ui/feature-gates/feature-gate-inline_const.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-inline_const.stderr rename to tests/ui/feature-gates/feature-gate-inline_const.stderr diff --git a/src/test/ui/feature-gates/feature-gate-inline_const_pat.rs b/tests/ui/feature-gates/feature-gate-inline_const_pat.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-inline_const_pat.rs rename to tests/ui/feature-gates/feature-gate-inline_const_pat.rs diff --git a/src/test/ui/feature-gates/feature-gate-inline_const_pat.stderr b/tests/ui/feature-gates/feature-gate-inline_const_pat.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-inline_const_pat.stderr rename to tests/ui/feature-gates/feature-gate-inline_const_pat.stderr diff --git a/src/test/ui/feature-gates/feature-gate-intrinsics.rs b/tests/ui/feature-gates/feature-gate-intrinsics.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-intrinsics.rs rename to tests/ui/feature-gates/feature-gate-intrinsics.rs diff --git a/src/test/ui/feature-gates/feature-gate-intrinsics.stderr b/tests/ui/feature-gates/feature-gate-intrinsics.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-intrinsics.stderr rename to tests/ui/feature-gates/feature-gate-intrinsics.stderr diff --git a/src/test/ui/feature-gates/feature-gate-is_sorted.rs b/tests/ui/feature-gates/feature-gate-is_sorted.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-is_sorted.rs rename to tests/ui/feature-gates/feature-gate-is_sorted.rs diff --git a/src/test/ui/feature-gates/feature-gate-is_sorted.stderr b/tests/ui/feature-gates/feature-gate-is_sorted.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-is_sorted.stderr rename to tests/ui/feature-gates/feature-gate-is_sorted.stderr diff --git a/src/test/ui/feature-gates/feature-gate-lang-items.rs b/tests/ui/feature-gates/feature-gate-lang-items.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-lang-items.rs rename to tests/ui/feature-gates/feature-gate-lang-items.rs diff --git a/src/test/ui/feature-gates/feature-gate-lang-items.stderr b/tests/ui/feature-gates/feature-gate-lang-items.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-lang-items.stderr rename to tests/ui/feature-gates/feature-gate-lang-items.stderr diff --git a/src/test/ui/feature-gates/feature-gate-large-assignments.rs b/tests/ui/feature-gates/feature-gate-large-assignments.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-large-assignments.rs rename to tests/ui/feature-gates/feature-gate-large-assignments.rs diff --git a/src/test/ui/feature-gates/feature-gate-large-assignments.stderr b/tests/ui/feature-gates/feature-gate-large-assignments.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-large-assignments.stderr rename to tests/ui/feature-gates/feature-gate-large-assignments.stderr diff --git a/src/test/ui/feature-gates/feature-gate-link_cfg.rs b/tests/ui/feature-gates/feature-gate-link_cfg.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-link_cfg.rs rename to tests/ui/feature-gates/feature-gate-link_cfg.rs diff --git a/src/test/ui/feature-gates/feature-gate-link_cfg.stderr b/tests/ui/feature-gates/feature-gate-link_cfg.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-link_cfg.stderr rename to tests/ui/feature-gates/feature-gate-link_cfg.stderr diff --git a/src/test/ui/feature-gates/feature-gate-link_llvm_intrinsics.rs b/tests/ui/feature-gates/feature-gate-link_llvm_intrinsics.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-link_llvm_intrinsics.rs rename to tests/ui/feature-gates/feature-gate-link_llvm_intrinsics.rs diff --git a/src/test/ui/feature-gates/feature-gate-link_llvm_intrinsics.stderr b/tests/ui/feature-gates/feature-gate-link_llvm_intrinsics.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-link_llvm_intrinsics.stderr rename to tests/ui/feature-gates/feature-gate-link_llvm_intrinsics.stderr diff --git a/src/test/ui/feature-gates/feature-gate-linkage.rs b/tests/ui/feature-gates/feature-gate-linkage.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-linkage.rs rename to tests/ui/feature-gates/feature-gate-linkage.rs diff --git a/src/test/ui/feature-gates/feature-gate-linkage.stderr b/tests/ui/feature-gates/feature-gate-linkage.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-linkage.stderr rename to tests/ui/feature-gates/feature-gate-linkage.stderr diff --git a/src/test/ui/feature-gates/feature-gate-lint-reasons.rs b/tests/ui/feature-gates/feature-gate-lint-reasons.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-lint-reasons.rs rename to tests/ui/feature-gates/feature-gate-lint-reasons.rs diff --git a/src/test/ui/feature-gates/feature-gate-lint-reasons.stderr b/tests/ui/feature-gates/feature-gate-lint-reasons.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-lint-reasons.stderr rename to tests/ui/feature-gates/feature-gate-lint-reasons.stderr diff --git a/src/test/ui/feature-gates/feature-gate-log_syntax.rs b/tests/ui/feature-gates/feature-gate-log_syntax.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-log_syntax.rs rename to tests/ui/feature-gates/feature-gate-log_syntax.rs diff --git a/src/test/ui/feature-gates/feature-gate-log_syntax.stderr b/tests/ui/feature-gates/feature-gate-log_syntax.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-log_syntax.stderr rename to tests/ui/feature-gates/feature-gate-log_syntax.stderr diff --git a/src/test/ui/feature-gates/feature-gate-log_syntax.stdout b/tests/ui/feature-gates/feature-gate-log_syntax.stdout similarity index 100% rename from src/test/ui/feature-gates/feature-gate-log_syntax.stdout rename to tests/ui/feature-gates/feature-gate-log_syntax.stdout diff --git a/src/test/ui/feature-gates/feature-gate-log_syntax2.rs b/tests/ui/feature-gates/feature-gate-log_syntax2.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-log_syntax2.rs rename to tests/ui/feature-gates/feature-gate-log_syntax2.rs diff --git a/src/test/ui/feature-gates/feature-gate-log_syntax2.stderr b/tests/ui/feature-gates/feature-gate-log_syntax2.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-log_syntax2.stderr rename to tests/ui/feature-gates/feature-gate-log_syntax2.stderr diff --git a/src/test/ui/feature-gates/feature-gate-log_syntax2.stdout b/tests/ui/feature-gates/feature-gate-log_syntax2.stdout similarity index 100% rename from src/test/ui/feature-gates/feature-gate-log_syntax2.stdout rename to tests/ui/feature-gates/feature-gate-log_syntax2.stdout diff --git a/src/test/ui/feature-gates/feature-gate-marker_trait_attr.rs b/tests/ui/feature-gates/feature-gate-marker_trait_attr.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-marker_trait_attr.rs rename to tests/ui/feature-gates/feature-gate-marker_trait_attr.rs diff --git a/src/test/ui/feature-gates/feature-gate-marker_trait_attr.stderr b/tests/ui/feature-gates/feature-gate-marker_trait_attr.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-marker_trait_attr.stderr rename to tests/ui/feature-gates/feature-gate-marker_trait_attr.stderr diff --git a/src/test/ui/feature-gates/feature-gate-may-dangle.rs b/tests/ui/feature-gates/feature-gate-may-dangle.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-may-dangle.rs rename to tests/ui/feature-gates/feature-gate-may-dangle.rs diff --git a/src/test/ui/feature-gates/feature-gate-may-dangle.stderr b/tests/ui/feature-gates/feature-gate-may-dangle.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-may-dangle.stderr rename to tests/ui/feature-gates/feature-gate-may-dangle.stderr diff --git a/src/test/ui/feature-gates/feature-gate-min_const_fn.rs b/tests/ui/feature-gates/feature-gate-min_const_fn.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-min_const_fn.rs rename to tests/ui/feature-gates/feature-gate-min_const_fn.rs diff --git a/src/test/ui/feature-gates/feature-gate-min_const_fn.stderr b/tests/ui/feature-gates/feature-gate-min_const_fn.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-min_const_fn.stderr rename to tests/ui/feature-gates/feature-gate-min_const_fn.stderr diff --git a/src/test/ui/feature-gates/feature-gate-more-qualified-paths.rs b/tests/ui/feature-gates/feature-gate-more-qualified-paths.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-more-qualified-paths.rs rename to tests/ui/feature-gates/feature-gate-more-qualified-paths.rs diff --git a/src/test/ui/feature-gates/feature-gate-more-qualified-paths.stderr b/tests/ui/feature-gates/feature-gate-more-qualified-paths.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-more-qualified-paths.stderr rename to tests/ui/feature-gates/feature-gate-more-qualified-paths.stderr diff --git a/src/test/ui/feature-gates/feature-gate-naked_functions.rs b/tests/ui/feature-gates/feature-gate-naked_functions.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-naked_functions.rs rename to tests/ui/feature-gates/feature-gate-naked_functions.rs diff --git a/src/test/ui/feature-gates/feature-gate-naked_functions.stderr b/tests/ui/feature-gates/feature-gate-naked_functions.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-naked_functions.stderr rename to tests/ui/feature-gates/feature-gate-naked_functions.stderr diff --git a/src/test/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.rs b/tests/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.rs rename to tests/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.rs diff --git a/src/test/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.stderr b/tests/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.stderr rename to tests/ui/feature-gates/feature-gate-native_link_modifiers_as_needed.stderr diff --git a/src/test/ui/feature-gates/feature-gate-needs-allocator.rs b/tests/ui/feature-gates/feature-gate-needs-allocator.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-needs-allocator.rs rename to tests/ui/feature-gates/feature-gate-needs-allocator.rs diff --git a/src/test/ui/feature-gates/feature-gate-needs-allocator.stderr b/tests/ui/feature-gates/feature-gate-needs-allocator.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-needs-allocator.stderr rename to tests/ui/feature-gates/feature-gate-needs-allocator.stderr diff --git a/src/test/ui/feature-gates/feature-gate-negate-unsigned.rs b/tests/ui/feature-gates/feature-gate-negate-unsigned.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-negate-unsigned.rs rename to tests/ui/feature-gates/feature-gate-negate-unsigned.rs diff --git a/src/test/ui/feature-gates/feature-gate-negate-unsigned.stderr b/tests/ui/feature-gates/feature-gate-negate-unsigned.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-negate-unsigned.stderr rename to tests/ui/feature-gates/feature-gate-negate-unsigned.stderr diff --git a/src/test/ui/feature-gates/feature-gate-never_type.rs b/tests/ui/feature-gates/feature-gate-never_type.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-never_type.rs rename to tests/ui/feature-gates/feature-gate-never_type.rs diff --git a/src/test/ui/feature-gates/feature-gate-never_type.stderr b/tests/ui/feature-gates/feature-gate-never_type.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-never_type.stderr rename to tests/ui/feature-gates/feature-gate-never_type.stderr diff --git a/src/test/ui/feature-gates/feature-gate-no_core.rs b/tests/ui/feature-gates/feature-gate-no_core.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-no_core.rs rename to tests/ui/feature-gates/feature-gate-no_core.rs diff --git a/src/test/ui/feature-gates/feature-gate-no_core.stderr b/tests/ui/feature-gates/feature-gate-no_core.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-no_core.stderr rename to tests/ui/feature-gates/feature-gate-no_core.stderr diff --git a/src/test/ui/feature-gates/feature-gate-no_coverage.rs b/tests/ui/feature-gates/feature-gate-no_coverage.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-no_coverage.rs rename to tests/ui/feature-gates/feature-gate-no_coverage.rs diff --git a/src/test/ui/feature-gates/feature-gate-no_coverage.stderr b/tests/ui/feature-gates/feature-gate-no_coverage.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-no_coverage.stderr rename to tests/ui/feature-gates/feature-gate-no_coverage.stderr diff --git a/src/test/ui/feature-gates/feature-gate-no_sanitize.rs b/tests/ui/feature-gates/feature-gate-no_sanitize.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-no_sanitize.rs rename to tests/ui/feature-gates/feature-gate-no_sanitize.rs diff --git a/src/test/ui/feature-gates/feature-gate-no_sanitize.stderr b/tests/ui/feature-gates/feature-gate-no_sanitize.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-no_sanitize.stderr rename to tests/ui/feature-gates/feature-gate-no_sanitize.stderr diff --git a/src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.rs b/tests/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.rs rename to tests/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.rs diff --git a/src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr b/tests/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr rename to tests/ui/feature-gates/feature-gate-non_exhaustive_omitted_patterns_lint.stderr diff --git a/src/test/ui/feature-gates/feature-gate-object_safe_for_dispatch.rs b/tests/ui/feature-gates/feature-gate-object_safe_for_dispatch.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-object_safe_for_dispatch.rs rename to tests/ui/feature-gates/feature-gate-object_safe_for_dispatch.rs diff --git a/src/test/ui/feature-gates/feature-gate-object_safe_for_dispatch.stderr b/tests/ui/feature-gates/feature-gate-object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-object_safe_for_dispatch.stderr rename to tests/ui/feature-gates/feature-gate-object_safe_for_dispatch.stderr diff --git a/src/test/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.rs b/tests/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.rs rename to tests/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.rs diff --git a/src/test/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.stderr b/tests/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.stderr rename to tests/ui/feature-gates/feature-gate-omit-gdb-pretty-printer-section.stderr diff --git a/src/test/ui/feature-gates/feature-gate-optimize_attribute.rs b/tests/ui/feature-gates/feature-gate-optimize_attribute.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-optimize_attribute.rs rename to tests/ui/feature-gates/feature-gate-optimize_attribute.rs diff --git a/src/test/ui/feature-gates/feature-gate-optimize_attribute.stderr b/tests/ui/feature-gates/feature-gate-optimize_attribute.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-optimize_attribute.stderr rename to tests/ui/feature-gates/feature-gate-optimize_attribute.stderr diff --git a/src/test/ui/feature-gates/feature-gate-overlapping_marker_traits.rs b/tests/ui/feature-gates/feature-gate-overlapping_marker_traits.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-overlapping_marker_traits.rs rename to tests/ui/feature-gates/feature-gate-overlapping_marker_traits.rs diff --git a/src/test/ui/feature-gates/feature-gate-overlapping_marker_traits.stderr b/tests/ui/feature-gates/feature-gate-overlapping_marker_traits.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-overlapping_marker_traits.stderr rename to tests/ui/feature-gates/feature-gate-overlapping_marker_traits.stderr diff --git a/src/test/ui/feature-gates/feature-gate-precise_pointer_size_matching.rs b/tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-precise_pointer_size_matching.rs rename to tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.rs diff --git a/src/test/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr b/tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr rename to tests/ui/feature-gates/feature-gate-precise_pointer_size_matching.stderr diff --git a/src/test/ui/feature-gates/feature-gate-prelude_import.rs b/tests/ui/feature-gates/feature-gate-prelude_import.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-prelude_import.rs rename to tests/ui/feature-gates/feature-gate-prelude_import.rs diff --git a/src/test/ui/feature-gates/feature-gate-prelude_import.stderr b/tests/ui/feature-gates/feature-gate-prelude_import.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-prelude_import.stderr rename to tests/ui/feature-gates/feature-gate-prelude_import.stderr diff --git a/src/test/ui/feature-gates/feature-gate-profiler-runtime.rs b/tests/ui/feature-gates/feature-gate-profiler-runtime.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-profiler-runtime.rs rename to tests/ui/feature-gates/feature-gate-profiler-runtime.rs diff --git a/src/test/ui/feature-gates/feature-gate-profiler-runtime.stderr b/tests/ui/feature-gates/feature-gate-profiler-runtime.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-profiler-runtime.stderr rename to tests/ui/feature-gates/feature-gate-profiler-runtime.stderr diff --git a/src/test/ui/feature-gates/feature-gate-public_private_dependencies.rs b/tests/ui/feature-gates/feature-gate-public_private_dependencies.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-public_private_dependencies.rs rename to tests/ui/feature-gates/feature-gate-public_private_dependencies.rs diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs b/tests/ui/feature-gates/feature-gate-raw-dylib-2.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs rename to tests/ui/feature-gates/feature-gate-raw-dylib-2.rs diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib-2.stderr b/tests/ui/feature-gates/feature-gate-raw-dylib-2.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-raw-dylib-2.stderr rename to tests/ui/feature-gates/feature-gate-raw-dylib-2.stderr diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib-import-name-type.rs b/tests/ui/feature-gates/feature-gate-raw-dylib-import-name-type.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-raw-dylib-import-name-type.rs rename to tests/ui/feature-gates/feature-gate-raw-dylib-import-name-type.rs diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib-import-name-type.stderr b/tests/ui/feature-gates/feature-gate-raw-dylib-import-name-type.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-raw-dylib-import-name-type.stderr rename to tests/ui/feature-gates/feature-gate-raw-dylib-import-name-type.stderr diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib.rs b/tests/ui/feature-gates/feature-gate-raw-dylib.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-raw-dylib.rs rename to tests/ui/feature-gates/feature-gate-raw-dylib.rs diff --git a/src/test/ui/feature-gates/feature-gate-raw-dylib.stderr b/tests/ui/feature-gates/feature-gate-raw-dylib.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-raw-dylib.stderr rename to tests/ui/feature-gates/feature-gate-raw-dylib.stderr diff --git a/src/test/ui/feature-gates/feature-gate-register_tool.rs b/tests/ui/feature-gates/feature-gate-register_tool.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-register_tool.rs rename to tests/ui/feature-gates/feature-gate-register_tool.rs diff --git a/src/test/ui/feature-gates/feature-gate-register_tool.stderr b/tests/ui/feature-gates/feature-gate-register_tool.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-register_tool.stderr rename to tests/ui/feature-gates/feature-gate-register_tool.stderr diff --git a/src/test/ui/feature-gates/feature-gate-repr-simd.rs b/tests/ui/feature-gates/feature-gate-repr-simd.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-repr-simd.rs rename to tests/ui/feature-gates/feature-gate-repr-simd.rs diff --git a/src/test/ui/feature-gates/feature-gate-repr-simd.stderr b/tests/ui/feature-gates/feature-gate-repr-simd.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-repr-simd.stderr rename to tests/ui/feature-gates/feature-gate-repr-simd.stderr diff --git a/src/test/ui/feature-gates/feature-gate-repr128.rs b/tests/ui/feature-gates/feature-gate-repr128.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-repr128.rs rename to tests/ui/feature-gates/feature-gate-repr128.rs diff --git a/src/test/ui/feature-gates/feature-gate-repr128.stderr b/tests/ui/feature-gates/feature-gate-repr128.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-repr128.stderr rename to tests/ui/feature-gates/feature-gate-repr128.stderr diff --git a/src/test/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.rs b/tests/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.rs rename to tests/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.rs diff --git a/src/test/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.stderr b/tests/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.stderr rename to tests/ui/feature-gates/feature-gate-return_position_impl_trait_in_trait.stderr diff --git a/src/test/ui/feature-gates/feature-gate-rust_cold_cc.rs b/tests/ui/feature-gates/feature-gate-rust_cold_cc.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rust_cold_cc.rs rename to tests/ui/feature-gates/feature-gate-rust_cold_cc.rs diff --git a/src/test/ui/feature-gates/feature-gate-rust_cold_cc.stderr b/tests/ui/feature-gates/feature-gate-rust_cold_cc.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rust_cold_cc.stderr rename to tests/ui/feature-gates/feature-gate-rust_cold_cc.stderr diff --git a/src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs b/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs rename to tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.rs diff --git a/src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.stderr b/tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.stderr rename to tests/ui/feature-gates/feature-gate-rustc-allow-const-fn-unstable.stderr diff --git a/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs b/tests/ui/feature-gates/feature-gate-rustc-attrs-1.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs rename to tests/ui/feature-gates/feature-gate-rustc-attrs-1.rs diff --git a/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr b/tests/ui/feature-gates/feature-gate-rustc-attrs-1.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr rename to tests/ui/feature-gates/feature-gate-rustc-attrs-1.stderr diff --git a/src/test/ui/feature-gates/feature-gate-rustc-attrs.rs b/tests/ui/feature-gates/feature-gate-rustc-attrs.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc-attrs.rs rename to tests/ui/feature-gates/feature-gate-rustc-attrs.rs diff --git a/src/test/ui/feature-gates/feature-gate-rustc-attrs.stderr b/tests/ui/feature-gates/feature-gate-rustc-attrs.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc-attrs.stderr rename to tests/ui/feature-gates/feature-gate-rustc-attrs.stderr diff --git a/src/test/ui/feature-gates/feature-gate-rustc_const_unstable.rs b/tests/ui/feature-gates/feature-gate-rustc_const_unstable.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc_const_unstable.rs rename to tests/ui/feature-gates/feature-gate-rustc_const_unstable.rs diff --git a/src/test/ui/feature-gates/feature-gate-rustc_const_unstable.stderr b/tests/ui/feature-gates/feature-gate-rustc_const_unstable.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustc_const_unstable.stderr rename to tests/ui/feature-gates/feature-gate-rustc_const_unstable.stderr diff --git a/src/test/ui/feature-gates/feature-gate-rustdoc_internals.rs b/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustdoc_internals.rs rename to tests/ui/feature-gates/feature-gate-rustdoc_internals.rs diff --git a/src/test/ui/feature-gates/feature-gate-rustdoc_internals.stderr b/tests/ui/feature-gates/feature-gate-rustdoc_internals.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-rustdoc_internals.stderr rename to tests/ui/feature-gates/feature-gate-rustdoc_internals.stderr diff --git a/src/test/ui/feature-gates/feature-gate-simd-ffi.rs b/tests/ui/feature-gates/feature-gate-simd-ffi.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-simd-ffi.rs rename to tests/ui/feature-gates/feature-gate-simd-ffi.rs diff --git a/src/test/ui/feature-gates/feature-gate-simd-ffi.stderr b/tests/ui/feature-gates/feature-gate-simd-ffi.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-simd-ffi.stderr rename to tests/ui/feature-gates/feature-gate-simd-ffi.stderr diff --git a/src/test/ui/feature-gates/feature-gate-simd.rs b/tests/ui/feature-gates/feature-gate-simd.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-simd.rs rename to tests/ui/feature-gates/feature-gate-simd.rs diff --git a/src/test/ui/feature-gates/feature-gate-simd.stderr b/tests/ui/feature-gates/feature-gate-simd.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-simd.stderr rename to tests/ui/feature-gates/feature-gate-simd.stderr diff --git a/src/test/ui/feature-gates/feature-gate-staged_api.rs b/tests/ui/feature-gates/feature-gate-staged_api.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-staged_api.rs rename to tests/ui/feature-gates/feature-gate-staged_api.rs diff --git a/src/test/ui/feature-gates/feature-gate-staged_api.stderr b/tests/ui/feature-gates/feature-gate-staged_api.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-staged_api.stderr rename to tests/ui/feature-gates/feature-gate-staged_api.stderr diff --git a/src/test/ui/feature-gates/feature-gate-start.rs b/tests/ui/feature-gates/feature-gate-start.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-start.rs rename to tests/ui/feature-gates/feature-gate-start.rs diff --git a/src/test/ui/feature-gates/feature-gate-start.stderr b/tests/ui/feature-gates/feature-gate-start.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-start.stderr rename to tests/ui/feature-gates/feature-gate-start.stderr diff --git a/src/test/ui/feature-gates/feature-gate-stmt_expr_attributes.rs b/tests/ui/feature-gates/feature-gate-stmt_expr_attributes.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-stmt_expr_attributes.rs rename to tests/ui/feature-gates/feature-gate-stmt_expr_attributes.rs diff --git a/src/test/ui/feature-gates/feature-gate-stmt_expr_attributes.stderr b/tests/ui/feature-gates/feature-gate-stmt_expr_attributes.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-stmt_expr_attributes.stderr rename to tests/ui/feature-gates/feature-gate-stmt_expr_attributes.stderr diff --git a/src/test/ui/feature-gates/feature-gate-strict_provenance.rs b/tests/ui/feature-gates/feature-gate-strict_provenance.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-strict_provenance.rs rename to tests/ui/feature-gates/feature-gate-strict_provenance.rs diff --git a/src/test/ui/feature-gates/feature-gate-strict_provenance.stderr b/tests/ui/feature-gates/feature-gate-strict_provenance.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-strict_provenance.stderr rename to tests/ui/feature-gates/feature-gate-strict_provenance.stderr diff --git a/src/test/ui/feature-gates/feature-gate-test_unstable_lint.rs b/tests/ui/feature-gates/feature-gate-test_unstable_lint.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-test_unstable_lint.rs rename to tests/ui/feature-gates/feature-gate-test_unstable_lint.rs diff --git a/src/test/ui/feature-gates/feature-gate-test_unstable_lint.stderr b/tests/ui/feature-gates/feature-gate-test_unstable_lint.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-test_unstable_lint.stderr rename to tests/ui/feature-gates/feature-gate-test_unstable_lint.stderr diff --git a/src/test/ui/feature-gates/feature-gate-thread_local.rs b/tests/ui/feature-gates/feature-gate-thread_local.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-thread_local.rs rename to tests/ui/feature-gates/feature-gate-thread_local.rs diff --git a/src/test/ui/feature-gates/feature-gate-thread_local.stderr b/tests/ui/feature-gates/feature-gate-thread_local.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-thread_local.stderr rename to tests/ui/feature-gates/feature-gate-thread_local.stderr diff --git a/src/test/ui/feature-gates/feature-gate-trace_macros.rs b/tests/ui/feature-gates/feature-gate-trace_macros.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trace_macros.rs rename to tests/ui/feature-gates/feature-gate-trace_macros.rs diff --git a/src/test/ui/feature-gates/feature-gate-trace_macros.stderr b/tests/ui/feature-gates/feature-gate-trace_macros.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trace_macros.stderr rename to tests/ui/feature-gates/feature-gate-trace_macros.stderr diff --git a/src/test/ui/feature-gates/feature-gate-trait-alias.rs b/tests/ui/feature-gates/feature-gate-trait-alias.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trait-alias.rs rename to tests/ui/feature-gates/feature-gate-trait-alias.rs diff --git a/src/test/ui/feature-gates/feature-gate-trait-alias.stderr b/tests/ui/feature-gates/feature-gate-trait-alias.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trait-alias.stderr rename to tests/ui/feature-gates/feature-gate-trait-alias.stderr diff --git a/src/test/ui/feature-gates/feature-gate-trait_upcasting.rs b/tests/ui/feature-gates/feature-gate-trait_upcasting.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trait_upcasting.rs rename to tests/ui/feature-gates/feature-gate-trait_upcasting.rs diff --git a/src/test/ui/feature-gates/feature-gate-trait_upcasting.stderr b/tests/ui/feature-gates/feature-gate-trait_upcasting.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trait_upcasting.stderr rename to tests/ui/feature-gates/feature-gate-trait_upcasting.stderr diff --git a/src/test/ui/feature-gates/feature-gate-transparent_unions.rs b/tests/ui/feature-gates/feature-gate-transparent_unions.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-transparent_unions.rs rename to tests/ui/feature-gates/feature-gate-transparent_unions.rs diff --git a/src/test/ui/feature-gates/feature-gate-transparent_unions.stderr b/tests/ui/feature-gates/feature-gate-transparent_unions.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-transparent_unions.stderr rename to tests/ui/feature-gates/feature-gate-transparent_unions.stderr diff --git a/src/test/ui/feature-gates/feature-gate-trivial_bounds-lint.rs b/tests/ui/feature-gates/feature-gate-trivial_bounds-lint.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trivial_bounds-lint.rs rename to tests/ui/feature-gates/feature-gate-trivial_bounds-lint.rs diff --git a/src/test/ui/feature-gates/feature-gate-trivial_bounds.rs b/tests/ui/feature-gates/feature-gate-trivial_bounds.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trivial_bounds.rs rename to tests/ui/feature-gates/feature-gate-trivial_bounds.rs diff --git a/src/test/ui/feature-gates/feature-gate-trivial_bounds.stderr b/tests/ui/feature-gates/feature-gate-trivial_bounds.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-trivial_bounds.stderr rename to tests/ui/feature-gates/feature-gate-trivial_bounds.stderr diff --git a/src/test/ui/feature-gates/feature-gate-try_blocks.rs b/tests/ui/feature-gates/feature-gate-try_blocks.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-try_blocks.rs rename to tests/ui/feature-gates/feature-gate-try_blocks.rs diff --git a/src/test/ui/feature-gates/feature-gate-try_blocks.stderr b/tests/ui/feature-gates/feature-gate-try_blocks.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-try_blocks.stderr rename to tests/ui/feature-gates/feature-gate-try_blocks.stderr diff --git a/src/test/ui/feature-gates/feature-gate-type_alias_impl_trait.rs b/tests/ui/feature-gates/feature-gate-type_alias_impl_trait.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-type_alias_impl_trait.rs rename to tests/ui/feature-gates/feature-gate-type_alias_impl_trait.rs diff --git a/src/test/ui/feature-gates/feature-gate-type_ascription.rs b/tests/ui/feature-gates/feature-gate-type_ascription.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-type_ascription.rs rename to tests/ui/feature-gates/feature-gate-type_ascription.rs diff --git a/src/test/ui/feature-gates/feature-gate-type_ascription.stderr b/tests/ui/feature-gates/feature-gate-type_ascription.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-type_ascription.stderr rename to tests/ui/feature-gates/feature-gate-type_ascription.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.rs b/tests/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.rs rename to tests/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.rs diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.stderr b/tests/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.stderr rename to tests/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs b/tests/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs rename to tests/ui/feature-gates/feature-gate-unboxed-closures-method-calls.rs diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.stderr b/tests/ui/feature-gates/feature-gate-unboxed-closures-method-calls.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures-method-calls.stderr rename to tests/ui/feature-gates/feature-gate-unboxed-closures-method-calls.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs b/tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs rename to tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.rs diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.stderr b/tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.stderr rename to tests/ui/feature-gates/feature-gate-unboxed-closures-ufcs-calls.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures.rs b/tests/ui/feature-gates/feature-gate-unboxed-closures.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures.rs rename to tests/ui/feature-gates/feature-gate-unboxed-closures.rs diff --git a/src/test/ui/feature-gates/feature-gate-unboxed-closures.stderr b/tests/ui/feature-gates/feature-gate-unboxed-closures.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unboxed-closures.stderr rename to tests/ui/feature-gates/feature-gate-unboxed-closures.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unix_sigpipe.rs b/tests/ui/feature-gates/feature-gate-unix_sigpipe.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unix_sigpipe.rs rename to tests/ui/feature-gates/feature-gate-unix_sigpipe.rs diff --git a/src/test/ui/feature-gates/feature-gate-unix_sigpipe.stderr b/tests/ui/feature-gates/feature-gate-unix_sigpipe.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unix_sigpipe.stderr rename to tests/ui/feature-gates/feature-gate-unix_sigpipe.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unsafe_pin_internals.rs b/tests/ui/feature-gates/feature-gate-unsafe_pin_internals.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsafe_pin_internals.rs rename to tests/ui/feature-gates/feature-gate-unsafe_pin_internals.rs diff --git a/src/test/ui/feature-gates/feature-gate-unsafe_pin_internals.stderr b/tests/ui/feature-gates/feature-gate-unsafe_pin_internals.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsafe_pin_internals.stderr rename to tests/ui/feature-gates/feature-gate-unsafe_pin_internals.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unsized_fn_params.rs b/tests/ui/feature-gates/feature-gate-unsized_fn_params.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsized_fn_params.rs rename to tests/ui/feature-gates/feature-gate-unsized_fn_params.rs diff --git a/src/test/ui/feature-gates/feature-gate-unsized_fn_params.stderr b/tests/ui/feature-gates/feature-gate-unsized_fn_params.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsized_fn_params.stderr rename to tests/ui/feature-gates/feature-gate-unsized_fn_params.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unsized_locals.rs b/tests/ui/feature-gates/feature-gate-unsized_locals.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsized_locals.rs rename to tests/ui/feature-gates/feature-gate-unsized_locals.rs diff --git a/src/test/ui/feature-gates/feature-gate-unsized_locals.stderr b/tests/ui/feature-gates/feature-gate-unsized_locals.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsized_locals.stderr rename to tests/ui/feature-gates/feature-gate-unsized_locals.stderr diff --git a/src/test/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs b/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs rename to tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs diff --git a/src/test/ui/feature-gates/feature-gate-unsized_tuple_coercion.stderr b/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-unsized_tuple_coercion.stderr rename to tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.stderr diff --git a/src/test/ui/feature-gates/feature-gate-used_with_arg.rs b/tests/ui/feature-gates/feature-gate-used_with_arg.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-used_with_arg.rs rename to tests/ui/feature-gates/feature-gate-used_with_arg.rs diff --git a/src/test/ui/feature-gates/feature-gate-used_with_arg.stderr b/tests/ui/feature-gates/feature-gate-used_with_arg.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-used_with_arg.stderr rename to tests/ui/feature-gates/feature-gate-used_with_arg.stderr diff --git a/src/test/ui/feature-gates/feature-gate-vectorcall.rs b/tests/ui/feature-gates/feature-gate-vectorcall.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-vectorcall.rs rename to tests/ui/feature-gates/feature-gate-vectorcall.rs diff --git a/src/test/ui/feature-gates/feature-gate-vectorcall.stderr b/tests/ui/feature-gates/feature-gate-vectorcall.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-vectorcall.stderr rename to tests/ui/feature-gates/feature-gate-vectorcall.stderr diff --git a/src/test/ui/feature-gates/feature-gate-wasm_abi.rs b/tests/ui/feature-gates/feature-gate-wasm_abi.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-wasm_abi.rs rename to tests/ui/feature-gates/feature-gate-wasm_abi.rs diff --git a/src/test/ui/feature-gates/feature-gate-wasm_abi.stderr b/tests/ui/feature-gates/feature-gate-wasm_abi.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-wasm_abi.stderr rename to tests/ui/feature-gates/feature-gate-wasm_abi.stderr diff --git a/src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs b/tests/ui/feature-gates/feature-gate-with_negative_coherence.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-with_negative_coherence.rs rename to tests/ui/feature-gates/feature-gate-with_negative_coherence.rs diff --git a/src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr b/tests/ui/feature-gates/feature-gate-with_negative_coherence.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-with_negative_coherence.stderr rename to tests/ui/feature-gates/feature-gate-with_negative_coherence.stderr diff --git a/src/test/ui/feature-gates/feature-gate-yeet_expr-in-cfg.rs b/tests/ui/feature-gates/feature-gate-yeet_expr-in-cfg.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-yeet_expr-in-cfg.rs rename to tests/ui/feature-gates/feature-gate-yeet_expr-in-cfg.rs diff --git a/src/test/ui/feature-gates/feature-gate-yeet_expr-in-cfg.stderr b/tests/ui/feature-gates/feature-gate-yeet_expr-in-cfg.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-yeet_expr-in-cfg.stderr rename to tests/ui/feature-gates/feature-gate-yeet_expr-in-cfg.stderr diff --git a/src/test/ui/feature-gates/feature-gate-yeet_expr.rs b/tests/ui/feature-gates/feature-gate-yeet_expr.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gate-yeet_expr.rs rename to tests/ui/feature-gates/feature-gate-yeet_expr.rs diff --git a/src/test/ui/feature-gates/feature-gate-yeet_expr.stderr b/tests/ui/feature-gates/feature-gate-yeet_expr.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gate-yeet_expr.stderr rename to tests/ui/feature-gates/feature-gate-yeet_expr.stderr diff --git a/src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.rs b/tests/ui/feature-gates/feature-gated-feature-in-macro-arg.rs similarity index 100% rename from src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.rs rename to tests/ui/feature-gates/feature-gated-feature-in-macro-arg.rs diff --git a/src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.stderr b/tests/ui/feature-gates/feature-gated-feature-in-macro-arg.stderr similarity index 100% rename from src/test/ui/feature-gates/feature-gated-feature-in-macro-arg.stderr rename to tests/ui/feature-gates/feature-gated-feature-in-macro-arg.stderr diff --git a/src/test/ui/feature-gates/gated-bad-feature.rs b/tests/ui/feature-gates/gated-bad-feature.rs similarity index 100% rename from src/test/ui/feature-gates/gated-bad-feature.rs rename to tests/ui/feature-gates/gated-bad-feature.rs diff --git a/src/test/ui/feature-gates/gated-bad-feature.stderr b/tests/ui/feature-gates/gated-bad-feature.stderr similarity index 100% rename from src/test/ui/feature-gates/gated-bad-feature.stderr rename to tests/ui/feature-gates/gated-bad-feature.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-bench.rs b/tests/ui/feature-gates/issue-43106-gating-of-bench.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-bench.rs rename to tests/ui/feature-gates/issue-43106-gating-of-bench.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-bench.stderr b/tests/ui/feature-gates/issue-43106-gating-of-bench.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-bench.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-bench.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs b/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs rename to tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr b/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs-error.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs b/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs rename to tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr b/tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-builtin-attrs.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs b/tests/ui/feature-gates/issue-43106-gating-of-deprecated.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-deprecated.rs rename to tests/ui/feature-gates/issue-43106-gating-of-deprecated.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs b/tests/ui/feature-gates/issue-43106-gating-of-derive-2.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs rename to tests/ui/feature-gates/issue-43106-gating-of-derive-2.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.stderr b/tests/ui/feature-gates/issue-43106-gating-of-derive-2.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-derive-2.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-derive-2.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-derive.rs b/tests/ui/feature-gates/issue-43106-gating-of-derive.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-derive.rs rename to tests/ui/feature-gates/issue-43106-gating-of-derive.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-derive.stderr b/tests/ui/feature-gates/issue-43106-gating-of-derive.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-derive.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-derive.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.rs b/tests/ui/feature-gates/issue-43106-gating-of-macro_escape.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.rs rename to tests/ui/feature-gates/issue-43106-gating-of-macro_escape.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.stderr b/tests/ui/feature-gates/issue-43106-gating-of-macro_escape.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-macro_escape.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-macro_escape.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-macro_use.rs b/tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-macro_use.rs rename to tests/ui/feature-gates/issue-43106-gating-of-macro_use.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-macro_use.stderr b/tests/ui/feature-gates/issue-43106-gating-of-macro_use.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-macro_use.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-macro_use.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.rs b/tests/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.rs rename to tests/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr b/tests/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-stable.rs b/tests/ui/feature-gates/issue-43106-gating-of-stable.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-stable.rs rename to tests/ui/feature-gates/issue-43106-gating-of-stable.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-stable.stderr b/tests/ui/feature-gates/issue-43106-gating-of-stable.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-stable.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-stable.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-test.rs b/tests/ui/feature-gates/issue-43106-gating-of-test.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-test.rs rename to tests/ui/feature-gates/issue-43106-gating-of-test.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-test.stderr b/tests/ui/feature-gates/issue-43106-gating-of-test.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-test.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-test.stderr diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-unstable.rs b/tests/ui/feature-gates/issue-43106-gating-of-unstable.rs similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-unstable.rs rename to tests/ui/feature-gates/issue-43106-gating-of-unstable.rs diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-unstable.stderr b/tests/ui/feature-gates/issue-43106-gating-of-unstable.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-43106-gating-of-unstable.stderr rename to tests/ui/feature-gates/issue-43106-gating-of-unstable.stderr diff --git a/src/test/ui/feature-gates/issue-49983-see-issue-0.rs b/tests/ui/feature-gates/issue-49983-see-issue-0.rs similarity index 100% rename from src/test/ui/feature-gates/issue-49983-see-issue-0.rs rename to tests/ui/feature-gates/issue-49983-see-issue-0.rs diff --git a/src/test/ui/feature-gates/issue-49983-see-issue-0.stderr b/tests/ui/feature-gates/issue-49983-see-issue-0.stderr similarity index 100% rename from src/test/ui/feature-gates/issue-49983-see-issue-0.stderr rename to tests/ui/feature-gates/issue-49983-see-issue-0.stderr diff --git a/src/test/ui/feature-gates/rustc-private.rs b/tests/ui/feature-gates/rustc-private.rs similarity index 100% rename from src/test/ui/feature-gates/rustc-private.rs rename to tests/ui/feature-gates/rustc-private.rs diff --git a/src/test/ui/feature-gates/rustc-private.stderr b/tests/ui/feature-gates/rustc-private.stderr similarity index 100% rename from src/test/ui/feature-gates/rustc-private.stderr rename to tests/ui/feature-gates/rustc-private.stderr diff --git a/src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs b/tests/ui/feature-gates/soft-syntax-gates-with-errors.rs similarity index 100% rename from src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs rename to tests/ui/feature-gates/soft-syntax-gates-with-errors.rs diff --git a/src/test/ui/feature-gates/soft-syntax-gates-with-errors.stderr b/tests/ui/feature-gates/soft-syntax-gates-with-errors.stderr similarity index 100% rename from src/test/ui/feature-gates/soft-syntax-gates-with-errors.stderr rename to tests/ui/feature-gates/soft-syntax-gates-with-errors.stderr diff --git a/src/test/ui/feature-gates/soft-syntax-gates-without-errors.rs b/tests/ui/feature-gates/soft-syntax-gates-without-errors.rs similarity index 100% rename from src/test/ui/feature-gates/soft-syntax-gates-without-errors.rs rename to tests/ui/feature-gates/soft-syntax-gates-without-errors.rs diff --git a/src/test/ui/feature-gates/soft-syntax-gates-without-errors.stderr b/tests/ui/feature-gates/soft-syntax-gates-without-errors.stderr similarity index 100% rename from src/test/ui/feature-gates/soft-syntax-gates-without-errors.stderr rename to tests/ui/feature-gates/soft-syntax-gates-without-errors.stderr diff --git a/src/test/ui/feature-gates/stability-attribute-consistency.rs b/tests/ui/feature-gates/stability-attribute-consistency.rs similarity index 100% rename from src/test/ui/feature-gates/stability-attribute-consistency.rs rename to tests/ui/feature-gates/stability-attribute-consistency.rs diff --git a/src/test/ui/feature-gates/stability-attribute-consistency.stderr b/tests/ui/feature-gates/stability-attribute-consistency.stderr similarity index 100% rename from src/test/ui/feature-gates/stability-attribute-consistency.stderr rename to tests/ui/feature-gates/stability-attribute-consistency.stderr diff --git a/src/test/ui/feature-gates/stable-features.rs b/tests/ui/feature-gates/stable-features.rs similarity index 100% rename from src/test/ui/feature-gates/stable-features.rs rename to tests/ui/feature-gates/stable-features.rs diff --git a/src/test/ui/feature-gates/stable-features.stderr b/tests/ui/feature-gates/stable-features.stderr similarity index 100% rename from src/test/ui/feature-gates/stable-features.stderr rename to tests/ui/feature-gates/stable-features.stderr diff --git a/src/test/ui/feature-gates/trace_macros-gate.rs b/tests/ui/feature-gates/trace_macros-gate.rs similarity index 100% rename from src/test/ui/feature-gates/trace_macros-gate.rs rename to tests/ui/feature-gates/trace_macros-gate.rs diff --git a/src/test/ui/feature-gates/trace_macros-gate.stderr b/tests/ui/feature-gates/trace_macros-gate.stderr similarity index 100% rename from src/test/ui/feature-gates/trace_macros-gate.stderr rename to tests/ui/feature-gates/trace_macros-gate.stderr diff --git a/src/test/ui/feature-gates/unknown-feature.rs b/tests/ui/feature-gates/unknown-feature.rs similarity index 100% rename from src/test/ui/feature-gates/unknown-feature.rs rename to tests/ui/feature-gates/unknown-feature.rs diff --git a/src/test/ui/feature-gates/unknown-feature.stderr b/tests/ui/feature-gates/unknown-feature.stderr similarity index 100% rename from src/test/ui/feature-gates/unknown-feature.stderr rename to tests/ui/feature-gates/unknown-feature.stderr diff --git a/src/test/ui/feature-gates/unstable-attribute-allow-issue-0.rs b/tests/ui/feature-gates/unstable-attribute-allow-issue-0.rs similarity index 100% rename from src/test/ui/feature-gates/unstable-attribute-allow-issue-0.rs rename to tests/ui/feature-gates/unstable-attribute-allow-issue-0.rs diff --git a/src/test/ui/feature-gates/unstable-attribute-allow-issue-0.stderr b/tests/ui/feature-gates/unstable-attribute-allow-issue-0.stderr similarity index 100% rename from src/test/ui/feature-gates/unstable-attribute-allow-issue-0.stderr rename to tests/ui/feature-gates/unstable-attribute-allow-issue-0.stderr diff --git a/src/test/ui/ffi_const.rs b/tests/ui/ffi_const.rs similarity index 100% rename from src/test/ui/ffi_const.rs rename to tests/ui/ffi_const.rs diff --git a/src/test/ui/ffi_const.stderr b/tests/ui/ffi_const.stderr similarity index 100% rename from src/test/ui/ffi_const.stderr rename to tests/ui/ffi_const.stderr diff --git a/src/test/ui/ffi_const2.rs b/tests/ui/ffi_const2.rs similarity index 100% rename from src/test/ui/ffi_const2.rs rename to tests/ui/ffi_const2.rs diff --git a/src/test/ui/ffi_const2.stderr b/tests/ui/ffi_const2.stderr similarity index 100% rename from src/test/ui/ffi_const2.stderr rename to tests/ui/ffi_const2.stderr diff --git a/src/test/ui/ffi_pure.rs b/tests/ui/ffi_pure.rs similarity index 100% rename from src/test/ui/ffi_pure.rs rename to tests/ui/ffi_pure.rs diff --git a/src/test/ui/ffi_pure.stderr b/tests/ui/ffi_pure.stderr similarity index 100% rename from src/test/ui/ffi_pure.stderr rename to tests/ui/ffi_pure.stderr diff --git a/src/test/ui/ffi_returns_twice.rs b/tests/ui/ffi_returns_twice.rs similarity index 100% rename from src/test/ui/ffi_returns_twice.rs rename to tests/ui/ffi_returns_twice.rs diff --git a/src/test/ui/ffi_returns_twice.stderr b/tests/ui/ffi_returns_twice.stderr similarity index 100% rename from src/test/ui/ffi_returns_twice.stderr rename to tests/ui/ffi_returns_twice.stderr diff --git a/src/test/ui/filter-block-view-items.rs b/tests/ui/filter-block-view-items.rs similarity index 100% rename from src/test/ui/filter-block-view-items.rs rename to tests/ui/filter-block-view-items.rs diff --git a/src/test/ui/fmt/auxiliary/format-string-proc-macro.rs b/tests/ui/fmt/auxiliary/format-string-proc-macro.rs similarity index 100% rename from src/test/ui/fmt/auxiliary/format-string-proc-macro.rs rename to tests/ui/fmt/auxiliary/format-string-proc-macro.rs diff --git a/src/test/ui/fmt/format-args-capture-issue-102057.rs b/tests/ui/fmt/format-args-capture-issue-102057.rs similarity index 100% rename from src/test/ui/fmt/format-args-capture-issue-102057.rs rename to tests/ui/fmt/format-args-capture-issue-102057.rs diff --git a/src/test/ui/fmt/format-args-capture-issue-102057.stderr b/tests/ui/fmt/format-args-capture-issue-102057.stderr similarity index 100% rename from src/test/ui/fmt/format-args-capture-issue-102057.stderr rename to tests/ui/fmt/format-args-capture-issue-102057.stderr diff --git a/src/test/ui/fmt/format-args-capture-issue-93378.rs b/tests/ui/fmt/format-args-capture-issue-93378.rs similarity index 100% rename from src/test/ui/fmt/format-args-capture-issue-93378.rs rename to tests/ui/fmt/format-args-capture-issue-93378.rs diff --git a/src/test/ui/fmt/format-args-capture-issue-93378.stderr b/tests/ui/fmt/format-args-capture-issue-93378.stderr similarity index 100% rename from src/test/ui/fmt/format-args-capture-issue-93378.stderr rename to tests/ui/fmt/format-args-capture-issue-93378.stderr diff --git a/src/test/ui/fmt/format-args-capture-issue-94010.rs b/tests/ui/fmt/format-args-capture-issue-94010.rs similarity index 100% rename from src/test/ui/fmt/format-args-capture-issue-94010.rs rename to tests/ui/fmt/format-args-capture-issue-94010.rs diff --git a/src/test/ui/fmt/format-args-capture-issue-94010.stderr b/tests/ui/fmt/format-args-capture-issue-94010.stderr similarity index 100% rename from src/test/ui/fmt/format-args-capture-issue-94010.stderr rename to tests/ui/fmt/format-args-capture-issue-94010.stderr diff --git a/src/test/ui/fmt/format-args-capture-macro-hygiene.rs b/tests/ui/fmt/format-args-capture-macro-hygiene.rs similarity index 100% rename from src/test/ui/fmt/format-args-capture-macro-hygiene.rs rename to tests/ui/fmt/format-args-capture-macro-hygiene.rs diff --git a/src/test/ui/fmt/format-args-capture-macro-hygiene.stderr b/tests/ui/fmt/format-args-capture-macro-hygiene.stderr similarity index 100% rename from src/test/ui/fmt/format-args-capture-macro-hygiene.stderr rename to tests/ui/fmt/format-args-capture-macro-hygiene.stderr diff --git a/src/test/ui/fmt/format-args-capture-missing-variables.rs b/tests/ui/fmt/format-args-capture-missing-variables.rs similarity index 100% rename from src/test/ui/fmt/format-args-capture-missing-variables.rs rename to tests/ui/fmt/format-args-capture-missing-variables.rs diff --git a/src/test/ui/fmt/format-args-capture-missing-variables.stderr b/tests/ui/fmt/format-args-capture-missing-variables.stderr similarity index 100% rename from src/test/ui/fmt/format-args-capture-missing-variables.stderr rename to tests/ui/fmt/format-args-capture-missing-variables.stderr diff --git a/src/test/ui/fmt/format-args-capture.rs b/tests/ui/fmt/format-args-capture.rs similarity index 100% rename from src/test/ui/fmt/format-args-capture.rs rename to tests/ui/fmt/format-args-capture.rs diff --git a/src/test/ui/fmt/format-expanded-string.rs b/tests/ui/fmt/format-expanded-string.rs similarity index 100% rename from src/test/ui/fmt/format-expanded-string.rs rename to tests/ui/fmt/format-expanded-string.rs diff --git a/src/test/ui/fmt/format-expanded-string.stderr b/tests/ui/fmt/format-expanded-string.stderr similarity index 100% rename from src/test/ui/fmt/format-expanded-string.stderr rename to tests/ui/fmt/format-expanded-string.stderr diff --git a/src/test/ui/fmt/format-raw-string-error.rs b/tests/ui/fmt/format-raw-string-error.rs similarity index 100% rename from src/test/ui/fmt/format-raw-string-error.rs rename to tests/ui/fmt/format-raw-string-error.rs diff --git a/src/test/ui/fmt/format-raw-string-error.stderr b/tests/ui/fmt/format-raw-string-error.stderr similarity index 100% rename from src/test/ui/fmt/format-raw-string-error.stderr rename to tests/ui/fmt/format-raw-string-error.stderr diff --git a/src/test/ui/fmt/format-string-error-2.rs b/tests/ui/fmt/format-string-error-2.rs similarity index 100% rename from src/test/ui/fmt/format-string-error-2.rs rename to tests/ui/fmt/format-string-error-2.rs diff --git a/src/test/ui/fmt/format-string-error-2.stderr b/tests/ui/fmt/format-string-error-2.stderr similarity index 100% rename from src/test/ui/fmt/format-string-error-2.stderr rename to tests/ui/fmt/format-string-error-2.stderr diff --git a/src/test/ui/fmt/format-string-error.rs b/tests/ui/fmt/format-string-error.rs similarity index 100% rename from src/test/ui/fmt/format-string-error.rs rename to tests/ui/fmt/format-string-error.rs diff --git a/src/test/ui/fmt/format-string-error.stderr b/tests/ui/fmt/format-string-error.stderr similarity index 100% rename from src/test/ui/fmt/format-string-error.stderr rename to tests/ui/fmt/format-string-error.stderr diff --git a/src/test/ui/fmt/format-with-yield-point.rs b/tests/ui/fmt/format-with-yield-point.rs similarity index 100% rename from src/test/ui/fmt/format-with-yield-point.rs rename to tests/ui/fmt/format-with-yield-point.rs diff --git a/src/test/ui/fmt/ifmt-bad-arg.rs b/tests/ui/fmt/ifmt-bad-arg.rs similarity index 100% rename from src/test/ui/fmt/ifmt-bad-arg.rs rename to tests/ui/fmt/ifmt-bad-arg.rs diff --git a/src/test/ui/fmt/ifmt-bad-arg.stderr b/tests/ui/fmt/ifmt-bad-arg.stderr similarity index 100% rename from src/test/ui/fmt/ifmt-bad-arg.stderr rename to tests/ui/fmt/ifmt-bad-arg.stderr diff --git a/src/test/ui/fmt/ifmt-bad-format-args.rs b/tests/ui/fmt/ifmt-bad-format-args.rs similarity index 100% rename from src/test/ui/fmt/ifmt-bad-format-args.rs rename to tests/ui/fmt/ifmt-bad-format-args.rs diff --git a/src/test/ui/fmt/ifmt-bad-format-args.stderr b/tests/ui/fmt/ifmt-bad-format-args.stderr similarity index 100% rename from src/test/ui/fmt/ifmt-bad-format-args.stderr rename to tests/ui/fmt/ifmt-bad-format-args.stderr diff --git a/src/test/ui/fmt/ifmt-unimpl.rs b/tests/ui/fmt/ifmt-unimpl.rs similarity index 100% rename from src/test/ui/fmt/ifmt-unimpl.rs rename to tests/ui/fmt/ifmt-unimpl.rs diff --git a/src/test/ui/fmt/ifmt-unimpl.stderr b/tests/ui/fmt/ifmt-unimpl.stderr similarity index 100% rename from src/test/ui/fmt/ifmt-unimpl.stderr rename to tests/ui/fmt/ifmt-unimpl.stderr diff --git a/src/test/ui/fmt/ifmt-unknown-trait.rs b/tests/ui/fmt/ifmt-unknown-trait.rs similarity index 100% rename from src/test/ui/fmt/ifmt-unknown-trait.rs rename to tests/ui/fmt/ifmt-unknown-trait.rs diff --git a/src/test/ui/fmt/ifmt-unknown-trait.stderr b/tests/ui/fmt/ifmt-unknown-trait.stderr similarity index 100% rename from src/test/ui/fmt/ifmt-unknown-trait.stderr rename to tests/ui/fmt/ifmt-unknown-trait.stderr diff --git a/src/test/ui/fmt/incorrect-separator.rs b/tests/ui/fmt/incorrect-separator.rs similarity index 100% rename from src/test/ui/fmt/incorrect-separator.rs rename to tests/ui/fmt/incorrect-separator.rs diff --git a/src/test/ui/fmt/incorrect-separator.stderr b/tests/ui/fmt/incorrect-separator.stderr similarity index 100% rename from src/test/ui/fmt/incorrect-separator.stderr rename to tests/ui/fmt/incorrect-separator.stderr diff --git a/src/test/ui/fmt/issue-103826.rs b/tests/ui/fmt/issue-103826.rs similarity index 100% rename from src/test/ui/fmt/issue-103826.rs rename to tests/ui/fmt/issue-103826.rs diff --git a/src/test/ui/fmt/issue-103826.stderr b/tests/ui/fmt/issue-103826.stderr similarity index 100% rename from src/test/ui/fmt/issue-103826.stderr rename to tests/ui/fmt/issue-103826.stderr diff --git a/src/test/ui/fmt/issue-104142.rs b/tests/ui/fmt/issue-104142.rs similarity index 100% rename from src/test/ui/fmt/issue-104142.rs rename to tests/ui/fmt/issue-104142.rs diff --git a/src/test/ui/fmt/issue-104142.stderr b/tests/ui/fmt/issue-104142.stderr similarity index 100% rename from src/test/ui/fmt/issue-104142.stderr rename to tests/ui/fmt/issue-104142.stderr diff --git a/src/test/ui/fmt/issue-86085.rs b/tests/ui/fmt/issue-86085.rs similarity index 100% rename from src/test/ui/fmt/issue-86085.rs rename to tests/ui/fmt/issue-86085.rs diff --git a/src/test/ui/fmt/issue-86085.stderr b/tests/ui/fmt/issue-86085.stderr similarity index 100% rename from src/test/ui/fmt/issue-86085.stderr rename to tests/ui/fmt/issue-86085.stderr diff --git a/src/test/ui/fmt/issue-89173.rs b/tests/ui/fmt/issue-89173.rs similarity index 100% rename from src/test/ui/fmt/issue-89173.rs rename to tests/ui/fmt/issue-89173.rs diff --git a/src/test/ui/fmt/issue-89173.stderr b/tests/ui/fmt/issue-89173.stderr similarity index 100% rename from src/test/ui/fmt/issue-89173.stderr rename to tests/ui/fmt/issue-89173.stderr diff --git a/src/test/ui/fmt/issue-91556.rs b/tests/ui/fmt/issue-91556.rs similarity index 100% rename from src/test/ui/fmt/issue-91556.rs rename to tests/ui/fmt/issue-91556.rs diff --git a/src/test/ui/fmt/issue-91556.stderr b/tests/ui/fmt/issue-91556.stderr similarity index 100% rename from src/test/ui/fmt/issue-91556.stderr rename to tests/ui/fmt/issue-91556.stderr diff --git a/src/test/ui/fmt/respanned-literal-issue-106191.rs b/tests/ui/fmt/respanned-literal-issue-106191.rs similarity index 100% rename from src/test/ui/fmt/respanned-literal-issue-106191.rs rename to tests/ui/fmt/respanned-literal-issue-106191.rs diff --git a/src/test/ui/fmt/respanned-literal-issue-106191.stderr b/tests/ui/fmt/respanned-literal-issue-106191.stderr similarity index 100% rename from src/test/ui/fmt/respanned-literal-issue-106191.stderr rename to tests/ui/fmt/respanned-literal-issue-106191.stderr diff --git a/src/test/ui/fmt/send-sync.rs b/tests/ui/fmt/send-sync.rs similarity index 100% rename from src/test/ui/fmt/send-sync.rs rename to tests/ui/fmt/send-sync.rs diff --git a/src/test/ui/fmt/send-sync.stderr b/tests/ui/fmt/send-sync.stderr similarity index 100% rename from src/test/ui/fmt/send-sync.stderr rename to tests/ui/fmt/send-sync.stderr diff --git a/src/test/ui/fmt/struct-field-as-captured-argument.fixed b/tests/ui/fmt/struct-field-as-captured-argument.fixed similarity index 100% rename from src/test/ui/fmt/struct-field-as-captured-argument.fixed rename to tests/ui/fmt/struct-field-as-captured-argument.fixed diff --git a/src/test/ui/fmt/struct-field-as-captured-argument.rs b/tests/ui/fmt/struct-field-as-captured-argument.rs similarity index 100% rename from src/test/ui/fmt/struct-field-as-captured-argument.rs rename to tests/ui/fmt/struct-field-as-captured-argument.rs diff --git a/src/test/ui/fmt/struct-field-as-captured-argument.stderr b/tests/ui/fmt/struct-field-as-captured-argument.stderr similarity index 100% rename from src/test/ui/fmt/struct-field-as-captured-argument.stderr rename to tests/ui/fmt/struct-field-as-captured-argument.stderr diff --git a/src/test/ui/fmt/unicode-escape-spans.rs b/tests/ui/fmt/unicode-escape-spans.rs similarity index 100% rename from src/test/ui/fmt/unicode-escape-spans.rs rename to tests/ui/fmt/unicode-escape-spans.rs diff --git a/src/test/ui/fmt/unicode-escape-spans.stderr b/tests/ui/fmt/unicode-escape-spans.stderr similarity index 100% rename from src/test/ui/fmt/unicode-escape-spans.stderr rename to tests/ui/fmt/unicode-escape-spans.stderr diff --git a/src/test/ui/fn-in-pat.rs b/tests/ui/fn-in-pat.rs similarity index 100% rename from src/test/ui/fn-in-pat.rs rename to tests/ui/fn-in-pat.rs diff --git a/src/test/ui/fn-in-pat.stderr b/tests/ui/fn-in-pat.stderr similarity index 100% rename from src/test/ui/fn-in-pat.stderr rename to tests/ui/fn-in-pat.stderr diff --git a/src/test/ui/fn/bad-main.rs b/tests/ui/fn/bad-main.rs similarity index 100% rename from src/test/ui/fn/bad-main.rs rename to tests/ui/fn/bad-main.rs diff --git a/src/test/ui/fn/bad-main.stderr b/tests/ui/fn/bad-main.stderr similarity index 100% rename from src/test/ui/fn/bad-main.stderr rename to tests/ui/fn/bad-main.stderr diff --git a/src/test/ui/fn/dyn-fn-alignment.rs b/tests/ui/fn/dyn-fn-alignment.rs similarity index 100% rename from src/test/ui/fn/dyn-fn-alignment.rs rename to tests/ui/fn/dyn-fn-alignment.rs diff --git a/src/test/ui/fn/expr-fn-panic.rs b/tests/ui/fn/expr-fn-panic.rs similarity index 100% rename from src/test/ui/fn/expr-fn-panic.rs rename to tests/ui/fn/expr-fn-panic.rs diff --git a/src/test/ui/fn/expr-fn.rs b/tests/ui/fn/expr-fn.rs similarity index 100% rename from src/test/ui/fn/expr-fn.rs rename to tests/ui/fn/expr-fn.rs diff --git a/src/test/ui/fn/fn-bad-block-type.rs b/tests/ui/fn/fn-bad-block-type.rs similarity index 100% rename from src/test/ui/fn/fn-bad-block-type.rs rename to tests/ui/fn/fn-bad-block-type.rs diff --git a/src/test/ui/fn/fn-bad-block-type.stderr b/tests/ui/fn/fn-bad-block-type.stderr similarity index 100% rename from src/test/ui/fn/fn-bad-block-type.stderr rename to tests/ui/fn/fn-bad-block-type.stderr diff --git a/src/test/ui/fn/fn-closure-mutable-capture.rs b/tests/ui/fn/fn-closure-mutable-capture.rs similarity index 100% rename from src/test/ui/fn/fn-closure-mutable-capture.rs rename to tests/ui/fn/fn-closure-mutable-capture.rs diff --git a/src/test/ui/fn/fn-closure-mutable-capture.stderr b/tests/ui/fn/fn-closure-mutable-capture.stderr similarity index 100% rename from src/test/ui/fn/fn-closure-mutable-capture.stderr rename to tests/ui/fn/fn-closure-mutable-capture.stderr diff --git a/src/test/ui/fn/fn-compare-mismatch.rs b/tests/ui/fn/fn-compare-mismatch.rs similarity index 100% rename from src/test/ui/fn/fn-compare-mismatch.rs rename to tests/ui/fn/fn-compare-mismatch.rs diff --git a/src/test/ui/fn/fn-compare-mismatch.stderr b/tests/ui/fn/fn-compare-mismatch.stderr similarity index 100% rename from src/test/ui/fn/fn-compare-mismatch.stderr rename to tests/ui/fn/fn-compare-mismatch.stderr diff --git a/src/test/ui/fn/fn-item-type.rs b/tests/ui/fn/fn-item-type.rs similarity index 100% rename from src/test/ui/fn/fn-item-type.rs rename to tests/ui/fn/fn-item-type.rs diff --git a/src/test/ui/fn/fn-item-type.stderr b/tests/ui/fn/fn-item-type.stderr similarity index 100% rename from src/test/ui/fn/fn-item-type.stderr rename to tests/ui/fn/fn-item-type.stderr diff --git a/src/test/ui/fn/fn-recover-return-sign.fixed b/tests/ui/fn/fn-recover-return-sign.fixed similarity index 100% rename from src/test/ui/fn/fn-recover-return-sign.fixed rename to tests/ui/fn/fn-recover-return-sign.fixed diff --git a/src/test/ui/fn/fn-recover-return-sign.rs b/tests/ui/fn/fn-recover-return-sign.rs similarity index 100% rename from src/test/ui/fn/fn-recover-return-sign.rs rename to tests/ui/fn/fn-recover-return-sign.rs diff --git a/src/test/ui/fn/fn-recover-return-sign.stderr b/tests/ui/fn/fn-recover-return-sign.stderr similarity index 100% rename from src/test/ui/fn/fn-recover-return-sign.stderr rename to tests/ui/fn/fn-recover-return-sign.stderr diff --git a/src/test/ui/fn/fn-recover-return-sign2.rs b/tests/ui/fn/fn-recover-return-sign2.rs similarity index 100% rename from src/test/ui/fn/fn-recover-return-sign2.rs rename to tests/ui/fn/fn-recover-return-sign2.rs diff --git a/src/test/ui/fn/fn-recover-return-sign2.stderr b/tests/ui/fn/fn-recover-return-sign2.stderr similarity index 100% rename from src/test/ui/fn/fn-recover-return-sign2.stderr rename to tests/ui/fn/fn-recover-return-sign2.stderr diff --git a/src/test/ui/fn/fn-trait-formatting.rs b/tests/ui/fn/fn-trait-formatting.rs similarity index 100% rename from src/test/ui/fn/fn-trait-formatting.rs rename to tests/ui/fn/fn-trait-formatting.rs diff --git a/src/test/ui/fn/fn-trait-formatting.stderr b/tests/ui/fn/fn-trait-formatting.stderr similarity index 100% rename from src/test/ui/fn/fn-trait-formatting.stderr rename to tests/ui/fn/fn-trait-formatting.stderr diff --git a/src/test/ui/fn/fun-call-variants.rs b/tests/ui/fn/fun-call-variants.rs similarity index 100% rename from src/test/ui/fn/fun-call-variants.rs rename to tests/ui/fn/fun-call-variants.rs diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs b/tests/ui/fn/implied-bounds-unnorm-associated-type-2.rs similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs rename to tests/ui/fn/implied-bounds-unnorm-associated-type-2.rs diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-2.stderr b/tests/ui/fn/implied-bounds-unnorm-associated-type-2.stderr similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-2.stderr rename to tests/ui/fn/implied-bounds-unnorm-associated-type-2.stderr diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-3.rs b/tests/ui/fn/implied-bounds-unnorm-associated-type-3.rs similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-3.rs rename to tests/ui/fn/implied-bounds-unnorm-associated-type-3.rs diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-4.rs b/tests/ui/fn/implied-bounds-unnorm-associated-type-4.rs similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-4.rs rename to tests/ui/fn/implied-bounds-unnorm-associated-type-4.rs diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-4.stderr b/tests/ui/fn/implied-bounds-unnorm-associated-type-4.stderr similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-4.stderr rename to tests/ui/fn/implied-bounds-unnorm-associated-type-4.stderr diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-5.rs b/tests/ui/fn/implied-bounds-unnorm-associated-type-5.rs similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-5.rs rename to tests/ui/fn/implied-bounds-unnorm-associated-type-5.rs diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type-5.stderr b/tests/ui/fn/implied-bounds-unnorm-associated-type-5.stderr similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type-5.stderr rename to tests/ui/fn/implied-bounds-unnorm-associated-type-5.stderr diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type.rs b/tests/ui/fn/implied-bounds-unnorm-associated-type.rs similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type.rs rename to tests/ui/fn/implied-bounds-unnorm-associated-type.rs diff --git a/src/test/ui/fn/implied-bounds-unnorm-associated-type.stderr b/tests/ui/fn/implied-bounds-unnorm-associated-type.stderr similarity index 100% rename from src/test/ui/fn/implied-bounds-unnorm-associated-type.stderr rename to tests/ui/fn/implied-bounds-unnorm-associated-type.stderr diff --git a/src/test/ui/fn/issue-3044.rs b/tests/ui/fn/issue-3044.rs similarity index 100% rename from src/test/ui/fn/issue-3044.rs rename to tests/ui/fn/issue-3044.rs diff --git a/src/test/ui/fn/issue-3044.stderr b/tests/ui/fn/issue-3044.stderr similarity index 100% rename from src/test/ui/fn/issue-3044.stderr rename to tests/ui/fn/issue-3044.stderr diff --git a/src/test/ui/fn/issue-3904.rs b/tests/ui/fn/issue-3904.rs similarity index 100% rename from src/test/ui/fn/issue-3904.rs rename to tests/ui/fn/issue-3904.rs diff --git a/src/test/ui/fn/issue-80179.rs b/tests/ui/fn/issue-80179.rs similarity index 100% rename from src/test/ui/fn/issue-80179.rs rename to tests/ui/fn/issue-80179.rs diff --git a/src/test/ui/fn/issue-80179.stderr b/tests/ui/fn/issue-80179.stderr similarity index 100% rename from src/test/ui/fn/issue-80179.stderr rename to tests/ui/fn/issue-80179.stderr diff --git a/src/test/ui/fn/keyword-order.rs b/tests/ui/fn/keyword-order.rs similarity index 100% rename from src/test/ui/fn/keyword-order.rs rename to tests/ui/fn/keyword-order.rs diff --git a/src/test/ui/fn/keyword-order.stderr b/tests/ui/fn/keyword-order.stderr similarity index 100% rename from src/test/ui/fn/keyword-order.stderr rename to tests/ui/fn/keyword-order.stderr diff --git a/src/test/ui/fn/nested-function-names-issue-8587.rs b/tests/ui/fn/nested-function-names-issue-8587.rs similarity index 100% rename from src/test/ui/fn/nested-function-names-issue-8587.rs rename to tests/ui/fn/nested-function-names-issue-8587.rs diff --git a/src/test/ui/fn/signature-error-reporting-under-verbose.rs b/tests/ui/fn/signature-error-reporting-under-verbose.rs similarity index 100% rename from src/test/ui/fn/signature-error-reporting-under-verbose.rs rename to tests/ui/fn/signature-error-reporting-under-verbose.rs diff --git a/src/test/ui/fn/signature-error-reporting-under-verbose.stderr b/tests/ui/fn/signature-error-reporting-under-verbose.stderr similarity index 100% rename from src/test/ui/fn/signature-error-reporting-under-verbose.stderr rename to tests/ui/fn/signature-error-reporting-under-verbose.stderr diff --git a/src/test/ui/fn/suggest-return-closure.rs b/tests/ui/fn/suggest-return-closure.rs similarity index 100% rename from src/test/ui/fn/suggest-return-closure.rs rename to tests/ui/fn/suggest-return-closure.rs diff --git a/src/test/ui/fn/suggest-return-closure.stderr b/tests/ui/fn/suggest-return-closure.stderr similarity index 100% rename from src/test/ui/fn/suggest-return-closure.stderr rename to tests/ui/fn/suggest-return-closure.stderr diff --git a/src/test/ui/fn/suggest-return-future.rs b/tests/ui/fn/suggest-return-future.rs similarity index 100% rename from src/test/ui/fn/suggest-return-future.rs rename to tests/ui/fn/suggest-return-future.rs diff --git a/src/test/ui/fn/suggest-return-future.stderr b/tests/ui/fn/suggest-return-future.stderr similarity index 100% rename from src/test/ui/fn/suggest-return-future.stderr rename to tests/ui/fn/suggest-return-future.stderr diff --git a/src/test/ui/for-loop-while/auto-loop.rs b/tests/ui/for-loop-while/auto-loop.rs similarity index 100% rename from src/test/ui/for-loop-while/auto-loop.rs rename to tests/ui/for-loop-while/auto-loop.rs diff --git a/src/test/ui/for-loop-while/break-outside-loop.rs b/tests/ui/for-loop-while/break-outside-loop.rs similarity index 100% rename from src/test/ui/for-loop-while/break-outside-loop.rs rename to tests/ui/for-loop-while/break-outside-loop.rs diff --git a/src/test/ui/for-loop-while/break-outside-loop.stderr b/tests/ui/for-loop-while/break-outside-loop.stderr similarity index 100% rename from src/test/ui/for-loop-while/break-outside-loop.stderr rename to tests/ui/for-loop-while/break-outside-loop.stderr diff --git a/src/test/ui/for-loop-while/break-value.rs b/tests/ui/for-loop-while/break-value.rs similarity index 100% rename from src/test/ui/for-loop-while/break-value.rs rename to tests/ui/for-loop-while/break-value.rs diff --git a/src/test/ui/for-loop-while/break-while-condition.rs b/tests/ui/for-loop-while/break-while-condition.rs similarity index 100% rename from src/test/ui/for-loop-while/break-while-condition.rs rename to tests/ui/for-loop-while/break-while-condition.rs diff --git a/src/test/ui/for-loop-while/break-while-condition.stderr b/tests/ui/for-loop-while/break-while-condition.stderr similarity index 100% rename from src/test/ui/for-loop-while/break-while-condition.stderr rename to tests/ui/for-loop-while/break-while-condition.stderr diff --git a/src/test/ui/for-loop-while/break.rs b/tests/ui/for-loop-while/break.rs similarity index 100% rename from src/test/ui/for-loop-while/break.rs rename to tests/ui/for-loop-while/break.rs diff --git a/src/test/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs b/tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs similarity index 100% rename from src/test/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs rename to tests/ui/for-loop-while/cleanup-rvalue-during-if-and-while.rs diff --git a/src/test/ui/for-loop-while/for-destruct.rs b/tests/ui/for-loop-while/for-destruct.rs similarity index 100% rename from src/test/ui/for-loop-while/for-destruct.rs rename to tests/ui/for-loop-while/for-destruct.rs diff --git a/src/test/ui/for-loop-while/for-loop-goofiness.rs b/tests/ui/for-loop-while/for-loop-goofiness.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-goofiness.rs rename to tests/ui/for-loop-while/for-loop-goofiness.rs diff --git a/src/test/ui/for-loop-while/for-loop-has-unit-body.rs b/tests/ui/for-loop-while/for-loop-has-unit-body.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-has-unit-body.rs rename to tests/ui/for-loop-while/for-loop-has-unit-body.rs diff --git a/src/test/ui/for-loop-while/for-loop-into-iterator.rs b/tests/ui/for-loop-while/for-loop-into-iterator.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-into-iterator.rs rename to tests/ui/for-loop-while/for-loop-into-iterator.rs diff --git a/src/test/ui/for-loop-while/for-loop-lifetime-of-unbound-values.rs b/tests/ui/for-loop-while/for-loop-lifetime-of-unbound-values.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-lifetime-of-unbound-values.rs rename to tests/ui/for-loop-while/for-loop-lifetime-of-unbound-values.rs diff --git a/src/test/ui/for-loop-while/for-loop-macro.rs b/tests/ui/for-loop-while/for-loop-macro.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-macro.rs rename to tests/ui/for-loop-while/for-loop-macro.rs diff --git a/src/test/ui/for-loop-while/for-loop-mut-ref-element.rs b/tests/ui/for-loop-while/for-loop-mut-ref-element.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-mut-ref-element.rs rename to tests/ui/for-loop-while/for-loop-mut-ref-element.rs diff --git a/src/test/ui/for-loop-while/for-loop-no-std.rs b/tests/ui/for-loop-while/for-loop-no-std.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-no-std.rs rename to tests/ui/for-loop-while/for-loop-no-std.rs diff --git a/src/test/ui/for-loop-while/for-loop-panic.rs b/tests/ui/for-loop-while/for-loop-panic.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-panic.rs rename to tests/ui/for-loop-while/for-loop-panic.rs diff --git a/src/test/ui/for-loop-while/for-loop-unconstrained-element-type-i32-fallback.rs b/tests/ui/for-loop-while/for-loop-unconstrained-element-type-i32-fallback.rs similarity index 100% rename from src/test/ui/for-loop-while/for-loop-unconstrained-element-type-i32-fallback.rs rename to tests/ui/for-loop-while/for-loop-unconstrained-element-type-i32-fallback.rs diff --git a/src/test/ui/for-loop-while/foreach-external-iterators-break.rs b/tests/ui/for-loop-while/foreach-external-iterators-break.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-external-iterators-break.rs rename to tests/ui/for-loop-while/foreach-external-iterators-break.rs diff --git a/src/test/ui/for-loop-while/foreach-external-iterators-hashmap-break-restart.rs b/tests/ui/for-loop-while/foreach-external-iterators-hashmap-break-restart.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-external-iterators-hashmap-break-restart.rs rename to tests/ui/for-loop-while/foreach-external-iterators-hashmap-break-restart.rs diff --git a/src/test/ui/for-loop-while/foreach-external-iterators-hashmap.rs b/tests/ui/for-loop-while/foreach-external-iterators-hashmap.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-external-iterators-hashmap.rs rename to tests/ui/for-loop-while/foreach-external-iterators-hashmap.rs diff --git a/src/test/ui/for-loop-while/foreach-external-iterators-loop.rs b/tests/ui/for-loop-while/foreach-external-iterators-loop.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-external-iterators-loop.rs rename to tests/ui/for-loop-while/foreach-external-iterators-loop.rs diff --git a/src/test/ui/for-loop-while/foreach-external-iterators-nested.rs b/tests/ui/for-loop-while/foreach-external-iterators-nested.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-external-iterators-nested.rs rename to tests/ui/for-loop-while/foreach-external-iterators-nested.rs diff --git a/src/test/ui/for-loop-while/foreach-external-iterators.rs b/tests/ui/for-loop-while/foreach-external-iterators.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-external-iterators.rs rename to tests/ui/for-loop-while/foreach-external-iterators.rs diff --git a/src/test/ui/for-loop-while/foreach-nested.rs b/tests/ui/for-loop-while/foreach-nested.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-nested.rs rename to tests/ui/for-loop-while/foreach-nested.rs diff --git a/src/test/ui/for-loop-while/foreach-put-structured.rs b/tests/ui/for-loop-while/foreach-put-structured.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-put-structured.rs rename to tests/ui/for-loop-while/foreach-put-structured.rs diff --git a/src/test/ui/for-loop-while/foreach-simple-outer-slot.rs b/tests/ui/for-loop-while/foreach-simple-outer-slot.rs similarity index 100% rename from src/test/ui/for-loop-while/foreach-simple-outer-slot.rs rename to tests/ui/for-loop-while/foreach-simple-outer-slot.rs diff --git a/src/test/ui/for-loop-while/issue-2216.rs b/tests/ui/for-loop-while/issue-2216.rs similarity index 100% rename from src/test/ui/for-loop-while/issue-2216.rs rename to tests/ui/for-loop-while/issue-2216.rs diff --git a/src/test/ui/for-loop-while/issue-51345.rs b/tests/ui/for-loop-while/issue-51345.rs similarity index 100% rename from src/test/ui/for-loop-while/issue-51345.rs rename to tests/ui/for-loop-while/issue-51345.rs diff --git a/src/test/ui/for-loop-while/issue-69841.rs b/tests/ui/for-loop-while/issue-69841.rs similarity index 100% rename from src/test/ui/for-loop-while/issue-69841.rs rename to tests/ui/for-loop-while/issue-69841.rs diff --git a/src/test/ui/for-loop-while/label_break_value.rs b/tests/ui/for-loop-while/label_break_value.rs similarity index 100% rename from src/test/ui/for-loop-while/label_break_value.rs rename to tests/ui/for-loop-while/label_break_value.rs diff --git a/src/test/ui/for-loop-while/label_break_value_invalid.rs b/tests/ui/for-loop-while/label_break_value_invalid.rs similarity index 100% rename from src/test/ui/for-loop-while/label_break_value_invalid.rs rename to tests/ui/for-loop-while/label_break_value_invalid.rs diff --git a/src/test/ui/for-loop-while/label_break_value_invalid.stderr b/tests/ui/for-loop-while/label_break_value_invalid.stderr similarity index 100% rename from src/test/ui/for-loop-while/label_break_value_invalid.stderr rename to tests/ui/for-loop-while/label_break_value_invalid.stderr diff --git a/src/test/ui/for-loop-while/labeled-break.rs b/tests/ui/for-loop-while/labeled-break.rs similarity index 100% rename from src/test/ui/for-loop-while/labeled-break.rs rename to tests/ui/for-loop-while/labeled-break.rs diff --git a/src/test/ui/for-loop-while/linear-for-loop.rs b/tests/ui/for-loop-while/linear-for-loop.rs similarity index 100% rename from src/test/ui/for-loop-while/linear-for-loop.rs rename to tests/ui/for-loop-while/linear-for-loop.rs diff --git a/src/test/ui/for-loop-while/liveness-assign-imm-local-after-loop.rs b/tests/ui/for-loop-while/liveness-assign-imm-local-after-loop.rs similarity index 100% rename from src/test/ui/for-loop-while/liveness-assign-imm-local-after-loop.rs rename to tests/ui/for-loop-while/liveness-assign-imm-local-after-loop.rs diff --git a/src/test/ui/for-loop-while/liveness-loop-break.rs b/tests/ui/for-loop-while/liveness-loop-break.rs similarity index 100% rename from src/test/ui/for-loop-while/liveness-loop-break.rs rename to tests/ui/for-loop-while/liveness-loop-break.rs diff --git a/src/test/ui/for-loop-while/liveness-move-in-loop.rs b/tests/ui/for-loop-while/liveness-move-in-loop.rs similarity index 100% rename from src/test/ui/for-loop-while/liveness-move-in-loop.rs rename to tests/ui/for-loop-while/liveness-move-in-loop.rs diff --git a/src/test/ui/for-loop-while/long-while.rs b/tests/ui/for-loop-while/long-while.rs similarity index 100% rename from src/test/ui/for-loop-while/long-while.rs rename to tests/ui/for-loop-while/long-while.rs diff --git a/src/test/ui/for-loop-while/loop-break-cont-1.rs b/tests/ui/for-loop-while/loop-break-cont-1.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-break-cont-1.rs rename to tests/ui/for-loop-while/loop-break-cont-1.rs diff --git a/src/test/ui/for-loop-while/loop-break-cont.rs b/tests/ui/for-loop-while/loop-break-cont.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-break-cont.rs rename to tests/ui/for-loop-while/loop-break-cont.rs diff --git a/src/test/ui/for-loop-while/loop-break-value.rs b/tests/ui/for-loop-while/loop-break-value.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-break-value.rs rename to tests/ui/for-loop-while/loop-break-value.rs diff --git a/src/test/ui/for-loop-while/loop-diverges.rs b/tests/ui/for-loop-while/loop-diverges.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-diverges.rs rename to tests/ui/for-loop-while/loop-diverges.rs diff --git a/src/test/ui/for-loop-while/loop-label-shadowing.rs b/tests/ui/for-loop-while/loop-label-shadowing.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-label-shadowing.rs rename to tests/ui/for-loop-while/loop-label-shadowing.rs diff --git a/src/test/ui/for-loop-while/loop-labeled-break-value.rs b/tests/ui/for-loop-while/loop-labeled-break-value.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-labeled-break-value.rs rename to tests/ui/for-loop-while/loop-labeled-break-value.rs diff --git a/src/test/ui/for-loop-while/loop-no-reinit-needed-post-bot.rs b/tests/ui/for-loop-while/loop-no-reinit-needed-post-bot.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-no-reinit-needed-post-bot.rs rename to tests/ui/for-loop-while/loop-no-reinit-needed-post-bot.rs diff --git a/src/test/ui/for-loop-while/loop-scope.rs b/tests/ui/for-loop-while/loop-scope.rs similarity index 100% rename from src/test/ui/for-loop-while/loop-scope.rs rename to tests/ui/for-loop-while/loop-scope.rs diff --git a/src/test/ui/for-loop-while/while-cont.rs b/tests/ui/for-loop-while/while-cont.rs similarity index 100% rename from src/test/ui/for-loop-while/while-cont.rs rename to tests/ui/for-loop-while/while-cont.rs diff --git a/src/test/ui/for-loop-while/while-flow-graph.rs b/tests/ui/for-loop-while/while-flow-graph.rs similarity index 100% rename from src/test/ui/for-loop-while/while-flow-graph.rs rename to tests/ui/for-loop-while/while-flow-graph.rs diff --git a/src/test/ui/for-loop-while/while-label.rs b/tests/ui/for-loop-while/while-label.rs similarity index 100% rename from src/test/ui/for-loop-while/while-label.rs rename to tests/ui/for-loop-while/while-label.rs diff --git a/src/test/ui/for-loop-while/while-let-2.rs b/tests/ui/for-loop-while/while-let-2.rs similarity index 100% rename from src/test/ui/for-loop-while/while-let-2.rs rename to tests/ui/for-loop-while/while-let-2.rs diff --git a/src/test/ui/for-loop-while/while-let-2.stderr b/tests/ui/for-loop-while/while-let-2.stderr similarity index 100% rename from src/test/ui/for-loop-while/while-let-2.stderr rename to tests/ui/for-loop-while/while-let-2.stderr diff --git a/src/test/ui/for-loop-while/while-let.rs b/tests/ui/for-loop-while/while-let.rs similarity index 100% rename from src/test/ui/for-loop-while/while-let.rs rename to tests/ui/for-loop-while/while-let.rs diff --git a/src/test/ui/for-loop-while/while-loop-constraints-2.rs b/tests/ui/for-loop-while/while-loop-constraints-2.rs similarity index 100% rename from src/test/ui/for-loop-while/while-loop-constraints-2.rs rename to tests/ui/for-loop-while/while-loop-constraints-2.rs diff --git a/src/test/ui/for-loop-while/while-prelude-drop.rs b/tests/ui/for-loop-while/while-prelude-drop.rs similarity index 100% rename from src/test/ui/for-loop-while/while-prelude-drop.rs rename to tests/ui/for-loop-while/while-prelude-drop.rs diff --git a/src/test/ui/for-loop-while/while-with-break.rs b/tests/ui/for-loop-while/while-with-break.rs similarity index 100% rename from src/test/ui/for-loop-while/while-with-break.rs rename to tests/ui/for-loop-while/while-with-break.rs diff --git a/src/test/ui/for-loop-while/while.rs b/tests/ui/for-loop-while/while.rs similarity index 100% rename from src/test/ui/for-loop-while/while.rs rename to tests/ui/for-loop-while/while.rs diff --git a/src/test/ui/for/for-c-in-str.rs b/tests/ui/for/for-c-in-str.rs similarity index 100% rename from src/test/ui/for/for-c-in-str.rs rename to tests/ui/for/for-c-in-str.rs diff --git a/src/test/ui/for/for-c-in-str.stderr b/tests/ui/for/for-c-in-str.stderr similarity index 100% rename from src/test/ui/for/for-c-in-str.stderr rename to tests/ui/for/for-c-in-str.stderr diff --git a/src/test/ui/for/for-expn.rs b/tests/ui/for/for-expn.rs similarity index 100% rename from src/test/ui/for/for-expn.rs rename to tests/ui/for/for-expn.rs diff --git a/src/test/ui/for/for-expn.stderr b/tests/ui/for/for-expn.stderr similarity index 100% rename from src/test/ui/for/for-expn.stderr rename to tests/ui/for/for-expn.stderr diff --git a/src/test/ui/for/for-loop-bogosity.rs b/tests/ui/for/for-loop-bogosity.rs similarity index 100% rename from src/test/ui/for/for-loop-bogosity.rs rename to tests/ui/for/for-loop-bogosity.rs diff --git a/src/test/ui/for/for-loop-bogosity.stderr b/tests/ui/for/for-loop-bogosity.stderr similarity index 100% rename from src/test/ui/for/for-loop-bogosity.stderr rename to tests/ui/for/for-loop-bogosity.stderr diff --git a/src/test/ui/for/for-loop-refutable-pattern-error-message.rs b/tests/ui/for/for-loop-refutable-pattern-error-message.rs similarity index 100% rename from src/test/ui/for/for-loop-refutable-pattern-error-message.rs rename to tests/ui/for/for-loop-refutable-pattern-error-message.rs diff --git a/src/test/ui/for/for-loop-refutable-pattern-error-message.stderr b/tests/ui/for/for-loop-refutable-pattern-error-message.stderr similarity index 100% rename from src/test/ui/for/for-loop-refutable-pattern-error-message.stderr rename to tests/ui/for/for-loop-refutable-pattern-error-message.stderr diff --git a/src/test/ui/for/for-loop-type-error.rs b/tests/ui/for/for-loop-type-error.rs similarity index 100% rename from src/test/ui/for/for-loop-type-error.rs rename to tests/ui/for/for-loop-type-error.rs diff --git a/src/test/ui/for/for-loop-type-error.stderr b/tests/ui/for/for-loop-type-error.stderr similarity index 100% rename from src/test/ui/for/for-loop-type-error.stderr rename to tests/ui/for/for-loop-type-error.stderr diff --git a/src/test/ui/for/for-loop-unconstrained-element-type.rs b/tests/ui/for/for-loop-unconstrained-element-type.rs similarity index 100% rename from src/test/ui/for/for-loop-unconstrained-element-type.rs rename to tests/ui/for/for-loop-unconstrained-element-type.rs diff --git a/src/test/ui/for/for-loop-unconstrained-element-type.stderr b/tests/ui/for/for-loop-unconstrained-element-type.stderr similarity index 100% rename from src/test/ui/for/for-loop-unconstrained-element-type.stderr rename to tests/ui/for/for-loop-unconstrained-element-type.stderr diff --git a/src/test/ui/foreign-fn-return-lifetime.fixed b/tests/ui/foreign-fn-return-lifetime.fixed similarity index 100% rename from src/test/ui/foreign-fn-return-lifetime.fixed rename to tests/ui/foreign-fn-return-lifetime.fixed diff --git a/src/test/ui/foreign-fn-return-lifetime.rs b/tests/ui/foreign-fn-return-lifetime.rs similarity index 100% rename from src/test/ui/foreign-fn-return-lifetime.rs rename to tests/ui/foreign-fn-return-lifetime.rs diff --git a/src/test/ui/foreign-fn-return-lifetime.stderr b/tests/ui/foreign-fn-return-lifetime.stderr similarity index 100% rename from src/test/ui/foreign-fn-return-lifetime.stderr rename to tests/ui/foreign-fn-return-lifetime.stderr diff --git a/src/test/ui/foreign-unsafe-fn-called.mir.stderr b/tests/ui/foreign-unsafe-fn-called.mir.stderr similarity index 100% rename from src/test/ui/foreign-unsafe-fn-called.mir.stderr rename to tests/ui/foreign-unsafe-fn-called.mir.stderr diff --git a/src/test/ui/foreign-unsafe-fn-called.rs b/tests/ui/foreign-unsafe-fn-called.rs similarity index 100% rename from src/test/ui/foreign-unsafe-fn-called.rs rename to tests/ui/foreign-unsafe-fn-called.rs diff --git a/src/test/ui/foreign-unsafe-fn-called.thir.stderr b/tests/ui/foreign-unsafe-fn-called.thir.stderr similarity index 100% rename from src/test/ui/foreign-unsafe-fn-called.thir.stderr rename to tests/ui/foreign-unsafe-fn-called.thir.stderr diff --git a/src/test/ui/foreign/auxiliary/fn-abi.rs b/tests/ui/foreign/auxiliary/fn-abi.rs similarity index 100% rename from src/test/ui/foreign/auxiliary/fn-abi.rs rename to tests/ui/foreign/auxiliary/fn-abi.rs diff --git a/src/test/ui/foreign/foreign-fn-linkname.rs b/tests/ui/foreign/foreign-fn-linkname.rs similarity index 100% rename from src/test/ui/foreign/foreign-fn-linkname.rs rename to tests/ui/foreign/foreign-fn-linkname.rs diff --git a/src/test/ui/foreign/foreign-int-types.rs b/tests/ui/foreign/foreign-int-types.rs similarity index 100% rename from src/test/ui/foreign/foreign-int-types.rs rename to tests/ui/foreign/foreign-int-types.rs diff --git a/src/test/ui/foreign/foreign-mod-src/compiletest-ignore-dir b/tests/ui/foreign/foreign-mod-src/compiletest-ignore-dir similarity index 100% rename from src/test/ui/foreign/foreign-mod-src/compiletest-ignore-dir rename to tests/ui/foreign/foreign-mod-src/compiletest-ignore-dir diff --git a/src/test/ui/foreign/foreign-mod-src/inner.rs b/tests/ui/foreign/foreign-mod-src/inner.rs similarity index 100% rename from src/test/ui/foreign/foreign-mod-src/inner.rs rename to tests/ui/foreign/foreign-mod-src/inner.rs diff --git a/src/test/ui/foreign/foreign-mod-unused-const.rs b/tests/ui/foreign/foreign-mod-unused-const.rs similarity index 100% rename from src/test/ui/foreign/foreign-mod-unused-const.rs rename to tests/ui/foreign/foreign-mod-unused-const.rs diff --git a/src/test/ui/foreign/foreign-pub-super.rs b/tests/ui/foreign/foreign-pub-super.rs similarity index 100% rename from src/test/ui/foreign/foreign-pub-super.rs rename to tests/ui/foreign/foreign-pub-super.rs diff --git a/src/test/ui/foreign/foreign-src/compiletest-ignore-dir b/tests/ui/foreign/foreign-src/compiletest-ignore-dir similarity index 100% rename from src/test/ui/foreign/foreign-src/compiletest-ignore-dir rename to tests/ui/foreign/foreign-src/compiletest-ignore-dir diff --git a/src/test/ui/foreign/foreign-src/foreign.rs b/tests/ui/foreign/foreign-src/foreign.rs similarity index 100% rename from src/test/ui/foreign/foreign-src/foreign.rs rename to tests/ui/foreign/foreign-src/foreign.rs diff --git a/src/test/ui/foreign/foreign-truncated-arguments.rs b/tests/ui/foreign/foreign-truncated-arguments.rs similarity index 100% rename from src/test/ui/foreign/foreign-truncated-arguments.rs rename to tests/ui/foreign/foreign-truncated-arguments.rs diff --git a/src/test/ui/foreign/foreign2.rs b/tests/ui/foreign/foreign2.rs similarity index 100% rename from src/test/ui/foreign/foreign2.rs rename to tests/ui/foreign/foreign2.rs diff --git a/src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs b/tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs similarity index 100% rename from src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs rename to tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs diff --git a/src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.stderr b/tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.stderr similarity index 100% rename from src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.stderr rename to tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.stderr diff --git a/src/test/ui/foreign/issue-91370-foreign-fn-block-impl.rs b/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs similarity index 100% rename from src/test/ui/foreign/issue-91370-foreign-fn-block-impl.rs rename to tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs diff --git a/src/test/ui/foreign/issue-91370-foreign-fn-block-impl.stderr b/tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr similarity index 100% rename from src/test/ui/foreign/issue-91370-foreign-fn-block-impl.stderr rename to tests/ui/foreign/issue-91370-foreign-fn-block-impl.stderr diff --git a/src/test/ui/foreign/issue-99276-same-type-lifetimes.rs b/tests/ui/foreign/issue-99276-same-type-lifetimes.rs similarity index 100% rename from src/test/ui/foreign/issue-99276-same-type-lifetimes.rs rename to tests/ui/foreign/issue-99276-same-type-lifetimes.rs diff --git a/src/test/ui/foreign/nil-decl-in-foreign.rs b/tests/ui/foreign/nil-decl-in-foreign.rs similarity index 100% rename from src/test/ui/foreign/nil-decl-in-foreign.rs rename to tests/ui/foreign/nil-decl-in-foreign.rs diff --git a/src/test/ui/format-no-std.rs b/tests/ui/format-no-std.rs similarity index 100% rename from src/test/ui/format-no-std.rs rename to tests/ui/format-no-std.rs diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name1.rs b/tests/ui/fully-qualified-type/fully-qualified-type-name1.rs similarity index 100% rename from src/test/ui/fully-qualified-type/fully-qualified-type-name1.rs rename to tests/ui/fully-qualified-type/fully-qualified-type-name1.rs diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name1.stderr b/tests/ui/fully-qualified-type/fully-qualified-type-name1.stderr similarity index 100% rename from src/test/ui/fully-qualified-type/fully-qualified-type-name1.stderr rename to tests/ui/fully-qualified-type/fully-qualified-type-name1.stderr diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name2.rs b/tests/ui/fully-qualified-type/fully-qualified-type-name2.rs similarity index 100% rename from src/test/ui/fully-qualified-type/fully-qualified-type-name2.rs rename to tests/ui/fully-qualified-type/fully-qualified-type-name2.rs diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name2.stderr b/tests/ui/fully-qualified-type/fully-qualified-type-name2.stderr similarity index 100% rename from src/test/ui/fully-qualified-type/fully-qualified-type-name2.stderr rename to tests/ui/fully-qualified-type/fully-qualified-type-name2.stderr diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs b/tests/ui/fully-qualified-type/fully-qualified-type-name4.rs similarity index 100% rename from src/test/ui/fully-qualified-type/fully-qualified-type-name4.rs rename to tests/ui/fully-qualified-type/fully-qualified-type-name4.rs diff --git a/src/test/ui/fully-qualified-type/fully-qualified-type-name4.stderr b/tests/ui/fully-qualified-type/fully-qualified-type-name4.stderr similarity index 100% rename from src/test/ui/fully-qualified-type/fully-qualified-type-name4.stderr rename to tests/ui/fully-qualified-type/fully-qualified-type-name4.stderr diff --git a/src/test/ui/fun-indirect-call.rs b/tests/ui/fun-indirect-call.rs similarity index 100% rename from src/test/ui/fun-indirect-call.rs rename to tests/ui/fun-indirect-call.rs diff --git a/src/test/ui/function-pointer/function-pointer-comparison-issue-54685.rs b/tests/ui/function-pointer/function-pointer-comparison-issue-54685.rs similarity index 100% rename from src/test/ui/function-pointer/function-pointer-comparison-issue-54685.rs rename to tests/ui/function-pointer/function-pointer-comparison-issue-54685.rs diff --git a/src/test/ui/function-pointer/issue-102289.rs b/tests/ui/function-pointer/issue-102289.rs similarity index 100% rename from src/test/ui/function-pointer/issue-102289.rs rename to tests/ui/function-pointer/issue-102289.rs diff --git a/src/test/ui/function-pointer/sized-ret-with-binder.rs b/tests/ui/function-pointer/sized-ret-with-binder.rs similarity index 100% rename from src/test/ui/function-pointer/sized-ret-with-binder.rs rename to tests/ui/function-pointer/sized-ret-with-binder.rs diff --git a/src/test/ui/function-pointer/unsized-ret.rs b/tests/ui/function-pointer/unsized-ret.rs similarity index 100% rename from src/test/ui/function-pointer/unsized-ret.rs rename to tests/ui/function-pointer/unsized-ret.rs diff --git a/src/test/ui/function-pointer/unsized-ret.stderr b/tests/ui/function-pointer/unsized-ret.stderr similarity index 100% rename from src/test/ui/function-pointer/unsized-ret.stderr rename to tests/ui/function-pointer/unsized-ret.stderr diff --git a/src/test/ui/functional-struct-update/functional-struct-update-noncopyable.rs b/tests/ui/functional-struct-update/functional-struct-update-noncopyable.rs similarity index 100% rename from src/test/ui/functional-struct-update/functional-struct-update-noncopyable.rs rename to tests/ui/functional-struct-update/functional-struct-update-noncopyable.rs diff --git a/src/test/ui/functional-struct-update/functional-struct-update-noncopyable.stderr b/tests/ui/functional-struct-update/functional-struct-update-noncopyable.stderr similarity index 100% rename from src/test/ui/functional-struct-update/functional-struct-update-noncopyable.stderr rename to tests/ui/functional-struct-update/functional-struct-update-noncopyable.stderr diff --git a/src/test/ui/functional-struct-update/functional-struct-update-respects-privacy.rs b/tests/ui/functional-struct-update/functional-struct-update-respects-privacy.rs similarity index 100% rename from src/test/ui/functional-struct-update/functional-struct-update-respects-privacy.rs rename to tests/ui/functional-struct-update/functional-struct-update-respects-privacy.rs diff --git a/src/test/ui/functional-struct-update/functional-struct-update-respects-privacy.stderr b/tests/ui/functional-struct-update/functional-struct-update-respects-privacy.stderr similarity index 100% rename from src/test/ui/functional-struct-update/functional-struct-update-respects-privacy.stderr rename to tests/ui/functional-struct-update/functional-struct-update-respects-privacy.stderr diff --git a/src/test/ui/functions-closures/auxiliary/fn-abi.rs b/tests/ui/functions-closures/auxiliary/fn-abi.rs similarity index 100% rename from src/test/ui/functions-closures/auxiliary/fn-abi.rs rename to tests/ui/functions-closures/auxiliary/fn-abi.rs diff --git a/src/test/ui/functions-closures/call-closure-from-overloaded-op.rs b/tests/ui/functions-closures/call-closure-from-overloaded-op.rs similarity index 100% rename from src/test/ui/functions-closures/call-closure-from-overloaded-op.rs rename to tests/ui/functions-closures/call-closure-from-overloaded-op.rs diff --git a/src/test/ui/functions-closures/capture-clauses-boxed-closures.rs b/tests/ui/functions-closures/capture-clauses-boxed-closures.rs similarity index 100% rename from src/test/ui/functions-closures/capture-clauses-boxed-closures.rs rename to tests/ui/functions-closures/capture-clauses-boxed-closures.rs diff --git a/src/test/ui/functions-closures/capture-clauses-unboxed-closures.rs b/tests/ui/functions-closures/capture-clauses-unboxed-closures.rs similarity index 100% rename from src/test/ui/functions-closures/capture-clauses-unboxed-closures.rs rename to tests/ui/functions-closures/capture-clauses-unboxed-closures.rs diff --git a/src/test/ui/functions-closures/clone-closure.rs b/tests/ui/functions-closures/clone-closure.rs similarity index 100% rename from src/test/ui/functions-closures/clone-closure.rs rename to tests/ui/functions-closures/clone-closure.rs diff --git a/src/test/ui/functions-closures/closure-bounds-can-capture-chan.rs b/tests/ui/functions-closures/closure-bounds-can-capture-chan.rs similarity index 100% rename from src/test/ui/functions-closures/closure-bounds-can-capture-chan.rs rename to tests/ui/functions-closures/closure-bounds-can-capture-chan.rs diff --git a/src/test/ui/functions-closures/closure-expected-type/README.md b/tests/ui/functions-closures/closure-expected-type/README.md similarity index 88% rename from src/test/ui/functions-closures/closure-expected-type/README.md rename to tests/ui/functions-closures/closure-expected-type/README.md index 11d2c9b7fb764..0b749040a0e3a 100644 --- a/src/test/ui/functions-closures/closure-expected-type/README.md +++ b/tests/ui/functions-closures/closure-expected-type/README.md @@ -5,4 +5,4 @@ inputs. This investigation was kicked off by #38714, which revealed some pretty deep flaws in the ad-hoc way that we were doing things before. -See also `src/test/ui/closure-expected-type`. +See also `tests/ui/closure-expected-type`. diff --git a/src/test/ui/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs b/tests/ui/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs similarity index 100% rename from src/test/ui/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs rename to tests/ui/functions-closures/closure-expected-type/expect-infer-supply-two-infers.rs diff --git a/src/test/ui/functions-closures/closure-expected-type/issue-38714.rs b/tests/ui/functions-closures/closure-expected-type/issue-38714.rs similarity index 100% rename from src/test/ui/functions-closures/closure-expected-type/issue-38714.rs rename to tests/ui/functions-closures/closure-expected-type/issue-38714.rs diff --git a/src/test/ui/functions-closures/closure-expected-type/supply-just-return-type.rs b/tests/ui/functions-closures/closure-expected-type/supply-just-return-type.rs similarity index 100% rename from src/test/ui/functions-closures/closure-expected-type/supply-just-return-type.rs rename to tests/ui/functions-closures/closure-expected-type/supply-just-return-type.rs diff --git a/src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs b/tests/ui/functions-closures/closure-expected-type/supply-nothing.rs similarity index 100% rename from src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs rename to tests/ui/functions-closures/closure-expected-type/supply-nothing.rs diff --git a/src/test/ui/functions-closures/closure-immediate.rs b/tests/ui/functions-closures/closure-immediate.rs similarity index 100% rename from src/test/ui/functions-closures/closure-immediate.rs rename to tests/ui/functions-closures/closure-immediate.rs diff --git a/src/test/ui/functions-closures/closure-inference.rs b/tests/ui/functions-closures/closure-inference.rs similarity index 100% rename from src/test/ui/functions-closures/closure-inference.rs rename to tests/ui/functions-closures/closure-inference.rs diff --git a/src/test/ui/functions-closures/closure-inference2.rs b/tests/ui/functions-closures/closure-inference2.rs similarity index 100% rename from src/test/ui/functions-closures/closure-inference2.rs rename to tests/ui/functions-closures/closure-inference2.rs diff --git a/src/test/ui/functions-closures/closure-reform.rs b/tests/ui/functions-closures/closure-reform.rs similarity index 100% rename from src/test/ui/functions-closures/closure-reform.rs rename to tests/ui/functions-closures/closure-reform.rs diff --git a/src/test/ui/functions-closures/closure-returning-closure.rs b/tests/ui/functions-closures/closure-returning-closure.rs similarity index 100% rename from src/test/ui/functions-closures/closure-returning-closure.rs rename to tests/ui/functions-closures/closure-returning-closure.rs diff --git a/src/test/ui/functions-closures/closure-to-fn-coercion.rs b/tests/ui/functions-closures/closure-to-fn-coercion.rs similarity index 100% rename from src/test/ui/functions-closures/closure-to-fn-coercion.rs rename to tests/ui/functions-closures/closure-to-fn-coercion.rs diff --git a/src/test/ui/functions-closures/closure_to_fn_coercion-expected-types.rs b/tests/ui/functions-closures/closure_to_fn_coercion-expected-types.rs similarity index 100% rename from src/test/ui/functions-closures/closure_to_fn_coercion-expected-types.rs rename to tests/ui/functions-closures/closure_to_fn_coercion-expected-types.rs diff --git a/src/test/ui/functions-closures/copy-closure.rs b/tests/ui/functions-closures/copy-closure.rs similarity index 100% rename from src/test/ui/functions-closures/copy-closure.rs rename to tests/ui/functions-closures/copy-closure.rs diff --git a/src/test/ui/functions-closures/fn-abi.rs b/tests/ui/functions-closures/fn-abi.rs similarity index 100% rename from src/test/ui/functions-closures/fn-abi.rs rename to tests/ui/functions-closures/fn-abi.rs diff --git a/src/test/ui/functions-closures/fn-bare-assign.rs b/tests/ui/functions-closures/fn-bare-assign.rs similarity index 100% rename from src/test/ui/functions-closures/fn-bare-assign.rs rename to tests/ui/functions-closures/fn-bare-assign.rs diff --git a/src/test/ui/functions-closures/fn-bare-coerce-to-block.rs b/tests/ui/functions-closures/fn-bare-coerce-to-block.rs similarity index 100% rename from src/test/ui/functions-closures/fn-bare-coerce-to-block.rs rename to tests/ui/functions-closures/fn-bare-coerce-to-block.rs diff --git a/src/test/ui/functions-closures/fn-bare-item.rs b/tests/ui/functions-closures/fn-bare-item.rs similarity index 100% rename from src/test/ui/functions-closures/fn-bare-item.rs rename to tests/ui/functions-closures/fn-bare-item.rs diff --git a/src/test/ui/functions-closures/fn-bare-size.rs b/tests/ui/functions-closures/fn-bare-size.rs similarity index 100% rename from src/test/ui/functions-closures/fn-bare-size.rs rename to tests/ui/functions-closures/fn-bare-size.rs diff --git a/src/test/ui/functions-closures/fn-bare-spawn.rs b/tests/ui/functions-closures/fn-bare-spawn.rs similarity index 100% rename from src/test/ui/functions-closures/fn-bare-spawn.rs rename to tests/ui/functions-closures/fn-bare-spawn.rs diff --git a/src/test/ui/functions-closures/fn-coerce-field.rs b/tests/ui/functions-closures/fn-coerce-field.rs similarity index 100% rename from src/test/ui/functions-closures/fn-coerce-field.rs rename to tests/ui/functions-closures/fn-coerce-field.rs diff --git a/src/test/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs b/tests/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs similarity index 100% rename from src/test/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs rename to tests/ui/functions-closures/fn-help-with-err-generic-is-not-function.rs diff --git a/src/test/ui/functions-closures/fn-help-with-err-generic-is-not-function.stderr b/tests/ui/functions-closures/fn-help-with-err-generic-is-not-function.stderr similarity index 100% rename from src/test/ui/functions-closures/fn-help-with-err-generic-is-not-function.stderr rename to tests/ui/functions-closures/fn-help-with-err-generic-is-not-function.stderr diff --git a/src/test/ui/functions-closures/fn-help-with-err.rs b/tests/ui/functions-closures/fn-help-with-err.rs similarity index 100% rename from src/test/ui/functions-closures/fn-help-with-err.rs rename to tests/ui/functions-closures/fn-help-with-err.rs diff --git a/src/test/ui/functions-closures/fn-help-with-err.stderr b/tests/ui/functions-closures/fn-help-with-err.stderr similarity index 100% rename from src/test/ui/functions-closures/fn-help-with-err.stderr rename to tests/ui/functions-closures/fn-help-with-err.stderr diff --git a/src/test/ui/functions-closures/fn-item-type-cast.rs b/tests/ui/functions-closures/fn-item-type-cast.rs similarity index 100% rename from src/test/ui/functions-closures/fn-item-type-cast.rs rename to tests/ui/functions-closures/fn-item-type-cast.rs diff --git a/src/test/ui/functions-closures/fn-item-type-coerce.rs b/tests/ui/functions-closures/fn-item-type-coerce.rs similarity index 100% rename from src/test/ui/functions-closures/fn-item-type-coerce.rs rename to tests/ui/functions-closures/fn-item-type-coerce.rs diff --git a/src/test/ui/functions-closures/fn-item-type-zero-sized.rs b/tests/ui/functions-closures/fn-item-type-zero-sized.rs similarity index 100% rename from src/test/ui/functions-closures/fn-item-type-zero-sized.rs rename to tests/ui/functions-closures/fn-item-type-zero-sized.rs diff --git a/src/test/ui/functions-closures/fn-lval.rs b/tests/ui/functions-closures/fn-lval.rs similarity index 100% rename from src/test/ui/functions-closures/fn-lval.rs rename to tests/ui/functions-closures/fn-lval.rs diff --git a/src/test/ui/functions-closures/fn-type-infer.rs b/tests/ui/functions-closures/fn-type-infer.rs similarity index 100% rename from src/test/ui/functions-closures/fn-type-infer.rs rename to tests/ui/functions-closures/fn-type-infer.rs diff --git a/src/test/ui/functions-closures/implied-bounds-closure-arg-outlives.rs b/tests/ui/functions-closures/implied-bounds-closure-arg-outlives.rs similarity index 100% rename from src/test/ui/functions-closures/implied-bounds-closure-arg-outlives.rs rename to tests/ui/functions-closures/implied-bounds-closure-arg-outlives.rs diff --git a/src/test/ui/functions-closures/nullable-pointer-opt-closures.rs b/tests/ui/functions-closures/nullable-pointer-opt-closures.rs similarity index 100% rename from src/test/ui/functions-closures/nullable-pointer-opt-closures.rs rename to tests/ui/functions-closures/nullable-pointer-opt-closures.rs diff --git a/src/test/ui/functions-closures/parallel-codegen-closures.rs b/tests/ui/functions-closures/parallel-codegen-closures.rs similarity index 100% rename from src/test/ui/functions-closures/parallel-codegen-closures.rs rename to tests/ui/functions-closures/parallel-codegen-closures.rs diff --git a/src/test/ui/functions-closures/return-from-closure.rs b/tests/ui/functions-closures/return-from-closure.rs similarity index 100% rename from src/test/ui/functions-closures/return-from-closure.rs rename to tests/ui/functions-closures/return-from-closure.rs diff --git a/src/test/ui/future-incompatible-lint-group.rs b/tests/ui/future-incompatible-lint-group.rs similarity index 100% rename from src/test/ui/future-incompatible-lint-group.rs rename to tests/ui/future-incompatible-lint-group.rs diff --git a/src/test/ui/future-incompatible-lint-group.stderr b/tests/ui/future-incompatible-lint-group.stderr similarity index 100% rename from src/test/ui/future-incompatible-lint-group.stderr rename to tests/ui/future-incompatible-lint-group.stderr diff --git a/src/test/ui/generator/addassign-yield.rs b/tests/ui/generator/addassign-yield.rs similarity index 100% rename from src/test/ui/generator/addassign-yield.rs rename to tests/ui/generator/addassign-yield.rs diff --git a/src/test/ui/generator/async-generator-issue-67158.rs b/tests/ui/generator/async-generator-issue-67158.rs similarity index 100% rename from src/test/ui/generator/async-generator-issue-67158.rs rename to tests/ui/generator/async-generator-issue-67158.rs diff --git a/src/test/ui/generator/async-generator-issue-67158.stderr b/tests/ui/generator/async-generator-issue-67158.stderr similarity index 100% rename from src/test/ui/generator/async-generator-issue-67158.stderr rename to tests/ui/generator/async-generator-issue-67158.stderr diff --git a/src/test/ui/generator/auto-trait-regions.rs b/tests/ui/generator/auto-trait-regions.rs similarity index 100% rename from src/test/ui/generator/auto-trait-regions.rs rename to tests/ui/generator/auto-trait-regions.rs diff --git a/src/test/ui/generator/auto-trait-regions.stderr b/tests/ui/generator/auto-trait-regions.stderr similarity index 100% rename from src/test/ui/generator/auto-trait-regions.stderr rename to tests/ui/generator/auto-trait-regions.stderr diff --git a/src/test/ui/generator/auxiliary/metadata-sufficient-for-layout.rs b/tests/ui/generator/auxiliary/metadata-sufficient-for-layout.rs similarity index 100% rename from src/test/ui/generator/auxiliary/metadata-sufficient-for-layout.rs rename to tests/ui/generator/auxiliary/metadata-sufficient-for-layout.rs diff --git a/src/test/ui/generator/auxiliary/xcrate-reachable.rs b/tests/ui/generator/auxiliary/xcrate-reachable.rs similarity index 100% rename from src/test/ui/generator/auxiliary/xcrate-reachable.rs rename to tests/ui/generator/auxiliary/xcrate-reachable.rs diff --git a/src/test/ui/generator/auxiliary/xcrate.rs b/tests/ui/generator/auxiliary/xcrate.rs similarity index 100% rename from src/test/ui/generator/auxiliary/xcrate.rs rename to tests/ui/generator/auxiliary/xcrate.rs diff --git a/src/test/ui/generator/borrow-in-tail-expr.rs b/tests/ui/generator/borrow-in-tail-expr.rs similarity index 100% rename from src/test/ui/generator/borrow-in-tail-expr.rs rename to tests/ui/generator/borrow-in-tail-expr.rs diff --git a/src/test/ui/generator/borrowing.rs b/tests/ui/generator/borrowing.rs similarity index 100% rename from src/test/ui/generator/borrowing.rs rename to tests/ui/generator/borrowing.rs diff --git a/src/test/ui/generator/borrowing.stderr b/tests/ui/generator/borrowing.stderr similarity index 100% rename from src/test/ui/generator/borrowing.stderr rename to tests/ui/generator/borrowing.stderr diff --git a/src/test/ui/generator/clone-impl-async.rs b/tests/ui/generator/clone-impl-async.rs similarity index 100% rename from src/test/ui/generator/clone-impl-async.rs rename to tests/ui/generator/clone-impl-async.rs diff --git a/src/test/ui/generator/clone-impl-async.stderr b/tests/ui/generator/clone-impl-async.stderr similarity index 100% rename from src/test/ui/generator/clone-impl-async.stderr rename to tests/ui/generator/clone-impl-async.stderr diff --git a/src/test/ui/generator/clone-impl-static.rs b/tests/ui/generator/clone-impl-static.rs similarity index 100% rename from src/test/ui/generator/clone-impl-static.rs rename to tests/ui/generator/clone-impl-static.rs diff --git a/src/test/ui/generator/clone-impl-static.stderr b/tests/ui/generator/clone-impl-static.stderr similarity index 100% rename from src/test/ui/generator/clone-impl-static.stderr rename to tests/ui/generator/clone-impl-static.stderr diff --git a/src/test/ui/generator/clone-impl.rs b/tests/ui/generator/clone-impl.rs similarity index 100% rename from src/test/ui/generator/clone-impl.rs rename to tests/ui/generator/clone-impl.rs diff --git a/src/test/ui/generator/clone-impl.stderr b/tests/ui/generator/clone-impl.stderr similarity index 100% rename from src/test/ui/generator/clone-impl.stderr rename to tests/ui/generator/clone-impl.stderr diff --git a/src/test/ui/generator/conditional-drop.rs b/tests/ui/generator/conditional-drop.rs similarity index 100% rename from src/test/ui/generator/conditional-drop.rs rename to tests/ui/generator/conditional-drop.rs diff --git a/src/test/ui/generator/control-flow.rs b/tests/ui/generator/control-flow.rs similarity index 100% rename from src/test/ui/generator/control-flow.rs rename to tests/ui/generator/control-flow.rs diff --git a/src/test/ui/generator/derived-drop-parent-expr.rs b/tests/ui/generator/derived-drop-parent-expr.rs similarity index 100% rename from src/test/ui/generator/derived-drop-parent-expr.rs rename to tests/ui/generator/derived-drop-parent-expr.rs diff --git a/src/test/ui/generator/discriminant.rs b/tests/ui/generator/discriminant.rs similarity index 100% rename from src/test/ui/generator/discriminant.rs rename to tests/ui/generator/discriminant.rs diff --git a/src/test/ui/generator/drop-and-replace.rs b/tests/ui/generator/drop-and-replace.rs similarity index 100% rename from src/test/ui/generator/drop-and-replace.rs rename to tests/ui/generator/drop-and-replace.rs diff --git a/src/test/ui/generator/drop-control-flow.rs b/tests/ui/generator/drop-control-flow.rs similarity index 97% rename from src/test/ui/generator/drop-control-flow.rs rename to tests/ui/generator/drop-control-flow.rs index d383680002f4b..c6efda9541fb1 100644 --- a/src/test/ui/generator/drop-control-flow.rs +++ b/tests/ui/generator/drop-control-flow.rs @@ -18,7 +18,7 @@ impl !Send for NonSend {} fn assert_send(_: T) {} -// This test case is reduced from src/test/ui/drop/dynamic-drop-async.rs +// This test case is reduced from tests/ui/drop/dynamic-drop-async.rs fn one_armed_if(arg: bool) { let _ = || { let arr = [Ptr]; diff --git a/src/test/ui/generator/drop-env.rs b/tests/ui/generator/drop-env.rs similarity index 100% rename from src/test/ui/generator/drop-env.rs rename to tests/ui/generator/drop-env.rs diff --git a/src/test/ui/generator/drop-track-addassign-yield.rs b/tests/ui/generator/drop-track-addassign-yield.rs similarity index 100% rename from src/test/ui/generator/drop-track-addassign-yield.rs rename to tests/ui/generator/drop-track-addassign-yield.rs diff --git a/src/test/ui/generator/drop-tracking-parent-expression.rs b/tests/ui/generator/drop-tracking-parent-expression.rs similarity index 100% rename from src/test/ui/generator/drop-tracking-parent-expression.rs rename to tests/ui/generator/drop-tracking-parent-expression.rs diff --git a/src/test/ui/generator/drop-tracking-parent-expression.stderr b/tests/ui/generator/drop-tracking-parent-expression.stderr similarity index 100% rename from src/test/ui/generator/drop-tracking-parent-expression.stderr rename to tests/ui/generator/drop-tracking-parent-expression.stderr diff --git a/src/test/ui/generator/drop-tracking-yielding-in-match-guards.rs b/tests/ui/generator/drop-tracking-yielding-in-match-guards.rs similarity index 100% rename from src/test/ui/generator/drop-tracking-yielding-in-match-guards.rs rename to tests/ui/generator/drop-tracking-yielding-in-match-guards.rs diff --git a/src/test/ui/generator/drop-yield-twice.rs b/tests/ui/generator/drop-yield-twice.rs similarity index 100% rename from src/test/ui/generator/drop-yield-twice.rs rename to tests/ui/generator/drop-yield-twice.rs diff --git a/src/test/ui/generator/drop-yield-twice.stderr b/tests/ui/generator/drop-yield-twice.stderr similarity index 100% rename from src/test/ui/generator/drop-yield-twice.stderr rename to tests/ui/generator/drop-yield-twice.stderr diff --git a/src/test/ui/generator/dropck-resume.rs b/tests/ui/generator/dropck-resume.rs similarity index 100% rename from src/test/ui/generator/dropck-resume.rs rename to tests/ui/generator/dropck-resume.rs diff --git a/src/test/ui/generator/dropck-resume.stderr b/tests/ui/generator/dropck-resume.stderr similarity index 100% rename from src/test/ui/generator/dropck-resume.stderr rename to tests/ui/generator/dropck-resume.stderr diff --git a/src/test/ui/generator/dropck.rs b/tests/ui/generator/dropck.rs similarity index 100% rename from src/test/ui/generator/dropck.rs rename to tests/ui/generator/dropck.rs diff --git a/src/test/ui/generator/dropck.stderr b/tests/ui/generator/dropck.stderr similarity index 100% rename from src/test/ui/generator/dropck.stderr rename to tests/ui/generator/dropck.stderr diff --git a/src/test/ui/generator/generator-region-requirements.migrate.stderr b/tests/ui/generator/generator-region-requirements.migrate.stderr similarity index 100% rename from src/test/ui/generator/generator-region-requirements.migrate.stderr rename to tests/ui/generator/generator-region-requirements.migrate.stderr diff --git a/src/test/ui/generator/generator-region-requirements.rs b/tests/ui/generator/generator-region-requirements.rs similarity index 100% rename from src/test/ui/generator/generator-region-requirements.rs rename to tests/ui/generator/generator-region-requirements.rs diff --git a/src/test/ui/generator/generator-region-requirements.stderr b/tests/ui/generator/generator-region-requirements.stderr similarity index 100% rename from src/test/ui/generator/generator-region-requirements.stderr rename to tests/ui/generator/generator-region-requirements.stderr diff --git a/src/test/ui/generator/generator-resume-after-panic.rs b/tests/ui/generator/generator-resume-after-panic.rs similarity index 100% rename from src/test/ui/generator/generator-resume-after-panic.rs rename to tests/ui/generator/generator-resume-after-panic.rs diff --git a/src/test/ui/generator/generator-with-nll.rs b/tests/ui/generator/generator-with-nll.rs similarity index 100% rename from src/test/ui/generator/generator-with-nll.rs rename to tests/ui/generator/generator-with-nll.rs diff --git a/src/test/ui/generator/generator-with-nll.stderr b/tests/ui/generator/generator-with-nll.stderr similarity index 100% rename from src/test/ui/generator/generator-with-nll.stderr rename to tests/ui/generator/generator-with-nll.stderr diff --git a/src/test/ui/generator/generator-yielding-or-returning-itself.rs b/tests/ui/generator/generator-yielding-or-returning-itself.rs similarity index 100% rename from src/test/ui/generator/generator-yielding-or-returning-itself.rs rename to tests/ui/generator/generator-yielding-or-returning-itself.rs diff --git a/src/test/ui/generator/generator-yielding-or-returning-itself.stderr b/tests/ui/generator/generator-yielding-or-returning-itself.stderr similarity index 100% rename from src/test/ui/generator/generator-yielding-or-returning-itself.stderr rename to tests/ui/generator/generator-yielding-or-returning-itself.stderr diff --git a/src/test/ui/generator/issue-102645.rs b/tests/ui/generator/issue-102645.rs similarity index 100% rename from src/test/ui/generator/issue-102645.rs rename to tests/ui/generator/issue-102645.rs diff --git a/src/test/ui/generator/issue-102645.stderr b/tests/ui/generator/issue-102645.stderr similarity index 100% rename from src/test/ui/generator/issue-102645.stderr rename to tests/ui/generator/issue-102645.stderr diff --git a/src/test/ui/generator/issue-44197.rs b/tests/ui/generator/issue-44197.rs similarity index 100% rename from src/test/ui/generator/issue-44197.rs rename to tests/ui/generator/issue-44197.rs diff --git a/src/test/ui/generator/issue-45729-unsafe-in-generator.mir.stderr b/tests/ui/generator/issue-45729-unsafe-in-generator.mir.stderr similarity index 100% rename from src/test/ui/generator/issue-45729-unsafe-in-generator.mir.stderr rename to tests/ui/generator/issue-45729-unsafe-in-generator.mir.stderr diff --git a/src/test/ui/generator/issue-45729-unsafe-in-generator.rs b/tests/ui/generator/issue-45729-unsafe-in-generator.rs similarity index 100% rename from src/test/ui/generator/issue-45729-unsafe-in-generator.rs rename to tests/ui/generator/issue-45729-unsafe-in-generator.rs diff --git a/src/test/ui/generator/issue-45729-unsafe-in-generator.thir.stderr b/tests/ui/generator/issue-45729-unsafe-in-generator.thir.stderr similarity index 100% rename from src/test/ui/generator/issue-45729-unsafe-in-generator.thir.stderr rename to tests/ui/generator/issue-45729-unsafe-in-generator.thir.stderr diff --git a/src/test/ui/generator/issue-48048.rs b/tests/ui/generator/issue-48048.rs similarity index 100% rename from src/test/ui/generator/issue-48048.rs rename to tests/ui/generator/issue-48048.rs diff --git a/src/test/ui/generator/issue-48048.stderr b/tests/ui/generator/issue-48048.stderr similarity index 100% rename from src/test/ui/generator/issue-48048.stderr rename to tests/ui/generator/issue-48048.stderr diff --git a/src/test/ui/generator/issue-52304.rs b/tests/ui/generator/issue-52304.rs similarity index 100% rename from src/test/ui/generator/issue-52304.rs rename to tests/ui/generator/issue-52304.rs diff --git a/src/test/ui/generator/issue-52398.rs b/tests/ui/generator/issue-52398.rs similarity index 100% rename from src/test/ui/generator/issue-52398.rs rename to tests/ui/generator/issue-52398.rs diff --git a/src/test/ui/generator/issue-52398.stderr b/tests/ui/generator/issue-52398.stderr similarity index 100% rename from src/test/ui/generator/issue-52398.stderr rename to tests/ui/generator/issue-52398.stderr diff --git a/src/test/ui/generator/issue-53548-1.rs b/tests/ui/generator/issue-53548-1.rs similarity index 100% rename from src/test/ui/generator/issue-53548-1.rs rename to tests/ui/generator/issue-53548-1.rs diff --git a/src/test/ui/generator/issue-53548.rs b/tests/ui/generator/issue-53548.rs similarity index 100% rename from src/test/ui/generator/issue-53548.rs rename to tests/ui/generator/issue-53548.rs diff --git a/src/test/ui/generator/issue-57017.rs b/tests/ui/generator/issue-57017.rs similarity index 100% rename from src/test/ui/generator/issue-57017.rs rename to tests/ui/generator/issue-57017.rs diff --git a/src/test/ui/generator/issue-57084.rs b/tests/ui/generator/issue-57084.rs similarity index 100% rename from src/test/ui/generator/issue-57084.rs rename to tests/ui/generator/issue-57084.rs diff --git a/src/test/ui/generator/issue-57084.stderr b/tests/ui/generator/issue-57084.stderr similarity index 100% rename from src/test/ui/generator/issue-57084.stderr rename to tests/ui/generator/issue-57084.stderr diff --git a/src/test/ui/generator/issue-57478.rs b/tests/ui/generator/issue-57478.rs similarity index 100% rename from src/test/ui/generator/issue-57478.rs rename to tests/ui/generator/issue-57478.rs diff --git a/src/test/ui/generator/issue-58888.rs b/tests/ui/generator/issue-58888.rs similarity index 100% rename from src/test/ui/generator/issue-58888.rs rename to tests/ui/generator/issue-58888.rs diff --git a/src/test/ui/generator/issue-61442-stmt-expr-with-drop.rs b/tests/ui/generator/issue-61442-stmt-expr-with-drop.rs similarity index 100% rename from src/test/ui/generator/issue-61442-stmt-expr-with-drop.rs rename to tests/ui/generator/issue-61442-stmt-expr-with-drop.rs diff --git a/src/test/ui/generator/issue-62506-two_awaits.rs b/tests/ui/generator/issue-62506-two_awaits.rs similarity index 100% rename from src/test/ui/generator/issue-62506-two_awaits.rs rename to tests/ui/generator/issue-62506-two_awaits.rs diff --git a/src/test/ui/generator/issue-64620-yield-array-element.rs b/tests/ui/generator/issue-64620-yield-array-element.rs similarity index 100% rename from src/test/ui/generator/issue-64620-yield-array-element.rs rename to tests/ui/generator/issue-64620-yield-array-element.rs diff --git a/src/test/ui/generator/issue-64620-yield-array-element.stderr b/tests/ui/generator/issue-64620-yield-array-element.stderr similarity index 100% rename from src/test/ui/generator/issue-64620-yield-array-element.stderr rename to tests/ui/generator/issue-64620-yield-array-element.stderr diff --git a/src/test/ui/generator/issue-68112.rs b/tests/ui/generator/issue-68112.rs similarity index 100% rename from src/test/ui/generator/issue-68112.rs rename to tests/ui/generator/issue-68112.rs diff --git a/src/test/ui/generator/issue-68112.stderr b/tests/ui/generator/issue-68112.stderr similarity index 100% rename from src/test/ui/generator/issue-68112.stderr rename to tests/ui/generator/issue-68112.stderr diff --git a/src/test/ui/generator/issue-69017.rs b/tests/ui/generator/issue-69017.rs similarity index 100% rename from src/test/ui/generator/issue-69017.rs rename to tests/ui/generator/issue-69017.rs diff --git a/src/test/ui/generator/issue-69039.rs b/tests/ui/generator/issue-69039.rs similarity index 100% rename from src/test/ui/generator/issue-69039.rs rename to tests/ui/generator/issue-69039.rs diff --git a/src/test/ui/generator/issue-87142.rs b/tests/ui/generator/issue-87142.rs similarity index 100% rename from src/test/ui/generator/issue-87142.rs rename to tests/ui/generator/issue-87142.rs diff --git a/src/test/ui/generator/issue-88653.rs b/tests/ui/generator/issue-88653.rs similarity index 100% rename from src/test/ui/generator/issue-88653.rs rename to tests/ui/generator/issue-88653.rs diff --git a/src/test/ui/generator/issue-88653.stderr b/tests/ui/generator/issue-88653.stderr similarity index 100% rename from src/test/ui/generator/issue-88653.stderr rename to tests/ui/generator/issue-88653.stderr diff --git a/src/test/ui/generator/issue-91477.rs b/tests/ui/generator/issue-91477.rs similarity index 100% rename from src/test/ui/generator/issue-91477.rs rename to tests/ui/generator/issue-91477.rs diff --git a/src/test/ui/generator/issue-91477.stderr b/tests/ui/generator/issue-91477.stderr similarity index 100% rename from src/test/ui/generator/issue-91477.stderr rename to tests/ui/generator/issue-91477.stderr diff --git a/src/test/ui/generator/issue-93161.rs b/tests/ui/generator/issue-93161.rs similarity index 100% rename from src/test/ui/generator/issue-93161.rs rename to tests/ui/generator/issue-93161.rs diff --git a/src/test/ui/generator/iterator-count.rs b/tests/ui/generator/iterator-count.rs similarity index 100% rename from src/test/ui/generator/iterator-count.rs rename to tests/ui/generator/iterator-count.rs diff --git a/src/test/ui/generator/layout-error.rs b/tests/ui/generator/layout-error.rs similarity index 100% rename from src/test/ui/generator/layout-error.rs rename to tests/ui/generator/layout-error.rs diff --git a/src/test/ui/generator/layout-error.stderr b/tests/ui/generator/layout-error.stderr similarity index 100% rename from src/test/ui/generator/layout-error.stderr rename to tests/ui/generator/layout-error.stderr diff --git a/src/test/ui/generator/live-upvar-across-yield.rs b/tests/ui/generator/live-upvar-across-yield.rs similarity index 100% rename from src/test/ui/generator/live-upvar-across-yield.rs rename to tests/ui/generator/live-upvar-across-yield.rs diff --git a/src/test/ui/generator/match-bindings.rs b/tests/ui/generator/match-bindings.rs similarity index 100% rename from src/test/ui/generator/match-bindings.rs rename to tests/ui/generator/match-bindings.rs diff --git a/src/test/ui/generator/match-bindings.stderr b/tests/ui/generator/match-bindings.stderr similarity index 100% rename from src/test/ui/generator/match-bindings.stderr rename to tests/ui/generator/match-bindings.stderr diff --git a/src/test/ui/generator/metadata-sufficient-for-layout.rs b/tests/ui/generator/metadata-sufficient-for-layout.rs similarity index 100% rename from src/test/ui/generator/metadata-sufficient-for-layout.rs rename to tests/ui/generator/metadata-sufficient-for-layout.rs diff --git a/src/test/ui/generator/metadata-sufficient-for-layout.stderr b/tests/ui/generator/metadata-sufficient-for-layout.stderr similarity index 100% rename from src/test/ui/generator/metadata-sufficient-for-layout.stderr rename to tests/ui/generator/metadata-sufficient-for-layout.stderr diff --git a/src/test/ui/generator/nested_generators.rs b/tests/ui/generator/nested_generators.rs similarity index 100% rename from src/test/ui/generator/nested_generators.rs rename to tests/ui/generator/nested_generators.rs diff --git a/src/test/ui/generator/niche-in-generator.rs b/tests/ui/generator/niche-in-generator.rs similarity index 100% rename from src/test/ui/generator/niche-in-generator.rs rename to tests/ui/generator/niche-in-generator.rs diff --git a/src/test/ui/generator/non-static-is-unpin.rs b/tests/ui/generator/non-static-is-unpin.rs similarity index 100% rename from src/test/ui/generator/non-static-is-unpin.rs rename to tests/ui/generator/non-static-is-unpin.rs diff --git a/src/test/ui/generator/not-send-sync.rs b/tests/ui/generator/not-send-sync.rs similarity index 100% rename from src/test/ui/generator/not-send-sync.rs rename to tests/ui/generator/not-send-sync.rs diff --git a/src/test/ui/generator/not-send-sync.stderr b/tests/ui/generator/not-send-sync.stderr similarity index 100% rename from src/test/ui/generator/not-send-sync.stderr rename to tests/ui/generator/not-send-sync.stderr diff --git a/src/test/ui/generator/overlap-locals.rs b/tests/ui/generator/overlap-locals.rs similarity index 100% rename from src/test/ui/generator/overlap-locals.rs rename to tests/ui/generator/overlap-locals.rs diff --git a/src/test/ui/generator/panic-drops-resume.rs b/tests/ui/generator/panic-drops-resume.rs similarity index 100% rename from src/test/ui/generator/panic-drops-resume.rs rename to tests/ui/generator/panic-drops-resume.rs diff --git a/src/test/ui/generator/panic-drops.rs b/tests/ui/generator/panic-drops.rs similarity index 100% rename from src/test/ui/generator/panic-drops.rs rename to tests/ui/generator/panic-drops.rs diff --git a/src/test/ui/generator/panic-safe.rs b/tests/ui/generator/panic-safe.rs similarity index 100% rename from src/test/ui/generator/panic-safe.rs rename to tests/ui/generator/panic-safe.rs diff --git a/src/test/ui/generator/partial-drop.rs b/tests/ui/generator/partial-drop.rs similarity index 100% rename from src/test/ui/generator/partial-drop.rs rename to tests/ui/generator/partial-drop.rs diff --git a/src/test/ui/generator/partial-drop.stderr b/tests/ui/generator/partial-drop.stderr similarity index 100% rename from src/test/ui/generator/partial-drop.stderr rename to tests/ui/generator/partial-drop.stderr diff --git a/src/test/ui/generator/partial-initialization-across-yield.rs b/tests/ui/generator/partial-initialization-across-yield.rs similarity index 100% rename from src/test/ui/generator/partial-initialization-across-yield.rs rename to tests/ui/generator/partial-initialization-across-yield.rs diff --git a/src/test/ui/generator/partial-initialization-across-yield.stderr b/tests/ui/generator/partial-initialization-across-yield.stderr similarity index 100% rename from src/test/ui/generator/partial-initialization-across-yield.stderr rename to tests/ui/generator/partial-initialization-across-yield.stderr diff --git a/src/test/ui/generator/pattern-borrow.rs b/tests/ui/generator/pattern-borrow.rs similarity index 100% rename from src/test/ui/generator/pattern-borrow.rs rename to tests/ui/generator/pattern-borrow.rs diff --git a/src/test/ui/generator/pattern-borrow.stderr b/tests/ui/generator/pattern-borrow.stderr similarity index 100% rename from src/test/ui/generator/pattern-borrow.stderr rename to tests/ui/generator/pattern-borrow.stderr diff --git a/src/test/ui/generator/pin-box-generator.rs b/tests/ui/generator/pin-box-generator.rs similarity index 100% rename from src/test/ui/generator/pin-box-generator.rs rename to tests/ui/generator/pin-box-generator.rs diff --git a/src/test/ui/generator/print/generator-print-verbose-1.rs b/tests/ui/generator/print/generator-print-verbose-1.rs similarity index 96% rename from src/test/ui/generator/print/generator-print-verbose-1.rs rename to tests/ui/generator/print/generator-print-verbose-1.rs index fe0687722b0b9..89124ad7289ac 100644 --- a/src/test/ui/generator/print/generator-print-verbose-1.rs +++ b/tests/ui/generator/print/generator-print-verbose-1.rs @@ -1,6 +1,6 @@ // compile-flags: -Zverbose -// Same as: src/test/ui/generator/issue-68112.stderr +// Same as: tests/ui/generator/issue-68112.stderr #![feature(generators, generator_trait)] diff --git a/src/test/ui/generator/print/generator-print-verbose-1.stderr b/tests/ui/generator/print/generator-print-verbose-1.stderr similarity index 100% rename from src/test/ui/generator/print/generator-print-verbose-1.stderr rename to tests/ui/generator/print/generator-print-verbose-1.stderr diff --git a/src/test/ui/generator/print/generator-print-verbose-2.rs b/tests/ui/generator/print/generator-print-verbose-2.rs similarity index 100% rename from src/test/ui/generator/print/generator-print-verbose-2.rs rename to tests/ui/generator/print/generator-print-verbose-2.rs diff --git a/src/test/ui/generator/print/generator-print-verbose-2.stderr b/tests/ui/generator/print/generator-print-verbose-2.stderr similarity index 100% rename from src/test/ui/generator/print/generator-print-verbose-2.stderr rename to tests/ui/generator/print/generator-print-verbose-2.stderr diff --git a/src/test/ui/generator/print/generator-print-verbose-3.rs b/tests/ui/generator/print/generator-print-verbose-3.rs similarity index 100% rename from src/test/ui/generator/print/generator-print-verbose-3.rs rename to tests/ui/generator/print/generator-print-verbose-3.rs diff --git a/src/test/ui/generator/print/generator-print-verbose-3.stderr b/tests/ui/generator/print/generator-print-verbose-3.stderr similarity index 100% rename from src/test/ui/generator/print/generator-print-verbose-3.stderr rename to tests/ui/generator/print/generator-print-verbose-3.stderr diff --git a/src/test/ui/generator/reborrow-mut-upvar.rs b/tests/ui/generator/reborrow-mut-upvar.rs similarity index 100% rename from src/test/ui/generator/reborrow-mut-upvar.rs rename to tests/ui/generator/reborrow-mut-upvar.rs diff --git a/src/test/ui/generator/reborrow-mut-upvar.stderr b/tests/ui/generator/reborrow-mut-upvar.stderr similarity index 100% rename from src/test/ui/generator/reborrow-mut-upvar.stderr rename to tests/ui/generator/reborrow-mut-upvar.stderr diff --git a/src/test/ui/generator/ref-escapes-but-not-over-yield.rs b/tests/ui/generator/ref-escapes-but-not-over-yield.rs similarity index 100% rename from src/test/ui/generator/ref-escapes-but-not-over-yield.rs rename to tests/ui/generator/ref-escapes-but-not-over-yield.rs diff --git a/src/test/ui/generator/ref-escapes-but-not-over-yield.stderr b/tests/ui/generator/ref-escapes-but-not-over-yield.stderr similarity index 100% rename from src/test/ui/generator/ref-escapes-but-not-over-yield.stderr rename to tests/ui/generator/ref-escapes-but-not-over-yield.stderr diff --git a/src/test/ui/generator/ref-upvar-not-send.rs b/tests/ui/generator/ref-upvar-not-send.rs similarity index 100% rename from src/test/ui/generator/ref-upvar-not-send.rs rename to tests/ui/generator/ref-upvar-not-send.rs diff --git a/src/test/ui/generator/ref-upvar-not-send.stderr b/tests/ui/generator/ref-upvar-not-send.stderr similarity index 100% rename from src/test/ui/generator/ref-upvar-not-send.stderr rename to tests/ui/generator/ref-upvar-not-send.stderr diff --git a/src/test/ui/generator/reinit-in-match-guard.rs b/tests/ui/generator/reinit-in-match-guard.rs similarity index 100% rename from src/test/ui/generator/reinit-in-match-guard.rs rename to tests/ui/generator/reinit-in-match-guard.rs diff --git a/src/test/ui/generator/resume-after-return.rs b/tests/ui/generator/resume-after-return.rs similarity index 100% rename from src/test/ui/generator/resume-after-return.rs rename to tests/ui/generator/resume-after-return.rs diff --git a/src/test/ui/generator/resume-arg-late-bound.rs b/tests/ui/generator/resume-arg-late-bound.rs similarity index 100% rename from src/test/ui/generator/resume-arg-late-bound.rs rename to tests/ui/generator/resume-arg-late-bound.rs diff --git a/src/test/ui/generator/resume-arg-late-bound.stderr b/tests/ui/generator/resume-arg-late-bound.stderr similarity index 100% rename from src/test/ui/generator/resume-arg-late-bound.stderr rename to tests/ui/generator/resume-arg-late-bound.stderr diff --git a/src/test/ui/generator/resume-arg-size.rs b/tests/ui/generator/resume-arg-size.rs similarity index 100% rename from src/test/ui/generator/resume-arg-size.rs rename to tests/ui/generator/resume-arg-size.rs diff --git a/src/test/ui/generator/resume-live-across-yield.rs b/tests/ui/generator/resume-live-across-yield.rs similarity index 100% rename from src/test/ui/generator/resume-live-across-yield.rs rename to tests/ui/generator/resume-live-across-yield.rs diff --git a/src/test/ui/generator/retain-resume-ref.rs b/tests/ui/generator/retain-resume-ref.rs similarity index 100% rename from src/test/ui/generator/retain-resume-ref.rs rename to tests/ui/generator/retain-resume-ref.rs diff --git a/src/test/ui/generator/retain-resume-ref.stderr b/tests/ui/generator/retain-resume-ref.stderr similarity index 100% rename from src/test/ui/generator/retain-resume-ref.stderr rename to tests/ui/generator/retain-resume-ref.stderr diff --git a/src/test/ui/generator/size-moved-locals.rs b/tests/ui/generator/size-moved-locals.rs similarity index 100% rename from src/test/ui/generator/size-moved-locals.rs rename to tests/ui/generator/size-moved-locals.rs diff --git a/src/test/ui/generator/sized-yield.rs b/tests/ui/generator/sized-yield.rs similarity index 100% rename from src/test/ui/generator/sized-yield.rs rename to tests/ui/generator/sized-yield.rs diff --git a/src/test/ui/generator/sized-yield.stderr b/tests/ui/generator/sized-yield.stderr similarity index 100% rename from src/test/ui/generator/sized-yield.stderr rename to tests/ui/generator/sized-yield.stderr diff --git a/src/test/ui/generator/smoke-resume-args.rs b/tests/ui/generator/smoke-resume-args.rs similarity index 100% rename from src/test/ui/generator/smoke-resume-args.rs rename to tests/ui/generator/smoke-resume-args.rs diff --git a/src/test/ui/generator/smoke.rs b/tests/ui/generator/smoke.rs similarity index 100% rename from src/test/ui/generator/smoke.rs rename to tests/ui/generator/smoke.rs diff --git a/src/test/ui/generator/static-generators.rs b/tests/ui/generator/static-generators.rs similarity index 100% rename from src/test/ui/generator/static-generators.rs rename to tests/ui/generator/static-generators.rs diff --git a/src/test/ui/generator/static-mut-reference-across-yield.rs b/tests/ui/generator/static-mut-reference-across-yield.rs similarity index 100% rename from src/test/ui/generator/static-mut-reference-across-yield.rs rename to tests/ui/generator/static-mut-reference-across-yield.rs diff --git a/src/test/ui/generator/static-not-unpin.rs b/tests/ui/generator/static-not-unpin.rs similarity index 100% rename from src/test/ui/generator/static-not-unpin.rs rename to tests/ui/generator/static-not-unpin.rs diff --git a/src/test/ui/generator/static-not-unpin.stderr b/tests/ui/generator/static-not-unpin.stderr similarity index 100% rename from src/test/ui/generator/static-not-unpin.stderr rename to tests/ui/generator/static-not-unpin.stderr diff --git a/src/test/ui/generator/static-reference-across-yield.rs b/tests/ui/generator/static-reference-across-yield.rs similarity index 100% rename from src/test/ui/generator/static-reference-across-yield.rs rename to tests/ui/generator/static-reference-across-yield.rs diff --git a/src/test/ui/generator/too-live-local-in-immovable-gen.rs b/tests/ui/generator/too-live-local-in-immovable-gen.rs similarity index 100% rename from src/test/ui/generator/too-live-local-in-immovable-gen.rs rename to tests/ui/generator/too-live-local-in-immovable-gen.rs diff --git a/src/test/ui/generator/too-live-local-in-immovable-gen.stderr b/tests/ui/generator/too-live-local-in-immovable-gen.stderr similarity index 100% rename from src/test/ui/generator/too-live-local-in-immovable-gen.stderr rename to tests/ui/generator/too-live-local-in-immovable-gen.stderr diff --git a/src/test/ui/generator/too-many-parameters.rs b/tests/ui/generator/too-many-parameters.rs similarity index 100% rename from src/test/ui/generator/too-many-parameters.rs rename to tests/ui/generator/too-many-parameters.rs diff --git a/src/test/ui/generator/too-many-parameters.stderr b/tests/ui/generator/too-many-parameters.stderr similarity index 100% rename from src/test/ui/generator/too-many-parameters.stderr rename to tests/ui/generator/too-many-parameters.stderr diff --git a/src/test/ui/generator/type-mismatch-error.rs b/tests/ui/generator/type-mismatch-error.rs similarity index 100% rename from src/test/ui/generator/type-mismatch-error.rs rename to tests/ui/generator/type-mismatch-error.rs diff --git a/src/test/ui/generator/type-mismatch-error.stderr b/tests/ui/generator/type-mismatch-error.stderr similarity index 100% rename from src/test/ui/generator/type-mismatch-error.stderr rename to tests/ui/generator/type-mismatch-error.stderr diff --git a/src/test/ui/generator/type-mismatch-signature-deduction.rs b/tests/ui/generator/type-mismatch-signature-deduction.rs similarity index 100% rename from src/test/ui/generator/type-mismatch-signature-deduction.rs rename to tests/ui/generator/type-mismatch-signature-deduction.rs diff --git a/src/test/ui/generator/type-mismatch-signature-deduction.stderr b/tests/ui/generator/type-mismatch-signature-deduction.stderr similarity index 100% rename from src/test/ui/generator/type-mismatch-signature-deduction.stderr rename to tests/ui/generator/type-mismatch-signature-deduction.stderr diff --git a/src/test/ui/generator/unresolved-ct-var-drop-tracking.rs b/tests/ui/generator/unresolved-ct-var-drop-tracking.rs similarity index 100% rename from src/test/ui/generator/unresolved-ct-var-drop-tracking.rs rename to tests/ui/generator/unresolved-ct-var-drop-tracking.rs diff --git a/src/test/ui/generator/unresolved-ct-var-drop-tracking.stderr b/tests/ui/generator/unresolved-ct-var-drop-tracking.stderr similarity index 100% rename from src/test/ui/generator/unresolved-ct-var-drop-tracking.stderr rename to tests/ui/generator/unresolved-ct-var-drop-tracking.stderr diff --git a/src/test/ui/generator/unresolved-ct-var.rs b/tests/ui/generator/unresolved-ct-var.rs similarity index 100% rename from src/test/ui/generator/unresolved-ct-var.rs rename to tests/ui/generator/unresolved-ct-var.rs diff --git a/src/test/ui/generator/unresolved-ct-var.stderr b/tests/ui/generator/unresolved-ct-var.stderr similarity index 100% rename from src/test/ui/generator/unresolved-ct-var.stderr rename to tests/ui/generator/unresolved-ct-var.stderr diff --git a/src/test/ui/generator/xcrate-reachable.rs b/tests/ui/generator/xcrate-reachable.rs similarity index 100% rename from src/test/ui/generator/xcrate-reachable.rs rename to tests/ui/generator/xcrate-reachable.rs diff --git a/src/test/ui/generator/xcrate.rs b/tests/ui/generator/xcrate.rs similarity index 100% rename from src/test/ui/generator/xcrate.rs rename to tests/ui/generator/xcrate.rs diff --git a/src/test/ui/generator/yield-in-args-rev.rs b/tests/ui/generator/yield-in-args-rev.rs similarity index 100% rename from src/test/ui/generator/yield-in-args-rev.rs rename to tests/ui/generator/yield-in-args-rev.rs diff --git a/src/test/ui/generator/yield-in-args-rev.stderr b/tests/ui/generator/yield-in-args-rev.stderr similarity index 100% rename from src/test/ui/generator/yield-in-args-rev.stderr rename to tests/ui/generator/yield-in-args-rev.stderr diff --git a/src/test/ui/generator/yield-in-args.rs b/tests/ui/generator/yield-in-args.rs similarity index 100% rename from src/test/ui/generator/yield-in-args.rs rename to tests/ui/generator/yield-in-args.rs diff --git a/src/test/ui/generator/yield-in-args.stderr b/tests/ui/generator/yield-in-args.stderr similarity index 100% rename from src/test/ui/generator/yield-in-args.stderr rename to tests/ui/generator/yield-in-args.stderr diff --git a/src/test/ui/generator/yield-in-box.rs b/tests/ui/generator/yield-in-box.rs similarity index 100% rename from src/test/ui/generator/yield-in-box.rs rename to tests/ui/generator/yield-in-box.rs diff --git a/src/test/ui/generator/yield-in-box.stderr b/tests/ui/generator/yield-in-box.stderr similarity index 100% rename from src/test/ui/generator/yield-in-box.stderr rename to tests/ui/generator/yield-in-box.stderr diff --git a/src/test/ui/generator/yield-in-const.rs b/tests/ui/generator/yield-in-const.rs similarity index 100% rename from src/test/ui/generator/yield-in-const.rs rename to tests/ui/generator/yield-in-const.rs diff --git a/src/test/ui/generator/yield-in-const.stderr b/tests/ui/generator/yield-in-const.stderr similarity index 100% rename from src/test/ui/generator/yield-in-const.stderr rename to tests/ui/generator/yield-in-const.stderr diff --git a/src/test/ui/generator/yield-in-function.rs b/tests/ui/generator/yield-in-function.rs similarity index 100% rename from src/test/ui/generator/yield-in-function.rs rename to tests/ui/generator/yield-in-function.rs diff --git a/src/test/ui/generator/yield-in-function.stderr b/tests/ui/generator/yield-in-function.stderr similarity index 100% rename from src/test/ui/generator/yield-in-function.stderr rename to tests/ui/generator/yield-in-function.stderr diff --git a/src/test/ui/generator/yield-in-initializer.rs b/tests/ui/generator/yield-in-initializer.rs similarity index 100% rename from src/test/ui/generator/yield-in-initializer.rs rename to tests/ui/generator/yield-in-initializer.rs diff --git a/src/test/ui/generator/yield-in-initializer.stderr b/tests/ui/generator/yield-in-initializer.stderr similarity index 100% rename from src/test/ui/generator/yield-in-initializer.stderr rename to tests/ui/generator/yield-in-initializer.stderr diff --git a/src/test/ui/generator/yield-in-static.rs b/tests/ui/generator/yield-in-static.rs similarity index 100% rename from src/test/ui/generator/yield-in-static.rs rename to tests/ui/generator/yield-in-static.rs diff --git a/src/test/ui/generator/yield-in-static.stderr b/tests/ui/generator/yield-in-static.stderr similarity index 100% rename from src/test/ui/generator/yield-in-static.stderr rename to tests/ui/generator/yield-in-static.stderr diff --git a/src/test/ui/generator/yield-outside-generator-issue-78653.rs b/tests/ui/generator/yield-outside-generator-issue-78653.rs similarity index 100% rename from src/test/ui/generator/yield-outside-generator-issue-78653.rs rename to tests/ui/generator/yield-outside-generator-issue-78653.rs diff --git a/src/test/ui/generator/yield-outside-generator-issue-78653.stderr b/tests/ui/generator/yield-outside-generator-issue-78653.stderr similarity index 100% rename from src/test/ui/generator/yield-outside-generator-issue-78653.stderr rename to tests/ui/generator/yield-outside-generator-issue-78653.stderr diff --git a/src/test/ui/generator/yield-subtype.rs b/tests/ui/generator/yield-subtype.rs similarity index 100% rename from src/test/ui/generator/yield-subtype.rs rename to tests/ui/generator/yield-subtype.rs diff --git a/src/test/ui/generator/yield-subtype.stderr b/tests/ui/generator/yield-subtype.stderr similarity index 100% rename from src/test/ui/generator/yield-subtype.stderr rename to tests/ui/generator/yield-subtype.stderr diff --git a/src/test/ui/generator/yield-while-iterating.rs b/tests/ui/generator/yield-while-iterating.rs similarity index 100% rename from src/test/ui/generator/yield-while-iterating.rs rename to tests/ui/generator/yield-while-iterating.rs diff --git a/src/test/ui/generator/yield-while-iterating.stderr b/tests/ui/generator/yield-while-iterating.stderr similarity index 100% rename from src/test/ui/generator/yield-while-iterating.stderr rename to tests/ui/generator/yield-while-iterating.stderr diff --git a/src/test/ui/generator/yield-while-local-borrowed.rs b/tests/ui/generator/yield-while-local-borrowed.rs similarity index 100% rename from src/test/ui/generator/yield-while-local-borrowed.rs rename to tests/ui/generator/yield-while-local-borrowed.rs diff --git a/src/test/ui/generator/yield-while-local-borrowed.stderr b/tests/ui/generator/yield-while-local-borrowed.stderr similarity index 100% rename from src/test/ui/generator/yield-while-local-borrowed.stderr rename to tests/ui/generator/yield-while-local-borrowed.stderr diff --git a/src/test/ui/generator/yield-while-ref-reborrowed.rs b/tests/ui/generator/yield-while-ref-reborrowed.rs similarity index 100% rename from src/test/ui/generator/yield-while-ref-reborrowed.rs rename to tests/ui/generator/yield-while-ref-reborrowed.rs diff --git a/src/test/ui/generator/yield-while-ref-reborrowed.stderr b/tests/ui/generator/yield-while-ref-reborrowed.stderr similarity index 100% rename from src/test/ui/generator/yield-while-ref-reborrowed.stderr rename to tests/ui/generator/yield-while-ref-reborrowed.stderr diff --git a/src/test/ui/generator/yielding-in-match-guards.rs b/tests/ui/generator/yielding-in-match-guards.rs similarity index 100% rename from src/test/ui/generator/yielding-in-match-guards.rs rename to tests/ui/generator/yielding-in-match-guards.rs diff --git a/src/test/ui/generic-associated-types/anonymize-bound-vars.rs b/tests/ui/generic-associated-types/anonymize-bound-vars.rs similarity index 100% rename from src/test/ui/generic-associated-types/anonymize-bound-vars.rs rename to tests/ui/generic-associated-types/anonymize-bound-vars.rs diff --git a/src/test/ui/generic-associated-types/auxiliary/foo_defn.rs b/tests/ui/generic-associated-types/auxiliary/foo_defn.rs similarity index 100% rename from src/test/ui/generic-associated-types/auxiliary/foo_defn.rs rename to tests/ui/generic-associated-types/auxiliary/foo_defn.rs diff --git a/src/test/ui/generic-associated-types/bugs/hrtb-implied-1.rs b/tests/ui/generic-associated-types/bugs/hrtb-implied-1.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/hrtb-implied-1.rs rename to tests/ui/generic-associated-types/bugs/hrtb-implied-1.rs diff --git a/src/test/ui/generic-associated-types/bugs/hrtb-implied-1.stderr b/tests/ui/generic-associated-types/bugs/hrtb-implied-1.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/hrtb-implied-1.stderr rename to tests/ui/generic-associated-types/bugs/hrtb-implied-1.stderr diff --git a/src/test/ui/generic-associated-types/bugs/hrtb-implied-2.rs b/tests/ui/generic-associated-types/bugs/hrtb-implied-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/hrtb-implied-2.rs rename to tests/ui/generic-associated-types/bugs/hrtb-implied-2.rs diff --git a/src/test/ui/generic-associated-types/bugs/hrtb-implied-2.stderr b/tests/ui/generic-associated-types/bugs/hrtb-implied-2.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/hrtb-implied-2.stderr rename to tests/ui/generic-associated-types/bugs/hrtb-implied-2.stderr diff --git a/src/test/ui/generic-associated-types/bugs/hrtb-implied-3.rs b/tests/ui/generic-associated-types/bugs/hrtb-implied-3.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/hrtb-implied-3.rs rename to tests/ui/generic-associated-types/bugs/hrtb-implied-3.rs diff --git a/src/test/ui/generic-associated-types/bugs/hrtb-implied-3.stderr b/tests/ui/generic-associated-types/bugs/hrtb-implied-3.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/hrtb-implied-3.stderr rename to tests/ui/generic-associated-types/bugs/hrtb-implied-3.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-100013.rs b/tests/ui/generic-associated-types/bugs/issue-100013.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-100013.rs rename to tests/ui/generic-associated-types/bugs/issue-100013.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-100013.stderr b/tests/ui/generic-associated-types/bugs/issue-100013.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-100013.stderr rename to tests/ui/generic-associated-types/bugs/issue-100013.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-80626.rs b/tests/ui/generic-associated-types/bugs/issue-80626.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-80626.rs rename to tests/ui/generic-associated-types/bugs/issue-80626.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-87735.rs b/tests/ui/generic-associated-types/bugs/issue-87735.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-87735.rs rename to tests/ui/generic-associated-types/bugs/issue-87735.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-87735.stderr b/tests/ui/generic-associated-types/bugs/issue-87735.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-87735.stderr rename to tests/ui/generic-associated-types/bugs/issue-87735.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-87755.rs b/tests/ui/generic-associated-types/bugs/issue-87755.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-87755.rs rename to tests/ui/generic-associated-types/bugs/issue-87755.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-87755.stderr b/tests/ui/generic-associated-types/bugs/issue-87755.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-87755.stderr rename to tests/ui/generic-associated-types/bugs/issue-87755.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-87803.rs b/tests/ui/generic-associated-types/bugs/issue-87803.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-87803.rs rename to tests/ui/generic-associated-types/bugs/issue-87803.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-87803.stderr b/tests/ui/generic-associated-types/bugs/issue-87803.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-87803.stderr rename to tests/ui/generic-associated-types/bugs/issue-87803.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-88382.rs b/tests/ui/generic-associated-types/bugs/issue-88382.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-88382.rs rename to tests/ui/generic-associated-types/bugs/issue-88382.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-88382.stderr b/tests/ui/generic-associated-types/bugs/issue-88382.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-88382.stderr rename to tests/ui/generic-associated-types/bugs/issue-88382.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-88460.rs b/tests/ui/generic-associated-types/bugs/issue-88460.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-88460.rs rename to tests/ui/generic-associated-types/bugs/issue-88460.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-88460.stderr b/tests/ui/generic-associated-types/bugs/issue-88460.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-88460.stderr rename to tests/ui/generic-associated-types/bugs/issue-88460.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-88526.rs b/tests/ui/generic-associated-types/bugs/issue-88526.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-88526.rs rename to tests/ui/generic-associated-types/bugs/issue-88526.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-88526.stderr b/tests/ui/generic-associated-types/bugs/issue-88526.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-88526.stderr rename to tests/ui/generic-associated-types/bugs/issue-88526.stderr diff --git a/src/test/ui/generic-associated-types/bugs/issue-91762.rs b/tests/ui/generic-associated-types/bugs/issue-91762.rs similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-91762.rs rename to tests/ui/generic-associated-types/bugs/issue-91762.rs diff --git a/src/test/ui/generic-associated-types/bugs/issue-91762.stderr b/tests/ui/generic-associated-types/bugs/issue-91762.stderr similarity index 100% rename from src/test/ui/generic-associated-types/bugs/issue-91762.stderr rename to tests/ui/generic-associated-types/bugs/issue-91762.stderr diff --git a/src/test/ui/generic-associated-types/collections-project-default.rs b/tests/ui/generic-associated-types/collections-project-default.rs similarity index 100% rename from src/test/ui/generic-associated-types/collections-project-default.rs rename to tests/ui/generic-associated-types/collections-project-default.rs diff --git a/src/test/ui/generic-associated-types/collections-project-default.stderr b/tests/ui/generic-associated-types/collections-project-default.stderr similarity index 100% rename from src/test/ui/generic-associated-types/collections-project-default.stderr rename to tests/ui/generic-associated-types/collections-project-default.stderr diff --git a/src/test/ui/generic-associated-types/collections.rs b/tests/ui/generic-associated-types/collections.rs similarity index 100% rename from src/test/ui/generic-associated-types/collections.rs rename to tests/ui/generic-associated-types/collections.rs diff --git a/src/test/ui/generic-associated-types/collectivity-regression.rs b/tests/ui/generic-associated-types/collectivity-regression.rs similarity index 100% rename from src/test/ui/generic-associated-types/collectivity-regression.rs rename to tests/ui/generic-associated-types/collectivity-regression.rs diff --git a/src/test/ui/generic-associated-types/collectivity-regression.stderr b/tests/ui/generic-associated-types/collectivity-regression.stderr similarity index 100% rename from src/test/ui/generic-associated-types/collectivity-regression.stderr rename to tests/ui/generic-associated-types/collectivity-regression.stderr diff --git a/src/test/ui/generic-associated-types/const-generics-gat-in-trait-return-type-1.rs b/tests/ui/generic-associated-types/const-generics-gat-in-trait-return-type-1.rs similarity index 100% rename from src/test/ui/generic-associated-types/const-generics-gat-in-trait-return-type-1.rs rename to tests/ui/generic-associated-types/const-generics-gat-in-trait-return-type-1.rs diff --git a/src/test/ui/generic-associated-types/const-generics-gat-in-trait-return-type-2.rs b/tests/ui/generic-associated-types/const-generics-gat-in-trait-return-type-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/const-generics-gat-in-trait-return-type-2.rs rename to tests/ui/generic-associated-types/const-generics-gat-in-trait-return-type-2.rs diff --git a/src/test/ui/generic-associated-types/const-generics-gat-in-trait-return-type-3.rs b/tests/ui/generic-associated-types/const-generics-gat-in-trait-return-type-3.rs similarity index 100% rename from src/test/ui/generic-associated-types/const-generics-gat-in-trait-return-type-3.rs rename to tests/ui/generic-associated-types/const-generics-gat-in-trait-return-type-3.rs diff --git a/src/test/ui/generic-associated-types/const_params_have_right_type.rs b/tests/ui/generic-associated-types/const_params_have_right_type.rs similarity index 100% rename from src/test/ui/generic-associated-types/const_params_have_right_type.rs rename to tests/ui/generic-associated-types/const_params_have_right_type.rs diff --git a/src/test/ui/generic-associated-types/const_params_have_right_type.stderr b/tests/ui/generic-associated-types/const_params_have_right_type.stderr similarity index 100% rename from src/test/ui/generic-associated-types/const_params_have_right_type.stderr rename to tests/ui/generic-associated-types/const_params_have_right_type.stderr diff --git a/src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.rs b/tests/ui/generic-associated-types/constraint-assoc-type-suggestion.rs similarity index 100% rename from src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.rs rename to tests/ui/generic-associated-types/constraint-assoc-type-suggestion.rs diff --git a/src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr b/tests/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr similarity index 100% rename from src/test/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr rename to tests/ui/generic-associated-types/constraint-assoc-type-suggestion.stderr diff --git a/src/test/ui/generic-associated-types/construct_with_other_type.rs b/tests/ui/generic-associated-types/construct_with_other_type.rs similarity index 100% rename from src/test/ui/generic-associated-types/construct_with_other_type.rs rename to tests/ui/generic-associated-types/construct_with_other_type.rs diff --git a/src/test/ui/generic-associated-types/cross-crate-bounds.rs b/tests/ui/generic-associated-types/cross-crate-bounds.rs similarity index 100% rename from src/test/ui/generic-associated-types/cross-crate-bounds.rs rename to tests/ui/generic-associated-types/cross-crate-bounds.rs diff --git a/src/test/ui/generic-associated-types/cross-crate-bounds.stderr b/tests/ui/generic-associated-types/cross-crate-bounds.stderr similarity index 100% rename from src/test/ui/generic-associated-types/cross-crate-bounds.stderr rename to tests/ui/generic-associated-types/cross-crate-bounds.stderr diff --git a/src/test/ui/generic-associated-types/elided-in-expr-position.rs b/tests/ui/generic-associated-types/elided-in-expr-position.rs similarity index 100% rename from src/test/ui/generic-associated-types/elided-in-expr-position.rs rename to tests/ui/generic-associated-types/elided-in-expr-position.rs diff --git a/src/test/ui/generic-associated-types/elided-in-expr-position.stderr b/tests/ui/generic-associated-types/elided-in-expr-position.stderr similarity index 100% rename from src/test/ui/generic-associated-types/elided-in-expr-position.stderr rename to tests/ui/generic-associated-types/elided-in-expr-position.stderr diff --git a/src/test/ui/generic-associated-types/empty_generics.rs b/tests/ui/generic-associated-types/empty_generics.rs similarity index 100% rename from src/test/ui/generic-associated-types/empty_generics.rs rename to tests/ui/generic-associated-types/empty_generics.rs diff --git a/src/test/ui/generic-associated-types/empty_generics.stderr b/tests/ui/generic-associated-types/empty_generics.stderr similarity index 100% rename from src/test/ui/generic-associated-types/empty_generics.stderr rename to tests/ui/generic-associated-types/empty_generics.stderr diff --git a/src/test/ui/generic-associated-types/equality-bound.rs b/tests/ui/generic-associated-types/equality-bound.rs similarity index 100% rename from src/test/ui/generic-associated-types/equality-bound.rs rename to tests/ui/generic-associated-types/equality-bound.rs diff --git a/src/test/ui/generic-associated-types/equality-bound.stderr b/tests/ui/generic-associated-types/equality-bound.stderr similarity index 100% rename from src/test/ui/generic-associated-types/equality-bound.stderr rename to tests/ui/generic-associated-types/equality-bound.stderr diff --git a/src/test/ui/generic-associated-types/extended/lending_iterator.base.stderr b/tests/ui/generic-associated-types/extended/lending_iterator.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/extended/lending_iterator.base.stderr rename to tests/ui/generic-associated-types/extended/lending_iterator.base.stderr diff --git a/src/test/ui/generic-associated-types/extended/lending_iterator.rs b/tests/ui/generic-associated-types/extended/lending_iterator.rs similarity index 100% rename from src/test/ui/generic-associated-types/extended/lending_iterator.rs rename to tests/ui/generic-associated-types/extended/lending_iterator.rs diff --git a/src/test/ui/generic-associated-types/extended/lending_iterator_2.base.stderr b/tests/ui/generic-associated-types/extended/lending_iterator_2.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/extended/lending_iterator_2.base.stderr rename to tests/ui/generic-associated-types/extended/lending_iterator_2.base.stderr diff --git a/src/test/ui/generic-associated-types/extended/lending_iterator_2.rs b/tests/ui/generic-associated-types/extended/lending_iterator_2.rs similarity index 100% rename from src/test/ui/generic-associated-types/extended/lending_iterator_2.rs rename to tests/ui/generic-associated-types/extended/lending_iterator_2.rs diff --git a/src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs b/tests/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs similarity index 100% rename from src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs rename to tests/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs diff --git a/src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.stderr b/tests/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.stderr similarity index 100% rename from src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.stderr rename to tests/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.stderr diff --git a/src/test/ui/generic-associated-types/gat-in-trait-path.base.stderr b/tests/ui/generic-associated-types/gat-in-trait-path.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/gat-in-trait-path.base.stderr rename to tests/ui/generic-associated-types/gat-in-trait-path.base.stderr diff --git a/src/test/ui/generic-associated-types/gat-in-trait-path.rs b/tests/ui/generic-associated-types/gat-in-trait-path.rs similarity index 100% rename from src/test/ui/generic-associated-types/gat-in-trait-path.rs rename to tests/ui/generic-associated-types/gat-in-trait-path.rs diff --git a/src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.rs b/tests/ui/generic-associated-types/gat-trait-path-generic-type-arg.rs similarity index 100% rename from src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.rs rename to tests/ui/generic-associated-types/gat-trait-path-generic-type-arg.rs diff --git a/src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.stderr b/tests/ui/generic-associated-types/gat-trait-path-generic-type-arg.stderr similarity index 100% rename from src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.stderr rename to tests/ui/generic-associated-types/gat-trait-path-generic-type-arg.stderr diff --git a/src/test/ui/generic-associated-types/gat-trait-path-missing-lifetime.rs b/tests/ui/generic-associated-types/gat-trait-path-missing-lifetime.rs similarity index 100% rename from src/test/ui/generic-associated-types/gat-trait-path-missing-lifetime.rs rename to tests/ui/generic-associated-types/gat-trait-path-missing-lifetime.rs diff --git a/src/test/ui/generic-associated-types/gat-trait-path-missing-lifetime.stderr b/tests/ui/generic-associated-types/gat-trait-path-missing-lifetime.stderr similarity index 100% rename from src/test/ui/generic-associated-types/gat-trait-path-missing-lifetime.stderr rename to tests/ui/generic-associated-types/gat-trait-path-missing-lifetime.stderr diff --git a/src/test/ui/generic-associated-types/gat-trait-path-parenthesised-args.rs b/tests/ui/generic-associated-types/gat-trait-path-parenthesised-args.rs similarity index 100% rename from src/test/ui/generic-associated-types/gat-trait-path-parenthesised-args.rs rename to tests/ui/generic-associated-types/gat-trait-path-parenthesised-args.rs diff --git a/src/test/ui/generic-associated-types/gat-trait-path-parenthesised-args.stderr b/tests/ui/generic-associated-types/gat-trait-path-parenthesised-args.stderr similarity index 100% rename from src/test/ui/generic-associated-types/gat-trait-path-parenthesised-args.stderr rename to tests/ui/generic-associated-types/gat-trait-path-parenthesised-args.stderr diff --git a/src/test/ui/generic-associated-types/generic-associated-type-bounds.rs b/tests/ui/generic-associated-types/generic-associated-type-bounds.rs similarity index 100% rename from src/test/ui/generic-associated-types/generic-associated-type-bounds.rs rename to tests/ui/generic-associated-types/generic-associated-type-bounds.rs diff --git a/src/test/ui/generic-associated-types/generic-associated-types-where.rs b/tests/ui/generic-associated-types/generic-associated-types-where.rs similarity index 100% rename from src/test/ui/generic-associated-types/generic-associated-types-where.rs rename to tests/ui/generic-associated-types/generic-associated-types-where.rs diff --git a/src/test/ui/generic-associated-types/generic-associated-types-where.stderr b/tests/ui/generic-associated-types/generic-associated-types-where.stderr similarity index 100% rename from src/test/ui/generic-associated-types/generic-associated-types-where.stderr rename to tests/ui/generic-associated-types/generic-associated-types-where.stderr diff --git a/src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs b/tests/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs similarity index 100% rename from src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs rename to tests/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.rs diff --git a/src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.stderr b/tests/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.stderr similarity index 100% rename from src/test/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.stderr rename to tests/ui/generic-associated-types/generic_associated_type_undeclared_lifetimes.stderr diff --git a/src/test/ui/generic-associated-types/impl_bounds.rs b/tests/ui/generic-associated-types/impl_bounds.rs similarity index 100% rename from src/test/ui/generic-associated-types/impl_bounds.rs rename to tests/ui/generic-associated-types/impl_bounds.rs diff --git a/src/test/ui/generic-associated-types/impl_bounds.stderr b/tests/ui/generic-associated-types/impl_bounds.stderr similarity index 100% rename from src/test/ui/generic-associated-types/impl_bounds.stderr rename to tests/ui/generic-associated-types/impl_bounds.stderr diff --git a/src/test/ui/generic-associated-types/impl_bounds_ok.rs b/tests/ui/generic-associated-types/impl_bounds_ok.rs similarity index 100% rename from src/test/ui/generic-associated-types/impl_bounds_ok.rs rename to tests/ui/generic-associated-types/impl_bounds_ok.rs diff --git a/src/test/ui/generic-associated-types/issue-101020.rs b/tests/ui/generic-associated-types/issue-101020.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-101020.rs rename to tests/ui/generic-associated-types/issue-101020.rs diff --git a/src/test/ui/generic-associated-types/issue-101020.stderr b/tests/ui/generic-associated-types/issue-101020.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-101020.stderr rename to tests/ui/generic-associated-types/issue-101020.stderr diff --git a/src/test/ui/generic-associated-types/issue-102114.rs b/tests/ui/generic-associated-types/issue-102114.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-102114.rs rename to tests/ui/generic-associated-types/issue-102114.rs diff --git a/src/test/ui/generic-associated-types/issue-102114.stderr b/tests/ui/generic-associated-types/issue-102114.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-102114.stderr rename to tests/ui/generic-associated-types/issue-102114.stderr diff --git a/src/test/ui/generic-associated-types/issue-102333.rs b/tests/ui/generic-associated-types/issue-102333.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-102333.rs rename to tests/ui/generic-associated-types/issue-102333.rs diff --git a/src/test/ui/generic-associated-types/issue-102335-gat.rs b/tests/ui/generic-associated-types/issue-102335-gat.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-102335-gat.rs rename to tests/ui/generic-associated-types/issue-102335-gat.rs diff --git a/src/test/ui/generic-associated-types/issue-102335-gat.stderr b/tests/ui/generic-associated-types/issue-102335-gat.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-102335-gat.stderr rename to tests/ui/generic-associated-types/issue-102335-gat.stderr diff --git a/src/test/ui/generic-associated-types/issue-47206-where-clause.rs b/tests/ui/generic-associated-types/issue-47206-where-clause.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-47206-where-clause.rs rename to tests/ui/generic-associated-types/issue-47206-where-clause.rs diff --git a/src/test/ui/generic-associated-types/issue-47206-where-clause.stderr b/tests/ui/generic-associated-types/issue-47206-where-clause.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-47206-where-clause.stderr rename to tests/ui/generic-associated-types/issue-47206-where-clause.stderr diff --git a/src/test/ui/generic-associated-types/issue-58694-parameter-out-of-range.rs b/tests/ui/generic-associated-types/issue-58694-parameter-out-of-range.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-58694-parameter-out-of-range.rs rename to tests/ui/generic-associated-types/issue-58694-parameter-out-of-range.rs diff --git a/src/test/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs b/tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs rename to tests/ui/generic-associated-types/issue-62326-parameter-out-of-range.rs diff --git a/src/test/ui/generic-associated-types/issue-67424.rs b/tests/ui/generic-associated-types/issue-67424.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-67424.rs rename to tests/ui/generic-associated-types/issue-67424.rs diff --git a/src/test/ui/generic-associated-types/issue-67510-pass.base.stderr b/tests/ui/generic-associated-types/issue-67510-pass.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-67510-pass.base.stderr rename to tests/ui/generic-associated-types/issue-67510-pass.base.stderr diff --git a/src/test/ui/generic-associated-types/issue-67510-pass.rs b/tests/ui/generic-associated-types/issue-67510-pass.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-67510-pass.rs rename to tests/ui/generic-associated-types/issue-67510-pass.rs diff --git a/src/test/ui/generic-associated-types/issue-67510.rs b/tests/ui/generic-associated-types/issue-67510.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-67510.rs rename to tests/ui/generic-associated-types/issue-67510.rs diff --git a/src/test/ui/generic-associated-types/issue-67510.stderr b/tests/ui/generic-associated-types/issue-67510.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-67510.stderr rename to tests/ui/generic-associated-types/issue-67510.stderr diff --git a/src/test/ui/generic-associated-types/issue-68641-check-gat-bounds.rs b/tests/ui/generic-associated-types/issue-68641-check-gat-bounds.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68641-check-gat-bounds.rs rename to tests/ui/generic-associated-types/issue-68641-check-gat-bounds.rs diff --git a/src/test/ui/generic-associated-types/issue-68641-check-gat-bounds.stderr b/tests/ui/generic-associated-types/issue-68641-check-gat-bounds.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68641-check-gat-bounds.stderr rename to tests/ui/generic-associated-types/issue-68641-check-gat-bounds.stderr diff --git a/src/test/ui/generic-associated-types/issue-68642-broken-llvm-ir.rs b/tests/ui/generic-associated-types/issue-68642-broken-llvm-ir.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68642-broken-llvm-ir.rs rename to tests/ui/generic-associated-types/issue-68642-broken-llvm-ir.rs diff --git a/src/test/ui/generic-associated-types/issue-68642-broken-llvm-ir.stderr b/tests/ui/generic-associated-types/issue-68642-broken-llvm-ir.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68642-broken-llvm-ir.stderr rename to tests/ui/generic-associated-types/issue-68642-broken-llvm-ir.stderr diff --git a/src/test/ui/generic-associated-types/issue-68643-broken-mir.rs b/tests/ui/generic-associated-types/issue-68643-broken-mir.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68643-broken-mir.rs rename to tests/ui/generic-associated-types/issue-68643-broken-mir.rs diff --git a/src/test/ui/generic-associated-types/issue-68643-broken-mir.stderr b/tests/ui/generic-associated-types/issue-68643-broken-mir.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68643-broken-mir.stderr rename to tests/ui/generic-associated-types/issue-68643-broken-mir.stderr diff --git a/src/test/ui/generic-associated-types/issue-68644-codegen-selection.rs b/tests/ui/generic-associated-types/issue-68644-codegen-selection.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68644-codegen-selection.rs rename to tests/ui/generic-associated-types/issue-68644-codegen-selection.rs diff --git a/src/test/ui/generic-associated-types/issue-68644-codegen-selection.stderr b/tests/ui/generic-associated-types/issue-68644-codegen-selection.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68644-codegen-selection.stderr rename to tests/ui/generic-associated-types/issue-68644-codegen-selection.stderr diff --git a/src/test/ui/generic-associated-types/issue-68645-codegen-fulfillment.rs b/tests/ui/generic-associated-types/issue-68645-codegen-fulfillment.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68645-codegen-fulfillment.rs rename to tests/ui/generic-associated-types/issue-68645-codegen-fulfillment.rs diff --git a/src/test/ui/generic-associated-types/issue-68645-codegen-fulfillment.stderr b/tests/ui/generic-associated-types/issue-68645-codegen-fulfillment.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68645-codegen-fulfillment.stderr rename to tests/ui/generic-associated-types/issue-68645-codegen-fulfillment.stderr diff --git a/src/test/ui/generic-associated-types/issue-68648-1.rs b/tests/ui/generic-associated-types/issue-68648-1.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68648-1.rs rename to tests/ui/generic-associated-types/issue-68648-1.rs diff --git a/src/test/ui/generic-associated-types/issue-68648-2.rs b/tests/ui/generic-associated-types/issue-68648-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68648-2.rs rename to tests/ui/generic-associated-types/issue-68648-2.rs diff --git a/src/test/ui/generic-associated-types/issue-68648-2.stderr b/tests/ui/generic-associated-types/issue-68648-2.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68648-2.stderr rename to tests/ui/generic-associated-types/issue-68648-2.stderr diff --git a/src/test/ui/generic-associated-types/issue-68649-pass.rs b/tests/ui/generic-associated-types/issue-68649-pass.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68649-pass.rs rename to tests/ui/generic-associated-types/issue-68649-pass.rs diff --git a/src/test/ui/generic-associated-types/issue-68653.rs b/tests/ui/generic-associated-types/issue-68653.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68653.rs rename to tests/ui/generic-associated-types/issue-68653.rs diff --git a/src/test/ui/generic-associated-types/issue-68656-unsized-values.rs b/tests/ui/generic-associated-types/issue-68656-unsized-values.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-68656-unsized-values.rs rename to tests/ui/generic-associated-types/issue-68656-unsized-values.rs diff --git a/src/test/ui/generic-associated-types/issue-68656-unsized-values.stderr b/tests/ui/generic-associated-types/issue-68656-unsized-values.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-68656-unsized-values.stderr rename to tests/ui/generic-associated-types/issue-68656-unsized-values.stderr diff --git a/src/test/ui/generic-associated-types/issue-70303.rs b/tests/ui/generic-associated-types/issue-70303.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-70303.rs rename to tests/ui/generic-associated-types/issue-70303.rs diff --git a/src/test/ui/generic-associated-types/issue-70304.rs b/tests/ui/generic-associated-types/issue-70304.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-70304.rs rename to tests/ui/generic-associated-types/issue-70304.rs diff --git a/src/test/ui/generic-associated-types/issue-70304.stderr b/tests/ui/generic-associated-types/issue-70304.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-70304.stderr rename to tests/ui/generic-associated-types/issue-70304.stderr diff --git a/src/test/ui/generic-associated-types/issue-71176.rs b/tests/ui/generic-associated-types/issue-71176.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-71176.rs rename to tests/ui/generic-associated-types/issue-71176.rs diff --git a/src/test/ui/generic-associated-types/issue-71176.stderr b/tests/ui/generic-associated-types/issue-71176.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-71176.stderr rename to tests/ui/generic-associated-types/issue-71176.stderr diff --git a/src/test/ui/generic-associated-types/issue-74684-1.rs b/tests/ui/generic-associated-types/issue-74684-1.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-74684-1.rs rename to tests/ui/generic-associated-types/issue-74684-1.rs diff --git a/src/test/ui/generic-associated-types/issue-74684-1.stderr b/tests/ui/generic-associated-types/issue-74684-1.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-74684-1.stderr rename to tests/ui/generic-associated-types/issue-74684-1.stderr diff --git a/src/test/ui/generic-associated-types/issue-74684-2.rs b/tests/ui/generic-associated-types/issue-74684-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-74684-2.rs rename to tests/ui/generic-associated-types/issue-74684-2.rs diff --git a/src/test/ui/generic-associated-types/issue-74684-2.stderr b/tests/ui/generic-associated-types/issue-74684-2.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-74684-2.stderr rename to tests/ui/generic-associated-types/issue-74684-2.stderr diff --git a/src/test/ui/generic-associated-types/issue-74816.rs b/tests/ui/generic-associated-types/issue-74816.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-74816.rs rename to tests/ui/generic-associated-types/issue-74816.rs diff --git a/src/test/ui/generic-associated-types/issue-74816.stderr b/tests/ui/generic-associated-types/issue-74816.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-74816.stderr rename to tests/ui/generic-associated-types/issue-74816.stderr diff --git a/src/test/ui/generic-associated-types/issue-74824.rs b/tests/ui/generic-associated-types/issue-74824.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-74824.rs rename to tests/ui/generic-associated-types/issue-74824.rs diff --git a/src/test/ui/generic-associated-types/issue-74824.stderr b/tests/ui/generic-associated-types/issue-74824.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-74824.stderr rename to tests/ui/generic-associated-types/issue-74824.stderr diff --git a/src/test/ui/generic-associated-types/issue-76407.rs b/tests/ui/generic-associated-types/issue-76407.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-76407.rs rename to tests/ui/generic-associated-types/issue-76407.rs diff --git a/src/test/ui/generic-associated-types/issue-76535.base.stderr b/tests/ui/generic-associated-types/issue-76535.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-76535.base.stderr rename to tests/ui/generic-associated-types/issue-76535.base.stderr diff --git a/src/test/ui/generic-associated-types/issue-76535.extended.stderr b/tests/ui/generic-associated-types/issue-76535.extended.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-76535.extended.stderr rename to tests/ui/generic-associated-types/issue-76535.extended.stderr diff --git a/src/test/ui/generic-associated-types/issue-76535.rs b/tests/ui/generic-associated-types/issue-76535.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-76535.rs rename to tests/ui/generic-associated-types/issue-76535.rs diff --git a/src/test/ui/generic-associated-types/issue-76826.rs b/tests/ui/generic-associated-types/issue-76826.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-76826.rs rename to tests/ui/generic-associated-types/issue-76826.rs diff --git a/src/test/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.rs b/tests/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.rs rename to tests/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.rs diff --git a/src/test/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.stderr b/tests/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.stderr rename to tests/ui/generic-associated-types/issue-78113-lifetime-mismatch-dyn-trait-box.stderr diff --git a/src/test/ui/generic-associated-types/issue-78671.base.stderr b/tests/ui/generic-associated-types/issue-78671.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-78671.base.stderr rename to tests/ui/generic-associated-types/issue-78671.base.stderr diff --git a/src/test/ui/generic-associated-types/issue-78671.extended.stderr b/tests/ui/generic-associated-types/issue-78671.extended.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-78671.extended.stderr rename to tests/ui/generic-associated-types/issue-78671.extended.stderr diff --git a/src/test/ui/generic-associated-types/issue-78671.rs b/tests/ui/generic-associated-types/issue-78671.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-78671.rs rename to tests/ui/generic-associated-types/issue-78671.rs diff --git a/src/test/ui/generic-associated-types/issue-79422.base.stderr b/tests/ui/generic-associated-types/issue-79422.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-79422.base.stderr rename to tests/ui/generic-associated-types/issue-79422.base.stderr diff --git a/src/test/ui/generic-associated-types/issue-79422.extended.stderr b/tests/ui/generic-associated-types/issue-79422.extended.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-79422.extended.stderr rename to tests/ui/generic-associated-types/issue-79422.extended.stderr diff --git a/src/test/ui/generic-associated-types/issue-79422.rs b/tests/ui/generic-associated-types/issue-79422.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-79422.rs rename to tests/ui/generic-associated-types/issue-79422.rs diff --git a/src/test/ui/generic-associated-types/issue-79636-1.rs b/tests/ui/generic-associated-types/issue-79636-1.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-79636-1.rs rename to tests/ui/generic-associated-types/issue-79636-1.rs diff --git a/src/test/ui/generic-associated-types/issue-79636-1.stderr b/tests/ui/generic-associated-types/issue-79636-1.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-79636-1.stderr rename to tests/ui/generic-associated-types/issue-79636-1.stderr diff --git a/src/test/ui/generic-associated-types/issue-79636-2.rs b/tests/ui/generic-associated-types/issue-79636-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-79636-2.rs rename to tests/ui/generic-associated-types/issue-79636-2.rs diff --git a/src/test/ui/generic-associated-types/issue-79636-2.stderr b/tests/ui/generic-associated-types/issue-79636-2.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-79636-2.stderr rename to tests/ui/generic-associated-types/issue-79636-2.stderr diff --git a/src/test/ui/generic-associated-types/issue-80433-reduced.rs b/tests/ui/generic-associated-types/issue-80433-reduced.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-80433-reduced.rs rename to tests/ui/generic-associated-types/issue-80433-reduced.rs diff --git a/src/test/ui/generic-associated-types/issue-80433.rs b/tests/ui/generic-associated-types/issue-80433.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-80433.rs rename to tests/ui/generic-associated-types/issue-80433.rs diff --git a/src/test/ui/generic-associated-types/issue-80433.stderr b/tests/ui/generic-associated-types/issue-80433.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-80433.stderr rename to tests/ui/generic-associated-types/issue-80433.stderr diff --git a/src/test/ui/generic-associated-types/issue-81487.rs b/tests/ui/generic-associated-types/issue-81487.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-81487.rs rename to tests/ui/generic-associated-types/issue-81487.rs diff --git a/src/test/ui/generic-associated-types/issue-81712-cyclic-traits.rs b/tests/ui/generic-associated-types/issue-81712-cyclic-traits.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-81712-cyclic-traits.rs rename to tests/ui/generic-associated-types/issue-81712-cyclic-traits.rs diff --git a/src/test/ui/generic-associated-types/issue-81712-cyclic-traits.stderr b/tests/ui/generic-associated-types/issue-81712-cyclic-traits.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-81712-cyclic-traits.stderr rename to tests/ui/generic-associated-types/issue-81712-cyclic-traits.stderr diff --git a/src/test/ui/generic-associated-types/issue-81862.rs b/tests/ui/generic-associated-types/issue-81862.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-81862.rs rename to tests/ui/generic-associated-types/issue-81862.rs diff --git a/src/test/ui/generic-associated-types/issue-81862.stderr b/tests/ui/generic-associated-types/issue-81862.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-81862.stderr rename to tests/ui/generic-associated-types/issue-81862.stderr diff --git a/src/test/ui/generic-associated-types/issue-84931.rs b/tests/ui/generic-associated-types/issue-84931.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-84931.rs rename to tests/ui/generic-associated-types/issue-84931.rs diff --git a/src/test/ui/generic-associated-types/issue-84931.stderr b/tests/ui/generic-associated-types/issue-84931.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-84931.stderr rename to tests/ui/generic-associated-types/issue-84931.stderr diff --git a/src/test/ui/generic-associated-types/issue-85921.rs b/tests/ui/generic-associated-types/issue-85921.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-85921.rs rename to tests/ui/generic-associated-types/issue-85921.rs diff --git a/src/test/ui/generic-associated-types/issue-86218-2.rs b/tests/ui/generic-associated-types/issue-86218-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-86218-2.rs rename to tests/ui/generic-associated-types/issue-86218-2.rs diff --git a/src/test/ui/generic-associated-types/issue-86218.rs b/tests/ui/generic-associated-types/issue-86218.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-86218.rs rename to tests/ui/generic-associated-types/issue-86218.rs diff --git a/src/test/ui/generic-associated-types/issue-86483.rs b/tests/ui/generic-associated-types/issue-86483.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-86483.rs rename to tests/ui/generic-associated-types/issue-86483.rs diff --git a/src/test/ui/generic-associated-types/issue-86787.rs b/tests/ui/generic-associated-types/issue-86787.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-86787.rs rename to tests/ui/generic-associated-types/issue-86787.rs diff --git a/src/test/ui/generic-associated-types/issue-86787.stderr b/tests/ui/generic-associated-types/issue-86787.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-86787.stderr rename to tests/ui/generic-associated-types/issue-86787.stderr diff --git a/src/test/ui/generic-associated-types/issue-87258_a.rs b/tests/ui/generic-associated-types/issue-87258_a.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87258_a.rs rename to tests/ui/generic-associated-types/issue-87258_a.rs diff --git a/src/test/ui/generic-associated-types/issue-87258_a.stderr b/tests/ui/generic-associated-types/issue-87258_a.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-87258_a.stderr rename to tests/ui/generic-associated-types/issue-87258_a.stderr diff --git a/src/test/ui/generic-associated-types/issue-87258_b.rs b/tests/ui/generic-associated-types/issue-87258_b.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87258_b.rs rename to tests/ui/generic-associated-types/issue-87258_b.rs diff --git a/src/test/ui/generic-associated-types/issue-87258_b.stderr b/tests/ui/generic-associated-types/issue-87258_b.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-87258_b.stderr rename to tests/ui/generic-associated-types/issue-87258_b.stderr diff --git a/src/test/ui/generic-associated-types/issue-87429-2.rs b/tests/ui/generic-associated-types/issue-87429-2.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87429-2.rs rename to tests/ui/generic-associated-types/issue-87429-2.rs diff --git a/src/test/ui/generic-associated-types/issue-87429-associated-type-default.rs b/tests/ui/generic-associated-types/issue-87429-associated-type-default.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87429-associated-type-default.rs rename to tests/ui/generic-associated-types/issue-87429-associated-type-default.rs diff --git a/src/test/ui/generic-associated-types/issue-87429-associated-type-default.stderr b/tests/ui/generic-associated-types/issue-87429-associated-type-default.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-87429-associated-type-default.stderr rename to tests/ui/generic-associated-types/issue-87429-associated-type-default.stderr diff --git a/src/test/ui/generic-associated-types/issue-87429-specialization.rs b/tests/ui/generic-associated-types/issue-87429-specialization.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87429-specialization.rs rename to tests/ui/generic-associated-types/issue-87429-specialization.rs diff --git a/src/test/ui/generic-associated-types/issue-87429-specialization.stderr b/tests/ui/generic-associated-types/issue-87429-specialization.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-87429-specialization.stderr rename to tests/ui/generic-associated-types/issue-87429-specialization.stderr diff --git a/src/test/ui/generic-associated-types/issue-87429.rs b/tests/ui/generic-associated-types/issue-87429.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87429.rs rename to tests/ui/generic-associated-types/issue-87429.rs diff --git a/src/test/ui/generic-associated-types/issue-87748.rs b/tests/ui/generic-associated-types/issue-87748.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87748.rs rename to tests/ui/generic-associated-types/issue-87748.rs diff --git a/src/test/ui/generic-associated-types/issue-87750.rs b/tests/ui/generic-associated-types/issue-87750.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-87750.rs rename to tests/ui/generic-associated-types/issue-87750.rs diff --git a/src/test/ui/generic-associated-types/issue-88287.rs b/tests/ui/generic-associated-types/issue-88287.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-88287.rs rename to tests/ui/generic-associated-types/issue-88287.rs diff --git a/src/test/ui/generic-associated-types/issue-88287.stderr b/tests/ui/generic-associated-types/issue-88287.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-88287.stderr rename to tests/ui/generic-associated-types/issue-88287.stderr diff --git a/src/test/ui/generic-associated-types/issue-88360.rs b/tests/ui/generic-associated-types/issue-88360.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-88360.rs rename to tests/ui/generic-associated-types/issue-88360.rs diff --git a/src/test/ui/generic-associated-types/issue-88360.stderr b/tests/ui/generic-associated-types/issue-88360.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-88360.stderr rename to tests/ui/generic-associated-types/issue-88360.stderr diff --git a/src/test/ui/generic-associated-types/issue-88405.rs b/tests/ui/generic-associated-types/issue-88405.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-88405.rs rename to tests/ui/generic-associated-types/issue-88405.rs diff --git a/src/test/ui/generic-associated-types/issue-88459.rs b/tests/ui/generic-associated-types/issue-88459.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-88459.rs rename to tests/ui/generic-associated-types/issue-88459.rs diff --git a/src/test/ui/generic-associated-types/issue-88595.rs b/tests/ui/generic-associated-types/issue-88595.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-88595.rs rename to tests/ui/generic-associated-types/issue-88595.rs diff --git a/src/test/ui/generic-associated-types/issue-88595.stderr b/tests/ui/generic-associated-types/issue-88595.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-88595.stderr rename to tests/ui/generic-associated-types/issue-88595.stderr diff --git a/src/test/ui/generic-associated-types/issue-89008.rs b/tests/ui/generic-associated-types/issue-89008.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-89008.rs rename to tests/ui/generic-associated-types/issue-89008.rs diff --git a/src/test/ui/generic-associated-types/issue-89352.rs b/tests/ui/generic-associated-types/issue-89352.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-89352.rs rename to tests/ui/generic-associated-types/issue-89352.rs diff --git a/src/test/ui/generic-associated-types/issue-90014.rs b/tests/ui/generic-associated-types/issue-90014.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-90014.rs rename to tests/ui/generic-associated-types/issue-90014.rs diff --git a/src/test/ui/generic-associated-types/issue-90014.stderr b/tests/ui/generic-associated-types/issue-90014.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-90014.stderr rename to tests/ui/generic-associated-types/issue-90014.stderr diff --git a/src/test/ui/generic-associated-types/issue-90729.rs b/tests/ui/generic-associated-types/issue-90729.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-90729.rs rename to tests/ui/generic-associated-types/issue-90729.rs diff --git a/src/test/ui/generic-associated-types/issue-91139.migrate.stderr b/tests/ui/generic-associated-types/issue-91139.migrate.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-91139.migrate.stderr rename to tests/ui/generic-associated-types/issue-91139.migrate.stderr diff --git a/src/test/ui/generic-associated-types/issue-91139.rs b/tests/ui/generic-associated-types/issue-91139.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-91139.rs rename to tests/ui/generic-associated-types/issue-91139.rs diff --git a/src/test/ui/generic-associated-types/issue-91139.stderr b/tests/ui/generic-associated-types/issue-91139.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-91139.stderr rename to tests/ui/generic-associated-types/issue-91139.stderr diff --git a/src/test/ui/generic-associated-types/issue-91883.rs b/tests/ui/generic-associated-types/issue-91883.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-91883.rs rename to tests/ui/generic-associated-types/issue-91883.rs diff --git a/src/test/ui/generic-associated-types/issue-91883.stderr b/tests/ui/generic-associated-types/issue-91883.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-91883.stderr rename to tests/ui/generic-associated-types/issue-91883.stderr diff --git a/src/test/ui/generic-associated-types/issue-92033.rs b/tests/ui/generic-associated-types/issue-92033.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-92033.rs rename to tests/ui/generic-associated-types/issue-92033.rs diff --git a/src/test/ui/generic-associated-types/issue-92033.stderr b/tests/ui/generic-associated-types/issue-92033.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-92033.stderr rename to tests/ui/generic-associated-types/issue-92033.stderr diff --git a/src/test/ui/generic-associated-types/issue-92096.migrate.stderr b/tests/ui/generic-associated-types/issue-92096.migrate.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-92096.migrate.stderr rename to tests/ui/generic-associated-types/issue-92096.migrate.stderr diff --git a/src/test/ui/generic-associated-types/issue-92096.rs b/tests/ui/generic-associated-types/issue-92096.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-92096.rs rename to tests/ui/generic-associated-types/issue-92096.rs diff --git a/src/test/ui/generic-associated-types/issue-92096.stderr b/tests/ui/generic-associated-types/issue-92096.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-92096.stderr rename to tests/ui/generic-associated-types/issue-92096.stderr diff --git a/src/test/ui/generic-associated-types/issue-92280.rs b/tests/ui/generic-associated-types/issue-92280.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-92280.rs rename to tests/ui/generic-associated-types/issue-92280.rs diff --git a/src/test/ui/generic-associated-types/issue-92954.rs b/tests/ui/generic-associated-types/issue-92954.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-92954.rs rename to tests/ui/generic-associated-types/issue-92954.rs diff --git a/src/test/ui/generic-associated-types/issue-93141.rs b/tests/ui/generic-associated-types/issue-93141.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-93141.rs rename to tests/ui/generic-associated-types/issue-93141.rs diff --git a/src/test/ui/generic-associated-types/issue-93262.rs b/tests/ui/generic-associated-types/issue-93262.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-93262.rs rename to tests/ui/generic-associated-types/issue-93262.rs diff --git a/src/test/ui/generic-associated-types/issue-93340.rs b/tests/ui/generic-associated-types/issue-93340.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-93340.rs rename to tests/ui/generic-associated-types/issue-93340.rs diff --git a/src/test/ui/generic-associated-types/issue-93341.rs b/tests/ui/generic-associated-types/issue-93341.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-93341.rs rename to tests/ui/generic-associated-types/issue-93341.rs diff --git a/src/test/ui/generic-associated-types/issue-93342.rs b/tests/ui/generic-associated-types/issue-93342.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-93342.rs rename to tests/ui/generic-associated-types/issue-93342.rs diff --git a/src/test/ui/generic-associated-types/issue-93874.rs b/tests/ui/generic-associated-types/issue-93874.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-93874.rs rename to tests/ui/generic-associated-types/issue-93874.rs diff --git a/src/test/ui/generic-associated-types/issue-95305.rs b/tests/ui/generic-associated-types/issue-95305.rs similarity index 100% rename from src/test/ui/generic-associated-types/issue-95305.rs rename to tests/ui/generic-associated-types/issue-95305.rs diff --git a/src/test/ui/generic-associated-types/issue-95305.stderr b/tests/ui/generic-associated-types/issue-95305.stderr similarity index 100% rename from src/test/ui/generic-associated-types/issue-95305.stderr rename to tests/ui/generic-associated-types/issue-95305.stderr diff --git a/src/test/ui/generic-associated-types/iterable.rs b/tests/ui/generic-associated-types/iterable.rs similarity index 100% rename from src/test/ui/generic-associated-types/iterable.rs rename to tests/ui/generic-associated-types/iterable.rs diff --git a/src/test/ui/generic-associated-types/method-unsatified-assoc-type-predicate.rs b/tests/ui/generic-associated-types/method-unsatified-assoc-type-predicate.rs similarity index 100% rename from src/test/ui/generic-associated-types/method-unsatified-assoc-type-predicate.rs rename to tests/ui/generic-associated-types/method-unsatified-assoc-type-predicate.rs diff --git a/src/test/ui/generic-associated-types/method-unsatified-assoc-type-predicate.stderr b/tests/ui/generic-associated-types/method-unsatified-assoc-type-predicate.stderr similarity index 100% rename from src/test/ui/generic-associated-types/method-unsatified-assoc-type-predicate.stderr rename to tests/ui/generic-associated-types/method-unsatified-assoc-type-predicate.stderr diff --git a/src/test/ui/generic-associated-types/mismatched-where-clause-regions.rs b/tests/ui/generic-associated-types/mismatched-where-clause-regions.rs similarity index 100% rename from src/test/ui/generic-associated-types/mismatched-where-clause-regions.rs rename to tests/ui/generic-associated-types/mismatched-where-clause-regions.rs diff --git a/src/test/ui/generic-associated-types/mismatched-where-clause-regions.stderr b/tests/ui/generic-associated-types/mismatched-where-clause-regions.stderr similarity index 100% rename from src/test/ui/generic-associated-types/mismatched-where-clause-regions.stderr rename to tests/ui/generic-associated-types/mismatched-where-clause-regions.stderr diff --git a/src/test/ui/generic-associated-types/missing-bounds.fixed b/tests/ui/generic-associated-types/missing-bounds.fixed similarity index 100% rename from src/test/ui/generic-associated-types/missing-bounds.fixed rename to tests/ui/generic-associated-types/missing-bounds.fixed diff --git a/src/test/ui/generic-associated-types/missing-bounds.rs b/tests/ui/generic-associated-types/missing-bounds.rs similarity index 100% rename from src/test/ui/generic-associated-types/missing-bounds.rs rename to tests/ui/generic-associated-types/missing-bounds.rs diff --git a/src/test/ui/generic-associated-types/missing-bounds.stderr b/tests/ui/generic-associated-types/missing-bounds.stderr similarity index 100% rename from src/test/ui/generic-associated-types/missing-bounds.stderr rename to tests/ui/generic-associated-types/missing-bounds.stderr diff --git a/src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs b/tests/ui/generic-associated-types/missing-where-clause-on-trait.rs similarity index 100% rename from src/test/ui/generic-associated-types/missing-where-clause-on-trait.rs rename to tests/ui/generic-associated-types/missing-where-clause-on-trait.rs diff --git a/src/test/ui/generic-associated-types/missing-where-clause-on-trait.stderr b/tests/ui/generic-associated-types/missing-where-clause-on-trait.stderr similarity index 100% rename from src/test/ui/generic-associated-types/missing-where-clause-on-trait.stderr rename to tests/ui/generic-associated-types/missing-where-clause-on-trait.stderr diff --git a/src/test/ui/generic-associated-types/missing_lifetime_args.rs b/tests/ui/generic-associated-types/missing_lifetime_args.rs similarity index 100% rename from src/test/ui/generic-associated-types/missing_lifetime_args.rs rename to tests/ui/generic-associated-types/missing_lifetime_args.rs diff --git a/src/test/ui/generic-associated-types/missing_lifetime_args.stderr b/tests/ui/generic-associated-types/missing_lifetime_args.stderr similarity index 100% rename from src/test/ui/generic-associated-types/missing_lifetime_args.stderr rename to tests/ui/generic-associated-types/missing_lifetime_args.stderr diff --git a/src/test/ui/generic-associated-types/missing_lifetime_const.rs b/tests/ui/generic-associated-types/missing_lifetime_const.rs similarity index 100% rename from src/test/ui/generic-associated-types/missing_lifetime_const.rs rename to tests/ui/generic-associated-types/missing_lifetime_const.rs diff --git a/src/test/ui/generic-associated-types/missing_lifetime_const.stderr b/tests/ui/generic-associated-types/missing_lifetime_const.stderr similarity index 100% rename from src/test/ui/generic-associated-types/missing_lifetime_const.stderr rename to tests/ui/generic-associated-types/missing_lifetime_const.stderr diff --git a/src/test/ui/generic-associated-types/own-bound-span.rs b/tests/ui/generic-associated-types/own-bound-span.rs similarity index 100% rename from src/test/ui/generic-associated-types/own-bound-span.rs rename to tests/ui/generic-associated-types/own-bound-span.rs diff --git a/src/test/ui/generic-associated-types/own-bound-span.stderr b/tests/ui/generic-associated-types/own-bound-span.stderr similarity index 100% rename from src/test/ui/generic-associated-types/own-bound-span.stderr rename to tests/ui/generic-associated-types/own-bound-span.stderr diff --git a/src/test/ui/generic-associated-types/parameter_number_and_kind.rs b/tests/ui/generic-associated-types/parameter_number_and_kind.rs similarity index 100% rename from src/test/ui/generic-associated-types/parameter_number_and_kind.rs rename to tests/ui/generic-associated-types/parameter_number_and_kind.rs diff --git a/src/test/ui/generic-associated-types/parameter_number_and_kind.stderr b/tests/ui/generic-associated-types/parameter_number_and_kind.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parameter_number_and_kind.stderr rename to tests/ui/generic-associated-types/parameter_number_and_kind.stderr diff --git a/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.rs b/tests/ui/generic-associated-types/parameter_number_and_kind_impl.rs similarity index 100% rename from src/test/ui/generic-associated-types/parameter_number_and_kind_impl.rs rename to tests/ui/generic-associated-types/parameter_number_and_kind_impl.rs diff --git a/src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr b/tests/ui/generic-associated-types/parameter_number_and_kind_impl.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parameter_number_and_kind_impl.stderr rename to tests/ui/generic-associated-types/parameter_number_and_kind_impl.stderr diff --git a/src/test/ui/generic-associated-types/parse/in-trait-impl.rs b/tests/ui/generic-associated-types/parse/in-trait-impl.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/in-trait-impl.rs rename to tests/ui/generic-associated-types/parse/in-trait-impl.rs diff --git a/src/test/ui/generic-associated-types/parse/in-trait.rs b/tests/ui/generic-associated-types/parse/in-trait.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/in-trait.rs rename to tests/ui/generic-associated-types/parse/in-trait.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs b/tests/ui/generic-associated-types/parse/trait-path-expected-token.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs rename to tests/ui/generic-associated-types/parse/trait-path-expected-token.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-expected-token.stderr b/tests/ui/generic-associated-types/parse/trait-path-expected-token.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-expected-token.stderr rename to tests/ui/generic-associated-types/parse/trait-path-expected-token.stderr diff --git a/src/test/ui/generic-associated-types/parse/trait-path-expressions.rs b/tests/ui/generic-associated-types/parse/trait-path-expressions.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-expressions.rs rename to tests/ui/generic-associated-types/parse/trait-path-expressions.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-expressions.stderr b/tests/ui/generic-associated-types/parse/trait-path-expressions.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-expressions.stderr rename to tests/ui/generic-associated-types/parse/trait-path-expressions.stderr diff --git a/src/test/ui/generic-associated-types/parse/trait-path-missing-gen_arg.rs b/tests/ui/generic-associated-types/parse/trait-path-missing-gen_arg.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-missing-gen_arg.rs rename to tests/ui/generic-associated-types/parse/trait-path-missing-gen_arg.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-missing-gen_arg.stderr b/tests/ui/generic-associated-types/parse/trait-path-missing-gen_arg.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-missing-gen_arg.stderr rename to tests/ui/generic-associated-types/parse/trait-path-missing-gen_arg.stderr diff --git a/src/test/ui/generic-associated-types/parse/trait-path-segments.rs b/tests/ui/generic-associated-types/parse/trait-path-segments.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-segments.rs rename to tests/ui/generic-associated-types/parse/trait-path-segments.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-segments.stderr b/tests/ui/generic-associated-types/parse/trait-path-segments.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-segments.stderr rename to tests/ui/generic-associated-types/parse/trait-path-segments.stderr diff --git a/src/test/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.rs b/tests/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.rs rename to tests/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.stderr b/tests/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.stderr rename to tests/ui/generic-associated-types/parse/trait-path-type-error-once-implemented.stderr diff --git a/src/test/ui/generic-associated-types/parse/trait-path-types.rs b/tests/ui/generic-associated-types/parse/trait-path-types.rs similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-types.rs rename to tests/ui/generic-associated-types/parse/trait-path-types.rs diff --git a/src/test/ui/generic-associated-types/parse/trait-path-types.stderr b/tests/ui/generic-associated-types/parse/trait-path-types.stderr similarity index 100% rename from src/test/ui/generic-associated-types/parse/trait-path-types.stderr rename to tests/ui/generic-associated-types/parse/trait-path-types.stderr diff --git a/src/test/ui/generic-associated-types/pointer_family.rs b/tests/ui/generic-associated-types/pointer_family.rs similarity index 100% rename from src/test/ui/generic-associated-types/pointer_family.rs rename to tests/ui/generic-associated-types/pointer_family.rs diff --git a/src/test/ui/generic-associated-types/projection-bound-cycle-generic.rs b/tests/ui/generic-associated-types/projection-bound-cycle-generic.rs similarity index 100% rename from src/test/ui/generic-associated-types/projection-bound-cycle-generic.rs rename to tests/ui/generic-associated-types/projection-bound-cycle-generic.rs diff --git a/src/test/ui/generic-associated-types/projection-bound-cycle-generic.stderr b/tests/ui/generic-associated-types/projection-bound-cycle-generic.stderr similarity index 100% rename from src/test/ui/generic-associated-types/projection-bound-cycle-generic.stderr rename to tests/ui/generic-associated-types/projection-bound-cycle-generic.stderr diff --git a/src/test/ui/generic-associated-types/projection-bound-cycle.rs b/tests/ui/generic-associated-types/projection-bound-cycle.rs similarity index 100% rename from src/test/ui/generic-associated-types/projection-bound-cycle.rs rename to tests/ui/generic-associated-types/projection-bound-cycle.rs diff --git a/src/test/ui/generic-associated-types/projection-bound-cycle.stderr b/tests/ui/generic-associated-types/projection-bound-cycle.stderr similarity index 100% rename from src/test/ui/generic-associated-types/projection-bound-cycle.stderr rename to tests/ui/generic-associated-types/projection-bound-cycle.stderr diff --git a/src/test/ui/generic-associated-types/projection-type-lifetime-mismatch.rs b/tests/ui/generic-associated-types/projection-type-lifetime-mismatch.rs similarity index 100% rename from src/test/ui/generic-associated-types/projection-type-lifetime-mismatch.rs rename to tests/ui/generic-associated-types/projection-type-lifetime-mismatch.rs diff --git a/src/test/ui/generic-associated-types/projection-type-lifetime-mismatch.stderr b/tests/ui/generic-associated-types/projection-type-lifetime-mismatch.stderr similarity index 100% rename from src/test/ui/generic-associated-types/projection-type-lifetime-mismatch.stderr rename to tests/ui/generic-associated-types/projection-type-lifetime-mismatch.stderr diff --git a/src/test/ui/generic-associated-types/self-outlives-lint.rs b/tests/ui/generic-associated-types/self-outlives-lint.rs similarity index 100% rename from src/test/ui/generic-associated-types/self-outlives-lint.rs rename to tests/ui/generic-associated-types/self-outlives-lint.rs diff --git a/src/test/ui/generic-associated-types/self-outlives-lint.stderr b/tests/ui/generic-associated-types/self-outlives-lint.stderr similarity index 100% rename from src/test/ui/generic-associated-types/self-outlives-lint.stderr rename to tests/ui/generic-associated-types/self-outlives-lint.stderr diff --git a/src/test/ui/generic-associated-types/shadowing.rs b/tests/ui/generic-associated-types/shadowing.rs similarity index 100% rename from src/test/ui/generic-associated-types/shadowing.rs rename to tests/ui/generic-associated-types/shadowing.rs diff --git a/src/test/ui/generic-associated-types/shadowing.stderr b/tests/ui/generic-associated-types/shadowing.stderr similarity index 100% rename from src/test/ui/generic-associated-types/shadowing.stderr rename to tests/ui/generic-associated-types/shadowing.stderr diff --git a/src/test/ui/generic-associated-types/streaming_iterator.rs b/tests/ui/generic-associated-types/streaming_iterator.rs similarity index 100% rename from src/test/ui/generic-associated-types/streaming_iterator.rs rename to tests/ui/generic-associated-types/streaming_iterator.rs diff --git a/src/test/ui/generic-associated-types/trait-objects.base.stderr b/tests/ui/generic-associated-types/trait-objects.base.stderr similarity index 100% rename from src/test/ui/generic-associated-types/trait-objects.base.stderr rename to tests/ui/generic-associated-types/trait-objects.base.stderr diff --git a/src/test/ui/generic-associated-types/trait-objects.extended.stderr b/tests/ui/generic-associated-types/trait-objects.extended.stderr similarity index 100% rename from src/test/ui/generic-associated-types/trait-objects.extended.stderr rename to tests/ui/generic-associated-types/trait-objects.extended.stderr diff --git a/src/test/ui/generic-associated-types/trait-objects.rs b/tests/ui/generic-associated-types/trait-objects.rs similarity index 100% rename from src/test/ui/generic-associated-types/trait-objects.rs rename to tests/ui/generic-associated-types/trait-objects.rs diff --git a/src/test/ui/generic-associated-types/type-param-defaults.rs b/tests/ui/generic-associated-types/type-param-defaults.rs similarity index 100% rename from src/test/ui/generic-associated-types/type-param-defaults.rs rename to tests/ui/generic-associated-types/type-param-defaults.rs diff --git a/src/test/ui/generic-associated-types/type-param-defaults.stderr b/tests/ui/generic-associated-types/type-param-defaults.stderr similarity index 100% rename from src/test/ui/generic-associated-types/type-param-defaults.stderr rename to tests/ui/generic-associated-types/type-param-defaults.stderr diff --git a/src/test/ui/generic-associated-types/unsatified-item-lifetime-bound.rs b/tests/ui/generic-associated-types/unsatified-item-lifetime-bound.rs similarity index 100% rename from src/test/ui/generic-associated-types/unsatified-item-lifetime-bound.rs rename to tests/ui/generic-associated-types/unsatified-item-lifetime-bound.rs diff --git a/src/test/ui/generic-associated-types/unsatified-item-lifetime-bound.stderr b/tests/ui/generic-associated-types/unsatified-item-lifetime-bound.stderr similarity index 100% rename from src/test/ui/generic-associated-types/unsatified-item-lifetime-bound.stderr rename to tests/ui/generic-associated-types/unsatified-item-lifetime-bound.stderr diff --git a/src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs b/tests/ui/generic-associated-types/unsatisfied-outlives-bound.rs similarity index 100% rename from src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs rename to tests/ui/generic-associated-types/unsatisfied-outlives-bound.rs diff --git a/src/test/ui/generic-associated-types/unsatisfied-outlives-bound.stderr b/tests/ui/generic-associated-types/unsatisfied-outlives-bound.stderr similarity index 100% rename from src/test/ui/generic-associated-types/unsatisfied-outlives-bound.stderr rename to tests/ui/generic-associated-types/unsatisfied-outlives-bound.stderr diff --git a/src/test/ui/generic-associated-types/variance_constraints.rs b/tests/ui/generic-associated-types/variance_constraints.rs similarity index 100% rename from src/test/ui/generic-associated-types/variance_constraints.rs rename to tests/ui/generic-associated-types/variance_constraints.rs diff --git a/src/test/ui/generics/autobind.rs b/tests/ui/generics/autobind.rs similarity index 100% rename from src/test/ui/generics/autobind.rs rename to tests/ui/generics/autobind.rs diff --git a/src/test/ui/generics/auxiliary/default_type_params_xc.rs b/tests/ui/generics/auxiliary/default_type_params_xc.rs similarity index 100% rename from src/test/ui/generics/auxiliary/default_type_params_xc.rs rename to tests/ui/generics/auxiliary/default_type_params_xc.rs diff --git a/src/test/ui/generics/bad-mid-path-type-params.rs b/tests/ui/generics/bad-mid-path-type-params.rs similarity index 100% rename from src/test/ui/generics/bad-mid-path-type-params.rs rename to tests/ui/generics/bad-mid-path-type-params.rs diff --git a/src/test/ui/generics/bad-mid-path-type-params.stderr b/tests/ui/generics/bad-mid-path-type-params.stderr similarity index 100% rename from src/test/ui/generics/bad-mid-path-type-params.stderr rename to tests/ui/generics/bad-mid-path-type-params.stderr diff --git a/src/test/ui/generics/generic-alias-unique.rs b/tests/ui/generics/generic-alias-unique.rs similarity index 100% rename from src/test/ui/generics/generic-alias-unique.rs rename to tests/ui/generics/generic-alias-unique.rs diff --git a/src/test/ui/generics/generic-arg-mismatch-recover.rs b/tests/ui/generics/generic-arg-mismatch-recover.rs similarity index 100% rename from src/test/ui/generics/generic-arg-mismatch-recover.rs rename to tests/ui/generics/generic-arg-mismatch-recover.rs diff --git a/src/test/ui/generics/generic-arg-mismatch-recover.stderr b/tests/ui/generics/generic-arg-mismatch-recover.stderr similarity index 100% rename from src/test/ui/generics/generic-arg-mismatch-recover.stderr rename to tests/ui/generics/generic-arg-mismatch-recover.stderr diff --git a/src/test/ui/generics/generic-default-type-params-cross-crate.rs b/tests/ui/generics/generic-default-type-params-cross-crate.rs similarity index 100% rename from src/test/ui/generics/generic-default-type-params-cross-crate.rs rename to tests/ui/generics/generic-default-type-params-cross-crate.rs diff --git a/src/test/ui/generics/generic-default-type-params.rs b/tests/ui/generics/generic-default-type-params.rs similarity index 100% rename from src/test/ui/generics/generic-default-type-params.rs rename to tests/ui/generics/generic-default-type-params.rs diff --git a/src/test/ui/generics/generic-derived-type.rs b/tests/ui/generics/generic-derived-type.rs similarity index 100% rename from src/test/ui/generics/generic-derived-type.rs rename to tests/ui/generics/generic-derived-type.rs diff --git a/src/test/ui/generics/generic-exterior-unique.rs b/tests/ui/generics/generic-exterior-unique.rs similarity index 100% rename from src/test/ui/generics/generic-exterior-unique.rs rename to tests/ui/generics/generic-exterior-unique.rs diff --git a/src/test/ui/generics/generic-extern-lifetime.rs b/tests/ui/generics/generic-extern-lifetime.rs similarity index 100% rename from src/test/ui/generics/generic-extern-lifetime.rs rename to tests/ui/generics/generic-extern-lifetime.rs diff --git a/src/test/ui/generics/generic-extern-lifetime.stderr b/tests/ui/generics/generic-extern-lifetime.stderr similarity index 100% rename from src/test/ui/generics/generic-extern-lifetime.stderr rename to tests/ui/generics/generic-extern-lifetime.stderr diff --git a/src/test/ui/generics/generic-extern-mangle.rs b/tests/ui/generics/generic-extern-mangle.rs similarity index 100% rename from src/test/ui/generics/generic-extern-mangle.rs rename to tests/ui/generics/generic-extern-mangle.rs diff --git a/src/test/ui/generics/generic-extern.rs b/tests/ui/generics/generic-extern.rs similarity index 100% rename from src/test/ui/generics/generic-extern.rs rename to tests/ui/generics/generic-extern.rs diff --git a/src/test/ui/generics/generic-extern.stderr b/tests/ui/generics/generic-extern.stderr similarity index 100% rename from src/test/ui/generics/generic-extern.stderr rename to tests/ui/generics/generic-extern.stderr diff --git a/src/test/ui/generics/generic-fn-infer.rs b/tests/ui/generics/generic-fn-infer.rs similarity index 100% rename from src/test/ui/generics/generic-fn-infer.rs rename to tests/ui/generics/generic-fn-infer.rs diff --git a/src/test/ui/generics/generic-fn-twice.rs b/tests/ui/generics/generic-fn-twice.rs similarity index 100% rename from src/test/ui/generics/generic-fn-twice.rs rename to tests/ui/generics/generic-fn-twice.rs diff --git a/src/test/ui/generics/generic-fn-unique.rs b/tests/ui/generics/generic-fn-unique.rs similarity index 100% rename from src/test/ui/generics/generic-fn-unique.rs rename to tests/ui/generics/generic-fn-unique.rs diff --git a/src/test/ui/generics/generic-fn.rs b/tests/ui/generics/generic-fn.rs similarity index 100% rename from src/test/ui/generics/generic-fn.rs rename to tests/ui/generics/generic-fn.rs diff --git a/src/test/ui/generics/generic-function-item-where-type.rs b/tests/ui/generics/generic-function-item-where-type.rs similarity index 100% rename from src/test/ui/generics/generic-function-item-where-type.rs rename to tests/ui/generics/generic-function-item-where-type.rs diff --git a/src/test/ui/generics/generic-function-item-where-type.stderr b/tests/ui/generics/generic-function-item-where-type.stderr similarity index 100% rename from src/test/ui/generics/generic-function-item-where-type.stderr rename to tests/ui/generics/generic-function-item-where-type.stderr diff --git a/src/test/ui/generics/generic-impl-less-params-with-defaults.rs b/tests/ui/generics/generic-impl-less-params-with-defaults.rs similarity index 100% rename from src/test/ui/generics/generic-impl-less-params-with-defaults.rs rename to tests/ui/generics/generic-impl-less-params-with-defaults.rs diff --git a/src/test/ui/generics/generic-impl-less-params-with-defaults.stderr b/tests/ui/generics/generic-impl-less-params-with-defaults.stderr similarity index 100% rename from src/test/ui/generics/generic-impl-less-params-with-defaults.stderr rename to tests/ui/generics/generic-impl-less-params-with-defaults.stderr diff --git a/src/test/ui/generics/generic-impl-more-params-with-defaults.rs b/tests/ui/generics/generic-impl-more-params-with-defaults.rs similarity index 100% rename from src/test/ui/generics/generic-impl-more-params-with-defaults.rs rename to tests/ui/generics/generic-impl-more-params-with-defaults.rs diff --git a/src/test/ui/generics/generic-impl-more-params-with-defaults.stderr b/tests/ui/generics/generic-impl-more-params-with-defaults.stderr similarity index 100% rename from src/test/ui/generics/generic-impl-more-params-with-defaults.stderr rename to tests/ui/generics/generic-impl-more-params-with-defaults.stderr diff --git a/src/test/ui/generics/generic-ivec-leak.rs b/tests/ui/generics/generic-ivec-leak.rs similarity index 100% rename from src/test/ui/generics/generic-ivec-leak.rs rename to tests/ui/generics/generic-ivec-leak.rs diff --git a/src/test/ui/generics/generic-lifetime-trait-impl.rs b/tests/ui/generics/generic-lifetime-trait-impl.rs similarity index 100% rename from src/test/ui/generics/generic-lifetime-trait-impl.rs rename to tests/ui/generics/generic-lifetime-trait-impl.rs diff --git a/src/test/ui/generics/generic-lifetime-trait-impl.stderr b/tests/ui/generics/generic-lifetime-trait-impl.stderr similarity index 100% rename from src/test/ui/generics/generic-lifetime-trait-impl.stderr rename to tests/ui/generics/generic-lifetime-trait-impl.stderr diff --git a/src/test/ui/generics/generic-newtype-struct.rs b/tests/ui/generics/generic-newtype-struct.rs similarity index 100% rename from src/test/ui/generics/generic-newtype-struct.rs rename to tests/ui/generics/generic-newtype-struct.rs diff --git a/src/test/ui/generics/generic-no-mangle.fixed b/tests/ui/generics/generic-no-mangle.fixed similarity index 100% rename from src/test/ui/generics/generic-no-mangle.fixed rename to tests/ui/generics/generic-no-mangle.fixed diff --git a/src/test/ui/generics/generic-no-mangle.rs b/tests/ui/generics/generic-no-mangle.rs similarity index 100% rename from src/test/ui/generics/generic-no-mangle.rs rename to tests/ui/generics/generic-no-mangle.rs diff --git a/src/test/ui/generics/generic-no-mangle.stderr b/tests/ui/generics/generic-no-mangle.stderr similarity index 100% rename from src/test/ui/generics/generic-no-mangle.stderr rename to tests/ui/generics/generic-no-mangle.stderr diff --git a/src/test/ui/generics/generic-non-trailing-defaults.rs b/tests/ui/generics/generic-non-trailing-defaults.rs similarity index 100% rename from src/test/ui/generics/generic-non-trailing-defaults.rs rename to tests/ui/generics/generic-non-trailing-defaults.rs diff --git a/src/test/ui/generics/generic-non-trailing-defaults.stderr b/tests/ui/generics/generic-non-trailing-defaults.stderr similarity index 100% rename from src/test/ui/generics/generic-non-trailing-defaults.stderr rename to tests/ui/generics/generic-non-trailing-defaults.stderr diff --git a/src/test/ui/generics/generic-object.rs b/tests/ui/generics/generic-object.rs similarity index 100% rename from src/test/ui/generics/generic-object.rs rename to tests/ui/generics/generic-object.rs diff --git a/src/test/ui/generics/generic-param-attrs.rs b/tests/ui/generics/generic-param-attrs.rs similarity index 100% rename from src/test/ui/generics/generic-param-attrs.rs rename to tests/ui/generics/generic-param-attrs.rs diff --git a/src/test/ui/generics/generic-recursive-tag.rs b/tests/ui/generics/generic-recursive-tag.rs similarity index 100% rename from src/test/ui/generics/generic-recursive-tag.rs rename to tests/ui/generics/generic-recursive-tag.rs diff --git a/src/test/ui/generics/generic-static-methods.rs b/tests/ui/generics/generic-static-methods.rs similarity index 100% rename from src/test/ui/generics/generic-static-methods.rs rename to tests/ui/generics/generic-static-methods.rs diff --git a/src/test/ui/generics/generic-tag-corruption.rs b/tests/ui/generics/generic-tag-corruption.rs similarity index 100% rename from src/test/ui/generics/generic-tag-corruption.rs rename to tests/ui/generics/generic-tag-corruption.rs diff --git a/src/test/ui/generics/generic-tag-local.rs b/tests/ui/generics/generic-tag-local.rs similarity index 100% rename from src/test/ui/generics/generic-tag-local.rs rename to tests/ui/generics/generic-tag-local.rs diff --git a/src/test/ui/generics/generic-tag-match.rs b/tests/ui/generics/generic-tag-match.rs similarity index 100% rename from src/test/ui/generics/generic-tag-match.rs rename to tests/ui/generics/generic-tag-match.rs diff --git a/src/test/ui/generics/generic-tag-values.rs b/tests/ui/generics/generic-tag-values.rs similarity index 100% rename from src/test/ui/generics/generic-tag-values.rs rename to tests/ui/generics/generic-tag-values.rs diff --git a/src/test/ui/generics/generic-tag.rs b/tests/ui/generics/generic-tag.rs similarity index 100% rename from src/test/ui/generics/generic-tag.rs rename to tests/ui/generics/generic-tag.rs diff --git a/src/test/ui/generics/generic-temporary.rs b/tests/ui/generics/generic-temporary.rs similarity index 100% rename from src/test/ui/generics/generic-temporary.rs rename to tests/ui/generics/generic-temporary.rs diff --git a/src/test/ui/generics/generic-tup.rs b/tests/ui/generics/generic-tup.rs similarity index 100% rename from src/test/ui/generics/generic-tup.rs rename to tests/ui/generics/generic-tup.rs diff --git a/src/test/ui/generics/generic-type-less-params-with-defaults.rs b/tests/ui/generics/generic-type-less-params-with-defaults.rs similarity index 100% rename from src/test/ui/generics/generic-type-less-params-with-defaults.rs rename to tests/ui/generics/generic-type-less-params-with-defaults.rs diff --git a/src/test/ui/generics/generic-type-less-params-with-defaults.stderr b/tests/ui/generics/generic-type-less-params-with-defaults.stderr similarity index 100% rename from src/test/ui/generics/generic-type-less-params-with-defaults.stderr rename to tests/ui/generics/generic-type-less-params-with-defaults.stderr diff --git a/src/test/ui/generics/generic-type-more-params-with-defaults.rs b/tests/ui/generics/generic-type-more-params-with-defaults.rs similarity index 100% rename from src/test/ui/generics/generic-type-more-params-with-defaults.rs rename to tests/ui/generics/generic-type-more-params-with-defaults.rs diff --git a/src/test/ui/generics/generic-type-more-params-with-defaults.stderr b/tests/ui/generics/generic-type-more-params-with-defaults.stderr similarity index 100% rename from src/test/ui/generics/generic-type-more-params-with-defaults.stderr rename to tests/ui/generics/generic-type-more-params-with-defaults.stderr diff --git a/src/test/ui/generics/generic-type-params-forward-mention.rs b/tests/ui/generics/generic-type-params-forward-mention.rs similarity index 100% rename from src/test/ui/generics/generic-type-params-forward-mention.rs rename to tests/ui/generics/generic-type-params-forward-mention.rs diff --git a/src/test/ui/generics/generic-type-params-forward-mention.stderr b/tests/ui/generics/generic-type-params-forward-mention.stderr similarity index 100% rename from src/test/ui/generics/generic-type-params-forward-mention.stderr rename to tests/ui/generics/generic-type-params-forward-mention.stderr diff --git a/src/test/ui/generics/generic-type-params-name-repr.rs b/tests/ui/generics/generic-type-params-name-repr.rs similarity index 100% rename from src/test/ui/generics/generic-type-params-name-repr.rs rename to tests/ui/generics/generic-type-params-name-repr.rs diff --git a/src/test/ui/generics/generic-type-params-name-repr.stderr b/tests/ui/generics/generic-type-params-name-repr.stderr similarity index 100% rename from src/test/ui/generics/generic-type-params-name-repr.stderr rename to tests/ui/generics/generic-type-params-name-repr.stderr diff --git a/src/test/ui/generics/generic-type-synonym.rs b/tests/ui/generics/generic-type-synonym.rs similarity index 100% rename from src/test/ui/generics/generic-type-synonym.rs rename to tests/ui/generics/generic-type-synonym.rs diff --git a/src/test/ui/generics/generic-type.rs b/tests/ui/generics/generic-type.rs similarity index 100% rename from src/test/ui/generics/generic-type.rs rename to tests/ui/generics/generic-type.rs diff --git a/src/test/ui/generics/generic-unique.rs b/tests/ui/generics/generic-unique.rs similarity index 100% rename from src/test/ui/generics/generic-unique.rs rename to tests/ui/generics/generic-unique.rs diff --git a/src/test/ui/generics/issue-1112.rs b/tests/ui/generics/issue-1112.rs similarity index 100% rename from src/test/ui/generics/issue-1112.rs rename to tests/ui/generics/issue-1112.rs diff --git a/src/test/ui/generics/issue-2936.rs b/tests/ui/generics/issue-2936.rs similarity index 100% rename from src/test/ui/generics/issue-2936.rs rename to tests/ui/generics/issue-2936.rs diff --git a/src/test/ui/generics/issue-32498.rs b/tests/ui/generics/issue-32498.rs similarity index 100% rename from src/test/ui/generics/issue-32498.rs rename to tests/ui/generics/issue-32498.rs diff --git a/src/test/ui/generics/issue-333.rs b/tests/ui/generics/issue-333.rs similarity index 100% rename from src/test/ui/generics/issue-333.rs rename to tests/ui/generics/issue-333.rs diff --git a/src/test/ui/generics/issue-59508-1.rs b/tests/ui/generics/issue-59508-1.rs similarity index 100% rename from src/test/ui/generics/issue-59508-1.rs rename to tests/ui/generics/issue-59508-1.rs diff --git a/src/test/ui/generics/issue-59508-1.stderr b/tests/ui/generics/issue-59508-1.stderr similarity index 100% rename from src/test/ui/generics/issue-59508-1.stderr rename to tests/ui/generics/issue-59508-1.stderr diff --git a/src/test/ui/generics/issue-59508.fixed b/tests/ui/generics/issue-59508.fixed similarity index 100% rename from src/test/ui/generics/issue-59508.fixed rename to tests/ui/generics/issue-59508.fixed diff --git a/src/test/ui/generics/issue-59508.rs b/tests/ui/generics/issue-59508.rs similarity index 100% rename from src/test/ui/generics/issue-59508.rs rename to tests/ui/generics/issue-59508.rs diff --git a/src/test/ui/generics/issue-59508.stderr b/tests/ui/generics/issue-59508.stderr similarity index 100% rename from src/test/ui/generics/issue-59508.stderr rename to tests/ui/generics/issue-59508.stderr diff --git a/src/test/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.rs b/tests/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.rs similarity index 100% rename from src/test/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.rs rename to tests/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.rs diff --git a/src/test/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.stderr b/tests/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.stderr similarity index 100% rename from src/test/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.stderr rename to tests/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.stderr diff --git a/src/test/ui/generics/issue-61631-default-type-param-cannot-reference-self.rs b/tests/ui/generics/issue-61631-default-type-param-cannot-reference-self.rs similarity index 100% rename from src/test/ui/generics/issue-61631-default-type-param-cannot-reference-self.rs rename to tests/ui/generics/issue-61631-default-type-param-cannot-reference-self.rs diff --git a/src/test/ui/generics/issue-61631-default-type-param-cannot-reference-self.stderr b/tests/ui/generics/issue-61631-default-type-param-cannot-reference-self.stderr similarity index 100% rename from src/test/ui/generics/issue-61631-default-type-param-cannot-reference-self.stderr rename to tests/ui/generics/issue-61631-default-type-param-cannot-reference-self.stderr diff --git a/src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.rs b/tests/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.rs similarity index 100% rename from src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.rs rename to tests/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.rs diff --git a/src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr b/tests/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr similarity index 100% rename from src/test/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr rename to tests/ui/generics/issue-65285-incorrect-explicit-lifetime-name-needed.stderr diff --git a/src/test/ui/generics/issue-80512-param-reordering-with-defaults.rs b/tests/ui/generics/issue-80512-param-reordering-with-defaults.rs similarity index 100% rename from src/test/ui/generics/issue-80512-param-reordering-with-defaults.rs rename to tests/ui/generics/issue-80512-param-reordering-with-defaults.rs diff --git a/src/test/ui/generics/issue-80512-param-reordering-with-defaults.stderr b/tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr similarity index 100% rename from src/test/ui/generics/issue-80512-param-reordering-with-defaults.stderr rename to tests/ui/generics/issue-80512-param-reordering-with-defaults.stderr diff --git a/src/test/ui/generics/issue-94432-garbage-ice.rs b/tests/ui/generics/issue-94432-garbage-ice.rs similarity index 100% rename from src/test/ui/generics/issue-94432-garbage-ice.rs rename to tests/ui/generics/issue-94432-garbage-ice.rs diff --git a/src/test/ui/generics/issue-94923.rs b/tests/ui/generics/issue-94923.rs similarity index 100% rename from src/test/ui/generics/issue-94923.rs rename to tests/ui/generics/issue-94923.rs diff --git a/src/test/ui/generics/issue-95208-ignore-qself.fixed b/tests/ui/generics/issue-95208-ignore-qself.fixed similarity index 100% rename from src/test/ui/generics/issue-95208-ignore-qself.fixed rename to tests/ui/generics/issue-95208-ignore-qself.fixed diff --git a/src/test/ui/generics/issue-95208-ignore-qself.rs b/tests/ui/generics/issue-95208-ignore-qself.rs similarity index 100% rename from src/test/ui/generics/issue-95208-ignore-qself.rs rename to tests/ui/generics/issue-95208-ignore-qself.rs diff --git a/src/test/ui/generics/issue-95208-ignore-qself.stderr b/tests/ui/generics/issue-95208-ignore-qself.stderr similarity index 100% rename from src/test/ui/generics/issue-95208-ignore-qself.stderr rename to tests/ui/generics/issue-95208-ignore-qself.stderr diff --git a/src/test/ui/generics/issue-95208.fixed b/tests/ui/generics/issue-95208.fixed similarity index 100% rename from src/test/ui/generics/issue-95208.fixed rename to tests/ui/generics/issue-95208.fixed diff --git a/src/test/ui/generics/issue-95208.rs b/tests/ui/generics/issue-95208.rs similarity index 100% rename from src/test/ui/generics/issue-95208.rs rename to tests/ui/generics/issue-95208.rs diff --git a/src/test/ui/generics/issue-95208.stderr b/tests/ui/generics/issue-95208.stderr similarity index 100% rename from src/test/ui/generics/issue-95208.stderr rename to tests/ui/generics/issue-95208.stderr diff --git a/src/test/ui/generics/issue-98432.rs b/tests/ui/generics/issue-98432.rs similarity index 100% rename from src/test/ui/generics/issue-98432.rs rename to tests/ui/generics/issue-98432.rs diff --git a/src/test/ui/generics/issue-98432.stderr b/tests/ui/generics/issue-98432.stderr similarity index 100% rename from src/test/ui/generics/issue-98432.stderr rename to tests/ui/generics/issue-98432.stderr diff --git a/src/test/ui/generics/lifetime-before-type-params.rs b/tests/ui/generics/lifetime-before-type-params.rs similarity index 100% rename from src/test/ui/generics/lifetime-before-type-params.rs rename to tests/ui/generics/lifetime-before-type-params.rs diff --git a/src/test/ui/generics/lifetime-before-type-params.stderr b/tests/ui/generics/lifetime-before-type-params.stderr similarity index 100% rename from src/test/ui/generics/lifetime-before-type-params.stderr rename to tests/ui/generics/lifetime-before-type-params.stderr diff --git a/src/test/ui/generics/mid-path-type-params.rs b/tests/ui/generics/mid-path-type-params.rs similarity index 100% rename from src/test/ui/generics/mid-path-type-params.rs rename to tests/ui/generics/mid-path-type-params.rs diff --git a/src/test/ui/generics/param-in-ct-in-ty-param-default.rs b/tests/ui/generics/param-in-ct-in-ty-param-default.rs similarity index 100% rename from src/test/ui/generics/param-in-ct-in-ty-param-default.rs rename to tests/ui/generics/param-in-ct-in-ty-param-default.rs diff --git a/src/test/ui/generics/param-in-ct-in-ty-param-default.stderr b/tests/ui/generics/param-in-ct-in-ty-param-default.stderr similarity index 100% rename from src/test/ui/generics/param-in-ct-in-ty-param-default.stderr rename to tests/ui/generics/param-in-ct-in-ty-param-default.stderr diff --git a/src/test/ui/generics/post_monomorphization_error_backtrace.rs b/tests/ui/generics/post_monomorphization_error_backtrace.rs similarity index 100% rename from src/test/ui/generics/post_monomorphization_error_backtrace.rs rename to tests/ui/generics/post_monomorphization_error_backtrace.rs diff --git a/src/test/ui/generics/post_monomorphization_error_backtrace.stderr b/tests/ui/generics/post_monomorphization_error_backtrace.stderr similarity index 100% rename from src/test/ui/generics/post_monomorphization_error_backtrace.stderr rename to tests/ui/generics/post_monomorphization_error_backtrace.stderr diff --git a/src/test/ui/generics/single-colon-path-not-const-generics.rs b/tests/ui/generics/single-colon-path-not-const-generics.rs similarity index 100% rename from src/test/ui/generics/single-colon-path-not-const-generics.rs rename to tests/ui/generics/single-colon-path-not-const-generics.rs diff --git a/src/test/ui/generics/single-colon-path-not-const-generics.stderr b/tests/ui/generics/single-colon-path-not-const-generics.stderr similarity index 100% rename from src/test/ui/generics/single-colon-path-not-const-generics.stderr rename to tests/ui/generics/single-colon-path-not-const-generics.stderr diff --git a/src/test/ui/generics/type-params-in-for-each.rs b/tests/ui/generics/type-params-in-for-each.rs similarity index 100% rename from src/test/ui/generics/type-params-in-for-each.rs rename to tests/ui/generics/type-params-in-for-each.rs diff --git a/src/test/ui/generics/wrong-number-of-args.rs b/tests/ui/generics/wrong-number-of-args.rs similarity index 100% rename from src/test/ui/generics/wrong-number-of-args.rs rename to tests/ui/generics/wrong-number-of-args.rs diff --git a/src/test/ui/generics/wrong-number-of-args.stderr b/tests/ui/generics/wrong-number-of-args.stderr similarity index 100% rename from src/test/ui/generics/wrong-number-of-args.stderr rename to tests/ui/generics/wrong-number-of-args.stderr diff --git a/src/test/ui/global-scope.rs b/tests/ui/global-scope.rs similarity index 100% rename from src/test/ui/global-scope.rs rename to tests/ui/global-scope.rs diff --git a/src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs rename to tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs diff --git a/src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.stderr b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.stderr rename to tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.stderr diff --git a/src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.rs b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.rs rename to tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.rs diff --git a/src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.stderr b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.stderr rename to tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision2.stderr diff --git a/src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.rs b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.rs rename to tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.rs diff --git a/src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.stderr b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.stderr rename to tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision3.stderr diff --git a/src/test/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.rs b/tests/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.rs rename to tests/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.rs diff --git a/src/test/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.stderr b/tests/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.stderr rename to tests/ui/half-open-range-patterns/feature-gate-half-open-range-patterns-in-slices.stderr diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-bad-types.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-bad-types.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-bad-types.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-bad-types.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-bad-types.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-bad-types.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-bad-types.stderr rename to tests/ui/half-open-range-patterns/half-open-range-pats-bad-types.stderr diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr rename to tests/ui/half-open-range-patterns/half-open-range-pats-exhaustive-fail.stderr diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-pass.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-exhaustive-pass.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-exhaustive-pass.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-exhaustive-pass.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr rename to tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.stderr rename to tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-no-end.stderr diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.stderr rename to tests/ui/half-open-range-patterns/half-open-range-pats-ref-ambiguous-interp.stderr diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-semantics.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-semantics.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-semantics.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-syntactic-pass.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-syntactic-pass.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-syntactic-pass.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-syntactic-pass.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.rs b/tests/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.rs rename to tests/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.rs diff --git a/src/test/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.stderr b/tests/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.stderr rename to tests/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.stderr diff --git a/src/test/ui/half-open-range-patterns/pat-tuple-4.rs b/tests/ui/half-open-range-patterns/pat-tuple-4.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/pat-tuple-4.rs rename to tests/ui/half-open-range-patterns/pat-tuple-4.rs diff --git a/src/test/ui/half-open-range-patterns/pat-tuple-5.rs b/tests/ui/half-open-range-patterns/pat-tuple-5.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/pat-tuple-5.rs rename to tests/ui/half-open-range-patterns/pat-tuple-5.rs diff --git a/src/test/ui/half-open-range-patterns/pat-tuple-5.stderr b/tests/ui/half-open-range-patterns/pat-tuple-5.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/pat-tuple-5.stderr rename to tests/ui/half-open-range-patterns/pat-tuple-5.stderr diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions0.rs b/tests/ui/half-open-range-patterns/range_pat_interactions0.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions0.rs rename to tests/ui/half-open-range-patterns/range_pat_interactions0.rs diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions1.rs b/tests/ui/half-open-range-patterns/range_pat_interactions1.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions1.rs rename to tests/ui/half-open-range-patterns/range_pat_interactions1.rs diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions1.stderr b/tests/ui/half-open-range-patterns/range_pat_interactions1.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions1.stderr rename to tests/ui/half-open-range-patterns/range_pat_interactions1.stderr diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions2.rs b/tests/ui/half-open-range-patterns/range_pat_interactions2.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions2.rs rename to tests/ui/half-open-range-patterns/range_pat_interactions2.rs diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions2.stderr b/tests/ui/half-open-range-patterns/range_pat_interactions2.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions2.stderr rename to tests/ui/half-open-range-patterns/range_pat_interactions2.stderr diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions3.rs b/tests/ui/half-open-range-patterns/range_pat_interactions3.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions3.rs rename to tests/ui/half-open-range-patterns/range_pat_interactions3.rs diff --git a/src/test/ui/half-open-range-patterns/range_pat_interactions3.stderr b/tests/ui/half-open-range-patterns/range_pat_interactions3.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/range_pat_interactions3.stderr rename to tests/ui/half-open-range-patterns/range_pat_interactions3.stderr diff --git a/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.rs b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem0.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.rs rename to tests/ui/half-open-range-patterns/slice_pattern_syntax_problem0.rs diff --git a/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr rename to tests/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr diff --git a/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem1.rs b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem1.rs rename to tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.rs diff --git a/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr similarity index 100% rename from src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr rename to tests/ui/half-open-range-patterns/slice_pattern_syntax_problem1.stderr diff --git a/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem2.rs b/tests/ui/half-open-range-patterns/slice_pattern_syntax_problem2.rs similarity index 100% rename from src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem2.rs rename to tests/ui/half-open-range-patterns/slice_pattern_syntax_problem2.rs diff --git a/src/test/ui/hashmap/hashmap-capacity-overflow.rs b/tests/ui/hashmap/hashmap-capacity-overflow.rs similarity index 100% rename from src/test/ui/hashmap/hashmap-capacity-overflow.rs rename to tests/ui/hashmap/hashmap-capacity-overflow.rs diff --git a/src/test/ui/hashmap/hashmap-index-mut.rs b/tests/ui/hashmap/hashmap-index-mut.rs similarity index 100% rename from src/test/ui/hashmap/hashmap-index-mut.rs rename to tests/ui/hashmap/hashmap-index-mut.rs diff --git a/src/test/ui/hashmap/hashmap-index-mut.stderr b/tests/ui/hashmap/hashmap-index-mut.stderr similarity index 100% rename from src/test/ui/hashmap/hashmap-index-mut.stderr rename to tests/ui/hashmap/hashmap-index-mut.stderr diff --git a/src/test/ui/hashmap/hashmap-iter-value-lifetime.rs b/tests/ui/hashmap/hashmap-iter-value-lifetime.rs similarity index 100% rename from src/test/ui/hashmap/hashmap-iter-value-lifetime.rs rename to tests/ui/hashmap/hashmap-iter-value-lifetime.rs diff --git a/src/test/ui/hashmap/hashmap-iter-value-lifetime.stderr b/tests/ui/hashmap/hashmap-iter-value-lifetime.stderr similarity index 100% rename from src/test/ui/hashmap/hashmap-iter-value-lifetime.stderr rename to tests/ui/hashmap/hashmap-iter-value-lifetime.stderr diff --git a/src/test/ui/hashmap/hashmap-lifetimes.rs b/tests/ui/hashmap/hashmap-lifetimes.rs similarity index 100% rename from src/test/ui/hashmap/hashmap-lifetimes.rs rename to tests/ui/hashmap/hashmap-lifetimes.rs diff --git a/src/test/ui/hashmap/hashmap-lifetimes.stderr b/tests/ui/hashmap/hashmap-lifetimes.stderr similarity index 100% rename from src/test/ui/hashmap/hashmap-lifetimes.stderr rename to tests/ui/hashmap/hashmap-lifetimes.stderr diff --git a/src/test/ui/hashmap/hashmap-memory.rs b/tests/ui/hashmap/hashmap-memory.rs similarity index 97% rename from src/test/ui/hashmap/hashmap-memory.rs rename to tests/ui/hashmap/hashmap-memory.rs index 2031196ab215e..87f8b6ad5730b 100644 --- a/src/test/ui/hashmap/hashmap-memory.rs +++ b/tests/ui/hashmap/hashmap-memory.rs @@ -90,5 +90,5 @@ mod map_reduce { pub fn main() { map_reduce::map_reduce( - vec!["../src/test/run-pass/hashmap-memory.rs".to_string()]); + vec!["../tests/run-pass/hashmap-memory.rs".to_string()]); } diff --git a/src/test/ui/hello.rs b/tests/ui/hello.rs similarity index 100% rename from src/test/ui/hello.rs rename to tests/ui/hello.rs diff --git a/src/test/ui/hello_world/main.rs b/tests/ui/hello_world/main.rs similarity index 100% rename from src/test/ui/hello_world/main.rs rename to tests/ui/hello_world/main.rs diff --git a/src/test/ui/higher-lifetime-bounds.rs b/tests/ui/higher-lifetime-bounds.rs similarity index 100% rename from src/test/ui/higher-lifetime-bounds.rs rename to tests/ui/higher-lifetime-bounds.rs diff --git a/src/test/ui/higher-lifetime-bounds.stderr b/tests/ui/higher-lifetime-bounds.stderr similarity index 100% rename from src/test/ui/higher-lifetime-bounds.stderr rename to tests/ui/higher-lifetime-bounds.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/complex.rs b/tests/ui/higher-rank-trait-bounds/complex.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/complex.rs rename to tests/ui/higher-rank-trait-bounds/complex.rs diff --git a/src/test/ui/higher-rank-trait-bounds/due-to-where-clause.rs b/tests/ui/higher-rank-trait-bounds/due-to-where-clause.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/due-to-where-clause.rs rename to tests/ui/higher-rank-trait-bounds/due-to-where-clause.rs diff --git a/src/test/ui/higher-rank-trait-bounds/due-to-where-clause.stderr b/tests/ui/higher-rank-trait-bounds/due-to-where-clause.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/due-to-where-clause.stderr rename to tests/ui/higher-rank-trait-bounds/due-to-where-clause.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.rs b/tests/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.rs rename to tests/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.stderr b/tests/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.stderr rename to tests/ui/higher-rank-trait-bounds/hang-on-deeply-nested-dyn.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-binder-levels-in-object-types.rs b/tests/ui/higher-rank-trait-bounds/hrtb-binder-levels-in-object-types.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-binder-levels-in-object-types.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-binder-levels-in-object-types.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.rs b/tests/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-conflate-regions.rs b/tests/ui/higher-rank-trait-bounds/hrtb-conflate-regions.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-conflate-regions.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-conflate-regions.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-conflate-regions.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-conflate-regions.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-conflate-regions.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-conflate-regions.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs b/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-debruijn-object-types-in-closures.rs b/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-object-types-in-closures.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-debruijn-object-types-in-closures.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-debruijn-object-types-in-closures.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.rs b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.rs b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-contravariant.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-covariant.rs b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-covariant.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-covariant.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-covariant.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.rs b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-trait-invariant.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-fn-like-trait-object.rs b/tests/ui/higher-rank-trait-bounds/hrtb-fn-like-trait-object.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-fn-like-trait-object.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-fn-like-trait-object.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-fn-like-trait.rs b/tests/ui/higher-rank-trait-bounds/hrtb-fn-like-trait.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-fn-like-trait.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-fn-like-trait.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.rs b/tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits-transitive.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.rs b/tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-higher-ranker-supertraits.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.rs b/tests/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-identity-fn-borrows.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-just-for-static.rs b/tests/ui/higher-rank-trait-bounds/hrtb-just-for-static.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-just-for-static.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-just-for-static.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-just-for-static.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-just-for-static.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-just-for-static.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-just-for-static.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.rs b/tests/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-malformed-lifetime-generics.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-opt-in-copy.rs b/tests/ui/higher-rank-trait-bounds/hrtb-opt-in-copy.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-opt-in-copy.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-opt-in-copy.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-parse.rs b/tests/ui/higher-rank-trait-bounds/hrtb-parse.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-parse.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-parse.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.polonius.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.polonius.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.polonius.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.polonius.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.rs b/tests/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-perfect-forwarding.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus-where-clause.rs b/tests/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus-where-clause.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus-where-clause.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus-where-clause.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus.rs b/tests/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-precedence-of-plus.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-resolve-lifetime.rs b/tests/ui/higher-rank-trait-bounds/hrtb-resolve-lifetime.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-resolve-lifetime.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-resolve-lifetime.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-trait-object-paren-notation.rs b/tests/ui/higher-rank-trait-bounds/hrtb-trait-object-paren-notation.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-trait-object-paren-notation.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-trait-object-paren-notation.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-trait-object-passed-to-closure.rs b/tests/ui/higher-rank-trait-bounds/hrtb-trait-object-passed-to-closure.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-trait-object-passed-to-closure.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-trait-object-passed-to-closure.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-type-outlives.rs b/tests/ui/higher-rank-trait-bounds/hrtb-type-outlives.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-type-outlives.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-type-outlives.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs b/tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs b/tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs rename to tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.rs diff --git a/src/test/ui/higher-rank-trait-bounds/hrtb-wrong-kind.stderr b/tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/hrtb-wrong-kind.stderr rename to tests/ui/higher-rank-trait-bounds/hrtb-wrong-kind.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/issue-100689.rs b/tests/ui/higher-rank-trait-bounds/issue-100689.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-100689.rs rename to tests/ui/higher-rank-trait-bounds/issue-100689.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-102899.rs b/tests/ui/higher-rank-trait-bounds/issue-102899.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-102899.rs rename to tests/ui/higher-rank-trait-bounds/issue-102899.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-30786.rs b/tests/ui/higher-rank-trait-bounds/issue-30786.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-30786.rs rename to tests/ui/higher-rank-trait-bounds/issue-30786.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-30786.stderr b/tests/ui/higher-rank-trait-bounds/issue-30786.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-30786.stderr rename to tests/ui/higher-rank-trait-bounds/issue-30786.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/issue-36139-normalize-closure-sig.rs b/tests/ui/higher-rank-trait-bounds/issue-36139-normalize-closure-sig.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-36139-normalize-closure-sig.rs rename to tests/ui/higher-rank-trait-bounds/issue-36139-normalize-closure-sig.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-43623.rs b/tests/ui/higher-rank-trait-bounds/issue-43623.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-43623.rs rename to tests/ui/higher-rank-trait-bounds/issue-43623.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-46989.rs b/tests/ui/higher-rank-trait-bounds/issue-46989.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-46989.rs rename to tests/ui/higher-rank-trait-bounds/issue-46989.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-46989.stderr b/tests/ui/higher-rank-trait-bounds/issue-46989.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-46989.stderr rename to tests/ui/higher-rank-trait-bounds/issue-46989.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/issue-57639.rs b/tests/ui/higher-rank-trait-bounds/issue-57639.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-57639.rs rename to tests/ui/higher-rank-trait-bounds/issue-57639.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-58451.rs b/tests/ui/higher-rank-trait-bounds/issue-58451.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-58451.rs rename to tests/ui/higher-rank-trait-bounds/issue-58451.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-58451.stderr b/tests/ui/higher-rank-trait-bounds/issue-58451.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-58451.stderr rename to tests/ui/higher-rank-trait-bounds/issue-58451.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/issue-59311.rs b/tests/ui/higher-rank-trait-bounds/issue-59311.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-59311.rs rename to tests/ui/higher-rank-trait-bounds/issue-59311.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-59311.stderr b/tests/ui/higher-rank-trait-bounds/issue-59311.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-59311.stderr rename to tests/ui/higher-rank-trait-bounds/issue-59311.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/issue-60283.rs b/tests/ui/higher-rank-trait-bounds/issue-60283.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-60283.rs rename to tests/ui/higher-rank-trait-bounds/issue-60283.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.rs b/tests/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.rs rename to tests/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.stderr b/tests/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.stderr rename to tests/ui/higher-rank-trait-bounds/issue-62203-hrtb-ice.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/issue-88446.rs b/tests/ui/higher-rank-trait-bounds/issue-88446.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-88446.rs rename to tests/ui/higher-rank-trait-bounds/issue-88446.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-88586-hr-self-outlives-in-trait-def.rs b/tests/ui/higher-rank-trait-bounds/issue-88586-hr-self-outlives-in-trait-def.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-88586-hr-self-outlives-in-trait-def.rs rename to tests/ui/higher-rank-trait-bounds/issue-88586-hr-self-outlives-in-trait-def.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-90177.rs b/tests/ui/higher-rank-trait-bounds/issue-90177.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-90177.rs rename to tests/ui/higher-rank-trait-bounds/issue-90177.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-95034.rs b/tests/ui/higher-rank-trait-bounds/issue-95034.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-95034.rs rename to tests/ui/higher-rank-trait-bounds/issue-95034.rs diff --git a/src/test/ui/higher-rank-trait-bounds/issue-95230.rs b/tests/ui/higher-rank-trait-bounds/issue-95230.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/issue-95230.rs rename to tests/ui/higher-rank-trait-bounds/issue-95230.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-44005.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-44005.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-44005.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-44005.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-56556.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-56556.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-56556.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-56556.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-1.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-1.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-1.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-1.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-2.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-2.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-2.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-2.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-3.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-4.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-4.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-4.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-4.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-5.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-5.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-5.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-5.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-6.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-6.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-6.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-62529-6.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-70120.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-70120.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-70120.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-70120.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.migrate.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.migrate.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.migrate.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.migrate.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-74261.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-76956.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-76956.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-76956.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-76956.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80706.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80706.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80706.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80706.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80956.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80956.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80956.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-80956.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-81809.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-81809.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-81809.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-81809.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89118.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89436.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89436.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89436.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-89436.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90612.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90612.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90612.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90612.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90638.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90638.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90638.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90638.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90875.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90875.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90875.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90875.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90950.stderr diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.rs b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.rs similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.rs rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.rs diff --git a/src/test/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.stderr b/tests/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.stderr similarity index 100% rename from src/test/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.stderr rename to tests/ui/higher-rank-trait-bounds/normalize-under-binder/norm-before-method-resolution.stderr diff --git a/src/test/ui/hr-subtype/hr-subtype.bound_a_b_ret_a_vs_bound_a_ret_a.stderr b/tests/ui/hr-subtype/hr-subtype.bound_a_b_ret_a_vs_bound_a_ret_a.stderr similarity index 100% rename from src/test/ui/hr-subtype/hr-subtype.bound_a_b_ret_a_vs_bound_a_ret_a.stderr rename to tests/ui/hr-subtype/hr-subtype.bound_a_b_ret_a_vs_bound_a_ret_a.stderr diff --git a/src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr b/tests/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr similarity index 100% rename from src/test/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr rename to tests/ui/hr-subtype/hr-subtype.bound_a_vs_free_x.stderr diff --git a/src/test/ui/hr-subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a.stderr b/tests/ui/hr-subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a.stderr similarity index 100% rename from src/test/ui/hr-subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a.stderr rename to tests/ui/hr-subtype/hr-subtype.bound_inv_a_b_vs_bound_inv_a.stderr diff --git a/src/test/ui/hr-subtype/hr-subtype.free_inv_x_vs_free_inv_y.stderr b/tests/ui/hr-subtype/hr-subtype.free_inv_x_vs_free_inv_y.stderr similarity index 100% rename from src/test/ui/hr-subtype/hr-subtype.free_inv_x_vs_free_inv_y.stderr rename to tests/ui/hr-subtype/hr-subtype.free_inv_x_vs_free_inv_y.stderr diff --git a/src/test/ui/hr-subtype/hr-subtype.free_x_vs_free_y.stderr b/tests/ui/hr-subtype/hr-subtype.free_x_vs_free_y.stderr similarity index 100% rename from src/test/ui/hr-subtype/hr-subtype.free_x_vs_free_y.stderr rename to tests/ui/hr-subtype/hr-subtype.free_x_vs_free_y.stderr diff --git a/src/test/ui/hr-subtype/hr-subtype.rs b/tests/ui/hr-subtype/hr-subtype.rs similarity index 100% rename from src/test/ui/hr-subtype/hr-subtype.rs rename to tests/ui/hr-subtype/hr-subtype.rs diff --git a/src/test/ui/hr-subtype/placeholder-pattern-fail.rs b/tests/ui/hr-subtype/placeholder-pattern-fail.rs similarity index 100% rename from src/test/ui/hr-subtype/placeholder-pattern-fail.rs rename to tests/ui/hr-subtype/placeholder-pattern-fail.rs diff --git a/src/test/ui/hr-subtype/placeholder-pattern-fail.stderr b/tests/ui/hr-subtype/placeholder-pattern-fail.stderr similarity index 100% rename from src/test/ui/hr-subtype/placeholder-pattern-fail.stderr rename to tests/ui/hr-subtype/placeholder-pattern-fail.stderr diff --git a/src/test/ui/hr-subtype/placeholder-pattern.rs b/tests/ui/hr-subtype/placeholder-pattern.rs similarity index 100% rename from src/test/ui/hr-subtype/placeholder-pattern.rs rename to tests/ui/hr-subtype/placeholder-pattern.rs diff --git a/src/test/ui/hr-subtype/return-static.rs b/tests/ui/hr-subtype/return-static.rs similarity index 100% rename from src/test/ui/hr-subtype/return-static.rs rename to tests/ui/hr-subtype/return-static.rs diff --git a/src/test/ui/hygiene/arguments.rs b/tests/ui/hygiene/arguments.rs similarity index 100% rename from src/test/ui/hygiene/arguments.rs rename to tests/ui/hygiene/arguments.rs diff --git a/src/test/ui/hygiene/arguments.stderr b/tests/ui/hygiene/arguments.stderr similarity index 100% rename from src/test/ui/hygiene/arguments.stderr rename to tests/ui/hygiene/arguments.stderr diff --git a/src/test/ui/hygiene/assoc_item_ctxt.rs b/tests/ui/hygiene/assoc_item_ctxt.rs similarity index 100% rename from src/test/ui/hygiene/assoc_item_ctxt.rs rename to tests/ui/hygiene/assoc_item_ctxt.rs diff --git a/src/test/ui/hygiene/assoc_item_ctxt.stderr b/tests/ui/hygiene/assoc_item_ctxt.stderr similarity index 100% rename from src/test/ui/hygiene/assoc_item_ctxt.stderr rename to tests/ui/hygiene/assoc_item_ctxt.stderr diff --git a/src/test/ui/hygiene/assoc_ty_bindings.rs b/tests/ui/hygiene/assoc_ty_bindings.rs similarity index 100% rename from src/test/ui/hygiene/assoc_ty_bindings.rs rename to tests/ui/hygiene/assoc_ty_bindings.rs diff --git a/src/test/ui/hygiene/auxiliary/codegen-attrs.rs b/tests/ui/hygiene/auxiliary/codegen-attrs.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/codegen-attrs.rs rename to tests/ui/hygiene/auxiliary/codegen-attrs.rs diff --git a/src/test/ui/hygiene/auxiliary/def-site-async-await.rs b/tests/ui/hygiene/auxiliary/def-site-async-await.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/def-site-async-await.rs rename to tests/ui/hygiene/auxiliary/def-site-async-await.rs diff --git a/src/test/ui/hygiene/auxiliary/fields.rs b/tests/ui/hygiene/auxiliary/fields.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/fields.rs rename to tests/ui/hygiene/auxiliary/fields.rs diff --git a/src/test/ui/hygiene/auxiliary/intercrate.rs b/tests/ui/hygiene/auxiliary/intercrate.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/intercrate.rs rename to tests/ui/hygiene/auxiliary/intercrate.rs diff --git a/src/test/ui/hygiene/auxiliary/legacy_interaction.rs b/tests/ui/hygiene/auxiliary/legacy_interaction.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/legacy_interaction.rs rename to tests/ui/hygiene/auxiliary/legacy_interaction.rs diff --git a/src/test/ui/hygiene/auxiliary/local_inner_macros.rs b/tests/ui/hygiene/auxiliary/local_inner_macros.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/local_inner_macros.rs rename to tests/ui/hygiene/auxiliary/local_inner_macros.rs diff --git a/src/test/ui/hygiene/auxiliary/methods.rs b/tests/ui/hygiene/auxiliary/methods.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/methods.rs rename to tests/ui/hygiene/auxiliary/methods.rs diff --git a/src/test/ui/hygiene/auxiliary/my_crate.rs b/tests/ui/hygiene/auxiliary/my_crate.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/my_crate.rs rename to tests/ui/hygiene/auxiliary/my_crate.rs diff --git a/src/test/ui/hygiene/auxiliary/needs_hygiene.rs b/tests/ui/hygiene/auxiliary/needs_hygiene.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/needs_hygiene.rs rename to tests/ui/hygiene/auxiliary/needs_hygiene.rs diff --git a/src/test/ui/hygiene/auxiliary/nested-dollar-crate.rs b/tests/ui/hygiene/auxiliary/nested-dollar-crate.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/nested-dollar-crate.rs rename to tests/ui/hygiene/auxiliary/nested-dollar-crate.rs diff --git a/src/test/ui/hygiene/auxiliary/not-libstd.rs b/tests/ui/hygiene/auxiliary/not-libstd.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/not-libstd.rs rename to tests/ui/hygiene/auxiliary/not-libstd.rs diff --git a/src/test/ui/hygiene/auxiliary/opaque-hygiene.rs b/tests/ui/hygiene/auxiliary/opaque-hygiene.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/opaque-hygiene.rs rename to tests/ui/hygiene/auxiliary/opaque-hygiene.rs diff --git a/src/test/ui/hygiene/auxiliary/pub_hygiene.rs b/tests/ui/hygiene/auxiliary/pub_hygiene.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/pub_hygiene.rs rename to tests/ui/hygiene/auxiliary/pub_hygiene.rs diff --git a/src/test/ui/hygiene/auxiliary/stdlib-prelude.rs b/tests/ui/hygiene/auxiliary/stdlib-prelude.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/stdlib-prelude.rs rename to tests/ui/hygiene/auxiliary/stdlib-prelude.rs diff --git a/src/test/ui/hygiene/auxiliary/transparent-basic.rs b/tests/ui/hygiene/auxiliary/transparent-basic.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/transparent-basic.rs rename to tests/ui/hygiene/auxiliary/transparent-basic.rs diff --git a/src/test/ui/hygiene/auxiliary/unhygienic_example.rs b/tests/ui/hygiene/auxiliary/unhygienic_example.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/unhygienic_example.rs rename to tests/ui/hygiene/auxiliary/unhygienic_example.rs diff --git a/src/test/ui/hygiene/auxiliary/use_by_macro.rs b/tests/ui/hygiene/auxiliary/use_by_macro.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/use_by_macro.rs rename to tests/ui/hygiene/auxiliary/use_by_macro.rs diff --git a/src/test/ui/hygiene/auxiliary/variants.rs b/tests/ui/hygiene/auxiliary/variants.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/variants.rs rename to tests/ui/hygiene/auxiliary/variants.rs diff --git a/src/test/ui/hygiene/auxiliary/xcrate.rs b/tests/ui/hygiene/auxiliary/xcrate.rs similarity index 100% rename from src/test/ui/hygiene/auxiliary/xcrate.rs rename to tests/ui/hygiene/auxiliary/xcrate.rs diff --git a/src/test/ui/hygiene/cross-crate-codegen-attrs.rs b/tests/ui/hygiene/cross-crate-codegen-attrs.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-codegen-attrs.rs rename to tests/ui/hygiene/cross-crate-codegen-attrs.rs diff --git a/src/test/ui/hygiene/cross-crate-define-and-use.rs b/tests/ui/hygiene/cross-crate-define-and-use.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-define-and-use.rs rename to tests/ui/hygiene/cross-crate-define-and-use.rs diff --git a/src/test/ui/hygiene/cross-crate-fields.rs b/tests/ui/hygiene/cross-crate-fields.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-fields.rs rename to tests/ui/hygiene/cross-crate-fields.rs diff --git a/src/test/ui/hygiene/cross-crate-glob-hygiene.rs b/tests/ui/hygiene/cross-crate-glob-hygiene.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-glob-hygiene.rs rename to tests/ui/hygiene/cross-crate-glob-hygiene.rs diff --git a/src/test/ui/hygiene/cross-crate-glob-hygiene.stderr b/tests/ui/hygiene/cross-crate-glob-hygiene.stderr similarity index 100% rename from src/test/ui/hygiene/cross-crate-glob-hygiene.stderr rename to tests/ui/hygiene/cross-crate-glob-hygiene.stderr diff --git a/src/test/ui/hygiene/cross-crate-methods.rs b/tests/ui/hygiene/cross-crate-methods.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-methods.rs rename to tests/ui/hygiene/cross-crate-methods.rs diff --git a/src/test/ui/hygiene/cross-crate-name-collision.rs b/tests/ui/hygiene/cross-crate-name-collision.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-name-collision.rs rename to tests/ui/hygiene/cross-crate-name-collision.rs diff --git a/src/test/ui/hygiene/cross-crate-name-hiding-2.rs b/tests/ui/hygiene/cross-crate-name-hiding-2.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-name-hiding-2.rs rename to tests/ui/hygiene/cross-crate-name-hiding-2.rs diff --git a/src/test/ui/hygiene/cross-crate-name-hiding-2.stderr b/tests/ui/hygiene/cross-crate-name-hiding-2.stderr similarity index 100% rename from src/test/ui/hygiene/cross-crate-name-hiding-2.stderr rename to tests/ui/hygiene/cross-crate-name-hiding-2.stderr diff --git a/src/test/ui/hygiene/cross-crate-name-hiding.rs b/tests/ui/hygiene/cross-crate-name-hiding.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-name-hiding.rs rename to tests/ui/hygiene/cross-crate-name-hiding.rs diff --git a/src/test/ui/hygiene/cross-crate-name-hiding.stderr b/tests/ui/hygiene/cross-crate-name-hiding.stderr similarity index 100% rename from src/test/ui/hygiene/cross-crate-name-hiding.stderr rename to tests/ui/hygiene/cross-crate-name-hiding.stderr diff --git a/src/test/ui/hygiene/cross-crate-redefine.rs b/tests/ui/hygiene/cross-crate-redefine.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-redefine.rs rename to tests/ui/hygiene/cross-crate-redefine.rs diff --git a/src/test/ui/hygiene/cross-crate-redefine.stderr b/tests/ui/hygiene/cross-crate-redefine.stderr similarity index 100% rename from src/test/ui/hygiene/cross-crate-redefine.stderr rename to tests/ui/hygiene/cross-crate-redefine.stderr diff --git a/src/test/ui/hygiene/cross-crate-variants.rs b/tests/ui/hygiene/cross-crate-variants.rs similarity index 100% rename from src/test/ui/hygiene/cross-crate-variants.rs rename to tests/ui/hygiene/cross-crate-variants.rs diff --git a/src/test/ui/hygiene/dollar-crate-modern.rs b/tests/ui/hygiene/dollar-crate-modern.rs similarity index 100% rename from src/test/ui/hygiene/dollar-crate-modern.rs rename to tests/ui/hygiene/dollar-crate-modern.rs diff --git a/src/test/ui/hygiene/duplicate_lifetimes.rs b/tests/ui/hygiene/duplicate_lifetimes.rs similarity index 100% rename from src/test/ui/hygiene/duplicate_lifetimes.rs rename to tests/ui/hygiene/duplicate_lifetimes.rs diff --git a/src/test/ui/hygiene/duplicate_lifetimes.stderr b/tests/ui/hygiene/duplicate_lifetimes.stderr similarity index 100% rename from src/test/ui/hygiene/duplicate_lifetimes.stderr rename to tests/ui/hygiene/duplicate_lifetimes.stderr diff --git a/src/test/ui/hygiene/eager-from-opaque-2.rs b/tests/ui/hygiene/eager-from-opaque-2.rs similarity index 100% rename from src/test/ui/hygiene/eager-from-opaque-2.rs rename to tests/ui/hygiene/eager-from-opaque-2.rs diff --git a/src/test/ui/hygiene/eager-from-opaque.rs b/tests/ui/hygiene/eager-from-opaque.rs similarity index 100% rename from src/test/ui/hygiene/eager-from-opaque.rs rename to tests/ui/hygiene/eager-from-opaque.rs diff --git a/src/test/ui/hygiene/expansion-info-reset.rs b/tests/ui/hygiene/expansion-info-reset.rs similarity index 100% rename from src/test/ui/hygiene/expansion-info-reset.rs rename to tests/ui/hygiene/expansion-info-reset.rs diff --git a/src/test/ui/hygiene/expansion-info-reset.stderr b/tests/ui/hygiene/expansion-info-reset.stderr similarity index 100% rename from src/test/ui/hygiene/expansion-info-reset.stderr rename to tests/ui/hygiene/expansion-info-reset.stderr diff --git a/src/test/ui/hygiene/extern-prelude-from-opaque-fail.rs b/tests/ui/hygiene/extern-prelude-from-opaque-fail.rs similarity index 100% rename from src/test/ui/hygiene/extern-prelude-from-opaque-fail.rs rename to tests/ui/hygiene/extern-prelude-from-opaque-fail.rs diff --git a/src/test/ui/hygiene/extern-prelude-from-opaque-fail.stderr b/tests/ui/hygiene/extern-prelude-from-opaque-fail.stderr similarity index 100% rename from src/test/ui/hygiene/extern-prelude-from-opaque-fail.stderr rename to tests/ui/hygiene/extern-prelude-from-opaque-fail.stderr diff --git a/src/test/ui/hygiene/fields-definition.rs b/tests/ui/hygiene/fields-definition.rs similarity index 100% rename from src/test/ui/hygiene/fields-definition.rs rename to tests/ui/hygiene/fields-definition.rs diff --git a/src/test/ui/hygiene/fields-definition.stderr b/tests/ui/hygiene/fields-definition.stderr similarity index 100% rename from src/test/ui/hygiene/fields-definition.stderr rename to tests/ui/hygiene/fields-definition.stderr diff --git a/src/test/ui/hygiene/fields-move.rs b/tests/ui/hygiene/fields-move.rs similarity index 100% rename from src/test/ui/hygiene/fields-move.rs rename to tests/ui/hygiene/fields-move.rs diff --git a/src/test/ui/hygiene/fields-move.stderr b/tests/ui/hygiene/fields-move.stderr similarity index 100% rename from src/test/ui/hygiene/fields-move.stderr rename to tests/ui/hygiene/fields-move.stderr diff --git a/src/test/ui/hygiene/fields-numeric-borrowck.rs b/tests/ui/hygiene/fields-numeric-borrowck.rs similarity index 100% rename from src/test/ui/hygiene/fields-numeric-borrowck.rs rename to tests/ui/hygiene/fields-numeric-borrowck.rs diff --git a/src/test/ui/hygiene/fields-numeric-borrowck.stderr b/tests/ui/hygiene/fields-numeric-borrowck.stderr similarity index 100% rename from src/test/ui/hygiene/fields-numeric-borrowck.stderr rename to tests/ui/hygiene/fields-numeric-borrowck.stderr diff --git a/src/test/ui/hygiene/fields.rs b/tests/ui/hygiene/fields.rs similarity index 100% rename from src/test/ui/hygiene/fields.rs rename to tests/ui/hygiene/fields.rs diff --git a/src/test/ui/hygiene/fields.stderr b/tests/ui/hygiene/fields.stderr similarity index 100% rename from src/test/ui/hygiene/fields.stderr rename to tests/ui/hygiene/fields.stderr diff --git a/src/test/ui/hygiene/for-loop.rs b/tests/ui/hygiene/for-loop.rs similarity index 100% rename from src/test/ui/hygiene/for-loop.rs rename to tests/ui/hygiene/for-loop.rs diff --git a/src/test/ui/hygiene/for-loop.stderr b/tests/ui/hygiene/for-loop.stderr similarity index 100% rename from src/test/ui/hygiene/for-loop.stderr rename to tests/ui/hygiene/for-loop.stderr diff --git a/src/test/ui/hygiene/format-args.rs b/tests/ui/hygiene/format-args.rs similarity index 100% rename from src/test/ui/hygiene/format-args.rs rename to tests/ui/hygiene/format-args.rs diff --git a/src/test/ui/hygiene/generate-mod.rs b/tests/ui/hygiene/generate-mod.rs similarity index 100% rename from src/test/ui/hygiene/generate-mod.rs rename to tests/ui/hygiene/generate-mod.rs diff --git a/src/test/ui/hygiene/generate-mod.stderr b/tests/ui/hygiene/generate-mod.stderr similarity index 100% rename from src/test/ui/hygiene/generate-mod.stderr rename to tests/ui/hygiene/generate-mod.stderr diff --git a/src/test/ui/hygiene/generic_params.rs b/tests/ui/hygiene/generic_params.rs similarity index 100% rename from src/test/ui/hygiene/generic_params.rs rename to tests/ui/hygiene/generic_params.rs diff --git a/src/test/ui/hygiene/globs.rs b/tests/ui/hygiene/globs.rs similarity index 100% rename from src/test/ui/hygiene/globs.rs rename to tests/ui/hygiene/globs.rs diff --git a/src/test/ui/hygiene/globs.stderr b/tests/ui/hygiene/globs.stderr similarity index 100% rename from src/test/ui/hygiene/globs.stderr rename to tests/ui/hygiene/globs.stderr diff --git a/src/test/ui/hygiene/hir-res-hygiene.rs b/tests/ui/hygiene/hir-res-hygiene.rs similarity index 100% rename from src/test/ui/hygiene/hir-res-hygiene.rs rename to tests/ui/hygiene/hir-res-hygiene.rs diff --git a/src/test/ui/hygiene/hygiene-dodging-1.rs b/tests/ui/hygiene/hygiene-dodging-1.rs similarity index 100% rename from src/test/ui/hygiene/hygiene-dodging-1.rs rename to tests/ui/hygiene/hygiene-dodging-1.rs diff --git a/src/test/ui/hygiene/hygiene.rs b/tests/ui/hygiene/hygiene.rs similarity index 100% rename from src/test/ui/hygiene/hygiene.rs rename to tests/ui/hygiene/hygiene.rs diff --git a/src/test/ui/hygiene/hygienic-label-1.rs b/tests/ui/hygiene/hygienic-label-1.rs similarity index 100% rename from src/test/ui/hygiene/hygienic-label-1.rs rename to tests/ui/hygiene/hygienic-label-1.rs diff --git a/src/test/ui/hygiene/hygienic-label-1.stderr b/tests/ui/hygiene/hygienic-label-1.stderr similarity index 100% rename from src/test/ui/hygiene/hygienic-label-1.stderr rename to tests/ui/hygiene/hygienic-label-1.stderr diff --git a/src/test/ui/hygiene/hygienic-label-2.rs b/tests/ui/hygiene/hygienic-label-2.rs similarity index 100% rename from src/test/ui/hygiene/hygienic-label-2.rs rename to tests/ui/hygiene/hygienic-label-2.rs diff --git a/src/test/ui/hygiene/hygienic-label-2.stderr b/tests/ui/hygiene/hygienic-label-2.stderr similarity index 100% rename from src/test/ui/hygiene/hygienic-label-2.stderr rename to tests/ui/hygiene/hygienic-label-2.stderr diff --git a/src/test/ui/hygiene/hygienic-label-3.rs b/tests/ui/hygiene/hygienic-label-3.rs similarity index 100% rename from src/test/ui/hygiene/hygienic-label-3.rs rename to tests/ui/hygiene/hygienic-label-3.rs diff --git a/src/test/ui/hygiene/hygienic-label-3.stderr b/tests/ui/hygiene/hygienic-label-3.stderr similarity index 100% rename from src/test/ui/hygiene/hygienic-label-3.stderr rename to tests/ui/hygiene/hygienic-label-3.stderr diff --git a/src/test/ui/hygiene/hygienic-label-4.rs b/tests/ui/hygiene/hygienic-label-4.rs similarity index 100% rename from src/test/ui/hygiene/hygienic-label-4.rs rename to tests/ui/hygiene/hygienic-label-4.rs diff --git a/src/test/ui/hygiene/hygienic-label-4.stderr b/tests/ui/hygiene/hygienic-label-4.stderr similarity index 100% rename from src/test/ui/hygiene/hygienic-label-4.stderr rename to tests/ui/hygiene/hygienic-label-4.stderr diff --git a/src/test/ui/hygiene/hygienic-labels-in-let.rs b/tests/ui/hygiene/hygienic-labels-in-let.rs similarity index 100% rename from src/test/ui/hygiene/hygienic-labels-in-let.rs rename to tests/ui/hygiene/hygienic-labels-in-let.rs diff --git a/src/test/ui/hygiene/hygienic-labels.rs b/tests/ui/hygiene/hygienic-labels.rs similarity index 100% rename from src/test/ui/hygiene/hygienic-labels.rs rename to tests/ui/hygiene/hygienic-labels.rs diff --git a/src/test/ui/hygiene/impl_items-2.rs b/tests/ui/hygiene/impl_items-2.rs similarity index 100% rename from src/test/ui/hygiene/impl_items-2.rs rename to tests/ui/hygiene/impl_items-2.rs diff --git a/src/test/ui/hygiene/impl_items-2.stderr b/tests/ui/hygiene/impl_items-2.stderr similarity index 100% rename from src/test/ui/hygiene/impl_items-2.stderr rename to tests/ui/hygiene/impl_items-2.stderr diff --git a/src/test/ui/hygiene/impl_items.rs b/tests/ui/hygiene/impl_items.rs similarity index 100% rename from src/test/ui/hygiene/impl_items.rs rename to tests/ui/hygiene/impl_items.rs diff --git a/src/test/ui/hygiene/impl_items.stderr b/tests/ui/hygiene/impl_items.stderr similarity index 100% rename from src/test/ui/hygiene/impl_items.stderr rename to tests/ui/hygiene/impl_items.stderr diff --git a/src/test/ui/hygiene/intercrate.rs b/tests/ui/hygiene/intercrate.rs similarity index 100% rename from src/test/ui/hygiene/intercrate.rs rename to tests/ui/hygiene/intercrate.rs diff --git a/src/test/ui/hygiene/intercrate.stderr b/tests/ui/hygiene/intercrate.stderr similarity index 100% rename from src/test/ui/hygiene/intercrate.stderr rename to tests/ui/hygiene/intercrate.stderr diff --git a/src/test/ui/hygiene/issue-15221.rs b/tests/ui/hygiene/issue-15221.rs similarity index 100% rename from src/test/ui/hygiene/issue-15221.rs rename to tests/ui/hygiene/issue-15221.rs diff --git a/src/test/ui/hygiene/issue-32922.rs b/tests/ui/hygiene/issue-32922.rs similarity index 100% rename from src/test/ui/hygiene/issue-32922.rs rename to tests/ui/hygiene/issue-32922.rs diff --git a/src/test/ui/hygiene/issue-40847.rs b/tests/ui/hygiene/issue-40847.rs similarity index 100% rename from src/test/ui/hygiene/issue-40847.rs rename to tests/ui/hygiene/issue-40847.rs diff --git a/src/test/ui/hygiene/issue-44128.rs b/tests/ui/hygiene/issue-44128.rs similarity index 100% rename from src/test/ui/hygiene/issue-44128.rs rename to tests/ui/hygiene/issue-44128.rs diff --git a/src/test/ui/hygiene/issue-47311.rs b/tests/ui/hygiene/issue-47311.rs similarity index 100% rename from src/test/ui/hygiene/issue-47311.rs rename to tests/ui/hygiene/issue-47311.rs diff --git a/src/test/ui/hygiene/issue-47312.rs b/tests/ui/hygiene/issue-47312.rs similarity index 100% rename from src/test/ui/hygiene/issue-47312.rs rename to tests/ui/hygiene/issue-47312.rs diff --git a/src/test/ui/hygiene/issue-61574-const-parameters.rs b/tests/ui/hygiene/issue-61574-const-parameters.rs similarity index 100% rename from src/test/ui/hygiene/issue-61574-const-parameters.rs rename to tests/ui/hygiene/issue-61574-const-parameters.rs diff --git a/src/test/ui/hygiene/issue-77523-def-site-async-await.rs b/tests/ui/hygiene/issue-77523-def-site-async-await.rs similarity index 100% rename from src/test/ui/hygiene/issue-77523-def-site-async-await.rs rename to tests/ui/hygiene/issue-77523-def-site-async-await.rs diff --git a/src/test/ui/hygiene/items.rs b/tests/ui/hygiene/items.rs similarity index 100% rename from src/test/ui/hygiene/items.rs rename to tests/ui/hygiene/items.rs diff --git a/src/test/ui/hygiene/lambda-var-hygiene.rs b/tests/ui/hygiene/lambda-var-hygiene.rs similarity index 100% rename from src/test/ui/hygiene/lambda-var-hygiene.rs rename to tests/ui/hygiene/lambda-var-hygiene.rs diff --git a/src/test/ui/hygiene/legacy_interaction.rs b/tests/ui/hygiene/legacy_interaction.rs similarity index 100% rename from src/test/ui/hygiene/legacy_interaction.rs rename to tests/ui/hygiene/legacy_interaction.rs diff --git a/src/test/ui/hygiene/lexical.rs b/tests/ui/hygiene/lexical.rs similarity index 100% rename from src/test/ui/hygiene/lexical.rs rename to tests/ui/hygiene/lexical.rs diff --git a/src/test/ui/hygiene/local_inner_macros.rs b/tests/ui/hygiene/local_inner_macros.rs similarity index 100% rename from src/test/ui/hygiene/local_inner_macros.rs rename to tests/ui/hygiene/local_inner_macros.rs diff --git a/src/test/ui/hygiene/macro-metavars-legacy.rs b/tests/ui/hygiene/macro-metavars-legacy.rs similarity index 100% rename from src/test/ui/hygiene/macro-metavars-legacy.rs rename to tests/ui/hygiene/macro-metavars-legacy.rs diff --git a/src/test/ui/hygiene/macro-metavars-transparent.rs b/tests/ui/hygiene/macro-metavars-transparent.rs similarity index 100% rename from src/test/ui/hygiene/macro-metavars-transparent.rs rename to tests/ui/hygiene/macro-metavars-transparent.rs diff --git a/src/test/ui/hygiene/missing-self-diag.rs b/tests/ui/hygiene/missing-self-diag.rs similarity index 100% rename from src/test/ui/hygiene/missing-self-diag.rs rename to tests/ui/hygiene/missing-self-diag.rs diff --git a/src/test/ui/hygiene/missing-self-diag.stderr b/tests/ui/hygiene/missing-self-diag.stderr similarity index 100% rename from src/test/ui/hygiene/missing-self-diag.stderr rename to tests/ui/hygiene/missing-self-diag.stderr diff --git a/src/test/ui/hygiene/nested-dollar-crate.rs b/tests/ui/hygiene/nested-dollar-crate.rs similarity index 100% rename from src/test/ui/hygiene/nested-dollar-crate.rs rename to tests/ui/hygiene/nested-dollar-crate.rs diff --git a/src/test/ui/hygiene/nested_macro_privacy.rs b/tests/ui/hygiene/nested_macro_privacy.rs similarity index 100% rename from src/test/ui/hygiene/nested_macro_privacy.rs rename to tests/ui/hygiene/nested_macro_privacy.rs diff --git a/src/test/ui/hygiene/nested_macro_privacy.stderr b/tests/ui/hygiene/nested_macro_privacy.stderr similarity index 100% rename from src/test/ui/hygiene/nested_macro_privacy.stderr rename to tests/ui/hygiene/nested_macro_privacy.stderr diff --git a/src/test/ui/hygiene/no_implicit_prelude-2018.rs b/tests/ui/hygiene/no_implicit_prelude-2018.rs similarity index 100% rename from src/test/ui/hygiene/no_implicit_prelude-2018.rs rename to tests/ui/hygiene/no_implicit_prelude-2018.rs diff --git a/src/test/ui/hygiene/no_implicit_prelude-2018.stderr b/tests/ui/hygiene/no_implicit_prelude-2018.stderr similarity index 100% rename from src/test/ui/hygiene/no_implicit_prelude-2018.stderr rename to tests/ui/hygiene/no_implicit_prelude-2018.stderr diff --git a/src/test/ui/hygiene/no_implicit_prelude-2021.rs b/tests/ui/hygiene/no_implicit_prelude-2021.rs similarity index 100% rename from src/test/ui/hygiene/no_implicit_prelude-2021.rs rename to tests/ui/hygiene/no_implicit_prelude-2021.rs diff --git a/src/test/ui/hygiene/no_implicit_prelude.rs b/tests/ui/hygiene/no_implicit_prelude.rs similarity index 100% rename from src/test/ui/hygiene/no_implicit_prelude.rs rename to tests/ui/hygiene/no_implicit_prelude.rs diff --git a/src/test/ui/hygiene/no_implicit_prelude.stderr b/tests/ui/hygiene/no_implicit_prelude.stderr similarity index 100% rename from src/test/ui/hygiene/no_implicit_prelude.stderr rename to tests/ui/hygiene/no_implicit_prelude.stderr diff --git a/src/test/ui/hygiene/panic-location.rs b/tests/ui/hygiene/panic-location.rs similarity index 100% rename from src/test/ui/hygiene/panic-location.rs rename to tests/ui/hygiene/panic-location.rs diff --git a/src/test/ui/hygiene/panic-location.run.stderr b/tests/ui/hygiene/panic-location.run.stderr similarity index 100% rename from src/test/ui/hygiene/panic-location.run.stderr rename to tests/ui/hygiene/panic-location.run.stderr diff --git a/src/test/ui/hygiene/pattern-macro.rs b/tests/ui/hygiene/pattern-macro.rs similarity index 100% rename from src/test/ui/hygiene/pattern-macro.rs rename to tests/ui/hygiene/pattern-macro.rs diff --git a/src/test/ui/hygiene/pattern-macro.stderr b/tests/ui/hygiene/pattern-macro.stderr similarity index 100% rename from src/test/ui/hygiene/pattern-macro.stderr rename to tests/ui/hygiene/pattern-macro.stderr diff --git a/src/test/ui/hygiene/prelude-import-hygiene.rs b/tests/ui/hygiene/prelude-import-hygiene.rs similarity index 100% rename from src/test/ui/hygiene/prelude-import-hygiene.rs rename to tests/ui/hygiene/prelude-import-hygiene.rs diff --git a/src/test/ui/hygiene/privacy-early.rs b/tests/ui/hygiene/privacy-early.rs similarity index 100% rename from src/test/ui/hygiene/privacy-early.rs rename to tests/ui/hygiene/privacy-early.rs diff --git a/src/test/ui/hygiene/privacy-early.stderr b/tests/ui/hygiene/privacy-early.stderr similarity index 100% rename from src/test/ui/hygiene/privacy-early.stderr rename to tests/ui/hygiene/privacy-early.stderr diff --git a/src/test/ui/hygiene/privacy.rs b/tests/ui/hygiene/privacy.rs similarity index 100% rename from src/test/ui/hygiene/privacy.rs rename to tests/ui/hygiene/privacy.rs diff --git a/src/test/ui/hygiene/privacy.stderr b/tests/ui/hygiene/privacy.stderr similarity index 100% rename from src/test/ui/hygiene/privacy.stderr rename to tests/ui/hygiene/privacy.stderr diff --git a/src/test/ui/hygiene/rustc-macro-transparency.rs b/tests/ui/hygiene/rustc-macro-transparency.rs similarity index 100% rename from src/test/ui/hygiene/rustc-macro-transparency.rs rename to tests/ui/hygiene/rustc-macro-transparency.rs diff --git a/src/test/ui/hygiene/rustc-macro-transparency.stderr b/tests/ui/hygiene/rustc-macro-transparency.stderr similarity index 100% rename from src/test/ui/hygiene/rustc-macro-transparency.stderr rename to tests/ui/hygiene/rustc-macro-transparency.stderr diff --git a/src/test/ui/hygiene/specialization.rs b/tests/ui/hygiene/specialization.rs similarity index 100% rename from src/test/ui/hygiene/specialization.rs rename to tests/ui/hygiene/specialization.rs diff --git a/src/test/ui/hygiene/stdlib-prelude-from-opaque-early.rs b/tests/ui/hygiene/stdlib-prelude-from-opaque-early.rs similarity index 100% rename from src/test/ui/hygiene/stdlib-prelude-from-opaque-early.rs rename to tests/ui/hygiene/stdlib-prelude-from-opaque-early.rs diff --git a/src/test/ui/hygiene/stdlib-prelude-from-opaque-late.rs b/tests/ui/hygiene/stdlib-prelude-from-opaque-late.rs similarity index 100% rename from src/test/ui/hygiene/stdlib-prelude-from-opaque-late.rs rename to tests/ui/hygiene/stdlib-prelude-from-opaque-late.rs diff --git a/src/test/ui/hygiene/thread-local-not-in-prelude.rs b/tests/ui/hygiene/thread-local-not-in-prelude.rs similarity index 100% rename from src/test/ui/hygiene/thread-local-not-in-prelude.rs rename to tests/ui/hygiene/thread-local-not-in-prelude.rs diff --git a/src/test/ui/hygiene/trait_items-2.rs b/tests/ui/hygiene/trait_items-2.rs similarity index 100% rename from src/test/ui/hygiene/trait_items-2.rs rename to tests/ui/hygiene/trait_items-2.rs diff --git a/src/test/ui/hygiene/trait_items.rs b/tests/ui/hygiene/trait_items.rs similarity index 100% rename from src/test/ui/hygiene/trait_items.rs rename to tests/ui/hygiene/trait_items.rs diff --git a/src/test/ui/hygiene/trait_items.stderr b/tests/ui/hygiene/trait_items.stderr similarity index 100% rename from src/test/ui/hygiene/trait_items.stderr rename to tests/ui/hygiene/trait_items.stderr diff --git a/src/test/ui/hygiene/traits-in-scope.rs b/tests/ui/hygiene/traits-in-scope.rs similarity index 100% rename from src/test/ui/hygiene/traits-in-scope.rs rename to tests/ui/hygiene/traits-in-scope.rs diff --git a/src/test/ui/hygiene/transparent-basic.rs b/tests/ui/hygiene/transparent-basic.rs similarity index 100% rename from src/test/ui/hygiene/transparent-basic.rs rename to tests/ui/hygiene/transparent-basic.rs diff --git a/src/test/ui/hygiene/unpretty-debug.rs b/tests/ui/hygiene/unpretty-debug.rs similarity index 100% rename from src/test/ui/hygiene/unpretty-debug.rs rename to tests/ui/hygiene/unpretty-debug.rs diff --git a/src/test/ui/hygiene/unpretty-debug.stdout b/tests/ui/hygiene/unpretty-debug.stdout similarity index 100% rename from src/test/ui/hygiene/unpretty-debug.stdout rename to tests/ui/hygiene/unpretty-debug.stdout diff --git a/src/test/ui/hygiene/wrap_unhygienic_example.rs b/tests/ui/hygiene/wrap_unhygienic_example.rs similarity index 100% rename from src/test/ui/hygiene/wrap_unhygienic_example.rs rename to tests/ui/hygiene/wrap_unhygienic_example.rs diff --git a/src/test/ui/hygiene/xcrate.rs b/tests/ui/hygiene/xcrate.rs similarity index 100% rename from src/test/ui/hygiene/xcrate.rs rename to tests/ui/hygiene/xcrate.rs diff --git a/src/test/ui/illegal-sized-bound/mutability-mismatch-arg.fixed b/tests/ui/illegal-sized-bound/mutability-mismatch-arg.fixed similarity index 100% rename from src/test/ui/illegal-sized-bound/mutability-mismatch-arg.fixed rename to tests/ui/illegal-sized-bound/mutability-mismatch-arg.fixed diff --git a/src/test/ui/illegal-sized-bound/mutability-mismatch-arg.rs b/tests/ui/illegal-sized-bound/mutability-mismatch-arg.rs similarity index 100% rename from src/test/ui/illegal-sized-bound/mutability-mismatch-arg.rs rename to tests/ui/illegal-sized-bound/mutability-mismatch-arg.rs diff --git a/src/test/ui/illegal-sized-bound/mutability-mismatch-arg.stderr b/tests/ui/illegal-sized-bound/mutability-mismatch-arg.stderr similarity index 100% rename from src/test/ui/illegal-sized-bound/mutability-mismatch-arg.stderr rename to tests/ui/illegal-sized-bound/mutability-mismatch-arg.stderr diff --git a/src/test/ui/illegal-sized-bound/mutability-mismatch.rs b/tests/ui/illegal-sized-bound/mutability-mismatch.rs similarity index 100% rename from src/test/ui/illegal-sized-bound/mutability-mismatch.rs rename to tests/ui/illegal-sized-bound/mutability-mismatch.rs diff --git a/src/test/ui/illegal-sized-bound/mutability-mismatch.stderr b/tests/ui/illegal-sized-bound/mutability-mismatch.stderr similarity index 100% rename from src/test/ui/illegal-sized-bound/mutability-mismatch.stderr rename to tests/ui/illegal-sized-bound/mutability-mismatch.stderr diff --git a/src/test/ui/illegal-sized-bound/regular.rs b/tests/ui/illegal-sized-bound/regular.rs similarity index 100% rename from src/test/ui/illegal-sized-bound/regular.rs rename to tests/ui/illegal-sized-bound/regular.rs diff --git a/src/test/ui/illegal-sized-bound/regular.stderr b/tests/ui/illegal-sized-bound/regular.stderr similarity index 100% rename from src/test/ui/illegal-sized-bound/regular.stderr rename to tests/ui/illegal-sized-bound/regular.stderr diff --git a/src/test/ui/illegal-ufcs-drop.fixed b/tests/ui/illegal-ufcs-drop.fixed similarity index 100% rename from src/test/ui/illegal-ufcs-drop.fixed rename to tests/ui/illegal-ufcs-drop.fixed diff --git a/src/test/ui/illegal-ufcs-drop.rs b/tests/ui/illegal-ufcs-drop.rs similarity index 100% rename from src/test/ui/illegal-ufcs-drop.rs rename to tests/ui/illegal-ufcs-drop.rs diff --git a/src/test/ui/illegal-ufcs-drop.stderr b/tests/ui/illegal-ufcs-drop.stderr similarity index 100% rename from src/test/ui/illegal-ufcs-drop.stderr rename to tests/ui/illegal-ufcs-drop.stderr diff --git a/src/test/ui/impl-header-lifetime-elision/assoc-type.rs b/tests/ui/impl-header-lifetime-elision/assoc-type.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/assoc-type.rs rename to tests/ui/impl-header-lifetime-elision/assoc-type.rs diff --git a/src/test/ui/impl-header-lifetime-elision/assoc-type.stderr b/tests/ui/impl-header-lifetime-elision/assoc-type.stderr similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/assoc-type.stderr rename to tests/ui/impl-header-lifetime-elision/assoc-type.stderr diff --git a/src/test/ui/impl-header-lifetime-elision/constant-used-as-arraylen.rs b/tests/ui/impl-header-lifetime-elision/constant-used-as-arraylen.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/constant-used-as-arraylen.rs rename to tests/ui/impl-header-lifetime-elision/constant-used-as-arraylen.rs diff --git a/src/test/ui/impl-header-lifetime-elision/dyn-trait.rs b/tests/ui/impl-header-lifetime-elision/dyn-trait.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/dyn-trait.rs rename to tests/ui/impl-header-lifetime-elision/dyn-trait.rs diff --git a/src/test/ui/impl-header-lifetime-elision/dyn-trait.stderr b/tests/ui/impl-header-lifetime-elision/dyn-trait.stderr similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/dyn-trait.stderr rename to tests/ui/impl-header-lifetime-elision/dyn-trait.stderr diff --git a/src/test/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs b/tests/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs rename to tests/ui/impl-header-lifetime-elision/explicit-and-elided-same-header.rs diff --git a/src/test/ui/impl-header-lifetime-elision/inherent-impl.rs b/tests/ui/impl-header-lifetime-elision/inherent-impl.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/inherent-impl.rs rename to tests/ui/impl-header-lifetime-elision/inherent-impl.rs diff --git a/src/test/ui/impl-header-lifetime-elision/path-elided.rs b/tests/ui/impl-header-lifetime-elision/path-elided.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/path-elided.rs rename to tests/ui/impl-header-lifetime-elision/path-elided.rs diff --git a/src/test/ui/impl-header-lifetime-elision/path-elided.stderr b/tests/ui/impl-header-lifetime-elision/path-elided.stderr similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/path-elided.stderr rename to tests/ui/impl-header-lifetime-elision/path-elided.stderr diff --git a/src/test/ui/impl-header-lifetime-elision/path-underscore.rs b/tests/ui/impl-header-lifetime-elision/path-underscore.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/path-underscore.rs rename to tests/ui/impl-header-lifetime-elision/path-underscore.rs diff --git a/src/test/ui/impl-header-lifetime-elision/ref-underscore.rs b/tests/ui/impl-header-lifetime-elision/ref-underscore.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/ref-underscore.rs rename to tests/ui/impl-header-lifetime-elision/ref-underscore.rs diff --git a/src/test/ui/impl-header-lifetime-elision/trait-elided.rs b/tests/ui/impl-header-lifetime-elision/trait-elided.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/trait-elided.rs rename to tests/ui/impl-header-lifetime-elision/trait-elided.rs diff --git a/src/test/ui/impl-header-lifetime-elision/trait-elided.stderr b/tests/ui/impl-header-lifetime-elision/trait-elided.stderr similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/trait-elided.stderr rename to tests/ui/impl-header-lifetime-elision/trait-elided.stderr diff --git a/src/test/ui/impl-header-lifetime-elision/trait-underscore.rs b/tests/ui/impl-header-lifetime-elision/trait-underscore.rs similarity index 100% rename from src/test/ui/impl-header-lifetime-elision/trait-underscore.rs rename to tests/ui/impl-header-lifetime-elision/trait-underscore.rs diff --git a/src/test/ui/impl-inherent-non-conflict.rs b/tests/ui/impl-inherent-non-conflict.rs similarity index 100% rename from src/test/ui/impl-inherent-non-conflict.rs rename to tests/ui/impl-inherent-non-conflict.rs diff --git a/src/test/ui/impl-not-adjacent-to-type.rs b/tests/ui/impl-not-adjacent-to-type.rs similarity index 100% rename from src/test/ui/impl-not-adjacent-to-type.rs rename to tests/ui/impl-not-adjacent-to-type.rs diff --git a/src/test/ui/impl-privacy-xc-1.rs b/tests/ui/impl-privacy-xc-1.rs similarity index 100% rename from src/test/ui/impl-privacy-xc-1.rs rename to tests/ui/impl-privacy-xc-1.rs diff --git a/src/test/ui/impl-trait/associated-impl-trait-type-generic-trait.rs b/tests/ui/impl-trait/associated-impl-trait-type-generic-trait.rs similarity index 100% rename from src/test/ui/impl-trait/associated-impl-trait-type-generic-trait.rs rename to tests/ui/impl-trait/associated-impl-trait-type-generic-trait.rs diff --git a/src/test/ui/impl-trait/associated-impl-trait-type-trivial.rs b/tests/ui/impl-trait/associated-impl-trait-type-trivial.rs similarity index 100% rename from src/test/ui/impl-trait/associated-impl-trait-type-trivial.rs rename to tests/ui/impl-trait/associated-impl-trait-type-trivial.rs diff --git a/src/test/ui/impl-trait/associated-impl-trait-type.rs b/tests/ui/impl-trait/associated-impl-trait-type.rs similarity index 100% rename from src/test/ui/impl-trait/associated-impl-trait-type.rs rename to tests/ui/impl-trait/associated-impl-trait-type.rs diff --git a/src/test/ui/impl-trait/async_scope_creep.rs b/tests/ui/impl-trait/async_scope_creep.rs similarity index 100% rename from src/test/ui/impl-trait/async_scope_creep.rs rename to tests/ui/impl-trait/async_scope_creep.rs diff --git a/src/test/ui/impl-trait/auto-trait-leak-rpass.rs b/tests/ui/impl-trait/auto-trait-leak-rpass.rs similarity index 100% rename from src/test/ui/impl-trait/auto-trait-leak-rpass.rs rename to tests/ui/impl-trait/auto-trait-leak-rpass.rs diff --git a/src/test/ui/impl-trait/auto-trait-leak.rs b/tests/ui/impl-trait/auto-trait-leak.rs similarity index 100% rename from src/test/ui/impl-trait/auto-trait-leak.rs rename to tests/ui/impl-trait/auto-trait-leak.rs diff --git a/src/test/ui/impl-trait/auto-trait-leak.stderr b/tests/ui/impl-trait/auto-trait-leak.stderr similarity index 100% rename from src/test/ui/impl-trait/auto-trait-leak.stderr rename to tests/ui/impl-trait/auto-trait-leak.stderr diff --git a/src/test/ui/impl-trait/auto-trait-leak2.rs b/tests/ui/impl-trait/auto-trait-leak2.rs similarity index 100% rename from src/test/ui/impl-trait/auto-trait-leak2.rs rename to tests/ui/impl-trait/auto-trait-leak2.rs diff --git a/src/test/ui/impl-trait/auto-trait-leak2.stderr b/tests/ui/impl-trait/auto-trait-leak2.stderr similarity index 100% rename from src/test/ui/impl-trait/auto-trait-leak2.stderr rename to tests/ui/impl-trait/auto-trait-leak2.stderr diff --git a/src/test/ui/impl-trait/auto-trait.rs b/tests/ui/impl-trait/auto-trait.rs similarity index 100% rename from src/test/ui/impl-trait/auto-trait.rs rename to tests/ui/impl-trait/auto-trait.rs diff --git a/src/test/ui/impl-trait/auto-trait.stderr b/tests/ui/impl-trait/auto-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/auto-trait.stderr rename to tests/ui/impl-trait/auto-trait.stderr diff --git a/src/test/ui/impl-trait/autoderef.rs b/tests/ui/impl-trait/autoderef.rs similarity index 100% rename from src/test/ui/impl-trait/autoderef.rs rename to tests/ui/impl-trait/autoderef.rs diff --git a/src/test/ui/impl-trait/auxiliary/extra-item.rs b/tests/ui/impl-trait/auxiliary/extra-item.rs similarity index 100% rename from src/test/ui/impl-trait/auxiliary/extra-item.rs rename to tests/ui/impl-trait/auxiliary/extra-item.rs diff --git a/src/test/ui/impl-trait/auxiliary/no_method_suggested_traits.rs b/tests/ui/impl-trait/auxiliary/no_method_suggested_traits.rs similarity index 100% rename from src/test/ui/impl-trait/auxiliary/no_method_suggested_traits.rs rename to tests/ui/impl-trait/auxiliary/no_method_suggested_traits.rs diff --git a/src/test/ui/impl-trait/auxiliary/xcrate.rs b/tests/ui/impl-trait/auxiliary/xcrate.rs similarity index 100% rename from src/test/ui/impl-trait/auxiliary/xcrate.rs rename to tests/ui/impl-trait/auxiliary/xcrate.rs diff --git a/src/test/ui/impl-trait/bound-normalization-fail.rs b/tests/ui/impl-trait/bound-normalization-fail.rs similarity index 100% rename from src/test/ui/impl-trait/bound-normalization-fail.rs rename to tests/ui/impl-trait/bound-normalization-fail.rs diff --git a/src/test/ui/impl-trait/bound-normalization-fail.stderr b/tests/ui/impl-trait/bound-normalization-fail.stderr similarity index 100% rename from src/test/ui/impl-trait/bound-normalization-fail.stderr rename to tests/ui/impl-trait/bound-normalization-fail.stderr diff --git a/src/test/ui/impl-trait/bound-normalization-pass.rs b/tests/ui/impl-trait/bound-normalization-pass.rs similarity index 100% rename from src/test/ui/impl-trait/bound-normalization-pass.rs rename to tests/ui/impl-trait/bound-normalization-pass.rs diff --git a/src/test/ui/impl-trait/bounds_regression.rs b/tests/ui/impl-trait/bounds_regression.rs similarity index 100% rename from src/test/ui/impl-trait/bounds_regression.rs rename to tests/ui/impl-trait/bounds_regression.rs diff --git a/src/test/ui/impl-trait/can-return-unconstrained-closure.rs b/tests/ui/impl-trait/can-return-unconstrained-closure.rs similarity index 100% rename from src/test/ui/impl-trait/can-return-unconstrained-closure.rs rename to tests/ui/impl-trait/can-return-unconstrained-closure.rs diff --git a/src/test/ui/impl-trait/closure-calling-parent-fn.rs b/tests/ui/impl-trait/closure-calling-parent-fn.rs similarity index 100% rename from src/test/ui/impl-trait/closure-calling-parent-fn.rs rename to tests/ui/impl-trait/closure-calling-parent-fn.rs diff --git a/src/test/ui/impl-trait/closure-in-impl-trait-arg.rs b/tests/ui/impl-trait/closure-in-impl-trait-arg.rs similarity index 100% rename from src/test/ui/impl-trait/closure-in-impl-trait-arg.rs rename to tests/ui/impl-trait/closure-in-impl-trait-arg.rs diff --git a/src/test/ui/impl-trait/closure-in-impl-trait.rs b/tests/ui/impl-trait/closure-in-impl-trait.rs similarity index 100% rename from src/test/ui/impl-trait/closure-in-impl-trait.rs rename to tests/ui/impl-trait/closure-in-impl-trait.rs diff --git a/src/test/ui/impl-trait/cross-return-site-inference.rs b/tests/ui/impl-trait/cross-return-site-inference.rs similarity index 100% rename from src/test/ui/impl-trait/cross-return-site-inference.rs rename to tests/ui/impl-trait/cross-return-site-inference.rs diff --git a/src/test/ui/impl-trait/cross-return-site-inference.stderr b/tests/ui/impl-trait/cross-return-site-inference.stderr similarity index 100% rename from src/test/ui/impl-trait/cross-return-site-inference.stderr rename to tests/ui/impl-trait/cross-return-site-inference.stderr diff --git a/src/test/ui/impl-trait/deduce-signature-from-supertrait.rs b/tests/ui/impl-trait/deduce-signature-from-supertrait.rs similarity index 100% rename from src/test/ui/impl-trait/deduce-signature-from-supertrait.rs rename to tests/ui/impl-trait/deduce-signature-from-supertrait.rs diff --git a/src/test/ui/impl-trait/deprecated_annotation.rs b/tests/ui/impl-trait/deprecated_annotation.rs similarity index 100% rename from src/test/ui/impl-trait/deprecated_annotation.rs rename to tests/ui/impl-trait/deprecated_annotation.rs diff --git a/src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs b/tests/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs similarity index 100% rename from src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs rename to tests/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rs diff --git a/src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.stderr b/tests/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.stderr rename to tests/ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.stderr diff --git a/src/test/ui/impl-trait/divergence.rs b/tests/ui/impl-trait/divergence.rs similarity index 100% rename from src/test/ui/impl-trait/divergence.rs rename to tests/ui/impl-trait/divergence.rs diff --git a/src/test/ui/impl-trait/does-not-live-long-enough.rs b/tests/ui/impl-trait/does-not-live-long-enough.rs similarity index 100% rename from src/test/ui/impl-trait/does-not-live-long-enough.rs rename to tests/ui/impl-trait/does-not-live-long-enough.rs diff --git a/src/test/ui/impl-trait/does-not-live-long-enough.stderr b/tests/ui/impl-trait/does-not-live-long-enough.stderr similarity index 100% rename from src/test/ui/impl-trait/does-not-live-long-enough.stderr rename to tests/ui/impl-trait/does-not-live-long-enough.stderr diff --git a/src/test/ui/impl-trait/dyn-trait-elided-two-inputs-assoc.rs b/tests/ui/impl-trait/dyn-trait-elided-two-inputs-assoc.rs similarity index 100% rename from src/test/ui/impl-trait/dyn-trait-elided-two-inputs-assoc.rs rename to tests/ui/impl-trait/dyn-trait-elided-two-inputs-assoc.rs diff --git a/src/test/ui/impl-trait/dyn-trait-elided-two-inputs-param.rs b/tests/ui/impl-trait/dyn-trait-elided-two-inputs-param.rs similarity index 100% rename from src/test/ui/impl-trait/dyn-trait-elided-two-inputs-param.rs rename to tests/ui/impl-trait/dyn-trait-elided-two-inputs-param.rs diff --git a/src/test/ui/impl-trait/dyn-trait-elided-two-inputs-ref-assoc.rs b/tests/ui/impl-trait/dyn-trait-elided-two-inputs-ref-assoc.rs similarity index 100% rename from src/test/ui/impl-trait/dyn-trait-elided-two-inputs-ref-assoc.rs rename to tests/ui/impl-trait/dyn-trait-elided-two-inputs-ref-assoc.rs diff --git a/src/test/ui/impl-trait/dyn-trait-elided-two-inputs-ref-param.rs b/tests/ui/impl-trait/dyn-trait-elided-two-inputs-ref-param.rs similarity index 100% rename from src/test/ui/impl-trait/dyn-trait-elided-two-inputs-ref-param.rs rename to tests/ui/impl-trait/dyn-trait-elided-two-inputs-ref-param.rs diff --git a/src/test/ui/impl-trait/dyn-trait-return-should-be-impl-trait.rs b/tests/ui/impl-trait/dyn-trait-return-should-be-impl-trait.rs similarity index 100% rename from src/test/ui/impl-trait/dyn-trait-return-should-be-impl-trait.rs rename to tests/ui/impl-trait/dyn-trait-return-should-be-impl-trait.rs diff --git a/src/test/ui/impl-trait/dyn-trait-return-should-be-impl-trait.stderr b/tests/ui/impl-trait/dyn-trait-return-should-be-impl-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/dyn-trait-return-should-be-impl-trait.stderr rename to tests/ui/impl-trait/dyn-trait-return-should-be-impl-trait.stderr diff --git a/src/test/ui/impl-trait/equal-hidden-lifetimes.rs b/tests/ui/impl-trait/equal-hidden-lifetimes.rs similarity index 100% rename from src/test/ui/impl-trait/equal-hidden-lifetimes.rs rename to tests/ui/impl-trait/equal-hidden-lifetimes.rs diff --git a/src/test/ui/impl-trait/equal-hidden-lifetimes.stderr b/tests/ui/impl-trait/equal-hidden-lifetimes.stderr similarity index 100% rename from src/test/ui/impl-trait/equal-hidden-lifetimes.stderr rename to tests/ui/impl-trait/equal-hidden-lifetimes.stderr diff --git a/src/test/ui/impl-trait/equality-rpass.rs b/tests/ui/impl-trait/equality-rpass.rs similarity index 100% rename from src/test/ui/impl-trait/equality-rpass.rs rename to tests/ui/impl-trait/equality-rpass.rs diff --git a/src/test/ui/impl-trait/equality-rpass.stderr b/tests/ui/impl-trait/equality-rpass.stderr similarity index 100% rename from src/test/ui/impl-trait/equality-rpass.stderr rename to tests/ui/impl-trait/equality-rpass.stderr diff --git a/src/test/ui/impl-trait/equality.rs b/tests/ui/impl-trait/equality.rs similarity index 100% rename from src/test/ui/impl-trait/equality.rs rename to tests/ui/impl-trait/equality.rs diff --git a/src/test/ui/impl-trait/equality.stderr b/tests/ui/impl-trait/equality.stderr similarity index 100% rename from src/test/ui/impl-trait/equality.stderr rename to tests/ui/impl-trait/equality.stderr diff --git a/src/test/ui/impl-trait/equality2.rs b/tests/ui/impl-trait/equality2.rs similarity index 100% rename from src/test/ui/impl-trait/equality2.rs rename to tests/ui/impl-trait/equality2.rs diff --git a/src/test/ui/impl-trait/equality2.stderr b/tests/ui/impl-trait/equality2.stderr similarity index 100% rename from src/test/ui/impl-trait/equality2.stderr rename to tests/ui/impl-trait/equality2.stderr diff --git a/src/test/ui/impl-trait/example-calendar.rs b/tests/ui/impl-trait/example-calendar.rs similarity index 100% rename from src/test/ui/impl-trait/example-calendar.rs rename to tests/ui/impl-trait/example-calendar.rs diff --git a/src/test/ui/impl-trait/example-st.rs b/tests/ui/impl-trait/example-st.rs similarity index 100% rename from src/test/ui/impl-trait/example-st.rs rename to tests/ui/impl-trait/example-st.rs diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/const-args.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/const-args.rs similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/const-args.rs rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/const-args.rs diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.rs similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.rs rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.rs diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.stderr b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.stderr similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.stderr rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args-for-impl.stderr diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/explicit-generic-args.rs diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/issue-87718.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/issue-87718.rs similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/issue-87718.rs rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/issue-87718.rs diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.rs diff --git a/src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.stderr b/tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.stderr similarity index 100% rename from src/test/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.stderr rename to tests/ui/impl-trait/explicit-generic-args-with-impl-trait/not-enough-args.stderr diff --git a/src/test/ui/impl-trait/extra-item.rs b/tests/ui/impl-trait/extra-item.rs similarity index 100% rename from src/test/ui/impl-trait/extra-item.rs rename to tests/ui/impl-trait/extra-item.rs diff --git a/src/test/ui/impl-trait/extra-item.stderr b/tests/ui/impl-trait/extra-item.stderr similarity index 100% rename from src/test/ui/impl-trait/extra-item.stderr rename to tests/ui/impl-trait/extra-item.stderr diff --git a/src/test/ui/impl-trait/fallback.rs b/tests/ui/impl-trait/fallback.rs similarity index 100% rename from src/test/ui/impl-trait/fallback.rs rename to tests/ui/impl-trait/fallback.rs diff --git a/src/test/ui/impl-trait/fallback_inference.rs b/tests/ui/impl-trait/fallback_inference.rs similarity index 100% rename from src/test/ui/impl-trait/fallback_inference.rs rename to tests/ui/impl-trait/fallback_inference.rs diff --git a/src/test/ui/impl-trait/fallback_inference.stderr b/tests/ui/impl-trait/fallback_inference.stderr similarity index 100% rename from src/test/ui/impl-trait/fallback_inference.stderr rename to tests/ui/impl-trait/fallback_inference.stderr diff --git a/src/test/ui/impl-trait/feature-self-return-type.rs b/tests/ui/impl-trait/feature-self-return-type.rs similarity index 100% rename from src/test/ui/impl-trait/feature-self-return-type.rs rename to tests/ui/impl-trait/feature-self-return-type.rs diff --git a/src/test/ui/impl-trait/feature-self-return-type.stderr b/tests/ui/impl-trait/feature-self-return-type.stderr similarity index 100% rename from src/test/ui/impl-trait/feature-self-return-type.stderr rename to tests/ui/impl-trait/feature-self-return-type.stderr diff --git a/src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2015.stderr b/tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2015.stderr similarity index 100% rename from src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2015.stderr rename to tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2015.stderr diff --git a/src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2021.stderr b/tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2021.stderr similarity index 100% rename from src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2021.stderr rename to tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2021.stderr diff --git a/src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.rs b/tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.rs similarity index 100% rename from src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.rs rename to tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.rs diff --git a/src/test/ui/impl-trait/hidden-lifetimes.rs b/tests/ui/impl-trait/hidden-lifetimes.rs similarity index 100% rename from src/test/ui/impl-trait/hidden-lifetimes.rs rename to tests/ui/impl-trait/hidden-lifetimes.rs diff --git a/src/test/ui/impl-trait/hidden-lifetimes.stderr b/tests/ui/impl-trait/hidden-lifetimes.stderr similarity index 100% rename from src/test/ui/impl-trait/hidden-lifetimes.stderr rename to tests/ui/impl-trait/hidden-lifetimes.stderr diff --git a/src/test/ui/impl-trait/hidden-type-is-opaque-2.rs b/tests/ui/impl-trait/hidden-type-is-opaque-2.rs similarity index 100% rename from src/test/ui/impl-trait/hidden-type-is-opaque-2.rs rename to tests/ui/impl-trait/hidden-type-is-opaque-2.rs diff --git a/src/test/ui/impl-trait/hidden-type-is-opaque-2.stderr b/tests/ui/impl-trait/hidden-type-is-opaque-2.stderr similarity index 100% rename from src/test/ui/impl-trait/hidden-type-is-opaque-2.stderr rename to tests/ui/impl-trait/hidden-type-is-opaque-2.stderr diff --git a/src/test/ui/impl-trait/hidden-type-is-opaque.rs b/tests/ui/impl-trait/hidden-type-is-opaque.rs similarity index 100% rename from src/test/ui/impl-trait/hidden-type-is-opaque.rs rename to tests/ui/impl-trait/hidden-type-is-opaque.rs diff --git a/src/test/ui/impl-trait/impl-fn-hrtb-bounds-2.rs b/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.rs similarity index 100% rename from src/test/ui/impl-trait/impl-fn-hrtb-bounds-2.rs rename to tests/ui/impl-trait/impl-fn-hrtb-bounds-2.rs diff --git a/src/test/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr b/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr rename to tests/ui/impl-trait/impl-fn-hrtb-bounds-2.stderr diff --git a/src/test/ui/impl-trait/impl-fn-hrtb-bounds.rs b/tests/ui/impl-trait/impl-fn-hrtb-bounds.rs similarity index 100% rename from src/test/ui/impl-trait/impl-fn-hrtb-bounds.rs rename to tests/ui/impl-trait/impl-fn-hrtb-bounds.rs diff --git a/src/test/ui/impl-trait/impl-fn-hrtb-bounds.stderr b/tests/ui/impl-trait/impl-fn-hrtb-bounds.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-fn-hrtb-bounds.stderr rename to tests/ui/impl-trait/impl-fn-hrtb-bounds.stderr diff --git a/src/test/ui/impl-trait/impl-fn-parsing-ambiguities.rs b/tests/ui/impl-trait/impl-fn-parsing-ambiguities.rs similarity index 100% rename from src/test/ui/impl-trait/impl-fn-parsing-ambiguities.rs rename to tests/ui/impl-trait/impl-fn-parsing-ambiguities.rs diff --git a/src/test/ui/impl-trait/impl-fn-parsing-ambiguities.stderr b/tests/ui/impl-trait/impl-fn-parsing-ambiguities.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-fn-parsing-ambiguities.stderr rename to tests/ui/impl-trait/impl-fn-parsing-ambiguities.stderr diff --git a/src/test/ui/impl-trait/impl-fn-predefined-lifetimes.rs b/tests/ui/impl-trait/impl-fn-predefined-lifetimes.rs similarity index 100% rename from src/test/ui/impl-trait/impl-fn-predefined-lifetimes.rs rename to tests/ui/impl-trait/impl-fn-predefined-lifetimes.rs diff --git a/src/test/ui/impl-trait/impl-fn-predefined-lifetimes.stderr b/tests/ui/impl-trait/impl-fn-predefined-lifetimes.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-fn-predefined-lifetimes.stderr rename to tests/ui/impl-trait/impl-fn-predefined-lifetimes.stderr diff --git a/src/test/ui/impl-trait/impl-generic-mismatch-ab.rs b/tests/ui/impl-trait/impl-generic-mismatch-ab.rs similarity index 100% rename from src/test/ui/impl-trait/impl-generic-mismatch-ab.rs rename to tests/ui/impl-trait/impl-generic-mismatch-ab.rs diff --git a/src/test/ui/impl-trait/impl-generic-mismatch-ab.stderr b/tests/ui/impl-trait/impl-generic-mismatch-ab.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-generic-mismatch-ab.stderr rename to tests/ui/impl-trait/impl-generic-mismatch-ab.stderr diff --git a/src/test/ui/impl-trait/impl-generic-mismatch.rs b/tests/ui/impl-trait/impl-generic-mismatch.rs similarity index 100% rename from src/test/ui/impl-trait/impl-generic-mismatch.rs rename to tests/ui/impl-trait/impl-generic-mismatch.rs diff --git a/src/test/ui/impl-trait/impl-generic-mismatch.stderr b/tests/ui/impl-trait/impl-generic-mismatch.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-generic-mismatch.stderr rename to tests/ui/impl-trait/impl-generic-mismatch.stderr diff --git a/src/test/ui/impl-trait/impl-trait-in-macro.rs b/tests/ui/impl-trait/impl-trait-in-macro.rs similarity index 100% rename from src/test/ui/impl-trait/impl-trait-in-macro.rs rename to tests/ui/impl-trait/impl-trait-in-macro.rs diff --git a/src/test/ui/impl-trait/impl-trait-in-macro.stderr b/tests/ui/impl-trait/impl-trait-in-macro.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-trait-in-macro.stderr rename to tests/ui/impl-trait/impl-trait-in-macro.stderr diff --git a/src/test/ui/impl-trait/impl-trait-plus-priority.rs b/tests/ui/impl-trait/impl-trait-plus-priority.rs similarity index 100% rename from src/test/ui/impl-trait/impl-trait-plus-priority.rs rename to tests/ui/impl-trait/impl-trait-plus-priority.rs diff --git a/src/test/ui/impl-trait/impl-trait-plus-priority.stderr b/tests/ui/impl-trait/impl-trait-plus-priority.stderr similarity index 100% rename from src/test/ui/impl-trait/impl-trait-plus-priority.stderr rename to tests/ui/impl-trait/impl-trait-plus-priority.stderr diff --git a/src/test/ui/impl-trait/impl_fn_associativity.rs b/tests/ui/impl-trait/impl_fn_associativity.rs similarity index 100% rename from src/test/ui/impl-trait/impl_fn_associativity.rs rename to tests/ui/impl-trait/impl_fn_associativity.rs diff --git a/src/test/ui/impl-trait/impl_trait_projections.rs b/tests/ui/impl-trait/impl_trait_projections.rs similarity index 100% rename from src/test/ui/impl-trait/impl_trait_projections.rs rename to tests/ui/impl-trait/impl_trait_projections.rs diff --git a/src/test/ui/impl-trait/impl_trait_projections.stderr b/tests/ui/impl-trait/impl_trait_projections.stderr similarity index 100% rename from src/test/ui/impl-trait/impl_trait_projections.stderr rename to tests/ui/impl-trait/impl_trait_projections.stderr diff --git a/src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs b/tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs rename to tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs diff --git a/src/test/ui/impl-trait/in-trait/box-coerce-span-in-default.rs b/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/box-coerce-span-in-default.rs rename to tests/ui/impl-trait/in-trait/box-coerce-span-in-default.rs diff --git a/src/test/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr b/tests/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr rename to tests/ui/impl-trait/in-trait/box-coerce-span-in-default.stderr diff --git a/src/test/ui/impl-trait/in-trait/deep-match-works.rs b/tests/ui/impl-trait/in-trait/deep-match-works.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/deep-match-works.rs rename to tests/ui/impl-trait/in-trait/deep-match-works.rs diff --git a/src/test/ui/impl-trait/in-trait/deep-match.rs b/tests/ui/impl-trait/in-trait/deep-match.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/deep-match.rs rename to tests/ui/impl-trait/in-trait/deep-match.rs diff --git a/src/test/ui/impl-trait/in-trait/deep-match.stderr b/tests/ui/impl-trait/in-trait/deep-match.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/deep-match.stderr rename to tests/ui/impl-trait/in-trait/deep-match.stderr diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err-2.rs b/tests/ui/impl-trait/in-trait/default-body-type-err-2.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/default-body-type-err-2.rs rename to tests/ui/impl-trait/in-trait/default-body-type-err-2.rs diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err-2.stderr b/tests/ui/impl-trait/in-trait/default-body-type-err-2.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/default-body-type-err-2.stderr rename to tests/ui/impl-trait/in-trait/default-body-type-err-2.stderr diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err.rs b/tests/ui/impl-trait/in-trait/default-body-type-err.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/default-body-type-err.rs rename to tests/ui/impl-trait/in-trait/default-body-type-err.rs diff --git a/src/test/ui/impl-trait/in-trait/default-body-type-err.stderr b/tests/ui/impl-trait/in-trait/default-body-type-err.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/default-body-type-err.stderr rename to tests/ui/impl-trait/in-trait/default-body-type-err.stderr diff --git a/src/test/ui/impl-trait/in-trait/default-body-with-rpit.rs b/tests/ui/impl-trait/in-trait/default-body-with-rpit.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/default-body-with-rpit.rs rename to tests/ui/impl-trait/in-trait/default-body-with-rpit.rs diff --git a/src/test/ui/impl-trait/in-trait/default-body.rs b/tests/ui/impl-trait/in-trait/default-body.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/default-body.rs rename to tests/ui/impl-trait/in-trait/default-body.rs diff --git a/src/test/ui/impl-trait/in-trait/doesnt-satisfy.rs b/tests/ui/impl-trait/in-trait/doesnt-satisfy.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/doesnt-satisfy.rs rename to tests/ui/impl-trait/in-trait/doesnt-satisfy.rs diff --git a/src/test/ui/impl-trait/in-trait/doesnt-satisfy.stderr b/tests/ui/impl-trait/in-trait/doesnt-satisfy.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/doesnt-satisfy.stderr rename to tests/ui/impl-trait/in-trait/doesnt-satisfy.stderr diff --git a/src/test/ui/impl-trait/in-trait/early.rs b/tests/ui/impl-trait/in-trait/early.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/early.rs rename to tests/ui/impl-trait/in-trait/early.rs diff --git a/src/test/ui/impl-trait/in-trait/encode.rs b/tests/ui/impl-trait/in-trait/encode.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/encode.rs rename to tests/ui/impl-trait/in-trait/encode.rs diff --git a/src/test/ui/impl-trait/in-trait/foreign.rs b/tests/ui/impl-trait/in-trait/foreign.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/foreign.rs rename to tests/ui/impl-trait/in-trait/foreign.rs diff --git a/src/test/ui/impl-trait/in-trait/generics-mismatch.rs b/tests/ui/impl-trait/in-trait/generics-mismatch.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/generics-mismatch.rs rename to tests/ui/impl-trait/in-trait/generics-mismatch.rs diff --git a/src/test/ui/impl-trait/in-trait/generics-mismatch.stderr b/tests/ui/impl-trait/in-trait/generics-mismatch.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/generics-mismatch.stderr rename to tests/ui/impl-trait/in-trait/generics-mismatch.stderr diff --git a/src/test/ui/impl-trait/in-trait/issue-102140.rs b/tests/ui/impl-trait/in-trait/issue-102140.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/issue-102140.rs rename to tests/ui/impl-trait/in-trait/issue-102140.rs diff --git a/src/test/ui/impl-trait/in-trait/issue-102140.stderr b/tests/ui/impl-trait/in-trait/issue-102140.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/issue-102140.stderr rename to tests/ui/impl-trait/in-trait/issue-102140.stderr diff --git a/src/test/ui/impl-trait/in-trait/issue-102301.rs b/tests/ui/impl-trait/in-trait/issue-102301.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/issue-102301.rs rename to tests/ui/impl-trait/in-trait/issue-102301.rs diff --git a/src/test/ui/impl-trait/in-trait/issue-102571.rs b/tests/ui/impl-trait/in-trait/issue-102571.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/issue-102571.rs rename to tests/ui/impl-trait/in-trait/issue-102571.rs diff --git a/src/test/ui/impl-trait/in-trait/issue-102571.stderr b/tests/ui/impl-trait/in-trait/issue-102571.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/issue-102571.stderr rename to tests/ui/impl-trait/in-trait/issue-102571.stderr diff --git a/src/test/ui/impl-trait/in-trait/method-signature-matches.rs b/tests/ui/impl-trait/in-trait/method-signature-matches.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/method-signature-matches.rs rename to tests/ui/impl-trait/in-trait/method-signature-matches.rs diff --git a/src/test/ui/impl-trait/in-trait/method-signature-matches.stderr b/tests/ui/impl-trait/in-trait/method-signature-matches.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/method-signature-matches.stderr rename to tests/ui/impl-trait/in-trait/method-signature-matches.stderr diff --git a/src/test/ui/impl-trait/in-trait/nested-rpitit.rs b/tests/ui/impl-trait/in-trait/nested-rpitit.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/nested-rpitit.rs rename to tests/ui/impl-trait/in-trait/nested-rpitit.rs diff --git a/src/test/ui/impl-trait/in-trait/object-safety.rs b/tests/ui/impl-trait/in-trait/object-safety.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/object-safety.rs rename to tests/ui/impl-trait/in-trait/object-safety.rs diff --git a/src/test/ui/impl-trait/in-trait/object-safety.stderr b/tests/ui/impl-trait/in-trait/object-safety.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/object-safety.stderr rename to tests/ui/impl-trait/in-trait/object-safety.stderr diff --git a/src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs b/tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs rename to tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.rs diff --git a/src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr b/tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr rename to tests/ui/impl-trait/in-trait/opaque-in-impl-is-opaque.stderr diff --git a/src/test/ui/impl-trait/in-trait/opaque-in-impl.rs b/tests/ui/impl-trait/in-trait/opaque-in-impl.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/opaque-in-impl.rs rename to tests/ui/impl-trait/in-trait/opaque-in-impl.rs diff --git a/src/test/ui/impl-trait/in-trait/reveal.rs b/tests/ui/impl-trait/in-trait/reveal.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/reveal.rs rename to tests/ui/impl-trait/in-trait/reveal.rs diff --git a/src/test/ui/impl-trait/in-trait/signature-mismatch.rs b/tests/ui/impl-trait/in-trait/signature-mismatch.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/signature-mismatch.rs rename to tests/ui/impl-trait/in-trait/signature-mismatch.rs diff --git a/src/test/ui/impl-trait/in-trait/signature-mismatch.stderr b/tests/ui/impl-trait/in-trait/signature-mismatch.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/signature-mismatch.stderr rename to tests/ui/impl-trait/in-trait/signature-mismatch.stderr diff --git a/src/test/ui/impl-trait/in-trait/specialization-broken.rs b/tests/ui/impl-trait/in-trait/specialization-broken.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/specialization-broken.rs rename to tests/ui/impl-trait/in-trait/specialization-broken.rs diff --git a/src/test/ui/impl-trait/in-trait/specialization-broken.stderr b/tests/ui/impl-trait/in-trait/specialization-broken.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/specialization-broken.stderr rename to tests/ui/impl-trait/in-trait/specialization-broken.stderr diff --git a/src/test/ui/impl-trait/in-trait/specialization-substs-remap.rs b/tests/ui/impl-trait/in-trait/specialization-substs-remap.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/specialization-substs-remap.rs rename to tests/ui/impl-trait/in-trait/specialization-substs-remap.rs diff --git a/src/test/ui/impl-trait/in-trait/success.rs b/tests/ui/impl-trait/in-trait/success.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/success.rs rename to tests/ui/impl-trait/in-trait/success.rs diff --git a/src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs rename to tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs diff --git a/src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr rename to tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.stderr diff --git a/src/test/ui/impl-trait/in-trait/wf-bounds.rs b/tests/ui/impl-trait/in-trait/wf-bounds.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/wf-bounds.rs rename to tests/ui/impl-trait/in-trait/wf-bounds.rs diff --git a/src/test/ui/impl-trait/in-trait/wf-bounds.stderr b/tests/ui/impl-trait/in-trait/wf-bounds.stderr similarity index 100% rename from src/test/ui/impl-trait/in-trait/wf-bounds.stderr rename to tests/ui/impl-trait/in-trait/wf-bounds.stderr diff --git a/src/test/ui/impl-trait/in-trait/where-clause.rs b/tests/ui/impl-trait/in-trait/where-clause.rs similarity index 100% rename from src/test/ui/impl-trait/in-trait/where-clause.rs rename to tests/ui/impl-trait/in-trait/where-clause.rs diff --git a/src/test/ui/impl-trait/issue-100075-2.rs b/tests/ui/impl-trait/issue-100075-2.rs similarity index 100% rename from src/test/ui/impl-trait/issue-100075-2.rs rename to tests/ui/impl-trait/issue-100075-2.rs diff --git a/src/test/ui/impl-trait/issue-100075-2.stderr b/tests/ui/impl-trait/issue-100075-2.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-100075-2.stderr rename to tests/ui/impl-trait/issue-100075-2.stderr diff --git a/src/test/ui/impl-trait/issue-100075.rs b/tests/ui/impl-trait/issue-100075.rs similarity index 100% rename from src/test/ui/impl-trait/issue-100075.rs rename to tests/ui/impl-trait/issue-100075.rs diff --git a/src/test/ui/impl-trait/issue-100075.stderr b/tests/ui/impl-trait/issue-100075.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-100075.stderr rename to tests/ui/impl-trait/issue-100075.stderr diff --git a/src/test/ui/impl-trait/issue-100187.rs b/tests/ui/impl-trait/issue-100187.rs similarity index 100% rename from src/test/ui/impl-trait/issue-100187.rs rename to tests/ui/impl-trait/issue-100187.rs diff --git a/src/test/ui/impl-trait/issue-102605.rs b/tests/ui/impl-trait/issue-102605.rs similarity index 100% rename from src/test/ui/impl-trait/issue-102605.rs rename to tests/ui/impl-trait/issue-102605.rs diff --git a/src/test/ui/impl-trait/issue-102605.stderr b/tests/ui/impl-trait/issue-102605.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-102605.stderr rename to tests/ui/impl-trait/issue-102605.stderr diff --git a/src/test/ui/impl-trait/issue-103181-1.rs b/tests/ui/impl-trait/issue-103181-1.rs similarity index 100% rename from src/test/ui/impl-trait/issue-103181-1.rs rename to tests/ui/impl-trait/issue-103181-1.rs diff --git a/src/test/ui/impl-trait/issue-103181-1.stderr b/tests/ui/impl-trait/issue-103181-1.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-103181-1.stderr rename to tests/ui/impl-trait/issue-103181-1.stderr diff --git a/src/test/ui/impl-trait/issue-103181-2.rs b/tests/ui/impl-trait/issue-103181-2.rs similarity index 100% rename from src/test/ui/impl-trait/issue-103181-2.rs rename to tests/ui/impl-trait/issue-103181-2.rs diff --git a/src/test/ui/impl-trait/issue-103181-2.stderr b/tests/ui/impl-trait/issue-103181-2.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-103181-2.stderr rename to tests/ui/impl-trait/issue-103181-2.stderr diff --git a/src/test/ui/impl-trait/issue-103599.rs b/tests/ui/impl-trait/issue-103599.rs similarity index 100% rename from src/test/ui/impl-trait/issue-103599.rs rename to tests/ui/impl-trait/issue-103599.rs diff --git a/src/test/ui/impl-trait/issue-103599.stderr b/tests/ui/impl-trait/issue-103599.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-103599.stderr rename to tests/ui/impl-trait/issue-103599.stderr diff --git a/src/test/ui/impl-trait/issue-35668.rs b/tests/ui/impl-trait/issue-35668.rs similarity index 100% rename from src/test/ui/impl-trait/issue-35668.rs rename to tests/ui/impl-trait/issue-35668.rs diff --git a/src/test/ui/impl-trait/issue-35668.stderr b/tests/ui/impl-trait/issue-35668.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-35668.stderr rename to tests/ui/impl-trait/issue-35668.stderr diff --git a/src/test/ui/impl-trait/issue-46959.rs b/tests/ui/impl-trait/issue-46959.rs similarity index 100% rename from src/test/ui/impl-trait/issue-46959.rs rename to tests/ui/impl-trait/issue-46959.rs diff --git a/src/test/ui/impl-trait/issue-49556.rs b/tests/ui/impl-trait/issue-49556.rs similarity index 100% rename from src/test/ui/impl-trait/issue-49556.rs rename to tests/ui/impl-trait/issue-49556.rs diff --git a/src/test/ui/impl-trait/issue-49579.rs b/tests/ui/impl-trait/issue-49579.rs similarity index 100% rename from src/test/ui/impl-trait/issue-49579.rs rename to tests/ui/impl-trait/issue-49579.rs diff --git a/src/test/ui/impl-trait/issue-49685.rs b/tests/ui/impl-trait/issue-49685.rs similarity index 100% rename from src/test/ui/impl-trait/issue-49685.rs rename to tests/ui/impl-trait/issue-49685.rs diff --git a/src/test/ui/impl-trait/issue-51185.rs b/tests/ui/impl-trait/issue-51185.rs similarity index 100% rename from src/test/ui/impl-trait/issue-51185.rs rename to tests/ui/impl-trait/issue-51185.rs diff --git a/src/test/ui/impl-trait/issue-54966.rs b/tests/ui/impl-trait/issue-54966.rs similarity index 100% rename from src/test/ui/impl-trait/issue-54966.rs rename to tests/ui/impl-trait/issue-54966.rs diff --git a/src/test/ui/impl-trait/issue-54966.stderr b/tests/ui/impl-trait/issue-54966.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-54966.stderr rename to tests/ui/impl-trait/issue-54966.stderr diff --git a/src/test/ui/impl-trait/issue-55872-1.rs b/tests/ui/impl-trait/issue-55872-1.rs similarity index 100% rename from src/test/ui/impl-trait/issue-55872-1.rs rename to tests/ui/impl-trait/issue-55872-1.rs diff --git a/src/test/ui/impl-trait/issue-55872-1.stderr b/tests/ui/impl-trait/issue-55872-1.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-55872-1.stderr rename to tests/ui/impl-trait/issue-55872-1.stderr diff --git a/src/test/ui/impl-trait/issue-55872-2.rs b/tests/ui/impl-trait/issue-55872-2.rs similarity index 100% rename from src/test/ui/impl-trait/issue-55872-2.rs rename to tests/ui/impl-trait/issue-55872-2.rs diff --git a/src/test/ui/impl-trait/issue-55872-2.stderr b/tests/ui/impl-trait/issue-55872-2.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-55872-2.stderr rename to tests/ui/impl-trait/issue-55872-2.stderr diff --git a/src/test/ui/impl-trait/issue-55872-3.rs b/tests/ui/impl-trait/issue-55872-3.rs similarity index 100% rename from src/test/ui/impl-trait/issue-55872-3.rs rename to tests/ui/impl-trait/issue-55872-3.rs diff --git a/src/test/ui/impl-trait/issue-55872-3.stderr b/tests/ui/impl-trait/issue-55872-3.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-55872-3.stderr rename to tests/ui/impl-trait/issue-55872-3.stderr diff --git a/src/test/ui/impl-trait/issue-55872.rs b/tests/ui/impl-trait/issue-55872.rs similarity index 100% rename from src/test/ui/impl-trait/issue-55872.rs rename to tests/ui/impl-trait/issue-55872.rs diff --git a/src/test/ui/impl-trait/issue-55872.stderr b/tests/ui/impl-trait/issue-55872.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-55872.stderr rename to tests/ui/impl-trait/issue-55872.stderr diff --git a/src/test/ui/impl-trait/issue-56445.rs b/tests/ui/impl-trait/issue-56445.rs similarity index 100% rename from src/test/ui/impl-trait/issue-56445.rs rename to tests/ui/impl-trait/issue-56445.rs diff --git a/src/test/ui/impl-trait/issue-68532.rs b/tests/ui/impl-trait/issue-68532.rs similarity index 100% rename from src/test/ui/impl-trait/issue-68532.rs rename to tests/ui/impl-trait/issue-68532.rs diff --git a/src/test/ui/impl-trait/issue-72911.rs b/tests/ui/impl-trait/issue-72911.rs similarity index 100% rename from src/test/ui/impl-trait/issue-72911.rs rename to tests/ui/impl-trait/issue-72911.rs diff --git a/src/test/ui/impl-trait/issue-72911.stderr b/tests/ui/impl-trait/issue-72911.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-72911.stderr rename to tests/ui/impl-trait/issue-72911.stderr diff --git a/src/test/ui/impl-trait/issue-86465.rs b/tests/ui/impl-trait/issue-86465.rs similarity index 100% rename from src/test/ui/impl-trait/issue-86465.rs rename to tests/ui/impl-trait/issue-86465.rs diff --git a/src/test/ui/impl-trait/issue-86465.stderr b/tests/ui/impl-trait/issue-86465.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-86465.stderr rename to tests/ui/impl-trait/issue-86465.stderr diff --git a/src/test/ui/impl-trait/issue-87450.rs b/tests/ui/impl-trait/issue-87450.rs similarity index 100% rename from src/test/ui/impl-trait/issue-87450.rs rename to tests/ui/impl-trait/issue-87450.rs diff --git a/src/test/ui/impl-trait/issue-87450.stderr b/tests/ui/impl-trait/issue-87450.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-87450.stderr rename to tests/ui/impl-trait/issue-87450.stderr diff --git a/src/test/ui/impl-trait/issue-99073-2.rs b/tests/ui/impl-trait/issue-99073-2.rs similarity index 100% rename from src/test/ui/impl-trait/issue-99073-2.rs rename to tests/ui/impl-trait/issue-99073-2.rs diff --git a/src/test/ui/impl-trait/issue-99073-2.stderr b/tests/ui/impl-trait/issue-99073-2.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-99073-2.stderr rename to tests/ui/impl-trait/issue-99073-2.stderr diff --git a/src/test/ui/impl-trait/issue-99073.rs b/tests/ui/impl-trait/issue-99073.rs similarity index 100% rename from src/test/ui/impl-trait/issue-99073.rs rename to tests/ui/impl-trait/issue-99073.rs diff --git a/src/test/ui/impl-trait/issue-99073.stderr b/tests/ui/impl-trait/issue-99073.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-99073.stderr rename to tests/ui/impl-trait/issue-99073.stderr diff --git a/src/test/ui/impl-trait/issue-99642-2.rs b/tests/ui/impl-trait/issue-99642-2.rs similarity index 100% rename from src/test/ui/impl-trait/issue-99642-2.rs rename to tests/ui/impl-trait/issue-99642-2.rs diff --git a/src/test/ui/impl-trait/issue-99642.rs b/tests/ui/impl-trait/issue-99642.rs similarity index 100% rename from src/test/ui/impl-trait/issue-99642.rs rename to tests/ui/impl-trait/issue-99642.rs diff --git a/src/test/ui/impl-trait/issue-99914.rs b/tests/ui/impl-trait/issue-99914.rs similarity index 100% rename from src/test/ui/impl-trait/issue-99914.rs rename to tests/ui/impl-trait/issue-99914.rs diff --git a/src/test/ui/impl-trait/issue-99914.stderr b/tests/ui/impl-trait/issue-99914.stderr similarity index 100% rename from src/test/ui/impl-trait/issue-99914.stderr rename to tests/ui/impl-trait/issue-99914.stderr diff --git a/src/test/ui/impl-trait/issues/infinite-impl-trait-issue-38064.rs b/tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.rs similarity index 100% rename from src/test/ui/impl-trait/issues/infinite-impl-trait-issue-38064.rs rename to tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.rs diff --git a/src/test/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr b/tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr rename to tests/ui/impl-trait/issues/infinite-impl-trait-issue-38064.stderr diff --git a/src/test/ui/impl-trait/issues/issue-104815.rs b/tests/ui/impl-trait/issues/issue-104815.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-104815.rs rename to tests/ui/impl-trait/issues/issue-104815.rs diff --git a/src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.rs b/tests/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.rs rename to tests/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.rs diff --git a/src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr b/tests/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr rename to tests/ui/impl-trait/issues/issue-21659-show-relevant-trait-impls-3.stderr diff --git a/src/test/ui/impl-trait/issues/issue-42479.rs b/tests/ui/impl-trait/issues/issue-42479.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-42479.rs rename to tests/ui/impl-trait/issues/issue-42479.rs diff --git a/src/test/ui/impl-trait/issues/issue-49376.rs b/tests/ui/impl-trait/issues/issue-49376.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-49376.rs rename to tests/ui/impl-trait/issues/issue-49376.rs diff --git a/src/test/ui/impl-trait/issues/issue-52128.rs b/tests/ui/impl-trait/issues/issue-52128.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-52128.rs rename to tests/ui/impl-trait/issues/issue-52128.rs diff --git a/src/test/ui/impl-trait/issues/issue-53457.rs b/tests/ui/impl-trait/issues/issue-53457.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-53457.rs rename to tests/ui/impl-trait/issues/issue-53457.rs diff --git a/src/test/ui/impl-trait/issues/issue-54600.rs b/tests/ui/impl-trait/issues/issue-54600.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-54600.rs rename to tests/ui/impl-trait/issues/issue-54600.rs diff --git a/src/test/ui/impl-trait/issues/issue-54600.stderr b/tests/ui/impl-trait/issues/issue-54600.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-54600.stderr rename to tests/ui/impl-trait/issues/issue-54600.stderr diff --git a/src/test/ui/impl-trait/issues/issue-54840.rs b/tests/ui/impl-trait/issues/issue-54840.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-54840.rs rename to tests/ui/impl-trait/issues/issue-54840.rs diff --git a/src/test/ui/impl-trait/issues/issue-54840.stderr b/tests/ui/impl-trait/issues/issue-54840.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-54840.stderr rename to tests/ui/impl-trait/issues/issue-54840.stderr diff --git a/src/test/ui/impl-trait/issues/issue-54895.rs b/tests/ui/impl-trait/issues/issue-54895.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-54895.rs rename to tests/ui/impl-trait/issues/issue-54895.rs diff --git a/src/test/ui/impl-trait/issues/issue-54895.stderr b/tests/ui/impl-trait/issues/issue-54895.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-54895.stderr rename to tests/ui/impl-trait/issues/issue-54895.stderr diff --git a/src/test/ui/impl-trait/issues/issue-55608-captures-empty-region.rs b/tests/ui/impl-trait/issues/issue-55608-captures-empty-region.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-55608-captures-empty-region.rs rename to tests/ui/impl-trait/issues/issue-55608-captures-empty-region.rs diff --git a/src/test/ui/impl-trait/issues/issue-57464-unexpected-regions.rs b/tests/ui/impl-trait/issues/issue-57464-unexpected-regions.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57464-unexpected-regions.rs rename to tests/ui/impl-trait/issues/issue-57464-unexpected-regions.rs diff --git a/src/test/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs b/tests/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs rename to tests/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs diff --git a/src/test/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr b/tests/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr rename to tests/ui/impl-trait/issues/issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr diff --git a/src/test/ui/impl-trait/issues/issue-57979-impl-trait-in-path.rs b/tests/ui/impl-trait/issues/issue-57979-impl-trait-in-path.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57979-impl-trait-in-path.rs rename to tests/ui/impl-trait/issues/issue-57979-impl-trait-in-path.rs diff --git a/src/test/ui/impl-trait/issues/issue-57979-impl-trait-in-path.stderr b/tests/ui/impl-trait/issues/issue-57979-impl-trait-in-path.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57979-impl-trait-in-path.stderr rename to tests/ui/impl-trait/issues/issue-57979-impl-trait-in-path.stderr diff --git a/src/test/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.rs b/tests/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.rs rename to tests/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.rs diff --git a/src/test/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.stderr b/tests/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.stderr rename to tests/ui/impl-trait/issues/issue-57979-nested-impl-trait-in-assoc-proj.stderr diff --git a/src/test/ui/impl-trait/issues/issue-58504.rs b/tests/ui/impl-trait/issues/issue-58504.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-58504.rs rename to tests/ui/impl-trait/issues/issue-58504.rs diff --git a/src/test/ui/impl-trait/issues/issue-58504.stderr b/tests/ui/impl-trait/issues/issue-58504.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-58504.stderr rename to tests/ui/impl-trait/issues/issue-58504.stderr diff --git a/src/test/ui/impl-trait/issues/issue-58956.rs b/tests/ui/impl-trait/issues/issue-58956.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-58956.rs rename to tests/ui/impl-trait/issues/issue-58956.rs diff --git a/src/test/ui/impl-trait/issues/issue-58956.stderr b/tests/ui/impl-trait/issues/issue-58956.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-58956.stderr rename to tests/ui/impl-trait/issues/issue-58956.stderr diff --git a/src/test/ui/impl-trait/issues/issue-62742.rs b/tests/ui/impl-trait/issues/issue-62742.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-62742.rs rename to tests/ui/impl-trait/issues/issue-62742.rs diff --git a/src/test/ui/impl-trait/issues/issue-62742.stderr b/tests/ui/impl-trait/issues/issue-62742.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-62742.stderr rename to tests/ui/impl-trait/issues/issue-62742.stderr diff --git a/src/test/ui/impl-trait/issues/issue-65581.rs b/tests/ui/impl-trait/issues/issue-65581.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-65581.rs rename to tests/ui/impl-trait/issues/issue-65581.rs diff --git a/src/test/ui/impl-trait/issues/issue-67830.rs b/tests/ui/impl-trait/issues/issue-67830.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-67830.rs rename to tests/ui/impl-trait/issues/issue-67830.rs diff --git a/src/test/ui/impl-trait/issues/issue-67830.stderr b/tests/ui/impl-trait/issues/issue-67830.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-67830.stderr rename to tests/ui/impl-trait/issues/issue-67830.stderr diff --git a/src/test/ui/impl-trait/issues/issue-70877.rs b/tests/ui/impl-trait/issues/issue-70877.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-70877.rs rename to tests/ui/impl-trait/issues/issue-70877.rs diff --git a/src/test/ui/impl-trait/issues/issue-70877.stderr b/tests/ui/impl-trait/issues/issue-70877.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-70877.stderr rename to tests/ui/impl-trait/issues/issue-70877.stderr diff --git a/src/test/ui/impl-trait/issues/issue-70971.rs b/tests/ui/impl-trait/issues/issue-70971.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-70971.rs rename to tests/ui/impl-trait/issues/issue-70971.rs diff --git a/src/test/ui/impl-trait/issues/issue-70971.stderr b/tests/ui/impl-trait/issues/issue-70971.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-70971.stderr rename to tests/ui/impl-trait/issues/issue-70971.stderr diff --git a/src/test/ui/impl-trait/issues/issue-74282.rs b/tests/ui/impl-trait/issues/issue-74282.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-74282.rs rename to tests/ui/impl-trait/issues/issue-74282.rs diff --git a/src/test/ui/impl-trait/issues/issue-74282.stderr b/tests/ui/impl-trait/issues/issue-74282.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-74282.stderr rename to tests/ui/impl-trait/issues/issue-74282.stderr diff --git a/src/test/ui/impl-trait/issues/issue-77987.rs b/tests/ui/impl-trait/issues/issue-77987.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-77987.rs rename to tests/ui/impl-trait/issues/issue-77987.rs diff --git a/src/test/ui/impl-trait/issues/issue-78722.rs b/tests/ui/impl-trait/issues/issue-78722.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-78722.rs rename to tests/ui/impl-trait/issues/issue-78722.rs diff --git a/src/test/ui/impl-trait/issues/issue-78722.stderr b/tests/ui/impl-trait/issues/issue-78722.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-78722.stderr rename to tests/ui/impl-trait/issues/issue-78722.stderr diff --git a/src/test/ui/impl-trait/issues/issue-79099.rs b/tests/ui/impl-trait/issues/issue-79099.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-79099.rs rename to tests/ui/impl-trait/issues/issue-79099.rs diff --git a/src/test/ui/impl-trait/issues/issue-79099.stderr b/tests/ui/impl-trait/issues/issue-79099.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-79099.stderr rename to tests/ui/impl-trait/issues/issue-79099.stderr diff --git a/src/test/ui/impl-trait/issues/issue-82139.rs b/tests/ui/impl-trait/issues/issue-82139.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-82139.rs rename to tests/ui/impl-trait/issues/issue-82139.rs diff --git a/src/test/ui/impl-trait/issues/issue-82139.stderr b/tests/ui/impl-trait/issues/issue-82139.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-82139.stderr rename to tests/ui/impl-trait/issues/issue-82139.stderr diff --git a/src/test/ui/impl-trait/issues/issue-83919.rs b/tests/ui/impl-trait/issues/issue-83919.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-83919.rs rename to tests/ui/impl-trait/issues/issue-83919.rs diff --git a/src/test/ui/impl-trait/issues/issue-83919.stderr b/tests/ui/impl-trait/issues/issue-83919.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-83919.stderr rename to tests/ui/impl-trait/issues/issue-83919.stderr diff --git a/src/test/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.rs b/tests/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.rs rename to tests/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.rs diff --git a/src/test/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.stderr b/tests/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.stderr rename to tests/ui/impl-trait/issues/issue-83929-impl-trait-in-generic-default.stderr diff --git a/src/test/ui/impl-trait/issues/issue-84073.rs b/tests/ui/impl-trait/issues/issue-84073.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-84073.rs rename to tests/ui/impl-trait/issues/issue-84073.rs diff --git a/src/test/ui/impl-trait/issues/issue-84073.stderr b/tests/ui/impl-trait/issues/issue-84073.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-84073.stderr rename to tests/ui/impl-trait/issues/issue-84073.stderr diff --git a/src/test/ui/impl-trait/issues/issue-84919.rs b/tests/ui/impl-trait/issues/issue-84919.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-84919.rs rename to tests/ui/impl-trait/issues/issue-84919.rs diff --git a/src/test/ui/impl-trait/issues/issue-84919.stderr b/tests/ui/impl-trait/issues/issue-84919.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-84919.stderr rename to tests/ui/impl-trait/issues/issue-84919.stderr diff --git a/src/test/ui/impl-trait/issues/issue-86201.rs b/tests/ui/impl-trait/issues/issue-86201.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86201.rs rename to tests/ui/impl-trait/issues/issue-86201.rs diff --git a/src/test/ui/impl-trait/issues/issue-86642.rs b/tests/ui/impl-trait/issues/issue-86642.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86642.rs rename to tests/ui/impl-trait/issues/issue-86642.rs diff --git a/src/test/ui/impl-trait/issues/issue-86642.stderr b/tests/ui/impl-trait/issues/issue-86642.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86642.stderr rename to tests/ui/impl-trait/issues/issue-86642.stderr diff --git a/src/test/ui/impl-trait/issues/issue-86719.rs b/tests/ui/impl-trait/issues/issue-86719.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86719.rs rename to tests/ui/impl-trait/issues/issue-86719.rs diff --git a/src/test/ui/impl-trait/issues/issue-86719.stderr b/tests/ui/impl-trait/issues/issue-86719.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86719.stderr rename to tests/ui/impl-trait/issues/issue-86719.stderr diff --git a/src/test/ui/impl-trait/issues/issue-86800.rs b/tests/ui/impl-trait/issues/issue-86800.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86800.rs rename to tests/ui/impl-trait/issues/issue-86800.rs diff --git a/src/test/ui/impl-trait/issues/issue-86800.stderr b/tests/ui/impl-trait/issues/issue-86800.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-86800.stderr rename to tests/ui/impl-trait/issues/issue-86800.stderr diff --git a/src/test/ui/impl-trait/issues/issue-87295.rs b/tests/ui/impl-trait/issues/issue-87295.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-87295.rs rename to tests/ui/impl-trait/issues/issue-87295.rs diff --git a/src/test/ui/impl-trait/issues/issue-87295.stderr b/tests/ui/impl-trait/issues/issue-87295.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-87295.stderr rename to tests/ui/impl-trait/issues/issue-87295.stderr diff --git a/src/test/ui/impl-trait/issues/issue-87340.rs b/tests/ui/impl-trait/issues/issue-87340.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-87340.rs rename to tests/ui/impl-trait/issues/issue-87340.rs diff --git a/src/test/ui/impl-trait/issues/issue-87340.stderr b/tests/ui/impl-trait/issues/issue-87340.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-87340.stderr rename to tests/ui/impl-trait/issues/issue-87340.stderr diff --git a/src/test/ui/impl-trait/issues/issue-88236-2.rs b/tests/ui/impl-trait/issues/issue-88236-2.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-88236-2.rs rename to tests/ui/impl-trait/issues/issue-88236-2.rs diff --git a/src/test/ui/impl-trait/issues/issue-88236-2.stderr b/tests/ui/impl-trait/issues/issue-88236-2.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-88236-2.stderr rename to tests/ui/impl-trait/issues/issue-88236-2.stderr diff --git a/src/test/ui/impl-trait/issues/issue-88236.rs b/tests/ui/impl-trait/issues/issue-88236.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-88236.rs rename to tests/ui/impl-trait/issues/issue-88236.rs diff --git a/src/test/ui/impl-trait/issues/issue-88236.stderr b/tests/ui/impl-trait/issues/issue-88236.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-88236.stderr rename to tests/ui/impl-trait/issues/issue-88236.stderr diff --git a/src/test/ui/impl-trait/issues/issue-89312.rs b/tests/ui/impl-trait/issues/issue-89312.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-89312.rs rename to tests/ui/impl-trait/issues/issue-89312.rs diff --git a/src/test/ui/impl-trait/issues/issue-92305.rs b/tests/ui/impl-trait/issues/issue-92305.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-92305.rs rename to tests/ui/impl-trait/issues/issue-92305.rs diff --git a/src/test/ui/impl-trait/issues/issue-92305.stderr b/tests/ui/impl-trait/issues/issue-92305.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-92305.stderr rename to tests/ui/impl-trait/issues/issue-92305.stderr diff --git a/src/test/ui/impl-trait/issues/issue-93788.rs b/tests/ui/impl-trait/issues/issue-93788.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-93788.rs rename to tests/ui/impl-trait/issues/issue-93788.rs diff --git a/src/test/ui/impl-trait/issues/issue-99348-impl-compatibility.rs b/tests/ui/impl-trait/issues/issue-99348-impl-compatibility.rs similarity index 100% rename from src/test/ui/impl-trait/issues/issue-99348-impl-compatibility.rs rename to tests/ui/impl-trait/issues/issue-99348-impl-compatibility.rs diff --git a/src/test/ui/impl-trait/issues/issue-99348-impl-compatibility.stderr b/tests/ui/impl-trait/issues/issue-99348-impl-compatibility.stderr similarity index 100% rename from src/test/ui/impl-trait/issues/issue-99348-impl-compatibility.stderr rename to tests/ui/impl-trait/issues/issue-99348-impl-compatibility.stderr diff --git a/src/test/ui/impl-trait/lifetimes.rs b/tests/ui/impl-trait/lifetimes.rs similarity index 100% rename from src/test/ui/impl-trait/lifetimes.rs rename to tests/ui/impl-trait/lifetimes.rs diff --git a/src/test/ui/impl-trait/lifetimes2.rs b/tests/ui/impl-trait/lifetimes2.rs similarity index 100% rename from src/test/ui/impl-trait/lifetimes2.rs rename to tests/ui/impl-trait/lifetimes2.rs diff --git a/src/test/ui/impl-trait/method-suggestion-no-duplication.rs b/tests/ui/impl-trait/method-suggestion-no-duplication.rs similarity index 100% rename from src/test/ui/impl-trait/method-suggestion-no-duplication.rs rename to tests/ui/impl-trait/method-suggestion-no-duplication.rs diff --git a/src/test/ui/impl-trait/method-suggestion-no-duplication.stderr b/tests/ui/impl-trait/method-suggestion-no-duplication.stderr similarity index 100% rename from src/test/ui/impl-trait/method-suggestion-no-duplication.stderr rename to tests/ui/impl-trait/method-suggestion-no-duplication.stderr diff --git a/src/test/ui/impl-trait/multiple-lifetimes.rs b/tests/ui/impl-trait/multiple-lifetimes.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes.rs rename to tests/ui/impl-trait/multiple-lifetimes.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling-2.rs b/tests/ui/impl-trait/multiple-lifetimes/error-handling-2.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/error-handling-2.rs rename to tests/ui/impl-trait/multiple-lifetimes/error-handling-2.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling-2.stderr b/tests/ui/impl-trait/multiple-lifetimes/error-handling-2.stderr similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/error-handling-2.stderr rename to tests/ui/impl-trait/multiple-lifetimes/error-handling-2.stderr diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr b/tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr rename to tests/ui/impl-trait/multiple-lifetimes/error-handling.polonius.stderr diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.rs b/tests/ui/impl-trait/multiple-lifetimes/error-handling.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/error-handling.rs rename to tests/ui/impl-trait/multiple-lifetimes/error-handling.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr b/tests/ui/impl-trait/multiple-lifetimes/error-handling.stderr similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/error-handling.stderr rename to tests/ui/impl-trait/multiple-lifetimes/error-handling.stderr diff --git a/src/test/ui/impl-trait/multiple-lifetimes/inverse-bounds.rs b/tests/ui/impl-trait/multiple-lifetimes/inverse-bounds.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/inverse-bounds.rs rename to tests/ui/impl-trait/multiple-lifetimes/inverse-bounds.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-elided.rs b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-elided.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-elided.rs rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-elided.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-type-alias-impl-trait.rs b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-type-alias-impl-trait.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-type-alias-impl-trait.rs rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original-type-alias-impl-trait.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original.rs b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original.rs rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-original.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-other.rs b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-other.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-other.rs rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-pick-other.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.rs b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.rs rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.stderr b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.stderr similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.stderr rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unrelated.stderr diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.rs b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.rs similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.rs rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.rs diff --git a/src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.stderr b/tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.stderr similarity index 100% rename from src/test/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.stderr rename to tests/ui/impl-trait/multiple-lifetimes/ordinary-bounds-unsuited.stderr diff --git a/src/test/ui/impl-trait/must_outlive_least_region_or_bound.rs b/tests/ui/impl-trait/must_outlive_least_region_or_bound.rs similarity index 100% rename from src/test/ui/impl-trait/must_outlive_least_region_or_bound.rs rename to tests/ui/impl-trait/must_outlive_least_region_or_bound.rs diff --git a/src/test/ui/impl-trait/must_outlive_least_region_or_bound.stderr b/tests/ui/impl-trait/must_outlive_least_region_or_bound.stderr similarity index 100% rename from src/test/ui/impl-trait/must_outlive_least_region_or_bound.stderr rename to tests/ui/impl-trait/must_outlive_least_region_or_bound.stderr diff --git a/src/test/ui/impl-trait/needs_least_region_or_bound.rs b/tests/ui/impl-trait/needs_least_region_or_bound.rs similarity index 100% rename from src/test/ui/impl-trait/needs_least_region_or_bound.rs rename to tests/ui/impl-trait/needs_least_region_or_bound.rs diff --git a/src/test/ui/impl-trait/negative-reasoning.rs b/tests/ui/impl-trait/negative-reasoning.rs similarity index 100% rename from src/test/ui/impl-trait/negative-reasoning.rs rename to tests/ui/impl-trait/negative-reasoning.rs diff --git a/src/test/ui/impl-trait/negative-reasoning.stderr b/tests/ui/impl-trait/negative-reasoning.stderr similarity index 100% rename from src/test/ui/impl-trait/negative-reasoning.stderr rename to tests/ui/impl-trait/negative-reasoning.stderr diff --git a/src/test/ui/impl-trait/nested-return-type.rs b/tests/ui/impl-trait/nested-return-type.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type.rs rename to tests/ui/impl-trait/nested-return-type.rs diff --git a/src/test/ui/impl-trait/nested-return-type2-tait.rs b/tests/ui/impl-trait/nested-return-type2-tait.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2-tait.rs rename to tests/ui/impl-trait/nested-return-type2-tait.rs diff --git a/src/test/ui/impl-trait/nested-return-type2-tait.stderr b/tests/ui/impl-trait/nested-return-type2-tait.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2-tait.stderr rename to tests/ui/impl-trait/nested-return-type2-tait.stderr diff --git a/src/test/ui/impl-trait/nested-return-type2-tait2.rs b/tests/ui/impl-trait/nested-return-type2-tait2.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2-tait2.rs rename to tests/ui/impl-trait/nested-return-type2-tait2.rs diff --git a/src/test/ui/impl-trait/nested-return-type2-tait2.stderr b/tests/ui/impl-trait/nested-return-type2-tait2.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2-tait2.stderr rename to tests/ui/impl-trait/nested-return-type2-tait2.stderr diff --git a/src/test/ui/impl-trait/nested-return-type2-tait3.rs b/tests/ui/impl-trait/nested-return-type2-tait3.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2-tait3.rs rename to tests/ui/impl-trait/nested-return-type2-tait3.rs diff --git a/src/test/ui/impl-trait/nested-return-type2-tait3.stderr b/tests/ui/impl-trait/nested-return-type2-tait3.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2-tait3.stderr rename to tests/ui/impl-trait/nested-return-type2-tait3.stderr diff --git a/src/test/ui/impl-trait/nested-return-type2.rs b/tests/ui/impl-trait/nested-return-type2.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2.rs rename to tests/ui/impl-trait/nested-return-type2.rs diff --git a/src/test/ui/impl-trait/nested-return-type2.stderr b/tests/ui/impl-trait/nested-return-type2.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type2.stderr rename to tests/ui/impl-trait/nested-return-type2.stderr diff --git a/src/test/ui/impl-trait/nested-return-type3-tait.rs b/tests/ui/impl-trait/nested-return-type3-tait.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3-tait.rs rename to tests/ui/impl-trait/nested-return-type3-tait.rs diff --git a/src/test/ui/impl-trait/nested-return-type3-tait.stderr b/tests/ui/impl-trait/nested-return-type3-tait.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3-tait.stderr rename to tests/ui/impl-trait/nested-return-type3-tait.stderr diff --git a/src/test/ui/impl-trait/nested-return-type3-tait2.rs b/tests/ui/impl-trait/nested-return-type3-tait2.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3-tait2.rs rename to tests/ui/impl-trait/nested-return-type3-tait2.rs diff --git a/src/test/ui/impl-trait/nested-return-type3-tait2.stderr b/tests/ui/impl-trait/nested-return-type3-tait2.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3-tait2.stderr rename to tests/ui/impl-trait/nested-return-type3-tait2.stderr diff --git a/src/test/ui/impl-trait/nested-return-type3-tait3.rs b/tests/ui/impl-trait/nested-return-type3-tait3.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3-tait3.rs rename to tests/ui/impl-trait/nested-return-type3-tait3.rs diff --git a/src/test/ui/impl-trait/nested-return-type3-tait3.stderr b/tests/ui/impl-trait/nested-return-type3-tait3.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3-tait3.stderr rename to tests/ui/impl-trait/nested-return-type3-tait3.stderr diff --git a/src/test/ui/impl-trait/nested-return-type3.rs b/tests/ui/impl-trait/nested-return-type3.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3.rs rename to tests/ui/impl-trait/nested-return-type3.rs diff --git a/src/test/ui/impl-trait/nested-return-type3.stderr b/tests/ui/impl-trait/nested-return-type3.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type3.stderr rename to tests/ui/impl-trait/nested-return-type3.stderr diff --git a/src/test/ui/impl-trait/nested-return-type4.rs b/tests/ui/impl-trait/nested-return-type4.rs similarity index 100% rename from src/test/ui/impl-trait/nested-return-type4.rs rename to tests/ui/impl-trait/nested-return-type4.rs diff --git a/src/test/ui/impl-trait/nested-return-type4.stderr b/tests/ui/impl-trait/nested-return-type4.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-return-type4.stderr rename to tests/ui/impl-trait/nested-return-type4.stderr diff --git a/src/test/ui/impl-trait/nested-rpit-hrtb.rs b/tests/ui/impl-trait/nested-rpit-hrtb.rs similarity index 100% rename from src/test/ui/impl-trait/nested-rpit-hrtb.rs rename to tests/ui/impl-trait/nested-rpit-hrtb.rs diff --git a/src/test/ui/impl-trait/nested-rpit-hrtb.stderr b/tests/ui/impl-trait/nested-rpit-hrtb.stderr similarity index 100% rename from src/test/ui/impl-trait/nested-rpit-hrtb.stderr rename to tests/ui/impl-trait/nested-rpit-hrtb.stderr diff --git a/src/test/ui/impl-trait/nested-rpit-with-anonymous-lifetimes.rs b/tests/ui/impl-trait/nested-rpit-with-anonymous-lifetimes.rs similarity index 100% rename from src/test/ui/impl-trait/nested-rpit-with-anonymous-lifetimes.rs rename to tests/ui/impl-trait/nested-rpit-with-anonymous-lifetimes.rs diff --git a/src/test/ui/impl-trait/nested_impl_trait.rs b/tests/ui/impl-trait/nested_impl_trait.rs similarity index 100% rename from src/test/ui/impl-trait/nested_impl_trait.rs rename to tests/ui/impl-trait/nested_impl_trait.rs diff --git a/src/test/ui/impl-trait/nested_impl_trait.stderr b/tests/ui/impl-trait/nested_impl_trait.stderr similarity index 100% rename from src/test/ui/impl-trait/nested_impl_trait.stderr rename to tests/ui/impl-trait/nested_impl_trait.stderr diff --git a/src/test/ui/impl-trait/nesting.rs b/tests/ui/impl-trait/nesting.rs similarity index 100% rename from src/test/ui/impl-trait/nesting.rs rename to tests/ui/impl-trait/nesting.rs diff --git a/src/test/ui/impl-trait/no-method-suggested-traits.rs b/tests/ui/impl-trait/no-method-suggested-traits.rs similarity index 100% rename from src/test/ui/impl-trait/no-method-suggested-traits.rs rename to tests/ui/impl-trait/no-method-suggested-traits.rs diff --git a/src/test/ui/impl-trait/no-method-suggested-traits.stderr b/tests/ui/impl-trait/no-method-suggested-traits.stderr similarity index 100% rename from src/test/ui/impl-trait/no-method-suggested-traits.stderr rename to tests/ui/impl-trait/no-method-suggested-traits.stderr diff --git a/src/test/ui/impl-trait/no-trait.rs b/tests/ui/impl-trait/no-trait.rs similarity index 100% rename from src/test/ui/impl-trait/no-trait.rs rename to tests/ui/impl-trait/no-trait.rs diff --git a/src/test/ui/impl-trait/no-trait.stderr b/tests/ui/impl-trait/no-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/no-trait.stderr rename to tests/ui/impl-trait/no-trait.stderr diff --git a/src/test/ui/impl-trait/normalize-tait-in-const.rs b/tests/ui/impl-trait/normalize-tait-in-const.rs similarity index 100% rename from src/test/ui/impl-trait/normalize-tait-in-const.rs rename to tests/ui/impl-trait/normalize-tait-in-const.rs diff --git a/src/test/ui/impl-trait/normalize-tait-in-const.stderr b/tests/ui/impl-trait/normalize-tait-in-const.stderr similarity index 100% rename from src/test/ui/impl-trait/normalize-tait-in-const.stderr rename to tests/ui/impl-trait/normalize-tait-in-const.stderr diff --git a/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.rs b/tests/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.rs similarity index 100% rename from src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.rs rename to tests/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.rs diff --git a/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr b/tests/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr rename to tests/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr diff --git a/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.rs b/tests/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.rs similarity index 100% rename from src/test/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.rs rename to tests/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.rs diff --git a/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.stderr b/tests/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.stderr rename to tests/ui/impl-trait/object-unsafe-trait-in-return-position-impl-trait.stderr diff --git a/src/test/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.rs b/tests/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.rs similarity index 100% rename from src/test/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.rs rename to tests/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.rs diff --git a/src/test/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.stderr b/tests/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.stderr similarity index 100% rename from src/test/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.stderr rename to tests/ui/impl-trait/point-to-type-err-cause-on-impl-trait-return.stderr diff --git a/src/test/ui/impl-trait/printing-binder.rs b/tests/ui/impl-trait/printing-binder.rs similarity index 100% rename from src/test/ui/impl-trait/printing-binder.rs rename to tests/ui/impl-trait/printing-binder.rs diff --git a/src/test/ui/impl-trait/printing-binder.stderr b/tests/ui/impl-trait/printing-binder.stderr similarity index 100% rename from src/test/ui/impl-trait/printing-binder.stderr rename to tests/ui/impl-trait/printing-binder.stderr diff --git a/src/test/ui/impl-trait/private_unused.rs b/tests/ui/impl-trait/private_unused.rs similarity index 100% rename from src/test/ui/impl-trait/private_unused.rs rename to tests/ui/impl-trait/private_unused.rs diff --git a/src/test/ui/impl-trait/projection-mismatch-in-impl-where-clause.rs b/tests/ui/impl-trait/projection-mismatch-in-impl-where-clause.rs similarity index 100% rename from src/test/ui/impl-trait/projection-mismatch-in-impl-where-clause.rs rename to tests/ui/impl-trait/projection-mismatch-in-impl-where-clause.rs diff --git a/src/test/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr b/tests/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr similarity index 100% rename from src/test/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr rename to tests/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr diff --git a/src/test/ui/impl-trait/projection.rs b/tests/ui/impl-trait/projection.rs similarity index 100% rename from src/test/ui/impl-trait/projection.rs rename to tests/ui/impl-trait/projection.rs diff --git a/src/test/ui/impl-trait/question_mark.rs b/tests/ui/impl-trait/question_mark.rs similarity index 100% rename from src/test/ui/impl-trait/question_mark.rs rename to tests/ui/impl-trait/question_mark.rs diff --git a/src/test/ui/impl-trait/recursive-impl-trait-type-direct.rs b/tests/ui/impl-trait/recursive-impl-trait-type-direct.rs similarity index 100% rename from src/test/ui/impl-trait/recursive-impl-trait-type-direct.rs rename to tests/ui/impl-trait/recursive-impl-trait-type-direct.rs diff --git a/src/test/ui/impl-trait/recursive-impl-trait-type-indirect.rs b/tests/ui/impl-trait/recursive-impl-trait-type-indirect.rs similarity index 100% rename from src/test/ui/impl-trait/recursive-impl-trait-type-indirect.rs rename to tests/ui/impl-trait/recursive-impl-trait-type-indirect.rs diff --git a/src/test/ui/impl-trait/recursive-impl-trait-type-indirect.stderr b/tests/ui/impl-trait/recursive-impl-trait-type-indirect.stderr similarity index 100% rename from src/test/ui/impl-trait/recursive-impl-trait-type-indirect.stderr rename to tests/ui/impl-trait/recursive-impl-trait-type-indirect.stderr diff --git a/src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs b/tests/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs similarity index 100% rename from src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs rename to tests/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.rs diff --git a/src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.stderr b/tests/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.stderr similarity index 100% rename from src/test/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.stderr rename to tests/ui/impl-trait/recursive-impl-trait-type-through-non-recursive.stderr diff --git a/src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs b/tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs similarity index 100% rename from src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs rename to tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs diff --git a/src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.stderr b/tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.stderr similarity index 100% rename from src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.stderr rename to tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.stderr diff --git a/src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.rs b/tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.rs similarity index 100% rename from src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.rs rename to tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.rs diff --git a/src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.stderr b/tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.stderr similarity index 100% rename from src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.stderr rename to tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle.stderr diff --git a/src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration.rs b/tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration.rs similarity index 100% rename from src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration.rs rename to tests/ui/impl-trait/recursive-type-alias-impl-trait-declaration.rs diff --git a/src/test/ui/impl-trait/region-escape-via-bound-contravariant-closure.rs b/tests/ui/impl-trait/region-escape-via-bound-contravariant-closure.rs similarity index 100% rename from src/test/ui/impl-trait/region-escape-via-bound-contravariant-closure.rs rename to tests/ui/impl-trait/region-escape-via-bound-contravariant-closure.rs diff --git a/src/test/ui/impl-trait/region-escape-via-bound-contravariant.rs b/tests/ui/impl-trait/region-escape-via-bound-contravariant.rs similarity index 100% rename from src/test/ui/impl-trait/region-escape-via-bound-contravariant.rs rename to tests/ui/impl-trait/region-escape-via-bound-contravariant.rs diff --git a/src/test/ui/impl-trait/region-escape-via-bound.rs b/tests/ui/impl-trait/region-escape-via-bound.rs similarity index 100% rename from src/test/ui/impl-trait/region-escape-via-bound.rs rename to tests/ui/impl-trait/region-escape-via-bound.rs diff --git a/src/test/ui/impl-trait/region-escape-via-bound.stderr b/tests/ui/impl-trait/region-escape-via-bound.stderr similarity index 100% rename from src/test/ui/impl-trait/region-escape-via-bound.stderr rename to tests/ui/impl-trait/region-escape-via-bound.stderr diff --git a/src/test/ui/impl-trait/return-position-impl-trait-minimal.rs b/tests/ui/impl-trait/return-position-impl-trait-minimal.rs similarity index 100% rename from src/test/ui/impl-trait/return-position-impl-trait-minimal.rs rename to tests/ui/impl-trait/return-position-impl-trait-minimal.rs diff --git a/src/test/ui/impl-trait/rpit-assoc-pair-with-lifetime.rs b/tests/ui/impl-trait/rpit-assoc-pair-with-lifetime.rs similarity index 100% rename from src/test/ui/impl-trait/rpit-assoc-pair-with-lifetime.rs rename to tests/ui/impl-trait/rpit-assoc-pair-with-lifetime.rs diff --git a/src/test/ui/impl-trait/rpit-not-sized.rs b/tests/ui/impl-trait/rpit-not-sized.rs similarity index 100% rename from src/test/ui/impl-trait/rpit-not-sized.rs rename to tests/ui/impl-trait/rpit-not-sized.rs diff --git a/src/test/ui/impl-trait/rpit-not-sized.stderr b/tests/ui/impl-trait/rpit-not-sized.stderr similarity index 100% rename from src/test/ui/impl-trait/rpit-not-sized.stderr rename to tests/ui/impl-trait/rpit-not-sized.stderr diff --git a/src/test/ui/impl-trait/static-return-lifetime-infered.rs b/tests/ui/impl-trait/static-return-lifetime-infered.rs similarity index 100% rename from src/test/ui/impl-trait/static-return-lifetime-infered.rs rename to tests/ui/impl-trait/static-return-lifetime-infered.rs diff --git a/src/test/ui/impl-trait/static-return-lifetime-infered.stderr b/tests/ui/impl-trait/static-return-lifetime-infered.stderr similarity index 100% rename from src/test/ui/impl-trait/static-return-lifetime-infered.stderr rename to tests/ui/impl-trait/static-return-lifetime-infered.stderr diff --git a/src/test/ui/impl-trait/suggest-calling-rpit-closure.rs b/tests/ui/impl-trait/suggest-calling-rpit-closure.rs similarity index 100% rename from src/test/ui/impl-trait/suggest-calling-rpit-closure.rs rename to tests/ui/impl-trait/suggest-calling-rpit-closure.rs diff --git a/src/test/ui/impl-trait/suggest-calling-rpit-closure.stderr b/tests/ui/impl-trait/suggest-calling-rpit-closure.stderr similarity index 100% rename from src/test/ui/impl-trait/suggest-calling-rpit-closure.stderr rename to tests/ui/impl-trait/suggest-calling-rpit-closure.stderr diff --git a/src/test/ui/impl-trait/trait_resolution.rs b/tests/ui/impl-trait/trait_resolution.rs similarity index 100% rename from src/test/ui/impl-trait/trait_resolution.rs rename to tests/ui/impl-trait/trait_resolution.rs diff --git a/src/test/ui/impl-trait/trait_type.rs b/tests/ui/impl-trait/trait_type.rs similarity index 100% rename from src/test/ui/impl-trait/trait_type.rs rename to tests/ui/impl-trait/trait_type.rs diff --git a/src/test/ui/impl-trait/trait_type.stderr b/tests/ui/impl-trait/trait_type.stderr similarity index 100% rename from src/test/ui/impl-trait/trait_type.stderr rename to tests/ui/impl-trait/trait_type.stderr diff --git a/src/test/ui/impl-trait/two_tait_defining_each_other.rs b/tests/ui/impl-trait/two_tait_defining_each_other.rs similarity index 100% rename from src/test/ui/impl-trait/two_tait_defining_each_other.rs rename to tests/ui/impl-trait/two_tait_defining_each_other.rs diff --git a/src/test/ui/impl-trait/two_tait_defining_each_other.stderr b/tests/ui/impl-trait/two_tait_defining_each_other.stderr similarity index 100% rename from src/test/ui/impl-trait/two_tait_defining_each_other.stderr rename to tests/ui/impl-trait/two_tait_defining_each_other.stderr diff --git a/src/test/ui/impl-trait/two_tait_defining_each_other2.rs b/tests/ui/impl-trait/two_tait_defining_each_other2.rs similarity index 100% rename from src/test/ui/impl-trait/two_tait_defining_each_other2.rs rename to tests/ui/impl-trait/two_tait_defining_each_other2.rs diff --git a/src/test/ui/impl-trait/two_tait_defining_each_other2.stderr b/tests/ui/impl-trait/two_tait_defining_each_other2.stderr similarity index 100% rename from src/test/ui/impl-trait/two_tait_defining_each_other2.stderr rename to tests/ui/impl-trait/two_tait_defining_each_other2.stderr diff --git a/src/test/ui/impl-trait/two_tait_defining_each_other3.rs b/tests/ui/impl-trait/two_tait_defining_each_other3.rs similarity index 100% rename from src/test/ui/impl-trait/two_tait_defining_each_other3.rs rename to tests/ui/impl-trait/two_tait_defining_each_other3.rs diff --git a/src/test/ui/impl-trait/two_tait_defining_each_other3.stderr b/tests/ui/impl-trait/two_tait_defining_each_other3.stderr similarity index 100% rename from src/test/ui/impl-trait/two_tait_defining_each_other3.stderr rename to tests/ui/impl-trait/two_tait_defining_each_other3.stderr diff --git a/src/test/ui/impl-trait/type-alias-generic-param.rs b/tests/ui/impl-trait/type-alias-generic-param.rs similarity index 100% rename from src/test/ui/impl-trait/type-alias-generic-param.rs rename to tests/ui/impl-trait/type-alias-generic-param.rs diff --git a/src/test/ui/impl-trait/type-alias-impl-trait-in-fn-body.rs b/tests/ui/impl-trait/type-alias-impl-trait-in-fn-body.rs similarity index 100% rename from src/test/ui/impl-trait/type-alias-impl-trait-in-fn-body.rs rename to tests/ui/impl-trait/type-alias-impl-trait-in-fn-body.rs diff --git a/src/test/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.rs b/tests/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.rs similarity index 100% rename from src/test/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.rs rename to tests/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.rs diff --git a/src/test/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.stderr b/tests/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.stderr similarity index 100% rename from src/test/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.stderr rename to tests/ui/impl-trait/type-arg-mismatch-due-to-impl-trait.stderr diff --git a/src/test/ui/impl-trait/type_parameters_captured.rs b/tests/ui/impl-trait/type_parameters_captured.rs similarity index 100% rename from src/test/ui/impl-trait/type_parameters_captured.rs rename to tests/ui/impl-trait/type_parameters_captured.rs diff --git a/src/test/ui/impl-trait/type_parameters_captured.stderr b/tests/ui/impl-trait/type_parameters_captured.stderr similarity index 100% rename from src/test/ui/impl-trait/type_parameters_captured.stderr rename to tests/ui/impl-trait/type_parameters_captured.stderr diff --git a/src/test/ui/impl-trait/unactionable_diagnostic.fixed b/tests/ui/impl-trait/unactionable_diagnostic.fixed similarity index 100% rename from src/test/ui/impl-trait/unactionable_diagnostic.fixed rename to tests/ui/impl-trait/unactionable_diagnostic.fixed diff --git a/src/test/ui/impl-trait/unactionable_diagnostic.rs b/tests/ui/impl-trait/unactionable_diagnostic.rs similarity index 100% rename from src/test/ui/impl-trait/unactionable_diagnostic.rs rename to tests/ui/impl-trait/unactionable_diagnostic.rs diff --git a/src/test/ui/impl-trait/unactionable_diagnostic.stderr b/tests/ui/impl-trait/unactionable_diagnostic.stderr similarity index 100% rename from src/test/ui/impl-trait/unactionable_diagnostic.stderr rename to tests/ui/impl-trait/unactionable_diagnostic.stderr diff --git a/src/test/ui/impl-trait/universal-mismatched-type.rs b/tests/ui/impl-trait/universal-mismatched-type.rs similarity index 100% rename from src/test/ui/impl-trait/universal-mismatched-type.rs rename to tests/ui/impl-trait/universal-mismatched-type.rs diff --git a/src/test/ui/impl-trait/universal-mismatched-type.stderr b/tests/ui/impl-trait/universal-mismatched-type.stderr similarity index 100% rename from src/test/ui/impl-trait/universal-mismatched-type.stderr rename to tests/ui/impl-trait/universal-mismatched-type.stderr diff --git a/src/test/ui/impl-trait/universal-two-impl-traits.rs b/tests/ui/impl-trait/universal-two-impl-traits.rs similarity index 100% rename from src/test/ui/impl-trait/universal-two-impl-traits.rs rename to tests/ui/impl-trait/universal-two-impl-traits.rs diff --git a/src/test/ui/impl-trait/universal-two-impl-traits.stderr b/tests/ui/impl-trait/universal-two-impl-traits.stderr similarity index 100% rename from src/test/ui/impl-trait/universal-two-impl-traits.stderr rename to tests/ui/impl-trait/universal-two-impl-traits.stderr diff --git a/src/test/ui/impl-trait/universal_hrtb_anon.rs b/tests/ui/impl-trait/universal_hrtb_anon.rs similarity index 100% rename from src/test/ui/impl-trait/universal_hrtb_anon.rs rename to tests/ui/impl-trait/universal_hrtb_anon.rs diff --git a/src/test/ui/impl-trait/universal_hrtb_named.rs b/tests/ui/impl-trait/universal_hrtb_named.rs similarity index 100% rename from src/test/ui/impl-trait/universal_hrtb_named.rs rename to tests/ui/impl-trait/universal_hrtb_named.rs diff --git a/src/test/ui/impl-trait/universal_in_adt_in_parameters.rs b/tests/ui/impl-trait/universal_in_adt_in_parameters.rs similarity index 100% rename from src/test/ui/impl-trait/universal_in_adt_in_parameters.rs rename to tests/ui/impl-trait/universal_in_adt_in_parameters.rs diff --git a/src/test/ui/impl-trait/universal_in_impl_trait_in_parameters.rs b/tests/ui/impl-trait/universal_in_impl_trait_in_parameters.rs similarity index 100% rename from src/test/ui/impl-trait/universal_in_impl_trait_in_parameters.rs rename to tests/ui/impl-trait/universal_in_impl_trait_in_parameters.rs diff --git a/src/test/ui/impl-trait/universal_in_trait_defn_parameters.rs b/tests/ui/impl-trait/universal_in_trait_defn_parameters.rs similarity index 100% rename from src/test/ui/impl-trait/universal_in_trait_defn_parameters.rs rename to tests/ui/impl-trait/universal_in_trait_defn_parameters.rs diff --git a/src/test/ui/impl-trait/universal_multiple_bounds.rs b/tests/ui/impl-trait/universal_multiple_bounds.rs similarity index 100% rename from src/test/ui/impl-trait/universal_multiple_bounds.rs rename to tests/ui/impl-trait/universal_multiple_bounds.rs diff --git a/src/test/ui/impl-trait/universal_wrong_bounds.rs b/tests/ui/impl-trait/universal_wrong_bounds.rs similarity index 100% rename from src/test/ui/impl-trait/universal_wrong_bounds.rs rename to tests/ui/impl-trait/universal_wrong_bounds.rs diff --git a/src/test/ui/impl-trait/universal_wrong_bounds.stderr b/tests/ui/impl-trait/universal_wrong_bounds.stderr similarity index 100% rename from src/test/ui/impl-trait/universal_wrong_bounds.stderr rename to tests/ui/impl-trait/universal_wrong_bounds.stderr diff --git a/src/test/ui/impl-trait/universal_wrong_hrtb.rs b/tests/ui/impl-trait/universal_wrong_hrtb.rs similarity index 100% rename from src/test/ui/impl-trait/universal_wrong_hrtb.rs rename to tests/ui/impl-trait/universal_wrong_hrtb.rs diff --git a/src/test/ui/impl-trait/universal_wrong_hrtb.stderr b/tests/ui/impl-trait/universal_wrong_hrtb.stderr similarity index 100% rename from src/test/ui/impl-trait/universal_wrong_hrtb.stderr rename to tests/ui/impl-trait/universal_wrong_hrtb.stderr diff --git a/src/test/ui/impl-trait/unsafety-checking-cycle.rs b/tests/ui/impl-trait/unsafety-checking-cycle.rs similarity index 100% rename from src/test/ui/impl-trait/unsafety-checking-cycle.rs rename to tests/ui/impl-trait/unsafety-checking-cycle.rs diff --git a/src/test/ui/impl-trait/wf-eval-order.rs b/tests/ui/impl-trait/wf-eval-order.rs similarity index 100% rename from src/test/ui/impl-trait/wf-eval-order.rs rename to tests/ui/impl-trait/wf-eval-order.rs diff --git a/src/test/ui/impl-trait/where-allowed-2.rs b/tests/ui/impl-trait/where-allowed-2.rs similarity index 100% rename from src/test/ui/impl-trait/where-allowed-2.rs rename to tests/ui/impl-trait/where-allowed-2.rs diff --git a/src/test/ui/impl-trait/where-allowed-2.stderr b/tests/ui/impl-trait/where-allowed-2.stderr similarity index 100% rename from src/test/ui/impl-trait/where-allowed-2.stderr rename to tests/ui/impl-trait/where-allowed-2.stderr diff --git a/src/test/ui/impl-trait/where-allowed.rs b/tests/ui/impl-trait/where-allowed.rs similarity index 100% rename from src/test/ui/impl-trait/where-allowed.rs rename to tests/ui/impl-trait/where-allowed.rs diff --git a/src/test/ui/impl-trait/where-allowed.stderr b/tests/ui/impl-trait/where-allowed.stderr similarity index 100% rename from src/test/ui/impl-trait/where-allowed.stderr rename to tests/ui/impl-trait/where-allowed.stderr diff --git a/src/test/ui/impl-trait/xcrate.rs b/tests/ui/impl-trait/xcrate.rs similarity index 100% rename from src/test/ui/impl-trait/xcrate.rs rename to tests/ui/impl-trait/xcrate.rs diff --git a/src/test/ui/impl-trait/xcrate_simple.rs b/tests/ui/impl-trait/xcrate_simple.rs similarity index 100% rename from src/test/ui/impl-trait/xcrate_simple.rs rename to tests/ui/impl-trait/xcrate_simple.rs diff --git a/src/test/ui/impl-unused-rps-in-assoc-type.rs b/tests/ui/impl-unused-rps-in-assoc-type.rs similarity index 100% rename from src/test/ui/impl-unused-rps-in-assoc-type.rs rename to tests/ui/impl-unused-rps-in-assoc-type.rs diff --git a/src/test/ui/impl-unused-rps-in-assoc-type.stderr b/tests/ui/impl-unused-rps-in-assoc-type.stderr similarity index 100% rename from src/test/ui/impl-unused-rps-in-assoc-type.stderr rename to tests/ui/impl-unused-rps-in-assoc-type.stderr diff --git a/src/test/ui/impl-unused-tps-inherent.rs b/tests/ui/impl-unused-tps-inherent.rs similarity index 100% rename from src/test/ui/impl-unused-tps-inherent.rs rename to tests/ui/impl-unused-tps-inherent.rs diff --git a/src/test/ui/impl-unused-tps-inherent.stderr b/tests/ui/impl-unused-tps-inherent.stderr similarity index 100% rename from src/test/ui/impl-unused-tps-inherent.stderr rename to tests/ui/impl-unused-tps-inherent.stderr diff --git a/src/test/ui/impl-unused-tps.rs b/tests/ui/impl-unused-tps.rs similarity index 100% rename from src/test/ui/impl-unused-tps.rs rename to tests/ui/impl-unused-tps.rs diff --git a/src/test/ui/impl-unused-tps.stderr b/tests/ui/impl-unused-tps.stderr similarity index 100% rename from src/test/ui/impl-unused-tps.stderr rename to tests/ui/impl-unused-tps.stderr diff --git a/src/test/ui/implicit-method-bind.rs b/tests/ui/implicit-method-bind.rs similarity index 100% rename from src/test/ui/implicit-method-bind.rs rename to tests/ui/implicit-method-bind.rs diff --git a/src/test/ui/implicit-method-bind.stderr b/tests/ui/implicit-method-bind.stderr similarity index 100% rename from src/test/ui/implicit-method-bind.stderr rename to tests/ui/implicit-method-bind.stderr diff --git a/src/test/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.rs b/tests/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.rs similarity index 100% rename from src/test/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.rs rename to tests/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.rs diff --git a/src/test/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.stderr b/tests/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.stderr similarity index 100% rename from src/test/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.stderr rename to tests/ui/implied-bounds/assoc-ty-wf-used-to-get-assoc-ty.stderr diff --git a/src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs b/tests/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs similarity index 100% rename from src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs rename to tests/ui/implied-bounds/hrlt-implied-trait-bounds-guard.rs diff --git a/src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.stderr b/tests/ui/implied-bounds/hrlt-implied-trait-bounds-guard.stderr similarity index 100% rename from src/test/ui/implied-bounds/hrlt-implied-trait-bounds-guard.stderr rename to tests/ui/implied-bounds/hrlt-implied-trait-bounds-guard.stderr diff --git a/src/test/ui/implied-bounds/hrlt-implied-trait-bounds-roundtrip.rs b/tests/ui/implied-bounds/hrlt-implied-trait-bounds-roundtrip.rs similarity index 100% rename from src/test/ui/implied-bounds/hrlt-implied-trait-bounds-roundtrip.rs rename to tests/ui/implied-bounds/hrlt-implied-trait-bounds-roundtrip.rs diff --git a/src/test/ui/implied-bounds/impl-header-unnormalized-types.rs b/tests/ui/implied-bounds/impl-header-unnormalized-types.rs similarity index 100% rename from src/test/ui/implied-bounds/impl-header-unnormalized-types.rs rename to tests/ui/implied-bounds/impl-header-unnormalized-types.rs diff --git a/src/test/ui/implied-bounds/impl-header-unnormalized-types.stderr b/tests/ui/implied-bounds/impl-header-unnormalized-types.stderr similarity index 100% rename from src/test/ui/implied-bounds/impl-header-unnormalized-types.stderr rename to tests/ui/implied-bounds/impl-header-unnormalized-types.stderr diff --git a/src/test/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs b/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs similarity index 100% rename from src/test/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs rename to tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.rs diff --git a/src/test/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.stderr b/tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.stderr similarity index 100% rename from src/test/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.stderr rename to tests/ui/implied-bounds/impl-implied-bounds-compatibility-unnormalized.stderr diff --git a/src/test/ui/implied-bounds/impl-implied-bounds-compatibility.rs b/tests/ui/implied-bounds/impl-implied-bounds-compatibility.rs similarity index 100% rename from src/test/ui/implied-bounds/impl-implied-bounds-compatibility.rs rename to tests/ui/implied-bounds/impl-implied-bounds-compatibility.rs diff --git a/src/test/ui/implied-bounds/impl-implied-bounds-compatibility.stderr b/tests/ui/implied-bounds/impl-implied-bounds-compatibility.stderr similarity index 100% rename from src/test/ui/implied-bounds/impl-implied-bounds-compatibility.stderr rename to tests/ui/implied-bounds/impl-implied-bounds-compatibility.stderr diff --git a/src/test/ui/implied-bounds/issue-100690.rs b/tests/ui/implied-bounds/issue-100690.rs similarity index 100% rename from src/test/ui/implied-bounds/issue-100690.rs rename to tests/ui/implied-bounds/issue-100690.rs diff --git a/src/test/ui/implied-bounds/issue-100690.stderr b/tests/ui/implied-bounds/issue-100690.stderr similarity index 100% rename from src/test/ui/implied-bounds/issue-100690.stderr rename to tests/ui/implied-bounds/issue-100690.stderr diff --git a/src/test/ui/implied-bounds/issue-101951.rs b/tests/ui/implied-bounds/issue-101951.rs similarity index 100% rename from src/test/ui/implied-bounds/issue-101951.rs rename to tests/ui/implied-bounds/issue-101951.rs diff --git a/src/test/ui/imports/absolute-paths-in-nested-use-groups.rs b/tests/ui/imports/absolute-paths-in-nested-use-groups.rs similarity index 100% rename from src/test/ui/imports/absolute-paths-in-nested-use-groups.rs rename to tests/ui/imports/absolute-paths-in-nested-use-groups.rs diff --git a/src/test/ui/imports/absolute-paths-in-nested-use-groups.stderr b/tests/ui/imports/absolute-paths-in-nested-use-groups.stderr similarity index 100% rename from src/test/ui/imports/absolute-paths-in-nested-use-groups.stderr rename to tests/ui/imports/absolute-paths-in-nested-use-groups.stderr diff --git a/src/test/ui/imports/auxiliary/gensymed.rs b/tests/ui/imports/auxiliary/gensymed.rs similarity index 100% rename from src/test/ui/imports/auxiliary/gensymed.rs rename to tests/ui/imports/auxiliary/gensymed.rs diff --git a/src/test/ui/imports/auxiliary/glob-conflict.rs b/tests/ui/imports/auxiliary/glob-conflict.rs similarity index 100% rename from src/test/ui/imports/auxiliary/glob-conflict.rs rename to tests/ui/imports/auxiliary/glob-conflict.rs diff --git a/src/test/ui/imports/auxiliary/import_crate_var.rs b/tests/ui/imports/auxiliary/import_crate_var.rs similarity index 100% rename from src/test/ui/imports/auxiliary/import_crate_var.rs rename to tests/ui/imports/auxiliary/import_crate_var.rs diff --git a/src/test/ui/imports/auxiliary/issue-36881-aux.rs b/tests/ui/imports/auxiliary/issue-36881-aux.rs similarity index 100% rename from src/test/ui/imports/auxiliary/issue-36881-aux.rs rename to tests/ui/imports/auxiliary/issue-36881-aux.rs diff --git a/src/test/ui/imports/auxiliary/issue-52891.rs b/tests/ui/imports/auxiliary/issue-52891.rs similarity index 100% rename from src/test/ui/imports/auxiliary/issue-52891.rs rename to tests/ui/imports/auxiliary/issue-52891.rs diff --git a/src/test/ui/imports/auxiliary/issue-55811.rs b/tests/ui/imports/auxiliary/issue-55811.rs similarity index 100% rename from src/test/ui/imports/auxiliary/issue-55811.rs rename to tests/ui/imports/auxiliary/issue-55811.rs diff --git a/src/test/ui/imports/auxiliary/issue-56125.rs b/tests/ui/imports/auxiliary/issue-56125.rs similarity index 100% rename from src/test/ui/imports/auxiliary/issue-56125.rs rename to tests/ui/imports/auxiliary/issue-56125.rs diff --git a/src/test/ui/imports/auxiliary/issue-59764.rs b/tests/ui/imports/auxiliary/issue-59764.rs similarity index 100% rename from src/test/ui/imports/auxiliary/issue-59764.rs rename to tests/ui/imports/auxiliary/issue-59764.rs diff --git a/src/test/ui/imports/auxiliary/overlapping_pub_trait_source.rs b/tests/ui/imports/auxiliary/overlapping_pub_trait_source.rs similarity index 100% rename from src/test/ui/imports/auxiliary/overlapping_pub_trait_source.rs rename to tests/ui/imports/auxiliary/overlapping_pub_trait_source.rs diff --git a/src/test/ui/imports/auxiliary/two_macros.rs b/tests/ui/imports/auxiliary/two_macros.rs similarity index 100% rename from src/test/ui/imports/auxiliary/two_macros.rs rename to tests/ui/imports/auxiliary/two_macros.rs diff --git a/src/test/ui/imports/auxiliary/unnamed_pub_trait_source.rs b/tests/ui/imports/auxiliary/unnamed_pub_trait_source.rs similarity index 100% rename from src/test/ui/imports/auxiliary/unnamed_pub_trait_source.rs rename to tests/ui/imports/auxiliary/unnamed_pub_trait_source.rs diff --git a/src/test/ui/imports/bad-import-in-nested.rs b/tests/ui/imports/bad-import-in-nested.rs similarity index 100% rename from src/test/ui/imports/bad-import-in-nested.rs rename to tests/ui/imports/bad-import-in-nested.rs diff --git a/src/test/ui/imports/bad-import-in-nested.stderr b/tests/ui/imports/bad-import-in-nested.stderr similarity index 100% rename from src/test/ui/imports/bad-import-in-nested.stderr rename to tests/ui/imports/bad-import-in-nested.stderr diff --git a/src/test/ui/imports/bad-import-with-rename.rs b/tests/ui/imports/bad-import-with-rename.rs similarity index 100% rename from src/test/ui/imports/bad-import-with-rename.rs rename to tests/ui/imports/bad-import-with-rename.rs diff --git a/src/test/ui/imports/bad-import-with-rename.stderr b/tests/ui/imports/bad-import-with-rename.stderr similarity index 100% rename from src/test/ui/imports/bad-import-with-rename.stderr rename to tests/ui/imports/bad-import-with-rename.stderr diff --git a/src/test/ui/imports/double-import.rs b/tests/ui/imports/double-import.rs similarity index 100% rename from src/test/ui/imports/double-import.rs rename to tests/ui/imports/double-import.rs diff --git a/src/test/ui/imports/double-import.stderr b/tests/ui/imports/double-import.stderr similarity index 100% rename from src/test/ui/imports/double-import.stderr rename to tests/ui/imports/double-import.stderr diff --git a/src/test/ui/imports/duplicate.rs b/tests/ui/imports/duplicate.rs similarity index 100% rename from src/test/ui/imports/duplicate.rs rename to tests/ui/imports/duplicate.rs diff --git a/src/test/ui/imports/duplicate.stderr b/tests/ui/imports/duplicate.stderr similarity index 100% rename from src/test/ui/imports/duplicate.stderr rename to tests/ui/imports/duplicate.stderr diff --git a/src/test/ui/imports/export-glob-imports-target.rs b/tests/ui/imports/export-glob-imports-target.rs similarity index 100% rename from src/test/ui/imports/export-glob-imports-target.rs rename to tests/ui/imports/export-glob-imports-target.rs diff --git a/src/test/ui/imports/export-multi.rs b/tests/ui/imports/export-multi.rs similarity index 100% rename from src/test/ui/imports/export-multi.rs rename to tests/ui/imports/export-multi.rs diff --git a/src/test/ui/imports/extern-crate-self/extern-crate-self-fail.rs b/tests/ui/imports/extern-crate-self/extern-crate-self-fail.rs similarity index 100% rename from src/test/ui/imports/extern-crate-self/extern-crate-self-fail.rs rename to tests/ui/imports/extern-crate-self/extern-crate-self-fail.rs diff --git a/src/test/ui/imports/extern-crate-self/extern-crate-self-fail.stderr b/tests/ui/imports/extern-crate-self/extern-crate-self-fail.stderr similarity index 100% rename from src/test/ui/imports/extern-crate-self/extern-crate-self-fail.stderr rename to tests/ui/imports/extern-crate-self/extern-crate-self-fail.stderr diff --git a/src/test/ui/imports/extern-crate-self/extern-crate-self-macro-alias.rs b/tests/ui/imports/extern-crate-self/extern-crate-self-macro-alias.rs similarity index 100% rename from src/test/ui/imports/extern-crate-self/extern-crate-self-macro-alias.rs rename to tests/ui/imports/extern-crate-self/extern-crate-self-macro-alias.rs diff --git a/src/test/ui/imports/extern-crate-self/extern-crate-self-macro-item.rs b/tests/ui/imports/extern-crate-self/extern-crate-self-macro-item.rs similarity index 100% rename from src/test/ui/imports/extern-crate-self/extern-crate-self-macro-item.rs rename to tests/ui/imports/extern-crate-self/extern-crate-self-macro-item.rs diff --git a/src/test/ui/imports/extern-crate-self/extern-crate-self-macro-self.rs b/tests/ui/imports/extern-crate-self/extern-crate-self-macro-self.rs similarity index 100% rename from src/test/ui/imports/extern-crate-self/extern-crate-self-macro-self.rs rename to tests/ui/imports/extern-crate-self/extern-crate-self-macro-self.rs diff --git a/src/test/ui/imports/extern-crate-self/extern-crate-self-pass.rs b/tests/ui/imports/extern-crate-self/extern-crate-self-pass.rs similarity index 100% rename from src/test/ui/imports/extern-crate-self/extern-crate-self-pass.rs rename to tests/ui/imports/extern-crate-self/extern-crate-self-pass.rs diff --git a/src/test/ui/imports/extern-crate-used.rs b/tests/ui/imports/extern-crate-used.rs similarity index 100% rename from src/test/ui/imports/extern-crate-used.rs rename to tests/ui/imports/extern-crate-used.rs diff --git a/src/test/ui/imports/extern-crate-used.stderr b/tests/ui/imports/extern-crate-used.stderr similarity index 100% rename from src/test/ui/imports/extern-crate-used.stderr rename to tests/ui/imports/extern-crate-used.stderr diff --git a/src/test/ui/imports/extern-prelude-extern-crate-absolute-expanded.rs b/tests/ui/imports/extern-prelude-extern-crate-absolute-expanded.rs similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-absolute-expanded.rs rename to tests/ui/imports/extern-prelude-extern-crate-absolute-expanded.rs diff --git a/src/test/ui/imports/extern-prelude-extern-crate-cfg.rs b/tests/ui/imports/extern-prelude-extern-crate-cfg.rs similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-cfg.rs rename to tests/ui/imports/extern-prelude-extern-crate-cfg.rs diff --git a/src/test/ui/imports/extern-prelude-extern-crate-fail.rs b/tests/ui/imports/extern-prelude-extern-crate-fail.rs similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-fail.rs rename to tests/ui/imports/extern-prelude-extern-crate-fail.rs diff --git a/src/test/ui/imports/extern-prelude-extern-crate-fail.stderr b/tests/ui/imports/extern-prelude-extern-crate-fail.stderr similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-fail.stderr rename to tests/ui/imports/extern-prelude-extern-crate-fail.stderr diff --git a/src/test/ui/imports/extern-prelude-extern-crate-pass.rs b/tests/ui/imports/extern-prelude-extern-crate-pass.rs similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-pass.rs rename to tests/ui/imports/extern-prelude-extern-crate-pass.rs diff --git a/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs b/tests/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs rename to tests/ui/imports/extern-prelude-extern-crate-restricted-shadowing.rs diff --git a/src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr b/tests/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr rename to tests/ui/imports/extern-prelude-extern-crate-restricted-shadowing.stderr diff --git a/src/test/ui/imports/extern-prelude-extern-crate-shadowing.rs b/tests/ui/imports/extern-prelude-extern-crate-shadowing.rs similarity index 100% rename from src/test/ui/imports/extern-prelude-extern-crate-shadowing.rs rename to tests/ui/imports/extern-prelude-extern-crate-shadowing.rs diff --git a/src/test/ui/imports/gensymed.rs b/tests/ui/imports/gensymed.rs similarity index 100% rename from src/test/ui/imports/gensymed.rs rename to tests/ui/imports/gensymed.rs diff --git a/src/test/ui/imports/glob-conflict-cross-crate.rs b/tests/ui/imports/glob-conflict-cross-crate.rs similarity index 100% rename from src/test/ui/imports/glob-conflict-cross-crate.rs rename to tests/ui/imports/glob-conflict-cross-crate.rs diff --git a/src/test/ui/imports/glob-conflict-cross-crate.stderr b/tests/ui/imports/glob-conflict-cross-crate.stderr similarity index 100% rename from src/test/ui/imports/glob-conflict-cross-crate.stderr rename to tests/ui/imports/glob-conflict-cross-crate.stderr diff --git a/src/test/ui/imports/glob-cycles.rs b/tests/ui/imports/glob-cycles.rs similarity index 100% rename from src/test/ui/imports/glob-cycles.rs rename to tests/ui/imports/glob-cycles.rs diff --git a/src/test/ui/imports/glob-resolve1.rs b/tests/ui/imports/glob-resolve1.rs similarity index 100% rename from src/test/ui/imports/glob-resolve1.rs rename to tests/ui/imports/glob-resolve1.rs diff --git a/src/test/ui/imports/glob-resolve1.stderr b/tests/ui/imports/glob-resolve1.stderr similarity index 100% rename from src/test/ui/imports/glob-resolve1.stderr rename to tests/ui/imports/glob-resolve1.stderr diff --git a/src/test/ui/imports/glob-shadowing.rs b/tests/ui/imports/glob-shadowing.rs similarity index 100% rename from src/test/ui/imports/glob-shadowing.rs rename to tests/ui/imports/glob-shadowing.rs diff --git a/src/test/ui/imports/glob-shadowing.stderr b/tests/ui/imports/glob-shadowing.stderr similarity index 100% rename from src/test/ui/imports/glob-shadowing.stderr rename to tests/ui/imports/glob-shadowing.stderr diff --git a/src/test/ui/imports/glob-use-std.rs b/tests/ui/imports/glob-use-std.rs similarity index 100% rename from src/test/ui/imports/glob-use-std.rs rename to tests/ui/imports/glob-use-std.rs diff --git a/src/test/ui/imports/import-crate-var.rs b/tests/ui/imports/import-crate-var.rs similarity index 100% rename from src/test/ui/imports/import-crate-var.rs rename to tests/ui/imports/import-crate-var.rs diff --git a/src/test/ui/imports/import-crate-var.stderr b/tests/ui/imports/import-crate-var.stderr similarity index 100% rename from src/test/ui/imports/import-crate-var.stderr rename to tests/ui/imports/import-crate-var.stderr diff --git a/src/test/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans.rs b/tests/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans.rs similarity index 100% rename from src/test/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans.rs rename to tests/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans.rs diff --git a/src/test/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans_macros.rs b/tests/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans_macros.rs similarity index 100% rename from src/test/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans_macros.rs rename to tests/ui/imports/import-crate-with-invalid-spans/auxiliary/crate_with_invalid_spans_macros.rs diff --git a/src/test/ui/imports/import-crate-with-invalid-spans/main.rs b/tests/ui/imports/import-crate-with-invalid-spans/main.rs similarity index 100% rename from src/test/ui/imports/import-crate-with-invalid-spans/main.rs rename to tests/ui/imports/import-crate-with-invalid-spans/main.rs diff --git a/src/test/ui/imports/import-from-missing.rs b/tests/ui/imports/import-from-missing.rs similarity index 100% rename from src/test/ui/imports/import-from-missing.rs rename to tests/ui/imports/import-from-missing.rs diff --git a/src/test/ui/imports/import-from-missing.stderr b/tests/ui/imports/import-from-missing.stderr similarity index 100% rename from src/test/ui/imports/import-from-missing.stderr rename to tests/ui/imports/import-from-missing.stderr diff --git a/src/test/ui/imports/import-from.rs b/tests/ui/imports/import-from.rs similarity index 100% rename from src/test/ui/imports/import-from.rs rename to tests/ui/imports/import-from.rs diff --git a/src/test/ui/imports/import-glob-0-rpass.rs b/tests/ui/imports/import-glob-0-rpass.rs similarity index 100% rename from src/test/ui/imports/import-glob-0-rpass.rs rename to tests/ui/imports/import-glob-0-rpass.rs diff --git a/src/test/ui/imports/import-glob-0.rs b/tests/ui/imports/import-glob-0.rs similarity index 100% rename from src/test/ui/imports/import-glob-0.rs rename to tests/ui/imports/import-glob-0.rs diff --git a/src/test/ui/imports/import-glob-0.stderr b/tests/ui/imports/import-glob-0.stderr similarity index 100% rename from src/test/ui/imports/import-glob-0.stderr rename to tests/ui/imports/import-glob-0.stderr diff --git a/src/test/ui/imports/import-glob-1.rs b/tests/ui/imports/import-glob-1.rs similarity index 100% rename from src/test/ui/imports/import-glob-1.rs rename to tests/ui/imports/import-glob-1.rs diff --git a/src/test/ui/imports/import-glob-circular.rs b/tests/ui/imports/import-glob-circular.rs similarity index 100% rename from src/test/ui/imports/import-glob-circular.rs rename to tests/ui/imports/import-glob-circular.rs diff --git a/src/test/ui/imports/import-glob-circular.stderr b/tests/ui/imports/import-glob-circular.stderr similarity index 100% rename from src/test/ui/imports/import-glob-circular.stderr rename to tests/ui/imports/import-glob-circular.stderr diff --git a/src/test/ui/imports/import-glob-crate.rs b/tests/ui/imports/import-glob-crate.rs similarity index 100% rename from src/test/ui/imports/import-glob-crate.rs rename to tests/ui/imports/import-glob-crate.rs diff --git a/src/test/ui/imports/import-in-block.rs b/tests/ui/imports/import-in-block.rs similarity index 100% rename from src/test/ui/imports/import-in-block.rs rename to tests/ui/imports/import-in-block.rs diff --git a/src/test/ui/imports/import-loop-2.rs b/tests/ui/imports/import-loop-2.rs similarity index 100% rename from src/test/ui/imports/import-loop-2.rs rename to tests/ui/imports/import-loop-2.rs diff --git a/src/test/ui/imports/import-loop-2.stderr b/tests/ui/imports/import-loop-2.stderr similarity index 100% rename from src/test/ui/imports/import-loop-2.stderr rename to tests/ui/imports/import-loop-2.stderr diff --git a/src/test/ui/imports/import-loop.rs b/tests/ui/imports/import-loop.rs similarity index 100% rename from src/test/ui/imports/import-loop.rs rename to tests/ui/imports/import-loop.rs diff --git a/src/test/ui/imports/import-loop.stderr b/tests/ui/imports/import-loop.stderr similarity index 100% rename from src/test/ui/imports/import-loop.stderr rename to tests/ui/imports/import-loop.stderr diff --git a/src/test/ui/imports/import-prefix-macro-1.rs b/tests/ui/imports/import-prefix-macro-1.rs similarity index 100% rename from src/test/ui/imports/import-prefix-macro-1.rs rename to tests/ui/imports/import-prefix-macro-1.rs diff --git a/src/test/ui/imports/import-prefix-macro-1.stderr b/tests/ui/imports/import-prefix-macro-1.stderr similarity index 100% rename from src/test/ui/imports/import-prefix-macro-1.stderr rename to tests/ui/imports/import-prefix-macro-1.stderr diff --git a/src/test/ui/imports/import-prefix-macro-2.rs b/tests/ui/imports/import-prefix-macro-2.rs similarity index 100% rename from src/test/ui/imports/import-prefix-macro-2.rs rename to tests/ui/imports/import-prefix-macro-2.rs diff --git a/src/test/ui/imports/import-prefix-macro-2.stderr b/tests/ui/imports/import-prefix-macro-2.stderr similarity index 100% rename from src/test/ui/imports/import-prefix-macro-2.stderr rename to tests/ui/imports/import-prefix-macro-2.stderr diff --git a/src/test/ui/imports/import-prefix-macro.rs b/tests/ui/imports/import-prefix-macro.rs similarity index 100% rename from src/test/ui/imports/import-prefix-macro.rs rename to tests/ui/imports/import-prefix-macro.rs diff --git a/src/test/ui/imports/import-rename.rs b/tests/ui/imports/import-rename.rs similarity index 100% rename from src/test/ui/imports/import-rename.rs rename to tests/ui/imports/import-rename.rs diff --git a/src/test/ui/imports/import-rpass.rs b/tests/ui/imports/import-rpass.rs similarity index 100% rename from src/test/ui/imports/import-rpass.rs rename to tests/ui/imports/import-rpass.rs diff --git a/src/test/ui/imports/import-trailing-comma.rs b/tests/ui/imports/import-trailing-comma.rs similarity index 100% rename from src/test/ui/imports/import-trailing-comma.rs rename to tests/ui/imports/import-trailing-comma.rs diff --git a/src/test/ui/imports/import-trait-method.rs b/tests/ui/imports/import-trait-method.rs similarity index 100% rename from src/test/ui/imports/import-trait-method.rs rename to tests/ui/imports/import-trait-method.rs diff --git a/src/test/ui/imports/import-trait-method.stderr b/tests/ui/imports/import-trait-method.stderr similarity index 100% rename from src/test/ui/imports/import-trait-method.stderr rename to tests/ui/imports/import-trait-method.stderr diff --git a/src/test/ui/imports/import.rs b/tests/ui/imports/import.rs similarity index 100% rename from src/test/ui/imports/import.rs rename to tests/ui/imports/import.rs diff --git a/src/test/ui/imports/import.stderr b/tests/ui/imports/import.stderr similarity index 100% rename from src/test/ui/imports/import.stderr rename to tests/ui/imports/import.stderr diff --git a/src/test/ui/imports/import2-rpass.rs b/tests/ui/imports/import2-rpass.rs similarity index 100% rename from src/test/ui/imports/import2-rpass.rs rename to tests/ui/imports/import2-rpass.rs diff --git a/src/test/ui/imports/import2.rs b/tests/ui/imports/import2.rs similarity index 100% rename from src/test/ui/imports/import2.rs rename to tests/ui/imports/import2.rs diff --git a/src/test/ui/imports/import2.stderr b/tests/ui/imports/import2.stderr similarity index 100% rename from src/test/ui/imports/import2.stderr rename to tests/ui/imports/import2.stderr diff --git a/src/test/ui/imports/import3-rpass.rs b/tests/ui/imports/import3-rpass.rs similarity index 100% rename from src/test/ui/imports/import3-rpass.rs rename to tests/ui/imports/import3-rpass.rs diff --git a/src/test/ui/imports/import3.rs b/tests/ui/imports/import3.rs similarity index 100% rename from src/test/ui/imports/import3.rs rename to tests/ui/imports/import3.rs diff --git a/src/test/ui/imports/import3.stderr b/tests/ui/imports/import3.stderr similarity index 100% rename from src/test/ui/imports/import3.stderr rename to tests/ui/imports/import3.stderr diff --git a/src/test/ui/imports/import4-rpass.rs b/tests/ui/imports/import4-rpass.rs similarity index 100% rename from src/test/ui/imports/import4-rpass.rs rename to tests/ui/imports/import4-rpass.rs diff --git a/src/test/ui/imports/import4.rs b/tests/ui/imports/import4.rs similarity index 100% rename from src/test/ui/imports/import4.rs rename to tests/ui/imports/import4.rs diff --git a/src/test/ui/imports/import4.stderr b/tests/ui/imports/import4.stderr similarity index 100% rename from src/test/ui/imports/import4.stderr rename to tests/ui/imports/import4.stderr diff --git a/src/test/ui/imports/import5.rs b/tests/ui/imports/import5.rs similarity index 100% rename from src/test/ui/imports/import5.rs rename to tests/ui/imports/import5.rs diff --git a/src/test/ui/imports/import6.rs b/tests/ui/imports/import6.rs similarity index 100% rename from src/test/ui/imports/import6.rs rename to tests/ui/imports/import6.rs diff --git a/src/test/ui/imports/import7.rs b/tests/ui/imports/import7.rs similarity index 100% rename from src/test/ui/imports/import7.rs rename to tests/ui/imports/import7.rs diff --git a/src/test/ui/imports/import8.rs b/tests/ui/imports/import8.rs similarity index 100% rename from src/test/ui/imports/import8.rs rename to tests/ui/imports/import8.rs diff --git a/src/test/ui/imports/imports.rs b/tests/ui/imports/imports.rs similarity index 100% rename from src/test/ui/imports/imports.rs rename to tests/ui/imports/imports.rs diff --git a/src/test/ui/imports/inaccessible_type_aliases.rs b/tests/ui/imports/inaccessible_type_aliases.rs similarity index 100% rename from src/test/ui/imports/inaccessible_type_aliases.rs rename to tests/ui/imports/inaccessible_type_aliases.rs diff --git a/src/test/ui/imports/inaccessible_type_aliases.stderr b/tests/ui/imports/inaccessible_type_aliases.stderr similarity index 100% rename from src/test/ui/imports/inaccessible_type_aliases.stderr rename to tests/ui/imports/inaccessible_type_aliases.stderr diff --git a/src/test/ui/imports/issue-13404.rs b/tests/ui/imports/issue-13404.rs similarity index 100% rename from src/test/ui/imports/issue-13404.rs rename to tests/ui/imports/issue-13404.rs diff --git a/src/test/ui/imports/issue-13404.stderr b/tests/ui/imports/issue-13404.stderr similarity index 100% rename from src/test/ui/imports/issue-13404.stderr rename to tests/ui/imports/issue-13404.stderr diff --git a/src/test/ui/imports/issue-1697.rs b/tests/ui/imports/issue-1697.rs similarity index 100% rename from src/test/ui/imports/issue-1697.rs rename to tests/ui/imports/issue-1697.rs diff --git a/src/test/ui/imports/issue-1697.stderr b/tests/ui/imports/issue-1697.stderr similarity index 100% rename from src/test/ui/imports/issue-1697.stderr rename to tests/ui/imports/issue-1697.stderr diff --git a/src/test/ui/imports/issue-18083.rs b/tests/ui/imports/issue-18083.rs similarity index 100% rename from src/test/ui/imports/issue-18083.rs rename to tests/ui/imports/issue-18083.rs diff --git a/src/test/ui/imports/issue-19498.rs b/tests/ui/imports/issue-19498.rs similarity index 100% rename from src/test/ui/imports/issue-19498.rs rename to tests/ui/imports/issue-19498.rs diff --git a/src/test/ui/imports/issue-19498.stderr b/tests/ui/imports/issue-19498.stderr similarity index 100% rename from src/test/ui/imports/issue-19498.stderr rename to tests/ui/imports/issue-19498.stderr diff --git a/src/test/ui/imports/issue-24081.rs b/tests/ui/imports/issue-24081.rs similarity index 100% rename from src/test/ui/imports/issue-24081.rs rename to tests/ui/imports/issue-24081.rs diff --git a/src/test/ui/imports/issue-24081.stderr b/tests/ui/imports/issue-24081.stderr similarity index 100% rename from src/test/ui/imports/issue-24081.stderr rename to tests/ui/imports/issue-24081.stderr diff --git a/src/test/ui/imports/issue-24883.rs b/tests/ui/imports/issue-24883.rs similarity index 100% rename from src/test/ui/imports/issue-24883.rs rename to tests/ui/imports/issue-24883.rs diff --git a/src/test/ui/imports/issue-25396.rs b/tests/ui/imports/issue-25396.rs similarity index 100% rename from src/test/ui/imports/issue-25396.rs rename to tests/ui/imports/issue-25396.rs diff --git a/src/test/ui/imports/issue-25396.stderr b/tests/ui/imports/issue-25396.stderr similarity index 100% rename from src/test/ui/imports/issue-25396.stderr rename to tests/ui/imports/issue-25396.stderr diff --git a/src/test/ui/imports/issue-26873-multifile/A/B.rs b/tests/ui/imports/issue-26873-multifile/A/B.rs similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/A/B.rs rename to tests/ui/imports/issue-26873-multifile/A/B.rs diff --git a/src/test/ui/imports/issue-26873-multifile/A/C.rs b/tests/ui/imports/issue-26873-multifile/A/C.rs similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/A/C.rs rename to tests/ui/imports/issue-26873-multifile/A/C.rs diff --git a/src/test/ui/imports/issue-26873-multifile/A/mod.rs b/tests/ui/imports/issue-26873-multifile/A/mod.rs similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/A/mod.rs rename to tests/ui/imports/issue-26873-multifile/A/mod.rs diff --git a/src/test/ui/imports/issue-26873-multifile/compiletest-ignore-dir b/tests/ui/imports/issue-26873-multifile/compiletest-ignore-dir similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/compiletest-ignore-dir rename to tests/ui/imports/issue-26873-multifile/compiletest-ignore-dir diff --git a/src/test/ui/imports/issue-26873-multifile/issue-26873-multifile.rs b/tests/ui/imports/issue-26873-multifile/issue-26873-multifile.rs similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/issue-26873-multifile.rs rename to tests/ui/imports/issue-26873-multifile/issue-26873-multifile.rs diff --git a/src/test/ui/imports/issue-26873-multifile/issue-26873-onefile.rs b/tests/ui/imports/issue-26873-multifile/issue-26873-onefile.rs similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/issue-26873-onefile.rs rename to tests/ui/imports/issue-26873-multifile/issue-26873-onefile.rs diff --git a/src/test/ui/imports/issue-26873-multifile/mod.rs b/tests/ui/imports/issue-26873-multifile/mod.rs similarity index 100% rename from src/test/ui/imports/issue-26873-multifile/mod.rs rename to tests/ui/imports/issue-26873-multifile/mod.rs diff --git a/src/test/ui/imports/issue-26886.rs b/tests/ui/imports/issue-26886.rs similarity index 100% rename from src/test/ui/imports/issue-26886.rs rename to tests/ui/imports/issue-26886.rs diff --git a/src/test/ui/imports/issue-26886.stderr b/tests/ui/imports/issue-26886.stderr similarity index 100% rename from src/test/ui/imports/issue-26886.stderr rename to tests/ui/imports/issue-26886.stderr diff --git a/src/test/ui/imports/issue-26930.rs b/tests/ui/imports/issue-26930.rs similarity index 100% rename from src/test/ui/imports/issue-26930.rs rename to tests/ui/imports/issue-26930.rs diff --git a/src/test/ui/imports/issue-28134.rs b/tests/ui/imports/issue-28134.rs similarity index 100% rename from src/test/ui/imports/issue-28134.rs rename to tests/ui/imports/issue-28134.rs diff --git a/src/test/ui/imports/issue-28134.stderr b/tests/ui/imports/issue-28134.stderr similarity index 100% rename from src/test/ui/imports/issue-28134.stderr rename to tests/ui/imports/issue-28134.stderr diff --git a/src/test/ui/imports/issue-28388-1.rs b/tests/ui/imports/issue-28388-1.rs similarity index 100% rename from src/test/ui/imports/issue-28388-1.rs rename to tests/ui/imports/issue-28388-1.rs diff --git a/src/test/ui/imports/issue-28388-1.stderr b/tests/ui/imports/issue-28388-1.stderr similarity index 100% rename from src/test/ui/imports/issue-28388-1.stderr rename to tests/ui/imports/issue-28388-1.stderr diff --git a/src/test/ui/imports/issue-28388-2.rs b/tests/ui/imports/issue-28388-2.rs similarity index 100% rename from src/test/ui/imports/issue-28388-2.rs rename to tests/ui/imports/issue-28388-2.rs diff --git a/src/test/ui/imports/issue-28388-2.stderr b/tests/ui/imports/issue-28388-2.stderr similarity index 100% rename from src/test/ui/imports/issue-28388-2.stderr rename to tests/ui/imports/issue-28388-2.stderr diff --git a/src/test/ui/imports/issue-2937.rs b/tests/ui/imports/issue-2937.rs similarity index 100% rename from src/test/ui/imports/issue-2937.rs rename to tests/ui/imports/issue-2937.rs diff --git a/src/test/ui/imports/issue-2937.stderr b/tests/ui/imports/issue-2937.stderr similarity index 100% rename from src/test/ui/imports/issue-2937.stderr rename to tests/ui/imports/issue-2937.stderr diff --git a/src/test/ui/imports/issue-30560.rs b/tests/ui/imports/issue-30560.rs similarity index 100% rename from src/test/ui/imports/issue-30560.rs rename to tests/ui/imports/issue-30560.rs diff --git a/src/test/ui/imports/issue-30560.stderr b/tests/ui/imports/issue-30560.stderr similarity index 100% rename from src/test/ui/imports/issue-30560.stderr rename to tests/ui/imports/issue-30560.stderr diff --git a/src/test/ui/imports/issue-31212.rs b/tests/ui/imports/issue-31212.rs similarity index 100% rename from src/test/ui/imports/issue-31212.rs rename to tests/ui/imports/issue-31212.rs diff --git a/src/test/ui/imports/issue-31212.stderr b/tests/ui/imports/issue-31212.stderr similarity index 100% rename from src/test/ui/imports/issue-31212.stderr rename to tests/ui/imports/issue-31212.stderr diff --git a/src/test/ui/imports/issue-32119.rs b/tests/ui/imports/issue-32119.rs similarity index 100% rename from src/test/ui/imports/issue-32119.rs rename to tests/ui/imports/issue-32119.rs diff --git a/src/test/ui/imports/issue-32222.rs b/tests/ui/imports/issue-32222.rs similarity index 100% rename from src/test/ui/imports/issue-32222.rs rename to tests/ui/imports/issue-32222.rs diff --git a/src/test/ui/imports/issue-32354-suggest-import-rename.fixed b/tests/ui/imports/issue-32354-suggest-import-rename.fixed similarity index 100% rename from src/test/ui/imports/issue-32354-suggest-import-rename.fixed rename to tests/ui/imports/issue-32354-suggest-import-rename.fixed diff --git a/src/test/ui/imports/issue-32354-suggest-import-rename.rs b/tests/ui/imports/issue-32354-suggest-import-rename.rs similarity index 100% rename from src/test/ui/imports/issue-32354-suggest-import-rename.rs rename to tests/ui/imports/issue-32354-suggest-import-rename.rs diff --git a/src/test/ui/imports/issue-32354-suggest-import-rename.stderr b/tests/ui/imports/issue-32354-suggest-import-rename.stderr similarity index 100% rename from src/test/ui/imports/issue-32354-suggest-import-rename.stderr rename to tests/ui/imports/issue-32354-suggest-import-rename.stderr diff --git a/src/test/ui/imports/issue-32833.rs b/tests/ui/imports/issue-32833.rs similarity index 100% rename from src/test/ui/imports/issue-32833.rs rename to tests/ui/imports/issue-32833.rs diff --git a/src/test/ui/imports/issue-32833.stderr b/tests/ui/imports/issue-32833.stderr similarity index 100% rename from src/test/ui/imports/issue-32833.stderr rename to tests/ui/imports/issue-32833.stderr diff --git a/src/test/ui/imports/issue-33464.rs b/tests/ui/imports/issue-33464.rs similarity index 100% rename from src/test/ui/imports/issue-33464.rs rename to tests/ui/imports/issue-33464.rs diff --git a/src/test/ui/imports/issue-33464.stderr b/tests/ui/imports/issue-33464.stderr similarity index 100% rename from src/test/ui/imports/issue-33464.stderr rename to tests/ui/imports/issue-33464.stderr diff --git a/src/test/ui/imports/issue-36881.rs b/tests/ui/imports/issue-36881.rs similarity index 100% rename from src/test/ui/imports/issue-36881.rs rename to tests/ui/imports/issue-36881.rs diff --git a/src/test/ui/imports/issue-36881.stderr b/tests/ui/imports/issue-36881.stderr similarity index 100% rename from src/test/ui/imports/issue-36881.stderr rename to tests/ui/imports/issue-36881.stderr diff --git a/src/test/ui/imports/issue-37887.rs b/tests/ui/imports/issue-37887.rs similarity index 100% rename from src/test/ui/imports/issue-37887.rs rename to tests/ui/imports/issue-37887.rs diff --git a/src/test/ui/imports/issue-37887.stderr b/tests/ui/imports/issue-37887.stderr similarity index 100% rename from src/test/ui/imports/issue-37887.stderr rename to tests/ui/imports/issue-37887.stderr diff --git a/src/test/ui/imports/issue-38293.rs b/tests/ui/imports/issue-38293.rs similarity index 100% rename from src/test/ui/imports/issue-38293.rs rename to tests/ui/imports/issue-38293.rs diff --git a/src/test/ui/imports/issue-38293.stderr b/tests/ui/imports/issue-38293.stderr similarity index 100% rename from src/test/ui/imports/issue-38293.stderr rename to tests/ui/imports/issue-38293.stderr diff --git a/src/test/ui/imports/issue-4366-2.rs b/tests/ui/imports/issue-4366-2.rs similarity index 100% rename from src/test/ui/imports/issue-4366-2.rs rename to tests/ui/imports/issue-4366-2.rs diff --git a/src/test/ui/imports/issue-4366-2.stderr b/tests/ui/imports/issue-4366-2.stderr similarity index 100% rename from src/test/ui/imports/issue-4366-2.stderr rename to tests/ui/imports/issue-4366-2.stderr diff --git a/src/test/ui/imports/issue-4366.rs b/tests/ui/imports/issue-4366.rs similarity index 100% rename from src/test/ui/imports/issue-4366.rs rename to tests/ui/imports/issue-4366.rs diff --git a/src/test/ui/imports/issue-4366.stderr b/tests/ui/imports/issue-4366.stderr similarity index 100% rename from src/test/ui/imports/issue-4366.stderr rename to tests/ui/imports/issue-4366.stderr diff --git a/src/test/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed b/tests/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed similarity index 100% rename from src/test/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed rename to tests/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed diff --git a/src/test/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.rs b/tests/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.rs similarity index 100% rename from src/test/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.rs rename to tests/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.rs diff --git a/src/test/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.stderr b/tests/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.stderr similarity index 100% rename from src/test/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.stderr rename to tests/ui/imports/issue-45799-bad-extern-crate-rename-suggestion-formatting.stderr diff --git a/src/test/ui/imports/issue-45829/auxiliary/issue-45829-a.rs b/tests/ui/imports/issue-45829/auxiliary/issue-45829-a.rs similarity index 100% rename from src/test/ui/imports/issue-45829/auxiliary/issue-45829-a.rs rename to tests/ui/imports/issue-45829/auxiliary/issue-45829-a.rs diff --git a/src/test/ui/imports/issue-45829/auxiliary/issue-45829-b.rs b/tests/ui/imports/issue-45829/auxiliary/issue-45829-b.rs similarity index 100% rename from src/test/ui/imports/issue-45829/auxiliary/issue-45829-b.rs rename to tests/ui/imports/issue-45829/auxiliary/issue-45829-b.rs diff --git a/src/test/ui/imports/issue-45829/import-self.rs b/tests/ui/imports/issue-45829/import-self.rs similarity index 100% rename from src/test/ui/imports/issue-45829/import-self.rs rename to tests/ui/imports/issue-45829/import-self.rs diff --git a/src/test/ui/imports/issue-45829/import-self.stderr b/tests/ui/imports/issue-45829/import-self.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/import-self.stderr rename to tests/ui/imports/issue-45829/import-self.stderr diff --git a/src/test/ui/imports/issue-45829/import-twice.rs b/tests/ui/imports/issue-45829/import-twice.rs similarity index 100% rename from src/test/ui/imports/issue-45829/import-twice.rs rename to tests/ui/imports/issue-45829/import-twice.rs diff --git a/src/test/ui/imports/issue-45829/import-twice.stderr b/tests/ui/imports/issue-45829/import-twice.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/import-twice.stderr rename to tests/ui/imports/issue-45829/import-twice.stderr diff --git a/src/test/ui/imports/issue-45829/issue-45829.rs b/tests/ui/imports/issue-45829/issue-45829.rs similarity index 100% rename from src/test/ui/imports/issue-45829/issue-45829.rs rename to tests/ui/imports/issue-45829/issue-45829.rs diff --git a/src/test/ui/imports/issue-45829/issue-45829.stderr b/tests/ui/imports/issue-45829/issue-45829.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/issue-45829.stderr rename to tests/ui/imports/issue-45829/issue-45829.stderr diff --git a/src/test/ui/imports/issue-45829/rename-extern-vs-use.rs b/tests/ui/imports/issue-45829/rename-extern-vs-use.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename-extern-vs-use.rs rename to tests/ui/imports/issue-45829/rename-extern-vs-use.rs diff --git a/src/test/ui/imports/issue-45829/rename-extern-vs-use.stderr b/tests/ui/imports/issue-45829/rename-extern-vs-use.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename-extern-vs-use.stderr rename to tests/ui/imports/issue-45829/rename-extern-vs-use.stderr diff --git a/src/test/ui/imports/issue-45829/rename-extern-with-tab.rs b/tests/ui/imports/issue-45829/rename-extern-with-tab.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename-extern-with-tab.rs rename to tests/ui/imports/issue-45829/rename-extern-with-tab.rs diff --git a/src/test/ui/imports/issue-45829/rename-extern-with-tab.stderr b/tests/ui/imports/issue-45829/rename-extern-with-tab.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename-extern-with-tab.stderr rename to tests/ui/imports/issue-45829/rename-extern-with-tab.stderr diff --git a/src/test/ui/imports/issue-45829/rename-extern.rs b/tests/ui/imports/issue-45829/rename-extern.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename-extern.rs rename to tests/ui/imports/issue-45829/rename-extern.rs diff --git a/src/test/ui/imports/issue-45829/rename-extern.stderr b/tests/ui/imports/issue-45829/rename-extern.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename-extern.stderr rename to tests/ui/imports/issue-45829/rename-extern.stderr diff --git a/src/test/ui/imports/issue-45829/rename-use-vs-extern.rs b/tests/ui/imports/issue-45829/rename-use-vs-extern.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename-use-vs-extern.rs rename to tests/ui/imports/issue-45829/rename-use-vs-extern.rs diff --git a/src/test/ui/imports/issue-45829/rename-use-vs-extern.stderr b/tests/ui/imports/issue-45829/rename-use-vs-extern.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename-use-vs-extern.stderr rename to tests/ui/imports/issue-45829/rename-use-vs-extern.stderr diff --git a/src/test/ui/imports/issue-45829/rename-use-with-tabs.rs b/tests/ui/imports/issue-45829/rename-use-with-tabs.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename-use-with-tabs.rs rename to tests/ui/imports/issue-45829/rename-use-with-tabs.rs diff --git a/src/test/ui/imports/issue-45829/rename-use-with-tabs.stderr b/tests/ui/imports/issue-45829/rename-use-with-tabs.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename-use-with-tabs.stderr rename to tests/ui/imports/issue-45829/rename-use-with-tabs.stderr diff --git a/src/test/ui/imports/issue-45829/rename-with-path.rs b/tests/ui/imports/issue-45829/rename-with-path.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename-with-path.rs rename to tests/ui/imports/issue-45829/rename-with-path.rs diff --git a/src/test/ui/imports/issue-45829/rename-with-path.stderr b/tests/ui/imports/issue-45829/rename-with-path.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename-with-path.stderr rename to tests/ui/imports/issue-45829/rename-with-path.stderr diff --git a/src/test/ui/imports/issue-45829/rename.rs b/tests/ui/imports/issue-45829/rename.rs similarity index 100% rename from src/test/ui/imports/issue-45829/rename.rs rename to tests/ui/imports/issue-45829/rename.rs diff --git a/src/test/ui/imports/issue-45829/rename.stderr b/tests/ui/imports/issue-45829/rename.stderr similarity index 100% rename from src/test/ui/imports/issue-45829/rename.stderr rename to tests/ui/imports/issue-45829/rename.stderr diff --git a/src/test/ui/imports/issue-47623.rs b/tests/ui/imports/issue-47623.rs similarity index 100% rename from src/test/ui/imports/issue-47623.rs rename to tests/ui/imports/issue-47623.rs diff --git a/src/test/ui/imports/issue-47623.stderr b/tests/ui/imports/issue-47623.stderr similarity index 100% rename from src/test/ui/imports/issue-47623.stderr rename to tests/ui/imports/issue-47623.stderr diff --git a/src/test/ui/imports/issue-4865-1.rs b/tests/ui/imports/issue-4865-1.rs similarity index 100% rename from src/test/ui/imports/issue-4865-1.rs rename to tests/ui/imports/issue-4865-1.rs diff --git a/src/test/ui/imports/issue-4865-2.rs b/tests/ui/imports/issue-4865-2.rs similarity index 100% rename from src/test/ui/imports/issue-4865-2.rs rename to tests/ui/imports/issue-4865-2.rs diff --git a/src/test/ui/imports/issue-4865-3.rs b/tests/ui/imports/issue-4865-3.rs similarity index 100% rename from src/test/ui/imports/issue-4865-3.rs rename to tests/ui/imports/issue-4865-3.rs diff --git a/src/test/ui/imports/issue-52891.fixed b/tests/ui/imports/issue-52891.fixed similarity index 100% rename from src/test/ui/imports/issue-52891.fixed rename to tests/ui/imports/issue-52891.fixed diff --git a/src/test/ui/imports/issue-52891.rs b/tests/ui/imports/issue-52891.rs similarity index 100% rename from src/test/ui/imports/issue-52891.rs rename to tests/ui/imports/issue-52891.rs diff --git a/src/test/ui/imports/issue-52891.stderr b/tests/ui/imports/issue-52891.stderr similarity index 100% rename from src/test/ui/imports/issue-52891.stderr rename to tests/ui/imports/issue-52891.stderr diff --git a/src/test/ui/imports/issue-53140.rs b/tests/ui/imports/issue-53140.rs similarity index 100% rename from src/test/ui/imports/issue-53140.rs rename to tests/ui/imports/issue-53140.rs diff --git a/src/test/ui/imports/issue-53269.rs b/tests/ui/imports/issue-53269.rs similarity index 100% rename from src/test/ui/imports/issue-53269.rs rename to tests/ui/imports/issue-53269.rs diff --git a/src/test/ui/imports/issue-53269.stderr b/tests/ui/imports/issue-53269.stderr similarity index 100% rename from src/test/ui/imports/issue-53269.stderr rename to tests/ui/imports/issue-53269.stderr diff --git a/src/test/ui/imports/issue-53512.rs b/tests/ui/imports/issue-53512.rs similarity index 100% rename from src/test/ui/imports/issue-53512.rs rename to tests/ui/imports/issue-53512.rs diff --git a/src/test/ui/imports/issue-53512.stderr b/tests/ui/imports/issue-53512.stderr similarity index 100% rename from src/test/ui/imports/issue-53512.stderr rename to tests/ui/imports/issue-53512.stderr diff --git a/src/test/ui/imports/issue-53565.rs b/tests/ui/imports/issue-53565.rs similarity index 100% rename from src/test/ui/imports/issue-53565.rs rename to tests/ui/imports/issue-53565.rs diff --git a/src/test/ui/imports/issue-53565.stderr b/tests/ui/imports/issue-53565.stderr similarity index 100% rename from src/test/ui/imports/issue-53565.stderr rename to tests/ui/imports/issue-53565.stderr diff --git a/src/test/ui/imports/issue-55457.rs b/tests/ui/imports/issue-55457.rs similarity index 100% rename from src/test/ui/imports/issue-55457.rs rename to tests/ui/imports/issue-55457.rs diff --git a/src/test/ui/imports/issue-55457.stderr b/tests/ui/imports/issue-55457.stderr similarity index 100% rename from src/test/ui/imports/issue-55457.stderr rename to tests/ui/imports/issue-55457.stderr diff --git a/src/test/ui/imports/issue-55811.rs b/tests/ui/imports/issue-55811.rs similarity index 100% rename from src/test/ui/imports/issue-55811.rs rename to tests/ui/imports/issue-55811.rs diff --git a/src/test/ui/imports/issue-55884-1.rs b/tests/ui/imports/issue-55884-1.rs similarity index 100% rename from src/test/ui/imports/issue-55884-1.rs rename to tests/ui/imports/issue-55884-1.rs diff --git a/src/test/ui/imports/issue-55884-1.stderr b/tests/ui/imports/issue-55884-1.stderr similarity index 100% rename from src/test/ui/imports/issue-55884-1.stderr rename to tests/ui/imports/issue-55884-1.stderr diff --git a/src/test/ui/imports/issue-55884-2.rs b/tests/ui/imports/issue-55884-2.rs similarity index 100% rename from src/test/ui/imports/issue-55884-2.rs rename to tests/ui/imports/issue-55884-2.rs diff --git a/src/test/ui/imports/issue-55884-2.stderr b/tests/ui/imports/issue-55884-2.stderr similarity index 100% rename from src/test/ui/imports/issue-55884-2.stderr rename to tests/ui/imports/issue-55884-2.stderr diff --git a/src/test/ui/imports/issue-56125.rs b/tests/ui/imports/issue-56125.rs similarity index 100% rename from src/test/ui/imports/issue-56125.rs rename to tests/ui/imports/issue-56125.rs diff --git a/src/test/ui/imports/issue-56125.stderr b/tests/ui/imports/issue-56125.stderr similarity index 100% rename from src/test/ui/imports/issue-56125.stderr rename to tests/ui/imports/issue-56125.stderr diff --git a/src/test/ui/imports/issue-56263.rs b/tests/ui/imports/issue-56263.rs similarity index 100% rename from src/test/ui/imports/issue-56263.rs rename to tests/ui/imports/issue-56263.rs diff --git a/src/test/ui/imports/issue-57015.rs b/tests/ui/imports/issue-57015.rs similarity index 100% rename from src/test/ui/imports/issue-57015.rs rename to tests/ui/imports/issue-57015.rs diff --git a/src/test/ui/imports/issue-57015.stderr b/tests/ui/imports/issue-57015.stderr similarity index 100% rename from src/test/ui/imports/issue-57015.stderr rename to tests/ui/imports/issue-57015.stderr diff --git a/src/test/ui/imports/issue-57539.rs b/tests/ui/imports/issue-57539.rs similarity index 100% rename from src/test/ui/imports/issue-57539.rs rename to tests/ui/imports/issue-57539.rs diff --git a/src/test/ui/imports/issue-57539.stderr b/tests/ui/imports/issue-57539.stderr similarity index 100% rename from src/test/ui/imports/issue-57539.stderr rename to tests/ui/imports/issue-57539.stderr diff --git a/src/test/ui/imports/issue-59764.rs b/tests/ui/imports/issue-59764.rs similarity index 100% rename from src/test/ui/imports/issue-59764.rs rename to tests/ui/imports/issue-59764.rs diff --git a/src/test/ui/imports/issue-59764.stderr b/tests/ui/imports/issue-59764.stderr similarity index 100% rename from src/test/ui/imports/issue-59764.stderr rename to tests/ui/imports/issue-59764.stderr diff --git a/src/test/ui/imports/issue-62767.rs b/tests/ui/imports/issue-62767.rs similarity index 100% rename from src/test/ui/imports/issue-62767.rs rename to tests/ui/imports/issue-62767.rs diff --git a/src/test/ui/imports/issue-68103.rs b/tests/ui/imports/issue-68103.rs similarity index 100% rename from src/test/ui/imports/issue-68103.rs rename to tests/ui/imports/issue-68103.rs diff --git a/src/test/ui/imports/issue-8208.rs b/tests/ui/imports/issue-8208.rs similarity index 100% rename from src/test/ui/imports/issue-8208.rs rename to tests/ui/imports/issue-8208.rs diff --git a/src/test/ui/imports/issue-8208.stderr b/tests/ui/imports/issue-8208.stderr similarity index 100% rename from src/test/ui/imports/issue-8208.stderr rename to tests/ui/imports/issue-8208.stderr diff --git a/src/test/ui/imports/issue-8640.rs b/tests/ui/imports/issue-8640.rs similarity index 100% rename from src/test/ui/imports/issue-8640.rs rename to tests/ui/imports/issue-8640.rs diff --git a/src/test/ui/imports/issue-8640.stderr b/tests/ui/imports/issue-8640.stderr similarity index 100% rename from src/test/ui/imports/issue-8640.stderr rename to tests/ui/imports/issue-8640.stderr diff --git a/src/test/ui/imports/local-modularized-tricky-fail-1.rs b/tests/ui/imports/local-modularized-tricky-fail-1.rs similarity index 100% rename from src/test/ui/imports/local-modularized-tricky-fail-1.rs rename to tests/ui/imports/local-modularized-tricky-fail-1.rs diff --git a/src/test/ui/imports/local-modularized-tricky-fail-1.stderr b/tests/ui/imports/local-modularized-tricky-fail-1.stderr similarity index 100% rename from src/test/ui/imports/local-modularized-tricky-fail-1.stderr rename to tests/ui/imports/local-modularized-tricky-fail-1.stderr diff --git a/src/test/ui/imports/local-modularized-tricky-fail-2.rs b/tests/ui/imports/local-modularized-tricky-fail-2.rs similarity index 100% rename from src/test/ui/imports/local-modularized-tricky-fail-2.rs rename to tests/ui/imports/local-modularized-tricky-fail-2.rs diff --git a/src/test/ui/imports/local-modularized-tricky-fail-2.stderr b/tests/ui/imports/local-modularized-tricky-fail-2.stderr similarity index 100% rename from src/test/ui/imports/local-modularized-tricky-fail-2.stderr rename to tests/ui/imports/local-modularized-tricky-fail-2.stderr diff --git a/src/test/ui/imports/local-modularized-tricky-pass-1.rs b/tests/ui/imports/local-modularized-tricky-pass-1.rs similarity index 100% rename from src/test/ui/imports/local-modularized-tricky-pass-1.rs rename to tests/ui/imports/local-modularized-tricky-pass-1.rs diff --git a/src/test/ui/imports/local-modularized-tricky-pass-2.rs b/tests/ui/imports/local-modularized-tricky-pass-2.rs similarity index 100% rename from src/test/ui/imports/local-modularized-tricky-pass-2.rs rename to tests/ui/imports/local-modularized-tricky-pass-2.rs diff --git a/src/test/ui/imports/local-modularized.rs b/tests/ui/imports/local-modularized.rs similarity index 100% rename from src/test/ui/imports/local-modularized.rs rename to tests/ui/imports/local-modularized.rs diff --git a/src/test/ui/imports/macro-paths.rs b/tests/ui/imports/macro-paths.rs similarity index 100% rename from src/test/ui/imports/macro-paths.rs rename to tests/ui/imports/macro-paths.rs diff --git a/src/test/ui/imports/macro-paths.stderr b/tests/ui/imports/macro-paths.stderr similarity index 100% rename from src/test/ui/imports/macro-paths.stderr rename to tests/ui/imports/macro-paths.stderr diff --git a/src/test/ui/imports/macros.rs b/tests/ui/imports/macros.rs similarity index 100% rename from src/test/ui/imports/macros.rs rename to tests/ui/imports/macros.rs diff --git a/src/test/ui/imports/macros.stderr b/tests/ui/imports/macros.stderr similarity index 100% rename from src/test/ui/imports/macros.stderr rename to tests/ui/imports/macros.stderr diff --git a/src/test/ui/imports/no-std-inject.rs b/tests/ui/imports/no-std-inject.rs similarity index 100% rename from src/test/ui/imports/no-std-inject.rs rename to tests/ui/imports/no-std-inject.rs diff --git a/src/test/ui/imports/no-std-inject.stderr b/tests/ui/imports/no-std-inject.stderr similarity index 100% rename from src/test/ui/imports/no-std-inject.stderr rename to tests/ui/imports/no-std-inject.stderr diff --git a/src/test/ui/imports/overlapping_pub_trait.rs b/tests/ui/imports/overlapping_pub_trait.rs similarity index 100% rename from src/test/ui/imports/overlapping_pub_trait.rs rename to tests/ui/imports/overlapping_pub_trait.rs diff --git a/src/test/ui/imports/overlapping_pub_trait.stderr b/tests/ui/imports/overlapping_pub_trait.stderr similarity index 100% rename from src/test/ui/imports/overlapping_pub_trait.stderr rename to tests/ui/imports/overlapping_pub_trait.stderr diff --git a/src/test/ui/imports/reexport-star.rs b/tests/ui/imports/reexport-star.rs similarity index 100% rename from src/test/ui/imports/reexport-star.rs rename to tests/ui/imports/reexport-star.rs diff --git a/src/test/ui/imports/reexports.rs b/tests/ui/imports/reexports.rs similarity index 100% rename from src/test/ui/imports/reexports.rs rename to tests/ui/imports/reexports.rs diff --git a/src/test/ui/imports/reexports.stderr b/tests/ui/imports/reexports.stderr similarity index 100% rename from src/test/ui/imports/reexports.stderr rename to tests/ui/imports/reexports.stderr diff --git a/src/test/ui/imports/resolve_self_super_hint.rs b/tests/ui/imports/resolve_self_super_hint.rs similarity index 100% rename from src/test/ui/imports/resolve_self_super_hint.rs rename to tests/ui/imports/resolve_self_super_hint.rs diff --git a/src/test/ui/imports/resolve_self_super_hint.stderr b/tests/ui/imports/resolve_self_super_hint.stderr similarity index 100% rename from src/test/ui/imports/resolve_self_super_hint.stderr rename to tests/ui/imports/resolve_self_super_hint.stderr diff --git a/src/test/ui/imports/rfc-1560-warning-cycle.rs b/tests/ui/imports/rfc-1560-warning-cycle.rs similarity index 100% rename from src/test/ui/imports/rfc-1560-warning-cycle.rs rename to tests/ui/imports/rfc-1560-warning-cycle.rs diff --git a/src/test/ui/imports/rfc-1560-warning-cycle.stderr b/tests/ui/imports/rfc-1560-warning-cycle.stderr similarity index 100% rename from src/test/ui/imports/rfc-1560-warning-cycle.stderr rename to tests/ui/imports/rfc-1560-warning-cycle.stderr diff --git a/src/test/ui/imports/shadow_builtin_macros.rs b/tests/ui/imports/shadow_builtin_macros.rs similarity index 100% rename from src/test/ui/imports/shadow_builtin_macros.rs rename to tests/ui/imports/shadow_builtin_macros.rs diff --git a/src/test/ui/imports/shadow_builtin_macros.stderr b/tests/ui/imports/shadow_builtin_macros.stderr similarity index 100% rename from src/test/ui/imports/shadow_builtin_macros.stderr rename to tests/ui/imports/shadow_builtin_macros.stderr diff --git a/src/test/ui/imports/tool-mod-child.rs b/tests/ui/imports/tool-mod-child.rs similarity index 100% rename from src/test/ui/imports/tool-mod-child.rs rename to tests/ui/imports/tool-mod-child.rs diff --git a/src/test/ui/imports/tool-mod-child.stderr b/tests/ui/imports/tool-mod-child.stderr similarity index 100% rename from src/test/ui/imports/tool-mod-child.stderr rename to tests/ui/imports/tool-mod-child.stderr diff --git a/src/test/ui/imports/unnamed_pub_trait.rs b/tests/ui/imports/unnamed_pub_trait.rs similarity index 100% rename from src/test/ui/imports/unnamed_pub_trait.rs rename to tests/ui/imports/unnamed_pub_trait.rs diff --git a/src/test/ui/imports/unnamed_pub_trait.stderr b/tests/ui/imports/unnamed_pub_trait.stderr similarity index 100% rename from src/test/ui/imports/unnamed_pub_trait.stderr rename to tests/ui/imports/unnamed_pub_trait.stderr diff --git a/src/test/ui/imports/unresolved-imports-used.rs b/tests/ui/imports/unresolved-imports-used.rs similarity index 100% rename from src/test/ui/imports/unresolved-imports-used.rs rename to tests/ui/imports/unresolved-imports-used.rs diff --git a/src/test/ui/imports/unresolved-imports-used.stderr b/tests/ui/imports/unresolved-imports-used.stderr similarity index 100% rename from src/test/ui/imports/unresolved-imports-used.stderr rename to tests/ui/imports/unresolved-imports-used.stderr diff --git a/src/test/ui/imports/unused-import-issue-87973.fixed b/tests/ui/imports/unused-import-issue-87973.fixed similarity index 100% rename from src/test/ui/imports/unused-import-issue-87973.fixed rename to tests/ui/imports/unused-import-issue-87973.fixed diff --git a/src/test/ui/imports/unused-import-issue-87973.rs b/tests/ui/imports/unused-import-issue-87973.rs similarity index 100% rename from src/test/ui/imports/unused-import-issue-87973.rs rename to tests/ui/imports/unused-import-issue-87973.rs diff --git a/src/test/ui/imports/unused-import-issue-87973.stderr b/tests/ui/imports/unused-import-issue-87973.stderr similarity index 100% rename from src/test/ui/imports/unused-import-issue-87973.stderr rename to tests/ui/imports/unused-import-issue-87973.stderr diff --git a/src/test/ui/imports/unused-imports-in-test-mode.rs b/tests/ui/imports/unused-imports-in-test-mode.rs similarity index 100% rename from src/test/ui/imports/unused-imports-in-test-mode.rs rename to tests/ui/imports/unused-imports-in-test-mode.rs diff --git a/src/test/ui/imports/unused-imports-in-test-mode.stderr b/tests/ui/imports/unused-imports-in-test-mode.stderr similarity index 100% rename from src/test/ui/imports/unused-imports-in-test-mode.stderr rename to tests/ui/imports/unused-imports-in-test-mode.stderr diff --git a/src/test/ui/imports/unused-imports-in-test-module.rs b/tests/ui/imports/unused-imports-in-test-module.rs similarity index 100% rename from src/test/ui/imports/unused-imports-in-test-module.rs rename to tests/ui/imports/unused-imports-in-test-module.rs diff --git a/src/test/ui/imports/unused-imports-in-test-module.stderr b/tests/ui/imports/unused-imports-in-test-module.stderr similarity index 100% rename from src/test/ui/imports/unused-imports-in-test-module.stderr rename to tests/ui/imports/unused-imports-in-test-module.stderr diff --git a/src/test/ui/imports/unused-macro-use.rs b/tests/ui/imports/unused-macro-use.rs similarity index 100% rename from src/test/ui/imports/unused-macro-use.rs rename to tests/ui/imports/unused-macro-use.rs diff --git a/src/test/ui/imports/unused-macro-use.stderr b/tests/ui/imports/unused-macro-use.stderr similarity index 100% rename from src/test/ui/imports/unused-macro-use.stderr rename to tests/ui/imports/unused-macro-use.stderr diff --git a/src/test/ui/imports/unused.rs b/tests/ui/imports/unused.rs similarity index 100% rename from src/test/ui/imports/unused.rs rename to tests/ui/imports/unused.rs diff --git a/src/test/ui/imports/unused.stderr b/tests/ui/imports/unused.stderr similarity index 100% rename from src/test/ui/imports/unused.stderr rename to tests/ui/imports/unused.stderr diff --git a/src/test/ui/imports/use-mod.rs b/tests/ui/imports/use-mod.rs similarity index 100% rename from src/test/ui/imports/use-mod.rs rename to tests/ui/imports/use-mod.rs diff --git a/src/test/ui/impossible_range.fixed b/tests/ui/impossible_range.fixed similarity index 100% rename from src/test/ui/impossible_range.fixed rename to tests/ui/impossible_range.fixed diff --git a/src/test/ui/impossible_range.rs b/tests/ui/impossible_range.rs similarity index 100% rename from src/test/ui/impossible_range.rs rename to tests/ui/impossible_range.rs diff --git a/src/test/ui/impossible_range.stderr b/tests/ui/impossible_range.stderr similarity index 100% rename from src/test/ui/impossible_range.stderr rename to tests/ui/impossible_range.stderr diff --git a/src/test/ui/inc-range-pat.rs b/tests/ui/inc-range-pat.rs similarity index 100% rename from src/test/ui/inc-range-pat.rs rename to tests/ui/inc-range-pat.rs diff --git a/src/test/ui/include-macros/auxiliary/same-file-in-two-crates-aux.rs b/tests/ui/include-macros/auxiliary/same-file-in-two-crates-aux.rs similarity index 100% rename from src/test/ui/include-macros/auxiliary/same-file-in-two-crates-aux.rs rename to tests/ui/include-macros/auxiliary/same-file-in-two-crates-aux.rs diff --git a/src/test/ui/include-macros/data.bin b/tests/ui/include-macros/data.bin similarity index 100% rename from src/test/ui/include-macros/data.bin rename to tests/ui/include-macros/data.bin diff --git a/src/test/ui/include-macros/file.txt b/tests/ui/include-macros/file.txt similarity index 100% rename from src/test/ui/include-macros/file.txt rename to tests/ui/include-macros/file.txt diff --git a/src/test/ui/include-macros/mismatched-types.rs b/tests/ui/include-macros/mismatched-types.rs similarity index 100% rename from src/test/ui/include-macros/mismatched-types.rs rename to tests/ui/include-macros/mismatched-types.rs diff --git a/src/test/ui/include-macros/mismatched-types.stderr b/tests/ui/include-macros/mismatched-types.stderr similarity index 100% rename from src/test/ui/include-macros/mismatched-types.stderr rename to tests/ui/include-macros/mismatched-types.stderr diff --git a/src/test/ui/include-macros/normalization.rs b/tests/ui/include-macros/normalization.rs similarity index 100% rename from src/test/ui/include-macros/normalization.rs rename to tests/ui/include-macros/normalization.rs diff --git a/src/test/ui/include-macros/same-file-in-two-crates.rs b/tests/ui/include-macros/same-file-in-two-crates.rs similarity index 100% rename from src/test/ui/include-macros/same-file-in-two-crates.rs rename to tests/ui/include-macros/same-file-in-two-crates.rs diff --git a/src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs b/tests/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs similarity index 100% rename from src/test/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs rename to tests/ui/incoherent-inherent-impls/auxiliary/extern-crate.rs diff --git a/src/test/ui/incoherent-inherent-impls/needs-has-incoherent-impls.rs b/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.rs similarity index 100% rename from src/test/ui/incoherent-inherent-impls/needs-has-incoherent-impls.rs rename to tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.rs diff --git a/src/test/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr b/tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr similarity index 100% rename from src/test/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr rename to tests/ui/incoherent-inherent-impls/needs-has-incoherent-impls.stderr diff --git a/src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.rs b/tests/ui/incoherent-inherent-impls/no-attr-empty-impl.rs similarity index 100% rename from src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.rs rename to tests/ui/incoherent-inherent-impls/no-attr-empty-impl.rs diff --git a/src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.stderr b/tests/ui/incoherent-inherent-impls/no-attr-empty-impl.stderr similarity index 100% rename from src/test/ui/incoherent-inherent-impls/no-attr-empty-impl.stderr rename to tests/ui/incoherent-inherent-impls/no-attr-empty-impl.stderr diff --git a/src/test/ui/index-bot.rs b/tests/ui/index-bot.rs similarity index 100% rename from src/test/ui/index-bot.rs rename to tests/ui/index-bot.rs diff --git a/src/test/ui/index-bot.stderr b/tests/ui/index-bot.stderr similarity index 100% rename from src/test/ui/index-bot.stderr rename to tests/ui/index-bot.stderr diff --git a/src/test/ui/index-help.rs b/tests/ui/index-help.rs similarity index 100% rename from src/test/ui/index-help.rs rename to tests/ui/index-help.rs diff --git a/src/test/ui/index-help.stderr b/tests/ui/index-help.stderr similarity index 100% rename from src/test/ui/index-help.stderr rename to tests/ui/index-help.stderr diff --git a/src/test/ui/index_message.rs b/tests/ui/index_message.rs similarity index 100% rename from src/test/ui/index_message.rs rename to tests/ui/index_message.rs diff --git a/src/test/ui/index_message.stderr b/tests/ui/index_message.stderr similarity index 100% rename from src/test/ui/index_message.stderr rename to tests/ui/index_message.stderr diff --git a/src/test/ui/indexing-requires-a-uint.rs b/tests/ui/indexing-requires-a-uint.rs similarity index 100% rename from src/test/ui/indexing-requires-a-uint.rs rename to tests/ui/indexing-requires-a-uint.rs diff --git a/src/test/ui/indexing-requires-a-uint.stderr b/tests/ui/indexing-requires-a-uint.stderr similarity index 100% rename from src/test/ui/indexing-requires-a-uint.stderr rename to tests/ui/indexing-requires-a-uint.stderr diff --git a/src/test/ui/infer-fn-tail-expr.rs b/tests/ui/infer-fn-tail-expr.rs similarity index 100% rename from src/test/ui/infer-fn-tail-expr.rs rename to tests/ui/infer-fn-tail-expr.rs diff --git a/src/test/ui/inference/ambiguous_type_parameter.rs b/tests/ui/inference/ambiguous_type_parameter.rs similarity index 100% rename from src/test/ui/inference/ambiguous_type_parameter.rs rename to tests/ui/inference/ambiguous_type_parameter.rs diff --git a/src/test/ui/inference/ambiguous_type_parameter.stderr b/tests/ui/inference/ambiguous_type_parameter.stderr similarity index 100% rename from src/test/ui/inference/ambiguous_type_parameter.stderr rename to tests/ui/inference/ambiguous_type_parameter.stderr diff --git a/src/test/ui/inference/auxiliary/inference_unstable_iterator.rs b/tests/ui/inference/auxiliary/inference_unstable_iterator.rs similarity index 100% rename from src/test/ui/inference/auxiliary/inference_unstable_iterator.rs rename to tests/ui/inference/auxiliary/inference_unstable_iterator.rs diff --git a/src/test/ui/inference/auxiliary/inference_unstable_itertools.rs b/tests/ui/inference/auxiliary/inference_unstable_itertools.rs similarity index 100% rename from src/test/ui/inference/auxiliary/inference_unstable_itertools.rs rename to tests/ui/inference/auxiliary/inference_unstable_itertools.rs diff --git a/src/test/ui/inference/cannot-infer-async.rs b/tests/ui/inference/cannot-infer-async.rs similarity index 100% rename from src/test/ui/inference/cannot-infer-async.rs rename to tests/ui/inference/cannot-infer-async.rs diff --git a/src/test/ui/inference/cannot-infer-async.stderr b/tests/ui/inference/cannot-infer-async.stderr similarity index 100% rename from src/test/ui/inference/cannot-infer-async.stderr rename to tests/ui/inference/cannot-infer-async.stderr diff --git a/src/test/ui/inference/cannot-infer-closure-circular.rs b/tests/ui/inference/cannot-infer-closure-circular.rs similarity index 100% rename from src/test/ui/inference/cannot-infer-closure-circular.rs rename to tests/ui/inference/cannot-infer-closure-circular.rs diff --git a/src/test/ui/inference/cannot-infer-closure-circular.stderr b/tests/ui/inference/cannot-infer-closure-circular.stderr similarity index 100% rename from src/test/ui/inference/cannot-infer-closure-circular.stderr rename to tests/ui/inference/cannot-infer-closure-circular.stderr diff --git a/src/test/ui/inference/cannot-infer-closure.rs b/tests/ui/inference/cannot-infer-closure.rs similarity index 100% rename from src/test/ui/inference/cannot-infer-closure.rs rename to tests/ui/inference/cannot-infer-closure.rs diff --git a/src/test/ui/inference/cannot-infer-closure.stderr b/tests/ui/inference/cannot-infer-closure.stderr similarity index 100% rename from src/test/ui/inference/cannot-infer-closure.stderr rename to tests/ui/inference/cannot-infer-closure.stderr diff --git a/src/test/ui/inference/cannot-infer-partial-try-return.rs b/tests/ui/inference/cannot-infer-partial-try-return.rs similarity index 100% rename from src/test/ui/inference/cannot-infer-partial-try-return.rs rename to tests/ui/inference/cannot-infer-partial-try-return.rs diff --git a/src/test/ui/inference/cannot-infer-partial-try-return.stderr b/tests/ui/inference/cannot-infer-partial-try-return.stderr similarity index 100% rename from src/test/ui/inference/cannot-infer-partial-try-return.stderr rename to tests/ui/inference/cannot-infer-partial-try-return.stderr diff --git a/src/test/ui/inference/char-as-str-multi.rs b/tests/ui/inference/char-as-str-multi.rs similarity index 100% rename from src/test/ui/inference/char-as-str-multi.rs rename to tests/ui/inference/char-as-str-multi.rs diff --git a/src/test/ui/inference/char-as-str-multi.stderr b/tests/ui/inference/char-as-str-multi.stderr similarity index 100% rename from src/test/ui/inference/char-as-str-multi.stderr rename to tests/ui/inference/char-as-str-multi.stderr diff --git a/src/test/ui/inference/char-as-str-single.fixed b/tests/ui/inference/char-as-str-single.fixed similarity index 100% rename from src/test/ui/inference/char-as-str-single.fixed rename to tests/ui/inference/char-as-str-single.fixed diff --git a/src/test/ui/inference/char-as-str-single.rs b/tests/ui/inference/char-as-str-single.rs similarity index 100% rename from src/test/ui/inference/char-as-str-single.rs rename to tests/ui/inference/char-as-str-single.rs diff --git a/src/test/ui/inference/char-as-str-single.stderr b/tests/ui/inference/char-as-str-single.stderr similarity index 100% rename from src/test/ui/inference/char-as-str-single.stderr rename to tests/ui/inference/char-as-str-single.stderr diff --git a/src/test/ui/inference/deref-suggestion.rs b/tests/ui/inference/deref-suggestion.rs similarity index 100% rename from src/test/ui/inference/deref-suggestion.rs rename to tests/ui/inference/deref-suggestion.rs diff --git a/src/test/ui/inference/deref-suggestion.stderr b/tests/ui/inference/deref-suggestion.stderr similarity index 100% rename from src/test/ui/inference/deref-suggestion.stderr rename to tests/ui/inference/deref-suggestion.stderr diff --git a/src/test/ui/inference/erase-type-params-in-label.rs b/tests/ui/inference/erase-type-params-in-label.rs similarity index 100% rename from src/test/ui/inference/erase-type-params-in-label.rs rename to tests/ui/inference/erase-type-params-in-label.rs diff --git a/src/test/ui/inference/erase-type-params-in-label.stderr b/tests/ui/inference/erase-type-params-in-label.stderr similarity index 100% rename from src/test/ui/inference/erase-type-params-in-label.stderr rename to tests/ui/inference/erase-type-params-in-label.stderr diff --git a/src/test/ui/inference/infer-binary-operand-behind-reference.rs b/tests/ui/inference/infer-binary-operand-behind-reference.rs similarity index 100% rename from src/test/ui/inference/infer-binary-operand-behind-reference.rs rename to tests/ui/inference/infer-binary-operand-behind-reference.rs diff --git a/src/test/ui/inference/inference-variable-behind-raw-pointer.rs b/tests/ui/inference/inference-variable-behind-raw-pointer.rs similarity index 100% rename from src/test/ui/inference/inference-variable-behind-raw-pointer.rs rename to tests/ui/inference/inference-variable-behind-raw-pointer.rs diff --git a/src/test/ui/inference/inference-variable-behind-raw-pointer.stderr b/tests/ui/inference/inference-variable-behind-raw-pointer.stderr similarity index 100% rename from src/test/ui/inference/inference-variable-behind-raw-pointer.stderr rename to tests/ui/inference/inference-variable-behind-raw-pointer.stderr diff --git a/src/test/ui/inference/inference_unstable.rs b/tests/ui/inference/inference_unstable.rs similarity index 100% rename from src/test/ui/inference/inference_unstable.rs rename to tests/ui/inference/inference_unstable.rs diff --git a/src/test/ui/inference/inference_unstable.stderr b/tests/ui/inference/inference_unstable.stderr similarity index 100% rename from src/test/ui/inference/inference_unstable.stderr rename to tests/ui/inference/inference_unstable.stderr diff --git a/src/test/ui/inference/inference_unstable_featured.rs b/tests/ui/inference/inference_unstable_featured.rs similarity index 100% rename from src/test/ui/inference/inference_unstable_featured.rs rename to tests/ui/inference/inference_unstable_featured.rs diff --git a/src/test/ui/inference/inference_unstable_featured.stderr b/tests/ui/inference/inference_unstable_featured.stderr similarity index 100% rename from src/test/ui/inference/inference_unstable_featured.stderr rename to tests/ui/inference/inference_unstable_featured.stderr diff --git a/src/test/ui/inference/inference_unstable_forced.rs b/tests/ui/inference/inference_unstable_forced.rs similarity index 100% rename from src/test/ui/inference/inference_unstable_forced.rs rename to tests/ui/inference/inference_unstable_forced.rs diff --git a/src/test/ui/inference/inference_unstable_forced.stderr b/tests/ui/inference/inference_unstable_forced.stderr similarity index 100% rename from src/test/ui/inference/inference_unstable_forced.stderr rename to tests/ui/inference/inference_unstable_forced.stderr diff --git a/src/test/ui/inference/issue-103587.rs b/tests/ui/inference/issue-103587.rs similarity index 100% rename from src/test/ui/inference/issue-103587.rs rename to tests/ui/inference/issue-103587.rs diff --git a/src/test/ui/inference/issue-103587.stderr b/tests/ui/inference/issue-103587.stderr similarity index 100% rename from src/test/ui/inference/issue-103587.stderr rename to tests/ui/inference/issue-103587.stderr diff --git a/src/test/ui/inference/issue-104649.rs b/tests/ui/inference/issue-104649.rs similarity index 100% rename from src/test/ui/inference/issue-104649.rs rename to tests/ui/inference/issue-104649.rs diff --git a/src/test/ui/inference/issue-104649.stderr b/tests/ui/inference/issue-104649.stderr similarity index 100% rename from src/test/ui/inference/issue-104649.stderr rename to tests/ui/inference/issue-104649.stderr diff --git a/src/test/ui/inference/issue-28935.rs b/tests/ui/inference/issue-28935.rs similarity index 100% rename from src/test/ui/inference/issue-28935.rs rename to tests/ui/inference/issue-28935.rs diff --git a/src/test/ui/inference/issue-36053.rs b/tests/ui/inference/issue-36053.rs similarity index 100% rename from src/test/ui/inference/issue-36053.rs rename to tests/ui/inference/issue-36053.rs diff --git a/src/test/ui/inference/issue-70703.rs b/tests/ui/inference/issue-70703.rs similarity index 100% rename from src/test/ui/inference/issue-70703.rs rename to tests/ui/inference/issue-70703.rs diff --git a/src/test/ui/inference/issue-71309.rs b/tests/ui/inference/issue-71309.rs similarity index 100% rename from src/test/ui/inference/issue-71309.rs rename to tests/ui/inference/issue-71309.rs diff --git a/src/test/ui/inference/issue-71309.stderr b/tests/ui/inference/issue-71309.stderr similarity index 100% rename from src/test/ui/inference/issue-71309.stderr rename to tests/ui/inference/issue-71309.stderr diff --git a/src/test/ui/inference/issue-71732.rs b/tests/ui/inference/issue-71732.rs similarity index 100% rename from src/test/ui/inference/issue-71732.rs rename to tests/ui/inference/issue-71732.rs diff --git a/src/test/ui/inference/issue-71732.stderr b/tests/ui/inference/issue-71732.stderr similarity index 100% rename from src/test/ui/inference/issue-71732.stderr rename to tests/ui/inference/issue-71732.stderr diff --git a/src/test/ui/inference/issue-72616.rs b/tests/ui/inference/issue-72616.rs similarity index 100% rename from src/test/ui/inference/issue-72616.rs rename to tests/ui/inference/issue-72616.rs diff --git a/src/test/ui/inference/issue-72616.stderr b/tests/ui/inference/issue-72616.stderr similarity index 100% rename from src/test/ui/inference/issue-72616.stderr rename to tests/ui/inference/issue-72616.stderr diff --git a/src/test/ui/inference/issue-72690.rs b/tests/ui/inference/issue-72690.rs similarity index 100% rename from src/test/ui/inference/issue-72690.rs rename to tests/ui/inference/issue-72690.rs diff --git a/src/test/ui/inference/issue-72690.stderr b/tests/ui/inference/issue-72690.stderr similarity index 100% rename from src/test/ui/inference/issue-72690.stderr rename to tests/ui/inference/issue-72690.stderr diff --git a/src/test/ui/inference/issue-80816.rs b/tests/ui/inference/issue-80816.rs similarity index 100% rename from src/test/ui/inference/issue-80816.rs rename to tests/ui/inference/issue-80816.rs diff --git a/src/test/ui/inference/issue-80816.stderr b/tests/ui/inference/issue-80816.stderr similarity index 100% rename from src/test/ui/inference/issue-80816.stderr rename to tests/ui/inference/issue-80816.stderr diff --git a/src/test/ui/inference/issue-81522.rs b/tests/ui/inference/issue-81522.rs similarity index 100% rename from src/test/ui/inference/issue-81522.rs rename to tests/ui/inference/issue-81522.rs diff --git a/src/test/ui/inference/issue-83606.rs b/tests/ui/inference/issue-83606.rs similarity index 100% rename from src/test/ui/inference/issue-83606.rs rename to tests/ui/inference/issue-83606.rs diff --git a/src/test/ui/inference/issue-83606.stderr b/tests/ui/inference/issue-83606.stderr similarity index 100% rename from src/test/ui/inference/issue-83606.stderr rename to tests/ui/inference/issue-83606.stderr diff --git a/src/test/ui/inference/issue-86162-1.rs b/tests/ui/inference/issue-86162-1.rs similarity index 100% rename from src/test/ui/inference/issue-86162-1.rs rename to tests/ui/inference/issue-86162-1.rs diff --git a/src/test/ui/inference/issue-86162-1.stderr b/tests/ui/inference/issue-86162-1.stderr similarity index 100% rename from src/test/ui/inference/issue-86162-1.stderr rename to tests/ui/inference/issue-86162-1.stderr diff --git a/src/test/ui/inference/issue-86162-2.rs b/tests/ui/inference/issue-86162-2.rs similarity index 100% rename from src/test/ui/inference/issue-86162-2.rs rename to tests/ui/inference/issue-86162-2.rs diff --git a/src/test/ui/inference/issue-86162-2.stderr b/tests/ui/inference/issue-86162-2.stderr similarity index 100% rename from src/test/ui/inference/issue-86162-2.stderr rename to tests/ui/inference/issue-86162-2.stderr diff --git a/src/test/ui/inference/lub-glb-with-unbound-infer-var.rs b/tests/ui/inference/lub-glb-with-unbound-infer-var.rs similarity index 100% rename from src/test/ui/inference/lub-glb-with-unbound-infer-var.rs rename to tests/ui/inference/lub-glb-with-unbound-infer-var.rs diff --git a/src/test/ui/inference/need_type_info/channel.rs b/tests/ui/inference/need_type_info/channel.rs similarity index 100% rename from src/test/ui/inference/need_type_info/channel.rs rename to tests/ui/inference/need_type_info/channel.rs diff --git a/src/test/ui/inference/need_type_info/channel.stderr b/tests/ui/inference/need_type_info/channel.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/channel.stderr rename to tests/ui/inference/need_type_info/channel.stderr diff --git a/src/test/ui/inference/need_type_info/concrete-impl.rs b/tests/ui/inference/need_type_info/concrete-impl.rs similarity index 100% rename from src/test/ui/inference/need_type_info/concrete-impl.rs rename to tests/ui/inference/need_type_info/concrete-impl.rs diff --git a/src/test/ui/inference/need_type_info/concrete-impl.stderr b/tests/ui/inference/need_type_info/concrete-impl.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/concrete-impl.stderr rename to tests/ui/inference/need_type_info/concrete-impl.stderr diff --git a/src/test/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.rs b/tests/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.rs similarity index 100% rename from src/test/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.rs rename to tests/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.rs diff --git a/src/test/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.stderr b/tests/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.stderr rename to tests/ui/inference/need_type_info/do-not-suggest-generic-arguments-for-turbofish.stderr diff --git a/src/test/ui/inference/need_type_info/expr-struct-type-relative-enum.rs b/tests/ui/inference/need_type_info/expr-struct-type-relative-enum.rs similarity index 100% rename from src/test/ui/inference/need_type_info/expr-struct-type-relative-enum.rs rename to tests/ui/inference/need_type_info/expr-struct-type-relative-enum.rs diff --git a/src/test/ui/inference/need_type_info/expr-struct-type-relative-enum.stderr b/tests/ui/inference/need_type_info/expr-struct-type-relative-enum.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/expr-struct-type-relative-enum.stderr rename to tests/ui/inference/need_type_info/expr-struct-type-relative-enum.stderr diff --git a/src/test/ui/inference/need_type_info/expr-struct-type-relative-gat.rs b/tests/ui/inference/need_type_info/expr-struct-type-relative-gat.rs similarity index 100% rename from src/test/ui/inference/need_type_info/expr-struct-type-relative-gat.rs rename to tests/ui/inference/need_type_info/expr-struct-type-relative-gat.rs diff --git a/src/test/ui/inference/need_type_info/expr-struct-type-relative-gat.stderr b/tests/ui/inference/need_type_info/expr-struct-type-relative-gat.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/expr-struct-type-relative-gat.stderr rename to tests/ui/inference/need_type_info/expr-struct-type-relative-gat.stderr diff --git a/src/test/ui/inference/need_type_info/expr-struct-type-relative.rs b/tests/ui/inference/need_type_info/expr-struct-type-relative.rs similarity index 100% rename from src/test/ui/inference/need_type_info/expr-struct-type-relative.rs rename to tests/ui/inference/need_type_info/expr-struct-type-relative.rs diff --git a/src/test/ui/inference/need_type_info/expr-struct-type-relative.stderr b/tests/ui/inference/need_type_info/expr-struct-type-relative.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/expr-struct-type-relative.stderr rename to tests/ui/inference/need_type_info/expr-struct-type-relative.stderr diff --git a/src/test/ui/inference/need_type_info/issue-103053.rs b/tests/ui/inference/need_type_info/issue-103053.rs similarity index 100% rename from src/test/ui/inference/need_type_info/issue-103053.rs rename to tests/ui/inference/need_type_info/issue-103053.rs diff --git a/src/test/ui/inference/need_type_info/issue-103053.stderr b/tests/ui/inference/need_type_info/issue-103053.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/issue-103053.stderr rename to tests/ui/inference/need_type_info/issue-103053.stderr diff --git a/src/test/ui/inference/need_type_info/self-ty-in-path.rs b/tests/ui/inference/need_type_info/self-ty-in-path.rs similarity index 100% rename from src/test/ui/inference/need_type_info/self-ty-in-path.rs rename to tests/ui/inference/need_type_info/self-ty-in-path.rs diff --git a/src/test/ui/inference/need_type_info/self-ty-in-path.stderr b/tests/ui/inference/need_type_info/self-ty-in-path.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/self-ty-in-path.stderr rename to tests/ui/inference/need_type_info/self-ty-in-path.stderr diff --git a/src/test/ui/inference/need_type_info/type-alias-indirect.rs b/tests/ui/inference/need_type_info/type-alias-indirect.rs similarity index 100% rename from src/test/ui/inference/need_type_info/type-alias-indirect.rs rename to tests/ui/inference/need_type_info/type-alias-indirect.rs diff --git a/src/test/ui/inference/need_type_info/type-alias-indirect.stderr b/tests/ui/inference/need_type_info/type-alias-indirect.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/type-alias-indirect.stderr rename to tests/ui/inference/need_type_info/type-alias-indirect.stderr diff --git a/src/test/ui/inference/need_type_info/type-alias.rs b/tests/ui/inference/need_type_info/type-alias.rs similarity index 100% rename from src/test/ui/inference/need_type_info/type-alias.rs rename to tests/ui/inference/need_type_info/type-alias.rs diff --git a/src/test/ui/inference/need_type_info/type-alias.stderr b/tests/ui/inference/need_type_info/type-alias.stderr similarity index 100% rename from src/test/ui/inference/need_type_info/type-alias.stderr rename to tests/ui/inference/need_type_info/type-alias.stderr diff --git a/src/test/ui/inference/newlambdas-ret-infer.rs b/tests/ui/inference/newlambdas-ret-infer.rs similarity index 100% rename from src/test/ui/inference/newlambdas-ret-infer.rs rename to tests/ui/inference/newlambdas-ret-infer.rs diff --git a/src/test/ui/inference/newlambdas-ret-infer2.rs b/tests/ui/inference/newlambdas-ret-infer2.rs similarity index 100% rename from src/test/ui/inference/newlambdas-ret-infer2.rs rename to tests/ui/inference/newlambdas-ret-infer2.rs diff --git a/src/test/ui/inference/question-mark-type-infer.rs b/tests/ui/inference/question-mark-type-infer.rs similarity index 100% rename from src/test/ui/inference/question-mark-type-infer.rs rename to tests/ui/inference/question-mark-type-infer.rs diff --git a/src/test/ui/inference/question-mark-type-infer.stderr b/tests/ui/inference/question-mark-type-infer.stderr similarity index 100% rename from src/test/ui/inference/question-mark-type-infer.stderr rename to tests/ui/inference/question-mark-type-infer.stderr diff --git a/src/test/ui/inference/range-type-infer.rs b/tests/ui/inference/range-type-infer.rs similarity index 100% rename from src/test/ui/inference/range-type-infer.rs rename to tests/ui/inference/range-type-infer.rs diff --git a/src/test/ui/inference/simple-infer.rs b/tests/ui/inference/simple-infer.rs similarity index 100% rename from src/test/ui/inference/simple-infer.rs rename to tests/ui/inference/simple-infer.rs diff --git a/src/test/ui/inference/str-as-char.fixed b/tests/ui/inference/str-as-char.fixed similarity index 100% rename from src/test/ui/inference/str-as-char.fixed rename to tests/ui/inference/str-as-char.fixed diff --git a/src/test/ui/inference/str-as-char.rs b/tests/ui/inference/str-as-char.rs similarity index 100% rename from src/test/ui/inference/str-as-char.rs rename to tests/ui/inference/str-as-char.rs diff --git a/src/test/ui/inference/str-as-char.stderr b/tests/ui/inference/str-as-char.stderr similarity index 100% rename from src/test/ui/inference/str-as-char.stderr rename to tests/ui/inference/str-as-char.stderr diff --git a/src/test/ui/inference/tutorial-suffix-inference-test.rs b/tests/ui/inference/tutorial-suffix-inference-test.rs similarity index 100% rename from src/test/ui/inference/tutorial-suffix-inference-test.rs rename to tests/ui/inference/tutorial-suffix-inference-test.rs diff --git a/src/test/ui/inference/tutorial-suffix-inference-test.stderr b/tests/ui/inference/tutorial-suffix-inference-test.stderr similarity index 100% rename from src/test/ui/inference/tutorial-suffix-inference-test.stderr rename to tests/ui/inference/tutorial-suffix-inference-test.stderr diff --git a/src/test/ui/inference/type-infer-generalize-ty-var.rs b/tests/ui/inference/type-infer-generalize-ty-var.rs similarity index 100% rename from src/test/ui/inference/type-infer-generalize-ty-var.rs rename to tests/ui/inference/type-infer-generalize-ty-var.rs diff --git a/src/test/ui/infinite/infinite-autoderef.rs b/tests/ui/infinite/infinite-autoderef.rs similarity index 100% rename from src/test/ui/infinite/infinite-autoderef.rs rename to tests/ui/infinite/infinite-autoderef.rs diff --git a/src/test/ui/infinite/infinite-autoderef.stderr b/tests/ui/infinite/infinite-autoderef.stderr similarity index 100% rename from src/test/ui/infinite/infinite-autoderef.stderr rename to tests/ui/infinite/infinite-autoderef.stderr diff --git a/src/test/ui/infinite/infinite-instantiation.polonius.stderr b/tests/ui/infinite/infinite-instantiation.polonius.stderr similarity index 100% rename from src/test/ui/infinite/infinite-instantiation.polonius.stderr rename to tests/ui/infinite/infinite-instantiation.polonius.stderr diff --git a/src/test/ui/infinite/infinite-instantiation.rs b/tests/ui/infinite/infinite-instantiation.rs similarity index 100% rename from src/test/ui/infinite/infinite-instantiation.rs rename to tests/ui/infinite/infinite-instantiation.rs diff --git a/src/test/ui/infinite/infinite-instantiation.stderr b/tests/ui/infinite/infinite-instantiation.stderr similarity index 100% rename from src/test/ui/infinite/infinite-instantiation.stderr rename to tests/ui/infinite/infinite-instantiation.stderr diff --git a/src/test/ui/infinite/infinite-macro-expansion.rs b/tests/ui/infinite/infinite-macro-expansion.rs similarity index 100% rename from src/test/ui/infinite/infinite-macro-expansion.rs rename to tests/ui/infinite/infinite-macro-expansion.rs diff --git a/src/test/ui/infinite/infinite-macro-expansion.stderr b/tests/ui/infinite/infinite-macro-expansion.stderr similarity index 100% rename from src/test/ui/infinite/infinite-macro-expansion.stderr rename to tests/ui/infinite/infinite-macro-expansion.stderr diff --git a/src/test/ui/infinite/infinite-recursion-const-fn.rs b/tests/ui/infinite/infinite-recursion-const-fn.rs similarity index 100% rename from src/test/ui/infinite/infinite-recursion-const-fn.rs rename to tests/ui/infinite/infinite-recursion-const-fn.rs diff --git a/src/test/ui/infinite/infinite-recursion-const-fn.stderr b/tests/ui/infinite/infinite-recursion-const-fn.stderr similarity index 100% rename from src/test/ui/infinite/infinite-recursion-const-fn.stderr rename to tests/ui/infinite/infinite-recursion-const-fn.stderr diff --git a/src/test/ui/infinite/infinite-struct.rs b/tests/ui/infinite/infinite-struct.rs similarity index 100% rename from src/test/ui/infinite/infinite-struct.rs rename to tests/ui/infinite/infinite-struct.rs diff --git a/src/test/ui/infinite/infinite-struct.stderr b/tests/ui/infinite/infinite-struct.stderr similarity index 100% rename from src/test/ui/infinite/infinite-struct.stderr rename to tests/ui/infinite/infinite-struct.stderr diff --git a/src/test/ui/infinite/infinite-tag-type-recursion.rs b/tests/ui/infinite/infinite-tag-type-recursion.rs similarity index 100% rename from src/test/ui/infinite/infinite-tag-type-recursion.rs rename to tests/ui/infinite/infinite-tag-type-recursion.rs diff --git a/src/test/ui/infinite/infinite-tag-type-recursion.stderr b/tests/ui/infinite/infinite-tag-type-recursion.stderr similarity index 100% rename from src/test/ui/infinite/infinite-tag-type-recursion.stderr rename to tests/ui/infinite/infinite-tag-type-recursion.stderr diff --git a/src/test/ui/infinite/infinite-trait-alias-recursion.rs b/tests/ui/infinite/infinite-trait-alias-recursion.rs similarity index 100% rename from src/test/ui/infinite/infinite-trait-alias-recursion.rs rename to tests/ui/infinite/infinite-trait-alias-recursion.rs diff --git a/src/test/ui/infinite/infinite-trait-alias-recursion.stderr b/tests/ui/infinite/infinite-trait-alias-recursion.stderr similarity index 100% rename from src/test/ui/infinite/infinite-trait-alias-recursion.stderr rename to tests/ui/infinite/infinite-trait-alias-recursion.stderr diff --git a/src/test/ui/infinite/infinite-type-alias-mutual-recursion.rs b/tests/ui/infinite/infinite-type-alias-mutual-recursion.rs similarity index 100% rename from src/test/ui/infinite/infinite-type-alias-mutual-recursion.rs rename to tests/ui/infinite/infinite-type-alias-mutual-recursion.rs diff --git a/src/test/ui/infinite/infinite-type-alias-mutual-recursion.stderr b/tests/ui/infinite/infinite-type-alias-mutual-recursion.stderr similarity index 100% rename from src/test/ui/infinite/infinite-type-alias-mutual-recursion.stderr rename to tests/ui/infinite/infinite-type-alias-mutual-recursion.stderr diff --git a/src/test/ui/infinite/infinite-vec-type-recursion.rs b/tests/ui/infinite/infinite-vec-type-recursion.rs similarity index 100% rename from src/test/ui/infinite/infinite-vec-type-recursion.rs rename to tests/ui/infinite/infinite-vec-type-recursion.rs diff --git a/src/test/ui/infinite/infinite-vec-type-recursion.stderr b/tests/ui/infinite/infinite-vec-type-recursion.stderr similarity index 100% rename from src/test/ui/infinite/infinite-vec-type-recursion.stderr rename to tests/ui/infinite/infinite-vec-type-recursion.stderr diff --git a/src/test/ui/infinite/issue-41731-infinite-macro-print.rs b/tests/ui/infinite/issue-41731-infinite-macro-print.rs similarity index 100% rename from src/test/ui/infinite/issue-41731-infinite-macro-print.rs rename to tests/ui/infinite/issue-41731-infinite-macro-print.rs diff --git a/src/test/ui/infinite/issue-41731-infinite-macro-print.stderr b/tests/ui/infinite/issue-41731-infinite-macro-print.stderr similarity index 100% rename from src/test/ui/infinite/issue-41731-infinite-macro-print.stderr rename to tests/ui/infinite/issue-41731-infinite-macro-print.stderr diff --git a/src/test/ui/infinite/issue-41731-infinite-macro-println.rs b/tests/ui/infinite/issue-41731-infinite-macro-println.rs similarity index 100% rename from src/test/ui/infinite/issue-41731-infinite-macro-println.rs rename to tests/ui/infinite/issue-41731-infinite-macro-println.rs diff --git a/src/test/ui/infinite/issue-41731-infinite-macro-println.stderr b/tests/ui/infinite/issue-41731-infinite-macro-println.stderr similarity index 100% rename from src/test/ui/infinite/issue-41731-infinite-macro-println.stderr rename to tests/ui/infinite/issue-41731-infinite-macro-println.stderr diff --git a/src/test/ui/inherent-impls-overlap-check/auxiliary/repeat.rs b/tests/ui/inherent-impls-overlap-check/auxiliary/repeat.rs similarity index 100% rename from src/test/ui/inherent-impls-overlap-check/auxiliary/repeat.rs rename to tests/ui/inherent-impls-overlap-check/auxiliary/repeat.rs diff --git a/src/test/ui/inherent-impls-overlap-check/no-overlap.rs b/tests/ui/inherent-impls-overlap-check/no-overlap.rs similarity index 100% rename from src/test/ui/inherent-impls-overlap-check/no-overlap.rs rename to tests/ui/inherent-impls-overlap-check/no-overlap.rs diff --git a/src/test/ui/inherent-impls-overlap-check/overlap.rs b/tests/ui/inherent-impls-overlap-check/overlap.rs similarity index 100% rename from src/test/ui/inherent-impls-overlap-check/overlap.rs rename to tests/ui/inherent-impls-overlap-check/overlap.rs diff --git a/src/test/ui/inherent-impls-overlap-check/overlap.stderr b/tests/ui/inherent-impls-overlap-check/overlap.stderr similarity index 100% rename from src/test/ui/inherent-impls-overlap-check/overlap.stderr rename to tests/ui/inherent-impls-overlap-check/overlap.stderr diff --git a/src/test/ui/inherit-env.rs b/tests/ui/inherit-env.rs similarity index 100% rename from src/test/ui/inherit-env.rs rename to tests/ui/inherit-env.rs diff --git a/src/test/ui/inline-const/const-expr-array-init.rs b/tests/ui/inline-const/const-expr-array-init.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-array-init.rs rename to tests/ui/inline-const/const-expr-array-init.rs diff --git a/src/test/ui/inline-const/const-expr-basic.rs b/tests/ui/inline-const/const-expr-basic.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-basic.rs rename to tests/ui/inline-const/const-expr-basic.rs diff --git a/src/test/ui/inline-const/const-expr-generic-err.rs b/tests/ui/inline-const/const-expr-generic-err.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-generic-err.rs rename to tests/ui/inline-const/const-expr-generic-err.rs diff --git a/src/test/ui/inline-const/const-expr-generic-err.stderr b/tests/ui/inline-const/const-expr-generic-err.stderr similarity index 100% rename from src/test/ui/inline-const/const-expr-generic-err.stderr rename to tests/ui/inline-const/const-expr-generic-err.stderr diff --git a/src/test/ui/inline-const/const-expr-generic-err2.rs b/tests/ui/inline-const/const-expr-generic-err2.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-generic-err2.rs rename to tests/ui/inline-const/const-expr-generic-err2.rs diff --git a/src/test/ui/inline-const/const-expr-generic-err2.stderr b/tests/ui/inline-const/const-expr-generic-err2.stderr similarity index 100% rename from src/test/ui/inline-const/const-expr-generic-err2.stderr rename to tests/ui/inline-const/const-expr-generic-err2.stderr diff --git a/src/test/ui/inline-const/const-expr-generic.rs b/tests/ui/inline-const/const-expr-generic.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-generic.rs rename to tests/ui/inline-const/const-expr-generic.rs diff --git a/src/test/ui/inline-const/const-expr-inference.rs b/tests/ui/inline-const/const-expr-inference.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-inference.rs rename to tests/ui/inline-const/const-expr-inference.rs diff --git a/src/test/ui/inline-const/const-expr-lifetime-err.rs b/tests/ui/inline-const/const-expr-lifetime-err.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-lifetime-err.rs rename to tests/ui/inline-const/const-expr-lifetime-err.rs diff --git a/src/test/ui/inline-const/const-expr-lifetime-err.stderr b/tests/ui/inline-const/const-expr-lifetime-err.stderr similarity index 100% rename from src/test/ui/inline-const/const-expr-lifetime-err.stderr rename to tests/ui/inline-const/const-expr-lifetime-err.stderr diff --git a/src/test/ui/inline-const/const-expr-lifetime.rs b/tests/ui/inline-const/const-expr-lifetime.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-lifetime.rs rename to tests/ui/inline-const/const-expr-lifetime.rs diff --git a/src/test/ui/inline-const/const-expr-macro.rs b/tests/ui/inline-const/const-expr-macro.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-macro.rs rename to tests/ui/inline-const/const-expr-macro.rs diff --git a/src/test/ui/inline-const/const-expr-reference.rs b/tests/ui/inline-const/const-expr-reference.rs similarity index 100% rename from src/test/ui/inline-const/const-expr-reference.rs rename to tests/ui/inline-const/const-expr-reference.rs diff --git a/src/test/ui/inline-const/const-match-pat-generic.rs b/tests/ui/inline-const/const-match-pat-generic.rs similarity index 100% rename from src/test/ui/inline-const/const-match-pat-generic.rs rename to tests/ui/inline-const/const-match-pat-generic.rs diff --git a/src/test/ui/inline-const/const-match-pat-generic.stderr b/tests/ui/inline-const/const-match-pat-generic.stderr similarity index 100% rename from src/test/ui/inline-const/const-match-pat-generic.stderr rename to tests/ui/inline-const/const-match-pat-generic.stderr diff --git a/src/test/ui/inline-const/const-match-pat-inference.rs b/tests/ui/inline-const/const-match-pat-inference.rs similarity index 100% rename from src/test/ui/inline-const/const-match-pat-inference.rs rename to tests/ui/inline-const/const-match-pat-inference.rs diff --git a/src/test/ui/inline-const/const-match-pat-lifetime-err.rs b/tests/ui/inline-const/const-match-pat-lifetime-err.rs similarity index 100% rename from src/test/ui/inline-const/const-match-pat-lifetime-err.rs rename to tests/ui/inline-const/const-match-pat-lifetime-err.rs diff --git a/src/test/ui/inline-const/const-match-pat-lifetime.rs b/tests/ui/inline-const/const-match-pat-lifetime.rs similarity index 100% rename from src/test/ui/inline-const/const-match-pat-lifetime.rs rename to tests/ui/inline-const/const-match-pat-lifetime.rs diff --git a/src/test/ui/inline-const/const-match-pat-range.rs b/tests/ui/inline-const/const-match-pat-range.rs similarity index 100% rename from src/test/ui/inline-const/const-match-pat-range.rs rename to tests/ui/inline-const/const-match-pat-range.rs diff --git a/src/test/ui/inline-const/const-match-pat.rs b/tests/ui/inline-const/const-match-pat.rs similarity index 100% rename from src/test/ui/inline-const/const-match-pat.rs rename to tests/ui/inline-const/const-match-pat.rs diff --git a/src/test/ui/inline-const/expr-unsafe-err.mir.stderr b/tests/ui/inline-const/expr-unsafe-err.mir.stderr similarity index 100% rename from src/test/ui/inline-const/expr-unsafe-err.mir.stderr rename to tests/ui/inline-const/expr-unsafe-err.mir.stderr diff --git a/src/test/ui/inline-const/expr-unsafe-err.rs b/tests/ui/inline-const/expr-unsafe-err.rs similarity index 100% rename from src/test/ui/inline-const/expr-unsafe-err.rs rename to tests/ui/inline-const/expr-unsafe-err.rs diff --git a/src/test/ui/inline-const/expr-unsafe-err.thir.stderr b/tests/ui/inline-const/expr-unsafe-err.thir.stderr similarity index 100% rename from src/test/ui/inline-const/expr-unsafe-err.thir.stderr rename to tests/ui/inline-const/expr-unsafe-err.thir.stderr diff --git a/src/test/ui/inline-const/expr-unsafe.mir.stderr b/tests/ui/inline-const/expr-unsafe.mir.stderr similarity index 100% rename from src/test/ui/inline-const/expr-unsafe.mir.stderr rename to tests/ui/inline-const/expr-unsafe.mir.stderr diff --git a/src/test/ui/inline-const/expr-unsafe.rs b/tests/ui/inline-const/expr-unsafe.rs similarity index 100% rename from src/test/ui/inline-const/expr-unsafe.rs rename to tests/ui/inline-const/expr-unsafe.rs diff --git a/src/test/ui/inline-const/expr-unsafe.thir.stderr b/tests/ui/inline-const/expr-unsafe.thir.stderr similarity index 100% rename from src/test/ui/inline-const/expr-unsafe.thir.stderr rename to tests/ui/inline-const/expr-unsafe.thir.stderr diff --git a/src/test/ui/inline-const/expr-with-block-err.rs b/tests/ui/inline-const/expr-with-block-err.rs similarity index 100% rename from src/test/ui/inline-const/expr-with-block-err.rs rename to tests/ui/inline-const/expr-with-block-err.rs diff --git a/src/test/ui/inline-const/expr-with-block-err.stderr b/tests/ui/inline-const/expr-with-block-err.stderr similarity index 100% rename from src/test/ui/inline-const/expr-with-block-err.stderr rename to tests/ui/inline-const/expr-with-block-err.stderr diff --git a/src/test/ui/inline-const/expr-with-block.rs b/tests/ui/inline-const/expr-with-block.rs similarity index 100% rename from src/test/ui/inline-const/expr-with-block.rs rename to tests/ui/inline-const/expr-with-block.rs diff --git a/src/test/ui/inline-const/macro-with-const.rs b/tests/ui/inline-const/macro-with-const.rs similarity index 100% rename from src/test/ui/inline-const/macro-with-const.rs rename to tests/ui/inline-const/macro-with-const.rs diff --git a/src/test/ui/inline-const/pat-unsafe-err.rs b/tests/ui/inline-const/pat-unsafe-err.rs similarity index 100% rename from src/test/ui/inline-const/pat-unsafe-err.rs rename to tests/ui/inline-const/pat-unsafe-err.rs diff --git a/src/test/ui/inline-const/pat-unsafe.rs b/tests/ui/inline-const/pat-unsafe.rs similarity index 100% rename from src/test/ui/inline-const/pat-unsafe.rs rename to tests/ui/inline-const/pat-unsafe.rs diff --git a/src/test/ui/inline-disallow-on-variant.rs b/tests/ui/inline-disallow-on-variant.rs similarity index 100% rename from src/test/ui/inline-disallow-on-variant.rs rename to tests/ui/inline-disallow-on-variant.rs diff --git a/src/test/ui/inline-disallow-on-variant.stderr b/tests/ui/inline-disallow-on-variant.stderr similarity index 100% rename from src/test/ui/inline-disallow-on-variant.stderr rename to tests/ui/inline-disallow-on-variant.stderr diff --git a/src/test/ui/inlined-main.rs b/tests/ui/inlined-main.rs similarity index 100% rename from src/test/ui/inlined-main.rs rename to tests/ui/inlined-main.rs diff --git a/src/test/ui/inner-attrs-on-impl.rs b/tests/ui/inner-attrs-on-impl.rs similarity index 100% rename from src/test/ui/inner-attrs-on-impl.rs rename to tests/ui/inner-attrs-on-impl.rs diff --git a/src/test/ui/inner-module.rs b/tests/ui/inner-module.rs similarity index 100% rename from src/test/ui/inner-module.rs rename to tests/ui/inner-module.rs diff --git a/src/test/ui/inner-static-type-parameter.rs b/tests/ui/inner-static-type-parameter.rs similarity index 100% rename from src/test/ui/inner-static-type-parameter.rs rename to tests/ui/inner-static-type-parameter.rs diff --git a/src/test/ui/inner-static-type-parameter.stderr b/tests/ui/inner-static-type-parameter.stderr similarity index 100% rename from src/test/ui/inner-static-type-parameter.stderr rename to tests/ui/inner-static-type-parameter.stderr diff --git a/src/test/ui/inner-static.rs b/tests/ui/inner-static.rs similarity index 100% rename from src/test/ui/inner-static.rs rename to tests/ui/inner-static.rs diff --git a/src/test/ui/integral-indexing.rs b/tests/ui/integral-indexing.rs similarity index 100% rename from src/test/ui/integral-indexing.rs rename to tests/ui/integral-indexing.rs diff --git a/src/test/ui/integral-indexing.stderr b/tests/ui/integral-indexing.stderr similarity index 100% rename from src/test/ui/integral-indexing.stderr rename to tests/ui/integral-indexing.stderr diff --git a/src/test/ui/integral-variable-unification-error.rs b/tests/ui/integral-variable-unification-error.rs similarity index 100% rename from src/test/ui/integral-variable-unification-error.rs rename to tests/ui/integral-variable-unification-error.rs diff --git a/src/test/ui/integral-variable-unification-error.stderr b/tests/ui/integral-variable-unification-error.stderr similarity index 100% rename from src/test/ui/integral-variable-unification-error.stderr rename to tests/ui/integral-variable-unification-error.stderr diff --git a/src/test/ui/interior-mutability/interior-mutability.rs b/tests/ui/interior-mutability/interior-mutability.rs similarity index 100% rename from src/test/ui/interior-mutability/interior-mutability.rs rename to tests/ui/interior-mutability/interior-mutability.rs diff --git a/src/test/ui/interior-mutability/interior-mutability.stderr b/tests/ui/interior-mutability/interior-mutability.stderr similarity index 100% rename from src/test/ui/interior-mutability/interior-mutability.stderr rename to tests/ui/interior-mutability/interior-mutability.stderr diff --git a/src/test/ui/internal/auxiliary/internal_unstable.rs b/tests/ui/internal/auxiliary/internal_unstable.rs similarity index 100% rename from src/test/ui/internal/auxiliary/internal_unstable.rs rename to tests/ui/internal/auxiliary/internal_unstable.rs diff --git a/src/test/ui/internal/internal-unstable-const.rs b/tests/ui/internal/internal-unstable-const.rs similarity index 100% rename from src/test/ui/internal/internal-unstable-const.rs rename to tests/ui/internal/internal-unstable-const.rs diff --git a/src/test/ui/internal/internal-unstable-const.stderr b/tests/ui/internal/internal-unstable-const.stderr similarity index 100% rename from src/test/ui/internal/internal-unstable-const.stderr rename to tests/ui/internal/internal-unstable-const.stderr diff --git a/src/test/ui/internal/internal-unstable-noallow.rs b/tests/ui/internal/internal-unstable-noallow.rs similarity index 100% rename from src/test/ui/internal/internal-unstable-noallow.rs rename to tests/ui/internal/internal-unstable-noallow.rs diff --git a/src/test/ui/internal/internal-unstable-noallow.stderr b/tests/ui/internal/internal-unstable-noallow.stderr similarity index 100% rename from src/test/ui/internal/internal-unstable-noallow.stderr rename to tests/ui/internal/internal-unstable-noallow.stderr diff --git a/src/test/ui/internal/internal-unstable-thread-local.rs b/tests/ui/internal/internal-unstable-thread-local.rs similarity index 100% rename from src/test/ui/internal/internal-unstable-thread-local.rs rename to tests/ui/internal/internal-unstable-thread-local.rs diff --git a/src/test/ui/internal/internal-unstable-thread-local.stderr b/tests/ui/internal/internal-unstable-thread-local.stderr similarity index 100% rename from src/test/ui/internal/internal-unstable-thread-local.stderr rename to tests/ui/internal/internal-unstable-thread-local.stderr diff --git a/src/test/ui/internal/internal-unstable.rs b/tests/ui/internal/internal-unstable.rs similarity index 100% rename from src/test/ui/internal/internal-unstable.rs rename to tests/ui/internal/internal-unstable.rs diff --git a/src/test/ui/internal/internal-unstable.stderr b/tests/ui/internal/internal-unstable.stderr similarity index 100% rename from src/test/ui/internal/internal-unstable.stderr rename to tests/ui/internal/internal-unstable.stderr diff --git a/src/test/ui/intrinsics-always-extern.rs b/tests/ui/intrinsics-always-extern.rs similarity index 100% rename from src/test/ui/intrinsics-always-extern.rs rename to tests/ui/intrinsics-always-extern.rs diff --git a/src/test/ui/intrinsics-always-extern.stderr b/tests/ui/intrinsics-always-extern.stderr similarity index 100% rename from src/test/ui/intrinsics-always-extern.stderr rename to tests/ui/intrinsics-always-extern.stderr diff --git a/src/test/ui/intrinsics/auxiliary/cci_intrinsic.rs b/tests/ui/intrinsics/auxiliary/cci_intrinsic.rs similarity index 100% rename from src/test/ui/intrinsics/auxiliary/cci_intrinsic.rs rename to tests/ui/intrinsics/auxiliary/cci_intrinsic.rs diff --git a/src/test/ui/intrinsics/bad-intrinsic-monomorphization.rs b/tests/ui/intrinsics/bad-intrinsic-monomorphization.rs similarity index 100% rename from src/test/ui/intrinsics/bad-intrinsic-monomorphization.rs rename to tests/ui/intrinsics/bad-intrinsic-monomorphization.rs diff --git a/src/test/ui/intrinsics/bad-intrinsic-monomorphization.stderr b/tests/ui/intrinsics/bad-intrinsic-monomorphization.stderr similarity index 100% rename from src/test/ui/intrinsics/bad-intrinsic-monomorphization.stderr rename to tests/ui/intrinsics/bad-intrinsic-monomorphization.stderr diff --git a/src/test/ui/intrinsics/const-eval-select-backtrace-std.rs b/tests/ui/intrinsics/const-eval-select-backtrace-std.rs similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-backtrace-std.rs rename to tests/ui/intrinsics/const-eval-select-backtrace-std.rs diff --git a/src/test/ui/intrinsics/const-eval-select-backtrace-std.run.stderr b/tests/ui/intrinsics/const-eval-select-backtrace-std.run.stderr similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-backtrace-std.run.stderr rename to tests/ui/intrinsics/const-eval-select-backtrace-std.run.stderr diff --git a/src/test/ui/intrinsics/const-eval-select-backtrace.rs b/tests/ui/intrinsics/const-eval-select-backtrace.rs similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-backtrace.rs rename to tests/ui/intrinsics/const-eval-select-backtrace.rs diff --git a/src/test/ui/intrinsics/const-eval-select-backtrace.run.stderr b/tests/ui/intrinsics/const-eval-select-backtrace.run.stderr similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-backtrace.run.stderr rename to tests/ui/intrinsics/const-eval-select-backtrace.run.stderr diff --git a/src/test/ui/intrinsics/const-eval-select-bad.rs b/tests/ui/intrinsics/const-eval-select-bad.rs similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-bad.rs rename to tests/ui/intrinsics/const-eval-select-bad.rs diff --git a/src/test/ui/intrinsics/const-eval-select-bad.stderr b/tests/ui/intrinsics/const-eval-select-bad.stderr similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-bad.stderr rename to tests/ui/intrinsics/const-eval-select-bad.stderr diff --git a/src/test/ui/intrinsics/const-eval-select-stability.rs b/tests/ui/intrinsics/const-eval-select-stability.rs similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-stability.rs rename to tests/ui/intrinsics/const-eval-select-stability.rs diff --git a/src/test/ui/intrinsics/const-eval-select-stability.stderr b/tests/ui/intrinsics/const-eval-select-stability.stderr similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-stability.stderr rename to tests/ui/intrinsics/const-eval-select-stability.stderr diff --git a/src/test/ui/intrinsics/const-eval-select-x86_64.rs b/tests/ui/intrinsics/const-eval-select-x86_64.rs similarity index 100% rename from src/test/ui/intrinsics/const-eval-select-x86_64.rs rename to tests/ui/intrinsics/const-eval-select-x86_64.rs diff --git a/src/test/ui/intrinsics/const-eval-select.rs b/tests/ui/intrinsics/const-eval-select.rs similarity index 100% rename from src/test/ui/intrinsics/const-eval-select.rs rename to tests/ui/intrinsics/const-eval-select.rs diff --git a/src/test/ui/intrinsics/intrinsic-alignment.rs b/tests/ui/intrinsics/intrinsic-alignment.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-alignment.rs rename to tests/ui/intrinsics/intrinsic-alignment.rs diff --git a/src/test/ui/intrinsics/intrinsic-assume.rs b/tests/ui/intrinsics/intrinsic-assume.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-assume.rs rename to tests/ui/intrinsics/intrinsic-assume.rs diff --git a/src/test/ui/intrinsics/intrinsic-atomics-cc.rs b/tests/ui/intrinsics/intrinsic-atomics-cc.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-atomics-cc.rs rename to tests/ui/intrinsics/intrinsic-atomics-cc.rs diff --git a/src/test/ui/intrinsics/intrinsic-atomics.rs b/tests/ui/intrinsics/intrinsic-atomics.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-atomics.rs rename to tests/ui/intrinsics/intrinsic-atomics.rs diff --git a/src/test/ui/intrinsics/intrinsic-nearby.rs b/tests/ui/intrinsics/intrinsic-nearby.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-nearby.rs rename to tests/ui/intrinsics/intrinsic-nearby.rs diff --git a/src/test/ui/intrinsics/intrinsic-raw_eq-const-padding.rs b/tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-raw_eq-const-padding.rs rename to tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs diff --git a/src/test/ui/intrinsics/intrinsic-raw_eq-const-padding.stderr b/tests/ui/intrinsics/intrinsic-raw_eq-const-padding.stderr similarity index 100% rename from src/test/ui/intrinsics/intrinsic-raw_eq-const-padding.stderr rename to tests/ui/intrinsics/intrinsic-raw_eq-const-padding.stderr diff --git a/src/test/ui/intrinsics/intrinsic-raw_eq-const.rs b/tests/ui/intrinsics/intrinsic-raw_eq-const.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-raw_eq-const.rs rename to tests/ui/intrinsics/intrinsic-raw_eq-const.rs diff --git a/src/test/ui/intrinsics/intrinsic-unreachable.rs b/tests/ui/intrinsics/intrinsic-unreachable.rs similarity index 81% rename from src/test/ui/intrinsics/intrinsic-unreachable.rs rename to tests/ui/intrinsics/intrinsic-unreachable.rs index da1a32d58eac7..73dd71d482ff5 100644 --- a/src/test/ui/intrinsics/intrinsic-unreachable.rs +++ b/tests/ui/intrinsics/intrinsic-unreachable.rs @@ -3,7 +3,7 @@ use std::intrinsics; -// See also src/test/run-make/intrinsic-unreachable. +// See also tests/run-make/intrinsic-unreachable. unsafe fn f(x: usize) -> usize { match x { diff --git a/src/test/ui/intrinsics/intrinsic-volatile.rs b/tests/ui/intrinsics/intrinsic-volatile.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsic-volatile.rs rename to tests/ui/intrinsics/intrinsic-volatile.rs diff --git a/src/test/ui/intrinsics/intrinsics-integer.rs b/tests/ui/intrinsics/intrinsics-integer.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsics-integer.rs rename to tests/ui/intrinsics/intrinsics-integer.rs diff --git a/src/test/ui/intrinsics/intrinsics-math.rs b/tests/ui/intrinsics/intrinsics-math.rs similarity index 100% rename from src/test/ui/intrinsics/intrinsics-math.rs rename to tests/ui/intrinsics/intrinsics-math.rs diff --git a/src/test/ui/intrinsics/issue-28575.mir.stderr b/tests/ui/intrinsics/issue-28575.mir.stderr similarity index 100% rename from src/test/ui/intrinsics/issue-28575.mir.stderr rename to tests/ui/intrinsics/issue-28575.mir.stderr diff --git a/src/test/ui/intrinsics/issue-28575.rs b/tests/ui/intrinsics/issue-28575.rs similarity index 100% rename from src/test/ui/intrinsics/issue-28575.rs rename to tests/ui/intrinsics/issue-28575.rs diff --git a/src/test/ui/intrinsics/issue-28575.thir.stderr b/tests/ui/intrinsics/issue-28575.thir.stderr similarity index 100% rename from src/test/ui/intrinsics/issue-28575.thir.stderr rename to tests/ui/intrinsics/issue-28575.thir.stderr diff --git a/src/test/ui/intrinsics/issue-84297-reifying-copy.rs b/tests/ui/intrinsics/issue-84297-reifying-copy.rs similarity index 100% rename from src/test/ui/intrinsics/issue-84297-reifying-copy.rs rename to tests/ui/intrinsics/issue-84297-reifying-copy.rs diff --git a/src/test/ui/intrinsics/non-integer-atomic.rs b/tests/ui/intrinsics/non-integer-atomic.rs similarity index 100% rename from src/test/ui/intrinsics/non-integer-atomic.rs rename to tests/ui/intrinsics/non-integer-atomic.rs diff --git a/src/test/ui/intrinsics/non-integer-atomic.stderr b/tests/ui/intrinsics/non-integer-atomic.stderr similarity index 100% rename from src/test/ui/intrinsics/non-integer-atomic.stderr rename to tests/ui/intrinsics/non-integer-atomic.stderr diff --git a/src/test/ui/intrinsics/panic-uninitialized-zeroed.rs b/tests/ui/intrinsics/panic-uninitialized-zeroed.rs similarity index 100% rename from src/test/ui/intrinsics/panic-uninitialized-zeroed.rs rename to tests/ui/intrinsics/panic-uninitialized-zeroed.rs diff --git a/src/test/ui/intrinsics/safe-intrinsic-mismatch.rs b/tests/ui/intrinsics/safe-intrinsic-mismatch.rs similarity index 100% rename from src/test/ui/intrinsics/safe-intrinsic-mismatch.rs rename to tests/ui/intrinsics/safe-intrinsic-mismatch.rs diff --git a/src/test/ui/intrinsics/safe-intrinsic-mismatch.stderr b/tests/ui/intrinsics/safe-intrinsic-mismatch.stderr similarity index 100% rename from src/test/ui/intrinsics/safe-intrinsic-mismatch.stderr rename to tests/ui/intrinsics/safe-intrinsic-mismatch.stderr diff --git a/src/test/ui/intrinsics/unchecked_math_unsafe.mir.stderr b/tests/ui/intrinsics/unchecked_math_unsafe.mir.stderr similarity index 100% rename from src/test/ui/intrinsics/unchecked_math_unsafe.mir.stderr rename to tests/ui/intrinsics/unchecked_math_unsafe.mir.stderr diff --git a/src/test/ui/intrinsics/unchecked_math_unsafe.rs b/tests/ui/intrinsics/unchecked_math_unsafe.rs similarity index 100% rename from src/test/ui/intrinsics/unchecked_math_unsafe.rs rename to tests/ui/intrinsics/unchecked_math_unsafe.rs diff --git a/src/test/ui/intrinsics/unchecked_math_unsafe.thir.stderr b/tests/ui/intrinsics/unchecked_math_unsafe.thir.stderr similarity index 100% rename from src/test/ui/intrinsics/unchecked_math_unsafe.thir.stderr rename to tests/ui/intrinsics/unchecked_math_unsafe.thir.stderr diff --git a/src/test/ui/intrinsics/unchecked_math_unstable.rs b/tests/ui/intrinsics/unchecked_math_unstable.rs similarity index 100% rename from src/test/ui/intrinsics/unchecked_math_unstable.rs rename to tests/ui/intrinsics/unchecked_math_unstable.rs diff --git a/src/test/ui/intrinsics/unchecked_math_unstable.stderr b/tests/ui/intrinsics/unchecked_math_unstable.stderr similarity index 100% rename from src/test/ui/intrinsics/unchecked_math_unstable.stderr rename to tests/ui/intrinsics/unchecked_math_unstable.stderr diff --git a/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGS.stderr b/tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGS.stderr similarity index 100% rename from src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGS.stderr rename to tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADFLAGS.stderr diff --git a/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADTARGET.stderr b/tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADTARGET.stderr similarity index 100% rename from src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADTARGET.stderr rename to tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.BADTARGET.stderr diff --git a/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs b/tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs similarity index 100% rename from src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs rename to tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs diff --git a/src/test/ui/invalid-compile-flags/codegen-option-without-group.rs b/tests/ui/invalid-compile-flags/codegen-option-without-group.rs similarity index 100% rename from src/test/ui/invalid-compile-flags/codegen-option-without-group.rs rename to tests/ui/invalid-compile-flags/codegen-option-without-group.rs diff --git a/src/test/ui/invalid-compile-flags/codegen-option-without-group.stderr b/tests/ui/invalid-compile-flags/codegen-option-without-group.stderr similarity index 100% rename from src/test/ui/invalid-compile-flags/codegen-option-without-group.stderr rename to tests/ui/invalid-compile-flags/codegen-option-without-group.stderr diff --git a/src/test/ui/invalid-compile-flags/debug-option-without-group.rs b/tests/ui/invalid-compile-flags/debug-option-without-group.rs similarity index 100% rename from src/test/ui/invalid-compile-flags/debug-option-without-group.rs rename to tests/ui/invalid-compile-flags/debug-option-without-group.rs diff --git a/src/test/ui/invalid-compile-flags/debug-option-without-group.stderr b/tests/ui/invalid-compile-flags/debug-option-without-group.stderr similarity index 100% rename from src/test/ui/invalid-compile-flags/debug-option-without-group.stderr rename to tests/ui/invalid-compile-flags/debug-option-without-group.stderr diff --git a/src/test/ui/invalid-module-declaration/auxiliary/foo/bar.rs b/tests/ui/invalid-module-declaration/auxiliary/foo/bar.rs similarity index 100% rename from src/test/ui/invalid-module-declaration/auxiliary/foo/bar.rs rename to tests/ui/invalid-module-declaration/auxiliary/foo/bar.rs diff --git a/src/test/ui/invalid-module-declaration/auxiliary/foo/mod.rs b/tests/ui/invalid-module-declaration/auxiliary/foo/mod.rs similarity index 100% rename from src/test/ui/invalid-module-declaration/auxiliary/foo/mod.rs rename to tests/ui/invalid-module-declaration/auxiliary/foo/mod.rs diff --git a/src/test/ui/invalid-module-declaration/invalid-module-declaration.rs b/tests/ui/invalid-module-declaration/invalid-module-declaration.rs similarity index 100% rename from src/test/ui/invalid-module-declaration/invalid-module-declaration.rs rename to tests/ui/invalid-module-declaration/invalid-module-declaration.rs diff --git a/src/test/ui/invalid-module-declaration/invalid-module-declaration.stderr b/tests/ui/invalid-module-declaration/invalid-module-declaration.stderr similarity index 100% rename from src/test/ui/invalid-module-declaration/invalid-module-declaration.stderr rename to tests/ui/invalid-module-declaration/invalid-module-declaration.stderr diff --git a/src/test/ui/invalid-self-argument/bare-fn-start.rs b/tests/ui/invalid-self-argument/bare-fn-start.rs similarity index 100% rename from src/test/ui/invalid-self-argument/bare-fn-start.rs rename to tests/ui/invalid-self-argument/bare-fn-start.rs diff --git a/src/test/ui/invalid-self-argument/bare-fn-start.stderr b/tests/ui/invalid-self-argument/bare-fn-start.stderr similarity index 100% rename from src/test/ui/invalid-self-argument/bare-fn-start.stderr rename to tests/ui/invalid-self-argument/bare-fn-start.stderr diff --git a/src/test/ui/invalid-self-argument/bare-fn.rs b/tests/ui/invalid-self-argument/bare-fn.rs similarity index 100% rename from src/test/ui/invalid-self-argument/bare-fn.rs rename to tests/ui/invalid-self-argument/bare-fn.rs diff --git a/src/test/ui/invalid-self-argument/bare-fn.stderr b/tests/ui/invalid-self-argument/bare-fn.stderr similarity index 100% rename from src/test/ui/invalid-self-argument/bare-fn.stderr rename to tests/ui/invalid-self-argument/bare-fn.stderr diff --git a/src/test/ui/invalid-self-argument/trait-fn.rs b/tests/ui/invalid-self-argument/trait-fn.rs similarity index 100% rename from src/test/ui/invalid-self-argument/trait-fn.rs rename to tests/ui/invalid-self-argument/trait-fn.rs diff --git a/src/test/ui/invalid-self-argument/trait-fn.stderr b/tests/ui/invalid-self-argument/trait-fn.stderr similarity index 100% rename from src/test/ui/invalid-self-argument/trait-fn.stderr rename to tests/ui/invalid-self-argument/trait-fn.stderr diff --git a/src/test/ui/invalid/invalid-crate-type-macro.rs b/tests/ui/invalid/invalid-crate-type-macro.rs similarity index 100% rename from src/test/ui/invalid/invalid-crate-type-macro.rs rename to tests/ui/invalid/invalid-crate-type-macro.rs diff --git a/src/test/ui/invalid/invalid-crate-type-macro.stderr b/tests/ui/invalid/invalid-crate-type-macro.stderr similarity index 100% rename from src/test/ui/invalid/invalid-crate-type-macro.stderr rename to tests/ui/invalid/invalid-crate-type-macro.stderr diff --git a/src/test/ui/invalid/invalid-crate-type.rs b/tests/ui/invalid/invalid-crate-type.rs similarity index 100% rename from src/test/ui/invalid/invalid-crate-type.rs rename to tests/ui/invalid/invalid-crate-type.rs diff --git a/src/test/ui/invalid/invalid-crate-type.stderr b/tests/ui/invalid/invalid-crate-type.stderr similarity index 100% rename from src/test/ui/invalid/invalid-crate-type.stderr rename to tests/ui/invalid/invalid-crate-type.stderr diff --git a/src/test/ui/invalid/invalid-debugger-visualizer-option.rs b/tests/ui/invalid/invalid-debugger-visualizer-option.rs similarity index 100% rename from src/test/ui/invalid/invalid-debugger-visualizer-option.rs rename to tests/ui/invalid/invalid-debugger-visualizer-option.rs diff --git a/src/test/ui/invalid/invalid-debugger-visualizer-option.stderr b/tests/ui/invalid/invalid-debugger-visualizer-option.stderr similarity index 100% rename from src/test/ui/invalid/invalid-debugger-visualizer-option.stderr rename to tests/ui/invalid/invalid-debugger-visualizer-option.stderr diff --git a/src/test/ui/invalid/invalid-debugger-visualizer-target.rs b/tests/ui/invalid/invalid-debugger-visualizer-target.rs similarity index 100% rename from src/test/ui/invalid/invalid-debugger-visualizer-target.rs rename to tests/ui/invalid/invalid-debugger-visualizer-target.rs diff --git a/src/test/ui/invalid/invalid-debugger-visualizer-target.stderr b/tests/ui/invalid/invalid-debugger-visualizer-target.stderr similarity index 100% rename from src/test/ui/invalid/invalid-debugger-visualizer-target.stderr rename to tests/ui/invalid/invalid-debugger-visualizer-target.stderr diff --git a/src/test/ui/invalid/invalid-inline.rs b/tests/ui/invalid/invalid-inline.rs similarity index 100% rename from src/test/ui/invalid/invalid-inline.rs rename to tests/ui/invalid/invalid-inline.rs diff --git a/src/test/ui/invalid/invalid-inline.stderr b/tests/ui/invalid/invalid-inline.stderr similarity index 100% rename from src/test/ui/invalid/invalid-inline.stderr rename to tests/ui/invalid/invalid-inline.stderr diff --git a/src/test/ui/invalid/invalid-llvm-passes.rs b/tests/ui/invalid/invalid-llvm-passes.rs similarity index 100% rename from src/test/ui/invalid/invalid-llvm-passes.rs rename to tests/ui/invalid/invalid-llvm-passes.rs diff --git a/src/test/ui/invalid/invalid-llvm-passes.stderr b/tests/ui/invalid/invalid-llvm-passes.stderr similarity index 100% rename from src/test/ui/invalid/invalid-llvm-passes.stderr rename to tests/ui/invalid/invalid-llvm-passes.stderr diff --git a/src/test/ui/invalid/invalid-macro-matcher.rs b/tests/ui/invalid/invalid-macro-matcher.rs similarity index 100% rename from src/test/ui/invalid/invalid-macro-matcher.rs rename to tests/ui/invalid/invalid-macro-matcher.rs diff --git a/src/test/ui/invalid/invalid-macro-matcher.stderr b/tests/ui/invalid/invalid-macro-matcher.stderr similarity index 100% rename from src/test/ui/invalid/invalid-macro-matcher.stderr rename to tests/ui/invalid/invalid-macro-matcher.stderr diff --git a/src/test/ui/invalid/invalid-no-sanitize.rs b/tests/ui/invalid/invalid-no-sanitize.rs similarity index 100% rename from src/test/ui/invalid/invalid-no-sanitize.rs rename to tests/ui/invalid/invalid-no-sanitize.rs diff --git a/src/test/ui/invalid/invalid-no-sanitize.stderr b/tests/ui/invalid/invalid-no-sanitize.stderr similarity index 100% rename from src/test/ui/invalid/invalid-no-sanitize.stderr rename to tests/ui/invalid/invalid-no-sanitize.stderr diff --git a/src/test/ui/invalid/invalid-path-in-const.rs b/tests/ui/invalid/invalid-path-in-const.rs similarity index 100% rename from src/test/ui/invalid/invalid-path-in-const.rs rename to tests/ui/invalid/invalid-path-in-const.rs diff --git a/src/test/ui/invalid/invalid-path-in-const.stderr b/tests/ui/invalid/invalid-path-in-const.stderr similarity index 100% rename from src/test/ui/invalid/invalid-path-in-const.stderr rename to tests/ui/invalid/invalid-path-in-const.stderr diff --git a/src/test/ui/invalid/invalid-plugin-attr.rs b/tests/ui/invalid/invalid-plugin-attr.rs similarity index 100% rename from src/test/ui/invalid/invalid-plugin-attr.rs rename to tests/ui/invalid/invalid-plugin-attr.rs diff --git a/src/test/ui/invalid/invalid-plugin-attr.stderr b/tests/ui/invalid/invalid-plugin-attr.stderr similarity index 100% rename from src/test/ui/invalid/invalid-plugin-attr.stderr rename to tests/ui/invalid/invalid-plugin-attr.stderr diff --git a/src/test/ui/invalid/invalid-rustc_legacy_const_generics-arguments.rs b/tests/ui/invalid/invalid-rustc_legacy_const_generics-arguments.rs similarity index 100% rename from src/test/ui/invalid/invalid-rustc_legacy_const_generics-arguments.rs rename to tests/ui/invalid/invalid-rustc_legacy_const_generics-arguments.rs diff --git a/src/test/ui/invalid/invalid-rustc_legacy_const_generics-arguments.stderr b/tests/ui/invalid/invalid-rustc_legacy_const_generics-arguments.stderr similarity index 100% rename from src/test/ui/invalid/invalid-rustc_legacy_const_generics-arguments.stderr rename to tests/ui/invalid/invalid-rustc_legacy_const_generics-arguments.stderr diff --git a/src/test/ui/invalid/invalid_rustc_layout_scalar_valid_range.rs b/tests/ui/invalid/invalid_rustc_layout_scalar_valid_range.rs similarity index 100% rename from src/test/ui/invalid/invalid_rustc_layout_scalar_valid_range.rs rename to tests/ui/invalid/invalid_rustc_layout_scalar_valid_range.rs diff --git a/src/test/ui/invalid/invalid_rustc_layout_scalar_valid_range.stderr b/tests/ui/invalid/invalid_rustc_layout_scalar_valid_range.stderr similarity index 100% rename from src/test/ui/invalid/invalid_rustc_layout_scalar_valid_range.stderr rename to tests/ui/invalid/invalid_rustc_layout_scalar_valid_range.stderr diff --git a/src/test/ui/invalid_crate_type_syntax.rs b/tests/ui/invalid_crate_type_syntax.rs similarity index 100% rename from src/test/ui/invalid_crate_type_syntax.rs rename to tests/ui/invalid_crate_type_syntax.rs diff --git a/src/test/ui/invalid_crate_type_syntax.stderr b/tests/ui/invalid_crate_type_syntax.stderr similarity index 100% rename from src/test/ui/invalid_crate_type_syntax.stderr rename to tests/ui/invalid_crate_type_syntax.stderr diff --git a/src/test/ui/invalid_dispatch_from_dyn_impls.rs b/tests/ui/invalid_dispatch_from_dyn_impls.rs similarity index 100% rename from src/test/ui/invalid_dispatch_from_dyn_impls.rs rename to tests/ui/invalid_dispatch_from_dyn_impls.rs diff --git a/src/test/ui/invalid_dispatch_from_dyn_impls.stderr b/tests/ui/invalid_dispatch_from_dyn_impls.stderr similarity index 100% rename from src/test/ui/invalid_dispatch_from_dyn_impls.stderr rename to tests/ui/invalid_dispatch_from_dyn_impls.stderr diff --git a/src/test/ui/issue-76387-llvm-miscompile.rs b/tests/ui/issue-76387-llvm-miscompile.rs similarity index 100% rename from src/test/ui/issue-76387-llvm-miscompile.rs rename to tests/ui/issue-76387-llvm-miscompile.rs diff --git a/src/test/ui/issue-94866.rs b/tests/ui/issue-94866.rs similarity index 100% rename from src/test/ui/issue-94866.rs rename to tests/ui/issue-94866.rs diff --git a/src/test/ui/issue-94866.stderr b/tests/ui/issue-94866.stderr similarity index 100% rename from src/test/ui/issue-94866.stderr rename to tests/ui/issue-94866.stderr diff --git a/src/test/ui/issues-71798.rs b/tests/ui/issues-71798.rs similarity index 100% rename from src/test/ui/issues-71798.rs rename to tests/ui/issues-71798.rs diff --git a/src/test/ui/issues-71798.stderr b/tests/ui/issues-71798.stderr similarity index 100% rename from src/test/ui/issues-71798.stderr rename to tests/ui/issues-71798.stderr diff --git a/src/test/ui/issues/.gitattributes b/tests/ui/issues/.gitattributes similarity index 100% rename from src/test/ui/issues/.gitattributes rename to tests/ui/issues/.gitattributes diff --git a/src/test/ui/issues/auxiliary/cgu_test.rs b/tests/ui/issues/auxiliary/cgu_test.rs similarity index 100% rename from src/test/ui/issues/auxiliary/cgu_test.rs rename to tests/ui/issues/auxiliary/cgu_test.rs diff --git a/src/test/ui/issues/auxiliary/cgu_test_a.rs b/tests/ui/issues/auxiliary/cgu_test_a.rs similarity index 100% rename from src/test/ui/issues/auxiliary/cgu_test_a.rs rename to tests/ui/issues/auxiliary/cgu_test_a.rs diff --git a/src/test/ui/issues/auxiliary/cgu_test_b.rs b/tests/ui/issues/auxiliary/cgu_test_b.rs similarity index 100% rename from src/test/ui/issues/auxiliary/cgu_test_b.rs rename to tests/ui/issues/auxiliary/cgu_test_b.rs diff --git a/src/test/ui/issues/auxiliary/i8.rs b/tests/ui/issues/auxiliary/i8.rs similarity index 100% rename from src/test/ui/issues/auxiliary/i8.rs rename to tests/ui/issues/auxiliary/i8.rs diff --git a/src/test/ui/issues/auxiliary/iss.rs b/tests/ui/issues/auxiliary/iss.rs similarity index 100% rename from src/test/ui/issues/auxiliary/iss.rs rename to tests/ui/issues/auxiliary/iss.rs diff --git a/src/test/ui/issues/auxiliary/issue-11224.rs b/tests/ui/issues/auxiliary/issue-11224.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-11224.rs rename to tests/ui/issues/auxiliary/issue-11224.rs diff --git a/src/test/ui/issues/auxiliary/issue-11508.rs b/tests/ui/issues/auxiliary/issue-11508.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-11508.rs rename to tests/ui/issues/auxiliary/issue-11508.rs diff --git a/src/test/ui/issues/auxiliary/issue-11529.rs b/tests/ui/issues/auxiliary/issue-11529.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-11529.rs rename to tests/ui/issues/auxiliary/issue-11529.rs diff --git a/src/test/ui/issues/auxiliary/issue-11680.rs b/tests/ui/issues/auxiliary/issue-11680.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-11680.rs rename to tests/ui/issues/auxiliary/issue-11680.rs diff --git a/src/test/ui/issues/auxiliary/issue-12133-dylib.rs b/tests/ui/issues/auxiliary/issue-12133-dylib.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-12133-dylib.rs rename to tests/ui/issues/auxiliary/issue-12133-dylib.rs diff --git a/src/test/ui/issues/auxiliary/issue-12133-dylib2.rs b/tests/ui/issues/auxiliary/issue-12133-dylib2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-12133-dylib2.rs rename to tests/ui/issues/auxiliary/issue-12133-dylib2.rs diff --git a/src/test/ui/issues/auxiliary/issue-12133-rlib.rs b/tests/ui/issues/auxiliary/issue-12133-rlib.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-12133-rlib.rs rename to tests/ui/issues/auxiliary/issue-12133-rlib.rs diff --git a/src/test/ui/issues/auxiliary/issue-12612-1.rs b/tests/ui/issues/auxiliary/issue-12612-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-12612-1.rs rename to tests/ui/issues/auxiliary/issue-12612-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-12612-2.rs b/tests/ui/issues/auxiliary/issue-12612-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-12612-2.rs rename to tests/ui/issues/auxiliary/issue-12612-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-12660-aux.rs b/tests/ui/issues/auxiliary/issue-12660-aux.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-12660-aux.rs rename to tests/ui/issues/auxiliary/issue-12660-aux.rs diff --git a/src/test/ui/issues/auxiliary/issue-13507.rs b/tests/ui/issues/auxiliary/issue-13507.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-13507.rs rename to tests/ui/issues/auxiliary/issue-13507.rs diff --git a/src/test/ui/issues/auxiliary/issue-13620-1.rs b/tests/ui/issues/auxiliary/issue-13620-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-13620-1.rs rename to tests/ui/issues/auxiliary/issue-13620-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-13620-2.rs b/tests/ui/issues/auxiliary/issue-13620-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-13620-2.rs rename to tests/ui/issues/auxiliary/issue-13620-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-13872-1.rs b/tests/ui/issues/auxiliary/issue-13872-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-13872-1.rs rename to tests/ui/issues/auxiliary/issue-13872-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-13872-2.rs b/tests/ui/issues/auxiliary/issue-13872-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-13872-2.rs rename to tests/ui/issues/auxiliary/issue-13872-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-13872-3.rs b/tests/ui/issues/auxiliary/issue-13872-3.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-13872-3.rs rename to tests/ui/issues/auxiliary/issue-13872-3.rs diff --git a/src/test/ui/issues/auxiliary/issue-14344-1.rs b/tests/ui/issues/auxiliary/issue-14344-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-14344-1.rs rename to tests/ui/issues/auxiliary/issue-14344-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-14344-2.rs b/tests/ui/issues/auxiliary/issue-14344-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-14344-2.rs rename to tests/ui/issues/auxiliary/issue-14344-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-14421.rs b/tests/ui/issues/auxiliary/issue-14421.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-14421.rs rename to tests/ui/issues/auxiliary/issue-14421.rs diff --git a/src/test/ui/issues/auxiliary/issue-14422.rs b/tests/ui/issues/auxiliary/issue-14422.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-14422.rs rename to tests/ui/issues/auxiliary/issue-14422.rs diff --git a/src/test/ui/issues/auxiliary/issue-15562.rs b/tests/ui/issues/auxiliary/issue-15562.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-15562.rs rename to tests/ui/issues/auxiliary/issue-15562.rs diff --git a/src/test/ui/issues/auxiliary/issue-16643.rs b/tests/ui/issues/auxiliary/issue-16643.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-16643.rs rename to tests/ui/issues/auxiliary/issue-16643.rs diff --git a/src/test/ui/issues/auxiliary/issue-16725.rs b/tests/ui/issues/auxiliary/issue-16725.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-16725.rs rename to tests/ui/issues/auxiliary/issue-16725.rs diff --git a/src/test/ui/issues/auxiliary/issue-17662.rs b/tests/ui/issues/auxiliary/issue-17662.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-17662.rs rename to tests/ui/issues/auxiliary/issue-17662.rs diff --git a/src/test/ui/issues/auxiliary/issue-18501.rs b/tests/ui/issues/auxiliary/issue-18501.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-18501.rs rename to tests/ui/issues/auxiliary/issue-18501.rs diff --git a/src/test/ui/issues/auxiliary/issue-18514.rs b/tests/ui/issues/auxiliary/issue-18514.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-18514.rs rename to tests/ui/issues/auxiliary/issue-18514.rs diff --git a/src/test/ui/issues/auxiliary/issue-18711.rs b/tests/ui/issues/auxiliary/issue-18711.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-18711.rs rename to tests/ui/issues/auxiliary/issue-18711.rs diff --git a/src/test/ui/issues/auxiliary/issue-18913-1.rs b/tests/ui/issues/auxiliary/issue-18913-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-18913-1.rs rename to tests/ui/issues/auxiliary/issue-18913-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-18913-2.rs b/tests/ui/issues/auxiliary/issue-18913-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-18913-2.rs rename to tests/ui/issues/auxiliary/issue-18913-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-1920.rs b/tests/ui/issues/auxiliary/issue-1920.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-1920.rs rename to tests/ui/issues/auxiliary/issue-1920.rs diff --git a/src/test/ui/issues/auxiliary/issue-19293.rs b/tests/ui/issues/auxiliary/issue-19293.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-19293.rs rename to tests/ui/issues/auxiliary/issue-19293.rs diff --git a/src/test/ui/issues/auxiliary/issue-19340-1.rs b/tests/ui/issues/auxiliary/issue-19340-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-19340-1.rs rename to tests/ui/issues/auxiliary/issue-19340-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-20389.rs b/tests/ui/issues/auxiliary/issue-20389.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-20389.rs rename to tests/ui/issues/auxiliary/issue-20389.rs diff --git a/src/test/ui/issues/auxiliary/issue-21202.rs b/tests/ui/issues/auxiliary/issue-21202.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-21202.rs rename to tests/ui/issues/auxiliary/issue-21202.rs diff --git a/src/test/ui/issues/auxiliary/issue-2170-lib.rs b/tests/ui/issues/auxiliary/issue-2170-lib.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2170-lib.rs rename to tests/ui/issues/auxiliary/issue-2170-lib.rs diff --git a/src/test/ui/issues/auxiliary/issue-2316-a.rs b/tests/ui/issues/auxiliary/issue-2316-a.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2316-a.rs rename to tests/ui/issues/auxiliary/issue-2316-a.rs diff --git a/src/test/ui/issues/auxiliary/issue-2316-b.rs b/tests/ui/issues/auxiliary/issue-2316-b.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2316-b.rs rename to tests/ui/issues/auxiliary/issue-2316-b.rs diff --git a/src/test/ui/issues/auxiliary/issue-2380.rs b/tests/ui/issues/auxiliary/issue-2380.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2380.rs rename to tests/ui/issues/auxiliary/issue-2380.rs diff --git a/src/test/ui/issues/auxiliary/issue-2414-a.rs b/tests/ui/issues/auxiliary/issue-2414-a.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2414-a.rs rename to tests/ui/issues/auxiliary/issue-2414-a.rs diff --git a/src/test/ui/issues/auxiliary/issue-2414-b.rs b/tests/ui/issues/auxiliary/issue-2414-b.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2414-b.rs rename to tests/ui/issues/auxiliary/issue-2414-b.rs diff --git a/src/test/ui/issues/auxiliary/issue-2472-b.rs b/tests/ui/issues/auxiliary/issue-2472-b.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2472-b.rs rename to tests/ui/issues/auxiliary/issue-2472-b.rs diff --git a/src/test/ui/issues/auxiliary/issue-25185-1.rs b/tests/ui/issues/auxiliary/issue-25185-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-25185-1.rs rename to tests/ui/issues/auxiliary/issue-25185-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-25185-2.rs b/tests/ui/issues/auxiliary/issue-25185-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-25185-2.rs rename to tests/ui/issues/auxiliary/issue-25185-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-2526.rs b/tests/ui/issues/auxiliary/issue-2526.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2526.rs rename to tests/ui/issues/auxiliary/issue-2526.rs diff --git a/src/test/ui/issues/auxiliary/issue-25467.rs b/tests/ui/issues/auxiliary/issue-25467.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-25467.rs rename to tests/ui/issues/auxiliary/issue-25467.rs diff --git a/src/test/ui/issues/auxiliary/issue-2631-a.rs b/tests/ui/issues/auxiliary/issue-2631-a.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2631-a.rs rename to tests/ui/issues/auxiliary/issue-2631-a.rs diff --git a/src/test/ui/issues/auxiliary/issue-2723-a.rs b/tests/ui/issues/auxiliary/issue-2723-a.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-2723-a.rs rename to tests/ui/issues/auxiliary/issue-2723-a.rs diff --git a/src/test/ui/issues/auxiliary/issue-29181.rs b/tests/ui/issues/auxiliary/issue-29181.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-29181.rs rename to tests/ui/issues/auxiliary/issue-29181.rs diff --git a/src/test/ui/issues/auxiliary/issue-29265.rs b/tests/ui/issues/auxiliary/issue-29265.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-29265.rs rename to tests/ui/issues/auxiliary/issue-29265.rs diff --git a/src/test/ui/issues/auxiliary/issue-29485.rs b/tests/ui/issues/auxiliary/issue-29485.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-29485.rs rename to tests/ui/issues/auxiliary/issue-29485.rs diff --git a/src/test/ui/issues/auxiliary/issue-3012-1.rs b/tests/ui/issues/auxiliary/issue-3012-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-3012-1.rs rename to tests/ui/issues/auxiliary/issue-3012-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-30123-aux.rs b/tests/ui/issues/auxiliary/issue-30123-aux.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-30123-aux.rs rename to tests/ui/issues/auxiliary/issue-30123-aux.rs diff --git a/src/test/ui/issues/auxiliary/issue-3136-a.rc b/tests/ui/issues/auxiliary/issue-3136-a.rc similarity index 100% rename from src/test/ui/issues/auxiliary/issue-3136-a.rc rename to tests/ui/issues/auxiliary/issue-3136-a.rc diff --git a/src/test/ui/issues/auxiliary/issue-3136-a.rs b/tests/ui/issues/auxiliary/issue-3136-a.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-3136-a.rs rename to tests/ui/issues/auxiliary/issue-3136-a.rs diff --git a/src/test/ui/issues/auxiliary/issue-31702-1.rs b/tests/ui/issues/auxiliary/issue-31702-1.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-31702-1.rs rename to tests/ui/issues/auxiliary/issue-31702-1.rs diff --git a/src/test/ui/issues/auxiliary/issue-31702-2.rs b/tests/ui/issues/auxiliary/issue-31702-2.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-31702-2.rs rename to tests/ui/issues/auxiliary/issue-31702-2.rs diff --git a/src/test/ui/issues/auxiliary/issue-34796-aux.rs b/tests/ui/issues/auxiliary/issue-34796-aux.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-34796-aux.rs rename to tests/ui/issues/auxiliary/issue-34796-aux.rs diff --git a/src/test/ui/issues/auxiliary/issue-36954.rs b/tests/ui/issues/auxiliary/issue-36954.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-36954.rs rename to tests/ui/issues/auxiliary/issue-36954.rs diff --git a/src/test/ui/issues/auxiliary/issue-38190.rs b/tests/ui/issues/auxiliary/issue-38190.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-38190.rs rename to tests/ui/issues/auxiliary/issue-38190.rs diff --git a/src/test/ui/issues/auxiliary/issue-38226-aux.rs b/tests/ui/issues/auxiliary/issue-38226-aux.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-38226-aux.rs rename to tests/ui/issues/auxiliary/issue-38226-aux.rs diff --git a/src/test/ui/issues/auxiliary/issue-3979-traits.rs b/tests/ui/issues/auxiliary/issue-3979-traits.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-3979-traits.rs rename to tests/ui/issues/auxiliary/issue-3979-traits.rs diff --git a/src/test/ui/issues/auxiliary/issue-41053.rs b/tests/ui/issues/auxiliary/issue-41053.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-41053.rs rename to tests/ui/issues/auxiliary/issue-41053.rs diff --git a/src/test/ui/issues/auxiliary/issue-41394.rs b/tests/ui/issues/auxiliary/issue-41394.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-41394.rs rename to tests/ui/issues/auxiliary/issue-41394.rs diff --git a/src/test/ui/issues/auxiliary/issue-41549.rs b/tests/ui/issues/auxiliary/issue-41549.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-41549.rs rename to tests/ui/issues/auxiliary/issue-41549.rs diff --git a/src/test/ui/issues/auxiliary/issue-42007-s.rs b/tests/ui/issues/auxiliary/issue-42007-s.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-42007-s.rs rename to tests/ui/issues/auxiliary/issue-42007-s.rs diff --git a/src/test/ui/issues/auxiliary/issue-4208-cc.rs b/tests/ui/issues/auxiliary/issue-4208-cc.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-4208-cc.rs rename to tests/ui/issues/auxiliary/issue-4208-cc.rs diff --git a/src/test/ui/issues/auxiliary/issue-4545.rs b/tests/ui/issues/auxiliary/issue-4545.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-4545.rs rename to tests/ui/issues/auxiliary/issue-4545.rs diff --git a/src/test/ui/issues/auxiliary/issue-48984-aux.rs b/tests/ui/issues/auxiliary/issue-48984-aux.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-48984-aux.rs rename to tests/ui/issues/auxiliary/issue-48984-aux.rs diff --git a/src/test/ui/issues/auxiliary/issue-49544.rs b/tests/ui/issues/auxiliary/issue-49544.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-49544.rs rename to tests/ui/issues/auxiliary/issue-49544.rs diff --git a/src/test/ui/issues/auxiliary/issue-51798.rs b/tests/ui/issues/auxiliary/issue-51798.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-51798.rs rename to tests/ui/issues/auxiliary/issue-51798.rs diff --git a/src/test/ui/issues/auxiliary/issue-52489.rs b/tests/ui/issues/auxiliary/issue-52489.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-52489.rs rename to tests/ui/issues/auxiliary/issue-52489.rs diff --git a/src/test/ui/issues/auxiliary/issue-5518.rs b/tests/ui/issues/auxiliary/issue-5518.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-5518.rs rename to tests/ui/issues/auxiliary/issue-5518.rs diff --git a/src/test/ui/issues/auxiliary/issue-5521.rs b/tests/ui/issues/auxiliary/issue-5521.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-5521.rs rename to tests/ui/issues/auxiliary/issue-5521.rs diff --git a/src/test/ui/issues/auxiliary/issue-56943.rs b/tests/ui/issues/auxiliary/issue-56943.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-56943.rs rename to tests/ui/issues/auxiliary/issue-56943.rs diff --git a/src/test/ui/issues/auxiliary/issue-57271-lib.rs b/tests/ui/issues/auxiliary/issue-57271-lib.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-57271-lib.rs rename to tests/ui/issues/auxiliary/issue-57271-lib.rs diff --git a/src/test/ui/issues/auxiliary/issue-5844-aux.rs b/tests/ui/issues/auxiliary/issue-5844-aux.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-5844-aux.rs rename to tests/ui/issues/auxiliary/issue-5844-aux.rs diff --git a/src/test/ui/issues/auxiliary/issue-7178.rs b/tests/ui/issues/auxiliary/issue-7178.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-7178.rs rename to tests/ui/issues/auxiliary/issue-7178.rs diff --git a/src/test/ui/issues/auxiliary/issue-73112.rs b/tests/ui/issues/auxiliary/issue-73112.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-73112.rs rename to tests/ui/issues/auxiliary/issue-73112.rs diff --git a/src/test/ui/issues/auxiliary/issue-7899.rs b/tests/ui/issues/auxiliary/issue-7899.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-7899.rs rename to tests/ui/issues/auxiliary/issue-7899.rs diff --git a/src/test/ui/issues/auxiliary/issue-8044.rs b/tests/ui/issues/auxiliary/issue-8044.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-8044.rs rename to tests/ui/issues/auxiliary/issue-8044.rs diff --git a/src/test/ui/issues/auxiliary/issue-8259.rs b/tests/ui/issues/auxiliary/issue-8259.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-8259.rs rename to tests/ui/issues/auxiliary/issue-8259.rs diff --git a/src/test/ui/issues/auxiliary/issue-8401.rs b/tests/ui/issues/auxiliary/issue-8401.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-8401.rs rename to tests/ui/issues/auxiliary/issue-8401.rs diff --git a/src/test/ui/issues/auxiliary/issue-9123.rs b/tests/ui/issues/auxiliary/issue-9123.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-9123.rs rename to tests/ui/issues/auxiliary/issue-9123.rs diff --git a/src/test/ui/issues/auxiliary/issue-9155.rs b/tests/ui/issues/auxiliary/issue-9155.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-9155.rs rename to tests/ui/issues/auxiliary/issue-9155.rs diff --git a/src/test/ui/issues/auxiliary/issue-9188.rs b/tests/ui/issues/auxiliary/issue-9188.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-9188.rs rename to tests/ui/issues/auxiliary/issue-9188.rs diff --git a/src/test/ui/issues/auxiliary/issue-9906.rs b/tests/ui/issues/auxiliary/issue-9906.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-9906.rs rename to tests/ui/issues/auxiliary/issue-9906.rs diff --git a/src/test/ui/issues/auxiliary/issue-9968.rs b/tests/ui/issues/auxiliary/issue-9968.rs similarity index 100% rename from src/test/ui/issues/auxiliary/issue-9968.rs rename to tests/ui/issues/auxiliary/issue-9968.rs diff --git a/src/test/ui/issues/auxiliary/private-trait-xc.rs b/tests/ui/issues/auxiliary/private-trait-xc.rs similarity index 100% rename from src/test/ui/issues/auxiliary/private-trait-xc.rs rename to tests/ui/issues/auxiliary/private-trait-xc.rs diff --git a/src/test/ui/issues/auxiliary/reexported-trait.rs b/tests/ui/issues/auxiliary/reexported-trait.rs similarity index 100% rename from src/test/ui/issues/auxiliary/reexported-trait.rs rename to tests/ui/issues/auxiliary/reexported-trait.rs diff --git a/src/test/ui/issues/issue-100605.rs b/tests/ui/issues/issue-100605.rs similarity index 100% rename from src/test/ui/issues/issue-100605.rs rename to tests/ui/issues/issue-100605.rs diff --git a/src/test/ui/issues/issue-100605.stderr b/tests/ui/issues/issue-100605.stderr similarity index 100% rename from src/test/ui/issues/issue-100605.stderr rename to tests/ui/issues/issue-100605.stderr diff --git a/src/test/ui/issues/issue-10228.rs b/tests/ui/issues/issue-10228.rs similarity index 100% rename from src/test/ui/issues/issue-10228.rs rename to tests/ui/issues/issue-10228.rs diff --git a/src/test/ui/issues/issue-10291.rs b/tests/ui/issues/issue-10291.rs similarity index 100% rename from src/test/ui/issues/issue-10291.rs rename to tests/ui/issues/issue-10291.rs diff --git a/src/test/ui/issues/issue-10291.stderr b/tests/ui/issues/issue-10291.stderr similarity index 100% rename from src/test/ui/issues/issue-10291.stderr rename to tests/ui/issues/issue-10291.stderr diff --git a/src/test/ui/issues/issue-102964.rs b/tests/ui/issues/issue-102964.rs similarity index 100% rename from src/test/ui/issues/issue-102964.rs rename to tests/ui/issues/issue-102964.rs diff --git a/src/test/ui/issues/issue-102964.stderr b/tests/ui/issues/issue-102964.stderr similarity index 100% rename from src/test/ui/issues/issue-102964.stderr rename to tests/ui/issues/issue-102964.stderr diff --git a/src/test/ui/issues/issue-10396.rs b/tests/ui/issues/issue-10396.rs similarity index 100% rename from src/test/ui/issues/issue-10396.rs rename to tests/ui/issues/issue-10396.rs diff --git a/src/test/ui/issues/issue-10412.rs b/tests/ui/issues/issue-10412.rs similarity index 100% rename from src/test/ui/issues/issue-10412.rs rename to tests/ui/issues/issue-10412.rs diff --git a/src/test/ui/issues/issue-10412.stderr b/tests/ui/issues/issue-10412.stderr similarity index 100% rename from src/test/ui/issues/issue-10412.stderr rename to tests/ui/issues/issue-10412.stderr diff --git a/src/test/ui/issues/issue-10436.rs b/tests/ui/issues/issue-10436.rs similarity index 100% rename from src/test/ui/issues/issue-10436.rs rename to tests/ui/issues/issue-10436.rs diff --git a/src/test/ui/issues/issue-10456.rs b/tests/ui/issues/issue-10456.rs similarity index 100% rename from src/test/ui/issues/issue-10456.rs rename to tests/ui/issues/issue-10456.rs diff --git a/src/test/ui/issues/issue-10465.rs b/tests/ui/issues/issue-10465.rs similarity index 100% rename from src/test/ui/issues/issue-10465.rs rename to tests/ui/issues/issue-10465.rs diff --git a/src/test/ui/issues/issue-10465.stderr b/tests/ui/issues/issue-10465.stderr similarity index 100% rename from src/test/ui/issues/issue-10465.stderr rename to tests/ui/issues/issue-10465.stderr diff --git a/src/test/ui/issues/issue-10545.rs b/tests/ui/issues/issue-10545.rs similarity index 100% rename from src/test/ui/issues/issue-10545.rs rename to tests/ui/issues/issue-10545.rs diff --git a/src/test/ui/issues/issue-10545.stderr b/tests/ui/issues/issue-10545.stderr similarity index 100% rename from src/test/ui/issues/issue-10545.stderr rename to tests/ui/issues/issue-10545.stderr diff --git a/src/test/ui/issues/issue-10638.rs b/tests/ui/issues/issue-10638.rs similarity index 100% rename from src/test/ui/issues/issue-10638.rs rename to tests/ui/issues/issue-10638.rs diff --git a/src/test/ui/issues/issue-10656.rs b/tests/ui/issues/issue-10656.rs similarity index 100% rename from src/test/ui/issues/issue-10656.rs rename to tests/ui/issues/issue-10656.rs diff --git a/src/test/ui/issues/issue-10656.stderr b/tests/ui/issues/issue-10656.stderr similarity index 100% rename from src/test/ui/issues/issue-10656.stderr rename to tests/ui/issues/issue-10656.stderr diff --git a/src/test/ui/issues/issue-10682.rs b/tests/ui/issues/issue-10682.rs similarity index 100% rename from src/test/ui/issues/issue-10682.rs rename to tests/ui/issues/issue-10682.rs diff --git a/src/test/ui/issues/issue-10683.rs b/tests/ui/issues/issue-10683.rs similarity index 100% rename from src/test/ui/issues/issue-10683.rs rename to tests/ui/issues/issue-10683.rs diff --git a/src/test/ui/issues/issue-10718.rs b/tests/ui/issues/issue-10718.rs similarity index 100% rename from src/test/ui/issues/issue-10718.rs rename to tests/ui/issues/issue-10718.rs diff --git a/src/test/ui/issues/issue-10734.rs b/tests/ui/issues/issue-10734.rs similarity index 100% rename from src/test/ui/issues/issue-10734.rs rename to tests/ui/issues/issue-10734.rs diff --git a/src/test/ui/issues/issue-10764.rs b/tests/ui/issues/issue-10764.rs similarity index 100% rename from src/test/ui/issues/issue-10764.rs rename to tests/ui/issues/issue-10764.rs diff --git a/src/test/ui/issues/issue-10764.stderr b/tests/ui/issues/issue-10764.stderr similarity index 100% rename from src/test/ui/issues/issue-10764.stderr rename to tests/ui/issues/issue-10764.stderr diff --git a/src/test/ui/issues/issue-10767.rs b/tests/ui/issues/issue-10767.rs similarity index 100% rename from src/test/ui/issues/issue-10767.rs rename to tests/ui/issues/issue-10767.rs diff --git a/src/test/ui/issues/issue-10802.rs b/tests/ui/issues/issue-10802.rs similarity index 100% rename from src/test/ui/issues/issue-10802.rs rename to tests/ui/issues/issue-10802.rs diff --git a/src/test/ui/issues/issue-10806.rs b/tests/ui/issues/issue-10806.rs similarity index 100% rename from src/test/ui/issues/issue-10806.rs rename to tests/ui/issues/issue-10806.rs diff --git a/src/test/ui/issues/issue-10853.rs b/tests/ui/issues/issue-10853.rs similarity index 100% rename from src/test/ui/issues/issue-10853.rs rename to tests/ui/issues/issue-10853.rs diff --git a/src/test/ui/issues/issue-10877.rs b/tests/ui/issues/issue-10877.rs similarity index 100% rename from src/test/ui/issues/issue-10877.rs rename to tests/ui/issues/issue-10877.rs diff --git a/src/test/ui/issues/issue-10877.stderr b/tests/ui/issues/issue-10877.stderr similarity index 100% rename from src/test/ui/issues/issue-10877.stderr rename to tests/ui/issues/issue-10877.stderr diff --git a/src/test/ui/issues/issue-10902.rs b/tests/ui/issues/issue-10902.rs similarity index 100% rename from src/test/ui/issues/issue-10902.rs rename to tests/ui/issues/issue-10902.rs diff --git a/src/test/ui/issues/issue-11004.rs b/tests/ui/issues/issue-11004.rs similarity index 100% rename from src/test/ui/issues/issue-11004.rs rename to tests/ui/issues/issue-11004.rs diff --git a/src/test/ui/issues/issue-11004.stderr b/tests/ui/issues/issue-11004.stderr similarity index 100% rename from src/test/ui/issues/issue-11004.stderr rename to tests/ui/issues/issue-11004.stderr diff --git a/src/test/ui/issues/issue-11047.rs b/tests/ui/issues/issue-11047.rs similarity index 100% rename from src/test/ui/issues/issue-11047.rs rename to tests/ui/issues/issue-11047.rs diff --git a/src/test/ui/issues/issue-11085.rs b/tests/ui/issues/issue-11085.rs similarity index 100% rename from src/test/ui/issues/issue-11085.rs rename to tests/ui/issues/issue-11085.rs diff --git a/src/test/ui/issues/issue-11192.rs b/tests/ui/issues/issue-11192.rs similarity index 100% rename from src/test/ui/issues/issue-11192.rs rename to tests/ui/issues/issue-11192.rs diff --git a/src/test/ui/issues/issue-11192.stderr b/tests/ui/issues/issue-11192.stderr similarity index 100% rename from src/test/ui/issues/issue-11192.stderr rename to tests/ui/issues/issue-11192.stderr diff --git a/src/test/ui/issues/issue-11205.rs b/tests/ui/issues/issue-11205.rs similarity index 100% rename from src/test/ui/issues/issue-11205.rs rename to tests/ui/issues/issue-11205.rs diff --git a/src/test/ui/issues/issue-11224.rs b/tests/ui/issues/issue-11224.rs similarity index 100% rename from src/test/ui/issues/issue-11224.rs rename to tests/ui/issues/issue-11224.rs diff --git a/src/test/ui/issues/issue-11267.rs b/tests/ui/issues/issue-11267.rs similarity index 100% rename from src/test/ui/issues/issue-11267.rs rename to tests/ui/issues/issue-11267.rs diff --git a/src/test/ui/issues/issue-11374.rs b/tests/ui/issues/issue-11374.rs similarity index 100% rename from src/test/ui/issues/issue-11374.rs rename to tests/ui/issues/issue-11374.rs diff --git a/src/test/ui/issues/issue-11374.stderr b/tests/ui/issues/issue-11374.stderr similarity index 100% rename from src/test/ui/issues/issue-11374.stderr rename to tests/ui/issues/issue-11374.stderr diff --git a/src/test/ui/issues/issue-11382.rs b/tests/ui/issues/issue-11382.rs similarity index 100% rename from src/test/ui/issues/issue-11382.rs rename to tests/ui/issues/issue-11382.rs diff --git a/src/test/ui/issues/issue-11384.rs b/tests/ui/issues/issue-11384.rs similarity index 100% rename from src/test/ui/issues/issue-11384.rs rename to tests/ui/issues/issue-11384.rs diff --git a/src/test/ui/issues/issue-11508.rs b/tests/ui/issues/issue-11508.rs similarity index 100% rename from src/test/ui/issues/issue-11508.rs rename to tests/ui/issues/issue-11508.rs diff --git a/src/test/ui/issues/issue-11515.rs b/tests/ui/issues/issue-11515.rs similarity index 100% rename from src/test/ui/issues/issue-11515.rs rename to tests/ui/issues/issue-11515.rs diff --git a/src/test/ui/issues/issue-11515.stderr b/tests/ui/issues/issue-11515.stderr similarity index 100% rename from src/test/ui/issues/issue-11515.stderr rename to tests/ui/issues/issue-11515.stderr diff --git a/src/test/ui/issues/issue-11529.rs b/tests/ui/issues/issue-11529.rs similarity index 100% rename from src/test/ui/issues/issue-11529.rs rename to tests/ui/issues/issue-11529.rs diff --git a/src/test/ui/issues/issue-11552.rs b/tests/ui/issues/issue-11552.rs similarity index 100% rename from src/test/ui/issues/issue-11552.rs rename to tests/ui/issues/issue-11552.rs diff --git a/src/test/ui/issues/issue-11592.rs b/tests/ui/issues/issue-11592.rs similarity index 100% rename from src/test/ui/issues/issue-11592.rs rename to tests/ui/issues/issue-11592.rs diff --git a/src/test/ui/issues/issue-11593.rs b/tests/ui/issues/issue-11593.rs similarity index 100% rename from src/test/ui/issues/issue-11593.rs rename to tests/ui/issues/issue-11593.rs diff --git a/src/test/ui/issues/issue-11593.stderr b/tests/ui/issues/issue-11593.stderr similarity index 100% rename from src/test/ui/issues/issue-11593.stderr rename to tests/ui/issues/issue-11593.stderr diff --git a/src/test/ui/issues/issue-11677.rs b/tests/ui/issues/issue-11677.rs similarity index 100% rename from src/test/ui/issues/issue-11677.rs rename to tests/ui/issues/issue-11677.rs diff --git a/src/test/ui/issues/issue-11680.rs b/tests/ui/issues/issue-11680.rs similarity index 100% rename from src/test/ui/issues/issue-11680.rs rename to tests/ui/issues/issue-11680.rs diff --git a/src/test/ui/issues/issue-11680.stderr b/tests/ui/issues/issue-11680.stderr similarity index 100% rename from src/test/ui/issues/issue-11680.stderr rename to tests/ui/issues/issue-11680.stderr diff --git a/src/test/ui/issues/issue-11681.rs b/tests/ui/issues/issue-11681.rs similarity index 100% rename from src/test/ui/issues/issue-11681.rs rename to tests/ui/issues/issue-11681.rs diff --git a/src/test/ui/issues/issue-11681.stderr b/tests/ui/issues/issue-11681.stderr similarity index 100% rename from src/test/ui/issues/issue-11681.stderr rename to tests/ui/issues/issue-11681.stderr diff --git a/src/test/ui/issues/issue-11692-1.rs b/tests/ui/issues/issue-11692-1.rs similarity index 100% rename from src/test/ui/issues/issue-11692-1.rs rename to tests/ui/issues/issue-11692-1.rs diff --git a/src/test/ui/issues/issue-11692-1.stderr b/tests/ui/issues/issue-11692-1.stderr similarity index 100% rename from src/test/ui/issues/issue-11692-1.stderr rename to tests/ui/issues/issue-11692-1.stderr diff --git a/src/test/ui/issues/issue-11692-2.rs b/tests/ui/issues/issue-11692-2.rs similarity index 100% rename from src/test/ui/issues/issue-11692-2.rs rename to tests/ui/issues/issue-11692-2.rs diff --git a/src/test/ui/issues/issue-11692-2.stderr b/tests/ui/issues/issue-11692-2.stderr similarity index 100% rename from src/test/ui/issues/issue-11692-2.stderr rename to tests/ui/issues/issue-11692-2.stderr diff --git a/src/test/ui/issues/issue-11709.rs b/tests/ui/issues/issue-11709.rs similarity index 100% rename from src/test/ui/issues/issue-11709.rs rename to tests/ui/issues/issue-11709.rs diff --git a/src/test/ui/issues/issue-11740.rs b/tests/ui/issues/issue-11740.rs similarity index 100% rename from src/test/ui/issues/issue-11740.rs rename to tests/ui/issues/issue-11740.rs diff --git a/src/test/ui/issues/issue-11771.rs b/tests/ui/issues/issue-11771.rs similarity index 100% rename from src/test/ui/issues/issue-11771.rs rename to tests/ui/issues/issue-11771.rs diff --git a/src/test/ui/issues/issue-11771.stderr b/tests/ui/issues/issue-11771.stderr similarity index 100% rename from src/test/ui/issues/issue-11771.stderr rename to tests/ui/issues/issue-11771.stderr diff --git a/src/test/ui/issues/issue-11820.rs b/tests/ui/issues/issue-11820.rs similarity index 100% rename from src/test/ui/issues/issue-11820.rs rename to tests/ui/issues/issue-11820.rs diff --git a/src/test/ui/issues/issue-11844.rs b/tests/ui/issues/issue-11844.rs similarity index 100% rename from src/test/ui/issues/issue-11844.rs rename to tests/ui/issues/issue-11844.rs diff --git a/src/test/ui/issues/issue-11844.stderr b/tests/ui/issues/issue-11844.stderr similarity index 100% rename from src/test/ui/issues/issue-11844.stderr rename to tests/ui/issues/issue-11844.stderr diff --git a/src/test/ui/issues/issue-11869.rs b/tests/ui/issues/issue-11869.rs similarity index 100% rename from src/test/ui/issues/issue-11869.rs rename to tests/ui/issues/issue-11869.rs diff --git a/src/test/ui/issues/issue-11873.rs b/tests/ui/issues/issue-11873.rs similarity index 100% rename from src/test/ui/issues/issue-11873.rs rename to tests/ui/issues/issue-11873.rs diff --git a/src/test/ui/issues/issue-11873.stderr b/tests/ui/issues/issue-11873.stderr similarity index 100% rename from src/test/ui/issues/issue-11873.stderr rename to tests/ui/issues/issue-11873.stderr diff --git a/src/test/ui/issues/issue-11958.rs b/tests/ui/issues/issue-11958.rs similarity index 100% rename from src/test/ui/issues/issue-11958.rs rename to tests/ui/issues/issue-11958.rs diff --git a/src/test/ui/issues/issue-11958.stderr b/tests/ui/issues/issue-11958.stderr similarity index 100% rename from src/test/ui/issues/issue-11958.stderr rename to tests/ui/issues/issue-11958.stderr diff --git a/src/test/ui/issues/issue-12028.rs b/tests/ui/issues/issue-12028.rs similarity index 100% rename from src/test/ui/issues/issue-12028.rs rename to tests/ui/issues/issue-12028.rs diff --git a/src/test/ui/issues/issue-12028.stderr b/tests/ui/issues/issue-12028.stderr similarity index 100% rename from src/test/ui/issues/issue-12028.stderr rename to tests/ui/issues/issue-12028.stderr diff --git a/src/test/ui/issues/issue-12033.rs b/tests/ui/issues/issue-12033.rs similarity index 100% rename from src/test/ui/issues/issue-12033.rs rename to tests/ui/issues/issue-12033.rs diff --git a/src/test/ui/issues/issue-12041.rs b/tests/ui/issues/issue-12041.rs similarity index 100% rename from src/test/ui/issues/issue-12041.rs rename to tests/ui/issues/issue-12041.rs diff --git a/src/test/ui/issues/issue-12041.stderr b/tests/ui/issues/issue-12041.stderr similarity index 100% rename from src/test/ui/issues/issue-12041.stderr rename to tests/ui/issues/issue-12041.stderr diff --git a/src/test/ui/issues/issue-12127.rs b/tests/ui/issues/issue-12127.rs similarity index 100% rename from src/test/ui/issues/issue-12127.rs rename to tests/ui/issues/issue-12127.rs diff --git a/src/test/ui/issues/issue-12127.stderr b/tests/ui/issues/issue-12127.stderr similarity index 100% rename from src/test/ui/issues/issue-12127.stderr rename to tests/ui/issues/issue-12127.stderr diff --git a/src/test/ui/issues/issue-12133-1.rs b/tests/ui/issues/issue-12133-1.rs similarity index 100% rename from src/test/ui/issues/issue-12133-1.rs rename to tests/ui/issues/issue-12133-1.rs diff --git a/src/test/ui/issues/issue-12133-2.rs b/tests/ui/issues/issue-12133-2.rs similarity index 100% rename from src/test/ui/issues/issue-12133-2.rs rename to tests/ui/issues/issue-12133-2.rs diff --git a/src/test/ui/issues/issue-12133-3.rs b/tests/ui/issues/issue-12133-3.rs similarity index 100% rename from src/test/ui/issues/issue-12133-3.rs rename to tests/ui/issues/issue-12133-3.rs diff --git a/src/test/ui/issues/issue-12187-1.rs b/tests/ui/issues/issue-12187-1.rs similarity index 100% rename from src/test/ui/issues/issue-12187-1.rs rename to tests/ui/issues/issue-12187-1.rs diff --git a/src/test/ui/issues/issue-12187-1.stderr b/tests/ui/issues/issue-12187-1.stderr similarity index 100% rename from src/test/ui/issues/issue-12187-1.stderr rename to tests/ui/issues/issue-12187-1.stderr diff --git a/src/test/ui/issues/issue-12187-2.rs b/tests/ui/issues/issue-12187-2.rs similarity index 100% rename from src/test/ui/issues/issue-12187-2.rs rename to tests/ui/issues/issue-12187-2.rs diff --git a/src/test/ui/issues/issue-12187-2.stderr b/tests/ui/issues/issue-12187-2.stderr similarity index 100% rename from src/test/ui/issues/issue-12187-2.stderr rename to tests/ui/issues/issue-12187-2.stderr diff --git a/src/test/ui/issues/issue-12285.rs b/tests/ui/issues/issue-12285.rs similarity index 100% rename from src/test/ui/issues/issue-12285.rs rename to tests/ui/issues/issue-12285.rs diff --git a/src/test/ui/issues/issue-1251.rs b/tests/ui/issues/issue-1251.rs similarity index 100% rename from src/test/ui/issues/issue-1251.rs rename to tests/ui/issues/issue-1251.rs diff --git a/src/test/ui/issues/issue-12511.rs b/tests/ui/issues/issue-12511.rs similarity index 100% rename from src/test/ui/issues/issue-12511.rs rename to tests/ui/issues/issue-12511.rs diff --git a/src/test/ui/issues/issue-12511.stderr b/tests/ui/issues/issue-12511.stderr similarity index 100% rename from src/test/ui/issues/issue-12511.stderr rename to tests/ui/issues/issue-12511.stderr diff --git a/src/test/ui/issues/issue-12567.rs b/tests/ui/issues/issue-12567.rs similarity index 100% rename from src/test/ui/issues/issue-12567.rs rename to tests/ui/issues/issue-12567.rs diff --git a/src/test/ui/issues/issue-12567.stderr b/tests/ui/issues/issue-12567.stderr similarity index 100% rename from src/test/ui/issues/issue-12567.stderr rename to tests/ui/issues/issue-12567.stderr diff --git a/src/test/ui/issues/issue-1257.rs b/tests/ui/issues/issue-1257.rs similarity index 100% rename from src/test/ui/issues/issue-1257.rs rename to tests/ui/issues/issue-1257.rs diff --git a/src/test/ui/issues/issue-12612.rs b/tests/ui/issues/issue-12612.rs similarity index 100% rename from src/test/ui/issues/issue-12612.rs rename to tests/ui/issues/issue-12612.rs diff --git a/src/test/ui/issues/issue-12660.rs b/tests/ui/issues/issue-12660.rs similarity index 100% rename from src/test/ui/issues/issue-12660.rs rename to tests/ui/issues/issue-12660.rs diff --git a/src/test/ui/issues/issue-12677.rs b/tests/ui/issues/issue-12677.rs similarity index 100% rename from src/test/ui/issues/issue-12677.rs rename to tests/ui/issues/issue-12677.rs diff --git a/src/test/ui/issues/issue-12699.rs b/tests/ui/issues/issue-12699.rs similarity index 100% rename from src/test/ui/issues/issue-12699.rs rename to tests/ui/issues/issue-12699.rs diff --git a/src/test/ui/issues/issue-12729.rs b/tests/ui/issues/issue-12729.rs similarity index 100% rename from src/test/ui/issues/issue-12729.rs rename to tests/ui/issues/issue-12729.rs diff --git a/src/test/ui/issues/issue-12744.rs b/tests/ui/issues/issue-12744.rs similarity index 100% rename from src/test/ui/issues/issue-12744.rs rename to tests/ui/issues/issue-12744.rs diff --git a/src/test/ui/issues/issue-12860.rs b/tests/ui/issues/issue-12860.rs similarity index 100% rename from src/test/ui/issues/issue-12860.rs rename to tests/ui/issues/issue-12860.rs diff --git a/src/test/ui/issues/issue-12863.rs b/tests/ui/issues/issue-12863.rs similarity index 100% rename from src/test/ui/issues/issue-12863.rs rename to tests/ui/issues/issue-12863.rs diff --git a/src/test/ui/issues/issue-12863.stderr b/tests/ui/issues/issue-12863.stderr similarity index 100% rename from src/test/ui/issues/issue-12863.stderr rename to tests/ui/issues/issue-12863.stderr diff --git a/src/test/ui/issues/issue-12909.rs b/tests/ui/issues/issue-12909.rs similarity index 100% rename from src/test/ui/issues/issue-12909.rs rename to tests/ui/issues/issue-12909.rs diff --git a/src/test/ui/issues/issue-12920.rs b/tests/ui/issues/issue-12920.rs similarity index 100% rename from src/test/ui/issues/issue-12920.rs rename to tests/ui/issues/issue-12920.rs diff --git a/src/test/ui/issues/issue-12997-1.rs b/tests/ui/issues/issue-12997-1.rs similarity index 100% rename from src/test/ui/issues/issue-12997-1.rs rename to tests/ui/issues/issue-12997-1.rs diff --git a/src/test/ui/issues/issue-12997-1.stderr b/tests/ui/issues/issue-12997-1.stderr similarity index 100% rename from src/test/ui/issues/issue-12997-1.stderr rename to tests/ui/issues/issue-12997-1.stderr diff --git a/src/test/ui/issues/issue-12997-2.rs b/tests/ui/issues/issue-12997-2.rs similarity index 100% rename from src/test/ui/issues/issue-12997-2.rs rename to tests/ui/issues/issue-12997-2.rs diff --git a/src/test/ui/issues/issue-12997-2.stderr b/tests/ui/issues/issue-12997-2.stderr similarity index 100% rename from src/test/ui/issues/issue-12997-2.stderr rename to tests/ui/issues/issue-12997-2.stderr diff --git a/src/test/ui/issues/issue-13027.rs b/tests/ui/issues/issue-13027.rs similarity index 100% rename from src/test/ui/issues/issue-13027.rs rename to tests/ui/issues/issue-13027.rs diff --git a/src/test/ui/issues/issue-13033.rs b/tests/ui/issues/issue-13033.rs similarity index 100% rename from src/test/ui/issues/issue-13033.rs rename to tests/ui/issues/issue-13033.rs diff --git a/src/test/ui/issues/issue-13033.stderr b/tests/ui/issues/issue-13033.stderr similarity index 100% rename from src/test/ui/issues/issue-13033.stderr rename to tests/ui/issues/issue-13033.stderr diff --git a/src/test/ui/issues/issue-13058.rs b/tests/ui/issues/issue-13058.rs similarity index 100% rename from src/test/ui/issues/issue-13058.rs rename to tests/ui/issues/issue-13058.rs diff --git a/src/test/ui/issues/issue-13058.stderr b/tests/ui/issues/issue-13058.stderr similarity index 100% rename from src/test/ui/issues/issue-13058.stderr rename to tests/ui/issues/issue-13058.stderr diff --git a/src/test/ui/issues/issue-13105.rs b/tests/ui/issues/issue-13105.rs similarity index 100% rename from src/test/ui/issues/issue-13105.rs rename to tests/ui/issues/issue-13105.rs diff --git a/src/test/ui/issues/issue-13167.rs b/tests/ui/issues/issue-13167.rs similarity index 100% rename from src/test/ui/issues/issue-13167.rs rename to tests/ui/issues/issue-13167.rs diff --git a/src/test/ui/issues/issue-13202.rs b/tests/ui/issues/issue-13202.rs similarity index 100% rename from src/test/ui/issues/issue-13202.rs rename to tests/ui/issues/issue-13202.rs diff --git a/src/test/ui/issues/issue-13204.rs b/tests/ui/issues/issue-13204.rs similarity index 100% rename from src/test/ui/issues/issue-13204.rs rename to tests/ui/issues/issue-13204.rs diff --git a/src/test/ui/issues/issue-13214.rs b/tests/ui/issues/issue-13214.rs similarity index 100% rename from src/test/ui/issues/issue-13214.rs rename to tests/ui/issues/issue-13214.rs diff --git a/src/test/ui/issues/issue-13259-windows-tcb-trash.rs b/tests/ui/issues/issue-13259-windows-tcb-trash.rs similarity index 100% rename from src/test/ui/issues/issue-13259-windows-tcb-trash.rs rename to tests/ui/issues/issue-13259-windows-tcb-trash.rs diff --git a/src/test/ui/issues/issue-13264.rs b/tests/ui/issues/issue-13264.rs similarity index 100% rename from src/test/ui/issues/issue-13264.rs rename to tests/ui/issues/issue-13264.rs diff --git a/src/test/ui/issues/issue-13323.rs b/tests/ui/issues/issue-13323.rs similarity index 100% rename from src/test/ui/issues/issue-13323.rs rename to tests/ui/issues/issue-13323.rs diff --git a/src/test/ui/issues/issue-13359.rs b/tests/ui/issues/issue-13359.rs similarity index 100% rename from src/test/ui/issues/issue-13359.rs rename to tests/ui/issues/issue-13359.rs diff --git a/src/test/ui/issues/issue-13359.stderr b/tests/ui/issues/issue-13359.stderr similarity index 100% rename from src/test/ui/issues/issue-13359.stderr rename to tests/ui/issues/issue-13359.stderr diff --git a/src/test/ui/issues/issue-13405.rs b/tests/ui/issues/issue-13405.rs similarity index 100% rename from src/test/ui/issues/issue-13405.rs rename to tests/ui/issues/issue-13405.rs diff --git a/src/test/ui/issues/issue-13407.rs b/tests/ui/issues/issue-13407.rs similarity index 100% rename from src/test/ui/issues/issue-13407.rs rename to tests/ui/issues/issue-13407.rs diff --git a/src/test/ui/issues/issue-13407.stderr b/tests/ui/issues/issue-13407.stderr similarity index 100% rename from src/test/ui/issues/issue-13407.stderr rename to tests/ui/issues/issue-13407.stderr diff --git a/src/test/ui/issues/issue-13434.rs b/tests/ui/issues/issue-13434.rs similarity index 100% rename from src/test/ui/issues/issue-13434.rs rename to tests/ui/issues/issue-13434.rs diff --git a/src/test/ui/issues/issue-13446.rs b/tests/ui/issues/issue-13446.rs similarity index 100% rename from src/test/ui/issues/issue-13446.rs rename to tests/ui/issues/issue-13446.rs diff --git a/src/test/ui/issues/issue-13446.stderr b/tests/ui/issues/issue-13446.stderr similarity index 100% rename from src/test/ui/issues/issue-13446.stderr rename to tests/ui/issues/issue-13446.stderr diff --git a/src/test/ui/issues/issue-13466.rs b/tests/ui/issues/issue-13466.rs similarity index 100% rename from src/test/ui/issues/issue-13466.rs rename to tests/ui/issues/issue-13466.rs diff --git a/src/test/ui/issues/issue-13466.stderr b/tests/ui/issues/issue-13466.stderr similarity index 100% rename from src/test/ui/issues/issue-13466.stderr rename to tests/ui/issues/issue-13466.stderr diff --git a/src/test/ui/issues/issue-13482-2.rs b/tests/ui/issues/issue-13482-2.rs similarity index 100% rename from src/test/ui/issues/issue-13482-2.rs rename to tests/ui/issues/issue-13482-2.rs diff --git a/src/test/ui/issues/issue-13482-2.stderr b/tests/ui/issues/issue-13482-2.stderr similarity index 100% rename from src/test/ui/issues/issue-13482-2.stderr rename to tests/ui/issues/issue-13482-2.stderr diff --git a/src/test/ui/issues/issue-13482.rs b/tests/ui/issues/issue-13482.rs similarity index 100% rename from src/test/ui/issues/issue-13482.rs rename to tests/ui/issues/issue-13482.rs diff --git a/src/test/ui/issues/issue-13482.stderr b/tests/ui/issues/issue-13482.stderr similarity index 100% rename from src/test/ui/issues/issue-13482.stderr rename to tests/ui/issues/issue-13482.stderr diff --git a/src/test/ui/issues/issue-13497-2.rs b/tests/ui/issues/issue-13497-2.rs similarity index 100% rename from src/test/ui/issues/issue-13497-2.rs rename to tests/ui/issues/issue-13497-2.rs diff --git a/src/test/ui/issues/issue-13497-2.stderr b/tests/ui/issues/issue-13497-2.stderr similarity index 100% rename from src/test/ui/issues/issue-13497-2.stderr rename to tests/ui/issues/issue-13497-2.stderr diff --git a/src/test/ui/issues/issue-13497.rs b/tests/ui/issues/issue-13497.rs similarity index 100% rename from src/test/ui/issues/issue-13497.rs rename to tests/ui/issues/issue-13497.rs diff --git a/src/test/ui/issues/issue-13497.stderr b/tests/ui/issues/issue-13497.stderr similarity index 100% rename from src/test/ui/issues/issue-13497.stderr rename to tests/ui/issues/issue-13497.stderr diff --git a/src/test/ui/issues/issue-13507-2.rs b/tests/ui/issues/issue-13507-2.rs similarity index 100% rename from src/test/ui/issues/issue-13507-2.rs rename to tests/ui/issues/issue-13507-2.rs diff --git a/src/test/ui/issues/issue-1362.rs b/tests/ui/issues/issue-1362.rs similarity index 100% rename from src/test/ui/issues/issue-1362.rs rename to tests/ui/issues/issue-1362.rs diff --git a/src/test/ui/issues/issue-1362.stderr b/tests/ui/issues/issue-1362.stderr similarity index 100% rename from src/test/ui/issues/issue-1362.stderr rename to tests/ui/issues/issue-1362.stderr diff --git a/src/test/ui/issues/issue-13620.rs b/tests/ui/issues/issue-13620.rs similarity index 100% rename from src/test/ui/issues/issue-13620.rs rename to tests/ui/issues/issue-13620.rs diff --git a/src/test/ui/issues/issue-13665.rs b/tests/ui/issues/issue-13665.rs similarity index 100% rename from src/test/ui/issues/issue-13665.rs rename to tests/ui/issues/issue-13665.rs diff --git a/src/test/ui/issues/issue-13703.rs b/tests/ui/issues/issue-13703.rs similarity index 100% rename from src/test/ui/issues/issue-13703.rs rename to tests/ui/issues/issue-13703.rs diff --git a/src/test/ui/issues/issue-13763.rs b/tests/ui/issues/issue-13763.rs similarity index 100% rename from src/test/ui/issues/issue-13763.rs rename to tests/ui/issues/issue-13763.rs diff --git a/src/test/ui/issues/issue-13775.rs b/tests/ui/issues/issue-13775.rs similarity index 100% rename from src/test/ui/issues/issue-13775.rs rename to tests/ui/issues/issue-13775.rs diff --git a/src/test/ui/issues/issue-13808.rs b/tests/ui/issues/issue-13808.rs similarity index 100% rename from src/test/ui/issues/issue-13808.rs rename to tests/ui/issues/issue-13808.rs diff --git a/src/test/ui/issues/issue-13847.rs b/tests/ui/issues/issue-13847.rs similarity index 100% rename from src/test/ui/issues/issue-13847.rs rename to tests/ui/issues/issue-13847.rs diff --git a/src/test/ui/issues/issue-13847.stderr b/tests/ui/issues/issue-13847.stderr similarity index 100% rename from src/test/ui/issues/issue-13847.stderr rename to tests/ui/issues/issue-13847.stderr diff --git a/src/test/ui/issues/issue-13867.rs b/tests/ui/issues/issue-13867.rs similarity index 100% rename from src/test/ui/issues/issue-13867.rs rename to tests/ui/issues/issue-13867.rs diff --git a/src/test/ui/issues/issue-13872.rs b/tests/ui/issues/issue-13872.rs similarity index 100% rename from src/test/ui/issues/issue-13872.rs rename to tests/ui/issues/issue-13872.rs diff --git a/src/test/ui/issues/issue-14082.rs b/tests/ui/issues/issue-14082.rs similarity index 100% rename from src/test/ui/issues/issue-14082.rs rename to tests/ui/issues/issue-14082.rs diff --git a/src/test/ui/issues/issue-14091-2.rs b/tests/ui/issues/issue-14091-2.rs similarity index 100% rename from src/test/ui/issues/issue-14091-2.rs rename to tests/ui/issues/issue-14091-2.rs diff --git a/src/test/ui/issues/issue-14091-2.stderr b/tests/ui/issues/issue-14091-2.stderr similarity index 100% rename from src/test/ui/issues/issue-14091-2.stderr rename to tests/ui/issues/issue-14091-2.stderr diff --git a/src/test/ui/issues/issue-14091.rs b/tests/ui/issues/issue-14091.rs similarity index 100% rename from src/test/ui/issues/issue-14091.rs rename to tests/ui/issues/issue-14091.rs diff --git a/src/test/ui/issues/issue-14091.stderr b/tests/ui/issues/issue-14091.stderr similarity index 100% rename from src/test/ui/issues/issue-14091.stderr rename to tests/ui/issues/issue-14091.stderr diff --git a/src/test/ui/issues/issue-14092.rs b/tests/ui/issues/issue-14092.rs similarity index 100% rename from src/test/ui/issues/issue-14092.rs rename to tests/ui/issues/issue-14092.rs diff --git a/src/test/ui/issues/issue-14092.stderr b/tests/ui/issues/issue-14092.stderr similarity index 100% rename from src/test/ui/issues/issue-14092.stderr rename to tests/ui/issues/issue-14092.stderr diff --git a/src/test/ui/issues/issue-14229.rs b/tests/ui/issues/issue-14229.rs similarity index 100% rename from src/test/ui/issues/issue-14229.rs rename to tests/ui/issues/issue-14229.rs diff --git a/src/test/ui/issues/issue-14254.rs b/tests/ui/issues/issue-14254.rs similarity index 100% rename from src/test/ui/issues/issue-14254.rs rename to tests/ui/issues/issue-14254.rs diff --git a/src/test/ui/issues/issue-14285.rs b/tests/ui/issues/issue-14285.rs similarity index 100% rename from src/test/ui/issues/issue-14285.rs rename to tests/ui/issues/issue-14285.rs diff --git a/src/test/ui/issues/issue-14285.stderr b/tests/ui/issues/issue-14285.stderr similarity index 100% rename from src/test/ui/issues/issue-14285.stderr rename to tests/ui/issues/issue-14285.stderr diff --git a/src/test/ui/issues/issue-14308.rs b/tests/ui/issues/issue-14308.rs similarity index 100% rename from src/test/ui/issues/issue-14308.rs rename to tests/ui/issues/issue-14308.rs diff --git a/src/test/ui/issues/issue-14330.rs b/tests/ui/issues/issue-14330.rs similarity index 100% rename from src/test/ui/issues/issue-14330.rs rename to tests/ui/issues/issue-14330.rs diff --git a/src/test/ui/issues/issue-14344.rs b/tests/ui/issues/issue-14344.rs similarity index 100% rename from src/test/ui/issues/issue-14344.rs rename to tests/ui/issues/issue-14344.rs diff --git a/src/test/ui/issues/issue-14366.rs b/tests/ui/issues/issue-14366.rs similarity index 100% rename from src/test/ui/issues/issue-14366.rs rename to tests/ui/issues/issue-14366.rs diff --git a/src/test/ui/issues/issue-14366.stderr b/tests/ui/issues/issue-14366.stderr similarity index 100% rename from src/test/ui/issues/issue-14366.stderr rename to tests/ui/issues/issue-14366.stderr diff --git a/src/test/ui/issues/issue-14382.rs b/tests/ui/issues/issue-14382.rs similarity index 100% rename from src/test/ui/issues/issue-14382.rs rename to tests/ui/issues/issue-14382.rs diff --git a/src/test/ui/issues/issue-14393.rs b/tests/ui/issues/issue-14393.rs similarity index 100% rename from src/test/ui/issues/issue-14393.rs rename to tests/ui/issues/issue-14393.rs diff --git a/src/test/ui/issues/issue-14399.rs b/tests/ui/issues/issue-14399.rs similarity index 100% rename from src/test/ui/issues/issue-14399.rs rename to tests/ui/issues/issue-14399.rs diff --git a/src/test/ui/issues/issue-14421.rs b/tests/ui/issues/issue-14421.rs similarity index 100% rename from src/test/ui/issues/issue-14421.rs rename to tests/ui/issues/issue-14421.rs diff --git a/src/test/ui/issues/issue-14422.rs b/tests/ui/issues/issue-14422.rs similarity index 100% rename from src/test/ui/issues/issue-14422.rs rename to tests/ui/issues/issue-14422.rs diff --git a/src/test/ui/issues/issue-1448-2.rs b/tests/ui/issues/issue-1448-2.rs similarity index 100% rename from src/test/ui/issues/issue-1448-2.rs rename to tests/ui/issues/issue-1448-2.rs diff --git a/src/test/ui/issues/issue-1448-2.stderr b/tests/ui/issues/issue-1448-2.stderr similarity index 100% rename from src/test/ui/issues/issue-1448-2.stderr rename to tests/ui/issues/issue-1448-2.stderr diff --git a/src/test/ui/issues/issue-1451.rs b/tests/ui/issues/issue-1451.rs similarity index 100% rename from src/test/ui/issues/issue-1451.rs rename to tests/ui/issues/issue-1451.rs diff --git a/src/test/ui/issues/issue-14541.rs b/tests/ui/issues/issue-14541.rs similarity index 100% rename from src/test/ui/issues/issue-14541.rs rename to tests/ui/issues/issue-14541.rs diff --git a/src/test/ui/issues/issue-14541.stderr b/tests/ui/issues/issue-14541.stderr similarity index 100% rename from src/test/ui/issues/issue-14541.stderr rename to tests/ui/issues/issue-14541.stderr diff --git a/src/test/ui/issues/issue-1460.rs b/tests/ui/issues/issue-1460.rs similarity index 100% rename from src/test/ui/issues/issue-1460.rs rename to tests/ui/issues/issue-1460.rs diff --git a/src/test/ui/issues/issue-1460.stderr b/tests/ui/issues/issue-1460.stderr similarity index 100% rename from src/test/ui/issues/issue-1460.stderr rename to tests/ui/issues/issue-1460.stderr diff --git a/src/test/ui/issues/issue-14721.rs b/tests/ui/issues/issue-14721.rs similarity index 100% rename from src/test/ui/issues/issue-14721.rs rename to tests/ui/issues/issue-14721.rs diff --git a/src/test/ui/issues/issue-14721.stderr b/tests/ui/issues/issue-14721.stderr similarity index 100% rename from src/test/ui/issues/issue-14721.stderr rename to tests/ui/issues/issue-14721.stderr diff --git a/src/test/ui/issues/issue-1476.rs b/tests/ui/issues/issue-1476.rs similarity index 100% rename from src/test/ui/issues/issue-1476.rs rename to tests/ui/issues/issue-1476.rs diff --git a/src/test/ui/issues/issue-1476.stderr b/tests/ui/issues/issue-1476.stderr similarity index 100% rename from src/test/ui/issues/issue-1476.stderr rename to tests/ui/issues/issue-1476.stderr diff --git a/src/test/ui/issues/issue-14821.rs b/tests/ui/issues/issue-14821.rs similarity index 100% rename from src/test/ui/issues/issue-14821.rs rename to tests/ui/issues/issue-14821.rs diff --git a/src/test/ui/issues/issue-14845.rs b/tests/ui/issues/issue-14845.rs similarity index 100% rename from src/test/ui/issues/issue-14845.rs rename to tests/ui/issues/issue-14845.rs diff --git a/src/test/ui/issues/issue-14845.stderr b/tests/ui/issues/issue-14845.stderr similarity index 100% rename from src/test/ui/issues/issue-14845.stderr rename to tests/ui/issues/issue-14845.stderr diff --git a/src/test/ui/issues/issue-14853.rs b/tests/ui/issues/issue-14853.rs similarity index 100% rename from src/test/ui/issues/issue-14853.rs rename to tests/ui/issues/issue-14853.rs diff --git a/src/test/ui/issues/issue-14853.stderr b/tests/ui/issues/issue-14853.stderr similarity index 100% rename from src/test/ui/issues/issue-14853.stderr rename to tests/ui/issues/issue-14853.stderr diff --git a/src/test/ui/issues/issue-14865.rs b/tests/ui/issues/issue-14865.rs similarity index 100% rename from src/test/ui/issues/issue-14865.rs rename to tests/ui/issues/issue-14865.rs diff --git a/src/test/ui/issues/issue-14875.rs b/tests/ui/issues/issue-14875.rs similarity index 100% rename from src/test/ui/issues/issue-14875.rs rename to tests/ui/issues/issue-14875.rs diff --git a/src/test/ui/issues/issue-14901.rs b/tests/ui/issues/issue-14901.rs similarity index 100% rename from src/test/ui/issues/issue-14901.rs rename to tests/ui/issues/issue-14901.rs diff --git a/src/test/ui/issues/issue-14915.rs b/tests/ui/issues/issue-14915.rs similarity index 100% rename from src/test/ui/issues/issue-14915.rs rename to tests/ui/issues/issue-14915.rs diff --git a/src/test/ui/issues/issue-14915.stderr b/tests/ui/issues/issue-14915.stderr similarity index 100% rename from src/test/ui/issues/issue-14915.stderr rename to tests/ui/issues/issue-14915.stderr diff --git a/src/test/ui/issues/issue-14919.rs b/tests/ui/issues/issue-14919.rs similarity index 100% rename from src/test/ui/issues/issue-14919.rs rename to tests/ui/issues/issue-14919.rs diff --git a/src/test/ui/issues/issue-14959.rs b/tests/ui/issues/issue-14959.rs similarity index 100% rename from src/test/ui/issues/issue-14959.rs rename to tests/ui/issues/issue-14959.rs diff --git a/src/test/ui/issues/issue-15034.rs b/tests/ui/issues/issue-15034.rs similarity index 100% rename from src/test/ui/issues/issue-15034.rs rename to tests/ui/issues/issue-15034.rs diff --git a/src/test/ui/issues/issue-15034.stderr b/tests/ui/issues/issue-15034.stderr similarity index 100% rename from src/test/ui/issues/issue-15034.stderr rename to tests/ui/issues/issue-15034.stderr diff --git a/src/test/ui/issues/issue-15043.rs b/tests/ui/issues/issue-15043.rs similarity index 100% rename from src/test/ui/issues/issue-15043.rs rename to tests/ui/issues/issue-15043.rs diff --git a/src/test/ui/issues/issue-15063.rs b/tests/ui/issues/issue-15063.rs similarity index 100% rename from src/test/ui/issues/issue-15063.rs rename to tests/ui/issues/issue-15063.rs diff --git a/src/test/ui/issues/issue-15094.rs b/tests/ui/issues/issue-15094.rs similarity index 100% rename from src/test/ui/issues/issue-15094.rs rename to tests/ui/issues/issue-15094.rs diff --git a/src/test/ui/issues/issue-15094.stderr b/tests/ui/issues/issue-15094.stderr similarity index 100% rename from src/test/ui/issues/issue-15094.stderr rename to tests/ui/issues/issue-15094.stderr diff --git a/src/test/ui/issues/issue-15104.rs b/tests/ui/issues/issue-15104.rs similarity index 100% rename from src/test/ui/issues/issue-15104.rs rename to tests/ui/issues/issue-15104.rs diff --git a/src/test/ui/issues/issue-15129-rpass.rs b/tests/ui/issues/issue-15129-rpass.rs similarity index 100% rename from src/test/ui/issues/issue-15129-rpass.rs rename to tests/ui/issues/issue-15129-rpass.rs diff --git a/src/test/ui/issues/issue-15155.rs b/tests/ui/issues/issue-15155.rs similarity index 100% rename from src/test/ui/issues/issue-15155.rs rename to tests/ui/issues/issue-15155.rs diff --git a/src/test/ui/issues/issue-15167.rs b/tests/ui/issues/issue-15167.rs similarity index 100% rename from src/test/ui/issues/issue-15167.rs rename to tests/ui/issues/issue-15167.rs diff --git a/src/test/ui/issues/issue-15167.stderr b/tests/ui/issues/issue-15167.stderr similarity index 100% rename from src/test/ui/issues/issue-15167.stderr rename to tests/ui/issues/issue-15167.stderr diff --git a/src/test/ui/issues/issue-15189.rs b/tests/ui/issues/issue-15189.rs similarity index 100% rename from src/test/ui/issues/issue-15189.rs rename to tests/ui/issues/issue-15189.rs diff --git a/src/test/ui/issues/issue-15207.rs b/tests/ui/issues/issue-15207.rs similarity index 100% rename from src/test/ui/issues/issue-15207.rs rename to tests/ui/issues/issue-15207.rs diff --git a/src/test/ui/issues/issue-15207.stderr b/tests/ui/issues/issue-15207.stderr similarity index 100% rename from src/test/ui/issues/issue-15207.stderr rename to tests/ui/issues/issue-15207.stderr diff --git a/src/test/ui/issues/issue-15260.rs b/tests/ui/issues/issue-15260.rs similarity index 100% rename from src/test/ui/issues/issue-15260.rs rename to tests/ui/issues/issue-15260.rs diff --git a/src/test/ui/issues/issue-15260.stderr b/tests/ui/issues/issue-15260.stderr similarity index 100% rename from src/test/ui/issues/issue-15260.stderr rename to tests/ui/issues/issue-15260.stderr diff --git a/src/test/ui/issues/issue-15381.rs b/tests/ui/issues/issue-15381.rs similarity index 100% rename from src/test/ui/issues/issue-15381.rs rename to tests/ui/issues/issue-15381.rs diff --git a/src/test/ui/issues/issue-15381.stderr b/tests/ui/issues/issue-15381.stderr similarity index 100% rename from src/test/ui/issues/issue-15381.stderr rename to tests/ui/issues/issue-15381.stderr diff --git a/src/test/ui/issues/issue-15444.rs b/tests/ui/issues/issue-15444.rs similarity index 100% rename from src/test/ui/issues/issue-15444.rs rename to tests/ui/issues/issue-15444.rs diff --git a/src/test/ui/issues/issue-15523-big.rs b/tests/ui/issues/issue-15523-big.rs similarity index 100% rename from src/test/ui/issues/issue-15523-big.rs rename to tests/ui/issues/issue-15523-big.rs diff --git a/src/test/ui/issues/issue-15523.rs b/tests/ui/issues/issue-15523.rs similarity index 100% rename from src/test/ui/issues/issue-15523.rs rename to tests/ui/issues/issue-15523.rs diff --git a/src/test/ui/issues/issue-15562.rs b/tests/ui/issues/issue-15562.rs similarity index 100% rename from src/test/ui/issues/issue-15562.rs rename to tests/ui/issues/issue-15562.rs diff --git a/src/test/ui/issues/issue-15571.rs b/tests/ui/issues/issue-15571.rs similarity index 100% rename from src/test/ui/issues/issue-15571.rs rename to tests/ui/issues/issue-15571.rs diff --git a/src/test/ui/issues/issue-15673.rs b/tests/ui/issues/issue-15673.rs similarity index 100% rename from src/test/ui/issues/issue-15673.rs rename to tests/ui/issues/issue-15673.rs diff --git a/src/test/ui/issues/issue-15689-1.rs b/tests/ui/issues/issue-15689-1.rs similarity index 100% rename from src/test/ui/issues/issue-15689-1.rs rename to tests/ui/issues/issue-15689-1.rs diff --git a/src/test/ui/issues/issue-15689-2.rs b/tests/ui/issues/issue-15689-2.rs similarity index 100% rename from src/test/ui/issues/issue-15689-2.rs rename to tests/ui/issues/issue-15689-2.rs diff --git a/src/test/ui/issues/issue-15734.rs b/tests/ui/issues/issue-15734.rs similarity index 100% rename from src/test/ui/issues/issue-15734.rs rename to tests/ui/issues/issue-15734.rs diff --git a/src/test/ui/issues/issue-15735.rs b/tests/ui/issues/issue-15735.rs similarity index 100% rename from src/test/ui/issues/issue-15735.rs rename to tests/ui/issues/issue-15735.rs diff --git a/src/test/ui/issues/issue-15756.rs b/tests/ui/issues/issue-15756.rs similarity index 100% rename from src/test/ui/issues/issue-15756.rs rename to tests/ui/issues/issue-15756.rs diff --git a/src/test/ui/issues/issue-15756.stderr b/tests/ui/issues/issue-15756.stderr similarity index 100% rename from src/test/ui/issues/issue-15756.stderr rename to tests/ui/issues/issue-15756.stderr diff --git a/src/test/ui/issues/issue-15763.rs b/tests/ui/issues/issue-15763.rs similarity index 100% rename from src/test/ui/issues/issue-15763.rs rename to tests/ui/issues/issue-15763.rs diff --git a/src/test/ui/issues/issue-15774.rs b/tests/ui/issues/issue-15774.rs similarity index 100% rename from src/test/ui/issues/issue-15774.rs rename to tests/ui/issues/issue-15774.rs diff --git a/src/test/ui/issues/issue-15783.rs b/tests/ui/issues/issue-15783.rs similarity index 100% rename from src/test/ui/issues/issue-15783.rs rename to tests/ui/issues/issue-15783.rs diff --git a/src/test/ui/issues/issue-15783.stderr b/tests/ui/issues/issue-15783.stderr similarity index 100% rename from src/test/ui/issues/issue-15783.stderr rename to tests/ui/issues/issue-15783.stderr diff --git a/src/test/ui/issues/issue-15793.rs b/tests/ui/issues/issue-15793.rs similarity index 100% rename from src/test/ui/issues/issue-15793.rs rename to tests/ui/issues/issue-15793.rs diff --git a/src/test/ui/issues/issue-15858.rs b/tests/ui/issues/issue-15858.rs similarity index 100% rename from src/test/ui/issues/issue-15858.rs rename to tests/ui/issues/issue-15858.rs diff --git a/src/test/ui/issues/issue-15896.rs b/tests/ui/issues/issue-15896.rs similarity index 100% rename from src/test/ui/issues/issue-15896.rs rename to tests/ui/issues/issue-15896.rs diff --git a/src/test/ui/issues/issue-15896.stderr b/tests/ui/issues/issue-15896.stderr similarity index 100% rename from src/test/ui/issues/issue-15896.stderr rename to tests/ui/issues/issue-15896.stderr diff --git a/src/test/ui/issues/issue-15965.rs b/tests/ui/issues/issue-15965.rs similarity index 100% rename from src/test/ui/issues/issue-15965.rs rename to tests/ui/issues/issue-15965.rs diff --git a/src/test/ui/issues/issue-15965.stderr b/tests/ui/issues/issue-15965.stderr similarity index 100% rename from src/test/ui/issues/issue-15965.stderr rename to tests/ui/issues/issue-15965.stderr diff --git a/src/test/ui/issues/issue-16048.rs b/tests/ui/issues/issue-16048.rs similarity index 100% rename from src/test/ui/issues/issue-16048.rs rename to tests/ui/issues/issue-16048.rs diff --git a/src/test/ui/issues/issue-16048.stderr b/tests/ui/issues/issue-16048.stderr similarity index 100% rename from src/test/ui/issues/issue-16048.stderr rename to tests/ui/issues/issue-16048.stderr diff --git a/src/test/ui/issues/issue-16149.rs b/tests/ui/issues/issue-16149.rs similarity index 100% rename from src/test/ui/issues/issue-16149.rs rename to tests/ui/issues/issue-16149.rs diff --git a/src/test/ui/issues/issue-16149.stderr b/tests/ui/issues/issue-16149.stderr similarity index 100% rename from src/test/ui/issues/issue-16149.stderr rename to tests/ui/issues/issue-16149.stderr diff --git a/src/test/ui/issues/issue-16151.rs b/tests/ui/issues/issue-16151.rs similarity index 100% rename from src/test/ui/issues/issue-16151.rs rename to tests/ui/issues/issue-16151.rs diff --git a/src/test/ui/issues/issue-16250.rs b/tests/ui/issues/issue-16250.rs similarity index 100% rename from src/test/ui/issues/issue-16250.rs rename to tests/ui/issues/issue-16250.rs diff --git a/src/test/ui/issues/issue-16250.stderr b/tests/ui/issues/issue-16250.stderr similarity index 100% rename from src/test/ui/issues/issue-16250.stderr rename to tests/ui/issues/issue-16250.stderr diff --git a/src/test/ui/issues/issue-16256.rs b/tests/ui/issues/issue-16256.rs similarity index 100% rename from src/test/ui/issues/issue-16256.rs rename to tests/ui/issues/issue-16256.rs diff --git a/src/test/ui/issues/issue-16256.stderr b/tests/ui/issues/issue-16256.stderr similarity index 100% rename from src/test/ui/issues/issue-16256.stderr rename to tests/ui/issues/issue-16256.stderr diff --git a/src/test/ui/issues/issue-16278.rs b/tests/ui/issues/issue-16278.rs similarity index 100% rename from src/test/ui/issues/issue-16278.rs rename to tests/ui/issues/issue-16278.rs diff --git a/src/test/ui/issues/issue-16338.rs b/tests/ui/issues/issue-16338.rs similarity index 100% rename from src/test/ui/issues/issue-16338.rs rename to tests/ui/issues/issue-16338.rs diff --git a/src/test/ui/issues/issue-16338.stderr b/tests/ui/issues/issue-16338.stderr similarity index 100% rename from src/test/ui/issues/issue-16338.stderr rename to tests/ui/issues/issue-16338.stderr diff --git a/src/test/ui/issues/issue-16401.rs b/tests/ui/issues/issue-16401.rs similarity index 100% rename from src/test/ui/issues/issue-16401.rs rename to tests/ui/issues/issue-16401.rs diff --git a/src/test/ui/issues/issue-16401.stderr b/tests/ui/issues/issue-16401.stderr similarity index 100% rename from src/test/ui/issues/issue-16401.stderr rename to tests/ui/issues/issue-16401.stderr diff --git a/src/test/ui/issues/issue-16441.rs b/tests/ui/issues/issue-16441.rs similarity index 100% rename from src/test/ui/issues/issue-16441.rs rename to tests/ui/issues/issue-16441.rs diff --git a/src/test/ui/issues/issue-16452.rs b/tests/ui/issues/issue-16452.rs similarity index 100% rename from src/test/ui/issues/issue-16452.rs rename to tests/ui/issues/issue-16452.rs diff --git a/src/test/ui/issues/issue-16492.rs b/tests/ui/issues/issue-16492.rs similarity index 100% rename from src/test/ui/issues/issue-16492.rs rename to tests/ui/issues/issue-16492.rs diff --git a/src/test/ui/issues/issue-16530.rs b/tests/ui/issues/issue-16530.rs similarity index 100% rename from src/test/ui/issues/issue-16530.rs rename to tests/ui/issues/issue-16530.rs diff --git a/src/test/ui/issues/issue-16538.mir.stderr b/tests/ui/issues/issue-16538.mir.stderr similarity index 100% rename from src/test/ui/issues/issue-16538.mir.stderr rename to tests/ui/issues/issue-16538.mir.stderr diff --git a/src/test/ui/issues/issue-16538.rs b/tests/ui/issues/issue-16538.rs similarity index 100% rename from src/test/ui/issues/issue-16538.rs rename to tests/ui/issues/issue-16538.rs diff --git a/src/test/ui/issues/issue-16538.thir.stderr b/tests/ui/issues/issue-16538.thir.stderr similarity index 100% rename from src/test/ui/issues/issue-16538.thir.stderr rename to tests/ui/issues/issue-16538.thir.stderr diff --git a/src/test/ui/issues/issue-16560.rs b/tests/ui/issues/issue-16560.rs similarity index 100% rename from src/test/ui/issues/issue-16560.rs rename to tests/ui/issues/issue-16560.rs diff --git a/src/test/ui/issues/issue-16562.rs b/tests/ui/issues/issue-16562.rs similarity index 100% rename from src/test/ui/issues/issue-16562.rs rename to tests/ui/issues/issue-16562.rs diff --git a/src/test/ui/issues/issue-16562.stderr b/tests/ui/issues/issue-16562.stderr similarity index 100% rename from src/test/ui/issues/issue-16562.stderr rename to tests/ui/issues/issue-16562.stderr diff --git a/src/test/ui/issues/issue-16596.rs b/tests/ui/issues/issue-16596.rs similarity index 100% rename from src/test/ui/issues/issue-16596.rs rename to tests/ui/issues/issue-16596.rs diff --git a/src/test/ui/issues/issue-1660.rs b/tests/ui/issues/issue-1660.rs similarity index 100% rename from src/test/ui/issues/issue-1660.rs rename to tests/ui/issues/issue-1660.rs diff --git a/src/test/ui/issues/issue-16643.rs b/tests/ui/issues/issue-16643.rs similarity index 100% rename from src/test/ui/issues/issue-16643.rs rename to tests/ui/issues/issue-16643.rs diff --git a/src/test/ui/issues/issue-16648.rs b/tests/ui/issues/issue-16648.rs similarity index 100% rename from src/test/ui/issues/issue-16648.rs rename to tests/ui/issues/issue-16648.rs diff --git a/src/test/ui/issues/issue-16668.rs b/tests/ui/issues/issue-16668.rs similarity index 100% rename from src/test/ui/issues/issue-16668.rs rename to tests/ui/issues/issue-16668.rs diff --git a/src/test/ui/issues/issue-16671.rs b/tests/ui/issues/issue-16671.rs similarity index 100% rename from src/test/ui/issues/issue-16671.rs rename to tests/ui/issues/issue-16671.rs diff --git a/src/test/ui/issues/issue-16683.rs b/tests/ui/issues/issue-16683.rs similarity index 100% rename from src/test/ui/issues/issue-16683.rs rename to tests/ui/issues/issue-16683.rs diff --git a/src/test/ui/issues/issue-16683.stderr b/tests/ui/issues/issue-16683.stderr similarity index 100% rename from src/test/ui/issues/issue-16683.stderr rename to tests/ui/issues/issue-16683.stderr diff --git a/src/test/ui/issues/issue-16725.rs b/tests/ui/issues/issue-16725.rs similarity index 100% rename from src/test/ui/issues/issue-16725.rs rename to tests/ui/issues/issue-16725.rs diff --git a/src/test/ui/issues/issue-16725.stderr b/tests/ui/issues/issue-16725.stderr similarity index 100% rename from src/test/ui/issues/issue-16725.stderr rename to tests/ui/issues/issue-16725.stderr diff --git a/src/test/ui/issues/issue-16739.rs b/tests/ui/issues/issue-16739.rs similarity index 100% rename from src/test/ui/issues/issue-16739.rs rename to tests/ui/issues/issue-16739.rs diff --git a/src/test/ui/issues/issue-16745.rs b/tests/ui/issues/issue-16745.rs similarity index 100% rename from src/test/ui/issues/issue-16745.rs rename to tests/ui/issues/issue-16745.rs diff --git a/src/test/ui/issues/issue-16774.rs b/tests/ui/issues/issue-16774.rs similarity index 100% rename from src/test/ui/issues/issue-16774.rs rename to tests/ui/issues/issue-16774.rs diff --git a/src/test/ui/issues/issue-16783.rs b/tests/ui/issues/issue-16783.rs similarity index 100% rename from src/test/ui/issues/issue-16783.rs rename to tests/ui/issues/issue-16783.rs diff --git a/src/test/ui/issues/issue-16819.rs b/tests/ui/issues/issue-16819.rs similarity index 100% rename from src/test/ui/issues/issue-16819.rs rename to tests/ui/issues/issue-16819.rs diff --git a/src/test/ui/issues/issue-16922-rpass.rs b/tests/ui/issues/issue-16922-rpass.rs similarity index 100% rename from src/test/ui/issues/issue-16922-rpass.rs rename to tests/ui/issues/issue-16922-rpass.rs diff --git a/src/test/ui/issues/issue-16922.rs b/tests/ui/issues/issue-16922.rs similarity index 100% rename from src/test/ui/issues/issue-16922.rs rename to tests/ui/issues/issue-16922.rs diff --git a/src/test/ui/issues/issue-16922.stderr b/tests/ui/issues/issue-16922.stderr similarity index 100% rename from src/test/ui/issues/issue-16922.stderr rename to tests/ui/issues/issue-16922.stderr diff --git a/src/test/ui/issues/issue-16939.rs b/tests/ui/issues/issue-16939.rs similarity index 100% rename from src/test/ui/issues/issue-16939.rs rename to tests/ui/issues/issue-16939.rs diff --git a/src/test/ui/issues/issue-16939.stderr b/tests/ui/issues/issue-16939.stderr similarity index 100% rename from src/test/ui/issues/issue-16939.stderr rename to tests/ui/issues/issue-16939.stderr diff --git a/src/test/ui/issues/issue-1696.rs b/tests/ui/issues/issue-1696.rs similarity index 100% rename from src/test/ui/issues/issue-1696.rs rename to tests/ui/issues/issue-1696.rs diff --git a/src/test/ui/issues/issue-16966.rs b/tests/ui/issues/issue-16966.rs similarity index 100% rename from src/test/ui/issues/issue-16966.rs rename to tests/ui/issues/issue-16966.rs diff --git a/src/test/ui/issues/issue-16966.stderr b/tests/ui/issues/issue-16966.stderr similarity index 100% rename from src/test/ui/issues/issue-16966.stderr rename to tests/ui/issues/issue-16966.stderr diff --git a/src/test/ui/issues/issue-16994.rs b/tests/ui/issues/issue-16994.rs similarity index 100% rename from src/test/ui/issues/issue-16994.rs rename to tests/ui/issues/issue-16994.rs diff --git a/src/test/ui/issues/issue-17001.rs b/tests/ui/issues/issue-17001.rs similarity index 100% rename from src/test/ui/issues/issue-17001.rs rename to tests/ui/issues/issue-17001.rs diff --git a/src/test/ui/issues/issue-17001.stderr b/tests/ui/issues/issue-17001.stderr similarity index 100% rename from src/test/ui/issues/issue-17001.stderr rename to tests/ui/issues/issue-17001.stderr diff --git a/src/test/ui/issues/issue-17033.rs b/tests/ui/issues/issue-17033.rs similarity index 100% rename from src/test/ui/issues/issue-17033.rs rename to tests/ui/issues/issue-17033.rs diff --git a/src/test/ui/issues/issue-17033.stderr b/tests/ui/issues/issue-17033.stderr similarity index 100% rename from src/test/ui/issues/issue-17033.stderr rename to tests/ui/issues/issue-17033.stderr diff --git a/src/test/ui/issues/issue-17068.rs b/tests/ui/issues/issue-17068.rs similarity index 100% rename from src/test/ui/issues/issue-17068.rs rename to tests/ui/issues/issue-17068.rs diff --git a/src/test/ui/issues/issue-17121.rs b/tests/ui/issues/issue-17121.rs similarity index 100% rename from src/test/ui/issues/issue-17121.rs rename to tests/ui/issues/issue-17121.rs diff --git a/src/test/ui/issues/issue-17216.rs b/tests/ui/issues/issue-17216.rs similarity index 100% rename from src/test/ui/issues/issue-17216.rs rename to tests/ui/issues/issue-17216.rs diff --git a/src/test/ui/issues/issue-17252.rs b/tests/ui/issues/issue-17252.rs similarity index 100% rename from src/test/ui/issues/issue-17252.rs rename to tests/ui/issues/issue-17252.rs diff --git a/src/test/ui/issues/issue-17252.stderr b/tests/ui/issues/issue-17252.stderr similarity index 100% rename from src/test/ui/issues/issue-17252.stderr rename to tests/ui/issues/issue-17252.stderr diff --git a/src/test/ui/issues/issue-17302.rs b/tests/ui/issues/issue-17302.rs similarity index 100% rename from src/test/ui/issues/issue-17302.rs rename to tests/ui/issues/issue-17302.rs diff --git a/src/test/ui/issues/issue-17322.rs b/tests/ui/issues/issue-17322.rs similarity index 100% rename from src/test/ui/issues/issue-17322.rs rename to tests/ui/issues/issue-17322.rs diff --git a/src/test/ui/issues/issue-17336.rs b/tests/ui/issues/issue-17336.rs similarity index 100% rename from src/test/ui/issues/issue-17336.rs rename to tests/ui/issues/issue-17336.rs diff --git a/src/test/ui/issues/issue-17337.rs b/tests/ui/issues/issue-17337.rs similarity index 100% rename from src/test/ui/issues/issue-17337.rs rename to tests/ui/issues/issue-17337.rs diff --git a/src/test/ui/issues/issue-17337.stderr b/tests/ui/issues/issue-17337.stderr similarity index 100% rename from src/test/ui/issues/issue-17337.stderr rename to tests/ui/issues/issue-17337.stderr diff --git a/src/test/ui/issues/issue-17351.rs b/tests/ui/issues/issue-17351.rs similarity index 100% rename from src/test/ui/issues/issue-17351.rs rename to tests/ui/issues/issue-17351.rs diff --git a/src/test/ui/issues/issue-17361.rs b/tests/ui/issues/issue-17361.rs similarity index 100% rename from src/test/ui/issues/issue-17361.rs rename to tests/ui/issues/issue-17361.rs diff --git a/src/test/ui/issues/issue-17373.rs b/tests/ui/issues/issue-17373.rs similarity index 100% rename from src/test/ui/issues/issue-17373.rs rename to tests/ui/issues/issue-17373.rs diff --git a/src/test/ui/issues/issue-17373.stderr b/tests/ui/issues/issue-17373.stderr similarity index 100% rename from src/test/ui/issues/issue-17373.stderr rename to tests/ui/issues/issue-17373.stderr diff --git a/src/test/ui/issues/issue-17385.rs b/tests/ui/issues/issue-17385.rs similarity index 100% rename from src/test/ui/issues/issue-17385.rs rename to tests/ui/issues/issue-17385.rs diff --git a/src/test/ui/issues/issue-17385.stderr b/tests/ui/issues/issue-17385.stderr similarity index 100% rename from src/test/ui/issues/issue-17385.stderr rename to tests/ui/issues/issue-17385.stderr diff --git a/src/test/ui/issues/issue-17405.rs b/tests/ui/issues/issue-17405.rs similarity index 100% rename from src/test/ui/issues/issue-17405.rs rename to tests/ui/issues/issue-17405.rs diff --git a/src/test/ui/issues/issue-17405.stderr b/tests/ui/issues/issue-17405.stderr similarity index 100% rename from src/test/ui/issues/issue-17405.stderr rename to tests/ui/issues/issue-17405.stderr diff --git a/src/test/ui/issues/issue-17431-1.rs b/tests/ui/issues/issue-17431-1.rs similarity index 100% rename from src/test/ui/issues/issue-17431-1.rs rename to tests/ui/issues/issue-17431-1.rs diff --git a/src/test/ui/issues/issue-17431-1.stderr b/tests/ui/issues/issue-17431-1.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-1.stderr rename to tests/ui/issues/issue-17431-1.stderr diff --git a/src/test/ui/issues/issue-17431-2.rs b/tests/ui/issues/issue-17431-2.rs similarity index 100% rename from src/test/ui/issues/issue-17431-2.rs rename to tests/ui/issues/issue-17431-2.rs diff --git a/src/test/ui/issues/issue-17431-2.stderr b/tests/ui/issues/issue-17431-2.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-2.stderr rename to tests/ui/issues/issue-17431-2.stderr diff --git a/src/test/ui/issues/issue-17431-3.rs b/tests/ui/issues/issue-17431-3.rs similarity index 100% rename from src/test/ui/issues/issue-17431-3.rs rename to tests/ui/issues/issue-17431-3.rs diff --git a/src/test/ui/issues/issue-17431-3.stderr b/tests/ui/issues/issue-17431-3.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-3.stderr rename to tests/ui/issues/issue-17431-3.stderr diff --git a/src/test/ui/issues/issue-17431-4.rs b/tests/ui/issues/issue-17431-4.rs similarity index 100% rename from src/test/ui/issues/issue-17431-4.rs rename to tests/ui/issues/issue-17431-4.rs diff --git a/src/test/ui/issues/issue-17431-4.stderr b/tests/ui/issues/issue-17431-4.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-4.stderr rename to tests/ui/issues/issue-17431-4.stderr diff --git a/src/test/ui/issues/issue-17431-5.rs b/tests/ui/issues/issue-17431-5.rs similarity index 100% rename from src/test/ui/issues/issue-17431-5.rs rename to tests/ui/issues/issue-17431-5.rs diff --git a/src/test/ui/issues/issue-17431-5.stderr b/tests/ui/issues/issue-17431-5.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-5.stderr rename to tests/ui/issues/issue-17431-5.stderr diff --git a/src/test/ui/issues/issue-17431-6.rs b/tests/ui/issues/issue-17431-6.rs similarity index 100% rename from src/test/ui/issues/issue-17431-6.rs rename to tests/ui/issues/issue-17431-6.rs diff --git a/src/test/ui/issues/issue-17431-6.stderr b/tests/ui/issues/issue-17431-6.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-6.stderr rename to tests/ui/issues/issue-17431-6.stderr diff --git a/src/test/ui/issues/issue-17431-7.rs b/tests/ui/issues/issue-17431-7.rs similarity index 100% rename from src/test/ui/issues/issue-17431-7.rs rename to tests/ui/issues/issue-17431-7.rs diff --git a/src/test/ui/issues/issue-17431-7.stderr b/tests/ui/issues/issue-17431-7.stderr similarity index 100% rename from src/test/ui/issues/issue-17431-7.stderr rename to tests/ui/issues/issue-17431-7.stderr diff --git a/src/test/ui/issues/issue-17441.rs b/tests/ui/issues/issue-17441.rs similarity index 100% rename from src/test/ui/issues/issue-17441.rs rename to tests/ui/issues/issue-17441.rs diff --git a/src/test/ui/issues/issue-17441.stderr b/tests/ui/issues/issue-17441.stderr similarity index 100% rename from src/test/ui/issues/issue-17441.stderr rename to tests/ui/issues/issue-17441.stderr diff --git a/src/test/ui/issues/issue-17450.rs b/tests/ui/issues/issue-17450.rs similarity index 100% rename from src/test/ui/issues/issue-17450.rs rename to tests/ui/issues/issue-17450.rs diff --git a/src/test/ui/issues/issue-17503.rs b/tests/ui/issues/issue-17503.rs similarity index 100% rename from src/test/ui/issues/issue-17503.rs rename to tests/ui/issues/issue-17503.rs diff --git a/src/test/ui/issues/issue-17546.rs b/tests/ui/issues/issue-17546.rs similarity index 100% rename from src/test/ui/issues/issue-17546.rs rename to tests/ui/issues/issue-17546.rs diff --git a/src/test/ui/issues/issue-17546.stderr b/tests/ui/issues/issue-17546.stderr similarity index 100% rename from src/test/ui/issues/issue-17546.stderr rename to tests/ui/issues/issue-17546.stderr diff --git a/src/test/ui/issues/issue-17551.rs b/tests/ui/issues/issue-17551.rs similarity index 100% rename from src/test/ui/issues/issue-17551.rs rename to tests/ui/issues/issue-17551.rs diff --git a/src/test/ui/issues/issue-17551.stderr b/tests/ui/issues/issue-17551.stderr similarity index 100% rename from src/test/ui/issues/issue-17551.stderr rename to tests/ui/issues/issue-17551.stderr diff --git a/src/test/ui/issues/issue-17651.rs b/tests/ui/issues/issue-17651.rs similarity index 100% rename from src/test/ui/issues/issue-17651.rs rename to tests/ui/issues/issue-17651.rs diff --git a/src/test/ui/issues/issue-17651.stderr b/tests/ui/issues/issue-17651.stderr similarity index 100% rename from src/test/ui/issues/issue-17651.stderr rename to tests/ui/issues/issue-17651.stderr diff --git a/src/test/ui/issues/issue-17662.rs b/tests/ui/issues/issue-17662.rs similarity index 100% rename from src/test/ui/issues/issue-17662.rs rename to tests/ui/issues/issue-17662.rs diff --git a/src/test/ui/issues/issue-17732.rs b/tests/ui/issues/issue-17732.rs similarity index 100% rename from src/test/ui/issues/issue-17732.rs rename to tests/ui/issues/issue-17732.rs diff --git a/src/test/ui/issues/issue-17734.rs b/tests/ui/issues/issue-17734.rs similarity index 100% rename from src/test/ui/issues/issue-17734.rs rename to tests/ui/issues/issue-17734.rs diff --git a/src/test/ui/issues/issue-17740.rs b/tests/ui/issues/issue-17740.rs similarity index 100% rename from src/test/ui/issues/issue-17740.rs rename to tests/ui/issues/issue-17740.rs diff --git a/src/test/ui/issues/issue-17740.stderr b/tests/ui/issues/issue-17740.stderr similarity index 100% rename from src/test/ui/issues/issue-17740.stderr rename to tests/ui/issues/issue-17740.stderr diff --git a/src/test/ui/issues/issue-17746.rs b/tests/ui/issues/issue-17746.rs similarity index 100% rename from src/test/ui/issues/issue-17746.rs rename to tests/ui/issues/issue-17746.rs diff --git a/src/test/ui/issues/issue-17758.rs b/tests/ui/issues/issue-17758.rs similarity index 100% rename from src/test/ui/issues/issue-17758.rs rename to tests/ui/issues/issue-17758.rs diff --git a/src/test/ui/issues/issue-17758.stderr b/tests/ui/issues/issue-17758.stderr similarity index 100% rename from src/test/ui/issues/issue-17758.stderr rename to tests/ui/issues/issue-17758.stderr diff --git a/src/test/ui/issues/issue-17771.rs b/tests/ui/issues/issue-17771.rs similarity index 100% rename from src/test/ui/issues/issue-17771.rs rename to tests/ui/issues/issue-17771.rs diff --git a/src/test/ui/issues/issue-17800.rs b/tests/ui/issues/issue-17800.rs similarity index 100% rename from src/test/ui/issues/issue-17800.rs rename to tests/ui/issues/issue-17800.rs diff --git a/src/test/ui/issues/issue-17800.stderr b/tests/ui/issues/issue-17800.stderr similarity index 100% rename from src/test/ui/issues/issue-17800.stderr rename to tests/ui/issues/issue-17800.stderr diff --git a/src/test/ui/issues/issue-17816.rs b/tests/ui/issues/issue-17816.rs similarity index 100% rename from src/test/ui/issues/issue-17816.rs rename to tests/ui/issues/issue-17816.rs diff --git a/src/test/ui/issues/issue-17877.rs b/tests/ui/issues/issue-17877.rs similarity index 100% rename from src/test/ui/issues/issue-17877.rs rename to tests/ui/issues/issue-17877.rs diff --git a/src/test/ui/issues/issue-17897.rs b/tests/ui/issues/issue-17897.rs similarity index 100% rename from src/test/ui/issues/issue-17897.rs rename to tests/ui/issues/issue-17897.rs diff --git a/src/test/ui/issues/issue-17904-2.rs b/tests/ui/issues/issue-17904-2.rs similarity index 100% rename from src/test/ui/issues/issue-17904-2.rs rename to tests/ui/issues/issue-17904-2.rs diff --git a/src/test/ui/issues/issue-17904-2.stderr b/tests/ui/issues/issue-17904-2.stderr similarity index 100% rename from src/test/ui/issues/issue-17904-2.stderr rename to tests/ui/issues/issue-17904-2.stderr diff --git a/src/test/ui/issues/issue-17904.rs b/tests/ui/issues/issue-17904.rs similarity index 100% rename from src/test/ui/issues/issue-17904.rs rename to tests/ui/issues/issue-17904.rs diff --git a/src/test/ui/issues/issue-17905-2.rs b/tests/ui/issues/issue-17905-2.rs similarity index 100% rename from src/test/ui/issues/issue-17905-2.rs rename to tests/ui/issues/issue-17905-2.rs diff --git a/src/test/ui/issues/issue-17905-2.stderr b/tests/ui/issues/issue-17905-2.stderr similarity index 100% rename from src/test/ui/issues/issue-17905-2.stderr rename to tests/ui/issues/issue-17905-2.stderr diff --git a/src/test/ui/issues/issue-17905.rs b/tests/ui/issues/issue-17905.rs similarity index 100% rename from src/test/ui/issues/issue-17905.rs rename to tests/ui/issues/issue-17905.rs diff --git a/src/test/ui/issues/issue-17933.rs b/tests/ui/issues/issue-17933.rs similarity index 100% rename from src/test/ui/issues/issue-17933.rs rename to tests/ui/issues/issue-17933.rs diff --git a/src/test/ui/issues/issue-17933.stderr b/tests/ui/issues/issue-17933.stderr similarity index 100% rename from src/test/ui/issues/issue-17933.stderr rename to tests/ui/issues/issue-17933.stderr diff --git a/src/test/ui/issues/issue-17954.rs b/tests/ui/issues/issue-17954.rs similarity index 100% rename from src/test/ui/issues/issue-17954.rs rename to tests/ui/issues/issue-17954.rs diff --git a/src/test/ui/issues/issue-17954.stderr b/tests/ui/issues/issue-17954.stderr similarity index 100% rename from src/test/ui/issues/issue-17954.stderr rename to tests/ui/issues/issue-17954.stderr diff --git a/src/test/ui/issues/issue-17959.rs b/tests/ui/issues/issue-17959.rs similarity index 100% rename from src/test/ui/issues/issue-17959.rs rename to tests/ui/issues/issue-17959.rs diff --git a/src/test/ui/issues/issue-17959.stderr b/tests/ui/issues/issue-17959.stderr similarity index 100% rename from src/test/ui/issues/issue-17959.stderr rename to tests/ui/issues/issue-17959.stderr diff --git a/src/test/ui/issues/issue-17994.rs b/tests/ui/issues/issue-17994.rs similarity index 100% rename from src/test/ui/issues/issue-17994.rs rename to tests/ui/issues/issue-17994.rs diff --git a/src/test/ui/issues/issue-17994.stderr b/tests/ui/issues/issue-17994.stderr similarity index 100% rename from src/test/ui/issues/issue-17994.stderr rename to tests/ui/issues/issue-17994.stderr diff --git a/src/test/ui/issues/issue-17999.rs b/tests/ui/issues/issue-17999.rs similarity index 100% rename from src/test/ui/issues/issue-17999.rs rename to tests/ui/issues/issue-17999.rs diff --git a/src/test/ui/issues/issue-17999.stderr b/tests/ui/issues/issue-17999.stderr similarity index 100% rename from src/test/ui/issues/issue-17999.stderr rename to tests/ui/issues/issue-17999.stderr diff --git a/src/test/ui/issues/issue-18058.rs b/tests/ui/issues/issue-18058.rs similarity index 100% rename from src/test/ui/issues/issue-18058.rs rename to tests/ui/issues/issue-18058.rs diff --git a/src/test/ui/issues/issue-18058.stderr b/tests/ui/issues/issue-18058.stderr similarity index 100% rename from src/test/ui/issues/issue-18058.stderr rename to tests/ui/issues/issue-18058.stderr diff --git a/src/test/ui/issues/issue-18088.rs b/tests/ui/issues/issue-18088.rs similarity index 100% rename from src/test/ui/issues/issue-18088.rs rename to tests/ui/issues/issue-18088.rs diff --git a/src/test/ui/issues/issue-18107.rs b/tests/ui/issues/issue-18107.rs similarity index 100% rename from src/test/ui/issues/issue-18107.rs rename to tests/ui/issues/issue-18107.rs diff --git a/src/test/ui/issues/issue-18107.stderr b/tests/ui/issues/issue-18107.stderr similarity index 100% rename from src/test/ui/issues/issue-18107.stderr rename to tests/ui/issues/issue-18107.stderr diff --git a/src/test/ui/issues/issue-18110.rs b/tests/ui/issues/issue-18110.rs similarity index 100% rename from src/test/ui/issues/issue-18110.rs rename to tests/ui/issues/issue-18110.rs diff --git a/src/test/ui/issues/issue-18119.rs b/tests/ui/issues/issue-18119.rs similarity index 100% rename from src/test/ui/issues/issue-18119.rs rename to tests/ui/issues/issue-18119.rs diff --git a/src/test/ui/issues/issue-18119.stderr b/tests/ui/issues/issue-18119.stderr similarity index 100% rename from src/test/ui/issues/issue-18119.stderr rename to tests/ui/issues/issue-18119.stderr diff --git a/src/test/ui/issues/issue-18159.rs b/tests/ui/issues/issue-18159.rs similarity index 100% rename from src/test/ui/issues/issue-18159.rs rename to tests/ui/issues/issue-18159.rs diff --git a/src/test/ui/issues/issue-18159.stderr b/tests/ui/issues/issue-18159.stderr similarity index 100% rename from src/test/ui/issues/issue-18159.stderr rename to tests/ui/issues/issue-18159.stderr diff --git a/src/test/ui/issues/issue-18173.rs b/tests/ui/issues/issue-18173.rs similarity index 100% rename from src/test/ui/issues/issue-18173.rs rename to tests/ui/issues/issue-18173.rs diff --git a/src/test/ui/issues/issue-18183.rs b/tests/ui/issues/issue-18183.rs similarity index 100% rename from src/test/ui/issues/issue-18183.rs rename to tests/ui/issues/issue-18183.rs diff --git a/src/test/ui/issues/issue-18183.stderr b/tests/ui/issues/issue-18183.stderr similarity index 100% rename from src/test/ui/issues/issue-18183.stderr rename to tests/ui/issues/issue-18183.stderr diff --git a/src/test/ui/issues/issue-18188.rs b/tests/ui/issues/issue-18188.rs similarity index 100% rename from src/test/ui/issues/issue-18188.rs rename to tests/ui/issues/issue-18188.rs diff --git a/src/test/ui/issues/issue-1821.rs b/tests/ui/issues/issue-1821.rs similarity index 100% rename from src/test/ui/issues/issue-1821.rs rename to tests/ui/issues/issue-1821.rs diff --git a/src/test/ui/issues/issue-18232.rs b/tests/ui/issues/issue-18232.rs similarity index 100% rename from src/test/ui/issues/issue-18232.rs rename to tests/ui/issues/issue-18232.rs diff --git a/src/test/ui/issues/issue-18352.rs b/tests/ui/issues/issue-18352.rs similarity index 100% rename from src/test/ui/issues/issue-18352.rs rename to tests/ui/issues/issue-18352.rs diff --git a/src/test/ui/issues/issue-18353.rs b/tests/ui/issues/issue-18353.rs similarity index 100% rename from src/test/ui/issues/issue-18353.rs rename to tests/ui/issues/issue-18353.rs diff --git a/src/test/ui/issues/issue-18389.rs b/tests/ui/issues/issue-18389.rs similarity index 100% rename from src/test/ui/issues/issue-18389.rs rename to tests/ui/issues/issue-18389.rs diff --git a/src/test/ui/issues/issue-18389.stderr b/tests/ui/issues/issue-18389.stderr similarity index 100% rename from src/test/ui/issues/issue-18389.stderr rename to tests/ui/issues/issue-18389.stderr diff --git a/src/test/ui/issues/issue-18423.rs b/tests/ui/issues/issue-18423.rs similarity index 100% rename from src/test/ui/issues/issue-18423.rs rename to tests/ui/issues/issue-18423.rs diff --git a/src/test/ui/issues/issue-18423.stderr b/tests/ui/issues/issue-18423.stderr similarity index 100% rename from src/test/ui/issues/issue-18423.stderr rename to tests/ui/issues/issue-18423.stderr diff --git a/src/test/ui/issues/issue-18446-2.rs b/tests/ui/issues/issue-18446-2.rs similarity index 100% rename from src/test/ui/issues/issue-18446-2.rs rename to tests/ui/issues/issue-18446-2.rs diff --git a/src/test/ui/issues/issue-18446.rs b/tests/ui/issues/issue-18446.rs similarity index 100% rename from src/test/ui/issues/issue-18446.rs rename to tests/ui/issues/issue-18446.rs diff --git a/src/test/ui/issues/issue-18446.stderr b/tests/ui/issues/issue-18446.stderr similarity index 100% rename from src/test/ui/issues/issue-18446.stderr rename to tests/ui/issues/issue-18446.stderr diff --git a/src/test/ui/issues/issue-18464.rs b/tests/ui/issues/issue-18464.rs similarity index 100% rename from src/test/ui/issues/issue-18464.rs rename to tests/ui/issues/issue-18464.rs diff --git a/src/test/ui/issues/issue-18501.rs b/tests/ui/issues/issue-18501.rs similarity index 100% rename from src/test/ui/issues/issue-18501.rs rename to tests/ui/issues/issue-18501.rs diff --git a/src/test/ui/issues/issue-18514.rs b/tests/ui/issues/issue-18514.rs similarity index 100% rename from src/test/ui/issues/issue-18514.rs rename to tests/ui/issues/issue-18514.rs diff --git a/src/test/ui/issues/issue-18532.rs b/tests/ui/issues/issue-18532.rs similarity index 100% rename from src/test/ui/issues/issue-18532.rs rename to tests/ui/issues/issue-18532.rs diff --git a/src/test/ui/issues/issue-18532.stderr b/tests/ui/issues/issue-18532.stderr similarity index 100% rename from src/test/ui/issues/issue-18532.stderr rename to tests/ui/issues/issue-18532.stderr diff --git a/src/test/ui/issues/issue-18539.rs b/tests/ui/issues/issue-18539.rs similarity index 100% rename from src/test/ui/issues/issue-18539.rs rename to tests/ui/issues/issue-18539.rs diff --git a/src/test/ui/issues/issue-18566.rs b/tests/ui/issues/issue-18566.rs similarity index 100% rename from src/test/ui/issues/issue-18566.rs rename to tests/ui/issues/issue-18566.rs diff --git a/src/test/ui/issues/issue-18566.stderr b/tests/ui/issues/issue-18566.stderr similarity index 100% rename from src/test/ui/issues/issue-18566.stderr rename to tests/ui/issues/issue-18566.stderr diff --git a/src/test/ui/issues/issue-18576.rs b/tests/ui/issues/issue-18576.rs similarity index 100% rename from src/test/ui/issues/issue-18576.rs rename to tests/ui/issues/issue-18576.rs diff --git a/src/test/ui/issues/issue-18611.rs b/tests/ui/issues/issue-18611.rs similarity index 100% rename from src/test/ui/issues/issue-18611.rs rename to tests/ui/issues/issue-18611.rs diff --git a/src/test/ui/issues/issue-18611.stderr b/tests/ui/issues/issue-18611.stderr similarity index 100% rename from src/test/ui/issues/issue-18611.stderr rename to tests/ui/issues/issue-18611.stderr diff --git a/src/test/ui/issues/issue-18685.rs b/tests/ui/issues/issue-18685.rs similarity index 100% rename from src/test/ui/issues/issue-18685.rs rename to tests/ui/issues/issue-18685.rs diff --git a/src/test/ui/issues/issue-1871.rs b/tests/ui/issues/issue-1871.rs similarity index 100% rename from src/test/ui/issues/issue-1871.rs rename to tests/ui/issues/issue-1871.rs diff --git a/src/test/ui/issues/issue-1871.stderr b/tests/ui/issues/issue-1871.stderr similarity index 100% rename from src/test/ui/issues/issue-1871.stderr rename to tests/ui/issues/issue-1871.stderr diff --git a/src/test/ui/issues/issue-18711.rs b/tests/ui/issues/issue-18711.rs similarity index 100% rename from src/test/ui/issues/issue-18711.rs rename to tests/ui/issues/issue-18711.rs diff --git a/src/test/ui/issues/issue-18738.rs b/tests/ui/issues/issue-18738.rs similarity index 100% rename from src/test/ui/issues/issue-18738.rs rename to tests/ui/issues/issue-18738.rs diff --git a/src/test/ui/issues/issue-18767.rs b/tests/ui/issues/issue-18767.rs similarity index 100% rename from src/test/ui/issues/issue-18767.rs rename to tests/ui/issues/issue-18767.rs diff --git a/src/test/ui/issues/issue-18783.rs b/tests/ui/issues/issue-18783.rs similarity index 100% rename from src/test/ui/issues/issue-18783.rs rename to tests/ui/issues/issue-18783.rs diff --git a/src/test/ui/issues/issue-18783.stderr b/tests/ui/issues/issue-18783.stderr similarity index 100% rename from src/test/ui/issues/issue-18783.stderr rename to tests/ui/issues/issue-18783.stderr diff --git a/src/test/ui/issues/issue-18804/auxiliary/lib.rs b/tests/ui/issues/issue-18804/auxiliary/lib.rs similarity index 100% rename from src/test/ui/issues/issue-18804/auxiliary/lib.rs rename to tests/ui/issues/issue-18804/auxiliary/lib.rs diff --git a/src/test/ui/issues/issue-18804/main.rs b/tests/ui/issues/issue-18804/main.rs similarity index 100% rename from src/test/ui/issues/issue-18804/main.rs rename to tests/ui/issues/issue-18804/main.rs diff --git a/src/test/ui/issues/issue-18809.rs b/tests/ui/issues/issue-18809.rs similarity index 100% rename from src/test/ui/issues/issue-18809.rs rename to tests/ui/issues/issue-18809.rs diff --git a/src/test/ui/issues/issue-18819.rs b/tests/ui/issues/issue-18819.rs similarity index 100% rename from src/test/ui/issues/issue-18819.rs rename to tests/ui/issues/issue-18819.rs diff --git a/src/test/ui/issues/issue-18819.stderr b/tests/ui/issues/issue-18819.stderr similarity index 100% rename from src/test/ui/issues/issue-18819.stderr rename to tests/ui/issues/issue-18819.stderr diff --git a/src/test/ui/issues/issue-18845.rs b/tests/ui/issues/issue-18845.rs similarity index 100% rename from src/test/ui/issues/issue-18845.rs rename to tests/ui/issues/issue-18845.rs diff --git a/src/test/ui/issues/issue-18859.rs b/tests/ui/issues/issue-18859.rs similarity index 100% rename from src/test/ui/issues/issue-18859.rs rename to tests/ui/issues/issue-18859.rs diff --git a/src/test/ui/issues/issue-18906.rs b/tests/ui/issues/issue-18906.rs similarity index 100% rename from src/test/ui/issues/issue-18906.rs rename to tests/ui/issues/issue-18906.rs diff --git a/src/test/ui/issues/issue-18913.rs b/tests/ui/issues/issue-18913.rs similarity index 100% rename from src/test/ui/issues/issue-18913.rs rename to tests/ui/issues/issue-18913.rs diff --git a/src/test/ui/issues/issue-18919.rs b/tests/ui/issues/issue-18919.rs similarity index 100% rename from src/test/ui/issues/issue-18919.rs rename to tests/ui/issues/issue-18919.rs diff --git a/src/test/ui/issues/issue-18919.stderr b/tests/ui/issues/issue-18919.stderr similarity index 100% rename from src/test/ui/issues/issue-18919.stderr rename to tests/ui/issues/issue-18919.stderr diff --git a/src/test/ui/issues/issue-18952.rs b/tests/ui/issues/issue-18952.rs similarity index 100% rename from src/test/ui/issues/issue-18952.rs rename to tests/ui/issues/issue-18952.rs diff --git a/src/test/ui/issues/issue-18959.rs b/tests/ui/issues/issue-18959.rs similarity index 100% rename from src/test/ui/issues/issue-18959.rs rename to tests/ui/issues/issue-18959.rs diff --git a/src/test/ui/issues/issue-18959.stderr b/tests/ui/issues/issue-18959.stderr similarity index 100% rename from src/test/ui/issues/issue-18959.stderr rename to tests/ui/issues/issue-18959.stderr diff --git a/src/test/ui/issues/issue-18988.rs b/tests/ui/issues/issue-18988.rs similarity index 100% rename from src/test/ui/issues/issue-18988.rs rename to tests/ui/issues/issue-18988.rs diff --git a/src/test/ui/issues/issue-1900.rs b/tests/ui/issues/issue-1900.rs similarity index 100% rename from src/test/ui/issues/issue-1900.rs rename to tests/ui/issues/issue-1900.rs diff --git a/src/test/ui/issues/issue-1900.stderr b/tests/ui/issues/issue-1900.stderr similarity index 100% rename from src/test/ui/issues/issue-1900.stderr rename to tests/ui/issues/issue-1900.stderr diff --git a/src/test/ui/issues/issue-19001.rs b/tests/ui/issues/issue-19001.rs similarity index 100% rename from src/test/ui/issues/issue-19001.rs rename to tests/ui/issues/issue-19001.rs diff --git a/src/test/ui/issues/issue-19037.rs b/tests/ui/issues/issue-19037.rs similarity index 100% rename from src/test/ui/issues/issue-19037.rs rename to tests/ui/issues/issue-19037.rs diff --git a/src/test/ui/issues/issue-19086.rs b/tests/ui/issues/issue-19086.rs similarity index 100% rename from src/test/ui/issues/issue-19086.rs rename to tests/ui/issues/issue-19086.rs diff --git a/src/test/ui/issues/issue-19086.stderr b/tests/ui/issues/issue-19086.stderr similarity index 100% rename from src/test/ui/issues/issue-19086.stderr rename to tests/ui/issues/issue-19086.stderr diff --git a/src/test/ui/issues/issue-19097.rs b/tests/ui/issues/issue-19097.rs similarity index 100% rename from src/test/ui/issues/issue-19097.rs rename to tests/ui/issues/issue-19097.rs diff --git a/src/test/ui/issues/issue-19098.rs b/tests/ui/issues/issue-19098.rs similarity index 100% rename from src/test/ui/issues/issue-19098.rs rename to tests/ui/issues/issue-19098.rs diff --git a/src/test/ui/issues/issue-19100.fixed b/tests/ui/issues/issue-19100.fixed similarity index 100% rename from src/test/ui/issues/issue-19100.fixed rename to tests/ui/issues/issue-19100.fixed diff --git a/src/test/ui/issues/issue-19100.rs b/tests/ui/issues/issue-19100.rs similarity index 100% rename from src/test/ui/issues/issue-19100.rs rename to tests/ui/issues/issue-19100.rs diff --git a/src/test/ui/issues/issue-19100.stderr b/tests/ui/issues/issue-19100.stderr similarity index 100% rename from src/test/ui/issues/issue-19100.stderr rename to tests/ui/issues/issue-19100.stderr diff --git a/src/test/ui/issues/issue-19102.rs b/tests/ui/issues/issue-19102.rs similarity index 100% rename from src/test/ui/issues/issue-19102.rs rename to tests/ui/issues/issue-19102.rs diff --git a/src/test/ui/issues/issue-19127.rs b/tests/ui/issues/issue-19127.rs similarity index 100% rename from src/test/ui/issues/issue-19127.rs rename to tests/ui/issues/issue-19127.rs diff --git a/src/test/ui/issues/issue-19129-1.rs b/tests/ui/issues/issue-19129-1.rs similarity index 100% rename from src/test/ui/issues/issue-19129-1.rs rename to tests/ui/issues/issue-19129-1.rs diff --git a/src/test/ui/issues/issue-19129-2.rs b/tests/ui/issues/issue-19129-2.rs similarity index 100% rename from src/test/ui/issues/issue-19129-2.rs rename to tests/ui/issues/issue-19129-2.rs diff --git a/src/test/ui/issues/issue-19135.rs b/tests/ui/issues/issue-19135.rs similarity index 100% rename from src/test/ui/issues/issue-19135.rs rename to tests/ui/issues/issue-19135.rs diff --git a/src/test/ui/issues/issue-1920-1.rs b/tests/ui/issues/issue-1920-1.rs similarity index 100% rename from src/test/ui/issues/issue-1920-1.rs rename to tests/ui/issues/issue-1920-1.rs diff --git a/src/test/ui/issues/issue-1920-1.stderr b/tests/ui/issues/issue-1920-1.stderr similarity index 100% rename from src/test/ui/issues/issue-1920-1.stderr rename to tests/ui/issues/issue-1920-1.stderr diff --git a/src/test/ui/issues/issue-1920-2.rs b/tests/ui/issues/issue-1920-2.rs similarity index 100% rename from src/test/ui/issues/issue-1920-2.rs rename to tests/ui/issues/issue-1920-2.rs diff --git a/src/test/ui/issues/issue-1920-2.stderr b/tests/ui/issues/issue-1920-2.stderr similarity index 100% rename from src/test/ui/issues/issue-1920-2.stderr rename to tests/ui/issues/issue-1920-2.stderr diff --git a/src/test/ui/issues/issue-1920-3.rs b/tests/ui/issues/issue-1920-3.rs similarity index 100% rename from src/test/ui/issues/issue-1920-3.rs rename to tests/ui/issues/issue-1920-3.rs diff --git a/src/test/ui/issues/issue-1920-3.stderr b/tests/ui/issues/issue-1920-3.stderr similarity index 100% rename from src/test/ui/issues/issue-1920-3.stderr rename to tests/ui/issues/issue-1920-3.stderr diff --git a/src/test/ui/issues/issue-19244-1.rs b/tests/ui/issues/issue-19244-1.rs similarity index 100% rename from src/test/ui/issues/issue-19244-1.rs rename to tests/ui/issues/issue-19244-1.rs diff --git a/src/test/ui/issues/issue-19244-1.stderr b/tests/ui/issues/issue-19244-1.stderr similarity index 100% rename from src/test/ui/issues/issue-19244-1.stderr rename to tests/ui/issues/issue-19244-1.stderr diff --git a/src/test/ui/issues/issue-19244-2.rs b/tests/ui/issues/issue-19244-2.rs similarity index 100% rename from src/test/ui/issues/issue-19244-2.rs rename to tests/ui/issues/issue-19244-2.rs diff --git a/src/test/ui/issues/issue-19244-2.stderr b/tests/ui/issues/issue-19244-2.stderr similarity index 100% rename from src/test/ui/issues/issue-19244-2.stderr rename to tests/ui/issues/issue-19244-2.stderr diff --git a/src/test/ui/issues/issue-19293.rs b/tests/ui/issues/issue-19293.rs similarity index 100% rename from src/test/ui/issues/issue-19293.rs rename to tests/ui/issues/issue-19293.rs diff --git a/src/test/ui/issues/issue-19340-1.rs b/tests/ui/issues/issue-19340-1.rs similarity index 100% rename from src/test/ui/issues/issue-19340-1.rs rename to tests/ui/issues/issue-19340-1.rs diff --git a/src/test/ui/issues/issue-19340-2.rs b/tests/ui/issues/issue-19340-2.rs similarity index 100% rename from src/test/ui/issues/issue-19340-2.rs rename to tests/ui/issues/issue-19340-2.rs diff --git a/src/test/ui/issues/issue-19367.rs b/tests/ui/issues/issue-19367.rs similarity index 100% rename from src/test/ui/issues/issue-19367.rs rename to tests/ui/issues/issue-19367.rs diff --git a/src/test/ui/issues/issue-19380.rs b/tests/ui/issues/issue-19380.rs similarity index 100% rename from src/test/ui/issues/issue-19380.rs rename to tests/ui/issues/issue-19380.rs diff --git a/src/test/ui/issues/issue-19380.stderr b/tests/ui/issues/issue-19380.stderr similarity index 100% rename from src/test/ui/issues/issue-19380.stderr rename to tests/ui/issues/issue-19380.stderr diff --git a/src/test/ui/issues/issue-19398.rs b/tests/ui/issues/issue-19398.rs similarity index 100% rename from src/test/ui/issues/issue-19398.rs rename to tests/ui/issues/issue-19398.rs diff --git a/src/test/ui/issues/issue-19404.rs b/tests/ui/issues/issue-19404.rs similarity index 100% rename from src/test/ui/issues/issue-19404.rs rename to tests/ui/issues/issue-19404.rs diff --git a/src/test/ui/issues/issue-19479.rs b/tests/ui/issues/issue-19479.rs similarity index 100% rename from src/test/ui/issues/issue-19479.rs rename to tests/ui/issues/issue-19479.rs diff --git a/src/test/ui/issues/issue-19482.rs b/tests/ui/issues/issue-19482.rs similarity index 100% rename from src/test/ui/issues/issue-19482.rs rename to tests/ui/issues/issue-19482.rs diff --git a/src/test/ui/issues/issue-19482.stderr b/tests/ui/issues/issue-19482.stderr similarity index 100% rename from src/test/ui/issues/issue-19482.stderr rename to tests/ui/issues/issue-19482.stderr diff --git a/src/test/ui/issues/issue-19499.rs b/tests/ui/issues/issue-19499.rs similarity index 100% rename from src/test/ui/issues/issue-19499.rs rename to tests/ui/issues/issue-19499.rs diff --git a/src/test/ui/issues/issue-19521.rs b/tests/ui/issues/issue-19521.rs similarity index 100% rename from src/test/ui/issues/issue-19521.rs rename to tests/ui/issues/issue-19521.rs diff --git a/src/test/ui/issues/issue-19521.stderr b/tests/ui/issues/issue-19521.stderr similarity index 100% rename from src/test/ui/issues/issue-19521.stderr rename to tests/ui/issues/issue-19521.stderr diff --git a/src/test/ui/issues/issue-19601.rs b/tests/ui/issues/issue-19601.rs similarity index 100% rename from src/test/ui/issues/issue-19601.rs rename to tests/ui/issues/issue-19601.rs diff --git a/src/test/ui/issues/issue-1962.fixed b/tests/ui/issues/issue-1962.fixed similarity index 100% rename from src/test/ui/issues/issue-1962.fixed rename to tests/ui/issues/issue-1962.fixed diff --git a/src/test/ui/issues/issue-1962.rs b/tests/ui/issues/issue-1962.rs similarity index 100% rename from src/test/ui/issues/issue-1962.rs rename to tests/ui/issues/issue-1962.rs diff --git a/src/test/ui/issues/issue-1962.stderr b/tests/ui/issues/issue-1962.stderr similarity index 100% rename from src/test/ui/issues/issue-1962.stderr rename to tests/ui/issues/issue-1962.stderr diff --git a/src/test/ui/issues/issue-19631.rs b/tests/ui/issues/issue-19631.rs similarity index 100% rename from src/test/ui/issues/issue-19631.rs rename to tests/ui/issues/issue-19631.rs diff --git a/src/test/ui/issues/issue-19632.rs b/tests/ui/issues/issue-19632.rs similarity index 100% rename from src/test/ui/issues/issue-19632.rs rename to tests/ui/issues/issue-19632.rs diff --git a/src/test/ui/issues/issue-19692.rs b/tests/ui/issues/issue-19692.rs similarity index 100% rename from src/test/ui/issues/issue-19692.rs rename to tests/ui/issues/issue-19692.rs diff --git a/src/test/ui/issues/issue-19692.stderr b/tests/ui/issues/issue-19692.stderr similarity index 100% rename from src/test/ui/issues/issue-19692.stderr rename to tests/ui/issues/issue-19692.stderr diff --git a/src/test/ui/issues/issue-19707.rs b/tests/ui/issues/issue-19707.rs similarity index 100% rename from src/test/ui/issues/issue-19707.rs rename to tests/ui/issues/issue-19707.rs diff --git a/src/test/ui/issues/issue-19707.stderr b/tests/ui/issues/issue-19707.stderr similarity index 100% rename from src/test/ui/issues/issue-19707.stderr rename to tests/ui/issues/issue-19707.stderr diff --git a/src/test/ui/issues/issue-19734.rs b/tests/ui/issues/issue-19734.rs similarity index 100% rename from src/test/ui/issues/issue-19734.rs rename to tests/ui/issues/issue-19734.rs diff --git a/src/test/ui/issues/issue-19734.stderr b/tests/ui/issues/issue-19734.stderr similarity index 100% rename from src/test/ui/issues/issue-19734.stderr rename to tests/ui/issues/issue-19734.stderr diff --git a/src/test/ui/issues/issue-1974.rs b/tests/ui/issues/issue-1974.rs similarity index 100% rename from src/test/ui/issues/issue-1974.rs rename to tests/ui/issues/issue-1974.rs diff --git a/src/test/ui/issues/issue-19811-escape-unicode.rs b/tests/ui/issues/issue-19811-escape-unicode.rs similarity index 100% rename from src/test/ui/issues/issue-19811-escape-unicode.rs rename to tests/ui/issues/issue-19811-escape-unicode.rs diff --git a/src/test/ui/issues/issue-19850.rs b/tests/ui/issues/issue-19850.rs similarity index 100% rename from src/test/ui/issues/issue-19850.rs rename to tests/ui/issues/issue-19850.rs diff --git a/src/test/ui/issues/issue-19922.rs b/tests/ui/issues/issue-19922.rs similarity index 100% rename from src/test/ui/issues/issue-19922.rs rename to tests/ui/issues/issue-19922.rs diff --git a/src/test/ui/issues/issue-19922.stderr b/tests/ui/issues/issue-19922.stderr similarity index 100% rename from src/test/ui/issues/issue-19922.stderr rename to tests/ui/issues/issue-19922.stderr diff --git a/src/test/ui/issues/issue-19982.rs b/tests/ui/issues/issue-19982.rs similarity index 100% rename from src/test/ui/issues/issue-19982.rs rename to tests/ui/issues/issue-19982.rs diff --git a/src/test/ui/issues/issue-19991.rs b/tests/ui/issues/issue-19991.rs similarity index 100% rename from src/test/ui/issues/issue-19991.rs rename to tests/ui/issues/issue-19991.rs diff --git a/src/test/ui/issues/issue-19991.stderr b/tests/ui/issues/issue-19991.stderr similarity index 100% rename from src/test/ui/issues/issue-19991.stderr rename to tests/ui/issues/issue-19991.stderr diff --git a/src/test/ui/issues/issue-20009.rs b/tests/ui/issues/issue-20009.rs similarity index 100% rename from src/test/ui/issues/issue-20009.rs rename to tests/ui/issues/issue-20009.rs diff --git a/src/test/ui/issues/issue-20055-box-trait.rs b/tests/ui/issues/issue-20055-box-trait.rs similarity index 100% rename from src/test/ui/issues/issue-20055-box-trait.rs rename to tests/ui/issues/issue-20055-box-trait.rs diff --git a/src/test/ui/issues/issue-20055-box-unsized-array.rs b/tests/ui/issues/issue-20055-box-unsized-array.rs similarity index 100% rename from src/test/ui/issues/issue-20055-box-unsized-array.rs rename to tests/ui/issues/issue-20055-box-unsized-array.rs diff --git a/src/test/ui/issues/issue-20162.rs b/tests/ui/issues/issue-20162.rs similarity index 100% rename from src/test/ui/issues/issue-20162.rs rename to tests/ui/issues/issue-20162.rs diff --git a/src/test/ui/issues/issue-20162.stderr b/tests/ui/issues/issue-20162.stderr similarity index 100% rename from src/test/ui/issues/issue-20162.stderr rename to tests/ui/issues/issue-20162.stderr diff --git a/src/test/ui/issues/issue-20174.rs b/tests/ui/issues/issue-20174.rs similarity index 100% rename from src/test/ui/issues/issue-20174.rs rename to tests/ui/issues/issue-20174.rs diff --git a/src/test/ui/issues/issue-20186.rs b/tests/ui/issues/issue-20186.rs similarity index 100% rename from src/test/ui/issues/issue-20186.rs rename to tests/ui/issues/issue-20186.rs diff --git a/src/test/ui/issues/issue-20225.rs b/tests/ui/issues/issue-20225.rs similarity index 100% rename from src/test/ui/issues/issue-20225.rs rename to tests/ui/issues/issue-20225.rs diff --git a/src/test/ui/issues/issue-20225.stderr b/tests/ui/issues/issue-20225.stderr similarity index 100% rename from src/test/ui/issues/issue-20225.stderr rename to tests/ui/issues/issue-20225.stderr diff --git a/src/test/ui/issues/issue-20261.rs b/tests/ui/issues/issue-20261.rs similarity index 100% rename from src/test/ui/issues/issue-20261.rs rename to tests/ui/issues/issue-20261.rs diff --git a/src/test/ui/issues/issue-20261.stderr b/tests/ui/issues/issue-20261.stderr similarity index 100% rename from src/test/ui/issues/issue-20261.stderr rename to tests/ui/issues/issue-20261.stderr diff --git a/src/test/ui/issues/issue-20313-rpass.rs b/tests/ui/issues/issue-20313-rpass.rs similarity index 100% rename from src/test/ui/issues/issue-20313-rpass.rs rename to tests/ui/issues/issue-20313-rpass.rs diff --git a/src/test/ui/issues/issue-20313.rs b/tests/ui/issues/issue-20313.rs similarity index 100% rename from src/test/ui/issues/issue-20313.rs rename to tests/ui/issues/issue-20313.rs diff --git a/src/test/ui/issues/issue-20313.stderr b/tests/ui/issues/issue-20313.stderr similarity index 100% rename from src/test/ui/issues/issue-20313.stderr rename to tests/ui/issues/issue-20313.stderr diff --git a/src/test/ui/issues/issue-20389.rs b/tests/ui/issues/issue-20389.rs similarity index 100% rename from src/test/ui/issues/issue-20389.rs rename to tests/ui/issues/issue-20389.rs diff --git a/src/test/ui/issues/issue-20396.rs b/tests/ui/issues/issue-20396.rs similarity index 100% rename from src/test/ui/issues/issue-20396.rs rename to tests/ui/issues/issue-20396.rs diff --git a/src/test/ui/issues/issue-20413.rs b/tests/ui/issues/issue-20413.rs similarity index 100% rename from src/test/ui/issues/issue-20413.rs rename to tests/ui/issues/issue-20413.rs diff --git a/src/test/ui/issues/issue-20413.stderr b/tests/ui/issues/issue-20413.stderr similarity index 100% rename from src/test/ui/issues/issue-20413.stderr rename to tests/ui/issues/issue-20413.stderr diff --git a/src/test/ui/issues/issue-20414.rs b/tests/ui/issues/issue-20414.rs similarity index 100% rename from src/test/ui/issues/issue-20414.rs rename to tests/ui/issues/issue-20414.rs diff --git a/src/test/ui/issues/issue-20427.rs b/tests/ui/issues/issue-20427.rs similarity index 100% rename from src/test/ui/issues/issue-20427.rs rename to tests/ui/issues/issue-20427.rs diff --git a/src/test/ui/issues/issue-20433.rs b/tests/ui/issues/issue-20433.rs similarity index 100% rename from src/test/ui/issues/issue-20433.rs rename to tests/ui/issues/issue-20433.rs diff --git a/src/test/ui/issues/issue-20433.stderr b/tests/ui/issues/issue-20433.stderr similarity index 100% rename from src/test/ui/issues/issue-20433.stderr rename to tests/ui/issues/issue-20433.stderr diff --git a/src/test/ui/issues/issue-20454.rs b/tests/ui/issues/issue-20454.rs similarity index 100% rename from src/test/ui/issues/issue-20454.rs rename to tests/ui/issues/issue-20454.rs diff --git a/src/test/ui/issues/issue-20544.rs b/tests/ui/issues/issue-20544.rs similarity index 100% rename from src/test/ui/issues/issue-20544.rs rename to tests/ui/issues/issue-20544.rs diff --git a/src/test/ui/issues/issue-20575.rs b/tests/ui/issues/issue-20575.rs similarity index 100% rename from src/test/ui/issues/issue-20575.rs rename to tests/ui/issues/issue-20575.rs diff --git a/src/test/ui/issues/issue-20605.rs b/tests/ui/issues/issue-20605.rs similarity index 100% rename from src/test/ui/issues/issue-20605.rs rename to tests/ui/issues/issue-20605.rs diff --git a/src/test/ui/issues/issue-20605.stderr b/tests/ui/issues/issue-20605.stderr similarity index 100% rename from src/test/ui/issues/issue-20605.stderr rename to tests/ui/issues/issue-20605.stderr diff --git a/src/test/ui/issues/issue-20616.rs b/tests/ui/issues/issue-20616.rs similarity index 100% rename from src/test/ui/issues/issue-20616.rs rename to tests/ui/issues/issue-20616.rs diff --git a/src/test/ui/issues/issue-2063-resource.rs b/tests/ui/issues/issue-2063-resource.rs similarity index 100% rename from src/test/ui/issues/issue-2063-resource.rs rename to tests/ui/issues/issue-2063-resource.rs diff --git a/src/test/ui/issues/issue-2063.rs b/tests/ui/issues/issue-2063.rs similarity index 100% rename from src/test/ui/issues/issue-2063.rs rename to tests/ui/issues/issue-2063.rs diff --git a/src/test/ui/issues/issue-20644.rs b/tests/ui/issues/issue-20644.rs similarity index 100% rename from src/test/ui/issues/issue-20644.rs rename to tests/ui/issues/issue-20644.rs diff --git a/src/test/ui/issues/issue-20676.rs b/tests/ui/issues/issue-20676.rs similarity index 100% rename from src/test/ui/issues/issue-20676.rs rename to tests/ui/issues/issue-20676.rs diff --git a/src/test/ui/issues/issue-20714.rs b/tests/ui/issues/issue-20714.rs similarity index 100% rename from src/test/ui/issues/issue-20714.rs rename to tests/ui/issues/issue-20714.rs diff --git a/src/test/ui/issues/issue-20714.stderr b/tests/ui/issues/issue-20714.stderr similarity index 100% rename from src/test/ui/issues/issue-20714.stderr rename to tests/ui/issues/issue-20714.stderr diff --git a/src/test/ui/issues/issue-2074.rs b/tests/ui/issues/issue-2074.rs similarity index 100% rename from src/test/ui/issues/issue-2074.rs rename to tests/ui/issues/issue-2074.rs diff --git a/src/test/ui/issues/issue-20763-1.rs b/tests/ui/issues/issue-20763-1.rs similarity index 100% rename from src/test/ui/issues/issue-20763-1.rs rename to tests/ui/issues/issue-20763-1.rs diff --git a/src/test/ui/issues/issue-20763-2.rs b/tests/ui/issues/issue-20763-2.rs similarity index 100% rename from src/test/ui/issues/issue-20763-2.rs rename to tests/ui/issues/issue-20763-2.rs diff --git a/src/test/ui/issues/issue-20772.rs b/tests/ui/issues/issue-20772.rs similarity index 100% rename from src/test/ui/issues/issue-20772.rs rename to tests/ui/issues/issue-20772.rs diff --git a/src/test/ui/issues/issue-20772.stderr b/tests/ui/issues/issue-20772.stderr similarity index 100% rename from src/test/ui/issues/issue-20772.stderr rename to tests/ui/issues/issue-20772.stderr diff --git a/src/test/ui/issues/issue-20797.rs b/tests/ui/issues/issue-20797.rs similarity index 100% rename from src/test/ui/issues/issue-20797.rs rename to tests/ui/issues/issue-20797.rs diff --git a/src/test/ui/issues/issue-20803.rs b/tests/ui/issues/issue-20803.rs similarity index 100% rename from src/test/ui/issues/issue-20803.rs rename to tests/ui/issues/issue-20803.rs diff --git a/src/test/ui/issues/issue-20831-debruijn.rs b/tests/ui/issues/issue-20831-debruijn.rs similarity index 100% rename from src/test/ui/issues/issue-20831-debruijn.rs rename to tests/ui/issues/issue-20831-debruijn.rs diff --git a/src/test/ui/issues/issue-20831-debruijn.stderr b/tests/ui/issues/issue-20831-debruijn.stderr similarity index 100% rename from src/test/ui/issues/issue-20831-debruijn.stderr rename to tests/ui/issues/issue-20831-debruijn.stderr diff --git a/src/test/ui/issues/issue-20847.rs b/tests/ui/issues/issue-20847.rs similarity index 100% rename from src/test/ui/issues/issue-20847.rs rename to tests/ui/issues/issue-20847.rs diff --git a/src/test/ui/issues/issue-20939.rs b/tests/ui/issues/issue-20939.rs similarity index 100% rename from src/test/ui/issues/issue-20939.rs rename to tests/ui/issues/issue-20939.rs diff --git a/src/test/ui/issues/issue-20939.stderr b/tests/ui/issues/issue-20939.stderr similarity index 100% rename from src/test/ui/issues/issue-20939.stderr rename to tests/ui/issues/issue-20939.stderr diff --git a/src/test/ui/issues/issue-20953.rs b/tests/ui/issues/issue-20953.rs similarity index 100% rename from src/test/ui/issues/issue-20953.rs rename to tests/ui/issues/issue-20953.rs diff --git a/src/test/ui/issues/issue-20971.rs b/tests/ui/issues/issue-20971.rs similarity index 100% rename from src/test/ui/issues/issue-20971.rs rename to tests/ui/issues/issue-20971.rs diff --git a/src/test/ui/issues/issue-21033.rs b/tests/ui/issues/issue-21033.rs similarity index 100% rename from src/test/ui/issues/issue-21033.rs rename to tests/ui/issues/issue-21033.rs diff --git a/src/test/ui/issues/issue-21140.rs b/tests/ui/issues/issue-21140.rs similarity index 100% rename from src/test/ui/issues/issue-21140.rs rename to tests/ui/issues/issue-21140.rs diff --git a/src/test/ui/issues/issue-21160.rs b/tests/ui/issues/issue-21160.rs similarity index 100% rename from src/test/ui/issues/issue-21160.rs rename to tests/ui/issues/issue-21160.rs diff --git a/src/test/ui/issues/issue-21160.stderr b/tests/ui/issues/issue-21160.stderr similarity index 100% rename from src/test/ui/issues/issue-21160.stderr rename to tests/ui/issues/issue-21160.stderr diff --git a/src/test/ui/issues/issue-21174-2.rs b/tests/ui/issues/issue-21174-2.rs similarity index 100% rename from src/test/ui/issues/issue-21174-2.rs rename to tests/ui/issues/issue-21174-2.rs diff --git a/src/test/ui/issues/issue-21174.rs b/tests/ui/issues/issue-21174.rs similarity index 100% rename from src/test/ui/issues/issue-21174.rs rename to tests/ui/issues/issue-21174.rs diff --git a/src/test/ui/issues/issue-21174.stderr b/tests/ui/issues/issue-21174.stderr similarity index 100% rename from src/test/ui/issues/issue-21174.stderr rename to tests/ui/issues/issue-21174.stderr diff --git a/src/test/ui/issues/issue-21177.rs b/tests/ui/issues/issue-21177.rs similarity index 100% rename from src/test/ui/issues/issue-21177.rs rename to tests/ui/issues/issue-21177.rs diff --git a/src/test/ui/issues/issue-21177.stderr b/tests/ui/issues/issue-21177.stderr similarity index 100% rename from src/test/ui/issues/issue-21177.stderr rename to tests/ui/issues/issue-21177.stderr diff --git a/src/test/ui/issues/issue-21202.rs b/tests/ui/issues/issue-21202.rs similarity index 100% rename from src/test/ui/issues/issue-21202.rs rename to tests/ui/issues/issue-21202.rs diff --git a/src/test/ui/issues/issue-21202.stderr b/tests/ui/issues/issue-21202.stderr similarity index 100% rename from src/test/ui/issues/issue-21202.stderr rename to tests/ui/issues/issue-21202.stderr diff --git a/src/test/ui/issues/issue-21245.rs b/tests/ui/issues/issue-21245.rs similarity index 100% rename from src/test/ui/issues/issue-21245.rs rename to tests/ui/issues/issue-21245.rs diff --git a/src/test/ui/issues/issue-21291.rs b/tests/ui/issues/issue-21291.rs similarity index 100% rename from src/test/ui/issues/issue-21291.rs rename to tests/ui/issues/issue-21291.rs diff --git a/src/test/ui/issues/issue-21306.rs b/tests/ui/issues/issue-21306.rs similarity index 100% rename from src/test/ui/issues/issue-21306.rs rename to tests/ui/issues/issue-21306.rs diff --git a/src/test/ui/issues/issue-21332.rs b/tests/ui/issues/issue-21332.rs similarity index 100% rename from src/test/ui/issues/issue-21332.rs rename to tests/ui/issues/issue-21332.rs diff --git a/src/test/ui/issues/issue-21332.stderr b/tests/ui/issues/issue-21332.stderr similarity index 100% rename from src/test/ui/issues/issue-21332.stderr rename to tests/ui/issues/issue-21332.stderr diff --git a/src/test/ui/issues/issue-21361.rs b/tests/ui/issues/issue-21361.rs similarity index 100% rename from src/test/ui/issues/issue-21361.rs rename to tests/ui/issues/issue-21361.rs diff --git a/src/test/ui/issues/issue-21384.rs b/tests/ui/issues/issue-21384.rs similarity index 100% rename from src/test/ui/issues/issue-21384.rs rename to tests/ui/issues/issue-21384.rs diff --git a/src/test/ui/issues/issue-21400.rs b/tests/ui/issues/issue-21400.rs similarity index 100% rename from src/test/ui/issues/issue-21400.rs rename to tests/ui/issues/issue-21400.rs diff --git a/src/test/ui/issues/issue-21402.rs b/tests/ui/issues/issue-21402.rs similarity index 100% rename from src/test/ui/issues/issue-21402.rs rename to tests/ui/issues/issue-21402.rs diff --git a/src/test/ui/issues/issue-21449.rs b/tests/ui/issues/issue-21449.rs similarity index 100% rename from src/test/ui/issues/issue-21449.rs rename to tests/ui/issues/issue-21449.rs diff --git a/src/test/ui/issues/issue-21449.stderr b/tests/ui/issues/issue-21449.stderr similarity index 100% rename from src/test/ui/issues/issue-21449.stderr rename to tests/ui/issues/issue-21449.stderr diff --git a/src/test/ui/issues/issue-2150.rs b/tests/ui/issues/issue-2150.rs similarity index 100% rename from src/test/ui/issues/issue-2150.rs rename to tests/ui/issues/issue-2150.rs diff --git a/src/test/ui/issues/issue-2150.stderr b/tests/ui/issues/issue-2150.stderr similarity index 100% rename from src/test/ui/issues/issue-2150.stderr rename to tests/ui/issues/issue-2150.stderr diff --git a/src/test/ui/issues/issue-2151.rs b/tests/ui/issues/issue-2151.rs similarity index 100% rename from src/test/ui/issues/issue-2151.rs rename to tests/ui/issues/issue-2151.rs diff --git a/src/test/ui/issues/issue-2151.stderr b/tests/ui/issues/issue-2151.stderr similarity index 100% rename from src/test/ui/issues/issue-2151.stderr rename to tests/ui/issues/issue-2151.stderr diff --git a/src/test/ui/issues/issue-21546.rs b/tests/ui/issues/issue-21546.rs similarity index 100% rename from src/test/ui/issues/issue-21546.rs rename to tests/ui/issues/issue-21546.rs diff --git a/src/test/ui/issues/issue-21546.stderr b/tests/ui/issues/issue-21546.stderr similarity index 100% rename from src/test/ui/issues/issue-21546.stderr rename to tests/ui/issues/issue-21546.stderr diff --git a/src/test/ui/issues/issue-21554.rs b/tests/ui/issues/issue-21554.rs similarity index 100% rename from src/test/ui/issues/issue-21554.rs rename to tests/ui/issues/issue-21554.rs diff --git a/src/test/ui/issues/issue-21554.stderr b/tests/ui/issues/issue-21554.stderr similarity index 100% rename from src/test/ui/issues/issue-21554.stderr rename to tests/ui/issues/issue-21554.stderr diff --git a/src/test/ui/issues/issue-21596.rs b/tests/ui/issues/issue-21596.rs similarity index 100% rename from src/test/ui/issues/issue-21596.rs rename to tests/ui/issues/issue-21596.rs diff --git a/src/test/ui/issues/issue-21596.stderr b/tests/ui/issues/issue-21596.stderr similarity index 100% rename from src/test/ui/issues/issue-21596.stderr rename to tests/ui/issues/issue-21596.stderr diff --git a/src/test/ui/issues/issue-21600.rs b/tests/ui/issues/issue-21600.rs similarity index 100% rename from src/test/ui/issues/issue-21600.rs rename to tests/ui/issues/issue-21600.rs diff --git a/src/test/ui/issues/issue-21600.stderr b/tests/ui/issues/issue-21600.stderr similarity index 100% rename from src/test/ui/issues/issue-21600.stderr rename to tests/ui/issues/issue-21600.stderr diff --git a/src/test/ui/issues/issue-21622.rs b/tests/ui/issues/issue-21622.rs similarity index 100% rename from src/test/ui/issues/issue-21622.rs rename to tests/ui/issues/issue-21622.rs diff --git a/src/test/ui/issues/issue-21634.rs b/tests/ui/issues/issue-21634.rs similarity index 100% rename from src/test/ui/issues/issue-21634.rs rename to tests/ui/issues/issue-21634.rs diff --git a/src/test/ui/issues/issue-21655.rs b/tests/ui/issues/issue-21655.rs similarity index 100% rename from src/test/ui/issues/issue-21655.rs rename to tests/ui/issues/issue-21655.rs diff --git a/src/test/ui/issues/issue-2170-exe.rs b/tests/ui/issues/issue-2170-exe.rs similarity index 100% rename from src/test/ui/issues/issue-2170-exe.rs rename to tests/ui/issues/issue-2170-exe.rs diff --git a/src/test/ui/issues/issue-21701.rs b/tests/ui/issues/issue-21701.rs similarity index 100% rename from src/test/ui/issues/issue-21701.rs rename to tests/ui/issues/issue-21701.rs diff --git a/src/test/ui/issues/issue-21701.stderr b/tests/ui/issues/issue-21701.stderr similarity index 100% rename from src/test/ui/issues/issue-21701.stderr rename to tests/ui/issues/issue-21701.stderr diff --git a/src/test/ui/issues/issue-21763.rs b/tests/ui/issues/issue-21763.rs similarity index 100% rename from src/test/ui/issues/issue-21763.rs rename to tests/ui/issues/issue-21763.rs diff --git a/src/test/ui/issues/issue-21763.stderr b/tests/ui/issues/issue-21763.stderr similarity index 100% rename from src/test/ui/issues/issue-21763.stderr rename to tests/ui/issues/issue-21763.stderr diff --git a/src/test/ui/issues/issue-21837.rs b/tests/ui/issues/issue-21837.rs similarity index 100% rename from src/test/ui/issues/issue-21837.rs rename to tests/ui/issues/issue-21837.rs diff --git a/src/test/ui/issues/issue-21837.stderr b/tests/ui/issues/issue-21837.stderr similarity index 100% rename from src/test/ui/issues/issue-21837.stderr rename to tests/ui/issues/issue-21837.stderr diff --git a/src/test/ui/issues/issue-21891.rs b/tests/ui/issues/issue-21891.rs similarity index 100% rename from src/test/ui/issues/issue-21891.rs rename to tests/ui/issues/issue-21891.rs diff --git a/src/test/ui/issues/issue-2190-1.rs b/tests/ui/issues/issue-2190-1.rs similarity index 100% rename from src/test/ui/issues/issue-2190-1.rs rename to tests/ui/issues/issue-2190-1.rs diff --git a/src/test/ui/issues/issue-21909.rs b/tests/ui/issues/issue-21909.rs similarity index 100% rename from src/test/ui/issues/issue-21909.rs rename to tests/ui/issues/issue-21909.rs diff --git a/src/test/ui/issues/issue-21922.rs b/tests/ui/issues/issue-21922.rs similarity index 100% rename from src/test/ui/issues/issue-21922.rs rename to tests/ui/issues/issue-21922.rs diff --git a/src/test/ui/issues/issue-21946.rs b/tests/ui/issues/issue-21946.rs similarity index 100% rename from src/test/ui/issues/issue-21946.rs rename to tests/ui/issues/issue-21946.rs diff --git a/src/test/ui/issues/issue-21946.stderr b/tests/ui/issues/issue-21946.stderr similarity index 100% rename from src/test/ui/issues/issue-21946.stderr rename to tests/ui/issues/issue-21946.stderr diff --git a/src/test/ui/issues/issue-21950.rs b/tests/ui/issues/issue-21950.rs similarity index 100% rename from src/test/ui/issues/issue-21950.rs rename to tests/ui/issues/issue-21950.rs diff --git a/src/test/ui/issues/issue-21950.stderr b/tests/ui/issues/issue-21950.stderr similarity index 100% rename from src/test/ui/issues/issue-21950.stderr rename to tests/ui/issues/issue-21950.stderr diff --git a/src/test/ui/issues/issue-21974.rs b/tests/ui/issues/issue-21974.rs similarity index 100% rename from src/test/ui/issues/issue-21974.rs rename to tests/ui/issues/issue-21974.rs diff --git a/src/test/ui/issues/issue-21974.stderr b/tests/ui/issues/issue-21974.stderr similarity index 100% rename from src/test/ui/issues/issue-21974.stderr rename to tests/ui/issues/issue-21974.stderr diff --git a/src/test/ui/issues/issue-22008.rs b/tests/ui/issues/issue-22008.rs similarity index 100% rename from src/test/ui/issues/issue-22008.rs rename to tests/ui/issues/issue-22008.rs diff --git a/src/test/ui/issues/issue-22034.rs b/tests/ui/issues/issue-22034.rs similarity index 100% rename from src/test/ui/issues/issue-22034.rs rename to tests/ui/issues/issue-22034.rs diff --git a/src/test/ui/issues/issue-22034.stderr b/tests/ui/issues/issue-22034.stderr similarity index 100% rename from src/test/ui/issues/issue-22034.stderr rename to tests/ui/issues/issue-22034.stderr diff --git a/src/test/ui/issues/issue-22036.rs b/tests/ui/issues/issue-22036.rs similarity index 100% rename from src/test/ui/issues/issue-22036.rs rename to tests/ui/issues/issue-22036.rs diff --git a/src/test/ui/issues/issue-2214.rs b/tests/ui/issues/issue-2214.rs similarity index 100% rename from src/test/ui/issues/issue-2214.rs rename to tests/ui/issues/issue-2214.rs diff --git a/src/test/ui/issues/issue-22258.rs b/tests/ui/issues/issue-22258.rs similarity index 100% rename from src/test/ui/issues/issue-22258.rs rename to tests/ui/issues/issue-22258.rs diff --git a/src/test/ui/issues/issue-22289.rs b/tests/ui/issues/issue-22289.rs similarity index 100% rename from src/test/ui/issues/issue-22289.rs rename to tests/ui/issues/issue-22289.rs diff --git a/src/test/ui/issues/issue-22289.stderr b/tests/ui/issues/issue-22289.stderr similarity index 100% rename from src/test/ui/issues/issue-22289.stderr rename to tests/ui/issues/issue-22289.stderr diff --git a/src/test/ui/issues/issue-22312.rs b/tests/ui/issues/issue-22312.rs similarity index 100% rename from src/test/ui/issues/issue-22312.rs rename to tests/ui/issues/issue-22312.rs diff --git a/src/test/ui/issues/issue-22312.stderr b/tests/ui/issues/issue-22312.stderr similarity index 100% rename from src/test/ui/issues/issue-22312.stderr rename to tests/ui/issues/issue-22312.stderr diff --git a/src/test/ui/issues/issue-22346.rs b/tests/ui/issues/issue-22346.rs similarity index 100% rename from src/test/ui/issues/issue-22346.rs rename to tests/ui/issues/issue-22346.rs diff --git a/src/test/ui/issues/issue-22356.rs b/tests/ui/issues/issue-22356.rs similarity index 100% rename from src/test/ui/issues/issue-22356.rs rename to tests/ui/issues/issue-22356.rs diff --git a/src/test/ui/issues/issue-22370.rs b/tests/ui/issues/issue-22370.rs similarity index 100% rename from src/test/ui/issues/issue-22370.rs rename to tests/ui/issues/issue-22370.rs diff --git a/src/test/ui/issues/issue-22370.stderr b/tests/ui/issues/issue-22370.stderr similarity index 100% rename from src/test/ui/issues/issue-22370.stderr rename to tests/ui/issues/issue-22370.stderr diff --git a/src/test/ui/issues/issue-22384.rs b/tests/ui/issues/issue-22384.rs similarity index 100% rename from src/test/ui/issues/issue-22384.rs rename to tests/ui/issues/issue-22384.rs diff --git a/src/test/ui/issues/issue-22384.stderr b/tests/ui/issues/issue-22384.stderr similarity index 100% rename from src/test/ui/issues/issue-22384.stderr rename to tests/ui/issues/issue-22384.stderr diff --git a/src/test/ui/issues/issue-22403.rs b/tests/ui/issues/issue-22403.rs similarity index 100% rename from src/test/ui/issues/issue-22403.rs rename to tests/ui/issues/issue-22403.rs diff --git a/src/test/ui/issues/issue-22426.rs b/tests/ui/issues/issue-22426.rs similarity index 100% rename from src/test/ui/issues/issue-22426.rs rename to tests/ui/issues/issue-22426.rs diff --git a/src/test/ui/issues/issue-22434.rs b/tests/ui/issues/issue-22434.rs similarity index 100% rename from src/test/ui/issues/issue-22434.rs rename to tests/ui/issues/issue-22434.rs diff --git a/src/test/ui/issues/issue-22434.stderr b/tests/ui/issues/issue-22434.stderr similarity index 100% rename from src/test/ui/issues/issue-22434.stderr rename to tests/ui/issues/issue-22434.stderr diff --git a/src/test/ui/issues/issue-22468.rs b/tests/ui/issues/issue-22468.rs similarity index 100% rename from src/test/ui/issues/issue-22468.rs rename to tests/ui/issues/issue-22468.rs diff --git a/src/test/ui/issues/issue-22468.stderr b/tests/ui/issues/issue-22468.stderr similarity index 100% rename from src/test/ui/issues/issue-22468.stderr rename to tests/ui/issues/issue-22468.stderr diff --git a/src/test/ui/issues/issue-22471.rs b/tests/ui/issues/issue-22471.rs similarity index 100% rename from src/test/ui/issues/issue-22471.rs rename to tests/ui/issues/issue-22471.rs diff --git a/src/test/ui/issues/issue-22536-copy-mustnt-zero.rs b/tests/ui/issues/issue-22536-copy-mustnt-zero.rs similarity index 100% rename from src/test/ui/issues/issue-22536-copy-mustnt-zero.rs rename to tests/ui/issues/issue-22536-copy-mustnt-zero.rs diff --git a/src/test/ui/issues/issue-22577.rs b/tests/ui/issues/issue-22577.rs similarity index 100% rename from src/test/ui/issues/issue-22577.rs rename to tests/ui/issues/issue-22577.rs diff --git a/src/test/ui/issues/issue-22599.rs b/tests/ui/issues/issue-22599.rs similarity index 100% rename from src/test/ui/issues/issue-22599.rs rename to tests/ui/issues/issue-22599.rs diff --git a/src/test/ui/issues/issue-22599.stderr b/tests/ui/issues/issue-22599.stderr similarity index 100% rename from src/test/ui/issues/issue-22599.stderr rename to tests/ui/issues/issue-22599.stderr diff --git a/src/test/ui/issues/issue-22603.rs b/tests/ui/issues/issue-22603.rs similarity index 100% rename from src/test/ui/issues/issue-22603.rs rename to tests/ui/issues/issue-22603.rs diff --git a/src/test/ui/issues/issue-22629.rs b/tests/ui/issues/issue-22629.rs similarity index 100% rename from src/test/ui/issues/issue-22629.rs rename to tests/ui/issues/issue-22629.rs diff --git a/src/test/ui/issues/issue-22638.polonius.stderr b/tests/ui/issues/issue-22638.polonius.stderr similarity index 100% rename from src/test/ui/issues/issue-22638.polonius.stderr rename to tests/ui/issues/issue-22638.polonius.stderr diff --git a/src/test/ui/issues/issue-22638.rs b/tests/ui/issues/issue-22638.rs similarity index 100% rename from src/test/ui/issues/issue-22638.rs rename to tests/ui/issues/issue-22638.rs diff --git a/src/test/ui/issues/issue-22638.stderr b/tests/ui/issues/issue-22638.stderr similarity index 100% rename from src/test/ui/issues/issue-22638.stderr rename to tests/ui/issues/issue-22638.stderr diff --git a/src/test/ui/issues/issue-22644.rs b/tests/ui/issues/issue-22644.rs similarity index 100% rename from src/test/ui/issues/issue-22644.rs rename to tests/ui/issues/issue-22644.rs diff --git a/src/test/ui/issues/issue-22644.stderr b/tests/ui/issues/issue-22644.stderr similarity index 100% rename from src/test/ui/issues/issue-22644.stderr rename to tests/ui/issues/issue-22644.stderr diff --git a/src/test/ui/issues/issue-22673.rs b/tests/ui/issues/issue-22673.rs similarity index 100% rename from src/test/ui/issues/issue-22673.rs rename to tests/ui/issues/issue-22673.rs diff --git a/src/test/ui/issues/issue-22684.rs b/tests/ui/issues/issue-22684.rs similarity index 100% rename from src/test/ui/issues/issue-22684.rs rename to tests/ui/issues/issue-22684.rs diff --git a/src/test/ui/issues/issue-22684.stderr b/tests/ui/issues/issue-22684.stderr similarity index 100% rename from src/test/ui/issues/issue-22684.stderr rename to tests/ui/issues/issue-22684.stderr diff --git a/src/test/ui/issues/issue-22706.rs b/tests/ui/issues/issue-22706.rs similarity index 100% rename from src/test/ui/issues/issue-22706.rs rename to tests/ui/issues/issue-22706.rs diff --git a/src/test/ui/issues/issue-22706.stderr b/tests/ui/issues/issue-22706.stderr similarity index 100% rename from src/test/ui/issues/issue-22706.stderr rename to tests/ui/issues/issue-22706.stderr diff --git a/src/test/ui/issues/issue-22777.rs b/tests/ui/issues/issue-22777.rs similarity index 100% rename from src/test/ui/issues/issue-22777.rs rename to tests/ui/issues/issue-22777.rs diff --git a/src/test/ui/issues/issue-22781.rs b/tests/ui/issues/issue-22781.rs similarity index 100% rename from src/test/ui/issues/issue-22781.rs rename to tests/ui/issues/issue-22781.rs diff --git a/src/test/ui/issues/issue-22789.rs b/tests/ui/issues/issue-22789.rs similarity index 100% rename from src/test/ui/issues/issue-22789.rs rename to tests/ui/issues/issue-22789.rs diff --git a/src/test/ui/issues/issue-2281-part1.rs b/tests/ui/issues/issue-2281-part1.rs similarity index 100% rename from src/test/ui/issues/issue-2281-part1.rs rename to tests/ui/issues/issue-2281-part1.rs diff --git a/src/test/ui/issues/issue-2281-part1.stderr b/tests/ui/issues/issue-2281-part1.stderr similarity index 100% rename from src/test/ui/issues/issue-2281-part1.stderr rename to tests/ui/issues/issue-2281-part1.stderr diff --git a/src/test/ui/issues/issue-22814.rs b/tests/ui/issues/issue-22814.rs similarity index 100% rename from src/test/ui/issues/issue-22814.rs rename to tests/ui/issues/issue-22814.rs diff --git a/src/test/ui/issues/issue-2284.rs b/tests/ui/issues/issue-2284.rs similarity index 100% rename from src/test/ui/issues/issue-2284.rs rename to tests/ui/issues/issue-2284.rs diff --git a/src/test/ui/issues/issue-22864-1.rs b/tests/ui/issues/issue-22864-1.rs similarity index 100% rename from src/test/ui/issues/issue-22864-1.rs rename to tests/ui/issues/issue-22864-1.rs diff --git a/src/test/ui/issues/issue-22864-2.rs b/tests/ui/issues/issue-22864-2.rs similarity index 100% rename from src/test/ui/issues/issue-22864-2.rs rename to tests/ui/issues/issue-22864-2.rs diff --git a/src/test/ui/issues/issue-22872.rs b/tests/ui/issues/issue-22872.rs similarity index 100% rename from src/test/ui/issues/issue-22872.rs rename to tests/ui/issues/issue-22872.rs diff --git a/src/test/ui/issues/issue-22872.stderr b/tests/ui/issues/issue-22872.stderr similarity index 100% rename from src/test/ui/issues/issue-22872.stderr rename to tests/ui/issues/issue-22872.stderr diff --git a/src/test/ui/issues/issue-22874.rs b/tests/ui/issues/issue-22874.rs similarity index 100% rename from src/test/ui/issues/issue-22874.rs rename to tests/ui/issues/issue-22874.rs diff --git a/src/test/ui/issues/issue-22874.stderr b/tests/ui/issues/issue-22874.stderr similarity index 100% rename from src/test/ui/issues/issue-22874.stderr rename to tests/ui/issues/issue-22874.stderr diff --git a/src/test/ui/issues/issue-2288.rs b/tests/ui/issues/issue-2288.rs similarity index 100% rename from src/test/ui/issues/issue-2288.rs rename to tests/ui/issues/issue-2288.rs diff --git a/src/test/ui/issues/issue-22886.rs b/tests/ui/issues/issue-22886.rs similarity index 100% rename from src/test/ui/issues/issue-22886.rs rename to tests/ui/issues/issue-22886.rs diff --git a/src/test/ui/issues/issue-22886.stderr b/tests/ui/issues/issue-22886.stderr similarity index 100% rename from src/test/ui/issues/issue-22886.stderr rename to tests/ui/issues/issue-22886.stderr diff --git a/src/test/ui/issues/issue-22894.rs b/tests/ui/issues/issue-22894.rs similarity index 100% rename from src/test/ui/issues/issue-22894.rs rename to tests/ui/issues/issue-22894.rs diff --git a/src/test/ui/issues/issue-22933-1.rs b/tests/ui/issues/issue-22933-1.rs similarity index 100% rename from src/test/ui/issues/issue-22933-1.rs rename to tests/ui/issues/issue-22933-1.rs diff --git a/src/test/ui/issues/issue-22933-2.rs b/tests/ui/issues/issue-22933-2.rs similarity index 100% rename from src/test/ui/issues/issue-22933-2.rs rename to tests/ui/issues/issue-22933-2.rs diff --git a/src/test/ui/issues/issue-22933-2.stderr b/tests/ui/issues/issue-22933-2.stderr similarity index 100% rename from src/test/ui/issues/issue-22933-2.stderr rename to tests/ui/issues/issue-22933-2.stderr diff --git a/src/test/ui/issues/issue-22992-2.rs b/tests/ui/issues/issue-22992-2.rs similarity index 100% rename from src/test/ui/issues/issue-22992-2.rs rename to tests/ui/issues/issue-22992-2.rs diff --git a/src/test/ui/issues/issue-22992.rs b/tests/ui/issues/issue-22992.rs similarity index 100% rename from src/test/ui/issues/issue-22992.rs rename to tests/ui/issues/issue-22992.rs diff --git a/src/test/ui/issues/issue-23024.rs b/tests/ui/issues/issue-23024.rs similarity index 100% rename from src/test/ui/issues/issue-23024.rs rename to tests/ui/issues/issue-23024.rs diff --git a/src/test/ui/issues/issue-23024.stderr b/tests/ui/issues/issue-23024.stderr similarity index 100% rename from src/test/ui/issues/issue-23024.stderr rename to tests/ui/issues/issue-23024.stderr diff --git a/src/test/ui/issues/issue-23036.rs b/tests/ui/issues/issue-23036.rs similarity index 100% rename from src/test/ui/issues/issue-23036.rs rename to tests/ui/issues/issue-23036.rs diff --git a/src/test/ui/issues/issue-23041.rs b/tests/ui/issues/issue-23041.rs similarity index 100% rename from src/test/ui/issues/issue-23041.rs rename to tests/ui/issues/issue-23041.rs diff --git a/src/test/ui/issues/issue-23041.stderr b/tests/ui/issues/issue-23041.stderr similarity index 100% rename from src/test/ui/issues/issue-23041.stderr rename to tests/ui/issues/issue-23041.stderr diff --git a/src/test/ui/issues/issue-23046.rs b/tests/ui/issues/issue-23046.rs similarity index 100% rename from src/test/ui/issues/issue-23046.rs rename to tests/ui/issues/issue-23046.rs diff --git a/src/test/ui/issues/issue-23046.stderr b/tests/ui/issues/issue-23046.stderr similarity index 100% rename from src/test/ui/issues/issue-23046.stderr rename to tests/ui/issues/issue-23046.stderr diff --git a/src/test/ui/issues/issue-23073.rs b/tests/ui/issues/issue-23073.rs similarity index 100% rename from src/test/ui/issues/issue-23073.rs rename to tests/ui/issues/issue-23073.rs diff --git a/src/test/ui/issues/issue-23073.stderr b/tests/ui/issues/issue-23073.stderr similarity index 100% rename from src/test/ui/issues/issue-23073.stderr rename to tests/ui/issues/issue-23073.stderr diff --git a/src/test/ui/issues/issue-2311-2.rs b/tests/ui/issues/issue-2311-2.rs similarity index 100% rename from src/test/ui/issues/issue-2311-2.rs rename to tests/ui/issues/issue-2311-2.rs diff --git a/src/test/ui/issues/issue-2311.rs b/tests/ui/issues/issue-2311.rs similarity index 100% rename from src/test/ui/issues/issue-2311.rs rename to tests/ui/issues/issue-2311.rs diff --git a/src/test/ui/issues/issue-2312.rs b/tests/ui/issues/issue-2312.rs similarity index 100% rename from src/test/ui/issues/issue-2312.rs rename to tests/ui/issues/issue-2312.rs diff --git a/src/test/ui/issues/issue-23122-1.rs b/tests/ui/issues/issue-23122-1.rs similarity index 100% rename from src/test/ui/issues/issue-23122-1.rs rename to tests/ui/issues/issue-23122-1.rs diff --git a/src/test/ui/issues/issue-23122-1.stderr b/tests/ui/issues/issue-23122-1.stderr similarity index 100% rename from src/test/ui/issues/issue-23122-1.stderr rename to tests/ui/issues/issue-23122-1.stderr diff --git a/src/test/ui/issues/issue-23122-2.rs b/tests/ui/issues/issue-23122-2.rs similarity index 100% rename from src/test/ui/issues/issue-23122-2.rs rename to tests/ui/issues/issue-23122-2.rs diff --git a/src/test/ui/issues/issue-23122-2.stderr b/tests/ui/issues/issue-23122-2.stderr similarity index 100% rename from src/test/ui/issues/issue-23122-2.stderr rename to tests/ui/issues/issue-23122-2.stderr diff --git a/src/test/ui/issues/issue-2316-c.rs b/tests/ui/issues/issue-2316-c.rs similarity index 100% rename from src/test/ui/issues/issue-2316-c.rs rename to tests/ui/issues/issue-2316-c.rs diff --git a/src/test/ui/issues/issue-23173.rs b/tests/ui/issues/issue-23173.rs similarity index 100% rename from src/test/ui/issues/issue-23173.rs rename to tests/ui/issues/issue-23173.rs diff --git a/src/test/ui/issues/issue-23173.stderr b/tests/ui/issues/issue-23173.stderr similarity index 100% rename from src/test/ui/issues/issue-23173.stderr rename to tests/ui/issues/issue-23173.stderr diff --git a/src/test/ui/issues/issue-23189.rs b/tests/ui/issues/issue-23189.rs similarity index 100% rename from src/test/ui/issues/issue-23189.rs rename to tests/ui/issues/issue-23189.rs diff --git a/src/test/ui/issues/issue-23189.stderr b/tests/ui/issues/issue-23189.stderr similarity index 100% rename from src/test/ui/issues/issue-23189.stderr rename to tests/ui/issues/issue-23189.stderr diff --git a/src/test/ui/issues/issue-23217.rs b/tests/ui/issues/issue-23217.rs similarity index 100% rename from src/test/ui/issues/issue-23217.rs rename to tests/ui/issues/issue-23217.rs diff --git a/src/test/ui/issues/issue-23217.stderr b/tests/ui/issues/issue-23217.stderr similarity index 100% rename from src/test/ui/issues/issue-23217.stderr rename to tests/ui/issues/issue-23217.stderr diff --git a/src/test/ui/issues/issue-23253.rs b/tests/ui/issues/issue-23253.rs similarity index 100% rename from src/test/ui/issues/issue-23253.rs rename to tests/ui/issues/issue-23253.rs diff --git a/src/test/ui/issues/issue-23253.stderr b/tests/ui/issues/issue-23253.stderr similarity index 100% rename from src/test/ui/issues/issue-23253.stderr rename to tests/ui/issues/issue-23253.stderr diff --git a/src/test/ui/issues/issue-23261.rs b/tests/ui/issues/issue-23261.rs similarity index 100% rename from src/test/ui/issues/issue-23261.rs rename to tests/ui/issues/issue-23261.rs diff --git a/src/test/ui/issues/issue-23281.rs b/tests/ui/issues/issue-23281.rs similarity index 100% rename from src/test/ui/issues/issue-23281.rs rename to tests/ui/issues/issue-23281.rs diff --git a/src/test/ui/issues/issue-23281.stderr b/tests/ui/issues/issue-23281.stderr similarity index 100% rename from src/test/ui/issues/issue-23281.stderr rename to tests/ui/issues/issue-23281.stderr diff --git a/src/test/ui/issues/issue-23302-1.rs b/tests/ui/issues/issue-23302-1.rs similarity index 100% rename from src/test/ui/issues/issue-23302-1.rs rename to tests/ui/issues/issue-23302-1.rs diff --git a/src/test/ui/issues/issue-23302-1.stderr b/tests/ui/issues/issue-23302-1.stderr similarity index 100% rename from src/test/ui/issues/issue-23302-1.stderr rename to tests/ui/issues/issue-23302-1.stderr diff --git a/src/test/ui/issues/issue-23302-2.rs b/tests/ui/issues/issue-23302-2.rs similarity index 100% rename from src/test/ui/issues/issue-23302-2.rs rename to tests/ui/issues/issue-23302-2.rs diff --git a/src/test/ui/issues/issue-23302-2.stderr b/tests/ui/issues/issue-23302-2.stderr similarity index 100% rename from src/test/ui/issues/issue-23302-2.stderr rename to tests/ui/issues/issue-23302-2.stderr diff --git a/src/test/ui/issues/issue-23302-3.rs b/tests/ui/issues/issue-23302-3.rs similarity index 100% rename from src/test/ui/issues/issue-23302-3.rs rename to tests/ui/issues/issue-23302-3.rs diff --git a/src/test/ui/issues/issue-23302-3.stderr b/tests/ui/issues/issue-23302-3.stderr similarity index 100% rename from src/test/ui/issues/issue-23302-3.stderr rename to tests/ui/issues/issue-23302-3.stderr diff --git a/src/test/ui/issues/issue-23304-1.rs b/tests/ui/issues/issue-23304-1.rs similarity index 100% rename from src/test/ui/issues/issue-23304-1.rs rename to tests/ui/issues/issue-23304-1.rs diff --git a/src/test/ui/issues/issue-23304-2.rs b/tests/ui/issues/issue-23304-2.rs similarity index 100% rename from src/test/ui/issues/issue-23304-2.rs rename to tests/ui/issues/issue-23304-2.rs diff --git a/src/test/ui/issues/issue-23311.rs b/tests/ui/issues/issue-23311.rs similarity index 100% rename from src/test/ui/issues/issue-23311.rs rename to tests/ui/issues/issue-23311.rs diff --git a/src/test/ui/issues/issue-23336.rs b/tests/ui/issues/issue-23336.rs similarity index 100% rename from src/test/ui/issues/issue-23336.rs rename to tests/ui/issues/issue-23336.rs diff --git a/src/test/ui/issues/issue-23354-2.rs b/tests/ui/issues/issue-23354-2.rs similarity index 100% rename from src/test/ui/issues/issue-23354-2.rs rename to tests/ui/issues/issue-23354-2.rs diff --git a/src/test/ui/issues/issue-23354.rs b/tests/ui/issues/issue-23354.rs similarity index 100% rename from src/test/ui/issues/issue-23354.rs rename to tests/ui/issues/issue-23354.rs diff --git a/src/test/ui/issues/issue-23406.rs b/tests/ui/issues/issue-23406.rs similarity index 100% rename from src/test/ui/issues/issue-23406.rs rename to tests/ui/issues/issue-23406.rs diff --git a/src/test/ui/issues/issue-23433.rs b/tests/ui/issues/issue-23433.rs similarity index 100% rename from src/test/ui/issues/issue-23433.rs rename to tests/ui/issues/issue-23433.rs diff --git a/src/test/ui/issues/issue-23442.rs b/tests/ui/issues/issue-23442.rs similarity index 100% rename from src/test/ui/issues/issue-23442.rs rename to tests/ui/issues/issue-23442.rs diff --git a/src/test/ui/issues/issue-23477.rs b/tests/ui/issues/issue-23477.rs similarity index 100% rename from src/test/ui/issues/issue-23477.rs rename to tests/ui/issues/issue-23477.rs diff --git a/src/test/ui/issues/issue-23485.rs b/tests/ui/issues/issue-23485.rs similarity index 100% rename from src/test/ui/issues/issue-23485.rs rename to tests/ui/issues/issue-23485.rs diff --git a/src/test/ui/issues/issue-23491.rs b/tests/ui/issues/issue-23491.rs similarity index 100% rename from src/test/ui/issues/issue-23491.rs rename to tests/ui/issues/issue-23491.rs diff --git a/src/test/ui/issues/issue-23543.rs b/tests/ui/issues/issue-23543.rs similarity index 100% rename from src/test/ui/issues/issue-23543.rs rename to tests/ui/issues/issue-23543.rs diff --git a/src/test/ui/issues/issue-23543.stderr b/tests/ui/issues/issue-23543.stderr similarity index 100% rename from src/test/ui/issues/issue-23543.stderr rename to tests/ui/issues/issue-23543.stderr diff --git a/src/test/ui/issues/issue-23544.rs b/tests/ui/issues/issue-23544.rs similarity index 100% rename from src/test/ui/issues/issue-23544.rs rename to tests/ui/issues/issue-23544.rs diff --git a/src/test/ui/issues/issue-23544.stderr b/tests/ui/issues/issue-23544.stderr similarity index 100% rename from src/test/ui/issues/issue-23544.stderr rename to tests/ui/issues/issue-23544.stderr diff --git a/src/test/ui/issues/issue-23550.rs b/tests/ui/issues/issue-23550.rs similarity index 100% rename from src/test/ui/issues/issue-23550.rs rename to tests/ui/issues/issue-23550.rs diff --git a/src/test/ui/issues/issue-23589.rs b/tests/ui/issues/issue-23589.rs similarity index 100% rename from src/test/ui/issues/issue-23589.rs rename to tests/ui/issues/issue-23589.rs diff --git a/src/test/ui/issues/issue-23589.stderr b/tests/ui/issues/issue-23589.stderr similarity index 100% rename from src/test/ui/issues/issue-23589.stderr rename to tests/ui/issues/issue-23589.stderr diff --git a/src/test/ui/issues/issue-23611-enum-swap-in-drop.rs b/tests/ui/issues/issue-23611-enum-swap-in-drop.rs similarity index 100% rename from src/test/ui/issues/issue-23611-enum-swap-in-drop.rs rename to tests/ui/issues/issue-23611-enum-swap-in-drop.rs diff --git a/src/test/ui/issues/issue-23649-1.rs b/tests/ui/issues/issue-23649-1.rs similarity index 100% rename from src/test/ui/issues/issue-23649-1.rs rename to tests/ui/issues/issue-23649-1.rs diff --git a/src/test/ui/issues/issue-23649-2.rs b/tests/ui/issues/issue-23649-2.rs similarity index 100% rename from src/test/ui/issues/issue-23649-2.rs rename to tests/ui/issues/issue-23649-2.rs diff --git a/src/test/ui/issues/issue-23649-3.rs b/tests/ui/issues/issue-23649-3.rs similarity index 100% rename from src/test/ui/issues/issue-23649-3.rs rename to tests/ui/issues/issue-23649-3.rs diff --git a/src/test/ui/issues/issue-23699.rs b/tests/ui/issues/issue-23699.rs similarity index 100% rename from src/test/ui/issues/issue-23699.rs rename to tests/ui/issues/issue-23699.rs diff --git a/src/test/ui/issues/issue-23781.rs b/tests/ui/issues/issue-23781.rs similarity index 100% rename from src/test/ui/issues/issue-23781.rs rename to tests/ui/issues/issue-23781.rs diff --git a/src/test/ui/issues/issue-2380-b.rs b/tests/ui/issues/issue-2380-b.rs similarity index 100% rename from src/test/ui/issues/issue-2380-b.rs rename to tests/ui/issues/issue-2380-b.rs diff --git a/src/test/ui/issues/issue-23808.rs b/tests/ui/issues/issue-23808.rs similarity index 100% rename from src/test/ui/issues/issue-23808.rs rename to tests/ui/issues/issue-23808.rs diff --git a/src/test/ui/issues/issue-2383.rs b/tests/ui/issues/issue-2383.rs similarity index 100% rename from src/test/ui/issues/issue-2383.rs rename to tests/ui/issues/issue-2383.rs diff --git a/src/test/ui/issues/issue-23891.rs b/tests/ui/issues/issue-23891.rs similarity index 100% rename from src/test/ui/issues/issue-23891.rs rename to tests/ui/issues/issue-23891.rs diff --git a/src/test/ui/issues/issue-23898.rs b/tests/ui/issues/issue-23898.rs similarity index 100% rename from src/test/ui/issues/issue-23898.rs rename to tests/ui/issues/issue-23898.rs diff --git a/src/test/ui/issues/issue-23958.rs b/tests/ui/issues/issue-23958.rs similarity index 100% rename from src/test/ui/issues/issue-23958.rs rename to tests/ui/issues/issue-23958.rs diff --git a/src/test/ui/issues/issue-23966.rs b/tests/ui/issues/issue-23966.rs similarity index 100% rename from src/test/ui/issues/issue-23966.rs rename to tests/ui/issues/issue-23966.rs diff --git a/src/test/ui/issues/issue-23966.stderr b/tests/ui/issues/issue-23966.stderr similarity index 100% rename from src/test/ui/issues/issue-23966.stderr rename to tests/ui/issues/issue-23966.stderr diff --git a/src/test/ui/issues/issue-23992.rs b/tests/ui/issues/issue-23992.rs similarity index 100% rename from src/test/ui/issues/issue-23992.rs rename to tests/ui/issues/issue-23992.rs diff --git a/src/test/ui/issues/issue-24013.rs b/tests/ui/issues/issue-24013.rs similarity index 100% rename from src/test/ui/issues/issue-24013.rs rename to tests/ui/issues/issue-24013.rs diff --git a/src/test/ui/issues/issue-24013.stderr b/tests/ui/issues/issue-24013.stderr similarity index 100% rename from src/test/ui/issues/issue-24013.stderr rename to tests/ui/issues/issue-24013.stderr diff --git a/src/test/ui/issues/issue-24036.rs b/tests/ui/issues/issue-24036.rs similarity index 100% rename from src/test/ui/issues/issue-24036.rs rename to tests/ui/issues/issue-24036.rs diff --git a/src/test/ui/issues/issue-24036.stderr b/tests/ui/issues/issue-24036.stderr similarity index 100% rename from src/test/ui/issues/issue-24036.stderr rename to tests/ui/issues/issue-24036.stderr diff --git a/src/test/ui/issues/issue-24086.rs b/tests/ui/issues/issue-24086.rs similarity index 100% rename from src/test/ui/issues/issue-24086.rs rename to tests/ui/issues/issue-24086.rs diff --git a/src/test/ui/issues/issue-2414-c.rs b/tests/ui/issues/issue-2414-c.rs similarity index 100% rename from src/test/ui/issues/issue-2414-c.rs rename to tests/ui/issues/issue-2414-c.rs diff --git a/src/test/ui/issues/issue-24161.rs b/tests/ui/issues/issue-24161.rs similarity index 100% rename from src/test/ui/issues/issue-24161.rs rename to tests/ui/issues/issue-24161.rs diff --git a/src/test/ui/issues/issue-24227.rs b/tests/ui/issues/issue-24227.rs similarity index 100% rename from src/test/ui/issues/issue-24227.rs rename to tests/ui/issues/issue-24227.rs diff --git a/src/test/ui/issues/issue-2428.rs b/tests/ui/issues/issue-2428.rs similarity index 100% rename from src/test/ui/issues/issue-2428.rs rename to tests/ui/issues/issue-2428.rs diff --git a/src/test/ui/issues/issue-24308.rs b/tests/ui/issues/issue-24308.rs similarity index 100% rename from src/test/ui/issues/issue-24308.rs rename to tests/ui/issues/issue-24308.rs diff --git a/src/test/ui/issues/issue-24322.rs b/tests/ui/issues/issue-24322.rs similarity index 100% rename from src/test/ui/issues/issue-24322.rs rename to tests/ui/issues/issue-24322.rs diff --git a/src/test/ui/issues/issue-24322.stderr b/tests/ui/issues/issue-24322.stderr similarity index 100% rename from src/test/ui/issues/issue-24322.stderr rename to tests/ui/issues/issue-24322.stderr diff --git a/src/test/ui/issues/issue-24352.rs b/tests/ui/issues/issue-24352.rs similarity index 100% rename from src/test/ui/issues/issue-24352.rs rename to tests/ui/issues/issue-24352.rs diff --git a/src/test/ui/issues/issue-24352.stderr b/tests/ui/issues/issue-24352.stderr similarity index 100% rename from src/test/ui/issues/issue-24352.stderr rename to tests/ui/issues/issue-24352.stderr diff --git a/src/test/ui/issues/issue-24353.rs b/tests/ui/issues/issue-24353.rs similarity index 100% rename from src/test/ui/issues/issue-24353.rs rename to tests/ui/issues/issue-24353.rs diff --git a/src/test/ui/issues/issue-24357.rs b/tests/ui/issues/issue-24357.rs similarity index 100% rename from src/test/ui/issues/issue-24357.rs rename to tests/ui/issues/issue-24357.rs diff --git a/src/test/ui/issues/issue-24357.stderr b/tests/ui/issues/issue-24357.stderr similarity index 100% rename from src/test/ui/issues/issue-24357.stderr rename to tests/ui/issues/issue-24357.stderr diff --git a/src/test/ui/issues/issue-24363.rs b/tests/ui/issues/issue-24363.rs similarity index 100% rename from src/test/ui/issues/issue-24363.rs rename to tests/ui/issues/issue-24363.rs diff --git a/src/test/ui/issues/issue-24363.stderr b/tests/ui/issues/issue-24363.stderr similarity index 100% rename from src/test/ui/issues/issue-24363.stderr rename to tests/ui/issues/issue-24363.stderr diff --git a/src/test/ui/issues/issue-24365.rs b/tests/ui/issues/issue-24365.rs similarity index 100% rename from src/test/ui/issues/issue-24365.rs rename to tests/ui/issues/issue-24365.rs diff --git a/src/test/ui/issues/issue-24365.stderr b/tests/ui/issues/issue-24365.stderr similarity index 100% rename from src/test/ui/issues/issue-24365.stderr rename to tests/ui/issues/issue-24365.stderr diff --git a/src/test/ui/issues/issue-24389.rs b/tests/ui/issues/issue-24389.rs similarity index 100% rename from src/test/ui/issues/issue-24389.rs rename to tests/ui/issues/issue-24389.rs diff --git a/src/test/ui/issues/issue-24424.rs b/tests/ui/issues/issue-24424.rs similarity index 100% rename from src/test/ui/issues/issue-24424.rs rename to tests/ui/issues/issue-24424.rs diff --git a/src/test/ui/issues/issue-24424.stderr b/tests/ui/issues/issue-24424.stderr similarity index 100% rename from src/test/ui/issues/issue-24424.stderr rename to tests/ui/issues/issue-24424.stderr diff --git a/src/test/ui/issues/issue-24434.rs b/tests/ui/issues/issue-24434.rs similarity index 100% rename from src/test/ui/issues/issue-24434.rs rename to tests/ui/issues/issue-24434.rs diff --git a/src/test/ui/issues/issue-24446.rs b/tests/ui/issues/issue-24446.rs similarity index 100% rename from src/test/ui/issues/issue-24446.rs rename to tests/ui/issues/issue-24446.rs diff --git a/src/test/ui/issues/issue-24446.stderr b/tests/ui/issues/issue-24446.stderr similarity index 100% rename from src/test/ui/issues/issue-24446.stderr rename to tests/ui/issues/issue-24446.stderr diff --git a/src/test/ui/issues/issue-2445-b.rs b/tests/ui/issues/issue-2445-b.rs similarity index 100% rename from src/test/ui/issues/issue-2445-b.rs rename to tests/ui/issues/issue-2445-b.rs diff --git a/src/test/ui/issues/issue-2445.rs b/tests/ui/issues/issue-2445.rs similarity index 100% rename from src/test/ui/issues/issue-2445.rs rename to tests/ui/issues/issue-2445.rs diff --git a/src/test/ui/issues/issue-24533.rs b/tests/ui/issues/issue-24533.rs similarity index 100% rename from src/test/ui/issues/issue-24533.rs rename to tests/ui/issues/issue-24533.rs diff --git a/src/test/ui/issues/issue-24589.rs b/tests/ui/issues/issue-24589.rs similarity index 100% rename from src/test/ui/issues/issue-24589.rs rename to tests/ui/issues/issue-24589.rs diff --git a/src/test/ui/issues/issue-2463.rs b/tests/ui/issues/issue-2463.rs similarity index 100% rename from src/test/ui/issues/issue-2463.rs rename to tests/ui/issues/issue-2463.rs diff --git a/src/test/ui/issues/issue-24682.rs b/tests/ui/issues/issue-24682.rs similarity index 100% rename from src/test/ui/issues/issue-24682.rs rename to tests/ui/issues/issue-24682.rs diff --git a/src/test/ui/issues/issue-24682.stderr b/tests/ui/issues/issue-24682.stderr similarity index 100% rename from src/test/ui/issues/issue-24682.stderr rename to tests/ui/issues/issue-24682.stderr diff --git a/src/test/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-lib.rs b/tests/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-lib.rs similarity index 100% rename from src/test/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-lib.rs rename to tests/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-lib.rs diff --git a/src/test/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-mbcs-in-comments.rs b/tests/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-mbcs-in-comments.rs similarity index 100% rename from src/test/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-mbcs-in-comments.rs rename to tests/ui/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-mbcs-in-comments.rs diff --git a/src/test/ui/issues/issue-24687-embed-debuginfo/main.rs b/tests/ui/issues/issue-24687-embed-debuginfo/main.rs similarity index 100% rename from src/test/ui/issues/issue-24687-embed-debuginfo/main.rs rename to tests/ui/issues/issue-24687-embed-debuginfo/main.rs diff --git a/src/test/ui/issues/issue-2470-bounds-check-overflow.rs b/tests/ui/issues/issue-2470-bounds-check-overflow.rs similarity index 100% rename from src/test/ui/issues/issue-2470-bounds-check-overflow.rs rename to tests/ui/issues/issue-2470-bounds-check-overflow.rs diff --git a/src/test/ui/issues/issue-2472.rs b/tests/ui/issues/issue-2472.rs similarity index 100% rename from src/test/ui/issues/issue-2472.rs rename to tests/ui/issues/issue-2472.rs diff --git a/src/test/ui/issues/issue-24779.rs b/tests/ui/issues/issue-24779.rs similarity index 100% rename from src/test/ui/issues/issue-24779.rs rename to tests/ui/issues/issue-24779.rs diff --git a/src/test/ui/issues/issue-24819.rs b/tests/ui/issues/issue-24819.rs similarity index 100% rename from src/test/ui/issues/issue-24819.rs rename to tests/ui/issues/issue-24819.rs diff --git a/src/test/ui/issues/issue-24819.stderr b/tests/ui/issues/issue-24819.stderr similarity index 100% rename from src/test/ui/issues/issue-24819.stderr rename to tests/ui/issues/issue-24819.stderr diff --git a/src/test/ui/issues/issue-2487-a.rs b/tests/ui/issues/issue-2487-a.rs similarity index 100% rename from src/test/ui/issues/issue-2487-a.rs rename to tests/ui/issues/issue-2487-a.rs diff --git a/src/test/ui/issues/issue-24945-repeat-dash-opts.rs b/tests/ui/issues/issue-24945-repeat-dash-opts.rs similarity index 100% rename from src/test/ui/issues/issue-24945-repeat-dash-opts.rs rename to tests/ui/issues/issue-24945-repeat-dash-opts.rs diff --git a/src/test/ui/issues/issue-24947.rs b/tests/ui/issues/issue-24947.rs similarity index 100% rename from src/test/ui/issues/issue-24947.rs rename to tests/ui/issues/issue-24947.rs diff --git a/src/test/ui/issues/issue-24954.rs b/tests/ui/issues/issue-24954.rs similarity index 100% rename from src/test/ui/issues/issue-24954.rs rename to tests/ui/issues/issue-24954.rs diff --git a/src/test/ui/issues/issue-2502.rs b/tests/ui/issues/issue-2502.rs similarity index 100% rename from src/test/ui/issues/issue-2502.rs rename to tests/ui/issues/issue-2502.rs diff --git a/src/test/ui/issues/issue-25076.rs b/tests/ui/issues/issue-25076.rs similarity index 100% rename from src/test/ui/issues/issue-25076.rs rename to tests/ui/issues/issue-25076.rs diff --git a/src/test/ui/issues/issue-25076.stderr b/tests/ui/issues/issue-25076.stderr similarity index 100% rename from src/test/ui/issues/issue-25076.stderr rename to tests/ui/issues/issue-25076.stderr diff --git a/src/test/ui/issues/issue-25089.rs b/tests/ui/issues/issue-25089.rs similarity index 100% rename from src/test/ui/issues/issue-25089.rs rename to tests/ui/issues/issue-25089.rs diff --git a/src/test/ui/issues/issue-25145.rs b/tests/ui/issues/issue-25145.rs similarity index 100% rename from src/test/ui/issues/issue-25145.rs rename to tests/ui/issues/issue-25145.rs diff --git a/src/test/ui/issues/issue-25180.rs b/tests/ui/issues/issue-25180.rs similarity index 100% rename from src/test/ui/issues/issue-25180.rs rename to tests/ui/issues/issue-25180.rs diff --git a/src/test/ui/issues/issue-25185.rs b/tests/ui/issues/issue-25185.rs similarity index 100% rename from src/test/ui/issues/issue-25185.rs rename to tests/ui/issues/issue-25185.rs diff --git a/src/test/ui/issues/issue-2526-a.rs b/tests/ui/issues/issue-2526-a.rs similarity index 100% rename from src/test/ui/issues/issue-2526-a.rs rename to tests/ui/issues/issue-2526-a.rs diff --git a/src/test/ui/issues/issue-25279.rs b/tests/ui/issues/issue-25279.rs similarity index 100% rename from src/test/ui/issues/issue-25279.rs rename to tests/ui/issues/issue-25279.rs diff --git a/src/test/ui/issues/issue-25343.rs b/tests/ui/issues/issue-25343.rs similarity index 100% rename from src/test/ui/issues/issue-25343.rs rename to tests/ui/issues/issue-25343.rs diff --git a/src/test/ui/issues/issue-25368.rs b/tests/ui/issues/issue-25368.rs similarity index 100% rename from src/test/ui/issues/issue-25368.rs rename to tests/ui/issues/issue-25368.rs diff --git a/src/test/ui/issues/issue-25368.stderr b/tests/ui/issues/issue-25368.stderr similarity index 100% rename from src/test/ui/issues/issue-25368.stderr rename to tests/ui/issues/issue-25368.stderr diff --git a/src/test/ui/issues/issue-25386.rs b/tests/ui/issues/issue-25386.rs similarity index 100% rename from src/test/ui/issues/issue-25386.rs rename to tests/ui/issues/issue-25386.rs diff --git a/src/test/ui/issues/issue-25386.stderr b/tests/ui/issues/issue-25386.stderr similarity index 100% rename from src/test/ui/issues/issue-25386.stderr rename to tests/ui/issues/issue-25386.stderr diff --git a/src/test/ui/issues/issue-25394.rs b/tests/ui/issues/issue-25394.rs similarity index 100% rename from src/test/ui/issues/issue-25394.rs rename to tests/ui/issues/issue-25394.rs diff --git a/src/test/ui/issues/issue-25439.rs b/tests/ui/issues/issue-25439.rs similarity index 100% rename from src/test/ui/issues/issue-25439.rs rename to tests/ui/issues/issue-25439.rs diff --git a/src/test/ui/issues/issue-25439.stderr b/tests/ui/issues/issue-25439.stderr similarity index 100% rename from src/test/ui/issues/issue-25439.stderr rename to tests/ui/issues/issue-25439.stderr diff --git a/src/test/ui/issues/issue-25467.rs b/tests/ui/issues/issue-25467.rs similarity index 100% rename from src/test/ui/issues/issue-25467.rs rename to tests/ui/issues/issue-25467.rs diff --git a/src/test/ui/issues/issue-25497.rs b/tests/ui/issues/issue-25497.rs similarity index 100% rename from src/test/ui/issues/issue-25497.rs rename to tests/ui/issues/issue-25497.rs diff --git a/src/test/ui/issues/issue-2550.rs b/tests/ui/issues/issue-2550.rs similarity index 100% rename from src/test/ui/issues/issue-2550.rs rename to tests/ui/issues/issue-2550.rs diff --git a/src/test/ui/issues/issue-25515.rs b/tests/ui/issues/issue-25515.rs similarity index 100% rename from src/test/ui/issues/issue-25515.rs rename to tests/ui/issues/issue-25515.rs diff --git a/src/test/ui/issues/issue-25549-multiple-drop.rs b/tests/ui/issues/issue-25549-multiple-drop.rs similarity index 100% rename from src/test/ui/issues/issue-25549-multiple-drop.rs rename to tests/ui/issues/issue-25549-multiple-drop.rs diff --git a/src/test/ui/issues/issue-25579.rs b/tests/ui/issues/issue-25579.rs similarity index 100% rename from src/test/ui/issues/issue-25579.rs rename to tests/ui/issues/issue-25579.rs diff --git a/src/test/ui/issues/issue-25679.rs b/tests/ui/issues/issue-25679.rs similarity index 100% rename from src/test/ui/issues/issue-25679.rs rename to tests/ui/issues/issue-25679.rs diff --git a/src/test/ui/issues/issue-25693.rs b/tests/ui/issues/issue-25693.rs similarity index 100% rename from src/test/ui/issues/issue-25693.rs rename to tests/ui/issues/issue-25693.rs diff --git a/src/test/ui/issues/issue-25746-bool-transmute.rs b/tests/ui/issues/issue-25746-bool-transmute.rs similarity index 100% rename from src/test/ui/issues/issue-25746-bool-transmute.rs rename to tests/ui/issues/issue-25746-bool-transmute.rs diff --git a/src/test/ui/issues/issue-25757.rs b/tests/ui/issues/issue-25757.rs similarity index 100% rename from src/test/ui/issues/issue-25757.rs rename to tests/ui/issues/issue-25757.rs diff --git a/src/test/ui/issues/issue-25810.rs b/tests/ui/issues/issue-25810.rs similarity index 100% rename from src/test/ui/issues/issue-25810.rs rename to tests/ui/issues/issue-25810.rs diff --git a/src/test/ui/issues/issue-2590.rs b/tests/ui/issues/issue-2590.rs similarity index 100% rename from src/test/ui/issues/issue-2590.rs rename to tests/ui/issues/issue-2590.rs diff --git a/src/test/ui/issues/issue-2590.stderr b/tests/ui/issues/issue-2590.stderr similarity index 100% rename from src/test/ui/issues/issue-2590.stderr rename to tests/ui/issues/issue-2590.stderr diff --git a/src/test/ui/issues/issue-25901.rs b/tests/ui/issues/issue-25901.rs similarity index 100% rename from src/test/ui/issues/issue-25901.rs rename to tests/ui/issues/issue-25901.rs diff --git a/src/test/ui/issues/issue-25901.stderr b/tests/ui/issues/issue-25901.stderr similarity index 100% rename from src/test/ui/issues/issue-25901.stderr rename to tests/ui/issues/issue-25901.stderr diff --git a/src/test/ui/issues/issue-26056.rs b/tests/ui/issues/issue-26056.rs similarity index 100% rename from src/test/ui/issues/issue-26056.rs rename to tests/ui/issues/issue-26056.rs diff --git a/src/test/ui/issues/issue-26056.stderr b/tests/ui/issues/issue-26056.stderr similarity index 100% rename from src/test/ui/issues/issue-26056.stderr rename to tests/ui/issues/issue-26056.stderr diff --git a/src/test/ui/issues/issue-26093.rs b/tests/ui/issues/issue-26093.rs similarity index 100% rename from src/test/ui/issues/issue-26093.rs rename to tests/ui/issues/issue-26093.rs diff --git a/src/test/ui/issues/issue-26093.stderr b/tests/ui/issues/issue-26093.stderr similarity index 100% rename from src/test/ui/issues/issue-26093.stderr rename to tests/ui/issues/issue-26093.stderr diff --git a/src/test/ui/issues/issue-26094.rs b/tests/ui/issues/issue-26094.rs similarity index 100% rename from src/test/ui/issues/issue-26094.rs rename to tests/ui/issues/issue-26094.rs diff --git a/src/test/ui/issues/issue-26094.stderr b/tests/ui/issues/issue-26094.stderr similarity index 100% rename from src/test/ui/issues/issue-26094.stderr rename to tests/ui/issues/issue-26094.stderr diff --git a/src/test/ui/issues/issue-26095.rs b/tests/ui/issues/issue-26095.rs similarity index 100% rename from src/test/ui/issues/issue-26095.rs rename to tests/ui/issues/issue-26095.rs diff --git a/src/test/ui/issues/issue-2611-3.rs b/tests/ui/issues/issue-2611-3.rs similarity index 100% rename from src/test/ui/issues/issue-2611-3.rs rename to tests/ui/issues/issue-2611-3.rs diff --git a/src/test/ui/issues/issue-26127.rs b/tests/ui/issues/issue-26127.rs similarity index 100% rename from src/test/ui/issues/issue-26127.rs rename to tests/ui/issues/issue-26127.rs diff --git a/src/test/ui/issues/issue-26186.rs b/tests/ui/issues/issue-26186.rs similarity index 100% rename from src/test/ui/issues/issue-26186.rs rename to tests/ui/issues/issue-26186.rs diff --git a/src/test/ui/issues/issue-26205.rs b/tests/ui/issues/issue-26205.rs similarity index 100% rename from src/test/ui/issues/issue-26205.rs rename to tests/ui/issues/issue-26205.rs diff --git a/src/test/ui/issues/issue-26217.rs b/tests/ui/issues/issue-26217.rs similarity index 100% rename from src/test/ui/issues/issue-26217.rs rename to tests/ui/issues/issue-26217.rs diff --git a/src/test/ui/issues/issue-26217.stderr b/tests/ui/issues/issue-26217.stderr similarity index 100% rename from src/test/ui/issues/issue-26217.stderr rename to tests/ui/issues/issue-26217.stderr diff --git a/src/test/ui/issues/issue-26237.rs b/tests/ui/issues/issue-26237.rs similarity index 100% rename from src/test/ui/issues/issue-26237.rs rename to tests/ui/issues/issue-26237.rs diff --git a/src/test/ui/issues/issue-26237.stderr b/tests/ui/issues/issue-26237.stderr similarity index 100% rename from src/test/ui/issues/issue-26237.stderr rename to tests/ui/issues/issue-26237.stderr diff --git a/src/test/ui/issues/issue-26262.rs b/tests/ui/issues/issue-26262.rs similarity index 100% rename from src/test/ui/issues/issue-26262.rs rename to tests/ui/issues/issue-26262.rs diff --git a/src/test/ui/issues/issue-26262.stderr b/tests/ui/issues/issue-26262.stderr similarity index 100% rename from src/test/ui/issues/issue-26262.stderr rename to tests/ui/issues/issue-26262.stderr diff --git a/src/test/ui/issues/issue-2631-b.rs b/tests/ui/issues/issue-2631-b.rs similarity index 100% rename from src/test/ui/issues/issue-2631-b.rs rename to tests/ui/issues/issue-2631-b.rs diff --git a/src/test/ui/issues/issue-2642.rs b/tests/ui/issues/issue-2642.rs similarity index 100% rename from src/test/ui/issues/issue-2642.rs rename to tests/ui/issues/issue-2642.rs diff --git a/src/test/ui/issues/issue-26468.rs b/tests/ui/issues/issue-26468.rs similarity index 100% rename from src/test/ui/issues/issue-26468.rs rename to tests/ui/issues/issue-26468.rs diff --git a/src/test/ui/issues/issue-26472.rs b/tests/ui/issues/issue-26472.rs similarity index 100% rename from src/test/ui/issues/issue-26472.rs rename to tests/ui/issues/issue-26472.rs diff --git a/src/test/ui/issues/issue-26472.stderr b/tests/ui/issues/issue-26472.stderr similarity index 100% rename from src/test/ui/issues/issue-26472.stderr rename to tests/ui/issues/issue-26472.stderr diff --git a/src/test/ui/issues/issue-26484.rs b/tests/ui/issues/issue-26484.rs similarity index 100% rename from src/test/ui/issues/issue-26484.rs rename to tests/ui/issues/issue-26484.rs diff --git a/src/test/ui/issues/issue-26614.rs b/tests/ui/issues/issue-26614.rs similarity index 100% rename from src/test/ui/issues/issue-26614.rs rename to tests/ui/issues/issue-26614.rs diff --git a/src/test/ui/issues/issue-26619.rs b/tests/ui/issues/issue-26619.rs similarity index 100% rename from src/test/ui/issues/issue-26619.rs rename to tests/ui/issues/issue-26619.rs diff --git a/src/test/ui/issues/issue-26619.stderr b/tests/ui/issues/issue-26619.stderr similarity index 100% rename from src/test/ui/issues/issue-26619.stderr rename to tests/ui/issues/issue-26619.stderr diff --git a/src/test/ui/issues/issue-26641.rs b/tests/ui/issues/issue-26641.rs similarity index 100% rename from src/test/ui/issues/issue-26641.rs rename to tests/ui/issues/issue-26641.rs diff --git a/src/test/ui/issues/issue-26646.rs b/tests/ui/issues/issue-26646.rs similarity index 100% rename from src/test/ui/issues/issue-26646.rs rename to tests/ui/issues/issue-26646.rs diff --git a/src/test/ui/issues/issue-26655.rs b/tests/ui/issues/issue-26655.rs similarity index 100% rename from src/test/ui/issues/issue-26655.rs rename to tests/ui/issues/issue-26655.rs diff --git a/src/test/ui/issues/issue-26709.rs b/tests/ui/issues/issue-26709.rs similarity index 100% rename from src/test/ui/issues/issue-26709.rs rename to tests/ui/issues/issue-26709.rs diff --git a/src/test/ui/issues/issue-26802.rs b/tests/ui/issues/issue-26802.rs similarity index 100% rename from src/test/ui/issues/issue-26802.rs rename to tests/ui/issues/issue-26802.rs diff --git a/src/test/ui/issues/issue-26805.rs b/tests/ui/issues/issue-26805.rs similarity index 100% rename from src/test/ui/issues/issue-26805.rs rename to tests/ui/issues/issue-26805.rs diff --git a/src/test/ui/issues/issue-26812.rs b/tests/ui/issues/issue-26812.rs similarity index 100% rename from src/test/ui/issues/issue-26812.rs rename to tests/ui/issues/issue-26812.rs diff --git a/src/test/ui/issues/issue-26812.stderr b/tests/ui/issues/issue-26812.stderr similarity index 100% rename from src/test/ui/issues/issue-26812.stderr rename to tests/ui/issues/issue-26812.stderr diff --git a/src/test/ui/issues/issue-26905-rpass.rs b/tests/ui/issues/issue-26905-rpass.rs similarity index 100% rename from src/test/ui/issues/issue-26905-rpass.rs rename to tests/ui/issues/issue-26905-rpass.rs diff --git a/src/test/ui/issues/issue-26905.rs b/tests/ui/issues/issue-26905.rs similarity index 100% rename from src/test/ui/issues/issue-26905.rs rename to tests/ui/issues/issue-26905.rs diff --git a/src/test/ui/issues/issue-26905.stderr b/tests/ui/issues/issue-26905.stderr similarity index 100% rename from src/test/ui/issues/issue-26905.stderr rename to tests/ui/issues/issue-26905.stderr diff --git a/src/test/ui/issues/issue-26948.rs b/tests/ui/issues/issue-26948.rs similarity index 100% rename from src/test/ui/issues/issue-26948.rs rename to tests/ui/issues/issue-26948.rs diff --git a/src/test/ui/issues/issue-26948.stderr b/tests/ui/issues/issue-26948.stderr similarity index 100% rename from src/test/ui/issues/issue-26948.stderr rename to tests/ui/issues/issue-26948.stderr diff --git a/src/test/ui/issues/issue-26997.rs b/tests/ui/issues/issue-26997.rs similarity index 100% rename from src/test/ui/issues/issue-26997.rs rename to tests/ui/issues/issue-26997.rs diff --git a/src/test/ui/issues/issue-27008.rs b/tests/ui/issues/issue-27008.rs similarity index 100% rename from src/test/ui/issues/issue-27008.rs rename to tests/ui/issues/issue-27008.rs diff --git a/src/test/ui/issues/issue-27008.stderr b/tests/ui/issues/issue-27008.stderr similarity index 100% rename from src/test/ui/issues/issue-27008.stderr rename to tests/ui/issues/issue-27008.stderr diff --git a/src/test/ui/issues/issue-27033.rs b/tests/ui/issues/issue-27033.rs similarity index 100% rename from src/test/ui/issues/issue-27033.rs rename to tests/ui/issues/issue-27033.rs diff --git a/src/test/ui/issues/issue-27033.stderr b/tests/ui/issues/issue-27033.stderr similarity index 100% rename from src/test/ui/issues/issue-27033.stderr rename to tests/ui/issues/issue-27033.stderr diff --git a/src/test/ui/issues/issue-27042.rs b/tests/ui/issues/issue-27042.rs similarity index 100% rename from src/test/ui/issues/issue-27042.rs rename to tests/ui/issues/issue-27042.rs diff --git a/src/test/ui/issues/issue-27042.stderr b/tests/ui/issues/issue-27042.stderr similarity index 100% rename from src/test/ui/issues/issue-27042.stderr rename to tests/ui/issues/issue-27042.stderr diff --git a/src/test/ui/issues/issue-27054-primitive-binary-ops.rs b/tests/ui/issues/issue-27054-primitive-binary-ops.rs similarity index 100% rename from src/test/ui/issues/issue-27054-primitive-binary-ops.rs rename to tests/ui/issues/issue-27054-primitive-binary-ops.rs diff --git a/src/test/ui/issues/issue-27078.rs b/tests/ui/issues/issue-27078.rs similarity index 100% rename from src/test/ui/issues/issue-27078.rs rename to tests/ui/issues/issue-27078.rs diff --git a/src/test/ui/issues/issue-27078.stderr b/tests/ui/issues/issue-27078.stderr similarity index 100% rename from src/test/ui/issues/issue-27078.stderr rename to tests/ui/issues/issue-27078.stderr diff --git a/src/test/ui/issues/issue-2708.rs b/tests/ui/issues/issue-2708.rs similarity index 100% rename from src/test/ui/issues/issue-2708.rs rename to tests/ui/issues/issue-2708.rs diff --git a/src/test/ui/issues/issue-27105.rs b/tests/ui/issues/issue-27105.rs similarity index 100% rename from src/test/ui/issues/issue-27105.rs rename to tests/ui/issues/issue-27105.rs diff --git a/src/test/ui/issues/issue-2723-b.rs b/tests/ui/issues/issue-2723-b.rs similarity index 100% rename from src/test/ui/issues/issue-2723-b.rs rename to tests/ui/issues/issue-2723-b.rs diff --git a/src/test/ui/issues/issue-27240.rs b/tests/ui/issues/issue-27240.rs similarity index 100% rename from src/test/ui/issues/issue-27240.rs rename to tests/ui/issues/issue-27240.rs diff --git a/src/test/ui/issues/issue-27268.rs b/tests/ui/issues/issue-27268.rs similarity index 100% rename from src/test/ui/issues/issue-27268.rs rename to tests/ui/issues/issue-27268.rs diff --git a/src/test/ui/issues/issue-27281.rs b/tests/ui/issues/issue-27281.rs similarity index 100% rename from src/test/ui/issues/issue-27281.rs rename to tests/ui/issues/issue-27281.rs diff --git a/src/test/ui/issues/issue-27340.rs b/tests/ui/issues/issue-27340.rs similarity index 100% rename from src/test/ui/issues/issue-27340.rs rename to tests/ui/issues/issue-27340.rs diff --git a/src/test/ui/issues/issue-27340.stderr b/tests/ui/issues/issue-27340.stderr similarity index 100% rename from src/test/ui/issues/issue-27340.stderr rename to tests/ui/issues/issue-27340.stderr diff --git a/src/test/ui/issues/issue-2735-2.rs b/tests/ui/issues/issue-2735-2.rs similarity index 100% rename from src/test/ui/issues/issue-2735-2.rs rename to tests/ui/issues/issue-2735-2.rs diff --git a/src/test/ui/issues/issue-2735-3.rs b/tests/ui/issues/issue-2735-3.rs similarity index 100% rename from src/test/ui/issues/issue-2735-3.rs rename to tests/ui/issues/issue-2735-3.rs diff --git a/src/test/ui/issues/issue-2735.rs b/tests/ui/issues/issue-2735.rs similarity index 100% rename from src/test/ui/issues/issue-2735.rs rename to tests/ui/issues/issue-2735.rs diff --git a/src/test/ui/issues/issue-27401-dropflag-reinit.rs b/tests/ui/issues/issue-27401-dropflag-reinit.rs similarity index 100% rename from src/test/ui/issues/issue-27401-dropflag-reinit.rs rename to tests/ui/issues/issue-27401-dropflag-reinit.rs diff --git a/src/test/ui/issues/issue-27433.fixed b/tests/ui/issues/issue-27433.fixed similarity index 100% rename from src/test/ui/issues/issue-27433.fixed rename to tests/ui/issues/issue-27433.fixed diff --git a/src/test/ui/issues/issue-27433.rs b/tests/ui/issues/issue-27433.rs similarity index 100% rename from src/test/ui/issues/issue-27433.rs rename to tests/ui/issues/issue-27433.rs diff --git a/src/test/ui/issues/issue-27433.stderr b/tests/ui/issues/issue-27433.stderr similarity index 100% rename from src/test/ui/issues/issue-27433.stderr rename to tests/ui/issues/issue-27433.stderr diff --git a/src/test/ui/issues/issue-2748-a.rs b/tests/ui/issues/issue-2748-a.rs similarity index 100% rename from src/test/ui/issues/issue-2748-a.rs rename to tests/ui/issues/issue-2748-a.rs diff --git a/src/test/ui/issues/issue-27583.rs b/tests/ui/issues/issue-27583.rs similarity index 100% rename from src/test/ui/issues/issue-27583.rs rename to tests/ui/issues/issue-27583.rs diff --git a/src/test/ui/issues/issue-27592.rs b/tests/ui/issues/issue-27592.rs similarity index 100% rename from src/test/ui/issues/issue-27592.rs rename to tests/ui/issues/issue-27592.rs diff --git a/src/test/ui/issues/issue-27592.stderr b/tests/ui/issues/issue-27592.stderr similarity index 100% rename from src/test/ui/issues/issue-27592.stderr rename to tests/ui/issues/issue-27592.stderr diff --git a/src/test/ui/issues/issue-2761.rs b/tests/ui/issues/issue-2761.rs similarity index 100% rename from src/test/ui/issues/issue-2761.rs rename to tests/ui/issues/issue-2761.rs diff --git a/src/test/ui/issues/issue-27639.rs b/tests/ui/issues/issue-27639.rs similarity index 100% rename from src/test/ui/issues/issue-27639.rs rename to tests/ui/issues/issue-27639.rs diff --git a/src/test/ui/issues/issue-27697.rs b/tests/ui/issues/issue-27697.rs similarity index 100% rename from src/test/ui/issues/issue-27697.rs rename to tests/ui/issues/issue-27697.rs diff --git a/src/test/ui/issues/issue-27815.rs b/tests/ui/issues/issue-27815.rs similarity index 100% rename from src/test/ui/issues/issue-27815.rs rename to tests/ui/issues/issue-27815.rs diff --git a/src/test/ui/issues/issue-27815.stderr b/tests/ui/issues/issue-27815.stderr similarity index 100% rename from src/test/ui/issues/issue-27815.stderr rename to tests/ui/issues/issue-27815.stderr diff --git a/src/test/ui/issues/issue-27842.rs b/tests/ui/issues/issue-27842.rs similarity index 100% rename from src/test/ui/issues/issue-27842.rs rename to tests/ui/issues/issue-27842.rs diff --git a/src/test/ui/issues/issue-27842.stderr b/tests/ui/issues/issue-27842.stderr similarity index 100% rename from src/test/ui/issues/issue-27842.stderr rename to tests/ui/issues/issue-27842.stderr diff --git a/src/test/ui/issues/issue-27859.rs b/tests/ui/issues/issue-27859.rs similarity index 100% rename from src/test/ui/issues/issue-27859.rs rename to tests/ui/issues/issue-27859.rs diff --git a/src/test/ui/issues/issue-27889.rs b/tests/ui/issues/issue-27889.rs similarity index 100% rename from src/test/ui/issues/issue-27889.rs rename to tests/ui/issues/issue-27889.rs diff --git a/src/test/ui/issues/issue-27901.rs b/tests/ui/issues/issue-27901.rs similarity index 100% rename from src/test/ui/issues/issue-27901.rs rename to tests/ui/issues/issue-27901.rs diff --git a/src/test/ui/issues/issue-27942.rs b/tests/ui/issues/issue-27942.rs similarity index 100% rename from src/test/ui/issues/issue-27942.rs rename to tests/ui/issues/issue-27942.rs diff --git a/src/test/ui/issues/issue-27942.stderr b/tests/ui/issues/issue-27942.stderr similarity index 100% rename from src/test/ui/issues/issue-27942.stderr rename to tests/ui/issues/issue-27942.stderr diff --git a/src/test/ui/issues/issue-27949.rs b/tests/ui/issues/issue-27949.rs similarity index 100% rename from src/test/ui/issues/issue-27949.rs rename to tests/ui/issues/issue-27949.rs diff --git a/src/test/ui/issues/issue-27997.rs b/tests/ui/issues/issue-27997.rs similarity index 100% rename from src/test/ui/issues/issue-27997.rs rename to tests/ui/issues/issue-27997.rs diff --git a/src/test/ui/issues/issue-2804-2.rs b/tests/ui/issues/issue-2804-2.rs similarity index 100% rename from src/test/ui/issues/issue-2804-2.rs rename to tests/ui/issues/issue-2804-2.rs diff --git a/src/test/ui/issues/issue-28105.rs b/tests/ui/issues/issue-28105.rs similarity index 100% rename from src/test/ui/issues/issue-28105.rs rename to tests/ui/issues/issue-28105.rs diff --git a/src/test/ui/issues/issue-28105.stderr b/tests/ui/issues/issue-28105.stderr similarity index 100% rename from src/test/ui/issues/issue-28105.stderr rename to tests/ui/issues/issue-28105.stderr diff --git a/src/test/ui/issues/issue-28109.rs b/tests/ui/issues/issue-28109.rs similarity index 100% rename from src/test/ui/issues/issue-28109.rs rename to tests/ui/issues/issue-28109.rs diff --git a/src/test/ui/issues/issue-28109.stderr b/tests/ui/issues/issue-28109.stderr similarity index 100% rename from src/test/ui/issues/issue-28109.stderr rename to tests/ui/issues/issue-28109.stderr diff --git a/src/test/ui/issues/issue-28181.rs b/tests/ui/issues/issue-28181.rs similarity index 100% rename from src/test/ui/issues/issue-28181.rs rename to tests/ui/issues/issue-28181.rs diff --git a/src/test/ui/issues/issue-2823.rs b/tests/ui/issues/issue-2823.rs similarity index 100% rename from src/test/ui/issues/issue-2823.rs rename to tests/ui/issues/issue-2823.rs diff --git a/src/test/ui/issues/issue-2823.stderr b/tests/ui/issues/issue-2823.stderr similarity index 100% rename from src/test/ui/issues/issue-2823.stderr rename to tests/ui/issues/issue-2823.stderr diff --git a/src/test/ui/issues/issue-28279.rs b/tests/ui/issues/issue-28279.rs similarity index 100% rename from src/test/ui/issues/issue-28279.rs rename to tests/ui/issues/issue-28279.rs diff --git a/src/test/ui/issues/issue-28344.rs b/tests/ui/issues/issue-28344.rs similarity index 100% rename from src/test/ui/issues/issue-28344.rs rename to tests/ui/issues/issue-28344.rs diff --git a/src/test/ui/issues/issue-28344.stderr b/tests/ui/issues/issue-28344.stderr similarity index 100% rename from src/test/ui/issues/issue-28344.stderr rename to tests/ui/issues/issue-28344.stderr diff --git a/src/test/ui/issues/issue-28433.rs b/tests/ui/issues/issue-28433.rs similarity index 100% rename from src/test/ui/issues/issue-28433.rs rename to tests/ui/issues/issue-28433.rs diff --git a/src/test/ui/issues/issue-28433.stderr b/tests/ui/issues/issue-28433.stderr similarity index 100% rename from src/test/ui/issues/issue-28433.stderr rename to tests/ui/issues/issue-28433.stderr diff --git a/src/test/ui/issues/issue-28472.rs b/tests/ui/issues/issue-28472.rs similarity index 100% rename from src/test/ui/issues/issue-28472.rs rename to tests/ui/issues/issue-28472.rs diff --git a/src/test/ui/issues/issue-28472.stderr b/tests/ui/issues/issue-28472.stderr similarity index 100% rename from src/test/ui/issues/issue-28472.stderr rename to tests/ui/issues/issue-28472.stderr diff --git a/src/test/ui/issues/issue-2848.rs b/tests/ui/issues/issue-2848.rs similarity index 100% rename from src/test/ui/issues/issue-2848.rs rename to tests/ui/issues/issue-2848.rs diff --git a/src/test/ui/issues/issue-2848.stderr b/tests/ui/issues/issue-2848.stderr similarity index 100% rename from src/test/ui/issues/issue-2848.stderr rename to tests/ui/issues/issue-2848.stderr diff --git a/src/test/ui/issues/issue-2849.rs b/tests/ui/issues/issue-2849.rs similarity index 100% rename from src/test/ui/issues/issue-2849.rs rename to tests/ui/issues/issue-2849.rs diff --git a/src/test/ui/issues/issue-2849.stderr b/tests/ui/issues/issue-2849.stderr similarity index 100% rename from src/test/ui/issues/issue-2849.stderr rename to tests/ui/issues/issue-2849.stderr diff --git a/src/test/ui/issues/issue-28498-must-work-ex1.rs b/tests/ui/issues/issue-28498-must-work-ex1.rs similarity index 100% rename from src/test/ui/issues/issue-28498-must-work-ex1.rs rename to tests/ui/issues/issue-28498-must-work-ex1.rs diff --git a/src/test/ui/issues/issue-28498-must-work-ex2.rs b/tests/ui/issues/issue-28498-must-work-ex2.rs similarity index 100% rename from src/test/ui/issues/issue-28498-must-work-ex2.rs rename to tests/ui/issues/issue-28498-must-work-ex2.rs diff --git a/src/test/ui/issues/issue-28498-ugeh-ex1.rs b/tests/ui/issues/issue-28498-ugeh-ex1.rs similarity index 100% rename from src/test/ui/issues/issue-28498-ugeh-ex1.rs rename to tests/ui/issues/issue-28498-ugeh-ex1.rs diff --git a/src/test/ui/issues/issue-28550.rs b/tests/ui/issues/issue-28550.rs similarity index 100% rename from src/test/ui/issues/issue-28550.rs rename to tests/ui/issues/issue-28550.rs diff --git a/src/test/ui/issues/issue-28561.rs b/tests/ui/issues/issue-28561.rs similarity index 100% rename from src/test/ui/issues/issue-28561.rs rename to tests/ui/issues/issue-28561.rs diff --git a/src/test/ui/issues/issue-28568.rs b/tests/ui/issues/issue-28568.rs similarity index 100% rename from src/test/ui/issues/issue-28568.rs rename to tests/ui/issues/issue-28568.rs diff --git a/src/test/ui/issues/issue-28568.stderr b/tests/ui/issues/issue-28568.stderr similarity index 100% rename from src/test/ui/issues/issue-28568.stderr rename to tests/ui/issues/issue-28568.stderr diff --git a/src/test/ui/issues/issue-28586.rs b/tests/ui/issues/issue-28586.rs similarity index 100% rename from src/test/ui/issues/issue-28586.rs rename to tests/ui/issues/issue-28586.rs diff --git a/src/test/ui/issues/issue-28586.stderr b/tests/ui/issues/issue-28586.stderr similarity index 100% rename from src/test/ui/issues/issue-28586.stderr rename to tests/ui/issues/issue-28586.stderr diff --git a/src/test/ui/issues/issue-28600.rs b/tests/ui/issues/issue-28600.rs similarity index 100% rename from src/test/ui/issues/issue-28600.rs rename to tests/ui/issues/issue-28600.rs diff --git a/src/test/ui/issues/issue-28625.rs b/tests/ui/issues/issue-28625.rs similarity index 100% rename from src/test/ui/issues/issue-28625.rs rename to tests/ui/issues/issue-28625.rs diff --git a/src/test/ui/issues/issue-28625.stderr b/tests/ui/issues/issue-28625.stderr similarity index 100% rename from src/test/ui/issues/issue-28625.stderr rename to tests/ui/issues/issue-28625.stderr diff --git a/src/test/ui/issues/issue-28776.mir.stderr b/tests/ui/issues/issue-28776.mir.stderr similarity index 100% rename from src/test/ui/issues/issue-28776.mir.stderr rename to tests/ui/issues/issue-28776.mir.stderr diff --git a/src/test/ui/issues/issue-28776.rs b/tests/ui/issues/issue-28776.rs similarity index 100% rename from src/test/ui/issues/issue-28776.rs rename to tests/ui/issues/issue-28776.rs diff --git a/src/test/ui/issues/issue-28776.thir.stderr b/tests/ui/issues/issue-28776.thir.stderr similarity index 100% rename from src/test/ui/issues/issue-28776.thir.stderr rename to tests/ui/issues/issue-28776.thir.stderr diff --git a/src/test/ui/issues/issue-28777.rs b/tests/ui/issues/issue-28777.rs similarity index 100% rename from src/test/ui/issues/issue-28777.rs rename to tests/ui/issues/issue-28777.rs diff --git a/src/test/ui/issues/issue-28822.rs b/tests/ui/issues/issue-28822.rs similarity index 100% rename from src/test/ui/issues/issue-28822.rs rename to tests/ui/issues/issue-28822.rs diff --git a/src/test/ui/issues/issue-28828.rs b/tests/ui/issues/issue-28828.rs similarity index 100% rename from src/test/ui/issues/issue-28828.rs rename to tests/ui/issues/issue-28828.rs diff --git a/src/test/ui/issues/issue-28839.rs b/tests/ui/issues/issue-28839.rs similarity index 100% rename from src/test/ui/issues/issue-28839.rs rename to tests/ui/issues/issue-28839.rs diff --git a/src/test/ui/issues/issue-28936.rs b/tests/ui/issues/issue-28936.rs similarity index 100% rename from src/test/ui/issues/issue-28936.rs rename to tests/ui/issues/issue-28936.rs diff --git a/src/test/ui/issues/issue-2895.rs b/tests/ui/issues/issue-2895.rs similarity index 100% rename from src/test/ui/issues/issue-2895.rs rename to tests/ui/issues/issue-2895.rs diff --git a/src/test/ui/issues/issue-28971.rs b/tests/ui/issues/issue-28971.rs similarity index 100% rename from src/test/ui/issues/issue-28971.rs rename to tests/ui/issues/issue-28971.rs diff --git a/src/test/ui/issues/issue-28971.stderr b/tests/ui/issues/issue-28971.stderr similarity index 100% rename from src/test/ui/issues/issue-28971.stderr rename to tests/ui/issues/issue-28971.stderr diff --git a/src/test/ui/issues/issue-28983.rs b/tests/ui/issues/issue-28983.rs similarity index 100% rename from src/test/ui/issues/issue-28983.rs rename to tests/ui/issues/issue-28983.rs diff --git a/src/test/ui/issues/issue-28992-empty.rs b/tests/ui/issues/issue-28992-empty.rs similarity index 100% rename from src/test/ui/issues/issue-28992-empty.rs rename to tests/ui/issues/issue-28992-empty.rs diff --git a/src/test/ui/issues/issue-28992-empty.stderr b/tests/ui/issues/issue-28992-empty.stderr similarity index 100% rename from src/test/ui/issues/issue-28992-empty.stderr rename to tests/ui/issues/issue-28992-empty.stderr diff --git a/src/test/ui/issues/issue-28999.rs b/tests/ui/issues/issue-28999.rs similarity index 100% rename from src/test/ui/issues/issue-28999.rs rename to tests/ui/issues/issue-28999.rs diff --git a/src/test/ui/issues/issue-29030.rs b/tests/ui/issues/issue-29030.rs similarity index 100% rename from src/test/ui/issues/issue-29030.rs rename to tests/ui/issues/issue-29030.rs diff --git a/src/test/ui/issues/issue-29037.rs b/tests/ui/issues/issue-29037.rs similarity index 100% rename from src/test/ui/issues/issue-29037.rs rename to tests/ui/issues/issue-29037.rs diff --git a/src/test/ui/issues/issue-2904.rs b/tests/ui/issues/issue-2904.rs similarity index 100% rename from src/test/ui/issues/issue-2904.rs rename to tests/ui/issues/issue-2904.rs diff --git a/src/test/ui/issues/issue-29048.rs b/tests/ui/issues/issue-29048.rs similarity index 100% rename from src/test/ui/issues/issue-29048.rs rename to tests/ui/issues/issue-29048.rs diff --git a/src/test/ui/issues/issue-29053.rs b/tests/ui/issues/issue-29053.rs similarity index 100% rename from src/test/ui/issues/issue-29053.rs rename to tests/ui/issues/issue-29053.rs diff --git a/src/test/ui/issues/issue-29071-2.rs b/tests/ui/issues/issue-29071-2.rs similarity index 100% rename from src/test/ui/issues/issue-29071-2.rs rename to tests/ui/issues/issue-29071-2.rs diff --git a/src/test/ui/issues/issue-29071.rs b/tests/ui/issues/issue-29071.rs similarity index 100% rename from src/test/ui/issues/issue-29071.rs rename to tests/ui/issues/issue-29071.rs diff --git a/src/test/ui/issues/issue-29092.rs b/tests/ui/issues/issue-29092.rs similarity index 100% rename from src/test/ui/issues/issue-29092.rs rename to tests/ui/issues/issue-29092.rs diff --git a/src/test/ui/issues/issue-29147-rpass.rs b/tests/ui/issues/issue-29147-rpass.rs similarity index 100% rename from src/test/ui/issues/issue-29147-rpass.rs rename to tests/ui/issues/issue-29147-rpass.rs diff --git a/src/test/ui/issues/issue-29147.rs b/tests/ui/issues/issue-29147.rs similarity index 100% rename from src/test/ui/issues/issue-29147.rs rename to tests/ui/issues/issue-29147.rs diff --git a/src/test/ui/issues/issue-29147.stderr b/tests/ui/issues/issue-29147.stderr similarity index 100% rename from src/test/ui/issues/issue-29147.stderr rename to tests/ui/issues/issue-29147.stderr diff --git a/src/test/ui/issues/issue-29181.rs b/tests/ui/issues/issue-29181.rs similarity index 100% rename from src/test/ui/issues/issue-29181.rs rename to tests/ui/issues/issue-29181.rs diff --git a/src/test/ui/issues/issue-29181.stderr b/tests/ui/issues/issue-29181.stderr similarity index 100% rename from src/test/ui/issues/issue-29181.stderr rename to tests/ui/issues/issue-29181.stderr diff --git a/src/test/ui/issues/issue-29265.rs b/tests/ui/issues/issue-29265.rs similarity index 100% rename from src/test/ui/issues/issue-29265.rs rename to tests/ui/issues/issue-29265.rs diff --git a/src/test/ui/issues/issue-29276.rs b/tests/ui/issues/issue-29276.rs similarity index 100% rename from src/test/ui/issues/issue-29276.rs rename to tests/ui/issues/issue-29276.rs diff --git a/src/test/ui/issues/issue-2935.rs b/tests/ui/issues/issue-2935.rs similarity index 100% rename from src/test/ui/issues/issue-2935.rs rename to tests/ui/issues/issue-2935.rs diff --git a/src/test/ui/issues/issue-29466.rs b/tests/ui/issues/issue-29466.rs similarity index 100% rename from src/test/ui/issues/issue-29466.rs rename to tests/ui/issues/issue-29466.rs diff --git a/src/test/ui/issues/issue-29485.rs b/tests/ui/issues/issue-29485.rs similarity index 100% rename from src/test/ui/issues/issue-29485.rs rename to tests/ui/issues/issue-29485.rs diff --git a/src/test/ui/issues/issue-2951.rs b/tests/ui/issues/issue-2951.rs similarity index 100% rename from src/test/ui/issues/issue-2951.rs rename to tests/ui/issues/issue-2951.rs diff --git a/src/test/ui/issues/issue-2951.stderr b/tests/ui/issues/issue-2951.stderr similarity index 100% rename from src/test/ui/issues/issue-2951.stderr rename to tests/ui/issues/issue-2951.stderr diff --git a/src/test/ui/issues/issue-29516.rs b/tests/ui/issues/issue-29516.rs similarity index 100% rename from src/test/ui/issues/issue-29516.rs rename to tests/ui/issues/issue-29516.rs diff --git a/src/test/ui/issues/issue-29522.rs b/tests/ui/issues/issue-29522.rs similarity index 100% rename from src/test/ui/issues/issue-29522.rs rename to tests/ui/issues/issue-29522.rs diff --git a/src/test/ui/issues/issue-29540.rs b/tests/ui/issues/issue-29540.rs similarity index 100% rename from src/test/ui/issues/issue-29540.rs rename to tests/ui/issues/issue-29540.rs diff --git a/src/test/ui/issues/issue-29663.rs b/tests/ui/issues/issue-29663.rs similarity index 100% rename from src/test/ui/issues/issue-29663.rs rename to tests/ui/issues/issue-29663.rs diff --git a/src/test/ui/issues/issue-29668.rs b/tests/ui/issues/issue-29668.rs similarity index 100% rename from src/test/ui/issues/issue-29668.rs rename to tests/ui/issues/issue-29668.rs diff --git a/src/test/ui/issues/issue-29710.rs b/tests/ui/issues/issue-29710.rs similarity index 100% rename from src/test/ui/issues/issue-29710.rs rename to tests/ui/issues/issue-29710.rs diff --git a/src/test/ui/issues/issue-29723.rs b/tests/ui/issues/issue-29723.rs similarity index 100% rename from src/test/ui/issues/issue-29723.rs rename to tests/ui/issues/issue-29723.rs diff --git a/src/test/ui/issues/issue-29723.stderr b/tests/ui/issues/issue-29723.stderr similarity index 100% rename from src/test/ui/issues/issue-29723.stderr rename to tests/ui/issues/issue-29723.stderr diff --git a/src/test/ui/issues/issue-29740.rs b/tests/ui/issues/issue-29740.rs similarity index 100% rename from src/test/ui/issues/issue-29740.rs rename to tests/ui/issues/issue-29740.rs diff --git a/src/test/ui/issues/issue-29743.rs b/tests/ui/issues/issue-29743.rs similarity index 100% rename from src/test/ui/issues/issue-29743.rs rename to tests/ui/issues/issue-29743.rs diff --git a/src/test/ui/issues/issue-29746.rs b/tests/ui/issues/issue-29746.rs similarity index 100% rename from src/test/ui/issues/issue-29746.rs rename to tests/ui/issues/issue-29746.rs diff --git a/src/test/ui/issues/issue-29798.rs b/tests/ui/issues/issue-29798.rs similarity index 100% rename from src/test/ui/issues/issue-29798.rs rename to tests/ui/issues/issue-29798.rs diff --git a/src/test/ui/issues/issue-29821.rs b/tests/ui/issues/issue-29821.rs similarity index 100% rename from src/test/ui/issues/issue-29821.rs rename to tests/ui/issues/issue-29821.rs diff --git a/src/test/ui/issues/issue-29857.rs b/tests/ui/issues/issue-29857.rs similarity index 100% rename from src/test/ui/issues/issue-29857.rs rename to tests/ui/issues/issue-29857.rs diff --git a/src/test/ui/issues/issue-29861.rs b/tests/ui/issues/issue-29861.rs similarity index 100% rename from src/test/ui/issues/issue-29861.rs rename to tests/ui/issues/issue-29861.rs diff --git a/src/test/ui/issues/issue-29861.stderr b/tests/ui/issues/issue-29861.stderr similarity index 100% rename from src/test/ui/issues/issue-29861.stderr rename to tests/ui/issues/issue-29861.stderr diff --git a/src/test/ui/issues/issue-2989.rs b/tests/ui/issues/issue-2989.rs similarity index 100% rename from src/test/ui/issues/issue-2989.rs rename to tests/ui/issues/issue-2989.rs diff --git a/src/test/ui/issues/issue-29948.rs b/tests/ui/issues/issue-29948.rs similarity index 100% rename from src/test/ui/issues/issue-29948.rs rename to tests/ui/issues/issue-29948.rs diff --git a/src/test/ui/issues/issue-2995.rs b/tests/ui/issues/issue-2995.rs similarity index 100% rename from src/test/ui/issues/issue-2995.rs rename to tests/ui/issues/issue-2995.rs diff --git a/src/test/ui/issues/issue-2995.stderr b/tests/ui/issues/issue-2995.stderr similarity index 100% rename from src/test/ui/issues/issue-2995.stderr rename to tests/ui/issues/issue-2995.stderr diff --git a/src/test/ui/issues/issue-30007.rs b/tests/ui/issues/issue-30007.rs similarity index 100% rename from src/test/ui/issues/issue-30007.rs rename to tests/ui/issues/issue-30007.rs diff --git a/src/test/ui/issues/issue-30007.stderr b/tests/ui/issues/issue-30007.stderr similarity index 100% rename from src/test/ui/issues/issue-30007.stderr rename to tests/ui/issues/issue-30007.stderr diff --git a/src/test/ui/issues/issue-30018-panic.rs b/tests/ui/issues/issue-30018-panic.rs similarity index 100% rename from src/test/ui/issues/issue-30018-panic.rs rename to tests/ui/issues/issue-30018-panic.rs diff --git a/src/test/ui/issues/issue-3008-1.rs b/tests/ui/issues/issue-3008-1.rs similarity index 100% rename from src/test/ui/issues/issue-3008-1.rs rename to tests/ui/issues/issue-3008-1.rs diff --git a/src/test/ui/issues/issue-3008-1.stderr b/tests/ui/issues/issue-3008-1.stderr similarity index 100% rename from src/test/ui/issues/issue-3008-1.stderr rename to tests/ui/issues/issue-3008-1.stderr diff --git a/src/test/ui/issues/issue-3008-2.rs b/tests/ui/issues/issue-3008-2.rs similarity index 100% rename from src/test/ui/issues/issue-3008-2.rs rename to tests/ui/issues/issue-3008-2.rs diff --git a/src/test/ui/issues/issue-3008-2.stderr b/tests/ui/issues/issue-3008-2.stderr similarity index 100% rename from src/test/ui/issues/issue-3008-2.stderr rename to tests/ui/issues/issue-3008-2.stderr diff --git a/src/test/ui/issues/issue-3008-3.rs b/tests/ui/issues/issue-3008-3.rs similarity index 100% rename from src/test/ui/issues/issue-3008-3.rs rename to tests/ui/issues/issue-3008-3.rs diff --git a/src/test/ui/issues/issue-3008-3.stderr b/tests/ui/issues/issue-3008-3.stderr similarity index 100% rename from src/test/ui/issues/issue-3008-3.stderr rename to tests/ui/issues/issue-3008-3.stderr diff --git a/src/test/ui/issues/issue-30081.rs b/tests/ui/issues/issue-30081.rs similarity index 100% rename from src/test/ui/issues/issue-30081.rs rename to tests/ui/issues/issue-30081.rs diff --git a/src/test/ui/issues/issue-3012-2.rs b/tests/ui/issues/issue-3012-2.rs similarity index 100% rename from src/test/ui/issues/issue-3012-2.rs rename to tests/ui/issues/issue-3012-2.rs diff --git a/src/test/ui/issues/issue-30123.rs b/tests/ui/issues/issue-30123.rs similarity index 100% rename from src/test/ui/issues/issue-30123.rs rename to tests/ui/issues/issue-30123.rs diff --git a/src/test/ui/issues/issue-30123.stderr b/tests/ui/issues/issue-30123.stderr similarity index 100% rename from src/test/ui/issues/issue-30123.stderr rename to tests/ui/issues/issue-30123.stderr diff --git a/src/test/ui/issues/issue-3021-b.rs b/tests/ui/issues/issue-3021-b.rs similarity index 100% rename from src/test/ui/issues/issue-3021-b.rs rename to tests/ui/issues/issue-3021-b.rs diff --git a/src/test/ui/issues/issue-3021-b.stderr b/tests/ui/issues/issue-3021-b.stderr similarity index 100% rename from src/test/ui/issues/issue-3021-b.stderr rename to tests/ui/issues/issue-3021-b.stderr diff --git a/src/test/ui/issues/issue-3021-d.rs b/tests/ui/issues/issue-3021-d.rs similarity index 100% rename from src/test/ui/issues/issue-3021-d.rs rename to tests/ui/issues/issue-3021-d.rs diff --git a/src/test/ui/issues/issue-3021-d.stderr b/tests/ui/issues/issue-3021-d.stderr similarity index 100% rename from src/test/ui/issues/issue-3021-d.stderr rename to tests/ui/issues/issue-3021-d.stderr diff --git a/src/test/ui/issues/issue-30236.rs b/tests/ui/issues/issue-30236.rs similarity index 100% rename from src/test/ui/issues/issue-30236.rs rename to tests/ui/issues/issue-30236.rs diff --git a/src/test/ui/issues/issue-30236.stderr b/tests/ui/issues/issue-30236.stderr similarity index 100% rename from src/test/ui/issues/issue-30236.stderr rename to tests/ui/issues/issue-30236.stderr diff --git a/src/test/ui/issues/issue-30255.rs b/tests/ui/issues/issue-30255.rs similarity index 100% rename from src/test/ui/issues/issue-30255.rs rename to tests/ui/issues/issue-30255.rs diff --git a/src/test/ui/issues/issue-30255.stderr b/tests/ui/issues/issue-30255.stderr similarity index 100% rename from src/test/ui/issues/issue-30255.stderr rename to tests/ui/issues/issue-30255.stderr diff --git a/src/test/ui/issues/issue-3026.rs b/tests/ui/issues/issue-3026.rs similarity index 100% rename from src/test/ui/issues/issue-3026.rs rename to tests/ui/issues/issue-3026.rs diff --git a/src/test/ui/issues/issue-3029.rs b/tests/ui/issues/issue-3029.rs similarity index 100% rename from src/test/ui/issues/issue-3029.rs rename to tests/ui/issues/issue-3029.rs diff --git a/src/test/ui/issues/issue-3037.rs b/tests/ui/issues/issue-3037.rs similarity index 100% rename from src/test/ui/issues/issue-3037.rs rename to tests/ui/issues/issue-3037.rs diff --git a/src/test/ui/issues/issue-30371.rs b/tests/ui/issues/issue-30371.rs similarity index 100% rename from src/test/ui/issues/issue-30371.rs rename to tests/ui/issues/issue-30371.rs diff --git a/src/test/ui/issues/issue-3038.rs b/tests/ui/issues/issue-3038.rs similarity index 100% rename from src/test/ui/issues/issue-3038.rs rename to tests/ui/issues/issue-3038.rs diff --git a/src/test/ui/issues/issue-3038.stderr b/tests/ui/issues/issue-3038.stderr similarity index 100% rename from src/test/ui/issues/issue-3038.stderr rename to tests/ui/issues/issue-3038.stderr diff --git a/src/test/ui/issues/issue-30380.rs b/tests/ui/issues/issue-30380.rs similarity index 100% rename from src/test/ui/issues/issue-30380.rs rename to tests/ui/issues/issue-30380.rs diff --git a/src/test/ui/issues/issue-30438-a.rs b/tests/ui/issues/issue-30438-a.rs similarity index 100% rename from src/test/ui/issues/issue-30438-a.rs rename to tests/ui/issues/issue-30438-a.rs diff --git a/src/test/ui/issues/issue-30438-a.stderr b/tests/ui/issues/issue-30438-a.stderr similarity index 100% rename from src/test/ui/issues/issue-30438-a.stderr rename to tests/ui/issues/issue-30438-a.stderr diff --git a/src/test/ui/issues/issue-30438-b.rs b/tests/ui/issues/issue-30438-b.rs similarity index 100% rename from src/test/ui/issues/issue-30438-b.rs rename to tests/ui/issues/issue-30438-b.rs diff --git a/src/test/ui/issues/issue-30438-b.stderr b/tests/ui/issues/issue-30438-b.stderr similarity index 100% rename from src/test/ui/issues/issue-30438-b.stderr rename to tests/ui/issues/issue-30438-b.stderr diff --git a/src/test/ui/issues/issue-30438-c.rs b/tests/ui/issues/issue-30438-c.rs similarity index 100% rename from src/test/ui/issues/issue-30438-c.rs rename to tests/ui/issues/issue-30438-c.rs diff --git a/src/test/ui/issues/issue-30438-c.stderr b/tests/ui/issues/issue-30438-c.stderr similarity index 100% rename from src/test/ui/issues/issue-30438-c.stderr rename to tests/ui/issues/issue-30438-c.stderr diff --git a/src/test/ui/issues/issue-30490.rs b/tests/ui/issues/issue-30490.rs similarity index 100% rename from src/test/ui/issues/issue-30490.rs rename to tests/ui/issues/issue-30490.rs diff --git a/src/test/ui/issues/issue-3052.rs b/tests/ui/issues/issue-3052.rs similarity index 100% rename from src/test/ui/issues/issue-3052.rs rename to tests/ui/issues/issue-3052.rs diff --git a/src/test/ui/issues/issue-30530.rs b/tests/ui/issues/issue-30530.rs similarity index 100% rename from src/test/ui/issues/issue-30530.rs rename to tests/ui/issues/issue-30530.rs diff --git a/src/test/ui/issues/issue-30589.rs b/tests/ui/issues/issue-30589.rs similarity index 100% rename from src/test/ui/issues/issue-30589.rs rename to tests/ui/issues/issue-30589.rs diff --git a/src/test/ui/issues/issue-30589.stderr b/tests/ui/issues/issue-30589.stderr similarity index 100% rename from src/test/ui/issues/issue-30589.stderr rename to tests/ui/issues/issue-30589.stderr diff --git a/src/test/ui/issues/issue-30615.rs b/tests/ui/issues/issue-30615.rs similarity index 100% rename from src/test/ui/issues/issue-30615.rs rename to tests/ui/issues/issue-30615.rs diff --git a/src/test/ui/issues/issue-30756.rs b/tests/ui/issues/issue-30756.rs similarity index 100% rename from src/test/ui/issues/issue-30756.rs rename to tests/ui/issues/issue-30756.rs diff --git a/src/test/ui/issues/issue-30891.rs b/tests/ui/issues/issue-30891.rs similarity index 100% rename from src/test/ui/issues/issue-30891.rs rename to tests/ui/issues/issue-30891.rs diff --git a/src/test/ui/issues/issue-3091.rs b/tests/ui/issues/issue-3091.rs similarity index 100% rename from src/test/ui/issues/issue-3091.rs rename to tests/ui/issues/issue-3091.rs diff --git a/src/test/ui/issues/issue-3099-a.rs b/tests/ui/issues/issue-3099-a.rs similarity index 100% rename from src/test/ui/issues/issue-3099-a.rs rename to tests/ui/issues/issue-3099-a.rs diff --git a/src/test/ui/issues/issue-3099-a.stderr b/tests/ui/issues/issue-3099-a.stderr similarity index 100% rename from src/test/ui/issues/issue-3099-a.stderr rename to tests/ui/issues/issue-3099-a.stderr diff --git a/src/test/ui/issues/issue-3099-b.rs b/tests/ui/issues/issue-3099-b.rs similarity index 100% rename from src/test/ui/issues/issue-3099-b.rs rename to tests/ui/issues/issue-3099-b.rs diff --git a/src/test/ui/issues/issue-3099-b.stderr b/tests/ui/issues/issue-3099-b.stderr similarity index 100% rename from src/test/ui/issues/issue-3099-b.stderr rename to tests/ui/issues/issue-3099-b.stderr diff --git a/src/test/ui/issues/issue-3099.rs b/tests/ui/issues/issue-3099.rs similarity index 100% rename from src/test/ui/issues/issue-3099.rs rename to tests/ui/issues/issue-3099.rs diff --git a/src/test/ui/issues/issue-3099.stderr b/tests/ui/issues/issue-3099.stderr similarity index 100% rename from src/test/ui/issues/issue-3099.stderr rename to tests/ui/issues/issue-3099.stderr diff --git a/src/test/ui/issues/issue-31011.rs b/tests/ui/issues/issue-31011.rs similarity index 100% rename from src/test/ui/issues/issue-31011.rs rename to tests/ui/issues/issue-31011.rs diff --git a/src/test/ui/issues/issue-31011.stderr b/tests/ui/issues/issue-31011.stderr similarity index 100% rename from src/test/ui/issues/issue-31011.stderr rename to tests/ui/issues/issue-31011.stderr diff --git a/src/test/ui/issues/issue-3109.rs b/tests/ui/issues/issue-3109.rs similarity index 100% rename from src/test/ui/issues/issue-3109.rs rename to tests/ui/issues/issue-3109.rs diff --git a/src/test/ui/issues/issue-3121.rs b/tests/ui/issues/issue-3121.rs similarity index 100% rename from src/test/ui/issues/issue-3121.rs rename to tests/ui/issues/issue-3121.rs diff --git a/src/test/ui/issues/issue-31260.rs b/tests/ui/issues/issue-31260.rs similarity index 100% rename from src/test/ui/issues/issue-31260.rs rename to tests/ui/issues/issue-31260.rs diff --git a/src/test/ui/issues/issue-31267-additional.rs b/tests/ui/issues/issue-31267-additional.rs similarity index 100% rename from src/test/ui/issues/issue-31267-additional.rs rename to tests/ui/issues/issue-31267-additional.rs diff --git a/src/test/ui/issues/issue-31267.rs b/tests/ui/issues/issue-31267.rs similarity index 100% rename from src/test/ui/issues/issue-31267.rs rename to tests/ui/issues/issue-31267.rs diff --git a/src/test/ui/issues/issue-31299.rs b/tests/ui/issues/issue-31299.rs similarity index 100% rename from src/test/ui/issues/issue-31299.rs rename to tests/ui/issues/issue-31299.rs diff --git a/src/test/ui/issues/issue-3136-b.rs b/tests/ui/issues/issue-3136-b.rs similarity index 100% rename from src/test/ui/issues/issue-3136-b.rs rename to tests/ui/issues/issue-3136-b.rs diff --git a/src/test/ui/issues/issue-3149.rs b/tests/ui/issues/issue-3149.rs similarity index 100% rename from src/test/ui/issues/issue-3149.rs rename to tests/ui/issues/issue-3149.rs diff --git a/src/test/ui/issues/issue-31511.rs b/tests/ui/issues/issue-31511.rs similarity index 100% rename from src/test/ui/issues/issue-31511.rs rename to tests/ui/issues/issue-31511.rs diff --git a/src/test/ui/issues/issue-31511.stderr b/tests/ui/issues/issue-31511.stderr similarity index 100% rename from src/test/ui/issues/issue-31511.stderr rename to tests/ui/issues/issue-31511.stderr diff --git a/src/test/ui/issues/issue-3154.rs b/tests/ui/issues/issue-3154.rs similarity index 100% rename from src/test/ui/issues/issue-3154.rs rename to tests/ui/issues/issue-3154.rs diff --git a/src/test/ui/issues/issue-3154.stderr b/tests/ui/issues/issue-3154.stderr similarity index 100% rename from src/test/ui/issues/issue-3154.stderr rename to tests/ui/issues/issue-3154.stderr diff --git a/src/test/ui/issues/issue-31702.rs b/tests/ui/issues/issue-31702.rs similarity index 100% rename from src/test/ui/issues/issue-31702.rs rename to tests/ui/issues/issue-31702.rs diff --git a/src/test/ui/issues/issue-31769.rs b/tests/ui/issues/issue-31769.rs similarity index 100% rename from src/test/ui/issues/issue-31769.rs rename to tests/ui/issues/issue-31769.rs diff --git a/src/test/ui/issues/issue-31769.stderr b/tests/ui/issues/issue-31769.stderr similarity index 100% rename from src/test/ui/issues/issue-31769.stderr rename to tests/ui/issues/issue-31769.stderr diff --git a/src/test/ui/issues/issue-31776.rs b/tests/ui/issues/issue-31776.rs similarity index 100% rename from src/test/ui/issues/issue-31776.rs rename to tests/ui/issues/issue-31776.rs diff --git a/src/test/ui/issues/issue-31910.rs b/tests/ui/issues/issue-31910.rs similarity index 100% rename from src/test/ui/issues/issue-31910.rs rename to tests/ui/issues/issue-31910.rs diff --git a/src/test/ui/issues/issue-31910.stderr b/tests/ui/issues/issue-31910.stderr similarity index 100% rename from src/test/ui/issues/issue-31910.stderr rename to tests/ui/issues/issue-31910.stderr diff --git a/src/test/ui/issues/issue-32004.rs b/tests/ui/issues/issue-32004.rs similarity index 100% rename from src/test/ui/issues/issue-32004.rs rename to tests/ui/issues/issue-32004.rs diff --git a/src/test/ui/issues/issue-32004.stderr b/tests/ui/issues/issue-32004.stderr similarity index 100% rename from src/test/ui/issues/issue-32004.stderr rename to tests/ui/issues/issue-32004.stderr diff --git a/src/test/ui/issues/issue-32008.rs b/tests/ui/issues/issue-32008.rs similarity index 100% rename from src/test/ui/issues/issue-32008.rs rename to tests/ui/issues/issue-32008.rs diff --git a/src/test/ui/issues/issue-32086.rs b/tests/ui/issues/issue-32086.rs similarity index 100% rename from src/test/ui/issues/issue-32086.rs rename to tests/ui/issues/issue-32086.rs diff --git a/src/test/ui/issues/issue-32086.stderr b/tests/ui/issues/issue-32086.stderr similarity index 100% rename from src/test/ui/issues/issue-32086.stderr rename to tests/ui/issues/issue-32086.stderr diff --git a/src/test/ui/issues/issue-32122-1.fixed b/tests/ui/issues/issue-32122-1.fixed similarity index 100% rename from src/test/ui/issues/issue-32122-1.fixed rename to tests/ui/issues/issue-32122-1.fixed diff --git a/src/test/ui/issues/issue-32122-1.rs b/tests/ui/issues/issue-32122-1.rs similarity index 100% rename from src/test/ui/issues/issue-32122-1.rs rename to tests/ui/issues/issue-32122-1.rs diff --git a/src/test/ui/issues/issue-32122-1.stderr b/tests/ui/issues/issue-32122-1.stderr similarity index 100% rename from src/test/ui/issues/issue-32122-1.stderr rename to tests/ui/issues/issue-32122-1.stderr diff --git a/src/test/ui/issues/issue-32122-2.fixed b/tests/ui/issues/issue-32122-2.fixed similarity index 100% rename from src/test/ui/issues/issue-32122-2.fixed rename to tests/ui/issues/issue-32122-2.fixed diff --git a/src/test/ui/issues/issue-32122-2.rs b/tests/ui/issues/issue-32122-2.rs similarity index 100% rename from src/test/ui/issues/issue-32122-2.rs rename to tests/ui/issues/issue-32122-2.rs diff --git a/src/test/ui/issues/issue-32122-2.stderr b/tests/ui/issues/issue-32122-2.stderr similarity index 100% rename from src/test/ui/issues/issue-32122-2.stderr rename to tests/ui/issues/issue-32122-2.stderr diff --git a/src/test/ui/issues/issue-3214.rs b/tests/ui/issues/issue-3214.rs similarity index 100% rename from src/test/ui/issues/issue-3214.rs rename to tests/ui/issues/issue-3214.rs diff --git a/src/test/ui/issues/issue-3214.stderr b/tests/ui/issues/issue-3214.stderr similarity index 100% rename from src/test/ui/issues/issue-3214.stderr rename to tests/ui/issues/issue-3214.stderr diff --git a/src/test/ui/issues/issue-3220.rs b/tests/ui/issues/issue-3220.rs similarity index 100% rename from src/test/ui/issues/issue-3220.rs rename to tests/ui/issues/issue-3220.rs diff --git a/src/test/ui/issues/issue-32292.rs b/tests/ui/issues/issue-32292.rs similarity index 100% rename from src/test/ui/issues/issue-32292.rs rename to tests/ui/issues/issue-32292.rs diff --git a/src/test/ui/issues/issue-32323.rs b/tests/ui/issues/issue-32323.rs similarity index 100% rename from src/test/ui/issues/issue-32323.rs rename to tests/ui/issues/issue-32323.rs diff --git a/src/test/ui/issues/issue-32323.stderr b/tests/ui/issues/issue-32323.stderr similarity index 100% rename from src/test/ui/issues/issue-32323.stderr rename to tests/ui/issues/issue-32323.stderr diff --git a/src/test/ui/issues/issue-32324.rs b/tests/ui/issues/issue-32324.rs similarity index 100% rename from src/test/ui/issues/issue-32324.rs rename to tests/ui/issues/issue-32324.rs diff --git a/src/test/ui/issues/issue-32326.rs b/tests/ui/issues/issue-32326.rs similarity index 100% rename from src/test/ui/issues/issue-32326.rs rename to tests/ui/issues/issue-32326.rs diff --git a/src/test/ui/issues/issue-32326.stderr b/tests/ui/issues/issue-32326.stderr similarity index 100% rename from src/test/ui/issues/issue-32326.stderr rename to tests/ui/issues/issue-32326.stderr diff --git a/src/test/ui/issues/issue-32377.rs b/tests/ui/issues/issue-32377.rs similarity index 100% rename from src/test/ui/issues/issue-32377.rs rename to tests/ui/issues/issue-32377.rs diff --git a/src/test/ui/issues/issue-32377.stderr b/tests/ui/issues/issue-32377.stderr similarity index 100% rename from src/test/ui/issues/issue-32377.stderr rename to tests/ui/issues/issue-32377.stderr diff --git a/src/test/ui/issues/issue-32389.rs b/tests/ui/issues/issue-32389.rs similarity index 100% rename from src/test/ui/issues/issue-32389.rs rename to tests/ui/issues/issue-32389.rs diff --git a/src/test/ui/issues/issue-32518.rs b/tests/ui/issues/issue-32518.rs similarity index 100% rename from src/test/ui/issues/issue-32518.rs rename to tests/ui/issues/issue-32518.rs diff --git a/src/test/ui/issues/issue-32655.rs b/tests/ui/issues/issue-32655.rs similarity index 100% rename from src/test/ui/issues/issue-32655.rs rename to tests/ui/issues/issue-32655.rs diff --git a/src/test/ui/issues/issue-32655.stderr b/tests/ui/issues/issue-32655.stderr similarity index 100% rename from src/test/ui/issues/issue-32655.stderr rename to tests/ui/issues/issue-32655.stderr diff --git a/src/test/ui/issues/issue-32709.rs b/tests/ui/issues/issue-32709.rs similarity index 100% rename from src/test/ui/issues/issue-32709.rs rename to tests/ui/issues/issue-32709.rs diff --git a/src/test/ui/issues/issue-32709.stderr b/tests/ui/issues/issue-32709.stderr similarity index 100% rename from src/test/ui/issues/issue-32709.stderr rename to tests/ui/issues/issue-32709.stderr diff --git a/src/test/ui/issues/issue-32782.rs b/tests/ui/issues/issue-32782.rs similarity index 100% rename from src/test/ui/issues/issue-32782.rs rename to tests/ui/issues/issue-32782.rs diff --git a/src/test/ui/issues/issue-32782.stderr b/tests/ui/issues/issue-32782.stderr similarity index 100% rename from src/test/ui/issues/issue-32782.stderr rename to tests/ui/issues/issue-32782.stderr diff --git a/src/test/ui/issues/issue-32797.rs b/tests/ui/issues/issue-32797.rs similarity index 100% rename from src/test/ui/issues/issue-32797.rs rename to tests/ui/issues/issue-32797.rs diff --git a/src/test/ui/issues/issue-32805.rs b/tests/ui/issues/issue-32805.rs similarity index 100% rename from src/test/ui/issues/issue-32805.rs rename to tests/ui/issues/issue-32805.rs diff --git a/src/test/ui/issues/issue-3290.rs b/tests/ui/issues/issue-3290.rs similarity index 100% rename from src/test/ui/issues/issue-3290.rs rename to tests/ui/issues/issue-3290.rs diff --git a/src/test/ui/issues/issue-32950.rs b/tests/ui/issues/issue-32950.rs similarity index 100% rename from src/test/ui/issues/issue-32950.rs rename to tests/ui/issues/issue-32950.rs diff --git a/src/test/ui/issues/issue-32950.stderr b/tests/ui/issues/issue-32950.stderr similarity index 100% rename from src/test/ui/issues/issue-32950.stderr rename to tests/ui/issues/issue-32950.stderr diff --git a/src/test/ui/issues/issue-32995-2.rs b/tests/ui/issues/issue-32995-2.rs similarity index 100% rename from src/test/ui/issues/issue-32995-2.rs rename to tests/ui/issues/issue-32995-2.rs diff --git a/src/test/ui/issues/issue-32995-2.stderr b/tests/ui/issues/issue-32995-2.stderr similarity index 100% rename from src/test/ui/issues/issue-32995-2.stderr rename to tests/ui/issues/issue-32995-2.stderr diff --git a/src/test/ui/issues/issue-32995.rs b/tests/ui/issues/issue-32995.rs similarity index 100% rename from src/test/ui/issues/issue-32995.rs rename to tests/ui/issues/issue-32995.rs diff --git a/src/test/ui/issues/issue-32995.stderr b/tests/ui/issues/issue-32995.stderr similarity index 100% rename from src/test/ui/issues/issue-32995.stderr rename to tests/ui/issues/issue-32995.stderr diff --git a/src/test/ui/issues/issue-33096.rs b/tests/ui/issues/issue-33096.rs similarity index 100% rename from src/test/ui/issues/issue-33096.rs rename to tests/ui/issues/issue-33096.rs diff --git a/src/test/ui/issues/issue-33187.rs b/tests/ui/issues/issue-33187.rs similarity index 100% rename from src/test/ui/issues/issue-33187.rs rename to tests/ui/issues/issue-33187.rs diff --git a/src/test/ui/issues/issue-33202.rs b/tests/ui/issues/issue-33202.rs similarity index 100% rename from src/test/ui/issues/issue-33202.rs rename to tests/ui/issues/issue-33202.rs diff --git a/src/test/ui/issues/issue-33241.rs b/tests/ui/issues/issue-33241.rs similarity index 100% rename from src/test/ui/issues/issue-33241.rs rename to tests/ui/issues/issue-33241.rs diff --git a/src/test/ui/issues/issue-33287.rs b/tests/ui/issues/issue-33287.rs similarity index 100% rename from src/test/ui/issues/issue-33287.rs rename to tests/ui/issues/issue-33287.rs diff --git a/src/test/ui/issues/issue-33293.rs b/tests/ui/issues/issue-33293.rs similarity index 100% rename from src/test/ui/issues/issue-33293.rs rename to tests/ui/issues/issue-33293.rs diff --git a/src/test/ui/issues/issue-33293.stderr b/tests/ui/issues/issue-33293.stderr similarity index 100% rename from src/test/ui/issues/issue-33293.stderr rename to tests/ui/issues/issue-33293.stderr diff --git a/src/test/ui/issues/issue-33387.rs b/tests/ui/issues/issue-33387.rs similarity index 100% rename from src/test/ui/issues/issue-33387.rs rename to tests/ui/issues/issue-33387.rs diff --git a/src/test/ui/issues/issue-3344.rs b/tests/ui/issues/issue-3344.rs similarity index 100% rename from src/test/ui/issues/issue-3344.rs rename to tests/ui/issues/issue-3344.rs diff --git a/src/test/ui/issues/issue-3344.stderr b/tests/ui/issues/issue-3344.stderr similarity index 100% rename from src/test/ui/issues/issue-3344.stderr rename to tests/ui/issues/issue-3344.stderr diff --git a/src/test/ui/issues/issue-33461.rs b/tests/ui/issues/issue-33461.rs similarity index 100% rename from src/test/ui/issues/issue-33461.rs rename to tests/ui/issues/issue-33461.rs diff --git a/src/test/ui/issues/issue-33504.rs b/tests/ui/issues/issue-33504.rs similarity index 100% rename from src/test/ui/issues/issue-33504.rs rename to tests/ui/issues/issue-33504.rs diff --git a/src/test/ui/issues/issue-33504.stderr b/tests/ui/issues/issue-33504.stderr similarity index 100% rename from src/test/ui/issues/issue-33504.stderr rename to tests/ui/issues/issue-33504.stderr diff --git a/src/test/ui/issues/issue-33525.rs b/tests/ui/issues/issue-33525.rs similarity index 100% rename from src/test/ui/issues/issue-33525.rs rename to tests/ui/issues/issue-33525.rs diff --git a/src/test/ui/issues/issue-33525.stderr b/tests/ui/issues/issue-33525.stderr similarity index 100% rename from src/test/ui/issues/issue-33525.stderr rename to tests/ui/issues/issue-33525.stderr diff --git a/src/test/ui/issues/issue-33571.rs b/tests/ui/issues/issue-33571.rs similarity index 100% rename from src/test/ui/issues/issue-33571.rs rename to tests/ui/issues/issue-33571.rs diff --git a/src/test/ui/issues/issue-33571.stderr b/tests/ui/issues/issue-33571.stderr similarity index 100% rename from src/test/ui/issues/issue-33571.stderr rename to tests/ui/issues/issue-33571.stderr diff --git a/src/test/ui/issues/issue-33687.rs b/tests/ui/issues/issue-33687.rs similarity index 100% rename from src/test/ui/issues/issue-33687.rs rename to tests/ui/issues/issue-33687.rs diff --git a/src/test/ui/issues/issue-33770.rs b/tests/ui/issues/issue-33770.rs similarity index 100% rename from src/test/ui/issues/issue-33770.rs rename to tests/ui/issues/issue-33770.rs diff --git a/src/test/ui/issues/issue-3389.rs b/tests/ui/issues/issue-3389.rs similarity index 100% rename from src/test/ui/issues/issue-3389.rs rename to tests/ui/issues/issue-3389.rs diff --git a/src/test/ui/issues/issue-33903.rs b/tests/ui/issues/issue-33903.rs similarity index 100% rename from src/test/ui/issues/issue-33903.rs rename to tests/ui/issues/issue-33903.rs diff --git a/src/test/ui/issues/issue-33941.rs b/tests/ui/issues/issue-33941.rs similarity index 100% rename from src/test/ui/issues/issue-33941.rs rename to tests/ui/issues/issue-33941.rs diff --git a/src/test/ui/issues/issue-33941.stderr b/tests/ui/issues/issue-33941.stderr similarity index 100% rename from src/test/ui/issues/issue-33941.stderr rename to tests/ui/issues/issue-33941.stderr diff --git a/src/test/ui/issues/issue-33992.rs b/tests/ui/issues/issue-33992.rs similarity index 100% rename from src/test/ui/issues/issue-33992.rs rename to tests/ui/issues/issue-33992.rs diff --git a/src/test/ui/issues/issue-34047.rs b/tests/ui/issues/issue-34047.rs similarity index 100% rename from src/test/ui/issues/issue-34047.rs rename to tests/ui/issues/issue-34047.rs diff --git a/src/test/ui/issues/issue-34047.stderr b/tests/ui/issues/issue-34047.stderr similarity index 100% rename from src/test/ui/issues/issue-34047.stderr rename to tests/ui/issues/issue-34047.stderr diff --git a/src/test/ui/issues/issue-34074.rs b/tests/ui/issues/issue-34074.rs similarity index 100% rename from src/test/ui/issues/issue-34074.rs rename to tests/ui/issues/issue-34074.rs diff --git a/src/test/ui/issues/issue-34209.rs b/tests/ui/issues/issue-34209.rs similarity index 100% rename from src/test/ui/issues/issue-34209.rs rename to tests/ui/issues/issue-34209.rs diff --git a/src/test/ui/issues/issue-34209.stderr b/tests/ui/issues/issue-34209.stderr similarity index 100% rename from src/test/ui/issues/issue-34209.stderr rename to tests/ui/issues/issue-34209.stderr diff --git a/src/test/ui/issues/issue-34229.rs b/tests/ui/issues/issue-34229.rs similarity index 100% rename from src/test/ui/issues/issue-34229.rs rename to tests/ui/issues/issue-34229.rs diff --git a/src/test/ui/issues/issue-34229.stderr b/tests/ui/issues/issue-34229.stderr similarity index 100% rename from src/test/ui/issues/issue-34229.stderr rename to tests/ui/issues/issue-34229.stderr diff --git a/src/test/ui/issues/issue-3424.rs b/tests/ui/issues/issue-3424.rs similarity index 100% rename from src/test/ui/issues/issue-3424.rs rename to tests/ui/issues/issue-3424.rs diff --git a/src/test/ui/issues/issue-3429.rs b/tests/ui/issues/issue-3429.rs similarity index 100% rename from src/test/ui/issues/issue-3429.rs rename to tests/ui/issues/issue-3429.rs diff --git a/src/test/ui/issues/issue-34334.rs b/tests/ui/issues/issue-34334.rs similarity index 100% rename from src/test/ui/issues/issue-34334.rs rename to tests/ui/issues/issue-34334.rs diff --git a/src/test/ui/issues/issue-34334.stderr b/tests/ui/issues/issue-34334.stderr similarity index 100% rename from src/test/ui/issues/issue-34334.stderr rename to tests/ui/issues/issue-34334.stderr diff --git a/src/test/ui/issues/issue-34349.rs b/tests/ui/issues/issue-34349.rs similarity index 100% rename from src/test/ui/issues/issue-34349.rs rename to tests/ui/issues/issue-34349.rs diff --git a/src/test/ui/issues/issue-34349.stderr b/tests/ui/issues/issue-34349.stderr similarity index 100% rename from src/test/ui/issues/issue-34349.stderr rename to tests/ui/issues/issue-34349.stderr diff --git a/src/test/ui/issues/issue-34373.rs b/tests/ui/issues/issue-34373.rs similarity index 100% rename from src/test/ui/issues/issue-34373.rs rename to tests/ui/issues/issue-34373.rs diff --git a/src/test/ui/issues/issue-34373.stderr b/tests/ui/issues/issue-34373.stderr similarity index 100% rename from src/test/ui/issues/issue-34373.stderr rename to tests/ui/issues/issue-34373.stderr diff --git a/src/test/ui/issues/issue-34418.rs b/tests/ui/issues/issue-34418.rs similarity index 100% rename from src/test/ui/issues/issue-34418.rs rename to tests/ui/issues/issue-34418.rs diff --git a/src/test/ui/issues/issue-34427.rs b/tests/ui/issues/issue-34427.rs similarity index 100% rename from src/test/ui/issues/issue-34427.rs rename to tests/ui/issues/issue-34427.rs diff --git a/src/test/ui/issues/issue-3447.rs b/tests/ui/issues/issue-3447.rs similarity index 100% rename from src/test/ui/issues/issue-3447.rs rename to tests/ui/issues/issue-3447.rs diff --git a/src/test/ui/issues/issue-34503.rs b/tests/ui/issues/issue-34503.rs similarity index 100% rename from src/test/ui/issues/issue-34503.rs rename to tests/ui/issues/issue-34503.rs diff --git a/src/test/ui/issues/issue-34569.rs b/tests/ui/issues/issue-34569.rs similarity index 100% rename from src/test/ui/issues/issue-34569.rs rename to tests/ui/issues/issue-34569.rs diff --git a/src/test/ui/issues/issue-34571.rs b/tests/ui/issues/issue-34571.rs similarity index 100% rename from src/test/ui/issues/issue-34571.rs rename to tests/ui/issues/issue-34571.rs diff --git a/src/test/ui/issues/issue-34721.fixed b/tests/ui/issues/issue-34721.fixed similarity index 100% rename from src/test/ui/issues/issue-34721.fixed rename to tests/ui/issues/issue-34721.fixed diff --git a/src/test/ui/issues/issue-34721.rs b/tests/ui/issues/issue-34721.rs similarity index 100% rename from src/test/ui/issues/issue-34721.rs rename to tests/ui/issues/issue-34721.rs diff --git a/src/test/ui/issues/issue-34721.stderr b/tests/ui/issues/issue-34721.stderr similarity index 100% rename from src/test/ui/issues/issue-34721.stderr rename to tests/ui/issues/issue-34721.stderr diff --git a/src/test/ui/issues/issue-34751.rs b/tests/ui/issues/issue-34751.rs similarity index 100% rename from src/test/ui/issues/issue-34751.rs rename to tests/ui/issues/issue-34751.rs diff --git a/src/test/ui/issues/issue-3477.rs b/tests/ui/issues/issue-3477.rs similarity index 100% rename from src/test/ui/issues/issue-3477.rs rename to tests/ui/issues/issue-3477.rs diff --git a/src/test/ui/issues/issue-3477.stderr b/tests/ui/issues/issue-3477.stderr similarity index 100% rename from src/test/ui/issues/issue-3477.stderr rename to tests/ui/issues/issue-3477.stderr diff --git a/src/test/ui/issues/issue-34780.rs b/tests/ui/issues/issue-34780.rs similarity index 100% rename from src/test/ui/issues/issue-34780.rs rename to tests/ui/issues/issue-34780.rs diff --git a/src/test/ui/issues/issue-34796.rs b/tests/ui/issues/issue-34796.rs similarity index 100% rename from src/test/ui/issues/issue-34796.rs rename to tests/ui/issues/issue-34796.rs diff --git a/src/test/ui/issues/issue-34839.rs b/tests/ui/issues/issue-34839.rs similarity index 100% rename from src/test/ui/issues/issue-34839.rs rename to tests/ui/issues/issue-34839.rs diff --git a/src/test/ui/issues/issue-34932.rs b/tests/ui/issues/issue-34932.rs similarity index 100% rename from src/test/ui/issues/issue-34932.rs rename to tests/ui/issues/issue-34932.rs diff --git a/src/test/ui/issues/issue-3500.rs b/tests/ui/issues/issue-3500.rs similarity index 100% rename from src/test/ui/issues/issue-3500.rs rename to tests/ui/issues/issue-3500.rs diff --git a/src/test/ui/issues/issue-35139.rs b/tests/ui/issues/issue-35139.rs similarity index 100% rename from src/test/ui/issues/issue-35139.rs rename to tests/ui/issues/issue-35139.rs diff --git a/src/test/ui/issues/issue-35139.stderr b/tests/ui/issues/issue-35139.stderr similarity index 100% rename from src/test/ui/issues/issue-35139.stderr rename to tests/ui/issues/issue-35139.stderr diff --git a/src/test/ui/issues/issue-3521-2.fixed b/tests/ui/issues/issue-3521-2.fixed similarity index 100% rename from src/test/ui/issues/issue-3521-2.fixed rename to tests/ui/issues/issue-3521-2.fixed diff --git a/src/test/ui/issues/issue-3521-2.rs b/tests/ui/issues/issue-3521-2.rs similarity index 100% rename from src/test/ui/issues/issue-3521-2.rs rename to tests/ui/issues/issue-3521-2.rs diff --git a/src/test/ui/issues/issue-3521-2.stderr b/tests/ui/issues/issue-3521-2.stderr similarity index 100% rename from src/test/ui/issues/issue-3521-2.stderr rename to tests/ui/issues/issue-3521-2.stderr diff --git a/src/test/ui/issues/issue-35241.rs b/tests/ui/issues/issue-35241.rs similarity index 100% rename from src/test/ui/issues/issue-35241.rs rename to tests/ui/issues/issue-35241.rs diff --git a/src/test/ui/issues/issue-35241.stderr b/tests/ui/issues/issue-35241.stderr similarity index 100% rename from src/test/ui/issues/issue-35241.stderr rename to tests/ui/issues/issue-35241.stderr diff --git a/src/test/ui/issues/issue-35423.rs b/tests/ui/issues/issue-35423.rs similarity index 100% rename from src/test/ui/issues/issue-35423.rs rename to tests/ui/issues/issue-35423.rs diff --git a/src/test/ui/issues/issue-3556.rs b/tests/ui/issues/issue-3556.rs similarity index 100% rename from src/test/ui/issues/issue-3556.rs rename to tests/ui/issues/issue-3556.rs diff --git a/src/test/ui/issues/issue-35570.rs b/tests/ui/issues/issue-35570.rs similarity index 100% rename from src/test/ui/issues/issue-35570.rs rename to tests/ui/issues/issue-35570.rs diff --git a/src/test/ui/issues/issue-35570.stderr b/tests/ui/issues/issue-35570.stderr similarity index 100% rename from src/test/ui/issues/issue-35570.stderr rename to tests/ui/issues/issue-35570.stderr diff --git a/src/test/ui/issues/issue-3559.rs b/tests/ui/issues/issue-3559.rs similarity index 100% rename from src/test/ui/issues/issue-3559.rs rename to tests/ui/issues/issue-3559.rs diff --git a/src/test/ui/issues/issue-35600.rs b/tests/ui/issues/issue-35600.rs similarity index 100% rename from src/test/ui/issues/issue-35600.rs rename to tests/ui/issues/issue-35600.rs diff --git a/src/test/ui/issues/issue-3563-3.rs b/tests/ui/issues/issue-3563-3.rs similarity index 100% rename from src/test/ui/issues/issue-3563-3.rs rename to tests/ui/issues/issue-3563-3.rs diff --git a/src/test/ui/issues/issue-3574.rs b/tests/ui/issues/issue-3574.rs similarity index 100% rename from src/test/ui/issues/issue-3574.rs rename to tests/ui/issues/issue-3574.rs diff --git a/src/test/ui/issues/issue-35815.rs b/tests/ui/issues/issue-35815.rs similarity index 100% rename from src/test/ui/issues/issue-35815.rs rename to tests/ui/issues/issue-35815.rs diff --git a/src/test/ui/issues/issue-35976.rs b/tests/ui/issues/issue-35976.rs similarity index 100% rename from src/test/ui/issues/issue-35976.rs rename to tests/ui/issues/issue-35976.rs diff --git a/src/test/ui/issues/issue-35976.unimported.stderr b/tests/ui/issues/issue-35976.unimported.stderr similarity index 100% rename from src/test/ui/issues/issue-35976.unimported.stderr rename to tests/ui/issues/issue-35976.unimported.stderr diff --git a/src/test/ui/issues/issue-35988.rs b/tests/ui/issues/issue-35988.rs similarity index 100% rename from src/test/ui/issues/issue-35988.rs rename to tests/ui/issues/issue-35988.rs diff --git a/src/test/ui/issues/issue-35988.stderr b/tests/ui/issues/issue-35988.stderr similarity index 100% rename from src/test/ui/issues/issue-35988.stderr rename to tests/ui/issues/issue-35988.stderr diff --git a/src/test/ui/issues/issue-36023.rs b/tests/ui/issues/issue-36023.rs similarity index 100% rename from src/test/ui/issues/issue-36023.rs rename to tests/ui/issues/issue-36023.rs diff --git a/src/test/ui/issues/issue-36036-associated-type-layout.rs b/tests/ui/issues/issue-36036-associated-type-layout.rs similarity index 100% rename from src/test/ui/issues/issue-36036-associated-type-layout.rs rename to tests/ui/issues/issue-36036-associated-type-layout.rs diff --git a/src/test/ui/issues/issue-36075.rs b/tests/ui/issues/issue-36075.rs similarity index 100% rename from src/test/ui/issues/issue-36075.rs rename to tests/ui/issues/issue-36075.rs diff --git a/src/test/ui/issues/issue-3609.rs b/tests/ui/issues/issue-3609.rs similarity index 100% rename from src/test/ui/issues/issue-3609.rs rename to tests/ui/issues/issue-3609.rs diff --git a/src/test/ui/issues/issue-36116.rs b/tests/ui/issues/issue-36116.rs similarity index 100% rename from src/test/ui/issues/issue-36116.rs rename to tests/ui/issues/issue-36116.rs diff --git a/src/test/ui/issues/issue-36260.rs b/tests/ui/issues/issue-36260.rs similarity index 100% rename from src/test/ui/issues/issue-36260.rs rename to tests/ui/issues/issue-36260.rs diff --git a/src/test/ui/issues/issue-36278-prefix-nesting.rs b/tests/ui/issues/issue-36278-prefix-nesting.rs similarity index 100% rename from src/test/ui/issues/issue-36278-prefix-nesting.rs rename to tests/ui/issues/issue-36278-prefix-nesting.rs diff --git a/src/test/ui/issues/issue-36299.rs b/tests/ui/issues/issue-36299.rs similarity index 100% rename from src/test/ui/issues/issue-36299.rs rename to tests/ui/issues/issue-36299.rs diff --git a/src/test/ui/issues/issue-36299.stderr b/tests/ui/issues/issue-36299.stderr similarity index 100% rename from src/test/ui/issues/issue-36299.stderr rename to tests/ui/issues/issue-36299.stderr diff --git a/src/test/ui/issues/issue-36379.rs b/tests/ui/issues/issue-36379.rs similarity index 100% rename from src/test/ui/issues/issue-36379.rs rename to tests/ui/issues/issue-36379.rs diff --git a/src/test/ui/issues/issue-36400.rs b/tests/ui/issues/issue-36400.rs similarity index 100% rename from src/test/ui/issues/issue-36400.rs rename to tests/ui/issues/issue-36400.rs diff --git a/src/test/ui/issues/issue-36400.stderr b/tests/ui/issues/issue-36400.stderr similarity index 100% rename from src/test/ui/issues/issue-36400.stderr rename to tests/ui/issues/issue-36400.stderr diff --git a/src/test/ui/issues/issue-36401.rs b/tests/ui/issues/issue-36401.rs similarity index 100% rename from src/test/ui/issues/issue-36401.rs rename to tests/ui/issues/issue-36401.rs diff --git a/src/test/ui/issues/issue-36474.rs b/tests/ui/issues/issue-36474.rs similarity index 100% rename from src/test/ui/issues/issue-36474.rs rename to tests/ui/issues/issue-36474.rs diff --git a/src/test/ui/issues/issue-3656.rs b/tests/ui/issues/issue-3656.rs similarity index 100% rename from src/test/ui/issues/issue-3656.rs rename to tests/ui/issues/issue-3656.rs diff --git a/src/test/ui/issues/issue-3668-2.fixed b/tests/ui/issues/issue-3668-2.fixed similarity index 100% rename from src/test/ui/issues/issue-3668-2.fixed rename to tests/ui/issues/issue-3668-2.fixed diff --git a/src/test/ui/issues/issue-3668-2.rs b/tests/ui/issues/issue-3668-2.rs similarity index 100% rename from src/test/ui/issues/issue-3668-2.rs rename to tests/ui/issues/issue-3668-2.rs diff --git a/src/test/ui/issues/issue-3668-2.stderr b/tests/ui/issues/issue-3668-2.stderr similarity index 100% rename from src/test/ui/issues/issue-3668-2.stderr rename to tests/ui/issues/issue-3668-2.stderr diff --git a/src/test/ui/issues/issue-3668.rs b/tests/ui/issues/issue-3668.rs similarity index 100% rename from src/test/ui/issues/issue-3668.rs rename to tests/ui/issues/issue-3668.rs diff --git a/src/test/ui/issues/issue-3668.stderr b/tests/ui/issues/issue-3668.stderr similarity index 100% rename from src/test/ui/issues/issue-3668.stderr rename to tests/ui/issues/issue-3668.stderr diff --git a/src/test/ui/issues/issue-36744-bitcast-args-if-needed.rs b/tests/ui/issues/issue-36744-bitcast-args-if-needed.rs similarity index 100% rename from src/test/ui/issues/issue-36744-bitcast-args-if-needed.rs rename to tests/ui/issues/issue-36744-bitcast-args-if-needed.rs diff --git a/src/test/ui/issues/issue-36744-without-calls.rs b/tests/ui/issues/issue-36744-without-calls.rs similarity index 100% rename from src/test/ui/issues/issue-36744-without-calls.rs rename to tests/ui/issues/issue-36744-without-calls.rs diff --git a/src/test/ui/issues/issue-36786-resolve-call.rs b/tests/ui/issues/issue-36786-resolve-call.rs similarity index 100% rename from src/test/ui/issues/issue-36786-resolve-call.rs rename to tests/ui/issues/issue-36786-resolve-call.rs diff --git a/src/test/ui/issues/issue-36792.rs b/tests/ui/issues/issue-36792.rs similarity index 100% rename from src/test/ui/issues/issue-36792.rs rename to tests/ui/issues/issue-36792.rs diff --git a/src/test/ui/issues/issue-3680.rs b/tests/ui/issues/issue-3680.rs similarity index 100% rename from src/test/ui/issues/issue-3680.rs rename to tests/ui/issues/issue-3680.rs diff --git a/src/test/ui/issues/issue-3680.stderr b/tests/ui/issues/issue-3680.stderr similarity index 100% rename from src/test/ui/issues/issue-3680.stderr rename to tests/ui/issues/issue-3680.stderr diff --git a/src/test/ui/issues/issue-36816.rs b/tests/ui/issues/issue-36816.rs similarity index 100% rename from src/test/ui/issues/issue-36816.rs rename to tests/ui/issues/issue-36816.rs diff --git a/src/test/ui/issues/issue-36836.rs b/tests/ui/issues/issue-36836.rs similarity index 100% rename from src/test/ui/issues/issue-36836.rs rename to tests/ui/issues/issue-36836.rs diff --git a/src/test/ui/issues/issue-36836.stderr b/tests/ui/issues/issue-36836.stderr similarity index 100% rename from src/test/ui/issues/issue-36836.stderr rename to tests/ui/issues/issue-36836.stderr diff --git a/src/test/ui/issues/issue-36839.rs b/tests/ui/issues/issue-36839.rs similarity index 100% rename from src/test/ui/issues/issue-36839.rs rename to tests/ui/issues/issue-36839.rs diff --git a/src/test/ui/issues/issue-36856.rs b/tests/ui/issues/issue-36856.rs similarity index 100% rename from src/test/ui/issues/issue-36856.rs rename to tests/ui/issues/issue-36856.rs diff --git a/src/test/ui/issues/issue-36936.rs b/tests/ui/issues/issue-36936.rs similarity index 100% rename from src/test/ui/issues/issue-36936.rs rename to tests/ui/issues/issue-36936.rs diff --git a/src/test/ui/issues/issue-36954.rs b/tests/ui/issues/issue-36954.rs similarity index 100% rename from src/test/ui/issues/issue-36954.rs rename to tests/ui/issues/issue-36954.rs diff --git a/src/test/ui/issues/issue-3702-2.rs b/tests/ui/issues/issue-3702-2.rs similarity index 100% rename from src/test/ui/issues/issue-3702-2.rs rename to tests/ui/issues/issue-3702-2.rs diff --git a/src/test/ui/issues/issue-3702-2.stderr b/tests/ui/issues/issue-3702-2.stderr similarity index 100% rename from src/test/ui/issues/issue-3702-2.stderr rename to tests/ui/issues/issue-3702-2.stderr diff --git a/src/test/ui/issues/issue-3702.rs b/tests/ui/issues/issue-3702.rs similarity index 100% rename from src/test/ui/issues/issue-3702.rs rename to tests/ui/issues/issue-3702.rs diff --git a/src/test/ui/issues/issue-37051.rs b/tests/ui/issues/issue-37051.rs similarity index 100% rename from src/test/ui/issues/issue-37051.rs rename to tests/ui/issues/issue-37051.rs diff --git a/src/test/ui/issues/issue-3707.rs b/tests/ui/issues/issue-3707.rs similarity index 100% rename from src/test/ui/issues/issue-3707.rs rename to tests/ui/issues/issue-3707.rs diff --git a/src/test/ui/issues/issue-3707.stderr b/tests/ui/issues/issue-3707.stderr similarity index 100% rename from src/test/ui/issues/issue-3707.stderr rename to tests/ui/issues/issue-3707.stderr diff --git a/src/test/ui/issues/issue-37109.rs b/tests/ui/issues/issue-37109.rs similarity index 100% rename from src/test/ui/issues/issue-37109.rs rename to tests/ui/issues/issue-37109.rs diff --git a/src/test/ui/issues/issue-37131.rs b/tests/ui/issues/issue-37131.rs similarity index 100% rename from src/test/ui/issues/issue-37131.rs rename to tests/ui/issues/issue-37131.rs diff --git a/src/test/ui/issues/issue-37131.stderr b/tests/ui/issues/issue-37131.stderr similarity index 100% rename from src/test/ui/issues/issue-37131.stderr rename to tests/ui/issues/issue-37131.stderr diff --git a/src/test/ui/issues/issue-37291/auxiliary/lib.rs b/tests/ui/issues/issue-37291/auxiliary/lib.rs similarity index 100% rename from src/test/ui/issues/issue-37291/auxiliary/lib.rs rename to tests/ui/issues/issue-37291/auxiliary/lib.rs diff --git a/src/test/ui/issues/issue-37291/main.rs b/tests/ui/issues/issue-37291/main.rs similarity index 100% rename from src/test/ui/issues/issue-37291/main.rs rename to tests/ui/issues/issue-37291/main.rs diff --git a/src/test/ui/issues/issue-37311-type-length-limit/issue-37311.polonius.stderr b/tests/ui/issues/issue-37311-type-length-limit/issue-37311.polonius.stderr similarity index 100% rename from src/test/ui/issues/issue-37311-type-length-limit/issue-37311.polonius.stderr rename to tests/ui/issues/issue-37311-type-length-limit/issue-37311.polonius.stderr diff --git a/src/test/ui/issues/issue-37311-type-length-limit/issue-37311.rs b/tests/ui/issues/issue-37311-type-length-limit/issue-37311.rs similarity index 100% rename from src/test/ui/issues/issue-37311-type-length-limit/issue-37311.rs rename to tests/ui/issues/issue-37311-type-length-limit/issue-37311.rs diff --git a/src/test/ui/issues/issue-37311-type-length-limit/issue-37311.stderr b/tests/ui/issues/issue-37311-type-length-limit/issue-37311.stderr similarity index 100% rename from src/test/ui/issues/issue-37311-type-length-limit/issue-37311.stderr rename to tests/ui/issues/issue-37311-type-length-limit/issue-37311.stderr diff --git a/src/test/ui/issues/issue-3743.rs b/tests/ui/issues/issue-3743.rs similarity index 100% rename from src/test/ui/issues/issue-3743.rs rename to tests/ui/issues/issue-3743.rs diff --git a/src/test/ui/issues/issue-37510.rs b/tests/ui/issues/issue-37510.rs similarity index 100% rename from src/test/ui/issues/issue-37510.rs rename to tests/ui/issues/issue-37510.rs diff --git a/src/test/ui/issues/issue-3753.rs b/tests/ui/issues/issue-3753.rs similarity index 100% rename from src/test/ui/issues/issue-3753.rs rename to tests/ui/issues/issue-3753.rs diff --git a/src/test/ui/issues/issue-37534.rs b/tests/ui/issues/issue-37534.rs similarity index 100% rename from src/test/ui/issues/issue-37534.rs rename to tests/ui/issues/issue-37534.rs diff --git a/src/test/ui/issues/issue-37534.stderr b/tests/ui/issues/issue-37534.stderr similarity index 100% rename from src/test/ui/issues/issue-37534.stderr rename to tests/ui/issues/issue-37534.stderr diff --git a/src/test/ui/issues/issue-37576.rs b/tests/ui/issues/issue-37576.rs similarity index 100% rename from src/test/ui/issues/issue-37576.rs rename to tests/ui/issues/issue-37576.rs diff --git a/src/test/ui/issues/issue-37576.stderr b/tests/ui/issues/issue-37576.stderr similarity index 100% rename from src/test/ui/issues/issue-37576.stderr rename to tests/ui/issues/issue-37576.stderr diff --git a/src/test/ui/issues/issue-37598.rs b/tests/ui/issues/issue-37598.rs similarity index 100% rename from src/test/ui/issues/issue-37598.rs rename to tests/ui/issues/issue-37598.rs diff --git a/src/test/ui/issues/issue-3763.rs b/tests/ui/issues/issue-3763.rs similarity index 100% rename from src/test/ui/issues/issue-3763.rs rename to tests/ui/issues/issue-3763.rs diff --git a/src/test/ui/issues/issue-3763.stderr b/tests/ui/issues/issue-3763.stderr similarity index 100% rename from src/test/ui/issues/issue-3763.stderr rename to tests/ui/issues/issue-3763.stderr diff --git a/src/test/ui/issues/issue-37665.rs b/tests/ui/issues/issue-37665.rs similarity index 100% rename from src/test/ui/issues/issue-37665.rs rename to tests/ui/issues/issue-37665.rs diff --git a/src/test/ui/issues/issue-37665.stderr b/tests/ui/issues/issue-37665.stderr similarity index 100% rename from src/test/ui/issues/issue-37665.stderr rename to tests/ui/issues/issue-37665.stderr diff --git a/src/test/ui/issues/issue-37686.rs b/tests/ui/issues/issue-37686.rs similarity index 100% rename from src/test/ui/issues/issue-37686.rs rename to tests/ui/issues/issue-37686.rs diff --git a/src/test/ui/issues/issue-37725.rs b/tests/ui/issues/issue-37725.rs similarity index 100% rename from src/test/ui/issues/issue-37725.rs rename to tests/ui/issues/issue-37725.rs diff --git a/src/test/ui/issues/issue-37733.rs b/tests/ui/issues/issue-37733.rs similarity index 100% rename from src/test/ui/issues/issue-37733.rs rename to tests/ui/issues/issue-37733.rs diff --git a/src/test/ui/issues/issue-3779.rs b/tests/ui/issues/issue-3779.rs similarity index 100% rename from src/test/ui/issues/issue-3779.rs rename to tests/ui/issues/issue-3779.rs diff --git a/src/test/ui/issues/issue-3779.stderr b/tests/ui/issues/issue-3779.stderr similarity index 100% rename from src/test/ui/issues/issue-3779.stderr rename to tests/ui/issues/issue-3779.stderr diff --git a/src/test/ui/issues/issue-37884.rs b/tests/ui/issues/issue-37884.rs similarity index 100% rename from src/test/ui/issues/issue-37884.rs rename to tests/ui/issues/issue-37884.rs diff --git a/src/test/ui/issues/issue-37884.stderr b/tests/ui/issues/issue-37884.stderr similarity index 100% rename from src/test/ui/issues/issue-37884.stderr rename to tests/ui/issues/issue-37884.stderr diff --git a/src/test/ui/issues/issue-3794.rs b/tests/ui/issues/issue-3794.rs similarity index 100% rename from src/test/ui/issues/issue-3794.rs rename to tests/ui/issues/issue-3794.rs diff --git a/src/test/ui/issues/issue-38160.rs b/tests/ui/issues/issue-38160.rs similarity index 100% rename from src/test/ui/issues/issue-38160.rs rename to tests/ui/issues/issue-38160.rs diff --git a/src/test/ui/issues/issue-38190.rs b/tests/ui/issues/issue-38190.rs similarity index 100% rename from src/test/ui/issues/issue-38190.rs rename to tests/ui/issues/issue-38190.rs diff --git a/src/test/ui/issues/issue-38226.rs b/tests/ui/issues/issue-38226.rs similarity index 100% rename from src/test/ui/issues/issue-38226.rs rename to tests/ui/issues/issue-38226.rs diff --git a/src/test/ui/issues/issue-38381.rs b/tests/ui/issues/issue-38381.rs similarity index 100% rename from src/test/ui/issues/issue-38381.rs rename to tests/ui/issues/issue-38381.rs diff --git a/src/test/ui/issues/issue-38412.rs b/tests/ui/issues/issue-38412.rs similarity index 100% rename from src/test/ui/issues/issue-38412.rs rename to tests/ui/issues/issue-38412.rs diff --git a/src/test/ui/issues/issue-38412.stderr b/tests/ui/issues/issue-38412.stderr similarity index 100% rename from src/test/ui/issues/issue-38412.stderr rename to tests/ui/issues/issue-38412.stderr diff --git a/src/test/ui/issues/issue-38437.rs b/tests/ui/issues/issue-38437.rs similarity index 100% rename from src/test/ui/issues/issue-38437.rs rename to tests/ui/issues/issue-38437.rs diff --git a/src/test/ui/issues/issue-38458.rs b/tests/ui/issues/issue-38458.rs similarity index 100% rename from src/test/ui/issues/issue-38458.rs rename to tests/ui/issues/issue-38458.rs diff --git a/src/test/ui/issues/issue-38458.stderr b/tests/ui/issues/issue-38458.stderr similarity index 100% rename from src/test/ui/issues/issue-38458.stderr rename to tests/ui/issues/issue-38458.stderr diff --git a/src/test/ui/issues/issue-3847.rs b/tests/ui/issues/issue-3847.rs similarity index 100% rename from src/test/ui/issues/issue-3847.rs rename to tests/ui/issues/issue-3847.rs diff --git a/src/test/ui/issues/issue-38556.rs b/tests/ui/issues/issue-38556.rs similarity index 100% rename from src/test/ui/issues/issue-38556.rs rename to tests/ui/issues/issue-38556.rs diff --git a/src/test/ui/issues/issue-38727.rs b/tests/ui/issues/issue-38727.rs similarity index 100% rename from src/test/ui/issues/issue-38727.rs rename to tests/ui/issues/issue-38727.rs diff --git a/src/test/ui/issues/issue-3874.rs b/tests/ui/issues/issue-3874.rs similarity index 100% rename from src/test/ui/issues/issue-3874.rs rename to tests/ui/issues/issue-3874.rs diff --git a/src/test/ui/issues/issue-38763.rs b/tests/ui/issues/issue-38763.rs similarity index 100% rename from src/test/ui/issues/issue-38763.rs rename to tests/ui/issues/issue-38763.rs diff --git a/src/test/ui/issues/issue-3878.rs b/tests/ui/issues/issue-3878.rs similarity index 100% rename from src/test/ui/issues/issue-3878.rs rename to tests/ui/issues/issue-3878.rs diff --git a/src/test/ui/issues/issue-38821.rs b/tests/ui/issues/issue-38821.rs similarity index 100% rename from src/test/ui/issues/issue-38821.rs rename to tests/ui/issues/issue-38821.rs diff --git a/src/test/ui/issues/issue-38821.stderr b/tests/ui/issues/issue-38821.stderr similarity index 100% rename from src/test/ui/issues/issue-38821.stderr rename to tests/ui/issues/issue-38821.stderr diff --git a/src/test/ui/issues/issue-38857.rs b/tests/ui/issues/issue-38857.rs similarity index 100% rename from src/test/ui/issues/issue-38857.rs rename to tests/ui/issues/issue-38857.rs diff --git a/src/test/ui/issues/issue-38857.stderr b/tests/ui/issues/issue-38857.stderr similarity index 100% rename from src/test/ui/issues/issue-38857.stderr rename to tests/ui/issues/issue-38857.stderr diff --git a/src/test/ui/issues/issue-38875/auxiliary/issue-38875-b.rs b/tests/ui/issues/issue-38875/auxiliary/issue-38875-b.rs similarity index 100% rename from src/test/ui/issues/issue-38875/auxiliary/issue-38875-b.rs rename to tests/ui/issues/issue-38875/auxiliary/issue-38875-b.rs diff --git a/src/test/ui/issues/issue-38875/issue-38875.rs b/tests/ui/issues/issue-38875/issue-38875.rs similarity index 100% rename from src/test/ui/issues/issue-38875/issue-38875.rs rename to tests/ui/issues/issue-38875/issue-38875.rs diff --git a/src/test/ui/issues/issue-3888-2.rs b/tests/ui/issues/issue-3888-2.rs similarity index 100% rename from src/test/ui/issues/issue-3888-2.rs rename to tests/ui/issues/issue-3888-2.rs diff --git a/src/test/ui/issues/issue-38919.rs b/tests/ui/issues/issue-38919.rs similarity index 100% rename from src/test/ui/issues/issue-38919.rs rename to tests/ui/issues/issue-38919.rs diff --git a/src/test/ui/issues/issue-38919.stderr b/tests/ui/issues/issue-38919.stderr similarity index 100% rename from src/test/ui/issues/issue-38919.stderr rename to tests/ui/issues/issue-38919.stderr diff --git a/src/test/ui/issues/issue-38942.rs b/tests/ui/issues/issue-38942.rs similarity index 100% rename from src/test/ui/issues/issue-38942.rs rename to tests/ui/issues/issue-38942.rs diff --git a/src/test/ui/issues/issue-3895.rs b/tests/ui/issues/issue-3895.rs similarity index 100% rename from src/test/ui/issues/issue-3895.rs rename to tests/ui/issues/issue-3895.rs diff --git a/src/test/ui/issues/issue-38954.rs b/tests/ui/issues/issue-38954.rs similarity index 100% rename from src/test/ui/issues/issue-38954.rs rename to tests/ui/issues/issue-38954.rs diff --git a/src/test/ui/issues/issue-38954.stderr b/tests/ui/issues/issue-38954.stderr similarity index 100% rename from src/test/ui/issues/issue-38954.stderr rename to tests/ui/issues/issue-38954.stderr diff --git a/src/test/ui/issues/issue-38987.rs b/tests/ui/issues/issue-38987.rs similarity index 100% rename from src/test/ui/issues/issue-38987.rs rename to tests/ui/issues/issue-38987.rs diff --git a/src/test/ui/issues/issue-39089.rs b/tests/ui/issues/issue-39089.rs similarity index 100% rename from src/test/ui/issues/issue-39089.rs rename to tests/ui/issues/issue-39089.rs diff --git a/src/test/ui/issues/issue-39175.rs b/tests/ui/issues/issue-39175.rs similarity index 100% rename from src/test/ui/issues/issue-39175.rs rename to tests/ui/issues/issue-39175.rs diff --git a/src/test/ui/issues/issue-39175.stderr b/tests/ui/issues/issue-39175.stderr similarity index 100% rename from src/test/ui/issues/issue-39175.stderr rename to tests/ui/issues/issue-39175.stderr diff --git a/src/test/ui/issues/issue-39211.rs b/tests/ui/issues/issue-39211.rs similarity index 100% rename from src/test/ui/issues/issue-39211.rs rename to tests/ui/issues/issue-39211.rs diff --git a/src/test/ui/issues/issue-39211.stderr b/tests/ui/issues/issue-39211.stderr similarity index 100% rename from src/test/ui/issues/issue-39211.stderr rename to tests/ui/issues/issue-39211.stderr diff --git a/src/test/ui/issues/issue-39292.rs b/tests/ui/issues/issue-39292.rs similarity index 100% rename from src/test/ui/issues/issue-39292.rs rename to tests/ui/issues/issue-39292.rs diff --git a/src/test/ui/issues/issue-39367.rs b/tests/ui/issues/issue-39367.rs similarity index 100% rename from src/test/ui/issues/issue-39367.rs rename to tests/ui/issues/issue-39367.rs diff --git a/src/test/ui/issues/issue-39467.rs b/tests/ui/issues/issue-39467.rs similarity index 100% rename from src/test/ui/issues/issue-39467.rs rename to tests/ui/issues/issue-39467.rs diff --git a/src/test/ui/issues/issue-39548.rs b/tests/ui/issues/issue-39548.rs similarity index 100% rename from src/test/ui/issues/issue-39548.rs rename to tests/ui/issues/issue-39548.rs diff --git a/src/test/ui/issues/issue-39687.rs b/tests/ui/issues/issue-39687.rs similarity index 100% rename from src/test/ui/issues/issue-39687.rs rename to tests/ui/issues/issue-39687.rs diff --git a/src/test/ui/issues/issue-39687.stderr b/tests/ui/issues/issue-39687.stderr similarity index 100% rename from src/test/ui/issues/issue-39687.stderr rename to tests/ui/issues/issue-39687.stderr diff --git a/src/test/ui/issues/issue-39709.rs b/tests/ui/issues/issue-39709.rs similarity index 100% rename from src/test/ui/issues/issue-39709.rs rename to tests/ui/issues/issue-39709.rs diff --git a/src/test/ui/issues/issue-3979-2.rs b/tests/ui/issues/issue-3979-2.rs similarity index 100% rename from src/test/ui/issues/issue-3979-2.rs rename to tests/ui/issues/issue-3979-2.rs diff --git a/src/test/ui/issues/issue-3979-generics.rs b/tests/ui/issues/issue-3979-generics.rs similarity index 100% rename from src/test/ui/issues/issue-3979-generics.rs rename to tests/ui/issues/issue-3979-generics.rs diff --git a/src/test/ui/issues/issue-3979-xcrate.rs b/tests/ui/issues/issue-3979-xcrate.rs similarity index 100% rename from src/test/ui/issues/issue-3979-xcrate.rs rename to tests/ui/issues/issue-3979-xcrate.rs diff --git a/src/test/ui/issues/issue-3979.rs b/tests/ui/issues/issue-3979.rs similarity index 100% rename from src/test/ui/issues/issue-3979.rs rename to tests/ui/issues/issue-3979.rs diff --git a/src/test/ui/issues/issue-39808.rs b/tests/ui/issues/issue-39808.rs similarity index 100% rename from src/test/ui/issues/issue-39808.rs rename to tests/ui/issues/issue-39808.rs diff --git a/src/test/ui/issues/issue-39827.rs b/tests/ui/issues/issue-39827.rs similarity index 100% rename from src/test/ui/issues/issue-39827.rs rename to tests/ui/issues/issue-39827.rs diff --git a/src/test/ui/issues/issue-39848.rs b/tests/ui/issues/issue-39848.rs similarity index 100% rename from src/test/ui/issues/issue-39848.rs rename to tests/ui/issues/issue-39848.rs diff --git a/src/test/ui/issues/issue-39848.stderr b/tests/ui/issues/issue-39848.stderr similarity index 100% rename from src/test/ui/issues/issue-39848.stderr rename to tests/ui/issues/issue-39848.stderr diff --git a/src/test/ui/issues/issue-3991.rs b/tests/ui/issues/issue-3991.rs similarity index 100% rename from src/test/ui/issues/issue-3991.rs rename to tests/ui/issues/issue-3991.rs diff --git a/src/test/ui/issues/issue-3993.rs b/tests/ui/issues/issue-3993.rs similarity index 100% rename from src/test/ui/issues/issue-3993.rs rename to tests/ui/issues/issue-3993.rs diff --git a/src/test/ui/issues/issue-3993.stderr b/tests/ui/issues/issue-3993.stderr similarity index 100% rename from src/test/ui/issues/issue-3993.stderr rename to tests/ui/issues/issue-3993.stderr diff --git a/src/test/ui/issues/issue-39970.rs b/tests/ui/issues/issue-39970.rs similarity index 100% rename from src/test/ui/issues/issue-39970.rs rename to tests/ui/issues/issue-39970.rs diff --git a/src/test/ui/issues/issue-39970.stderr b/tests/ui/issues/issue-39970.stderr similarity index 100% rename from src/test/ui/issues/issue-39970.stderr rename to tests/ui/issues/issue-39970.stderr diff --git a/src/test/ui/issues/issue-39984.rs b/tests/ui/issues/issue-39984.rs similarity index 100% rename from src/test/ui/issues/issue-39984.rs rename to tests/ui/issues/issue-39984.rs diff --git a/src/test/ui/issues/issue-40000.rs b/tests/ui/issues/issue-40000.rs similarity index 100% rename from src/test/ui/issues/issue-40000.rs rename to tests/ui/issues/issue-40000.rs diff --git a/src/test/ui/issues/issue-40000.stderr b/tests/ui/issues/issue-40000.stderr similarity index 100% rename from src/test/ui/issues/issue-40000.stderr rename to tests/ui/issues/issue-40000.stderr diff --git a/src/test/ui/issues/issue-40003.rs b/tests/ui/issues/issue-40003.rs similarity index 100% rename from src/test/ui/issues/issue-40003.rs rename to tests/ui/issues/issue-40003.rs diff --git a/src/test/ui/issues/issue-40085.rs b/tests/ui/issues/issue-40085.rs similarity index 100% rename from src/test/ui/issues/issue-40085.rs rename to tests/ui/issues/issue-40085.rs diff --git a/src/test/ui/issues/issue-40136.rs b/tests/ui/issues/issue-40136.rs similarity index 100% rename from src/test/ui/issues/issue-40136.rs rename to tests/ui/issues/issue-40136.rs diff --git a/src/test/ui/issues/issue-40235.rs b/tests/ui/issues/issue-40235.rs similarity index 100% rename from src/test/ui/issues/issue-40235.rs rename to tests/ui/issues/issue-40235.rs diff --git a/src/test/ui/issues/issue-4025.rs b/tests/ui/issues/issue-4025.rs similarity index 100% rename from src/test/ui/issues/issue-4025.rs rename to tests/ui/issues/issue-4025.rs diff --git a/src/test/ui/issues/issue-40288-2.rs b/tests/ui/issues/issue-40288-2.rs similarity index 100% rename from src/test/ui/issues/issue-40288-2.rs rename to tests/ui/issues/issue-40288-2.rs diff --git a/src/test/ui/issues/issue-40288-2.stderr b/tests/ui/issues/issue-40288-2.stderr similarity index 100% rename from src/test/ui/issues/issue-40288-2.stderr rename to tests/ui/issues/issue-40288-2.stderr diff --git a/src/test/ui/issues/issue-40288.rs b/tests/ui/issues/issue-40288.rs similarity index 100% rename from src/test/ui/issues/issue-40288.rs rename to tests/ui/issues/issue-40288.rs diff --git a/src/test/ui/issues/issue-40288.stderr b/tests/ui/issues/issue-40288.stderr similarity index 100% rename from src/test/ui/issues/issue-40288.stderr rename to tests/ui/issues/issue-40288.stderr diff --git a/src/test/ui/issues/issue-40350.rs b/tests/ui/issues/issue-40350.rs similarity index 100% rename from src/test/ui/issues/issue-40350.rs rename to tests/ui/issues/issue-40350.rs diff --git a/src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.rs b/tests/ui/issues/issue-40402-ref-hints/issue-40402-1.rs similarity index 100% rename from src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.rs rename to tests/ui/issues/issue-40402-ref-hints/issue-40402-1.rs diff --git a/src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr b/tests/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr similarity index 100% rename from src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr rename to tests/ui/issues/issue-40402-ref-hints/issue-40402-1.stderr diff --git a/src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.rs b/tests/ui/issues/issue-40402-ref-hints/issue-40402-2.rs similarity index 100% rename from src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.rs rename to tests/ui/issues/issue-40402-ref-hints/issue-40402-2.rs diff --git a/src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.stderr b/tests/ui/issues/issue-40402-ref-hints/issue-40402-2.stderr similarity index 100% rename from src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.stderr rename to tests/ui/issues/issue-40402-ref-hints/issue-40402-2.stderr diff --git a/src/test/ui/issues/issue-40408.rs b/tests/ui/issues/issue-40408.rs similarity index 100% rename from src/test/ui/issues/issue-40408.rs rename to tests/ui/issues/issue-40408.rs diff --git a/src/test/ui/issues/issue-40510-1.migrate.stderr b/tests/ui/issues/issue-40510-1.migrate.stderr similarity index 100% rename from src/test/ui/issues/issue-40510-1.migrate.stderr rename to tests/ui/issues/issue-40510-1.migrate.stderr diff --git a/src/test/ui/issues/issue-40510-1.rs b/tests/ui/issues/issue-40510-1.rs similarity index 100% rename from src/test/ui/issues/issue-40510-1.rs rename to tests/ui/issues/issue-40510-1.rs diff --git a/src/test/ui/issues/issue-40510-1.stderr b/tests/ui/issues/issue-40510-1.stderr similarity index 100% rename from src/test/ui/issues/issue-40510-1.stderr rename to tests/ui/issues/issue-40510-1.stderr diff --git a/src/test/ui/issues/issue-40510-2.rs b/tests/ui/issues/issue-40510-2.rs similarity index 100% rename from src/test/ui/issues/issue-40510-2.rs rename to tests/ui/issues/issue-40510-2.rs diff --git a/src/test/ui/issues/issue-40510-3.migrate.stderr b/tests/ui/issues/issue-40510-3.migrate.stderr similarity index 100% rename from src/test/ui/issues/issue-40510-3.migrate.stderr rename to tests/ui/issues/issue-40510-3.migrate.stderr diff --git a/src/test/ui/issues/issue-40510-3.rs b/tests/ui/issues/issue-40510-3.rs similarity index 100% rename from src/test/ui/issues/issue-40510-3.rs rename to tests/ui/issues/issue-40510-3.rs diff --git a/src/test/ui/issues/issue-40510-3.stderr b/tests/ui/issues/issue-40510-3.stderr similarity index 100% rename from src/test/ui/issues/issue-40510-3.stderr rename to tests/ui/issues/issue-40510-3.stderr diff --git a/src/test/ui/issues/issue-40510-4.rs b/tests/ui/issues/issue-40510-4.rs similarity index 100% rename from src/test/ui/issues/issue-40510-4.rs rename to tests/ui/issues/issue-40510-4.rs diff --git a/src/test/ui/issues/issue-40610.rs b/tests/ui/issues/issue-40610.rs similarity index 100% rename from src/test/ui/issues/issue-40610.rs rename to tests/ui/issues/issue-40610.rs diff --git a/src/test/ui/issues/issue-40610.stderr b/tests/ui/issues/issue-40610.stderr similarity index 100% rename from src/test/ui/issues/issue-40610.stderr rename to tests/ui/issues/issue-40610.stderr diff --git a/src/test/ui/issues/issue-40749.rs b/tests/ui/issues/issue-40749.rs similarity index 100% rename from src/test/ui/issues/issue-40749.rs rename to tests/ui/issues/issue-40749.rs diff --git a/src/test/ui/issues/issue-40749.stderr b/tests/ui/issues/issue-40749.stderr similarity index 100% rename from src/test/ui/issues/issue-40749.stderr rename to tests/ui/issues/issue-40749.stderr diff --git a/src/test/ui/issues/issue-40782.fixed b/tests/ui/issues/issue-40782.fixed similarity index 100% rename from src/test/ui/issues/issue-40782.fixed rename to tests/ui/issues/issue-40782.fixed diff --git a/src/test/ui/issues/issue-40782.rs b/tests/ui/issues/issue-40782.rs similarity index 100% rename from src/test/ui/issues/issue-40782.rs rename to tests/ui/issues/issue-40782.rs diff --git a/src/test/ui/issues/issue-40782.stderr b/tests/ui/issues/issue-40782.stderr similarity index 100% rename from src/test/ui/issues/issue-40782.stderr rename to tests/ui/issues/issue-40782.stderr diff --git a/src/test/ui/issues/issue-40827.rs b/tests/ui/issues/issue-40827.rs similarity index 100% rename from src/test/ui/issues/issue-40827.rs rename to tests/ui/issues/issue-40827.rs diff --git a/src/test/ui/issues/issue-40827.stderr b/tests/ui/issues/issue-40827.stderr similarity index 100% rename from src/test/ui/issues/issue-40827.stderr rename to tests/ui/issues/issue-40827.stderr diff --git a/src/test/ui/issues/issue-40845.rs b/tests/ui/issues/issue-40845.rs similarity index 100% rename from src/test/ui/issues/issue-40845.rs rename to tests/ui/issues/issue-40845.rs diff --git a/src/test/ui/issues/issue-40845.stderr b/tests/ui/issues/issue-40845.stderr similarity index 100% rename from src/test/ui/issues/issue-40845.stderr rename to tests/ui/issues/issue-40845.stderr diff --git a/src/test/ui/issues/issue-40861.rs b/tests/ui/issues/issue-40861.rs similarity index 100% rename from src/test/ui/issues/issue-40861.rs rename to tests/ui/issues/issue-40861.rs diff --git a/src/test/ui/issues/issue-40861.stderr b/tests/ui/issues/issue-40861.stderr similarity index 100% rename from src/test/ui/issues/issue-40861.stderr rename to tests/ui/issues/issue-40861.stderr diff --git a/src/test/ui/issues/issue-40883.rs b/tests/ui/issues/issue-40883.rs similarity index 100% rename from src/test/ui/issues/issue-40883.rs rename to tests/ui/issues/issue-40883.rs diff --git a/src/test/ui/issues/issue-40951.rs b/tests/ui/issues/issue-40951.rs similarity index 100% rename from src/test/ui/issues/issue-40951.rs rename to tests/ui/issues/issue-40951.rs diff --git a/src/test/ui/issues/issue-41053.rs b/tests/ui/issues/issue-41053.rs similarity index 100% rename from src/test/ui/issues/issue-41053.rs rename to tests/ui/issues/issue-41053.rs diff --git a/src/test/ui/issues/issue-41139.rs b/tests/ui/issues/issue-41139.rs similarity index 100% rename from src/test/ui/issues/issue-41139.rs rename to tests/ui/issues/issue-41139.rs diff --git a/src/test/ui/issues/issue-41139.stderr b/tests/ui/issues/issue-41139.stderr similarity index 100% rename from src/test/ui/issues/issue-41139.stderr rename to tests/ui/issues/issue-41139.stderr diff --git a/src/test/ui/issues/issue-41213.rs b/tests/ui/issues/issue-41213.rs similarity index 100% rename from src/test/ui/issues/issue-41213.rs rename to tests/ui/issues/issue-41213.rs diff --git a/src/test/ui/issues/issue-41229-ref-str.rs b/tests/ui/issues/issue-41229-ref-str.rs similarity index 100% rename from src/test/ui/issues/issue-41229-ref-str.rs rename to tests/ui/issues/issue-41229-ref-str.rs diff --git a/src/test/ui/issues/issue-41229-ref-str.stderr b/tests/ui/issues/issue-41229-ref-str.stderr similarity index 100% rename from src/test/ui/issues/issue-41229-ref-str.stderr rename to tests/ui/issues/issue-41229-ref-str.stderr diff --git a/src/test/ui/issues/issue-41272.rs b/tests/ui/issues/issue-41272.rs similarity index 100% rename from src/test/ui/issues/issue-41272.rs rename to tests/ui/issues/issue-41272.rs diff --git a/src/test/ui/issues/issue-41298.rs b/tests/ui/issues/issue-41298.rs similarity index 100% rename from src/test/ui/issues/issue-41298.rs rename to tests/ui/issues/issue-41298.rs diff --git a/src/test/ui/issues/issue-41394-rpass.rs b/tests/ui/issues/issue-41394-rpass.rs similarity index 100% rename from src/test/ui/issues/issue-41394-rpass.rs rename to tests/ui/issues/issue-41394-rpass.rs diff --git a/src/test/ui/issues/issue-41394.rs b/tests/ui/issues/issue-41394.rs similarity index 100% rename from src/test/ui/issues/issue-41394.rs rename to tests/ui/issues/issue-41394.rs diff --git a/src/test/ui/issues/issue-41394.stderr b/tests/ui/issues/issue-41394.stderr similarity index 100% rename from src/test/ui/issues/issue-41394.stderr rename to tests/ui/issues/issue-41394.stderr diff --git a/src/test/ui/issues/issue-41479.rs b/tests/ui/issues/issue-41479.rs similarity index 100% rename from src/test/ui/issues/issue-41479.rs rename to tests/ui/issues/issue-41479.rs diff --git a/src/test/ui/issues/issue-41498.rs b/tests/ui/issues/issue-41498.rs similarity index 100% rename from src/test/ui/issues/issue-41498.rs rename to tests/ui/issues/issue-41498.rs diff --git a/src/test/ui/issues/issue-41549.rs b/tests/ui/issues/issue-41549.rs similarity index 100% rename from src/test/ui/issues/issue-41549.rs rename to tests/ui/issues/issue-41549.rs diff --git a/src/test/ui/issues/issue-41549.stderr b/tests/ui/issues/issue-41549.stderr similarity index 100% rename from src/test/ui/issues/issue-41549.stderr rename to tests/ui/issues/issue-41549.stderr diff --git a/src/test/ui/issues/issue-41604.rs b/tests/ui/issues/issue-41604.rs similarity index 100% rename from src/test/ui/issues/issue-41604.rs rename to tests/ui/issues/issue-41604.rs diff --git a/src/test/ui/issues/issue-41628.rs b/tests/ui/issues/issue-41628.rs similarity index 100% rename from src/test/ui/issues/issue-41628.rs rename to tests/ui/issues/issue-41628.rs diff --git a/src/test/ui/issues/issue-41652/auxiliary/issue-41652-b.rs b/tests/ui/issues/issue-41652/auxiliary/issue-41652-b.rs similarity index 100% rename from src/test/ui/issues/issue-41652/auxiliary/issue-41652-b.rs rename to tests/ui/issues/issue-41652/auxiliary/issue-41652-b.rs diff --git a/src/test/ui/issues/issue-41652/issue-41652.rs b/tests/ui/issues/issue-41652/issue-41652.rs similarity index 100% rename from src/test/ui/issues/issue-41652/issue-41652.rs rename to tests/ui/issues/issue-41652/issue-41652.rs diff --git a/src/test/ui/issues/issue-41652/issue-41652.stderr b/tests/ui/issues/issue-41652/issue-41652.stderr similarity index 100% rename from src/test/ui/issues/issue-41652/issue-41652.stderr rename to tests/ui/issues/issue-41652/issue-41652.stderr diff --git a/src/test/ui/issues/issue-41677.rs b/tests/ui/issues/issue-41677.rs similarity index 100% rename from src/test/ui/issues/issue-41677.rs rename to tests/ui/issues/issue-41677.rs diff --git a/src/test/ui/issues/issue-41696.rs b/tests/ui/issues/issue-41696.rs similarity index 100% rename from src/test/ui/issues/issue-41696.rs rename to tests/ui/issues/issue-41696.rs diff --git a/src/test/ui/issues/issue-41726.rs b/tests/ui/issues/issue-41726.rs similarity index 100% rename from src/test/ui/issues/issue-41726.rs rename to tests/ui/issues/issue-41726.rs diff --git a/src/test/ui/issues/issue-41726.stderr b/tests/ui/issues/issue-41726.stderr similarity index 100% rename from src/test/ui/issues/issue-41726.stderr rename to tests/ui/issues/issue-41726.stderr diff --git a/src/test/ui/issues/issue-41742.rs b/tests/ui/issues/issue-41742.rs similarity index 100% rename from src/test/ui/issues/issue-41742.rs rename to tests/ui/issues/issue-41742.rs diff --git a/src/test/ui/issues/issue-41742.stderr b/tests/ui/issues/issue-41742.stderr similarity index 100% rename from src/test/ui/issues/issue-41742.stderr rename to tests/ui/issues/issue-41742.stderr diff --git a/src/test/ui/issues/issue-41744.rs b/tests/ui/issues/issue-41744.rs similarity index 100% rename from src/test/ui/issues/issue-41744.rs rename to tests/ui/issues/issue-41744.rs diff --git a/src/test/ui/issues/issue-41849-variance-req.rs b/tests/ui/issues/issue-41849-variance-req.rs similarity index 100% rename from src/test/ui/issues/issue-41849-variance-req.rs rename to tests/ui/issues/issue-41849-variance-req.rs diff --git a/src/test/ui/issues/issue-41880.rs b/tests/ui/issues/issue-41880.rs similarity index 100% rename from src/test/ui/issues/issue-41880.rs rename to tests/ui/issues/issue-41880.rs diff --git a/src/test/ui/issues/issue-41880.stderr b/tests/ui/issues/issue-41880.stderr similarity index 100% rename from src/test/ui/issues/issue-41880.stderr rename to tests/ui/issues/issue-41880.stderr diff --git a/src/test/ui/issues/issue-41888.rs b/tests/ui/issues/issue-41888.rs similarity index 100% rename from src/test/ui/issues/issue-41888.rs rename to tests/ui/issues/issue-41888.rs diff --git a/src/test/ui/issues/issue-41936-variance-coerce-unsized-cycle.rs b/tests/ui/issues/issue-41936-variance-coerce-unsized-cycle.rs similarity index 100% rename from src/test/ui/issues/issue-41936-variance-coerce-unsized-cycle.rs rename to tests/ui/issues/issue-41936-variance-coerce-unsized-cycle.rs diff --git a/src/test/ui/issues/issue-41974.rs b/tests/ui/issues/issue-41974.rs similarity index 100% rename from src/test/ui/issues/issue-41974.rs rename to tests/ui/issues/issue-41974.rs diff --git a/src/test/ui/issues/issue-41974.stderr b/tests/ui/issues/issue-41974.stderr similarity index 100% rename from src/test/ui/issues/issue-41974.stderr rename to tests/ui/issues/issue-41974.stderr diff --git a/src/test/ui/issues/issue-41998.rs b/tests/ui/issues/issue-41998.rs similarity index 100% rename from src/test/ui/issues/issue-41998.rs rename to tests/ui/issues/issue-41998.rs diff --git a/src/test/ui/issues/issue-42007.rs b/tests/ui/issues/issue-42007.rs similarity index 100% rename from src/test/ui/issues/issue-42007.rs rename to tests/ui/issues/issue-42007.rs diff --git a/src/test/ui/issues/issue-4208.rs b/tests/ui/issues/issue-4208.rs similarity index 100% rename from src/test/ui/issues/issue-4208.rs rename to tests/ui/issues/issue-4208.rs diff --git a/src/test/ui/issues/issue-42106.rs b/tests/ui/issues/issue-42106.rs similarity index 100% rename from src/test/ui/issues/issue-42106.rs rename to tests/ui/issues/issue-42106.rs diff --git a/src/test/ui/issues/issue-42106.stderr b/tests/ui/issues/issue-42106.stderr similarity index 100% rename from src/test/ui/issues/issue-42106.stderr rename to tests/ui/issues/issue-42106.stderr diff --git a/src/test/ui/issues/issue-42148.rs b/tests/ui/issues/issue-42148.rs similarity index 100% rename from src/test/ui/issues/issue-42148.rs rename to tests/ui/issues/issue-42148.rs diff --git a/src/test/ui/issues/issue-42210.rs b/tests/ui/issues/issue-42210.rs similarity index 100% rename from src/test/ui/issues/issue-42210.rs rename to tests/ui/issues/issue-42210.rs diff --git a/src/test/ui/issues/issue-4228.rs b/tests/ui/issues/issue-4228.rs similarity index 100% rename from src/test/ui/issues/issue-4228.rs rename to tests/ui/issues/issue-4228.rs diff --git a/src/test/ui/issues/issue-42312.rs b/tests/ui/issues/issue-42312.rs similarity index 100% rename from src/test/ui/issues/issue-42312.rs rename to tests/ui/issues/issue-42312.rs diff --git a/src/test/ui/issues/issue-42312.stderr b/tests/ui/issues/issue-42312.stderr similarity index 100% rename from src/test/ui/issues/issue-42312.stderr rename to tests/ui/issues/issue-42312.stderr diff --git a/src/test/ui/issues/issue-42453.rs b/tests/ui/issues/issue-42453.rs similarity index 100% rename from src/test/ui/issues/issue-42453.rs rename to tests/ui/issues/issue-42453.rs diff --git a/src/test/ui/issues/issue-42467.rs b/tests/ui/issues/issue-42467.rs similarity index 100% rename from src/test/ui/issues/issue-42467.rs rename to tests/ui/issues/issue-42467.rs diff --git a/src/test/ui/issues/issue-4252.rs b/tests/ui/issues/issue-4252.rs similarity index 100% rename from src/test/ui/issues/issue-4252.rs rename to tests/ui/issues/issue-4252.rs diff --git a/src/test/ui/issues/issue-42552.rs b/tests/ui/issues/issue-42552.rs similarity index 100% rename from src/test/ui/issues/issue-42552.rs rename to tests/ui/issues/issue-42552.rs diff --git a/src/test/ui/issues/issue-4265.rs b/tests/ui/issues/issue-4265.rs similarity index 100% rename from src/test/ui/issues/issue-4265.rs rename to tests/ui/issues/issue-4265.rs diff --git a/src/test/ui/issues/issue-4265.stderr b/tests/ui/issues/issue-4265.stderr similarity index 100% rename from src/test/ui/issues/issue-4265.stderr rename to tests/ui/issues/issue-4265.stderr diff --git a/src/test/ui/issues/issue-42755.rs b/tests/ui/issues/issue-42755.rs similarity index 100% rename from src/test/ui/issues/issue-42755.rs rename to tests/ui/issues/issue-42755.rs diff --git a/src/test/ui/issues/issue-42755.stderr b/tests/ui/issues/issue-42755.stderr similarity index 100% rename from src/test/ui/issues/issue-42755.stderr rename to tests/ui/issues/issue-42755.stderr diff --git a/src/test/ui/issues/issue-42796.rs b/tests/ui/issues/issue-42796.rs similarity index 100% rename from src/test/ui/issues/issue-42796.rs rename to tests/ui/issues/issue-42796.rs diff --git a/src/test/ui/issues/issue-42796.stderr b/tests/ui/issues/issue-42796.stderr similarity index 100% rename from src/test/ui/issues/issue-42796.stderr rename to tests/ui/issues/issue-42796.stderr diff --git a/src/test/ui/issues/issue-42880.rs b/tests/ui/issues/issue-42880.rs similarity index 100% rename from src/test/ui/issues/issue-42880.rs rename to tests/ui/issues/issue-42880.rs diff --git a/src/test/ui/issues/issue-42880.stderr b/tests/ui/issues/issue-42880.stderr similarity index 100% rename from src/test/ui/issues/issue-42880.stderr rename to tests/ui/issues/issue-42880.stderr diff --git a/src/test/ui/issues/issue-42956.rs b/tests/ui/issues/issue-42956.rs similarity index 100% rename from src/test/ui/issues/issue-42956.rs rename to tests/ui/issues/issue-42956.rs diff --git a/src/test/ui/issues/issue-43057.rs b/tests/ui/issues/issue-43057.rs similarity index 100% rename from src/test/ui/issues/issue-43057.rs rename to tests/ui/issues/issue-43057.rs diff --git a/src/test/ui/issues/issue-43162.rs b/tests/ui/issues/issue-43162.rs similarity index 100% rename from src/test/ui/issues/issue-43162.rs rename to tests/ui/issues/issue-43162.rs diff --git a/src/test/ui/issues/issue-43162.stderr b/tests/ui/issues/issue-43162.stderr similarity index 100% rename from src/test/ui/issues/issue-43162.stderr rename to tests/ui/issues/issue-43162.stderr diff --git a/src/test/ui/issues/issue-43205.rs b/tests/ui/issues/issue-43205.rs similarity index 100% rename from src/test/ui/issues/issue-43205.rs rename to tests/ui/issues/issue-43205.rs diff --git a/src/test/ui/issues/issue-43250.rs b/tests/ui/issues/issue-43250.rs similarity index 100% rename from src/test/ui/issues/issue-43250.rs rename to tests/ui/issues/issue-43250.rs diff --git a/src/test/ui/issues/issue-43250.stderr b/tests/ui/issues/issue-43250.stderr similarity index 100% rename from src/test/ui/issues/issue-43250.stderr rename to tests/ui/issues/issue-43250.stderr diff --git a/src/test/ui/issues/issue-43291.rs b/tests/ui/issues/issue-43291.rs similarity index 100% rename from src/test/ui/issues/issue-43291.rs rename to tests/ui/issues/issue-43291.rs diff --git a/src/test/ui/issues/issue-4333.rs b/tests/ui/issues/issue-4333.rs similarity index 100% rename from src/test/ui/issues/issue-4333.rs rename to tests/ui/issues/issue-4333.rs diff --git a/src/test/ui/issues/issue-4335.rs b/tests/ui/issues/issue-4335.rs similarity index 100% rename from src/test/ui/issues/issue-4335.rs rename to tests/ui/issues/issue-4335.rs diff --git a/src/test/ui/issues/issue-4335.stderr b/tests/ui/issues/issue-4335.stderr similarity index 100% rename from src/test/ui/issues/issue-4335.stderr rename to tests/ui/issues/issue-4335.stderr diff --git a/src/test/ui/issues/issue-43355.rs b/tests/ui/issues/issue-43355.rs similarity index 100% rename from src/test/ui/issues/issue-43355.rs rename to tests/ui/issues/issue-43355.rs diff --git a/src/test/ui/issues/issue-43355.stderr b/tests/ui/issues/issue-43355.stderr similarity index 100% rename from src/test/ui/issues/issue-43355.stderr rename to tests/ui/issues/issue-43355.stderr diff --git a/src/test/ui/issues/issue-43357.rs b/tests/ui/issues/issue-43357.rs similarity index 100% rename from src/test/ui/issues/issue-43357.rs rename to tests/ui/issues/issue-43357.rs diff --git a/src/test/ui/issues/issue-43420-no-over-suggest.rs b/tests/ui/issues/issue-43420-no-over-suggest.rs similarity index 100% rename from src/test/ui/issues/issue-43420-no-over-suggest.rs rename to tests/ui/issues/issue-43420-no-over-suggest.rs diff --git a/src/test/ui/issues/issue-43420-no-over-suggest.stderr b/tests/ui/issues/issue-43420-no-over-suggest.stderr similarity index 100% rename from src/test/ui/issues/issue-43420-no-over-suggest.stderr rename to tests/ui/issues/issue-43420-no-over-suggest.stderr diff --git a/src/test/ui/issues/issue-43424.rs b/tests/ui/issues/issue-43424.rs similarity index 100% rename from src/test/ui/issues/issue-43424.rs rename to tests/ui/issues/issue-43424.rs diff --git a/src/test/ui/issues/issue-43424.stderr b/tests/ui/issues/issue-43424.stderr similarity index 100% rename from src/test/ui/issues/issue-43424.stderr rename to tests/ui/issues/issue-43424.stderr diff --git a/src/test/ui/issues/issue-43431.rs b/tests/ui/issues/issue-43431.rs similarity index 100% rename from src/test/ui/issues/issue-43431.rs rename to tests/ui/issues/issue-43431.rs diff --git a/src/test/ui/issues/issue-43431.stderr b/tests/ui/issues/issue-43431.stderr similarity index 100% rename from src/test/ui/issues/issue-43431.stderr rename to tests/ui/issues/issue-43431.stderr diff --git a/src/test/ui/issues/issue-43483.rs b/tests/ui/issues/issue-43483.rs similarity index 100% rename from src/test/ui/issues/issue-43483.rs rename to tests/ui/issues/issue-43483.rs diff --git a/src/test/ui/issues/issue-43692.rs b/tests/ui/issues/issue-43692.rs similarity index 100% rename from src/test/ui/issues/issue-43692.rs rename to tests/ui/issues/issue-43692.rs diff --git a/src/test/ui/issues/issue-43806.rs b/tests/ui/issues/issue-43806.rs similarity index 100% rename from src/test/ui/issues/issue-43806.rs rename to tests/ui/issues/issue-43806.rs diff --git a/src/test/ui/issues/issue-43853.rs b/tests/ui/issues/issue-43853.rs similarity index 100% rename from src/test/ui/issues/issue-43853.rs rename to tests/ui/issues/issue-43853.rs diff --git a/src/test/ui/issues/issue-4387.rs b/tests/ui/issues/issue-4387.rs similarity index 100% rename from src/test/ui/issues/issue-4387.rs rename to tests/ui/issues/issue-4387.rs diff --git a/src/test/ui/issues/issue-43910.rs b/tests/ui/issues/issue-43910.rs similarity index 100% rename from src/test/ui/issues/issue-43910.rs rename to tests/ui/issues/issue-43910.rs diff --git a/src/test/ui/issues/issue-43923.rs b/tests/ui/issues/issue-43923.rs similarity index 100% rename from src/test/ui/issues/issue-43923.rs rename to tests/ui/issues/issue-43923.rs diff --git a/src/test/ui/issues/issue-43925.rs b/tests/ui/issues/issue-43925.rs similarity index 100% rename from src/test/ui/issues/issue-43925.rs rename to tests/ui/issues/issue-43925.rs diff --git a/src/test/ui/issues/issue-43925.stderr b/tests/ui/issues/issue-43925.stderr similarity index 100% rename from src/test/ui/issues/issue-43925.stderr rename to tests/ui/issues/issue-43925.stderr diff --git a/src/test/ui/issues/issue-43926.rs b/tests/ui/issues/issue-43926.rs similarity index 100% rename from src/test/ui/issues/issue-43926.rs rename to tests/ui/issues/issue-43926.rs diff --git a/src/test/ui/issues/issue-43926.stderr b/tests/ui/issues/issue-43926.stderr similarity index 100% rename from src/test/ui/issues/issue-43926.stderr rename to tests/ui/issues/issue-43926.stderr diff --git a/src/test/ui/issues/issue-43988.rs b/tests/ui/issues/issue-43988.rs similarity index 100% rename from src/test/ui/issues/issue-43988.rs rename to tests/ui/issues/issue-43988.rs diff --git a/src/test/ui/issues/issue-43988.stderr b/tests/ui/issues/issue-43988.stderr similarity index 100% rename from src/test/ui/issues/issue-43988.stderr rename to tests/ui/issues/issue-43988.stderr diff --git a/src/test/ui/issues/issue-44023.rs b/tests/ui/issues/issue-44023.rs similarity index 100% rename from src/test/ui/issues/issue-44023.rs rename to tests/ui/issues/issue-44023.rs diff --git a/src/test/ui/issues/issue-44023.stderr b/tests/ui/issues/issue-44023.stderr similarity index 100% rename from src/test/ui/issues/issue-44023.stderr rename to tests/ui/issues/issue-44023.stderr diff --git a/src/test/ui/issues/issue-44056.rs b/tests/ui/issues/issue-44056.rs similarity index 100% rename from src/test/ui/issues/issue-44056.rs rename to tests/ui/issues/issue-44056.rs diff --git a/src/test/ui/issues/issue-44078.rs b/tests/ui/issues/issue-44078.rs similarity index 100% rename from src/test/ui/issues/issue-44078.rs rename to tests/ui/issues/issue-44078.rs diff --git a/src/test/ui/issues/issue-44078.stderr b/tests/ui/issues/issue-44078.stderr similarity index 100% rename from src/test/ui/issues/issue-44078.stderr rename to tests/ui/issues/issue-44078.stderr diff --git a/src/test/ui/issues/issue-44216-add-instant.rs b/tests/ui/issues/issue-44216-add-instant.rs similarity index 100% rename from src/test/ui/issues/issue-44216-add-instant.rs rename to tests/ui/issues/issue-44216-add-instant.rs diff --git a/src/test/ui/issues/issue-44216-add-system-time.rs b/tests/ui/issues/issue-44216-add-system-time.rs similarity index 100% rename from src/test/ui/issues/issue-44216-add-system-time.rs rename to tests/ui/issues/issue-44216-add-system-time.rs diff --git a/src/test/ui/issues/issue-44216-sub-instant.rs b/tests/ui/issues/issue-44216-sub-instant.rs similarity index 100% rename from src/test/ui/issues/issue-44216-sub-instant.rs rename to tests/ui/issues/issue-44216-sub-instant.rs diff --git a/src/test/ui/issues/issue-44216-sub-system-time.rs b/tests/ui/issues/issue-44216-sub-system-time.rs similarity index 100% rename from src/test/ui/issues/issue-44216-sub-system-time.rs rename to tests/ui/issues/issue-44216-sub-system-time.rs diff --git a/src/test/ui/issues/issue-44239.fixed b/tests/ui/issues/issue-44239.fixed similarity index 100% rename from src/test/ui/issues/issue-44239.fixed rename to tests/ui/issues/issue-44239.fixed diff --git a/src/test/ui/issues/issue-44239.rs b/tests/ui/issues/issue-44239.rs similarity index 100% rename from src/test/ui/issues/issue-44239.rs rename to tests/ui/issues/issue-44239.rs diff --git a/src/test/ui/issues/issue-44239.stderr b/tests/ui/issues/issue-44239.stderr similarity index 100% rename from src/test/ui/issues/issue-44239.stderr rename to tests/ui/issues/issue-44239.stderr diff --git a/src/test/ui/issues/issue-44247.rs b/tests/ui/issues/issue-44247.rs similarity index 100% rename from src/test/ui/issues/issue-44247.rs rename to tests/ui/issues/issue-44247.rs diff --git a/src/test/ui/issues/issue-44255.rs b/tests/ui/issues/issue-44255.rs similarity index 100% rename from src/test/ui/issues/issue-44255.rs rename to tests/ui/issues/issue-44255.rs diff --git a/src/test/ui/issues/issue-44405.rs b/tests/ui/issues/issue-44405.rs similarity index 100% rename from src/test/ui/issues/issue-44405.rs rename to tests/ui/issues/issue-44405.rs diff --git a/src/test/ui/issues/issue-44405.stderr b/tests/ui/issues/issue-44405.stderr similarity index 100% rename from src/test/ui/issues/issue-44405.stderr rename to tests/ui/issues/issue-44405.stderr diff --git a/src/test/ui/issues/issue-4464.rs b/tests/ui/issues/issue-4464.rs similarity index 100% rename from src/test/ui/issues/issue-4464.rs rename to tests/ui/issues/issue-4464.rs diff --git a/src/test/ui/issues/issue-44730.rs b/tests/ui/issues/issue-44730.rs similarity index 100% rename from src/test/ui/issues/issue-44730.rs rename to tests/ui/issues/issue-44730.rs diff --git a/src/test/ui/issues/issue-44851.rs b/tests/ui/issues/issue-44851.rs similarity index 100% rename from src/test/ui/issues/issue-44851.rs rename to tests/ui/issues/issue-44851.rs diff --git a/src/test/ui/issues/issue-4517.rs b/tests/ui/issues/issue-4517.rs similarity index 100% rename from src/test/ui/issues/issue-4517.rs rename to tests/ui/issues/issue-4517.rs diff --git a/src/test/ui/issues/issue-4517.stderr b/tests/ui/issues/issue-4517.stderr similarity index 100% rename from src/test/ui/issues/issue-4517.stderr rename to tests/ui/issues/issue-4517.stderr diff --git a/src/test/ui/issues/issue-4541.rs b/tests/ui/issues/issue-4541.rs similarity index 100% rename from src/test/ui/issues/issue-4541.rs rename to tests/ui/issues/issue-4541.rs diff --git a/src/test/ui/issues/issue-4542.rs b/tests/ui/issues/issue-4542.rs similarity index 100% rename from src/test/ui/issues/issue-4542.rs rename to tests/ui/issues/issue-4542.rs diff --git a/src/test/ui/issues/issue-45425.rs b/tests/ui/issues/issue-45425.rs similarity index 100% rename from src/test/ui/issues/issue-45425.rs rename to tests/ui/issues/issue-45425.rs diff --git a/src/test/ui/issues/issue-4545.rs b/tests/ui/issues/issue-4545.rs similarity index 100% rename from src/test/ui/issues/issue-4545.rs rename to tests/ui/issues/issue-4545.rs diff --git a/src/test/ui/issues/issue-45510.rs b/tests/ui/issues/issue-45510.rs similarity index 100% rename from src/test/ui/issues/issue-45510.rs rename to tests/ui/issues/issue-45510.rs diff --git a/src/test/ui/issues/issue-45562.fixed b/tests/ui/issues/issue-45562.fixed similarity index 100% rename from src/test/ui/issues/issue-45562.fixed rename to tests/ui/issues/issue-45562.fixed diff --git a/src/test/ui/issues/issue-45562.rs b/tests/ui/issues/issue-45562.rs similarity index 100% rename from src/test/ui/issues/issue-45562.rs rename to tests/ui/issues/issue-45562.rs diff --git a/src/test/ui/issues/issue-45562.stderr b/tests/ui/issues/issue-45562.stderr similarity index 100% rename from src/test/ui/issues/issue-45562.stderr rename to tests/ui/issues/issue-45562.stderr diff --git a/src/test/ui/issues/issue-45697-1.rs b/tests/ui/issues/issue-45697-1.rs similarity index 100% rename from src/test/ui/issues/issue-45697-1.rs rename to tests/ui/issues/issue-45697-1.rs diff --git a/src/test/ui/issues/issue-45697-1.stderr b/tests/ui/issues/issue-45697-1.stderr similarity index 100% rename from src/test/ui/issues/issue-45697-1.stderr rename to tests/ui/issues/issue-45697-1.stderr diff --git a/src/test/ui/issues/issue-45697.rs b/tests/ui/issues/issue-45697.rs similarity index 100% rename from src/test/ui/issues/issue-45697.rs rename to tests/ui/issues/issue-45697.rs diff --git a/src/test/ui/issues/issue-45697.stderr b/tests/ui/issues/issue-45697.stderr similarity index 100% rename from src/test/ui/issues/issue-45697.stderr rename to tests/ui/issues/issue-45697.stderr diff --git a/src/test/ui/issues/issue-45730.rs b/tests/ui/issues/issue-45730.rs similarity index 100% rename from src/test/ui/issues/issue-45730.rs rename to tests/ui/issues/issue-45730.rs diff --git a/src/test/ui/issues/issue-45730.stderr b/tests/ui/issues/issue-45730.stderr similarity index 100% rename from src/test/ui/issues/issue-45730.stderr rename to tests/ui/issues/issue-45730.stderr diff --git a/src/test/ui/issues/issue-45731.rs b/tests/ui/issues/issue-45731.rs similarity index 100% rename from src/test/ui/issues/issue-45731.rs rename to tests/ui/issues/issue-45731.rs diff --git a/src/test/ui/issues/issue-45801.rs b/tests/ui/issues/issue-45801.rs similarity index 100% rename from src/test/ui/issues/issue-45801.rs rename to tests/ui/issues/issue-45801.rs diff --git a/src/test/ui/issues/issue-45801.stderr b/tests/ui/issues/issue-45801.stderr similarity index 100% rename from src/test/ui/issues/issue-45801.stderr rename to tests/ui/issues/issue-45801.stderr diff --git a/src/test/ui/issues/issue-45965.rs b/tests/ui/issues/issue-45965.rs similarity index 100% rename from src/test/ui/issues/issue-45965.rs rename to tests/ui/issues/issue-45965.rs diff --git a/src/test/ui/issues/issue-45965.stderr b/tests/ui/issues/issue-45965.stderr similarity index 100% rename from src/test/ui/issues/issue-45965.stderr rename to tests/ui/issues/issue-45965.stderr diff --git a/src/test/ui/issues/issue-46069.rs b/tests/ui/issues/issue-46069.rs similarity index 100% rename from src/test/ui/issues/issue-46069.rs rename to tests/ui/issues/issue-46069.rs diff --git a/src/test/ui/issues/issue-46101.rs b/tests/ui/issues/issue-46101.rs similarity index 100% rename from src/test/ui/issues/issue-46101.rs rename to tests/ui/issues/issue-46101.rs diff --git a/src/test/ui/issues/issue-46101.stderr b/tests/ui/issues/issue-46101.stderr similarity index 100% rename from src/test/ui/issues/issue-46101.stderr rename to tests/ui/issues/issue-46101.stderr diff --git a/src/test/ui/issues/issue-46302.rs b/tests/ui/issues/issue-46302.rs similarity index 100% rename from src/test/ui/issues/issue-46302.rs rename to tests/ui/issues/issue-46302.rs diff --git a/src/test/ui/issues/issue-46302.stderr b/tests/ui/issues/issue-46302.stderr similarity index 100% rename from src/test/ui/issues/issue-46302.stderr rename to tests/ui/issues/issue-46302.stderr diff --git a/src/test/ui/issues/issue-46311.rs b/tests/ui/issues/issue-46311.rs similarity index 100% rename from src/test/ui/issues/issue-46311.rs rename to tests/ui/issues/issue-46311.rs diff --git a/src/test/ui/issues/issue-46311.stderr b/tests/ui/issues/issue-46311.stderr similarity index 100% rename from src/test/ui/issues/issue-46311.stderr rename to tests/ui/issues/issue-46311.stderr diff --git a/src/test/ui/issues/issue-46332.rs b/tests/ui/issues/issue-46332.rs similarity index 100% rename from src/test/ui/issues/issue-46332.rs rename to tests/ui/issues/issue-46332.rs diff --git a/src/test/ui/issues/issue-46332.stderr b/tests/ui/issues/issue-46332.stderr similarity index 100% rename from src/test/ui/issues/issue-46332.stderr rename to tests/ui/issues/issue-46332.stderr diff --git a/src/test/ui/issues/issue-46438.rs b/tests/ui/issues/issue-46438.rs similarity index 100% rename from src/test/ui/issues/issue-46438.rs rename to tests/ui/issues/issue-46438.rs diff --git a/src/test/ui/issues/issue-46438.stderr b/tests/ui/issues/issue-46438.stderr similarity index 100% rename from src/test/ui/issues/issue-46438.stderr rename to tests/ui/issues/issue-46438.stderr diff --git a/src/test/ui/issues/issue-46471-1.rs b/tests/ui/issues/issue-46471-1.rs similarity index 100% rename from src/test/ui/issues/issue-46471-1.rs rename to tests/ui/issues/issue-46471-1.rs diff --git a/src/test/ui/issues/issue-46471-1.stderr b/tests/ui/issues/issue-46471-1.stderr similarity index 100% rename from src/test/ui/issues/issue-46471-1.stderr rename to tests/ui/issues/issue-46471-1.stderr diff --git a/src/test/ui/issues/issue-46472.rs b/tests/ui/issues/issue-46472.rs similarity index 100% rename from src/test/ui/issues/issue-46472.rs rename to tests/ui/issues/issue-46472.rs diff --git a/src/test/ui/issues/issue-46472.stderr b/tests/ui/issues/issue-46472.stderr similarity index 100% rename from src/test/ui/issues/issue-46472.stderr rename to tests/ui/issues/issue-46472.stderr diff --git a/src/test/ui/issues/issue-46604.rs b/tests/ui/issues/issue-46604.rs similarity index 100% rename from src/test/ui/issues/issue-46604.rs rename to tests/ui/issues/issue-46604.rs diff --git a/src/test/ui/issues/issue-46604.stderr b/tests/ui/issues/issue-46604.stderr similarity index 100% rename from src/test/ui/issues/issue-46604.stderr rename to tests/ui/issues/issue-46604.stderr diff --git a/src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.fixed b/tests/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.fixed similarity index 100% rename from src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.fixed rename to tests/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.fixed diff --git a/src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.rs b/tests/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.rs similarity index 100% rename from src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.rs rename to tests/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.rs diff --git a/src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr b/tests/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr similarity index 100% rename from src/test/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr rename to tests/ui/issues/issue-46756-consider-borrowing-cast-or-binexpr.stderr diff --git a/src/test/ui/issues/issue-46771.rs b/tests/ui/issues/issue-46771.rs similarity index 100% rename from src/test/ui/issues/issue-46771.rs rename to tests/ui/issues/issue-46771.rs diff --git a/src/test/ui/issues/issue-46771.stderr b/tests/ui/issues/issue-46771.stderr similarity index 100% rename from src/test/ui/issues/issue-46771.stderr rename to tests/ui/issues/issue-46771.stderr diff --git a/src/test/ui/issues/issue-46855.rs b/tests/ui/issues/issue-46855.rs similarity index 100% rename from src/test/ui/issues/issue-46855.rs rename to tests/ui/issues/issue-46855.rs diff --git a/src/test/ui/issues/issue-46964.rs b/tests/ui/issues/issue-46964.rs similarity index 100% rename from src/test/ui/issues/issue-46964.rs rename to tests/ui/issues/issue-46964.rs diff --git a/src/test/ui/issues/issue-46983.rs b/tests/ui/issues/issue-46983.rs similarity index 100% rename from src/test/ui/issues/issue-46983.rs rename to tests/ui/issues/issue-46983.rs diff --git a/src/test/ui/issues/issue-46983.stderr b/tests/ui/issues/issue-46983.stderr similarity index 100% rename from src/test/ui/issues/issue-46983.stderr rename to tests/ui/issues/issue-46983.stderr diff --git a/src/test/ui/issues/issue-47073-zero-padded-tuple-struct-indices.rs b/tests/ui/issues/issue-47073-zero-padded-tuple-struct-indices.rs similarity index 100% rename from src/test/ui/issues/issue-47073-zero-padded-tuple-struct-indices.rs rename to tests/ui/issues/issue-47073-zero-padded-tuple-struct-indices.rs diff --git a/src/test/ui/issues/issue-47073-zero-padded-tuple-struct-indices.stderr b/tests/ui/issues/issue-47073-zero-padded-tuple-struct-indices.stderr similarity index 100% rename from src/test/ui/issues/issue-47073-zero-padded-tuple-struct-indices.stderr rename to tests/ui/issues/issue-47073-zero-padded-tuple-struct-indices.stderr diff --git a/src/test/ui/issues/issue-47094.rs b/tests/ui/issues/issue-47094.rs similarity index 100% rename from src/test/ui/issues/issue-47094.rs rename to tests/ui/issues/issue-47094.rs diff --git a/src/test/ui/issues/issue-47094.stderr b/tests/ui/issues/issue-47094.stderr similarity index 100% rename from src/test/ui/issues/issue-47094.stderr rename to tests/ui/issues/issue-47094.stderr diff --git a/src/test/ui/issues/issue-47184.rs b/tests/ui/issues/issue-47184.rs similarity index 100% rename from src/test/ui/issues/issue-47184.rs rename to tests/ui/issues/issue-47184.rs diff --git a/src/test/ui/issues/issue-47184.stderr b/tests/ui/issues/issue-47184.stderr similarity index 100% rename from src/test/ui/issues/issue-47184.stderr rename to tests/ui/issues/issue-47184.stderr diff --git a/src/test/ui/issues/issue-47309.rs b/tests/ui/issues/issue-47309.rs similarity index 100% rename from src/test/ui/issues/issue-47309.rs rename to tests/ui/issues/issue-47309.rs diff --git a/src/test/ui/issues/issue-4734.rs b/tests/ui/issues/issue-4734.rs similarity index 100% rename from src/test/ui/issues/issue-4734.rs rename to tests/ui/issues/issue-4734.rs diff --git a/src/test/ui/issues/issue-4735.rs b/tests/ui/issues/issue-4735.rs similarity index 100% rename from src/test/ui/issues/issue-4735.rs rename to tests/ui/issues/issue-4735.rs diff --git a/src/test/ui/issues/issue-4736.rs b/tests/ui/issues/issue-4736.rs similarity index 100% rename from src/test/ui/issues/issue-4736.rs rename to tests/ui/issues/issue-4736.rs diff --git a/src/test/ui/issues/issue-4736.stderr b/tests/ui/issues/issue-4736.stderr similarity index 100% rename from src/test/ui/issues/issue-4736.stderr rename to tests/ui/issues/issue-4736.stderr diff --git a/src/test/ui/issues/issue-47364.rs b/tests/ui/issues/issue-47364.rs similarity index 100% rename from src/test/ui/issues/issue-47364.rs rename to tests/ui/issues/issue-47364.rs diff --git a/src/test/ui/issues/issue-47377.rs b/tests/ui/issues/issue-47377.rs similarity index 100% rename from src/test/ui/issues/issue-47377.rs rename to tests/ui/issues/issue-47377.rs diff --git a/src/test/ui/issues/issue-47377.stderr b/tests/ui/issues/issue-47377.stderr similarity index 100% rename from src/test/ui/issues/issue-47377.stderr rename to tests/ui/issues/issue-47377.stderr diff --git a/src/test/ui/issues/issue-47380.rs b/tests/ui/issues/issue-47380.rs similarity index 100% rename from src/test/ui/issues/issue-47380.rs rename to tests/ui/issues/issue-47380.rs diff --git a/src/test/ui/issues/issue-47380.stderr b/tests/ui/issues/issue-47380.stderr similarity index 100% rename from src/test/ui/issues/issue-47380.stderr rename to tests/ui/issues/issue-47380.stderr diff --git a/src/test/ui/issues/issue-47486.rs b/tests/ui/issues/issue-47486.rs similarity index 100% rename from src/test/ui/issues/issue-47486.rs rename to tests/ui/issues/issue-47486.rs diff --git a/src/test/ui/issues/issue-47486.stderr b/tests/ui/issues/issue-47486.stderr similarity index 100% rename from src/test/ui/issues/issue-47486.stderr rename to tests/ui/issues/issue-47486.stderr diff --git a/src/test/ui/issues/issue-4759-1.rs b/tests/ui/issues/issue-4759-1.rs similarity index 100% rename from src/test/ui/issues/issue-4759-1.rs rename to tests/ui/issues/issue-4759-1.rs diff --git a/src/test/ui/issues/issue-4759.rs b/tests/ui/issues/issue-4759.rs similarity index 100% rename from src/test/ui/issues/issue-4759.rs rename to tests/ui/issues/issue-4759.rs diff --git a/src/test/ui/issues/issue-47638.rs b/tests/ui/issues/issue-47638.rs similarity index 100% rename from src/test/ui/issues/issue-47638.rs rename to tests/ui/issues/issue-47638.rs diff --git a/src/test/ui/issues/issue-47646.rs b/tests/ui/issues/issue-47646.rs similarity index 100% rename from src/test/ui/issues/issue-47646.rs rename to tests/ui/issues/issue-47646.rs diff --git a/src/test/ui/issues/issue-47646.stderr b/tests/ui/issues/issue-47646.stderr similarity index 100% rename from src/test/ui/issues/issue-47646.stderr rename to tests/ui/issues/issue-47646.stderr diff --git a/src/test/ui/issues/issue-47673.rs b/tests/ui/issues/issue-47673.rs similarity index 100% rename from src/test/ui/issues/issue-47673.rs rename to tests/ui/issues/issue-47673.rs diff --git a/src/test/ui/issues/issue-47703-1.rs b/tests/ui/issues/issue-47703-1.rs similarity index 100% rename from src/test/ui/issues/issue-47703-1.rs rename to tests/ui/issues/issue-47703-1.rs diff --git a/src/test/ui/issues/issue-47703-tuple.rs b/tests/ui/issues/issue-47703-tuple.rs similarity index 100% rename from src/test/ui/issues/issue-47703-tuple.rs rename to tests/ui/issues/issue-47703-tuple.rs diff --git a/src/test/ui/issues/issue-47703.rs b/tests/ui/issues/issue-47703.rs similarity index 100% rename from src/test/ui/issues/issue-47703.rs rename to tests/ui/issues/issue-47703.rs diff --git a/src/test/ui/issues/issue-47715.rs b/tests/ui/issues/issue-47715.rs similarity index 100% rename from src/test/ui/issues/issue-47715.rs rename to tests/ui/issues/issue-47715.rs diff --git a/src/test/ui/issues/issue-47715.stderr b/tests/ui/issues/issue-47715.stderr similarity index 100% rename from src/test/ui/issues/issue-47715.stderr rename to tests/ui/issues/issue-47715.stderr diff --git a/src/test/ui/issues/issue-47722.rs b/tests/ui/issues/issue-47722.rs similarity index 100% rename from src/test/ui/issues/issue-47722.rs rename to tests/ui/issues/issue-47722.rs diff --git a/src/test/ui/issues/issue-47725.rs b/tests/ui/issues/issue-47725.rs similarity index 100% rename from src/test/ui/issues/issue-47725.rs rename to tests/ui/issues/issue-47725.rs diff --git a/src/test/ui/issues/issue-47725.stderr b/tests/ui/issues/issue-47725.stderr similarity index 100% rename from src/test/ui/issues/issue-47725.stderr rename to tests/ui/issues/issue-47725.stderr diff --git a/src/test/ui/issues/issue-48006.rs b/tests/ui/issues/issue-48006.rs similarity index 100% rename from src/test/ui/issues/issue-48006.rs rename to tests/ui/issues/issue-48006.rs diff --git a/src/test/ui/issues/issue-48131.mir.stderr b/tests/ui/issues/issue-48131.mir.stderr similarity index 100% rename from src/test/ui/issues/issue-48131.mir.stderr rename to tests/ui/issues/issue-48131.mir.stderr diff --git a/src/test/ui/issues/issue-48131.rs b/tests/ui/issues/issue-48131.rs similarity index 100% rename from src/test/ui/issues/issue-48131.rs rename to tests/ui/issues/issue-48131.rs diff --git a/src/test/ui/issues/issue-48131.thir.stderr b/tests/ui/issues/issue-48131.thir.stderr similarity index 100% rename from src/test/ui/issues/issue-48131.thir.stderr rename to tests/ui/issues/issue-48131.thir.stderr diff --git a/src/test/ui/issues/issue-48132.rs b/tests/ui/issues/issue-48132.rs similarity index 100% rename from src/test/ui/issues/issue-48132.rs rename to tests/ui/issues/issue-48132.rs diff --git a/src/test/ui/issues/issue-48159.rs b/tests/ui/issues/issue-48159.rs similarity index 100% rename from src/test/ui/issues/issue-48159.rs rename to tests/ui/issues/issue-48159.rs diff --git a/src/test/ui/issues/issue-48179.rs b/tests/ui/issues/issue-48179.rs similarity index 100% rename from src/test/ui/issues/issue-48179.rs rename to tests/ui/issues/issue-48179.rs diff --git a/src/test/ui/issues/issue-48276.rs b/tests/ui/issues/issue-48276.rs similarity index 100% rename from src/test/ui/issues/issue-48276.rs rename to tests/ui/issues/issue-48276.rs diff --git a/src/test/ui/issues/issue-48276.stderr b/tests/ui/issues/issue-48276.stderr similarity index 100% rename from src/test/ui/issues/issue-48276.stderr rename to tests/ui/issues/issue-48276.stderr diff --git a/src/test/ui/issues/issue-4830.rs b/tests/ui/issues/issue-4830.rs similarity index 100% rename from src/test/ui/issues/issue-4830.rs rename to tests/ui/issues/issue-4830.rs diff --git a/src/test/ui/issues/issue-48364.rs b/tests/ui/issues/issue-48364.rs similarity index 100% rename from src/test/ui/issues/issue-48364.rs rename to tests/ui/issues/issue-48364.rs diff --git a/src/test/ui/issues/issue-48364.stderr b/tests/ui/issues/issue-48364.stderr similarity index 100% rename from src/test/ui/issues/issue-48364.stderr rename to tests/ui/issues/issue-48364.stderr diff --git a/src/test/ui/issues/issue-48728.rs b/tests/ui/issues/issue-48728.rs similarity index 100% rename from src/test/ui/issues/issue-48728.rs rename to tests/ui/issues/issue-48728.rs diff --git a/src/test/ui/issues/issue-48728.stderr b/tests/ui/issues/issue-48728.stderr similarity index 100% rename from src/test/ui/issues/issue-48728.stderr rename to tests/ui/issues/issue-48728.stderr diff --git a/src/test/ui/issues/issue-4875.rs b/tests/ui/issues/issue-4875.rs similarity index 100% rename from src/test/ui/issues/issue-4875.rs rename to tests/ui/issues/issue-4875.rs diff --git a/src/test/ui/issues/issue-48838.rs b/tests/ui/issues/issue-48838.rs similarity index 100% rename from src/test/ui/issues/issue-48838.rs rename to tests/ui/issues/issue-48838.rs diff --git a/src/test/ui/issues/issue-48838.stderr b/tests/ui/issues/issue-48838.stderr similarity index 100% rename from src/test/ui/issues/issue-48838.stderr rename to tests/ui/issues/issue-48838.stderr diff --git a/src/test/ui/issues/issue-48984.rs b/tests/ui/issues/issue-48984.rs similarity index 100% rename from src/test/ui/issues/issue-48984.rs rename to tests/ui/issues/issue-48984.rs diff --git a/src/test/ui/issues/issue-49298.rs b/tests/ui/issues/issue-49298.rs similarity index 100% rename from src/test/ui/issues/issue-49298.rs rename to tests/ui/issues/issue-49298.rs diff --git a/src/test/ui/issues/issue-4935.rs b/tests/ui/issues/issue-4935.rs similarity index 100% rename from src/test/ui/issues/issue-4935.rs rename to tests/ui/issues/issue-4935.rs diff --git a/src/test/ui/issues/issue-4935.stderr b/tests/ui/issues/issue-4935.stderr similarity index 100% rename from src/test/ui/issues/issue-4935.stderr rename to tests/ui/issues/issue-4935.stderr diff --git a/src/test/ui/issues/issue-49544.rs b/tests/ui/issues/issue-49544.rs similarity index 100% rename from src/test/ui/issues/issue-49544.rs rename to tests/ui/issues/issue-49544.rs diff --git a/src/test/ui/issues/issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs b/tests/ui/issues/issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs similarity index 100% rename from src/test/ui/issues/issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs rename to tests/ui/issues/issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs diff --git a/src/test/ui/issues/issue-49632.rs b/tests/ui/issues/issue-49632.rs similarity index 100% rename from src/test/ui/issues/issue-49632.rs rename to tests/ui/issues/issue-49632.rs diff --git a/src/test/ui/issues/issue-4968.rs b/tests/ui/issues/issue-4968.rs similarity index 100% rename from src/test/ui/issues/issue-4968.rs rename to tests/ui/issues/issue-4968.rs diff --git a/src/test/ui/issues/issue-4968.stderr b/tests/ui/issues/issue-4968.stderr similarity index 100% rename from src/test/ui/issues/issue-4968.stderr rename to tests/ui/issues/issue-4968.stderr diff --git a/src/test/ui/issues/issue-4972.rs b/tests/ui/issues/issue-4972.rs similarity index 100% rename from src/test/ui/issues/issue-4972.rs rename to tests/ui/issues/issue-4972.rs diff --git a/src/test/ui/issues/issue-4972.stderr b/tests/ui/issues/issue-4972.stderr similarity index 100% rename from src/test/ui/issues/issue-4972.stderr rename to tests/ui/issues/issue-4972.stderr diff --git a/src/test/ui/issues/issue-49824.rs b/tests/ui/issues/issue-49824.rs similarity index 100% rename from src/test/ui/issues/issue-49824.rs rename to tests/ui/issues/issue-49824.rs diff --git a/src/test/ui/issues/issue-49824.stderr b/tests/ui/issues/issue-49824.stderr similarity index 100% rename from src/test/ui/issues/issue-49824.stderr rename to tests/ui/issues/issue-49824.stderr diff --git a/src/test/ui/issues/issue-49851/compiler-builtins-error.rs b/tests/ui/issues/issue-49851/compiler-builtins-error.rs similarity index 100% rename from src/test/ui/issues/issue-49851/compiler-builtins-error.rs rename to tests/ui/issues/issue-49851/compiler-builtins-error.rs diff --git a/src/test/ui/issues/issue-49851/compiler-builtins-error.stderr b/tests/ui/issues/issue-49851/compiler-builtins-error.stderr similarity index 100% rename from src/test/ui/issues/issue-49851/compiler-builtins-error.stderr rename to tests/ui/issues/issue-49851/compiler-builtins-error.stderr diff --git a/src/test/ui/issues/issue-49854.rs b/tests/ui/issues/issue-49854.rs similarity index 100% rename from src/test/ui/issues/issue-49854.rs rename to tests/ui/issues/issue-49854.rs diff --git a/src/test/ui/issues/issue-49919.rs b/tests/ui/issues/issue-49919.rs similarity index 100% rename from src/test/ui/issues/issue-49919.rs rename to tests/ui/issues/issue-49919.rs diff --git a/src/test/ui/issues/issue-49919.stderr b/tests/ui/issues/issue-49919.stderr similarity index 100% rename from src/test/ui/issues/issue-49919.stderr rename to tests/ui/issues/issue-49919.stderr diff --git a/src/test/ui/issues/issue-49934-errors.rs b/tests/ui/issues/issue-49934-errors.rs similarity index 100% rename from src/test/ui/issues/issue-49934-errors.rs rename to tests/ui/issues/issue-49934-errors.rs diff --git a/src/test/ui/issues/issue-49934-errors.stderr b/tests/ui/issues/issue-49934-errors.stderr similarity index 100% rename from src/test/ui/issues/issue-49934-errors.stderr rename to tests/ui/issues/issue-49934-errors.stderr diff --git a/src/test/ui/issues/issue-49934.rs b/tests/ui/issues/issue-49934.rs similarity index 100% rename from src/test/ui/issues/issue-49934.rs rename to tests/ui/issues/issue-49934.rs diff --git a/src/test/ui/issues/issue-49934.stderr b/tests/ui/issues/issue-49934.stderr similarity index 100% rename from src/test/ui/issues/issue-49934.stderr rename to tests/ui/issues/issue-49934.stderr diff --git a/src/test/ui/issues/issue-49955.rs b/tests/ui/issues/issue-49955.rs similarity index 100% rename from src/test/ui/issues/issue-49955.rs rename to tests/ui/issues/issue-49955.rs diff --git a/src/test/ui/issues/issue-49973.rs b/tests/ui/issues/issue-49973.rs similarity index 100% rename from src/test/ui/issues/issue-49973.rs rename to tests/ui/issues/issue-49973.rs diff --git a/src/test/ui/issues/issue-5008-borrowed-traitobject-method-call.rs b/tests/ui/issues/issue-5008-borrowed-traitobject-method-call.rs similarity index 100% rename from src/test/ui/issues/issue-5008-borrowed-traitobject-method-call.rs rename to tests/ui/issues/issue-5008-borrowed-traitobject-method-call.rs diff --git a/src/test/ui/issues/issue-50187.rs b/tests/ui/issues/issue-50187.rs similarity index 100% rename from src/test/ui/issues/issue-50187.rs rename to tests/ui/issues/issue-50187.rs diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref.rs b/tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref.rs similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref.rs rename to tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref.rs diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref.stderr b/tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref.stderr similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref.stderr rename to tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref.stderr diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.rs b/tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.rs similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.rs rename to tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.rs diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.stderr b/tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.stderr similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.stderr rename to tests/ui/issues/issue-50264-inner-deref-trait/option-as_deref_mut.stderr diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref.rs b/tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref.rs similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref.rs rename to tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref.rs diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref.stderr b/tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref.stderr similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref.stderr rename to tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref.stderr diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.rs b/tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.rs similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.rs rename to tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.rs diff --git a/src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.stderr b/tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.stderr similarity index 100% rename from src/test/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.stderr rename to tests/ui/issues/issue-50264-inner-deref-trait/result-as_deref_mut.stderr diff --git a/src/test/ui/issues/issue-50403.rs b/tests/ui/issues/issue-50403.rs similarity index 100% rename from src/test/ui/issues/issue-50403.rs rename to tests/ui/issues/issue-50403.rs diff --git a/src/test/ui/issues/issue-50403.stderr b/tests/ui/issues/issue-50403.stderr similarity index 100% rename from src/test/ui/issues/issue-50403.stderr rename to tests/ui/issues/issue-50403.stderr diff --git a/src/test/ui/issues/issue-50411.rs b/tests/ui/issues/issue-50411.rs similarity index 100% rename from src/test/ui/issues/issue-50411.rs rename to tests/ui/issues/issue-50411.rs diff --git a/src/test/ui/issues/issue-50415.rs b/tests/ui/issues/issue-50415.rs similarity index 100% rename from src/test/ui/issues/issue-50415.rs rename to tests/ui/issues/issue-50415.rs diff --git a/src/test/ui/issues/issue-50442.rs b/tests/ui/issues/issue-50442.rs similarity index 100% rename from src/test/ui/issues/issue-50442.rs rename to tests/ui/issues/issue-50442.rs diff --git a/src/test/ui/issues/issue-50471.rs b/tests/ui/issues/issue-50471.rs similarity index 100% rename from src/test/ui/issues/issue-50471.rs rename to tests/ui/issues/issue-50471.rs diff --git a/src/test/ui/issues/issue-50518.rs b/tests/ui/issues/issue-50518.rs similarity index 100% rename from src/test/ui/issues/issue-50518.rs rename to tests/ui/issues/issue-50518.rs diff --git a/src/test/ui/issues/issue-50571.fixed b/tests/ui/issues/issue-50571.fixed similarity index 100% rename from src/test/ui/issues/issue-50571.fixed rename to tests/ui/issues/issue-50571.fixed diff --git a/src/test/ui/issues/issue-50571.rs b/tests/ui/issues/issue-50571.rs similarity index 100% rename from src/test/ui/issues/issue-50571.rs rename to tests/ui/issues/issue-50571.rs diff --git a/src/test/ui/issues/issue-50571.stderr b/tests/ui/issues/issue-50571.stderr similarity index 100% rename from src/test/ui/issues/issue-50571.stderr rename to tests/ui/issues/issue-50571.stderr diff --git a/src/test/ui/issues/issue-50576.rs b/tests/ui/issues/issue-50576.rs similarity index 100% rename from src/test/ui/issues/issue-50576.rs rename to tests/ui/issues/issue-50576.rs diff --git a/src/test/ui/issues/issue-50576.stderr b/tests/ui/issues/issue-50576.stderr similarity index 100% rename from src/test/ui/issues/issue-50576.stderr rename to tests/ui/issues/issue-50576.stderr diff --git a/src/test/ui/issues/issue-50581.rs b/tests/ui/issues/issue-50581.rs similarity index 100% rename from src/test/ui/issues/issue-50581.rs rename to tests/ui/issues/issue-50581.rs diff --git a/src/test/ui/issues/issue-50581.stderr b/tests/ui/issues/issue-50581.stderr similarity index 100% rename from src/test/ui/issues/issue-50581.stderr rename to tests/ui/issues/issue-50581.stderr diff --git a/src/test/ui/issues/issue-50582.rs b/tests/ui/issues/issue-50582.rs similarity index 100% rename from src/test/ui/issues/issue-50582.rs rename to tests/ui/issues/issue-50582.rs diff --git a/src/test/ui/issues/issue-50582.stderr b/tests/ui/issues/issue-50582.stderr similarity index 100% rename from src/test/ui/issues/issue-50582.stderr rename to tests/ui/issues/issue-50582.stderr diff --git a/src/test/ui/issues/issue-50585.rs b/tests/ui/issues/issue-50585.rs similarity index 100% rename from src/test/ui/issues/issue-50585.rs rename to tests/ui/issues/issue-50585.rs diff --git a/src/test/ui/issues/issue-50585.stderr b/tests/ui/issues/issue-50585.stderr similarity index 100% rename from src/test/ui/issues/issue-50585.stderr rename to tests/ui/issues/issue-50585.stderr diff --git a/src/test/ui/issues/issue-50600.rs b/tests/ui/issues/issue-50600.rs similarity index 100% rename from src/test/ui/issues/issue-50600.rs rename to tests/ui/issues/issue-50600.rs diff --git a/src/test/ui/issues/issue-50600.stderr b/tests/ui/issues/issue-50600.stderr similarity index 100% rename from src/test/ui/issues/issue-50600.stderr rename to tests/ui/issues/issue-50600.stderr diff --git a/src/test/ui/issues/issue-50618.rs b/tests/ui/issues/issue-50618.rs similarity index 100% rename from src/test/ui/issues/issue-50618.rs rename to tests/ui/issues/issue-50618.rs diff --git a/src/test/ui/issues/issue-50618.stderr b/tests/ui/issues/issue-50618.stderr similarity index 100% rename from src/test/ui/issues/issue-50618.stderr rename to tests/ui/issues/issue-50618.stderr diff --git a/src/test/ui/issues/issue-5062.rs b/tests/ui/issues/issue-5062.rs similarity index 100% rename from src/test/ui/issues/issue-5062.rs rename to tests/ui/issues/issue-5062.rs diff --git a/src/test/ui/issues/issue-5062.stderr b/tests/ui/issues/issue-5062.stderr similarity index 100% rename from src/test/ui/issues/issue-5062.stderr rename to tests/ui/issues/issue-5062.stderr diff --git a/src/test/ui/issues/issue-5067.rs b/tests/ui/issues/issue-5067.rs similarity index 100% rename from src/test/ui/issues/issue-5067.rs rename to tests/ui/issues/issue-5067.rs diff --git a/src/test/ui/issues/issue-5067.stderr b/tests/ui/issues/issue-5067.stderr similarity index 100% rename from src/test/ui/issues/issue-5067.stderr rename to tests/ui/issues/issue-5067.stderr diff --git a/src/test/ui/issues/issue-50688.rs b/tests/ui/issues/issue-50688.rs similarity index 100% rename from src/test/ui/issues/issue-50688.rs rename to tests/ui/issues/issue-50688.rs diff --git a/src/test/ui/issues/issue-50688.stderr b/tests/ui/issues/issue-50688.stderr similarity index 100% rename from src/test/ui/issues/issue-50688.stderr rename to tests/ui/issues/issue-50688.stderr diff --git a/src/test/ui/issues/issue-50689.rs b/tests/ui/issues/issue-50689.rs similarity index 100% rename from src/test/ui/issues/issue-50689.rs rename to tests/ui/issues/issue-50689.rs diff --git a/src/test/ui/issues/issue-50714-1.rs b/tests/ui/issues/issue-50714-1.rs similarity index 100% rename from src/test/ui/issues/issue-50714-1.rs rename to tests/ui/issues/issue-50714-1.rs diff --git a/src/test/ui/issues/issue-50714-1.stderr b/tests/ui/issues/issue-50714-1.stderr similarity index 100% rename from src/test/ui/issues/issue-50714-1.stderr rename to tests/ui/issues/issue-50714-1.stderr diff --git a/src/test/ui/issues/issue-50714.rs b/tests/ui/issues/issue-50714.rs similarity index 100% rename from src/test/ui/issues/issue-50714.rs rename to tests/ui/issues/issue-50714.rs diff --git a/src/test/ui/issues/issue-50714.stderr b/tests/ui/issues/issue-50714.stderr similarity index 100% rename from src/test/ui/issues/issue-50714.stderr rename to tests/ui/issues/issue-50714.stderr diff --git a/src/test/ui/issues/issue-50761.rs b/tests/ui/issues/issue-50761.rs similarity index 100% rename from src/test/ui/issues/issue-50761.rs rename to tests/ui/issues/issue-50761.rs diff --git a/src/test/ui/issues/issue-50781.rs b/tests/ui/issues/issue-50781.rs similarity index 100% rename from src/test/ui/issues/issue-50781.rs rename to tests/ui/issues/issue-50781.rs diff --git a/src/test/ui/issues/issue-50781.stderr b/tests/ui/issues/issue-50781.stderr similarity index 100% rename from src/test/ui/issues/issue-50781.stderr rename to tests/ui/issues/issue-50781.stderr diff --git a/src/test/ui/issues/issue-50802.rs b/tests/ui/issues/issue-50802.rs similarity index 100% rename from src/test/ui/issues/issue-50802.rs rename to tests/ui/issues/issue-50802.rs diff --git a/src/test/ui/issues/issue-50802.stderr b/tests/ui/issues/issue-50802.stderr similarity index 100% rename from src/test/ui/issues/issue-50802.stderr rename to tests/ui/issues/issue-50802.stderr diff --git a/src/test/ui/issues/issue-50811.rs b/tests/ui/issues/issue-50811.rs similarity index 100% rename from src/test/ui/issues/issue-50811.rs rename to tests/ui/issues/issue-50811.rs diff --git a/src/test/ui/issues/issue-50825-1.rs b/tests/ui/issues/issue-50825-1.rs similarity index 100% rename from src/test/ui/issues/issue-50825-1.rs rename to tests/ui/issues/issue-50825-1.rs diff --git a/src/test/ui/issues/issue-50825.rs b/tests/ui/issues/issue-50825.rs similarity index 100% rename from src/test/ui/issues/issue-50825.rs rename to tests/ui/issues/issue-50825.rs diff --git a/src/test/ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs b/tests/ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs similarity index 100% rename from src/test/ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs rename to tests/ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs diff --git a/src/test/ui/issues/issue-50865-private-impl-trait/main.rs b/tests/ui/issues/issue-50865-private-impl-trait/main.rs similarity index 100% rename from src/test/ui/issues/issue-50865-private-impl-trait/main.rs rename to tests/ui/issues/issue-50865-private-impl-trait/main.rs diff --git a/src/test/ui/issues/issue-5100.rs b/tests/ui/issues/issue-5100.rs similarity index 100% rename from src/test/ui/issues/issue-5100.rs rename to tests/ui/issues/issue-5100.rs diff --git a/src/test/ui/issues/issue-5100.stderr b/tests/ui/issues/issue-5100.stderr similarity index 100% rename from src/test/ui/issues/issue-5100.stderr rename to tests/ui/issues/issue-5100.stderr diff --git a/src/test/ui/issues/issue-51022.rs b/tests/ui/issues/issue-51022.rs similarity index 100% rename from src/test/ui/issues/issue-51022.rs rename to tests/ui/issues/issue-51022.rs diff --git a/src/test/ui/issues/issue-51022.stderr b/tests/ui/issues/issue-51022.stderr similarity index 100% rename from src/test/ui/issues/issue-51022.stderr rename to tests/ui/issues/issue-51022.stderr diff --git a/src/test/ui/issues/issue-51044.rs b/tests/ui/issues/issue-51044.rs similarity index 100% rename from src/test/ui/issues/issue-51044.rs rename to tests/ui/issues/issue-51044.rs diff --git a/src/test/ui/issues/issue-51102.rs b/tests/ui/issues/issue-51102.rs similarity index 100% rename from src/test/ui/issues/issue-51102.rs rename to tests/ui/issues/issue-51102.rs diff --git a/src/test/ui/issues/issue-51102.stderr b/tests/ui/issues/issue-51102.stderr similarity index 100% rename from src/test/ui/issues/issue-51102.stderr rename to tests/ui/issues/issue-51102.stderr diff --git a/src/test/ui/issues/issue-51116.rs b/tests/ui/issues/issue-51116.rs similarity index 100% rename from src/test/ui/issues/issue-51116.rs rename to tests/ui/issues/issue-51116.rs diff --git a/src/test/ui/issues/issue-51116.stderr b/tests/ui/issues/issue-51116.stderr similarity index 100% rename from src/test/ui/issues/issue-51116.stderr rename to tests/ui/issues/issue-51116.stderr diff --git a/src/test/ui/issues/issue-51154.rs b/tests/ui/issues/issue-51154.rs similarity index 100% rename from src/test/ui/issues/issue-51154.rs rename to tests/ui/issues/issue-51154.rs diff --git a/src/test/ui/issues/issue-51154.stderr b/tests/ui/issues/issue-51154.stderr similarity index 100% rename from src/test/ui/issues/issue-51154.stderr rename to tests/ui/issues/issue-51154.stderr diff --git a/src/test/ui/issues/issue-51515.rs b/tests/ui/issues/issue-51515.rs similarity index 100% rename from src/test/ui/issues/issue-51515.rs rename to tests/ui/issues/issue-51515.rs diff --git a/src/test/ui/issues/issue-51515.stderr b/tests/ui/issues/issue-51515.stderr similarity index 100% rename from src/test/ui/issues/issue-51515.stderr rename to tests/ui/issues/issue-51515.stderr diff --git a/src/test/ui/issues/issue-5153.rs b/tests/ui/issues/issue-5153.rs similarity index 100% rename from src/test/ui/issues/issue-5153.rs rename to tests/ui/issues/issue-5153.rs diff --git a/src/test/ui/issues/issue-5153.stderr b/tests/ui/issues/issue-5153.stderr similarity index 100% rename from src/test/ui/issues/issue-5153.stderr rename to tests/ui/issues/issue-5153.stderr diff --git a/src/test/ui/issues/issue-51632-try-desugar-incompatible-types.rs b/tests/ui/issues/issue-51632-try-desugar-incompatible-types.rs similarity index 100% rename from src/test/ui/issues/issue-51632-try-desugar-incompatible-types.rs rename to tests/ui/issues/issue-51632-try-desugar-incompatible-types.rs diff --git a/src/test/ui/issues/issue-51632-try-desugar-incompatible-types.stderr b/tests/ui/issues/issue-51632-try-desugar-incompatible-types.stderr similarity index 100% rename from src/test/ui/issues/issue-51632-try-desugar-incompatible-types.stderr rename to tests/ui/issues/issue-51632-try-desugar-incompatible-types.stderr diff --git a/src/test/ui/issues/issue-51655.rs b/tests/ui/issues/issue-51655.rs similarity index 100% rename from src/test/ui/issues/issue-51655.rs rename to tests/ui/issues/issue-51655.rs diff --git a/src/test/ui/issues/issue-51714.rs b/tests/ui/issues/issue-51714.rs similarity index 100% rename from src/test/ui/issues/issue-51714.rs rename to tests/ui/issues/issue-51714.rs diff --git a/src/test/ui/issues/issue-51714.stderr b/tests/ui/issues/issue-51714.stderr similarity index 100% rename from src/test/ui/issues/issue-51714.stderr rename to tests/ui/issues/issue-51714.stderr diff --git a/src/test/ui/issues/issue-51798.rs b/tests/ui/issues/issue-51798.rs similarity index 100% rename from src/test/ui/issues/issue-51798.rs rename to tests/ui/issues/issue-51798.rs diff --git a/src/test/ui/issues/issue-51874.rs b/tests/ui/issues/issue-51874.rs similarity index 100% rename from src/test/ui/issues/issue-51874.rs rename to tests/ui/issues/issue-51874.rs diff --git a/src/test/ui/issues/issue-51874.stderr b/tests/ui/issues/issue-51874.stderr similarity index 100% rename from src/test/ui/issues/issue-51874.stderr rename to tests/ui/issues/issue-51874.stderr diff --git a/src/test/ui/issues/issue-51907.rs b/tests/ui/issues/issue-51907.rs similarity index 100% rename from src/test/ui/issues/issue-51907.rs rename to tests/ui/issues/issue-51907.rs diff --git a/src/test/ui/issues/issue-5192.rs b/tests/ui/issues/issue-5192.rs similarity index 100% rename from src/test/ui/issues/issue-5192.rs rename to tests/ui/issues/issue-5192.rs diff --git a/src/test/ui/issues/issue-51947.rs b/tests/ui/issues/issue-51947.rs similarity index 100% rename from src/test/ui/issues/issue-51947.rs rename to tests/ui/issues/issue-51947.rs diff --git a/src/test/ui/issues/issue-52049.rs b/tests/ui/issues/issue-52049.rs similarity index 100% rename from src/test/ui/issues/issue-52049.rs rename to tests/ui/issues/issue-52049.rs diff --git a/src/test/ui/issues/issue-52049.stderr b/tests/ui/issues/issue-52049.stderr similarity index 100% rename from src/test/ui/issues/issue-52049.stderr rename to tests/ui/issues/issue-52049.stderr diff --git a/src/test/ui/issues/issue-52126-assign-op-invariance.rs b/tests/ui/issues/issue-52126-assign-op-invariance.rs similarity index 100% rename from src/test/ui/issues/issue-52126-assign-op-invariance.rs rename to tests/ui/issues/issue-52126-assign-op-invariance.rs diff --git a/src/test/ui/issues/issue-52126-assign-op-invariance.stderr b/tests/ui/issues/issue-52126-assign-op-invariance.stderr similarity index 100% rename from src/test/ui/issues/issue-52126-assign-op-invariance.stderr rename to tests/ui/issues/issue-52126-assign-op-invariance.stderr diff --git a/src/test/ui/issues/issue-52140/auxiliary/some_crate.rs b/tests/ui/issues/issue-52140/auxiliary/some_crate.rs similarity index 100% rename from src/test/ui/issues/issue-52140/auxiliary/some_crate.rs rename to tests/ui/issues/issue-52140/auxiliary/some_crate.rs diff --git a/src/test/ui/issues/issue-52140/main.rs b/tests/ui/issues/issue-52140/main.rs similarity index 100% rename from src/test/ui/issues/issue-52140/main.rs rename to tests/ui/issues/issue-52140/main.rs diff --git a/src/test/ui/issues/issue-52141/auxiliary/some_crate.rs b/tests/ui/issues/issue-52141/auxiliary/some_crate.rs similarity index 100% rename from src/test/ui/issues/issue-52141/auxiliary/some_crate.rs rename to tests/ui/issues/issue-52141/auxiliary/some_crate.rs diff --git a/src/test/ui/issues/issue-52141/main.rs b/tests/ui/issues/issue-52141/main.rs similarity index 100% rename from src/test/ui/issues/issue-52141/main.rs rename to tests/ui/issues/issue-52141/main.rs diff --git a/src/test/ui/issues/issue-52262.rs b/tests/ui/issues/issue-52262.rs similarity index 100% rename from src/test/ui/issues/issue-52262.rs rename to tests/ui/issues/issue-52262.rs diff --git a/src/test/ui/issues/issue-52262.stderr b/tests/ui/issues/issue-52262.stderr similarity index 100% rename from src/test/ui/issues/issue-52262.stderr rename to tests/ui/issues/issue-52262.stderr diff --git a/src/test/ui/issues/issue-5239-1.rs b/tests/ui/issues/issue-5239-1.rs similarity index 100% rename from src/test/ui/issues/issue-5239-1.rs rename to tests/ui/issues/issue-5239-1.rs diff --git a/src/test/ui/issues/issue-5239-1.stderr b/tests/ui/issues/issue-5239-1.stderr similarity index 100% rename from src/test/ui/issues/issue-5239-1.stderr rename to tests/ui/issues/issue-5239-1.stderr diff --git a/src/test/ui/issues/issue-5239-2.rs b/tests/ui/issues/issue-5239-2.rs similarity index 100% rename from src/test/ui/issues/issue-5239-2.rs rename to tests/ui/issues/issue-5239-2.rs diff --git a/src/test/ui/issues/issue-52489.rs b/tests/ui/issues/issue-52489.rs similarity index 100% rename from src/test/ui/issues/issue-52489.rs rename to tests/ui/issues/issue-52489.rs diff --git a/src/test/ui/issues/issue-52489.stderr b/tests/ui/issues/issue-52489.stderr similarity index 100% rename from src/test/ui/issues/issue-52489.stderr rename to tests/ui/issues/issue-52489.stderr diff --git a/src/test/ui/issues/issue-52533.rs b/tests/ui/issues/issue-52533.rs similarity index 100% rename from src/test/ui/issues/issue-52533.rs rename to tests/ui/issues/issue-52533.rs diff --git a/src/test/ui/issues/issue-52533.stderr b/tests/ui/issues/issue-52533.stderr similarity index 100% rename from src/test/ui/issues/issue-52533.stderr rename to tests/ui/issues/issue-52533.stderr diff --git a/src/test/ui/issues/issue-52705/auxiliary/png2.rs b/tests/ui/issues/issue-52705/auxiliary/png2.rs similarity index 100% rename from src/test/ui/issues/issue-52705/auxiliary/png2.rs rename to tests/ui/issues/issue-52705/auxiliary/png2.rs diff --git a/src/test/ui/issues/issue-52705/main.rs b/tests/ui/issues/issue-52705/main.rs similarity index 100% rename from src/test/ui/issues/issue-52705/main.rs rename to tests/ui/issues/issue-52705/main.rs diff --git a/src/test/ui/issues/issue-52717.rs b/tests/ui/issues/issue-52717.rs similarity index 100% rename from src/test/ui/issues/issue-52717.rs rename to tests/ui/issues/issue-52717.rs diff --git a/src/test/ui/issues/issue-52717.stderr b/tests/ui/issues/issue-52717.stderr similarity index 100% rename from src/test/ui/issues/issue-52717.stderr rename to tests/ui/issues/issue-52717.stderr diff --git a/src/test/ui/issues/issue-5280.rs b/tests/ui/issues/issue-5280.rs similarity index 100% rename from src/test/ui/issues/issue-5280.rs rename to tests/ui/issues/issue-5280.rs diff --git a/src/test/ui/issues/issue-5315.rs b/tests/ui/issues/issue-5315.rs similarity index 100% rename from src/test/ui/issues/issue-5315.rs rename to tests/ui/issues/issue-5315.rs diff --git a/src/test/ui/issues/issue-5321-immediates-with-bare-self.rs b/tests/ui/issues/issue-5321-immediates-with-bare-self.rs similarity index 100% rename from src/test/ui/issues/issue-5321-immediates-with-bare-self.rs rename to tests/ui/issues/issue-5321-immediates-with-bare-self.rs diff --git a/src/test/ui/issues/issue-53251.rs b/tests/ui/issues/issue-53251.rs similarity index 100% rename from src/test/ui/issues/issue-53251.rs rename to tests/ui/issues/issue-53251.rs diff --git a/src/test/ui/issues/issue-53251.stderr b/tests/ui/issues/issue-53251.stderr similarity index 100% rename from src/test/ui/issues/issue-53251.stderr rename to tests/ui/issues/issue-53251.stderr diff --git a/src/test/ui/issues/issue-53275.rs b/tests/ui/issues/issue-53275.rs similarity index 100% rename from src/test/ui/issues/issue-53275.rs rename to tests/ui/issues/issue-53275.rs diff --git a/src/test/ui/issues/issue-53300.rs b/tests/ui/issues/issue-53300.rs similarity index 100% rename from src/test/ui/issues/issue-53300.rs rename to tests/ui/issues/issue-53300.rs diff --git a/src/test/ui/issues/issue-53300.stderr b/tests/ui/issues/issue-53300.stderr similarity index 100% rename from src/test/ui/issues/issue-53300.stderr rename to tests/ui/issues/issue-53300.stderr diff --git a/src/test/ui/issues/issue-53333.rs b/tests/ui/issues/issue-53333.rs similarity index 100% rename from src/test/ui/issues/issue-53333.rs rename to tests/ui/issues/issue-53333.rs diff --git a/src/test/ui/issues/issue-53348.rs b/tests/ui/issues/issue-53348.rs similarity index 100% rename from src/test/ui/issues/issue-53348.rs rename to tests/ui/issues/issue-53348.rs diff --git a/src/test/ui/issues/issue-53348.stderr b/tests/ui/issues/issue-53348.stderr similarity index 100% rename from src/test/ui/issues/issue-53348.stderr rename to tests/ui/issues/issue-53348.stderr diff --git a/src/test/ui/issues/issue-53419.rs b/tests/ui/issues/issue-53419.rs similarity index 100% rename from src/test/ui/issues/issue-53419.rs rename to tests/ui/issues/issue-53419.rs diff --git a/src/test/ui/issues/issue-53498.rs b/tests/ui/issues/issue-53498.rs similarity index 100% rename from src/test/ui/issues/issue-53498.rs rename to tests/ui/issues/issue-53498.rs diff --git a/src/test/ui/issues/issue-53498.stderr b/tests/ui/issues/issue-53498.stderr similarity index 100% rename from src/test/ui/issues/issue-53498.stderr rename to tests/ui/issues/issue-53498.stderr diff --git a/src/test/ui/issues/issue-53568.rs b/tests/ui/issues/issue-53568.rs similarity index 100% rename from src/test/ui/issues/issue-53568.rs rename to tests/ui/issues/issue-53568.rs diff --git a/src/test/ui/issues/issue-5358-1.rs b/tests/ui/issues/issue-5358-1.rs similarity index 100% rename from src/test/ui/issues/issue-5358-1.rs rename to tests/ui/issues/issue-5358-1.rs diff --git a/src/test/ui/issues/issue-5358-1.stderr b/tests/ui/issues/issue-5358-1.stderr similarity index 100% rename from src/test/ui/issues/issue-5358-1.stderr rename to tests/ui/issues/issue-5358-1.stderr diff --git a/src/test/ui/issues/issue-53712.rs b/tests/ui/issues/issue-53712.rs similarity index 100% rename from src/test/ui/issues/issue-53712.rs rename to tests/ui/issues/issue-53712.rs diff --git a/src/test/ui/issues/issue-53712.stderr b/tests/ui/issues/issue-53712.stderr similarity index 100% rename from src/test/ui/issues/issue-53712.stderr rename to tests/ui/issues/issue-53712.stderr diff --git a/src/test/ui/issues/issue-53728.rs b/tests/ui/issues/issue-53728.rs similarity index 100% rename from src/test/ui/issues/issue-53728.rs rename to tests/ui/issues/issue-53728.rs diff --git a/src/test/ui/issues/issue-53843.rs b/tests/ui/issues/issue-53843.rs similarity index 100% rename from src/test/ui/issues/issue-53843.rs rename to tests/ui/issues/issue-53843.rs diff --git a/src/test/ui/issues/issue-54044.rs b/tests/ui/issues/issue-54044.rs similarity index 100% rename from src/test/ui/issues/issue-54044.rs rename to tests/ui/issues/issue-54044.rs diff --git a/src/test/ui/issues/issue-54044.stderr b/tests/ui/issues/issue-54044.stderr similarity index 100% rename from src/test/ui/issues/issue-54044.stderr rename to tests/ui/issues/issue-54044.stderr diff --git a/src/test/ui/issues/issue-54062.rs b/tests/ui/issues/issue-54062.rs similarity index 100% rename from src/test/ui/issues/issue-54062.rs rename to tests/ui/issues/issue-54062.rs diff --git a/src/test/ui/issues/issue-54062.stderr b/tests/ui/issues/issue-54062.stderr similarity index 100% rename from src/test/ui/issues/issue-54062.stderr rename to tests/ui/issues/issue-54062.stderr diff --git a/src/test/ui/issues/issue-54094.rs b/tests/ui/issues/issue-54094.rs similarity index 100% rename from src/test/ui/issues/issue-54094.rs rename to tests/ui/issues/issue-54094.rs diff --git a/src/test/ui/issues/issue-54302-cases.rs b/tests/ui/issues/issue-54302-cases.rs similarity index 100% rename from src/test/ui/issues/issue-54302-cases.rs rename to tests/ui/issues/issue-54302-cases.rs diff --git a/src/test/ui/issues/issue-54302-cases.stderr b/tests/ui/issues/issue-54302-cases.stderr similarity index 100% rename from src/test/ui/issues/issue-54302-cases.stderr rename to tests/ui/issues/issue-54302-cases.stderr diff --git a/src/test/ui/issues/issue-54302.rs b/tests/ui/issues/issue-54302.rs similarity index 100% rename from src/test/ui/issues/issue-54302.rs rename to tests/ui/issues/issue-54302.rs diff --git a/src/test/ui/issues/issue-54302.stderr b/tests/ui/issues/issue-54302.stderr similarity index 100% rename from src/test/ui/issues/issue-54302.stderr rename to tests/ui/issues/issue-54302.stderr diff --git a/src/test/ui/issues/issue-5439.rs b/tests/ui/issues/issue-5439.rs similarity index 100% rename from src/test/ui/issues/issue-5439.rs rename to tests/ui/issues/issue-5439.rs diff --git a/src/test/ui/issues/issue-5439.stderr b/tests/ui/issues/issue-5439.stderr similarity index 100% rename from src/test/ui/issues/issue-5439.stderr rename to tests/ui/issues/issue-5439.stderr diff --git a/src/test/ui/issues/issue-54410.rs b/tests/ui/issues/issue-54410.rs similarity index 100% rename from src/test/ui/issues/issue-54410.rs rename to tests/ui/issues/issue-54410.rs diff --git a/src/test/ui/issues/issue-54410.stderr b/tests/ui/issues/issue-54410.stderr similarity index 100% rename from src/test/ui/issues/issue-54410.stderr rename to tests/ui/issues/issue-54410.stderr diff --git a/src/test/ui/issues/issue-54462-mutable-noalias-correctness.rs b/tests/ui/issues/issue-54462-mutable-noalias-correctness.rs similarity index 100% rename from src/test/ui/issues/issue-54462-mutable-noalias-correctness.rs rename to tests/ui/issues/issue-54462-mutable-noalias-correctness.rs diff --git a/src/test/ui/issues/issue-54477-reduced-2.rs b/tests/ui/issues/issue-54477-reduced-2.rs similarity index 100% rename from src/test/ui/issues/issue-54477-reduced-2.rs rename to tests/ui/issues/issue-54477-reduced-2.rs diff --git a/src/test/ui/issues/issue-54582.rs b/tests/ui/issues/issue-54582.rs similarity index 100% rename from src/test/ui/issues/issue-54582.rs rename to tests/ui/issues/issue-54582.rs diff --git a/src/test/ui/issues/issue-54696.rs b/tests/ui/issues/issue-54696.rs similarity index 100% rename from src/test/ui/issues/issue-54696.rs rename to tests/ui/issues/issue-54696.rs diff --git a/src/test/ui/issues/issue-5518.rs b/tests/ui/issues/issue-5518.rs similarity index 100% rename from src/test/ui/issues/issue-5518.rs rename to tests/ui/issues/issue-5518.rs diff --git a/src/test/ui/issues/issue-5521.rs b/tests/ui/issues/issue-5521.rs similarity index 100% rename from src/test/ui/issues/issue-5521.rs rename to tests/ui/issues/issue-5521.rs diff --git a/src/test/ui/issues/issue-55376.rs b/tests/ui/issues/issue-55376.rs similarity index 100% rename from src/test/ui/issues/issue-55376.rs rename to tests/ui/issues/issue-55376.rs diff --git a/src/test/ui/issues/issue-55380.rs b/tests/ui/issues/issue-55380.rs similarity index 100% rename from src/test/ui/issues/issue-55380.rs rename to tests/ui/issues/issue-55380.rs diff --git a/src/test/ui/issues/issue-55380.stderr b/tests/ui/issues/issue-55380.stderr similarity index 100% rename from src/test/ui/issues/issue-55380.stderr rename to tests/ui/issues/issue-55380.stderr diff --git a/src/test/ui/issues/issue-5550.rs b/tests/ui/issues/issue-5550.rs similarity index 100% rename from src/test/ui/issues/issue-5550.rs rename to tests/ui/issues/issue-5550.rs diff --git a/src/test/ui/issues/issue-5554.rs b/tests/ui/issues/issue-5554.rs similarity index 100% rename from src/test/ui/issues/issue-5554.rs rename to tests/ui/issues/issue-5554.rs diff --git a/src/test/ui/issues/issue-55587.rs b/tests/ui/issues/issue-55587.rs similarity index 100% rename from src/test/ui/issues/issue-55587.rs rename to tests/ui/issues/issue-55587.rs diff --git a/src/test/ui/issues/issue-55587.stderr b/tests/ui/issues/issue-55587.stderr similarity index 100% rename from src/test/ui/issues/issue-55587.stderr rename to tests/ui/issues/issue-55587.stderr diff --git a/src/test/ui/issues/issue-5572.rs b/tests/ui/issues/issue-5572.rs similarity index 100% rename from src/test/ui/issues/issue-5572.rs rename to tests/ui/issues/issue-5572.rs diff --git a/src/test/ui/issues/issue-55731.rs b/tests/ui/issues/issue-55731.rs similarity index 100% rename from src/test/ui/issues/issue-55731.rs rename to tests/ui/issues/issue-55731.rs diff --git a/src/test/ui/issues/issue-55731.stderr b/tests/ui/issues/issue-55731.stderr similarity index 100% rename from src/test/ui/issues/issue-55731.stderr rename to tests/ui/issues/issue-55731.stderr diff --git a/src/test/ui/issues/issue-56128.rs b/tests/ui/issues/issue-56128.rs similarity index 100% rename from src/test/ui/issues/issue-56128.rs rename to tests/ui/issues/issue-56128.rs diff --git a/src/test/ui/issues/issue-56175.rs b/tests/ui/issues/issue-56175.rs similarity index 100% rename from src/test/ui/issues/issue-56175.rs rename to tests/ui/issues/issue-56175.rs diff --git a/src/test/ui/issues/issue-56175.stderr b/tests/ui/issues/issue-56175.stderr similarity index 100% rename from src/test/ui/issues/issue-56175.stderr rename to tests/ui/issues/issue-56175.stderr diff --git a/src/test/ui/issues/issue-56199.rs b/tests/ui/issues/issue-56199.rs similarity index 100% rename from src/test/ui/issues/issue-56199.rs rename to tests/ui/issues/issue-56199.rs diff --git a/src/test/ui/issues/issue-56199.stderr b/tests/ui/issues/issue-56199.stderr similarity index 100% rename from src/test/ui/issues/issue-56199.stderr rename to tests/ui/issues/issue-56199.stderr diff --git a/src/test/ui/issues/issue-56229.rs b/tests/ui/issues/issue-56229.rs similarity index 100% rename from src/test/ui/issues/issue-56229.rs rename to tests/ui/issues/issue-56229.rs diff --git a/src/test/ui/issues/issue-56237.rs b/tests/ui/issues/issue-56237.rs similarity index 100% rename from src/test/ui/issues/issue-56237.rs rename to tests/ui/issues/issue-56237.rs diff --git a/src/test/ui/issues/issue-5666.rs b/tests/ui/issues/issue-5666.rs similarity index 100% rename from src/test/ui/issues/issue-5666.rs rename to tests/ui/issues/issue-5666.rs diff --git a/src/test/ui/issues/issue-56806.rs b/tests/ui/issues/issue-56806.rs similarity index 100% rename from src/test/ui/issues/issue-56806.rs rename to tests/ui/issues/issue-56806.rs diff --git a/src/test/ui/issues/issue-56806.stderr b/tests/ui/issues/issue-56806.stderr similarity index 100% rename from src/test/ui/issues/issue-56806.stderr rename to tests/ui/issues/issue-56806.stderr diff --git a/src/test/ui/issues/issue-56835.rs b/tests/ui/issues/issue-56835.rs similarity index 100% rename from src/test/ui/issues/issue-56835.rs rename to tests/ui/issues/issue-56835.rs diff --git a/src/test/ui/issues/issue-56835.stderr b/tests/ui/issues/issue-56835.stderr similarity index 100% rename from src/test/ui/issues/issue-56835.stderr rename to tests/ui/issues/issue-56835.stderr diff --git a/src/test/ui/issues/issue-56870.rs b/tests/ui/issues/issue-56870.rs similarity index 100% rename from src/test/ui/issues/issue-56870.rs rename to tests/ui/issues/issue-56870.rs diff --git a/src/test/ui/issues/issue-5688.rs b/tests/ui/issues/issue-5688.rs similarity index 100% rename from src/test/ui/issues/issue-5688.rs rename to tests/ui/issues/issue-5688.rs diff --git a/src/test/ui/issues/issue-56943.rs b/tests/ui/issues/issue-56943.rs similarity index 100% rename from src/test/ui/issues/issue-56943.rs rename to tests/ui/issues/issue-56943.rs diff --git a/src/test/ui/issues/issue-56943.stderr b/tests/ui/issues/issue-56943.stderr similarity index 100% rename from src/test/ui/issues/issue-56943.stderr rename to tests/ui/issues/issue-56943.stderr diff --git a/src/test/ui/issues/issue-5708.rs b/tests/ui/issues/issue-5708.rs similarity index 100% rename from src/test/ui/issues/issue-5708.rs rename to tests/ui/issues/issue-5708.rs diff --git a/src/test/ui/issues/issue-57156.rs b/tests/ui/issues/issue-57156.rs similarity index 100% rename from src/test/ui/issues/issue-57156.rs rename to tests/ui/issues/issue-57156.rs diff --git a/src/test/ui/issues/issue-57162.rs b/tests/ui/issues/issue-57162.rs similarity index 100% rename from src/test/ui/issues/issue-57162.rs rename to tests/ui/issues/issue-57162.rs diff --git a/src/test/ui/issues/issue-5718.rs b/tests/ui/issues/issue-5718.rs similarity index 100% rename from src/test/ui/issues/issue-5718.rs rename to tests/ui/issues/issue-5718.rs diff --git a/src/test/ui/issues/issue-57198-pass.rs b/tests/ui/issues/issue-57198-pass.rs similarity index 100% rename from src/test/ui/issues/issue-57198-pass.rs rename to tests/ui/issues/issue-57198-pass.rs diff --git a/src/test/ui/issues/issue-57271.rs b/tests/ui/issues/issue-57271.rs similarity index 100% rename from src/test/ui/issues/issue-57271.rs rename to tests/ui/issues/issue-57271.rs diff --git a/src/test/ui/issues/issue-57271.stderr b/tests/ui/issues/issue-57271.stderr similarity index 100% rename from src/test/ui/issues/issue-57271.stderr rename to tests/ui/issues/issue-57271.stderr diff --git a/src/test/ui/issues/issue-57362-1.rs b/tests/ui/issues/issue-57362-1.rs similarity index 100% rename from src/test/ui/issues/issue-57362-1.rs rename to tests/ui/issues/issue-57362-1.rs diff --git a/src/test/ui/issues/issue-57362-1.stderr b/tests/ui/issues/issue-57362-1.stderr similarity index 100% rename from src/test/ui/issues/issue-57362-1.stderr rename to tests/ui/issues/issue-57362-1.stderr diff --git a/src/test/ui/issues/issue-57362-2.rs b/tests/ui/issues/issue-57362-2.rs similarity index 100% rename from src/test/ui/issues/issue-57362-2.rs rename to tests/ui/issues/issue-57362-2.rs diff --git a/src/test/ui/issues/issue-57362-2.stderr b/tests/ui/issues/issue-57362-2.stderr similarity index 100% rename from src/test/ui/issues/issue-57362-2.stderr rename to tests/ui/issues/issue-57362-2.stderr diff --git a/src/test/ui/issues/issue-57399-self-return-impl-trait.rs b/tests/ui/issues/issue-57399-self-return-impl-trait.rs similarity index 100% rename from src/test/ui/issues/issue-57399-self-return-impl-trait.rs rename to tests/ui/issues/issue-57399-self-return-impl-trait.rs diff --git a/src/test/ui/issues/issue-5741.rs b/tests/ui/issues/issue-5741.rs similarity index 100% rename from src/test/ui/issues/issue-5741.rs rename to tests/ui/issues/issue-5741.rs diff --git a/src/test/ui/issues/issue-5754.rs b/tests/ui/issues/issue-5754.rs similarity index 100% rename from src/test/ui/issues/issue-5754.rs rename to tests/ui/issues/issue-5754.rs diff --git a/src/test/ui/issues/issue-57741-1.rs b/tests/ui/issues/issue-57741-1.rs similarity index 100% rename from src/test/ui/issues/issue-57741-1.rs rename to tests/ui/issues/issue-57741-1.rs diff --git a/src/test/ui/issues/issue-57741-1.stderr b/tests/ui/issues/issue-57741-1.stderr similarity index 100% rename from src/test/ui/issues/issue-57741-1.stderr rename to tests/ui/issues/issue-57741-1.stderr diff --git a/src/test/ui/issues/issue-57741.fixed b/tests/ui/issues/issue-57741.fixed similarity index 100% rename from src/test/ui/issues/issue-57741.fixed rename to tests/ui/issues/issue-57741.fixed diff --git a/src/test/ui/issues/issue-57741.rs b/tests/ui/issues/issue-57741.rs similarity index 100% rename from src/test/ui/issues/issue-57741.rs rename to tests/ui/issues/issue-57741.rs diff --git a/src/test/ui/issues/issue-57741.stderr b/tests/ui/issues/issue-57741.stderr similarity index 100% rename from src/test/ui/issues/issue-57741.stderr rename to tests/ui/issues/issue-57741.stderr diff --git a/src/test/ui/issues/issue-57781.rs b/tests/ui/issues/issue-57781.rs similarity index 100% rename from src/test/ui/issues/issue-57781.rs rename to tests/ui/issues/issue-57781.rs diff --git a/src/test/ui/issues/issue-57924.rs b/tests/ui/issues/issue-57924.rs similarity index 100% rename from src/test/ui/issues/issue-57924.rs rename to tests/ui/issues/issue-57924.rs diff --git a/src/test/ui/issues/issue-57924.stderr b/tests/ui/issues/issue-57924.stderr similarity index 100% rename from src/test/ui/issues/issue-57924.stderr rename to tests/ui/issues/issue-57924.stderr diff --git a/src/test/ui/issues/issue-58212.rs b/tests/ui/issues/issue-58212.rs similarity index 100% rename from src/test/ui/issues/issue-58212.rs rename to tests/ui/issues/issue-58212.rs diff --git a/src/test/ui/issues/issue-58344.rs b/tests/ui/issues/issue-58344.rs similarity index 100% rename from src/test/ui/issues/issue-58344.rs rename to tests/ui/issues/issue-58344.rs diff --git a/src/test/ui/issues/issue-58375-monomorphize-default-impls.rs b/tests/ui/issues/issue-58375-monomorphize-default-impls.rs similarity index 100% rename from src/test/ui/issues/issue-58375-monomorphize-default-impls.rs rename to tests/ui/issues/issue-58375-monomorphize-default-impls.rs diff --git a/src/test/ui/issues/issue-5844.mir.stderr b/tests/ui/issues/issue-5844.mir.stderr similarity index 100% rename from src/test/ui/issues/issue-5844.mir.stderr rename to tests/ui/issues/issue-5844.mir.stderr diff --git a/src/test/ui/issues/issue-5844.rs b/tests/ui/issues/issue-5844.rs similarity index 100% rename from src/test/ui/issues/issue-5844.rs rename to tests/ui/issues/issue-5844.rs diff --git a/src/test/ui/issues/issue-5844.thir.stderr b/tests/ui/issues/issue-5844.thir.stderr similarity index 100% rename from src/test/ui/issues/issue-5844.thir.stderr rename to tests/ui/issues/issue-5844.thir.stderr diff --git a/src/test/ui/issues/issue-58463.rs b/tests/ui/issues/issue-58463.rs similarity index 100% rename from src/test/ui/issues/issue-58463.rs rename to tests/ui/issues/issue-58463.rs diff --git a/src/test/ui/issues/issue-58712.rs b/tests/ui/issues/issue-58712.rs similarity index 100% rename from src/test/ui/issues/issue-58712.rs rename to tests/ui/issues/issue-58712.rs diff --git a/src/test/ui/issues/issue-58712.stderr b/tests/ui/issues/issue-58712.stderr similarity index 100% rename from src/test/ui/issues/issue-58712.stderr rename to tests/ui/issues/issue-58712.stderr diff --git a/src/test/ui/issues/issue-58734.rs b/tests/ui/issues/issue-58734.rs similarity index 100% rename from src/test/ui/issues/issue-58734.rs rename to tests/ui/issues/issue-58734.rs diff --git a/src/test/ui/issues/issue-58734.stderr b/tests/ui/issues/issue-58734.stderr similarity index 100% rename from src/test/ui/issues/issue-58734.stderr rename to tests/ui/issues/issue-58734.stderr diff --git a/src/test/ui/issues/issue-5883.rs b/tests/ui/issues/issue-5883.rs similarity index 100% rename from src/test/ui/issues/issue-5883.rs rename to tests/ui/issues/issue-5883.rs diff --git a/src/test/ui/issues/issue-5883.stderr b/tests/ui/issues/issue-5883.stderr similarity index 100% rename from src/test/ui/issues/issue-5883.stderr rename to tests/ui/issues/issue-5883.stderr diff --git a/src/test/ui/issues/issue-5884.rs b/tests/ui/issues/issue-5884.rs similarity index 100% rename from src/test/ui/issues/issue-5884.rs rename to tests/ui/issues/issue-5884.rs diff --git a/src/test/ui/issues/issue-58857.rs b/tests/ui/issues/issue-58857.rs similarity index 100% rename from src/test/ui/issues/issue-58857.rs rename to tests/ui/issues/issue-58857.rs diff --git a/src/test/ui/issues/issue-58857.stderr b/tests/ui/issues/issue-58857.stderr similarity index 100% rename from src/test/ui/issues/issue-58857.stderr rename to tests/ui/issues/issue-58857.stderr diff --git a/src/test/ui/issues/issue-5900.rs b/tests/ui/issues/issue-5900.rs similarity index 100% rename from src/test/ui/issues/issue-5900.rs rename to tests/ui/issues/issue-5900.rs diff --git a/src/test/ui/issues/issue-59020.rs b/tests/ui/issues/issue-59020.rs similarity index 100% rename from src/test/ui/issues/issue-59020.rs rename to tests/ui/issues/issue-59020.rs diff --git a/src/test/ui/issues/issue-5917.rs b/tests/ui/issues/issue-5917.rs similarity index 100% rename from src/test/ui/issues/issue-5917.rs rename to tests/ui/issues/issue-5917.rs diff --git a/src/test/ui/issues/issue-59326.rs b/tests/ui/issues/issue-59326.rs similarity index 100% rename from src/test/ui/issues/issue-59326.rs rename to tests/ui/issues/issue-59326.rs diff --git a/src/test/ui/issues/issue-59488.rs b/tests/ui/issues/issue-59488.rs similarity index 100% rename from src/test/ui/issues/issue-59488.rs rename to tests/ui/issues/issue-59488.rs diff --git a/src/test/ui/issues/issue-59488.stderr b/tests/ui/issues/issue-59488.stderr similarity index 100% rename from src/test/ui/issues/issue-59488.stderr rename to tests/ui/issues/issue-59488.stderr diff --git a/src/test/ui/issues/issue-59494.rs b/tests/ui/issues/issue-59494.rs similarity index 100% rename from src/test/ui/issues/issue-59494.rs rename to tests/ui/issues/issue-59494.rs diff --git a/src/test/ui/issues/issue-59494.stderr b/tests/ui/issues/issue-59494.stderr similarity index 100% rename from src/test/ui/issues/issue-59494.stderr rename to tests/ui/issues/issue-59494.stderr diff --git a/src/test/ui/issues/issue-5950.rs b/tests/ui/issues/issue-5950.rs similarity index 100% rename from src/test/ui/issues/issue-5950.rs rename to tests/ui/issues/issue-5950.rs diff --git a/src/test/ui/issues/issue-59756.fixed b/tests/ui/issues/issue-59756.fixed similarity index 100% rename from src/test/ui/issues/issue-59756.fixed rename to tests/ui/issues/issue-59756.fixed diff --git a/src/test/ui/issues/issue-59756.rs b/tests/ui/issues/issue-59756.rs similarity index 100% rename from src/test/ui/issues/issue-59756.rs rename to tests/ui/issues/issue-59756.rs diff --git a/src/test/ui/issues/issue-59756.stderr b/tests/ui/issues/issue-59756.stderr similarity index 100% rename from src/test/ui/issues/issue-59756.stderr rename to tests/ui/issues/issue-59756.stderr diff --git a/src/test/ui/issues/issue-5988.rs b/tests/ui/issues/issue-5988.rs similarity index 100% rename from src/test/ui/issues/issue-5988.rs rename to tests/ui/issues/issue-5988.rs diff --git a/src/test/ui/issues/issue-5997-enum.rs b/tests/ui/issues/issue-5997-enum.rs similarity index 100% rename from src/test/ui/issues/issue-5997-enum.rs rename to tests/ui/issues/issue-5997-enum.rs diff --git a/src/test/ui/issues/issue-5997-enum.stderr b/tests/ui/issues/issue-5997-enum.stderr similarity index 100% rename from src/test/ui/issues/issue-5997-enum.stderr rename to tests/ui/issues/issue-5997-enum.stderr diff --git a/src/test/ui/issues/issue-5997-struct.rs b/tests/ui/issues/issue-5997-struct.rs similarity index 100% rename from src/test/ui/issues/issue-5997-struct.rs rename to tests/ui/issues/issue-5997-struct.rs diff --git a/src/test/ui/issues/issue-5997-struct.stderr b/tests/ui/issues/issue-5997-struct.stderr similarity index 100% rename from src/test/ui/issues/issue-5997-struct.stderr rename to tests/ui/issues/issue-5997-struct.stderr diff --git a/src/test/ui/issues/issue-5997.rs b/tests/ui/issues/issue-5997.rs similarity index 100% rename from src/test/ui/issues/issue-5997.rs rename to tests/ui/issues/issue-5997.rs diff --git a/src/test/ui/issues/issue-60218.rs b/tests/ui/issues/issue-60218.rs similarity index 100% rename from src/test/ui/issues/issue-60218.rs rename to tests/ui/issues/issue-60218.rs diff --git a/src/test/ui/issues/issue-60218.stderr b/tests/ui/issues/issue-60218.stderr similarity index 100% rename from src/test/ui/issues/issue-60218.stderr rename to tests/ui/issues/issue-60218.stderr diff --git a/src/test/ui/issues/issue-60622.rs b/tests/ui/issues/issue-60622.rs similarity index 100% rename from src/test/ui/issues/issue-60622.rs rename to tests/ui/issues/issue-60622.rs diff --git a/src/test/ui/issues/issue-60622.stderr b/tests/ui/issues/issue-60622.stderr similarity index 100% rename from src/test/ui/issues/issue-60622.stderr rename to tests/ui/issues/issue-60622.stderr diff --git a/src/test/ui/issues/issue-60989.rs b/tests/ui/issues/issue-60989.rs similarity index 100% rename from src/test/ui/issues/issue-60989.rs rename to tests/ui/issues/issue-60989.rs diff --git a/src/test/ui/issues/issue-60989.stderr b/tests/ui/issues/issue-60989.stderr similarity index 100% rename from src/test/ui/issues/issue-60989.stderr rename to tests/ui/issues/issue-60989.stderr diff --git a/src/test/ui/issues/issue-61106.rs b/tests/ui/issues/issue-61106.rs similarity index 100% rename from src/test/ui/issues/issue-61106.rs rename to tests/ui/issues/issue-61106.rs diff --git a/src/test/ui/issues/issue-61106.stderr b/tests/ui/issues/issue-61106.stderr similarity index 100% rename from src/test/ui/issues/issue-61106.stderr rename to tests/ui/issues/issue-61106.stderr diff --git a/src/test/ui/issues/issue-61108.rs b/tests/ui/issues/issue-61108.rs similarity index 100% rename from src/test/ui/issues/issue-61108.rs rename to tests/ui/issues/issue-61108.rs diff --git a/src/test/ui/issues/issue-61108.stderr b/tests/ui/issues/issue-61108.stderr similarity index 100% rename from src/test/ui/issues/issue-61108.stderr rename to tests/ui/issues/issue-61108.stderr diff --git a/src/test/ui/issues/issue-6117.rs b/tests/ui/issues/issue-6117.rs similarity index 100% rename from src/test/ui/issues/issue-6117.rs rename to tests/ui/issues/issue-6117.rs diff --git a/src/test/ui/issues/issue-6130.rs b/tests/ui/issues/issue-6130.rs similarity index 100% rename from src/test/ui/issues/issue-6130.rs rename to tests/ui/issues/issue-6130.rs diff --git a/src/test/ui/issues/issue-61475.rs b/tests/ui/issues/issue-61475.rs similarity index 100% rename from src/test/ui/issues/issue-61475.rs rename to tests/ui/issues/issue-61475.rs diff --git a/src/test/ui/issues/issue-6153.rs b/tests/ui/issues/issue-6153.rs similarity index 100% rename from src/test/ui/issues/issue-6153.rs rename to tests/ui/issues/issue-6153.rs diff --git a/src/test/ui/issues/issue-61623.rs b/tests/ui/issues/issue-61623.rs similarity index 100% rename from src/test/ui/issues/issue-61623.rs rename to tests/ui/issues/issue-61623.rs diff --git a/src/test/ui/issues/issue-61623.stderr b/tests/ui/issues/issue-61623.stderr similarity index 100% rename from src/test/ui/issues/issue-61623.stderr rename to tests/ui/issues/issue-61623.stderr diff --git a/src/test/ui/issues/issue-61696.rs b/tests/ui/issues/issue-61696.rs similarity index 100% rename from src/test/ui/issues/issue-61696.rs rename to tests/ui/issues/issue-61696.rs diff --git a/src/test/ui/issues/issue-61894.rs b/tests/ui/issues/issue-61894.rs similarity index 100% rename from src/test/ui/issues/issue-61894.rs rename to tests/ui/issues/issue-61894.rs diff --git a/src/test/ui/issues/issue-62375.rs b/tests/ui/issues/issue-62375.rs similarity index 100% rename from src/test/ui/issues/issue-62375.rs rename to tests/ui/issues/issue-62375.rs diff --git a/src/test/ui/issues/issue-62375.stderr b/tests/ui/issues/issue-62375.stderr similarity index 100% rename from src/test/ui/issues/issue-62375.stderr rename to tests/ui/issues/issue-62375.stderr diff --git a/src/test/ui/issues/issue-62480.rs b/tests/ui/issues/issue-62480.rs similarity index 100% rename from src/test/ui/issues/issue-62480.rs rename to tests/ui/issues/issue-62480.rs diff --git a/src/test/ui/issues/issue-62480.stderr b/tests/ui/issues/issue-62480.stderr similarity index 100% rename from src/test/ui/issues/issue-62480.stderr rename to tests/ui/issues/issue-62480.stderr diff --git a/src/test/ui/issues/issue-6318.rs b/tests/ui/issues/issue-6318.rs similarity index 100% rename from src/test/ui/issues/issue-6318.rs rename to tests/ui/issues/issue-6318.rs diff --git a/src/test/ui/issues/issue-6344-let.rs b/tests/ui/issues/issue-6344-let.rs similarity index 100% rename from src/test/ui/issues/issue-6344-let.rs rename to tests/ui/issues/issue-6344-let.rs diff --git a/src/test/ui/issues/issue-6344-match.rs b/tests/ui/issues/issue-6344-match.rs similarity index 100% rename from src/test/ui/issues/issue-6344-match.rs rename to tests/ui/issues/issue-6344-match.rs diff --git a/src/test/ui/issues/issue-63983.rs b/tests/ui/issues/issue-63983.rs similarity index 100% rename from src/test/ui/issues/issue-63983.rs rename to tests/ui/issues/issue-63983.rs diff --git a/src/test/ui/issues/issue-63983.stderr b/tests/ui/issues/issue-63983.stderr similarity index 100% rename from src/test/ui/issues/issue-63983.stderr rename to tests/ui/issues/issue-63983.stderr diff --git a/src/test/ui/issues/issue-64430.rs b/tests/ui/issues/issue-64430.rs similarity index 100% rename from src/test/ui/issues/issue-64430.rs rename to tests/ui/issues/issue-64430.rs diff --git a/src/test/ui/issues/issue-64430.stderr b/tests/ui/issues/issue-64430.stderr similarity index 100% rename from src/test/ui/issues/issue-64430.stderr rename to tests/ui/issues/issue-64430.stderr diff --git a/src/test/ui/issues/issue-64559.rs b/tests/ui/issues/issue-64559.rs similarity index 100% rename from src/test/ui/issues/issue-64559.rs rename to tests/ui/issues/issue-64559.rs diff --git a/src/test/ui/issues/issue-64559.stderr b/tests/ui/issues/issue-64559.stderr similarity index 100% rename from src/test/ui/issues/issue-64559.stderr rename to tests/ui/issues/issue-64559.stderr diff --git a/src/test/ui/issues/issue-6458-1.rs b/tests/ui/issues/issue-6458-1.rs similarity index 100% rename from src/test/ui/issues/issue-6458-1.rs rename to tests/ui/issues/issue-6458-1.rs diff --git a/src/test/ui/issues/issue-6458-2.rs b/tests/ui/issues/issue-6458-2.rs similarity index 100% rename from src/test/ui/issues/issue-6458-2.rs rename to tests/ui/issues/issue-6458-2.rs diff --git a/src/test/ui/issues/issue-6458-2.stderr b/tests/ui/issues/issue-6458-2.stderr similarity index 100% rename from src/test/ui/issues/issue-6458-2.stderr rename to tests/ui/issues/issue-6458-2.stderr diff --git a/src/test/ui/issues/issue-6458-3.rs b/tests/ui/issues/issue-6458-3.rs similarity index 100% rename from src/test/ui/issues/issue-6458-3.rs rename to tests/ui/issues/issue-6458-3.rs diff --git a/src/test/ui/issues/issue-6458-3.stderr b/tests/ui/issues/issue-6458-3.stderr similarity index 100% rename from src/test/ui/issues/issue-6458-3.stderr rename to tests/ui/issues/issue-6458-3.stderr diff --git a/src/test/ui/issues/issue-6458-4.rs b/tests/ui/issues/issue-6458-4.rs similarity index 100% rename from src/test/ui/issues/issue-6458-4.rs rename to tests/ui/issues/issue-6458-4.rs diff --git a/src/test/ui/issues/issue-6458-4.stderr b/tests/ui/issues/issue-6458-4.stderr similarity index 100% rename from src/test/ui/issues/issue-6458-4.stderr rename to tests/ui/issues/issue-6458-4.stderr diff --git a/src/test/ui/issues/issue-6458.rs b/tests/ui/issues/issue-6458.rs similarity index 100% rename from src/test/ui/issues/issue-6458.rs rename to tests/ui/issues/issue-6458.rs diff --git a/src/test/ui/issues/issue-6458.stderr b/tests/ui/issues/issue-6458.stderr similarity index 100% rename from src/test/ui/issues/issue-6458.stderr rename to tests/ui/issues/issue-6458.stderr diff --git a/src/test/ui/issues/issue-64593.rs b/tests/ui/issues/issue-64593.rs similarity index 100% rename from src/test/ui/issues/issue-64593.rs rename to tests/ui/issues/issue-64593.rs diff --git a/src/test/ui/issues/issue-64792-bad-unicode-ctor.rs b/tests/ui/issues/issue-64792-bad-unicode-ctor.rs similarity index 100% rename from src/test/ui/issues/issue-64792-bad-unicode-ctor.rs rename to tests/ui/issues/issue-64792-bad-unicode-ctor.rs diff --git a/src/test/ui/issues/issue-64792-bad-unicode-ctor.stderr b/tests/ui/issues/issue-64792-bad-unicode-ctor.stderr similarity index 100% rename from src/test/ui/issues/issue-64792-bad-unicode-ctor.stderr rename to tests/ui/issues/issue-64792-bad-unicode-ctor.stderr diff --git a/src/test/ui/issues/issue-65131.rs b/tests/ui/issues/issue-65131.rs similarity index 100% rename from src/test/ui/issues/issue-65131.rs rename to tests/ui/issues/issue-65131.rs diff --git a/src/test/ui/issues/issue-65131.stderr b/tests/ui/issues/issue-65131.stderr similarity index 100% rename from src/test/ui/issues/issue-65131.stderr rename to tests/ui/issues/issue-65131.stderr diff --git a/src/test/ui/issues/issue-65230.rs b/tests/ui/issues/issue-65230.rs similarity index 100% rename from src/test/ui/issues/issue-65230.rs rename to tests/ui/issues/issue-65230.rs diff --git a/src/test/ui/issues/issue-65230.stderr b/tests/ui/issues/issue-65230.stderr similarity index 100% rename from src/test/ui/issues/issue-65230.stderr rename to tests/ui/issues/issue-65230.stderr diff --git a/src/test/ui/issues/issue-65462.rs b/tests/ui/issues/issue-65462.rs similarity index 100% rename from src/test/ui/issues/issue-65462.rs rename to tests/ui/issues/issue-65462.rs diff --git a/src/test/ui/issues/issue-6557.rs b/tests/ui/issues/issue-6557.rs similarity index 100% rename from src/test/ui/issues/issue-6557.rs rename to tests/ui/issues/issue-6557.rs diff --git a/src/test/ui/issues/issue-65634-raw-ident-suggestion.rs b/tests/ui/issues/issue-65634-raw-ident-suggestion.rs similarity index 100% rename from src/test/ui/issues/issue-65634-raw-ident-suggestion.rs rename to tests/ui/issues/issue-65634-raw-ident-suggestion.rs diff --git a/src/test/ui/issues/issue-65634-raw-ident-suggestion.stderr b/tests/ui/issues/issue-65634-raw-ident-suggestion.stderr similarity index 100% rename from src/test/ui/issues/issue-65634-raw-ident-suggestion.stderr rename to tests/ui/issues/issue-65634-raw-ident-suggestion.stderr diff --git a/src/test/ui/issues/issue-6596-2.rs b/tests/ui/issues/issue-6596-2.rs similarity index 100% rename from src/test/ui/issues/issue-6596-2.rs rename to tests/ui/issues/issue-6596-2.rs diff --git a/src/test/ui/issues/issue-6596-2.stderr b/tests/ui/issues/issue-6596-2.stderr similarity index 100% rename from src/test/ui/issues/issue-6596-2.stderr rename to tests/ui/issues/issue-6596-2.stderr diff --git a/src/test/ui/issues/issue-66308.rs b/tests/ui/issues/issue-66308.rs similarity index 100% rename from src/test/ui/issues/issue-66308.rs rename to tests/ui/issues/issue-66308.rs diff --git a/src/test/ui/issues/issue-66353.rs b/tests/ui/issues/issue-66353.rs similarity index 100% rename from src/test/ui/issues/issue-66353.rs rename to tests/ui/issues/issue-66353.rs diff --git a/src/test/ui/issues/issue-66353.stderr b/tests/ui/issues/issue-66353.stderr similarity index 100% rename from src/test/ui/issues/issue-66353.stderr rename to tests/ui/issues/issue-66353.stderr diff --git a/src/test/ui/issues/issue-6642.rs b/tests/ui/issues/issue-6642.rs similarity index 100% rename from src/test/ui/issues/issue-6642.rs rename to tests/ui/issues/issue-6642.rs diff --git a/src/test/ui/issues/issue-6642.stderr b/tests/ui/issues/issue-6642.stderr similarity index 100% rename from src/test/ui/issues/issue-6642.stderr rename to tests/ui/issues/issue-6642.stderr diff --git a/src/test/ui/issues/issue-66667-function-cmp-cycle.rs b/tests/ui/issues/issue-66667-function-cmp-cycle.rs similarity index 100% rename from src/test/ui/issues/issue-66667-function-cmp-cycle.rs rename to tests/ui/issues/issue-66667-function-cmp-cycle.rs diff --git a/src/test/ui/issues/issue-66667-function-cmp-cycle.stderr b/tests/ui/issues/issue-66667-function-cmp-cycle.stderr similarity index 100% rename from src/test/ui/issues/issue-66667-function-cmp-cycle.stderr rename to tests/ui/issues/issue-66667-function-cmp-cycle.stderr diff --git a/src/test/ui/issues/issue-66702-break-outside-loop-val.rs b/tests/ui/issues/issue-66702-break-outside-loop-val.rs similarity index 100% rename from src/test/ui/issues/issue-66702-break-outside-loop-val.rs rename to tests/ui/issues/issue-66702-break-outside-loop-val.rs diff --git a/src/test/ui/issues/issue-66702-break-outside-loop-val.stderr b/tests/ui/issues/issue-66702-break-outside-loop-val.stderr similarity index 100% rename from src/test/ui/issues/issue-66702-break-outside-loop-val.stderr rename to tests/ui/issues/issue-66702-break-outside-loop-val.stderr diff --git a/src/test/ui/issues/issue-66706.rs b/tests/ui/issues/issue-66706.rs similarity index 100% rename from src/test/ui/issues/issue-66706.rs rename to tests/ui/issues/issue-66706.rs diff --git a/src/test/ui/issues/issue-66706.stderr b/tests/ui/issues/issue-66706.stderr similarity index 100% rename from src/test/ui/issues/issue-66706.stderr rename to tests/ui/issues/issue-66706.stderr diff --git a/src/test/ui/issues/issue-66768.rs b/tests/ui/issues/issue-66768.rs similarity index 100% rename from src/test/ui/issues/issue-66768.rs rename to tests/ui/issues/issue-66768.rs diff --git a/src/test/ui/issues/issue-66923-show-error-for-correct-call.rs b/tests/ui/issues/issue-66923-show-error-for-correct-call.rs similarity index 100% rename from src/test/ui/issues/issue-66923-show-error-for-correct-call.rs rename to tests/ui/issues/issue-66923-show-error-for-correct-call.rs diff --git a/src/test/ui/issues/issue-66923-show-error-for-correct-call.stderr b/tests/ui/issues/issue-66923-show-error-for-correct-call.stderr similarity index 100% rename from src/test/ui/issues/issue-66923-show-error-for-correct-call.stderr rename to tests/ui/issues/issue-66923-show-error-for-correct-call.stderr diff --git a/src/test/ui/issues/issue-67039-unsound-pin-partialeq.rs b/tests/ui/issues/issue-67039-unsound-pin-partialeq.rs similarity index 100% rename from src/test/ui/issues/issue-67039-unsound-pin-partialeq.rs rename to tests/ui/issues/issue-67039-unsound-pin-partialeq.rs diff --git a/src/test/ui/issues/issue-67039-unsound-pin-partialeq.stderr b/tests/ui/issues/issue-67039-unsound-pin-partialeq.stderr similarity index 100% rename from src/test/ui/issues/issue-67039-unsound-pin-partialeq.stderr rename to tests/ui/issues/issue-67039-unsound-pin-partialeq.stderr diff --git a/src/test/ui/issues/issue-6738.rs b/tests/ui/issues/issue-6738.rs similarity index 100% rename from src/test/ui/issues/issue-6738.rs rename to tests/ui/issues/issue-6738.rs diff --git a/src/test/ui/issues/issue-6738.stderr b/tests/ui/issues/issue-6738.stderr similarity index 100% rename from src/test/ui/issues/issue-6738.stderr rename to tests/ui/issues/issue-6738.stderr diff --git a/src/test/ui/issues/issue-67535.rs b/tests/ui/issues/issue-67535.rs similarity index 100% rename from src/test/ui/issues/issue-67535.rs rename to tests/ui/issues/issue-67535.rs diff --git a/src/test/ui/issues/issue-67535.stderr b/tests/ui/issues/issue-67535.stderr similarity index 100% rename from src/test/ui/issues/issue-67535.stderr rename to tests/ui/issues/issue-67535.stderr diff --git a/src/test/ui/issues/issue-67552.polonius.stderr b/tests/ui/issues/issue-67552.polonius.stderr similarity index 100% rename from src/test/ui/issues/issue-67552.polonius.stderr rename to tests/ui/issues/issue-67552.polonius.stderr diff --git a/src/test/ui/issues/issue-67552.rs b/tests/ui/issues/issue-67552.rs similarity index 100% rename from src/test/ui/issues/issue-67552.rs rename to tests/ui/issues/issue-67552.rs diff --git a/src/test/ui/issues/issue-67552.stderr b/tests/ui/issues/issue-67552.stderr similarity index 100% rename from src/test/ui/issues/issue-67552.stderr rename to tests/ui/issues/issue-67552.stderr diff --git a/src/test/ui/issues/issue-68010-large-zst-consts.rs b/tests/ui/issues/issue-68010-large-zst-consts.rs similarity index 100% rename from src/test/ui/issues/issue-68010-large-zst-consts.rs rename to tests/ui/issues/issue-68010-large-zst-consts.rs diff --git a/src/test/ui/issues/issue-68696-catch-during-unwind.rs b/tests/ui/issues/issue-68696-catch-during-unwind.rs similarity index 100% rename from src/test/ui/issues/issue-68696-catch-during-unwind.rs rename to tests/ui/issues/issue-68696-catch-during-unwind.rs diff --git a/src/test/ui/issues/issue-6892.rs b/tests/ui/issues/issue-6892.rs similarity index 100% rename from src/test/ui/issues/issue-6892.rs rename to tests/ui/issues/issue-6892.rs diff --git a/src/test/ui/issues/issue-68951.rs b/tests/ui/issues/issue-68951.rs similarity index 100% rename from src/test/ui/issues/issue-68951.rs rename to tests/ui/issues/issue-68951.rs diff --git a/src/test/ui/issues/issue-6898.rs b/tests/ui/issues/issue-6898.rs similarity index 100% rename from src/test/ui/issues/issue-6898.rs rename to tests/ui/issues/issue-6898.rs diff --git a/src/test/ui/issues/issue-69130.rs b/tests/ui/issues/issue-69130.rs similarity index 100% rename from src/test/ui/issues/issue-69130.rs rename to tests/ui/issues/issue-69130.rs diff --git a/src/test/ui/issues/issue-69130.stderr b/tests/ui/issues/issue-69130.stderr similarity index 100% rename from src/test/ui/issues/issue-69130.stderr rename to tests/ui/issues/issue-69130.stderr diff --git a/src/test/ui/issues/issue-6919.rs b/tests/ui/issues/issue-6919.rs similarity index 100% rename from src/test/ui/issues/issue-6919.rs rename to tests/ui/issues/issue-6919.rs diff --git a/src/test/ui/issues/issue-69225-SCEVAddExpr-wrap-flag.rs b/tests/ui/issues/issue-69225-SCEVAddExpr-wrap-flag.rs similarity index 100% rename from src/test/ui/issues/issue-69225-SCEVAddExpr-wrap-flag.rs rename to tests/ui/issues/issue-69225-SCEVAddExpr-wrap-flag.rs diff --git a/src/test/ui/issues/issue-69225-layout-repeated-checked-add.rs b/tests/ui/issues/issue-69225-layout-repeated-checked-add.rs similarity index 100% rename from src/test/ui/issues/issue-69225-layout-repeated-checked-add.rs rename to tests/ui/issues/issue-69225-layout-repeated-checked-add.rs diff --git a/src/test/ui/issues/issue-69306.rs b/tests/ui/issues/issue-69306.rs similarity index 100% rename from src/test/ui/issues/issue-69306.rs rename to tests/ui/issues/issue-69306.rs diff --git a/src/test/ui/issues/issue-69306.stderr b/tests/ui/issues/issue-69306.stderr similarity index 100% rename from src/test/ui/issues/issue-69306.stderr rename to tests/ui/issues/issue-69306.stderr diff --git a/src/test/ui/issues/issue-6936.rs b/tests/ui/issues/issue-6936.rs similarity index 100% rename from src/test/ui/issues/issue-6936.rs rename to tests/ui/issues/issue-6936.rs diff --git a/src/test/ui/issues/issue-6936.stderr b/tests/ui/issues/issue-6936.stderr similarity index 100% rename from src/test/ui/issues/issue-6936.stderr rename to tests/ui/issues/issue-6936.stderr diff --git a/src/test/ui/issues/issue-69396-const-no-type-in-macro.rs b/tests/ui/issues/issue-69396-const-no-type-in-macro.rs similarity index 100% rename from src/test/ui/issues/issue-69396-const-no-type-in-macro.rs rename to tests/ui/issues/issue-69396-const-no-type-in-macro.rs diff --git a/src/test/ui/issues/issue-69396-const-no-type-in-macro.stderr b/tests/ui/issues/issue-69396-const-no-type-in-macro.stderr similarity index 100% rename from src/test/ui/issues/issue-69396-const-no-type-in-macro.stderr rename to tests/ui/issues/issue-69396-const-no-type-in-macro.stderr diff --git a/src/test/ui/issues/issue-69455.rs b/tests/ui/issues/issue-69455.rs similarity index 100% rename from src/test/ui/issues/issue-69455.rs rename to tests/ui/issues/issue-69455.rs diff --git a/src/test/ui/issues/issue-69455.stderr b/tests/ui/issues/issue-69455.stderr similarity index 100% rename from src/test/ui/issues/issue-69455.stderr rename to tests/ui/issues/issue-69455.stderr diff --git a/src/test/ui/issues/issue-69602-type-err-during-codegen-ice.rs b/tests/ui/issues/issue-69602-type-err-during-codegen-ice.rs similarity index 100% rename from src/test/ui/issues/issue-69602-type-err-during-codegen-ice.rs rename to tests/ui/issues/issue-69602-type-err-during-codegen-ice.rs diff --git a/src/test/ui/issues/issue-69602-type-err-during-codegen-ice.stderr b/tests/ui/issues/issue-69602-type-err-during-codegen-ice.stderr similarity index 100% rename from src/test/ui/issues/issue-69602-type-err-during-codegen-ice.stderr rename to tests/ui/issues/issue-69602-type-err-during-codegen-ice.stderr diff --git a/src/test/ui/issues/issue-69683.rs b/tests/ui/issues/issue-69683.rs similarity index 100% rename from src/test/ui/issues/issue-69683.rs rename to tests/ui/issues/issue-69683.rs diff --git a/src/test/ui/issues/issue-69683.stderr b/tests/ui/issues/issue-69683.stderr similarity index 100% rename from src/test/ui/issues/issue-69683.stderr rename to tests/ui/issues/issue-69683.stderr diff --git a/src/test/ui/issues/issue-70093.rs b/tests/ui/issues/issue-70093.rs similarity index 100% rename from src/test/ui/issues/issue-70093.rs rename to tests/ui/issues/issue-70093.rs diff --git a/src/test/ui/issues/issue-7012.rs b/tests/ui/issues/issue-7012.rs similarity index 100% rename from src/test/ui/issues/issue-7012.rs rename to tests/ui/issues/issue-7012.rs diff --git a/src/test/ui/issues/issue-70381.rs b/tests/ui/issues/issue-70381.rs similarity index 100% rename from src/test/ui/issues/issue-70381.rs rename to tests/ui/issues/issue-70381.rs diff --git a/src/test/ui/issues/issue-70381.stderr b/tests/ui/issues/issue-70381.stderr similarity index 100% rename from src/test/ui/issues/issue-70381.stderr rename to tests/ui/issues/issue-70381.stderr diff --git a/src/test/ui/issues/issue-7044.rs b/tests/ui/issues/issue-7044.rs similarity index 100% rename from src/test/ui/issues/issue-7044.rs rename to tests/ui/issues/issue-7044.rs diff --git a/src/test/ui/issues/issue-7044.stderr b/tests/ui/issues/issue-7044.stderr similarity index 100% rename from src/test/ui/issues/issue-7044.stderr rename to tests/ui/issues/issue-7044.stderr diff --git a/src/test/ui/issues/issue-7061.rs b/tests/ui/issues/issue-7061.rs similarity index 100% rename from src/test/ui/issues/issue-7061.rs rename to tests/ui/issues/issue-7061.rs diff --git a/src/test/ui/issues/issue-7061.stderr b/tests/ui/issues/issue-7061.stderr similarity index 100% rename from src/test/ui/issues/issue-7061.stderr rename to tests/ui/issues/issue-7061.stderr diff --git a/src/test/ui/issues/issue-70673.rs b/tests/ui/issues/issue-70673.rs similarity index 100% rename from src/test/ui/issues/issue-70673.rs rename to tests/ui/issues/issue-70673.rs diff --git a/src/test/ui/issues/issue-70724-add_type_neq_err_label-unwrap.rs b/tests/ui/issues/issue-70724-add_type_neq_err_label-unwrap.rs similarity index 100% rename from src/test/ui/issues/issue-70724-add_type_neq_err_label-unwrap.rs rename to tests/ui/issues/issue-70724-add_type_neq_err_label-unwrap.rs diff --git a/src/test/ui/issues/issue-70724-add_type_neq_err_label-unwrap.stderr b/tests/ui/issues/issue-70724-add_type_neq_err_label-unwrap.stderr similarity index 100% rename from src/test/ui/issues/issue-70724-add_type_neq_err_label-unwrap.stderr rename to tests/ui/issues/issue-70724-add_type_neq_err_label-unwrap.stderr diff --git a/src/test/ui/issues/issue-70746.rs b/tests/ui/issues/issue-70746.rs similarity index 100% rename from src/test/ui/issues/issue-70746.rs rename to tests/ui/issues/issue-70746.rs diff --git a/src/test/ui/issues/issue-7092.rs b/tests/ui/issues/issue-7092.rs similarity index 100% rename from src/test/ui/issues/issue-7092.rs rename to tests/ui/issues/issue-7092.rs diff --git a/src/test/ui/issues/issue-7092.stderr b/tests/ui/issues/issue-7092.stderr similarity index 100% rename from src/test/ui/issues/issue-7092.stderr rename to tests/ui/issues/issue-7092.stderr diff --git a/src/test/ui/issues/issue-71406.rs b/tests/ui/issues/issue-71406.rs similarity index 100% rename from src/test/ui/issues/issue-71406.rs rename to tests/ui/issues/issue-71406.rs diff --git a/src/test/ui/issues/issue-71406.stderr b/tests/ui/issues/issue-71406.stderr similarity index 100% rename from src/test/ui/issues/issue-71406.stderr rename to tests/ui/issues/issue-71406.stderr diff --git a/src/test/ui/issues/issue-71584.rs b/tests/ui/issues/issue-71584.rs similarity index 100% rename from src/test/ui/issues/issue-71584.rs rename to tests/ui/issues/issue-71584.rs diff --git a/src/test/ui/issues/issue-71584.stderr b/tests/ui/issues/issue-71584.stderr similarity index 100% rename from src/test/ui/issues/issue-71584.stderr rename to tests/ui/issues/issue-71584.stderr diff --git a/src/test/ui/issues/issue-71676-1.fixed b/tests/ui/issues/issue-71676-1.fixed similarity index 100% rename from src/test/ui/issues/issue-71676-1.fixed rename to tests/ui/issues/issue-71676-1.fixed diff --git a/src/test/ui/issues/issue-71676-1.rs b/tests/ui/issues/issue-71676-1.rs similarity index 100% rename from src/test/ui/issues/issue-71676-1.rs rename to tests/ui/issues/issue-71676-1.rs diff --git a/src/test/ui/issues/issue-71676-1.stderr b/tests/ui/issues/issue-71676-1.stderr similarity index 100% rename from src/test/ui/issues/issue-71676-1.stderr rename to tests/ui/issues/issue-71676-1.stderr diff --git a/src/test/ui/issues/issue-71676-2.rs b/tests/ui/issues/issue-71676-2.rs similarity index 100% rename from src/test/ui/issues/issue-71676-2.rs rename to tests/ui/issues/issue-71676-2.rs diff --git a/src/test/ui/issues/issue-71676-2.stderr b/tests/ui/issues/issue-71676-2.stderr similarity index 100% rename from src/test/ui/issues/issue-71676-2.stderr rename to tests/ui/issues/issue-71676-2.stderr diff --git a/src/test/ui/issues/issue-7178.rs b/tests/ui/issues/issue-7178.rs similarity index 100% rename from src/test/ui/issues/issue-7178.rs rename to tests/ui/issues/issue-7178.rs diff --git a/src/test/ui/issues/issue-72002.rs b/tests/ui/issues/issue-72002.rs similarity index 100% rename from src/test/ui/issues/issue-72002.rs rename to tests/ui/issues/issue-72002.rs diff --git a/src/test/ui/issues/issue-72076.rs b/tests/ui/issues/issue-72076.rs similarity index 100% rename from src/test/ui/issues/issue-72076.rs rename to tests/ui/issues/issue-72076.rs diff --git a/src/test/ui/issues/issue-72076.stderr b/tests/ui/issues/issue-72076.stderr similarity index 100% rename from src/test/ui/issues/issue-72076.stderr rename to tests/ui/issues/issue-72076.stderr diff --git a/src/test/ui/issues/issue-72278.rs b/tests/ui/issues/issue-72278.rs similarity index 100% rename from src/test/ui/issues/issue-72278.rs rename to tests/ui/issues/issue-72278.rs diff --git a/src/test/ui/issues/issue-72278.stderr b/tests/ui/issues/issue-72278.stderr similarity index 100% rename from src/test/ui/issues/issue-72278.stderr rename to tests/ui/issues/issue-72278.stderr diff --git a/src/test/ui/issues/issue-7246.rs b/tests/ui/issues/issue-7246.rs similarity index 100% rename from src/test/ui/issues/issue-7246.rs rename to tests/ui/issues/issue-7246.rs diff --git a/src/test/ui/issues/issue-7246.stderr b/tests/ui/issues/issue-7246.stderr similarity index 100% rename from src/test/ui/issues/issue-7246.stderr rename to tests/ui/issues/issue-7246.stderr diff --git a/src/test/ui/issues/issue-7268.rs b/tests/ui/issues/issue-7268.rs similarity index 100% rename from src/test/ui/issues/issue-7268.rs rename to tests/ui/issues/issue-7268.rs diff --git a/src/test/ui/issues/issue-72839-error-overflow.rs b/tests/ui/issues/issue-72839-error-overflow.rs similarity index 100% rename from src/test/ui/issues/issue-72839-error-overflow.rs rename to tests/ui/issues/issue-72839-error-overflow.rs diff --git a/src/test/ui/issues/issue-72839-error-overflow.stderr b/tests/ui/issues/issue-72839-error-overflow.stderr similarity index 100% rename from src/test/ui/issues/issue-72839-error-overflow.stderr rename to tests/ui/issues/issue-72839-error-overflow.stderr diff --git a/src/test/ui/issues/issue-72933-match-stack-overflow.rs b/tests/ui/issues/issue-72933-match-stack-overflow.rs similarity index 100% rename from src/test/ui/issues/issue-72933-match-stack-overflow.rs rename to tests/ui/issues/issue-72933-match-stack-overflow.rs diff --git a/src/test/ui/issues/issue-73112.rs b/tests/ui/issues/issue-73112.rs similarity index 100% rename from src/test/ui/issues/issue-73112.rs rename to tests/ui/issues/issue-73112.rs diff --git a/src/test/ui/issues/issue-73112.stderr b/tests/ui/issues/issue-73112.stderr similarity index 100% rename from src/test/ui/issues/issue-73112.stderr rename to tests/ui/issues/issue-73112.stderr diff --git a/src/test/ui/issues/issue-73229.rs b/tests/ui/issues/issue-73229.rs similarity index 100% rename from src/test/ui/issues/issue-73229.rs rename to tests/ui/issues/issue-73229.rs diff --git a/src/test/ui/issues/issue-7344.rs b/tests/ui/issues/issue-7344.rs similarity index 100% rename from src/test/ui/issues/issue-7344.rs rename to tests/ui/issues/issue-7344.rs diff --git a/src/test/ui/issues/issue-7364.rs b/tests/ui/issues/issue-7364.rs similarity index 100% rename from src/test/ui/issues/issue-7364.rs rename to tests/ui/issues/issue-7364.rs diff --git a/src/test/ui/issues/issue-7364.stderr b/tests/ui/issues/issue-7364.stderr similarity index 100% rename from src/test/ui/issues/issue-7364.stderr rename to tests/ui/issues/issue-7364.stderr diff --git a/src/test/ui/issues/issue-74082.rs b/tests/ui/issues/issue-74082.rs similarity index 100% rename from src/test/ui/issues/issue-74082.rs rename to tests/ui/issues/issue-74082.rs diff --git a/src/test/ui/issues/issue-74082.stderr b/tests/ui/issues/issue-74082.stderr similarity index 100% rename from src/test/ui/issues/issue-74082.stderr rename to tests/ui/issues/issue-74082.stderr diff --git a/src/test/ui/issues/issue-74236/auxiliary/dep.rs b/tests/ui/issues/issue-74236/auxiliary/dep.rs similarity index 100% rename from src/test/ui/issues/issue-74236/auxiliary/dep.rs rename to tests/ui/issues/issue-74236/auxiliary/dep.rs diff --git a/src/test/ui/issues/issue-74236/main.rs b/tests/ui/issues/issue-74236/main.rs similarity index 100% rename from src/test/ui/issues/issue-74236/main.rs rename to tests/ui/issues/issue-74236/main.rs diff --git a/src/test/ui/issues/issue-74236/main.stderr b/tests/ui/issues/issue-74236/main.stderr similarity index 100% rename from src/test/ui/issues/issue-74236/main.stderr rename to tests/ui/issues/issue-74236/main.stderr diff --git a/src/test/ui/issues/issue-74564-if-expr-stack-overflow.rs b/tests/ui/issues/issue-74564-if-expr-stack-overflow.rs similarity index 100% rename from src/test/ui/issues/issue-74564-if-expr-stack-overflow.rs rename to tests/ui/issues/issue-74564-if-expr-stack-overflow.rs diff --git a/src/test/ui/issues/issue-7519-match-unit-in-arg.rs b/tests/ui/issues/issue-7519-match-unit-in-arg.rs similarity index 100% rename from src/test/ui/issues/issue-7519-match-unit-in-arg.rs rename to tests/ui/issues/issue-7519-match-unit-in-arg.rs diff --git a/src/test/ui/issues/issue-75283.rs b/tests/ui/issues/issue-75283.rs similarity index 100% rename from src/test/ui/issues/issue-75283.rs rename to tests/ui/issues/issue-75283.rs diff --git a/src/test/ui/issues/issue-75283.stderr b/tests/ui/issues/issue-75283.stderr similarity index 100% rename from src/test/ui/issues/issue-75283.stderr rename to tests/ui/issues/issue-75283.stderr diff --git a/src/test/ui/issues/issue-75307.rs b/tests/ui/issues/issue-75307.rs similarity index 100% rename from src/test/ui/issues/issue-75307.rs rename to tests/ui/issues/issue-75307.rs diff --git a/src/test/ui/issues/issue-75307.stderr b/tests/ui/issues/issue-75307.stderr similarity index 100% rename from src/test/ui/issues/issue-75307.stderr rename to tests/ui/issues/issue-75307.stderr diff --git a/src/test/ui/issues/issue-7563.rs b/tests/ui/issues/issue-7563.rs similarity index 100% rename from src/test/ui/issues/issue-7563.rs rename to tests/ui/issues/issue-7563.rs diff --git a/src/test/ui/issues/issue-75704.rs b/tests/ui/issues/issue-75704.rs similarity index 100% rename from src/test/ui/issues/issue-75704.rs rename to tests/ui/issues/issue-75704.rs diff --git a/src/test/ui/issues/issue-7575.rs b/tests/ui/issues/issue-7575.rs similarity index 100% rename from src/test/ui/issues/issue-7575.rs rename to tests/ui/issues/issue-7575.rs diff --git a/src/test/ui/issues/issue-75777.rs b/tests/ui/issues/issue-75777.rs similarity index 100% rename from src/test/ui/issues/issue-75777.rs rename to tests/ui/issues/issue-75777.rs diff --git a/src/test/ui/issues/issue-75777.stderr b/tests/ui/issues/issue-75777.stderr similarity index 100% rename from src/test/ui/issues/issue-75777.stderr rename to tests/ui/issues/issue-75777.stderr diff --git a/src/test/ui/issues/issue-76042.rs b/tests/ui/issues/issue-76042.rs similarity index 100% rename from src/test/ui/issues/issue-76042.rs rename to tests/ui/issues/issue-76042.rs diff --git a/src/test/ui/issues/issue-7607-1.rs b/tests/ui/issues/issue-7607-1.rs similarity index 100% rename from src/test/ui/issues/issue-7607-1.rs rename to tests/ui/issues/issue-7607-1.rs diff --git a/src/test/ui/issues/issue-7607-1.stderr b/tests/ui/issues/issue-7607-1.stderr similarity index 100% rename from src/test/ui/issues/issue-7607-1.stderr rename to tests/ui/issues/issue-7607-1.stderr diff --git a/src/test/ui/issues/issue-7607-2.rs b/tests/ui/issues/issue-7607-2.rs similarity index 100% rename from src/test/ui/issues/issue-7607-2.rs rename to tests/ui/issues/issue-7607-2.rs diff --git a/src/test/ui/issues/issue-76077-1.fixed b/tests/ui/issues/issue-76077-1.fixed similarity index 100% rename from src/test/ui/issues/issue-76077-1.fixed rename to tests/ui/issues/issue-76077-1.fixed diff --git a/src/test/ui/issues/issue-76077-1.rs b/tests/ui/issues/issue-76077-1.rs similarity index 100% rename from src/test/ui/issues/issue-76077-1.rs rename to tests/ui/issues/issue-76077-1.rs diff --git a/src/test/ui/issues/issue-76077-1.stderr b/tests/ui/issues/issue-76077-1.stderr similarity index 100% rename from src/test/ui/issues/issue-76077-1.stderr rename to tests/ui/issues/issue-76077-1.stderr diff --git a/src/test/ui/issues/issue-76077.rs b/tests/ui/issues/issue-76077.rs similarity index 100% rename from src/test/ui/issues/issue-76077.rs rename to tests/ui/issues/issue-76077.rs diff --git a/src/test/ui/issues/issue-76077.stderr b/tests/ui/issues/issue-76077.stderr similarity index 100% rename from src/test/ui/issues/issue-76077.stderr rename to tests/ui/issues/issue-76077.stderr diff --git a/src/test/ui/issues/issue-76191.rs b/tests/ui/issues/issue-76191.rs similarity index 100% rename from src/test/ui/issues/issue-76191.rs rename to tests/ui/issues/issue-76191.rs diff --git a/src/test/ui/issues/issue-76191.stderr b/tests/ui/issues/issue-76191.stderr similarity index 100% rename from src/test/ui/issues/issue-76191.stderr rename to tests/ui/issues/issue-76191.stderr diff --git a/src/test/ui/issues/issue-7660.rs b/tests/ui/issues/issue-7660.rs similarity index 100% rename from src/test/ui/issues/issue-7660.rs rename to tests/ui/issues/issue-7660.rs diff --git a/src/test/ui/issues/issue-7663.rs b/tests/ui/issues/issue-7663.rs similarity index 100% rename from src/test/ui/issues/issue-7663.rs rename to tests/ui/issues/issue-7663.rs diff --git a/src/test/ui/issues/issue-7673-cast-generically-implemented-trait.rs b/tests/ui/issues/issue-7673-cast-generically-implemented-trait.rs similarity index 100% rename from src/test/ui/issues/issue-7673-cast-generically-implemented-trait.rs rename to tests/ui/issues/issue-7673-cast-generically-implemented-trait.rs diff --git a/src/test/ui/issues/issue-77218/issue-77218-2.fixed b/tests/ui/issues/issue-77218/issue-77218-2.fixed similarity index 100% rename from src/test/ui/issues/issue-77218/issue-77218-2.fixed rename to tests/ui/issues/issue-77218/issue-77218-2.fixed diff --git a/src/test/ui/issues/issue-77218/issue-77218-2.rs b/tests/ui/issues/issue-77218/issue-77218-2.rs similarity index 100% rename from src/test/ui/issues/issue-77218/issue-77218-2.rs rename to tests/ui/issues/issue-77218/issue-77218-2.rs diff --git a/src/test/ui/issues/issue-77218/issue-77218-2.stderr b/tests/ui/issues/issue-77218/issue-77218-2.stderr similarity index 100% rename from src/test/ui/issues/issue-77218/issue-77218-2.stderr rename to tests/ui/issues/issue-77218/issue-77218-2.stderr diff --git a/src/test/ui/issues/issue-77218/issue-77218.fixed b/tests/ui/issues/issue-77218/issue-77218.fixed similarity index 100% rename from src/test/ui/issues/issue-77218/issue-77218.fixed rename to tests/ui/issues/issue-77218/issue-77218.fixed diff --git a/src/test/ui/issues/issue-77218/issue-77218.rs b/tests/ui/issues/issue-77218/issue-77218.rs similarity index 100% rename from src/test/ui/issues/issue-77218/issue-77218.rs rename to tests/ui/issues/issue-77218/issue-77218.rs diff --git a/src/test/ui/issues/issue-77218/issue-77218.stderr b/tests/ui/issues/issue-77218/issue-77218.stderr similarity index 100% rename from src/test/ui/issues/issue-77218/issue-77218.stderr rename to tests/ui/issues/issue-77218/issue-77218.stderr diff --git a/src/test/ui/issues/issue-7784.rs b/tests/ui/issues/issue-7784.rs similarity index 100% rename from src/test/ui/issues/issue-7784.rs rename to tests/ui/issues/issue-7784.rs diff --git a/src/test/ui/issues/issue-77919.rs b/tests/ui/issues/issue-77919.rs similarity index 100% rename from src/test/ui/issues/issue-77919.rs rename to tests/ui/issues/issue-77919.rs diff --git a/src/test/ui/issues/issue-77919.stderr b/tests/ui/issues/issue-77919.stderr similarity index 100% rename from src/test/ui/issues/issue-77919.stderr rename to tests/ui/issues/issue-77919.stderr diff --git a/src/test/ui/issues/issue-78115.rs b/tests/ui/issues/issue-78115.rs similarity index 100% rename from src/test/ui/issues/issue-78115.rs rename to tests/ui/issues/issue-78115.rs diff --git a/src/test/ui/issues/issue-7813.rs b/tests/ui/issues/issue-7813.rs similarity index 100% rename from src/test/ui/issues/issue-7813.rs rename to tests/ui/issues/issue-7813.rs diff --git a/src/test/ui/issues/issue-7813.stderr b/tests/ui/issues/issue-7813.stderr similarity index 100% rename from src/test/ui/issues/issue-7813.stderr rename to tests/ui/issues/issue-7813.stderr diff --git a/src/test/ui/issues/issue-78192.rs b/tests/ui/issues/issue-78192.rs similarity index 100% rename from src/test/ui/issues/issue-78192.rs rename to tests/ui/issues/issue-78192.rs diff --git a/src/test/ui/issues/issue-78622.rs b/tests/ui/issues/issue-78622.rs similarity index 100% rename from src/test/ui/issues/issue-78622.rs rename to tests/ui/issues/issue-78622.rs diff --git a/src/test/ui/issues/issue-78622.stderr b/tests/ui/issues/issue-78622.stderr similarity index 100% rename from src/test/ui/issues/issue-78622.stderr rename to tests/ui/issues/issue-78622.stderr diff --git a/src/test/ui/issues/issue-7867.rs b/tests/ui/issues/issue-7867.rs similarity index 100% rename from src/test/ui/issues/issue-7867.rs rename to tests/ui/issues/issue-7867.rs diff --git a/src/test/ui/issues/issue-7867.stderr b/tests/ui/issues/issue-7867.stderr similarity index 100% rename from src/test/ui/issues/issue-7867.stderr rename to tests/ui/issues/issue-7867.stderr diff --git a/src/test/ui/issues/issue-78957.rs b/tests/ui/issues/issue-78957.rs similarity index 100% rename from src/test/ui/issues/issue-78957.rs rename to tests/ui/issues/issue-78957.rs diff --git a/src/test/ui/issues/issue-78957.stderr b/tests/ui/issues/issue-78957.stderr similarity index 100% rename from src/test/ui/issues/issue-78957.stderr rename to tests/ui/issues/issue-78957.stderr diff --git a/src/test/ui/issues/issue-7899.rs b/tests/ui/issues/issue-7899.rs similarity index 100% rename from src/test/ui/issues/issue-7899.rs rename to tests/ui/issues/issue-7899.rs diff --git a/src/test/ui/issues/issue-7911.rs b/tests/ui/issues/issue-7911.rs similarity index 100% rename from src/test/ui/issues/issue-7911.rs rename to tests/ui/issues/issue-7911.rs diff --git a/src/test/ui/issues/issue-7950.rs b/tests/ui/issues/issue-7950.rs similarity index 100% rename from src/test/ui/issues/issue-7950.rs rename to tests/ui/issues/issue-7950.rs diff --git a/src/test/ui/issues/issue-7950.stderr b/tests/ui/issues/issue-7950.stderr similarity index 100% rename from src/test/ui/issues/issue-7950.stderr rename to tests/ui/issues/issue-7950.stderr diff --git a/src/test/ui/issues/issue-7970a.rs b/tests/ui/issues/issue-7970a.rs similarity index 100% rename from src/test/ui/issues/issue-7970a.rs rename to tests/ui/issues/issue-7970a.rs diff --git a/src/test/ui/issues/issue-7970a.stderr b/tests/ui/issues/issue-7970a.stderr similarity index 100% rename from src/test/ui/issues/issue-7970a.stderr rename to tests/ui/issues/issue-7970a.stderr diff --git a/src/test/ui/issues/issue-8044.rs b/tests/ui/issues/issue-8044.rs similarity index 100% rename from src/test/ui/issues/issue-8044.rs rename to tests/ui/issues/issue-8044.rs diff --git a/src/test/ui/issues/issue-80607.rs b/tests/ui/issues/issue-80607.rs similarity index 100% rename from src/test/ui/issues/issue-80607.rs rename to tests/ui/issues/issue-80607.rs diff --git a/src/test/ui/issues/issue-80607.stderr b/tests/ui/issues/issue-80607.stderr similarity index 100% rename from src/test/ui/issues/issue-80607.stderr rename to tests/ui/issues/issue-80607.stderr diff --git a/src/test/ui/issues/issue-81584.fixed b/tests/ui/issues/issue-81584.fixed similarity index 100% rename from src/test/ui/issues/issue-81584.fixed rename to tests/ui/issues/issue-81584.fixed diff --git a/src/test/ui/issues/issue-81584.rs b/tests/ui/issues/issue-81584.rs similarity index 100% rename from src/test/ui/issues/issue-81584.rs rename to tests/ui/issues/issue-81584.rs diff --git a/src/test/ui/issues/issue-81584.stderr b/tests/ui/issues/issue-81584.stderr similarity index 100% rename from src/test/ui/issues/issue-81584.stderr rename to tests/ui/issues/issue-81584.stderr diff --git a/src/test/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs b/tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs similarity index 100% rename from src/test/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs rename to tests/ui/issues/issue-8171-default-method-self-inherit-builtin-trait.rs diff --git a/src/test/ui/issues/issue-81918.rs b/tests/ui/issues/issue-81918.rs similarity index 100% rename from src/test/ui/issues/issue-81918.rs rename to tests/ui/issues/issue-81918.rs diff --git a/src/test/ui/issues/issue-8248.rs b/tests/ui/issues/issue-8248.rs similarity index 100% rename from src/test/ui/issues/issue-8248.rs rename to tests/ui/issues/issue-8248.rs diff --git a/src/test/ui/issues/issue-8249.rs b/tests/ui/issues/issue-8249.rs similarity index 100% rename from src/test/ui/issues/issue-8249.rs rename to tests/ui/issues/issue-8249.rs diff --git a/src/test/ui/issues/issue-8259.rs b/tests/ui/issues/issue-8259.rs similarity index 100% rename from src/test/ui/issues/issue-8259.rs rename to tests/ui/issues/issue-8259.rs diff --git a/src/test/ui/issues/issue-82833-slice-miscompile.rs b/tests/ui/issues/issue-82833-slice-miscompile.rs similarity index 100% rename from src/test/ui/issues/issue-82833-slice-miscompile.rs rename to tests/ui/issues/issue-82833-slice-miscompile.rs diff --git a/src/test/ui/issues/issue-83048.rs b/tests/ui/issues/issue-83048.rs similarity index 100% rename from src/test/ui/issues/issue-83048.rs rename to tests/ui/issues/issue-83048.rs diff --git a/src/test/ui/issues/issue-83048.stderr b/tests/ui/issues/issue-83048.stderr similarity index 100% rename from src/test/ui/issues/issue-83048.stderr rename to tests/ui/issues/issue-83048.stderr diff --git a/src/test/ui/issues/issue-83190.rs b/tests/ui/issues/issue-83190.rs similarity index 100% rename from src/test/ui/issues/issue-83190.rs rename to tests/ui/issues/issue-83190.rs diff --git a/src/test/ui/issues/issue-8391.rs b/tests/ui/issues/issue-8391.rs similarity index 100% rename from src/test/ui/issues/issue-8391.rs rename to tests/ui/issues/issue-8391.rs diff --git a/src/test/ui/issues/issue-83924.fixed b/tests/ui/issues/issue-83924.fixed similarity index 100% rename from src/test/ui/issues/issue-83924.fixed rename to tests/ui/issues/issue-83924.fixed diff --git a/src/test/ui/issues/issue-83924.rs b/tests/ui/issues/issue-83924.rs similarity index 100% rename from src/test/ui/issues/issue-83924.rs rename to tests/ui/issues/issue-83924.rs diff --git a/src/test/ui/issues/issue-83924.stderr b/tests/ui/issues/issue-83924.stderr similarity index 100% rename from src/test/ui/issues/issue-83924.stderr rename to tests/ui/issues/issue-83924.stderr diff --git a/src/test/ui/issues/issue-8398.rs b/tests/ui/issues/issue-8398.rs similarity index 100% rename from src/test/ui/issues/issue-8398.rs rename to tests/ui/issues/issue-8398.rs diff --git a/src/test/ui/issues/issue-8401.rs b/tests/ui/issues/issue-8401.rs similarity index 100% rename from src/test/ui/issues/issue-8401.rs rename to tests/ui/issues/issue-8401.rs diff --git a/src/test/ui/issues/issue-8498.rs b/tests/ui/issues/issue-8498.rs similarity index 100% rename from src/test/ui/issues/issue-8498.rs rename to tests/ui/issues/issue-8498.rs diff --git a/src/test/ui/issues/issue-8506.rs b/tests/ui/issues/issue-8506.rs similarity index 100% rename from src/test/ui/issues/issue-8506.rs rename to tests/ui/issues/issue-8506.rs diff --git a/src/test/ui/issues/issue-8521.rs b/tests/ui/issues/issue-8521.rs similarity index 100% rename from src/test/ui/issues/issue-8521.rs rename to tests/ui/issues/issue-8521.rs diff --git a/src/test/ui/issues/issue-85461.rs b/tests/ui/issues/issue-85461.rs similarity index 100% rename from src/test/ui/issues/issue-85461.rs rename to tests/ui/issues/issue-85461.rs diff --git a/src/test/ui/issues/issue-8578.rs b/tests/ui/issues/issue-8578.rs similarity index 100% rename from src/test/ui/issues/issue-8578.rs rename to tests/ui/issues/issue-8578.rs diff --git a/src/test/ui/issues/issue-86756.rs b/tests/ui/issues/issue-86756.rs similarity index 100% rename from src/test/ui/issues/issue-86756.rs rename to tests/ui/issues/issue-86756.rs diff --git a/src/test/ui/issues/issue-86756.stderr b/tests/ui/issues/issue-86756.stderr similarity index 100% rename from src/test/ui/issues/issue-86756.stderr rename to tests/ui/issues/issue-86756.stderr diff --git a/src/test/ui/issues/issue-868.rs b/tests/ui/issues/issue-868.rs similarity index 100% rename from src/test/ui/issues/issue-868.rs rename to tests/ui/issues/issue-868.rs diff --git a/src/test/ui/issues/issue-87199.rs b/tests/ui/issues/issue-87199.rs similarity index 100% rename from src/test/ui/issues/issue-87199.rs rename to tests/ui/issues/issue-87199.rs diff --git a/src/test/ui/issues/issue-87199.stderr b/tests/ui/issues/issue-87199.stderr similarity index 100% rename from src/test/ui/issues/issue-87199.stderr rename to tests/ui/issues/issue-87199.stderr diff --git a/src/test/ui/issues/issue-8727.polonius.stderr b/tests/ui/issues/issue-8727.polonius.stderr similarity index 100% rename from src/test/ui/issues/issue-8727.polonius.stderr rename to tests/ui/issues/issue-8727.polonius.stderr diff --git a/src/test/ui/issues/issue-8727.rs b/tests/ui/issues/issue-8727.rs similarity index 100% rename from src/test/ui/issues/issue-8727.rs rename to tests/ui/issues/issue-8727.rs diff --git a/src/test/ui/issues/issue-8727.stderr b/tests/ui/issues/issue-8727.stderr similarity index 100% rename from src/test/ui/issues/issue-8727.stderr rename to tests/ui/issues/issue-8727.stderr diff --git a/src/test/ui/issues/issue-87490.rs b/tests/ui/issues/issue-87490.rs similarity index 100% rename from src/test/ui/issues/issue-87490.rs rename to tests/ui/issues/issue-87490.rs diff --git a/src/test/ui/issues/issue-87490.stderr b/tests/ui/issues/issue-87490.stderr similarity index 100% rename from src/test/ui/issues/issue-87490.stderr rename to tests/ui/issues/issue-87490.stderr diff --git a/src/test/ui/issues/issue-8761.rs b/tests/ui/issues/issue-8761.rs similarity index 100% rename from src/test/ui/issues/issue-8761.rs rename to tests/ui/issues/issue-8761.rs diff --git a/src/test/ui/issues/issue-8761.stderr b/tests/ui/issues/issue-8761.stderr similarity index 100% rename from src/test/ui/issues/issue-8761.stderr rename to tests/ui/issues/issue-8761.stderr diff --git a/src/test/ui/issues/issue-8767.rs b/tests/ui/issues/issue-8767.rs similarity index 100% rename from src/test/ui/issues/issue-8767.rs rename to tests/ui/issues/issue-8767.rs diff --git a/src/test/ui/issues/issue-8767.stderr b/tests/ui/issues/issue-8767.stderr similarity index 100% rename from src/test/ui/issues/issue-8767.stderr rename to tests/ui/issues/issue-8767.stderr diff --git a/src/test/ui/issues/issue-87707.rs b/tests/ui/issues/issue-87707.rs similarity index 100% rename from src/test/ui/issues/issue-87707.rs rename to tests/ui/issues/issue-87707.rs diff --git a/src/test/ui/issues/issue-87707.run.stderr b/tests/ui/issues/issue-87707.run.stderr similarity index 100% rename from src/test/ui/issues/issue-87707.run.stderr rename to tests/ui/issues/issue-87707.run.stderr diff --git a/src/test/ui/issues/issue-8783.rs b/tests/ui/issues/issue-8783.rs similarity index 100% rename from src/test/ui/issues/issue-8783.rs rename to tests/ui/issues/issue-8783.rs diff --git a/src/test/ui/issues/issue-88150.rs b/tests/ui/issues/issue-88150.rs similarity index 100% rename from src/test/ui/issues/issue-88150.rs rename to tests/ui/issues/issue-88150.rs diff --git a/src/test/ui/issues/issue-8860.rs b/tests/ui/issues/issue-8860.rs similarity index 100% rename from src/test/ui/issues/issue-8860.rs rename to tests/ui/issues/issue-8860.rs diff --git a/src/test/ui/issues/issue-8898.rs b/tests/ui/issues/issue-8898.rs similarity index 100% rename from src/test/ui/issues/issue-8898.rs rename to tests/ui/issues/issue-8898.rs diff --git a/src/test/ui/issues/issue-9047.rs b/tests/ui/issues/issue-9047.rs similarity index 100% rename from src/test/ui/issues/issue-9047.rs rename to tests/ui/issues/issue-9047.rs diff --git a/src/test/ui/issues/issue-9110.rs b/tests/ui/issues/issue-9110.rs similarity index 100% rename from src/test/ui/issues/issue-9110.rs rename to tests/ui/issues/issue-9110.rs diff --git a/src/test/ui/issues/issue-9123.rs b/tests/ui/issues/issue-9123.rs similarity index 100% rename from src/test/ui/issues/issue-9123.rs rename to tests/ui/issues/issue-9123.rs diff --git a/src/test/ui/issues/issue-9129.rs b/tests/ui/issues/issue-9129.rs similarity index 100% rename from src/test/ui/issues/issue-9129.rs rename to tests/ui/issues/issue-9129.rs diff --git a/src/test/ui/issues/issue-91489.rs b/tests/ui/issues/issue-91489.rs similarity index 100% rename from src/test/ui/issues/issue-91489.rs rename to tests/ui/issues/issue-91489.rs diff --git a/src/test/ui/issues/issue-9155.rs b/tests/ui/issues/issue-9155.rs similarity index 100% rename from src/test/ui/issues/issue-9155.rs rename to tests/ui/issues/issue-9155.rs diff --git a/src/test/ui/issues/issue-9188.rs b/tests/ui/issues/issue-9188.rs similarity index 100% rename from src/test/ui/issues/issue-9188.rs rename to tests/ui/issues/issue-9188.rs diff --git a/src/test/ui/issues/issue-9243.rs b/tests/ui/issues/issue-9243.rs similarity index 100% rename from src/test/ui/issues/issue-9243.rs rename to tests/ui/issues/issue-9243.rs diff --git a/src/test/ui/issues/issue-9249.rs b/tests/ui/issues/issue-9249.rs similarity index 100% rename from src/test/ui/issues/issue-9249.rs rename to tests/ui/issues/issue-9249.rs diff --git a/src/test/ui/issues/issue-9259.rs b/tests/ui/issues/issue-9259.rs similarity index 100% rename from src/test/ui/issues/issue-9259.rs rename to tests/ui/issues/issue-9259.rs diff --git a/src/test/ui/issues/issue-9382.rs b/tests/ui/issues/issue-9382.rs similarity index 100% rename from src/test/ui/issues/issue-9382.rs rename to tests/ui/issues/issue-9382.rs diff --git a/src/test/ui/issues/issue-9446.rs b/tests/ui/issues/issue-9446.rs similarity index 100% rename from src/test/ui/issues/issue-9446.rs rename to tests/ui/issues/issue-9446.rs diff --git a/src/test/ui/issues/issue-948.rs b/tests/ui/issues/issue-948.rs similarity index 100% rename from src/test/ui/issues/issue-948.rs rename to tests/ui/issues/issue-948.rs diff --git a/src/test/ui/issues/issue-9575.rs b/tests/ui/issues/issue-9575.rs similarity index 100% rename from src/test/ui/issues/issue-9575.rs rename to tests/ui/issues/issue-9575.rs diff --git a/src/test/ui/issues/issue-9575.stderr b/tests/ui/issues/issue-9575.stderr similarity index 100% rename from src/test/ui/issues/issue-9575.stderr rename to tests/ui/issues/issue-9575.stderr diff --git a/src/test/ui/issues/issue-9719.rs b/tests/ui/issues/issue-9719.rs similarity index 100% rename from src/test/ui/issues/issue-9719.rs rename to tests/ui/issues/issue-9719.rs diff --git a/src/test/ui/issues/issue-9725.rs b/tests/ui/issues/issue-9725.rs similarity index 100% rename from src/test/ui/issues/issue-9725.rs rename to tests/ui/issues/issue-9725.rs diff --git a/src/test/ui/issues/issue-9725.stderr b/tests/ui/issues/issue-9725.stderr similarity index 100% rename from src/test/ui/issues/issue-9725.stderr rename to tests/ui/issues/issue-9725.stderr diff --git a/src/test/ui/issues/issue-9737.rs b/tests/ui/issues/issue-9737.rs similarity index 100% rename from src/test/ui/issues/issue-9737.rs rename to tests/ui/issues/issue-9737.rs diff --git a/src/test/ui/issues/issue-979.rs b/tests/ui/issues/issue-979.rs similarity index 100% rename from src/test/ui/issues/issue-979.rs rename to tests/ui/issues/issue-979.rs diff --git a/src/test/ui/issues/issue-9814.rs b/tests/ui/issues/issue-9814.rs similarity index 100% rename from src/test/ui/issues/issue-9814.rs rename to tests/ui/issues/issue-9814.rs diff --git a/src/test/ui/issues/issue-9814.stderr b/tests/ui/issues/issue-9814.stderr similarity index 100% rename from src/test/ui/issues/issue-9814.stderr rename to tests/ui/issues/issue-9814.stderr diff --git a/src/test/ui/issues/issue-98299.rs b/tests/ui/issues/issue-98299.rs similarity index 100% rename from src/test/ui/issues/issue-98299.rs rename to tests/ui/issues/issue-98299.rs diff --git a/src/test/ui/issues/issue-98299.stderr b/tests/ui/issues/issue-98299.stderr similarity index 100% rename from src/test/ui/issues/issue-98299.stderr rename to tests/ui/issues/issue-98299.stderr diff --git a/src/test/ui/issues/issue-9837.rs b/tests/ui/issues/issue-9837.rs similarity index 100% rename from src/test/ui/issues/issue-9837.rs rename to tests/ui/issues/issue-9837.rs diff --git a/src/test/ui/issues/issue-9906.rs b/tests/ui/issues/issue-9906.rs similarity index 100% rename from src/test/ui/issues/issue-9906.rs rename to tests/ui/issues/issue-9906.rs diff --git a/src/test/ui/issues/issue-9918.rs b/tests/ui/issues/issue-9918.rs similarity index 100% rename from src/test/ui/issues/issue-9918.rs rename to tests/ui/issues/issue-9918.rs diff --git a/src/test/ui/issues/issue-9942.rs b/tests/ui/issues/issue-9942.rs similarity index 100% rename from src/test/ui/issues/issue-9942.rs rename to tests/ui/issues/issue-9942.rs diff --git a/src/test/ui/issues/issue-9951.rs b/tests/ui/issues/issue-9951.rs similarity index 100% rename from src/test/ui/issues/issue-9951.rs rename to tests/ui/issues/issue-9951.rs diff --git a/src/test/ui/issues/issue-9968.rs b/tests/ui/issues/issue-9968.rs similarity index 100% rename from src/test/ui/issues/issue-9968.rs rename to tests/ui/issues/issue-9968.rs diff --git a/src/test/ui/issues/issue-99838.rs b/tests/ui/issues/issue-99838.rs similarity index 100% rename from src/test/ui/issues/issue-99838.rs rename to tests/ui/issues/issue-99838.rs diff --git a/src/test/ui/issues/issue-pr29383.rs b/tests/ui/issues/issue-pr29383.rs similarity index 100% rename from src/test/ui/issues/issue-pr29383.rs rename to tests/ui/issues/issue-pr29383.rs diff --git a/src/test/ui/issues/issue-pr29383.stderr b/tests/ui/issues/issue-pr29383.stderr similarity index 100% rename from src/test/ui/issues/issue-pr29383.stderr rename to tests/ui/issues/issue-pr29383.stderr diff --git a/src/test/ui/item-name-overload.rs b/tests/ui/item-name-overload.rs similarity index 100% rename from src/test/ui/item-name-overload.rs rename to tests/ui/item-name-overload.rs diff --git a/src/test/ui/iterators/array-of-ranges.rs b/tests/ui/iterators/array-of-ranges.rs similarity index 100% rename from src/test/ui/iterators/array-of-ranges.rs rename to tests/ui/iterators/array-of-ranges.rs diff --git a/src/test/ui/iterators/array.rs b/tests/ui/iterators/array.rs similarity index 100% rename from src/test/ui/iterators/array.rs rename to tests/ui/iterators/array.rs diff --git a/src/test/ui/iterators/bound.rs b/tests/ui/iterators/bound.rs similarity index 100% rename from src/test/ui/iterators/bound.rs rename to tests/ui/iterators/bound.rs diff --git a/src/test/ui/iterators/bound.stderr b/tests/ui/iterators/bound.stderr similarity index 100% rename from src/test/ui/iterators/bound.stderr rename to tests/ui/iterators/bound.stderr diff --git a/src/test/ui/iterators/collect-into-array.rs b/tests/ui/iterators/collect-into-array.rs similarity index 100% rename from src/test/ui/iterators/collect-into-array.rs rename to tests/ui/iterators/collect-into-array.rs diff --git a/src/test/ui/iterators/collect-into-array.stderr b/tests/ui/iterators/collect-into-array.stderr similarity index 100% rename from src/test/ui/iterators/collect-into-array.stderr rename to tests/ui/iterators/collect-into-array.stderr diff --git a/src/test/ui/iterators/collect-into-slice.rs b/tests/ui/iterators/collect-into-slice.rs similarity index 100% rename from src/test/ui/iterators/collect-into-slice.rs rename to tests/ui/iterators/collect-into-slice.rs diff --git a/src/test/ui/iterators/collect-into-slice.stderr b/tests/ui/iterators/collect-into-slice.stderr similarity index 100% rename from src/test/ui/iterators/collect-into-slice.stderr rename to tests/ui/iterators/collect-into-slice.stderr diff --git a/src/test/ui/iterators/integral.rs b/tests/ui/iterators/integral.rs similarity index 100% rename from src/test/ui/iterators/integral.rs rename to tests/ui/iterators/integral.rs diff --git a/src/test/ui/iterators/integral.stderr b/tests/ui/iterators/integral.stderr similarity index 100% rename from src/test/ui/iterators/integral.stderr rename to tests/ui/iterators/integral.stderr diff --git a/src/test/ui/iterators/into-iter-on-arrays-2018.rs b/tests/ui/iterators/into-iter-on-arrays-2018.rs similarity index 100% rename from src/test/ui/iterators/into-iter-on-arrays-2018.rs rename to tests/ui/iterators/into-iter-on-arrays-2018.rs diff --git a/src/test/ui/iterators/into-iter-on-arrays-2018.stderr b/tests/ui/iterators/into-iter-on-arrays-2018.stderr similarity index 100% rename from src/test/ui/iterators/into-iter-on-arrays-2018.stderr rename to tests/ui/iterators/into-iter-on-arrays-2018.stderr diff --git a/src/test/ui/iterators/into-iter-on-arrays-2021.rs b/tests/ui/iterators/into-iter-on-arrays-2021.rs similarity index 100% rename from src/test/ui/iterators/into-iter-on-arrays-2021.rs rename to tests/ui/iterators/into-iter-on-arrays-2021.rs diff --git a/src/test/ui/iterators/into-iter-on-arrays-lint.fixed b/tests/ui/iterators/into-iter-on-arrays-lint.fixed similarity index 100% rename from src/test/ui/iterators/into-iter-on-arrays-lint.fixed rename to tests/ui/iterators/into-iter-on-arrays-lint.fixed diff --git a/src/test/ui/iterators/into-iter-on-arrays-lint.rs b/tests/ui/iterators/into-iter-on-arrays-lint.rs similarity index 100% rename from src/test/ui/iterators/into-iter-on-arrays-lint.rs rename to tests/ui/iterators/into-iter-on-arrays-lint.rs diff --git a/src/test/ui/iterators/into-iter-on-arrays-lint.stderr b/tests/ui/iterators/into-iter-on-arrays-lint.stderr similarity index 100% rename from src/test/ui/iterators/into-iter-on-arrays-lint.stderr rename to tests/ui/iterators/into-iter-on-arrays-lint.stderr diff --git a/src/test/ui/iterators/into-iterator-type-inference-shift.rs b/tests/ui/iterators/into-iterator-type-inference-shift.rs similarity index 100% rename from src/test/ui/iterators/into-iterator-type-inference-shift.rs rename to tests/ui/iterators/into-iterator-type-inference-shift.rs diff --git a/src/test/ui/iterators/invalid-iterator-chain.rs b/tests/ui/iterators/invalid-iterator-chain.rs similarity index 100% rename from src/test/ui/iterators/invalid-iterator-chain.rs rename to tests/ui/iterators/invalid-iterator-chain.rs diff --git a/src/test/ui/iterators/invalid-iterator-chain.stderr b/tests/ui/iterators/invalid-iterator-chain.stderr similarity index 100% rename from src/test/ui/iterators/invalid-iterator-chain.stderr rename to tests/ui/iterators/invalid-iterator-chain.stderr diff --git a/src/test/ui/iterators/issue-28098.rs b/tests/ui/iterators/issue-28098.rs similarity index 100% rename from src/test/ui/iterators/issue-28098.rs rename to tests/ui/iterators/issue-28098.rs diff --git a/src/test/ui/iterators/issue-28098.stderr b/tests/ui/iterators/issue-28098.stderr similarity index 100% rename from src/test/ui/iterators/issue-28098.stderr rename to tests/ui/iterators/issue-28098.stderr diff --git a/src/test/ui/iterators/issue-58952-filter-type-length.rs b/tests/ui/iterators/issue-58952-filter-type-length.rs similarity index 100% rename from src/test/ui/iterators/issue-58952-filter-type-length.rs rename to tests/ui/iterators/issue-58952-filter-type-length.rs diff --git a/src/test/ui/iterators/iter-cloned-type-inference.rs b/tests/ui/iterators/iter-cloned-type-inference.rs similarity index 100% rename from src/test/ui/iterators/iter-cloned-type-inference.rs rename to tests/ui/iterators/iter-cloned-type-inference.rs diff --git a/src/test/ui/iterators/iter-count-overflow-debug.rs b/tests/ui/iterators/iter-count-overflow-debug.rs similarity index 100% rename from src/test/ui/iterators/iter-count-overflow-debug.rs rename to tests/ui/iterators/iter-count-overflow-debug.rs diff --git a/src/test/ui/iterators/iter-count-overflow-ndebug.rs b/tests/ui/iterators/iter-count-overflow-ndebug.rs similarity index 100% rename from src/test/ui/iterators/iter-count-overflow-ndebug.rs rename to tests/ui/iterators/iter-count-overflow-ndebug.rs diff --git a/src/test/ui/iterators/iter-map-fold-type-length.rs b/tests/ui/iterators/iter-map-fold-type-length.rs similarity index 100% rename from src/test/ui/iterators/iter-map-fold-type-length.rs rename to tests/ui/iterators/iter-map-fold-type-length.rs diff --git a/src/test/ui/iterators/iter-position-overflow-debug.rs b/tests/ui/iterators/iter-position-overflow-debug.rs similarity index 100% rename from src/test/ui/iterators/iter-position-overflow-debug.rs rename to tests/ui/iterators/iter-position-overflow-debug.rs diff --git a/src/test/ui/iterators/iter-position-overflow-ndebug.rs b/tests/ui/iterators/iter-position-overflow-ndebug.rs similarity index 100% rename from src/test/ui/iterators/iter-position-overflow-ndebug.rs rename to tests/ui/iterators/iter-position-overflow-ndebug.rs diff --git a/src/test/ui/iterators/iter-range.rs b/tests/ui/iterators/iter-range.rs similarity index 100% rename from src/test/ui/iterators/iter-range.rs rename to tests/ui/iterators/iter-range.rs diff --git a/src/test/ui/iterators/iter-step-overflow-debug.rs b/tests/ui/iterators/iter-step-overflow-debug.rs similarity index 100% rename from src/test/ui/iterators/iter-step-overflow-debug.rs rename to tests/ui/iterators/iter-step-overflow-debug.rs diff --git a/src/test/ui/iterators/iter-step-overflow-ndebug.rs b/tests/ui/iterators/iter-step-overflow-ndebug.rs similarity index 100% rename from src/test/ui/iterators/iter-step-overflow-ndebug.rs rename to tests/ui/iterators/iter-step-overflow-ndebug.rs diff --git a/src/test/ui/iterators/iter-sum-overflow-debug.rs b/tests/ui/iterators/iter-sum-overflow-debug.rs similarity index 100% rename from src/test/ui/iterators/iter-sum-overflow-debug.rs rename to tests/ui/iterators/iter-sum-overflow-debug.rs diff --git a/src/test/ui/iterators/iter-sum-overflow-ndebug.rs b/tests/ui/iterators/iter-sum-overflow-ndebug.rs similarity index 100% rename from src/test/ui/iterators/iter-sum-overflow-ndebug.rs rename to tests/ui/iterators/iter-sum-overflow-ndebug.rs diff --git a/src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs b/tests/ui/iterators/iter-sum-overflow-overflow-checks.rs similarity index 100% rename from src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs rename to tests/ui/iterators/iter-sum-overflow-overflow-checks.rs diff --git a/src/test/ui/iterators/ranges.rs b/tests/ui/iterators/ranges.rs similarity index 100% rename from src/test/ui/iterators/ranges.rs rename to tests/ui/iterators/ranges.rs diff --git a/src/test/ui/iterators/ranges.stderr b/tests/ui/iterators/ranges.stderr similarity index 100% rename from src/test/ui/iterators/ranges.stderr rename to tests/ui/iterators/ranges.stderr diff --git a/src/test/ui/iterators/rsplit-clone.rs b/tests/ui/iterators/rsplit-clone.rs similarity index 100% rename from src/test/ui/iterators/rsplit-clone.rs rename to tests/ui/iterators/rsplit-clone.rs diff --git a/src/test/ui/iterators/skip-count-overflow.rs b/tests/ui/iterators/skip-count-overflow.rs similarity index 100% rename from src/test/ui/iterators/skip-count-overflow.rs rename to tests/ui/iterators/skip-count-overflow.rs diff --git a/src/test/ui/iterators/string.rs b/tests/ui/iterators/string.rs similarity index 100% rename from src/test/ui/iterators/string.rs rename to tests/ui/iterators/string.rs diff --git a/src/test/ui/iterators/string.stderr b/tests/ui/iterators/string.stderr similarity index 100% rename from src/test/ui/iterators/string.stderr rename to tests/ui/iterators/string.stderr diff --git a/src/test/ui/iterators/vec-on-unimplemented.rs b/tests/ui/iterators/vec-on-unimplemented.rs similarity index 100% rename from src/test/ui/iterators/vec-on-unimplemented.rs rename to tests/ui/iterators/vec-on-unimplemented.rs diff --git a/src/test/ui/iterators/vec-on-unimplemented.stderr b/tests/ui/iterators/vec-on-unimplemented.stderr similarity index 100% rename from src/test/ui/iterators/vec-on-unimplemented.stderr rename to tests/ui/iterators/vec-on-unimplemented.stderr diff --git a/src/test/ui/json/json-and-color.rs b/tests/ui/json/json-and-color.rs similarity index 100% rename from src/test/ui/json/json-and-color.rs rename to tests/ui/json/json-and-color.rs diff --git a/src/test/ui/json/json-and-color.stderr b/tests/ui/json/json-and-color.stderr similarity index 100% rename from src/test/ui/json/json-and-color.stderr rename to tests/ui/json/json-and-color.stderr diff --git a/src/test/ui/json/json-and-error-format.rs b/tests/ui/json/json-and-error-format.rs similarity index 100% rename from src/test/ui/json/json-and-error-format.rs rename to tests/ui/json/json-and-error-format.rs diff --git a/src/test/ui/json/json-and-error-format.stderr b/tests/ui/json/json-and-error-format.stderr similarity index 100% rename from src/test/ui/json/json-and-error-format.stderr rename to tests/ui/json/json-and-error-format.stderr diff --git a/src/test/ui/json/json-bom-plus-crlf-multifile-aux.rs b/tests/ui/json/json-bom-plus-crlf-multifile-aux.rs similarity index 100% rename from src/test/ui/json/json-bom-plus-crlf-multifile-aux.rs rename to tests/ui/json/json-bom-plus-crlf-multifile-aux.rs diff --git a/src/test/ui/json/json-bom-plus-crlf-multifile.rs b/tests/ui/json/json-bom-plus-crlf-multifile.rs similarity index 100% rename from src/test/ui/json/json-bom-plus-crlf-multifile.rs rename to tests/ui/json/json-bom-plus-crlf-multifile.rs diff --git a/src/test/ui/json/json-bom-plus-crlf-multifile.stderr b/tests/ui/json/json-bom-plus-crlf-multifile.stderr similarity index 100% rename from src/test/ui/json/json-bom-plus-crlf-multifile.stderr rename to tests/ui/json/json-bom-plus-crlf-multifile.stderr diff --git a/src/test/ui/json/json-bom-plus-crlf.rs b/tests/ui/json/json-bom-plus-crlf.rs similarity index 100% rename from src/test/ui/json/json-bom-plus-crlf.rs rename to tests/ui/json/json-bom-plus-crlf.rs diff --git a/src/test/ui/json/json-bom-plus-crlf.stderr b/tests/ui/json/json-bom-plus-crlf.stderr similarity index 100% rename from src/test/ui/json/json-bom-plus-crlf.stderr rename to tests/ui/json/json-bom-plus-crlf.stderr diff --git a/src/test/ui/json/json-invalid.rs b/tests/ui/json/json-invalid.rs similarity index 100% rename from src/test/ui/json/json-invalid.rs rename to tests/ui/json/json-invalid.rs diff --git a/src/test/ui/json/json-invalid.stderr b/tests/ui/json/json-invalid.stderr similarity index 100% rename from src/test/ui/json/json-invalid.stderr rename to tests/ui/json/json-invalid.stderr diff --git a/src/test/ui/json/json-multiple.polonius.stderr b/tests/ui/json/json-multiple.polonius.stderr similarity index 100% rename from src/test/ui/json/json-multiple.polonius.stderr rename to tests/ui/json/json-multiple.polonius.stderr diff --git a/src/test/ui/json/json-multiple.rs b/tests/ui/json/json-multiple.rs similarity index 100% rename from src/test/ui/json/json-multiple.rs rename to tests/ui/json/json-multiple.rs diff --git a/src/test/ui/json/json-multiple.stderr b/tests/ui/json/json-multiple.stderr similarity index 100% rename from src/test/ui/json/json-multiple.stderr rename to tests/ui/json/json-multiple.stderr diff --git a/src/test/ui/json/json-options.polonius.stderr b/tests/ui/json/json-options.polonius.stderr similarity index 100% rename from src/test/ui/json/json-options.polonius.stderr rename to tests/ui/json/json-options.polonius.stderr diff --git a/src/test/ui/json/json-options.rs b/tests/ui/json/json-options.rs similarity index 100% rename from src/test/ui/json/json-options.rs rename to tests/ui/json/json-options.rs diff --git a/src/test/ui/json/json-options.stderr b/tests/ui/json/json-options.stderr similarity index 100% rename from src/test/ui/json/json-options.stderr rename to tests/ui/json/json-options.stderr diff --git a/src/test/ui/json/json-short.rs b/tests/ui/json/json-short.rs similarity index 100% rename from src/test/ui/json/json-short.rs rename to tests/ui/json/json-short.rs diff --git a/src/test/ui/json/json-short.stderr b/tests/ui/json/json-short.stderr similarity index 100% rename from src/test/ui/json/json-short.stderr rename to tests/ui/json/json-short.stderr diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-expr.rs b/tests/ui/keyword/extern/keyword-extern-as-identifier-expr.rs similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-expr.rs rename to tests/ui/keyword/extern/keyword-extern-as-identifier-expr.rs diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-expr.stderr b/tests/ui/keyword/extern/keyword-extern-as-identifier-expr.stderr similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-expr.stderr rename to tests/ui/keyword/extern/keyword-extern-as-identifier-expr.stderr diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-pat.rs b/tests/ui/keyword/extern/keyword-extern-as-identifier-pat.rs similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-pat.rs rename to tests/ui/keyword/extern/keyword-extern-as-identifier-pat.rs diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr b/tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr rename to tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-type.rs b/tests/ui/keyword/extern/keyword-extern-as-identifier-type.rs similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-type.rs rename to tests/ui/keyword/extern/keyword-extern-as-identifier-type.rs diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-type.stderr b/tests/ui/keyword/extern/keyword-extern-as-identifier-type.stderr similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-type.stderr rename to tests/ui/keyword/extern/keyword-extern-as-identifier-type.stderr diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-use.rs b/tests/ui/keyword/extern/keyword-extern-as-identifier-use.rs similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-use.rs rename to tests/ui/keyword/extern/keyword-extern-as-identifier-use.rs diff --git a/src/test/ui/keyword/extern/keyword-extern-as-identifier-use.stderr b/tests/ui/keyword/extern/keyword-extern-as-identifier-use.stderr similarity index 100% rename from src/test/ui/keyword/extern/keyword-extern-as-identifier-use.stderr rename to tests/ui/keyword/extern/keyword-extern-as-identifier-use.stderr diff --git a/src/test/ui/keyword/keyword-false-as-identifier.rs b/tests/ui/keyword/keyword-false-as-identifier.rs similarity index 100% rename from src/test/ui/keyword/keyword-false-as-identifier.rs rename to tests/ui/keyword/keyword-false-as-identifier.rs diff --git a/src/test/ui/keyword/keyword-false-as-identifier.stderr b/tests/ui/keyword/keyword-false-as-identifier.stderr similarity index 100% rename from src/test/ui/keyword/keyword-false-as-identifier.stderr rename to tests/ui/keyword/keyword-false-as-identifier.stderr diff --git a/src/test/ui/keyword/keyword-self-as-identifier.rs b/tests/ui/keyword/keyword-self-as-identifier.rs similarity index 100% rename from src/test/ui/keyword/keyword-self-as-identifier.rs rename to tests/ui/keyword/keyword-self-as-identifier.rs diff --git a/src/test/ui/keyword/keyword-self-as-identifier.stderr b/tests/ui/keyword/keyword-self-as-identifier.stderr similarity index 100% rename from src/test/ui/keyword/keyword-self-as-identifier.stderr rename to tests/ui/keyword/keyword-self-as-identifier.stderr diff --git a/src/test/ui/keyword/keyword-self-as-type-param.rs b/tests/ui/keyword/keyword-self-as-type-param.rs similarity index 100% rename from src/test/ui/keyword/keyword-self-as-type-param.rs rename to tests/ui/keyword/keyword-self-as-type-param.rs diff --git a/src/test/ui/keyword/keyword-self-as-type-param.stderr b/tests/ui/keyword/keyword-self-as-type-param.stderr similarity index 100% rename from src/test/ui/keyword/keyword-self-as-type-param.stderr rename to tests/ui/keyword/keyword-self-as-type-param.stderr diff --git a/src/test/ui/keyword/keyword-super-as-identifier.rs b/tests/ui/keyword/keyword-super-as-identifier.rs similarity index 100% rename from src/test/ui/keyword/keyword-super-as-identifier.rs rename to tests/ui/keyword/keyword-super-as-identifier.rs diff --git a/src/test/ui/keyword/keyword-super-as-identifier.stderr b/tests/ui/keyword/keyword-super-as-identifier.stderr similarity index 100% rename from src/test/ui/keyword/keyword-super-as-identifier.stderr rename to tests/ui/keyword/keyword-super-as-identifier.stderr diff --git a/src/test/ui/keyword/keyword-super.rs b/tests/ui/keyword/keyword-super.rs similarity index 100% rename from src/test/ui/keyword/keyword-super.rs rename to tests/ui/keyword/keyword-super.rs diff --git a/src/test/ui/keyword/keyword-super.stderr b/tests/ui/keyword/keyword-super.stderr similarity index 100% rename from src/test/ui/keyword/keyword-super.stderr rename to tests/ui/keyword/keyword-super.stderr diff --git a/src/test/ui/keyword/keyword-true-as-identifier.rs b/tests/ui/keyword/keyword-true-as-identifier.rs similarity index 100% rename from src/test/ui/keyword/keyword-true-as-identifier.rs rename to tests/ui/keyword/keyword-true-as-identifier.rs diff --git a/src/test/ui/keyword/keyword-true-as-identifier.stderr b/tests/ui/keyword/keyword-true-as-identifier.stderr similarity index 100% rename from src/test/ui/keyword/keyword-true-as-identifier.stderr rename to tests/ui/keyword/keyword-true-as-identifier.stderr diff --git a/src/test/ui/kindck/kindck-copy.rs b/tests/ui/kindck/kindck-copy.rs similarity index 100% rename from src/test/ui/kindck/kindck-copy.rs rename to tests/ui/kindck/kindck-copy.rs diff --git a/src/test/ui/kindck/kindck-copy.stderr b/tests/ui/kindck/kindck-copy.stderr similarity index 100% rename from src/test/ui/kindck/kindck-copy.stderr rename to tests/ui/kindck/kindck-copy.stderr diff --git a/src/test/ui/kindck/kindck-impl-type-params-2.rs b/tests/ui/kindck/kindck-impl-type-params-2.rs similarity index 100% rename from src/test/ui/kindck/kindck-impl-type-params-2.rs rename to tests/ui/kindck/kindck-impl-type-params-2.rs diff --git a/src/test/ui/kindck/kindck-impl-type-params-2.stderr b/tests/ui/kindck/kindck-impl-type-params-2.stderr similarity index 100% rename from src/test/ui/kindck/kindck-impl-type-params-2.stderr rename to tests/ui/kindck/kindck-impl-type-params-2.stderr diff --git a/src/test/ui/kindck/kindck-impl-type-params.rs b/tests/ui/kindck/kindck-impl-type-params.rs similarity index 100% rename from src/test/ui/kindck/kindck-impl-type-params.rs rename to tests/ui/kindck/kindck-impl-type-params.rs diff --git a/src/test/ui/kindck/kindck-impl-type-params.stderr b/tests/ui/kindck/kindck-impl-type-params.stderr similarity index 100% rename from src/test/ui/kindck/kindck-impl-type-params.stderr rename to tests/ui/kindck/kindck-impl-type-params.stderr diff --git a/src/test/ui/kindck/kindck-inherited-copy-bound.curr.stderr b/tests/ui/kindck/kindck-inherited-copy-bound.curr.stderr similarity index 100% rename from src/test/ui/kindck/kindck-inherited-copy-bound.curr.stderr rename to tests/ui/kindck/kindck-inherited-copy-bound.curr.stderr diff --git a/src/test/ui/kindck/kindck-inherited-copy-bound.object_safe_for_dispatch.stderr b/tests/ui/kindck/kindck-inherited-copy-bound.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/kindck/kindck-inherited-copy-bound.object_safe_for_dispatch.stderr rename to tests/ui/kindck/kindck-inherited-copy-bound.object_safe_for_dispatch.stderr diff --git a/src/test/ui/kindck/kindck-inherited-copy-bound.rs b/tests/ui/kindck/kindck-inherited-copy-bound.rs similarity index 100% rename from src/test/ui/kindck/kindck-inherited-copy-bound.rs rename to tests/ui/kindck/kindck-inherited-copy-bound.rs diff --git a/src/test/ui/kindck/kindck-nonsendable-1.rs b/tests/ui/kindck/kindck-nonsendable-1.rs similarity index 100% rename from src/test/ui/kindck/kindck-nonsendable-1.rs rename to tests/ui/kindck/kindck-nonsendable-1.rs diff --git a/src/test/ui/kindck/kindck-nonsendable-1.stderr b/tests/ui/kindck/kindck-nonsendable-1.stderr similarity index 100% rename from src/test/ui/kindck/kindck-nonsendable-1.stderr rename to tests/ui/kindck/kindck-nonsendable-1.stderr diff --git a/src/test/ui/kindck/kindck-send-object.rs b/tests/ui/kindck/kindck-send-object.rs similarity index 100% rename from src/test/ui/kindck/kindck-send-object.rs rename to tests/ui/kindck/kindck-send-object.rs diff --git a/src/test/ui/kindck/kindck-send-object.stderr b/tests/ui/kindck/kindck-send-object.stderr similarity index 100% rename from src/test/ui/kindck/kindck-send-object.stderr rename to tests/ui/kindck/kindck-send-object.stderr diff --git a/src/test/ui/kindck/kindck-send-object1.rs b/tests/ui/kindck/kindck-send-object1.rs similarity index 100% rename from src/test/ui/kindck/kindck-send-object1.rs rename to tests/ui/kindck/kindck-send-object1.rs diff --git a/src/test/ui/kindck/kindck-send-object1.stderr b/tests/ui/kindck/kindck-send-object1.stderr similarity index 100% rename from src/test/ui/kindck/kindck-send-object1.stderr rename to tests/ui/kindck/kindck-send-object1.stderr diff --git a/src/test/ui/kindck/kindck-send-object2.rs b/tests/ui/kindck/kindck-send-object2.rs similarity index 100% rename from src/test/ui/kindck/kindck-send-object2.rs rename to tests/ui/kindck/kindck-send-object2.rs diff --git a/src/test/ui/kindck/kindck-send-object2.stderr b/tests/ui/kindck/kindck-send-object2.stderr similarity index 100% rename from src/test/ui/kindck/kindck-send-object2.stderr rename to tests/ui/kindck/kindck-send-object2.stderr diff --git a/src/test/ui/kindck/kindck-send-owned.rs b/tests/ui/kindck/kindck-send-owned.rs similarity index 100% rename from src/test/ui/kindck/kindck-send-owned.rs rename to tests/ui/kindck/kindck-send-owned.rs diff --git a/src/test/ui/kindck/kindck-send-owned.stderr b/tests/ui/kindck/kindck-send-owned.stderr similarity index 100% rename from src/test/ui/kindck/kindck-send-owned.stderr rename to tests/ui/kindck/kindck-send-owned.stderr diff --git a/src/test/ui/kindck/kindck-send-unsafe.rs b/tests/ui/kindck/kindck-send-unsafe.rs similarity index 100% rename from src/test/ui/kindck/kindck-send-unsafe.rs rename to tests/ui/kindck/kindck-send-unsafe.rs diff --git a/src/test/ui/kindck/kindck-send-unsafe.rs~rust-lang_master b/tests/ui/kindck/kindck-send-unsafe.rs~rust-lang_master similarity index 100% rename from src/test/ui/kindck/kindck-send-unsafe.rs~rust-lang_master rename to tests/ui/kindck/kindck-send-unsafe.rs~rust-lang_master diff --git a/src/test/ui/kindck/kindck-send-unsafe.stderr b/tests/ui/kindck/kindck-send-unsafe.stderr similarity index 100% rename from src/test/ui/kindck/kindck-send-unsafe.stderr rename to tests/ui/kindck/kindck-send-unsafe.stderr diff --git a/src/test/ui/kinds-in-metadata.rs b/tests/ui/kinds-in-metadata.rs similarity index 100% rename from src/test/ui/kinds-in-metadata.rs rename to tests/ui/kinds-in-metadata.rs diff --git a/src/test/ui/kinds-of-primitive-impl.rs b/tests/ui/kinds-of-primitive-impl.rs similarity index 100% rename from src/test/ui/kinds-of-primitive-impl.rs rename to tests/ui/kinds-of-primitive-impl.rs diff --git a/src/test/ui/kinds-of-primitive-impl.stderr b/tests/ui/kinds-of-primitive-impl.stderr similarity index 100% rename from src/test/ui/kinds-of-primitive-impl.stderr rename to tests/ui/kinds-of-primitive-impl.stderr diff --git a/src/test/ui/label/label-beginning-with-underscore.rs b/tests/ui/label/label-beginning-with-underscore.rs similarity index 100% rename from src/test/ui/label/label-beginning-with-underscore.rs rename to tests/ui/label/label-beginning-with-underscore.rs diff --git a/src/test/ui/label/label-static.rs b/tests/ui/label/label-static.rs similarity index 100% rename from src/test/ui/label/label-static.rs rename to tests/ui/label/label-static.rs diff --git a/src/test/ui/label/label-static.stderr b/tests/ui/label/label-static.stderr similarity index 100% rename from src/test/ui/label/label-static.stderr rename to tests/ui/label/label-static.stderr diff --git a/src/test/ui/label/label-underscore.rs b/tests/ui/label/label-underscore.rs similarity index 100% rename from src/test/ui/label/label-underscore.rs rename to tests/ui/label/label-underscore.rs diff --git a/src/test/ui/label/label-underscore.stderr b/tests/ui/label/label-underscore.stderr similarity index 100% rename from src/test/ui/label/label-underscore.stderr rename to tests/ui/label/label-underscore.stderr diff --git a/src/test/ui/label/label_break_value_continue.rs b/tests/ui/label/label_break_value_continue.rs similarity index 100% rename from src/test/ui/label/label_break_value_continue.rs rename to tests/ui/label/label_break_value_continue.rs diff --git a/src/test/ui/label/label_break_value_continue.stderr b/tests/ui/label/label_break_value_continue.stderr similarity index 100% rename from src/test/ui/label/label_break_value_continue.stderr rename to tests/ui/label/label_break_value_continue.stderr diff --git a/src/test/ui/label/label_break_value_desugared_break.rs b/tests/ui/label/label_break_value_desugared_break.rs similarity index 100% rename from src/test/ui/label/label_break_value_desugared_break.rs rename to tests/ui/label/label_break_value_desugared_break.rs diff --git a/src/test/ui/label/label_break_value_illegal_uses.fixed b/tests/ui/label/label_break_value_illegal_uses.fixed similarity index 100% rename from src/test/ui/label/label_break_value_illegal_uses.fixed rename to tests/ui/label/label_break_value_illegal_uses.fixed diff --git a/src/test/ui/label/label_break_value_illegal_uses.rs b/tests/ui/label/label_break_value_illegal_uses.rs similarity index 100% rename from src/test/ui/label/label_break_value_illegal_uses.rs rename to tests/ui/label/label_break_value_illegal_uses.rs diff --git a/src/test/ui/label/label_break_value_illegal_uses.stderr b/tests/ui/label/label_break_value_illegal_uses.stderr similarity index 100% rename from src/test/ui/label/label_break_value_illegal_uses.stderr rename to tests/ui/label/label_break_value_illegal_uses.stderr diff --git a/src/test/ui/label/label_break_value_unlabeled_break.rs b/tests/ui/label/label_break_value_unlabeled_break.rs similarity index 100% rename from src/test/ui/label/label_break_value_unlabeled_break.rs rename to tests/ui/label/label_break_value_unlabeled_break.rs diff --git a/src/test/ui/label/label_break_value_unlabeled_break.stderr b/tests/ui/label/label_break_value_unlabeled_break.stderr similarity index 100% rename from src/test/ui/label/label_break_value_unlabeled_break.stderr rename to tests/ui/label/label_break_value_unlabeled_break.stderr diff --git a/src/test/ui/label/label_misspelled.rs b/tests/ui/label/label_misspelled.rs similarity index 100% rename from src/test/ui/label/label_misspelled.rs rename to tests/ui/label/label_misspelled.rs diff --git a/src/test/ui/label/label_misspelled.stderr b/tests/ui/label/label_misspelled.stderr similarity index 100% rename from src/test/ui/label/label_misspelled.stderr rename to tests/ui/label/label_misspelled.stderr diff --git a/src/test/ui/label/label_misspelled_2.rs b/tests/ui/label/label_misspelled_2.rs similarity index 100% rename from src/test/ui/label/label_misspelled_2.rs rename to tests/ui/label/label_misspelled_2.rs diff --git a/src/test/ui/label/label_misspelled_2.stderr b/tests/ui/label/label_misspelled_2.stderr similarity index 100% rename from src/test/ui/label/label_misspelled_2.stderr rename to tests/ui/label/label_misspelled_2.stderr diff --git a/src/test/ui/lambda-infer-unresolved.rs b/tests/ui/lambda-infer-unresolved.rs similarity index 100% rename from src/test/ui/lambda-infer-unresolved.rs rename to tests/ui/lambda-infer-unresolved.rs diff --git a/src/test/ui/lang-items/fn-fn_mut-call-ill-formed.rs b/tests/ui/lang-items/fn-fn_mut-call-ill-formed.rs similarity index 100% rename from src/test/ui/lang-items/fn-fn_mut-call-ill-formed.rs rename to tests/ui/lang-items/fn-fn_mut-call-ill-formed.rs diff --git a/src/test/ui/lang-items/fn-fn_mut-call-ill-formed.stderr b/tests/ui/lang-items/fn-fn_mut-call-ill-formed.stderr similarity index 100% rename from src/test/ui/lang-items/fn-fn_mut-call-ill-formed.stderr rename to tests/ui/lang-items/fn-fn_mut-call-ill-formed.stderr diff --git a/src/test/ui/lang-items/issue-19660.rs b/tests/ui/lang-items/issue-19660.rs similarity index 100% rename from src/test/ui/lang-items/issue-19660.rs rename to tests/ui/lang-items/issue-19660.rs diff --git a/src/test/ui/lang-items/issue-19660.stderr b/tests/ui/lang-items/issue-19660.stderr similarity index 100% rename from src/test/ui/lang-items/issue-19660.stderr rename to tests/ui/lang-items/issue-19660.stderr diff --git a/src/test/ui/lang-items/issue-31076.rs b/tests/ui/lang-items/issue-31076.rs similarity index 100% rename from src/test/ui/lang-items/issue-31076.rs rename to tests/ui/lang-items/issue-31076.rs diff --git a/src/test/ui/lang-items/issue-31076.stderr b/tests/ui/lang-items/issue-31076.stderr similarity index 100% rename from src/test/ui/lang-items/issue-31076.stderr rename to tests/ui/lang-items/issue-31076.stderr diff --git a/src/test/ui/lang-items/issue-83471.rs b/tests/ui/lang-items/issue-83471.rs similarity index 100% rename from src/test/ui/lang-items/issue-83471.rs rename to tests/ui/lang-items/issue-83471.rs diff --git a/src/test/ui/lang-items/issue-83471.stderr b/tests/ui/lang-items/issue-83471.stderr similarity index 100% rename from src/test/ui/lang-items/issue-83471.stderr rename to tests/ui/lang-items/issue-83471.stderr diff --git a/src/test/ui/lang-items/issue-86238.rs b/tests/ui/lang-items/issue-86238.rs similarity index 100% rename from src/test/ui/lang-items/issue-86238.rs rename to tests/ui/lang-items/issue-86238.rs diff --git a/src/test/ui/lang-items/issue-86238.stderr b/tests/ui/lang-items/issue-86238.stderr similarity index 100% rename from src/test/ui/lang-items/issue-86238.stderr rename to tests/ui/lang-items/issue-86238.stderr diff --git a/src/test/ui/lang-items/issue-87573.rs b/tests/ui/lang-items/issue-87573.rs similarity index 100% rename from src/test/ui/lang-items/issue-87573.rs rename to tests/ui/lang-items/issue-87573.rs diff --git a/src/test/ui/lang-items/issue-87573.stderr b/tests/ui/lang-items/issue-87573.stderr similarity index 100% rename from src/test/ui/lang-items/issue-87573.stderr rename to tests/ui/lang-items/issue-87573.stderr diff --git a/src/test/ui/lang-items/lang-item-generic-requirements.rs b/tests/ui/lang-items/lang-item-generic-requirements.rs similarity index 100% rename from src/test/ui/lang-items/lang-item-generic-requirements.rs rename to tests/ui/lang-items/lang-item-generic-requirements.rs diff --git a/src/test/ui/lang-items/lang-item-generic-requirements.stderr b/tests/ui/lang-items/lang-item-generic-requirements.stderr similarity index 100% rename from src/test/ui/lang-items/lang-item-generic-requirements.stderr rename to tests/ui/lang-items/lang-item-generic-requirements.stderr diff --git a/src/test/ui/lang-items/lang-item-missing-generator.rs b/tests/ui/lang-items/lang-item-missing-generator.rs similarity index 100% rename from src/test/ui/lang-items/lang-item-missing-generator.rs rename to tests/ui/lang-items/lang-item-missing-generator.rs diff --git a/src/test/ui/lang-items/lang-item-missing-generator.stderr b/tests/ui/lang-items/lang-item-missing-generator.stderr similarity index 100% rename from src/test/ui/lang-items/lang-item-missing-generator.stderr rename to tests/ui/lang-items/lang-item-missing-generator.stderr diff --git a/src/test/ui/lang-items/lang-item-missing.rs b/tests/ui/lang-items/lang-item-missing.rs similarity index 100% rename from src/test/ui/lang-items/lang-item-missing.rs rename to tests/ui/lang-items/lang-item-missing.rs diff --git a/src/test/ui/lang-items/lang-item-missing.stderr b/tests/ui/lang-items/lang-item-missing.stderr similarity index 100% rename from src/test/ui/lang-items/lang-item-missing.stderr rename to tests/ui/lang-items/lang-item-missing.stderr diff --git a/src/test/ui/lang-items/missing-clone-for-suggestion.rs b/tests/ui/lang-items/missing-clone-for-suggestion.rs similarity index 100% rename from src/test/ui/lang-items/missing-clone-for-suggestion.rs rename to tests/ui/lang-items/missing-clone-for-suggestion.rs diff --git a/src/test/ui/lang-items/missing-clone-for-suggestion.stderr b/tests/ui/lang-items/missing-clone-for-suggestion.stderr similarity index 100% rename from src/test/ui/lang-items/missing-clone-for-suggestion.stderr rename to tests/ui/lang-items/missing-clone-for-suggestion.stderr diff --git a/src/test/ui/lang-items/no_owned_box_lang_item.rs b/tests/ui/lang-items/no_owned_box_lang_item.rs similarity index 100% rename from src/test/ui/lang-items/no_owned_box_lang_item.rs rename to tests/ui/lang-items/no_owned_box_lang_item.rs diff --git a/src/test/ui/lang-items/no_owned_box_lang_item.stderr b/tests/ui/lang-items/no_owned_box_lang_item.stderr similarity index 100% rename from src/test/ui/lang-items/no_owned_box_lang_item.stderr rename to tests/ui/lang-items/no_owned_box_lang_item.stderr diff --git a/src/test/ui/lang-items/required-lang-item.rs b/tests/ui/lang-items/required-lang-item.rs similarity index 100% rename from src/test/ui/lang-items/required-lang-item.rs rename to tests/ui/lang-items/required-lang-item.rs diff --git a/src/test/ui/lang-items/required-lang-item.stderr b/tests/ui/lang-items/required-lang-item.stderr similarity index 100% rename from src/test/ui/lang-items/required-lang-item.stderr rename to tests/ui/lang-items/required-lang-item.stderr diff --git a/src/test/ui/last-use-in-block.rs b/tests/ui/last-use-in-block.rs similarity index 100% rename from src/test/ui/last-use-in-block.rs rename to tests/ui/last-use-in-block.rs diff --git a/src/test/ui/last-use-in-cap-clause.rs b/tests/ui/last-use-in-cap-clause.rs similarity index 100% rename from src/test/ui/last-use-in-cap-clause.rs rename to tests/ui/last-use-in-cap-clause.rs diff --git a/src/test/ui/last-use-is-capture.rs b/tests/ui/last-use-is-capture.rs similarity index 100% rename from src/test/ui/last-use-is-capture.rs rename to tests/ui/last-use-is-capture.rs diff --git a/src/test/ui/late-bound-lifetimes/auxiliary/upstream_alias.rs b/tests/ui/late-bound-lifetimes/auxiliary/upstream_alias.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/auxiliary/upstream_alias.rs rename to tests/ui/late-bound-lifetimes/auxiliary/upstream_alias.rs diff --git a/src/test/ui/late-bound-lifetimes/cross_crate_alias.rs b/tests/ui/late-bound-lifetimes/cross_crate_alias.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/cross_crate_alias.rs rename to tests/ui/late-bound-lifetimes/cross_crate_alias.rs diff --git a/src/test/ui/late-bound-lifetimes/downgraded_to_early_through_alias.rs b/tests/ui/late-bound-lifetimes/downgraded_to_early_through_alias.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/downgraded_to_early_through_alias.rs rename to tests/ui/late-bound-lifetimes/downgraded_to_early_through_alias.rs diff --git a/src/test/ui/late-bound-lifetimes/issue-36381.rs b/tests/ui/late-bound-lifetimes/issue-36381.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/issue-36381.rs rename to tests/ui/late-bound-lifetimes/issue-36381.rs diff --git a/src/test/ui/late-bound-lifetimes/issue-47511.rs b/tests/ui/late-bound-lifetimes/issue-47511.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/issue-47511.rs rename to tests/ui/late-bound-lifetimes/issue-47511.rs diff --git a/src/test/ui/late-bound-lifetimes/late_bound_through_alias.rs b/tests/ui/late-bound-lifetimes/late_bound_through_alias.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/late_bound_through_alias.rs rename to tests/ui/late-bound-lifetimes/late_bound_through_alias.rs diff --git a/src/test/ui/late-bound-lifetimes/mismatched_arg_count.rs b/tests/ui/late-bound-lifetimes/mismatched_arg_count.rs similarity index 100% rename from src/test/ui/late-bound-lifetimes/mismatched_arg_count.rs rename to tests/ui/late-bound-lifetimes/mismatched_arg_count.rs diff --git a/src/test/ui/late-bound-lifetimes/mismatched_arg_count.stderr b/tests/ui/late-bound-lifetimes/mismatched_arg_count.stderr similarity index 100% rename from src/test/ui/late-bound-lifetimes/mismatched_arg_count.stderr rename to tests/ui/late-bound-lifetimes/mismatched_arg_count.stderr diff --git a/src/test/ui/layout/big-type-no-err.rs b/tests/ui/layout/big-type-no-err.rs similarity index 100% rename from src/test/ui/layout/big-type-no-err.rs rename to tests/ui/layout/big-type-no-err.rs diff --git a/src/test/ui/layout/debug.rs b/tests/ui/layout/debug.rs similarity index 100% rename from src/test/ui/layout/debug.rs rename to tests/ui/layout/debug.rs diff --git a/src/test/ui/layout/debug.stderr b/tests/ui/layout/debug.stderr similarity index 100% rename from src/test/ui/layout/debug.stderr rename to tests/ui/layout/debug.stderr diff --git a/src/test/ui/layout/hexagon-enum.rs b/tests/ui/layout/hexagon-enum.rs similarity index 100% rename from src/test/ui/layout/hexagon-enum.rs rename to tests/ui/layout/hexagon-enum.rs diff --git a/src/test/ui/layout/hexagon-enum.stderr b/tests/ui/layout/hexagon-enum.stderr similarity index 100% rename from src/test/ui/layout/hexagon-enum.stderr rename to tests/ui/layout/hexagon-enum.stderr diff --git a/src/test/ui/layout/homogeneous-aggr-zero-sized-c-struct.rs b/tests/ui/layout/homogeneous-aggr-zero-sized-c-struct.rs similarity index 100% rename from src/test/ui/layout/homogeneous-aggr-zero-sized-c-struct.rs rename to tests/ui/layout/homogeneous-aggr-zero-sized-c-struct.rs diff --git a/src/test/ui/layout/homogeneous-aggr-zero-sized-c-struct.stderr b/tests/ui/layout/homogeneous-aggr-zero-sized-c-struct.stderr similarity index 100% rename from src/test/ui/layout/homogeneous-aggr-zero-sized-c-struct.stderr rename to tests/ui/layout/homogeneous-aggr-zero-sized-c-struct.stderr diff --git a/src/test/ui/layout/homogeneous-aggr-zero-sized-repr-rust.rs b/tests/ui/layout/homogeneous-aggr-zero-sized-repr-rust.rs similarity index 100% rename from src/test/ui/layout/homogeneous-aggr-zero-sized-repr-rust.rs rename to tests/ui/layout/homogeneous-aggr-zero-sized-repr-rust.rs diff --git a/src/test/ui/layout/homogeneous-aggr-zero-sized-repr-rust.stderr b/tests/ui/layout/homogeneous-aggr-zero-sized-repr-rust.stderr similarity index 100% rename from src/test/ui/layout/homogeneous-aggr-zero-sized-repr-rust.stderr rename to tests/ui/layout/homogeneous-aggr-zero-sized-repr-rust.stderr diff --git a/src/test/ui/layout/issue-60431-unsized-tail-behind-projection.rs b/tests/ui/layout/issue-60431-unsized-tail-behind-projection.rs similarity index 100% rename from src/test/ui/layout/issue-60431-unsized-tail-behind-projection.rs rename to tests/ui/layout/issue-60431-unsized-tail-behind-projection.rs diff --git a/src/test/ui/layout/issue-84108.rs b/tests/ui/layout/issue-84108.rs similarity index 100% rename from src/test/ui/layout/issue-84108.rs rename to tests/ui/layout/issue-84108.rs diff --git a/src/test/ui/layout/issue-84108.stderr b/tests/ui/layout/issue-84108.stderr similarity index 100% rename from src/test/ui/layout/issue-84108.stderr rename to tests/ui/layout/issue-84108.stderr diff --git a/src/test/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.rs b/tests/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.rs similarity index 100% rename from src/test/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.rs rename to tests/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.rs diff --git a/src/test/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.stderr b/tests/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.stderr similarity index 100% rename from src/test/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.stderr rename to tests/ui/layout/issue-96158-scalarpair-payload-might-be-uninit.stderr diff --git a/src/test/ui/layout/issue-96185-overaligned-enum.rs b/tests/ui/layout/issue-96185-overaligned-enum.rs similarity index 100% rename from src/test/ui/layout/issue-96185-overaligned-enum.rs rename to tests/ui/layout/issue-96185-overaligned-enum.rs diff --git a/src/test/ui/layout/issue-96185-overaligned-enum.stderr b/tests/ui/layout/issue-96185-overaligned-enum.stderr similarity index 100% rename from src/test/ui/layout/issue-96185-overaligned-enum.stderr rename to tests/ui/layout/issue-96185-overaligned-enum.stderr diff --git a/src/test/ui/layout/thin-meta-implies-thin-ptr.rs b/tests/ui/layout/thin-meta-implies-thin-ptr.rs similarity index 100% rename from src/test/ui/layout/thin-meta-implies-thin-ptr.rs rename to tests/ui/layout/thin-meta-implies-thin-ptr.rs diff --git a/src/test/ui/layout/thumb-enum.rs b/tests/ui/layout/thumb-enum.rs similarity index 100% rename from src/test/ui/layout/thumb-enum.rs rename to tests/ui/layout/thumb-enum.rs diff --git a/src/test/ui/layout/thumb-enum.stderr b/tests/ui/layout/thumb-enum.stderr similarity index 100% rename from src/test/ui/layout/thumb-enum.stderr rename to tests/ui/layout/thumb-enum.stderr diff --git a/src/test/ui/layout/unsafe-cell-hides-niche.rs b/tests/ui/layout/unsafe-cell-hides-niche.rs similarity index 100% rename from src/test/ui/layout/unsafe-cell-hides-niche.rs rename to tests/ui/layout/unsafe-cell-hides-niche.rs diff --git a/src/test/ui/layout/valid_range_oob.rs b/tests/ui/layout/valid_range_oob.rs similarity index 100% rename from src/test/ui/layout/valid_range_oob.rs rename to tests/ui/layout/valid_range_oob.rs diff --git a/src/test/ui/layout/valid_range_oob.stderr b/tests/ui/layout/valid_range_oob.stderr similarity index 100% rename from src/test/ui/layout/valid_range_oob.stderr rename to tests/ui/layout/valid_range_oob.stderr diff --git a/src/test/ui/layout/zero-sized-array-enum-niche.rs b/tests/ui/layout/zero-sized-array-enum-niche.rs similarity index 100% rename from src/test/ui/layout/zero-sized-array-enum-niche.rs rename to tests/ui/layout/zero-sized-array-enum-niche.rs diff --git a/src/test/ui/layout/zero-sized-array-enum-niche.stderr b/tests/ui/layout/zero-sized-array-enum-niche.stderr similarity index 100% rename from src/test/ui/layout/zero-sized-array-enum-niche.stderr rename to tests/ui/layout/zero-sized-array-enum-niche.stderr diff --git a/src/test/ui/layout/zero-sized-array-union.rs b/tests/ui/layout/zero-sized-array-union.rs similarity index 100% rename from src/test/ui/layout/zero-sized-array-union.rs rename to tests/ui/layout/zero-sized-array-union.rs diff --git a/src/test/ui/layout/zero-sized-array-union.stderr b/tests/ui/layout/zero-sized-array-union.stderr similarity index 100% rename from src/test/ui/layout/zero-sized-array-union.stderr rename to tests/ui/layout/zero-sized-array-union.stderr diff --git a/src/test/ui/lazy-and-or.rs b/tests/ui/lazy-and-or.rs similarity index 100% rename from src/test/ui/lazy-and-or.rs rename to tests/ui/lazy-and-or.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/branches.rs b/tests/ui/lazy-type-alias-impl-trait/branches.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/branches.rs rename to tests/ui/lazy-type-alias-impl-trait/branches.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/branches.stderr b/tests/ui/lazy-type-alias-impl-trait/branches.stderr similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/branches.stderr rename to tests/ui/lazy-type-alias-impl-trait/branches.stderr diff --git a/src/test/ui/lazy-type-alias-impl-trait/branches2.rs b/tests/ui/lazy-type-alias-impl-trait/branches2.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/branches2.rs rename to tests/ui/lazy-type-alias-impl-trait/branches2.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/branches3.rs b/tests/ui/lazy-type-alias-impl-trait/branches3.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/branches3.rs rename to tests/ui/lazy-type-alias-impl-trait/branches3.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/branches3.stderr b/tests/ui/lazy-type-alias-impl-trait/branches3.stderr similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/branches3.stderr rename to tests/ui/lazy-type-alias-impl-trait/branches3.stderr diff --git a/src/test/ui/lazy-type-alias-impl-trait/freeze_cycle.rs b/tests/ui/lazy-type-alias-impl-trait/freeze_cycle.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/freeze_cycle.rs rename to tests/ui/lazy-type-alias-impl-trait/freeze_cycle.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/infer_cross_function.rs b/tests/ui/lazy-type-alias-impl-trait/infer_cross_function.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/infer_cross_function.rs rename to tests/ui/lazy-type-alias-impl-trait/infer_cross_function.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/lifetime_inference.rs b/tests/ui/lazy-type-alias-impl-trait/lifetime_inference.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/lifetime_inference.rs rename to tests/ui/lazy-type-alias-impl-trait/lifetime_inference.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/nested.rs b/tests/ui/lazy-type-alias-impl-trait/nested.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/nested.rs rename to tests/ui/lazy-type-alias-impl-trait/nested.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/opaque_vs_opaque.rs b/tests/ui/lazy-type-alias-impl-trait/opaque_vs_opaque.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/opaque_vs_opaque.rs rename to tests/ui/lazy-type-alias-impl-trait/opaque_vs_opaque.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/recursion.rs b/tests/ui/lazy-type-alias-impl-trait/recursion.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/recursion.rs rename to tests/ui/lazy-type-alias-impl-trait/recursion.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/recursion2.rs b/tests/ui/lazy-type-alias-impl-trait/recursion2.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/recursion2.rs rename to tests/ui/lazy-type-alias-impl-trait/recursion2.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/recursion3.rs b/tests/ui/lazy-type-alias-impl-trait/recursion3.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/recursion3.rs rename to tests/ui/lazy-type-alias-impl-trait/recursion3.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/recursion3.stderr b/tests/ui/lazy-type-alias-impl-trait/recursion3.stderr similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/recursion3.stderr rename to tests/ui/lazy-type-alias-impl-trait/recursion3.stderr diff --git a/src/test/ui/lazy-type-alias-impl-trait/recursion4.rs b/tests/ui/lazy-type-alias-impl-trait/recursion4.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/recursion4.rs rename to tests/ui/lazy-type-alias-impl-trait/recursion4.rs diff --git a/src/test/ui/lazy-type-alias-impl-trait/recursion4.stderr b/tests/ui/lazy-type-alias-impl-trait/recursion4.stderr similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/recursion4.stderr rename to tests/ui/lazy-type-alias-impl-trait/recursion4.stderr diff --git a/src/test/ui/lazy-type-alias-impl-trait/unsized_sized_opaque.rs b/tests/ui/lazy-type-alias-impl-trait/unsized_sized_opaque.rs similarity index 100% rename from src/test/ui/lazy-type-alias-impl-trait/unsized_sized_opaque.rs rename to tests/ui/lazy-type-alias-impl-trait/unsized_sized_opaque.rs diff --git a/src/test/ui/let-else/const-fn.rs b/tests/ui/let-else/const-fn.rs similarity index 100% rename from src/test/ui/let-else/const-fn.rs rename to tests/ui/let-else/const-fn.rs diff --git a/src/test/ui/let-else/issue-100103.rs b/tests/ui/let-else/issue-100103.rs similarity index 100% rename from src/test/ui/let-else/issue-100103.rs rename to tests/ui/let-else/issue-100103.rs diff --git a/src/test/ui/let-else/issue-102317.rs b/tests/ui/let-else/issue-102317.rs similarity index 100% rename from src/test/ui/let-else/issue-102317.rs rename to tests/ui/let-else/issue-102317.rs diff --git a/src/test/ui/let-else/issue-94176.rs b/tests/ui/let-else/issue-94176.rs similarity index 100% rename from src/test/ui/let-else/issue-94176.rs rename to tests/ui/let-else/issue-94176.rs diff --git a/src/test/ui/let-else/issue-94176.stderr b/tests/ui/let-else/issue-94176.stderr similarity index 100% rename from src/test/ui/let-else/issue-94176.stderr rename to tests/ui/let-else/issue-94176.stderr diff --git a/src/test/ui/let-else/issue-99975.rs b/tests/ui/let-else/issue-99975.rs similarity index 100% rename from src/test/ui/let-else/issue-99975.rs rename to tests/ui/let-else/issue-99975.rs diff --git a/src/test/ui/let-else/let-else-allow-in-expr.rs b/tests/ui/let-else/let-else-allow-in-expr.rs similarity index 100% rename from src/test/ui/let-else/let-else-allow-in-expr.rs rename to tests/ui/let-else/let-else-allow-in-expr.rs diff --git a/src/test/ui/let-else/let-else-allow-in-expr.stderr b/tests/ui/let-else/let-else-allow-in-expr.stderr similarity index 100% rename from src/test/ui/let-else/let-else-allow-in-expr.stderr rename to tests/ui/let-else/let-else-allow-in-expr.stderr diff --git a/src/test/ui/let-else/let-else-allow-unused.rs b/tests/ui/let-else/let-else-allow-unused.rs similarity index 100% rename from src/test/ui/let-else/let-else-allow-unused.rs rename to tests/ui/let-else/let-else-allow-unused.rs diff --git a/src/test/ui/let-else/let-else-allow-unused.stderr b/tests/ui/let-else/let-else-allow-unused.stderr similarity index 100% rename from src/test/ui/let-else/let-else-allow-unused.stderr rename to tests/ui/let-else/let-else-allow-unused.stderr diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut-annotated.rs b/tests/ui/let-else/let-else-binding-explicit-mut-annotated.rs similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut-annotated.rs rename to tests/ui/let-else/let-else-binding-explicit-mut-annotated.rs diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut-annotated.stderr b/tests/ui/let-else/let-else-binding-explicit-mut-annotated.stderr similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut-annotated.stderr rename to tests/ui/let-else/let-else-binding-explicit-mut-annotated.stderr diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut-borrow.rs b/tests/ui/let-else/let-else-binding-explicit-mut-borrow.rs similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut-borrow.rs rename to tests/ui/let-else/let-else-binding-explicit-mut-borrow.rs diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut-borrow.stderr b/tests/ui/let-else/let-else-binding-explicit-mut-borrow.stderr similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut-borrow.stderr rename to tests/ui/let-else/let-else-binding-explicit-mut-borrow.stderr diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut-pass.rs b/tests/ui/let-else/let-else-binding-explicit-mut-pass.rs similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut-pass.rs rename to tests/ui/let-else/let-else-binding-explicit-mut-pass.rs diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut.rs b/tests/ui/let-else/let-else-binding-explicit-mut.rs similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut.rs rename to tests/ui/let-else/let-else-binding-explicit-mut.rs diff --git a/src/test/ui/let-else/let-else-binding-explicit-mut.stderr b/tests/ui/let-else/let-else-binding-explicit-mut.stderr similarity index 100% rename from src/test/ui/let-else/let-else-binding-explicit-mut.stderr rename to tests/ui/let-else/let-else-binding-explicit-mut.stderr diff --git a/src/test/ui/let-else/let-else-binding-immutable.rs b/tests/ui/let-else/let-else-binding-immutable.rs similarity index 100% rename from src/test/ui/let-else/let-else-binding-immutable.rs rename to tests/ui/let-else/let-else-binding-immutable.rs diff --git a/src/test/ui/let-else/let-else-binding-immutable.stderr b/tests/ui/let-else/let-else-binding-immutable.stderr similarity index 100% rename from src/test/ui/let-else/let-else-binding-immutable.stderr rename to tests/ui/let-else/let-else-binding-immutable.stderr diff --git a/src/test/ui/let-else/let-else-bindings.rs b/tests/ui/let-else/let-else-bindings.rs similarity index 96% rename from src/test/ui/let-else/let-else-bindings.rs rename to tests/ui/let-else/let-else-bindings.rs index 7d2cad978fc02..53ac398b8f523 100644 --- a/src/test/ui/let-else/let-else-bindings.rs +++ b/tests/ui/let-else/let-else-bindings.rs @@ -1,5 +1,5 @@ // run-pass -// adapted from src/test/ui/binding/if-let.rs +// adapted from tests/ui/binding/if-let.rs #![allow(dead_code)] diff --git a/src/test/ui/let-else/let-else-bool-binop-init.fixed b/tests/ui/let-else/let-else-bool-binop-init.fixed similarity index 100% rename from src/test/ui/let-else/let-else-bool-binop-init.fixed rename to tests/ui/let-else/let-else-bool-binop-init.fixed diff --git a/src/test/ui/let-else/let-else-bool-binop-init.rs b/tests/ui/let-else/let-else-bool-binop-init.rs similarity index 100% rename from src/test/ui/let-else/let-else-bool-binop-init.rs rename to tests/ui/let-else/let-else-bool-binop-init.rs diff --git a/src/test/ui/let-else/let-else-bool-binop-init.stderr b/tests/ui/let-else/let-else-bool-binop-init.stderr similarity index 100% rename from src/test/ui/let-else/let-else-bool-binop-init.stderr rename to tests/ui/let-else/let-else-bool-binop-init.stderr diff --git a/src/test/ui/let-else/let-else-brace-before-else.fixed b/tests/ui/let-else/let-else-brace-before-else.fixed similarity index 100% rename from src/test/ui/let-else/let-else-brace-before-else.fixed rename to tests/ui/let-else/let-else-brace-before-else.fixed diff --git a/src/test/ui/let-else/let-else-brace-before-else.rs b/tests/ui/let-else/let-else-brace-before-else.rs similarity index 100% rename from src/test/ui/let-else/let-else-brace-before-else.rs rename to tests/ui/let-else/let-else-brace-before-else.rs diff --git a/src/test/ui/let-else/let-else-brace-before-else.stderr b/tests/ui/let-else/let-else-brace-before-else.stderr similarity index 100% rename from src/test/ui/let-else/let-else-brace-before-else.stderr rename to tests/ui/let-else/let-else-brace-before-else.stderr diff --git a/src/test/ui/let-else/let-else-check.rs b/tests/ui/let-else/let-else-check.rs similarity index 100% rename from src/test/ui/let-else/let-else-check.rs rename to tests/ui/let-else/let-else-check.rs diff --git a/src/test/ui/let-else/let-else-check.stderr b/tests/ui/let-else/let-else-check.stderr similarity index 100% rename from src/test/ui/let-else/let-else-check.stderr rename to tests/ui/let-else/let-else-check.stderr diff --git a/src/test/ui/let-else/let-else-deref-coercion-annotated.rs b/tests/ui/let-else/let-else-deref-coercion-annotated.rs similarity index 100% rename from src/test/ui/let-else/let-else-deref-coercion-annotated.rs rename to tests/ui/let-else/let-else-deref-coercion-annotated.rs diff --git a/src/test/ui/let-else/let-else-deref-coercion.rs b/tests/ui/let-else/let-else-deref-coercion.rs similarity index 100% rename from src/test/ui/let-else/let-else-deref-coercion.rs rename to tests/ui/let-else/let-else-deref-coercion.rs diff --git a/src/test/ui/let-else/let-else-deref-coercion.stderr b/tests/ui/let-else/let-else-deref-coercion.stderr similarity index 100% rename from src/test/ui/let-else/let-else-deref-coercion.stderr rename to tests/ui/let-else/let-else-deref-coercion.stderr diff --git a/src/test/ui/let-else/let-else-destructuring.rs b/tests/ui/let-else/let-else-destructuring.rs similarity index 100% rename from src/test/ui/let-else/let-else-destructuring.rs rename to tests/ui/let-else/let-else-destructuring.rs diff --git a/src/test/ui/let-else/let-else-destructuring.stderr b/tests/ui/let-else/let-else-destructuring.stderr similarity index 100% rename from src/test/ui/let-else/let-else-destructuring.stderr rename to tests/ui/let-else/let-else-destructuring.stderr diff --git a/src/test/ui/let-else/let-else-drop-order.rs b/tests/ui/let-else/let-else-drop-order.rs similarity index 100% rename from src/test/ui/let-else/let-else-drop-order.rs rename to tests/ui/let-else/let-else-drop-order.rs diff --git a/src/test/ui/let-else/let-else-drop-order.run.stdout b/tests/ui/let-else/let-else-drop-order.run.stdout similarity index 100% rename from src/test/ui/let-else/let-else-drop-order.run.stdout rename to tests/ui/let-else/let-else-drop-order.run.stdout diff --git a/src/test/ui/let-else/let-else-if.rs b/tests/ui/let-else/let-else-if.rs similarity index 100% rename from src/test/ui/let-else/let-else-if.rs rename to tests/ui/let-else/let-else-if.rs diff --git a/src/test/ui/let-else/let-else-if.stderr b/tests/ui/let-else/let-else-if.stderr similarity index 100% rename from src/test/ui/let-else/let-else-if.stderr rename to tests/ui/let-else/let-else-if.stderr diff --git a/src/test/ui/let-else/let-else-irrefutable.rs b/tests/ui/let-else/let-else-irrefutable.rs similarity index 100% rename from src/test/ui/let-else/let-else-irrefutable.rs rename to tests/ui/let-else/let-else-irrefutable.rs diff --git a/src/test/ui/let-else/let-else-irrefutable.stderr b/tests/ui/let-else/let-else-irrefutable.stderr similarity index 100% rename from src/test/ui/let-else/let-else-irrefutable.stderr rename to tests/ui/let-else/let-else-irrefutable.stderr diff --git a/src/test/ui/let-else/let-else-missing-semicolon.rs b/tests/ui/let-else/let-else-missing-semicolon.rs similarity index 100% rename from src/test/ui/let-else/let-else-missing-semicolon.rs rename to tests/ui/let-else/let-else-missing-semicolon.rs diff --git a/src/test/ui/let-else/let-else-missing-semicolon.stderr b/tests/ui/let-else/let-else-missing-semicolon.stderr similarity index 100% rename from src/test/ui/let-else/let-else-missing-semicolon.stderr rename to tests/ui/let-else/let-else-missing-semicolon.stderr diff --git a/src/test/ui/let-else/let-else-no-double-error.rs b/tests/ui/let-else/let-else-no-double-error.rs similarity index 100% rename from src/test/ui/let-else/let-else-no-double-error.rs rename to tests/ui/let-else/let-else-no-double-error.rs diff --git a/src/test/ui/let-else/let-else-no-double-error.stderr b/tests/ui/let-else/let-else-no-double-error.stderr similarity index 100% rename from src/test/ui/let-else/let-else-no-double-error.stderr rename to tests/ui/let-else/let-else-no-double-error.stderr diff --git a/src/test/ui/let-else/let-else-non-copy.rs b/tests/ui/let-else/let-else-non-copy.rs similarity index 100% rename from src/test/ui/let-else/let-else-non-copy.rs rename to tests/ui/let-else/let-else-non-copy.rs diff --git a/src/test/ui/let-else/let-else-non-diverging.rs b/tests/ui/let-else/let-else-non-diverging.rs similarity index 100% rename from src/test/ui/let-else/let-else-non-diverging.rs rename to tests/ui/let-else/let-else-non-diverging.rs diff --git a/src/test/ui/let-else/let-else-non-diverging.stderr b/tests/ui/let-else/let-else-non-diverging.stderr similarity index 100% rename from src/test/ui/let-else/let-else-non-diverging.stderr rename to tests/ui/let-else/let-else-non-diverging.stderr diff --git a/src/test/ui/let-else/let-else-ref-bindings-pass.rs b/tests/ui/let-else/let-else-ref-bindings-pass.rs similarity index 100% rename from src/test/ui/let-else/let-else-ref-bindings-pass.rs rename to tests/ui/let-else/let-else-ref-bindings-pass.rs diff --git a/src/test/ui/let-else/let-else-ref-bindings.rs b/tests/ui/let-else/let-else-ref-bindings.rs similarity index 100% rename from src/test/ui/let-else/let-else-ref-bindings.rs rename to tests/ui/let-else/let-else-ref-bindings.rs diff --git a/src/test/ui/let-else/let-else-ref-bindings.stderr b/tests/ui/let-else/let-else-ref-bindings.stderr similarity index 100% rename from src/test/ui/let-else/let-else-ref-bindings.stderr rename to tests/ui/let-else/let-else-ref-bindings.stderr diff --git a/src/test/ui/let-else/let-else-run-pass.rs b/tests/ui/let-else/let-else-run-pass.rs similarity index 100% rename from src/test/ui/let-else/let-else-run-pass.rs rename to tests/ui/let-else/let-else-run-pass.rs diff --git a/src/test/ui/let-else/let-else-scope.rs b/tests/ui/let-else/let-else-scope.rs similarity index 100% rename from src/test/ui/let-else/let-else-scope.rs rename to tests/ui/let-else/let-else-scope.rs diff --git a/src/test/ui/let-else/let-else-scope.stderr b/tests/ui/let-else/let-else-scope.stderr similarity index 100% rename from src/test/ui/let-else/let-else-scope.stderr rename to tests/ui/let-else/let-else-scope.stderr diff --git a/src/test/ui/let-else/let-else-slicing-error.rs b/tests/ui/let-else/let-else-slicing-error.rs similarity index 100% rename from src/test/ui/let-else/let-else-slicing-error.rs rename to tests/ui/let-else/let-else-slicing-error.rs diff --git a/src/test/ui/let-else/let-else-slicing-error.stderr b/tests/ui/let-else/let-else-slicing-error.stderr similarity index 100% rename from src/test/ui/let-else/let-else-slicing-error.stderr rename to tests/ui/let-else/let-else-slicing-error.stderr diff --git a/src/test/ui/let-else/let-else-source-expr-nomove-pass.rs b/tests/ui/let-else/let-else-source-expr-nomove-pass.rs similarity index 100% rename from src/test/ui/let-else/let-else-source-expr-nomove-pass.rs rename to tests/ui/let-else/let-else-source-expr-nomove-pass.rs diff --git a/src/test/ui/let-else/let-else-temp-borrowck.rs b/tests/ui/let-else/let-else-temp-borrowck.rs similarity index 100% rename from src/test/ui/let-else/let-else-temp-borrowck.rs rename to tests/ui/let-else/let-else-temp-borrowck.rs diff --git a/src/test/ui/let-else/let-else-temporary-lifetime.rs b/tests/ui/let-else/let-else-temporary-lifetime.rs similarity index 100% rename from src/test/ui/let-else/let-else-temporary-lifetime.rs rename to tests/ui/let-else/let-else-temporary-lifetime.rs diff --git a/src/test/ui/let-else/let-else-then-diverge.rs b/tests/ui/let-else/let-else-then-diverge.rs similarity index 100% rename from src/test/ui/let-else/let-else-then-diverge.rs rename to tests/ui/let-else/let-else-then-diverge.rs diff --git a/src/test/ui/let-else/let-else-then-diverge.stderr b/tests/ui/let-else/let-else-then-diverge.stderr similarity index 100% rename from src/test/ui/let-else/let-else-then-diverge.stderr rename to tests/ui/let-else/let-else-then-diverge.stderr diff --git a/src/test/ui/let-else/let-else.rs b/tests/ui/let-else/let-else.rs similarity index 100% rename from src/test/ui/let-else/let-else.rs rename to tests/ui/let-else/let-else.rs diff --git a/src/test/ui/lexer/error-stage.rs b/tests/ui/lexer/error-stage.rs similarity index 100% rename from src/test/ui/lexer/error-stage.rs rename to tests/ui/lexer/error-stage.rs diff --git a/src/test/ui/lexer/error-stage.stderr b/tests/ui/lexer/error-stage.stderr similarity index 100% rename from src/test/ui/lexer/error-stage.stderr rename to tests/ui/lexer/error-stage.stderr diff --git a/src/test/ui/lexer/lex-bad-binary-literal.rs b/tests/ui/lexer/lex-bad-binary-literal.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-binary-literal.rs rename to tests/ui/lexer/lex-bad-binary-literal.rs diff --git a/src/test/ui/lexer/lex-bad-binary-literal.stderr b/tests/ui/lexer/lex-bad-binary-literal.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-binary-literal.stderr rename to tests/ui/lexer/lex-bad-binary-literal.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-1.rs b/tests/ui/lexer/lex-bad-char-literals-1.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-1.rs rename to tests/ui/lexer/lex-bad-char-literals-1.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-1.stderr b/tests/ui/lexer/lex-bad-char-literals-1.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-1.stderr rename to tests/ui/lexer/lex-bad-char-literals-1.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-2.rs b/tests/ui/lexer/lex-bad-char-literals-2.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-2.rs rename to tests/ui/lexer/lex-bad-char-literals-2.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-2.stderr b/tests/ui/lexer/lex-bad-char-literals-2.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-2.stderr rename to tests/ui/lexer/lex-bad-char-literals-2.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-3.rs b/tests/ui/lexer/lex-bad-char-literals-3.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-3.rs rename to tests/ui/lexer/lex-bad-char-literals-3.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-3.stderr b/tests/ui/lexer/lex-bad-char-literals-3.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-3.stderr rename to tests/ui/lexer/lex-bad-char-literals-3.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-4.rs b/tests/ui/lexer/lex-bad-char-literals-4.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-4.rs rename to tests/ui/lexer/lex-bad-char-literals-4.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-4.stderr b/tests/ui/lexer/lex-bad-char-literals-4.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-4.stderr rename to tests/ui/lexer/lex-bad-char-literals-4.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-5.rs b/tests/ui/lexer/lex-bad-char-literals-5.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-5.rs rename to tests/ui/lexer/lex-bad-char-literals-5.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-5.stderr b/tests/ui/lexer/lex-bad-char-literals-5.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-5.stderr rename to tests/ui/lexer/lex-bad-char-literals-5.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-6.rs b/tests/ui/lexer/lex-bad-char-literals-6.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-6.rs rename to tests/ui/lexer/lex-bad-char-literals-6.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-6.stderr b/tests/ui/lexer/lex-bad-char-literals-6.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-6.stderr rename to tests/ui/lexer/lex-bad-char-literals-6.stderr diff --git a/src/test/ui/lexer/lex-bad-char-literals-7.rs b/tests/ui/lexer/lex-bad-char-literals-7.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-7.rs rename to tests/ui/lexer/lex-bad-char-literals-7.rs diff --git a/src/test/ui/lexer/lex-bad-char-literals-7.stderr b/tests/ui/lexer/lex-bad-char-literals-7.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-char-literals-7.stderr rename to tests/ui/lexer/lex-bad-char-literals-7.stderr diff --git a/src/test/ui/lexer/lex-bad-numeric-literals.rs b/tests/ui/lexer/lex-bad-numeric-literals.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-numeric-literals.rs rename to tests/ui/lexer/lex-bad-numeric-literals.rs diff --git a/src/test/ui/lexer/lex-bad-numeric-literals.stderr b/tests/ui/lexer/lex-bad-numeric-literals.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-numeric-literals.stderr rename to tests/ui/lexer/lex-bad-numeric-literals.stderr diff --git a/src/test/ui/lexer/lex-bad-octal-literal.rs b/tests/ui/lexer/lex-bad-octal-literal.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-octal-literal.rs rename to tests/ui/lexer/lex-bad-octal-literal.rs diff --git a/src/test/ui/lexer/lex-bad-octal-literal.stderr b/tests/ui/lexer/lex-bad-octal-literal.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-octal-literal.stderr rename to tests/ui/lexer/lex-bad-octal-literal.stderr diff --git a/src/test/ui/lexer/lex-bad-token.rs b/tests/ui/lexer/lex-bad-token.rs similarity index 100% rename from src/test/ui/lexer/lex-bad-token.rs rename to tests/ui/lexer/lex-bad-token.rs diff --git a/src/test/ui/lexer/lex-bad-token.stderr b/tests/ui/lexer/lex-bad-token.stderr similarity index 100% rename from src/test/ui/lexer/lex-bad-token.stderr rename to tests/ui/lexer/lex-bad-token.stderr diff --git a/src/test/ui/lexer/lex-bare-cr-nondoc-comment.rs b/tests/ui/lexer/lex-bare-cr-nondoc-comment.rs similarity index 100% rename from src/test/ui/lexer/lex-bare-cr-nondoc-comment.rs rename to tests/ui/lexer/lex-bare-cr-nondoc-comment.rs diff --git a/src/test/ui/lexer/lex-bare-cr-string-literal-doc-comment.rs b/tests/ui/lexer/lex-bare-cr-string-literal-doc-comment.rs similarity index 100% rename from src/test/ui/lexer/lex-bare-cr-string-literal-doc-comment.rs rename to tests/ui/lexer/lex-bare-cr-string-literal-doc-comment.rs diff --git a/src/test/ui/lexer/lex-bare-cr-string-literal-doc-comment.stderr b/tests/ui/lexer/lex-bare-cr-string-literal-doc-comment.stderr similarity index 100% rename from src/test/ui/lexer/lex-bare-cr-string-literal-doc-comment.stderr rename to tests/ui/lexer/lex-bare-cr-string-literal-doc-comment.stderr diff --git a/src/test/ui/lexer/lex-emoji-identifiers.rs b/tests/ui/lexer/lex-emoji-identifiers.rs similarity index 100% rename from src/test/ui/lexer/lex-emoji-identifiers.rs rename to tests/ui/lexer/lex-emoji-identifiers.rs diff --git a/src/test/ui/lexer/lex-emoji-identifiers.stderr b/tests/ui/lexer/lex-emoji-identifiers.stderr similarity index 100% rename from src/test/ui/lexer/lex-emoji-identifiers.stderr rename to tests/ui/lexer/lex-emoji-identifiers.stderr diff --git a/src/test/ui/lexer/lex-stray-backslash.rs b/tests/ui/lexer/lex-stray-backslash.rs similarity index 100% rename from src/test/ui/lexer/lex-stray-backslash.rs rename to tests/ui/lexer/lex-stray-backslash.rs diff --git a/src/test/ui/lexer/lex-stray-backslash.stderr b/tests/ui/lexer/lex-stray-backslash.stderr similarity index 100% rename from src/test/ui/lexer/lex-stray-backslash.stderr rename to tests/ui/lexer/lex-stray-backslash.stderr diff --git a/src/test/ui/lexer/lexer-crlf-line-endings-string-literal-doc-comment.rs b/tests/ui/lexer/lexer-crlf-line-endings-string-literal-doc-comment.rs similarity index 100% rename from src/test/ui/lexer/lexer-crlf-line-endings-string-literal-doc-comment.rs rename to tests/ui/lexer/lexer-crlf-line-endings-string-literal-doc-comment.rs diff --git a/src/test/ui/lexical-scopes.rs b/tests/ui/lexical-scopes.rs similarity index 100% rename from src/test/ui/lexical-scopes.rs rename to tests/ui/lexical-scopes.rs diff --git a/src/test/ui/lexical-scopes.stderr b/tests/ui/lexical-scopes.stderr similarity index 100% rename from src/test/ui/lexical-scopes.stderr rename to tests/ui/lexical-scopes.stderr diff --git a/src/test/ui/lexical-scoping.rs b/tests/ui/lexical-scoping.rs similarity index 100% rename from src/test/ui/lexical-scoping.rs rename to tests/ui/lexical-scoping.rs diff --git a/src/test/ui/lifetimes/auxiliary/issue-91763-aux.rs b/tests/ui/lifetimes/auxiliary/issue-91763-aux.rs similarity index 100% rename from src/test/ui/lifetimes/auxiliary/issue-91763-aux.rs rename to tests/ui/lifetimes/auxiliary/issue-91763-aux.rs diff --git a/src/test/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs b/tests/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs similarity index 100% rename from src/test/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs rename to tests/ui/lifetimes/auxiliary/lifetime_bound_will_change_warning_lib.rs diff --git a/src/test/ui/lifetimes/bare-trait-object-borrowck.rs b/tests/ui/lifetimes/bare-trait-object-borrowck.rs similarity index 100% rename from src/test/ui/lifetimes/bare-trait-object-borrowck.rs rename to tests/ui/lifetimes/bare-trait-object-borrowck.rs diff --git a/src/test/ui/lifetimes/bare-trait-object.rs b/tests/ui/lifetimes/bare-trait-object.rs similarity index 100% rename from src/test/ui/lifetimes/bare-trait-object.rs rename to tests/ui/lifetimes/bare-trait-object.rs diff --git a/src/test/ui/lifetimes/borrowck-let-suggestion.rs b/tests/ui/lifetimes/borrowck-let-suggestion.rs similarity index 100% rename from src/test/ui/lifetimes/borrowck-let-suggestion.rs rename to tests/ui/lifetimes/borrowck-let-suggestion.rs diff --git a/src/test/ui/lifetimes/borrowck-let-suggestion.stderr b/tests/ui/lifetimes/borrowck-let-suggestion.stderr similarity index 100% rename from src/test/ui/lifetimes/borrowck-let-suggestion.stderr rename to tests/ui/lifetimes/borrowck-let-suggestion.stderr diff --git a/src/test/ui/lifetimes/conflicting-bounds.rs b/tests/ui/lifetimes/conflicting-bounds.rs similarity index 100% rename from src/test/ui/lifetimes/conflicting-bounds.rs rename to tests/ui/lifetimes/conflicting-bounds.rs diff --git a/src/test/ui/lifetimes/conflicting-bounds.stderr b/tests/ui/lifetimes/conflicting-bounds.stderr similarity index 100% rename from src/test/ui/lifetimes/conflicting-bounds.stderr rename to tests/ui/lifetimes/conflicting-bounds.stderr diff --git a/src/test/ui/lifetimes/copy_modulo_regions.rs b/tests/ui/lifetimes/copy_modulo_regions.rs similarity index 100% rename from src/test/ui/lifetimes/copy_modulo_regions.rs rename to tests/ui/lifetimes/copy_modulo_regions.rs diff --git a/src/test/ui/lifetimes/copy_modulo_regions.stderr b/tests/ui/lifetimes/copy_modulo_regions.stderr similarity index 100% rename from src/test/ui/lifetimes/copy_modulo_regions.stderr rename to tests/ui/lifetimes/copy_modulo_regions.stderr diff --git a/src/test/ui/lifetimes/elided-lifetime-in-param-pat.rs b/tests/ui/lifetimes/elided-lifetime-in-param-pat.rs similarity index 100% rename from src/test/ui/lifetimes/elided-lifetime-in-param-pat.rs rename to tests/ui/lifetimes/elided-lifetime-in-param-pat.rs diff --git a/src/test/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs b/tests/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs similarity index 100% rename from src/test/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs rename to tests/ui/lifetimes/elided-lifetime-in-path-in-impl-Fn.rs diff --git a/src/test/ui/lifetimes/elided-lifetime-in-path-in-pat.rs b/tests/ui/lifetimes/elided-lifetime-in-path-in-pat.rs similarity index 100% rename from src/test/ui/lifetimes/elided-lifetime-in-path-in-pat.rs rename to tests/ui/lifetimes/elided-lifetime-in-path-in-pat.rs diff --git a/src/test/ui/lifetimes/elided-lifetime-in-path-in-type-relative-expression.rs b/tests/ui/lifetimes/elided-lifetime-in-path-in-type-relative-expression.rs similarity index 100% rename from src/test/ui/lifetimes/elided-lifetime-in-path-in-type-relative-expression.rs rename to tests/ui/lifetimes/elided-lifetime-in-path-in-type-relative-expression.rs diff --git a/src/test/ui/lifetimes/fullwidth-ampersand.rs b/tests/ui/lifetimes/fullwidth-ampersand.rs similarity index 100% rename from src/test/ui/lifetimes/fullwidth-ampersand.rs rename to tests/ui/lifetimes/fullwidth-ampersand.rs diff --git a/src/test/ui/lifetimes/fullwidth-ampersand.stderr b/tests/ui/lifetimes/fullwidth-ampersand.stderr similarity index 100% rename from src/test/ui/lifetimes/fullwidth-ampersand.stderr rename to tests/ui/lifetimes/fullwidth-ampersand.stderr diff --git a/src/test/ui/lifetimes/issue-105227.fixed b/tests/ui/lifetimes/issue-105227.fixed similarity index 100% rename from src/test/ui/lifetimes/issue-105227.fixed rename to tests/ui/lifetimes/issue-105227.fixed diff --git a/src/test/ui/lifetimes/issue-105227.rs b/tests/ui/lifetimes/issue-105227.rs similarity index 100% rename from src/test/ui/lifetimes/issue-105227.rs rename to tests/ui/lifetimes/issue-105227.rs diff --git a/src/test/ui/lifetimes/issue-105227.stderr b/tests/ui/lifetimes/issue-105227.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-105227.stderr rename to tests/ui/lifetimes/issue-105227.stderr diff --git a/src/test/ui/lifetimes/issue-17728.rs b/tests/ui/lifetimes/issue-17728.rs similarity index 100% rename from src/test/ui/lifetimes/issue-17728.rs rename to tests/ui/lifetimes/issue-17728.rs diff --git a/src/test/ui/lifetimes/issue-17728.stderr b/tests/ui/lifetimes/issue-17728.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-17728.stderr rename to tests/ui/lifetimes/issue-17728.stderr diff --git a/src/test/ui/lifetimes/issue-26638.rs b/tests/ui/lifetimes/issue-26638.rs similarity index 100% rename from src/test/ui/lifetimes/issue-26638.rs rename to tests/ui/lifetimes/issue-26638.rs diff --git a/src/test/ui/lifetimes/issue-26638.stderr b/tests/ui/lifetimes/issue-26638.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-26638.stderr rename to tests/ui/lifetimes/issue-26638.stderr diff --git a/src/test/ui/lifetimes/issue-34979.rs b/tests/ui/lifetimes/issue-34979.rs similarity index 100% rename from src/test/ui/lifetimes/issue-34979.rs rename to tests/ui/lifetimes/issue-34979.rs diff --git a/src/test/ui/lifetimes/issue-34979.stderr b/tests/ui/lifetimes/issue-34979.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-34979.stderr rename to tests/ui/lifetimes/issue-34979.stderr diff --git a/src/test/ui/lifetimes/issue-54378.rs b/tests/ui/lifetimes/issue-54378.rs similarity index 100% rename from src/test/ui/lifetimes/issue-54378.rs rename to tests/ui/lifetimes/issue-54378.rs diff --git a/src/test/ui/lifetimes/issue-55796.rs b/tests/ui/lifetimes/issue-55796.rs similarity index 100% rename from src/test/ui/lifetimes/issue-55796.rs rename to tests/ui/lifetimes/issue-55796.rs diff --git a/src/test/ui/lifetimes/issue-55796.stderr b/tests/ui/lifetimes/issue-55796.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-55796.stderr rename to tests/ui/lifetimes/issue-55796.stderr diff --git a/src/test/ui/lifetimes/issue-64173-unused-lifetimes.rs b/tests/ui/lifetimes/issue-64173-unused-lifetimes.rs similarity index 100% rename from src/test/ui/lifetimes/issue-64173-unused-lifetimes.rs rename to tests/ui/lifetimes/issue-64173-unused-lifetimes.rs diff --git a/src/test/ui/lifetimes/issue-64173-unused-lifetimes.stderr b/tests/ui/lifetimes/issue-64173-unused-lifetimes.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-64173-unused-lifetimes.stderr rename to tests/ui/lifetimes/issue-64173-unused-lifetimes.stderr diff --git a/src/test/ui/lifetimes/issue-67498.rs b/tests/ui/lifetimes/issue-67498.rs similarity index 100% rename from src/test/ui/lifetimes/issue-67498.rs rename to tests/ui/lifetimes/issue-67498.rs diff --git a/src/test/ui/lifetimes/issue-70917-lifetimes-in-fn-def.rs b/tests/ui/lifetimes/issue-70917-lifetimes-in-fn-def.rs similarity index 100% rename from src/test/ui/lifetimes/issue-70917-lifetimes-in-fn-def.rs rename to tests/ui/lifetimes/issue-70917-lifetimes-in-fn-def.rs diff --git a/src/test/ui/lifetimes/issue-76168-hr-outlives-2.rs b/tests/ui/lifetimes/issue-76168-hr-outlives-2.rs similarity index 100% rename from src/test/ui/lifetimes/issue-76168-hr-outlives-2.rs rename to tests/ui/lifetimes/issue-76168-hr-outlives-2.rs diff --git a/src/test/ui/lifetimes/issue-76168-hr-outlives.rs b/tests/ui/lifetimes/issue-76168-hr-outlives.rs similarity index 100% rename from src/test/ui/lifetimes/issue-76168-hr-outlives.rs rename to tests/ui/lifetimes/issue-76168-hr-outlives.rs diff --git a/src/test/ui/lifetimes/issue-77175.rs b/tests/ui/lifetimes/issue-77175.rs similarity index 100% rename from src/test/ui/lifetimes/issue-77175.rs rename to tests/ui/lifetimes/issue-77175.rs diff --git a/src/test/ui/lifetimes/issue-79187-2.rs b/tests/ui/lifetimes/issue-79187-2.rs similarity index 100% rename from src/test/ui/lifetimes/issue-79187-2.rs rename to tests/ui/lifetimes/issue-79187-2.rs diff --git a/src/test/ui/lifetimes/issue-79187-2.stderr b/tests/ui/lifetimes/issue-79187-2.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-79187-2.stderr rename to tests/ui/lifetimes/issue-79187-2.stderr diff --git a/src/test/ui/lifetimes/issue-79187.rs b/tests/ui/lifetimes/issue-79187.rs similarity index 100% rename from src/test/ui/lifetimes/issue-79187.rs rename to tests/ui/lifetimes/issue-79187.rs diff --git a/src/test/ui/lifetimes/issue-79187.stderr b/tests/ui/lifetimes/issue-79187.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-79187.stderr rename to tests/ui/lifetimes/issue-79187.stderr diff --git a/src/test/ui/lifetimes/issue-83737-binders-across-types.rs b/tests/ui/lifetimes/issue-83737-binders-across-types.rs similarity index 100% rename from src/test/ui/lifetimes/issue-83737-binders-across-types.rs rename to tests/ui/lifetimes/issue-83737-binders-across-types.rs diff --git a/src/test/ui/lifetimes/issue-83737-erasing-bound-vars.rs b/tests/ui/lifetimes/issue-83737-erasing-bound-vars.rs similarity index 100% rename from src/test/ui/lifetimes/issue-83737-erasing-bound-vars.rs rename to tests/ui/lifetimes/issue-83737-erasing-bound-vars.rs diff --git a/src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.rs b/tests/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.rs similarity index 100% rename from src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.rs rename to tests/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.rs diff --git a/src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.stderr b/tests/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.stderr rename to tests/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.stderr diff --git a/src/test/ui/lifetimes/issue-83907-invalid-fn-like-path.rs b/tests/ui/lifetimes/issue-83907-invalid-fn-like-path.rs similarity index 100% rename from src/test/ui/lifetimes/issue-83907-invalid-fn-like-path.rs rename to tests/ui/lifetimes/issue-83907-invalid-fn-like-path.rs diff --git a/src/test/ui/lifetimes/issue-83907-invalid-fn-like-path.stderr b/tests/ui/lifetimes/issue-83907-invalid-fn-like-path.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-83907-invalid-fn-like-path.stderr rename to tests/ui/lifetimes/issue-83907-invalid-fn-like-path.stderr diff --git a/src/test/ui/lifetimes/issue-84398.rs b/tests/ui/lifetimes/issue-84398.rs similarity index 100% rename from src/test/ui/lifetimes/issue-84398.rs rename to tests/ui/lifetimes/issue-84398.rs diff --git a/src/test/ui/lifetimes/issue-84604.rs b/tests/ui/lifetimes/issue-84604.rs similarity index 100% rename from src/test/ui/lifetimes/issue-84604.rs rename to tests/ui/lifetimes/issue-84604.rs diff --git a/src/test/ui/lifetimes/issue-90170-elision-mismatch.fixed b/tests/ui/lifetimes/issue-90170-elision-mismatch.fixed similarity index 100% rename from src/test/ui/lifetimes/issue-90170-elision-mismatch.fixed rename to tests/ui/lifetimes/issue-90170-elision-mismatch.fixed diff --git a/src/test/ui/lifetimes/issue-90170-elision-mismatch.rs b/tests/ui/lifetimes/issue-90170-elision-mismatch.rs similarity index 100% rename from src/test/ui/lifetimes/issue-90170-elision-mismatch.rs rename to tests/ui/lifetimes/issue-90170-elision-mismatch.rs diff --git a/src/test/ui/lifetimes/issue-90170-elision-mismatch.stderr b/tests/ui/lifetimes/issue-90170-elision-mismatch.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-90170-elision-mismatch.stderr rename to tests/ui/lifetimes/issue-90170-elision-mismatch.stderr diff --git a/src/test/ui/lifetimes/issue-90600-expected-return-static-indirect.rs b/tests/ui/lifetimes/issue-90600-expected-return-static-indirect.rs similarity index 100% rename from src/test/ui/lifetimes/issue-90600-expected-return-static-indirect.rs rename to tests/ui/lifetimes/issue-90600-expected-return-static-indirect.rs diff --git a/src/test/ui/lifetimes/issue-90600-expected-return-static-indirect.stderr b/tests/ui/lifetimes/issue-90600-expected-return-static-indirect.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-90600-expected-return-static-indirect.stderr rename to tests/ui/lifetimes/issue-90600-expected-return-static-indirect.stderr diff --git a/src/test/ui/lifetimes/issue-91763.rs b/tests/ui/lifetimes/issue-91763.rs similarity index 100% rename from src/test/ui/lifetimes/issue-91763.rs rename to tests/ui/lifetimes/issue-91763.rs diff --git a/src/test/ui/lifetimes/issue-91763.stderr b/tests/ui/lifetimes/issue-91763.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-91763.stderr rename to tests/ui/lifetimes/issue-91763.stderr diff --git a/src/test/ui/lifetimes/issue-95023.rs b/tests/ui/lifetimes/issue-95023.rs similarity index 100% rename from src/test/ui/lifetimes/issue-95023.rs rename to tests/ui/lifetimes/issue-95023.rs diff --git a/src/test/ui/lifetimes/issue-95023.stderr b/tests/ui/lifetimes/issue-95023.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-95023.stderr rename to tests/ui/lifetimes/issue-95023.stderr diff --git a/src/test/ui/lifetimes/issue-97193.rs b/tests/ui/lifetimes/issue-97193.rs similarity index 100% rename from src/test/ui/lifetimes/issue-97193.rs rename to tests/ui/lifetimes/issue-97193.rs diff --git a/src/test/ui/lifetimes/issue-97193.stderr b/tests/ui/lifetimes/issue-97193.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-97193.stderr rename to tests/ui/lifetimes/issue-97193.stderr diff --git a/src/test/ui/lifetimes/issue-97194.rs b/tests/ui/lifetimes/issue-97194.rs similarity index 100% rename from src/test/ui/lifetimes/issue-97194.rs rename to tests/ui/lifetimes/issue-97194.rs diff --git a/src/test/ui/lifetimes/issue-97194.stderr b/tests/ui/lifetimes/issue-97194.stderr similarity index 100% rename from src/test/ui/lifetimes/issue-97194.stderr rename to tests/ui/lifetimes/issue-97194.stderr diff --git a/src/test/ui/lifetimes/lifetime-bound-will-change-warning.rs b/tests/ui/lifetimes/lifetime-bound-will-change-warning.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-bound-will-change-warning.rs rename to tests/ui/lifetimes/lifetime-bound-will-change-warning.rs diff --git a/src/test/ui/lifetimes/lifetime-bound-will-change-warning.stderr b/tests/ui/lifetimes/lifetime-bound-will-change-warning.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-bound-will-change-warning.stderr rename to tests/ui/lifetimes/lifetime-bound-will-change-warning.stderr diff --git a/src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.rs b/tests/ui/lifetimes/lifetime-doesnt-live-long-enough.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.rs rename to tests/ui/lifetimes/lifetime-doesnt-live-long-enough.rs diff --git a/src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr b/tests/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr rename to tests/ui/lifetimes/lifetime-doesnt-live-long-enough.stderr diff --git a/src/test/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.rs b/tests/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.rs rename to tests/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.rs diff --git a/src/test/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.stderr b/tests/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.stderr rename to tests/ui/lifetimes/lifetime-elision-return-type-requires-explicit-lifetime.stderr diff --git a/src/test/ui/lifetimes/lifetime-elision-return-type-trait.rs b/tests/ui/lifetimes/lifetime-elision-return-type-trait.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-elision-return-type-trait.rs rename to tests/ui/lifetimes/lifetime-elision-return-type-trait.rs diff --git a/src/test/ui/lifetimes/lifetime-elision-return-type-trait.stderr b/tests/ui/lifetimes/lifetime-elision-return-type-trait.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-elision-return-type-trait.stderr rename to tests/ui/lifetimes/lifetime-elision-return-type-trait.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.rs b/tests/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.rs rename to tests/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.stderr b/tests/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.stderr rename to tests/ui/lifetimes/lifetime-errors/42701_one_named_and_one_anonymous.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-early-bound-in-struct.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-3.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl-3.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-if-else.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.rs b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.rs rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr b/tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.rs b/tests/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.rs rename to tests/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.stderr b/tests/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.stderr rename to tests/ui/lifetimes/lifetime-errors/ex1b-return-no-names-if-else.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.rs b/tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.rs b/tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.rs rename to tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.stderr b/tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name-early-bound.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.rs b/tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.rs rename to tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.stderr b/tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2a-push-one-existing-name.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.rs b/tests/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.rs rename to tests/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.stderr b/tests/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2b-push-no-existing-names.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.rs b/tests/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.rs rename to tests/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.stderr b/tests/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2c-push-inference-variable.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.rs b/tests/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2d-push-inference-variable-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.rs b/tests/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.rs rename to tests/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.stderr b/tests/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.stderr rename to tests/ui/lifetimes/lifetime-errors/ex2e-push-inference-variable-3.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-earlybound-regions.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-latebound-regions.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-2.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-3.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct-4.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-one-is-struct.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-return-type-is-anon.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-self-is-anon.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-impl-items.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.rs b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.rs rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.stderr b/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.stderr rename to tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/issue_74400.rs b/tests/ui/lifetimes/lifetime-errors/issue_74400.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/issue_74400.rs rename to tests/ui/lifetimes/lifetime-errors/issue_74400.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr b/tests/ui/lifetimes/lifetime-errors/issue_74400.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/issue_74400.stderr rename to tests/ui/lifetimes/lifetime-errors/issue_74400.stderr diff --git a/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs b/tests/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs rename to tests/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs diff --git a/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr b/tests/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr rename to tests/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr diff --git a/src/test/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.rs b/tests/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.rs rename to tests/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.rs diff --git a/src/test/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.stderr b/tests/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.stderr rename to tests/ui/lifetimes/lifetime-mismatch-between-trait-and-impl.stderr diff --git a/src/test/ui/lifetimes/lifetime-no-keyword.rs b/tests/ui/lifetimes/lifetime-no-keyword.rs similarity index 100% rename from src/test/ui/lifetimes/lifetime-no-keyword.rs rename to tests/ui/lifetimes/lifetime-no-keyword.rs diff --git a/src/test/ui/lifetimes/lifetime-no-keyword.stderr b/tests/ui/lifetimes/lifetime-no-keyword.stderr similarity index 100% rename from src/test/ui/lifetimes/lifetime-no-keyword.stderr rename to tests/ui/lifetimes/lifetime-no-keyword.stderr diff --git a/src/test/ui/lifetimes/missing-lifetime-in-alias.rs b/tests/ui/lifetimes/missing-lifetime-in-alias.rs similarity index 100% rename from src/test/ui/lifetimes/missing-lifetime-in-alias.rs rename to tests/ui/lifetimes/missing-lifetime-in-alias.rs diff --git a/src/test/ui/lifetimes/missing-lifetime-in-alias.stderr b/tests/ui/lifetimes/missing-lifetime-in-alias.stderr similarity index 100% rename from src/test/ui/lifetimes/missing-lifetime-in-alias.stderr rename to tests/ui/lifetimes/missing-lifetime-in-alias.stderr diff --git a/src/test/ui/lifetimes/nested-binder-print.rs b/tests/ui/lifetimes/nested-binder-print.rs similarity index 100% rename from src/test/ui/lifetimes/nested-binder-print.rs rename to tests/ui/lifetimes/nested-binder-print.rs diff --git a/src/test/ui/lifetimes/nested-binder-print.stderr b/tests/ui/lifetimes/nested-binder-print.stderr similarity index 100% rename from src/test/ui/lifetimes/nested-binder-print.stderr rename to tests/ui/lifetimes/nested-binder-print.stderr diff --git a/src/test/ui/lifetimes/nested.rs b/tests/ui/lifetimes/nested.rs similarity index 100% rename from src/test/ui/lifetimes/nested.rs rename to tests/ui/lifetimes/nested.rs diff --git a/src/test/ui/lifetimes/re-empty-in-error.rs b/tests/ui/lifetimes/re-empty-in-error.rs similarity index 100% rename from src/test/ui/lifetimes/re-empty-in-error.rs rename to tests/ui/lifetimes/re-empty-in-error.rs diff --git a/src/test/ui/lifetimes/re-empty-in-error.stderr b/tests/ui/lifetimes/re-empty-in-error.stderr similarity index 100% rename from src/test/ui/lifetimes/re-empty-in-error.stderr rename to tests/ui/lifetimes/re-empty-in-error.stderr diff --git a/src/test/ui/lifetimes/shadow.rs b/tests/ui/lifetimes/shadow.rs similarity index 100% rename from src/test/ui/lifetimes/shadow.rs rename to tests/ui/lifetimes/shadow.rs diff --git a/src/test/ui/lifetimes/shadow.stderr b/tests/ui/lifetimes/shadow.stderr similarity index 100% rename from src/test/ui/lifetimes/shadow.stderr rename to tests/ui/lifetimes/shadow.stderr diff --git a/src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs b/tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs similarity index 100% rename from src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs rename to tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.rs diff --git a/src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.stderr b/tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.stderr similarity index 100% rename from src/test/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.stderr rename to tests/ui/lifetimes/suggest-introducing-and-adding-missing-lifetime.stderr diff --git a/src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs b/tests/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs similarity index 100% rename from src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs rename to tests/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.rs diff --git a/src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.stderr b/tests/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.stderr similarity index 100% rename from src/test/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.stderr rename to tests/ui/lifetimes/undeclared-lifetime-used-in-debug-macro-issue-70152.stderr diff --git a/src/test/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.rs b/tests/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.rs similarity index 100% rename from src/test/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.rs rename to tests/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.rs diff --git a/src/test/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.stderr b/tests/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.stderr similarity index 100% rename from src/test/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.stderr rename to tests/ui/lifetimes/unnamed-closure-doesnt-life-long-enough-issue-67634.stderr diff --git a/src/test/ui/lifetimes/unusual-rib-combinations.rs b/tests/ui/lifetimes/unusual-rib-combinations.rs similarity index 100% rename from src/test/ui/lifetimes/unusual-rib-combinations.rs rename to tests/ui/lifetimes/unusual-rib-combinations.rs diff --git a/src/test/ui/lifetimes/unusual-rib-combinations.stderr b/tests/ui/lifetimes/unusual-rib-combinations.stderr similarity index 100% rename from src/test/ui/lifetimes/unusual-rib-combinations.stderr rename to tests/ui/lifetimes/unusual-rib-combinations.stderr diff --git a/src/test/ui/limits/huge-array-simple-32.rs b/tests/ui/limits/huge-array-simple-32.rs similarity index 100% rename from src/test/ui/limits/huge-array-simple-32.rs rename to tests/ui/limits/huge-array-simple-32.rs diff --git a/src/test/ui/limits/huge-array-simple-32.stderr b/tests/ui/limits/huge-array-simple-32.stderr similarity index 100% rename from src/test/ui/limits/huge-array-simple-32.stderr rename to tests/ui/limits/huge-array-simple-32.stderr diff --git a/src/test/ui/limits/huge-array-simple-64.rs b/tests/ui/limits/huge-array-simple-64.rs similarity index 100% rename from src/test/ui/limits/huge-array-simple-64.rs rename to tests/ui/limits/huge-array-simple-64.rs diff --git a/src/test/ui/limits/huge-array-simple-64.stderr b/tests/ui/limits/huge-array-simple-64.stderr similarity index 100% rename from src/test/ui/limits/huge-array-simple-64.stderr rename to tests/ui/limits/huge-array-simple-64.stderr diff --git a/src/test/ui/limits/huge-array.rs b/tests/ui/limits/huge-array.rs similarity index 100% rename from src/test/ui/limits/huge-array.rs rename to tests/ui/limits/huge-array.rs diff --git a/src/test/ui/limits/huge-array.stderr b/tests/ui/limits/huge-array.stderr similarity index 100% rename from src/test/ui/limits/huge-array.stderr rename to tests/ui/limits/huge-array.stderr diff --git a/src/test/ui/limits/huge-enum.rs b/tests/ui/limits/huge-enum.rs similarity index 100% rename from src/test/ui/limits/huge-enum.rs rename to tests/ui/limits/huge-enum.rs diff --git a/src/test/ui/limits/huge-enum.stderr b/tests/ui/limits/huge-enum.stderr similarity index 100% rename from src/test/ui/limits/huge-enum.stderr rename to tests/ui/limits/huge-enum.stderr diff --git a/src/test/ui/limits/huge-struct.rs b/tests/ui/limits/huge-struct.rs similarity index 100% rename from src/test/ui/limits/huge-struct.rs rename to tests/ui/limits/huge-struct.rs diff --git a/src/test/ui/limits/huge-struct.stderr b/tests/ui/limits/huge-struct.stderr similarity index 100% rename from src/test/ui/limits/huge-struct.stderr rename to tests/ui/limits/huge-struct.stderr diff --git a/src/test/ui/limits/issue-15919-32.rs b/tests/ui/limits/issue-15919-32.rs similarity index 100% rename from src/test/ui/limits/issue-15919-32.rs rename to tests/ui/limits/issue-15919-32.rs diff --git a/src/test/ui/limits/issue-15919-32.stderr b/tests/ui/limits/issue-15919-32.stderr similarity index 100% rename from src/test/ui/limits/issue-15919-32.stderr rename to tests/ui/limits/issue-15919-32.stderr diff --git a/src/test/ui/limits/issue-15919-64.rs b/tests/ui/limits/issue-15919-64.rs similarity index 100% rename from src/test/ui/limits/issue-15919-64.rs rename to tests/ui/limits/issue-15919-64.rs diff --git a/src/test/ui/limits/issue-15919-64.stderr b/tests/ui/limits/issue-15919-64.stderr similarity index 100% rename from src/test/ui/limits/issue-15919-64.stderr rename to tests/ui/limits/issue-15919-64.stderr diff --git a/src/test/ui/limits/issue-17913.rs b/tests/ui/limits/issue-17913.rs similarity index 100% rename from src/test/ui/limits/issue-17913.rs rename to tests/ui/limits/issue-17913.rs diff --git a/src/test/ui/limits/issue-17913.stderr b/tests/ui/limits/issue-17913.stderr similarity index 100% rename from src/test/ui/limits/issue-17913.stderr rename to tests/ui/limits/issue-17913.stderr diff --git a/src/test/ui/limits/issue-55878.rs b/tests/ui/limits/issue-55878.rs similarity index 100% rename from src/test/ui/limits/issue-55878.rs rename to tests/ui/limits/issue-55878.rs diff --git a/src/test/ui/limits/issue-55878.stderr b/tests/ui/limits/issue-55878.stderr similarity index 100% rename from src/test/ui/limits/issue-55878.stderr rename to tests/ui/limits/issue-55878.stderr diff --git a/src/test/ui/limits/issue-56762.rs b/tests/ui/limits/issue-56762.rs similarity index 100% rename from src/test/ui/limits/issue-56762.rs rename to tests/ui/limits/issue-56762.rs diff --git a/src/test/ui/limits/issue-56762.stderr b/tests/ui/limits/issue-56762.stderr similarity index 100% rename from src/test/ui/limits/issue-56762.stderr rename to tests/ui/limits/issue-56762.stderr diff --git a/src/test/ui/limits/issue-69485-var-size-diffs-too-large.rs b/tests/ui/limits/issue-69485-var-size-diffs-too-large.rs similarity index 100% rename from src/test/ui/limits/issue-69485-var-size-diffs-too-large.rs rename to tests/ui/limits/issue-69485-var-size-diffs-too-large.rs diff --git a/src/test/ui/limits/issue-69485-var-size-diffs-too-large.stderr b/tests/ui/limits/issue-69485-var-size-diffs-too-large.stderr similarity index 100% rename from src/test/ui/limits/issue-69485-var-size-diffs-too-large.stderr rename to tests/ui/limits/issue-69485-var-size-diffs-too-large.stderr diff --git a/src/test/ui/limits/issue-75158-64.rs b/tests/ui/limits/issue-75158-64.rs similarity index 100% rename from src/test/ui/limits/issue-75158-64.rs rename to tests/ui/limits/issue-75158-64.rs diff --git a/src/test/ui/limits/issue-75158-64.stderr b/tests/ui/limits/issue-75158-64.stderr similarity index 100% rename from src/test/ui/limits/issue-75158-64.stderr rename to tests/ui/limits/issue-75158-64.stderr diff --git a/src/test/ui/link-section.rs b/tests/ui/link-section.rs similarity index 100% rename from src/test/ui/link-section.rs rename to tests/ui/link-section.rs diff --git a/src/test/ui/linkage-attr/auxiliary/def_colliding_external.rs b/tests/ui/linkage-attr/auxiliary/def_colliding_external.rs similarity index 100% rename from src/test/ui/linkage-attr/auxiliary/def_colliding_external.rs rename to tests/ui/linkage-attr/auxiliary/def_colliding_external.rs diff --git a/src/test/ui/linkage-attr/auxiliary/def_external.rs b/tests/ui/linkage-attr/auxiliary/def_external.rs similarity index 100% rename from src/test/ui/linkage-attr/auxiliary/def_external.rs rename to tests/ui/linkage-attr/auxiliary/def_external.rs diff --git a/src/test/ui/linkage-attr/auxiliary/link-cfg-works-transitive-dylib.rs b/tests/ui/linkage-attr/auxiliary/link-cfg-works-transitive-dylib.rs similarity index 100% rename from src/test/ui/linkage-attr/auxiliary/link-cfg-works-transitive-dylib.rs rename to tests/ui/linkage-attr/auxiliary/link-cfg-works-transitive-dylib.rs diff --git a/src/test/ui/linkage-attr/auxiliary/link-cfg-works-transitive-rlib.rs b/tests/ui/linkage-attr/auxiliary/link-cfg-works-transitive-rlib.rs similarity index 100% rename from src/test/ui/linkage-attr/auxiliary/link-cfg-works-transitive-rlib.rs rename to tests/ui/linkage-attr/auxiliary/link-cfg-works-transitive-rlib.rs diff --git a/src/test/ui/linkage-attr/auxiliary/linkage1.rs b/tests/ui/linkage-attr/auxiliary/linkage1.rs similarity index 100% rename from src/test/ui/linkage-attr/auxiliary/linkage1.rs rename to tests/ui/linkage-attr/auxiliary/linkage1.rs diff --git a/src/test/ui/linkage-attr/issue-10755.rs b/tests/ui/linkage-attr/issue-10755.rs similarity index 100% rename from src/test/ui/linkage-attr/issue-10755.rs rename to tests/ui/linkage-attr/issue-10755.rs diff --git a/src/test/ui/linkage-attr/link-attr-validation-early.rs b/tests/ui/linkage-attr/link-attr-validation-early.rs similarity index 100% rename from src/test/ui/linkage-attr/link-attr-validation-early.rs rename to tests/ui/linkage-attr/link-attr-validation-early.rs diff --git a/src/test/ui/linkage-attr/link-attr-validation-early.stderr b/tests/ui/linkage-attr/link-attr-validation-early.stderr similarity index 100% rename from src/test/ui/linkage-attr/link-attr-validation-early.stderr rename to tests/ui/linkage-attr/link-attr-validation-early.stderr diff --git a/src/test/ui/linkage-attr/link-attr-validation-late.rs b/tests/ui/linkage-attr/link-attr-validation-late.rs similarity index 100% rename from src/test/ui/linkage-attr/link-attr-validation-late.rs rename to tests/ui/linkage-attr/link-attr-validation-late.rs diff --git a/src/test/ui/linkage-attr/link-attr-validation-late.stderr b/tests/ui/linkage-attr/link-attr-validation-late.stderr similarity index 100% rename from src/test/ui/linkage-attr/link-attr-validation-late.stderr rename to tests/ui/linkage-attr/link-attr-validation-late.stderr diff --git a/src/test/ui/linkage-attr/link-cfg-works.rs b/tests/ui/linkage-attr/link-cfg-works.rs similarity index 100% rename from src/test/ui/linkage-attr/link-cfg-works.rs rename to tests/ui/linkage-attr/link-cfg-works.rs diff --git a/src/test/ui/linkage-attr/linkage-detect-extern-generated-name-collision.rs b/tests/ui/linkage-attr/linkage-detect-extern-generated-name-collision.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage-detect-extern-generated-name-collision.rs rename to tests/ui/linkage-attr/linkage-detect-extern-generated-name-collision.rs diff --git a/src/test/ui/linkage-attr/linkage-detect-extern-generated-name-collision.stderr b/tests/ui/linkage-attr/linkage-detect-extern-generated-name-collision.stderr similarity index 100% rename from src/test/ui/linkage-attr/linkage-detect-extern-generated-name-collision.stderr rename to tests/ui/linkage-attr/linkage-detect-extern-generated-name-collision.stderr diff --git a/src/test/ui/linkage-attr/linkage-detect-local-generated-name-collision.rs b/tests/ui/linkage-attr/linkage-detect-local-generated-name-collision.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage-detect-local-generated-name-collision.rs rename to tests/ui/linkage-attr/linkage-detect-local-generated-name-collision.rs diff --git a/src/test/ui/linkage-attr/linkage-detect-local-generated-name-collision.stderr b/tests/ui/linkage-attr/linkage-detect-local-generated-name-collision.stderr similarity index 100% rename from src/test/ui/linkage-attr/linkage-detect-local-generated-name-collision.stderr rename to tests/ui/linkage-attr/linkage-detect-local-generated-name-collision.stderr diff --git a/src/test/ui/linkage-attr/linkage-import.rs b/tests/ui/linkage-attr/linkage-import.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage-import.rs rename to tests/ui/linkage-attr/linkage-import.rs diff --git a/src/test/ui/linkage-attr/linkage1.rs b/tests/ui/linkage-attr/linkage1.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage1.rs rename to tests/ui/linkage-attr/linkage1.rs diff --git a/src/test/ui/linkage-attr/linkage2.rs b/tests/ui/linkage-attr/linkage2.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage2.rs rename to tests/ui/linkage-attr/linkage2.rs diff --git a/src/test/ui/linkage-attr/linkage2.stderr b/tests/ui/linkage-attr/linkage2.stderr similarity index 100% rename from src/test/ui/linkage-attr/linkage2.stderr rename to tests/ui/linkage-attr/linkage2.stderr diff --git a/src/test/ui/linkage-attr/linkage3.rs b/tests/ui/linkage-attr/linkage3.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage3.rs rename to tests/ui/linkage-attr/linkage3.rs diff --git a/src/test/ui/linkage-attr/linkage3.stderr b/tests/ui/linkage-attr/linkage3.stderr similarity index 100% rename from src/test/ui/linkage-attr/linkage3.stderr rename to tests/ui/linkage-attr/linkage3.stderr diff --git a/src/test/ui/linkage-attr/linkage4.rs b/tests/ui/linkage-attr/linkage4.rs similarity index 100% rename from src/test/ui/linkage-attr/linkage4.rs rename to tests/ui/linkage-attr/linkage4.rs diff --git a/src/test/ui/linkage-attr/linkage4.stderr b/tests/ui/linkage-attr/linkage4.stderr similarity index 100% rename from src/test/ui/linkage-attr/linkage4.stderr rename to tests/ui/linkage-attr/linkage4.stderr diff --git a/src/test/ui/lint-unknown-lints-at-crate-level.rs b/tests/ui/lint-unknown-lints-at-crate-level.rs similarity index 100% rename from src/test/ui/lint-unknown-lints-at-crate-level.rs rename to tests/ui/lint-unknown-lints-at-crate-level.rs diff --git a/src/test/ui/lint/auxiliary/add-impl.rs b/tests/ui/lint/auxiliary/add-impl.rs similarity index 100% rename from src/test/ui/lint/auxiliary/add-impl.rs rename to tests/ui/lint/auxiliary/add-impl.rs diff --git a/src/test/ui/lint/auxiliary/external_extern_fn.rs b/tests/ui/lint/auxiliary/external_extern_fn.rs similarity index 100% rename from src/test/ui/lint/auxiliary/external_extern_fn.rs rename to tests/ui/lint/auxiliary/external_extern_fn.rs diff --git a/src/test/ui/lint/auxiliary/inherited_stability.rs b/tests/ui/lint/auxiliary/inherited_stability.rs similarity index 100% rename from src/test/ui/lint/auxiliary/inherited_stability.rs rename to tests/ui/lint/auxiliary/inherited_stability.rs diff --git a/src/test/ui/lint/auxiliary/lint_output_format.rs b/tests/ui/lint/auxiliary/lint_output_format.rs similarity index 100% rename from src/test/ui/lint/auxiliary/lint_output_format.rs rename to tests/ui/lint/auxiliary/lint_output_format.rs diff --git a/src/test/ui/lint/auxiliary/lint_stability.rs b/tests/ui/lint/auxiliary/lint_stability.rs similarity index 100% rename from src/test/ui/lint/auxiliary/lint_stability.rs rename to tests/ui/lint/auxiliary/lint_stability.rs diff --git a/src/test/ui/lint/auxiliary/lint_stability_fields.rs b/tests/ui/lint/auxiliary/lint_stability_fields.rs similarity index 100% rename from src/test/ui/lint/auxiliary/lint_stability_fields.rs rename to tests/ui/lint/auxiliary/lint_stability_fields.rs diff --git a/src/test/ui/lint/auxiliary/lints-in-foreign-macros.rs b/tests/ui/lint/auxiliary/lints-in-foreign-macros.rs similarity index 100% rename from src/test/ui/lint/auxiliary/lints-in-foreign-macros.rs rename to tests/ui/lint/auxiliary/lints-in-foreign-macros.rs diff --git a/src/test/ui/lint/auxiliary/stability-cfg2.rs b/tests/ui/lint/auxiliary/stability-cfg2.rs similarity index 100% rename from src/test/ui/lint/auxiliary/stability-cfg2.rs rename to tests/ui/lint/auxiliary/stability-cfg2.rs diff --git a/src/test/ui/lint/auxiliary/stability_cfg1.rs b/tests/ui/lint/auxiliary/stability_cfg1.rs similarity index 100% rename from src/test/ui/lint/auxiliary/stability_cfg1.rs rename to tests/ui/lint/auxiliary/stability_cfg1.rs diff --git a/src/test/ui/lint/auxiliary/stability_cfg2.rs b/tests/ui/lint/auxiliary/stability_cfg2.rs similarity index 100% rename from src/test/ui/lint/auxiliary/stability_cfg2.rs rename to tests/ui/lint/auxiliary/stability_cfg2.rs diff --git a/src/test/ui/lint/auxiliary/trivial-cast-ice.rs b/tests/ui/lint/auxiliary/trivial-cast-ice.rs similarity index 100% rename from src/test/ui/lint/auxiliary/trivial-cast-ice.rs rename to tests/ui/lint/auxiliary/trivial-cast-ice.rs diff --git a/src/test/ui/lint/auxiliary/unaligned_references_external_crate.rs b/tests/ui/lint/auxiliary/unaligned_references_external_crate.rs similarity index 100% rename from src/test/ui/lint/auxiliary/unaligned_references_external_crate.rs rename to tests/ui/lint/auxiliary/unaligned_references_external_crate.rs diff --git a/src/test/ui/lint/bad-lint-cap.rs b/tests/ui/lint/bad-lint-cap.rs similarity index 100% rename from src/test/ui/lint/bad-lint-cap.rs rename to tests/ui/lint/bad-lint-cap.rs diff --git a/src/test/ui/lint/bad-lint-cap.stderr b/tests/ui/lint/bad-lint-cap.stderr similarity index 100% rename from src/test/ui/lint/bad-lint-cap.stderr rename to tests/ui/lint/bad-lint-cap.stderr diff --git a/src/test/ui/lint/bad-lint-cap2.rs b/tests/ui/lint/bad-lint-cap2.rs similarity index 100% rename from src/test/ui/lint/bad-lint-cap2.rs rename to tests/ui/lint/bad-lint-cap2.rs diff --git a/src/test/ui/lint/bad-lint-cap2.stderr b/tests/ui/lint/bad-lint-cap2.stderr similarity index 100% rename from src/test/ui/lint/bad-lint-cap2.stderr rename to tests/ui/lint/bad-lint-cap2.stderr diff --git a/src/test/ui/lint/bad-lint-cap3.rs b/tests/ui/lint/bad-lint-cap3.rs similarity index 100% rename from src/test/ui/lint/bad-lint-cap3.rs rename to tests/ui/lint/bad-lint-cap3.rs diff --git a/src/test/ui/lint/bad-lint-cap3.stderr b/tests/ui/lint/bad-lint-cap3.stderr similarity index 100% rename from src/test/ui/lint/bad-lint-cap3.stderr rename to tests/ui/lint/bad-lint-cap3.stderr diff --git a/src/test/ui/lint/bare-trait-objects-path.rs b/tests/ui/lint/bare-trait-objects-path.rs similarity index 100% rename from src/test/ui/lint/bare-trait-objects-path.rs rename to tests/ui/lint/bare-trait-objects-path.rs diff --git a/src/test/ui/lint/bare-trait-objects-path.stderr b/tests/ui/lint/bare-trait-objects-path.stderr similarity index 100% rename from src/test/ui/lint/bare-trait-objects-path.stderr rename to tests/ui/lint/bare-trait-objects-path.stderr diff --git a/src/test/ui/lint/clashing-extern-fn-recursion.rs b/tests/ui/lint/clashing-extern-fn-recursion.rs similarity index 100% rename from src/test/ui/lint/clashing-extern-fn-recursion.rs rename to tests/ui/lint/clashing-extern-fn-recursion.rs diff --git a/src/test/ui/lint/clashing-extern-fn-wasm.rs b/tests/ui/lint/clashing-extern-fn-wasm.rs similarity index 100% rename from src/test/ui/lint/clashing-extern-fn-wasm.rs rename to tests/ui/lint/clashing-extern-fn-wasm.rs diff --git a/src/test/ui/lint/clashing-extern-fn.rs b/tests/ui/lint/clashing-extern-fn.rs similarity index 100% rename from src/test/ui/lint/clashing-extern-fn.rs rename to tests/ui/lint/clashing-extern-fn.rs diff --git a/src/test/ui/lint/clashing-extern-fn.stderr b/tests/ui/lint/clashing-extern-fn.stderr similarity index 100% rename from src/test/ui/lint/clashing-extern-fn.stderr rename to tests/ui/lint/clashing-extern-fn.stderr diff --git a/src/test/ui/lint/cli-lint-override.forbid_warn.stderr b/tests/ui/lint/cli-lint-override.forbid_warn.stderr similarity index 100% rename from src/test/ui/lint/cli-lint-override.forbid_warn.stderr rename to tests/ui/lint/cli-lint-override.forbid_warn.stderr diff --git a/src/test/ui/lint/cli-lint-override.force_warn_deny.stderr b/tests/ui/lint/cli-lint-override.force_warn_deny.stderr similarity index 100% rename from src/test/ui/lint/cli-lint-override.force_warn_deny.stderr rename to tests/ui/lint/cli-lint-override.force_warn_deny.stderr diff --git a/src/test/ui/lint/cli-lint-override.rs b/tests/ui/lint/cli-lint-override.rs similarity index 100% rename from src/test/ui/lint/cli-lint-override.rs rename to tests/ui/lint/cli-lint-override.rs diff --git a/src/test/ui/lint/cli-lint-override.warn_deny.stderr b/tests/ui/lint/cli-lint-override.warn_deny.stderr similarity index 100% rename from src/test/ui/lint/cli-lint-override.warn_deny.stderr rename to tests/ui/lint/cli-lint-override.warn_deny.stderr diff --git a/src/test/ui/lint/cli-unknown-force-warn.rs b/tests/ui/lint/cli-unknown-force-warn.rs similarity index 100% rename from src/test/ui/lint/cli-unknown-force-warn.rs rename to tests/ui/lint/cli-unknown-force-warn.rs diff --git a/src/test/ui/lint/cli-unknown-force-warn.stderr b/tests/ui/lint/cli-unknown-force-warn.stderr similarity index 100% rename from src/test/ui/lint/cli-unknown-force-warn.stderr rename to tests/ui/lint/cli-unknown-force-warn.stderr diff --git a/src/test/ui/lint/command-line-lint-group-allow.rs b/tests/ui/lint/command-line-lint-group-allow.rs similarity index 100% rename from src/test/ui/lint/command-line-lint-group-allow.rs rename to tests/ui/lint/command-line-lint-group-allow.rs diff --git a/src/test/ui/lint/command-line-lint-group-deny.rs b/tests/ui/lint/command-line-lint-group-deny.rs similarity index 100% rename from src/test/ui/lint/command-line-lint-group-deny.rs rename to tests/ui/lint/command-line-lint-group-deny.rs diff --git a/src/test/ui/lint/command-line-lint-group-deny.stderr b/tests/ui/lint/command-line-lint-group-deny.stderr similarity index 100% rename from src/test/ui/lint/command-line-lint-group-deny.stderr rename to tests/ui/lint/command-line-lint-group-deny.stderr diff --git a/src/test/ui/lint/command-line-lint-group-forbid.rs b/tests/ui/lint/command-line-lint-group-forbid.rs similarity index 100% rename from src/test/ui/lint/command-line-lint-group-forbid.rs rename to tests/ui/lint/command-line-lint-group-forbid.rs diff --git a/src/test/ui/lint/command-line-lint-group-forbid.stderr b/tests/ui/lint/command-line-lint-group-forbid.stderr similarity index 100% rename from src/test/ui/lint/command-line-lint-group-forbid.stderr rename to tests/ui/lint/command-line-lint-group-forbid.stderr diff --git a/src/test/ui/lint/command-line-lint-group-warn.rs b/tests/ui/lint/command-line-lint-group-warn.rs similarity index 100% rename from src/test/ui/lint/command-line-lint-group-warn.rs rename to tests/ui/lint/command-line-lint-group-warn.rs diff --git a/src/test/ui/lint/command-line-lint-group-warn.stderr b/tests/ui/lint/command-line-lint-group-warn.stderr similarity index 100% rename from src/test/ui/lint/command-line-lint-group-warn.stderr rename to tests/ui/lint/command-line-lint-group-warn.stderr diff --git a/src/test/ui/lint/command-line-register-lint-tool.rs b/tests/ui/lint/command-line-register-lint-tool.rs similarity index 100% rename from src/test/ui/lint/command-line-register-lint-tool.rs rename to tests/ui/lint/command-line-register-lint-tool.rs diff --git a/src/test/ui/lint/command-line-register-unknown-lint-tool.rs b/tests/ui/lint/command-line-register-unknown-lint-tool.rs similarity index 100% rename from src/test/ui/lint/command-line-register-unknown-lint-tool.rs rename to tests/ui/lint/command-line-register-unknown-lint-tool.rs diff --git a/src/test/ui/lint/command-line-register-unknown-lint-tool.stderr b/tests/ui/lint/command-line-register-unknown-lint-tool.stderr similarity index 100% rename from src/test/ui/lint/command-line-register-unknown-lint-tool.stderr rename to tests/ui/lint/command-line-register-unknown-lint-tool.stderr diff --git a/src/test/ui/lint/crate_level_only_lint.rs b/tests/ui/lint/crate_level_only_lint.rs similarity index 100% rename from src/test/ui/lint/crate_level_only_lint.rs rename to tests/ui/lint/crate_level_only_lint.rs diff --git a/src/test/ui/lint/crate_level_only_lint.stderr b/tests/ui/lint/crate_level_only_lint.stderr similarity index 100% rename from src/test/ui/lint/crate_level_only_lint.stderr rename to tests/ui/lint/crate_level_only_lint.stderr diff --git a/src/test/ui/lint/dead-code/alias-in-pat.rs b/tests/ui/lint/dead-code/alias-in-pat.rs similarity index 100% rename from src/test/ui/lint/dead-code/alias-in-pat.rs rename to tests/ui/lint/dead-code/alias-in-pat.rs diff --git a/src/test/ui/lint/dead-code/anon-const-in-pat.rs b/tests/ui/lint/dead-code/anon-const-in-pat.rs similarity index 100% rename from src/test/ui/lint/dead-code/anon-const-in-pat.rs rename to tests/ui/lint/dead-code/anon-const-in-pat.rs diff --git a/src/test/ui/lint/dead-code/associated-type.rs b/tests/ui/lint/dead-code/associated-type.rs similarity index 100% rename from src/test/ui/lint/dead-code/associated-type.rs rename to tests/ui/lint/dead-code/associated-type.rs diff --git a/src/test/ui/lint/dead-code/basic.rs b/tests/ui/lint/dead-code/basic.rs similarity index 100% rename from src/test/ui/lint/dead-code/basic.rs rename to tests/ui/lint/dead-code/basic.rs diff --git a/src/test/ui/lint/dead-code/basic.stderr b/tests/ui/lint/dead-code/basic.stderr similarity index 100% rename from src/test/ui/lint/dead-code/basic.stderr rename to tests/ui/lint/dead-code/basic.stderr diff --git a/src/test/ui/lint/dead-code/closure-bang.rs b/tests/ui/lint/dead-code/closure-bang.rs similarity index 100% rename from src/test/ui/lint/dead-code/closure-bang.rs rename to tests/ui/lint/dead-code/closure-bang.rs diff --git a/src/test/ui/lint/dead-code/const-and-self.rs b/tests/ui/lint/dead-code/const-and-self.rs similarity index 100% rename from src/test/ui/lint/dead-code/const-and-self.rs rename to tests/ui/lint/dead-code/const-and-self.rs diff --git a/src/test/ui/lint/dead-code/const-and-self.stderr b/tests/ui/lint/dead-code/const-and-self.stderr similarity index 100% rename from src/test/ui/lint/dead-code/const-and-self.stderr rename to tests/ui/lint/dead-code/const-and-self.stderr diff --git a/src/test/ui/lint/dead-code/empty-unused-enum.rs b/tests/ui/lint/dead-code/empty-unused-enum.rs similarity index 100% rename from src/test/ui/lint/dead-code/empty-unused-enum.rs rename to tests/ui/lint/dead-code/empty-unused-enum.rs diff --git a/src/test/ui/lint/dead-code/empty-unused-enum.stderr b/tests/ui/lint/dead-code/empty-unused-enum.stderr similarity index 100% rename from src/test/ui/lint/dead-code/empty-unused-enum.stderr rename to tests/ui/lint/dead-code/empty-unused-enum.stderr diff --git a/src/test/ui/lint/dead-code/empty-unused-public-enum.rs b/tests/ui/lint/dead-code/empty-unused-public-enum.rs similarity index 100% rename from src/test/ui/lint/dead-code/empty-unused-public-enum.rs rename to tests/ui/lint/dead-code/empty-unused-public-enum.rs diff --git a/src/test/ui/lint/dead-code/enum-variants.rs b/tests/ui/lint/dead-code/enum-variants.rs similarity index 100% rename from src/test/ui/lint/dead-code/enum-variants.rs rename to tests/ui/lint/dead-code/enum-variants.rs diff --git a/src/test/ui/lint/dead-code/impl-trait.rs b/tests/ui/lint/dead-code/impl-trait.rs similarity index 100% rename from src/test/ui/lint/dead-code/impl-trait.rs rename to tests/ui/lint/dead-code/impl-trait.rs diff --git a/src/test/ui/lint/dead-code/impl-trait.stderr b/tests/ui/lint/dead-code/impl-trait.stderr similarity index 100% rename from src/test/ui/lint/dead-code/impl-trait.stderr rename to tests/ui/lint/dead-code/impl-trait.stderr diff --git a/src/test/ui/lint/dead-code/issue-68408-false-positive.rs b/tests/ui/lint/dead-code/issue-68408-false-positive.rs similarity index 100% rename from src/test/ui/lint/dead-code/issue-68408-false-positive.rs rename to tests/ui/lint/dead-code/issue-68408-false-positive.rs diff --git a/src/test/ui/lint/dead-code/issue-85071-2.rs b/tests/ui/lint/dead-code/issue-85071-2.rs similarity index 100% rename from src/test/ui/lint/dead-code/issue-85071-2.rs rename to tests/ui/lint/dead-code/issue-85071-2.rs diff --git a/src/test/ui/lint/dead-code/issue-85071-2.stderr b/tests/ui/lint/dead-code/issue-85071-2.stderr similarity index 100% rename from src/test/ui/lint/dead-code/issue-85071-2.stderr rename to tests/ui/lint/dead-code/issue-85071-2.stderr diff --git a/src/test/ui/lint/dead-code/issue-85071.rs b/tests/ui/lint/dead-code/issue-85071.rs similarity index 100% rename from src/test/ui/lint/dead-code/issue-85071.rs rename to tests/ui/lint/dead-code/issue-85071.rs diff --git a/src/test/ui/lint/dead-code/issue-85071.stderr b/tests/ui/lint/dead-code/issue-85071.stderr similarity index 100% rename from src/test/ui/lint/dead-code/issue-85071.stderr rename to tests/ui/lint/dead-code/issue-85071.stderr diff --git a/src/test/ui/lint/dead-code/issue-85255.rs b/tests/ui/lint/dead-code/issue-85255.rs similarity index 100% rename from src/test/ui/lint/dead-code/issue-85255.rs rename to tests/ui/lint/dead-code/issue-85255.rs diff --git a/src/test/ui/lint/dead-code/issue-85255.stderr b/tests/ui/lint/dead-code/issue-85255.stderr similarity index 100% rename from src/test/ui/lint/dead-code/issue-85255.stderr rename to tests/ui/lint/dead-code/issue-85255.stderr diff --git a/src/test/ui/lint/dead-code/leading-underscore.rs b/tests/ui/lint/dead-code/leading-underscore.rs similarity index 100% rename from src/test/ui/lint/dead-code/leading-underscore.rs rename to tests/ui/lint/dead-code/leading-underscore.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-1.rs b/tests/ui/lint/dead-code/lint-dead-code-1.rs similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-1.rs rename to tests/ui/lint/dead-code/lint-dead-code-1.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-1.stderr b/tests/ui/lint/dead-code/lint-dead-code-1.stderr similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-1.stderr rename to tests/ui/lint/dead-code/lint-dead-code-1.stderr diff --git a/src/test/ui/lint/dead-code/lint-dead-code-2.rs b/tests/ui/lint/dead-code/lint-dead-code-2.rs similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-2.rs rename to tests/ui/lint/dead-code/lint-dead-code-2.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-2.stderr b/tests/ui/lint/dead-code/lint-dead-code-2.stderr similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-2.stderr rename to tests/ui/lint/dead-code/lint-dead-code-2.stderr diff --git a/src/test/ui/lint/dead-code/lint-dead-code-3.rs b/tests/ui/lint/dead-code/lint-dead-code-3.rs similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-3.rs rename to tests/ui/lint/dead-code/lint-dead-code-3.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-3.stderr b/tests/ui/lint/dead-code/lint-dead-code-3.stderr similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-3.stderr rename to tests/ui/lint/dead-code/lint-dead-code-3.stderr diff --git a/src/test/ui/lint/dead-code/lint-dead-code-4.rs b/tests/ui/lint/dead-code/lint-dead-code-4.rs similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-4.rs rename to tests/ui/lint/dead-code/lint-dead-code-4.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-4.stderr b/tests/ui/lint/dead-code/lint-dead-code-4.stderr similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-4.stderr rename to tests/ui/lint/dead-code/lint-dead-code-4.stderr diff --git a/src/test/ui/lint/dead-code/lint-dead-code-5.rs b/tests/ui/lint/dead-code/lint-dead-code-5.rs similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-5.rs rename to tests/ui/lint/dead-code/lint-dead-code-5.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-5.stderr b/tests/ui/lint/dead-code/lint-dead-code-5.stderr similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-5.stderr rename to tests/ui/lint/dead-code/lint-dead-code-5.stderr diff --git a/src/test/ui/lint/dead-code/lint-dead-code-6.rs b/tests/ui/lint/dead-code/lint-dead-code-6.rs similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-6.rs rename to tests/ui/lint/dead-code/lint-dead-code-6.rs diff --git a/src/test/ui/lint/dead-code/lint-dead-code-6.stderr b/tests/ui/lint/dead-code/lint-dead-code-6.stderr similarity index 100% rename from src/test/ui/lint/dead-code/lint-dead-code-6.stderr rename to tests/ui/lint/dead-code/lint-dead-code-6.stderr diff --git a/src/test/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs b/tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs similarity index 100% rename from src/test/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs rename to tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.rs diff --git a/src/test/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.stderr b/tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.stderr similarity index 100% rename from src/test/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.stderr rename to tests/ui/lint/dead-code/multiple-dead-codes-in-the-same-struct.stderr diff --git a/src/test/ui/lint/dead-code/newline-span.rs b/tests/ui/lint/dead-code/newline-span.rs similarity index 100% rename from src/test/ui/lint/dead-code/newline-span.rs rename to tests/ui/lint/dead-code/newline-span.rs diff --git a/src/test/ui/lint/dead-code/newline-span.stderr b/tests/ui/lint/dead-code/newline-span.stderr similarity index 100% rename from src/test/ui/lint/dead-code/newline-span.stderr rename to tests/ui/lint/dead-code/newline-span.stderr diff --git a/src/test/ui/lint/dead-code/self-assign.rs b/tests/ui/lint/dead-code/self-assign.rs similarity index 100% rename from src/test/ui/lint/dead-code/self-assign.rs rename to tests/ui/lint/dead-code/self-assign.rs diff --git a/src/test/ui/lint/dead-code/self-assign.stderr b/tests/ui/lint/dead-code/self-assign.stderr similarity index 100% rename from src/test/ui/lint/dead-code/self-assign.stderr rename to tests/ui/lint/dead-code/self-assign.stderr diff --git a/src/test/ui/lint/dead-code/trait-impl.rs b/tests/ui/lint/dead-code/trait-impl.rs similarity index 100% rename from src/test/ui/lint/dead-code/trait-impl.rs rename to tests/ui/lint/dead-code/trait-impl.rs diff --git a/src/test/ui/lint/dead-code/tuple-struct-field.rs b/tests/ui/lint/dead-code/tuple-struct-field.rs similarity index 100% rename from src/test/ui/lint/dead-code/tuple-struct-field.rs rename to tests/ui/lint/dead-code/tuple-struct-field.rs diff --git a/src/test/ui/lint/dead-code/tuple-struct-field.stderr b/tests/ui/lint/dead-code/tuple-struct-field.stderr similarity index 100% rename from src/test/ui/lint/dead-code/tuple-struct-field.stderr rename to tests/ui/lint/dead-code/tuple-struct-field.stderr diff --git a/src/test/ui/lint/dead-code/type-alias.rs b/tests/ui/lint/dead-code/type-alias.rs similarity index 100% rename from src/test/ui/lint/dead-code/type-alias.rs rename to tests/ui/lint/dead-code/type-alias.rs diff --git a/src/test/ui/lint/dead-code/type-alias.stderr b/tests/ui/lint/dead-code/type-alias.stderr similarity index 100% rename from src/test/ui/lint/dead-code/type-alias.stderr rename to tests/ui/lint/dead-code/type-alias.stderr diff --git a/src/test/ui/lint/dead-code/type-in-foreign.rs b/tests/ui/lint/dead-code/type-in-foreign.rs similarity index 100% rename from src/test/ui/lint/dead-code/type-in-foreign.rs rename to tests/ui/lint/dead-code/type-in-foreign.rs diff --git a/src/test/ui/lint/dead-code/unused-enum.rs b/tests/ui/lint/dead-code/unused-enum.rs similarity index 100% rename from src/test/ui/lint/dead-code/unused-enum.rs rename to tests/ui/lint/dead-code/unused-enum.rs diff --git a/src/test/ui/lint/dead-code/unused-enum.stderr b/tests/ui/lint/dead-code/unused-enum.stderr similarity index 100% rename from src/test/ui/lint/dead-code/unused-enum.stderr rename to tests/ui/lint/dead-code/unused-enum.stderr diff --git a/src/test/ui/lint/dead-code/unused-struct-variant.rs b/tests/ui/lint/dead-code/unused-struct-variant.rs similarity index 100% rename from src/test/ui/lint/dead-code/unused-struct-variant.rs rename to tests/ui/lint/dead-code/unused-struct-variant.rs diff --git a/src/test/ui/lint/dead-code/unused-struct-variant.stderr b/tests/ui/lint/dead-code/unused-struct-variant.stderr similarity index 100% rename from src/test/ui/lint/dead-code/unused-struct-variant.stderr rename to tests/ui/lint/dead-code/unused-struct-variant.stderr diff --git a/src/test/ui/lint/dead-code/unused-variant-pub.rs b/tests/ui/lint/dead-code/unused-variant-pub.rs similarity index 100% rename from src/test/ui/lint/dead-code/unused-variant-pub.rs rename to tests/ui/lint/dead-code/unused-variant-pub.rs diff --git a/src/test/ui/lint/dead-code/unused-variant.rs b/tests/ui/lint/dead-code/unused-variant.rs similarity index 100% rename from src/test/ui/lint/dead-code/unused-variant.rs rename to tests/ui/lint/dead-code/unused-variant.rs diff --git a/src/test/ui/lint/dead-code/unused-variant.stderr b/tests/ui/lint/dead-code/unused-variant.stderr similarity index 100% rename from src/test/ui/lint/dead-code/unused-variant.stderr rename to tests/ui/lint/dead-code/unused-variant.stderr diff --git a/src/test/ui/lint/dead-code/with-core-crate.rs b/tests/ui/lint/dead-code/with-core-crate.rs similarity index 100% rename from src/test/ui/lint/dead-code/with-core-crate.rs rename to tests/ui/lint/dead-code/with-core-crate.rs diff --git a/src/test/ui/lint/dead-code/with-core-crate.stderr b/tests/ui/lint/dead-code/with-core-crate.stderr similarity index 100% rename from src/test/ui/lint/dead-code/with-core-crate.stderr rename to tests/ui/lint/dead-code/with-core-crate.stderr diff --git a/src/test/ui/lint/dead-code/with-impl.rs b/tests/ui/lint/dead-code/with-impl.rs similarity index 100% rename from src/test/ui/lint/dead-code/with-impl.rs rename to tests/ui/lint/dead-code/with-impl.rs diff --git a/src/test/ui/lint/deny-overflowing-literals.rs b/tests/ui/lint/deny-overflowing-literals.rs similarity index 100% rename from src/test/ui/lint/deny-overflowing-literals.rs rename to tests/ui/lint/deny-overflowing-literals.rs diff --git a/src/test/ui/lint/deny-overflowing-literals.stderr b/tests/ui/lint/deny-overflowing-literals.stderr similarity index 100% rename from src/test/ui/lint/deny-overflowing-literals.stderr rename to tests/ui/lint/deny-overflowing-literals.stderr diff --git a/src/test/ui/lint/empty-lint-attributes.rs b/tests/ui/lint/empty-lint-attributes.rs similarity index 100% rename from src/test/ui/lint/empty-lint-attributes.rs rename to tests/ui/lint/empty-lint-attributes.rs diff --git a/src/test/ui/lint/enable-unstable-lib-feature.rs b/tests/ui/lint/enable-unstable-lib-feature.rs similarity index 100% rename from src/test/ui/lint/enable-unstable-lib-feature.rs rename to tests/ui/lint/enable-unstable-lib-feature.rs diff --git a/src/test/ui/lint/enable-unstable-lib-feature.stderr b/tests/ui/lint/enable-unstable-lib-feature.stderr similarity index 100% rename from src/test/ui/lint/enable-unstable-lib-feature.stderr rename to tests/ui/lint/enable-unstable-lib-feature.stderr diff --git a/src/test/ui/lint/expansion-time-include.rs b/tests/ui/lint/expansion-time-include.rs similarity index 100% rename from src/test/ui/lint/expansion-time-include.rs rename to tests/ui/lint/expansion-time-include.rs diff --git a/src/test/ui/lint/expansion-time.rs b/tests/ui/lint/expansion-time.rs similarity index 100% rename from src/test/ui/lint/expansion-time.rs rename to tests/ui/lint/expansion-time.rs diff --git a/src/test/ui/lint/expansion-time.stderr b/tests/ui/lint/expansion-time.stderr similarity index 100% rename from src/test/ui/lint/expansion-time.stderr rename to tests/ui/lint/expansion-time.stderr diff --git a/src/test/ui/lint/expr_attr_paren_order.rs b/tests/ui/lint/expr_attr_paren_order.rs similarity index 100% rename from src/test/ui/lint/expr_attr_paren_order.rs rename to tests/ui/lint/expr_attr_paren_order.rs diff --git a/src/test/ui/lint/expr_attr_paren_order.stderr b/tests/ui/lint/expr_attr_paren_order.stderr similarity index 100% rename from src/test/ui/lint/expr_attr_paren_order.stderr rename to tests/ui/lint/expr_attr_paren_order.stderr diff --git a/src/test/ui/lint/fn_must_use.rs b/tests/ui/lint/fn_must_use.rs similarity index 100% rename from src/test/ui/lint/fn_must_use.rs rename to tests/ui/lint/fn_must_use.rs diff --git a/src/test/ui/lint/fn_must_use.stderr b/tests/ui/lint/fn_must_use.stderr similarity index 100% rename from src/test/ui/lint/fn_must_use.stderr rename to tests/ui/lint/fn_must_use.stderr diff --git a/src/test/ui/lint/for_loop_over_fallibles.rs b/tests/ui/lint/for_loop_over_fallibles.rs similarity index 100% rename from src/test/ui/lint/for_loop_over_fallibles.rs rename to tests/ui/lint/for_loop_over_fallibles.rs diff --git a/src/test/ui/lint/for_loop_over_fallibles.stderr b/tests/ui/lint/for_loop_over_fallibles.stderr similarity index 100% rename from src/test/ui/lint/for_loop_over_fallibles.stderr rename to tests/ui/lint/for_loop_over_fallibles.stderr diff --git a/src/test/ui/lint/forbid-error-capped.rs b/tests/ui/lint/forbid-error-capped.rs similarity index 100% rename from src/test/ui/lint/forbid-error-capped.rs rename to tests/ui/lint/forbid-error-capped.rs diff --git a/src/test/ui/lint/forbid-group-group-1.rs b/tests/ui/lint/forbid-group-group-1.rs similarity index 100% rename from src/test/ui/lint/forbid-group-group-1.rs rename to tests/ui/lint/forbid-group-group-1.rs diff --git a/src/test/ui/lint/forbid-group-group-1.stderr b/tests/ui/lint/forbid-group-group-1.stderr similarity index 100% rename from src/test/ui/lint/forbid-group-group-1.stderr rename to tests/ui/lint/forbid-group-group-1.stderr diff --git a/src/test/ui/lint/forbid-group-group-2.rs b/tests/ui/lint/forbid-group-group-2.rs similarity index 100% rename from src/test/ui/lint/forbid-group-group-2.rs rename to tests/ui/lint/forbid-group-group-2.rs diff --git a/src/test/ui/lint/forbid-group-group-2.stderr b/tests/ui/lint/forbid-group-group-2.stderr similarity index 100% rename from src/test/ui/lint/forbid-group-group-2.stderr rename to tests/ui/lint/forbid-group-group-2.stderr diff --git a/src/test/ui/lint/forbid-group-member.rs b/tests/ui/lint/forbid-group-member.rs similarity index 100% rename from src/test/ui/lint/forbid-group-member.rs rename to tests/ui/lint/forbid-group-member.rs diff --git a/src/test/ui/lint/forbid-group-member.stderr b/tests/ui/lint/forbid-group-member.stderr similarity index 100% rename from src/test/ui/lint/forbid-group-member.stderr rename to tests/ui/lint/forbid-group-member.stderr diff --git a/src/test/ui/lint/forbid-member-group.rs b/tests/ui/lint/forbid-member-group.rs similarity index 100% rename from src/test/ui/lint/forbid-member-group.rs rename to tests/ui/lint/forbid-member-group.rs diff --git a/src/test/ui/lint/forbid-member-group.stderr b/tests/ui/lint/forbid-member-group.stderr similarity index 100% rename from src/test/ui/lint/forbid-member-group.stderr rename to tests/ui/lint/forbid-member-group.stderr diff --git a/src/test/ui/lint/force-warn/allow-warnings.rs b/tests/ui/lint/force-warn/allow-warnings.rs similarity index 100% rename from src/test/ui/lint/force-warn/allow-warnings.rs rename to tests/ui/lint/force-warn/allow-warnings.rs diff --git a/src/test/ui/lint/force-warn/allow-warnings.stderr b/tests/ui/lint/force-warn/allow-warnings.stderr similarity index 100% rename from src/test/ui/lint/force-warn/allow-warnings.stderr rename to tests/ui/lint/force-warn/allow-warnings.stderr diff --git a/src/test/ui/lint/force-warn/allowed-by-default-lint.rs b/tests/ui/lint/force-warn/allowed-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/allowed-by-default-lint.rs rename to tests/ui/lint/force-warn/allowed-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/allowed-by-default-lint.stderr b/tests/ui/lint/force-warn/allowed-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/allowed-by-default-lint.stderr rename to tests/ui/lint/force-warn/allowed-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/allowed-cli-deny-by-default-lint.rs b/tests/ui/lint/force-warn/allowed-cli-deny-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/allowed-cli-deny-by-default-lint.rs rename to tests/ui/lint/force-warn/allowed-cli-deny-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/allowed-cli-deny-by-default-lint.stderr b/tests/ui/lint/force-warn/allowed-cli-deny-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/allowed-cli-deny-by-default-lint.stderr rename to tests/ui/lint/force-warn/allowed-cli-deny-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/allowed-deny-by-default-lint.rs b/tests/ui/lint/force-warn/allowed-deny-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/allowed-deny-by-default-lint.rs rename to tests/ui/lint/force-warn/allowed-deny-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/allowed-deny-by-default-lint.stderr b/tests/ui/lint/force-warn/allowed-deny-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/allowed-deny-by-default-lint.stderr rename to tests/ui/lint/force-warn/allowed-deny-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/allowed-group-warn-by-default-lint.rs b/tests/ui/lint/force-warn/allowed-group-warn-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/allowed-group-warn-by-default-lint.rs rename to tests/ui/lint/force-warn/allowed-group-warn-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/allowed-group-warn-by-default-lint.stderr b/tests/ui/lint/force-warn/allowed-group-warn-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/allowed-group-warn-by-default-lint.stderr rename to tests/ui/lint/force-warn/allowed-group-warn-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/allowed-warn-by-default-lint.rs b/tests/ui/lint/force-warn/allowed-warn-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/allowed-warn-by-default-lint.rs rename to tests/ui/lint/force-warn/allowed-warn-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/allowed-warn-by-default-lint.stderr b/tests/ui/lint/force-warn/allowed-warn-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/allowed-warn-by-default-lint.stderr rename to tests/ui/lint/force-warn/allowed-warn-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/cap-lints-allow.rs b/tests/ui/lint/force-warn/cap-lints-allow.rs similarity index 100% rename from src/test/ui/lint/force-warn/cap-lints-allow.rs rename to tests/ui/lint/force-warn/cap-lints-allow.rs diff --git a/src/test/ui/lint/force-warn/cap-lints-allow.stderr b/tests/ui/lint/force-warn/cap-lints-allow.stderr similarity index 100% rename from src/test/ui/lint/force-warn/cap-lints-allow.stderr rename to tests/ui/lint/force-warn/cap-lints-allow.stderr diff --git a/src/test/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.rs b/tests/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.rs rename to tests/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.stderr b/tests/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.stderr rename to tests/ui/lint/force-warn/cap-lints-warn-allowed-warn-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/deny-by-default-lint.rs b/tests/ui/lint/force-warn/deny-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/deny-by-default-lint.rs rename to tests/ui/lint/force-warn/deny-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/deny-by-default-lint.stderr b/tests/ui/lint/force-warn/deny-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/deny-by-default-lint.stderr rename to tests/ui/lint/force-warn/deny-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/lint-group-allow-warnings.rs b/tests/ui/lint/force-warn/lint-group-allow-warnings.rs similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allow-warnings.rs rename to tests/ui/lint/force-warn/lint-group-allow-warnings.rs diff --git a/src/test/ui/lint/force-warn/lint-group-allow-warnings.stderr b/tests/ui/lint/force-warn/lint-group-allow-warnings.stderr similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allow-warnings.stderr rename to tests/ui/lint/force-warn/lint-group-allow-warnings.stderr diff --git a/src/test/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.rs b/tests/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.rs rename to tests/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.stderr b/tests/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.stderr rename to tests/ui/lint/force-warn/lint-group-allowed-cli-warn-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/lint-group-allowed-lint-group.rs b/tests/ui/lint/force-warn/lint-group-allowed-lint-group.rs similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allowed-lint-group.rs rename to tests/ui/lint/force-warn/lint-group-allowed-lint-group.rs diff --git a/src/test/ui/lint/force-warn/lint-group-allowed-lint-group.stderr b/tests/ui/lint/force-warn/lint-group-allowed-lint-group.stderr similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allowed-lint-group.stderr rename to tests/ui/lint/force-warn/lint-group-allowed-lint-group.stderr diff --git a/src/test/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.rs b/tests/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.rs similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.rs rename to tests/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.rs diff --git a/src/test/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.stderr b/tests/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.stderr similarity index 100% rename from src/test/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.stderr rename to tests/ui/lint/force-warn/lint-group-allowed-warn-by-default-lint.stderr diff --git a/src/test/ui/lint/force-warn/warn-by-default-lint-two-modules.rs b/tests/ui/lint/force-warn/warn-by-default-lint-two-modules.rs similarity index 100% rename from src/test/ui/lint/force-warn/warn-by-default-lint-two-modules.rs rename to tests/ui/lint/force-warn/warn-by-default-lint-two-modules.rs diff --git a/src/test/ui/lint/force-warn/warn-by-default-lint-two-modules.stderr b/tests/ui/lint/force-warn/warn-by-default-lint-two-modules.stderr similarity index 100% rename from src/test/ui/lint/force-warn/warn-by-default-lint-two-modules.stderr rename to tests/ui/lint/force-warn/warn-by-default-lint-two-modules.stderr diff --git a/src/test/ui/lint/force-warn/warnings-lint-group.rs b/tests/ui/lint/force-warn/warnings-lint-group.rs similarity index 100% rename from src/test/ui/lint/force-warn/warnings-lint-group.rs rename to tests/ui/lint/force-warn/warnings-lint-group.rs diff --git a/src/test/ui/lint/force-warn/warnings-lint-group.stderr b/tests/ui/lint/force-warn/warnings-lint-group.stderr similarity index 100% rename from src/test/ui/lint/force-warn/warnings-lint-group.stderr rename to tests/ui/lint/force-warn/warnings-lint-group.stderr diff --git a/src/test/ui/lint/function-item-references.rs b/tests/ui/lint/function-item-references.rs similarity index 100% rename from src/test/ui/lint/function-item-references.rs rename to tests/ui/lint/function-item-references.rs diff --git a/src/test/ui/lint/function-item-references.stderr b/tests/ui/lint/function-item-references.stderr similarity index 100% rename from src/test/ui/lint/function-item-references.stderr rename to tests/ui/lint/function-item-references.stderr diff --git a/src/test/ui/lint/future-incompat-test.rs b/tests/ui/lint/future-incompat-test.rs similarity index 100% rename from src/test/ui/lint/future-incompat-test.rs rename to tests/ui/lint/future-incompat-test.rs diff --git a/src/test/ui/lint/future-incompat-test.stderr b/tests/ui/lint/future-incompat-test.stderr similarity index 100% rename from src/test/ui/lint/future-incompat-test.stderr rename to tests/ui/lint/future-incompat-test.stderr diff --git a/src/test/ui/lint/inclusive-range-pattern-syntax.fixed b/tests/ui/lint/inclusive-range-pattern-syntax.fixed similarity index 100% rename from src/test/ui/lint/inclusive-range-pattern-syntax.fixed rename to tests/ui/lint/inclusive-range-pattern-syntax.fixed diff --git a/src/test/ui/lint/inclusive-range-pattern-syntax.rs b/tests/ui/lint/inclusive-range-pattern-syntax.rs similarity index 100% rename from src/test/ui/lint/inclusive-range-pattern-syntax.rs rename to tests/ui/lint/inclusive-range-pattern-syntax.rs diff --git a/src/test/ui/lint/inclusive-range-pattern-syntax.stderr b/tests/ui/lint/inclusive-range-pattern-syntax.stderr similarity index 100% rename from src/test/ui/lint/inclusive-range-pattern-syntax.stderr rename to tests/ui/lint/inclusive-range-pattern-syntax.stderr diff --git a/src/test/ui/lint/inert-attr-macro.rs b/tests/ui/lint/inert-attr-macro.rs similarity index 100% rename from src/test/ui/lint/inert-attr-macro.rs rename to tests/ui/lint/inert-attr-macro.rs diff --git a/src/test/ui/lint/inert-attr-macro.stderr b/tests/ui/lint/inert-attr-macro.stderr similarity index 100% rename from src/test/ui/lint/inert-attr-macro.stderr rename to tests/ui/lint/inert-attr-macro.stderr diff --git a/src/test/ui/lint/inline-trait-and-foreign-items.rs b/tests/ui/lint/inline-trait-and-foreign-items.rs similarity index 100% rename from src/test/ui/lint/inline-trait-and-foreign-items.rs rename to tests/ui/lint/inline-trait-and-foreign-items.rs diff --git a/src/test/ui/lint/inline-trait-and-foreign-items.stderr b/tests/ui/lint/inline-trait-and-foreign-items.stderr similarity index 100% rename from src/test/ui/lint/inline-trait-and-foreign-items.stderr rename to tests/ui/lint/inline-trait-and-foreign-items.stderr diff --git a/src/test/ui/lint/invalid_value.rs b/tests/ui/lint/invalid_value.rs similarity index 100% rename from src/test/ui/lint/invalid_value.rs rename to tests/ui/lint/invalid_value.rs diff --git a/src/test/ui/lint/invalid_value.stderr b/tests/ui/lint/invalid_value.stderr similarity index 100% rename from src/test/ui/lint/invalid_value.stderr rename to tests/ui/lint/invalid_value.stderr diff --git a/src/test/ui/lint/issue-101284.rs b/tests/ui/lint/issue-101284.rs similarity index 100% rename from src/test/ui/lint/issue-101284.rs rename to tests/ui/lint/issue-101284.rs diff --git a/src/test/ui/lint/issue-102705.rs b/tests/ui/lint/issue-102705.rs similarity index 100% rename from src/test/ui/lint/issue-102705.rs rename to tests/ui/lint/issue-102705.rs diff --git a/src/test/ui/lint/issue-103317.fixed b/tests/ui/lint/issue-103317.fixed similarity index 100% rename from src/test/ui/lint/issue-103317.fixed rename to tests/ui/lint/issue-103317.fixed diff --git a/src/test/ui/lint/issue-103317.rs b/tests/ui/lint/issue-103317.rs similarity index 100% rename from src/test/ui/lint/issue-103317.rs rename to tests/ui/lint/issue-103317.rs diff --git a/src/test/ui/lint/issue-103317.stderr b/tests/ui/lint/issue-103317.stderr similarity index 100% rename from src/test/ui/lint/issue-103317.stderr rename to tests/ui/lint/issue-103317.stderr diff --git a/src/test/ui/lint/issue-103435-extra-parentheses.fixed b/tests/ui/lint/issue-103435-extra-parentheses.fixed similarity index 100% rename from src/test/ui/lint/issue-103435-extra-parentheses.fixed rename to tests/ui/lint/issue-103435-extra-parentheses.fixed diff --git a/src/test/ui/lint/issue-103435-extra-parentheses.rs b/tests/ui/lint/issue-103435-extra-parentheses.rs similarity index 100% rename from src/test/ui/lint/issue-103435-extra-parentheses.rs rename to tests/ui/lint/issue-103435-extra-parentheses.rs diff --git a/src/test/ui/lint/issue-103435-extra-parentheses.stderr b/tests/ui/lint/issue-103435-extra-parentheses.stderr similarity index 100% rename from src/test/ui/lint/issue-103435-extra-parentheses.stderr rename to tests/ui/lint/issue-103435-extra-parentheses.stderr diff --git a/src/test/ui/lint/issue-104392.rs b/tests/ui/lint/issue-104392.rs similarity index 100% rename from src/test/ui/lint/issue-104392.rs rename to tests/ui/lint/issue-104392.rs diff --git a/src/test/ui/lint/issue-104392.stderr b/tests/ui/lint/issue-104392.stderr similarity index 100% rename from src/test/ui/lint/issue-104392.stderr rename to tests/ui/lint/issue-104392.stderr diff --git a/src/test/ui/lint/issue-104897.rs b/tests/ui/lint/issue-104897.rs similarity index 100% rename from src/test/ui/lint/issue-104897.rs rename to tests/ui/lint/issue-104897.rs diff --git a/src/test/ui/lint/issue-104897.stderr b/tests/ui/lint/issue-104897.stderr similarity index 100% rename from src/test/ui/lint/issue-104897.stderr rename to tests/ui/lint/issue-104897.stderr diff --git a/src/test/ui/lint/issue-14309.rs b/tests/ui/lint/issue-14309.rs similarity index 100% rename from src/test/ui/lint/issue-14309.rs rename to tests/ui/lint/issue-14309.rs diff --git a/src/test/ui/lint/issue-14309.stderr b/tests/ui/lint/issue-14309.stderr similarity index 100% rename from src/test/ui/lint/issue-14309.stderr rename to tests/ui/lint/issue-14309.stderr diff --git a/src/test/ui/lint/issue-14837.rs b/tests/ui/lint/issue-14837.rs similarity index 100% rename from src/test/ui/lint/issue-14837.rs rename to tests/ui/lint/issue-14837.rs diff --git a/src/test/ui/lint/issue-17718-const-naming.rs b/tests/ui/lint/issue-17718-const-naming.rs similarity index 100% rename from src/test/ui/lint/issue-17718-const-naming.rs rename to tests/ui/lint/issue-17718-const-naming.rs diff --git a/src/test/ui/lint/issue-17718-const-naming.stderr b/tests/ui/lint/issue-17718-const-naming.stderr similarity index 100% rename from src/test/ui/lint/issue-17718-const-naming.stderr rename to tests/ui/lint/issue-17718-const-naming.stderr diff --git a/src/test/ui/lint/issue-1866.rs b/tests/ui/lint/issue-1866.rs similarity index 100% rename from src/test/ui/lint/issue-1866.rs rename to tests/ui/lint/issue-1866.rs diff --git a/src/test/ui/lint/issue-1866.stderr b/tests/ui/lint/issue-1866.stderr similarity index 100% rename from src/test/ui/lint/issue-1866.stderr rename to tests/ui/lint/issue-1866.stderr diff --git a/src/test/ui/lint/issue-20343.rs b/tests/ui/lint/issue-20343.rs similarity index 100% rename from src/test/ui/lint/issue-20343.rs rename to tests/ui/lint/issue-20343.rs diff --git a/src/test/ui/lint/issue-30302.rs b/tests/ui/lint/issue-30302.rs similarity index 100% rename from src/test/ui/lint/issue-30302.rs rename to tests/ui/lint/issue-30302.rs diff --git a/src/test/ui/lint/issue-30302.stderr b/tests/ui/lint/issue-30302.stderr similarity index 100% rename from src/test/ui/lint/issue-30302.stderr rename to tests/ui/lint/issue-30302.stderr diff --git a/src/test/ui/lint/issue-31924-non-snake-ffi.rs b/tests/ui/lint/issue-31924-non-snake-ffi.rs similarity index 100% rename from src/test/ui/lint/issue-31924-non-snake-ffi.rs rename to tests/ui/lint/issue-31924-non-snake-ffi.rs diff --git a/src/test/ui/lint/issue-34798.rs b/tests/ui/lint/issue-34798.rs similarity index 100% rename from src/test/ui/lint/issue-34798.rs rename to tests/ui/lint/issue-34798.rs diff --git a/src/test/ui/lint/issue-35075.rs b/tests/ui/lint/issue-35075.rs similarity index 100% rename from src/test/ui/lint/issue-35075.rs rename to tests/ui/lint/issue-35075.rs diff --git a/src/test/ui/lint/issue-35075.stderr b/tests/ui/lint/issue-35075.stderr similarity index 100% rename from src/test/ui/lint/issue-35075.stderr rename to tests/ui/lint/issue-35075.stderr diff --git a/src/test/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs b/tests/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs similarity index 100% rename from src/test/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs rename to tests/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs diff --git a/src/test/ui/lint/issue-54099-camel-case-underscore-types.rs b/tests/ui/lint/issue-54099-camel-case-underscore-types.rs similarity index 100% rename from src/test/ui/lint/issue-54099-camel-case-underscore-types.rs rename to tests/ui/lint/issue-54099-camel-case-underscore-types.rs diff --git a/src/test/ui/lint/issue-57410-1.rs b/tests/ui/lint/issue-57410-1.rs similarity index 100% rename from src/test/ui/lint/issue-57410-1.rs rename to tests/ui/lint/issue-57410-1.rs diff --git a/src/test/ui/lint/issue-57410.rs b/tests/ui/lint/issue-57410.rs similarity index 100% rename from src/test/ui/lint/issue-57410.rs rename to tests/ui/lint/issue-57410.rs diff --git a/src/test/ui/lint/issue-63364.rs b/tests/ui/lint/issue-63364.rs similarity index 100% rename from src/test/ui/lint/issue-63364.rs rename to tests/ui/lint/issue-63364.rs diff --git a/src/test/ui/lint/issue-63364.stderr b/tests/ui/lint/issue-63364.stderr similarity index 100% rename from src/test/ui/lint/issue-63364.stderr rename to tests/ui/lint/issue-63364.stderr diff --git a/src/test/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.rs b/tests/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.rs similarity index 100% rename from src/test/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.rs rename to tests/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.rs diff --git a/src/test/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.stderr b/tests/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.stderr similarity index 100% rename from src/test/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.stderr rename to tests/ui/lint/issue-66362-no-snake-case-warning-for-field-puns.stderr diff --git a/src/test/ui/lint/issue-70819-dont-override-forbid-in-same-scope.rs b/tests/ui/lint/issue-70819-dont-override-forbid-in-same-scope.rs similarity index 100% rename from src/test/ui/lint/issue-70819-dont-override-forbid-in-same-scope.rs rename to tests/ui/lint/issue-70819-dont-override-forbid-in-same-scope.rs diff --git a/src/test/ui/lint/issue-70819-dont-override-forbid-in-same-scope.stderr b/tests/ui/lint/issue-70819-dont-override-forbid-in-same-scope.stderr similarity index 100% rename from src/test/ui/lint/issue-70819-dont-override-forbid-in-same-scope.stderr rename to tests/ui/lint/issue-70819-dont-override-forbid-in-same-scope.stderr diff --git a/src/test/ui/lint/issue-79546-fuel-ice.rs b/tests/ui/lint/issue-79546-fuel-ice.rs similarity index 100% rename from src/test/ui/lint/issue-79546-fuel-ice.rs rename to tests/ui/lint/issue-79546-fuel-ice.rs diff --git a/src/test/ui/lint/issue-79744.rs b/tests/ui/lint/issue-79744.rs similarity index 100% rename from src/test/ui/lint/issue-79744.rs rename to tests/ui/lint/issue-79744.rs diff --git a/src/test/ui/lint/issue-79744.stderr b/tests/ui/lint/issue-79744.stderr similarity index 100% rename from src/test/ui/lint/issue-79744.stderr rename to tests/ui/lint/issue-79744.stderr diff --git a/src/test/ui/lint/issue-80988.rs b/tests/ui/lint/issue-80988.rs similarity index 100% rename from src/test/ui/lint/issue-80988.rs rename to tests/ui/lint/issue-80988.rs diff --git a/src/test/ui/lint/issue-80988.stderr b/tests/ui/lint/issue-80988.stderr similarity index 100% rename from src/test/ui/lint/issue-80988.stderr rename to tests/ui/lint/issue-80988.stderr diff --git a/src/test/ui/lint/issue-81218.rs b/tests/ui/lint/issue-81218.rs similarity index 100% rename from src/test/ui/lint/issue-81218.rs rename to tests/ui/lint/issue-81218.rs diff --git a/src/test/ui/lint/issue-83477.rs b/tests/ui/lint/issue-83477.rs similarity index 100% rename from src/test/ui/lint/issue-83477.rs rename to tests/ui/lint/issue-83477.rs diff --git a/src/test/ui/lint/issue-83477.stderr b/tests/ui/lint/issue-83477.stderr similarity index 100% rename from src/test/ui/lint/issue-83477.stderr rename to tests/ui/lint/issue-83477.stderr diff --git a/src/test/ui/lint/issue-86600-lint-twice.rs b/tests/ui/lint/issue-86600-lint-twice.rs similarity index 100% rename from src/test/ui/lint/issue-86600-lint-twice.rs rename to tests/ui/lint/issue-86600-lint-twice.rs diff --git a/src/test/ui/lint/issue-86600-lint-twice.stderr b/tests/ui/lint/issue-86600-lint-twice.stderr similarity index 100% rename from src/test/ui/lint/issue-86600-lint-twice.stderr rename to tests/ui/lint/issue-86600-lint-twice.stderr diff --git a/src/test/ui/lint/issue-87274-paren-parent.rs b/tests/ui/lint/issue-87274-paren-parent.rs similarity index 100% rename from src/test/ui/lint/issue-87274-paren-parent.rs rename to tests/ui/lint/issue-87274-paren-parent.rs diff --git a/src/test/ui/lint/issue-87274-paren-parent.stderr b/tests/ui/lint/issue-87274-paren-parent.stderr similarity index 100% rename from src/test/ui/lint/issue-87274-paren-parent.stderr rename to tests/ui/lint/issue-87274-paren-parent.stderr diff --git a/src/test/ui/lint/issue-89469.rs b/tests/ui/lint/issue-89469.rs similarity index 100% rename from src/test/ui/lint/issue-89469.rs rename to tests/ui/lint/issue-89469.rs diff --git a/src/test/ui/lint/issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs b/tests/ui/lint/issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs similarity index 100% rename from src/test/ui/lint/issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs rename to tests/ui/lint/issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs diff --git a/src/test/ui/lint/issue-97094.rs b/tests/ui/lint/issue-97094.rs similarity index 100% rename from src/test/ui/lint/issue-97094.rs rename to tests/ui/lint/issue-97094.rs diff --git a/src/test/ui/lint/issue-97094.stderr b/tests/ui/lint/issue-97094.stderr similarity index 100% rename from src/test/ui/lint/issue-97094.stderr rename to tests/ui/lint/issue-97094.stderr diff --git a/src/test/ui/lint/issue-99387.rs b/tests/ui/lint/issue-99387.rs similarity index 100% rename from src/test/ui/lint/issue-99387.rs rename to tests/ui/lint/issue-99387.rs diff --git a/src/test/ui/lint/known-tool-in-submodule/root.rs b/tests/ui/lint/known-tool-in-submodule/root.rs similarity index 100% rename from src/test/ui/lint/known-tool-in-submodule/root.rs rename to tests/ui/lint/known-tool-in-submodule/root.rs diff --git a/src/test/ui/lint/known-tool-in-submodule/submodule.rs b/tests/ui/lint/known-tool-in-submodule/submodule.rs similarity index 100% rename from src/test/ui/lint/known-tool-in-submodule/submodule.rs rename to tests/ui/lint/known-tool-in-submodule/submodule.rs diff --git a/src/test/ui/lint/let_underscore/let_underscore_drop.rs b/tests/ui/lint/let_underscore/let_underscore_drop.rs similarity index 100% rename from src/test/ui/lint/let_underscore/let_underscore_drop.rs rename to tests/ui/lint/let_underscore/let_underscore_drop.rs diff --git a/src/test/ui/lint/let_underscore/let_underscore_drop.stderr b/tests/ui/lint/let_underscore/let_underscore_drop.stderr similarity index 100% rename from src/test/ui/lint/let_underscore/let_underscore_drop.stderr rename to tests/ui/lint/let_underscore/let_underscore_drop.stderr diff --git a/src/test/ui/lint/let_underscore/let_underscore_lock.rs b/tests/ui/lint/let_underscore/let_underscore_lock.rs similarity index 100% rename from src/test/ui/lint/let_underscore/let_underscore_lock.rs rename to tests/ui/lint/let_underscore/let_underscore_lock.rs diff --git a/src/test/ui/lint/let_underscore/let_underscore_lock.stderr b/tests/ui/lint/let_underscore/let_underscore_lock.stderr similarity index 100% rename from src/test/ui/lint/let_underscore/let_underscore_lock.stderr rename to tests/ui/lint/let_underscore/let_underscore_lock.stderr diff --git a/src/test/ui/lint/lint-attr-everywhere-early.rs b/tests/ui/lint/lint-attr-everywhere-early.rs similarity index 100% rename from src/test/ui/lint/lint-attr-everywhere-early.rs rename to tests/ui/lint/lint-attr-everywhere-early.rs diff --git a/src/test/ui/lint/lint-attr-everywhere-early.stderr b/tests/ui/lint/lint-attr-everywhere-early.stderr similarity index 100% rename from src/test/ui/lint/lint-attr-everywhere-early.stderr rename to tests/ui/lint/lint-attr-everywhere-early.stderr diff --git a/src/test/ui/lint/lint-attr-everywhere-late.rs b/tests/ui/lint/lint-attr-everywhere-late.rs similarity index 100% rename from src/test/ui/lint/lint-attr-everywhere-late.rs rename to tests/ui/lint/lint-attr-everywhere-late.rs diff --git a/src/test/ui/lint/lint-attr-everywhere-late.stderr b/tests/ui/lint/lint-attr-everywhere-late.stderr similarity index 100% rename from src/test/ui/lint/lint-attr-everywhere-late.stderr rename to tests/ui/lint/lint-attr-everywhere-late.stderr diff --git a/src/test/ui/lint/lint-attr-non-item-node.rs b/tests/ui/lint/lint-attr-non-item-node.rs similarity index 100% rename from src/test/ui/lint/lint-attr-non-item-node.rs rename to tests/ui/lint/lint-attr-non-item-node.rs diff --git a/src/test/ui/lint/lint-attr-non-item-node.stderr b/tests/ui/lint/lint-attr-non-item-node.stderr similarity index 100% rename from src/test/ui/lint/lint-attr-non-item-node.stderr rename to tests/ui/lint/lint-attr-non-item-node.stderr diff --git a/src/test/ui/lint/lint-cap.rs b/tests/ui/lint/lint-cap.rs similarity index 100% rename from src/test/ui/lint/lint-cap.rs rename to tests/ui/lint/lint-cap.rs diff --git a/src/test/ui/lint/lint-change-warnings.rs b/tests/ui/lint/lint-change-warnings.rs similarity index 100% rename from src/test/ui/lint/lint-change-warnings.rs rename to tests/ui/lint/lint-change-warnings.rs diff --git a/src/test/ui/lint/lint-change-warnings.stderr b/tests/ui/lint/lint-change-warnings.stderr similarity index 100% rename from src/test/ui/lint/lint-change-warnings.stderr rename to tests/ui/lint/lint-change-warnings.stderr diff --git a/src/test/ui/lint/lint-const-item-mutation.rs b/tests/ui/lint/lint-const-item-mutation.rs similarity index 100% rename from src/test/ui/lint/lint-const-item-mutation.rs rename to tests/ui/lint/lint-const-item-mutation.rs diff --git a/src/test/ui/lint/lint-const-item-mutation.stderr b/tests/ui/lint/lint-const-item-mutation.stderr similarity index 100% rename from src/test/ui/lint/lint-const-item-mutation.stderr rename to tests/ui/lint/lint-const-item-mutation.stderr diff --git a/src/test/ui/lint/lint-ctypes-66202.rs b/tests/ui/lint/lint-ctypes-66202.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-66202.rs rename to tests/ui/lint/lint-ctypes-66202.rs diff --git a/src/test/ui/lint/lint-ctypes-73249-1.rs b/tests/ui/lint/lint-ctypes-73249-1.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-1.rs rename to tests/ui/lint/lint-ctypes-73249-1.rs diff --git a/src/test/ui/lint/lint-ctypes-73249-2.rs b/tests/ui/lint/lint-ctypes-73249-2.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-2.rs rename to tests/ui/lint/lint-ctypes-73249-2.rs diff --git a/src/test/ui/lint/lint-ctypes-73249-2.stderr b/tests/ui/lint/lint-ctypes-73249-2.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-2.stderr rename to tests/ui/lint/lint-ctypes-73249-2.stderr diff --git a/src/test/ui/lint/lint-ctypes-73249-3.rs b/tests/ui/lint/lint-ctypes-73249-3.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-3.rs rename to tests/ui/lint/lint-ctypes-73249-3.rs diff --git a/src/test/ui/lint/lint-ctypes-73249-3.stderr b/tests/ui/lint/lint-ctypes-73249-3.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-3.stderr rename to tests/ui/lint/lint-ctypes-73249-3.stderr diff --git a/src/test/ui/lint/lint-ctypes-73249-4.rs b/tests/ui/lint/lint-ctypes-73249-4.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-4.rs rename to tests/ui/lint/lint-ctypes-73249-4.rs diff --git a/src/test/ui/lint/lint-ctypes-73249-5.rs b/tests/ui/lint/lint-ctypes-73249-5.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-5.rs rename to tests/ui/lint/lint-ctypes-73249-5.rs diff --git a/src/test/ui/lint/lint-ctypes-73249-5.stderr b/tests/ui/lint/lint-ctypes-73249-5.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249-5.stderr rename to tests/ui/lint/lint-ctypes-73249-5.stderr diff --git a/src/test/ui/lint/lint-ctypes-73249.rs b/tests/ui/lint/lint-ctypes-73249.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73249.rs rename to tests/ui/lint/lint-ctypes-73249.rs diff --git a/src/test/ui/lint/lint-ctypes-73251-1.rs b/tests/ui/lint/lint-ctypes-73251-1.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73251-1.rs rename to tests/ui/lint/lint-ctypes-73251-1.rs diff --git a/src/test/ui/lint/lint-ctypes-73251-1.stderr b/tests/ui/lint/lint-ctypes-73251-1.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-73251-1.stderr rename to tests/ui/lint/lint-ctypes-73251-1.stderr diff --git a/src/test/ui/lint/lint-ctypes-73251-2.rs b/tests/ui/lint/lint-ctypes-73251-2.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73251-2.rs rename to tests/ui/lint/lint-ctypes-73251-2.rs diff --git a/src/test/ui/lint/lint-ctypes-73251-2.stderr b/tests/ui/lint/lint-ctypes-73251-2.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-73251-2.stderr rename to tests/ui/lint/lint-ctypes-73251-2.stderr diff --git a/src/test/ui/lint/lint-ctypes-73251.rs b/tests/ui/lint/lint-ctypes-73251.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73251.rs rename to tests/ui/lint/lint-ctypes-73251.rs diff --git a/src/test/ui/lint/lint-ctypes-73747.rs b/tests/ui/lint/lint-ctypes-73747.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-73747.rs rename to tests/ui/lint/lint-ctypes-73747.rs diff --git a/src/test/ui/lint/lint-ctypes-enum.rs b/tests/ui/lint/lint-ctypes-enum.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-enum.rs rename to tests/ui/lint/lint-ctypes-enum.rs diff --git a/src/test/ui/lint/lint-ctypes-enum.stderr b/tests/ui/lint/lint-ctypes-enum.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-enum.stderr rename to tests/ui/lint/lint-ctypes-enum.stderr diff --git a/src/test/ui/lint/lint-ctypes-fn.rs b/tests/ui/lint/lint-ctypes-fn.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes-fn.rs rename to tests/ui/lint/lint-ctypes-fn.rs diff --git a/src/test/ui/lint/lint-ctypes-fn.stderr b/tests/ui/lint/lint-ctypes-fn.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes-fn.stderr rename to tests/ui/lint/lint-ctypes-fn.stderr diff --git a/src/test/ui/lint/lint-ctypes.rs b/tests/ui/lint/lint-ctypes.rs similarity index 100% rename from src/test/ui/lint/lint-ctypes.rs rename to tests/ui/lint/lint-ctypes.rs diff --git a/src/test/ui/lint/lint-ctypes.stderr b/tests/ui/lint/lint-ctypes.stderr similarity index 100% rename from src/test/ui/lint/lint-ctypes.stderr rename to tests/ui/lint/lint-ctypes.stderr diff --git a/src/test/ui/lint/lint-deref-nullptr.rs b/tests/ui/lint/lint-deref-nullptr.rs similarity index 100% rename from src/test/ui/lint/lint-deref-nullptr.rs rename to tests/ui/lint/lint-deref-nullptr.rs diff --git a/src/test/ui/lint/lint-deref-nullptr.stderr b/tests/ui/lint/lint-deref-nullptr.stderr similarity index 100% rename from src/test/ui/lint/lint-deref-nullptr.stderr rename to tests/ui/lint/lint-deref-nullptr.stderr diff --git a/src/test/ui/lint/lint-directives-on-use-items-issue-10534.rs b/tests/ui/lint/lint-directives-on-use-items-issue-10534.rs similarity index 100% rename from src/test/ui/lint/lint-directives-on-use-items-issue-10534.rs rename to tests/ui/lint/lint-directives-on-use-items-issue-10534.rs diff --git a/src/test/ui/lint/lint-directives-on-use-items-issue-10534.stderr b/tests/ui/lint/lint-directives-on-use-items-issue-10534.stderr similarity index 100% rename from src/test/ui/lint/lint-directives-on-use-items-issue-10534.stderr rename to tests/ui/lint/lint-directives-on-use-items-issue-10534.stderr diff --git a/src/test/ui/lint/lint-enum-intrinsics-non-enums.rs b/tests/ui/lint/lint-enum-intrinsics-non-enums.rs similarity index 100% rename from src/test/ui/lint/lint-enum-intrinsics-non-enums.rs rename to tests/ui/lint/lint-enum-intrinsics-non-enums.rs diff --git a/src/test/ui/lint/lint-enum-intrinsics-non-enums.stderr b/tests/ui/lint/lint-enum-intrinsics-non-enums.stderr similarity index 100% rename from src/test/ui/lint/lint-enum-intrinsics-non-enums.stderr rename to tests/ui/lint/lint-enum-intrinsics-non-enums.stderr diff --git a/src/test/ui/lint/lint-exceeding-bitshifts.noopt.stderr b/tests/ui/lint/lint-exceeding-bitshifts.noopt.stderr similarity index 100% rename from src/test/ui/lint/lint-exceeding-bitshifts.noopt.stderr rename to tests/ui/lint/lint-exceeding-bitshifts.noopt.stderr diff --git a/src/test/ui/lint/lint-exceeding-bitshifts.opt.stderr b/tests/ui/lint/lint-exceeding-bitshifts.opt.stderr similarity index 100% rename from src/test/ui/lint/lint-exceeding-bitshifts.opt.stderr rename to tests/ui/lint/lint-exceeding-bitshifts.opt.stderr diff --git a/src/test/ui/lint/lint-exceeding-bitshifts.opt_with_overflow_checks.stderr b/tests/ui/lint/lint-exceeding-bitshifts.opt_with_overflow_checks.stderr similarity index 100% rename from src/test/ui/lint/lint-exceeding-bitshifts.opt_with_overflow_checks.stderr rename to tests/ui/lint/lint-exceeding-bitshifts.opt_with_overflow_checks.stderr diff --git a/src/test/ui/lint/lint-exceeding-bitshifts.rs b/tests/ui/lint/lint-exceeding-bitshifts.rs similarity index 100% rename from src/test/ui/lint/lint-exceeding-bitshifts.rs rename to tests/ui/lint/lint-exceeding-bitshifts.rs diff --git a/src/test/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs b/tests/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs similarity index 100% rename from src/test/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs rename to tests/ui/lint/lint-expr-stmt-attrs-for-early-lints.rs diff --git a/src/test/ui/lint/lint-forbid-attr.rs b/tests/ui/lint/lint-forbid-attr.rs similarity index 100% rename from src/test/ui/lint/lint-forbid-attr.rs rename to tests/ui/lint/lint-forbid-attr.rs diff --git a/src/test/ui/lint/lint-forbid-attr.stderr b/tests/ui/lint/lint-forbid-attr.stderr similarity index 100% rename from src/test/ui/lint/lint-forbid-attr.stderr rename to tests/ui/lint/lint-forbid-attr.stderr diff --git a/src/test/ui/lint/lint-forbid-cmdline.rs b/tests/ui/lint/lint-forbid-cmdline.rs similarity index 100% rename from src/test/ui/lint/lint-forbid-cmdline.rs rename to tests/ui/lint/lint-forbid-cmdline.rs diff --git a/src/test/ui/lint/lint-forbid-cmdline.stderr b/tests/ui/lint/lint-forbid-cmdline.stderr similarity index 100% rename from src/test/ui/lint/lint-forbid-cmdline.stderr rename to tests/ui/lint/lint-forbid-cmdline.stderr diff --git a/src/test/ui/lint/lint-forbid-internal-unsafe.rs b/tests/ui/lint/lint-forbid-internal-unsafe.rs similarity index 100% rename from src/test/ui/lint/lint-forbid-internal-unsafe.rs rename to tests/ui/lint/lint-forbid-internal-unsafe.rs diff --git a/src/test/ui/lint/lint-forbid-internal-unsafe.stderr b/tests/ui/lint/lint-forbid-internal-unsafe.stderr similarity index 100% rename from src/test/ui/lint/lint-forbid-internal-unsafe.stderr rename to tests/ui/lint/lint-forbid-internal-unsafe.stderr diff --git a/src/test/ui/lint/lint-group-nonstandard-style.rs b/tests/ui/lint/lint-group-nonstandard-style.rs similarity index 100% rename from src/test/ui/lint/lint-group-nonstandard-style.rs rename to tests/ui/lint/lint-group-nonstandard-style.rs diff --git a/src/test/ui/lint/lint-group-nonstandard-style.stderr b/tests/ui/lint/lint-group-nonstandard-style.stderr similarity index 100% rename from src/test/ui/lint/lint-group-nonstandard-style.stderr rename to tests/ui/lint/lint-group-nonstandard-style.stderr diff --git a/src/test/ui/lint/lint-impl-fn.rs b/tests/ui/lint/lint-impl-fn.rs similarity index 100% rename from src/test/ui/lint/lint-impl-fn.rs rename to tests/ui/lint/lint-impl-fn.rs diff --git a/src/test/ui/lint/lint-impl-fn.stderr b/tests/ui/lint/lint-impl-fn.stderr similarity index 100% rename from src/test/ui/lint/lint-impl-fn.stderr rename to tests/ui/lint/lint-impl-fn.stderr diff --git a/src/test/ui/lint/lint-incoherent-auto-trait-objects.rs b/tests/ui/lint/lint-incoherent-auto-trait-objects.rs similarity index 100% rename from src/test/ui/lint/lint-incoherent-auto-trait-objects.rs rename to tests/ui/lint/lint-incoherent-auto-trait-objects.rs diff --git a/src/test/ui/lint/lint-incoherent-auto-trait-objects.stderr b/tests/ui/lint/lint-incoherent-auto-trait-objects.stderr similarity index 100% rename from src/test/ui/lint/lint-incoherent-auto-trait-objects.stderr rename to tests/ui/lint/lint-incoherent-auto-trait-objects.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-bool.rs b/tests/ui/lint/lint-invalid-atomic-ordering-bool.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-bool.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-bool.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-bool.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-bool.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-bool.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-bool.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-exchange-weak.rs b/tests/ui/lint/lint-invalid-atomic-ordering-exchange-weak.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-exchange-weak.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-exchange-weak.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-exchange-weak.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-exchange-weak.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-exchange-weak.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-exchange-weak.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-exchange.rs b/tests/ui/lint/lint-invalid-atomic-ordering-exchange.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-exchange.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-exchange.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-exchange.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-exchange.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-exchange.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-exchange.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-false-positive.rs b/tests/ui/lint/lint-invalid-atomic-ordering-false-positive.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-false-positive.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-false-positive.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-fence.rs b/tests/ui/lint/lint-invalid-atomic-ordering-fence.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-fence.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-fence.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-fence.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-fence.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-fence.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-fence.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-fetch-update.rs b/tests/ui/lint/lint-invalid-atomic-ordering-fetch-update.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-fetch-update.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-fetch-update.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-fetch-update.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-fetch-update.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-fetch-update.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-fetch-update.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-int.rs b/tests/ui/lint/lint-invalid-atomic-ordering-int.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-int.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-int.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-int.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-int.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-int.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-int.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-ptr.rs b/tests/ui/lint/lint-invalid-atomic-ordering-ptr.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-ptr.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-ptr.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-ptr.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-ptr.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-ptr.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-ptr.stderr diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-uint.rs b/tests/ui/lint/lint-invalid-atomic-ordering-uint.rs similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-uint.rs rename to tests/ui/lint/lint-invalid-atomic-ordering-uint.rs diff --git a/src/test/ui/lint/lint-invalid-atomic-ordering-uint.stderr b/tests/ui/lint/lint-invalid-atomic-ordering-uint.stderr similarity index 100% rename from src/test/ui/lint/lint-invalid-atomic-ordering-uint.stderr rename to tests/ui/lint/lint-invalid-atomic-ordering-uint.stderr diff --git a/src/test/ui/lint/lint-level-macro-def-mod.rs b/tests/ui/lint/lint-level-macro-def-mod.rs similarity index 100% rename from src/test/ui/lint/lint-level-macro-def-mod.rs rename to tests/ui/lint/lint-level-macro-def-mod.rs diff --git a/src/test/ui/lint/lint-level-macro-def.rs b/tests/ui/lint/lint-level-macro-def.rs similarity index 100% rename from src/test/ui/lint/lint-level-macro-def.rs rename to tests/ui/lint/lint-level-macro-def.rs diff --git a/src/test/ui/lint/lint-lowercase-static-const-pattern-rename.rs b/tests/ui/lint/lint-lowercase-static-const-pattern-rename.rs similarity index 100% rename from src/test/ui/lint/lint-lowercase-static-const-pattern-rename.rs rename to tests/ui/lint/lint-lowercase-static-const-pattern-rename.rs diff --git a/src/test/ui/lint/lint-lowercase-static-const-pattern.rs b/tests/ui/lint/lint-lowercase-static-const-pattern.rs similarity index 100% rename from src/test/ui/lint/lint-lowercase-static-const-pattern.rs rename to tests/ui/lint/lint-lowercase-static-const-pattern.rs diff --git a/src/test/ui/lint/lint-lowercase-static-const-pattern.stderr b/tests/ui/lint/lint-lowercase-static-const-pattern.stderr similarity index 100% rename from src/test/ui/lint/lint-lowercase-static-const-pattern.stderr rename to tests/ui/lint/lint-lowercase-static-const-pattern.stderr diff --git a/src/test/ui/lint/lint-malformed.rs b/tests/ui/lint/lint-malformed.rs similarity index 100% rename from src/test/ui/lint/lint-malformed.rs rename to tests/ui/lint/lint-malformed.rs diff --git a/src/test/ui/lint/lint-malformed.stderr b/tests/ui/lint/lint-malformed.stderr similarity index 100% rename from src/test/ui/lint/lint-malformed.stderr rename to tests/ui/lint/lint-malformed.stderr diff --git a/src/test/ui/lint/lint-match-arms.rs b/tests/ui/lint/lint-match-arms.rs similarity index 100% rename from src/test/ui/lint/lint-match-arms.rs rename to tests/ui/lint/lint-match-arms.rs diff --git a/src/test/ui/lint/lint-match-arms.stderr b/tests/ui/lint/lint-match-arms.stderr similarity index 100% rename from src/test/ui/lint/lint-match-arms.stderr rename to tests/ui/lint/lint-match-arms.stderr diff --git a/src/test/ui/lint/lint-misplaced-attr.rs b/tests/ui/lint/lint-misplaced-attr.rs similarity index 100% rename from src/test/ui/lint/lint-misplaced-attr.rs rename to tests/ui/lint/lint-misplaced-attr.rs diff --git a/src/test/ui/lint/lint-misplaced-attr.stderr b/tests/ui/lint/lint-misplaced-attr.stderr similarity index 100% rename from src/test/ui/lint/lint-misplaced-attr.stderr rename to tests/ui/lint/lint-misplaced-attr.stderr diff --git a/src/test/ui/lint/lint-missing-copy-implementations-allow.rs b/tests/ui/lint/lint-missing-copy-implementations-allow.rs similarity index 100% rename from src/test/ui/lint/lint-missing-copy-implementations-allow.rs rename to tests/ui/lint/lint-missing-copy-implementations-allow.rs diff --git a/src/test/ui/lint/lint-missing-copy-implementations.rs b/tests/ui/lint/lint-missing-copy-implementations.rs similarity index 100% rename from src/test/ui/lint/lint-missing-copy-implementations.rs rename to tests/ui/lint/lint-missing-copy-implementations.rs diff --git a/src/test/ui/lint/lint-missing-copy-implementations.stderr b/tests/ui/lint/lint-missing-copy-implementations.stderr similarity index 100% rename from src/test/ui/lint/lint-missing-copy-implementations.stderr rename to tests/ui/lint/lint-missing-copy-implementations.stderr diff --git a/src/test/ui/lint/lint-missing-doc.rs b/tests/ui/lint/lint-missing-doc.rs similarity index 100% rename from src/test/ui/lint/lint-missing-doc.rs rename to tests/ui/lint/lint-missing-doc.rs diff --git a/src/test/ui/lint/lint-missing-doc.stderr b/tests/ui/lint/lint-missing-doc.stderr similarity index 100% rename from src/test/ui/lint/lint-missing-doc.stderr rename to tests/ui/lint/lint-missing-doc.stderr diff --git a/src/test/ui/lint/lint-non-camel-case-types.rs b/tests/ui/lint/lint-non-camel-case-types.rs similarity index 100% rename from src/test/ui/lint/lint-non-camel-case-types.rs rename to tests/ui/lint/lint-non-camel-case-types.rs diff --git a/src/test/ui/lint/lint-non-camel-case-types.stderr b/tests/ui/lint/lint-non-camel-case-types.stderr similarity index 100% rename from src/test/ui/lint/lint-non-camel-case-types.stderr rename to tests/ui/lint/lint-non-camel-case-types.stderr diff --git a/src/test/ui/lint/lint-non-camel-case-variant.rs b/tests/ui/lint/lint-non-camel-case-variant.rs similarity index 100% rename from src/test/ui/lint/lint-non-camel-case-variant.rs rename to tests/ui/lint/lint-non-camel-case-variant.rs diff --git a/src/test/ui/lint/lint-non-camel-case-with-trailing-underscores.rs b/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs similarity index 100% rename from src/test/ui/lint/lint-non-camel-case-with-trailing-underscores.rs rename to tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs diff --git a/src/test/ui/lint/lint-non-snake-case-crate-2.rs b/tests/ui/lint/lint-non-snake-case-crate-2.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-crate-2.rs rename to tests/ui/lint/lint-non-snake-case-crate-2.rs diff --git a/src/test/ui/lint/lint-non-snake-case-crate-2.stderr b/tests/ui/lint/lint-non-snake-case-crate-2.stderr similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-crate-2.stderr rename to tests/ui/lint/lint-non-snake-case-crate-2.stderr diff --git a/src/test/ui/lint/lint-non-snake-case-crate.rs b/tests/ui/lint/lint-non-snake-case-crate.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-crate.rs rename to tests/ui/lint/lint-non-snake-case-crate.rs diff --git a/src/test/ui/lint/lint-non-snake-case-crate.stderr b/tests/ui/lint/lint-non-snake-case-crate.stderr similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-crate.stderr rename to tests/ui/lint/lint-non-snake-case-crate.stderr diff --git a/src/test/ui/lint/lint-non-snake-case-functions.rs b/tests/ui/lint/lint-non-snake-case-functions.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-functions.rs rename to tests/ui/lint/lint-non-snake-case-functions.rs diff --git a/src/test/ui/lint/lint-non-snake-case-functions.stderr b/tests/ui/lint/lint-non-snake-case-functions.stderr similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-functions.stderr rename to tests/ui/lint/lint-non-snake-case-functions.stderr diff --git a/src/test/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.rs b/tests/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.rs rename to tests/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.rs diff --git a/src/test/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.stderr b/tests/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.stderr similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.stderr rename to tests/ui/lint/lint-non-snake-case-identifiers-suggestion-reserved.stderr diff --git a/src/test/ui/lint/lint-non-snake-case-lifetimes.rs b/tests/ui/lint/lint-non-snake-case-lifetimes.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-lifetimes.rs rename to tests/ui/lint/lint-non-snake-case-lifetimes.rs diff --git a/src/test/ui/lint/lint-non-snake-case-lifetimes.stderr b/tests/ui/lint/lint-non-snake-case-lifetimes.stderr similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-lifetimes.stderr rename to tests/ui/lint/lint-non-snake-case-lifetimes.stderr diff --git a/src/test/ui/lint/lint-non-snake-case-modules.rs b/tests/ui/lint/lint-non-snake-case-modules.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-modules.rs rename to tests/ui/lint/lint-non-snake-case-modules.rs diff --git a/src/test/ui/lint/lint-non-snake-case-modules.stderr b/tests/ui/lint/lint-non-snake-case-modules.stderr similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-modules.stderr rename to tests/ui/lint/lint-non-snake-case-modules.stderr diff --git a/src/test/ui/lint/lint-non-snake-case-no-lowercase-equivalent.rs b/tests/ui/lint/lint-non-snake-case-no-lowercase-equivalent.rs similarity index 100% rename from src/test/ui/lint/lint-non-snake-case-no-lowercase-equivalent.rs rename to tests/ui/lint/lint-non-snake-case-no-lowercase-equivalent.rs diff --git a/src/test/ui/lint/lint-non-uppercase-associated-const.rs b/tests/ui/lint/lint-non-uppercase-associated-const.rs similarity index 100% rename from src/test/ui/lint/lint-non-uppercase-associated-const.rs rename to tests/ui/lint/lint-non-uppercase-associated-const.rs diff --git a/src/test/ui/lint/lint-non-uppercase-associated-const.stderr b/tests/ui/lint/lint-non-uppercase-associated-const.stderr similarity index 100% rename from src/test/ui/lint/lint-non-uppercase-associated-const.stderr rename to tests/ui/lint/lint-non-uppercase-associated-const.stderr diff --git a/src/test/ui/lint/lint-non-uppercase-statics.rs b/tests/ui/lint/lint-non-uppercase-statics.rs similarity index 100% rename from src/test/ui/lint/lint-non-uppercase-statics.rs rename to tests/ui/lint/lint-non-uppercase-statics.rs diff --git a/src/test/ui/lint/lint-non-uppercase-statics.stderr b/tests/ui/lint/lint-non-uppercase-statics.stderr similarity index 100% rename from src/test/ui/lint/lint-non-uppercase-statics.stderr rename to tests/ui/lint/lint-non-uppercase-statics.stderr diff --git a/src/test/ui/lint/lint-nonstandard-style-unicode-1.rs b/tests/ui/lint/lint-nonstandard-style-unicode-1.rs similarity index 100% rename from src/test/ui/lint/lint-nonstandard-style-unicode-1.rs rename to tests/ui/lint/lint-nonstandard-style-unicode-1.rs diff --git a/src/test/ui/lint/lint-nonstandard-style-unicode-1.stderr b/tests/ui/lint/lint-nonstandard-style-unicode-1.stderr similarity index 100% rename from src/test/ui/lint/lint-nonstandard-style-unicode-1.stderr rename to tests/ui/lint/lint-nonstandard-style-unicode-1.stderr diff --git a/src/test/ui/lint/lint-nonstandard-style-unicode-2.rs b/tests/ui/lint/lint-nonstandard-style-unicode-2.rs similarity index 100% rename from src/test/ui/lint/lint-nonstandard-style-unicode-2.rs rename to tests/ui/lint/lint-nonstandard-style-unicode-2.rs diff --git a/src/test/ui/lint/lint-nonstandard-style-unicode-2.stderr b/tests/ui/lint/lint-nonstandard-style-unicode-2.stderr similarity index 100% rename from src/test/ui/lint/lint-nonstandard-style-unicode-2.stderr rename to tests/ui/lint/lint-nonstandard-style-unicode-2.stderr diff --git a/src/test/ui/lint/lint-nonstandard-style-unicode-3.rs b/tests/ui/lint/lint-nonstandard-style-unicode-3.rs similarity index 100% rename from src/test/ui/lint/lint-nonstandard-style-unicode-3.rs rename to tests/ui/lint/lint-nonstandard-style-unicode-3.rs diff --git a/src/test/ui/lint/lint-nonstandard-style-unicode-3.stderr b/tests/ui/lint/lint-nonstandard-style-unicode-3.stderr similarity index 100% rename from src/test/ui/lint/lint-nonstandard-style-unicode-3.stderr rename to tests/ui/lint/lint-nonstandard-style-unicode-3.stderr diff --git a/src/test/ui/lint/lint-output-format-2.rs b/tests/ui/lint/lint-output-format-2.rs similarity index 100% rename from src/test/ui/lint/lint-output-format-2.rs rename to tests/ui/lint/lint-output-format-2.rs diff --git a/src/test/ui/lint/lint-output-format-2.stderr b/tests/ui/lint/lint-output-format-2.stderr similarity index 100% rename from src/test/ui/lint/lint-output-format-2.stderr rename to tests/ui/lint/lint-output-format-2.stderr diff --git a/src/test/ui/lint/lint-output-format.rs b/tests/ui/lint/lint-output-format.rs similarity index 100% rename from src/test/ui/lint/lint-output-format.rs rename to tests/ui/lint/lint-output-format.rs diff --git a/src/test/ui/lint/lint-output-format.stderr b/tests/ui/lint/lint-output-format.stderr similarity index 100% rename from src/test/ui/lint/lint-output-format.stderr rename to tests/ui/lint/lint-output-format.stderr diff --git a/src/test/ui/lint/lint-owned-heap-memory.rs b/tests/ui/lint/lint-owned-heap-memory.rs similarity index 100% rename from src/test/ui/lint/lint-owned-heap-memory.rs rename to tests/ui/lint/lint-owned-heap-memory.rs diff --git a/src/test/ui/lint/lint-owned-heap-memory.stderr b/tests/ui/lint/lint-owned-heap-memory.stderr similarity index 100% rename from src/test/ui/lint/lint-owned-heap-memory.stderr rename to tests/ui/lint/lint-owned-heap-memory.stderr diff --git a/src/test/ui/lint/lint-pre-expansion-extern-module.rs b/tests/ui/lint/lint-pre-expansion-extern-module.rs similarity index 100% rename from src/test/ui/lint/lint-pre-expansion-extern-module.rs rename to tests/ui/lint/lint-pre-expansion-extern-module.rs diff --git a/src/test/ui/lint/lint-pre-expansion-extern-module.stderr b/tests/ui/lint/lint-pre-expansion-extern-module.stderr similarity index 100% rename from src/test/ui/lint/lint-pre-expansion-extern-module.stderr rename to tests/ui/lint/lint-pre-expansion-extern-module.stderr diff --git a/src/test/ui/lint/lint-pub-unreachable-for-nested-glob.rs b/tests/ui/lint/lint-pub-unreachable-for-nested-glob.rs similarity index 100% rename from src/test/ui/lint/lint-pub-unreachable-for-nested-glob.rs rename to tests/ui/lint/lint-pub-unreachable-for-nested-glob.rs diff --git a/src/test/ui/lint/lint-qualification.rs b/tests/ui/lint/lint-qualification.rs similarity index 100% rename from src/test/ui/lint/lint-qualification.rs rename to tests/ui/lint/lint-qualification.rs diff --git a/src/test/ui/lint/lint-qualification.stderr b/tests/ui/lint/lint-qualification.stderr similarity index 100% rename from src/test/ui/lint/lint-qualification.stderr rename to tests/ui/lint/lint-qualification.stderr diff --git a/src/test/ui/lint/lint-range-endpoint-overflow.rs b/tests/ui/lint/lint-range-endpoint-overflow.rs similarity index 100% rename from src/test/ui/lint/lint-range-endpoint-overflow.rs rename to tests/ui/lint/lint-range-endpoint-overflow.rs diff --git a/src/test/ui/lint/lint-range-endpoint-overflow.stderr b/tests/ui/lint/lint-range-endpoint-overflow.stderr similarity index 100% rename from src/test/ui/lint/lint-range-endpoint-overflow.stderr rename to tests/ui/lint/lint-range-endpoint-overflow.stderr diff --git a/src/test/ui/lint/lint-removed-allow.rs b/tests/ui/lint/lint-removed-allow.rs similarity index 100% rename from src/test/ui/lint/lint-removed-allow.rs rename to tests/ui/lint/lint-removed-allow.rs diff --git a/src/test/ui/lint/lint-removed-allow.stderr b/tests/ui/lint/lint-removed-allow.stderr similarity index 100% rename from src/test/ui/lint/lint-removed-allow.stderr rename to tests/ui/lint/lint-removed-allow.stderr diff --git a/src/test/ui/lint/lint-removed-cmdline.rs b/tests/ui/lint/lint-removed-cmdline.rs similarity index 100% rename from src/test/ui/lint/lint-removed-cmdline.rs rename to tests/ui/lint/lint-removed-cmdline.rs diff --git a/src/test/ui/lint/lint-removed-cmdline.stderr b/tests/ui/lint/lint-removed-cmdline.stderr similarity index 100% rename from src/test/ui/lint/lint-removed-cmdline.stderr rename to tests/ui/lint/lint-removed-cmdline.stderr diff --git a/src/test/ui/lint/lint-removed.rs b/tests/ui/lint/lint-removed.rs similarity index 100% rename from src/test/ui/lint/lint-removed.rs rename to tests/ui/lint/lint-removed.rs diff --git a/src/test/ui/lint/lint-removed.stderr b/tests/ui/lint/lint-removed.stderr similarity index 100% rename from src/test/ui/lint/lint-removed.stderr rename to tests/ui/lint/lint-removed.stderr diff --git a/src/test/ui/lint/lint-renamed-allow.rs b/tests/ui/lint/lint-renamed-allow.rs similarity index 100% rename from src/test/ui/lint/lint-renamed-allow.rs rename to tests/ui/lint/lint-renamed-allow.rs diff --git a/src/test/ui/lint/lint-renamed-allow.stderr b/tests/ui/lint/lint-renamed-allow.stderr similarity index 100% rename from src/test/ui/lint/lint-renamed-allow.stderr rename to tests/ui/lint/lint-renamed-allow.stderr diff --git a/src/test/ui/lint/lint-renamed-cmdline.rs b/tests/ui/lint/lint-renamed-cmdline.rs similarity index 100% rename from src/test/ui/lint/lint-renamed-cmdline.rs rename to tests/ui/lint/lint-renamed-cmdline.rs diff --git a/src/test/ui/lint/lint-renamed-cmdline.stderr b/tests/ui/lint/lint-renamed-cmdline.stderr similarity index 100% rename from src/test/ui/lint/lint-renamed-cmdline.stderr rename to tests/ui/lint/lint-renamed-cmdline.stderr diff --git a/src/test/ui/lint/lint-renamed.rs b/tests/ui/lint/lint-renamed.rs similarity index 100% rename from src/test/ui/lint/lint-renamed.rs rename to tests/ui/lint/lint-renamed.rs diff --git a/src/test/ui/lint/lint-renamed.stderr b/tests/ui/lint/lint-renamed.stderr similarity index 100% rename from src/test/ui/lint/lint-renamed.stderr rename to tests/ui/lint/lint-renamed.stderr diff --git a/src/test/ui/lint/lint-shorthand-field.fixed b/tests/ui/lint/lint-shorthand-field.fixed similarity index 100% rename from src/test/ui/lint/lint-shorthand-field.fixed rename to tests/ui/lint/lint-shorthand-field.fixed diff --git a/src/test/ui/lint/lint-shorthand-field.rs b/tests/ui/lint/lint-shorthand-field.rs similarity index 100% rename from src/test/ui/lint/lint-shorthand-field.rs rename to tests/ui/lint/lint-shorthand-field.rs diff --git a/src/test/ui/lint/lint-shorthand-field.stderr b/tests/ui/lint/lint-shorthand-field.stderr similarity index 100% rename from src/test/ui/lint/lint-shorthand-field.stderr rename to tests/ui/lint/lint-shorthand-field.stderr diff --git a/src/test/ui/lint/lint-stability-2.rs b/tests/ui/lint/lint-stability-2.rs similarity index 100% rename from src/test/ui/lint/lint-stability-2.rs rename to tests/ui/lint/lint-stability-2.rs diff --git a/src/test/ui/lint/lint-stability-2.stderr b/tests/ui/lint/lint-stability-2.stderr similarity index 100% rename from src/test/ui/lint/lint-stability-2.stderr rename to tests/ui/lint/lint-stability-2.stderr diff --git a/src/test/ui/lint/lint-stability-deprecated.rs b/tests/ui/lint/lint-stability-deprecated.rs similarity index 100% rename from src/test/ui/lint/lint-stability-deprecated.rs rename to tests/ui/lint/lint-stability-deprecated.rs diff --git a/src/test/ui/lint/lint-stability-deprecated.stderr b/tests/ui/lint/lint-stability-deprecated.stderr similarity index 100% rename from src/test/ui/lint/lint-stability-deprecated.stderr rename to tests/ui/lint/lint-stability-deprecated.stderr diff --git a/src/test/ui/lint/lint-stability-fields-deprecated.rs b/tests/ui/lint/lint-stability-fields-deprecated.rs similarity index 100% rename from src/test/ui/lint/lint-stability-fields-deprecated.rs rename to tests/ui/lint/lint-stability-fields-deprecated.rs diff --git a/src/test/ui/lint/lint-stability-fields-deprecated.stderr b/tests/ui/lint/lint-stability-fields-deprecated.stderr similarity index 100% rename from src/test/ui/lint/lint-stability-fields-deprecated.stderr rename to tests/ui/lint/lint-stability-fields-deprecated.stderr diff --git a/src/test/ui/lint/lint-stability-fields.rs b/tests/ui/lint/lint-stability-fields.rs similarity index 100% rename from src/test/ui/lint/lint-stability-fields.rs rename to tests/ui/lint/lint-stability-fields.rs diff --git a/src/test/ui/lint/lint-stability-fields.stderr b/tests/ui/lint/lint-stability-fields.stderr similarity index 100% rename from src/test/ui/lint/lint-stability-fields.stderr rename to tests/ui/lint/lint-stability-fields.stderr diff --git a/src/test/ui/lint/lint-stability.rs b/tests/ui/lint/lint-stability.rs similarity index 100% rename from src/test/ui/lint/lint-stability.rs rename to tests/ui/lint/lint-stability.rs diff --git a/src/test/ui/lint/lint-stability.stderr b/tests/ui/lint/lint-stability.stderr similarity index 100% rename from src/test/ui/lint/lint-stability.stderr rename to tests/ui/lint/lint-stability.stderr diff --git a/src/test/ui/lint/lint-stability2.rs b/tests/ui/lint/lint-stability2.rs similarity index 100% rename from src/test/ui/lint/lint-stability2.rs rename to tests/ui/lint/lint-stability2.rs diff --git a/src/test/ui/lint/lint-stability2.stderr b/tests/ui/lint/lint-stability2.stderr similarity index 100% rename from src/test/ui/lint/lint-stability2.stderr rename to tests/ui/lint/lint-stability2.stderr diff --git a/src/test/ui/lint/lint-stability3.rs b/tests/ui/lint/lint-stability3.rs similarity index 100% rename from src/test/ui/lint/lint-stability3.rs rename to tests/ui/lint/lint-stability3.rs diff --git a/src/test/ui/lint/lint-stability3.stderr b/tests/ui/lint/lint-stability3.stderr similarity index 100% rename from src/test/ui/lint/lint-stability3.stderr rename to tests/ui/lint/lint-stability3.stderr diff --git a/src/test/ui/lint/lint-strict-provenance-fuzzy-casts.rs b/tests/ui/lint/lint-strict-provenance-fuzzy-casts.rs similarity index 100% rename from src/test/ui/lint/lint-strict-provenance-fuzzy-casts.rs rename to tests/ui/lint/lint-strict-provenance-fuzzy-casts.rs diff --git a/src/test/ui/lint/lint-strict-provenance-fuzzy-casts.stderr b/tests/ui/lint/lint-strict-provenance-fuzzy-casts.stderr similarity index 100% rename from src/test/ui/lint/lint-strict-provenance-fuzzy-casts.stderr rename to tests/ui/lint/lint-strict-provenance-fuzzy-casts.stderr diff --git a/src/test/ui/lint/lint-strict-provenance-lossy-casts.rs b/tests/ui/lint/lint-strict-provenance-lossy-casts.rs similarity index 100% rename from src/test/ui/lint/lint-strict-provenance-lossy-casts.rs rename to tests/ui/lint/lint-strict-provenance-lossy-casts.rs diff --git a/src/test/ui/lint/lint-strict-provenance-lossy-casts.stderr b/tests/ui/lint/lint-strict-provenance-lossy-casts.stderr similarity index 100% rename from src/test/ui/lint/lint-strict-provenance-lossy-casts.stderr rename to tests/ui/lint/lint-strict-provenance-lossy-casts.stderr diff --git a/src/test/ui/lint/lint-temporary-cstring-as-param.rs b/tests/ui/lint/lint-temporary-cstring-as-param.rs similarity index 100% rename from src/test/ui/lint/lint-temporary-cstring-as-param.rs rename to tests/ui/lint/lint-temporary-cstring-as-param.rs diff --git a/src/test/ui/lint/lint-temporary-cstring-as-param.stderr b/tests/ui/lint/lint-temporary-cstring-as-param.stderr similarity index 100% rename from src/test/ui/lint/lint-temporary-cstring-as-param.stderr rename to tests/ui/lint/lint-temporary-cstring-as-param.stderr diff --git a/src/test/ui/lint/lint-temporary-cstring-as-ptr.rs b/tests/ui/lint/lint-temporary-cstring-as-ptr.rs similarity index 100% rename from src/test/ui/lint/lint-temporary-cstring-as-ptr.rs rename to tests/ui/lint/lint-temporary-cstring-as-ptr.rs diff --git a/src/test/ui/lint/lint-temporary-cstring-as-ptr.stderr b/tests/ui/lint/lint-temporary-cstring-as-ptr.stderr similarity index 100% rename from src/test/ui/lint/lint-temporary-cstring-as-ptr.stderr rename to tests/ui/lint/lint-temporary-cstring-as-ptr.stderr diff --git a/src/test/ui/lint/lint-type-limits.rs b/tests/ui/lint/lint-type-limits.rs similarity index 100% rename from src/test/ui/lint/lint-type-limits.rs rename to tests/ui/lint/lint-type-limits.rs diff --git a/src/test/ui/lint/lint-type-limits.stderr b/tests/ui/lint/lint-type-limits.stderr similarity index 100% rename from src/test/ui/lint/lint-type-limits.stderr rename to tests/ui/lint/lint-type-limits.stderr diff --git a/src/test/ui/lint/lint-type-limits2.rs b/tests/ui/lint/lint-type-limits2.rs similarity index 100% rename from src/test/ui/lint/lint-type-limits2.rs rename to tests/ui/lint/lint-type-limits2.rs diff --git a/src/test/ui/lint/lint-type-limits2.stderr b/tests/ui/lint/lint-type-limits2.stderr similarity index 100% rename from src/test/ui/lint/lint-type-limits2.stderr rename to tests/ui/lint/lint-type-limits2.stderr diff --git a/src/test/ui/lint/lint-type-limits3.rs b/tests/ui/lint/lint-type-limits3.rs similarity index 100% rename from src/test/ui/lint/lint-type-limits3.rs rename to tests/ui/lint/lint-type-limits3.rs diff --git a/src/test/ui/lint/lint-type-limits3.stderr b/tests/ui/lint/lint-type-limits3.stderr similarity index 100% rename from src/test/ui/lint/lint-type-limits3.stderr rename to tests/ui/lint/lint-type-limits3.stderr diff --git a/src/test/ui/lint/lint-type-overflow.rs b/tests/ui/lint/lint-type-overflow.rs similarity index 100% rename from src/test/ui/lint/lint-type-overflow.rs rename to tests/ui/lint/lint-type-overflow.rs diff --git a/src/test/ui/lint/lint-type-overflow.stderr b/tests/ui/lint/lint-type-overflow.stderr similarity index 100% rename from src/test/ui/lint/lint-type-overflow.stderr rename to tests/ui/lint/lint-type-overflow.stderr diff --git a/src/test/ui/lint/lint-type-overflow2.rs b/tests/ui/lint/lint-type-overflow2.rs similarity index 100% rename from src/test/ui/lint/lint-type-overflow2.rs rename to tests/ui/lint/lint-type-overflow2.rs diff --git a/src/test/ui/lint/lint-type-overflow2.stderr b/tests/ui/lint/lint-type-overflow2.stderr similarity index 100% rename from src/test/ui/lint/lint-type-overflow2.stderr rename to tests/ui/lint/lint-type-overflow2.stderr diff --git a/src/test/ui/lint/lint-unconditional-recursion.rs b/tests/ui/lint/lint-unconditional-recursion.rs similarity index 100% rename from src/test/ui/lint/lint-unconditional-recursion.rs rename to tests/ui/lint/lint-unconditional-recursion.rs diff --git a/src/test/ui/lint/lint-unconditional-recursion.stderr b/tests/ui/lint/lint-unconditional-recursion.stderr similarity index 100% rename from src/test/ui/lint/lint-unconditional-recursion.stderr rename to tests/ui/lint/lint-unconditional-recursion.stderr diff --git a/src/test/ui/lint/lint-unexported-no-mangle.rs b/tests/ui/lint/lint-unexported-no-mangle.rs similarity index 100% rename from src/test/ui/lint/lint-unexported-no-mangle.rs rename to tests/ui/lint/lint-unexported-no-mangle.rs diff --git a/src/test/ui/lint/lint-unexported-no-mangle.stderr b/tests/ui/lint/lint-unexported-no-mangle.stderr similarity index 100% rename from src/test/ui/lint/lint-unexported-no-mangle.stderr rename to tests/ui/lint/lint-unexported-no-mangle.stderr diff --git a/src/test/ui/lint/lint-unknown-feature-default.rs b/tests/ui/lint/lint-unknown-feature-default.rs similarity index 100% rename from src/test/ui/lint/lint-unknown-feature-default.rs rename to tests/ui/lint/lint-unknown-feature-default.rs diff --git a/src/test/ui/lint/lint-unknown-feature.rs b/tests/ui/lint/lint-unknown-feature.rs similarity index 100% rename from src/test/ui/lint/lint-unknown-feature.rs rename to tests/ui/lint/lint-unknown-feature.rs diff --git a/src/test/ui/lint/lint-unknown-lint-cmdline.rs b/tests/ui/lint/lint-unknown-lint-cmdline.rs similarity index 100% rename from src/test/ui/lint/lint-unknown-lint-cmdline.rs rename to tests/ui/lint/lint-unknown-lint-cmdline.rs diff --git a/src/test/ui/lint/lint-unknown-lint-cmdline.stderr b/tests/ui/lint/lint-unknown-lint-cmdline.stderr similarity index 100% rename from src/test/ui/lint/lint-unknown-lint-cmdline.stderr rename to tests/ui/lint/lint-unknown-lint-cmdline.stderr diff --git a/src/test/ui/lint/lint-unknown-lint.rs b/tests/ui/lint/lint-unknown-lint.rs similarity index 100% rename from src/test/ui/lint/lint-unknown-lint.rs rename to tests/ui/lint/lint-unknown-lint.rs diff --git a/src/test/ui/lint/lint-unknown-lint.stderr b/tests/ui/lint/lint-unknown-lint.stderr similarity index 100% rename from src/test/ui/lint/lint-unknown-lint.stderr rename to tests/ui/lint/lint-unknown-lint.stderr diff --git a/src/test/ui/lint/lint-unnecessary-import-braces.rs b/tests/ui/lint/lint-unnecessary-import-braces.rs similarity index 100% rename from src/test/ui/lint/lint-unnecessary-import-braces.rs rename to tests/ui/lint/lint-unnecessary-import-braces.rs diff --git a/src/test/ui/lint/lint-unnecessary-import-braces.stderr b/tests/ui/lint/lint-unnecessary-import-braces.stderr similarity index 100% rename from src/test/ui/lint/lint-unnecessary-import-braces.stderr rename to tests/ui/lint/lint-unnecessary-import-braces.stderr diff --git a/src/test/ui/lint/lint-unnecessary-parens.fixed b/tests/ui/lint/lint-unnecessary-parens.fixed similarity index 100% rename from src/test/ui/lint/lint-unnecessary-parens.fixed rename to tests/ui/lint/lint-unnecessary-parens.fixed diff --git a/src/test/ui/lint/lint-unnecessary-parens.rs b/tests/ui/lint/lint-unnecessary-parens.rs similarity index 100% rename from src/test/ui/lint/lint-unnecessary-parens.rs rename to tests/ui/lint/lint-unnecessary-parens.rs diff --git a/src/test/ui/lint/lint-unnecessary-parens.stderr b/tests/ui/lint/lint-unnecessary-parens.stderr similarity index 100% rename from src/test/ui/lint/lint-unnecessary-parens.stderr rename to tests/ui/lint/lint-unnecessary-parens.stderr diff --git a/src/test/ui/lint/lint-unsafe-code.rs b/tests/ui/lint/lint-unsafe-code.rs similarity index 100% rename from src/test/ui/lint/lint-unsafe-code.rs rename to tests/ui/lint/lint-unsafe-code.rs diff --git a/src/test/ui/lint/lint-unsafe-code.stderr b/tests/ui/lint/lint-unsafe-code.stderr similarity index 100% rename from src/test/ui/lint/lint-unsafe-code.stderr rename to tests/ui/lint/lint-unsafe-code.stderr diff --git a/src/test/ui/lint/lint-uppercase-variables.rs b/tests/ui/lint/lint-uppercase-variables.rs similarity index 100% rename from src/test/ui/lint/lint-uppercase-variables.rs rename to tests/ui/lint/lint-uppercase-variables.rs diff --git a/src/test/ui/lint/lint-uppercase-variables.stderr b/tests/ui/lint/lint-uppercase-variables.stderr similarity index 100% rename from src/test/ui/lint/lint-uppercase-variables.stderr rename to tests/ui/lint/lint-uppercase-variables.stderr diff --git a/src/test/ui/lint/lint_pre_expansion_extern_module_aux.rs b/tests/ui/lint/lint_pre_expansion_extern_module_aux.rs similarity index 100% rename from src/test/ui/lint/lint_pre_expansion_extern_module_aux.rs rename to tests/ui/lint/lint_pre_expansion_extern_module_aux.rs diff --git a/src/test/ui/lint/lints-in-foreign-macros.rs b/tests/ui/lint/lints-in-foreign-macros.rs similarity index 100% rename from src/test/ui/lint/lints-in-foreign-macros.rs rename to tests/ui/lint/lints-in-foreign-macros.rs diff --git a/src/test/ui/lint/lints-in-foreign-macros.stderr b/tests/ui/lint/lints-in-foreign-macros.stderr similarity index 100% rename from src/test/ui/lint/lints-in-foreign-macros.stderr rename to tests/ui/lint/lints-in-foreign-macros.stderr diff --git a/src/test/ui/lint/missing-doc-private-macro.rs b/tests/ui/lint/missing-doc-private-macro.rs similarity index 100% rename from src/test/ui/lint/missing-doc-private-macro.rs rename to tests/ui/lint/missing-doc-private-macro.rs diff --git a/src/test/ui/lint/missing-doc-private-macro.stderr b/tests/ui/lint/missing-doc-private-macro.stderr similarity index 100% rename from src/test/ui/lint/missing-doc-private-macro.stderr rename to tests/ui/lint/missing-doc-private-macro.stderr diff --git a/src/test/ui/lint/must_not_suspend/boxed.rs b/tests/ui/lint/must_not_suspend/boxed.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/boxed.rs rename to tests/ui/lint/must_not_suspend/boxed.rs diff --git a/src/test/ui/lint/must_not_suspend/boxed.stderr b/tests/ui/lint/must_not_suspend/boxed.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/boxed.stderr rename to tests/ui/lint/must_not_suspend/boxed.stderr diff --git a/src/test/ui/lint/must_not_suspend/dedup.rs b/tests/ui/lint/must_not_suspend/dedup.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/dedup.rs rename to tests/ui/lint/must_not_suspend/dedup.rs diff --git a/src/test/ui/lint/must_not_suspend/dedup.stderr b/tests/ui/lint/must_not_suspend/dedup.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/dedup.stderr rename to tests/ui/lint/must_not_suspend/dedup.stderr diff --git a/src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs b/tests/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs rename to tests/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs diff --git a/src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.stderr b/tests/ui/lint/must_not_suspend/feature-gate-must_not_suspend.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.stderr rename to tests/ui/lint/must_not_suspend/feature-gate-must_not_suspend.stderr diff --git a/src/test/ui/lint/must_not_suspend/gated.rs b/tests/ui/lint/must_not_suspend/gated.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/gated.rs rename to tests/ui/lint/must_not_suspend/gated.rs diff --git a/src/test/ui/lint/must_not_suspend/gated.stderr b/tests/ui/lint/must_not_suspend/gated.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/gated.stderr rename to tests/ui/lint/must_not_suspend/gated.stderr diff --git a/src/test/ui/lint/must_not_suspend/generic.rs b/tests/ui/lint/must_not_suspend/generic.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/generic.rs rename to tests/ui/lint/must_not_suspend/generic.rs diff --git a/src/test/ui/lint/must_not_suspend/handled.rs b/tests/ui/lint/must_not_suspend/handled.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/handled.rs rename to tests/ui/lint/must_not_suspend/handled.rs diff --git a/src/test/ui/lint/must_not_suspend/issue-89562.rs b/tests/ui/lint/must_not_suspend/issue-89562.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/issue-89562.rs rename to tests/ui/lint/must_not_suspend/issue-89562.rs diff --git a/src/test/ui/lint/must_not_suspend/mutex.rs b/tests/ui/lint/must_not_suspend/mutex.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/mutex.rs rename to tests/ui/lint/must_not_suspend/mutex.rs diff --git a/src/test/ui/lint/must_not_suspend/mutex.stderr b/tests/ui/lint/must_not_suspend/mutex.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/mutex.stderr rename to tests/ui/lint/must_not_suspend/mutex.stderr diff --git a/src/test/ui/lint/must_not_suspend/other_items.rs b/tests/ui/lint/must_not_suspend/other_items.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/other_items.rs rename to tests/ui/lint/must_not_suspend/other_items.rs diff --git a/src/test/ui/lint/must_not_suspend/other_items.stderr b/tests/ui/lint/must_not_suspend/other_items.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/other_items.stderr rename to tests/ui/lint/must_not_suspend/other_items.stderr diff --git a/src/test/ui/lint/must_not_suspend/ref-drop-tracking.rs b/tests/ui/lint/must_not_suspend/ref-drop-tracking.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/ref-drop-tracking.rs rename to tests/ui/lint/must_not_suspend/ref-drop-tracking.rs diff --git a/src/test/ui/lint/must_not_suspend/ref-drop-tracking.stderr b/tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/ref-drop-tracking.stderr rename to tests/ui/lint/must_not_suspend/ref-drop-tracking.stderr diff --git a/src/test/ui/lint/must_not_suspend/ref.drop_tracking.stderr b/tests/ui/lint/must_not_suspend/ref.drop_tracking.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/ref.drop_tracking.stderr rename to tests/ui/lint/must_not_suspend/ref.drop_tracking.stderr diff --git a/src/test/ui/lint/must_not_suspend/ref.no_drop_tracking.stderr b/tests/ui/lint/must_not_suspend/ref.no_drop_tracking.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/ref.no_drop_tracking.stderr rename to tests/ui/lint/must_not_suspend/ref.no_drop_tracking.stderr diff --git a/src/test/ui/lint/must_not_suspend/ref.rs b/tests/ui/lint/must_not_suspend/ref.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/ref.rs rename to tests/ui/lint/must_not_suspend/ref.rs diff --git a/src/test/ui/lint/must_not_suspend/return.rs b/tests/ui/lint/must_not_suspend/return.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/return.rs rename to tests/ui/lint/must_not_suspend/return.rs diff --git a/src/test/ui/lint/must_not_suspend/return.stderr b/tests/ui/lint/must_not_suspend/return.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/return.stderr rename to tests/ui/lint/must_not_suspend/return.stderr diff --git a/src/test/ui/lint/must_not_suspend/trait.rs b/tests/ui/lint/must_not_suspend/trait.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/trait.rs rename to tests/ui/lint/must_not_suspend/trait.rs diff --git a/src/test/ui/lint/must_not_suspend/trait.stderr b/tests/ui/lint/must_not_suspend/trait.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/trait.stderr rename to tests/ui/lint/must_not_suspend/trait.stderr diff --git a/src/test/ui/lint/must_not_suspend/tuple-mismatch.rs b/tests/ui/lint/must_not_suspend/tuple-mismatch.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/tuple-mismatch.rs rename to tests/ui/lint/must_not_suspend/tuple-mismatch.rs diff --git a/src/test/ui/lint/must_not_suspend/tuple-mismatch.stderr b/tests/ui/lint/must_not_suspend/tuple-mismatch.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/tuple-mismatch.stderr rename to tests/ui/lint/must_not_suspend/tuple-mismatch.stderr diff --git a/src/test/ui/lint/must_not_suspend/unit.rs b/tests/ui/lint/must_not_suspend/unit.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/unit.rs rename to tests/ui/lint/must_not_suspend/unit.rs diff --git a/src/test/ui/lint/must_not_suspend/unit.stderr b/tests/ui/lint/must_not_suspend/unit.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/unit.stderr rename to tests/ui/lint/must_not_suspend/unit.stderr diff --git a/src/test/ui/lint/must_not_suspend/warn.rs b/tests/ui/lint/must_not_suspend/warn.rs similarity index 100% rename from src/test/ui/lint/must_not_suspend/warn.rs rename to tests/ui/lint/must_not_suspend/warn.rs diff --git a/src/test/ui/lint/must_not_suspend/warn.stderr b/tests/ui/lint/must_not_suspend/warn.stderr similarity index 100% rename from src/test/ui/lint/must_not_suspend/warn.stderr rename to tests/ui/lint/must_not_suspend/warn.stderr diff --git a/src/test/ui/lint/no-coverage.rs b/tests/ui/lint/no-coverage.rs similarity index 100% rename from src/test/ui/lint/no-coverage.rs rename to tests/ui/lint/no-coverage.rs diff --git a/src/test/ui/lint/no-coverage.stderr b/tests/ui/lint/no-coverage.stderr similarity index 100% rename from src/test/ui/lint/no-coverage.stderr rename to tests/ui/lint/no-coverage.stderr diff --git a/src/test/ui/lint/noop-method-call.rs b/tests/ui/lint/noop-method-call.rs similarity index 100% rename from src/test/ui/lint/noop-method-call.rs rename to tests/ui/lint/noop-method-call.rs diff --git a/src/test/ui/lint/noop-method-call.stderr b/tests/ui/lint/noop-method-call.stderr similarity index 100% rename from src/test/ui/lint/noop-method-call.stderr rename to tests/ui/lint/noop-method-call.stderr diff --git a/src/test/ui/lint/not_found.rs b/tests/ui/lint/not_found.rs similarity index 100% rename from src/test/ui/lint/not_found.rs rename to tests/ui/lint/not_found.rs diff --git a/src/test/ui/lint/not_found.stderr b/tests/ui/lint/not_found.stderr similarity index 100% rename from src/test/ui/lint/not_found.stderr rename to tests/ui/lint/not_found.stderr diff --git a/src/test/ui/lint/opaque-ty-ffi-normalization-cycle.rs b/tests/ui/lint/opaque-ty-ffi-normalization-cycle.rs similarity index 100% rename from src/test/ui/lint/opaque-ty-ffi-normalization-cycle.rs rename to tests/ui/lint/opaque-ty-ffi-normalization-cycle.rs diff --git a/src/test/ui/lint/opaque-ty-ffi-normalization-cycle.stderr b/tests/ui/lint/opaque-ty-ffi-normalization-cycle.stderr similarity index 100% rename from src/test/ui/lint/opaque-ty-ffi-normalization-cycle.stderr rename to tests/ui/lint/opaque-ty-ffi-normalization-cycle.stderr diff --git a/src/test/ui/lint/opaque-ty-ffi-unsafe.rs b/tests/ui/lint/opaque-ty-ffi-unsafe.rs similarity index 100% rename from src/test/ui/lint/opaque-ty-ffi-unsafe.rs rename to tests/ui/lint/opaque-ty-ffi-unsafe.rs diff --git a/src/test/ui/lint/opaque-ty-ffi-unsafe.stderr b/tests/ui/lint/opaque-ty-ffi-unsafe.stderr similarity index 100% rename from src/test/ui/lint/opaque-ty-ffi-unsafe.stderr rename to tests/ui/lint/opaque-ty-ffi-unsafe.stderr diff --git a/src/test/ui/lint/outer-forbid.rs b/tests/ui/lint/outer-forbid.rs similarity index 100% rename from src/test/ui/lint/outer-forbid.rs rename to tests/ui/lint/outer-forbid.rs diff --git a/src/test/ui/lint/outer-forbid.stderr b/tests/ui/lint/outer-forbid.stderr similarity index 100% rename from src/test/ui/lint/outer-forbid.stderr rename to tests/ui/lint/outer-forbid.stderr diff --git a/src/test/ui/lint/reasons-erroneous.rs b/tests/ui/lint/reasons-erroneous.rs similarity index 100% rename from src/test/ui/lint/reasons-erroneous.rs rename to tests/ui/lint/reasons-erroneous.rs diff --git a/src/test/ui/lint/reasons-erroneous.stderr b/tests/ui/lint/reasons-erroneous.stderr similarity index 100% rename from src/test/ui/lint/reasons-erroneous.stderr rename to tests/ui/lint/reasons-erroneous.stderr diff --git a/src/test/ui/lint/reasons-forbidden.rs b/tests/ui/lint/reasons-forbidden.rs similarity index 100% rename from src/test/ui/lint/reasons-forbidden.rs rename to tests/ui/lint/reasons-forbidden.rs diff --git a/src/test/ui/lint/reasons-forbidden.stderr b/tests/ui/lint/reasons-forbidden.stderr similarity index 100% rename from src/test/ui/lint/reasons-forbidden.stderr rename to tests/ui/lint/reasons-forbidden.stderr diff --git a/src/test/ui/lint/reasons.rs b/tests/ui/lint/reasons.rs similarity index 100% rename from src/test/ui/lint/reasons.rs rename to tests/ui/lint/reasons.rs diff --git a/src/test/ui/lint/reasons.stderr b/tests/ui/lint/reasons.stderr similarity index 100% rename from src/test/ui/lint/reasons.stderr rename to tests/ui/lint/reasons.stderr diff --git a/src/test/ui/lint/recommend-literal.rs b/tests/ui/lint/recommend-literal.rs similarity index 100% rename from src/test/ui/lint/recommend-literal.rs rename to tests/ui/lint/recommend-literal.rs diff --git a/src/test/ui/lint/recommend-literal.stderr b/tests/ui/lint/recommend-literal.stderr similarity index 100% rename from src/test/ui/lint/recommend-literal.stderr rename to tests/ui/lint/recommend-literal.stderr diff --git a/src/test/ui/lint/redundant-semicolon/auxiliary/redundant-semi-proc-macro-def.rs b/tests/ui/lint/redundant-semicolon/auxiliary/redundant-semi-proc-macro-def.rs similarity index 100% rename from src/test/ui/lint/redundant-semicolon/auxiliary/redundant-semi-proc-macro-def.rs rename to tests/ui/lint/redundant-semicolon/auxiliary/redundant-semi-proc-macro-def.rs diff --git a/src/test/ui/lint/redundant-semicolon/item-stmt-semi.rs b/tests/ui/lint/redundant-semicolon/item-stmt-semi.rs similarity index 100% rename from src/test/ui/lint/redundant-semicolon/item-stmt-semi.rs rename to tests/ui/lint/redundant-semicolon/item-stmt-semi.rs diff --git a/src/test/ui/lint/redundant-semicolon/item-stmt-semi.stderr b/tests/ui/lint/redundant-semicolon/item-stmt-semi.stderr similarity index 100% rename from src/test/ui/lint/redundant-semicolon/item-stmt-semi.stderr rename to tests/ui/lint/redundant-semicolon/item-stmt-semi.stderr diff --git a/src/test/ui/lint/redundant-semicolon/redundant-semi-proc-macro.rs b/tests/ui/lint/redundant-semicolon/redundant-semi-proc-macro.rs similarity index 100% rename from src/test/ui/lint/redundant-semicolon/redundant-semi-proc-macro.rs rename to tests/ui/lint/redundant-semicolon/redundant-semi-proc-macro.rs diff --git a/src/test/ui/lint/redundant-semicolon/redundant-semi-proc-macro.stderr b/tests/ui/lint/redundant-semicolon/redundant-semi-proc-macro.stderr similarity index 100% rename from src/test/ui/lint/redundant-semicolon/redundant-semi-proc-macro.stderr rename to tests/ui/lint/redundant-semicolon/redundant-semi-proc-macro.stderr diff --git a/src/test/ui/lint/register-tool-lint.rs b/tests/ui/lint/register-tool-lint.rs similarity index 100% rename from src/test/ui/lint/register-tool-lint.rs rename to tests/ui/lint/register-tool-lint.rs diff --git a/src/test/ui/lint/register-tool-lint.stderr b/tests/ui/lint/register-tool-lint.stderr similarity index 100% rename from src/test/ui/lint/register-tool-lint.stderr rename to tests/ui/lint/register-tool-lint.stderr diff --git a/src/test/ui/lint/renamed-lints-still-apply.rs b/tests/ui/lint/renamed-lints-still-apply.rs similarity index 100% rename from src/test/ui/lint/renamed-lints-still-apply.rs rename to tests/ui/lint/renamed-lints-still-apply.rs diff --git a/src/test/ui/lint/renamed-lints-still-apply.stderr b/tests/ui/lint/renamed-lints-still-apply.stderr similarity index 100% rename from src/test/ui/lint/renamed-lints-still-apply.stderr rename to tests/ui/lint/renamed-lints-still-apply.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/avoid_delayed_good_path_ice.rs b/tests/ui/lint/rfc-2383-lint-reason/avoid_delayed_good_path_ice.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/avoid_delayed_good_path_ice.rs rename to tests/ui/lint/rfc-2383-lint-reason/avoid_delayed_good_path_ice.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/catch_multiple_lint_triggers.rs b/tests/ui/lint/rfc-2383-lint-reason/catch_multiple_lint_triggers.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/catch_multiple_lint_triggers.rs rename to tests/ui/lint/rfc-2383-lint-reason/catch_multiple_lint_triggers.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/crate_level_expect.rs b/tests/ui/lint/rfc-2383-lint-reason/crate_level_expect.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/crate_level_expect.rs rename to tests/ui/lint/rfc-2383-lint-reason/crate_level_expect.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/crate_level_expect.stderr b/tests/ui/lint/rfc-2383-lint-reason/crate_level_expect.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/crate_level_expect.stderr rename to tests/ui/lint/rfc-2383-lint-reason/crate_level_expect.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_inside_macro.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_inside_macro.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_inside_macro.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_inside_macro.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_missing_feature_gate.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_on_fn_params.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_tool_lint_rfc_2383.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_unfulfilled_expectation.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_with_forbid.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_with_forbid.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_with_forbid.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_with_forbid.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_with_forbid.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_with_forbid.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_with_forbid.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_with_forbid.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_with_reason.rs b/tests/ui/lint/rfc-2383-lint-reason/expect_with_reason.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_with_reason.rs rename to tests/ui/lint/rfc-2383-lint-reason/expect_with_reason.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_with_reason.stderr b/tests/ui/lint/rfc-2383-lint-reason/expect_with_reason.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/expect_with_reason.stderr rename to tests/ui/lint/rfc-2383-lint-reason/expect_with_reason.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.rs b/tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.rs rename to tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.stderr b/tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.stderr rename to tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.rs b/tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.rs rename to tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.stderr b/tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.stderr rename to tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_unfulfilled.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_early_lints.rs b/tests/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_early_lints.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_early_lints.rs rename to tests/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_early_lints.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_late_lints.rs b/tests/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_late_lints.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_late_lints.rs rename to tests/ui/lint/rfc-2383-lint-reason/fulfilled_expectation_late_lints.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.rs b/tests/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.rs rename to tests/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.stderr b/tests/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.stderr rename to tests/ui/lint/rfc-2383-lint-reason/lint-attribute-only-with-reason.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.rs b/tests/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.rs rename to tests/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.stderr b/tests/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.stderr similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.stderr rename to tests/ui/lint/rfc-2383-lint-reason/multiple_expect_attrs.stderr diff --git a/src/test/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.rs b/tests/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.rs similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.rs rename to tests/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.rs diff --git a/src/test/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.stdout b/tests/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.stdout similarity index 100% rename from src/test/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.stdout rename to tests/ui/lint/rfc-2383-lint-reason/no_ice_for_partial_compiler_runs.stdout diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.rs b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.rs similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.rs rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.rs diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables-2.rs b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables-2.rs similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables-2.rs rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables-2.rs diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.stderr b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.stderr similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.stderr rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.stderr diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.rs b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.rs similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.rs rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.rs diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.stderr b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.stderr similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.stderr rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-non-ascii-idents.stderr diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.rs b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.rs similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.rs rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.rs diff --git a/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.stderr b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.stderr similarity index 100% rename from src/test/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.stderr rename to tests/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.stderr diff --git a/src/test/ui/lint/rustdoc-group.rs b/tests/ui/lint/rustdoc-group.rs similarity index 100% rename from src/test/ui/lint/rustdoc-group.rs rename to tests/ui/lint/rustdoc-group.rs diff --git a/src/test/ui/lint/rustdoc-group.stderr b/tests/ui/lint/rustdoc-group.stderr similarity index 100% rename from src/test/ui/lint/rustdoc-group.stderr rename to tests/ui/lint/rustdoc-group.stderr diff --git a/src/test/ui/lint/rustdoc-renamed.rs b/tests/ui/lint/rustdoc-renamed.rs similarity index 100% rename from src/test/ui/lint/rustdoc-renamed.rs rename to tests/ui/lint/rustdoc-renamed.rs diff --git a/src/test/ui/lint/rustdoc-renamed.stderr b/tests/ui/lint/rustdoc-renamed.stderr similarity index 100% rename from src/test/ui/lint/rustdoc-renamed.stderr rename to tests/ui/lint/rustdoc-renamed.stderr diff --git a/src/test/ui/lint/semicolon-in-expressions-from-macros/auxiliary/foreign-crate.rs b/tests/ui/lint/semicolon-in-expressions-from-macros/auxiliary/foreign-crate.rs similarity index 100% rename from src/test/ui/lint/semicolon-in-expressions-from-macros/auxiliary/foreign-crate.rs rename to tests/ui/lint/semicolon-in-expressions-from-macros/auxiliary/foreign-crate.rs diff --git a/src/test/ui/lint/semicolon-in-expressions-from-macros/foreign-crate.rs b/tests/ui/lint/semicolon-in-expressions-from-macros/foreign-crate.rs similarity index 100% rename from src/test/ui/lint/semicolon-in-expressions-from-macros/foreign-crate.rs rename to tests/ui/lint/semicolon-in-expressions-from-macros/foreign-crate.rs diff --git a/src/test/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.rs b/tests/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.rs similarity index 100% rename from src/test/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.rs rename to tests/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.rs diff --git a/src/test/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.stderr b/tests/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.stderr similarity index 100% rename from src/test/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.stderr rename to tests/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.stderr diff --git a/src/test/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.rs b/tests/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.rs similarity index 100% rename from src/test/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.rs rename to tests/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.rs diff --git a/src/test/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.stderr b/tests/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.stderr similarity index 100% rename from src/test/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.stderr rename to tests/ui/lint/semicolon-in-expressions-from-macros/warn-semicolon-in-expressions-from-macros.stderr diff --git a/src/test/ui/lint/special-upper-lower-cases.rs b/tests/ui/lint/special-upper-lower-cases.rs similarity index 100% rename from src/test/ui/lint/special-upper-lower-cases.rs rename to tests/ui/lint/special-upper-lower-cases.rs diff --git a/src/test/ui/lint/special-upper-lower-cases.stderr b/tests/ui/lint/special-upper-lower-cases.stderr similarity index 100% rename from src/test/ui/lint/special-upper-lower-cases.stderr rename to tests/ui/lint/special-upper-lower-cases.stderr diff --git a/src/test/ui/lint/suggestions.fixed b/tests/ui/lint/suggestions.fixed similarity index 100% rename from src/test/ui/lint/suggestions.fixed rename to tests/ui/lint/suggestions.fixed diff --git a/src/test/ui/lint/suggestions.rs b/tests/ui/lint/suggestions.rs similarity index 100% rename from src/test/ui/lint/suggestions.rs rename to tests/ui/lint/suggestions.rs diff --git a/src/test/ui/lint/suggestions.stderr b/tests/ui/lint/suggestions.stderr similarity index 100% rename from src/test/ui/lint/suggestions.stderr rename to tests/ui/lint/suggestions.stderr diff --git a/src/test/ui/lint/test-allow-dead-extern-static-no-warning.rs b/tests/ui/lint/test-allow-dead-extern-static-no-warning.rs similarity index 100% rename from src/test/ui/lint/test-allow-dead-extern-static-no-warning.rs rename to tests/ui/lint/test-allow-dead-extern-static-no-warning.rs diff --git a/src/test/ui/lint/test-inner-fn.rs b/tests/ui/lint/test-inner-fn.rs similarity index 100% rename from src/test/ui/lint/test-inner-fn.rs rename to tests/ui/lint/test-inner-fn.rs diff --git a/src/test/ui/lint/test-inner-fn.stderr b/tests/ui/lint/test-inner-fn.stderr similarity index 100% rename from src/test/ui/lint/test-inner-fn.stderr rename to tests/ui/lint/test-inner-fn.stderr diff --git a/src/test/ui/lint/trivial-cast-ice.rs b/tests/ui/lint/trivial-cast-ice.rs similarity index 100% rename from src/test/ui/lint/trivial-cast-ice.rs rename to tests/ui/lint/trivial-cast-ice.rs diff --git a/src/test/ui/lint/trivial-casts-featuring-type-ascription.rs b/tests/ui/lint/trivial-casts-featuring-type-ascription.rs similarity index 100% rename from src/test/ui/lint/trivial-casts-featuring-type-ascription.rs rename to tests/ui/lint/trivial-casts-featuring-type-ascription.rs diff --git a/src/test/ui/lint/trivial-casts-featuring-type-ascription.stderr b/tests/ui/lint/trivial-casts-featuring-type-ascription.stderr similarity index 100% rename from src/test/ui/lint/trivial-casts-featuring-type-ascription.stderr rename to tests/ui/lint/trivial-casts-featuring-type-ascription.stderr diff --git a/src/test/ui/lint/trivial-casts.rs b/tests/ui/lint/trivial-casts.rs similarity index 100% rename from src/test/ui/lint/trivial-casts.rs rename to tests/ui/lint/trivial-casts.rs diff --git a/src/test/ui/lint/trivial-casts.stderr b/tests/ui/lint/trivial-casts.stderr similarity index 100% rename from src/test/ui/lint/trivial-casts.stderr rename to tests/ui/lint/trivial-casts.stderr diff --git a/src/test/ui/lint/trivial_casts.rs b/tests/ui/lint/trivial_casts.rs similarity index 100% rename from src/test/ui/lint/trivial_casts.rs rename to tests/ui/lint/trivial_casts.rs diff --git a/src/test/ui/lint/trivial_casts.stderr b/tests/ui/lint/trivial_casts.stderr similarity index 100% rename from src/test/ui/lint/trivial_casts.stderr rename to tests/ui/lint/trivial_casts.stderr diff --git a/src/test/ui/lint/type-overflow.rs b/tests/ui/lint/type-overflow.rs similarity index 100% rename from src/test/ui/lint/type-overflow.rs rename to tests/ui/lint/type-overflow.rs diff --git a/src/test/ui/lint/type-overflow.stderr b/tests/ui/lint/type-overflow.stderr similarity index 100% rename from src/test/ui/lint/type-overflow.stderr rename to tests/ui/lint/type-overflow.stderr diff --git a/src/test/ui/lint/unaligned_references.rs b/tests/ui/lint/unaligned_references.rs similarity index 100% rename from src/test/ui/lint/unaligned_references.rs rename to tests/ui/lint/unaligned_references.rs diff --git a/src/test/ui/lint/unaligned_references.stderr b/tests/ui/lint/unaligned_references.stderr similarity index 100% rename from src/test/ui/lint/unaligned_references.stderr rename to tests/ui/lint/unaligned_references.stderr diff --git a/src/test/ui/lint/unaligned_references_external_macro.rs b/tests/ui/lint/unaligned_references_external_macro.rs similarity index 100% rename from src/test/ui/lint/unaligned_references_external_macro.rs rename to tests/ui/lint/unaligned_references_external_macro.rs diff --git a/src/test/ui/lint/unaligned_references_external_macro.stderr b/tests/ui/lint/unaligned_references_external_macro.stderr similarity index 100% rename from src/test/ui/lint/unaligned_references_external_macro.stderr rename to tests/ui/lint/unaligned_references_external_macro.stderr diff --git a/src/test/ui/lint/unnecessary-extern-crate.rs b/tests/ui/lint/unnecessary-extern-crate.rs similarity index 100% rename from src/test/ui/lint/unnecessary-extern-crate.rs rename to tests/ui/lint/unnecessary-extern-crate.rs diff --git a/src/test/ui/lint/unnecessary-extern-crate.stderr b/tests/ui/lint/unnecessary-extern-crate.stderr similarity index 100% rename from src/test/ui/lint/unnecessary-extern-crate.stderr rename to tests/ui/lint/unnecessary-extern-crate.stderr diff --git a/src/test/ui/lint/unreachable-async-fn.rs b/tests/ui/lint/unreachable-async-fn.rs similarity index 100% rename from src/test/ui/lint/unreachable-async-fn.rs rename to tests/ui/lint/unreachable-async-fn.rs diff --git a/src/test/ui/lint/unreachable_pub.rs b/tests/ui/lint/unreachable_pub.rs similarity index 100% rename from src/test/ui/lint/unreachable_pub.rs rename to tests/ui/lint/unreachable_pub.rs diff --git a/src/test/ui/lint/unreachable_pub.stderr b/tests/ui/lint/unreachable_pub.stderr similarity index 100% rename from src/test/ui/lint/unreachable_pub.stderr rename to tests/ui/lint/unreachable_pub.stderr diff --git a/src/test/ui/lint/unsafe_code/auxiliary/forge_unsafe_block.rs b/tests/ui/lint/unsafe_code/auxiliary/forge_unsafe_block.rs similarity index 100% rename from src/test/ui/lint/unsafe_code/auxiliary/forge_unsafe_block.rs rename to tests/ui/lint/unsafe_code/auxiliary/forge_unsafe_block.rs diff --git a/src/test/ui/lint/unsafe_code/forge_unsafe_block.rs b/tests/ui/lint/unsafe_code/forge_unsafe_block.rs similarity index 100% rename from src/test/ui/lint/unsafe_code/forge_unsafe_block.rs rename to tests/ui/lint/unsafe_code/forge_unsafe_block.rs diff --git a/src/test/ui/lint/unused-borrows.rs b/tests/ui/lint/unused-borrows.rs similarity index 100% rename from src/test/ui/lint/unused-borrows.rs rename to tests/ui/lint/unused-borrows.rs diff --git a/src/test/ui/lint/unused-borrows.stderr b/tests/ui/lint/unused-borrows.stderr similarity index 100% rename from src/test/ui/lint/unused-borrows.stderr rename to tests/ui/lint/unused-borrows.stderr diff --git a/src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs b/tests/ui/lint/unused-braces-while-let-with-mutable-value.rs similarity index 100% rename from src/test/ui/lint/unused-braces-while-let-with-mutable-value.rs rename to tests/ui/lint/unused-braces-while-let-with-mutable-value.rs diff --git a/src/test/ui/lint/unused-qualification-in-derive-expansion.rs b/tests/ui/lint/unused-qualification-in-derive-expansion.rs similarity index 100% rename from src/test/ui/lint/unused-qualification-in-derive-expansion.rs rename to tests/ui/lint/unused-qualification-in-derive-expansion.rs diff --git a/src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate.rs b/tests/ui/lint/unused/auxiliary/lint_unused_extern_crate.rs similarity index 100% rename from src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate.rs rename to tests/ui/lint/unused/auxiliary/lint_unused_extern_crate.rs diff --git a/src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate2.rs b/tests/ui/lint/unused/auxiliary/lint_unused_extern_crate2.rs similarity index 100% rename from src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate2.rs rename to tests/ui/lint/unused/auxiliary/lint_unused_extern_crate2.rs diff --git a/src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate3.rs b/tests/ui/lint/unused/auxiliary/lint_unused_extern_crate3.rs similarity index 100% rename from src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate3.rs rename to tests/ui/lint/unused/auxiliary/lint_unused_extern_crate3.rs diff --git a/src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate4.rs b/tests/ui/lint/unused/auxiliary/lint_unused_extern_crate4.rs similarity index 100% rename from src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate4.rs rename to tests/ui/lint/unused/auxiliary/lint_unused_extern_crate4.rs diff --git a/src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate5.rs b/tests/ui/lint/unused/auxiliary/lint_unused_extern_crate5.rs similarity index 100% rename from src/test/ui/lint/unused/auxiliary/lint_unused_extern_crate5.rs rename to tests/ui/lint/unused/auxiliary/lint_unused_extern_crate5.rs diff --git a/src/test/ui/lint/unused/issue-104397.rs b/tests/ui/lint/unused/issue-104397.rs similarity index 100% rename from src/test/ui/lint/unused/issue-104397.rs rename to tests/ui/lint/unused/issue-104397.rs diff --git a/src/test/ui/lint/unused/issue-30730.rs b/tests/ui/lint/unused/issue-30730.rs similarity index 100% rename from src/test/ui/lint/unused/issue-30730.rs rename to tests/ui/lint/unused/issue-30730.rs diff --git a/src/test/ui/lint/unused/issue-30730.stderr b/tests/ui/lint/unused/issue-30730.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-30730.stderr rename to tests/ui/lint/unused/issue-30730.stderr diff --git a/src/test/ui/lint/unused/issue-46576.rs b/tests/ui/lint/unused/issue-46576.rs similarity index 100% rename from src/test/ui/lint/unused/issue-46576.rs rename to tests/ui/lint/unused/issue-46576.rs diff --git a/src/test/ui/lint/unused/issue-46576.stderr b/tests/ui/lint/unused/issue-46576.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-46576.stderr rename to tests/ui/lint/unused/issue-46576.stderr diff --git a/src/test/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.rs b/tests/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.rs similarity index 100% rename from src/test/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.rs rename to tests/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.rs diff --git a/src/test/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.stderr b/tests/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.stderr rename to tests/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.stderr diff --git a/src/test/ui/lint/unused/issue-54180-unused-ref-field.fixed b/tests/ui/lint/unused/issue-54180-unused-ref-field.fixed similarity index 100% rename from src/test/ui/lint/unused/issue-54180-unused-ref-field.fixed rename to tests/ui/lint/unused/issue-54180-unused-ref-field.fixed diff --git a/src/test/ui/lint/unused/issue-54180-unused-ref-field.rs b/tests/ui/lint/unused/issue-54180-unused-ref-field.rs similarity index 100% rename from src/test/ui/lint/unused/issue-54180-unused-ref-field.rs rename to tests/ui/lint/unused/issue-54180-unused-ref-field.rs diff --git a/src/test/ui/lint/unused/issue-54180-unused-ref-field.stderr b/tests/ui/lint/unused/issue-54180-unused-ref-field.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-54180-unused-ref-field.stderr rename to tests/ui/lint/unused/issue-54180-unused-ref-field.stderr diff --git a/src/test/ui/lint/unused/issue-54538-unused-parens-lint.fixed b/tests/ui/lint/unused/issue-54538-unused-parens-lint.fixed similarity index 100% rename from src/test/ui/lint/unused/issue-54538-unused-parens-lint.fixed rename to tests/ui/lint/unused/issue-54538-unused-parens-lint.fixed diff --git a/src/test/ui/lint/unused/issue-54538-unused-parens-lint.rs b/tests/ui/lint/unused/issue-54538-unused-parens-lint.rs similarity index 100% rename from src/test/ui/lint/unused/issue-54538-unused-parens-lint.rs rename to tests/ui/lint/unused/issue-54538-unused-parens-lint.rs diff --git a/src/test/ui/lint/unused/issue-54538-unused-parens-lint.stderr b/tests/ui/lint/unused/issue-54538-unused-parens-lint.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-54538-unused-parens-lint.stderr rename to tests/ui/lint/unused/issue-54538-unused-parens-lint.stderr diff --git a/src/test/ui/lint/unused/issue-59896.rs b/tests/ui/lint/unused/issue-59896.rs similarity index 100% rename from src/test/ui/lint/unused/issue-59896.rs rename to tests/ui/lint/unused/issue-59896.rs diff --git a/src/test/ui/lint/unused/issue-59896.stderr b/tests/ui/lint/unused/issue-59896.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-59896.stderr rename to tests/ui/lint/unused/issue-59896.stderr diff --git a/src/test/ui/lint/unused/issue-67691-unused-field-in-or-pattern.rs b/tests/ui/lint/unused/issue-67691-unused-field-in-or-pattern.rs similarity index 100% rename from src/test/ui/lint/unused/issue-67691-unused-field-in-or-pattern.rs rename to tests/ui/lint/unused/issue-67691-unused-field-in-or-pattern.rs diff --git a/src/test/ui/lint/unused/issue-67691-unused-field-in-or-pattern.stderr b/tests/ui/lint/unused/issue-67691-unused-field-in-or-pattern.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-67691-unused-field-in-or-pattern.stderr rename to tests/ui/lint/unused/issue-67691-unused-field-in-or-pattern.stderr diff --git a/src/test/ui/lint/unused/issue-70041.rs b/tests/ui/lint/unused/issue-70041.rs similarity index 100% rename from src/test/ui/lint/unused/issue-70041.rs rename to tests/ui/lint/unused/issue-70041.rs diff --git a/src/test/ui/lint/unused/issue-70041.stderr b/tests/ui/lint/unused/issue-70041.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-70041.stderr rename to tests/ui/lint/unused/issue-70041.stderr diff --git a/src/test/ui/lint/unused/issue-71290-unused-paren-binop.rs b/tests/ui/lint/unused/issue-71290-unused-paren-binop.rs similarity index 100% rename from src/test/ui/lint/unused/issue-71290-unused-paren-binop.rs rename to tests/ui/lint/unused/issue-71290-unused-paren-binop.rs diff --git a/src/test/ui/lint/unused/issue-74883-unused-paren-baren-yield.rs b/tests/ui/lint/unused/issue-74883-unused-paren-baren-yield.rs similarity index 100% rename from src/test/ui/lint/unused/issue-74883-unused-paren-baren-yield.rs rename to tests/ui/lint/unused/issue-74883-unused-paren-baren-yield.rs diff --git a/src/test/ui/lint/unused/issue-74883-unused-paren-baren-yield.stderr b/tests/ui/lint/unused/issue-74883-unused-paren-baren-yield.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-74883-unused-paren-baren-yield.stderr rename to tests/ui/lint/unused/issue-74883-unused-paren-baren-yield.stderr diff --git a/src/test/ui/lint/unused/issue-81314-unused-span-ident.fixed b/tests/ui/lint/unused/issue-81314-unused-span-ident.fixed similarity index 100% rename from src/test/ui/lint/unused/issue-81314-unused-span-ident.fixed rename to tests/ui/lint/unused/issue-81314-unused-span-ident.fixed diff --git a/src/test/ui/lint/unused/issue-81314-unused-span-ident.rs b/tests/ui/lint/unused/issue-81314-unused-span-ident.rs similarity index 100% rename from src/test/ui/lint/unused/issue-81314-unused-span-ident.rs rename to tests/ui/lint/unused/issue-81314-unused-span-ident.rs diff --git a/src/test/ui/lint/unused/issue-81314-unused-span-ident.stderr b/tests/ui/lint/unused/issue-81314-unused-span-ident.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-81314-unused-span-ident.stderr rename to tests/ui/lint/unused/issue-81314-unused-span-ident.stderr diff --git a/src/test/ui/lint/unused/issue-85913.rs b/tests/ui/lint/unused/issue-85913.rs similarity index 100% rename from src/test/ui/lint/unused/issue-85913.rs rename to tests/ui/lint/unused/issue-85913.rs diff --git a/src/test/ui/lint/unused/issue-85913.stderr b/tests/ui/lint/unused/issue-85913.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-85913.stderr rename to tests/ui/lint/unused/issue-85913.stderr diff --git a/src/test/ui/lint/unused/issue-88519-unused-paren.rs b/tests/ui/lint/unused/issue-88519-unused-paren.rs similarity index 100% rename from src/test/ui/lint/unused/issue-88519-unused-paren.rs rename to tests/ui/lint/unused/issue-88519-unused-paren.rs diff --git a/src/test/ui/lint/unused/issue-90807-unused-paren-error.rs b/tests/ui/lint/unused/issue-90807-unused-paren-error.rs similarity index 100% rename from src/test/ui/lint/unused/issue-90807-unused-paren-error.rs rename to tests/ui/lint/unused/issue-90807-unused-paren-error.rs diff --git a/src/test/ui/lint/unused/issue-90807-unused-paren-error.stderr b/tests/ui/lint/unused/issue-90807-unused-paren-error.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-90807-unused-paren-error.stderr rename to tests/ui/lint/unused/issue-90807-unused-paren-error.stderr diff --git a/src/test/ui/lint/unused/issue-90807-unused-paren.rs b/tests/ui/lint/unused/issue-90807-unused-paren.rs similarity index 100% rename from src/test/ui/lint/unused/issue-90807-unused-paren.rs rename to tests/ui/lint/unused/issue-90807-unused-paren.rs diff --git a/src/test/ui/lint/unused/issue-92751.rs b/tests/ui/lint/unused/issue-92751.rs similarity index 100% rename from src/test/ui/lint/unused/issue-92751.rs rename to tests/ui/lint/unused/issue-92751.rs diff --git a/src/test/ui/lint/unused/issue-92751.stderr b/tests/ui/lint/unused/issue-92751.stderr similarity index 100% rename from src/test/ui/lint/unused/issue-92751.stderr rename to tests/ui/lint/unused/issue-92751.stderr diff --git a/src/test/ui/lint/unused/lint-unused-extern-crate.rs b/tests/ui/lint/unused/lint-unused-extern-crate.rs similarity index 100% rename from src/test/ui/lint/unused/lint-unused-extern-crate.rs rename to tests/ui/lint/unused/lint-unused-extern-crate.rs diff --git a/src/test/ui/lint/unused/lint-unused-extern-crate.stderr b/tests/ui/lint/unused/lint-unused-extern-crate.stderr similarity index 100% rename from src/test/ui/lint/unused/lint-unused-extern-crate.stderr rename to tests/ui/lint/unused/lint-unused-extern-crate.stderr diff --git a/src/test/ui/lint/unused/lint-unused-imports.rs b/tests/ui/lint/unused/lint-unused-imports.rs similarity index 100% rename from src/test/ui/lint/unused/lint-unused-imports.rs rename to tests/ui/lint/unused/lint-unused-imports.rs diff --git a/src/test/ui/lint/unused/lint-unused-imports.stderr b/tests/ui/lint/unused/lint-unused-imports.stderr similarity index 100% rename from src/test/ui/lint/unused/lint-unused-imports.stderr rename to tests/ui/lint/unused/lint-unused-imports.stderr diff --git a/src/test/ui/lint/unused/lint-unused-mut-self.fixed b/tests/ui/lint/unused/lint-unused-mut-self.fixed similarity index 100% rename from src/test/ui/lint/unused/lint-unused-mut-self.fixed rename to tests/ui/lint/unused/lint-unused-mut-self.fixed diff --git a/src/test/ui/lint/unused/lint-unused-mut-self.rs b/tests/ui/lint/unused/lint-unused-mut-self.rs similarity index 100% rename from src/test/ui/lint/unused/lint-unused-mut-self.rs rename to tests/ui/lint/unused/lint-unused-mut-self.rs diff --git a/src/test/ui/lint/unused/lint-unused-mut-self.stderr b/tests/ui/lint/unused/lint-unused-mut-self.stderr similarity index 100% rename from src/test/ui/lint/unused/lint-unused-mut-self.stderr rename to tests/ui/lint/unused/lint-unused-mut-self.stderr diff --git a/src/test/ui/lint/unused/lint-unused-mut-variables.rs b/tests/ui/lint/unused/lint-unused-mut-variables.rs similarity index 100% rename from src/test/ui/lint/unused/lint-unused-mut-variables.rs rename to tests/ui/lint/unused/lint-unused-mut-variables.rs diff --git a/src/test/ui/lint/unused/lint-unused-mut-variables.stderr b/tests/ui/lint/unused/lint-unused-mut-variables.stderr similarity index 100% rename from src/test/ui/lint/unused/lint-unused-mut-variables.stderr rename to tests/ui/lint/unused/lint-unused-mut-variables.stderr diff --git a/src/test/ui/lint/unused/lint-unused-variables.rs b/tests/ui/lint/unused/lint-unused-variables.rs similarity index 100% rename from src/test/ui/lint/unused/lint-unused-variables.rs rename to tests/ui/lint/unused/lint-unused-variables.rs diff --git a/src/test/ui/lint/unused/lint-unused-variables.stderr b/tests/ui/lint/unused/lint-unused-variables.stderr similarity index 100% rename from src/test/ui/lint/unused/lint-unused-variables.stderr rename to tests/ui/lint/unused/lint-unused-variables.stderr diff --git a/src/test/ui/lint/unused/must-use-box-from-raw.rs b/tests/ui/lint/unused/must-use-box-from-raw.rs similarity index 100% rename from src/test/ui/lint/unused/must-use-box-from-raw.rs rename to tests/ui/lint/unused/must-use-box-from-raw.rs diff --git a/src/test/ui/lint/unused/must-use-box-from-raw.stderr b/tests/ui/lint/unused/must-use-box-from-raw.stderr similarity index 100% rename from src/test/ui/lint/unused/must-use-box-from-raw.stderr rename to tests/ui/lint/unused/must-use-box-from-raw.stderr diff --git a/src/test/ui/lint/unused/must-use-ops.rs b/tests/ui/lint/unused/must-use-ops.rs similarity index 100% rename from src/test/ui/lint/unused/must-use-ops.rs rename to tests/ui/lint/unused/must-use-ops.rs diff --git a/src/test/ui/lint/unused/must-use-ops.stderr b/tests/ui/lint/unused/must-use-ops.stderr similarity index 100% rename from src/test/ui/lint/unused/must-use-ops.stderr rename to tests/ui/lint/unused/must-use-ops.stderr diff --git a/src/test/ui/lint/unused/must_use-array.rs b/tests/ui/lint/unused/must_use-array.rs similarity index 100% rename from src/test/ui/lint/unused/must_use-array.rs rename to tests/ui/lint/unused/must_use-array.rs diff --git a/src/test/ui/lint/unused/must_use-array.stderr b/tests/ui/lint/unused/must_use-array.stderr similarity index 100% rename from src/test/ui/lint/unused/must_use-array.stderr rename to tests/ui/lint/unused/must_use-array.stderr diff --git a/src/test/ui/lint/unused/must_use-in-stdlib-traits.rs b/tests/ui/lint/unused/must_use-in-stdlib-traits.rs similarity index 100% rename from src/test/ui/lint/unused/must_use-in-stdlib-traits.rs rename to tests/ui/lint/unused/must_use-in-stdlib-traits.rs diff --git a/src/test/ui/lint/unused/must_use-in-stdlib-traits.stderr b/tests/ui/lint/unused/must_use-in-stdlib-traits.stderr similarity index 100% rename from src/test/ui/lint/unused/must_use-in-stdlib-traits.stderr rename to tests/ui/lint/unused/must_use-in-stdlib-traits.stderr diff --git a/src/test/ui/lint/unused/must_use-trait.rs b/tests/ui/lint/unused/must_use-trait.rs similarity index 100% rename from src/test/ui/lint/unused/must_use-trait.rs rename to tests/ui/lint/unused/must_use-trait.rs diff --git a/src/test/ui/lint/unused/must_use-trait.stderr b/tests/ui/lint/unused/must_use-trait.stderr similarity index 100% rename from src/test/ui/lint/unused/must_use-trait.stderr rename to tests/ui/lint/unused/must_use-trait.stderr diff --git a/src/test/ui/lint/unused/must_use-tuple.rs b/tests/ui/lint/unused/must_use-tuple.rs similarity index 100% rename from src/test/ui/lint/unused/must_use-tuple.rs rename to tests/ui/lint/unused/must_use-tuple.rs diff --git a/src/test/ui/lint/unused/must_use-tuple.stderr b/tests/ui/lint/unused/must_use-tuple.stderr similarity index 100% rename from src/test/ui/lint/unused/must_use-tuple.stderr rename to tests/ui/lint/unused/must_use-tuple.stderr diff --git a/src/test/ui/lint/unused/must_use-unit.rs b/tests/ui/lint/unused/must_use-unit.rs similarity index 100% rename from src/test/ui/lint/unused/must_use-unit.rs rename to tests/ui/lint/unused/must_use-unit.rs diff --git a/src/test/ui/lint/unused/must_use-unit.stderr b/tests/ui/lint/unused/must_use-unit.stderr similarity index 100% rename from src/test/ui/lint/unused/must_use-unit.stderr rename to tests/ui/lint/unused/must_use-unit.stderr diff --git a/src/test/ui/lint/unused/no-unused-parens-return-block.rs b/tests/ui/lint/unused/no-unused-parens-return-block.rs similarity index 100% rename from src/test/ui/lint/unused/no-unused-parens-return-block.rs rename to tests/ui/lint/unused/no-unused-parens-return-block.rs diff --git a/src/test/ui/lint/unused/unused-async.rs b/tests/ui/lint/unused/unused-async.rs similarity index 100% rename from src/test/ui/lint/unused/unused-async.rs rename to tests/ui/lint/unused/unused-async.rs diff --git a/src/test/ui/lint/unused/unused-async.stderr b/tests/ui/lint/unused/unused-async.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-async.stderr rename to tests/ui/lint/unused/unused-async.stderr diff --git a/src/test/ui/lint/unused/unused-attr-duplicate.rs b/tests/ui/lint/unused/unused-attr-duplicate.rs similarity index 100% rename from src/test/ui/lint/unused/unused-attr-duplicate.rs rename to tests/ui/lint/unused/unused-attr-duplicate.rs diff --git a/src/test/ui/lint/unused/unused-attr-duplicate.stderr b/tests/ui/lint/unused/unused-attr-duplicate.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-attr-duplicate.stderr rename to tests/ui/lint/unused/unused-attr-duplicate.stderr diff --git a/src/test/ui/lint/unused/unused-attr-macro-rules.rs b/tests/ui/lint/unused/unused-attr-macro-rules.rs similarity index 100% rename from src/test/ui/lint/unused/unused-attr-macro-rules.rs rename to tests/ui/lint/unused/unused-attr-macro-rules.rs diff --git a/src/test/ui/lint/unused/unused-attr-macro-rules.stderr b/tests/ui/lint/unused/unused-attr-macro-rules.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-attr-macro-rules.stderr rename to tests/ui/lint/unused/unused-attr-macro-rules.stderr diff --git a/src/test/ui/lint/unused/unused-closure.rs b/tests/ui/lint/unused/unused-closure.rs similarity index 100% rename from src/test/ui/lint/unused/unused-closure.rs rename to tests/ui/lint/unused/unused-closure.rs diff --git a/src/test/ui/lint/unused/unused-closure.stderr b/tests/ui/lint/unused/unused-closure.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-closure.stderr rename to tests/ui/lint/unused/unused-closure.stderr diff --git a/src/test/ui/lint/unused/unused-doc-comments-edge-cases.rs b/tests/ui/lint/unused/unused-doc-comments-edge-cases.rs similarity index 100% rename from src/test/ui/lint/unused/unused-doc-comments-edge-cases.rs rename to tests/ui/lint/unused/unused-doc-comments-edge-cases.rs diff --git a/src/test/ui/lint/unused/unused-doc-comments-edge-cases.stderr b/tests/ui/lint/unused/unused-doc-comments-edge-cases.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-doc-comments-edge-cases.stderr rename to tests/ui/lint/unused/unused-doc-comments-edge-cases.stderr diff --git a/src/test/ui/lint/unused/unused-doc-comments-for-macros.rs b/tests/ui/lint/unused/unused-doc-comments-for-macros.rs similarity index 100% rename from src/test/ui/lint/unused/unused-doc-comments-for-macros.rs rename to tests/ui/lint/unused/unused-doc-comments-for-macros.rs diff --git a/src/test/ui/lint/unused/unused-doc-comments-for-macros.stderr b/tests/ui/lint/unused/unused-doc-comments-for-macros.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-doc-comments-for-macros.stderr rename to tests/ui/lint/unused/unused-doc-comments-for-macros.stderr diff --git a/src/test/ui/lint/unused/unused-macro-rules-compile-error.rs b/tests/ui/lint/unused/unused-macro-rules-compile-error.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules-compile-error.rs rename to tests/ui/lint/unused/unused-macro-rules-compile-error.rs diff --git a/src/test/ui/lint/unused/unused-macro-rules-compile-error.stderr b/tests/ui/lint/unused/unused-macro-rules-compile-error.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules-compile-error.stderr rename to tests/ui/lint/unused/unused-macro-rules-compile-error.stderr diff --git a/src/test/ui/lint/unused/unused-macro-rules-decl.rs b/tests/ui/lint/unused/unused-macro-rules-decl.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules-decl.rs rename to tests/ui/lint/unused/unused-macro-rules-decl.rs diff --git a/src/test/ui/lint/unused/unused-macro-rules-decl.stderr b/tests/ui/lint/unused/unused-macro-rules-decl.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules-decl.stderr rename to tests/ui/lint/unused/unused-macro-rules-decl.stderr diff --git a/src/test/ui/lint/unused/unused-macro-rules-malformed-rule.rs b/tests/ui/lint/unused/unused-macro-rules-malformed-rule.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules-malformed-rule.rs rename to tests/ui/lint/unused/unused-macro-rules-malformed-rule.rs diff --git a/src/test/ui/lint/unused/unused-macro-rules-malformed-rule.stderr b/tests/ui/lint/unused/unused-macro-rules-malformed-rule.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules-malformed-rule.stderr rename to tests/ui/lint/unused/unused-macro-rules-malformed-rule.stderr diff --git a/src/test/ui/lint/unused/unused-macro-rules.rs b/tests/ui/lint/unused/unused-macro-rules.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules.rs rename to tests/ui/lint/unused/unused-macro-rules.rs diff --git a/src/test/ui/lint/unused/unused-macro-rules.stderr b/tests/ui/lint/unused/unused-macro-rules.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macro-rules.stderr rename to tests/ui/lint/unused/unused-macro-rules.stderr diff --git a/src/test/ui/lint/unused/unused-macro-with-bad-frag-spec.rs b/tests/ui/lint/unused/unused-macro-with-bad-frag-spec.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macro-with-bad-frag-spec.rs rename to tests/ui/lint/unused/unused-macro-with-bad-frag-spec.rs diff --git a/src/test/ui/lint/unused/unused-macro-with-bad-frag-spec.stderr b/tests/ui/lint/unused/unused-macro-with-bad-frag-spec.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macro-with-bad-frag-spec.stderr rename to tests/ui/lint/unused/unused-macro-with-bad-frag-spec.stderr diff --git a/src/test/ui/lint/unused/unused-macro-with-follow-violation.rs b/tests/ui/lint/unused/unused-macro-with-follow-violation.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macro-with-follow-violation.rs rename to tests/ui/lint/unused/unused-macro-with-follow-violation.rs diff --git a/src/test/ui/lint/unused/unused-macro-with-follow-violation.stderr b/tests/ui/lint/unused/unused-macro-with-follow-violation.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macro-with-follow-violation.stderr rename to tests/ui/lint/unused/unused-macro-with-follow-violation.stderr diff --git a/src/test/ui/lint/unused/unused-macros-decl.rs b/tests/ui/lint/unused/unused-macros-decl.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macros-decl.rs rename to tests/ui/lint/unused/unused-macros-decl.rs diff --git a/src/test/ui/lint/unused/unused-macros-decl.stderr b/tests/ui/lint/unused/unused-macros-decl.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macros-decl.stderr rename to tests/ui/lint/unused/unused-macros-decl.stderr diff --git a/src/test/ui/lint/unused/unused-macros-malformed-rule.rs b/tests/ui/lint/unused/unused-macros-malformed-rule.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macros-malformed-rule.rs rename to tests/ui/lint/unused/unused-macros-malformed-rule.rs diff --git a/src/test/ui/lint/unused/unused-macros-malformed-rule.stderr b/tests/ui/lint/unused/unused-macros-malformed-rule.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macros-malformed-rule.stderr rename to tests/ui/lint/unused/unused-macros-malformed-rule.stderr diff --git a/src/test/ui/lint/unused/unused-macros.rs b/tests/ui/lint/unused/unused-macros.rs similarity index 100% rename from src/test/ui/lint/unused/unused-macros.rs rename to tests/ui/lint/unused/unused-macros.rs diff --git a/src/test/ui/lint/unused/unused-macros.stderr b/tests/ui/lint/unused/unused-macros.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-macros.stderr rename to tests/ui/lint/unused/unused-macros.stderr diff --git a/src/test/ui/lint/unused/unused-mut-warning-captured-var.fixed b/tests/ui/lint/unused/unused-mut-warning-captured-var.fixed similarity index 100% rename from src/test/ui/lint/unused/unused-mut-warning-captured-var.fixed rename to tests/ui/lint/unused/unused-mut-warning-captured-var.fixed diff --git a/src/test/ui/lint/unused/unused-mut-warning-captured-var.rs b/tests/ui/lint/unused/unused-mut-warning-captured-var.rs similarity index 100% rename from src/test/ui/lint/unused/unused-mut-warning-captured-var.rs rename to tests/ui/lint/unused/unused-mut-warning-captured-var.rs diff --git a/src/test/ui/lint/unused/unused-mut-warning-captured-var.stderr b/tests/ui/lint/unused/unused-mut-warning-captured-var.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-mut-warning-captured-var.stderr rename to tests/ui/lint/unused/unused-mut-warning-captured-var.stderr diff --git a/src/test/ui/lint/unused/unused-result.rs b/tests/ui/lint/unused/unused-result.rs similarity index 100% rename from src/test/ui/lint/unused/unused-result.rs rename to tests/ui/lint/unused/unused-result.rs diff --git a/src/test/ui/lint/unused/unused-result.stderr b/tests/ui/lint/unused/unused-result.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-result.stderr rename to tests/ui/lint/unused/unused-result.stderr diff --git a/src/test/ui/lint/unused/unused-supertrait.rs b/tests/ui/lint/unused/unused-supertrait.rs similarity index 100% rename from src/test/ui/lint/unused/unused-supertrait.rs rename to tests/ui/lint/unused/unused-supertrait.rs diff --git a/src/test/ui/lint/unused/unused-supertrait.stderr b/tests/ui/lint/unused/unused-supertrait.stderr similarity index 100% rename from src/test/ui/lint/unused/unused-supertrait.stderr rename to tests/ui/lint/unused/unused-supertrait.stderr diff --git a/src/test/ui/lint/unused/unused_attributes-must_use.rs b/tests/ui/lint/unused/unused_attributes-must_use.rs similarity index 100% rename from src/test/ui/lint/unused/unused_attributes-must_use.rs rename to tests/ui/lint/unused/unused_attributes-must_use.rs diff --git a/src/test/ui/lint/unused/unused_attributes-must_use.stderr b/tests/ui/lint/unused/unused_attributes-must_use.stderr similarity index 100% rename from src/test/ui/lint/unused/unused_attributes-must_use.stderr rename to tests/ui/lint/unused/unused_attributes-must_use.stderr diff --git a/src/test/ui/lint/unused/useless-comment.rs b/tests/ui/lint/unused/useless-comment.rs similarity index 100% rename from src/test/ui/lint/unused/useless-comment.rs rename to tests/ui/lint/unused/useless-comment.rs diff --git a/src/test/ui/lint/unused/useless-comment.stderr b/tests/ui/lint/unused/useless-comment.stderr similarity index 100% rename from src/test/ui/lint/unused/useless-comment.stderr rename to tests/ui/lint/unused/useless-comment.stderr diff --git a/src/test/ui/lint/unused_braces.fixed b/tests/ui/lint/unused_braces.fixed similarity index 100% rename from src/test/ui/lint/unused_braces.fixed rename to tests/ui/lint/unused_braces.fixed diff --git a/src/test/ui/lint/unused_braces.rs b/tests/ui/lint/unused_braces.rs similarity index 100% rename from src/test/ui/lint/unused_braces.rs rename to tests/ui/lint/unused_braces.rs diff --git a/src/test/ui/lint/unused_braces.stderr b/tests/ui/lint/unused_braces.stderr similarity index 100% rename from src/test/ui/lint/unused_braces.stderr rename to tests/ui/lint/unused_braces.stderr diff --git a/src/test/ui/lint/unused_braces_borrow.fixed b/tests/ui/lint/unused_braces_borrow.fixed similarity index 100% rename from src/test/ui/lint/unused_braces_borrow.fixed rename to tests/ui/lint/unused_braces_borrow.fixed diff --git a/src/test/ui/lint/unused_braces_borrow.rs b/tests/ui/lint/unused_braces_borrow.rs similarity index 100% rename from src/test/ui/lint/unused_braces_borrow.rs rename to tests/ui/lint/unused_braces_borrow.rs diff --git a/src/test/ui/lint/unused_braces_borrow.stderr b/tests/ui/lint/unused_braces_borrow.stderr similarity index 100% rename from src/test/ui/lint/unused_braces_borrow.stderr rename to tests/ui/lint/unused_braces_borrow.stderr diff --git a/src/test/ui/lint/unused_braces_macro.rs b/tests/ui/lint/unused_braces_macro.rs similarity index 100% rename from src/test/ui/lint/unused_braces_macro.rs rename to tests/ui/lint/unused_braces_macro.rs diff --git a/src/test/ui/lint/unused_import_warning_issue_45268.rs b/tests/ui/lint/unused_import_warning_issue_45268.rs similarity index 100% rename from src/test/ui/lint/unused_import_warning_issue_45268.rs rename to tests/ui/lint/unused_import_warning_issue_45268.rs diff --git a/src/test/ui/lint/unused_import_warning_issue_45268.stderr b/tests/ui/lint/unused_import_warning_issue_45268.stderr similarity index 100% rename from src/test/ui/lint/unused_import_warning_issue_45268.stderr rename to tests/ui/lint/unused_import_warning_issue_45268.stderr diff --git a/src/test/ui/lint/unused_labels.rs b/tests/ui/lint/unused_labels.rs similarity index 100% rename from src/test/ui/lint/unused_labels.rs rename to tests/ui/lint/unused_labels.rs diff --git a/src/test/ui/lint/unused_labels.stderr b/tests/ui/lint/unused_labels.stderr similarity index 100% rename from src/test/ui/lint/unused_labels.stderr rename to tests/ui/lint/unused_labels.stderr diff --git a/src/test/ui/lint/unused_parens_json_suggestion.fixed b/tests/ui/lint/unused_parens_json_suggestion.fixed similarity index 100% rename from src/test/ui/lint/unused_parens_json_suggestion.fixed rename to tests/ui/lint/unused_parens_json_suggestion.fixed diff --git a/src/test/ui/lint/unused_parens_json_suggestion.rs b/tests/ui/lint/unused_parens_json_suggestion.rs similarity index 100% rename from src/test/ui/lint/unused_parens_json_suggestion.rs rename to tests/ui/lint/unused_parens_json_suggestion.rs diff --git a/src/test/ui/lint/unused_parens_json_suggestion.stderr b/tests/ui/lint/unused_parens_json_suggestion.stderr similarity index 100% rename from src/test/ui/lint/unused_parens_json_suggestion.stderr rename to tests/ui/lint/unused_parens_json_suggestion.stderr diff --git a/src/test/ui/lint/unused_parens_multibyte_recovery.rs b/tests/ui/lint/unused_parens_multibyte_recovery.rs similarity index 100% rename from src/test/ui/lint/unused_parens_multibyte_recovery.rs rename to tests/ui/lint/unused_parens_multibyte_recovery.rs diff --git a/src/test/ui/lint/unused_parens_multibyte_recovery.stderr b/tests/ui/lint/unused_parens_multibyte_recovery.stderr similarity index 100% rename from src/test/ui/lint/unused_parens_multibyte_recovery.stderr rename to tests/ui/lint/unused_parens_multibyte_recovery.stderr diff --git a/src/test/ui/lint/unused_parens_remove_json_suggestion.fixed b/tests/ui/lint/unused_parens_remove_json_suggestion.fixed similarity index 100% rename from src/test/ui/lint/unused_parens_remove_json_suggestion.fixed rename to tests/ui/lint/unused_parens_remove_json_suggestion.fixed diff --git a/src/test/ui/lint/unused_parens_remove_json_suggestion.rs b/tests/ui/lint/unused_parens_remove_json_suggestion.rs similarity index 100% rename from src/test/ui/lint/unused_parens_remove_json_suggestion.rs rename to tests/ui/lint/unused_parens_remove_json_suggestion.rs diff --git a/src/test/ui/lint/unused_parens_remove_json_suggestion.stderr b/tests/ui/lint/unused_parens_remove_json_suggestion.stderr similarity index 100% rename from src/test/ui/lint/unused_parens_remove_json_suggestion.stderr rename to tests/ui/lint/unused_parens_remove_json_suggestion.stderr diff --git a/src/test/ui/lint/unused_variables-issue-82488.fixed b/tests/ui/lint/unused_variables-issue-82488.fixed similarity index 100% rename from src/test/ui/lint/unused_variables-issue-82488.fixed rename to tests/ui/lint/unused_variables-issue-82488.fixed diff --git a/src/test/ui/lint/unused_variables-issue-82488.rs b/tests/ui/lint/unused_variables-issue-82488.rs similarity index 100% rename from src/test/ui/lint/unused_variables-issue-82488.rs rename to tests/ui/lint/unused_variables-issue-82488.rs diff --git a/src/test/ui/lint/unused_variables-issue-82488.stderr b/tests/ui/lint/unused_variables-issue-82488.stderr similarity index 100% rename from src/test/ui/lint/unused_variables-issue-82488.stderr rename to tests/ui/lint/unused_variables-issue-82488.stderr diff --git a/src/test/ui/lint/use-redundant.rs b/tests/ui/lint/use-redundant.rs similarity index 100% rename from src/test/ui/lint/use-redundant.rs rename to tests/ui/lint/use-redundant.rs diff --git a/src/test/ui/lint/use-redundant.stderr b/tests/ui/lint/use-redundant.stderr similarity index 100% rename from src/test/ui/lint/use-redundant.stderr rename to tests/ui/lint/use-redundant.stderr diff --git a/src/test/ui/lint/use_suggestion_json.rs b/tests/ui/lint/use_suggestion_json.rs similarity index 100% rename from src/test/ui/lint/use_suggestion_json.rs rename to tests/ui/lint/use_suggestion_json.rs diff --git a/src/test/ui/lint/use_suggestion_json.stderr b/tests/ui/lint/use_suggestion_json.stderr similarity index 100% rename from src/test/ui/lint/use_suggestion_json.stderr rename to tests/ui/lint/use_suggestion_json.stderr diff --git a/src/test/ui/lint/warn-ctypes-inhibit.rs b/tests/ui/lint/warn-ctypes-inhibit.rs similarity index 100% rename from src/test/ui/lint/warn-ctypes-inhibit.rs rename to tests/ui/lint/warn-ctypes-inhibit.rs diff --git a/src/test/ui/lint/warn-path-statement.rs b/tests/ui/lint/warn-path-statement.rs similarity index 100% rename from src/test/ui/lint/warn-path-statement.rs rename to tests/ui/lint/warn-path-statement.rs diff --git a/src/test/ui/lint/warn-path-statement.stderr b/tests/ui/lint/warn-path-statement.stderr similarity index 100% rename from src/test/ui/lint/warn-path-statement.stderr rename to tests/ui/lint/warn-path-statement.stderr diff --git a/src/test/ui/lint/warn-unused-inline-on-fn-prototypes.rs b/tests/ui/lint/warn-unused-inline-on-fn-prototypes.rs similarity index 100% rename from src/test/ui/lint/warn-unused-inline-on-fn-prototypes.rs rename to tests/ui/lint/warn-unused-inline-on-fn-prototypes.rs diff --git a/src/test/ui/lint/warn-unused-inline-on-fn-prototypes.stderr b/tests/ui/lint/warn-unused-inline-on-fn-prototypes.stderr similarity index 100% rename from src/test/ui/lint/warn-unused-inline-on-fn-prototypes.stderr rename to tests/ui/lint/warn-unused-inline-on-fn-prototypes.stderr diff --git a/src/test/ui/list.rs b/tests/ui/list.rs similarity index 100% rename from src/test/ui/list.rs rename to tests/ui/list.rs diff --git a/src/test/ui/liveness/liveness-asm.rs b/tests/ui/liveness/liveness-asm.rs similarity index 100% rename from src/test/ui/liveness/liveness-asm.rs rename to tests/ui/liveness/liveness-asm.rs diff --git a/src/test/ui/liveness/liveness-asm.stderr b/tests/ui/liveness/liveness-asm.stderr similarity index 100% rename from src/test/ui/liveness/liveness-asm.stderr rename to tests/ui/liveness/liveness-asm.stderr diff --git a/src/test/ui/liveness/liveness-assign-imm-local-after-ret.rs b/tests/ui/liveness/liveness-assign-imm-local-after-ret.rs similarity index 100% rename from src/test/ui/liveness/liveness-assign-imm-local-after-ret.rs rename to tests/ui/liveness/liveness-assign-imm-local-after-ret.rs diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.rs b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.rs similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.rs rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.rs diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.stderr b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.stderr similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.stderr rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-loop.stderr diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.rs diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.stderr b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.stderr similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.stderr rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-in-op-eq.stderr diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.rs b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.rs similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.rs rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.rs diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.stderr b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.stderr similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.stderr rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.stderr diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.rs b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.rs similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.rs rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.rs diff --git a/src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.stderr b/tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.stderr similarity index 100% rename from src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.stderr rename to tests/ui/liveness/liveness-assign/liveness-assign-imm-local-with-init.stderr diff --git a/src/test/ui/liveness/liveness-closure-require-ret.rs b/tests/ui/liveness/liveness-closure-require-ret.rs similarity index 100% rename from src/test/ui/liveness/liveness-closure-require-ret.rs rename to tests/ui/liveness/liveness-closure-require-ret.rs diff --git a/src/test/ui/liveness/liveness-closure-require-ret.stderr b/tests/ui/liveness/liveness-closure-require-ret.stderr similarity index 100% rename from src/test/ui/liveness/liveness-closure-require-ret.stderr rename to tests/ui/liveness/liveness-closure-require-ret.stderr diff --git a/src/test/ui/liveness/liveness-consts.rs b/tests/ui/liveness/liveness-consts.rs similarity index 100% rename from src/test/ui/liveness/liveness-consts.rs rename to tests/ui/liveness/liveness-consts.rs diff --git a/src/test/ui/liveness/liveness-consts.stderr b/tests/ui/liveness/liveness-consts.stderr similarity index 100% rename from src/test/ui/liveness/liveness-consts.stderr rename to tests/ui/liveness/liveness-consts.stderr diff --git a/src/test/ui/liveness/liveness-dead.rs b/tests/ui/liveness/liveness-dead.rs similarity index 100% rename from src/test/ui/liveness/liveness-dead.rs rename to tests/ui/liveness/liveness-dead.rs diff --git a/src/test/ui/liveness/liveness-dead.stderr b/tests/ui/liveness/liveness-dead.stderr similarity index 100% rename from src/test/ui/liveness/liveness-dead.stderr rename to tests/ui/liveness/liveness-dead.stderr diff --git a/src/test/ui/liveness/liveness-derive.rs b/tests/ui/liveness/liveness-derive.rs similarity index 100% rename from src/test/ui/liveness/liveness-derive.rs rename to tests/ui/liveness/liveness-derive.rs diff --git a/src/test/ui/liveness/liveness-derive.stderr b/tests/ui/liveness/liveness-derive.stderr similarity index 100% rename from src/test/ui/liveness/liveness-derive.stderr rename to tests/ui/liveness/liveness-derive.stderr diff --git a/src/test/ui/liveness/liveness-forgot-ret.rs b/tests/ui/liveness/liveness-forgot-ret.rs similarity index 100% rename from src/test/ui/liveness/liveness-forgot-ret.rs rename to tests/ui/liveness/liveness-forgot-ret.rs diff --git a/src/test/ui/liveness/liveness-forgot-ret.stderr b/tests/ui/liveness/liveness-forgot-ret.stderr similarity index 100% rename from src/test/ui/liveness/liveness-forgot-ret.stderr rename to tests/ui/liveness/liveness-forgot-ret.stderr diff --git a/src/test/ui/liveness/liveness-issue-2163.rs b/tests/ui/liveness/liveness-issue-2163.rs similarity index 100% rename from src/test/ui/liveness/liveness-issue-2163.rs rename to tests/ui/liveness/liveness-issue-2163.rs diff --git a/src/test/ui/liveness/liveness-issue-2163.stderr b/tests/ui/liveness/liveness-issue-2163.stderr similarity index 100% rename from src/test/ui/liveness/liveness-issue-2163.stderr rename to tests/ui/liveness/liveness-issue-2163.stderr diff --git a/src/test/ui/liveness/liveness-missing-ret2.rs b/tests/ui/liveness/liveness-missing-ret2.rs similarity index 100% rename from src/test/ui/liveness/liveness-missing-ret2.rs rename to tests/ui/liveness/liveness-missing-ret2.rs diff --git a/src/test/ui/liveness/liveness-missing-ret2.stderr b/tests/ui/liveness/liveness-missing-ret2.stderr similarity index 100% rename from src/test/ui/liveness/liveness-missing-ret2.stderr rename to tests/ui/liveness/liveness-missing-ret2.stderr diff --git a/src/test/ui/liveness/liveness-move-call-arg.rs b/tests/ui/liveness/liveness-move-call-arg.rs similarity index 100% rename from src/test/ui/liveness/liveness-move-call-arg.rs rename to tests/ui/liveness/liveness-move-call-arg.rs diff --git a/src/test/ui/liveness/liveness-move-call-arg.stderr b/tests/ui/liveness/liveness-move-call-arg.stderr similarity index 100% rename from src/test/ui/liveness/liveness-move-call-arg.stderr rename to tests/ui/liveness/liveness-move-call-arg.stderr diff --git a/src/test/ui/liveness/liveness-move-in-loop.rs b/tests/ui/liveness/liveness-move-in-loop.rs similarity index 100% rename from src/test/ui/liveness/liveness-move-in-loop.rs rename to tests/ui/liveness/liveness-move-in-loop.rs diff --git a/src/test/ui/liveness/liveness-move-in-loop.stderr b/tests/ui/liveness/liveness-move-in-loop.stderr similarity index 100% rename from src/test/ui/liveness/liveness-move-in-loop.stderr rename to tests/ui/liveness/liveness-move-in-loop.stderr diff --git a/src/test/ui/liveness/liveness-move-in-while.rs b/tests/ui/liveness/liveness-move-in-while.rs similarity index 100% rename from src/test/ui/liveness/liveness-move-in-while.rs rename to tests/ui/liveness/liveness-move-in-while.rs diff --git a/src/test/ui/liveness/liveness-move-in-while.stderr b/tests/ui/liveness/liveness-move-in-while.stderr similarity index 100% rename from src/test/ui/liveness/liveness-move-in-while.stderr rename to tests/ui/liveness/liveness-move-in-while.stderr diff --git a/src/test/ui/liveness/liveness-return-last-stmt-semi.rs b/tests/ui/liveness/liveness-return-last-stmt-semi.rs similarity index 100% rename from src/test/ui/liveness/liveness-return-last-stmt-semi.rs rename to tests/ui/liveness/liveness-return-last-stmt-semi.rs diff --git a/src/test/ui/liveness/liveness-return-last-stmt-semi.stderr b/tests/ui/liveness/liveness-return-last-stmt-semi.stderr similarity index 100% rename from src/test/ui/liveness/liveness-return-last-stmt-semi.stderr rename to tests/ui/liveness/liveness-return-last-stmt-semi.stderr diff --git a/src/test/ui/liveness/liveness-unused.rs b/tests/ui/liveness/liveness-unused.rs similarity index 100% rename from src/test/ui/liveness/liveness-unused.rs rename to tests/ui/liveness/liveness-unused.rs diff --git a/src/test/ui/liveness/liveness-unused.stderr b/tests/ui/liveness/liveness-unused.stderr similarity index 100% rename from src/test/ui/liveness/liveness-unused.stderr rename to tests/ui/liveness/liveness-unused.stderr diff --git a/src/test/ui/liveness/liveness-upvars.rs b/tests/ui/liveness/liveness-upvars.rs similarity index 100% rename from src/test/ui/liveness/liveness-upvars.rs rename to tests/ui/liveness/liveness-upvars.rs diff --git a/src/test/ui/liveness/liveness-upvars.stderr b/tests/ui/liveness/liveness-upvars.stderr similarity index 100% rename from src/test/ui/liveness/liveness-upvars.stderr rename to tests/ui/liveness/liveness-upvars.stderr diff --git a/src/test/ui/liveness/liveness-use-after-move.rs b/tests/ui/liveness/liveness-use-after-move.rs similarity index 100% rename from src/test/ui/liveness/liveness-use-after-move.rs rename to tests/ui/liveness/liveness-use-after-move.rs diff --git a/src/test/ui/liveness/liveness-use-after-move.stderr b/tests/ui/liveness/liveness-use-after-move.stderr similarity index 100% rename from src/test/ui/liveness/liveness-use-after-move.stderr rename to tests/ui/liveness/liveness-use-after-move.stderr diff --git a/src/test/ui/liveness/liveness-use-after-send.rs b/tests/ui/liveness/liveness-use-after-send.rs similarity index 100% rename from src/test/ui/liveness/liveness-use-after-send.rs rename to tests/ui/liveness/liveness-use-after-send.rs diff --git a/src/test/ui/liveness/liveness-use-after-send.stderr b/tests/ui/liveness/liveness-use-after-send.stderr similarity index 100% rename from src/test/ui/liveness/liveness-use-after-send.stderr rename to tests/ui/liveness/liveness-use-after-send.stderr diff --git a/src/test/ui/log-err-phi.rs b/tests/ui/log-err-phi.rs similarity index 100% rename from src/test/ui/log-err-phi.rs rename to tests/ui/log-err-phi.rs diff --git a/src/test/ui/log-knows-the-names-of-variants.rs b/tests/ui/log-knows-the-names-of-variants.rs similarity index 100% rename from src/test/ui/log-knows-the-names-of-variants.rs rename to tests/ui/log-knows-the-names-of-variants.rs diff --git a/src/test/ui/log-poly.rs b/tests/ui/log-poly.rs similarity index 100% rename from src/test/ui/log-poly.rs rename to tests/ui/log-poly.rs diff --git a/src/test/ui/logging-only-prints-once.rs b/tests/ui/logging-only-prints-once.rs similarity index 100% rename from src/test/ui/logging-only-prints-once.rs rename to tests/ui/logging-only-prints-once.rs diff --git a/src/test/ui/loops/for-each-loop-panic.rs b/tests/ui/loops/for-each-loop-panic.rs similarity index 100% rename from src/test/ui/loops/for-each-loop-panic.rs rename to tests/ui/loops/for-each-loop-panic.rs diff --git a/src/test/ui/loops/issue-82916.rs b/tests/ui/loops/issue-82916.rs similarity index 100% rename from src/test/ui/loops/issue-82916.rs rename to tests/ui/loops/issue-82916.rs diff --git a/src/test/ui/loops/issue-82916.stderr b/tests/ui/loops/issue-82916.stderr similarity index 100% rename from src/test/ui/loops/issue-82916.stderr rename to tests/ui/loops/issue-82916.stderr diff --git a/src/test/ui/loops/loop-break-unsize.rs b/tests/ui/loops/loop-break-unsize.rs similarity index 100% rename from src/test/ui/loops/loop-break-unsize.rs rename to tests/ui/loops/loop-break-unsize.rs diff --git a/src/test/ui/loops/loop-break-value-no-repeat.rs b/tests/ui/loops/loop-break-value-no-repeat.rs similarity index 100% rename from src/test/ui/loops/loop-break-value-no-repeat.rs rename to tests/ui/loops/loop-break-value-no-repeat.rs diff --git a/src/test/ui/loops/loop-break-value-no-repeat.stderr b/tests/ui/loops/loop-break-value-no-repeat.stderr similarity index 100% rename from src/test/ui/loops/loop-break-value-no-repeat.stderr rename to tests/ui/loops/loop-break-value-no-repeat.stderr diff --git a/src/test/ui/loops/loop-break-value.rs b/tests/ui/loops/loop-break-value.rs similarity index 100% rename from src/test/ui/loops/loop-break-value.rs rename to tests/ui/loops/loop-break-value.rs diff --git a/src/test/ui/loops/loop-break-value.stderr b/tests/ui/loops/loop-break-value.stderr similarity index 100% rename from src/test/ui/loops/loop-break-value.stderr rename to tests/ui/loops/loop-break-value.stderr diff --git a/src/test/ui/loops/loop-labeled-break-value.rs b/tests/ui/loops/loop-labeled-break-value.rs similarity index 100% rename from src/test/ui/loops/loop-labeled-break-value.rs rename to tests/ui/loops/loop-labeled-break-value.rs diff --git a/src/test/ui/loops/loop-labeled-break-value.stderr b/tests/ui/loops/loop-labeled-break-value.stderr similarity index 100% rename from src/test/ui/loops/loop-labeled-break-value.stderr rename to tests/ui/loops/loop-labeled-break-value.stderr diff --git a/src/test/ui/loops/loop-no-implicit-break.rs b/tests/ui/loops/loop-no-implicit-break.rs similarity index 100% rename from src/test/ui/loops/loop-no-implicit-break.rs rename to tests/ui/loops/loop-no-implicit-break.rs diff --git a/src/test/ui/loops/loop-no-implicit-break.stderr b/tests/ui/loops/loop-no-implicit-break.stderr similarity index 100% rename from src/test/ui/loops/loop-no-implicit-break.stderr rename to tests/ui/loops/loop-no-implicit-break.stderr diff --git a/src/test/ui/loops/loop-proper-liveness.rs b/tests/ui/loops/loop-proper-liveness.rs similarity index 100% rename from src/test/ui/loops/loop-proper-liveness.rs rename to tests/ui/loops/loop-proper-liveness.rs diff --git a/src/test/ui/loops/loop-proper-liveness.stderr b/tests/ui/loops/loop-proper-liveness.stderr similarity index 100% rename from src/test/ui/loops/loop-proper-liveness.stderr rename to tests/ui/loops/loop-proper-liveness.stderr diff --git a/src/test/ui/loops/loop-properly-diverging-2.rs b/tests/ui/loops/loop-properly-diverging-2.rs similarity index 100% rename from src/test/ui/loops/loop-properly-diverging-2.rs rename to tests/ui/loops/loop-properly-diverging-2.rs diff --git a/src/test/ui/loops/loop-properly-diverging-2.stderr b/tests/ui/loops/loop-properly-diverging-2.stderr similarity index 100% rename from src/test/ui/loops/loop-properly-diverging-2.stderr rename to tests/ui/loops/loop-properly-diverging-2.stderr diff --git a/src/test/ui/loud_ui.rs b/tests/ui/loud_ui.rs similarity index 100% rename from src/test/ui/loud_ui.rs rename to tests/ui/loud_ui.rs diff --git a/src/test/ui/lowering/issue-96847.rs b/tests/ui/lowering/issue-96847.rs similarity index 100% rename from src/test/ui/lowering/issue-96847.rs rename to tests/ui/lowering/issue-96847.rs diff --git a/src/test/ui/lto/all-crates.rs b/tests/ui/lto/all-crates.rs similarity index 100% rename from src/test/ui/lto/all-crates.rs rename to tests/ui/lto/all-crates.rs diff --git a/src/test/ui/lto/auxiliary/debuginfo-lto-aux.rs b/tests/ui/lto/auxiliary/debuginfo-lto-aux.rs similarity index 100% rename from src/test/ui/lto/auxiliary/debuginfo-lto-aux.rs rename to tests/ui/lto/auxiliary/debuginfo-lto-aux.rs diff --git a/src/test/ui/lto/auxiliary/dylib.rs b/tests/ui/lto/auxiliary/dylib.rs similarity index 100% rename from src/test/ui/lto/auxiliary/dylib.rs rename to tests/ui/lto/auxiliary/dylib.rs diff --git a/src/test/ui/lto/auxiliary/lto-duplicate-symbols1.rs b/tests/ui/lto/auxiliary/lto-duplicate-symbols1.rs similarity index 100% rename from src/test/ui/lto/auxiliary/lto-duplicate-symbols1.rs rename to tests/ui/lto/auxiliary/lto-duplicate-symbols1.rs diff --git a/src/test/ui/lto/auxiliary/lto-duplicate-symbols2.rs b/tests/ui/lto/auxiliary/lto-duplicate-symbols2.rs similarity index 100% rename from src/test/ui/lto/auxiliary/lto-duplicate-symbols2.rs rename to tests/ui/lto/auxiliary/lto-duplicate-symbols2.rs diff --git a/src/test/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs b/tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs similarity index 100% rename from src/test/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs rename to tests/ui/lto/auxiliary/lto-rustc-loads-linker-plugin.rs diff --git a/src/test/ui/lto/auxiliary/msvc-imp-present.rs b/tests/ui/lto/auxiliary/msvc-imp-present.rs similarity index 100% rename from src/test/ui/lto/auxiliary/msvc-imp-present.rs rename to tests/ui/lto/auxiliary/msvc-imp-present.rs diff --git a/src/test/ui/lto/auxiliary/thin-lto-inlines-aux.rs b/tests/ui/lto/auxiliary/thin-lto-inlines-aux.rs similarity index 100% rename from src/test/ui/lto/auxiliary/thin-lto-inlines-aux.rs rename to tests/ui/lto/auxiliary/thin-lto-inlines-aux.rs diff --git a/src/test/ui/lto/auxiliary/thinlto-dylib.rs b/tests/ui/lto/auxiliary/thinlto-dylib.rs similarity index 100% rename from src/test/ui/lto/auxiliary/thinlto-dylib.rs rename to tests/ui/lto/auxiliary/thinlto-dylib.rs diff --git a/src/test/ui/lto/debuginfo-lto.rs b/tests/ui/lto/debuginfo-lto.rs similarity index 100% rename from src/test/ui/lto/debuginfo-lto.rs rename to tests/ui/lto/debuginfo-lto.rs diff --git a/src/test/ui/lto/dylib-works.rs b/tests/ui/lto/dylib-works.rs similarity index 100% rename from src/test/ui/lto/dylib-works.rs rename to tests/ui/lto/dylib-works.rs diff --git a/src/test/ui/lto/fat-lto.rs b/tests/ui/lto/fat-lto.rs similarity index 100% rename from src/test/ui/lto/fat-lto.rs rename to tests/ui/lto/fat-lto.rs diff --git a/src/test/ui/lto/issue-100772.rs b/tests/ui/lto/issue-100772.rs similarity index 100% rename from src/test/ui/lto/issue-100772.rs rename to tests/ui/lto/issue-100772.rs diff --git a/src/test/ui/lto/issue-105637.rs b/tests/ui/lto/issue-105637.rs similarity index 100% rename from src/test/ui/lto/issue-105637.rs rename to tests/ui/lto/issue-105637.rs diff --git a/src/test/ui/lto/issue-105637.run.stderr b/tests/ui/lto/issue-105637.run.stderr similarity index 100% rename from src/test/ui/lto/issue-105637.run.stderr rename to tests/ui/lto/issue-105637.run.stderr diff --git a/src/test/ui/lto/issue-11154.rs b/tests/ui/lto/issue-11154.rs similarity index 100% rename from src/test/ui/lto/issue-11154.rs rename to tests/ui/lto/issue-11154.rs diff --git a/src/test/ui/lto/issue-11154.stderr b/tests/ui/lto/issue-11154.stderr similarity index 100% rename from src/test/ui/lto/issue-11154.stderr rename to tests/ui/lto/issue-11154.stderr diff --git a/src/test/ui/lto/lto-and-no-bitcode-in-rlib.rs b/tests/ui/lto/lto-and-no-bitcode-in-rlib.rs similarity index 100% rename from src/test/ui/lto/lto-and-no-bitcode-in-rlib.rs rename to tests/ui/lto/lto-and-no-bitcode-in-rlib.rs diff --git a/src/test/ui/lto/lto-and-no-bitcode-in-rlib.stderr b/tests/ui/lto/lto-and-no-bitcode-in-rlib.stderr similarity index 100% rename from src/test/ui/lto/lto-and-no-bitcode-in-rlib.stderr rename to tests/ui/lto/lto-and-no-bitcode-in-rlib.stderr diff --git a/src/test/ui/lto/lto-duplicate-symbols.rs b/tests/ui/lto/lto-duplicate-symbols.rs similarity index 100% rename from src/test/ui/lto/lto-duplicate-symbols.rs rename to tests/ui/lto/lto-duplicate-symbols.rs diff --git a/src/test/ui/lto/lto-duplicate-symbols.stderr b/tests/ui/lto/lto-duplicate-symbols.stderr similarity index 100% rename from src/test/ui/lto/lto-duplicate-symbols.stderr rename to tests/ui/lto/lto-duplicate-symbols.stderr diff --git a/src/test/ui/lto/lto-many-codegen-units.rs b/tests/ui/lto/lto-many-codegen-units.rs similarity index 100% rename from src/test/ui/lto/lto-many-codegen-units.rs rename to tests/ui/lto/lto-many-codegen-units.rs diff --git a/src/test/ui/lto/lto-opt-level-s.rs b/tests/ui/lto/lto-opt-level-s.rs similarity index 100% rename from src/test/ui/lto/lto-opt-level-s.rs rename to tests/ui/lto/lto-opt-level-s.rs diff --git a/src/test/ui/lto/lto-opt-level-z.rs b/tests/ui/lto/lto-opt-level-z.rs similarity index 100% rename from src/test/ui/lto/lto-opt-level-z.rs rename to tests/ui/lto/lto-opt-level-z.rs diff --git a/src/test/ui/lto/lto-rustc-loads-linker-plugin.rs b/tests/ui/lto/lto-rustc-loads-linker-plugin.rs similarity index 100% rename from src/test/ui/lto/lto-rustc-loads-linker-plugin.rs rename to tests/ui/lto/lto-rustc-loads-linker-plugin.rs diff --git a/src/test/ui/lto/lto-still-runs-thread-dtors.rs b/tests/ui/lto/lto-still-runs-thread-dtors.rs similarity index 100% rename from src/test/ui/lto/lto-still-runs-thread-dtors.rs rename to tests/ui/lto/lto-still-runs-thread-dtors.rs diff --git a/src/test/ui/lto/lto-thin-rustc-loads-linker-plugin.rs b/tests/ui/lto/lto-thin-rustc-loads-linker-plugin.rs similarity index 100% rename from src/test/ui/lto/lto-thin-rustc-loads-linker-plugin.rs rename to tests/ui/lto/lto-thin-rustc-loads-linker-plugin.rs diff --git a/src/test/ui/lto/msvc-imp-present.rs b/tests/ui/lto/msvc-imp-present.rs similarity index 100% rename from src/test/ui/lto/msvc-imp-present.rs rename to tests/ui/lto/msvc-imp-present.rs diff --git a/src/test/ui/lto/thin-lto-global-allocator.rs b/tests/ui/lto/thin-lto-global-allocator.rs similarity index 100% rename from src/test/ui/lto/thin-lto-global-allocator.rs rename to tests/ui/lto/thin-lto-global-allocator.rs diff --git a/src/test/ui/lto/thin-lto-inlines.rs b/tests/ui/lto/thin-lto-inlines.rs similarity index 100% rename from src/test/ui/lto/thin-lto-inlines.rs rename to tests/ui/lto/thin-lto-inlines.rs diff --git a/src/test/ui/lto/thin-lto-inlines2.rs b/tests/ui/lto/thin-lto-inlines2.rs similarity index 100% rename from src/test/ui/lto/thin-lto-inlines2.rs rename to tests/ui/lto/thin-lto-inlines2.rs diff --git a/src/test/ui/lto/weak-works.rs b/tests/ui/lto/weak-works.rs similarity index 100% rename from src/test/ui/lto/weak-works.rs rename to tests/ui/lto/weak-works.rs diff --git a/src/test/ui/lub-glb/empty-binder-future-compat.rs b/tests/ui/lub-glb/empty-binder-future-compat.rs similarity index 100% rename from src/test/ui/lub-glb/empty-binder-future-compat.rs rename to tests/ui/lub-glb/empty-binder-future-compat.rs diff --git a/src/test/ui/lub-glb/empty-binders-err.rs b/tests/ui/lub-glb/empty-binders-err.rs similarity index 100% rename from src/test/ui/lub-glb/empty-binders-err.rs rename to tests/ui/lub-glb/empty-binders-err.rs diff --git a/src/test/ui/lub-glb/empty-binders-err.stderr b/tests/ui/lub-glb/empty-binders-err.stderr similarity index 100% rename from src/test/ui/lub-glb/empty-binders-err.stderr rename to tests/ui/lub-glb/empty-binders-err.stderr diff --git a/src/test/ui/lub-glb/empty-binders.rs b/tests/ui/lub-glb/empty-binders.rs similarity index 100% rename from src/test/ui/lub-glb/empty-binders.rs rename to tests/ui/lub-glb/empty-binders.rs diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-eq.rs b/tests/ui/lub-glb/old-lub-glb-hr-eq.rs similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-eq.rs rename to tests/ui/lub-glb/old-lub-glb-hr-eq.rs diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq1.baseleak.stderr b/tests/ui/lub-glb/old-lub-glb-hr-noteq1.baseleak.stderr similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq1.baseleak.stderr rename to tests/ui/lub-glb/old-lub-glb-hr-noteq1.baseleak.stderr diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq1.basenoleak.stderr b/tests/ui/lub-glb/old-lub-glb-hr-noteq1.basenoleak.stderr similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq1.basenoleak.stderr rename to tests/ui/lub-glb/old-lub-glb-hr-noteq1.basenoleak.stderr diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq1.leak.stderr b/tests/ui/lub-glb/old-lub-glb-hr-noteq1.leak.stderr similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq1.leak.stderr rename to tests/ui/lub-glb/old-lub-glb-hr-noteq1.leak.stderr diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq1.noleak.stderr b/tests/ui/lub-glb/old-lub-glb-hr-noteq1.noleak.stderr similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq1.noleak.stderr rename to tests/ui/lub-glb/old-lub-glb-hr-noteq1.noleak.stderr diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq1.rs b/tests/ui/lub-glb/old-lub-glb-hr-noteq1.rs similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq1.rs rename to tests/ui/lub-glb/old-lub-glb-hr-noteq1.rs diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq2.leak.stderr b/tests/ui/lub-glb/old-lub-glb-hr-noteq2.leak.stderr similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq2.leak.stderr rename to tests/ui/lub-glb/old-lub-glb-hr-noteq2.leak.stderr diff --git a/src/test/ui/lub-glb/old-lub-glb-hr-noteq2.rs b/tests/ui/lub-glb/old-lub-glb-hr-noteq2.rs similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-hr-noteq2.rs rename to tests/ui/lub-glb/old-lub-glb-hr-noteq2.rs diff --git a/src/test/ui/lub-glb/old-lub-glb-object.rs b/tests/ui/lub-glb/old-lub-glb-object.rs similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-object.rs rename to tests/ui/lub-glb/old-lub-glb-object.rs diff --git a/src/test/ui/lub-glb/old-lub-glb-object.stderr b/tests/ui/lub-glb/old-lub-glb-object.stderr similarity index 100% rename from src/test/ui/lub-glb/old-lub-glb-object.stderr rename to tests/ui/lub-glb/old-lub-glb-object.stderr diff --git a/src/test/ui/macro-quote-test.rs b/tests/ui/macro-quote-test.rs similarity index 100% rename from src/test/ui/macro-quote-test.rs rename to tests/ui/macro-quote-test.rs diff --git a/src/test/ui/macro_backtrace/auxiliary/ping.rs b/tests/ui/macro_backtrace/auxiliary/ping.rs similarity index 100% rename from src/test/ui/macro_backtrace/auxiliary/ping.rs rename to tests/ui/macro_backtrace/auxiliary/ping.rs diff --git a/src/test/ui/macro_backtrace/main.-Zmacro-backtrace.stderr b/tests/ui/macro_backtrace/main.-Zmacro-backtrace.stderr similarity index 100% rename from src/test/ui/macro_backtrace/main.-Zmacro-backtrace.stderr rename to tests/ui/macro_backtrace/main.-Zmacro-backtrace.stderr diff --git a/src/test/ui/macro_backtrace/main.default.stderr b/tests/ui/macro_backtrace/main.default.stderr similarity index 100% rename from src/test/ui/macro_backtrace/main.default.stderr rename to tests/ui/macro_backtrace/main.default.stderr diff --git a/src/test/ui/macro_backtrace/main.rs b/tests/ui/macro_backtrace/main.rs similarity index 100% rename from src/test/ui/macro_backtrace/main.rs rename to tests/ui/macro_backtrace/main.rs diff --git a/src/test/ui/macros/ambiguity-legacy-vs-modern.rs b/tests/ui/macros/ambiguity-legacy-vs-modern.rs similarity index 100% rename from src/test/ui/macros/ambiguity-legacy-vs-modern.rs rename to tests/ui/macros/ambiguity-legacy-vs-modern.rs diff --git a/src/test/ui/macros/ambiguity-legacy-vs-modern.stderr b/tests/ui/macros/ambiguity-legacy-vs-modern.stderr similarity index 100% rename from src/test/ui/macros/ambiguity-legacy-vs-modern.stderr rename to tests/ui/macros/ambiguity-legacy-vs-modern.stderr diff --git a/src/test/ui/macros/assert-as-macro.rs b/tests/ui/macros/assert-as-macro.rs similarity index 100% rename from src/test/ui/macros/assert-as-macro.rs rename to tests/ui/macros/assert-as-macro.rs diff --git a/src/test/ui/macros/assert-eq-macro-msg.rs b/tests/ui/macros/assert-eq-macro-msg.rs similarity index 100% rename from src/test/ui/macros/assert-eq-macro-msg.rs rename to tests/ui/macros/assert-eq-macro-msg.rs diff --git a/src/test/ui/macros/assert-eq-macro-panic.rs b/tests/ui/macros/assert-eq-macro-panic.rs similarity index 100% rename from src/test/ui/macros/assert-eq-macro-panic.rs rename to tests/ui/macros/assert-eq-macro-panic.rs diff --git a/src/test/ui/macros/assert-eq-macro-success.rs b/tests/ui/macros/assert-eq-macro-success.rs similarity index 100% rename from src/test/ui/macros/assert-eq-macro-success.rs rename to tests/ui/macros/assert-eq-macro-success.rs diff --git a/src/test/ui/macros/assert-eq-macro-unsized.rs b/tests/ui/macros/assert-eq-macro-unsized.rs similarity index 100% rename from src/test/ui/macros/assert-eq-macro-unsized.rs rename to tests/ui/macros/assert-eq-macro-unsized.rs diff --git a/src/test/ui/macros/assert-format-lazy.rs b/tests/ui/macros/assert-format-lazy.rs similarity index 100% rename from src/test/ui/macros/assert-format-lazy.rs rename to tests/ui/macros/assert-format-lazy.rs diff --git a/src/test/ui/macros/assert-macro-explicit.rs b/tests/ui/macros/assert-macro-explicit.rs similarity index 100% rename from src/test/ui/macros/assert-macro-explicit.rs rename to tests/ui/macros/assert-macro-explicit.rs diff --git a/src/test/ui/macros/assert-macro-fmt.rs b/tests/ui/macros/assert-macro-fmt.rs similarity index 100% rename from src/test/ui/macros/assert-macro-fmt.rs rename to tests/ui/macros/assert-macro-fmt.rs diff --git a/src/test/ui/macros/assert-macro-owned.rs b/tests/ui/macros/assert-macro-owned.rs similarity index 100% rename from src/test/ui/macros/assert-macro-owned.rs rename to tests/ui/macros/assert-macro-owned.rs diff --git a/src/test/ui/macros/assert-macro-static.rs b/tests/ui/macros/assert-macro-static.rs similarity index 100% rename from src/test/ui/macros/assert-macro-static.rs rename to tests/ui/macros/assert-macro-static.rs diff --git a/src/test/ui/macros/assert-matches-macro-msg.rs b/tests/ui/macros/assert-matches-macro-msg.rs similarity index 100% rename from src/test/ui/macros/assert-matches-macro-msg.rs rename to tests/ui/macros/assert-matches-macro-msg.rs diff --git a/src/test/ui/macros/assert-ne-macro-msg.rs b/tests/ui/macros/assert-ne-macro-msg.rs similarity index 100% rename from src/test/ui/macros/assert-ne-macro-msg.rs rename to tests/ui/macros/assert-ne-macro-msg.rs diff --git a/src/test/ui/macros/assert-ne-macro-panic.rs b/tests/ui/macros/assert-ne-macro-panic.rs similarity index 100% rename from src/test/ui/macros/assert-ne-macro-panic.rs rename to tests/ui/macros/assert-ne-macro-panic.rs diff --git a/src/test/ui/macros/assert-ne-macro-success.rs b/tests/ui/macros/assert-ne-macro-success.rs similarity index 100% rename from src/test/ui/macros/assert-ne-macro-success.rs rename to tests/ui/macros/assert-ne-macro-success.rs diff --git a/src/test/ui/macros/assert-ne-macro-unsized.rs b/tests/ui/macros/assert-ne-macro-unsized.rs similarity index 100% rename from src/test/ui/macros/assert-ne-macro-unsized.rs rename to tests/ui/macros/assert-ne-macro-unsized.rs diff --git a/src/test/ui/macros/assert-trailing-junk.rs b/tests/ui/macros/assert-trailing-junk.rs similarity index 100% rename from src/test/ui/macros/assert-trailing-junk.rs rename to tests/ui/macros/assert-trailing-junk.rs diff --git a/src/test/ui/macros/assert-trailing-junk.with-generic-asset.stderr b/tests/ui/macros/assert-trailing-junk.with-generic-asset.stderr similarity index 100% rename from src/test/ui/macros/assert-trailing-junk.with-generic-asset.stderr rename to tests/ui/macros/assert-trailing-junk.with-generic-asset.stderr diff --git a/src/test/ui/macros/assert-trailing-junk.without-generic-asset.stderr b/tests/ui/macros/assert-trailing-junk.without-generic-asset.stderr similarity index 100% rename from src/test/ui/macros/assert-trailing-junk.without-generic-asset.stderr rename to tests/ui/macros/assert-trailing-junk.without-generic-asset.stderr diff --git a/src/test/ui/macros/assert.rs b/tests/ui/macros/assert.rs similarity index 100% rename from src/test/ui/macros/assert.rs rename to tests/ui/macros/assert.rs diff --git a/src/test/ui/macros/assert.with-generic-asset.stderr b/tests/ui/macros/assert.with-generic-asset.stderr similarity index 100% rename from src/test/ui/macros/assert.with-generic-asset.stderr rename to tests/ui/macros/assert.with-generic-asset.stderr diff --git a/src/test/ui/macros/assert.without-generic-asset.stderr b/tests/ui/macros/assert.without-generic-asset.stderr similarity index 100% rename from src/test/ui/macros/assert.without-generic-asset.stderr rename to tests/ui/macros/assert.without-generic-asset.stderr diff --git a/src/test/ui/macros/attr-empty-expr.rs b/tests/ui/macros/attr-empty-expr.rs similarity index 100% rename from src/test/ui/macros/attr-empty-expr.rs rename to tests/ui/macros/attr-empty-expr.rs diff --git a/src/test/ui/macros/attr-empty-expr.stderr b/tests/ui/macros/attr-empty-expr.stderr similarity index 100% rename from src/test/ui/macros/attr-empty-expr.stderr rename to tests/ui/macros/attr-empty-expr.stderr diff --git a/src/test/ui/macros/attr-from-macro.rs b/tests/ui/macros/attr-from-macro.rs similarity index 100% rename from src/test/ui/macros/attr-from-macro.rs rename to tests/ui/macros/attr-from-macro.rs diff --git a/src/test/ui/macros/auxiliary/attr-from-macro.rs b/tests/ui/macros/auxiliary/attr-from-macro.rs similarity index 100% rename from src/test/ui/macros/auxiliary/attr-from-macro.rs rename to tests/ui/macros/auxiliary/attr-from-macro.rs diff --git a/src/test/ui/macros/auxiliary/define-macro.rs b/tests/ui/macros/auxiliary/define-macro.rs similarity index 100% rename from src/test/ui/macros/auxiliary/define-macro.rs rename to tests/ui/macros/auxiliary/define-macro.rs diff --git a/src/test/ui/macros/auxiliary/deprecated-macros.rs b/tests/ui/macros/auxiliary/deprecated-macros.rs similarity index 100% rename from src/test/ui/macros/auxiliary/deprecated-macros.rs rename to tests/ui/macros/auxiliary/deprecated-macros.rs diff --git a/src/test/ui/macros/auxiliary/dollar-crate-nested-encoding.rs b/tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs similarity index 100% rename from src/test/ui/macros/auxiliary/dollar-crate-nested-encoding.rs rename to tests/ui/macros/auxiliary/dollar-crate-nested-encoding.rs diff --git a/src/test/ui/macros/auxiliary/foreign-crate-macro-pat.rs b/tests/ui/macros/auxiliary/foreign-crate-macro-pat.rs similarity index 100% rename from src/test/ui/macros/auxiliary/foreign-crate-macro-pat.rs rename to tests/ui/macros/auxiliary/foreign-crate-macro-pat.rs diff --git a/src/test/ui/macros/auxiliary/issue-100199.rs b/tests/ui/macros/auxiliary/issue-100199.rs similarity index 100% rename from src/test/ui/macros/auxiliary/issue-100199.rs rename to tests/ui/macros/auxiliary/issue-100199.rs diff --git a/src/test/ui/macros/auxiliary/issue-19163.rs b/tests/ui/macros/auxiliary/issue-19163.rs similarity index 100% rename from src/test/ui/macros/auxiliary/issue-19163.rs rename to tests/ui/macros/auxiliary/issue-19163.rs diff --git a/src/test/ui/macros/auxiliary/issue-40469.rs b/tests/ui/macros/auxiliary/issue-40469.rs similarity index 100% rename from src/test/ui/macros/auxiliary/issue-40469.rs rename to tests/ui/macros/auxiliary/issue-40469.rs diff --git a/src/test/ui/macros/auxiliary/issue-75982.rs b/tests/ui/macros/auxiliary/issue-75982.rs similarity index 100% rename from src/test/ui/macros/auxiliary/issue-75982.rs rename to tests/ui/macros/auxiliary/issue-75982.rs diff --git a/src/test/ui/macros/auxiliary/macro-comma-support.rs b/tests/ui/macros/auxiliary/macro-comma-support.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro-comma-support.rs rename to tests/ui/macros/auxiliary/macro-comma-support.rs diff --git a/src/test/ui/macros/auxiliary/macro-def-site-super.rs b/tests/ui/macros/auxiliary/macro-def-site-super.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro-def-site-super.rs rename to tests/ui/macros/auxiliary/macro-def-site-super.rs diff --git a/src/test/ui/macros/auxiliary/macro-in-other-crate.rs b/tests/ui/macros/auxiliary/macro-in-other-crate.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro-in-other-crate.rs rename to tests/ui/macros/auxiliary/macro-in-other-crate.rs diff --git a/src/test/ui/macros/auxiliary/macro-include-items-expr.rs b/tests/ui/macros/auxiliary/macro-include-items-expr.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro-include-items-expr.rs rename to tests/ui/macros/auxiliary/macro-include-items-expr.rs diff --git a/src/test/ui/macros/auxiliary/macro-include-items-item.rs b/tests/ui/macros/auxiliary/macro-include-items-item.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro-include-items-item.rs rename to tests/ui/macros/auxiliary/macro-include-items-item.rs diff --git a/src/test/ui/macros/auxiliary/macro_crate_def_only.rs b/tests/ui/macros/auxiliary/macro_crate_def_only.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro_crate_def_only.rs rename to tests/ui/macros/auxiliary/macro_crate_def_only.rs diff --git a/src/test/ui/macros/auxiliary/macro_crate_nonterminal.rs b/tests/ui/macros/auxiliary/macro_crate_nonterminal.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro_crate_nonterminal.rs rename to tests/ui/macros/auxiliary/macro_crate_nonterminal.rs diff --git a/src/test/ui/macros/auxiliary/macro_export_inner_module.rs b/tests/ui/macros/auxiliary/macro_export_inner_module.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro_export_inner_module.rs rename to tests/ui/macros/auxiliary/macro_export_inner_module.rs diff --git a/src/test/ui/macros/auxiliary/macro_with_super_1.rs b/tests/ui/macros/auxiliary/macro_with_super_1.rs similarity index 100% rename from src/test/ui/macros/auxiliary/macro_with_super_1.rs rename to tests/ui/macros/auxiliary/macro_with_super_1.rs diff --git a/src/test/ui/macros/auxiliary/or-pattern.rs b/tests/ui/macros/auxiliary/or-pattern.rs similarity index 100% rename from src/test/ui/macros/auxiliary/or-pattern.rs rename to tests/ui/macros/auxiliary/or-pattern.rs diff --git a/src/test/ui/macros/auxiliary/proc_macro_def.rs b/tests/ui/macros/auxiliary/proc_macro_def.rs similarity index 100% rename from src/test/ui/macros/auxiliary/proc_macro_def.rs rename to tests/ui/macros/auxiliary/proc_macro_def.rs diff --git a/src/test/ui/macros/auxiliary/proc_macro_sequence.rs b/tests/ui/macros/auxiliary/proc_macro_sequence.rs similarity index 100% rename from src/test/ui/macros/auxiliary/proc_macro_sequence.rs rename to tests/ui/macros/auxiliary/proc_macro_sequence.rs diff --git a/src/test/ui/macros/auxiliary/two_macros-rpass.rs b/tests/ui/macros/auxiliary/two_macros-rpass.rs similarity index 100% rename from src/test/ui/macros/auxiliary/two_macros-rpass.rs rename to tests/ui/macros/auxiliary/two_macros-rpass.rs diff --git a/src/test/ui/macros/auxiliary/two_macros.rs b/tests/ui/macros/auxiliary/two_macros.rs similarity index 100% rename from src/test/ui/macros/auxiliary/two_macros.rs rename to tests/ui/macros/auxiliary/two_macros.rs diff --git a/src/test/ui/macros/auxiliary/unstable-macros.rs b/tests/ui/macros/auxiliary/unstable-macros.rs similarity index 100% rename from src/test/ui/macros/auxiliary/unstable-macros.rs rename to tests/ui/macros/auxiliary/unstable-macros.rs diff --git a/src/test/ui/macros/auxiliary/use-macro-self.rs b/tests/ui/macros/auxiliary/use-macro-self.rs similarity index 100% rename from src/test/ui/macros/auxiliary/use-macro-self.rs rename to tests/ui/macros/auxiliary/use-macro-self.rs diff --git a/src/test/ui/macros/bad-concat.rs b/tests/ui/macros/bad-concat.rs similarity index 100% rename from src/test/ui/macros/bad-concat.rs rename to tests/ui/macros/bad-concat.rs diff --git a/src/test/ui/macros/bad-concat.stderr b/tests/ui/macros/bad-concat.stderr similarity index 100% rename from src/test/ui/macros/bad-concat.stderr rename to tests/ui/macros/bad-concat.stderr diff --git a/src/test/ui/macros/bad_hello.rs b/tests/ui/macros/bad_hello.rs similarity index 100% rename from src/test/ui/macros/bad_hello.rs rename to tests/ui/macros/bad_hello.rs diff --git a/src/test/ui/macros/bad_hello.stderr b/tests/ui/macros/bad_hello.stderr similarity index 100% rename from src/test/ui/macros/bad_hello.stderr rename to tests/ui/macros/bad_hello.stderr diff --git a/src/test/ui/macros/bang-after-name.fixed b/tests/ui/macros/bang-after-name.fixed similarity index 100% rename from src/test/ui/macros/bang-after-name.fixed rename to tests/ui/macros/bang-after-name.fixed diff --git a/src/test/ui/macros/bang-after-name.rs b/tests/ui/macros/bang-after-name.rs similarity index 100% rename from src/test/ui/macros/bang-after-name.rs rename to tests/ui/macros/bang-after-name.rs diff --git a/src/test/ui/macros/bang-after-name.stderr b/tests/ui/macros/bang-after-name.stderr similarity index 100% rename from src/test/ui/macros/bang-after-name.stderr rename to tests/ui/macros/bang-after-name.stderr diff --git a/src/test/ui/macros/best-failure.rs b/tests/ui/macros/best-failure.rs similarity index 100% rename from src/test/ui/macros/best-failure.rs rename to tests/ui/macros/best-failure.rs diff --git a/src/test/ui/macros/best-failure.stderr b/tests/ui/macros/best-failure.stderr similarity index 100% rename from src/test/ui/macros/best-failure.stderr rename to tests/ui/macros/best-failure.stderr diff --git a/src/test/ui/macros/builtin-prelude-no-accidents.rs b/tests/ui/macros/builtin-prelude-no-accidents.rs similarity index 100% rename from src/test/ui/macros/builtin-prelude-no-accidents.rs rename to tests/ui/macros/builtin-prelude-no-accidents.rs diff --git a/src/test/ui/macros/builtin-prelude-no-accidents.stderr b/tests/ui/macros/builtin-prelude-no-accidents.stderr similarity index 100% rename from src/test/ui/macros/builtin-prelude-no-accidents.stderr rename to tests/ui/macros/builtin-prelude-no-accidents.stderr diff --git a/src/test/ui/macros/builtin-std-paths-fail.rs b/tests/ui/macros/builtin-std-paths-fail.rs similarity index 100% rename from src/test/ui/macros/builtin-std-paths-fail.rs rename to tests/ui/macros/builtin-std-paths-fail.rs diff --git a/src/test/ui/macros/builtin-std-paths-fail.stderr b/tests/ui/macros/builtin-std-paths-fail.stderr similarity index 100% rename from src/test/ui/macros/builtin-std-paths-fail.stderr rename to tests/ui/macros/builtin-std-paths-fail.stderr diff --git a/src/test/ui/macros/builtin-std-paths.rs b/tests/ui/macros/builtin-std-paths.rs similarity index 100% rename from src/test/ui/macros/builtin-std-paths.rs rename to tests/ui/macros/builtin-std-paths.rs diff --git a/src/test/ui/macros/cfg.rs b/tests/ui/macros/cfg.rs similarity index 100% rename from src/test/ui/macros/cfg.rs rename to tests/ui/macros/cfg.rs diff --git a/src/test/ui/macros/cfg.stderr b/tests/ui/macros/cfg.stderr similarity index 100% rename from src/test/ui/macros/cfg.stderr rename to tests/ui/macros/cfg.stderr diff --git a/src/test/ui/macros/colorful-write-macros.rs b/tests/ui/macros/colorful-write-macros.rs similarity index 100% rename from src/test/ui/macros/colorful-write-macros.rs rename to tests/ui/macros/colorful-write-macros.rs diff --git a/src/test/ui/macros/concat-bytes-error.rs b/tests/ui/macros/concat-bytes-error.rs similarity index 100% rename from src/test/ui/macros/concat-bytes-error.rs rename to tests/ui/macros/concat-bytes-error.rs diff --git a/src/test/ui/macros/concat-bytes-error.stderr b/tests/ui/macros/concat-bytes-error.stderr similarity index 100% rename from src/test/ui/macros/concat-bytes-error.stderr rename to tests/ui/macros/concat-bytes-error.stderr diff --git a/src/test/ui/macros/concat-bytes.rs b/tests/ui/macros/concat-bytes.rs similarity index 100% rename from src/test/ui/macros/concat-bytes.rs rename to tests/ui/macros/concat-bytes.rs diff --git a/src/test/ui/macros/concat-rpass.rs b/tests/ui/macros/concat-rpass.rs similarity index 100% rename from src/test/ui/macros/concat-rpass.rs rename to tests/ui/macros/concat-rpass.rs diff --git a/src/test/ui/macros/concat.rs b/tests/ui/macros/concat.rs similarity index 100% rename from src/test/ui/macros/concat.rs rename to tests/ui/macros/concat.rs diff --git a/src/test/ui/macros/concat.stderr b/tests/ui/macros/concat.stderr similarity index 100% rename from src/test/ui/macros/concat.stderr rename to tests/ui/macros/concat.stderr diff --git a/src/test/ui/macros/conditional-debug-macro-on.rs b/tests/ui/macros/conditional-debug-macro-on.rs similarity index 100% rename from src/test/ui/macros/conditional-debug-macro-on.rs rename to tests/ui/macros/conditional-debug-macro-on.rs diff --git a/src/test/ui/macros/cross-crate-pat-span.rs b/tests/ui/macros/cross-crate-pat-span.rs similarity index 100% rename from src/test/ui/macros/cross-crate-pat-span.rs rename to tests/ui/macros/cross-crate-pat-span.rs diff --git a/src/test/ui/macros/derive-in-eager-expansion-hang.rs b/tests/ui/macros/derive-in-eager-expansion-hang.rs similarity index 100% rename from src/test/ui/macros/derive-in-eager-expansion-hang.rs rename to tests/ui/macros/derive-in-eager-expansion-hang.rs diff --git a/src/test/ui/macros/derive-in-eager-expansion-hang.stderr b/tests/ui/macros/derive-in-eager-expansion-hang.stderr similarity index 100% rename from src/test/ui/macros/derive-in-eager-expansion-hang.stderr rename to tests/ui/macros/derive-in-eager-expansion-hang.stderr diff --git a/src/test/ui/macros/die-macro-2.rs b/tests/ui/macros/die-macro-2.rs similarity index 100% rename from src/test/ui/macros/die-macro-2.rs rename to tests/ui/macros/die-macro-2.rs diff --git a/src/test/ui/macros/die-macro-expr.rs b/tests/ui/macros/die-macro-expr.rs similarity index 100% rename from src/test/ui/macros/die-macro-expr.rs rename to tests/ui/macros/die-macro-expr.rs diff --git a/src/test/ui/macros/die-macro-pure.rs b/tests/ui/macros/die-macro-pure.rs similarity index 100% rename from src/test/ui/macros/die-macro-pure.rs rename to tests/ui/macros/die-macro-pure.rs diff --git a/src/test/ui/macros/die-macro.rs b/tests/ui/macros/die-macro.rs similarity index 100% rename from src/test/ui/macros/die-macro.rs rename to tests/ui/macros/die-macro.rs diff --git a/src/test/ui/macros/doc-comment.rs b/tests/ui/macros/doc-comment.rs similarity index 100% rename from src/test/ui/macros/doc-comment.rs rename to tests/ui/macros/doc-comment.rs diff --git a/src/test/ui/macros/dollar-crate-nested-encoding.rs b/tests/ui/macros/dollar-crate-nested-encoding.rs similarity index 100% rename from src/test/ui/macros/dollar-crate-nested-encoding.rs rename to tests/ui/macros/dollar-crate-nested-encoding.rs diff --git a/src/test/ui/macros/duplicate-builtin.rs b/tests/ui/macros/duplicate-builtin.rs similarity index 100% rename from src/test/ui/macros/duplicate-builtin.rs rename to tests/ui/macros/duplicate-builtin.rs diff --git a/src/test/ui/macros/duplicate-builtin.stderr b/tests/ui/macros/duplicate-builtin.stderr similarity index 100% rename from src/test/ui/macros/duplicate-builtin.stderr rename to tests/ui/macros/duplicate-builtin.stderr diff --git a/src/test/ui/macros/edition-macro-pats.rs b/tests/ui/macros/edition-macro-pats.rs similarity index 100% rename from src/test/ui/macros/edition-macro-pats.rs rename to tests/ui/macros/edition-macro-pats.rs diff --git a/src/test/ui/macros/empty-trailing-stmt.rs b/tests/ui/macros/empty-trailing-stmt.rs similarity index 100% rename from src/test/ui/macros/empty-trailing-stmt.rs rename to tests/ui/macros/empty-trailing-stmt.rs diff --git a/src/test/ui/macros/empty-trailing-stmt.stderr b/tests/ui/macros/empty-trailing-stmt.stderr similarity index 100% rename from src/test/ui/macros/empty-trailing-stmt.stderr rename to tests/ui/macros/empty-trailing-stmt.stderr diff --git a/src/test/ui/macros/format-args-temporaries-async.rs b/tests/ui/macros/format-args-temporaries-async.rs similarity index 100% rename from src/test/ui/macros/format-args-temporaries-async.rs rename to tests/ui/macros/format-args-temporaries-async.rs diff --git a/src/test/ui/macros/format-args-temporaries-in-write.rs b/tests/ui/macros/format-args-temporaries-in-write.rs similarity index 100% rename from src/test/ui/macros/format-args-temporaries-in-write.rs rename to tests/ui/macros/format-args-temporaries-in-write.rs diff --git a/src/test/ui/macros/format-args-temporaries-in-write.stderr b/tests/ui/macros/format-args-temporaries-in-write.stderr similarity index 100% rename from src/test/ui/macros/format-args-temporaries-in-write.stderr rename to tests/ui/macros/format-args-temporaries-in-write.stderr diff --git a/src/test/ui/macros/format-args-temporaries.rs b/tests/ui/macros/format-args-temporaries.rs similarity index 100% rename from src/test/ui/macros/format-args-temporaries.rs rename to tests/ui/macros/format-args-temporaries.rs diff --git a/src/test/ui/macros/format-foreign.rs b/tests/ui/macros/format-foreign.rs similarity index 100% rename from src/test/ui/macros/format-foreign.rs rename to tests/ui/macros/format-foreign.rs diff --git a/src/test/ui/macros/format-foreign.stderr b/tests/ui/macros/format-foreign.stderr similarity index 100% rename from src/test/ui/macros/format-foreign.stderr rename to tests/ui/macros/format-foreign.stderr diff --git a/src/test/ui/macros/format-parse-errors.rs b/tests/ui/macros/format-parse-errors.rs similarity index 100% rename from src/test/ui/macros/format-parse-errors.rs rename to tests/ui/macros/format-parse-errors.rs diff --git a/src/test/ui/macros/format-parse-errors.stderr b/tests/ui/macros/format-parse-errors.stderr similarity index 100% rename from src/test/ui/macros/format-parse-errors.stderr rename to tests/ui/macros/format-parse-errors.stderr diff --git a/src/test/ui/macros/format-unused-lables.rs b/tests/ui/macros/format-unused-lables.rs similarity index 100% rename from src/test/ui/macros/format-unused-lables.rs rename to tests/ui/macros/format-unused-lables.rs diff --git a/src/test/ui/macros/format-unused-lables.stderr b/tests/ui/macros/format-unused-lables.stderr similarity index 100% rename from src/test/ui/macros/format-unused-lables.stderr rename to tests/ui/macros/format-unused-lables.stderr diff --git a/src/test/ui/macros/global-asm.rs b/tests/ui/macros/global-asm.rs similarity index 100% rename from src/test/ui/macros/global-asm.rs rename to tests/ui/macros/global-asm.rs diff --git a/src/test/ui/macros/global-asm.stderr b/tests/ui/macros/global-asm.stderr similarity index 100% rename from src/test/ui/macros/global-asm.stderr rename to tests/ui/macros/global-asm.stderr diff --git a/src/test/ui/macros/html-literals.rs b/tests/ui/macros/html-literals.rs similarity index 100% rename from src/test/ui/macros/html-literals.rs rename to tests/ui/macros/html-literals.rs diff --git a/src/test/ui/macros/include-single-expr-helper-1.rs b/tests/ui/macros/include-single-expr-helper-1.rs similarity index 100% rename from src/test/ui/macros/include-single-expr-helper-1.rs rename to tests/ui/macros/include-single-expr-helper-1.rs diff --git a/src/test/ui/macros/include-single-expr-helper.rs b/tests/ui/macros/include-single-expr-helper.rs similarity index 100% rename from src/test/ui/macros/include-single-expr-helper.rs rename to tests/ui/macros/include-single-expr-helper.rs diff --git a/src/test/ui/macros/include-single-expr.rs b/tests/ui/macros/include-single-expr.rs similarity index 100% rename from src/test/ui/macros/include-single-expr.rs rename to tests/ui/macros/include-single-expr.rs diff --git a/src/test/ui/macros/include-single-expr.stderr b/tests/ui/macros/include-single-expr.stderr similarity index 100% rename from src/test/ui/macros/include-single-expr.stderr rename to tests/ui/macros/include-single-expr.stderr diff --git a/src/test/ui/macros/issue-100199.rs b/tests/ui/macros/issue-100199.rs similarity index 100% rename from src/test/ui/macros/issue-100199.rs rename to tests/ui/macros/issue-100199.rs diff --git a/src/test/ui/macros/issue-100199.stderr b/tests/ui/macros/issue-100199.stderr similarity index 100% rename from src/test/ui/macros/issue-100199.stderr rename to tests/ui/macros/issue-100199.stderr diff --git a/src/test/ui/macros/issue-102878.rs b/tests/ui/macros/issue-102878.rs similarity index 100% rename from src/test/ui/macros/issue-102878.rs rename to tests/ui/macros/issue-102878.rs diff --git a/src/test/ui/macros/issue-102878.stderr b/tests/ui/macros/issue-102878.stderr similarity index 100% rename from src/test/ui/macros/issue-102878.stderr rename to tests/ui/macros/issue-102878.stderr diff --git a/src/test/ui/macros/issue-103529.rs b/tests/ui/macros/issue-103529.rs similarity index 100% rename from src/test/ui/macros/issue-103529.rs rename to tests/ui/macros/issue-103529.rs diff --git a/src/test/ui/macros/issue-103529.stderr b/tests/ui/macros/issue-103529.stderr similarity index 100% rename from src/test/ui/macros/issue-103529.stderr rename to tests/ui/macros/issue-103529.stderr diff --git a/src/test/ui/macros/issue-104769-concat_bytes-invalid-literal.rs b/tests/ui/macros/issue-104769-concat_bytes-invalid-literal.rs similarity index 100% rename from src/test/ui/macros/issue-104769-concat_bytes-invalid-literal.rs rename to tests/ui/macros/issue-104769-concat_bytes-invalid-literal.rs diff --git a/src/test/ui/macros/issue-104769-concat_bytes-invalid-literal.stderr b/tests/ui/macros/issue-104769-concat_bytes-invalid-literal.stderr similarity index 100% rename from src/test/ui/macros/issue-104769-concat_bytes-invalid-literal.stderr rename to tests/ui/macros/issue-104769-concat_bytes-invalid-literal.stderr diff --git a/src/test/ui/macros/issue-105011.rs b/tests/ui/macros/issue-105011.rs similarity index 100% rename from src/test/ui/macros/issue-105011.rs rename to tests/ui/macros/issue-105011.rs diff --git a/src/test/ui/macros/issue-105011.stderr b/tests/ui/macros/issue-105011.stderr similarity index 100% rename from src/test/ui/macros/issue-105011.stderr rename to tests/ui/macros/issue-105011.stderr diff --git a/src/test/ui/macros/issue-10536.rs b/tests/ui/macros/issue-10536.rs similarity index 100% rename from src/test/ui/macros/issue-10536.rs rename to tests/ui/macros/issue-10536.rs diff --git a/src/test/ui/macros/issue-10536.stderr b/tests/ui/macros/issue-10536.stderr similarity index 100% rename from src/test/ui/macros/issue-10536.stderr rename to tests/ui/macros/issue-10536.stderr diff --git a/src/test/ui/macros/issue-16098.rs b/tests/ui/macros/issue-16098.rs similarity index 100% rename from src/test/ui/macros/issue-16098.rs rename to tests/ui/macros/issue-16098.rs diff --git a/src/test/ui/macros/issue-16098.stderr b/tests/ui/macros/issue-16098.stderr similarity index 100% rename from src/test/ui/macros/issue-16098.stderr rename to tests/ui/macros/issue-16098.stderr diff --git a/src/test/ui/macros/issue-19163.rs b/tests/ui/macros/issue-19163.rs similarity index 100% rename from src/test/ui/macros/issue-19163.rs rename to tests/ui/macros/issue-19163.rs diff --git a/src/test/ui/macros/issue-19163.stderr b/tests/ui/macros/issue-19163.stderr similarity index 100% rename from src/test/ui/macros/issue-19163.stderr rename to tests/ui/macros/issue-19163.stderr diff --git a/src/test/ui/macros/issue-21356.rs b/tests/ui/macros/issue-21356.rs similarity index 100% rename from src/test/ui/macros/issue-21356.rs rename to tests/ui/macros/issue-21356.rs diff --git a/src/test/ui/macros/issue-21356.stderr b/tests/ui/macros/issue-21356.stderr similarity index 100% rename from src/test/ui/macros/issue-21356.stderr rename to tests/ui/macros/issue-21356.stderr diff --git a/src/test/ui/macros/issue-22463.rs b/tests/ui/macros/issue-22463.rs similarity index 100% rename from src/test/ui/macros/issue-22463.rs rename to tests/ui/macros/issue-22463.rs diff --git a/src/test/ui/macros/issue-25274.rs b/tests/ui/macros/issue-25274.rs similarity index 100% rename from src/test/ui/macros/issue-25274.rs rename to tests/ui/macros/issue-25274.rs diff --git a/src/test/ui/macros/issue-25385.rs b/tests/ui/macros/issue-25385.rs similarity index 100% rename from src/test/ui/macros/issue-25385.rs rename to tests/ui/macros/issue-25385.rs diff --git a/src/test/ui/macros/issue-25385.stderr b/tests/ui/macros/issue-25385.stderr similarity index 100% rename from src/test/ui/macros/issue-25385.stderr rename to tests/ui/macros/issue-25385.stderr diff --git a/src/test/ui/macros/issue-26322.rs b/tests/ui/macros/issue-26322.rs similarity index 100% rename from src/test/ui/macros/issue-26322.rs rename to tests/ui/macros/issue-26322.rs diff --git a/src/test/ui/macros/issue-29084.rs b/tests/ui/macros/issue-29084.rs similarity index 100% rename from src/test/ui/macros/issue-29084.rs rename to tests/ui/macros/issue-29084.rs diff --git a/src/test/ui/macros/issue-29084.stderr b/tests/ui/macros/issue-29084.stderr similarity index 100% rename from src/test/ui/macros/issue-29084.stderr rename to tests/ui/macros/issue-29084.stderr diff --git a/src/test/ui/macros/issue-30143.rs b/tests/ui/macros/issue-30143.rs similarity index 100% rename from src/test/ui/macros/issue-30143.rs rename to tests/ui/macros/issue-30143.rs diff --git a/src/test/ui/macros/issue-30143.stderr b/tests/ui/macros/issue-30143.stderr similarity index 100% rename from src/test/ui/macros/issue-30143.stderr rename to tests/ui/macros/issue-30143.stderr diff --git a/src/test/ui/macros/issue-33185.rs b/tests/ui/macros/issue-33185.rs similarity index 100% rename from src/test/ui/macros/issue-33185.rs rename to tests/ui/macros/issue-33185.rs diff --git a/src/test/ui/macros/issue-34171.rs b/tests/ui/macros/issue-34171.rs similarity index 100% rename from src/test/ui/macros/issue-34171.rs rename to tests/ui/macros/issue-34171.rs diff --git a/src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs b/tests/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs similarity index 100% rename from src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs rename to tests/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.rs diff --git a/src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.stderr b/tests/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.stderr similarity index 100% rename from src/test/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.stderr rename to tests/ui/macros/issue-34421-mac-expr-bad-stmt-good-add-semi.stderr diff --git a/src/test/ui/macros/issue-35450.rs b/tests/ui/macros/issue-35450.rs similarity index 100% rename from src/test/ui/macros/issue-35450.rs rename to tests/ui/macros/issue-35450.rs diff --git a/src/test/ui/macros/issue-35450.stderr b/tests/ui/macros/issue-35450.stderr similarity index 100% rename from src/test/ui/macros/issue-35450.stderr rename to tests/ui/macros/issue-35450.stderr diff --git a/src/test/ui/macros/issue-37175.rs b/tests/ui/macros/issue-37175.rs similarity index 100% rename from src/test/ui/macros/issue-37175.rs rename to tests/ui/macros/issue-37175.rs diff --git a/src/test/ui/macros/issue-38715.rs b/tests/ui/macros/issue-38715.rs similarity index 100% rename from src/test/ui/macros/issue-38715.rs rename to tests/ui/macros/issue-38715.rs diff --git a/src/test/ui/macros/issue-38715.stderr b/tests/ui/macros/issue-38715.stderr similarity index 100% rename from src/test/ui/macros/issue-38715.stderr rename to tests/ui/macros/issue-38715.stderr diff --git a/src/test/ui/macros/issue-39388.rs b/tests/ui/macros/issue-39388.rs similarity index 100% rename from src/test/ui/macros/issue-39388.rs rename to tests/ui/macros/issue-39388.rs diff --git a/src/test/ui/macros/issue-39388.stderr b/tests/ui/macros/issue-39388.stderr similarity index 100% rename from src/test/ui/macros/issue-39388.stderr rename to tests/ui/macros/issue-39388.stderr diff --git a/src/test/ui/macros/issue-39404.rs b/tests/ui/macros/issue-39404.rs similarity index 100% rename from src/test/ui/macros/issue-39404.rs rename to tests/ui/macros/issue-39404.rs diff --git a/src/test/ui/macros/issue-39404.stderr b/tests/ui/macros/issue-39404.stderr similarity index 100% rename from src/test/ui/macros/issue-39404.stderr rename to tests/ui/macros/issue-39404.stderr diff --git a/src/test/ui/macros/issue-40469.rs b/tests/ui/macros/issue-40469.rs similarity index 100% rename from src/test/ui/macros/issue-40469.rs rename to tests/ui/macros/issue-40469.rs diff --git a/src/test/ui/macros/issue-40770.rs b/tests/ui/macros/issue-40770.rs similarity index 100% rename from src/test/ui/macros/issue-40770.rs rename to tests/ui/macros/issue-40770.rs diff --git a/src/test/ui/macros/issue-41776.rs b/tests/ui/macros/issue-41776.rs similarity index 100% rename from src/test/ui/macros/issue-41776.rs rename to tests/ui/macros/issue-41776.rs diff --git a/src/test/ui/macros/issue-41776.stderr b/tests/ui/macros/issue-41776.stderr similarity index 100% rename from src/test/ui/macros/issue-41776.stderr rename to tests/ui/macros/issue-41776.stderr diff --git a/src/test/ui/macros/issue-41803.rs b/tests/ui/macros/issue-41803.rs similarity index 100% rename from src/test/ui/macros/issue-41803.rs rename to tests/ui/macros/issue-41803.rs diff --git a/src/test/ui/macros/issue-42954.fixed b/tests/ui/macros/issue-42954.fixed similarity index 100% rename from src/test/ui/macros/issue-42954.fixed rename to tests/ui/macros/issue-42954.fixed diff --git a/src/test/ui/macros/issue-42954.rs b/tests/ui/macros/issue-42954.rs similarity index 100% rename from src/test/ui/macros/issue-42954.rs rename to tests/ui/macros/issue-42954.rs diff --git a/src/test/ui/macros/issue-42954.stderr b/tests/ui/macros/issue-42954.stderr similarity index 100% rename from src/test/ui/macros/issue-42954.stderr rename to tests/ui/macros/issue-42954.stderr diff --git a/src/test/ui/macros/issue-44127.rs b/tests/ui/macros/issue-44127.rs similarity index 100% rename from src/test/ui/macros/issue-44127.rs rename to tests/ui/macros/issue-44127.rs diff --git a/src/test/ui/macros/issue-5060.rs b/tests/ui/macros/issue-5060.rs similarity index 100% rename from src/test/ui/macros/issue-5060.rs rename to tests/ui/macros/issue-5060.rs diff --git a/src/test/ui/macros/issue-51848.rs b/tests/ui/macros/issue-51848.rs similarity index 100% rename from src/test/ui/macros/issue-51848.rs rename to tests/ui/macros/issue-51848.rs diff --git a/src/test/ui/macros/issue-51848.stderr b/tests/ui/macros/issue-51848.stderr similarity index 100% rename from src/test/ui/macros/issue-51848.stderr rename to tests/ui/macros/issue-51848.stderr diff --git a/src/test/ui/macros/issue-52169.rs b/tests/ui/macros/issue-52169.rs similarity index 100% rename from src/test/ui/macros/issue-52169.rs rename to tests/ui/macros/issue-52169.rs diff --git a/src/test/ui/macros/issue-54441.rs b/tests/ui/macros/issue-54441.rs similarity index 100% rename from src/test/ui/macros/issue-54441.rs rename to tests/ui/macros/issue-54441.rs diff --git a/src/test/ui/macros/issue-54441.stderr b/tests/ui/macros/issue-54441.stderr similarity index 100% rename from src/test/ui/macros/issue-54441.stderr rename to tests/ui/macros/issue-54441.stderr diff --git a/src/test/ui/macros/issue-57597.rs b/tests/ui/macros/issue-57597.rs similarity index 100% rename from src/test/ui/macros/issue-57597.rs rename to tests/ui/macros/issue-57597.rs diff --git a/src/test/ui/macros/issue-57597.stderr b/tests/ui/macros/issue-57597.stderr similarity index 100% rename from src/test/ui/macros/issue-57597.stderr rename to tests/ui/macros/issue-57597.stderr diff --git a/src/test/ui/macros/issue-58490.rs b/tests/ui/macros/issue-58490.rs similarity index 100% rename from src/test/ui/macros/issue-58490.rs rename to tests/ui/macros/issue-58490.rs diff --git a/src/test/ui/macros/issue-58490.stderr b/tests/ui/macros/issue-58490.stderr similarity index 100% rename from src/test/ui/macros/issue-58490.stderr rename to tests/ui/macros/issue-58490.stderr diff --git a/src/test/ui/macros/issue-61033-1.rs b/tests/ui/macros/issue-61033-1.rs similarity index 100% rename from src/test/ui/macros/issue-61033-1.rs rename to tests/ui/macros/issue-61033-1.rs diff --git a/src/test/ui/macros/issue-61033-1.stderr b/tests/ui/macros/issue-61033-1.stderr similarity index 100% rename from src/test/ui/macros/issue-61033-1.stderr rename to tests/ui/macros/issue-61033-1.stderr diff --git a/src/test/ui/macros/issue-61033-2.rs b/tests/ui/macros/issue-61033-2.rs similarity index 100% rename from src/test/ui/macros/issue-61033-2.rs rename to tests/ui/macros/issue-61033-2.rs diff --git a/src/test/ui/macros/issue-61033-2.stderr b/tests/ui/macros/issue-61033-2.stderr similarity index 100% rename from src/test/ui/macros/issue-61033-2.stderr rename to tests/ui/macros/issue-61033-2.stderr diff --git a/src/test/ui/macros/issue-61053-different-kleene.rs b/tests/ui/macros/issue-61053-different-kleene.rs similarity index 100% rename from src/test/ui/macros/issue-61053-different-kleene.rs rename to tests/ui/macros/issue-61053-different-kleene.rs diff --git a/src/test/ui/macros/issue-61053-different-kleene.stderr b/tests/ui/macros/issue-61053-different-kleene.stderr similarity index 100% rename from src/test/ui/macros/issue-61053-different-kleene.stderr rename to tests/ui/macros/issue-61053-different-kleene.stderr diff --git a/src/test/ui/macros/issue-61053-duplicate-binder.rs b/tests/ui/macros/issue-61053-duplicate-binder.rs similarity index 100% rename from src/test/ui/macros/issue-61053-duplicate-binder.rs rename to tests/ui/macros/issue-61053-duplicate-binder.rs diff --git a/src/test/ui/macros/issue-61053-duplicate-binder.stderr b/tests/ui/macros/issue-61053-duplicate-binder.stderr similarity index 100% rename from src/test/ui/macros/issue-61053-duplicate-binder.stderr rename to tests/ui/macros/issue-61053-duplicate-binder.stderr diff --git a/src/test/ui/macros/issue-61053-missing-repetition.rs b/tests/ui/macros/issue-61053-missing-repetition.rs similarity index 100% rename from src/test/ui/macros/issue-61053-missing-repetition.rs rename to tests/ui/macros/issue-61053-missing-repetition.rs diff --git a/src/test/ui/macros/issue-61053-missing-repetition.stderr b/tests/ui/macros/issue-61053-missing-repetition.stderr similarity index 100% rename from src/test/ui/macros/issue-61053-missing-repetition.stderr rename to tests/ui/macros/issue-61053-missing-repetition.stderr diff --git a/src/test/ui/macros/issue-61053-unbound.rs b/tests/ui/macros/issue-61053-unbound.rs similarity index 100% rename from src/test/ui/macros/issue-61053-unbound.rs rename to tests/ui/macros/issue-61053-unbound.rs diff --git a/src/test/ui/macros/issue-61053-unbound.stderr b/tests/ui/macros/issue-61053-unbound.stderr similarity index 100% rename from src/test/ui/macros/issue-61053-unbound.stderr rename to tests/ui/macros/issue-61053-unbound.stderr diff --git a/src/test/ui/macros/issue-63102.rs b/tests/ui/macros/issue-63102.rs similarity index 100% rename from src/test/ui/macros/issue-63102.rs rename to tests/ui/macros/issue-63102.rs diff --git a/src/test/ui/macros/issue-6596-1.rs b/tests/ui/macros/issue-6596-1.rs similarity index 100% rename from src/test/ui/macros/issue-6596-1.rs rename to tests/ui/macros/issue-6596-1.rs diff --git a/src/test/ui/macros/issue-6596-1.stderr b/tests/ui/macros/issue-6596-1.stderr similarity index 100% rename from src/test/ui/macros/issue-6596-1.stderr rename to tests/ui/macros/issue-6596-1.stderr diff --git a/src/test/ui/macros/issue-68058.rs b/tests/ui/macros/issue-68058.rs similarity index 100% rename from src/test/ui/macros/issue-68058.rs rename to tests/ui/macros/issue-68058.rs diff --git a/src/test/ui/macros/issue-68060.rs b/tests/ui/macros/issue-68060.rs similarity index 100% rename from src/test/ui/macros/issue-68060.rs rename to tests/ui/macros/issue-68060.rs diff --git a/src/test/ui/macros/issue-68060.stderr b/tests/ui/macros/issue-68060.stderr similarity index 100% rename from src/test/ui/macros/issue-68060.stderr rename to tests/ui/macros/issue-68060.stderr diff --git a/src/test/ui/macros/issue-69838-dir/bar.rs b/tests/ui/macros/issue-69838-dir/bar.rs similarity index 100% rename from src/test/ui/macros/issue-69838-dir/bar.rs rename to tests/ui/macros/issue-69838-dir/bar.rs diff --git a/src/test/ui/macros/issue-69838-dir/included.rs b/tests/ui/macros/issue-69838-dir/included.rs similarity index 100% rename from src/test/ui/macros/issue-69838-dir/included.rs rename to tests/ui/macros/issue-69838-dir/included.rs diff --git a/src/test/ui/macros/issue-69838-mods-relative-to-included-path.rs b/tests/ui/macros/issue-69838-mods-relative-to-included-path.rs similarity index 100% rename from src/test/ui/macros/issue-69838-mods-relative-to-included-path.rs rename to tests/ui/macros/issue-69838-mods-relative-to-included-path.rs diff --git a/src/test/ui/macros/issue-70446.rs b/tests/ui/macros/issue-70446.rs similarity index 100% rename from src/test/ui/macros/issue-70446.rs rename to tests/ui/macros/issue-70446.rs diff --git a/src/test/ui/macros/issue-75982-foreign-macro-weird-mod.rs b/tests/ui/macros/issue-75982-foreign-macro-weird-mod.rs similarity index 100% rename from src/test/ui/macros/issue-75982-foreign-macro-weird-mod.rs rename to tests/ui/macros/issue-75982-foreign-macro-weird-mod.rs diff --git a/src/test/ui/macros/issue-77475.rs b/tests/ui/macros/issue-77475.rs similarity index 100% rename from src/test/ui/macros/issue-77475.rs rename to tests/ui/macros/issue-77475.rs diff --git a/src/test/ui/macros/issue-78325-inconsistent-resolution.rs b/tests/ui/macros/issue-78325-inconsistent-resolution.rs similarity index 100% rename from src/test/ui/macros/issue-78325-inconsistent-resolution.rs rename to tests/ui/macros/issue-78325-inconsistent-resolution.rs diff --git a/src/test/ui/macros/issue-78325-inconsistent-resolution.stderr b/tests/ui/macros/issue-78325-inconsistent-resolution.stderr similarity index 100% rename from src/test/ui/macros/issue-78325-inconsistent-resolution.stderr rename to tests/ui/macros/issue-78325-inconsistent-resolution.stderr diff --git a/src/test/ui/macros/issue-78333.rs b/tests/ui/macros/issue-78333.rs similarity index 100% rename from src/test/ui/macros/issue-78333.rs rename to tests/ui/macros/issue-78333.rs diff --git a/src/test/ui/macros/issue-78892-substitution-in-statement-attr.rs b/tests/ui/macros/issue-78892-substitution-in-statement-attr.rs similarity index 100% rename from src/test/ui/macros/issue-78892-substitution-in-statement-attr.rs rename to tests/ui/macros/issue-78892-substitution-in-statement-attr.rs diff --git a/src/test/ui/macros/issue-81006.rs b/tests/ui/macros/issue-81006.rs similarity index 100% rename from src/test/ui/macros/issue-81006.rs rename to tests/ui/macros/issue-81006.rs diff --git a/src/test/ui/macros/issue-81006.stderr b/tests/ui/macros/issue-81006.stderr similarity index 100% rename from src/test/ui/macros/issue-81006.stderr rename to tests/ui/macros/issue-81006.stderr diff --git a/src/test/ui/macros/issue-83340.rs b/tests/ui/macros/issue-83340.rs similarity index 100% rename from src/test/ui/macros/issue-83340.rs rename to tests/ui/macros/issue-83340.rs diff --git a/src/test/ui/macros/issue-83340.stderr b/tests/ui/macros/issue-83340.stderr similarity index 100% rename from src/test/ui/macros/issue-83340.stderr rename to tests/ui/macros/issue-83340.stderr diff --git a/src/test/ui/macros/issue-83344.rs b/tests/ui/macros/issue-83344.rs similarity index 100% rename from src/test/ui/macros/issue-83344.rs rename to tests/ui/macros/issue-83344.rs diff --git a/src/test/ui/macros/issue-83344.stderr b/tests/ui/macros/issue-83344.stderr similarity index 100% rename from src/test/ui/macros/issue-83344.stderr rename to tests/ui/macros/issue-83344.stderr diff --git a/src/test/ui/macros/issue-84195-lint-anon-const.rs b/tests/ui/macros/issue-84195-lint-anon-const.rs similarity index 100% rename from src/test/ui/macros/issue-84195-lint-anon-const.rs rename to tests/ui/macros/issue-84195-lint-anon-const.rs diff --git a/src/test/ui/macros/issue-84195-lint-anon-const.stderr b/tests/ui/macros/issue-84195-lint-anon-const.stderr similarity index 100% rename from src/test/ui/macros/issue-84195-lint-anon-const.stderr rename to tests/ui/macros/issue-84195-lint-anon-const.stderr diff --git a/src/test/ui/macros/issue-84429-matches-edition.rs b/tests/ui/macros/issue-84429-matches-edition.rs similarity index 100% rename from src/test/ui/macros/issue-84429-matches-edition.rs rename to tests/ui/macros/issue-84429-matches-edition.rs diff --git a/src/test/ui/macros/issue-84632-eager-expansion-recursion-limit.rs b/tests/ui/macros/issue-84632-eager-expansion-recursion-limit.rs similarity index 100% rename from src/test/ui/macros/issue-84632-eager-expansion-recursion-limit.rs rename to tests/ui/macros/issue-84632-eager-expansion-recursion-limit.rs diff --git a/src/test/ui/macros/issue-84632-eager-expansion-recursion-limit.stderr b/tests/ui/macros/issue-84632-eager-expansion-recursion-limit.stderr similarity index 100% rename from src/test/ui/macros/issue-84632-eager-expansion-recursion-limit.stderr rename to tests/ui/macros/issue-84632-eager-expansion-recursion-limit.stderr diff --git a/src/test/ui/macros/issue-86082-option-env-invalid-char.rs b/tests/ui/macros/issue-86082-option-env-invalid-char.rs similarity index 100% rename from src/test/ui/macros/issue-86082-option-env-invalid-char.rs rename to tests/ui/macros/issue-86082-option-env-invalid-char.rs diff --git a/src/test/ui/macros/issue-86865.rs b/tests/ui/macros/issue-86865.rs similarity index 100% rename from src/test/ui/macros/issue-86865.rs rename to tests/ui/macros/issue-86865.rs diff --git a/src/test/ui/macros/issue-86865.stderr b/tests/ui/macros/issue-86865.stderr similarity index 100% rename from src/test/ui/macros/issue-86865.stderr rename to tests/ui/macros/issue-86865.stderr diff --git a/src/test/ui/macros/issue-8709.rs b/tests/ui/macros/issue-8709.rs similarity index 100% rename from src/test/ui/macros/issue-8709.rs rename to tests/ui/macros/issue-8709.rs diff --git a/src/test/ui/macros/issue-87877.rs b/tests/ui/macros/issue-87877.rs similarity index 100% rename from src/test/ui/macros/issue-87877.rs rename to tests/ui/macros/issue-87877.rs diff --git a/src/test/ui/macros/issue-88206.rs b/tests/ui/macros/issue-88206.rs similarity index 100% rename from src/test/ui/macros/issue-88206.rs rename to tests/ui/macros/issue-88206.rs diff --git a/src/test/ui/macros/issue-88206.stderr b/tests/ui/macros/issue-88206.stderr similarity index 100% rename from src/test/ui/macros/issue-88206.stderr rename to tests/ui/macros/issue-88206.stderr diff --git a/src/test/ui/macros/issue-88228.rs b/tests/ui/macros/issue-88228.rs similarity index 100% rename from src/test/ui/macros/issue-88228.rs rename to tests/ui/macros/issue-88228.rs diff --git a/src/test/ui/macros/issue-88228.stderr b/tests/ui/macros/issue-88228.stderr similarity index 100% rename from src/test/ui/macros/issue-88228.stderr rename to tests/ui/macros/issue-88228.stderr diff --git a/src/test/ui/macros/issue-8851.rs b/tests/ui/macros/issue-8851.rs similarity index 100% rename from src/test/ui/macros/issue-8851.rs rename to tests/ui/macros/issue-8851.rs diff --git a/src/test/ui/macros/issue-92267.rs b/tests/ui/macros/issue-92267.rs similarity index 100% rename from src/test/ui/macros/issue-92267.rs rename to tests/ui/macros/issue-92267.rs diff --git a/src/test/ui/macros/issue-92267.stderr b/tests/ui/macros/issue-92267.stderr similarity index 100% rename from src/test/ui/macros/issue-92267.stderr rename to tests/ui/macros/issue-92267.stderr diff --git a/src/test/ui/macros/issue-95267.rs b/tests/ui/macros/issue-95267.rs similarity index 100% rename from src/test/ui/macros/issue-95267.rs rename to tests/ui/macros/issue-95267.rs diff --git a/src/test/ui/macros/issue-95533.rs b/tests/ui/macros/issue-95533.rs similarity index 100% rename from src/test/ui/macros/issue-95533.rs rename to tests/ui/macros/issue-95533.rs diff --git a/src/test/ui/macros/issue-98466-allow.rs b/tests/ui/macros/issue-98466-allow.rs similarity index 100% rename from src/test/ui/macros/issue-98466-allow.rs rename to tests/ui/macros/issue-98466-allow.rs diff --git a/src/test/ui/macros/issue-98466.fixed b/tests/ui/macros/issue-98466.fixed similarity index 100% rename from src/test/ui/macros/issue-98466.fixed rename to tests/ui/macros/issue-98466.fixed diff --git a/src/test/ui/macros/issue-98466.rs b/tests/ui/macros/issue-98466.rs similarity index 100% rename from src/test/ui/macros/issue-98466.rs rename to tests/ui/macros/issue-98466.rs diff --git a/src/test/ui/macros/issue-98466.stderr b/tests/ui/macros/issue-98466.stderr similarity index 100% rename from src/test/ui/macros/issue-98466.stderr rename to tests/ui/macros/issue-98466.stderr diff --git a/src/test/ui/macros/issue-99261.rs b/tests/ui/macros/issue-99261.rs similarity index 100% rename from src/test/ui/macros/issue-99261.rs rename to tests/ui/macros/issue-99261.rs diff --git a/src/test/ui/macros/issue-99265.fixed b/tests/ui/macros/issue-99265.fixed similarity index 100% rename from src/test/ui/macros/issue-99265.fixed rename to tests/ui/macros/issue-99265.fixed diff --git a/src/test/ui/macros/issue-99265.rs b/tests/ui/macros/issue-99265.rs similarity index 100% rename from src/test/ui/macros/issue-99265.rs rename to tests/ui/macros/issue-99265.rs diff --git a/src/test/ui/macros/issue-99265.stderr b/tests/ui/macros/issue-99265.stderr similarity index 100% rename from src/test/ui/macros/issue-99265.stderr rename to tests/ui/macros/issue-99265.stderr diff --git a/src/test/ui/macros/issue-99907.fixed b/tests/ui/macros/issue-99907.fixed similarity index 100% rename from src/test/ui/macros/issue-99907.fixed rename to tests/ui/macros/issue-99907.fixed diff --git a/src/test/ui/macros/issue-99907.rs b/tests/ui/macros/issue-99907.rs similarity index 100% rename from src/test/ui/macros/issue-99907.rs rename to tests/ui/macros/issue-99907.rs diff --git a/src/test/ui/macros/issue-99907.stderr b/tests/ui/macros/issue-99907.stderr similarity index 100% rename from src/test/ui/macros/issue-99907.stderr rename to tests/ui/macros/issue-99907.stderr diff --git a/src/test/ui/macros/lint-trailing-macro-call.rs b/tests/ui/macros/lint-trailing-macro-call.rs similarity index 100% rename from src/test/ui/macros/lint-trailing-macro-call.rs rename to tests/ui/macros/lint-trailing-macro-call.rs diff --git a/src/test/ui/macros/lint-trailing-macro-call.stderr b/tests/ui/macros/lint-trailing-macro-call.stderr similarity index 100% rename from src/test/ui/macros/lint-trailing-macro-call.stderr rename to tests/ui/macros/lint-trailing-macro-call.stderr diff --git a/src/test/ui/macros/local-ambiguity-multiple-parsing-options.rs b/tests/ui/macros/local-ambiguity-multiple-parsing-options.rs similarity index 100% rename from src/test/ui/macros/local-ambiguity-multiple-parsing-options.rs rename to tests/ui/macros/local-ambiguity-multiple-parsing-options.rs diff --git a/src/test/ui/macros/local-ambiguity-multiple-parsing-options.stderr b/tests/ui/macros/local-ambiguity-multiple-parsing-options.stderr similarity index 100% rename from src/test/ui/macros/local-ambiguity-multiple-parsing-options.stderr rename to tests/ui/macros/local-ambiguity-multiple-parsing-options.stderr diff --git a/src/test/ui/macros/log_syntax-trace_macros-macro-locations.rs b/tests/ui/macros/log_syntax-trace_macros-macro-locations.rs similarity index 100% rename from src/test/ui/macros/log_syntax-trace_macros-macro-locations.rs rename to tests/ui/macros/log_syntax-trace_macros-macro-locations.rs diff --git a/src/test/ui/macros/log_syntax-trace_macros-macro-locations.stdout b/tests/ui/macros/log_syntax-trace_macros-macro-locations.stdout similarity index 100% rename from src/test/ui/macros/log_syntax-trace_macros-macro-locations.stdout rename to tests/ui/macros/log_syntax-trace_macros-macro-locations.stdout diff --git a/src/test/ui/macros/macro-2.rs b/tests/ui/macros/macro-2.rs similarity index 100% rename from src/test/ui/macros/macro-2.rs rename to tests/ui/macros/macro-2.rs diff --git a/src/test/ui/macros/macro-as-fn-body.rs b/tests/ui/macros/macro-as-fn-body.rs similarity index 100% rename from src/test/ui/macros/macro-as-fn-body.rs rename to tests/ui/macros/macro-as-fn-body.rs diff --git a/src/test/ui/macros/macro-at-most-once-rep-2015-rpass.rs b/tests/ui/macros/macro-at-most-once-rep-2015-rpass.rs similarity index 100% rename from src/test/ui/macros/macro-at-most-once-rep-2015-rpass.rs rename to tests/ui/macros/macro-at-most-once-rep-2015-rpass.rs diff --git a/src/test/ui/macros/macro-at-most-once-rep-2015.rs b/tests/ui/macros/macro-at-most-once-rep-2015.rs similarity index 100% rename from src/test/ui/macros/macro-at-most-once-rep-2015.rs rename to tests/ui/macros/macro-at-most-once-rep-2015.rs diff --git a/src/test/ui/macros/macro-at-most-once-rep-2015.stderr b/tests/ui/macros/macro-at-most-once-rep-2015.stderr similarity index 100% rename from src/test/ui/macros/macro-at-most-once-rep-2015.stderr rename to tests/ui/macros/macro-at-most-once-rep-2015.stderr diff --git a/src/test/ui/macros/macro-at-most-once-rep-2018-rpass.rs b/tests/ui/macros/macro-at-most-once-rep-2018-rpass.rs similarity index 100% rename from src/test/ui/macros/macro-at-most-once-rep-2018-rpass.rs rename to tests/ui/macros/macro-at-most-once-rep-2018-rpass.rs diff --git a/src/test/ui/macros/macro-at-most-once-rep-2018.rs b/tests/ui/macros/macro-at-most-once-rep-2018.rs similarity index 100% rename from src/test/ui/macros/macro-at-most-once-rep-2018.rs rename to tests/ui/macros/macro-at-most-once-rep-2018.rs diff --git a/src/test/ui/macros/macro-at-most-once-rep-2018.stderr b/tests/ui/macros/macro-at-most-once-rep-2018.stderr similarity index 100% rename from src/test/ui/macros/macro-at-most-once-rep-2018.stderr rename to tests/ui/macros/macro-at-most-once-rep-2018.stderr diff --git a/src/test/ui/macros/macro-attribute-expansion.rs b/tests/ui/macros/macro-attribute-expansion.rs similarity index 100% rename from src/test/ui/macros/macro-attribute-expansion.rs rename to tests/ui/macros/macro-attribute-expansion.rs diff --git a/src/test/ui/macros/macro-attribute.rs b/tests/ui/macros/macro-attribute.rs similarity index 100% rename from src/test/ui/macros/macro-attribute.rs rename to tests/ui/macros/macro-attribute.rs diff --git a/src/test/ui/macros/macro-attribute.stderr b/tests/ui/macros/macro-attribute.stderr similarity index 100% rename from src/test/ui/macros/macro-attribute.stderr rename to tests/ui/macros/macro-attribute.stderr diff --git a/src/test/ui/macros/macro-attributes.rs b/tests/ui/macros/macro-attributes.rs similarity index 100% rename from src/test/ui/macros/macro-attributes.rs rename to tests/ui/macros/macro-attributes.rs diff --git a/src/test/ui/macros/macro-backtrace-invalid-internals.rs b/tests/ui/macros/macro-backtrace-invalid-internals.rs similarity index 100% rename from src/test/ui/macros/macro-backtrace-invalid-internals.rs rename to tests/ui/macros/macro-backtrace-invalid-internals.rs diff --git a/src/test/ui/macros/macro-backtrace-invalid-internals.stderr b/tests/ui/macros/macro-backtrace-invalid-internals.stderr similarity index 100% rename from src/test/ui/macros/macro-backtrace-invalid-internals.stderr rename to tests/ui/macros/macro-backtrace-invalid-internals.stderr diff --git a/src/test/ui/macros/macro-backtrace-nested.rs b/tests/ui/macros/macro-backtrace-nested.rs similarity index 100% rename from src/test/ui/macros/macro-backtrace-nested.rs rename to tests/ui/macros/macro-backtrace-nested.rs diff --git a/src/test/ui/macros/macro-backtrace-nested.stderr b/tests/ui/macros/macro-backtrace-nested.stderr similarity index 100% rename from src/test/ui/macros/macro-backtrace-nested.stderr rename to tests/ui/macros/macro-backtrace-nested.stderr diff --git a/src/test/ui/macros/macro-backtrace-println.rs b/tests/ui/macros/macro-backtrace-println.rs similarity index 100% rename from src/test/ui/macros/macro-backtrace-println.rs rename to tests/ui/macros/macro-backtrace-println.rs diff --git a/src/test/ui/macros/macro-backtrace-println.stderr b/tests/ui/macros/macro-backtrace-println.stderr similarity index 100% rename from src/test/ui/macros/macro-backtrace-println.stderr rename to tests/ui/macros/macro-backtrace-println.stderr diff --git a/src/test/ui/macros/macro-block-nonterminal.rs b/tests/ui/macros/macro-block-nonterminal.rs similarity index 100% rename from src/test/ui/macros/macro-block-nonterminal.rs rename to tests/ui/macros/macro-block-nonterminal.rs diff --git a/src/test/ui/macros/macro-comma-behavior-rpass.rs b/tests/ui/macros/macro-comma-behavior-rpass.rs similarity index 100% rename from src/test/ui/macros/macro-comma-behavior-rpass.rs rename to tests/ui/macros/macro-comma-behavior-rpass.rs diff --git a/src/test/ui/macros/macro-comma-behavior.core.stderr b/tests/ui/macros/macro-comma-behavior.core.stderr similarity index 100% rename from src/test/ui/macros/macro-comma-behavior.core.stderr rename to tests/ui/macros/macro-comma-behavior.core.stderr diff --git a/src/test/ui/macros/macro-comma-behavior.rs b/tests/ui/macros/macro-comma-behavior.rs similarity index 100% rename from src/test/ui/macros/macro-comma-behavior.rs rename to tests/ui/macros/macro-comma-behavior.rs diff --git a/src/test/ui/macros/macro-comma-behavior.std.stderr b/tests/ui/macros/macro-comma-behavior.std.stderr similarity index 100% rename from src/test/ui/macros/macro-comma-behavior.std.stderr rename to tests/ui/macros/macro-comma-behavior.std.stderr diff --git a/src/test/ui/macros/macro-comma-support-rpass.rs b/tests/ui/macros/macro-comma-support-rpass.rs similarity index 100% rename from src/test/ui/macros/macro-comma-support-rpass.rs rename to tests/ui/macros/macro-comma-support-rpass.rs diff --git a/src/test/ui/macros/macro-comma-support.rs b/tests/ui/macros/macro-comma-support.rs similarity index 100% rename from src/test/ui/macros/macro-comma-support.rs rename to tests/ui/macros/macro-comma-support.rs diff --git a/src/test/ui/macros/macro-comma-support.stderr b/tests/ui/macros/macro-comma-support.stderr similarity index 100% rename from src/test/ui/macros/macro-comma-support.stderr rename to tests/ui/macros/macro-comma-support.stderr diff --git a/src/test/ui/macros/macro-context.rs b/tests/ui/macros/macro-context.rs similarity index 100% rename from src/test/ui/macros/macro-context.rs rename to tests/ui/macros/macro-context.rs diff --git a/src/test/ui/macros/macro-context.stderr b/tests/ui/macros/macro-context.stderr similarity index 100% rename from src/test/ui/macros/macro-context.stderr rename to tests/ui/macros/macro-context.stderr diff --git a/src/test/ui/macros/macro-crate-def-only.rs b/tests/ui/macros/macro-crate-def-only.rs similarity index 100% rename from src/test/ui/macros/macro-crate-def-only.rs rename to tests/ui/macros/macro-crate-def-only.rs diff --git a/src/test/ui/macros/macro-crate-nonterminal-non-root.rs b/tests/ui/macros/macro-crate-nonterminal-non-root.rs similarity index 100% rename from src/test/ui/macros/macro-crate-nonterminal-non-root.rs rename to tests/ui/macros/macro-crate-nonterminal-non-root.rs diff --git a/src/test/ui/macros/macro-crate-nonterminal-non-root.stderr b/tests/ui/macros/macro-crate-nonterminal-non-root.stderr similarity index 100% rename from src/test/ui/macros/macro-crate-nonterminal-non-root.stderr rename to tests/ui/macros/macro-crate-nonterminal-non-root.stderr diff --git a/src/test/ui/macros/macro-crate-nonterminal-renamed.rs b/tests/ui/macros/macro-crate-nonterminal-renamed.rs similarity index 100% rename from src/test/ui/macros/macro-crate-nonterminal-renamed.rs rename to tests/ui/macros/macro-crate-nonterminal-renamed.rs diff --git a/src/test/ui/macros/macro-crate-nonterminal.rs b/tests/ui/macros/macro-crate-nonterminal.rs similarity index 100% rename from src/test/ui/macros/macro-crate-nonterminal.rs rename to tests/ui/macros/macro-crate-nonterminal.rs diff --git a/src/test/ui/macros/macro-crate-use.rs b/tests/ui/macros/macro-crate-use.rs similarity index 100% rename from src/test/ui/macros/macro-crate-use.rs rename to tests/ui/macros/macro-crate-use.rs diff --git a/src/test/ui/macros/macro-deep_expansion.rs b/tests/ui/macros/macro-deep_expansion.rs similarity index 100% rename from src/test/ui/macros/macro-deep_expansion.rs rename to tests/ui/macros/macro-deep_expansion.rs diff --git a/src/test/ui/macros/macro-def-site-super.rs b/tests/ui/macros/macro-def-site-super.rs similarity index 100% rename from src/test/ui/macros/macro-def-site-super.rs rename to tests/ui/macros/macro-def-site-super.rs diff --git a/src/test/ui/macros/macro-delimiter-significance.rs b/tests/ui/macros/macro-delimiter-significance.rs similarity index 100% rename from src/test/ui/macros/macro-delimiter-significance.rs rename to tests/ui/macros/macro-delimiter-significance.rs diff --git a/src/test/ui/macros/macro-deprecation.rs b/tests/ui/macros/macro-deprecation.rs similarity index 100% rename from src/test/ui/macros/macro-deprecation.rs rename to tests/ui/macros/macro-deprecation.rs diff --git a/src/test/ui/macros/macro-deprecation.stderr b/tests/ui/macros/macro-deprecation.stderr similarity index 100% rename from src/test/ui/macros/macro-deprecation.stderr rename to tests/ui/macros/macro-deprecation.stderr diff --git a/src/test/ui/macros/macro-doc-comments.rs b/tests/ui/macros/macro-doc-comments.rs similarity index 100% rename from src/test/ui/macros/macro-doc-comments.rs rename to tests/ui/macros/macro-doc-comments.rs diff --git a/src/test/ui/macros/macro-doc-escapes.rs b/tests/ui/macros/macro-doc-escapes.rs similarity index 100% rename from src/test/ui/macros/macro-doc-escapes.rs rename to tests/ui/macros/macro-doc-escapes.rs diff --git a/src/test/ui/macros/macro-doc-raw-str-hashes.rs b/tests/ui/macros/macro-doc-raw-str-hashes.rs similarity index 100% rename from src/test/ui/macros/macro-doc-raw-str-hashes.rs rename to tests/ui/macros/macro-doc-raw-str-hashes.rs diff --git a/src/test/ui/macros/macro-error.rs b/tests/ui/macros/macro-error.rs similarity index 100% rename from src/test/ui/macros/macro-error.rs rename to tests/ui/macros/macro-error.rs diff --git a/src/test/ui/macros/macro-error.stderr b/tests/ui/macros/macro-error.stderr similarity index 100% rename from src/test/ui/macros/macro-error.stderr rename to tests/ui/macros/macro-error.stderr diff --git a/src/test/ui/macros/macro-expanded-include/file.txt b/tests/ui/macros/macro-expanded-include/file.txt similarity index 100% rename from src/test/ui/macros/macro-expanded-include/file.txt rename to tests/ui/macros/macro-expanded-include/file.txt diff --git a/src/test/ui/macros/macro-expanded-include/foo/mod.rs b/tests/ui/macros/macro-expanded-include/foo/mod.rs similarity index 100% rename from src/test/ui/macros/macro-expanded-include/foo/mod.rs rename to tests/ui/macros/macro-expanded-include/foo/mod.rs diff --git a/src/test/ui/macros/macro-expanded-include/test.rs b/tests/ui/macros/macro-expanded-include/test.rs similarity index 100% rename from src/test/ui/macros/macro-expanded-include/test.rs rename to tests/ui/macros/macro-expanded-include/test.rs diff --git a/src/test/ui/macros/macro-expansion-tests.rs b/tests/ui/macros/macro-expansion-tests.rs similarity index 100% rename from src/test/ui/macros/macro-expansion-tests.rs rename to tests/ui/macros/macro-expansion-tests.rs diff --git a/src/test/ui/macros/macro-expansion-tests.stderr b/tests/ui/macros/macro-expansion-tests.stderr similarity index 100% rename from src/test/ui/macros/macro-expansion-tests.stderr rename to tests/ui/macros/macro-expansion-tests.stderr diff --git a/src/test/ui/macros/macro-export-inner-module.rs b/tests/ui/macros/macro-export-inner-module.rs similarity index 100% rename from src/test/ui/macros/macro-export-inner-module.rs rename to tests/ui/macros/macro-export-inner-module.rs diff --git a/src/test/ui/macros/macro-first-set.rs b/tests/ui/macros/macro-first-set.rs similarity index 100% rename from src/test/ui/macros/macro-first-set.rs rename to tests/ui/macros/macro-first-set.rs diff --git a/src/test/ui/macros/macro-follow-rpass.rs b/tests/ui/macros/macro-follow-rpass.rs similarity index 100% rename from src/test/ui/macros/macro-follow-rpass.rs rename to tests/ui/macros/macro-follow-rpass.rs diff --git a/src/test/ui/macros/macro-follow.rs b/tests/ui/macros/macro-follow.rs similarity index 100% rename from src/test/ui/macros/macro-follow.rs rename to tests/ui/macros/macro-follow.rs diff --git a/src/test/ui/macros/macro-follow.stderr b/tests/ui/macros/macro-follow.stderr similarity index 100% rename from src/test/ui/macros/macro-follow.stderr rename to tests/ui/macros/macro-follow.stderr diff --git a/src/test/ui/macros/macro-followed-by-seq-bad.rs b/tests/ui/macros/macro-followed-by-seq-bad.rs similarity index 100% rename from src/test/ui/macros/macro-followed-by-seq-bad.rs rename to tests/ui/macros/macro-followed-by-seq-bad.rs diff --git a/src/test/ui/macros/macro-followed-by-seq-bad.stderr b/tests/ui/macros/macro-followed-by-seq-bad.stderr similarity index 100% rename from src/test/ui/macros/macro-followed-by-seq-bad.stderr rename to tests/ui/macros/macro-followed-by-seq-bad.stderr diff --git a/src/test/ui/macros/macro-followed-by-seq.rs b/tests/ui/macros/macro-followed-by-seq.rs similarity index 100% rename from src/test/ui/macros/macro-followed-by-seq.rs rename to tests/ui/macros/macro-followed-by-seq.rs diff --git a/src/test/ui/macros/macro-in-expression-context-2.rs b/tests/ui/macros/macro-in-expression-context-2.rs similarity index 100% rename from src/test/ui/macros/macro-in-expression-context-2.rs rename to tests/ui/macros/macro-in-expression-context-2.rs diff --git a/src/test/ui/macros/macro-in-expression-context-2.stderr b/tests/ui/macros/macro-in-expression-context-2.stderr similarity index 100% rename from src/test/ui/macros/macro-in-expression-context-2.stderr rename to tests/ui/macros/macro-in-expression-context-2.stderr diff --git a/src/test/ui/macros/macro-in-expression-context.fixed b/tests/ui/macros/macro-in-expression-context.fixed similarity index 100% rename from src/test/ui/macros/macro-in-expression-context.fixed rename to tests/ui/macros/macro-in-expression-context.fixed diff --git a/src/test/ui/macros/macro-in-expression-context.rs b/tests/ui/macros/macro-in-expression-context.rs similarity index 100% rename from src/test/ui/macros/macro-in-expression-context.rs rename to tests/ui/macros/macro-in-expression-context.rs diff --git a/src/test/ui/macros/macro-in-expression-context.stderr b/tests/ui/macros/macro-in-expression-context.stderr similarity index 100% rename from src/test/ui/macros/macro-in-expression-context.stderr rename to tests/ui/macros/macro-in-expression-context.stderr diff --git a/src/test/ui/macros/macro-in-fn.rs b/tests/ui/macros/macro-in-fn.rs similarity index 100% rename from src/test/ui/macros/macro-in-fn.rs rename to tests/ui/macros/macro-in-fn.rs diff --git a/src/test/ui/macros/macro-include-items.rs b/tests/ui/macros/macro-include-items.rs similarity index 100% rename from src/test/ui/macros/macro-include-items.rs rename to tests/ui/macros/macro-include-items.rs diff --git a/src/test/ui/macros/macro-inner-attributes.rs b/tests/ui/macros/macro-inner-attributes.rs similarity index 100% rename from src/test/ui/macros/macro-inner-attributes.rs rename to tests/ui/macros/macro-inner-attributes.rs diff --git a/src/test/ui/macros/macro-inner-attributes.stderr b/tests/ui/macros/macro-inner-attributes.stderr similarity index 100% rename from src/test/ui/macros/macro-inner-attributes.stderr rename to tests/ui/macros/macro-inner-attributes.stderr diff --git a/src/test/ui/macros/macro-input-future-proofing.rs b/tests/ui/macros/macro-input-future-proofing.rs similarity index 100% rename from src/test/ui/macros/macro-input-future-proofing.rs rename to tests/ui/macros/macro-input-future-proofing.rs diff --git a/src/test/ui/macros/macro-input-future-proofing.stderr b/tests/ui/macros/macro-input-future-proofing.stderr similarity index 100% rename from src/test/ui/macros/macro-input-future-proofing.stderr rename to tests/ui/macros/macro-input-future-proofing.stderr diff --git a/src/test/ui/macros/macro-interpolation.rs b/tests/ui/macros/macro-interpolation.rs similarity index 100% rename from src/test/ui/macros/macro-interpolation.rs rename to tests/ui/macros/macro-interpolation.rs diff --git a/src/test/ui/macros/macro-invalid-fragment-spec.rs b/tests/ui/macros/macro-invalid-fragment-spec.rs similarity index 100% rename from src/test/ui/macros/macro-invalid-fragment-spec.rs rename to tests/ui/macros/macro-invalid-fragment-spec.rs diff --git a/src/test/ui/macros/macro-invalid-fragment-spec.stderr b/tests/ui/macros/macro-invalid-fragment-spec.stderr similarity index 100% rename from src/test/ui/macros/macro-invalid-fragment-spec.stderr rename to tests/ui/macros/macro-invalid-fragment-spec.stderr diff --git a/src/test/ui/macros/macro-invocation-in-count-expr-fixed-array-type.rs b/tests/ui/macros/macro-invocation-in-count-expr-fixed-array-type.rs similarity index 100% rename from src/test/ui/macros/macro-invocation-in-count-expr-fixed-array-type.rs rename to tests/ui/macros/macro-invocation-in-count-expr-fixed-array-type.rs diff --git a/src/test/ui/macros/macro-lifetime-used-with-bound.rs b/tests/ui/macros/macro-lifetime-used-with-bound.rs similarity index 100% rename from src/test/ui/macros/macro-lifetime-used-with-bound.rs rename to tests/ui/macros/macro-lifetime-used-with-bound.rs diff --git a/src/test/ui/macros/macro-lifetime-used-with-labels.rs b/tests/ui/macros/macro-lifetime-used-with-labels.rs similarity index 100% rename from src/test/ui/macros/macro-lifetime-used-with-labels.rs rename to tests/ui/macros/macro-lifetime-used-with-labels.rs diff --git a/src/test/ui/macros/macro-lifetime-used-with-static.rs b/tests/ui/macros/macro-lifetime-used-with-static.rs similarity index 100% rename from src/test/ui/macros/macro-lifetime-used-with-static.rs rename to tests/ui/macros/macro-lifetime-used-with-static.rs diff --git a/src/test/ui/macros/macro-lifetime.rs b/tests/ui/macros/macro-lifetime.rs similarity index 100% rename from src/test/ui/macros/macro-lifetime.rs rename to tests/ui/macros/macro-lifetime.rs diff --git a/src/test/ui/macros/macro-literal.rs b/tests/ui/macros/macro-literal.rs similarity index 100% rename from src/test/ui/macros/macro-literal.rs rename to tests/ui/macros/macro-literal.rs diff --git a/src/test/ui/macros/macro-local-data-key-priv.rs b/tests/ui/macros/macro-local-data-key-priv.rs similarity index 100% rename from src/test/ui/macros/macro-local-data-key-priv.rs rename to tests/ui/macros/macro-local-data-key-priv.rs diff --git a/src/test/ui/macros/macro-local-data-key-priv.stderr b/tests/ui/macros/macro-local-data-key-priv.stderr similarity index 100% rename from src/test/ui/macros/macro-local-data-key-priv.stderr rename to tests/ui/macros/macro-local-data-key-priv.stderr diff --git a/src/test/ui/macros/macro-match-nonterminal.rs b/tests/ui/macros/macro-match-nonterminal.rs similarity index 100% rename from src/test/ui/macros/macro-match-nonterminal.rs rename to tests/ui/macros/macro-match-nonterminal.rs diff --git a/src/test/ui/macros/macro-match-nonterminal.stderr b/tests/ui/macros/macro-match-nonterminal.stderr similarity index 100% rename from src/test/ui/macros/macro-match-nonterminal.stderr rename to tests/ui/macros/macro-match-nonterminal.stderr diff --git a/src/test/ui/macros/macro-meta-items-modern.rs b/tests/ui/macros/macro-meta-items-modern.rs similarity index 100% rename from src/test/ui/macros/macro-meta-items-modern.rs rename to tests/ui/macros/macro-meta-items-modern.rs diff --git a/src/test/ui/macros/macro-meta-items.rs b/tests/ui/macros/macro-meta-items.rs similarity index 100% rename from src/test/ui/macros/macro-meta-items.rs rename to tests/ui/macros/macro-meta-items.rs diff --git a/src/test/ui/macros/macro-method-issue-4621.rs b/tests/ui/macros/macro-method-issue-4621.rs similarity index 100% rename from src/test/ui/macros/macro-method-issue-4621.rs rename to tests/ui/macros/macro-method-issue-4621.rs diff --git a/src/test/ui/macros/macro-missing-delimiters.rs b/tests/ui/macros/macro-missing-delimiters.rs similarity index 100% rename from src/test/ui/macros/macro-missing-delimiters.rs rename to tests/ui/macros/macro-missing-delimiters.rs diff --git a/src/test/ui/macros/macro-missing-delimiters.stderr b/tests/ui/macros/macro-missing-delimiters.stderr similarity index 100% rename from src/test/ui/macros/macro-missing-delimiters.stderr rename to tests/ui/macros/macro-missing-delimiters.stderr diff --git a/src/test/ui/macros/macro-missing-fragment-deduplication.rs b/tests/ui/macros/macro-missing-fragment-deduplication.rs similarity index 100% rename from src/test/ui/macros/macro-missing-fragment-deduplication.rs rename to tests/ui/macros/macro-missing-fragment-deduplication.rs diff --git a/src/test/ui/macros/macro-missing-fragment-deduplication.stderr b/tests/ui/macros/macro-missing-fragment-deduplication.stderr similarity index 100% rename from src/test/ui/macros/macro-missing-fragment-deduplication.stderr rename to tests/ui/macros/macro-missing-fragment-deduplication.stderr diff --git a/src/test/ui/macros/macro-missing-fragment.rs b/tests/ui/macros/macro-missing-fragment.rs similarity index 100% rename from src/test/ui/macros/macro-missing-fragment.rs rename to tests/ui/macros/macro-missing-fragment.rs diff --git a/src/test/ui/macros/macro-missing-fragment.stderr b/tests/ui/macros/macro-missing-fragment.stderr similarity index 100% rename from src/test/ui/macros/macro-missing-fragment.stderr rename to tests/ui/macros/macro-missing-fragment.stderr diff --git a/src/test/ui/macros/macro-multiple-items.rs b/tests/ui/macros/macro-multiple-items.rs similarity index 100% rename from src/test/ui/macros/macro-multiple-items.rs rename to tests/ui/macros/macro-multiple-items.rs diff --git a/src/test/ui/macros/macro-multiple-matcher-bindings.rs b/tests/ui/macros/macro-multiple-matcher-bindings.rs similarity index 100% rename from src/test/ui/macros/macro-multiple-matcher-bindings.rs rename to tests/ui/macros/macro-multiple-matcher-bindings.rs diff --git a/src/test/ui/macros/macro-multiple-matcher-bindings.stderr b/tests/ui/macros/macro-multiple-matcher-bindings.stderr similarity index 100% rename from src/test/ui/macros/macro-multiple-matcher-bindings.stderr rename to tests/ui/macros/macro-multiple-matcher-bindings.stderr diff --git a/src/test/ui/macros/macro-name-typo.rs b/tests/ui/macros/macro-name-typo.rs similarity index 100% rename from src/test/ui/macros/macro-name-typo.rs rename to tests/ui/macros/macro-name-typo.rs diff --git a/src/test/ui/macros/macro-name-typo.stderr b/tests/ui/macros/macro-name-typo.stderr similarity index 100% rename from src/test/ui/macros/macro-name-typo.stderr rename to tests/ui/macros/macro-name-typo.stderr diff --git a/src/test/ui/macros/macro-named-default.rs b/tests/ui/macros/macro-named-default.rs similarity index 100% rename from src/test/ui/macros/macro-named-default.rs rename to tests/ui/macros/macro-named-default.rs diff --git a/src/test/ui/macros/macro-nested_definition_issue-31946.rs b/tests/ui/macros/macro-nested_definition_issue-31946.rs similarity index 100% rename from src/test/ui/macros/macro-nested_definition_issue-31946.rs rename to tests/ui/macros/macro-nested_definition_issue-31946.rs diff --git a/src/test/ui/macros/macro-nested_expr.rs b/tests/ui/macros/macro-nested_expr.rs similarity index 100% rename from src/test/ui/macros/macro-nested_expr.rs rename to tests/ui/macros/macro-nested_expr.rs diff --git a/src/test/ui/macros/macro-nested_stmt_macros.rs b/tests/ui/macros/macro-nested_stmt_macros.rs similarity index 100% rename from src/test/ui/macros/macro-nested_stmt_macros.rs rename to tests/ui/macros/macro-nested_stmt_macros.rs diff --git a/src/test/ui/macros/macro-non-lifetime.rs b/tests/ui/macros/macro-non-lifetime.rs similarity index 100% rename from src/test/ui/macros/macro-non-lifetime.rs rename to tests/ui/macros/macro-non-lifetime.rs diff --git a/src/test/ui/macros/macro-non-lifetime.stderr b/tests/ui/macros/macro-non-lifetime.stderr similarity index 100% rename from src/test/ui/macros/macro-non-lifetime.stderr rename to tests/ui/macros/macro-non-lifetime.stderr diff --git a/src/test/ui/macros/macro-nt-list.rs b/tests/ui/macros/macro-nt-list.rs similarity index 100% rename from src/test/ui/macros/macro-nt-list.rs rename to tests/ui/macros/macro-nt-list.rs diff --git a/src/test/ui/macros/macro-of-higher-order.rs b/tests/ui/macros/macro-of-higher-order.rs similarity index 100% rename from src/test/ui/macros/macro-of-higher-order.rs rename to tests/ui/macros/macro-of-higher-order.rs diff --git a/src/test/ui/macros/macro-or-patterns-back-compat.fixed b/tests/ui/macros/macro-or-patterns-back-compat.fixed similarity index 100% rename from src/test/ui/macros/macro-or-patterns-back-compat.fixed rename to tests/ui/macros/macro-or-patterns-back-compat.fixed diff --git a/src/test/ui/macros/macro-or-patterns-back-compat.rs b/tests/ui/macros/macro-or-patterns-back-compat.rs similarity index 100% rename from src/test/ui/macros/macro-or-patterns-back-compat.rs rename to tests/ui/macros/macro-or-patterns-back-compat.rs diff --git a/src/test/ui/macros/macro-or-patterns-back-compat.stderr b/tests/ui/macros/macro-or-patterns-back-compat.stderr similarity index 100% rename from src/test/ui/macros/macro-or-patterns-back-compat.stderr rename to tests/ui/macros/macro-or-patterns-back-compat.stderr diff --git a/src/test/ui/macros/macro-outer-attributes.rs b/tests/ui/macros/macro-outer-attributes.rs similarity index 100% rename from src/test/ui/macros/macro-outer-attributes.rs rename to tests/ui/macros/macro-outer-attributes.rs diff --git a/src/test/ui/macros/macro-outer-attributes.stderr b/tests/ui/macros/macro-outer-attributes.stderr similarity index 100% rename from src/test/ui/macros/macro-outer-attributes.stderr rename to tests/ui/macros/macro-outer-attributes.stderr diff --git a/src/test/ui/macros/macro-parameter-span.rs b/tests/ui/macros/macro-parameter-span.rs similarity index 100% rename from src/test/ui/macros/macro-parameter-span.rs rename to tests/ui/macros/macro-parameter-span.rs diff --git a/src/test/ui/macros/macro-parameter-span.stderr b/tests/ui/macros/macro-parameter-span.stderr similarity index 100% rename from src/test/ui/macros/macro-parameter-span.stderr rename to tests/ui/macros/macro-parameter-span.stderr diff --git a/src/test/ui/macros/macro-pat-follow-2018.rs b/tests/ui/macros/macro-pat-follow-2018.rs similarity index 100% rename from src/test/ui/macros/macro-pat-follow-2018.rs rename to tests/ui/macros/macro-pat-follow-2018.rs diff --git a/src/test/ui/macros/macro-pat-follow.rs b/tests/ui/macros/macro-pat-follow.rs similarity index 100% rename from src/test/ui/macros/macro-pat-follow.rs rename to tests/ui/macros/macro-pat-follow.rs diff --git a/src/test/ui/macros/macro-pat-neg-lit.rs b/tests/ui/macros/macro-pat-neg-lit.rs similarity index 100% rename from src/test/ui/macros/macro-pat-neg-lit.rs rename to tests/ui/macros/macro-pat-neg-lit.rs diff --git a/src/test/ui/macros/macro-pat-pattern-followed-by-or-in-2021.rs b/tests/ui/macros/macro-pat-pattern-followed-by-or-in-2021.rs similarity index 100% rename from src/test/ui/macros/macro-pat-pattern-followed-by-or-in-2021.rs rename to tests/ui/macros/macro-pat-pattern-followed-by-or-in-2021.rs diff --git a/src/test/ui/macros/macro-pat-pattern-followed-by-or-in-2021.stderr b/tests/ui/macros/macro-pat-pattern-followed-by-or-in-2021.stderr similarity index 100% rename from src/test/ui/macros/macro-pat-pattern-followed-by-or-in-2021.stderr rename to tests/ui/macros/macro-pat-pattern-followed-by-or-in-2021.stderr diff --git a/src/test/ui/macros/macro-pat-pattern-followed-by-or.rs b/tests/ui/macros/macro-pat-pattern-followed-by-or.rs similarity index 100% rename from src/test/ui/macros/macro-pat-pattern-followed-by-or.rs rename to tests/ui/macros/macro-pat-pattern-followed-by-or.rs diff --git a/src/test/ui/macros/macro-pat.rs b/tests/ui/macros/macro-pat.rs similarity index 100% rename from src/test/ui/macros/macro-pat.rs rename to tests/ui/macros/macro-pat.rs diff --git a/src/test/ui/macros/macro-pat2021-pattern-followed-by-or.rs b/tests/ui/macros/macro-pat2021-pattern-followed-by-or.rs similarity index 100% rename from src/test/ui/macros/macro-pat2021-pattern-followed-by-or.rs rename to tests/ui/macros/macro-pat2021-pattern-followed-by-or.rs diff --git a/src/test/ui/macros/macro-pat2021-pattern-followed-by-or.stderr b/tests/ui/macros/macro-pat2021-pattern-followed-by-or.stderr similarity index 100% rename from src/test/ui/macros/macro-pat2021-pattern-followed-by-or.stderr rename to tests/ui/macros/macro-pat2021-pattern-followed-by-or.stderr diff --git a/src/test/ui/macros/macro-path-prelude-fail-1.rs b/tests/ui/macros/macro-path-prelude-fail-1.rs similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-1.rs rename to tests/ui/macros/macro-path-prelude-fail-1.rs diff --git a/src/test/ui/macros/macro-path-prelude-fail-1.stderr b/tests/ui/macros/macro-path-prelude-fail-1.stderr similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-1.stderr rename to tests/ui/macros/macro-path-prelude-fail-1.stderr diff --git a/src/test/ui/macros/macro-path-prelude-fail-2.rs b/tests/ui/macros/macro-path-prelude-fail-2.rs similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-2.rs rename to tests/ui/macros/macro-path-prelude-fail-2.rs diff --git a/src/test/ui/macros/macro-path-prelude-fail-2.stderr b/tests/ui/macros/macro-path-prelude-fail-2.stderr similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-2.stderr rename to tests/ui/macros/macro-path-prelude-fail-2.stderr diff --git a/src/test/ui/macros/macro-path-prelude-fail-3.rs b/tests/ui/macros/macro-path-prelude-fail-3.rs similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-3.rs rename to tests/ui/macros/macro-path-prelude-fail-3.rs diff --git a/src/test/ui/macros/macro-path-prelude-fail-3.stderr b/tests/ui/macros/macro-path-prelude-fail-3.stderr similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-3.stderr rename to tests/ui/macros/macro-path-prelude-fail-3.stderr diff --git a/src/test/ui/macros/macro-path-prelude-fail-4.rs b/tests/ui/macros/macro-path-prelude-fail-4.rs similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-4.rs rename to tests/ui/macros/macro-path-prelude-fail-4.rs diff --git a/src/test/ui/macros/macro-path-prelude-fail-4.stderr b/tests/ui/macros/macro-path-prelude-fail-4.stderr similarity index 100% rename from src/test/ui/macros/macro-path-prelude-fail-4.stderr rename to tests/ui/macros/macro-path-prelude-fail-4.stderr diff --git a/src/test/ui/macros/macro-path-prelude-pass.rs b/tests/ui/macros/macro-path-prelude-pass.rs similarity index 100% rename from src/test/ui/macros/macro-path-prelude-pass.rs rename to tests/ui/macros/macro-path-prelude-pass.rs diff --git a/src/test/ui/macros/macro-path-prelude-shadowing.rs b/tests/ui/macros/macro-path-prelude-shadowing.rs similarity index 100% rename from src/test/ui/macros/macro-path-prelude-shadowing.rs rename to tests/ui/macros/macro-path-prelude-shadowing.rs diff --git a/src/test/ui/macros/macro-path-prelude-shadowing.stderr b/tests/ui/macros/macro-path-prelude-shadowing.stderr similarity index 100% rename from src/test/ui/macros/macro-path-prelude-shadowing.stderr rename to tests/ui/macros/macro-path-prelude-shadowing.stderr diff --git a/src/test/ui/macros/macro-path.rs b/tests/ui/macros/macro-path.rs similarity index 100% rename from src/test/ui/macros/macro-path.rs rename to tests/ui/macros/macro-path.rs diff --git a/src/test/ui/macros/macro-pub-matcher.rs b/tests/ui/macros/macro-pub-matcher.rs similarity index 100% rename from src/test/ui/macros/macro-pub-matcher.rs rename to tests/ui/macros/macro-pub-matcher.rs diff --git a/src/test/ui/macros/macro-reexport-removed.rs b/tests/ui/macros/macro-reexport-removed.rs similarity index 100% rename from src/test/ui/macros/macro-reexport-removed.rs rename to tests/ui/macros/macro-reexport-removed.rs diff --git a/src/test/ui/macros/macro-reexport-removed.stderr b/tests/ui/macros/macro-reexport-removed.stderr similarity index 100% rename from src/test/ui/macros/macro-reexport-removed.stderr rename to tests/ui/macros/macro-reexport-removed.stderr diff --git a/src/test/ui/macros/macro-seq-followed-by-seq.rs b/tests/ui/macros/macro-seq-followed-by-seq.rs similarity index 100% rename from src/test/ui/macros/macro-seq-followed-by-seq.rs rename to tests/ui/macros/macro-seq-followed-by-seq.rs diff --git a/src/test/ui/macros/macro-shadowing-relaxed.rs b/tests/ui/macros/macro-shadowing-relaxed.rs similarity index 100% rename from src/test/ui/macros/macro-shadowing-relaxed.rs rename to tests/ui/macros/macro-shadowing-relaxed.rs diff --git a/src/test/ui/macros/macro-shadowing.rs b/tests/ui/macros/macro-shadowing.rs similarity index 100% rename from src/test/ui/macros/macro-shadowing.rs rename to tests/ui/macros/macro-shadowing.rs diff --git a/src/test/ui/macros/macro-shadowing.stderr b/tests/ui/macros/macro-shadowing.stderr similarity index 100% rename from src/test/ui/macros/macro-shadowing.stderr rename to tests/ui/macros/macro-shadowing.stderr diff --git a/src/test/ui/macros/macro-stability-rpass.rs b/tests/ui/macros/macro-stability-rpass.rs similarity index 100% rename from src/test/ui/macros/macro-stability-rpass.rs rename to tests/ui/macros/macro-stability-rpass.rs diff --git a/src/test/ui/macros/macro-stability.rs b/tests/ui/macros/macro-stability.rs similarity index 100% rename from src/test/ui/macros/macro-stability.rs rename to tests/ui/macros/macro-stability.rs diff --git a/src/test/ui/macros/macro-stability.stderr b/tests/ui/macros/macro-stability.stderr similarity index 100% rename from src/test/ui/macros/macro-stability.stderr rename to tests/ui/macros/macro-stability.stderr diff --git a/src/test/ui/macros/macro-stmt-matchers.rs b/tests/ui/macros/macro-stmt-matchers.rs similarity index 100% rename from src/test/ui/macros/macro-stmt-matchers.rs rename to tests/ui/macros/macro-stmt-matchers.rs diff --git a/src/test/ui/macros/macro-stmt.rs b/tests/ui/macros/macro-stmt.rs similarity index 100% rename from src/test/ui/macros/macro-stmt.rs rename to tests/ui/macros/macro-stmt.rs diff --git a/src/test/ui/macros/macro-stmt_macro_in_expr_macro.rs b/tests/ui/macros/macro-stmt_macro_in_expr_macro.rs similarity index 100% rename from src/test/ui/macros/macro-stmt_macro_in_expr_macro.rs rename to tests/ui/macros/macro-stmt_macro_in_expr_macro.rs diff --git a/src/test/ui/macros/macro-tt-followed-by-seq.rs b/tests/ui/macros/macro-tt-followed-by-seq.rs similarity index 100% rename from src/test/ui/macros/macro-tt-followed-by-seq.rs rename to tests/ui/macros/macro-tt-followed-by-seq.rs diff --git a/src/test/ui/macros/macro-tt-matchers.rs b/tests/ui/macros/macro-tt-matchers.rs similarity index 100% rename from src/test/ui/macros/macro-tt-matchers.rs rename to tests/ui/macros/macro-tt-matchers.rs diff --git a/src/test/ui/macros/macro-use-all-and-none.rs b/tests/ui/macros/macro-use-all-and-none.rs similarity index 100% rename from src/test/ui/macros/macro-use-all-and-none.rs rename to tests/ui/macros/macro-use-all-and-none.rs diff --git a/src/test/ui/macros/macro-use-all-and-none.stderr b/tests/ui/macros/macro-use-all-and-none.stderr similarity index 100% rename from src/test/ui/macros/macro-use-all-and-none.stderr rename to tests/ui/macros/macro-use-all-and-none.stderr diff --git a/src/test/ui/macros/macro-use-all.rs b/tests/ui/macros/macro-use-all.rs similarity index 100% rename from src/test/ui/macros/macro-use-all.rs rename to tests/ui/macros/macro-use-all.rs diff --git a/src/test/ui/macros/macro-use-bad-args-1.rs b/tests/ui/macros/macro-use-bad-args-1.rs similarity index 100% rename from src/test/ui/macros/macro-use-bad-args-1.rs rename to tests/ui/macros/macro-use-bad-args-1.rs diff --git a/src/test/ui/macros/macro-use-bad-args-1.stderr b/tests/ui/macros/macro-use-bad-args-1.stderr similarity index 100% rename from src/test/ui/macros/macro-use-bad-args-1.stderr rename to tests/ui/macros/macro-use-bad-args-1.stderr diff --git a/src/test/ui/macros/macro-use-bad-args-2.rs b/tests/ui/macros/macro-use-bad-args-2.rs similarity index 100% rename from src/test/ui/macros/macro-use-bad-args-2.rs rename to tests/ui/macros/macro-use-bad-args-2.rs diff --git a/src/test/ui/macros/macro-use-bad-args-2.stderr b/tests/ui/macros/macro-use-bad-args-2.stderr similarity index 100% rename from src/test/ui/macros/macro-use-bad-args-2.stderr rename to tests/ui/macros/macro-use-bad-args-2.stderr diff --git a/src/test/ui/macros/macro-use-both.rs b/tests/ui/macros/macro-use-both.rs similarity index 100% rename from src/test/ui/macros/macro-use-both.rs rename to tests/ui/macros/macro-use-both.rs diff --git a/src/test/ui/macros/macro-use-one.rs b/tests/ui/macros/macro-use-one.rs similarity index 100% rename from src/test/ui/macros/macro-use-one.rs rename to tests/ui/macros/macro-use-one.rs diff --git a/src/test/ui/macros/macro-use-scope.rs b/tests/ui/macros/macro-use-scope.rs similarity index 100% rename from src/test/ui/macros/macro-use-scope.rs rename to tests/ui/macros/macro-use-scope.rs diff --git a/src/test/ui/macros/macro-use-undef.rs b/tests/ui/macros/macro-use-undef.rs similarity index 100% rename from src/test/ui/macros/macro-use-undef.rs rename to tests/ui/macros/macro-use-undef.rs diff --git a/src/test/ui/macros/macro-use-undef.stderr b/tests/ui/macros/macro-use-undef.stderr similarity index 100% rename from src/test/ui/macros/macro-use-undef.stderr rename to tests/ui/macros/macro-use-undef.stderr diff --git a/src/test/ui/macros/macro-use-wrong-name.rs b/tests/ui/macros/macro-use-wrong-name.rs similarity index 100% rename from src/test/ui/macros/macro-use-wrong-name.rs rename to tests/ui/macros/macro-use-wrong-name.rs diff --git a/src/test/ui/macros/macro-use-wrong-name.stderr b/tests/ui/macros/macro-use-wrong-name.stderr similarity index 100% rename from src/test/ui/macros/macro-use-wrong-name.stderr rename to tests/ui/macros/macro-use-wrong-name.stderr diff --git a/src/test/ui/macros/macro-with-attrs1.rs b/tests/ui/macros/macro-with-attrs1.rs similarity index 100% rename from src/test/ui/macros/macro-with-attrs1.rs rename to tests/ui/macros/macro-with-attrs1.rs diff --git a/src/test/ui/macros/macro-with-attrs2.rs b/tests/ui/macros/macro-with-attrs2.rs similarity index 100% rename from src/test/ui/macros/macro-with-attrs2.rs rename to tests/ui/macros/macro-with-attrs2.rs diff --git a/src/test/ui/macros/macro-with-braces-in-expr-position.rs b/tests/ui/macros/macro-with-braces-in-expr-position.rs similarity index 100% rename from src/test/ui/macros/macro-with-braces-in-expr-position.rs rename to tests/ui/macros/macro-with-braces-in-expr-position.rs diff --git a/src/test/ui/macros/macro_path_as_generic_bound.rs b/tests/ui/macros/macro_path_as_generic_bound.rs similarity index 100% rename from src/test/ui/macros/macro_path_as_generic_bound.rs rename to tests/ui/macros/macro_path_as_generic_bound.rs diff --git a/src/test/ui/macros/macro_path_as_generic_bound.stderr b/tests/ui/macros/macro_path_as_generic_bound.stderr similarity index 100% rename from src/test/ui/macros/macro_path_as_generic_bound.stderr rename to tests/ui/macros/macro_path_as_generic_bound.stderr diff --git a/src/test/ui/macros/macro_rules-unmatchable-literals.rs b/tests/ui/macros/macro_rules-unmatchable-literals.rs similarity index 100% rename from src/test/ui/macros/macro_rules-unmatchable-literals.rs rename to tests/ui/macros/macro_rules-unmatchable-literals.rs diff --git a/src/test/ui/macros/macro_rules-unmatchable-literals.stderr b/tests/ui/macros/macro_rules-unmatchable-literals.stderr similarity index 100% rename from src/test/ui/macros/macro_rules-unmatchable-literals.stderr rename to tests/ui/macros/macro_rules-unmatchable-literals.stderr diff --git a/src/test/ui/macros/macro_undefined.rs b/tests/ui/macros/macro_undefined.rs similarity index 100% rename from src/test/ui/macros/macro_undefined.rs rename to tests/ui/macros/macro_undefined.rs diff --git a/src/test/ui/macros/macro_undefined.stderr b/tests/ui/macros/macro_undefined.stderr similarity index 100% rename from src/test/ui/macros/macro_undefined.stderr rename to tests/ui/macros/macro_undefined.stderr diff --git a/src/test/ui/macros/macro_with_super_2.rs b/tests/ui/macros/macro_with_super_2.rs similarity index 100% rename from src/test/ui/macros/macro_with_super_2.rs rename to tests/ui/macros/macro_with_super_2.rs diff --git a/src/test/ui/macros/macros-in-extern.rs b/tests/ui/macros/macros-in-extern.rs similarity index 100% rename from src/test/ui/macros/macros-in-extern.rs rename to tests/ui/macros/macros-in-extern.rs diff --git a/src/test/ui/macros/macros-nonfatal-errors.rs b/tests/ui/macros/macros-nonfatal-errors.rs similarity index 100% rename from src/test/ui/macros/macros-nonfatal-errors.rs rename to tests/ui/macros/macros-nonfatal-errors.rs diff --git a/src/test/ui/macros/macros-nonfatal-errors.stderr b/tests/ui/macros/macros-nonfatal-errors.stderr similarity index 100% rename from src/test/ui/macros/macros-nonfatal-errors.stderr rename to tests/ui/macros/macros-nonfatal-errors.stderr diff --git a/src/test/ui/macros/malformed_macro_lhs.rs b/tests/ui/macros/malformed_macro_lhs.rs similarity index 100% rename from src/test/ui/macros/malformed_macro_lhs.rs rename to tests/ui/macros/malformed_macro_lhs.rs diff --git a/src/test/ui/macros/malformed_macro_lhs.stderr b/tests/ui/macros/malformed_macro_lhs.stderr similarity index 100% rename from src/test/ui/macros/malformed_macro_lhs.stderr rename to tests/ui/macros/malformed_macro_lhs.stderr diff --git a/src/test/ui/macros/meta-item-absolute-path.rs b/tests/ui/macros/meta-item-absolute-path.rs similarity index 100% rename from src/test/ui/macros/meta-item-absolute-path.rs rename to tests/ui/macros/meta-item-absolute-path.rs diff --git a/src/test/ui/macros/meta-item-absolute-path.stderr b/tests/ui/macros/meta-item-absolute-path.stderr similarity index 100% rename from src/test/ui/macros/meta-item-absolute-path.stderr rename to tests/ui/macros/meta-item-absolute-path.stderr diff --git a/src/test/ui/macros/meta-variable-depth-outside-repeat.rs b/tests/ui/macros/meta-variable-depth-outside-repeat.rs similarity index 100% rename from src/test/ui/macros/meta-variable-depth-outside-repeat.rs rename to tests/ui/macros/meta-variable-depth-outside-repeat.rs diff --git a/src/test/ui/macros/meta-variable-depth-outside-repeat.stderr b/tests/ui/macros/meta-variable-depth-outside-repeat.stderr similarity index 100% rename from src/test/ui/macros/meta-variable-depth-outside-repeat.stderr rename to tests/ui/macros/meta-variable-depth-outside-repeat.stderr diff --git a/src/test/ui/macros/meta-variable-misuse.rs b/tests/ui/macros/meta-variable-misuse.rs similarity index 100% rename from src/test/ui/macros/meta-variable-misuse.rs rename to tests/ui/macros/meta-variable-misuse.rs diff --git a/src/test/ui/macros/missing-bang-in-decl.fixed b/tests/ui/macros/missing-bang-in-decl.fixed similarity index 100% rename from src/test/ui/macros/missing-bang-in-decl.fixed rename to tests/ui/macros/missing-bang-in-decl.fixed diff --git a/src/test/ui/macros/missing-bang-in-decl.rs b/tests/ui/macros/missing-bang-in-decl.rs similarity index 100% rename from src/test/ui/macros/missing-bang-in-decl.rs rename to tests/ui/macros/missing-bang-in-decl.rs diff --git a/src/test/ui/macros/missing-bang-in-decl.stderr b/tests/ui/macros/missing-bang-in-decl.stderr similarity index 100% rename from src/test/ui/macros/missing-bang-in-decl.stderr rename to tests/ui/macros/missing-bang-in-decl.stderr diff --git a/src/test/ui/macros/missing-comma.rs b/tests/ui/macros/missing-comma.rs similarity index 100% rename from src/test/ui/macros/missing-comma.rs rename to tests/ui/macros/missing-comma.rs diff --git a/src/test/ui/macros/missing-comma.stderr b/tests/ui/macros/missing-comma.stderr similarity index 100% rename from src/test/ui/macros/missing-comma.stderr rename to tests/ui/macros/missing-comma.stderr diff --git a/src/test/ui/macros/must-use-in-macro-55516.rs b/tests/ui/macros/must-use-in-macro-55516.rs similarity index 100% rename from src/test/ui/macros/must-use-in-macro-55516.rs rename to tests/ui/macros/must-use-in-macro-55516.rs diff --git a/src/test/ui/macros/must-use-in-macro-55516.stderr b/tests/ui/macros/must-use-in-macro-55516.stderr similarity index 100% rename from src/test/ui/macros/must-use-in-macro-55516.stderr rename to tests/ui/macros/must-use-in-macro-55516.stderr diff --git a/src/test/ui/macros/no-std-macros.rs b/tests/ui/macros/no-std-macros.rs similarity index 100% rename from src/test/ui/macros/no-std-macros.rs rename to tests/ui/macros/no-std-macros.rs diff --git a/src/test/ui/macros/none-delim-lookahead.rs b/tests/ui/macros/none-delim-lookahead.rs similarity index 100% rename from src/test/ui/macros/none-delim-lookahead.rs rename to tests/ui/macros/none-delim-lookahead.rs diff --git a/src/test/ui/macros/nonterminal-matching.rs b/tests/ui/macros/nonterminal-matching.rs similarity index 100% rename from src/test/ui/macros/nonterminal-matching.rs rename to tests/ui/macros/nonterminal-matching.rs diff --git a/src/test/ui/macros/nonterminal-matching.stderr b/tests/ui/macros/nonterminal-matching.stderr similarity index 100% rename from src/test/ui/macros/nonterminal-matching.stderr rename to tests/ui/macros/nonterminal-matching.stderr diff --git a/src/test/ui/macros/not-utf8.bin b/tests/ui/macros/not-utf8.bin similarity index 100% rename from src/test/ui/macros/not-utf8.bin rename to tests/ui/macros/not-utf8.bin diff --git a/src/test/ui/macros/not-utf8.rs b/tests/ui/macros/not-utf8.rs similarity index 100% rename from src/test/ui/macros/not-utf8.rs rename to tests/ui/macros/not-utf8.rs diff --git a/src/test/ui/macros/not-utf8.stderr b/tests/ui/macros/not-utf8.stderr similarity index 100% rename from src/test/ui/macros/not-utf8.stderr rename to tests/ui/macros/not-utf8.stderr diff --git a/src/test/ui/macros/out-of-order-shadowing.rs b/tests/ui/macros/out-of-order-shadowing.rs similarity index 100% rename from src/test/ui/macros/out-of-order-shadowing.rs rename to tests/ui/macros/out-of-order-shadowing.rs diff --git a/src/test/ui/macros/out-of-order-shadowing.stderr b/tests/ui/macros/out-of-order-shadowing.stderr similarity index 100% rename from src/test/ui/macros/out-of-order-shadowing.stderr rename to tests/ui/macros/out-of-order-shadowing.stderr diff --git a/src/test/ui/macros/parse-complex-macro-invoc-op.rs b/tests/ui/macros/parse-complex-macro-invoc-op.rs similarity index 100% rename from src/test/ui/macros/parse-complex-macro-invoc-op.rs rename to tests/ui/macros/parse-complex-macro-invoc-op.rs diff --git a/src/test/ui/macros/paths-in-macro-invocations.rs b/tests/ui/macros/paths-in-macro-invocations.rs similarity index 100% rename from src/test/ui/macros/paths-in-macro-invocations.rs rename to tests/ui/macros/paths-in-macro-invocations.rs diff --git a/src/test/ui/macros/proc_macro.rs b/tests/ui/macros/proc_macro.rs similarity index 100% rename from src/test/ui/macros/proc_macro.rs rename to tests/ui/macros/proc_macro.rs diff --git a/src/test/ui/macros/pub-item-inside-macro.rs b/tests/ui/macros/pub-item-inside-macro.rs similarity index 100% rename from src/test/ui/macros/pub-item-inside-macro.rs rename to tests/ui/macros/pub-item-inside-macro.rs diff --git a/src/test/ui/macros/pub-method-inside-macro.rs b/tests/ui/macros/pub-method-inside-macro.rs similarity index 100% rename from src/test/ui/macros/pub-method-inside-macro.rs rename to tests/ui/macros/pub-method-inside-macro.rs diff --git a/src/test/ui/macros/recovery-allowed.rs b/tests/ui/macros/recovery-allowed.rs similarity index 100% rename from src/test/ui/macros/recovery-allowed.rs rename to tests/ui/macros/recovery-allowed.rs diff --git a/src/test/ui/macros/recovery-allowed.stderr b/tests/ui/macros/recovery-allowed.stderr similarity index 100% rename from src/test/ui/macros/recovery-allowed.stderr rename to tests/ui/macros/recovery-allowed.stderr diff --git a/src/test/ui/macros/recovery-forbidden.rs b/tests/ui/macros/recovery-forbidden.rs similarity index 100% rename from src/test/ui/macros/recovery-forbidden.rs rename to tests/ui/macros/recovery-forbidden.rs diff --git a/src/test/ui/macros/restricted-shadowing-legacy.rs b/tests/ui/macros/restricted-shadowing-legacy.rs similarity index 100% rename from src/test/ui/macros/restricted-shadowing-legacy.rs rename to tests/ui/macros/restricted-shadowing-legacy.rs diff --git a/src/test/ui/macros/restricted-shadowing-legacy.stderr b/tests/ui/macros/restricted-shadowing-legacy.stderr similarity index 100% rename from src/test/ui/macros/restricted-shadowing-legacy.stderr rename to tests/ui/macros/restricted-shadowing-legacy.stderr diff --git a/src/test/ui/macros/restricted-shadowing-modern.rs b/tests/ui/macros/restricted-shadowing-modern.rs similarity index 100% rename from src/test/ui/macros/restricted-shadowing-modern.rs rename to tests/ui/macros/restricted-shadowing-modern.rs diff --git a/src/test/ui/macros/restricted-shadowing-modern.stderr b/tests/ui/macros/restricted-shadowing-modern.stderr similarity index 100% rename from src/test/ui/macros/restricted-shadowing-modern.stderr rename to tests/ui/macros/restricted-shadowing-modern.stderr diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/all-expr-kinds.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/all-expr-kinds.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/all-expr-kinds.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/all-expr-kinds.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/all-not-available-cases.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/all-not-available-cases.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/all-not-available-cases.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/all-not-available-cases.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/assert-without-captures-does-not-create-unnecessary-code.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-without-captures-does-not-create-unnecessary-code.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/assert-without-captures-does-not-create-unnecessary-code.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/assert-without-captures-does-not-create-unnecessary-code.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/auxiliary/common.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/auxiliary/common.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/auxiliary/common.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/auxiliary/common.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.rs similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.rs rename to tests/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.rs diff --git a/src/test/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.stdout b/tests/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.stdout similarity index 100% rename from src/test/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.stdout rename to tests/ui/macros/rfc-2011-nicer-assert-messages/non-consuming-methods-have-optimized-codegen.stdout diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/count-and-length-are-distinct.rs b/tests/ui/macros/rfc-3086-metavar-expr/count-and-length-are-distinct.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/count-and-length-are-distinct.rs rename to tests/ui/macros/rfc-3086-metavar-expr/count-and-length-are-distinct.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/dollar-dollar-has-correct-behavior.rs b/tests/ui/macros/rfc-3086-metavar-expr/dollar-dollar-has-correct-behavior.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/dollar-dollar-has-correct-behavior.rs rename to tests/ui/macros/rfc-3086-metavar-expr/dollar-dollar-has-correct-behavior.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/feature-gate-macro_metavar_expr.rs b/tests/ui/macros/rfc-3086-metavar-expr/feature-gate-macro_metavar_expr.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/feature-gate-macro_metavar_expr.rs rename to tests/ui/macros/rfc-3086-metavar-expr/feature-gate-macro_metavar_expr.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/macro-expansion.rs b/tests/ui/macros/rfc-3086-metavar-expr/macro-expansion.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/macro-expansion.rs rename to tests/ui/macros/rfc-3086-metavar-expr/macro-expansion.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.rs b/tests/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.rs rename to tests/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.stderr b/tests/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.stderr similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.stderr rename to tests/ui/macros/rfc-3086-metavar-expr/out-of-bounds-arguments.stderr diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/required-feature.rs b/tests/ui/macros/rfc-3086-metavar-expr/required-feature.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/required-feature.rs rename to tests/ui/macros/rfc-3086-metavar-expr/required-feature.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/required-feature.stderr b/tests/ui/macros/rfc-3086-metavar-expr/required-feature.stderr similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/required-feature.stderr rename to tests/ui/macros/rfc-3086-metavar-expr/required-feature.stderr diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs b/tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs rename to tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.rs diff --git a/src/test/ui/macros/rfc-3086-metavar-expr/syntax-errors.stderr b/tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.stderr similarity index 100% rename from src/test/ui/macros/rfc-3086-metavar-expr/syntax-errors.stderr rename to tests/ui/macros/rfc-3086-metavar-expr/syntax-errors.stderr diff --git a/src/test/ui/macros/same-sequence-span.rs b/tests/ui/macros/same-sequence-span.rs similarity index 100% rename from src/test/ui/macros/same-sequence-span.rs rename to tests/ui/macros/same-sequence-span.rs diff --git a/src/test/ui/macros/same-sequence-span.stderr b/tests/ui/macros/same-sequence-span.stderr similarity index 100% rename from src/test/ui/macros/same-sequence-span.stderr rename to tests/ui/macros/same-sequence-span.stderr diff --git a/src/test/ui/macros/semi-after-macro-ty.rs b/tests/ui/macros/semi-after-macro-ty.rs similarity index 100% rename from src/test/ui/macros/semi-after-macro-ty.rs rename to tests/ui/macros/semi-after-macro-ty.rs diff --git a/src/test/ui/macros/span-covering-argument-1.rs b/tests/ui/macros/span-covering-argument-1.rs similarity index 100% rename from src/test/ui/macros/span-covering-argument-1.rs rename to tests/ui/macros/span-covering-argument-1.rs diff --git a/src/test/ui/macros/span-covering-argument-1.stderr b/tests/ui/macros/span-covering-argument-1.stderr similarity index 100% rename from src/test/ui/macros/span-covering-argument-1.stderr rename to tests/ui/macros/span-covering-argument-1.stderr diff --git a/src/test/ui/macros/stmt_expr_attr_macro_parse.rs b/tests/ui/macros/stmt_expr_attr_macro_parse.rs similarity index 100% rename from src/test/ui/macros/stmt_expr_attr_macro_parse.rs rename to tests/ui/macros/stmt_expr_attr_macro_parse.rs diff --git a/src/test/ui/macros/stringify.rs b/tests/ui/macros/stringify.rs similarity index 100% rename from src/test/ui/macros/stringify.rs rename to tests/ui/macros/stringify.rs diff --git a/src/test/ui/macros/syntax-error-recovery.rs b/tests/ui/macros/syntax-error-recovery.rs similarity index 100% rename from src/test/ui/macros/syntax-error-recovery.rs rename to tests/ui/macros/syntax-error-recovery.rs diff --git a/src/test/ui/macros/syntax-error-recovery.stderr b/tests/ui/macros/syntax-error-recovery.stderr similarity index 100% rename from src/test/ui/macros/syntax-error-recovery.stderr rename to tests/ui/macros/syntax-error-recovery.stderr diff --git a/src/test/ui/macros/syntax-extension-cfg.rs b/tests/ui/macros/syntax-extension-cfg.rs similarity index 100% rename from src/test/ui/macros/syntax-extension-cfg.rs rename to tests/ui/macros/syntax-extension-cfg.rs diff --git a/src/test/ui/macros/syntax-extension-source-utils-files/includeme.fragment b/tests/ui/macros/syntax-extension-source-utils-files/includeme.fragment similarity index 100% rename from src/test/ui/macros/syntax-extension-source-utils-files/includeme.fragment rename to tests/ui/macros/syntax-extension-source-utils-files/includeme.fragment diff --git a/src/test/ui/macros/syntax-extension-source-utils.rs b/tests/ui/macros/syntax-extension-source-utils.rs similarity index 100% rename from src/test/ui/macros/syntax-extension-source-utils.rs rename to tests/ui/macros/syntax-extension-source-utils.rs diff --git a/src/test/ui/macros/trace-macro.rs b/tests/ui/macros/trace-macro.rs similarity index 100% rename from src/test/ui/macros/trace-macro.rs rename to tests/ui/macros/trace-macro.rs diff --git a/src/test/ui/macros/trace-macro.stderr b/tests/ui/macros/trace-macro.stderr similarity index 100% rename from src/test/ui/macros/trace-macro.stderr rename to tests/ui/macros/trace-macro.stderr diff --git a/src/test/ui/macros/trace_faulty_macros.rs b/tests/ui/macros/trace_faulty_macros.rs similarity index 100% rename from src/test/ui/macros/trace_faulty_macros.rs rename to tests/ui/macros/trace_faulty_macros.rs diff --git a/src/test/ui/macros/trace_faulty_macros.stderr b/tests/ui/macros/trace_faulty_macros.stderr similarity index 100% rename from src/test/ui/macros/trace_faulty_macros.stderr rename to tests/ui/macros/trace_faulty_macros.stderr diff --git a/src/test/ui/macros/trace_macros-format.rs b/tests/ui/macros/trace_macros-format.rs similarity index 100% rename from src/test/ui/macros/trace_macros-format.rs rename to tests/ui/macros/trace_macros-format.rs diff --git a/src/test/ui/macros/trace_macros-format.stderr b/tests/ui/macros/trace_macros-format.stderr similarity index 100% rename from src/test/ui/macros/trace_macros-format.stderr rename to tests/ui/macros/trace_macros-format.stderr diff --git a/src/test/ui/macros/try-macro.rs b/tests/ui/macros/try-macro.rs similarity index 100% rename from src/test/ui/macros/try-macro.rs rename to tests/ui/macros/try-macro.rs diff --git a/src/test/ui/macros/two-macro-use.rs b/tests/ui/macros/two-macro-use.rs similarity index 100% rename from src/test/ui/macros/two-macro-use.rs rename to tests/ui/macros/two-macro-use.rs diff --git a/src/test/ui/macros/type-macros-hlist.rs b/tests/ui/macros/type-macros-hlist.rs similarity index 100% rename from src/test/ui/macros/type-macros-hlist.rs rename to tests/ui/macros/type-macros-hlist.rs diff --git a/src/test/ui/macros/type-macros-simple.rs b/tests/ui/macros/type-macros-simple.rs similarity index 100% rename from src/test/ui/macros/type-macros-simple.rs rename to tests/ui/macros/type-macros-simple.rs diff --git a/src/test/ui/macros/typeck-macro-interaction-issue-8852.rs b/tests/ui/macros/typeck-macro-interaction-issue-8852.rs similarity index 100% rename from src/test/ui/macros/typeck-macro-interaction-issue-8852.rs rename to tests/ui/macros/typeck-macro-interaction-issue-8852.rs diff --git a/src/test/ui/macros/unimplemented-macro-panic.rs b/tests/ui/macros/unimplemented-macro-panic.rs similarity index 100% rename from src/test/ui/macros/unimplemented-macro-panic.rs rename to tests/ui/macros/unimplemented-macro-panic.rs diff --git a/src/test/ui/macros/unknown-builtin.rs b/tests/ui/macros/unknown-builtin.rs similarity index 100% rename from src/test/ui/macros/unknown-builtin.rs rename to tests/ui/macros/unknown-builtin.rs diff --git a/src/test/ui/macros/unknown-builtin.stderr b/tests/ui/macros/unknown-builtin.stderr similarity index 100% rename from src/test/ui/macros/unknown-builtin.stderr rename to tests/ui/macros/unknown-builtin.stderr diff --git a/src/test/ui/macros/unreachable-arg.edition_2021.stderr b/tests/ui/macros/unreachable-arg.edition_2021.stderr similarity index 100% rename from src/test/ui/macros/unreachable-arg.edition_2021.stderr rename to tests/ui/macros/unreachable-arg.edition_2021.stderr diff --git a/src/test/ui/macros/unreachable-arg.rs b/tests/ui/macros/unreachable-arg.rs similarity index 100% rename from src/test/ui/macros/unreachable-arg.rs rename to tests/ui/macros/unreachable-arg.rs diff --git a/src/test/ui/macros/unreachable-fmt-msg.rs b/tests/ui/macros/unreachable-fmt-msg.rs similarity index 100% rename from src/test/ui/macros/unreachable-fmt-msg.rs rename to tests/ui/macros/unreachable-fmt-msg.rs diff --git a/src/test/ui/macros/unreachable-format-arg.rs b/tests/ui/macros/unreachable-format-arg.rs similarity index 100% rename from src/test/ui/macros/unreachable-format-arg.rs rename to tests/ui/macros/unreachable-format-arg.rs diff --git a/src/test/ui/macros/unreachable-format-args.edition_2015.stderr b/tests/ui/macros/unreachable-format-args.edition_2015.stderr similarity index 100% rename from src/test/ui/macros/unreachable-format-args.edition_2015.stderr rename to tests/ui/macros/unreachable-format-args.edition_2015.stderr diff --git a/src/test/ui/macros/unreachable-format-args.rs b/tests/ui/macros/unreachable-format-args.rs similarity index 100% rename from src/test/ui/macros/unreachable-format-args.rs rename to tests/ui/macros/unreachable-format-args.rs diff --git a/src/test/ui/macros/unreachable-macro-panic.rs b/tests/ui/macros/unreachable-macro-panic.rs similarity index 100% rename from src/test/ui/macros/unreachable-macro-panic.rs rename to tests/ui/macros/unreachable-macro-panic.rs diff --git a/src/test/ui/macros/unreachable-static-msg.rs b/tests/ui/macros/unreachable-static-msg.rs similarity index 100% rename from src/test/ui/macros/unreachable-static-msg.rs rename to tests/ui/macros/unreachable-static-msg.rs diff --git a/src/test/ui/macros/unreachable.rs b/tests/ui/macros/unreachable.rs similarity index 100% rename from src/test/ui/macros/unreachable.rs rename to tests/ui/macros/unreachable.rs diff --git a/src/test/ui/macros/use-macro-self.rs b/tests/ui/macros/use-macro-self.rs similarity index 100% rename from src/test/ui/macros/use-macro-self.rs rename to tests/ui/macros/use-macro-self.rs diff --git a/src/test/ui/macros/vec-macro-in-pattern.rs b/tests/ui/macros/vec-macro-in-pattern.rs similarity index 100% rename from src/test/ui/macros/vec-macro-in-pattern.rs rename to tests/ui/macros/vec-macro-in-pattern.rs diff --git a/src/test/ui/macros/vec-macro-in-pattern.stderr b/tests/ui/macros/vec-macro-in-pattern.stderr similarity index 100% rename from src/test/ui/macros/vec-macro-in-pattern.stderr rename to tests/ui/macros/vec-macro-in-pattern.stderr diff --git a/src/test/ui/main-wrong-location.rs b/tests/ui/main-wrong-location.rs similarity index 100% rename from src/test/ui/main-wrong-location.rs rename to tests/ui/main-wrong-location.rs diff --git a/src/test/ui/main-wrong-location.stderr b/tests/ui/main-wrong-location.stderr similarity index 100% rename from src/test/ui/main-wrong-location.stderr rename to tests/ui/main-wrong-location.stderr diff --git a/src/test/ui/main-wrong-type.rs b/tests/ui/main-wrong-type.rs similarity index 100% rename from src/test/ui/main-wrong-type.rs rename to tests/ui/main-wrong-type.rs diff --git a/src/test/ui/main-wrong-type.stderr b/tests/ui/main-wrong-type.stderr similarity index 100% rename from src/test/ui/main-wrong-type.stderr rename to tests/ui/main-wrong-type.stderr diff --git a/src/test/ui/malformed/issue-69341-malformed-derive-inert.rs b/tests/ui/malformed/issue-69341-malformed-derive-inert.rs similarity index 100% rename from src/test/ui/malformed/issue-69341-malformed-derive-inert.rs rename to tests/ui/malformed/issue-69341-malformed-derive-inert.rs diff --git a/src/test/ui/malformed/issue-69341-malformed-derive-inert.stderr b/tests/ui/malformed/issue-69341-malformed-derive-inert.stderr similarity index 100% rename from src/test/ui/malformed/issue-69341-malformed-derive-inert.stderr rename to tests/ui/malformed/issue-69341-malformed-derive-inert.stderr diff --git a/src/test/ui/malformed/malformed-derive-entry.rs b/tests/ui/malformed/malformed-derive-entry.rs similarity index 100% rename from src/test/ui/malformed/malformed-derive-entry.rs rename to tests/ui/malformed/malformed-derive-entry.rs diff --git a/src/test/ui/malformed/malformed-derive-entry.stderr b/tests/ui/malformed/malformed-derive-entry.stderr similarity index 100% rename from src/test/ui/malformed/malformed-derive-entry.stderr rename to tests/ui/malformed/malformed-derive-entry.stderr diff --git a/src/test/ui/malformed/malformed-interpolated.rs b/tests/ui/malformed/malformed-interpolated.rs similarity index 100% rename from src/test/ui/malformed/malformed-interpolated.rs rename to tests/ui/malformed/malformed-interpolated.rs diff --git a/src/test/ui/malformed/malformed-interpolated.stderr b/tests/ui/malformed/malformed-interpolated.stderr similarity index 100% rename from src/test/ui/malformed/malformed-interpolated.stderr rename to tests/ui/malformed/malformed-interpolated.stderr diff --git a/src/test/ui/malformed/malformed-meta-delim.rs b/tests/ui/malformed/malformed-meta-delim.rs similarity index 100% rename from src/test/ui/malformed/malformed-meta-delim.rs rename to tests/ui/malformed/malformed-meta-delim.rs diff --git a/src/test/ui/malformed/malformed-meta-delim.stderr b/tests/ui/malformed/malformed-meta-delim.stderr similarity index 100% rename from src/test/ui/malformed/malformed-meta-delim.stderr rename to tests/ui/malformed/malformed-meta-delim.stderr diff --git a/src/test/ui/malformed/malformed-plugin-1.rs b/tests/ui/malformed/malformed-plugin-1.rs similarity index 100% rename from src/test/ui/malformed/malformed-plugin-1.rs rename to tests/ui/malformed/malformed-plugin-1.rs diff --git a/src/test/ui/malformed/malformed-plugin-1.stderr b/tests/ui/malformed/malformed-plugin-1.stderr similarity index 100% rename from src/test/ui/malformed/malformed-plugin-1.stderr rename to tests/ui/malformed/malformed-plugin-1.stderr diff --git a/src/test/ui/malformed/malformed-plugin-2.rs b/tests/ui/malformed/malformed-plugin-2.rs similarity index 100% rename from src/test/ui/malformed/malformed-plugin-2.rs rename to tests/ui/malformed/malformed-plugin-2.rs diff --git a/src/test/ui/malformed/malformed-plugin-2.stderr b/tests/ui/malformed/malformed-plugin-2.stderr similarity index 100% rename from src/test/ui/malformed/malformed-plugin-2.stderr rename to tests/ui/malformed/malformed-plugin-2.stderr diff --git a/src/test/ui/malformed/malformed-plugin-3.rs b/tests/ui/malformed/malformed-plugin-3.rs similarity index 100% rename from src/test/ui/malformed/malformed-plugin-3.rs rename to tests/ui/malformed/malformed-plugin-3.rs diff --git a/src/test/ui/malformed/malformed-plugin-3.stderr b/tests/ui/malformed/malformed-plugin-3.stderr similarity index 100% rename from src/test/ui/malformed/malformed-plugin-3.stderr rename to tests/ui/malformed/malformed-plugin-3.stderr diff --git a/src/test/ui/malformed/malformed-regressions.rs b/tests/ui/malformed/malformed-regressions.rs similarity index 100% rename from src/test/ui/malformed/malformed-regressions.rs rename to tests/ui/malformed/malformed-regressions.rs diff --git a/src/test/ui/malformed/malformed-regressions.stderr b/tests/ui/malformed/malformed-regressions.stderr similarity index 100% rename from src/test/ui/malformed/malformed-regressions.stderr rename to tests/ui/malformed/malformed-regressions.stderr diff --git a/src/test/ui/malformed/malformed-special-attrs.rs b/tests/ui/malformed/malformed-special-attrs.rs similarity index 100% rename from src/test/ui/malformed/malformed-special-attrs.rs rename to tests/ui/malformed/malformed-special-attrs.rs diff --git a/src/test/ui/malformed/malformed-special-attrs.stderr b/tests/ui/malformed/malformed-special-attrs.stderr similarity index 100% rename from src/test/ui/malformed/malformed-special-attrs.stderr rename to tests/ui/malformed/malformed-special-attrs.stderr diff --git a/src/test/ui/manual/manual-link-bad-form.rs b/tests/ui/manual/manual-link-bad-form.rs similarity index 100% rename from src/test/ui/manual/manual-link-bad-form.rs rename to tests/ui/manual/manual-link-bad-form.rs diff --git a/src/test/ui/manual/manual-link-bad-form.stderr b/tests/ui/manual/manual-link-bad-form.stderr similarity index 100% rename from src/test/ui/manual/manual-link-bad-form.stderr rename to tests/ui/manual/manual-link-bad-form.stderr diff --git a/src/test/ui/manual/manual-link-bad-kind.rs b/tests/ui/manual/manual-link-bad-kind.rs similarity index 100% rename from src/test/ui/manual/manual-link-bad-kind.rs rename to tests/ui/manual/manual-link-bad-kind.rs diff --git a/src/test/ui/manual/manual-link-bad-kind.stderr b/tests/ui/manual/manual-link-bad-kind.stderr similarity index 100% rename from src/test/ui/manual/manual-link-bad-kind.stderr rename to tests/ui/manual/manual-link-bad-kind.stderr diff --git a/src/test/ui/manual/manual-link-bad-search-path.rs b/tests/ui/manual/manual-link-bad-search-path.rs similarity index 100% rename from src/test/ui/manual/manual-link-bad-search-path.rs rename to tests/ui/manual/manual-link-bad-search-path.rs diff --git a/src/test/ui/manual/manual-link-bad-search-path.stderr b/tests/ui/manual/manual-link-bad-search-path.stderr similarity index 100% rename from src/test/ui/manual/manual-link-bad-search-path.stderr rename to tests/ui/manual/manual-link-bad-search-path.stderr diff --git a/src/test/ui/manual/manual-link-framework.rs b/tests/ui/manual/manual-link-framework.rs similarity index 100% rename from src/test/ui/manual/manual-link-framework.rs rename to tests/ui/manual/manual-link-framework.rs diff --git a/src/test/ui/manual/manual-link-framework.stderr b/tests/ui/manual/manual-link-framework.stderr similarity index 100% rename from src/test/ui/manual/manual-link-framework.stderr rename to tests/ui/manual/manual-link-framework.stderr diff --git a/src/test/ui/manual/manual-link-unsupported-kind.rs b/tests/ui/manual/manual-link-unsupported-kind.rs similarity index 100% rename from src/test/ui/manual/manual-link-unsupported-kind.rs rename to tests/ui/manual/manual-link-unsupported-kind.rs diff --git a/src/test/ui/manual/manual-link-unsupported-kind.stderr b/tests/ui/manual/manual-link-unsupported-kind.stderr similarity index 100% rename from src/test/ui/manual/manual-link-unsupported-kind.stderr rename to tests/ui/manual/manual-link-unsupported-kind.stderr diff --git a/src/test/ui/marker_trait_attr/issue-61651-type-mismatch.rs b/tests/ui/marker_trait_attr/issue-61651-type-mismatch.rs similarity index 100% rename from src/test/ui/marker_trait_attr/issue-61651-type-mismatch.rs rename to tests/ui/marker_trait_attr/issue-61651-type-mismatch.rs diff --git a/src/test/ui/marker_trait_attr/marker-attribute-on-non-trait.rs b/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs similarity index 100% rename from src/test/ui/marker_trait_attr/marker-attribute-on-non-trait.rs rename to tests/ui/marker_trait_attr/marker-attribute-on-non-trait.rs diff --git a/src/test/ui/marker_trait_attr/marker-attribute-on-non-trait.stderr b/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/marker-attribute-on-non-trait.stderr rename to tests/ui/marker_trait_attr/marker-attribute-on-non-trait.stderr diff --git a/src/test/ui/marker_trait_attr/marker-attribute-with-values.rs b/tests/ui/marker_trait_attr/marker-attribute-with-values.rs similarity index 100% rename from src/test/ui/marker_trait_attr/marker-attribute-with-values.rs rename to tests/ui/marker_trait_attr/marker-attribute-with-values.rs diff --git a/src/test/ui/marker_trait_attr/marker-attribute-with-values.stderr b/tests/ui/marker_trait_attr/marker-attribute-with-values.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/marker-attribute-with-values.stderr rename to tests/ui/marker_trait_attr/marker-attribute-with-values.stderr diff --git a/src/test/ui/marker_trait_attr/marker-trait-with-associated-items.rs b/tests/ui/marker_trait_attr/marker-trait-with-associated-items.rs similarity index 100% rename from src/test/ui/marker_trait_attr/marker-trait-with-associated-items.rs rename to tests/ui/marker_trait_attr/marker-trait-with-associated-items.rs diff --git a/src/test/ui/marker_trait_attr/marker-trait-with-associated-items.stderr b/tests/ui/marker_trait_attr/marker-trait-with-associated-items.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/marker-trait-with-associated-items.stderr rename to tests/ui/marker_trait_attr/marker-trait-with-associated-items.stderr diff --git a/src/test/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.rs b/tests/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.rs similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.rs rename to tests/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.rs diff --git a/src/test/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.stderr b/tests/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.stderr rename to tests/ui/marker_trait_attr/overlap-doesnt-conflict-with-specialization.stderr diff --git a/src/test/ui/marker_trait_attr/overlap-marker-trait-with-static-lifetime.rs b/tests/ui/marker_trait_attr/overlap-marker-trait-with-static-lifetime.rs similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-marker-trait-with-static-lifetime.rs rename to tests/ui/marker_trait_attr/overlap-marker-trait-with-static-lifetime.rs diff --git a/src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs b/tests/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs rename to tests/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.rs diff --git a/src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.stderr b/tests/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.stderr rename to tests/ui/marker_trait_attr/overlap-marker-trait-with-underscore-lifetime.stderr diff --git a/src/test/ui/marker_trait_attr/overlap-marker-trait.rs b/tests/ui/marker_trait_attr/overlap-marker-trait.rs similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-marker-trait.rs rename to tests/ui/marker_trait_attr/overlap-marker-trait.rs diff --git a/src/test/ui/marker_trait_attr/overlap-marker-trait.stderr b/tests/ui/marker_trait_attr/overlap-marker-trait.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-marker-trait.stderr rename to tests/ui/marker_trait_attr/overlap-marker-trait.stderr diff --git a/src/test/ui/marker_trait_attr/overlap-permitted-for-annotated-marker-traits.rs b/tests/ui/marker_trait_attr/overlap-permitted-for-annotated-marker-traits.rs similarity index 100% rename from src/test/ui/marker_trait_attr/overlap-permitted-for-annotated-marker-traits.rs rename to tests/ui/marker_trait_attr/overlap-permitted-for-annotated-marker-traits.rs diff --git a/src/test/ui/marker_trait_attr/overlapping-impl-1-modulo-regions.rs b/tests/ui/marker_trait_attr/overlapping-impl-1-modulo-regions.rs similarity index 100% rename from src/test/ui/marker_trait_attr/overlapping-impl-1-modulo-regions.rs rename to tests/ui/marker_trait_attr/overlapping-impl-1-modulo-regions.rs diff --git a/src/test/ui/marker_trait_attr/override-item-on-marker-trait.rs b/tests/ui/marker_trait_attr/override-item-on-marker-trait.rs similarity index 100% rename from src/test/ui/marker_trait_attr/override-item-on-marker-trait.rs rename to tests/ui/marker_trait_attr/override-item-on-marker-trait.rs diff --git a/src/test/ui/marker_trait_attr/override-item-on-marker-trait.stderr b/tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/override-item-on-marker-trait.stderr rename to tests/ui/marker_trait_attr/override-item-on-marker-trait.stderr diff --git a/src/test/ui/marker_trait_attr/region-overlap.rs b/tests/ui/marker_trait_attr/region-overlap.rs similarity index 100% rename from src/test/ui/marker_trait_attr/region-overlap.rs rename to tests/ui/marker_trait_attr/region-overlap.rs diff --git a/src/test/ui/marker_trait_attr/region-overlap.stderr b/tests/ui/marker_trait_attr/region-overlap.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/region-overlap.stderr rename to tests/ui/marker_trait_attr/region-overlap.stderr diff --git a/src/test/ui/marker_trait_attr/unsound-overlap.rs b/tests/ui/marker_trait_attr/unsound-overlap.rs similarity index 100% rename from src/test/ui/marker_trait_attr/unsound-overlap.rs rename to tests/ui/marker_trait_attr/unsound-overlap.rs diff --git a/src/test/ui/marker_trait_attr/unsound-overlap.stderr b/tests/ui/marker_trait_attr/unsound-overlap.stderr similarity index 100% rename from src/test/ui/marker_trait_attr/unsound-overlap.stderr rename to tests/ui/marker_trait_attr/unsound-overlap.stderr diff --git a/src/test/ui/match/auxiliary/match_non_exhaustive_lib.rs b/tests/ui/match/auxiliary/match_non_exhaustive_lib.rs similarity index 100% rename from src/test/ui/match/auxiliary/match_non_exhaustive_lib.rs rename to tests/ui/match/auxiliary/match_non_exhaustive_lib.rs diff --git a/src/test/ui/match/const_non_normal_zst_ref_pattern.rs b/tests/ui/match/const_non_normal_zst_ref_pattern.rs similarity index 100% rename from src/test/ui/match/const_non_normal_zst_ref_pattern.rs rename to tests/ui/match/const_non_normal_zst_ref_pattern.rs diff --git a/src/test/ui/match/expr-match-panic-fn.rs b/tests/ui/match/expr-match-panic-fn.rs similarity index 100% rename from src/test/ui/match/expr-match-panic-fn.rs rename to tests/ui/match/expr-match-panic-fn.rs diff --git a/src/test/ui/match/expr-match-panic.rs b/tests/ui/match/expr-match-panic.rs similarity index 100% rename from src/test/ui/match/expr-match-panic.rs rename to tests/ui/match/expr-match-panic.rs diff --git a/src/test/ui/match/expr_before_ident_pat.rs b/tests/ui/match/expr_before_ident_pat.rs similarity index 100% rename from src/test/ui/match/expr_before_ident_pat.rs rename to tests/ui/match/expr_before_ident_pat.rs diff --git a/src/test/ui/match/expr_before_ident_pat.stderr b/tests/ui/match/expr_before_ident_pat.stderr similarity index 100% rename from src/test/ui/match/expr_before_ident_pat.stderr rename to tests/ui/match/expr_before_ident_pat.stderr diff --git a/src/test/ui/match/guards.rs b/tests/ui/match/guards.rs similarity index 100% rename from src/test/ui/match/guards.rs rename to tests/ui/match/guards.rs diff --git a/src/test/ui/match/issue-11319.rs b/tests/ui/match/issue-11319.rs similarity index 100% rename from src/test/ui/match/issue-11319.rs rename to tests/ui/match/issue-11319.rs diff --git a/src/test/ui/match/issue-11319.stderr b/tests/ui/match/issue-11319.stderr similarity index 100% rename from src/test/ui/match/issue-11319.stderr rename to tests/ui/match/issue-11319.stderr diff --git a/src/test/ui/match/issue-11940.rs b/tests/ui/match/issue-11940.rs similarity index 100% rename from src/test/ui/match/issue-11940.rs rename to tests/ui/match/issue-11940.rs diff --git a/src/test/ui/match/issue-12552.rs b/tests/ui/match/issue-12552.rs similarity index 100% rename from src/test/ui/match/issue-12552.rs rename to tests/ui/match/issue-12552.rs diff --git a/src/test/ui/match/issue-12552.stderr b/tests/ui/match/issue-12552.stderr similarity index 100% rename from src/test/ui/match/issue-12552.stderr rename to tests/ui/match/issue-12552.stderr diff --git a/src/test/ui/match/issue-18060.rs b/tests/ui/match/issue-18060.rs similarity index 100% rename from src/test/ui/match/issue-18060.rs rename to tests/ui/match/issue-18060.rs diff --git a/src/test/ui/match/issue-26251.rs b/tests/ui/match/issue-26251.rs similarity index 100% rename from src/test/ui/match/issue-26251.rs rename to tests/ui/match/issue-26251.rs diff --git a/src/test/ui/match/issue-26996.rs b/tests/ui/match/issue-26996.rs similarity index 100% rename from src/test/ui/match/issue-26996.rs rename to tests/ui/match/issue-26996.rs diff --git a/src/test/ui/match/issue-27021.rs b/tests/ui/match/issue-27021.rs similarity index 100% rename from src/test/ui/match/issue-27021.rs rename to tests/ui/match/issue-27021.rs diff --git a/src/test/ui/match/issue-33498.rs b/tests/ui/match/issue-33498.rs similarity index 100% rename from src/test/ui/match/issue-33498.rs rename to tests/ui/match/issue-33498.rs diff --git a/src/test/ui/match/issue-41255.rs b/tests/ui/match/issue-41255.rs similarity index 100% rename from src/test/ui/match/issue-41255.rs rename to tests/ui/match/issue-41255.rs diff --git a/src/test/ui/match/issue-41255.stderr b/tests/ui/match/issue-41255.stderr similarity index 100% rename from src/test/ui/match/issue-41255.stderr rename to tests/ui/match/issue-41255.stderr diff --git a/src/test/ui/match/issue-42679.rs b/tests/ui/match/issue-42679.rs similarity index 100% rename from src/test/ui/match/issue-42679.rs rename to tests/ui/match/issue-42679.rs diff --git a/src/test/ui/match/issue-46920-byte-array-patterns.rs b/tests/ui/match/issue-46920-byte-array-patterns.rs similarity index 100% rename from src/test/ui/match/issue-46920-byte-array-patterns.rs rename to tests/ui/match/issue-46920-byte-array-patterns.rs diff --git a/src/test/ui/match/issue-5530.rs b/tests/ui/match/issue-5530.rs similarity index 100% rename from src/test/ui/match/issue-5530.rs rename to tests/ui/match/issue-5530.rs diff --git a/src/test/ui/match/issue-56685.rs b/tests/ui/match/issue-56685.rs similarity index 100% rename from src/test/ui/match/issue-56685.rs rename to tests/ui/match/issue-56685.rs diff --git a/src/test/ui/match/issue-56685.stderr b/tests/ui/match/issue-56685.stderr similarity index 100% rename from src/test/ui/match/issue-56685.stderr rename to tests/ui/match/issue-56685.stderr diff --git a/src/test/ui/match/issue-70972-dyn-trait.rs b/tests/ui/match/issue-70972-dyn-trait.rs similarity index 100% rename from src/test/ui/match/issue-70972-dyn-trait.rs rename to tests/ui/match/issue-70972-dyn-trait.rs diff --git a/src/test/ui/match/issue-70972-dyn-trait.stderr b/tests/ui/match/issue-70972-dyn-trait.stderr similarity index 100% rename from src/test/ui/match/issue-70972-dyn-trait.stderr rename to tests/ui/match/issue-70972-dyn-trait.stderr diff --git a/src/test/ui/match/issue-72680.rs b/tests/ui/match/issue-72680.rs similarity index 100% rename from src/test/ui/match/issue-72680.rs rename to tests/ui/match/issue-72680.rs diff --git a/src/test/ui/match/issue-72896.rs b/tests/ui/match/issue-72896.rs similarity index 100% rename from src/test/ui/match/issue-72896.rs rename to tests/ui/match/issue-72896.rs diff --git a/src/test/ui/match/issue-74050-end-span.rs b/tests/ui/match/issue-74050-end-span.rs similarity index 100% rename from src/test/ui/match/issue-74050-end-span.rs rename to tests/ui/match/issue-74050-end-span.rs diff --git a/src/test/ui/match/issue-74050-end-span.stderr b/tests/ui/match/issue-74050-end-span.stderr similarity index 100% rename from src/test/ui/match/issue-74050-end-span.stderr rename to tests/ui/match/issue-74050-end-span.stderr diff --git a/src/test/ui/match/issue-82392.rs b/tests/ui/match/issue-82392.rs similarity index 100% rename from src/test/ui/match/issue-82392.rs rename to tests/ui/match/issue-82392.rs diff --git a/src/test/ui/match/issue-82392.stdout b/tests/ui/match/issue-82392.stdout similarity index 100% rename from src/test/ui/match/issue-82392.stdout rename to tests/ui/match/issue-82392.stdout diff --git a/src/test/ui/match/issue-82866.rs b/tests/ui/match/issue-82866.rs similarity index 100% rename from src/test/ui/match/issue-82866.rs rename to tests/ui/match/issue-82866.rs diff --git a/src/test/ui/match/issue-82866.stderr b/tests/ui/match/issue-82866.stderr similarity index 100% rename from src/test/ui/match/issue-82866.stderr rename to tests/ui/match/issue-82866.stderr diff --git a/src/test/ui/match/issue-84434.rs b/tests/ui/match/issue-84434.rs similarity index 100% rename from src/test/ui/match/issue-84434.rs rename to tests/ui/match/issue-84434.rs diff --git a/src/test/ui/match/issue-91058.rs b/tests/ui/match/issue-91058.rs similarity index 100% rename from src/test/ui/match/issue-91058.rs rename to tests/ui/match/issue-91058.rs diff --git a/src/test/ui/match/issue-91058.stderr b/tests/ui/match/issue-91058.stderr similarity index 100% rename from src/test/ui/match/issue-91058.stderr rename to tests/ui/match/issue-91058.stderr diff --git a/src/test/ui/match/issue-92100.rs b/tests/ui/match/issue-92100.rs similarity index 100% rename from src/test/ui/match/issue-92100.rs rename to tests/ui/match/issue-92100.rs diff --git a/src/test/ui/match/issue-92100.stderr b/tests/ui/match/issue-92100.stderr similarity index 100% rename from src/test/ui/match/issue-92100.stderr rename to tests/ui/match/issue-92100.stderr diff --git a/src/test/ui/match/match-arm-resolving-to-never.rs b/tests/ui/match/match-arm-resolving-to-never.rs similarity index 100% rename from src/test/ui/match/match-arm-resolving-to-never.rs rename to tests/ui/match/match-arm-resolving-to-never.rs diff --git a/src/test/ui/match/match-arm-resolving-to-never.stderr b/tests/ui/match/match-arm-resolving-to-never.stderr similarity index 100% rename from src/test/ui/match/match-arm-resolving-to-never.stderr rename to tests/ui/match/match-arm-resolving-to-never.stderr diff --git a/src/test/ui/match/match-bot-panic.rs b/tests/ui/match/match-bot-panic.rs similarity index 100% rename from src/test/ui/match/match-bot-panic.rs rename to tests/ui/match/match-bot-panic.rs diff --git a/src/test/ui/match/match-disc-bot.rs b/tests/ui/match/match-disc-bot.rs similarity index 100% rename from src/test/ui/match/match-disc-bot.rs rename to tests/ui/match/match-disc-bot.rs diff --git a/src/test/ui/match/match-fn-call.rs b/tests/ui/match/match-fn-call.rs similarity index 100% rename from src/test/ui/match/match-fn-call.rs rename to tests/ui/match/match-fn-call.rs diff --git a/src/test/ui/match/match-fn-call.stderr b/tests/ui/match/match-fn-call.stderr similarity index 100% rename from src/test/ui/match/match-fn-call.stderr rename to tests/ui/match/match-fn-call.stderr diff --git a/src/test/ui/match/match-ill-type2.rs b/tests/ui/match/match-ill-type2.rs similarity index 100% rename from src/test/ui/match/match-ill-type2.rs rename to tests/ui/match/match-ill-type2.rs diff --git a/src/test/ui/match/match-ill-type2.stderr b/tests/ui/match/match-ill-type2.stderr similarity index 100% rename from src/test/ui/match/match-ill-type2.stderr rename to tests/ui/match/match-ill-type2.stderr diff --git a/src/test/ui/match/match-incompat-type-semi.rs b/tests/ui/match/match-incompat-type-semi.rs similarity index 100% rename from src/test/ui/match/match-incompat-type-semi.rs rename to tests/ui/match/match-incompat-type-semi.rs diff --git a/src/test/ui/match/match-incompat-type-semi.stderr b/tests/ui/match/match-incompat-type-semi.stderr similarity index 100% rename from src/test/ui/match/match-incompat-type-semi.stderr rename to tests/ui/match/match-incompat-type-semi.stderr diff --git a/src/test/ui/match/match-join.rs b/tests/ui/match/match-join.rs similarity index 100% rename from src/test/ui/match/match-join.rs rename to tests/ui/match/match-join.rs diff --git a/src/test/ui/match/match-join.stderr b/tests/ui/match/match-join.stderr similarity index 100% rename from src/test/ui/match/match-join.stderr rename to tests/ui/match/match-join.stderr diff --git a/src/test/ui/match/match-no-arms-unreachable-after.rs b/tests/ui/match/match-no-arms-unreachable-after.rs similarity index 100% rename from src/test/ui/match/match-no-arms-unreachable-after.rs rename to tests/ui/match/match-no-arms-unreachable-after.rs diff --git a/src/test/ui/match/match-no-arms-unreachable-after.stderr b/tests/ui/match/match-no-arms-unreachable-after.stderr similarity index 100% rename from src/test/ui/match/match-no-arms-unreachable-after.stderr rename to tests/ui/match/match-no-arms-unreachable-after.stderr diff --git a/src/test/ui/match/match-on-negative-integer-ranges.rs b/tests/ui/match/match-on-negative-integer-ranges.rs similarity index 100% rename from src/test/ui/match/match-on-negative-integer-ranges.rs rename to tests/ui/match/match-on-negative-integer-ranges.rs diff --git a/src/test/ui/match/match-pattern-field-mismatch-2.rs b/tests/ui/match/match-pattern-field-mismatch-2.rs similarity index 100% rename from src/test/ui/match/match-pattern-field-mismatch-2.rs rename to tests/ui/match/match-pattern-field-mismatch-2.rs diff --git a/src/test/ui/match/match-pattern-field-mismatch-2.stderr b/tests/ui/match/match-pattern-field-mismatch-2.stderr similarity index 100% rename from src/test/ui/match/match-pattern-field-mismatch-2.stderr rename to tests/ui/match/match-pattern-field-mismatch-2.stderr diff --git a/src/test/ui/match/match-pattern-field-mismatch.rs b/tests/ui/match/match-pattern-field-mismatch.rs similarity index 100% rename from src/test/ui/match/match-pattern-field-mismatch.rs rename to tests/ui/match/match-pattern-field-mismatch.rs diff --git a/src/test/ui/match/match-pattern-field-mismatch.stderr b/tests/ui/match/match-pattern-field-mismatch.stderr similarity index 100% rename from src/test/ui/match/match-pattern-field-mismatch.stderr rename to tests/ui/match/match-pattern-field-mismatch.stderr diff --git a/src/test/ui/match/match-range-fail-2.rs b/tests/ui/match/match-range-fail-2.rs similarity index 100% rename from src/test/ui/match/match-range-fail-2.rs rename to tests/ui/match/match-range-fail-2.rs diff --git a/src/test/ui/match/match-range-fail-2.stderr b/tests/ui/match/match-range-fail-2.stderr similarity index 100% rename from src/test/ui/match/match-range-fail-2.stderr rename to tests/ui/match/match-range-fail-2.stderr diff --git a/src/test/ui/match/match-range-fail.rs b/tests/ui/match/match-range-fail.rs similarity index 100% rename from src/test/ui/match/match-range-fail.rs rename to tests/ui/match/match-range-fail.rs diff --git a/src/test/ui/match/match-range-fail.stderr b/tests/ui/match/match-range-fail.stderr similarity index 100% rename from src/test/ui/match/match-range-fail.stderr rename to tests/ui/match/match-range-fail.stderr diff --git a/src/test/ui/match/match-ref-mut-invariance.rs b/tests/ui/match/match-ref-mut-invariance.rs similarity index 100% rename from src/test/ui/match/match-ref-mut-invariance.rs rename to tests/ui/match/match-ref-mut-invariance.rs diff --git a/src/test/ui/match/match-ref-mut-invariance.stderr b/tests/ui/match/match-ref-mut-invariance.stderr similarity index 100% rename from src/test/ui/match/match-ref-mut-invariance.stderr rename to tests/ui/match/match-ref-mut-invariance.stderr diff --git a/src/test/ui/match/match-ref-mut-let-invariance.rs b/tests/ui/match/match-ref-mut-let-invariance.rs similarity index 100% rename from src/test/ui/match/match-ref-mut-let-invariance.rs rename to tests/ui/match/match-ref-mut-let-invariance.rs diff --git a/src/test/ui/match/match-ref-mut-let-invariance.stderr b/tests/ui/match/match-ref-mut-let-invariance.stderr similarity index 100% rename from src/test/ui/match/match-ref-mut-let-invariance.stderr rename to tests/ui/match/match-ref-mut-let-invariance.stderr diff --git a/src/test/ui/match/match-ref-mut-stability.rs b/tests/ui/match/match-ref-mut-stability.rs similarity index 100% rename from src/test/ui/match/match-ref-mut-stability.rs rename to tests/ui/match/match-ref-mut-stability.rs diff --git a/src/test/ui/match/match-struct.rs b/tests/ui/match/match-struct.rs similarity index 100% rename from src/test/ui/match/match-struct.rs rename to tests/ui/match/match-struct.rs diff --git a/src/test/ui/match/match-struct.stderr b/tests/ui/match/match-struct.stderr similarity index 100% rename from src/test/ui/match/match-struct.stderr rename to tests/ui/match/match-struct.stderr diff --git a/src/test/ui/match/match-tag-nullary.rs b/tests/ui/match/match-tag-nullary.rs similarity index 100% rename from src/test/ui/match/match-tag-nullary.rs rename to tests/ui/match/match-tag-nullary.rs diff --git a/src/test/ui/match/match-tag-nullary.stderr b/tests/ui/match/match-tag-nullary.stderr similarity index 100% rename from src/test/ui/match/match-tag-nullary.stderr rename to tests/ui/match/match-tag-nullary.stderr diff --git a/src/test/ui/match/match-tag-unary.rs b/tests/ui/match/match-tag-unary.rs similarity index 100% rename from src/test/ui/match/match-tag-unary.rs rename to tests/ui/match/match-tag-unary.rs diff --git a/src/test/ui/match/match-tag-unary.stderr b/tests/ui/match/match-tag-unary.stderr similarity index 100% rename from src/test/ui/match/match-tag-unary.stderr rename to tests/ui/match/match-tag-unary.stderr diff --git a/src/test/ui/match/match-type-err-first-arm.rs b/tests/ui/match/match-type-err-first-arm.rs similarity index 100% rename from src/test/ui/match/match-type-err-first-arm.rs rename to tests/ui/match/match-type-err-first-arm.rs diff --git a/src/test/ui/match/match-type-err-first-arm.stderr b/tests/ui/match/match-type-err-first-arm.stderr similarity index 100% rename from src/test/ui/match/match-type-err-first-arm.stderr rename to tests/ui/match/match-type-err-first-arm.stderr diff --git a/src/test/ui/match/match-unresolved-one-arm.rs b/tests/ui/match/match-unresolved-one-arm.rs similarity index 100% rename from src/test/ui/match/match-unresolved-one-arm.rs rename to tests/ui/match/match-unresolved-one-arm.rs diff --git a/src/test/ui/match/match-unresolved-one-arm.stderr b/tests/ui/match/match-unresolved-one-arm.stderr similarity index 100% rename from src/test/ui/match/match-unresolved-one-arm.stderr rename to tests/ui/match/match-unresolved-one-arm.stderr diff --git a/src/test/ui/match/match-vec-mismatch-2.rs b/tests/ui/match/match-vec-mismatch-2.rs similarity index 100% rename from src/test/ui/match/match-vec-mismatch-2.rs rename to tests/ui/match/match-vec-mismatch-2.rs diff --git a/src/test/ui/match/match-vec-mismatch-2.stderr b/tests/ui/match/match-vec-mismatch-2.stderr similarity index 100% rename from src/test/ui/match/match-vec-mismatch-2.stderr rename to tests/ui/match/match-vec-mismatch-2.stderr diff --git a/src/test/ui/match/match-wildcards.rs b/tests/ui/match/match-wildcards.rs similarity index 100% rename from src/test/ui/match/match-wildcards.rs rename to tests/ui/match/match-wildcards.rs diff --git a/src/test/ui/match/match_non_exhaustive.rs b/tests/ui/match/match_non_exhaustive.rs similarity index 100% rename from src/test/ui/match/match_non_exhaustive.rs rename to tests/ui/match/match_non_exhaustive.rs diff --git a/src/test/ui/match/match_non_exhaustive.stderr b/tests/ui/match/match_non_exhaustive.stderr similarity index 100% rename from src/test/ui/match/match_non_exhaustive.stderr rename to tests/ui/match/match_non_exhaustive.stderr diff --git a/src/test/ui/match/pattern-deref-miscompile.rs b/tests/ui/match/pattern-deref-miscompile.rs similarity index 100% rename from src/test/ui/match/pattern-deref-miscompile.rs rename to tests/ui/match/pattern-deref-miscompile.rs diff --git a/src/test/ui/match/single-line.rs b/tests/ui/match/single-line.rs similarity index 100% rename from src/test/ui/match/single-line.rs rename to tests/ui/match/single-line.rs diff --git a/src/test/ui/match/single-line.stderr b/tests/ui/match/single-line.stderr similarity index 100% rename from src/test/ui/match/single-line.stderr rename to tests/ui/match/single-line.stderr diff --git a/src/test/ui/max-min-classes.rs b/tests/ui/max-min-classes.rs similarity index 100% rename from src/test/ui/max-min-classes.rs rename to tests/ui/max-min-classes.rs diff --git a/src/test/ui/maximal_mir_to_hir_coverage.rs b/tests/ui/maximal_mir_to_hir_coverage.rs similarity index 100% rename from src/test/ui/maximal_mir_to_hir_coverage.rs rename to tests/ui/maximal_mir_to_hir_coverage.rs diff --git a/src/test/ui/maybe-bounds.rs b/tests/ui/maybe-bounds.rs similarity index 100% rename from src/test/ui/maybe-bounds.rs rename to tests/ui/maybe-bounds.rs diff --git a/src/test/ui/maybe-bounds.stderr b/tests/ui/maybe-bounds.stderr similarity index 100% rename from src/test/ui/maybe-bounds.stderr rename to tests/ui/maybe-bounds.stderr diff --git a/src/test/ui/meta/auxiliary/env.rs b/tests/ui/meta/auxiliary/env.rs similarity index 100% rename from src/test/ui/meta/auxiliary/env.rs rename to tests/ui/meta/auxiliary/env.rs diff --git a/src/test/ui/meta/expected-error-correct-rev.a.stderr b/tests/ui/meta/expected-error-correct-rev.a.stderr similarity index 100% rename from src/test/ui/meta/expected-error-correct-rev.a.stderr rename to tests/ui/meta/expected-error-correct-rev.a.stderr diff --git a/src/test/ui/meta/expected-error-correct-rev.rs b/tests/ui/meta/expected-error-correct-rev.rs similarity index 100% rename from src/test/ui/meta/expected-error-correct-rev.rs rename to tests/ui/meta/expected-error-correct-rev.rs diff --git a/src/test/ui/meta/meta-expected-error-wrong-rev.a.stderr b/tests/ui/meta/meta-expected-error-wrong-rev.a.stderr similarity index 100% rename from src/test/ui/meta/meta-expected-error-wrong-rev.a.stderr rename to tests/ui/meta/meta-expected-error-wrong-rev.a.stderr diff --git a/src/test/ui/meta/meta-expected-error-wrong-rev.rs b/tests/ui/meta/meta-expected-error-wrong-rev.rs similarity index 100% rename from src/test/ui/meta/meta-expected-error-wrong-rev.rs rename to tests/ui/meta/meta-expected-error-wrong-rev.rs diff --git a/src/test/ui/meta/revision-bad.rs b/tests/ui/meta/revision-bad.rs similarity index 100% rename from src/test/ui/meta/revision-bad.rs rename to tests/ui/meta/revision-bad.rs diff --git a/src/test/ui/meta/revision-ok.rs b/tests/ui/meta/revision-ok.rs similarity index 100% rename from src/test/ui/meta/revision-ok.rs rename to tests/ui/meta/revision-ok.rs diff --git a/src/test/ui/meta/rustc-env.rs b/tests/ui/meta/rustc-env.rs similarity index 100% rename from src/test/ui/meta/rustc-env.rs rename to tests/ui/meta/rustc-env.rs diff --git a/src/test/ui/methods/assign-to-method.rs b/tests/ui/methods/assign-to-method.rs similarity index 100% rename from src/test/ui/methods/assign-to-method.rs rename to tests/ui/methods/assign-to-method.rs diff --git a/src/test/ui/methods/assign-to-method.stderr b/tests/ui/methods/assign-to-method.stderr similarity index 100% rename from src/test/ui/methods/assign-to-method.stderr rename to tests/ui/methods/assign-to-method.stderr diff --git a/src/test/ui/methods/auxiliary/ambig_impl_2_lib.rs b/tests/ui/methods/auxiliary/ambig_impl_2_lib.rs similarity index 100% rename from src/test/ui/methods/auxiliary/ambig_impl_2_lib.rs rename to tests/ui/methods/auxiliary/ambig_impl_2_lib.rs diff --git a/src/test/ui/methods/auxiliary/macro-in-other-crate.rs b/tests/ui/methods/auxiliary/macro-in-other-crate.rs similarity index 100% rename from src/test/ui/methods/auxiliary/macro-in-other-crate.rs rename to tests/ui/methods/auxiliary/macro-in-other-crate.rs diff --git a/src/test/ui/methods/auxiliary/method_self_arg1.rs b/tests/ui/methods/auxiliary/method_self_arg1.rs similarity index 100% rename from src/test/ui/methods/auxiliary/method_self_arg1.rs rename to tests/ui/methods/auxiliary/method_self_arg1.rs diff --git a/src/test/ui/methods/auxiliary/method_self_arg2.rs b/tests/ui/methods/auxiliary/method_self_arg2.rs similarity index 100% rename from src/test/ui/methods/auxiliary/method_self_arg2.rs rename to tests/ui/methods/auxiliary/method_self_arg2.rs diff --git a/src/test/ui/methods/field-method-suggestion-using-return-ty.rs b/tests/ui/methods/field-method-suggestion-using-return-ty.rs similarity index 100% rename from src/test/ui/methods/field-method-suggestion-using-return-ty.rs rename to tests/ui/methods/field-method-suggestion-using-return-ty.rs diff --git a/src/test/ui/methods/field-method-suggestion-using-return-ty.stderr b/tests/ui/methods/field-method-suggestion-using-return-ty.stderr similarity index 100% rename from src/test/ui/methods/field-method-suggestion-using-return-ty.stderr rename to tests/ui/methods/field-method-suggestion-using-return-ty.stderr diff --git a/src/test/ui/methods/issues/issue-105732.rs b/tests/ui/methods/issues/issue-105732.rs similarity index 100% rename from src/test/ui/methods/issues/issue-105732.rs rename to tests/ui/methods/issues/issue-105732.rs diff --git a/src/test/ui/methods/issues/issue-105732.stderr b/tests/ui/methods/issues/issue-105732.stderr similarity index 100% rename from src/test/ui/methods/issues/issue-105732.stderr rename to tests/ui/methods/issues/issue-105732.stderr diff --git a/src/test/ui/methods/issues/issue-61525.rs b/tests/ui/methods/issues/issue-61525.rs similarity index 100% rename from src/test/ui/methods/issues/issue-61525.rs rename to tests/ui/methods/issues/issue-61525.rs diff --git a/src/test/ui/methods/issues/issue-61525.stderr b/tests/ui/methods/issues/issue-61525.stderr similarity index 100% rename from src/test/ui/methods/issues/issue-61525.stderr rename to tests/ui/methods/issues/issue-61525.stderr diff --git a/src/test/ui/methods/issues/issue-84495.rs b/tests/ui/methods/issues/issue-84495.rs similarity index 100% rename from src/test/ui/methods/issues/issue-84495.rs rename to tests/ui/methods/issues/issue-84495.rs diff --git a/src/test/ui/methods/issues/issue-84495.stderr b/tests/ui/methods/issues/issue-84495.stderr similarity index 100% rename from src/test/ui/methods/issues/issue-84495.stderr rename to tests/ui/methods/issues/issue-84495.stderr diff --git a/src/test/ui/methods/issues/issue-90315.rs b/tests/ui/methods/issues/issue-90315.rs similarity index 100% rename from src/test/ui/methods/issues/issue-90315.rs rename to tests/ui/methods/issues/issue-90315.rs diff --git a/src/test/ui/methods/issues/issue-90315.stderr b/tests/ui/methods/issues/issue-90315.stderr similarity index 100% rename from src/test/ui/methods/issues/issue-90315.stderr rename to tests/ui/methods/issues/issue-90315.stderr diff --git a/src/test/ui/methods/issues/issue-94581.rs b/tests/ui/methods/issues/issue-94581.rs similarity index 100% rename from src/test/ui/methods/issues/issue-94581.rs rename to tests/ui/methods/issues/issue-94581.rs diff --git a/src/test/ui/methods/issues/issue-94581.stderr b/tests/ui/methods/issues/issue-94581.stderr similarity index 100% rename from src/test/ui/methods/issues/issue-94581.stderr rename to tests/ui/methods/issues/issue-94581.stderr diff --git a/src/test/ui/methods/method-ambig-one-trait-unknown-int-type.rs b/tests/ui/methods/method-ambig-one-trait-unknown-int-type.rs similarity index 100% rename from src/test/ui/methods/method-ambig-one-trait-unknown-int-type.rs rename to tests/ui/methods/method-ambig-one-trait-unknown-int-type.rs diff --git a/src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr b/tests/ui/methods/method-ambig-one-trait-unknown-int-type.stderr similarity index 100% rename from src/test/ui/methods/method-ambig-one-trait-unknown-int-type.stderr rename to tests/ui/methods/method-ambig-one-trait-unknown-int-type.stderr diff --git a/src/test/ui/methods/method-ambig-two-traits-cross-crate.rs b/tests/ui/methods/method-ambig-two-traits-cross-crate.rs similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-cross-crate.rs rename to tests/ui/methods/method-ambig-two-traits-cross-crate.rs diff --git a/src/test/ui/methods/method-ambig-two-traits-cross-crate.stderr b/tests/ui/methods/method-ambig-two-traits-cross-crate.stderr similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-cross-crate.stderr rename to tests/ui/methods/method-ambig-two-traits-cross-crate.stderr diff --git a/src/test/ui/methods/method-ambig-two-traits-from-bounds.rs b/tests/ui/methods/method-ambig-two-traits-from-bounds.rs similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-from-bounds.rs rename to tests/ui/methods/method-ambig-two-traits-from-bounds.rs diff --git a/src/test/ui/methods/method-ambig-two-traits-from-bounds.stderr b/tests/ui/methods/method-ambig-two-traits-from-bounds.stderr similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-from-bounds.stderr rename to tests/ui/methods/method-ambig-two-traits-from-bounds.stderr diff --git a/src/test/ui/methods/method-ambig-two-traits-from-impls.rs b/tests/ui/methods/method-ambig-two-traits-from-impls.rs similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-from-impls.rs rename to tests/ui/methods/method-ambig-two-traits-from-impls.rs diff --git a/src/test/ui/methods/method-ambig-two-traits-from-impls.stderr b/tests/ui/methods/method-ambig-two-traits-from-impls.stderr similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-from-impls.stderr rename to tests/ui/methods/method-ambig-two-traits-from-impls.stderr diff --git a/src/test/ui/methods/method-ambig-two-traits-from-impls2.rs b/tests/ui/methods/method-ambig-two-traits-from-impls2.rs similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-from-impls2.rs rename to tests/ui/methods/method-ambig-two-traits-from-impls2.rs diff --git a/src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr b/tests/ui/methods/method-ambig-two-traits-from-impls2.stderr similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-from-impls2.stderr rename to tests/ui/methods/method-ambig-two-traits-from-impls2.stderr diff --git a/src/test/ui/methods/method-ambig-two-traits-with-default-method.rs b/tests/ui/methods/method-ambig-two-traits-with-default-method.rs similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-with-default-method.rs rename to tests/ui/methods/method-ambig-two-traits-with-default-method.rs diff --git a/src/test/ui/methods/method-ambig-two-traits-with-default-method.stderr b/tests/ui/methods/method-ambig-two-traits-with-default-method.stderr similarity index 100% rename from src/test/ui/methods/method-ambig-two-traits-with-default-method.stderr rename to tests/ui/methods/method-ambig-two-traits-with-default-method.stderr diff --git a/src/test/ui/methods/method-argument-inference-associated-type.rs b/tests/ui/methods/method-argument-inference-associated-type.rs similarity index 100% rename from src/test/ui/methods/method-argument-inference-associated-type.rs rename to tests/ui/methods/method-argument-inference-associated-type.rs diff --git a/src/test/ui/methods/method-call-err-msg.rs b/tests/ui/methods/method-call-err-msg.rs similarity index 100% rename from src/test/ui/methods/method-call-err-msg.rs rename to tests/ui/methods/method-call-err-msg.rs diff --git a/src/test/ui/methods/method-call-err-msg.stderr b/tests/ui/methods/method-call-err-msg.stderr similarity index 100% rename from src/test/ui/methods/method-call-err-msg.stderr rename to tests/ui/methods/method-call-err-msg.stderr diff --git a/src/test/ui/methods/method-call-lifetime-args-fail.rs b/tests/ui/methods/method-call-lifetime-args-fail.rs similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-fail.rs rename to tests/ui/methods/method-call-lifetime-args-fail.rs diff --git a/src/test/ui/methods/method-call-lifetime-args-fail.stderr b/tests/ui/methods/method-call-lifetime-args-fail.stderr similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-fail.stderr rename to tests/ui/methods/method-call-lifetime-args-fail.stderr diff --git a/src/test/ui/methods/method-call-lifetime-args-lint-fail.rs b/tests/ui/methods/method-call-lifetime-args-lint-fail.rs similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-lint-fail.rs rename to tests/ui/methods/method-call-lifetime-args-lint-fail.rs diff --git a/src/test/ui/methods/method-call-lifetime-args-lint-fail.stderr b/tests/ui/methods/method-call-lifetime-args-lint-fail.stderr similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-lint-fail.stderr rename to tests/ui/methods/method-call-lifetime-args-lint-fail.stderr diff --git a/src/test/ui/methods/method-call-lifetime-args-lint.rs b/tests/ui/methods/method-call-lifetime-args-lint.rs similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-lint.rs rename to tests/ui/methods/method-call-lifetime-args-lint.rs diff --git a/src/test/ui/methods/method-call-lifetime-args-lint.stderr b/tests/ui/methods/method-call-lifetime-args-lint.stderr similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-lint.stderr rename to tests/ui/methods/method-call-lifetime-args-lint.stderr diff --git a/src/test/ui/methods/method-call-lifetime-args-subst-index.rs b/tests/ui/methods/method-call-lifetime-args-subst-index.rs similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-subst-index.rs rename to tests/ui/methods/method-call-lifetime-args-subst-index.rs diff --git a/src/test/ui/methods/method-call-lifetime-args-unresolved.rs b/tests/ui/methods/method-call-lifetime-args-unresolved.rs similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-unresolved.rs rename to tests/ui/methods/method-call-lifetime-args-unresolved.rs diff --git a/src/test/ui/methods/method-call-lifetime-args-unresolved.stderr b/tests/ui/methods/method-call-lifetime-args-unresolved.stderr similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args-unresolved.stderr rename to tests/ui/methods/method-call-lifetime-args-unresolved.stderr diff --git a/src/test/ui/methods/method-call-lifetime-args.rs b/tests/ui/methods/method-call-lifetime-args.rs similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args.rs rename to tests/ui/methods/method-call-lifetime-args.rs diff --git a/src/test/ui/methods/method-call-lifetime-args.stderr b/tests/ui/methods/method-call-lifetime-args.stderr similarity index 100% rename from src/test/ui/methods/method-call-lifetime-args.stderr rename to tests/ui/methods/method-call-lifetime-args.stderr diff --git a/src/test/ui/methods/method-call-type-binding.rs b/tests/ui/methods/method-call-type-binding.rs similarity index 100% rename from src/test/ui/methods/method-call-type-binding.rs rename to tests/ui/methods/method-call-type-binding.rs diff --git a/src/test/ui/methods/method-call-type-binding.stderr b/tests/ui/methods/method-call-type-binding.stderr similarity index 100% rename from src/test/ui/methods/method-call-type-binding.stderr rename to tests/ui/methods/method-call-type-binding.stderr diff --git a/src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.rs b/tests/ui/methods/method-deref-to-same-trait-object-with-separate-params.rs similarity index 100% rename from src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.rs rename to tests/ui/methods/method-deref-to-same-trait-object-with-separate-params.rs diff --git a/src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr b/tests/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr similarity index 100% rename from src/test/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr rename to tests/ui/methods/method-deref-to-same-trait-object-with-separate-params.stderr diff --git a/src/test/ui/methods/method-early-bound-lifetimes-on-self.rs b/tests/ui/methods/method-early-bound-lifetimes-on-self.rs similarity index 100% rename from src/test/ui/methods/method-early-bound-lifetimes-on-self.rs rename to tests/ui/methods/method-early-bound-lifetimes-on-self.rs diff --git a/src/test/ui/methods/method-lookup-order.rs b/tests/ui/methods/method-lookup-order.rs similarity index 100% rename from src/test/ui/methods/method-lookup-order.rs rename to tests/ui/methods/method-lookup-order.rs diff --git a/src/test/ui/methods/method-macro-backtrace.rs b/tests/ui/methods/method-macro-backtrace.rs similarity index 100% rename from src/test/ui/methods/method-macro-backtrace.rs rename to tests/ui/methods/method-macro-backtrace.rs diff --git a/src/test/ui/methods/method-macro-backtrace.stderr b/tests/ui/methods/method-macro-backtrace.stderr similarity index 100% rename from src/test/ui/methods/method-macro-backtrace.stderr rename to tests/ui/methods/method-macro-backtrace.stderr diff --git a/src/test/ui/methods/method-missing-call.rs b/tests/ui/methods/method-missing-call.rs similarity index 100% rename from src/test/ui/methods/method-missing-call.rs rename to tests/ui/methods/method-missing-call.rs diff --git a/src/test/ui/methods/method-missing-call.stderr b/tests/ui/methods/method-missing-call.stderr similarity index 100% rename from src/test/ui/methods/method-missing-call.stderr rename to tests/ui/methods/method-missing-call.stderr diff --git a/src/test/ui/methods/method-mut-self-modifies-mut-slice-lvalue.rs b/tests/ui/methods/method-mut-self-modifies-mut-slice-lvalue.rs similarity index 100% rename from src/test/ui/methods/method-mut-self-modifies-mut-slice-lvalue.rs rename to tests/ui/methods/method-mut-self-modifies-mut-slice-lvalue.rs diff --git a/src/test/ui/methods/method-normalize-bounds-issue-20604.rs b/tests/ui/methods/method-normalize-bounds-issue-20604.rs similarity index 100% rename from src/test/ui/methods/method-normalize-bounds-issue-20604.rs rename to tests/ui/methods/method-normalize-bounds-issue-20604.rs diff --git a/src/test/ui/methods/method-not-found-generic-arg-elision.rs b/tests/ui/methods/method-not-found-generic-arg-elision.rs similarity index 100% rename from src/test/ui/methods/method-not-found-generic-arg-elision.rs rename to tests/ui/methods/method-not-found-generic-arg-elision.rs diff --git a/src/test/ui/methods/method-not-found-generic-arg-elision.stderr b/tests/ui/methods/method-not-found-generic-arg-elision.stderr similarity index 100% rename from src/test/ui/methods/method-not-found-generic-arg-elision.stderr rename to tests/ui/methods/method-not-found-generic-arg-elision.stderr diff --git a/src/test/ui/methods/method-on-ambiguous-numeric-type.rs b/tests/ui/methods/method-on-ambiguous-numeric-type.rs similarity index 100% rename from src/test/ui/methods/method-on-ambiguous-numeric-type.rs rename to tests/ui/methods/method-on-ambiguous-numeric-type.rs diff --git a/src/test/ui/methods/method-on-ambiguous-numeric-type.stderr b/tests/ui/methods/method-on-ambiguous-numeric-type.stderr similarity index 100% rename from src/test/ui/methods/method-on-ambiguous-numeric-type.stderr rename to tests/ui/methods/method-on-ambiguous-numeric-type.stderr diff --git a/src/test/ui/methods/method-path-in-pattern.rs b/tests/ui/methods/method-path-in-pattern.rs similarity index 100% rename from src/test/ui/methods/method-path-in-pattern.rs rename to tests/ui/methods/method-path-in-pattern.rs diff --git a/src/test/ui/methods/method-path-in-pattern.stderr b/tests/ui/methods/method-path-in-pattern.stderr similarity index 100% rename from src/test/ui/methods/method-path-in-pattern.stderr rename to tests/ui/methods/method-path-in-pattern.stderr diff --git a/src/test/ui/methods/method-probe-no-guessing-dyn-trait.rs b/tests/ui/methods/method-probe-no-guessing-dyn-trait.rs similarity index 100% rename from src/test/ui/methods/method-probe-no-guessing-dyn-trait.rs rename to tests/ui/methods/method-probe-no-guessing-dyn-trait.rs diff --git a/src/test/ui/methods/method-projection.rs b/tests/ui/methods/method-projection.rs similarity index 100% rename from src/test/ui/methods/method-projection.rs rename to tests/ui/methods/method-projection.rs diff --git a/src/test/ui/methods/method-recursive-blanket-impl.rs b/tests/ui/methods/method-recursive-blanket-impl.rs similarity index 100% rename from src/test/ui/methods/method-recursive-blanket-impl.rs rename to tests/ui/methods/method-recursive-blanket-impl.rs diff --git a/src/test/ui/methods/method-resolvable-path-in-pattern.rs b/tests/ui/methods/method-resolvable-path-in-pattern.rs similarity index 100% rename from src/test/ui/methods/method-resolvable-path-in-pattern.rs rename to tests/ui/methods/method-resolvable-path-in-pattern.rs diff --git a/src/test/ui/methods/method-resolvable-path-in-pattern.stderr b/tests/ui/methods/method-resolvable-path-in-pattern.stderr similarity index 100% rename from src/test/ui/methods/method-resolvable-path-in-pattern.stderr rename to tests/ui/methods/method-resolvable-path-in-pattern.stderr diff --git a/src/test/ui/methods/method-self-arg-1.rs b/tests/ui/methods/method-self-arg-1.rs similarity index 100% rename from src/test/ui/methods/method-self-arg-1.rs rename to tests/ui/methods/method-self-arg-1.rs diff --git a/src/test/ui/methods/method-self-arg-1.stderr b/tests/ui/methods/method-self-arg-1.stderr similarity index 100% rename from src/test/ui/methods/method-self-arg-1.stderr rename to tests/ui/methods/method-self-arg-1.stderr diff --git a/src/test/ui/methods/method-self-arg-2.rs b/tests/ui/methods/method-self-arg-2.rs similarity index 100% rename from src/test/ui/methods/method-self-arg-2.rs rename to tests/ui/methods/method-self-arg-2.rs diff --git a/src/test/ui/methods/method-self-arg-2.stderr b/tests/ui/methods/method-self-arg-2.stderr similarity index 100% rename from src/test/ui/methods/method-self-arg-2.stderr rename to tests/ui/methods/method-self-arg-2.stderr diff --git a/src/test/ui/methods/method-self-arg-aux1.rs b/tests/ui/methods/method-self-arg-aux1.rs similarity index 100% rename from src/test/ui/methods/method-self-arg-aux1.rs rename to tests/ui/methods/method-self-arg-aux1.rs diff --git a/src/test/ui/methods/method-self-arg-aux2.rs b/tests/ui/methods/method-self-arg-aux2.rs similarity index 100% rename from src/test/ui/methods/method-self-arg-aux2.rs rename to tests/ui/methods/method-self-arg-aux2.rs diff --git a/src/test/ui/methods/method-self-arg-trait.rs b/tests/ui/methods/method-self-arg-trait.rs similarity index 100% rename from src/test/ui/methods/method-self-arg-trait.rs rename to tests/ui/methods/method-self-arg-trait.rs diff --git a/src/test/ui/methods/method-self-arg.rs b/tests/ui/methods/method-self-arg.rs similarity index 100% rename from src/test/ui/methods/method-self-arg.rs rename to tests/ui/methods/method-self-arg.rs diff --git a/src/test/ui/methods/method-trait-object-with-hrtb.rs b/tests/ui/methods/method-trait-object-with-hrtb.rs similarity index 100% rename from src/test/ui/methods/method-trait-object-with-hrtb.rs rename to tests/ui/methods/method-trait-object-with-hrtb.rs diff --git a/src/test/ui/methods/method-two-trait-defer-resolution-1.rs b/tests/ui/methods/method-two-trait-defer-resolution-1.rs similarity index 100% rename from src/test/ui/methods/method-two-trait-defer-resolution-1.rs rename to tests/ui/methods/method-two-trait-defer-resolution-1.rs diff --git a/src/test/ui/methods/method-two-trait-defer-resolution-2.rs b/tests/ui/methods/method-two-trait-defer-resolution-2.rs similarity index 100% rename from src/test/ui/methods/method-two-trait-defer-resolution-2.rs rename to tests/ui/methods/method-two-trait-defer-resolution-2.rs diff --git a/src/test/ui/methods/method-two-traits-distinguished-via-where-clause.rs b/tests/ui/methods/method-two-traits-distinguished-via-where-clause.rs similarity index 100% rename from src/test/ui/methods/method-two-traits-distinguished-via-where-clause.rs rename to tests/ui/methods/method-two-traits-distinguished-via-where-clause.rs diff --git a/src/test/ui/methods/method-where-clause.rs b/tests/ui/methods/method-where-clause.rs similarity index 100% rename from src/test/ui/methods/method-where-clause.rs rename to tests/ui/methods/method-where-clause.rs diff --git a/src/test/ui/minus-string.rs b/tests/ui/minus-string.rs similarity index 100% rename from src/test/ui/minus-string.rs rename to tests/ui/minus-string.rs diff --git a/src/test/ui/minus-string.stderr b/tests/ui/minus-string.stderr similarity index 100% rename from src/test/ui/minus-string.stderr rename to tests/ui/minus-string.stderr diff --git a/src/test/ui/mir-dataflow/README.md b/tests/ui/mir-dataflow/README.md similarity index 100% rename from src/test/ui/mir-dataflow/README.md rename to tests/ui/mir-dataflow/README.md diff --git a/src/test/ui/mir-dataflow/def-inits-1.rs b/tests/ui/mir-dataflow/def-inits-1.rs similarity index 100% rename from src/test/ui/mir-dataflow/def-inits-1.rs rename to tests/ui/mir-dataflow/def-inits-1.rs diff --git a/src/test/ui/mir-dataflow/def-inits-1.stderr b/tests/ui/mir-dataflow/def-inits-1.stderr similarity index 100% rename from src/test/ui/mir-dataflow/def-inits-1.stderr rename to tests/ui/mir-dataflow/def-inits-1.stderr diff --git a/src/test/ui/mir-dataflow/inits-1.rs b/tests/ui/mir-dataflow/inits-1.rs similarity index 100% rename from src/test/ui/mir-dataflow/inits-1.rs rename to tests/ui/mir-dataflow/inits-1.rs diff --git a/src/test/ui/mir-dataflow/inits-1.stderr b/tests/ui/mir-dataflow/inits-1.stderr similarity index 100% rename from src/test/ui/mir-dataflow/inits-1.stderr rename to tests/ui/mir-dataflow/inits-1.stderr diff --git a/src/test/ui/mir-dataflow/liveness-enum.rs b/tests/ui/mir-dataflow/liveness-enum.rs similarity index 100% rename from src/test/ui/mir-dataflow/liveness-enum.rs rename to tests/ui/mir-dataflow/liveness-enum.rs diff --git a/src/test/ui/mir-dataflow/liveness-enum.stderr b/tests/ui/mir-dataflow/liveness-enum.stderr similarity index 100% rename from src/test/ui/mir-dataflow/liveness-enum.stderr rename to tests/ui/mir-dataflow/liveness-enum.stderr diff --git a/src/test/ui/mir-dataflow/liveness-projection.rs b/tests/ui/mir-dataflow/liveness-projection.rs similarity index 100% rename from src/test/ui/mir-dataflow/liveness-projection.rs rename to tests/ui/mir-dataflow/liveness-projection.rs diff --git a/src/test/ui/mir-dataflow/liveness-projection.stderr b/tests/ui/mir-dataflow/liveness-projection.stderr similarity index 100% rename from src/test/ui/mir-dataflow/liveness-projection.stderr rename to tests/ui/mir-dataflow/liveness-projection.stderr diff --git a/src/test/ui/mir-dataflow/liveness-ptr.rs b/tests/ui/mir-dataflow/liveness-ptr.rs similarity index 100% rename from src/test/ui/mir-dataflow/liveness-ptr.rs rename to tests/ui/mir-dataflow/liveness-ptr.rs diff --git a/src/test/ui/mir-dataflow/liveness-ptr.stderr b/tests/ui/mir-dataflow/liveness-ptr.stderr similarity index 100% rename from src/test/ui/mir-dataflow/liveness-ptr.stderr rename to tests/ui/mir-dataflow/liveness-ptr.stderr diff --git a/src/test/ui/mir-dataflow/uninits-1.rs b/tests/ui/mir-dataflow/uninits-1.rs similarity index 100% rename from src/test/ui/mir-dataflow/uninits-1.rs rename to tests/ui/mir-dataflow/uninits-1.rs diff --git a/src/test/ui/mir-dataflow/uninits-1.stderr b/tests/ui/mir-dataflow/uninits-1.stderr similarity index 100% rename from src/test/ui/mir-dataflow/uninits-1.stderr rename to tests/ui/mir-dataflow/uninits-1.stderr diff --git a/src/test/ui/mir-dataflow/uninits-2.rs b/tests/ui/mir-dataflow/uninits-2.rs similarity index 100% rename from src/test/ui/mir-dataflow/uninits-2.rs rename to tests/ui/mir-dataflow/uninits-2.rs diff --git a/src/test/ui/mir-dataflow/uninits-2.stderr b/tests/ui/mir-dataflow/uninits-2.stderr similarity index 100% rename from src/test/ui/mir-dataflow/uninits-2.stderr rename to tests/ui/mir-dataflow/uninits-2.stderr diff --git a/src/test/ui/mir-unpretty.rs b/tests/ui/mir-unpretty.rs similarity index 100% rename from src/test/ui/mir-unpretty.rs rename to tests/ui/mir-unpretty.rs diff --git a/src/test/ui/mir-unpretty.stderr b/tests/ui/mir-unpretty.stderr similarity index 100% rename from src/test/ui/mir-unpretty.stderr rename to tests/ui/mir-unpretty.stderr diff --git a/src/test/ui/mir/auxiliary/issue_76375_aux.rs b/tests/ui/mir/auxiliary/issue_76375_aux.rs similarity index 100% rename from src/test/ui/mir/auxiliary/issue_76375_aux.rs rename to tests/ui/mir/auxiliary/issue_76375_aux.rs diff --git a/src/test/ui/mir/auxiliary/mir_external_refs.rs b/tests/ui/mir/auxiliary/mir_external_refs.rs similarity index 100% rename from src/test/ui/mir/auxiliary/mir_external_refs.rs rename to tests/ui/mir/auxiliary/mir_external_refs.rs diff --git a/src/test/ui/mir/drop-elaboration-after-borrowck-error.rs b/tests/ui/mir/drop-elaboration-after-borrowck-error.rs similarity index 100% rename from src/test/ui/mir/drop-elaboration-after-borrowck-error.rs rename to tests/ui/mir/drop-elaboration-after-borrowck-error.rs diff --git a/src/test/ui/mir/drop-elaboration-after-borrowck-error.stderr b/tests/ui/mir/drop-elaboration-after-borrowck-error.stderr similarity index 100% rename from src/test/ui/mir/drop-elaboration-after-borrowck-error.stderr rename to tests/ui/mir/drop-elaboration-after-borrowck-error.stderr diff --git a/src/test/ui/mir/important-higher-ranked-regions.rs b/tests/ui/mir/important-higher-ranked-regions.rs similarity index 100% rename from src/test/ui/mir/important-higher-ranked-regions.rs rename to tests/ui/mir/important-higher-ranked-regions.rs diff --git a/src/test/ui/mir/issue-101844.rs b/tests/ui/mir/issue-101844.rs similarity index 100% rename from src/test/ui/mir/issue-101844.rs rename to tests/ui/mir/issue-101844.rs diff --git a/src/test/ui/mir/issue-102389.rs b/tests/ui/mir/issue-102389.rs similarity index 100% rename from src/test/ui/mir/issue-102389.rs rename to tests/ui/mir/issue-102389.rs diff --git a/src/test/ui/mir/issue-102389.stderr b/tests/ui/mir/issue-102389.stderr similarity index 100% rename from src/test/ui/mir/issue-102389.stderr rename to tests/ui/mir/issue-102389.stderr diff --git a/src/test/ui/mir/issue-105809.rs b/tests/ui/mir/issue-105809.rs similarity index 100% rename from src/test/ui/mir/issue-105809.rs rename to tests/ui/mir/issue-105809.rs diff --git a/src/test/ui/mir/issue-106062.rs b/tests/ui/mir/issue-106062.rs similarity index 100% rename from src/test/ui/mir/issue-106062.rs rename to tests/ui/mir/issue-106062.rs diff --git a/src/test/ui/mir/issue-106062.stderr b/tests/ui/mir/issue-106062.stderr similarity index 100% rename from src/test/ui/mir/issue-106062.stderr rename to tests/ui/mir/issue-106062.stderr diff --git a/src/test/ui/mir/issue-29227.rs b/tests/ui/mir/issue-29227.rs similarity index 100% rename from src/test/ui/mir/issue-29227.rs rename to tests/ui/mir/issue-29227.rs diff --git a/src/test/ui/mir/issue-46845.rs b/tests/ui/mir/issue-46845.rs similarity index 100% rename from src/test/ui/mir/issue-46845.rs rename to tests/ui/mir/issue-46845.rs diff --git a/src/test/ui/mir/issue-60390.rs b/tests/ui/mir/issue-60390.rs similarity index 100% rename from src/test/ui/mir/issue-60390.rs rename to tests/ui/mir/issue-60390.rs diff --git a/src/test/ui/mir/issue-66851.rs b/tests/ui/mir/issue-66851.rs similarity index 100% rename from src/test/ui/mir/issue-66851.rs rename to tests/ui/mir/issue-66851.rs diff --git a/src/test/ui/mir/issue-66930.rs b/tests/ui/mir/issue-66930.rs similarity index 100% rename from src/test/ui/mir/issue-66930.rs rename to tests/ui/mir/issue-66930.rs diff --git a/src/test/ui/mir/issue-67639-normalization-ice.rs b/tests/ui/mir/issue-67639-normalization-ice.rs similarity index 100% rename from src/test/ui/mir/issue-67639-normalization-ice.rs rename to tests/ui/mir/issue-67639-normalization-ice.rs diff --git a/src/test/ui/mir/issue-67710-inline-projection.rs b/tests/ui/mir/issue-67710-inline-projection.rs similarity index 100% rename from src/test/ui/mir/issue-67710-inline-projection.rs rename to tests/ui/mir/issue-67710-inline-projection.rs diff --git a/src/test/ui/mir/issue-67947.rs b/tests/ui/mir/issue-67947.rs similarity index 100% rename from src/test/ui/mir/issue-67947.rs rename to tests/ui/mir/issue-67947.rs diff --git a/src/test/ui/mir/issue-67947.stderr b/tests/ui/mir/issue-67947.stderr similarity index 100% rename from src/test/ui/mir/issue-67947.stderr rename to tests/ui/mir/issue-67947.stderr diff --git a/src/test/ui/mir/issue-68841.rs b/tests/ui/mir/issue-68841.rs similarity index 100% rename from src/test/ui/mir/issue-68841.rs rename to tests/ui/mir/issue-68841.rs diff --git a/src/test/ui/mir/issue-71793-inline-args-storage.rs b/tests/ui/mir/issue-71793-inline-args-storage.rs similarity index 100% rename from src/test/ui/mir/issue-71793-inline-args-storage.rs rename to tests/ui/mir/issue-71793-inline-args-storage.rs diff --git a/src/test/ui/mir/issue-73914.rs b/tests/ui/mir/issue-73914.rs similarity index 100% rename from src/test/ui/mir/issue-73914.rs rename to tests/ui/mir/issue-73914.rs diff --git a/src/test/ui/mir/issue-74739.rs b/tests/ui/mir/issue-74739.rs similarity index 100% rename from src/test/ui/mir/issue-74739.rs rename to tests/ui/mir/issue-74739.rs diff --git a/src/test/ui/mir/issue-75053.rs b/tests/ui/mir/issue-75053.rs similarity index 100% rename from src/test/ui/mir/issue-75053.rs rename to tests/ui/mir/issue-75053.rs diff --git a/src/test/ui/mir/issue-75053.stderr b/tests/ui/mir/issue-75053.stderr similarity index 100% rename from src/test/ui/mir/issue-75053.stderr rename to tests/ui/mir/issue-75053.stderr diff --git a/src/test/ui/mir/issue-75419-validation-impl-trait.rs b/tests/ui/mir/issue-75419-validation-impl-trait.rs similarity index 100% rename from src/test/ui/mir/issue-75419-validation-impl-trait.rs rename to tests/ui/mir/issue-75419-validation-impl-trait.rs diff --git a/src/test/ui/mir/issue-76248.rs b/tests/ui/mir/issue-76248.rs similarity index 100% rename from src/test/ui/mir/issue-76248.rs rename to tests/ui/mir/issue-76248.rs diff --git a/src/test/ui/mir/issue-76375.rs b/tests/ui/mir/issue-76375.rs similarity index 100% rename from src/test/ui/mir/issue-76375.rs rename to tests/ui/mir/issue-76375.rs diff --git a/src/test/ui/mir/issue-76740-copy-propagation.rs b/tests/ui/mir/issue-76740-copy-propagation.rs similarity index 100% rename from src/test/ui/mir/issue-76740-copy-propagation.rs rename to tests/ui/mir/issue-76740-copy-propagation.rs diff --git a/src/test/ui/mir/issue-76803-branches-not-same.rs b/tests/ui/mir/issue-76803-branches-not-same.rs similarity index 100% rename from src/test/ui/mir/issue-76803-branches-not-same.rs rename to tests/ui/mir/issue-76803-branches-not-same.rs diff --git a/src/test/ui/mir/issue-77002.rs b/tests/ui/mir/issue-77002.rs similarity index 100% rename from src/test/ui/mir/issue-77002.rs rename to tests/ui/mir/issue-77002.rs diff --git a/src/test/ui/mir/issue-77359-simplify-arm-identity.rs b/tests/ui/mir/issue-77359-simplify-arm-identity.rs similarity index 100% rename from src/test/ui/mir/issue-77359-simplify-arm-identity.rs rename to tests/ui/mir/issue-77359-simplify-arm-identity.rs diff --git a/src/test/ui/mir/issue-77911.rs b/tests/ui/mir/issue-77911.rs similarity index 100% rename from src/test/ui/mir/issue-77911.rs rename to tests/ui/mir/issue-77911.rs diff --git a/src/test/ui/mir/issue-78496.rs b/tests/ui/mir/issue-78496.rs similarity index 100% rename from src/test/ui/mir/issue-78496.rs rename to tests/ui/mir/issue-78496.rs diff --git a/src/test/ui/mir/issue-80949.rs b/tests/ui/mir/issue-80949.rs similarity index 100% rename from src/test/ui/mir/issue-80949.rs rename to tests/ui/mir/issue-80949.rs diff --git a/src/test/ui/mir/issue-83499-input-output-iteration-ice.rs b/tests/ui/mir/issue-83499-input-output-iteration-ice.rs similarity index 100% rename from src/test/ui/mir/issue-83499-input-output-iteration-ice.rs rename to tests/ui/mir/issue-83499-input-output-iteration-ice.rs diff --git a/src/test/ui/mir/issue-83499-input-output-iteration-ice.stderr b/tests/ui/mir/issue-83499-input-output-iteration-ice.stderr similarity index 100% rename from src/test/ui/mir/issue-83499-input-output-iteration-ice.stderr rename to tests/ui/mir/issue-83499-input-output-iteration-ice.stderr diff --git a/src/test/ui/mir/issue-89485.rs b/tests/ui/mir/issue-89485.rs similarity index 100% rename from src/test/ui/mir/issue-89485.rs rename to tests/ui/mir/issue-89485.rs diff --git a/src/test/ui/mir/issue-91745.rs b/tests/ui/mir/issue-91745.rs similarity index 100% rename from src/test/ui/mir/issue-91745.rs rename to tests/ui/mir/issue-91745.rs diff --git a/src/test/ui/mir/issue-92893.rs b/tests/ui/mir/issue-92893.rs similarity index 100% rename from src/test/ui/mir/issue-92893.rs rename to tests/ui/mir/issue-92893.rs diff --git a/src/test/ui/mir/issue-92893.stderr b/tests/ui/mir/issue-92893.stderr similarity index 100% rename from src/test/ui/mir/issue-92893.stderr rename to tests/ui/mir/issue-92893.stderr diff --git a/src/test/ui/mir/issue-99852.rs b/tests/ui/mir/issue-99852.rs similarity index 100% rename from src/test/ui/mir/issue-99852.rs rename to tests/ui/mir/issue-99852.rs diff --git a/src/test/ui/mir/issue-99866.rs b/tests/ui/mir/issue-99866.rs similarity index 100% rename from src/test/ui/mir/issue-99866.rs rename to tests/ui/mir/issue-99866.rs diff --git a/src/test/ui/mir/issue66339.rs b/tests/ui/mir/issue66339.rs similarity index 100% rename from src/test/ui/mir/issue66339.rs rename to tests/ui/mir/issue66339.rs diff --git a/src/test/ui/mir/mir-inlining/array-clone-with-generic-size.rs b/tests/ui/mir/mir-inlining/array-clone-with-generic-size.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/array-clone-with-generic-size.rs rename to tests/ui/mir/mir-inlining/array-clone-with-generic-size.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-100550-unnormalized-projection.rs b/tests/ui/mir/mir-inlining/ice-issue-100550-unnormalized-projection.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-100550-unnormalized-projection.rs rename to tests/ui/mir/mir-inlining/ice-issue-100550-unnormalized-projection.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-45493.rs b/tests/ui/mir/mir-inlining/ice-issue-45493.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-45493.rs rename to tests/ui/mir/mir-inlining/ice-issue-45493.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-45885.rs b/tests/ui/mir/mir-inlining/ice-issue-45885.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-45885.rs rename to tests/ui/mir/mir-inlining/ice-issue-45885.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-68347.rs b/tests/ui/mir/mir-inlining/ice-issue-68347.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-68347.rs rename to tests/ui/mir/mir-inlining/ice-issue-68347.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-77306-1.rs b/tests/ui/mir/mir-inlining/ice-issue-77306-1.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-77306-1.rs rename to tests/ui/mir/mir-inlining/ice-issue-77306-1.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-77306-2.rs b/tests/ui/mir/mir-inlining/ice-issue-77306-2.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-77306-2.rs rename to tests/ui/mir/mir-inlining/ice-issue-77306-2.rs diff --git a/src/test/ui/mir/mir-inlining/ice-issue-77564.rs b/tests/ui/mir/mir-inlining/ice-issue-77564.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/ice-issue-77564.rs rename to tests/ui/mir/mir-inlining/ice-issue-77564.rs diff --git a/src/test/ui/mir/mir-inlining/no-trait-method-issue-40473.rs b/tests/ui/mir/mir-inlining/no-trait-method-issue-40473.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/no-trait-method-issue-40473.rs rename to tests/ui/mir/mir-inlining/no-trait-method-issue-40473.rs diff --git a/src/test/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs b/tests/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs similarity index 100% rename from src/test/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs rename to tests/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs diff --git a/src/test/ui/mir/mir-typeck-normalize-fn-sig.rs b/tests/ui/mir/mir-typeck-normalize-fn-sig.rs similarity index 100% rename from src/test/ui/mir/mir-typeck-normalize-fn-sig.rs rename to tests/ui/mir/mir-typeck-normalize-fn-sig.rs diff --git a/src/test/ui/mir/mir_adt_construction.rs b/tests/ui/mir/mir_adt_construction.rs similarity index 100% rename from src/test/ui/mir/mir_adt_construction.rs rename to tests/ui/mir/mir_adt_construction.rs diff --git a/src/test/ui/mir/mir_ascription_coercion.rs b/tests/ui/mir/mir_ascription_coercion.rs similarity index 100% rename from src/test/ui/mir/mir_ascription_coercion.rs rename to tests/ui/mir/mir_ascription_coercion.rs diff --git a/src/test/ui/mir/mir_assign_eval_order.rs b/tests/ui/mir/mir_assign_eval_order.rs similarity index 100% rename from src/test/ui/mir/mir_assign_eval_order.rs rename to tests/ui/mir/mir_assign_eval_order.rs diff --git a/src/test/ui/mir/mir_augmented_assignments.rs b/tests/ui/mir/mir_augmented_assignments.rs similarity index 100% rename from src/test/ui/mir/mir_augmented_assignments.rs rename to tests/ui/mir/mir_augmented_assignments.rs diff --git a/src/test/ui/mir/mir_autoderef.rs b/tests/ui/mir/mir_autoderef.rs similarity index 100% rename from src/test/ui/mir/mir_autoderef.rs rename to tests/ui/mir/mir_autoderef.rs diff --git a/src/test/ui/mir/mir_boxing.rs b/tests/ui/mir/mir_boxing.rs similarity index 100% rename from src/test/ui/mir/mir_boxing.rs rename to tests/ui/mir/mir_boxing.rs diff --git a/src/test/ui/mir/mir_build_match_comparisons.rs b/tests/ui/mir/mir_build_match_comparisons.rs similarity index 100% rename from src/test/ui/mir/mir_build_match_comparisons.rs rename to tests/ui/mir/mir_build_match_comparisons.rs diff --git a/src/test/ui/mir/mir_call_with_associated_type.rs b/tests/ui/mir/mir_call_with_associated_type.rs similarity index 100% rename from src/test/ui/mir/mir_call_with_associated_type.rs rename to tests/ui/mir/mir_call_with_associated_type.rs diff --git a/src/test/ui/mir/mir_calls_to_shims.rs b/tests/ui/mir/mir_calls_to_shims.rs similarity index 100% rename from src/test/ui/mir/mir_calls_to_shims.rs rename to tests/ui/mir/mir_calls_to_shims.rs diff --git a/src/test/ui/mir/mir_cast_fn_ret.rs b/tests/ui/mir/mir_cast_fn_ret.rs similarity index 100% rename from src/test/ui/mir/mir_cast_fn_ret.rs rename to tests/ui/mir/mir_cast_fn_ret.rs diff --git a/src/test/ui/mir/mir_codegen_array.rs b/tests/ui/mir/mir_codegen_array.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_array.rs rename to tests/ui/mir/mir_codegen_array.rs diff --git a/src/test/ui/mir/mir_codegen_array_2.rs b/tests/ui/mir/mir_codegen_array_2.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_array_2.rs rename to tests/ui/mir/mir_codegen_array_2.rs diff --git a/src/test/ui/mir/mir_codegen_call_converging.rs b/tests/ui/mir/mir_codegen_call_converging.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_call_converging.rs rename to tests/ui/mir/mir_codegen_call_converging.rs diff --git a/src/test/ui/mir/mir_codegen_calls.rs b/tests/ui/mir/mir_codegen_calls.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_calls.rs rename to tests/ui/mir/mir_codegen_calls.rs diff --git a/src/test/ui/mir/mir_codegen_calls_converging_drops.rs b/tests/ui/mir/mir_codegen_calls_converging_drops.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_calls_converging_drops.rs rename to tests/ui/mir/mir_codegen_calls_converging_drops.rs diff --git a/src/test/ui/mir/mir_codegen_calls_converging_drops_2.rs b/tests/ui/mir/mir_codegen_calls_converging_drops_2.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_calls_converging_drops_2.rs rename to tests/ui/mir/mir_codegen_calls_converging_drops_2.rs diff --git a/src/test/ui/mir/mir_codegen_calls_diverging.rs b/tests/ui/mir/mir_codegen_calls_diverging.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_calls_diverging.rs rename to tests/ui/mir/mir_codegen_calls_diverging.rs diff --git a/src/test/ui/mir/mir_codegen_calls_diverging_drops.rs b/tests/ui/mir/mir_codegen_calls_diverging_drops.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_calls_diverging_drops.rs rename to tests/ui/mir/mir_codegen_calls_diverging_drops.rs diff --git a/src/test/ui/mir/mir_codegen_critical_edge.rs b/tests/ui/mir/mir_codegen_critical_edge.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_critical_edge.rs rename to tests/ui/mir/mir_codegen_critical_edge.rs diff --git a/src/test/ui/mir/mir_codegen_spike1.rs b/tests/ui/mir/mir_codegen_spike1.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_spike1.rs rename to tests/ui/mir/mir_codegen_spike1.rs diff --git a/src/test/ui/mir/mir_codegen_switch.rs b/tests/ui/mir/mir_codegen_switch.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_switch.rs rename to tests/ui/mir/mir_codegen_switch.rs diff --git a/src/test/ui/mir/mir_codegen_switchint.rs b/tests/ui/mir/mir_codegen_switchint.rs similarity index 100% rename from src/test/ui/mir/mir_codegen_switchint.rs rename to tests/ui/mir/mir_codegen_switchint.rs diff --git a/src/test/ui/mir/mir_coercion_casts.rs b/tests/ui/mir/mir_coercion_casts.rs similarity index 100% rename from src/test/ui/mir/mir_coercion_casts.rs rename to tests/ui/mir/mir_coercion_casts.rs diff --git a/src/test/ui/mir/mir_coercions.rs b/tests/ui/mir/mir_coercions.rs similarity index 100% rename from src/test/ui/mir/mir_coercions.rs rename to tests/ui/mir/mir_coercions.rs diff --git a/src/test/ui/mir/mir_const_prop_identity.rs b/tests/ui/mir/mir_const_prop_identity.rs similarity index 100% rename from src/test/ui/mir/mir_const_prop_identity.rs rename to tests/ui/mir/mir_const_prop_identity.rs diff --git a/src/test/ui/mir/mir_const_prop_tuple_field_reorder.rs b/tests/ui/mir/mir_const_prop_tuple_field_reorder.rs similarity index 100% rename from src/test/ui/mir/mir_const_prop_tuple_field_reorder.rs rename to tests/ui/mir/mir_const_prop_tuple_field_reorder.rs diff --git a/src/test/ui/mir/mir_constval_adts.rs b/tests/ui/mir/mir_constval_adts.rs similarity index 100% rename from src/test/ui/mir/mir_constval_adts.rs rename to tests/ui/mir/mir_constval_adts.rs diff --git a/src/test/ui/mir/mir_detects_invalid_ops.rs b/tests/ui/mir/mir_detects_invalid_ops.rs similarity index 100% rename from src/test/ui/mir/mir_detects_invalid_ops.rs rename to tests/ui/mir/mir_detects_invalid_ops.rs diff --git a/src/test/ui/mir/mir_detects_invalid_ops.stderr b/tests/ui/mir/mir_detects_invalid_ops.stderr similarity index 100% rename from src/test/ui/mir/mir_detects_invalid_ops.stderr rename to tests/ui/mir/mir_detects_invalid_ops.stderr diff --git a/src/test/ui/mir/mir_drop_order.rs b/tests/ui/mir/mir_drop_order.rs similarity index 100% rename from src/test/ui/mir/mir_drop_order.rs rename to tests/ui/mir/mir_drop_order.rs diff --git a/src/test/ui/mir/mir_drop_panics.rs b/tests/ui/mir/mir_drop_panics.rs similarity index 100% rename from src/test/ui/mir/mir_drop_panics.rs rename to tests/ui/mir/mir_drop_panics.rs diff --git a/src/test/ui/mir/mir_dynamic_drops_1.rs b/tests/ui/mir/mir_dynamic_drops_1.rs similarity index 100% rename from src/test/ui/mir/mir_dynamic_drops_1.rs rename to tests/ui/mir/mir_dynamic_drops_1.rs diff --git a/src/test/ui/mir/mir_dynamic_drops_2.rs b/tests/ui/mir/mir_dynamic_drops_2.rs similarity index 100% rename from src/test/ui/mir/mir_dynamic_drops_2.rs rename to tests/ui/mir/mir_dynamic_drops_2.rs diff --git a/src/test/ui/mir/mir_dynamic_drops_3.rs b/tests/ui/mir/mir_dynamic_drops_3.rs similarity index 100% rename from src/test/ui/mir/mir_dynamic_drops_3.rs rename to tests/ui/mir/mir_dynamic_drops_3.rs diff --git a/src/test/ui/mir/mir_early_return_scope.rs b/tests/ui/mir/mir_early_return_scope.rs similarity index 100% rename from src/test/ui/mir/mir_early_return_scope.rs rename to tests/ui/mir/mir_early_return_scope.rs diff --git a/src/test/ui/mir/mir_fat_ptr.rs b/tests/ui/mir/mir_fat_ptr.rs similarity index 100% rename from src/test/ui/mir/mir_fat_ptr.rs rename to tests/ui/mir/mir_fat_ptr.rs diff --git a/src/test/ui/mir/mir_fat_ptr_drop.rs b/tests/ui/mir/mir_fat_ptr_drop.rs similarity index 100% rename from src/test/ui/mir/mir_fat_ptr_drop.rs rename to tests/ui/mir/mir_fat_ptr_drop.rs diff --git a/src/test/ui/mir/mir_heavy_promoted.rs b/tests/ui/mir/mir_heavy_promoted.rs similarity index 100% rename from src/test/ui/mir/mir_heavy_promoted.rs rename to tests/ui/mir/mir_heavy_promoted.rs diff --git a/src/test/ui/mir/mir_indexing_oob_1.rs b/tests/ui/mir/mir_indexing_oob_1.rs similarity index 100% rename from src/test/ui/mir/mir_indexing_oob_1.rs rename to tests/ui/mir/mir_indexing_oob_1.rs diff --git a/src/test/ui/mir/mir_indexing_oob_2.rs b/tests/ui/mir/mir_indexing_oob_2.rs similarity index 100% rename from src/test/ui/mir/mir_indexing_oob_2.rs rename to tests/ui/mir/mir_indexing_oob_2.rs diff --git a/src/test/ui/mir/mir_indexing_oob_3.rs b/tests/ui/mir/mir_indexing_oob_3.rs similarity index 100% rename from src/test/ui/mir/mir_indexing_oob_3.rs rename to tests/ui/mir/mir_indexing_oob_3.rs diff --git a/src/test/ui/mir/mir_let_chains_drop_order.rs b/tests/ui/mir/mir_let_chains_drop_order.rs similarity index 100% rename from src/test/ui/mir/mir_let_chains_drop_order.rs rename to tests/ui/mir/mir_let_chains_drop_order.rs diff --git a/src/test/ui/mir/mir_match_arm_guard.rs b/tests/ui/mir/mir_match_arm_guard.rs similarity index 100% rename from src/test/ui/mir/mir_match_arm_guard.rs rename to tests/ui/mir/mir_match_arm_guard.rs diff --git a/src/test/ui/mir/mir_match_test.rs b/tests/ui/mir/mir_match_test.rs similarity index 100% rename from src/test/ui/mir/mir_match_test.rs rename to tests/ui/mir/mir_match_test.rs diff --git a/src/test/ui/mir/mir_misc_casts.rs b/tests/ui/mir/mir_misc_casts.rs similarity index 100% rename from src/test/ui/mir/mir_misc_casts.rs rename to tests/ui/mir/mir_misc_casts.rs diff --git a/src/test/ui/mir/mir_overflow_off.rs b/tests/ui/mir/mir_overflow_off.rs similarity index 100% rename from src/test/ui/mir/mir_overflow_off.rs rename to tests/ui/mir/mir_overflow_off.rs diff --git a/src/test/ui/mir/mir_raw_fat_ptr.rs b/tests/ui/mir/mir_raw_fat_ptr.rs similarity index 100% rename from src/test/ui/mir/mir_raw_fat_ptr.rs rename to tests/ui/mir/mir_raw_fat_ptr.rs diff --git a/src/test/ui/mir/mir_refs_correct.rs b/tests/ui/mir/mir_refs_correct.rs similarity index 100% rename from src/test/ui/mir/mir_refs_correct.rs rename to tests/ui/mir/mir_refs_correct.rs diff --git a/src/test/ui/mir/mir_small_agg_arg.rs b/tests/ui/mir/mir_small_agg_arg.rs similarity index 100% rename from src/test/ui/mir/mir_small_agg_arg.rs rename to tests/ui/mir/mir_small_agg_arg.rs diff --git a/src/test/ui/mir/mir_static_subtype.rs b/tests/ui/mir/mir_static_subtype.rs similarity index 100% rename from src/test/ui/mir/mir_static_subtype.rs rename to tests/ui/mir/mir_static_subtype.rs diff --git a/src/test/ui/mir/mir_struct_with_assoc_ty.rs b/tests/ui/mir/mir_struct_with_assoc_ty.rs similarity index 100% rename from src/test/ui/mir/mir_struct_with_assoc_ty.rs rename to tests/ui/mir/mir_struct_with_assoc_ty.rs diff --git a/src/test/ui/mir/mir_temp_promotions.rs b/tests/ui/mir/mir_temp_promotions.rs similarity index 100% rename from src/test/ui/mir/mir_temp_promotions.rs rename to tests/ui/mir/mir_temp_promotions.rs diff --git a/src/test/ui/mir/mir_void_return.rs b/tests/ui/mir/mir_void_return.rs similarity index 100% rename from src/test/ui/mir/mir_void_return.rs rename to tests/ui/mir/mir_void_return.rs diff --git a/src/test/ui/mir/mir_void_return_2.rs b/tests/ui/mir/mir_void_return_2.rs similarity index 100% rename from src/test/ui/mir/mir_void_return_2.rs rename to tests/ui/mir/mir_void_return_2.rs diff --git a/src/test/ui/mir/remove-zsts-query-cycle.rs b/tests/ui/mir/remove-zsts-query-cycle.rs similarity index 100% rename from src/test/ui/mir/remove-zsts-query-cycle.rs rename to tests/ui/mir/remove-zsts-query-cycle.rs diff --git a/src/test/ui/mir/simplify-branch-same.rs b/tests/ui/mir/simplify-branch-same.rs similarity index 100% rename from src/test/ui/mir/simplify-branch-same.rs rename to tests/ui/mir/simplify-branch-same.rs diff --git a/src/test/ui/mir/ssa-analysis-regression-50041.rs b/tests/ui/mir/ssa-analysis-regression-50041.rs similarity index 100% rename from src/test/ui/mir/ssa-analysis-regression-50041.rs rename to tests/ui/mir/ssa-analysis-regression-50041.rs diff --git a/src/test/ui/mir/thir-constparam-temp.rs b/tests/ui/mir/thir-constparam-temp.rs similarity index 100% rename from src/test/ui/mir/thir-constparam-temp.rs rename to tests/ui/mir/thir-constparam-temp.rs diff --git a/src/test/ui/mir/thir-constparam-temp.stderr b/tests/ui/mir/thir-constparam-temp.stderr similarity index 100% rename from src/test/ui/mir/thir-constparam-temp.stderr rename to tests/ui/mir/thir-constparam-temp.stderr diff --git a/src/test/ui/mir/validate/issue-95978-validator-lifetime-comparison.rs b/tests/ui/mir/validate/issue-95978-validator-lifetime-comparison.rs similarity index 100% rename from src/test/ui/mir/validate/issue-95978-validator-lifetime-comparison.rs rename to tests/ui/mir/validate/issue-95978-validator-lifetime-comparison.rs diff --git a/src/test/ui/mir/validate/needs-reveal-all.rs b/tests/ui/mir/validate/needs-reveal-all.rs similarity index 100% rename from src/test/ui/mir/validate/needs-reveal-all.rs rename to tests/ui/mir/validate/needs-reveal-all.rs diff --git a/src/test/ui/mismatched_types/E0053.rs b/tests/ui/mismatched_types/E0053.rs similarity index 100% rename from src/test/ui/mismatched_types/E0053.rs rename to tests/ui/mismatched_types/E0053.rs diff --git a/src/test/ui/mismatched_types/E0053.stderr b/tests/ui/mismatched_types/E0053.stderr similarity index 100% rename from src/test/ui/mismatched_types/E0053.stderr rename to tests/ui/mismatched_types/E0053.stderr diff --git a/src/test/ui/mismatched_types/E0409.rs b/tests/ui/mismatched_types/E0409.rs similarity index 100% rename from src/test/ui/mismatched_types/E0409.rs rename to tests/ui/mismatched_types/E0409.rs diff --git a/src/test/ui/mismatched_types/E0409.stderr b/tests/ui/mismatched_types/E0409.stderr similarity index 100% rename from src/test/ui/mismatched_types/E0409.stderr rename to tests/ui/mismatched_types/E0409.stderr diff --git a/src/test/ui/mismatched_types/E0631.rs b/tests/ui/mismatched_types/E0631.rs similarity index 100% rename from src/test/ui/mismatched_types/E0631.rs rename to tests/ui/mismatched_types/E0631.rs diff --git a/src/test/ui/mismatched_types/E0631.stderr b/tests/ui/mismatched_types/E0631.stderr similarity index 100% rename from src/test/ui/mismatched_types/E0631.stderr rename to tests/ui/mismatched_types/E0631.stderr diff --git a/src/test/ui/mismatched_types/abridged.rs b/tests/ui/mismatched_types/abridged.rs similarity index 100% rename from src/test/ui/mismatched_types/abridged.rs rename to tests/ui/mismatched_types/abridged.rs diff --git a/src/test/ui/mismatched_types/abridged.stderr b/tests/ui/mismatched_types/abridged.stderr similarity index 100% rename from src/test/ui/mismatched_types/abridged.stderr rename to tests/ui/mismatched_types/abridged.stderr diff --git a/src/test/ui/mismatched_types/assignment-operator-unimplemented.rs b/tests/ui/mismatched_types/assignment-operator-unimplemented.rs similarity index 100% rename from src/test/ui/mismatched_types/assignment-operator-unimplemented.rs rename to tests/ui/mismatched_types/assignment-operator-unimplemented.rs diff --git a/src/test/ui/mismatched_types/assignment-operator-unimplemented.stderr b/tests/ui/mismatched_types/assignment-operator-unimplemented.stderr similarity index 100% rename from src/test/ui/mismatched_types/assignment-operator-unimplemented.stderr rename to tests/ui/mismatched_types/assignment-operator-unimplemented.stderr diff --git a/src/test/ui/mismatched_types/binops.rs b/tests/ui/mismatched_types/binops.rs similarity index 100% rename from src/test/ui/mismatched_types/binops.rs rename to tests/ui/mismatched_types/binops.rs diff --git a/src/test/ui/mismatched_types/binops.stderr b/tests/ui/mismatched_types/binops.stderr similarity index 100% rename from src/test/ui/mismatched_types/binops.stderr rename to tests/ui/mismatched_types/binops.stderr diff --git a/src/test/ui/mismatched_types/cast-rfc0401.rs b/tests/ui/mismatched_types/cast-rfc0401.rs similarity index 100% rename from src/test/ui/mismatched_types/cast-rfc0401.rs rename to tests/ui/mismatched_types/cast-rfc0401.rs diff --git a/src/test/ui/mismatched_types/cast-rfc0401.stderr b/tests/ui/mismatched_types/cast-rfc0401.stderr similarity index 100% rename from src/test/ui/mismatched_types/cast-rfc0401.stderr rename to tests/ui/mismatched_types/cast-rfc0401.stderr diff --git a/src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.fixed b/tests/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.fixed similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.fixed rename to tests/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.fixed diff --git a/src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.rs b/tests/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.rs similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.rs rename to tests/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.rs diff --git a/src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.stderr b/tests/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.stderr similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.stderr rename to tests/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.stderr diff --git a/src/test/ui/mismatched_types/closure-arg-count.rs b/tests/ui/mismatched_types/closure-arg-count.rs similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-count.rs rename to tests/ui/mismatched_types/closure-arg-count.rs diff --git a/src/test/ui/mismatched_types/closure-arg-count.stderr b/tests/ui/mismatched_types/closure-arg-count.stderr similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-count.stderr rename to tests/ui/mismatched_types/closure-arg-count.stderr diff --git a/src/test/ui/mismatched_types/closure-arg-type-mismatch.rs b/tests/ui/mismatched_types/closure-arg-type-mismatch.rs similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-type-mismatch.rs rename to tests/ui/mismatched_types/closure-arg-type-mismatch.rs diff --git a/src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr b/tests/ui/mismatched_types/closure-arg-type-mismatch.stderr similarity index 100% rename from src/test/ui/mismatched_types/closure-arg-type-mismatch.stderr rename to tests/ui/mismatched_types/closure-arg-type-mismatch.stderr diff --git a/src/test/ui/mismatched_types/closure-mismatch.rs b/tests/ui/mismatched_types/closure-mismatch.rs similarity index 100% rename from src/test/ui/mismatched_types/closure-mismatch.rs rename to tests/ui/mismatched_types/closure-mismatch.rs diff --git a/src/test/ui/mismatched_types/closure-mismatch.stderr b/tests/ui/mismatched_types/closure-mismatch.stderr similarity index 100% rename from src/test/ui/mismatched_types/closure-mismatch.stderr rename to tests/ui/mismatched_types/closure-mismatch.stderr diff --git a/src/test/ui/mismatched_types/const-fn-in-trait.rs b/tests/ui/mismatched_types/const-fn-in-trait.rs similarity index 100% rename from src/test/ui/mismatched_types/const-fn-in-trait.rs rename to tests/ui/mismatched_types/const-fn-in-trait.rs diff --git a/src/test/ui/mismatched_types/const-fn-in-trait.stderr b/tests/ui/mismatched_types/const-fn-in-trait.stderr similarity index 100% rename from src/test/ui/mismatched_types/const-fn-in-trait.stderr rename to tests/ui/mismatched_types/const-fn-in-trait.stderr diff --git a/src/test/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.rs b/tests/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.rs similarity index 100% rename from src/test/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.rs rename to tests/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.rs diff --git a/src/test/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.stderr b/tests/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.stderr similarity index 100% rename from src/test/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.stderr rename to tests/ui/mismatched_types/do-not-suggest-boxed-trait-objects-instead-of-impl-trait.stderr diff --git a/src/test/ui/mismatched_types/dont-point-return-on-E0308.rs b/tests/ui/mismatched_types/dont-point-return-on-E0308.rs similarity index 100% rename from src/test/ui/mismatched_types/dont-point-return-on-E0308.rs rename to tests/ui/mismatched_types/dont-point-return-on-E0308.rs diff --git a/src/test/ui/mismatched_types/dont-point-return-on-E0308.stderr b/tests/ui/mismatched_types/dont-point-return-on-E0308.stderr similarity index 100% rename from src/test/ui/mismatched_types/dont-point-return-on-E0308.stderr rename to tests/ui/mismatched_types/dont-point-return-on-E0308.stderr diff --git a/src/test/ui/mismatched_types/float-literal-inference-restrictions.rs b/tests/ui/mismatched_types/float-literal-inference-restrictions.rs similarity index 100% rename from src/test/ui/mismatched_types/float-literal-inference-restrictions.rs rename to tests/ui/mismatched_types/float-literal-inference-restrictions.rs diff --git a/src/test/ui/mismatched_types/float-literal-inference-restrictions.stderr b/tests/ui/mismatched_types/float-literal-inference-restrictions.stderr similarity index 100% rename from src/test/ui/mismatched_types/float-literal-inference-restrictions.stderr rename to tests/ui/mismatched_types/float-literal-inference-restrictions.stderr diff --git a/src/test/ui/mismatched_types/fn-variance-1.rs b/tests/ui/mismatched_types/fn-variance-1.rs similarity index 100% rename from src/test/ui/mismatched_types/fn-variance-1.rs rename to tests/ui/mismatched_types/fn-variance-1.rs diff --git a/src/test/ui/mismatched_types/fn-variance-1.stderr b/tests/ui/mismatched_types/fn-variance-1.stderr similarity index 100% rename from src/test/ui/mismatched_types/fn-variance-1.stderr rename to tests/ui/mismatched_types/fn-variance-1.stderr diff --git a/src/test/ui/mismatched_types/for-loop-has-unit-body.rs b/tests/ui/mismatched_types/for-loop-has-unit-body.rs similarity index 100% rename from src/test/ui/mismatched_types/for-loop-has-unit-body.rs rename to tests/ui/mismatched_types/for-loop-has-unit-body.rs diff --git a/src/test/ui/mismatched_types/for-loop-has-unit-body.stderr b/tests/ui/mismatched_types/for-loop-has-unit-body.stderr similarity index 100% rename from src/test/ui/mismatched_types/for-loop-has-unit-body.stderr rename to tests/ui/mismatched_types/for-loop-has-unit-body.stderr diff --git a/src/test/ui/mismatched_types/issue-106182.fixed b/tests/ui/mismatched_types/issue-106182.fixed similarity index 100% rename from src/test/ui/mismatched_types/issue-106182.fixed rename to tests/ui/mismatched_types/issue-106182.fixed diff --git a/src/test/ui/mismatched_types/issue-106182.rs b/tests/ui/mismatched_types/issue-106182.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-106182.rs rename to tests/ui/mismatched_types/issue-106182.rs diff --git a/src/test/ui/mismatched_types/issue-106182.stderr b/tests/ui/mismatched_types/issue-106182.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-106182.stderr rename to tests/ui/mismatched_types/issue-106182.stderr diff --git a/src/test/ui/mismatched_types/issue-19109.rs b/tests/ui/mismatched_types/issue-19109.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-19109.rs rename to tests/ui/mismatched_types/issue-19109.rs diff --git a/src/test/ui/mismatched_types/issue-19109.stderr b/tests/ui/mismatched_types/issue-19109.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-19109.stderr rename to tests/ui/mismatched_types/issue-19109.stderr diff --git a/src/test/ui/mismatched_types/issue-26480.rs b/tests/ui/mismatched_types/issue-26480.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-26480.rs rename to tests/ui/mismatched_types/issue-26480.rs diff --git a/src/test/ui/mismatched_types/issue-26480.stderr b/tests/ui/mismatched_types/issue-26480.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-26480.stderr rename to tests/ui/mismatched_types/issue-26480.stderr diff --git a/src/test/ui/mismatched_types/issue-35030.rs b/tests/ui/mismatched_types/issue-35030.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-35030.rs rename to tests/ui/mismatched_types/issue-35030.rs diff --git a/src/test/ui/mismatched_types/issue-35030.stderr b/tests/ui/mismatched_types/issue-35030.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-35030.stderr rename to tests/ui/mismatched_types/issue-35030.stderr diff --git a/src/test/ui/mismatched_types/issue-36053-2.rs b/tests/ui/mismatched_types/issue-36053-2.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-36053-2.rs rename to tests/ui/mismatched_types/issue-36053-2.rs diff --git a/src/test/ui/mismatched_types/issue-36053-2.stderr b/tests/ui/mismatched_types/issue-36053-2.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-36053-2.stderr rename to tests/ui/mismatched_types/issue-36053-2.stderr diff --git a/src/test/ui/mismatched_types/issue-38371-unfixable.rs b/tests/ui/mismatched_types/issue-38371-unfixable.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-38371-unfixable.rs rename to tests/ui/mismatched_types/issue-38371-unfixable.rs diff --git a/src/test/ui/mismatched_types/issue-38371-unfixable.stderr b/tests/ui/mismatched_types/issue-38371-unfixable.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-38371-unfixable.stderr rename to tests/ui/mismatched_types/issue-38371-unfixable.stderr diff --git a/src/test/ui/mismatched_types/issue-38371.fixed b/tests/ui/mismatched_types/issue-38371.fixed similarity index 100% rename from src/test/ui/mismatched_types/issue-38371.fixed rename to tests/ui/mismatched_types/issue-38371.fixed diff --git a/src/test/ui/mismatched_types/issue-38371.rs b/tests/ui/mismatched_types/issue-38371.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-38371.rs rename to tests/ui/mismatched_types/issue-38371.rs diff --git a/src/test/ui/mismatched_types/issue-38371.stderr b/tests/ui/mismatched_types/issue-38371.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-38371.stderr rename to tests/ui/mismatched_types/issue-38371.stderr diff --git a/src/test/ui/mismatched_types/issue-47706-trait.rs b/tests/ui/mismatched_types/issue-47706-trait.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-47706-trait.rs rename to tests/ui/mismatched_types/issue-47706-trait.rs diff --git a/src/test/ui/mismatched_types/issue-47706-trait.stderr b/tests/ui/mismatched_types/issue-47706-trait.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-47706-trait.stderr rename to tests/ui/mismatched_types/issue-47706-trait.stderr diff --git a/src/test/ui/mismatched_types/issue-47706.rs b/tests/ui/mismatched_types/issue-47706.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-47706.rs rename to tests/ui/mismatched_types/issue-47706.rs diff --git a/src/test/ui/mismatched_types/issue-47706.stderr b/tests/ui/mismatched_types/issue-47706.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-47706.stderr rename to tests/ui/mismatched_types/issue-47706.stderr diff --git a/src/test/ui/mismatched_types/issue-74918-missing-lifetime.rs b/tests/ui/mismatched_types/issue-74918-missing-lifetime.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-74918-missing-lifetime.rs rename to tests/ui/mismatched_types/issue-74918-missing-lifetime.rs diff --git a/src/test/ui/mismatched_types/issue-74918-missing-lifetime.stderr b/tests/ui/mismatched_types/issue-74918-missing-lifetime.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-74918-missing-lifetime.stderr rename to tests/ui/mismatched_types/issue-74918-missing-lifetime.stderr diff --git a/src/test/ui/mismatched_types/issue-75361-mismatched-impl.rs b/tests/ui/mismatched_types/issue-75361-mismatched-impl.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-75361-mismatched-impl.rs rename to tests/ui/mismatched_types/issue-75361-mismatched-impl.rs diff --git a/src/test/ui/mismatched_types/issue-75361-mismatched-impl.stderr b/tests/ui/mismatched_types/issue-75361-mismatched-impl.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-75361-mismatched-impl.stderr rename to tests/ui/mismatched_types/issue-75361-mismatched-impl.stderr diff --git a/src/test/ui/mismatched_types/issue-84976.rs b/tests/ui/mismatched_types/issue-84976.rs similarity index 100% rename from src/test/ui/mismatched_types/issue-84976.rs rename to tests/ui/mismatched_types/issue-84976.rs diff --git a/src/test/ui/mismatched_types/issue-84976.stderr b/tests/ui/mismatched_types/issue-84976.stderr similarity index 100% rename from src/test/ui/mismatched_types/issue-84976.stderr rename to tests/ui/mismatched_types/issue-84976.stderr diff --git a/src/test/ui/mismatched_types/main.rs b/tests/ui/mismatched_types/main.rs similarity index 100% rename from src/test/ui/mismatched_types/main.rs rename to tests/ui/mismatched_types/main.rs diff --git a/src/test/ui/mismatched_types/main.stderr b/tests/ui/mismatched_types/main.stderr similarity index 100% rename from src/test/ui/mismatched_types/main.stderr rename to tests/ui/mismatched_types/main.stderr diff --git a/src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs b/tests/ui/mismatched_types/method-help-unsatisfied-bound.rs similarity index 100% rename from src/test/ui/mismatched_types/method-help-unsatisfied-bound.rs rename to tests/ui/mismatched_types/method-help-unsatisfied-bound.rs diff --git a/src/test/ui/mismatched_types/method-help-unsatisfied-bound.stderr b/tests/ui/mismatched_types/method-help-unsatisfied-bound.stderr similarity index 100% rename from src/test/ui/mismatched_types/method-help-unsatisfied-bound.stderr rename to tests/ui/mismatched_types/method-help-unsatisfied-bound.stderr diff --git a/src/test/ui/mismatched_types/non_zero_assigned_something.rs b/tests/ui/mismatched_types/non_zero_assigned_something.rs similarity index 100% rename from src/test/ui/mismatched_types/non_zero_assigned_something.rs rename to tests/ui/mismatched_types/non_zero_assigned_something.rs diff --git a/src/test/ui/mismatched_types/non_zero_assigned_something.stderr b/tests/ui/mismatched_types/non_zero_assigned_something.stderr similarity index 100% rename from src/test/ui/mismatched_types/non_zero_assigned_something.stderr rename to tests/ui/mismatched_types/non_zero_assigned_something.stderr diff --git a/src/test/ui/mismatched_types/normalize-fn-sig.rs b/tests/ui/mismatched_types/normalize-fn-sig.rs similarity index 100% rename from src/test/ui/mismatched_types/normalize-fn-sig.rs rename to tests/ui/mismatched_types/normalize-fn-sig.rs diff --git a/src/test/ui/mismatched_types/normalize-fn-sig.stderr b/tests/ui/mismatched_types/normalize-fn-sig.stderr similarity index 100% rename from src/test/ui/mismatched_types/normalize-fn-sig.stderr rename to tests/ui/mismatched_types/normalize-fn-sig.stderr diff --git a/src/test/ui/mismatched_types/numeric-literal-cast.rs b/tests/ui/mismatched_types/numeric-literal-cast.rs similarity index 100% rename from src/test/ui/mismatched_types/numeric-literal-cast.rs rename to tests/ui/mismatched_types/numeric-literal-cast.rs diff --git a/src/test/ui/mismatched_types/numeric-literal-cast.stderr b/tests/ui/mismatched_types/numeric-literal-cast.stderr similarity index 100% rename from src/test/ui/mismatched_types/numeric-literal-cast.stderr rename to tests/ui/mismatched_types/numeric-literal-cast.stderr diff --git a/src/test/ui/mismatched_types/overloaded-calls-bad.rs b/tests/ui/mismatched_types/overloaded-calls-bad.rs similarity index 100% rename from src/test/ui/mismatched_types/overloaded-calls-bad.rs rename to tests/ui/mismatched_types/overloaded-calls-bad.rs diff --git a/src/test/ui/mismatched_types/overloaded-calls-bad.stderr b/tests/ui/mismatched_types/overloaded-calls-bad.stderr similarity index 100% rename from src/test/ui/mismatched_types/overloaded-calls-bad.stderr rename to tests/ui/mismatched_types/overloaded-calls-bad.stderr diff --git a/src/test/ui/mismatched_types/recovered-block.rs b/tests/ui/mismatched_types/recovered-block.rs similarity index 100% rename from src/test/ui/mismatched_types/recovered-block.rs rename to tests/ui/mismatched_types/recovered-block.rs diff --git a/src/test/ui/mismatched_types/recovered-block.stderr b/tests/ui/mismatched_types/recovered-block.stderr similarity index 100% rename from src/test/ui/mismatched_types/recovered-block.stderr rename to tests/ui/mismatched_types/recovered-block.stderr diff --git a/src/test/ui/mismatched_types/ref-pat-suggestions.fixed b/tests/ui/mismatched_types/ref-pat-suggestions.fixed similarity index 100% rename from src/test/ui/mismatched_types/ref-pat-suggestions.fixed rename to tests/ui/mismatched_types/ref-pat-suggestions.fixed diff --git a/src/test/ui/mismatched_types/ref-pat-suggestions.rs b/tests/ui/mismatched_types/ref-pat-suggestions.rs similarity index 100% rename from src/test/ui/mismatched_types/ref-pat-suggestions.rs rename to tests/ui/mismatched_types/ref-pat-suggestions.rs diff --git a/src/test/ui/mismatched_types/ref-pat-suggestions.stderr b/tests/ui/mismatched_types/ref-pat-suggestions.stderr similarity index 100% rename from src/test/ui/mismatched_types/ref-pat-suggestions.stderr rename to tests/ui/mismatched_types/ref-pat-suggestions.stderr diff --git a/src/test/ui/mismatched_types/show_module.rs b/tests/ui/mismatched_types/show_module.rs similarity index 100% rename from src/test/ui/mismatched_types/show_module.rs rename to tests/ui/mismatched_types/show_module.rs diff --git a/src/test/ui/mismatched_types/show_module.stderr b/tests/ui/mismatched_types/show_module.stderr similarity index 100% rename from src/test/ui/mismatched_types/show_module.stderr rename to tests/ui/mismatched_types/show_module.stderr diff --git a/src/test/ui/mismatched_types/similar_paths.rs b/tests/ui/mismatched_types/similar_paths.rs similarity index 100% rename from src/test/ui/mismatched_types/similar_paths.rs rename to tests/ui/mismatched_types/similar_paths.rs diff --git a/src/test/ui/mismatched_types/similar_paths.stderr b/tests/ui/mismatched_types/similar_paths.stderr similarity index 100% rename from src/test/ui/mismatched_types/similar_paths.stderr rename to tests/ui/mismatched_types/similar_paths.stderr diff --git a/src/test/ui/mismatched_types/similar_paths_primitive.rs b/tests/ui/mismatched_types/similar_paths_primitive.rs similarity index 100% rename from src/test/ui/mismatched_types/similar_paths_primitive.rs rename to tests/ui/mismatched_types/similar_paths_primitive.rs diff --git a/src/test/ui/mismatched_types/similar_paths_primitive.stderr b/tests/ui/mismatched_types/similar_paths_primitive.stderr similarity index 100% rename from src/test/ui/mismatched_types/similar_paths_primitive.stderr rename to tests/ui/mismatched_types/similar_paths_primitive.stderr diff --git a/src/test/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.fixed b/tests/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.fixed similarity index 100% rename from src/test/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.fixed rename to tests/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.fixed diff --git a/src/test/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.rs b/tests/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.rs similarity index 100% rename from src/test/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.rs rename to tests/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.rs diff --git a/src/test/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.stderr b/tests/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.stderr similarity index 100% rename from src/test/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.stderr rename to tests/ui/mismatched_types/suggest-adding-or-removing-ref-for-binding-pattern.stderr diff --git a/src/test/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.fixed b/tests/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.fixed similarity index 100% rename from src/test/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.fixed rename to tests/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.fixed diff --git a/src/test/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.rs b/tests/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.rs similarity index 100% rename from src/test/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.rs rename to tests/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.rs diff --git a/src/test/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.stderr b/tests/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.stderr similarity index 100% rename from src/test/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.stderr rename to tests/ui/mismatched_types/suggest-boxed-trait-objects-instead-of-impl-trait.stderr diff --git a/src/test/ui/mismatched_types/suggest-removing-tuple-struct-field.fixed b/tests/ui/mismatched_types/suggest-removing-tuple-struct-field.fixed similarity index 100% rename from src/test/ui/mismatched_types/suggest-removing-tuple-struct-field.fixed rename to tests/ui/mismatched_types/suggest-removing-tuple-struct-field.fixed diff --git a/src/test/ui/mismatched_types/suggest-removing-tuple-struct-field.rs b/tests/ui/mismatched_types/suggest-removing-tuple-struct-field.rs similarity index 100% rename from src/test/ui/mismatched_types/suggest-removing-tuple-struct-field.rs rename to tests/ui/mismatched_types/suggest-removing-tuple-struct-field.rs diff --git a/src/test/ui/mismatched_types/suggest-removing-tuple-struct-field.stderr b/tests/ui/mismatched_types/suggest-removing-tuple-struct-field.stderr similarity index 100% rename from src/test/ui/mismatched_types/suggest-removing-tuple-struct-field.stderr rename to tests/ui/mismatched_types/suggest-removing-tuple-struct-field.stderr diff --git a/src/test/ui/mismatched_types/trait-bounds-cant-coerce.rs b/tests/ui/mismatched_types/trait-bounds-cant-coerce.rs similarity index 100% rename from src/test/ui/mismatched_types/trait-bounds-cant-coerce.rs rename to tests/ui/mismatched_types/trait-bounds-cant-coerce.rs diff --git a/src/test/ui/mismatched_types/trait-bounds-cant-coerce.stderr b/tests/ui/mismatched_types/trait-bounds-cant-coerce.stderr similarity index 100% rename from src/test/ui/mismatched_types/trait-bounds-cant-coerce.stderr rename to tests/ui/mismatched_types/trait-bounds-cant-coerce.stderr diff --git a/src/test/ui/mismatched_types/trait-impl-fn-incompatibility.rs b/tests/ui/mismatched_types/trait-impl-fn-incompatibility.rs similarity index 100% rename from src/test/ui/mismatched_types/trait-impl-fn-incompatibility.rs rename to tests/ui/mismatched_types/trait-impl-fn-incompatibility.rs diff --git a/src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr b/tests/ui/mismatched_types/trait-impl-fn-incompatibility.stderr similarity index 100% rename from src/test/ui/mismatched_types/trait-impl-fn-incompatibility.stderr rename to tests/ui/mismatched_types/trait-impl-fn-incompatibility.stderr diff --git a/src/test/ui/mismatched_types/unboxed-closures-vtable-mismatch.rs b/tests/ui/mismatched_types/unboxed-closures-vtable-mismatch.rs similarity index 100% rename from src/test/ui/mismatched_types/unboxed-closures-vtable-mismatch.rs rename to tests/ui/mismatched_types/unboxed-closures-vtable-mismatch.rs diff --git a/src/test/ui/mismatched_types/unboxed-closures-vtable-mismatch.stderr b/tests/ui/mismatched_types/unboxed-closures-vtable-mismatch.stderr similarity index 100% rename from src/test/ui/mismatched_types/unboxed-closures-vtable-mismatch.stderr rename to tests/ui/mismatched_types/unboxed-closures-vtable-mismatch.stderr diff --git a/src/test/ui/mismatched_types/wrap-suggestion-privacy.rs b/tests/ui/mismatched_types/wrap-suggestion-privacy.rs similarity index 100% rename from src/test/ui/mismatched_types/wrap-suggestion-privacy.rs rename to tests/ui/mismatched_types/wrap-suggestion-privacy.rs diff --git a/src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr b/tests/ui/mismatched_types/wrap-suggestion-privacy.stderr similarity index 100% rename from src/test/ui/mismatched_types/wrap-suggestion-privacy.stderr rename to tests/ui/mismatched_types/wrap-suggestion-privacy.stderr diff --git a/src/test/ui/missing-trait-bounds/auxiliary/issue-69725.rs b/tests/ui/missing-trait-bounds/auxiliary/issue-69725.rs similarity index 100% rename from src/test/ui/missing-trait-bounds/auxiliary/issue-69725.rs rename to tests/ui/missing-trait-bounds/auxiliary/issue-69725.rs diff --git a/src/test/ui/missing-trait-bounds/issue-35677.fixed b/tests/ui/missing-trait-bounds/issue-35677.fixed similarity index 100% rename from src/test/ui/missing-trait-bounds/issue-35677.fixed rename to tests/ui/missing-trait-bounds/issue-35677.fixed diff --git a/src/test/ui/missing-trait-bounds/issue-35677.rs b/tests/ui/missing-trait-bounds/issue-35677.rs similarity index 100% rename from src/test/ui/missing-trait-bounds/issue-35677.rs rename to tests/ui/missing-trait-bounds/issue-35677.rs diff --git a/src/test/ui/missing-trait-bounds/issue-35677.stderr b/tests/ui/missing-trait-bounds/issue-35677.stderr similarity index 100% rename from src/test/ui/missing-trait-bounds/issue-35677.stderr rename to tests/ui/missing-trait-bounds/issue-35677.stderr diff --git a/src/test/ui/missing-trait-bounds/issue-69725.fixed b/tests/ui/missing-trait-bounds/issue-69725.fixed similarity index 100% rename from src/test/ui/missing-trait-bounds/issue-69725.fixed rename to tests/ui/missing-trait-bounds/issue-69725.fixed diff --git a/src/test/ui/missing-trait-bounds/issue-69725.rs b/tests/ui/missing-trait-bounds/issue-69725.rs similarity index 100% rename from src/test/ui/missing-trait-bounds/issue-69725.rs rename to tests/ui/missing-trait-bounds/issue-69725.rs diff --git a/src/test/ui/missing-trait-bounds/issue-69725.stderr b/tests/ui/missing-trait-bounds/issue-69725.stderr similarity index 100% rename from src/test/ui/missing-trait-bounds/issue-69725.stderr rename to tests/ui/missing-trait-bounds/issue-69725.stderr diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.fixed b/tests/ui/missing-trait-bounds/missing-trait-bound-for-op.fixed similarity index 100% rename from src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.fixed rename to tests/ui/missing-trait-bounds/missing-trait-bound-for-op.fixed diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.rs b/tests/ui/missing-trait-bounds/missing-trait-bound-for-op.rs similarity index 100% rename from src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.rs rename to tests/ui/missing-trait-bounds/missing-trait-bound-for-op.rs diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.stderr b/tests/ui/missing-trait-bounds/missing-trait-bound-for-op.stderr similarity index 100% rename from src/test/ui/missing-trait-bounds/missing-trait-bound-for-op.stderr rename to tests/ui/missing-trait-bounds/missing-trait-bound-for-op.stderr diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs b/tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs similarity index 100% rename from src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs rename to tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr b/tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr similarity index 100% rename from src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr rename to tests/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.stderr diff --git a/src/test/ui/missing/auxiliary/two_macros.rs b/tests/ui/missing/auxiliary/two_macros.rs similarity index 100% rename from src/test/ui/missing/auxiliary/two_macros.rs rename to tests/ui/missing/auxiliary/two_macros.rs diff --git a/src/test/ui/missing/missing-allocator.rs b/tests/ui/missing/missing-allocator.rs similarity index 100% rename from src/test/ui/missing/missing-allocator.rs rename to tests/ui/missing/missing-allocator.rs diff --git a/src/test/ui/missing/missing-allocator.stderr b/tests/ui/missing/missing-allocator.stderr similarity index 100% rename from src/test/ui/missing/missing-allocator.stderr rename to tests/ui/missing/missing-allocator.stderr diff --git a/src/test/ui/missing/missing-block-hint.rs b/tests/ui/missing/missing-block-hint.rs similarity index 100% rename from src/test/ui/missing/missing-block-hint.rs rename to tests/ui/missing/missing-block-hint.rs diff --git a/src/test/ui/missing/missing-block-hint.stderr b/tests/ui/missing/missing-block-hint.stderr similarity index 100% rename from src/test/ui/missing/missing-block-hint.stderr rename to tests/ui/missing/missing-block-hint.stderr diff --git a/src/test/ui/missing/missing-comma-in-match.fixed b/tests/ui/missing/missing-comma-in-match.fixed similarity index 100% rename from src/test/ui/missing/missing-comma-in-match.fixed rename to tests/ui/missing/missing-comma-in-match.fixed diff --git a/src/test/ui/missing/missing-comma-in-match.rs b/tests/ui/missing/missing-comma-in-match.rs similarity index 100% rename from src/test/ui/missing/missing-comma-in-match.rs rename to tests/ui/missing/missing-comma-in-match.rs diff --git a/src/test/ui/missing/missing-comma-in-match.stderr b/tests/ui/missing/missing-comma-in-match.stderr similarity index 100% rename from src/test/ui/missing/missing-comma-in-match.stderr rename to tests/ui/missing/missing-comma-in-match.stderr diff --git a/src/test/ui/missing/missing-derivable-attr.rs b/tests/ui/missing/missing-derivable-attr.rs similarity index 100% rename from src/test/ui/missing/missing-derivable-attr.rs rename to tests/ui/missing/missing-derivable-attr.rs diff --git a/src/test/ui/missing/missing-derivable-attr.stderr b/tests/ui/missing/missing-derivable-attr.stderr similarity index 100% rename from src/test/ui/missing/missing-derivable-attr.stderr rename to tests/ui/missing/missing-derivable-attr.stderr diff --git a/src/test/ui/missing/missing-fields-in-struct-pattern.rs b/tests/ui/missing/missing-fields-in-struct-pattern.rs similarity index 100% rename from src/test/ui/missing/missing-fields-in-struct-pattern.rs rename to tests/ui/missing/missing-fields-in-struct-pattern.rs diff --git a/src/test/ui/missing/missing-fields-in-struct-pattern.stderr b/tests/ui/missing/missing-fields-in-struct-pattern.stderr similarity index 100% rename from src/test/ui/missing/missing-fields-in-struct-pattern.stderr rename to tests/ui/missing/missing-fields-in-struct-pattern.stderr diff --git a/src/test/ui/missing/missing-items/auxiliary/m1.rs b/tests/ui/missing/missing-items/auxiliary/m1.rs similarity index 100% rename from src/test/ui/missing/missing-items/auxiliary/m1.rs rename to tests/ui/missing/missing-items/auxiliary/m1.rs diff --git a/src/test/ui/missing/missing-items/m2.rs b/tests/ui/missing/missing-items/m2.rs similarity index 100% rename from src/test/ui/missing/missing-items/m2.rs rename to tests/ui/missing/missing-items/m2.rs diff --git a/src/test/ui/missing/missing-items/m2.stderr b/tests/ui/missing/missing-items/m2.stderr similarity index 100% rename from src/test/ui/missing/missing-items/m2.stderr rename to tests/ui/missing/missing-items/m2.stderr diff --git a/src/test/ui/missing/missing-items/missing-type-parameter.rs b/tests/ui/missing/missing-items/missing-type-parameter.rs similarity index 100% rename from src/test/ui/missing/missing-items/missing-type-parameter.rs rename to tests/ui/missing/missing-items/missing-type-parameter.rs diff --git a/src/test/ui/missing/missing-items/missing-type-parameter.stderr b/tests/ui/missing/missing-items/missing-type-parameter.stderr similarity index 100% rename from src/test/ui/missing/missing-items/missing-type-parameter.stderr rename to tests/ui/missing/missing-items/missing-type-parameter.stderr diff --git a/src/test/ui/missing/missing-items/missing-type-parameter2.rs b/tests/ui/missing/missing-items/missing-type-parameter2.rs similarity index 100% rename from src/test/ui/missing/missing-items/missing-type-parameter2.rs rename to tests/ui/missing/missing-items/missing-type-parameter2.rs diff --git a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr b/tests/ui/missing/missing-items/missing-type-parameter2.stderr similarity index 100% rename from src/test/ui/missing/missing-items/missing-type-parameter2.stderr rename to tests/ui/missing/missing-items/missing-type-parameter2.stderr diff --git a/src/test/ui/missing/missing-macro-use.rs b/tests/ui/missing/missing-macro-use.rs similarity index 100% rename from src/test/ui/missing/missing-macro-use.rs rename to tests/ui/missing/missing-macro-use.rs diff --git a/src/test/ui/missing/missing-macro-use.stderr b/tests/ui/missing/missing-macro-use.stderr similarity index 100% rename from src/test/ui/missing/missing-macro-use.stderr rename to tests/ui/missing/missing-macro-use.stderr diff --git a/src/test/ui/missing/missing-main.rs b/tests/ui/missing/missing-main.rs similarity index 100% rename from src/test/ui/missing/missing-main.rs rename to tests/ui/missing/missing-main.rs diff --git a/src/test/ui/missing/missing-main.stderr b/tests/ui/missing/missing-main.stderr similarity index 100% rename from src/test/ui/missing/missing-main.stderr rename to tests/ui/missing/missing-main.stderr diff --git a/src/test/ui/missing/missing-return.rs b/tests/ui/missing/missing-return.rs similarity index 100% rename from src/test/ui/missing/missing-return.rs rename to tests/ui/missing/missing-return.rs diff --git a/src/test/ui/missing/missing-return.stderr b/tests/ui/missing/missing-return.stderr similarity index 100% rename from src/test/ui/missing/missing-return.stderr rename to tests/ui/missing/missing-return.stderr diff --git a/src/test/ui/missing/missing-stability.rs b/tests/ui/missing/missing-stability.rs similarity index 100% rename from src/test/ui/missing/missing-stability.rs rename to tests/ui/missing/missing-stability.rs diff --git a/src/test/ui/missing/missing-stability.stderr b/tests/ui/missing/missing-stability.stderr similarity index 100% rename from src/test/ui/missing/missing-stability.stderr rename to tests/ui/missing/missing-stability.stderr diff --git a/src/test/ui/missing_debug_impls.rs b/tests/ui/missing_debug_impls.rs similarity index 100% rename from src/test/ui/missing_debug_impls.rs rename to tests/ui/missing_debug_impls.rs diff --git a/src/test/ui/missing_debug_impls.stderr b/tests/ui/missing_debug_impls.stderr similarity index 100% rename from src/test/ui/missing_debug_impls.stderr rename to tests/ui/missing_debug_impls.stderr diff --git a/src/test/ui/missing_non_modrs_mod/foo.rs b/tests/ui/missing_non_modrs_mod/foo.rs similarity index 100% rename from src/test/ui/missing_non_modrs_mod/foo.rs rename to tests/ui/missing_non_modrs_mod/foo.rs diff --git a/src/test/ui/missing_non_modrs_mod/foo_inline.rs b/tests/ui/missing_non_modrs_mod/foo_inline.rs similarity index 100% rename from src/test/ui/missing_non_modrs_mod/foo_inline.rs rename to tests/ui/missing_non_modrs_mod/foo_inline.rs diff --git a/src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod.rs b/tests/ui/missing_non_modrs_mod/missing_non_modrs_mod.rs similarity index 100% rename from src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod.rs rename to tests/ui/missing_non_modrs_mod/missing_non_modrs_mod.rs diff --git a/src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod.stderr b/tests/ui/missing_non_modrs_mod/missing_non_modrs_mod.stderr similarity index 100% rename from src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod.stderr rename to tests/ui/missing_non_modrs_mod/missing_non_modrs_mod.stderr diff --git a/src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.rs b/tests/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.rs similarity index 100% rename from src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.rs rename to tests/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.rs diff --git a/src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.stderr b/tests/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.stderr similarity index 100% rename from src/test/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.stderr rename to tests/ui/missing_non_modrs_mod/missing_non_modrs_mod_inline.stderr diff --git a/src/test/ui/mod-subitem-as-enum-variant.rs b/tests/ui/mod-subitem-as-enum-variant.rs similarity index 100% rename from src/test/ui/mod-subitem-as-enum-variant.rs rename to tests/ui/mod-subitem-as-enum-variant.rs diff --git a/src/test/ui/mod-subitem-as-enum-variant.stderr b/tests/ui/mod-subitem-as-enum-variant.stderr similarity index 100% rename from src/test/ui/mod-subitem-as-enum-variant.stderr rename to tests/ui/mod-subitem-as-enum-variant.stderr diff --git a/src/test/ui/module-macro_use-arguments.rs b/tests/ui/module-macro_use-arguments.rs similarity index 100% rename from src/test/ui/module-macro_use-arguments.rs rename to tests/ui/module-macro_use-arguments.rs diff --git a/src/test/ui/module-macro_use-arguments.stderr b/tests/ui/module-macro_use-arguments.stderr similarity index 100% rename from src/test/ui/module-macro_use-arguments.stderr rename to tests/ui/module-macro_use-arguments.stderr diff --git a/src/test/ui/modules/auxiliary/dummy_lib.rs b/tests/ui/modules/auxiliary/dummy_lib.rs similarity index 100% rename from src/test/ui/modules/auxiliary/dummy_lib.rs rename to tests/ui/modules/auxiliary/dummy_lib.rs diff --git a/src/test/ui/modules/auxiliary/two_macros_2.rs b/tests/ui/modules/auxiliary/two_macros_2.rs similarity index 100% rename from src/test/ui/modules/auxiliary/two_macros_2.rs rename to tests/ui/modules/auxiliary/two_macros_2.rs diff --git a/src/test/ui/modules/issue-56411-aux.rs b/tests/ui/modules/issue-56411-aux.rs similarity index 100% rename from src/test/ui/modules/issue-56411-aux.rs rename to tests/ui/modules/issue-56411-aux.rs diff --git a/src/test/ui/modules/issue-56411.rs b/tests/ui/modules/issue-56411.rs similarity index 100% rename from src/test/ui/modules/issue-56411.rs rename to tests/ui/modules/issue-56411.rs diff --git a/src/test/ui/modules/issue-56411.stderr b/tests/ui/modules/issue-56411.stderr similarity index 100% rename from src/test/ui/modules/issue-56411.stderr rename to tests/ui/modules/issue-56411.stderr diff --git a/src/test/ui/modules/mod-inside-fn.rs b/tests/ui/modules/mod-inside-fn.rs similarity index 100% rename from src/test/ui/modules/mod-inside-fn.rs rename to tests/ui/modules/mod-inside-fn.rs diff --git a/src/test/ui/modules/mod-view-items.rs b/tests/ui/modules/mod-view-items.rs similarity index 100% rename from src/test/ui/modules/mod-view-items.rs rename to tests/ui/modules/mod-view-items.rs diff --git a/src/test/ui/modules/mod_dir_implicit.rs b/tests/ui/modules/mod_dir_implicit.rs similarity index 100% rename from src/test/ui/modules/mod_dir_implicit.rs rename to tests/ui/modules/mod_dir_implicit.rs diff --git a/src/test/ui/modules/mod_dir_implicit_aux/compiletest-ignore-dir b/tests/ui/modules/mod_dir_implicit_aux/compiletest-ignore-dir similarity index 100% rename from src/test/ui/modules/mod_dir_implicit_aux/compiletest-ignore-dir rename to tests/ui/modules/mod_dir_implicit_aux/compiletest-ignore-dir diff --git a/src/test/ui/modules/mod_dir_implicit_aux/mod.rs b/tests/ui/modules/mod_dir_implicit_aux/mod.rs similarity index 100% rename from src/test/ui/modules/mod_dir_implicit_aux/mod.rs rename to tests/ui/modules/mod_dir_implicit_aux/mod.rs diff --git a/src/test/ui/modules/mod_dir_path.rs b/tests/ui/modules/mod_dir_path.rs similarity index 100% rename from src/test/ui/modules/mod_dir_path.rs rename to tests/ui/modules/mod_dir_path.rs diff --git a/src/test/ui/modules/mod_dir_path2.rs b/tests/ui/modules/mod_dir_path2.rs similarity index 100% rename from src/test/ui/modules/mod_dir_path2.rs rename to tests/ui/modules/mod_dir_path2.rs diff --git a/src/test/ui/modules/mod_dir_path3.rs b/tests/ui/modules/mod_dir_path3.rs similarity index 100% rename from src/test/ui/modules/mod_dir_path3.rs rename to tests/ui/modules/mod_dir_path3.rs diff --git a/src/test/ui/modules/mod_dir_path_multi.rs b/tests/ui/modules/mod_dir_path_multi.rs similarity index 100% rename from src/test/ui/modules/mod_dir_path_multi.rs rename to tests/ui/modules/mod_dir_path_multi.rs diff --git a/src/test/ui/modules/mod_dir_recursive.rs b/tests/ui/modules/mod_dir_recursive.rs similarity index 100% rename from src/test/ui/modules/mod_dir_recursive.rs rename to tests/ui/modules/mod_dir_recursive.rs diff --git a/src/test/ui/modules/mod_dir_simple.rs b/tests/ui/modules/mod_dir_simple.rs similarity index 100% rename from src/test/ui/modules/mod_dir_simple.rs rename to tests/ui/modules/mod_dir_simple.rs diff --git a/src/test/ui/modules/mod_dir_simple/compiletest-ignore-dir b/tests/ui/modules/mod_dir_simple/compiletest-ignore-dir similarity index 100% rename from src/test/ui/modules/mod_dir_simple/compiletest-ignore-dir rename to tests/ui/modules/mod_dir_simple/compiletest-ignore-dir diff --git a/src/test/ui/modules/mod_dir_simple/load_another_mod.rs b/tests/ui/modules/mod_dir_simple/load_another_mod.rs similarity index 100% rename from src/test/ui/modules/mod_dir_simple/load_another_mod.rs rename to tests/ui/modules/mod_dir_simple/load_another_mod.rs diff --git a/src/test/ui/modules/mod_dir_simple/test.rs b/tests/ui/modules/mod_dir_simple/test.rs similarity index 100% rename from src/test/ui/modules/mod_dir_simple/test.rs rename to tests/ui/modules/mod_dir_simple/test.rs diff --git a/src/test/ui/modules/mod_file.rs b/tests/ui/modules/mod_file.rs similarity index 100% rename from src/test/ui/modules/mod_file.rs rename to tests/ui/modules/mod_file.rs diff --git a/src/test/ui/modules/mod_file_aux.rs b/tests/ui/modules/mod_file_aux.rs similarity index 100% rename from src/test/ui/modules/mod_file_aux.rs rename to tests/ui/modules/mod_file_aux.rs diff --git a/src/test/ui/modules/mod_file_with_path_attr.rs b/tests/ui/modules/mod_file_with_path_attr.rs similarity index 100% rename from src/test/ui/modules/mod_file_with_path_attr.rs rename to tests/ui/modules/mod_file_with_path_attr.rs diff --git a/src/test/ui/modules/module-polymorphism3-files/compiletest-ignore-dir b/tests/ui/modules/module-polymorphism3-files/compiletest-ignore-dir similarity index 100% rename from src/test/ui/modules/module-polymorphism3-files/compiletest-ignore-dir rename to tests/ui/modules/module-polymorphism3-files/compiletest-ignore-dir diff --git a/src/test/ui/modules/module-polymorphism3-files/float-template/inst_f32.rs b/tests/ui/modules/module-polymorphism3-files/float-template/inst_f32.rs similarity index 100% rename from src/test/ui/modules/module-polymorphism3-files/float-template/inst_f32.rs rename to tests/ui/modules/module-polymorphism3-files/float-template/inst_f32.rs diff --git a/src/test/ui/modules/module-polymorphism3-files/float-template/inst_f64.rs b/tests/ui/modules/module-polymorphism3-files/float-template/inst_f64.rs similarity index 100% rename from src/test/ui/modules/module-polymorphism3-files/float-template/inst_f64.rs rename to tests/ui/modules/module-polymorphism3-files/float-template/inst_f64.rs diff --git a/src/test/ui/modules/module-polymorphism3-files/float-template/inst_float.rs b/tests/ui/modules/module-polymorphism3-files/float-template/inst_float.rs similarity index 100% rename from src/test/ui/modules/module-polymorphism3-files/float-template/inst_float.rs rename to tests/ui/modules/module-polymorphism3-files/float-template/inst_float.rs diff --git a/src/test/ui/modules/path-invalid-form.rs b/tests/ui/modules/path-invalid-form.rs similarity index 100% rename from src/test/ui/modules/path-invalid-form.rs rename to tests/ui/modules/path-invalid-form.rs diff --git a/src/test/ui/modules/path-invalid-form.stderr b/tests/ui/modules/path-invalid-form.stderr similarity index 100% rename from src/test/ui/modules/path-invalid-form.stderr rename to tests/ui/modules/path-invalid-form.stderr diff --git a/src/test/ui/modules/path-macro.rs b/tests/ui/modules/path-macro.rs similarity index 100% rename from src/test/ui/modules/path-macro.rs rename to tests/ui/modules/path-macro.rs diff --git a/src/test/ui/modules/path-macro.stderr b/tests/ui/modules/path-macro.stderr similarity index 100% rename from src/test/ui/modules/path-macro.stderr rename to tests/ui/modules/path-macro.stderr diff --git a/src/test/ui/modules/path-no-file-name.rs b/tests/ui/modules/path-no-file-name.rs similarity index 100% rename from src/test/ui/modules/path-no-file-name.rs rename to tests/ui/modules/path-no-file-name.rs diff --git a/src/test/ui/modules/path-no-file-name.stderr b/tests/ui/modules/path-no-file-name.stderr similarity index 100% rename from src/test/ui/modules/path-no-file-name.stderr rename to tests/ui/modules/path-no-file-name.stderr diff --git a/src/test/ui/modules/special_module_name.rs b/tests/ui/modules/special_module_name.rs similarity index 100% rename from src/test/ui/modules/special_module_name.rs rename to tests/ui/modules/special_module_name.rs diff --git a/src/test/ui/modules/special_module_name.stderr b/tests/ui/modules/special_module_name.stderr similarity index 100% rename from src/test/ui/modules/special_module_name.stderr rename to tests/ui/modules/special_module_name.stderr diff --git a/src/test/ui/modules/special_module_name_ignore.rs b/tests/ui/modules/special_module_name_ignore.rs similarity index 100% rename from src/test/ui/modules/special_module_name_ignore.rs rename to tests/ui/modules/special_module_name_ignore.rs diff --git a/src/test/ui/modules_and_files_visibility/mod_file_aux.rs b/tests/ui/modules_and_files_visibility/mod_file_aux.rs similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_aux.rs rename to tests/ui/modules_and_files_visibility/mod_file_aux.rs diff --git a/src/test/ui/modules_and_files_visibility/mod_file_correct_spans.rs b/tests/ui/modules_and_files_visibility/mod_file_correct_spans.rs similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_correct_spans.rs rename to tests/ui/modules_and_files_visibility/mod_file_correct_spans.rs diff --git a/src/test/ui/modules_and_files_visibility/mod_file_correct_spans.stderr b/tests/ui/modules_and_files_visibility/mod_file_correct_spans.stderr similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_correct_spans.stderr rename to tests/ui/modules_and_files_visibility/mod_file_correct_spans.stderr diff --git a/src/test/ui/modules_and_files_visibility/mod_file_disambig.rs b/tests/ui/modules_and_files_visibility/mod_file_disambig.rs similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_disambig.rs rename to tests/ui/modules_and_files_visibility/mod_file_disambig.rs diff --git a/src/test/ui/modules_and_files_visibility/mod_file_disambig.stderr b/tests/ui/modules_and_files_visibility/mod_file_disambig.stderr similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_disambig.stderr rename to tests/ui/modules_and_files_visibility/mod_file_disambig.stderr diff --git a/src/test/ui/modules_and_files_visibility/mod_file_disambig_aux.rs b/tests/ui/modules_and_files_visibility/mod_file_disambig_aux.rs similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_disambig_aux.rs rename to tests/ui/modules_and_files_visibility/mod_file_disambig_aux.rs diff --git a/src/test/ui/modules_and_files_visibility/mod_file_disambig_aux/mod.rs b/tests/ui/modules_and_files_visibility/mod_file_disambig_aux/mod.rs similarity index 100% rename from src/test/ui/modules_and_files_visibility/mod_file_disambig_aux/mod.rs rename to tests/ui/modules_and_files_visibility/mod_file_disambig_aux/mod.rs diff --git a/src/test/ui/monomorphize-abi-alignment.rs b/tests/ui/monomorphize-abi-alignment.rs similarity index 100% rename from src/test/ui/monomorphize-abi-alignment.rs rename to tests/ui/monomorphize-abi-alignment.rs diff --git a/src/test/ui/moves/borrow-closures-instead-of-move.rs b/tests/ui/moves/borrow-closures-instead-of-move.rs similarity index 100% rename from src/test/ui/moves/borrow-closures-instead-of-move.rs rename to tests/ui/moves/borrow-closures-instead-of-move.rs diff --git a/src/test/ui/moves/borrow-closures-instead-of-move.stderr b/tests/ui/moves/borrow-closures-instead-of-move.stderr similarity index 100% rename from src/test/ui/moves/borrow-closures-instead-of-move.stderr rename to tests/ui/moves/borrow-closures-instead-of-move.stderr diff --git a/src/test/ui/moves/issue-46099-move-in-macro.rs b/tests/ui/moves/issue-46099-move-in-macro.rs similarity index 100% rename from src/test/ui/moves/issue-46099-move-in-macro.rs rename to tests/ui/moves/issue-46099-move-in-macro.rs diff --git a/src/test/ui/moves/issue-46099-move-in-macro.stderr b/tests/ui/moves/issue-46099-move-in-macro.stderr similarity index 100% rename from src/test/ui/moves/issue-46099-move-in-macro.stderr rename to tests/ui/moves/issue-46099-move-in-macro.stderr diff --git a/src/test/ui/moves/issue-72649-uninit-in-loop.rs b/tests/ui/moves/issue-72649-uninit-in-loop.rs similarity index 100% rename from src/test/ui/moves/issue-72649-uninit-in-loop.rs rename to tests/ui/moves/issue-72649-uninit-in-loop.rs diff --git a/src/test/ui/moves/issue-72649-uninit-in-loop.stderr b/tests/ui/moves/issue-72649-uninit-in-loop.stderr similarity index 100% rename from src/test/ui/moves/issue-72649-uninit-in-loop.stderr rename to tests/ui/moves/issue-72649-uninit-in-loop.stderr diff --git a/src/test/ui/moves/issue-75904-move-closure-loop.rs b/tests/ui/moves/issue-75904-move-closure-loop.rs similarity index 100% rename from src/test/ui/moves/issue-75904-move-closure-loop.rs rename to tests/ui/moves/issue-75904-move-closure-loop.rs diff --git a/src/test/ui/moves/issue-75904-move-closure-loop.stderr b/tests/ui/moves/issue-75904-move-closure-loop.stderr similarity index 100% rename from src/test/ui/moves/issue-75904-move-closure-loop.stderr rename to tests/ui/moves/issue-75904-move-closure-loop.stderr diff --git a/src/test/ui/moves/issue-99470-move-out-of-some.rs b/tests/ui/moves/issue-99470-move-out-of-some.rs similarity index 100% rename from src/test/ui/moves/issue-99470-move-out-of-some.rs rename to tests/ui/moves/issue-99470-move-out-of-some.rs diff --git a/src/test/ui/moves/issue-99470-move-out-of-some.stderr b/tests/ui/moves/issue-99470-move-out-of-some.stderr similarity index 100% rename from src/test/ui/moves/issue-99470-move-out-of-some.stderr rename to tests/ui/moves/issue-99470-move-out-of-some.stderr diff --git a/src/test/ui/moves/move-1-unique.rs b/tests/ui/moves/move-1-unique.rs similarity index 100% rename from src/test/ui/moves/move-1-unique.rs rename to tests/ui/moves/move-1-unique.rs diff --git a/src/test/ui/moves/move-2-unique.rs b/tests/ui/moves/move-2-unique.rs similarity index 100% rename from src/test/ui/moves/move-2-unique.rs rename to tests/ui/moves/move-2-unique.rs diff --git a/src/test/ui/moves/move-2.rs b/tests/ui/moves/move-2.rs similarity index 100% rename from src/test/ui/moves/move-2.rs rename to tests/ui/moves/move-2.rs diff --git a/src/test/ui/moves/move-3-unique.rs b/tests/ui/moves/move-3-unique.rs similarity index 100% rename from src/test/ui/moves/move-3-unique.rs rename to tests/ui/moves/move-3-unique.rs diff --git a/src/test/ui/moves/move-4-unique.rs b/tests/ui/moves/move-4-unique.rs similarity index 100% rename from src/test/ui/moves/move-4-unique.rs rename to tests/ui/moves/move-4-unique.rs diff --git a/src/test/ui/moves/move-4.rs b/tests/ui/moves/move-4.rs similarity index 100% rename from src/test/ui/moves/move-4.rs rename to tests/ui/moves/move-4.rs diff --git a/src/test/ui/moves/move-arg-2-unique.rs b/tests/ui/moves/move-arg-2-unique.rs similarity index 100% rename from src/test/ui/moves/move-arg-2-unique.rs rename to tests/ui/moves/move-arg-2-unique.rs diff --git a/src/test/ui/moves/move-arg-2.rs b/tests/ui/moves/move-arg-2.rs similarity index 100% rename from src/test/ui/moves/move-arg-2.rs rename to tests/ui/moves/move-arg-2.rs diff --git a/src/test/ui/moves/move-arg.rs b/tests/ui/moves/move-arg.rs similarity index 100% rename from src/test/ui/moves/move-arg.rs rename to tests/ui/moves/move-arg.rs diff --git a/src/test/ui/moves/move-deref-coercion.rs b/tests/ui/moves/move-deref-coercion.rs similarity index 100% rename from src/test/ui/moves/move-deref-coercion.rs rename to tests/ui/moves/move-deref-coercion.rs diff --git a/src/test/ui/moves/move-deref-coercion.stderr b/tests/ui/moves/move-deref-coercion.stderr similarity index 100% rename from src/test/ui/moves/move-deref-coercion.stderr rename to tests/ui/moves/move-deref-coercion.stderr diff --git a/src/test/ui/moves/move-fn-self-receiver.rs b/tests/ui/moves/move-fn-self-receiver.rs similarity index 100% rename from src/test/ui/moves/move-fn-self-receiver.rs rename to tests/ui/moves/move-fn-self-receiver.rs diff --git a/src/test/ui/moves/move-fn-self-receiver.stderr b/tests/ui/moves/move-fn-self-receiver.stderr similarity index 100% rename from src/test/ui/moves/move-fn-self-receiver.stderr rename to tests/ui/moves/move-fn-self-receiver.stderr diff --git a/src/test/ui/moves/move-guard-same-consts.rs b/tests/ui/moves/move-guard-same-consts.rs similarity index 100% rename from src/test/ui/moves/move-guard-same-consts.rs rename to tests/ui/moves/move-guard-same-consts.rs diff --git a/src/test/ui/moves/move-guard-same-consts.stderr b/tests/ui/moves/move-guard-same-consts.stderr similarity index 100% rename from src/test/ui/moves/move-guard-same-consts.stderr rename to tests/ui/moves/move-guard-same-consts.stderr diff --git a/src/test/ui/moves/move-in-guard-1.rs b/tests/ui/moves/move-in-guard-1.rs similarity index 100% rename from src/test/ui/moves/move-in-guard-1.rs rename to tests/ui/moves/move-in-guard-1.rs diff --git a/src/test/ui/moves/move-in-guard-1.stderr b/tests/ui/moves/move-in-guard-1.stderr similarity index 100% rename from src/test/ui/moves/move-in-guard-1.stderr rename to tests/ui/moves/move-in-guard-1.stderr diff --git a/src/test/ui/moves/move-in-guard-2.rs b/tests/ui/moves/move-in-guard-2.rs similarity index 100% rename from src/test/ui/moves/move-in-guard-2.rs rename to tests/ui/moves/move-in-guard-2.rs diff --git a/src/test/ui/moves/move-in-guard-2.stderr b/tests/ui/moves/move-in-guard-2.stderr similarity index 100% rename from src/test/ui/moves/move-in-guard-2.stderr rename to tests/ui/moves/move-in-guard-2.stderr diff --git a/src/test/ui/moves/move-into-dead-array-1.rs b/tests/ui/moves/move-into-dead-array-1.rs similarity index 100% rename from src/test/ui/moves/move-into-dead-array-1.rs rename to tests/ui/moves/move-into-dead-array-1.rs diff --git a/src/test/ui/moves/move-into-dead-array-1.stderr b/tests/ui/moves/move-into-dead-array-1.stderr similarity index 100% rename from src/test/ui/moves/move-into-dead-array-1.stderr rename to tests/ui/moves/move-into-dead-array-1.stderr diff --git a/src/test/ui/moves/move-into-dead-array-2.rs b/tests/ui/moves/move-into-dead-array-2.rs similarity index 100% rename from src/test/ui/moves/move-into-dead-array-2.rs rename to tests/ui/moves/move-into-dead-array-2.rs diff --git a/src/test/ui/moves/move-into-dead-array-2.stderr b/tests/ui/moves/move-into-dead-array-2.stderr similarity index 100% rename from src/test/ui/moves/move-into-dead-array-2.stderr rename to tests/ui/moves/move-into-dead-array-2.stderr diff --git a/src/test/ui/moves/move-nullary-fn.rs b/tests/ui/moves/move-nullary-fn.rs similarity index 100% rename from src/test/ui/moves/move-nullary-fn.rs rename to tests/ui/moves/move-nullary-fn.rs diff --git a/src/test/ui/moves/move-of-addr-of-mut.rs b/tests/ui/moves/move-of-addr-of-mut.rs similarity index 100% rename from src/test/ui/moves/move-of-addr-of-mut.rs rename to tests/ui/moves/move-of-addr-of-mut.rs diff --git a/src/test/ui/moves/move-of-addr-of-mut.stderr b/tests/ui/moves/move-of-addr-of-mut.stderr similarity index 100% rename from src/test/ui/moves/move-of-addr-of-mut.stderr rename to tests/ui/moves/move-of-addr-of-mut.stderr diff --git a/src/test/ui/moves/move-out-of-array-1.rs b/tests/ui/moves/move-out-of-array-1.rs similarity index 100% rename from src/test/ui/moves/move-out-of-array-1.rs rename to tests/ui/moves/move-out-of-array-1.rs diff --git a/src/test/ui/moves/move-out-of-array-1.stderr b/tests/ui/moves/move-out-of-array-1.stderr similarity index 100% rename from src/test/ui/moves/move-out-of-array-1.stderr rename to tests/ui/moves/move-out-of-array-1.stderr diff --git a/src/test/ui/moves/move-out-of-array-ref.rs b/tests/ui/moves/move-out-of-array-ref.rs similarity index 100% rename from src/test/ui/moves/move-out-of-array-ref.rs rename to tests/ui/moves/move-out-of-array-ref.rs diff --git a/src/test/ui/moves/move-out-of-array-ref.stderr b/tests/ui/moves/move-out-of-array-ref.stderr similarity index 100% rename from src/test/ui/moves/move-out-of-array-ref.stderr rename to tests/ui/moves/move-out-of-array-ref.stderr diff --git a/src/test/ui/moves/move-out-of-field.rs b/tests/ui/moves/move-out-of-field.rs similarity index 100% rename from src/test/ui/moves/move-out-of-field.rs rename to tests/ui/moves/move-out-of-field.rs diff --git a/src/test/ui/moves/move-out-of-slice-1.rs b/tests/ui/moves/move-out-of-slice-1.rs similarity index 100% rename from src/test/ui/moves/move-out-of-slice-1.rs rename to tests/ui/moves/move-out-of-slice-1.rs diff --git a/src/test/ui/moves/move-out-of-slice-1.stderr b/tests/ui/moves/move-out-of-slice-1.stderr similarity index 100% rename from src/test/ui/moves/move-out-of-slice-1.stderr rename to tests/ui/moves/move-out-of-slice-1.stderr diff --git a/src/test/ui/moves/move-out-of-slice-2.rs b/tests/ui/moves/move-out-of-slice-2.rs similarity index 100% rename from src/test/ui/moves/move-out-of-slice-2.rs rename to tests/ui/moves/move-out-of-slice-2.rs diff --git a/src/test/ui/moves/move-out-of-slice-2.stderr b/tests/ui/moves/move-out-of-slice-2.stderr similarity index 100% rename from src/test/ui/moves/move-out-of-slice-2.stderr rename to tests/ui/moves/move-out-of-slice-2.stderr diff --git a/src/test/ui/moves/move-out-of-tuple-field.rs b/tests/ui/moves/move-out-of-tuple-field.rs similarity index 100% rename from src/test/ui/moves/move-out-of-tuple-field.rs rename to tests/ui/moves/move-out-of-tuple-field.rs diff --git a/src/test/ui/moves/move-out-of-tuple-field.stderr b/tests/ui/moves/move-out-of-tuple-field.stderr similarity index 100% rename from src/test/ui/moves/move-out-of-tuple-field.stderr rename to tests/ui/moves/move-out-of-tuple-field.stderr diff --git a/src/test/ui/moves/move-scalar.rs b/tests/ui/moves/move-scalar.rs similarity index 100% rename from src/test/ui/moves/move-scalar.rs rename to tests/ui/moves/move-scalar.rs diff --git a/src/test/ui/moves/moves-based-on-type-access-to-field.rs b/tests/ui/moves/moves-based-on-type-access-to-field.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-access-to-field.rs rename to tests/ui/moves/moves-based-on-type-access-to-field.rs diff --git a/src/test/ui/moves/moves-based-on-type-access-to-field.stderr b/tests/ui/moves/moves-based-on-type-access-to-field.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-access-to-field.stderr rename to tests/ui/moves/moves-based-on-type-access-to-field.stderr diff --git a/src/test/ui/moves/moves-based-on-type-block-bad.rs b/tests/ui/moves/moves-based-on-type-block-bad.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-block-bad.rs rename to tests/ui/moves/moves-based-on-type-block-bad.rs diff --git a/src/test/ui/moves/moves-based-on-type-block-bad.stderr b/tests/ui/moves/moves-based-on-type-block-bad.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-block-bad.stderr rename to tests/ui/moves/moves-based-on-type-block-bad.stderr diff --git a/src/test/ui/moves/moves-based-on-type-capture-clause-bad.rs b/tests/ui/moves/moves-based-on-type-capture-clause-bad.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-capture-clause-bad.rs rename to tests/ui/moves/moves-based-on-type-capture-clause-bad.rs diff --git a/src/test/ui/moves/moves-based-on-type-capture-clause-bad.stderr b/tests/ui/moves/moves-based-on-type-capture-clause-bad.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-capture-clause-bad.stderr rename to tests/ui/moves/moves-based-on-type-capture-clause-bad.stderr diff --git a/src/test/ui/moves/moves-based-on-type-capture-clause.rs b/tests/ui/moves/moves-based-on-type-capture-clause.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-capture-clause.rs rename to tests/ui/moves/moves-based-on-type-capture-clause.rs diff --git a/src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.rs b/tests/ui/moves/moves-based-on-type-cyclic-types-issue-4821.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.rs rename to tests/ui/moves/moves-based-on-type-cyclic-types-issue-4821.rs diff --git a/src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr b/tests/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr rename to tests/ui/moves/moves-based-on-type-cyclic-types-issue-4821.stderr diff --git a/src/test/ui/moves/moves-based-on-type-distribute-copy-over-paren.rs b/tests/ui/moves/moves-based-on-type-distribute-copy-over-paren.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-distribute-copy-over-paren.rs rename to tests/ui/moves/moves-based-on-type-distribute-copy-over-paren.rs diff --git a/src/test/ui/moves/moves-based-on-type-distribute-copy-over-paren.stderr b/tests/ui/moves/moves-based-on-type-distribute-copy-over-paren.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-distribute-copy-over-paren.stderr rename to tests/ui/moves/moves-based-on-type-distribute-copy-over-paren.stderr diff --git a/src/test/ui/moves/moves-based-on-type-exprs.rs b/tests/ui/moves/moves-based-on-type-exprs.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-exprs.rs rename to tests/ui/moves/moves-based-on-type-exprs.rs diff --git a/src/test/ui/moves/moves-based-on-type-exprs.stderr b/tests/ui/moves/moves-based-on-type-exprs.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-exprs.stderr rename to tests/ui/moves/moves-based-on-type-exprs.stderr diff --git a/src/test/ui/moves/moves-based-on-type-match-bindings.rs b/tests/ui/moves/moves-based-on-type-match-bindings.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-match-bindings.rs rename to tests/ui/moves/moves-based-on-type-match-bindings.rs diff --git a/src/test/ui/moves/moves-based-on-type-match-bindings.stderr b/tests/ui/moves/moves-based-on-type-match-bindings.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-match-bindings.stderr rename to tests/ui/moves/moves-based-on-type-match-bindings.stderr diff --git a/src/test/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.rs b/tests/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.rs rename to tests/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.rs diff --git a/src/test/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.stderr b/tests/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.stderr rename to tests/ui/moves/moves-based-on-type-move-out-of-closure-env-issue-1965.stderr diff --git a/src/test/ui/moves/moves-based-on-type-no-recursive-stack-closure.rs b/tests/ui/moves/moves-based-on-type-no-recursive-stack-closure.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-no-recursive-stack-closure.rs rename to tests/ui/moves/moves-based-on-type-no-recursive-stack-closure.rs diff --git a/src/test/ui/moves/moves-based-on-type-no-recursive-stack-closure.stderr b/tests/ui/moves/moves-based-on-type-no-recursive-stack-closure.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-no-recursive-stack-closure.stderr rename to tests/ui/moves/moves-based-on-type-no-recursive-stack-closure.stderr diff --git a/src/test/ui/moves/moves-based-on-type-tuple.rs b/tests/ui/moves/moves-based-on-type-tuple.rs similarity index 100% rename from src/test/ui/moves/moves-based-on-type-tuple.rs rename to tests/ui/moves/moves-based-on-type-tuple.rs diff --git a/src/test/ui/moves/moves-based-on-type-tuple.stderr b/tests/ui/moves/moves-based-on-type-tuple.stderr similarity index 100% rename from src/test/ui/moves/moves-based-on-type-tuple.stderr rename to tests/ui/moves/moves-based-on-type-tuple.stderr diff --git a/src/test/ui/moves/moves-sru-moved-field.rs b/tests/ui/moves/moves-sru-moved-field.rs similarity index 100% rename from src/test/ui/moves/moves-sru-moved-field.rs rename to tests/ui/moves/moves-sru-moved-field.rs diff --git a/src/test/ui/moves/moves-sru-moved-field.stderr b/tests/ui/moves/moves-sru-moved-field.stderr similarity index 100% rename from src/test/ui/moves/moves-sru-moved-field.stderr rename to tests/ui/moves/moves-sru-moved-field.stderr diff --git a/src/test/ui/moves/pin-mut-reborrow.fixed b/tests/ui/moves/pin-mut-reborrow.fixed similarity index 100% rename from src/test/ui/moves/pin-mut-reborrow.fixed rename to tests/ui/moves/pin-mut-reborrow.fixed diff --git a/src/test/ui/moves/pin-mut-reborrow.rs b/tests/ui/moves/pin-mut-reborrow.rs similarity index 100% rename from src/test/ui/moves/pin-mut-reborrow.rs rename to tests/ui/moves/pin-mut-reborrow.rs diff --git a/src/test/ui/moves/pin-mut-reborrow.stderr b/tests/ui/moves/pin-mut-reborrow.stderr similarity index 100% rename from src/test/ui/moves/pin-mut-reborrow.stderr rename to tests/ui/moves/pin-mut-reborrow.stderr diff --git a/src/test/ui/moves/suggest-clone.fixed b/tests/ui/moves/suggest-clone.fixed similarity index 100% rename from src/test/ui/moves/suggest-clone.fixed rename to tests/ui/moves/suggest-clone.fixed diff --git a/src/test/ui/moves/suggest-clone.rs b/tests/ui/moves/suggest-clone.rs similarity index 100% rename from src/test/ui/moves/suggest-clone.rs rename to tests/ui/moves/suggest-clone.rs diff --git a/src/test/ui/moves/suggest-clone.stderr b/tests/ui/moves/suggest-clone.stderr similarity index 100% rename from src/test/ui/moves/suggest-clone.stderr rename to tests/ui/moves/suggest-clone.stderr diff --git a/src/test/ui/moves/use_of_moved_value_clone_suggestions.rs b/tests/ui/moves/use_of_moved_value_clone_suggestions.rs similarity index 100% rename from src/test/ui/moves/use_of_moved_value_clone_suggestions.rs rename to tests/ui/moves/use_of_moved_value_clone_suggestions.rs diff --git a/src/test/ui/moves/use_of_moved_value_clone_suggestions.stderr b/tests/ui/moves/use_of_moved_value_clone_suggestions.stderr similarity index 100% rename from src/test/ui/moves/use_of_moved_value_clone_suggestions.stderr rename to tests/ui/moves/use_of_moved_value_clone_suggestions.stderr diff --git a/src/test/ui/moves/use_of_moved_value_copy_suggestions.fixed b/tests/ui/moves/use_of_moved_value_copy_suggestions.fixed similarity index 100% rename from src/test/ui/moves/use_of_moved_value_copy_suggestions.fixed rename to tests/ui/moves/use_of_moved_value_copy_suggestions.fixed diff --git a/src/test/ui/moves/use_of_moved_value_copy_suggestions.rs b/tests/ui/moves/use_of_moved_value_copy_suggestions.rs similarity index 100% rename from src/test/ui/moves/use_of_moved_value_copy_suggestions.rs rename to tests/ui/moves/use_of_moved_value_copy_suggestions.rs diff --git a/src/test/ui/moves/use_of_moved_value_copy_suggestions.stderr b/tests/ui/moves/use_of_moved_value_copy_suggestions.stderr similarity index 100% rename from src/test/ui/moves/use_of_moved_value_copy_suggestions.stderr rename to tests/ui/moves/use_of_moved_value_copy_suggestions.stderr diff --git a/src/test/ui/msvc-data-only.rs b/tests/ui/msvc-data-only.rs similarity index 100% rename from src/test/ui/msvc-data-only.rs rename to tests/ui/msvc-data-only.rs diff --git a/src/test/ui/multibyte.rs b/tests/ui/multibyte.rs similarity index 100% rename from src/test/ui/multibyte.rs rename to tests/ui/multibyte.rs diff --git a/src/test/ui/multiline-comment.rs b/tests/ui/multiline-comment.rs similarity index 100% rename from src/test/ui/multiline-comment.rs rename to tests/ui/multiline-comment.rs diff --git a/src/test/ui/mut-function-arguments.rs b/tests/ui/mut-function-arguments.rs similarity index 100% rename from src/test/ui/mut-function-arguments.rs rename to tests/ui/mut-function-arguments.rs diff --git a/src/test/ui/mut/mut-cant-alias.rs b/tests/ui/mut/mut-cant-alias.rs similarity index 100% rename from src/test/ui/mut/mut-cant-alias.rs rename to tests/ui/mut/mut-cant-alias.rs diff --git a/src/test/ui/mut/mut-cant-alias.stderr b/tests/ui/mut/mut-cant-alias.stderr similarity index 100% rename from src/test/ui/mut/mut-cant-alias.stderr rename to tests/ui/mut/mut-cant-alias.stderr diff --git a/src/test/ui/mut/mut-cross-borrowing.rs b/tests/ui/mut/mut-cross-borrowing.rs similarity index 100% rename from src/test/ui/mut/mut-cross-borrowing.rs rename to tests/ui/mut/mut-cross-borrowing.rs diff --git a/src/test/ui/mut/mut-cross-borrowing.stderr b/tests/ui/mut/mut-cross-borrowing.stderr similarity index 100% rename from src/test/ui/mut/mut-cross-borrowing.stderr rename to tests/ui/mut/mut-cross-borrowing.stderr diff --git a/src/test/ui/mut/mut-pattern-internal-mutability.rs b/tests/ui/mut/mut-pattern-internal-mutability.rs similarity index 100% rename from src/test/ui/mut/mut-pattern-internal-mutability.rs rename to tests/ui/mut/mut-pattern-internal-mutability.rs diff --git a/src/test/ui/mut/mut-pattern-internal-mutability.stderr b/tests/ui/mut/mut-pattern-internal-mutability.stderr similarity index 100% rename from src/test/ui/mut/mut-pattern-internal-mutability.stderr rename to tests/ui/mut/mut-pattern-internal-mutability.stderr diff --git a/src/test/ui/mut/mut-pattern-mismatched.rs b/tests/ui/mut/mut-pattern-mismatched.rs similarity index 100% rename from src/test/ui/mut/mut-pattern-mismatched.rs rename to tests/ui/mut/mut-pattern-mismatched.rs diff --git a/src/test/ui/mut/mut-pattern-mismatched.stderr b/tests/ui/mut/mut-pattern-mismatched.stderr similarity index 100% rename from src/test/ui/mut/mut-pattern-mismatched.stderr rename to tests/ui/mut/mut-pattern-mismatched.stderr diff --git a/src/test/ui/mut/mut-ref.rs b/tests/ui/mut/mut-ref.rs similarity index 100% rename from src/test/ui/mut/mut-ref.rs rename to tests/ui/mut/mut-ref.rs diff --git a/src/test/ui/mut/mut-ref.stderr b/tests/ui/mut/mut-ref.stderr similarity index 100% rename from src/test/ui/mut/mut-ref.stderr rename to tests/ui/mut/mut-ref.stderr diff --git a/src/test/ui/mut/mut-suggestion.rs b/tests/ui/mut/mut-suggestion.rs similarity index 100% rename from src/test/ui/mut/mut-suggestion.rs rename to tests/ui/mut/mut-suggestion.rs diff --git a/src/test/ui/mut/mut-suggestion.stderr b/tests/ui/mut/mut-suggestion.stderr similarity index 100% rename from src/test/ui/mut/mut-suggestion.stderr rename to tests/ui/mut/mut-suggestion.stderr diff --git a/src/test/ui/mut/mutable-class-fields-2.rs b/tests/ui/mut/mutable-class-fields-2.rs similarity index 100% rename from src/test/ui/mut/mutable-class-fields-2.rs rename to tests/ui/mut/mutable-class-fields-2.rs diff --git a/src/test/ui/mut/mutable-class-fields-2.stderr b/tests/ui/mut/mutable-class-fields-2.stderr similarity index 100% rename from src/test/ui/mut/mutable-class-fields-2.stderr rename to tests/ui/mut/mutable-class-fields-2.stderr diff --git a/src/test/ui/mut/mutable-class-fields.rs b/tests/ui/mut/mutable-class-fields.rs similarity index 100% rename from src/test/ui/mut/mutable-class-fields.rs rename to tests/ui/mut/mutable-class-fields.rs diff --git a/src/test/ui/mut/mutable-class-fields.stderr b/tests/ui/mut/mutable-class-fields.stderr similarity index 100% rename from src/test/ui/mut/mutable-class-fields.stderr rename to tests/ui/mut/mutable-class-fields.stderr diff --git a/src/test/ui/mut/mutable-enum-indirect.rs b/tests/ui/mut/mutable-enum-indirect.rs similarity index 100% rename from src/test/ui/mut/mutable-enum-indirect.rs rename to tests/ui/mut/mutable-enum-indirect.rs diff --git a/src/test/ui/mut/mutable-enum-indirect.stderr b/tests/ui/mut/mutable-enum-indirect.stderr similarity index 100% rename from src/test/ui/mut/mutable-enum-indirect.stderr rename to tests/ui/mut/mutable-enum-indirect.stderr diff --git a/src/test/ui/mut/no-mut-lint-for-desugared-mut.rs b/tests/ui/mut/no-mut-lint-for-desugared-mut.rs similarity index 100% rename from src/test/ui/mut/no-mut-lint-for-desugared-mut.rs rename to tests/ui/mut/no-mut-lint-for-desugared-mut.rs diff --git a/src/test/ui/mutexguard-sync.rs b/tests/ui/mutexguard-sync.rs similarity index 100% rename from src/test/ui/mutexguard-sync.rs rename to tests/ui/mutexguard-sync.rs diff --git a/src/test/ui/mutexguard-sync.stderr b/tests/ui/mutexguard-sync.stderr similarity index 100% rename from src/test/ui/mutexguard-sync.stderr rename to tests/ui/mutexguard-sync.stderr diff --git a/src/test/ui/mutual-recursion-group.rs b/tests/ui/mutual-recursion-group.rs similarity index 100% rename from src/test/ui/mutual-recursion-group.rs rename to tests/ui/mutual-recursion-group.rs diff --git a/src/test/ui/namespace/auxiliary/namespace-mix.rs b/tests/ui/namespace/auxiliary/namespace-mix.rs similarity index 100% rename from src/test/ui/namespace/auxiliary/namespace-mix.rs rename to tests/ui/namespace/auxiliary/namespace-mix.rs diff --git a/src/test/ui/namespace/auxiliary/namespaced_enums.rs b/tests/ui/namespace/auxiliary/namespaced_enums.rs similarity index 100% rename from src/test/ui/namespace/auxiliary/namespaced_enums.rs rename to tests/ui/namespace/auxiliary/namespaced_enums.rs diff --git a/src/test/ui/namespace/namespace-mix.rs b/tests/ui/namespace/namespace-mix.rs similarity index 100% rename from src/test/ui/namespace/namespace-mix.rs rename to tests/ui/namespace/namespace-mix.rs diff --git a/src/test/ui/namespace/namespace-mix.stderr b/tests/ui/namespace/namespace-mix.stderr similarity index 100% rename from src/test/ui/namespace/namespace-mix.stderr rename to tests/ui/namespace/namespace-mix.stderr diff --git a/src/test/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.rs b/tests/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.rs similarity index 100% rename from src/test/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.rs rename to tests/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.rs diff --git a/src/test/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.stderr b/tests/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.stderr similarity index 100% rename from src/test/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.stderr rename to tests/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.stderr diff --git a/src/test/ui/namespace/namespaced-enum-glob-import-no-impls.rs b/tests/ui/namespace/namespaced-enum-glob-import-no-impls.rs similarity index 100% rename from src/test/ui/namespace/namespaced-enum-glob-import-no-impls.rs rename to tests/ui/namespace/namespaced-enum-glob-import-no-impls.rs diff --git a/src/test/ui/namespace/namespaced-enum-glob-import-no-impls.stderr b/tests/ui/namespace/namespaced-enum-glob-import-no-impls.stderr similarity index 100% rename from src/test/ui/namespace/namespaced-enum-glob-import-no-impls.stderr rename to tests/ui/namespace/namespaced-enum-glob-import-no-impls.stderr diff --git a/src/test/ui/native-library-link-flags/empty-kind-1.rs b/tests/ui/native-library-link-flags/empty-kind-1.rs similarity index 100% rename from src/test/ui/native-library-link-flags/empty-kind-1.rs rename to tests/ui/native-library-link-flags/empty-kind-1.rs diff --git a/src/test/ui/native-library-link-flags/empty-kind-1.stderr b/tests/ui/native-library-link-flags/empty-kind-1.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/empty-kind-1.stderr rename to tests/ui/native-library-link-flags/empty-kind-1.stderr diff --git a/src/test/ui/native-library-link-flags/empty-kind-2.rs b/tests/ui/native-library-link-flags/empty-kind-2.rs similarity index 100% rename from src/test/ui/native-library-link-flags/empty-kind-2.rs rename to tests/ui/native-library-link-flags/empty-kind-2.rs diff --git a/src/test/ui/native-library-link-flags/empty-kind-2.stderr b/tests/ui/native-library-link-flags/empty-kind-2.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/empty-kind-2.stderr rename to tests/ui/native-library-link-flags/empty-kind-2.stderr diff --git a/src/test/ui/native-library-link-flags/link-arg-error.rs b/tests/ui/native-library-link-flags/link-arg-error.rs similarity index 100% rename from src/test/ui/native-library-link-flags/link-arg-error.rs rename to tests/ui/native-library-link-flags/link-arg-error.rs diff --git a/src/test/ui/native-library-link-flags/link-arg-error.stderr b/tests/ui/native-library-link-flags/link-arg-error.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/link-arg-error.stderr rename to tests/ui/native-library-link-flags/link-arg-error.stderr diff --git a/src/test/ui/native-library-link-flags/link-arg-from-rs.rs b/tests/ui/native-library-link-flags/link-arg-from-rs.rs similarity index 100% rename from src/test/ui/native-library-link-flags/link-arg-from-rs.rs rename to tests/ui/native-library-link-flags/link-arg-from-rs.rs diff --git a/src/test/ui/native-library-link-flags/link-arg-from-rs.stderr b/tests/ui/native-library-link-flags/link-arg-from-rs.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/link-arg-from-rs.stderr rename to tests/ui/native-library-link-flags/link-arg-from-rs.stderr diff --git a/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs b/tests/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs similarity index 100% rename from src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs rename to tests/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.rs diff --git a/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.stderr b/tests/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.stderr rename to tests/ui/native-library-link-flags/mix-bundle-and-whole-archive-link-attr.stderr diff --git a/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs b/tests/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs similarity index 100% rename from src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs rename to tests/ui/native-library-link-flags/mix-bundle-and-whole-archive.rs diff --git a/src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.stderr b/tests/ui/native-library-link-flags/mix-bundle-and-whole-archive.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/mix-bundle-and-whole-archive.stderr rename to tests/ui/native-library-link-flags/mix-bundle-and-whole-archive.stderr diff --git a/src/test/ui/native-library-link-flags/modifiers-override-2.rs b/tests/ui/native-library-link-flags/modifiers-override-2.rs similarity index 100% rename from src/test/ui/native-library-link-flags/modifiers-override-2.rs rename to tests/ui/native-library-link-flags/modifiers-override-2.rs diff --git a/src/test/ui/native-library-link-flags/modifiers-override-2.stderr b/tests/ui/native-library-link-flags/modifiers-override-2.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/modifiers-override-2.stderr rename to tests/ui/native-library-link-flags/modifiers-override-2.stderr diff --git a/src/test/ui/native-library-link-flags/modifiers-override-3.rs b/tests/ui/native-library-link-flags/modifiers-override-3.rs similarity index 100% rename from src/test/ui/native-library-link-flags/modifiers-override-3.rs rename to tests/ui/native-library-link-flags/modifiers-override-3.rs diff --git a/src/test/ui/native-library-link-flags/modifiers-override-3.stderr b/tests/ui/native-library-link-flags/modifiers-override-3.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/modifiers-override-3.stderr rename to tests/ui/native-library-link-flags/modifiers-override-3.stderr diff --git a/src/test/ui/native-library-link-flags/modifiers-override.rs b/tests/ui/native-library-link-flags/modifiers-override.rs similarity index 100% rename from src/test/ui/native-library-link-flags/modifiers-override.rs rename to tests/ui/native-library-link-flags/modifiers-override.rs diff --git a/src/test/ui/native-library-link-flags/modifiers-override.stderr b/tests/ui/native-library-link-flags/modifiers-override.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/modifiers-override.stderr rename to tests/ui/native-library-link-flags/modifiers-override.stderr diff --git a/src/test/ui/native-library-link-flags/suggest-libname-only-1.rs b/tests/ui/native-library-link-flags/suggest-libname-only-1.rs similarity index 100% rename from src/test/ui/native-library-link-flags/suggest-libname-only-1.rs rename to tests/ui/native-library-link-flags/suggest-libname-only-1.rs diff --git a/src/test/ui/native-library-link-flags/suggest-libname-only-1.stderr b/tests/ui/native-library-link-flags/suggest-libname-only-1.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/suggest-libname-only-1.stderr rename to tests/ui/native-library-link-flags/suggest-libname-only-1.stderr diff --git a/src/test/ui/native-library-link-flags/suggest-libname-only-2.rs b/tests/ui/native-library-link-flags/suggest-libname-only-2.rs similarity index 100% rename from src/test/ui/native-library-link-flags/suggest-libname-only-2.rs rename to tests/ui/native-library-link-flags/suggest-libname-only-2.rs diff --git a/src/test/ui/native-library-link-flags/suggest-libname-only-2.stderr b/tests/ui/native-library-link-flags/suggest-libname-only-2.stderr similarity index 100% rename from src/test/ui/native-library-link-flags/suggest-libname-only-2.stderr rename to tests/ui/native-library-link-flags/suggest-libname-only-2.stderr diff --git a/src/test/ui/nested-block-comment.rs b/tests/ui/nested-block-comment.rs similarity index 100% rename from src/test/ui/nested-block-comment.rs rename to tests/ui/nested-block-comment.rs diff --git a/src/test/ui/nested-cfg-attrs.rs b/tests/ui/nested-cfg-attrs.rs similarity index 100% rename from src/test/ui/nested-cfg-attrs.rs rename to tests/ui/nested-cfg-attrs.rs diff --git a/src/test/ui/nested-cfg-attrs.stderr b/tests/ui/nested-cfg-attrs.stderr similarity index 100% rename from src/test/ui/nested-cfg-attrs.stderr rename to tests/ui/nested-cfg-attrs.stderr diff --git a/src/test/ui/nested-class.rs b/tests/ui/nested-class.rs similarity index 100% rename from src/test/ui/nested-class.rs rename to tests/ui/nested-class.rs diff --git a/src/test/ui/nested-ty-params.rs b/tests/ui/nested-ty-params.rs similarity index 100% rename from src/test/ui/nested-ty-params.rs rename to tests/ui/nested-ty-params.rs diff --git a/src/test/ui/nested-ty-params.stderr b/tests/ui/nested-ty-params.stderr similarity index 100% rename from src/test/ui/nested-ty-params.stderr rename to tests/ui/nested-ty-params.stderr diff --git a/src/test/ui/never_type/adjust_never.rs b/tests/ui/never_type/adjust_never.rs similarity index 100% rename from src/test/ui/never_type/adjust_never.rs rename to tests/ui/never_type/adjust_never.rs diff --git a/src/test/ui/never_type/auto-traits.rs b/tests/ui/never_type/auto-traits.rs similarity index 100% rename from src/test/ui/never_type/auto-traits.rs rename to tests/ui/never_type/auto-traits.rs diff --git a/src/test/ui/never_type/call-fn-never-arg-wrong-type.rs b/tests/ui/never_type/call-fn-never-arg-wrong-type.rs similarity index 100% rename from src/test/ui/never_type/call-fn-never-arg-wrong-type.rs rename to tests/ui/never_type/call-fn-never-arg-wrong-type.rs diff --git a/src/test/ui/never_type/call-fn-never-arg-wrong-type.stderr b/tests/ui/never_type/call-fn-never-arg-wrong-type.stderr similarity index 100% rename from src/test/ui/never_type/call-fn-never-arg-wrong-type.stderr rename to tests/ui/never_type/call-fn-never-arg-wrong-type.stderr diff --git a/src/test/ui/never_type/call-fn-never-arg.rs b/tests/ui/never_type/call-fn-never-arg.rs similarity index 100% rename from src/test/ui/never_type/call-fn-never-arg.rs rename to tests/ui/never_type/call-fn-never-arg.rs diff --git a/src/test/ui/never_type/cast-never.rs b/tests/ui/never_type/cast-never.rs similarity index 100% rename from src/test/ui/never_type/cast-never.rs rename to tests/ui/never_type/cast-never.rs diff --git a/src/test/ui/never_type/defaulted-never-note.fallback.stderr b/tests/ui/never_type/defaulted-never-note.fallback.stderr similarity index 100% rename from src/test/ui/never_type/defaulted-never-note.fallback.stderr rename to tests/ui/never_type/defaulted-never-note.fallback.stderr diff --git a/src/test/ui/never_type/defaulted-never-note.rs b/tests/ui/never_type/defaulted-never-note.rs similarity index 100% rename from src/test/ui/never_type/defaulted-never-note.rs rename to tests/ui/never_type/defaulted-never-note.rs diff --git a/src/test/ui/never_type/dispatch_from_dyn_zst.rs b/tests/ui/never_type/dispatch_from_dyn_zst.rs similarity index 100% rename from src/test/ui/never_type/dispatch_from_dyn_zst.rs rename to tests/ui/never_type/dispatch_from_dyn_zst.rs diff --git a/src/test/ui/never_type/diverging-fallback-control-flow.rs b/tests/ui/never_type/diverging-fallback-control-flow.rs similarity index 100% rename from src/test/ui/never_type/diverging-fallback-control-flow.rs rename to tests/ui/never_type/diverging-fallback-control-flow.rs diff --git a/src/test/ui/never_type/diverging-fallback-no-leak.fallback.stderr b/tests/ui/never_type/diverging-fallback-no-leak.fallback.stderr similarity index 100% rename from src/test/ui/never_type/diverging-fallback-no-leak.fallback.stderr rename to tests/ui/never_type/diverging-fallback-no-leak.fallback.stderr diff --git a/src/test/ui/never_type/diverging-fallback-no-leak.rs b/tests/ui/never_type/diverging-fallback-no-leak.rs similarity index 100% rename from src/test/ui/never_type/diverging-fallback-no-leak.rs rename to tests/ui/never_type/diverging-fallback-no-leak.rs diff --git a/src/test/ui/never_type/diverging-fallback-unconstrained-return.rs b/tests/ui/never_type/diverging-fallback-unconstrained-return.rs similarity index 100% rename from src/test/ui/never_type/diverging-fallback-unconstrained-return.rs rename to tests/ui/never_type/diverging-fallback-unconstrained-return.rs diff --git a/src/test/ui/never_type/diverging-tuple-parts-39485.rs b/tests/ui/never_type/diverging-tuple-parts-39485.rs similarity index 100% rename from src/test/ui/never_type/diverging-tuple-parts-39485.rs rename to tests/ui/never_type/diverging-tuple-parts-39485.rs diff --git a/src/test/ui/never_type/diverging-tuple-parts-39485.stderr b/tests/ui/never_type/diverging-tuple-parts-39485.stderr similarity index 100% rename from src/test/ui/never_type/diverging-tuple-parts-39485.stderr rename to tests/ui/never_type/diverging-tuple-parts-39485.stderr diff --git a/src/test/ui/never_type/exhaustive_patterns.rs b/tests/ui/never_type/exhaustive_patterns.rs similarity index 100% rename from src/test/ui/never_type/exhaustive_patterns.rs rename to tests/ui/never_type/exhaustive_patterns.rs diff --git a/src/test/ui/never_type/exhaustive_patterns.stderr b/tests/ui/never_type/exhaustive_patterns.stderr similarity index 100% rename from src/test/ui/never_type/exhaustive_patterns.stderr rename to tests/ui/never_type/exhaustive_patterns.stderr diff --git a/src/test/ui/never_type/expr-empty-ret.rs b/tests/ui/never_type/expr-empty-ret.rs similarity index 100% rename from src/test/ui/never_type/expr-empty-ret.rs rename to tests/ui/never_type/expr-empty-ret.rs diff --git a/src/test/ui/never_type/fallback-closure-ret.rs b/tests/ui/never_type/fallback-closure-ret.rs similarity index 100% rename from src/test/ui/never_type/fallback-closure-ret.rs rename to tests/ui/never_type/fallback-closure-ret.rs diff --git a/src/test/ui/never_type/fallback-closure-wrap.fallback.stderr b/tests/ui/never_type/fallback-closure-wrap.fallback.stderr similarity index 100% rename from src/test/ui/never_type/fallback-closure-wrap.fallback.stderr rename to tests/ui/never_type/fallback-closure-wrap.fallback.stderr diff --git a/src/test/ui/never_type/fallback-closure-wrap.rs b/tests/ui/never_type/fallback-closure-wrap.rs similarity index 100% rename from src/test/ui/never_type/fallback-closure-wrap.rs rename to tests/ui/never_type/fallback-closure-wrap.rs diff --git a/src/test/ui/never_type/feature-gate-never_type_fallback.rs b/tests/ui/never_type/feature-gate-never_type_fallback.rs similarity index 100% rename from src/test/ui/never_type/feature-gate-never_type_fallback.rs rename to tests/ui/never_type/feature-gate-never_type_fallback.rs diff --git a/src/test/ui/never_type/feature-gate-never_type_fallback.stderr b/tests/ui/never_type/feature-gate-never_type_fallback.stderr similarity index 100% rename from src/test/ui/never_type/feature-gate-never_type_fallback.stderr rename to tests/ui/never_type/feature-gate-never_type_fallback.stderr diff --git a/src/test/ui/never_type/impl-for-never.rs b/tests/ui/never_type/impl-for-never.rs similarity index 100% rename from src/test/ui/never_type/impl-for-never.rs rename to tests/ui/never_type/impl-for-never.rs diff --git a/src/test/ui/never_type/impl_trait_fallback.rs b/tests/ui/never_type/impl_trait_fallback.rs similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback.rs rename to tests/ui/never_type/impl_trait_fallback.rs diff --git a/src/test/ui/never_type/impl_trait_fallback2.rs b/tests/ui/never_type/impl_trait_fallback2.rs similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback2.rs rename to tests/ui/never_type/impl_trait_fallback2.rs diff --git a/src/test/ui/never_type/impl_trait_fallback2.stderr b/tests/ui/never_type/impl_trait_fallback2.stderr similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback2.stderr rename to tests/ui/never_type/impl_trait_fallback2.stderr diff --git a/src/test/ui/never_type/impl_trait_fallback3.rs b/tests/ui/never_type/impl_trait_fallback3.rs similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback3.rs rename to tests/ui/never_type/impl_trait_fallback3.rs diff --git a/src/test/ui/never_type/impl_trait_fallback3.stderr b/tests/ui/never_type/impl_trait_fallback3.stderr similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback3.stderr rename to tests/ui/never_type/impl_trait_fallback3.stderr diff --git a/src/test/ui/never_type/impl_trait_fallback4.rs b/tests/ui/never_type/impl_trait_fallback4.rs similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback4.rs rename to tests/ui/never_type/impl_trait_fallback4.rs diff --git a/src/test/ui/never_type/impl_trait_fallback4.stderr b/tests/ui/never_type/impl_trait_fallback4.stderr similarity index 100% rename from src/test/ui/never_type/impl_trait_fallback4.stderr rename to tests/ui/never_type/impl_trait_fallback4.stderr diff --git a/src/test/ui/never_type/issue-10176.rs b/tests/ui/never_type/issue-10176.rs similarity index 100% rename from src/test/ui/never_type/issue-10176.rs rename to tests/ui/never_type/issue-10176.rs diff --git a/src/test/ui/never_type/issue-10176.stderr b/tests/ui/never_type/issue-10176.stderr similarity index 100% rename from src/test/ui/never_type/issue-10176.stderr rename to tests/ui/never_type/issue-10176.stderr diff --git a/src/test/ui/never_type/issue-13352.rs b/tests/ui/never_type/issue-13352.rs similarity index 100% rename from src/test/ui/never_type/issue-13352.rs rename to tests/ui/never_type/issue-13352.rs diff --git a/src/test/ui/never_type/issue-13352.stderr b/tests/ui/never_type/issue-13352.stderr similarity index 100% rename from src/test/ui/never_type/issue-13352.stderr rename to tests/ui/never_type/issue-13352.stderr diff --git a/src/test/ui/never_type/issue-2149.rs b/tests/ui/never_type/issue-2149.rs similarity index 100% rename from src/test/ui/never_type/issue-2149.rs rename to tests/ui/never_type/issue-2149.rs diff --git a/src/test/ui/never_type/issue-2149.stderr b/tests/ui/never_type/issue-2149.stderr similarity index 100% rename from src/test/ui/never_type/issue-2149.stderr rename to tests/ui/never_type/issue-2149.stderr diff --git a/src/test/ui/never_type/issue-44402.rs b/tests/ui/never_type/issue-44402.rs similarity index 100% rename from src/test/ui/never_type/issue-44402.rs rename to tests/ui/never_type/issue-44402.rs diff --git a/src/test/ui/never_type/issue-51506.rs b/tests/ui/never_type/issue-51506.rs similarity index 100% rename from src/test/ui/never_type/issue-51506.rs rename to tests/ui/never_type/issue-51506.rs diff --git a/src/test/ui/never_type/issue-51506.stderr b/tests/ui/never_type/issue-51506.stderr similarity index 100% rename from src/test/ui/never_type/issue-51506.stderr rename to tests/ui/never_type/issue-51506.stderr diff --git a/src/test/ui/never_type/issue-52443.rs b/tests/ui/never_type/issue-52443.rs similarity index 100% rename from src/test/ui/never_type/issue-52443.rs rename to tests/ui/never_type/issue-52443.rs diff --git a/src/test/ui/never_type/issue-52443.stderr b/tests/ui/never_type/issue-52443.stderr similarity index 100% rename from src/test/ui/never_type/issue-52443.stderr rename to tests/ui/never_type/issue-52443.stderr diff --git a/src/test/ui/never_type/issue-5500-1.rs b/tests/ui/never_type/issue-5500-1.rs similarity index 100% rename from src/test/ui/never_type/issue-5500-1.rs rename to tests/ui/never_type/issue-5500-1.rs diff --git a/src/test/ui/never_type/issue-96335.rs b/tests/ui/never_type/issue-96335.rs similarity index 100% rename from src/test/ui/never_type/issue-96335.rs rename to tests/ui/never_type/issue-96335.rs diff --git a/src/test/ui/never_type/issue-96335.stderr b/tests/ui/never_type/issue-96335.stderr similarity index 100% rename from src/test/ui/never_type/issue-96335.stderr rename to tests/ui/never_type/issue-96335.stderr diff --git a/src/test/ui/never_type/never-assign-dead-code.rs b/tests/ui/never_type/never-assign-dead-code.rs similarity index 100% rename from src/test/ui/never_type/never-assign-dead-code.rs rename to tests/ui/never_type/never-assign-dead-code.rs diff --git a/src/test/ui/never_type/never-assign-dead-code.stderr b/tests/ui/never_type/never-assign-dead-code.stderr similarity index 100% rename from src/test/ui/never_type/never-assign-dead-code.stderr rename to tests/ui/never_type/never-assign-dead-code.stderr diff --git a/src/test/ui/never_type/never-assign-wrong-type.rs b/tests/ui/never_type/never-assign-wrong-type.rs similarity index 100% rename from src/test/ui/never_type/never-assign-wrong-type.rs rename to tests/ui/never_type/never-assign-wrong-type.rs diff --git a/src/test/ui/never_type/never-assign-wrong-type.stderr b/tests/ui/never_type/never-assign-wrong-type.stderr similarity index 100% rename from src/test/ui/never_type/never-assign-wrong-type.stderr rename to tests/ui/never_type/never-assign-wrong-type.stderr diff --git a/src/test/ui/never_type/never-associated-type.rs b/tests/ui/never_type/never-associated-type.rs similarity index 100% rename from src/test/ui/never_type/never-associated-type.rs rename to tests/ui/never_type/never-associated-type.rs diff --git a/src/test/ui/never_type/never-from-impl-is-reserved.rs b/tests/ui/never_type/never-from-impl-is-reserved.rs similarity index 100% rename from src/test/ui/never_type/never-from-impl-is-reserved.rs rename to tests/ui/never_type/never-from-impl-is-reserved.rs diff --git a/src/test/ui/never_type/never-from-impl-is-reserved.stderr b/tests/ui/never_type/never-from-impl-is-reserved.stderr similarity index 100% rename from src/test/ui/never_type/never-from-impl-is-reserved.stderr rename to tests/ui/never_type/never-from-impl-is-reserved.stderr diff --git a/src/test/ui/never_type/never-result.rs b/tests/ui/never_type/never-result.rs similarity index 100% rename from src/test/ui/never_type/never-result.rs rename to tests/ui/never_type/never-result.rs diff --git a/src/test/ui/never_type/never-type-arg.rs b/tests/ui/never_type/never-type-arg.rs similarity index 100% rename from src/test/ui/never_type/never-type-arg.rs rename to tests/ui/never_type/never-type-arg.rs diff --git a/src/test/ui/never_type/never-type-rvalues.rs b/tests/ui/never_type/never-type-rvalues.rs similarity index 100% rename from src/test/ui/never_type/never-type-rvalues.rs rename to tests/ui/never_type/never-type-rvalues.rs diff --git a/src/test/ui/never_type/never-value-fallback-issue-66757.nofallback.stderr b/tests/ui/never_type/never-value-fallback-issue-66757.nofallback.stderr similarity index 100% rename from src/test/ui/never_type/never-value-fallback-issue-66757.nofallback.stderr rename to tests/ui/never_type/never-value-fallback-issue-66757.nofallback.stderr diff --git a/src/test/ui/never_type/never-value-fallback-issue-66757.rs b/tests/ui/never_type/never-value-fallback-issue-66757.rs similarity index 100% rename from src/test/ui/never_type/never-value-fallback-issue-66757.rs rename to tests/ui/never_type/never-value-fallback-issue-66757.rs diff --git a/src/test/ui/never_type/never_coercions.rs b/tests/ui/never_type/never_coercions.rs similarity index 100% rename from src/test/ui/never_type/never_coercions.rs rename to tests/ui/never_type/never_coercions.rs diff --git a/src/test/ui/never_type/never_transmute_never.rs b/tests/ui/never_type/never_transmute_never.rs similarity index 100% rename from src/test/ui/never_type/never_transmute_never.rs rename to tests/ui/never_type/never_transmute_never.rs diff --git a/src/test/ui/never_type/return-never-coerce.rs b/tests/ui/never_type/return-never-coerce.rs similarity index 100% rename from src/test/ui/never_type/return-never-coerce.rs rename to tests/ui/never_type/return-never-coerce.rs diff --git a/src/test/ui/never_type/try_from.rs b/tests/ui/never_type/try_from.rs similarity index 100% rename from src/test/ui/never_type/try_from.rs rename to tests/ui/never_type/try_from.rs diff --git a/src/test/ui/new-impl-syntax.rs b/tests/ui/new-impl-syntax.rs similarity index 100% rename from src/test/ui/new-impl-syntax.rs rename to tests/ui/new-impl-syntax.rs diff --git a/src/test/ui/new-import-syntax.rs b/tests/ui/new-import-syntax.rs similarity index 100% rename from src/test/ui/new-import-syntax.rs rename to tests/ui/new-import-syntax.rs diff --git a/src/test/ui/new-style-constants.rs b/tests/ui/new-style-constants.rs similarity index 100% rename from src/test/ui/new-style-constants.rs rename to tests/ui/new-style-constants.rs diff --git a/src/test/ui/new-unicode-escapes.rs b/tests/ui/new-unicode-escapes.rs similarity index 100% rename from src/test/ui/new-unicode-escapes.rs rename to tests/ui/new-unicode-escapes.rs diff --git a/src/test/ui/new-unsafe-pointers.rs b/tests/ui/new-unsafe-pointers.rs similarity index 100% rename from src/test/ui/new-unsafe-pointers.rs rename to tests/ui/new-unsafe-pointers.rs diff --git a/src/test/ui/newlambdas.rs b/tests/ui/newlambdas.rs similarity index 100% rename from src/test/ui/newlambdas.rs rename to tests/ui/newlambdas.rs diff --git a/src/test/ui/newtype-polymorphic.rs b/tests/ui/newtype-polymorphic.rs similarity index 100% rename from src/test/ui/newtype-polymorphic.rs rename to tests/ui/newtype-polymorphic.rs diff --git a/src/test/ui/newtype.rs b/tests/ui/newtype.rs similarity index 100% rename from src/test/ui/newtype.rs rename to tests/ui/newtype.rs diff --git a/src/test/ui/nll/assign-while-to-immutable.rs b/tests/ui/nll/assign-while-to-immutable.rs similarity index 100% rename from src/test/ui/nll/assign-while-to-immutable.rs rename to tests/ui/nll/assign-while-to-immutable.rs diff --git a/src/test/ui/nll/borrow-use-issue-46875.rs b/tests/ui/nll/borrow-use-issue-46875.rs similarity index 100% rename from src/test/ui/nll/borrow-use-issue-46875.rs rename to tests/ui/nll/borrow-use-issue-46875.rs diff --git a/src/test/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.rs b/tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.rs similarity index 100% rename from src/test/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.rs rename to tests/ui/nll/borrowck-thread-local-static-mut-borrow-outlives-fn.rs diff --git a/src/test/ui/nll/borrowed-local-error.rs b/tests/ui/nll/borrowed-local-error.rs similarity index 100% rename from src/test/ui/nll/borrowed-local-error.rs rename to tests/ui/nll/borrowed-local-error.rs diff --git a/src/test/ui/nll/borrowed-local-error.stderr b/tests/ui/nll/borrowed-local-error.stderr similarity index 100% rename from src/test/ui/nll/borrowed-local-error.stderr rename to tests/ui/nll/borrowed-local-error.stderr diff --git a/src/test/ui/nll/borrowed-match-issue-45045.rs b/tests/ui/nll/borrowed-match-issue-45045.rs similarity index 100% rename from src/test/ui/nll/borrowed-match-issue-45045.rs rename to tests/ui/nll/borrowed-match-issue-45045.rs diff --git a/src/test/ui/nll/borrowed-match-issue-45045.stderr b/tests/ui/nll/borrowed-match-issue-45045.stderr similarity index 100% rename from src/test/ui/nll/borrowed-match-issue-45045.stderr rename to tests/ui/nll/borrowed-match-issue-45045.stderr diff --git a/src/test/ui/nll/borrowed-referent-issue-38899.rs b/tests/ui/nll/borrowed-referent-issue-38899.rs similarity index 100% rename from src/test/ui/nll/borrowed-referent-issue-38899.rs rename to tests/ui/nll/borrowed-referent-issue-38899.rs diff --git a/src/test/ui/nll/borrowed-referent-issue-38899.stderr b/tests/ui/nll/borrowed-referent-issue-38899.stderr similarity index 100% rename from src/test/ui/nll/borrowed-referent-issue-38899.stderr rename to tests/ui/nll/borrowed-referent-issue-38899.stderr diff --git a/src/test/ui/nll/borrowed-temporary-error.rs b/tests/ui/nll/borrowed-temporary-error.rs similarity index 100% rename from src/test/ui/nll/borrowed-temporary-error.rs rename to tests/ui/nll/borrowed-temporary-error.rs diff --git a/src/test/ui/nll/borrowed-temporary-error.stderr b/tests/ui/nll/borrowed-temporary-error.stderr similarity index 100% rename from src/test/ui/nll/borrowed-temporary-error.stderr rename to tests/ui/nll/borrowed-temporary-error.stderr diff --git a/src/test/ui/nll/borrowed-universal-error-2.rs b/tests/ui/nll/borrowed-universal-error-2.rs similarity index 100% rename from src/test/ui/nll/borrowed-universal-error-2.rs rename to tests/ui/nll/borrowed-universal-error-2.rs diff --git a/src/test/ui/nll/borrowed-universal-error-2.stderr b/tests/ui/nll/borrowed-universal-error-2.stderr similarity index 100% rename from src/test/ui/nll/borrowed-universal-error-2.stderr rename to tests/ui/nll/borrowed-universal-error-2.stderr diff --git a/src/test/ui/nll/borrowed-universal-error.rs b/tests/ui/nll/borrowed-universal-error.rs similarity index 100% rename from src/test/ui/nll/borrowed-universal-error.rs rename to tests/ui/nll/borrowed-universal-error.rs diff --git a/src/test/ui/nll/borrowed-universal-error.stderr b/tests/ui/nll/borrowed-universal-error.stderr similarity index 100% rename from src/test/ui/nll/borrowed-universal-error.stderr rename to tests/ui/nll/borrowed-universal-error.stderr diff --git a/src/test/ui/nll/cannot-move-block-spans.rs b/tests/ui/nll/cannot-move-block-spans.rs similarity index 100% rename from src/test/ui/nll/cannot-move-block-spans.rs rename to tests/ui/nll/cannot-move-block-spans.rs diff --git a/src/test/ui/nll/cannot-move-block-spans.stderr b/tests/ui/nll/cannot-move-block-spans.stderr similarity index 100% rename from src/test/ui/nll/cannot-move-block-spans.stderr rename to tests/ui/nll/cannot-move-block-spans.stderr diff --git a/src/test/ui/nll/capture-mut-ref.fixed b/tests/ui/nll/capture-mut-ref.fixed similarity index 100% rename from src/test/ui/nll/capture-mut-ref.fixed rename to tests/ui/nll/capture-mut-ref.fixed diff --git a/src/test/ui/nll/capture-mut-ref.rs b/tests/ui/nll/capture-mut-ref.rs similarity index 100% rename from src/test/ui/nll/capture-mut-ref.rs rename to tests/ui/nll/capture-mut-ref.rs diff --git a/src/test/ui/nll/capture-mut-ref.stderr b/tests/ui/nll/capture-mut-ref.stderr similarity index 100% rename from src/test/ui/nll/capture-mut-ref.stderr rename to tests/ui/nll/capture-mut-ref.stderr diff --git a/src/test/ui/nll/capture-ref-in-struct.rs b/tests/ui/nll/capture-ref-in-struct.rs similarity index 100% rename from src/test/ui/nll/capture-ref-in-struct.rs rename to tests/ui/nll/capture-ref-in-struct.rs diff --git a/src/test/ui/nll/capture-ref-in-struct.stderr b/tests/ui/nll/capture-ref-in-struct.stderr similarity index 100% rename from src/test/ui/nll/capture-ref-in-struct.stderr rename to tests/ui/nll/capture-ref-in-struct.stderr diff --git a/src/test/ui/nll/closure-access-spans.rs b/tests/ui/nll/closure-access-spans.rs similarity index 100% rename from src/test/ui/nll/closure-access-spans.rs rename to tests/ui/nll/closure-access-spans.rs diff --git a/src/test/ui/nll/closure-access-spans.stderr b/tests/ui/nll/closure-access-spans.stderr similarity index 100% rename from src/test/ui/nll/closure-access-spans.stderr rename to tests/ui/nll/closure-access-spans.stderr diff --git a/src/test/ui/nll/closure-borrow-spans.rs b/tests/ui/nll/closure-borrow-spans.rs similarity index 100% rename from src/test/ui/nll/closure-borrow-spans.rs rename to tests/ui/nll/closure-borrow-spans.rs diff --git a/src/test/ui/nll/closure-borrow-spans.stderr b/tests/ui/nll/closure-borrow-spans.stderr similarity index 100% rename from src/test/ui/nll/closure-borrow-spans.stderr rename to tests/ui/nll/closure-borrow-spans.stderr diff --git a/src/test/ui/nll/closure-captures.rs b/tests/ui/nll/closure-captures.rs similarity index 100% rename from src/test/ui/nll/closure-captures.rs rename to tests/ui/nll/closure-captures.rs diff --git a/src/test/ui/nll/closure-captures.stderr b/tests/ui/nll/closure-captures.stderr similarity index 100% rename from src/test/ui/nll/closure-captures.stderr rename to tests/ui/nll/closure-captures.stderr diff --git a/src/test/ui/nll/closure-malformed-projection-input-issue-102800.rs b/tests/ui/nll/closure-malformed-projection-input-issue-102800.rs similarity index 100% rename from src/test/ui/nll/closure-malformed-projection-input-issue-102800.rs rename to tests/ui/nll/closure-malformed-projection-input-issue-102800.rs diff --git a/src/test/ui/nll/closure-malformed-projection-input-issue-102800.stderr b/tests/ui/nll/closure-malformed-projection-input-issue-102800.stderr similarity index 100% rename from src/test/ui/nll/closure-malformed-projection-input-issue-102800.stderr rename to tests/ui/nll/closure-malformed-projection-input-issue-102800.stderr diff --git a/src/test/ui/nll/closure-move-spans.rs b/tests/ui/nll/closure-move-spans.rs similarity index 100% rename from src/test/ui/nll/closure-move-spans.rs rename to tests/ui/nll/closure-move-spans.rs diff --git a/src/test/ui/nll/closure-move-spans.stderr b/tests/ui/nll/closure-move-spans.stderr similarity index 100% rename from src/test/ui/nll/closure-move-spans.stderr rename to tests/ui/nll/closure-move-spans.stderr diff --git a/src/test/ui/nll/closure-requirements/escape-argument-callee.rs b/tests/ui/nll/closure-requirements/escape-argument-callee.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-argument-callee.rs rename to tests/ui/nll/closure-requirements/escape-argument-callee.rs diff --git a/src/test/ui/nll/closure-requirements/escape-argument-callee.stderr b/tests/ui/nll/closure-requirements/escape-argument-callee.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-argument-callee.stderr rename to tests/ui/nll/closure-requirements/escape-argument-callee.stderr diff --git a/src/test/ui/nll/closure-requirements/escape-argument.rs b/tests/ui/nll/closure-requirements/escape-argument.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-argument.rs rename to tests/ui/nll/closure-requirements/escape-argument.rs diff --git a/src/test/ui/nll/closure-requirements/escape-argument.stderr b/tests/ui/nll/closure-requirements/escape-argument.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-argument.stderr rename to tests/ui/nll/closure-requirements/escape-argument.stderr diff --git a/src/test/ui/nll/closure-requirements/escape-upvar-nested.rs b/tests/ui/nll/closure-requirements/escape-upvar-nested.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-upvar-nested.rs rename to tests/ui/nll/closure-requirements/escape-upvar-nested.rs diff --git a/src/test/ui/nll/closure-requirements/escape-upvar-nested.stderr b/tests/ui/nll/closure-requirements/escape-upvar-nested.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-upvar-nested.stderr rename to tests/ui/nll/closure-requirements/escape-upvar-nested.stderr diff --git a/src/test/ui/nll/closure-requirements/escape-upvar-ref.rs b/tests/ui/nll/closure-requirements/escape-upvar-ref.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-upvar-ref.rs rename to tests/ui/nll/closure-requirements/escape-upvar-ref.rs diff --git a/src/test/ui/nll/closure-requirements/escape-upvar-ref.stderr b/tests/ui/nll/closure-requirements/escape-upvar-ref.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/escape-upvar-ref.stderr rename to tests/ui/nll/closure-requirements/escape-upvar-ref.stderr diff --git a/src/test/ui/nll/closure-requirements/issue-58127-mutliple-requirements.rs b/tests/ui/nll/closure-requirements/issue-58127-mutliple-requirements.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/issue-58127-mutliple-requirements.rs rename to tests/ui/nll/closure-requirements/issue-58127-mutliple-requirements.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.rs b/tests/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.rs rename to tests/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.stderr b/tests/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.stderr rename to tests/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-ref.rs b/tests/ui/nll/closure-requirements/propagate-approximated-ref.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-ref.rs rename to tests/ui/nll/closure-requirements/propagate-approximated-ref.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-ref.stderr b/tests/ui/nll/closure-requirements/propagate-approximated-ref.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-ref.stderr rename to tests/ui/nll/closure-requirements/propagate-approximated-ref.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.rs b/tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.rs rename to tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.stderr b/tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.stderr rename to tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs b/tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs rename to tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr b/tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr rename to tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs b/tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs rename to tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr b/tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr rename to tests/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-val.rs b/tests/ui/nll/closure-requirements/propagate-approximated-val.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-val.rs rename to tests/ui/nll/closure-requirements/propagate-approximated-val.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-approximated-val.stderr b/tests/ui/nll/closure-requirements/propagate-approximated-val.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-approximated-val.stderr rename to tests/ui/nll/closure-requirements/propagate-approximated-val.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs b/tests/ui/nll/closure-requirements/propagate-despite-same-free-region.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs rename to tests/ui/nll/closure-requirements/propagate-despite-same-free-region.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr b/tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr rename to tests/ui/nll/closure-requirements/propagate-despite-same-free-region.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.rs b/tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.rs rename to tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.stderr b/tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.stderr rename to tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.rs b/tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.rs rename to tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.stderr b/tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.stderr rename to tests/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-wrong-bounds.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-from-trait-match.rs b/tests/ui/nll/closure-requirements/propagate-from-trait-match.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-from-trait-match.rs rename to tests/ui/nll/closure-requirements/propagate-from-trait-match.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-from-trait-match.stderr b/tests/ui/nll/closure-requirements/propagate-from-trait-match.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-from-trait-match.stderr rename to tests/ui/nll/closure-requirements/propagate-from-trait-match.stderr diff --git a/src/test/ui/nll/closure-requirements/propagate-multiple-requirements.rs b/tests/ui/nll/closure-requirements/propagate-multiple-requirements.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-multiple-requirements.rs rename to tests/ui/nll/closure-requirements/propagate-multiple-requirements.rs diff --git a/src/test/ui/nll/closure-requirements/propagate-multiple-requirements.stderr b/tests/ui/nll/closure-requirements/propagate-multiple-requirements.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/propagate-multiple-requirements.stderr rename to tests/ui/nll/closure-requirements/propagate-multiple-requirements.stderr diff --git a/src/test/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.rs b/tests/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.rs rename to tests/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.rs diff --git a/src/test/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.stderr b/tests/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.stderr rename to tests/ui/nll/closure-requirements/region-lbr-anon-does-not-outlive-static.stderr diff --git a/src/test/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.rs b/tests/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.rs rename to tests/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.rs diff --git a/src/test/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.stderr b/tests/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.stderr rename to tests/ui/nll/closure-requirements/region-lbr-named-does-not-outlive-static.stderr diff --git a/src/test/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.rs b/tests/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.rs rename to tests/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.rs diff --git a/src/test/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.stderr b/tests/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.stderr rename to tests/ui/nll/closure-requirements/region-lbr1-does-not-outlive-ebr2.stderr diff --git a/src/test/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs b/tests/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs rename to tests/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs diff --git a/src/test/ui/nll/closure-requirements/return-wrong-bound-region.rs b/tests/ui/nll/closure-requirements/return-wrong-bound-region.rs similarity index 100% rename from src/test/ui/nll/closure-requirements/return-wrong-bound-region.rs rename to tests/ui/nll/closure-requirements/return-wrong-bound-region.rs diff --git a/src/test/ui/nll/closure-requirements/return-wrong-bound-region.stderr b/tests/ui/nll/closure-requirements/return-wrong-bound-region.stderr similarity index 100% rename from src/test/ui/nll/closure-requirements/return-wrong-bound-region.stderr rename to tests/ui/nll/closure-requirements/return-wrong-bound-region.stderr diff --git a/src/test/ui/nll/closure-use-spans.rs b/tests/ui/nll/closure-use-spans.rs similarity index 100% rename from src/test/ui/nll/closure-use-spans.rs rename to tests/ui/nll/closure-use-spans.rs diff --git a/src/test/ui/nll/closure-use-spans.stderr b/tests/ui/nll/closure-use-spans.stderr similarity index 100% rename from src/test/ui/nll/closure-use-spans.stderr rename to tests/ui/nll/closure-use-spans.stderr diff --git a/src/test/ui/nll/closures-in-loops.rs b/tests/ui/nll/closures-in-loops.rs similarity index 100% rename from src/test/ui/nll/closures-in-loops.rs rename to tests/ui/nll/closures-in-loops.rs diff --git a/src/test/ui/nll/closures-in-loops.stderr b/tests/ui/nll/closures-in-loops.stderr similarity index 100% rename from src/test/ui/nll/closures-in-loops.stderr rename to tests/ui/nll/closures-in-loops.stderr diff --git a/src/test/ui/nll/constant-thread-locals-issue-47053.rs b/tests/ui/nll/constant-thread-locals-issue-47053.rs similarity index 100% rename from src/test/ui/nll/constant-thread-locals-issue-47053.rs rename to tests/ui/nll/constant-thread-locals-issue-47053.rs diff --git a/src/test/ui/nll/constant-thread-locals-issue-47053.stderr b/tests/ui/nll/constant-thread-locals-issue-47053.stderr similarity index 100% rename from src/test/ui/nll/constant-thread-locals-issue-47053.stderr rename to tests/ui/nll/constant-thread-locals-issue-47053.stderr diff --git a/src/test/ui/nll/constant.rs b/tests/ui/nll/constant.rs similarity index 100% rename from src/test/ui/nll/constant.rs rename to tests/ui/nll/constant.rs diff --git a/src/test/ui/nll/continue-after-missing-main.rs b/tests/ui/nll/continue-after-missing-main.rs similarity index 100% rename from src/test/ui/nll/continue-after-missing-main.rs rename to tests/ui/nll/continue-after-missing-main.rs diff --git a/src/test/ui/nll/continue-after-missing-main.stderr b/tests/ui/nll/continue-after-missing-main.stderr similarity index 100% rename from src/test/ui/nll/continue-after-missing-main.stderr rename to tests/ui/nll/continue-after-missing-main.stderr diff --git a/src/test/ui/nll/decl-macro-illegal-copy.rs b/tests/ui/nll/decl-macro-illegal-copy.rs similarity index 100% rename from src/test/ui/nll/decl-macro-illegal-copy.rs rename to tests/ui/nll/decl-macro-illegal-copy.rs diff --git a/src/test/ui/nll/decl-macro-illegal-copy.stderr b/tests/ui/nll/decl-macro-illegal-copy.stderr similarity index 100% rename from src/test/ui/nll/decl-macro-illegal-copy.stderr rename to tests/ui/nll/decl-macro-illegal-copy.stderr diff --git a/src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.rs b/tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.rs similarity index 100% rename from src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.rs rename to tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.rs diff --git a/src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.stderr b/tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.stderr similarity index 100% rename from src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.stderr rename to tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy-proj.stderr diff --git a/src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy.rs b/tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy.rs similarity index 100% rename from src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy.rs rename to tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy.rs diff --git a/src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy.stderr b/tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy.stderr similarity index 100% rename from src/test/ui/nll/do-not-ignore-lifetime-bounds-in-copy.stderr rename to tests/ui/nll/do-not-ignore-lifetime-bounds-in-copy.stderr diff --git a/src/test/ui/nll/dont-print-desugared.rs b/tests/ui/nll/dont-print-desugared.rs similarity index 100% rename from src/test/ui/nll/dont-print-desugared.rs rename to tests/ui/nll/dont-print-desugared.rs diff --git a/src/test/ui/nll/dont-print-desugared.stderr b/tests/ui/nll/dont-print-desugared.stderr similarity index 100% rename from src/test/ui/nll/dont-print-desugared.stderr rename to tests/ui/nll/dont-print-desugared.stderr diff --git a/src/test/ui/nll/drop-may-dangle.rs b/tests/ui/nll/drop-may-dangle.rs similarity index 100% rename from src/test/ui/nll/drop-may-dangle.rs rename to tests/ui/nll/drop-may-dangle.rs diff --git a/src/test/ui/nll/drop-no-may-dangle.rs b/tests/ui/nll/drop-no-may-dangle.rs similarity index 100% rename from src/test/ui/nll/drop-no-may-dangle.rs rename to tests/ui/nll/drop-no-may-dangle.rs diff --git a/src/test/ui/nll/drop-no-may-dangle.stderr b/tests/ui/nll/drop-no-may-dangle.stderr similarity index 100% rename from src/test/ui/nll/drop-no-may-dangle.stderr rename to tests/ui/nll/drop-no-may-dangle.stderr diff --git a/src/test/ui/nll/empty-type-predicate-2.rs b/tests/ui/nll/empty-type-predicate-2.rs similarity index 100% rename from src/test/ui/nll/empty-type-predicate-2.rs rename to tests/ui/nll/empty-type-predicate-2.rs diff --git a/src/test/ui/nll/empty-type-predicate.rs b/tests/ui/nll/empty-type-predicate.rs similarity index 100% rename from src/test/ui/nll/empty-type-predicate.rs rename to tests/ui/nll/empty-type-predicate.rs diff --git a/src/test/ui/nll/enum-drop-access.rs b/tests/ui/nll/enum-drop-access.rs similarity index 100% rename from src/test/ui/nll/enum-drop-access.rs rename to tests/ui/nll/enum-drop-access.rs diff --git a/src/test/ui/nll/enum-drop-access.stderr b/tests/ui/nll/enum-drop-access.stderr similarity index 100% rename from src/test/ui/nll/enum-drop-access.stderr rename to tests/ui/nll/enum-drop-access.stderr diff --git a/src/test/ui/nll/extra-unused-mut.rs b/tests/ui/nll/extra-unused-mut.rs similarity index 100% rename from src/test/ui/nll/extra-unused-mut.rs rename to tests/ui/nll/extra-unused-mut.rs diff --git a/src/test/ui/nll/generator-distinct-lifetime.rs b/tests/ui/nll/generator-distinct-lifetime.rs similarity index 100% rename from src/test/ui/nll/generator-distinct-lifetime.rs rename to tests/ui/nll/generator-distinct-lifetime.rs diff --git a/src/test/ui/nll/generator-upvar-mutability.rs b/tests/ui/nll/generator-upvar-mutability.rs similarity index 100% rename from src/test/ui/nll/generator-upvar-mutability.rs rename to tests/ui/nll/generator-upvar-mutability.rs diff --git a/src/test/ui/nll/generator-upvar-mutability.stderr b/tests/ui/nll/generator-upvar-mutability.stderr similarity index 100% rename from src/test/ui/nll/generator-upvar-mutability.stderr rename to tests/ui/nll/generator-upvar-mutability.stderr diff --git a/src/test/ui/nll/get_default.polonius.stderr b/tests/ui/nll/get_default.polonius.stderr similarity index 100% rename from src/test/ui/nll/get_default.polonius.stderr rename to tests/ui/nll/get_default.polonius.stderr diff --git a/src/test/ui/nll/get_default.rs b/tests/ui/nll/get_default.rs similarity index 100% rename from src/test/ui/nll/get_default.rs rename to tests/ui/nll/get_default.rs diff --git a/src/test/ui/nll/get_default.stderr b/tests/ui/nll/get_default.stderr similarity index 100% rename from src/test/ui/nll/get_default.stderr rename to tests/ui/nll/get_default.stderr diff --git a/src/test/ui/nll/guarantor-issue-46974.rs b/tests/ui/nll/guarantor-issue-46974.rs similarity index 100% rename from src/test/ui/nll/guarantor-issue-46974.rs rename to tests/ui/nll/guarantor-issue-46974.rs diff --git a/src/test/ui/nll/guarantor-issue-46974.stderr b/tests/ui/nll/guarantor-issue-46974.stderr similarity index 100% rename from src/test/ui/nll/guarantor-issue-46974.stderr rename to tests/ui/nll/guarantor-issue-46974.stderr diff --git a/src/test/ui/nll/issue-16223.rs b/tests/ui/nll/issue-16223.rs similarity index 100% rename from src/test/ui/nll/issue-16223.rs rename to tests/ui/nll/issue-16223.rs diff --git a/src/test/ui/nll/issue-21114-ebfull.rs b/tests/ui/nll/issue-21114-ebfull.rs similarity index 100% rename from src/test/ui/nll/issue-21114-ebfull.rs rename to tests/ui/nll/issue-21114-ebfull.rs diff --git a/src/test/ui/nll/issue-21114-kixunil.rs b/tests/ui/nll/issue-21114-kixunil.rs similarity index 100% rename from src/test/ui/nll/issue-21114-kixunil.rs rename to tests/ui/nll/issue-21114-kixunil.rs diff --git a/src/test/ui/nll/issue-21232-partial-init-and-erroneous-use.rs b/tests/ui/nll/issue-21232-partial-init-and-erroneous-use.rs similarity index 100% rename from src/test/ui/nll/issue-21232-partial-init-and-erroneous-use.rs rename to tests/ui/nll/issue-21232-partial-init-and-erroneous-use.rs diff --git a/src/test/ui/nll/issue-21232-partial-init-and-erroneous-use.stderr b/tests/ui/nll/issue-21232-partial-init-and-erroneous-use.stderr similarity index 100% rename from src/test/ui/nll/issue-21232-partial-init-and-erroneous-use.stderr rename to tests/ui/nll/issue-21232-partial-init-and-erroneous-use.stderr diff --git a/src/test/ui/nll/issue-21232-partial-init-and-use.rs b/tests/ui/nll/issue-21232-partial-init-and-use.rs similarity index 100% rename from src/test/ui/nll/issue-21232-partial-init-and-use.rs rename to tests/ui/nll/issue-21232-partial-init-and-use.rs diff --git a/src/test/ui/nll/issue-21232-partial-init-and-use.stderr b/tests/ui/nll/issue-21232-partial-init-and-use.stderr similarity index 100% rename from src/test/ui/nll/issue-21232-partial-init-and-use.stderr rename to tests/ui/nll/issue-21232-partial-init-and-use.stderr diff --git a/src/test/ui/nll/issue-22323-temp-destruction.rs b/tests/ui/nll/issue-22323-temp-destruction.rs similarity index 100% rename from src/test/ui/nll/issue-22323-temp-destruction.rs rename to tests/ui/nll/issue-22323-temp-destruction.rs diff --git a/src/test/ui/nll/issue-24535-allow-mutable-borrow-in-match-guard.rs b/tests/ui/nll/issue-24535-allow-mutable-borrow-in-match-guard.rs similarity index 100% rename from src/test/ui/nll/issue-24535-allow-mutable-borrow-in-match-guard.rs rename to tests/ui/nll/issue-24535-allow-mutable-borrow-in-match-guard.rs diff --git a/src/test/ui/nll/issue-27282-move-match-input-into-guard.rs b/tests/ui/nll/issue-27282-move-match-input-into-guard.rs similarity index 100% rename from src/test/ui/nll/issue-27282-move-match-input-into-guard.rs rename to tests/ui/nll/issue-27282-move-match-input-into-guard.rs diff --git a/src/test/ui/nll/issue-27282-move-match-input-into-guard.stderr b/tests/ui/nll/issue-27282-move-match-input-into-guard.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-move-match-input-into-guard.stderr rename to tests/ui/nll/issue-27282-move-match-input-into-guard.stderr diff --git a/src/test/ui/nll/issue-27282-move-ref-mut-into-guard.rs b/tests/ui/nll/issue-27282-move-ref-mut-into-guard.rs similarity index 100% rename from src/test/ui/nll/issue-27282-move-ref-mut-into-guard.rs rename to tests/ui/nll/issue-27282-move-ref-mut-into-guard.rs diff --git a/src/test/ui/nll/issue-27282-move-ref-mut-into-guard.stderr b/tests/ui/nll/issue-27282-move-ref-mut-into-guard.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-move-ref-mut-into-guard.stderr rename to tests/ui/nll/issue-27282-move-ref-mut-into-guard.stderr diff --git a/src/test/ui/nll/issue-27282-mutate-before-diverging-arm-1.rs b/tests/ui/nll/issue-27282-mutate-before-diverging-arm-1.rs similarity index 100% rename from src/test/ui/nll/issue-27282-mutate-before-diverging-arm-1.rs rename to tests/ui/nll/issue-27282-mutate-before-diverging-arm-1.rs diff --git a/src/test/ui/nll/issue-27282-mutate-before-diverging-arm-1.stderr b/tests/ui/nll/issue-27282-mutate-before-diverging-arm-1.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-mutate-before-diverging-arm-1.stderr rename to tests/ui/nll/issue-27282-mutate-before-diverging-arm-1.stderr diff --git a/src/test/ui/nll/issue-27282-mutate-before-diverging-arm-2.rs b/tests/ui/nll/issue-27282-mutate-before-diverging-arm-2.rs similarity index 100% rename from src/test/ui/nll/issue-27282-mutate-before-diverging-arm-2.rs rename to tests/ui/nll/issue-27282-mutate-before-diverging-arm-2.rs diff --git a/src/test/ui/nll/issue-27282-mutate-before-diverging-arm-2.stderr b/tests/ui/nll/issue-27282-mutate-before-diverging-arm-2.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-mutate-before-diverging-arm-2.stderr rename to tests/ui/nll/issue-27282-mutate-before-diverging-arm-2.stderr diff --git a/src/test/ui/nll/issue-27282-mutate-before-diverging-arm-3.rs b/tests/ui/nll/issue-27282-mutate-before-diverging-arm-3.rs similarity index 100% rename from src/test/ui/nll/issue-27282-mutate-before-diverging-arm-3.rs rename to tests/ui/nll/issue-27282-mutate-before-diverging-arm-3.rs diff --git a/src/test/ui/nll/issue-27282-mutate-before-diverging-arm-3.stderr b/tests/ui/nll/issue-27282-mutate-before-diverging-arm-3.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-mutate-before-diverging-arm-3.stderr rename to tests/ui/nll/issue-27282-mutate-before-diverging-arm-3.stderr diff --git a/src/test/ui/nll/issue-27282-mutation-in-guard.rs b/tests/ui/nll/issue-27282-mutation-in-guard.rs similarity index 100% rename from src/test/ui/nll/issue-27282-mutation-in-guard.rs rename to tests/ui/nll/issue-27282-mutation-in-guard.rs diff --git a/src/test/ui/nll/issue-27282-mutation-in-guard.stderr b/tests/ui/nll/issue-27282-mutation-in-guard.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-mutation-in-guard.stderr rename to tests/ui/nll/issue-27282-mutation-in-guard.stderr diff --git a/src/test/ui/nll/issue-27282-reborrow-ref-mut-in-guard.rs b/tests/ui/nll/issue-27282-reborrow-ref-mut-in-guard.rs similarity index 100% rename from src/test/ui/nll/issue-27282-reborrow-ref-mut-in-guard.rs rename to tests/ui/nll/issue-27282-reborrow-ref-mut-in-guard.rs diff --git a/src/test/ui/nll/issue-27282-reborrow-ref-mut-in-guard.stderr b/tests/ui/nll/issue-27282-reborrow-ref-mut-in-guard.stderr similarity index 100% rename from src/test/ui/nll/issue-27282-reborrow-ref-mut-in-guard.stderr rename to tests/ui/nll/issue-27282-reborrow-ref-mut-in-guard.stderr diff --git a/src/test/ui/nll/issue-27868.rs b/tests/ui/nll/issue-27868.rs similarity index 100% rename from src/test/ui/nll/issue-27868.rs rename to tests/ui/nll/issue-27868.rs diff --git a/src/test/ui/nll/issue-27868.stderr b/tests/ui/nll/issue-27868.stderr similarity index 100% rename from src/test/ui/nll/issue-27868.stderr rename to tests/ui/nll/issue-27868.stderr diff --git a/src/test/ui/nll/issue-30104.rs b/tests/ui/nll/issue-30104.rs similarity index 100% rename from src/test/ui/nll/issue-30104.rs rename to tests/ui/nll/issue-30104.rs diff --git a/src/test/ui/nll/issue-31567.rs b/tests/ui/nll/issue-31567.rs similarity index 100% rename from src/test/ui/nll/issue-31567.rs rename to tests/ui/nll/issue-31567.rs diff --git a/src/test/ui/nll/issue-31567.stderr b/tests/ui/nll/issue-31567.stderr similarity index 100% rename from src/test/ui/nll/issue-31567.stderr rename to tests/ui/nll/issue-31567.stderr diff --git a/src/test/ui/nll/issue-32382-index-assoc-type-with-lifetime.rs b/tests/ui/nll/issue-32382-index-assoc-type-with-lifetime.rs similarity index 100% rename from src/test/ui/nll/issue-32382-index-assoc-type-with-lifetime.rs rename to tests/ui/nll/issue-32382-index-assoc-type-with-lifetime.rs diff --git a/src/test/ui/nll/issue-42574-diagnostic-in-nested-closure.rs b/tests/ui/nll/issue-42574-diagnostic-in-nested-closure.rs similarity index 100% rename from src/test/ui/nll/issue-42574-diagnostic-in-nested-closure.rs rename to tests/ui/nll/issue-42574-diagnostic-in-nested-closure.rs diff --git a/src/test/ui/nll/issue-42574-diagnostic-in-nested-closure.stderr b/tests/ui/nll/issue-42574-diagnostic-in-nested-closure.stderr similarity index 100% rename from src/test/ui/nll/issue-42574-diagnostic-in-nested-closure.stderr rename to tests/ui/nll/issue-42574-diagnostic-in-nested-closure.stderr diff --git a/src/test/ui/nll/issue-43058.rs b/tests/ui/nll/issue-43058.rs similarity index 100% rename from src/test/ui/nll/issue-43058.rs rename to tests/ui/nll/issue-43058.rs diff --git a/src/test/ui/nll/issue-45157.rs b/tests/ui/nll/issue-45157.rs similarity index 100% rename from src/test/ui/nll/issue-45157.rs rename to tests/ui/nll/issue-45157.rs diff --git a/src/test/ui/nll/issue-45157.stderr b/tests/ui/nll/issue-45157.stderr similarity index 100% rename from src/test/ui/nll/issue-45157.stderr rename to tests/ui/nll/issue-45157.stderr diff --git a/src/test/ui/nll/issue-45696-long-live-borrows-in-boxes.rs b/tests/ui/nll/issue-45696-long-live-borrows-in-boxes.rs similarity index 100% rename from src/test/ui/nll/issue-45696-long-live-borrows-in-boxes.rs rename to tests/ui/nll/issue-45696-long-live-borrows-in-boxes.rs diff --git a/src/test/ui/nll/issue-45696-no-variant-box-recur.rs b/tests/ui/nll/issue-45696-no-variant-box-recur.rs similarity index 100% rename from src/test/ui/nll/issue-45696-no-variant-box-recur.rs rename to tests/ui/nll/issue-45696-no-variant-box-recur.rs diff --git a/src/test/ui/nll/issue-45696-scribble-on-boxed-borrow.rs b/tests/ui/nll/issue-45696-scribble-on-boxed-borrow.rs similarity index 100% rename from src/test/ui/nll/issue-45696-scribble-on-boxed-borrow.rs rename to tests/ui/nll/issue-45696-scribble-on-boxed-borrow.rs diff --git a/src/test/ui/nll/issue-45696-scribble-on-boxed-borrow.stderr b/tests/ui/nll/issue-45696-scribble-on-boxed-borrow.stderr similarity index 100% rename from src/test/ui/nll/issue-45696-scribble-on-boxed-borrow.stderr rename to tests/ui/nll/issue-45696-scribble-on-boxed-borrow.stderr diff --git a/src/test/ui/nll/issue-46023.rs b/tests/ui/nll/issue-46023.rs similarity index 100% rename from src/test/ui/nll/issue-46023.rs rename to tests/ui/nll/issue-46023.rs diff --git a/src/test/ui/nll/issue-46023.stderr b/tests/ui/nll/issue-46023.stderr similarity index 100% rename from src/test/ui/nll/issue-46023.stderr rename to tests/ui/nll/issue-46023.stderr diff --git a/src/test/ui/nll/issue-46036.rs b/tests/ui/nll/issue-46036.rs similarity index 100% rename from src/test/ui/nll/issue-46036.rs rename to tests/ui/nll/issue-46036.rs diff --git a/src/test/ui/nll/issue-46036.stderr b/tests/ui/nll/issue-46036.stderr similarity index 100% rename from src/test/ui/nll/issue-46036.stderr rename to tests/ui/nll/issue-46036.stderr diff --git a/src/test/ui/nll/issue-46589.rs b/tests/ui/nll/issue-46589.rs similarity index 100% rename from src/test/ui/nll/issue-46589.rs rename to tests/ui/nll/issue-46589.rs diff --git a/src/test/ui/nll/issue-46589.stderr b/tests/ui/nll/issue-46589.stderr similarity index 100% rename from src/test/ui/nll/issue-46589.stderr rename to tests/ui/nll/issue-46589.stderr diff --git a/src/test/ui/nll/issue-47022.rs b/tests/ui/nll/issue-47022.rs similarity index 100% rename from src/test/ui/nll/issue-47022.rs rename to tests/ui/nll/issue-47022.rs diff --git a/src/test/ui/nll/issue-47153-generic-const.rs b/tests/ui/nll/issue-47153-generic-const.rs similarity index 100% rename from src/test/ui/nll/issue-47153-generic-const.rs rename to tests/ui/nll/issue-47153-generic-const.rs diff --git a/src/test/ui/nll/issue-47388.rs b/tests/ui/nll/issue-47388.rs similarity index 100% rename from src/test/ui/nll/issue-47388.rs rename to tests/ui/nll/issue-47388.rs diff --git a/src/test/ui/nll/issue-47388.stderr b/tests/ui/nll/issue-47388.stderr similarity index 100% rename from src/test/ui/nll/issue-47388.stderr rename to tests/ui/nll/issue-47388.stderr diff --git a/src/test/ui/nll/issue-47470.rs b/tests/ui/nll/issue-47470.rs similarity index 100% rename from src/test/ui/nll/issue-47470.rs rename to tests/ui/nll/issue-47470.rs diff --git a/src/test/ui/nll/issue-47470.stderr b/tests/ui/nll/issue-47470.stderr similarity index 100% rename from src/test/ui/nll/issue-47470.stderr rename to tests/ui/nll/issue-47470.stderr diff --git a/src/test/ui/nll/issue-47589.rs b/tests/ui/nll/issue-47589.rs similarity index 100% rename from src/test/ui/nll/issue-47589.rs rename to tests/ui/nll/issue-47589.rs diff --git a/src/test/ui/nll/issue-48070.rs b/tests/ui/nll/issue-48070.rs similarity index 100% rename from src/test/ui/nll/issue-48070.rs rename to tests/ui/nll/issue-48070.rs diff --git a/src/test/ui/nll/issue-48238.rs b/tests/ui/nll/issue-48238.rs similarity index 100% rename from src/test/ui/nll/issue-48238.rs rename to tests/ui/nll/issue-48238.rs diff --git a/src/test/ui/nll/issue-48238.stderr b/tests/ui/nll/issue-48238.stderr similarity index 100% rename from src/test/ui/nll/issue-48238.stderr rename to tests/ui/nll/issue-48238.stderr diff --git a/src/test/ui/nll/issue-48623-closure.rs b/tests/ui/nll/issue-48623-closure.rs similarity index 100% rename from src/test/ui/nll/issue-48623-closure.rs rename to tests/ui/nll/issue-48623-closure.rs diff --git a/src/test/ui/nll/issue-48623-generator.rs b/tests/ui/nll/issue-48623-generator.rs similarity index 100% rename from src/test/ui/nll/issue-48623-generator.rs rename to tests/ui/nll/issue-48623-generator.rs diff --git a/src/test/ui/nll/issue-48623-generator.stderr b/tests/ui/nll/issue-48623-generator.stderr similarity index 100% rename from src/test/ui/nll/issue-48623-generator.stderr rename to tests/ui/nll/issue-48623-generator.stderr diff --git a/src/test/ui/nll/issue-48697.rs b/tests/ui/nll/issue-48697.rs similarity index 100% rename from src/test/ui/nll/issue-48697.rs rename to tests/ui/nll/issue-48697.rs diff --git a/src/test/ui/nll/issue-48697.stderr b/tests/ui/nll/issue-48697.stderr similarity index 100% rename from src/test/ui/nll/issue-48697.stderr rename to tests/ui/nll/issue-48697.stderr diff --git a/src/test/ui/nll/issue-48803.rs b/tests/ui/nll/issue-48803.rs similarity index 100% rename from src/test/ui/nll/issue-48803.rs rename to tests/ui/nll/issue-48803.rs diff --git a/src/test/ui/nll/issue-48803.stderr b/tests/ui/nll/issue-48803.stderr similarity index 100% rename from src/test/ui/nll/issue-48803.stderr rename to tests/ui/nll/issue-48803.stderr diff --git a/src/test/ui/nll/issue-50343.rs b/tests/ui/nll/issue-50343.rs similarity index 100% rename from src/test/ui/nll/issue-50343.rs rename to tests/ui/nll/issue-50343.rs diff --git a/src/test/ui/nll/issue-50461-used-mut-from-moves.rs b/tests/ui/nll/issue-50461-used-mut-from-moves.rs similarity index 100% rename from src/test/ui/nll/issue-50461-used-mut-from-moves.rs rename to tests/ui/nll/issue-50461-used-mut-from-moves.rs diff --git a/src/test/ui/nll/issue-50716-1.rs b/tests/ui/nll/issue-50716-1.rs similarity index 100% rename from src/test/ui/nll/issue-50716-1.rs rename to tests/ui/nll/issue-50716-1.rs diff --git a/src/test/ui/nll/issue-50716.rs b/tests/ui/nll/issue-50716.rs similarity index 100% rename from src/test/ui/nll/issue-50716.rs rename to tests/ui/nll/issue-50716.rs diff --git a/src/test/ui/nll/issue-50716.stderr b/tests/ui/nll/issue-50716.stderr similarity index 100% rename from src/test/ui/nll/issue-50716.stderr rename to tests/ui/nll/issue-50716.stderr diff --git a/src/test/ui/nll/issue-51191.rs b/tests/ui/nll/issue-51191.rs similarity index 100% rename from src/test/ui/nll/issue-51191.rs rename to tests/ui/nll/issue-51191.rs diff --git a/src/test/ui/nll/issue-51191.stderr b/tests/ui/nll/issue-51191.stderr similarity index 100% rename from src/test/ui/nll/issue-51191.stderr rename to tests/ui/nll/issue-51191.stderr diff --git a/src/test/ui/nll/issue-51244.rs b/tests/ui/nll/issue-51244.rs similarity index 100% rename from src/test/ui/nll/issue-51244.rs rename to tests/ui/nll/issue-51244.rs diff --git a/src/test/ui/nll/issue-51244.stderr b/tests/ui/nll/issue-51244.stderr similarity index 100% rename from src/test/ui/nll/issue-51244.stderr rename to tests/ui/nll/issue-51244.stderr diff --git a/src/test/ui/nll/issue-51268.rs b/tests/ui/nll/issue-51268.rs similarity index 100% rename from src/test/ui/nll/issue-51268.rs rename to tests/ui/nll/issue-51268.rs diff --git a/src/test/ui/nll/issue-51268.stderr b/tests/ui/nll/issue-51268.stderr similarity index 100% rename from src/test/ui/nll/issue-51268.stderr rename to tests/ui/nll/issue-51268.stderr diff --git a/src/test/ui/nll/issue-51345-2.rs b/tests/ui/nll/issue-51345-2.rs similarity index 100% rename from src/test/ui/nll/issue-51345-2.rs rename to tests/ui/nll/issue-51345-2.rs diff --git a/src/test/ui/nll/issue-51351.rs b/tests/ui/nll/issue-51351.rs similarity index 100% rename from src/test/ui/nll/issue-51351.rs rename to tests/ui/nll/issue-51351.rs diff --git a/src/test/ui/nll/issue-51512.rs b/tests/ui/nll/issue-51512.rs similarity index 100% rename from src/test/ui/nll/issue-51512.rs rename to tests/ui/nll/issue-51512.rs diff --git a/src/test/ui/nll/issue-51512.stderr b/tests/ui/nll/issue-51512.stderr similarity index 100% rename from src/test/ui/nll/issue-51512.stderr rename to tests/ui/nll/issue-51512.stderr diff --git a/src/test/ui/nll/issue-51770.rs b/tests/ui/nll/issue-51770.rs similarity index 100% rename from src/test/ui/nll/issue-51770.rs rename to tests/ui/nll/issue-51770.rs diff --git a/src/test/ui/nll/issue-52057.rs b/tests/ui/nll/issue-52057.rs similarity index 100% rename from src/test/ui/nll/issue-52057.rs rename to tests/ui/nll/issue-52057.rs diff --git a/src/test/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.rs b/tests/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.rs similarity index 100% rename from src/test/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.rs rename to tests/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.rs diff --git a/src/test/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.stderr b/tests/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.stderr similarity index 100% rename from src/test/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.stderr rename to tests/ui/nll/issue-52059-report-when-borrow-and-drop-conflict.stderr diff --git a/src/test/ui/nll/issue-52078.rs b/tests/ui/nll/issue-52078.rs similarity index 100% rename from src/test/ui/nll/issue-52078.rs rename to tests/ui/nll/issue-52078.rs diff --git a/src/test/ui/nll/issue-52086.rs b/tests/ui/nll/issue-52086.rs similarity index 100% rename from src/test/ui/nll/issue-52086.rs rename to tests/ui/nll/issue-52086.rs diff --git a/src/test/ui/nll/issue-52086.stderr b/tests/ui/nll/issue-52086.stderr similarity index 100% rename from src/test/ui/nll/issue-52086.stderr rename to tests/ui/nll/issue-52086.stderr diff --git a/src/test/ui/nll/issue-52113.rs b/tests/ui/nll/issue-52113.rs similarity index 100% rename from src/test/ui/nll/issue-52113.rs rename to tests/ui/nll/issue-52113.rs diff --git a/src/test/ui/nll/issue-52113.stderr b/tests/ui/nll/issue-52113.stderr similarity index 100% rename from src/test/ui/nll/issue-52113.stderr rename to tests/ui/nll/issue-52113.stderr diff --git a/src/test/ui/nll/issue-52213.rs b/tests/ui/nll/issue-52213.rs similarity index 100% rename from src/test/ui/nll/issue-52213.rs rename to tests/ui/nll/issue-52213.rs diff --git a/src/test/ui/nll/issue-52213.stderr b/tests/ui/nll/issue-52213.stderr similarity index 100% rename from src/test/ui/nll/issue-52213.stderr rename to tests/ui/nll/issue-52213.stderr diff --git a/src/test/ui/nll/issue-52533-1.rs b/tests/ui/nll/issue-52533-1.rs similarity index 100% rename from src/test/ui/nll/issue-52533-1.rs rename to tests/ui/nll/issue-52533-1.rs diff --git a/src/test/ui/nll/issue-52533-1.stderr b/tests/ui/nll/issue-52533-1.stderr similarity index 100% rename from src/test/ui/nll/issue-52533-1.stderr rename to tests/ui/nll/issue-52533-1.stderr diff --git a/src/test/ui/nll/issue-52534-1.rs b/tests/ui/nll/issue-52534-1.rs similarity index 100% rename from src/test/ui/nll/issue-52534-1.rs rename to tests/ui/nll/issue-52534-1.rs diff --git a/src/test/ui/nll/issue-52534-1.stderr b/tests/ui/nll/issue-52534-1.stderr similarity index 100% rename from src/test/ui/nll/issue-52534-1.stderr rename to tests/ui/nll/issue-52534-1.stderr diff --git a/src/test/ui/nll/issue-52534-2.rs b/tests/ui/nll/issue-52534-2.rs similarity index 100% rename from src/test/ui/nll/issue-52534-2.rs rename to tests/ui/nll/issue-52534-2.rs diff --git a/src/test/ui/nll/issue-52534-2.stderr b/tests/ui/nll/issue-52534-2.stderr similarity index 100% rename from src/test/ui/nll/issue-52534-2.stderr rename to tests/ui/nll/issue-52534-2.stderr diff --git a/src/test/ui/nll/issue-52534.rs b/tests/ui/nll/issue-52534.rs similarity index 100% rename from src/test/ui/nll/issue-52534.rs rename to tests/ui/nll/issue-52534.rs diff --git a/src/test/ui/nll/issue-52534.stderr b/tests/ui/nll/issue-52534.stderr similarity index 100% rename from src/test/ui/nll/issue-52534.stderr rename to tests/ui/nll/issue-52534.stderr diff --git a/src/test/ui/nll/issue-52663-span-decl-captured-variable.rs b/tests/ui/nll/issue-52663-span-decl-captured-variable.rs similarity index 100% rename from src/test/ui/nll/issue-52663-span-decl-captured-variable.rs rename to tests/ui/nll/issue-52663-span-decl-captured-variable.rs diff --git a/src/test/ui/nll/issue-52663-span-decl-captured-variable.stderr b/tests/ui/nll/issue-52663-span-decl-captured-variable.stderr similarity index 100% rename from src/test/ui/nll/issue-52663-span-decl-captured-variable.stderr rename to tests/ui/nll/issue-52663-span-decl-captured-variable.stderr diff --git a/src/test/ui/nll/issue-52663-trait-object.rs b/tests/ui/nll/issue-52663-trait-object.rs similarity index 100% rename from src/test/ui/nll/issue-52663-trait-object.rs rename to tests/ui/nll/issue-52663-trait-object.rs diff --git a/src/test/ui/nll/issue-52663-trait-object.stderr b/tests/ui/nll/issue-52663-trait-object.stderr similarity index 100% rename from src/test/ui/nll/issue-52663-trait-object.stderr rename to tests/ui/nll/issue-52663-trait-object.stderr diff --git a/src/test/ui/nll/issue-52669.rs b/tests/ui/nll/issue-52669.rs similarity index 100% rename from src/test/ui/nll/issue-52669.rs rename to tests/ui/nll/issue-52669.rs diff --git a/src/test/ui/nll/issue-52669.stderr b/tests/ui/nll/issue-52669.stderr similarity index 100% rename from src/test/ui/nll/issue-52669.stderr rename to tests/ui/nll/issue-52669.stderr diff --git a/src/test/ui/nll/issue-52742.rs b/tests/ui/nll/issue-52742.rs similarity index 100% rename from src/test/ui/nll/issue-52742.rs rename to tests/ui/nll/issue-52742.rs diff --git a/src/test/ui/nll/issue-52742.stderr b/tests/ui/nll/issue-52742.stderr similarity index 100% rename from src/test/ui/nll/issue-52742.stderr rename to tests/ui/nll/issue-52742.stderr diff --git a/src/test/ui/nll/issue-52992.rs b/tests/ui/nll/issue-52992.rs similarity index 100% rename from src/test/ui/nll/issue-52992.rs rename to tests/ui/nll/issue-52992.rs diff --git a/src/test/ui/nll/issue-53040.rs b/tests/ui/nll/issue-53040.rs similarity index 100% rename from src/test/ui/nll/issue-53040.rs rename to tests/ui/nll/issue-53040.rs diff --git a/src/test/ui/nll/issue-53040.stderr b/tests/ui/nll/issue-53040.stderr similarity index 100% rename from src/test/ui/nll/issue-53040.stderr rename to tests/ui/nll/issue-53040.stderr diff --git a/src/test/ui/nll/issue-53119.rs b/tests/ui/nll/issue-53119.rs similarity index 100% rename from src/test/ui/nll/issue-53119.rs rename to tests/ui/nll/issue-53119.rs diff --git a/src/test/ui/nll/issue-53123-raw-pointer-cast.rs b/tests/ui/nll/issue-53123-raw-pointer-cast.rs similarity index 100% rename from src/test/ui/nll/issue-53123-raw-pointer-cast.rs rename to tests/ui/nll/issue-53123-raw-pointer-cast.rs diff --git a/src/test/ui/nll/issue-53570.rs b/tests/ui/nll/issue-53570.rs similarity index 100% rename from src/test/ui/nll/issue-53570.rs rename to tests/ui/nll/issue-53570.rs diff --git a/src/test/ui/nll/issue-53773.rs b/tests/ui/nll/issue-53773.rs similarity index 100% rename from src/test/ui/nll/issue-53773.rs rename to tests/ui/nll/issue-53773.rs diff --git a/src/test/ui/nll/issue-53773.stderr b/tests/ui/nll/issue-53773.stderr similarity index 100% rename from src/test/ui/nll/issue-53773.stderr rename to tests/ui/nll/issue-53773.stderr diff --git a/src/test/ui/nll/issue-53807.rs b/tests/ui/nll/issue-53807.rs similarity index 100% rename from src/test/ui/nll/issue-53807.rs rename to tests/ui/nll/issue-53807.rs diff --git a/src/test/ui/nll/issue-53807.stderr b/tests/ui/nll/issue-53807.stderr similarity index 100% rename from src/test/ui/nll/issue-53807.stderr rename to tests/ui/nll/issue-53807.stderr diff --git a/src/test/ui/nll/issue-54189.rs b/tests/ui/nll/issue-54189.rs similarity index 100% rename from src/test/ui/nll/issue-54189.rs rename to tests/ui/nll/issue-54189.rs diff --git a/src/test/ui/nll/issue-54189.stderr b/tests/ui/nll/issue-54189.stderr similarity index 100% rename from src/test/ui/nll/issue-54189.stderr rename to tests/ui/nll/issue-54189.stderr diff --git a/src/test/ui/nll/issue-54382-use-span-of-tail-of-block.rs b/tests/ui/nll/issue-54382-use-span-of-tail-of-block.rs similarity index 100% rename from src/test/ui/nll/issue-54382-use-span-of-tail-of-block.rs rename to tests/ui/nll/issue-54382-use-span-of-tail-of-block.rs diff --git a/src/test/ui/nll/issue-54382-use-span-of-tail-of-block.stderr b/tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr similarity index 100% rename from src/test/ui/nll/issue-54382-use-span-of-tail-of-block.stderr rename to tests/ui/nll/issue-54382-use-span-of-tail-of-block.stderr diff --git a/src/test/ui/nll/issue-54556-niconii.rs b/tests/ui/nll/issue-54556-niconii.rs similarity index 100% rename from src/test/ui/nll/issue-54556-niconii.rs rename to tests/ui/nll/issue-54556-niconii.rs diff --git a/src/test/ui/nll/issue-54556-niconii.stderr b/tests/ui/nll/issue-54556-niconii.stderr similarity index 100% rename from src/test/ui/nll/issue-54556-niconii.stderr rename to tests/ui/nll/issue-54556-niconii.stderr diff --git a/src/test/ui/nll/issue-54556-stephaneyfx.rs b/tests/ui/nll/issue-54556-stephaneyfx.rs similarity index 100% rename from src/test/ui/nll/issue-54556-stephaneyfx.rs rename to tests/ui/nll/issue-54556-stephaneyfx.rs diff --git a/src/test/ui/nll/issue-54556-stephaneyfx.stderr b/tests/ui/nll/issue-54556-stephaneyfx.stderr similarity index 100% rename from src/test/ui/nll/issue-54556-stephaneyfx.stderr rename to tests/ui/nll/issue-54556-stephaneyfx.stderr diff --git a/src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.rs b/tests/ui/nll/issue-54556-temps-in-tail-diagnostic.rs similarity index 100% rename from src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.rs rename to tests/ui/nll/issue-54556-temps-in-tail-diagnostic.rs diff --git a/src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.stderr b/tests/ui/nll/issue-54556-temps-in-tail-diagnostic.stderr similarity index 100% rename from src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.stderr rename to tests/ui/nll/issue-54556-temps-in-tail-diagnostic.stderr diff --git a/src/test/ui/nll/issue-54556-used-vs-unused-tails.rs b/tests/ui/nll/issue-54556-used-vs-unused-tails.rs similarity index 100% rename from src/test/ui/nll/issue-54556-used-vs-unused-tails.rs rename to tests/ui/nll/issue-54556-used-vs-unused-tails.rs diff --git a/src/test/ui/nll/issue-54556-used-vs-unused-tails.stderr b/tests/ui/nll/issue-54556-used-vs-unused-tails.stderr similarity index 100% rename from src/test/ui/nll/issue-54556-used-vs-unused-tails.stderr rename to tests/ui/nll/issue-54556-used-vs-unused-tails.stderr diff --git a/src/test/ui/nll/issue-54556-wrap-it-up.rs b/tests/ui/nll/issue-54556-wrap-it-up.rs similarity index 100% rename from src/test/ui/nll/issue-54556-wrap-it-up.rs rename to tests/ui/nll/issue-54556-wrap-it-up.rs diff --git a/src/test/ui/nll/issue-54556-wrap-it-up.stderr b/tests/ui/nll/issue-54556-wrap-it-up.stderr similarity index 100% rename from src/test/ui/nll/issue-54556-wrap-it-up.stderr rename to tests/ui/nll/issue-54556-wrap-it-up.stderr diff --git a/src/test/ui/nll/issue-54779-anon-static-lifetime.rs b/tests/ui/nll/issue-54779-anon-static-lifetime.rs similarity index 100% rename from src/test/ui/nll/issue-54779-anon-static-lifetime.rs rename to tests/ui/nll/issue-54779-anon-static-lifetime.rs diff --git a/src/test/ui/nll/issue-54779-anon-static-lifetime.stderr b/tests/ui/nll/issue-54779-anon-static-lifetime.stderr similarity index 100% rename from src/test/ui/nll/issue-54779-anon-static-lifetime.stderr rename to tests/ui/nll/issue-54779-anon-static-lifetime.stderr diff --git a/src/test/ui/nll/issue-54943-3.rs b/tests/ui/nll/issue-54943-3.rs similarity index 100% rename from src/test/ui/nll/issue-54943-3.rs rename to tests/ui/nll/issue-54943-3.rs diff --git a/src/test/ui/nll/issue-54943.rs b/tests/ui/nll/issue-54943.rs similarity index 100% rename from src/test/ui/nll/issue-54943.rs rename to tests/ui/nll/issue-54943.rs diff --git a/src/test/ui/nll/issue-54943.stderr b/tests/ui/nll/issue-54943.stderr similarity index 100% rename from src/test/ui/nll/issue-54943.stderr rename to tests/ui/nll/issue-54943.stderr diff --git a/src/test/ui/nll/issue-55288.rs b/tests/ui/nll/issue-55288.rs similarity index 100% rename from src/test/ui/nll/issue-55288.rs rename to tests/ui/nll/issue-55288.rs diff --git a/src/test/ui/nll/issue-55344.rs b/tests/ui/nll/issue-55344.rs similarity index 100% rename from src/test/ui/nll/issue-55344.rs rename to tests/ui/nll/issue-55344.rs diff --git a/src/test/ui/nll/issue-55394.rs b/tests/ui/nll/issue-55394.rs similarity index 100% rename from src/test/ui/nll/issue-55394.rs rename to tests/ui/nll/issue-55394.rs diff --git a/src/test/ui/nll/issue-55394.stderr b/tests/ui/nll/issue-55394.stderr similarity index 100% rename from src/test/ui/nll/issue-55394.stderr rename to tests/ui/nll/issue-55394.stderr diff --git a/src/test/ui/nll/issue-55401.rs b/tests/ui/nll/issue-55401.rs similarity index 100% rename from src/test/ui/nll/issue-55401.rs rename to tests/ui/nll/issue-55401.rs diff --git a/src/test/ui/nll/issue-55401.stderr b/tests/ui/nll/issue-55401.stderr similarity index 100% rename from src/test/ui/nll/issue-55401.stderr rename to tests/ui/nll/issue-55401.stderr diff --git a/src/test/ui/nll/issue-55511.rs b/tests/ui/nll/issue-55511.rs similarity index 100% rename from src/test/ui/nll/issue-55511.rs rename to tests/ui/nll/issue-55511.rs diff --git a/src/test/ui/nll/issue-55511.stderr b/tests/ui/nll/issue-55511.stderr similarity index 100% rename from src/test/ui/nll/issue-55511.stderr rename to tests/ui/nll/issue-55511.stderr diff --git a/src/test/ui/nll/issue-55651.rs b/tests/ui/nll/issue-55651.rs similarity index 100% rename from src/test/ui/nll/issue-55651.rs rename to tests/ui/nll/issue-55651.rs diff --git a/src/test/ui/nll/issue-55825-const-fn.rs b/tests/ui/nll/issue-55825-const-fn.rs similarity index 100% rename from src/test/ui/nll/issue-55825-const-fn.rs rename to tests/ui/nll/issue-55825-const-fn.rs diff --git a/src/test/ui/nll/issue-55850.rs b/tests/ui/nll/issue-55850.rs similarity index 100% rename from src/test/ui/nll/issue-55850.rs rename to tests/ui/nll/issue-55850.rs diff --git a/src/test/ui/nll/issue-55850.stderr b/tests/ui/nll/issue-55850.stderr similarity index 100% rename from src/test/ui/nll/issue-55850.stderr rename to tests/ui/nll/issue-55850.stderr diff --git a/src/test/ui/nll/issue-57100.rs b/tests/ui/nll/issue-57100.rs similarity index 100% rename from src/test/ui/nll/issue-57100.rs rename to tests/ui/nll/issue-57100.rs diff --git a/src/test/ui/nll/issue-57100.stderr b/tests/ui/nll/issue-57100.stderr similarity index 100% rename from src/test/ui/nll/issue-57100.stderr rename to tests/ui/nll/issue-57100.stderr diff --git a/src/test/ui/nll/issue-57265-return-type-wf-check.rs b/tests/ui/nll/issue-57265-return-type-wf-check.rs similarity index 100% rename from src/test/ui/nll/issue-57265-return-type-wf-check.rs rename to tests/ui/nll/issue-57265-return-type-wf-check.rs diff --git a/src/test/ui/nll/issue-57265-return-type-wf-check.stderr b/tests/ui/nll/issue-57265-return-type-wf-check.stderr similarity index 100% rename from src/test/ui/nll/issue-57265-return-type-wf-check.stderr rename to tests/ui/nll/issue-57265-return-type-wf-check.stderr diff --git a/src/test/ui/nll/issue-57280-1-flipped.rs b/tests/ui/nll/issue-57280-1-flipped.rs similarity index 100% rename from src/test/ui/nll/issue-57280-1-flipped.rs rename to tests/ui/nll/issue-57280-1-flipped.rs diff --git a/src/test/ui/nll/issue-57280-1-flipped.stderr b/tests/ui/nll/issue-57280-1-flipped.stderr similarity index 100% rename from src/test/ui/nll/issue-57280-1-flipped.stderr rename to tests/ui/nll/issue-57280-1-flipped.stderr diff --git a/src/test/ui/nll/issue-57280-1.rs b/tests/ui/nll/issue-57280-1.rs similarity index 100% rename from src/test/ui/nll/issue-57280-1.rs rename to tests/ui/nll/issue-57280-1.rs diff --git a/src/test/ui/nll/issue-57280.rs b/tests/ui/nll/issue-57280.rs similarity index 100% rename from src/test/ui/nll/issue-57280.rs rename to tests/ui/nll/issue-57280.rs diff --git a/src/test/ui/nll/issue-57642-higher-ranked-subtype.rs b/tests/ui/nll/issue-57642-higher-ranked-subtype.rs similarity index 100% rename from src/test/ui/nll/issue-57642-higher-ranked-subtype.rs rename to tests/ui/nll/issue-57642-higher-ranked-subtype.rs diff --git a/src/test/ui/nll/issue-57642-higher-ranked-subtype.stderr b/tests/ui/nll/issue-57642-higher-ranked-subtype.stderr similarity index 100% rename from src/test/ui/nll/issue-57642-higher-ranked-subtype.stderr rename to tests/ui/nll/issue-57642-higher-ranked-subtype.stderr diff --git a/src/test/ui/nll/issue-57843.rs b/tests/ui/nll/issue-57843.rs similarity index 100% rename from src/test/ui/nll/issue-57843.rs rename to tests/ui/nll/issue-57843.rs diff --git a/src/test/ui/nll/issue-57843.stderr b/tests/ui/nll/issue-57843.stderr similarity index 100% rename from src/test/ui/nll/issue-57843.stderr rename to tests/ui/nll/issue-57843.stderr diff --git a/src/test/ui/nll/issue-57960.rs b/tests/ui/nll/issue-57960.rs similarity index 100% rename from src/test/ui/nll/issue-57960.rs rename to tests/ui/nll/issue-57960.rs diff --git a/src/test/ui/nll/issue-57989.rs b/tests/ui/nll/issue-57989.rs similarity index 100% rename from src/test/ui/nll/issue-57989.rs rename to tests/ui/nll/issue-57989.rs diff --git a/src/test/ui/nll/issue-57989.stderr b/tests/ui/nll/issue-57989.stderr similarity index 100% rename from src/test/ui/nll/issue-57989.stderr rename to tests/ui/nll/issue-57989.stderr diff --git a/src/test/ui/nll/issue-58053.rs b/tests/ui/nll/issue-58053.rs similarity index 100% rename from src/test/ui/nll/issue-58053.rs rename to tests/ui/nll/issue-58053.rs diff --git a/src/test/ui/nll/issue-58053.stderr b/tests/ui/nll/issue-58053.stderr similarity index 100% rename from src/test/ui/nll/issue-58053.stderr rename to tests/ui/nll/issue-58053.stderr diff --git a/src/test/ui/nll/issue-58299.rs b/tests/ui/nll/issue-58299.rs similarity index 100% rename from src/test/ui/nll/issue-58299.rs rename to tests/ui/nll/issue-58299.rs diff --git a/src/test/ui/nll/issue-58299.stderr b/tests/ui/nll/issue-58299.stderr similarity index 100% rename from src/test/ui/nll/issue-58299.stderr rename to tests/ui/nll/issue-58299.stderr diff --git a/src/test/ui/nll/issue-61311-normalize.rs b/tests/ui/nll/issue-61311-normalize.rs similarity index 100% rename from src/test/ui/nll/issue-61311-normalize.rs rename to tests/ui/nll/issue-61311-normalize.rs diff --git a/src/test/ui/nll/issue-61320-normalize.rs b/tests/ui/nll/issue-61320-normalize.rs similarity index 100% rename from src/test/ui/nll/issue-61320-normalize.rs rename to tests/ui/nll/issue-61320-normalize.rs diff --git a/src/test/ui/nll/issue-61424.fixed b/tests/ui/nll/issue-61424.fixed similarity index 100% rename from src/test/ui/nll/issue-61424.fixed rename to tests/ui/nll/issue-61424.fixed diff --git a/src/test/ui/nll/issue-61424.rs b/tests/ui/nll/issue-61424.rs similarity index 100% rename from src/test/ui/nll/issue-61424.rs rename to tests/ui/nll/issue-61424.rs diff --git a/src/test/ui/nll/issue-61424.stderr b/tests/ui/nll/issue-61424.stderr similarity index 100% rename from src/test/ui/nll/issue-61424.stderr rename to tests/ui/nll/issue-61424.stderr diff --git a/src/test/ui/nll/issue-62007-assign-const-index.rs b/tests/ui/nll/issue-62007-assign-const-index.rs similarity index 100% rename from src/test/ui/nll/issue-62007-assign-const-index.rs rename to tests/ui/nll/issue-62007-assign-const-index.rs diff --git a/src/test/ui/nll/issue-62007-assign-const-index.stderr b/tests/ui/nll/issue-62007-assign-const-index.stderr similarity index 100% rename from src/test/ui/nll/issue-62007-assign-const-index.stderr rename to tests/ui/nll/issue-62007-assign-const-index.stderr diff --git a/src/test/ui/nll/issue-62007-assign-differing-fields.rs b/tests/ui/nll/issue-62007-assign-differing-fields.rs similarity index 100% rename from src/test/ui/nll/issue-62007-assign-differing-fields.rs rename to tests/ui/nll/issue-62007-assign-differing-fields.rs diff --git a/src/test/ui/nll/issue-62007-assign-differing-fields.stderr b/tests/ui/nll/issue-62007-assign-differing-fields.stderr similarity index 100% rename from src/test/ui/nll/issue-62007-assign-differing-fields.stderr rename to tests/ui/nll/issue-62007-assign-differing-fields.stderr diff --git a/src/test/ui/nll/issue-63154-normalize.rs b/tests/ui/nll/issue-63154-normalize.rs similarity index 100% rename from src/test/ui/nll/issue-63154-normalize.rs rename to tests/ui/nll/issue-63154-normalize.rs diff --git a/src/test/ui/nll/issue-67007-escaping-data.rs b/tests/ui/nll/issue-67007-escaping-data.rs similarity index 100% rename from src/test/ui/nll/issue-67007-escaping-data.rs rename to tests/ui/nll/issue-67007-escaping-data.rs diff --git a/src/test/ui/nll/issue-67007-escaping-data.stderr b/tests/ui/nll/issue-67007-escaping-data.stderr similarity index 100% rename from src/test/ui/nll/issue-67007-escaping-data.stderr rename to tests/ui/nll/issue-67007-escaping-data.stderr diff --git a/src/test/ui/nll/issue-68550.rs b/tests/ui/nll/issue-68550.rs similarity index 100% rename from src/test/ui/nll/issue-68550.rs rename to tests/ui/nll/issue-68550.rs diff --git a/src/test/ui/nll/issue-68550.stderr b/tests/ui/nll/issue-68550.stderr similarity index 100% rename from src/test/ui/nll/issue-68550.stderr rename to tests/ui/nll/issue-68550.stderr diff --git a/src/test/ui/nll/issue-69114-static-mut-ty.rs b/tests/ui/nll/issue-69114-static-mut-ty.rs similarity index 100% rename from src/test/ui/nll/issue-69114-static-mut-ty.rs rename to tests/ui/nll/issue-69114-static-mut-ty.rs diff --git a/src/test/ui/nll/issue-69114-static-mut-ty.stderr b/tests/ui/nll/issue-69114-static-mut-ty.stderr similarity index 100% rename from src/test/ui/nll/issue-69114-static-mut-ty.stderr rename to tests/ui/nll/issue-69114-static-mut-ty.stderr diff --git a/src/test/ui/nll/issue-69114-static-ty.rs b/tests/ui/nll/issue-69114-static-ty.rs similarity index 100% rename from src/test/ui/nll/issue-69114-static-ty.rs rename to tests/ui/nll/issue-69114-static-ty.rs diff --git a/src/test/ui/nll/issue-69114-static-ty.stderr b/tests/ui/nll/issue-69114-static-ty.stderr similarity index 100% rename from src/test/ui/nll/issue-69114-static-ty.stderr rename to tests/ui/nll/issue-69114-static-ty.stderr diff --git a/src/test/ui/nll/issue-73159-rpit-static.rs b/tests/ui/nll/issue-73159-rpit-static.rs similarity index 100% rename from src/test/ui/nll/issue-73159-rpit-static.rs rename to tests/ui/nll/issue-73159-rpit-static.rs diff --git a/src/test/ui/nll/issue-73159-rpit-static.stderr b/tests/ui/nll/issue-73159-rpit-static.stderr similarity index 100% rename from src/test/ui/nll/issue-73159-rpit-static.stderr rename to tests/ui/nll/issue-73159-rpit-static.stderr diff --git a/src/test/ui/nll/issue-78561.rs b/tests/ui/nll/issue-78561.rs similarity index 100% rename from src/test/ui/nll/issue-78561.rs rename to tests/ui/nll/issue-78561.rs diff --git a/src/test/ui/nll/issue-95272.rs b/tests/ui/nll/issue-95272.rs similarity index 100% rename from src/test/ui/nll/issue-95272.rs rename to tests/ui/nll/issue-95272.rs diff --git a/src/test/ui/nll/issue-95272.stderr b/tests/ui/nll/issue-95272.stderr similarity index 100% rename from src/test/ui/nll/issue-95272.stderr rename to tests/ui/nll/issue-95272.stderr diff --git a/src/test/ui/nll/issue-97997.rs b/tests/ui/nll/issue-97997.rs similarity index 100% rename from src/test/ui/nll/issue-97997.rs rename to tests/ui/nll/issue-97997.rs diff --git a/src/test/ui/nll/issue-97997.stderr b/tests/ui/nll/issue-97997.stderr similarity index 100% rename from src/test/ui/nll/issue-97997.stderr rename to tests/ui/nll/issue-97997.stderr diff --git a/src/test/ui/nll/issue-98170.rs b/tests/ui/nll/issue-98170.rs similarity index 100% rename from src/test/ui/nll/issue-98170.rs rename to tests/ui/nll/issue-98170.rs diff --git a/src/test/ui/nll/issue-98170.stderr b/tests/ui/nll/issue-98170.stderr similarity index 100% rename from src/test/ui/nll/issue-98170.stderr rename to tests/ui/nll/issue-98170.stderr diff --git a/src/test/ui/nll/issue-98589-closures-relate-named-regions.rs b/tests/ui/nll/issue-98589-closures-relate-named-regions.rs similarity index 100% rename from src/test/ui/nll/issue-98589-closures-relate-named-regions.rs rename to tests/ui/nll/issue-98589-closures-relate-named-regions.rs diff --git a/src/test/ui/nll/issue-98589-closures-relate-named-regions.stderr b/tests/ui/nll/issue-98589-closures-relate-named-regions.stderr similarity index 100% rename from src/test/ui/nll/issue-98589-closures-relate-named-regions.stderr rename to tests/ui/nll/issue-98589-closures-relate-named-regions.stderr diff --git a/src/test/ui/nll/issue-98693.rs b/tests/ui/nll/issue-98693.rs similarity index 100% rename from src/test/ui/nll/issue-98693.rs rename to tests/ui/nll/issue-98693.rs diff --git a/src/test/ui/nll/issue-98693.stderr b/tests/ui/nll/issue-98693.stderr similarity index 100% rename from src/test/ui/nll/issue-98693.stderr rename to tests/ui/nll/issue-98693.stderr diff --git a/src/test/ui/nll/lint-no-err.rs b/tests/ui/nll/lint-no-err.rs similarity index 100% rename from src/test/ui/nll/lint-no-err.rs rename to tests/ui/nll/lint-no-err.rs diff --git a/src/test/ui/nll/loan_ends_mid_block_pair.rs b/tests/ui/nll/loan_ends_mid_block_pair.rs similarity index 100% rename from src/test/ui/nll/loan_ends_mid_block_pair.rs rename to tests/ui/nll/loan_ends_mid_block_pair.rs diff --git a/src/test/ui/nll/loan_ends_mid_block_pair.stderr b/tests/ui/nll/loan_ends_mid_block_pair.stderr similarity index 100% rename from src/test/ui/nll/loan_ends_mid_block_pair.stderr rename to tests/ui/nll/loan_ends_mid_block_pair.stderr diff --git a/src/test/ui/nll/loan_ends_mid_block_vec.rs b/tests/ui/nll/loan_ends_mid_block_vec.rs similarity index 100% rename from src/test/ui/nll/loan_ends_mid_block_vec.rs rename to tests/ui/nll/loan_ends_mid_block_vec.rs diff --git a/src/test/ui/nll/loan_ends_mid_block_vec.stderr b/tests/ui/nll/loan_ends_mid_block_vec.stderr similarity index 100% rename from src/test/ui/nll/loan_ends_mid_block_vec.stderr rename to tests/ui/nll/loan_ends_mid_block_vec.stderr diff --git a/src/test/ui/nll/local-outlives-static-via-hrtb.rs b/tests/ui/nll/local-outlives-static-via-hrtb.rs similarity index 100% rename from src/test/ui/nll/local-outlives-static-via-hrtb.rs rename to tests/ui/nll/local-outlives-static-via-hrtb.rs diff --git a/src/test/ui/nll/local-outlives-static-via-hrtb.stderr b/tests/ui/nll/local-outlives-static-via-hrtb.stderr similarity index 100% rename from src/test/ui/nll/local-outlives-static-via-hrtb.stderr rename to tests/ui/nll/local-outlives-static-via-hrtb.stderr diff --git a/src/test/ui/nll/lub-if.rs b/tests/ui/nll/lub-if.rs similarity index 100% rename from src/test/ui/nll/lub-if.rs rename to tests/ui/nll/lub-if.rs diff --git a/src/test/ui/nll/lub-if.stderr b/tests/ui/nll/lub-if.stderr similarity index 100% rename from src/test/ui/nll/lub-if.stderr rename to tests/ui/nll/lub-if.stderr diff --git a/src/test/ui/nll/lub-match.rs b/tests/ui/nll/lub-match.rs similarity index 100% rename from src/test/ui/nll/lub-match.rs rename to tests/ui/nll/lub-match.rs diff --git a/src/test/ui/nll/lub-match.stderr b/tests/ui/nll/lub-match.stderr similarity index 100% rename from src/test/ui/nll/lub-match.stderr rename to tests/ui/nll/lub-match.stderr diff --git a/src/test/ui/nll/match-cfg-fake-edges.rs b/tests/ui/nll/match-cfg-fake-edges.rs similarity index 100% rename from src/test/ui/nll/match-cfg-fake-edges.rs rename to tests/ui/nll/match-cfg-fake-edges.rs diff --git a/src/test/ui/nll/match-cfg-fake-edges.stderr b/tests/ui/nll/match-cfg-fake-edges.stderr similarity index 100% rename from src/test/ui/nll/match-cfg-fake-edges.stderr rename to tests/ui/nll/match-cfg-fake-edges.stderr diff --git a/src/test/ui/nll/match-cfg-fake-edges2.rs b/tests/ui/nll/match-cfg-fake-edges2.rs similarity index 100% rename from src/test/ui/nll/match-cfg-fake-edges2.rs rename to tests/ui/nll/match-cfg-fake-edges2.rs diff --git a/src/test/ui/nll/match-cfg-fake-edges2.stderr b/tests/ui/nll/match-cfg-fake-edges2.stderr similarity index 100% rename from src/test/ui/nll/match-cfg-fake-edges2.stderr rename to tests/ui/nll/match-cfg-fake-edges2.stderr diff --git a/src/test/ui/nll/match-guards-always-borrow.rs b/tests/ui/nll/match-guards-always-borrow.rs similarity index 100% rename from src/test/ui/nll/match-guards-always-borrow.rs rename to tests/ui/nll/match-guards-always-borrow.rs diff --git a/src/test/ui/nll/match-guards-always-borrow.stderr b/tests/ui/nll/match-guards-always-borrow.stderr similarity index 100% rename from src/test/ui/nll/match-guards-always-borrow.stderr rename to tests/ui/nll/match-guards-always-borrow.stderr diff --git a/src/test/ui/nll/match-guards-partially-borrow.rs b/tests/ui/nll/match-guards-partially-borrow.rs similarity index 100% rename from src/test/ui/nll/match-guards-partially-borrow.rs rename to tests/ui/nll/match-guards-partially-borrow.rs diff --git a/src/test/ui/nll/match-guards-partially-borrow.stderr b/tests/ui/nll/match-guards-partially-borrow.stderr similarity index 100% rename from src/test/ui/nll/match-guards-partially-borrow.stderr rename to tests/ui/nll/match-guards-partially-borrow.stderr diff --git a/src/test/ui/nll/match-on-borrowed.rs b/tests/ui/nll/match-on-borrowed.rs similarity index 100% rename from src/test/ui/nll/match-on-borrowed.rs rename to tests/ui/nll/match-on-borrowed.rs diff --git a/src/test/ui/nll/match-on-borrowed.stderr b/tests/ui/nll/match-on-borrowed.stderr similarity index 100% rename from src/test/ui/nll/match-on-borrowed.stderr rename to tests/ui/nll/match-on-borrowed.stderr diff --git a/src/test/ui/nll/maybe-initialized-drop-implicit-fragment-drop.rs b/tests/ui/nll/maybe-initialized-drop-implicit-fragment-drop.rs similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-implicit-fragment-drop.rs rename to tests/ui/nll/maybe-initialized-drop-implicit-fragment-drop.rs diff --git a/src/test/ui/nll/maybe-initialized-drop-implicit-fragment-drop.stderr b/tests/ui/nll/maybe-initialized-drop-implicit-fragment-drop.stderr similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-implicit-fragment-drop.stderr rename to tests/ui/nll/maybe-initialized-drop-implicit-fragment-drop.stderr diff --git a/src/test/ui/nll/maybe-initialized-drop-uninitialized.rs b/tests/ui/nll/maybe-initialized-drop-uninitialized.rs similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-uninitialized.rs rename to tests/ui/nll/maybe-initialized-drop-uninitialized.rs diff --git a/src/test/ui/nll/maybe-initialized-drop-with-fragment.rs b/tests/ui/nll/maybe-initialized-drop-with-fragment.rs similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-with-fragment.rs rename to tests/ui/nll/maybe-initialized-drop-with-fragment.rs diff --git a/src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr b/tests/ui/nll/maybe-initialized-drop-with-fragment.stderr similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-with-fragment.stderr rename to tests/ui/nll/maybe-initialized-drop-with-fragment.stderr diff --git a/src/test/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.rs b/tests/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.rs similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.rs rename to tests/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.rs diff --git a/src/test/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.stderr b/tests/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.stderr similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.stderr rename to tests/ui/nll/maybe-initialized-drop-with-uninitialized-fragments.stderr diff --git a/src/test/ui/nll/maybe-initialized-drop.rs b/tests/ui/nll/maybe-initialized-drop.rs similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop.rs rename to tests/ui/nll/maybe-initialized-drop.rs diff --git a/src/test/ui/nll/maybe-initialized-drop.stderr b/tests/ui/nll/maybe-initialized-drop.stderr similarity index 100% rename from src/test/ui/nll/maybe-initialized-drop.stderr rename to tests/ui/nll/maybe-initialized-drop.stderr diff --git a/src/test/ui/nll/mir_check_cast_closure.rs b/tests/ui/nll/mir_check_cast_closure.rs similarity index 100% rename from src/test/ui/nll/mir_check_cast_closure.rs rename to tests/ui/nll/mir_check_cast_closure.rs diff --git a/src/test/ui/nll/mir_check_cast_closure.stderr b/tests/ui/nll/mir_check_cast_closure.stderr similarity index 100% rename from src/test/ui/nll/mir_check_cast_closure.stderr rename to tests/ui/nll/mir_check_cast_closure.stderr diff --git a/src/test/ui/nll/mir_check_cast_reify.rs b/tests/ui/nll/mir_check_cast_reify.rs similarity index 100% rename from src/test/ui/nll/mir_check_cast_reify.rs rename to tests/ui/nll/mir_check_cast_reify.rs diff --git a/src/test/ui/nll/mir_check_cast_reify.stderr b/tests/ui/nll/mir_check_cast_reify.stderr similarity index 100% rename from src/test/ui/nll/mir_check_cast_reify.stderr rename to tests/ui/nll/mir_check_cast_reify.stderr diff --git a/src/test/ui/nll/mir_check_cast_unsafe_fn.rs b/tests/ui/nll/mir_check_cast_unsafe_fn.rs similarity index 100% rename from src/test/ui/nll/mir_check_cast_unsafe_fn.rs rename to tests/ui/nll/mir_check_cast_unsafe_fn.rs diff --git a/src/test/ui/nll/mir_check_cast_unsafe_fn.stderr b/tests/ui/nll/mir_check_cast_unsafe_fn.stderr similarity index 100% rename from src/test/ui/nll/mir_check_cast_unsafe_fn.stderr rename to tests/ui/nll/mir_check_cast_unsafe_fn.stderr diff --git a/src/test/ui/nll/mir_check_cast_unsize.rs b/tests/ui/nll/mir_check_cast_unsize.rs similarity index 100% rename from src/test/ui/nll/mir_check_cast_unsize.rs rename to tests/ui/nll/mir_check_cast_unsize.rs diff --git a/src/test/ui/nll/mir_check_cast_unsize.stderr b/tests/ui/nll/mir_check_cast_unsize.stderr similarity index 100% rename from src/test/ui/nll/mir_check_cast_unsize.stderr rename to tests/ui/nll/mir_check_cast_unsize.stderr diff --git a/src/test/ui/nll/move-errors.rs b/tests/ui/nll/move-errors.rs similarity index 100% rename from src/test/ui/nll/move-errors.rs rename to tests/ui/nll/move-errors.rs diff --git a/src/test/ui/nll/move-errors.stderr b/tests/ui/nll/move-errors.stderr similarity index 100% rename from src/test/ui/nll/move-errors.stderr rename to tests/ui/nll/move-errors.stderr diff --git a/src/test/ui/nll/move-subpaths-moves-root.rs b/tests/ui/nll/move-subpaths-moves-root.rs similarity index 100% rename from src/test/ui/nll/move-subpaths-moves-root.rs rename to tests/ui/nll/move-subpaths-moves-root.rs diff --git a/src/test/ui/nll/move-subpaths-moves-root.stderr b/tests/ui/nll/move-subpaths-moves-root.stderr similarity index 100% rename from src/test/ui/nll/move-subpaths-moves-root.stderr rename to tests/ui/nll/move-subpaths-moves-root.stderr diff --git a/src/test/ui/nll/mutating_references.rs b/tests/ui/nll/mutating_references.rs similarity index 100% rename from src/test/ui/nll/mutating_references.rs rename to tests/ui/nll/mutating_references.rs diff --git a/src/test/ui/nll/normalization-bounds-error.rs b/tests/ui/nll/normalization-bounds-error.rs similarity index 100% rename from src/test/ui/nll/normalization-bounds-error.rs rename to tests/ui/nll/normalization-bounds-error.rs diff --git a/src/test/ui/nll/normalization-bounds-error.stderr b/tests/ui/nll/normalization-bounds-error.stderr similarity index 100% rename from src/test/ui/nll/normalization-bounds-error.stderr rename to tests/ui/nll/normalization-bounds-error.stderr diff --git a/src/test/ui/nll/normalization-bounds.rs b/tests/ui/nll/normalization-bounds.rs similarity index 100% rename from src/test/ui/nll/normalization-bounds.rs rename to tests/ui/nll/normalization-bounds.rs diff --git a/src/test/ui/nll/outlives-suggestion-more.rs b/tests/ui/nll/outlives-suggestion-more.rs similarity index 100% rename from src/test/ui/nll/outlives-suggestion-more.rs rename to tests/ui/nll/outlives-suggestion-more.rs diff --git a/src/test/ui/nll/outlives-suggestion-more.stderr b/tests/ui/nll/outlives-suggestion-more.stderr similarity index 100% rename from src/test/ui/nll/outlives-suggestion-more.stderr rename to tests/ui/nll/outlives-suggestion-more.stderr diff --git a/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr b/tests/ui/nll/outlives-suggestion-simple.polonius.stderr similarity index 100% rename from src/test/ui/nll/outlives-suggestion-simple.polonius.stderr rename to tests/ui/nll/outlives-suggestion-simple.polonius.stderr diff --git a/src/test/ui/nll/outlives-suggestion-simple.rs b/tests/ui/nll/outlives-suggestion-simple.rs similarity index 100% rename from src/test/ui/nll/outlives-suggestion-simple.rs rename to tests/ui/nll/outlives-suggestion-simple.rs diff --git a/src/test/ui/nll/outlives-suggestion-simple.stderr b/tests/ui/nll/outlives-suggestion-simple.stderr similarity index 100% rename from src/test/ui/nll/outlives-suggestion-simple.stderr rename to tests/ui/nll/outlives-suggestion-simple.stderr diff --git a/src/test/ui/nll/polonius/assignment-kills-loans.rs b/tests/ui/nll/polonius/assignment-kills-loans.rs similarity index 100% rename from src/test/ui/nll/polonius/assignment-kills-loans.rs rename to tests/ui/nll/polonius/assignment-kills-loans.rs diff --git a/src/test/ui/nll/polonius/assignment-to-differing-field.rs b/tests/ui/nll/polonius/assignment-to-differing-field.rs similarity index 100% rename from src/test/ui/nll/polonius/assignment-to-differing-field.rs rename to tests/ui/nll/polonius/assignment-to-differing-field.rs diff --git a/src/test/ui/nll/polonius/assignment-to-differing-field.stderr b/tests/ui/nll/polonius/assignment-to-differing-field.stderr similarity index 100% rename from src/test/ui/nll/polonius/assignment-to-differing-field.stderr rename to tests/ui/nll/polonius/assignment-to-differing-field.stderr diff --git a/src/test/ui/nll/polonius/call-kills-loans.rs b/tests/ui/nll/polonius/call-kills-loans.rs similarity index 100% rename from src/test/ui/nll/polonius/call-kills-loans.rs rename to tests/ui/nll/polonius/call-kills-loans.rs diff --git a/src/test/ui/nll/polonius/issue-46589.rs b/tests/ui/nll/polonius/issue-46589.rs similarity index 100% rename from src/test/ui/nll/polonius/issue-46589.rs rename to tests/ui/nll/polonius/issue-46589.rs diff --git a/src/test/ui/nll/polonius/polonius-smoke-test.rs b/tests/ui/nll/polonius/polonius-smoke-test.rs similarity index 100% rename from src/test/ui/nll/polonius/polonius-smoke-test.rs rename to tests/ui/nll/polonius/polonius-smoke-test.rs diff --git a/src/test/ui/nll/polonius/polonius-smoke-test.stderr b/tests/ui/nll/polonius/polonius-smoke-test.stderr similarity index 100% rename from src/test/ui/nll/polonius/polonius-smoke-test.stderr rename to tests/ui/nll/polonius/polonius-smoke-test.stderr diff --git a/src/test/ui/nll/polonius/storagedead-kills-loans.rs b/tests/ui/nll/polonius/storagedead-kills-loans.rs similarity index 100% rename from src/test/ui/nll/polonius/storagedead-kills-loans.rs rename to tests/ui/nll/polonius/storagedead-kills-loans.rs diff --git a/src/test/ui/nll/polonius/subset-relations.rs b/tests/ui/nll/polonius/subset-relations.rs similarity index 100% rename from src/test/ui/nll/polonius/subset-relations.rs rename to tests/ui/nll/polonius/subset-relations.rs diff --git a/src/test/ui/nll/polonius/subset-relations.stderr b/tests/ui/nll/polonius/subset-relations.stderr similarity index 100% rename from src/test/ui/nll/polonius/subset-relations.stderr rename to tests/ui/nll/polonius/subset-relations.stderr diff --git a/src/test/ui/nll/process_or_insert_default.rs b/tests/ui/nll/process_or_insert_default.rs similarity index 100% rename from src/test/ui/nll/process_or_insert_default.rs rename to tests/ui/nll/process_or_insert_default.rs diff --git a/src/test/ui/nll/projection-return.rs b/tests/ui/nll/projection-return.rs similarity index 100% rename from src/test/ui/nll/projection-return.rs rename to tests/ui/nll/projection-return.rs diff --git a/src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs b/tests/ui/nll/promotable-mutable-zst-doesnt-conflict.rs similarity index 100% rename from src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs rename to tests/ui/nll/promotable-mutable-zst-doesnt-conflict.rs diff --git a/src/test/ui/nll/promoted-bounds.rs b/tests/ui/nll/promoted-bounds.rs similarity index 100% rename from src/test/ui/nll/promoted-bounds.rs rename to tests/ui/nll/promoted-bounds.rs diff --git a/src/test/ui/nll/promoted-bounds.stderr b/tests/ui/nll/promoted-bounds.stderr similarity index 100% rename from src/test/ui/nll/promoted-bounds.stderr rename to tests/ui/nll/promoted-bounds.stderr diff --git a/src/test/ui/nll/promoted-closure-pair.rs b/tests/ui/nll/promoted-closure-pair.rs similarity index 100% rename from src/test/ui/nll/promoted-closure-pair.rs rename to tests/ui/nll/promoted-closure-pair.rs diff --git a/src/test/ui/nll/promoted-closure-pair.stderr b/tests/ui/nll/promoted-closure-pair.stderr similarity index 100% rename from src/test/ui/nll/promoted-closure-pair.stderr rename to tests/ui/nll/promoted-closure-pair.stderr diff --git a/src/test/ui/nll/promoted-liveness.rs b/tests/ui/nll/promoted-liveness.rs similarity index 100% rename from src/test/ui/nll/promoted-liveness.rs rename to tests/ui/nll/promoted-liveness.rs diff --git a/src/test/ui/nll/rc-loop.rs b/tests/ui/nll/rc-loop.rs similarity index 100% rename from src/test/ui/nll/rc-loop.rs rename to tests/ui/nll/rc-loop.rs diff --git a/src/test/ui/nll/ref-suggestion.rs b/tests/ui/nll/ref-suggestion.rs similarity index 100% rename from src/test/ui/nll/ref-suggestion.rs rename to tests/ui/nll/ref-suggestion.rs diff --git a/src/test/ui/nll/ref-suggestion.stderr b/tests/ui/nll/ref-suggestion.stderr similarity index 100% rename from src/test/ui/nll/ref-suggestion.stderr rename to tests/ui/nll/ref-suggestion.stderr diff --git a/src/test/ui/nll/reference-carried-through-struct-field.rs b/tests/ui/nll/reference-carried-through-struct-field.rs similarity index 100% rename from src/test/ui/nll/reference-carried-through-struct-field.rs rename to tests/ui/nll/reference-carried-through-struct-field.rs diff --git a/src/test/ui/nll/reference-carried-through-struct-field.stderr b/tests/ui/nll/reference-carried-through-struct-field.stderr similarity index 100% rename from src/test/ui/nll/reference-carried-through-struct-field.stderr rename to tests/ui/nll/reference-carried-through-struct-field.stderr diff --git a/src/test/ui/nll/region-ends-after-if-condition.rs b/tests/ui/nll/region-ends-after-if-condition.rs similarity index 100% rename from src/test/ui/nll/region-ends-after-if-condition.rs rename to tests/ui/nll/region-ends-after-if-condition.rs diff --git a/src/test/ui/nll/region-ends-after-if-condition.stderr b/tests/ui/nll/region-ends-after-if-condition.stderr similarity index 100% rename from src/test/ui/nll/region-ends-after-if-condition.stderr rename to tests/ui/nll/region-ends-after-if-condition.stderr diff --git a/src/test/ui/nll/relate_tys/fn-subtype.rs b/tests/ui/nll/relate_tys/fn-subtype.rs similarity index 100% rename from src/test/ui/nll/relate_tys/fn-subtype.rs rename to tests/ui/nll/relate_tys/fn-subtype.rs diff --git a/src/test/ui/nll/relate_tys/fn-subtype.stderr b/tests/ui/nll/relate_tys/fn-subtype.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/fn-subtype.stderr rename to tests/ui/nll/relate_tys/fn-subtype.stderr diff --git a/src/test/ui/nll/relate_tys/hr-fn-aaa-as-aba.rs b/tests/ui/nll/relate_tys/hr-fn-aaa-as-aba.rs similarity index 100% rename from src/test/ui/nll/relate_tys/hr-fn-aaa-as-aba.rs rename to tests/ui/nll/relate_tys/hr-fn-aaa-as-aba.rs diff --git a/src/test/ui/nll/relate_tys/hr-fn-aaa-as-aba.stderr b/tests/ui/nll/relate_tys/hr-fn-aaa-as-aba.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/hr-fn-aaa-as-aba.stderr rename to tests/ui/nll/relate_tys/hr-fn-aaa-as-aba.stderr diff --git a/src/test/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs b/tests/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs similarity index 100% rename from src/test/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs rename to tests/ui/nll/relate_tys/hr-fn-aau-eq-abu.rs diff --git a/src/test/ui/nll/relate_tys/hr-fn-aba-as-aaa.rs b/tests/ui/nll/relate_tys/hr-fn-aba-as-aaa.rs similarity index 100% rename from src/test/ui/nll/relate_tys/hr-fn-aba-as-aaa.rs rename to tests/ui/nll/relate_tys/hr-fn-aba-as-aaa.rs diff --git a/src/test/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.rs b/tests/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.rs similarity index 100% rename from src/test/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.rs rename to tests/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.rs diff --git a/src/test/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.stderr b/tests/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.stderr rename to tests/ui/nll/relate_tys/impl-fn-ignore-binder-via-bottom.stderr diff --git a/src/test/ui/nll/relate_tys/issue-48071.rs b/tests/ui/nll/relate_tys/issue-48071.rs similarity index 100% rename from src/test/ui/nll/relate_tys/issue-48071.rs rename to tests/ui/nll/relate_tys/issue-48071.rs diff --git a/src/test/ui/nll/relate_tys/opaque-hrtb.rs b/tests/ui/nll/relate_tys/opaque-hrtb.rs similarity index 100% rename from src/test/ui/nll/relate_tys/opaque-hrtb.rs rename to tests/ui/nll/relate_tys/opaque-hrtb.rs diff --git a/src/test/ui/nll/relate_tys/opaque-hrtb.stderr b/tests/ui/nll/relate_tys/opaque-hrtb.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/opaque-hrtb.stderr rename to tests/ui/nll/relate_tys/opaque-hrtb.stderr diff --git a/src/test/ui/nll/relate_tys/trait-hrtb.rs b/tests/ui/nll/relate_tys/trait-hrtb.rs similarity index 100% rename from src/test/ui/nll/relate_tys/trait-hrtb.rs rename to tests/ui/nll/relate_tys/trait-hrtb.rs diff --git a/src/test/ui/nll/relate_tys/trait-hrtb.stderr b/tests/ui/nll/relate_tys/trait-hrtb.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/trait-hrtb.stderr rename to tests/ui/nll/relate_tys/trait-hrtb.stderr diff --git a/src/test/ui/nll/relate_tys/universe-violation.rs b/tests/ui/nll/relate_tys/universe-violation.rs similarity index 100% rename from src/test/ui/nll/relate_tys/universe-violation.rs rename to tests/ui/nll/relate_tys/universe-violation.rs diff --git a/src/test/ui/nll/relate_tys/universe-violation.stderr b/tests/ui/nll/relate_tys/universe-violation.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/universe-violation.stderr rename to tests/ui/nll/relate_tys/universe-violation.stderr diff --git a/src/test/ui/nll/relate_tys/var-appears-twice.rs b/tests/ui/nll/relate_tys/var-appears-twice.rs similarity index 100% rename from src/test/ui/nll/relate_tys/var-appears-twice.rs rename to tests/ui/nll/relate_tys/var-appears-twice.rs diff --git a/src/test/ui/nll/relate_tys/var-appears-twice.stderr b/tests/ui/nll/relate_tys/var-appears-twice.stderr similarity index 100% rename from src/test/ui/nll/relate_tys/var-appears-twice.stderr rename to tests/ui/nll/relate_tys/var-appears-twice.stderr diff --git a/src/test/ui/nll/return-ref-mut-issue-46557.rs b/tests/ui/nll/return-ref-mut-issue-46557.rs similarity index 100% rename from src/test/ui/nll/return-ref-mut-issue-46557.rs rename to tests/ui/nll/return-ref-mut-issue-46557.rs diff --git a/src/test/ui/nll/return-ref-mut-issue-46557.stderr b/tests/ui/nll/return-ref-mut-issue-46557.stderr similarity index 100% rename from src/test/ui/nll/return-ref-mut-issue-46557.stderr rename to tests/ui/nll/return-ref-mut-issue-46557.stderr diff --git a/src/test/ui/nll/return_from_loop.rs b/tests/ui/nll/return_from_loop.rs similarity index 100% rename from src/test/ui/nll/return_from_loop.rs rename to tests/ui/nll/return_from_loop.rs diff --git a/src/test/ui/nll/return_from_loop.stderr b/tests/ui/nll/return_from_loop.stderr similarity index 100% rename from src/test/ui/nll/return_from_loop.stderr rename to tests/ui/nll/return_from_loop.stderr diff --git a/src/test/ui/nll/self-assign-ref-mut.rs b/tests/ui/nll/self-assign-ref-mut.rs similarity index 100% rename from src/test/ui/nll/self-assign-ref-mut.rs rename to tests/ui/nll/self-assign-ref-mut.rs diff --git a/src/test/ui/nll/snocat-regression.rs b/tests/ui/nll/snocat-regression.rs similarity index 100% rename from src/test/ui/nll/snocat-regression.rs rename to tests/ui/nll/snocat-regression.rs diff --git a/src/test/ui/nll/snocat-regression.stderr b/tests/ui/nll/snocat-regression.stderr similarity index 100% rename from src/test/ui/nll/snocat-regression.stderr rename to tests/ui/nll/snocat-regression.stderr diff --git a/src/test/ui/nll/trait-associated-constant.rs b/tests/ui/nll/trait-associated-constant.rs similarity index 100% rename from src/test/ui/nll/trait-associated-constant.rs rename to tests/ui/nll/trait-associated-constant.rs diff --git a/src/test/ui/nll/trait-associated-constant.stderr b/tests/ui/nll/trait-associated-constant.stderr similarity index 100% rename from src/test/ui/nll/trait-associated-constant.stderr rename to tests/ui/nll/trait-associated-constant.stderr diff --git a/src/test/ui/nll/ty-outlives/impl-trait-captures.rs b/tests/ui/nll/ty-outlives/impl-trait-captures.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/impl-trait-captures.rs rename to tests/ui/nll/ty-outlives/impl-trait-captures.rs diff --git a/src/test/ui/nll/ty-outlives/impl-trait-captures.stderr b/tests/ui/nll/ty-outlives/impl-trait-captures.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/impl-trait-captures.stderr rename to tests/ui/nll/ty-outlives/impl-trait-captures.stderr diff --git a/src/test/ui/nll/ty-outlives/impl-trait-outlives.rs b/tests/ui/nll/ty-outlives/impl-trait-outlives.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/impl-trait-outlives.rs rename to tests/ui/nll/ty-outlives/impl-trait-outlives.rs diff --git a/src/test/ui/nll/ty-outlives/impl-trait-outlives.stderr b/tests/ui/nll/ty-outlives/impl-trait-outlives.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/impl-trait-outlives.stderr rename to tests/ui/nll/ty-outlives/impl-trait-outlives.stderr diff --git a/src/test/ui/nll/ty-outlives/issue-53789-1.rs b/tests/ui/nll/ty-outlives/issue-53789-1.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/issue-53789-1.rs rename to tests/ui/nll/ty-outlives/issue-53789-1.rs diff --git a/src/test/ui/nll/ty-outlives/issue-53789-2.rs b/tests/ui/nll/ty-outlives/issue-53789-2.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/issue-53789-2.rs rename to tests/ui/nll/ty-outlives/issue-53789-2.rs diff --git a/src/test/ui/nll/ty-outlives/issue-55756.rs b/tests/ui/nll/ty-outlives/issue-55756.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/issue-55756.rs rename to tests/ui/nll/ty-outlives/issue-55756.rs diff --git a/src/test/ui/nll/ty-outlives/projection-body.rs b/tests/ui/nll/ty-outlives/projection-body.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-body.rs rename to tests/ui/nll/ty-outlives/projection-body.rs diff --git a/src/test/ui/nll/ty-outlives/projection-implied-bounds.rs b/tests/ui/nll/ty-outlives/projection-implied-bounds.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-implied-bounds.rs rename to tests/ui/nll/ty-outlives/projection-implied-bounds.rs diff --git a/src/test/ui/nll/ty-outlives/projection-implied-bounds.stderr b/tests/ui/nll/ty-outlives/projection-implied-bounds.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-implied-bounds.stderr rename to tests/ui/nll/ty-outlives/projection-implied-bounds.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-no-regions-closure.rs b/tests/ui/nll/ty-outlives/projection-no-regions-closure.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-no-regions-closure.rs rename to tests/ui/nll/ty-outlives/projection-no-regions-closure.rs diff --git a/src/test/ui/nll/ty-outlives/projection-no-regions-closure.stderr b/tests/ui/nll/ty-outlives/projection-no-regions-closure.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-no-regions-closure.stderr rename to tests/ui/nll/ty-outlives/projection-no-regions-closure.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-no-regions-fn.rs b/tests/ui/nll/ty-outlives/projection-no-regions-fn.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-no-regions-fn.rs rename to tests/ui/nll/ty-outlives/projection-no-regions-fn.rs diff --git a/src/test/ui/nll/ty-outlives/projection-no-regions-fn.stderr b/tests/ui/nll/ty-outlives/projection-no-regions-fn.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-no-regions-fn.stderr rename to tests/ui/nll/ty-outlives/projection-no-regions-fn.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-closure.rs b/tests/ui/nll/ty-outlives/projection-one-region-closure.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-one-region-closure.rs rename to tests/ui/nll/ty-outlives/projection-one-region-closure.rs diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-closure.stderr b/tests/ui/nll/ty-outlives/projection-one-region-closure.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-one-region-closure.stderr rename to tests/ui/nll/ty-outlives/projection-one-region-closure.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.rs b/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.rs rename to tests/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.rs diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.stderr b/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.stderr rename to tests/ui/nll/ty-outlives/projection-one-region-trait-bound-closure.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs b/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs rename to tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr b/tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr rename to tests/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.rs b/tests/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.rs rename to tests/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.rs diff --git a/src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr b/tests/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr rename to tests/ui/nll/ty-outlives/projection-two-region-trait-bound-closure.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.rs b/tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.rs rename to tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.rs diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.stderr b/tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.stderr rename to tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs b/tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs rename to tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr b/tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr rename to tests/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-env.rs b/tests/ui/nll/ty-outlives/projection-where-clause-env.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-env.rs rename to tests/ui/nll/ty-outlives/projection-where-clause-env.rs diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-none.rs b/tests/ui/nll/ty-outlives/projection-where-clause-none.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-none.rs rename to tests/ui/nll/ty-outlives/projection-where-clause-none.rs diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-none.stderr b/tests/ui/nll/ty-outlives/projection-where-clause-none.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-none.stderr rename to tests/ui/nll/ty-outlives/projection-where-clause-none.stderr diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs b/tests/ui/nll/ty-outlives/projection-where-clause-trait.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs rename to tests/ui/nll/ty-outlives/projection-where-clause-trait.rs diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.rs b/tests/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.rs rename to tests/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.rs diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr b/tests/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr rename to tests/ui/nll/ty-outlives/ty-param-closure-approximate-lower-bound.stderr diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.rs b/tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.rs rename to tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.rs diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr b/tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr rename to tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-return-type.stderr diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.rs b/tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.rs rename to tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.rs diff --git a/src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr b/tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr rename to tests/ui/nll/ty-outlives/ty-param-closure-outlives-from-where-clause.stderr diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn-body.rs b/tests/ui/nll/ty-outlives/ty-param-fn-body.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-fn-body.rs rename to tests/ui/nll/ty-outlives/ty-param-fn-body.rs diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr b/tests/ui/nll/ty-outlives/ty-param-fn-body.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-fn-body.stderr rename to tests/ui/nll/ty-outlives/ty-param-fn-body.stderr diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn.rs b/tests/ui/nll/ty-outlives/ty-param-fn.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-fn.rs rename to tests/ui/nll/ty-outlives/ty-param-fn.rs diff --git a/src/test/ui/nll/ty-outlives/ty-param-fn.stderr b/tests/ui/nll/ty-outlives/ty-param-fn.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-fn.stderr rename to tests/ui/nll/ty-outlives/ty-param-fn.stderr diff --git a/src/test/ui/nll/ty-outlives/ty-param-implied-bounds.rs b/tests/ui/nll/ty-outlives/ty-param-implied-bounds.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/ty-param-implied-bounds.rs rename to tests/ui/nll/ty-outlives/ty-param-implied-bounds.rs diff --git a/src/test/ui/nll/ty-outlives/wf-unreachable.rs b/tests/ui/nll/ty-outlives/wf-unreachable.rs similarity index 100% rename from src/test/ui/nll/ty-outlives/wf-unreachable.rs rename to tests/ui/nll/ty-outlives/wf-unreachable.rs diff --git a/src/test/ui/nll/ty-outlives/wf-unreachable.stderr b/tests/ui/nll/ty-outlives/wf-unreachable.stderr similarity index 100% rename from src/test/ui/nll/ty-outlives/wf-unreachable.stderr rename to tests/ui/nll/ty-outlives/wf-unreachable.stderr diff --git a/src/test/ui/nll/type-alias-free-regions.rs b/tests/ui/nll/type-alias-free-regions.rs similarity index 100% rename from src/test/ui/nll/type-alias-free-regions.rs rename to tests/ui/nll/type-alias-free-regions.rs diff --git a/src/test/ui/nll/type-alias-free-regions.stderr b/tests/ui/nll/type-alias-free-regions.stderr similarity index 100% rename from src/test/ui/nll/type-alias-free-regions.stderr rename to tests/ui/nll/type-alias-free-regions.stderr diff --git a/src/test/ui/nll/type-check-pointer-coercions.rs b/tests/ui/nll/type-check-pointer-coercions.rs similarity index 100% rename from src/test/ui/nll/type-check-pointer-coercions.rs rename to tests/ui/nll/type-check-pointer-coercions.rs diff --git a/src/test/ui/nll/type-check-pointer-coercions.stderr b/tests/ui/nll/type-check-pointer-coercions.stderr similarity index 100% rename from src/test/ui/nll/type-check-pointer-coercions.stderr rename to tests/ui/nll/type-check-pointer-coercions.stderr diff --git a/src/test/ui/nll/type-check-pointer-comparisons.rs b/tests/ui/nll/type-check-pointer-comparisons.rs similarity index 100% rename from src/test/ui/nll/type-check-pointer-comparisons.rs rename to tests/ui/nll/type-check-pointer-comparisons.rs diff --git a/src/test/ui/nll/type-check-pointer-comparisons.stderr b/tests/ui/nll/type-check-pointer-comparisons.stderr similarity index 100% rename from src/test/ui/nll/type-check-pointer-comparisons.stderr rename to tests/ui/nll/type-check-pointer-comparisons.stderr diff --git a/src/test/ui/nll/type-test-universe.rs b/tests/ui/nll/type-test-universe.rs similarity index 100% rename from src/test/ui/nll/type-test-universe.rs rename to tests/ui/nll/type-test-universe.rs diff --git a/src/test/ui/nll/type-test-universe.stderr b/tests/ui/nll/type-test-universe.stderr similarity index 100% rename from src/test/ui/nll/type-test-universe.stderr rename to tests/ui/nll/type-test-universe.stderr diff --git a/src/test/ui/nll/unused-mut-issue-50343.fixed b/tests/ui/nll/unused-mut-issue-50343.fixed similarity index 100% rename from src/test/ui/nll/unused-mut-issue-50343.fixed rename to tests/ui/nll/unused-mut-issue-50343.fixed diff --git a/src/test/ui/nll/unused-mut-issue-50343.rs b/tests/ui/nll/unused-mut-issue-50343.rs similarity index 100% rename from src/test/ui/nll/unused-mut-issue-50343.rs rename to tests/ui/nll/unused-mut-issue-50343.rs diff --git a/src/test/ui/nll/unused-mut-issue-50343.stderr b/tests/ui/nll/unused-mut-issue-50343.stderr similarity index 100% rename from src/test/ui/nll/unused-mut-issue-50343.stderr rename to tests/ui/nll/unused-mut-issue-50343.stderr diff --git a/src/test/ui/nll/user-annotations/adt-brace-enums.rs b/tests/ui/nll/user-annotations/adt-brace-enums.rs similarity index 100% rename from src/test/ui/nll/user-annotations/adt-brace-enums.rs rename to tests/ui/nll/user-annotations/adt-brace-enums.rs diff --git a/src/test/ui/nll/user-annotations/adt-brace-enums.stderr b/tests/ui/nll/user-annotations/adt-brace-enums.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/adt-brace-enums.stderr rename to tests/ui/nll/user-annotations/adt-brace-enums.stderr diff --git a/src/test/ui/nll/user-annotations/adt-brace-structs.rs b/tests/ui/nll/user-annotations/adt-brace-structs.rs similarity index 100% rename from src/test/ui/nll/user-annotations/adt-brace-structs.rs rename to tests/ui/nll/user-annotations/adt-brace-structs.rs diff --git a/src/test/ui/nll/user-annotations/adt-brace-structs.stderr b/tests/ui/nll/user-annotations/adt-brace-structs.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/adt-brace-structs.stderr rename to tests/ui/nll/user-annotations/adt-brace-structs.stderr diff --git a/src/test/ui/nll/user-annotations/adt-nullary-enums.rs b/tests/ui/nll/user-annotations/adt-nullary-enums.rs similarity index 100% rename from src/test/ui/nll/user-annotations/adt-nullary-enums.rs rename to tests/ui/nll/user-annotations/adt-nullary-enums.rs diff --git a/src/test/ui/nll/user-annotations/adt-nullary-enums.stderr b/tests/ui/nll/user-annotations/adt-nullary-enums.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/adt-nullary-enums.stderr rename to tests/ui/nll/user-annotations/adt-nullary-enums.stderr diff --git a/src/test/ui/nll/user-annotations/adt-tuple-enums.rs b/tests/ui/nll/user-annotations/adt-tuple-enums.rs similarity index 100% rename from src/test/ui/nll/user-annotations/adt-tuple-enums.rs rename to tests/ui/nll/user-annotations/adt-tuple-enums.rs diff --git a/src/test/ui/nll/user-annotations/adt-tuple-enums.stderr b/tests/ui/nll/user-annotations/adt-tuple-enums.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/adt-tuple-enums.stderr rename to tests/ui/nll/user-annotations/adt-tuple-enums.stderr diff --git a/src/test/ui/nll/user-annotations/adt-tuple-struct-calls.rs b/tests/ui/nll/user-annotations/adt-tuple-struct-calls.rs similarity index 100% rename from src/test/ui/nll/user-annotations/adt-tuple-struct-calls.rs rename to tests/ui/nll/user-annotations/adt-tuple-struct-calls.rs diff --git a/src/test/ui/nll/user-annotations/adt-tuple-struct-calls.stderr b/tests/ui/nll/user-annotations/adt-tuple-struct-calls.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/adt-tuple-struct-calls.stderr rename to tests/ui/nll/user-annotations/adt-tuple-struct-calls.stderr diff --git a/src/test/ui/nll/user-annotations/adt-tuple-struct.rs b/tests/ui/nll/user-annotations/adt-tuple-struct.rs similarity index 100% rename from src/test/ui/nll/user-annotations/adt-tuple-struct.rs rename to tests/ui/nll/user-annotations/adt-tuple-struct.rs diff --git a/src/test/ui/nll/user-annotations/adt-tuple-struct.stderr b/tests/ui/nll/user-annotations/adt-tuple-struct.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/adt-tuple-struct.stderr rename to tests/ui/nll/user-annotations/adt-tuple-struct.stderr diff --git a/src/test/ui/nll/user-annotations/ascribed-type-wf.rs b/tests/ui/nll/user-annotations/ascribed-type-wf.rs similarity index 100% rename from src/test/ui/nll/user-annotations/ascribed-type-wf.rs rename to tests/ui/nll/user-annotations/ascribed-type-wf.rs diff --git a/src/test/ui/nll/user-annotations/ascribed-type-wf.stderr b/tests/ui/nll/user-annotations/ascribed-type-wf.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/ascribed-type-wf.stderr rename to tests/ui/nll/user-annotations/ascribed-type-wf.stderr diff --git a/src/test/ui/nll/user-annotations/cast_static_lifetime.rs b/tests/ui/nll/user-annotations/cast_static_lifetime.rs similarity index 100% rename from src/test/ui/nll/user-annotations/cast_static_lifetime.rs rename to tests/ui/nll/user-annotations/cast_static_lifetime.rs diff --git a/src/test/ui/nll/user-annotations/cast_static_lifetime.stderr b/tests/ui/nll/user-annotations/cast_static_lifetime.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/cast_static_lifetime.stderr rename to tests/ui/nll/user-annotations/cast_static_lifetime.stderr diff --git a/src/test/ui/nll/user-annotations/closure-sig.rs b/tests/ui/nll/user-annotations/closure-sig.rs similarity index 100% rename from src/test/ui/nll/user-annotations/closure-sig.rs rename to tests/ui/nll/user-annotations/closure-sig.rs diff --git a/src/test/ui/nll/user-annotations/closure-substs.polonius.stderr b/tests/ui/nll/user-annotations/closure-substs.polonius.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/closure-substs.polonius.stderr rename to tests/ui/nll/user-annotations/closure-substs.polonius.stderr diff --git a/src/test/ui/nll/user-annotations/closure-substs.rs b/tests/ui/nll/user-annotations/closure-substs.rs similarity index 100% rename from src/test/ui/nll/user-annotations/closure-substs.rs rename to tests/ui/nll/user-annotations/closure-substs.rs diff --git a/src/test/ui/nll/user-annotations/closure-substs.stderr b/tests/ui/nll/user-annotations/closure-substs.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/closure-substs.stderr rename to tests/ui/nll/user-annotations/closure-substs.stderr diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs b/tests/ui/nll/user-annotations/constant-in-expr-inherent-1.rs similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.rs rename to tests/ui/nll/user-annotations/constant-in-expr-inherent-1.rs diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.stderr b/tests/ui/nll/user-annotations/constant-in-expr-inherent-1.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-inherent-1.stderr rename to tests/ui/nll/user-annotations/constant-in-expr-inherent-1.stderr diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-inherent-2.rs b/tests/ui/nll/user-annotations/constant-in-expr-inherent-2.rs similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-inherent-2.rs rename to tests/ui/nll/user-annotations/constant-in-expr-inherent-2.rs diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-inherent-2.stderr b/tests/ui/nll/user-annotations/constant-in-expr-inherent-2.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-inherent-2.stderr rename to tests/ui/nll/user-annotations/constant-in-expr-inherent-2.stderr diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-normalize.rs b/tests/ui/nll/user-annotations/constant-in-expr-normalize.rs similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-normalize.rs rename to tests/ui/nll/user-annotations/constant-in-expr-normalize.rs diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-normalize.stderr b/tests/ui/nll/user-annotations/constant-in-expr-normalize.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-normalize.stderr rename to tests/ui/nll/user-annotations/constant-in-expr-normalize.stderr diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-trait-item-1.rs b/tests/ui/nll/user-annotations/constant-in-expr-trait-item-1.rs similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-trait-item-1.rs rename to tests/ui/nll/user-annotations/constant-in-expr-trait-item-1.rs diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-trait-item-1.stderr b/tests/ui/nll/user-annotations/constant-in-expr-trait-item-1.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-trait-item-1.stderr rename to tests/ui/nll/user-annotations/constant-in-expr-trait-item-1.stderr diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-trait-item-2.rs b/tests/ui/nll/user-annotations/constant-in-expr-trait-item-2.rs similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-trait-item-2.rs rename to tests/ui/nll/user-annotations/constant-in-expr-trait-item-2.rs diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-trait-item-2.stderr b/tests/ui/nll/user-annotations/constant-in-expr-trait-item-2.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-trait-item-2.stderr rename to tests/ui/nll/user-annotations/constant-in-expr-trait-item-2.stderr diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-trait-item-3.rs b/tests/ui/nll/user-annotations/constant-in-expr-trait-item-3.rs similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-trait-item-3.rs rename to tests/ui/nll/user-annotations/constant-in-expr-trait-item-3.rs diff --git a/src/test/ui/nll/user-annotations/constant-in-expr-trait-item-3.stderr b/tests/ui/nll/user-annotations/constant-in-expr-trait-item-3.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/constant-in-expr-trait-item-3.stderr rename to tests/ui/nll/user-annotations/constant-in-expr-trait-item-3.stderr diff --git a/src/test/ui/nll/user-annotations/downcast-infer.rs b/tests/ui/nll/user-annotations/downcast-infer.rs similarity index 100% rename from src/test/ui/nll/user-annotations/downcast-infer.rs rename to tests/ui/nll/user-annotations/downcast-infer.rs diff --git a/src/test/ui/nll/user-annotations/dump-adt-brace-struct.rs b/tests/ui/nll/user-annotations/dump-adt-brace-struct.rs similarity index 100% rename from src/test/ui/nll/user-annotations/dump-adt-brace-struct.rs rename to tests/ui/nll/user-annotations/dump-adt-brace-struct.rs diff --git a/src/test/ui/nll/user-annotations/dump-adt-brace-struct.stderr b/tests/ui/nll/user-annotations/dump-adt-brace-struct.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/dump-adt-brace-struct.stderr rename to tests/ui/nll/user-annotations/dump-adt-brace-struct.stderr diff --git a/src/test/ui/nll/user-annotations/dump-fn-method.rs b/tests/ui/nll/user-annotations/dump-fn-method.rs similarity index 100% rename from src/test/ui/nll/user-annotations/dump-fn-method.rs rename to tests/ui/nll/user-annotations/dump-fn-method.rs diff --git a/src/test/ui/nll/user-annotations/dump-fn-method.stderr b/tests/ui/nll/user-annotations/dump-fn-method.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/dump-fn-method.stderr rename to tests/ui/nll/user-annotations/dump-fn-method.stderr diff --git a/src/test/ui/nll/user-annotations/fns.rs b/tests/ui/nll/user-annotations/fns.rs similarity index 100% rename from src/test/ui/nll/user-annotations/fns.rs rename to tests/ui/nll/user-annotations/fns.rs diff --git a/src/test/ui/nll/user-annotations/fns.stderr b/tests/ui/nll/user-annotations/fns.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/fns.stderr rename to tests/ui/nll/user-annotations/fns.stderr diff --git a/src/test/ui/nll/user-annotations/inherent-associated-constants.rs b/tests/ui/nll/user-annotations/inherent-associated-constants.rs similarity index 100% rename from src/test/ui/nll/user-annotations/inherent-associated-constants.rs rename to tests/ui/nll/user-annotations/inherent-associated-constants.rs diff --git a/src/test/ui/nll/user-annotations/inherent-associated-constants.stderr b/tests/ui/nll/user-annotations/inherent-associated-constants.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/inherent-associated-constants.stderr rename to tests/ui/nll/user-annotations/inherent-associated-constants.stderr diff --git a/src/test/ui/nll/user-annotations/issue-54124.rs b/tests/ui/nll/user-annotations/issue-54124.rs similarity index 100% rename from src/test/ui/nll/user-annotations/issue-54124.rs rename to tests/ui/nll/user-annotations/issue-54124.rs diff --git a/src/test/ui/nll/user-annotations/issue-54124.stderr b/tests/ui/nll/user-annotations/issue-54124.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/issue-54124.stderr rename to tests/ui/nll/user-annotations/issue-54124.stderr diff --git a/src/test/ui/nll/user-annotations/issue-54570-bootstrapping.rs b/tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs similarity index 100% rename from src/test/ui/nll/user-annotations/issue-54570-bootstrapping.rs rename to tests/ui/nll/user-annotations/issue-54570-bootstrapping.rs diff --git a/src/test/ui/nll/user-annotations/issue-55219.rs b/tests/ui/nll/user-annotations/issue-55219.rs similarity index 100% rename from src/test/ui/nll/user-annotations/issue-55219.rs rename to tests/ui/nll/user-annotations/issue-55219.rs diff --git a/src/test/ui/nll/user-annotations/issue-55241.rs b/tests/ui/nll/user-annotations/issue-55241.rs similarity index 100% rename from src/test/ui/nll/user-annotations/issue-55241.rs rename to tests/ui/nll/user-annotations/issue-55241.rs diff --git a/src/test/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs b/tests/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs similarity index 100% rename from src/test/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs rename to tests/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.rs diff --git a/src/test/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.stderr b/tests/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.stderr rename to tests/ui/nll/user-annotations/issue-55748-pat-types-constrain-bindings.stderr diff --git a/src/test/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs b/tests/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs similarity index 100% rename from src/test/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs rename to tests/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.rs diff --git a/src/test/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.stderr b/tests/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.stderr rename to tests/ui/nll/user-annotations/issue-57731-ascibed-coupled-types.stderr diff --git a/src/test/ui/nll/user-annotations/method-call.rs b/tests/ui/nll/user-annotations/method-call.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-call.rs rename to tests/ui/nll/user-annotations/method-call.rs diff --git a/src/test/ui/nll/user-annotations/method-call.stderr b/tests/ui/nll/user-annotations/method-call.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-call.stderr rename to tests/ui/nll/user-annotations/method-call.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-1.rs b/tests/ui/nll/user-annotations/method-ufcs-1.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-1.rs rename to tests/ui/nll/user-annotations/method-ufcs-1.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-1.stderr b/tests/ui/nll/user-annotations/method-ufcs-1.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-1.stderr rename to tests/ui/nll/user-annotations/method-ufcs-1.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-2.rs b/tests/ui/nll/user-annotations/method-ufcs-2.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-2.rs rename to tests/ui/nll/user-annotations/method-ufcs-2.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-2.stderr b/tests/ui/nll/user-annotations/method-ufcs-2.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-2.stderr rename to tests/ui/nll/user-annotations/method-ufcs-2.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-3.rs b/tests/ui/nll/user-annotations/method-ufcs-3.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-3.rs rename to tests/ui/nll/user-annotations/method-ufcs-3.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-3.stderr b/tests/ui/nll/user-annotations/method-ufcs-3.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-3.stderr rename to tests/ui/nll/user-annotations/method-ufcs-3.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-1.rs b/tests/ui/nll/user-annotations/method-ufcs-inherent-1.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-1.rs rename to tests/ui/nll/user-annotations/method-ufcs-inherent-1.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-1.stderr b/tests/ui/nll/user-annotations/method-ufcs-inherent-1.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-1.stderr rename to tests/ui/nll/user-annotations/method-ufcs-inherent-1.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-2.rs b/tests/ui/nll/user-annotations/method-ufcs-inherent-2.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-2.rs rename to tests/ui/nll/user-annotations/method-ufcs-inherent-2.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-2.stderr b/tests/ui/nll/user-annotations/method-ufcs-inherent-2.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-2.stderr rename to tests/ui/nll/user-annotations/method-ufcs-inherent-2.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-3.rs b/tests/ui/nll/user-annotations/method-ufcs-inherent-3.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-3.rs rename to tests/ui/nll/user-annotations/method-ufcs-inherent-3.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-3.stderr b/tests/ui/nll/user-annotations/method-ufcs-inherent-3.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-3.stderr rename to tests/ui/nll/user-annotations/method-ufcs-inherent-3.stderr diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-4.rs b/tests/ui/nll/user-annotations/method-ufcs-inherent-4.rs similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-4.rs rename to tests/ui/nll/user-annotations/method-ufcs-inherent-4.rs diff --git a/src/test/ui/nll/user-annotations/method-ufcs-inherent-4.stderr b/tests/ui/nll/user-annotations/method-ufcs-inherent-4.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/method-ufcs-inherent-4.stderr rename to tests/ui/nll/user-annotations/method-ufcs-inherent-4.stderr diff --git a/src/test/ui/nll/user-annotations/normalization-2.rs b/tests/ui/nll/user-annotations/normalization-2.rs similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-2.rs rename to tests/ui/nll/user-annotations/normalization-2.rs diff --git a/src/test/ui/nll/user-annotations/normalization-2.stderr b/tests/ui/nll/user-annotations/normalization-2.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-2.stderr rename to tests/ui/nll/user-annotations/normalization-2.stderr diff --git a/src/test/ui/nll/user-annotations/normalization-default.rs b/tests/ui/nll/user-annotations/normalization-default.rs similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-default.rs rename to tests/ui/nll/user-annotations/normalization-default.rs diff --git a/src/test/ui/nll/user-annotations/normalization-default.stderr b/tests/ui/nll/user-annotations/normalization-default.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-default.stderr rename to tests/ui/nll/user-annotations/normalization-default.stderr diff --git a/src/test/ui/nll/user-annotations/normalization-infer.rs b/tests/ui/nll/user-annotations/normalization-infer.rs similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-infer.rs rename to tests/ui/nll/user-annotations/normalization-infer.rs diff --git a/src/test/ui/nll/user-annotations/normalization-infer.stderr b/tests/ui/nll/user-annotations/normalization-infer.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-infer.stderr rename to tests/ui/nll/user-annotations/normalization-infer.stderr diff --git a/src/test/ui/nll/user-annotations/normalization-self.rs b/tests/ui/nll/user-annotations/normalization-self.rs similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-self.rs rename to tests/ui/nll/user-annotations/normalization-self.rs diff --git a/src/test/ui/nll/user-annotations/normalization-self.stderr b/tests/ui/nll/user-annotations/normalization-self.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/normalization-self.stderr rename to tests/ui/nll/user-annotations/normalization-self.stderr diff --git a/src/test/ui/nll/user-annotations/normalization.rs b/tests/ui/nll/user-annotations/normalization.rs similarity index 100% rename from src/test/ui/nll/user-annotations/normalization.rs rename to tests/ui/nll/user-annotations/normalization.rs diff --git a/src/test/ui/nll/user-annotations/normalization.stderr b/tests/ui/nll/user-annotations/normalization.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/normalization.stderr rename to tests/ui/nll/user-annotations/normalization.stderr diff --git a/src/test/ui/nll/user-annotations/normalize-self-ty.rs b/tests/ui/nll/user-annotations/normalize-self-ty.rs similarity index 100% rename from src/test/ui/nll/user-annotations/normalize-self-ty.rs rename to tests/ui/nll/user-annotations/normalize-self-ty.rs diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.rs b/tests/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.rs similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.rs rename to tests/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.rs diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.stderr b/tests/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.stderr rename to tests/ui/nll/user-annotations/pattern_substs_on_brace_enum_variant.stderr diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_brace_struct.rs b/tests/ui/nll/user-annotations/pattern_substs_on_brace_struct.rs similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_brace_struct.rs rename to tests/ui/nll/user-annotations/pattern_substs_on_brace_struct.rs diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_brace_struct.stderr b/tests/ui/nll/user-annotations/pattern_substs_on_brace_struct.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_brace_struct.stderr rename to tests/ui/nll/user-annotations/pattern_substs_on_brace_struct.stderr diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.rs b/tests/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.rs similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.rs rename to tests/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.rs diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.stderr b/tests/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.stderr rename to tests/ui/nll/user-annotations/pattern_substs_on_tuple_enum_variant.stderr diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_tuple_struct.rs b/tests/ui/nll/user-annotations/pattern_substs_on_tuple_struct.rs similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_tuple_struct.rs rename to tests/ui/nll/user-annotations/pattern_substs_on_tuple_struct.rs diff --git a/src/test/ui/nll/user-annotations/pattern_substs_on_tuple_struct.stderr b/tests/ui/nll/user-annotations/pattern_substs_on_tuple_struct.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/pattern_substs_on_tuple_struct.stderr rename to tests/ui/nll/user-annotations/pattern_substs_on_tuple_struct.stderr diff --git a/src/test/ui/nll/user-annotations/patterns.rs b/tests/ui/nll/user-annotations/patterns.rs similarity index 100% rename from src/test/ui/nll/user-annotations/patterns.rs rename to tests/ui/nll/user-annotations/patterns.rs diff --git a/src/test/ui/nll/user-annotations/patterns.stderr b/tests/ui/nll/user-annotations/patterns.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/patterns.stderr rename to tests/ui/nll/user-annotations/patterns.stderr diff --git a/src/test/ui/nll/user-annotations/promoted-annotation.rs b/tests/ui/nll/user-annotations/promoted-annotation.rs similarity index 100% rename from src/test/ui/nll/user-annotations/promoted-annotation.rs rename to tests/ui/nll/user-annotations/promoted-annotation.rs diff --git a/src/test/ui/nll/user-annotations/promoted-annotation.stderr b/tests/ui/nll/user-annotations/promoted-annotation.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/promoted-annotation.stderr rename to tests/ui/nll/user-annotations/promoted-annotation.stderr diff --git a/src/test/ui/nll/user-annotations/type-annotation-with-hrtb.rs b/tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs similarity index 100% rename from src/test/ui/nll/user-annotations/type-annotation-with-hrtb.rs rename to tests/ui/nll/user-annotations/type-annotation-with-hrtb.rs diff --git a/src/test/ui/nll/user-annotations/type_ascription_static_lifetime.rs b/tests/ui/nll/user-annotations/type_ascription_static_lifetime.rs similarity index 100% rename from src/test/ui/nll/user-annotations/type_ascription_static_lifetime.rs rename to tests/ui/nll/user-annotations/type_ascription_static_lifetime.rs diff --git a/src/test/ui/nll/user-annotations/type_ascription_static_lifetime.stderr b/tests/ui/nll/user-annotations/type_ascription_static_lifetime.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/type_ascription_static_lifetime.stderr rename to tests/ui/nll/user-annotations/type_ascription_static_lifetime.stderr diff --git a/src/test/ui/nll/user-annotations/wf-self-type.rs b/tests/ui/nll/user-annotations/wf-self-type.rs similarity index 100% rename from src/test/ui/nll/user-annotations/wf-self-type.rs rename to tests/ui/nll/user-annotations/wf-self-type.rs diff --git a/src/test/ui/nll/user-annotations/wf-self-type.stderr b/tests/ui/nll/user-annotations/wf-self-type.stderr similarity index 100% rename from src/test/ui/nll/user-annotations/wf-self-type.stderr rename to tests/ui/nll/user-annotations/wf-self-type.stderr diff --git a/src/test/ui/nll/vimwiki-core-regression.rs b/tests/ui/nll/vimwiki-core-regression.rs similarity index 100% rename from src/test/ui/nll/vimwiki-core-regression.rs rename to tests/ui/nll/vimwiki-core-regression.rs diff --git a/src/test/ui/nll/where_clauses_in_functions.rs b/tests/ui/nll/where_clauses_in_functions.rs similarity index 100% rename from src/test/ui/nll/where_clauses_in_functions.rs rename to tests/ui/nll/where_clauses_in_functions.rs diff --git a/src/test/ui/nll/where_clauses_in_functions.stderr b/tests/ui/nll/where_clauses_in_functions.stderr similarity index 100% rename from src/test/ui/nll/where_clauses_in_functions.stderr rename to tests/ui/nll/where_clauses_in_functions.stderr diff --git a/src/test/ui/nll/where_clauses_in_structs.rs b/tests/ui/nll/where_clauses_in_structs.rs similarity index 100% rename from src/test/ui/nll/where_clauses_in_structs.rs rename to tests/ui/nll/where_clauses_in_structs.rs diff --git a/src/test/ui/nll/where_clauses_in_structs.stderr b/tests/ui/nll/where_clauses_in_structs.stderr similarity index 100% rename from src/test/ui/nll/where_clauses_in_structs.stderr rename to tests/ui/nll/where_clauses_in_structs.stderr diff --git a/src/test/ui/no-capture-arc.rs b/tests/ui/no-capture-arc.rs similarity index 100% rename from src/test/ui/no-capture-arc.rs rename to tests/ui/no-capture-arc.rs diff --git a/src/test/ui/no-capture-arc.stderr b/tests/ui/no-capture-arc.stderr similarity index 100% rename from src/test/ui/no-capture-arc.stderr rename to tests/ui/no-capture-arc.stderr diff --git a/src/test/ui/no-core-1.rs b/tests/ui/no-core-1.rs similarity index 100% rename from src/test/ui/no-core-1.rs rename to tests/ui/no-core-1.rs diff --git a/src/test/ui/no-core-2.rs b/tests/ui/no-core-2.rs similarity index 100% rename from src/test/ui/no-core-2.rs rename to tests/ui/no-core-2.rs diff --git a/src/test/ui/no-link-unknown-crate.rs b/tests/ui/no-link-unknown-crate.rs similarity index 100% rename from src/test/ui/no-link-unknown-crate.rs rename to tests/ui/no-link-unknown-crate.rs diff --git a/src/test/ui/no-link-unknown-crate.stderr b/tests/ui/no-link-unknown-crate.stderr similarity index 100% rename from src/test/ui/no-link-unknown-crate.stderr rename to tests/ui/no-link-unknown-crate.stderr diff --git a/src/test/ui/no-patterns-in-args-2.rs b/tests/ui/no-patterns-in-args-2.rs similarity index 100% rename from src/test/ui/no-patterns-in-args-2.rs rename to tests/ui/no-patterns-in-args-2.rs diff --git a/src/test/ui/no-patterns-in-args-2.stderr b/tests/ui/no-patterns-in-args-2.stderr similarity index 100% rename from src/test/ui/no-patterns-in-args-2.stderr rename to tests/ui/no-patterns-in-args-2.stderr diff --git a/src/test/ui/no-patterns-in-args-macro.rs b/tests/ui/no-patterns-in-args-macro.rs similarity index 100% rename from src/test/ui/no-patterns-in-args-macro.rs rename to tests/ui/no-patterns-in-args-macro.rs diff --git a/src/test/ui/no-patterns-in-args-macro.stderr b/tests/ui/no-patterns-in-args-macro.stderr similarity index 100% rename from src/test/ui/no-patterns-in-args-macro.stderr rename to tests/ui/no-patterns-in-args-macro.stderr diff --git a/src/test/ui/no-patterns-in-args.rs b/tests/ui/no-patterns-in-args.rs similarity index 100% rename from src/test/ui/no-patterns-in-args.rs rename to tests/ui/no-patterns-in-args.rs diff --git a/src/test/ui/no-patterns-in-args.stderr b/tests/ui/no-patterns-in-args.stderr similarity index 100% rename from src/test/ui/no-patterns-in-args.stderr rename to tests/ui/no-patterns-in-args.stderr diff --git a/src/test/ui/no-reuse-move-arc.rs b/tests/ui/no-reuse-move-arc.rs similarity index 100% rename from src/test/ui/no-reuse-move-arc.rs rename to tests/ui/no-reuse-move-arc.rs diff --git a/src/test/ui/no-reuse-move-arc.stderr b/tests/ui/no-reuse-move-arc.stderr similarity index 100% rename from src/test/ui/no-reuse-move-arc.stderr rename to tests/ui/no-reuse-move-arc.stderr diff --git a/src/test/ui/no-send-res-ports.rs b/tests/ui/no-send-res-ports.rs similarity index 100% rename from src/test/ui/no-send-res-ports.rs rename to tests/ui/no-send-res-ports.rs diff --git a/src/test/ui/no-send-res-ports.stderr b/tests/ui/no-send-res-ports.stderr similarity index 100% rename from src/test/ui/no-send-res-ports.stderr rename to tests/ui/no-send-res-ports.stderr diff --git a/src/test/ui/no-warn-on-field-replace-issue-34101.rs b/tests/ui/no-warn-on-field-replace-issue-34101.rs similarity index 100% rename from src/test/ui/no-warn-on-field-replace-issue-34101.rs rename to tests/ui/no-warn-on-field-replace-issue-34101.rs diff --git a/src/test/ui/no_crate_type.rs b/tests/ui/no_crate_type.rs similarity index 100% rename from src/test/ui/no_crate_type.rs rename to tests/ui/no_crate_type.rs diff --git a/src/test/ui/no_crate_type.stderr b/tests/ui/no_crate_type.stderr similarity index 100% rename from src/test/ui/no_crate_type.stderr rename to tests/ui/no_crate_type.stderr diff --git a/src/test/ui/no_send-enum.rs b/tests/ui/no_send-enum.rs similarity index 100% rename from src/test/ui/no_send-enum.rs rename to tests/ui/no_send-enum.rs diff --git a/src/test/ui/no_send-enum.stderr b/tests/ui/no_send-enum.stderr similarity index 100% rename from src/test/ui/no_send-enum.stderr rename to tests/ui/no_send-enum.stderr diff --git a/src/test/ui/no_send-rc.rs b/tests/ui/no_send-rc.rs similarity index 100% rename from src/test/ui/no_send-rc.rs rename to tests/ui/no_send-rc.rs diff --git a/src/test/ui/no_send-rc.stderr b/tests/ui/no_send-rc.stderr similarity index 100% rename from src/test/ui/no_send-rc.stderr rename to tests/ui/no_send-rc.stderr diff --git a/src/test/ui/no_share-enum.rs b/tests/ui/no_share-enum.rs similarity index 100% rename from src/test/ui/no_share-enum.rs rename to tests/ui/no_share-enum.rs diff --git a/src/test/ui/no_share-enum.stderr b/tests/ui/no_share-enum.stderr similarity index 100% rename from src/test/ui/no_share-enum.stderr rename to tests/ui/no_share-enum.stderr diff --git a/src/test/ui/no_share-struct.rs b/tests/ui/no_share-struct.rs similarity index 100% rename from src/test/ui/no_share-struct.rs rename to tests/ui/no_share-struct.rs diff --git a/src/test/ui/no_share-struct.stderr b/tests/ui/no_share-struct.stderr similarity index 100% rename from src/test/ui/no_share-struct.stderr rename to tests/ui/no_share-struct.stderr diff --git a/src/test/ui/noexporttypeexe.rs b/tests/ui/noexporttypeexe.rs similarity index 100% rename from src/test/ui/noexporttypeexe.rs rename to tests/ui/noexporttypeexe.rs diff --git a/src/test/ui/noexporttypeexe.stderr b/tests/ui/noexporttypeexe.stderr similarity index 100% rename from src/test/ui/noexporttypeexe.stderr rename to tests/ui/noexporttypeexe.stderr diff --git a/src/test/ui/non-constant-expr-for-arr-len.rs b/tests/ui/non-constant-expr-for-arr-len.rs similarity index 100% rename from src/test/ui/non-constant-expr-for-arr-len.rs rename to tests/ui/non-constant-expr-for-arr-len.rs diff --git a/src/test/ui/non-constant-expr-for-arr-len.stderr b/tests/ui/non-constant-expr-for-arr-len.stderr similarity index 100% rename from src/test/ui/non-constant-expr-for-arr-len.stderr rename to tests/ui/non-constant-expr-for-arr-len.stderr diff --git a/src/test/ui/non-copyable-void.rs b/tests/ui/non-copyable-void.rs similarity index 100% rename from src/test/ui/non-copyable-void.rs rename to tests/ui/non-copyable-void.rs diff --git a/src/test/ui/non-copyable-void.stderr b/tests/ui/non-copyable-void.stderr similarity index 100% rename from src/test/ui/non-copyable-void.stderr rename to tests/ui/non-copyable-void.stderr diff --git a/src/test/ui/non-fmt-panic.fixed b/tests/ui/non-fmt-panic.fixed similarity index 100% rename from src/test/ui/non-fmt-panic.fixed rename to tests/ui/non-fmt-panic.fixed diff --git a/src/test/ui/non-fmt-panic.rs b/tests/ui/non-fmt-panic.rs similarity index 100% rename from src/test/ui/non-fmt-panic.rs rename to tests/ui/non-fmt-panic.rs diff --git a/src/test/ui/non-fmt-panic.stderr b/tests/ui/non-fmt-panic.stderr similarity index 100% rename from src/test/ui/non-fmt-panic.stderr rename to tests/ui/non-fmt-panic.stderr diff --git a/src/test/ui/non-ice-error-on-worker-io-fail.rs b/tests/ui/non-ice-error-on-worker-io-fail.rs similarity index 100% rename from src/test/ui/non-ice-error-on-worker-io-fail.rs rename to tests/ui/non-ice-error-on-worker-io-fail.rs diff --git a/src/test/ui/non-ice-error-on-worker-io-fail.stderr b/tests/ui/non-ice-error-on-worker-io-fail.stderr similarity index 100% rename from src/test/ui/non-ice-error-on-worker-io-fail.stderr rename to tests/ui/non-ice-error-on-worker-io-fail.stderr diff --git a/src/test/ui/non_modrs_mods/foors_mod.rs b/tests/ui/non_modrs_mods/foors_mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod.rs rename to tests/ui/non_modrs_mods/foors_mod.rs diff --git a/src/test/ui/non_modrs_mods/foors_mod/compiletest-ignore-dir b/tests/ui/non_modrs_mods/foors_mod/compiletest-ignore-dir similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod/compiletest-ignore-dir rename to tests/ui/non_modrs_mods/foors_mod/compiletest-ignore-dir diff --git a/src/test/ui/non_modrs_mods/foors_mod/inline/somename.rs b/tests/ui/non_modrs_mods/foors_mod/inline/somename.rs similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod/inline/somename.rs rename to tests/ui/non_modrs_mods/foors_mod/inline/somename.rs diff --git a/src/test/ui/non_modrs_mods/foors_mod/inner_foors_mod.rs b/tests/ui/non_modrs_mods/foors_mod/inner_foors_mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod/inner_foors_mod.rs rename to tests/ui/non_modrs_mods/foors_mod/inner_foors_mod.rs diff --git a/src/test/ui/non_modrs_mods/foors_mod/inner_foors_mod/innest.rs b/tests/ui/non_modrs_mods/foors_mod/inner_foors_mod/innest.rs similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod/inner_foors_mod/innest.rs rename to tests/ui/non_modrs_mods/foors_mod/inner_foors_mod/innest.rs diff --git a/src/test/ui/non_modrs_mods/foors_mod/inner_modrs_mod/innest.rs b/tests/ui/non_modrs_mods/foors_mod/inner_modrs_mod/innest.rs similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod/inner_modrs_mod/innest.rs rename to tests/ui/non_modrs_mods/foors_mod/inner_modrs_mod/innest.rs diff --git a/src/test/ui/non_modrs_mods/foors_mod/inner_modrs_mod/mod.rs b/tests/ui/non_modrs_mods/foors_mod/inner_modrs_mod/mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/foors_mod/inner_modrs_mod/mod.rs rename to tests/ui/non_modrs_mods/foors_mod/inner_modrs_mod/mod.rs diff --git a/src/test/ui/non_modrs_mods/modrs_mod/compiletest-ignore-dir b/tests/ui/non_modrs_mods/modrs_mod/compiletest-ignore-dir similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/compiletest-ignore-dir rename to tests/ui/non_modrs_mods/modrs_mod/compiletest-ignore-dir diff --git a/src/test/ui/non_modrs_mods/modrs_mod/inline/somename.rs b/tests/ui/non_modrs_mods/modrs_mod/inline/somename.rs similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/inline/somename.rs rename to tests/ui/non_modrs_mods/modrs_mod/inline/somename.rs diff --git a/src/test/ui/non_modrs_mods/modrs_mod/inner_foors_mod.rs b/tests/ui/non_modrs_mods/modrs_mod/inner_foors_mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/inner_foors_mod.rs rename to tests/ui/non_modrs_mods/modrs_mod/inner_foors_mod.rs diff --git a/src/test/ui/non_modrs_mods/modrs_mod/inner_foors_mod/innest.rs b/tests/ui/non_modrs_mods/modrs_mod/inner_foors_mod/innest.rs similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/inner_foors_mod/innest.rs rename to tests/ui/non_modrs_mods/modrs_mod/inner_foors_mod/innest.rs diff --git a/src/test/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/innest.rs b/tests/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/innest.rs similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/innest.rs rename to tests/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/innest.rs diff --git a/src/test/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/mod.rs b/tests/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/mod.rs rename to tests/ui/non_modrs_mods/modrs_mod/inner_modrs_mod/mod.rs diff --git a/src/test/ui/non_modrs_mods/modrs_mod/mod.rs b/tests/ui/non_modrs_mods/modrs_mod/mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/modrs_mod/mod.rs rename to tests/ui/non_modrs_mods/modrs_mod/mod.rs diff --git a/src/test/ui/non_modrs_mods/non_modrs_mods.rs b/tests/ui/non_modrs_mods/non_modrs_mods.rs similarity index 100% rename from src/test/ui/non_modrs_mods/non_modrs_mods.rs rename to tests/ui/non_modrs_mods/non_modrs_mods.rs diff --git a/src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/arbitrary_name.rs b/tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/arbitrary_name.rs similarity index 100% rename from src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/arbitrary_name.rs rename to tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/arbitrary_name.rs diff --git a/src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/compiletest-ignore-dir b/tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/compiletest-ignore-dir similarity index 100% rename from src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/compiletest-ignore-dir rename to tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/compiletest-ignore-dir diff --git a/src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/innest.rs b/tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/innest.rs similarity index 100% rename from src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/innest.rs rename to tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/innest.rs diff --git a/src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/mod.rs b/tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/mod.rs rename to tests/ui/non_modrs_mods/some_crazy_attr_mod_dir/inner_modrs_mod/mod.rs diff --git a/src/test/ui/non_modrs_mods_and_inline_mods/non_modrs_mods_and_inline_mods.rs b/tests/ui/non_modrs_mods_and_inline_mods/non_modrs_mods_and_inline_mods.rs similarity index 100% rename from src/test/ui/non_modrs_mods_and_inline_mods/non_modrs_mods_and_inline_mods.rs rename to tests/ui/non_modrs_mods_and_inline_mods/non_modrs_mods_and_inline_mods.rs diff --git a/src/test/ui/non_modrs_mods_and_inline_mods/x.rs b/tests/ui/non_modrs_mods_and_inline_mods/x.rs similarity index 100% rename from src/test/ui/non_modrs_mods_and_inline_mods/x.rs rename to tests/ui/non_modrs_mods_and_inline_mods/x.rs diff --git a/src/test/ui/non_modrs_mods_and_inline_mods/x/y/z/mod.rs b/tests/ui/non_modrs_mods_and_inline_mods/x/y/z/mod.rs similarity index 100% rename from src/test/ui/non_modrs_mods_and_inline_mods/x/y/z/mod.rs rename to tests/ui/non_modrs_mods_and_inline_mods/x/y/z/mod.rs diff --git a/src/test/ui/noncopyable-class.rs b/tests/ui/noncopyable-class.rs similarity index 100% rename from src/test/ui/noncopyable-class.rs rename to tests/ui/noncopyable-class.rs diff --git a/src/test/ui/noncopyable-class.stderr b/tests/ui/noncopyable-class.stderr similarity index 100% rename from src/test/ui/noncopyable-class.stderr rename to tests/ui/noncopyable-class.stderr diff --git a/src/test/ui/nonscalar-cast.fixed b/tests/ui/nonscalar-cast.fixed similarity index 100% rename from src/test/ui/nonscalar-cast.fixed rename to tests/ui/nonscalar-cast.fixed diff --git a/src/test/ui/nonscalar-cast.rs b/tests/ui/nonscalar-cast.rs similarity index 100% rename from src/test/ui/nonscalar-cast.rs rename to tests/ui/nonscalar-cast.rs diff --git a/src/test/ui/nonscalar-cast.stderr b/tests/ui/nonscalar-cast.stderr similarity index 100% rename from src/test/ui/nonscalar-cast.stderr rename to tests/ui/nonscalar-cast.stderr diff --git a/src/test/ui/not-clone-closure.rs b/tests/ui/not-clone-closure.rs similarity index 100% rename from src/test/ui/not-clone-closure.rs rename to tests/ui/not-clone-closure.rs diff --git a/src/test/ui/not-clone-closure.stderr b/tests/ui/not-clone-closure.stderr similarity index 100% rename from src/test/ui/not-clone-closure.stderr rename to tests/ui/not-clone-closure.stderr diff --git a/src/test/ui/not-copy-closure.rs b/tests/ui/not-copy-closure.rs similarity index 100% rename from src/test/ui/not-copy-closure.rs rename to tests/ui/not-copy-closure.rs diff --git a/src/test/ui/not-copy-closure.stderr b/tests/ui/not-copy-closure.stderr similarity index 100% rename from src/test/ui/not-copy-closure.stderr rename to tests/ui/not-copy-closure.stderr diff --git a/src/test/ui/not-enough-arguments.rs b/tests/ui/not-enough-arguments.rs similarity index 100% rename from src/test/ui/not-enough-arguments.rs rename to tests/ui/not-enough-arguments.rs diff --git a/src/test/ui/not-enough-arguments.stderr b/tests/ui/not-enough-arguments.stderr similarity index 100% rename from src/test/ui/not-enough-arguments.stderr rename to tests/ui/not-enough-arguments.stderr diff --git a/src/test/ui/not-panic/not-panic-safe-2.rs b/tests/ui/not-panic/not-panic-safe-2.rs similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-2.rs rename to tests/ui/not-panic/not-panic-safe-2.rs diff --git a/src/test/ui/not-panic/not-panic-safe-2.stderr b/tests/ui/not-panic/not-panic-safe-2.stderr similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-2.stderr rename to tests/ui/not-panic/not-panic-safe-2.stderr diff --git a/src/test/ui/not-panic/not-panic-safe-3.rs b/tests/ui/not-panic/not-panic-safe-3.rs similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-3.rs rename to tests/ui/not-panic/not-panic-safe-3.rs diff --git a/src/test/ui/not-panic/not-panic-safe-3.stderr b/tests/ui/not-panic/not-panic-safe-3.stderr similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-3.stderr rename to tests/ui/not-panic/not-panic-safe-3.stderr diff --git a/src/test/ui/not-panic/not-panic-safe-4.rs b/tests/ui/not-panic/not-panic-safe-4.rs similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-4.rs rename to tests/ui/not-panic/not-panic-safe-4.rs diff --git a/src/test/ui/not-panic/not-panic-safe-4.stderr b/tests/ui/not-panic/not-panic-safe-4.stderr similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-4.stderr rename to tests/ui/not-panic/not-panic-safe-4.stderr diff --git a/src/test/ui/not-panic/not-panic-safe-5.rs b/tests/ui/not-panic/not-panic-safe-5.rs similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-5.rs rename to tests/ui/not-panic/not-panic-safe-5.rs diff --git a/src/test/ui/not-panic/not-panic-safe-5.stderr b/tests/ui/not-panic/not-panic-safe-5.stderr similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-5.stderr rename to tests/ui/not-panic/not-panic-safe-5.stderr diff --git a/src/test/ui/not-panic/not-panic-safe-6.rs b/tests/ui/not-panic/not-panic-safe-6.rs similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-6.rs rename to tests/ui/not-panic/not-panic-safe-6.rs diff --git a/src/test/ui/not-panic/not-panic-safe-6.stderr b/tests/ui/not-panic/not-panic-safe-6.stderr similarity index 100% rename from src/test/ui/not-panic/not-panic-safe-6.stderr rename to tests/ui/not-panic/not-panic-safe-6.stderr diff --git a/src/test/ui/not-panic/not-panic-safe.rs b/tests/ui/not-panic/not-panic-safe.rs similarity index 100% rename from src/test/ui/not-panic/not-panic-safe.rs rename to tests/ui/not-panic/not-panic-safe.rs diff --git a/src/test/ui/not-panic/not-panic-safe.stderr b/tests/ui/not-panic/not-panic-safe.stderr similarity index 100% rename from src/test/ui/not-panic/not-panic-safe.stderr rename to tests/ui/not-panic/not-panic-safe.stderr diff --git a/src/test/ui/nul-characters.rs b/tests/ui/nul-characters.rs similarity index 100% rename from src/test/ui/nul-characters.rs rename to tests/ui/nul-characters.rs diff --git a/src/test/ui/nullable-pointer-iotareduction.rs b/tests/ui/nullable-pointer-iotareduction.rs similarity index 100% rename from src/test/ui/nullable-pointer-iotareduction.rs rename to tests/ui/nullable-pointer-iotareduction.rs diff --git a/src/test/ui/nullable-pointer-size.rs b/tests/ui/nullable-pointer-size.rs similarity index 100% rename from src/test/ui/nullable-pointer-size.rs rename to tests/ui/nullable-pointer-size.rs diff --git a/src/test/ui/numbers-arithmetic/arith-unsigned.rs b/tests/ui/numbers-arithmetic/arith-unsigned.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/arith-unsigned.rs rename to tests/ui/numbers-arithmetic/arith-unsigned.rs diff --git a/src/test/ui/numbers-arithmetic/div-mod.rs b/tests/ui/numbers-arithmetic/div-mod.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/div-mod.rs rename to tests/ui/numbers-arithmetic/div-mod.rs diff --git a/src/test/ui/numbers-arithmetic/divide-by-zero.rs b/tests/ui/numbers-arithmetic/divide-by-zero.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/divide-by-zero.rs rename to tests/ui/numbers-arithmetic/divide-by-zero.rs diff --git a/src/test/ui/numbers-arithmetic/float-int-invalid-const-cast.rs b/tests/ui/numbers-arithmetic/float-int-invalid-const-cast.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float-int-invalid-const-cast.rs rename to tests/ui/numbers-arithmetic/float-int-invalid-const-cast.rs diff --git a/src/test/ui/numbers-arithmetic/float-literal-inference.rs b/tests/ui/numbers-arithmetic/float-literal-inference.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float-literal-inference.rs rename to tests/ui/numbers-arithmetic/float-literal-inference.rs diff --git a/src/test/ui/numbers-arithmetic/float-nan.rs b/tests/ui/numbers-arithmetic/float-nan.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float-nan.rs rename to tests/ui/numbers-arithmetic/float-nan.rs diff --git a/src/test/ui/numbers-arithmetic/float-signature.rs b/tests/ui/numbers-arithmetic/float-signature.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float-signature.rs rename to tests/ui/numbers-arithmetic/float-signature.rs diff --git a/src/test/ui/numbers-arithmetic/float.rs b/tests/ui/numbers-arithmetic/float.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float.rs rename to tests/ui/numbers-arithmetic/float.rs diff --git a/src/test/ui/numbers-arithmetic/float2.rs b/tests/ui/numbers-arithmetic/float2.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float2.rs rename to tests/ui/numbers-arithmetic/float2.rs diff --git a/src/test/ui/numbers-arithmetic/float_math.rs b/tests/ui/numbers-arithmetic/float_math.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/float_math.rs rename to tests/ui/numbers-arithmetic/float_math.rs diff --git a/src/test/ui/numbers-arithmetic/floatlits.rs b/tests/ui/numbers-arithmetic/floatlits.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/floatlits.rs rename to tests/ui/numbers-arithmetic/floatlits.rs diff --git a/src/test/ui/numbers-arithmetic/i128.rs b/tests/ui/numbers-arithmetic/i128.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/i128.rs rename to tests/ui/numbers-arithmetic/i128.rs diff --git a/src/test/ui/numbers-arithmetic/i32-sub.rs b/tests/ui/numbers-arithmetic/i32-sub.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/i32-sub.rs rename to tests/ui/numbers-arithmetic/i32-sub.rs diff --git a/src/test/ui/numbers-arithmetic/i8-incr.rs b/tests/ui/numbers-arithmetic/i8-incr.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/i8-incr.rs rename to tests/ui/numbers-arithmetic/i8-incr.rs diff --git a/src/test/ui/numbers-arithmetic/int-abs-overflow.rs b/tests/ui/numbers-arithmetic/int-abs-overflow.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/int-abs-overflow.rs rename to tests/ui/numbers-arithmetic/int-abs-overflow.rs diff --git a/src/test/ui/numbers-arithmetic/int.rs b/tests/ui/numbers-arithmetic/int.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/int.rs rename to tests/ui/numbers-arithmetic/int.rs diff --git a/src/test/ui/numbers-arithmetic/integer-literal-radix.rs b/tests/ui/numbers-arithmetic/integer-literal-radix.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/integer-literal-radix.rs rename to tests/ui/numbers-arithmetic/integer-literal-radix.rs diff --git a/src/test/ui/numbers-arithmetic/integer-literal-suffix-inference-2.rs b/tests/ui/numbers-arithmetic/integer-literal-suffix-inference-2.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/integer-literal-suffix-inference-2.rs rename to tests/ui/numbers-arithmetic/integer-literal-suffix-inference-2.rs diff --git a/src/test/ui/numbers-arithmetic/integer-literal-suffix-inference-3.rs b/tests/ui/numbers-arithmetic/integer-literal-suffix-inference-3.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/integer-literal-suffix-inference-3.rs rename to tests/ui/numbers-arithmetic/integer-literal-suffix-inference-3.rs diff --git a/src/test/ui/numbers-arithmetic/integer-literal-suffix-inference.rs b/tests/ui/numbers-arithmetic/integer-literal-suffix-inference.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/integer-literal-suffix-inference.rs rename to tests/ui/numbers-arithmetic/integer-literal-suffix-inference.rs diff --git a/src/test/ui/numbers-arithmetic/issue-8460-const.noopt.stderr b/tests/ui/numbers-arithmetic/issue-8460-const.noopt.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/issue-8460-const.noopt.stderr rename to tests/ui/numbers-arithmetic/issue-8460-const.noopt.stderr diff --git a/src/test/ui/numbers-arithmetic/issue-8460-const.opt.stderr b/tests/ui/numbers-arithmetic/issue-8460-const.opt.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/issue-8460-const.opt.stderr rename to tests/ui/numbers-arithmetic/issue-8460-const.opt.stderr diff --git a/src/test/ui/numbers-arithmetic/issue-8460-const.opt_with_overflow_checks.stderr b/tests/ui/numbers-arithmetic/issue-8460-const.opt_with_overflow_checks.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/issue-8460-const.opt_with_overflow_checks.stderr rename to tests/ui/numbers-arithmetic/issue-8460-const.opt_with_overflow_checks.stderr diff --git a/src/test/ui/numbers-arithmetic/issue-8460-const.rs b/tests/ui/numbers-arithmetic/issue-8460-const.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/issue-8460-const.rs rename to tests/ui/numbers-arithmetic/issue-8460-const.rs diff --git a/src/test/ui/numbers-arithmetic/issue-8460.rs b/tests/ui/numbers-arithmetic/issue-8460.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/issue-8460.rs rename to tests/ui/numbers-arithmetic/issue-8460.rs diff --git a/src/test/ui/numbers-arithmetic/mod-zero.rs b/tests/ui/numbers-arithmetic/mod-zero.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/mod-zero.rs rename to tests/ui/numbers-arithmetic/mod-zero.rs diff --git a/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs b/tests/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs rename to tests/ui/numbers-arithmetic/next-power-of-two-overflow-debug.rs diff --git a/src/test/ui/numbers-arithmetic/next-power-of-two-overflow-ndebug.rs b/tests/ui/numbers-arithmetic/next-power-of-two-overflow-ndebug.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/next-power-of-two-overflow-ndebug.rs rename to tests/ui/numbers-arithmetic/next-power-of-two-overflow-ndebug.rs diff --git a/src/test/ui/numbers-arithmetic/not-suggest-float-literal.rs b/tests/ui/numbers-arithmetic/not-suggest-float-literal.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/not-suggest-float-literal.rs rename to tests/ui/numbers-arithmetic/not-suggest-float-literal.rs diff --git a/src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr b/tests/ui/numbers-arithmetic/not-suggest-float-literal.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/not-suggest-float-literal.stderr rename to tests/ui/numbers-arithmetic/not-suggest-float-literal.stderr diff --git a/src/test/ui/numbers-arithmetic/num-wrapping.rs b/tests/ui/numbers-arithmetic/num-wrapping.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/num-wrapping.rs rename to tests/ui/numbers-arithmetic/num-wrapping.rs diff --git a/src/test/ui/numbers-arithmetic/numeric-method-autoexport.rs b/tests/ui/numbers-arithmetic/numeric-method-autoexport.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/numeric-method-autoexport.rs rename to tests/ui/numbers-arithmetic/numeric-method-autoexport.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-add.rs b/tests/ui/numbers-arithmetic/overflowing-add.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-add.rs rename to tests/ui/numbers-arithmetic/overflowing-add.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-1.rs b/tests/ui/numbers-arithmetic/overflowing-lsh-1.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-1.rs rename to tests/ui/numbers-arithmetic/overflowing-lsh-1.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-1.stderr b/tests/ui/numbers-arithmetic/overflowing-lsh-1.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-1.stderr rename to tests/ui/numbers-arithmetic/overflowing-lsh-1.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-2.rs b/tests/ui/numbers-arithmetic/overflowing-lsh-2.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-2.rs rename to tests/ui/numbers-arithmetic/overflowing-lsh-2.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-2.stderr b/tests/ui/numbers-arithmetic/overflowing-lsh-2.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-2.stderr rename to tests/ui/numbers-arithmetic/overflowing-lsh-2.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-3.rs b/tests/ui/numbers-arithmetic/overflowing-lsh-3.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-3.rs rename to tests/ui/numbers-arithmetic/overflowing-lsh-3.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-3.stderr b/tests/ui/numbers-arithmetic/overflowing-lsh-3.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-3.stderr rename to tests/ui/numbers-arithmetic/overflowing-lsh-3.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-4.rs b/tests/ui/numbers-arithmetic/overflowing-lsh-4.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-4.rs rename to tests/ui/numbers-arithmetic/overflowing-lsh-4.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-lsh-4.stderr b/tests/ui/numbers-arithmetic/overflowing-lsh-4.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-lsh-4.stderr rename to tests/ui/numbers-arithmetic/overflowing-lsh-4.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-mul.rs b/tests/ui/numbers-arithmetic/overflowing-mul.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-mul.rs rename to tests/ui/numbers-arithmetic/overflowing-mul.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-neg.rs b/tests/ui/numbers-arithmetic/overflowing-neg.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-neg.rs rename to tests/ui/numbers-arithmetic/overflowing-neg.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-pow-signed.rs b/tests/ui/numbers-arithmetic/overflowing-pow-signed.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-pow-signed.rs rename to tests/ui/numbers-arithmetic/overflowing-pow-signed.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-pow-unsigned.rs b/tests/ui/numbers-arithmetic/overflowing-pow-unsigned.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-pow-unsigned.rs rename to tests/ui/numbers-arithmetic/overflowing-pow-unsigned.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-1.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-1.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-1.rs rename to tests/ui/numbers-arithmetic/overflowing-rsh-1.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-1.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-1.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-1.stderr rename to tests/ui/numbers-arithmetic/overflowing-rsh-1.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-2.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-2.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-2.rs rename to tests/ui/numbers-arithmetic/overflowing-rsh-2.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-2.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-2.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-2.stderr rename to tests/ui/numbers-arithmetic/overflowing-rsh-2.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-3.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-3.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-3.rs rename to tests/ui/numbers-arithmetic/overflowing-rsh-3.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-3.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-3.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-3.stderr rename to tests/ui/numbers-arithmetic/overflowing-rsh-3.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-4.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-4.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-4.rs rename to tests/ui/numbers-arithmetic/overflowing-rsh-4.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-4.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-4.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-4.stderr rename to tests/ui/numbers-arithmetic/overflowing-rsh-4.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-5.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-5.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-5.rs rename to tests/ui/numbers-arithmetic/overflowing-rsh-5.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-5.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-5.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-5.stderr rename to tests/ui/numbers-arithmetic/overflowing-rsh-5.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-6.rs b/tests/ui/numbers-arithmetic/overflowing-rsh-6.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-6.rs rename to tests/ui/numbers-arithmetic/overflowing-rsh-6.rs diff --git a/src/test/ui/numbers-arithmetic/overflowing-rsh-6.stderr b/tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-rsh-6.stderr rename to tests/ui/numbers-arithmetic/overflowing-rsh-6.stderr diff --git a/src/test/ui/numbers-arithmetic/overflowing-sub.rs b/tests/ui/numbers-arithmetic/overflowing-sub.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/overflowing-sub.rs rename to tests/ui/numbers-arithmetic/overflowing-sub.rs diff --git a/src/test/ui/numbers-arithmetic/promoted_overflow.rs b/tests/ui/numbers-arithmetic/promoted_overflow.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/promoted_overflow.rs rename to tests/ui/numbers-arithmetic/promoted_overflow.rs diff --git a/src/test/ui/numbers-arithmetic/promoted_overflow_opt.rs b/tests/ui/numbers-arithmetic/promoted_overflow_opt.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/promoted_overflow_opt.rs rename to tests/ui/numbers-arithmetic/promoted_overflow_opt.rs diff --git a/src/test/ui/numbers-arithmetic/saturating-float-casts-impl.rs b/tests/ui/numbers-arithmetic/saturating-float-casts-impl.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/saturating-float-casts-impl.rs rename to tests/ui/numbers-arithmetic/saturating-float-casts-impl.rs diff --git a/src/test/ui/numbers-arithmetic/saturating-float-casts-wasm.rs b/tests/ui/numbers-arithmetic/saturating-float-casts-wasm.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/saturating-float-casts-wasm.rs rename to tests/ui/numbers-arithmetic/saturating-float-casts-wasm.rs diff --git a/src/test/ui/numbers-arithmetic/saturating-float-casts.rs b/tests/ui/numbers-arithmetic/saturating-float-casts.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/saturating-float-casts.rs rename to tests/ui/numbers-arithmetic/saturating-float-casts.rs diff --git a/src/test/ui/numbers-arithmetic/shift-near-oflo.rs b/tests/ui/numbers-arithmetic/shift-near-oflo.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/shift-near-oflo.rs rename to tests/ui/numbers-arithmetic/shift-near-oflo.rs diff --git a/src/test/ui/numbers-arithmetic/shift-various-types.rs b/tests/ui/numbers-arithmetic/shift-various-types.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/shift-various-types.rs rename to tests/ui/numbers-arithmetic/shift-various-types.rs diff --git a/src/test/ui/numbers-arithmetic/shift.rs b/tests/ui/numbers-arithmetic/shift.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/shift.rs rename to tests/ui/numbers-arithmetic/shift.rs diff --git a/src/test/ui/numbers-arithmetic/signed-shift-const-eval.rs b/tests/ui/numbers-arithmetic/signed-shift-const-eval.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/signed-shift-const-eval.rs rename to tests/ui/numbers-arithmetic/signed-shift-const-eval.rs diff --git a/src/test/ui/numbers-arithmetic/suggest-float-literal.fixed b/tests/ui/numbers-arithmetic/suggest-float-literal.fixed similarity index 100% rename from src/test/ui/numbers-arithmetic/suggest-float-literal.fixed rename to tests/ui/numbers-arithmetic/suggest-float-literal.fixed diff --git a/src/test/ui/numbers-arithmetic/suggest-float-literal.rs b/tests/ui/numbers-arithmetic/suggest-float-literal.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/suggest-float-literal.rs rename to tests/ui/numbers-arithmetic/suggest-float-literal.rs diff --git a/src/test/ui/numbers-arithmetic/suggest-float-literal.stderr b/tests/ui/numbers-arithmetic/suggest-float-literal.stderr similarity index 100% rename from src/test/ui/numbers-arithmetic/suggest-float-literal.stderr rename to tests/ui/numbers-arithmetic/suggest-float-literal.stderr diff --git a/src/test/ui/numbers-arithmetic/u128-as-f32.rs b/tests/ui/numbers-arithmetic/u128-as-f32.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/u128-as-f32.rs rename to tests/ui/numbers-arithmetic/u128-as-f32.rs diff --git a/src/test/ui/numbers-arithmetic/u128.rs b/tests/ui/numbers-arithmetic/u128.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/u128.rs rename to tests/ui/numbers-arithmetic/u128.rs diff --git a/src/test/ui/numbers-arithmetic/u32-decr.rs b/tests/ui/numbers-arithmetic/u32-decr.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/u32-decr.rs rename to tests/ui/numbers-arithmetic/u32-decr.rs diff --git a/src/test/ui/numbers-arithmetic/u8-incr-decr.rs b/tests/ui/numbers-arithmetic/u8-incr-decr.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/u8-incr-decr.rs rename to tests/ui/numbers-arithmetic/u8-incr-decr.rs diff --git a/src/test/ui/numbers-arithmetic/u8-incr.rs b/tests/ui/numbers-arithmetic/u8-incr.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/u8-incr.rs rename to tests/ui/numbers-arithmetic/u8-incr.rs diff --git a/src/test/ui/numbers-arithmetic/uint.rs b/tests/ui/numbers-arithmetic/uint.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/uint.rs rename to tests/ui/numbers-arithmetic/uint.rs diff --git a/src/test/ui/numbers-arithmetic/unary-minus-suffix-inference.rs b/tests/ui/numbers-arithmetic/unary-minus-suffix-inference.rs similarity index 100% rename from src/test/ui/numbers-arithmetic/unary-minus-suffix-inference.rs rename to tests/ui/numbers-arithmetic/unary-minus-suffix-inference.rs diff --git a/src/test/ui/numeric/const-scope.rs b/tests/ui/numeric/const-scope.rs similarity index 100% rename from src/test/ui/numeric/const-scope.rs rename to tests/ui/numeric/const-scope.rs diff --git a/src/test/ui/numeric/const-scope.stderr b/tests/ui/numeric/const-scope.stderr similarity index 100% rename from src/test/ui/numeric/const-scope.stderr rename to tests/ui/numeric/const-scope.stderr diff --git a/src/test/ui/numeric/integer-literal-suffix-inference.rs b/tests/ui/numeric/integer-literal-suffix-inference.rs similarity index 100% rename from src/test/ui/numeric/integer-literal-suffix-inference.rs rename to tests/ui/numeric/integer-literal-suffix-inference.rs diff --git a/src/test/ui/numeric/integer-literal-suffix-inference.stderr b/tests/ui/numeric/integer-literal-suffix-inference.stderr similarity index 100% rename from src/test/ui/numeric/integer-literal-suffix-inference.stderr rename to tests/ui/numeric/integer-literal-suffix-inference.stderr diff --git a/src/test/ui/numeric/len.rs b/tests/ui/numeric/len.rs similarity index 100% rename from src/test/ui/numeric/len.rs rename to tests/ui/numeric/len.rs diff --git a/src/test/ui/numeric/len.stderr b/tests/ui/numeric/len.stderr similarity index 100% rename from src/test/ui/numeric/len.stderr rename to tests/ui/numeric/len.stderr diff --git a/src/test/ui/numeric/numeric-cast-2.rs b/tests/ui/numeric/numeric-cast-2.rs similarity index 100% rename from src/test/ui/numeric/numeric-cast-2.rs rename to tests/ui/numeric/numeric-cast-2.rs diff --git a/src/test/ui/numeric/numeric-cast-2.stderr b/tests/ui/numeric/numeric-cast-2.stderr similarity index 100% rename from src/test/ui/numeric/numeric-cast-2.stderr rename to tests/ui/numeric/numeric-cast-2.stderr diff --git a/src/test/ui/numeric/numeric-cast-binop.fixed b/tests/ui/numeric/numeric-cast-binop.fixed similarity index 100% rename from src/test/ui/numeric/numeric-cast-binop.fixed rename to tests/ui/numeric/numeric-cast-binop.fixed diff --git a/src/test/ui/numeric/numeric-cast-binop.rs b/tests/ui/numeric/numeric-cast-binop.rs similarity index 100% rename from src/test/ui/numeric/numeric-cast-binop.rs rename to tests/ui/numeric/numeric-cast-binop.rs diff --git a/src/test/ui/numeric/numeric-cast-binop.stderr b/tests/ui/numeric/numeric-cast-binop.stderr similarity index 100% rename from src/test/ui/numeric/numeric-cast-binop.stderr rename to tests/ui/numeric/numeric-cast-binop.stderr diff --git a/src/test/ui/numeric/numeric-cast-no-fix.rs b/tests/ui/numeric/numeric-cast-no-fix.rs similarity index 100% rename from src/test/ui/numeric/numeric-cast-no-fix.rs rename to tests/ui/numeric/numeric-cast-no-fix.rs diff --git a/src/test/ui/numeric/numeric-cast-no-fix.stderr b/tests/ui/numeric/numeric-cast-no-fix.stderr similarity index 100% rename from src/test/ui/numeric/numeric-cast-no-fix.stderr rename to tests/ui/numeric/numeric-cast-no-fix.stderr diff --git a/src/test/ui/numeric/numeric-cast-without-suggestion.rs b/tests/ui/numeric/numeric-cast-without-suggestion.rs similarity index 100% rename from src/test/ui/numeric/numeric-cast-without-suggestion.rs rename to tests/ui/numeric/numeric-cast-without-suggestion.rs diff --git a/src/test/ui/numeric/numeric-cast-without-suggestion.stderr b/tests/ui/numeric/numeric-cast-without-suggestion.stderr similarity index 100% rename from src/test/ui/numeric/numeric-cast-without-suggestion.stderr rename to tests/ui/numeric/numeric-cast-without-suggestion.stderr diff --git a/src/test/ui/numeric/numeric-cast.fixed b/tests/ui/numeric/numeric-cast.fixed similarity index 100% rename from src/test/ui/numeric/numeric-cast.fixed rename to tests/ui/numeric/numeric-cast.fixed diff --git a/src/test/ui/numeric/numeric-cast.rs b/tests/ui/numeric/numeric-cast.rs similarity index 100% rename from src/test/ui/numeric/numeric-cast.rs rename to tests/ui/numeric/numeric-cast.rs diff --git a/src/test/ui/numeric/numeric-cast.stderr b/tests/ui/numeric/numeric-cast.stderr similarity index 100% rename from src/test/ui/numeric/numeric-cast.stderr rename to tests/ui/numeric/numeric-cast.stderr diff --git a/src/test/ui/numeric/numeric-fields.rs b/tests/ui/numeric/numeric-fields.rs similarity index 100% rename from src/test/ui/numeric/numeric-fields.rs rename to tests/ui/numeric/numeric-fields.rs diff --git a/src/test/ui/numeric/numeric-fields.stderr b/tests/ui/numeric/numeric-fields.stderr similarity index 100% rename from src/test/ui/numeric/numeric-fields.stderr rename to tests/ui/numeric/numeric-fields.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix-i32.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix-i32.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix-i32.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix-i64.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix-i64.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix-i64.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix-i64.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-i64.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-i64.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix-i64.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-isize.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix-isize.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-isize.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix-isize.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-isize.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix-isize.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-isize.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix-isize.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-isize.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-isize.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-isize.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix-isize.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-u32.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix-u32.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-u32.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix-u32.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-u32.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix-u32.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-u32.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix-u32.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-u32.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-u32.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-u32.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix-u32.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-u64.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix-u64.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-u64.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix-u64.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-u64.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix-u64.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-u64.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix-u64.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-u64.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-u64.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-u64.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix-u64.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix-usize.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix-usize.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix-usize.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix-usize.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix-usize.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix-usize.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix-usize.stderr diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix.fixed b/tests/ui/numeric/numeric-suffix/numeric-suffix.fixed similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix.fixed rename to tests/ui/numeric/numeric-suffix/numeric-suffix.fixed diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix.rs b/tests/ui/numeric/numeric-suffix/numeric-suffix.rs similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix.rs rename to tests/ui/numeric/numeric-suffix/numeric-suffix.rs diff --git a/src/test/ui/numeric/numeric-suffix/numeric-suffix.stderr b/tests/ui/numeric/numeric-suffix/numeric-suffix.stderr similarity index 100% rename from src/test/ui/numeric/numeric-suffix/numeric-suffix.stderr rename to tests/ui/numeric/numeric-suffix/numeric-suffix.stderr diff --git a/src/test/ui/numeric/uppercase-base-prefix-invalid-no-fix.rs b/tests/ui/numeric/uppercase-base-prefix-invalid-no-fix.rs similarity index 100% rename from src/test/ui/numeric/uppercase-base-prefix-invalid-no-fix.rs rename to tests/ui/numeric/uppercase-base-prefix-invalid-no-fix.rs diff --git a/src/test/ui/numeric/uppercase-base-prefix-invalid-no-fix.stderr b/tests/ui/numeric/uppercase-base-prefix-invalid-no-fix.stderr similarity index 100% rename from src/test/ui/numeric/uppercase-base-prefix-invalid-no-fix.stderr rename to tests/ui/numeric/uppercase-base-prefix-invalid-no-fix.stderr diff --git a/src/test/ui/numeric/uppercase-base-prefix.fixed b/tests/ui/numeric/uppercase-base-prefix.fixed similarity index 100% rename from src/test/ui/numeric/uppercase-base-prefix.fixed rename to tests/ui/numeric/uppercase-base-prefix.fixed diff --git a/src/test/ui/numeric/uppercase-base-prefix.rs b/tests/ui/numeric/uppercase-base-prefix.rs similarity index 100% rename from src/test/ui/numeric/uppercase-base-prefix.rs rename to tests/ui/numeric/uppercase-base-prefix.rs diff --git a/src/test/ui/numeric/uppercase-base-prefix.stderr b/tests/ui/numeric/uppercase-base-prefix.stderr similarity index 100% rename from src/test/ui/numeric/uppercase-base-prefix.stderr rename to tests/ui/numeric/uppercase-base-prefix.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-ambiguous.rs b/tests/ui/object-lifetime/object-lifetime-default-ambiguous.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-ambiguous.rs rename to tests/ui/object-lifetime/object-lifetime-default-ambiguous.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-ambiguous.stderr b/tests/ui/object-lifetime/object-lifetime-default-ambiguous.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-ambiguous.stderr rename to tests/ui/object-lifetime/object-lifetime-default-ambiguous.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-default-to-static.rs b/tests/ui/object-lifetime/object-lifetime-default-default-to-static.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-default-to-static.rs rename to tests/ui/object-lifetime/object-lifetime-default-default-to-static.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.rs b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.rs rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.stderr b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.stderr rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic1.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.rs b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.rs rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.stderr b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.stderr rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic2.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.rs b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.rs rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.stderr b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.stderr rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-nonstatic3.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-static.rs b/tests/ui/object-lifetime/object-lifetime-default-dyn-binding-static.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-dyn-binding-static.rs rename to tests/ui/object-lifetime/object-lifetime-default-dyn-binding-static.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-elision.rs b/tests/ui/object-lifetime/object-lifetime-default-elision.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-elision.rs rename to tests/ui/object-lifetime/object-lifetime-default-elision.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-elision.stderr b/tests/ui/object-lifetime/object-lifetime-default-elision.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-elision.stderr rename to tests/ui/object-lifetime/object-lifetime-default-elision.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-box-error.rs b/tests/ui/object-lifetime/object-lifetime-default-from-box-error.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-box-error.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-box-error.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-box-error.stderr b/tests/ui/object-lifetime/object-lifetime-default-from-box-error.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-box-error.stderr rename to tests/ui/object-lifetime/object-lifetime-default-from-box-error.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-ref-struct.rs b/tests/ui/object-lifetime/object-lifetime-default-from-ref-struct.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-ref-struct.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-ref-struct.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.rs b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.stderr b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.stderr rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box.rs b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-box.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-box.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-mut.rs b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-mut.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-mut.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-mut.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.stderr b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.stderr rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct.rs b/tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr.rs b/tests/ui/object-lifetime/object-lifetime-default-from-rptr.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-from-rptr.rs rename to tests/ui/object-lifetime/object-lifetime-default-from-rptr.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-inferred.rs b/tests/ui/object-lifetime/object-lifetime-default-inferred.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-inferred.rs rename to tests/ui/object-lifetime/object-lifetime-default-inferred.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-mybox.rs b/tests/ui/object-lifetime/object-lifetime-default-mybox.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-mybox.rs rename to tests/ui/object-lifetime/object-lifetime-default-mybox.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default-mybox.stderr b/tests/ui/object-lifetime/object-lifetime-default-mybox.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default-mybox.stderr rename to tests/ui/object-lifetime/object-lifetime-default-mybox.stderr diff --git a/src/test/ui/object-lifetime/object-lifetime-default.rs b/tests/ui/object-lifetime/object-lifetime-default.rs similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default.rs rename to tests/ui/object-lifetime/object-lifetime-default.rs diff --git a/src/test/ui/object-lifetime/object-lifetime-default.stderr b/tests/ui/object-lifetime/object-lifetime-default.stderr similarity index 100% rename from src/test/ui/object-lifetime/object-lifetime-default.stderr rename to tests/ui/object-lifetime/object-lifetime-default.stderr diff --git a/src/test/ui/object-pointer-types.rs b/tests/ui/object-pointer-types.rs similarity index 100% rename from src/test/ui/object-pointer-types.rs rename to tests/ui/object-pointer-types.rs diff --git a/src/test/ui/object-pointer-types.stderr b/tests/ui/object-pointer-types.stderr similarity index 100% rename from src/test/ui/object-pointer-types.stderr rename to tests/ui/object-pointer-types.stderr diff --git a/src/test/ui/object-safety/issue-102762.rs b/tests/ui/object-safety/issue-102762.rs similarity index 100% rename from src/test/ui/object-safety/issue-102762.rs rename to tests/ui/object-safety/issue-102762.rs diff --git a/src/test/ui/object-safety/issue-102762.stderr b/tests/ui/object-safety/issue-102762.stderr similarity index 100% rename from src/test/ui/object-safety/issue-102762.stderr rename to tests/ui/object-safety/issue-102762.stderr diff --git a/src/test/ui/object-safety/issue-102933.rs b/tests/ui/object-safety/issue-102933.rs similarity index 100% rename from src/test/ui/object-safety/issue-102933.rs rename to tests/ui/object-safety/issue-102933.rs diff --git a/src/test/ui/object-safety/issue-106247.rs b/tests/ui/object-safety/issue-106247.rs similarity index 100% rename from src/test/ui/object-safety/issue-106247.rs rename to tests/ui/object-safety/issue-106247.rs diff --git a/src/test/ui/object-safety/issue-19538.rs b/tests/ui/object-safety/issue-19538.rs similarity index 100% rename from src/test/ui/object-safety/issue-19538.rs rename to tests/ui/object-safety/issue-19538.rs diff --git a/src/test/ui/object-safety/issue-19538.stderr b/tests/ui/object-safety/issue-19538.stderr similarity index 100% rename from src/test/ui/object-safety/issue-19538.stderr rename to tests/ui/object-safety/issue-19538.stderr diff --git a/src/test/ui/object-safety/object-safety-associated-consts.curr.stderr b/tests/ui/object-safety/object-safety-associated-consts.curr.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-associated-consts.curr.stderr rename to tests/ui/object-safety/object-safety-associated-consts.curr.stderr diff --git a/src/test/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr rename to tests/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr diff --git a/src/test/ui/object-safety/object-safety-associated-consts.rs b/tests/ui/object-safety/object-safety-associated-consts.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-associated-consts.rs rename to tests/ui/object-safety/object-safety-associated-consts.rs diff --git a/src/test/ui/object-safety/object-safety-bounds.rs b/tests/ui/object-safety/object-safety-bounds.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-bounds.rs rename to tests/ui/object-safety/object-safety-bounds.rs diff --git a/src/test/ui/object-safety/object-safety-bounds.stderr b/tests/ui/object-safety/object-safety-bounds.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-bounds.stderr rename to tests/ui/object-safety/object-safety-bounds.stderr diff --git a/src/test/ui/object-safety/object-safety-by-value-self-use.rs b/tests/ui/object-safety/object-safety-by-value-self-use.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-by-value-self-use.rs rename to tests/ui/object-safety/object-safety-by-value-self-use.rs diff --git a/src/test/ui/object-safety/object-safety-by-value-self-use.stderr b/tests/ui/object-safety/object-safety-by-value-self-use.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-by-value-self-use.stderr rename to tests/ui/object-safety/object-safety-by-value-self-use.stderr diff --git a/src/test/ui/object-safety/object-safety-by-value-self.rs b/tests/ui/object-safety/object-safety-by-value-self.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-by-value-self.rs rename to tests/ui/object-safety/object-safety-by-value-self.rs diff --git a/src/test/ui/object-safety/object-safety-generics.curr.stderr b/tests/ui/object-safety/object-safety-generics.curr.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-generics.curr.stderr rename to tests/ui/object-safety/object-safety-generics.curr.stderr diff --git a/src/test/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr rename to tests/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr diff --git a/src/test/ui/object-safety/object-safety-generics.rs b/tests/ui/object-safety/object-safety-generics.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-generics.rs rename to tests/ui/object-safety/object-safety-generics.rs diff --git a/src/test/ui/object-safety/object-safety-issue-22040.rs b/tests/ui/object-safety/object-safety-issue-22040.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-issue-22040.rs rename to tests/ui/object-safety/object-safety-issue-22040.rs diff --git a/src/test/ui/object-safety/object-safety-issue-22040.stderr b/tests/ui/object-safety/object-safety-issue-22040.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-issue-22040.stderr rename to tests/ui/object-safety/object-safety-issue-22040.stderr diff --git a/src/test/ui/object-safety/object-safety-mentions-Self.curr.stderr b/tests/ui/object-safety/object-safety-mentions-Self.curr.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-mentions-Self.curr.stderr rename to tests/ui/object-safety/object-safety-mentions-Self.curr.stderr diff --git a/src/test/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr rename to tests/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr diff --git a/src/test/ui/object-safety/object-safety-mentions-Self.rs b/tests/ui/object-safety/object-safety-mentions-Self.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-mentions-Self.rs rename to tests/ui/object-safety/object-safety-mentions-Self.rs diff --git a/src/test/ui/object-safety/object-safety-no-static.curr.stderr b/tests/ui/object-safety/object-safety-no-static.curr.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-no-static.curr.stderr rename to tests/ui/object-safety/object-safety-no-static.curr.stderr diff --git a/src/test/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr rename to tests/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr diff --git a/src/test/ui/object-safety/object-safety-no-static.rs b/tests/ui/object-safety/object-safety-no-static.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-no-static.rs rename to tests/ui/object-safety/object-safety-no-static.rs diff --git a/src/test/ui/object-safety/object-safety-phantom-fn.rs b/tests/ui/object-safety/object-safety-phantom-fn.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-phantom-fn.rs rename to tests/ui/object-safety/object-safety-phantom-fn.rs diff --git a/src/test/ui/object-safety/object-safety-sized-2.curr.stderr b/tests/ui/object-safety/object-safety-sized-2.curr.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-sized-2.curr.stderr rename to tests/ui/object-safety/object-safety-sized-2.curr.stderr diff --git a/src/test/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr rename to tests/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr diff --git a/src/test/ui/object-safety/object-safety-sized-2.rs b/tests/ui/object-safety/object-safety-sized-2.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-sized-2.rs rename to tests/ui/object-safety/object-safety-sized-2.rs diff --git a/src/test/ui/object-safety/object-safety-sized.curr.stderr b/tests/ui/object-safety/object-safety-sized.curr.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-sized.curr.stderr rename to tests/ui/object-safety/object-safety-sized.curr.stderr diff --git a/src/test/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr rename to tests/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr diff --git a/src/test/ui/object-safety/object-safety-sized.rs b/tests/ui/object-safety/object-safety-sized.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-sized.rs rename to tests/ui/object-safety/object-safety-sized.rs diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.rs b/tests/ui/object-safety/object-safety-supertrait-mentions-GAT.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.rs rename to tests/ui/object-safety/object-safety-supertrait-mentions-GAT.rs diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr b/tests/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr rename to tests/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-Self.rs b/tests/ui/object-safety/object-safety-supertrait-mentions-Self.rs similarity index 100% rename from src/test/ui/object-safety/object-safety-supertrait-mentions-Self.rs rename to tests/ui/object-safety/object-safety-supertrait-mentions-Self.rs diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-Self.stderr b/tests/ui/object-safety/object-safety-supertrait-mentions-Self.stderr similarity index 100% rename from src/test/ui/object-safety/object-safety-supertrait-mentions-Self.stderr rename to tests/ui/object-safety/object-safety-supertrait-mentions-Self.stderr diff --git a/src/test/ui/objects-coerce-freeze-borrored.rs b/tests/ui/objects-coerce-freeze-borrored.rs similarity index 100% rename from src/test/ui/objects-coerce-freeze-borrored.rs rename to tests/ui/objects-coerce-freeze-borrored.rs diff --git a/src/test/ui/obsolete-in-place/bad.rs b/tests/ui/obsolete-in-place/bad.rs similarity index 100% rename from src/test/ui/obsolete-in-place/bad.rs rename to tests/ui/obsolete-in-place/bad.rs diff --git a/src/test/ui/obsolete-in-place/bad.stderr b/tests/ui/obsolete-in-place/bad.stderr similarity index 100% rename from src/test/ui/obsolete-in-place/bad.stderr rename to tests/ui/obsolete-in-place/bad.stderr diff --git a/src/test/ui/occurs-check-2.rs b/tests/ui/occurs-check-2.rs similarity index 100% rename from src/test/ui/occurs-check-2.rs rename to tests/ui/occurs-check-2.rs diff --git a/src/test/ui/occurs-check-2.stderr b/tests/ui/occurs-check-2.stderr similarity index 100% rename from src/test/ui/occurs-check-2.stderr rename to tests/ui/occurs-check-2.stderr diff --git a/src/test/ui/occurs-check-3.rs b/tests/ui/occurs-check-3.rs similarity index 100% rename from src/test/ui/occurs-check-3.rs rename to tests/ui/occurs-check-3.rs diff --git a/src/test/ui/occurs-check-3.stderr b/tests/ui/occurs-check-3.stderr similarity index 100% rename from src/test/ui/occurs-check-3.stderr rename to tests/ui/occurs-check-3.stderr diff --git a/src/test/ui/occurs-check.rs b/tests/ui/occurs-check.rs similarity index 100% rename from src/test/ui/occurs-check.rs rename to tests/ui/occurs-check.rs diff --git a/src/test/ui/occurs-check.stderr b/tests/ui/occurs-check.stderr similarity index 100% rename from src/test/ui/occurs-check.stderr rename to tests/ui/occurs-check.stderr diff --git a/src/test/ui/on-unimplemented/auxiliary/no_debug.rs b/tests/ui/on-unimplemented/auxiliary/no_debug.rs similarity index 100% rename from src/test/ui/on-unimplemented/auxiliary/no_debug.rs rename to tests/ui/on-unimplemented/auxiliary/no_debug.rs diff --git a/src/test/ui/on-unimplemented/bad-annotation.rs b/tests/ui/on-unimplemented/bad-annotation.rs similarity index 100% rename from src/test/ui/on-unimplemented/bad-annotation.rs rename to tests/ui/on-unimplemented/bad-annotation.rs diff --git a/src/test/ui/on-unimplemented/bad-annotation.stderr b/tests/ui/on-unimplemented/bad-annotation.stderr similarity index 100% rename from src/test/ui/on-unimplemented/bad-annotation.stderr rename to tests/ui/on-unimplemented/bad-annotation.stderr diff --git a/src/test/ui/on-unimplemented/expected-comma-found-token.rs b/tests/ui/on-unimplemented/expected-comma-found-token.rs similarity index 100% rename from src/test/ui/on-unimplemented/expected-comma-found-token.rs rename to tests/ui/on-unimplemented/expected-comma-found-token.rs diff --git a/src/test/ui/on-unimplemented/expected-comma-found-token.stderr b/tests/ui/on-unimplemented/expected-comma-found-token.stderr similarity index 100% rename from src/test/ui/on-unimplemented/expected-comma-found-token.stderr rename to tests/ui/on-unimplemented/expected-comma-found-token.stderr diff --git a/src/test/ui/on-unimplemented/feature-gate-on-unimplemented.rs b/tests/ui/on-unimplemented/feature-gate-on-unimplemented.rs similarity index 100% rename from src/test/ui/on-unimplemented/feature-gate-on-unimplemented.rs rename to tests/ui/on-unimplemented/feature-gate-on-unimplemented.rs diff --git a/src/test/ui/on-unimplemented/feature-gate-on-unimplemented.stderr b/tests/ui/on-unimplemented/feature-gate-on-unimplemented.stderr similarity index 100% rename from src/test/ui/on-unimplemented/feature-gate-on-unimplemented.stderr rename to tests/ui/on-unimplemented/feature-gate-on-unimplemented.stderr diff --git a/src/test/ui/on-unimplemented/impl-substs.rs b/tests/ui/on-unimplemented/impl-substs.rs similarity index 100% rename from src/test/ui/on-unimplemented/impl-substs.rs rename to tests/ui/on-unimplemented/impl-substs.rs diff --git a/src/test/ui/on-unimplemented/impl-substs.stderr b/tests/ui/on-unimplemented/impl-substs.stderr similarity index 100% rename from src/test/ui/on-unimplemented/impl-substs.stderr rename to tests/ui/on-unimplemented/impl-substs.stderr diff --git a/src/test/ui/on-unimplemented/issue-104140.rs b/tests/ui/on-unimplemented/issue-104140.rs similarity index 100% rename from src/test/ui/on-unimplemented/issue-104140.rs rename to tests/ui/on-unimplemented/issue-104140.rs diff --git a/src/test/ui/on-unimplemented/issue-104140.stderr b/tests/ui/on-unimplemented/issue-104140.stderr similarity index 100% rename from src/test/ui/on-unimplemented/issue-104140.stderr rename to tests/ui/on-unimplemented/issue-104140.stderr diff --git a/src/test/ui/on-unimplemented/multiple-impls.rs b/tests/ui/on-unimplemented/multiple-impls.rs similarity index 100% rename from src/test/ui/on-unimplemented/multiple-impls.rs rename to tests/ui/on-unimplemented/multiple-impls.rs diff --git a/src/test/ui/on-unimplemented/multiple-impls.stderr b/tests/ui/on-unimplemented/multiple-impls.stderr similarity index 100% rename from src/test/ui/on-unimplemented/multiple-impls.stderr rename to tests/ui/on-unimplemented/multiple-impls.stderr diff --git a/src/test/ui/on-unimplemented/no-debug.rs b/tests/ui/on-unimplemented/no-debug.rs similarity index 100% rename from src/test/ui/on-unimplemented/no-debug.rs rename to tests/ui/on-unimplemented/no-debug.rs diff --git a/src/test/ui/on-unimplemented/no-debug.stderr b/tests/ui/on-unimplemented/no-debug.stderr similarity index 100% rename from src/test/ui/on-unimplemented/no-debug.stderr rename to tests/ui/on-unimplemented/no-debug.stderr diff --git a/src/test/ui/on-unimplemented/on-impl.rs b/tests/ui/on-unimplemented/on-impl.rs similarity index 100% rename from src/test/ui/on-unimplemented/on-impl.rs rename to tests/ui/on-unimplemented/on-impl.rs diff --git a/src/test/ui/on-unimplemented/on-impl.stderr b/tests/ui/on-unimplemented/on-impl.stderr similarity index 100% rename from src/test/ui/on-unimplemented/on-impl.stderr rename to tests/ui/on-unimplemented/on-impl.stderr diff --git a/src/test/ui/on-unimplemented/on-trait.rs b/tests/ui/on-unimplemented/on-trait.rs similarity index 100% rename from src/test/ui/on-unimplemented/on-trait.rs rename to tests/ui/on-unimplemented/on-trait.rs diff --git a/src/test/ui/on-unimplemented/on-trait.stderr b/tests/ui/on-unimplemented/on-trait.stderr similarity index 100% rename from src/test/ui/on-unimplemented/on-trait.stderr rename to tests/ui/on-unimplemented/on-trait.stderr diff --git a/src/test/ui/on-unimplemented/parent-label.rs b/tests/ui/on-unimplemented/parent-label.rs similarity index 100% rename from src/test/ui/on-unimplemented/parent-label.rs rename to tests/ui/on-unimplemented/parent-label.rs diff --git a/src/test/ui/on-unimplemented/parent-label.stderr b/tests/ui/on-unimplemented/parent-label.stderr similarity index 100% rename from src/test/ui/on-unimplemented/parent-label.stderr rename to tests/ui/on-unimplemented/parent-label.stderr diff --git a/src/test/ui/on-unimplemented/slice-index.rs b/tests/ui/on-unimplemented/slice-index.rs similarity index 100% rename from src/test/ui/on-unimplemented/slice-index.rs rename to tests/ui/on-unimplemented/slice-index.rs diff --git a/src/test/ui/on-unimplemented/slice-index.stderr b/tests/ui/on-unimplemented/slice-index.stderr similarity index 100% rename from src/test/ui/on-unimplemented/slice-index.stderr rename to tests/ui/on-unimplemented/slice-index.stderr diff --git a/src/test/ui/on-unimplemented/sum.rs b/tests/ui/on-unimplemented/sum.rs similarity index 100% rename from src/test/ui/on-unimplemented/sum.rs rename to tests/ui/on-unimplemented/sum.rs diff --git a/src/test/ui/on-unimplemented/sum.stderr b/tests/ui/on-unimplemented/sum.stderr similarity index 100% rename from src/test/ui/on-unimplemented/sum.stderr rename to tests/ui/on-unimplemented/sum.stderr diff --git a/src/test/ui/once-cant-call-twice-on-heap.rs b/tests/ui/once-cant-call-twice-on-heap.rs similarity index 100% rename from src/test/ui/once-cant-call-twice-on-heap.rs rename to tests/ui/once-cant-call-twice-on-heap.rs diff --git a/src/test/ui/once-cant-call-twice-on-heap.stderr b/tests/ui/once-cant-call-twice-on-heap.stderr similarity index 100% rename from src/test/ui/once-cant-call-twice-on-heap.stderr rename to tests/ui/once-cant-call-twice-on-heap.stderr diff --git a/src/test/ui/oom_unwind.rs b/tests/ui/oom_unwind.rs similarity index 100% rename from src/test/ui/oom_unwind.rs rename to tests/ui/oom_unwind.rs diff --git a/src/test/ui/op-assign-builtins-by-ref.rs b/tests/ui/op-assign-builtins-by-ref.rs similarity index 100% rename from src/test/ui/op-assign-builtins-by-ref.rs rename to tests/ui/op-assign-builtins-by-ref.rs diff --git a/src/test/ui/opeq.rs b/tests/ui/opeq.rs similarity index 100% rename from src/test/ui/opeq.rs rename to tests/ui/opeq.rs diff --git a/src/test/ui/operator-recovery/less-than-greater-than.rs b/tests/ui/operator-recovery/less-than-greater-than.rs similarity index 100% rename from src/test/ui/operator-recovery/less-than-greater-than.rs rename to tests/ui/operator-recovery/less-than-greater-than.rs diff --git a/src/test/ui/operator-recovery/less-than-greater-than.stderr b/tests/ui/operator-recovery/less-than-greater-than.stderr similarity index 100% rename from src/test/ui/operator-recovery/less-than-greater-than.stderr rename to tests/ui/operator-recovery/less-than-greater-than.stderr diff --git a/src/test/ui/operator-recovery/spaceship.rs b/tests/ui/operator-recovery/spaceship.rs similarity index 100% rename from src/test/ui/operator-recovery/spaceship.rs rename to tests/ui/operator-recovery/spaceship.rs diff --git a/src/test/ui/operator-recovery/spaceship.stderr b/tests/ui/operator-recovery/spaceship.stderr similarity index 100% rename from src/test/ui/operator-recovery/spaceship.stderr rename to tests/ui/operator-recovery/spaceship.stderr diff --git a/src/test/ui/opt-in-copy.rs b/tests/ui/opt-in-copy.rs similarity index 100% rename from src/test/ui/opt-in-copy.rs rename to tests/ui/opt-in-copy.rs diff --git a/src/test/ui/opt-in-copy.stderr b/tests/ui/opt-in-copy.stderr similarity index 100% rename from src/test/ui/opt-in-copy.stderr rename to tests/ui/opt-in-copy.stderr diff --git a/src/test/ui/optimization-fuel-0.rs b/tests/ui/optimization-fuel-0.rs similarity index 100% rename from src/test/ui/optimization-fuel-0.rs rename to tests/ui/optimization-fuel-0.rs diff --git a/src/test/ui/optimization-fuel-0.stderr b/tests/ui/optimization-fuel-0.stderr similarity index 100% rename from src/test/ui/optimization-fuel-0.stderr rename to tests/ui/optimization-fuel-0.stderr diff --git a/src/test/ui/optimization-fuel-1.rs b/tests/ui/optimization-fuel-1.rs similarity index 100% rename from src/test/ui/optimization-fuel-1.rs rename to tests/ui/optimization-fuel-1.rs diff --git a/src/test/ui/optimization-fuel-1.stderr b/tests/ui/optimization-fuel-1.stderr similarity index 100% rename from src/test/ui/optimization-fuel-1.stderr rename to tests/ui/optimization-fuel-1.stderr diff --git a/src/test/ui/optimization-remark.rs b/tests/ui/optimization-remark.rs similarity index 100% rename from src/test/ui/optimization-remark.rs rename to tests/ui/optimization-remark.rs diff --git a/src/test/ui/or-patterns/already-bound-name.rs b/tests/ui/or-patterns/already-bound-name.rs similarity index 100% rename from src/test/ui/or-patterns/already-bound-name.rs rename to tests/ui/or-patterns/already-bound-name.rs diff --git a/src/test/ui/or-patterns/already-bound-name.stderr b/tests/ui/or-patterns/already-bound-name.stderr similarity index 100% rename from src/test/ui/or-patterns/already-bound-name.stderr rename to tests/ui/or-patterns/already-bound-name.stderr diff --git a/src/test/ui/or-patterns/basic-switch.rs b/tests/ui/or-patterns/basic-switch.rs similarity index 100% rename from src/test/ui/or-patterns/basic-switch.rs rename to tests/ui/or-patterns/basic-switch.rs diff --git a/src/test/ui/or-patterns/basic-switchint.rs b/tests/ui/or-patterns/basic-switchint.rs similarity index 100% rename from src/test/ui/or-patterns/basic-switchint.rs rename to tests/ui/or-patterns/basic-switchint.rs diff --git a/src/test/ui/or-patterns/bindings-runpass-1.rs b/tests/ui/or-patterns/bindings-runpass-1.rs similarity index 100% rename from src/test/ui/or-patterns/bindings-runpass-1.rs rename to tests/ui/or-patterns/bindings-runpass-1.rs diff --git a/src/test/ui/or-patterns/bindings-runpass-2.rs b/tests/ui/or-patterns/bindings-runpass-2.rs similarity index 100% rename from src/test/ui/or-patterns/bindings-runpass-2.rs rename to tests/ui/or-patterns/bindings-runpass-2.rs diff --git a/src/test/ui/or-patterns/box-patterns.rs b/tests/ui/or-patterns/box-patterns.rs similarity index 100% rename from src/test/ui/or-patterns/box-patterns.rs rename to tests/ui/or-patterns/box-patterns.rs diff --git a/src/test/ui/or-patterns/consistent-bindings.rs b/tests/ui/or-patterns/consistent-bindings.rs similarity index 100% rename from src/test/ui/or-patterns/consistent-bindings.rs rename to tests/ui/or-patterns/consistent-bindings.rs diff --git a/src/test/ui/or-patterns/const-fn.rs b/tests/ui/or-patterns/const-fn.rs similarity index 100% rename from src/test/ui/or-patterns/const-fn.rs rename to tests/ui/or-patterns/const-fn.rs diff --git a/src/test/ui/or-patterns/exhaustiveness-non-exhaustive.rs b/tests/ui/or-patterns/exhaustiveness-non-exhaustive.rs similarity index 100% rename from src/test/ui/or-patterns/exhaustiveness-non-exhaustive.rs rename to tests/ui/or-patterns/exhaustiveness-non-exhaustive.rs diff --git a/src/test/ui/or-patterns/exhaustiveness-non-exhaustive.stderr b/tests/ui/or-patterns/exhaustiveness-non-exhaustive.stderr similarity index 100% rename from src/test/ui/or-patterns/exhaustiveness-non-exhaustive.stderr rename to tests/ui/or-patterns/exhaustiveness-non-exhaustive.stderr diff --git a/src/test/ui/or-patterns/exhaustiveness-pass.rs b/tests/ui/or-patterns/exhaustiveness-pass.rs similarity index 100% rename from src/test/ui/or-patterns/exhaustiveness-pass.rs rename to tests/ui/or-patterns/exhaustiveness-pass.rs diff --git a/src/test/ui/or-patterns/exhaustiveness-unreachable-pattern.rs b/tests/ui/or-patterns/exhaustiveness-unreachable-pattern.rs similarity index 100% rename from src/test/ui/or-patterns/exhaustiveness-unreachable-pattern.rs rename to tests/ui/or-patterns/exhaustiveness-unreachable-pattern.rs diff --git a/src/test/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr b/tests/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr similarity index 100% rename from src/test/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr rename to tests/ui/or-patterns/exhaustiveness-unreachable-pattern.stderr diff --git a/src/test/ui/or-patterns/fn-param-wrap-parens.fixed b/tests/ui/or-patterns/fn-param-wrap-parens.fixed similarity index 100% rename from src/test/ui/or-patterns/fn-param-wrap-parens.fixed rename to tests/ui/or-patterns/fn-param-wrap-parens.fixed diff --git a/src/test/ui/or-patterns/fn-param-wrap-parens.rs b/tests/ui/or-patterns/fn-param-wrap-parens.rs similarity index 100% rename from src/test/ui/or-patterns/fn-param-wrap-parens.rs rename to tests/ui/or-patterns/fn-param-wrap-parens.rs diff --git a/src/test/ui/or-patterns/fn-param-wrap-parens.stderr b/tests/ui/or-patterns/fn-param-wrap-parens.stderr similarity index 100% rename from src/test/ui/or-patterns/fn-param-wrap-parens.stderr rename to tests/ui/or-patterns/fn-param-wrap-parens.stderr diff --git a/src/test/ui/or-patterns/for-loop.rs b/tests/ui/or-patterns/for-loop.rs similarity index 100% rename from src/test/ui/or-patterns/for-loop.rs rename to tests/ui/or-patterns/for-loop.rs diff --git a/src/test/ui/or-patterns/if-let-while-let.rs b/tests/ui/or-patterns/if-let-while-let.rs similarity index 100% rename from src/test/ui/or-patterns/if-let-while-let.rs rename to tests/ui/or-patterns/if-let-while-let.rs diff --git a/src/test/ui/or-patterns/inconsistent-modes.rs b/tests/ui/or-patterns/inconsistent-modes.rs similarity index 100% rename from src/test/ui/or-patterns/inconsistent-modes.rs rename to tests/ui/or-patterns/inconsistent-modes.rs diff --git a/src/test/ui/or-patterns/inconsistent-modes.stderr b/tests/ui/or-patterns/inconsistent-modes.stderr similarity index 100% rename from src/test/ui/or-patterns/inconsistent-modes.stderr rename to tests/ui/or-patterns/inconsistent-modes.stderr diff --git a/src/test/ui/or-patterns/inner-or-pat.or3.stderr b/tests/ui/or-patterns/inner-or-pat.or3.stderr similarity index 100% rename from src/test/ui/or-patterns/inner-or-pat.or3.stderr rename to tests/ui/or-patterns/inner-or-pat.or3.stderr diff --git a/src/test/ui/or-patterns/inner-or-pat.or4.stderr b/tests/ui/or-patterns/inner-or-pat.or4.stderr similarity index 100% rename from src/test/ui/or-patterns/inner-or-pat.or4.stderr rename to tests/ui/or-patterns/inner-or-pat.or4.stderr diff --git a/src/test/ui/or-patterns/inner-or-pat.rs b/tests/ui/or-patterns/inner-or-pat.rs similarity index 100% rename from src/test/ui/or-patterns/inner-or-pat.rs rename to tests/ui/or-patterns/inner-or-pat.rs diff --git a/src/test/ui/or-patterns/issue-64879-trailing-before-guard.rs b/tests/ui/or-patterns/issue-64879-trailing-before-guard.rs similarity index 100% rename from src/test/ui/or-patterns/issue-64879-trailing-before-guard.rs rename to tests/ui/or-patterns/issue-64879-trailing-before-guard.rs diff --git a/src/test/ui/or-patterns/issue-64879-trailing-before-guard.stderr b/tests/ui/or-patterns/issue-64879-trailing-before-guard.stderr similarity index 100% rename from src/test/ui/or-patterns/issue-64879-trailing-before-guard.stderr rename to tests/ui/or-patterns/issue-64879-trailing-before-guard.stderr diff --git a/src/test/ui/or-patterns/issue-67514-irrefutable-param.rs b/tests/ui/or-patterns/issue-67514-irrefutable-param.rs similarity index 100% rename from src/test/ui/or-patterns/issue-67514-irrefutable-param.rs rename to tests/ui/or-patterns/issue-67514-irrefutable-param.rs diff --git a/src/test/ui/or-patterns/issue-68785-irrefutable-param-with-at.rs b/tests/ui/or-patterns/issue-68785-irrefutable-param-with-at.rs similarity index 100% rename from src/test/ui/or-patterns/issue-68785-irrefutable-param-with-at.rs rename to tests/ui/or-patterns/issue-68785-irrefutable-param-with-at.rs diff --git a/src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs b/tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs similarity index 100% rename from src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs rename to tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.rs diff --git a/src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr b/tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr similarity index 100% rename from src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr rename to tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier-non-exhaustive.stderr diff --git a/src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs b/tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs similarity index 100% rename from src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs rename to tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs diff --git a/src/test/ui/or-patterns/issue-70413-no-unreachable-pat-and-guard.rs b/tests/ui/or-patterns/issue-70413-no-unreachable-pat-and-guard.rs similarity index 100% rename from src/test/ui/or-patterns/issue-70413-no-unreachable-pat-and-guard.rs rename to tests/ui/or-patterns/issue-70413-no-unreachable-pat-and-guard.rs diff --git a/src/test/ui/or-patterns/let-pattern.rs b/tests/ui/or-patterns/let-pattern.rs similarity index 100% rename from src/test/ui/or-patterns/let-pattern.rs rename to tests/ui/or-patterns/let-pattern.rs diff --git a/src/test/ui/or-patterns/macro-pat.rs b/tests/ui/or-patterns/macro-pat.rs similarity index 100% rename from src/test/ui/or-patterns/macro-pat.rs rename to tests/ui/or-patterns/macro-pat.rs diff --git a/src/test/ui/or-patterns/mismatched-bindings-async-fn.rs b/tests/ui/or-patterns/mismatched-bindings-async-fn.rs similarity index 100% rename from src/test/ui/or-patterns/mismatched-bindings-async-fn.rs rename to tests/ui/or-patterns/mismatched-bindings-async-fn.rs diff --git a/src/test/ui/or-patterns/mismatched-bindings-async-fn.stderr b/tests/ui/or-patterns/mismatched-bindings-async-fn.stderr similarity index 100% rename from src/test/ui/or-patterns/mismatched-bindings-async-fn.stderr rename to tests/ui/or-patterns/mismatched-bindings-async-fn.stderr diff --git a/src/test/ui/or-patterns/missing-bindings.rs b/tests/ui/or-patterns/missing-bindings.rs similarity index 100% rename from src/test/ui/or-patterns/missing-bindings.rs rename to tests/ui/or-patterns/missing-bindings.rs diff --git a/src/test/ui/or-patterns/missing-bindings.stderr b/tests/ui/or-patterns/missing-bindings.stderr similarity index 100% rename from src/test/ui/or-patterns/missing-bindings.stderr rename to tests/ui/or-patterns/missing-bindings.stderr diff --git a/src/test/ui/or-patterns/mix-with-wild.rs b/tests/ui/or-patterns/mix-with-wild.rs similarity index 100% rename from src/test/ui/or-patterns/mix-with-wild.rs rename to tests/ui/or-patterns/mix-with-wild.rs diff --git a/src/test/ui/or-patterns/multiple-pattern-typo.rs b/tests/ui/or-patterns/multiple-pattern-typo.rs similarity index 100% rename from src/test/ui/or-patterns/multiple-pattern-typo.rs rename to tests/ui/or-patterns/multiple-pattern-typo.rs diff --git a/src/test/ui/or-patterns/multiple-pattern-typo.stderr b/tests/ui/or-patterns/multiple-pattern-typo.stderr similarity index 100% rename from src/test/ui/or-patterns/multiple-pattern-typo.stderr rename to tests/ui/or-patterns/multiple-pattern-typo.stderr diff --git a/src/test/ui/or-patterns/nested-undelimited-precedence.rs b/tests/ui/or-patterns/nested-undelimited-precedence.rs similarity index 100% rename from src/test/ui/or-patterns/nested-undelimited-precedence.rs rename to tests/ui/or-patterns/nested-undelimited-precedence.rs diff --git a/src/test/ui/or-patterns/nested-undelimited-precedence.stderr b/tests/ui/or-patterns/nested-undelimited-precedence.stderr similarity index 100% rename from src/test/ui/or-patterns/nested-undelimited-precedence.stderr rename to tests/ui/or-patterns/nested-undelimited-precedence.stderr diff --git a/src/test/ui/or-patterns/or-patterns-binding-type-mismatch.rs b/tests/ui/or-patterns/or-patterns-binding-type-mismatch.rs similarity index 100% rename from src/test/ui/or-patterns/or-patterns-binding-type-mismatch.rs rename to tests/ui/or-patterns/or-patterns-binding-type-mismatch.rs diff --git a/src/test/ui/or-patterns/or-patterns-binding-type-mismatch.stderr b/tests/ui/or-patterns/or-patterns-binding-type-mismatch.stderr similarity index 100% rename from src/test/ui/or-patterns/or-patterns-binding-type-mismatch.stderr rename to tests/ui/or-patterns/or-patterns-binding-type-mismatch.stderr diff --git a/src/test/ui/or-patterns/or-patterns-default-binding-modes.rs b/tests/ui/or-patterns/or-patterns-default-binding-modes.rs similarity index 100% rename from src/test/ui/or-patterns/or-patterns-default-binding-modes.rs rename to tests/ui/or-patterns/or-patterns-default-binding-modes.rs diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-fail-2018.rs b/tests/ui/or-patterns/or-patterns-syntactic-fail-2018.rs similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-fail-2018.rs rename to tests/ui/or-patterns/or-patterns-syntactic-fail-2018.rs diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-fail-2018.stderr b/tests/ui/or-patterns/or-patterns-syntactic-fail-2018.stderr similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-fail-2018.stderr rename to tests/ui/or-patterns/or-patterns-syntactic-fail-2018.stderr diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-fail.rs b/tests/ui/or-patterns/or-patterns-syntactic-fail.rs similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-fail.rs rename to tests/ui/or-patterns/or-patterns-syntactic-fail.rs diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-fail.stderr b/tests/ui/or-patterns/or-patterns-syntactic-fail.stderr similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-fail.stderr rename to tests/ui/or-patterns/or-patterns-syntactic-fail.stderr diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-pass-2021.rs b/tests/ui/or-patterns/or-patterns-syntactic-pass-2021.rs similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-pass-2021.rs rename to tests/ui/or-patterns/or-patterns-syntactic-pass-2021.rs diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-pass.rs b/tests/ui/or-patterns/or-patterns-syntactic-pass.rs similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-pass.rs rename to tests/ui/or-patterns/or-patterns-syntactic-pass.rs diff --git a/src/test/ui/or-patterns/or-patterns-syntactic-pass.stderr b/tests/ui/or-patterns/or-patterns-syntactic-pass.stderr similarity index 100% rename from src/test/ui/or-patterns/or-patterns-syntactic-pass.stderr rename to tests/ui/or-patterns/or-patterns-syntactic-pass.stderr diff --git a/src/test/ui/or-patterns/remove-leading-vert.fixed b/tests/ui/or-patterns/remove-leading-vert.fixed similarity index 100% rename from src/test/ui/or-patterns/remove-leading-vert.fixed rename to tests/ui/or-patterns/remove-leading-vert.fixed diff --git a/src/test/ui/or-patterns/remove-leading-vert.rs b/tests/ui/or-patterns/remove-leading-vert.rs similarity index 100% rename from src/test/ui/or-patterns/remove-leading-vert.rs rename to tests/ui/or-patterns/remove-leading-vert.rs diff --git a/src/test/ui/or-patterns/remove-leading-vert.stderr b/tests/ui/or-patterns/remove-leading-vert.stderr similarity index 100% rename from src/test/ui/or-patterns/remove-leading-vert.stderr rename to tests/ui/or-patterns/remove-leading-vert.stderr diff --git a/src/test/ui/or-patterns/search-via-bindings.rs b/tests/ui/or-patterns/search-via-bindings.rs similarity index 100% rename from src/test/ui/or-patterns/search-via-bindings.rs rename to tests/ui/or-patterns/search-via-bindings.rs diff --git a/src/test/ui/or-patterns/slice-patterns.rs b/tests/ui/or-patterns/slice-patterns.rs similarity index 100% rename from src/test/ui/or-patterns/slice-patterns.rs rename to tests/ui/or-patterns/slice-patterns.rs diff --git a/src/test/ui/or-patterns/struct-like.rs b/tests/ui/or-patterns/struct-like.rs similarity index 100% rename from src/test/ui/or-patterns/struct-like.rs rename to tests/ui/or-patterns/struct-like.rs diff --git a/src/test/ui/or-patterns/while-parsing-this-or-pattern.rs b/tests/ui/or-patterns/while-parsing-this-or-pattern.rs similarity index 100% rename from src/test/ui/or-patterns/while-parsing-this-or-pattern.rs rename to tests/ui/or-patterns/while-parsing-this-or-pattern.rs diff --git a/src/test/ui/or-patterns/while-parsing-this-or-pattern.stderr b/tests/ui/or-patterns/while-parsing-this-or-pattern.stderr similarity index 100% rename from src/test/ui/or-patterns/while-parsing-this-or-pattern.stderr rename to tests/ui/or-patterns/while-parsing-this-or-pattern.stderr diff --git a/src/test/ui/order-dependent-cast-inference.rs b/tests/ui/order-dependent-cast-inference.rs similarity index 100% rename from src/test/ui/order-dependent-cast-inference.rs rename to tests/ui/order-dependent-cast-inference.rs diff --git a/src/test/ui/order-dependent-cast-inference.stderr b/tests/ui/order-dependent-cast-inference.stderr similarity index 100% rename from src/test/ui/order-dependent-cast-inference.stderr rename to tests/ui/order-dependent-cast-inference.stderr diff --git a/src/test/ui/orphan-check-diagnostics.rs b/tests/ui/orphan-check-diagnostics.rs similarity index 100% rename from src/test/ui/orphan-check-diagnostics.rs rename to tests/ui/orphan-check-diagnostics.rs diff --git a/src/test/ui/orphan-check-diagnostics.stderr b/tests/ui/orphan-check-diagnostics.stderr similarity index 100% rename from src/test/ui/orphan-check-diagnostics.stderr rename to tests/ui/orphan-check-diagnostics.stderr diff --git a/src/test/ui/osx-frameworks.rs b/tests/ui/osx-frameworks.rs similarity index 100% rename from src/test/ui/osx-frameworks.rs rename to tests/ui/osx-frameworks.rs diff --git a/src/test/ui/osx-frameworks.stderr b/tests/ui/osx-frameworks.stderr similarity index 100% rename from src/test/ui/osx-frameworks.stderr rename to tests/ui/osx-frameworks.stderr diff --git a/src/test/ui/out-pointer-aliasing.rs b/tests/ui/out-pointer-aliasing.rs similarity index 100% rename from src/test/ui/out-pointer-aliasing.rs rename to tests/ui/out-pointer-aliasing.rs diff --git a/src/test/ui/output-slot-variants.rs b/tests/ui/output-slot-variants.rs similarity index 100% rename from src/test/ui/output-slot-variants.rs rename to tests/ui/output-slot-variants.rs diff --git a/src/test/ui/output-type-mismatch.rs b/tests/ui/output-type-mismatch.rs similarity index 100% rename from src/test/ui/output-type-mismatch.rs rename to tests/ui/output-type-mismatch.rs diff --git a/src/test/ui/output-type-mismatch.stderr b/tests/ui/output-type-mismatch.stderr similarity index 100% rename from src/test/ui/output-type-mismatch.stderr rename to tests/ui/output-type-mismatch.stderr diff --git a/src/test/ui/over-constrained-vregs.rs b/tests/ui/over-constrained-vregs.rs similarity index 100% rename from src/test/ui/over-constrained-vregs.rs rename to tests/ui/over-constrained-vregs.rs diff --git a/src/test/ui/overloaded/auxiliary/overloaded_autoderef_xc.rs b/tests/ui/overloaded/auxiliary/overloaded_autoderef_xc.rs similarity index 100% rename from src/test/ui/overloaded/auxiliary/overloaded_autoderef_xc.rs rename to tests/ui/overloaded/auxiliary/overloaded_autoderef_xc.rs diff --git a/src/test/ui/overloaded/fixup-deref-mut.rs b/tests/ui/overloaded/fixup-deref-mut.rs similarity index 100% rename from src/test/ui/overloaded/fixup-deref-mut.rs rename to tests/ui/overloaded/fixup-deref-mut.rs diff --git a/src/test/ui/overloaded/issue-14958.rs b/tests/ui/overloaded/issue-14958.rs similarity index 100% rename from src/test/ui/overloaded/issue-14958.rs rename to tests/ui/overloaded/issue-14958.rs diff --git a/src/test/ui/overloaded/overloaded-autoderef-count.rs b/tests/ui/overloaded/overloaded-autoderef-count.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-autoderef-count.rs rename to tests/ui/overloaded/overloaded-autoderef-count.rs diff --git a/src/test/ui/overloaded/overloaded-autoderef-indexing.rs b/tests/ui/overloaded/overloaded-autoderef-indexing.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-autoderef-indexing.rs rename to tests/ui/overloaded/overloaded-autoderef-indexing.rs diff --git a/src/test/ui/overloaded/overloaded-autoderef-order.rs b/tests/ui/overloaded/overloaded-autoderef-order.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-autoderef-order.rs rename to tests/ui/overloaded/overloaded-autoderef-order.rs diff --git a/src/test/ui/overloaded/overloaded-autoderef-vtable.rs b/tests/ui/overloaded/overloaded-autoderef-vtable.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-autoderef-vtable.rs rename to tests/ui/overloaded/overloaded-autoderef-vtable.rs diff --git a/src/test/ui/overloaded/overloaded-autoderef-xcrate.rs b/tests/ui/overloaded/overloaded-autoderef-xcrate.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-autoderef-xcrate.rs rename to tests/ui/overloaded/overloaded-autoderef-xcrate.rs diff --git a/src/test/ui/overloaded/overloaded-autoderef.rs b/tests/ui/overloaded/overloaded-autoderef.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-autoderef.rs rename to tests/ui/overloaded/overloaded-autoderef.rs diff --git a/src/test/ui/overloaded/overloaded-calls-nontuple.rs b/tests/ui/overloaded/overloaded-calls-nontuple.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-nontuple.rs rename to tests/ui/overloaded/overloaded-calls-nontuple.rs diff --git a/src/test/ui/overloaded/overloaded-calls-nontuple.stderr b/tests/ui/overloaded/overloaded-calls-nontuple.stderr similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-nontuple.stderr rename to tests/ui/overloaded/overloaded-calls-nontuple.stderr diff --git a/src/test/ui/overloaded/overloaded-calls-object-one-arg.rs b/tests/ui/overloaded/overloaded-calls-object-one-arg.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-object-one-arg.rs rename to tests/ui/overloaded/overloaded-calls-object-one-arg.rs diff --git a/src/test/ui/overloaded/overloaded-calls-object-two-args.rs b/tests/ui/overloaded/overloaded-calls-object-two-args.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-object-two-args.rs rename to tests/ui/overloaded/overloaded-calls-object-two-args.rs diff --git a/src/test/ui/overloaded/overloaded-calls-object-zero-args.rs b/tests/ui/overloaded/overloaded-calls-object-zero-args.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-object-zero-args.rs rename to tests/ui/overloaded/overloaded-calls-object-zero-args.rs diff --git a/src/test/ui/overloaded/overloaded-calls-param-vtables.rs b/tests/ui/overloaded/overloaded-calls-param-vtables.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-param-vtables.rs rename to tests/ui/overloaded/overloaded-calls-param-vtables.rs diff --git a/src/test/ui/overloaded/overloaded-calls-simple.rs b/tests/ui/overloaded/overloaded-calls-simple.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-simple.rs rename to tests/ui/overloaded/overloaded-calls-simple.rs diff --git a/src/test/ui/overloaded/overloaded-calls-zero-args.rs b/tests/ui/overloaded/overloaded-calls-zero-args.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-calls-zero-args.rs rename to tests/ui/overloaded/overloaded-calls-zero-args.rs diff --git a/src/test/ui/overloaded/overloaded-deref-count.rs b/tests/ui/overloaded/overloaded-deref-count.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-deref-count.rs rename to tests/ui/overloaded/overloaded-deref-count.rs diff --git a/src/test/ui/overloaded/overloaded-deref.rs b/tests/ui/overloaded/overloaded-deref.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-deref.rs rename to tests/ui/overloaded/overloaded-deref.rs diff --git a/src/test/ui/overloaded/overloaded-index-assoc-list.rs b/tests/ui/overloaded/overloaded-index-assoc-list.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-index-assoc-list.rs rename to tests/ui/overloaded/overloaded-index-assoc-list.rs diff --git a/src/test/ui/overloaded/overloaded-index-autoderef.rs b/tests/ui/overloaded/overloaded-index-autoderef.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-index-autoderef.rs rename to tests/ui/overloaded/overloaded-index-autoderef.rs diff --git a/src/test/ui/overloaded/overloaded-index-in-field.rs b/tests/ui/overloaded/overloaded-index-in-field.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-index-in-field.rs rename to tests/ui/overloaded/overloaded-index-in-field.rs diff --git a/src/test/ui/overloaded/overloaded-index.rs b/tests/ui/overloaded/overloaded-index.rs similarity index 100% rename from src/test/ui/overloaded/overloaded-index.rs rename to tests/ui/overloaded/overloaded-index.rs diff --git a/src/test/ui/overloaded/overloaded_deref_with_ref_pattern.rs b/tests/ui/overloaded/overloaded_deref_with_ref_pattern.rs similarity index 100% rename from src/test/ui/overloaded/overloaded_deref_with_ref_pattern.rs rename to tests/ui/overloaded/overloaded_deref_with_ref_pattern.rs diff --git a/src/test/ui/overloaded/overloaded_deref_with_ref_pattern_issue15609.rs b/tests/ui/overloaded/overloaded_deref_with_ref_pattern_issue15609.rs similarity index 100% rename from src/test/ui/overloaded/overloaded_deref_with_ref_pattern_issue15609.rs rename to tests/ui/overloaded/overloaded_deref_with_ref_pattern_issue15609.rs diff --git a/src/test/ui/packed-struct/packed-struct-generic-transmute.rs b/tests/ui/packed-struct/packed-struct-generic-transmute.rs similarity index 100% rename from src/test/ui/packed-struct/packed-struct-generic-transmute.rs rename to tests/ui/packed-struct/packed-struct-generic-transmute.rs diff --git a/src/test/ui/packed-struct/packed-struct-generic-transmute.stderr b/tests/ui/packed-struct/packed-struct-generic-transmute.stderr similarity index 100% rename from src/test/ui/packed-struct/packed-struct-generic-transmute.stderr rename to tests/ui/packed-struct/packed-struct-generic-transmute.stderr diff --git a/src/test/ui/packed-struct/packed-struct-transmute.rs b/tests/ui/packed-struct/packed-struct-transmute.rs similarity index 100% rename from src/test/ui/packed-struct/packed-struct-transmute.rs rename to tests/ui/packed-struct/packed-struct-transmute.rs diff --git a/src/test/ui/packed-struct/packed-struct-transmute.stderr b/tests/ui/packed-struct/packed-struct-transmute.stderr similarity index 100% rename from src/test/ui/packed-struct/packed-struct-transmute.stderr rename to tests/ui/packed-struct/packed-struct-transmute.stderr diff --git a/src/test/ui/packed/auxiliary/packed.rs b/tests/ui/packed/auxiliary/packed.rs similarity index 100% rename from src/test/ui/packed/auxiliary/packed.rs rename to tests/ui/packed/auxiliary/packed.rs diff --git a/src/test/ui/packed/issue-27060-2.rs b/tests/ui/packed/issue-27060-2.rs similarity index 100% rename from src/test/ui/packed/issue-27060-2.rs rename to tests/ui/packed/issue-27060-2.rs diff --git a/src/test/ui/packed/issue-27060-2.stderr b/tests/ui/packed/issue-27060-2.stderr similarity index 100% rename from src/test/ui/packed/issue-27060-2.stderr rename to tests/ui/packed/issue-27060-2.stderr diff --git a/src/test/ui/packed/issue-27060-rpass.rs b/tests/ui/packed/issue-27060-rpass.rs similarity index 100% rename from src/test/ui/packed/issue-27060-rpass.rs rename to tests/ui/packed/issue-27060-rpass.rs diff --git a/src/test/ui/packed/issue-27060-rpass.stderr b/tests/ui/packed/issue-27060-rpass.stderr similarity index 100% rename from src/test/ui/packed/issue-27060-rpass.stderr rename to tests/ui/packed/issue-27060-rpass.stderr diff --git a/src/test/ui/packed/issue-27060.rs b/tests/ui/packed/issue-27060.rs similarity index 100% rename from src/test/ui/packed/issue-27060.rs rename to tests/ui/packed/issue-27060.rs diff --git a/src/test/ui/packed/issue-27060.stderr b/tests/ui/packed/issue-27060.stderr similarity index 100% rename from src/test/ui/packed/issue-27060.stderr rename to tests/ui/packed/issue-27060.stderr diff --git a/src/test/ui/packed/issue-46152.rs b/tests/ui/packed/issue-46152.rs similarity index 100% rename from src/test/ui/packed/issue-46152.rs rename to tests/ui/packed/issue-46152.rs diff --git a/src/test/ui/packed/packed-struct-address-of-element.rs b/tests/ui/packed/packed-struct-address-of-element.rs similarity index 100% rename from src/test/ui/packed/packed-struct-address-of-element.rs rename to tests/ui/packed/packed-struct-address-of-element.rs diff --git a/src/test/ui/packed/packed-struct-borrow-element-64bit.rs b/tests/ui/packed/packed-struct-borrow-element-64bit.rs similarity index 100% rename from src/test/ui/packed/packed-struct-borrow-element-64bit.rs rename to tests/ui/packed/packed-struct-borrow-element-64bit.rs diff --git a/src/test/ui/packed/packed-struct-borrow-element-64bit.stderr b/tests/ui/packed/packed-struct-borrow-element-64bit.stderr similarity index 100% rename from src/test/ui/packed/packed-struct-borrow-element-64bit.stderr rename to tests/ui/packed/packed-struct-borrow-element-64bit.stderr diff --git a/src/test/ui/packed/packed-struct-borrow-element.rs b/tests/ui/packed/packed-struct-borrow-element.rs similarity index 100% rename from src/test/ui/packed/packed-struct-borrow-element.rs rename to tests/ui/packed/packed-struct-borrow-element.rs diff --git a/src/test/ui/packed/packed-struct-borrow-element.stderr b/tests/ui/packed/packed-struct-borrow-element.stderr similarity index 100% rename from src/test/ui/packed/packed-struct-borrow-element.stderr rename to tests/ui/packed/packed-struct-borrow-element.stderr diff --git a/src/test/ui/packed/packed-struct-drop-aligned.rs b/tests/ui/packed/packed-struct-drop-aligned.rs similarity index 100% rename from src/test/ui/packed/packed-struct-drop-aligned.rs rename to tests/ui/packed/packed-struct-drop-aligned.rs diff --git a/src/test/ui/packed/packed-struct-generic-layout.rs b/tests/ui/packed/packed-struct-generic-layout.rs similarity index 100% rename from src/test/ui/packed/packed-struct-generic-layout.rs rename to tests/ui/packed/packed-struct-generic-layout.rs diff --git a/src/test/ui/packed/packed-struct-generic-size.rs b/tests/ui/packed/packed-struct-generic-size.rs similarity index 100% rename from src/test/ui/packed/packed-struct-generic-size.rs rename to tests/ui/packed/packed-struct-generic-size.rs diff --git a/src/test/ui/packed/packed-struct-layout.rs b/tests/ui/packed/packed-struct-layout.rs similarity index 100% rename from src/test/ui/packed/packed-struct-layout.rs rename to tests/ui/packed/packed-struct-layout.rs diff --git a/src/test/ui/packed/packed-struct-match.rs b/tests/ui/packed/packed-struct-match.rs similarity index 100% rename from src/test/ui/packed/packed-struct-match.rs rename to tests/ui/packed/packed-struct-match.rs diff --git a/src/test/ui/packed/packed-struct-optimized-enum.rs b/tests/ui/packed/packed-struct-optimized-enum.rs similarity index 100% rename from src/test/ui/packed/packed-struct-optimized-enum.rs rename to tests/ui/packed/packed-struct-optimized-enum.rs diff --git a/src/test/ui/packed/packed-struct-size-xc.rs b/tests/ui/packed/packed-struct-size-xc.rs similarity index 100% rename from src/test/ui/packed/packed-struct-size-xc.rs rename to tests/ui/packed/packed-struct-size-xc.rs diff --git a/src/test/ui/packed/packed-struct-size.rs b/tests/ui/packed/packed-struct-size.rs similarity index 100% rename from src/test/ui/packed/packed-struct-size.rs rename to tests/ui/packed/packed-struct-size.rs diff --git a/src/test/ui/packed/packed-struct-vec.rs b/tests/ui/packed/packed-struct-vec.rs similarity index 100% rename from src/test/ui/packed/packed-struct-vec.rs rename to tests/ui/packed/packed-struct-vec.rs diff --git a/src/test/ui/packed/packed-tuple-struct-layout.rs b/tests/ui/packed/packed-tuple-struct-layout.rs similarity index 100% rename from src/test/ui/packed/packed-tuple-struct-layout.rs rename to tests/ui/packed/packed-tuple-struct-layout.rs diff --git a/src/test/ui/packed/packed-tuple-struct-size.rs b/tests/ui/packed/packed-tuple-struct-size.rs similarity index 100% rename from src/test/ui/packed/packed-tuple-struct-size.rs rename to tests/ui/packed/packed-tuple-struct-size.rs diff --git a/src/test/ui/packed/packed-with-inference-vars-issue-61402.rs b/tests/ui/packed/packed-with-inference-vars-issue-61402.rs similarity index 100% rename from src/test/ui/packed/packed-with-inference-vars-issue-61402.rs rename to tests/ui/packed/packed-with-inference-vars-issue-61402.rs diff --git a/src/test/ui/panic-handler/auxiliary/some-panic-impl.rs b/tests/ui/panic-handler/auxiliary/some-panic-impl.rs similarity index 100% rename from src/test/ui/panic-handler/auxiliary/some-panic-impl.rs rename to tests/ui/panic-handler/auxiliary/some-panic-impl.rs diff --git a/src/test/ui/panic-handler/auxiliary/weak-lang-items.rs b/tests/ui/panic-handler/auxiliary/weak-lang-items.rs similarity index 100% rename from src/test/ui/panic-handler/auxiliary/weak-lang-items.rs rename to tests/ui/panic-handler/auxiliary/weak-lang-items.rs diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-1.rs b/tests/ui/panic-handler/panic-handler-bad-signature-1.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-1.rs rename to tests/ui/panic-handler/panic-handler-bad-signature-1.rs diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-1.stderr b/tests/ui/panic-handler/panic-handler-bad-signature-1.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-1.stderr rename to tests/ui/panic-handler/panic-handler-bad-signature-1.stderr diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-2.rs b/tests/ui/panic-handler/panic-handler-bad-signature-2.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-2.rs rename to tests/ui/panic-handler/panic-handler-bad-signature-2.rs diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-2.stderr b/tests/ui/panic-handler/panic-handler-bad-signature-2.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-2.stderr rename to tests/ui/panic-handler/panic-handler-bad-signature-2.stderr diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-3.rs b/tests/ui/panic-handler/panic-handler-bad-signature-3.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-3.rs rename to tests/ui/panic-handler/panic-handler-bad-signature-3.rs diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-3.stderr b/tests/ui/panic-handler/panic-handler-bad-signature-3.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-3.stderr rename to tests/ui/panic-handler/panic-handler-bad-signature-3.stderr diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-4.rs b/tests/ui/panic-handler/panic-handler-bad-signature-4.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-4.rs rename to tests/ui/panic-handler/panic-handler-bad-signature-4.rs diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-4.stderr b/tests/ui/panic-handler/panic-handler-bad-signature-4.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-bad-signature-4.stderr rename to tests/ui/panic-handler/panic-handler-bad-signature-4.stderr diff --git a/src/test/ui/panic-handler/panic-handler-duplicate.rs b/tests/ui/panic-handler/panic-handler-duplicate.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-duplicate.rs rename to tests/ui/panic-handler/panic-handler-duplicate.rs diff --git a/src/test/ui/panic-handler/panic-handler-duplicate.stderr b/tests/ui/panic-handler/panic-handler-duplicate.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-duplicate.stderr rename to tests/ui/panic-handler/panic-handler-duplicate.stderr diff --git a/src/test/ui/panic-handler/panic-handler-missing.rs b/tests/ui/panic-handler/panic-handler-missing.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-missing.rs rename to tests/ui/panic-handler/panic-handler-missing.rs diff --git a/src/test/ui/panic-handler/panic-handler-requires-panic-info.rs b/tests/ui/panic-handler/panic-handler-requires-panic-info.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-requires-panic-info.rs rename to tests/ui/panic-handler/panic-handler-requires-panic-info.rs diff --git a/src/test/ui/panic-handler/panic-handler-requires-panic-info.stderr b/tests/ui/panic-handler/panic-handler-requires-panic-info.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-requires-panic-info.stderr rename to tests/ui/panic-handler/panic-handler-requires-panic-info.stderr diff --git a/src/test/ui/panic-handler/panic-handler-std.rs b/tests/ui/panic-handler/panic-handler-std.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-std.rs rename to tests/ui/panic-handler/panic-handler-std.rs diff --git a/src/test/ui/panic-handler/panic-handler-std.stderr b/tests/ui/panic-handler/panic-handler-std.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-std.stderr rename to tests/ui/panic-handler/panic-handler-std.stderr diff --git a/src/test/ui/panic-handler/panic-handler-twice.rs b/tests/ui/panic-handler/panic-handler-twice.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-twice.rs rename to tests/ui/panic-handler/panic-handler-twice.rs diff --git a/src/test/ui/panic-handler/panic-handler-wrong-location.rs b/tests/ui/panic-handler/panic-handler-wrong-location.rs similarity index 100% rename from src/test/ui/panic-handler/panic-handler-wrong-location.rs rename to tests/ui/panic-handler/panic-handler-wrong-location.rs diff --git a/src/test/ui/panic-handler/panic-handler-wrong-location.stderr b/tests/ui/panic-handler/panic-handler-wrong-location.stderr similarity index 100% rename from src/test/ui/panic-handler/panic-handler-wrong-location.stderr rename to tests/ui/panic-handler/panic-handler-wrong-location.stderr diff --git a/src/test/ui/panic-handler/weak-lang-item-2.rs b/tests/ui/panic-handler/weak-lang-item-2.rs similarity index 100% rename from src/test/ui/panic-handler/weak-lang-item-2.rs rename to tests/ui/panic-handler/weak-lang-item-2.rs diff --git a/src/test/ui/panic-handler/weak-lang-item.rs b/tests/ui/panic-handler/weak-lang-item.rs similarity index 100% rename from src/test/ui/panic-handler/weak-lang-item.rs rename to tests/ui/panic-handler/weak-lang-item.rs diff --git a/src/test/ui/panic-handler/weak-lang-item.stderr b/tests/ui/panic-handler/weak-lang-item.stderr similarity index 100% rename from src/test/ui/panic-handler/weak-lang-item.stderr rename to tests/ui/panic-handler/weak-lang-item.stderr diff --git a/src/test/ui/panic-runtime/abort-link-to-unwind-dylib.rs b/tests/ui/panic-runtime/abort-link-to-unwind-dylib.rs similarity index 100% rename from src/test/ui/panic-runtime/abort-link-to-unwind-dylib.rs rename to tests/ui/panic-runtime/abort-link-to-unwind-dylib.rs diff --git a/src/test/ui/panic-runtime/abort-link-to-unwind-dylib.stderr b/tests/ui/panic-runtime/abort-link-to-unwind-dylib.stderr similarity index 100% rename from src/test/ui/panic-runtime/abort-link-to-unwind-dylib.stderr rename to tests/ui/panic-runtime/abort-link-to-unwind-dylib.stderr diff --git a/src/test/ui/panic-runtime/abort-link-to-unwinding-crates.rs b/tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs similarity index 100% rename from src/test/ui/panic-runtime/abort-link-to-unwinding-crates.rs rename to tests/ui/panic-runtime/abort-link-to-unwinding-crates.rs diff --git a/src/test/ui/panic-runtime/abort.rs b/tests/ui/panic-runtime/abort.rs similarity index 100% rename from src/test/ui/panic-runtime/abort.rs rename to tests/ui/panic-runtime/abort.rs diff --git a/src/test/ui/panic-runtime/auxiliary/depends.rs b/tests/ui/panic-runtime/auxiliary/depends.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/depends.rs rename to tests/ui/panic-runtime/auxiliary/depends.rs diff --git a/src/test/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs b/tests/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs rename to tests/ui/panic-runtime/auxiliary/exit-success-if-unwind.rs diff --git a/src/test/ui/panic-runtime/auxiliary/needs-abort.rs b/tests/ui/panic-runtime/auxiliary/needs-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/needs-abort.rs rename to tests/ui/panic-runtime/auxiliary/needs-abort.rs diff --git a/src/test/ui/panic-runtime/auxiliary/needs-panic-runtime.rs b/tests/ui/panic-runtime/auxiliary/needs-panic-runtime.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/needs-panic-runtime.rs rename to tests/ui/panic-runtime/auxiliary/needs-panic-runtime.rs diff --git a/src/test/ui/panic-runtime/auxiliary/needs-unwind.rs b/tests/ui/panic-runtime/auxiliary/needs-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/needs-unwind.rs rename to tests/ui/panic-runtime/auxiliary/needs-unwind.rs diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-abort.rs b/tests/ui/panic-runtime/auxiliary/panic-runtime-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/panic-runtime-abort.rs rename to tests/ui/panic-runtime/auxiliary/panic-runtime-abort.rs diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs b/tests/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs rename to tests/ui/panic-runtime/auxiliary/panic-runtime-lang-items.rs diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs b/tests/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs rename to tests/ui/panic-runtime/auxiliary/panic-runtime-unwind.rs diff --git a/src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs b/tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs rename to tests/ui/panic-runtime/auxiliary/panic-runtime-unwind2.rs diff --git a/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs b/tests/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs rename to tests/ui/panic-runtime/auxiliary/wants-panic-runtime-abort.rs diff --git a/src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs b/tests/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs rename to tests/ui/panic-runtime/auxiliary/wants-panic-runtime-unwind.rs diff --git a/src/test/ui/panic-runtime/bad-panic-flag1.rs b/tests/ui/panic-runtime/bad-panic-flag1.rs similarity index 100% rename from src/test/ui/panic-runtime/bad-panic-flag1.rs rename to tests/ui/panic-runtime/bad-panic-flag1.rs diff --git a/src/test/ui/panic-runtime/bad-panic-flag1.stderr b/tests/ui/panic-runtime/bad-panic-flag1.stderr similarity index 100% rename from src/test/ui/panic-runtime/bad-panic-flag1.stderr rename to tests/ui/panic-runtime/bad-panic-flag1.stderr diff --git a/src/test/ui/panic-runtime/bad-panic-flag2.rs b/tests/ui/panic-runtime/bad-panic-flag2.rs similarity index 100% rename from src/test/ui/panic-runtime/bad-panic-flag2.rs rename to tests/ui/panic-runtime/bad-panic-flag2.rs diff --git a/src/test/ui/panic-runtime/bad-panic-flag2.stderr b/tests/ui/panic-runtime/bad-panic-flag2.stderr similarity index 100% rename from src/test/ui/panic-runtime/bad-panic-flag2.stderr rename to tests/ui/panic-runtime/bad-panic-flag2.stderr diff --git a/src/test/ui/panic-runtime/incompatible-type.rs b/tests/ui/panic-runtime/incompatible-type.rs similarity index 100% rename from src/test/ui/panic-runtime/incompatible-type.rs rename to tests/ui/panic-runtime/incompatible-type.rs diff --git a/src/test/ui/panic-runtime/link-to-abort.rs b/tests/ui/panic-runtime/link-to-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/link-to-abort.rs rename to tests/ui/panic-runtime/link-to-abort.rs diff --git a/src/test/ui/panic-runtime/link-to-unwind.rs b/tests/ui/panic-runtime/link-to-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/link-to-unwind.rs rename to tests/ui/panic-runtime/link-to-unwind.rs diff --git a/src/test/ui/panic-runtime/lto-abort.rs b/tests/ui/panic-runtime/lto-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/lto-abort.rs rename to tests/ui/panic-runtime/lto-abort.rs diff --git a/src/test/ui/panic-runtime/lto-unwind.rs b/tests/ui/panic-runtime/lto-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/lto-unwind.rs rename to tests/ui/panic-runtime/lto-unwind.rs diff --git a/src/test/ui/panic-runtime/need-abort-got-unwind.rs b/tests/ui/panic-runtime/need-abort-got-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/need-abort-got-unwind.rs rename to tests/ui/panic-runtime/need-abort-got-unwind.rs diff --git a/src/test/ui/panic-runtime/need-abort-got-unwind.stderr b/tests/ui/panic-runtime/need-abort-got-unwind.stderr similarity index 100% rename from src/test/ui/panic-runtime/need-abort-got-unwind.stderr rename to tests/ui/panic-runtime/need-abort-got-unwind.stderr diff --git a/src/test/ui/panic-runtime/need-unwind-got-abort.rs b/tests/ui/panic-runtime/need-unwind-got-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/need-unwind-got-abort.rs rename to tests/ui/panic-runtime/need-unwind-got-abort.rs diff --git a/src/test/ui/panic-runtime/need-unwind-got-abort.stderr b/tests/ui/panic-runtime/need-unwind-got-abort.stderr similarity index 100% rename from src/test/ui/panic-runtime/need-unwind-got-abort.stderr rename to tests/ui/panic-runtime/need-unwind-got-abort.stderr diff --git a/src/test/ui/panic-runtime/needs-gate.rs b/tests/ui/panic-runtime/needs-gate.rs similarity index 100% rename from src/test/ui/panic-runtime/needs-gate.rs rename to tests/ui/panic-runtime/needs-gate.rs diff --git a/src/test/ui/panic-runtime/needs-gate.stderr b/tests/ui/panic-runtime/needs-gate.stderr similarity index 100% rename from src/test/ui/panic-runtime/needs-gate.stderr rename to tests/ui/panic-runtime/needs-gate.stderr diff --git a/src/test/ui/panic-runtime/runtime-depend-on-needs-runtime.rs b/tests/ui/panic-runtime/runtime-depend-on-needs-runtime.rs similarity index 100% rename from src/test/ui/panic-runtime/runtime-depend-on-needs-runtime.rs rename to tests/ui/panic-runtime/runtime-depend-on-needs-runtime.rs diff --git a/src/test/ui/panic-runtime/transitive-link-a-bunch.rs b/tests/ui/panic-runtime/transitive-link-a-bunch.rs similarity index 100% rename from src/test/ui/panic-runtime/transitive-link-a-bunch.rs rename to tests/ui/panic-runtime/transitive-link-a-bunch.rs diff --git a/src/test/ui/panic-runtime/transitive-link-a-bunch.stderr b/tests/ui/panic-runtime/transitive-link-a-bunch.stderr similarity index 100% rename from src/test/ui/panic-runtime/transitive-link-a-bunch.stderr rename to tests/ui/panic-runtime/transitive-link-a-bunch.stderr diff --git a/src/test/ui/panic-runtime/two-panic-runtimes.rs b/tests/ui/panic-runtime/two-panic-runtimes.rs similarity index 100% rename from src/test/ui/panic-runtime/two-panic-runtimes.rs rename to tests/ui/panic-runtime/two-panic-runtimes.rs diff --git a/src/test/ui/panic-runtime/unwind-interleaved.rs b/tests/ui/panic-runtime/unwind-interleaved.rs similarity index 100% rename from src/test/ui/panic-runtime/unwind-interleaved.rs rename to tests/ui/panic-runtime/unwind-interleaved.rs diff --git a/src/test/ui/panic-runtime/unwind-rec.rs b/tests/ui/panic-runtime/unwind-rec.rs similarity index 100% rename from src/test/ui/panic-runtime/unwind-rec.rs rename to tests/ui/panic-runtime/unwind-rec.rs diff --git a/src/test/ui/panic-runtime/unwind-rec2.rs b/tests/ui/panic-runtime/unwind-rec2.rs similarity index 100% rename from src/test/ui/panic-runtime/unwind-rec2.rs rename to tests/ui/panic-runtime/unwind-rec2.rs diff --git a/src/test/ui/panic-runtime/unwind-tables-target-required.rs b/tests/ui/panic-runtime/unwind-tables-target-required.rs similarity index 100% rename from src/test/ui/panic-runtime/unwind-tables-target-required.rs rename to tests/ui/panic-runtime/unwind-tables-target-required.rs diff --git a/src/test/ui/panic-runtime/unwind-unique.rs b/tests/ui/panic-runtime/unwind-unique.rs similarity index 100% rename from src/test/ui/panic-runtime/unwind-unique.rs rename to tests/ui/panic-runtime/unwind-unique.rs diff --git a/src/test/ui/panic-runtime/want-abort-got-unwind.rs b/tests/ui/panic-runtime/want-abort-got-unwind.rs similarity index 100% rename from src/test/ui/panic-runtime/want-abort-got-unwind.rs rename to tests/ui/panic-runtime/want-abort-got-unwind.rs diff --git a/src/test/ui/panic-runtime/want-abort-got-unwind2.rs b/tests/ui/panic-runtime/want-abort-got-unwind2.rs similarity index 100% rename from src/test/ui/panic-runtime/want-abort-got-unwind2.rs rename to tests/ui/panic-runtime/want-abort-got-unwind2.rs diff --git a/src/test/ui/panic-runtime/want-unwind-got-abort.rs b/tests/ui/panic-runtime/want-unwind-got-abort.rs similarity index 100% rename from src/test/ui/panic-runtime/want-unwind-got-abort.rs rename to tests/ui/panic-runtime/want-unwind-got-abort.rs diff --git a/src/test/ui/panic-runtime/want-unwind-got-abort.stderr b/tests/ui/panic-runtime/want-unwind-got-abort.stderr similarity index 100% rename from src/test/ui/panic-runtime/want-unwind-got-abort.stderr rename to tests/ui/panic-runtime/want-unwind-got-abort.stderr diff --git a/src/test/ui/panic-runtime/want-unwind-got-abort2.rs b/tests/ui/panic-runtime/want-unwind-got-abort2.rs similarity index 100% rename from src/test/ui/panic-runtime/want-unwind-got-abort2.rs rename to tests/ui/panic-runtime/want-unwind-got-abort2.rs diff --git a/src/test/ui/panic-runtime/want-unwind-got-abort2.stderr b/tests/ui/panic-runtime/want-unwind-got-abort2.stderr similarity index 100% rename from src/test/ui/panic-runtime/want-unwind-got-abort2.stderr rename to tests/ui/panic-runtime/want-unwind-got-abort2.stderr diff --git a/src/test/ui/panic-while-printing.rs b/tests/ui/panic-while-printing.rs similarity index 100% rename from src/test/ui/panic-while-printing.rs rename to tests/ui/panic-while-printing.rs diff --git a/src/test/ui/panic_implementation-closures.rs b/tests/ui/panic_implementation-closures.rs similarity index 100% rename from src/test/ui/panic_implementation-closures.rs rename to tests/ui/panic_implementation-closures.rs diff --git a/src/test/ui/panics/abort-on-panic.rs b/tests/ui/panics/abort-on-panic.rs similarity index 100% rename from src/test/ui/panics/abort-on-panic.rs rename to tests/ui/panics/abort-on-panic.rs diff --git a/src/test/ui/panics/args-panic.rs b/tests/ui/panics/args-panic.rs similarity index 100% rename from src/test/ui/panics/args-panic.rs rename to tests/ui/panics/args-panic.rs diff --git a/src/test/ui/panics/default-backtrace-ice.rs b/tests/ui/panics/default-backtrace-ice.rs similarity index 100% rename from src/test/ui/panics/default-backtrace-ice.rs rename to tests/ui/panics/default-backtrace-ice.rs diff --git a/src/test/ui/panics/default-backtrace-ice.stderr b/tests/ui/panics/default-backtrace-ice.stderr similarity index 100% rename from src/test/ui/panics/default-backtrace-ice.stderr rename to tests/ui/panics/default-backtrace-ice.stderr diff --git a/src/test/ui/panics/doublepanic.rs b/tests/ui/panics/doublepanic.rs similarity index 100% rename from src/test/ui/panics/doublepanic.rs rename to tests/ui/panics/doublepanic.rs diff --git a/src/test/ui/panics/explicit-panic-msg.rs b/tests/ui/panics/explicit-panic-msg.rs similarity index 100% rename from src/test/ui/panics/explicit-panic-msg.rs rename to tests/ui/panics/explicit-panic-msg.rs diff --git a/src/test/ui/panics/explicit-panic.rs b/tests/ui/panics/explicit-panic.rs similarity index 100% rename from src/test/ui/panics/explicit-panic.rs rename to tests/ui/panics/explicit-panic.rs diff --git a/src/test/ui/panics/fmt-panic.rs b/tests/ui/panics/fmt-panic.rs similarity index 100% rename from src/test/ui/panics/fmt-panic.rs rename to tests/ui/panics/fmt-panic.rs diff --git a/src/test/ui/panics/issue-47429-short-backtraces.legacy.run.stderr b/tests/ui/panics/issue-47429-short-backtraces.legacy.run.stderr similarity index 100% rename from src/test/ui/panics/issue-47429-short-backtraces.legacy.run.stderr rename to tests/ui/panics/issue-47429-short-backtraces.legacy.run.stderr diff --git a/src/test/ui/panics/issue-47429-short-backtraces.rs b/tests/ui/panics/issue-47429-short-backtraces.rs similarity index 100% rename from src/test/ui/panics/issue-47429-short-backtraces.rs rename to tests/ui/panics/issue-47429-short-backtraces.rs diff --git a/src/test/ui/panics/issue-47429-short-backtraces.v0.run.stderr b/tests/ui/panics/issue-47429-short-backtraces.v0.run.stderr similarity index 100% rename from src/test/ui/panics/issue-47429-short-backtraces.v0.run.stderr rename to tests/ui/panics/issue-47429-short-backtraces.v0.run.stderr diff --git a/src/test/ui/panics/location-detail-panic-no-column.rs b/tests/ui/panics/location-detail-panic-no-column.rs similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-column.rs rename to tests/ui/panics/location-detail-panic-no-column.rs diff --git a/src/test/ui/panics/location-detail-panic-no-column.run.stderr b/tests/ui/panics/location-detail-panic-no-column.run.stderr similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-column.run.stderr rename to tests/ui/panics/location-detail-panic-no-column.run.stderr diff --git a/src/test/ui/panics/location-detail-panic-no-file.rs b/tests/ui/panics/location-detail-panic-no-file.rs similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-file.rs rename to tests/ui/panics/location-detail-panic-no-file.rs diff --git a/src/test/ui/panics/location-detail-panic-no-file.run.stderr b/tests/ui/panics/location-detail-panic-no-file.run.stderr similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-file.run.stderr rename to tests/ui/panics/location-detail-panic-no-file.run.stderr diff --git a/src/test/ui/panics/location-detail-panic-no-line.rs b/tests/ui/panics/location-detail-panic-no-line.rs similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-line.rs rename to tests/ui/panics/location-detail-panic-no-line.rs diff --git a/src/test/ui/panics/location-detail-panic-no-line.run.stderr b/tests/ui/panics/location-detail-panic-no-line.run.stderr similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-line.run.stderr rename to tests/ui/panics/location-detail-panic-no-line.run.stderr diff --git a/src/test/ui/panics/location-detail-panic-no-location-info.rs b/tests/ui/panics/location-detail-panic-no-location-info.rs similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-location-info.rs rename to tests/ui/panics/location-detail-panic-no-location-info.rs diff --git a/src/test/ui/panics/location-detail-panic-no-location-info.run.stderr b/tests/ui/panics/location-detail-panic-no-location-info.run.stderr similarity index 100% rename from src/test/ui/panics/location-detail-panic-no-location-info.run.stderr rename to tests/ui/panics/location-detail-panic-no-location-info.run.stderr diff --git a/src/test/ui/panics/location-detail-unwrap-no-file.rs b/tests/ui/panics/location-detail-unwrap-no-file.rs similarity index 100% rename from src/test/ui/panics/location-detail-unwrap-no-file.rs rename to tests/ui/panics/location-detail-unwrap-no-file.rs diff --git a/src/test/ui/panics/location-detail-unwrap-no-file.run.stderr b/tests/ui/panics/location-detail-unwrap-no-file.run.stderr similarity index 100% rename from src/test/ui/panics/location-detail-unwrap-no-file.run.stderr rename to tests/ui/panics/location-detail-unwrap-no-file.run.stderr diff --git a/src/test/ui/panics/main-panic.rs b/tests/ui/panics/main-panic.rs similarity index 100% rename from src/test/ui/panics/main-panic.rs rename to tests/ui/panics/main-panic.rs diff --git a/src/test/ui/panics/panic-2021.rs b/tests/ui/panics/panic-2021.rs similarity index 100% rename from src/test/ui/panics/panic-2021.rs rename to tests/ui/panics/panic-2021.rs diff --git a/src/test/ui/panics/panic-2021.stderr b/tests/ui/panics/panic-2021.stderr similarity index 100% rename from src/test/ui/panics/panic-2021.stderr rename to tests/ui/panics/panic-2021.stderr diff --git a/src/test/ui/panics/panic-arg.rs b/tests/ui/panics/panic-arg.rs similarity index 100% rename from src/test/ui/panics/panic-arg.rs rename to tests/ui/panics/panic-arg.rs diff --git a/src/test/ui/panics/panic-handler-chain-update-hook.rs b/tests/ui/panics/panic-handler-chain-update-hook.rs similarity index 100% rename from src/test/ui/panics/panic-handler-chain-update-hook.rs rename to tests/ui/panics/panic-handler-chain-update-hook.rs diff --git a/src/test/ui/panics/panic-handler-chain.rs b/tests/ui/panics/panic-handler-chain.rs similarity index 100% rename from src/test/ui/panics/panic-handler-chain.rs rename to tests/ui/panics/panic-handler-chain.rs diff --git a/src/test/ui/panics/panic-handler-flail-wildly.rs b/tests/ui/panics/panic-handler-flail-wildly.rs similarity index 100% rename from src/test/ui/panics/panic-handler-flail-wildly.rs rename to tests/ui/panics/panic-handler-flail-wildly.rs diff --git a/src/test/ui/panics/panic-handler-set-twice.rs b/tests/ui/panics/panic-handler-set-twice.rs similarity index 100% rename from src/test/ui/panics/panic-handler-set-twice.rs rename to tests/ui/panics/panic-handler-set-twice.rs diff --git a/src/test/ui/panics/panic-in-dtor-drops-fields.rs b/tests/ui/panics/panic-in-dtor-drops-fields.rs similarity index 100% rename from src/test/ui/panics/panic-in-dtor-drops-fields.rs rename to tests/ui/panics/panic-in-dtor-drops-fields.rs diff --git a/src/test/ui/panics/panic-macro-any-wrapped.rs b/tests/ui/panics/panic-macro-any-wrapped.rs similarity index 100% rename from src/test/ui/panics/panic-macro-any-wrapped.rs rename to tests/ui/panics/panic-macro-any-wrapped.rs diff --git a/src/test/ui/panics/panic-macro-any.rs b/tests/ui/panics/panic-macro-any.rs similarity index 100% rename from src/test/ui/panics/panic-macro-any.rs rename to tests/ui/panics/panic-macro-any.rs diff --git a/src/test/ui/panics/panic-macro-explicit.rs b/tests/ui/panics/panic-macro-explicit.rs similarity index 100% rename from src/test/ui/panics/panic-macro-explicit.rs rename to tests/ui/panics/panic-macro-explicit.rs diff --git a/src/test/ui/panics/panic-macro-fmt.rs b/tests/ui/panics/panic-macro-fmt.rs similarity index 100% rename from src/test/ui/panics/panic-macro-fmt.rs rename to tests/ui/panics/panic-macro-fmt.rs diff --git a/src/test/ui/panics/panic-macro-owned.rs b/tests/ui/panics/panic-macro-owned.rs similarity index 100% rename from src/test/ui/panics/panic-macro-owned.rs rename to tests/ui/panics/panic-macro-owned.rs diff --git a/src/test/ui/panics/panic-macro-static.rs b/tests/ui/panics/panic-macro-static.rs similarity index 100% rename from src/test/ui/panics/panic-macro-static.rs rename to tests/ui/panics/panic-macro-static.rs diff --git a/src/test/ui/panics/panic-main.rs b/tests/ui/panics/panic-main.rs similarity index 100% rename from src/test/ui/panics/panic-main.rs rename to tests/ui/panics/panic-main.rs diff --git a/src/test/ui/panics/panic-parens.rs b/tests/ui/panics/panic-parens.rs similarity index 100% rename from src/test/ui/panics/panic-parens.rs rename to tests/ui/panics/panic-parens.rs diff --git a/src/test/ui/panics/panic-recover-propagate.rs b/tests/ui/panics/panic-recover-propagate.rs similarity index 100% rename from src/test/ui/panics/panic-recover-propagate.rs rename to tests/ui/panics/panic-recover-propagate.rs diff --git a/src/test/ui/panics/panic-set-handler.rs b/tests/ui/panics/panic-set-handler.rs similarity index 100% rename from src/test/ui/panics/panic-set-handler.rs rename to tests/ui/panics/panic-set-handler.rs diff --git a/src/test/ui/panics/panic-set-unset-handler.rs b/tests/ui/panics/panic-set-unset-handler.rs similarity index 100% rename from src/test/ui/panics/panic-set-unset-handler.rs rename to tests/ui/panics/panic-set-unset-handler.rs diff --git a/src/test/ui/panics/panic-short-backtrace-windows-x86_64.rs b/tests/ui/panics/panic-short-backtrace-windows-x86_64.rs similarity index 100% rename from src/test/ui/panics/panic-short-backtrace-windows-x86_64.rs rename to tests/ui/panics/panic-short-backtrace-windows-x86_64.rs diff --git a/src/test/ui/panics/panic-short-backtrace-windows-x86_64.run.stderr b/tests/ui/panics/panic-short-backtrace-windows-x86_64.run.stderr similarity index 100% rename from src/test/ui/panics/panic-short-backtrace-windows-x86_64.run.stderr rename to tests/ui/panics/panic-short-backtrace-windows-x86_64.run.stderr diff --git a/src/test/ui/panics/panic-take-handler-nop.rs b/tests/ui/panics/panic-take-handler-nop.rs similarity index 100% rename from src/test/ui/panics/panic-take-handler-nop.rs rename to tests/ui/panics/panic-take-handler-nop.rs diff --git a/src/test/ui/panics/panic-task-name-none.rs b/tests/ui/panics/panic-task-name-none.rs similarity index 100% rename from src/test/ui/panics/panic-task-name-none.rs rename to tests/ui/panics/panic-task-name-none.rs diff --git a/src/test/ui/panics/panic-task-name-owned.rs b/tests/ui/panics/panic-task-name-owned.rs similarity index 100% rename from src/test/ui/panics/panic-task-name-owned.rs rename to tests/ui/panics/panic-task-name-owned.rs diff --git a/src/test/ui/panics/panic.rs b/tests/ui/panics/panic.rs similarity index 100% rename from src/test/ui/panics/panic.rs rename to tests/ui/panics/panic.rs diff --git a/src/test/ui/panics/result-get-panic.rs b/tests/ui/panics/result-get-panic.rs similarity index 100% rename from src/test/ui/panics/result-get-panic.rs rename to tests/ui/panics/result-get-panic.rs diff --git a/src/test/ui/panics/runtime-switch.legacy.run.stderr b/tests/ui/panics/runtime-switch.legacy.run.stderr similarity index 100% rename from src/test/ui/panics/runtime-switch.legacy.run.stderr rename to tests/ui/panics/runtime-switch.legacy.run.stderr diff --git a/src/test/ui/panics/runtime-switch.rs b/tests/ui/panics/runtime-switch.rs similarity index 100% rename from src/test/ui/panics/runtime-switch.rs rename to tests/ui/panics/runtime-switch.rs diff --git a/src/test/ui/panics/runtime-switch.v0.run.stderr b/tests/ui/panics/runtime-switch.v0.run.stderr similarity index 100% rename from src/test/ui/panics/runtime-switch.v0.run.stderr rename to tests/ui/panics/runtime-switch.v0.run.stderr diff --git a/src/test/ui/panics/test-panic.rs b/tests/ui/panics/test-panic.rs similarity index 100% rename from src/test/ui/panics/test-panic.rs rename to tests/ui/panics/test-panic.rs diff --git a/src/test/ui/panics/test-should-fail-bad-message.rs b/tests/ui/panics/test-should-fail-bad-message.rs similarity index 100% rename from src/test/ui/panics/test-should-fail-bad-message.rs rename to tests/ui/panics/test-should-fail-bad-message.rs diff --git a/src/test/ui/panics/test-should-panic-bad-message.rs b/tests/ui/panics/test-should-panic-bad-message.rs similarity index 100% rename from src/test/ui/panics/test-should-panic-bad-message.rs rename to tests/ui/panics/test-should-panic-bad-message.rs diff --git a/src/test/ui/panics/test-should-panic-no-message.rs b/tests/ui/panics/test-should-panic-no-message.rs similarity index 100% rename from src/test/ui/panics/test-should-panic-no-message.rs rename to tests/ui/panics/test-should-panic-no-message.rs diff --git a/src/test/ui/panics/unique-panic.rs b/tests/ui/panics/unique-panic.rs similarity index 100% rename from src/test/ui/panics/unique-panic.rs rename to tests/ui/panics/unique-panic.rs diff --git a/src/test/ui/panics/while-body-panics.rs b/tests/ui/panics/while-body-panics.rs similarity index 100% rename from src/test/ui/panics/while-body-panics.rs rename to tests/ui/panics/while-body-panics.rs diff --git a/src/test/ui/panics/while-panic.rs b/tests/ui/panics/while-panic.rs similarity index 100% rename from src/test/ui/panics/while-panic.rs rename to tests/ui/panics/while-panic.rs diff --git a/src/test/ui/paren-span.rs b/tests/ui/paren-span.rs similarity index 100% rename from src/test/ui/paren-span.rs rename to tests/ui/paren-span.rs diff --git a/src/test/ui/paren-span.stderr b/tests/ui/paren-span.stderr similarity index 100% rename from src/test/ui/paren-span.stderr rename to tests/ui/paren-span.stderr diff --git a/src/test/ui/parser/ascii-only-character-escape.rs b/tests/ui/parser/ascii-only-character-escape.rs similarity index 100% rename from src/test/ui/parser/ascii-only-character-escape.rs rename to tests/ui/parser/ascii-only-character-escape.rs diff --git a/src/test/ui/parser/ascii-only-character-escape.stderr b/tests/ui/parser/ascii-only-character-escape.stderr similarity index 100% rename from src/test/ui/parser/ascii-only-character-escape.stderr rename to tests/ui/parser/ascii-only-character-escape.stderr diff --git a/src/test/ui/parser/assoc-const-underscore-semantic-fail.rs b/tests/ui/parser/assoc-const-underscore-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/assoc-const-underscore-semantic-fail.rs rename to tests/ui/parser/assoc-const-underscore-semantic-fail.rs diff --git a/src/test/ui/parser/assoc-const-underscore-semantic-fail.stderr b/tests/ui/parser/assoc-const-underscore-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/assoc-const-underscore-semantic-fail.stderr rename to tests/ui/parser/assoc-const-underscore-semantic-fail.stderr diff --git a/src/test/ui/parser/assoc-const-underscore-syntactic-pass.rs b/tests/ui/parser/assoc-const-underscore-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/assoc-const-underscore-syntactic-pass.rs rename to tests/ui/parser/assoc-const-underscore-syntactic-pass.rs diff --git a/src/test/ui/parser/assoc-oddities-1.rs b/tests/ui/parser/assoc-oddities-1.rs similarity index 100% rename from src/test/ui/parser/assoc-oddities-1.rs rename to tests/ui/parser/assoc-oddities-1.rs diff --git a/src/test/ui/parser/assoc-oddities-1.stderr b/tests/ui/parser/assoc-oddities-1.stderr similarity index 100% rename from src/test/ui/parser/assoc-oddities-1.stderr rename to tests/ui/parser/assoc-oddities-1.stderr diff --git a/src/test/ui/parser/assoc-oddities-2.rs b/tests/ui/parser/assoc-oddities-2.rs similarity index 100% rename from src/test/ui/parser/assoc-oddities-2.rs rename to tests/ui/parser/assoc-oddities-2.rs diff --git a/src/test/ui/parser/assoc-oddities-2.stderr b/tests/ui/parser/assoc-oddities-2.stderr similarity index 100% rename from src/test/ui/parser/assoc-oddities-2.stderr rename to tests/ui/parser/assoc-oddities-2.stderr diff --git a/src/test/ui/parser/assoc-static-semantic-fail.rs b/tests/ui/parser/assoc-static-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/assoc-static-semantic-fail.rs rename to tests/ui/parser/assoc-static-semantic-fail.rs diff --git a/src/test/ui/parser/assoc-static-semantic-fail.stderr b/tests/ui/parser/assoc-static-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/assoc-static-semantic-fail.stderr rename to tests/ui/parser/assoc-static-semantic-fail.stderr diff --git a/src/test/ui/parser/assoc-static-syntactic-fail.rs b/tests/ui/parser/assoc-static-syntactic-fail.rs similarity index 100% rename from src/test/ui/parser/assoc-static-syntactic-fail.rs rename to tests/ui/parser/assoc-static-syntactic-fail.rs diff --git a/src/test/ui/parser/assoc-static-syntactic-fail.stderr b/tests/ui/parser/assoc-static-syntactic-fail.stderr similarity index 100% rename from src/test/ui/parser/assoc-static-syntactic-fail.stderr rename to tests/ui/parser/assoc-static-syntactic-fail.stderr diff --git a/src/test/ui/parser/assoc-type-in-type-arg.rs b/tests/ui/parser/assoc-type-in-type-arg.rs similarity index 100% rename from src/test/ui/parser/assoc-type-in-type-arg.rs rename to tests/ui/parser/assoc-type-in-type-arg.rs diff --git a/src/test/ui/parser/assoc-type-in-type-arg.stderr b/tests/ui/parser/assoc-type-in-type-arg.stderr similarity index 100% rename from src/test/ui/parser/assoc-type-in-type-arg.stderr rename to tests/ui/parser/assoc-type-in-type-arg.stderr diff --git a/src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs b/tests/ui/parser/associated-types-project-from-hrtb-explicit.rs similarity index 100% rename from src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs rename to tests/ui/parser/associated-types-project-from-hrtb-explicit.rs diff --git a/src/test/ui/parser/associated-types-project-from-hrtb-explicit.stderr b/tests/ui/parser/associated-types-project-from-hrtb-explicit.stderr similarity index 100% rename from src/test/ui/parser/associated-types-project-from-hrtb-explicit.stderr rename to tests/ui/parser/associated-types-project-from-hrtb-explicit.stderr diff --git a/src/test/ui/parser/attr-bad-meta-2.rs b/tests/ui/parser/attr-bad-meta-2.rs similarity index 100% rename from src/test/ui/parser/attr-bad-meta-2.rs rename to tests/ui/parser/attr-bad-meta-2.rs diff --git a/src/test/ui/parser/attr-bad-meta-2.stderr b/tests/ui/parser/attr-bad-meta-2.stderr similarity index 100% rename from src/test/ui/parser/attr-bad-meta-2.stderr rename to tests/ui/parser/attr-bad-meta-2.stderr diff --git a/src/test/ui/parser/attr-bad-meta-3.rs b/tests/ui/parser/attr-bad-meta-3.rs similarity index 100% rename from src/test/ui/parser/attr-bad-meta-3.rs rename to tests/ui/parser/attr-bad-meta-3.rs diff --git a/src/test/ui/parser/attr-bad-meta-3.stderr b/tests/ui/parser/attr-bad-meta-3.stderr similarity index 100% rename from src/test/ui/parser/attr-bad-meta-3.stderr rename to tests/ui/parser/attr-bad-meta-3.stderr diff --git a/src/test/ui/parser/attr-bad-meta.rs b/tests/ui/parser/attr-bad-meta.rs similarity index 100% rename from src/test/ui/parser/attr-bad-meta.rs rename to tests/ui/parser/attr-bad-meta.rs diff --git a/src/test/ui/parser/attr-bad-meta.stderr b/tests/ui/parser/attr-bad-meta.stderr similarity index 100% rename from src/test/ui/parser/attr-bad-meta.stderr rename to tests/ui/parser/attr-bad-meta.stderr diff --git a/src/test/ui/parser/attr-before-eof.rs b/tests/ui/parser/attr-before-eof.rs similarity index 100% rename from src/test/ui/parser/attr-before-eof.rs rename to tests/ui/parser/attr-before-eof.rs diff --git a/src/test/ui/parser/attr-before-eof.stderr b/tests/ui/parser/attr-before-eof.stderr similarity index 100% rename from src/test/ui/parser/attr-before-eof.stderr rename to tests/ui/parser/attr-before-eof.stderr diff --git a/src/test/ui/parser/attr-dangling-in-fn.rs b/tests/ui/parser/attr-dangling-in-fn.rs similarity index 100% rename from src/test/ui/parser/attr-dangling-in-fn.rs rename to tests/ui/parser/attr-dangling-in-fn.rs diff --git a/src/test/ui/parser/attr-dangling-in-fn.stderr b/tests/ui/parser/attr-dangling-in-fn.stderr similarity index 100% rename from src/test/ui/parser/attr-dangling-in-fn.stderr rename to tests/ui/parser/attr-dangling-in-fn.stderr diff --git a/src/test/ui/parser/attr-dangling-in-mod.rs b/tests/ui/parser/attr-dangling-in-mod.rs similarity index 100% rename from src/test/ui/parser/attr-dangling-in-mod.rs rename to tests/ui/parser/attr-dangling-in-mod.rs diff --git a/src/test/ui/parser/attr-dangling-in-mod.stderr b/tests/ui/parser/attr-dangling-in-mod.stderr similarity index 100% rename from src/test/ui/parser/attr-dangling-in-mod.stderr rename to tests/ui/parser/attr-dangling-in-mod.stderr diff --git a/src/test/ui/parser/attr-stmt-expr-attr-bad.rs b/tests/ui/parser/attr-stmt-expr-attr-bad.rs similarity index 100% rename from src/test/ui/parser/attr-stmt-expr-attr-bad.rs rename to tests/ui/parser/attr-stmt-expr-attr-bad.rs diff --git a/src/test/ui/parser/attr-stmt-expr-attr-bad.stderr b/tests/ui/parser/attr-stmt-expr-attr-bad.stderr similarity index 100% rename from src/test/ui/parser/attr-stmt-expr-attr-bad.stderr rename to tests/ui/parser/attr-stmt-expr-attr-bad.stderr diff --git a/src/test/ui/parser/attr-with-a-semicolon.rs b/tests/ui/parser/attr-with-a-semicolon.rs similarity index 100% rename from src/test/ui/parser/attr-with-a-semicolon.rs rename to tests/ui/parser/attr-with-a-semicolon.rs diff --git a/src/test/ui/parser/attr-with-a-semicolon.stderr b/tests/ui/parser/attr-with-a-semicolon.stderr similarity index 100% rename from src/test/ui/parser/attr-with-a-semicolon.stderr rename to tests/ui/parser/attr-with-a-semicolon.stderr diff --git a/src/test/ui/parser/attr.rs b/tests/ui/parser/attr.rs similarity index 100% rename from src/test/ui/parser/attr.rs rename to tests/ui/parser/attr.rs diff --git a/src/test/ui/parser/attr.stderr b/tests/ui/parser/attr.stderr similarity index 100% rename from src/test/ui/parser/attr.stderr rename to tests/ui/parser/attr.stderr diff --git a/src/test/ui/parser/attribute-with-no-generics-in-parameter-list.rs b/tests/ui/parser/attribute-with-no-generics-in-parameter-list.rs similarity index 100% rename from src/test/ui/parser/attribute-with-no-generics-in-parameter-list.rs rename to tests/ui/parser/attribute-with-no-generics-in-parameter-list.rs diff --git a/src/test/ui/parser/attribute-with-no-generics-in-parameter-list.stderr b/tests/ui/parser/attribute-with-no-generics-in-parameter-list.stderr similarity index 100% rename from src/test/ui/parser/attribute-with-no-generics-in-parameter-list.stderr rename to tests/ui/parser/attribute-with-no-generics-in-parameter-list.stderr diff --git a/src/test/ui/parser/attrs-after-extern-mod.rs b/tests/ui/parser/attrs-after-extern-mod.rs similarity index 100% rename from src/test/ui/parser/attrs-after-extern-mod.rs rename to tests/ui/parser/attrs-after-extern-mod.rs diff --git a/src/test/ui/parser/attrs-after-extern-mod.stderr b/tests/ui/parser/attrs-after-extern-mod.stderr similarity index 100% rename from src/test/ui/parser/attrs-after-extern-mod.stderr rename to tests/ui/parser/attrs-after-extern-mod.stderr diff --git a/src/test/ui/parser/bad-char-literals.rs b/tests/ui/parser/bad-char-literals.rs similarity index 100% rename from src/test/ui/parser/bad-char-literals.rs rename to tests/ui/parser/bad-char-literals.rs diff --git a/src/test/ui/parser/bad-char-literals.stderr b/tests/ui/parser/bad-char-literals.stderr similarity index 100% rename from src/test/ui/parser/bad-char-literals.stderr rename to tests/ui/parser/bad-char-literals.stderr diff --git a/src/test/ui/parser/bad-crate-name.rs b/tests/ui/parser/bad-crate-name.rs similarity index 100% rename from src/test/ui/parser/bad-crate-name.rs rename to tests/ui/parser/bad-crate-name.rs diff --git a/src/test/ui/parser/bad-crate-name.stderr b/tests/ui/parser/bad-crate-name.stderr similarity index 100% rename from src/test/ui/parser/bad-crate-name.stderr rename to tests/ui/parser/bad-crate-name.stderr diff --git a/src/test/ui/parser/bad-escape-suggest-raw-string.rs b/tests/ui/parser/bad-escape-suggest-raw-string.rs similarity index 100% rename from src/test/ui/parser/bad-escape-suggest-raw-string.rs rename to tests/ui/parser/bad-escape-suggest-raw-string.rs diff --git a/src/test/ui/parser/bad-escape-suggest-raw-string.stderr b/tests/ui/parser/bad-escape-suggest-raw-string.stderr similarity index 100% rename from src/test/ui/parser/bad-escape-suggest-raw-string.stderr rename to tests/ui/parser/bad-escape-suggest-raw-string.stderr diff --git a/src/test/ui/parser/bad-fn-ptr-qualifier.fixed b/tests/ui/parser/bad-fn-ptr-qualifier.fixed similarity index 100% rename from src/test/ui/parser/bad-fn-ptr-qualifier.fixed rename to tests/ui/parser/bad-fn-ptr-qualifier.fixed diff --git a/src/test/ui/parser/bad-fn-ptr-qualifier.rs b/tests/ui/parser/bad-fn-ptr-qualifier.rs similarity index 100% rename from src/test/ui/parser/bad-fn-ptr-qualifier.rs rename to tests/ui/parser/bad-fn-ptr-qualifier.rs diff --git a/src/test/ui/parser/bad-fn-ptr-qualifier.stderr b/tests/ui/parser/bad-fn-ptr-qualifier.stderr similarity index 100% rename from src/test/ui/parser/bad-fn-ptr-qualifier.stderr rename to tests/ui/parser/bad-fn-ptr-qualifier.stderr diff --git a/src/test/ui/parser/bad-if-statements.rs b/tests/ui/parser/bad-if-statements.rs similarity index 100% rename from src/test/ui/parser/bad-if-statements.rs rename to tests/ui/parser/bad-if-statements.rs diff --git a/src/test/ui/parser/bad-if-statements.stderr b/tests/ui/parser/bad-if-statements.stderr similarity index 100% rename from src/test/ui/parser/bad-if-statements.stderr rename to tests/ui/parser/bad-if-statements.stderr diff --git a/src/test/ui/parser/bad-interpolated-block.rs b/tests/ui/parser/bad-interpolated-block.rs similarity index 100% rename from src/test/ui/parser/bad-interpolated-block.rs rename to tests/ui/parser/bad-interpolated-block.rs diff --git a/src/test/ui/parser/bad-interpolated-block.stderr b/tests/ui/parser/bad-interpolated-block.stderr similarity index 100% rename from src/test/ui/parser/bad-interpolated-block.stderr rename to tests/ui/parser/bad-interpolated-block.stderr diff --git a/src/test/ui/parser/bad-let-as-field.rs b/tests/ui/parser/bad-let-as-field.rs similarity index 100% rename from src/test/ui/parser/bad-let-as-field.rs rename to tests/ui/parser/bad-let-as-field.rs diff --git a/src/test/ui/parser/bad-let-as-field.stderr b/tests/ui/parser/bad-let-as-field.stderr similarity index 100% rename from src/test/ui/parser/bad-let-as-field.stderr rename to tests/ui/parser/bad-let-as-field.stderr diff --git a/src/test/ui/parser/bad-lit-suffixes.rs b/tests/ui/parser/bad-lit-suffixes.rs similarity index 100% rename from src/test/ui/parser/bad-lit-suffixes.rs rename to tests/ui/parser/bad-lit-suffixes.rs diff --git a/src/test/ui/parser/bad-lit-suffixes.stderr b/tests/ui/parser/bad-lit-suffixes.stderr similarity index 100% rename from src/test/ui/parser/bad-lit-suffixes.stderr rename to tests/ui/parser/bad-lit-suffixes.stderr diff --git a/src/test/ui/parser/bad-match.rs b/tests/ui/parser/bad-match.rs similarity index 100% rename from src/test/ui/parser/bad-match.rs rename to tests/ui/parser/bad-match.rs diff --git a/src/test/ui/parser/bad-match.stderr b/tests/ui/parser/bad-match.stderr similarity index 100% rename from src/test/ui/parser/bad-match.stderr rename to tests/ui/parser/bad-match.stderr diff --git a/src/test/ui/parser/bad-name.rs b/tests/ui/parser/bad-name.rs similarity index 100% rename from src/test/ui/parser/bad-name.rs rename to tests/ui/parser/bad-name.rs diff --git a/src/test/ui/parser/bad-name.stderr b/tests/ui/parser/bad-name.stderr similarity index 100% rename from src/test/ui/parser/bad-name.stderr rename to tests/ui/parser/bad-name.stderr diff --git a/src/test/ui/parser/bad-pointer-type.rs b/tests/ui/parser/bad-pointer-type.rs similarity index 100% rename from src/test/ui/parser/bad-pointer-type.rs rename to tests/ui/parser/bad-pointer-type.rs diff --git a/src/test/ui/parser/bad-pointer-type.stderr b/tests/ui/parser/bad-pointer-type.stderr similarity index 100% rename from src/test/ui/parser/bad-pointer-type.stderr rename to tests/ui/parser/bad-pointer-type.stderr diff --git a/src/test/ui/parser/bad-struct-following-where.rs b/tests/ui/parser/bad-struct-following-where.rs similarity index 100% rename from src/test/ui/parser/bad-struct-following-where.rs rename to tests/ui/parser/bad-struct-following-where.rs diff --git a/src/test/ui/parser/bad-struct-following-where.stderr b/tests/ui/parser/bad-struct-following-where.stderr similarity index 100% rename from src/test/ui/parser/bad-struct-following-where.stderr rename to tests/ui/parser/bad-struct-following-where.stderr diff --git a/src/test/ui/parser/bad-value-ident-false.rs b/tests/ui/parser/bad-value-ident-false.rs similarity index 100% rename from src/test/ui/parser/bad-value-ident-false.rs rename to tests/ui/parser/bad-value-ident-false.rs diff --git a/src/test/ui/parser/bad-value-ident-false.stderr b/tests/ui/parser/bad-value-ident-false.stderr similarity index 100% rename from src/test/ui/parser/bad-value-ident-false.stderr rename to tests/ui/parser/bad-value-ident-false.stderr diff --git a/src/test/ui/parser/bad-value-ident-true.rs b/tests/ui/parser/bad-value-ident-true.rs similarity index 100% rename from src/test/ui/parser/bad-value-ident-true.rs rename to tests/ui/parser/bad-value-ident-true.rs diff --git a/src/test/ui/parser/bad-value-ident-true.stderr b/tests/ui/parser/bad-value-ident-true.stderr similarity index 100% rename from src/test/ui/parser/bad-value-ident-true.stderr rename to tests/ui/parser/bad-value-ident-true.stderr diff --git a/src/test/ui/parser/bare-struct-body.rs b/tests/ui/parser/bare-struct-body.rs similarity index 100% rename from src/test/ui/parser/bare-struct-body.rs rename to tests/ui/parser/bare-struct-body.rs diff --git a/src/test/ui/parser/bare-struct-body.stderr b/tests/ui/parser/bare-struct-body.stderr similarity index 100% rename from src/test/ui/parser/bare-struct-body.stderr rename to tests/ui/parser/bare-struct-body.stderr diff --git a/src/test/ui/parser/bastion-of-the-turbofish.rs b/tests/ui/parser/bastion-of-the-turbofish.rs similarity index 100% rename from src/test/ui/parser/bastion-of-the-turbofish.rs rename to tests/ui/parser/bastion-of-the-turbofish.rs diff --git a/src/test/ui/parser/better-expected.rs b/tests/ui/parser/better-expected.rs similarity index 100% rename from src/test/ui/parser/better-expected.rs rename to tests/ui/parser/better-expected.rs diff --git a/src/test/ui/parser/better-expected.stderr b/tests/ui/parser/better-expected.stderr similarity index 100% rename from src/test/ui/parser/better-expected.stderr rename to tests/ui/parser/better-expected.stderr diff --git a/src/test/ui/parser/bind-struct-early-modifiers.rs b/tests/ui/parser/bind-struct-early-modifiers.rs similarity index 100% rename from src/test/ui/parser/bind-struct-early-modifiers.rs rename to tests/ui/parser/bind-struct-early-modifiers.rs diff --git a/src/test/ui/parser/bind-struct-early-modifiers.stderr b/tests/ui/parser/bind-struct-early-modifiers.stderr similarity index 100% rename from src/test/ui/parser/bind-struct-early-modifiers.stderr rename to tests/ui/parser/bind-struct-early-modifiers.stderr diff --git a/src/test/ui/parser/block-no-opening-brace.rs b/tests/ui/parser/block-no-opening-brace.rs similarity index 100% rename from src/test/ui/parser/block-no-opening-brace.rs rename to tests/ui/parser/block-no-opening-brace.rs diff --git a/src/test/ui/parser/block-no-opening-brace.stderr b/tests/ui/parser/block-no-opening-brace.stderr similarity index 100% rename from src/test/ui/parser/block-no-opening-brace.stderr rename to tests/ui/parser/block-no-opening-brace.stderr diff --git a/src/test/ui/parser/bound-single-question-mark.rs b/tests/ui/parser/bound-single-question-mark.rs similarity index 100% rename from src/test/ui/parser/bound-single-question-mark.rs rename to tests/ui/parser/bound-single-question-mark.rs diff --git a/src/test/ui/parser/bound-single-question-mark.stderr b/tests/ui/parser/bound-single-question-mark.stderr similarity index 100% rename from src/test/ui/parser/bound-single-question-mark.stderr rename to tests/ui/parser/bound-single-question-mark.stderr diff --git a/src/test/ui/parser/bounds-lifetime-1.rs b/tests/ui/parser/bounds-lifetime-1.rs similarity index 100% rename from src/test/ui/parser/bounds-lifetime-1.rs rename to tests/ui/parser/bounds-lifetime-1.rs diff --git a/src/test/ui/parser/bounds-lifetime-1.stderr b/tests/ui/parser/bounds-lifetime-1.stderr similarity index 100% rename from src/test/ui/parser/bounds-lifetime-1.stderr rename to tests/ui/parser/bounds-lifetime-1.stderr diff --git a/src/test/ui/parser/bounds-lifetime-2.rs b/tests/ui/parser/bounds-lifetime-2.rs similarity index 100% rename from src/test/ui/parser/bounds-lifetime-2.rs rename to tests/ui/parser/bounds-lifetime-2.rs diff --git a/src/test/ui/parser/bounds-lifetime-2.stderr b/tests/ui/parser/bounds-lifetime-2.stderr similarity index 100% rename from src/test/ui/parser/bounds-lifetime-2.stderr rename to tests/ui/parser/bounds-lifetime-2.stderr diff --git a/src/test/ui/parser/bounds-lifetime-where-1.rs b/tests/ui/parser/bounds-lifetime-where-1.rs similarity index 100% rename from src/test/ui/parser/bounds-lifetime-where-1.rs rename to tests/ui/parser/bounds-lifetime-where-1.rs diff --git a/src/test/ui/parser/bounds-lifetime-where-1.stderr b/tests/ui/parser/bounds-lifetime-where-1.stderr similarity index 100% rename from src/test/ui/parser/bounds-lifetime-where-1.stderr rename to tests/ui/parser/bounds-lifetime-where-1.stderr diff --git a/src/test/ui/parser/bounds-lifetime-where.rs b/tests/ui/parser/bounds-lifetime-where.rs similarity index 100% rename from src/test/ui/parser/bounds-lifetime-where.rs rename to tests/ui/parser/bounds-lifetime-where.rs diff --git a/src/test/ui/parser/bounds-lifetime-where.stderr b/tests/ui/parser/bounds-lifetime-where.stderr similarity index 100% rename from src/test/ui/parser/bounds-lifetime-where.stderr rename to tests/ui/parser/bounds-lifetime-where.stderr diff --git a/src/test/ui/parser/bounds-lifetime.rs b/tests/ui/parser/bounds-lifetime.rs similarity index 100% rename from src/test/ui/parser/bounds-lifetime.rs rename to tests/ui/parser/bounds-lifetime.rs diff --git a/src/test/ui/parser/bounds-lifetime.stderr b/tests/ui/parser/bounds-lifetime.stderr similarity index 100% rename from src/test/ui/parser/bounds-lifetime.stderr rename to tests/ui/parser/bounds-lifetime.stderr diff --git a/src/test/ui/parser/bounds-obj-parens.rs b/tests/ui/parser/bounds-obj-parens.rs similarity index 100% rename from src/test/ui/parser/bounds-obj-parens.rs rename to tests/ui/parser/bounds-obj-parens.rs diff --git a/src/test/ui/parser/bounds-type-where.rs b/tests/ui/parser/bounds-type-where.rs similarity index 100% rename from src/test/ui/parser/bounds-type-where.rs rename to tests/ui/parser/bounds-type-where.rs diff --git a/src/test/ui/parser/bounds-type-where.stderr b/tests/ui/parser/bounds-type-where.stderr similarity index 100% rename from src/test/ui/parser/bounds-type-where.stderr rename to tests/ui/parser/bounds-type-where.stderr diff --git a/src/test/ui/parser/bounds-type.rs b/tests/ui/parser/bounds-type.rs similarity index 100% rename from src/test/ui/parser/bounds-type.rs rename to tests/ui/parser/bounds-type.rs diff --git a/src/test/ui/parser/bounds-type.stderr b/tests/ui/parser/bounds-type.stderr similarity index 100% rename from src/test/ui/parser/bounds-type.stderr rename to tests/ui/parser/bounds-type.stderr diff --git a/src/test/ui/parser/byte-literals.rs b/tests/ui/parser/byte-literals.rs similarity index 100% rename from src/test/ui/parser/byte-literals.rs rename to tests/ui/parser/byte-literals.rs diff --git a/src/test/ui/parser/byte-literals.stderr b/tests/ui/parser/byte-literals.stderr similarity index 100% rename from src/test/ui/parser/byte-literals.stderr rename to tests/ui/parser/byte-literals.stderr diff --git a/src/test/ui/parser/byte-string-literals.rs b/tests/ui/parser/byte-string-literals.rs similarity index 100% rename from src/test/ui/parser/byte-string-literals.rs rename to tests/ui/parser/byte-string-literals.rs diff --git a/src/test/ui/parser/byte-string-literals.stderr b/tests/ui/parser/byte-string-literals.stderr similarity index 100% rename from src/test/ui/parser/byte-string-literals.stderr rename to tests/ui/parser/byte-string-literals.stderr diff --git a/src/test/ui/parser/can-begin-expr-check.rs b/tests/ui/parser/can-begin-expr-check.rs similarity index 100% rename from src/test/ui/parser/can-begin-expr-check.rs rename to tests/ui/parser/can-begin-expr-check.rs diff --git a/src/test/ui/parser/can-begin-expr-check.stderr b/tests/ui/parser/can-begin-expr-check.stderr similarity index 100% rename from src/test/ui/parser/can-begin-expr-check.stderr rename to tests/ui/parser/can-begin-expr-check.stderr diff --git a/src/test/ui/parser/chained-comparison-suggestion.rs b/tests/ui/parser/chained-comparison-suggestion.rs similarity index 100% rename from src/test/ui/parser/chained-comparison-suggestion.rs rename to tests/ui/parser/chained-comparison-suggestion.rs diff --git a/src/test/ui/parser/chained-comparison-suggestion.stderr b/tests/ui/parser/chained-comparison-suggestion.stderr similarity index 100% rename from src/test/ui/parser/chained-comparison-suggestion.stderr rename to tests/ui/parser/chained-comparison-suggestion.stderr diff --git a/src/test/ui/parser/char/whitespace-character-literal.rs b/tests/ui/parser/char/whitespace-character-literal.rs similarity index 100% rename from src/test/ui/parser/char/whitespace-character-literal.rs rename to tests/ui/parser/char/whitespace-character-literal.rs diff --git a/src/test/ui/parser/char/whitespace-character-literal.stderr b/tests/ui/parser/char/whitespace-character-literal.stderr similarity index 100% rename from src/test/ui/parser/char/whitespace-character-literal.stderr rename to tests/ui/parser/char/whitespace-character-literal.stderr diff --git a/src/test/ui/parser/circular_modules_hello.rs b/tests/ui/parser/circular_modules_hello.rs similarity index 100% rename from src/test/ui/parser/circular_modules_hello.rs rename to tests/ui/parser/circular_modules_hello.rs diff --git a/src/test/ui/parser/circular_modules_main.rs b/tests/ui/parser/circular_modules_main.rs similarity index 100% rename from src/test/ui/parser/circular_modules_main.rs rename to tests/ui/parser/circular_modules_main.rs diff --git a/src/test/ui/parser/circular_modules_main.stderr b/tests/ui/parser/circular_modules_main.stderr similarity index 100% rename from src/test/ui/parser/circular_modules_main.stderr rename to tests/ui/parser/circular_modules_main.stderr diff --git a/src/test/ui/parser/class-implements-bad-trait.rs b/tests/ui/parser/class-implements-bad-trait.rs similarity index 100% rename from src/test/ui/parser/class-implements-bad-trait.rs rename to tests/ui/parser/class-implements-bad-trait.rs diff --git a/src/test/ui/parser/class-implements-bad-trait.stderr b/tests/ui/parser/class-implements-bad-trait.stderr similarity index 100% rename from src/test/ui/parser/class-implements-bad-trait.stderr rename to tests/ui/parser/class-implements-bad-trait.stderr diff --git a/src/test/ui/parser/closure-return-syntax.rs b/tests/ui/parser/closure-return-syntax.rs similarity index 100% rename from src/test/ui/parser/closure-return-syntax.rs rename to tests/ui/parser/closure-return-syntax.rs diff --git a/src/test/ui/parser/closure-return-syntax.stderr b/tests/ui/parser/closure-return-syntax.stderr similarity index 100% rename from src/test/ui/parser/closure-return-syntax.stderr rename to tests/ui/parser/closure-return-syntax.stderr diff --git a/src/test/ui/parser/column-offset-1-based.rs b/tests/ui/parser/column-offset-1-based.rs similarity index 100% rename from src/test/ui/parser/column-offset-1-based.rs rename to tests/ui/parser/column-offset-1-based.rs diff --git a/src/test/ui/parser/column-offset-1-based.stderr b/tests/ui/parser/column-offset-1-based.stderr similarity index 100% rename from src/test/ui/parser/column-offset-1-based.stderr rename to tests/ui/parser/column-offset-1-based.stderr diff --git a/src/test/ui/parser/const-param-decl-on-type-instead-of-impl.rs b/tests/ui/parser/const-param-decl-on-type-instead-of-impl.rs similarity index 100% rename from src/test/ui/parser/const-param-decl-on-type-instead-of-impl.rs rename to tests/ui/parser/const-param-decl-on-type-instead-of-impl.rs diff --git a/src/test/ui/parser/const-param-decl-on-type-instead-of-impl.stderr b/tests/ui/parser/const-param-decl-on-type-instead-of-impl.stderr similarity index 100% rename from src/test/ui/parser/const-param-decl-on-type-instead-of-impl.stderr rename to tests/ui/parser/const-param-decl-on-type-instead-of-impl.stderr diff --git a/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs b/tests/ui/parser/constraints-before-generic-args-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs rename to tests/ui/parser/constraints-before-generic-args-syntactic-pass.rs diff --git a/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.stderr b/tests/ui/parser/constraints-before-generic-args-syntactic-pass.stderr similarity index 100% rename from src/test/ui/parser/constraints-before-generic-args-syntactic-pass.stderr rename to tests/ui/parser/constraints-before-generic-args-syntactic-pass.stderr diff --git a/src/test/ui/parser/default-on-wrong-item-kind.rs b/tests/ui/parser/default-on-wrong-item-kind.rs similarity index 100% rename from src/test/ui/parser/default-on-wrong-item-kind.rs rename to tests/ui/parser/default-on-wrong-item-kind.rs diff --git a/src/test/ui/parser/default-on-wrong-item-kind.stderr b/tests/ui/parser/default-on-wrong-item-kind.stderr similarity index 100% rename from src/test/ui/parser/default-on-wrong-item-kind.stderr rename to tests/ui/parser/default-on-wrong-item-kind.stderr diff --git a/src/test/ui/parser/default-unmatched-assoc.rs b/tests/ui/parser/default-unmatched-assoc.rs similarity index 100% rename from src/test/ui/parser/default-unmatched-assoc.rs rename to tests/ui/parser/default-unmatched-assoc.rs diff --git a/src/test/ui/parser/default-unmatched-assoc.stderr b/tests/ui/parser/default-unmatched-assoc.stderr similarity index 100% rename from src/test/ui/parser/default-unmatched-assoc.stderr rename to tests/ui/parser/default-unmatched-assoc.stderr diff --git a/src/test/ui/parser/default-unmatched-extern.rs b/tests/ui/parser/default-unmatched-extern.rs similarity index 100% rename from src/test/ui/parser/default-unmatched-extern.rs rename to tests/ui/parser/default-unmatched-extern.rs diff --git a/src/test/ui/parser/default-unmatched-extern.stderr b/tests/ui/parser/default-unmatched-extern.stderr similarity index 100% rename from src/test/ui/parser/default-unmatched-extern.stderr rename to tests/ui/parser/default-unmatched-extern.stderr diff --git a/src/test/ui/parser/default-unmatched.rs b/tests/ui/parser/default-unmatched.rs similarity index 100% rename from src/test/ui/parser/default-unmatched.rs rename to tests/ui/parser/default-unmatched.rs diff --git a/src/test/ui/parser/default-unmatched.stderr b/tests/ui/parser/default-unmatched.stderr similarity index 100% rename from src/test/ui/parser/default-unmatched.stderr rename to tests/ui/parser/default-unmatched.stderr diff --git a/src/test/ui/parser/default.rs b/tests/ui/parser/default.rs similarity index 100% rename from src/test/ui/parser/default.rs rename to tests/ui/parser/default.rs diff --git a/src/test/ui/parser/default.stderr b/tests/ui/parser/default.stderr similarity index 100% rename from src/test/ui/parser/default.stderr rename to tests/ui/parser/default.stderr diff --git a/src/test/ui/parser/diff-markers/enum-2.rs b/tests/ui/parser/diff-markers/enum-2.rs similarity index 100% rename from src/test/ui/parser/diff-markers/enum-2.rs rename to tests/ui/parser/diff-markers/enum-2.rs diff --git a/src/test/ui/parser/diff-markers/enum-2.stderr b/tests/ui/parser/diff-markers/enum-2.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/enum-2.stderr rename to tests/ui/parser/diff-markers/enum-2.stderr diff --git a/src/test/ui/parser/diff-markers/enum.rs b/tests/ui/parser/diff-markers/enum.rs similarity index 100% rename from src/test/ui/parser/diff-markers/enum.rs rename to tests/ui/parser/diff-markers/enum.rs diff --git a/src/test/ui/parser/diff-markers/enum.stderr b/tests/ui/parser/diff-markers/enum.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/enum.stderr rename to tests/ui/parser/diff-markers/enum.stderr diff --git a/src/test/ui/parser/diff-markers/fn-arg.rs b/tests/ui/parser/diff-markers/fn-arg.rs similarity index 100% rename from src/test/ui/parser/diff-markers/fn-arg.rs rename to tests/ui/parser/diff-markers/fn-arg.rs diff --git a/src/test/ui/parser/diff-markers/fn-arg.stderr b/tests/ui/parser/diff-markers/fn-arg.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/fn-arg.stderr rename to tests/ui/parser/diff-markers/fn-arg.stderr diff --git a/src/test/ui/parser/diff-markers/item-with-attr.rs b/tests/ui/parser/diff-markers/item-with-attr.rs similarity index 100% rename from src/test/ui/parser/diff-markers/item-with-attr.rs rename to tests/ui/parser/diff-markers/item-with-attr.rs diff --git a/src/test/ui/parser/diff-markers/item-with-attr.stderr b/tests/ui/parser/diff-markers/item-with-attr.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/item-with-attr.stderr rename to tests/ui/parser/diff-markers/item-with-attr.stderr diff --git a/src/test/ui/parser/diff-markers/item.rs b/tests/ui/parser/diff-markers/item.rs similarity index 100% rename from src/test/ui/parser/diff-markers/item.rs rename to tests/ui/parser/diff-markers/item.rs diff --git a/src/test/ui/parser/diff-markers/item.stderr b/tests/ui/parser/diff-markers/item.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/item.stderr rename to tests/ui/parser/diff-markers/item.stderr diff --git a/src/test/ui/parser/diff-markers/statement.rs b/tests/ui/parser/diff-markers/statement.rs similarity index 100% rename from src/test/ui/parser/diff-markers/statement.rs rename to tests/ui/parser/diff-markers/statement.rs diff --git a/src/test/ui/parser/diff-markers/statement.stderr b/tests/ui/parser/diff-markers/statement.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/statement.stderr rename to tests/ui/parser/diff-markers/statement.stderr diff --git a/src/test/ui/parser/diff-markers/struct-expr.rs b/tests/ui/parser/diff-markers/struct-expr.rs similarity index 100% rename from src/test/ui/parser/diff-markers/struct-expr.rs rename to tests/ui/parser/diff-markers/struct-expr.rs diff --git a/src/test/ui/parser/diff-markers/struct-expr.stderr b/tests/ui/parser/diff-markers/struct-expr.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/struct-expr.stderr rename to tests/ui/parser/diff-markers/struct-expr.stderr diff --git a/src/test/ui/parser/diff-markers/struct.rs b/tests/ui/parser/diff-markers/struct.rs similarity index 100% rename from src/test/ui/parser/diff-markers/struct.rs rename to tests/ui/parser/diff-markers/struct.rs diff --git a/src/test/ui/parser/diff-markers/struct.stderr b/tests/ui/parser/diff-markers/struct.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/struct.stderr rename to tests/ui/parser/diff-markers/struct.stderr diff --git a/src/test/ui/parser/diff-markers/trait-item.rs b/tests/ui/parser/diff-markers/trait-item.rs similarity index 100% rename from src/test/ui/parser/diff-markers/trait-item.rs rename to tests/ui/parser/diff-markers/trait-item.rs diff --git a/src/test/ui/parser/diff-markers/trait-item.stderr b/tests/ui/parser/diff-markers/trait-item.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/trait-item.stderr rename to tests/ui/parser/diff-markers/trait-item.stderr diff --git a/src/test/ui/parser/diff-markers/tuple-struct.rs b/tests/ui/parser/diff-markers/tuple-struct.rs similarity index 100% rename from src/test/ui/parser/diff-markers/tuple-struct.rs rename to tests/ui/parser/diff-markers/tuple-struct.rs diff --git a/src/test/ui/parser/diff-markers/tuple-struct.stderr b/tests/ui/parser/diff-markers/tuple-struct.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/tuple-struct.stderr rename to tests/ui/parser/diff-markers/tuple-struct.stderr diff --git a/src/test/ui/parser/diff-markers/use-statement.rs b/tests/ui/parser/diff-markers/use-statement.rs similarity index 100% rename from src/test/ui/parser/diff-markers/use-statement.rs rename to tests/ui/parser/diff-markers/use-statement.rs diff --git a/src/test/ui/parser/diff-markers/use-statement.stderr b/tests/ui/parser/diff-markers/use-statement.stderr similarity index 100% rename from src/test/ui/parser/diff-markers/use-statement.stderr rename to tests/ui/parser/diff-markers/use-statement.stderr diff --git a/src/test/ui/parser/do-catch-suggests-try.rs b/tests/ui/parser/do-catch-suggests-try.rs similarity index 100% rename from src/test/ui/parser/do-catch-suggests-try.rs rename to tests/ui/parser/do-catch-suggests-try.rs diff --git a/src/test/ui/parser/do-catch-suggests-try.stderr b/tests/ui/parser/do-catch-suggests-try.stderr similarity index 100% rename from src/test/ui/parser/do-catch-suggests-try.stderr rename to tests/ui/parser/do-catch-suggests-try.stderr diff --git a/src/test/ui/parser/do-not-suggest-semicolon-before-array.rs b/tests/ui/parser/do-not-suggest-semicolon-before-array.rs similarity index 100% rename from src/test/ui/parser/do-not-suggest-semicolon-before-array.rs rename to tests/ui/parser/do-not-suggest-semicolon-before-array.rs diff --git a/src/test/ui/parser/do-not-suggest-semicolon-before-array.stderr b/tests/ui/parser/do-not-suggest-semicolon-before-array.stderr similarity index 100% rename from src/test/ui/parser/do-not-suggest-semicolon-before-array.stderr rename to tests/ui/parser/do-not-suggest-semicolon-before-array.stderr diff --git a/src/test/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.rs b/tests/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.rs similarity index 100% rename from src/test/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.rs rename to tests/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.rs diff --git a/src/test/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.stderr b/tests/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.stderr similarity index 100% rename from src/test/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.stderr rename to tests/ui/parser/do-not-suggest-semicolon-between-macro-without-exclamation-mark-and-array.stderr diff --git a/src/test/ui/parser/doc-after-struct-field.rs b/tests/ui/parser/doc-after-struct-field.rs similarity index 100% rename from src/test/ui/parser/doc-after-struct-field.rs rename to tests/ui/parser/doc-after-struct-field.rs diff --git a/src/test/ui/parser/doc-after-struct-field.stderr b/tests/ui/parser/doc-after-struct-field.stderr similarity index 100% rename from src/test/ui/parser/doc-after-struct-field.stderr rename to tests/ui/parser/doc-after-struct-field.stderr diff --git a/src/test/ui/parser/doc-before-attr.rs b/tests/ui/parser/doc-before-attr.rs similarity index 100% rename from src/test/ui/parser/doc-before-attr.rs rename to tests/ui/parser/doc-before-attr.rs diff --git a/src/test/ui/parser/doc-before-attr.stderr b/tests/ui/parser/doc-before-attr.stderr similarity index 100% rename from src/test/ui/parser/doc-before-attr.stderr rename to tests/ui/parser/doc-before-attr.stderr diff --git a/src/test/ui/parser/doc-before-eof.rs b/tests/ui/parser/doc-before-eof.rs similarity index 100% rename from src/test/ui/parser/doc-before-eof.rs rename to tests/ui/parser/doc-before-eof.rs diff --git a/src/test/ui/parser/doc-before-eof.stderr b/tests/ui/parser/doc-before-eof.stderr similarity index 100% rename from src/test/ui/parser/doc-before-eof.stderr rename to tests/ui/parser/doc-before-eof.stderr diff --git a/src/test/ui/parser/doc-before-extern-rbrace.rs b/tests/ui/parser/doc-before-extern-rbrace.rs similarity index 100% rename from src/test/ui/parser/doc-before-extern-rbrace.rs rename to tests/ui/parser/doc-before-extern-rbrace.rs diff --git a/src/test/ui/parser/doc-before-extern-rbrace.stderr b/tests/ui/parser/doc-before-extern-rbrace.stderr similarity index 100% rename from src/test/ui/parser/doc-before-extern-rbrace.stderr rename to tests/ui/parser/doc-before-extern-rbrace.stderr diff --git a/src/test/ui/parser/doc-before-fn-rbrace.rs b/tests/ui/parser/doc-before-fn-rbrace.rs similarity index 100% rename from src/test/ui/parser/doc-before-fn-rbrace.rs rename to tests/ui/parser/doc-before-fn-rbrace.rs diff --git a/src/test/ui/parser/doc-before-fn-rbrace.stderr b/tests/ui/parser/doc-before-fn-rbrace.stderr similarity index 100% rename from src/test/ui/parser/doc-before-fn-rbrace.stderr rename to tests/ui/parser/doc-before-fn-rbrace.stderr diff --git a/src/test/ui/parser/doc-before-identifier.rs b/tests/ui/parser/doc-before-identifier.rs similarity index 100% rename from src/test/ui/parser/doc-before-identifier.rs rename to tests/ui/parser/doc-before-identifier.rs diff --git a/src/test/ui/parser/doc-before-identifier.stderr b/tests/ui/parser/doc-before-identifier.stderr similarity index 100% rename from src/test/ui/parser/doc-before-identifier.stderr rename to tests/ui/parser/doc-before-identifier.stderr diff --git a/src/test/ui/parser/doc-before-mod-rbrace.rs b/tests/ui/parser/doc-before-mod-rbrace.rs similarity index 100% rename from src/test/ui/parser/doc-before-mod-rbrace.rs rename to tests/ui/parser/doc-before-mod-rbrace.rs diff --git a/src/test/ui/parser/doc-before-mod-rbrace.stderr b/tests/ui/parser/doc-before-mod-rbrace.stderr similarity index 100% rename from src/test/ui/parser/doc-before-mod-rbrace.stderr rename to tests/ui/parser/doc-before-mod-rbrace.stderr diff --git a/src/test/ui/parser/doc-before-rbrace.rs b/tests/ui/parser/doc-before-rbrace.rs similarity index 100% rename from src/test/ui/parser/doc-before-rbrace.rs rename to tests/ui/parser/doc-before-rbrace.rs diff --git a/src/test/ui/parser/doc-before-rbrace.stderr b/tests/ui/parser/doc-before-rbrace.stderr similarity index 100% rename from src/test/ui/parser/doc-before-rbrace.stderr rename to tests/ui/parser/doc-before-rbrace.stderr diff --git a/src/test/ui/parser/doc-before-semi.rs b/tests/ui/parser/doc-before-semi.rs similarity index 100% rename from src/test/ui/parser/doc-before-semi.rs rename to tests/ui/parser/doc-before-semi.rs diff --git a/src/test/ui/parser/doc-before-semi.stderr b/tests/ui/parser/doc-before-semi.stderr similarity index 100% rename from src/test/ui/parser/doc-before-semi.stderr rename to tests/ui/parser/doc-before-semi.stderr diff --git a/src/test/ui/parser/doc-before-struct-rbrace-1.rs b/tests/ui/parser/doc-before-struct-rbrace-1.rs similarity index 100% rename from src/test/ui/parser/doc-before-struct-rbrace-1.rs rename to tests/ui/parser/doc-before-struct-rbrace-1.rs diff --git a/src/test/ui/parser/doc-before-struct-rbrace-1.stderr b/tests/ui/parser/doc-before-struct-rbrace-1.stderr similarity index 100% rename from src/test/ui/parser/doc-before-struct-rbrace-1.stderr rename to tests/ui/parser/doc-before-struct-rbrace-1.stderr diff --git a/src/test/ui/parser/doc-before-struct-rbrace-2.rs b/tests/ui/parser/doc-before-struct-rbrace-2.rs similarity index 100% rename from src/test/ui/parser/doc-before-struct-rbrace-2.rs rename to tests/ui/parser/doc-before-struct-rbrace-2.rs diff --git a/src/test/ui/parser/doc-before-struct-rbrace-2.stderr b/tests/ui/parser/doc-before-struct-rbrace-2.stderr similarity index 100% rename from src/test/ui/parser/doc-before-struct-rbrace-2.stderr rename to tests/ui/parser/doc-before-struct-rbrace-2.stderr diff --git a/src/test/ui/parser/doc-comment-in-if-statement.rs b/tests/ui/parser/doc-comment-in-if-statement.rs similarity index 100% rename from src/test/ui/parser/doc-comment-in-if-statement.rs rename to tests/ui/parser/doc-comment-in-if-statement.rs diff --git a/src/test/ui/parser/doc-comment-in-if-statement.stderr b/tests/ui/parser/doc-comment-in-if-statement.stderr similarity index 100% rename from src/test/ui/parser/doc-comment-in-if-statement.stderr rename to tests/ui/parser/doc-comment-in-if-statement.stderr diff --git a/src/test/ui/parser/doc-comment-in-stmt.rs b/tests/ui/parser/doc-comment-in-stmt.rs similarity index 100% rename from src/test/ui/parser/doc-comment-in-stmt.rs rename to tests/ui/parser/doc-comment-in-stmt.rs diff --git a/src/test/ui/parser/doc-comment-in-stmt.stderr b/tests/ui/parser/doc-comment-in-stmt.stderr similarity index 100% rename from src/test/ui/parser/doc-comment-in-stmt.stderr rename to tests/ui/parser/doc-comment-in-stmt.stderr diff --git a/src/test/ui/parser/doc-inside-trait-item.rs b/tests/ui/parser/doc-inside-trait-item.rs similarity index 100% rename from src/test/ui/parser/doc-inside-trait-item.rs rename to tests/ui/parser/doc-inside-trait-item.rs diff --git a/src/test/ui/parser/doc-inside-trait-item.stderr b/tests/ui/parser/doc-inside-trait-item.stderr similarity index 100% rename from src/test/ui/parser/doc-inside-trait-item.stderr rename to tests/ui/parser/doc-inside-trait-item.stderr diff --git a/src/test/ui/parser/dotdotdot-expr.rs b/tests/ui/parser/dotdotdot-expr.rs similarity index 100% rename from src/test/ui/parser/dotdotdot-expr.rs rename to tests/ui/parser/dotdotdot-expr.rs diff --git a/src/test/ui/parser/dotdotdot-expr.stderr b/tests/ui/parser/dotdotdot-expr.stderr similarity index 100% rename from src/test/ui/parser/dotdotdot-expr.stderr rename to tests/ui/parser/dotdotdot-expr.stderr diff --git a/src/test/ui/parser/double-pointer.rs b/tests/ui/parser/double-pointer.rs similarity index 100% rename from src/test/ui/parser/double-pointer.rs rename to tests/ui/parser/double-pointer.rs diff --git a/src/test/ui/parser/double-pointer.stderr b/tests/ui/parser/double-pointer.stderr similarity index 100% rename from src/test/ui/parser/double-pointer.stderr rename to tests/ui/parser/double-pointer.stderr diff --git a/src/test/ui/parser/duplicate-visibility.rs b/tests/ui/parser/duplicate-visibility.rs similarity index 100% rename from src/test/ui/parser/duplicate-visibility.rs rename to tests/ui/parser/duplicate-visibility.rs diff --git a/src/test/ui/parser/duplicate-visibility.stderr b/tests/ui/parser/duplicate-visibility.stderr similarity index 100% rename from src/test/ui/parser/duplicate-visibility.stderr rename to tests/ui/parser/duplicate-visibility.stderr diff --git a/src/test/ui/parser/duplicate-where-clauses.rs b/tests/ui/parser/duplicate-where-clauses.rs similarity index 100% rename from src/test/ui/parser/duplicate-where-clauses.rs rename to tests/ui/parser/duplicate-where-clauses.rs diff --git a/src/test/ui/parser/duplicate-where-clauses.stderr b/tests/ui/parser/duplicate-where-clauses.stderr similarity index 100% rename from src/test/ui/parser/duplicate-where-clauses.stderr rename to tests/ui/parser/duplicate-where-clauses.stderr diff --git a/src/test/ui/parser/dyn-trait-compatibility.rs b/tests/ui/parser/dyn-trait-compatibility.rs similarity index 100% rename from src/test/ui/parser/dyn-trait-compatibility.rs rename to tests/ui/parser/dyn-trait-compatibility.rs diff --git a/src/test/ui/parser/dyn-trait-compatibility.stderr b/tests/ui/parser/dyn-trait-compatibility.stderr similarity index 100% rename from src/test/ui/parser/dyn-trait-compatibility.stderr rename to tests/ui/parser/dyn-trait-compatibility.stderr diff --git a/src/test/ui/parser/else-no-if.rs b/tests/ui/parser/else-no-if.rs similarity index 100% rename from src/test/ui/parser/else-no-if.rs rename to tests/ui/parser/else-no-if.rs diff --git a/src/test/ui/parser/else-no-if.stderr b/tests/ui/parser/else-no-if.stderr similarity index 100% rename from src/test/ui/parser/else-no-if.stderr rename to tests/ui/parser/else-no-if.stderr diff --git a/src/test/ui/parser/emoji-identifiers.rs b/tests/ui/parser/emoji-identifiers.rs similarity index 100% rename from src/test/ui/parser/emoji-identifiers.rs rename to tests/ui/parser/emoji-identifiers.rs diff --git a/src/test/ui/parser/emoji-identifiers.stderr b/tests/ui/parser/emoji-identifiers.stderr similarity index 100% rename from src/test/ui/parser/emoji-identifiers.stderr rename to tests/ui/parser/emoji-identifiers.stderr diff --git a/src/test/ui/parser/empty-impl-semicolon.rs b/tests/ui/parser/empty-impl-semicolon.rs similarity index 100% rename from src/test/ui/parser/empty-impl-semicolon.rs rename to tests/ui/parser/empty-impl-semicolon.rs diff --git a/src/test/ui/parser/empty-impl-semicolon.stderr b/tests/ui/parser/empty-impl-semicolon.stderr similarity index 100% rename from src/test/ui/parser/empty-impl-semicolon.stderr rename to tests/ui/parser/empty-impl-semicolon.stderr diff --git a/src/test/ui/parser/expr-as-stmt-2.rs b/tests/ui/parser/expr-as-stmt-2.rs similarity index 100% rename from src/test/ui/parser/expr-as-stmt-2.rs rename to tests/ui/parser/expr-as-stmt-2.rs diff --git a/src/test/ui/parser/expr-as-stmt-2.stderr b/tests/ui/parser/expr-as-stmt-2.stderr similarity index 100% rename from src/test/ui/parser/expr-as-stmt-2.stderr rename to tests/ui/parser/expr-as-stmt-2.stderr diff --git a/src/test/ui/parser/expr-as-stmt.fixed b/tests/ui/parser/expr-as-stmt.fixed similarity index 100% rename from src/test/ui/parser/expr-as-stmt.fixed rename to tests/ui/parser/expr-as-stmt.fixed diff --git a/src/test/ui/parser/expr-as-stmt.rs b/tests/ui/parser/expr-as-stmt.rs similarity index 100% rename from src/test/ui/parser/expr-as-stmt.rs rename to tests/ui/parser/expr-as-stmt.rs diff --git a/src/test/ui/parser/expr-as-stmt.stderr b/tests/ui/parser/expr-as-stmt.stderr similarity index 100% rename from src/test/ui/parser/expr-as-stmt.stderr rename to tests/ui/parser/expr-as-stmt.stderr diff --git a/src/test/ui/parser/extern-abi-from-mac-literal-frag.rs b/tests/ui/parser/extern-abi-from-mac-literal-frag.rs similarity index 100% rename from src/test/ui/parser/extern-abi-from-mac-literal-frag.rs rename to tests/ui/parser/extern-abi-from-mac-literal-frag.rs diff --git a/src/test/ui/parser/extern-abi-raw-strings.rs b/tests/ui/parser/extern-abi-raw-strings.rs similarity index 100% rename from src/test/ui/parser/extern-abi-raw-strings.rs rename to tests/ui/parser/extern-abi-raw-strings.rs diff --git a/src/test/ui/parser/extern-abi-string-escaping.rs b/tests/ui/parser/extern-abi-string-escaping.rs similarity index 100% rename from src/test/ui/parser/extern-abi-string-escaping.rs rename to tests/ui/parser/extern-abi-string-escaping.rs diff --git a/src/test/ui/parser/extern-abi-syntactic.rs b/tests/ui/parser/extern-abi-syntactic.rs similarity index 100% rename from src/test/ui/parser/extern-abi-syntactic.rs rename to tests/ui/parser/extern-abi-syntactic.rs diff --git a/src/test/ui/parser/extern-crate-async.rs b/tests/ui/parser/extern-crate-async.rs similarity index 100% rename from src/test/ui/parser/extern-crate-async.rs rename to tests/ui/parser/extern-crate-async.rs diff --git a/src/test/ui/parser/extern-crate-unexpected-token.rs b/tests/ui/parser/extern-crate-unexpected-token.rs similarity index 100% rename from src/test/ui/parser/extern-crate-unexpected-token.rs rename to tests/ui/parser/extern-crate-unexpected-token.rs diff --git a/src/test/ui/parser/extern-crate-unexpected-token.stderr b/tests/ui/parser/extern-crate-unexpected-token.stderr similarity index 100% rename from src/test/ui/parser/extern-crate-unexpected-token.stderr rename to tests/ui/parser/extern-crate-unexpected-token.stderr diff --git a/src/test/ui/parser/extern-expected-fn-or-brace.rs b/tests/ui/parser/extern-expected-fn-or-brace.rs similarity index 100% rename from src/test/ui/parser/extern-expected-fn-or-brace.rs rename to tests/ui/parser/extern-expected-fn-or-brace.rs diff --git a/src/test/ui/parser/extern-expected-fn-or-brace.stderr b/tests/ui/parser/extern-expected-fn-or-brace.stderr similarity index 100% rename from src/test/ui/parser/extern-expected-fn-or-brace.stderr rename to tests/ui/parser/extern-expected-fn-or-brace.stderr diff --git a/src/test/ui/parser/extern-foreign-crate.rs b/tests/ui/parser/extern-foreign-crate.rs similarity index 100% rename from src/test/ui/parser/extern-foreign-crate.rs rename to tests/ui/parser/extern-foreign-crate.rs diff --git a/src/test/ui/parser/extern-foreign-crate.stderr b/tests/ui/parser/extern-foreign-crate.stderr similarity index 100% rename from src/test/ui/parser/extern-foreign-crate.stderr rename to tests/ui/parser/extern-foreign-crate.stderr diff --git a/src/test/ui/parser/extern-no-fn.rs b/tests/ui/parser/extern-no-fn.rs similarity index 100% rename from src/test/ui/parser/extern-no-fn.rs rename to tests/ui/parser/extern-no-fn.rs diff --git a/src/test/ui/parser/extern-no-fn.stderr b/tests/ui/parser/extern-no-fn.stderr similarity index 100% rename from src/test/ui/parser/extern-no-fn.stderr rename to tests/ui/parser/extern-no-fn.stderr diff --git a/src/test/ui/parser/float-field-interpolated.rs b/tests/ui/parser/float-field-interpolated.rs similarity index 100% rename from src/test/ui/parser/float-field-interpolated.rs rename to tests/ui/parser/float-field-interpolated.rs diff --git a/src/test/ui/parser/float-field-interpolated.stderr b/tests/ui/parser/float-field-interpolated.stderr similarity index 100% rename from src/test/ui/parser/float-field-interpolated.stderr rename to tests/ui/parser/float-field-interpolated.stderr diff --git a/src/test/ui/parser/float-field.rs b/tests/ui/parser/float-field.rs similarity index 100% rename from src/test/ui/parser/float-field.rs rename to tests/ui/parser/float-field.rs diff --git a/src/test/ui/parser/float-field.stderr b/tests/ui/parser/float-field.stderr similarity index 100% rename from src/test/ui/parser/float-field.stderr rename to tests/ui/parser/float-field.stderr diff --git a/src/test/ui/parser/float-literals.rs b/tests/ui/parser/float-literals.rs similarity index 100% rename from src/test/ui/parser/float-literals.rs rename to tests/ui/parser/float-literals.rs diff --git a/src/test/ui/parser/fn-arg-doc-comment.rs b/tests/ui/parser/fn-arg-doc-comment.rs similarity index 100% rename from src/test/ui/parser/fn-arg-doc-comment.rs rename to tests/ui/parser/fn-arg-doc-comment.rs diff --git a/src/test/ui/parser/fn-arg-doc-comment.stderr b/tests/ui/parser/fn-arg-doc-comment.stderr similarity index 100% rename from src/test/ui/parser/fn-arg-doc-comment.stderr rename to tests/ui/parser/fn-arg-doc-comment.stderr diff --git a/src/test/ui/parser/fn-body-eq-expr-semi.rs b/tests/ui/parser/fn-body-eq-expr-semi.rs similarity index 100% rename from src/test/ui/parser/fn-body-eq-expr-semi.rs rename to tests/ui/parser/fn-body-eq-expr-semi.rs diff --git a/src/test/ui/parser/fn-body-eq-expr-semi.stderr b/tests/ui/parser/fn-body-eq-expr-semi.stderr similarity index 100% rename from src/test/ui/parser/fn-body-eq-expr-semi.stderr rename to tests/ui/parser/fn-body-eq-expr-semi.stderr diff --git a/src/test/ui/parser/fn-body-optional-semantic-fail.rs b/tests/ui/parser/fn-body-optional-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/fn-body-optional-semantic-fail.rs rename to tests/ui/parser/fn-body-optional-semantic-fail.rs diff --git a/src/test/ui/parser/fn-body-optional-semantic-fail.stderr b/tests/ui/parser/fn-body-optional-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/fn-body-optional-semantic-fail.stderr rename to tests/ui/parser/fn-body-optional-semantic-fail.stderr diff --git a/src/test/ui/parser/fn-body-optional-syntactic-pass.rs b/tests/ui/parser/fn-body-optional-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/fn-body-optional-syntactic-pass.rs rename to tests/ui/parser/fn-body-optional-syntactic-pass.rs diff --git a/src/test/ui/parser/fn-colon-return-type.rs b/tests/ui/parser/fn-colon-return-type.rs similarity index 100% rename from src/test/ui/parser/fn-colon-return-type.rs rename to tests/ui/parser/fn-colon-return-type.rs diff --git a/src/test/ui/parser/fn-colon-return-type.stderr b/tests/ui/parser/fn-colon-return-type.stderr similarity index 100% rename from src/test/ui/parser/fn-colon-return-type.stderr rename to tests/ui/parser/fn-colon-return-type.stderr diff --git a/src/test/ui/parser/fn-defined-using-def.rs b/tests/ui/parser/fn-defined-using-def.rs similarity index 100% rename from src/test/ui/parser/fn-defined-using-def.rs rename to tests/ui/parser/fn-defined-using-def.rs diff --git a/src/test/ui/parser/fn-defined-using-def.stderr b/tests/ui/parser/fn-defined-using-def.stderr similarity index 100% rename from src/test/ui/parser/fn-defined-using-def.stderr rename to tests/ui/parser/fn-defined-using-def.stderr diff --git a/src/test/ui/parser/fn-defined-using-fun.rs b/tests/ui/parser/fn-defined-using-fun.rs similarity index 100% rename from src/test/ui/parser/fn-defined-using-fun.rs rename to tests/ui/parser/fn-defined-using-fun.rs diff --git a/src/test/ui/parser/fn-defined-using-fun.stderr b/tests/ui/parser/fn-defined-using-fun.stderr similarity index 100% rename from src/test/ui/parser/fn-defined-using-fun.stderr rename to tests/ui/parser/fn-defined-using-fun.stderr diff --git a/src/test/ui/parser/fn-defined-using-func.rs b/tests/ui/parser/fn-defined-using-func.rs similarity index 100% rename from src/test/ui/parser/fn-defined-using-func.rs rename to tests/ui/parser/fn-defined-using-func.rs diff --git a/src/test/ui/parser/fn-defined-using-func.stderr b/tests/ui/parser/fn-defined-using-func.stderr similarity index 100% rename from src/test/ui/parser/fn-defined-using-func.stderr rename to tests/ui/parser/fn-defined-using-func.stderr diff --git a/src/test/ui/parser/fn-defined-using-function.rs b/tests/ui/parser/fn-defined-using-function.rs similarity index 100% rename from src/test/ui/parser/fn-defined-using-function.rs rename to tests/ui/parser/fn-defined-using-function.rs diff --git a/src/test/ui/parser/fn-defined-using-function.stderr b/tests/ui/parser/fn-defined-using-function.stderr similarity index 100% rename from src/test/ui/parser/fn-defined-using-function.stderr rename to tests/ui/parser/fn-defined-using-function.stderr diff --git a/src/test/ui/parser/fn-field-parse-error-ice.rs b/tests/ui/parser/fn-field-parse-error-ice.rs similarity index 100% rename from src/test/ui/parser/fn-field-parse-error-ice.rs rename to tests/ui/parser/fn-field-parse-error-ice.rs diff --git a/src/test/ui/parser/fn-field-parse-error-ice.stderr b/tests/ui/parser/fn-field-parse-error-ice.stderr similarity index 100% rename from src/test/ui/parser/fn-field-parse-error-ice.stderr rename to tests/ui/parser/fn-field-parse-error-ice.stderr diff --git a/src/test/ui/parser/fn-header-semantic-fail.rs b/tests/ui/parser/fn-header-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/fn-header-semantic-fail.rs rename to tests/ui/parser/fn-header-semantic-fail.rs diff --git a/src/test/ui/parser/fn-header-semantic-fail.stderr b/tests/ui/parser/fn-header-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/fn-header-semantic-fail.stderr rename to tests/ui/parser/fn-header-semantic-fail.stderr diff --git a/src/test/ui/parser/fn-header-syntactic-pass.rs b/tests/ui/parser/fn-header-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/fn-header-syntactic-pass.rs rename to tests/ui/parser/fn-header-syntactic-pass.rs diff --git a/src/test/ui/parser/fn-returns-fn-pointer.rs b/tests/ui/parser/fn-returns-fn-pointer.rs similarity index 100% rename from src/test/ui/parser/fn-returns-fn-pointer.rs rename to tests/ui/parser/fn-returns-fn-pointer.rs diff --git a/src/test/ui/parser/foreign-const-semantic-fail.rs b/tests/ui/parser/foreign-const-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/foreign-const-semantic-fail.rs rename to tests/ui/parser/foreign-const-semantic-fail.rs diff --git a/src/test/ui/parser/foreign-const-semantic-fail.stderr b/tests/ui/parser/foreign-const-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/foreign-const-semantic-fail.stderr rename to tests/ui/parser/foreign-const-semantic-fail.stderr diff --git a/src/test/ui/parser/foreign-const-syntactic-fail.rs b/tests/ui/parser/foreign-const-syntactic-fail.rs similarity index 100% rename from src/test/ui/parser/foreign-const-syntactic-fail.rs rename to tests/ui/parser/foreign-const-syntactic-fail.rs diff --git a/src/test/ui/parser/foreign-const-syntactic-fail.stderr b/tests/ui/parser/foreign-const-syntactic-fail.stderr similarity index 100% rename from src/test/ui/parser/foreign-const-syntactic-fail.stderr rename to tests/ui/parser/foreign-const-syntactic-fail.stderr diff --git a/src/test/ui/parser/foreign-static-semantic-fail.rs b/tests/ui/parser/foreign-static-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/foreign-static-semantic-fail.rs rename to tests/ui/parser/foreign-static-semantic-fail.rs diff --git a/src/test/ui/parser/foreign-static-semantic-fail.stderr b/tests/ui/parser/foreign-static-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/foreign-static-semantic-fail.stderr rename to tests/ui/parser/foreign-static-semantic-fail.stderr diff --git a/src/test/ui/parser/foreign-static-syntactic-pass.rs b/tests/ui/parser/foreign-static-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/foreign-static-syntactic-pass.rs rename to tests/ui/parser/foreign-static-syntactic-pass.rs diff --git a/src/test/ui/parser/foreign-ty-semantic-fail.rs b/tests/ui/parser/foreign-ty-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/foreign-ty-semantic-fail.rs rename to tests/ui/parser/foreign-ty-semantic-fail.rs diff --git a/src/test/ui/parser/foreign-ty-semantic-fail.stderr b/tests/ui/parser/foreign-ty-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/foreign-ty-semantic-fail.stderr rename to tests/ui/parser/foreign-ty-semantic-fail.stderr diff --git a/src/test/ui/parser/foreign-ty-syntactic-pass.rs b/tests/ui/parser/foreign-ty-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/foreign-ty-syntactic-pass.rs rename to tests/ui/parser/foreign-ty-syntactic-pass.rs diff --git a/src/test/ui/parser/if-block-unreachable-expr.rs b/tests/ui/parser/if-block-unreachable-expr.rs similarity index 100% rename from src/test/ui/parser/if-block-unreachable-expr.rs rename to tests/ui/parser/if-block-unreachable-expr.rs diff --git a/src/test/ui/parser/if-in-in.fixed b/tests/ui/parser/if-in-in.fixed similarity index 100% rename from src/test/ui/parser/if-in-in.fixed rename to tests/ui/parser/if-in-in.fixed diff --git a/src/test/ui/parser/if-in-in.rs b/tests/ui/parser/if-in-in.rs similarity index 100% rename from src/test/ui/parser/if-in-in.rs rename to tests/ui/parser/if-in-in.rs diff --git a/src/test/ui/parser/if-in-in.stderr b/tests/ui/parser/if-in-in.stderr similarity index 100% rename from src/test/ui/parser/if-in-in.stderr rename to tests/ui/parser/if-in-in.stderr diff --git a/src/test/ui/parser/impl-item-const-pass.rs b/tests/ui/parser/impl-item-const-pass.rs similarity index 100% rename from src/test/ui/parser/impl-item-const-pass.rs rename to tests/ui/parser/impl-item-const-pass.rs diff --git a/src/test/ui/parser/impl-item-const-semantic-fail.rs b/tests/ui/parser/impl-item-const-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/impl-item-const-semantic-fail.rs rename to tests/ui/parser/impl-item-const-semantic-fail.rs diff --git a/src/test/ui/parser/impl-item-const-semantic-fail.stderr b/tests/ui/parser/impl-item-const-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/impl-item-const-semantic-fail.stderr rename to tests/ui/parser/impl-item-const-semantic-fail.stderr diff --git a/src/test/ui/parser/impl-item-fn-no-body-pass.rs b/tests/ui/parser/impl-item-fn-no-body-pass.rs similarity index 100% rename from src/test/ui/parser/impl-item-fn-no-body-pass.rs rename to tests/ui/parser/impl-item-fn-no-body-pass.rs diff --git a/src/test/ui/parser/impl-item-fn-no-body-semantic-fail.rs b/tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/impl-item-fn-no-body-semantic-fail.rs rename to tests/ui/parser/impl-item-fn-no-body-semantic-fail.rs diff --git a/src/test/ui/parser/impl-item-fn-no-body-semantic-fail.stderr b/tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/impl-item-fn-no-body-semantic-fail.stderr rename to tests/ui/parser/impl-item-fn-no-body-semantic-fail.stderr diff --git a/src/test/ui/parser/impl-item-type-no-body-pass.rs b/tests/ui/parser/impl-item-type-no-body-pass.rs similarity index 100% rename from src/test/ui/parser/impl-item-type-no-body-pass.rs rename to tests/ui/parser/impl-item-type-no-body-pass.rs diff --git a/src/test/ui/parser/impl-item-type-no-body-semantic-fail.rs b/tests/ui/parser/impl-item-type-no-body-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/impl-item-type-no-body-semantic-fail.rs rename to tests/ui/parser/impl-item-type-no-body-semantic-fail.rs diff --git a/src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr b/tests/ui/parser/impl-item-type-no-body-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr rename to tests/ui/parser/impl-item-type-no-body-semantic-fail.stderr diff --git a/src/test/ui/parser/impl-parsing.rs b/tests/ui/parser/impl-parsing.rs similarity index 100% rename from src/test/ui/parser/impl-parsing.rs rename to tests/ui/parser/impl-parsing.rs diff --git a/src/test/ui/parser/impl-parsing.stderr b/tests/ui/parser/impl-parsing.stderr similarity index 100% rename from src/test/ui/parser/impl-parsing.stderr rename to tests/ui/parser/impl-parsing.stderr diff --git a/src/test/ui/parser/impl-qpath.rs b/tests/ui/parser/impl-qpath.rs similarity index 100% rename from src/test/ui/parser/impl-qpath.rs rename to tests/ui/parser/impl-qpath.rs diff --git a/src/test/ui/parser/import-from-path.rs b/tests/ui/parser/import-from-path.rs similarity index 100% rename from src/test/ui/parser/import-from-path.rs rename to tests/ui/parser/import-from-path.rs diff --git a/src/test/ui/parser/import-from-path.stderr b/tests/ui/parser/import-from-path.stderr similarity index 100% rename from src/test/ui/parser/import-from-path.stderr rename to tests/ui/parser/import-from-path.stderr diff --git a/src/test/ui/parser/import-from-rename.rs b/tests/ui/parser/import-from-rename.rs similarity index 100% rename from src/test/ui/parser/import-from-rename.rs rename to tests/ui/parser/import-from-rename.rs diff --git a/src/test/ui/parser/import-from-rename.stderr b/tests/ui/parser/import-from-rename.stderr similarity index 100% rename from src/test/ui/parser/import-from-rename.stderr rename to tests/ui/parser/import-from-rename.stderr diff --git a/src/test/ui/parser/import-glob-path.rs b/tests/ui/parser/import-glob-path.rs similarity index 100% rename from src/test/ui/parser/import-glob-path.rs rename to tests/ui/parser/import-glob-path.rs diff --git a/src/test/ui/parser/import-glob-path.stderr b/tests/ui/parser/import-glob-path.stderr similarity index 100% rename from src/test/ui/parser/import-glob-path.stderr rename to tests/ui/parser/import-glob-path.stderr diff --git a/src/test/ui/parser/import-glob-rename.rs b/tests/ui/parser/import-glob-rename.rs similarity index 100% rename from src/test/ui/parser/import-glob-rename.rs rename to tests/ui/parser/import-glob-rename.rs diff --git a/src/test/ui/parser/import-glob-rename.stderr b/tests/ui/parser/import-glob-rename.stderr similarity index 100% rename from src/test/ui/parser/import-glob-rename.stderr rename to tests/ui/parser/import-glob-rename.stderr diff --git a/src/test/ui/parser/increment-autofix-2.fixed b/tests/ui/parser/increment-autofix-2.fixed similarity index 100% rename from src/test/ui/parser/increment-autofix-2.fixed rename to tests/ui/parser/increment-autofix-2.fixed diff --git a/src/test/ui/parser/increment-autofix-2.rs b/tests/ui/parser/increment-autofix-2.rs similarity index 100% rename from src/test/ui/parser/increment-autofix-2.rs rename to tests/ui/parser/increment-autofix-2.rs diff --git a/src/test/ui/parser/increment-autofix-2.stderr b/tests/ui/parser/increment-autofix-2.stderr similarity index 100% rename from src/test/ui/parser/increment-autofix-2.stderr rename to tests/ui/parser/increment-autofix-2.stderr diff --git a/src/test/ui/parser/increment-autofix.fixed b/tests/ui/parser/increment-autofix.fixed similarity index 100% rename from src/test/ui/parser/increment-autofix.fixed rename to tests/ui/parser/increment-autofix.fixed diff --git a/src/test/ui/parser/increment-autofix.rs b/tests/ui/parser/increment-autofix.rs similarity index 100% rename from src/test/ui/parser/increment-autofix.rs rename to tests/ui/parser/increment-autofix.rs diff --git a/src/test/ui/parser/increment-autofix.stderr b/tests/ui/parser/increment-autofix.stderr similarity index 100% rename from src/test/ui/parser/increment-autofix.stderr rename to tests/ui/parser/increment-autofix.stderr diff --git a/src/test/ui/parser/inner-attr-after-doc-comment.rs b/tests/ui/parser/inner-attr-after-doc-comment.rs similarity index 100% rename from src/test/ui/parser/inner-attr-after-doc-comment.rs rename to tests/ui/parser/inner-attr-after-doc-comment.rs diff --git a/src/test/ui/parser/inner-attr-after-doc-comment.stderr b/tests/ui/parser/inner-attr-after-doc-comment.stderr similarity index 100% rename from src/test/ui/parser/inner-attr-after-doc-comment.stderr rename to tests/ui/parser/inner-attr-after-doc-comment.stderr diff --git a/src/test/ui/parser/inner-attr-in-trait-def.rs b/tests/ui/parser/inner-attr-in-trait-def.rs similarity index 100% rename from src/test/ui/parser/inner-attr-in-trait-def.rs rename to tests/ui/parser/inner-attr-in-trait-def.rs diff --git a/src/test/ui/parser/inner-attr.rs b/tests/ui/parser/inner-attr.rs similarity index 100% rename from src/test/ui/parser/inner-attr.rs rename to tests/ui/parser/inner-attr.rs diff --git a/src/test/ui/parser/inner-attr.stderr b/tests/ui/parser/inner-attr.stderr similarity index 100% rename from src/test/ui/parser/inner-attr.stderr rename to tests/ui/parser/inner-attr.stderr diff --git a/src/test/ui/parser/int-literal-too-large-span.rs b/tests/ui/parser/int-literal-too-large-span.rs similarity index 100% rename from src/test/ui/parser/int-literal-too-large-span.rs rename to tests/ui/parser/int-literal-too-large-span.rs diff --git a/src/test/ui/parser/int-literal-too-large-span.stderr b/tests/ui/parser/int-literal-too-large-span.stderr similarity index 100% rename from src/test/ui/parser/int-literal-too-large-span.stderr rename to tests/ui/parser/int-literal-too-large-span.stderr diff --git a/src/test/ui/parser/intersection-patterns-1.fixed b/tests/ui/parser/intersection-patterns-1.fixed similarity index 100% rename from src/test/ui/parser/intersection-patterns-1.fixed rename to tests/ui/parser/intersection-patterns-1.fixed diff --git a/src/test/ui/parser/intersection-patterns-1.rs b/tests/ui/parser/intersection-patterns-1.rs similarity index 100% rename from src/test/ui/parser/intersection-patterns-1.rs rename to tests/ui/parser/intersection-patterns-1.rs diff --git a/src/test/ui/parser/intersection-patterns-1.stderr b/tests/ui/parser/intersection-patterns-1.stderr similarity index 100% rename from src/test/ui/parser/intersection-patterns-1.stderr rename to tests/ui/parser/intersection-patterns-1.stderr diff --git a/src/test/ui/parser/intersection-patterns-2.rs b/tests/ui/parser/intersection-patterns-2.rs similarity index 100% rename from src/test/ui/parser/intersection-patterns-2.rs rename to tests/ui/parser/intersection-patterns-2.rs diff --git a/src/test/ui/parser/intersection-patterns-2.stderr b/tests/ui/parser/intersection-patterns-2.stderr similarity index 100% rename from src/test/ui/parser/intersection-patterns-2.stderr rename to tests/ui/parser/intersection-patterns-2.stderr diff --git a/src/test/ui/parser/inverted-parameters.rs b/tests/ui/parser/inverted-parameters.rs similarity index 100% rename from src/test/ui/parser/inverted-parameters.rs rename to tests/ui/parser/inverted-parameters.rs diff --git a/src/test/ui/parser/inverted-parameters.stderr b/tests/ui/parser/inverted-parameters.stderr similarity index 100% rename from src/test/ui/parser/inverted-parameters.stderr rename to tests/ui/parser/inverted-parameters.stderr diff --git a/src/test/ui/parser/issue-100197-mut-let.fixed b/tests/ui/parser/issue-100197-mut-let.fixed similarity index 100% rename from src/test/ui/parser/issue-100197-mut-let.fixed rename to tests/ui/parser/issue-100197-mut-let.fixed diff --git a/src/test/ui/parser/issue-100197-mut-let.rs b/tests/ui/parser/issue-100197-mut-let.rs similarity index 100% rename from src/test/ui/parser/issue-100197-mut-let.rs rename to tests/ui/parser/issue-100197-mut-let.rs diff --git a/src/test/ui/parser/issue-100197-mut-let.stderr b/tests/ui/parser/issue-100197-mut-let.stderr similarity index 100% rename from src/test/ui/parser/issue-100197-mut-let.stderr rename to tests/ui/parser/issue-100197-mut-let.stderr diff --git a/src/test/ui/parser/issue-101477-enum.fixed b/tests/ui/parser/issue-101477-enum.fixed similarity index 100% rename from src/test/ui/parser/issue-101477-enum.fixed rename to tests/ui/parser/issue-101477-enum.fixed diff --git a/src/test/ui/parser/issue-101477-enum.rs b/tests/ui/parser/issue-101477-enum.rs similarity index 100% rename from src/test/ui/parser/issue-101477-enum.rs rename to tests/ui/parser/issue-101477-enum.rs diff --git a/src/test/ui/parser/issue-101477-enum.stderr b/tests/ui/parser/issue-101477-enum.stderr similarity index 100% rename from src/test/ui/parser/issue-101477-enum.stderr rename to tests/ui/parser/issue-101477-enum.stderr diff --git a/src/test/ui/parser/issue-101477-let.fixed b/tests/ui/parser/issue-101477-let.fixed similarity index 100% rename from src/test/ui/parser/issue-101477-let.fixed rename to tests/ui/parser/issue-101477-let.fixed diff --git a/src/test/ui/parser/issue-101477-let.rs b/tests/ui/parser/issue-101477-let.rs similarity index 100% rename from src/test/ui/parser/issue-101477-let.rs rename to tests/ui/parser/issue-101477-let.rs diff --git a/src/test/ui/parser/issue-101477-let.stderr b/tests/ui/parser/issue-101477-let.stderr similarity index 100% rename from src/test/ui/parser/issue-101477-let.stderr rename to tests/ui/parser/issue-101477-let.stderr diff --git a/src/test/ui/parser/issue-102806.rs b/tests/ui/parser/issue-102806.rs similarity index 100% rename from src/test/ui/parser/issue-102806.rs rename to tests/ui/parser/issue-102806.rs diff --git a/src/test/ui/parser/issue-102806.stderr b/tests/ui/parser/issue-102806.stderr similarity index 100% rename from src/test/ui/parser/issue-102806.stderr rename to tests/ui/parser/issue-102806.stderr diff --git a/src/test/ui/parser/issue-103143.rs b/tests/ui/parser/issue-103143.rs similarity index 100% rename from src/test/ui/parser/issue-103143.rs rename to tests/ui/parser/issue-103143.rs diff --git a/src/test/ui/parser/issue-103143.stderr b/tests/ui/parser/issue-103143.stderr similarity index 100% rename from src/test/ui/parser/issue-103143.stderr rename to tests/ui/parser/issue-103143.stderr diff --git a/src/test/ui/parser/issue-103381.fixed b/tests/ui/parser/issue-103381.fixed similarity index 100% rename from src/test/ui/parser/issue-103381.fixed rename to tests/ui/parser/issue-103381.fixed diff --git a/src/test/ui/parser/issue-103381.rs b/tests/ui/parser/issue-103381.rs similarity index 100% rename from src/test/ui/parser/issue-103381.rs rename to tests/ui/parser/issue-103381.rs diff --git a/src/test/ui/parser/issue-103381.stderr b/tests/ui/parser/issue-103381.stderr similarity index 100% rename from src/test/ui/parser/issue-103381.stderr rename to tests/ui/parser/issue-103381.stderr diff --git a/src/test/ui/parser/issue-103425.rs b/tests/ui/parser/issue-103425.rs similarity index 100% rename from src/test/ui/parser/issue-103425.rs rename to tests/ui/parser/issue-103425.rs diff --git a/src/test/ui/parser/issue-103425.stderr b/tests/ui/parser/issue-103425.stderr similarity index 100% rename from src/test/ui/parser/issue-103425.stderr rename to tests/ui/parser/issue-103425.stderr diff --git a/src/test/ui/parser/issue-103451.rs b/tests/ui/parser/issue-103451.rs similarity index 100% rename from src/test/ui/parser/issue-103451.rs rename to tests/ui/parser/issue-103451.rs diff --git a/src/test/ui/parser/issue-103451.stderr b/tests/ui/parser/issue-103451.stderr similarity index 100% rename from src/test/ui/parser/issue-103451.stderr rename to tests/ui/parser/issue-103451.stderr diff --git a/src/test/ui/parser/issue-103748-ICE-wrong-braces.rs b/tests/ui/parser/issue-103748-ICE-wrong-braces.rs similarity index 100% rename from src/test/ui/parser/issue-103748-ICE-wrong-braces.rs rename to tests/ui/parser/issue-103748-ICE-wrong-braces.rs diff --git a/src/test/ui/parser/issue-103748-ICE-wrong-braces.stderr b/tests/ui/parser/issue-103748-ICE-wrong-braces.stderr similarity index 100% rename from src/test/ui/parser/issue-103748-ICE-wrong-braces.stderr rename to tests/ui/parser/issue-103748-ICE-wrong-braces.stderr diff --git a/src/test/ui/parser/issue-103869.rs b/tests/ui/parser/issue-103869.rs similarity index 100% rename from src/test/ui/parser/issue-103869.rs rename to tests/ui/parser/issue-103869.rs diff --git a/src/test/ui/parser/issue-103869.stderr b/tests/ui/parser/issue-103869.stderr similarity index 100% rename from src/test/ui/parser/issue-103869.stderr rename to tests/ui/parser/issue-103869.stderr diff --git a/src/test/ui/parser/issue-104620.rs b/tests/ui/parser/issue-104620.rs similarity index 100% rename from src/test/ui/parser/issue-104620.rs rename to tests/ui/parser/issue-104620.rs diff --git a/src/test/ui/parser/issue-104620.stderr b/tests/ui/parser/issue-104620.stderr similarity index 100% rename from src/test/ui/parser/issue-104620.stderr rename to tests/ui/parser/issue-104620.stderr diff --git a/src/test/ui/parser/issue-104867-inc-dec-2.rs b/tests/ui/parser/issue-104867-inc-dec-2.rs similarity index 100% rename from src/test/ui/parser/issue-104867-inc-dec-2.rs rename to tests/ui/parser/issue-104867-inc-dec-2.rs diff --git a/src/test/ui/parser/issue-104867-inc-dec-2.stderr b/tests/ui/parser/issue-104867-inc-dec-2.stderr similarity index 100% rename from src/test/ui/parser/issue-104867-inc-dec-2.stderr rename to tests/ui/parser/issue-104867-inc-dec-2.stderr diff --git a/src/test/ui/parser/issue-104867-inc-dec.rs b/tests/ui/parser/issue-104867-inc-dec.rs similarity index 100% rename from src/test/ui/parser/issue-104867-inc-dec.rs rename to tests/ui/parser/issue-104867-inc-dec.rs diff --git a/src/test/ui/parser/issue-104867-inc-dec.stderr b/tests/ui/parser/issue-104867-inc-dec.stderr similarity index 100% rename from src/test/ui/parser/issue-104867-inc-dec.stderr rename to tests/ui/parser/issue-104867-inc-dec.stderr diff --git a/src/test/ui/parser/issue-105366.fixed b/tests/ui/parser/issue-105366.fixed similarity index 100% rename from src/test/ui/parser/issue-105366.fixed rename to tests/ui/parser/issue-105366.fixed diff --git a/src/test/ui/parser/issue-105366.rs b/tests/ui/parser/issue-105366.rs similarity index 100% rename from src/test/ui/parser/issue-105366.rs rename to tests/ui/parser/issue-105366.rs diff --git a/src/test/ui/parser/issue-105366.stderr b/tests/ui/parser/issue-105366.stderr similarity index 100% rename from src/test/ui/parser/issue-105366.stderr rename to tests/ui/parser/issue-105366.stderr diff --git a/src/test/ui/parser/issue-105634.rs b/tests/ui/parser/issue-105634.rs similarity index 100% rename from src/test/ui/parser/issue-105634.rs rename to tests/ui/parser/issue-105634.rs diff --git a/src/test/ui/parser/issue-17718-parse-const.rs b/tests/ui/parser/issue-17718-parse-const.rs similarity index 100% rename from src/test/ui/parser/issue-17718-parse-const.rs rename to tests/ui/parser/issue-17718-parse-const.rs diff --git a/src/test/ui/parser/issue-39616.rs b/tests/ui/parser/issue-39616.rs similarity index 100% rename from src/test/ui/parser/issue-39616.rs rename to tests/ui/parser/issue-39616.rs diff --git a/src/test/ui/parser/issue-39616.stderr b/tests/ui/parser/issue-39616.stderr similarity index 100% rename from src/test/ui/parser/issue-39616.stderr rename to tests/ui/parser/issue-39616.stderr diff --git a/src/test/ui/parser/issue-49257.rs b/tests/ui/parser/issue-49257.rs similarity index 100% rename from src/test/ui/parser/issue-49257.rs rename to tests/ui/parser/issue-49257.rs diff --git a/src/test/ui/parser/issue-49257.stderr b/tests/ui/parser/issue-49257.stderr similarity index 100% rename from src/test/ui/parser/issue-49257.stderr rename to tests/ui/parser/issue-49257.stderr diff --git a/src/test/ui/parser/issue-61858.rs b/tests/ui/parser/issue-61858.rs similarity index 100% rename from src/test/ui/parser/issue-61858.rs rename to tests/ui/parser/issue-61858.rs diff --git a/src/test/ui/parser/issue-61858.stderr b/tests/ui/parser/issue-61858.stderr similarity index 100% rename from src/test/ui/parser/issue-61858.stderr rename to tests/ui/parser/issue-61858.stderr diff --git a/src/test/ui/parser/issue-68091-unicode-ident-after-if.rs b/tests/ui/parser/issue-68091-unicode-ident-after-if.rs similarity index 100% rename from src/test/ui/parser/issue-68091-unicode-ident-after-if.rs rename to tests/ui/parser/issue-68091-unicode-ident-after-if.rs diff --git a/src/test/ui/parser/issue-68091-unicode-ident-after-if.stderr b/tests/ui/parser/issue-68091-unicode-ident-after-if.stderr similarity index 100% rename from src/test/ui/parser/issue-68091-unicode-ident-after-if.stderr rename to tests/ui/parser/issue-68091-unicode-ident-after-if.stderr diff --git a/src/test/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.rs b/tests/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.rs similarity index 100% rename from src/test/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.rs rename to tests/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.rs diff --git a/src/test/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.stderr b/tests/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.stderr similarity index 100% rename from src/test/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.stderr rename to tests/ui/parser/issue-68092-unicode-ident-after-incomplete-expr.stderr diff --git a/src/test/ui/parser/issue-81804.rs b/tests/ui/parser/issue-81804.rs similarity index 100% rename from src/test/ui/parser/issue-81804.rs rename to tests/ui/parser/issue-81804.rs diff --git a/src/test/ui/parser/issue-81804.stderr b/tests/ui/parser/issue-81804.stderr similarity index 100% rename from src/test/ui/parser/issue-81804.stderr rename to tests/ui/parser/issue-81804.stderr diff --git a/src/test/ui/parser/issue-81827.rs b/tests/ui/parser/issue-81827.rs similarity index 100% rename from src/test/ui/parser/issue-81827.rs rename to tests/ui/parser/issue-81827.rs diff --git a/src/test/ui/parser/issue-81827.stderr b/tests/ui/parser/issue-81827.stderr similarity index 100% rename from src/test/ui/parser/issue-81827.stderr rename to tests/ui/parser/issue-81827.stderr diff --git a/src/test/ui/parser/issue-87694-duplicated-pub.rs b/tests/ui/parser/issue-87694-duplicated-pub.rs similarity index 100% rename from src/test/ui/parser/issue-87694-duplicated-pub.rs rename to tests/ui/parser/issue-87694-duplicated-pub.rs diff --git a/src/test/ui/parser/issue-87694-duplicated-pub.stderr b/tests/ui/parser/issue-87694-duplicated-pub.stderr similarity index 100% rename from src/test/ui/parser/issue-87694-duplicated-pub.stderr rename to tests/ui/parser/issue-87694-duplicated-pub.stderr diff --git a/src/test/ui/parser/issue-87694-misplaced-pub.rs b/tests/ui/parser/issue-87694-misplaced-pub.rs similarity index 100% rename from src/test/ui/parser/issue-87694-misplaced-pub.rs rename to tests/ui/parser/issue-87694-misplaced-pub.rs diff --git a/src/test/ui/parser/issue-87694-misplaced-pub.stderr b/tests/ui/parser/issue-87694-misplaced-pub.stderr similarity index 100% rename from src/test/ui/parser/issue-87694-misplaced-pub.stderr rename to tests/ui/parser/issue-87694-misplaced-pub.stderr diff --git a/src/test/ui/parser/issue-90728.rs b/tests/ui/parser/issue-90728.rs similarity index 100% rename from src/test/ui/parser/issue-90728.rs rename to tests/ui/parser/issue-90728.rs diff --git a/src/test/ui/parser/issue-90728.stderr b/tests/ui/parser/issue-90728.stderr similarity index 100% rename from src/test/ui/parser/issue-90728.stderr rename to tests/ui/parser/issue-90728.stderr diff --git a/src/test/ui/parser/issue-91421.rs b/tests/ui/parser/issue-91421.rs similarity index 100% rename from src/test/ui/parser/issue-91421.rs rename to tests/ui/parser/issue-91421.rs diff --git a/src/test/ui/parser/issue-91421.stderr b/tests/ui/parser/issue-91421.stderr similarity index 100% rename from src/test/ui/parser/issue-91421.stderr rename to tests/ui/parser/issue-91421.stderr diff --git a/src/test/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed b/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed similarity index 100% rename from src/test/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed rename to tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.fixed diff --git a/src/test/ui/parser/issue-99625-enum-struct-mutually-exclusive.rs b/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.rs similarity index 100% rename from src/test/ui/parser/issue-99625-enum-struct-mutually-exclusive.rs rename to tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.rs diff --git a/src/test/ui/parser/issue-99625-enum-struct-mutually-exclusive.stderr b/tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.stderr similarity index 100% rename from src/test/ui/parser/issue-99625-enum-struct-mutually-exclusive.stderr rename to tests/ui/parser/issue-99625-enum-struct-mutually-exclusive.stderr diff --git a/src/test/ui/parser/issue-99910-const-let-mutually-exclusive.fixed b/tests/ui/parser/issue-99910-const-let-mutually-exclusive.fixed similarity index 100% rename from src/test/ui/parser/issue-99910-const-let-mutually-exclusive.fixed rename to tests/ui/parser/issue-99910-const-let-mutually-exclusive.fixed diff --git a/src/test/ui/parser/issue-99910-const-let-mutually-exclusive.rs b/tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs similarity index 100% rename from src/test/ui/parser/issue-99910-const-let-mutually-exclusive.rs rename to tests/ui/parser/issue-99910-const-let-mutually-exclusive.rs diff --git a/src/test/ui/parser/issue-99910-const-let-mutually-exclusive.stderr b/tests/ui/parser/issue-99910-const-let-mutually-exclusive.stderr similarity index 100% rename from src/test/ui/parser/issue-99910-const-let-mutually-exclusive.stderr rename to tests/ui/parser/issue-99910-const-let-mutually-exclusive.stderr diff --git a/src/test/ui/parser/issues/auxiliary/issue-21146-inc.rs b/tests/ui/parser/issues/auxiliary/issue-21146-inc.rs similarity index 100% rename from src/test/ui/parser/issues/auxiliary/issue-21146-inc.rs rename to tests/ui/parser/issues/auxiliary/issue-21146-inc.rs diff --git a/src/test/ui/parser/issues/auxiliary/issue-89971-outer-attr-following-inner-attr-ice.rs b/tests/ui/parser/issues/auxiliary/issue-89971-outer-attr-following-inner-attr-ice.rs similarity index 100% rename from src/test/ui/parser/issues/auxiliary/issue-89971-outer-attr-following-inner-attr-ice.rs rename to tests/ui/parser/issues/auxiliary/issue-89971-outer-attr-following-inner-attr-ice.rs diff --git a/src/test/ui/parser/issues/auxiliary/issue-94340-inc.rs b/tests/ui/parser/issues/auxiliary/issue-94340-inc.rs similarity index 100% rename from src/test/ui/parser/issues/auxiliary/issue-94340-inc.rs rename to tests/ui/parser/issues/auxiliary/issue-94340-inc.rs diff --git a/src/test/ui/parser/issues/issue-101540.rs b/tests/ui/parser/issues/issue-101540.rs similarity index 100% rename from src/test/ui/parser/issues/issue-101540.rs rename to tests/ui/parser/issues/issue-101540.rs diff --git a/src/test/ui/parser/issues/issue-101540.stderr b/tests/ui/parser/issues/issue-101540.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-101540.stderr rename to tests/ui/parser/issues/issue-101540.stderr diff --git a/src/test/ui/parser/issues/issue-102182-impl-trait-recover.rs b/tests/ui/parser/issues/issue-102182-impl-trait-recover.rs similarity index 100% rename from src/test/ui/parser/issues/issue-102182-impl-trait-recover.rs rename to tests/ui/parser/issues/issue-102182-impl-trait-recover.rs diff --git a/src/test/ui/parser/issues/issue-102182-impl-trait-recover.stderr b/tests/ui/parser/issues/issue-102182-impl-trait-recover.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-102182-impl-trait-recover.stderr rename to tests/ui/parser/issues/issue-102182-impl-trait-recover.stderr diff --git a/src/test/ui/parser/issues/issue-10392-2.fixed b/tests/ui/parser/issues/issue-10392-2.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-10392-2.fixed rename to tests/ui/parser/issues/issue-10392-2.fixed diff --git a/src/test/ui/parser/issues/issue-10392-2.rs b/tests/ui/parser/issues/issue-10392-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-10392-2.rs rename to tests/ui/parser/issues/issue-10392-2.rs diff --git a/src/test/ui/parser/issues/issue-10392-2.stderr b/tests/ui/parser/issues/issue-10392-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-10392-2.stderr rename to tests/ui/parser/issues/issue-10392-2.stderr diff --git a/src/test/ui/parser/issues/issue-10392.rs b/tests/ui/parser/issues/issue-10392.rs similarity index 100% rename from src/test/ui/parser/issues/issue-10392.rs rename to tests/ui/parser/issues/issue-10392.rs diff --git a/src/test/ui/parser/issues/issue-10392.stderr b/tests/ui/parser/issues/issue-10392.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-10392.stderr rename to tests/ui/parser/issues/issue-10392.stderr diff --git a/src/test/ui/parser/issues/issue-104088.rs b/tests/ui/parser/issues/issue-104088.rs similarity index 100% rename from src/test/ui/parser/issues/issue-104088.rs rename to tests/ui/parser/issues/issue-104088.rs diff --git a/src/test/ui/parser/issues/issue-104088.stderr b/tests/ui/parser/issues/issue-104088.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-104088.stderr rename to tests/ui/parser/issues/issue-104088.stderr diff --git a/src/test/ui/parser/issues/issue-10636-1.rs b/tests/ui/parser/issues/issue-10636-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-10636-1.rs rename to tests/ui/parser/issues/issue-10636-1.rs diff --git a/src/test/ui/parser/issues/issue-10636-1.stderr b/tests/ui/parser/issues/issue-10636-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-10636-1.stderr rename to tests/ui/parser/issues/issue-10636-1.stderr diff --git a/src/test/ui/parser/issues/issue-10636-2.rs b/tests/ui/parser/issues/issue-10636-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-10636-2.rs rename to tests/ui/parser/issues/issue-10636-2.rs diff --git a/src/test/ui/parser/issues/issue-10636-2.stderr b/tests/ui/parser/issues/issue-10636-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-10636-2.stderr rename to tests/ui/parser/issues/issue-10636-2.stderr diff --git a/src/test/ui/parser/issues/issue-13483.rs b/tests/ui/parser/issues/issue-13483.rs similarity index 100% rename from src/test/ui/parser/issues/issue-13483.rs rename to tests/ui/parser/issues/issue-13483.rs diff --git a/src/test/ui/parser/issues/issue-13483.stderr b/tests/ui/parser/issues/issue-13483.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-13483.stderr rename to tests/ui/parser/issues/issue-13483.stderr diff --git a/src/test/ui/parser/issues/issue-14303-fncall.full.stderr b/tests/ui/parser/issues/issue-14303-fncall.full.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-14303-fncall.full.stderr rename to tests/ui/parser/issues/issue-14303-fncall.full.stderr diff --git a/src/test/ui/parser/issues/issue-14303-fncall.generic_arg.stderr b/tests/ui/parser/issues/issue-14303-fncall.generic_arg.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-14303-fncall.generic_arg.stderr rename to tests/ui/parser/issues/issue-14303-fncall.generic_arg.stderr diff --git a/src/test/ui/parser/issues/issue-14303-fncall.rs b/tests/ui/parser/issues/issue-14303-fncall.rs similarity index 100% rename from src/test/ui/parser/issues/issue-14303-fncall.rs rename to tests/ui/parser/issues/issue-14303-fncall.rs diff --git a/src/test/ui/parser/issues/issue-14303.rs b/tests/ui/parser/issues/issue-14303.rs similarity index 100% rename from src/test/ui/parser/issues/issue-14303.rs rename to tests/ui/parser/issues/issue-14303.rs diff --git a/src/test/ui/parser/issues/issue-14303.stderr b/tests/ui/parser/issues/issue-14303.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-14303.stderr rename to tests/ui/parser/issues/issue-14303.stderr diff --git a/src/test/ui/parser/issues/issue-15914.rs b/tests/ui/parser/issues/issue-15914.rs similarity index 100% rename from src/test/ui/parser/issues/issue-15914.rs rename to tests/ui/parser/issues/issue-15914.rs diff --git a/src/test/ui/parser/issues/issue-15914.stderr b/tests/ui/parser/issues/issue-15914.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-15914.stderr rename to tests/ui/parser/issues/issue-15914.stderr diff --git a/src/test/ui/parser/issues/issue-15980.rs b/tests/ui/parser/issues/issue-15980.rs similarity index 100% rename from src/test/ui/parser/issues/issue-15980.rs rename to tests/ui/parser/issues/issue-15980.rs diff --git a/src/test/ui/parser/issues/issue-15980.stderr b/tests/ui/parser/issues/issue-15980.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-15980.stderr rename to tests/ui/parser/issues/issue-15980.stderr diff --git a/src/test/ui/parser/issues/issue-1655.rs b/tests/ui/parser/issues/issue-1655.rs similarity index 100% rename from src/test/ui/parser/issues/issue-1655.rs rename to tests/ui/parser/issues/issue-1655.rs diff --git a/src/test/ui/parser/issues/issue-1655.stderr b/tests/ui/parser/issues/issue-1655.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-1655.stderr rename to tests/ui/parser/issues/issue-1655.stderr diff --git a/src/test/ui/parser/issues/issue-17718-const-mut.rs b/tests/ui/parser/issues/issue-17718-const-mut.rs similarity index 100% rename from src/test/ui/parser/issues/issue-17718-const-mut.rs rename to tests/ui/parser/issues/issue-17718-const-mut.rs diff --git a/src/test/ui/parser/issues/issue-17718-const-mut.stderr b/tests/ui/parser/issues/issue-17718-const-mut.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-17718-const-mut.stderr rename to tests/ui/parser/issues/issue-17718-const-mut.stderr diff --git a/src/test/ui/parser/issues/issue-17904-2.rs b/tests/ui/parser/issues/issue-17904-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-17904-2.rs rename to tests/ui/parser/issues/issue-17904-2.rs diff --git a/src/test/ui/parser/issues/issue-17904-2.stderr b/tests/ui/parser/issues/issue-17904-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-17904-2.stderr rename to tests/ui/parser/issues/issue-17904-2.stderr diff --git a/src/test/ui/parser/issues/issue-17904.rs b/tests/ui/parser/issues/issue-17904.rs similarity index 100% rename from src/test/ui/parser/issues/issue-17904.rs rename to tests/ui/parser/issues/issue-17904.rs diff --git a/src/test/ui/parser/issues/issue-17904.stderr b/tests/ui/parser/issues/issue-17904.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-17904.stderr rename to tests/ui/parser/issues/issue-17904.stderr diff --git a/src/test/ui/parser/issues/issue-1802-1.rs b/tests/ui/parser/issues/issue-1802-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-1802-1.rs rename to tests/ui/parser/issues/issue-1802-1.rs diff --git a/src/test/ui/parser/issues/issue-1802-1.stderr b/tests/ui/parser/issues/issue-1802-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-1802-1.stderr rename to tests/ui/parser/issues/issue-1802-1.stderr diff --git a/src/test/ui/parser/issues/issue-1802-2.rs b/tests/ui/parser/issues/issue-1802-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-1802-2.rs rename to tests/ui/parser/issues/issue-1802-2.rs diff --git a/src/test/ui/parser/issues/issue-1802-2.stderr b/tests/ui/parser/issues/issue-1802-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-1802-2.stderr rename to tests/ui/parser/issues/issue-1802-2.stderr diff --git a/src/test/ui/parser/issues/issue-19096.rs b/tests/ui/parser/issues/issue-19096.rs similarity index 100% rename from src/test/ui/parser/issues/issue-19096.rs rename to tests/ui/parser/issues/issue-19096.rs diff --git a/src/test/ui/parser/issues/issue-19096.stderr b/tests/ui/parser/issues/issue-19096.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-19096.stderr rename to tests/ui/parser/issues/issue-19096.stderr diff --git a/src/test/ui/parser/issues/issue-19398.rs b/tests/ui/parser/issues/issue-19398.rs similarity index 100% rename from src/test/ui/parser/issues/issue-19398.rs rename to tests/ui/parser/issues/issue-19398.rs diff --git a/src/test/ui/parser/issues/issue-19398.stderr b/tests/ui/parser/issues/issue-19398.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-19398.stderr rename to tests/ui/parser/issues/issue-19398.stderr diff --git a/src/test/ui/parser/issues/issue-20616-1.rs b/tests/ui/parser/issues/issue-20616-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-1.rs rename to tests/ui/parser/issues/issue-20616-1.rs diff --git a/src/test/ui/parser/issues/issue-20616-1.stderr b/tests/ui/parser/issues/issue-20616-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-1.stderr rename to tests/ui/parser/issues/issue-20616-1.stderr diff --git a/src/test/ui/parser/issues/issue-20616-2.rs b/tests/ui/parser/issues/issue-20616-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-2.rs rename to tests/ui/parser/issues/issue-20616-2.rs diff --git a/src/test/ui/parser/issues/issue-20616-2.stderr b/tests/ui/parser/issues/issue-20616-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-2.stderr rename to tests/ui/parser/issues/issue-20616-2.stderr diff --git a/src/test/ui/parser/issues/issue-20616-3.rs b/tests/ui/parser/issues/issue-20616-3.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-3.rs rename to tests/ui/parser/issues/issue-20616-3.rs diff --git a/src/test/ui/parser/issues/issue-20616-3.stderr b/tests/ui/parser/issues/issue-20616-3.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-3.stderr rename to tests/ui/parser/issues/issue-20616-3.stderr diff --git a/src/test/ui/parser/issues/issue-20616-4.rs b/tests/ui/parser/issues/issue-20616-4.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-4.rs rename to tests/ui/parser/issues/issue-20616-4.rs diff --git a/src/test/ui/parser/issues/issue-20616-4.stderr b/tests/ui/parser/issues/issue-20616-4.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-4.stderr rename to tests/ui/parser/issues/issue-20616-4.stderr diff --git a/src/test/ui/parser/issues/issue-20616-5.rs b/tests/ui/parser/issues/issue-20616-5.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-5.rs rename to tests/ui/parser/issues/issue-20616-5.rs diff --git a/src/test/ui/parser/issues/issue-20616-5.stderr b/tests/ui/parser/issues/issue-20616-5.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-5.stderr rename to tests/ui/parser/issues/issue-20616-5.stderr diff --git a/src/test/ui/parser/issues/issue-20616-6.rs b/tests/ui/parser/issues/issue-20616-6.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-6.rs rename to tests/ui/parser/issues/issue-20616-6.rs diff --git a/src/test/ui/parser/issues/issue-20616-6.stderr b/tests/ui/parser/issues/issue-20616-6.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-6.stderr rename to tests/ui/parser/issues/issue-20616-6.stderr diff --git a/src/test/ui/parser/issues/issue-20616-7.rs b/tests/ui/parser/issues/issue-20616-7.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-7.rs rename to tests/ui/parser/issues/issue-20616-7.rs diff --git a/src/test/ui/parser/issues/issue-20616-7.stderr b/tests/ui/parser/issues/issue-20616-7.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-7.stderr rename to tests/ui/parser/issues/issue-20616-7.stderr diff --git a/src/test/ui/parser/issues/issue-20616-8.rs b/tests/ui/parser/issues/issue-20616-8.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-8.rs rename to tests/ui/parser/issues/issue-20616-8.rs diff --git a/src/test/ui/parser/issues/issue-20616-8.stderr b/tests/ui/parser/issues/issue-20616-8.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-8.stderr rename to tests/ui/parser/issues/issue-20616-8.stderr diff --git a/src/test/ui/parser/issues/issue-20616-9.rs b/tests/ui/parser/issues/issue-20616-9.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20616-9.rs rename to tests/ui/parser/issues/issue-20616-9.rs diff --git a/src/test/ui/parser/issues/issue-20616-9.stderr b/tests/ui/parser/issues/issue-20616-9.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20616-9.stderr rename to tests/ui/parser/issues/issue-20616-9.stderr diff --git a/src/test/ui/parser/issues/issue-20711-2.rs b/tests/ui/parser/issues/issue-20711-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20711-2.rs rename to tests/ui/parser/issues/issue-20711-2.rs diff --git a/src/test/ui/parser/issues/issue-20711-2.stderr b/tests/ui/parser/issues/issue-20711-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20711-2.stderr rename to tests/ui/parser/issues/issue-20711-2.stderr diff --git a/src/test/ui/parser/issues/issue-20711.rs b/tests/ui/parser/issues/issue-20711.rs similarity index 100% rename from src/test/ui/parser/issues/issue-20711.rs rename to tests/ui/parser/issues/issue-20711.rs diff --git a/src/test/ui/parser/issues/issue-20711.stderr b/tests/ui/parser/issues/issue-20711.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-20711.stderr rename to tests/ui/parser/issues/issue-20711.stderr diff --git a/src/test/ui/parser/issues/issue-21146.rs b/tests/ui/parser/issues/issue-21146.rs similarity index 100% rename from src/test/ui/parser/issues/issue-21146.rs rename to tests/ui/parser/issues/issue-21146.rs diff --git a/src/test/ui/parser/issues/issue-21146.stderr b/tests/ui/parser/issues/issue-21146.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-21146.stderr rename to tests/ui/parser/issues/issue-21146.stderr diff --git a/src/test/ui/parser/issues/issue-21153.rs b/tests/ui/parser/issues/issue-21153.rs similarity index 100% rename from src/test/ui/parser/issues/issue-21153.rs rename to tests/ui/parser/issues/issue-21153.rs diff --git a/src/test/ui/parser/issues/issue-21153.stderr b/tests/ui/parser/issues/issue-21153.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-21153.stderr rename to tests/ui/parser/issues/issue-21153.stderr diff --git a/src/test/ui/parser/issues/issue-21475.rs b/tests/ui/parser/issues/issue-21475.rs similarity index 100% rename from src/test/ui/parser/issues/issue-21475.rs rename to tests/ui/parser/issues/issue-21475.rs diff --git a/src/test/ui/parser/issues/issue-22647.rs b/tests/ui/parser/issues/issue-22647.rs similarity index 100% rename from src/test/ui/parser/issues/issue-22647.rs rename to tests/ui/parser/issues/issue-22647.rs diff --git a/src/test/ui/parser/issues/issue-22647.stderr b/tests/ui/parser/issues/issue-22647.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-22647.stderr rename to tests/ui/parser/issues/issue-22647.stderr diff --git a/src/test/ui/parser/issues/issue-22712.rs b/tests/ui/parser/issues/issue-22712.rs similarity index 100% rename from src/test/ui/parser/issues/issue-22712.rs rename to tests/ui/parser/issues/issue-22712.rs diff --git a/src/test/ui/parser/issues/issue-22712.stderr b/tests/ui/parser/issues/issue-22712.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-22712.stderr rename to tests/ui/parser/issues/issue-22712.stderr diff --git a/src/test/ui/parser/issues/issue-2354-1.rs b/tests/ui/parser/issues/issue-2354-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-2354-1.rs rename to tests/ui/parser/issues/issue-2354-1.rs diff --git a/src/test/ui/parser/issues/issue-2354-1.stderr b/tests/ui/parser/issues/issue-2354-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-2354-1.stderr rename to tests/ui/parser/issues/issue-2354-1.stderr diff --git a/src/test/ui/parser/issues/issue-2354.rs b/tests/ui/parser/issues/issue-2354.rs similarity index 100% rename from src/test/ui/parser/issues/issue-2354.rs rename to tests/ui/parser/issues/issue-2354.rs diff --git a/src/test/ui/parser/issues/issue-2354.stderr b/tests/ui/parser/issues/issue-2354.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-2354.stderr rename to tests/ui/parser/issues/issue-2354.stderr diff --git a/src/test/ui/parser/issues/issue-23620-invalid-escapes.rs b/tests/ui/parser/issues/issue-23620-invalid-escapes.rs similarity index 100% rename from src/test/ui/parser/issues/issue-23620-invalid-escapes.rs rename to tests/ui/parser/issues/issue-23620-invalid-escapes.rs diff --git a/src/test/ui/parser/issues/issue-23620-invalid-escapes.stderr b/tests/ui/parser/issues/issue-23620-invalid-escapes.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-23620-invalid-escapes.stderr rename to tests/ui/parser/issues/issue-23620-invalid-escapes.stderr diff --git a/src/test/ui/parser/issues/issue-24197.rs b/tests/ui/parser/issues/issue-24197.rs similarity index 100% rename from src/test/ui/parser/issues/issue-24197.rs rename to tests/ui/parser/issues/issue-24197.rs diff --git a/src/test/ui/parser/issues/issue-24197.stderr b/tests/ui/parser/issues/issue-24197.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-24197.stderr rename to tests/ui/parser/issues/issue-24197.stderr diff --git a/src/test/ui/parser/issues/issue-24375.rs b/tests/ui/parser/issues/issue-24375.rs similarity index 100% rename from src/test/ui/parser/issues/issue-24375.rs rename to tests/ui/parser/issues/issue-24375.rs diff --git a/src/test/ui/parser/issues/issue-24375.stderr b/tests/ui/parser/issues/issue-24375.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-24375.stderr rename to tests/ui/parser/issues/issue-24375.stderr diff --git a/src/test/ui/parser/issues/issue-24780.rs b/tests/ui/parser/issues/issue-24780.rs similarity index 100% rename from src/test/ui/parser/issues/issue-24780.rs rename to tests/ui/parser/issues/issue-24780.rs diff --git a/src/test/ui/parser/issues/issue-24780.stderr b/tests/ui/parser/issues/issue-24780.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-24780.stderr rename to tests/ui/parser/issues/issue-24780.stderr diff --git a/src/test/ui/parser/issues/issue-27255.rs b/tests/ui/parser/issues/issue-27255.rs similarity index 100% rename from src/test/ui/parser/issues/issue-27255.rs rename to tests/ui/parser/issues/issue-27255.rs diff --git a/src/test/ui/parser/issues/issue-27255.stderr b/tests/ui/parser/issues/issue-27255.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-27255.stderr rename to tests/ui/parser/issues/issue-27255.stderr diff --git a/src/test/ui/parser/issues/issue-30318.fixed b/tests/ui/parser/issues/issue-30318.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-30318.fixed rename to tests/ui/parser/issues/issue-30318.fixed diff --git a/src/test/ui/parser/issues/issue-30318.rs b/tests/ui/parser/issues/issue-30318.rs similarity index 100% rename from src/test/ui/parser/issues/issue-30318.rs rename to tests/ui/parser/issues/issue-30318.rs diff --git a/src/test/ui/parser/issues/issue-30318.stderr b/tests/ui/parser/issues/issue-30318.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-30318.stderr rename to tests/ui/parser/issues/issue-30318.stderr diff --git a/src/test/ui/parser/issues/issue-3036.fixed b/tests/ui/parser/issues/issue-3036.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-3036.fixed rename to tests/ui/parser/issues/issue-3036.fixed diff --git a/src/test/ui/parser/issues/issue-3036.rs b/tests/ui/parser/issues/issue-3036.rs similarity index 100% rename from src/test/ui/parser/issues/issue-3036.rs rename to tests/ui/parser/issues/issue-3036.rs diff --git a/src/test/ui/parser/issues/issue-3036.stderr b/tests/ui/parser/issues/issue-3036.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-3036.stderr rename to tests/ui/parser/issues/issue-3036.stderr diff --git a/src/test/ui/parser/issues/issue-31804.rs b/tests/ui/parser/issues/issue-31804.rs similarity index 100% rename from src/test/ui/parser/issues/issue-31804.rs rename to tests/ui/parser/issues/issue-31804.rs diff --git a/src/test/ui/parser/issues/issue-31804.stderr b/tests/ui/parser/issues/issue-31804.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-31804.stderr rename to tests/ui/parser/issues/issue-31804.stderr diff --git a/src/test/ui/parser/issues/issue-32214.rs b/tests/ui/parser/issues/issue-32214.rs similarity index 100% rename from src/test/ui/parser/issues/issue-32214.rs rename to tests/ui/parser/issues/issue-32214.rs diff --git a/src/test/ui/parser/issues/issue-32214.stderr b/tests/ui/parser/issues/issue-32214.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-32214.stderr rename to tests/ui/parser/issues/issue-32214.stderr diff --git a/src/test/ui/parser/issues/issue-32446.rs b/tests/ui/parser/issues/issue-32446.rs similarity index 100% rename from src/test/ui/parser/issues/issue-32446.rs rename to tests/ui/parser/issues/issue-32446.rs diff --git a/src/test/ui/parser/issues/issue-32446.stderr b/tests/ui/parser/issues/issue-32446.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-32446.stderr rename to tests/ui/parser/issues/issue-32446.stderr diff --git a/src/test/ui/parser/issues/issue-32501.rs b/tests/ui/parser/issues/issue-32501.rs similarity index 100% rename from src/test/ui/parser/issues/issue-32501.rs rename to tests/ui/parser/issues/issue-32501.rs diff --git a/src/test/ui/parser/issues/issue-32501.stderr b/tests/ui/parser/issues/issue-32501.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-32501.stderr rename to tests/ui/parser/issues/issue-32501.stderr diff --git a/src/test/ui/parser/issues/issue-32505.rs b/tests/ui/parser/issues/issue-32505.rs similarity index 100% rename from src/test/ui/parser/issues/issue-32505.rs rename to tests/ui/parser/issues/issue-32505.rs diff --git a/src/test/ui/parser/issues/issue-32505.stderr b/tests/ui/parser/issues/issue-32505.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-32505.stderr rename to tests/ui/parser/issues/issue-32505.stderr diff --git a/src/test/ui/parser/issues/issue-33262.rs b/tests/ui/parser/issues/issue-33262.rs similarity index 100% rename from src/test/ui/parser/issues/issue-33262.rs rename to tests/ui/parser/issues/issue-33262.rs diff --git a/src/test/ui/parser/issues/issue-33262.stderr b/tests/ui/parser/issues/issue-33262.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-33262.stderr rename to tests/ui/parser/issues/issue-33262.stderr diff --git a/src/test/ui/parser/issues/issue-33413.rs b/tests/ui/parser/issues/issue-33413.rs similarity index 100% rename from src/test/ui/parser/issues/issue-33413.rs rename to tests/ui/parser/issues/issue-33413.rs diff --git a/src/test/ui/parser/issues/issue-33413.stderr b/tests/ui/parser/issues/issue-33413.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-33413.stderr rename to tests/ui/parser/issues/issue-33413.stderr diff --git a/src/test/ui/parser/issues/issue-33418.fixed b/tests/ui/parser/issues/issue-33418.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-33418.fixed rename to tests/ui/parser/issues/issue-33418.fixed diff --git a/src/test/ui/parser/issues/issue-33418.rs b/tests/ui/parser/issues/issue-33418.rs similarity index 100% rename from src/test/ui/parser/issues/issue-33418.rs rename to tests/ui/parser/issues/issue-33418.rs diff --git a/src/test/ui/parser/issues/issue-33418.stderr b/tests/ui/parser/issues/issue-33418.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-33418.stderr rename to tests/ui/parser/issues/issue-33418.stderr diff --git a/src/test/ui/parser/issues/issue-33455.rs b/tests/ui/parser/issues/issue-33455.rs similarity index 100% rename from src/test/ui/parser/issues/issue-33455.rs rename to tests/ui/parser/issues/issue-33455.rs diff --git a/src/test/ui/parser/issues/issue-33455.stderr b/tests/ui/parser/issues/issue-33455.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-33455.stderr rename to tests/ui/parser/issues/issue-33455.stderr diff --git a/src/test/ui/parser/issues/issue-34222-1.rs b/tests/ui/parser/issues/issue-34222-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-34222-1.rs rename to tests/ui/parser/issues/issue-34222-1.rs diff --git a/src/test/ui/parser/issues/issue-34222-1.stderr b/tests/ui/parser/issues/issue-34222-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-34222-1.stderr rename to tests/ui/parser/issues/issue-34222-1.stderr diff --git a/src/test/ui/parser/issues/issue-34255-1.rs b/tests/ui/parser/issues/issue-34255-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-34255-1.rs rename to tests/ui/parser/issues/issue-34255-1.rs diff --git a/src/test/ui/parser/issues/issue-34255-1.stderr b/tests/ui/parser/issues/issue-34255-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-34255-1.stderr rename to tests/ui/parser/issues/issue-34255-1.stderr diff --git a/src/test/ui/parser/issues/issue-35813-postfix-after-cast.rs b/tests/ui/parser/issues/issue-35813-postfix-after-cast.rs similarity index 100% rename from src/test/ui/parser/issues/issue-35813-postfix-after-cast.rs rename to tests/ui/parser/issues/issue-35813-postfix-after-cast.rs diff --git a/src/test/ui/parser/issues/issue-35813-postfix-after-cast.stderr b/tests/ui/parser/issues/issue-35813-postfix-after-cast.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-35813-postfix-after-cast.stderr rename to tests/ui/parser/issues/issue-35813-postfix-after-cast.stderr diff --git a/src/test/ui/parser/issues/issue-41155.rs b/tests/ui/parser/issues/issue-41155.rs similarity index 100% rename from src/test/ui/parser/issues/issue-41155.rs rename to tests/ui/parser/issues/issue-41155.rs diff --git a/src/test/ui/parser/issues/issue-41155.stderr b/tests/ui/parser/issues/issue-41155.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-41155.stderr rename to tests/ui/parser/issues/issue-41155.stderr diff --git a/src/test/ui/parser/issues/issue-43196.rs b/tests/ui/parser/issues/issue-43196.rs similarity index 100% rename from src/test/ui/parser/issues/issue-43196.rs rename to tests/ui/parser/issues/issue-43196.rs diff --git a/src/test/ui/parser/issues/issue-43196.stderr b/tests/ui/parser/issues/issue-43196.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-43196.stderr rename to tests/ui/parser/issues/issue-43196.stderr diff --git a/src/test/ui/parser/issues/issue-43692.rs b/tests/ui/parser/issues/issue-43692.rs similarity index 100% rename from src/test/ui/parser/issues/issue-43692.rs rename to tests/ui/parser/issues/issue-43692.rs diff --git a/src/test/ui/parser/issues/issue-43692.stderr b/tests/ui/parser/issues/issue-43692.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-43692.stderr rename to tests/ui/parser/issues/issue-43692.stderr diff --git a/src/test/ui/parser/issues/issue-44021.rs b/tests/ui/parser/issues/issue-44021.rs similarity index 100% rename from src/test/ui/parser/issues/issue-44021.rs rename to tests/ui/parser/issues/issue-44021.rs diff --git a/src/test/ui/parser/issues/issue-44021.stderr b/tests/ui/parser/issues/issue-44021.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-44021.stderr rename to tests/ui/parser/issues/issue-44021.stderr diff --git a/src/test/ui/parser/issues/issue-44406.rs b/tests/ui/parser/issues/issue-44406.rs similarity index 100% rename from src/test/ui/parser/issues/issue-44406.rs rename to tests/ui/parser/issues/issue-44406.rs diff --git a/src/test/ui/parser/issues/issue-44406.stderr b/tests/ui/parser/issues/issue-44406.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-44406.stderr rename to tests/ui/parser/issues/issue-44406.stderr diff --git a/src/test/ui/parser/issues/issue-45296.rs b/tests/ui/parser/issues/issue-45296.rs similarity index 100% rename from src/test/ui/parser/issues/issue-45296.rs rename to tests/ui/parser/issues/issue-45296.rs diff --git a/src/test/ui/parser/issues/issue-45296.stderr b/tests/ui/parser/issues/issue-45296.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-45296.stderr rename to tests/ui/parser/issues/issue-45296.stderr diff --git a/src/test/ui/parser/issues/issue-46186.fixed b/tests/ui/parser/issues/issue-46186.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-46186.fixed rename to tests/ui/parser/issues/issue-46186.fixed diff --git a/src/test/ui/parser/issues/issue-46186.rs b/tests/ui/parser/issues/issue-46186.rs similarity index 100% rename from src/test/ui/parser/issues/issue-46186.rs rename to tests/ui/parser/issues/issue-46186.rs diff --git a/src/test/ui/parser/issues/issue-46186.stderr b/tests/ui/parser/issues/issue-46186.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-46186.stderr rename to tests/ui/parser/issues/issue-46186.stderr diff --git a/src/test/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs b/tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs similarity index 100% rename from src/test/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs rename to tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.rs diff --git a/src/test/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr b/tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr rename to tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items-bad-variants.stderr diff --git a/src/test/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items.rs b/tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items.rs similarity index 100% rename from src/test/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items.rs rename to tests/ui/parser/issues/issue-48137-macros-cannot-interpolate-impl-items.rs diff --git a/src/test/ui/parser/issues/issue-48508-aux.rs b/tests/ui/parser/issues/issue-48508-aux.rs similarity index 100% rename from src/test/ui/parser/issues/issue-48508-aux.rs rename to tests/ui/parser/issues/issue-48508-aux.rs diff --git a/src/test/ui/parser/issues/issue-48508.rs b/tests/ui/parser/issues/issue-48508.rs similarity index 100% rename from src/test/ui/parser/issues/issue-48508.rs rename to tests/ui/parser/issues/issue-48508.rs diff --git a/src/test/ui/parser/issues/issue-48636.fixed b/tests/ui/parser/issues/issue-48636.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-48636.fixed rename to tests/ui/parser/issues/issue-48636.fixed diff --git a/src/test/ui/parser/issues/issue-48636.rs b/tests/ui/parser/issues/issue-48636.rs similarity index 100% rename from src/test/ui/parser/issues/issue-48636.rs rename to tests/ui/parser/issues/issue-48636.rs diff --git a/src/test/ui/parser/issues/issue-48636.stderr b/tests/ui/parser/issues/issue-48636.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-48636.stderr rename to tests/ui/parser/issues/issue-48636.stderr diff --git a/src/test/ui/parser/issues/issue-49040.rs b/tests/ui/parser/issues/issue-49040.rs similarity index 100% rename from src/test/ui/parser/issues/issue-49040.rs rename to tests/ui/parser/issues/issue-49040.rs diff --git a/src/test/ui/parser/issues/issue-49040.stderr b/tests/ui/parser/issues/issue-49040.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-49040.stderr rename to tests/ui/parser/issues/issue-49040.stderr diff --git a/src/test/ui/parser/issues/issue-51602.rs b/tests/ui/parser/issues/issue-51602.rs similarity index 100% rename from src/test/ui/parser/issues/issue-51602.rs rename to tests/ui/parser/issues/issue-51602.rs diff --git a/src/test/ui/parser/issues/issue-51602.stderr b/tests/ui/parser/issues/issue-51602.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-51602.stderr rename to tests/ui/parser/issues/issue-51602.stderr diff --git a/src/test/ui/parser/issues/issue-52496.rs b/tests/ui/parser/issues/issue-52496.rs similarity index 100% rename from src/test/ui/parser/issues/issue-52496.rs rename to tests/ui/parser/issues/issue-52496.rs diff --git a/src/test/ui/parser/issues/issue-52496.stderr b/tests/ui/parser/issues/issue-52496.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-52496.stderr rename to tests/ui/parser/issues/issue-52496.stderr diff --git a/src/test/ui/parser/issues/issue-54521-1.rs b/tests/ui/parser/issues/issue-54521-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-54521-1.rs rename to tests/ui/parser/issues/issue-54521-1.rs diff --git a/src/test/ui/parser/issues/issue-54521-2.fixed b/tests/ui/parser/issues/issue-54521-2.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-54521-2.fixed rename to tests/ui/parser/issues/issue-54521-2.fixed diff --git a/src/test/ui/parser/issues/issue-54521-2.rs b/tests/ui/parser/issues/issue-54521-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-54521-2.rs rename to tests/ui/parser/issues/issue-54521-2.rs diff --git a/src/test/ui/parser/issues/issue-54521-2.stderr b/tests/ui/parser/issues/issue-54521-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-54521-2.stderr rename to tests/ui/parser/issues/issue-54521-2.stderr diff --git a/src/test/ui/parser/issues/issue-54521-3.fixed b/tests/ui/parser/issues/issue-54521-3.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-54521-3.fixed rename to tests/ui/parser/issues/issue-54521-3.fixed diff --git a/src/test/ui/parser/issues/issue-54521-3.rs b/tests/ui/parser/issues/issue-54521-3.rs similarity index 100% rename from src/test/ui/parser/issues/issue-54521-3.rs rename to tests/ui/parser/issues/issue-54521-3.rs diff --git a/src/test/ui/parser/issues/issue-54521-3.stderr b/tests/ui/parser/issues/issue-54521-3.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-54521-3.stderr rename to tests/ui/parser/issues/issue-54521-3.stderr diff --git a/src/test/ui/parser/issues/issue-5544-a.rs b/tests/ui/parser/issues/issue-5544-a.rs similarity index 100% rename from src/test/ui/parser/issues/issue-5544-a.rs rename to tests/ui/parser/issues/issue-5544-a.rs diff --git a/src/test/ui/parser/issues/issue-5544-a.stderr b/tests/ui/parser/issues/issue-5544-a.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-5544-a.stderr rename to tests/ui/parser/issues/issue-5544-a.stderr diff --git a/src/test/ui/parser/issues/issue-5544-b.rs b/tests/ui/parser/issues/issue-5544-b.rs similarity index 100% rename from src/test/ui/parser/issues/issue-5544-b.rs rename to tests/ui/parser/issues/issue-5544-b.rs diff --git a/src/test/ui/parser/issues/issue-5544-b.stderr b/tests/ui/parser/issues/issue-5544-b.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-5544-b.stderr rename to tests/ui/parser/issues/issue-5544-b.stderr diff --git a/src/test/ui/parser/issues/issue-56031.rs b/tests/ui/parser/issues/issue-56031.rs similarity index 100% rename from src/test/ui/parser/issues/issue-56031.rs rename to tests/ui/parser/issues/issue-56031.rs diff --git a/src/test/ui/parser/issues/issue-56031.stderr b/tests/ui/parser/issues/issue-56031.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-56031.stderr rename to tests/ui/parser/issues/issue-56031.stderr diff --git a/src/test/ui/parser/issues/issue-57198.rs b/tests/ui/parser/issues/issue-57198.rs similarity index 100% rename from src/test/ui/parser/issues/issue-57198.rs rename to tests/ui/parser/issues/issue-57198.rs diff --git a/src/test/ui/parser/issues/issue-57198.stderr b/tests/ui/parser/issues/issue-57198.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-57198.stderr rename to tests/ui/parser/issues/issue-57198.stderr diff --git a/src/test/ui/parser/issues/issue-57684.fixed b/tests/ui/parser/issues/issue-57684.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-57684.fixed rename to tests/ui/parser/issues/issue-57684.fixed diff --git a/src/test/ui/parser/issues/issue-57684.rs b/tests/ui/parser/issues/issue-57684.rs similarity index 100% rename from src/test/ui/parser/issues/issue-57684.rs rename to tests/ui/parser/issues/issue-57684.rs diff --git a/src/test/ui/parser/issues/issue-57684.stderr b/tests/ui/parser/issues/issue-57684.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-57684.stderr rename to tests/ui/parser/issues/issue-57684.stderr diff --git a/src/test/ui/parser/issues/issue-57819.fixed b/tests/ui/parser/issues/issue-57819.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-57819.fixed rename to tests/ui/parser/issues/issue-57819.fixed diff --git a/src/test/ui/parser/issues/issue-57819.rs b/tests/ui/parser/issues/issue-57819.rs similarity index 100% rename from src/test/ui/parser/issues/issue-57819.rs rename to tests/ui/parser/issues/issue-57819.rs diff --git a/src/test/ui/parser/issues/issue-57819.stderr b/tests/ui/parser/issues/issue-57819.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-57819.stderr rename to tests/ui/parser/issues/issue-57819.stderr diff --git a/src/test/ui/parser/issues/issue-5806.rs b/tests/ui/parser/issues/issue-5806.rs similarity index 100% rename from src/test/ui/parser/issues/issue-5806.rs rename to tests/ui/parser/issues/issue-5806.rs diff --git a/src/test/ui/parser/issues/issue-5806.stderr b/tests/ui/parser/issues/issue-5806.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-5806.stderr rename to tests/ui/parser/issues/issue-5806.stderr diff --git a/src/test/ui/parser/issues/issue-58094-missing-right-square-bracket.rs b/tests/ui/parser/issues/issue-58094-missing-right-square-bracket.rs similarity index 100% rename from src/test/ui/parser/issues/issue-58094-missing-right-square-bracket.rs rename to tests/ui/parser/issues/issue-58094-missing-right-square-bracket.rs diff --git a/src/test/ui/parser/issues/issue-58094-missing-right-square-bracket.stderr b/tests/ui/parser/issues/issue-58094-missing-right-square-bracket.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-58094-missing-right-square-bracket.stderr rename to tests/ui/parser/issues/issue-58094-missing-right-square-bracket.stderr diff --git a/src/test/ui/parser/issues/issue-58856-1.rs b/tests/ui/parser/issues/issue-58856-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-58856-1.rs rename to tests/ui/parser/issues/issue-58856-1.rs diff --git a/src/test/ui/parser/issues/issue-58856-1.stderr b/tests/ui/parser/issues/issue-58856-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-58856-1.stderr rename to tests/ui/parser/issues/issue-58856-1.stderr diff --git a/src/test/ui/parser/issues/issue-58856-2.rs b/tests/ui/parser/issues/issue-58856-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-58856-2.rs rename to tests/ui/parser/issues/issue-58856-2.rs diff --git a/src/test/ui/parser/issues/issue-58856-2.stderr b/tests/ui/parser/issues/issue-58856-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-58856-2.stderr rename to tests/ui/parser/issues/issue-58856-2.stderr diff --git a/src/test/ui/parser/issues/issue-59418.rs b/tests/ui/parser/issues/issue-59418.rs similarity index 100% rename from src/test/ui/parser/issues/issue-59418.rs rename to tests/ui/parser/issues/issue-59418.rs diff --git a/src/test/ui/parser/issues/issue-59418.stderr b/tests/ui/parser/issues/issue-59418.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-59418.stderr rename to tests/ui/parser/issues/issue-59418.stderr diff --git a/src/test/ui/parser/issues/issue-60075.rs b/tests/ui/parser/issues/issue-60075.rs similarity index 100% rename from src/test/ui/parser/issues/issue-60075.rs rename to tests/ui/parser/issues/issue-60075.rs diff --git a/src/test/ui/parser/issues/issue-60075.stderr b/tests/ui/parser/issues/issue-60075.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-60075.stderr rename to tests/ui/parser/issues/issue-60075.stderr diff --git a/src/test/ui/parser/issues/issue-62524.rs b/tests/ui/parser/issues/issue-62524.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62524.rs rename to tests/ui/parser/issues/issue-62524.rs diff --git a/src/test/ui/parser/issues/issue-62524.stderr b/tests/ui/parser/issues/issue-62524.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62524.stderr rename to tests/ui/parser/issues/issue-62524.stderr diff --git a/src/test/ui/parser/issues/issue-62546.rs b/tests/ui/parser/issues/issue-62546.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62546.rs rename to tests/ui/parser/issues/issue-62546.rs diff --git a/src/test/ui/parser/issues/issue-62546.stderr b/tests/ui/parser/issues/issue-62546.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62546.stderr rename to tests/ui/parser/issues/issue-62546.stderr diff --git a/src/test/ui/parser/issues/issue-62554.rs b/tests/ui/parser/issues/issue-62554.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62554.rs rename to tests/ui/parser/issues/issue-62554.rs diff --git a/src/test/ui/parser/issues/issue-62554.stderr b/tests/ui/parser/issues/issue-62554.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62554.stderr rename to tests/ui/parser/issues/issue-62554.stderr diff --git a/src/test/ui/parser/issues/issue-62660.rs b/tests/ui/parser/issues/issue-62660.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62660.rs rename to tests/ui/parser/issues/issue-62660.rs diff --git a/src/test/ui/parser/issues/issue-62660.stderr b/tests/ui/parser/issues/issue-62660.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62660.stderr rename to tests/ui/parser/issues/issue-62660.stderr diff --git a/src/test/ui/parser/issues/issue-62881.rs b/tests/ui/parser/issues/issue-62881.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62881.rs rename to tests/ui/parser/issues/issue-62881.rs diff --git a/src/test/ui/parser/issues/issue-62881.stderr b/tests/ui/parser/issues/issue-62881.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62881.stderr rename to tests/ui/parser/issues/issue-62881.stderr diff --git a/src/test/ui/parser/issues/issue-62894.rs b/tests/ui/parser/issues/issue-62894.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62894.rs rename to tests/ui/parser/issues/issue-62894.rs diff --git a/src/test/ui/parser/issues/issue-62894.stderr b/tests/ui/parser/issues/issue-62894.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62894.stderr rename to tests/ui/parser/issues/issue-62894.stderr diff --git a/src/test/ui/parser/issues/issue-62895.rs b/tests/ui/parser/issues/issue-62895.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62895.rs rename to tests/ui/parser/issues/issue-62895.rs diff --git a/src/test/ui/parser/issues/issue-62895.stderr b/tests/ui/parser/issues/issue-62895.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62895.stderr rename to tests/ui/parser/issues/issue-62895.stderr diff --git a/src/test/ui/parser/issues/issue-62913.rs b/tests/ui/parser/issues/issue-62913.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62913.rs rename to tests/ui/parser/issues/issue-62913.rs diff --git a/src/test/ui/parser/issues/issue-62913.stderr b/tests/ui/parser/issues/issue-62913.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62913.stderr rename to tests/ui/parser/issues/issue-62913.stderr diff --git a/src/test/ui/parser/issues/issue-62973.rs b/tests/ui/parser/issues/issue-62973.rs similarity index 100% rename from src/test/ui/parser/issues/issue-62973.rs rename to tests/ui/parser/issues/issue-62973.rs diff --git a/src/test/ui/parser/issues/issue-62973.stderr b/tests/ui/parser/issues/issue-62973.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-62973.stderr rename to tests/ui/parser/issues/issue-62973.stderr diff --git a/src/test/ui/parser/issues/issue-63115-range-pat-interpolated.rs b/tests/ui/parser/issues/issue-63115-range-pat-interpolated.rs similarity index 100% rename from src/test/ui/parser/issues/issue-63115-range-pat-interpolated.rs rename to tests/ui/parser/issues/issue-63115-range-pat-interpolated.rs diff --git a/src/test/ui/parser/issues/issue-63116.rs b/tests/ui/parser/issues/issue-63116.rs similarity index 100% rename from src/test/ui/parser/issues/issue-63116.rs rename to tests/ui/parser/issues/issue-63116.rs diff --git a/src/test/ui/parser/issues/issue-63116.stderr b/tests/ui/parser/issues/issue-63116.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-63116.stderr rename to tests/ui/parser/issues/issue-63116.stderr diff --git a/src/test/ui/parser/issues/issue-63135.rs b/tests/ui/parser/issues/issue-63135.rs similarity index 100% rename from src/test/ui/parser/issues/issue-63135.rs rename to tests/ui/parser/issues/issue-63135.rs diff --git a/src/test/ui/parser/issues/issue-63135.stderr b/tests/ui/parser/issues/issue-63135.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-63135.stderr rename to tests/ui/parser/issues/issue-63135.stderr diff --git a/src/test/ui/parser/issues/issue-64732.rs b/tests/ui/parser/issues/issue-64732.rs similarity index 100% rename from src/test/ui/parser/issues/issue-64732.rs rename to tests/ui/parser/issues/issue-64732.rs diff --git a/src/test/ui/parser/issues/issue-64732.stderr b/tests/ui/parser/issues/issue-64732.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-64732.stderr rename to tests/ui/parser/issues/issue-64732.stderr diff --git a/src/test/ui/parser/issues/issue-65041-empty-vis-matcher-in-enum.rs b/tests/ui/parser/issues/issue-65041-empty-vis-matcher-in-enum.rs similarity index 100% rename from src/test/ui/parser/issues/issue-65041-empty-vis-matcher-in-enum.rs rename to tests/ui/parser/issues/issue-65041-empty-vis-matcher-in-enum.rs diff --git a/src/test/ui/parser/issues/issue-65041-empty-vis-matcher-in-trait.rs b/tests/ui/parser/issues/issue-65041-empty-vis-matcher-in-trait.rs similarity index 100% rename from src/test/ui/parser/issues/issue-65041-empty-vis-matcher-in-trait.rs rename to tests/ui/parser/issues/issue-65041-empty-vis-matcher-in-trait.rs diff --git a/src/test/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.rs b/tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.rs similarity index 100% rename from src/test/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.rs rename to tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.rs diff --git a/src/test/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr b/tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr rename to tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr diff --git a/src/test/ui/parser/issues/issue-65257-invalid-var-decl-recovery.rs b/tests/ui/parser/issues/issue-65257-invalid-var-decl-recovery.rs similarity index 100% rename from src/test/ui/parser/issues/issue-65257-invalid-var-decl-recovery.rs rename to tests/ui/parser/issues/issue-65257-invalid-var-decl-recovery.rs diff --git a/src/test/ui/parser/issues/issue-65257-invalid-var-decl-recovery.stderr b/tests/ui/parser/issues/issue-65257-invalid-var-decl-recovery.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-65257-invalid-var-decl-recovery.stderr rename to tests/ui/parser/issues/issue-65257-invalid-var-decl-recovery.stderr diff --git a/src/test/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs b/tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs similarity index 100% rename from src/test/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs rename to tests/ui/parser/issues/issue-65846-rollback-gating-failing-matcher.rs diff --git a/src/test/ui/parser/issues/issue-6610.rs b/tests/ui/parser/issues/issue-6610.rs similarity index 100% rename from src/test/ui/parser/issues/issue-6610.rs rename to tests/ui/parser/issues/issue-6610.rs diff --git a/src/test/ui/parser/issues/issue-6610.stderr b/tests/ui/parser/issues/issue-6610.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-6610.stderr rename to tests/ui/parser/issues/issue-6610.stderr diff --git a/src/test/ui/parser/issues/issue-66357-unexpected-unreachable.rs b/tests/ui/parser/issues/issue-66357-unexpected-unreachable.rs similarity index 100% rename from src/test/ui/parser/issues/issue-66357-unexpected-unreachable.rs rename to tests/ui/parser/issues/issue-66357-unexpected-unreachable.rs diff --git a/src/test/ui/parser/issues/issue-66357-unexpected-unreachable.stderr b/tests/ui/parser/issues/issue-66357-unexpected-unreachable.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-66357-unexpected-unreachable.stderr rename to tests/ui/parser/issues/issue-66357-unexpected-unreachable.stderr diff --git a/src/test/ui/parser/issues/issue-66473.rs b/tests/ui/parser/issues/issue-66473.rs similarity index 100% rename from src/test/ui/parser/issues/issue-66473.rs rename to tests/ui/parser/issues/issue-66473.rs diff --git a/src/test/ui/parser/issues/issue-66473.stderr b/tests/ui/parser/issues/issue-66473.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-66473.stderr rename to tests/ui/parser/issues/issue-66473.stderr diff --git a/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.fixed b/tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.fixed rename to tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.fixed diff --git a/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.rs b/tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.rs similarity index 100% rename from src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.rs rename to tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.rs diff --git a/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr b/tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr rename to tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr diff --git a/src/test/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.rs b/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.rs similarity index 100% rename from src/test/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.rs rename to tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.rs diff --git a/src/test/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr b/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr rename to tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.stderr diff --git a/src/test/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.rs b/tests/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.rs similarity index 100% rename from src/test/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.rs rename to tests/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.rs diff --git a/src/test/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.stderr b/tests/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.stderr rename to tests/ui/parser/issues/issue-68000-unicode-ident-after-missing-comma.stderr diff --git a/src/test/ui/parser/issues/issue-68629.rs b/tests/ui/parser/issues/issue-68629.rs similarity index 100% rename from src/test/ui/parser/issues/issue-68629.rs rename to tests/ui/parser/issues/issue-68629.rs diff --git a/src/test/ui/parser/issues/issue-68629.stderr b/tests/ui/parser/issues/issue-68629.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-68629.stderr rename to tests/ui/parser/issues/issue-68629.stderr diff --git a/src/test/ui/parser/issues/issue-68730.rs b/tests/ui/parser/issues/issue-68730.rs similarity index 100% rename from src/test/ui/parser/issues/issue-68730.rs rename to tests/ui/parser/issues/issue-68730.rs diff --git a/src/test/ui/parser/issues/issue-68730.stderr b/tests/ui/parser/issues/issue-68730.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-68730.stderr rename to tests/ui/parser/issues/issue-68730.stderr diff --git a/src/test/ui/parser/issues/issue-68788-in-trait-item-propagation.rs b/tests/ui/parser/issues/issue-68788-in-trait-item-propagation.rs similarity index 100% rename from src/test/ui/parser/issues/issue-68788-in-trait-item-propagation.rs rename to tests/ui/parser/issues/issue-68788-in-trait-item-propagation.rs diff --git a/src/test/ui/parser/issues/issue-68890-2.rs b/tests/ui/parser/issues/issue-68890-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-68890-2.rs rename to tests/ui/parser/issues/issue-68890-2.rs diff --git a/src/test/ui/parser/issues/issue-68890-2.stderr b/tests/ui/parser/issues/issue-68890-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-68890-2.stderr rename to tests/ui/parser/issues/issue-68890-2.stderr diff --git a/src/test/ui/parser/issues/issue-68890.rs b/tests/ui/parser/issues/issue-68890.rs similarity index 100% rename from src/test/ui/parser/issues/issue-68890.rs rename to tests/ui/parser/issues/issue-68890.rs diff --git a/src/test/ui/parser/issues/issue-68890.stderr b/tests/ui/parser/issues/issue-68890.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-68890.stderr rename to tests/ui/parser/issues/issue-68890.stderr diff --git a/src/test/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs b/tests/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs rename to tests/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs diff --git a/src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.rs b/tests/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.rs rename to tests/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.rs diff --git a/src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.stderr b/tests/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.stderr rename to tests/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.stderr diff --git a/src/test/ui/parser/issues/issue-70388-without-witness.fixed b/tests/ui/parser/issues/issue-70388-without-witness.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-70388-without-witness.fixed rename to tests/ui/parser/issues/issue-70388-without-witness.fixed diff --git a/src/test/ui/parser/issues/issue-70388-without-witness.rs b/tests/ui/parser/issues/issue-70388-without-witness.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70388-without-witness.rs rename to tests/ui/parser/issues/issue-70388-without-witness.rs diff --git a/src/test/ui/parser/issues/issue-70388-without-witness.stderr b/tests/ui/parser/issues/issue-70388-without-witness.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-70388-without-witness.stderr rename to tests/ui/parser/issues/issue-70388-without-witness.stderr diff --git a/src/test/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.rs b/tests/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.rs rename to tests/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.rs diff --git a/src/test/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.stderr b/tests/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.stderr rename to tests/ui/parser/issues/issue-70549-resolve-after-recovered-self-ctor.stderr diff --git a/src/test/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs b/tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs rename to tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.rs diff --git a/src/test/ui/parser/issues/issue-70552-ascription-in-parens-after-call.stderr b/tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-70552-ascription-in-parens-after-call.stderr rename to tests/ui/parser/issues/issue-70552-ascription-in-parens-after-call.stderr diff --git a/src/test/ui/parser/issues/issue-70583-block-is-empty-1.rs b/tests/ui/parser/issues/issue-70583-block-is-empty-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70583-block-is-empty-1.rs rename to tests/ui/parser/issues/issue-70583-block-is-empty-1.rs diff --git a/src/test/ui/parser/issues/issue-70583-block-is-empty-1.stderr b/tests/ui/parser/issues/issue-70583-block-is-empty-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-70583-block-is-empty-1.stderr rename to tests/ui/parser/issues/issue-70583-block-is-empty-1.stderr diff --git a/src/test/ui/parser/issues/issue-70583-block-is-empty-2.rs b/tests/ui/parser/issues/issue-70583-block-is-empty-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-70583-block-is-empty-2.rs rename to tests/ui/parser/issues/issue-70583-block-is-empty-2.rs diff --git a/src/test/ui/parser/issues/issue-70583-block-is-empty-2.stderr b/tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-70583-block-is-empty-2.stderr rename to tests/ui/parser/issues/issue-70583-block-is-empty-2.stderr diff --git a/src/test/ui/parser/issues/issue-7222.rs b/tests/ui/parser/issues/issue-7222.rs similarity index 100% rename from src/test/ui/parser/issues/issue-7222.rs rename to tests/ui/parser/issues/issue-7222.rs diff --git a/src/test/ui/parser/issues/issue-72253.rs b/tests/ui/parser/issues/issue-72253.rs similarity index 100% rename from src/test/ui/parser/issues/issue-72253.rs rename to tests/ui/parser/issues/issue-72253.rs diff --git a/src/test/ui/parser/issues/issue-72253.stderr b/tests/ui/parser/issues/issue-72253.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-72253.stderr rename to tests/ui/parser/issues/issue-72253.stderr diff --git a/src/test/ui/parser/issues/issue-72373.rs b/tests/ui/parser/issues/issue-72373.rs similarity index 100% rename from src/test/ui/parser/issues/issue-72373.rs rename to tests/ui/parser/issues/issue-72373.rs diff --git a/src/test/ui/parser/issues/issue-72373.stderr b/tests/ui/parser/issues/issue-72373.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-72373.stderr rename to tests/ui/parser/issues/issue-72373.stderr diff --git a/src/test/ui/parser/issues/issue-73568-lifetime-after-mut.rs b/tests/ui/parser/issues/issue-73568-lifetime-after-mut.rs similarity index 100% rename from src/test/ui/parser/issues/issue-73568-lifetime-after-mut.rs rename to tests/ui/parser/issues/issue-73568-lifetime-after-mut.rs diff --git a/src/test/ui/parser/issues/issue-73568-lifetime-after-mut.stderr b/tests/ui/parser/issues/issue-73568-lifetime-after-mut.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-73568-lifetime-after-mut.stderr rename to tests/ui/parser/issues/issue-73568-lifetime-after-mut.stderr diff --git a/src/test/ui/parser/issues/issue-75599.rs b/tests/ui/parser/issues/issue-75599.rs similarity index 100% rename from src/test/ui/parser/issues/issue-75599.rs rename to tests/ui/parser/issues/issue-75599.rs diff --git a/src/test/ui/parser/issues/issue-76437-async.rs b/tests/ui/parser/issues/issue-76437-async.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76437-async.rs rename to tests/ui/parser/issues/issue-76437-async.rs diff --git a/src/test/ui/parser/issues/issue-76437-async.stderr b/tests/ui/parser/issues/issue-76437-async.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76437-async.stderr rename to tests/ui/parser/issues/issue-76437-async.stderr diff --git a/src/test/ui/parser/issues/issue-76437-const-async-unsafe.rs b/tests/ui/parser/issues/issue-76437-const-async-unsafe.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76437-const-async-unsafe.rs rename to tests/ui/parser/issues/issue-76437-const-async-unsafe.rs diff --git a/src/test/ui/parser/issues/issue-76437-const-async-unsafe.stderr b/tests/ui/parser/issues/issue-76437-const-async-unsafe.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76437-const-async-unsafe.stderr rename to tests/ui/parser/issues/issue-76437-const-async-unsafe.stderr diff --git a/src/test/ui/parser/issues/issue-76437-const-async.rs b/tests/ui/parser/issues/issue-76437-const-async.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76437-const-async.rs rename to tests/ui/parser/issues/issue-76437-const-async.rs diff --git a/src/test/ui/parser/issues/issue-76437-const-async.stderr b/tests/ui/parser/issues/issue-76437-const-async.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76437-const-async.stderr rename to tests/ui/parser/issues/issue-76437-const-async.stderr diff --git a/src/test/ui/parser/issues/issue-76437-const.rs b/tests/ui/parser/issues/issue-76437-const.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76437-const.rs rename to tests/ui/parser/issues/issue-76437-const.rs diff --git a/src/test/ui/parser/issues/issue-76437-const.stderr b/tests/ui/parser/issues/issue-76437-const.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76437-const.stderr rename to tests/ui/parser/issues/issue-76437-const.stderr diff --git a/src/test/ui/parser/issues/issue-76437-pub-crate-unsafe.rs b/tests/ui/parser/issues/issue-76437-pub-crate-unsafe.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76437-pub-crate-unsafe.rs rename to tests/ui/parser/issues/issue-76437-pub-crate-unsafe.rs diff --git a/src/test/ui/parser/issues/issue-76437-pub-crate-unsafe.stderr b/tests/ui/parser/issues/issue-76437-pub-crate-unsafe.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76437-pub-crate-unsafe.stderr rename to tests/ui/parser/issues/issue-76437-pub-crate-unsafe.stderr diff --git a/src/test/ui/parser/issues/issue-76437-unsafe.rs b/tests/ui/parser/issues/issue-76437-unsafe.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76437-unsafe.rs rename to tests/ui/parser/issues/issue-76437-unsafe.rs diff --git a/src/test/ui/parser/issues/issue-76437-unsafe.stderr b/tests/ui/parser/issues/issue-76437-unsafe.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76437-unsafe.stderr rename to tests/ui/parser/issues/issue-76437-unsafe.stderr diff --git a/src/test/ui/parser/issues/issue-76597.fixed b/tests/ui/parser/issues/issue-76597.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-76597.fixed rename to tests/ui/parser/issues/issue-76597.fixed diff --git a/src/test/ui/parser/issues/issue-76597.rs b/tests/ui/parser/issues/issue-76597.rs similarity index 100% rename from src/test/ui/parser/issues/issue-76597.rs rename to tests/ui/parser/issues/issue-76597.rs diff --git a/src/test/ui/parser/issues/issue-76597.stderr b/tests/ui/parser/issues/issue-76597.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-76597.stderr rename to tests/ui/parser/issues/issue-76597.stderr diff --git a/src/test/ui/parser/issues/issue-7970b.rs b/tests/ui/parser/issues/issue-7970b.rs similarity index 100% rename from src/test/ui/parser/issues/issue-7970b.rs rename to tests/ui/parser/issues/issue-7970b.rs diff --git a/src/test/ui/parser/issues/issue-7970b.stderr b/tests/ui/parser/issues/issue-7970b.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-7970b.stderr rename to tests/ui/parser/issues/issue-7970b.stderr diff --git a/src/test/ui/parser/issues/issue-81806.rs b/tests/ui/parser/issues/issue-81806.rs similarity index 100% rename from src/test/ui/parser/issues/issue-81806.rs rename to tests/ui/parser/issues/issue-81806.rs diff --git a/src/test/ui/parser/issues/issue-81806.stderr b/tests/ui/parser/issues/issue-81806.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-81806.stderr rename to tests/ui/parser/issues/issue-81806.stderr diff --git a/src/test/ui/parser/issues/issue-83639.rs b/tests/ui/parser/issues/issue-83639.rs similarity index 100% rename from src/test/ui/parser/issues/issue-83639.rs rename to tests/ui/parser/issues/issue-83639.rs diff --git a/src/test/ui/parser/issues/issue-83639.stderr b/tests/ui/parser/issues/issue-83639.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-83639.stderr rename to tests/ui/parser/issues/issue-83639.stderr diff --git a/src/test/ui/parser/issues/issue-84104.rs b/tests/ui/parser/issues/issue-84104.rs similarity index 100% rename from src/test/ui/parser/issues/issue-84104.rs rename to tests/ui/parser/issues/issue-84104.rs diff --git a/src/test/ui/parser/issues/issue-84104.stderr b/tests/ui/parser/issues/issue-84104.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-84104.stderr rename to tests/ui/parser/issues/issue-84104.stderr diff --git a/src/test/ui/parser/issues/issue-84117.rs b/tests/ui/parser/issues/issue-84117.rs similarity index 100% rename from src/test/ui/parser/issues/issue-84117.rs rename to tests/ui/parser/issues/issue-84117.rs diff --git a/src/test/ui/parser/issues/issue-84117.stderr b/tests/ui/parser/issues/issue-84117.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-84117.stderr rename to tests/ui/parser/issues/issue-84117.stderr diff --git a/src/test/ui/parser/issues/issue-84148-1.rs b/tests/ui/parser/issues/issue-84148-1.rs similarity index 100% rename from src/test/ui/parser/issues/issue-84148-1.rs rename to tests/ui/parser/issues/issue-84148-1.rs diff --git a/src/test/ui/parser/issues/issue-84148-1.stderr b/tests/ui/parser/issues/issue-84148-1.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-84148-1.stderr rename to tests/ui/parser/issues/issue-84148-1.stderr diff --git a/src/test/ui/parser/issues/issue-84148-2.rs b/tests/ui/parser/issues/issue-84148-2.rs similarity index 100% rename from src/test/ui/parser/issues/issue-84148-2.rs rename to tests/ui/parser/issues/issue-84148-2.rs diff --git a/src/test/ui/parser/issues/issue-84148-2.stderr b/tests/ui/parser/issues/issue-84148-2.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-84148-2.stderr rename to tests/ui/parser/issues/issue-84148-2.stderr diff --git a/src/test/ui/parser/issues/issue-8537.rs b/tests/ui/parser/issues/issue-8537.rs similarity index 100% rename from src/test/ui/parser/issues/issue-8537.rs rename to tests/ui/parser/issues/issue-8537.rs diff --git a/src/test/ui/parser/issues/issue-8537.stderr b/tests/ui/parser/issues/issue-8537.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-8537.stderr rename to tests/ui/parser/issues/issue-8537.stderr diff --git a/src/test/ui/parser/issues/issue-86895.rs b/tests/ui/parser/issues/issue-86895.rs similarity index 100% rename from src/test/ui/parser/issues/issue-86895.rs rename to tests/ui/parser/issues/issue-86895.rs diff --git a/src/test/ui/parser/issues/issue-86895.stderr b/tests/ui/parser/issues/issue-86895.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-86895.stderr rename to tests/ui/parser/issues/issue-86895.stderr diff --git a/src/test/ui/parser/issues/issue-87086-colon-path-sep.rs b/tests/ui/parser/issues/issue-87086-colon-path-sep.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87086-colon-path-sep.rs rename to tests/ui/parser/issues/issue-87086-colon-path-sep.rs diff --git a/src/test/ui/parser/issues/issue-87086-colon-path-sep.stderr b/tests/ui/parser/issues/issue-87086-colon-path-sep.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87086-colon-path-sep.stderr rename to tests/ui/parser/issues/issue-87086-colon-path-sep.stderr diff --git a/src/test/ui/parser/issues/issue-87197-missing-semicolon.fixed b/tests/ui/parser/issues/issue-87197-missing-semicolon.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-87197-missing-semicolon.fixed rename to tests/ui/parser/issues/issue-87197-missing-semicolon.fixed diff --git a/src/test/ui/parser/issues/issue-87197-missing-semicolon.rs b/tests/ui/parser/issues/issue-87197-missing-semicolon.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87197-missing-semicolon.rs rename to tests/ui/parser/issues/issue-87197-missing-semicolon.rs diff --git a/src/test/ui/parser/issues/issue-87197-missing-semicolon.stderr b/tests/ui/parser/issues/issue-87197-missing-semicolon.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87197-missing-semicolon.stderr rename to tests/ui/parser/issues/issue-87197-missing-semicolon.stderr diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/const-async-const.rs b/tests/ui/parser/issues/issue-87217-keyword-order/const-async-const.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/const-async-const.rs rename to tests/ui/parser/issues/issue-87217-keyword-order/const-async-const.rs diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/const-async-const.stderr b/tests/ui/parser/issues/issue-87217-keyword-order/const-async-const.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/const-async-const.stderr rename to tests/ui/parser/issues/issue-87217-keyword-order/const-async-const.stderr diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.rs b/tests/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.rs rename to tests/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.rs diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.stderr b/tests/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.stderr rename to tests/ui/parser/issues/issue-87217-keyword-order/several-kw-jump.stderr diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/wrong-async.rs b/tests/ui/parser/issues/issue-87217-keyword-order/wrong-async.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/wrong-async.rs rename to tests/ui/parser/issues/issue-87217-keyword-order/wrong-async.rs diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/wrong-async.stderr b/tests/ui/parser/issues/issue-87217-keyword-order/wrong-async.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/wrong-async.stderr rename to tests/ui/parser/issues/issue-87217-keyword-order/wrong-async.stderr diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/wrong-const.rs b/tests/ui/parser/issues/issue-87217-keyword-order/wrong-const.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/wrong-const.rs rename to tests/ui/parser/issues/issue-87217-keyword-order/wrong-const.rs diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/wrong-const.stderr b/tests/ui/parser/issues/issue-87217-keyword-order/wrong-const.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/wrong-const.stderr rename to tests/ui/parser/issues/issue-87217-keyword-order/wrong-const.stderr diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.rs b/tests/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.rs rename to tests/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.rs diff --git a/src/test/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.stderr b/tests/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.stderr rename to tests/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.stderr diff --git a/src/test/ui/parser/issues/issue-87635.rs b/tests/ui/parser/issues/issue-87635.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87635.rs rename to tests/ui/parser/issues/issue-87635.rs diff --git a/src/test/ui/parser/issues/issue-87635.stderr b/tests/ui/parser/issues/issue-87635.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87635.stderr rename to tests/ui/parser/issues/issue-87635.stderr diff --git a/src/test/ui/parser/issues/issue-87812-path.rs b/tests/ui/parser/issues/issue-87812-path.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87812-path.rs rename to tests/ui/parser/issues/issue-87812-path.rs diff --git a/src/test/ui/parser/issues/issue-87812-path.stderr b/tests/ui/parser/issues/issue-87812-path.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87812-path.stderr rename to tests/ui/parser/issues/issue-87812-path.stderr diff --git a/src/test/ui/parser/issues/issue-87812.rs b/tests/ui/parser/issues/issue-87812.rs similarity index 100% rename from src/test/ui/parser/issues/issue-87812.rs rename to tests/ui/parser/issues/issue-87812.rs diff --git a/src/test/ui/parser/issues/issue-87812.stderr b/tests/ui/parser/issues/issue-87812.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-87812.stderr rename to tests/ui/parser/issues/issue-87812.stderr diff --git a/src/test/ui/parser/issues/issue-88276-unary-plus.fixed b/tests/ui/parser/issues/issue-88276-unary-plus.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-88276-unary-plus.fixed rename to tests/ui/parser/issues/issue-88276-unary-plus.fixed diff --git a/src/test/ui/parser/issues/issue-88276-unary-plus.rs b/tests/ui/parser/issues/issue-88276-unary-plus.rs similarity index 100% rename from src/test/ui/parser/issues/issue-88276-unary-plus.rs rename to tests/ui/parser/issues/issue-88276-unary-plus.rs diff --git a/src/test/ui/parser/issues/issue-88276-unary-plus.stderr b/tests/ui/parser/issues/issue-88276-unary-plus.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-88276-unary-plus.stderr rename to tests/ui/parser/issues/issue-88276-unary-plus.stderr diff --git a/src/test/ui/parser/issues/issue-88583-union-as-ident.rs b/tests/ui/parser/issues/issue-88583-union-as-ident.rs similarity index 100% rename from src/test/ui/parser/issues/issue-88583-union-as-ident.rs rename to tests/ui/parser/issues/issue-88583-union-as-ident.rs diff --git a/src/test/ui/parser/issues/issue-88770.rs b/tests/ui/parser/issues/issue-88770.rs similarity index 100% rename from src/test/ui/parser/issues/issue-88770.rs rename to tests/ui/parser/issues/issue-88770.rs diff --git a/src/test/ui/parser/issues/issue-88770.stderr b/tests/ui/parser/issues/issue-88770.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-88770.stderr rename to tests/ui/parser/issues/issue-88770.stderr diff --git a/src/test/ui/parser/issues/issue-88818.rs b/tests/ui/parser/issues/issue-88818.rs similarity index 100% rename from src/test/ui/parser/issues/issue-88818.rs rename to tests/ui/parser/issues/issue-88818.rs diff --git a/src/test/ui/parser/issues/issue-88818.stderr b/tests/ui/parser/issues/issue-88818.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-88818.stderr rename to tests/ui/parser/issues/issue-88818.stderr diff --git a/src/test/ui/parser/issues/issue-89388.rs b/tests/ui/parser/issues/issue-89388.rs similarity index 100% rename from src/test/ui/parser/issues/issue-89388.rs rename to tests/ui/parser/issues/issue-89388.rs diff --git a/src/test/ui/parser/issues/issue-89388.stderr b/tests/ui/parser/issues/issue-89388.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-89388.stderr rename to tests/ui/parser/issues/issue-89388.stderr diff --git a/src/test/ui/parser/issues/issue-89396.fixed b/tests/ui/parser/issues/issue-89396.fixed similarity index 100% rename from src/test/ui/parser/issues/issue-89396.fixed rename to tests/ui/parser/issues/issue-89396.fixed diff --git a/src/test/ui/parser/issues/issue-89396.rs b/tests/ui/parser/issues/issue-89396.rs similarity index 100% rename from src/test/ui/parser/issues/issue-89396.rs rename to tests/ui/parser/issues/issue-89396.rs diff --git a/src/test/ui/parser/issues/issue-89396.stderr b/tests/ui/parser/issues/issue-89396.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-89396.stderr rename to tests/ui/parser/issues/issue-89396.stderr diff --git a/src/test/ui/parser/issues/issue-89574.rs b/tests/ui/parser/issues/issue-89574.rs similarity index 100% rename from src/test/ui/parser/issues/issue-89574.rs rename to tests/ui/parser/issues/issue-89574.rs diff --git a/src/test/ui/parser/issues/issue-89574.stderr b/tests/ui/parser/issues/issue-89574.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-89574.stderr rename to tests/ui/parser/issues/issue-89574.stderr diff --git a/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.rs b/tests/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.rs similarity index 100% rename from src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.rs rename to tests/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.rs diff --git a/src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr b/tests/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr rename to tests/ui/parser/issues/issue-89971-outer-attr-following-inner-attr-ice.stderr diff --git a/src/test/ui/parser/issues/issue-90993.rs b/tests/ui/parser/issues/issue-90993.rs similarity index 100% rename from src/test/ui/parser/issues/issue-90993.rs rename to tests/ui/parser/issues/issue-90993.rs diff --git a/src/test/ui/parser/issues/issue-90993.stderr b/tests/ui/parser/issues/issue-90993.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-90993.stderr rename to tests/ui/parser/issues/issue-90993.stderr diff --git a/src/test/ui/parser/issues/issue-91461.rs b/tests/ui/parser/issues/issue-91461.rs similarity index 100% rename from src/test/ui/parser/issues/issue-91461.rs rename to tests/ui/parser/issues/issue-91461.rs diff --git a/src/test/ui/parser/issues/issue-91461.stderr b/tests/ui/parser/issues/issue-91461.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-91461.stderr rename to tests/ui/parser/issues/issue-91461.stderr diff --git a/src/test/ui/parser/issues/issue-93282.rs b/tests/ui/parser/issues/issue-93282.rs similarity index 100% rename from src/test/ui/parser/issues/issue-93282.rs rename to tests/ui/parser/issues/issue-93282.rs diff --git a/src/test/ui/parser/issues/issue-93282.stderr b/tests/ui/parser/issues/issue-93282.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-93282.stderr rename to tests/ui/parser/issues/issue-93282.stderr diff --git a/src/test/ui/parser/issues/issue-93867.rs b/tests/ui/parser/issues/issue-93867.rs similarity index 100% rename from src/test/ui/parser/issues/issue-93867.rs rename to tests/ui/parser/issues/issue-93867.rs diff --git a/src/test/ui/parser/issues/issue-93867.stderr b/tests/ui/parser/issues/issue-93867.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-93867.stderr rename to tests/ui/parser/issues/issue-93867.stderr diff --git a/src/test/ui/parser/issues/issue-94340.rs b/tests/ui/parser/issues/issue-94340.rs similarity index 100% rename from src/test/ui/parser/issues/issue-94340.rs rename to tests/ui/parser/issues/issue-94340.rs diff --git a/src/test/ui/parser/issues/issue-94340.stderr b/tests/ui/parser/issues/issue-94340.stderr similarity index 100% rename from src/test/ui/parser/issues/issue-94340.stderr rename to tests/ui/parser/issues/issue-94340.stderr diff --git a/src/test/ui/parser/item-free-const-no-body-semantic-fail.rs b/tests/ui/parser/item-free-const-no-body-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/item-free-const-no-body-semantic-fail.rs rename to tests/ui/parser/item-free-const-no-body-semantic-fail.rs diff --git a/src/test/ui/parser/item-free-const-no-body-semantic-fail.stderr b/tests/ui/parser/item-free-const-no-body-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/item-free-const-no-body-semantic-fail.stderr rename to tests/ui/parser/item-free-const-no-body-semantic-fail.stderr diff --git a/src/test/ui/parser/item-free-const-no-body-syntactic-pass.rs b/tests/ui/parser/item-free-const-no-body-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/item-free-const-no-body-syntactic-pass.rs rename to tests/ui/parser/item-free-const-no-body-syntactic-pass.rs diff --git a/src/test/ui/parser/item-free-static-no-body-semantic-fail.rs b/tests/ui/parser/item-free-static-no-body-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/item-free-static-no-body-semantic-fail.rs rename to tests/ui/parser/item-free-static-no-body-semantic-fail.rs diff --git a/src/test/ui/parser/item-free-static-no-body-semantic-fail.stderr b/tests/ui/parser/item-free-static-no-body-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/item-free-static-no-body-semantic-fail.stderr rename to tests/ui/parser/item-free-static-no-body-semantic-fail.stderr diff --git a/src/test/ui/parser/item-free-static-no-body-syntactic-pass.rs b/tests/ui/parser/item-free-static-no-body-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/item-free-static-no-body-syntactic-pass.rs rename to tests/ui/parser/item-free-static-no-body-syntactic-pass.rs diff --git a/src/test/ui/parser/item-free-type-bounds-semantic-fail.rs b/tests/ui/parser/item-free-type-bounds-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/item-free-type-bounds-semantic-fail.rs rename to tests/ui/parser/item-free-type-bounds-semantic-fail.rs diff --git a/src/test/ui/parser/item-free-type-bounds-semantic-fail.stderr b/tests/ui/parser/item-free-type-bounds-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/item-free-type-bounds-semantic-fail.stderr rename to tests/ui/parser/item-free-type-bounds-semantic-fail.stderr diff --git a/src/test/ui/parser/item-free-type-bounds-syntactic-pass.rs b/tests/ui/parser/item-free-type-bounds-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/item-free-type-bounds-syntactic-pass.rs rename to tests/ui/parser/item-free-type-bounds-syntactic-pass.rs diff --git a/src/test/ui/parser/item-kw-case-mismatch.fixed b/tests/ui/parser/item-kw-case-mismatch.fixed similarity index 100% rename from src/test/ui/parser/item-kw-case-mismatch.fixed rename to tests/ui/parser/item-kw-case-mismatch.fixed diff --git a/src/test/ui/parser/item-kw-case-mismatch.rs b/tests/ui/parser/item-kw-case-mismatch.rs similarity index 100% rename from src/test/ui/parser/item-kw-case-mismatch.rs rename to tests/ui/parser/item-kw-case-mismatch.rs diff --git a/src/test/ui/parser/item-kw-case-mismatch.stderr b/tests/ui/parser/item-kw-case-mismatch.stderr similarity index 100% rename from src/test/ui/parser/item-kw-case-mismatch.stderr rename to tests/ui/parser/item-kw-case-mismatch.stderr diff --git a/src/test/ui/parser/item-needs-block.rs b/tests/ui/parser/item-needs-block.rs similarity index 100% rename from src/test/ui/parser/item-needs-block.rs rename to tests/ui/parser/item-needs-block.rs diff --git a/src/test/ui/parser/item-needs-block.stderr b/tests/ui/parser/item-needs-block.stderr similarity index 100% rename from src/test/ui/parser/item-needs-block.stderr rename to tests/ui/parser/item-needs-block.stderr diff --git a/src/test/ui/parser/keyword-abstract.rs b/tests/ui/parser/keyword-abstract.rs similarity index 100% rename from src/test/ui/parser/keyword-abstract.rs rename to tests/ui/parser/keyword-abstract.rs diff --git a/src/test/ui/parser/keyword-abstract.stderr b/tests/ui/parser/keyword-abstract.stderr similarity index 100% rename from src/test/ui/parser/keyword-abstract.stderr rename to tests/ui/parser/keyword-abstract.stderr diff --git a/src/test/ui/parser/keyword-as-as-identifier.rs b/tests/ui/parser/keyword-as-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-as-as-identifier.rs rename to tests/ui/parser/keyword-as-as-identifier.rs diff --git a/src/test/ui/parser/keyword-as-as-identifier.stderr b/tests/ui/parser/keyword-as-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-as-as-identifier.stderr rename to tests/ui/parser/keyword-as-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-box-as-identifier.rs b/tests/ui/parser/keyword-box-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-box-as-identifier.rs rename to tests/ui/parser/keyword-box-as-identifier.rs diff --git a/src/test/ui/parser/keyword-box-as-identifier.stderr b/tests/ui/parser/keyword-box-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-box-as-identifier.stderr rename to tests/ui/parser/keyword-box-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-break-as-identifier.rs b/tests/ui/parser/keyword-break-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-break-as-identifier.rs rename to tests/ui/parser/keyword-break-as-identifier.rs diff --git a/src/test/ui/parser/keyword-break-as-identifier.stderr b/tests/ui/parser/keyword-break-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-break-as-identifier.stderr rename to tests/ui/parser/keyword-break-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-const-as-identifier.rs b/tests/ui/parser/keyword-const-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-const-as-identifier.rs rename to tests/ui/parser/keyword-const-as-identifier.rs diff --git a/src/test/ui/parser/keyword-const-as-identifier.stderr b/tests/ui/parser/keyword-const-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-const-as-identifier.stderr rename to tests/ui/parser/keyword-const-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-continue-as-identifier.rs b/tests/ui/parser/keyword-continue-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-continue-as-identifier.rs rename to tests/ui/parser/keyword-continue-as-identifier.rs diff --git a/src/test/ui/parser/keyword-continue-as-identifier.stderr b/tests/ui/parser/keyword-continue-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-continue-as-identifier.stderr rename to tests/ui/parser/keyword-continue-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-else-as-identifier.rs b/tests/ui/parser/keyword-else-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-else-as-identifier.rs rename to tests/ui/parser/keyword-else-as-identifier.rs diff --git a/src/test/ui/parser/keyword-else-as-identifier.stderr b/tests/ui/parser/keyword-else-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-else-as-identifier.stderr rename to tests/ui/parser/keyword-else-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-enum-as-identifier.rs b/tests/ui/parser/keyword-enum-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-enum-as-identifier.rs rename to tests/ui/parser/keyword-enum-as-identifier.rs diff --git a/src/test/ui/parser/keyword-enum-as-identifier.stderr b/tests/ui/parser/keyword-enum-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-enum-as-identifier.stderr rename to tests/ui/parser/keyword-enum-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-final.rs b/tests/ui/parser/keyword-final.rs similarity index 100% rename from src/test/ui/parser/keyword-final.rs rename to tests/ui/parser/keyword-final.rs diff --git a/src/test/ui/parser/keyword-final.stderr b/tests/ui/parser/keyword-final.stderr similarity index 100% rename from src/test/ui/parser/keyword-final.stderr rename to tests/ui/parser/keyword-final.stderr diff --git a/src/test/ui/parser/keyword-fn-as-identifier.rs b/tests/ui/parser/keyword-fn-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-fn-as-identifier.rs rename to tests/ui/parser/keyword-fn-as-identifier.rs diff --git a/src/test/ui/parser/keyword-fn-as-identifier.stderr b/tests/ui/parser/keyword-fn-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-fn-as-identifier.stderr rename to tests/ui/parser/keyword-fn-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-for-as-identifier.rs b/tests/ui/parser/keyword-for-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-for-as-identifier.rs rename to tests/ui/parser/keyword-for-as-identifier.rs diff --git a/src/test/ui/parser/keyword-for-as-identifier.stderr b/tests/ui/parser/keyword-for-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-for-as-identifier.stderr rename to tests/ui/parser/keyword-for-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-if-as-identifier.rs b/tests/ui/parser/keyword-if-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-if-as-identifier.rs rename to tests/ui/parser/keyword-if-as-identifier.rs diff --git a/src/test/ui/parser/keyword-if-as-identifier.stderr b/tests/ui/parser/keyword-if-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-if-as-identifier.stderr rename to tests/ui/parser/keyword-if-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-impl-as-identifier.rs b/tests/ui/parser/keyword-impl-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-impl-as-identifier.rs rename to tests/ui/parser/keyword-impl-as-identifier.rs diff --git a/src/test/ui/parser/keyword-impl-as-identifier.stderr b/tests/ui/parser/keyword-impl-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-impl-as-identifier.stderr rename to tests/ui/parser/keyword-impl-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-in-as-identifier.rs b/tests/ui/parser/keyword-in-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-in-as-identifier.rs rename to tests/ui/parser/keyword-in-as-identifier.rs diff --git a/src/test/ui/parser/keyword-in-as-identifier.stderr b/tests/ui/parser/keyword-in-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-in-as-identifier.stderr rename to tests/ui/parser/keyword-in-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-let-as-identifier.rs b/tests/ui/parser/keyword-let-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-let-as-identifier.rs rename to tests/ui/parser/keyword-let-as-identifier.rs diff --git a/src/test/ui/parser/keyword-let-as-identifier.stderr b/tests/ui/parser/keyword-let-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-let-as-identifier.stderr rename to tests/ui/parser/keyword-let-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-loop-as-identifier.rs b/tests/ui/parser/keyword-loop-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-loop-as-identifier.rs rename to tests/ui/parser/keyword-loop-as-identifier.rs diff --git a/src/test/ui/parser/keyword-loop-as-identifier.stderr b/tests/ui/parser/keyword-loop-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-loop-as-identifier.stderr rename to tests/ui/parser/keyword-loop-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-match-as-identifier.rs b/tests/ui/parser/keyword-match-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-match-as-identifier.rs rename to tests/ui/parser/keyword-match-as-identifier.rs diff --git a/src/test/ui/parser/keyword-match-as-identifier.stderr b/tests/ui/parser/keyword-match-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-match-as-identifier.stderr rename to tests/ui/parser/keyword-match-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-mod-as-identifier.rs b/tests/ui/parser/keyword-mod-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-mod-as-identifier.rs rename to tests/ui/parser/keyword-mod-as-identifier.rs diff --git a/src/test/ui/parser/keyword-mod-as-identifier.stderr b/tests/ui/parser/keyword-mod-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-mod-as-identifier.stderr rename to tests/ui/parser/keyword-mod-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-move-as-identifier.rs b/tests/ui/parser/keyword-move-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-move-as-identifier.rs rename to tests/ui/parser/keyword-move-as-identifier.rs diff --git a/src/test/ui/parser/keyword-move-as-identifier.stderr b/tests/ui/parser/keyword-move-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-move-as-identifier.stderr rename to tests/ui/parser/keyword-move-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-mut-as-identifier.rs b/tests/ui/parser/keyword-mut-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-mut-as-identifier.rs rename to tests/ui/parser/keyword-mut-as-identifier.rs diff --git a/src/test/ui/parser/keyword-mut-as-identifier.stderr b/tests/ui/parser/keyword-mut-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-mut-as-identifier.stderr rename to tests/ui/parser/keyword-mut-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-override.rs b/tests/ui/parser/keyword-override.rs similarity index 100% rename from src/test/ui/parser/keyword-override.rs rename to tests/ui/parser/keyword-override.rs diff --git a/src/test/ui/parser/keyword-override.stderr b/tests/ui/parser/keyword-override.stderr similarity index 100% rename from src/test/ui/parser/keyword-override.stderr rename to tests/ui/parser/keyword-override.stderr diff --git a/src/test/ui/parser/keyword-pub-as-identifier.rs b/tests/ui/parser/keyword-pub-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-pub-as-identifier.rs rename to tests/ui/parser/keyword-pub-as-identifier.rs diff --git a/src/test/ui/parser/keyword-pub-as-identifier.stderr b/tests/ui/parser/keyword-pub-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-pub-as-identifier.stderr rename to tests/ui/parser/keyword-pub-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-ref-as-identifier.rs b/tests/ui/parser/keyword-ref-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-ref-as-identifier.rs rename to tests/ui/parser/keyword-ref-as-identifier.rs diff --git a/src/test/ui/parser/keyword-ref-as-identifier.stderr b/tests/ui/parser/keyword-ref-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-ref-as-identifier.stderr rename to tests/ui/parser/keyword-ref-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-return-as-identifier.rs b/tests/ui/parser/keyword-return-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-return-as-identifier.rs rename to tests/ui/parser/keyword-return-as-identifier.rs diff --git a/src/test/ui/parser/keyword-return-as-identifier.stderr b/tests/ui/parser/keyword-return-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-return-as-identifier.stderr rename to tests/ui/parser/keyword-return-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-static-as-identifier.rs b/tests/ui/parser/keyword-static-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-static-as-identifier.rs rename to tests/ui/parser/keyword-static-as-identifier.rs diff --git a/src/test/ui/parser/keyword-static-as-identifier.stderr b/tests/ui/parser/keyword-static-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-static-as-identifier.stderr rename to tests/ui/parser/keyword-static-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-struct-as-identifier.rs b/tests/ui/parser/keyword-struct-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-struct-as-identifier.rs rename to tests/ui/parser/keyword-struct-as-identifier.rs diff --git a/src/test/ui/parser/keyword-struct-as-identifier.stderr b/tests/ui/parser/keyword-struct-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-struct-as-identifier.stderr rename to tests/ui/parser/keyword-struct-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-trait-as-identifier.rs b/tests/ui/parser/keyword-trait-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-trait-as-identifier.rs rename to tests/ui/parser/keyword-trait-as-identifier.rs diff --git a/src/test/ui/parser/keyword-trait-as-identifier.stderr b/tests/ui/parser/keyword-trait-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-trait-as-identifier.stderr rename to tests/ui/parser/keyword-trait-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-try-as-identifier-edition2018.rs b/tests/ui/parser/keyword-try-as-identifier-edition2018.rs similarity index 100% rename from src/test/ui/parser/keyword-try-as-identifier-edition2018.rs rename to tests/ui/parser/keyword-try-as-identifier-edition2018.rs diff --git a/src/test/ui/parser/keyword-try-as-identifier-edition2018.stderr b/tests/ui/parser/keyword-try-as-identifier-edition2018.stderr similarity index 100% rename from src/test/ui/parser/keyword-try-as-identifier-edition2018.stderr rename to tests/ui/parser/keyword-try-as-identifier-edition2018.stderr diff --git a/src/test/ui/parser/keyword-type-as-identifier.rs b/tests/ui/parser/keyword-type-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-type-as-identifier.rs rename to tests/ui/parser/keyword-type-as-identifier.rs diff --git a/src/test/ui/parser/keyword-type-as-identifier.stderr b/tests/ui/parser/keyword-type-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-type-as-identifier.stderr rename to tests/ui/parser/keyword-type-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-typeof.rs b/tests/ui/parser/keyword-typeof.rs similarity index 100% rename from src/test/ui/parser/keyword-typeof.rs rename to tests/ui/parser/keyword-typeof.rs diff --git a/src/test/ui/parser/keyword-typeof.stderr b/tests/ui/parser/keyword-typeof.stderr similarity index 100% rename from src/test/ui/parser/keyword-typeof.stderr rename to tests/ui/parser/keyword-typeof.stderr diff --git a/src/test/ui/parser/keyword-unsafe-as-identifier.rs b/tests/ui/parser/keyword-unsafe-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-unsafe-as-identifier.rs rename to tests/ui/parser/keyword-unsafe-as-identifier.rs diff --git a/src/test/ui/parser/keyword-unsafe-as-identifier.stderr b/tests/ui/parser/keyword-unsafe-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-unsafe-as-identifier.stderr rename to tests/ui/parser/keyword-unsafe-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-use-as-identifier.rs b/tests/ui/parser/keyword-use-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-use-as-identifier.rs rename to tests/ui/parser/keyword-use-as-identifier.rs diff --git a/src/test/ui/parser/keyword-use-as-identifier.stderr b/tests/ui/parser/keyword-use-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-use-as-identifier.stderr rename to tests/ui/parser/keyword-use-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-where-as-identifier.rs b/tests/ui/parser/keyword-where-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-where-as-identifier.rs rename to tests/ui/parser/keyword-where-as-identifier.rs diff --git a/src/test/ui/parser/keyword-where-as-identifier.stderr b/tests/ui/parser/keyword-where-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-where-as-identifier.stderr rename to tests/ui/parser/keyword-where-as-identifier.stderr diff --git a/src/test/ui/parser/keyword-while-as-identifier.rs b/tests/ui/parser/keyword-while-as-identifier.rs similarity index 100% rename from src/test/ui/parser/keyword-while-as-identifier.rs rename to tests/ui/parser/keyword-while-as-identifier.rs diff --git a/src/test/ui/parser/keyword-while-as-identifier.stderr b/tests/ui/parser/keyword-while-as-identifier.stderr similarity index 100% rename from src/test/ui/parser/keyword-while-as-identifier.stderr rename to tests/ui/parser/keyword-while-as-identifier.stderr diff --git a/src/test/ui/parser/keyword.rs b/tests/ui/parser/keyword.rs similarity index 100% rename from src/test/ui/parser/keyword.rs rename to tests/ui/parser/keyword.rs diff --git a/src/test/ui/parser/keyword.stderr b/tests/ui/parser/keyword.stderr similarity index 100% rename from src/test/ui/parser/keyword.stderr rename to tests/ui/parser/keyword.stderr diff --git a/src/test/ui/parser/keywords-followed-by-double-colon.rs b/tests/ui/parser/keywords-followed-by-double-colon.rs similarity index 100% rename from src/test/ui/parser/keywords-followed-by-double-colon.rs rename to tests/ui/parser/keywords-followed-by-double-colon.rs diff --git a/src/test/ui/parser/keywords-followed-by-double-colon.stderr b/tests/ui/parser/keywords-followed-by-double-colon.stderr similarity index 100% rename from src/test/ui/parser/keywords-followed-by-double-colon.stderr rename to tests/ui/parser/keywords-followed-by-double-colon.stderr diff --git a/src/test/ui/parser/kw-in-trait-bounds.rs b/tests/ui/parser/kw-in-trait-bounds.rs similarity index 100% rename from src/test/ui/parser/kw-in-trait-bounds.rs rename to tests/ui/parser/kw-in-trait-bounds.rs diff --git a/src/test/ui/parser/kw-in-trait-bounds.stderr b/tests/ui/parser/kw-in-trait-bounds.stderr similarity index 100% rename from src/test/ui/parser/kw-in-trait-bounds.stderr rename to tests/ui/parser/kw-in-trait-bounds.stderr diff --git a/src/test/ui/parser/label-after-block-like.rs b/tests/ui/parser/label-after-block-like.rs similarity index 100% rename from src/test/ui/parser/label-after-block-like.rs rename to tests/ui/parser/label-after-block-like.rs diff --git a/src/test/ui/parser/label-after-block-like.stderr b/tests/ui/parser/label-after-block-like.stderr similarity index 100% rename from src/test/ui/parser/label-after-block-like.stderr rename to tests/ui/parser/label-after-block-like.stderr diff --git a/src/test/ui/parser/label-is-actually-char.rs b/tests/ui/parser/label-is-actually-char.rs similarity index 100% rename from src/test/ui/parser/label-is-actually-char.rs rename to tests/ui/parser/label-is-actually-char.rs diff --git a/src/test/ui/parser/label-is-actually-char.stderr b/tests/ui/parser/label-is-actually-char.stderr similarity index 100% rename from src/test/ui/parser/label-is-actually-char.stderr rename to tests/ui/parser/label-is-actually-char.stderr diff --git a/src/test/ui/parser/labeled-no-colon-expr.rs b/tests/ui/parser/labeled-no-colon-expr.rs similarity index 100% rename from src/test/ui/parser/labeled-no-colon-expr.rs rename to tests/ui/parser/labeled-no-colon-expr.rs diff --git a/src/test/ui/parser/labeled-no-colon-expr.stderr b/tests/ui/parser/labeled-no-colon-expr.stderr similarity index 100% rename from src/test/ui/parser/labeled-no-colon-expr.stderr rename to tests/ui/parser/labeled-no-colon-expr.stderr diff --git a/src/test/ui/parser/let-binop.fixed b/tests/ui/parser/let-binop.fixed similarity index 100% rename from src/test/ui/parser/let-binop.fixed rename to tests/ui/parser/let-binop.fixed diff --git a/src/test/ui/parser/let-binop.rs b/tests/ui/parser/let-binop.rs similarity index 100% rename from src/test/ui/parser/let-binop.rs rename to tests/ui/parser/let-binop.rs diff --git a/src/test/ui/parser/let-binop.stderr b/tests/ui/parser/let-binop.stderr similarity index 100% rename from src/test/ui/parser/let-binop.stderr rename to tests/ui/parser/let-binop.stderr diff --git a/src/test/ui/parser/lifetime-in-pattern-recover.rs b/tests/ui/parser/lifetime-in-pattern-recover.rs similarity index 100% rename from src/test/ui/parser/lifetime-in-pattern-recover.rs rename to tests/ui/parser/lifetime-in-pattern-recover.rs diff --git a/src/test/ui/parser/lifetime-in-pattern-recover.stderr b/tests/ui/parser/lifetime-in-pattern-recover.stderr similarity index 100% rename from src/test/ui/parser/lifetime-in-pattern-recover.stderr rename to tests/ui/parser/lifetime-in-pattern-recover.stderr diff --git a/src/test/ui/parser/lifetime-in-pattern.rs b/tests/ui/parser/lifetime-in-pattern.rs similarity index 100% rename from src/test/ui/parser/lifetime-in-pattern.rs rename to tests/ui/parser/lifetime-in-pattern.rs diff --git a/src/test/ui/parser/lifetime-in-pattern.stderr b/tests/ui/parser/lifetime-in-pattern.stderr similarity index 100% rename from src/test/ui/parser/lifetime-in-pattern.stderr rename to tests/ui/parser/lifetime-in-pattern.stderr diff --git a/src/test/ui/parser/lifetime-semicolon.fixed b/tests/ui/parser/lifetime-semicolon.fixed similarity index 100% rename from src/test/ui/parser/lifetime-semicolon.fixed rename to tests/ui/parser/lifetime-semicolon.fixed diff --git a/src/test/ui/parser/lifetime-semicolon.rs b/tests/ui/parser/lifetime-semicolon.rs similarity index 100% rename from src/test/ui/parser/lifetime-semicolon.rs rename to tests/ui/parser/lifetime-semicolon.rs diff --git a/src/test/ui/parser/lifetime-semicolon.stderr b/tests/ui/parser/lifetime-semicolon.stderr similarity index 100% rename from src/test/ui/parser/lifetime-semicolon.stderr rename to tests/ui/parser/lifetime-semicolon.stderr diff --git a/src/test/ui/parser/lifetime_starts_expressions.rs b/tests/ui/parser/lifetime_starts_expressions.rs similarity index 100% rename from src/test/ui/parser/lifetime_starts_expressions.rs rename to tests/ui/parser/lifetime_starts_expressions.rs diff --git a/src/test/ui/parser/lifetime_starts_expressions.stderr b/tests/ui/parser/lifetime_starts_expressions.stderr similarity index 100% rename from src/test/ui/parser/lifetime_starts_expressions.stderr rename to tests/ui/parser/lifetime_starts_expressions.stderr diff --git a/src/test/ui/parser/macro-bad-delimiter-ident.rs b/tests/ui/parser/macro-bad-delimiter-ident.rs similarity index 100% rename from src/test/ui/parser/macro-bad-delimiter-ident.rs rename to tests/ui/parser/macro-bad-delimiter-ident.rs diff --git a/src/test/ui/parser/macro-bad-delimiter-ident.stderr b/tests/ui/parser/macro-bad-delimiter-ident.stderr similarity index 100% rename from src/test/ui/parser/macro-bad-delimiter-ident.stderr rename to tests/ui/parser/macro-bad-delimiter-ident.stderr diff --git a/src/test/ui/parser/macro-braces-dot-question.rs b/tests/ui/parser/macro-braces-dot-question.rs similarity index 100% rename from src/test/ui/parser/macro-braces-dot-question.rs rename to tests/ui/parser/macro-braces-dot-question.rs diff --git a/src/test/ui/parser/macro-keyword.rs b/tests/ui/parser/macro-keyword.rs similarity index 100% rename from src/test/ui/parser/macro-keyword.rs rename to tests/ui/parser/macro-keyword.rs diff --git a/src/test/ui/parser/macro-keyword.stderr b/tests/ui/parser/macro-keyword.stderr similarity index 100% rename from src/test/ui/parser/macro-keyword.stderr rename to tests/ui/parser/macro-keyword.stderr diff --git a/src/test/ui/parser/macro-mismatched-delim-brace-paren.rs b/tests/ui/parser/macro-mismatched-delim-brace-paren.rs similarity index 100% rename from src/test/ui/parser/macro-mismatched-delim-brace-paren.rs rename to tests/ui/parser/macro-mismatched-delim-brace-paren.rs diff --git a/src/test/ui/parser/macro-mismatched-delim-brace-paren.stderr b/tests/ui/parser/macro-mismatched-delim-brace-paren.stderr similarity index 100% rename from src/test/ui/parser/macro-mismatched-delim-brace-paren.stderr rename to tests/ui/parser/macro-mismatched-delim-brace-paren.stderr diff --git a/src/test/ui/parser/macro-mismatched-delim-paren-brace.rs b/tests/ui/parser/macro-mismatched-delim-paren-brace.rs similarity index 100% rename from src/test/ui/parser/macro-mismatched-delim-paren-brace.rs rename to tests/ui/parser/macro-mismatched-delim-paren-brace.rs diff --git a/src/test/ui/parser/macro-mismatched-delim-paren-brace.stderr b/tests/ui/parser/macro-mismatched-delim-paren-brace.stderr similarity index 100% rename from src/test/ui/parser/macro-mismatched-delim-paren-brace.stderr rename to tests/ui/parser/macro-mismatched-delim-paren-brace.stderr diff --git a/src/test/ui/parser/macro/bad-macro-argument.rs b/tests/ui/parser/macro/bad-macro-argument.rs similarity index 100% rename from src/test/ui/parser/macro/bad-macro-argument.rs rename to tests/ui/parser/macro/bad-macro-argument.rs diff --git a/src/test/ui/parser/macro/bad-macro-argument.stderr b/tests/ui/parser/macro/bad-macro-argument.stderr similarity index 100% rename from src/test/ui/parser/macro/bad-macro-argument.stderr rename to tests/ui/parser/macro/bad-macro-argument.stderr diff --git a/src/test/ui/parser/macro/issue-33569.rs b/tests/ui/parser/macro/issue-33569.rs similarity index 100% rename from src/test/ui/parser/macro/issue-33569.rs rename to tests/ui/parser/macro/issue-33569.rs diff --git a/src/test/ui/parser/macro/issue-33569.stderr b/tests/ui/parser/macro/issue-33569.stderr similarity index 100% rename from src/test/ui/parser/macro/issue-33569.stderr rename to tests/ui/parser/macro/issue-33569.stderr diff --git a/src/test/ui/parser/macro/issue-37113.rs b/tests/ui/parser/macro/issue-37113.rs similarity index 100% rename from src/test/ui/parser/macro/issue-37113.rs rename to tests/ui/parser/macro/issue-37113.rs diff --git a/src/test/ui/parser/macro/issue-37113.stderr b/tests/ui/parser/macro/issue-37113.stderr similarity index 100% rename from src/test/ui/parser/macro/issue-37113.stderr rename to tests/ui/parser/macro/issue-37113.stderr diff --git a/src/test/ui/parser/macro/issue-37234.rs b/tests/ui/parser/macro/issue-37234.rs similarity index 100% rename from src/test/ui/parser/macro/issue-37234.rs rename to tests/ui/parser/macro/issue-37234.rs diff --git a/src/test/ui/parser/macro/issue-37234.stderr b/tests/ui/parser/macro/issue-37234.stderr similarity index 100% rename from src/test/ui/parser/macro/issue-37234.stderr rename to tests/ui/parser/macro/issue-37234.stderr diff --git a/src/test/ui/parser/macro/literals-are-validated-before-expansion.rs b/tests/ui/parser/macro/literals-are-validated-before-expansion.rs similarity index 100% rename from src/test/ui/parser/macro/literals-are-validated-before-expansion.rs rename to tests/ui/parser/macro/literals-are-validated-before-expansion.rs diff --git a/src/test/ui/parser/macro/literals-are-validated-before-expansion.stderr b/tests/ui/parser/macro/literals-are-validated-before-expansion.stderr similarity index 100% rename from src/test/ui/parser/macro/literals-are-validated-before-expansion.stderr rename to tests/ui/parser/macro/literals-are-validated-before-expansion.stderr diff --git a/src/test/ui/parser/macro/macro-doc-comments-1.rs b/tests/ui/parser/macro/macro-doc-comments-1.rs similarity index 100% rename from src/test/ui/parser/macro/macro-doc-comments-1.rs rename to tests/ui/parser/macro/macro-doc-comments-1.rs diff --git a/src/test/ui/parser/macro/macro-doc-comments-1.stderr b/tests/ui/parser/macro/macro-doc-comments-1.stderr similarity index 100% rename from src/test/ui/parser/macro/macro-doc-comments-1.stderr rename to tests/ui/parser/macro/macro-doc-comments-1.stderr diff --git a/src/test/ui/parser/macro/macro-doc-comments-2.rs b/tests/ui/parser/macro/macro-doc-comments-2.rs similarity index 100% rename from src/test/ui/parser/macro/macro-doc-comments-2.rs rename to tests/ui/parser/macro/macro-doc-comments-2.rs diff --git a/src/test/ui/parser/macro/macro-doc-comments-2.stderr b/tests/ui/parser/macro/macro-doc-comments-2.stderr similarity index 100% rename from src/test/ui/parser/macro/macro-doc-comments-2.stderr rename to tests/ui/parser/macro/macro-doc-comments-2.stderr diff --git a/src/test/ui/parser/macro/macro-incomplete-parse.rs b/tests/ui/parser/macro/macro-incomplete-parse.rs similarity index 100% rename from src/test/ui/parser/macro/macro-incomplete-parse.rs rename to tests/ui/parser/macro/macro-incomplete-parse.rs diff --git a/src/test/ui/parser/macro/macro-incomplete-parse.stderr b/tests/ui/parser/macro/macro-incomplete-parse.stderr similarity index 100% rename from src/test/ui/parser/macro/macro-incomplete-parse.stderr rename to tests/ui/parser/macro/macro-incomplete-parse.stderr diff --git a/src/test/ui/parser/macro/macro-repeat.rs b/tests/ui/parser/macro/macro-repeat.rs similarity index 100% rename from src/test/ui/parser/macro/macro-repeat.rs rename to tests/ui/parser/macro/macro-repeat.rs diff --git a/src/test/ui/parser/macro/macro-repeat.stderr b/tests/ui/parser/macro/macro-repeat.stderr similarity index 100% rename from src/test/ui/parser/macro/macro-repeat.stderr rename to tests/ui/parser/macro/macro-repeat.stderr diff --git a/src/test/ui/parser/macro/pub-item-macro.rs b/tests/ui/parser/macro/pub-item-macro.rs similarity index 100% rename from src/test/ui/parser/macro/pub-item-macro.rs rename to tests/ui/parser/macro/pub-item-macro.rs diff --git a/src/test/ui/parser/macro/pub-item-macro.stderr b/tests/ui/parser/macro/pub-item-macro.stderr similarity index 100% rename from src/test/ui/parser/macro/pub-item-macro.stderr rename to tests/ui/parser/macro/pub-item-macro.stderr diff --git a/src/test/ui/parser/macro/trait-non-item-macros.rs b/tests/ui/parser/macro/trait-non-item-macros.rs similarity index 100% rename from src/test/ui/parser/macro/trait-non-item-macros.rs rename to tests/ui/parser/macro/trait-non-item-macros.rs diff --git a/src/test/ui/parser/macro/trait-non-item-macros.stderr b/tests/ui/parser/macro/trait-non-item-macros.stderr similarity index 100% rename from src/test/ui/parser/macro/trait-non-item-macros.stderr rename to tests/ui/parser/macro/trait-non-item-macros.stderr diff --git a/src/test/ui/parser/macro/trait-object-macro-matcher.rs b/tests/ui/parser/macro/trait-object-macro-matcher.rs similarity index 100% rename from src/test/ui/parser/macro/trait-object-macro-matcher.rs rename to tests/ui/parser/macro/trait-object-macro-matcher.rs diff --git a/src/test/ui/parser/macro/trait-object-macro-matcher.stderr b/tests/ui/parser/macro/trait-object-macro-matcher.stderr similarity index 100% rename from src/test/ui/parser/macro/trait-object-macro-matcher.stderr rename to tests/ui/parser/macro/trait-object-macro-matcher.stderr diff --git a/src/test/ui/parser/macros-no-semicolon-items.rs b/tests/ui/parser/macros-no-semicolon-items.rs similarity index 100% rename from src/test/ui/parser/macros-no-semicolon-items.rs rename to tests/ui/parser/macros-no-semicolon-items.rs diff --git a/src/test/ui/parser/macros-no-semicolon-items.stderr b/tests/ui/parser/macros-no-semicolon-items.stderr similarity index 100% rename from src/test/ui/parser/macros-no-semicolon-items.stderr rename to tests/ui/parser/macros-no-semicolon-items.stderr diff --git a/src/test/ui/parser/macros-no-semicolon.rs b/tests/ui/parser/macros-no-semicolon.rs similarity index 100% rename from src/test/ui/parser/macros-no-semicolon.rs rename to tests/ui/parser/macros-no-semicolon.rs diff --git a/src/test/ui/parser/macros-no-semicolon.stderr b/tests/ui/parser/macros-no-semicolon.stderr similarity index 100% rename from src/test/ui/parser/macros-no-semicolon.stderr rename to tests/ui/parser/macros-no-semicolon.stderr diff --git a/src/test/ui/parser/match-arm-without-braces.rs b/tests/ui/parser/match-arm-without-braces.rs similarity index 100% rename from src/test/ui/parser/match-arm-without-braces.rs rename to tests/ui/parser/match-arm-without-braces.rs diff --git a/src/test/ui/parser/match-arm-without-braces.stderr b/tests/ui/parser/match-arm-without-braces.stderr similarity index 100% rename from src/test/ui/parser/match-arm-without-braces.stderr rename to tests/ui/parser/match-arm-without-braces.stderr diff --git a/src/test/ui/parser/match-arrows-block-then-binop.rs b/tests/ui/parser/match-arrows-block-then-binop.rs similarity index 100% rename from src/test/ui/parser/match-arrows-block-then-binop.rs rename to tests/ui/parser/match-arrows-block-then-binop.rs diff --git a/src/test/ui/parser/match-arrows-block-then-binop.stderr b/tests/ui/parser/match-arrows-block-then-binop.stderr similarity index 100% rename from src/test/ui/parser/match-arrows-block-then-binop.stderr rename to tests/ui/parser/match-arrows-block-then-binop.stderr diff --git a/src/test/ui/parser/match-refactor-to-expr.fixed b/tests/ui/parser/match-refactor-to-expr.fixed similarity index 100% rename from src/test/ui/parser/match-refactor-to-expr.fixed rename to tests/ui/parser/match-refactor-to-expr.fixed diff --git a/src/test/ui/parser/match-refactor-to-expr.rs b/tests/ui/parser/match-refactor-to-expr.rs similarity index 100% rename from src/test/ui/parser/match-refactor-to-expr.rs rename to tests/ui/parser/match-refactor-to-expr.rs diff --git a/src/test/ui/parser/match-refactor-to-expr.stderr b/tests/ui/parser/match-refactor-to-expr.stderr similarity index 100% rename from src/test/ui/parser/match-refactor-to-expr.stderr rename to tests/ui/parser/match-refactor-to-expr.stderr diff --git a/src/test/ui/parser/mbe_missing_right_paren.rs b/tests/ui/parser/mbe_missing_right_paren.rs similarity index 100% rename from src/test/ui/parser/mbe_missing_right_paren.rs rename to tests/ui/parser/mbe_missing_right_paren.rs diff --git a/src/test/ui/parser/mbe_missing_right_paren.stderr b/tests/ui/parser/mbe_missing_right_paren.stderr similarity index 100% rename from src/test/ui/parser/mbe_missing_right_paren.stderr rename to tests/ui/parser/mbe_missing_right_paren.stderr diff --git a/src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs b/tests/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs similarity index 100% rename from src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs rename to tests/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.rs diff --git a/src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.stderr b/tests/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.stderr similarity index 100% rename from src/test/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.stderr rename to tests/ui/parser/mismatched-braces/missing-close-brace-in-impl-trait.stderr diff --git a/src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs b/tests/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs similarity index 100% rename from src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs rename to tests/ui/parser/mismatched-braces/missing-close-brace-in-struct.rs diff --git a/src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.stderr b/tests/ui/parser/mismatched-braces/missing-close-brace-in-struct.stderr similarity index 100% rename from src/test/ui/parser/mismatched-braces/missing-close-brace-in-struct.stderr rename to tests/ui/parser/mismatched-braces/missing-close-brace-in-struct.stderr diff --git a/src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs b/tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs similarity index 100% rename from src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs rename to tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.rs diff --git a/src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr b/tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr similarity index 100% rename from src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr rename to tests/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr diff --git a/src/test/ui/parser/mismatched-delim-brace-empty-block.rs b/tests/ui/parser/mismatched-delim-brace-empty-block.rs similarity index 100% rename from src/test/ui/parser/mismatched-delim-brace-empty-block.rs rename to tests/ui/parser/mismatched-delim-brace-empty-block.rs diff --git a/src/test/ui/parser/mismatched-delim-brace-empty-block.stderr b/tests/ui/parser/mismatched-delim-brace-empty-block.stderr similarity index 100% rename from src/test/ui/parser/mismatched-delim-brace-empty-block.stderr rename to tests/ui/parser/mismatched-delim-brace-empty-block.stderr diff --git a/src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.rs b/tests/ui/parser/missing-closing-angle-bracket-eq-constraint.rs similarity index 100% rename from src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.rs rename to tests/ui/parser/missing-closing-angle-bracket-eq-constraint.rs diff --git a/src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr b/tests/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr similarity index 100% rename from src/test/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr rename to tests/ui/parser/missing-closing-angle-bracket-eq-constraint.stderr diff --git a/src/test/ui/parser/missing-closing-angle-bracket-struct-field-ty.rs b/tests/ui/parser/missing-closing-angle-bracket-struct-field-ty.rs similarity index 100% rename from src/test/ui/parser/missing-closing-angle-bracket-struct-field-ty.rs rename to tests/ui/parser/missing-closing-angle-bracket-struct-field-ty.rs diff --git a/src/test/ui/parser/missing-closing-angle-bracket-struct-field-ty.stderr b/tests/ui/parser/missing-closing-angle-bracket-struct-field-ty.stderr similarity index 100% rename from src/test/ui/parser/missing-closing-angle-bracket-struct-field-ty.stderr rename to tests/ui/parser/missing-closing-angle-bracket-struct-field-ty.stderr diff --git a/src/test/ui/parser/missing-semicolon.rs b/tests/ui/parser/missing-semicolon.rs similarity index 100% rename from src/test/ui/parser/missing-semicolon.rs rename to tests/ui/parser/missing-semicolon.rs diff --git a/src/test/ui/parser/missing-semicolon.stderr b/tests/ui/parser/missing-semicolon.stderr similarity index 100% rename from src/test/ui/parser/missing-semicolon.stderr rename to tests/ui/parser/missing-semicolon.stderr diff --git a/src/test/ui/parser/missing_right_paren.rs b/tests/ui/parser/missing_right_paren.rs similarity index 100% rename from src/test/ui/parser/missing_right_paren.rs rename to tests/ui/parser/missing_right_paren.rs diff --git a/src/test/ui/parser/missing_right_paren.stderr b/tests/ui/parser/missing_right_paren.stderr similarity index 100% rename from src/test/ui/parser/missing_right_paren.stderr rename to tests/ui/parser/missing_right_paren.stderr diff --git a/src/test/ui/parser/misspelled-macro-rules.fixed b/tests/ui/parser/misspelled-macro-rules.fixed similarity index 100% rename from src/test/ui/parser/misspelled-macro-rules.fixed rename to tests/ui/parser/misspelled-macro-rules.fixed diff --git a/src/test/ui/parser/misspelled-macro-rules.rs b/tests/ui/parser/misspelled-macro-rules.rs similarity index 100% rename from src/test/ui/parser/misspelled-macro-rules.rs rename to tests/ui/parser/misspelled-macro-rules.rs diff --git a/src/test/ui/parser/misspelled-macro-rules.stderr b/tests/ui/parser/misspelled-macro-rules.stderr similarity index 100% rename from src/test/ui/parser/misspelled-macro-rules.stderr rename to tests/ui/parser/misspelled-macro-rules.stderr diff --git a/src/test/ui/parser/mod_file_not_exist.rs b/tests/ui/parser/mod_file_not_exist.rs similarity index 100% rename from src/test/ui/parser/mod_file_not_exist.rs rename to tests/ui/parser/mod_file_not_exist.rs diff --git a/src/test/ui/parser/mod_file_not_exist.stderr b/tests/ui/parser/mod_file_not_exist.stderr similarity index 100% rename from src/test/ui/parser/mod_file_not_exist.stderr rename to tests/ui/parser/mod_file_not_exist.stderr diff --git a/src/test/ui/parser/mod_file_not_exist_windows.rs b/tests/ui/parser/mod_file_not_exist_windows.rs similarity index 100% rename from src/test/ui/parser/mod_file_not_exist_windows.rs rename to tests/ui/parser/mod_file_not_exist_windows.rs diff --git a/src/test/ui/parser/mod_file_not_exist_windows.stderr b/tests/ui/parser/mod_file_not_exist_windows.stderr similarity index 100% rename from src/test/ui/parser/mod_file_not_exist_windows.stderr rename to tests/ui/parser/mod_file_not_exist_windows.stderr diff --git a/src/test/ui/parser/mod_file_with_path_attr.rs b/tests/ui/parser/mod_file_with_path_attr.rs similarity index 100% rename from src/test/ui/parser/mod_file_with_path_attr.rs rename to tests/ui/parser/mod_file_with_path_attr.rs diff --git a/src/test/ui/parser/mod_file_with_path_attr.stderr b/tests/ui/parser/mod_file_with_path_attr.stderr similarity index 100% rename from src/test/ui/parser/mod_file_with_path_attr.stderr rename to tests/ui/parser/mod_file_with_path_attr.stderr diff --git a/src/test/ui/parser/multibyte-char-use-seperator-issue-80134.rs b/tests/ui/parser/multibyte-char-use-seperator-issue-80134.rs similarity index 100% rename from src/test/ui/parser/multibyte-char-use-seperator-issue-80134.rs rename to tests/ui/parser/multibyte-char-use-seperator-issue-80134.rs diff --git a/src/test/ui/parser/multibyte-char-use-seperator-issue-80134.stderr b/tests/ui/parser/multibyte-char-use-seperator-issue-80134.stderr similarity index 100% rename from src/test/ui/parser/multibyte-char-use-seperator-issue-80134.stderr rename to tests/ui/parser/multibyte-char-use-seperator-issue-80134.stderr diff --git a/src/test/ui/parser/multiline-comment-line-tracking.rs b/tests/ui/parser/multiline-comment-line-tracking.rs similarity index 100% rename from src/test/ui/parser/multiline-comment-line-tracking.rs rename to tests/ui/parser/multiline-comment-line-tracking.rs diff --git a/src/test/ui/parser/multiline-comment-line-tracking.stderr b/tests/ui/parser/multiline-comment-line-tracking.stderr similarity index 100% rename from src/test/ui/parser/multiline-comment-line-tracking.stderr rename to tests/ui/parser/multiline-comment-line-tracking.stderr diff --git a/src/test/ui/parser/multitrait.rs b/tests/ui/parser/multitrait.rs similarity index 100% rename from src/test/ui/parser/multitrait.rs rename to tests/ui/parser/multitrait.rs diff --git a/src/test/ui/parser/multitrait.stderr b/tests/ui/parser/multitrait.stderr similarity index 100% rename from src/test/ui/parser/multitrait.stderr rename to tests/ui/parser/multitrait.stderr diff --git a/src/test/ui/parser/mut-patterns.rs b/tests/ui/parser/mut-patterns.rs similarity index 100% rename from src/test/ui/parser/mut-patterns.rs rename to tests/ui/parser/mut-patterns.rs diff --git a/src/test/ui/parser/mut-patterns.stderr b/tests/ui/parser/mut-patterns.stderr similarity index 100% rename from src/test/ui/parser/mut-patterns.stderr rename to tests/ui/parser/mut-patterns.stderr diff --git a/src/test/ui/parser/nested-bad-turbofish.rs b/tests/ui/parser/nested-bad-turbofish.rs similarity index 100% rename from src/test/ui/parser/nested-bad-turbofish.rs rename to tests/ui/parser/nested-bad-turbofish.rs diff --git a/src/test/ui/parser/nested-bad-turbofish.stderr b/tests/ui/parser/nested-bad-turbofish.stderr similarity index 100% rename from src/test/ui/parser/nested-bad-turbofish.stderr rename to tests/ui/parser/nested-bad-turbofish.stderr diff --git a/src/test/ui/parser/nested-missing-closing-angle-bracket.rs b/tests/ui/parser/nested-missing-closing-angle-bracket.rs similarity index 100% rename from src/test/ui/parser/nested-missing-closing-angle-bracket.rs rename to tests/ui/parser/nested-missing-closing-angle-bracket.rs diff --git a/src/test/ui/parser/nested-missing-closing-angle-bracket.stderr b/tests/ui/parser/nested-missing-closing-angle-bracket.stderr similarity index 100% rename from src/test/ui/parser/nested-missing-closing-angle-bracket.stderr rename to tests/ui/parser/nested-missing-closing-angle-bracket.stderr diff --git a/src/test/ui/parser/new-unicode-escapes-1.rs b/tests/ui/parser/new-unicode-escapes-1.rs similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-1.rs rename to tests/ui/parser/new-unicode-escapes-1.rs diff --git a/src/test/ui/parser/new-unicode-escapes-1.stderr b/tests/ui/parser/new-unicode-escapes-1.stderr similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-1.stderr rename to tests/ui/parser/new-unicode-escapes-1.stderr diff --git a/src/test/ui/parser/new-unicode-escapes-2.rs b/tests/ui/parser/new-unicode-escapes-2.rs similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-2.rs rename to tests/ui/parser/new-unicode-escapes-2.rs diff --git a/src/test/ui/parser/new-unicode-escapes-2.stderr b/tests/ui/parser/new-unicode-escapes-2.stderr similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-2.stderr rename to tests/ui/parser/new-unicode-escapes-2.stderr diff --git a/src/test/ui/parser/new-unicode-escapes-3.rs b/tests/ui/parser/new-unicode-escapes-3.rs similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-3.rs rename to tests/ui/parser/new-unicode-escapes-3.rs diff --git a/src/test/ui/parser/new-unicode-escapes-3.stderr b/tests/ui/parser/new-unicode-escapes-3.stderr similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-3.stderr rename to tests/ui/parser/new-unicode-escapes-3.stderr diff --git a/src/test/ui/parser/new-unicode-escapes-4.rs b/tests/ui/parser/new-unicode-escapes-4.rs similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-4.rs rename to tests/ui/parser/new-unicode-escapes-4.rs diff --git a/src/test/ui/parser/new-unicode-escapes-4.stderr b/tests/ui/parser/new-unicode-escapes-4.stderr similarity index 100% rename from src/test/ui/parser/new-unicode-escapes-4.stderr rename to tests/ui/parser/new-unicode-escapes-4.stderr diff --git a/src/test/ui/parser/no-binary-float-literal.rs b/tests/ui/parser/no-binary-float-literal.rs similarity index 100% rename from src/test/ui/parser/no-binary-float-literal.rs rename to tests/ui/parser/no-binary-float-literal.rs diff --git a/src/test/ui/parser/no-binary-float-literal.stderr b/tests/ui/parser/no-binary-float-literal.stderr similarity index 100% rename from src/test/ui/parser/no-binary-float-literal.stderr rename to tests/ui/parser/no-binary-float-literal.stderr diff --git a/src/test/ui/parser/no-const-fn-in-extern-block.rs b/tests/ui/parser/no-const-fn-in-extern-block.rs similarity index 100% rename from src/test/ui/parser/no-const-fn-in-extern-block.rs rename to tests/ui/parser/no-const-fn-in-extern-block.rs diff --git a/src/test/ui/parser/no-const-fn-in-extern-block.stderr b/tests/ui/parser/no-const-fn-in-extern-block.stderr similarity index 100% rename from src/test/ui/parser/no-const-fn-in-extern-block.stderr rename to tests/ui/parser/no-const-fn-in-extern-block.stderr diff --git a/src/test/ui/parser/no-hex-float-literal.rs b/tests/ui/parser/no-hex-float-literal.rs similarity index 100% rename from src/test/ui/parser/no-hex-float-literal.rs rename to tests/ui/parser/no-hex-float-literal.rs diff --git a/src/test/ui/parser/no-hex-float-literal.stderr b/tests/ui/parser/no-hex-float-literal.stderr similarity index 100% rename from src/test/ui/parser/no-hex-float-literal.stderr rename to tests/ui/parser/no-hex-float-literal.stderr diff --git a/src/test/ui/parser/no-unsafe-self.rs b/tests/ui/parser/no-unsafe-self.rs similarity index 100% rename from src/test/ui/parser/no-unsafe-self.rs rename to tests/ui/parser/no-unsafe-self.rs diff --git a/src/test/ui/parser/no-unsafe-self.stderr b/tests/ui/parser/no-unsafe-self.stderr similarity index 100% rename from src/test/ui/parser/no-unsafe-self.stderr rename to tests/ui/parser/no-unsafe-self.stderr diff --git a/src/test/ui/parser/not-a-pred.rs b/tests/ui/parser/not-a-pred.rs similarity index 100% rename from src/test/ui/parser/not-a-pred.rs rename to tests/ui/parser/not-a-pred.rs diff --git a/src/test/ui/parser/not-a-pred.stderr b/tests/ui/parser/not-a-pred.stderr similarity index 100% rename from src/test/ui/parser/not-a-pred.stderr rename to tests/ui/parser/not-a-pred.stderr diff --git a/src/test/ui/parser/nt-parsing-has-recovery.rs b/tests/ui/parser/nt-parsing-has-recovery.rs similarity index 100% rename from src/test/ui/parser/nt-parsing-has-recovery.rs rename to tests/ui/parser/nt-parsing-has-recovery.rs diff --git a/src/test/ui/parser/nt-parsing-has-recovery.stderr b/tests/ui/parser/nt-parsing-has-recovery.stderr similarity index 100% rename from src/test/ui/parser/nt-parsing-has-recovery.stderr rename to tests/ui/parser/nt-parsing-has-recovery.stderr diff --git a/src/test/ui/parser/numeric-lifetime.rs b/tests/ui/parser/numeric-lifetime.rs similarity index 100% rename from src/test/ui/parser/numeric-lifetime.rs rename to tests/ui/parser/numeric-lifetime.rs diff --git a/src/test/ui/parser/numeric-lifetime.stderr b/tests/ui/parser/numeric-lifetime.stderr similarity index 100% rename from src/test/ui/parser/numeric-lifetime.stderr rename to tests/ui/parser/numeric-lifetime.stderr diff --git a/src/test/ui/parser/obsolete-syntax-impl-for-dotdot.rs b/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs similarity index 100% rename from src/test/ui/parser/obsolete-syntax-impl-for-dotdot.rs rename to tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs diff --git a/src/test/ui/parser/obsolete-syntax-impl-for-dotdot.stderr b/tests/ui/parser/obsolete-syntax-impl-for-dotdot.stderr similarity index 100% rename from src/test/ui/parser/obsolete-syntax-impl-for-dotdot.stderr rename to tests/ui/parser/obsolete-syntax-impl-for-dotdot.stderr diff --git a/src/test/ui/parser/old-suffixes-are-really-forbidden.rs b/tests/ui/parser/old-suffixes-are-really-forbidden.rs similarity index 100% rename from src/test/ui/parser/old-suffixes-are-really-forbidden.rs rename to tests/ui/parser/old-suffixes-are-really-forbidden.rs diff --git a/src/test/ui/parser/old-suffixes-are-really-forbidden.stderr b/tests/ui/parser/old-suffixes-are-really-forbidden.stderr similarity index 100% rename from src/test/ui/parser/old-suffixes-are-really-forbidden.stderr rename to tests/ui/parser/old-suffixes-are-really-forbidden.stderr diff --git a/src/test/ui/parser/omitted-arg-in-item-fn.rs b/tests/ui/parser/omitted-arg-in-item-fn.rs similarity index 100% rename from src/test/ui/parser/omitted-arg-in-item-fn.rs rename to tests/ui/parser/omitted-arg-in-item-fn.rs diff --git a/src/test/ui/parser/omitted-arg-in-item-fn.stderr b/tests/ui/parser/omitted-arg-in-item-fn.stderr similarity index 100% rename from src/test/ui/parser/omitted-arg-in-item-fn.stderr rename to tests/ui/parser/omitted-arg-in-item-fn.stderr diff --git a/src/test/ui/parser/operator-associativity.rs b/tests/ui/parser/operator-associativity.rs similarity index 100% rename from src/test/ui/parser/operator-associativity.rs rename to tests/ui/parser/operator-associativity.rs diff --git a/src/test/ui/parser/paamayim-nekudotayim.rs b/tests/ui/parser/paamayim-nekudotayim.rs similarity index 100% rename from src/test/ui/parser/paamayim-nekudotayim.rs rename to tests/ui/parser/paamayim-nekudotayim.rs diff --git a/src/test/ui/parser/paamayim-nekudotayim.stderr b/tests/ui/parser/paamayim-nekudotayim.stderr similarity index 100% rename from src/test/ui/parser/paamayim-nekudotayim.stderr rename to tests/ui/parser/paamayim-nekudotayim.stderr diff --git a/src/test/ui/parser/parse-assoc-type-lt.rs b/tests/ui/parser/parse-assoc-type-lt.rs similarity index 100% rename from src/test/ui/parser/parse-assoc-type-lt.rs rename to tests/ui/parser/parse-assoc-type-lt.rs diff --git a/src/test/ui/parser/parse-error-correct.rs b/tests/ui/parser/parse-error-correct.rs similarity index 100% rename from src/test/ui/parser/parse-error-correct.rs rename to tests/ui/parser/parse-error-correct.rs diff --git a/src/test/ui/parser/parse-error-correct.stderr b/tests/ui/parser/parse-error-correct.stderr similarity index 100% rename from src/test/ui/parser/parse-error-correct.stderr rename to tests/ui/parser/parse-error-correct.stderr diff --git a/src/test/ui/parser/parse-panic.rs b/tests/ui/parser/parse-panic.rs similarity index 100% rename from src/test/ui/parser/parse-panic.rs rename to tests/ui/parser/parse-panic.rs diff --git a/src/test/ui/parser/parser-recovery-1.rs b/tests/ui/parser/parser-recovery-1.rs similarity index 100% rename from src/test/ui/parser/parser-recovery-1.rs rename to tests/ui/parser/parser-recovery-1.rs diff --git a/src/test/ui/parser/parser-recovery-1.stderr b/tests/ui/parser/parser-recovery-1.stderr similarity index 100% rename from src/test/ui/parser/parser-recovery-1.stderr rename to tests/ui/parser/parser-recovery-1.stderr diff --git a/src/test/ui/parser/parser-recovery-2.rs b/tests/ui/parser/parser-recovery-2.rs similarity index 100% rename from src/test/ui/parser/parser-recovery-2.rs rename to tests/ui/parser/parser-recovery-2.rs diff --git a/src/test/ui/parser/parser-recovery-2.stderr b/tests/ui/parser/parser-recovery-2.stderr similarity index 100% rename from src/test/ui/parser/parser-recovery-2.stderr rename to tests/ui/parser/parser-recovery-2.stderr diff --git a/src/test/ui/parser/parser-unicode-whitespace.rs b/tests/ui/parser/parser-unicode-whitespace.rs similarity index 100% rename from src/test/ui/parser/parser-unicode-whitespace.rs rename to tests/ui/parser/parser-unicode-whitespace.rs diff --git a/src/test/ui/parser/pat-lt-bracket-1.rs b/tests/ui/parser/pat-lt-bracket-1.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-1.rs rename to tests/ui/parser/pat-lt-bracket-1.rs diff --git a/src/test/ui/parser/pat-lt-bracket-1.stderr b/tests/ui/parser/pat-lt-bracket-1.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-1.stderr rename to tests/ui/parser/pat-lt-bracket-1.stderr diff --git a/src/test/ui/parser/pat-lt-bracket-2.rs b/tests/ui/parser/pat-lt-bracket-2.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-2.rs rename to tests/ui/parser/pat-lt-bracket-2.rs diff --git a/src/test/ui/parser/pat-lt-bracket-2.stderr b/tests/ui/parser/pat-lt-bracket-2.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-2.stderr rename to tests/ui/parser/pat-lt-bracket-2.stderr diff --git a/src/test/ui/parser/pat-lt-bracket-3.rs b/tests/ui/parser/pat-lt-bracket-3.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-3.rs rename to tests/ui/parser/pat-lt-bracket-3.rs diff --git a/src/test/ui/parser/pat-lt-bracket-3.stderr b/tests/ui/parser/pat-lt-bracket-3.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-3.stderr rename to tests/ui/parser/pat-lt-bracket-3.stderr diff --git a/src/test/ui/parser/pat-lt-bracket-4.rs b/tests/ui/parser/pat-lt-bracket-4.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-4.rs rename to tests/ui/parser/pat-lt-bracket-4.rs diff --git a/src/test/ui/parser/pat-lt-bracket-4.stderr b/tests/ui/parser/pat-lt-bracket-4.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-4.stderr rename to tests/ui/parser/pat-lt-bracket-4.stderr diff --git a/src/test/ui/parser/pat-lt-bracket-5.rs b/tests/ui/parser/pat-lt-bracket-5.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-5.rs rename to tests/ui/parser/pat-lt-bracket-5.rs diff --git a/src/test/ui/parser/pat-lt-bracket-5.stderr b/tests/ui/parser/pat-lt-bracket-5.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-5.stderr rename to tests/ui/parser/pat-lt-bracket-5.stderr diff --git a/src/test/ui/parser/pat-lt-bracket-6.rs b/tests/ui/parser/pat-lt-bracket-6.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-6.rs rename to tests/ui/parser/pat-lt-bracket-6.rs diff --git a/src/test/ui/parser/pat-lt-bracket-6.stderr b/tests/ui/parser/pat-lt-bracket-6.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-6.stderr rename to tests/ui/parser/pat-lt-bracket-6.stderr diff --git a/src/test/ui/parser/pat-lt-bracket-7.rs b/tests/ui/parser/pat-lt-bracket-7.rs similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-7.rs rename to tests/ui/parser/pat-lt-bracket-7.rs diff --git a/src/test/ui/parser/pat-lt-bracket-7.stderr b/tests/ui/parser/pat-lt-bracket-7.stderr similarity index 100% rename from src/test/ui/parser/pat-lt-bracket-7.stderr rename to tests/ui/parser/pat-lt-bracket-7.stderr diff --git a/src/test/ui/parser/pat-ranges-1.rs b/tests/ui/parser/pat-ranges-1.rs similarity index 100% rename from src/test/ui/parser/pat-ranges-1.rs rename to tests/ui/parser/pat-ranges-1.rs diff --git a/src/test/ui/parser/pat-ranges-1.stderr b/tests/ui/parser/pat-ranges-1.stderr similarity index 100% rename from src/test/ui/parser/pat-ranges-1.stderr rename to tests/ui/parser/pat-ranges-1.stderr diff --git a/src/test/ui/parser/pat-ranges-2.rs b/tests/ui/parser/pat-ranges-2.rs similarity index 100% rename from src/test/ui/parser/pat-ranges-2.rs rename to tests/ui/parser/pat-ranges-2.rs diff --git a/src/test/ui/parser/pat-ranges-2.stderr b/tests/ui/parser/pat-ranges-2.stderr similarity index 100% rename from src/test/ui/parser/pat-ranges-2.stderr rename to tests/ui/parser/pat-ranges-2.stderr diff --git a/src/test/ui/parser/pat-ranges-3.rs b/tests/ui/parser/pat-ranges-3.rs similarity index 100% rename from src/test/ui/parser/pat-ranges-3.rs rename to tests/ui/parser/pat-ranges-3.rs diff --git a/src/test/ui/parser/pat-ranges-3.stderr b/tests/ui/parser/pat-ranges-3.stderr similarity index 100% rename from src/test/ui/parser/pat-ranges-3.stderr rename to tests/ui/parser/pat-ranges-3.stderr diff --git a/src/test/ui/parser/pat-ranges-4.rs b/tests/ui/parser/pat-ranges-4.rs similarity index 100% rename from src/test/ui/parser/pat-ranges-4.rs rename to tests/ui/parser/pat-ranges-4.rs diff --git a/src/test/ui/parser/pat-ranges-4.stderr b/tests/ui/parser/pat-ranges-4.stderr similarity index 100% rename from src/test/ui/parser/pat-ranges-4.stderr rename to tests/ui/parser/pat-ranges-4.stderr diff --git a/src/test/ui/parser/pat-ref-enum.rs b/tests/ui/parser/pat-ref-enum.rs similarity index 100% rename from src/test/ui/parser/pat-ref-enum.rs rename to tests/ui/parser/pat-ref-enum.rs diff --git a/src/test/ui/parser/pat-ref-enum.stderr b/tests/ui/parser/pat-ref-enum.stderr similarity index 100% rename from src/test/ui/parser/pat-ref-enum.stderr rename to tests/ui/parser/pat-ref-enum.stderr diff --git a/src/test/ui/parser/pat-tuple-1.rs b/tests/ui/parser/pat-tuple-1.rs similarity index 100% rename from src/test/ui/parser/pat-tuple-1.rs rename to tests/ui/parser/pat-tuple-1.rs diff --git a/src/test/ui/parser/pat-tuple-1.stderr b/tests/ui/parser/pat-tuple-1.stderr similarity index 100% rename from src/test/ui/parser/pat-tuple-1.stderr rename to tests/ui/parser/pat-tuple-1.stderr diff --git a/src/test/ui/parser/pat-tuple-2.rs b/tests/ui/parser/pat-tuple-2.rs similarity index 100% rename from src/test/ui/parser/pat-tuple-2.rs rename to tests/ui/parser/pat-tuple-2.rs diff --git a/src/test/ui/parser/pat-tuple-3.rs b/tests/ui/parser/pat-tuple-3.rs similarity index 100% rename from src/test/ui/parser/pat-tuple-3.rs rename to tests/ui/parser/pat-tuple-3.rs diff --git a/src/test/ui/parser/pat-tuple-3.stderr b/tests/ui/parser/pat-tuple-3.stderr similarity index 100% rename from src/test/ui/parser/pat-tuple-3.stderr rename to tests/ui/parser/pat-tuple-3.stderr diff --git a/src/test/ui/parser/pub-method-macro.rs b/tests/ui/parser/pub-method-macro.rs similarity index 100% rename from src/test/ui/parser/pub-method-macro.rs rename to tests/ui/parser/pub-method-macro.rs diff --git a/src/test/ui/parser/pub-method-macro.stderr b/tests/ui/parser/pub-method-macro.stderr similarity index 100% rename from src/test/ui/parser/pub-method-macro.stderr rename to tests/ui/parser/pub-method-macro.stderr diff --git a/src/test/ui/parser/public-instead-of-pub-1.fixed b/tests/ui/parser/public-instead-of-pub-1.fixed similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-1.fixed rename to tests/ui/parser/public-instead-of-pub-1.fixed diff --git a/src/test/ui/parser/public-instead-of-pub-1.rs b/tests/ui/parser/public-instead-of-pub-1.rs similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-1.rs rename to tests/ui/parser/public-instead-of-pub-1.rs diff --git a/src/test/ui/parser/public-instead-of-pub-1.stderr b/tests/ui/parser/public-instead-of-pub-1.stderr similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-1.stderr rename to tests/ui/parser/public-instead-of-pub-1.stderr diff --git a/src/test/ui/parser/public-instead-of-pub-2.rs b/tests/ui/parser/public-instead-of-pub-2.rs similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-2.rs rename to tests/ui/parser/public-instead-of-pub-2.rs diff --git a/src/test/ui/parser/public-instead-of-pub-2.stderr b/tests/ui/parser/public-instead-of-pub-2.stderr similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-2.stderr rename to tests/ui/parser/public-instead-of-pub-2.stderr diff --git a/src/test/ui/parser/public-instead-of-pub-3.fixed b/tests/ui/parser/public-instead-of-pub-3.fixed similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-3.fixed rename to tests/ui/parser/public-instead-of-pub-3.fixed diff --git a/src/test/ui/parser/public-instead-of-pub-3.rs b/tests/ui/parser/public-instead-of-pub-3.rs similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-3.rs rename to tests/ui/parser/public-instead-of-pub-3.rs diff --git a/src/test/ui/parser/public-instead-of-pub-3.stderr b/tests/ui/parser/public-instead-of-pub-3.stderr similarity index 100% rename from src/test/ui/parser/public-instead-of-pub-3.stderr rename to tests/ui/parser/public-instead-of-pub-3.stderr diff --git a/src/test/ui/parser/public-instead-of-pub.fixed b/tests/ui/parser/public-instead-of-pub.fixed similarity index 100% rename from src/test/ui/parser/public-instead-of-pub.fixed rename to tests/ui/parser/public-instead-of-pub.fixed diff --git a/src/test/ui/parser/public-instead-of-pub.rs b/tests/ui/parser/public-instead-of-pub.rs similarity index 100% rename from src/test/ui/parser/public-instead-of-pub.rs rename to tests/ui/parser/public-instead-of-pub.rs diff --git a/src/test/ui/parser/public-instead-of-pub.stderr b/tests/ui/parser/public-instead-of-pub.stderr similarity index 100% rename from src/test/ui/parser/public-instead-of-pub.stderr rename to tests/ui/parser/public-instead-of-pub.stderr diff --git a/src/test/ui/parser/qualified-path-in-turbofish.fixed b/tests/ui/parser/qualified-path-in-turbofish.fixed similarity index 100% rename from src/test/ui/parser/qualified-path-in-turbofish.fixed rename to tests/ui/parser/qualified-path-in-turbofish.fixed diff --git a/src/test/ui/parser/qualified-path-in-turbofish.rs b/tests/ui/parser/qualified-path-in-turbofish.rs similarity index 100% rename from src/test/ui/parser/qualified-path-in-turbofish.rs rename to tests/ui/parser/qualified-path-in-turbofish.rs diff --git a/src/test/ui/parser/qualified-path-in-turbofish.stderr b/tests/ui/parser/qualified-path-in-turbofish.stderr similarity index 100% rename from src/test/ui/parser/qualified-path-in-turbofish.stderr rename to tests/ui/parser/qualified-path-in-turbofish.stderr diff --git a/src/test/ui/parser/range-3.rs b/tests/ui/parser/range-3.rs similarity index 100% rename from src/test/ui/parser/range-3.rs rename to tests/ui/parser/range-3.rs diff --git a/src/test/ui/parser/range-3.stderr b/tests/ui/parser/range-3.stderr similarity index 100% rename from src/test/ui/parser/range-3.stderr rename to tests/ui/parser/range-3.stderr diff --git a/src/test/ui/parser/range-4.rs b/tests/ui/parser/range-4.rs similarity index 100% rename from src/test/ui/parser/range-4.rs rename to tests/ui/parser/range-4.rs diff --git a/src/test/ui/parser/range-4.stderr b/tests/ui/parser/range-4.stderr similarity index 100% rename from src/test/ui/parser/range-4.stderr rename to tests/ui/parser/range-4.stderr diff --git a/src/test/ui/parser/range-inclusive-extra-equals.rs b/tests/ui/parser/range-inclusive-extra-equals.rs similarity index 100% rename from src/test/ui/parser/range-inclusive-extra-equals.rs rename to tests/ui/parser/range-inclusive-extra-equals.rs diff --git a/src/test/ui/parser/range-inclusive-extra-equals.stderr b/tests/ui/parser/range-inclusive-extra-equals.stderr similarity index 100% rename from src/test/ui/parser/range-inclusive-extra-equals.stderr rename to tests/ui/parser/range-inclusive-extra-equals.stderr diff --git a/src/test/ui/parser/range_inclusive.fixed b/tests/ui/parser/range_inclusive.fixed similarity index 100% rename from src/test/ui/parser/range_inclusive.fixed rename to tests/ui/parser/range_inclusive.fixed diff --git a/src/test/ui/parser/range_inclusive.rs b/tests/ui/parser/range_inclusive.rs similarity index 100% rename from src/test/ui/parser/range_inclusive.rs rename to tests/ui/parser/range_inclusive.rs diff --git a/src/test/ui/parser/range_inclusive.stderr b/tests/ui/parser/range_inclusive.stderr similarity index 100% rename from src/test/ui/parser/range_inclusive.stderr rename to tests/ui/parser/range_inclusive.stderr diff --git a/src/test/ui/parser/range_inclusive_dotdotdot.rs b/tests/ui/parser/range_inclusive_dotdotdot.rs similarity index 100% rename from src/test/ui/parser/range_inclusive_dotdotdot.rs rename to tests/ui/parser/range_inclusive_dotdotdot.rs diff --git a/src/test/ui/parser/range_inclusive_dotdotdot.stderr b/tests/ui/parser/range_inclusive_dotdotdot.stderr similarity index 100% rename from src/test/ui/parser/range_inclusive_dotdotdot.stderr rename to tests/ui/parser/range_inclusive_dotdotdot.stderr diff --git a/src/test/ui/parser/ranges-precedence.rs b/tests/ui/parser/ranges-precedence.rs similarity index 100% rename from src/test/ui/parser/ranges-precedence.rs rename to tests/ui/parser/ranges-precedence.rs diff --git a/src/test/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.rs b/tests/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.rs similarity index 100% rename from src/test/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.rs rename to tests/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.rs diff --git a/src/test/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.stderr b/tests/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.stderr similarity index 100% rename from src/test/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.stderr rename to tests/ui/parser/raw/issue-70677-panic-on-unterminated-raw-str-at-eof.stderr diff --git a/src/test/ui/parser/raw/raw-byte-string-eof.rs b/tests/ui/parser/raw/raw-byte-string-eof.rs similarity index 100% rename from src/test/ui/parser/raw/raw-byte-string-eof.rs rename to tests/ui/parser/raw/raw-byte-string-eof.rs diff --git a/src/test/ui/parser/raw/raw-byte-string-eof.stderr b/tests/ui/parser/raw/raw-byte-string-eof.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-byte-string-eof.stderr rename to tests/ui/parser/raw/raw-byte-string-eof.stderr diff --git a/src/test/ui/parser/raw/raw-byte-string-literals.rs b/tests/ui/parser/raw/raw-byte-string-literals.rs similarity index 100% rename from src/test/ui/parser/raw/raw-byte-string-literals.rs rename to tests/ui/parser/raw/raw-byte-string-literals.rs diff --git a/src/test/ui/parser/raw/raw-byte-string-literals.stderr b/tests/ui/parser/raw/raw-byte-string-literals.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-byte-string-literals.stderr rename to tests/ui/parser/raw/raw-byte-string-literals.stderr diff --git a/src/test/ui/parser/raw/raw-literal-keywords.rs b/tests/ui/parser/raw/raw-literal-keywords.rs similarity index 100% rename from src/test/ui/parser/raw/raw-literal-keywords.rs rename to tests/ui/parser/raw/raw-literal-keywords.rs diff --git a/src/test/ui/parser/raw/raw-literal-keywords.stderr b/tests/ui/parser/raw/raw-literal-keywords.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-literal-keywords.stderr rename to tests/ui/parser/raw/raw-literal-keywords.stderr diff --git a/src/test/ui/parser/raw/raw-literal-self.rs b/tests/ui/parser/raw/raw-literal-self.rs similarity index 100% rename from src/test/ui/parser/raw/raw-literal-self.rs rename to tests/ui/parser/raw/raw-literal-self.rs diff --git a/src/test/ui/parser/raw/raw-literal-self.stderr b/tests/ui/parser/raw/raw-literal-self.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-literal-self.stderr rename to tests/ui/parser/raw/raw-literal-self.stderr diff --git a/src/test/ui/parser/raw/raw-literal-underscore.rs b/tests/ui/parser/raw/raw-literal-underscore.rs similarity index 100% rename from src/test/ui/parser/raw/raw-literal-underscore.rs rename to tests/ui/parser/raw/raw-literal-underscore.rs diff --git a/src/test/ui/parser/raw/raw-literal-underscore.stderr b/tests/ui/parser/raw/raw-literal-underscore.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-literal-underscore.stderr rename to tests/ui/parser/raw/raw-literal-underscore.stderr diff --git a/src/test/ui/parser/raw/raw-str-delim.rs b/tests/ui/parser/raw/raw-str-delim.rs similarity index 100% rename from src/test/ui/parser/raw/raw-str-delim.rs rename to tests/ui/parser/raw/raw-str-delim.rs diff --git a/src/test/ui/parser/raw/raw-str-delim.stderr b/tests/ui/parser/raw/raw-str-delim.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-str-delim.stderr rename to tests/ui/parser/raw/raw-str-delim.stderr diff --git a/src/test/ui/parser/raw/raw-str-in-macro-call.rs b/tests/ui/parser/raw/raw-str-in-macro-call.rs similarity index 100% rename from src/test/ui/parser/raw/raw-str-in-macro-call.rs rename to tests/ui/parser/raw/raw-str-in-macro-call.rs diff --git a/src/test/ui/parser/raw/raw-str-unbalanced.rs b/tests/ui/parser/raw/raw-str-unbalanced.rs similarity index 100% rename from src/test/ui/parser/raw/raw-str-unbalanced.rs rename to tests/ui/parser/raw/raw-str-unbalanced.rs diff --git a/src/test/ui/parser/raw/raw-str-unbalanced.stderr b/tests/ui/parser/raw/raw-str-unbalanced.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-str-unbalanced.stderr rename to tests/ui/parser/raw/raw-str-unbalanced.stderr diff --git a/src/test/ui/parser/raw/raw-str-unterminated.rs b/tests/ui/parser/raw/raw-str-unterminated.rs similarity index 100% rename from src/test/ui/parser/raw/raw-str-unterminated.rs rename to tests/ui/parser/raw/raw-str-unterminated.rs diff --git a/src/test/ui/parser/raw/raw-str-unterminated.stderr b/tests/ui/parser/raw/raw-str-unterminated.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-str-unterminated.stderr rename to tests/ui/parser/raw/raw-str-unterminated.stderr diff --git a/src/test/ui/parser/raw/raw-string-2.rs b/tests/ui/parser/raw/raw-string-2.rs similarity index 100% rename from src/test/ui/parser/raw/raw-string-2.rs rename to tests/ui/parser/raw/raw-string-2.rs diff --git a/src/test/ui/parser/raw/raw-string-2.stderr b/tests/ui/parser/raw/raw-string-2.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-string-2.stderr rename to tests/ui/parser/raw/raw-string-2.stderr diff --git a/src/test/ui/parser/raw/raw-string.rs b/tests/ui/parser/raw/raw-string.rs similarity index 100% rename from src/test/ui/parser/raw/raw-string.rs rename to tests/ui/parser/raw/raw-string.rs diff --git a/src/test/ui/parser/raw/raw-string.stderr b/tests/ui/parser/raw/raw-string.stderr similarity index 100% rename from src/test/ui/parser/raw/raw-string.stderr rename to tests/ui/parser/raw/raw-string.stderr diff --git a/src/test/ui/parser/recover-assoc-const-constraint.rs b/tests/ui/parser/recover-assoc-const-constraint.rs similarity index 100% rename from src/test/ui/parser/recover-assoc-const-constraint.rs rename to tests/ui/parser/recover-assoc-const-constraint.rs diff --git a/src/test/ui/parser/recover-assoc-const-constraint.stderr b/tests/ui/parser/recover-assoc-const-constraint.stderr similarity index 100% rename from src/test/ui/parser/recover-assoc-const-constraint.stderr rename to tests/ui/parser/recover-assoc-const-constraint.stderr diff --git a/src/test/ui/parser/recover-assoc-eq-missing-term.rs b/tests/ui/parser/recover-assoc-eq-missing-term.rs similarity index 100% rename from src/test/ui/parser/recover-assoc-eq-missing-term.rs rename to tests/ui/parser/recover-assoc-eq-missing-term.rs diff --git a/src/test/ui/parser/recover-assoc-eq-missing-term.stderr b/tests/ui/parser/recover-assoc-eq-missing-term.stderr similarity index 100% rename from src/test/ui/parser/recover-assoc-eq-missing-term.stderr rename to tests/ui/parser/recover-assoc-eq-missing-term.stderr diff --git a/src/test/ui/parser/recover-assoc-lifetime-constraint.rs b/tests/ui/parser/recover-assoc-lifetime-constraint.rs similarity index 100% rename from src/test/ui/parser/recover-assoc-lifetime-constraint.rs rename to tests/ui/parser/recover-assoc-lifetime-constraint.rs diff --git a/src/test/ui/parser/recover-assoc-lifetime-constraint.stderr b/tests/ui/parser/recover-assoc-lifetime-constraint.stderr similarity index 100% rename from src/test/ui/parser/recover-assoc-lifetime-constraint.stderr rename to tests/ui/parser/recover-assoc-lifetime-constraint.stderr diff --git a/src/test/ui/parser/recover-const-async-fn-ptr.rs b/tests/ui/parser/recover-const-async-fn-ptr.rs similarity index 100% rename from src/test/ui/parser/recover-const-async-fn-ptr.rs rename to tests/ui/parser/recover-const-async-fn-ptr.rs diff --git a/src/test/ui/parser/recover-const-async-fn-ptr.stderr b/tests/ui/parser/recover-const-async-fn-ptr.stderr similarity index 100% rename from src/test/ui/parser/recover-const-async-fn-ptr.stderr rename to tests/ui/parser/recover-const-async-fn-ptr.stderr diff --git a/src/test/ui/parser/recover-enum.rs b/tests/ui/parser/recover-enum.rs similarity index 100% rename from src/test/ui/parser/recover-enum.rs rename to tests/ui/parser/recover-enum.rs diff --git a/src/test/ui/parser/recover-enum.stderr b/tests/ui/parser/recover-enum.stderr similarity index 100% rename from src/test/ui/parser/recover-enum.stderr rename to tests/ui/parser/recover-enum.stderr diff --git a/src/test/ui/parser/recover-enum2.rs b/tests/ui/parser/recover-enum2.rs similarity index 100% rename from src/test/ui/parser/recover-enum2.rs rename to tests/ui/parser/recover-enum2.rs diff --git a/src/test/ui/parser/recover-enum2.stderr b/tests/ui/parser/recover-enum2.stderr similarity index 100% rename from src/test/ui/parser/recover-enum2.stderr rename to tests/ui/parser/recover-enum2.stderr diff --git a/src/test/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.rs b/tests/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.rs similarity index 100% rename from src/test/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.rs rename to tests/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.rs diff --git a/src/test/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.stderr b/tests/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.stderr similarity index 100% rename from src/test/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.stderr rename to tests/ui/parser/recover-field-extra-angle-brackets-in-struct-with-a-field.stderr diff --git a/src/test/ui/parser/recover-field-extra-angle-brackets.rs b/tests/ui/parser/recover-field-extra-angle-brackets.rs similarity index 100% rename from src/test/ui/parser/recover-field-extra-angle-brackets.rs rename to tests/ui/parser/recover-field-extra-angle-brackets.rs diff --git a/src/test/ui/parser/recover-field-extra-angle-brackets.stderr b/tests/ui/parser/recover-field-extra-angle-brackets.stderr similarity index 100% rename from src/test/ui/parser/recover-field-extra-angle-brackets.stderr rename to tests/ui/parser/recover-field-extra-angle-brackets.stderr diff --git a/src/test/ui/parser/recover-field-semi.rs b/tests/ui/parser/recover-field-semi.rs similarity index 100% rename from src/test/ui/parser/recover-field-semi.rs rename to tests/ui/parser/recover-field-semi.rs diff --git a/src/test/ui/parser/recover-field-semi.stderr b/tests/ui/parser/recover-field-semi.stderr similarity index 100% rename from src/test/ui/parser/recover-field-semi.stderr rename to tests/ui/parser/recover-field-semi.stderr diff --git a/src/test/ui/parser/recover-fn-ptr-with-generics.rs b/tests/ui/parser/recover-fn-ptr-with-generics.rs similarity index 100% rename from src/test/ui/parser/recover-fn-ptr-with-generics.rs rename to tests/ui/parser/recover-fn-ptr-with-generics.rs diff --git a/src/test/ui/parser/recover-fn-ptr-with-generics.stderr b/tests/ui/parser/recover-fn-ptr-with-generics.stderr similarity index 100% rename from src/test/ui/parser/recover-fn-ptr-with-generics.stderr rename to tests/ui/parser/recover-fn-ptr-with-generics.stderr diff --git a/src/test/ui/parser/recover-fn-trait-from-fn-kw.rs b/tests/ui/parser/recover-fn-trait-from-fn-kw.rs similarity index 100% rename from src/test/ui/parser/recover-fn-trait-from-fn-kw.rs rename to tests/ui/parser/recover-fn-trait-from-fn-kw.rs diff --git a/src/test/ui/parser/recover-fn-trait-from-fn-kw.stderr b/tests/ui/parser/recover-fn-trait-from-fn-kw.stderr similarity index 100% rename from src/test/ui/parser/recover-fn-trait-from-fn-kw.stderr rename to tests/ui/parser/recover-fn-trait-from-fn-kw.stderr diff --git a/src/test/ui/parser/recover-for-loop-parens-around-head.rs b/tests/ui/parser/recover-for-loop-parens-around-head.rs similarity index 100% rename from src/test/ui/parser/recover-for-loop-parens-around-head.rs rename to tests/ui/parser/recover-for-loop-parens-around-head.rs diff --git a/src/test/ui/parser/recover-for-loop-parens-around-head.stderr b/tests/ui/parser/recover-for-loop-parens-around-head.stderr similarity index 100% rename from src/test/ui/parser/recover-for-loop-parens-around-head.stderr rename to tests/ui/parser/recover-for-loop-parens-around-head.stderr diff --git a/src/test/ui/parser/recover-from-bad-variant.rs b/tests/ui/parser/recover-from-bad-variant.rs similarity index 100% rename from src/test/ui/parser/recover-from-bad-variant.rs rename to tests/ui/parser/recover-from-bad-variant.rs diff --git a/src/test/ui/parser/recover-from-bad-variant.stderr b/tests/ui/parser/recover-from-bad-variant.stderr similarity index 100% rename from src/test/ui/parser/recover-from-bad-variant.stderr rename to tests/ui/parser/recover-from-bad-variant.stderr diff --git a/src/test/ui/parser/recover-from-homoglyph.rs b/tests/ui/parser/recover-from-homoglyph.rs similarity index 100% rename from src/test/ui/parser/recover-from-homoglyph.rs rename to tests/ui/parser/recover-from-homoglyph.rs diff --git a/src/test/ui/parser/recover-from-homoglyph.stderr b/tests/ui/parser/recover-from-homoglyph.stderr similarity index 100% rename from src/test/ui/parser/recover-from-homoglyph.stderr rename to tests/ui/parser/recover-from-homoglyph.stderr diff --git a/src/test/ui/parser/recover-labeled-non-block-expr.fixed b/tests/ui/parser/recover-labeled-non-block-expr.fixed similarity index 100% rename from src/test/ui/parser/recover-labeled-non-block-expr.fixed rename to tests/ui/parser/recover-labeled-non-block-expr.fixed diff --git a/src/test/ui/parser/recover-labeled-non-block-expr.rs b/tests/ui/parser/recover-labeled-non-block-expr.rs similarity index 100% rename from src/test/ui/parser/recover-labeled-non-block-expr.rs rename to tests/ui/parser/recover-labeled-non-block-expr.rs diff --git a/src/test/ui/parser/recover-labeled-non-block-expr.stderr b/tests/ui/parser/recover-labeled-non-block-expr.stderr similarity index 100% rename from src/test/ui/parser/recover-labeled-non-block-expr.stderr rename to tests/ui/parser/recover-labeled-non-block-expr.stderr diff --git a/src/test/ui/parser/recover-missing-semi-before-item.fixed b/tests/ui/parser/recover-missing-semi-before-item.fixed similarity index 100% rename from src/test/ui/parser/recover-missing-semi-before-item.fixed rename to tests/ui/parser/recover-missing-semi-before-item.fixed diff --git a/src/test/ui/parser/recover-missing-semi-before-item.rs b/tests/ui/parser/recover-missing-semi-before-item.rs similarity index 100% rename from src/test/ui/parser/recover-missing-semi-before-item.rs rename to tests/ui/parser/recover-missing-semi-before-item.rs diff --git a/src/test/ui/parser/recover-missing-semi-before-item.stderr b/tests/ui/parser/recover-missing-semi-before-item.stderr similarity index 100% rename from src/test/ui/parser/recover-missing-semi-before-item.stderr rename to tests/ui/parser/recover-missing-semi-before-item.stderr diff --git a/src/test/ui/parser/recover-missing-semi.rs b/tests/ui/parser/recover-missing-semi.rs similarity index 100% rename from src/test/ui/parser/recover-missing-semi.rs rename to tests/ui/parser/recover-missing-semi.rs diff --git a/src/test/ui/parser/recover-missing-semi.stderr b/tests/ui/parser/recover-missing-semi.stderr similarity index 100% rename from src/test/ui/parser/recover-missing-semi.stderr rename to tests/ui/parser/recover-missing-semi.stderr diff --git a/src/test/ui/parser/recover-quantified-closure.rs b/tests/ui/parser/recover-quantified-closure.rs similarity index 100% rename from src/test/ui/parser/recover-quantified-closure.rs rename to tests/ui/parser/recover-quantified-closure.rs diff --git a/src/test/ui/parser/recover-quantified-closure.stderr b/tests/ui/parser/recover-quantified-closure.stderr similarity index 100% rename from src/test/ui/parser/recover-quantified-closure.stderr rename to tests/ui/parser/recover-quantified-closure.stderr diff --git a/src/test/ui/parser/recover-range-pats.rs b/tests/ui/parser/recover-range-pats.rs similarity index 100% rename from src/test/ui/parser/recover-range-pats.rs rename to tests/ui/parser/recover-range-pats.rs diff --git a/src/test/ui/parser/recover-range-pats.stderr b/tests/ui/parser/recover-range-pats.stderr similarity index 100% rename from src/test/ui/parser/recover-range-pats.stderr rename to tests/ui/parser/recover-range-pats.stderr diff --git a/src/test/ui/parser/recover-ref-dyn-mut.rs b/tests/ui/parser/recover-ref-dyn-mut.rs similarity index 100% rename from src/test/ui/parser/recover-ref-dyn-mut.rs rename to tests/ui/parser/recover-ref-dyn-mut.rs diff --git a/src/test/ui/parser/recover-ref-dyn-mut.stderr b/tests/ui/parser/recover-ref-dyn-mut.stderr similarity index 100% rename from src/test/ui/parser/recover-ref-dyn-mut.stderr rename to tests/ui/parser/recover-ref-dyn-mut.stderr diff --git a/src/test/ui/parser/recover-struct.rs b/tests/ui/parser/recover-struct.rs similarity index 100% rename from src/test/ui/parser/recover-struct.rs rename to tests/ui/parser/recover-struct.rs diff --git a/src/test/ui/parser/recover-struct.stderr b/tests/ui/parser/recover-struct.stderr similarity index 100% rename from src/test/ui/parser/recover-struct.stderr rename to tests/ui/parser/recover-struct.stderr diff --git a/src/test/ui/parser/recover-tuple-pat.rs b/tests/ui/parser/recover-tuple-pat.rs similarity index 100% rename from src/test/ui/parser/recover-tuple-pat.rs rename to tests/ui/parser/recover-tuple-pat.rs diff --git a/src/test/ui/parser/recover-tuple-pat.stderr b/tests/ui/parser/recover-tuple-pat.stderr similarity index 100% rename from src/test/ui/parser/recover-tuple-pat.stderr rename to tests/ui/parser/recover-tuple-pat.stderr diff --git a/src/test/ui/parser/recover-tuple.rs b/tests/ui/parser/recover-tuple.rs similarity index 100% rename from src/test/ui/parser/recover-tuple.rs rename to tests/ui/parser/recover-tuple.rs diff --git a/src/test/ui/parser/recover-tuple.stderr b/tests/ui/parser/recover-tuple.stderr similarity index 100% rename from src/test/ui/parser/recover-tuple.stderr rename to tests/ui/parser/recover-tuple.stderr diff --git a/src/test/ui/parser/recovered-struct-variant.rs b/tests/ui/parser/recovered-struct-variant.rs similarity index 100% rename from src/test/ui/parser/recovered-struct-variant.rs rename to tests/ui/parser/recovered-struct-variant.rs diff --git a/src/test/ui/parser/recovered-struct-variant.stderr b/tests/ui/parser/recovered-struct-variant.stderr similarity index 100% rename from src/test/ui/parser/recovered-struct-variant.stderr rename to tests/ui/parser/recovered-struct-variant.stderr diff --git a/src/test/ui/parser/regions-out-of-scope-slice.rs b/tests/ui/parser/regions-out-of-scope-slice.rs similarity index 100% rename from src/test/ui/parser/regions-out-of-scope-slice.rs rename to tests/ui/parser/regions-out-of-scope-slice.rs diff --git a/src/test/ui/parser/regions-out-of-scope-slice.stderr b/tests/ui/parser/regions-out-of-scope-slice.stderr similarity index 100% rename from src/test/ui/parser/regions-out-of-scope-slice.stderr rename to tests/ui/parser/regions-out-of-scope-slice.stderr diff --git a/src/test/ui/parser/removed-syntax-closure-lifetime.rs b/tests/ui/parser/removed-syntax-closure-lifetime.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-closure-lifetime.rs rename to tests/ui/parser/removed-syntax-closure-lifetime.rs diff --git a/src/test/ui/parser/removed-syntax-closure-lifetime.stderr b/tests/ui/parser/removed-syntax-closure-lifetime.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-closure-lifetime.stderr rename to tests/ui/parser/removed-syntax-closure-lifetime.stderr diff --git a/src/test/ui/parser/removed-syntax-enum-newtype.rs b/tests/ui/parser/removed-syntax-enum-newtype.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-enum-newtype.rs rename to tests/ui/parser/removed-syntax-enum-newtype.rs diff --git a/src/test/ui/parser/removed-syntax-enum-newtype.stderr b/tests/ui/parser/removed-syntax-enum-newtype.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-enum-newtype.stderr rename to tests/ui/parser/removed-syntax-enum-newtype.stderr diff --git a/src/test/ui/parser/removed-syntax-field-let-2.rs b/tests/ui/parser/removed-syntax-field-let-2.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-field-let-2.rs rename to tests/ui/parser/removed-syntax-field-let-2.rs diff --git a/src/test/ui/parser/removed-syntax-field-let-2.stderr b/tests/ui/parser/removed-syntax-field-let-2.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-field-let-2.stderr rename to tests/ui/parser/removed-syntax-field-let-2.stderr diff --git a/src/test/ui/parser/removed-syntax-field-let.rs b/tests/ui/parser/removed-syntax-field-let.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-field-let.rs rename to tests/ui/parser/removed-syntax-field-let.rs diff --git a/src/test/ui/parser/removed-syntax-field-let.stderr b/tests/ui/parser/removed-syntax-field-let.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-field-let.stderr rename to tests/ui/parser/removed-syntax-field-let.stderr diff --git a/src/test/ui/parser/removed-syntax-field-semicolon.rs b/tests/ui/parser/removed-syntax-field-semicolon.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-field-semicolon.rs rename to tests/ui/parser/removed-syntax-field-semicolon.rs diff --git a/src/test/ui/parser/removed-syntax-field-semicolon.stderr b/tests/ui/parser/removed-syntax-field-semicolon.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-field-semicolon.stderr rename to tests/ui/parser/removed-syntax-field-semicolon.stderr diff --git a/src/test/ui/parser/removed-syntax-fixed-vec.rs b/tests/ui/parser/removed-syntax-fixed-vec.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-fixed-vec.rs rename to tests/ui/parser/removed-syntax-fixed-vec.rs diff --git a/src/test/ui/parser/removed-syntax-fixed-vec.stderr b/tests/ui/parser/removed-syntax-fixed-vec.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-fixed-vec.stderr rename to tests/ui/parser/removed-syntax-fixed-vec.stderr diff --git a/src/test/ui/parser/removed-syntax-fn-sigil.rs b/tests/ui/parser/removed-syntax-fn-sigil.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-fn-sigil.rs rename to tests/ui/parser/removed-syntax-fn-sigil.rs diff --git a/src/test/ui/parser/removed-syntax-fn-sigil.stderr b/tests/ui/parser/removed-syntax-fn-sigil.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-fn-sigil.stderr rename to tests/ui/parser/removed-syntax-fn-sigil.stderr diff --git a/src/test/ui/parser/removed-syntax-mode.rs b/tests/ui/parser/removed-syntax-mode.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-mode.rs rename to tests/ui/parser/removed-syntax-mode.rs diff --git a/src/test/ui/parser/removed-syntax-mode.stderr b/tests/ui/parser/removed-syntax-mode.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-mode.stderr rename to tests/ui/parser/removed-syntax-mode.stderr diff --git a/src/test/ui/parser/removed-syntax-mut-vec-expr.rs b/tests/ui/parser/removed-syntax-mut-vec-expr.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-mut-vec-expr.rs rename to tests/ui/parser/removed-syntax-mut-vec-expr.rs diff --git a/src/test/ui/parser/removed-syntax-mut-vec-expr.stderr b/tests/ui/parser/removed-syntax-mut-vec-expr.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-mut-vec-expr.stderr rename to tests/ui/parser/removed-syntax-mut-vec-expr.stderr diff --git a/src/test/ui/parser/removed-syntax-mut-vec-ty.rs b/tests/ui/parser/removed-syntax-mut-vec-ty.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-mut-vec-ty.rs rename to tests/ui/parser/removed-syntax-mut-vec-ty.rs diff --git a/src/test/ui/parser/removed-syntax-mut-vec-ty.stderr b/tests/ui/parser/removed-syntax-mut-vec-ty.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-mut-vec-ty.stderr rename to tests/ui/parser/removed-syntax-mut-vec-ty.stderr diff --git a/src/test/ui/parser/removed-syntax-ptr-lifetime.rs b/tests/ui/parser/removed-syntax-ptr-lifetime.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-ptr-lifetime.rs rename to tests/ui/parser/removed-syntax-ptr-lifetime.rs diff --git a/src/test/ui/parser/removed-syntax-ptr-lifetime.stderr b/tests/ui/parser/removed-syntax-ptr-lifetime.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-ptr-lifetime.stderr rename to tests/ui/parser/removed-syntax-ptr-lifetime.stderr diff --git a/src/test/ui/parser/removed-syntax-record.rs b/tests/ui/parser/removed-syntax-record.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-record.rs rename to tests/ui/parser/removed-syntax-record.rs diff --git a/src/test/ui/parser/removed-syntax-record.stderr b/tests/ui/parser/removed-syntax-record.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-record.stderr rename to tests/ui/parser/removed-syntax-record.stderr diff --git a/src/test/ui/parser/removed-syntax-static-fn.rs b/tests/ui/parser/removed-syntax-static-fn.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-static-fn.rs rename to tests/ui/parser/removed-syntax-static-fn.rs diff --git a/src/test/ui/parser/removed-syntax-static-fn.stderr b/tests/ui/parser/removed-syntax-static-fn.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-static-fn.stderr rename to tests/ui/parser/removed-syntax-static-fn.stderr diff --git a/src/test/ui/parser/removed-syntax-uniq-mut-expr.rs b/tests/ui/parser/removed-syntax-uniq-mut-expr.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-uniq-mut-expr.rs rename to tests/ui/parser/removed-syntax-uniq-mut-expr.rs diff --git a/src/test/ui/parser/removed-syntax-uniq-mut-expr.stderr b/tests/ui/parser/removed-syntax-uniq-mut-expr.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-uniq-mut-expr.stderr rename to tests/ui/parser/removed-syntax-uniq-mut-expr.stderr diff --git a/src/test/ui/parser/removed-syntax-uniq-mut-ty.rs b/tests/ui/parser/removed-syntax-uniq-mut-ty.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-uniq-mut-ty.rs rename to tests/ui/parser/removed-syntax-uniq-mut-ty.rs diff --git a/src/test/ui/parser/removed-syntax-uniq-mut-ty.stderr b/tests/ui/parser/removed-syntax-uniq-mut-ty.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-uniq-mut-ty.stderr rename to tests/ui/parser/removed-syntax-uniq-mut-ty.stderr diff --git a/src/test/ui/parser/removed-syntax-with-1.rs b/tests/ui/parser/removed-syntax-with-1.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-with-1.rs rename to tests/ui/parser/removed-syntax-with-1.rs diff --git a/src/test/ui/parser/removed-syntax-with-1.stderr b/tests/ui/parser/removed-syntax-with-1.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-with-1.stderr rename to tests/ui/parser/removed-syntax-with-1.stderr diff --git a/src/test/ui/parser/removed-syntax-with-2.rs b/tests/ui/parser/removed-syntax-with-2.rs similarity index 100% rename from src/test/ui/parser/removed-syntax-with-2.rs rename to tests/ui/parser/removed-syntax-with-2.rs diff --git a/src/test/ui/parser/removed-syntax-with-2.stderr b/tests/ui/parser/removed-syntax-with-2.stderr similarity index 100% rename from src/test/ui/parser/removed-syntax-with-2.stderr rename to tests/ui/parser/removed-syntax-with-2.stderr diff --git a/src/test/ui/parser/require-parens-for-chained-comparison.rs b/tests/ui/parser/require-parens-for-chained-comparison.rs similarity index 100% rename from src/test/ui/parser/require-parens-for-chained-comparison.rs rename to tests/ui/parser/require-parens-for-chained-comparison.rs diff --git a/src/test/ui/parser/require-parens-for-chained-comparison.stderr b/tests/ui/parser/require-parens-for-chained-comparison.stderr similarity index 100% rename from src/test/ui/parser/require-parens-for-chained-comparison.stderr rename to tests/ui/parser/require-parens-for-chained-comparison.stderr diff --git a/src/test/ui/parser/self-in-function-arg.rs b/tests/ui/parser/self-in-function-arg.rs similarity index 100% rename from src/test/ui/parser/self-in-function-arg.rs rename to tests/ui/parser/self-in-function-arg.rs diff --git a/src/test/ui/parser/self-in-function-arg.stderr b/tests/ui/parser/self-in-function-arg.stderr similarity index 100% rename from src/test/ui/parser/self-in-function-arg.stderr rename to tests/ui/parser/self-in-function-arg.stderr diff --git a/src/test/ui/parser/self-param-semantic-fail.rs b/tests/ui/parser/self-param-semantic-fail.rs similarity index 100% rename from src/test/ui/parser/self-param-semantic-fail.rs rename to tests/ui/parser/self-param-semantic-fail.rs diff --git a/src/test/ui/parser/self-param-semantic-fail.stderr b/tests/ui/parser/self-param-semantic-fail.stderr similarity index 100% rename from src/test/ui/parser/self-param-semantic-fail.stderr rename to tests/ui/parser/self-param-semantic-fail.stderr diff --git a/src/test/ui/parser/self-param-syntactic-pass.rs b/tests/ui/parser/self-param-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/self-param-syntactic-pass.rs rename to tests/ui/parser/self-param-syntactic-pass.rs diff --git a/src/test/ui/parser/semi-after-closure-in-macro.rs b/tests/ui/parser/semi-after-closure-in-macro.rs similarity index 100% rename from src/test/ui/parser/semi-after-closure-in-macro.rs rename to tests/ui/parser/semi-after-closure-in-macro.rs diff --git a/src/test/ui/parser/several-carriage-returns-in-doc-comment.rs b/tests/ui/parser/several-carriage-returns-in-doc-comment.rs similarity index 100% rename from src/test/ui/parser/several-carriage-returns-in-doc-comment.rs rename to tests/ui/parser/several-carriage-returns-in-doc-comment.rs diff --git a/src/test/ui/parser/several-carriage-returns-in-doc-comment.stderr b/tests/ui/parser/several-carriage-returns-in-doc-comment.stderr similarity index 100% rename from src/test/ui/parser/several-carriage-returns-in-doc-comment.stderr rename to tests/ui/parser/several-carriage-returns-in-doc-comment.stderr diff --git a/src/test/ui/parser/shebang/issue-71471-ignore-tidy.rs b/tests/ui/parser/shebang/issue-71471-ignore-tidy.rs similarity index 100% rename from src/test/ui/parser/shebang/issue-71471-ignore-tidy.rs rename to tests/ui/parser/shebang/issue-71471-ignore-tidy.rs diff --git a/src/test/ui/parser/shebang/issue-71471-ignore-tidy.stderr b/tests/ui/parser/shebang/issue-71471-ignore-tidy.stderr similarity index 100% rename from src/test/ui/parser/shebang/issue-71471-ignore-tidy.stderr rename to tests/ui/parser/shebang/issue-71471-ignore-tidy.stderr diff --git a/src/test/ui/parser/shebang/multiline-attrib.rs b/tests/ui/parser/shebang/multiline-attrib.rs similarity index 100% rename from src/test/ui/parser/shebang/multiline-attrib.rs rename to tests/ui/parser/shebang/multiline-attrib.rs diff --git a/src/test/ui/parser/shebang/regular-attrib.rs b/tests/ui/parser/shebang/regular-attrib.rs similarity index 100% rename from src/test/ui/parser/shebang/regular-attrib.rs rename to tests/ui/parser/shebang/regular-attrib.rs diff --git a/src/test/ui/parser/shebang/shebang-and-attrib.rs b/tests/ui/parser/shebang/shebang-and-attrib.rs similarity index 100% rename from src/test/ui/parser/shebang/shebang-and-attrib.rs rename to tests/ui/parser/shebang/shebang-and-attrib.rs diff --git a/src/test/ui/parser/shebang/shebang-comment.rs b/tests/ui/parser/shebang/shebang-comment.rs similarity index 100% rename from src/test/ui/parser/shebang/shebang-comment.rs rename to tests/ui/parser/shebang/shebang-comment.rs diff --git a/src/test/ui/parser/shebang/shebang-doc-comment.rs b/tests/ui/parser/shebang/shebang-doc-comment.rs similarity index 100% rename from src/test/ui/parser/shebang/shebang-doc-comment.rs rename to tests/ui/parser/shebang/shebang-doc-comment.rs diff --git a/src/test/ui/parser/shebang/shebang-doc-comment.stderr b/tests/ui/parser/shebang/shebang-doc-comment.stderr similarity index 100% rename from src/test/ui/parser/shebang/shebang-doc-comment.stderr rename to tests/ui/parser/shebang/shebang-doc-comment.stderr diff --git a/src/test/ui/parser/shebang/shebang-empty.rs b/tests/ui/parser/shebang/shebang-empty.rs similarity index 100% rename from src/test/ui/parser/shebang/shebang-empty.rs rename to tests/ui/parser/shebang/shebang-empty.rs diff --git a/src/test/ui/parser/shebang/shebang-must-start-file.rs b/tests/ui/parser/shebang/shebang-must-start-file.rs similarity index 100% rename from src/test/ui/parser/shebang/shebang-must-start-file.rs rename to tests/ui/parser/shebang/shebang-must-start-file.rs diff --git a/src/test/ui/parser/shebang/shebang-must-start-file.stderr b/tests/ui/parser/shebang/shebang-must-start-file.stderr similarity index 100% rename from src/test/ui/parser/shebang/shebang-must-start-file.stderr rename to tests/ui/parser/shebang/shebang-must-start-file.stderr diff --git a/src/test/ui/parser/shebang/shebang-space.rs b/tests/ui/parser/shebang/shebang-space.rs similarity index 100% rename from src/test/ui/parser/shebang/shebang-space.rs rename to tests/ui/parser/shebang/shebang-space.rs diff --git a/src/test/ui/parser/shebang/sneaky-attrib.rs b/tests/ui/parser/shebang/sneaky-attrib.rs similarity index 100% rename from src/test/ui/parser/shebang/sneaky-attrib.rs rename to tests/ui/parser/shebang/sneaky-attrib.rs diff --git a/src/test/ui/parser/shebang/valid-shebang.rs b/tests/ui/parser/shebang/valid-shebang.rs similarity index 100% rename from src/test/ui/parser/shebang/valid-shebang.rs rename to tests/ui/parser/shebang/valid-shebang.rs diff --git a/src/test/ui/parser/similar-tokens.rs b/tests/ui/parser/similar-tokens.rs similarity index 100% rename from src/test/ui/parser/similar-tokens.rs rename to tests/ui/parser/similar-tokens.rs diff --git a/src/test/ui/parser/similar-tokens.stderr b/tests/ui/parser/similar-tokens.stderr similarity index 100% rename from src/test/ui/parser/similar-tokens.stderr rename to tests/ui/parser/similar-tokens.stderr diff --git a/src/test/ui/parser/slowparse-bstring.rs b/tests/ui/parser/slowparse-bstring.rs similarity index 100% rename from src/test/ui/parser/slowparse-bstring.rs rename to tests/ui/parser/slowparse-bstring.rs diff --git a/src/test/ui/parser/slowparse-string.rs b/tests/ui/parser/slowparse-string.rs similarity index 100% rename from src/test/ui/parser/slowparse-string.rs rename to tests/ui/parser/slowparse-string.rs diff --git a/src/test/ui/parser/stmt_expr_attrs_placement.rs b/tests/ui/parser/stmt_expr_attrs_placement.rs similarity index 100% rename from src/test/ui/parser/stmt_expr_attrs_placement.rs rename to tests/ui/parser/stmt_expr_attrs_placement.rs diff --git a/src/test/ui/parser/stmt_expr_attrs_placement.stderr b/tests/ui/parser/stmt_expr_attrs_placement.stderr similarity index 100% rename from src/test/ui/parser/stmt_expr_attrs_placement.stderr rename to tests/ui/parser/stmt_expr_attrs_placement.stderr diff --git a/src/test/ui/parser/stripped-nested-outline-mod-pass.rs b/tests/ui/parser/stripped-nested-outline-mod-pass.rs similarity index 100% rename from src/test/ui/parser/stripped-nested-outline-mod-pass.rs rename to tests/ui/parser/stripped-nested-outline-mod-pass.rs diff --git a/src/test/ui/parser/struct-default-values-and-missing-field-separator.fixed b/tests/ui/parser/struct-default-values-and-missing-field-separator.fixed similarity index 100% rename from src/test/ui/parser/struct-default-values-and-missing-field-separator.fixed rename to tests/ui/parser/struct-default-values-and-missing-field-separator.fixed diff --git a/src/test/ui/parser/struct-default-values-and-missing-field-separator.rs b/tests/ui/parser/struct-default-values-and-missing-field-separator.rs similarity index 100% rename from src/test/ui/parser/struct-default-values-and-missing-field-separator.rs rename to tests/ui/parser/struct-default-values-and-missing-field-separator.rs diff --git a/src/test/ui/parser/struct-default-values-and-missing-field-separator.stderr b/tests/ui/parser/struct-default-values-and-missing-field-separator.stderr similarity index 100% rename from src/test/ui/parser/struct-default-values-and-missing-field-separator.stderr rename to tests/ui/parser/struct-default-values-and-missing-field-separator.stderr diff --git a/src/test/ui/parser/struct-field-numeric-shorthand.rs b/tests/ui/parser/struct-field-numeric-shorthand.rs similarity index 100% rename from src/test/ui/parser/struct-field-numeric-shorthand.rs rename to tests/ui/parser/struct-field-numeric-shorthand.rs diff --git a/src/test/ui/parser/struct-field-numeric-shorthand.stderr b/tests/ui/parser/struct-field-numeric-shorthand.stderr similarity index 100% rename from src/test/ui/parser/struct-field-numeric-shorthand.stderr rename to tests/ui/parser/struct-field-numeric-shorthand.stderr diff --git a/src/test/ui/parser/struct-filed-with-attr.fixed b/tests/ui/parser/struct-filed-with-attr.fixed similarity index 100% rename from src/test/ui/parser/struct-filed-with-attr.fixed rename to tests/ui/parser/struct-filed-with-attr.fixed diff --git a/src/test/ui/parser/struct-filed-with-attr.rs b/tests/ui/parser/struct-filed-with-attr.rs similarity index 100% rename from src/test/ui/parser/struct-filed-with-attr.rs rename to tests/ui/parser/struct-filed-with-attr.rs diff --git a/src/test/ui/parser/struct-filed-with-attr.stderr b/tests/ui/parser/struct-filed-with-attr.stderr similarity index 100% rename from src/test/ui/parser/struct-filed-with-attr.stderr rename to tests/ui/parser/struct-filed-with-attr.stderr diff --git a/src/test/ui/parser/struct-literal-in-for.rs b/tests/ui/parser/struct-literal-in-for.rs similarity index 100% rename from src/test/ui/parser/struct-literal-in-for.rs rename to tests/ui/parser/struct-literal-in-for.rs diff --git a/src/test/ui/parser/struct-literal-in-for.stderr b/tests/ui/parser/struct-literal-in-for.stderr similarity index 100% rename from src/test/ui/parser/struct-literal-in-for.stderr rename to tests/ui/parser/struct-literal-in-for.stderr diff --git a/src/test/ui/parser/struct-literal-in-if.rs b/tests/ui/parser/struct-literal-in-if.rs similarity index 100% rename from src/test/ui/parser/struct-literal-in-if.rs rename to tests/ui/parser/struct-literal-in-if.rs diff --git a/src/test/ui/parser/struct-literal-in-if.stderr b/tests/ui/parser/struct-literal-in-if.stderr similarity index 100% rename from src/test/ui/parser/struct-literal-in-if.stderr rename to tests/ui/parser/struct-literal-in-if.stderr diff --git a/src/test/ui/parser/struct-literal-in-match-discriminant.rs b/tests/ui/parser/struct-literal-in-match-discriminant.rs similarity index 100% rename from src/test/ui/parser/struct-literal-in-match-discriminant.rs rename to tests/ui/parser/struct-literal-in-match-discriminant.rs diff --git a/src/test/ui/parser/struct-literal-in-match-discriminant.stderr b/tests/ui/parser/struct-literal-in-match-discriminant.stderr similarity index 100% rename from src/test/ui/parser/struct-literal-in-match-discriminant.stderr rename to tests/ui/parser/struct-literal-in-match-discriminant.stderr diff --git a/src/test/ui/parser/struct-literal-in-match-guard.rs b/tests/ui/parser/struct-literal-in-match-guard.rs similarity index 100% rename from src/test/ui/parser/struct-literal-in-match-guard.rs rename to tests/ui/parser/struct-literal-in-match-guard.rs diff --git a/src/test/ui/parser/struct-literal-in-while.rs b/tests/ui/parser/struct-literal-in-while.rs similarity index 100% rename from src/test/ui/parser/struct-literal-in-while.rs rename to tests/ui/parser/struct-literal-in-while.rs diff --git a/src/test/ui/parser/struct-literal-in-while.stderr b/tests/ui/parser/struct-literal-in-while.stderr similarity index 100% rename from src/test/ui/parser/struct-literal-in-while.stderr rename to tests/ui/parser/struct-literal-in-while.stderr diff --git a/src/test/ui/parser/struct-literal-restrictions-in-lamda.rs b/tests/ui/parser/struct-literal-restrictions-in-lamda.rs similarity index 100% rename from src/test/ui/parser/struct-literal-restrictions-in-lamda.rs rename to tests/ui/parser/struct-literal-restrictions-in-lamda.rs diff --git a/src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr b/tests/ui/parser/struct-literal-restrictions-in-lamda.stderr similarity index 100% rename from src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr rename to tests/ui/parser/struct-literal-restrictions-in-lamda.stderr diff --git a/src/test/ui/parser/struct-literal-variant-in-if.rs b/tests/ui/parser/struct-literal-variant-in-if.rs similarity index 100% rename from src/test/ui/parser/struct-literal-variant-in-if.rs rename to tests/ui/parser/struct-literal-variant-in-if.rs diff --git a/src/test/ui/parser/struct-literal-variant-in-if.stderr b/tests/ui/parser/struct-literal-variant-in-if.stderr similarity index 100% rename from src/test/ui/parser/struct-literal-variant-in-if.stderr rename to tests/ui/parser/struct-literal-variant-in-if.stderr diff --git a/src/test/ui/parser/suggest-assoc-const.fixed b/tests/ui/parser/suggest-assoc-const.fixed similarity index 100% rename from src/test/ui/parser/suggest-assoc-const.fixed rename to tests/ui/parser/suggest-assoc-const.fixed diff --git a/src/test/ui/parser/suggest-assoc-const.rs b/tests/ui/parser/suggest-assoc-const.rs similarity index 100% rename from src/test/ui/parser/suggest-assoc-const.rs rename to tests/ui/parser/suggest-assoc-const.rs diff --git a/src/test/ui/parser/suggest-assoc-const.stderr b/tests/ui/parser/suggest-assoc-const.stderr similarity index 100% rename from src/test/ui/parser/suggest-assoc-const.stderr rename to tests/ui/parser/suggest-assoc-const.stderr diff --git a/src/test/ui/parser/suggest-const-for-global-var.rs b/tests/ui/parser/suggest-const-for-global-var.rs similarity index 100% rename from src/test/ui/parser/suggest-const-for-global-var.rs rename to tests/ui/parser/suggest-const-for-global-var.rs diff --git a/src/test/ui/parser/suggest-const-for-global-var.stderr b/tests/ui/parser/suggest-const-for-global-var.stderr similarity index 100% rename from src/test/ui/parser/suggest-const-for-global-var.stderr rename to tests/ui/parser/suggest-const-for-global-var.stderr diff --git a/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.fixed b/tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.fixed similarity index 100% rename from src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.fixed rename to tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.fixed diff --git a/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs b/tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs similarity index 100% rename from src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs rename to tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs diff --git a/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.stderr b/tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.stderr similarity index 100% rename from src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.stderr rename to tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.stderr diff --git a/src/test/ui/parser/suggest-semi-in-array.rs b/tests/ui/parser/suggest-semi-in-array.rs similarity index 100% rename from src/test/ui/parser/suggest-semi-in-array.rs rename to tests/ui/parser/suggest-semi-in-array.rs diff --git a/src/test/ui/parser/suggest-semi-in-array.stderr b/tests/ui/parser/suggest-semi-in-array.stderr similarity index 100% rename from src/test/ui/parser/suggest-semi-in-array.stderr rename to tests/ui/parser/suggest-semi-in-array.stderr diff --git a/src/test/ui/parser/suggest-semicolon-before-array.fixed b/tests/ui/parser/suggest-semicolon-before-array.fixed similarity index 100% rename from src/test/ui/parser/suggest-semicolon-before-array.fixed rename to tests/ui/parser/suggest-semicolon-before-array.fixed diff --git a/src/test/ui/parser/suggest-semicolon-before-array.rs b/tests/ui/parser/suggest-semicolon-before-array.rs similarity index 100% rename from src/test/ui/parser/suggest-semicolon-before-array.rs rename to tests/ui/parser/suggest-semicolon-before-array.rs diff --git a/src/test/ui/parser/suggest-semicolon-before-array.stderr b/tests/ui/parser/suggest-semicolon-before-array.stderr similarity index 100% rename from src/test/ui/parser/suggest-semicolon-before-array.stderr rename to tests/ui/parser/suggest-semicolon-before-array.stderr diff --git a/src/test/ui/parser/trailing-carriage-return-in-string.rs b/tests/ui/parser/trailing-carriage-return-in-string.rs similarity index 100% rename from src/test/ui/parser/trailing-carriage-return-in-string.rs rename to tests/ui/parser/trailing-carriage-return-in-string.rs diff --git a/src/test/ui/parser/trailing-carriage-return-in-string.stderr b/tests/ui/parser/trailing-carriage-return-in-string.stderr similarity index 100% rename from src/test/ui/parser/trailing-carriage-return-in-string.stderr rename to tests/ui/parser/trailing-carriage-return-in-string.stderr diff --git a/src/test/ui/parser/trailing-plus-in-bounds.rs b/tests/ui/parser/trailing-plus-in-bounds.rs similarity index 100% rename from src/test/ui/parser/trailing-plus-in-bounds.rs rename to tests/ui/parser/trailing-plus-in-bounds.rs diff --git a/src/test/ui/parser/trailing-question-in-macro-type.rs b/tests/ui/parser/trailing-question-in-macro-type.rs similarity index 100% rename from src/test/ui/parser/trailing-question-in-macro-type.rs rename to tests/ui/parser/trailing-question-in-macro-type.rs diff --git a/src/test/ui/parser/trailing-question-in-macro-type.stderr b/tests/ui/parser/trailing-question-in-macro-type.stderr similarity index 100% rename from src/test/ui/parser/trailing-question-in-macro-type.stderr rename to tests/ui/parser/trailing-question-in-macro-type.stderr diff --git a/src/test/ui/parser/trailing-question-in-type.fixed b/tests/ui/parser/trailing-question-in-type.fixed similarity index 100% rename from src/test/ui/parser/trailing-question-in-type.fixed rename to tests/ui/parser/trailing-question-in-type.fixed diff --git a/src/test/ui/parser/trailing-question-in-type.rs b/tests/ui/parser/trailing-question-in-type.rs similarity index 100% rename from src/test/ui/parser/trailing-question-in-type.rs rename to tests/ui/parser/trailing-question-in-type.rs diff --git a/src/test/ui/parser/trailing-question-in-type.stderr b/tests/ui/parser/trailing-question-in-type.stderr similarity index 100% rename from src/test/ui/parser/trailing-question-in-type.stderr rename to tests/ui/parser/trailing-question-in-type.stderr diff --git a/src/test/ui/parser/trait-bounds-not-on-impl.rs b/tests/ui/parser/trait-bounds-not-on-impl.rs similarity index 100% rename from src/test/ui/parser/trait-bounds-not-on-impl.rs rename to tests/ui/parser/trait-bounds-not-on-impl.rs diff --git a/src/test/ui/parser/trait-bounds-not-on-impl.stderr b/tests/ui/parser/trait-bounds-not-on-impl.stderr similarity index 100% rename from src/test/ui/parser/trait-bounds-not-on-impl.stderr rename to tests/ui/parser/trait-bounds-not-on-impl.stderr diff --git a/src/test/ui/parser/trait-item-with-defaultness-fail-semantic.rs b/tests/ui/parser/trait-item-with-defaultness-fail-semantic.rs similarity index 100% rename from src/test/ui/parser/trait-item-with-defaultness-fail-semantic.rs rename to tests/ui/parser/trait-item-with-defaultness-fail-semantic.rs diff --git a/src/test/ui/parser/trait-item-with-defaultness-fail-semantic.stderr b/tests/ui/parser/trait-item-with-defaultness-fail-semantic.stderr similarity index 100% rename from src/test/ui/parser/trait-item-with-defaultness-fail-semantic.stderr rename to tests/ui/parser/trait-item-with-defaultness-fail-semantic.stderr diff --git a/src/test/ui/parser/trait-item-with-defaultness-pass.rs b/tests/ui/parser/trait-item-with-defaultness-pass.rs similarity index 100% rename from src/test/ui/parser/trait-item-with-defaultness-pass.rs rename to tests/ui/parser/trait-item-with-defaultness-pass.rs diff --git a/src/test/ui/parser/trait-object-bad-parens.rs b/tests/ui/parser/trait-object-bad-parens.rs similarity index 100% rename from src/test/ui/parser/trait-object-bad-parens.rs rename to tests/ui/parser/trait-object-bad-parens.rs diff --git a/src/test/ui/parser/trait-object-bad-parens.stderr b/tests/ui/parser/trait-object-bad-parens.stderr similarity index 100% rename from src/test/ui/parser/trait-object-bad-parens.stderr rename to tests/ui/parser/trait-object-bad-parens.stderr diff --git a/src/test/ui/parser/trait-object-delimiters.rs b/tests/ui/parser/trait-object-delimiters.rs similarity index 100% rename from src/test/ui/parser/trait-object-delimiters.rs rename to tests/ui/parser/trait-object-delimiters.rs diff --git a/src/test/ui/parser/trait-object-delimiters.stderr b/tests/ui/parser/trait-object-delimiters.stderr similarity index 100% rename from src/test/ui/parser/trait-object-delimiters.stderr rename to tests/ui/parser/trait-object-delimiters.stderr diff --git a/src/test/ui/parser/trait-object-lifetime-parens.rs b/tests/ui/parser/trait-object-lifetime-parens.rs similarity index 100% rename from src/test/ui/parser/trait-object-lifetime-parens.rs rename to tests/ui/parser/trait-object-lifetime-parens.rs diff --git a/src/test/ui/parser/trait-object-lifetime-parens.stderr b/tests/ui/parser/trait-object-lifetime-parens.stderr similarity index 100% rename from src/test/ui/parser/trait-object-lifetime-parens.stderr rename to tests/ui/parser/trait-object-lifetime-parens.stderr diff --git a/src/test/ui/parser/trait-object-polytrait-priority.rs b/tests/ui/parser/trait-object-polytrait-priority.rs similarity index 100% rename from src/test/ui/parser/trait-object-polytrait-priority.rs rename to tests/ui/parser/trait-object-polytrait-priority.rs diff --git a/src/test/ui/parser/trait-object-polytrait-priority.stderr b/tests/ui/parser/trait-object-polytrait-priority.stderr similarity index 100% rename from src/test/ui/parser/trait-object-polytrait-priority.stderr rename to tests/ui/parser/trait-object-polytrait-priority.stderr diff --git a/src/test/ui/parser/trait-object-trait-parens.rs b/tests/ui/parser/trait-object-trait-parens.rs similarity index 100% rename from src/test/ui/parser/trait-object-trait-parens.rs rename to tests/ui/parser/trait-object-trait-parens.rs diff --git a/src/test/ui/parser/trait-object-trait-parens.stderr b/tests/ui/parser/trait-object-trait-parens.stderr similarity index 100% rename from src/test/ui/parser/trait-object-trait-parens.stderr rename to tests/ui/parser/trait-object-trait-parens.stderr diff --git a/src/test/ui/parser/trait-plusequal-splitting.rs b/tests/ui/parser/trait-plusequal-splitting.rs similarity index 100% rename from src/test/ui/parser/trait-plusequal-splitting.rs rename to tests/ui/parser/trait-plusequal-splitting.rs diff --git a/src/test/ui/parser/trait-pub-assoc-const.rs b/tests/ui/parser/trait-pub-assoc-const.rs similarity index 100% rename from src/test/ui/parser/trait-pub-assoc-const.rs rename to tests/ui/parser/trait-pub-assoc-const.rs diff --git a/src/test/ui/parser/trait-pub-assoc-const.stderr b/tests/ui/parser/trait-pub-assoc-const.stderr similarity index 100% rename from src/test/ui/parser/trait-pub-assoc-const.stderr rename to tests/ui/parser/trait-pub-assoc-const.stderr diff --git a/src/test/ui/parser/trait-pub-assoc-ty.rs b/tests/ui/parser/trait-pub-assoc-ty.rs similarity index 100% rename from src/test/ui/parser/trait-pub-assoc-ty.rs rename to tests/ui/parser/trait-pub-assoc-ty.rs diff --git a/src/test/ui/parser/trait-pub-assoc-ty.stderr b/tests/ui/parser/trait-pub-assoc-ty.stderr similarity index 100% rename from src/test/ui/parser/trait-pub-assoc-ty.stderr rename to tests/ui/parser/trait-pub-assoc-ty.stderr diff --git a/src/test/ui/parser/trait-pub-method.rs b/tests/ui/parser/trait-pub-method.rs similarity index 100% rename from src/test/ui/parser/trait-pub-method.rs rename to tests/ui/parser/trait-pub-method.rs diff --git a/src/test/ui/parser/trait-pub-method.stderr b/tests/ui/parser/trait-pub-method.stderr similarity index 100% rename from src/test/ui/parser/trait-pub-method.stderr rename to tests/ui/parser/trait-pub-method.stderr diff --git a/src/test/ui/parser/type-alias-where-fixable.fixed b/tests/ui/parser/type-alias-where-fixable.fixed similarity index 100% rename from src/test/ui/parser/type-alias-where-fixable.fixed rename to tests/ui/parser/type-alias-where-fixable.fixed diff --git a/src/test/ui/parser/type-alias-where-fixable.rs b/tests/ui/parser/type-alias-where-fixable.rs similarity index 100% rename from src/test/ui/parser/type-alias-where-fixable.rs rename to tests/ui/parser/type-alias-where-fixable.rs diff --git a/src/test/ui/parser/type-alias-where-fixable.stderr b/tests/ui/parser/type-alias-where-fixable.stderr similarity index 100% rename from src/test/ui/parser/type-alias-where-fixable.stderr rename to tests/ui/parser/type-alias-where-fixable.stderr diff --git a/src/test/ui/parser/type-alias-where.rs b/tests/ui/parser/type-alias-where.rs similarity index 100% rename from src/test/ui/parser/type-alias-where.rs rename to tests/ui/parser/type-alias-where.rs diff --git a/src/test/ui/parser/type-alias-where.stderr b/tests/ui/parser/type-alias-where.stderr similarity index 100% rename from src/test/ui/parser/type-alias-where.stderr rename to tests/ui/parser/type-alias-where.stderr diff --git a/src/test/ui/parser/type-parameters-in-field-exprs.rs b/tests/ui/parser/type-parameters-in-field-exprs.rs similarity index 100% rename from src/test/ui/parser/type-parameters-in-field-exprs.rs rename to tests/ui/parser/type-parameters-in-field-exprs.rs diff --git a/src/test/ui/parser/type-parameters-in-field-exprs.stderr b/tests/ui/parser/type-parameters-in-field-exprs.stderr similarity index 100% rename from src/test/ui/parser/type-parameters-in-field-exprs.stderr rename to tests/ui/parser/type-parameters-in-field-exprs.stderr diff --git a/src/test/ui/parser/unbalanced-doublequote.rs b/tests/ui/parser/unbalanced-doublequote.rs similarity index 100% rename from src/test/ui/parser/unbalanced-doublequote.rs rename to tests/ui/parser/unbalanced-doublequote.rs diff --git a/src/test/ui/parser/unbalanced-doublequote.stderr b/tests/ui/parser/unbalanced-doublequote.stderr similarity index 100% rename from src/test/ui/parser/unbalanced-doublequote.stderr rename to tests/ui/parser/unbalanced-doublequote.stderr diff --git a/src/test/ui/parser/unclosed-braces.rs b/tests/ui/parser/unclosed-braces.rs similarity index 100% rename from src/test/ui/parser/unclosed-braces.rs rename to tests/ui/parser/unclosed-braces.rs diff --git a/src/test/ui/parser/unclosed-braces.stderr b/tests/ui/parser/unclosed-braces.stderr similarity index 100% rename from src/test/ui/parser/unclosed-braces.stderr rename to tests/ui/parser/unclosed-braces.stderr diff --git a/src/test/ui/parser/unclosed-delimiter-in-dep.rs b/tests/ui/parser/unclosed-delimiter-in-dep.rs similarity index 100% rename from src/test/ui/parser/unclosed-delimiter-in-dep.rs rename to tests/ui/parser/unclosed-delimiter-in-dep.rs diff --git a/src/test/ui/parser/unclosed-delimiter-in-dep.stderr b/tests/ui/parser/unclosed-delimiter-in-dep.stderr similarity index 100% rename from src/test/ui/parser/unclosed-delimiter-in-dep.stderr rename to tests/ui/parser/unclosed-delimiter-in-dep.stderr diff --git a/src/test/ui/parser/unclosed_delim_mod.rs b/tests/ui/parser/unclosed_delim_mod.rs similarity index 100% rename from src/test/ui/parser/unclosed_delim_mod.rs rename to tests/ui/parser/unclosed_delim_mod.rs diff --git a/src/test/ui/parser/unclosed_delim_mod.stderr b/tests/ui/parser/unclosed_delim_mod.stderr similarity index 100% rename from src/test/ui/parser/unclosed_delim_mod.stderr rename to tests/ui/parser/unclosed_delim_mod.stderr diff --git a/src/test/ui/parser/underscore-suffix-for-float.rs b/tests/ui/parser/underscore-suffix-for-float.rs similarity index 100% rename from src/test/ui/parser/underscore-suffix-for-float.rs rename to tests/ui/parser/underscore-suffix-for-float.rs diff --git a/src/test/ui/parser/underscore-suffix-for-float.stderr b/tests/ui/parser/underscore-suffix-for-float.stderr similarity index 100% rename from src/test/ui/parser/underscore-suffix-for-float.stderr rename to tests/ui/parser/underscore-suffix-for-float.stderr diff --git a/src/test/ui/parser/underscore-suffix-for-string.rs b/tests/ui/parser/underscore-suffix-for-string.rs similarity index 100% rename from src/test/ui/parser/underscore-suffix-for-string.rs rename to tests/ui/parser/underscore-suffix-for-string.rs diff --git a/src/test/ui/parser/underscore-suffix-for-string.stderr b/tests/ui/parser/underscore-suffix-for-string.stderr similarity index 100% rename from src/test/ui/parser/underscore-suffix-for-string.stderr rename to tests/ui/parser/underscore-suffix-for-string.stderr diff --git a/src/test/ui/parser/underscore_item_not_const.rs b/tests/ui/parser/underscore_item_not_const.rs similarity index 100% rename from src/test/ui/parser/underscore_item_not_const.rs rename to tests/ui/parser/underscore_item_not_const.rs diff --git a/src/test/ui/parser/underscore_item_not_const.stderr b/tests/ui/parser/underscore_item_not_const.stderr similarity index 100% rename from src/test/ui/parser/underscore_item_not_const.stderr rename to tests/ui/parser/underscore_item_not_const.stderr diff --git a/src/test/ui/parser/unicode-character-literal.fixed b/tests/ui/parser/unicode-character-literal.fixed similarity index 100% rename from src/test/ui/parser/unicode-character-literal.fixed rename to tests/ui/parser/unicode-character-literal.fixed diff --git a/src/test/ui/parser/unicode-character-literal.rs b/tests/ui/parser/unicode-character-literal.rs similarity index 100% rename from src/test/ui/parser/unicode-character-literal.rs rename to tests/ui/parser/unicode-character-literal.rs diff --git a/src/test/ui/parser/unicode-character-literal.stderr b/tests/ui/parser/unicode-character-literal.stderr similarity index 100% rename from src/test/ui/parser/unicode-character-literal.stderr rename to tests/ui/parser/unicode-character-literal.stderr diff --git a/src/test/ui/parser/unicode-chars.rs b/tests/ui/parser/unicode-chars.rs similarity index 100% rename from src/test/ui/parser/unicode-chars.rs rename to tests/ui/parser/unicode-chars.rs diff --git a/src/test/ui/parser/unicode-chars.stderr b/tests/ui/parser/unicode-chars.stderr similarity index 100% rename from src/test/ui/parser/unicode-chars.stderr rename to tests/ui/parser/unicode-chars.stderr diff --git a/src/test/ui/parser/unicode-control-codepoints.rs b/tests/ui/parser/unicode-control-codepoints.rs similarity index 100% rename from src/test/ui/parser/unicode-control-codepoints.rs rename to tests/ui/parser/unicode-control-codepoints.rs diff --git a/src/test/ui/parser/unicode-control-codepoints.stderr b/tests/ui/parser/unicode-control-codepoints.stderr similarity index 100% rename from src/test/ui/parser/unicode-control-codepoints.stderr rename to tests/ui/parser/unicode-control-codepoints.stderr diff --git a/src/test/ui/parser/unicode-quote-chars.rs b/tests/ui/parser/unicode-quote-chars.rs similarity index 100% rename from src/test/ui/parser/unicode-quote-chars.rs rename to tests/ui/parser/unicode-quote-chars.rs diff --git a/src/test/ui/parser/unicode-quote-chars.stderr b/tests/ui/parser/unicode-quote-chars.stderr similarity index 100% rename from src/test/ui/parser/unicode-quote-chars.stderr rename to tests/ui/parser/unicode-quote-chars.stderr diff --git a/src/test/ui/parser/unmatched-delimiter-at-end-of-file.rs b/tests/ui/parser/unmatched-delimiter-at-end-of-file.rs similarity index 100% rename from src/test/ui/parser/unmatched-delimiter-at-end-of-file.rs rename to tests/ui/parser/unmatched-delimiter-at-end-of-file.rs diff --git a/src/test/ui/parser/unmatched-delimiter-at-end-of-file.stderr b/tests/ui/parser/unmatched-delimiter-at-end-of-file.stderr similarity index 100% rename from src/test/ui/parser/unmatched-delimiter-at-end-of-file.stderr rename to tests/ui/parser/unmatched-delimiter-at-end-of-file.stderr diff --git a/src/test/ui/parser/unmatched-langle-1.rs b/tests/ui/parser/unmatched-langle-1.rs similarity index 100% rename from src/test/ui/parser/unmatched-langle-1.rs rename to tests/ui/parser/unmatched-langle-1.rs diff --git a/src/test/ui/parser/unmatched-langle-1.stderr b/tests/ui/parser/unmatched-langle-1.stderr similarity index 100% rename from src/test/ui/parser/unmatched-langle-1.stderr rename to tests/ui/parser/unmatched-langle-1.stderr diff --git a/src/test/ui/parser/unmatched-langle-2.rs b/tests/ui/parser/unmatched-langle-2.rs similarity index 100% rename from src/test/ui/parser/unmatched-langle-2.rs rename to tests/ui/parser/unmatched-langle-2.rs diff --git a/src/test/ui/parser/unmatched-langle-2.stderr b/tests/ui/parser/unmatched-langle-2.stderr similarity index 100% rename from src/test/ui/parser/unmatched-langle-2.stderr rename to tests/ui/parser/unmatched-langle-2.stderr diff --git a/src/test/ui/parser/unnecessary-let.rs b/tests/ui/parser/unnecessary-let.rs similarity index 100% rename from src/test/ui/parser/unnecessary-let.rs rename to tests/ui/parser/unnecessary-let.rs diff --git a/src/test/ui/parser/unnecessary-let.stderr b/tests/ui/parser/unnecessary-let.stderr similarity index 100% rename from src/test/ui/parser/unnecessary-let.stderr rename to tests/ui/parser/unnecessary-let.stderr diff --git a/src/test/ui/parser/unsafe-foreign-mod-2.rs b/tests/ui/parser/unsafe-foreign-mod-2.rs similarity index 100% rename from src/test/ui/parser/unsafe-foreign-mod-2.rs rename to tests/ui/parser/unsafe-foreign-mod-2.rs diff --git a/src/test/ui/parser/unsafe-foreign-mod-2.stderr b/tests/ui/parser/unsafe-foreign-mod-2.stderr similarity index 100% rename from src/test/ui/parser/unsafe-foreign-mod-2.stderr rename to tests/ui/parser/unsafe-foreign-mod-2.stderr diff --git a/src/test/ui/parser/unsafe-foreign-mod.rs b/tests/ui/parser/unsafe-foreign-mod.rs similarity index 100% rename from src/test/ui/parser/unsafe-foreign-mod.rs rename to tests/ui/parser/unsafe-foreign-mod.rs diff --git a/src/test/ui/parser/unsafe-foreign-mod.stderr b/tests/ui/parser/unsafe-foreign-mod.stderr similarity index 100% rename from src/test/ui/parser/unsafe-foreign-mod.stderr rename to tests/ui/parser/unsafe-foreign-mod.stderr diff --git a/src/test/ui/parser/unsafe-mod.rs b/tests/ui/parser/unsafe-mod.rs similarity index 100% rename from src/test/ui/parser/unsafe-mod.rs rename to tests/ui/parser/unsafe-mod.rs diff --git a/src/test/ui/parser/unsafe-mod.stderr b/tests/ui/parser/unsafe-mod.stderr similarity index 100% rename from src/test/ui/parser/unsafe-mod.stderr rename to tests/ui/parser/unsafe-mod.stderr diff --git a/src/test/ui/parser/unsized.rs b/tests/ui/parser/unsized.rs similarity index 100% rename from src/test/ui/parser/unsized.rs rename to tests/ui/parser/unsized.rs diff --git a/src/test/ui/parser/unsized.stderr b/tests/ui/parser/unsized.stderr similarity index 100% rename from src/test/ui/parser/unsized.stderr rename to tests/ui/parser/unsized.stderr diff --git a/src/test/ui/parser/unsized2.rs b/tests/ui/parser/unsized2.rs similarity index 100% rename from src/test/ui/parser/unsized2.rs rename to tests/ui/parser/unsized2.rs diff --git a/src/test/ui/parser/unsized2.stderr b/tests/ui/parser/unsized2.stderr similarity index 100% rename from src/test/ui/parser/unsized2.stderr rename to tests/ui/parser/unsized2.stderr diff --git a/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs b/tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs similarity index 100% rename from src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs rename to tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs diff --git a/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.stderr b/tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr similarity index 100% rename from src/test/ui/parser/use-as-where-use-ends-with-mod-sep.stderr rename to tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr diff --git a/src/test/ui/parser/use-colon-as-mod-sep.rs b/tests/ui/parser/use-colon-as-mod-sep.rs similarity index 100% rename from src/test/ui/parser/use-colon-as-mod-sep.rs rename to tests/ui/parser/use-colon-as-mod-sep.rs diff --git a/src/test/ui/parser/use-colon-as-mod-sep.stderr b/tests/ui/parser/use-colon-as-mod-sep.stderr similarity index 100% rename from src/test/ui/parser/use-colon-as-mod-sep.stderr rename to tests/ui/parser/use-colon-as-mod-sep.stderr diff --git a/src/test/ui/parser/use-ends-with-mod-sep.rs b/tests/ui/parser/use-ends-with-mod-sep.rs similarity index 100% rename from src/test/ui/parser/use-ends-with-mod-sep.rs rename to tests/ui/parser/use-ends-with-mod-sep.rs diff --git a/src/test/ui/parser/use-ends-with-mod-sep.stderr b/tests/ui/parser/use-ends-with-mod-sep.stderr similarity index 100% rename from src/test/ui/parser/use-ends-with-mod-sep.stderr rename to tests/ui/parser/use-ends-with-mod-sep.stderr diff --git a/src/test/ui/parser/use-unclosed-brace.rs b/tests/ui/parser/use-unclosed-brace.rs similarity index 100% rename from src/test/ui/parser/use-unclosed-brace.rs rename to tests/ui/parser/use-unclosed-brace.rs diff --git a/src/test/ui/parser/use-unclosed-brace.stderr b/tests/ui/parser/use-unclosed-brace.stderr similarity index 100% rename from src/test/ui/parser/use-unclosed-brace.stderr rename to tests/ui/parser/use-unclosed-brace.stderr diff --git a/src/test/ui/parser/utf16-be-without-bom.rs b/tests/ui/parser/utf16-be-without-bom.rs similarity index 100% rename from src/test/ui/parser/utf16-be-without-bom.rs rename to tests/ui/parser/utf16-be-without-bom.rs diff --git a/src/test/ui/parser/utf16-be-without-bom.stderr b/tests/ui/parser/utf16-be-without-bom.stderr similarity index 100% rename from src/test/ui/parser/utf16-be-without-bom.stderr rename to tests/ui/parser/utf16-be-without-bom.stderr diff --git a/src/test/ui/parser/utf16-le-without-bom.rs b/tests/ui/parser/utf16-le-without-bom.rs similarity index 100% rename from src/test/ui/parser/utf16-le-without-bom.rs rename to tests/ui/parser/utf16-le-without-bom.rs diff --git a/src/test/ui/parser/utf16-le-without-bom.stderr b/tests/ui/parser/utf16-le-without-bom.stderr similarity index 100% rename from src/test/ui/parser/utf16-le-without-bom.stderr rename to tests/ui/parser/utf16-le-without-bom.stderr diff --git a/src/test/ui/parser/utf8_idents-rpass.rs b/tests/ui/parser/utf8_idents-rpass.rs similarity index 100% rename from src/test/ui/parser/utf8_idents-rpass.rs rename to tests/ui/parser/utf8_idents-rpass.rs diff --git a/src/test/ui/parser/variadic-ffi-nested-syntactic-fail.rs b/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs similarity index 100% rename from src/test/ui/parser/variadic-ffi-nested-syntactic-fail.rs rename to tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs diff --git a/src/test/ui/parser/variadic-ffi-nested-syntactic-fail.stderr b/tests/ui/parser/variadic-ffi-nested-syntactic-fail.stderr similarity index 100% rename from src/test/ui/parser/variadic-ffi-nested-syntactic-fail.stderr rename to tests/ui/parser/variadic-ffi-nested-syntactic-fail.stderr diff --git a/src/test/ui/parser/variadic-ffi-semantic-restrictions.rs b/tests/ui/parser/variadic-ffi-semantic-restrictions.rs similarity index 100% rename from src/test/ui/parser/variadic-ffi-semantic-restrictions.rs rename to tests/ui/parser/variadic-ffi-semantic-restrictions.rs diff --git a/src/test/ui/parser/variadic-ffi-semantic-restrictions.stderr b/tests/ui/parser/variadic-ffi-semantic-restrictions.stderr similarity index 100% rename from src/test/ui/parser/variadic-ffi-semantic-restrictions.stderr rename to tests/ui/parser/variadic-ffi-semantic-restrictions.stderr diff --git a/src/test/ui/parser/variadic-ffi-syntactic-pass.rs b/tests/ui/parser/variadic-ffi-syntactic-pass.rs similarity index 100% rename from src/test/ui/parser/variadic-ffi-syntactic-pass.rs rename to tests/ui/parser/variadic-ffi-syntactic-pass.rs diff --git a/src/test/ui/parser/virtual-structs.rs b/tests/ui/parser/virtual-structs.rs similarity index 100% rename from src/test/ui/parser/virtual-structs.rs rename to tests/ui/parser/virtual-structs.rs diff --git a/src/test/ui/parser/virtual-structs.stderr b/tests/ui/parser/virtual-structs.stderr similarity index 100% rename from src/test/ui/parser/virtual-structs.stderr rename to tests/ui/parser/virtual-structs.stderr diff --git a/src/test/ui/parser/where-clauses-no-bounds-or-predicates.rs b/tests/ui/parser/where-clauses-no-bounds-or-predicates.rs similarity index 100% rename from src/test/ui/parser/where-clauses-no-bounds-or-predicates.rs rename to tests/ui/parser/where-clauses-no-bounds-or-predicates.rs diff --git a/src/test/ui/parser/where-clauses-no-bounds-or-predicates.stderr b/tests/ui/parser/where-clauses-no-bounds-or-predicates.stderr similarity index 100% rename from src/test/ui/parser/where-clauses-no-bounds-or-predicates.stderr rename to tests/ui/parser/where-clauses-no-bounds-or-predicates.stderr diff --git a/src/test/ui/parser/where_with_bound.rs b/tests/ui/parser/where_with_bound.rs similarity index 100% rename from src/test/ui/parser/where_with_bound.rs rename to tests/ui/parser/where_with_bound.rs diff --git a/src/test/ui/parser/where_with_bound.stderr b/tests/ui/parser/where_with_bound.stderr similarity index 100% rename from src/test/ui/parser/where_with_bound.stderr rename to tests/ui/parser/where_with_bound.stderr diff --git a/src/test/ui/parser/while-if-let-without-body.rs b/tests/ui/parser/while-if-let-without-body.rs similarity index 100% rename from src/test/ui/parser/while-if-let-without-body.rs rename to tests/ui/parser/while-if-let-without-body.rs diff --git a/src/test/ui/parser/while-if-let-without-body.stderr b/tests/ui/parser/while-if-let-without-body.stderr similarity index 100% rename from src/test/ui/parser/while-if-let-without-body.stderr rename to tests/ui/parser/while-if-let-without-body.stderr diff --git a/src/test/ui/parser/wrong-escape-of-curly-braces.rs b/tests/ui/parser/wrong-escape-of-curly-braces.rs similarity index 100% rename from src/test/ui/parser/wrong-escape-of-curly-braces.rs rename to tests/ui/parser/wrong-escape-of-curly-braces.rs diff --git a/src/test/ui/parser/wrong-escape-of-curly-braces.stderr b/tests/ui/parser/wrong-escape-of-curly-braces.stderr similarity index 100% rename from src/test/ui/parser/wrong-escape-of-curly-braces.stderr rename to tests/ui/parser/wrong-escape-of-curly-braces.stderr diff --git a/src/test/ui/partialeq_help.rs b/tests/ui/partialeq_help.rs similarity index 100% rename from src/test/ui/partialeq_help.rs rename to tests/ui/partialeq_help.rs diff --git a/src/test/ui/partialeq_help.stderr b/tests/ui/partialeq_help.stderr similarity index 100% rename from src/test/ui/partialeq_help.stderr rename to tests/ui/partialeq_help.stderr diff --git a/src/test/ui/path-lookahead.fixed b/tests/ui/path-lookahead.fixed similarity index 100% rename from src/test/ui/path-lookahead.fixed rename to tests/ui/path-lookahead.fixed diff --git a/src/test/ui/path-lookahead.rs b/tests/ui/path-lookahead.rs similarity index 100% rename from src/test/ui/path-lookahead.rs rename to tests/ui/path-lookahead.rs diff --git a/src/test/ui/path-lookahead.stderr b/tests/ui/path-lookahead.stderr similarity index 100% rename from src/test/ui/path-lookahead.stderr rename to tests/ui/path-lookahead.stderr diff --git a/src/test/ui/path.rs b/tests/ui/path.rs similarity index 100% rename from src/test/ui/path.rs rename to tests/ui/path.rs diff --git a/src/test/ui/paths-containing-nul.rs b/tests/ui/paths-containing-nul.rs similarity index 100% rename from src/test/ui/paths-containing-nul.rs rename to tests/ui/paths-containing-nul.rs diff --git a/src/test/ui/pattern/auxiliary/declarations-for-tuple-field-count-errors.rs b/tests/ui/pattern/auxiliary/declarations-for-tuple-field-count-errors.rs similarity index 100% rename from src/test/ui/pattern/auxiliary/declarations-for-tuple-field-count-errors.rs rename to tests/ui/pattern/auxiliary/declarations-for-tuple-field-count-errors.rs diff --git a/src/test/ui/pattern/bindings-after-at/bind-by-copy.rs b/tests/ui/pattern/bindings-after-at/bind-by-copy.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/bind-by-copy.rs rename to tests/ui/pattern/bindings-after-at/bind-by-copy.rs diff --git a/src/test/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.rs b/tests/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.rs rename to tests/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.rs diff --git a/src/test/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.stderr b/tests/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.stderr rename to tests/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.stderr diff --git a/src/test/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs b/tests/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs rename to tests/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs diff --git a/src/test/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.stderr b/tests/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.stderr rename to tests/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-move-and-move.rs b/tests/ui/pattern/bindings-after-at/borrowck-move-and-move.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-move-and-move.rs rename to tests/ui/pattern/bindings-after-at/borrowck-move-and-move.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-move-and-move.stderr b/tests/ui/pattern/bindings-after-at/borrowck-move-and-move.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-move-and-move.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-move-and-move.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box-pass.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-at-and-box-pass.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box-pass.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-at-and-box-pass.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.stderr b/tests/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-copy-bindings-in-at.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-copy-bindings-in-at.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-copy-bindings-in-at.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-copy-bindings-in-at.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.stderr b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.stderr b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.stderr b/tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-both-sides.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-ref-both-sides.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-both-sides.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-ref-both-sides.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.stderr b/tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-and-ref.stderr diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.rs b/tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.rs rename to tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.rs diff --git a/src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.stderr b/tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.stderr rename to tests/ui/pattern/bindings-after-at/borrowck-pat-ref-mut-twice.stderr diff --git a/src/test/ui/pattern/bindings-after-at/box-patterns.rs b/tests/ui/pattern/bindings-after-at/box-patterns.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/box-patterns.rs rename to tests/ui/pattern/bindings-after-at/box-patterns.rs diff --git a/src/test/ui/pattern/bindings-after-at/copy-and-move-mixed.rs b/tests/ui/pattern/bindings-after-at/copy-and-move-mixed.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/copy-and-move-mixed.rs rename to tests/ui/pattern/bindings-after-at/copy-and-move-mixed.rs diff --git a/src/test/ui/pattern/bindings-after-at/copy-and-move-mixed.stderr b/tests/ui/pattern/bindings-after-at/copy-and-move-mixed.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/copy-and-move-mixed.stderr rename to tests/ui/pattern/bindings-after-at/copy-and-move-mixed.stderr diff --git a/src/test/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.rs b/tests/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.rs rename to tests/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.rs diff --git a/src/test/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.stderr b/tests/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.stderr rename to tests/ui/pattern/bindings-after-at/default-binding-modes-both-sides-independent.stderr diff --git a/src/test/ui/pattern/bindings-after-at/nested-binding-mode-lint.rs b/tests/ui/pattern/bindings-after-at/nested-binding-mode-lint.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-binding-mode-lint.rs rename to tests/ui/pattern/bindings-after-at/nested-binding-mode-lint.rs diff --git a/src/test/ui/pattern/bindings-after-at/nested-binding-modes-mut.rs b/tests/ui/pattern/bindings-after-at/nested-binding-modes-mut.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-binding-modes-mut.rs rename to tests/ui/pattern/bindings-after-at/nested-binding-modes-mut.rs diff --git a/src/test/ui/pattern/bindings-after-at/nested-binding-modes-mut.stderr b/tests/ui/pattern/bindings-after-at/nested-binding-modes-mut.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-binding-modes-mut.stderr rename to tests/ui/pattern/bindings-after-at/nested-binding-modes-mut.stderr diff --git a/src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs b/tests/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs rename to tests/ui/pattern/bindings-after-at/nested-binding-modes-ref.rs diff --git a/src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.stderr b/tests/ui/pattern/bindings-after-at/nested-binding-modes-ref.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-binding-modes-ref.stderr rename to tests/ui/pattern/bindings-after-at/nested-binding-modes-ref.stderr diff --git a/src/test/ui/pattern/bindings-after-at/nested-patterns.rs b/tests/ui/pattern/bindings-after-at/nested-patterns.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-patterns.rs rename to tests/ui/pattern/bindings-after-at/nested-patterns.rs diff --git a/src/test/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.rs b/tests/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.rs rename to tests/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.rs diff --git a/src/test/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.stderr b/tests/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.stderr rename to tests/ui/pattern/bindings-after-at/nested-type-ascription-syntactically-invalid.stderr diff --git a/src/test/ui/pattern/bindings-after-at/or-patterns-box-patterns.rs b/tests/ui/pattern/bindings-after-at/or-patterns-box-patterns.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/or-patterns-box-patterns.rs rename to tests/ui/pattern/bindings-after-at/or-patterns-box-patterns.rs diff --git a/src/test/ui/pattern/bindings-after-at/or-patterns-slice-patterns.rs b/tests/ui/pattern/bindings-after-at/or-patterns-slice-patterns.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/or-patterns-slice-patterns.rs rename to tests/ui/pattern/bindings-after-at/or-patterns-slice-patterns.rs diff --git a/src/test/ui/pattern/bindings-after-at/or-patterns.rs b/tests/ui/pattern/bindings-after-at/or-patterns.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/or-patterns.rs rename to tests/ui/pattern/bindings-after-at/or-patterns.rs diff --git a/src/test/ui/pattern/bindings-after-at/pat-at-same-name-both.rs b/tests/ui/pattern/bindings-after-at/pat-at-same-name-both.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/pat-at-same-name-both.rs rename to tests/ui/pattern/bindings-after-at/pat-at-same-name-both.rs diff --git a/src/test/ui/pattern/bindings-after-at/pat-at-same-name-both.stderr b/tests/ui/pattern/bindings-after-at/pat-at-same-name-both.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/pat-at-same-name-both.stderr rename to tests/ui/pattern/bindings-after-at/pat-at-same-name-both.stderr diff --git a/src/test/ui/pattern/bindings-after-at/slice-patterns.rs b/tests/ui/pattern/bindings-after-at/slice-patterns.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/slice-patterns.rs rename to tests/ui/pattern/bindings-after-at/slice-patterns.rs diff --git a/src/test/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.rs b/tests/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.rs similarity index 100% rename from src/test/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.rs rename to tests/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.rs diff --git a/src/test/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.stderr b/tests/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.stderr similarity index 100% rename from src/test/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.stderr rename to tests/ui/pattern/bindings-after-at/wild-before-at-syntactically-rejected.stderr diff --git a/src/test/ui/pattern/for-loop-bad-item.rs b/tests/ui/pattern/for-loop-bad-item.rs similarity index 100% rename from src/test/ui/pattern/for-loop-bad-item.rs rename to tests/ui/pattern/for-loop-bad-item.rs diff --git a/src/test/ui/pattern/for-loop-bad-item.stderr b/tests/ui/pattern/for-loop-bad-item.stderr similarity index 100% rename from src/test/ui/pattern/for-loop-bad-item.stderr rename to tests/ui/pattern/for-loop-bad-item.stderr diff --git a/src/test/ui/pattern/ignore-all-the-things.rs b/tests/ui/pattern/ignore-all-the-things.rs similarity index 100% rename from src/test/ui/pattern/ignore-all-the-things.rs rename to tests/ui/pattern/ignore-all-the-things.rs diff --git a/src/test/ui/pattern/integer-range-binding.rs b/tests/ui/pattern/integer-range-binding.rs similarity index 100% rename from src/test/ui/pattern/integer-range-binding.rs rename to tests/ui/pattern/integer-range-binding.rs diff --git a/src/test/ui/pattern/issue-10392.rs b/tests/ui/pattern/issue-10392.rs similarity index 100% rename from src/test/ui/pattern/issue-10392.rs rename to tests/ui/pattern/issue-10392.rs diff --git a/src/test/ui/pattern/issue-11577.rs b/tests/ui/pattern/issue-11577.rs similarity index 100% rename from src/test/ui/pattern/issue-11577.rs rename to tests/ui/pattern/issue-11577.rs diff --git a/src/test/ui/pattern/issue-12582.rs b/tests/ui/pattern/issue-12582.rs similarity index 100% rename from src/test/ui/pattern/issue-12582.rs rename to tests/ui/pattern/issue-12582.rs diff --git a/src/test/ui/pattern/issue-14221.rs b/tests/ui/pattern/issue-14221.rs similarity index 100% rename from src/test/ui/pattern/issue-14221.rs rename to tests/ui/pattern/issue-14221.rs diff --git a/src/test/ui/pattern/issue-14221.stderr b/tests/ui/pattern/issue-14221.stderr similarity index 100% rename from src/test/ui/pattern/issue-14221.stderr rename to tests/ui/pattern/issue-14221.stderr diff --git a/src/test/ui/pattern/issue-15080.rs b/tests/ui/pattern/issue-15080.rs similarity index 100% rename from src/test/ui/pattern/issue-15080.rs rename to tests/ui/pattern/issue-15080.rs diff --git a/src/test/ui/pattern/issue-17718-patterns.rs b/tests/ui/pattern/issue-17718-patterns.rs similarity index 100% rename from src/test/ui/pattern/issue-17718-patterns.rs rename to tests/ui/pattern/issue-17718-patterns.rs diff --git a/src/test/ui/pattern/issue-17718-patterns.stderr b/tests/ui/pattern/issue-17718-patterns.stderr similarity index 100% rename from src/test/ui/pattern/issue-17718-patterns.stderr rename to tests/ui/pattern/issue-17718-patterns.stderr diff --git a/src/test/ui/pattern/issue-22546.rs b/tests/ui/pattern/issue-22546.rs similarity index 100% rename from src/test/ui/pattern/issue-22546.rs rename to tests/ui/pattern/issue-22546.rs diff --git a/src/test/ui/pattern/issue-27320.rs b/tests/ui/pattern/issue-27320.rs similarity index 100% rename from src/test/ui/pattern/issue-27320.rs rename to tests/ui/pattern/issue-27320.rs diff --git a/src/test/ui/pattern/issue-52240.rs b/tests/ui/pattern/issue-52240.rs similarity index 100% rename from src/test/ui/pattern/issue-52240.rs rename to tests/ui/pattern/issue-52240.rs diff --git a/src/test/ui/pattern/issue-52240.stderr b/tests/ui/pattern/issue-52240.stderr similarity index 100% rename from src/test/ui/pattern/issue-52240.stderr rename to tests/ui/pattern/issue-52240.stderr diff --git a/src/test/ui/pattern/issue-6449.rs b/tests/ui/pattern/issue-6449.rs similarity index 100% rename from src/test/ui/pattern/issue-6449.rs rename to tests/ui/pattern/issue-6449.rs diff --git a/src/test/ui/pattern/issue-66270-pat-struct-parser-recovery.rs b/tests/ui/pattern/issue-66270-pat-struct-parser-recovery.rs similarity index 100% rename from src/test/ui/pattern/issue-66270-pat-struct-parser-recovery.rs rename to tests/ui/pattern/issue-66270-pat-struct-parser-recovery.rs diff --git a/src/test/ui/pattern/issue-66270-pat-struct-parser-recovery.stderr b/tests/ui/pattern/issue-66270-pat-struct-parser-recovery.stderr similarity index 100% rename from src/test/ui/pattern/issue-66270-pat-struct-parser-recovery.stderr rename to tests/ui/pattern/issue-66270-pat-struct-parser-recovery.stderr diff --git a/src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs b/tests/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs similarity index 100% rename from src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs rename to tests/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs diff --git a/src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.stderr b/tests/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.stderr similarity index 100% rename from src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.stderr rename to tests/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.stderr diff --git a/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs b/tests/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs similarity index 100% rename from src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs rename to tests/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs diff --git a/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr b/tests/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr similarity index 100% rename from src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr rename to tests/ui/pattern/issue-67776-match-same-name-enum-variant-refs.stderr diff --git a/src/test/ui/pattern/issue-68393-let-pat-assoc-constant.rs b/tests/ui/pattern/issue-68393-let-pat-assoc-constant.rs similarity index 100% rename from src/test/ui/pattern/issue-68393-let-pat-assoc-constant.rs rename to tests/ui/pattern/issue-68393-let-pat-assoc-constant.rs diff --git a/src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr b/tests/ui/pattern/issue-68393-let-pat-assoc-constant.stderr similarity index 100% rename from src/test/ui/pattern/issue-68393-let-pat-assoc-constant.stderr rename to tests/ui/pattern/issue-68393-let-pat-assoc-constant.stderr diff --git a/src/test/ui/pattern/issue-72565.rs b/tests/ui/pattern/issue-72565.rs similarity index 100% rename from src/test/ui/pattern/issue-72565.rs rename to tests/ui/pattern/issue-72565.rs diff --git a/src/test/ui/pattern/issue-72565.stderr b/tests/ui/pattern/issue-72565.stderr similarity index 100% rename from src/test/ui/pattern/issue-72565.stderr rename to tests/ui/pattern/issue-72565.stderr diff --git a/src/test/ui/pattern/issue-72574-1.rs b/tests/ui/pattern/issue-72574-1.rs similarity index 100% rename from src/test/ui/pattern/issue-72574-1.rs rename to tests/ui/pattern/issue-72574-1.rs diff --git a/src/test/ui/pattern/issue-72574-1.stderr b/tests/ui/pattern/issue-72574-1.stderr similarity index 100% rename from src/test/ui/pattern/issue-72574-1.stderr rename to tests/ui/pattern/issue-72574-1.stderr diff --git a/src/test/ui/pattern/issue-72574-2.rs b/tests/ui/pattern/issue-72574-2.rs similarity index 100% rename from src/test/ui/pattern/issue-72574-2.rs rename to tests/ui/pattern/issue-72574-2.rs diff --git a/src/test/ui/pattern/issue-72574-2.stderr b/tests/ui/pattern/issue-72574-2.stderr similarity index 100% rename from src/test/ui/pattern/issue-72574-2.stderr rename to tests/ui/pattern/issue-72574-2.stderr diff --git a/src/test/ui/pattern/issue-74539.rs b/tests/ui/pattern/issue-74539.rs similarity index 100% rename from src/test/ui/pattern/issue-74539.rs rename to tests/ui/pattern/issue-74539.rs diff --git a/src/test/ui/pattern/issue-74539.stderr b/tests/ui/pattern/issue-74539.stderr similarity index 100% rename from src/test/ui/pattern/issue-74539.stderr rename to tests/ui/pattern/issue-74539.stderr diff --git a/src/test/ui/pattern/issue-74702.rs b/tests/ui/pattern/issue-74702.rs similarity index 100% rename from src/test/ui/pattern/issue-74702.rs rename to tests/ui/pattern/issue-74702.rs diff --git a/src/test/ui/pattern/issue-74702.stderr b/tests/ui/pattern/issue-74702.stderr similarity index 100% rename from src/test/ui/pattern/issue-74702.stderr rename to tests/ui/pattern/issue-74702.stderr diff --git a/src/test/ui/pattern/issue-74954.rs b/tests/ui/pattern/issue-74954.rs similarity index 100% rename from src/test/ui/pattern/issue-74954.rs rename to tests/ui/pattern/issue-74954.rs diff --git a/src/test/ui/pattern/issue-80186-mut-binding-help-suggestion.rs b/tests/ui/pattern/issue-80186-mut-binding-help-suggestion.rs similarity index 100% rename from src/test/ui/pattern/issue-80186-mut-binding-help-suggestion.rs rename to tests/ui/pattern/issue-80186-mut-binding-help-suggestion.rs diff --git a/src/test/ui/pattern/issue-80186-mut-binding-help-suggestion.stderr b/tests/ui/pattern/issue-80186-mut-binding-help-suggestion.stderr similarity index 100% rename from src/test/ui/pattern/issue-80186-mut-binding-help-suggestion.stderr rename to tests/ui/pattern/issue-80186-mut-binding-help-suggestion.stderr diff --git a/src/test/ui/pattern/issue-8351-1.rs b/tests/ui/pattern/issue-8351-1.rs similarity index 100% rename from src/test/ui/pattern/issue-8351-1.rs rename to tests/ui/pattern/issue-8351-1.rs diff --git a/src/test/ui/pattern/issue-8351-2.rs b/tests/ui/pattern/issue-8351-2.rs similarity index 100% rename from src/test/ui/pattern/issue-8351-2.rs rename to tests/ui/pattern/issue-8351-2.rs diff --git a/src/test/ui/pattern/issue-88074-pat-range-type-inference-err.rs b/tests/ui/pattern/issue-88074-pat-range-type-inference-err.rs similarity index 100% rename from src/test/ui/pattern/issue-88074-pat-range-type-inference-err.rs rename to tests/ui/pattern/issue-88074-pat-range-type-inference-err.rs diff --git a/src/test/ui/pattern/issue-88074-pat-range-type-inference-err.stderr b/tests/ui/pattern/issue-88074-pat-range-type-inference-err.stderr similarity index 100% rename from src/test/ui/pattern/issue-88074-pat-range-type-inference-err.stderr rename to tests/ui/pattern/issue-88074-pat-range-type-inference-err.stderr diff --git a/src/test/ui/pattern/issue-88074-pat-range-type-inference.rs b/tests/ui/pattern/issue-88074-pat-range-type-inference.rs similarity index 100% rename from src/test/ui/pattern/issue-88074-pat-range-type-inference.rs rename to tests/ui/pattern/issue-88074-pat-range-type-inference.rs diff --git a/src/test/ui/pattern/issue-92074-macro-ice.rs b/tests/ui/pattern/issue-92074-macro-ice.rs similarity index 100% rename from src/test/ui/pattern/issue-92074-macro-ice.rs rename to tests/ui/pattern/issue-92074-macro-ice.rs diff --git a/src/test/ui/pattern/issue-92074-macro-ice.stderr b/tests/ui/pattern/issue-92074-macro-ice.stderr similarity index 100% rename from src/test/ui/pattern/issue-92074-macro-ice.stderr rename to tests/ui/pattern/issue-92074-macro-ice.stderr diff --git a/src/test/ui/pattern/issue-95878.rs b/tests/ui/pattern/issue-95878.rs similarity index 100% rename from src/test/ui/pattern/issue-95878.rs rename to tests/ui/pattern/issue-95878.rs diff --git a/src/test/ui/pattern/issue-95878.stderr b/tests/ui/pattern/issue-95878.stderr similarity index 100% rename from src/test/ui/pattern/issue-95878.stderr rename to tests/ui/pattern/issue-95878.stderr diff --git a/src/test/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern-pass.rs b/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern-pass.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern-pass.rs rename to tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern-pass.rs diff --git a/src/test/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.rs b/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.rs rename to tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.rs diff --git a/src/test/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr b/tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr rename to tests/ui/pattern/move-ref-patterns/borrowck-move-ref-pattern.stderr diff --git a/src/test/ui/pattern/move-ref-patterns/by-move-sub-pat-unreachable.rs b/tests/ui/pattern/move-ref-patterns/by-move-sub-pat-unreachable.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/by-move-sub-pat-unreachable.rs rename to tests/ui/pattern/move-ref-patterns/by-move-sub-pat-unreachable.rs diff --git a/src/test/ui/pattern/move-ref-patterns/issue-53840.rs b/tests/ui/pattern/move-ref-patterns/issue-53840.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/issue-53840.rs rename to tests/ui/pattern/move-ref-patterns/issue-53840.rs diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.rs b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.rs rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.rs diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.stderr b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.stderr similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.stderr rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-inside.stderr diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-pass.rs b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-pass.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-pass.rs rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures-pass.rs diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.rs b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.rs rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.rs diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.stderr b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.stderr similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.stderr rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-closure-captures.stderr diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.fixed b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.fixed similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.fixed rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.fixed diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.rs b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.rs rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.rs diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.stderr b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.stderr similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.stderr rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes-fixable.stderr diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.rs b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.rs rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.rs diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.stderr b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.stderr similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.stderr rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.stderr diff --git a/src/test/ui/pattern/move-ref-patterns/move-ref-patterns-dynamic-semantics.rs b/tests/ui/pattern/move-ref-patterns/move-ref-patterns-dynamic-semantics.rs similarity index 100% rename from src/test/ui/pattern/move-ref-patterns/move-ref-patterns-dynamic-semantics.rs rename to tests/ui/pattern/move-ref-patterns/move-ref-patterns-dynamic-semantics.rs diff --git a/src/test/ui/pattern/non-constant-in-const-path.rs b/tests/ui/pattern/non-constant-in-const-path.rs similarity index 100% rename from src/test/ui/pattern/non-constant-in-const-path.rs rename to tests/ui/pattern/non-constant-in-const-path.rs diff --git a/src/test/ui/pattern/non-constant-in-const-path.stderr b/tests/ui/pattern/non-constant-in-const-path.stderr similarity index 100% rename from src/test/ui/pattern/non-constant-in-const-path.stderr rename to tests/ui/pattern/non-constant-in-const-path.stderr diff --git a/src/test/ui/pattern/non-structural-match-types.rs b/tests/ui/pattern/non-structural-match-types.rs similarity index 100% rename from src/test/ui/pattern/non-structural-match-types.rs rename to tests/ui/pattern/non-structural-match-types.rs diff --git a/src/test/ui/pattern/non-structural-match-types.stderr b/tests/ui/pattern/non-structural-match-types.stderr similarity index 100% rename from src/test/ui/pattern/non-structural-match-types.stderr rename to tests/ui/pattern/non-structural-match-types.stderr diff --git a/src/test/ui/pattern/pat-shadow-in-nested-binding.rs b/tests/ui/pattern/pat-shadow-in-nested-binding.rs similarity index 100% rename from src/test/ui/pattern/pat-shadow-in-nested-binding.rs rename to tests/ui/pattern/pat-shadow-in-nested-binding.rs diff --git a/src/test/ui/pattern/pat-shadow-in-nested-binding.stderr b/tests/ui/pattern/pat-shadow-in-nested-binding.stderr similarity index 100% rename from src/test/ui/pattern/pat-shadow-in-nested-binding.stderr rename to tests/ui/pattern/pat-shadow-in-nested-binding.stderr diff --git a/src/test/ui/pattern/pat-struct-field-expr-has-type.rs b/tests/ui/pattern/pat-struct-field-expr-has-type.rs similarity index 100% rename from src/test/ui/pattern/pat-struct-field-expr-has-type.rs rename to tests/ui/pattern/pat-struct-field-expr-has-type.rs diff --git a/src/test/ui/pattern/pat-struct-field-expr-has-type.stderr b/tests/ui/pattern/pat-struct-field-expr-has-type.stderr similarity index 100% rename from src/test/ui/pattern/pat-struct-field-expr-has-type.stderr rename to tests/ui/pattern/pat-struct-field-expr-has-type.stderr diff --git a/src/test/ui/pattern/pat-tuple-bad-type.rs b/tests/ui/pattern/pat-tuple-bad-type.rs similarity index 100% rename from src/test/ui/pattern/pat-tuple-bad-type.rs rename to tests/ui/pattern/pat-tuple-bad-type.rs diff --git a/src/test/ui/pattern/pat-tuple-bad-type.stderr b/tests/ui/pattern/pat-tuple-bad-type.stderr similarity index 100% rename from src/test/ui/pattern/pat-tuple-bad-type.stderr rename to tests/ui/pattern/pat-tuple-bad-type.stderr diff --git a/src/test/ui/pattern/pat-tuple-field-count-cross.rs b/tests/ui/pattern/pat-tuple-field-count-cross.rs similarity index 100% rename from src/test/ui/pattern/pat-tuple-field-count-cross.rs rename to tests/ui/pattern/pat-tuple-field-count-cross.rs diff --git a/src/test/ui/pattern/pat-tuple-field-count-cross.stderr b/tests/ui/pattern/pat-tuple-field-count-cross.stderr similarity index 100% rename from src/test/ui/pattern/pat-tuple-field-count-cross.stderr rename to tests/ui/pattern/pat-tuple-field-count-cross.stderr diff --git a/src/test/ui/pattern/pat-tuple-overfield.rs b/tests/ui/pattern/pat-tuple-overfield.rs similarity index 100% rename from src/test/ui/pattern/pat-tuple-overfield.rs rename to tests/ui/pattern/pat-tuple-overfield.rs diff --git a/src/test/ui/pattern/pat-tuple-overfield.stderr b/tests/ui/pattern/pat-tuple-overfield.stderr similarity index 100% rename from src/test/ui/pattern/pat-tuple-overfield.stderr rename to tests/ui/pattern/pat-tuple-overfield.stderr diff --git a/src/test/ui/pattern/pat-tuple-underfield.rs b/tests/ui/pattern/pat-tuple-underfield.rs similarity index 100% rename from src/test/ui/pattern/pat-tuple-underfield.rs rename to tests/ui/pattern/pat-tuple-underfield.rs diff --git a/src/test/ui/pattern/pat-tuple-underfield.stderr b/tests/ui/pattern/pat-tuple-underfield.stderr similarity index 100% rename from src/test/ui/pattern/pat-tuple-underfield.stderr rename to tests/ui/pattern/pat-tuple-underfield.stderr diff --git a/src/test/ui/pattern/pat-type-err-formal-param.rs b/tests/ui/pattern/pat-type-err-formal-param.rs similarity index 100% rename from src/test/ui/pattern/pat-type-err-formal-param.rs rename to tests/ui/pattern/pat-type-err-formal-param.rs diff --git a/src/test/ui/pattern/pat-type-err-formal-param.stderr b/tests/ui/pattern/pat-type-err-formal-param.stderr similarity index 100% rename from src/test/ui/pattern/pat-type-err-formal-param.stderr rename to tests/ui/pattern/pat-type-err-formal-param.stderr diff --git a/src/test/ui/pattern/pat-type-err-let-stmt.rs b/tests/ui/pattern/pat-type-err-let-stmt.rs similarity index 100% rename from src/test/ui/pattern/pat-type-err-let-stmt.rs rename to tests/ui/pattern/pat-type-err-let-stmt.rs diff --git a/src/test/ui/pattern/pat-type-err-let-stmt.stderr b/tests/ui/pattern/pat-type-err-let-stmt.stderr similarity index 100% rename from src/test/ui/pattern/pat-type-err-let-stmt.stderr rename to tests/ui/pattern/pat-type-err-let-stmt.stderr diff --git a/src/test/ui/pattern/patkind-litrange-no-expr.rs b/tests/ui/pattern/patkind-litrange-no-expr.rs similarity index 100% rename from src/test/ui/pattern/patkind-litrange-no-expr.rs rename to tests/ui/pattern/patkind-litrange-no-expr.rs diff --git a/src/test/ui/pattern/patkind-litrange-no-expr.stderr b/tests/ui/pattern/patkind-litrange-no-expr.stderr similarity index 100% rename from src/test/ui/pattern/patkind-litrange-no-expr.stderr rename to tests/ui/pattern/patkind-litrange-no-expr.stderr diff --git a/src/test/ui/pattern/pattern-binding-disambiguation.rs b/tests/ui/pattern/pattern-binding-disambiguation.rs similarity index 100% rename from src/test/ui/pattern/pattern-binding-disambiguation.rs rename to tests/ui/pattern/pattern-binding-disambiguation.rs diff --git a/src/test/ui/pattern/pattern-binding-disambiguation.stderr b/tests/ui/pattern/pattern-binding-disambiguation.stderr similarity index 100% rename from src/test/ui/pattern/pattern-binding-disambiguation.stderr rename to tests/ui/pattern/pattern-binding-disambiguation.stderr diff --git a/src/test/ui/pattern/pattern-error-continue.rs b/tests/ui/pattern/pattern-error-continue.rs similarity index 100% rename from src/test/ui/pattern/pattern-error-continue.rs rename to tests/ui/pattern/pattern-error-continue.rs diff --git a/src/test/ui/pattern/pattern-error-continue.stderr b/tests/ui/pattern/pattern-error-continue.stderr similarity index 100% rename from src/test/ui/pattern/pattern-error-continue.stderr rename to tests/ui/pattern/pattern-error-continue.stderr diff --git a/src/test/ui/pattern/pattern-ident-path-generics.rs b/tests/ui/pattern/pattern-ident-path-generics.rs similarity index 100% rename from src/test/ui/pattern/pattern-ident-path-generics.rs rename to tests/ui/pattern/pattern-ident-path-generics.rs diff --git a/src/test/ui/pattern/pattern-ident-path-generics.stderr b/tests/ui/pattern/pattern-ident-path-generics.stderr similarity index 100% rename from src/test/ui/pattern/pattern-ident-path-generics.stderr rename to tests/ui/pattern/pattern-ident-path-generics.stderr diff --git a/src/test/ui/pattern/pattern-tyvar-2.rs b/tests/ui/pattern/pattern-tyvar-2.rs similarity index 100% rename from src/test/ui/pattern/pattern-tyvar-2.rs rename to tests/ui/pattern/pattern-tyvar-2.rs diff --git a/src/test/ui/pattern/pattern-tyvar-2.stderr b/tests/ui/pattern/pattern-tyvar-2.stderr similarity index 100% rename from src/test/ui/pattern/pattern-tyvar-2.stderr rename to tests/ui/pattern/pattern-tyvar-2.stderr diff --git a/src/test/ui/pattern/pattern-tyvar.rs b/tests/ui/pattern/pattern-tyvar.rs similarity index 100% rename from src/test/ui/pattern/pattern-tyvar.rs rename to tests/ui/pattern/pattern-tyvar.rs diff --git a/src/test/ui/pattern/pattern-tyvar.stderr b/tests/ui/pattern/pattern-tyvar.stderr similarity index 100% rename from src/test/ui/pattern/pattern-tyvar.stderr rename to tests/ui/pattern/pattern-tyvar.stderr diff --git a/src/test/ui/pattern/rest-pat-semantic-disallowed.rs b/tests/ui/pattern/rest-pat-semantic-disallowed.rs similarity index 100% rename from src/test/ui/pattern/rest-pat-semantic-disallowed.rs rename to tests/ui/pattern/rest-pat-semantic-disallowed.rs diff --git a/src/test/ui/pattern/rest-pat-semantic-disallowed.stderr b/tests/ui/pattern/rest-pat-semantic-disallowed.stderr similarity index 100% rename from src/test/ui/pattern/rest-pat-semantic-disallowed.stderr rename to tests/ui/pattern/rest-pat-semantic-disallowed.stderr diff --git a/src/test/ui/pattern/rest-pat-syntactic.rs b/tests/ui/pattern/rest-pat-syntactic.rs similarity index 100% rename from src/test/ui/pattern/rest-pat-syntactic.rs rename to tests/ui/pattern/rest-pat-syntactic.rs diff --git a/src/test/ui/pattern/rest-pat-syntactic.stderr b/tests/ui/pattern/rest-pat-syntactic.stderr similarity index 100% rename from src/test/ui/pattern/rest-pat-syntactic.stderr rename to tests/ui/pattern/rest-pat-syntactic.stderr diff --git a/src/test/ui/pattern/size-and-align.rs b/tests/ui/pattern/size-and-align.rs similarity index 100% rename from src/test/ui/pattern/size-and-align.rs rename to tests/ui/pattern/size-and-align.rs diff --git a/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed b/tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed similarity index 100% rename from src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed rename to tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.fixed diff --git a/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs b/tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs similarity index 100% rename from src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs rename to tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.rs diff --git a/src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.stderr b/tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.stderr similarity index 100% rename from src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.stderr rename to tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.stderr diff --git a/src/test/ui/pattern/usefulness/always-inhabited-union-ref.rs b/tests/ui/pattern/usefulness/always-inhabited-union-ref.rs similarity index 100% rename from src/test/ui/pattern/usefulness/always-inhabited-union-ref.rs rename to tests/ui/pattern/usefulness/always-inhabited-union-ref.rs diff --git a/src/test/ui/pattern/usefulness/always-inhabited-union-ref.stderr b/tests/ui/pattern/usefulness/always-inhabited-union-ref.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/always-inhabited-union-ref.stderr rename to tests/ui/pattern/usefulness/always-inhabited-union-ref.stderr diff --git a/src/test/ui/pattern/usefulness/auxiliary/empty.rs b/tests/ui/pattern/usefulness/auxiliary/empty.rs similarity index 100% rename from src/test/ui/pattern/usefulness/auxiliary/empty.rs rename to tests/ui/pattern/usefulness/auxiliary/empty.rs diff --git a/src/test/ui/pattern/usefulness/auxiliary/hidden.rs b/tests/ui/pattern/usefulness/auxiliary/hidden.rs similarity index 100% rename from src/test/ui/pattern/usefulness/auxiliary/hidden.rs rename to tests/ui/pattern/usefulness/auxiliary/hidden.rs diff --git a/src/test/ui/pattern/usefulness/auxiliary/unstable.rs b/tests/ui/pattern/usefulness/auxiliary/unstable.rs similarity index 100% rename from src/test/ui/pattern/usefulness/auxiliary/unstable.rs rename to tests/ui/pattern/usefulness/auxiliary/unstable.rs diff --git a/src/test/ui/pattern/usefulness/const-partial_eq-fallback-ice.rs b/tests/ui/pattern/usefulness/const-partial_eq-fallback-ice.rs similarity index 100% rename from src/test/ui/pattern/usefulness/const-partial_eq-fallback-ice.rs rename to tests/ui/pattern/usefulness/const-partial_eq-fallback-ice.rs diff --git a/src/test/ui/pattern/usefulness/const-partial_eq-fallback-ice.stderr b/tests/ui/pattern/usefulness/const-partial_eq-fallback-ice.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/const-partial_eq-fallback-ice.stderr rename to tests/ui/pattern/usefulness/const-partial_eq-fallback-ice.stderr diff --git a/src/test/ui/pattern/usefulness/const-pat-ice.rs b/tests/ui/pattern/usefulness/const-pat-ice.rs similarity index 100% rename from src/test/ui/pattern/usefulness/const-pat-ice.rs rename to tests/ui/pattern/usefulness/const-pat-ice.rs diff --git a/src/test/ui/pattern/usefulness/const-private-fields.rs b/tests/ui/pattern/usefulness/const-private-fields.rs similarity index 100% rename from src/test/ui/pattern/usefulness/const-private-fields.rs rename to tests/ui/pattern/usefulness/const-private-fields.rs diff --git a/src/test/ui/pattern/usefulness/consts-opaque.rs b/tests/ui/pattern/usefulness/consts-opaque.rs similarity index 100% rename from src/test/ui/pattern/usefulness/consts-opaque.rs rename to tests/ui/pattern/usefulness/consts-opaque.rs diff --git a/src/test/ui/pattern/usefulness/consts-opaque.stderr b/tests/ui/pattern/usefulness/consts-opaque.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/consts-opaque.stderr rename to tests/ui/pattern/usefulness/consts-opaque.stderr diff --git a/src/test/ui/pattern/usefulness/deny-irrefutable-let-patterns.rs b/tests/ui/pattern/usefulness/deny-irrefutable-let-patterns.rs similarity index 100% rename from src/test/ui/pattern/usefulness/deny-irrefutable-let-patterns.rs rename to tests/ui/pattern/usefulness/deny-irrefutable-let-patterns.rs diff --git a/src/test/ui/pattern/usefulness/deny-irrefutable-let-patterns.stderr b/tests/ui/pattern/usefulness/deny-irrefutable-let-patterns.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/deny-irrefutable-let-patterns.stderr rename to tests/ui/pattern/usefulness/deny-irrefutable-let-patterns.stderr diff --git a/src/test/ui/pattern/usefulness/doc-hidden-fields.rs b/tests/ui/pattern/usefulness/doc-hidden-fields.rs similarity index 100% rename from src/test/ui/pattern/usefulness/doc-hidden-fields.rs rename to tests/ui/pattern/usefulness/doc-hidden-fields.rs diff --git a/src/test/ui/pattern/usefulness/doc-hidden-fields.stderr b/tests/ui/pattern/usefulness/doc-hidden-fields.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/doc-hidden-fields.stderr rename to tests/ui/pattern/usefulness/doc-hidden-fields.stderr diff --git a/src/test/ui/pattern/usefulness/doc-hidden-non-exhaustive.rs b/tests/ui/pattern/usefulness/doc-hidden-non-exhaustive.rs similarity index 100% rename from src/test/ui/pattern/usefulness/doc-hidden-non-exhaustive.rs rename to tests/ui/pattern/usefulness/doc-hidden-non-exhaustive.rs diff --git a/src/test/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr b/tests/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr rename to tests/ui/pattern/usefulness/doc-hidden-non-exhaustive.stderr diff --git a/src/test/ui/pattern/usefulness/empty-match.exhaustive_patterns.stderr b/tests/ui/pattern/usefulness/empty-match.exhaustive_patterns.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/empty-match.exhaustive_patterns.stderr rename to tests/ui/pattern/usefulness/empty-match.exhaustive_patterns.stderr diff --git a/src/test/ui/pattern/usefulness/empty-match.normal.stderr b/tests/ui/pattern/usefulness/empty-match.normal.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/empty-match.normal.stderr rename to tests/ui/pattern/usefulness/empty-match.normal.stderr diff --git a/src/test/ui/pattern/usefulness/empty-match.rs b/tests/ui/pattern/usefulness/empty-match.rs similarity index 100% rename from src/test/ui/pattern/usefulness/empty-match.rs rename to tests/ui/pattern/usefulness/empty-match.rs diff --git a/src/test/ui/pattern/usefulness/floats.rs b/tests/ui/pattern/usefulness/floats.rs similarity index 100% rename from src/test/ui/pattern/usefulness/floats.rs rename to tests/ui/pattern/usefulness/floats.rs diff --git a/src/test/ui/pattern/usefulness/floats.stderr b/tests/ui/pattern/usefulness/floats.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/floats.stderr rename to tests/ui/pattern/usefulness/floats.stderr diff --git a/src/test/ui/pattern/usefulness/guards.rs b/tests/ui/pattern/usefulness/guards.rs similarity index 100% rename from src/test/ui/pattern/usefulness/guards.rs rename to tests/ui/pattern/usefulness/guards.rs diff --git a/src/test/ui/pattern/usefulness/guards.stderr b/tests/ui/pattern/usefulness/guards.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/guards.stderr rename to tests/ui/pattern/usefulness/guards.stderr diff --git a/src/test/ui/pattern/usefulness/integer-ranges/exhaustiveness.rs b/tests/ui/pattern/usefulness/integer-ranges/exhaustiveness.rs similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/exhaustiveness.rs rename to tests/ui/pattern/usefulness/integer-ranges/exhaustiveness.rs diff --git a/src/test/ui/pattern/usefulness/integer-ranges/exhaustiveness.stderr b/tests/ui/pattern/usefulness/integer-ranges/exhaustiveness.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/exhaustiveness.stderr rename to tests/ui/pattern/usefulness/integer-ranges/exhaustiveness.stderr diff --git a/src/test/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.rs b/tests/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.rs similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.rs rename to tests/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.rs diff --git a/src/test/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.stderr b/tests/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.stderr rename to tests/ui/pattern/usefulness/integer-ranges/overlapping_range_endpoints.stderr diff --git a/src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.allow.stderr b/tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.allow.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.allow.stderr rename to tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.allow.stderr diff --git a/src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.deny.stderr b/tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.deny.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.deny.stderr rename to tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.deny.stderr diff --git a/src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.rs b/tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.rs similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.rs rename to tests/ui/pattern/usefulness/integer-ranges/pointer-sized-int.rs diff --git a/src/test/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.rs b/tests/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.rs similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.rs rename to tests/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.rs diff --git a/src/test/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.stderr b/tests/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.stderr rename to tests/ui/pattern/usefulness/integer-ranges/precise_pointer_matching-message.stderr diff --git a/src/test/ui/pattern/usefulness/integer-ranges/reachability.rs b/tests/ui/pattern/usefulness/integer-ranges/reachability.rs similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/reachability.rs rename to tests/ui/pattern/usefulness/integer-ranges/reachability.rs diff --git a/src/test/ui/pattern/usefulness/integer-ranges/reachability.stderr b/tests/ui/pattern/usefulness/integer-ranges/reachability.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/integer-ranges/reachability.stderr rename to tests/ui/pattern/usefulness/integer-ranges/reachability.stderr diff --git a/src/test/ui/pattern/usefulness/irrefutable-let-patterns.rs b/tests/ui/pattern/usefulness/irrefutable-let-patterns.rs similarity index 100% rename from src/test/ui/pattern/usefulness/irrefutable-let-patterns.rs rename to tests/ui/pattern/usefulness/irrefutable-let-patterns.rs diff --git a/src/test/ui/pattern/usefulness/irrefutable-unit.rs b/tests/ui/pattern/usefulness/irrefutable-unit.rs similarity index 100% rename from src/test/ui/pattern/usefulness/irrefutable-unit.rs rename to tests/ui/pattern/usefulness/irrefutable-unit.rs diff --git a/src/test/ui/pattern/usefulness/issue-12116.rs b/tests/ui/pattern/usefulness/issue-12116.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-12116.rs rename to tests/ui/pattern/usefulness/issue-12116.rs diff --git a/src/test/ui/pattern/usefulness/issue-12116.stderr b/tests/ui/pattern/usefulness/issue-12116.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-12116.stderr rename to tests/ui/pattern/usefulness/issue-12116.stderr diff --git a/src/test/ui/pattern/usefulness/issue-12369.rs b/tests/ui/pattern/usefulness/issue-12369.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-12369.rs rename to tests/ui/pattern/usefulness/issue-12369.rs diff --git a/src/test/ui/pattern/usefulness/issue-12369.stderr b/tests/ui/pattern/usefulness/issue-12369.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-12369.stderr rename to tests/ui/pattern/usefulness/issue-12369.stderr diff --git a/src/test/ui/pattern/usefulness/issue-13727.rs b/tests/ui/pattern/usefulness/issue-13727.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-13727.rs rename to tests/ui/pattern/usefulness/issue-13727.rs diff --git a/src/test/ui/pattern/usefulness/issue-13727.stderr b/tests/ui/pattern/usefulness/issue-13727.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-13727.stderr rename to tests/ui/pattern/usefulness/issue-13727.stderr diff --git a/src/test/ui/pattern/usefulness/issue-15129.rs b/tests/ui/pattern/usefulness/issue-15129.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-15129.rs rename to tests/ui/pattern/usefulness/issue-15129.rs diff --git a/src/test/ui/pattern/usefulness/issue-15129.stderr b/tests/ui/pattern/usefulness/issue-15129.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-15129.stderr rename to tests/ui/pattern/usefulness/issue-15129.stderr diff --git a/src/test/ui/pattern/usefulness/issue-2111.rs b/tests/ui/pattern/usefulness/issue-2111.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-2111.rs rename to tests/ui/pattern/usefulness/issue-2111.rs diff --git a/src/test/ui/pattern/usefulness/issue-2111.stderr b/tests/ui/pattern/usefulness/issue-2111.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-2111.stderr rename to tests/ui/pattern/usefulness/issue-2111.stderr diff --git a/src/test/ui/pattern/usefulness/issue-30240-b.rs b/tests/ui/pattern/usefulness/issue-30240-b.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-30240-b.rs rename to tests/ui/pattern/usefulness/issue-30240-b.rs diff --git a/src/test/ui/pattern/usefulness/issue-30240-b.stderr b/tests/ui/pattern/usefulness/issue-30240-b.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-30240-b.stderr rename to tests/ui/pattern/usefulness/issue-30240-b.stderr diff --git a/src/test/ui/pattern/usefulness/issue-30240-rpass.rs b/tests/ui/pattern/usefulness/issue-30240-rpass.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-30240-rpass.rs rename to tests/ui/pattern/usefulness/issue-30240-rpass.rs diff --git a/src/test/ui/pattern/usefulness/issue-30240.rs b/tests/ui/pattern/usefulness/issue-30240.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-30240.rs rename to tests/ui/pattern/usefulness/issue-30240.rs diff --git a/src/test/ui/pattern/usefulness/issue-30240.stderr b/tests/ui/pattern/usefulness/issue-30240.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-30240.stderr rename to tests/ui/pattern/usefulness/issue-30240.stderr diff --git a/src/test/ui/pattern/usefulness/issue-3096-1.rs b/tests/ui/pattern/usefulness/issue-3096-1.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-3096-1.rs rename to tests/ui/pattern/usefulness/issue-3096-1.rs diff --git a/src/test/ui/pattern/usefulness/issue-3096-1.stderr b/tests/ui/pattern/usefulness/issue-3096-1.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-3096-1.stderr rename to tests/ui/pattern/usefulness/issue-3096-1.stderr diff --git a/src/test/ui/pattern/usefulness/issue-3096-2.rs b/tests/ui/pattern/usefulness/issue-3096-2.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-3096-2.rs rename to tests/ui/pattern/usefulness/issue-3096-2.rs diff --git a/src/test/ui/pattern/usefulness/issue-3096-2.stderr b/tests/ui/pattern/usefulness/issue-3096-2.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-3096-2.stderr rename to tests/ui/pattern/usefulness/issue-3096-2.stderr diff --git a/src/test/ui/pattern/usefulness/issue-31221.rs b/tests/ui/pattern/usefulness/issue-31221.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-31221.rs rename to tests/ui/pattern/usefulness/issue-31221.rs diff --git a/src/test/ui/pattern/usefulness/issue-31221.stderr b/tests/ui/pattern/usefulness/issue-31221.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-31221.stderr rename to tests/ui/pattern/usefulness/issue-31221.stderr diff --git a/src/test/ui/pattern/usefulness/issue-31561.rs b/tests/ui/pattern/usefulness/issue-31561.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-31561.rs rename to tests/ui/pattern/usefulness/issue-31561.rs diff --git a/src/test/ui/pattern/usefulness/issue-31561.stderr b/tests/ui/pattern/usefulness/issue-31561.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-31561.stderr rename to tests/ui/pattern/usefulness/issue-31561.stderr diff --git a/src/test/ui/pattern/usefulness/issue-35609.rs b/tests/ui/pattern/usefulness/issue-35609.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-35609.rs rename to tests/ui/pattern/usefulness/issue-35609.rs diff --git a/src/test/ui/pattern/usefulness/issue-35609.stderr b/tests/ui/pattern/usefulness/issue-35609.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-35609.stderr rename to tests/ui/pattern/usefulness/issue-35609.stderr diff --git a/src/test/ui/pattern/usefulness/issue-3601.rs b/tests/ui/pattern/usefulness/issue-3601.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-3601.rs rename to tests/ui/pattern/usefulness/issue-3601.rs diff --git a/src/test/ui/pattern/usefulness/issue-3601.stderr b/tests/ui/pattern/usefulness/issue-3601.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-3601.stderr rename to tests/ui/pattern/usefulness/issue-3601.stderr diff --git a/src/test/ui/pattern/usefulness/issue-39362.rs b/tests/ui/pattern/usefulness/issue-39362.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-39362.rs rename to tests/ui/pattern/usefulness/issue-39362.rs diff --git a/src/test/ui/pattern/usefulness/issue-39362.stderr b/tests/ui/pattern/usefulness/issue-39362.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-39362.stderr rename to tests/ui/pattern/usefulness/issue-39362.stderr diff --git a/src/test/ui/pattern/usefulness/issue-40221.rs b/tests/ui/pattern/usefulness/issue-40221.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-40221.rs rename to tests/ui/pattern/usefulness/issue-40221.rs diff --git a/src/test/ui/pattern/usefulness/issue-40221.stderr b/tests/ui/pattern/usefulness/issue-40221.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-40221.stderr rename to tests/ui/pattern/usefulness/issue-40221.stderr diff --git a/src/test/ui/pattern/usefulness/issue-4321.rs b/tests/ui/pattern/usefulness/issue-4321.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-4321.rs rename to tests/ui/pattern/usefulness/issue-4321.rs diff --git a/src/test/ui/pattern/usefulness/issue-4321.stderr b/tests/ui/pattern/usefulness/issue-4321.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-4321.stderr rename to tests/ui/pattern/usefulness/issue-4321.stderr diff --git a/src/test/ui/pattern/usefulness/issue-50900.rs b/tests/ui/pattern/usefulness/issue-50900.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-50900.rs rename to tests/ui/pattern/usefulness/issue-50900.rs diff --git a/src/test/ui/pattern/usefulness/issue-50900.stderr b/tests/ui/pattern/usefulness/issue-50900.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-50900.stderr rename to tests/ui/pattern/usefulness/issue-50900.stderr diff --git a/src/test/ui/pattern/usefulness/issue-53820-slice-pattern-large-array.rs b/tests/ui/pattern/usefulness/issue-53820-slice-pattern-large-array.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-53820-slice-pattern-large-array.rs rename to tests/ui/pattern/usefulness/issue-53820-slice-pattern-large-array.rs diff --git a/src/test/ui/pattern/usefulness/issue-56379.rs b/tests/ui/pattern/usefulness/issue-56379.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-56379.rs rename to tests/ui/pattern/usefulness/issue-56379.rs diff --git a/src/test/ui/pattern/usefulness/issue-56379.stderr b/tests/ui/pattern/usefulness/issue-56379.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-56379.stderr rename to tests/ui/pattern/usefulness/issue-56379.stderr diff --git a/src/test/ui/pattern/usefulness/issue-57472.rs b/tests/ui/pattern/usefulness/issue-57472.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-57472.rs rename to tests/ui/pattern/usefulness/issue-57472.rs diff --git a/src/test/ui/pattern/usefulness/issue-57472.stderr b/tests/ui/pattern/usefulness/issue-57472.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-57472.stderr rename to tests/ui/pattern/usefulness/issue-57472.stderr diff --git a/src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs b/tests/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs rename to tests/ui/pattern/usefulness/issue-65413-constants-and-slices-exhaustiveness.rs diff --git a/src/test/ui/pattern/usefulness/issue-66501.rs b/tests/ui/pattern/usefulness/issue-66501.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-66501.rs rename to tests/ui/pattern/usefulness/issue-66501.rs diff --git a/src/test/ui/pattern/usefulness/issue-71930-type-of-match-scrutinee.rs b/tests/ui/pattern/usefulness/issue-71930-type-of-match-scrutinee.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-71930-type-of-match-scrutinee.rs rename to tests/ui/pattern/usefulness/issue-71930-type-of-match-scrutinee.rs diff --git a/src/test/ui/pattern/usefulness/issue-72377.rs b/tests/ui/pattern/usefulness/issue-72377.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-72377.rs rename to tests/ui/pattern/usefulness/issue-72377.rs diff --git a/src/test/ui/pattern/usefulness/issue-72377.stderr b/tests/ui/pattern/usefulness/issue-72377.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-72377.stderr rename to tests/ui/pattern/usefulness/issue-72377.stderr diff --git a/src/test/ui/pattern/usefulness/issue-72476-and-89393-associated-type.rs b/tests/ui/pattern/usefulness/issue-72476-and-89393-associated-type.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-72476-and-89393-associated-type.rs rename to tests/ui/pattern/usefulness/issue-72476-and-89393-associated-type.rs diff --git a/src/test/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs b/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs rename to tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.rs diff --git a/src/test/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr b/tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr rename to tests/ui/pattern/usefulness/issue-78123-non-exhaustive-reference.stderr diff --git a/src/test/ui/pattern/usefulness/issue-78549-ref-pat-and-str.rs b/tests/ui/pattern/usefulness/issue-78549-ref-pat-and-str.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-78549-ref-pat-and-str.rs rename to tests/ui/pattern/usefulness/issue-78549-ref-pat-and-str.rs diff --git a/src/test/ui/pattern/usefulness/issue-80501-or-pat-and-macro.rs b/tests/ui/pattern/usefulness/issue-80501-or-pat-and-macro.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-80501-or-pat-and-macro.rs rename to tests/ui/pattern/usefulness/issue-80501-or-pat-and-macro.rs diff --git a/src/test/ui/pattern/usefulness/issue-82772-match-box-as-struct.rs b/tests/ui/pattern/usefulness/issue-82772-match-box-as-struct.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-82772-match-box-as-struct.rs rename to tests/ui/pattern/usefulness/issue-82772-match-box-as-struct.rs diff --git a/src/test/ui/pattern/usefulness/issue-82772-match-box-as-struct.stderr b/tests/ui/pattern/usefulness/issue-82772-match-box-as-struct.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/issue-82772-match-box-as-struct.stderr rename to tests/ui/pattern/usefulness/issue-82772-match-box-as-struct.stderr diff --git a/src/test/ui/pattern/usefulness/issue-88747.rs b/tests/ui/pattern/usefulness/issue-88747.rs similarity index 100% rename from src/test/ui/pattern/usefulness/issue-88747.rs rename to tests/ui/pattern/usefulness/issue-88747.rs diff --git a/src/test/ui/pattern/usefulness/match-arm-statics-2.rs b/tests/ui/pattern/usefulness/match-arm-statics-2.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-arm-statics-2.rs rename to tests/ui/pattern/usefulness/match-arm-statics-2.rs diff --git a/src/test/ui/pattern/usefulness/match-arm-statics-2.stderr b/tests/ui/pattern/usefulness/match-arm-statics-2.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-arm-statics-2.stderr rename to tests/ui/pattern/usefulness/match-arm-statics-2.stderr diff --git a/src/test/ui/pattern/usefulness/match-arm-statics.rs b/tests/ui/pattern/usefulness/match-arm-statics.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-arm-statics.rs rename to tests/ui/pattern/usefulness/match-arm-statics.rs diff --git a/src/test/ui/pattern/usefulness/match-arm-statics.stderr b/tests/ui/pattern/usefulness/match-arm-statics.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-arm-statics.stderr rename to tests/ui/pattern/usefulness/match-arm-statics.stderr diff --git a/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs b/tests/ui/pattern/usefulness/match-byte-array-patterns-2.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs rename to tests/ui/pattern/usefulness/match-byte-array-patterns-2.rs diff --git a/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr b/tests/ui/pattern/usefulness/match-byte-array-patterns-2.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr rename to tests/ui/pattern/usefulness/match-byte-array-patterns-2.stderr diff --git a/src/test/ui/pattern/usefulness/match-byte-array-patterns.rs b/tests/ui/pattern/usefulness/match-byte-array-patterns.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-byte-array-patterns.rs rename to tests/ui/pattern/usefulness/match-byte-array-patterns.rs diff --git a/src/test/ui/pattern/usefulness/match-byte-array-patterns.stderr b/tests/ui/pattern/usefulness/match-byte-array-patterns.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-byte-array-patterns.stderr rename to tests/ui/pattern/usefulness/match-byte-array-patterns.stderr diff --git a/src/test/ui/pattern/usefulness/match-non-exhaustive.rs b/tests/ui/pattern/usefulness/match-non-exhaustive.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-non-exhaustive.rs rename to tests/ui/pattern/usefulness/match-non-exhaustive.rs diff --git a/src/test/ui/pattern/usefulness/match-non-exhaustive.stderr b/tests/ui/pattern/usefulness/match-non-exhaustive.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-non-exhaustive.stderr rename to tests/ui/pattern/usefulness/match-non-exhaustive.stderr diff --git a/src/test/ui/pattern/usefulness/match-privately-empty.rs b/tests/ui/pattern/usefulness/match-privately-empty.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-privately-empty.rs rename to tests/ui/pattern/usefulness/match-privately-empty.rs diff --git a/src/test/ui/pattern/usefulness/match-privately-empty.stderr b/tests/ui/pattern/usefulness/match-privately-empty.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-privately-empty.stderr rename to tests/ui/pattern/usefulness/match-privately-empty.stderr diff --git a/src/test/ui/pattern/usefulness/match-ref-ice.rs b/tests/ui/pattern/usefulness/match-ref-ice.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-ref-ice.rs rename to tests/ui/pattern/usefulness/match-ref-ice.rs diff --git a/src/test/ui/pattern/usefulness/match-ref-ice.stderr b/tests/ui/pattern/usefulness/match-ref-ice.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-ref-ice.stderr rename to tests/ui/pattern/usefulness/match-ref-ice.stderr diff --git a/src/test/ui/pattern/usefulness/match-slice-patterns.rs b/tests/ui/pattern/usefulness/match-slice-patterns.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-slice-patterns.rs rename to tests/ui/pattern/usefulness/match-slice-patterns.rs diff --git a/src/test/ui/pattern/usefulness/match-slice-patterns.stderr b/tests/ui/pattern/usefulness/match-slice-patterns.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-slice-patterns.stderr rename to tests/ui/pattern/usefulness/match-slice-patterns.stderr diff --git a/src/test/ui/pattern/usefulness/match-vec-fixed.rs b/tests/ui/pattern/usefulness/match-vec-fixed.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-vec-fixed.rs rename to tests/ui/pattern/usefulness/match-vec-fixed.rs diff --git a/src/test/ui/pattern/usefulness/match-vec-fixed.stderr b/tests/ui/pattern/usefulness/match-vec-fixed.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-vec-fixed.stderr rename to tests/ui/pattern/usefulness/match-vec-fixed.stderr diff --git a/src/test/ui/pattern/usefulness/match-vec-unreachable.rs b/tests/ui/pattern/usefulness/match-vec-unreachable.rs similarity index 100% rename from src/test/ui/pattern/usefulness/match-vec-unreachable.rs rename to tests/ui/pattern/usefulness/match-vec-unreachable.rs diff --git a/src/test/ui/pattern/usefulness/match-vec-unreachable.stderr b/tests/ui/pattern/usefulness/match-vec-unreachable.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/match-vec-unreachable.stderr rename to tests/ui/pattern/usefulness/match-vec-unreachable.stderr diff --git a/src/test/ui/pattern/usefulness/nested-exhaustive-match.rs b/tests/ui/pattern/usefulness/nested-exhaustive-match.rs similarity index 100% rename from src/test/ui/pattern/usefulness/nested-exhaustive-match.rs rename to tests/ui/pattern/usefulness/nested-exhaustive-match.rs diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-defined-here.rs b/tests/ui/pattern/usefulness/non-exhaustive-defined-here.rs similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-defined-here.rs rename to tests/ui/pattern/usefulness/non-exhaustive-defined-here.rs diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr b/tests/ui/pattern/usefulness/non-exhaustive-defined-here.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-defined-here.stderr rename to tests/ui/pattern/usefulness/non-exhaustive-defined-here.stderr diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-match-nested.rs b/tests/ui/pattern/usefulness/non-exhaustive-match-nested.rs similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-match-nested.rs rename to tests/ui/pattern/usefulness/non-exhaustive-match-nested.rs diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-match-nested.stderr b/tests/ui/pattern/usefulness/non-exhaustive-match-nested.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-match-nested.stderr rename to tests/ui/pattern/usefulness/non-exhaustive-match-nested.stderr diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-match.rs b/tests/ui/pattern/usefulness/non-exhaustive-match.rs similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-match.rs rename to tests/ui/pattern/usefulness/non-exhaustive-match.rs diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-match.stderr b/tests/ui/pattern/usefulness/non-exhaustive-match.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-match.stderr rename to tests/ui/pattern/usefulness/non-exhaustive-match.stderr diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-pattern-witness.rs b/tests/ui/pattern/usefulness/non-exhaustive-pattern-witness.rs similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-pattern-witness.rs rename to tests/ui/pattern/usefulness/non-exhaustive-pattern-witness.rs diff --git a/src/test/ui/pattern/usefulness/non-exhaustive-pattern-witness.stderr b/tests/ui/pattern/usefulness/non-exhaustive-pattern-witness.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/non-exhaustive-pattern-witness.stderr rename to tests/ui/pattern/usefulness/non-exhaustive-pattern-witness.stderr diff --git a/src/test/ui/pattern/usefulness/refutable-pattern-errors.rs b/tests/ui/pattern/usefulness/refutable-pattern-errors.rs similarity index 100% rename from src/test/ui/pattern/usefulness/refutable-pattern-errors.rs rename to tests/ui/pattern/usefulness/refutable-pattern-errors.rs diff --git a/src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr b/tests/ui/pattern/usefulness/refutable-pattern-errors.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/refutable-pattern-errors.stderr rename to tests/ui/pattern/usefulness/refutable-pattern-errors.stderr diff --git a/src/test/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs b/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs similarity index 100% rename from src/test/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs rename to tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs diff --git a/src/test/ui/pattern/usefulness/refutable-pattern-in-fn-arg.stderr b/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/refutable-pattern-in-fn-arg.stderr rename to tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.stderr diff --git a/src/test/ui/pattern/usefulness/slice-pattern-const-2.rs b/tests/ui/pattern/usefulness/slice-pattern-const-2.rs similarity index 100% rename from src/test/ui/pattern/usefulness/slice-pattern-const-2.rs rename to tests/ui/pattern/usefulness/slice-pattern-const-2.rs diff --git a/src/test/ui/pattern/usefulness/slice-pattern-const-2.stderr b/tests/ui/pattern/usefulness/slice-pattern-const-2.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/slice-pattern-const-2.stderr rename to tests/ui/pattern/usefulness/slice-pattern-const-2.stderr diff --git a/src/test/ui/pattern/usefulness/slice-pattern-const-3.rs b/tests/ui/pattern/usefulness/slice-pattern-const-3.rs similarity index 100% rename from src/test/ui/pattern/usefulness/slice-pattern-const-3.rs rename to tests/ui/pattern/usefulness/slice-pattern-const-3.rs diff --git a/src/test/ui/pattern/usefulness/slice-pattern-const-3.stderr b/tests/ui/pattern/usefulness/slice-pattern-const-3.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/slice-pattern-const-3.stderr rename to tests/ui/pattern/usefulness/slice-pattern-const-3.stderr diff --git a/src/test/ui/pattern/usefulness/slice-pattern-const.rs b/tests/ui/pattern/usefulness/slice-pattern-const.rs similarity index 100% rename from src/test/ui/pattern/usefulness/slice-pattern-const.rs rename to tests/ui/pattern/usefulness/slice-pattern-const.rs diff --git a/src/test/ui/pattern/usefulness/slice-pattern-const.stderr b/tests/ui/pattern/usefulness/slice-pattern-const.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/slice-pattern-const.stderr rename to tests/ui/pattern/usefulness/slice-pattern-const.stderr diff --git a/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs b/tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs similarity index 100% rename from src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs rename to tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.rs diff --git a/src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr b/tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr rename to tests/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr diff --git a/src/test/ui/pattern/usefulness/slice-patterns-irrefutable.rs b/tests/ui/pattern/usefulness/slice-patterns-irrefutable.rs similarity index 100% rename from src/test/ui/pattern/usefulness/slice-patterns-irrefutable.rs rename to tests/ui/pattern/usefulness/slice-patterns-irrefutable.rs diff --git a/src/test/ui/pattern/usefulness/slice-patterns-reachability.rs b/tests/ui/pattern/usefulness/slice-patterns-reachability.rs similarity index 100% rename from src/test/ui/pattern/usefulness/slice-patterns-reachability.rs rename to tests/ui/pattern/usefulness/slice-patterns-reachability.rs diff --git a/src/test/ui/pattern/usefulness/slice-patterns-reachability.stderr b/tests/ui/pattern/usefulness/slice-patterns-reachability.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/slice-patterns-reachability.stderr rename to tests/ui/pattern/usefulness/slice-patterns-reachability.stderr diff --git a/src/test/ui/pattern/usefulness/stable-gated-fields.rs b/tests/ui/pattern/usefulness/stable-gated-fields.rs similarity index 100% rename from src/test/ui/pattern/usefulness/stable-gated-fields.rs rename to tests/ui/pattern/usefulness/stable-gated-fields.rs diff --git a/src/test/ui/pattern/usefulness/stable-gated-fields.stderr b/tests/ui/pattern/usefulness/stable-gated-fields.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/stable-gated-fields.stderr rename to tests/ui/pattern/usefulness/stable-gated-fields.stderr diff --git a/src/test/ui/pattern/usefulness/stable-gated-patterns.rs b/tests/ui/pattern/usefulness/stable-gated-patterns.rs similarity index 100% rename from src/test/ui/pattern/usefulness/stable-gated-patterns.rs rename to tests/ui/pattern/usefulness/stable-gated-patterns.rs diff --git a/src/test/ui/pattern/usefulness/stable-gated-patterns.stderr b/tests/ui/pattern/usefulness/stable-gated-patterns.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/stable-gated-patterns.stderr rename to tests/ui/pattern/usefulness/stable-gated-patterns.stderr diff --git a/src/test/ui/pattern/usefulness/struct-like-enum-nonexhaustive.rs b/tests/ui/pattern/usefulness/struct-like-enum-nonexhaustive.rs similarity index 100% rename from src/test/ui/pattern/usefulness/struct-like-enum-nonexhaustive.rs rename to tests/ui/pattern/usefulness/struct-like-enum-nonexhaustive.rs diff --git a/src/test/ui/pattern/usefulness/struct-like-enum-nonexhaustive.stderr b/tests/ui/pattern/usefulness/struct-like-enum-nonexhaustive.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/struct-like-enum-nonexhaustive.stderr rename to tests/ui/pattern/usefulness/struct-like-enum-nonexhaustive.stderr diff --git a/src/test/ui/pattern/usefulness/struct-pattern-match-useless.rs b/tests/ui/pattern/usefulness/struct-pattern-match-useless.rs similarity index 100% rename from src/test/ui/pattern/usefulness/struct-pattern-match-useless.rs rename to tests/ui/pattern/usefulness/struct-pattern-match-useless.rs diff --git a/src/test/ui/pattern/usefulness/struct-pattern-match-useless.stderr b/tests/ui/pattern/usefulness/struct-pattern-match-useless.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/struct-pattern-match-useless.stderr rename to tests/ui/pattern/usefulness/struct-pattern-match-useless.stderr diff --git a/src/test/ui/pattern/usefulness/top-level-alternation.rs b/tests/ui/pattern/usefulness/top-level-alternation.rs similarity index 100% rename from src/test/ui/pattern/usefulness/top-level-alternation.rs rename to tests/ui/pattern/usefulness/top-level-alternation.rs diff --git a/src/test/ui/pattern/usefulness/top-level-alternation.stderr b/tests/ui/pattern/usefulness/top-level-alternation.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/top-level-alternation.stderr rename to tests/ui/pattern/usefulness/top-level-alternation.stderr diff --git a/src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.rs b/tests/ui/pattern/usefulness/tuple-struct-nonexhaustive.rs similarity index 100% rename from src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.rs rename to tests/ui/pattern/usefulness/tuple-struct-nonexhaustive.rs diff --git a/src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.stderr b/tests/ui/pattern/usefulness/tuple-struct-nonexhaustive.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.stderr rename to tests/ui/pattern/usefulness/tuple-struct-nonexhaustive.stderr diff --git a/src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.rs b/tests/ui/pattern/usefulness/type_polymorphic_byte_str_literals.rs similarity index 100% rename from src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.rs rename to tests/ui/pattern/usefulness/type_polymorphic_byte_str_literals.rs diff --git a/src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.stderr b/tests/ui/pattern/usefulness/type_polymorphic_byte_str_literals.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.stderr rename to tests/ui/pattern/usefulness/type_polymorphic_byte_str_literals.stderr diff --git a/src/test/ui/pattern/usefulness/uninhabited.rs b/tests/ui/pattern/usefulness/uninhabited.rs similarity index 100% rename from src/test/ui/pattern/usefulness/uninhabited.rs rename to tests/ui/pattern/usefulness/uninhabited.rs diff --git a/src/test/ui/pattern/usefulness/unstable-gated-fields.rs b/tests/ui/pattern/usefulness/unstable-gated-fields.rs similarity index 100% rename from src/test/ui/pattern/usefulness/unstable-gated-fields.rs rename to tests/ui/pattern/usefulness/unstable-gated-fields.rs diff --git a/src/test/ui/pattern/usefulness/unstable-gated-fields.stderr b/tests/ui/pattern/usefulness/unstable-gated-fields.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/unstable-gated-fields.stderr rename to tests/ui/pattern/usefulness/unstable-gated-fields.stderr diff --git a/src/test/ui/pattern/usefulness/unstable-gated-patterns.rs b/tests/ui/pattern/usefulness/unstable-gated-patterns.rs similarity index 100% rename from src/test/ui/pattern/usefulness/unstable-gated-patterns.rs rename to tests/ui/pattern/usefulness/unstable-gated-patterns.rs diff --git a/src/test/ui/pattern/usefulness/unstable-gated-patterns.stderr b/tests/ui/pattern/usefulness/unstable-gated-patterns.stderr similarity index 100% rename from src/test/ui/pattern/usefulness/unstable-gated-patterns.stderr rename to tests/ui/pattern/usefulness/unstable-gated-patterns.stderr diff --git a/src/test/ui/phantom-auto-trait.rs b/tests/ui/phantom-auto-trait.rs similarity index 100% rename from src/test/ui/phantom-auto-trait.rs rename to tests/ui/phantom-auto-trait.rs diff --git a/src/test/ui/phantom-auto-trait.stderr b/tests/ui/phantom-auto-trait.stderr similarity index 100% rename from src/test/ui/phantom-auto-trait.stderr rename to tests/ui/phantom-auto-trait.stderr diff --git a/src/test/ui/pin-macro/cant_access_internals.rs b/tests/ui/pin-macro/cant_access_internals.rs similarity index 100% rename from src/test/ui/pin-macro/cant_access_internals.rs rename to tests/ui/pin-macro/cant_access_internals.rs diff --git a/src/test/ui/pin-macro/cant_access_internals.stderr b/tests/ui/pin-macro/cant_access_internals.stderr similarity index 100% rename from src/test/ui/pin-macro/cant_access_internals.stderr rename to tests/ui/pin-macro/cant_access_internals.stderr diff --git a/src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs b/tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs similarity index 100% rename from src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs rename to tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.rs diff --git a/src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr b/tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr similarity index 100% rename from src/test/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr rename to tests/ui/pin-macro/lifetime_errors_on_promotion_misusage.stderr diff --git a/src/test/ui/point-to-type-err-cause-on-impl-trait-return-2.rs b/tests/ui/point-to-type-err-cause-on-impl-trait-return-2.rs similarity index 100% rename from src/test/ui/point-to-type-err-cause-on-impl-trait-return-2.rs rename to tests/ui/point-to-type-err-cause-on-impl-trait-return-2.rs diff --git a/src/test/ui/point-to-type-err-cause-on-impl-trait-return-2.stderr b/tests/ui/point-to-type-err-cause-on-impl-trait-return-2.stderr similarity index 100% rename from src/test/ui/point-to-type-err-cause-on-impl-trait-return-2.stderr rename to tests/ui/point-to-type-err-cause-on-impl-trait-return-2.stderr diff --git a/src/test/ui/polymorphization/closure_in_upvar/fn.rs b/tests/ui/polymorphization/closure_in_upvar/fn.rs similarity index 100% rename from src/test/ui/polymorphization/closure_in_upvar/fn.rs rename to tests/ui/polymorphization/closure_in_upvar/fn.rs diff --git a/src/test/ui/polymorphization/closure_in_upvar/fnmut.rs b/tests/ui/polymorphization/closure_in_upvar/fnmut.rs similarity index 100% rename from src/test/ui/polymorphization/closure_in_upvar/fnmut.rs rename to tests/ui/polymorphization/closure_in_upvar/fnmut.rs diff --git a/src/test/ui/polymorphization/closure_in_upvar/fnonce.rs b/tests/ui/polymorphization/closure_in_upvar/fnonce.rs similarity index 100% rename from src/test/ui/polymorphization/closure_in_upvar/fnonce.rs rename to tests/ui/polymorphization/closure_in_upvar/fnonce.rs diff --git a/src/test/ui/polymorphization/closure_in_upvar/other.rs b/tests/ui/polymorphization/closure_in_upvar/other.rs similarity index 100% rename from src/test/ui/polymorphization/closure_in_upvar/other.rs rename to tests/ui/polymorphization/closure_in_upvar/other.rs diff --git a/src/test/ui/polymorphization/const_parameters/closures.rs b/tests/ui/polymorphization/const_parameters/closures.rs similarity index 100% rename from src/test/ui/polymorphization/const_parameters/closures.rs rename to tests/ui/polymorphization/const_parameters/closures.rs diff --git a/src/test/ui/polymorphization/const_parameters/closures.stderr b/tests/ui/polymorphization/const_parameters/closures.stderr similarity index 100% rename from src/test/ui/polymorphization/const_parameters/closures.stderr rename to tests/ui/polymorphization/const_parameters/closures.stderr diff --git a/src/test/ui/polymorphization/const_parameters/functions.rs b/tests/ui/polymorphization/const_parameters/functions.rs similarity index 100% rename from src/test/ui/polymorphization/const_parameters/functions.rs rename to tests/ui/polymorphization/const_parameters/functions.rs diff --git a/src/test/ui/polymorphization/const_parameters/functions.stderr b/tests/ui/polymorphization/const_parameters/functions.stderr similarity index 100% rename from src/test/ui/polymorphization/const_parameters/functions.stderr rename to tests/ui/polymorphization/const_parameters/functions.stderr diff --git a/src/test/ui/polymorphization/drop_shims/simple.rs b/tests/ui/polymorphization/drop_shims/simple.rs similarity index 100% rename from src/test/ui/polymorphization/drop_shims/simple.rs rename to tests/ui/polymorphization/drop_shims/simple.rs diff --git a/src/test/ui/polymorphization/drop_shims/transitive.rs b/tests/ui/polymorphization/drop_shims/transitive.rs similarity index 100% rename from src/test/ui/polymorphization/drop_shims/transitive.rs rename to tests/ui/polymorphization/drop_shims/transitive.rs diff --git a/src/test/ui/polymorphization/generators.rs b/tests/ui/polymorphization/generators.rs similarity index 100% rename from src/test/ui/polymorphization/generators.rs rename to tests/ui/polymorphization/generators.rs diff --git a/src/test/ui/polymorphization/generators.stderr b/tests/ui/polymorphization/generators.stderr similarity index 100% rename from src/test/ui/polymorphization/generators.stderr rename to tests/ui/polymorphization/generators.stderr diff --git a/src/test/ui/polymorphization/issue-74614.rs b/tests/ui/polymorphization/issue-74614.rs similarity index 100% rename from src/test/ui/polymorphization/issue-74614.rs rename to tests/ui/polymorphization/issue-74614.rs diff --git a/src/test/ui/polymorphization/issue-74636.rs b/tests/ui/polymorphization/issue-74636.rs similarity index 100% rename from src/test/ui/polymorphization/issue-74636.rs rename to tests/ui/polymorphization/issue-74636.rs diff --git a/src/test/ui/polymorphization/lifetimes.rs b/tests/ui/polymorphization/lifetimes.rs similarity index 100% rename from src/test/ui/polymorphization/lifetimes.rs rename to tests/ui/polymorphization/lifetimes.rs diff --git a/src/test/ui/polymorphization/lifetimes.stderr b/tests/ui/polymorphization/lifetimes.stderr similarity index 100% rename from src/test/ui/polymorphization/lifetimes.stderr rename to tests/ui/polymorphization/lifetimes.stderr diff --git a/src/test/ui/polymorphization/normalized_sig_types.rs b/tests/ui/polymorphization/normalized_sig_types.rs similarity index 100% rename from src/test/ui/polymorphization/normalized_sig_types.rs rename to tests/ui/polymorphization/normalized_sig_types.rs diff --git a/src/test/ui/polymorphization/predicates.rs b/tests/ui/polymorphization/predicates.rs similarity index 100% rename from src/test/ui/polymorphization/predicates.rs rename to tests/ui/polymorphization/predicates.rs diff --git a/src/test/ui/polymorphization/predicates.stderr b/tests/ui/polymorphization/predicates.stderr similarity index 100% rename from src/test/ui/polymorphization/predicates.stderr rename to tests/ui/polymorphization/predicates.stderr diff --git a/src/test/ui/polymorphization/promoted-function-1.rs b/tests/ui/polymorphization/promoted-function-1.rs similarity index 100% rename from src/test/ui/polymorphization/promoted-function-1.rs rename to tests/ui/polymorphization/promoted-function-1.rs diff --git a/src/test/ui/polymorphization/promoted-function-1.stderr b/tests/ui/polymorphization/promoted-function-1.stderr similarity index 100% rename from src/test/ui/polymorphization/promoted-function-1.stderr rename to tests/ui/polymorphization/promoted-function-1.stderr diff --git a/src/test/ui/polymorphization/promoted-function-2.rs b/tests/ui/polymorphization/promoted-function-2.rs similarity index 100% rename from src/test/ui/polymorphization/promoted-function-2.rs rename to tests/ui/polymorphization/promoted-function-2.rs diff --git a/src/test/ui/polymorphization/promoted-function-2.stderr b/tests/ui/polymorphization/promoted-function-2.stderr similarity index 100% rename from src/test/ui/polymorphization/promoted-function-2.stderr rename to tests/ui/polymorphization/promoted-function-2.stderr diff --git a/src/test/ui/polymorphization/promoted-function-3.rs b/tests/ui/polymorphization/promoted-function-3.rs similarity index 100% rename from src/test/ui/polymorphization/promoted-function-3.rs rename to tests/ui/polymorphization/promoted-function-3.rs diff --git a/src/test/ui/polymorphization/promoted-function.rs b/tests/ui/polymorphization/promoted-function.rs similarity index 100% rename from src/test/ui/polymorphization/promoted-function.rs rename to tests/ui/polymorphization/promoted-function.rs diff --git a/src/test/ui/polymorphization/symbol-ambiguity.rs b/tests/ui/polymorphization/symbol-ambiguity.rs similarity index 100% rename from src/test/ui/polymorphization/symbol-ambiguity.rs rename to tests/ui/polymorphization/symbol-ambiguity.rs diff --git a/src/test/ui/polymorphization/too-many-generic-params.rs b/tests/ui/polymorphization/too-many-generic-params.rs similarity index 100% rename from src/test/ui/polymorphization/too-many-generic-params.rs rename to tests/ui/polymorphization/too-many-generic-params.rs diff --git a/src/test/ui/polymorphization/type_parameters/closures.rs b/tests/ui/polymorphization/type_parameters/closures.rs similarity index 100% rename from src/test/ui/polymorphization/type_parameters/closures.rs rename to tests/ui/polymorphization/type_parameters/closures.rs diff --git a/src/test/ui/polymorphization/type_parameters/closures.stderr b/tests/ui/polymorphization/type_parameters/closures.stderr similarity index 100% rename from src/test/ui/polymorphization/type_parameters/closures.stderr rename to tests/ui/polymorphization/type_parameters/closures.stderr diff --git a/src/test/ui/polymorphization/type_parameters/functions.rs b/tests/ui/polymorphization/type_parameters/functions.rs similarity index 100% rename from src/test/ui/polymorphization/type_parameters/functions.rs rename to tests/ui/polymorphization/type_parameters/functions.rs diff --git a/src/test/ui/polymorphization/type_parameters/functions.stderr b/tests/ui/polymorphization/type_parameters/functions.stderr similarity index 100% rename from src/test/ui/polymorphization/type_parameters/functions.stderr rename to tests/ui/polymorphization/type_parameters/functions.stderr diff --git a/src/test/ui/polymorphization/unsized_cast.rs b/tests/ui/polymorphization/unsized_cast.rs similarity index 100% rename from src/test/ui/polymorphization/unsized_cast.rs rename to tests/ui/polymorphization/unsized_cast.rs diff --git a/src/test/ui/polymorphization/unsized_cast.stderr b/tests/ui/polymorphization/unsized_cast.stderr similarity index 100% rename from src/test/ui/polymorphization/unsized_cast.stderr rename to tests/ui/polymorphization/unsized_cast.stderr diff --git a/src/test/ui/pptypedef.rs b/tests/ui/pptypedef.rs similarity index 100% rename from src/test/ui/pptypedef.rs rename to tests/ui/pptypedef.rs diff --git a/src/test/ui/pptypedef.stderr b/tests/ui/pptypedef.stderr similarity index 100% rename from src/test/ui/pptypedef.stderr rename to tests/ui/pptypedef.stderr diff --git a/src/test/ui/primitive-binop-lhs-mut.rs b/tests/ui/primitive-binop-lhs-mut.rs similarity index 100% rename from src/test/ui/primitive-binop-lhs-mut.rs rename to tests/ui/primitive-binop-lhs-mut.rs diff --git a/src/test/ui/print-fuel/print-fuel.rs b/tests/ui/print-fuel/print-fuel.rs similarity index 100% rename from src/test/ui/print-fuel/print-fuel.rs rename to tests/ui/print-fuel/print-fuel.rs diff --git a/src/test/ui/print-fuel/print-fuel.stderr b/tests/ui/print-fuel/print-fuel.stderr similarity index 100% rename from src/test/ui/print-fuel/print-fuel.stderr rename to tests/ui/print-fuel/print-fuel.stderr diff --git a/src/test/ui/print-stdout-eprint-stderr.rs b/tests/ui/print-stdout-eprint-stderr.rs similarity index 100% rename from src/test/ui/print-stdout-eprint-stderr.rs rename to tests/ui/print-stdout-eprint-stderr.rs diff --git a/src/test/ui/print_type_sizes/anonymous.rs b/tests/ui/print_type_sizes/anonymous.rs similarity index 100% rename from src/test/ui/print_type_sizes/anonymous.rs rename to tests/ui/print_type_sizes/anonymous.rs diff --git a/src/test/ui/print_type_sizes/async.rs b/tests/ui/print_type_sizes/async.rs similarity index 100% rename from src/test/ui/print_type_sizes/async.rs rename to tests/ui/print_type_sizes/async.rs diff --git a/src/test/ui/print_type_sizes/async.stdout b/tests/ui/print_type_sizes/async.stdout similarity index 100% rename from src/test/ui/print_type_sizes/async.stdout rename to tests/ui/print_type_sizes/async.stdout diff --git a/src/test/ui/print_type_sizes/generator.rs b/tests/ui/print_type_sizes/generator.rs similarity index 100% rename from src/test/ui/print_type_sizes/generator.rs rename to tests/ui/print_type_sizes/generator.rs diff --git a/src/test/ui/print_type_sizes/generator.stdout b/tests/ui/print_type_sizes/generator.stdout similarity index 100% rename from src/test/ui/print_type_sizes/generator.stdout rename to tests/ui/print_type_sizes/generator.stdout diff --git a/src/test/ui/print_type_sizes/generator_discr_placement.rs b/tests/ui/print_type_sizes/generator_discr_placement.rs similarity index 100% rename from src/test/ui/print_type_sizes/generator_discr_placement.rs rename to tests/ui/print_type_sizes/generator_discr_placement.rs diff --git a/src/test/ui/print_type_sizes/generator_discr_placement.stdout b/tests/ui/print_type_sizes/generator_discr_placement.stdout similarity index 100% rename from src/test/ui/print_type_sizes/generator_discr_placement.stdout rename to tests/ui/print_type_sizes/generator_discr_placement.stdout diff --git a/src/test/ui/print_type_sizes/generics.rs b/tests/ui/print_type_sizes/generics.rs similarity index 100% rename from src/test/ui/print_type_sizes/generics.rs rename to tests/ui/print_type_sizes/generics.rs diff --git a/src/test/ui/print_type_sizes/generics.stdout b/tests/ui/print_type_sizes/generics.stdout similarity index 100% rename from src/test/ui/print_type_sizes/generics.stdout rename to tests/ui/print_type_sizes/generics.stdout diff --git a/src/test/ui/print_type_sizes/multiple_types.rs b/tests/ui/print_type_sizes/multiple_types.rs similarity index 100% rename from src/test/ui/print_type_sizes/multiple_types.rs rename to tests/ui/print_type_sizes/multiple_types.rs diff --git a/src/test/ui/print_type_sizes/multiple_types.stdout b/tests/ui/print_type_sizes/multiple_types.stdout similarity index 100% rename from src/test/ui/print_type_sizes/multiple_types.stdout rename to tests/ui/print_type_sizes/multiple_types.stdout diff --git a/src/test/ui/print_type_sizes/niche-filling.rs b/tests/ui/print_type_sizes/niche-filling.rs similarity index 100% rename from src/test/ui/print_type_sizes/niche-filling.rs rename to tests/ui/print_type_sizes/niche-filling.rs diff --git a/src/test/ui/print_type_sizes/niche-filling.stdout b/tests/ui/print_type_sizes/niche-filling.stdout similarity index 100% rename from src/test/ui/print_type_sizes/niche-filling.stdout rename to tests/ui/print_type_sizes/niche-filling.stdout diff --git a/src/test/ui/print_type_sizes/no_duplicates.rs b/tests/ui/print_type_sizes/no_duplicates.rs similarity index 100% rename from src/test/ui/print_type_sizes/no_duplicates.rs rename to tests/ui/print_type_sizes/no_duplicates.rs diff --git a/src/test/ui/print_type_sizes/no_duplicates.stdout b/tests/ui/print_type_sizes/no_duplicates.stdout similarity index 100% rename from src/test/ui/print_type_sizes/no_duplicates.stdout rename to tests/ui/print_type_sizes/no_duplicates.stdout diff --git a/src/test/ui/print_type_sizes/packed.rs b/tests/ui/print_type_sizes/packed.rs similarity index 100% rename from src/test/ui/print_type_sizes/packed.rs rename to tests/ui/print_type_sizes/packed.rs diff --git a/src/test/ui/print_type_sizes/packed.stdout b/tests/ui/print_type_sizes/packed.stdout similarity index 100% rename from src/test/ui/print_type_sizes/packed.stdout rename to tests/ui/print_type_sizes/packed.stdout diff --git a/src/test/ui/print_type_sizes/padding.rs b/tests/ui/print_type_sizes/padding.rs similarity index 100% rename from src/test/ui/print_type_sizes/padding.rs rename to tests/ui/print_type_sizes/padding.rs diff --git a/src/test/ui/print_type_sizes/padding.stdout b/tests/ui/print_type_sizes/padding.stdout similarity index 100% rename from src/test/ui/print_type_sizes/padding.stdout rename to tests/ui/print_type_sizes/padding.stdout diff --git a/src/test/ui/print_type_sizes/repr-align.rs b/tests/ui/print_type_sizes/repr-align.rs similarity index 100% rename from src/test/ui/print_type_sizes/repr-align.rs rename to tests/ui/print_type_sizes/repr-align.rs diff --git a/src/test/ui/print_type_sizes/repr-align.stdout b/tests/ui/print_type_sizes/repr-align.stdout similarity index 100% rename from src/test/ui/print_type_sizes/repr-align.stdout rename to tests/ui/print_type_sizes/repr-align.stdout diff --git a/src/test/ui/print_type_sizes/repr_int_c.rs b/tests/ui/print_type_sizes/repr_int_c.rs similarity index 100% rename from src/test/ui/print_type_sizes/repr_int_c.rs rename to tests/ui/print_type_sizes/repr_int_c.rs diff --git a/src/test/ui/print_type_sizes/repr_int_c.stdout b/tests/ui/print_type_sizes/repr_int_c.stdout similarity index 100% rename from src/test/ui/print_type_sizes/repr_int_c.stdout rename to tests/ui/print_type_sizes/repr_int_c.stdout diff --git a/src/test/ui/print_type_sizes/uninhabited.rs b/tests/ui/print_type_sizes/uninhabited.rs similarity index 100% rename from src/test/ui/print_type_sizes/uninhabited.rs rename to tests/ui/print_type_sizes/uninhabited.rs diff --git a/src/test/ui/print_type_sizes/uninhabited.stdout b/tests/ui/print_type_sizes/uninhabited.stdout similarity index 100% rename from src/test/ui/print_type_sizes/uninhabited.stdout rename to tests/ui/print_type_sizes/uninhabited.stdout diff --git a/src/test/ui/print_type_sizes/variants.rs b/tests/ui/print_type_sizes/variants.rs similarity index 100% rename from src/test/ui/print_type_sizes/variants.rs rename to tests/ui/print_type_sizes/variants.rs diff --git a/src/test/ui/print_type_sizes/variants.stdout b/tests/ui/print_type_sizes/variants.stdout similarity index 100% rename from src/test/ui/print_type_sizes/variants.stdout rename to tests/ui/print_type_sizes/variants.stdout diff --git a/src/test/ui/print_type_sizes/zero-sized-fields.rs b/tests/ui/print_type_sizes/zero-sized-fields.rs similarity index 100% rename from src/test/ui/print_type_sizes/zero-sized-fields.rs rename to tests/ui/print_type_sizes/zero-sized-fields.rs diff --git a/src/test/ui/print_type_sizes/zero-sized-fields.stdout b/tests/ui/print_type_sizes/zero-sized-fields.stdout similarity index 100% rename from src/test/ui/print_type_sizes/zero-sized-fields.stdout rename to tests/ui/print_type_sizes/zero-sized-fields.stdout diff --git a/src/test/ui/privacy/associated-item-privacy-inherent.rs b/tests/ui/privacy/associated-item-privacy-inherent.rs similarity index 100% rename from src/test/ui/privacy/associated-item-privacy-inherent.rs rename to tests/ui/privacy/associated-item-privacy-inherent.rs diff --git a/src/test/ui/privacy/associated-item-privacy-inherent.stderr b/tests/ui/privacy/associated-item-privacy-inherent.stderr similarity index 100% rename from src/test/ui/privacy/associated-item-privacy-inherent.stderr rename to tests/ui/privacy/associated-item-privacy-inherent.stderr diff --git a/src/test/ui/privacy/associated-item-privacy-trait.rs b/tests/ui/privacy/associated-item-privacy-trait.rs similarity index 100% rename from src/test/ui/privacy/associated-item-privacy-trait.rs rename to tests/ui/privacy/associated-item-privacy-trait.rs diff --git a/src/test/ui/privacy/associated-item-privacy-trait.stderr b/tests/ui/privacy/associated-item-privacy-trait.stderr similarity index 100% rename from src/test/ui/privacy/associated-item-privacy-trait.stderr rename to tests/ui/privacy/associated-item-privacy-trait.stderr diff --git a/src/test/ui/privacy/associated-item-privacy-type-binding.rs b/tests/ui/privacy/associated-item-privacy-type-binding.rs similarity index 100% rename from src/test/ui/privacy/associated-item-privacy-type-binding.rs rename to tests/ui/privacy/associated-item-privacy-type-binding.rs diff --git a/src/test/ui/privacy/associated-item-privacy-type-binding.stderr b/tests/ui/privacy/associated-item-privacy-type-binding.stderr similarity index 100% rename from src/test/ui/privacy/associated-item-privacy-type-binding.stderr rename to tests/ui/privacy/associated-item-privacy-type-binding.stderr diff --git a/src/test/ui/privacy/auxiliary/cci_class.rs b/tests/ui/privacy/auxiliary/cci_class.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/cci_class.rs rename to tests/ui/privacy/auxiliary/cci_class.rs diff --git a/src/test/ui/privacy/auxiliary/cci_class_5.rs b/tests/ui/privacy/auxiliary/cci_class_5.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/cci_class_5.rs rename to tests/ui/privacy/auxiliary/cci_class_5.rs diff --git a/src/test/ui/privacy/auxiliary/ctor_aux.rs b/tests/ui/privacy/auxiliary/ctor_aux.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/ctor_aux.rs rename to tests/ui/privacy/auxiliary/ctor_aux.rs diff --git a/src/test/ui/privacy/auxiliary/impl_privacy_xc_2.rs b/tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/impl_privacy_xc_2.rs rename to tests/ui/privacy/auxiliary/impl_privacy_xc_2.rs diff --git a/src/test/ui/privacy/auxiliary/issue-17718-const-privacy.rs b/tests/ui/privacy/auxiliary/issue-17718-const-privacy.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/issue-17718-const-privacy.rs rename to tests/ui/privacy/auxiliary/issue-17718-const-privacy.rs diff --git a/src/test/ui/privacy/auxiliary/issue-57264-1.rs b/tests/ui/privacy/auxiliary/issue-57264-1.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/issue-57264-1.rs rename to tests/ui/privacy/auxiliary/issue-57264-1.rs diff --git a/src/test/ui/privacy/auxiliary/issue-57264-2.rs b/tests/ui/privacy/auxiliary/issue-57264-2.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/issue-57264-2.rs rename to tests/ui/privacy/auxiliary/issue-57264-2.rs diff --git a/src/test/ui/privacy/auxiliary/issue-75907.rs b/tests/ui/privacy/auxiliary/issue-75907.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/issue-75907.rs rename to tests/ui/privacy/auxiliary/issue-75907.rs diff --git a/src/test/ui/privacy/auxiliary/issue-92755.rs b/tests/ui/privacy/auxiliary/issue-92755.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/issue-92755.rs rename to tests/ui/privacy/auxiliary/issue-92755.rs diff --git a/src/test/ui/privacy/auxiliary/priv-impl-prim-ty.rs b/tests/ui/privacy/auxiliary/priv-impl-prim-ty.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/priv-impl-prim-ty.rs rename to tests/ui/privacy/auxiliary/priv-impl-prim-ty.rs diff --git a/src/test/ui/privacy/auxiliary/privacy_reexport.rs b/tests/ui/privacy/auxiliary/privacy_reexport.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/privacy_reexport.rs rename to tests/ui/privacy/auxiliary/privacy_reexport.rs diff --git a/src/test/ui/privacy/auxiliary/privacy_tuple_struct.rs b/tests/ui/privacy/auxiliary/privacy_tuple_struct.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/privacy_tuple_struct.rs rename to tests/ui/privacy/auxiliary/privacy_tuple_struct.rs diff --git a/src/test/ui/privacy/auxiliary/private-inferred-type.rs b/tests/ui/privacy/auxiliary/private-inferred-type.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/private-inferred-type.rs rename to tests/ui/privacy/auxiliary/private-inferred-type.rs diff --git a/src/test/ui/privacy/auxiliary/pub_use_mods_xcrate.rs b/tests/ui/privacy/auxiliary/pub_use_mods_xcrate.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/pub_use_mods_xcrate.rs rename to tests/ui/privacy/auxiliary/pub_use_mods_xcrate.rs diff --git a/src/test/ui/privacy/auxiliary/pub_use_xcrate1.rs b/tests/ui/privacy/auxiliary/pub_use_xcrate1.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/pub_use_xcrate1.rs rename to tests/ui/privacy/auxiliary/pub_use_xcrate1.rs diff --git a/src/test/ui/privacy/auxiliary/pub_use_xcrate2.rs b/tests/ui/privacy/auxiliary/pub_use_xcrate2.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/pub_use_xcrate2.rs rename to tests/ui/privacy/auxiliary/pub_use_xcrate2.rs diff --git a/src/test/ui/privacy/auxiliary/reachable-unnameable-items.rs b/tests/ui/privacy/auxiliary/reachable-unnameable-items.rs similarity index 100% rename from src/test/ui/privacy/auxiliary/reachable-unnameable-items.rs rename to tests/ui/privacy/auxiliary/reachable-unnameable-items.rs diff --git a/src/test/ui/privacy/crate-private-reexport.rs b/tests/ui/privacy/crate-private-reexport.rs similarity index 100% rename from src/test/ui/privacy/crate-private-reexport.rs rename to tests/ui/privacy/crate-private-reexport.rs diff --git a/src/test/ui/privacy/crate-private-reexport.stderr b/tests/ui/privacy/crate-private-reexport.stderr similarity index 100% rename from src/test/ui/privacy/crate-private-reexport.stderr rename to tests/ui/privacy/crate-private-reexport.stderr diff --git a/src/test/ui/privacy/ctor.rs b/tests/ui/privacy/ctor.rs similarity index 100% rename from src/test/ui/privacy/ctor.rs rename to tests/ui/privacy/ctor.rs diff --git a/src/test/ui/privacy/decl-macro.rs b/tests/ui/privacy/decl-macro.rs similarity index 100% rename from src/test/ui/privacy/decl-macro.rs rename to tests/ui/privacy/decl-macro.rs diff --git a/src/test/ui/privacy/decl-macro.stderr b/tests/ui/privacy/decl-macro.stderr similarity index 100% rename from src/test/ui/privacy/decl-macro.stderr rename to tests/ui/privacy/decl-macro.stderr diff --git a/src/test/ui/privacy/effective_visibilities.rs b/tests/ui/privacy/effective_visibilities.rs similarity index 100% rename from src/test/ui/privacy/effective_visibilities.rs rename to tests/ui/privacy/effective_visibilities.rs diff --git a/src/test/ui/privacy/effective_visibilities.stderr b/tests/ui/privacy/effective_visibilities.stderr similarity index 100% rename from src/test/ui/privacy/effective_visibilities.stderr rename to tests/ui/privacy/effective_visibilities.stderr diff --git a/src/test/ui/privacy/effective_visibilities_glob.rs b/tests/ui/privacy/effective_visibilities_glob.rs similarity index 100% rename from src/test/ui/privacy/effective_visibilities_glob.rs rename to tests/ui/privacy/effective_visibilities_glob.rs diff --git a/src/test/ui/privacy/effective_visibilities_glob.stderr b/tests/ui/privacy/effective_visibilities_glob.stderr similarity index 100% rename from src/test/ui/privacy/effective_visibilities_glob.stderr rename to tests/ui/privacy/effective_visibilities_glob.stderr diff --git a/src/test/ui/privacy/effective_visibilities_invariants.rs b/tests/ui/privacy/effective_visibilities_invariants.rs similarity index 100% rename from src/test/ui/privacy/effective_visibilities_invariants.rs rename to tests/ui/privacy/effective_visibilities_invariants.rs diff --git a/src/test/ui/privacy/effective_visibilities_invariants.stderr b/tests/ui/privacy/effective_visibilities_invariants.stderr similarity index 100% rename from src/test/ui/privacy/effective_visibilities_invariants.stderr rename to tests/ui/privacy/effective_visibilities_invariants.stderr diff --git a/src/test/ui/privacy/export-tag-variant.rs b/tests/ui/privacy/export-tag-variant.rs similarity index 100% rename from src/test/ui/privacy/export-tag-variant.rs rename to tests/ui/privacy/export-tag-variant.rs diff --git a/src/test/ui/privacy/export-tag-variant.stderr b/tests/ui/privacy/export-tag-variant.stderr similarity index 100% rename from src/test/ui/privacy/export-tag-variant.stderr rename to tests/ui/privacy/export-tag-variant.stderr diff --git a/src/test/ui/privacy/impl-privacy-xc-2.rs b/tests/ui/privacy/impl-privacy-xc-2.rs similarity index 100% rename from src/test/ui/privacy/impl-privacy-xc-2.rs rename to tests/ui/privacy/impl-privacy-xc-2.rs diff --git a/src/test/ui/privacy/issue-13641.rs b/tests/ui/privacy/issue-13641.rs similarity index 100% rename from src/test/ui/privacy/issue-13641.rs rename to tests/ui/privacy/issue-13641.rs diff --git a/src/test/ui/privacy/issue-13641.stderr b/tests/ui/privacy/issue-13641.stderr similarity index 100% rename from src/test/ui/privacy/issue-13641.stderr rename to tests/ui/privacy/issue-13641.stderr diff --git a/src/test/ui/privacy/issue-17718-const-privacy.rs b/tests/ui/privacy/issue-17718-const-privacy.rs similarity index 100% rename from src/test/ui/privacy/issue-17718-const-privacy.rs rename to tests/ui/privacy/issue-17718-const-privacy.rs diff --git a/src/test/ui/privacy/issue-17718-const-privacy.stderr b/tests/ui/privacy/issue-17718-const-privacy.stderr similarity index 100% rename from src/test/ui/privacy/issue-17718-const-privacy.stderr rename to tests/ui/privacy/issue-17718-const-privacy.stderr diff --git a/src/test/ui/privacy/issue-29161.rs b/tests/ui/privacy/issue-29161.rs similarity index 100% rename from src/test/ui/privacy/issue-29161.rs rename to tests/ui/privacy/issue-29161.rs diff --git a/src/test/ui/privacy/issue-29161.stderr b/tests/ui/privacy/issue-29161.stderr similarity index 100% rename from src/test/ui/privacy/issue-29161.stderr rename to tests/ui/privacy/issue-29161.stderr diff --git a/src/test/ui/privacy/issue-30079.rs b/tests/ui/privacy/issue-30079.rs similarity index 100% rename from src/test/ui/privacy/issue-30079.rs rename to tests/ui/privacy/issue-30079.rs diff --git a/src/test/ui/privacy/issue-30079.stderr b/tests/ui/privacy/issue-30079.stderr similarity index 100% rename from src/test/ui/privacy/issue-30079.stderr rename to tests/ui/privacy/issue-30079.stderr diff --git a/src/test/ui/privacy/issue-46209-private-enum-variant-reexport.rs b/tests/ui/privacy/issue-46209-private-enum-variant-reexport.rs similarity index 100% rename from src/test/ui/privacy/issue-46209-private-enum-variant-reexport.rs rename to tests/ui/privacy/issue-46209-private-enum-variant-reexport.rs diff --git a/src/test/ui/privacy/issue-46209-private-enum-variant-reexport.stderr b/tests/ui/privacy/issue-46209-private-enum-variant-reexport.stderr similarity index 100% rename from src/test/ui/privacy/issue-46209-private-enum-variant-reexport.stderr rename to tests/ui/privacy/issue-46209-private-enum-variant-reexport.stderr diff --git a/src/test/ui/privacy/issue-57264-1.rs b/tests/ui/privacy/issue-57264-1.rs similarity index 100% rename from src/test/ui/privacy/issue-57264-1.rs rename to tests/ui/privacy/issue-57264-1.rs diff --git a/src/test/ui/privacy/issue-57264-2.rs b/tests/ui/privacy/issue-57264-2.rs similarity index 100% rename from src/test/ui/privacy/issue-57264-2.rs rename to tests/ui/privacy/issue-57264-2.rs diff --git a/src/test/ui/privacy/issue-75062-fieldless-tuple-struct.rs b/tests/ui/privacy/issue-75062-fieldless-tuple-struct.rs similarity index 100% rename from src/test/ui/privacy/issue-75062-fieldless-tuple-struct.rs rename to tests/ui/privacy/issue-75062-fieldless-tuple-struct.rs diff --git a/src/test/ui/privacy/issue-75062-fieldless-tuple-struct.stderr b/tests/ui/privacy/issue-75062-fieldless-tuple-struct.stderr similarity index 100% rename from src/test/ui/privacy/issue-75062-fieldless-tuple-struct.stderr rename to tests/ui/privacy/issue-75062-fieldless-tuple-struct.stderr diff --git a/src/test/ui/privacy/issue-75906.rs b/tests/ui/privacy/issue-75906.rs similarity index 100% rename from src/test/ui/privacy/issue-75906.rs rename to tests/ui/privacy/issue-75906.rs diff --git a/src/test/ui/privacy/issue-75906.stderr b/tests/ui/privacy/issue-75906.stderr similarity index 100% rename from src/test/ui/privacy/issue-75906.stderr rename to tests/ui/privacy/issue-75906.stderr diff --git a/src/test/ui/privacy/issue-75907.rs b/tests/ui/privacy/issue-75907.rs similarity index 100% rename from src/test/ui/privacy/issue-75907.rs rename to tests/ui/privacy/issue-75907.rs diff --git a/src/test/ui/privacy/issue-75907.stderr b/tests/ui/privacy/issue-75907.stderr similarity index 100% rename from src/test/ui/privacy/issue-75907.stderr rename to tests/ui/privacy/issue-75907.stderr diff --git a/src/test/ui/privacy/issue-75907_b.rs b/tests/ui/privacy/issue-75907_b.rs similarity index 100% rename from src/test/ui/privacy/issue-75907_b.rs rename to tests/ui/privacy/issue-75907_b.rs diff --git a/src/test/ui/privacy/issue-75907_b.stderr b/tests/ui/privacy/issue-75907_b.stderr similarity index 100% rename from src/test/ui/privacy/issue-75907_b.stderr rename to tests/ui/privacy/issue-75907_b.stderr diff --git a/src/test/ui/privacy/issue-79593.rs b/tests/ui/privacy/issue-79593.rs similarity index 100% rename from src/test/ui/privacy/issue-79593.rs rename to tests/ui/privacy/issue-79593.rs diff --git a/src/test/ui/privacy/issue-79593.stderr b/tests/ui/privacy/issue-79593.stderr similarity index 100% rename from src/test/ui/privacy/issue-79593.stderr rename to tests/ui/privacy/issue-79593.stderr diff --git a/src/test/ui/privacy/issue-92755.rs b/tests/ui/privacy/issue-92755.rs similarity index 100% rename from src/test/ui/privacy/issue-92755.rs rename to tests/ui/privacy/issue-92755.rs diff --git a/src/test/ui/privacy/legacy-ctor-visibility.rs b/tests/ui/privacy/legacy-ctor-visibility.rs similarity index 100% rename from src/test/ui/privacy/legacy-ctor-visibility.rs rename to tests/ui/privacy/legacy-ctor-visibility.rs diff --git a/src/test/ui/privacy/legacy-ctor-visibility.stderr b/tests/ui/privacy/legacy-ctor-visibility.stderr similarity index 100% rename from src/test/ui/privacy/legacy-ctor-visibility.stderr rename to tests/ui/privacy/legacy-ctor-visibility.stderr diff --git a/src/test/ui/privacy/macro-private-reexport.rs b/tests/ui/privacy/macro-private-reexport.rs similarity index 100% rename from src/test/ui/privacy/macro-private-reexport.rs rename to tests/ui/privacy/macro-private-reexport.rs diff --git a/src/test/ui/privacy/macro-private-reexport.stderr b/tests/ui/privacy/macro-private-reexport.stderr similarity index 100% rename from src/test/ui/privacy/macro-private-reexport.stderr rename to tests/ui/privacy/macro-private-reexport.stderr diff --git a/src/test/ui/privacy/priv-impl-prim-ty.rs b/tests/ui/privacy/priv-impl-prim-ty.rs similarity index 100% rename from src/test/ui/privacy/priv-impl-prim-ty.rs rename to tests/ui/privacy/priv-impl-prim-ty.rs diff --git a/src/test/ui/privacy/priv-in-bad-locations.rs b/tests/ui/privacy/priv-in-bad-locations.rs similarity index 100% rename from src/test/ui/privacy/priv-in-bad-locations.rs rename to tests/ui/privacy/priv-in-bad-locations.rs diff --git a/src/test/ui/privacy/priv-in-bad-locations.stderr b/tests/ui/privacy/priv-in-bad-locations.stderr similarity index 100% rename from src/test/ui/privacy/priv-in-bad-locations.stderr rename to tests/ui/privacy/priv-in-bad-locations.stderr diff --git a/src/test/ui/privacy/privacy-in-paths.rs b/tests/ui/privacy/privacy-in-paths.rs similarity index 100% rename from src/test/ui/privacy/privacy-in-paths.rs rename to tests/ui/privacy/privacy-in-paths.rs diff --git a/src/test/ui/privacy/privacy-in-paths.stderr b/tests/ui/privacy/privacy-in-paths.stderr similarity index 100% rename from src/test/ui/privacy/privacy-in-paths.stderr rename to tests/ui/privacy/privacy-in-paths.stderr diff --git a/src/test/ui/privacy/privacy-ns.rs b/tests/ui/privacy/privacy-ns.rs similarity index 100% rename from src/test/ui/privacy/privacy-ns.rs rename to tests/ui/privacy/privacy-ns.rs diff --git a/src/test/ui/privacy/privacy-ns1.rs b/tests/ui/privacy/privacy-ns1.rs similarity index 100% rename from src/test/ui/privacy/privacy-ns1.rs rename to tests/ui/privacy/privacy-ns1.rs diff --git a/src/test/ui/privacy/privacy-ns1.stderr b/tests/ui/privacy/privacy-ns1.stderr similarity index 100% rename from src/test/ui/privacy/privacy-ns1.stderr rename to tests/ui/privacy/privacy-ns1.stderr diff --git a/src/test/ui/privacy/privacy-ns2.rs b/tests/ui/privacy/privacy-ns2.rs similarity index 100% rename from src/test/ui/privacy/privacy-ns2.rs rename to tests/ui/privacy/privacy-ns2.rs diff --git a/src/test/ui/privacy/privacy-ns2.stderr b/tests/ui/privacy/privacy-ns2.stderr similarity index 100% rename from src/test/ui/privacy/privacy-ns2.stderr rename to tests/ui/privacy/privacy-ns2.stderr diff --git a/src/test/ui/privacy/privacy-reexport.rs b/tests/ui/privacy/privacy-reexport.rs similarity index 100% rename from src/test/ui/privacy/privacy-reexport.rs rename to tests/ui/privacy/privacy-reexport.rs diff --git a/src/test/ui/privacy/privacy-sanity.rs b/tests/ui/privacy/privacy-sanity.rs similarity index 100% rename from src/test/ui/privacy/privacy-sanity.rs rename to tests/ui/privacy/privacy-sanity.rs diff --git a/src/test/ui/privacy/privacy-sanity.stderr b/tests/ui/privacy/privacy-sanity.stderr similarity index 100% rename from src/test/ui/privacy/privacy-sanity.stderr rename to tests/ui/privacy/privacy-sanity.stderr diff --git a/src/test/ui/privacy/privacy-ufcs.rs b/tests/ui/privacy/privacy-ufcs.rs similarity index 100% rename from src/test/ui/privacy/privacy-ufcs.rs rename to tests/ui/privacy/privacy-ufcs.rs diff --git a/src/test/ui/privacy/privacy-ufcs.stderr b/tests/ui/privacy/privacy-ufcs.stderr similarity index 100% rename from src/test/ui/privacy/privacy-ufcs.stderr rename to tests/ui/privacy/privacy-ufcs.stderr diff --git a/src/test/ui/privacy/privacy1-rpass.rs b/tests/ui/privacy/privacy1-rpass.rs similarity index 100% rename from src/test/ui/privacy/privacy1-rpass.rs rename to tests/ui/privacy/privacy1-rpass.rs diff --git a/src/test/ui/privacy/privacy1.rs b/tests/ui/privacy/privacy1.rs similarity index 100% rename from src/test/ui/privacy/privacy1.rs rename to tests/ui/privacy/privacy1.rs diff --git a/src/test/ui/privacy/privacy1.stderr b/tests/ui/privacy/privacy1.stderr similarity index 100% rename from src/test/ui/privacy/privacy1.stderr rename to tests/ui/privacy/privacy1.stderr diff --git a/src/test/ui/privacy/privacy2.rs b/tests/ui/privacy/privacy2.rs similarity index 100% rename from src/test/ui/privacy/privacy2.rs rename to tests/ui/privacy/privacy2.rs diff --git a/src/test/ui/privacy/privacy2.stderr b/tests/ui/privacy/privacy2.stderr similarity index 100% rename from src/test/ui/privacy/privacy2.stderr rename to tests/ui/privacy/privacy2.stderr diff --git a/src/test/ui/privacy/privacy3.rs b/tests/ui/privacy/privacy3.rs similarity index 100% rename from src/test/ui/privacy/privacy3.rs rename to tests/ui/privacy/privacy3.rs diff --git a/src/test/ui/privacy/privacy3.stderr b/tests/ui/privacy/privacy3.stderr similarity index 100% rename from src/test/ui/privacy/privacy3.stderr rename to tests/ui/privacy/privacy3.stderr diff --git a/src/test/ui/privacy/privacy4.rs b/tests/ui/privacy/privacy4.rs similarity index 100% rename from src/test/ui/privacy/privacy4.rs rename to tests/ui/privacy/privacy4.rs diff --git a/src/test/ui/privacy/privacy4.stderr b/tests/ui/privacy/privacy4.stderr similarity index 100% rename from src/test/ui/privacy/privacy4.stderr rename to tests/ui/privacy/privacy4.stderr diff --git a/src/test/ui/privacy/privacy5.rs b/tests/ui/privacy/privacy5.rs similarity index 100% rename from src/test/ui/privacy/privacy5.rs rename to tests/ui/privacy/privacy5.rs diff --git a/src/test/ui/privacy/privacy5.stderr b/tests/ui/privacy/privacy5.stderr similarity index 100% rename from src/test/ui/privacy/privacy5.stderr rename to tests/ui/privacy/privacy5.stderr diff --git a/src/test/ui/privacy/private-class-field.rs b/tests/ui/privacy/private-class-field.rs similarity index 100% rename from src/test/ui/privacy/private-class-field.rs rename to tests/ui/privacy/private-class-field.rs diff --git a/src/test/ui/privacy/private-field-ty-err.rs b/tests/ui/privacy/private-field-ty-err.rs similarity index 100% rename from src/test/ui/privacy/private-field-ty-err.rs rename to tests/ui/privacy/private-field-ty-err.rs diff --git a/src/test/ui/privacy/private-field-ty-err.stderr b/tests/ui/privacy/private-field-ty-err.stderr similarity index 100% rename from src/test/ui/privacy/private-field-ty-err.stderr rename to tests/ui/privacy/private-field-ty-err.stderr diff --git a/src/test/ui/privacy/private-impl-method.rs b/tests/ui/privacy/private-impl-method.rs similarity index 100% rename from src/test/ui/privacy/private-impl-method.rs rename to tests/ui/privacy/private-impl-method.rs diff --git a/src/test/ui/privacy/private-impl-method.stderr b/tests/ui/privacy/private-impl-method.stderr similarity index 100% rename from src/test/ui/privacy/private-impl-method.stderr rename to tests/ui/privacy/private-impl-method.stderr diff --git a/src/test/ui/privacy/private-in-public-assoc-ty.rs b/tests/ui/privacy/private-in-public-assoc-ty.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-assoc-ty.rs rename to tests/ui/privacy/private-in-public-assoc-ty.rs diff --git a/src/test/ui/privacy/private-in-public-assoc-ty.stderr b/tests/ui/privacy/private-in-public-assoc-ty.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public-assoc-ty.stderr rename to tests/ui/privacy/private-in-public-assoc-ty.stderr diff --git a/src/test/ui/privacy/private-in-public-expr-pat.rs b/tests/ui/privacy/private-in-public-expr-pat.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-expr-pat.rs rename to tests/ui/privacy/private-in-public-expr-pat.rs diff --git a/src/test/ui/privacy/private-in-public-ill-formed.rs b/tests/ui/privacy/private-in-public-ill-formed.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-ill-formed.rs rename to tests/ui/privacy/private-in-public-ill-formed.rs diff --git a/src/test/ui/privacy/private-in-public-ill-formed.stderr b/tests/ui/privacy/private-in-public-ill-formed.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public-ill-formed.stderr rename to tests/ui/privacy/private-in-public-ill-formed.stderr diff --git a/src/test/ui/privacy/private-in-public-lint.rs b/tests/ui/privacy/private-in-public-lint.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-lint.rs rename to tests/ui/privacy/private-in-public-lint.rs diff --git a/src/test/ui/privacy/private-in-public-lint.stderr b/tests/ui/privacy/private-in-public-lint.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public-lint.stderr rename to tests/ui/privacy/private-in-public-lint.stderr diff --git a/src/test/ui/privacy/private-in-public-non-principal-2.rs b/tests/ui/privacy/private-in-public-non-principal-2.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-non-principal-2.rs rename to tests/ui/privacy/private-in-public-non-principal-2.rs diff --git a/src/test/ui/privacy/private-in-public-non-principal-2.stderr b/tests/ui/privacy/private-in-public-non-principal-2.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public-non-principal-2.stderr rename to tests/ui/privacy/private-in-public-non-principal-2.stderr diff --git a/src/test/ui/privacy/private-in-public-non-principal.rs b/tests/ui/privacy/private-in-public-non-principal.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-non-principal.rs rename to tests/ui/privacy/private-in-public-non-principal.rs diff --git a/src/test/ui/privacy/private-in-public-non-principal.stderr b/tests/ui/privacy/private-in-public-non-principal.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public-non-principal.stderr rename to tests/ui/privacy/private-in-public-non-principal.stderr diff --git a/src/test/ui/privacy/private-in-public-type-alias-impl-trait.rs b/tests/ui/privacy/private-in-public-type-alias-impl-trait.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-type-alias-impl-trait.rs rename to tests/ui/privacy/private-in-public-type-alias-impl-trait.rs diff --git a/src/test/ui/privacy/private-in-public-warn.rs b/tests/ui/privacy/private-in-public-warn.rs similarity index 100% rename from src/test/ui/privacy/private-in-public-warn.rs rename to tests/ui/privacy/private-in-public-warn.rs diff --git a/src/test/ui/privacy/private-in-public-warn.stderr b/tests/ui/privacy/private-in-public-warn.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public-warn.stderr rename to tests/ui/privacy/private-in-public-warn.stderr diff --git a/src/test/ui/privacy/private-in-public.rs b/tests/ui/privacy/private-in-public.rs similarity index 100% rename from src/test/ui/privacy/private-in-public.rs rename to tests/ui/privacy/private-in-public.rs diff --git a/src/test/ui/privacy/private-in-public.stderr b/tests/ui/privacy/private-in-public.stderr similarity index 100% rename from src/test/ui/privacy/private-in-public.stderr rename to tests/ui/privacy/private-in-public.stderr diff --git a/src/test/ui/privacy/private-inferred-type-1.rs b/tests/ui/privacy/private-inferred-type-1.rs similarity index 100% rename from src/test/ui/privacy/private-inferred-type-1.rs rename to tests/ui/privacy/private-inferred-type-1.rs diff --git a/src/test/ui/privacy/private-inferred-type-1.stderr b/tests/ui/privacy/private-inferred-type-1.stderr similarity index 100% rename from src/test/ui/privacy/private-inferred-type-1.stderr rename to tests/ui/privacy/private-inferred-type-1.stderr diff --git a/src/test/ui/privacy/private-inferred-type-2.rs b/tests/ui/privacy/private-inferred-type-2.rs similarity index 100% rename from src/test/ui/privacy/private-inferred-type-2.rs rename to tests/ui/privacy/private-inferred-type-2.rs diff --git a/src/test/ui/privacy/private-inferred-type-2.stderr b/tests/ui/privacy/private-inferred-type-2.stderr similarity index 100% rename from src/test/ui/privacy/private-inferred-type-2.stderr rename to tests/ui/privacy/private-inferred-type-2.stderr diff --git a/src/test/ui/privacy/private-inferred-type-3.rs b/tests/ui/privacy/private-inferred-type-3.rs similarity index 100% rename from src/test/ui/privacy/private-inferred-type-3.rs rename to tests/ui/privacy/private-inferred-type-3.rs diff --git a/src/test/ui/privacy/private-inferred-type-3.stderr b/tests/ui/privacy/private-inferred-type-3.stderr similarity index 100% rename from src/test/ui/privacy/private-inferred-type-3.stderr rename to tests/ui/privacy/private-inferred-type-3.stderr diff --git a/src/test/ui/privacy/private-inferred-type.rs b/tests/ui/privacy/private-inferred-type.rs similarity index 100% rename from src/test/ui/privacy/private-inferred-type.rs rename to tests/ui/privacy/private-inferred-type.rs diff --git a/src/test/ui/privacy/private-inferred-type.stderr b/tests/ui/privacy/private-inferred-type.stderr similarity index 100% rename from src/test/ui/privacy/private-inferred-type.stderr rename to tests/ui/privacy/private-inferred-type.stderr diff --git a/src/test/ui/privacy/private-item-simple.rs b/tests/ui/privacy/private-item-simple.rs similarity index 100% rename from src/test/ui/privacy/private-item-simple.rs rename to tests/ui/privacy/private-item-simple.rs diff --git a/src/test/ui/privacy/private-item-simple.stderr b/tests/ui/privacy/private-item-simple.stderr similarity index 100% rename from src/test/ui/privacy/private-item-simple.stderr rename to tests/ui/privacy/private-item-simple.stderr diff --git a/src/test/ui/privacy/private-method-cross-crate.rs b/tests/ui/privacy/private-method-cross-crate.rs similarity index 100% rename from src/test/ui/privacy/private-method-cross-crate.rs rename to tests/ui/privacy/private-method-cross-crate.rs diff --git a/src/test/ui/privacy/private-method-cross-crate.stderr b/tests/ui/privacy/private-method-cross-crate.stderr similarity index 100% rename from src/test/ui/privacy/private-method-cross-crate.stderr rename to tests/ui/privacy/private-method-cross-crate.stderr diff --git a/src/test/ui/privacy/private-method-inherited.rs b/tests/ui/privacy/private-method-inherited.rs similarity index 100% rename from src/test/ui/privacy/private-method-inherited.rs rename to tests/ui/privacy/private-method-inherited.rs diff --git a/src/test/ui/privacy/private-method-inherited.stderr b/tests/ui/privacy/private-method-inherited.stderr similarity index 100% rename from src/test/ui/privacy/private-method-inherited.stderr rename to tests/ui/privacy/private-method-inherited.stderr diff --git a/src/test/ui/privacy/private-method-rpass.rs b/tests/ui/privacy/private-method-rpass.rs similarity index 100% rename from src/test/ui/privacy/private-method-rpass.rs rename to tests/ui/privacy/private-method-rpass.rs diff --git a/src/test/ui/privacy/private-method.rs b/tests/ui/privacy/private-method.rs similarity index 100% rename from src/test/ui/privacy/private-method.rs rename to tests/ui/privacy/private-method.rs diff --git a/src/test/ui/privacy/private-method.stderr b/tests/ui/privacy/private-method.stderr similarity index 100% rename from src/test/ui/privacy/private-method.stderr rename to tests/ui/privacy/private-method.stderr diff --git a/src/test/ui/privacy/private-struct-field-cross-crate.rs b/tests/ui/privacy/private-struct-field-cross-crate.rs similarity index 100% rename from src/test/ui/privacy/private-struct-field-cross-crate.rs rename to tests/ui/privacy/private-struct-field-cross-crate.rs diff --git a/src/test/ui/privacy/private-struct-field-cross-crate.stderr b/tests/ui/privacy/private-struct-field-cross-crate.stderr similarity index 100% rename from src/test/ui/privacy/private-struct-field-cross-crate.stderr rename to tests/ui/privacy/private-struct-field-cross-crate.stderr diff --git a/src/test/ui/privacy/private-struct-field-ctor.rs b/tests/ui/privacy/private-struct-field-ctor.rs similarity index 100% rename from src/test/ui/privacy/private-struct-field-ctor.rs rename to tests/ui/privacy/private-struct-field-ctor.rs diff --git a/src/test/ui/privacy/private-struct-field-ctor.stderr b/tests/ui/privacy/private-struct-field-ctor.stderr similarity index 100% rename from src/test/ui/privacy/private-struct-field-ctor.stderr rename to tests/ui/privacy/private-struct-field-ctor.stderr diff --git a/src/test/ui/privacy/private-struct-field-pattern.rs b/tests/ui/privacy/private-struct-field-pattern.rs similarity index 100% rename from src/test/ui/privacy/private-struct-field-pattern.rs rename to tests/ui/privacy/private-struct-field-pattern.rs diff --git a/src/test/ui/privacy/private-struct-field-pattern.stderr b/tests/ui/privacy/private-struct-field-pattern.stderr similarity index 100% rename from src/test/ui/privacy/private-struct-field-pattern.stderr rename to tests/ui/privacy/private-struct-field-pattern.stderr diff --git a/src/test/ui/privacy/private-struct-field.rs b/tests/ui/privacy/private-struct-field.rs similarity index 100% rename from src/test/ui/privacy/private-struct-field.rs rename to tests/ui/privacy/private-struct-field.rs diff --git a/src/test/ui/privacy/private-struct-field.stderr b/tests/ui/privacy/private-struct-field.stderr similarity index 100% rename from src/test/ui/privacy/private-struct-field.stderr rename to tests/ui/privacy/private-struct-field.stderr diff --git a/src/test/ui/privacy/private-type-in-interface.rs b/tests/ui/privacy/private-type-in-interface.rs similarity index 100% rename from src/test/ui/privacy/private-type-in-interface.rs rename to tests/ui/privacy/private-type-in-interface.rs diff --git a/src/test/ui/privacy/private-type-in-interface.stderr b/tests/ui/privacy/private-type-in-interface.stderr similarity index 100% rename from src/test/ui/privacy/private-type-in-interface.stderr rename to tests/ui/privacy/private-type-in-interface.stderr diff --git a/src/test/ui/privacy/private-variant-reexport.rs b/tests/ui/privacy/private-variant-reexport.rs similarity index 100% rename from src/test/ui/privacy/private-variant-reexport.rs rename to tests/ui/privacy/private-variant-reexport.rs diff --git a/src/test/ui/privacy/private-variant-reexport.stderr b/tests/ui/privacy/private-variant-reexport.stderr similarity index 100% rename from src/test/ui/privacy/private-variant-reexport.stderr rename to tests/ui/privacy/private-variant-reexport.stderr diff --git a/src/test/ui/privacy/pub-extern-privacy.rs b/tests/ui/privacy/pub-extern-privacy.rs similarity index 100% rename from src/test/ui/privacy/pub-extern-privacy.rs rename to tests/ui/privacy/pub-extern-privacy.rs diff --git a/src/test/ui/privacy/pub-priv-dep/auxiliary/priv_dep.rs b/tests/ui/privacy/pub-priv-dep/auxiliary/priv_dep.rs similarity index 100% rename from src/test/ui/privacy/pub-priv-dep/auxiliary/priv_dep.rs rename to tests/ui/privacy/pub-priv-dep/auxiliary/priv_dep.rs diff --git a/src/test/ui/privacy/pub-priv-dep/auxiliary/pub_dep.rs b/tests/ui/privacy/pub-priv-dep/auxiliary/pub_dep.rs similarity index 100% rename from src/test/ui/privacy/pub-priv-dep/auxiliary/pub_dep.rs rename to tests/ui/privacy/pub-priv-dep/auxiliary/pub_dep.rs diff --git a/src/test/ui/privacy/pub-priv-dep/pub-priv1.rs b/tests/ui/privacy/pub-priv-dep/pub-priv1.rs similarity index 100% rename from src/test/ui/privacy/pub-priv-dep/pub-priv1.rs rename to tests/ui/privacy/pub-priv-dep/pub-priv1.rs diff --git a/src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr b/tests/ui/privacy/pub-priv-dep/pub-priv1.stderr similarity index 100% rename from src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr rename to tests/ui/privacy/pub-priv-dep/pub-priv1.stderr diff --git a/src/test/ui/privacy/pub-priv-dep/std-pub.rs b/tests/ui/privacy/pub-priv-dep/std-pub.rs similarity index 100% rename from src/test/ui/privacy/pub-priv-dep/std-pub.rs rename to tests/ui/privacy/pub-priv-dep/std-pub.rs diff --git a/src/test/ui/privacy/pub-use-xcrate.rs b/tests/ui/privacy/pub-use-xcrate.rs similarity index 100% rename from src/test/ui/privacy/pub-use-xcrate.rs rename to tests/ui/privacy/pub-use-xcrate.rs diff --git a/src/test/ui/privacy/pub_use_mods_xcrate_exe.rs b/tests/ui/privacy/pub_use_mods_xcrate_exe.rs similarity index 100% rename from src/test/ui/privacy/pub_use_mods_xcrate_exe.rs rename to tests/ui/privacy/pub_use_mods_xcrate_exe.rs diff --git a/src/test/ui/privacy/reachable-unnameable-items.rs b/tests/ui/privacy/reachable-unnameable-items.rs similarity index 100% rename from src/test/ui/privacy/reachable-unnameable-items.rs rename to tests/ui/privacy/reachable-unnameable-items.rs diff --git a/src/test/ui/privacy/restricted/auxiliary/pub_restricted.rs b/tests/ui/privacy/restricted/auxiliary/pub_restricted.rs similarity index 100% rename from src/test/ui/privacy/restricted/auxiliary/pub_restricted.rs rename to tests/ui/privacy/restricted/auxiliary/pub_restricted.rs diff --git a/src/test/ui/privacy/restricted/lookup-ignores-private.rs b/tests/ui/privacy/restricted/lookup-ignores-private.rs similarity index 100% rename from src/test/ui/privacy/restricted/lookup-ignores-private.rs rename to tests/ui/privacy/restricted/lookup-ignores-private.rs diff --git a/src/test/ui/privacy/restricted/private-in-public.rs b/tests/ui/privacy/restricted/private-in-public.rs similarity index 100% rename from src/test/ui/privacy/restricted/private-in-public.rs rename to tests/ui/privacy/restricted/private-in-public.rs diff --git a/src/test/ui/privacy/restricted/private-in-public.stderr b/tests/ui/privacy/restricted/private-in-public.stderr similarity index 100% rename from src/test/ui/privacy/restricted/private-in-public.stderr rename to tests/ui/privacy/restricted/private-in-public.stderr diff --git a/src/test/ui/privacy/restricted/relative-2018.rs b/tests/ui/privacy/restricted/relative-2018.rs similarity index 100% rename from src/test/ui/privacy/restricted/relative-2018.rs rename to tests/ui/privacy/restricted/relative-2018.rs diff --git a/src/test/ui/privacy/restricted/relative-2018.stderr b/tests/ui/privacy/restricted/relative-2018.stderr similarity index 100% rename from src/test/ui/privacy/restricted/relative-2018.stderr rename to tests/ui/privacy/restricted/relative-2018.stderr diff --git a/src/test/ui/privacy/restricted/struct-literal-field.rs b/tests/ui/privacy/restricted/struct-literal-field.rs similarity index 100% rename from src/test/ui/privacy/restricted/struct-literal-field.rs rename to tests/ui/privacy/restricted/struct-literal-field.rs diff --git a/src/test/ui/privacy/restricted/struct-literal-field.stderr b/tests/ui/privacy/restricted/struct-literal-field.stderr similarity index 100% rename from src/test/ui/privacy/restricted/struct-literal-field.stderr rename to tests/ui/privacy/restricted/struct-literal-field.stderr diff --git a/src/test/ui/privacy/restricted/test.rs b/tests/ui/privacy/restricted/test.rs similarity index 100% rename from src/test/ui/privacy/restricted/test.rs rename to tests/ui/privacy/restricted/test.rs diff --git a/src/test/ui/privacy/restricted/test.stderr b/tests/ui/privacy/restricted/test.stderr similarity index 100% rename from src/test/ui/privacy/restricted/test.stderr rename to tests/ui/privacy/restricted/test.stderr diff --git a/src/test/ui/privacy/union-field-privacy-1.rs b/tests/ui/privacy/union-field-privacy-1.rs similarity index 100% rename from src/test/ui/privacy/union-field-privacy-1.rs rename to tests/ui/privacy/union-field-privacy-1.rs diff --git a/src/test/ui/privacy/union-field-privacy-1.stderr b/tests/ui/privacy/union-field-privacy-1.stderr similarity index 100% rename from src/test/ui/privacy/union-field-privacy-1.stderr rename to tests/ui/privacy/union-field-privacy-1.stderr diff --git a/src/test/ui/privacy/union-field-privacy-2.rs b/tests/ui/privacy/union-field-privacy-2.rs similarity index 100% rename from src/test/ui/privacy/union-field-privacy-2.rs rename to tests/ui/privacy/union-field-privacy-2.rs diff --git a/src/test/ui/privacy/union-field-privacy-2.stderr b/tests/ui/privacy/union-field-privacy-2.stderr similarity index 100% rename from src/test/ui/privacy/union-field-privacy-2.stderr rename to tests/ui/privacy/union-field-privacy-2.stderr diff --git a/src/test/ui/privacy/useless-pub.rs b/tests/ui/privacy/useless-pub.rs similarity index 100% rename from src/test/ui/privacy/useless-pub.rs rename to tests/ui/privacy/useless-pub.rs diff --git a/src/test/ui/privacy/useless-pub.stderr b/tests/ui/privacy/useless-pub.stderr similarity index 100% rename from src/test/ui/privacy/useless-pub.stderr rename to tests/ui/privacy/useless-pub.stderr diff --git a/src/test/ui/privacy/where-priv-type.rs b/tests/ui/privacy/where-priv-type.rs similarity index 100% rename from src/test/ui/privacy/where-priv-type.rs rename to tests/ui/privacy/where-priv-type.rs diff --git a/src/test/ui/privacy/where-priv-type.stderr b/tests/ui/privacy/where-priv-type.stderr similarity index 100% rename from src/test/ui/privacy/where-priv-type.stderr rename to tests/ui/privacy/where-priv-type.stderr diff --git a/src/test/ui/privacy/where-pub-type-impls-priv-trait.rs b/tests/ui/privacy/where-pub-type-impls-priv-trait.rs similarity index 100% rename from src/test/ui/privacy/where-pub-type-impls-priv-trait.rs rename to tests/ui/privacy/where-pub-type-impls-priv-trait.rs diff --git a/src/test/ui/privacy/where-pub-type-impls-priv-trait.stderr b/tests/ui/privacy/where-pub-type-impls-priv-trait.stderr similarity index 100% rename from src/test/ui/privacy/where-pub-type-impls-priv-trait.stderr rename to tests/ui/privacy/where-pub-type-impls-priv-trait.stderr diff --git a/src/test/ui/proc-macro/add-impl.rs b/tests/ui/proc-macro/add-impl.rs similarity index 100% rename from src/test/ui/proc-macro/add-impl.rs rename to tests/ui/proc-macro/add-impl.rs diff --git a/src/test/ui/proc-macro/allowed-attr-stmt-expr.rs b/tests/ui/proc-macro/allowed-attr-stmt-expr.rs similarity index 100% rename from src/test/ui/proc-macro/allowed-attr-stmt-expr.rs rename to tests/ui/proc-macro/allowed-attr-stmt-expr.rs diff --git a/src/test/ui/proc-macro/allowed-attr-stmt-expr.stdout b/tests/ui/proc-macro/allowed-attr-stmt-expr.stdout similarity index 100% rename from src/test/ui/proc-macro/allowed-attr-stmt-expr.stdout rename to tests/ui/proc-macro/allowed-attr-stmt-expr.stdout diff --git a/src/test/ui/proc-macro/ambiguous-builtin-attrs-test.rs b/tests/ui/proc-macro/ambiguous-builtin-attrs-test.rs similarity index 100% rename from src/test/ui/proc-macro/ambiguous-builtin-attrs-test.rs rename to tests/ui/proc-macro/ambiguous-builtin-attrs-test.rs diff --git a/src/test/ui/proc-macro/ambiguous-builtin-attrs-test.stderr b/tests/ui/proc-macro/ambiguous-builtin-attrs-test.stderr similarity index 100% rename from src/test/ui/proc-macro/ambiguous-builtin-attrs-test.stderr rename to tests/ui/proc-macro/ambiguous-builtin-attrs-test.stderr diff --git a/src/test/ui/proc-macro/ambiguous-builtin-attrs.rs b/tests/ui/proc-macro/ambiguous-builtin-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/ambiguous-builtin-attrs.rs rename to tests/ui/proc-macro/ambiguous-builtin-attrs.rs diff --git a/src/test/ui/proc-macro/ambiguous-builtin-attrs.stderr b/tests/ui/proc-macro/ambiguous-builtin-attrs.stderr similarity index 100% rename from src/test/ui/proc-macro/ambiguous-builtin-attrs.stderr rename to tests/ui/proc-macro/ambiguous-builtin-attrs.stderr diff --git a/src/test/ui/proc-macro/amputate-span.fixed b/tests/ui/proc-macro/amputate-span.fixed similarity index 100% rename from src/test/ui/proc-macro/amputate-span.fixed rename to tests/ui/proc-macro/amputate-span.fixed diff --git a/src/test/ui/proc-macro/amputate-span.rs b/tests/ui/proc-macro/amputate-span.rs similarity index 100% rename from src/test/ui/proc-macro/amputate-span.rs rename to tests/ui/proc-macro/amputate-span.rs diff --git a/src/test/ui/proc-macro/amputate-span.stderr b/tests/ui/proc-macro/amputate-span.stderr similarity index 100% rename from src/test/ui/proc-macro/amputate-span.stderr rename to tests/ui/proc-macro/amputate-span.stderr diff --git a/src/test/ui/proc-macro/append-impl.rs b/tests/ui/proc-macro/append-impl.rs similarity index 100% rename from src/test/ui/proc-macro/append-impl.rs rename to tests/ui/proc-macro/append-impl.rs diff --git a/src/test/ui/proc-macro/attr-args.rs b/tests/ui/proc-macro/attr-args.rs similarity index 100% rename from src/test/ui/proc-macro/attr-args.rs rename to tests/ui/proc-macro/attr-args.rs diff --git a/src/test/ui/proc-macro/attr-cfg.rs b/tests/ui/proc-macro/attr-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/attr-cfg.rs rename to tests/ui/proc-macro/attr-cfg.rs diff --git a/src/test/ui/proc-macro/attr-complex-fn.rs b/tests/ui/proc-macro/attr-complex-fn.rs similarity index 100% rename from src/test/ui/proc-macro/attr-complex-fn.rs rename to tests/ui/proc-macro/attr-complex-fn.rs diff --git a/src/test/ui/proc-macro/attr-complex-fn.stdout b/tests/ui/proc-macro/attr-complex-fn.stdout similarity index 100% rename from src/test/ui/proc-macro/attr-complex-fn.stdout rename to tests/ui/proc-macro/attr-complex-fn.stdout diff --git a/src/test/ui/proc-macro/attr-invalid-exprs.rs b/tests/ui/proc-macro/attr-invalid-exprs.rs similarity index 100% rename from src/test/ui/proc-macro/attr-invalid-exprs.rs rename to tests/ui/proc-macro/attr-invalid-exprs.rs diff --git a/src/test/ui/proc-macro/attr-invalid-exprs.stderr b/tests/ui/proc-macro/attr-invalid-exprs.stderr similarity index 100% rename from src/test/ui/proc-macro/attr-invalid-exprs.stderr rename to tests/ui/proc-macro/attr-invalid-exprs.stderr diff --git a/src/test/ui/proc-macro/attr-on-trait.rs b/tests/ui/proc-macro/attr-on-trait.rs similarity index 100% rename from src/test/ui/proc-macro/attr-on-trait.rs rename to tests/ui/proc-macro/attr-on-trait.rs diff --git a/src/test/ui/proc-macro/attr-stmt-expr-rpass.rs b/tests/ui/proc-macro/attr-stmt-expr-rpass.rs similarity index 100% rename from src/test/ui/proc-macro/attr-stmt-expr-rpass.rs rename to tests/ui/proc-macro/attr-stmt-expr-rpass.rs diff --git a/src/test/ui/proc-macro/attr-stmt-expr.rs b/tests/ui/proc-macro/attr-stmt-expr.rs similarity index 100% rename from src/test/ui/proc-macro/attr-stmt-expr.rs rename to tests/ui/proc-macro/attr-stmt-expr.rs diff --git a/src/test/ui/proc-macro/attr-stmt-expr.stderr b/tests/ui/proc-macro/attr-stmt-expr.stderr similarity index 100% rename from src/test/ui/proc-macro/attr-stmt-expr.stderr rename to tests/ui/proc-macro/attr-stmt-expr.stderr diff --git a/src/test/ui/proc-macro/attr-stmt-expr.stdout b/tests/ui/proc-macro/attr-stmt-expr.stdout similarity index 100% rename from src/test/ui/proc-macro/attr-stmt-expr.stdout rename to tests/ui/proc-macro/attr-stmt-expr.stdout diff --git a/src/test/ui/proc-macro/attribute-after-derive.rs b/tests/ui/proc-macro/attribute-after-derive.rs similarity index 100% rename from src/test/ui/proc-macro/attribute-after-derive.rs rename to tests/ui/proc-macro/attribute-after-derive.rs diff --git a/src/test/ui/proc-macro/attribute-after-derive.stdout b/tests/ui/proc-macro/attribute-after-derive.stdout similarity index 100% rename from src/test/ui/proc-macro/attribute-after-derive.stdout rename to tests/ui/proc-macro/attribute-after-derive.stdout diff --git a/src/test/ui/proc-macro/attribute-spans-preserved.rs b/tests/ui/proc-macro/attribute-spans-preserved.rs similarity index 100% rename from src/test/ui/proc-macro/attribute-spans-preserved.rs rename to tests/ui/proc-macro/attribute-spans-preserved.rs diff --git a/src/test/ui/proc-macro/attribute-spans-preserved.stderr b/tests/ui/proc-macro/attribute-spans-preserved.stderr similarity index 100% rename from src/test/ui/proc-macro/attribute-spans-preserved.stderr rename to tests/ui/proc-macro/attribute-spans-preserved.stderr diff --git a/src/test/ui/proc-macro/attribute-spans-preserved.stdout b/tests/ui/proc-macro/attribute-spans-preserved.stdout similarity index 100% rename from src/test/ui/proc-macro/attribute-spans-preserved.stdout rename to tests/ui/proc-macro/attribute-spans-preserved.stdout diff --git a/src/test/ui/proc-macro/attribute-with-error.rs b/tests/ui/proc-macro/attribute-with-error.rs similarity index 100% rename from src/test/ui/proc-macro/attribute-with-error.rs rename to tests/ui/proc-macro/attribute-with-error.rs diff --git a/src/test/ui/proc-macro/attribute-with-error.stderr b/tests/ui/proc-macro/attribute-with-error.stderr similarity index 100% rename from src/test/ui/proc-macro/attribute-with-error.stderr rename to tests/ui/proc-macro/attribute-with-error.stderr diff --git a/src/test/ui/proc-macro/attribute.rs b/tests/ui/proc-macro/attribute.rs similarity index 100% rename from src/test/ui/proc-macro/attribute.rs rename to tests/ui/proc-macro/attribute.rs diff --git a/src/test/ui/proc-macro/attribute.stderr b/tests/ui/proc-macro/attribute.stderr similarity index 100% rename from src/test/ui/proc-macro/attribute.stderr rename to tests/ui/proc-macro/attribute.stderr diff --git a/src/test/ui/proc-macro/attributes-included.rs b/tests/ui/proc-macro/attributes-included.rs similarity index 100% rename from src/test/ui/proc-macro/attributes-included.rs rename to tests/ui/proc-macro/attributes-included.rs diff --git a/src/test/ui/proc-macro/attributes-included.stderr b/tests/ui/proc-macro/attributes-included.stderr similarity index 100% rename from src/test/ui/proc-macro/attributes-included.stderr rename to tests/ui/proc-macro/attributes-included.stderr diff --git a/src/test/ui/proc-macro/attributes-on-definitions.rs b/tests/ui/proc-macro/attributes-on-definitions.rs similarity index 100% rename from src/test/ui/proc-macro/attributes-on-definitions.rs rename to tests/ui/proc-macro/attributes-on-definitions.rs diff --git a/src/test/ui/proc-macro/attributes-on-definitions.stderr b/tests/ui/proc-macro/attributes-on-definitions.stderr similarity index 100% rename from src/test/ui/proc-macro/attributes-on-definitions.stderr rename to tests/ui/proc-macro/attributes-on-definitions.stderr diff --git a/src/test/ui/proc-macro/attributes-on-modules-fail.rs b/tests/ui/proc-macro/attributes-on-modules-fail.rs similarity index 100% rename from src/test/ui/proc-macro/attributes-on-modules-fail.rs rename to tests/ui/proc-macro/attributes-on-modules-fail.rs diff --git a/src/test/ui/proc-macro/attributes-on-modules-fail.stderr b/tests/ui/proc-macro/attributes-on-modules-fail.stderr similarity index 100% rename from src/test/ui/proc-macro/attributes-on-modules-fail.stderr rename to tests/ui/proc-macro/attributes-on-modules-fail.stderr diff --git a/src/test/ui/proc-macro/attributes-on-modules.rs b/tests/ui/proc-macro/attributes-on-modules.rs similarity index 100% rename from src/test/ui/proc-macro/attributes-on-modules.rs rename to tests/ui/proc-macro/attributes-on-modules.rs diff --git a/src/test/ui/proc-macro/auxiliary/add-impl.rs b/tests/ui/proc-macro/auxiliary/add-impl.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/add-impl.rs rename to tests/ui/proc-macro/auxiliary/add-impl.rs diff --git a/src/test/ui/proc-macro/auxiliary/amputate-span.rs b/tests/ui/proc-macro/auxiliary/amputate-span.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/amputate-span.rs rename to tests/ui/proc-macro/auxiliary/amputate-span.rs diff --git a/src/test/ui/proc-macro/auxiliary/api/cmp.rs b/tests/ui/proc-macro/auxiliary/api/cmp.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/api/cmp.rs rename to tests/ui/proc-macro/auxiliary/api/cmp.rs diff --git a/src/test/ui/proc-macro/auxiliary/api/mod.rs b/tests/ui/proc-macro/auxiliary/api/mod.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/api/mod.rs rename to tests/ui/proc-macro/auxiliary/api/mod.rs diff --git a/src/test/ui/proc-macro/auxiliary/api/parse.rs b/tests/ui/proc-macro/auxiliary/api/parse.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/api/parse.rs rename to tests/ui/proc-macro/auxiliary/api/parse.rs diff --git a/src/test/ui/proc-macro/auxiliary/append-impl.rs b/tests/ui/proc-macro/auxiliary/append-impl.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/append-impl.rs rename to tests/ui/proc-macro/auxiliary/append-impl.rs diff --git a/src/test/ui/proc-macro/auxiliary/assert-span-pos.rs b/tests/ui/proc-macro/auxiliary/assert-span-pos.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/assert-span-pos.rs rename to tests/ui/proc-macro/auxiliary/assert-span-pos.rs diff --git a/src/test/ui/proc-macro/auxiliary/attr-args.rs b/tests/ui/proc-macro/auxiliary/attr-args.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attr-args.rs rename to tests/ui/proc-macro/auxiliary/attr-args.rs diff --git a/src/test/ui/proc-macro/auxiliary/attr-cfg.rs b/tests/ui/proc-macro/auxiliary/attr-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attr-cfg.rs rename to tests/ui/proc-macro/auxiliary/attr-cfg.rs diff --git a/src/test/ui/proc-macro/auxiliary/attr-on-trait.rs b/tests/ui/proc-macro/auxiliary/attr-on-trait.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attr-on-trait.rs rename to tests/ui/proc-macro/auxiliary/attr-on-trait.rs diff --git a/src/test/ui/proc-macro/auxiliary/attr-stmt-expr-rpass.rs b/tests/ui/proc-macro/auxiliary/attr-stmt-expr-rpass.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attr-stmt-expr-rpass.rs rename to tests/ui/proc-macro/auxiliary/attr-stmt-expr-rpass.rs diff --git a/src/test/ui/proc-macro/auxiliary/attr-stmt-expr.rs b/tests/ui/proc-macro/auxiliary/attr-stmt-expr.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attr-stmt-expr.rs rename to tests/ui/proc-macro/auxiliary/attr-stmt-expr.rs diff --git a/src/test/ui/proc-macro/auxiliary/attribute-spans-preserved.rs b/tests/ui/proc-macro/auxiliary/attribute-spans-preserved.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attribute-spans-preserved.rs rename to tests/ui/proc-macro/auxiliary/attribute-spans-preserved.rs diff --git a/src/test/ui/proc-macro/auxiliary/attributes-included.rs b/tests/ui/proc-macro/auxiliary/attributes-included.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attributes-included.rs rename to tests/ui/proc-macro/auxiliary/attributes-included.rs diff --git a/src/test/ui/proc-macro/auxiliary/attributes-on-definitions.rs b/tests/ui/proc-macro/auxiliary/attributes-on-definitions.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/attributes-on-definitions.rs rename to tests/ui/proc-macro/auxiliary/attributes-on-definitions.rs diff --git a/src/test/ui/proc-macro/auxiliary/bang-macro.rs b/tests/ui/proc-macro/auxiliary/bang-macro.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/bang-macro.rs rename to tests/ui/proc-macro/auxiliary/bang-macro.rs diff --git a/src/test/ui/proc-macro/auxiliary/bang_proc_macro2.rs b/tests/ui/proc-macro/auxiliary/bang_proc_macro2.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/bang_proc_macro2.rs rename to tests/ui/proc-macro/auxiliary/bang_proc_macro2.rs diff --git a/src/test/ui/proc-macro/auxiliary/builtin-attrs.rs b/tests/ui/proc-macro/auxiliary/builtin-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/builtin-attrs.rs rename to tests/ui/proc-macro/auxiliary/builtin-attrs.rs diff --git a/src/test/ui/proc-macro/auxiliary/call-deprecated.rs b/tests/ui/proc-macro/auxiliary/call-deprecated.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/call-deprecated.rs rename to tests/ui/proc-macro/auxiliary/call-deprecated.rs diff --git a/src/test/ui/proc-macro/auxiliary/call-site.rs b/tests/ui/proc-macro/auxiliary/call-site.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/call-site.rs rename to tests/ui/proc-macro/auxiliary/call-site.rs diff --git a/src/test/ui/proc-macro/auxiliary/cond_plugin.rs b/tests/ui/proc-macro/auxiliary/cond_plugin.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/cond_plugin.rs rename to tests/ui/proc-macro/auxiliary/cond_plugin.rs diff --git a/src/test/ui/proc-macro/auxiliary/count_compound_ops.rs b/tests/ui/proc-macro/auxiliary/count_compound_ops.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/count_compound_ops.rs rename to tests/ui/proc-macro/auxiliary/count_compound_ops.rs diff --git a/src/test/ui/proc-macro/auxiliary/custom-attr-only-one-derive.rs b/tests/ui/proc-macro/auxiliary/custom-attr-only-one-derive.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/custom-attr-only-one-derive.rs rename to tests/ui/proc-macro/auxiliary/custom-attr-only-one-derive.rs diff --git a/src/test/ui/proc-macro/auxiliary/custom-quote.rs b/tests/ui/proc-macro/auxiliary/custom-quote.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/custom-quote.rs rename to tests/ui/proc-macro/auxiliary/custom-quote.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-a.rs b/tests/ui/proc-macro/auxiliary/derive-a.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-a.rs rename to tests/ui/proc-macro/auxiliary/derive-a.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-atob.rs b/tests/ui/proc-macro/auxiliary/derive-atob.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-atob.rs rename to tests/ui/proc-macro/auxiliary/derive-atob.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-attr-cfg.rs b/tests/ui/proc-macro/auxiliary/derive-attr-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-attr-cfg.rs rename to tests/ui/proc-macro/auxiliary/derive-attr-cfg.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-b-rpass.rs b/tests/ui/proc-macro/auxiliary/derive-b-rpass.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-b-rpass.rs rename to tests/ui/proc-macro/auxiliary/derive-b-rpass.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-b.rs b/tests/ui/proc-macro/auxiliary/derive-b.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-b.rs rename to tests/ui/proc-macro/auxiliary/derive-b.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-bad.rs b/tests/ui/proc-macro/auxiliary/derive-bad.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-bad.rs rename to tests/ui/proc-macro/auxiliary/derive-bad.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-clona.rs b/tests/ui/proc-macro/auxiliary/derive-clona.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-clona.rs rename to tests/ui/proc-macro/auxiliary/derive-clona.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-ctod.rs b/tests/ui/proc-macro/auxiliary/derive-ctod.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-ctod.rs rename to tests/ui/proc-macro/auxiliary/derive-ctod.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-foo.rs b/tests/ui/proc-macro/auxiliary/derive-foo.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-foo.rs rename to tests/ui/proc-macro/auxiliary/derive-foo.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-helper-shadowed-2.rs b/tests/ui/proc-macro/auxiliary/derive-helper-shadowed-2.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-helper-shadowed-2.rs rename to tests/ui/proc-macro/auxiliary/derive-helper-shadowed-2.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-helper-shadowing-2.rs b/tests/ui/proc-macro/auxiliary/derive-helper-shadowing-2.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-helper-shadowing-2.rs rename to tests/ui/proc-macro/auxiliary/derive-helper-shadowing-2.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-helper-shadowing.rs b/tests/ui/proc-macro/auxiliary/derive-helper-shadowing.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-helper-shadowing.rs rename to tests/ui/proc-macro/auxiliary/derive-helper-shadowing.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-nothing.rs b/tests/ui/proc-macro/auxiliary/derive-nothing.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-nothing.rs rename to tests/ui/proc-macro/auxiliary/derive-nothing.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-same-struct.rs b/tests/ui/proc-macro/auxiliary/derive-same-struct.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-same-struct.rs rename to tests/ui/proc-macro/auxiliary/derive-same-struct.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-two-attrs.rs b/tests/ui/proc-macro/auxiliary/derive-two-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-two-attrs.rs rename to tests/ui/proc-macro/auxiliary/derive-two-attrs.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-union.rs b/tests/ui/proc-macro/auxiliary/derive-union.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-union.rs rename to tests/ui/proc-macro/auxiliary/derive-union.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-unstable-2.rs b/tests/ui/proc-macro/auxiliary/derive-unstable-2.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-unstable-2.rs rename to tests/ui/proc-macro/auxiliary/derive-unstable-2.rs diff --git a/src/test/ui/proc-macro/auxiliary/derive-unstable.rs b/tests/ui/proc-macro/auxiliary/derive-unstable.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/derive-unstable.rs rename to tests/ui/proc-macro/auxiliary/derive-unstable.rs diff --git a/src/test/ui/proc-macro/auxiliary/dollar-crate-external.rs b/tests/ui/proc-macro/auxiliary/dollar-crate-external.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/dollar-crate-external.rs rename to tests/ui/proc-macro/auxiliary/dollar-crate-external.rs diff --git a/src/test/ui/proc-macro/auxiliary/double.rs b/tests/ui/proc-macro/auxiliary/double.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/double.rs rename to tests/ui/proc-macro/auxiliary/double.rs diff --git a/src/test/ui/proc-macro/auxiliary/duplicate.rs b/tests/ui/proc-macro/auxiliary/duplicate.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/duplicate.rs rename to tests/ui/proc-macro/auxiliary/duplicate.rs diff --git a/src/test/ui/proc-macro/auxiliary/edition-imports-2015.rs b/tests/ui/proc-macro/auxiliary/edition-imports-2015.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/edition-imports-2015.rs rename to tests/ui/proc-macro/auxiliary/edition-imports-2015.rs diff --git a/src/test/ui/proc-macro/auxiliary/empty-crate.rs b/tests/ui/proc-macro/auxiliary/empty-crate.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/empty-crate.rs rename to tests/ui/proc-macro/auxiliary/empty-crate.rs diff --git a/src/test/ui/proc-macro/auxiliary/expand-expr.rs b/tests/ui/proc-macro/auxiliary/expand-expr.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/expand-expr.rs rename to tests/ui/proc-macro/auxiliary/expand-expr.rs diff --git a/src/test/ui/proc-macro/auxiliary/expand-with-a-macro.rs b/tests/ui/proc-macro/auxiliary/expand-with-a-macro.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/expand-with-a-macro.rs rename to tests/ui/proc-macro/auxiliary/expand-with-a-macro.rs diff --git a/src/test/ui/proc-macro/auxiliary/external-crate-var.rs b/tests/ui/proc-macro/auxiliary/external-crate-var.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/external-crate-var.rs rename to tests/ui/proc-macro/auxiliary/external-crate-var.rs diff --git a/src/test/ui/proc-macro/auxiliary/first-second.rs b/tests/ui/proc-macro/auxiliary/first-second.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/first-second.rs rename to tests/ui/proc-macro/auxiliary/first-second.rs diff --git a/src/test/ui/proc-macro/auxiliary/gen-lifetime-token.rs b/tests/ui/proc-macro/auxiliary/gen-lifetime-token.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/gen-lifetime-token.rs rename to tests/ui/proc-macro/auxiliary/gen-lifetime-token.rs diff --git a/src/test/ui/proc-macro/auxiliary/gen-macro-rules-hygiene.rs b/tests/ui/proc-macro/auxiliary/gen-macro-rules-hygiene.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/gen-macro-rules-hygiene.rs rename to tests/ui/proc-macro/auxiliary/gen-macro-rules-hygiene.rs diff --git a/src/test/ui/proc-macro/auxiliary/gen-macro-rules.rs b/tests/ui/proc-macro/auxiliary/gen-macro-rules.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/gen-macro-rules.rs rename to tests/ui/proc-macro/auxiliary/gen-macro-rules.rs diff --git a/src/test/ui/proc-macro/auxiliary/generate-dollar-ident.rs b/tests/ui/proc-macro/auxiliary/generate-dollar-ident.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/generate-dollar-ident.rs rename to tests/ui/proc-macro/auxiliary/generate-dollar-ident.rs diff --git a/src/test/ui/proc-macro/auxiliary/generate-mod.rs b/tests/ui/proc-macro/auxiliary/generate-mod.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/generate-mod.rs rename to tests/ui/proc-macro/auxiliary/generate-mod.rs diff --git a/src/test/ui/proc-macro/auxiliary/hygiene_example.rs b/tests/ui/proc-macro/auxiliary/hygiene_example.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/hygiene_example.rs rename to tests/ui/proc-macro/auxiliary/hygiene_example.rs diff --git a/src/test/ui/proc-macro/auxiliary/hygiene_example_codegen.rs b/tests/ui/proc-macro/auxiliary/hygiene_example_codegen.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/hygiene_example_codegen.rs rename to tests/ui/proc-macro/auxiliary/hygiene_example_codegen.rs diff --git a/src/test/ui/proc-macro/auxiliary/included-file.txt b/tests/ui/proc-macro/auxiliary/included-file.txt similarity index 100% rename from src/test/ui/proc-macro/auxiliary/included-file.txt rename to tests/ui/proc-macro/auxiliary/included-file.txt diff --git a/src/test/ui/proc-macro/auxiliary/invalid-punct-ident.rs b/tests/ui/proc-macro/auxiliary/invalid-punct-ident.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/invalid-punct-ident.rs rename to tests/ui/proc-macro/auxiliary/invalid-punct-ident.rs diff --git a/src/test/ui/proc-macro/auxiliary/is-available.rs b/tests/ui/proc-macro/auxiliary/is-available.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/is-available.rs rename to tests/ui/proc-macro/auxiliary/is-available.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-104884.rs b/tests/ui/proc-macro/auxiliary/issue-104884.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-104884.rs rename to tests/ui/proc-macro/auxiliary/issue-104884.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-38586.rs b/tests/ui/proc-macro/auxiliary/issue-38586.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-38586.rs rename to tests/ui/proc-macro/auxiliary/issue-38586.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-39889.rs b/tests/ui/proc-macro/auxiliary/issue-39889.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-39889.rs rename to tests/ui/proc-macro/auxiliary/issue-39889.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-42708.rs b/tests/ui/proc-macro/auxiliary/issue-42708.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-42708.rs rename to tests/ui/proc-macro/auxiliary/issue-42708.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-50061.rs b/tests/ui/proc-macro/auxiliary/issue-50061.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-50061.rs rename to tests/ui/proc-macro/auxiliary/issue-50061.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-50493.rs b/tests/ui/proc-macro/auxiliary/issue-50493.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-50493.rs rename to tests/ui/proc-macro/auxiliary/issue-50493.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-59191.rs b/tests/ui/proc-macro/auxiliary/issue-59191.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-59191.rs rename to tests/ui/proc-macro/auxiliary/issue-59191.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-66286.rs b/tests/ui/proc-macro/auxiliary/issue-66286.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-66286.rs rename to tests/ui/proc-macro/auxiliary/issue-66286.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-75801.rs b/tests/ui/proc-macro/auxiliary/issue-75801.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-75801.rs rename to tests/ui/proc-macro/auxiliary/issue-75801.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-79242.rs b/tests/ui/proc-macro/auxiliary/issue-79242.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-79242.rs rename to tests/ui/proc-macro/auxiliary/issue-79242.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-79825.rs b/tests/ui/proc-macro/auxiliary/issue-79825.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-79825.rs rename to tests/ui/proc-macro/auxiliary/issue-79825.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-83510.rs b/tests/ui/proc-macro/auxiliary/issue-83510.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-83510.rs rename to tests/ui/proc-macro/auxiliary/issue-83510.rs diff --git a/src/test/ui/proc-macro/auxiliary/issue-91800-macro.rs b/tests/ui/proc-macro/auxiliary/issue-91800-macro.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/issue-91800-macro.rs rename to tests/ui/proc-macro/auxiliary/issue-91800-macro.rs diff --git a/src/test/ui/proc-macro/auxiliary/lifetimes-rpass.rs b/tests/ui/proc-macro/auxiliary/lifetimes-rpass.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/lifetimes-rpass.rs rename to tests/ui/proc-macro/auxiliary/lifetimes-rpass.rs diff --git a/src/test/ui/proc-macro/auxiliary/lifetimes.rs b/tests/ui/proc-macro/auxiliary/lifetimes.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/lifetimes.rs rename to tests/ui/proc-macro/auxiliary/lifetimes.rs diff --git a/src/test/ui/proc-macro/auxiliary/macro-only-syntax.rs b/tests/ui/proc-macro/auxiliary/macro-only-syntax.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/macro-only-syntax.rs rename to tests/ui/proc-macro/auxiliary/macro-only-syntax.rs diff --git a/src/test/ui/proc-macro/auxiliary/make-macro.rs b/tests/ui/proc-macro/auxiliary/make-macro.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/make-macro.rs rename to tests/ui/proc-macro/auxiliary/make-macro.rs diff --git a/src/test/ui/proc-macro/auxiliary/meta-delim.rs b/tests/ui/proc-macro/auxiliary/meta-delim.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/meta-delim.rs rename to tests/ui/proc-macro/auxiliary/meta-delim.rs diff --git a/src/test/ui/proc-macro/auxiliary/meta-macro.rs b/tests/ui/proc-macro/auxiliary/meta-macro.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/meta-macro.rs rename to tests/ui/proc-macro/auxiliary/meta-macro.rs diff --git a/src/test/ui/proc-macro/auxiliary/mixed-site-span.rs b/tests/ui/proc-macro/auxiliary/mixed-site-span.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/mixed-site-span.rs rename to tests/ui/proc-macro/auxiliary/mixed-site-span.rs diff --git a/src/test/ui/proc-macro/auxiliary/modify-ast.rs b/tests/ui/proc-macro/auxiliary/modify-ast.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/modify-ast.rs rename to tests/ui/proc-macro/auxiliary/modify-ast.rs diff --git a/src/test/ui/proc-macro/auxiliary/multiple-derives.rs b/tests/ui/proc-macro/auxiliary/multiple-derives.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/multiple-derives.rs rename to tests/ui/proc-macro/auxiliary/multiple-derives.rs diff --git a/src/test/ui/proc-macro/auxiliary/multispan.rs b/tests/ui/proc-macro/auxiliary/multispan.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/multispan.rs rename to tests/ui/proc-macro/auxiliary/multispan.rs diff --git a/src/test/ui/proc-macro/auxiliary/negative-token.rs b/tests/ui/proc-macro/auxiliary/negative-token.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/negative-token.rs rename to tests/ui/proc-macro/auxiliary/negative-token.rs diff --git a/src/test/ui/proc-macro/auxiliary/nested-macro-rules.rs b/tests/ui/proc-macro/auxiliary/nested-macro-rules.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/nested-macro-rules.rs rename to tests/ui/proc-macro/auxiliary/nested-macro-rules.rs diff --git a/src/test/ui/proc-macro/auxiliary/nonterminal-recollect-attr.rs b/tests/ui/proc-macro/auxiliary/nonterminal-recollect-attr.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/nonterminal-recollect-attr.rs rename to tests/ui/proc-macro/auxiliary/nonterminal-recollect-attr.rs diff --git a/src/test/ui/proc-macro/auxiliary/not-joint.rs b/tests/ui/proc-macro/auxiliary/not-joint.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/not-joint.rs rename to tests/ui/proc-macro/auxiliary/not-joint.rs diff --git a/src/test/ui/proc-macro/auxiliary/parent-source-spans.rs b/tests/ui/proc-macro/auxiliary/parent-source-spans.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/parent-source-spans.rs rename to tests/ui/proc-macro/auxiliary/parent-source-spans.rs diff --git a/src/test/ui/proc-macro/auxiliary/proc-macro-panic.rs b/tests/ui/proc-macro/auxiliary/proc-macro-panic.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/proc-macro-panic.rs rename to tests/ui/proc-macro/auxiliary/proc-macro-panic.rs diff --git a/src/test/ui/proc-macro/auxiliary/raw-ident.rs b/tests/ui/proc-macro/auxiliary/raw-ident.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/raw-ident.rs rename to tests/ui/proc-macro/auxiliary/raw-ident.rs diff --git a/src/test/ui/proc-macro/auxiliary/re-export.rs b/tests/ui/proc-macro/auxiliary/re-export.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/re-export.rs rename to tests/ui/proc-macro/auxiliary/re-export.rs diff --git a/src/test/ui/proc-macro/auxiliary/recollect.rs b/tests/ui/proc-macro/auxiliary/recollect.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/recollect.rs rename to tests/ui/proc-macro/auxiliary/recollect.rs diff --git a/src/test/ui/proc-macro/auxiliary/resolved-located-at.rs b/tests/ui/proc-macro/auxiliary/resolved-located-at.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/resolved-located-at.rs rename to tests/ui/proc-macro/auxiliary/resolved-located-at.rs diff --git a/src/test/ui/proc-macro/auxiliary/span-api-tests.rs b/tests/ui/proc-macro/auxiliary/span-api-tests.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/span-api-tests.rs rename to tests/ui/proc-macro/auxiliary/span-api-tests.rs diff --git a/src/test/ui/proc-macro/auxiliary/span-from-proc-macro.rs b/tests/ui/proc-macro/auxiliary/span-from-proc-macro.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/span-from-proc-macro.rs rename to tests/ui/proc-macro/auxiliary/span-from-proc-macro.rs diff --git a/src/test/ui/proc-macro/auxiliary/span-test-macros.rs b/tests/ui/proc-macro/auxiliary/span-test-macros.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/span-test-macros.rs rename to tests/ui/proc-macro/auxiliary/span-test-macros.rs diff --git a/src/test/ui/proc-macro/auxiliary/subspan.rs b/tests/ui/proc-macro/auxiliary/subspan.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/subspan.rs rename to tests/ui/proc-macro/auxiliary/subspan.rs diff --git a/src/test/ui/proc-macro/auxiliary/test-macros.rs b/tests/ui/proc-macro/auxiliary/test-macros.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/test-macros.rs rename to tests/ui/proc-macro/auxiliary/test-macros.rs diff --git a/src/test/ui/proc-macro/auxiliary/three-equals.rs b/tests/ui/proc-macro/auxiliary/three-equals.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/three-equals.rs rename to tests/ui/proc-macro/auxiliary/three-equals.rs diff --git a/src/test/ui/proc-macro/auxiliary/weird-hygiene.rs b/tests/ui/proc-macro/auxiliary/weird-hygiene.rs similarity index 100% rename from src/test/ui/proc-macro/auxiliary/weird-hygiene.rs rename to tests/ui/proc-macro/auxiliary/weird-hygiene.rs diff --git a/src/test/ui/proc-macro/bang-macro.rs b/tests/ui/proc-macro/bang-macro.rs similarity index 100% rename from src/test/ui/proc-macro/bang-macro.rs rename to tests/ui/proc-macro/bang-macro.rs diff --git a/src/test/ui/proc-macro/break-token-spans.rs b/tests/ui/proc-macro/break-token-spans.rs similarity index 100% rename from src/test/ui/proc-macro/break-token-spans.rs rename to tests/ui/proc-macro/break-token-spans.rs diff --git a/src/test/ui/proc-macro/break-token-spans.stderr b/tests/ui/proc-macro/break-token-spans.stderr similarity index 100% rename from src/test/ui/proc-macro/break-token-spans.stderr rename to tests/ui/proc-macro/break-token-spans.stderr diff --git a/src/test/ui/proc-macro/call-deprecated.rs b/tests/ui/proc-macro/call-deprecated.rs similarity index 100% rename from src/test/ui/proc-macro/call-deprecated.rs rename to tests/ui/proc-macro/call-deprecated.rs diff --git a/src/test/ui/proc-macro/call-deprecated.stderr b/tests/ui/proc-macro/call-deprecated.stderr similarity index 100% rename from src/test/ui/proc-macro/call-deprecated.stderr rename to tests/ui/proc-macro/call-deprecated.stderr diff --git a/src/test/ui/proc-macro/call-site.rs b/tests/ui/proc-macro/call-site.rs similarity index 100% rename from src/test/ui/proc-macro/call-site.rs rename to tests/ui/proc-macro/call-site.rs diff --git a/src/test/ui/proc-macro/capture-macro-rules-invoke.rs b/tests/ui/proc-macro/capture-macro-rules-invoke.rs similarity index 100% rename from src/test/ui/proc-macro/capture-macro-rules-invoke.rs rename to tests/ui/proc-macro/capture-macro-rules-invoke.rs diff --git a/src/test/ui/proc-macro/capture-macro-rules-invoke.stdout b/tests/ui/proc-macro/capture-macro-rules-invoke.stdout similarity index 100% rename from src/test/ui/proc-macro/capture-macro-rules-invoke.stdout rename to tests/ui/proc-macro/capture-macro-rules-invoke.stdout diff --git a/src/test/ui/proc-macro/capture-unglued-token.rs b/tests/ui/proc-macro/capture-unglued-token.rs similarity index 100% rename from src/test/ui/proc-macro/capture-unglued-token.rs rename to tests/ui/proc-macro/capture-unglued-token.rs diff --git a/src/test/ui/proc-macro/capture-unglued-token.stdout b/tests/ui/proc-macro/capture-unglued-token.stdout similarity index 100% rename from src/test/ui/proc-macro/capture-unglued-token.stdout rename to tests/ui/proc-macro/capture-unglued-token.stdout diff --git a/src/test/ui/proc-macro/cfg-eval-fail.rs b/tests/ui/proc-macro/cfg-eval-fail.rs similarity index 100% rename from src/test/ui/proc-macro/cfg-eval-fail.rs rename to tests/ui/proc-macro/cfg-eval-fail.rs diff --git a/src/test/ui/proc-macro/cfg-eval-fail.stderr b/tests/ui/proc-macro/cfg-eval-fail.stderr similarity index 100% rename from src/test/ui/proc-macro/cfg-eval-fail.stderr rename to tests/ui/proc-macro/cfg-eval-fail.stderr diff --git a/src/test/ui/proc-macro/cfg-eval-inner.rs b/tests/ui/proc-macro/cfg-eval-inner.rs similarity index 100% rename from src/test/ui/proc-macro/cfg-eval-inner.rs rename to tests/ui/proc-macro/cfg-eval-inner.rs diff --git a/src/test/ui/proc-macro/cfg-eval-inner.stdout b/tests/ui/proc-macro/cfg-eval-inner.stdout similarity index 100% rename from src/test/ui/proc-macro/cfg-eval-inner.stdout rename to tests/ui/proc-macro/cfg-eval-inner.stdout diff --git a/src/test/ui/proc-macro/cfg-eval.rs b/tests/ui/proc-macro/cfg-eval.rs similarity index 100% rename from src/test/ui/proc-macro/cfg-eval.rs rename to tests/ui/proc-macro/cfg-eval.rs diff --git a/src/test/ui/proc-macro/cfg-eval.stdout b/tests/ui/proc-macro/cfg-eval.stdout similarity index 100% rename from src/test/ui/proc-macro/cfg-eval.stdout rename to tests/ui/proc-macro/cfg-eval.stdout diff --git a/src/test/ui/proc-macro/count_compound_ops.rs b/tests/ui/proc-macro/count_compound_ops.rs similarity index 100% rename from src/test/ui/proc-macro/count_compound_ops.rs rename to tests/ui/proc-macro/count_compound_ops.rs diff --git a/src/test/ui/proc-macro/crate-attrs-multiple.rs b/tests/ui/proc-macro/crate-attrs-multiple.rs similarity index 100% rename from src/test/ui/proc-macro/crate-attrs-multiple.rs rename to tests/ui/proc-macro/crate-attrs-multiple.rs diff --git a/src/test/ui/proc-macro/crate-var.rs b/tests/ui/proc-macro/crate-var.rs similarity index 100% rename from src/test/ui/proc-macro/crate-var.rs rename to tests/ui/proc-macro/crate-var.rs diff --git a/src/test/ui/proc-macro/crt-static.rs b/tests/ui/proc-macro/crt-static.rs similarity index 100% rename from src/test/ui/proc-macro/crt-static.rs rename to tests/ui/proc-macro/crt-static.rs diff --git a/src/test/ui/proc-macro/custom-attr-only-one-derive.rs b/tests/ui/proc-macro/custom-attr-only-one-derive.rs similarity index 100% rename from src/test/ui/proc-macro/custom-attr-only-one-derive.rs rename to tests/ui/proc-macro/custom-attr-only-one-derive.rs diff --git a/src/test/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs b/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs similarity index 100% rename from src/test/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs rename to tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs diff --git a/src/test/ui/proc-macro/debug/dump-debug-span-debug.rs b/tests/ui/proc-macro/debug/dump-debug-span-debug.rs similarity index 100% rename from src/test/ui/proc-macro/debug/dump-debug-span-debug.rs rename to tests/ui/proc-macro/debug/dump-debug-span-debug.rs diff --git a/src/test/ui/proc-macro/debug/dump-debug-span-debug.stderr b/tests/ui/proc-macro/debug/dump-debug-span-debug.stderr similarity index 100% rename from src/test/ui/proc-macro/debug/dump-debug-span-debug.stderr rename to tests/ui/proc-macro/debug/dump-debug-span-debug.stderr diff --git a/src/test/ui/proc-macro/debug/dump-debug.rs b/tests/ui/proc-macro/debug/dump-debug.rs similarity index 100% rename from src/test/ui/proc-macro/debug/dump-debug.rs rename to tests/ui/proc-macro/debug/dump-debug.rs diff --git a/src/test/ui/proc-macro/debug/dump-debug.stderr b/tests/ui/proc-macro/debug/dump-debug.stderr similarity index 100% rename from src/test/ui/proc-macro/debug/dump-debug.stderr rename to tests/ui/proc-macro/debug/dump-debug.stderr diff --git a/src/test/ui/proc-macro/define-two.rs b/tests/ui/proc-macro/define-two.rs similarity index 100% rename from src/test/ui/proc-macro/define-two.rs rename to tests/ui/proc-macro/define-two.rs diff --git a/src/test/ui/proc-macro/define-two.stderr b/tests/ui/proc-macro/define-two.stderr similarity index 100% rename from src/test/ui/proc-macro/define-two.stderr rename to tests/ui/proc-macro/define-two.stderr diff --git a/src/test/ui/proc-macro/derive-attr-cfg.rs b/tests/ui/proc-macro/derive-attr-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/derive-attr-cfg.rs rename to tests/ui/proc-macro/derive-attr-cfg.rs diff --git a/src/test/ui/proc-macro/derive-b.rs b/tests/ui/proc-macro/derive-b.rs similarity index 100% rename from src/test/ui/proc-macro/derive-b.rs rename to tests/ui/proc-macro/derive-b.rs diff --git a/src/test/ui/proc-macro/derive-bad.rs b/tests/ui/proc-macro/derive-bad.rs similarity index 100% rename from src/test/ui/proc-macro/derive-bad.rs rename to tests/ui/proc-macro/derive-bad.rs diff --git a/src/test/ui/proc-macro/derive-bad.stderr b/tests/ui/proc-macro/derive-bad.stderr similarity index 100% rename from src/test/ui/proc-macro/derive-bad.stderr rename to tests/ui/proc-macro/derive-bad.stderr diff --git a/src/test/ui/proc-macro/derive-expand-order.rs b/tests/ui/proc-macro/derive-expand-order.rs similarity index 100% rename from src/test/ui/proc-macro/derive-expand-order.rs rename to tests/ui/proc-macro/derive-expand-order.rs diff --git a/src/test/ui/proc-macro/derive-expand-order.stdout b/tests/ui/proc-macro/derive-expand-order.stdout similarity index 100% rename from src/test/ui/proc-macro/derive-expand-order.stdout rename to tests/ui/proc-macro/derive-expand-order.stdout diff --git a/src/test/ui/proc-macro/derive-helper-configured.rs b/tests/ui/proc-macro/derive-helper-configured.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-configured.rs rename to tests/ui/proc-macro/derive-helper-configured.rs diff --git a/src/test/ui/proc-macro/derive-helper-legacy-limits.rs b/tests/ui/proc-macro/derive-helper-legacy-limits.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-legacy-limits.rs rename to tests/ui/proc-macro/derive-helper-legacy-limits.rs diff --git a/src/test/ui/proc-macro/derive-helper-legacy-limits.stderr b/tests/ui/proc-macro/derive-helper-legacy-limits.stderr similarity index 100% rename from src/test/ui/proc-macro/derive-helper-legacy-limits.stderr rename to tests/ui/proc-macro/derive-helper-legacy-limits.stderr diff --git a/src/test/ui/proc-macro/derive-helper-legacy-spurious.rs b/tests/ui/proc-macro/derive-helper-legacy-spurious.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-legacy-spurious.rs rename to tests/ui/proc-macro/derive-helper-legacy-spurious.rs diff --git a/src/test/ui/proc-macro/derive-helper-legacy-spurious.stderr b/tests/ui/proc-macro/derive-helper-legacy-spurious.stderr similarity index 100% rename from src/test/ui/proc-macro/derive-helper-legacy-spurious.stderr rename to tests/ui/proc-macro/derive-helper-legacy-spurious.stderr diff --git a/src/test/ui/proc-macro/derive-helper-shadowed.rs b/tests/ui/proc-macro/derive-helper-shadowed.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-shadowed.rs rename to tests/ui/proc-macro/derive-helper-shadowed.rs diff --git a/src/test/ui/proc-macro/derive-helper-shadowing-2.rs b/tests/ui/proc-macro/derive-helper-shadowing-2.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-shadowing-2.rs rename to tests/ui/proc-macro/derive-helper-shadowing-2.rs diff --git a/src/test/ui/proc-macro/derive-helper-shadowing.rs b/tests/ui/proc-macro/derive-helper-shadowing.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-shadowing.rs rename to tests/ui/proc-macro/derive-helper-shadowing.rs diff --git a/src/test/ui/proc-macro/derive-helper-shadowing.stderr b/tests/ui/proc-macro/derive-helper-shadowing.stderr similarity index 100% rename from src/test/ui/proc-macro/derive-helper-shadowing.stderr rename to tests/ui/proc-macro/derive-helper-shadowing.stderr diff --git a/src/test/ui/proc-macro/derive-helper-vs-legacy.rs b/tests/ui/proc-macro/derive-helper-vs-legacy.rs similarity index 100% rename from src/test/ui/proc-macro/derive-helper-vs-legacy.rs rename to tests/ui/proc-macro/derive-helper-vs-legacy.rs diff --git a/src/test/ui/proc-macro/derive-in-mod.rs b/tests/ui/proc-macro/derive-in-mod.rs similarity index 100% rename from src/test/ui/proc-macro/derive-in-mod.rs rename to tests/ui/proc-macro/derive-in-mod.rs diff --git a/src/test/ui/proc-macro/derive-multiple-with-packed.rs b/tests/ui/proc-macro/derive-multiple-with-packed.rs similarity index 100% rename from src/test/ui/proc-macro/derive-multiple-with-packed.rs rename to tests/ui/proc-macro/derive-multiple-with-packed.rs diff --git a/src/test/ui/proc-macro/derive-same-struct.rs b/tests/ui/proc-macro/derive-same-struct.rs similarity index 100% rename from src/test/ui/proc-macro/derive-same-struct.rs rename to tests/ui/proc-macro/derive-same-struct.rs diff --git a/src/test/ui/proc-macro/derive-same-struct.stdout b/tests/ui/proc-macro/derive-same-struct.stdout similarity index 100% rename from src/test/ui/proc-macro/derive-same-struct.stdout rename to tests/ui/proc-macro/derive-same-struct.stdout diff --git a/src/test/ui/proc-macro/derive-still-gated.rs b/tests/ui/proc-macro/derive-still-gated.rs similarity index 100% rename from src/test/ui/proc-macro/derive-still-gated.rs rename to tests/ui/proc-macro/derive-still-gated.rs diff --git a/src/test/ui/proc-macro/derive-still-gated.stderr b/tests/ui/proc-macro/derive-still-gated.stderr similarity index 100% rename from src/test/ui/proc-macro/derive-still-gated.stderr rename to tests/ui/proc-macro/derive-still-gated.stderr diff --git a/src/test/ui/proc-macro/derive-test.rs b/tests/ui/proc-macro/derive-test.rs similarity index 100% rename from src/test/ui/proc-macro/derive-test.rs rename to tests/ui/proc-macro/derive-test.rs diff --git a/src/test/ui/proc-macro/derive-two-attrs.rs b/tests/ui/proc-macro/derive-two-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/derive-two-attrs.rs rename to tests/ui/proc-macro/derive-two-attrs.rs diff --git a/src/test/ui/proc-macro/derive-union.rs b/tests/ui/proc-macro/derive-union.rs similarity index 100% rename from src/test/ui/proc-macro/derive-union.rs rename to tests/ui/proc-macro/derive-union.rs diff --git a/src/test/ui/proc-macro/disappearing-resolution.rs b/tests/ui/proc-macro/disappearing-resolution.rs similarity index 100% rename from src/test/ui/proc-macro/disappearing-resolution.rs rename to tests/ui/proc-macro/disappearing-resolution.rs diff --git a/src/test/ui/proc-macro/disappearing-resolution.stderr b/tests/ui/proc-macro/disappearing-resolution.stderr similarity index 100% rename from src/test/ui/proc-macro/disappearing-resolution.stderr rename to tests/ui/proc-macro/disappearing-resolution.stderr diff --git a/src/test/ui/proc-macro/doc-comment-preserved.rs b/tests/ui/proc-macro/doc-comment-preserved.rs similarity index 100% rename from src/test/ui/proc-macro/doc-comment-preserved.rs rename to tests/ui/proc-macro/doc-comment-preserved.rs diff --git a/src/test/ui/proc-macro/doc-comment-preserved.stdout b/tests/ui/proc-macro/doc-comment-preserved.stdout similarity index 100% rename from src/test/ui/proc-macro/doc-comment-preserved.stdout rename to tests/ui/proc-macro/doc-comment-preserved.stdout diff --git a/src/test/ui/proc-macro/dollar-crate-issue-101211.rs b/tests/ui/proc-macro/dollar-crate-issue-101211.rs similarity index 100% rename from src/test/ui/proc-macro/dollar-crate-issue-101211.rs rename to tests/ui/proc-macro/dollar-crate-issue-101211.rs diff --git a/src/test/ui/proc-macro/dollar-crate-issue-57089.rs b/tests/ui/proc-macro/dollar-crate-issue-57089.rs similarity index 100% rename from src/test/ui/proc-macro/dollar-crate-issue-57089.rs rename to tests/ui/proc-macro/dollar-crate-issue-57089.rs diff --git a/src/test/ui/proc-macro/dollar-crate-issue-57089.stdout b/tests/ui/proc-macro/dollar-crate-issue-57089.stdout similarity index 100% rename from src/test/ui/proc-macro/dollar-crate-issue-57089.stdout rename to tests/ui/proc-macro/dollar-crate-issue-57089.stdout diff --git a/src/test/ui/proc-macro/dollar-crate-issue-62325.rs b/tests/ui/proc-macro/dollar-crate-issue-62325.rs similarity index 100% rename from src/test/ui/proc-macro/dollar-crate-issue-62325.rs rename to tests/ui/proc-macro/dollar-crate-issue-62325.rs diff --git a/src/test/ui/proc-macro/dollar-crate-issue-62325.stdout b/tests/ui/proc-macro/dollar-crate-issue-62325.stdout similarity index 100% rename from src/test/ui/proc-macro/dollar-crate-issue-62325.stdout rename to tests/ui/proc-macro/dollar-crate-issue-62325.stdout diff --git a/src/test/ui/proc-macro/dollar-crate.rs b/tests/ui/proc-macro/dollar-crate.rs similarity index 100% rename from src/test/ui/proc-macro/dollar-crate.rs rename to tests/ui/proc-macro/dollar-crate.rs diff --git a/src/test/ui/proc-macro/dollar-crate.stdout b/tests/ui/proc-macro/dollar-crate.stdout similarity index 100% rename from src/test/ui/proc-macro/dollar-crate.stdout rename to tests/ui/proc-macro/dollar-crate.stdout diff --git a/src/test/ui/proc-macro/edition-imports-2018.rs b/tests/ui/proc-macro/edition-imports-2018.rs similarity index 100% rename from src/test/ui/proc-macro/edition-imports-2018.rs rename to tests/ui/proc-macro/edition-imports-2018.rs diff --git a/src/test/ui/proc-macro/empty-crate.rs b/tests/ui/proc-macro/empty-crate.rs similarity index 100% rename from src/test/ui/proc-macro/empty-crate.rs rename to tests/ui/proc-macro/empty-crate.rs diff --git a/src/test/ui/proc-macro/empty-where-clause.rs b/tests/ui/proc-macro/empty-where-clause.rs similarity index 100% rename from src/test/ui/proc-macro/empty-where-clause.rs rename to tests/ui/proc-macro/empty-where-clause.rs diff --git a/src/test/ui/proc-macro/empty-where-clause.stderr b/tests/ui/proc-macro/empty-where-clause.stderr similarity index 100% rename from src/test/ui/proc-macro/empty-where-clause.stderr rename to tests/ui/proc-macro/empty-where-clause.stderr diff --git a/src/test/ui/proc-macro/expand-expr.rs b/tests/ui/proc-macro/expand-expr.rs similarity index 100% rename from src/test/ui/proc-macro/expand-expr.rs rename to tests/ui/proc-macro/expand-expr.rs diff --git a/src/test/ui/proc-macro/expand-expr.stderr b/tests/ui/proc-macro/expand-expr.stderr similarity index 100% rename from src/test/ui/proc-macro/expand-expr.stderr rename to tests/ui/proc-macro/expand-expr.stderr diff --git a/src/test/ui/proc-macro/expand-to-derive.rs b/tests/ui/proc-macro/expand-to-derive.rs similarity index 100% rename from src/test/ui/proc-macro/expand-to-derive.rs rename to tests/ui/proc-macro/expand-to-derive.rs diff --git a/src/test/ui/proc-macro/expand-to-derive.stdout b/tests/ui/proc-macro/expand-to-derive.stdout similarity index 100% rename from src/test/ui/proc-macro/expand-to-derive.stdout rename to tests/ui/proc-macro/expand-to-derive.stdout diff --git a/src/test/ui/proc-macro/expand-to-unstable.rs b/tests/ui/proc-macro/expand-to-unstable.rs similarity index 100% rename from src/test/ui/proc-macro/expand-to-unstable.rs rename to tests/ui/proc-macro/expand-to-unstable.rs diff --git a/src/test/ui/proc-macro/expand-to-unstable.stderr b/tests/ui/proc-macro/expand-to-unstable.stderr similarity index 100% rename from src/test/ui/proc-macro/expand-to-unstable.stderr rename to tests/ui/proc-macro/expand-to-unstable.stderr diff --git a/src/test/ui/proc-macro/expand-with-a-macro.rs b/tests/ui/proc-macro/expand-with-a-macro.rs similarity index 100% rename from src/test/ui/proc-macro/expand-with-a-macro.rs rename to tests/ui/proc-macro/expand-with-a-macro.rs diff --git a/src/test/ui/proc-macro/export-macro.rs b/tests/ui/proc-macro/export-macro.rs similarity index 100% rename from src/test/ui/proc-macro/export-macro.rs rename to tests/ui/proc-macro/export-macro.rs diff --git a/src/test/ui/proc-macro/export-macro.stderr b/tests/ui/proc-macro/export-macro.stderr similarity index 100% rename from src/test/ui/proc-macro/export-macro.stderr rename to tests/ui/proc-macro/export-macro.stderr diff --git a/src/test/ui/proc-macro/exports.rs b/tests/ui/proc-macro/exports.rs similarity index 100% rename from src/test/ui/proc-macro/exports.rs rename to tests/ui/proc-macro/exports.rs diff --git a/src/test/ui/proc-macro/exports.stderr b/tests/ui/proc-macro/exports.stderr similarity index 100% rename from src/test/ui/proc-macro/exports.stderr rename to tests/ui/proc-macro/exports.stderr diff --git a/src/test/ui/proc-macro/expr-stmt-nonterminal-tokens.rs b/tests/ui/proc-macro/expr-stmt-nonterminal-tokens.rs similarity index 100% rename from src/test/ui/proc-macro/expr-stmt-nonterminal-tokens.rs rename to tests/ui/proc-macro/expr-stmt-nonterminal-tokens.rs diff --git a/src/test/ui/proc-macro/expr-stmt-nonterminal-tokens.stdout b/tests/ui/proc-macro/expr-stmt-nonterminal-tokens.stdout similarity index 100% rename from src/test/ui/proc-macro/expr-stmt-nonterminal-tokens.stdout rename to tests/ui/proc-macro/expr-stmt-nonterminal-tokens.stdout diff --git a/src/test/ui/proc-macro/extern-prelude-extern-crate-proc-macro.rs b/tests/ui/proc-macro/extern-prelude-extern-crate-proc-macro.rs similarity index 100% rename from src/test/ui/proc-macro/extern-prelude-extern-crate-proc-macro.rs rename to tests/ui/proc-macro/extern-prelude-extern-crate-proc-macro.rs diff --git a/src/test/ui/proc-macro/gen-lifetime-token.rs b/tests/ui/proc-macro/gen-lifetime-token.rs similarity index 100% rename from src/test/ui/proc-macro/gen-lifetime-token.rs rename to tests/ui/proc-macro/gen-lifetime-token.rs diff --git a/src/test/ui/proc-macro/gen-macro-rules-hygiene.rs b/tests/ui/proc-macro/gen-macro-rules-hygiene.rs similarity index 100% rename from src/test/ui/proc-macro/gen-macro-rules-hygiene.rs rename to tests/ui/proc-macro/gen-macro-rules-hygiene.rs diff --git a/src/test/ui/proc-macro/gen-macro-rules-hygiene.stderr b/tests/ui/proc-macro/gen-macro-rules-hygiene.stderr similarity index 100% rename from src/test/ui/proc-macro/gen-macro-rules-hygiene.stderr rename to tests/ui/proc-macro/gen-macro-rules-hygiene.stderr diff --git a/src/test/ui/proc-macro/gen-macro-rules.rs b/tests/ui/proc-macro/gen-macro-rules.rs similarity index 100% rename from src/test/ui/proc-macro/gen-macro-rules.rs rename to tests/ui/proc-macro/gen-macro-rules.rs diff --git a/src/test/ui/proc-macro/generate-dollar-ident.rs b/tests/ui/proc-macro/generate-dollar-ident.rs similarity index 100% rename from src/test/ui/proc-macro/generate-dollar-ident.rs rename to tests/ui/proc-macro/generate-dollar-ident.rs diff --git a/src/test/ui/proc-macro/generate-mod.rs b/tests/ui/proc-macro/generate-mod.rs similarity index 100% rename from src/test/ui/proc-macro/generate-mod.rs rename to tests/ui/proc-macro/generate-mod.rs diff --git a/src/test/ui/proc-macro/generate-mod.stderr b/tests/ui/proc-macro/generate-mod.stderr similarity index 100% rename from src/test/ui/proc-macro/generate-mod.stderr rename to tests/ui/proc-macro/generate-mod.stderr diff --git a/src/test/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs b/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs similarity index 100% rename from src/test/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs rename to tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs diff --git a/src/test/ui/proc-macro/helper-attr-blocked-by-import-ambig.stderr b/tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.stderr similarity index 100% rename from src/test/ui/proc-macro/helper-attr-blocked-by-import-ambig.stderr rename to tests/ui/proc-macro/helper-attr-blocked-by-import-ambig.stderr diff --git a/src/test/ui/proc-macro/helper-attr-blocked-by-import.rs b/tests/ui/proc-macro/helper-attr-blocked-by-import.rs similarity index 100% rename from src/test/ui/proc-macro/helper-attr-blocked-by-import.rs rename to tests/ui/proc-macro/helper-attr-blocked-by-import.rs diff --git a/src/test/ui/proc-macro/hygiene_example.rs b/tests/ui/proc-macro/hygiene_example.rs similarity index 100% rename from src/test/ui/proc-macro/hygiene_example.rs rename to tests/ui/proc-macro/hygiene_example.rs diff --git a/src/test/ui/proc-macro/illegal-proc-macro-derive-use.rs b/tests/ui/proc-macro/illegal-proc-macro-derive-use.rs similarity index 100% rename from src/test/ui/proc-macro/illegal-proc-macro-derive-use.rs rename to tests/ui/proc-macro/illegal-proc-macro-derive-use.rs diff --git a/src/test/ui/proc-macro/illegal-proc-macro-derive-use.stderr b/tests/ui/proc-macro/illegal-proc-macro-derive-use.stderr similarity index 100% rename from src/test/ui/proc-macro/illegal-proc-macro-derive-use.stderr rename to tests/ui/proc-macro/illegal-proc-macro-derive-use.stderr diff --git a/src/test/ui/proc-macro/import.rs b/tests/ui/proc-macro/import.rs similarity index 100% rename from src/test/ui/proc-macro/import.rs rename to tests/ui/proc-macro/import.rs diff --git a/src/test/ui/proc-macro/import.stderr b/tests/ui/proc-macro/import.stderr similarity index 100% rename from src/test/ui/proc-macro/import.stderr rename to tests/ui/proc-macro/import.stderr diff --git a/src/test/ui/proc-macro/inert-attribute-order.rs b/tests/ui/proc-macro/inert-attribute-order.rs similarity index 100% rename from src/test/ui/proc-macro/inert-attribute-order.rs rename to tests/ui/proc-macro/inert-attribute-order.rs diff --git a/src/test/ui/proc-macro/inert-attribute-order.stdout b/tests/ui/proc-macro/inert-attribute-order.stdout similarity index 100% rename from src/test/ui/proc-macro/inert-attribute-order.stdout rename to tests/ui/proc-macro/inert-attribute-order.stdout diff --git a/src/test/ui/proc-macro/inner-attr-non-inline-mod.rs b/tests/ui/proc-macro/inner-attr-non-inline-mod.rs similarity index 100% rename from src/test/ui/proc-macro/inner-attr-non-inline-mod.rs rename to tests/ui/proc-macro/inner-attr-non-inline-mod.rs diff --git a/src/test/ui/proc-macro/inner-attr-non-inline-mod.stderr b/tests/ui/proc-macro/inner-attr-non-inline-mod.stderr similarity index 100% rename from src/test/ui/proc-macro/inner-attr-non-inline-mod.stderr rename to tests/ui/proc-macro/inner-attr-non-inline-mod.stderr diff --git a/src/test/ui/proc-macro/inner-attr-non-inline-mod.stdout b/tests/ui/proc-macro/inner-attr-non-inline-mod.stdout similarity index 100% rename from src/test/ui/proc-macro/inner-attr-non-inline-mod.stdout rename to tests/ui/proc-macro/inner-attr-non-inline-mod.stdout diff --git a/src/test/ui/proc-macro/inner-attrs.rs b/tests/ui/proc-macro/inner-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/inner-attrs.rs rename to tests/ui/proc-macro/inner-attrs.rs diff --git a/src/test/ui/proc-macro/inner-attrs.stderr b/tests/ui/proc-macro/inner-attrs.stderr similarity index 100% rename from src/test/ui/proc-macro/inner-attrs.stderr rename to tests/ui/proc-macro/inner-attrs.stderr diff --git a/src/test/ui/proc-macro/inner-attrs.stdout b/tests/ui/proc-macro/inner-attrs.stdout similarity index 100% rename from src/test/ui/proc-macro/inner-attrs.stdout rename to tests/ui/proc-macro/inner-attrs.stdout diff --git a/src/test/ui/proc-macro/input-interpolated.rs b/tests/ui/proc-macro/input-interpolated.rs similarity index 100% rename from src/test/ui/proc-macro/input-interpolated.rs rename to tests/ui/proc-macro/input-interpolated.rs diff --git a/src/test/ui/proc-macro/input-interpolated.stdout b/tests/ui/proc-macro/input-interpolated.stdout similarity index 100% rename from src/test/ui/proc-macro/input-interpolated.stdout rename to tests/ui/proc-macro/input-interpolated.stdout diff --git a/src/test/ui/proc-macro/invalid-attributes.rs b/tests/ui/proc-macro/invalid-attributes.rs similarity index 100% rename from src/test/ui/proc-macro/invalid-attributes.rs rename to tests/ui/proc-macro/invalid-attributes.rs diff --git a/src/test/ui/proc-macro/invalid-attributes.stderr b/tests/ui/proc-macro/invalid-attributes.stderr similarity index 100% rename from src/test/ui/proc-macro/invalid-attributes.stderr rename to tests/ui/proc-macro/invalid-attributes.stderr diff --git a/src/test/ui/proc-macro/invalid-punct-ident-1.rs b/tests/ui/proc-macro/invalid-punct-ident-1.rs similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-1.rs rename to tests/ui/proc-macro/invalid-punct-ident-1.rs diff --git a/src/test/ui/proc-macro/invalid-punct-ident-1.stderr b/tests/ui/proc-macro/invalid-punct-ident-1.stderr similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-1.stderr rename to tests/ui/proc-macro/invalid-punct-ident-1.stderr diff --git a/src/test/ui/proc-macro/invalid-punct-ident-2.rs b/tests/ui/proc-macro/invalid-punct-ident-2.rs similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-2.rs rename to tests/ui/proc-macro/invalid-punct-ident-2.rs diff --git a/src/test/ui/proc-macro/invalid-punct-ident-2.stderr b/tests/ui/proc-macro/invalid-punct-ident-2.stderr similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-2.stderr rename to tests/ui/proc-macro/invalid-punct-ident-2.stderr diff --git a/src/test/ui/proc-macro/invalid-punct-ident-3.rs b/tests/ui/proc-macro/invalid-punct-ident-3.rs similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-3.rs rename to tests/ui/proc-macro/invalid-punct-ident-3.rs diff --git a/src/test/ui/proc-macro/invalid-punct-ident-3.stderr b/tests/ui/proc-macro/invalid-punct-ident-3.stderr similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-3.stderr rename to tests/ui/proc-macro/invalid-punct-ident-3.stderr diff --git a/src/test/ui/proc-macro/invalid-punct-ident-4.rs b/tests/ui/proc-macro/invalid-punct-ident-4.rs similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-4.rs rename to tests/ui/proc-macro/invalid-punct-ident-4.rs diff --git a/src/test/ui/proc-macro/invalid-punct-ident-4.stderr b/tests/ui/proc-macro/invalid-punct-ident-4.stderr similarity index 100% rename from src/test/ui/proc-macro/invalid-punct-ident-4.stderr rename to tests/ui/proc-macro/invalid-punct-ident-4.stderr diff --git a/src/test/ui/proc-macro/is-available.rs b/tests/ui/proc-macro/is-available.rs similarity index 100% rename from src/test/ui/proc-macro/is-available.rs rename to tests/ui/proc-macro/is-available.rs diff --git a/src/test/ui/proc-macro/issue-104884-trait-impl-sugg-err.rs b/tests/ui/proc-macro/issue-104884-trait-impl-sugg-err.rs similarity index 100% rename from src/test/ui/proc-macro/issue-104884-trait-impl-sugg-err.rs rename to tests/ui/proc-macro/issue-104884-trait-impl-sugg-err.rs diff --git a/src/test/ui/proc-macro/issue-104884-trait-impl-sugg-err.stderr b/tests/ui/proc-macro/issue-104884-trait-impl-sugg-err.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-104884-trait-impl-sugg-err.stderr rename to tests/ui/proc-macro/issue-104884-trait-impl-sugg-err.stderr diff --git a/src/test/ui/proc-macro/issue-36935.rs b/tests/ui/proc-macro/issue-36935.rs similarity index 100% rename from src/test/ui/proc-macro/issue-36935.rs rename to tests/ui/proc-macro/issue-36935.rs diff --git a/src/test/ui/proc-macro/issue-36935.stderr b/tests/ui/proc-macro/issue-36935.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-36935.stderr rename to tests/ui/proc-macro/issue-36935.stderr diff --git a/src/test/ui/proc-macro/issue-37788.rs b/tests/ui/proc-macro/issue-37788.rs similarity index 100% rename from src/test/ui/proc-macro/issue-37788.rs rename to tests/ui/proc-macro/issue-37788.rs diff --git a/src/test/ui/proc-macro/issue-37788.stderr b/tests/ui/proc-macro/issue-37788.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-37788.stderr rename to tests/ui/proc-macro/issue-37788.stderr diff --git a/src/test/ui/proc-macro/issue-38586.rs b/tests/ui/proc-macro/issue-38586.rs similarity index 100% rename from src/test/ui/proc-macro/issue-38586.rs rename to tests/ui/proc-macro/issue-38586.rs diff --git a/src/test/ui/proc-macro/issue-38586.stderr b/tests/ui/proc-macro/issue-38586.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-38586.stderr rename to tests/ui/proc-macro/issue-38586.stderr diff --git a/src/test/ui/proc-macro/issue-39889.rs b/tests/ui/proc-macro/issue-39889.rs similarity index 100% rename from src/test/ui/proc-macro/issue-39889.rs rename to tests/ui/proc-macro/issue-39889.rs diff --git a/src/test/ui/proc-macro/issue-42708.rs b/tests/ui/proc-macro/issue-42708.rs similarity index 100% rename from src/test/ui/proc-macro/issue-42708.rs rename to tests/ui/proc-macro/issue-42708.rs diff --git a/src/test/ui/proc-macro/issue-50061.rs b/tests/ui/proc-macro/issue-50061.rs similarity index 100% rename from src/test/ui/proc-macro/issue-50061.rs rename to tests/ui/proc-macro/issue-50061.rs diff --git a/src/test/ui/proc-macro/issue-50493.rs b/tests/ui/proc-macro/issue-50493.rs similarity index 100% rename from src/test/ui/proc-macro/issue-50493.rs rename to tests/ui/proc-macro/issue-50493.rs diff --git a/src/test/ui/proc-macro/issue-50493.stderr b/tests/ui/proc-macro/issue-50493.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-50493.stderr rename to tests/ui/proc-macro/issue-50493.stderr diff --git a/src/test/ui/proc-macro/issue-53481.rs b/tests/ui/proc-macro/issue-53481.rs similarity index 100% rename from src/test/ui/proc-macro/issue-53481.rs rename to tests/ui/proc-macro/issue-53481.rs diff --git a/src/test/ui/proc-macro/issue-59191-replace-root-with-fn.rs b/tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs similarity index 100% rename from src/test/ui/proc-macro/issue-59191-replace-root-with-fn.rs rename to tests/ui/proc-macro/issue-59191-replace-root-with-fn.rs diff --git a/src/test/ui/proc-macro/issue-59191-replace-root-with-fn.stderr b/tests/ui/proc-macro/issue-59191-replace-root-with-fn.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-59191-replace-root-with-fn.stderr rename to tests/ui/proc-macro/issue-59191-replace-root-with-fn.stderr diff --git a/src/test/ui/proc-macro/issue-66286.rs b/tests/ui/proc-macro/issue-66286.rs similarity index 100% rename from src/test/ui/proc-macro/issue-66286.rs rename to tests/ui/proc-macro/issue-66286.rs diff --git a/src/test/ui/proc-macro/issue-66286.stderr b/tests/ui/proc-macro/issue-66286.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-66286.stderr rename to tests/ui/proc-macro/issue-66286.stderr diff --git a/src/test/ui/proc-macro/issue-73933-procedural-masquerade.rs b/tests/ui/proc-macro/issue-73933-procedural-masquerade.rs similarity index 100% rename from src/test/ui/proc-macro/issue-73933-procedural-masquerade.rs rename to tests/ui/proc-macro/issue-73933-procedural-masquerade.rs diff --git a/src/test/ui/proc-macro/issue-73933-procedural-masquerade.stdout b/tests/ui/proc-macro/issue-73933-procedural-masquerade.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-73933-procedural-masquerade.stdout rename to tests/ui/proc-macro/issue-73933-procedural-masquerade.stdout diff --git a/src/test/ui/proc-macro/issue-75734-pp-paren.rs b/tests/ui/proc-macro/issue-75734-pp-paren.rs similarity index 100% rename from src/test/ui/proc-macro/issue-75734-pp-paren.rs rename to tests/ui/proc-macro/issue-75734-pp-paren.rs diff --git a/src/test/ui/proc-macro/issue-75734-pp-paren.stdout b/tests/ui/proc-macro/issue-75734-pp-paren.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-75734-pp-paren.stdout rename to tests/ui/proc-macro/issue-75734-pp-paren.stdout diff --git a/src/test/ui/proc-macro/issue-75801.rs b/tests/ui/proc-macro/issue-75801.rs similarity index 100% rename from src/test/ui/proc-macro/issue-75801.rs rename to tests/ui/proc-macro/issue-75801.rs diff --git a/src/test/ui/proc-macro/issue-75801.stderr b/tests/ui/proc-macro/issue-75801.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-75801.stderr rename to tests/ui/proc-macro/issue-75801.stderr diff --git a/src/test/ui/proc-macro/issue-75930-derive-cfg.rs b/tests/ui/proc-macro/issue-75930-derive-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/issue-75930-derive-cfg.rs rename to tests/ui/proc-macro/issue-75930-derive-cfg.rs diff --git a/src/test/ui/proc-macro/issue-75930-derive-cfg.stderr b/tests/ui/proc-macro/issue-75930-derive-cfg.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-75930-derive-cfg.stderr rename to tests/ui/proc-macro/issue-75930-derive-cfg.stderr diff --git a/src/test/ui/proc-macro/issue-75930-derive-cfg.stdout b/tests/ui/proc-macro/issue-75930-derive-cfg.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-75930-derive-cfg.stdout rename to tests/ui/proc-macro/issue-75930-derive-cfg.stdout diff --git a/src/test/ui/proc-macro/issue-76182-leading-vert-pat.rs b/tests/ui/proc-macro/issue-76182-leading-vert-pat.rs similarity index 100% rename from src/test/ui/proc-macro/issue-76182-leading-vert-pat.rs rename to tests/ui/proc-macro/issue-76182-leading-vert-pat.rs diff --git a/src/test/ui/proc-macro/issue-76182-leading-vert-pat.stdout b/tests/ui/proc-macro/issue-76182-leading-vert-pat.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-76182-leading-vert-pat.stdout rename to tests/ui/proc-macro/issue-76182-leading-vert-pat.stdout diff --git a/src/test/ui/proc-macro/issue-76270-panic-in-libproc-macro.rs b/tests/ui/proc-macro/issue-76270-panic-in-libproc-macro.rs similarity index 100% rename from src/test/ui/proc-macro/issue-76270-panic-in-libproc-macro.rs rename to tests/ui/proc-macro/issue-76270-panic-in-libproc-macro.rs diff --git a/src/test/ui/proc-macro/issue-76270-panic-in-libproc-macro.stderr b/tests/ui/proc-macro/issue-76270-panic-in-libproc-macro.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-76270-panic-in-libproc-macro.stderr rename to tests/ui/proc-macro/issue-76270-panic-in-libproc-macro.stderr diff --git a/src/test/ui/proc-macro/issue-78675-captured-inner-attrs.rs b/tests/ui/proc-macro/issue-78675-captured-inner-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/issue-78675-captured-inner-attrs.rs rename to tests/ui/proc-macro/issue-78675-captured-inner-attrs.rs diff --git a/src/test/ui/proc-macro/issue-78675-captured-inner-attrs.stdout b/tests/ui/proc-macro/issue-78675-captured-inner-attrs.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-78675-captured-inner-attrs.stdout rename to tests/ui/proc-macro/issue-78675-captured-inner-attrs.stdout diff --git a/src/test/ui/proc-macro/issue-79148.rs b/tests/ui/proc-macro/issue-79148.rs similarity index 100% rename from src/test/ui/proc-macro/issue-79148.rs rename to tests/ui/proc-macro/issue-79148.rs diff --git a/src/test/ui/proc-macro/issue-79148.stderr b/tests/ui/proc-macro/issue-79148.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-79148.stderr rename to tests/ui/proc-macro/issue-79148.stderr diff --git a/src/test/ui/proc-macro/issue-79242-slow-retokenize-check.rs b/tests/ui/proc-macro/issue-79242-slow-retokenize-check.rs similarity index 100% rename from src/test/ui/proc-macro/issue-79242-slow-retokenize-check.rs rename to tests/ui/proc-macro/issue-79242-slow-retokenize-check.rs diff --git a/src/test/ui/proc-macro/issue-79825.rs b/tests/ui/proc-macro/issue-79825.rs similarity index 100% rename from src/test/ui/proc-macro/issue-79825.rs rename to tests/ui/proc-macro/issue-79825.rs diff --git a/src/test/ui/proc-macro/issue-80760-empty-stmt.rs b/tests/ui/proc-macro/issue-80760-empty-stmt.rs similarity index 100% rename from src/test/ui/proc-macro/issue-80760-empty-stmt.rs rename to tests/ui/proc-macro/issue-80760-empty-stmt.rs diff --git a/src/test/ui/proc-macro/issue-80760-empty-stmt.stdout b/tests/ui/proc-macro/issue-80760-empty-stmt.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-80760-empty-stmt.stdout rename to tests/ui/proc-macro/issue-80760-empty-stmt.stdout diff --git a/src/test/ui/proc-macro/issue-81007-item-attrs.rs b/tests/ui/proc-macro/issue-81007-item-attrs.rs similarity index 100% rename from src/test/ui/proc-macro/issue-81007-item-attrs.rs rename to tests/ui/proc-macro/issue-81007-item-attrs.rs diff --git a/src/test/ui/proc-macro/issue-81007-item-attrs.stdout b/tests/ui/proc-macro/issue-81007-item-attrs.stdout similarity index 100% rename from src/test/ui/proc-macro/issue-81007-item-attrs.stdout rename to tests/ui/proc-macro/issue-81007-item-attrs.stdout diff --git a/src/test/ui/proc-macro/issue-81543-item-parse-err.rs b/tests/ui/proc-macro/issue-81543-item-parse-err.rs similarity index 100% rename from src/test/ui/proc-macro/issue-81543-item-parse-err.rs rename to tests/ui/proc-macro/issue-81543-item-parse-err.rs diff --git a/src/test/ui/proc-macro/issue-81543-item-parse-err.stderr b/tests/ui/proc-macro/issue-81543-item-parse-err.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-81543-item-parse-err.stderr rename to tests/ui/proc-macro/issue-81543-item-parse-err.stderr diff --git a/src/test/ui/proc-macro/issue-81555.rs b/tests/ui/proc-macro/issue-81555.rs similarity index 100% rename from src/test/ui/proc-macro/issue-81555.rs rename to tests/ui/proc-macro/issue-81555.rs diff --git a/src/test/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.rs b/tests/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.rs similarity index 100% rename from src/test/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.rs rename to tests/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.rs diff --git a/src/test/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.stderr b/tests/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.stderr rename to tests/ui/proc-macro/issue-83469-global-alloc-invalid-stmt.stderr diff --git a/src/test/ui/proc-macro/issue-83510.rs b/tests/ui/proc-macro/issue-83510.rs similarity index 100% rename from src/test/ui/proc-macro/issue-83510.rs rename to tests/ui/proc-macro/issue-83510.rs diff --git a/src/test/ui/proc-macro/issue-83510.stderr b/tests/ui/proc-macro/issue-83510.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-83510.stderr rename to tests/ui/proc-macro/issue-83510.stderr diff --git a/src/test/ui/proc-macro/issue-86781-bad-inner-doc.fixed b/tests/ui/proc-macro/issue-86781-bad-inner-doc.fixed similarity index 100% rename from src/test/ui/proc-macro/issue-86781-bad-inner-doc.fixed rename to tests/ui/proc-macro/issue-86781-bad-inner-doc.fixed diff --git a/src/test/ui/proc-macro/issue-86781-bad-inner-doc.rs b/tests/ui/proc-macro/issue-86781-bad-inner-doc.rs similarity index 100% rename from src/test/ui/proc-macro/issue-86781-bad-inner-doc.rs rename to tests/ui/proc-macro/issue-86781-bad-inner-doc.rs diff --git a/src/test/ui/proc-macro/issue-86781-bad-inner-doc.stderr b/tests/ui/proc-macro/issue-86781-bad-inner-doc.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-86781-bad-inner-doc.stderr rename to tests/ui/proc-macro/issue-86781-bad-inner-doc.stderr diff --git a/src/test/ui/proc-macro/issue-91800.rs b/tests/ui/proc-macro/issue-91800.rs similarity index 100% rename from src/test/ui/proc-macro/issue-91800.rs rename to tests/ui/proc-macro/issue-91800.rs diff --git a/src/test/ui/proc-macro/issue-91800.stderr b/tests/ui/proc-macro/issue-91800.stderr similarity index 100% rename from src/test/ui/proc-macro/issue-91800.stderr rename to tests/ui/proc-macro/issue-91800.stderr diff --git a/src/test/ui/proc-macro/item-error.rs b/tests/ui/proc-macro/item-error.rs similarity index 100% rename from src/test/ui/proc-macro/item-error.rs rename to tests/ui/proc-macro/item-error.rs diff --git a/src/test/ui/proc-macro/item-error.stderr b/tests/ui/proc-macro/item-error.stderr similarity index 100% rename from src/test/ui/proc-macro/item-error.stderr rename to tests/ui/proc-macro/item-error.stderr diff --git a/src/test/ui/proc-macro/keep-expr-tokens.rs b/tests/ui/proc-macro/keep-expr-tokens.rs similarity index 100% rename from src/test/ui/proc-macro/keep-expr-tokens.rs rename to tests/ui/proc-macro/keep-expr-tokens.rs diff --git a/src/test/ui/proc-macro/keep-expr-tokens.stderr b/tests/ui/proc-macro/keep-expr-tokens.stderr similarity index 100% rename from src/test/ui/proc-macro/keep-expr-tokens.stderr rename to tests/ui/proc-macro/keep-expr-tokens.stderr diff --git a/src/test/ui/proc-macro/keep-expr-tokens.stdout b/tests/ui/proc-macro/keep-expr-tokens.stdout similarity index 100% rename from src/test/ui/proc-macro/keep-expr-tokens.stdout rename to tests/ui/proc-macro/keep-expr-tokens.stdout diff --git a/src/test/ui/proc-macro/lifetimes-rpass.rs b/tests/ui/proc-macro/lifetimes-rpass.rs similarity index 100% rename from src/test/ui/proc-macro/lifetimes-rpass.rs rename to tests/ui/proc-macro/lifetimes-rpass.rs diff --git a/src/test/ui/proc-macro/lifetimes.rs b/tests/ui/proc-macro/lifetimes.rs similarity index 100% rename from src/test/ui/proc-macro/lifetimes.rs rename to tests/ui/proc-macro/lifetimes.rs diff --git a/src/test/ui/proc-macro/lifetimes.stderr b/tests/ui/proc-macro/lifetimes.stderr similarity index 100% rename from src/test/ui/proc-macro/lifetimes.stderr rename to tests/ui/proc-macro/lifetimes.stderr diff --git a/src/test/ui/proc-macro/lints_in_proc_macros.rs b/tests/ui/proc-macro/lints_in_proc_macros.rs similarity index 100% rename from src/test/ui/proc-macro/lints_in_proc_macros.rs rename to tests/ui/proc-macro/lints_in_proc_macros.rs diff --git a/src/test/ui/proc-macro/lints_in_proc_macros.stderr b/tests/ui/proc-macro/lints_in_proc_macros.stderr similarity index 100% rename from src/test/ui/proc-macro/lints_in_proc_macros.stderr rename to tests/ui/proc-macro/lints_in_proc_macros.stderr diff --git a/src/test/ui/proc-macro/load-panic-backtrace.rs b/tests/ui/proc-macro/load-panic-backtrace.rs similarity index 100% rename from src/test/ui/proc-macro/load-panic-backtrace.rs rename to tests/ui/proc-macro/load-panic-backtrace.rs diff --git a/src/test/ui/proc-macro/load-panic-backtrace.stderr b/tests/ui/proc-macro/load-panic-backtrace.stderr similarity index 100% rename from src/test/ui/proc-macro/load-panic-backtrace.stderr rename to tests/ui/proc-macro/load-panic-backtrace.stderr diff --git a/src/test/ui/proc-macro/load-panic.rs b/tests/ui/proc-macro/load-panic.rs similarity index 100% rename from src/test/ui/proc-macro/load-panic.rs rename to tests/ui/proc-macro/load-panic.rs diff --git a/src/test/ui/proc-macro/load-panic.stderr b/tests/ui/proc-macro/load-panic.stderr similarity index 100% rename from src/test/ui/proc-macro/load-panic.stderr rename to tests/ui/proc-macro/load-panic.stderr diff --git a/src/test/ui/proc-macro/load-two.rs b/tests/ui/proc-macro/load-two.rs similarity index 100% rename from src/test/ui/proc-macro/load-two.rs rename to tests/ui/proc-macro/load-two.rs diff --git a/src/test/ui/proc-macro/macro-brackets.rs b/tests/ui/proc-macro/macro-brackets.rs similarity index 100% rename from src/test/ui/proc-macro/macro-brackets.rs rename to tests/ui/proc-macro/macro-brackets.rs diff --git a/src/test/ui/proc-macro/macro-brackets.stderr b/tests/ui/proc-macro/macro-brackets.stderr similarity index 100% rename from src/test/ui/proc-macro/macro-brackets.stderr rename to tests/ui/proc-macro/macro-brackets.stderr diff --git a/src/test/ui/proc-macro/macro-crate-multi-decorator.rs b/tests/ui/proc-macro/macro-crate-multi-decorator.rs similarity index 100% rename from src/test/ui/proc-macro/macro-crate-multi-decorator.rs rename to tests/ui/proc-macro/macro-crate-multi-decorator.rs diff --git a/src/test/ui/proc-macro/macro-namespace-reserved-2.rs b/tests/ui/proc-macro/macro-namespace-reserved-2.rs similarity index 100% rename from src/test/ui/proc-macro/macro-namespace-reserved-2.rs rename to tests/ui/proc-macro/macro-namespace-reserved-2.rs diff --git a/src/test/ui/proc-macro/macro-namespace-reserved-2.stderr b/tests/ui/proc-macro/macro-namespace-reserved-2.stderr similarity index 100% rename from src/test/ui/proc-macro/macro-namespace-reserved-2.stderr rename to tests/ui/proc-macro/macro-namespace-reserved-2.stderr diff --git a/src/test/ui/proc-macro/macro-namespace-reserved.rs b/tests/ui/proc-macro/macro-namespace-reserved.rs similarity index 100% rename from src/test/ui/proc-macro/macro-namespace-reserved.rs rename to tests/ui/proc-macro/macro-namespace-reserved.rs diff --git a/src/test/ui/proc-macro/macro-namespace-reserved.stderr b/tests/ui/proc-macro/macro-namespace-reserved.stderr similarity index 100% rename from src/test/ui/proc-macro/macro-namespace-reserved.stderr rename to tests/ui/proc-macro/macro-namespace-reserved.stderr diff --git a/src/test/ui/proc-macro/macro-quote-cond.rs b/tests/ui/proc-macro/macro-quote-cond.rs similarity index 100% rename from src/test/ui/proc-macro/macro-quote-cond.rs rename to tests/ui/proc-macro/macro-quote-cond.rs diff --git a/src/test/ui/proc-macro/macro-rules-derive-cfg.rs b/tests/ui/proc-macro/macro-rules-derive-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/macro-rules-derive-cfg.rs rename to tests/ui/proc-macro/macro-rules-derive-cfg.rs diff --git a/src/test/ui/proc-macro/macro-rules-derive-cfg.stdout b/tests/ui/proc-macro/macro-rules-derive-cfg.stdout similarity index 100% rename from src/test/ui/proc-macro/macro-rules-derive-cfg.stdout rename to tests/ui/proc-macro/macro-rules-derive-cfg.stdout diff --git a/src/test/ui/proc-macro/macro-rules-derive.rs b/tests/ui/proc-macro/macro-rules-derive.rs similarity index 100% rename from src/test/ui/proc-macro/macro-rules-derive.rs rename to tests/ui/proc-macro/macro-rules-derive.rs diff --git a/src/test/ui/proc-macro/macro-rules-derive.stderr b/tests/ui/proc-macro/macro-rules-derive.stderr similarity index 100% rename from src/test/ui/proc-macro/macro-rules-derive.stderr rename to tests/ui/proc-macro/macro-rules-derive.stderr diff --git a/src/test/ui/proc-macro/macro-use-attr.rs b/tests/ui/proc-macro/macro-use-attr.rs similarity index 100% rename from src/test/ui/proc-macro/macro-use-attr.rs rename to tests/ui/proc-macro/macro-use-attr.rs diff --git a/src/test/ui/proc-macro/macro-use-bang.rs b/tests/ui/proc-macro/macro-use-bang.rs similarity index 100% rename from src/test/ui/proc-macro/macro-use-bang.rs rename to tests/ui/proc-macro/macro-use-bang.rs diff --git a/src/test/ui/proc-macro/macros-in-extern-derive.rs b/tests/ui/proc-macro/macros-in-extern-derive.rs similarity index 100% rename from src/test/ui/proc-macro/macros-in-extern-derive.rs rename to tests/ui/proc-macro/macros-in-extern-derive.rs diff --git a/src/test/ui/proc-macro/macros-in-extern-derive.stderr b/tests/ui/proc-macro/macros-in-extern-derive.stderr similarity index 100% rename from src/test/ui/proc-macro/macros-in-extern-derive.stderr rename to tests/ui/proc-macro/macros-in-extern-derive.stderr diff --git a/src/test/ui/proc-macro/macros-in-extern.rs b/tests/ui/proc-macro/macros-in-extern.rs similarity index 100% rename from src/test/ui/proc-macro/macros-in-extern.rs rename to tests/ui/proc-macro/macros-in-extern.rs diff --git a/src/test/ui/proc-macro/macros-in-type.rs b/tests/ui/proc-macro/macros-in-type.rs similarity index 100% rename from src/test/ui/proc-macro/macros-in-type.rs rename to tests/ui/proc-macro/macros-in-type.rs diff --git a/src/test/ui/proc-macro/meta-delim.rs b/tests/ui/proc-macro/meta-delim.rs similarity index 100% rename from src/test/ui/proc-macro/meta-delim.rs rename to tests/ui/proc-macro/meta-delim.rs diff --git a/src/test/ui/proc-macro/meta-macro-hygiene.rs b/tests/ui/proc-macro/meta-macro-hygiene.rs similarity index 100% rename from src/test/ui/proc-macro/meta-macro-hygiene.rs rename to tests/ui/proc-macro/meta-macro-hygiene.rs diff --git a/src/test/ui/proc-macro/meta-macro-hygiene.stdout b/tests/ui/proc-macro/meta-macro-hygiene.stdout similarity index 100% rename from src/test/ui/proc-macro/meta-macro-hygiene.stdout rename to tests/ui/proc-macro/meta-macro-hygiene.stdout diff --git a/src/test/ui/proc-macro/meta-macro.rs b/tests/ui/proc-macro/meta-macro.rs similarity index 100% rename from src/test/ui/proc-macro/meta-macro.rs rename to tests/ui/proc-macro/meta-macro.rs diff --git a/src/test/ui/proc-macro/meta-macro.stdout b/tests/ui/proc-macro/meta-macro.stdout similarity index 100% rename from src/test/ui/proc-macro/meta-macro.stdout rename to tests/ui/proc-macro/meta-macro.stdout diff --git a/src/test/ui/proc-macro/mixed-site-span.rs b/tests/ui/proc-macro/mixed-site-span.rs similarity index 100% rename from src/test/ui/proc-macro/mixed-site-span.rs rename to tests/ui/proc-macro/mixed-site-span.rs diff --git a/src/test/ui/proc-macro/mixed-site-span.stderr b/tests/ui/proc-macro/mixed-site-span.stderr similarity index 100% rename from src/test/ui/proc-macro/mixed-site-span.stderr rename to tests/ui/proc-macro/mixed-site-span.stderr diff --git a/src/test/ui/proc-macro/modify-ast.rs b/tests/ui/proc-macro/modify-ast.rs similarity index 100% rename from src/test/ui/proc-macro/modify-ast.rs rename to tests/ui/proc-macro/modify-ast.rs diff --git a/src/test/ui/proc-macro/module.rs b/tests/ui/proc-macro/module.rs similarity index 100% rename from src/test/ui/proc-macro/module.rs rename to tests/ui/proc-macro/module.rs diff --git a/src/test/ui/proc-macro/module_with_attrs.rs b/tests/ui/proc-macro/module_with_attrs.rs similarity index 100% rename from src/test/ui/proc-macro/module_with_attrs.rs rename to tests/ui/proc-macro/module_with_attrs.rs diff --git a/src/test/ui/proc-macro/multispan.rs b/tests/ui/proc-macro/multispan.rs similarity index 100% rename from src/test/ui/proc-macro/multispan.rs rename to tests/ui/proc-macro/multispan.rs diff --git a/src/test/ui/proc-macro/multispan.stderr b/tests/ui/proc-macro/multispan.stderr similarity index 100% rename from src/test/ui/proc-macro/multispan.stderr rename to tests/ui/proc-macro/multispan.stderr diff --git a/src/test/ui/proc-macro/negative-token.rs b/tests/ui/proc-macro/negative-token.rs similarity index 100% rename from src/test/ui/proc-macro/negative-token.rs rename to tests/ui/proc-macro/negative-token.rs diff --git a/src/test/ui/proc-macro/nested-derive-cfg.rs b/tests/ui/proc-macro/nested-derive-cfg.rs similarity index 100% rename from src/test/ui/proc-macro/nested-derive-cfg.rs rename to tests/ui/proc-macro/nested-derive-cfg.rs diff --git a/src/test/ui/proc-macro/nested-derive-cfg.stdout b/tests/ui/proc-macro/nested-derive-cfg.stdout similarity index 100% rename from src/test/ui/proc-macro/nested-derive-cfg.stdout rename to tests/ui/proc-macro/nested-derive-cfg.stdout diff --git a/src/test/ui/proc-macro/nested-item-spans.rs b/tests/ui/proc-macro/nested-item-spans.rs similarity index 100% rename from src/test/ui/proc-macro/nested-item-spans.rs rename to tests/ui/proc-macro/nested-item-spans.rs diff --git a/src/test/ui/proc-macro/nested-item-spans.stderr b/tests/ui/proc-macro/nested-item-spans.stderr similarity index 100% rename from src/test/ui/proc-macro/nested-item-spans.stderr rename to tests/ui/proc-macro/nested-item-spans.stderr diff --git a/src/test/ui/proc-macro/nested-macro-rules.rs b/tests/ui/proc-macro/nested-macro-rules.rs similarity index 100% rename from src/test/ui/proc-macro/nested-macro-rules.rs rename to tests/ui/proc-macro/nested-macro-rules.rs diff --git a/src/test/ui/proc-macro/nested-macro-rules.stdout b/tests/ui/proc-macro/nested-macro-rules.stdout similarity index 100% rename from src/test/ui/proc-macro/nested-macro-rules.stdout rename to tests/ui/proc-macro/nested-macro-rules.stdout diff --git a/src/test/ui/proc-macro/nested-nonterminal-tokens.rs b/tests/ui/proc-macro/nested-nonterminal-tokens.rs similarity index 100% rename from src/test/ui/proc-macro/nested-nonterminal-tokens.rs rename to tests/ui/proc-macro/nested-nonterminal-tokens.rs diff --git a/src/test/ui/proc-macro/nested-nonterminal-tokens.stdout b/tests/ui/proc-macro/nested-nonterminal-tokens.stdout similarity index 100% rename from src/test/ui/proc-macro/nested-nonterminal-tokens.stdout rename to tests/ui/proc-macro/nested-nonterminal-tokens.stdout diff --git a/src/test/ui/proc-macro/no-macro-use-attr.rs b/tests/ui/proc-macro/no-macro-use-attr.rs similarity index 100% rename from src/test/ui/proc-macro/no-macro-use-attr.rs rename to tests/ui/proc-macro/no-macro-use-attr.rs diff --git a/src/test/ui/proc-macro/no-macro-use-attr.stderr b/tests/ui/proc-macro/no-macro-use-attr.stderr similarity index 100% rename from src/test/ui/proc-macro/no-macro-use-attr.stderr rename to tests/ui/proc-macro/no-macro-use-attr.stderr diff --git a/src/test/ui/proc-macro/no-missing-docs.rs b/tests/ui/proc-macro/no-missing-docs.rs similarity index 100% rename from src/test/ui/proc-macro/no-missing-docs.rs rename to tests/ui/proc-macro/no-missing-docs.rs diff --git a/src/test/ui/proc-macro/nodelim-groups.rs b/tests/ui/proc-macro/nodelim-groups.rs similarity index 100% rename from src/test/ui/proc-macro/nodelim-groups.rs rename to tests/ui/proc-macro/nodelim-groups.rs diff --git a/src/test/ui/proc-macro/nodelim-groups.stdout b/tests/ui/proc-macro/nodelim-groups.stdout similarity index 100% rename from src/test/ui/proc-macro/nodelim-groups.stdout rename to tests/ui/proc-macro/nodelim-groups.stdout diff --git a/src/test/ui/proc-macro/non-root.rs b/tests/ui/proc-macro/non-root.rs similarity index 100% rename from src/test/ui/proc-macro/non-root.rs rename to tests/ui/proc-macro/non-root.rs diff --git a/src/test/ui/proc-macro/non-root.stderr b/tests/ui/proc-macro/non-root.stderr similarity index 100% rename from src/test/ui/proc-macro/non-root.stderr rename to tests/ui/proc-macro/non-root.stderr diff --git a/src/test/ui/proc-macro/nonterminal-expansion.rs b/tests/ui/proc-macro/nonterminal-expansion.rs similarity index 100% rename from src/test/ui/proc-macro/nonterminal-expansion.rs rename to tests/ui/proc-macro/nonterminal-expansion.rs diff --git a/src/test/ui/proc-macro/nonterminal-expansion.stdout b/tests/ui/proc-macro/nonterminal-expansion.stdout similarity index 100% rename from src/test/ui/proc-macro/nonterminal-expansion.stdout rename to tests/ui/proc-macro/nonterminal-expansion.stdout diff --git a/src/test/ui/proc-macro/nonterminal-recollect-attr.rs b/tests/ui/proc-macro/nonterminal-recollect-attr.rs similarity index 100% rename from src/test/ui/proc-macro/nonterminal-recollect-attr.rs rename to tests/ui/proc-macro/nonterminal-recollect-attr.rs diff --git a/src/test/ui/proc-macro/nonterminal-recollect-attr.stdout b/tests/ui/proc-macro/nonterminal-recollect-attr.stdout similarity index 100% rename from src/test/ui/proc-macro/nonterminal-recollect-attr.stdout rename to tests/ui/proc-macro/nonterminal-recollect-attr.stdout diff --git a/src/test/ui/proc-macro/nonterminal-token-hygiene.rs b/tests/ui/proc-macro/nonterminal-token-hygiene.rs similarity index 100% rename from src/test/ui/proc-macro/nonterminal-token-hygiene.rs rename to tests/ui/proc-macro/nonterminal-token-hygiene.rs diff --git a/src/test/ui/proc-macro/nonterminal-token-hygiene.stdout b/tests/ui/proc-macro/nonterminal-token-hygiene.stdout similarity index 100% rename from src/test/ui/proc-macro/nonterminal-token-hygiene.stdout rename to tests/ui/proc-macro/nonterminal-token-hygiene.stdout diff --git a/src/test/ui/proc-macro/not-joint.rs b/tests/ui/proc-macro/not-joint.rs similarity index 100% rename from src/test/ui/proc-macro/not-joint.rs rename to tests/ui/proc-macro/not-joint.rs diff --git a/src/test/ui/proc-macro/out-of-line-mod.rs b/tests/ui/proc-macro/out-of-line-mod.rs similarity index 100% rename from src/test/ui/proc-macro/out-of-line-mod.rs rename to tests/ui/proc-macro/out-of-line-mod.rs diff --git a/src/test/ui/proc-macro/outer/inner.rs b/tests/ui/proc-macro/outer/inner.rs similarity index 100% rename from src/test/ui/proc-macro/outer/inner.rs rename to tests/ui/proc-macro/outer/inner.rs diff --git a/src/test/ui/proc-macro/parent-source-spans.rs b/tests/ui/proc-macro/parent-source-spans.rs similarity index 100% rename from src/test/ui/proc-macro/parent-source-spans.rs rename to tests/ui/proc-macro/parent-source-spans.rs diff --git a/src/test/ui/proc-macro/parent-source-spans.stderr b/tests/ui/proc-macro/parent-source-spans.stderr similarity index 100% rename from src/test/ui/proc-macro/parent-source-spans.stderr rename to tests/ui/proc-macro/parent-source-spans.stderr diff --git a/src/test/ui/proc-macro/pretty-print-hack-hide.rs b/tests/ui/proc-macro/pretty-print-hack-hide.rs similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack-hide.rs rename to tests/ui/proc-macro/pretty-print-hack-hide.rs diff --git a/src/test/ui/proc-macro/pretty-print-hack-hide.stdout b/tests/ui/proc-macro/pretty-print-hack-hide.stdout similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack-hide.stdout rename to tests/ui/proc-macro/pretty-print-hack-hide.stdout diff --git a/src/test/ui/proc-macro/pretty-print-hack-show.rs b/tests/ui/proc-macro/pretty-print-hack-show.rs similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack-show.rs rename to tests/ui/proc-macro/pretty-print-hack-show.rs diff --git a/src/test/ui/proc-macro/pretty-print-hack-show.stderr b/tests/ui/proc-macro/pretty-print-hack-show.stderr similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack-show.stderr rename to tests/ui/proc-macro/pretty-print-hack-show.stderr diff --git a/src/test/ui/proc-macro/pretty-print-hack-show.stdout b/tests/ui/proc-macro/pretty-print-hack-show.stdout similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack-show.stdout rename to tests/ui/proc-macro/pretty-print-hack-show.stdout diff --git a/src/test/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs b/tests/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs rename to tests/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs diff --git a/src/test/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs b/tests/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs rename to tests/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs diff --git a/src/test/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs b/tests/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs similarity index 100% rename from src/test/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs rename to tests/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs diff --git a/src/test/ui/proc-macro/pretty-print-tts.rs b/tests/ui/proc-macro/pretty-print-tts.rs similarity index 100% rename from src/test/ui/proc-macro/pretty-print-tts.rs rename to tests/ui/proc-macro/pretty-print-tts.rs diff --git a/src/test/ui/proc-macro/pretty-print-tts.stdout b/tests/ui/proc-macro/pretty-print-tts.stdout similarity index 100% rename from src/test/ui/proc-macro/pretty-print-tts.stdout rename to tests/ui/proc-macro/pretty-print-tts.stdout diff --git a/src/test/ui/proc-macro/proc-macro-attributes.rs b/tests/ui/proc-macro/proc-macro-attributes.rs similarity index 100% rename from src/test/ui/proc-macro/proc-macro-attributes.rs rename to tests/ui/proc-macro/proc-macro-attributes.rs diff --git a/src/test/ui/proc-macro/proc-macro-attributes.stderr b/tests/ui/proc-macro/proc-macro-attributes.stderr similarity index 100% rename from src/test/ui/proc-macro/proc-macro-attributes.stderr rename to tests/ui/proc-macro/proc-macro-attributes.stderr diff --git a/src/test/ui/proc-macro/proc-macro-deprecated-attr.rs b/tests/ui/proc-macro/proc-macro-deprecated-attr.rs similarity index 100% rename from src/test/ui/proc-macro/proc-macro-deprecated-attr.rs rename to tests/ui/proc-macro/proc-macro-deprecated-attr.rs diff --git a/src/test/ui/proc-macro/proc-macro-gates.rs b/tests/ui/proc-macro/proc-macro-gates.rs similarity index 100% rename from src/test/ui/proc-macro/proc-macro-gates.rs rename to tests/ui/proc-macro/proc-macro-gates.rs diff --git a/src/test/ui/proc-macro/proc-macro-gates.stderr b/tests/ui/proc-macro/proc-macro-gates.stderr similarity index 100% rename from src/test/ui/proc-macro/proc-macro-gates.stderr rename to tests/ui/proc-macro/proc-macro-gates.stderr diff --git a/src/test/ui/proc-macro/proc-macro-gates2.rs b/tests/ui/proc-macro/proc-macro-gates2.rs similarity index 100% rename from src/test/ui/proc-macro/proc-macro-gates2.rs rename to tests/ui/proc-macro/proc-macro-gates2.rs diff --git a/src/test/ui/proc-macro/proc-macro-gates2.stderr b/tests/ui/proc-macro/proc-macro-gates2.stderr similarity index 100% rename from src/test/ui/proc-macro/proc-macro-gates2.stderr rename to tests/ui/proc-macro/proc-macro-gates2.stderr diff --git a/src/test/ui/proc-macro/pub-at-crate-root.rs b/tests/ui/proc-macro/pub-at-crate-root.rs similarity index 100% rename from src/test/ui/proc-macro/pub-at-crate-root.rs rename to tests/ui/proc-macro/pub-at-crate-root.rs diff --git a/src/test/ui/proc-macro/pub-at-crate-root.stderr b/tests/ui/proc-macro/pub-at-crate-root.stderr similarity index 100% rename from src/test/ui/proc-macro/pub-at-crate-root.stderr rename to tests/ui/proc-macro/pub-at-crate-root.stderr diff --git a/src/test/ui/proc-macro/quote-debug.rs b/tests/ui/proc-macro/quote-debug.rs similarity index 100% rename from src/test/ui/proc-macro/quote-debug.rs rename to tests/ui/proc-macro/quote-debug.rs diff --git a/src/test/ui/proc-macro/quote-debug.stdout b/tests/ui/proc-macro/quote-debug.stdout similarity index 100% rename from src/test/ui/proc-macro/quote-debug.stdout rename to tests/ui/proc-macro/quote-debug.stdout diff --git a/src/test/ui/proc-macro/raw-ident.rs b/tests/ui/proc-macro/raw-ident.rs similarity index 100% rename from src/test/ui/proc-macro/raw-ident.rs rename to tests/ui/proc-macro/raw-ident.rs diff --git a/src/test/ui/proc-macro/raw-ident.stderr b/tests/ui/proc-macro/raw-ident.stderr similarity index 100% rename from src/test/ui/proc-macro/raw-ident.stderr rename to tests/ui/proc-macro/raw-ident.stderr diff --git a/src/test/ui/proc-macro/reserved-macro-names.rs b/tests/ui/proc-macro/reserved-macro-names.rs similarity index 100% rename from src/test/ui/proc-macro/reserved-macro-names.rs rename to tests/ui/proc-macro/reserved-macro-names.rs diff --git a/src/test/ui/proc-macro/reserved-macro-names.stderr b/tests/ui/proc-macro/reserved-macro-names.stderr similarity index 100% rename from src/test/ui/proc-macro/reserved-macro-names.stderr rename to tests/ui/proc-macro/reserved-macro-names.stderr diff --git a/src/test/ui/proc-macro/resolve-error.rs b/tests/ui/proc-macro/resolve-error.rs similarity index 100% rename from src/test/ui/proc-macro/resolve-error.rs rename to tests/ui/proc-macro/resolve-error.rs diff --git a/src/test/ui/proc-macro/resolve-error.stderr b/tests/ui/proc-macro/resolve-error.stderr similarity index 100% rename from src/test/ui/proc-macro/resolve-error.stderr rename to tests/ui/proc-macro/resolve-error.stderr diff --git a/src/test/ui/proc-macro/resolved-located-at.rs b/tests/ui/proc-macro/resolved-located-at.rs similarity index 100% rename from src/test/ui/proc-macro/resolved-located-at.rs rename to tests/ui/proc-macro/resolved-located-at.rs diff --git a/src/test/ui/proc-macro/resolved-located-at.stderr b/tests/ui/proc-macro/resolved-located-at.stderr similarity index 100% rename from src/test/ui/proc-macro/resolved-located-at.stderr rename to tests/ui/proc-macro/resolved-located-at.stderr diff --git a/src/test/ui/proc-macro/shadow.rs b/tests/ui/proc-macro/shadow.rs similarity index 100% rename from src/test/ui/proc-macro/shadow.rs rename to tests/ui/proc-macro/shadow.rs diff --git a/src/test/ui/proc-macro/shadow.stderr b/tests/ui/proc-macro/shadow.stderr similarity index 100% rename from src/test/ui/proc-macro/shadow.stderr rename to tests/ui/proc-macro/shadow.stderr diff --git a/src/test/ui/proc-macro/signature.rs b/tests/ui/proc-macro/signature.rs similarity index 100% rename from src/test/ui/proc-macro/signature.rs rename to tests/ui/proc-macro/signature.rs diff --git a/src/test/ui/proc-macro/signature.stderr b/tests/ui/proc-macro/signature.stderr similarity index 100% rename from src/test/ui/proc-macro/signature.stderr rename to tests/ui/proc-macro/signature.stderr diff --git a/src/test/ui/proc-macro/smoke.rs b/tests/ui/proc-macro/smoke.rs similarity index 100% rename from src/test/ui/proc-macro/smoke.rs rename to tests/ui/proc-macro/smoke.rs diff --git a/src/test/ui/proc-macro/span-absolute-posititions.rs b/tests/ui/proc-macro/span-absolute-posititions.rs similarity index 100% rename from src/test/ui/proc-macro/span-absolute-posititions.rs rename to tests/ui/proc-macro/span-absolute-posititions.rs diff --git a/src/test/ui/proc-macro/span-absolute-posititions.stderr b/tests/ui/proc-macro/span-absolute-posititions.stderr similarity index 100% rename from src/test/ui/proc-macro/span-absolute-posititions.stderr rename to tests/ui/proc-macro/span-absolute-posititions.stderr diff --git a/src/test/ui/proc-macro/span-api-tests.rs b/tests/ui/proc-macro/span-api-tests.rs similarity index 100% rename from src/test/ui/proc-macro/span-api-tests.rs rename to tests/ui/proc-macro/span-api-tests.rs diff --git a/src/test/ui/proc-macro/span-from-proc-macro.rs b/tests/ui/proc-macro/span-from-proc-macro.rs similarity index 100% rename from src/test/ui/proc-macro/span-from-proc-macro.rs rename to tests/ui/proc-macro/span-from-proc-macro.rs diff --git a/src/test/ui/proc-macro/span-from-proc-macro.stderr b/tests/ui/proc-macro/span-from-proc-macro.stderr similarity index 100% rename from src/test/ui/proc-macro/span-from-proc-macro.stderr rename to tests/ui/proc-macro/span-from-proc-macro.stderr diff --git a/src/test/ui/proc-macro/span-preservation.rs b/tests/ui/proc-macro/span-preservation.rs similarity index 100% rename from src/test/ui/proc-macro/span-preservation.rs rename to tests/ui/proc-macro/span-preservation.rs diff --git a/src/test/ui/proc-macro/span-preservation.stderr b/tests/ui/proc-macro/span-preservation.stderr similarity index 100% rename from src/test/ui/proc-macro/span-preservation.stderr rename to tests/ui/proc-macro/span-preservation.stderr diff --git a/src/test/ui/proc-macro/struct-field-macro.rs b/tests/ui/proc-macro/struct-field-macro.rs similarity index 100% rename from src/test/ui/proc-macro/struct-field-macro.rs rename to tests/ui/proc-macro/struct-field-macro.rs diff --git a/src/test/ui/proc-macro/subspan.rs b/tests/ui/proc-macro/subspan.rs similarity index 100% rename from src/test/ui/proc-macro/subspan.rs rename to tests/ui/proc-macro/subspan.rs diff --git a/src/test/ui/proc-macro/subspan.stderr b/tests/ui/proc-macro/subspan.stderr similarity index 100% rename from src/test/ui/proc-macro/subspan.stderr rename to tests/ui/proc-macro/subspan.stderr diff --git a/src/test/ui/proc-macro/test.rs b/tests/ui/proc-macro/test.rs similarity index 100% rename from src/test/ui/proc-macro/test.rs rename to tests/ui/proc-macro/test.rs diff --git a/src/test/ui/proc-macro/three-equals.rs b/tests/ui/proc-macro/three-equals.rs similarity index 100% rename from src/test/ui/proc-macro/three-equals.rs rename to tests/ui/proc-macro/three-equals.rs diff --git a/src/test/ui/proc-macro/three-equals.stderr b/tests/ui/proc-macro/three-equals.stderr similarity index 100% rename from src/test/ui/proc-macro/three-equals.stderr rename to tests/ui/proc-macro/three-equals.stderr diff --git a/src/test/ui/proc-macro/trailing-plus.rs b/tests/ui/proc-macro/trailing-plus.rs similarity index 100% rename from src/test/ui/proc-macro/trailing-plus.rs rename to tests/ui/proc-macro/trailing-plus.rs diff --git a/src/test/ui/proc-macro/trailing-plus.stdout b/tests/ui/proc-macro/trailing-plus.stdout similarity index 100% rename from src/test/ui/proc-macro/trailing-plus.stdout rename to tests/ui/proc-macro/trailing-plus.stdout diff --git a/src/test/ui/proc-macro/trait-fn-args-2015.rs b/tests/ui/proc-macro/trait-fn-args-2015.rs similarity index 100% rename from src/test/ui/proc-macro/trait-fn-args-2015.rs rename to tests/ui/proc-macro/trait-fn-args-2015.rs diff --git a/src/test/ui/proc-macro/two-crate-types-1.rs b/tests/ui/proc-macro/two-crate-types-1.rs similarity index 100% rename from src/test/ui/proc-macro/two-crate-types-1.rs rename to tests/ui/proc-macro/two-crate-types-1.rs diff --git a/src/test/ui/proc-macro/two-crate-types-1.stderr b/tests/ui/proc-macro/two-crate-types-1.stderr similarity index 100% rename from src/test/ui/proc-macro/two-crate-types-1.stderr rename to tests/ui/proc-macro/two-crate-types-1.stderr diff --git a/src/test/ui/proc-macro/two-crate-types-2.rs b/tests/ui/proc-macro/two-crate-types-2.rs similarity index 100% rename from src/test/ui/proc-macro/two-crate-types-2.rs rename to tests/ui/proc-macro/two-crate-types-2.rs diff --git a/src/test/ui/proc-macro/two-crate-types-2.stderr b/tests/ui/proc-macro/two-crate-types-2.stderr similarity index 100% rename from src/test/ui/proc-macro/two-crate-types-2.stderr rename to tests/ui/proc-macro/two-crate-types-2.stderr diff --git a/src/test/ui/proc-macro/unsafe-foreign-mod.rs b/tests/ui/proc-macro/unsafe-foreign-mod.rs similarity index 100% rename from src/test/ui/proc-macro/unsafe-foreign-mod.rs rename to tests/ui/proc-macro/unsafe-foreign-mod.rs diff --git a/src/test/ui/proc-macro/unsafe-mod.rs b/tests/ui/proc-macro/unsafe-mod.rs similarity index 100% rename from src/test/ui/proc-macro/unsafe-mod.rs rename to tests/ui/proc-macro/unsafe-mod.rs diff --git a/src/test/ui/proc-macro/visibility-path.rs b/tests/ui/proc-macro/visibility-path.rs similarity index 100% rename from src/test/ui/proc-macro/visibility-path.rs rename to tests/ui/proc-macro/visibility-path.rs diff --git a/src/test/ui/proc-macro/visibility-path.stderr b/tests/ui/proc-macro/visibility-path.stderr similarity index 100% rename from src/test/ui/proc-macro/visibility-path.stderr rename to tests/ui/proc-macro/visibility-path.stderr diff --git a/src/test/ui/proc-macro/weird-braces.rs b/tests/ui/proc-macro/weird-braces.rs similarity index 100% rename from src/test/ui/proc-macro/weird-braces.rs rename to tests/ui/proc-macro/weird-braces.rs diff --git a/src/test/ui/proc-macro/weird-braces.stdout b/tests/ui/proc-macro/weird-braces.stdout similarity index 100% rename from src/test/ui/proc-macro/weird-braces.stdout rename to tests/ui/proc-macro/weird-braces.stdout diff --git a/src/test/ui/proc-macro/weird-hygiene.rs b/tests/ui/proc-macro/weird-hygiene.rs similarity index 100% rename from src/test/ui/proc-macro/weird-hygiene.rs rename to tests/ui/proc-macro/weird-hygiene.rs diff --git a/src/test/ui/proc-macro/weird-hygiene.stderr b/tests/ui/proc-macro/weird-hygiene.stderr similarity index 100% rename from src/test/ui/proc-macro/weird-hygiene.stderr rename to tests/ui/proc-macro/weird-hygiene.stderr diff --git a/src/test/ui/process-termination/process-termination-blocking-io.rs b/tests/ui/process-termination/process-termination-blocking-io.rs similarity index 100% rename from src/test/ui/process-termination/process-termination-blocking-io.rs rename to tests/ui/process-termination/process-termination-blocking-io.rs diff --git a/src/test/ui/process-termination/process-termination-simple.rs b/tests/ui/process-termination/process-termination-simple.rs similarity index 100% rename from src/test/ui/process-termination/process-termination-simple.rs rename to tests/ui/process-termination/process-termination-simple.rs diff --git a/src/test/ui/process/core-run-destroy.rs b/tests/ui/process/core-run-destroy.rs similarity index 100% rename from src/test/ui/process/core-run-destroy.rs rename to tests/ui/process/core-run-destroy.rs diff --git a/src/test/ui/process/fds-are-cloexec.rs b/tests/ui/process/fds-are-cloexec.rs similarity index 100% rename from src/test/ui/process/fds-are-cloexec.rs rename to tests/ui/process/fds-are-cloexec.rs diff --git a/src/test/ui/process/issue-13304.rs b/tests/ui/process/issue-13304.rs similarity index 100% rename from src/test/ui/process/issue-13304.rs rename to tests/ui/process/issue-13304.rs diff --git a/src/test/ui/process/issue-14456.rs b/tests/ui/process/issue-14456.rs similarity index 100% rename from src/test/ui/process/issue-14456.rs rename to tests/ui/process/issue-14456.rs diff --git a/src/test/ui/process/issue-14940.rs b/tests/ui/process/issue-14940.rs similarity index 100% rename from src/test/ui/process/issue-14940.rs rename to tests/ui/process/issue-14940.rs diff --git a/src/test/ui/process/issue-16272.rs b/tests/ui/process/issue-16272.rs similarity index 100% rename from src/test/ui/process/issue-16272.rs rename to tests/ui/process/issue-16272.rs diff --git a/src/test/ui/process/issue-20091.rs b/tests/ui/process/issue-20091.rs similarity index 100% rename from src/test/ui/process/issue-20091.rs rename to tests/ui/process/issue-20091.rs diff --git a/src/test/ui/process/multi-panic.rs b/tests/ui/process/multi-panic.rs similarity index 100% rename from src/test/ui/process/multi-panic.rs rename to tests/ui/process/multi-panic.rs diff --git a/src/test/ui/process/no-stdio.rs b/tests/ui/process/no-stdio.rs similarity index 100% rename from src/test/ui/process/no-stdio.rs rename to tests/ui/process/no-stdio.rs diff --git a/src/test/ui/process/nofile-limit.rs b/tests/ui/process/nofile-limit.rs similarity index 100% rename from src/test/ui/process/nofile-limit.rs rename to tests/ui/process/nofile-limit.rs diff --git a/src/test/ui/process/process-envs.rs b/tests/ui/process/process-envs.rs similarity index 100% rename from src/test/ui/process/process-envs.rs rename to tests/ui/process/process-envs.rs diff --git a/src/test/ui/process/process-exit.rs b/tests/ui/process/process-exit.rs similarity index 100% rename from src/test/ui/process/process-exit.rs rename to tests/ui/process/process-exit.rs diff --git a/src/test/ui/process/process-panic-after-fork.rs b/tests/ui/process/process-panic-after-fork.rs similarity index 100% rename from src/test/ui/process/process-panic-after-fork.rs rename to tests/ui/process/process-panic-after-fork.rs diff --git a/src/test/ui/process/process-remove-from-env.rs b/tests/ui/process/process-remove-from-env.rs similarity index 100% rename from src/test/ui/process/process-remove-from-env.rs rename to tests/ui/process/process-remove-from-env.rs diff --git a/src/test/ui/process/process-sigpipe.rs b/tests/ui/process/process-sigpipe.rs similarity index 100% rename from src/test/ui/process/process-sigpipe.rs rename to tests/ui/process/process-sigpipe.rs diff --git a/src/test/ui/process/process-spawn-nonexistent.rs b/tests/ui/process/process-spawn-nonexistent.rs similarity index 100% rename from src/test/ui/process/process-spawn-nonexistent.rs rename to tests/ui/process/process-spawn-nonexistent.rs diff --git a/src/test/ui/process/process-spawn-with-unicode-params.rs b/tests/ui/process/process-spawn-with-unicode-params.rs similarity index 100% rename from src/test/ui/process/process-spawn-with-unicode-params.rs rename to tests/ui/process/process-spawn-with-unicode-params.rs diff --git a/src/test/ui/process/process-status-inherits-stdin.rs b/tests/ui/process/process-status-inherits-stdin.rs similarity index 100% rename from src/test/ui/process/process-status-inherits-stdin.rs rename to tests/ui/process/process-status-inherits-stdin.rs diff --git a/src/test/ui/process/signal-exit-status.rs b/tests/ui/process/signal-exit-status.rs similarity index 100% rename from src/test/ui/process/signal-exit-status.rs rename to tests/ui/process/signal-exit-status.rs diff --git a/src/test/ui/process/sigpipe-should-be-ignored.rs b/tests/ui/process/sigpipe-should-be-ignored.rs similarity index 100% rename from src/test/ui/process/sigpipe-should-be-ignored.rs rename to tests/ui/process/sigpipe-should-be-ignored.rs diff --git a/src/test/ui/process/tls-exit-status.rs b/tests/ui/process/tls-exit-status.rs similarity index 100% rename from src/test/ui/process/tls-exit-status.rs rename to tests/ui/process/tls-exit-status.rs diff --git a/src/test/ui/process/try-wait.rs b/tests/ui/process/try-wait.rs similarity index 100% rename from src/test/ui/process/try-wait.rs rename to tests/ui/process/try-wait.rs diff --git a/src/test/ui/project-cache-issue-31849.rs b/tests/ui/project-cache-issue-31849.rs similarity index 100% rename from src/test/ui/project-cache-issue-31849.rs rename to tests/ui/project-cache-issue-31849.rs diff --git a/src/test/ui/ptr-coercion-rpass.rs b/tests/ui/ptr-coercion-rpass.rs similarity index 100% rename from src/test/ui/ptr-coercion-rpass.rs rename to tests/ui/ptr-coercion-rpass.rs diff --git a/src/test/ui/ptr-coercion.rs b/tests/ui/ptr-coercion.rs similarity index 100% rename from src/test/ui/ptr-coercion.rs rename to tests/ui/ptr-coercion.rs diff --git a/src/test/ui/ptr-coercion.stderr b/tests/ui/ptr-coercion.stderr similarity index 100% rename from src/test/ui/ptr-coercion.stderr rename to tests/ui/ptr-coercion.stderr diff --git a/src/test/ui/ptr_ops/issue-80309-safe.rs b/tests/ui/ptr_ops/issue-80309-safe.rs similarity index 100% rename from src/test/ui/ptr_ops/issue-80309-safe.rs rename to tests/ui/ptr_ops/issue-80309-safe.rs diff --git a/src/test/ui/ptr_ops/issue-80309.rs b/tests/ui/ptr_ops/issue-80309.rs similarity index 100% rename from src/test/ui/ptr_ops/issue-80309.rs rename to tests/ui/ptr_ops/issue-80309.rs diff --git a/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.rs b/tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs similarity index 100% rename from src/test/ui/pub/issue-33174-restricted-type-in-public-interface.rs rename to tests/ui/pub/issue-33174-restricted-type-in-public-interface.rs diff --git a/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr b/tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr similarity index 100% rename from src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr rename to tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr diff --git a/src/test/ui/pub/pub-ident-fn-2.fixed b/tests/ui/pub/pub-ident-fn-2.fixed similarity index 100% rename from src/test/ui/pub/pub-ident-fn-2.fixed rename to tests/ui/pub/pub-ident-fn-2.fixed diff --git a/src/test/ui/pub/pub-ident-fn-2.rs b/tests/ui/pub/pub-ident-fn-2.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn-2.rs rename to tests/ui/pub/pub-ident-fn-2.rs diff --git a/src/test/ui/pub/pub-ident-fn-2.stderr b/tests/ui/pub/pub-ident-fn-2.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn-2.stderr rename to tests/ui/pub/pub-ident-fn-2.stderr diff --git a/src/test/ui/pub/pub-ident-fn-3.rs b/tests/ui/pub/pub-ident-fn-3.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn-3.rs rename to tests/ui/pub/pub-ident-fn-3.rs diff --git a/src/test/ui/pub/pub-ident-fn-3.stderr b/tests/ui/pub/pub-ident-fn-3.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn-3.stderr rename to tests/ui/pub/pub-ident-fn-3.stderr diff --git a/src/test/ui/pub/pub-ident-fn-or-struct-2.rs b/tests/ui/pub/pub-ident-fn-or-struct-2.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn-or-struct-2.rs rename to tests/ui/pub/pub-ident-fn-or-struct-2.rs diff --git a/src/test/ui/pub/pub-ident-fn-or-struct-2.stderr b/tests/ui/pub/pub-ident-fn-or-struct-2.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn-or-struct-2.stderr rename to tests/ui/pub/pub-ident-fn-or-struct-2.stderr diff --git a/src/test/ui/pub/pub-ident-fn-or-struct.rs b/tests/ui/pub/pub-ident-fn-or-struct.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn-or-struct.rs rename to tests/ui/pub/pub-ident-fn-or-struct.rs diff --git a/src/test/ui/pub/pub-ident-fn-or-struct.stderr b/tests/ui/pub/pub-ident-fn-or-struct.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn-or-struct.stderr rename to tests/ui/pub/pub-ident-fn-or-struct.stderr diff --git a/src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs b/tests/ui/pub/pub-ident-fn-with-lifetime-2.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn-with-lifetime-2.rs rename to tests/ui/pub/pub-ident-fn-with-lifetime-2.rs diff --git a/src/test/ui/pub/pub-ident-fn-with-lifetime-2.stderr b/tests/ui/pub/pub-ident-fn-with-lifetime-2.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn-with-lifetime-2.stderr rename to tests/ui/pub/pub-ident-fn-with-lifetime-2.stderr diff --git a/src/test/ui/pub/pub-ident-fn-with-lifetime.fixed b/tests/ui/pub/pub-ident-fn-with-lifetime.fixed similarity index 100% rename from src/test/ui/pub/pub-ident-fn-with-lifetime.fixed rename to tests/ui/pub/pub-ident-fn-with-lifetime.fixed diff --git a/src/test/ui/pub/pub-ident-fn-with-lifetime.rs b/tests/ui/pub/pub-ident-fn-with-lifetime.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn-with-lifetime.rs rename to tests/ui/pub/pub-ident-fn-with-lifetime.rs diff --git a/src/test/ui/pub/pub-ident-fn-with-lifetime.stderr b/tests/ui/pub/pub-ident-fn-with-lifetime.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn-with-lifetime.stderr rename to tests/ui/pub/pub-ident-fn-with-lifetime.stderr diff --git a/src/test/ui/pub/pub-ident-fn.fixed b/tests/ui/pub/pub-ident-fn.fixed similarity index 100% rename from src/test/ui/pub/pub-ident-fn.fixed rename to tests/ui/pub/pub-ident-fn.fixed diff --git a/src/test/ui/pub/pub-ident-fn.rs b/tests/ui/pub/pub-ident-fn.rs similarity index 100% rename from src/test/ui/pub/pub-ident-fn.rs rename to tests/ui/pub/pub-ident-fn.rs diff --git a/src/test/ui/pub/pub-ident-fn.stderr b/tests/ui/pub/pub-ident-fn.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-fn.stderr rename to tests/ui/pub/pub-ident-fn.stderr diff --git a/src/test/ui/pub/pub-ident-struct-with-lifetime.rs b/tests/ui/pub/pub-ident-struct-with-lifetime.rs similarity index 100% rename from src/test/ui/pub/pub-ident-struct-with-lifetime.rs rename to tests/ui/pub/pub-ident-struct-with-lifetime.rs diff --git a/src/test/ui/pub/pub-ident-struct-with-lifetime.stderr b/tests/ui/pub/pub-ident-struct-with-lifetime.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-struct-with-lifetime.stderr rename to tests/ui/pub/pub-ident-struct-with-lifetime.stderr diff --git a/src/test/ui/pub/pub-ident-struct.fixed b/tests/ui/pub/pub-ident-struct.fixed similarity index 100% rename from src/test/ui/pub/pub-ident-struct.fixed rename to tests/ui/pub/pub-ident-struct.fixed diff --git a/src/test/ui/pub/pub-ident-struct.rs b/tests/ui/pub/pub-ident-struct.rs similarity index 100% rename from src/test/ui/pub/pub-ident-struct.rs rename to tests/ui/pub/pub-ident-struct.rs diff --git a/src/test/ui/pub/pub-ident-struct.stderr b/tests/ui/pub/pub-ident-struct.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-struct.stderr rename to tests/ui/pub/pub-ident-struct.stderr diff --git a/src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs b/tests/ui/pub/pub-ident-with-lifetime-incomplete.rs similarity index 100% rename from src/test/ui/pub/pub-ident-with-lifetime-incomplete.rs rename to tests/ui/pub/pub-ident-with-lifetime-incomplete.rs diff --git a/src/test/ui/pub/pub-ident-with-lifetime-incomplete.stderr b/tests/ui/pub/pub-ident-with-lifetime-incomplete.stderr similarity index 100% rename from src/test/ui/pub/pub-ident-with-lifetime-incomplete.stderr rename to tests/ui/pub/pub-ident-with-lifetime-incomplete.stderr diff --git a/src/test/ui/pub/pub-reexport-priv-extern-crate.rs b/tests/ui/pub/pub-reexport-priv-extern-crate.rs similarity index 100% rename from src/test/ui/pub/pub-reexport-priv-extern-crate.rs rename to tests/ui/pub/pub-reexport-priv-extern-crate.rs diff --git a/src/test/ui/pub/pub-reexport-priv-extern-crate.stderr b/tests/ui/pub/pub-reexport-priv-extern-crate.stderr similarity index 100% rename from src/test/ui/pub/pub-reexport-priv-extern-crate.stderr rename to tests/ui/pub/pub-reexport-priv-extern-crate.stderr diff --git a/src/test/ui/pub/pub-restricted-error-fn.rs b/tests/ui/pub/pub-restricted-error-fn.rs similarity index 100% rename from src/test/ui/pub/pub-restricted-error-fn.rs rename to tests/ui/pub/pub-restricted-error-fn.rs diff --git a/src/test/ui/pub/pub-restricted-error-fn.stderr b/tests/ui/pub/pub-restricted-error-fn.stderr similarity index 100% rename from src/test/ui/pub/pub-restricted-error-fn.stderr rename to tests/ui/pub/pub-restricted-error-fn.stderr diff --git a/src/test/ui/pub/pub-restricted-error.rs b/tests/ui/pub/pub-restricted-error.rs similarity index 100% rename from src/test/ui/pub/pub-restricted-error.rs rename to tests/ui/pub/pub-restricted-error.rs diff --git a/src/test/ui/pub/pub-restricted-error.stderr b/tests/ui/pub/pub-restricted-error.stderr similarity index 100% rename from src/test/ui/pub/pub-restricted-error.stderr rename to tests/ui/pub/pub-restricted-error.stderr diff --git a/src/test/ui/pub/pub-restricted-non-path.rs b/tests/ui/pub/pub-restricted-non-path.rs similarity index 100% rename from src/test/ui/pub/pub-restricted-non-path.rs rename to tests/ui/pub/pub-restricted-non-path.rs diff --git a/src/test/ui/pub/pub-restricted-non-path.stderr b/tests/ui/pub/pub-restricted-non-path.stderr similarity index 100% rename from src/test/ui/pub/pub-restricted-non-path.stderr rename to tests/ui/pub/pub-restricted-non-path.stderr diff --git a/src/test/ui/pub/pub-restricted.rs b/tests/ui/pub/pub-restricted.rs similarity index 100% rename from src/test/ui/pub/pub-restricted.rs rename to tests/ui/pub/pub-restricted.rs diff --git a/src/test/ui/pub/pub-restricted.stderr b/tests/ui/pub/pub-restricted.stderr similarity index 100% rename from src/test/ui/pub/pub-restricted.stderr rename to tests/ui/pub/pub-restricted.stderr diff --git a/src/test/ui/qualified/qualified-path-params-2.rs b/tests/ui/qualified/qualified-path-params-2.rs similarity index 100% rename from src/test/ui/qualified/qualified-path-params-2.rs rename to tests/ui/qualified/qualified-path-params-2.rs diff --git a/src/test/ui/qualified/qualified-path-params-2.stderr b/tests/ui/qualified/qualified-path-params-2.stderr similarity index 100% rename from src/test/ui/qualified/qualified-path-params-2.stderr rename to tests/ui/qualified/qualified-path-params-2.stderr diff --git a/src/test/ui/qualified/qualified-path-params.rs b/tests/ui/qualified/qualified-path-params.rs similarity index 100% rename from src/test/ui/qualified/qualified-path-params.rs rename to tests/ui/qualified/qualified-path-params.rs diff --git a/src/test/ui/qualified/qualified-path-params.stderr b/tests/ui/qualified/qualified-path-params.stderr similarity index 100% rename from src/test/ui/qualified/qualified-path-params.stderr rename to tests/ui/qualified/qualified-path-params.stderr diff --git a/src/test/ui/query-system/fn-sig-cycle-arity.rs b/tests/ui/query-system/fn-sig-cycle-arity.rs similarity index 100% rename from src/test/ui/query-system/fn-sig-cycle-arity.rs rename to tests/ui/query-system/fn-sig-cycle-arity.rs diff --git a/src/test/ui/query-system/fn-sig-cycle-arity.stderr b/tests/ui/query-system/fn-sig-cycle-arity.stderr similarity index 100% rename from src/test/ui/query-system/fn-sig-cycle-arity.stderr rename to tests/ui/query-system/fn-sig-cycle-arity.stderr diff --git a/src/test/ui/query-system/issue-83479.rs b/tests/ui/query-system/issue-83479.rs similarity index 100% rename from src/test/ui/query-system/issue-83479.rs rename to tests/ui/query-system/issue-83479.rs diff --git a/src/test/ui/query-system/issue-83479.stderr b/tests/ui/query-system/issue-83479.stderr similarity index 100% rename from src/test/ui/query-system/issue-83479.stderr rename to tests/ui/query-system/issue-83479.stderr diff --git a/src/test/ui/query-system/query_depth.rs b/tests/ui/query-system/query_depth.rs similarity index 100% rename from src/test/ui/query-system/query_depth.rs rename to tests/ui/query-system/query_depth.rs diff --git a/src/test/ui/query-system/query_depth.stderr b/tests/ui/query-system/query_depth.stderr similarity index 100% rename from src/test/ui/query-system/query_depth.stderr rename to tests/ui/query-system/query_depth.stderr diff --git a/src/test/ui/query-visibility.rs b/tests/ui/query-visibility.rs similarity index 100% rename from src/test/ui/query-visibility.rs rename to tests/ui/query-visibility.rs diff --git a/src/test/ui/range/exclusive-range-patterns-2021.rs b/tests/ui/range/exclusive-range-patterns-2021.rs similarity index 100% rename from src/test/ui/range/exclusive-range-patterns-2021.rs rename to tests/ui/range/exclusive-range-patterns-2021.rs diff --git a/src/test/ui/range/exclusive-range-patterns-2021.stderr b/tests/ui/range/exclusive-range-patterns-2021.stderr similarity index 100% rename from src/test/ui/range/exclusive-range-patterns-2021.stderr rename to tests/ui/range/exclusive-range-patterns-2021.stderr diff --git a/src/test/ui/range/issue-54505-no-literals.fixed b/tests/ui/range/issue-54505-no-literals.fixed similarity index 100% rename from src/test/ui/range/issue-54505-no-literals.fixed rename to tests/ui/range/issue-54505-no-literals.fixed diff --git a/src/test/ui/range/issue-54505-no-literals.rs b/tests/ui/range/issue-54505-no-literals.rs similarity index 100% rename from src/test/ui/range/issue-54505-no-literals.rs rename to tests/ui/range/issue-54505-no-literals.rs diff --git a/src/test/ui/range/issue-54505-no-literals.stderr b/tests/ui/range/issue-54505-no-literals.stderr similarity index 100% rename from src/test/ui/range/issue-54505-no-literals.stderr rename to tests/ui/range/issue-54505-no-literals.stderr diff --git a/src/test/ui/range/issue-54505-no-std.rs b/tests/ui/range/issue-54505-no-std.rs similarity index 100% rename from src/test/ui/range/issue-54505-no-std.rs rename to tests/ui/range/issue-54505-no-std.rs diff --git a/src/test/ui/range/issue-54505-no-std.stderr b/tests/ui/range/issue-54505-no-std.stderr similarity index 100% rename from src/test/ui/range/issue-54505-no-std.stderr rename to tests/ui/range/issue-54505-no-std.stderr diff --git a/src/test/ui/range/issue-54505.fixed b/tests/ui/range/issue-54505.fixed similarity index 100% rename from src/test/ui/range/issue-54505.fixed rename to tests/ui/range/issue-54505.fixed diff --git a/src/test/ui/range/issue-54505.rs b/tests/ui/range/issue-54505.rs similarity index 100% rename from src/test/ui/range/issue-54505.rs rename to tests/ui/range/issue-54505.rs diff --git a/src/test/ui/range/issue-54505.stderr b/tests/ui/range/issue-54505.stderr similarity index 100% rename from src/test/ui/range/issue-54505.stderr rename to tests/ui/range/issue-54505.stderr diff --git a/src/test/ui/range/issue-73553-misinterp-range-literal.rs b/tests/ui/range/issue-73553-misinterp-range-literal.rs similarity index 100% rename from src/test/ui/range/issue-73553-misinterp-range-literal.rs rename to tests/ui/range/issue-73553-misinterp-range-literal.rs diff --git a/src/test/ui/range/issue-73553-misinterp-range-literal.stderr b/tests/ui/range/issue-73553-misinterp-range-literal.stderr similarity index 100% rename from src/test/ui/range/issue-73553-misinterp-range-literal.stderr rename to tests/ui/range/issue-73553-misinterp-range-literal.stderr diff --git a/src/test/ui/range/range-1.rs b/tests/ui/range/range-1.rs similarity index 100% rename from src/test/ui/range/range-1.rs rename to tests/ui/range/range-1.rs diff --git a/src/test/ui/range/range-1.stderr b/tests/ui/range/range-1.stderr similarity index 100% rename from src/test/ui/range/range-1.stderr rename to tests/ui/range/range-1.stderr diff --git a/src/test/ui/range/range-inclusive-pattern-precedence.fixed b/tests/ui/range/range-inclusive-pattern-precedence.fixed similarity index 100% rename from src/test/ui/range/range-inclusive-pattern-precedence.fixed rename to tests/ui/range/range-inclusive-pattern-precedence.fixed diff --git a/src/test/ui/range/range-inclusive-pattern-precedence.rs b/tests/ui/range/range-inclusive-pattern-precedence.rs similarity index 100% rename from src/test/ui/range/range-inclusive-pattern-precedence.rs rename to tests/ui/range/range-inclusive-pattern-precedence.rs diff --git a/src/test/ui/range/range-inclusive-pattern-precedence.stderr b/tests/ui/range/range-inclusive-pattern-precedence.stderr similarity index 100% rename from src/test/ui/range/range-inclusive-pattern-precedence.stderr rename to tests/ui/range/range-inclusive-pattern-precedence.stderr diff --git a/src/test/ui/range/range-inclusive-pattern-precedence2.rs b/tests/ui/range/range-inclusive-pattern-precedence2.rs similarity index 100% rename from src/test/ui/range/range-inclusive-pattern-precedence2.rs rename to tests/ui/range/range-inclusive-pattern-precedence2.rs diff --git a/src/test/ui/range/range-inclusive-pattern-precedence2.stderr b/tests/ui/range/range-inclusive-pattern-precedence2.stderr similarity index 100% rename from src/test/ui/range/range-inclusive-pattern-precedence2.stderr rename to tests/ui/range/range-inclusive-pattern-precedence2.stderr diff --git a/src/test/ui/range/range_traits-1.rs b/tests/ui/range/range_traits-1.rs similarity index 100% rename from src/test/ui/range/range_traits-1.rs rename to tests/ui/range/range_traits-1.rs diff --git a/src/test/ui/range/range_traits-1.stderr b/tests/ui/range/range_traits-1.stderr similarity index 100% rename from src/test/ui/range/range_traits-1.stderr rename to tests/ui/range/range_traits-1.stderr diff --git a/src/test/ui/range/range_traits-2.rs b/tests/ui/range/range_traits-2.rs similarity index 100% rename from src/test/ui/range/range_traits-2.rs rename to tests/ui/range/range_traits-2.rs diff --git a/src/test/ui/range/range_traits-2.stderr b/tests/ui/range/range_traits-2.stderr similarity index 100% rename from src/test/ui/range/range_traits-2.stderr rename to tests/ui/range/range_traits-2.stderr diff --git a/src/test/ui/range/range_traits-3.rs b/tests/ui/range/range_traits-3.rs similarity index 100% rename from src/test/ui/range/range_traits-3.rs rename to tests/ui/range/range_traits-3.rs diff --git a/src/test/ui/range/range_traits-3.stderr b/tests/ui/range/range_traits-3.stderr similarity index 100% rename from src/test/ui/range/range_traits-3.stderr rename to tests/ui/range/range_traits-3.stderr diff --git a/src/test/ui/range/range_traits-4.rs b/tests/ui/range/range_traits-4.rs similarity index 100% rename from src/test/ui/range/range_traits-4.rs rename to tests/ui/range/range_traits-4.rs diff --git a/src/test/ui/range/range_traits-5.rs b/tests/ui/range/range_traits-5.rs similarity index 100% rename from src/test/ui/range/range_traits-5.rs rename to tests/ui/range/range_traits-5.rs diff --git a/src/test/ui/range/range_traits-6.rs b/tests/ui/range/range_traits-6.rs similarity index 100% rename from src/test/ui/range/range_traits-6.rs rename to tests/ui/range/range_traits-6.rs diff --git a/src/test/ui/range/range_traits-6.stderr b/tests/ui/range/range_traits-6.stderr similarity index 100% rename from src/test/ui/range/range_traits-6.stderr rename to tests/ui/range/range_traits-6.stderr diff --git a/src/test/ui/range/range_traits-7.rs b/tests/ui/range/range_traits-7.rs similarity index 100% rename from src/test/ui/range/range_traits-7.rs rename to tests/ui/range/range_traits-7.rs diff --git a/src/test/ui/range_inclusive.rs b/tests/ui/range_inclusive.rs similarity index 100% rename from src/test/ui/range_inclusive.rs rename to tests/ui/range_inclusive.rs diff --git a/src/test/ui/raw-ref-op/feature-raw-ref-op.rs b/tests/ui/raw-ref-op/feature-raw-ref-op.rs similarity index 100% rename from src/test/ui/raw-ref-op/feature-raw-ref-op.rs rename to tests/ui/raw-ref-op/feature-raw-ref-op.rs diff --git a/src/test/ui/raw-ref-op/feature-raw-ref-op.stderr b/tests/ui/raw-ref-op/feature-raw-ref-op.stderr similarity index 100% rename from src/test/ui/raw-ref-op/feature-raw-ref-op.stderr rename to tests/ui/raw-ref-op/feature-raw-ref-op.stderr diff --git a/src/test/ui/raw-ref-op/raw-ref-op.rs b/tests/ui/raw-ref-op/raw-ref-op.rs similarity index 100% rename from src/test/ui/raw-ref-op/raw-ref-op.rs rename to tests/ui/raw-ref-op/raw-ref-op.rs diff --git a/src/test/ui/raw-ref-op/raw-ref-temp-deref.rs b/tests/ui/raw-ref-op/raw-ref-temp-deref.rs similarity index 100% rename from src/test/ui/raw-ref-op/raw-ref-temp-deref.rs rename to tests/ui/raw-ref-op/raw-ref-temp-deref.rs diff --git a/src/test/ui/raw-ref-op/raw-ref-temp.rs b/tests/ui/raw-ref-op/raw-ref-temp.rs similarity index 100% rename from src/test/ui/raw-ref-op/raw-ref-temp.rs rename to tests/ui/raw-ref-op/raw-ref-temp.rs diff --git a/src/test/ui/raw-ref-op/raw-ref-temp.stderr b/tests/ui/raw-ref-op/raw-ref-temp.stderr similarity index 100% rename from src/test/ui/raw-ref-op/raw-ref-temp.stderr rename to tests/ui/raw-ref-op/raw-ref-temp.stderr diff --git a/src/test/ui/raw-ref-op/unusual_locations.rs b/tests/ui/raw-ref-op/unusual_locations.rs similarity index 100% rename from src/test/ui/raw-ref-op/unusual_locations.rs rename to tests/ui/raw-ref-op/unusual_locations.rs diff --git a/src/test/ui/raw-str.rs b/tests/ui/raw-str.rs similarity index 100% rename from src/test/ui/raw-str.rs rename to tests/ui/raw-str.rs diff --git a/src/test/ui/reachable-unnameable-type-alias.rs b/tests/ui/reachable-unnameable-type-alias.rs similarity index 100% rename from src/test/ui/reachable-unnameable-type-alias.rs rename to tests/ui/reachable-unnameable-type-alias.rs diff --git a/src/test/ui/reachable/README.md b/tests/ui/reachable/README.md similarity index 100% rename from src/test/ui/reachable/README.md rename to tests/ui/reachable/README.md diff --git a/src/test/ui/reachable/auxiliary/issue-11225-1.rs b/tests/ui/reachable/auxiliary/issue-11225-1.rs similarity index 100% rename from src/test/ui/reachable/auxiliary/issue-11225-1.rs rename to tests/ui/reachable/auxiliary/issue-11225-1.rs diff --git a/src/test/ui/reachable/auxiliary/issue-11225-2.rs b/tests/ui/reachable/auxiliary/issue-11225-2.rs similarity index 100% rename from src/test/ui/reachable/auxiliary/issue-11225-2.rs rename to tests/ui/reachable/auxiliary/issue-11225-2.rs diff --git a/src/test/ui/reachable/auxiliary/issue-11225-3.rs b/tests/ui/reachable/auxiliary/issue-11225-3.rs similarity index 100% rename from src/test/ui/reachable/auxiliary/issue-11225-3.rs rename to tests/ui/reachable/auxiliary/issue-11225-3.rs diff --git a/src/test/ui/reachable/auxiliary/unreachable_variant.rs b/tests/ui/reachable/auxiliary/unreachable_variant.rs similarity index 100% rename from src/test/ui/reachable/auxiliary/unreachable_variant.rs rename to tests/ui/reachable/auxiliary/unreachable_variant.rs diff --git a/src/test/ui/reachable/expr_add.rs b/tests/ui/reachable/expr_add.rs similarity index 100% rename from src/test/ui/reachable/expr_add.rs rename to tests/ui/reachable/expr_add.rs diff --git a/src/test/ui/reachable/expr_add.stderr b/tests/ui/reachable/expr_add.stderr similarity index 100% rename from src/test/ui/reachable/expr_add.stderr rename to tests/ui/reachable/expr_add.stderr diff --git a/src/test/ui/reachable/expr_again.rs b/tests/ui/reachable/expr_again.rs similarity index 100% rename from src/test/ui/reachable/expr_again.rs rename to tests/ui/reachable/expr_again.rs diff --git a/src/test/ui/reachable/expr_again.stderr b/tests/ui/reachable/expr_again.stderr similarity index 100% rename from src/test/ui/reachable/expr_again.stderr rename to tests/ui/reachable/expr_again.stderr diff --git a/src/test/ui/reachable/expr_andand.rs b/tests/ui/reachable/expr_andand.rs similarity index 100% rename from src/test/ui/reachable/expr_andand.rs rename to tests/ui/reachable/expr_andand.rs diff --git a/src/test/ui/reachable/expr_array.rs b/tests/ui/reachable/expr_array.rs similarity index 100% rename from src/test/ui/reachable/expr_array.rs rename to tests/ui/reachable/expr_array.rs diff --git a/src/test/ui/reachable/expr_array.stderr b/tests/ui/reachable/expr_array.stderr similarity index 100% rename from src/test/ui/reachable/expr_array.stderr rename to tests/ui/reachable/expr_array.stderr diff --git a/src/test/ui/reachable/expr_assign.rs b/tests/ui/reachable/expr_assign.rs similarity index 100% rename from src/test/ui/reachable/expr_assign.rs rename to tests/ui/reachable/expr_assign.rs diff --git a/src/test/ui/reachable/expr_assign.stderr b/tests/ui/reachable/expr_assign.stderr similarity index 100% rename from src/test/ui/reachable/expr_assign.stderr rename to tests/ui/reachable/expr_assign.stderr diff --git a/src/test/ui/reachable/expr_block.rs b/tests/ui/reachable/expr_block.rs similarity index 100% rename from src/test/ui/reachable/expr_block.rs rename to tests/ui/reachable/expr_block.rs diff --git a/src/test/ui/reachable/expr_block.stderr b/tests/ui/reachable/expr_block.stderr similarity index 100% rename from src/test/ui/reachable/expr_block.stderr rename to tests/ui/reachable/expr_block.stderr diff --git a/src/test/ui/reachable/expr_box.rs b/tests/ui/reachable/expr_box.rs similarity index 100% rename from src/test/ui/reachable/expr_box.rs rename to tests/ui/reachable/expr_box.rs diff --git a/src/test/ui/reachable/expr_box.stderr b/tests/ui/reachable/expr_box.stderr similarity index 100% rename from src/test/ui/reachable/expr_box.stderr rename to tests/ui/reachable/expr_box.stderr diff --git a/src/test/ui/reachable/expr_call.rs b/tests/ui/reachable/expr_call.rs similarity index 100% rename from src/test/ui/reachable/expr_call.rs rename to tests/ui/reachable/expr_call.rs diff --git a/src/test/ui/reachable/expr_call.stderr b/tests/ui/reachable/expr_call.stderr similarity index 100% rename from src/test/ui/reachable/expr_call.stderr rename to tests/ui/reachable/expr_call.stderr diff --git a/src/test/ui/reachable/expr_cast.rs b/tests/ui/reachable/expr_cast.rs similarity index 100% rename from src/test/ui/reachable/expr_cast.rs rename to tests/ui/reachable/expr_cast.rs diff --git a/src/test/ui/reachable/expr_cast.stderr b/tests/ui/reachable/expr_cast.stderr similarity index 100% rename from src/test/ui/reachable/expr_cast.stderr rename to tests/ui/reachable/expr_cast.stderr diff --git a/src/test/ui/reachable/expr_if.rs b/tests/ui/reachable/expr_if.rs similarity index 100% rename from src/test/ui/reachable/expr_if.rs rename to tests/ui/reachable/expr_if.rs diff --git a/src/test/ui/reachable/expr_if.stderr b/tests/ui/reachable/expr_if.stderr similarity index 100% rename from src/test/ui/reachable/expr_if.stderr rename to tests/ui/reachable/expr_if.stderr diff --git a/src/test/ui/reachable/expr_loop.rs b/tests/ui/reachable/expr_loop.rs similarity index 100% rename from src/test/ui/reachable/expr_loop.rs rename to tests/ui/reachable/expr_loop.rs diff --git a/src/test/ui/reachable/expr_loop.stderr b/tests/ui/reachable/expr_loop.stderr similarity index 100% rename from src/test/ui/reachable/expr_loop.stderr rename to tests/ui/reachable/expr_loop.stderr diff --git a/src/test/ui/reachable/expr_match.rs b/tests/ui/reachable/expr_match.rs similarity index 100% rename from src/test/ui/reachable/expr_match.rs rename to tests/ui/reachable/expr_match.rs diff --git a/src/test/ui/reachable/expr_match.stderr b/tests/ui/reachable/expr_match.stderr similarity index 100% rename from src/test/ui/reachable/expr_match.stderr rename to tests/ui/reachable/expr_match.stderr diff --git a/src/test/ui/reachable/expr_method.rs b/tests/ui/reachable/expr_method.rs similarity index 100% rename from src/test/ui/reachable/expr_method.rs rename to tests/ui/reachable/expr_method.rs diff --git a/src/test/ui/reachable/expr_method.stderr b/tests/ui/reachable/expr_method.stderr similarity index 100% rename from src/test/ui/reachable/expr_method.stderr rename to tests/ui/reachable/expr_method.stderr diff --git a/src/test/ui/reachable/expr_oror.rs b/tests/ui/reachable/expr_oror.rs similarity index 100% rename from src/test/ui/reachable/expr_oror.rs rename to tests/ui/reachable/expr_oror.rs diff --git a/src/test/ui/reachable/expr_repeat.rs b/tests/ui/reachable/expr_repeat.rs similarity index 100% rename from src/test/ui/reachable/expr_repeat.rs rename to tests/ui/reachable/expr_repeat.rs diff --git a/src/test/ui/reachable/expr_repeat.stderr b/tests/ui/reachable/expr_repeat.stderr similarity index 100% rename from src/test/ui/reachable/expr_repeat.stderr rename to tests/ui/reachable/expr_repeat.stderr diff --git a/src/test/ui/reachable/expr_return.rs b/tests/ui/reachable/expr_return.rs similarity index 100% rename from src/test/ui/reachable/expr_return.rs rename to tests/ui/reachable/expr_return.rs diff --git a/src/test/ui/reachable/expr_return.stderr b/tests/ui/reachable/expr_return.stderr similarity index 100% rename from src/test/ui/reachable/expr_return.stderr rename to tests/ui/reachable/expr_return.stderr diff --git a/src/test/ui/reachable/expr_return_in_macro.rs b/tests/ui/reachable/expr_return_in_macro.rs similarity index 100% rename from src/test/ui/reachable/expr_return_in_macro.rs rename to tests/ui/reachable/expr_return_in_macro.rs diff --git a/src/test/ui/reachable/expr_return_in_macro.stderr b/tests/ui/reachable/expr_return_in_macro.stderr similarity index 100% rename from src/test/ui/reachable/expr_return_in_macro.stderr rename to tests/ui/reachable/expr_return_in_macro.stderr diff --git a/src/test/ui/reachable/expr_struct.rs b/tests/ui/reachable/expr_struct.rs similarity index 100% rename from src/test/ui/reachable/expr_struct.rs rename to tests/ui/reachable/expr_struct.rs diff --git a/src/test/ui/reachable/expr_struct.stderr b/tests/ui/reachable/expr_struct.stderr similarity index 100% rename from src/test/ui/reachable/expr_struct.stderr rename to tests/ui/reachable/expr_struct.stderr diff --git a/src/test/ui/reachable/expr_tup.rs b/tests/ui/reachable/expr_tup.rs similarity index 100% rename from src/test/ui/reachable/expr_tup.rs rename to tests/ui/reachable/expr_tup.rs diff --git a/src/test/ui/reachable/expr_tup.stderr b/tests/ui/reachable/expr_tup.stderr similarity index 100% rename from src/test/ui/reachable/expr_tup.stderr rename to tests/ui/reachable/expr_tup.stderr diff --git a/src/test/ui/reachable/expr_type.rs b/tests/ui/reachable/expr_type.rs similarity index 100% rename from src/test/ui/reachable/expr_type.rs rename to tests/ui/reachable/expr_type.rs diff --git a/src/test/ui/reachable/expr_type.stderr b/tests/ui/reachable/expr_type.stderr similarity index 100% rename from src/test/ui/reachable/expr_type.stderr rename to tests/ui/reachable/expr_type.stderr diff --git a/src/test/ui/reachable/expr_unary.rs b/tests/ui/reachable/expr_unary.rs similarity index 100% rename from src/test/ui/reachable/expr_unary.rs rename to tests/ui/reachable/expr_unary.rs diff --git a/src/test/ui/reachable/expr_unary.stderr b/tests/ui/reachable/expr_unary.stderr similarity index 100% rename from src/test/ui/reachable/expr_unary.stderr rename to tests/ui/reachable/expr_unary.stderr diff --git a/src/test/ui/reachable/expr_while.rs b/tests/ui/reachable/expr_while.rs similarity index 100% rename from src/test/ui/reachable/expr_while.rs rename to tests/ui/reachable/expr_while.rs diff --git a/src/test/ui/reachable/expr_while.stderr b/tests/ui/reachable/expr_while.stderr similarity index 100% rename from src/test/ui/reachable/expr_while.stderr rename to tests/ui/reachable/expr_while.stderr diff --git a/src/test/ui/reachable/issue-11225-1.rs b/tests/ui/reachable/issue-11225-1.rs similarity index 100% rename from src/test/ui/reachable/issue-11225-1.rs rename to tests/ui/reachable/issue-11225-1.rs diff --git a/src/test/ui/reachable/issue-11225-2.rs b/tests/ui/reachable/issue-11225-2.rs similarity index 100% rename from src/test/ui/reachable/issue-11225-2.rs rename to tests/ui/reachable/issue-11225-2.rs diff --git a/src/test/ui/reachable/issue-11225-3.rs b/tests/ui/reachable/issue-11225-3.rs similarity index 100% rename from src/test/ui/reachable/issue-11225-3.rs rename to tests/ui/reachable/issue-11225-3.rs diff --git a/src/test/ui/reachable/unreachable-arm.rs b/tests/ui/reachable/unreachable-arm.rs similarity index 100% rename from src/test/ui/reachable/unreachable-arm.rs rename to tests/ui/reachable/unreachable-arm.rs diff --git a/src/test/ui/reachable/unreachable-arm.stderr b/tests/ui/reachable/unreachable-arm.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-arm.stderr rename to tests/ui/reachable/unreachable-arm.stderr diff --git a/src/test/ui/reachable/unreachable-code-ret.rs b/tests/ui/reachable/unreachable-code-ret.rs similarity index 100% rename from src/test/ui/reachable/unreachable-code-ret.rs rename to tests/ui/reachable/unreachable-code-ret.rs diff --git a/src/test/ui/reachable/unreachable-code-ret.stderr b/tests/ui/reachable/unreachable-code-ret.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-code-ret.stderr rename to tests/ui/reachable/unreachable-code-ret.stderr diff --git a/src/test/ui/reachable/unreachable-code.rs b/tests/ui/reachable/unreachable-code.rs similarity index 100% rename from src/test/ui/reachable/unreachable-code.rs rename to tests/ui/reachable/unreachable-code.rs diff --git a/src/test/ui/reachable/unreachable-code.stderr b/tests/ui/reachable/unreachable-code.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-code.stderr rename to tests/ui/reachable/unreachable-code.stderr diff --git a/src/test/ui/reachable/unreachable-in-call.rs b/tests/ui/reachable/unreachable-in-call.rs similarity index 100% rename from src/test/ui/reachable/unreachable-in-call.rs rename to tests/ui/reachable/unreachable-in-call.rs diff --git a/src/test/ui/reachable/unreachable-in-call.stderr b/tests/ui/reachable/unreachable-in-call.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-in-call.stderr rename to tests/ui/reachable/unreachable-in-call.stderr diff --git a/src/test/ui/reachable/unreachable-loop-patterns.rs b/tests/ui/reachable/unreachable-loop-patterns.rs similarity index 100% rename from src/test/ui/reachable/unreachable-loop-patterns.rs rename to tests/ui/reachable/unreachable-loop-patterns.rs diff --git a/src/test/ui/reachable/unreachable-loop-patterns.stderr b/tests/ui/reachable/unreachable-loop-patterns.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-loop-patterns.stderr rename to tests/ui/reachable/unreachable-loop-patterns.stderr diff --git a/src/test/ui/reachable/unreachable-try-pattern.rs b/tests/ui/reachable/unreachable-try-pattern.rs similarity index 100% rename from src/test/ui/reachable/unreachable-try-pattern.rs rename to tests/ui/reachable/unreachable-try-pattern.rs diff --git a/src/test/ui/reachable/unreachable-try-pattern.stderr b/tests/ui/reachable/unreachable-try-pattern.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-try-pattern.stderr rename to tests/ui/reachable/unreachable-try-pattern.stderr diff --git a/src/test/ui/reachable/unreachable-variant.rs b/tests/ui/reachable/unreachable-variant.rs similarity index 100% rename from src/test/ui/reachable/unreachable-variant.rs rename to tests/ui/reachable/unreachable-variant.rs diff --git a/src/test/ui/reachable/unreachable-variant.stderr b/tests/ui/reachable/unreachable-variant.stderr similarity index 100% rename from src/test/ui/reachable/unreachable-variant.stderr rename to tests/ui/reachable/unreachable-variant.stderr diff --git a/src/test/ui/reachable/unwarned-match-on-never.rs b/tests/ui/reachable/unwarned-match-on-never.rs similarity index 100% rename from src/test/ui/reachable/unwarned-match-on-never.rs rename to tests/ui/reachable/unwarned-match-on-never.rs diff --git a/src/test/ui/reachable/unwarned-match-on-never.stderr b/tests/ui/reachable/unwarned-match-on-never.stderr similarity index 100% rename from src/test/ui/reachable/unwarned-match-on-never.stderr rename to tests/ui/reachable/unwarned-match-on-never.stderr diff --git a/src/test/ui/realloc-16687.rs b/tests/ui/realloc-16687.rs similarity index 100% rename from src/test/ui/realloc-16687.rs rename to tests/ui/realloc-16687.rs diff --git a/src/test/ui/reassign-ref-mut.rs b/tests/ui/reassign-ref-mut.rs similarity index 100% rename from src/test/ui/reassign-ref-mut.rs rename to tests/ui/reassign-ref-mut.rs diff --git a/src/test/ui/reassign-ref-mut.stderr b/tests/ui/reassign-ref-mut.stderr similarity index 100% rename from src/test/ui/reassign-ref-mut.stderr rename to tests/ui/reassign-ref-mut.stderr diff --git a/src/test/ui/recursion/auxiliary/recursive_reexports.rs b/tests/ui/recursion/auxiliary/recursive_reexports.rs similarity index 100% rename from src/test/ui/recursion/auxiliary/recursive_reexports.rs rename to tests/ui/recursion/auxiliary/recursive_reexports.rs diff --git a/src/test/ui/recursion/instantiable.rs b/tests/ui/recursion/instantiable.rs similarity index 100% rename from src/test/ui/recursion/instantiable.rs rename to tests/ui/recursion/instantiable.rs diff --git a/src/test/ui/recursion/issue-26548-recursion-via-normalize.rs b/tests/ui/recursion/issue-26548-recursion-via-normalize.rs similarity index 100% rename from src/test/ui/recursion/issue-26548-recursion-via-normalize.rs rename to tests/ui/recursion/issue-26548-recursion-via-normalize.rs diff --git a/src/test/ui/recursion/issue-26548-recursion-via-normalize.stderr b/tests/ui/recursion/issue-26548-recursion-via-normalize.stderr similarity index 100% rename from src/test/ui/recursion/issue-26548-recursion-via-normalize.stderr rename to tests/ui/recursion/issue-26548-recursion-via-normalize.stderr diff --git a/src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.polonius.stderr b/tests/ui/recursion/issue-38591-non-regular-dropck-recursion.polonius.stderr similarity index 100% rename from src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.polonius.stderr rename to tests/ui/recursion/issue-38591-non-regular-dropck-recursion.polonius.stderr diff --git a/src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs b/tests/ui/recursion/issue-38591-non-regular-dropck-recursion.rs similarity index 100% rename from src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs rename to tests/ui/recursion/issue-38591-non-regular-dropck-recursion.rs diff --git a/src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.stderr b/tests/ui/recursion/issue-38591-non-regular-dropck-recursion.stderr similarity index 100% rename from src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.stderr rename to tests/ui/recursion/issue-38591-non-regular-dropck-recursion.stderr diff --git a/src/test/ui/recursion/issue-83150.rs b/tests/ui/recursion/issue-83150.rs similarity index 100% rename from src/test/ui/recursion/issue-83150.rs rename to tests/ui/recursion/issue-83150.rs diff --git a/src/test/ui/recursion/issue-83150.stderr b/tests/ui/recursion/issue-83150.stderr similarity index 100% rename from src/test/ui/recursion/issue-83150.stderr rename to tests/ui/recursion/issue-83150.stderr diff --git a/src/test/ui/recursion/issue-86784.rs b/tests/ui/recursion/issue-86784.rs similarity index 100% rename from src/test/ui/recursion/issue-86784.rs rename to tests/ui/recursion/issue-86784.rs diff --git a/src/test/ui/recursion/issue-95134.rs b/tests/ui/recursion/issue-95134.rs similarity index 100% rename from src/test/ui/recursion/issue-95134.rs rename to tests/ui/recursion/issue-95134.rs diff --git a/src/test/ui/recursion/recursion.polonius.stderr b/tests/ui/recursion/recursion.polonius.stderr similarity index 100% rename from src/test/ui/recursion/recursion.polonius.stderr rename to tests/ui/recursion/recursion.polonius.stderr diff --git a/src/test/ui/recursion/recursion.rs b/tests/ui/recursion/recursion.rs similarity index 100% rename from src/test/ui/recursion/recursion.rs rename to tests/ui/recursion/recursion.rs diff --git a/src/test/ui/recursion/recursion.stderr b/tests/ui/recursion/recursion.stderr similarity index 100% rename from src/test/ui/recursion/recursion.stderr rename to tests/ui/recursion/recursion.stderr diff --git a/src/test/ui/recursion/recursive-enum.rs b/tests/ui/recursion/recursive-enum.rs similarity index 100% rename from src/test/ui/recursion/recursive-enum.rs rename to tests/ui/recursion/recursive-enum.rs diff --git a/src/test/ui/recursion/recursive-enum.stderr b/tests/ui/recursion/recursive-enum.stderr similarity index 100% rename from src/test/ui/recursion/recursive-enum.stderr rename to tests/ui/recursion/recursive-enum.stderr diff --git a/src/test/ui/recursion/recursive-reexports.rs b/tests/ui/recursion/recursive-reexports.rs similarity index 100% rename from src/test/ui/recursion/recursive-reexports.rs rename to tests/ui/recursion/recursive-reexports.rs diff --git a/src/test/ui/recursion/recursive-reexports.stderr b/tests/ui/recursion/recursive-reexports.stderr similarity index 100% rename from src/test/ui/recursion/recursive-reexports.stderr rename to tests/ui/recursion/recursive-reexports.stderr diff --git a/src/test/ui/recursion/recursive-requirements.rs b/tests/ui/recursion/recursive-requirements.rs similarity index 100% rename from src/test/ui/recursion/recursive-requirements.rs rename to tests/ui/recursion/recursive-requirements.rs diff --git a/src/test/ui/recursion/recursive-requirements.stderr b/tests/ui/recursion/recursive-requirements.stderr similarity index 100% rename from src/test/ui/recursion/recursive-requirements.stderr rename to tests/ui/recursion/recursive-requirements.stderr diff --git a/src/test/ui/recursion/recursive-static-definition.rs b/tests/ui/recursion/recursive-static-definition.rs similarity index 100% rename from src/test/ui/recursion/recursive-static-definition.rs rename to tests/ui/recursion/recursive-static-definition.rs diff --git a/src/test/ui/recursion/recursive-static-definition.stderr b/tests/ui/recursion/recursive-static-definition.stderr similarity index 100% rename from src/test/ui/recursion/recursive-static-definition.stderr rename to tests/ui/recursion/recursive-static-definition.stderr diff --git a/src/test/ui/recursion/recursive-types-are-not-uninhabited.rs b/tests/ui/recursion/recursive-types-are-not-uninhabited.rs similarity index 100% rename from src/test/ui/recursion/recursive-types-are-not-uninhabited.rs rename to tests/ui/recursion/recursive-types-are-not-uninhabited.rs diff --git a/src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr b/tests/ui/recursion/recursive-types-are-not-uninhabited.stderr similarity index 100% rename from src/test/ui/recursion/recursive-types-are-not-uninhabited.stderr rename to tests/ui/recursion/recursive-types-are-not-uninhabited.stderr diff --git a/src/test/ui/recursion_limit/empty.rs b/tests/ui/recursion_limit/empty.rs similarity index 100% rename from src/test/ui/recursion_limit/empty.rs rename to tests/ui/recursion_limit/empty.rs diff --git a/src/test/ui/recursion_limit/empty.stderr b/tests/ui/recursion_limit/empty.stderr similarity index 100% rename from src/test/ui/recursion_limit/empty.stderr rename to tests/ui/recursion_limit/empty.stderr diff --git a/src/test/ui/recursion_limit/invalid_digit.rs b/tests/ui/recursion_limit/invalid_digit.rs similarity index 100% rename from src/test/ui/recursion_limit/invalid_digit.rs rename to tests/ui/recursion_limit/invalid_digit.rs diff --git a/src/test/ui/recursion_limit/invalid_digit.stderr b/tests/ui/recursion_limit/invalid_digit.stderr similarity index 100% rename from src/test/ui/recursion_limit/invalid_digit.stderr rename to tests/ui/recursion_limit/invalid_digit.stderr diff --git a/src/test/ui/recursion_limit/invalid_digit_type.rs b/tests/ui/recursion_limit/invalid_digit_type.rs similarity index 100% rename from src/test/ui/recursion_limit/invalid_digit_type.rs rename to tests/ui/recursion_limit/invalid_digit_type.rs diff --git a/src/test/ui/recursion_limit/invalid_digit_type.stderr b/tests/ui/recursion_limit/invalid_digit_type.stderr similarity index 100% rename from src/test/ui/recursion_limit/invalid_digit_type.stderr rename to tests/ui/recursion_limit/invalid_digit_type.stderr diff --git a/src/test/ui/recursion_limit/invalid_macro.rs b/tests/ui/recursion_limit/invalid_macro.rs similarity index 100% rename from src/test/ui/recursion_limit/invalid_macro.rs rename to tests/ui/recursion_limit/invalid_macro.rs diff --git a/src/test/ui/recursion_limit/invalid_macro.stderr b/tests/ui/recursion_limit/invalid_macro.stderr similarity index 100% rename from src/test/ui/recursion_limit/invalid_macro.stderr rename to tests/ui/recursion_limit/invalid_macro.stderr diff --git a/src/test/ui/recursion_limit/no-value.rs b/tests/ui/recursion_limit/no-value.rs similarity index 100% rename from src/test/ui/recursion_limit/no-value.rs rename to tests/ui/recursion_limit/no-value.rs diff --git a/src/test/ui/recursion_limit/no-value.stderr b/tests/ui/recursion_limit/no-value.stderr similarity index 100% rename from src/test/ui/recursion_limit/no-value.stderr rename to tests/ui/recursion_limit/no-value.stderr diff --git a/src/test/ui/recursion_limit/overflow.rs b/tests/ui/recursion_limit/overflow.rs similarity index 100% rename from src/test/ui/recursion_limit/overflow.rs rename to tests/ui/recursion_limit/overflow.rs diff --git a/src/test/ui/recursion_limit/overflow.stderr b/tests/ui/recursion_limit/overflow.stderr similarity index 100% rename from src/test/ui/recursion_limit/overflow.stderr rename to tests/ui/recursion_limit/overflow.stderr diff --git a/src/test/ui/recursion_limit/zero-overflow.rs b/tests/ui/recursion_limit/zero-overflow.rs similarity index 100% rename from src/test/ui/recursion_limit/zero-overflow.rs rename to tests/ui/recursion_limit/zero-overflow.rs diff --git a/src/test/ui/recursion_limit/zero-overflow.stderr b/tests/ui/recursion_limit/zero-overflow.stderr similarity index 100% rename from src/test/ui/recursion_limit/zero-overflow.stderr rename to tests/ui/recursion_limit/zero-overflow.stderr diff --git a/src/test/ui/recursion_limit/zero.rs b/tests/ui/recursion_limit/zero.rs similarity index 100% rename from src/test/ui/recursion_limit/zero.rs rename to tests/ui/recursion_limit/zero.rs diff --git a/src/test/ui/recursion_limit/zero.stderr b/tests/ui/recursion_limit/zero.stderr similarity index 100% rename from src/test/ui/recursion_limit/zero.stderr rename to tests/ui/recursion_limit/zero.stderr diff --git a/src/test/ui/reexport-test-harness-main.rs b/tests/ui/reexport-test-harness-main.rs similarity index 100% rename from src/test/ui/reexport-test-harness-main.rs rename to tests/ui/reexport-test-harness-main.rs diff --git a/src/test/ui/regions/auxiliary/rbmtp_cross_crate_lib.rs b/tests/ui/regions/auxiliary/rbmtp_cross_crate_lib.rs similarity index 100% rename from src/test/ui/regions/auxiliary/rbmtp_cross_crate_lib.rs rename to tests/ui/regions/auxiliary/rbmtp_cross_crate_lib.rs diff --git a/src/test/ui/regions/closure-in-projection-issue-97405.rs b/tests/ui/regions/closure-in-projection-issue-97405.rs similarity index 100% rename from src/test/ui/regions/closure-in-projection-issue-97405.rs rename to tests/ui/regions/closure-in-projection-issue-97405.rs diff --git a/src/test/ui/regions/closure-in-projection-issue-97405.stderr b/tests/ui/regions/closure-in-projection-issue-97405.stderr similarity index 100% rename from src/test/ui/regions/closure-in-projection-issue-97405.stderr rename to tests/ui/regions/closure-in-projection-issue-97405.stderr diff --git a/src/test/ui/regions/do-not-suggest-adding-bound-to-opaque-type.rs b/tests/ui/regions/do-not-suggest-adding-bound-to-opaque-type.rs similarity index 100% rename from src/test/ui/regions/do-not-suggest-adding-bound-to-opaque-type.rs rename to tests/ui/regions/do-not-suggest-adding-bound-to-opaque-type.rs diff --git a/src/test/ui/regions/do-not-suggest-adding-bound-to-opaque-type.stderr b/tests/ui/regions/do-not-suggest-adding-bound-to-opaque-type.stderr similarity index 100% rename from src/test/ui/regions/do-not-suggest-adding-bound-to-opaque-type.stderr rename to tests/ui/regions/do-not-suggest-adding-bound-to-opaque-type.stderr diff --git a/src/test/ui/regions/forall-wf-ref-reflexive.rs b/tests/ui/regions/forall-wf-ref-reflexive.rs similarity index 100% rename from src/test/ui/regions/forall-wf-ref-reflexive.rs rename to tests/ui/regions/forall-wf-ref-reflexive.rs diff --git a/src/test/ui/regions/forall-wf-ref-reflexive.stderr b/tests/ui/regions/forall-wf-ref-reflexive.stderr similarity index 100% rename from src/test/ui/regions/forall-wf-ref-reflexive.stderr rename to tests/ui/regions/forall-wf-ref-reflexive.stderr diff --git a/src/test/ui/regions/forall-wf-reflexive.rs b/tests/ui/regions/forall-wf-reflexive.rs similarity index 100% rename from src/test/ui/regions/forall-wf-reflexive.rs rename to tests/ui/regions/forall-wf-reflexive.rs diff --git a/src/test/ui/regions/init-res-into-things.rs b/tests/ui/regions/init-res-into-things.rs similarity index 100% rename from src/test/ui/regions/init-res-into-things.rs rename to tests/ui/regions/init-res-into-things.rs diff --git a/src/test/ui/regions/issue-101280.rs b/tests/ui/regions/issue-101280.rs similarity index 100% rename from src/test/ui/regions/issue-101280.rs rename to tests/ui/regions/issue-101280.rs diff --git a/src/test/ui/regions/issue-101280.stderr b/tests/ui/regions/issue-101280.stderr similarity index 100% rename from src/test/ui/regions/issue-101280.stderr rename to tests/ui/regions/issue-101280.stderr diff --git a/src/test/ui/regions/issue-102374.rs b/tests/ui/regions/issue-102374.rs similarity index 100% rename from src/test/ui/regions/issue-102374.rs rename to tests/ui/regions/issue-102374.rs diff --git a/src/test/ui/regions/issue-102374.stderr b/tests/ui/regions/issue-102374.stderr similarity index 100% rename from src/test/ui/regions/issue-102374.stderr rename to tests/ui/regions/issue-102374.stderr diff --git a/src/test/ui/regions/issue-102392.rs b/tests/ui/regions/issue-102392.rs similarity index 100% rename from src/test/ui/regions/issue-102392.rs rename to tests/ui/regions/issue-102392.rs diff --git a/src/test/ui/regions/issue-102392.stderr b/tests/ui/regions/issue-102392.stderr similarity index 100% rename from src/test/ui/regions/issue-102392.stderr rename to tests/ui/regions/issue-102392.stderr diff --git a/src/test/ui/regions/issue-11612.rs b/tests/ui/regions/issue-11612.rs similarity index 100% rename from src/test/ui/regions/issue-11612.rs rename to tests/ui/regions/issue-11612.rs diff --git a/src/test/ui/regions/issue-12470.rs b/tests/ui/regions/issue-12470.rs similarity index 100% rename from src/test/ui/regions/issue-12470.rs rename to tests/ui/regions/issue-12470.rs diff --git a/src/test/ui/regions/issue-12470.stderr b/tests/ui/regions/issue-12470.stderr similarity index 100% rename from src/test/ui/regions/issue-12470.stderr rename to tests/ui/regions/issue-12470.stderr diff --git a/src/test/ui/regions/issue-21520.rs b/tests/ui/regions/issue-21520.rs similarity index 100% rename from src/test/ui/regions/issue-21520.rs rename to tests/ui/regions/issue-21520.rs diff --git a/src/test/ui/regions/issue-24085.rs b/tests/ui/regions/issue-24085.rs similarity index 100% rename from src/test/ui/regions/issue-24085.rs rename to tests/ui/regions/issue-24085.rs diff --git a/src/test/ui/regions/issue-26448-1.rs b/tests/ui/regions/issue-26448-1.rs similarity index 100% rename from src/test/ui/regions/issue-26448-1.rs rename to tests/ui/regions/issue-26448-1.rs diff --git a/src/test/ui/regions/issue-26448-2.rs b/tests/ui/regions/issue-26448-2.rs similarity index 100% rename from src/test/ui/regions/issue-26448-2.rs rename to tests/ui/regions/issue-26448-2.rs diff --git a/src/test/ui/regions/issue-26448-3.rs b/tests/ui/regions/issue-26448-3.rs similarity index 100% rename from src/test/ui/regions/issue-26448-3.rs rename to tests/ui/regions/issue-26448-3.rs diff --git a/src/test/ui/regions/issue-2718.rs b/tests/ui/regions/issue-2718.rs similarity index 100% rename from src/test/ui/regions/issue-2718.rs rename to tests/ui/regions/issue-2718.rs diff --git a/src/test/ui/regions/issue-28848.rs b/tests/ui/regions/issue-28848.rs similarity index 100% rename from src/test/ui/regions/issue-28848.rs rename to tests/ui/regions/issue-28848.rs diff --git a/src/test/ui/regions/issue-28848.stderr b/tests/ui/regions/issue-28848.stderr similarity index 100% rename from src/test/ui/regions/issue-28848.stderr rename to tests/ui/regions/issue-28848.stderr diff --git a/src/test/ui/regions/issue-5243.rs b/tests/ui/regions/issue-5243.rs similarity index 100% rename from src/test/ui/regions/issue-5243.rs rename to tests/ui/regions/issue-5243.rs diff --git a/src/test/ui/regions/issue-56537-closure-uses-region-from-container.rs b/tests/ui/regions/issue-56537-closure-uses-region-from-container.rs similarity index 100% rename from src/test/ui/regions/issue-56537-closure-uses-region-from-container.rs rename to tests/ui/regions/issue-56537-closure-uses-region-from-container.rs diff --git a/src/test/ui/regions/issue-6157.rs b/tests/ui/regions/issue-6157.rs similarity index 100% rename from src/test/ui/regions/issue-6157.rs rename to tests/ui/regions/issue-6157.rs diff --git a/src/test/ui/regions/issue-72051-member-region-hang.rs b/tests/ui/regions/issue-72051-member-region-hang.rs similarity index 100% rename from src/test/ui/regions/issue-72051-member-region-hang.rs rename to tests/ui/regions/issue-72051-member-region-hang.rs diff --git a/src/test/ui/regions/issue-78262.base.stderr b/tests/ui/regions/issue-78262.base.stderr similarity index 100% rename from src/test/ui/regions/issue-78262.base.stderr rename to tests/ui/regions/issue-78262.base.stderr diff --git a/src/test/ui/regions/issue-78262.polonius.stderr b/tests/ui/regions/issue-78262.polonius.stderr similarity index 100% rename from src/test/ui/regions/issue-78262.polonius.stderr rename to tests/ui/regions/issue-78262.polonius.stderr diff --git a/src/test/ui/regions/issue-78262.rs b/tests/ui/regions/issue-78262.rs similarity index 100% rename from src/test/ui/regions/issue-78262.rs rename to tests/ui/regions/issue-78262.rs diff --git a/src/test/ui/regions/outlives-with-missing.rs b/tests/ui/regions/outlives-with-missing.rs similarity index 100% rename from src/test/ui/regions/outlives-with-missing.rs rename to tests/ui/regions/outlives-with-missing.rs diff --git a/src/test/ui/regions/outlives-with-missing.stderr b/tests/ui/regions/outlives-with-missing.stderr similarity index 100% rename from src/test/ui/regions/outlives-with-missing.stderr rename to tests/ui/regions/outlives-with-missing.stderr diff --git a/src/test/ui/regions/owned-implies-static.rs b/tests/ui/regions/owned-implies-static.rs similarity index 100% rename from src/test/ui/regions/owned-implies-static.rs rename to tests/ui/regions/owned-implies-static.rs diff --git a/src/test/ui/regions/rcvr-borrowed-to-region.rs b/tests/ui/regions/rcvr-borrowed-to-region.rs similarity index 100% rename from src/test/ui/regions/rcvr-borrowed-to-region.rs rename to tests/ui/regions/rcvr-borrowed-to-region.rs diff --git a/src/test/ui/regions/region-borrow-params-issue-29793-big.rs b/tests/ui/regions/region-borrow-params-issue-29793-big.rs similarity index 100% rename from src/test/ui/regions/region-borrow-params-issue-29793-big.rs rename to tests/ui/regions/region-borrow-params-issue-29793-big.rs diff --git a/src/test/ui/regions/region-borrow-params-issue-29793-big.stderr b/tests/ui/regions/region-borrow-params-issue-29793-big.stderr similarity index 100% rename from src/test/ui/regions/region-borrow-params-issue-29793-big.stderr rename to tests/ui/regions/region-borrow-params-issue-29793-big.stderr diff --git a/src/test/ui/regions/region-borrow-params-issue-29793-small.rs b/tests/ui/regions/region-borrow-params-issue-29793-small.rs similarity index 100% rename from src/test/ui/regions/region-borrow-params-issue-29793-small.rs rename to tests/ui/regions/region-borrow-params-issue-29793-small.rs diff --git a/src/test/ui/regions/region-borrow-params-issue-29793-small.stderr b/tests/ui/regions/region-borrow-params-issue-29793-small.stderr similarity index 100% rename from src/test/ui/regions/region-borrow-params-issue-29793-small.stderr rename to tests/ui/regions/region-borrow-params-issue-29793-small.stderr diff --git a/src/test/ui/regions/region-bound-extra-bound-in-inherent-impl.rs b/tests/ui/regions/region-bound-extra-bound-in-inherent-impl.rs similarity index 100% rename from src/test/ui/regions/region-bound-extra-bound-in-inherent-impl.rs rename to tests/ui/regions/region-bound-extra-bound-in-inherent-impl.rs diff --git a/src/test/ui/regions/region-bound-on-closure-outlives-call.rs b/tests/ui/regions/region-bound-on-closure-outlives-call.rs similarity index 100% rename from src/test/ui/regions/region-bound-on-closure-outlives-call.rs rename to tests/ui/regions/region-bound-on-closure-outlives-call.rs diff --git a/src/test/ui/regions/region-bound-on-closure-outlives-call.stderr b/tests/ui/regions/region-bound-on-closure-outlives-call.stderr similarity index 100% rename from src/test/ui/regions/region-bound-on-closure-outlives-call.stderr rename to tests/ui/regions/region-bound-on-closure-outlives-call.stderr diff --git a/src/test/ui/regions/region-bound-same-bounds-in-trait-and-impl.rs b/tests/ui/regions/region-bound-same-bounds-in-trait-and-impl.rs similarity index 100% rename from src/test/ui/regions/region-bound-same-bounds-in-trait-and-impl.rs rename to tests/ui/regions/region-bound-same-bounds-in-trait-and-impl.rs diff --git a/src/test/ui/regions/region-bounds-on-objects-and-type-parameters.rs b/tests/ui/regions/region-bounds-on-objects-and-type-parameters.rs similarity index 100% rename from src/test/ui/regions/region-bounds-on-objects-and-type-parameters.rs rename to tests/ui/regions/region-bounds-on-objects-and-type-parameters.rs diff --git a/src/test/ui/regions/region-bounds-on-objects-and-type-parameters.stderr b/tests/ui/regions/region-bounds-on-objects-and-type-parameters.stderr similarity index 100% rename from src/test/ui/regions/region-bounds-on-objects-and-type-parameters.stderr rename to tests/ui/regions/region-bounds-on-objects-and-type-parameters.stderr diff --git a/src/test/ui/regions/region-invariant-static-error-reporting.rs b/tests/ui/regions/region-invariant-static-error-reporting.rs similarity index 100% rename from src/test/ui/regions/region-invariant-static-error-reporting.rs rename to tests/ui/regions/region-invariant-static-error-reporting.rs diff --git a/src/test/ui/regions/region-invariant-static-error-reporting.stderr b/tests/ui/regions/region-invariant-static-error-reporting.stderr similarity index 100% rename from src/test/ui/regions/region-invariant-static-error-reporting.stderr rename to tests/ui/regions/region-invariant-static-error-reporting.stderr diff --git a/src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.rs b/tests/ui/regions/region-lifetime-bounds-on-fns-where-clause.rs similarity index 100% rename from src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.rs rename to tests/ui/regions/region-lifetime-bounds-on-fns-where-clause.rs diff --git a/src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr b/tests/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr similarity index 100% rename from src/test/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr rename to tests/ui/regions/region-lifetime-bounds-on-fns-where-clause.stderr diff --git a/src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.rs b/tests/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.rs similarity index 100% rename from src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.rs rename to tests/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.rs diff --git a/src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr b/tests/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr similarity index 100% rename from src/test/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr rename to tests/ui/regions/region-multiple-lifetime-bounds-on-fns-where-clause.stderr diff --git a/src/test/ui/regions/region-object-lifetime-1.rs b/tests/ui/regions/region-object-lifetime-1.rs similarity index 100% rename from src/test/ui/regions/region-object-lifetime-1.rs rename to tests/ui/regions/region-object-lifetime-1.rs diff --git a/src/test/ui/regions/region-object-lifetime-2.rs b/tests/ui/regions/region-object-lifetime-2.rs similarity index 100% rename from src/test/ui/regions/region-object-lifetime-2.rs rename to tests/ui/regions/region-object-lifetime-2.rs diff --git a/src/test/ui/regions/region-object-lifetime-2.stderr b/tests/ui/regions/region-object-lifetime-2.stderr similarity index 100% rename from src/test/ui/regions/region-object-lifetime-2.stderr rename to tests/ui/regions/region-object-lifetime-2.stderr diff --git a/src/test/ui/regions/region-object-lifetime-3.rs b/tests/ui/regions/region-object-lifetime-3.rs similarity index 100% rename from src/test/ui/regions/region-object-lifetime-3.rs rename to tests/ui/regions/region-object-lifetime-3.rs diff --git a/src/test/ui/regions/region-object-lifetime-4.rs b/tests/ui/regions/region-object-lifetime-4.rs similarity index 100% rename from src/test/ui/regions/region-object-lifetime-4.rs rename to tests/ui/regions/region-object-lifetime-4.rs diff --git a/src/test/ui/regions/region-object-lifetime-4.stderr b/tests/ui/regions/region-object-lifetime-4.stderr similarity index 100% rename from src/test/ui/regions/region-object-lifetime-4.stderr rename to tests/ui/regions/region-object-lifetime-4.stderr diff --git a/src/test/ui/regions/region-object-lifetime-5.rs b/tests/ui/regions/region-object-lifetime-5.rs similarity index 100% rename from src/test/ui/regions/region-object-lifetime-5.rs rename to tests/ui/regions/region-object-lifetime-5.rs diff --git a/src/test/ui/regions/region-object-lifetime-5.stderr b/tests/ui/regions/region-object-lifetime-5.stderr similarity index 100% rename from src/test/ui/regions/region-object-lifetime-5.stderr rename to tests/ui/regions/region-object-lifetime-5.stderr diff --git a/src/test/ui/regions/region-object-lifetime-in-coercion.rs b/tests/ui/regions/region-object-lifetime-in-coercion.rs similarity index 100% rename from src/test/ui/regions/region-object-lifetime-in-coercion.rs rename to tests/ui/regions/region-object-lifetime-in-coercion.rs diff --git a/src/test/ui/regions/region-object-lifetime-in-coercion.stderr b/tests/ui/regions/region-object-lifetime-in-coercion.stderr similarity index 100% rename from src/test/ui/regions/region-object-lifetime-in-coercion.stderr rename to tests/ui/regions/region-object-lifetime-in-coercion.stderr diff --git a/src/test/ui/regions/regions-addr-of-arg.rs b/tests/ui/regions/regions-addr-of-arg.rs similarity index 100% rename from src/test/ui/regions/regions-addr-of-arg.rs rename to tests/ui/regions/regions-addr-of-arg.rs diff --git a/src/test/ui/regions/regions-addr-of-arg.stderr b/tests/ui/regions/regions-addr-of-arg.stderr similarity index 100% rename from src/test/ui/regions/regions-addr-of-arg.stderr rename to tests/ui/regions/regions-addr-of-arg.stderr diff --git a/src/test/ui/regions/regions-addr-of-interior-of-unique-box.rs b/tests/ui/regions/regions-addr-of-interior-of-unique-box.rs similarity index 100% rename from src/test/ui/regions/regions-addr-of-interior-of-unique-box.rs rename to tests/ui/regions/regions-addr-of-interior-of-unique-box.rs diff --git a/src/test/ui/regions/regions-addr-of-ret.rs b/tests/ui/regions/regions-addr-of-ret.rs similarity index 100% rename from src/test/ui/regions/regions-addr-of-ret.rs rename to tests/ui/regions/regions-addr-of-ret.rs diff --git a/src/test/ui/regions/regions-addr-of-self.rs b/tests/ui/regions/regions-addr-of-self.rs similarity index 100% rename from src/test/ui/regions/regions-addr-of-self.rs rename to tests/ui/regions/regions-addr-of-self.rs diff --git a/src/test/ui/regions/regions-addr-of-self.stderr b/tests/ui/regions/regions-addr-of-self.stderr similarity index 100% rename from src/test/ui/regions/regions-addr-of-self.stderr rename to tests/ui/regions/regions-addr-of-self.stderr diff --git a/src/test/ui/regions/regions-addr-of-upvar-self.rs b/tests/ui/regions/regions-addr-of-upvar-self.rs similarity index 100% rename from src/test/ui/regions/regions-addr-of-upvar-self.rs rename to tests/ui/regions/regions-addr-of-upvar-self.rs diff --git a/src/test/ui/regions/regions-addr-of-upvar-self.stderr b/tests/ui/regions/regions-addr-of-upvar-self.stderr similarity index 100% rename from src/test/ui/regions/regions-addr-of-upvar-self.stderr rename to tests/ui/regions/regions-addr-of-upvar-self.stderr diff --git a/src/test/ui/regions/regions-adjusted-lvalue-op.rs b/tests/ui/regions/regions-adjusted-lvalue-op.rs similarity index 100% rename from src/test/ui/regions/regions-adjusted-lvalue-op.rs rename to tests/ui/regions/regions-adjusted-lvalue-op.rs diff --git a/src/test/ui/regions/regions-adjusted-lvalue-op.stderr b/tests/ui/regions/regions-adjusted-lvalue-op.stderr similarity index 100% rename from src/test/ui/regions/regions-adjusted-lvalue-op.stderr rename to tests/ui/regions/regions-adjusted-lvalue-op.stderr diff --git a/src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.rs b/tests/ui/regions/regions-assoc-type-in-supertrait-outlives-container.rs similarity index 100% rename from src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.rs rename to tests/ui/regions/regions-assoc-type-in-supertrait-outlives-container.rs diff --git a/src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.stderr b/tests/ui/regions/regions-assoc-type-in-supertrait-outlives-container.stderr similarity index 100% rename from src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.stderr rename to tests/ui/regions/regions-assoc-type-in-supertrait-outlives-container.stderr diff --git a/src/test/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.rs b/tests/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.rs similarity index 100% rename from src/test/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.rs rename to tests/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.rs diff --git a/src/test/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.stderr b/tests/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.stderr similarity index 100% rename from src/test/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.stderr rename to tests/ui/regions/regions-assoc-type-region-bound-in-trait-not-met.stderr diff --git a/src/test/ui/regions/regions-assoc-type-region-bound.rs b/tests/ui/regions/regions-assoc-type-region-bound.rs similarity index 100% rename from src/test/ui/regions/regions-assoc-type-region-bound.rs rename to tests/ui/regions/regions-assoc-type-region-bound.rs diff --git a/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs b/tests/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs similarity index 100% rename from src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs rename to tests/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs diff --git a/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr b/tests/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr similarity index 100% rename from src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr rename to tests/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.stderr diff --git a/src/test/ui/regions/regions-assoc-type-static-bound.rs b/tests/ui/regions/regions-assoc-type-static-bound.rs similarity index 100% rename from src/test/ui/regions/regions-assoc-type-static-bound.rs rename to tests/ui/regions/regions-assoc-type-static-bound.rs diff --git a/src/test/ui/regions/regions-borrow-at.rs b/tests/ui/regions/regions-borrow-at.rs similarity index 100% rename from src/test/ui/regions/regions-borrow-at.rs rename to tests/ui/regions/regions-borrow-at.rs diff --git a/src/test/ui/regions/regions-borrow-evec-fixed.rs b/tests/ui/regions/regions-borrow-evec-fixed.rs similarity index 100% rename from src/test/ui/regions/regions-borrow-evec-fixed.rs rename to tests/ui/regions/regions-borrow-evec-fixed.rs diff --git a/src/test/ui/regions/regions-borrow-evec-uniq.rs b/tests/ui/regions/regions-borrow-evec-uniq.rs similarity index 100% rename from src/test/ui/regions/regions-borrow-evec-uniq.rs rename to tests/ui/regions/regions-borrow-evec-uniq.rs diff --git a/src/test/ui/regions/regions-borrow-uniq.rs b/tests/ui/regions/regions-borrow-uniq.rs similarity index 100% rename from src/test/ui/regions/regions-borrow-uniq.rs rename to tests/ui/regions/regions-borrow-uniq.rs diff --git a/src/test/ui/regions/regions-bot.rs b/tests/ui/regions/regions-bot.rs similarity index 100% rename from src/test/ui/regions/regions-bot.rs rename to tests/ui/regions/regions-bot.rs diff --git a/src/test/ui/regions/regions-bound-lists-feature-gate-2.rs b/tests/ui/regions/regions-bound-lists-feature-gate-2.rs similarity index 100% rename from src/test/ui/regions/regions-bound-lists-feature-gate-2.rs rename to tests/ui/regions/regions-bound-lists-feature-gate-2.rs diff --git a/src/test/ui/regions/regions-bound-lists-feature-gate.rs b/tests/ui/regions/regions-bound-lists-feature-gate.rs similarity index 100% rename from src/test/ui/regions/regions-bound-lists-feature-gate.rs rename to tests/ui/regions/regions-bound-lists-feature-gate.rs diff --git a/src/test/ui/regions/regions-bounded-by-trait-requiring-static.rs b/tests/ui/regions/regions-bounded-by-trait-requiring-static.rs similarity index 100% rename from src/test/ui/regions/regions-bounded-by-trait-requiring-static.rs rename to tests/ui/regions/regions-bounded-by-trait-requiring-static.rs diff --git a/src/test/ui/regions/regions-bounded-by-trait-requiring-static.stderr b/tests/ui/regions/regions-bounded-by-trait-requiring-static.stderr similarity index 100% rename from src/test/ui/regions/regions-bounded-by-trait-requiring-static.stderr rename to tests/ui/regions/regions-bounded-by-trait-requiring-static.stderr diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.rs b/tests/ui/regions/regions-bounded-method-type-parameters-cross-crate.rs similarity index 100% rename from src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.rs rename to tests/ui/regions/regions-bounded-method-type-parameters-cross-crate.rs diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.stderr b/tests/ui/regions/regions-bounded-method-type-parameters-cross-crate.stderr similarity index 100% rename from src/test/ui/regions/regions-bounded-method-type-parameters-cross-crate.stderr rename to tests/ui/regions/regions-bounded-method-type-parameters-cross-crate.stderr diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.rs b/tests/ui/regions/regions-bounded-method-type-parameters-trait-bound.rs similarity index 100% rename from src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.rs rename to tests/ui/regions/regions-bounded-method-type-parameters-trait-bound.rs diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr b/tests/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr similarity index 100% rename from src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr rename to tests/ui/regions/regions-bounded-method-type-parameters-trait-bound.stderr diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters.rs b/tests/ui/regions/regions-bounded-method-type-parameters.rs similarity index 100% rename from src/test/ui/regions/regions-bounded-method-type-parameters.rs rename to tests/ui/regions/regions-bounded-method-type-parameters.rs diff --git a/src/test/ui/regions/regions-bounded-method-type-parameters.stderr b/tests/ui/regions/regions-bounded-method-type-parameters.stderr similarity index 100% rename from src/test/ui/regions/regions-bounded-method-type-parameters.stderr rename to tests/ui/regions/regions-bounded-method-type-parameters.stderr diff --git a/src/test/ui/regions/regions-bounds.rs b/tests/ui/regions/regions-bounds.rs similarity index 100% rename from src/test/ui/regions/regions-bounds.rs rename to tests/ui/regions/regions-bounds.rs diff --git a/src/test/ui/regions/regions-bounds.stderr b/tests/ui/regions/regions-bounds.stderr similarity index 100% rename from src/test/ui/regions/regions-bounds.stderr rename to tests/ui/regions/regions-bounds.stderr diff --git a/src/test/ui/regions/regions-close-associated-type-into-object.rs b/tests/ui/regions/regions-close-associated-type-into-object.rs similarity index 100% rename from src/test/ui/regions/regions-close-associated-type-into-object.rs rename to tests/ui/regions/regions-close-associated-type-into-object.rs diff --git a/src/test/ui/regions/regions-close-associated-type-into-object.stderr b/tests/ui/regions/regions-close-associated-type-into-object.stderr similarity index 100% rename from src/test/ui/regions/regions-close-associated-type-into-object.stderr rename to tests/ui/regions/regions-close-associated-type-into-object.stderr diff --git a/src/test/ui/regions/regions-close-object-into-object-1.rs b/tests/ui/regions/regions-close-object-into-object-1.rs similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-1.rs rename to tests/ui/regions/regions-close-object-into-object-1.rs diff --git a/src/test/ui/regions/regions-close-object-into-object-1.stderr b/tests/ui/regions/regions-close-object-into-object-1.stderr similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-1.stderr rename to tests/ui/regions/regions-close-object-into-object-1.stderr diff --git a/src/test/ui/regions/regions-close-object-into-object-2.rs b/tests/ui/regions/regions-close-object-into-object-2.rs similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-2.rs rename to tests/ui/regions/regions-close-object-into-object-2.rs diff --git a/src/test/ui/regions/regions-close-object-into-object-2.stderr b/tests/ui/regions/regions-close-object-into-object-2.stderr similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-2.stderr rename to tests/ui/regions/regions-close-object-into-object-2.stderr diff --git a/src/test/ui/regions/regions-close-object-into-object-3.rs b/tests/ui/regions/regions-close-object-into-object-3.rs similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-3.rs rename to tests/ui/regions/regions-close-object-into-object-3.rs diff --git a/src/test/ui/regions/regions-close-object-into-object-3.stderr b/tests/ui/regions/regions-close-object-into-object-3.stderr similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-3.stderr rename to tests/ui/regions/regions-close-object-into-object-3.stderr diff --git a/src/test/ui/regions/regions-close-object-into-object-4.rs b/tests/ui/regions/regions-close-object-into-object-4.rs similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-4.rs rename to tests/ui/regions/regions-close-object-into-object-4.rs diff --git a/src/test/ui/regions/regions-close-object-into-object-4.stderr b/tests/ui/regions/regions-close-object-into-object-4.stderr similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-4.stderr rename to tests/ui/regions/regions-close-object-into-object-4.stderr diff --git a/src/test/ui/regions/regions-close-object-into-object-5.rs b/tests/ui/regions/regions-close-object-into-object-5.rs similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-5.rs rename to tests/ui/regions/regions-close-object-into-object-5.rs diff --git a/src/test/ui/regions/regions-close-object-into-object-5.stderr b/tests/ui/regions/regions-close-object-into-object-5.stderr similarity index 100% rename from src/test/ui/regions/regions-close-object-into-object-5.stderr rename to tests/ui/regions/regions-close-object-into-object-5.stderr diff --git a/src/test/ui/regions/regions-close-over-type-parameter-1.rs b/tests/ui/regions/regions-close-over-type-parameter-1.rs similarity index 100% rename from src/test/ui/regions/regions-close-over-type-parameter-1.rs rename to tests/ui/regions/regions-close-over-type-parameter-1.rs diff --git a/src/test/ui/regions/regions-close-over-type-parameter-1.stderr b/tests/ui/regions/regions-close-over-type-parameter-1.stderr similarity index 100% rename from src/test/ui/regions/regions-close-over-type-parameter-1.stderr rename to tests/ui/regions/regions-close-over-type-parameter-1.stderr diff --git a/src/test/ui/regions/regions-close-over-type-parameter-multiple.rs b/tests/ui/regions/regions-close-over-type-parameter-multiple.rs similarity index 100% rename from src/test/ui/regions/regions-close-over-type-parameter-multiple.rs rename to tests/ui/regions/regions-close-over-type-parameter-multiple.rs diff --git a/src/test/ui/regions/regions-close-over-type-parameter-multiple.stderr b/tests/ui/regions/regions-close-over-type-parameter-multiple.stderr similarity index 100% rename from src/test/ui/regions/regions-close-over-type-parameter-multiple.stderr rename to tests/ui/regions/regions-close-over-type-parameter-multiple.stderr diff --git a/src/test/ui/regions/regions-close-over-type-parameter-successfully.rs b/tests/ui/regions/regions-close-over-type-parameter-successfully.rs similarity index 100% rename from src/test/ui/regions/regions-close-over-type-parameter-successfully.rs rename to tests/ui/regions/regions-close-over-type-parameter-successfully.rs diff --git a/src/test/ui/regions/regions-close-param-into-object.rs b/tests/ui/regions/regions-close-param-into-object.rs similarity index 100% rename from src/test/ui/regions/regions-close-param-into-object.rs rename to tests/ui/regions/regions-close-param-into-object.rs diff --git a/src/test/ui/regions/regions-close-param-into-object.stderr b/tests/ui/regions/regions-close-param-into-object.stderr similarity index 100% rename from src/test/ui/regions/regions-close-param-into-object.stderr rename to tests/ui/regions/regions-close-param-into-object.stderr diff --git a/src/test/ui/regions/regions-copy-closure.rs b/tests/ui/regions/regions-copy-closure.rs similarity index 100% rename from src/test/ui/regions/regions-copy-closure.rs rename to tests/ui/regions/regions-copy-closure.rs diff --git a/src/test/ui/regions/regions-creating-enums.rs b/tests/ui/regions/regions-creating-enums.rs similarity index 100% rename from src/test/ui/regions/regions-creating-enums.rs rename to tests/ui/regions/regions-creating-enums.rs diff --git a/src/test/ui/regions/regions-creating-enums.stderr b/tests/ui/regions/regions-creating-enums.stderr similarity index 100% rename from src/test/ui/regions/regions-creating-enums.stderr rename to tests/ui/regions/regions-creating-enums.stderr diff --git a/src/test/ui/regions/regions-creating-enums2.rs b/tests/ui/regions/regions-creating-enums2.rs similarity index 100% rename from src/test/ui/regions/regions-creating-enums2.rs rename to tests/ui/regions/regions-creating-enums2.rs diff --git a/src/test/ui/regions/regions-creating-enums3.rs b/tests/ui/regions/regions-creating-enums3.rs similarity index 100% rename from src/test/ui/regions/regions-creating-enums3.rs rename to tests/ui/regions/regions-creating-enums3.rs diff --git a/src/test/ui/regions/regions-creating-enums3.stderr b/tests/ui/regions/regions-creating-enums3.stderr similarity index 100% rename from src/test/ui/regions/regions-creating-enums3.stderr rename to tests/ui/regions/regions-creating-enums3.stderr diff --git a/src/test/ui/regions/regions-creating-enums4.rs b/tests/ui/regions/regions-creating-enums4.rs similarity index 100% rename from src/test/ui/regions/regions-creating-enums4.rs rename to tests/ui/regions/regions-creating-enums4.rs diff --git a/src/test/ui/regions/regions-creating-enums4.stderr b/tests/ui/regions/regions-creating-enums4.stderr similarity index 100% rename from src/test/ui/regions/regions-creating-enums4.stderr rename to tests/ui/regions/regions-creating-enums4.stderr diff --git a/src/test/ui/regions/regions-creating-enums5.rs b/tests/ui/regions/regions-creating-enums5.rs similarity index 100% rename from src/test/ui/regions/regions-creating-enums5.rs rename to tests/ui/regions/regions-creating-enums5.rs diff --git a/src/test/ui/regions/regions-debruijn-of-object.rs b/tests/ui/regions/regions-debruijn-of-object.rs similarity index 100% rename from src/test/ui/regions/regions-debruijn-of-object.rs rename to tests/ui/regions/regions-debruijn-of-object.rs diff --git a/src/test/ui/regions/regions-dependent-addr-of.rs b/tests/ui/regions/regions-dependent-addr-of.rs similarity index 100% rename from src/test/ui/regions/regions-dependent-addr-of.rs rename to tests/ui/regions/regions-dependent-addr-of.rs diff --git a/src/test/ui/regions/regions-dependent-autofn.rs b/tests/ui/regions/regions-dependent-autofn.rs similarity index 100% rename from src/test/ui/regions/regions-dependent-autofn.rs rename to tests/ui/regions/regions-dependent-autofn.rs diff --git a/src/test/ui/regions/regions-dependent-autoslice.rs b/tests/ui/regions/regions-dependent-autoslice.rs similarity index 100% rename from src/test/ui/regions/regions-dependent-autoslice.rs rename to tests/ui/regions/regions-dependent-autoslice.rs diff --git a/src/test/ui/regions/regions-dependent-let-ref.rs b/tests/ui/regions/regions-dependent-let-ref.rs similarity index 100% rename from src/test/ui/regions/regions-dependent-let-ref.rs rename to tests/ui/regions/regions-dependent-let-ref.rs diff --git a/src/test/ui/regions/regions-early-bound-error-method.rs b/tests/ui/regions/regions-early-bound-error-method.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-error-method.rs rename to tests/ui/regions/regions-early-bound-error-method.rs diff --git a/src/test/ui/regions/regions-early-bound-error-method.stderr b/tests/ui/regions/regions-early-bound-error-method.stderr similarity index 100% rename from src/test/ui/regions/regions-early-bound-error-method.stderr rename to tests/ui/regions/regions-early-bound-error-method.stderr diff --git a/src/test/ui/regions/regions-early-bound-error.rs b/tests/ui/regions/regions-early-bound-error.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-error.rs rename to tests/ui/regions/regions-early-bound-error.rs diff --git a/src/test/ui/regions/regions-early-bound-error.stderr b/tests/ui/regions/regions-early-bound-error.stderr similarity index 100% rename from src/test/ui/regions/regions-early-bound-error.stderr rename to tests/ui/regions/regions-early-bound-error.stderr diff --git a/src/test/ui/regions/regions-early-bound-lifetime-in-assoc-fn.rs b/tests/ui/regions/regions-early-bound-lifetime-in-assoc-fn.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-lifetime-in-assoc-fn.rs rename to tests/ui/regions/regions-early-bound-lifetime-in-assoc-fn.rs diff --git a/src/test/ui/regions/regions-early-bound-trait-param.rs b/tests/ui/regions/regions-early-bound-trait-param.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-trait-param.rs rename to tests/ui/regions/regions-early-bound-trait-param.rs diff --git a/src/test/ui/regions/regions-early-bound-used-in-bound-method.rs b/tests/ui/regions/regions-early-bound-used-in-bound-method.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-used-in-bound-method.rs rename to tests/ui/regions/regions-early-bound-used-in-bound-method.rs diff --git a/src/test/ui/regions/regions-early-bound-used-in-bound.rs b/tests/ui/regions/regions-early-bound-used-in-bound.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-used-in-bound.rs rename to tests/ui/regions/regions-early-bound-used-in-bound.rs diff --git a/src/test/ui/regions/regions-early-bound-used-in-type-param.rs b/tests/ui/regions/regions-early-bound-used-in-type-param.rs similarity index 100% rename from src/test/ui/regions/regions-early-bound-used-in-type-param.rs rename to tests/ui/regions/regions-early-bound-used-in-type-param.rs diff --git a/src/test/ui/regions/regions-escape-into-other-fn.rs b/tests/ui/regions/regions-escape-into-other-fn.rs similarity index 100% rename from src/test/ui/regions/regions-escape-into-other-fn.rs rename to tests/ui/regions/regions-escape-into-other-fn.rs diff --git a/src/test/ui/regions/regions-escape-method.rs b/tests/ui/regions/regions-escape-method.rs similarity index 100% rename from src/test/ui/regions/regions-escape-method.rs rename to tests/ui/regions/regions-escape-method.rs diff --git a/src/test/ui/regions/regions-escape-method.stderr b/tests/ui/regions/regions-escape-method.stderr similarity index 100% rename from src/test/ui/regions/regions-escape-method.stderr rename to tests/ui/regions/regions-escape-method.stderr diff --git a/src/test/ui/regions/regions-escape-via-trait-or-not.rs b/tests/ui/regions/regions-escape-via-trait-or-not.rs similarity index 100% rename from src/test/ui/regions/regions-escape-via-trait-or-not.rs rename to tests/ui/regions/regions-escape-via-trait-or-not.rs diff --git a/src/test/ui/regions/regions-escape-via-trait-or-not.stderr b/tests/ui/regions/regions-escape-via-trait-or-not.stderr similarity index 100% rename from src/test/ui/regions/regions-escape-via-trait-or-not.stderr rename to tests/ui/regions/regions-escape-via-trait-or-not.stderr diff --git a/src/test/ui/regions/regions-expl-self.rs b/tests/ui/regions/regions-expl-self.rs similarity index 100% rename from src/test/ui/regions/regions-expl-self.rs rename to tests/ui/regions/regions-expl-self.rs diff --git a/src/test/ui/regions/regions-fn-subtyping-2.rs b/tests/ui/regions/regions-fn-subtyping-2.rs similarity index 100% rename from src/test/ui/regions/regions-fn-subtyping-2.rs rename to tests/ui/regions/regions-fn-subtyping-2.rs diff --git a/src/test/ui/regions/regions-fn-subtyping-return-static-fail.rs b/tests/ui/regions/regions-fn-subtyping-return-static-fail.rs similarity index 100% rename from src/test/ui/regions/regions-fn-subtyping-return-static-fail.rs rename to tests/ui/regions/regions-fn-subtyping-return-static-fail.rs diff --git a/src/test/ui/regions/regions-fn-subtyping-return-static-fail.stderr b/tests/ui/regions/regions-fn-subtyping-return-static-fail.stderr similarity index 100% rename from src/test/ui/regions/regions-fn-subtyping-return-static-fail.stderr rename to tests/ui/regions/regions-fn-subtyping-return-static-fail.stderr diff --git a/src/test/ui/regions/regions-fn-subtyping-return-static.rs b/tests/ui/regions/regions-fn-subtyping-return-static.rs similarity index 100% rename from src/test/ui/regions/regions-fn-subtyping-return-static.rs rename to tests/ui/regions/regions-fn-subtyping-return-static.rs diff --git a/src/test/ui/regions/regions-fn-subtyping.rs b/tests/ui/regions/regions-fn-subtyping.rs similarity index 100% rename from src/test/ui/regions/regions-fn-subtyping.rs rename to tests/ui/regions/regions-fn-subtyping.rs diff --git a/src/test/ui/regions/regions-free-region-ordering-callee-4.rs b/tests/ui/regions/regions-free-region-ordering-callee-4.rs similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-callee-4.rs rename to tests/ui/regions/regions-free-region-ordering-callee-4.rs diff --git a/src/test/ui/regions/regions-free-region-ordering-callee-4.stderr b/tests/ui/regions/regions-free-region-ordering-callee-4.stderr similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-callee-4.stderr rename to tests/ui/regions/regions-free-region-ordering-callee-4.stderr diff --git a/src/test/ui/regions/regions-free-region-ordering-callee.rs b/tests/ui/regions/regions-free-region-ordering-callee.rs similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-callee.rs rename to tests/ui/regions/regions-free-region-ordering-callee.rs diff --git a/src/test/ui/regions/regions-free-region-ordering-callee.stderr b/tests/ui/regions/regions-free-region-ordering-callee.stderr similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-callee.stderr rename to tests/ui/regions/regions-free-region-ordering-callee.stderr diff --git a/src/test/ui/regions/regions-free-region-ordering-caller.rs b/tests/ui/regions/regions-free-region-ordering-caller.rs similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-caller.rs rename to tests/ui/regions/regions-free-region-ordering-caller.rs diff --git a/src/test/ui/regions/regions-free-region-ordering-caller.stderr b/tests/ui/regions/regions-free-region-ordering-caller.stderr similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-caller.stderr rename to tests/ui/regions/regions-free-region-ordering-caller.stderr diff --git a/src/test/ui/regions/regions-free-region-ordering-caller1.rs b/tests/ui/regions/regions-free-region-ordering-caller1.rs similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-caller1.rs rename to tests/ui/regions/regions-free-region-ordering-caller1.rs diff --git a/src/test/ui/regions/regions-free-region-ordering-caller1.stderr b/tests/ui/regions/regions-free-region-ordering-caller1.stderr similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-caller1.stderr rename to tests/ui/regions/regions-free-region-ordering-caller1.stderr diff --git a/src/test/ui/regions/regions-free-region-ordering-incorrect.rs b/tests/ui/regions/regions-free-region-ordering-incorrect.rs similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-incorrect.rs rename to tests/ui/regions/regions-free-region-ordering-incorrect.rs diff --git a/src/test/ui/regions/regions-free-region-ordering-incorrect.stderr b/tests/ui/regions/regions-free-region-ordering-incorrect.stderr similarity index 100% rename from src/test/ui/regions/regions-free-region-ordering-incorrect.stderr rename to tests/ui/regions/regions-free-region-ordering-incorrect.stderr diff --git a/src/test/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs b/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs similarity index 100% rename from src/test/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs rename to tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.rs diff --git a/src/test/ui/regions/regions-free-region-outlives-static-outlives-free-region.stderr b/tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.stderr similarity index 100% rename from src/test/ui/regions/regions-free-region-outlives-static-outlives-free-region.stderr rename to tests/ui/regions/regions-free-region-outlives-static-outlives-free-region.stderr diff --git a/src/test/ui/regions/regions-glb-free-free.rs b/tests/ui/regions/regions-glb-free-free.rs similarity index 100% rename from src/test/ui/regions/regions-glb-free-free.rs rename to tests/ui/regions/regions-glb-free-free.rs diff --git a/src/test/ui/regions/regions-glb-free-free.stderr b/tests/ui/regions/regions-glb-free-free.stderr similarity index 100% rename from src/test/ui/regions/regions-glb-free-free.stderr rename to tests/ui/regions/regions-glb-free-free.stderr diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-1.rs b/tests/ui/regions/regions-implied-bounds-projection-gap-1.rs similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-1.rs rename to tests/ui/regions/regions-implied-bounds-projection-gap-1.rs diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-1.stderr b/tests/ui/regions/regions-implied-bounds-projection-gap-1.stderr similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-1.stderr rename to tests/ui/regions/regions-implied-bounds-projection-gap-1.stderr diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-2.rs b/tests/ui/regions/regions-implied-bounds-projection-gap-2.rs similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-2.rs rename to tests/ui/regions/regions-implied-bounds-projection-gap-2.rs diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-3.rs b/tests/ui/regions/regions-implied-bounds-projection-gap-3.rs similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-3.rs rename to tests/ui/regions/regions-implied-bounds-projection-gap-3.rs diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-4.rs b/tests/ui/regions/regions-implied-bounds-projection-gap-4.rs similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-4.rs rename to tests/ui/regions/regions-implied-bounds-projection-gap-4.rs diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-hr-1.rs b/tests/ui/regions/regions-implied-bounds-projection-gap-hr-1.rs similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-hr-1.rs rename to tests/ui/regions/regions-implied-bounds-projection-gap-hr-1.rs diff --git a/src/test/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr b/tests/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr similarity index 100% rename from src/test/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr rename to tests/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr diff --git a/src/test/ui/regions/regions-in-enums-anon.rs b/tests/ui/regions/regions-in-enums-anon.rs similarity index 100% rename from src/test/ui/regions/regions-in-enums-anon.rs rename to tests/ui/regions/regions-in-enums-anon.rs diff --git a/src/test/ui/regions/regions-in-enums-anon.stderr b/tests/ui/regions/regions-in-enums-anon.stderr similarity index 100% rename from src/test/ui/regions/regions-in-enums-anon.stderr rename to tests/ui/regions/regions-in-enums-anon.stderr diff --git a/src/test/ui/regions/regions-in-enums.rs b/tests/ui/regions/regions-in-enums.rs similarity index 100% rename from src/test/ui/regions/regions-in-enums.rs rename to tests/ui/regions/regions-in-enums.rs diff --git a/src/test/ui/regions/regions-in-enums.stderr b/tests/ui/regions/regions-in-enums.stderr similarity index 100% rename from src/test/ui/regions/regions-in-enums.stderr rename to tests/ui/regions/regions-in-enums.stderr diff --git a/src/test/ui/regions/regions-in-structs-anon.rs b/tests/ui/regions/regions-in-structs-anon.rs similarity index 100% rename from src/test/ui/regions/regions-in-structs-anon.rs rename to tests/ui/regions/regions-in-structs-anon.rs diff --git a/src/test/ui/regions/regions-in-structs-anon.stderr b/tests/ui/regions/regions-in-structs-anon.stderr similarity index 100% rename from src/test/ui/regions/regions-in-structs-anon.stderr rename to tests/ui/regions/regions-in-structs-anon.stderr diff --git a/src/test/ui/regions/regions-in-structs.rs b/tests/ui/regions/regions-in-structs.rs similarity index 100% rename from src/test/ui/regions/regions-in-structs.rs rename to tests/ui/regions/regions-in-structs.rs diff --git a/src/test/ui/regions/regions-in-structs.stderr b/tests/ui/regions/regions-in-structs.stderr similarity index 100% rename from src/test/ui/regions/regions-in-structs.stderr rename to tests/ui/regions/regions-in-structs.stderr diff --git a/src/test/ui/regions/regions-infer-at-fn-not-param.rs b/tests/ui/regions/regions-infer-at-fn-not-param.rs similarity index 100% rename from src/test/ui/regions/regions-infer-at-fn-not-param.rs rename to tests/ui/regions/regions-infer-at-fn-not-param.rs diff --git a/src/test/ui/regions/regions-infer-at-fn-not-param.stderr b/tests/ui/regions/regions-infer-at-fn-not-param.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-at-fn-not-param.stderr rename to tests/ui/regions/regions-infer-at-fn-not-param.stderr diff --git a/src/test/ui/regions/regions-infer-borrow-scope-addr-of.rs b/tests/ui/regions/regions-infer-borrow-scope-addr-of.rs similarity index 100% rename from src/test/ui/regions/regions-infer-borrow-scope-addr-of.rs rename to tests/ui/regions/regions-infer-borrow-scope-addr-of.rs diff --git a/src/test/ui/regions/regions-infer-borrow-scope-too-big.rs b/tests/ui/regions/regions-infer-borrow-scope-too-big.rs similarity index 100% rename from src/test/ui/regions/regions-infer-borrow-scope-too-big.rs rename to tests/ui/regions/regions-infer-borrow-scope-too-big.rs diff --git a/src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr b/tests/ui/regions/regions-infer-borrow-scope-too-big.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-borrow-scope-too-big.stderr rename to tests/ui/regions/regions-infer-borrow-scope-too-big.stderr diff --git a/src/test/ui/regions/regions-infer-borrow-scope-view.rs b/tests/ui/regions/regions-infer-borrow-scope-view.rs similarity index 100% rename from src/test/ui/regions/regions-infer-borrow-scope-view.rs rename to tests/ui/regions/regions-infer-borrow-scope-view.rs diff --git a/src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs b/tests/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs similarity index 100% rename from src/test/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs rename to tests/ui/regions/regions-infer-borrow-scope-within-loop-ok.rs diff --git a/src/test/ui/regions/regions-infer-borrow-scope.rs b/tests/ui/regions/regions-infer-borrow-scope.rs similarity index 100% rename from src/test/ui/regions/regions-infer-borrow-scope.rs rename to tests/ui/regions/regions-infer-borrow-scope.rs diff --git a/src/test/ui/regions/regions-infer-bound-from-trait-self.rs b/tests/ui/regions/regions-infer-bound-from-trait-self.rs similarity index 100% rename from src/test/ui/regions/regions-infer-bound-from-trait-self.rs rename to tests/ui/regions/regions-infer-bound-from-trait-self.rs diff --git a/src/test/ui/regions/regions-infer-bound-from-trait-self.stderr b/tests/ui/regions/regions-infer-bound-from-trait-self.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-bound-from-trait-self.stderr rename to tests/ui/regions/regions-infer-bound-from-trait-self.stderr diff --git a/src/test/ui/regions/regions-infer-bound-from-trait.rs b/tests/ui/regions/regions-infer-bound-from-trait.rs similarity index 100% rename from src/test/ui/regions/regions-infer-bound-from-trait.rs rename to tests/ui/regions/regions-infer-bound-from-trait.rs diff --git a/src/test/ui/regions/regions-infer-bound-from-trait.stderr b/tests/ui/regions/regions-infer-bound-from-trait.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-bound-from-trait.stderr rename to tests/ui/regions/regions-infer-bound-from-trait.stderr diff --git a/src/test/ui/regions/regions-infer-call-2.rs b/tests/ui/regions/regions-infer-call-2.rs similarity index 100% rename from src/test/ui/regions/regions-infer-call-2.rs rename to tests/ui/regions/regions-infer-call-2.rs diff --git a/src/test/ui/regions/regions-infer-call-3.rs b/tests/ui/regions/regions-infer-call-3.rs similarity index 100% rename from src/test/ui/regions/regions-infer-call-3.rs rename to tests/ui/regions/regions-infer-call-3.rs diff --git a/src/test/ui/regions/regions-infer-call-3.stderr b/tests/ui/regions/regions-infer-call-3.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-call-3.stderr rename to tests/ui/regions/regions-infer-call-3.stderr diff --git a/src/test/ui/regions/regions-infer-call.rs b/tests/ui/regions/regions-infer-call.rs similarity index 100% rename from src/test/ui/regions/regions-infer-call.rs rename to tests/ui/regions/regions-infer-call.rs diff --git a/src/test/ui/regions/regions-infer-contravariance-due-to-decl.rs b/tests/ui/regions/regions-infer-contravariance-due-to-decl.rs similarity index 100% rename from src/test/ui/regions/regions-infer-contravariance-due-to-decl.rs rename to tests/ui/regions/regions-infer-contravariance-due-to-decl.rs diff --git a/src/test/ui/regions/regions-infer-contravariance-due-to-decl.stderr b/tests/ui/regions/regions-infer-contravariance-due-to-decl.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-contravariance-due-to-decl.stderr rename to tests/ui/regions/regions-infer-contravariance-due-to-decl.stderr diff --git a/src/test/ui/regions/regions-infer-contravariance-due-to-ret.rs b/tests/ui/regions/regions-infer-contravariance-due-to-ret.rs similarity index 100% rename from src/test/ui/regions/regions-infer-contravariance-due-to-ret.rs rename to tests/ui/regions/regions-infer-contravariance-due-to-ret.rs diff --git a/src/test/ui/regions/regions-infer-covariance-due-to-decl.rs b/tests/ui/regions/regions-infer-covariance-due-to-decl.rs similarity index 100% rename from src/test/ui/regions/regions-infer-covariance-due-to-decl.rs rename to tests/ui/regions/regions-infer-covariance-due-to-decl.rs diff --git a/src/test/ui/regions/regions-infer-covariance-due-to-decl.stderr b/tests/ui/regions/regions-infer-covariance-due-to-decl.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-covariance-due-to-decl.stderr rename to tests/ui/regions/regions-infer-covariance-due-to-decl.stderr diff --git a/src/test/ui/regions/regions-infer-invariance-due-to-decl.rs b/tests/ui/regions/regions-infer-invariance-due-to-decl.rs similarity index 100% rename from src/test/ui/regions/regions-infer-invariance-due-to-decl.rs rename to tests/ui/regions/regions-infer-invariance-due-to-decl.rs diff --git a/src/test/ui/regions/regions-infer-invariance-due-to-decl.stderr b/tests/ui/regions/regions-infer-invariance-due-to-decl.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-invariance-due-to-decl.stderr rename to tests/ui/regions/regions-infer-invariance-due-to-decl.stderr diff --git a/src/test/ui/regions/regions-infer-invariance-due-to-mutability-3.rs b/tests/ui/regions/regions-infer-invariance-due-to-mutability-3.rs similarity index 100% rename from src/test/ui/regions/regions-infer-invariance-due-to-mutability-3.rs rename to tests/ui/regions/regions-infer-invariance-due-to-mutability-3.rs diff --git a/src/test/ui/regions/regions-infer-invariance-due-to-mutability-3.stderr b/tests/ui/regions/regions-infer-invariance-due-to-mutability-3.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-invariance-due-to-mutability-3.stderr rename to tests/ui/regions/regions-infer-invariance-due-to-mutability-3.stderr diff --git a/src/test/ui/regions/regions-infer-invariance-due-to-mutability-4.rs b/tests/ui/regions/regions-infer-invariance-due-to-mutability-4.rs similarity index 100% rename from src/test/ui/regions/regions-infer-invariance-due-to-mutability-4.rs rename to tests/ui/regions/regions-infer-invariance-due-to-mutability-4.rs diff --git a/src/test/ui/regions/regions-infer-invariance-due-to-mutability-4.stderr b/tests/ui/regions/regions-infer-invariance-due-to-mutability-4.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-invariance-due-to-mutability-4.stderr rename to tests/ui/regions/regions-infer-invariance-due-to-mutability-4.stderr diff --git a/src/test/ui/regions/regions-infer-not-param.rs b/tests/ui/regions/regions-infer-not-param.rs similarity index 100% rename from src/test/ui/regions/regions-infer-not-param.rs rename to tests/ui/regions/regions-infer-not-param.rs diff --git a/src/test/ui/regions/regions-infer-not-param.stderr b/tests/ui/regions/regions-infer-not-param.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-not-param.stderr rename to tests/ui/regions/regions-infer-not-param.stderr diff --git a/src/test/ui/regions/regions-infer-paramd-indirect.rs b/tests/ui/regions/regions-infer-paramd-indirect.rs similarity index 100% rename from src/test/ui/regions/regions-infer-paramd-indirect.rs rename to tests/ui/regions/regions-infer-paramd-indirect.rs diff --git a/src/test/ui/regions/regions-infer-paramd-indirect.stderr b/tests/ui/regions/regions-infer-paramd-indirect.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-paramd-indirect.stderr rename to tests/ui/regions/regions-infer-paramd-indirect.stderr diff --git a/src/test/ui/regions/regions-infer-proc-static-upvar.rs b/tests/ui/regions/regions-infer-proc-static-upvar.rs similarity index 100% rename from src/test/ui/regions/regions-infer-proc-static-upvar.rs rename to tests/ui/regions/regions-infer-proc-static-upvar.rs diff --git a/src/test/ui/regions/regions-infer-proc-static-upvar.stderr b/tests/ui/regions/regions-infer-proc-static-upvar.stderr similarity index 100% rename from src/test/ui/regions/regions-infer-proc-static-upvar.stderr rename to tests/ui/regions/regions-infer-proc-static-upvar.stderr diff --git a/src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs b/tests/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs similarity index 100% rename from src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs rename to tests/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs diff --git a/src/test/ui/regions/regions-infer-region-in-fn-but-not-type.rs b/tests/ui/regions/regions-infer-region-in-fn-but-not-type.rs similarity index 100% rename from src/test/ui/regions/regions-infer-region-in-fn-but-not-type.rs rename to tests/ui/regions/regions-infer-region-in-fn-but-not-type.rs diff --git a/src/test/ui/regions/regions-infer-static-from-proc.rs b/tests/ui/regions/regions-infer-static-from-proc.rs similarity index 100% rename from src/test/ui/regions/regions-infer-static-from-proc.rs rename to tests/ui/regions/regions-infer-static-from-proc.rs diff --git a/src/test/ui/regions/regions-issue-21422.rs b/tests/ui/regions/regions-issue-21422.rs similarity index 100% rename from src/test/ui/regions/regions-issue-21422.rs rename to tests/ui/regions/regions-issue-21422.rs diff --git a/src/test/ui/regions/regions-issue-22246.rs b/tests/ui/regions/regions-issue-22246.rs similarity index 100% rename from src/test/ui/regions/regions-issue-22246.rs rename to tests/ui/regions/regions-issue-22246.rs diff --git a/src/test/ui/regions/regions-lifetime-bounds-on-fns.rs b/tests/ui/regions/regions-lifetime-bounds-on-fns.rs similarity index 100% rename from src/test/ui/regions/regions-lifetime-bounds-on-fns.rs rename to tests/ui/regions/regions-lifetime-bounds-on-fns.rs diff --git a/src/test/ui/regions/regions-lifetime-bounds-on-fns.stderr b/tests/ui/regions/regions-lifetime-bounds-on-fns.stderr similarity index 100% rename from src/test/ui/regions/regions-lifetime-bounds-on-fns.stderr rename to tests/ui/regions/regions-lifetime-bounds-on-fns.stderr diff --git a/src/test/ui/regions/regions-lifetime-nonfree-late-bound.rs b/tests/ui/regions/regions-lifetime-nonfree-late-bound.rs similarity index 100% rename from src/test/ui/regions/regions-lifetime-nonfree-late-bound.rs rename to tests/ui/regions/regions-lifetime-nonfree-late-bound.rs diff --git a/src/test/ui/regions/regions-lifetime-of-struct-or-enum-variant.rs b/tests/ui/regions/regions-lifetime-of-struct-or-enum-variant.rs similarity index 100% rename from src/test/ui/regions/regions-lifetime-of-struct-or-enum-variant.rs rename to tests/ui/regions/regions-lifetime-of-struct-or-enum-variant.rs diff --git a/src/test/ui/regions/regions-lifetime-of-struct-or-enum-variant.stderr b/tests/ui/regions/regions-lifetime-of-struct-or-enum-variant.stderr similarity index 100% rename from src/test/ui/regions/regions-lifetime-of-struct-or-enum-variant.stderr rename to tests/ui/regions/regions-lifetime-of-struct-or-enum-variant.stderr diff --git a/src/test/ui/regions/regions-lifetime-static-items-enclosing-scopes.rs b/tests/ui/regions/regions-lifetime-static-items-enclosing-scopes.rs similarity index 100% rename from src/test/ui/regions/regions-lifetime-static-items-enclosing-scopes.rs rename to tests/ui/regions/regions-lifetime-static-items-enclosing-scopes.rs diff --git a/src/test/ui/regions/regions-link-fn-args.rs b/tests/ui/regions/regions-link-fn-args.rs similarity index 100% rename from src/test/ui/regions/regions-link-fn-args.rs rename to tests/ui/regions/regions-link-fn-args.rs diff --git a/src/test/ui/regions/regions-lub-ref-ref-rc.rs b/tests/ui/regions/regions-lub-ref-ref-rc.rs similarity index 100% rename from src/test/ui/regions/regions-lub-ref-ref-rc.rs rename to tests/ui/regions/regions-lub-ref-ref-rc.rs diff --git a/src/test/ui/regions/regions-mock-codegen.rs b/tests/ui/regions/regions-mock-codegen.rs similarity index 100% rename from src/test/ui/regions/regions-mock-codegen.rs rename to tests/ui/regions/regions-mock-codegen.rs diff --git a/src/test/ui/regions/regions-name-duplicated.rs b/tests/ui/regions/regions-name-duplicated.rs similarity index 100% rename from src/test/ui/regions/regions-name-duplicated.rs rename to tests/ui/regions/regions-name-duplicated.rs diff --git a/src/test/ui/regions/regions-name-duplicated.stderr b/tests/ui/regions/regions-name-duplicated.stderr similarity index 100% rename from src/test/ui/regions/regions-name-duplicated.stderr rename to tests/ui/regions/regions-name-duplicated.stderr diff --git a/src/test/ui/regions/regions-name-static.rs b/tests/ui/regions/regions-name-static.rs similarity index 100% rename from src/test/ui/regions/regions-name-static.rs rename to tests/ui/regions/regions-name-static.rs diff --git a/src/test/ui/regions/regions-name-static.stderr b/tests/ui/regions/regions-name-static.stderr similarity index 100% rename from src/test/ui/regions/regions-name-static.stderr rename to tests/ui/regions/regions-name-static.stderr diff --git a/src/test/ui/regions/regions-name-undeclared.rs b/tests/ui/regions/regions-name-undeclared.rs similarity index 100% rename from src/test/ui/regions/regions-name-undeclared.rs rename to tests/ui/regions/regions-name-undeclared.rs diff --git a/src/test/ui/regions/regions-name-undeclared.stderr b/tests/ui/regions/regions-name-undeclared.stderr similarity index 100% rename from src/test/ui/regions/regions-name-undeclared.stderr rename to tests/ui/regions/regions-name-undeclared.stderr diff --git a/src/test/ui/regions/regions-nested-fns-2.rs b/tests/ui/regions/regions-nested-fns-2.rs similarity index 100% rename from src/test/ui/regions/regions-nested-fns-2.rs rename to tests/ui/regions/regions-nested-fns-2.rs diff --git a/src/test/ui/regions/regions-nested-fns-2.stderr b/tests/ui/regions/regions-nested-fns-2.stderr similarity index 100% rename from src/test/ui/regions/regions-nested-fns-2.stderr rename to tests/ui/regions/regions-nested-fns-2.stderr diff --git a/src/test/ui/regions/regions-nested-fns.rs b/tests/ui/regions/regions-nested-fns.rs similarity index 100% rename from src/test/ui/regions/regions-nested-fns.rs rename to tests/ui/regions/regions-nested-fns.rs diff --git a/src/test/ui/regions/regions-nested-fns.stderr b/tests/ui/regions/regions-nested-fns.stderr similarity index 100% rename from src/test/ui/regions/regions-nested-fns.stderr rename to tests/ui/regions/regions-nested-fns.stderr diff --git a/src/test/ui/regions/regions-no-bound-in-argument-cleanup.rs b/tests/ui/regions/regions-no-bound-in-argument-cleanup.rs similarity index 100% rename from src/test/ui/regions/regions-no-bound-in-argument-cleanup.rs rename to tests/ui/regions/regions-no-bound-in-argument-cleanup.rs diff --git a/src/test/ui/regions/regions-no-variance-from-fn-generics.rs b/tests/ui/regions/regions-no-variance-from-fn-generics.rs similarity index 100% rename from src/test/ui/regions/regions-no-variance-from-fn-generics.rs rename to tests/ui/regions/regions-no-variance-from-fn-generics.rs diff --git a/src/test/ui/regions/regions-normalize-in-where-clause-list.rs b/tests/ui/regions/regions-normalize-in-where-clause-list.rs similarity index 100% rename from src/test/ui/regions/regions-normalize-in-where-clause-list.rs rename to tests/ui/regions/regions-normalize-in-where-clause-list.rs diff --git a/src/test/ui/regions/regions-normalize-in-where-clause-list.stderr b/tests/ui/regions/regions-normalize-in-where-clause-list.stderr similarity index 100% rename from src/test/ui/regions/regions-normalize-in-where-clause-list.stderr rename to tests/ui/regions/regions-normalize-in-where-clause-list.stderr diff --git a/src/test/ui/regions/regions-nullary-variant.rs b/tests/ui/regions/regions-nullary-variant.rs similarity index 100% rename from src/test/ui/regions/regions-nullary-variant.rs rename to tests/ui/regions/regions-nullary-variant.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-enum-region-rev.rs b/tests/ui/regions/regions-outlives-nominal-type-enum-region-rev.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-enum-region-rev.rs rename to tests/ui/regions/regions-outlives-nominal-type-enum-region-rev.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-enum-region.rs b/tests/ui/regions/regions-outlives-nominal-type-enum-region.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-enum-region.rs rename to tests/ui/regions/regions-outlives-nominal-type-enum-region.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-enum-type-rev.rs b/tests/ui/regions/regions-outlives-nominal-type-enum-type-rev.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-enum-type-rev.rs rename to tests/ui/regions/regions-outlives-nominal-type-enum-type-rev.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-enum-type.rs b/tests/ui/regions/regions-outlives-nominal-type-enum-type.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-enum-type.rs rename to tests/ui/regions/regions-outlives-nominal-type-enum-type.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-struct-region-rev.rs b/tests/ui/regions/regions-outlives-nominal-type-struct-region-rev.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-struct-region-rev.rs rename to tests/ui/regions/regions-outlives-nominal-type-struct-region-rev.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-struct-region.rs b/tests/ui/regions/regions-outlives-nominal-type-struct-region.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-struct-region.rs rename to tests/ui/regions/regions-outlives-nominal-type-struct-region.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-struct-type-rev.rs b/tests/ui/regions/regions-outlives-nominal-type-struct-type-rev.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-struct-type-rev.rs rename to tests/ui/regions/regions-outlives-nominal-type-struct-type-rev.rs diff --git a/src/test/ui/regions/regions-outlives-nominal-type-struct-type.rs b/tests/ui/regions/regions-outlives-nominal-type-struct-type.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-nominal-type-struct-type.rs rename to tests/ui/regions/regions-outlives-nominal-type-struct-type.rs diff --git a/src/test/ui/regions/regions-outlives-projection-container-hrtb.rs b/tests/ui/regions/regions-outlives-projection-container-hrtb.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-container-hrtb.rs rename to tests/ui/regions/regions-outlives-projection-container-hrtb.rs diff --git a/src/test/ui/regions/regions-outlives-projection-container-hrtb.stderr b/tests/ui/regions/regions-outlives-projection-container-hrtb.stderr similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-container-hrtb.stderr rename to tests/ui/regions/regions-outlives-projection-container-hrtb.stderr diff --git a/src/test/ui/regions/regions-outlives-projection-container-wc.rs b/tests/ui/regions/regions-outlives-projection-container-wc.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-container-wc.rs rename to tests/ui/regions/regions-outlives-projection-container-wc.rs diff --git a/src/test/ui/regions/regions-outlives-projection-container-wc.stderr b/tests/ui/regions/regions-outlives-projection-container-wc.stderr similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-container-wc.stderr rename to tests/ui/regions/regions-outlives-projection-container-wc.stderr diff --git a/src/test/ui/regions/regions-outlives-projection-container.rs b/tests/ui/regions/regions-outlives-projection-container.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-container.rs rename to tests/ui/regions/regions-outlives-projection-container.rs diff --git a/src/test/ui/regions/regions-outlives-projection-container.stderr b/tests/ui/regions/regions-outlives-projection-container.stderr similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-container.stderr rename to tests/ui/regions/regions-outlives-projection-container.stderr diff --git a/src/test/ui/regions/regions-outlives-projection-hrtype.rs b/tests/ui/regions/regions-outlives-projection-hrtype.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-hrtype.rs rename to tests/ui/regions/regions-outlives-projection-hrtype.rs diff --git a/src/test/ui/regions/regions-outlives-projection-trait-def.rs b/tests/ui/regions/regions-outlives-projection-trait-def.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-projection-trait-def.rs rename to tests/ui/regions/regions-outlives-projection-trait-def.rs diff --git a/src/test/ui/regions/regions-outlives-scalar.rs b/tests/ui/regions/regions-outlives-scalar.rs similarity index 100% rename from src/test/ui/regions/regions-outlives-scalar.rs rename to tests/ui/regions/regions-outlives-scalar.rs diff --git a/src/test/ui/regions/regions-params.rs b/tests/ui/regions/regions-params.rs similarity index 100% rename from src/test/ui/regions/regions-params.rs rename to tests/ui/regions/regions-params.rs diff --git a/src/test/ui/regions/regions-pattern-typing-issue-19552.rs b/tests/ui/regions/regions-pattern-typing-issue-19552.rs similarity index 100% rename from src/test/ui/regions/regions-pattern-typing-issue-19552.rs rename to tests/ui/regions/regions-pattern-typing-issue-19552.rs diff --git a/src/test/ui/regions/regions-pattern-typing-issue-19552.stderr b/tests/ui/regions/regions-pattern-typing-issue-19552.stderr similarity index 100% rename from src/test/ui/regions/regions-pattern-typing-issue-19552.stderr rename to tests/ui/regions/regions-pattern-typing-issue-19552.stderr diff --git a/src/test/ui/regions/regions-pattern-typing-issue-19997.rs b/tests/ui/regions/regions-pattern-typing-issue-19997.rs similarity index 100% rename from src/test/ui/regions/regions-pattern-typing-issue-19997.rs rename to tests/ui/regions/regions-pattern-typing-issue-19997.rs diff --git a/src/test/ui/regions/regions-pattern-typing-issue-19997.stderr b/tests/ui/regions/regions-pattern-typing-issue-19997.stderr similarity index 100% rename from src/test/ui/regions/regions-pattern-typing-issue-19997.stderr rename to tests/ui/regions/regions-pattern-typing-issue-19997.stderr diff --git a/src/test/ui/regions/regions-proc-bound-capture.rs b/tests/ui/regions/regions-proc-bound-capture.rs similarity index 100% rename from src/test/ui/regions/regions-proc-bound-capture.rs rename to tests/ui/regions/regions-proc-bound-capture.rs diff --git a/src/test/ui/regions/regions-proc-bound-capture.stderr b/tests/ui/regions/regions-proc-bound-capture.stderr similarity index 100% rename from src/test/ui/regions/regions-proc-bound-capture.stderr rename to tests/ui/regions/regions-proc-bound-capture.stderr diff --git a/src/test/ui/regions/regions-reassign-let-bound-pointer.rs b/tests/ui/regions/regions-reassign-let-bound-pointer.rs similarity index 100% rename from src/test/ui/regions/regions-reassign-let-bound-pointer.rs rename to tests/ui/regions/regions-reassign-let-bound-pointer.rs diff --git a/src/test/ui/regions/regions-reassign-match-bound-pointer.rs b/tests/ui/regions/regions-reassign-match-bound-pointer.rs similarity index 100% rename from src/test/ui/regions/regions-reassign-match-bound-pointer.rs rename to tests/ui/regions/regions-reassign-match-bound-pointer.rs diff --git a/src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.rs b/tests/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.rs similarity index 100% rename from src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.rs rename to tests/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.rs diff --git a/src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.stderr b/tests/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.stderr similarity index 100% rename from src/test/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.stderr rename to tests/ui/regions/regions-reborrow-from-shorter-mut-ref-mut-ref.stderr diff --git a/src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.rs b/tests/ui/regions/regions-reborrow-from-shorter-mut-ref.rs similarity index 100% rename from src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.rs rename to tests/ui/regions/regions-reborrow-from-shorter-mut-ref.rs diff --git a/src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr b/tests/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr similarity index 100% rename from src/test/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr rename to tests/ui/regions/regions-reborrow-from-shorter-mut-ref.stderr diff --git a/src/test/ui/regions/regions-ref-in-fn-arg.rs b/tests/ui/regions/regions-ref-in-fn-arg.rs similarity index 100% rename from src/test/ui/regions/regions-ref-in-fn-arg.rs rename to tests/ui/regions/regions-ref-in-fn-arg.rs diff --git a/src/test/ui/regions/regions-ref-in-fn-arg.stderr b/tests/ui/regions/regions-ref-in-fn-arg.stderr similarity index 100% rename from src/test/ui/regions/regions-ref-in-fn-arg.stderr rename to tests/ui/regions/regions-ref-in-fn-arg.stderr diff --git a/src/test/ui/regions/regions-refcell.rs b/tests/ui/regions/regions-refcell.rs similarity index 100% rename from src/test/ui/regions/regions-refcell.rs rename to tests/ui/regions/regions-refcell.rs diff --git a/src/test/ui/regions/regions-relate-bound-regions-on-closures-to-inference-variables.rs b/tests/ui/regions/regions-relate-bound-regions-on-closures-to-inference-variables.rs similarity index 100% rename from src/test/ui/regions/regions-relate-bound-regions-on-closures-to-inference-variables.rs rename to tests/ui/regions/regions-relate-bound-regions-on-closures-to-inference-variables.rs diff --git a/src/test/ui/regions/regions-ret-borrowed-1.rs b/tests/ui/regions/regions-ret-borrowed-1.rs similarity index 100% rename from src/test/ui/regions/regions-ret-borrowed-1.rs rename to tests/ui/regions/regions-ret-borrowed-1.rs diff --git a/src/test/ui/regions/regions-ret-borrowed-1.stderr b/tests/ui/regions/regions-ret-borrowed-1.stderr similarity index 100% rename from src/test/ui/regions/regions-ret-borrowed-1.stderr rename to tests/ui/regions/regions-ret-borrowed-1.stderr diff --git a/src/test/ui/regions/regions-ret-borrowed.rs b/tests/ui/regions/regions-ret-borrowed.rs similarity index 100% rename from src/test/ui/regions/regions-ret-borrowed.rs rename to tests/ui/regions/regions-ret-borrowed.rs diff --git a/src/test/ui/regions/regions-ret-borrowed.stderr b/tests/ui/regions/regions-ret-borrowed.stderr similarity index 100% rename from src/test/ui/regions/regions-ret-borrowed.stderr rename to tests/ui/regions/regions-ret-borrowed.stderr diff --git a/src/test/ui/regions/regions-ret.rs b/tests/ui/regions/regions-ret.rs similarity index 100% rename from src/test/ui/regions/regions-ret.rs rename to tests/ui/regions/regions-ret.rs diff --git a/src/test/ui/regions/regions-ret.stderr b/tests/ui/regions/regions-ret.stderr similarity index 100% rename from src/test/ui/regions/regions-ret.stderr rename to tests/ui/regions/regions-ret.stderr diff --git a/src/test/ui/regions/regions-return-interior-of-option.rs b/tests/ui/regions/regions-return-interior-of-option.rs similarity index 100% rename from src/test/ui/regions/regions-return-interior-of-option.rs rename to tests/ui/regions/regions-return-interior-of-option.rs diff --git a/src/test/ui/regions/regions-return-ref-to-upvar-issue-17403.rs b/tests/ui/regions/regions-return-ref-to-upvar-issue-17403.rs similarity index 100% rename from src/test/ui/regions/regions-return-ref-to-upvar-issue-17403.rs rename to tests/ui/regions/regions-return-ref-to-upvar-issue-17403.rs diff --git a/src/test/ui/regions/regions-return-ref-to-upvar-issue-17403.stderr b/tests/ui/regions/regions-return-ref-to-upvar-issue-17403.stderr similarity index 100% rename from src/test/ui/regions/regions-return-ref-to-upvar-issue-17403.stderr rename to tests/ui/regions/regions-return-ref-to-upvar-issue-17403.stderr diff --git a/src/test/ui/regions/regions-return-stack-allocated-vec.rs b/tests/ui/regions/regions-return-stack-allocated-vec.rs similarity index 100% rename from src/test/ui/regions/regions-return-stack-allocated-vec.rs rename to tests/ui/regions/regions-return-stack-allocated-vec.rs diff --git a/src/test/ui/regions/regions-return-stack-allocated-vec.stderr b/tests/ui/regions/regions-return-stack-allocated-vec.stderr similarity index 100% rename from src/test/ui/regions/regions-return-stack-allocated-vec.stderr rename to tests/ui/regions/regions-return-stack-allocated-vec.stderr diff --git a/src/test/ui/regions/regions-scope-chain-example.rs b/tests/ui/regions/regions-scope-chain-example.rs similarity index 100% rename from src/test/ui/regions/regions-scope-chain-example.rs rename to tests/ui/regions/regions-scope-chain-example.rs diff --git a/src/test/ui/regions/regions-self-impls.rs b/tests/ui/regions/regions-self-impls.rs similarity index 100% rename from src/test/ui/regions/regions-self-impls.rs rename to tests/ui/regions/regions-self-impls.rs diff --git a/src/test/ui/regions/regions-self-in-enums.rs b/tests/ui/regions/regions-self-in-enums.rs similarity index 100% rename from src/test/ui/regions/regions-self-in-enums.rs rename to tests/ui/regions/regions-self-in-enums.rs diff --git a/src/test/ui/regions/regions-simple.rs b/tests/ui/regions/regions-simple.rs similarity index 100% rename from src/test/ui/regions/regions-simple.rs rename to tests/ui/regions/regions-simple.rs diff --git a/src/test/ui/regions/regions-static-bound-rpass.rs b/tests/ui/regions/regions-static-bound-rpass.rs similarity index 100% rename from src/test/ui/regions/regions-static-bound-rpass.rs rename to tests/ui/regions/regions-static-bound-rpass.rs diff --git a/src/test/ui/regions/regions-static-bound-rpass.stderr b/tests/ui/regions/regions-static-bound-rpass.stderr similarity index 100% rename from src/test/ui/regions/regions-static-bound-rpass.stderr rename to tests/ui/regions/regions-static-bound-rpass.stderr diff --git a/src/test/ui/regions/regions-static-bound.rs b/tests/ui/regions/regions-static-bound.rs similarity index 100% rename from src/test/ui/regions/regions-static-bound.rs rename to tests/ui/regions/regions-static-bound.rs diff --git a/src/test/ui/regions/regions-static-bound.stderr b/tests/ui/regions/regions-static-bound.stderr similarity index 100% rename from src/test/ui/regions/regions-static-bound.stderr rename to tests/ui/regions/regions-static-bound.stderr diff --git a/src/test/ui/regions/regions-static-closure.rs b/tests/ui/regions/regions-static-closure.rs similarity index 100% rename from src/test/ui/regions/regions-static-closure.rs rename to tests/ui/regions/regions-static-closure.rs diff --git a/src/test/ui/regions/regions-steal-closure.rs b/tests/ui/regions/regions-steal-closure.rs similarity index 100% rename from src/test/ui/regions/regions-steal-closure.rs rename to tests/ui/regions/regions-steal-closure.rs diff --git a/src/test/ui/regions/regions-steal-closure.stderr b/tests/ui/regions/regions-steal-closure.stderr similarity index 100% rename from src/test/ui/regions/regions-steal-closure.stderr rename to tests/ui/regions/regions-steal-closure.stderr diff --git a/src/test/ui/regions/regions-trait-1.rs b/tests/ui/regions/regions-trait-1.rs similarity index 100% rename from src/test/ui/regions/regions-trait-1.rs rename to tests/ui/regions/regions-trait-1.rs diff --git a/src/test/ui/regions/regions-trait-object-1.rs b/tests/ui/regions/regions-trait-object-1.rs similarity index 100% rename from src/test/ui/regions/regions-trait-object-1.rs rename to tests/ui/regions/regions-trait-object-1.rs diff --git a/src/test/ui/regions/regions-trait-object-subtyping.rs b/tests/ui/regions/regions-trait-object-subtyping.rs similarity index 100% rename from src/test/ui/regions/regions-trait-object-subtyping.rs rename to tests/ui/regions/regions-trait-object-subtyping.rs diff --git a/src/test/ui/regions/regions-trait-object-subtyping.stderr b/tests/ui/regions/regions-trait-object-subtyping.stderr similarity index 100% rename from src/test/ui/regions/regions-trait-object-subtyping.stderr rename to tests/ui/regions/regions-trait-object-subtyping.stderr diff --git a/src/test/ui/regions/regions-trait-variance.rs b/tests/ui/regions/regions-trait-variance.rs similarity index 100% rename from src/test/ui/regions/regions-trait-variance.rs rename to tests/ui/regions/regions-trait-variance.rs diff --git a/src/test/ui/regions/regions-trait-variance.stderr b/tests/ui/regions/regions-trait-variance.stderr similarity index 100% rename from src/test/ui/regions/regions-trait-variance.stderr rename to tests/ui/regions/regions-trait-variance.stderr diff --git a/src/test/ui/regions/regions-undeclared.rs b/tests/ui/regions/regions-undeclared.rs similarity index 100% rename from src/test/ui/regions/regions-undeclared.rs rename to tests/ui/regions/regions-undeclared.rs diff --git a/src/test/ui/regions/regions-undeclared.stderr b/tests/ui/regions/regions-undeclared.stderr similarity index 100% rename from src/test/ui/regions/regions-undeclared.stderr rename to tests/ui/regions/regions-undeclared.stderr diff --git a/src/test/ui/regions/regions-var-type-out-of-scope.rs b/tests/ui/regions/regions-var-type-out-of-scope.rs similarity index 100% rename from src/test/ui/regions/regions-var-type-out-of-scope.rs rename to tests/ui/regions/regions-var-type-out-of-scope.rs diff --git a/src/test/ui/regions/regions-var-type-out-of-scope.stderr b/tests/ui/regions/regions-var-type-out-of-scope.stderr similarity index 100% rename from src/test/ui/regions/regions-var-type-out-of-scope.stderr rename to tests/ui/regions/regions-var-type-out-of-scope.stderr diff --git a/src/test/ui/regions/regions-variance-contravariant-use-contravariant.rs b/tests/ui/regions/regions-variance-contravariant-use-contravariant.rs similarity index 100% rename from src/test/ui/regions/regions-variance-contravariant-use-contravariant.rs rename to tests/ui/regions/regions-variance-contravariant-use-contravariant.rs diff --git a/src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.rs b/tests/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.rs similarity index 100% rename from src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.rs rename to tests/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.rs diff --git a/src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr b/tests/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr similarity index 100% rename from src/test/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr rename to tests/ui/regions/regions-variance-contravariant-use-covariant-in-second-position.stderr diff --git a/src/test/ui/regions/regions-variance-contravariant-use-covariant.rs b/tests/ui/regions/regions-variance-contravariant-use-covariant.rs similarity index 100% rename from src/test/ui/regions/regions-variance-contravariant-use-covariant.rs rename to tests/ui/regions/regions-variance-contravariant-use-covariant.rs diff --git a/src/test/ui/regions/regions-variance-contravariant-use-covariant.stderr b/tests/ui/regions/regions-variance-contravariant-use-covariant.stderr similarity index 100% rename from src/test/ui/regions/regions-variance-contravariant-use-covariant.stderr rename to tests/ui/regions/regions-variance-contravariant-use-covariant.stderr diff --git a/src/test/ui/regions/regions-variance-covariant-use-contravariant.rs b/tests/ui/regions/regions-variance-covariant-use-contravariant.rs similarity index 100% rename from src/test/ui/regions/regions-variance-covariant-use-contravariant.rs rename to tests/ui/regions/regions-variance-covariant-use-contravariant.rs diff --git a/src/test/ui/regions/regions-variance-covariant-use-contravariant.stderr b/tests/ui/regions/regions-variance-covariant-use-contravariant.stderr similarity index 100% rename from src/test/ui/regions/regions-variance-covariant-use-contravariant.stderr rename to tests/ui/regions/regions-variance-covariant-use-contravariant.stderr diff --git a/src/test/ui/regions/regions-variance-covariant-use-covariant.rs b/tests/ui/regions/regions-variance-covariant-use-covariant.rs similarity index 100% rename from src/test/ui/regions/regions-variance-covariant-use-covariant.rs rename to tests/ui/regions/regions-variance-covariant-use-covariant.rs diff --git a/src/test/ui/regions/regions-variance-invariant-use-contravariant.rs b/tests/ui/regions/regions-variance-invariant-use-contravariant.rs similarity index 100% rename from src/test/ui/regions/regions-variance-invariant-use-contravariant.rs rename to tests/ui/regions/regions-variance-invariant-use-contravariant.rs diff --git a/src/test/ui/regions/regions-variance-invariant-use-contravariant.stderr b/tests/ui/regions/regions-variance-invariant-use-contravariant.stderr similarity index 100% rename from src/test/ui/regions/regions-variance-invariant-use-contravariant.stderr rename to tests/ui/regions/regions-variance-invariant-use-contravariant.stderr diff --git a/src/test/ui/regions/regions-variance-invariant-use-covariant.rs b/tests/ui/regions/regions-variance-invariant-use-covariant.rs similarity index 100% rename from src/test/ui/regions/regions-variance-invariant-use-covariant.rs rename to tests/ui/regions/regions-variance-invariant-use-covariant.rs diff --git a/src/test/ui/regions/regions-variance-invariant-use-covariant.stderr b/tests/ui/regions/regions-variance-invariant-use-covariant.stderr similarity index 100% rename from src/test/ui/regions/regions-variance-invariant-use-covariant.stderr rename to tests/ui/regions/regions-variance-invariant-use-covariant.stderr diff --git a/src/test/ui/regions/regions-wf-trait-object.rs b/tests/ui/regions/regions-wf-trait-object.rs similarity index 100% rename from src/test/ui/regions/regions-wf-trait-object.rs rename to tests/ui/regions/regions-wf-trait-object.rs diff --git a/src/test/ui/regions/regions-wf-trait-object.stderr b/tests/ui/regions/regions-wf-trait-object.stderr similarity index 100% rename from src/test/ui/regions/regions-wf-trait-object.stderr rename to tests/ui/regions/regions-wf-trait-object.stderr diff --git a/src/test/ui/regions/type-param-outlives-reempty-issue-74429-2.rs b/tests/ui/regions/type-param-outlives-reempty-issue-74429-2.rs similarity index 100% rename from src/test/ui/regions/type-param-outlives-reempty-issue-74429-2.rs rename to tests/ui/regions/type-param-outlives-reempty-issue-74429-2.rs diff --git a/src/test/ui/regions/type-param-outlives-reempty-issue-74429.rs b/tests/ui/regions/type-param-outlives-reempty-issue-74429.rs similarity index 100% rename from src/test/ui/regions/type-param-outlives-reempty-issue-74429.rs rename to tests/ui/regions/type-param-outlives-reempty-issue-74429.rs diff --git a/src/test/ui/regions/wf-bound-region-in-object-type.rs b/tests/ui/regions/wf-bound-region-in-object-type.rs similarity index 100% rename from src/test/ui/regions/wf-bound-region-in-object-type.rs rename to tests/ui/regions/wf-bound-region-in-object-type.rs diff --git a/src/test/ui/reify-intrinsic.rs b/tests/ui/reify-intrinsic.rs similarity index 100% rename from src/test/ui/reify-intrinsic.rs rename to tests/ui/reify-intrinsic.rs diff --git a/src/test/ui/reify-intrinsic.stderr b/tests/ui/reify-intrinsic.stderr similarity index 100% rename from src/test/ui/reify-intrinsic.stderr rename to tests/ui/reify-intrinsic.stderr diff --git a/src/test/ui/remap-path-prefix.rs b/tests/ui/remap-path-prefix.rs similarity index 100% rename from src/test/ui/remap-path-prefix.rs rename to tests/ui/remap-path-prefix.rs diff --git a/src/test/ui/remap-path-prefix.stderr b/tests/ui/remap-path-prefix.stderr similarity index 100% rename from src/test/ui/remap-path-prefix.stderr rename to tests/ui/remap-path-prefix.stderr diff --git a/src/test/ui/removing-extern-crate.fixed b/tests/ui/removing-extern-crate.fixed similarity index 100% rename from src/test/ui/removing-extern-crate.fixed rename to tests/ui/removing-extern-crate.fixed diff --git a/src/test/ui/removing-extern-crate.rs b/tests/ui/removing-extern-crate.rs similarity index 100% rename from src/test/ui/removing-extern-crate.rs rename to tests/ui/removing-extern-crate.rs diff --git a/src/test/ui/removing-extern-crate.stderr b/tests/ui/removing-extern-crate.stderr similarity index 100% rename from src/test/ui/removing-extern-crate.stderr rename to tests/ui/removing-extern-crate.stderr diff --git a/src/test/ui/repeat-expr/infer.rs b/tests/ui/repeat-expr/infer.rs similarity index 100% rename from src/test/ui/repeat-expr/infer.rs rename to tests/ui/repeat-expr/infer.rs diff --git a/src/test/ui/repeat-expr/repeat-expr-in-static.rs b/tests/ui/repeat-expr/repeat-expr-in-static.rs similarity index 100% rename from src/test/ui/repeat-expr/repeat-expr-in-static.rs rename to tests/ui/repeat-expr/repeat-expr-in-static.rs diff --git a/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs b/tests/ui/repeat-expr/repeat-to-run-dtor-twice.rs similarity index 100% rename from src/test/ui/repeat-expr/repeat-to-run-dtor-twice.rs rename to tests/ui/repeat-expr/repeat-to-run-dtor-twice.rs diff --git a/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr b/tests/ui/repeat-expr/repeat-to-run-dtor-twice.stderr similarity index 100% rename from src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr rename to tests/ui/repeat-expr/repeat-to-run-dtor-twice.stderr diff --git a/src/test/ui/repeat-expr/repeat_count.rs b/tests/ui/repeat-expr/repeat_count.rs similarity index 100% rename from src/test/ui/repeat-expr/repeat_count.rs rename to tests/ui/repeat-expr/repeat_count.rs diff --git a/src/test/ui/repeat-expr/repeat_count.stderr b/tests/ui/repeat-expr/repeat_count.stderr similarity index 100% rename from src/test/ui/repeat-expr/repeat_count.stderr rename to tests/ui/repeat-expr/repeat_count.stderr diff --git a/src/test/ui/repr/align-with-extern-c-fn.rs b/tests/ui/repr/align-with-extern-c-fn.rs similarity index 100% rename from src/test/ui/repr/align-with-extern-c-fn.rs rename to tests/ui/repr/align-with-extern-c-fn.rs diff --git a/src/test/ui/repr/aligned_enum_cast.rs b/tests/ui/repr/aligned_enum_cast.rs similarity index 100% rename from src/test/ui/repr/aligned_enum_cast.rs rename to tests/ui/repr/aligned_enum_cast.rs diff --git a/src/test/ui/repr/attr-usage-repr.rs b/tests/ui/repr/attr-usage-repr.rs similarity index 100% rename from src/test/ui/repr/attr-usage-repr.rs rename to tests/ui/repr/attr-usage-repr.rs diff --git a/src/test/ui/repr/attr-usage-repr.stderr b/tests/ui/repr/attr-usage-repr.stderr similarity index 100% rename from src/test/ui/repr/attr-usage-repr.stderr rename to tests/ui/repr/attr-usage-repr.stderr diff --git a/src/test/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs b/tests/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs similarity index 100% rename from src/test/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs rename to tests/ui/repr/auxiliary/repr-transparent-non-exhaustive.rs diff --git a/src/test/ui/repr/invalid_repr_list_help.rs b/tests/ui/repr/invalid_repr_list_help.rs similarity index 100% rename from src/test/ui/repr/invalid_repr_list_help.rs rename to tests/ui/repr/invalid_repr_list_help.rs diff --git a/src/test/ui/repr/invalid_repr_list_help.stderr b/tests/ui/repr/invalid_repr_list_help.stderr similarity index 100% rename from src/test/ui/repr/invalid_repr_list_help.stderr rename to tests/ui/repr/invalid_repr_list_help.stderr diff --git a/src/test/ui/repr/issue-83505-repr-simd.rs b/tests/ui/repr/issue-83505-repr-simd.rs similarity index 100% rename from src/test/ui/repr/issue-83505-repr-simd.rs rename to tests/ui/repr/issue-83505-repr-simd.rs diff --git a/src/test/ui/repr/issue-83505-repr-simd.stderr b/tests/ui/repr/issue-83505-repr-simd.stderr similarity index 100% rename from src/test/ui/repr/issue-83505-repr-simd.stderr rename to tests/ui/repr/issue-83505-repr-simd.stderr diff --git a/src/test/ui/repr/issue-83921-ice.rs b/tests/ui/repr/issue-83921-ice.rs similarity index 100% rename from src/test/ui/repr/issue-83921-ice.rs rename to tests/ui/repr/issue-83921-ice.rs diff --git a/src/test/ui/repr/issue-83921-ice.stderr b/tests/ui/repr/issue-83921-ice.stderr similarity index 100% rename from src/test/ui/repr/issue-83921-ice.stderr rename to tests/ui/repr/issue-83921-ice.stderr diff --git a/src/test/ui/repr/repr-align-assign.fixed b/tests/ui/repr/repr-align-assign.fixed similarity index 100% rename from src/test/ui/repr/repr-align-assign.fixed rename to tests/ui/repr/repr-align-assign.fixed diff --git a/src/test/ui/repr/repr-align-assign.rs b/tests/ui/repr/repr-align-assign.rs similarity index 100% rename from src/test/ui/repr/repr-align-assign.rs rename to tests/ui/repr/repr-align-assign.rs diff --git a/src/test/ui/repr/repr-align-assign.stderr b/tests/ui/repr/repr-align-assign.stderr similarity index 100% rename from src/test/ui/repr/repr-align-assign.stderr rename to tests/ui/repr/repr-align-assign.stderr diff --git a/src/test/ui/repr/repr-align.rs b/tests/ui/repr/repr-align.rs similarity index 100% rename from src/test/ui/repr/repr-align.rs rename to tests/ui/repr/repr-align.rs diff --git a/src/test/ui/repr/repr-align.stderr b/tests/ui/repr/repr-align.stderr similarity index 100% rename from src/test/ui/repr/repr-align.stderr rename to tests/ui/repr/repr-align.stderr diff --git a/src/test/ui/repr/repr-disallow-on-variant.rs b/tests/ui/repr/repr-disallow-on-variant.rs similarity index 100% rename from src/test/ui/repr/repr-disallow-on-variant.rs rename to tests/ui/repr/repr-disallow-on-variant.rs diff --git a/src/test/ui/repr/repr-disallow-on-variant.stderr b/tests/ui/repr/repr-disallow-on-variant.stderr similarity index 100% rename from src/test/ui/repr/repr-disallow-on-variant.stderr rename to tests/ui/repr/repr-disallow-on-variant.stderr diff --git a/src/test/ui/repr/repr-packed-contains-align.rs b/tests/ui/repr/repr-packed-contains-align.rs similarity index 100% rename from src/test/ui/repr/repr-packed-contains-align.rs rename to tests/ui/repr/repr-packed-contains-align.rs diff --git a/src/test/ui/repr/repr-packed-contains-align.stderr b/tests/ui/repr/repr-packed-contains-align.stderr similarity index 100% rename from src/test/ui/repr/repr-packed-contains-align.stderr rename to tests/ui/repr/repr-packed-contains-align.stderr diff --git a/src/test/ui/repr/repr-transparent-issue-87496.rs b/tests/ui/repr/repr-transparent-issue-87496.rs similarity index 100% rename from src/test/ui/repr/repr-transparent-issue-87496.rs rename to tests/ui/repr/repr-transparent-issue-87496.rs diff --git a/src/test/ui/repr/repr-transparent-issue-87496.stderr b/tests/ui/repr/repr-transparent-issue-87496.stderr similarity index 100% rename from src/test/ui/repr/repr-transparent-issue-87496.stderr rename to tests/ui/repr/repr-transparent-issue-87496.stderr diff --git a/src/test/ui/repr/repr-transparent-non-exhaustive.rs b/tests/ui/repr/repr-transparent-non-exhaustive.rs similarity index 100% rename from src/test/ui/repr/repr-transparent-non-exhaustive.rs rename to tests/ui/repr/repr-transparent-non-exhaustive.rs diff --git a/src/test/ui/repr/repr-transparent-non-exhaustive.stderr b/tests/ui/repr/repr-transparent-non-exhaustive.stderr similarity index 100% rename from src/test/ui/repr/repr-transparent-non-exhaustive.stderr rename to tests/ui/repr/repr-transparent-non-exhaustive.stderr diff --git a/src/test/ui/repr/repr-transparent-other-items.rs b/tests/ui/repr/repr-transparent-other-items.rs similarity index 100% rename from src/test/ui/repr/repr-transparent-other-items.rs rename to tests/ui/repr/repr-transparent-other-items.rs diff --git a/src/test/ui/repr/repr-transparent-other-items.stderr b/tests/ui/repr/repr-transparent-other-items.stderr similarity index 100% rename from src/test/ui/repr/repr-transparent-other-items.stderr rename to tests/ui/repr/repr-transparent-other-items.stderr diff --git a/src/test/ui/repr/repr-transparent-other-reprs.rs b/tests/ui/repr/repr-transparent-other-reprs.rs similarity index 100% rename from src/test/ui/repr/repr-transparent-other-reprs.rs rename to tests/ui/repr/repr-transparent-other-reprs.rs diff --git a/src/test/ui/repr/repr-transparent-other-reprs.stderr b/tests/ui/repr/repr-transparent-other-reprs.stderr similarity index 100% rename from src/test/ui/repr/repr-transparent-other-reprs.stderr rename to tests/ui/repr/repr-transparent-other-reprs.stderr diff --git a/src/test/ui/repr/repr-transparent.rs b/tests/ui/repr/repr-transparent.rs similarity index 100% rename from src/test/ui/repr/repr-transparent.rs rename to tests/ui/repr/repr-transparent.rs diff --git a/src/test/ui/repr/repr-transparent.stderr b/tests/ui/repr/repr-transparent.stderr similarity index 100% rename from src/test/ui/repr/repr-transparent.stderr rename to tests/ui/repr/repr-transparent.stderr diff --git a/src/test/ui/repr/repr.rs b/tests/ui/repr/repr.rs similarity index 100% rename from src/test/ui/repr/repr.rs rename to tests/ui/repr/repr.rs diff --git a/src/test/ui/repr/repr.stderr b/tests/ui/repr/repr.stderr similarity index 100% rename from src/test/ui/repr/repr.stderr rename to tests/ui/repr/repr.stderr diff --git a/src/test/ui/repr/repr_c_int_align.rs b/tests/ui/repr/repr_c_int_align.rs similarity index 100% rename from src/test/ui/repr/repr_c_int_align.rs rename to tests/ui/repr/repr_c_int_align.rs diff --git a/src/test/ui/repr/transparent-enum-too-many-variants.rs b/tests/ui/repr/transparent-enum-too-many-variants.rs similarity index 100% rename from src/test/ui/repr/transparent-enum-too-many-variants.rs rename to tests/ui/repr/transparent-enum-too-many-variants.rs diff --git a/src/test/ui/repr/transparent-enum-too-many-variants.stderr b/tests/ui/repr/transparent-enum-too-many-variants.stderr similarity index 100% rename from src/test/ui/repr/transparent-enum-too-many-variants.stderr rename to tests/ui/repr/transparent-enum-too-many-variants.stderr diff --git a/src/test/ui/reserved/reserved-attr-on-macro.rs b/tests/ui/reserved/reserved-attr-on-macro.rs similarity index 100% rename from src/test/ui/reserved/reserved-attr-on-macro.rs rename to tests/ui/reserved/reserved-attr-on-macro.rs diff --git a/src/test/ui/reserved/reserved-attr-on-macro.stderr b/tests/ui/reserved/reserved-attr-on-macro.stderr similarity index 100% rename from src/test/ui/reserved/reserved-attr-on-macro.stderr rename to tests/ui/reserved/reserved-attr-on-macro.stderr diff --git a/src/test/ui/reserved/reserved-become.rs b/tests/ui/reserved/reserved-become.rs similarity index 100% rename from src/test/ui/reserved/reserved-become.rs rename to tests/ui/reserved/reserved-become.rs diff --git a/src/test/ui/reserved/reserved-become.stderr b/tests/ui/reserved/reserved-become.stderr similarity index 100% rename from src/test/ui/reserved/reserved-become.stderr rename to tests/ui/reserved/reserved-become.stderr diff --git a/src/test/ui/resolve/associated-fn-called-as-fn.rs b/tests/ui/resolve/associated-fn-called-as-fn.rs similarity index 100% rename from src/test/ui/resolve/associated-fn-called-as-fn.rs rename to tests/ui/resolve/associated-fn-called-as-fn.rs diff --git a/src/test/ui/resolve/associated-fn-called-as-fn.stderr b/tests/ui/resolve/associated-fn-called-as-fn.stderr similarity index 100% rename from src/test/ui/resolve/associated-fn-called-as-fn.stderr rename to tests/ui/resolve/associated-fn-called-as-fn.stderr diff --git a/src/test/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo.rs b/tests/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo.rs rename to tests/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo.rs diff --git a/src/test/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo2.rs b/tests/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo2.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo2.rs rename to tests/ui/resolve/auxiliary/blind-item-mixed-crate-use-item-foo2.rs diff --git a/src/test/ui/resolve/auxiliary/extern-prelude-vec.rs b/tests/ui/resolve/auxiliary/extern-prelude-vec.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/extern-prelude-vec.rs rename to tests/ui/resolve/auxiliary/extern-prelude-vec.rs diff --git a/src/test/ui/resolve/auxiliary/extern-prelude.rs b/tests/ui/resolve/auxiliary/extern-prelude.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/extern-prelude.rs rename to tests/ui/resolve/auxiliary/extern-prelude.rs diff --git a/src/test/ui/resolve/auxiliary/issue-19452-aux.rs b/tests/ui/resolve/auxiliary/issue-19452-aux.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/issue-19452-aux.rs rename to tests/ui/resolve/auxiliary/issue-19452-aux.rs diff --git a/src/test/ui/resolve/auxiliary/issue-21221-3.rs b/tests/ui/resolve/auxiliary/issue-21221-3.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/issue-21221-3.rs rename to tests/ui/resolve/auxiliary/issue-21221-3.rs diff --git a/src/test/ui/resolve/auxiliary/issue-21221-4.rs b/tests/ui/resolve/auxiliary/issue-21221-4.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/issue-21221-4.rs rename to tests/ui/resolve/auxiliary/issue-21221-4.rs diff --git a/src/test/ui/resolve/auxiliary/issue-30535.rs b/tests/ui/resolve/auxiliary/issue-30535.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/issue-30535.rs rename to tests/ui/resolve/auxiliary/issue-30535.rs diff --git a/src/test/ui/resolve/auxiliary/issue-3907.rs b/tests/ui/resolve/auxiliary/issue-3907.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/issue-3907.rs rename to tests/ui/resolve/auxiliary/issue-3907.rs diff --git a/src/test/ui/resolve/auxiliary/issue-80079.rs b/tests/ui/resolve/auxiliary/issue-80079.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/issue-80079.rs rename to tests/ui/resolve/auxiliary/issue-80079.rs diff --git a/src/test/ui/resolve/auxiliary/namespaced_enums.rs b/tests/ui/resolve/auxiliary/namespaced_enums.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/namespaced_enums.rs rename to tests/ui/resolve/auxiliary/namespaced_enums.rs diff --git a/src/test/ui/resolve/auxiliary/privacy-struct-ctor.rs b/tests/ui/resolve/auxiliary/privacy-struct-ctor.rs similarity index 100% rename from src/test/ui/resolve/auxiliary/privacy-struct-ctor.rs rename to tests/ui/resolve/auxiliary/privacy-struct-ctor.rs diff --git a/src/test/ui/resolve/bad-env-capture.rs b/tests/ui/resolve/bad-env-capture.rs similarity index 100% rename from src/test/ui/resolve/bad-env-capture.rs rename to tests/ui/resolve/bad-env-capture.rs diff --git a/src/test/ui/resolve/bad-env-capture.stderr b/tests/ui/resolve/bad-env-capture.stderr similarity index 100% rename from src/test/ui/resolve/bad-env-capture.stderr rename to tests/ui/resolve/bad-env-capture.stderr diff --git a/src/test/ui/resolve/bad-env-capture2.rs b/tests/ui/resolve/bad-env-capture2.rs similarity index 100% rename from src/test/ui/resolve/bad-env-capture2.rs rename to tests/ui/resolve/bad-env-capture2.rs diff --git a/src/test/ui/resolve/bad-env-capture2.stderr b/tests/ui/resolve/bad-env-capture2.stderr similarity index 100% rename from src/test/ui/resolve/bad-env-capture2.stderr rename to tests/ui/resolve/bad-env-capture2.stderr diff --git a/src/test/ui/resolve/bad-env-capture3.rs b/tests/ui/resolve/bad-env-capture3.rs similarity index 100% rename from src/test/ui/resolve/bad-env-capture3.rs rename to tests/ui/resolve/bad-env-capture3.rs diff --git a/src/test/ui/resolve/bad-env-capture3.stderr b/tests/ui/resolve/bad-env-capture3.stderr similarity index 100% rename from src/test/ui/resolve/bad-env-capture3.stderr rename to tests/ui/resolve/bad-env-capture3.stderr diff --git a/src/test/ui/resolve/bad-expr-path.rs b/tests/ui/resolve/bad-expr-path.rs similarity index 100% rename from src/test/ui/resolve/bad-expr-path.rs rename to tests/ui/resolve/bad-expr-path.rs diff --git a/src/test/ui/resolve/bad-expr-path.stderr b/tests/ui/resolve/bad-expr-path.stderr similarity index 100% rename from src/test/ui/resolve/bad-expr-path.stderr rename to tests/ui/resolve/bad-expr-path.stderr diff --git a/src/test/ui/resolve/bad-expr-path2.rs b/tests/ui/resolve/bad-expr-path2.rs similarity index 100% rename from src/test/ui/resolve/bad-expr-path2.rs rename to tests/ui/resolve/bad-expr-path2.rs diff --git a/src/test/ui/resolve/bad-expr-path2.stderr b/tests/ui/resolve/bad-expr-path2.stderr similarity index 100% rename from src/test/ui/resolve/bad-expr-path2.stderr rename to tests/ui/resolve/bad-expr-path2.stderr diff --git a/src/test/ui/resolve/bad-module.rs b/tests/ui/resolve/bad-module.rs similarity index 100% rename from src/test/ui/resolve/bad-module.rs rename to tests/ui/resolve/bad-module.rs diff --git a/src/test/ui/resolve/bad-module.stderr b/tests/ui/resolve/bad-module.stderr similarity index 100% rename from src/test/ui/resolve/bad-module.stderr rename to tests/ui/resolve/bad-module.stderr diff --git a/src/test/ui/resolve/bad-type-env-capture.rs b/tests/ui/resolve/bad-type-env-capture.rs similarity index 100% rename from src/test/ui/resolve/bad-type-env-capture.rs rename to tests/ui/resolve/bad-type-env-capture.rs diff --git a/src/test/ui/resolve/bad-type-env-capture.stderr b/tests/ui/resolve/bad-type-env-capture.stderr similarity index 100% rename from src/test/ui/resolve/bad-type-env-capture.stderr rename to tests/ui/resolve/bad-type-env-capture.stderr diff --git a/src/test/ui/resolve/blind-item-local-shadow.rs b/tests/ui/resolve/blind-item-local-shadow.rs similarity index 100% rename from src/test/ui/resolve/blind-item-local-shadow.rs rename to tests/ui/resolve/blind-item-local-shadow.rs diff --git a/src/test/ui/resolve/blind-item-mixed-crate-use-item.rs b/tests/ui/resolve/blind-item-mixed-crate-use-item.rs similarity index 100% rename from src/test/ui/resolve/blind-item-mixed-crate-use-item.rs rename to tests/ui/resolve/blind-item-mixed-crate-use-item.rs diff --git a/src/test/ui/resolve/blind-item-mixed-use-item.rs b/tests/ui/resolve/blind-item-mixed-use-item.rs similarity index 100% rename from src/test/ui/resolve/blind-item-mixed-use-item.rs rename to tests/ui/resolve/blind-item-mixed-use-item.rs diff --git a/src/test/ui/resolve/block-with-trait-parent.rs b/tests/ui/resolve/block-with-trait-parent.rs similarity index 100% rename from src/test/ui/resolve/block-with-trait-parent.rs rename to tests/ui/resolve/block-with-trait-parent.rs diff --git a/src/test/ui/resolve/crate-called-as-function.rs b/tests/ui/resolve/crate-called-as-function.rs similarity index 100% rename from src/test/ui/resolve/crate-called-as-function.rs rename to tests/ui/resolve/crate-called-as-function.rs diff --git a/src/test/ui/resolve/crate-called-as-function.stderr b/tests/ui/resolve/crate-called-as-function.stderr similarity index 100% rename from src/test/ui/resolve/crate-called-as-function.stderr rename to tests/ui/resolve/crate-called-as-function.stderr diff --git a/src/test/ui/resolve/crate-in-paths.rs b/tests/ui/resolve/crate-in-paths.rs similarity index 100% rename from src/test/ui/resolve/crate-in-paths.rs rename to tests/ui/resolve/crate-in-paths.rs diff --git a/src/test/ui/resolve/crate-in-paths.stderr b/tests/ui/resolve/crate-in-paths.stderr similarity index 100% rename from src/test/ui/resolve/crate-in-paths.stderr rename to tests/ui/resolve/crate-in-paths.stderr diff --git a/src/test/ui/resolve/editions-crate-root-2015.rs b/tests/ui/resolve/editions-crate-root-2015.rs similarity index 100% rename from src/test/ui/resolve/editions-crate-root-2015.rs rename to tests/ui/resolve/editions-crate-root-2015.rs diff --git a/src/test/ui/resolve/editions-crate-root-2015.stderr b/tests/ui/resolve/editions-crate-root-2015.stderr similarity index 100% rename from src/test/ui/resolve/editions-crate-root-2015.stderr rename to tests/ui/resolve/editions-crate-root-2015.stderr diff --git a/src/test/ui/resolve/editions-crate-root-2018.rs b/tests/ui/resolve/editions-crate-root-2018.rs similarity index 100% rename from src/test/ui/resolve/editions-crate-root-2018.rs rename to tests/ui/resolve/editions-crate-root-2018.rs diff --git a/src/test/ui/resolve/editions-crate-root-2018.stderr b/tests/ui/resolve/editions-crate-root-2018.stderr similarity index 100% rename from src/test/ui/resolve/editions-crate-root-2018.stderr rename to tests/ui/resolve/editions-crate-root-2018.stderr diff --git a/src/test/ui/resolve/enums-are-namespaced-xc.rs b/tests/ui/resolve/enums-are-namespaced-xc.rs similarity index 100% rename from src/test/ui/resolve/enums-are-namespaced-xc.rs rename to tests/ui/resolve/enums-are-namespaced-xc.rs diff --git a/src/test/ui/resolve/enums-are-namespaced-xc.stderr b/tests/ui/resolve/enums-are-namespaced-xc.stderr similarity index 100% rename from src/test/ui/resolve/enums-are-namespaced-xc.stderr rename to tests/ui/resolve/enums-are-namespaced-xc.stderr diff --git a/src/test/ui/resolve/enums-pats-not-idents.rs b/tests/ui/resolve/enums-pats-not-idents.rs similarity index 100% rename from src/test/ui/resolve/enums-pats-not-idents.rs rename to tests/ui/resolve/enums-pats-not-idents.rs diff --git a/src/test/ui/resolve/enums-pats-not-idents.stderr b/tests/ui/resolve/enums-pats-not-idents.stderr similarity index 100% rename from src/test/ui/resolve/enums-pats-not-idents.stderr rename to tests/ui/resolve/enums-pats-not-idents.stderr diff --git a/src/test/ui/resolve/export-fully-qualified.rs b/tests/ui/resolve/export-fully-qualified.rs similarity index 100% rename from src/test/ui/resolve/export-fully-qualified.rs rename to tests/ui/resolve/export-fully-qualified.rs diff --git a/src/test/ui/resolve/export-fully-qualified.stderr b/tests/ui/resolve/export-fully-qualified.stderr similarity index 100% rename from src/test/ui/resolve/export-fully-qualified.stderr rename to tests/ui/resolve/export-fully-qualified.stderr diff --git a/src/test/ui/resolve/extern-prelude-fail.rs b/tests/ui/resolve/extern-prelude-fail.rs similarity index 100% rename from src/test/ui/resolve/extern-prelude-fail.rs rename to tests/ui/resolve/extern-prelude-fail.rs diff --git a/src/test/ui/resolve/extern-prelude-fail.stderr b/tests/ui/resolve/extern-prelude-fail.stderr similarity index 100% rename from src/test/ui/resolve/extern-prelude-fail.stderr rename to tests/ui/resolve/extern-prelude-fail.stderr diff --git a/src/test/ui/resolve/extern-prelude.rs b/tests/ui/resolve/extern-prelude.rs similarity index 100% rename from src/test/ui/resolve/extern-prelude.rs rename to tests/ui/resolve/extern-prelude.rs diff --git a/src/test/ui/resolve/filter-intrinsics.rs b/tests/ui/resolve/filter-intrinsics.rs similarity index 100% rename from src/test/ui/resolve/filter-intrinsics.rs rename to tests/ui/resolve/filter-intrinsics.rs diff --git a/src/test/ui/resolve/filter-intrinsics.stderr b/tests/ui/resolve/filter-intrinsics.stderr similarity index 100% rename from src/test/ui/resolve/filter-intrinsics.stderr rename to tests/ui/resolve/filter-intrinsics.stderr diff --git a/src/test/ui/resolve/impl-items-vis-unresolved.rs b/tests/ui/resolve/impl-items-vis-unresolved.rs similarity index 100% rename from src/test/ui/resolve/impl-items-vis-unresolved.rs rename to tests/ui/resolve/impl-items-vis-unresolved.rs diff --git a/src/test/ui/resolve/impl-items-vis-unresolved.stderr b/tests/ui/resolve/impl-items-vis-unresolved.stderr similarity index 100% rename from src/test/ui/resolve/impl-items-vis-unresolved.stderr rename to tests/ui/resolve/impl-items-vis-unresolved.stderr diff --git a/src/test/ui/resolve/issue-100365.rs b/tests/ui/resolve/issue-100365.rs similarity index 100% rename from src/test/ui/resolve/issue-100365.rs rename to tests/ui/resolve/issue-100365.rs diff --git a/src/test/ui/resolve/issue-100365.stderr b/tests/ui/resolve/issue-100365.stderr similarity index 100% rename from src/test/ui/resolve/issue-100365.stderr rename to tests/ui/resolve/issue-100365.stderr diff --git a/src/test/ui/resolve/issue-101749-2.rs b/tests/ui/resolve/issue-101749-2.rs similarity index 100% rename from src/test/ui/resolve/issue-101749-2.rs rename to tests/ui/resolve/issue-101749-2.rs diff --git a/src/test/ui/resolve/issue-101749-2.stderr b/tests/ui/resolve/issue-101749-2.stderr similarity index 100% rename from src/test/ui/resolve/issue-101749-2.stderr rename to tests/ui/resolve/issue-101749-2.stderr diff --git a/src/test/ui/resolve/issue-101749.fixed b/tests/ui/resolve/issue-101749.fixed similarity index 100% rename from src/test/ui/resolve/issue-101749.fixed rename to tests/ui/resolve/issue-101749.fixed diff --git a/src/test/ui/resolve/issue-101749.rs b/tests/ui/resolve/issue-101749.rs similarity index 100% rename from src/test/ui/resolve/issue-101749.rs rename to tests/ui/resolve/issue-101749.rs diff --git a/src/test/ui/resolve/issue-101749.stderr b/tests/ui/resolve/issue-101749.stderr similarity index 100% rename from src/test/ui/resolve/issue-101749.stderr rename to tests/ui/resolve/issue-101749.stderr diff --git a/src/test/ui/resolve/issue-10200.rs b/tests/ui/resolve/issue-10200.rs similarity index 100% rename from src/test/ui/resolve/issue-10200.rs rename to tests/ui/resolve/issue-10200.rs diff --git a/src/test/ui/resolve/issue-10200.stderr b/tests/ui/resolve/issue-10200.stderr similarity index 100% rename from src/test/ui/resolve/issue-10200.stderr rename to tests/ui/resolve/issue-10200.stderr diff --git a/src/test/ui/resolve/issue-102946.rs b/tests/ui/resolve/issue-102946.rs similarity index 100% rename from src/test/ui/resolve/issue-102946.rs rename to tests/ui/resolve/issue-102946.rs diff --git a/src/test/ui/resolve/issue-102946.stderr b/tests/ui/resolve/issue-102946.stderr similarity index 100% rename from src/test/ui/resolve/issue-102946.stderr rename to tests/ui/resolve/issue-102946.stderr diff --git a/src/test/ui/resolve/issue-103202.rs b/tests/ui/resolve/issue-103202.rs similarity index 100% rename from src/test/ui/resolve/issue-103202.rs rename to tests/ui/resolve/issue-103202.rs diff --git a/src/test/ui/resolve/issue-103202.stderr b/tests/ui/resolve/issue-103202.stderr similarity index 100% rename from src/test/ui/resolve/issue-103202.stderr rename to tests/ui/resolve/issue-103202.stderr diff --git a/src/test/ui/resolve/issue-103474.rs b/tests/ui/resolve/issue-103474.rs similarity index 100% rename from src/test/ui/resolve/issue-103474.rs rename to tests/ui/resolve/issue-103474.rs diff --git a/src/test/ui/resolve/issue-103474.stderr b/tests/ui/resolve/issue-103474.stderr similarity index 100% rename from src/test/ui/resolve/issue-103474.stderr rename to tests/ui/resolve/issue-103474.stderr diff --git a/src/test/ui/resolve/issue-104700-inner_scope.rs b/tests/ui/resolve/issue-104700-inner_scope.rs similarity index 100% rename from src/test/ui/resolve/issue-104700-inner_scope.rs rename to tests/ui/resolve/issue-104700-inner_scope.rs diff --git a/src/test/ui/resolve/issue-104700-inner_scope.stderr b/tests/ui/resolve/issue-104700-inner_scope.stderr similarity index 100% rename from src/test/ui/resolve/issue-104700-inner_scope.stderr rename to tests/ui/resolve/issue-104700-inner_scope.stderr diff --git a/src/test/ui/resolve/issue-105069.rs b/tests/ui/resolve/issue-105069.rs similarity index 100% rename from src/test/ui/resolve/issue-105069.rs rename to tests/ui/resolve/issue-105069.rs diff --git a/src/test/ui/resolve/issue-105069.stderr b/tests/ui/resolve/issue-105069.stderr similarity index 100% rename from src/test/ui/resolve/issue-105069.stderr rename to tests/ui/resolve/issue-105069.stderr diff --git a/src/test/ui/resolve/issue-12796.rs b/tests/ui/resolve/issue-12796.rs similarity index 100% rename from src/test/ui/resolve/issue-12796.rs rename to tests/ui/resolve/issue-12796.rs diff --git a/src/test/ui/resolve/issue-12796.stderr b/tests/ui/resolve/issue-12796.stderr similarity index 100% rename from src/test/ui/resolve/issue-12796.stderr rename to tests/ui/resolve/issue-12796.stderr diff --git a/src/test/ui/resolve/issue-14254.rs b/tests/ui/resolve/issue-14254.rs similarity index 100% rename from src/test/ui/resolve/issue-14254.rs rename to tests/ui/resolve/issue-14254.rs diff --git a/src/test/ui/resolve/issue-14254.stderr b/tests/ui/resolve/issue-14254.stderr similarity index 100% rename from src/test/ui/resolve/issue-14254.stderr rename to tests/ui/resolve/issue-14254.stderr diff --git a/src/test/ui/resolve/issue-16058.rs b/tests/ui/resolve/issue-16058.rs similarity index 100% rename from src/test/ui/resolve/issue-16058.rs rename to tests/ui/resolve/issue-16058.rs diff --git a/src/test/ui/resolve/issue-16058.stderr b/tests/ui/resolve/issue-16058.stderr similarity index 100% rename from src/test/ui/resolve/issue-16058.stderr rename to tests/ui/resolve/issue-16058.stderr diff --git a/src/test/ui/resolve/issue-17518.rs b/tests/ui/resolve/issue-17518.rs similarity index 100% rename from src/test/ui/resolve/issue-17518.rs rename to tests/ui/resolve/issue-17518.rs diff --git a/src/test/ui/resolve/issue-17518.stderr b/tests/ui/resolve/issue-17518.stderr similarity index 100% rename from src/test/ui/resolve/issue-17518.stderr rename to tests/ui/resolve/issue-17518.stderr diff --git a/src/test/ui/resolve/issue-18252.rs b/tests/ui/resolve/issue-18252.rs similarity index 100% rename from src/test/ui/resolve/issue-18252.rs rename to tests/ui/resolve/issue-18252.rs diff --git a/src/test/ui/resolve/issue-18252.stderr b/tests/ui/resolve/issue-18252.stderr similarity index 100% rename from src/test/ui/resolve/issue-18252.stderr rename to tests/ui/resolve/issue-18252.stderr diff --git a/src/test/ui/resolve/issue-19452.rs b/tests/ui/resolve/issue-19452.rs similarity index 100% rename from src/test/ui/resolve/issue-19452.rs rename to tests/ui/resolve/issue-19452.rs diff --git a/src/test/ui/resolve/issue-19452.stderr b/tests/ui/resolve/issue-19452.stderr similarity index 100% rename from src/test/ui/resolve/issue-19452.stderr rename to tests/ui/resolve/issue-19452.stderr diff --git a/src/test/ui/resolve/issue-21221-1.rs b/tests/ui/resolve/issue-21221-1.rs similarity index 100% rename from src/test/ui/resolve/issue-21221-1.rs rename to tests/ui/resolve/issue-21221-1.rs diff --git a/src/test/ui/resolve/issue-21221-1.stderr b/tests/ui/resolve/issue-21221-1.stderr similarity index 100% rename from src/test/ui/resolve/issue-21221-1.stderr rename to tests/ui/resolve/issue-21221-1.stderr diff --git a/src/test/ui/resolve/issue-21221-2.rs b/tests/ui/resolve/issue-21221-2.rs similarity index 100% rename from src/test/ui/resolve/issue-21221-2.rs rename to tests/ui/resolve/issue-21221-2.rs diff --git a/src/test/ui/resolve/issue-21221-2.stderr b/tests/ui/resolve/issue-21221-2.stderr similarity index 100% rename from src/test/ui/resolve/issue-21221-2.stderr rename to tests/ui/resolve/issue-21221-2.stderr diff --git a/src/test/ui/resolve/issue-21221-3.rs b/tests/ui/resolve/issue-21221-3.rs similarity index 100% rename from src/test/ui/resolve/issue-21221-3.rs rename to tests/ui/resolve/issue-21221-3.rs diff --git a/src/test/ui/resolve/issue-21221-3.stderr b/tests/ui/resolve/issue-21221-3.stderr similarity index 100% rename from src/test/ui/resolve/issue-21221-3.stderr rename to tests/ui/resolve/issue-21221-3.stderr diff --git a/src/test/ui/resolve/issue-21221-4.rs b/tests/ui/resolve/issue-21221-4.rs similarity index 100% rename from src/test/ui/resolve/issue-21221-4.rs rename to tests/ui/resolve/issue-21221-4.rs diff --git a/src/test/ui/resolve/issue-21221-4.stderr b/tests/ui/resolve/issue-21221-4.stderr similarity index 100% rename from src/test/ui/resolve/issue-21221-4.stderr rename to tests/ui/resolve/issue-21221-4.stderr diff --git a/src/test/ui/resolve/issue-22692.rs b/tests/ui/resolve/issue-22692.rs similarity index 100% rename from src/test/ui/resolve/issue-22692.rs rename to tests/ui/resolve/issue-22692.rs diff --git a/src/test/ui/resolve/issue-22692.stderr b/tests/ui/resolve/issue-22692.stderr similarity index 100% rename from src/test/ui/resolve/issue-22692.stderr rename to tests/ui/resolve/issue-22692.stderr diff --git a/src/test/ui/resolve/issue-2330.rs b/tests/ui/resolve/issue-2330.rs similarity index 100% rename from src/test/ui/resolve/issue-2330.rs rename to tests/ui/resolve/issue-2330.rs diff --git a/src/test/ui/resolve/issue-2330.stderr b/tests/ui/resolve/issue-2330.stderr similarity index 100% rename from src/test/ui/resolve/issue-2330.stderr rename to tests/ui/resolve/issue-2330.stderr diff --git a/src/test/ui/resolve/issue-23305.rs b/tests/ui/resolve/issue-23305.rs similarity index 100% rename from src/test/ui/resolve/issue-23305.rs rename to tests/ui/resolve/issue-23305.rs diff --git a/src/test/ui/resolve/issue-23305.stderr b/tests/ui/resolve/issue-23305.stderr similarity index 100% rename from src/test/ui/resolve/issue-23305.stderr rename to tests/ui/resolve/issue-23305.stderr diff --git a/src/test/ui/resolve/issue-2356.rs b/tests/ui/resolve/issue-2356.rs similarity index 100% rename from src/test/ui/resolve/issue-2356.rs rename to tests/ui/resolve/issue-2356.rs diff --git a/src/test/ui/resolve/issue-2356.stderr b/tests/ui/resolve/issue-2356.stderr similarity index 100% rename from src/test/ui/resolve/issue-2356.stderr rename to tests/ui/resolve/issue-2356.stderr diff --git a/src/test/ui/resolve/issue-23716.rs b/tests/ui/resolve/issue-23716.rs similarity index 100% rename from src/test/ui/resolve/issue-23716.rs rename to tests/ui/resolve/issue-23716.rs diff --git a/src/test/ui/resolve/issue-23716.stderr b/tests/ui/resolve/issue-23716.stderr similarity index 100% rename from src/test/ui/resolve/issue-23716.stderr rename to tests/ui/resolve/issue-23716.stderr diff --git a/src/test/ui/resolve/issue-24968.rs b/tests/ui/resolve/issue-24968.rs similarity index 100% rename from src/test/ui/resolve/issue-24968.rs rename to tests/ui/resolve/issue-24968.rs diff --git a/src/test/ui/resolve/issue-24968.stderr b/tests/ui/resolve/issue-24968.stderr similarity index 100% rename from src/test/ui/resolve/issue-24968.stderr rename to tests/ui/resolve/issue-24968.stderr diff --git a/src/test/ui/resolve/issue-26545.rs b/tests/ui/resolve/issue-26545.rs similarity index 100% rename from src/test/ui/resolve/issue-26545.rs rename to tests/ui/resolve/issue-26545.rs diff --git a/src/test/ui/resolve/issue-26545.stderr b/tests/ui/resolve/issue-26545.stderr similarity index 100% rename from src/test/ui/resolve/issue-26545.stderr rename to tests/ui/resolve/issue-26545.stderr diff --git a/src/test/ui/resolve/issue-3021-c.rs b/tests/ui/resolve/issue-3021-c.rs similarity index 100% rename from src/test/ui/resolve/issue-3021-c.rs rename to tests/ui/resolve/issue-3021-c.rs diff --git a/src/test/ui/resolve/issue-3021-c.stderr b/tests/ui/resolve/issue-3021-c.stderr similarity index 100% rename from src/test/ui/resolve/issue-3021-c.stderr rename to tests/ui/resolve/issue-3021-c.stderr diff --git a/src/test/ui/resolve/issue-3021.rs b/tests/ui/resolve/issue-3021.rs similarity index 100% rename from src/test/ui/resolve/issue-3021.rs rename to tests/ui/resolve/issue-3021.rs diff --git a/src/test/ui/resolve/issue-3021.stderr b/tests/ui/resolve/issue-3021.stderr similarity index 100% rename from src/test/ui/resolve/issue-3021.stderr rename to tests/ui/resolve/issue-3021.stderr diff --git a/src/test/ui/resolve/issue-30535.rs b/tests/ui/resolve/issue-30535.rs similarity index 100% rename from src/test/ui/resolve/issue-30535.rs rename to tests/ui/resolve/issue-30535.rs diff --git a/src/test/ui/resolve/issue-30535.stderr b/tests/ui/resolve/issue-30535.stderr similarity index 100% rename from src/test/ui/resolve/issue-30535.stderr rename to tests/ui/resolve/issue-30535.stderr diff --git a/src/test/ui/resolve/issue-31845.rs b/tests/ui/resolve/issue-31845.rs similarity index 100% rename from src/test/ui/resolve/issue-31845.rs rename to tests/ui/resolve/issue-31845.rs diff --git a/src/test/ui/resolve/issue-31845.stderr b/tests/ui/resolve/issue-31845.stderr similarity index 100% rename from src/test/ui/resolve/issue-31845.stderr rename to tests/ui/resolve/issue-31845.stderr diff --git a/src/test/ui/resolve/issue-33876.rs b/tests/ui/resolve/issue-33876.rs similarity index 100% rename from src/test/ui/resolve/issue-33876.rs rename to tests/ui/resolve/issue-33876.rs diff --git a/src/test/ui/resolve/issue-33876.stderr b/tests/ui/resolve/issue-33876.stderr similarity index 100% rename from src/test/ui/resolve/issue-33876.stderr rename to tests/ui/resolve/issue-33876.stderr diff --git a/src/test/ui/resolve/issue-35675.rs b/tests/ui/resolve/issue-35675.rs similarity index 100% rename from src/test/ui/resolve/issue-35675.rs rename to tests/ui/resolve/issue-35675.rs diff --git a/src/test/ui/resolve/issue-35675.stderr b/tests/ui/resolve/issue-35675.stderr similarity index 100% rename from src/test/ui/resolve/issue-35675.stderr rename to tests/ui/resolve/issue-35675.stderr diff --git a/src/test/ui/resolve/issue-3907-2.rs b/tests/ui/resolve/issue-3907-2.rs similarity index 100% rename from src/test/ui/resolve/issue-3907-2.rs rename to tests/ui/resolve/issue-3907-2.rs diff --git a/src/test/ui/resolve/issue-3907-2.stderr b/tests/ui/resolve/issue-3907-2.stderr similarity index 100% rename from src/test/ui/resolve/issue-3907-2.stderr rename to tests/ui/resolve/issue-3907-2.stderr diff --git a/src/test/ui/resolve/issue-3907.rs b/tests/ui/resolve/issue-3907.rs similarity index 100% rename from src/test/ui/resolve/issue-3907.rs rename to tests/ui/resolve/issue-3907.rs diff --git a/src/test/ui/resolve/issue-3907.stderr b/tests/ui/resolve/issue-3907.stderr similarity index 100% rename from src/test/ui/resolve/issue-3907.stderr rename to tests/ui/resolve/issue-3907.stderr diff --git a/src/test/ui/resolve/issue-39226.rs b/tests/ui/resolve/issue-39226.rs similarity index 100% rename from src/test/ui/resolve/issue-39226.rs rename to tests/ui/resolve/issue-39226.rs diff --git a/src/test/ui/resolve/issue-39226.stderr b/tests/ui/resolve/issue-39226.stderr similarity index 100% rename from src/test/ui/resolve/issue-39226.stderr rename to tests/ui/resolve/issue-39226.stderr diff --git a/src/test/ui/resolve/issue-39559-2.rs b/tests/ui/resolve/issue-39559-2.rs similarity index 100% rename from src/test/ui/resolve/issue-39559-2.rs rename to tests/ui/resolve/issue-39559-2.rs diff --git a/src/test/ui/resolve/issue-39559-2.stderr b/tests/ui/resolve/issue-39559-2.stderr similarity index 100% rename from src/test/ui/resolve/issue-39559-2.stderr rename to tests/ui/resolve/issue-39559-2.stderr diff --git a/src/test/ui/resolve/issue-39559.rs b/tests/ui/resolve/issue-39559.rs similarity index 100% rename from src/test/ui/resolve/issue-39559.rs rename to tests/ui/resolve/issue-39559.rs diff --git a/src/test/ui/resolve/issue-39559.stderr b/tests/ui/resolve/issue-39559.stderr similarity index 100% rename from src/test/ui/resolve/issue-39559.stderr rename to tests/ui/resolve/issue-39559.stderr diff --git a/src/test/ui/resolve/issue-42944.rs b/tests/ui/resolve/issue-42944.rs similarity index 100% rename from src/test/ui/resolve/issue-42944.rs rename to tests/ui/resolve/issue-42944.rs diff --git a/src/test/ui/resolve/issue-42944.stderr b/tests/ui/resolve/issue-42944.stderr similarity index 100% rename from src/test/ui/resolve/issue-42944.stderr rename to tests/ui/resolve/issue-42944.stderr diff --git a/src/test/ui/resolve/issue-49074.rs b/tests/ui/resolve/issue-49074.rs similarity index 100% rename from src/test/ui/resolve/issue-49074.rs rename to tests/ui/resolve/issue-49074.rs diff --git a/src/test/ui/resolve/issue-49074.stderr b/tests/ui/resolve/issue-49074.stderr similarity index 100% rename from src/test/ui/resolve/issue-49074.stderr rename to tests/ui/resolve/issue-49074.stderr diff --git a/src/test/ui/resolve/issue-5035-2.rs b/tests/ui/resolve/issue-5035-2.rs similarity index 100% rename from src/test/ui/resolve/issue-5035-2.rs rename to tests/ui/resolve/issue-5035-2.rs diff --git a/src/test/ui/resolve/issue-5035-2.stderr b/tests/ui/resolve/issue-5035-2.stderr similarity index 100% rename from src/test/ui/resolve/issue-5035-2.stderr rename to tests/ui/resolve/issue-5035-2.stderr diff --git a/src/test/ui/resolve/issue-5035.rs b/tests/ui/resolve/issue-5035.rs similarity index 100% rename from src/test/ui/resolve/issue-5035.rs rename to tests/ui/resolve/issue-5035.rs diff --git a/src/test/ui/resolve/issue-5035.stderr b/tests/ui/resolve/issue-5035.stderr similarity index 100% rename from src/test/ui/resolve/issue-5035.stderr rename to tests/ui/resolve/issue-5035.stderr diff --git a/src/test/ui/resolve/issue-50599.rs b/tests/ui/resolve/issue-50599.rs similarity index 100% rename from src/test/ui/resolve/issue-50599.rs rename to tests/ui/resolve/issue-50599.rs diff --git a/src/test/ui/resolve/issue-50599.stderr b/tests/ui/resolve/issue-50599.stderr similarity index 100% rename from src/test/ui/resolve/issue-50599.stderr rename to tests/ui/resolve/issue-50599.stderr diff --git a/src/test/ui/resolve/issue-5099.rs b/tests/ui/resolve/issue-5099.rs similarity index 100% rename from src/test/ui/resolve/issue-5099.rs rename to tests/ui/resolve/issue-5099.rs diff --git a/src/test/ui/resolve/issue-5099.stderr b/tests/ui/resolve/issue-5099.stderr similarity index 100% rename from src/test/ui/resolve/issue-5099.stderr rename to tests/ui/resolve/issue-5099.stderr diff --git a/src/test/ui/resolve/issue-54379.rs b/tests/ui/resolve/issue-54379.rs similarity index 100% rename from src/test/ui/resolve/issue-54379.rs rename to tests/ui/resolve/issue-54379.rs diff --git a/src/test/ui/resolve/issue-54379.stderr b/tests/ui/resolve/issue-54379.stderr similarity index 100% rename from src/test/ui/resolve/issue-54379.stderr rename to tests/ui/resolve/issue-54379.stderr diff --git a/src/test/ui/resolve/issue-55673.rs b/tests/ui/resolve/issue-55673.rs similarity index 100% rename from src/test/ui/resolve/issue-55673.rs rename to tests/ui/resolve/issue-55673.rs diff --git a/src/test/ui/resolve/issue-55673.stderr b/tests/ui/resolve/issue-55673.stderr similarity index 100% rename from src/test/ui/resolve/issue-55673.stderr rename to tests/ui/resolve/issue-55673.stderr diff --git a/src/test/ui/resolve/issue-57523.rs b/tests/ui/resolve/issue-57523.rs similarity index 100% rename from src/test/ui/resolve/issue-57523.rs rename to tests/ui/resolve/issue-57523.rs diff --git a/src/test/ui/resolve/issue-5927.rs b/tests/ui/resolve/issue-5927.rs similarity index 100% rename from src/test/ui/resolve/issue-5927.rs rename to tests/ui/resolve/issue-5927.rs diff --git a/src/test/ui/resolve/issue-5927.stderr b/tests/ui/resolve/issue-5927.stderr similarity index 100% rename from src/test/ui/resolve/issue-5927.stderr rename to tests/ui/resolve/issue-5927.stderr diff --git a/src/test/ui/resolve/issue-60057.rs b/tests/ui/resolve/issue-60057.rs similarity index 100% rename from src/test/ui/resolve/issue-60057.rs rename to tests/ui/resolve/issue-60057.rs diff --git a/src/test/ui/resolve/issue-60057.stderr b/tests/ui/resolve/issue-60057.stderr similarity index 100% rename from src/test/ui/resolve/issue-60057.stderr rename to tests/ui/resolve/issue-60057.stderr diff --git a/src/test/ui/resolve/issue-65025-extern-static-parent-generics.rs b/tests/ui/resolve/issue-65025-extern-static-parent-generics.rs similarity index 100% rename from src/test/ui/resolve/issue-65025-extern-static-parent-generics.rs rename to tests/ui/resolve/issue-65025-extern-static-parent-generics.rs diff --git a/src/test/ui/resolve/issue-65025-extern-static-parent-generics.stderr b/tests/ui/resolve/issue-65025-extern-static-parent-generics.stderr similarity index 100% rename from src/test/ui/resolve/issue-65025-extern-static-parent-generics.stderr rename to tests/ui/resolve/issue-65025-extern-static-parent-generics.stderr diff --git a/src/test/ui/resolve/issue-65035-static-with-parent-generics.rs b/tests/ui/resolve/issue-65035-static-with-parent-generics.rs similarity index 100% rename from src/test/ui/resolve/issue-65035-static-with-parent-generics.rs rename to tests/ui/resolve/issue-65035-static-with-parent-generics.rs diff --git a/src/test/ui/resolve/issue-65035-static-with-parent-generics.stderr b/tests/ui/resolve/issue-65035-static-with-parent-generics.stderr similarity index 100% rename from src/test/ui/resolve/issue-65035-static-with-parent-generics.stderr rename to tests/ui/resolve/issue-65035-static-with-parent-generics.stderr diff --git a/src/test/ui/resolve/issue-6702.rs b/tests/ui/resolve/issue-6702.rs similarity index 100% rename from src/test/ui/resolve/issue-6702.rs rename to tests/ui/resolve/issue-6702.rs diff --git a/src/test/ui/resolve/issue-6702.stderr b/tests/ui/resolve/issue-6702.stderr similarity index 100% rename from src/test/ui/resolve/issue-6702.stderr rename to tests/ui/resolve/issue-6702.stderr diff --git a/src/test/ui/resolve/issue-69401-trait-fn-no-body-ty-local.rs b/tests/ui/resolve/issue-69401-trait-fn-no-body-ty-local.rs similarity index 100% rename from src/test/ui/resolve/issue-69401-trait-fn-no-body-ty-local.rs rename to tests/ui/resolve/issue-69401-trait-fn-no-body-ty-local.rs diff --git a/src/test/ui/resolve/issue-69401-trait-fn-no-body-ty-local.stderr b/tests/ui/resolve/issue-69401-trait-fn-no-body-ty-local.stderr similarity index 100% rename from src/test/ui/resolve/issue-69401-trait-fn-no-body-ty-local.stderr rename to tests/ui/resolve/issue-69401-trait-fn-no-body-ty-local.stderr diff --git a/src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.rs b/tests/ui/resolve/issue-70736-async-fn-no-body-def-collector.rs similarity index 100% rename from src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.rs rename to tests/ui/resolve/issue-70736-async-fn-no-body-def-collector.rs diff --git a/src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.stderr b/tests/ui/resolve/issue-70736-async-fn-no-body-def-collector.stderr similarity index 100% rename from src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.stderr rename to tests/ui/resolve/issue-70736-async-fn-no-body-def-collector.stderr diff --git a/src/test/ui/resolve/issue-73427.rs b/tests/ui/resolve/issue-73427.rs similarity index 100% rename from src/test/ui/resolve/issue-73427.rs rename to tests/ui/resolve/issue-73427.rs diff --git a/src/test/ui/resolve/issue-73427.stderr b/tests/ui/resolve/issue-73427.stderr similarity index 100% rename from src/test/ui/resolve/issue-73427.stderr rename to tests/ui/resolve/issue-73427.stderr diff --git a/src/test/ui/resolve/issue-80079.rs b/tests/ui/resolve/issue-80079.rs similarity index 100% rename from src/test/ui/resolve/issue-80079.rs rename to tests/ui/resolve/issue-80079.rs diff --git a/src/test/ui/resolve/issue-80079.stderr b/tests/ui/resolve/issue-80079.stderr similarity index 100% rename from src/test/ui/resolve/issue-80079.stderr rename to tests/ui/resolve/issue-80079.stderr diff --git a/src/test/ui/resolve/issue-81508.rs b/tests/ui/resolve/issue-81508.rs similarity index 100% rename from src/test/ui/resolve/issue-81508.rs rename to tests/ui/resolve/issue-81508.rs diff --git a/src/test/ui/resolve/issue-81508.stderr b/tests/ui/resolve/issue-81508.stderr similarity index 100% rename from src/test/ui/resolve/issue-81508.stderr rename to tests/ui/resolve/issue-81508.stderr diff --git a/src/test/ui/resolve/issue-82156.rs b/tests/ui/resolve/issue-82156.rs similarity index 100% rename from src/test/ui/resolve/issue-82156.rs rename to tests/ui/resolve/issue-82156.rs diff --git a/src/test/ui/resolve/issue-82156.stderr b/tests/ui/resolve/issue-82156.stderr similarity index 100% rename from src/test/ui/resolve/issue-82156.stderr rename to tests/ui/resolve/issue-82156.stderr diff --git a/src/test/ui/resolve/issue-82865.rs b/tests/ui/resolve/issue-82865.rs similarity index 100% rename from src/test/ui/resolve/issue-82865.rs rename to tests/ui/resolve/issue-82865.rs diff --git a/src/test/ui/resolve/issue-82865.stderr b/tests/ui/resolve/issue-82865.stderr similarity index 100% rename from src/test/ui/resolve/issue-82865.stderr rename to tests/ui/resolve/issue-82865.stderr diff --git a/src/test/ui/resolve/issue-85348.rs b/tests/ui/resolve/issue-85348.rs similarity index 100% rename from src/test/ui/resolve/issue-85348.rs rename to tests/ui/resolve/issue-85348.rs diff --git a/src/test/ui/resolve/issue-85348.stderr b/tests/ui/resolve/issue-85348.stderr similarity index 100% rename from src/test/ui/resolve/issue-85348.stderr rename to tests/ui/resolve/issue-85348.stderr diff --git a/src/test/ui/resolve/issue-85671.rs b/tests/ui/resolve/issue-85671.rs similarity index 100% rename from src/test/ui/resolve/issue-85671.rs rename to tests/ui/resolve/issue-85671.rs diff --git a/src/test/ui/resolve/issue-88472.rs b/tests/ui/resolve/issue-88472.rs similarity index 100% rename from src/test/ui/resolve/issue-88472.rs rename to tests/ui/resolve/issue-88472.rs diff --git a/src/test/ui/resolve/issue-88472.stderr b/tests/ui/resolve/issue-88472.stderr similarity index 100% rename from src/test/ui/resolve/issue-88472.stderr rename to tests/ui/resolve/issue-88472.stderr diff --git a/src/test/ui/resolve/issue-90113.rs b/tests/ui/resolve/issue-90113.rs similarity index 100% rename from src/test/ui/resolve/issue-90113.rs rename to tests/ui/resolve/issue-90113.rs diff --git a/src/test/ui/resolve/issue-90113.stderr b/tests/ui/resolve/issue-90113.stderr similarity index 100% rename from src/test/ui/resolve/issue-90113.stderr rename to tests/ui/resolve/issue-90113.stderr diff --git a/src/test/ui/resolve/levenshtein.rs b/tests/ui/resolve/levenshtein.rs similarity index 100% rename from src/test/ui/resolve/levenshtein.rs rename to tests/ui/resolve/levenshtein.rs diff --git a/src/test/ui/resolve/levenshtein.stderr b/tests/ui/resolve/levenshtein.stderr similarity index 100% rename from src/test/ui/resolve/levenshtein.stderr rename to tests/ui/resolve/levenshtein.stderr diff --git a/src/test/ui/resolve/macro-determinacy-non-module.rs b/tests/ui/resolve/macro-determinacy-non-module.rs similarity index 100% rename from src/test/ui/resolve/macro-determinacy-non-module.rs rename to tests/ui/resolve/macro-determinacy-non-module.rs diff --git a/src/test/ui/resolve/missing-in-namespace.rs b/tests/ui/resolve/missing-in-namespace.rs similarity index 100% rename from src/test/ui/resolve/missing-in-namespace.rs rename to tests/ui/resolve/missing-in-namespace.rs diff --git a/src/test/ui/resolve/missing-in-namespace.stderr b/tests/ui/resolve/missing-in-namespace.stderr similarity index 100% rename from src/test/ui/resolve/missing-in-namespace.stderr rename to tests/ui/resolve/missing-in-namespace.stderr diff --git a/src/test/ui/resolve/name-clash-nullary.rs b/tests/ui/resolve/name-clash-nullary.rs similarity index 100% rename from src/test/ui/resolve/name-clash-nullary.rs rename to tests/ui/resolve/name-clash-nullary.rs diff --git a/src/test/ui/resolve/name-clash-nullary.stderr b/tests/ui/resolve/name-clash-nullary.stderr similarity index 100% rename from src/test/ui/resolve/name-clash-nullary.stderr rename to tests/ui/resolve/name-clash-nullary.stderr diff --git a/src/test/ui/resolve/name-collision-in-trait-fn-sig.rs b/tests/ui/resolve/name-collision-in-trait-fn-sig.rs similarity index 100% rename from src/test/ui/resolve/name-collision-in-trait-fn-sig.rs rename to tests/ui/resolve/name-collision-in-trait-fn-sig.rs diff --git a/src/test/ui/resolve/no-implicit-prelude-nested.rs b/tests/ui/resolve/no-implicit-prelude-nested.rs similarity index 100% rename from src/test/ui/resolve/no-implicit-prelude-nested.rs rename to tests/ui/resolve/no-implicit-prelude-nested.rs diff --git a/src/test/ui/resolve/no-implicit-prelude-nested.stderr b/tests/ui/resolve/no-implicit-prelude-nested.stderr similarity index 100% rename from src/test/ui/resolve/no-implicit-prelude-nested.stderr rename to tests/ui/resolve/no-implicit-prelude-nested.stderr diff --git a/src/test/ui/resolve/no-implicit-prelude.rs b/tests/ui/resolve/no-implicit-prelude.rs similarity index 100% rename from src/test/ui/resolve/no-implicit-prelude.rs rename to tests/ui/resolve/no-implicit-prelude.rs diff --git a/src/test/ui/resolve/no-implicit-prelude.stderr b/tests/ui/resolve/no-implicit-prelude.stderr similarity index 100% rename from src/test/ui/resolve/no-implicit-prelude.stderr rename to tests/ui/resolve/no-implicit-prelude.stderr diff --git a/src/test/ui/resolve/no-std-1.rs b/tests/ui/resolve/no-std-1.rs similarity index 100% rename from src/test/ui/resolve/no-std-1.rs rename to tests/ui/resolve/no-std-1.rs diff --git a/src/test/ui/resolve/no-std-2.rs b/tests/ui/resolve/no-std-2.rs similarity index 100% rename from src/test/ui/resolve/no-std-2.rs rename to tests/ui/resolve/no-std-2.rs diff --git a/src/test/ui/resolve/no-std-3.rs b/tests/ui/resolve/no-std-3.rs similarity index 100% rename from src/test/ui/resolve/no-std-3.rs rename to tests/ui/resolve/no-std-3.rs diff --git a/src/test/ui/resolve/pathless-extern-ok.rs b/tests/ui/resolve/pathless-extern-ok.rs similarity index 100% rename from src/test/ui/resolve/pathless-extern-ok.rs rename to tests/ui/resolve/pathless-extern-ok.rs diff --git a/src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.rs b/tests/ui/resolve/point-at-type-parameter-shadowing-another-type.rs similarity index 100% rename from src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.rs rename to tests/ui/resolve/point-at-type-parameter-shadowing-another-type.rs diff --git a/src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr b/tests/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr similarity index 100% rename from src/test/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr rename to tests/ui/resolve/point-at-type-parameter-shadowing-another-type.stderr diff --git a/src/test/ui/resolve/privacy-enum-ctor.rs b/tests/ui/resolve/privacy-enum-ctor.rs similarity index 100% rename from src/test/ui/resolve/privacy-enum-ctor.rs rename to tests/ui/resolve/privacy-enum-ctor.rs diff --git a/src/test/ui/resolve/privacy-enum-ctor.stderr b/tests/ui/resolve/privacy-enum-ctor.stderr similarity index 100% rename from src/test/ui/resolve/privacy-enum-ctor.stderr rename to tests/ui/resolve/privacy-enum-ctor.stderr diff --git a/src/test/ui/resolve/privacy-struct-ctor.rs b/tests/ui/resolve/privacy-struct-ctor.rs similarity index 100% rename from src/test/ui/resolve/privacy-struct-ctor.rs rename to tests/ui/resolve/privacy-struct-ctor.rs diff --git a/src/test/ui/resolve/privacy-struct-ctor.stderr b/tests/ui/resolve/privacy-struct-ctor.stderr similarity index 100% rename from src/test/ui/resolve/privacy-struct-ctor.stderr rename to tests/ui/resolve/privacy-struct-ctor.stderr diff --git a/src/test/ui/resolve/raw-ident-in-path.rs b/tests/ui/resolve/raw-ident-in-path.rs similarity index 100% rename from src/test/ui/resolve/raw-ident-in-path.rs rename to tests/ui/resolve/raw-ident-in-path.rs diff --git a/src/test/ui/resolve/raw-ident-in-path.stderr b/tests/ui/resolve/raw-ident-in-path.stderr similarity index 100% rename from src/test/ui/resolve/raw-ident-in-path.stderr rename to tests/ui/resolve/raw-ident-in-path.stderr diff --git a/src/test/ui/resolve/resolve-assoc-suggestions.rs b/tests/ui/resolve/resolve-assoc-suggestions.rs similarity index 100% rename from src/test/ui/resolve/resolve-assoc-suggestions.rs rename to tests/ui/resolve/resolve-assoc-suggestions.rs diff --git a/src/test/ui/resolve/resolve-assoc-suggestions.stderr b/tests/ui/resolve/resolve-assoc-suggestions.stderr similarity index 100% rename from src/test/ui/resolve/resolve-assoc-suggestions.stderr rename to tests/ui/resolve/resolve-assoc-suggestions.stderr diff --git a/src/test/ui/resolve/resolve-bad-import-prefix.rs b/tests/ui/resolve/resolve-bad-import-prefix.rs similarity index 100% rename from src/test/ui/resolve/resolve-bad-import-prefix.rs rename to tests/ui/resolve/resolve-bad-import-prefix.rs diff --git a/src/test/ui/resolve/resolve-bad-import-prefix.stderr b/tests/ui/resolve/resolve-bad-import-prefix.stderr similarity index 100% rename from src/test/ui/resolve/resolve-bad-import-prefix.stderr rename to tests/ui/resolve/resolve-bad-import-prefix.stderr diff --git a/src/test/ui/resolve/resolve-bad-visibility.rs b/tests/ui/resolve/resolve-bad-visibility.rs similarity index 100% rename from src/test/ui/resolve/resolve-bad-visibility.rs rename to tests/ui/resolve/resolve-bad-visibility.rs diff --git a/src/test/ui/resolve/resolve-bad-visibility.stderr b/tests/ui/resolve/resolve-bad-visibility.stderr similarity index 100% rename from src/test/ui/resolve/resolve-bad-visibility.stderr rename to tests/ui/resolve/resolve-bad-visibility.stderr diff --git a/src/test/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.rs b/tests/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.rs similarity index 100% rename from src/test/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.rs rename to tests/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.rs diff --git a/src/test/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.stderr b/tests/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.stderr similarity index 100% rename from src/test/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.stderr rename to tests/ui/resolve/resolve-conflict-extern-crate-vs-extern-crate.stderr diff --git a/src/test/ui/resolve/resolve-conflict-import-vs-extern-crate.rs b/tests/ui/resolve/resolve-conflict-import-vs-extern-crate.rs similarity index 100% rename from src/test/ui/resolve/resolve-conflict-import-vs-extern-crate.rs rename to tests/ui/resolve/resolve-conflict-import-vs-extern-crate.rs diff --git a/src/test/ui/resolve/resolve-conflict-import-vs-extern-crate.stderr b/tests/ui/resolve/resolve-conflict-import-vs-extern-crate.stderr similarity index 100% rename from src/test/ui/resolve/resolve-conflict-import-vs-extern-crate.stderr rename to tests/ui/resolve/resolve-conflict-import-vs-extern-crate.stderr diff --git a/src/test/ui/resolve/resolve-conflict-import-vs-import.fixed b/tests/ui/resolve/resolve-conflict-import-vs-import.fixed similarity index 100% rename from src/test/ui/resolve/resolve-conflict-import-vs-import.fixed rename to tests/ui/resolve/resolve-conflict-import-vs-import.fixed diff --git a/src/test/ui/resolve/resolve-conflict-import-vs-import.rs b/tests/ui/resolve/resolve-conflict-import-vs-import.rs similarity index 100% rename from src/test/ui/resolve/resolve-conflict-import-vs-import.rs rename to tests/ui/resolve/resolve-conflict-import-vs-import.rs diff --git a/src/test/ui/resolve/resolve-conflict-import-vs-import.stderr b/tests/ui/resolve/resolve-conflict-import-vs-import.stderr similarity index 100% rename from src/test/ui/resolve/resolve-conflict-import-vs-import.stderr rename to tests/ui/resolve/resolve-conflict-import-vs-import.stderr diff --git a/src/test/ui/resolve/resolve-conflict-item-vs-extern-crate.rs b/tests/ui/resolve/resolve-conflict-item-vs-extern-crate.rs similarity index 100% rename from src/test/ui/resolve/resolve-conflict-item-vs-extern-crate.rs rename to tests/ui/resolve/resolve-conflict-item-vs-extern-crate.rs diff --git a/src/test/ui/resolve/resolve-conflict-item-vs-extern-crate.stderr b/tests/ui/resolve/resolve-conflict-item-vs-extern-crate.stderr similarity index 100% rename from src/test/ui/resolve/resolve-conflict-item-vs-extern-crate.stderr rename to tests/ui/resolve/resolve-conflict-item-vs-extern-crate.stderr diff --git a/src/test/ui/resolve/resolve-conflict-item-vs-import.rs b/tests/ui/resolve/resolve-conflict-item-vs-import.rs similarity index 100% rename from src/test/ui/resolve/resolve-conflict-item-vs-import.rs rename to tests/ui/resolve/resolve-conflict-item-vs-import.rs diff --git a/src/test/ui/resolve/resolve-conflict-item-vs-import.stderr b/tests/ui/resolve/resolve-conflict-item-vs-import.stderr similarity index 100% rename from src/test/ui/resolve/resolve-conflict-item-vs-import.stderr rename to tests/ui/resolve/resolve-conflict-item-vs-import.stderr diff --git a/src/test/ui/resolve/resolve-conflict-type-vs-import.rs b/tests/ui/resolve/resolve-conflict-type-vs-import.rs similarity index 100% rename from src/test/ui/resolve/resolve-conflict-type-vs-import.rs rename to tests/ui/resolve/resolve-conflict-type-vs-import.rs diff --git a/src/test/ui/resolve/resolve-conflict-type-vs-import.stderr b/tests/ui/resolve/resolve-conflict-type-vs-import.stderr similarity index 100% rename from src/test/ui/resolve/resolve-conflict-type-vs-import.stderr rename to tests/ui/resolve/resolve-conflict-type-vs-import.stderr diff --git a/src/test/ui/resolve/resolve-hint-macro.fixed b/tests/ui/resolve/resolve-hint-macro.fixed similarity index 100% rename from src/test/ui/resolve/resolve-hint-macro.fixed rename to tests/ui/resolve/resolve-hint-macro.fixed diff --git a/src/test/ui/resolve/resolve-hint-macro.rs b/tests/ui/resolve/resolve-hint-macro.rs similarity index 100% rename from src/test/ui/resolve/resolve-hint-macro.rs rename to tests/ui/resolve/resolve-hint-macro.rs diff --git a/src/test/ui/resolve/resolve-hint-macro.stderr b/tests/ui/resolve/resolve-hint-macro.stderr similarity index 100% rename from src/test/ui/resolve/resolve-hint-macro.stderr rename to tests/ui/resolve/resolve-hint-macro.stderr diff --git a/src/test/ui/resolve/resolve-inconsistent-binding-mode.rs b/tests/ui/resolve/resolve-inconsistent-binding-mode.rs similarity index 100% rename from src/test/ui/resolve/resolve-inconsistent-binding-mode.rs rename to tests/ui/resolve/resolve-inconsistent-binding-mode.rs diff --git a/src/test/ui/resolve/resolve-inconsistent-binding-mode.stderr b/tests/ui/resolve/resolve-inconsistent-binding-mode.stderr similarity index 100% rename from src/test/ui/resolve/resolve-inconsistent-binding-mode.stderr rename to tests/ui/resolve/resolve-inconsistent-binding-mode.stderr diff --git a/src/test/ui/resolve/resolve-inconsistent-names.rs b/tests/ui/resolve/resolve-inconsistent-names.rs similarity index 100% rename from src/test/ui/resolve/resolve-inconsistent-names.rs rename to tests/ui/resolve/resolve-inconsistent-names.rs diff --git a/src/test/ui/resolve/resolve-inconsistent-names.stderr b/tests/ui/resolve/resolve-inconsistent-names.stderr similarity index 100% rename from src/test/ui/resolve/resolve-inconsistent-names.stderr rename to tests/ui/resolve/resolve-inconsistent-names.stderr diff --git a/src/test/ui/resolve/resolve-issue-2428.rs b/tests/ui/resolve/resolve-issue-2428.rs similarity index 100% rename from src/test/ui/resolve/resolve-issue-2428.rs rename to tests/ui/resolve/resolve-issue-2428.rs diff --git a/src/test/ui/resolve/resolve-label.rs b/tests/ui/resolve/resolve-label.rs similarity index 100% rename from src/test/ui/resolve/resolve-label.rs rename to tests/ui/resolve/resolve-label.rs diff --git a/src/test/ui/resolve/resolve-label.stderr b/tests/ui/resolve/resolve-label.stderr similarity index 100% rename from src/test/ui/resolve/resolve-label.stderr rename to tests/ui/resolve/resolve-label.stderr diff --git a/src/test/ui/resolve/resolve-primitive-fallback.rs b/tests/ui/resolve/resolve-primitive-fallback.rs similarity index 100% rename from src/test/ui/resolve/resolve-primitive-fallback.rs rename to tests/ui/resolve/resolve-primitive-fallback.rs diff --git a/src/test/ui/resolve/resolve-primitive-fallback.stderr b/tests/ui/resolve/resolve-primitive-fallback.stderr similarity index 100% rename from src/test/ui/resolve/resolve-primitive-fallback.stderr rename to tests/ui/resolve/resolve-primitive-fallback.stderr diff --git a/src/test/ui/resolve/resolve-pseudo-shadowing.rs b/tests/ui/resolve/resolve-pseudo-shadowing.rs similarity index 100% rename from src/test/ui/resolve/resolve-pseudo-shadowing.rs rename to tests/ui/resolve/resolve-pseudo-shadowing.rs diff --git a/src/test/ui/resolve/resolve-self-in-impl-2.rs b/tests/ui/resolve/resolve-self-in-impl-2.rs similarity index 100% rename from src/test/ui/resolve/resolve-self-in-impl-2.rs rename to tests/ui/resolve/resolve-self-in-impl-2.rs diff --git a/src/test/ui/resolve/resolve-self-in-impl-2.stderr b/tests/ui/resolve/resolve-self-in-impl-2.stderr similarity index 100% rename from src/test/ui/resolve/resolve-self-in-impl-2.stderr rename to tests/ui/resolve/resolve-self-in-impl-2.stderr diff --git a/src/test/ui/resolve/resolve-self-in-impl.rs b/tests/ui/resolve/resolve-self-in-impl.rs similarity index 100% rename from src/test/ui/resolve/resolve-self-in-impl.rs rename to tests/ui/resolve/resolve-self-in-impl.rs diff --git a/src/test/ui/resolve/resolve-self-in-impl.stderr b/tests/ui/resolve/resolve-self-in-impl.stderr similarity index 100% rename from src/test/ui/resolve/resolve-self-in-impl.stderr rename to tests/ui/resolve/resolve-self-in-impl.stderr diff --git a/src/test/ui/resolve/resolve-speculative-adjustment.rs b/tests/ui/resolve/resolve-speculative-adjustment.rs similarity index 100% rename from src/test/ui/resolve/resolve-speculative-adjustment.rs rename to tests/ui/resolve/resolve-speculative-adjustment.rs diff --git a/src/test/ui/resolve/resolve-speculative-adjustment.stderr b/tests/ui/resolve/resolve-speculative-adjustment.stderr similarity index 100% rename from src/test/ui/resolve/resolve-speculative-adjustment.stderr rename to tests/ui/resolve/resolve-speculative-adjustment.stderr diff --git a/src/test/ui/resolve/resolve-type-param-in-item-in-trait.rs b/tests/ui/resolve/resolve-type-param-in-item-in-trait.rs similarity index 100% rename from src/test/ui/resolve/resolve-type-param-in-item-in-trait.rs rename to tests/ui/resolve/resolve-type-param-in-item-in-trait.rs diff --git a/src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr b/tests/ui/resolve/resolve-type-param-in-item-in-trait.stderr similarity index 100% rename from src/test/ui/resolve/resolve-type-param-in-item-in-trait.stderr rename to tests/ui/resolve/resolve-type-param-in-item-in-trait.stderr diff --git a/src/test/ui/resolve/resolve-unknown-trait.rs b/tests/ui/resolve/resolve-unknown-trait.rs similarity index 100% rename from src/test/ui/resolve/resolve-unknown-trait.rs rename to tests/ui/resolve/resolve-unknown-trait.rs diff --git a/src/test/ui/resolve/resolve-unknown-trait.stderr b/tests/ui/resolve/resolve-unknown-trait.stderr similarity index 100% rename from src/test/ui/resolve/resolve-unknown-trait.stderr rename to tests/ui/resolve/resolve-unknown-trait.stderr diff --git a/src/test/ui/resolve/resolve-variant-assoc-item.rs b/tests/ui/resolve/resolve-variant-assoc-item.rs similarity index 100% rename from src/test/ui/resolve/resolve-variant-assoc-item.rs rename to tests/ui/resolve/resolve-variant-assoc-item.rs diff --git a/src/test/ui/resolve/resolve-variant-assoc-item.stderr b/tests/ui/resolve/resolve-variant-assoc-item.stderr similarity index 100% rename from src/test/ui/resolve/resolve-variant-assoc-item.stderr rename to tests/ui/resolve/resolve-variant-assoc-item.stderr diff --git a/src/test/ui/resolve/shadow-const-param.rs b/tests/ui/resolve/shadow-const-param.rs similarity index 100% rename from src/test/ui/resolve/shadow-const-param.rs rename to tests/ui/resolve/shadow-const-param.rs diff --git a/src/test/ui/resolve/shadow-const-param.stderr b/tests/ui/resolve/shadow-const-param.stderr similarity index 100% rename from src/test/ui/resolve/shadow-const-param.stderr rename to tests/ui/resolve/shadow-const-param.stderr diff --git a/src/test/ui/resolve/suggest-path-for-tuple-struct.rs b/tests/ui/resolve/suggest-path-for-tuple-struct.rs similarity index 100% rename from src/test/ui/resolve/suggest-path-for-tuple-struct.rs rename to tests/ui/resolve/suggest-path-for-tuple-struct.rs diff --git a/src/test/ui/resolve/suggest-path-for-tuple-struct.stderr b/tests/ui/resolve/suggest-path-for-tuple-struct.stderr similarity index 100% rename from src/test/ui/resolve/suggest-path-for-tuple-struct.stderr rename to tests/ui/resolve/suggest-path-for-tuple-struct.stderr diff --git a/src/test/ui/resolve/suggest-path-instead-of-mod-dot-item.rs b/tests/ui/resolve/suggest-path-instead-of-mod-dot-item.rs similarity index 100% rename from src/test/ui/resolve/suggest-path-instead-of-mod-dot-item.rs rename to tests/ui/resolve/suggest-path-instead-of-mod-dot-item.rs diff --git a/src/test/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr b/tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr similarity index 100% rename from src/test/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr rename to tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr diff --git a/src/test/ui/resolve/token-error-correct-2.rs b/tests/ui/resolve/token-error-correct-2.rs similarity index 100% rename from src/test/ui/resolve/token-error-correct-2.rs rename to tests/ui/resolve/token-error-correct-2.rs diff --git a/src/test/ui/resolve/token-error-correct-2.stderr b/tests/ui/resolve/token-error-correct-2.stderr similarity index 100% rename from src/test/ui/resolve/token-error-correct-2.stderr rename to tests/ui/resolve/token-error-correct-2.stderr diff --git a/src/test/ui/resolve/token-error-correct-3.rs b/tests/ui/resolve/token-error-correct-3.rs similarity index 100% rename from src/test/ui/resolve/token-error-correct-3.rs rename to tests/ui/resolve/token-error-correct-3.rs diff --git a/src/test/ui/resolve/token-error-correct-3.stderr b/tests/ui/resolve/token-error-correct-3.stderr similarity index 100% rename from src/test/ui/resolve/token-error-correct-3.stderr rename to tests/ui/resolve/token-error-correct-3.stderr diff --git a/src/test/ui/resolve/token-error-correct-4.fixed b/tests/ui/resolve/token-error-correct-4.fixed similarity index 100% rename from src/test/ui/resolve/token-error-correct-4.fixed rename to tests/ui/resolve/token-error-correct-4.fixed diff --git a/src/test/ui/resolve/token-error-correct-4.rs b/tests/ui/resolve/token-error-correct-4.rs similarity index 100% rename from src/test/ui/resolve/token-error-correct-4.rs rename to tests/ui/resolve/token-error-correct-4.rs diff --git a/src/test/ui/resolve/token-error-correct-4.stderr b/tests/ui/resolve/token-error-correct-4.stderr similarity index 100% rename from src/test/ui/resolve/token-error-correct-4.stderr rename to tests/ui/resolve/token-error-correct-4.stderr diff --git a/src/test/ui/resolve/token-error-correct.rs b/tests/ui/resolve/token-error-correct.rs similarity index 100% rename from src/test/ui/resolve/token-error-correct.rs rename to tests/ui/resolve/token-error-correct.rs diff --git a/src/test/ui/resolve/token-error-correct.stderr b/tests/ui/resolve/token-error-correct.stderr similarity index 100% rename from src/test/ui/resolve/token-error-correct.stderr rename to tests/ui/resolve/token-error-correct.stderr diff --git a/src/test/ui/resolve/tuple-struct-alias.rs b/tests/ui/resolve/tuple-struct-alias.rs similarity index 100% rename from src/test/ui/resolve/tuple-struct-alias.rs rename to tests/ui/resolve/tuple-struct-alias.rs diff --git a/src/test/ui/resolve/tuple-struct-alias.stderr b/tests/ui/resolve/tuple-struct-alias.stderr similarity index 100% rename from src/test/ui/resolve/tuple-struct-alias.stderr rename to tests/ui/resolve/tuple-struct-alias.stderr diff --git a/src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs b/tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs similarity index 100% rename from src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs rename to tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.rs diff --git a/src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr b/tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr similarity index 100% rename from src/test/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr rename to tests/ui/resolve/typo-suggestion-for-variable-with-name-similar-to-struct-field.stderr diff --git a/src/test/ui/resolve/typo-suggestion-mistyped-in-path.rs b/tests/ui/resolve/typo-suggestion-mistyped-in-path.rs similarity index 100% rename from src/test/ui/resolve/typo-suggestion-mistyped-in-path.rs rename to tests/ui/resolve/typo-suggestion-mistyped-in-path.rs diff --git a/src/test/ui/resolve/typo-suggestion-mistyped-in-path.stderr b/tests/ui/resolve/typo-suggestion-mistyped-in-path.stderr similarity index 100% rename from src/test/ui/resolve/typo-suggestion-mistyped-in-path.stderr rename to tests/ui/resolve/typo-suggestion-mistyped-in-path.stderr diff --git a/src/test/ui/resolve/typo-suggestion-named-underscore.rs b/tests/ui/resolve/typo-suggestion-named-underscore.rs similarity index 100% rename from src/test/ui/resolve/typo-suggestion-named-underscore.rs rename to tests/ui/resolve/typo-suggestion-named-underscore.rs diff --git a/src/test/ui/resolve/typo-suggestion-named-underscore.stderr b/tests/ui/resolve/typo-suggestion-named-underscore.stderr similarity index 100% rename from src/test/ui/resolve/typo-suggestion-named-underscore.stderr rename to tests/ui/resolve/typo-suggestion-named-underscore.stderr diff --git a/src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.rs b/tests/ui/resolve/unboxed-closure-sugar-nonexistent-trait.rs similarity index 100% rename from src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.rs rename to tests/ui/resolve/unboxed-closure-sugar-nonexistent-trait.rs diff --git a/src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr b/tests/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr similarity index 100% rename from src/test/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr rename to tests/ui/resolve/unboxed-closure-sugar-nonexistent-trait.stderr diff --git a/src/test/ui/resolve/unresolved_static_type_field.rs b/tests/ui/resolve/unresolved_static_type_field.rs similarity index 100% rename from src/test/ui/resolve/unresolved_static_type_field.rs rename to tests/ui/resolve/unresolved_static_type_field.rs diff --git a/src/test/ui/resolve/unresolved_static_type_field.stderr b/tests/ui/resolve/unresolved_static_type_field.stderr similarity index 100% rename from src/test/ui/resolve/unresolved_static_type_field.stderr rename to tests/ui/resolve/unresolved_static_type_field.stderr diff --git a/src/test/ui/resolve/use-self-in-inner-fn.rs b/tests/ui/resolve/use-self-in-inner-fn.rs similarity index 100% rename from src/test/ui/resolve/use-self-in-inner-fn.rs rename to tests/ui/resolve/use-self-in-inner-fn.rs diff --git a/src/test/ui/resolve/use-self-in-inner-fn.stderr b/tests/ui/resolve/use-self-in-inner-fn.stderr similarity index 100% rename from src/test/ui/resolve/use-self-in-inner-fn.stderr rename to tests/ui/resolve/use-self-in-inner-fn.stderr diff --git a/src/test/ui/resolve/use_suggestion.rs b/tests/ui/resolve/use_suggestion.rs similarity index 100% rename from src/test/ui/resolve/use_suggestion.rs rename to tests/ui/resolve/use_suggestion.rs diff --git a/src/test/ui/resolve/use_suggestion.stderr b/tests/ui/resolve/use_suggestion.stderr similarity index 100% rename from src/test/ui/resolve/use_suggestion.stderr rename to tests/ui/resolve/use_suggestion.stderr diff --git a/src/test/ui/resolve/use_suggestion_placement.fixed b/tests/ui/resolve/use_suggestion_placement.fixed similarity index 100% rename from src/test/ui/resolve/use_suggestion_placement.fixed rename to tests/ui/resolve/use_suggestion_placement.fixed diff --git a/src/test/ui/resolve/use_suggestion_placement.rs b/tests/ui/resolve/use_suggestion_placement.rs similarity index 100% rename from src/test/ui/resolve/use_suggestion_placement.rs rename to tests/ui/resolve/use_suggestion_placement.rs diff --git a/src/test/ui/resolve/use_suggestion_placement.stderr b/tests/ui/resolve/use_suggestion_placement.stderr similarity index 100% rename from src/test/ui/resolve/use_suggestion_placement.stderr rename to tests/ui/resolve/use_suggestion_placement.stderr diff --git a/src/test/ui/resolve/visibility-indeterminate.rs b/tests/ui/resolve/visibility-indeterminate.rs similarity index 100% rename from src/test/ui/resolve/visibility-indeterminate.rs rename to tests/ui/resolve/visibility-indeterminate.rs diff --git a/src/test/ui/resolve/visibility-indeterminate.stderr b/tests/ui/resolve/visibility-indeterminate.stderr similarity index 100% rename from src/test/ui/resolve/visibility-indeterminate.stderr rename to tests/ui/resolve/visibility-indeterminate.stderr diff --git a/src/test/ui/resource-assign-is-not-copy.rs b/tests/ui/resource-assign-is-not-copy.rs similarity index 100% rename from src/test/ui/resource-assign-is-not-copy.rs rename to tests/ui/resource-assign-is-not-copy.rs diff --git a/src/test/ui/resource-destruct.rs b/tests/ui/resource-destruct.rs similarity index 100% rename from src/test/ui/resource-destruct.rs rename to tests/ui/resource-destruct.rs diff --git a/src/test/ui/ret-bang.rs b/tests/ui/ret-bang.rs similarity index 100% rename from src/test/ui/ret-bang.rs rename to tests/ui/ret-bang.rs diff --git a/src/test/ui/ret-non-nil.rs b/tests/ui/ret-non-nil.rs similarity index 100% rename from src/test/ui/ret-non-nil.rs rename to tests/ui/ret-non-nil.rs diff --git a/src/test/ui/ret-non-nil.stderr b/tests/ui/ret-non-nil.stderr similarity index 100% rename from src/test/ui/ret-non-nil.stderr rename to tests/ui/ret-non-nil.stderr diff --git a/src/test/ui/return-disjoint-regions.rs b/tests/ui/return-disjoint-regions.rs similarity index 100% rename from src/test/ui/return-disjoint-regions.rs rename to tests/ui/return-disjoint-regions.rs diff --git a/src/test/ui/return-disjoint-regions.stderr b/tests/ui/return-disjoint-regions.stderr similarity index 100% rename from src/test/ui/return-disjoint-regions.stderr rename to tests/ui/return-disjoint-regions.stderr diff --git a/src/test/ui/return-nil.rs b/tests/ui/return-nil.rs similarity index 100% rename from src/test/ui/return-nil.rs rename to tests/ui/return-nil.rs diff --git a/src/test/ui/return/issue-64620.rs b/tests/ui/return/issue-64620.rs similarity index 100% rename from src/test/ui/return/issue-64620.rs rename to tests/ui/return/issue-64620.rs diff --git a/src/test/ui/return/issue-64620.stderr b/tests/ui/return/issue-64620.stderr similarity index 100% rename from src/test/ui/return/issue-64620.stderr rename to tests/ui/return/issue-64620.stderr diff --git a/src/test/ui/return/issue-82612-return-mutable-reference.rs b/tests/ui/return/issue-82612-return-mutable-reference.rs similarity index 100% rename from src/test/ui/return/issue-82612-return-mutable-reference.rs rename to tests/ui/return/issue-82612-return-mutable-reference.rs diff --git a/src/test/ui/return/issue-82612-return-mutable-reference.stderr b/tests/ui/return/issue-82612-return-mutable-reference.stderr similarity index 100% rename from src/test/ui/return/issue-82612-return-mutable-reference.stderr rename to tests/ui/return/issue-82612-return-mutable-reference.stderr diff --git a/src/test/ui/return/issue-86188-return-not-in-fn-body.rs b/tests/ui/return/issue-86188-return-not-in-fn-body.rs similarity index 100% rename from src/test/ui/return/issue-86188-return-not-in-fn-body.rs rename to tests/ui/return/issue-86188-return-not-in-fn-body.rs diff --git a/src/test/ui/return/issue-86188-return-not-in-fn-body.stderr b/tests/ui/return/issue-86188-return-not-in-fn-body.stderr similarity index 100% rename from src/test/ui/return/issue-86188-return-not-in-fn-body.stderr rename to tests/ui/return/issue-86188-return-not-in-fn-body.stderr diff --git a/src/test/ui/return/return-from-diverging.rs b/tests/ui/return/return-from-diverging.rs similarity index 100% rename from src/test/ui/return/return-from-diverging.rs rename to tests/ui/return/return-from-diverging.rs diff --git a/src/test/ui/return/return-from-diverging.stderr b/tests/ui/return/return-from-diverging.stderr similarity index 100% rename from src/test/ui/return/return-from-diverging.stderr rename to tests/ui/return/return-from-diverging.stderr diff --git a/src/test/ui/return/return-impl-trait-bad.rs b/tests/ui/return/return-impl-trait-bad.rs similarity index 100% rename from src/test/ui/return/return-impl-trait-bad.rs rename to tests/ui/return/return-impl-trait-bad.rs diff --git a/src/test/ui/return/return-impl-trait-bad.stderr b/tests/ui/return/return-impl-trait-bad.stderr similarity index 100% rename from src/test/ui/return/return-impl-trait-bad.stderr rename to tests/ui/return/return-impl-trait-bad.stderr diff --git a/src/test/ui/return/return-impl-trait.fixed b/tests/ui/return/return-impl-trait.fixed similarity index 100% rename from src/test/ui/return/return-impl-trait.fixed rename to tests/ui/return/return-impl-trait.fixed diff --git a/src/test/ui/return/return-impl-trait.rs b/tests/ui/return/return-impl-trait.rs similarity index 100% rename from src/test/ui/return/return-impl-trait.rs rename to tests/ui/return/return-impl-trait.rs diff --git a/src/test/ui/return/return-impl-trait.stderr b/tests/ui/return/return-impl-trait.stderr similarity index 100% rename from src/test/ui/return/return-impl-trait.stderr rename to tests/ui/return/return-impl-trait.stderr diff --git a/src/test/ui/return/return-match-array-const.rs b/tests/ui/return/return-match-array-const.rs similarity index 100% rename from src/test/ui/return/return-match-array-const.rs rename to tests/ui/return/return-match-array-const.rs diff --git a/src/test/ui/return/return-match-array-const.stderr b/tests/ui/return/return-match-array-const.stderr similarity index 100% rename from src/test/ui/return/return-match-array-const.stderr rename to tests/ui/return/return-match-array-const.stderr diff --git a/src/test/ui/return/return-type.rs b/tests/ui/return/return-type.rs similarity index 100% rename from src/test/ui/return/return-type.rs rename to tests/ui/return/return-type.rs diff --git a/src/test/ui/return/return-type.stderr b/tests/ui/return/return-type.stderr similarity index 100% rename from src/test/ui/return/return-type.stderr rename to tests/ui/return/return-type.stderr diff --git a/src/test/ui/return/return-unit-from-diverging.rs b/tests/ui/return/return-unit-from-diverging.rs similarity index 100% rename from src/test/ui/return/return-unit-from-diverging.rs rename to tests/ui/return/return-unit-from-diverging.rs diff --git a/src/test/ui/return/return-unit-from-diverging.stderr b/tests/ui/return/return-unit-from-diverging.stderr similarity index 100% rename from src/test/ui/return/return-unit-from-diverging.stderr rename to tests/ui/return/return-unit-from-diverging.stderr diff --git a/src/test/ui/return/tail-expr-as-potential-return.rs b/tests/ui/return/tail-expr-as-potential-return.rs similarity index 100% rename from src/test/ui/return/tail-expr-as-potential-return.rs rename to tests/ui/return/tail-expr-as-potential-return.rs diff --git a/src/test/ui/return/tail-expr-as-potential-return.stderr b/tests/ui/return/tail-expr-as-potential-return.stderr similarity index 100% rename from src/test/ui/return/tail-expr-as-potential-return.stderr rename to tests/ui/return/tail-expr-as-potential-return.stderr diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/bind-by-move-no-guards.rs b/tests/ui/rfc-0107-bind-by-move-pattern-guards/bind-by-move-no-guards.rs similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/bind-by-move-no-guards.rs rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/bind-by-move-no-guards.rs diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs b/tests/ui/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-basic-examples.rs b/tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-basic-examples.rs similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-basic-examples.rs rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-basic-examples.rs diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.rs b/tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.rs similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.rs rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.rs diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.stderr b/tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.stderr similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.stderr rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-across-arms.stderr diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.rs b/tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.rs similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.rs rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.rs diff --git a/src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.stderr b/tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.stderr similarity index 100% rename from src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.stderr rename to tests/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-embedded.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-embedded.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-embedded.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-embedded.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-param.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-param.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-param.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-direct-unsafe-ptr-param.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-embedded.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-embedded.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-embedded.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-embedded.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-param.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-param.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-param.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/allow-hide-behind-indirect-unsafe-ptr-param.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-use-behind-cousin-variant.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/allow-use-behind-cousin-variant.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/allow-use-behind-cousin-variant.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/allow-use-behind-cousin-variant.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-embedded.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-direct-struct-param.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-embedded.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-doubly-indirect-param.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-embedded.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/cant-hide-behind-indirect-struct-param.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.no_gate.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.no_gate.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.no_gate.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.no_gate.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.with_gate.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.with_gate.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.with_gate.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/feature-gate.with_gate.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/fn-ptr-is-structurally-matchable.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/fn-ptr-is-structurally-matchable.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/fn-ptr-is-structurally-matchable.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/fn-ptr-is-structurally-matchable.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-61188-match-slice-forbidden-without-eq.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-62307-match-ref-ref-forbidden-without-eq.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-63479-match-fnptr.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/issue-6804.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-empty-array-allowed-without-eq-issue-62336.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-empty-array-allowed-without-eq-issue-62336.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-empty-array-allowed-without-eq-issue-62336.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-empty-array-allowed-without-eq-issue-62336.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.rs diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.stderr b/tests/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.stderr similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.stderr rename to tests/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.stderr diff --git a/src/test/ui/rfc-1445-restrict-constants-in-patterns/phantom-data-is-structurally-matchable.rs b/tests/ui/rfc-1445-restrict-constants-in-patterns/phantom-data-is-structurally-matchable.rs similarity index 100% rename from src/test/ui/rfc-1445-restrict-constants-in-patterns/phantom-data-is-structurally-matchable.rs rename to tests/ui/rfc-1445-restrict-constants-in-patterns/phantom-data-is-structurally-matchable.rs diff --git a/src/test/ui/rfc-1717-dllimport/missing-link-attr.rs b/tests/ui/rfc-1717-dllimport/missing-link-attr.rs similarity index 100% rename from src/test/ui/rfc-1717-dllimport/missing-link-attr.rs rename to tests/ui/rfc-1717-dllimport/missing-link-attr.rs diff --git a/src/test/ui/rfc-1717-dllimport/missing-link-attr.stderr b/tests/ui/rfc-1717-dllimport/missing-link-attr.stderr similarity index 100% rename from src/test/ui/rfc-1717-dllimport/missing-link-attr.stderr rename to tests/ui/rfc-1717-dllimport/missing-link-attr.stderr diff --git a/src/test/ui/rfc-1717-dllimport/multiple-renames.rs b/tests/ui/rfc-1717-dllimport/multiple-renames.rs similarity index 100% rename from src/test/ui/rfc-1717-dllimport/multiple-renames.rs rename to tests/ui/rfc-1717-dllimport/multiple-renames.rs diff --git a/src/test/ui/rfc-1717-dllimport/multiple-renames.stderr b/tests/ui/rfc-1717-dllimport/multiple-renames.stderr similarity index 100% rename from src/test/ui/rfc-1717-dllimport/multiple-renames.stderr rename to tests/ui/rfc-1717-dllimport/multiple-renames.stderr diff --git a/src/test/ui/rfc-1717-dllimport/rename-modifiers.rs b/tests/ui/rfc-1717-dllimport/rename-modifiers.rs similarity index 100% rename from src/test/ui/rfc-1717-dllimport/rename-modifiers.rs rename to tests/ui/rfc-1717-dllimport/rename-modifiers.rs diff --git a/src/test/ui/rfc-1717-dllimport/rename-modifiers.stderr b/tests/ui/rfc-1717-dllimport/rename-modifiers.stderr similarity index 100% rename from src/test/ui/rfc-1717-dllimport/rename-modifiers.stderr rename to tests/ui/rfc-1717-dllimport/rename-modifiers.stderr diff --git a/src/test/ui/rfc-1717-dllimport/rename-to-empty.rs b/tests/ui/rfc-1717-dllimport/rename-to-empty.rs similarity index 100% rename from src/test/ui/rfc-1717-dllimport/rename-to-empty.rs rename to tests/ui/rfc-1717-dllimport/rename-to-empty.rs diff --git a/src/test/ui/rfc-1717-dllimport/rename-to-empty.stderr b/tests/ui/rfc-1717-dllimport/rename-to-empty.stderr similarity index 100% rename from src/test/ui/rfc-1717-dllimport/rename-to-empty.stderr rename to tests/ui/rfc-1717-dllimport/rename-to-empty.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/issue-103052-1.rs b/tests/ui/rfc-1937-termination-trait/issue-103052-1.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/issue-103052-1.rs rename to tests/ui/rfc-1937-termination-trait/issue-103052-1.rs diff --git a/src/test/ui/rfc-1937-termination-trait/issue-103052-1.stderr b/tests/ui/rfc-1937-termination-trait/issue-103052-1.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/issue-103052-1.stderr rename to tests/ui/rfc-1937-termination-trait/issue-103052-1.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/issue-103052-2.rs b/tests/ui/rfc-1937-termination-trait/issue-103052-2.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/issue-103052-2.rs rename to tests/ui/rfc-1937-termination-trait/issue-103052-2.rs diff --git a/src/test/ui/rfc-1937-termination-trait/issue-103052-2.stderr b/tests/ui/rfc-1937-termination-trait/issue-103052-2.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/issue-103052-2.stderr rename to tests/ui/rfc-1937-termination-trait/issue-103052-2.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-for-never.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-for-never.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-for-never.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-for-never.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-for-str.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-for-str.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-for-str.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-for-str.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-impl-trait.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-impl-trait.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-impl-trait.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-impl-trait.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-impl-trait.stderr b/tests/ui/rfc-1937-termination-trait/termination-trait-impl-trait.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-impl-trait.stderr rename to tests/ui/rfc-1937-termination-trait/termination-trait-impl-trait.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr b/tests/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr rename to tests/ui/rfc-1937-termination-trait/termination-trait-in-test-should-panic.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-in-test.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-in-test.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-in-test.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-in-test.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.stderr b/tests/ui/rfc-1937-termination-trait/termination-trait-main-i32.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.stderr rename to tests/ui/rfc-1937-termination-trait/termination-trait-main-i32.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.stderr b/tests/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.stderr rename to tests/ui/rfc-1937-termination-trait/termination-trait-main-wrong-type.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.stderr b/tests/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.stderr rename to tests/ui/rfc-1937-termination-trait/termination-trait-not-satisfied.stderr diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.rs b/tests/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.rs similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.rs rename to tests/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.rs diff --git a/src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr b/tests/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr similarity index 100% rename from src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr rename to tests/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.rs b/tests/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.rs rename to tests/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.stderr b/tests/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.stderr rename to tests/ui/rfc-2005-default-binding-mode/borrowck-issue-49631.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/const.rs b/tests/ui/rfc-2005-default-binding-mode/const.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/const.rs rename to tests/ui/rfc-2005-default-binding-mode/const.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/const.stderr b/tests/ui/rfc-2005-default-binding-mode/const.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/const.stderr rename to tests/ui/rfc-2005-default-binding-mode/const.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/enum.rs b/tests/ui/rfc-2005-default-binding-mode/enum.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/enum.rs rename to tests/ui/rfc-2005-default-binding-mode/enum.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/enum.stderr b/tests/ui/rfc-2005-default-binding-mode/enum.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/enum.stderr rename to tests/ui/rfc-2005-default-binding-mode/enum.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs b/tests/ui/rfc-2005-default-binding-mode/explicit-mut.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs rename to tests/ui/rfc-2005-default-binding-mode/explicit-mut.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.stderr b/tests/ui/rfc-2005-default-binding-mode/explicit-mut.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/explicit-mut.stderr rename to tests/ui/rfc-2005-default-binding-mode/explicit-mut.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/for.rs b/tests/ui/rfc-2005-default-binding-mode/for.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/for.rs rename to tests/ui/rfc-2005-default-binding-mode/for.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/for.stderr b/tests/ui/rfc-2005-default-binding-mode/for.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/for.stderr rename to tests/ui/rfc-2005-default-binding-mode/for.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/issue-44912-or.rs b/tests/ui/rfc-2005-default-binding-mode/issue-44912-or.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/issue-44912-or.rs rename to tests/ui/rfc-2005-default-binding-mode/issue-44912-or.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/issue-44912-or.stderr b/tests/ui/rfc-2005-default-binding-mode/issue-44912-or.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/issue-44912-or.stderr rename to tests/ui/rfc-2005-default-binding-mode/issue-44912-or.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/lit.rs b/tests/ui/rfc-2005-default-binding-mode/lit.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/lit.rs rename to tests/ui/rfc-2005-default-binding-mode/lit.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/lit.stderr b/tests/ui/rfc-2005-default-binding-mode/lit.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/lit.stderr rename to tests/ui/rfc-2005-default-binding-mode/lit.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/no-double-error.rs b/tests/ui/rfc-2005-default-binding-mode/no-double-error.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/no-double-error.rs rename to tests/ui/rfc-2005-default-binding-mode/no-double-error.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/no-double-error.stderr b/tests/ui/rfc-2005-default-binding-mode/no-double-error.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/no-double-error.stderr rename to tests/ui/rfc-2005-default-binding-mode/no-double-error.stderr diff --git a/src/test/ui/rfc-2005-default-binding-mode/slice.rs b/tests/ui/rfc-2005-default-binding-mode/slice.rs similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/slice.rs rename to tests/ui/rfc-2005-default-binding-mode/slice.rs diff --git a/src/test/ui/rfc-2005-default-binding-mode/slice.stderr b/tests/ui/rfc-2005-default-binding-mode/slice.stderr similarity index 100% rename from src/test/ui/rfc-2005-default-binding-mode/slice.stderr rename to tests/ui/rfc-2005-default-binding-mode/slice.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/auxiliary/enums.rs b/tests/ui/rfc-2008-non-exhaustive/auxiliary/enums.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/auxiliary/enums.rs rename to tests/ui/rfc-2008-non-exhaustive/auxiliary/enums.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/auxiliary/monovariants.rs b/tests/ui/rfc-2008-non-exhaustive/auxiliary/monovariants.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/auxiliary/monovariants.rs rename to tests/ui/rfc-2008-non-exhaustive/auxiliary/monovariants.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/auxiliary/structs.rs b/tests/ui/rfc-2008-non-exhaustive/auxiliary/structs.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/auxiliary/structs.rs rename to tests/ui/rfc-2008-non-exhaustive/auxiliary/structs.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/auxiliary/unstable.rs b/tests/ui/rfc-2008-non-exhaustive/auxiliary/unstable.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/auxiliary/unstable.rs rename to tests/ui/rfc-2008-non-exhaustive/auxiliary/unstable.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/auxiliary/variants.rs b/tests/ui/rfc-2008-non-exhaustive/auxiliary/variants.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/auxiliary/variants.rs rename to tests/ui/rfc-2008-non-exhaustive/auxiliary/variants.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/borrowck-exhaustive.rs b/tests/ui/rfc-2008-non-exhaustive/borrowck-exhaustive.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/borrowck-exhaustive.rs rename to tests/ui/rfc-2008-non-exhaustive/borrowck-exhaustive.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.rs b/tests/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.rs rename to tests/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.stderr b/tests/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.stderr rename to tests/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum-as-cast.rs b/tests/ui/rfc-2008-non-exhaustive/enum-as-cast.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum-as-cast.rs rename to tests/ui/rfc-2008-non-exhaustive/enum-as-cast.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum-as-cast.stderr b/tests/ui/rfc-2008-non-exhaustive/enum-as-cast.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum-as-cast.stderr rename to tests/ui/rfc-2008-non-exhaustive/enum-as-cast.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum.rs b/tests/ui/rfc-2008-non-exhaustive/enum.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum.rs rename to tests/ui/rfc-2008-non-exhaustive/enum.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum.stderr b/tests/ui/rfc-2008-non-exhaustive/enum.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum.stderr rename to tests/ui/rfc-2008-non-exhaustive/enum.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/enum_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/enum_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.rs b/tests/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.rs rename to tests/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.stderr b/tests/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.stderr rename to tests/ui/rfc-2008-non-exhaustive/enum_same_crate_empty_match.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/auxiliary/types.rs b/tests/ui/rfc-2008-non-exhaustive/improper_ctypes/auxiliary/types.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/auxiliary/types.rs rename to tests/ui/rfc-2008-non-exhaustive/improper_ctypes/auxiliary/types.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.rs b/tests/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.rs rename to tests/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.stderr b/tests/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.stderr rename to tests/ui/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/same_crate_proper.rs b/tests/ui/rfc-2008-non-exhaustive/improper_ctypes/same_crate_proper.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/improper_ctypes/same_crate_proper.rs rename to tests/ui/rfc-2008-non-exhaustive/improper_ctypes/same_crate_proper.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs b/tests/ui/rfc-2008-non-exhaustive/invalid-attribute.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs rename to tests/ui/rfc-2008-non-exhaustive/invalid-attribute.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.stderr b/tests/ui/rfc-2008-non-exhaustive/invalid-attribute.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.stderr rename to tests/ui/rfc-2008-non-exhaustive/invalid-attribute.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/omitted-patterns.rs b/tests/ui/rfc-2008-non-exhaustive/omitted-patterns.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/omitted-patterns.rs rename to tests/ui/rfc-2008-non-exhaustive/omitted-patterns.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/omitted-patterns.stderr b/tests/ui/rfc-2008-non-exhaustive/omitted-patterns.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/omitted-patterns.stderr rename to tests/ui/rfc-2008-non-exhaustive/omitted-patterns.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.rs b/tests/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.rs rename to tests/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.stderr b/tests/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.stderr rename to tests/ui/rfc-2008-non-exhaustive/stable-omitted-patterns.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/struct.rs b/tests/ui/rfc-2008-non-exhaustive/struct.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/struct.rs rename to tests/ui/rfc-2008-non-exhaustive/struct.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/struct.stderr b/tests/ui/rfc-2008-non-exhaustive/struct.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/struct.stderr rename to tests/ui/rfc-2008-non-exhaustive/struct.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/structs_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/structs_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/structs_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/structs_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/auxiliary/uninhabited.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/auxiliary/uninhabited.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/auxiliary/uninhabited.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/auxiliary/uninhabited.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/coercions_same_crate.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_same_crate.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/indirect_match_with_exhaustive_patterns_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/issue-65157-repeated-match-arm.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match_same_crate.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/match_with_exhaustive_patterns_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/patterns.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/patterns.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/patterns.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/patterns.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.stderr b/tests/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.stderr rename to tests/ui/rfc-2008-non-exhaustive/uninhabited/patterns_same_crate.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/variant.rs b/tests/ui/rfc-2008-non-exhaustive/variant.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/variant.rs rename to tests/ui/rfc-2008-non-exhaustive/variant.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/variant.stderr b/tests/ui/rfc-2008-non-exhaustive/variant.stderr similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/variant.stderr rename to tests/ui/rfc-2008-non-exhaustive/variant.stderr diff --git a/src/test/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs b/tests/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs rename to tests/ui/rfc-2008-non-exhaustive/variants_fictive_visibility.rs diff --git a/src/test/ui/rfc-2008-non-exhaustive/variants_same_crate.rs b/tests/ui/rfc-2008-non-exhaustive/variants_same_crate.rs similarity index 100% rename from src/test/ui/rfc-2008-non-exhaustive/variants_same_crate.rs rename to tests/ui/rfc-2008-non-exhaustive/variants_same_crate.rs diff --git a/src/test/ui/rfc-2027-object-safe-for-dispatch/downcast-unsafe-trait-objects.rs b/tests/ui/rfc-2027-object-safe-for-dispatch/downcast-unsafe-trait-objects.rs similarity index 100% rename from src/test/ui/rfc-2027-object-safe-for-dispatch/downcast-unsafe-trait-objects.rs rename to tests/ui/rfc-2027-object-safe-for-dispatch/downcast-unsafe-trait-objects.rs diff --git a/src/test/ui/rfc-2027-object-safe-for-dispatch/manual-self-impl-for-unsafe-obj.rs b/tests/ui/rfc-2027-object-safe-for-dispatch/manual-self-impl-for-unsafe-obj.rs similarity index 100% rename from src/test/ui/rfc-2027-object-safe-for-dispatch/manual-self-impl-for-unsafe-obj.rs rename to tests/ui/rfc-2027-object-safe-for-dispatch/manual-self-impl-for-unsafe-obj.rs diff --git a/src/test/ui/rfc-2027-object-safe-for-dispatch/static-dispatch-unsafe-object.rs b/tests/ui/rfc-2027-object-safe-for-dispatch/static-dispatch-unsafe-object.rs similarity index 100% rename from src/test/ui/rfc-2027-object-safe-for-dispatch/static-dispatch-unsafe-object.rs rename to tests/ui/rfc-2027-object-safe-for-dispatch/static-dispatch-unsafe-object.rs diff --git a/src/test/ui/rfc-2091-track-caller/call-chain.rs b/tests/ui/rfc-2091-track-caller/call-chain.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/call-chain.rs rename to tests/ui/rfc-2091-track-caller/call-chain.rs diff --git a/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs b/tests/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs rename to tests/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.rs diff --git a/src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr b/tests/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr rename to tests/ui/rfc-2091-track-caller/caller-location-fnptr-rt-ctfe-equiv.stderr diff --git a/src/test/ui/rfc-2091-track-caller/caller-location-intrinsic.rs b/tests/ui/rfc-2091-track-caller/caller-location-intrinsic.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/caller-location-intrinsic.rs rename to tests/ui/rfc-2091-track-caller/caller-location-intrinsic.rs diff --git a/src/test/ui/rfc-2091-track-caller/const-caller-location.rs b/tests/ui/rfc-2091-track-caller/const-caller-location.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/const-caller-location.rs rename to tests/ui/rfc-2091-track-caller/const-caller-location.rs diff --git a/src/test/ui/rfc-2091-track-caller/diverging-caller-location.rs b/tests/ui/rfc-2091-track-caller/diverging-caller-location.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/diverging-caller-location.rs rename to tests/ui/rfc-2091-track-caller/diverging-caller-location.rs diff --git a/src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs b/tests/ui/rfc-2091-track-caller/error-odd-syntax.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-odd-syntax.rs rename to tests/ui/rfc-2091-track-caller/error-odd-syntax.rs diff --git a/src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr b/tests/ui/rfc-2091-track-caller/error-odd-syntax.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-odd-syntax.stderr rename to tests/ui/rfc-2091-track-caller/error-odd-syntax.stderr diff --git a/src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.rs b/tests/ui/rfc-2091-track-caller/error-with-invalid-abi.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.rs rename to tests/ui/rfc-2091-track-caller/error-with-invalid-abi.rs diff --git a/src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr b/tests/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr rename to tests/ui/rfc-2091-track-caller/error-with-invalid-abi.stderr diff --git a/src/test/ui/rfc-2091-track-caller/error-with-main.rs b/tests/ui/rfc-2091-track-caller/error-with-main.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-main.rs rename to tests/ui/rfc-2091-track-caller/error-with-main.rs diff --git a/src/test/ui/rfc-2091-track-caller/error-with-main.stderr b/tests/ui/rfc-2091-track-caller/error-with-main.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-main.stderr rename to tests/ui/rfc-2091-track-caller/error-with-main.stderr diff --git a/src/test/ui/rfc-2091-track-caller/error-with-naked.rs b/tests/ui/rfc-2091-track-caller/error-with-naked.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-naked.rs rename to tests/ui/rfc-2091-track-caller/error-with-naked.rs diff --git a/src/test/ui/rfc-2091-track-caller/error-with-naked.stderr b/tests/ui/rfc-2091-track-caller/error-with-naked.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-naked.stderr rename to tests/ui/rfc-2091-track-caller/error-with-naked.stderr diff --git a/src/test/ui/rfc-2091-track-caller/error-with-start.rs b/tests/ui/rfc-2091-track-caller/error-with-start.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-start.rs rename to tests/ui/rfc-2091-track-caller/error-with-start.rs diff --git a/src/test/ui/rfc-2091-track-caller/error-with-start.stderr b/tests/ui/rfc-2091-track-caller/error-with-start.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/error-with-start.stderr rename to tests/ui/rfc-2091-track-caller/error-with-start.stderr diff --git a/src/test/ui/rfc-2091-track-caller/intrinsic-wrapper.rs b/tests/ui/rfc-2091-track-caller/intrinsic-wrapper.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/intrinsic-wrapper.rs rename to tests/ui/rfc-2091-track-caller/intrinsic-wrapper.rs diff --git a/src/test/ui/rfc-2091-track-caller/macro-declaration.rs b/tests/ui/rfc-2091-track-caller/macro-declaration.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/macro-declaration.rs rename to tests/ui/rfc-2091-track-caller/macro-declaration.rs diff --git a/src/test/ui/rfc-2091-track-caller/only-for-fns.rs b/tests/ui/rfc-2091-track-caller/only-for-fns.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/only-for-fns.rs rename to tests/ui/rfc-2091-track-caller/only-for-fns.rs diff --git a/src/test/ui/rfc-2091-track-caller/only-for-fns.stderr b/tests/ui/rfc-2091-track-caller/only-for-fns.stderr similarity index 100% rename from src/test/ui/rfc-2091-track-caller/only-for-fns.stderr rename to tests/ui/rfc-2091-track-caller/only-for-fns.stderr diff --git a/src/test/ui/rfc-2091-track-caller/pass.rs b/tests/ui/rfc-2091-track-caller/pass.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/pass.rs rename to tests/ui/rfc-2091-track-caller/pass.rs diff --git a/src/test/ui/rfc-2091-track-caller/std-panic-locations.rs b/tests/ui/rfc-2091-track-caller/std-panic-locations.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/std-panic-locations.rs rename to tests/ui/rfc-2091-track-caller/std-panic-locations.rs diff --git a/src/test/ui/rfc-2091-track-caller/track-caller-attribute.rs b/tests/ui/rfc-2091-track-caller/track-caller-attribute.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/track-caller-attribute.rs rename to tests/ui/rfc-2091-track-caller/track-caller-attribute.rs diff --git a/src/test/ui/rfc-2091-track-caller/track-caller-ffi.rs b/tests/ui/rfc-2091-track-caller/track-caller-ffi.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/track-caller-ffi.rs rename to tests/ui/rfc-2091-track-caller/track-caller-ffi.rs diff --git a/src/test/ui/rfc-2091-track-caller/tracked-closure.rs b/tests/ui/rfc-2091-track-caller/tracked-closure.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/tracked-closure.rs rename to tests/ui/rfc-2091-track-caller/tracked-closure.rs diff --git a/src/test/ui/rfc-2091-track-caller/tracked-fn-ptr-with-arg.rs b/tests/ui/rfc-2091-track-caller/tracked-fn-ptr-with-arg.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/tracked-fn-ptr-with-arg.rs rename to tests/ui/rfc-2091-track-caller/tracked-fn-ptr-with-arg.rs diff --git a/src/test/ui/rfc-2091-track-caller/tracked-fn-ptr.rs b/tests/ui/rfc-2091-track-caller/tracked-fn-ptr.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/tracked-fn-ptr.rs rename to tests/ui/rfc-2091-track-caller/tracked-fn-ptr.rs diff --git a/src/test/ui/rfc-2091-track-caller/tracked-trait-impls.rs b/tests/ui/rfc-2091-track-caller/tracked-trait-impls.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/tracked-trait-impls.rs rename to tests/ui/rfc-2091-track-caller/tracked-trait-impls.rs diff --git a/src/test/ui/rfc-2091-track-caller/tracked-trait-obj.rs b/tests/ui/rfc-2091-track-caller/tracked-trait-obj.rs similarity index 100% rename from src/test/ui/rfc-2091-track-caller/tracked-trait-obj.rs rename to tests/ui/rfc-2091-track-caller/tracked-trait-obj.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/cross-crate.rs b/tests/ui/rfc-2093-infer-outlives/cross-crate.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/cross-crate.rs rename to tests/ui/rfc-2093-infer-outlives/cross-crate.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/cross-crate.stderr b/tests/ui/rfc-2093-infer-outlives/cross-crate.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/cross-crate.stderr rename to tests/ui/rfc-2093-infer-outlives/cross-crate.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs b/tests/ui/rfc-2093-infer-outlives/dont-infer-static.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs rename to tests/ui/rfc-2093-infer-outlives/dont-infer-static.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr b/tests/ui/rfc-2093-infer-outlives/dont-infer-static.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr rename to tests/ui/rfc-2093-infer-outlives/dont-infer-static.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/enum.rs b/tests/ui/rfc-2093-infer-outlives/enum.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/enum.rs rename to tests/ui/rfc-2093-infer-outlives/enum.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/enum.stderr b/tests/ui/rfc-2093-infer-outlives/enum.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/enum.stderr rename to tests/ui/rfc-2093-infer-outlives/enum.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-dyn.rs b/tests/ui/rfc-2093-infer-outlives/explicit-dyn.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-dyn.rs rename to tests/ui/rfc-2093-infer-outlives/explicit-dyn.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-dyn.stderr b/tests/ui/rfc-2093-infer-outlives/explicit-dyn.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-dyn.stderr rename to tests/ui/rfc-2093-infer-outlives/explicit-dyn.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-enum.rs b/tests/ui/rfc-2093-infer-outlives/explicit-enum.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-enum.rs rename to tests/ui/rfc-2093-infer-outlives/explicit-enum.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-enum.stderr b/tests/ui/rfc-2093-infer-outlives/explicit-enum.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-enum.stderr rename to tests/ui/rfc-2093-infer-outlives/explicit-enum.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-projection.rs b/tests/ui/rfc-2093-infer-outlives/explicit-projection.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-projection.rs rename to tests/ui/rfc-2093-infer-outlives/explicit-projection.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-projection.stderr b/tests/ui/rfc-2093-infer-outlives/explicit-projection.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-projection.stderr rename to tests/ui/rfc-2093-infer-outlives/explicit-projection.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-struct.rs b/tests/ui/rfc-2093-infer-outlives/explicit-struct.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-struct.rs rename to tests/ui/rfc-2093-infer-outlives/explicit-struct.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-struct.stderr b/tests/ui/rfc-2093-infer-outlives/explicit-struct.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-struct.stderr rename to tests/ui/rfc-2093-infer-outlives/explicit-struct.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-union.rs b/tests/ui/rfc-2093-infer-outlives/explicit-union.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-union.rs rename to tests/ui/rfc-2093-infer-outlives/explicit-union.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-union.stderr b/tests/ui/rfc-2093-infer-outlives/explicit-union.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/explicit-union.stderr rename to tests/ui/rfc-2093-infer-outlives/explicit-union.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/issue-54467.rs b/tests/ui/rfc-2093-infer-outlives/issue-54467.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/issue-54467.rs rename to tests/ui/rfc-2093-infer-outlives/issue-54467.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-enum.rs b/tests/ui/rfc-2093-infer-outlives/nested-enum.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-enum.rs rename to tests/ui/rfc-2093-infer-outlives/nested-enum.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-enum.stderr b/tests/ui/rfc-2093-infer-outlives/nested-enum.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-enum.stderr rename to tests/ui/rfc-2093-infer-outlives/nested-enum.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-regions.rs b/tests/ui/rfc-2093-infer-outlives/nested-regions.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-regions.rs rename to tests/ui/rfc-2093-infer-outlives/nested-regions.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-regions.stderr b/tests/ui/rfc-2093-infer-outlives/nested-regions.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-regions.stderr rename to tests/ui/rfc-2093-infer-outlives/nested-regions.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-structs.rs b/tests/ui/rfc-2093-infer-outlives/nested-structs.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-structs.rs rename to tests/ui/rfc-2093-infer-outlives/nested-structs.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-structs.stderr b/tests/ui/rfc-2093-infer-outlives/nested-structs.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-structs.stderr rename to tests/ui/rfc-2093-infer-outlives/nested-structs.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-union.rs b/tests/ui/rfc-2093-infer-outlives/nested-union.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-union.rs rename to tests/ui/rfc-2093-infer-outlives/nested-union.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-union.stderr b/tests/ui/rfc-2093-infer-outlives/nested-union.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/nested-union.stderr rename to tests/ui/rfc-2093-infer-outlives/nested-union.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/privacy.rs b/tests/ui/rfc-2093-infer-outlives/privacy.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/privacy.rs rename to tests/ui/rfc-2093-infer-outlives/privacy.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/projection.rs b/tests/ui/rfc-2093-infer-outlives/projection.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/projection.rs rename to tests/ui/rfc-2093-infer-outlives/projection.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/projection.stderr b/tests/ui/rfc-2093-infer-outlives/projection.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/projection.stderr rename to tests/ui/rfc-2093-infer-outlives/projection.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/reference.rs b/tests/ui/rfc-2093-infer-outlives/reference.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/reference.rs rename to tests/ui/rfc-2093-infer-outlives/reference.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/reference.stderr b/tests/ui/rfc-2093-infer-outlives/reference.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/reference.stderr rename to tests/ui/rfc-2093-infer-outlives/reference.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-enum-not-wf.rs b/tests/ui/rfc-2093-infer-outlives/regions-enum-not-wf.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-enum-not-wf.rs rename to tests/ui/rfc-2093-infer-outlives/regions-enum-not-wf.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-enum-not-wf.stderr b/tests/ui/rfc-2093-infer-outlives/regions-enum-not-wf.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-enum-not-wf.stderr rename to tests/ui/rfc-2093-infer-outlives/regions-enum-not-wf.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.rs b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.rs rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.stderr b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.stderr rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region-rev.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.rs b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.rs rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.stderr b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.stderr rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-region.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.rs b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.rs rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.stderr b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.stderr rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type-rev.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.rs b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.rs rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.stderr b/tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.stderr rename to tests/ui/rfc-2093-infer-outlives/regions-outlives-nominal-type-type.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-struct-not-wf.rs b/tests/ui/rfc-2093-infer-outlives/regions-struct-not-wf.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-struct-not-wf.rs rename to tests/ui/rfc-2093-infer-outlives/regions-struct-not-wf.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/regions-struct-not-wf.stderr b/tests/ui/rfc-2093-infer-outlives/regions-struct-not-wf.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/regions-struct-not-wf.stderr rename to tests/ui/rfc-2093-infer-outlives/regions-struct-not-wf.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/self-dyn.rs b/tests/ui/rfc-2093-infer-outlives/self-dyn.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/self-dyn.rs rename to tests/ui/rfc-2093-infer-outlives/self-dyn.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/self-dyn.stderr b/tests/ui/rfc-2093-infer-outlives/self-dyn.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/self-dyn.stderr rename to tests/ui/rfc-2093-infer-outlives/self-dyn.stderr diff --git a/src/test/ui/rfc-2093-infer-outlives/self-structs.rs b/tests/ui/rfc-2093-infer-outlives/self-structs.rs similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/self-structs.rs rename to tests/ui/rfc-2093-infer-outlives/self-structs.rs diff --git a/src/test/ui/rfc-2093-infer-outlives/self-structs.stderr b/tests/ui/rfc-2093-infer-outlives/self-structs.stderr similarity index 100% rename from src/test/ui/rfc-2093-infer-outlives/self-structs.stderr rename to tests/ui/rfc-2093-infer-outlives/self-structs.stderr diff --git a/src/test/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs b/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs similarity index 100% rename from src/test/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs rename to tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.rs diff --git a/src/test/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr b/tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr similarity index 100% rename from src/test/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr rename to tests/ui/rfc-2126-crate-paths/crate-path-non-absolute.stderr diff --git a/src/test/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs b/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs similarity index 100% rename from src/test/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs rename to tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.rs diff --git a/src/test/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr b/tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr similarity index 100% rename from src/test/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr rename to tests/ui/rfc-2126-crate-paths/keyword-crate-as-identifier.stderr diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/auxiliary/xcrate.rs b/tests/ui/rfc-2126-extern-absolute-paths/auxiliary/xcrate.rs similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/auxiliary/xcrate.rs rename to tests/ui/rfc-2126-extern-absolute-paths/auxiliary/xcrate.rs diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/non-existent-1.rs b/tests/ui/rfc-2126-extern-absolute-paths/non-existent-1.rs similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/non-existent-1.rs rename to tests/ui/rfc-2126-extern-absolute-paths/non-existent-1.rs diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/non-existent-1.stderr b/tests/ui/rfc-2126-extern-absolute-paths/non-existent-1.stderr similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/non-existent-1.stderr rename to tests/ui/rfc-2126-extern-absolute-paths/non-existent-1.stderr diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/non-existent-2.rs b/tests/ui/rfc-2126-extern-absolute-paths/non-existent-2.rs similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/non-existent-2.rs rename to tests/ui/rfc-2126-extern-absolute-paths/non-existent-2.rs diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/non-existent-2.stderr b/tests/ui/rfc-2126-extern-absolute-paths/non-existent-2.stderr similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/non-existent-2.stderr rename to tests/ui/rfc-2126-extern-absolute-paths/non-existent-2.stderr diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/non-existent-3.rs b/tests/ui/rfc-2126-extern-absolute-paths/non-existent-3.rs similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/non-existent-3.rs rename to tests/ui/rfc-2126-extern-absolute-paths/non-existent-3.rs diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/non-existent-3.stderr b/tests/ui/rfc-2126-extern-absolute-paths/non-existent-3.stderr similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/non-existent-3.stderr rename to tests/ui/rfc-2126-extern-absolute-paths/non-existent-3.stderr diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/not-allowed.rs b/tests/ui/rfc-2126-extern-absolute-paths/not-allowed.rs similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/not-allowed.rs rename to tests/ui/rfc-2126-extern-absolute-paths/not-allowed.rs diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/not-allowed.stderr b/tests/ui/rfc-2126-extern-absolute-paths/not-allowed.stderr similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/not-allowed.stderr rename to tests/ui/rfc-2126-extern-absolute-paths/not-allowed.stderr diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/single-segment.rs b/tests/ui/rfc-2126-extern-absolute-paths/single-segment.rs similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/single-segment.rs rename to tests/ui/rfc-2126-extern-absolute-paths/single-segment.rs diff --git a/src/test/ui/rfc-2126-extern-absolute-paths/single-segment.stderr b/tests/ui/rfc-2126-extern-absolute-paths/single-segment.stderr similarity index 100% rename from src/test/ui/rfc-2126-extern-absolute-paths/single-segment.stderr rename to tests/ui/rfc-2126-extern-absolute-paths/single-segment.stderr diff --git a/src/test/ui/rfc-2294-if-let-guard/bindings.rs b/tests/ui/rfc-2294-if-let-guard/bindings.rs similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/bindings.rs rename to tests/ui/rfc-2294-if-let-guard/bindings.rs diff --git a/src/test/ui/rfc-2294-if-let-guard/bindings.stderr b/tests/ui/rfc-2294-if-let-guard/bindings.stderr similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/bindings.stderr rename to tests/ui/rfc-2294-if-let-guard/bindings.stderr diff --git a/src/test/ui/rfc-2294-if-let-guard/feature-gate.rs b/tests/ui/rfc-2294-if-let-guard/feature-gate.rs similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/feature-gate.rs rename to tests/ui/rfc-2294-if-let-guard/feature-gate.rs diff --git a/src/test/ui/rfc-2294-if-let-guard/feature-gate.stderr b/tests/ui/rfc-2294-if-let-guard/feature-gate.stderr similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/feature-gate.stderr rename to tests/ui/rfc-2294-if-let-guard/feature-gate.stderr diff --git a/src/test/ui/rfc-2294-if-let-guard/run-pass.rs b/tests/ui/rfc-2294-if-let-guard/run-pass.rs similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/run-pass.rs rename to tests/ui/rfc-2294-if-let-guard/run-pass.rs diff --git a/src/test/ui/rfc-2294-if-let-guard/typeck.rs b/tests/ui/rfc-2294-if-let-guard/typeck.rs similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/typeck.rs rename to tests/ui/rfc-2294-if-let-guard/typeck.rs diff --git a/src/test/ui/rfc-2294-if-let-guard/typeck.stderr b/tests/ui/rfc-2294-if-let-guard/typeck.stderr similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/typeck.stderr rename to tests/ui/rfc-2294-if-let-guard/typeck.stderr diff --git a/src/test/ui/rfc-2294-if-let-guard/warns.rs b/tests/ui/rfc-2294-if-let-guard/warns.rs similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/warns.rs rename to tests/ui/rfc-2294-if-let-guard/warns.rs diff --git a/src/test/ui/rfc-2294-if-let-guard/warns.stderr b/tests/ui/rfc-2294-if-let-guard/warns.stderr similarity index 100% rename from src/test/ui/rfc-2294-if-let-guard/warns.stderr rename to tests/ui/rfc-2294-if-let-guard/warns.stderr diff --git a/src/test/ui/rfc-2306/convert-id-const-with-gate.rs b/tests/ui/rfc-2306/convert-id-const-with-gate.rs similarity index 100% rename from src/test/ui/rfc-2306/convert-id-const-with-gate.rs rename to tests/ui/rfc-2306/convert-id-const-with-gate.rs diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs b/tests/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs similarity index 100% rename from src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs rename to tests/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.run.stderr b/tests/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.run.stderr similarity index 100% rename from src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.run.stderr rename to tests/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.run.stderr diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs b/tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs similarity index 100% rename from src/test/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs rename to tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.rs diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.stderr b/tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.stderr similarity index 100% rename from src/test/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.stderr rename to tests/ui/rfc-2361-dbg-macro/dbg-macro-move-semantics.stderr diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs b/tests/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs similarity index 100% rename from src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs rename to tests/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.rs diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr b/tests/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr similarity index 100% rename from src/test/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr rename to tests/ui/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr diff --git a/src/test/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.rs b/tests/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.rs similarity index 100% rename from src/test/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.rs rename to tests/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.rs diff --git a/src/test/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.stderr b/tests/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.stderr similarity index 100% rename from src/test/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.stderr rename to tests/ui/rfc-2397-do-not-recommend/feature-gate-do_not_recommend.stderr diff --git a/src/test/ui/rfc-2397-do-not-recommend/unstable-feature.rs b/tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs similarity index 100% rename from src/test/ui/rfc-2397-do-not-recommend/unstable-feature.rs rename to tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs diff --git a/src/test/ui/rfc-2397-do-not-recommend/unstable-feature.stderr b/tests/ui/rfc-2397-do-not-recommend/unstable-feature.stderr similarity index 100% rename from src/test/ui/rfc-2397-do-not-recommend/unstable-feature.stderr rename to tests/ui/rfc-2397-do-not-recommend/unstable-feature.stderr diff --git a/src/test/ui/rfc-2457/auxiliary/mod_file_nonascii_with_path_allowed-aux.rs b/tests/ui/rfc-2457/auxiliary/mod_file_nonascii_with_path_allowed-aux.rs similarity index 100% rename from src/test/ui/rfc-2457/auxiliary/mod_file_nonascii_with_path_allowed-aux.rs rename to tests/ui/rfc-2457/auxiliary/mod_file_nonascii_with_path_allowed-aux.rs diff --git a/src/test/ui/rfc-2457/crate_name_nonascii_forbidden-1.rs b/tests/ui/rfc-2457/crate_name_nonascii_forbidden-1.rs similarity index 100% rename from src/test/ui/rfc-2457/crate_name_nonascii_forbidden-1.rs rename to tests/ui/rfc-2457/crate_name_nonascii_forbidden-1.rs diff --git a/src/test/ui/rfc-2457/crate_name_nonascii_forbidden-1.stderr b/tests/ui/rfc-2457/crate_name_nonascii_forbidden-1.stderr similarity index 100% rename from src/test/ui/rfc-2457/crate_name_nonascii_forbidden-1.stderr rename to tests/ui/rfc-2457/crate_name_nonascii_forbidden-1.stderr diff --git a/src/test/ui/rfc-2457/crate_name_nonascii_forbidden-2.rs b/tests/ui/rfc-2457/crate_name_nonascii_forbidden-2.rs similarity index 100% rename from src/test/ui/rfc-2457/crate_name_nonascii_forbidden-2.rs rename to tests/ui/rfc-2457/crate_name_nonascii_forbidden-2.rs diff --git a/src/test/ui/rfc-2457/crate_name_nonascii_forbidden-2.stderr b/tests/ui/rfc-2457/crate_name_nonascii_forbidden-2.stderr similarity index 100% rename from src/test/ui/rfc-2457/crate_name_nonascii_forbidden-2.stderr rename to tests/ui/rfc-2457/crate_name_nonascii_forbidden-2.stderr diff --git a/src/test/ui/rfc-2457/extern_block_nonascii_forbidden.rs b/tests/ui/rfc-2457/extern_block_nonascii_forbidden.rs similarity index 100% rename from src/test/ui/rfc-2457/extern_block_nonascii_forbidden.rs rename to tests/ui/rfc-2457/extern_block_nonascii_forbidden.rs diff --git a/src/test/ui/rfc-2457/extern_block_nonascii_forbidden.stderr b/tests/ui/rfc-2457/extern_block_nonascii_forbidden.stderr similarity index 100% rename from src/test/ui/rfc-2457/extern_block_nonascii_forbidden.stderr rename to tests/ui/rfc-2457/extern_block_nonascii_forbidden.stderr diff --git a/src/test/ui/rfc-2457/idents-normalized.rs b/tests/ui/rfc-2457/idents-normalized.rs similarity index 100% rename from src/test/ui/rfc-2457/idents-normalized.rs rename to tests/ui/rfc-2457/idents-normalized.rs diff --git a/src/test/ui/rfc-2457/mod_file_nonascii_forbidden.rs b/tests/ui/rfc-2457/mod_file_nonascii_forbidden.rs similarity index 100% rename from src/test/ui/rfc-2457/mod_file_nonascii_forbidden.rs rename to tests/ui/rfc-2457/mod_file_nonascii_forbidden.rs diff --git a/src/test/ui/rfc-2457/mod_file_nonascii_forbidden.stderr b/tests/ui/rfc-2457/mod_file_nonascii_forbidden.stderr similarity index 100% rename from src/test/ui/rfc-2457/mod_file_nonascii_forbidden.stderr rename to tests/ui/rfc-2457/mod_file_nonascii_forbidden.stderr diff --git a/src/test/ui/rfc-2457/mod_file_nonascii_with_path_allowed.rs b/tests/ui/rfc-2457/mod_file_nonascii_with_path_allowed.rs similarity index 100% rename from src/test/ui/rfc-2457/mod_file_nonascii_with_path_allowed.rs rename to tests/ui/rfc-2457/mod_file_nonascii_with_path_allowed.rs diff --git a/src/test/ui/rfc-2457/mod_inline_nonascii_allowed.rs b/tests/ui/rfc-2457/mod_inline_nonascii_allowed.rs similarity index 100% rename from src/test/ui/rfc-2457/mod_inline_nonascii_allowed.rs rename to tests/ui/rfc-2457/mod_inline_nonascii_allowed.rs diff --git a/src/test/ui/rfc-2457/no_mangle_nonascii_forbidden.rs b/tests/ui/rfc-2457/no_mangle_nonascii_forbidden.rs similarity index 100% rename from src/test/ui/rfc-2457/no_mangle_nonascii_forbidden.rs rename to tests/ui/rfc-2457/no_mangle_nonascii_forbidden.rs diff --git a/src/test/ui/rfc-2457/no_mangle_nonascii_forbidden.stderr b/tests/ui/rfc-2457/no_mangle_nonascii_forbidden.stderr similarity index 100% rename from src/test/ui/rfc-2457/no_mangle_nonascii_forbidden.stderr rename to tests/ui/rfc-2457/no_mangle_nonascii_forbidden.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/ast-lowering-does-not-wrap-let-chains.rs b/tests/ui/rfc-2497-if-let-chains/ast-lowering-does-not-wrap-let-chains.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/ast-lowering-does-not-wrap-let-chains.rs rename to tests/ui/rfc-2497-if-let-chains/ast-lowering-does-not-wrap-let-chains.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/ast-pretty-check.rs b/tests/ui/rfc-2497-if-let-chains/ast-pretty-check.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/ast-pretty-check.rs rename to tests/ui/rfc-2497-if-let-chains/ast-pretty-check.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/ast-pretty-check.stdout b/tests/ui/rfc-2497-if-let-chains/ast-pretty-check.stdout similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/ast-pretty-check.stdout rename to tests/ui/rfc-2497-if-let-chains/ast-pretty-check.stdout diff --git a/src/test/ui/rfc-2497-if-let-chains/chains-without-let.rs b/tests/ui/rfc-2497-if-let-chains/chains-without-let.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/chains-without-let.rs rename to tests/ui/rfc-2497-if-let-chains/chains-without-let.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/chains-without-let.stderr b/tests/ui/rfc-2497-if-let-chains/chains-without-let.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/chains-without-let.stderr rename to tests/ui/rfc-2497-if-let-chains/chains-without-let.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs b/tests/ui/rfc-2497-if-let-chains/disallowed-positions.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs rename to tests/ui/rfc-2497-if-let-chains/disallowed-positions.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.stderr b/tests/ui/rfc-2497-if-let-chains/disallowed-positions.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/disallowed-positions.stderr rename to tests/ui/rfc-2497-if-let-chains/disallowed-positions.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.rs b/tests/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.rs rename to tests/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.stderr b/tests/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.stderr rename to tests/ui/rfc-2497-if-let-chains/ensure-that-let-else-does-not-interact-with-let-chains.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/feature-gate.rs b/tests/ui/rfc-2497-if-let-chains/feature-gate.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/feature-gate.rs rename to tests/ui/rfc-2497-if-let-chains/feature-gate.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/feature-gate.stderr b/tests/ui/rfc-2497-if-let-chains/feature-gate.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/feature-gate.stderr rename to tests/ui/rfc-2497-if-let-chains/feature-gate.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.rs b/tests/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.rs rename to tests/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.stderr b/tests/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.stderr rename to tests/ui/rfc-2497-if-let-chains/invalid-let-in-a-valid-let-context.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/irrefutable-lets.disallowed.stderr b/tests/ui/rfc-2497-if-let-chains/irrefutable-lets.disallowed.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/irrefutable-lets.disallowed.stderr rename to tests/ui/rfc-2497-if-let-chains/irrefutable-lets.disallowed.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/irrefutable-lets.rs b/tests/ui/rfc-2497-if-let-chains/irrefutable-lets.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/irrefutable-lets.rs rename to tests/ui/rfc-2497-if-let-chains/irrefutable-lets.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/issue-88498.rs b/tests/ui/rfc-2497-if-let-chains/issue-88498.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/issue-88498.rs rename to tests/ui/rfc-2497-if-let-chains/issue-88498.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/issue-90722.rs b/tests/ui/rfc-2497-if-let-chains/issue-90722.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/issue-90722.rs rename to tests/ui/rfc-2497-if-let-chains/issue-90722.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/issue-92145.rs b/tests/ui/rfc-2497-if-let-chains/issue-92145.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/issue-92145.rs rename to tests/ui/rfc-2497-if-let-chains/issue-92145.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/issue-93150.rs b/tests/ui/rfc-2497-if-let-chains/issue-93150.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/issue-93150.rs rename to tests/ui/rfc-2497-if-let-chains/issue-93150.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/issue-93150.stderr b/tests/ui/rfc-2497-if-let-chains/issue-93150.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/issue-93150.stderr rename to tests/ui/rfc-2497-if-let-chains/issue-93150.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/issue-99938.rs b/tests/ui/rfc-2497-if-let-chains/issue-99938.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/issue-99938.rs rename to tests/ui/rfc-2497-if-let-chains/issue-99938.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/no-double-assigments.rs b/tests/ui/rfc-2497-if-let-chains/no-double-assigments.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/no-double-assigments.rs rename to tests/ui/rfc-2497-if-let-chains/no-double-assigments.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/protect-precedences.rs b/tests/ui/rfc-2497-if-let-chains/protect-precedences.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/protect-precedences.rs rename to tests/ui/rfc-2497-if-let-chains/protect-precedences.rs diff --git a/src/test/ui/rfc-2497-if-let-chains/protect-precedences.stderr b/tests/ui/rfc-2497-if-let-chains/protect-precedences.stderr similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/protect-precedences.stderr rename to tests/ui/rfc-2497-if-let-chains/protect-precedences.stderr diff --git a/src/test/ui/rfc-2497-if-let-chains/then-else-blocks.rs b/tests/ui/rfc-2497-if-let-chains/then-else-blocks.rs similarity index 100% rename from src/test/ui/rfc-2497-if-let-chains/then-else-blocks.rs rename to tests/ui/rfc-2497-if-let-chains/then-else-blocks.rs diff --git a/src/test/ui/rfc-2565-param-attrs/attr-without-param.rs b/tests/ui/rfc-2565-param-attrs/attr-without-param.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/attr-without-param.rs rename to tests/ui/rfc-2565-param-attrs/attr-without-param.rs diff --git a/src/test/ui/rfc-2565-param-attrs/attr-without-param.stderr b/tests/ui/rfc-2565-param-attrs/attr-without-param.stderr similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/attr-without-param.stderr rename to tests/ui/rfc-2565-param-attrs/attr-without-param.stderr diff --git a/src/test/ui/rfc-2565-param-attrs/auxiliary/ident-mac.rs b/tests/ui/rfc-2565-param-attrs/auxiliary/ident-mac.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/auxiliary/ident-mac.rs rename to tests/ui/rfc-2565-param-attrs/auxiliary/ident-mac.rs diff --git a/src/test/ui/rfc-2565-param-attrs/auxiliary/param-attrs.rs b/tests/ui/rfc-2565-param-attrs/auxiliary/param-attrs.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/auxiliary/param-attrs.rs rename to tests/ui/rfc-2565-param-attrs/auxiliary/param-attrs.rs diff --git a/src/test/ui/rfc-2565-param-attrs/issue-64682-dropping-first-attrs-in-impl-fns.rs b/tests/ui/rfc-2565-param-attrs/issue-64682-dropping-first-attrs-in-impl-fns.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/issue-64682-dropping-first-attrs-in-impl-fns.rs rename to tests/ui/rfc-2565-param-attrs/issue-64682-dropping-first-attrs-in-impl-fns.rs diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-2018.rs b/tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-2018.rs rename to tests/ui/rfc-2565-param-attrs/param-attrs-2018.rs diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-2018.stderr b/tests/ui/rfc-2565-param-attrs/param-attrs-2018.stderr similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-2018.stderr rename to tests/ui/rfc-2565-param-attrs/param-attrs-2018.stderr diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs b/tests/ui/rfc-2565-param-attrs/param-attrs-allowed.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-allowed.rs rename to tests/ui/rfc-2565-param-attrs/param-attrs-allowed.rs diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.rs b/tests/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.rs rename to tests/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.rs diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.stderr b/tests/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.stderr similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.stderr rename to tests/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.stderr diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-cfg.rs b/tests/ui/rfc-2565-param-attrs/param-attrs-cfg.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-cfg.rs rename to tests/ui/rfc-2565-param-attrs/param-attrs-cfg.rs diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-cfg.stderr b/tests/ui/rfc-2565-param-attrs/param-attrs-cfg.stderr similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-cfg.stderr rename to tests/ui/rfc-2565-param-attrs/param-attrs-cfg.stderr diff --git a/src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs b/tests/ui/rfc-2565-param-attrs/param-attrs-pretty.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/param-attrs-pretty.rs rename to tests/ui/rfc-2565-param-attrs/param-attrs-pretty.rs diff --git a/src/test/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.rs b/tests/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.rs similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.rs rename to tests/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.rs diff --git a/src/test/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.stderr b/tests/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.stderr similarity index 100% rename from src/test/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.stderr rename to tests/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.rs b/tests/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.rs rename to tests/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.stderr b/tests/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.stderr rename to tests/ui/rfc-2627-raw-dylib/import-name-type-invalid-format.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-multiple.rs b/tests/ui/rfc-2627-raw-dylib/import-name-type-multiple.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-multiple.rs rename to tests/ui/rfc-2627-raw-dylib/import-name-type-multiple.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-multiple.stderr b/tests/ui/rfc-2627-raw-dylib/import-name-type-multiple.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-multiple.stderr rename to tests/ui/rfc-2627-raw-dylib/import-name-type-multiple.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.rs b/tests/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.rs rename to tests/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.stderr b/tests/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.stderr rename to tests/ui/rfc-2627-raw-dylib/import-name-type-unknown-value.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.rs b/tests/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.rs rename to tests/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.stderr b/tests/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.stderr rename to tests/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-x86-only.rs b/tests/ui/rfc-2627-raw-dylib/import-name-type-x86-only.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-x86-only.rs rename to tests/ui/rfc-2627-raw-dylib/import-name-type-x86-only.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/import-name-type-x86-only.stderr b/tests/ui/rfc-2627-raw-dylib/import-name-type-x86-only.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/import-name-type-x86-only.stderr rename to tests/ui/rfc-2627-raw-dylib/import-name-type-x86-only.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-and-name.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-and-name.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-and-name.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-and-name.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-and-name.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-and-name.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-and-name.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-and-name.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-missing-argument.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-multiple.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-multiple.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-large.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-too-large.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-large.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-too-large.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.rs rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.stderr b/tests/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.stderr rename to tests/ui/rfc-2627-raw-dylib/link-ordinal-unsupported-link-kind.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/multiple-declarations.rs b/tests/ui/rfc-2627-raw-dylib/multiple-declarations.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/multiple-declarations.rs rename to tests/ui/rfc-2627-raw-dylib/multiple-declarations.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/multiple-declarations.stderr b/tests/ui/rfc-2627-raw-dylib/multiple-declarations.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/multiple-declarations.stderr rename to tests/ui/rfc-2627-raw-dylib/multiple-declarations.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.rs b/tests/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.rs rename to tests/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.stderr b/tests/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.stderr rename to tests/ui/rfc-2627-raw-dylib/raw-dylib-windows-only.stderr diff --git a/src/test/ui/rfc-2627-raw-dylib/unsupported-abi.rs b/tests/ui/rfc-2627-raw-dylib/unsupported-abi.rs similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/unsupported-abi.rs rename to tests/ui/rfc-2627-raw-dylib/unsupported-abi.rs diff --git a/src/test/ui/rfc-2627-raw-dylib/unsupported-abi.stderr b/tests/ui/rfc-2627-raw-dylib/unsupported-abi.stderr similarity index 100% rename from src/test/ui/rfc-2627-raw-dylib/unsupported-abi.stderr rename to tests/ui/rfc-2627-raw-dylib/unsupported-abi.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.rs b/tests/ui/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.rs rename to tests/ui/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/assoc-type.rs b/tests/ui/rfc-2632-const-trait-impl/assoc-type.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/assoc-type.rs rename to tests/ui/rfc-2632-const-trait-impl/assoc-type.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/assoc-type.stderr b/tests/ui/rfc-2632-const-trait-impl/assoc-type.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/assoc-type.stderr rename to tests/ui/rfc-2632-const-trait-impl/assoc-type.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/attr-misuse.rs b/tests/ui/rfc-2632-const-trait-impl/attr-misuse.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/attr-misuse.rs rename to tests/ui/rfc-2632-const-trait-impl/attr-misuse.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/attr-misuse.stderr b/tests/ui/rfc-2632-const-trait-impl/attr-misuse.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/attr-misuse.stderr rename to tests/ui/rfc-2632-const-trait-impl/attr-misuse.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs b/tests/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs rename to tests/ui/rfc-2632-const-trait-impl/auxiliary/cross-crate.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/auxiliary/staged-api.rs b/tests/ui/rfc-2632-const-trait-impl/auxiliary/staged-api.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/auxiliary/staged-api.rs rename to tests/ui/rfc-2632-const-trait-impl/auxiliary/staged-api.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.rs b/tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.rs rename to tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.stderr b/tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.stderr rename to tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-pass.rs b/tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-pass.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-const-trait-method-pass.rs rename to tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-pass.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-in-impl.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-in-impl.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-in-impl.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-chain.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-chain.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-chain.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-chain.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-dup-bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-fail.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst-bound.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst-bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst-bound.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst-bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.stderr b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.stderr rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/call-generic-method-pass.rs b/tests/ui/rfc-2632-const-trait-impl/call-generic-method-pass.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/call-generic-method-pass.rs rename to tests/ui/rfc-2632-const-trait-impl/call-generic-method-pass.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.rs b/tests/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.rs rename to tests/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.stderr b/tests/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-and-non-const-impl.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs b/tests/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs rename to tests/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.stderr b/tests/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.rs b/tests/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.rs rename to tests/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr b/tests/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-closure-trait-method.rs b/tests/ui/rfc-2632-const-trait-impl/const-closure-trait-method.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-closure-trait-method.rs rename to tests/ui/rfc-2632-const-trait-impl/const-closure-trait-method.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-closures.rs b/tests/ui/rfc-2632-const-trait-impl/const-closures.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-closures.rs rename to tests/ui/rfc-2632-const-trait-impl/const-closures.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-default-method-bodies.rs b/tests/ui/rfc-2632-const-trait-impl/const-default-method-bodies.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-default-method-bodies.rs rename to tests/ui/rfc-2632-const-trait-impl/const-default-method-bodies.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-default-method-bodies.stderr b/tests/ui/rfc-2632-const-trait-impl/const-default-method-bodies.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-default-method-bodies.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-default-method-bodies.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-drop-bound.rs b/tests/ui/rfc-2632-const-trait-impl/const-drop-bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-drop-bound.rs rename to tests/ui/rfc-2632-const-trait-impl/const-drop-bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.precise.stderr b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail.precise.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.precise.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-drop-fail.precise.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.rs b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.rs rename to tests/ui/rfc-2632-const-trait-impl/const-drop-fail.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.stock.stderr b/tests/ui/rfc-2632-const-trait-impl/const-drop-fail.stock.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.stock.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-drop-fail.stock.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-drop.rs b/tests/ui/rfc-2632-const-trait-impl/const-drop.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-drop.rs rename to tests/ui/rfc-2632-const-trait-impl/const-drop.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs b/tests/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs rename to tests/ui/rfc-2632-const-trait-impl/const-impl-norecover.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-norecover.stderr b/tests/ui/rfc-2632-const-trait-impl/const-impl-norecover.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-norecover.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-impl-norecover.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.rs b/tests/ui/rfc-2632-const-trait-impl/const-impl-recovery.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.rs rename to tests/ui/rfc-2632-const-trait-impl/const-impl-recovery.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr b/tests/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-impl-recovery.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs b/tests/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs rename to tests/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.stderr b/tests/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.stderr rename to tests/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-impl-trait.rs b/tests/ui/rfc-2632-const-trait-impl/const-impl-trait.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const-impl-trait.rs rename to tests/ui/rfc-2632-const-trait-impl/const-impl-trait.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.rs b/tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.rs rename to tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.stderr b/tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.stderr rename to tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-gate.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.rs b/tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.rs rename to tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.stderr b/tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.stderr rename to tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-use.rs b/tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-use.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/const_derives/derive-const-use.rs rename to tests/ui/rfc-2632-const-trait-impl/const_derives/derive-const-use.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/cross-crate-default-method-body-is-const.rs b/tests/ui/rfc-2632-const-trait-impl/cross-crate-default-method-body-is-const.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/cross-crate-default-method-body-is-const.rs rename to tests/ui/rfc-2632-const-trait-impl/cross-crate-default-method-body-is-const.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/cross-crate.gatednc.stderr b/tests/ui/rfc-2632-const-trait-impl/cross-crate.gatednc.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/cross-crate.gatednc.stderr rename to tests/ui/rfc-2632-const-trait-impl/cross-crate.gatednc.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/cross-crate.rs b/tests/ui/rfc-2632-const-trait-impl/cross-crate.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/cross-crate.rs rename to tests/ui/rfc-2632-const-trait-impl/cross-crate.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/cross-crate.stock.stderr b/tests/ui/rfc-2632-const-trait-impl/cross-crate.stock.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/cross-crate.stock.stderr rename to tests/ui/rfc-2632-const-trait-impl/cross-crate.stock.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/cross-crate.stocknc.stderr b/tests/ui/rfc-2632-const-trait-impl/cross-crate.stocknc.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/cross-crate.stocknc.stderr rename to tests/ui/rfc-2632-const-trait-impl/cross-crate.stocknc.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.rs b/tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.rs rename to tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.stderr b/tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.stderr rename to tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-body-checking.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.rs b/tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.rs rename to tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.stderr b/tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.stderr rename to tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-with-staged-api.rs b/tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-with-staged-api.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/default-method-body-is-const-with-staged-api.rs rename to tests/ui/rfc-2632-const-trait-impl/default-method-body-is-const-with-staged-api.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/feature-gate.gated.stderr b/tests/ui/rfc-2632-const-trait-impl/feature-gate.gated.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/feature-gate.gated.stderr rename to tests/ui/rfc-2632-const-trait-impl/feature-gate.gated.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/feature-gate.rs b/tests/ui/rfc-2632-const-trait-impl/feature-gate.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/feature-gate.rs rename to tests/ui/rfc-2632-const-trait-impl/feature-gate.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/feature-gate.stock.stderr b/tests/ui/rfc-2632-const-trait-impl/feature-gate.stock.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/feature-gate.stock.stderr rename to tests/ui/rfc-2632-const-trait-impl/feature-gate.stock.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/generic-bound.rs b/tests/ui/rfc-2632-const-trait-impl/generic-bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/generic-bound.rs rename to tests/ui/rfc-2632-const-trait-impl/generic-bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs b/tests/ui/rfc-2632-const-trait-impl/hir-const-check.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs rename to tests/ui/rfc-2632-const-trait-impl/hir-const-check.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/hir-const-check.stderr b/tests/ui/rfc-2632-const-trait-impl/hir-const-check.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/hir-const-check.stderr rename to tests/ui/rfc-2632-const-trait-impl/hir-const-check.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.rs b/tests/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.rs rename to tests/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.stderr b/tests/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.stderr rename to tests/ui/rfc-2632-const-trait-impl/impl-tilde-const-trait.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.rs b/tests/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.rs rename to tests/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.stderr b/tests/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.stderr rename to tests/ui/rfc-2632-const-trait-impl/impl-with-default-fn-fail.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn-pass.rs b/tests/ui/rfc-2632-const-trait-impl/impl-with-default-fn-pass.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/impl-with-default-fn-pass.rs rename to tests/ui/rfc-2632-const-trait-impl/impl-with-default-fn-pass.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/inherent-impl-const-bounds.rs b/tests/ui/rfc-2632-const-trait-impl/inherent-impl-const-bounds.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/inherent-impl-const-bounds.rs rename to tests/ui/rfc-2632-const-trait-impl/inherent-impl-const-bounds.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/inherent-impl.rs b/tests/ui/rfc-2632-const-trait-impl/inherent-impl.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/inherent-impl.rs rename to tests/ui/rfc-2632-const-trait-impl/inherent-impl.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/inherent-impl.stderr b/tests/ui/rfc-2632-const-trait-impl/inherent-impl.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/inherent-impl.stderr rename to tests/ui/rfc-2632-const-trait-impl/inherent-impl.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-100222.rs b/tests/ui/rfc-2632-const-trait-impl/issue-100222.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-100222.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-100222.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-102156.rs b/tests/ui/rfc-2632-const-trait-impl/issue-102156.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-102156.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-102156.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-102156.stderr b/tests/ui/rfc-2632-const-trait-impl/issue-102156.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-102156.stderr rename to tests/ui/rfc-2632-const-trait-impl/issue-102156.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-102985.rs b/tests/ui/rfc-2632-const-trait-impl/issue-102985.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-102985.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-102985.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-102985.stderr b/tests/ui/rfc-2632-const-trait-impl/issue-102985.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-102985.stderr rename to tests/ui/rfc-2632-const-trait-impl/issue-102985.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-103677.rs b/tests/ui/rfc-2632-const-trait-impl/issue-103677.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-103677.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-103677.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-79450.rs b/tests/ui/rfc-2632-const-trait-impl/issue-79450.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-79450.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-79450.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-79450.stderr b/tests/ui/rfc-2632-const-trait-impl/issue-79450.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-79450.stderr rename to tests/ui/rfc-2632-const-trait-impl/issue-79450.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-88155.rs b/tests/ui/rfc-2632-const-trait-impl/issue-88155.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-88155.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-88155.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-88155.stderr b/tests/ui/rfc-2632-const-trait-impl/issue-88155.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-88155.stderr rename to tests/ui/rfc-2632-const-trait-impl/issue-88155.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-90052.rs b/tests/ui/rfc-2632-const-trait-impl/issue-90052.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-90052.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-90052.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-90052.stderr b/tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-90052.stderr rename to tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-92111.rs b/tests/ui/rfc-2632-const-trait-impl/issue-92111.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-92111.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-92111.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/issue-92230-wf-super-trait-env.rs b/tests/ui/rfc-2632-const-trait-impl/issue-92230-wf-super-trait-env.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/issue-92230-wf-super-trait-env.rs rename to tests/ui/rfc-2632-const-trait-impl/issue-92230-wf-super-trait-env.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/nested-closure.rs b/tests/ui/rfc-2632-const-trait-impl/nested-closure.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/nested-closure.rs rename to tests/ui/rfc-2632-const-trait-impl/nested-closure.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/non-const-op-in-closure-in-const.rs b/tests/ui/rfc-2632-const-trait-impl/non-const-op-in-closure-in-const.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/non-const-op-in-closure-in-const.rs rename to tests/ui/rfc-2632-const-trait-impl/non-const-op-in-closure-in-const.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.stderr b/tests/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.stderr rename to tests/ui/rfc-2632-const-trait-impl/specialization/const-default-bound-non-const-specialized-bound.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-const-specialized.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/const-default-const-specialized.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-const-specialized.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/const-default-const-specialized.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.stderr b/tests/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.stderr rename to tests/ui/rfc-2632-const-trait-impl/specialization/const-default-impl-non-const-specialized-impl.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/default-keyword.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/default-keyword.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/default-keyword.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/default-keyword.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/issue-95186-specialize-on-tilde-const.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/issue-95186-specialize-on-tilde-const.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/issue-95186-specialize-on-tilde-const.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/issue-95186-specialize-on-tilde-const.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/issue-95187-same-trait-bound-different-constness.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/issue-95187-same-trait-bound-different-constness.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/issue-95187-same-trait-bound-different-constness.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/issue-95187-same-trait-bound-different-constness.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specialization/non-const-default-const-specialized.rs b/tests/ui/rfc-2632-const-trait-impl/specialization/non-const-default-const-specialized.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specialization/non-const-default-const-specialized.rs rename to tests/ui/rfc-2632-const-trait-impl/specialization/non-const-default-const-specialized.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specializing-constness-2.rs b/tests/ui/rfc-2632-const-trait-impl/specializing-constness-2.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specializing-constness-2.rs rename to tests/ui/rfc-2632-const-trait-impl/specializing-constness-2.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specializing-constness-2.stderr b/tests/ui/rfc-2632-const-trait-impl/specializing-constness-2.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specializing-constness-2.stderr rename to tests/ui/rfc-2632-const-trait-impl/specializing-constness-2.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/specializing-constness.rs b/tests/ui/rfc-2632-const-trait-impl/specializing-constness.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specializing-constness.rs rename to tests/ui/rfc-2632-const-trait-impl/specializing-constness.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/specializing-constness.stderr b/tests/ui/rfc-2632-const-trait-impl/specializing-constness.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/specializing-constness.stderr rename to tests/ui/rfc-2632-const-trait-impl/specializing-constness.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/staged-api-user-crate.rs b/tests/ui/rfc-2632-const-trait-impl/staged-api-user-crate.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/staged-api-user-crate.rs rename to tests/ui/rfc-2632-const-trait-impl/staged-api-user-crate.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/staged-api-user-crate.stderr b/tests/ui/rfc-2632-const-trait-impl/staged-api-user-crate.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/staged-api-user-crate.stderr rename to tests/ui/rfc-2632-const-trait-impl/staged-api-user-crate.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/staged-api.rs b/tests/ui/rfc-2632-const-trait-impl/staged-api.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/staged-api.rs rename to tests/ui/rfc-2632-const-trait-impl/staged-api.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/staged-api.stable.stderr b/tests/ui/rfc-2632-const-trait-impl/staged-api.stable.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/staged-api.stable.stderr rename to tests/ui/rfc-2632-const-trait-impl/staged-api.stable.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/staged-api.unstable.stderr b/tests/ui/rfc-2632-const-trait-impl/staged-api.unstable.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/staged-api.unstable.stderr rename to tests/ui/rfc-2632-const-trait-impl/staged-api.unstable.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/static-const-trait-bound.rs b/tests/ui/rfc-2632-const-trait-impl/static-const-trait-bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/static-const-trait-bound.rs rename to tests/ui/rfc-2632-const-trait-impl/static-const-trait-bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/std-impl-gate.rs b/tests/ui/rfc-2632-const-trait-impl/std-impl-gate.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/std-impl-gate.rs rename to tests/ui/rfc-2632-const-trait-impl/std-impl-gate.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/std-impl-gate.stock.stderr b/tests/ui/rfc-2632-const-trait-impl/std-impl-gate.stock.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/std-impl-gate.stock.stderr rename to tests/ui/rfc-2632-const-trait-impl/std-impl-gate.stock.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.nn.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.nn.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.nn.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.nn.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.ny.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.ny.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.ny.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.ny.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.rs b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.rs rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yy.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yy.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yy.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-2.yy.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.nn.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.nn.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.nn.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.nn.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.ny.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.ny.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.ny.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.ny.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.rs b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.rs rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.yn.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.yn.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.yn.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail-3.yn.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail.rs b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail.rs rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits-fail.stderr b/tests/ui/rfc-2632-const-trait-impl/super-traits-fail.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits-fail.stderr rename to tests/ui/rfc-2632-const-trait-impl/super-traits-fail.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/super-traits.rs b/tests/ui/rfc-2632-const-trait-impl/super-traits.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/super-traits.rs rename to tests/ui/rfc-2632-const-trait-impl/super-traits.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/syntax.rs b/tests/ui/rfc-2632-const-trait-impl/syntax.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/syntax.rs rename to tests/ui/rfc-2632-const-trait-impl/syntax.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.rs b/tests/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.rs rename to tests/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.stderr b/tests/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.stderr rename to tests/ui/rfc-2632-const-trait-impl/tilde-const-and-const-params.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.rs b/tests/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.rs rename to tests/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.stderr b/tests/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.stderr rename to tests/ui/rfc-2632-const-trait-impl/tilde-const-invalid-places.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-const-syntax.rs b/tests/ui/rfc-2632-const-trait-impl/tilde-const-syntax.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-const-syntax.rs rename to tests/ui/rfc-2632-const-trait-impl/tilde-const-syntax.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-twice.rs b/tests/ui/rfc-2632-const-trait-impl/tilde-twice.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-twice.rs rename to tests/ui/rfc-2632-const-trait-impl/tilde-twice.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde-twice.stderr b/tests/ui/rfc-2632-const-trait-impl/tilde-twice.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde-twice.stderr rename to tests/ui/rfc-2632-const-trait-impl/tilde-twice.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/tilde_const_on_impl_bound.rs b/tests/ui/rfc-2632-const-trait-impl/tilde_const_on_impl_bound.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/tilde_const_on_impl_bound.rs rename to tests/ui/rfc-2632-const-trait-impl/tilde_const_on_impl_bound.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-default-body-stability.rs b/tests/ui/rfc-2632-const-trait-impl/trait-default-body-stability.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-default-body-stability.rs rename to tests/ui/rfc-2632-const-trait-impl/trait-default-body-stability.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-const.rs b/tests/ui/rfc-2632-const-trait-impl/trait-where-clause-const.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-const.rs rename to tests/ui/rfc-2632-const-trait-impl/trait-where-clause-const.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-const.stderr b/tests/ui/rfc-2632-const-trait-impl/trait-where-clause-const.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-const.stderr rename to tests/ui/rfc-2632-const-trait-impl/trait-where-clause-const.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-run.rs b/tests/ui/rfc-2632-const-trait-impl/trait-where-clause-run.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-run.rs rename to tests/ui/rfc-2632-const-trait-impl/trait-where-clause-run.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs b/tests/ui/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs rename to tests/ui/rfc-2632-const-trait-impl/trait-where-clause-self-referential.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.rs b/tests/ui/rfc-2632-const-trait-impl/trait-where-clause.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.rs rename to tests/ui/rfc-2632-const-trait-impl/trait-where-clause.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr b/tests/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr rename to tests/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr diff --git a/src/test/ui/rfc-2632-const-trait-impl/without-tilde.rs b/tests/ui/rfc-2632-const-trait-impl/without-tilde.rs similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/without-tilde.rs rename to tests/ui/rfc-2632-const-trait-impl/without-tilde.rs diff --git a/src/test/ui/rfc-2632-const-trait-impl/without-tilde.stderr b/tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr similarity index 100% rename from src/test/ui/rfc-2632-const-trait-impl/without-tilde.stderr rename to tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr diff --git a/src/test/ui/rfcs/rfc-1014-2.rs b/tests/ui/rfcs/rfc-1014-2.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1014-2.rs rename to tests/ui/rfcs/rfc-1014-2.rs diff --git a/src/test/ui/rfcs/rfc-1014.rs b/tests/ui/rfcs/rfc-1014.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1014.rs rename to tests/ui/rfcs/rfc-1014.rs diff --git a/src/test/ui/rfcs/rfc-1789-as-cell/from-mut.rs b/tests/ui/rfcs/rfc-1789-as-cell/from-mut.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1789-as-cell/from-mut.rs rename to tests/ui/rfcs/rfc-1789-as-cell/from-mut.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-empty.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-empty.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-empty.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-empty.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-exitcode.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-exitcode.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-exitcode.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-exitcode.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-impl-termination.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-impl-termination.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-impl-termination.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-impl-termination.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_ok.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_ok.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_ok.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_ok.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result.rs diff --git a/src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str.rs b/tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str.rs similarity index 100% rename from src/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str.rs rename to tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/box.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/box.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/box.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/box.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/constref.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/constref.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/constref.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/constref.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/enum.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/enum.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/enum.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/enum.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/for.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/for.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/for.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/for.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/general.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/general.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/general.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/general.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/lit.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/lit.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/lit.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/lit.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/range.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/range.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/range.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/range.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/ref-region.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/ref-region.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/ref-region.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/ref-region.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/reset-mode.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/reset-mode.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/reset-mode.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/reset-mode.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/slice.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/slice.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/slice.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/slice.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/struct.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/struct.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/struct.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/struct.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/tuple-struct.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/tuple-struct.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/tuple-struct.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/tuple-struct.rs diff --git a/src/test/ui/rfcs/rfc-2005-default-binding-mode/tuple.rs b/tests/ui/rfcs/rfc-2005-default-binding-mode/tuple.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2005-default-binding-mode/tuple.rs rename to tests/ui/rfcs/rfc-2005-default-binding-mode/tuple.rs diff --git a/src/test/ui/rfcs/rfc-2151-raw-identifiers/attr.rs b/tests/ui/rfcs/rfc-2151-raw-identifiers/attr.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2151-raw-identifiers/attr.rs rename to tests/ui/rfcs/rfc-2151-raw-identifiers/attr.rs diff --git a/src/test/ui/rfcs/rfc-2151-raw-identifiers/basic.rs b/tests/ui/rfcs/rfc-2151-raw-identifiers/basic.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2151-raw-identifiers/basic.rs rename to tests/ui/rfcs/rfc-2151-raw-identifiers/basic.rs diff --git a/src/test/ui/rfcs/rfc-2151-raw-identifiers/items.rs b/tests/ui/rfcs/rfc-2151-raw-identifiers/items.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2151-raw-identifiers/items.rs rename to tests/ui/rfcs/rfc-2151-raw-identifiers/items.rs diff --git a/src/test/ui/rfcs/rfc-2151-raw-identifiers/macros.rs b/tests/ui/rfcs/rfc-2151-raw-identifiers/macros.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2151-raw-identifiers/macros.rs rename to tests/ui/rfcs/rfc-2151-raw-identifiers/macros.rs diff --git a/src/test/ui/rfcs/rfc-2175-or-if-while-let/basic.rs b/tests/ui/rfcs/rfc-2175-or-if-while-let/basic.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2175-or-if-while-let/basic.rs rename to tests/ui/rfcs/rfc-2175-or-if-while-let/basic.rs diff --git a/src/test/ui/rfcs/rfc-2302-self-struct-ctor.rs b/tests/ui/rfcs/rfc-2302-self-struct-ctor.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2302-self-struct-ctor.rs rename to tests/ui/rfcs/rfc-2302-self-struct-ctor.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/check-pass.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/check-pass.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/check-pass.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/check-pass.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/closures-inherit-target_feature.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/closures-inherit-target_feature.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/closures-inherit-target_feature.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/closures-inherit-target_feature.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/feature-gate-target_feature_11.stderr diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.mir.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.mir.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.mir.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.mir.stderr diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.thir.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.thir.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.thir.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/fn-ptr.thir.stderr diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/fn-traits.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/fn-traits.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/fn-traits.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/fn-traits.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/fn-traits.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/fn-traits.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/fn-traits.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/fn-traits.stderr diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/issue-99876.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/issue-99876.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/issue-99876.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/issue-99876.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/safe-calls.mir.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.mir.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/safe-calls.mir.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.mir.stderr diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/safe-calls.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/safe-calls.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/safe-calls.thir.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.thir.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/safe-calls.thir.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/safe-calls.thir.stderr diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs rename to tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs diff --git a/src/test/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr b/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr rename to tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr diff --git a/src/test/ui/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof.rs b/tests/ui/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof.rs rename to tests/ui/rfcs/rfc-2421-unreserve-pure-offsetof-sizeof-alignof.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/coerce-in-base-expr.rs b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/coerce-in-base-expr.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/coerce-in-base-expr.rs rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/coerce-in-base-expr.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.rs b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.rs rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.stderr b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.stderr rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.stderr diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.rs b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.rs rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.stderr b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.stderr rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.stderr diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-96878.rs b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-96878.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-96878.rs rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-96878.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.rs b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.rs rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.stderr b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.stderr rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/lifetime-update.stderr diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.rs b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.rs similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.rs rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.rs diff --git a/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.stderr b/tests/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.stderr similarity index 100% rename from src/test/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.stderr rename to tests/ui/rfcs/rfc-2528-type-changing-struct-update/type-generic-update.stderr diff --git a/src/test/ui/rfcs/rfc1445/eq-allows-match-on-ty-in-macro.rs b/tests/ui/rfcs/rfc1445/eq-allows-match-on-ty-in-macro.rs similarity index 100% rename from src/test/ui/rfcs/rfc1445/eq-allows-match-on-ty-in-macro.rs rename to tests/ui/rfcs/rfc1445/eq-allows-match-on-ty-in-macro.rs diff --git a/src/test/ui/rfcs/rfc1445/eq-allows-match.rs b/tests/ui/rfcs/rfc1445/eq-allows-match.rs similarity index 100% rename from src/test/ui/rfcs/rfc1445/eq-allows-match.rs rename to tests/ui/rfcs/rfc1445/eq-allows-match.rs diff --git a/src/test/ui/rfcs/rfc1623-2.rs b/tests/ui/rfcs/rfc1623-2.rs similarity index 100% rename from src/test/ui/rfcs/rfc1623-2.rs rename to tests/ui/rfcs/rfc1623-2.rs diff --git a/src/test/ui/rfcs/rfc1623-2.stderr b/tests/ui/rfcs/rfc1623-2.stderr similarity index 100% rename from src/test/ui/rfcs/rfc1623-2.stderr rename to tests/ui/rfcs/rfc1623-2.stderr diff --git a/src/test/ui/rfcs/rfc1623-3.rs b/tests/ui/rfcs/rfc1623-3.rs similarity index 100% rename from src/test/ui/rfcs/rfc1623-3.rs rename to tests/ui/rfcs/rfc1623-3.rs diff --git a/src/test/ui/rfcs/rfc1623-3.stderr b/tests/ui/rfcs/rfc1623-3.stderr similarity index 100% rename from src/test/ui/rfcs/rfc1623-3.stderr rename to tests/ui/rfcs/rfc1623-3.stderr diff --git a/src/test/ui/rfcs/rfc1623.rs b/tests/ui/rfcs/rfc1623.rs similarity index 100% rename from src/test/ui/rfcs/rfc1623.rs rename to tests/ui/rfcs/rfc1623.rs diff --git a/src/test/ui/rfcs/rfc1717/library-override.rs b/tests/ui/rfcs/rfc1717/library-override.rs similarity index 100% rename from src/test/ui/rfcs/rfc1717/library-override.rs rename to tests/ui/rfcs/rfc1717/library-override.rs diff --git a/src/test/ui/rfcs/rfc1857-drop-order.rs b/tests/ui/rfcs/rfc1857-drop-order.rs similarity index 100% rename from src/test/ui/rfcs/rfc1857-drop-order.rs rename to tests/ui/rfcs/rfc1857-drop-order.rs diff --git a/src/test/ui/rmeta/auxiliary/rmeta-meta.rs b/tests/ui/rmeta/auxiliary/rmeta-meta.rs similarity index 100% rename from src/test/ui/rmeta/auxiliary/rmeta-meta.rs rename to tests/ui/rmeta/auxiliary/rmeta-meta.rs diff --git a/src/test/ui/rmeta/auxiliary/rmeta-rlib-rpass.rs b/tests/ui/rmeta/auxiliary/rmeta-rlib-rpass.rs similarity index 100% rename from src/test/ui/rmeta/auxiliary/rmeta-rlib-rpass.rs rename to tests/ui/rmeta/auxiliary/rmeta-rlib-rpass.rs diff --git a/src/test/ui/rmeta/auxiliary/rmeta-rlib.rs b/tests/ui/rmeta/auxiliary/rmeta-rlib.rs similarity index 100% rename from src/test/ui/rmeta/auxiliary/rmeta-rlib.rs rename to tests/ui/rmeta/auxiliary/rmeta-rlib.rs diff --git a/src/test/ui/rmeta/auxiliary/rmeta-rmeta.rs b/tests/ui/rmeta/auxiliary/rmeta-rmeta.rs similarity index 100% rename from src/test/ui/rmeta/auxiliary/rmeta-rmeta.rs rename to tests/ui/rmeta/auxiliary/rmeta-rmeta.rs diff --git a/src/test/ui/rmeta/emit-artifact-notifications.polonius.stderr b/tests/ui/rmeta/emit-artifact-notifications.polonius.stderr similarity index 100% rename from src/test/ui/rmeta/emit-artifact-notifications.polonius.stderr rename to tests/ui/rmeta/emit-artifact-notifications.polonius.stderr diff --git a/src/test/ui/rmeta/emit-artifact-notifications.rs b/tests/ui/rmeta/emit-artifact-notifications.rs similarity index 100% rename from src/test/ui/rmeta/emit-artifact-notifications.rs rename to tests/ui/rmeta/emit-artifact-notifications.rs diff --git a/src/test/ui/rmeta/emit-artifact-notifications.stderr b/tests/ui/rmeta/emit-artifact-notifications.stderr similarity index 100% rename from src/test/ui/rmeta/emit-artifact-notifications.stderr rename to tests/ui/rmeta/emit-artifact-notifications.stderr diff --git a/src/test/ui/rmeta/emit-metadata-obj.rs b/tests/ui/rmeta/emit-metadata-obj.rs similarity index 100% rename from src/test/ui/rmeta/emit-metadata-obj.rs rename to tests/ui/rmeta/emit-metadata-obj.rs diff --git a/src/test/ui/rmeta/rmeta-lib-pass.rs b/tests/ui/rmeta/rmeta-lib-pass.rs similarity index 100% rename from src/test/ui/rmeta/rmeta-lib-pass.rs rename to tests/ui/rmeta/rmeta-lib-pass.rs diff --git a/src/test/ui/rmeta/rmeta-pass.rs b/tests/ui/rmeta/rmeta-pass.rs similarity index 100% rename from src/test/ui/rmeta/rmeta-pass.rs rename to tests/ui/rmeta/rmeta-pass.rs diff --git a/src/test/ui/rmeta/rmeta-priv-warn.rs b/tests/ui/rmeta/rmeta-priv-warn.rs similarity index 100% rename from src/test/ui/rmeta/rmeta-priv-warn.rs rename to tests/ui/rmeta/rmeta-priv-warn.rs diff --git a/src/test/ui/rmeta/rmeta-rpass.rs b/tests/ui/rmeta/rmeta-rpass.rs similarity index 100% rename from src/test/ui/rmeta/rmeta-rpass.rs rename to tests/ui/rmeta/rmeta-rpass.rs diff --git a/src/test/ui/rmeta/rmeta.rs b/tests/ui/rmeta/rmeta.rs similarity index 100% rename from src/test/ui/rmeta/rmeta.rs rename to tests/ui/rmeta/rmeta.rs diff --git a/src/test/ui/rmeta/rmeta.stderr b/tests/ui/rmeta/rmeta.stderr similarity index 100% rename from src/test/ui/rmeta/rmeta.stderr rename to tests/ui/rmeta/rmeta.stderr diff --git a/src/test/ui/rmeta/rmeta_lib.rs b/tests/ui/rmeta/rmeta_lib.rs similarity index 100% rename from src/test/ui/rmeta/rmeta_lib.rs rename to tests/ui/rmeta/rmeta_lib.rs diff --git a/src/test/ui/rmeta/rmeta_lib.stderr b/tests/ui/rmeta/rmeta_lib.stderr similarity index 100% rename from src/test/ui/rmeta/rmeta_lib.stderr rename to tests/ui/rmeta/rmeta_lib.stderr diff --git a/src/test/ui/rmeta/rmeta_meta_main.rs b/tests/ui/rmeta/rmeta_meta_main.rs similarity index 100% rename from src/test/ui/rmeta/rmeta_meta_main.rs rename to tests/ui/rmeta/rmeta_meta_main.rs diff --git a/src/test/ui/rmeta/rmeta_meta_main.stderr b/tests/ui/rmeta/rmeta_meta_main.stderr similarity index 100% rename from src/test/ui/rmeta/rmeta_meta_main.stderr rename to tests/ui/rmeta/rmeta_meta_main.stderr diff --git a/src/test/ui/runtime/atomic-print.rs b/tests/ui/runtime/atomic-print.rs similarity index 100% rename from src/test/ui/runtime/atomic-print.rs rename to tests/ui/runtime/atomic-print.rs diff --git a/src/test/ui/runtime/backtrace-debuginfo-aux.rs b/tests/ui/runtime/backtrace-debuginfo-aux.rs similarity index 100% rename from src/test/ui/runtime/backtrace-debuginfo-aux.rs rename to tests/ui/runtime/backtrace-debuginfo-aux.rs diff --git a/src/test/ui/runtime/backtrace-debuginfo.rs b/tests/ui/runtime/backtrace-debuginfo.rs similarity index 100% rename from src/test/ui/runtime/backtrace-debuginfo.rs rename to tests/ui/runtime/backtrace-debuginfo.rs diff --git a/src/test/ui/runtime/native-print-no-runtime.rs b/tests/ui/runtime/native-print-no-runtime.rs similarity index 100% rename from src/test/ui/runtime/native-print-no-runtime.rs rename to tests/ui/runtime/native-print-no-runtime.rs diff --git a/src/test/ui/runtime/out-of-stack.rs b/tests/ui/runtime/out-of-stack.rs similarity index 100% rename from src/test/ui/runtime/out-of-stack.rs rename to tests/ui/runtime/out-of-stack.rs diff --git a/src/test/ui/runtime/rt-explody-panic-payloads.rs b/tests/ui/runtime/rt-explody-panic-payloads.rs similarity index 100% rename from src/test/ui/runtime/rt-explody-panic-payloads.rs rename to tests/ui/runtime/rt-explody-panic-payloads.rs diff --git a/src/test/ui/runtime/running-with-no-runtime.rs b/tests/ui/runtime/running-with-no-runtime.rs similarity index 100% rename from src/test/ui/runtime/running-with-no-runtime.rs rename to tests/ui/runtime/running-with-no-runtime.rs diff --git a/src/test/ui/runtime/signal-alternate-stack-cleanup.rs b/tests/ui/runtime/signal-alternate-stack-cleanup.rs similarity index 100% rename from src/test/ui/runtime/signal-alternate-stack-cleanup.rs rename to tests/ui/runtime/signal-alternate-stack-cleanup.rs diff --git a/src/test/ui/runtime/stdout-during-shutdown.rs b/tests/ui/runtime/stdout-during-shutdown.rs similarity index 100% rename from src/test/ui/runtime/stdout-during-shutdown.rs rename to tests/ui/runtime/stdout-during-shutdown.rs diff --git a/src/test/ui/runtime/stdout-during-shutdown.run.stdout b/tests/ui/runtime/stdout-during-shutdown.run.stdout similarity index 100% rename from src/test/ui/runtime/stdout-during-shutdown.run.stdout rename to tests/ui/runtime/stdout-during-shutdown.run.stdout diff --git a/src/test/ui/rust-2018/async-ident-allowed.rs b/tests/ui/rust-2018/async-ident-allowed.rs similarity index 100% rename from src/test/ui/rust-2018/async-ident-allowed.rs rename to tests/ui/rust-2018/async-ident-allowed.rs diff --git a/src/test/ui/rust-2018/async-ident-allowed.stderr b/tests/ui/rust-2018/async-ident-allowed.stderr similarity index 100% rename from src/test/ui/rust-2018/async-ident-allowed.stderr rename to tests/ui/rust-2018/async-ident-allowed.stderr diff --git a/src/test/ui/rust-2018/async-ident.fixed b/tests/ui/rust-2018/async-ident.fixed similarity index 100% rename from src/test/ui/rust-2018/async-ident.fixed rename to tests/ui/rust-2018/async-ident.fixed diff --git a/src/test/ui/rust-2018/async-ident.rs b/tests/ui/rust-2018/async-ident.rs similarity index 100% rename from src/test/ui/rust-2018/async-ident.rs rename to tests/ui/rust-2018/async-ident.rs diff --git a/src/test/ui/rust-2018/async-ident.stderr b/tests/ui/rust-2018/async-ident.stderr similarity index 100% rename from src/test/ui/rust-2018/async-ident.stderr rename to tests/ui/rust-2018/async-ident.stderr diff --git a/src/test/ui/rust-2018/auxiliary/baz.rs b/tests/ui/rust-2018/auxiliary/baz.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/baz.rs rename to tests/ui/rust-2018/auxiliary/baz.rs diff --git a/src/test/ui/rust-2018/auxiliary/edition-lint-infer-outlives-macro.rs b/tests/ui/rust-2018/auxiliary/edition-lint-infer-outlives-macro.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/edition-lint-infer-outlives-macro.rs rename to tests/ui/rust-2018/auxiliary/edition-lint-infer-outlives-macro.rs diff --git a/src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs b/tests/ui/rust-2018/auxiliary/edition-lint-paths.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/edition-lint-paths.rs rename to tests/ui/rust-2018/auxiliary/edition-lint-paths.rs diff --git a/src/test/ui/rust-2018/auxiliary/macro-use-warned-against.rs b/tests/ui/rust-2018/auxiliary/macro-use-warned-against.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/macro-use-warned-against.rs rename to tests/ui/rust-2018/auxiliary/macro-use-warned-against.rs diff --git a/src/test/ui/rust-2018/auxiliary/macro-use-warned-against2.rs b/tests/ui/rust-2018/auxiliary/macro-use-warned-against2.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/macro-use-warned-against2.rs rename to tests/ui/rust-2018/auxiliary/macro-use-warned-against2.rs diff --git a/src/test/ui/rust-2018/auxiliary/remove-extern-crate.rs b/tests/ui/rust-2018/auxiliary/remove-extern-crate.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/remove-extern-crate.rs rename to tests/ui/rust-2018/auxiliary/remove-extern-crate.rs diff --git a/src/test/ui/rust-2018/auxiliary/suggestions-not-always-applicable.rs b/tests/ui/rust-2018/auxiliary/suggestions-not-always-applicable.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/suggestions-not-always-applicable.rs rename to tests/ui/rust-2018/auxiliary/suggestions-not-always-applicable.rs diff --git a/src/test/ui/rust-2018/auxiliary/trait-import-suggestions.rs b/tests/ui/rust-2018/auxiliary/trait-import-suggestions.rs similarity index 100% rename from src/test/ui/rust-2018/auxiliary/trait-import-suggestions.rs rename to tests/ui/rust-2018/auxiliary/trait-import-suggestions.rs diff --git a/src/test/ui/rust-2018/dyn-keyword.fixed b/tests/ui/rust-2018/dyn-keyword.fixed similarity index 100% rename from src/test/ui/rust-2018/dyn-keyword.fixed rename to tests/ui/rust-2018/dyn-keyword.fixed diff --git a/src/test/ui/rust-2018/dyn-keyword.rs b/tests/ui/rust-2018/dyn-keyword.rs similarity index 100% rename from src/test/ui/rust-2018/dyn-keyword.rs rename to tests/ui/rust-2018/dyn-keyword.rs diff --git a/src/test/ui/rust-2018/dyn-keyword.stderr b/tests/ui/rust-2018/dyn-keyword.stderr similarity index 100% rename from src/test/ui/rust-2018/dyn-keyword.stderr rename to tests/ui/rust-2018/dyn-keyword.stderr diff --git a/src/test/ui/rust-2018/dyn-trait-compatibility.rs b/tests/ui/rust-2018/dyn-trait-compatibility.rs similarity index 100% rename from src/test/ui/rust-2018/dyn-trait-compatibility.rs rename to tests/ui/rust-2018/dyn-trait-compatibility.rs diff --git a/src/test/ui/rust-2018/dyn-trait-compatibility.stderr b/tests/ui/rust-2018/dyn-trait-compatibility.stderr similarity index 100% rename from src/test/ui/rust-2018/dyn-trait-compatibility.stderr rename to tests/ui/rust-2018/dyn-trait-compatibility.stderr diff --git a/src/test/ui/rust-2018/edition-lint-fully-qualified-paths.fixed b/tests/ui/rust-2018/edition-lint-fully-qualified-paths.fixed similarity index 100% rename from src/test/ui/rust-2018/edition-lint-fully-qualified-paths.fixed rename to tests/ui/rust-2018/edition-lint-fully-qualified-paths.fixed diff --git a/src/test/ui/rust-2018/edition-lint-fully-qualified-paths.rs b/tests/ui/rust-2018/edition-lint-fully-qualified-paths.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-fully-qualified-paths.rs rename to tests/ui/rust-2018/edition-lint-fully-qualified-paths.rs diff --git a/src/test/ui/rust-2018/edition-lint-fully-qualified-paths.stderr b/tests/ui/rust-2018/edition-lint-fully-qualified-paths.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-fully-qualified-paths.stderr rename to tests/ui/rust-2018/edition-lint-fully-qualified-paths.stderr diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives-macro.fixed b/tests/ui/rust-2018/edition-lint-infer-outlives-macro.fixed similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives-macro.fixed rename to tests/ui/rust-2018/edition-lint-infer-outlives-macro.fixed diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives-macro.rs b/tests/ui/rust-2018/edition-lint-infer-outlives-macro.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives-macro.rs rename to tests/ui/rust-2018/edition-lint-infer-outlives-macro.rs diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives-macro.stderr b/tests/ui/rust-2018/edition-lint-infer-outlives-macro.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives-macro.stderr rename to tests/ui/rust-2018/edition-lint-infer-outlives-macro.stderr diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives-multispan.rs b/tests/ui/rust-2018/edition-lint-infer-outlives-multispan.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives-multispan.rs rename to tests/ui/rust-2018/edition-lint-infer-outlives-multispan.rs diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives-multispan.stderr b/tests/ui/rust-2018/edition-lint-infer-outlives-multispan.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives-multispan.stderr rename to tests/ui/rust-2018/edition-lint-infer-outlives-multispan.stderr diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives.fixed b/tests/ui/rust-2018/edition-lint-infer-outlives.fixed similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives.fixed rename to tests/ui/rust-2018/edition-lint-infer-outlives.fixed diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives.rs b/tests/ui/rust-2018/edition-lint-infer-outlives.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives.rs rename to tests/ui/rust-2018/edition-lint-infer-outlives.rs diff --git a/src/test/ui/rust-2018/edition-lint-infer-outlives.stderr b/tests/ui/rust-2018/edition-lint-infer-outlives.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-infer-outlives.stderr rename to tests/ui/rust-2018/edition-lint-infer-outlives.stderr diff --git a/src/test/ui/rust-2018/edition-lint-nested-empty-paths.fixed b/tests/ui/rust-2018/edition-lint-nested-empty-paths.fixed similarity index 100% rename from src/test/ui/rust-2018/edition-lint-nested-empty-paths.fixed rename to tests/ui/rust-2018/edition-lint-nested-empty-paths.fixed diff --git a/src/test/ui/rust-2018/edition-lint-nested-empty-paths.rs b/tests/ui/rust-2018/edition-lint-nested-empty-paths.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-nested-empty-paths.rs rename to tests/ui/rust-2018/edition-lint-nested-empty-paths.rs diff --git a/src/test/ui/rust-2018/edition-lint-nested-empty-paths.stderr b/tests/ui/rust-2018/edition-lint-nested-empty-paths.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-nested-empty-paths.stderr rename to tests/ui/rust-2018/edition-lint-nested-empty-paths.stderr diff --git a/src/test/ui/rust-2018/edition-lint-nested-paths.fixed b/tests/ui/rust-2018/edition-lint-nested-paths.fixed similarity index 100% rename from src/test/ui/rust-2018/edition-lint-nested-paths.fixed rename to tests/ui/rust-2018/edition-lint-nested-paths.fixed diff --git a/src/test/ui/rust-2018/edition-lint-nested-paths.rs b/tests/ui/rust-2018/edition-lint-nested-paths.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-nested-paths.rs rename to tests/ui/rust-2018/edition-lint-nested-paths.rs diff --git a/src/test/ui/rust-2018/edition-lint-nested-paths.stderr b/tests/ui/rust-2018/edition-lint-nested-paths.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-nested-paths.stderr rename to tests/ui/rust-2018/edition-lint-nested-paths.stderr diff --git a/src/test/ui/rust-2018/edition-lint-paths-2018.rs b/tests/ui/rust-2018/edition-lint-paths-2018.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-paths-2018.rs rename to tests/ui/rust-2018/edition-lint-paths-2018.rs diff --git a/src/test/ui/rust-2018/edition-lint-paths.fixed b/tests/ui/rust-2018/edition-lint-paths.fixed similarity index 100% rename from src/test/ui/rust-2018/edition-lint-paths.fixed rename to tests/ui/rust-2018/edition-lint-paths.fixed diff --git a/src/test/ui/rust-2018/edition-lint-paths.rs b/tests/ui/rust-2018/edition-lint-paths.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-paths.rs rename to tests/ui/rust-2018/edition-lint-paths.rs diff --git a/src/test/ui/rust-2018/edition-lint-paths.stderr b/tests/ui/rust-2018/edition-lint-paths.stderr similarity index 100% rename from src/test/ui/rust-2018/edition-lint-paths.stderr rename to tests/ui/rust-2018/edition-lint-paths.stderr diff --git a/src/test/ui/rust-2018/edition-lint-uninferable-outlives.rs b/tests/ui/rust-2018/edition-lint-uninferable-outlives.rs similarity index 100% rename from src/test/ui/rust-2018/edition-lint-uninferable-outlives.rs rename to tests/ui/rust-2018/edition-lint-uninferable-outlives.rs diff --git a/src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.fixed b/tests/ui/rust-2018/extern-crate-idiomatic-in-2018.fixed similarity index 100% rename from src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.fixed rename to tests/ui/rust-2018/extern-crate-idiomatic-in-2018.fixed diff --git a/src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.rs b/tests/ui/rust-2018/extern-crate-idiomatic-in-2018.rs similarity index 100% rename from src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.rs rename to tests/ui/rust-2018/extern-crate-idiomatic-in-2018.rs diff --git a/src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.stderr b/tests/ui/rust-2018/extern-crate-idiomatic-in-2018.stderr similarity index 100% rename from src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.stderr rename to tests/ui/rust-2018/extern-crate-idiomatic-in-2018.stderr diff --git a/src/test/ui/rust-2018/extern-crate-idiomatic.fixed b/tests/ui/rust-2018/extern-crate-idiomatic.fixed similarity index 100% rename from src/test/ui/rust-2018/extern-crate-idiomatic.fixed rename to tests/ui/rust-2018/extern-crate-idiomatic.fixed diff --git a/src/test/ui/rust-2018/extern-crate-idiomatic.rs b/tests/ui/rust-2018/extern-crate-idiomatic.rs similarity index 100% rename from src/test/ui/rust-2018/extern-crate-idiomatic.rs rename to tests/ui/rust-2018/extern-crate-idiomatic.rs diff --git a/src/test/ui/rust-2018/extern-crate-referenced-by-self-path.fixed b/tests/ui/rust-2018/extern-crate-referenced-by-self-path.fixed similarity index 100% rename from src/test/ui/rust-2018/extern-crate-referenced-by-self-path.fixed rename to tests/ui/rust-2018/extern-crate-referenced-by-self-path.fixed diff --git a/src/test/ui/rust-2018/extern-crate-referenced-by-self-path.rs b/tests/ui/rust-2018/extern-crate-referenced-by-self-path.rs similarity index 100% rename from src/test/ui/rust-2018/extern-crate-referenced-by-self-path.rs rename to tests/ui/rust-2018/extern-crate-referenced-by-self-path.rs diff --git a/src/test/ui/rust-2018/extern-crate-rename.fixed b/tests/ui/rust-2018/extern-crate-rename.fixed similarity index 100% rename from src/test/ui/rust-2018/extern-crate-rename.fixed rename to tests/ui/rust-2018/extern-crate-rename.fixed diff --git a/src/test/ui/rust-2018/extern-crate-rename.rs b/tests/ui/rust-2018/extern-crate-rename.rs similarity index 100% rename from src/test/ui/rust-2018/extern-crate-rename.rs rename to tests/ui/rust-2018/extern-crate-rename.rs diff --git a/src/test/ui/rust-2018/extern-crate-rename.stderr b/tests/ui/rust-2018/extern-crate-rename.stderr similarity index 100% rename from src/test/ui/rust-2018/extern-crate-rename.stderr rename to tests/ui/rust-2018/extern-crate-rename.stderr diff --git a/src/test/ui/rust-2018/extern-crate-submod.fixed b/tests/ui/rust-2018/extern-crate-submod.fixed similarity index 100% rename from src/test/ui/rust-2018/extern-crate-submod.fixed rename to tests/ui/rust-2018/extern-crate-submod.fixed diff --git a/src/test/ui/rust-2018/extern-crate-submod.rs b/tests/ui/rust-2018/extern-crate-submod.rs similarity index 100% rename from src/test/ui/rust-2018/extern-crate-submod.rs rename to tests/ui/rust-2018/extern-crate-submod.rs diff --git a/src/test/ui/rust-2018/extern-crate-submod.stderr b/tests/ui/rust-2018/extern-crate-submod.stderr similarity index 100% rename from src/test/ui/rust-2018/extern-crate-submod.stderr rename to tests/ui/rust-2018/extern-crate-submod.stderr diff --git a/src/test/ui/rust-2018/future-proofing-locals.rs b/tests/ui/rust-2018/future-proofing-locals.rs similarity index 100% rename from src/test/ui/rust-2018/future-proofing-locals.rs rename to tests/ui/rust-2018/future-proofing-locals.rs diff --git a/src/test/ui/rust-2018/future-proofing-locals.stderr b/tests/ui/rust-2018/future-proofing-locals.stderr similarity index 100% rename from src/test/ui/rust-2018/future-proofing-locals.stderr rename to tests/ui/rust-2018/future-proofing-locals.stderr diff --git a/src/test/ui/rust-2018/issue-51008-1.rs b/tests/ui/rust-2018/issue-51008-1.rs similarity index 100% rename from src/test/ui/rust-2018/issue-51008-1.rs rename to tests/ui/rust-2018/issue-51008-1.rs diff --git a/src/test/ui/rust-2018/issue-51008.rs b/tests/ui/rust-2018/issue-51008.rs similarity index 100% rename from src/test/ui/rust-2018/issue-51008.rs rename to tests/ui/rust-2018/issue-51008.rs diff --git a/src/test/ui/rust-2018/issue-52202-use-suggestions.rs b/tests/ui/rust-2018/issue-52202-use-suggestions.rs similarity index 100% rename from src/test/ui/rust-2018/issue-52202-use-suggestions.rs rename to tests/ui/rust-2018/issue-52202-use-suggestions.rs diff --git a/src/test/ui/rust-2018/issue-52202-use-suggestions.stderr b/tests/ui/rust-2018/issue-52202-use-suggestions.stderr similarity index 100% rename from src/test/ui/rust-2018/issue-52202-use-suggestions.stderr rename to tests/ui/rust-2018/issue-52202-use-suggestions.stderr diff --git a/src/test/ui/rust-2018/issue-54006.rs b/tests/ui/rust-2018/issue-54006.rs similarity index 100% rename from src/test/ui/rust-2018/issue-54006.rs rename to tests/ui/rust-2018/issue-54006.rs diff --git a/src/test/ui/rust-2018/issue-54006.stderr b/tests/ui/rust-2018/issue-54006.stderr similarity index 100% rename from src/test/ui/rust-2018/issue-54006.stderr rename to tests/ui/rust-2018/issue-54006.stderr diff --git a/src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed similarity index 100% rename from src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed rename to tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed diff --git a/src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs similarity index 100% rename from src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs rename to tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs diff --git a/src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.stderr b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.stderr similarity index 100% rename from src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.stderr rename to tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.stderr diff --git a/src/test/ui/rust-2018/local-path-suggestions-2015.rs b/tests/ui/rust-2018/local-path-suggestions-2015.rs similarity index 100% rename from src/test/ui/rust-2018/local-path-suggestions-2015.rs rename to tests/ui/rust-2018/local-path-suggestions-2015.rs diff --git a/src/test/ui/rust-2018/local-path-suggestions-2015.stderr b/tests/ui/rust-2018/local-path-suggestions-2015.stderr similarity index 100% rename from src/test/ui/rust-2018/local-path-suggestions-2015.stderr rename to tests/ui/rust-2018/local-path-suggestions-2015.stderr diff --git a/src/test/ui/rust-2018/local-path-suggestions-2018.rs b/tests/ui/rust-2018/local-path-suggestions-2018.rs similarity index 100% rename from src/test/ui/rust-2018/local-path-suggestions-2018.rs rename to tests/ui/rust-2018/local-path-suggestions-2018.rs diff --git a/src/test/ui/rust-2018/local-path-suggestions-2018.stderr b/tests/ui/rust-2018/local-path-suggestions-2018.stderr similarity index 100% rename from src/test/ui/rust-2018/local-path-suggestions-2018.stderr rename to tests/ui/rust-2018/local-path-suggestions-2018.stderr diff --git a/src/test/ui/rust-2018/macro-use-warned-against.rs b/tests/ui/rust-2018/macro-use-warned-against.rs similarity index 100% rename from src/test/ui/rust-2018/macro-use-warned-against.rs rename to tests/ui/rust-2018/macro-use-warned-against.rs diff --git a/src/test/ui/rust-2018/macro-use-warned-against.stderr b/tests/ui/rust-2018/macro-use-warned-against.stderr similarity index 100% rename from src/test/ui/rust-2018/macro-use-warned-against.stderr rename to tests/ui/rust-2018/macro-use-warned-against.stderr diff --git a/src/test/ui/rust-2018/proc-macro-crate-in-paths.rs b/tests/ui/rust-2018/proc-macro-crate-in-paths.rs similarity index 100% rename from src/test/ui/rust-2018/proc-macro-crate-in-paths.rs rename to tests/ui/rust-2018/proc-macro-crate-in-paths.rs diff --git a/src/test/ui/rust-2018/remove-extern-crate.fixed b/tests/ui/rust-2018/remove-extern-crate.fixed similarity index 100% rename from src/test/ui/rust-2018/remove-extern-crate.fixed rename to tests/ui/rust-2018/remove-extern-crate.fixed diff --git a/src/test/ui/rust-2018/remove-extern-crate.rs b/tests/ui/rust-2018/remove-extern-crate.rs similarity index 100% rename from src/test/ui/rust-2018/remove-extern-crate.rs rename to tests/ui/rust-2018/remove-extern-crate.rs diff --git a/src/test/ui/rust-2018/remove-extern-crate.stderr b/tests/ui/rust-2018/remove-extern-crate.stderr similarity index 100% rename from src/test/ui/rust-2018/remove-extern-crate.stderr rename to tests/ui/rust-2018/remove-extern-crate.stderr diff --git a/src/test/ui/rust-2018/suggestions-not-always-applicable.fixed b/tests/ui/rust-2018/suggestions-not-always-applicable.fixed similarity index 100% rename from src/test/ui/rust-2018/suggestions-not-always-applicable.fixed rename to tests/ui/rust-2018/suggestions-not-always-applicable.fixed diff --git a/src/test/ui/rust-2018/suggestions-not-always-applicable.rs b/tests/ui/rust-2018/suggestions-not-always-applicable.rs similarity index 100% rename from src/test/ui/rust-2018/suggestions-not-always-applicable.rs rename to tests/ui/rust-2018/suggestions-not-always-applicable.rs diff --git a/src/test/ui/rust-2018/trait-import-suggestions.rs b/tests/ui/rust-2018/trait-import-suggestions.rs similarity index 100% rename from src/test/ui/rust-2018/trait-import-suggestions.rs rename to tests/ui/rust-2018/trait-import-suggestions.rs diff --git a/src/test/ui/rust-2018/trait-import-suggestions.stderr b/tests/ui/rust-2018/trait-import-suggestions.stderr similarity index 100% rename from src/test/ui/rust-2018/trait-import-suggestions.stderr rename to tests/ui/rust-2018/trait-import-suggestions.stderr diff --git a/src/test/ui/rust-2018/try-ident.fixed b/tests/ui/rust-2018/try-ident.fixed similarity index 100% rename from src/test/ui/rust-2018/try-ident.fixed rename to tests/ui/rust-2018/try-ident.fixed diff --git a/src/test/ui/rust-2018/try-ident.rs b/tests/ui/rust-2018/try-ident.rs similarity index 100% rename from src/test/ui/rust-2018/try-ident.rs rename to tests/ui/rust-2018/try-ident.rs diff --git a/src/test/ui/rust-2018/try-ident.stderr b/tests/ui/rust-2018/try-ident.stderr similarity index 100% rename from src/test/ui/rust-2018/try-ident.stderr rename to tests/ui/rust-2018/try-ident.stderr diff --git a/src/test/ui/rust-2018/try-macro.fixed b/tests/ui/rust-2018/try-macro.fixed similarity index 100% rename from src/test/ui/rust-2018/try-macro.fixed rename to tests/ui/rust-2018/try-macro.fixed diff --git a/src/test/ui/rust-2018/try-macro.rs b/tests/ui/rust-2018/try-macro.rs similarity index 100% rename from src/test/ui/rust-2018/try-macro.rs rename to tests/ui/rust-2018/try-macro.rs diff --git a/src/test/ui/rust-2018/try-macro.stderr b/tests/ui/rust-2018/try-macro.stderr similarity index 100% rename from src/test/ui/rust-2018/try-macro.stderr rename to tests/ui/rust-2018/try-macro.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity-macros-nested.rs b/tests/ui/rust-2018/uniform-paths/ambiguity-macros-nested.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity-macros-nested.rs rename to tests/ui/rust-2018/uniform-paths/ambiguity-macros-nested.rs diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity-macros-nested.stderr b/tests/ui/rust-2018/uniform-paths/ambiguity-macros-nested.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity-macros-nested.stderr rename to tests/ui/rust-2018/uniform-paths/ambiguity-macros-nested.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity-macros.rs b/tests/ui/rust-2018/uniform-paths/ambiguity-macros.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity-macros.rs rename to tests/ui/rust-2018/uniform-paths/ambiguity-macros.rs diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity-macros.stderr b/tests/ui/rust-2018/uniform-paths/ambiguity-macros.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity-macros.stderr rename to tests/ui/rust-2018/uniform-paths/ambiguity-macros.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity-nested.rs b/tests/ui/rust-2018/uniform-paths/ambiguity-nested.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity-nested.rs rename to tests/ui/rust-2018/uniform-paths/ambiguity-nested.rs diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity-nested.stderr b/tests/ui/rust-2018/uniform-paths/ambiguity-nested.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity-nested.stderr rename to tests/ui/rust-2018/uniform-paths/ambiguity-nested.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity.rs b/tests/ui/rust-2018/uniform-paths/ambiguity.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity.rs rename to tests/ui/rust-2018/uniform-paths/ambiguity.rs diff --git a/src/test/ui/rust-2018/uniform-paths/ambiguity.stderr b/tests/ui/rust-2018/uniform-paths/ambiguity.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/ambiguity.stderr rename to tests/ui/rust-2018/uniform-paths/ambiguity.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/auxiliary/cross-crate.rs b/tests/ui/rust-2018/uniform-paths/auxiliary/cross-crate.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/auxiliary/cross-crate.rs rename to tests/ui/rust-2018/uniform-paths/auxiliary/cross-crate.rs diff --git a/src/test/ui/rust-2018/uniform-paths/auxiliary/issue-55779-extern-trait.rs b/tests/ui/rust-2018/uniform-paths/auxiliary/issue-55779-extern-trait.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/auxiliary/issue-55779-extern-trait.rs rename to tests/ui/rust-2018/uniform-paths/auxiliary/issue-55779-extern-trait.rs diff --git a/src/test/ui/rust-2018/uniform-paths/auxiliary/issue-56596-2.rs b/tests/ui/rust-2018/uniform-paths/auxiliary/issue-56596-2.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/auxiliary/issue-56596-2.rs rename to tests/ui/rust-2018/uniform-paths/auxiliary/issue-56596-2.rs diff --git a/src/test/ui/rust-2018/uniform-paths/auxiliary/issue-56596.rs b/tests/ui/rust-2018/uniform-paths/auxiliary/issue-56596.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/auxiliary/issue-56596.rs rename to tests/ui/rust-2018/uniform-paths/auxiliary/issue-56596.rs diff --git a/src/test/ui/rust-2018/uniform-paths/auxiliary/issue-87932-a.rs b/tests/ui/rust-2018/uniform-paths/auxiliary/issue-87932-a.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/auxiliary/issue-87932-a.rs rename to tests/ui/rust-2018/uniform-paths/auxiliary/issue-87932-a.rs diff --git a/src/test/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs b/tests/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs rename to tests/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.rs diff --git a/src/test/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.stderr b/tests/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.stderr rename to tests/ui/rust-2018/uniform-paths/block-scoped-shadow-nested.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/block-scoped-shadow.rs b/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/block-scoped-shadow.rs rename to tests/ui/rust-2018/uniform-paths/block-scoped-shadow.rs diff --git a/src/test/ui/rust-2018/uniform-paths/block-scoped-shadow.stderr b/tests/ui/rust-2018/uniform-paths/block-scoped-shadow.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/block-scoped-shadow.stderr rename to tests/ui/rust-2018/uniform-paths/block-scoped-shadow.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/cross-crate.rs b/tests/ui/rust-2018/uniform-paths/cross-crate.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/cross-crate.rs rename to tests/ui/rust-2018/uniform-paths/cross-crate.rs diff --git a/src/test/ui/rust-2018/uniform-paths/cross-crate.stderr b/tests/ui/rust-2018/uniform-paths/cross-crate.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/cross-crate.stderr rename to tests/ui/rust-2018/uniform-paths/cross-crate.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/deadlock.rs b/tests/ui/rust-2018/uniform-paths/deadlock.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/deadlock.rs rename to tests/ui/rust-2018/uniform-paths/deadlock.rs diff --git a/src/test/ui/rust-2018/uniform-paths/deadlock.stderr b/tests/ui/rust-2018/uniform-paths/deadlock.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/deadlock.stderr rename to tests/ui/rust-2018/uniform-paths/deadlock.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/fn-local-enum.rs b/tests/ui/rust-2018/uniform-paths/fn-local-enum.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/fn-local-enum.rs rename to tests/ui/rust-2018/uniform-paths/fn-local-enum.rs diff --git a/src/test/ui/rust-2018/uniform-paths/from-decl-macro.rs b/tests/ui/rust-2018/uniform-paths/from-decl-macro.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/from-decl-macro.rs rename to tests/ui/rust-2018/uniform-paths/from-decl-macro.rs diff --git a/src/test/ui/rust-2018/uniform-paths/issue-54253.rs b/tests/ui/rust-2018/uniform-paths/issue-54253.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-54253.rs rename to tests/ui/rust-2018/uniform-paths/issue-54253.rs diff --git a/src/test/ui/rust-2018/uniform-paths/issue-54253.stderr b/tests/ui/rust-2018/uniform-paths/issue-54253.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-54253.stderr rename to tests/ui/rust-2018/uniform-paths/issue-54253.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/issue-55779.rs b/tests/ui/rust-2018/uniform-paths/issue-55779.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-55779.rs rename to tests/ui/rust-2018/uniform-paths/issue-55779.rs diff --git a/src/test/ui/rust-2018/uniform-paths/issue-56596-2.rs b/tests/ui/rust-2018/uniform-paths/issue-56596-2.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-56596-2.rs rename to tests/ui/rust-2018/uniform-paths/issue-56596-2.rs diff --git a/src/test/ui/rust-2018/uniform-paths/issue-56596.rs b/tests/ui/rust-2018/uniform-paths/issue-56596.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-56596.rs rename to tests/ui/rust-2018/uniform-paths/issue-56596.rs diff --git a/src/test/ui/rust-2018/uniform-paths/issue-56596.stderr b/tests/ui/rust-2018/uniform-paths/issue-56596.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-56596.stderr rename to tests/ui/rust-2018/uniform-paths/issue-56596.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/issue-87932.rs b/tests/ui/rust-2018/uniform-paths/issue-87932.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-87932.rs rename to tests/ui/rust-2018/uniform-paths/issue-87932.rs diff --git a/src/test/ui/rust-2018/uniform-paths/issue-87932.stderr b/tests/ui/rust-2018/uniform-paths/issue-87932.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/issue-87932.stderr rename to tests/ui/rust-2018/uniform-paths/issue-87932.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/macro-rules.rs b/tests/ui/rust-2018/uniform-paths/macro-rules.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/macro-rules.rs rename to tests/ui/rust-2018/uniform-paths/macro-rules.rs diff --git a/src/test/ui/rust-2018/uniform-paths/macro-rules.stderr b/tests/ui/rust-2018/uniform-paths/macro-rules.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/macro-rules.stderr rename to tests/ui/rust-2018/uniform-paths/macro-rules.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/prelude-fail-2.rs b/tests/ui/rust-2018/uniform-paths/prelude-fail-2.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/prelude-fail-2.rs rename to tests/ui/rust-2018/uniform-paths/prelude-fail-2.rs diff --git a/src/test/ui/rust-2018/uniform-paths/prelude-fail-2.stderr b/tests/ui/rust-2018/uniform-paths/prelude-fail-2.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/prelude-fail-2.stderr rename to tests/ui/rust-2018/uniform-paths/prelude-fail-2.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/prelude-fail.rs b/tests/ui/rust-2018/uniform-paths/prelude-fail.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/prelude-fail.rs rename to tests/ui/rust-2018/uniform-paths/prelude-fail.rs diff --git a/src/test/ui/rust-2018/uniform-paths/prelude-fail.stderr b/tests/ui/rust-2018/uniform-paths/prelude-fail.stderr similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/prelude-fail.stderr rename to tests/ui/rust-2018/uniform-paths/prelude-fail.stderr diff --git a/src/test/ui/rust-2018/uniform-paths/prelude.rs b/tests/ui/rust-2018/uniform-paths/prelude.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/prelude.rs rename to tests/ui/rust-2018/uniform-paths/prelude.rs diff --git a/src/test/ui/rust-2018/uniform-paths/redundant.rs b/tests/ui/rust-2018/uniform-paths/redundant.rs similarity index 100% rename from src/test/ui/rust-2018/uniform-paths/redundant.rs rename to tests/ui/rust-2018/uniform-paths/redundant.rs diff --git a/src/test/ui/rust-2018/unresolved-asterisk-imports.rs b/tests/ui/rust-2018/unresolved-asterisk-imports.rs similarity index 100% rename from src/test/ui/rust-2018/unresolved-asterisk-imports.rs rename to tests/ui/rust-2018/unresolved-asterisk-imports.rs diff --git a/src/test/ui/rust-2018/unresolved-asterisk-imports.stderr b/tests/ui/rust-2018/unresolved-asterisk-imports.stderr similarity index 100% rename from src/test/ui/rust-2018/unresolved-asterisk-imports.stderr rename to tests/ui/rust-2018/unresolved-asterisk-imports.stderr diff --git a/src/test/ui/rust-2021/array-into-iter-ambiguous.fixed b/tests/ui/rust-2021/array-into-iter-ambiguous.fixed similarity index 100% rename from src/test/ui/rust-2021/array-into-iter-ambiguous.fixed rename to tests/ui/rust-2021/array-into-iter-ambiguous.fixed diff --git a/src/test/ui/rust-2021/array-into-iter-ambiguous.rs b/tests/ui/rust-2021/array-into-iter-ambiguous.rs similarity index 100% rename from src/test/ui/rust-2021/array-into-iter-ambiguous.rs rename to tests/ui/rust-2021/array-into-iter-ambiguous.rs diff --git a/src/test/ui/rust-2021/array-into-iter-ambiguous.stderr b/tests/ui/rust-2021/array-into-iter-ambiguous.stderr similarity index 100% rename from src/test/ui/rust-2021/array-into-iter-ambiguous.stderr rename to tests/ui/rust-2021/array-into-iter-ambiguous.stderr diff --git a/src/test/ui/rust-2021/auxiliary/reserved-prefixes-macro-2018.rs b/tests/ui/rust-2021/auxiliary/reserved-prefixes-macro-2018.rs similarity index 100% rename from src/test/ui/rust-2021/auxiliary/reserved-prefixes-macro-2018.rs rename to tests/ui/rust-2021/auxiliary/reserved-prefixes-macro-2018.rs diff --git a/src/test/ui/rust-2021/auxiliary/reserved-prefixes-macro-2021.rs b/tests/ui/rust-2021/auxiliary/reserved-prefixes-macro-2021.rs similarity index 100% rename from src/test/ui/rust-2021/auxiliary/reserved-prefixes-macro-2021.rs rename to tests/ui/rust-2021/auxiliary/reserved-prefixes-macro-2021.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-generic-trait.fixed b/tests/ui/rust-2021/future-prelude-collision-generic-trait.fixed similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-generic-trait.fixed rename to tests/ui/rust-2021/future-prelude-collision-generic-trait.fixed diff --git a/src/test/ui/rust-2021/future-prelude-collision-generic-trait.rs b/tests/ui/rust-2021/future-prelude-collision-generic-trait.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-generic-trait.rs rename to tests/ui/rust-2021/future-prelude-collision-generic-trait.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-generic-trait.stderr b/tests/ui/rust-2021/future-prelude-collision-generic-trait.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-generic-trait.stderr rename to tests/ui/rust-2021/future-prelude-collision-generic-trait.stderr diff --git a/src/test/ui/rust-2021/future-prelude-collision-generic.fixed b/tests/ui/rust-2021/future-prelude-collision-generic.fixed similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-generic.fixed rename to tests/ui/rust-2021/future-prelude-collision-generic.fixed diff --git a/src/test/ui/rust-2021/future-prelude-collision-generic.rs b/tests/ui/rust-2021/future-prelude-collision-generic.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-generic.rs rename to tests/ui/rust-2021/future-prelude-collision-generic.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-generic.stderr b/tests/ui/rust-2021/future-prelude-collision-generic.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-generic.stderr rename to tests/ui/rust-2021/future-prelude-collision-generic.stderr diff --git a/src/test/ui/rust-2021/future-prelude-collision-imported.fixed b/tests/ui/rust-2021/future-prelude-collision-imported.fixed similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-imported.fixed rename to tests/ui/rust-2021/future-prelude-collision-imported.fixed diff --git a/src/test/ui/rust-2021/future-prelude-collision-imported.rs b/tests/ui/rust-2021/future-prelude-collision-imported.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-imported.rs rename to tests/ui/rust-2021/future-prelude-collision-imported.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-imported.stderr b/tests/ui/rust-2021/future-prelude-collision-imported.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-imported.stderr rename to tests/ui/rust-2021/future-prelude-collision-imported.stderr diff --git a/src/test/ui/rust-2021/future-prelude-collision-macros.fixed b/tests/ui/rust-2021/future-prelude-collision-macros.fixed similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-macros.fixed rename to tests/ui/rust-2021/future-prelude-collision-macros.fixed diff --git a/src/test/ui/rust-2021/future-prelude-collision-macros.rs b/tests/ui/rust-2021/future-prelude-collision-macros.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-macros.rs rename to tests/ui/rust-2021/future-prelude-collision-macros.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-macros.stderr b/tests/ui/rust-2021/future-prelude-collision-macros.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-macros.stderr rename to tests/ui/rust-2021/future-prelude-collision-macros.stderr diff --git a/src/test/ui/rust-2021/future-prelude-collision-shadow.rs b/tests/ui/rust-2021/future-prelude-collision-shadow.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-shadow.rs rename to tests/ui/rust-2021/future-prelude-collision-shadow.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-shadow.stderr b/tests/ui/rust-2021/future-prelude-collision-shadow.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-shadow.stderr rename to tests/ui/rust-2021/future-prelude-collision-shadow.stderr diff --git a/src/test/ui/rust-2021/future-prelude-collision-turbofish.fixed b/tests/ui/rust-2021/future-prelude-collision-turbofish.fixed similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-turbofish.fixed rename to tests/ui/rust-2021/future-prelude-collision-turbofish.fixed diff --git a/src/test/ui/rust-2021/future-prelude-collision-turbofish.rs b/tests/ui/rust-2021/future-prelude-collision-turbofish.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-turbofish.rs rename to tests/ui/rust-2021/future-prelude-collision-turbofish.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision-turbofish.stderr b/tests/ui/rust-2021/future-prelude-collision-turbofish.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-turbofish.stderr rename to tests/ui/rust-2021/future-prelude-collision-turbofish.stderr diff --git a/src/test/ui/rust-2021/future-prelude-collision-unneeded.rs b/tests/ui/rust-2021/future-prelude-collision-unneeded.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision-unneeded.rs rename to tests/ui/rust-2021/future-prelude-collision-unneeded.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision.fixed b/tests/ui/rust-2021/future-prelude-collision.fixed similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision.fixed rename to tests/ui/rust-2021/future-prelude-collision.fixed diff --git a/src/test/ui/rust-2021/future-prelude-collision.rs b/tests/ui/rust-2021/future-prelude-collision.rs similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision.rs rename to tests/ui/rust-2021/future-prelude-collision.rs diff --git a/src/test/ui/rust-2021/future-prelude-collision.stderr b/tests/ui/rust-2021/future-prelude-collision.stderr similarity index 100% rename from src/test/ui/rust-2021/future-prelude-collision.stderr rename to tests/ui/rust-2021/future-prelude-collision.stderr diff --git a/src/test/ui/rust-2021/generic-type-collision.fixed b/tests/ui/rust-2021/generic-type-collision.fixed similarity index 100% rename from src/test/ui/rust-2021/generic-type-collision.fixed rename to tests/ui/rust-2021/generic-type-collision.fixed diff --git a/src/test/ui/rust-2021/generic-type-collision.rs b/tests/ui/rust-2021/generic-type-collision.rs similarity index 100% rename from src/test/ui/rust-2021/generic-type-collision.rs rename to tests/ui/rust-2021/generic-type-collision.rs diff --git a/src/test/ui/rust-2021/generic-type-collision.stderr b/tests/ui/rust-2021/generic-type-collision.stderr similarity index 100% rename from src/test/ui/rust-2021/generic-type-collision.stderr rename to tests/ui/rust-2021/generic-type-collision.stderr diff --git a/src/test/ui/rust-2021/inherent-dyn-collision.fixed b/tests/ui/rust-2021/inherent-dyn-collision.fixed similarity index 100% rename from src/test/ui/rust-2021/inherent-dyn-collision.fixed rename to tests/ui/rust-2021/inherent-dyn-collision.fixed diff --git a/src/test/ui/rust-2021/inherent-dyn-collision.rs b/tests/ui/rust-2021/inherent-dyn-collision.rs similarity index 100% rename from src/test/ui/rust-2021/inherent-dyn-collision.rs rename to tests/ui/rust-2021/inherent-dyn-collision.rs diff --git a/src/test/ui/rust-2021/inherent-dyn-collision.stderr b/tests/ui/rust-2021/inherent-dyn-collision.stderr similarity index 100% rename from src/test/ui/rust-2021/inherent-dyn-collision.stderr rename to tests/ui/rust-2021/inherent-dyn-collision.stderr diff --git a/src/test/ui/rust-2021/inherent-method-collision.rs b/tests/ui/rust-2021/inherent-method-collision.rs similarity index 100% rename from src/test/ui/rust-2021/inherent-method-collision.rs rename to tests/ui/rust-2021/inherent-method-collision.rs diff --git a/src/test/ui/rust-2021/panic.rs b/tests/ui/rust-2021/panic.rs similarity index 100% rename from src/test/ui/rust-2021/panic.rs rename to tests/ui/rust-2021/panic.rs diff --git a/src/test/ui/rust-2021/panic.stderr b/tests/ui/rust-2021/panic.stderr similarity index 100% rename from src/test/ui/rust-2021/panic.stderr rename to tests/ui/rust-2021/panic.stderr diff --git a/src/test/ui/rust-2021/prelude2021.rs b/tests/ui/rust-2021/prelude2021.rs similarity index 100% rename from src/test/ui/rust-2021/prelude2021.rs rename to tests/ui/rust-2021/prelude2021.rs diff --git a/src/test/ui/rust-2021/reserved-prefixes-migration.fixed b/tests/ui/rust-2021/reserved-prefixes-migration.fixed similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes-migration.fixed rename to tests/ui/rust-2021/reserved-prefixes-migration.fixed diff --git a/src/test/ui/rust-2021/reserved-prefixes-migration.rs b/tests/ui/rust-2021/reserved-prefixes-migration.rs similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes-migration.rs rename to tests/ui/rust-2021/reserved-prefixes-migration.rs diff --git a/src/test/ui/rust-2021/reserved-prefixes-migration.stderr b/tests/ui/rust-2021/reserved-prefixes-migration.stderr similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes-migration.stderr rename to tests/ui/rust-2021/reserved-prefixes-migration.stderr diff --git a/src/test/ui/rust-2021/reserved-prefixes-via-macro-2.rs b/tests/ui/rust-2021/reserved-prefixes-via-macro-2.rs similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes-via-macro-2.rs rename to tests/ui/rust-2021/reserved-prefixes-via-macro-2.rs diff --git a/src/test/ui/rust-2021/reserved-prefixes-via-macro-2.stderr b/tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes-via-macro-2.stderr rename to tests/ui/rust-2021/reserved-prefixes-via-macro-2.stderr diff --git a/src/test/ui/rust-2021/reserved-prefixes-via-macro.rs b/tests/ui/rust-2021/reserved-prefixes-via-macro.rs similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes-via-macro.rs rename to tests/ui/rust-2021/reserved-prefixes-via-macro.rs diff --git a/src/test/ui/rust-2021/reserved-prefixes.rs b/tests/ui/rust-2021/reserved-prefixes.rs similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes.rs rename to tests/ui/rust-2021/reserved-prefixes.rs diff --git a/src/test/ui/rust-2021/reserved-prefixes.stderr b/tests/ui/rust-2021/reserved-prefixes.stderr similarity index 100% rename from src/test/ui/rust-2021/reserved-prefixes.stderr rename to tests/ui/rust-2021/reserved-prefixes.stderr diff --git a/src/test/ui/rustc-error.rs b/tests/ui/rustc-error.rs similarity index 100% rename from src/test/ui/rustc-error.rs rename to tests/ui/rustc-error.rs diff --git a/src/test/ui/rustc-error.stderr b/tests/ui/rustc-error.stderr similarity index 100% rename from src/test/ui/rustc-error.stderr rename to tests/ui/rustc-error.stderr diff --git a/src/test/ui/rustc-rust-log.rs b/tests/ui/rustc-rust-log.rs similarity index 100% rename from src/test/ui/rustc-rust-log.rs rename to tests/ui/rustc-rust-log.rs diff --git a/src/test/ui/rustdoc/README.md b/tests/ui/rustdoc/README.md similarity index 100% rename from src/test/ui/rustdoc/README.md rename to tests/ui/rustdoc/README.md diff --git a/src/test/ui/rustdoc/cfg-rustdoc.rs b/tests/ui/rustdoc/cfg-rustdoc.rs similarity index 100% rename from src/test/ui/rustdoc/cfg-rustdoc.rs rename to tests/ui/rustdoc/cfg-rustdoc.rs diff --git a/src/test/ui/rustdoc/cfg-rustdoc.stderr b/tests/ui/rustdoc/cfg-rustdoc.stderr similarity index 100% rename from src/test/ui/rustdoc/cfg-rustdoc.stderr rename to tests/ui/rustdoc/cfg-rustdoc.stderr diff --git a/src/test/ui/rustdoc/check-doc-alias-attr-location.rs b/tests/ui/rustdoc/check-doc-alias-attr-location.rs similarity index 100% rename from src/test/ui/rustdoc/check-doc-alias-attr-location.rs rename to tests/ui/rustdoc/check-doc-alias-attr-location.rs diff --git a/src/test/ui/rustdoc/check-doc-alias-attr-location.stderr b/tests/ui/rustdoc/check-doc-alias-attr-location.stderr similarity index 100% rename from src/test/ui/rustdoc/check-doc-alias-attr-location.stderr rename to tests/ui/rustdoc/check-doc-alias-attr-location.stderr diff --git a/src/test/ui/rustdoc/check-doc-alias-attr.rs b/tests/ui/rustdoc/check-doc-alias-attr.rs similarity index 100% rename from src/test/ui/rustdoc/check-doc-alias-attr.rs rename to tests/ui/rustdoc/check-doc-alias-attr.rs diff --git a/src/test/ui/rustdoc/check-doc-alias-attr.stderr b/tests/ui/rustdoc/check-doc-alias-attr.stderr similarity index 100% rename from src/test/ui/rustdoc/check-doc-alias-attr.stderr rename to tests/ui/rustdoc/check-doc-alias-attr.stderr diff --git a/src/test/ui/rustdoc/deny-invalid-doc-attrs.rs b/tests/ui/rustdoc/deny-invalid-doc-attrs.rs similarity index 100% rename from src/test/ui/rustdoc/deny-invalid-doc-attrs.rs rename to tests/ui/rustdoc/deny-invalid-doc-attrs.rs diff --git a/src/test/ui/rustdoc/deny-invalid-doc-attrs.stderr b/tests/ui/rustdoc/deny-invalid-doc-attrs.stderr similarity index 100% rename from src/test/ui/rustdoc/deny-invalid-doc-attrs.stderr rename to tests/ui/rustdoc/deny-invalid-doc-attrs.stderr diff --git a/src/test/ui/rustdoc/doc-alias-crate-level.rs b/tests/ui/rustdoc/doc-alias-crate-level.rs similarity index 100% rename from src/test/ui/rustdoc/doc-alias-crate-level.rs rename to tests/ui/rustdoc/doc-alias-crate-level.rs diff --git a/src/test/ui/rustdoc/doc-alias-crate-level.stderr b/tests/ui/rustdoc/doc-alias-crate-level.stderr similarity index 100% rename from src/test/ui/rustdoc/doc-alias-crate-level.stderr rename to tests/ui/rustdoc/doc-alias-crate-level.stderr diff --git a/src/test/ui/rustdoc/doc-alias-same-name.rs b/tests/ui/rustdoc/doc-alias-same-name.rs similarity index 100% rename from src/test/ui/rustdoc/doc-alias-same-name.rs rename to tests/ui/rustdoc/doc-alias-same-name.rs diff --git a/src/test/ui/rustdoc/doc-alias-same-name.stderr b/tests/ui/rustdoc/doc-alias-same-name.stderr similarity index 100% rename from src/test/ui/rustdoc/doc-alias-same-name.stderr rename to tests/ui/rustdoc/doc-alias-same-name.stderr diff --git a/src/test/ui/rustdoc/doc-inline-extern-crate.rs b/tests/ui/rustdoc/doc-inline-extern-crate.rs similarity index 100% rename from src/test/ui/rustdoc/doc-inline-extern-crate.rs rename to tests/ui/rustdoc/doc-inline-extern-crate.rs diff --git a/src/test/ui/rustdoc/doc-inline-extern-crate.stderr b/tests/ui/rustdoc/doc-inline-extern-crate.stderr similarity index 100% rename from src/test/ui/rustdoc/doc-inline-extern-crate.stderr rename to tests/ui/rustdoc/doc-inline-extern-crate.stderr diff --git a/src/test/ui/rustdoc/doc-test-attr-pass.rs b/tests/ui/rustdoc/doc-test-attr-pass.rs similarity index 100% rename from src/test/ui/rustdoc/doc-test-attr-pass.rs rename to tests/ui/rustdoc/doc-test-attr-pass.rs diff --git a/src/test/ui/rustdoc/doc-test-attr.rs b/tests/ui/rustdoc/doc-test-attr.rs similarity index 100% rename from src/test/ui/rustdoc/doc-test-attr.rs rename to tests/ui/rustdoc/doc-test-attr.rs diff --git a/src/test/ui/rustdoc/doc-test-attr.stderr b/tests/ui/rustdoc/doc-test-attr.stderr similarity index 100% rename from src/test/ui/rustdoc/doc-test-attr.stderr rename to tests/ui/rustdoc/doc-test-attr.stderr diff --git a/src/test/ui/rustdoc/doc_keyword.rs b/tests/ui/rustdoc/doc_keyword.rs similarity index 100% rename from src/test/ui/rustdoc/doc_keyword.rs rename to tests/ui/rustdoc/doc_keyword.rs diff --git a/src/test/ui/rustdoc/doc_keyword.stderr b/tests/ui/rustdoc/doc_keyword.stderr similarity index 100% rename from src/test/ui/rustdoc/doc_keyword.stderr rename to tests/ui/rustdoc/doc_keyword.stderr diff --git a/src/test/ui/rustdoc/duplicate_doc_alias.rs b/tests/ui/rustdoc/duplicate_doc_alias.rs similarity index 100% rename from src/test/ui/rustdoc/duplicate_doc_alias.rs rename to tests/ui/rustdoc/duplicate_doc_alias.rs diff --git a/src/test/ui/rustdoc/duplicate_doc_alias.stderr b/tests/ui/rustdoc/duplicate_doc_alias.stderr similarity index 100% rename from src/test/ui/rustdoc/duplicate_doc_alias.stderr rename to tests/ui/rustdoc/duplicate_doc_alias.stderr diff --git a/src/test/ui/rustdoc/feature-gate-doc_primitive.rs b/tests/ui/rustdoc/feature-gate-doc_primitive.rs similarity index 100% rename from src/test/ui/rustdoc/feature-gate-doc_primitive.rs rename to tests/ui/rustdoc/feature-gate-doc_primitive.rs diff --git a/src/test/ui/rustdoc/feature-gate-doc_primitive.stderr b/tests/ui/rustdoc/feature-gate-doc_primitive.stderr similarity index 100% rename from src/test/ui/rustdoc/feature-gate-doc_primitive.stderr rename to tests/ui/rustdoc/feature-gate-doc_primitive.stderr diff --git a/src/test/ui/rustdoc/hidden-doc-associated-item.rs b/tests/ui/rustdoc/hidden-doc-associated-item.rs similarity index 100% rename from src/test/ui/rustdoc/hidden-doc-associated-item.rs rename to tests/ui/rustdoc/hidden-doc-associated-item.rs diff --git a/src/test/ui/rustdoc/renamed-features-rustdoc_internals.rs b/tests/ui/rustdoc/renamed-features-rustdoc_internals.rs similarity index 100% rename from src/test/ui/rustdoc/renamed-features-rustdoc_internals.rs rename to tests/ui/rustdoc/renamed-features-rustdoc_internals.rs diff --git a/src/test/ui/rustdoc/renamed-features-rustdoc_internals.stderr b/tests/ui/rustdoc/renamed-features-rustdoc_internals.stderr similarity index 100% rename from src/test/ui/rustdoc/renamed-features-rustdoc_internals.stderr rename to tests/ui/rustdoc/renamed-features-rustdoc_internals.stderr diff --git a/src/test/ui/rustdoc/unterminated-doc-comment.rs b/tests/ui/rustdoc/unterminated-doc-comment.rs similarity index 100% rename from src/test/ui/rustdoc/unterminated-doc-comment.rs rename to tests/ui/rustdoc/unterminated-doc-comment.rs diff --git a/src/test/ui/rustdoc/unterminated-doc-comment.stderr b/tests/ui/rustdoc/unterminated-doc-comment.stderr similarity index 100% rename from src/test/ui/rustdoc/unterminated-doc-comment.stderr rename to tests/ui/rustdoc/unterminated-doc-comment.stderr diff --git a/src/test/ui/sanitize/address.rs b/tests/ui/sanitize/address.rs similarity index 100% rename from src/test/ui/sanitize/address.rs rename to tests/ui/sanitize/address.rs diff --git a/src/test/ui/sanitize/badfree.rs b/tests/ui/sanitize/badfree.rs similarity index 100% rename from src/test/ui/sanitize/badfree.rs rename to tests/ui/sanitize/badfree.rs diff --git a/src/test/ui/sanitize/cfg.rs b/tests/ui/sanitize/cfg.rs similarity index 100% rename from src/test/ui/sanitize/cfg.rs rename to tests/ui/sanitize/cfg.rs diff --git a/src/test/ui/sanitize/crt-static.rs b/tests/ui/sanitize/crt-static.rs similarity index 100% rename from src/test/ui/sanitize/crt-static.rs rename to tests/ui/sanitize/crt-static.rs diff --git a/src/test/ui/sanitize/crt-static.stderr b/tests/ui/sanitize/crt-static.stderr similarity index 100% rename from src/test/ui/sanitize/crt-static.stderr rename to tests/ui/sanitize/crt-static.stderr diff --git a/src/test/ui/sanitize/hwaddress.rs b/tests/ui/sanitize/hwaddress.rs similarity index 100% rename from src/test/ui/sanitize/hwaddress.rs rename to tests/ui/sanitize/hwaddress.rs diff --git a/src/test/ui/sanitize/incompatible.rs b/tests/ui/sanitize/incompatible.rs similarity index 100% rename from src/test/ui/sanitize/incompatible.rs rename to tests/ui/sanitize/incompatible.rs diff --git a/src/test/ui/sanitize/incompatible.stderr b/tests/ui/sanitize/incompatible.stderr similarity index 100% rename from src/test/ui/sanitize/incompatible.stderr rename to tests/ui/sanitize/incompatible.stderr diff --git a/src/test/ui/sanitize/inline-always.rs b/tests/ui/sanitize/inline-always.rs similarity index 100% rename from src/test/ui/sanitize/inline-always.rs rename to tests/ui/sanitize/inline-always.rs diff --git a/src/test/ui/sanitize/inline-always.stderr b/tests/ui/sanitize/inline-always.stderr similarity index 100% rename from src/test/ui/sanitize/inline-always.stderr rename to tests/ui/sanitize/inline-always.stderr diff --git a/src/test/ui/sanitize/issue-72154-lifetime-markers.rs b/tests/ui/sanitize/issue-72154-lifetime-markers.rs similarity index 100% rename from src/test/ui/sanitize/issue-72154-lifetime-markers.rs rename to tests/ui/sanitize/issue-72154-lifetime-markers.rs diff --git a/src/test/ui/sanitize/leak.rs b/tests/ui/sanitize/leak.rs similarity index 100% rename from src/test/ui/sanitize/leak.rs rename to tests/ui/sanitize/leak.rs diff --git a/src/test/ui/sanitize/memory-eager.rs b/tests/ui/sanitize/memory-eager.rs similarity index 100% rename from src/test/ui/sanitize/memory-eager.rs rename to tests/ui/sanitize/memory-eager.rs diff --git a/src/test/ui/sanitize/memory-passing.rs b/tests/ui/sanitize/memory-passing.rs similarity index 100% rename from src/test/ui/sanitize/memory-passing.rs rename to tests/ui/sanitize/memory-passing.rs diff --git a/src/test/ui/sanitize/memory.rs b/tests/ui/sanitize/memory.rs similarity index 100% rename from src/test/ui/sanitize/memory.rs rename to tests/ui/sanitize/memory.rs diff --git a/src/test/ui/sanitize/new-llvm-pass-manager-thin-lto.rs b/tests/ui/sanitize/new-llvm-pass-manager-thin-lto.rs similarity index 100% rename from src/test/ui/sanitize/new-llvm-pass-manager-thin-lto.rs rename to tests/ui/sanitize/new-llvm-pass-manager-thin-lto.rs diff --git a/src/test/ui/sanitize/thread.rs b/tests/ui/sanitize/thread.rs similarity index 100% rename from src/test/ui/sanitize/thread.rs rename to tests/ui/sanitize/thread.rs diff --git a/src/test/ui/sanitize/unsupported-target.rs b/tests/ui/sanitize/unsupported-target.rs similarity index 100% rename from src/test/ui/sanitize/unsupported-target.rs rename to tests/ui/sanitize/unsupported-target.rs diff --git a/src/test/ui/sanitize/unsupported-target.stderr b/tests/ui/sanitize/unsupported-target.stderr similarity index 100% rename from src/test/ui/sanitize/unsupported-target.stderr rename to tests/ui/sanitize/unsupported-target.stderr diff --git a/src/test/ui/sanitize/use-after-scope.rs b/tests/ui/sanitize/use-after-scope.rs similarity index 100% rename from src/test/ui/sanitize/use-after-scope.rs rename to tests/ui/sanitize/use-after-scope.rs diff --git a/src/test/ui/save-analysis/emit-notifications.polonius.stderr b/tests/ui/save-analysis/emit-notifications.polonius.stderr similarity index 100% rename from src/test/ui/save-analysis/emit-notifications.polonius.stderr rename to tests/ui/save-analysis/emit-notifications.polonius.stderr diff --git a/src/test/ui/save-analysis/emit-notifications.rs b/tests/ui/save-analysis/emit-notifications.rs similarity index 100% rename from src/test/ui/save-analysis/emit-notifications.rs rename to tests/ui/save-analysis/emit-notifications.rs diff --git a/src/test/ui/save-analysis/emit-notifications.stderr b/tests/ui/save-analysis/emit-notifications.stderr similarity index 100% rename from src/test/ui/save-analysis/emit-notifications.stderr rename to tests/ui/save-analysis/emit-notifications.stderr diff --git a/src/test/ui/save-analysis/issue-26459.rs b/tests/ui/save-analysis/issue-26459.rs similarity index 100% rename from src/test/ui/save-analysis/issue-26459.rs rename to tests/ui/save-analysis/issue-26459.rs diff --git a/src/test/ui/save-analysis/issue-26459.stderr b/tests/ui/save-analysis/issue-26459.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-26459.stderr rename to tests/ui/save-analysis/issue-26459.stderr diff --git a/src/test/ui/save-analysis/issue-37323.rs b/tests/ui/save-analysis/issue-37323.rs similarity index 100% rename from src/test/ui/save-analysis/issue-37323.rs rename to tests/ui/save-analysis/issue-37323.rs diff --git a/src/test/ui/save-analysis/issue-59134-0.rs b/tests/ui/save-analysis/issue-59134-0.rs similarity index 100% rename from src/test/ui/save-analysis/issue-59134-0.rs rename to tests/ui/save-analysis/issue-59134-0.rs diff --git a/src/test/ui/save-analysis/issue-59134-0.stderr b/tests/ui/save-analysis/issue-59134-0.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-59134-0.stderr rename to tests/ui/save-analysis/issue-59134-0.stderr diff --git a/src/test/ui/save-analysis/issue-59134-1.rs b/tests/ui/save-analysis/issue-59134-1.rs similarity index 100% rename from src/test/ui/save-analysis/issue-59134-1.rs rename to tests/ui/save-analysis/issue-59134-1.rs diff --git a/src/test/ui/save-analysis/issue-59134-1.stderr b/tests/ui/save-analysis/issue-59134-1.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-59134-1.stderr rename to tests/ui/save-analysis/issue-59134-1.stderr diff --git a/src/test/ui/save-analysis/issue-63663.rs b/tests/ui/save-analysis/issue-63663.rs similarity index 100% rename from src/test/ui/save-analysis/issue-63663.rs rename to tests/ui/save-analysis/issue-63663.rs diff --git a/src/test/ui/save-analysis/issue-64659.rs b/tests/ui/save-analysis/issue-64659.rs similarity index 100% rename from src/test/ui/save-analysis/issue-64659.rs rename to tests/ui/save-analysis/issue-64659.rs diff --git a/src/test/ui/save-analysis/issue-65411.rs b/tests/ui/save-analysis/issue-65411.rs similarity index 100% rename from src/test/ui/save-analysis/issue-65411.rs rename to tests/ui/save-analysis/issue-65411.rs diff --git a/src/test/ui/save-analysis/issue-65590.rs b/tests/ui/save-analysis/issue-65590.rs similarity index 100% rename from src/test/ui/save-analysis/issue-65590.rs rename to tests/ui/save-analysis/issue-65590.rs diff --git a/src/test/ui/save-analysis/issue-68621.rs b/tests/ui/save-analysis/issue-68621.rs similarity index 100% rename from src/test/ui/save-analysis/issue-68621.rs rename to tests/ui/save-analysis/issue-68621.rs diff --git a/src/test/ui/save-analysis/issue-68621.stderr b/tests/ui/save-analysis/issue-68621.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-68621.stderr rename to tests/ui/save-analysis/issue-68621.stderr diff --git a/src/test/ui/save-analysis/issue-72267.rs b/tests/ui/save-analysis/issue-72267.rs similarity index 100% rename from src/test/ui/save-analysis/issue-72267.rs rename to tests/ui/save-analysis/issue-72267.rs diff --git a/src/test/ui/save-analysis/issue-72267.stderr b/tests/ui/save-analysis/issue-72267.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-72267.stderr rename to tests/ui/save-analysis/issue-72267.stderr diff --git a/src/test/ui/save-analysis/issue-73020.rs b/tests/ui/save-analysis/issue-73020.rs similarity index 100% rename from src/test/ui/save-analysis/issue-73020.rs rename to tests/ui/save-analysis/issue-73020.rs diff --git a/src/test/ui/save-analysis/issue-73020.stderr b/tests/ui/save-analysis/issue-73020.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-73020.stderr rename to tests/ui/save-analysis/issue-73020.stderr diff --git a/src/test/ui/save-analysis/issue-73022.rs b/tests/ui/save-analysis/issue-73022.rs similarity index 100% rename from src/test/ui/save-analysis/issue-73022.rs rename to tests/ui/save-analysis/issue-73022.rs diff --git a/src/test/ui/save-analysis/issue-89066.rs b/tests/ui/save-analysis/issue-89066.rs similarity index 87% rename from src/test/ui/save-analysis/issue-89066.rs rename to tests/ui/save-analysis/issue-89066.rs index 2873f5237d4a1..c65e2d73fadec 100644 --- a/src/test/ui/save-analysis/issue-89066.rs +++ b/tests/ui/save-analysis/issue-89066.rs @@ -1,7 +1,7 @@ // compile-flags: -Zsave-analysis // Check that this does not ICE. -// Stolen from src/test/ui/const-generics/generic_arg_infer/infer-arg-test.rs +// Stolen from tests/ui/const-generics/generic_arg_infer/infer-arg-test.rs #![feature(generic_arg_infer)] diff --git a/src/test/ui/save-analysis/issue-89066.stderr b/tests/ui/save-analysis/issue-89066.stderr similarity index 100% rename from src/test/ui/save-analysis/issue-89066.stderr rename to tests/ui/save-analysis/issue-89066.stderr diff --git a/src/test/ui/self/arbitrary-self-types-not-object-safe.curr.stderr b/tests/ui/self/arbitrary-self-types-not-object-safe.curr.stderr similarity index 100% rename from src/test/ui/self/arbitrary-self-types-not-object-safe.curr.stderr rename to tests/ui/self/arbitrary-self-types-not-object-safe.curr.stderr diff --git a/src/test/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr b/tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr similarity index 100% rename from src/test/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr rename to tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr diff --git a/src/test/ui/self/arbitrary-self-types-not-object-safe.rs b/tests/ui/self/arbitrary-self-types-not-object-safe.rs similarity index 100% rename from src/test/ui/self/arbitrary-self-types-not-object-safe.rs rename to tests/ui/self/arbitrary-self-types-not-object-safe.rs diff --git a/src/test/ui/self/arbitrary_self_types_nested.rs b/tests/ui/self/arbitrary_self_types_nested.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_nested.rs rename to tests/ui/self/arbitrary_self_types_nested.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime-async.rs b/tests/ui/self/arbitrary_self_types_pin_lifetime-async.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime-async.rs rename to tests/ui/self/arbitrary_self_types_pin_lifetime-async.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime.rs b/tests/ui/self/arbitrary_self_types_pin_lifetime.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime.rs rename to tests/ui/self/arbitrary_self_types_pin_lifetime.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.rs b/tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.rs rename to tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr b/tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr rename to tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait-async.stderr diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.rs b/tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.rs rename to tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.stderr b/tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.stderr similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.stderr rename to tests/ui/self/arbitrary_self_types_pin_lifetime_impl_trait.stderr diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.rs b/tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.rs rename to tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr b/tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr rename to tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch-async.stderr diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.rs b/tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.rs rename to tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch.rs diff --git a/src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr b/tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr rename to tests/ui/self/arbitrary_self_types_pin_lifetime_mismatch.stderr diff --git a/src/test/ui/self/arbitrary_self_types_pointers_and_wrappers.rs b/tests/ui/self/arbitrary_self_types_pointers_and_wrappers.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_pointers_and_wrappers.rs rename to tests/ui/self/arbitrary_self_types_pointers_and_wrappers.rs diff --git a/src/test/ui/self/arbitrary_self_types_raw_pointer_struct.rs b/tests/ui/self/arbitrary_self_types_raw_pointer_struct.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_raw_pointer_struct.rs rename to tests/ui/self/arbitrary_self_types_raw_pointer_struct.rs diff --git a/src/test/ui/self/arbitrary_self_types_raw_pointer_trait.rs b/tests/ui/self/arbitrary_self_types_raw_pointer_trait.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_raw_pointer_trait.rs rename to tests/ui/self/arbitrary_self_types_raw_pointer_trait.rs diff --git a/src/test/ui/self/arbitrary_self_types_silly.rs b/tests/ui/self/arbitrary_self_types_silly.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_silly.rs rename to tests/ui/self/arbitrary_self_types_silly.rs diff --git a/src/test/ui/self/arbitrary_self_types_stdlib_pointers.rs b/tests/ui/self/arbitrary_self_types_stdlib_pointers.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_stdlib_pointers.rs rename to tests/ui/self/arbitrary_self_types_stdlib_pointers.rs diff --git a/src/test/ui/self/arbitrary_self_types_struct.rs b/tests/ui/self/arbitrary_self_types_struct.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_struct.rs rename to tests/ui/self/arbitrary_self_types_struct.rs diff --git a/src/test/ui/self/arbitrary_self_types_trait.rs b/tests/ui/self/arbitrary_self_types_trait.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_trait.rs rename to tests/ui/self/arbitrary_self_types_trait.rs diff --git a/src/test/ui/self/arbitrary_self_types_unsized_struct.rs b/tests/ui/self/arbitrary_self_types_unsized_struct.rs similarity index 100% rename from src/test/ui/self/arbitrary_self_types_unsized_struct.rs rename to tests/ui/self/arbitrary_self_types_unsized_struct.rs diff --git a/src/test/ui/self/auxiliary/explicit_self_xcrate.rs b/tests/ui/self/auxiliary/explicit_self_xcrate.rs similarity index 100% rename from src/test/ui/self/auxiliary/explicit_self_xcrate.rs rename to tests/ui/self/auxiliary/explicit_self_xcrate.rs diff --git a/src/test/ui/self/builtin-superkinds-self-type.rs b/tests/ui/self/builtin-superkinds-self-type.rs similarity index 100% rename from src/test/ui/self/builtin-superkinds-self-type.rs rename to tests/ui/self/builtin-superkinds-self-type.rs diff --git a/src/test/ui/self/by-value-self-in-mut-slot.rs b/tests/ui/self/by-value-self-in-mut-slot.rs similarity index 100% rename from src/test/ui/self/by-value-self-in-mut-slot.rs rename to tests/ui/self/by-value-self-in-mut-slot.rs diff --git a/src/test/ui/self/class-missing-self.rs b/tests/ui/self/class-missing-self.rs similarity index 100% rename from src/test/ui/self/class-missing-self.rs rename to tests/ui/self/class-missing-self.rs diff --git a/src/test/ui/self/class-missing-self.stderr b/tests/ui/self/class-missing-self.stderr similarity index 100% rename from src/test/ui/self/class-missing-self.stderr rename to tests/ui/self/class-missing-self.stderr diff --git a/src/test/ui/self/elision/README.md b/tests/ui/self/elision/README.md similarity index 100% rename from src/test/ui/self/elision/README.md rename to tests/ui/self/elision/README.md diff --git a/src/test/ui/self/elision/alias-async.rs b/tests/ui/self/elision/alias-async.rs similarity index 100% rename from src/test/ui/self/elision/alias-async.rs rename to tests/ui/self/elision/alias-async.rs diff --git a/src/test/ui/self/elision/alias.rs b/tests/ui/self/elision/alias.rs similarity index 100% rename from src/test/ui/self/elision/alias.rs rename to tests/ui/self/elision/alias.rs diff --git a/src/test/ui/self/elision/assoc-async.rs b/tests/ui/self/elision/assoc-async.rs similarity index 100% rename from src/test/ui/self/elision/assoc-async.rs rename to tests/ui/self/elision/assoc-async.rs diff --git a/src/test/ui/self/elision/assoc.rs b/tests/ui/self/elision/assoc.rs similarity index 100% rename from src/test/ui/self/elision/assoc.rs rename to tests/ui/self/elision/assoc.rs diff --git a/src/test/ui/self/elision/lt-alias-async.rs b/tests/ui/self/elision/lt-alias-async.rs similarity index 100% rename from src/test/ui/self/elision/lt-alias-async.rs rename to tests/ui/self/elision/lt-alias-async.rs diff --git a/src/test/ui/self/elision/lt-alias.rs b/tests/ui/self/elision/lt-alias.rs similarity index 100% rename from src/test/ui/self/elision/lt-alias.rs rename to tests/ui/self/elision/lt-alias.rs diff --git a/src/test/ui/self/elision/lt-assoc-async.rs b/tests/ui/self/elision/lt-assoc-async.rs similarity index 100% rename from src/test/ui/self/elision/lt-assoc-async.rs rename to tests/ui/self/elision/lt-assoc-async.rs diff --git a/src/test/ui/self/elision/lt-assoc.rs b/tests/ui/self/elision/lt-assoc.rs similarity index 100% rename from src/test/ui/self/elision/lt-assoc.rs rename to tests/ui/self/elision/lt-assoc.rs diff --git a/src/test/ui/self/elision/lt-ref-self-async.rs b/tests/ui/self/elision/lt-ref-self-async.rs similarity index 100% rename from src/test/ui/self/elision/lt-ref-self-async.rs rename to tests/ui/self/elision/lt-ref-self-async.rs diff --git a/src/test/ui/self/elision/lt-ref-self-async.stderr b/tests/ui/self/elision/lt-ref-self-async.stderr similarity index 100% rename from src/test/ui/self/elision/lt-ref-self-async.stderr rename to tests/ui/self/elision/lt-ref-self-async.stderr diff --git a/src/test/ui/self/elision/lt-ref-self.rs b/tests/ui/self/elision/lt-ref-self.rs similarity index 100% rename from src/test/ui/self/elision/lt-ref-self.rs rename to tests/ui/self/elision/lt-ref-self.rs diff --git a/src/test/ui/self/elision/lt-ref-self.stderr b/tests/ui/self/elision/lt-ref-self.stderr similarity index 100% rename from src/test/ui/self/elision/lt-ref-self.stderr rename to tests/ui/self/elision/lt-ref-self.stderr diff --git a/src/test/ui/self/elision/lt-self-async.rs b/tests/ui/self/elision/lt-self-async.rs similarity index 100% rename from src/test/ui/self/elision/lt-self-async.rs rename to tests/ui/self/elision/lt-self-async.rs diff --git a/src/test/ui/self/elision/lt-self.rs b/tests/ui/self/elision/lt-self.rs similarity index 100% rename from src/test/ui/self/elision/lt-self.rs rename to tests/ui/self/elision/lt-self.rs diff --git a/src/test/ui/self/elision/lt-struct-async.rs b/tests/ui/self/elision/lt-struct-async.rs similarity index 100% rename from src/test/ui/self/elision/lt-struct-async.rs rename to tests/ui/self/elision/lt-struct-async.rs diff --git a/src/test/ui/self/elision/lt-struct.rs b/tests/ui/self/elision/lt-struct.rs similarity index 100% rename from src/test/ui/self/elision/lt-struct.rs rename to tests/ui/self/elision/lt-struct.rs diff --git a/src/test/ui/self/elision/multiple-ref-self-async.rs b/tests/ui/self/elision/multiple-ref-self-async.rs similarity index 100% rename from src/test/ui/self/elision/multiple-ref-self-async.rs rename to tests/ui/self/elision/multiple-ref-self-async.rs diff --git a/src/test/ui/self/elision/multiple-ref-self.rs b/tests/ui/self/elision/multiple-ref-self.rs similarity index 100% rename from src/test/ui/self/elision/multiple-ref-self.rs rename to tests/ui/self/elision/multiple-ref-self.rs diff --git a/src/test/ui/self/elision/ref-alias-async.rs b/tests/ui/self/elision/ref-alias-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-alias-async.rs rename to tests/ui/self/elision/ref-alias-async.rs diff --git a/src/test/ui/self/elision/ref-alias.rs b/tests/ui/self/elision/ref-alias.rs similarity index 100% rename from src/test/ui/self/elision/ref-alias.rs rename to tests/ui/self/elision/ref-alias.rs diff --git a/src/test/ui/self/elision/ref-assoc-async.rs b/tests/ui/self/elision/ref-assoc-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-assoc-async.rs rename to tests/ui/self/elision/ref-assoc-async.rs diff --git a/src/test/ui/self/elision/ref-assoc.rs b/tests/ui/self/elision/ref-assoc.rs similarity index 100% rename from src/test/ui/self/elision/ref-assoc.rs rename to tests/ui/self/elision/ref-assoc.rs diff --git a/src/test/ui/self/elision/ref-mut-alias-async.rs b/tests/ui/self/elision/ref-mut-alias-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-mut-alias-async.rs rename to tests/ui/self/elision/ref-mut-alias-async.rs diff --git a/src/test/ui/self/elision/ref-mut-alias.rs b/tests/ui/self/elision/ref-mut-alias.rs similarity index 100% rename from src/test/ui/self/elision/ref-mut-alias.rs rename to tests/ui/self/elision/ref-mut-alias.rs diff --git a/src/test/ui/self/elision/ref-mut-self-async.rs b/tests/ui/self/elision/ref-mut-self-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-mut-self-async.rs rename to tests/ui/self/elision/ref-mut-self-async.rs diff --git a/src/test/ui/self/elision/ref-mut-self-async.stderr b/tests/ui/self/elision/ref-mut-self-async.stderr similarity index 100% rename from src/test/ui/self/elision/ref-mut-self-async.stderr rename to tests/ui/self/elision/ref-mut-self-async.stderr diff --git a/src/test/ui/self/elision/ref-mut-self.rs b/tests/ui/self/elision/ref-mut-self.rs similarity index 100% rename from src/test/ui/self/elision/ref-mut-self.rs rename to tests/ui/self/elision/ref-mut-self.rs diff --git a/src/test/ui/self/elision/ref-mut-self.stderr b/tests/ui/self/elision/ref-mut-self.stderr similarity index 100% rename from src/test/ui/self/elision/ref-mut-self.stderr rename to tests/ui/self/elision/ref-mut-self.stderr diff --git a/src/test/ui/self/elision/ref-mut-struct-async.rs b/tests/ui/self/elision/ref-mut-struct-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-mut-struct-async.rs rename to tests/ui/self/elision/ref-mut-struct-async.rs diff --git a/src/test/ui/self/elision/ref-mut-struct-async.stderr b/tests/ui/self/elision/ref-mut-struct-async.stderr similarity index 100% rename from src/test/ui/self/elision/ref-mut-struct-async.stderr rename to tests/ui/self/elision/ref-mut-struct-async.stderr diff --git a/src/test/ui/self/elision/ref-mut-struct.rs b/tests/ui/self/elision/ref-mut-struct.rs similarity index 100% rename from src/test/ui/self/elision/ref-mut-struct.rs rename to tests/ui/self/elision/ref-mut-struct.rs diff --git a/src/test/ui/self/elision/ref-mut-struct.stderr b/tests/ui/self/elision/ref-mut-struct.stderr similarity index 100% rename from src/test/ui/self/elision/ref-mut-struct.stderr rename to tests/ui/self/elision/ref-mut-struct.stderr diff --git a/src/test/ui/self/elision/ref-self-async.rs b/tests/ui/self/elision/ref-self-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-self-async.rs rename to tests/ui/self/elision/ref-self-async.rs diff --git a/src/test/ui/self/elision/ref-self-async.stderr b/tests/ui/self/elision/ref-self-async.stderr similarity index 100% rename from src/test/ui/self/elision/ref-self-async.stderr rename to tests/ui/self/elision/ref-self-async.stderr diff --git a/src/test/ui/self/elision/ref-self.rs b/tests/ui/self/elision/ref-self.rs similarity index 100% rename from src/test/ui/self/elision/ref-self.rs rename to tests/ui/self/elision/ref-self.rs diff --git a/src/test/ui/self/elision/ref-self.stderr b/tests/ui/self/elision/ref-self.stderr similarity index 100% rename from src/test/ui/self/elision/ref-self.stderr rename to tests/ui/self/elision/ref-self.stderr diff --git a/src/test/ui/self/elision/ref-struct-async.rs b/tests/ui/self/elision/ref-struct-async.rs similarity index 100% rename from src/test/ui/self/elision/ref-struct-async.rs rename to tests/ui/self/elision/ref-struct-async.rs diff --git a/src/test/ui/self/elision/ref-struct-async.stderr b/tests/ui/self/elision/ref-struct-async.stderr similarity index 100% rename from src/test/ui/self/elision/ref-struct-async.stderr rename to tests/ui/self/elision/ref-struct-async.stderr diff --git a/src/test/ui/self/elision/ref-struct.rs b/tests/ui/self/elision/ref-struct.rs similarity index 100% rename from src/test/ui/self/elision/ref-struct.rs rename to tests/ui/self/elision/ref-struct.rs diff --git a/src/test/ui/self/elision/ref-struct.stderr b/tests/ui/self/elision/ref-struct.stderr similarity index 100% rename from src/test/ui/self/elision/ref-struct.stderr rename to tests/ui/self/elision/ref-struct.stderr diff --git a/src/test/ui/self/elision/self-async.rs b/tests/ui/self/elision/self-async.rs similarity index 100% rename from src/test/ui/self/elision/self-async.rs rename to tests/ui/self/elision/self-async.rs diff --git a/src/test/ui/self/elision/self.rs b/tests/ui/self/elision/self.rs similarity index 100% rename from src/test/ui/self/elision/self.rs rename to tests/ui/self/elision/self.rs diff --git a/src/test/ui/self/elision/struct-async.rs b/tests/ui/self/elision/struct-async.rs similarity index 100% rename from src/test/ui/self/elision/struct-async.rs rename to tests/ui/self/elision/struct-async.rs diff --git a/src/test/ui/self/elision/struct.rs b/tests/ui/self/elision/struct.rs similarity index 100% rename from src/test/ui/self/elision/struct.rs rename to tests/ui/self/elision/struct.rs diff --git a/src/test/ui/self/explicit-self-closures.rs b/tests/ui/self/explicit-self-closures.rs similarity index 100% rename from src/test/ui/self/explicit-self-closures.rs rename to tests/ui/self/explicit-self-closures.rs diff --git a/src/test/ui/self/explicit-self-generic.rs b/tests/ui/self/explicit-self-generic.rs similarity index 100% rename from src/test/ui/self/explicit-self-generic.rs rename to tests/ui/self/explicit-self-generic.rs diff --git a/src/test/ui/self/explicit-self-objects-uniq.rs b/tests/ui/self/explicit-self-objects-uniq.rs similarity index 100% rename from src/test/ui/self/explicit-self-objects-uniq.rs rename to tests/ui/self/explicit-self-objects-uniq.rs diff --git a/src/test/ui/self/explicit-self.rs b/tests/ui/self/explicit-self.rs similarity index 100% rename from src/test/ui/self/explicit-self.rs rename to tests/ui/self/explicit-self.rs diff --git a/src/test/ui/self/explicit_self_xcrate_exe.rs b/tests/ui/self/explicit_self_xcrate_exe.rs similarity index 100% rename from src/test/ui/self/explicit_self_xcrate_exe.rs rename to tests/ui/self/explicit_self_xcrate_exe.rs diff --git a/src/test/ui/self/issue-61882-2.rs b/tests/ui/self/issue-61882-2.rs similarity index 100% rename from src/test/ui/self/issue-61882-2.rs rename to tests/ui/self/issue-61882-2.rs diff --git a/src/test/ui/self/issue-61882-2.stderr b/tests/ui/self/issue-61882-2.stderr similarity index 100% rename from src/test/ui/self/issue-61882-2.stderr rename to tests/ui/self/issue-61882-2.stderr diff --git a/src/test/ui/self/issue-61882.rs b/tests/ui/self/issue-61882.rs similarity index 100% rename from src/test/ui/self/issue-61882.rs rename to tests/ui/self/issue-61882.rs diff --git a/src/test/ui/self/issue-61882.stderr b/tests/ui/self/issue-61882.stderr similarity index 100% rename from src/test/ui/self/issue-61882.stderr rename to tests/ui/self/issue-61882.stderr diff --git a/src/test/ui/self/move-self.rs b/tests/ui/self/move-self.rs similarity index 100% rename from src/test/ui/self/move-self.rs rename to tests/ui/self/move-self.rs diff --git a/src/test/ui/self/object-safety-sized-self-by-value-self.rs b/tests/ui/self/object-safety-sized-self-by-value-self.rs similarity index 100% rename from src/test/ui/self/object-safety-sized-self-by-value-self.rs rename to tests/ui/self/object-safety-sized-self-by-value-self.rs diff --git a/src/test/ui/self/object-safety-sized-self-generic-method.rs b/tests/ui/self/object-safety-sized-self-generic-method.rs similarity index 100% rename from src/test/ui/self/object-safety-sized-self-generic-method.rs rename to tests/ui/self/object-safety-sized-self-generic-method.rs diff --git a/src/test/ui/self/object-safety-sized-self-return-Self.rs b/tests/ui/self/object-safety-sized-self-return-Self.rs similarity index 100% rename from src/test/ui/self/object-safety-sized-self-return-Self.rs rename to tests/ui/self/object-safety-sized-self-return-Self.rs diff --git a/src/test/ui/self/objects-owned-object-owned-method.rs b/tests/ui/self/objects-owned-object-owned-method.rs similarity index 100% rename from src/test/ui/self/objects-owned-object-owned-method.rs rename to tests/ui/self/objects-owned-object-owned-method.rs diff --git a/src/test/ui/self/point-at-arbitrary-self-type-method.rs b/tests/ui/self/point-at-arbitrary-self-type-method.rs similarity index 100% rename from src/test/ui/self/point-at-arbitrary-self-type-method.rs rename to tests/ui/self/point-at-arbitrary-self-type-method.rs diff --git a/src/test/ui/self/point-at-arbitrary-self-type-method.stderr b/tests/ui/self/point-at-arbitrary-self-type-method.stderr similarity index 100% rename from src/test/ui/self/point-at-arbitrary-self-type-method.stderr rename to tests/ui/self/point-at-arbitrary-self-type-method.stderr diff --git a/src/test/ui/self/point-at-arbitrary-self-type-trait-method.rs b/tests/ui/self/point-at-arbitrary-self-type-trait-method.rs similarity index 100% rename from src/test/ui/self/point-at-arbitrary-self-type-trait-method.rs rename to tests/ui/self/point-at-arbitrary-self-type-trait-method.rs diff --git a/src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr b/tests/ui/self/point-at-arbitrary-self-type-trait-method.stderr similarity index 100% rename from src/test/ui/self/point-at-arbitrary-self-type-trait-method.stderr rename to tests/ui/self/point-at-arbitrary-self-type-trait-method.stderr diff --git a/src/test/ui/self/self-impl-2.rs b/tests/ui/self/self-impl-2.rs similarity index 100% rename from src/test/ui/self/self-impl-2.rs rename to tests/ui/self/self-impl-2.rs diff --git a/src/test/ui/self/self-impl.rs b/tests/ui/self/self-impl.rs similarity index 100% rename from src/test/ui/self/self-impl.rs rename to tests/ui/self/self-impl.rs diff --git a/src/test/ui/self/self-impl.stderr b/tests/ui/self/self-impl.stderr similarity index 100% rename from src/test/ui/self/self-impl.stderr rename to tests/ui/self/self-impl.stderr diff --git a/src/test/ui/self/self-in-mut-slot-default-method.rs b/tests/ui/self/self-in-mut-slot-default-method.rs similarity index 100% rename from src/test/ui/self/self-in-mut-slot-default-method.rs rename to tests/ui/self/self-in-mut-slot-default-method.rs diff --git a/src/test/ui/self/self-in-mut-slot-immediate-value.rs b/tests/ui/self/self-in-mut-slot-immediate-value.rs similarity index 100% rename from src/test/ui/self/self-in-mut-slot-immediate-value.rs rename to tests/ui/self/self-in-mut-slot-immediate-value.rs diff --git a/src/test/ui/self/self-in-typedefs.rs b/tests/ui/self/self-in-typedefs.rs similarity index 100% rename from src/test/ui/self/self-in-typedefs.rs rename to tests/ui/self/self-in-typedefs.rs diff --git a/src/test/ui/self/self-infer.rs b/tests/ui/self/self-infer.rs similarity index 100% rename from src/test/ui/self/self-infer.rs rename to tests/ui/self/self-infer.rs diff --git a/src/test/ui/self/self-infer.stderr b/tests/ui/self/self-infer.stderr similarity index 100% rename from src/test/ui/self/self-infer.stderr rename to tests/ui/self/self-infer.stderr diff --git a/src/test/ui/self/self-re-assign.rs b/tests/ui/self/self-re-assign.rs similarity index 100% rename from src/test/ui/self/self-re-assign.rs rename to tests/ui/self/self-re-assign.rs diff --git a/src/test/ui/self/self-shadowing-import.rs b/tests/ui/self/self-shadowing-import.rs similarity index 100% rename from src/test/ui/self/self-shadowing-import.rs rename to tests/ui/self/self-shadowing-import.rs diff --git a/src/test/ui/self/self-type-param.rs b/tests/ui/self/self-type-param.rs similarity index 100% rename from src/test/ui/self/self-type-param.rs rename to tests/ui/self/self-type-param.rs diff --git a/src/test/ui/self/self-vs-path-ambiguity.rs b/tests/ui/self/self-vs-path-ambiguity.rs similarity index 100% rename from src/test/ui/self/self-vs-path-ambiguity.rs rename to tests/ui/self/self-vs-path-ambiguity.rs diff --git a/src/test/ui/self/self-vs-path-ambiguity.stderr b/tests/ui/self/self-vs-path-ambiguity.stderr similarity index 100% rename from src/test/ui/self/self-vs-path-ambiguity.stderr rename to tests/ui/self/self-vs-path-ambiguity.stderr diff --git a/src/test/ui/self/self_lifetime-async.rs b/tests/ui/self/self_lifetime-async.rs similarity index 100% rename from src/test/ui/self/self_lifetime-async.rs rename to tests/ui/self/self_lifetime-async.rs diff --git a/src/test/ui/self/self_lifetime.rs b/tests/ui/self/self_lifetime.rs similarity index 100% rename from src/test/ui/self/self_lifetime.rs rename to tests/ui/self/self_lifetime.rs diff --git a/src/test/ui/self/self_type_keyword-2.rs b/tests/ui/self/self_type_keyword-2.rs similarity index 100% rename from src/test/ui/self/self_type_keyword-2.rs rename to tests/ui/self/self_type_keyword-2.rs diff --git a/src/test/ui/self/self_type_keyword-2.stderr b/tests/ui/self/self_type_keyword-2.stderr similarity index 100% rename from src/test/ui/self/self_type_keyword-2.stderr rename to tests/ui/self/self_type_keyword-2.stderr diff --git a/src/test/ui/self/self_type_keyword.rs b/tests/ui/self/self_type_keyword.rs similarity index 100% rename from src/test/ui/self/self_type_keyword.rs rename to tests/ui/self/self_type_keyword.rs diff --git a/src/test/ui/self/self_type_keyword.stderr b/tests/ui/self/self_type_keyword.stderr similarity index 100% rename from src/test/ui/self/self_type_keyword.stderr rename to tests/ui/self/self_type_keyword.stderr diff --git a/src/test/ui/self/string-self-append.rs b/tests/ui/self/string-self-append.rs similarity index 100% rename from src/test/ui/self/string-self-append.rs rename to tests/ui/self/string-self-append.rs diff --git a/src/test/ui/self/suggest-self-2.rs b/tests/ui/self/suggest-self-2.rs similarity index 100% rename from src/test/ui/self/suggest-self-2.rs rename to tests/ui/self/suggest-self-2.rs diff --git a/src/test/ui/self/suggest-self-2.stderr b/tests/ui/self/suggest-self-2.stderr similarity index 100% rename from src/test/ui/self/suggest-self-2.stderr rename to tests/ui/self/suggest-self-2.stderr diff --git a/src/test/ui/self/suggest-self.rs b/tests/ui/self/suggest-self.rs similarity index 100% rename from src/test/ui/self/suggest-self.rs rename to tests/ui/self/suggest-self.rs diff --git a/src/test/ui/self/suggest-self.stderr b/tests/ui/self/suggest-self.stderr similarity index 100% rename from src/test/ui/self/suggest-self.stderr rename to tests/ui/self/suggest-self.stderr diff --git a/src/test/ui/self/ufcs-explicit-self.rs b/tests/ui/self/ufcs-explicit-self.rs similarity index 100% rename from src/test/ui/self/ufcs-explicit-self.rs rename to tests/ui/self/ufcs-explicit-self.rs diff --git a/src/test/ui/self/uniq-self-in-mut-slot.rs b/tests/ui/self/uniq-self-in-mut-slot.rs similarity index 100% rename from src/test/ui/self/uniq-self-in-mut-slot.rs rename to tests/ui/self/uniq-self-in-mut-slot.rs diff --git a/src/test/ui/self/where-for-self.rs b/tests/ui/self/where-for-self.rs similarity index 100% rename from src/test/ui/self/where-for-self.rs rename to tests/ui/self/where-for-self.rs diff --git a/src/test/ui/sepcomp/auxiliary/sepcomp-extern-lib.rs b/tests/ui/sepcomp/auxiliary/sepcomp-extern-lib.rs similarity index 100% rename from src/test/ui/sepcomp/auxiliary/sepcomp-extern-lib.rs rename to tests/ui/sepcomp/auxiliary/sepcomp-extern-lib.rs diff --git a/src/test/ui/sepcomp/auxiliary/sepcomp_cci_lib.rs b/tests/ui/sepcomp/auxiliary/sepcomp_cci_lib.rs similarity index 100% rename from src/test/ui/sepcomp/auxiliary/sepcomp_cci_lib.rs rename to tests/ui/sepcomp/auxiliary/sepcomp_cci_lib.rs diff --git a/src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs b/tests/ui/sepcomp/auxiliary/sepcomp_lib.rs similarity index 100% rename from src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs rename to tests/ui/sepcomp/auxiliary/sepcomp_lib.rs diff --git a/src/test/ui/sepcomp/sepcomp-cci.rs b/tests/ui/sepcomp/sepcomp-cci.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-cci.rs rename to tests/ui/sepcomp/sepcomp-cci.rs diff --git a/src/test/ui/sepcomp/sepcomp-extern.rs b/tests/ui/sepcomp/sepcomp-extern.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-extern.rs rename to tests/ui/sepcomp/sepcomp-extern.rs diff --git a/src/test/ui/sepcomp/sepcomp-fns-backwards.rs b/tests/ui/sepcomp/sepcomp-fns-backwards.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-fns-backwards.rs rename to tests/ui/sepcomp/sepcomp-fns-backwards.rs diff --git a/src/test/ui/sepcomp/sepcomp-fns.rs b/tests/ui/sepcomp/sepcomp-fns.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-fns.rs rename to tests/ui/sepcomp/sepcomp-fns.rs diff --git a/src/test/ui/sepcomp/sepcomp-lib-lto.rs b/tests/ui/sepcomp/sepcomp-lib-lto.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-lib-lto.rs rename to tests/ui/sepcomp/sepcomp-lib-lto.rs diff --git a/src/test/ui/sepcomp/sepcomp-lib.rs b/tests/ui/sepcomp/sepcomp-lib.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-lib.rs rename to tests/ui/sepcomp/sepcomp-lib.rs diff --git a/src/test/ui/sepcomp/sepcomp-statics.rs b/tests/ui/sepcomp/sepcomp-statics.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-statics.rs rename to tests/ui/sepcomp/sepcomp-statics.rs diff --git a/src/test/ui/sepcomp/sepcomp-unwind.rs b/tests/ui/sepcomp/sepcomp-unwind.rs similarity index 100% rename from src/test/ui/sepcomp/sepcomp-unwind.rs rename to tests/ui/sepcomp/sepcomp-unwind.rs diff --git a/src/test/ui/seq-args.rs b/tests/ui/seq-args.rs similarity index 100% rename from src/test/ui/seq-args.rs rename to tests/ui/seq-args.rs diff --git a/src/test/ui/seq-args.stderr b/tests/ui/seq-args.stderr similarity index 100% rename from src/test/ui/seq-args.stderr rename to tests/ui/seq-args.stderr diff --git a/src/test/ui/shadow-bool.rs b/tests/ui/shadow-bool.rs similarity index 100% rename from src/test/ui/shadow-bool.rs rename to tests/ui/shadow-bool.rs diff --git a/src/test/ui/shadowed-use-visibility.rs b/tests/ui/shadowed-use-visibility.rs similarity index 100% rename from src/test/ui/shadowed-use-visibility.rs rename to tests/ui/shadowed-use-visibility.rs diff --git a/src/test/ui/shadowed/shadowed-lifetime.rs b/tests/ui/shadowed/shadowed-lifetime.rs similarity index 100% rename from src/test/ui/shadowed/shadowed-lifetime.rs rename to tests/ui/shadowed/shadowed-lifetime.rs diff --git a/src/test/ui/shadowed/shadowed-lifetime.stderr b/tests/ui/shadowed/shadowed-lifetime.stderr similarity index 100% rename from src/test/ui/shadowed/shadowed-lifetime.stderr rename to tests/ui/shadowed/shadowed-lifetime.stderr diff --git a/src/test/ui/shadowed/shadowed-trait-methods.rs b/tests/ui/shadowed/shadowed-trait-methods.rs similarity index 100% rename from src/test/ui/shadowed/shadowed-trait-methods.rs rename to tests/ui/shadowed/shadowed-trait-methods.rs diff --git a/src/test/ui/shadowed/shadowed-trait-methods.stderr b/tests/ui/shadowed/shadowed-trait-methods.stderr similarity index 100% rename from src/test/ui/shadowed/shadowed-trait-methods.stderr rename to tests/ui/shadowed/shadowed-trait-methods.stderr diff --git a/src/test/ui/shadowed/shadowed-type-parameter.rs b/tests/ui/shadowed/shadowed-type-parameter.rs similarity index 100% rename from src/test/ui/shadowed/shadowed-type-parameter.rs rename to tests/ui/shadowed/shadowed-type-parameter.rs diff --git a/src/test/ui/shadowed/shadowed-type-parameter.stderr b/tests/ui/shadowed/shadowed-type-parameter.stderr similarity index 100% rename from src/test/ui/shadowed/shadowed-type-parameter.stderr rename to tests/ui/shadowed/shadowed-type-parameter.stderr diff --git a/src/test/ui/shadowed/shadowed-use-visibility.rs b/tests/ui/shadowed/shadowed-use-visibility.rs similarity index 100% rename from src/test/ui/shadowed/shadowed-use-visibility.rs rename to tests/ui/shadowed/shadowed-use-visibility.rs diff --git a/src/test/ui/shadowed/shadowed-use-visibility.stderr b/tests/ui/shadowed/shadowed-use-visibility.stderr similarity index 100% rename from src/test/ui/shadowed/shadowed-use-visibility.stderr rename to tests/ui/shadowed/shadowed-use-visibility.stderr diff --git a/src/test/ui/shadowed/shadowing-in-the-same-pattern.rs b/tests/ui/shadowed/shadowing-in-the-same-pattern.rs similarity index 100% rename from src/test/ui/shadowed/shadowing-in-the-same-pattern.rs rename to tests/ui/shadowed/shadowing-in-the-same-pattern.rs diff --git a/src/test/ui/shadowed/shadowing-in-the-same-pattern.stderr b/tests/ui/shadowed/shadowing-in-the-same-pattern.stderr similarity index 100% rename from src/test/ui/shadowed/shadowing-in-the-same-pattern.stderr rename to tests/ui/shadowed/shadowing-in-the-same-pattern.stderr diff --git a/src/test/ui/short-error-format.rs b/tests/ui/short-error-format.rs similarity index 100% rename from src/test/ui/short-error-format.rs rename to tests/ui/short-error-format.rs diff --git a/src/test/ui/short-error-format.stderr b/tests/ui/short-error-format.stderr similarity index 100% rename from src/test/ui/short-error-format.stderr rename to tests/ui/short-error-format.stderr diff --git a/src/test/ui/simd/array-trait.rs b/tests/ui/simd/array-trait.rs similarity index 100% rename from src/test/ui/simd/array-trait.rs rename to tests/ui/simd/array-trait.rs diff --git a/src/test/ui/simd/array-trait.stderr b/tests/ui/simd/array-trait.stderr similarity index 100% rename from src/test/ui/simd/array-trait.stderr rename to tests/ui/simd/array-trait.stderr diff --git a/src/test/ui/simd/array-type.rs b/tests/ui/simd/array-type.rs similarity index 100% rename from src/test/ui/simd/array-type.rs rename to tests/ui/simd/array-type.rs diff --git a/src/test/ui/simd/generics.rs b/tests/ui/simd/generics.rs similarity index 100% rename from src/test/ui/simd/generics.rs rename to tests/ui/simd/generics.rs diff --git a/src/test/ui/simd/intrinsic/float-math-pass.rs b/tests/ui/simd/intrinsic/float-math-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/float-math-pass.rs rename to tests/ui/simd/intrinsic/float-math-pass.rs diff --git a/src/test/ui/simd/intrinsic/float-minmax-pass.rs b/tests/ui/simd/intrinsic/float-minmax-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/float-minmax-pass.rs rename to tests/ui/simd/intrinsic/float-minmax-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-arithmetic-2.rs b/tests/ui/simd/intrinsic/generic-arithmetic-2.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-arithmetic-2.rs rename to tests/ui/simd/intrinsic/generic-arithmetic-2.rs diff --git a/src/test/ui/simd/intrinsic/generic-arithmetic-2.stderr b/tests/ui/simd/intrinsic/generic-arithmetic-2.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-arithmetic-2.stderr rename to tests/ui/simd/intrinsic/generic-arithmetic-2.stderr diff --git a/src/test/ui/simd/intrinsic/generic-arithmetic-pass.rs b/tests/ui/simd/intrinsic/generic-arithmetic-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-arithmetic-pass.rs rename to tests/ui/simd/intrinsic/generic-arithmetic-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-arithmetic-saturating-2.rs b/tests/ui/simd/intrinsic/generic-arithmetic-saturating-2.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-arithmetic-saturating-2.rs rename to tests/ui/simd/intrinsic/generic-arithmetic-saturating-2.rs diff --git a/src/test/ui/simd/intrinsic/generic-arithmetic-saturating-2.stderr b/tests/ui/simd/intrinsic/generic-arithmetic-saturating-2.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-arithmetic-saturating-2.stderr rename to tests/ui/simd/intrinsic/generic-arithmetic-saturating-2.stderr diff --git a/src/test/ui/simd/intrinsic/generic-arithmetic-saturating-pass.rs b/tests/ui/simd/intrinsic/generic-arithmetic-saturating-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-arithmetic-saturating-pass.rs rename to tests/ui/simd/intrinsic/generic-arithmetic-saturating-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-as.rs b/tests/ui/simd/intrinsic/generic-as.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-as.rs rename to tests/ui/simd/intrinsic/generic-as.rs diff --git a/src/test/ui/simd/intrinsic/generic-bitmask-pass.rs b/tests/ui/simd/intrinsic/generic-bitmask-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-bitmask-pass.rs rename to tests/ui/simd/intrinsic/generic-bitmask-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-bitmask.rs b/tests/ui/simd/intrinsic/generic-bitmask.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-bitmask.rs rename to tests/ui/simd/intrinsic/generic-bitmask.rs diff --git a/src/test/ui/simd/intrinsic/generic-bitmask.stderr b/tests/ui/simd/intrinsic/generic-bitmask.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-bitmask.stderr rename to tests/ui/simd/intrinsic/generic-bitmask.stderr diff --git a/src/test/ui/simd/intrinsic/generic-cast-pass.rs b/tests/ui/simd/intrinsic/generic-cast-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-cast-pass.rs rename to tests/ui/simd/intrinsic/generic-cast-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-cast-pointer-width.rs b/tests/ui/simd/intrinsic/generic-cast-pointer-width.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-cast-pointer-width.rs rename to tests/ui/simd/intrinsic/generic-cast-pointer-width.rs diff --git a/src/test/ui/simd/intrinsic/generic-cast.rs b/tests/ui/simd/intrinsic/generic-cast.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-cast.rs rename to tests/ui/simd/intrinsic/generic-cast.rs diff --git a/src/test/ui/simd/intrinsic/generic-cast.stderr b/tests/ui/simd/intrinsic/generic-cast.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-cast.stderr rename to tests/ui/simd/intrinsic/generic-cast.stderr diff --git a/src/test/ui/simd/intrinsic/generic-comparison-pass.rs b/tests/ui/simd/intrinsic/generic-comparison-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-comparison-pass.rs rename to tests/ui/simd/intrinsic/generic-comparison-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-comparison.rs b/tests/ui/simd/intrinsic/generic-comparison.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-comparison.rs rename to tests/ui/simd/intrinsic/generic-comparison.rs diff --git a/src/test/ui/simd/intrinsic/generic-comparison.stderr b/tests/ui/simd/intrinsic/generic-comparison.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-comparison.stderr rename to tests/ui/simd/intrinsic/generic-comparison.stderr diff --git a/src/test/ui/simd/intrinsic/generic-elements-pass.rs b/tests/ui/simd/intrinsic/generic-elements-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-elements-pass.rs rename to tests/ui/simd/intrinsic/generic-elements-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-elements.rs b/tests/ui/simd/intrinsic/generic-elements.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-elements.rs rename to tests/ui/simd/intrinsic/generic-elements.rs diff --git a/src/test/ui/simd/intrinsic/generic-elements.stderr b/tests/ui/simd/intrinsic/generic-elements.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-elements.stderr rename to tests/ui/simd/intrinsic/generic-elements.stderr diff --git a/src/test/ui/simd/intrinsic/generic-gather-pass.rs b/tests/ui/simd/intrinsic/generic-gather-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-gather-pass.rs rename to tests/ui/simd/intrinsic/generic-gather-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-reduction-pass.rs b/tests/ui/simd/intrinsic/generic-reduction-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-reduction-pass.rs rename to tests/ui/simd/intrinsic/generic-reduction-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-reduction.rs b/tests/ui/simd/intrinsic/generic-reduction.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-reduction.rs rename to tests/ui/simd/intrinsic/generic-reduction.rs diff --git a/src/test/ui/simd/intrinsic/generic-reduction.stderr b/tests/ui/simd/intrinsic/generic-reduction.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-reduction.stderr rename to tests/ui/simd/intrinsic/generic-reduction.stderr diff --git a/src/test/ui/simd/intrinsic/generic-select-pass.rs b/tests/ui/simd/intrinsic/generic-select-pass.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-select-pass.rs rename to tests/ui/simd/intrinsic/generic-select-pass.rs diff --git a/src/test/ui/simd/intrinsic/generic-select.rs b/tests/ui/simd/intrinsic/generic-select.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-select.rs rename to tests/ui/simd/intrinsic/generic-select.rs diff --git a/src/test/ui/simd/intrinsic/generic-select.stderr b/tests/ui/simd/intrinsic/generic-select.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-select.stderr rename to tests/ui/simd/intrinsic/generic-select.stderr diff --git a/src/test/ui/simd/intrinsic/generic-shuffle.rs b/tests/ui/simd/intrinsic/generic-shuffle.rs similarity index 100% rename from src/test/ui/simd/intrinsic/generic-shuffle.rs rename to tests/ui/simd/intrinsic/generic-shuffle.rs diff --git a/src/test/ui/simd/intrinsic/generic-shuffle.stderr b/tests/ui/simd/intrinsic/generic-shuffle.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/generic-shuffle.stderr rename to tests/ui/simd/intrinsic/generic-shuffle.stderr diff --git a/src/test/ui/simd/intrinsic/inlining-issue67557-ice.rs b/tests/ui/simd/intrinsic/inlining-issue67557-ice.rs similarity index 100% rename from src/test/ui/simd/intrinsic/inlining-issue67557-ice.rs rename to tests/ui/simd/intrinsic/inlining-issue67557-ice.rs diff --git a/src/test/ui/simd/intrinsic/inlining-issue67557.rs b/tests/ui/simd/intrinsic/inlining-issue67557.rs similarity index 100% rename from src/test/ui/simd/intrinsic/inlining-issue67557.rs rename to tests/ui/simd/intrinsic/inlining-issue67557.rs diff --git a/src/test/ui/simd/intrinsic/issue-85855.rs b/tests/ui/simd/intrinsic/issue-85855.rs similarity index 100% rename from src/test/ui/simd/intrinsic/issue-85855.rs rename to tests/ui/simd/intrinsic/issue-85855.rs diff --git a/src/test/ui/simd/intrinsic/issue-85855.stderr b/tests/ui/simd/intrinsic/issue-85855.stderr similarity index 100% rename from src/test/ui/simd/intrinsic/issue-85855.stderr rename to tests/ui/simd/intrinsic/issue-85855.stderr diff --git a/src/test/ui/simd/intrinsic/ptr-cast.rs b/tests/ui/simd/intrinsic/ptr-cast.rs similarity index 100% rename from src/test/ui/simd/intrinsic/ptr-cast.rs rename to tests/ui/simd/intrinsic/ptr-cast.rs diff --git a/src/test/ui/simd/issue-17170.rs b/tests/ui/simd/issue-17170.rs similarity index 100% rename from src/test/ui/simd/issue-17170.rs rename to tests/ui/simd/issue-17170.rs diff --git a/src/test/ui/simd/issue-32947.rs b/tests/ui/simd/issue-32947.rs similarity index 100% rename from src/test/ui/simd/issue-32947.rs rename to tests/ui/simd/issue-32947.rs diff --git a/src/test/ui/simd/issue-39720.rs b/tests/ui/simd/issue-39720.rs similarity index 100% rename from src/test/ui/simd/issue-39720.rs rename to tests/ui/simd/issue-39720.rs diff --git a/src/test/ui/simd/issue-85915-simd-ptrs.rs b/tests/ui/simd/issue-85915-simd-ptrs.rs similarity index 100% rename from src/test/ui/simd/issue-85915-simd-ptrs.rs rename to tests/ui/simd/issue-85915-simd-ptrs.rs diff --git a/src/test/ui/simd/issue-89193.rs b/tests/ui/simd/issue-89193.rs similarity index 100% rename from src/test/ui/simd/issue-89193.rs rename to tests/ui/simd/issue-89193.rs diff --git a/src/test/ui/simd/libm_no_std_cant_float.rs b/tests/ui/simd/libm_no_std_cant_float.rs similarity index 100% rename from src/test/ui/simd/libm_no_std_cant_float.rs rename to tests/ui/simd/libm_no_std_cant_float.rs diff --git a/src/test/ui/simd/libm_no_std_cant_float.stderr b/tests/ui/simd/libm_no_std_cant_float.stderr similarity index 100% rename from src/test/ui/simd/libm_no_std_cant_float.stderr rename to tests/ui/simd/libm_no_std_cant_float.stderr diff --git a/src/test/ui/simd/libm_std_can_float.rs b/tests/ui/simd/libm_std_can_float.rs similarity index 100% rename from src/test/ui/simd/libm_std_can_float.rs rename to tests/ui/simd/libm_std_can_float.rs diff --git a/src/test/ui/simd/monomorphize-shuffle-index.rs b/tests/ui/simd/monomorphize-shuffle-index.rs similarity index 100% rename from src/test/ui/simd/monomorphize-shuffle-index.rs rename to tests/ui/simd/monomorphize-shuffle-index.rs diff --git a/src/test/ui/simd/portable-intrinsics-arent-exposed.rs b/tests/ui/simd/portable-intrinsics-arent-exposed.rs similarity index 100% rename from src/test/ui/simd/portable-intrinsics-arent-exposed.rs rename to tests/ui/simd/portable-intrinsics-arent-exposed.rs diff --git a/src/test/ui/simd/portable-intrinsics-arent-exposed.stderr b/tests/ui/simd/portable-intrinsics-arent-exposed.stderr similarity index 100% rename from src/test/ui/simd/portable-intrinsics-arent-exposed.stderr rename to tests/ui/simd/portable-intrinsics-arent-exposed.stderr diff --git a/src/test/ui/simd/shuffle-not-out-of-bounds.rs b/tests/ui/simd/shuffle-not-out-of-bounds.rs similarity index 100% rename from src/test/ui/simd/shuffle-not-out-of-bounds.rs rename to tests/ui/simd/shuffle-not-out-of-bounds.rs diff --git a/src/test/ui/simd/shuffle-not-out-of-bounds.stderr b/tests/ui/simd/shuffle-not-out-of-bounds.stderr similarity index 100% rename from src/test/ui/simd/shuffle-not-out-of-bounds.stderr rename to tests/ui/simd/shuffle-not-out-of-bounds.stderr diff --git a/src/test/ui/simd/shuffle.rs b/tests/ui/simd/shuffle.rs similarity index 100% rename from src/test/ui/simd/shuffle.rs rename to tests/ui/simd/shuffle.rs diff --git a/src/test/ui/simd/simd-bitmask.rs b/tests/ui/simd/simd-bitmask.rs similarity index 100% rename from src/test/ui/simd/simd-bitmask.rs rename to tests/ui/simd/simd-bitmask.rs diff --git a/src/test/ui/simd/size-align.rs b/tests/ui/simd/size-align.rs similarity index 100% rename from src/test/ui/simd/size-align.rs rename to tests/ui/simd/size-align.rs diff --git a/src/test/ui/simd/target-feature-mixup.rs b/tests/ui/simd/target-feature-mixup.rs similarity index 100% rename from src/test/ui/simd/target-feature-mixup.rs rename to tests/ui/simd/target-feature-mixup.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-empty.rs b/tests/ui/simd/type-generic-monomorphisation-empty.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-empty.rs rename to tests/ui/simd/type-generic-monomorphisation-empty.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-empty.stderr b/tests/ui/simd/type-generic-monomorphisation-empty.stderr similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-empty.stderr rename to tests/ui/simd/type-generic-monomorphisation-empty.stderr diff --git a/src/test/ui/simd/type-generic-monomorphisation-extern-nonnull-ptr.rs b/tests/ui/simd/type-generic-monomorphisation-extern-nonnull-ptr.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-extern-nonnull-ptr.rs rename to tests/ui/simd/type-generic-monomorphisation-extern-nonnull-ptr.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-non-primitive.rs b/tests/ui/simd/type-generic-monomorphisation-non-primitive.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-non-primitive.rs rename to tests/ui/simd/type-generic-monomorphisation-non-primitive.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-non-primitive.stderr b/tests/ui/simd/type-generic-monomorphisation-non-primitive.stderr similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-non-primitive.stderr rename to tests/ui/simd/type-generic-monomorphisation-non-primitive.stderr diff --git a/src/test/ui/simd/type-generic-monomorphisation-oversized.rs b/tests/ui/simd/type-generic-monomorphisation-oversized.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-oversized.rs rename to tests/ui/simd/type-generic-monomorphisation-oversized.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-oversized.stderr b/tests/ui/simd/type-generic-monomorphisation-oversized.stderr similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-oversized.stderr rename to tests/ui/simd/type-generic-monomorphisation-oversized.stderr diff --git a/src/test/ui/simd/type-generic-monomorphisation-power-of-two.rs b/tests/ui/simd/type-generic-monomorphisation-power-of-two.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-power-of-two.rs rename to tests/ui/simd/type-generic-monomorphisation-power-of-two.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-wide-ptr.rs b/tests/ui/simd/type-generic-monomorphisation-wide-ptr.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-wide-ptr.rs rename to tests/ui/simd/type-generic-monomorphisation-wide-ptr.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation-wide-ptr.stderr b/tests/ui/simd/type-generic-monomorphisation-wide-ptr.stderr similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation-wide-ptr.stderr rename to tests/ui/simd/type-generic-monomorphisation-wide-ptr.stderr diff --git a/src/test/ui/simd/type-generic-monomorphisation.rs b/tests/ui/simd/type-generic-monomorphisation.rs similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation.rs rename to tests/ui/simd/type-generic-monomorphisation.rs diff --git a/src/test/ui/simd/type-generic-monomorphisation.stderr b/tests/ui/simd/type-generic-monomorphisation.stderr similarity index 100% rename from src/test/ui/simd/type-generic-monomorphisation.stderr rename to tests/ui/simd/type-generic-monomorphisation.stderr diff --git a/src/test/ui/simd/type-len.rs b/tests/ui/simd/type-len.rs similarity index 100% rename from src/test/ui/simd/type-len.rs rename to tests/ui/simd/type-len.rs diff --git a/src/test/ui/simd/type-len.stderr b/tests/ui/simd/type-len.stderr similarity index 100% rename from src/test/ui/simd/type-len.stderr rename to tests/ui/simd/type-len.stderr diff --git a/src/test/ui/simd/type-wide-ptr.rs b/tests/ui/simd/type-wide-ptr.rs similarity index 100% rename from src/test/ui/simd/type-wide-ptr.rs rename to tests/ui/simd/type-wide-ptr.rs diff --git a/src/test/ui/simd/type-wide-ptr.stderr b/tests/ui/simd/type-wide-ptr.stderr similarity index 100% rename from src/test/ui/simd/type-wide-ptr.stderr rename to tests/ui/simd/type-wide-ptr.stderr diff --git a/src/test/ui/simd/wasm-simd-indirect.rs b/tests/ui/simd/wasm-simd-indirect.rs similarity index 100% rename from src/test/ui/simd/wasm-simd-indirect.rs rename to tests/ui/simd/wasm-simd-indirect.rs diff --git a/src/test/ui/simple_global_asm.rs b/tests/ui/simple_global_asm.rs similarity index 100% rename from src/test/ui/simple_global_asm.rs rename to tests/ui/simple_global_asm.rs diff --git a/src/test/ui/single-use-lifetime/derive-eq.rs b/tests/ui/single-use-lifetime/derive-eq.rs similarity index 100% rename from src/test/ui/single-use-lifetime/derive-eq.rs rename to tests/ui/single-use-lifetime/derive-eq.rs diff --git a/src/test/ui/single-use-lifetime/fn-types.rs b/tests/ui/single-use-lifetime/fn-types.rs similarity index 100% rename from src/test/ui/single-use-lifetime/fn-types.rs rename to tests/ui/single-use-lifetime/fn-types.rs diff --git a/src/test/ui/single-use-lifetime/fn-types.stderr b/tests/ui/single-use-lifetime/fn-types.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/fn-types.stderr rename to tests/ui/single-use-lifetime/fn-types.stderr diff --git a/src/test/ui/single-use-lifetime/one-use-in-fn-argument.rs b/tests/ui/single-use-lifetime/one-use-in-fn-argument.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-fn-argument.rs rename to tests/ui/single-use-lifetime/one-use-in-fn-argument.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-fn-argument.stderr b/tests/ui/single-use-lifetime/one-use-in-fn-argument.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-fn-argument.stderr rename to tests/ui/single-use-lifetime/one-use-in-fn-argument.stderr diff --git a/src/test/ui/single-use-lifetime/one-use-in-fn-return.rs b/tests/ui/single-use-lifetime/one-use-in-fn-return.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-fn-return.rs rename to tests/ui/single-use-lifetime/one-use-in-fn-return.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-impl-header.rs b/tests/ui/single-use-lifetime/one-use-in-inherent-impl-header.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-inherent-impl-header.rs rename to tests/ui/single-use-lifetime/one-use-in-inherent-impl-header.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-impl-header.stderr b/tests/ui/single-use-lifetime/one-use-in-inherent-impl-header.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-inherent-impl-header.stderr rename to tests/ui/single-use-lifetime/one-use-in-inherent-impl-header.stderr diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.rs b/tests/ui/single-use-lifetime/one-use-in-inherent-method-argument.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.rs rename to tests/ui/single-use-lifetime/one-use-in-inherent-method-argument.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr b/tests/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr rename to tests/ui/single-use-lifetime/one-use-in-inherent-method-argument.stderr diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-method-return.rs b/tests/ui/single-use-lifetime/one-use-in-inherent-method-return.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-inherent-method-return.rs rename to tests/ui/single-use-lifetime/one-use-in-inherent-method-return.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-inherent-method-return.stderr b/tests/ui/single-use-lifetime/one-use-in-inherent-method-return.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-inherent-method-return.stderr rename to tests/ui/single-use-lifetime/one-use-in-inherent-method-return.stderr diff --git a/src/test/ui/single-use-lifetime/one-use-in-struct.rs b/tests/ui/single-use-lifetime/one-use-in-struct.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-struct.rs rename to tests/ui/single-use-lifetime/one-use-in-struct.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-trait-method-argument.rs b/tests/ui/single-use-lifetime/one-use-in-trait-method-argument.rs similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-trait-method-argument.rs rename to tests/ui/single-use-lifetime/one-use-in-trait-method-argument.rs diff --git a/src/test/ui/single-use-lifetime/one-use-in-trait-method-argument.stderr b/tests/ui/single-use-lifetime/one-use-in-trait-method-argument.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/one-use-in-trait-method-argument.stderr rename to tests/ui/single-use-lifetime/one-use-in-trait-method-argument.stderr diff --git a/src/test/ui/single-use-lifetime/two-uses-in-fn-argument-and-return.rs b/tests/ui/single-use-lifetime/two-uses-in-fn-argument-and-return.rs similarity index 100% rename from src/test/ui/single-use-lifetime/two-uses-in-fn-argument-and-return.rs rename to tests/ui/single-use-lifetime/two-uses-in-fn-argument-and-return.rs diff --git a/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs b/tests/ui/single-use-lifetime/two-uses-in-fn-arguments.rs similarity index 100% rename from src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs rename to tests/ui/single-use-lifetime/two-uses-in-fn-arguments.rs diff --git a/src/test/ui/single-use-lifetime/two-uses-in-inherent-impl-header.rs b/tests/ui/single-use-lifetime/two-uses-in-inherent-impl-header.rs similarity index 100% rename from src/test/ui/single-use-lifetime/two-uses-in-inherent-impl-header.rs rename to tests/ui/single-use-lifetime/two-uses-in-inherent-impl-header.rs diff --git a/src/test/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.rs b/tests/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.rs similarity index 100% rename from src/test/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.rs rename to tests/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.rs diff --git a/src/test/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.stderr b/tests/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.stderr rename to tests/ui/single-use-lifetime/two-uses-in-inherent-method-argument-and-return.stderr diff --git a/src/test/ui/single-use-lifetime/two-uses-in-trait-impl.rs b/tests/ui/single-use-lifetime/two-uses-in-trait-impl.rs similarity index 100% rename from src/test/ui/single-use-lifetime/two-uses-in-trait-impl.rs rename to tests/ui/single-use-lifetime/two-uses-in-trait-impl.rs diff --git a/src/test/ui/single-use-lifetime/zero-uses-in-fn.fixed b/tests/ui/single-use-lifetime/zero-uses-in-fn.fixed similarity index 100% rename from src/test/ui/single-use-lifetime/zero-uses-in-fn.fixed rename to tests/ui/single-use-lifetime/zero-uses-in-fn.fixed diff --git a/src/test/ui/single-use-lifetime/zero-uses-in-fn.rs b/tests/ui/single-use-lifetime/zero-uses-in-fn.rs similarity index 100% rename from src/test/ui/single-use-lifetime/zero-uses-in-fn.rs rename to tests/ui/single-use-lifetime/zero-uses-in-fn.rs diff --git a/src/test/ui/single-use-lifetime/zero-uses-in-fn.stderr b/tests/ui/single-use-lifetime/zero-uses-in-fn.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/zero-uses-in-fn.stderr rename to tests/ui/single-use-lifetime/zero-uses-in-fn.stderr diff --git a/src/test/ui/single-use-lifetime/zero-uses-in-impl.rs b/tests/ui/single-use-lifetime/zero-uses-in-impl.rs similarity index 100% rename from src/test/ui/single-use-lifetime/zero-uses-in-impl.rs rename to tests/ui/single-use-lifetime/zero-uses-in-impl.rs diff --git a/src/test/ui/single-use-lifetime/zero-uses-in-impl.stderr b/tests/ui/single-use-lifetime/zero-uses-in-impl.stderr similarity index 100% rename from src/test/ui/single-use-lifetime/zero-uses-in-impl.stderr rename to tests/ui/single-use-lifetime/zero-uses-in-impl.stderr diff --git a/src/test/ui/sized-borrowed-pointer.rs b/tests/ui/sized-borrowed-pointer.rs similarity index 100% rename from src/test/ui/sized-borrowed-pointer.rs rename to tests/ui/sized-borrowed-pointer.rs diff --git a/src/test/ui/sized-cycle-note.rs b/tests/ui/sized-cycle-note.rs similarity index 100% rename from src/test/ui/sized-cycle-note.rs rename to tests/ui/sized-cycle-note.rs diff --git a/src/test/ui/sized-cycle-note.stderr b/tests/ui/sized-cycle-note.stderr similarity index 100% rename from src/test/ui/sized-cycle-note.stderr rename to tests/ui/sized-cycle-note.stderr diff --git a/src/test/ui/sized-owned-pointer.rs b/tests/ui/sized-owned-pointer.rs similarity index 100% rename from src/test/ui/sized-owned-pointer.rs rename to tests/ui/sized-owned-pointer.rs diff --git a/src/test/ui/sized/coinductive-1-gat.rs b/tests/ui/sized/coinductive-1-gat.rs similarity index 100% rename from src/test/ui/sized/coinductive-1-gat.rs rename to tests/ui/sized/coinductive-1-gat.rs diff --git a/src/test/ui/sized/coinductive-1.rs b/tests/ui/sized/coinductive-1.rs similarity index 100% rename from src/test/ui/sized/coinductive-1.rs rename to tests/ui/sized/coinductive-1.rs diff --git a/src/test/ui/sized/coinductive-2.rs b/tests/ui/sized/coinductive-2.rs similarity index 100% rename from src/test/ui/sized/coinductive-2.rs rename to tests/ui/sized/coinductive-2.rs diff --git a/src/test/ui/sized/recursive-type-1.rs b/tests/ui/sized/recursive-type-1.rs similarity index 100% rename from src/test/ui/sized/recursive-type-1.rs rename to tests/ui/sized/recursive-type-1.rs diff --git a/src/test/ui/sized/recursive-type-2.rs b/tests/ui/sized/recursive-type-2.rs similarity index 100% rename from src/test/ui/sized/recursive-type-2.rs rename to tests/ui/sized/recursive-type-2.rs diff --git a/src/test/ui/sized/recursive-type-2.stderr b/tests/ui/sized/recursive-type-2.stderr similarity index 100% rename from src/test/ui/sized/recursive-type-2.stderr rename to tests/ui/sized/recursive-type-2.stderr diff --git a/src/test/ui/slightly-nice-generic-literal-messages.rs b/tests/ui/slightly-nice-generic-literal-messages.rs similarity index 100% rename from src/test/ui/slightly-nice-generic-literal-messages.rs rename to tests/ui/slightly-nice-generic-literal-messages.rs diff --git a/src/test/ui/slightly-nice-generic-literal-messages.stderr b/tests/ui/slightly-nice-generic-literal-messages.stderr similarity index 100% rename from src/test/ui/slightly-nice-generic-literal-messages.stderr rename to tests/ui/slightly-nice-generic-literal-messages.stderr diff --git a/src/test/ui/span/E0046.rs b/tests/ui/span/E0046.rs similarity index 100% rename from src/test/ui/span/E0046.rs rename to tests/ui/span/E0046.rs diff --git a/src/test/ui/span/E0046.stderr b/tests/ui/span/E0046.stderr similarity index 100% rename from src/test/ui/span/E0046.stderr rename to tests/ui/span/E0046.stderr diff --git a/src/test/ui/span/E0072.rs b/tests/ui/span/E0072.rs similarity index 100% rename from src/test/ui/span/E0072.rs rename to tests/ui/span/E0072.rs diff --git a/src/test/ui/span/E0072.stderr b/tests/ui/span/E0072.stderr similarity index 100% rename from src/test/ui/span/E0072.stderr rename to tests/ui/span/E0072.stderr diff --git a/src/test/ui/span/E0204.rs b/tests/ui/span/E0204.rs similarity index 100% rename from src/test/ui/span/E0204.rs rename to tests/ui/span/E0204.rs diff --git a/src/test/ui/span/E0204.stderr b/tests/ui/span/E0204.stderr similarity index 100% rename from src/test/ui/span/E0204.stderr rename to tests/ui/span/E0204.stderr diff --git a/src/test/ui/span/E0493.rs b/tests/ui/span/E0493.rs similarity index 100% rename from src/test/ui/span/E0493.rs rename to tests/ui/span/E0493.rs diff --git a/src/test/ui/span/E0493.stderr b/tests/ui/span/E0493.stderr similarity index 100% rename from src/test/ui/span/E0493.stderr rename to tests/ui/span/E0493.stderr diff --git a/src/test/ui/span/E0535.rs b/tests/ui/span/E0535.rs similarity index 100% rename from src/test/ui/span/E0535.rs rename to tests/ui/span/E0535.rs diff --git a/src/test/ui/span/E0535.stderr b/tests/ui/span/E0535.stderr similarity index 100% rename from src/test/ui/span/E0535.stderr rename to tests/ui/span/E0535.stderr diff --git a/src/test/ui/span/E0536.rs b/tests/ui/span/E0536.rs similarity index 100% rename from src/test/ui/span/E0536.rs rename to tests/ui/span/E0536.rs diff --git a/src/test/ui/span/E0536.stderr b/tests/ui/span/E0536.stderr similarity index 100% rename from src/test/ui/span/E0536.stderr rename to tests/ui/span/E0536.stderr diff --git a/src/test/ui/span/E0537.rs b/tests/ui/span/E0537.rs similarity index 100% rename from src/test/ui/span/E0537.rs rename to tests/ui/span/E0537.rs diff --git a/src/test/ui/span/E0537.stderr b/tests/ui/span/E0537.stderr similarity index 100% rename from src/test/ui/span/E0537.stderr rename to tests/ui/span/E0537.stderr diff --git a/src/test/ui/span/auxiliary/transitive_dep_three.rs b/tests/ui/span/auxiliary/transitive_dep_three.rs similarity index 100% rename from src/test/ui/span/auxiliary/transitive_dep_three.rs rename to tests/ui/span/auxiliary/transitive_dep_three.rs diff --git a/src/test/ui/span/auxiliary/transitive_dep_two.rs b/tests/ui/span/auxiliary/transitive_dep_two.rs similarity index 100% rename from src/test/ui/span/auxiliary/transitive_dep_two.rs rename to tests/ui/span/auxiliary/transitive_dep_two.rs diff --git a/src/test/ui/span/borrowck-borrow-overloaded-auto-deref-mut.rs b/tests/ui/span/borrowck-borrow-overloaded-auto-deref-mut.rs similarity index 100% rename from src/test/ui/span/borrowck-borrow-overloaded-auto-deref-mut.rs rename to tests/ui/span/borrowck-borrow-overloaded-auto-deref-mut.rs diff --git a/src/test/ui/span/borrowck-borrow-overloaded-auto-deref-mut.stderr b/tests/ui/span/borrowck-borrow-overloaded-auto-deref-mut.stderr similarity index 100% rename from src/test/ui/span/borrowck-borrow-overloaded-auto-deref-mut.stderr rename to tests/ui/span/borrowck-borrow-overloaded-auto-deref-mut.stderr diff --git a/src/test/ui/span/borrowck-borrow-overloaded-deref-mut.rs b/tests/ui/span/borrowck-borrow-overloaded-deref-mut.rs similarity index 100% rename from src/test/ui/span/borrowck-borrow-overloaded-deref-mut.rs rename to tests/ui/span/borrowck-borrow-overloaded-deref-mut.rs diff --git a/src/test/ui/span/borrowck-borrow-overloaded-deref-mut.stderr b/tests/ui/span/borrowck-borrow-overloaded-deref-mut.stderr similarity index 100% rename from src/test/ui/span/borrowck-borrow-overloaded-deref-mut.stderr rename to tests/ui/span/borrowck-borrow-overloaded-deref-mut.stderr diff --git a/src/test/ui/span/borrowck-call-is-borrow-issue-12224.rs b/tests/ui/span/borrowck-call-is-borrow-issue-12224.rs similarity index 100% rename from src/test/ui/span/borrowck-call-is-borrow-issue-12224.rs rename to tests/ui/span/borrowck-call-is-borrow-issue-12224.rs diff --git a/src/test/ui/span/borrowck-call-is-borrow-issue-12224.stderr b/tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr similarity index 100% rename from src/test/ui/span/borrowck-call-is-borrow-issue-12224.stderr rename to tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr diff --git a/src/test/ui/span/borrowck-call-method-from-mut-aliasable.rs b/tests/ui/span/borrowck-call-method-from-mut-aliasable.rs similarity index 100% rename from src/test/ui/span/borrowck-call-method-from-mut-aliasable.rs rename to tests/ui/span/borrowck-call-method-from-mut-aliasable.rs diff --git a/src/test/ui/span/borrowck-call-method-from-mut-aliasable.stderr b/tests/ui/span/borrowck-call-method-from-mut-aliasable.stderr similarity index 100% rename from src/test/ui/span/borrowck-call-method-from-mut-aliasable.stderr rename to tests/ui/span/borrowck-call-method-from-mut-aliasable.stderr diff --git a/src/test/ui/span/borrowck-fn-in-const-b.rs b/tests/ui/span/borrowck-fn-in-const-b.rs similarity index 100% rename from src/test/ui/span/borrowck-fn-in-const-b.rs rename to tests/ui/span/borrowck-fn-in-const-b.rs diff --git a/src/test/ui/span/borrowck-fn-in-const-b.stderr b/tests/ui/span/borrowck-fn-in-const-b.stderr similarity index 100% rename from src/test/ui/span/borrowck-fn-in-const-b.stderr rename to tests/ui/span/borrowck-fn-in-const-b.stderr diff --git a/src/test/ui/span/borrowck-let-suggestion-suffixes.rs b/tests/ui/span/borrowck-let-suggestion-suffixes.rs similarity index 100% rename from src/test/ui/span/borrowck-let-suggestion-suffixes.rs rename to tests/ui/span/borrowck-let-suggestion-suffixes.rs diff --git a/src/test/ui/span/borrowck-let-suggestion-suffixes.stderr b/tests/ui/span/borrowck-let-suggestion-suffixes.stderr similarity index 100% rename from src/test/ui/span/borrowck-let-suggestion-suffixes.stderr rename to tests/ui/span/borrowck-let-suggestion-suffixes.stderr diff --git a/src/test/ui/span/borrowck-object-mutability.rs b/tests/ui/span/borrowck-object-mutability.rs similarity index 100% rename from src/test/ui/span/borrowck-object-mutability.rs rename to tests/ui/span/borrowck-object-mutability.rs diff --git a/src/test/ui/span/borrowck-object-mutability.stderr b/tests/ui/span/borrowck-object-mutability.stderr similarity index 100% rename from src/test/ui/span/borrowck-object-mutability.stderr rename to tests/ui/span/borrowck-object-mutability.stderr diff --git a/src/test/ui/span/borrowck-ref-into-rvalue.fixed b/tests/ui/span/borrowck-ref-into-rvalue.fixed similarity index 100% rename from src/test/ui/span/borrowck-ref-into-rvalue.fixed rename to tests/ui/span/borrowck-ref-into-rvalue.fixed diff --git a/src/test/ui/span/borrowck-ref-into-rvalue.rs b/tests/ui/span/borrowck-ref-into-rvalue.rs similarity index 100% rename from src/test/ui/span/borrowck-ref-into-rvalue.rs rename to tests/ui/span/borrowck-ref-into-rvalue.rs diff --git a/src/test/ui/span/borrowck-ref-into-rvalue.stderr b/tests/ui/span/borrowck-ref-into-rvalue.stderr similarity index 100% rename from src/test/ui/span/borrowck-ref-into-rvalue.stderr rename to tests/ui/span/borrowck-ref-into-rvalue.stderr diff --git a/src/test/ui/span/coerce-suggestions.rs b/tests/ui/span/coerce-suggestions.rs similarity index 100% rename from src/test/ui/span/coerce-suggestions.rs rename to tests/ui/span/coerce-suggestions.rs diff --git a/src/test/ui/span/coerce-suggestions.stderr b/tests/ui/span/coerce-suggestions.stderr similarity index 100% rename from src/test/ui/span/coerce-suggestions.stderr rename to tests/ui/span/coerce-suggestions.stderr diff --git a/src/test/ui/span/destructor-restrictions.rs b/tests/ui/span/destructor-restrictions.rs similarity index 100% rename from src/test/ui/span/destructor-restrictions.rs rename to tests/ui/span/destructor-restrictions.rs diff --git a/src/test/ui/span/destructor-restrictions.stderr b/tests/ui/span/destructor-restrictions.stderr similarity index 100% rename from src/test/ui/span/destructor-restrictions.stderr rename to tests/ui/span/destructor-restrictions.stderr diff --git a/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.rs b/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.rs similarity index 100% rename from src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.rs rename to tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.rs diff --git a/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr b/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr similarity index 100% rename from src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr rename to tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-93117.stderr diff --git a/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs b/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs similarity index 100% rename from src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs rename to tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.rs diff --git a/src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.stderr b/tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.stderr similarity index 100% rename from src/test/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.stderr rename to tests/ui/span/drop-location-span-error-rust-2021-incompatible-closure-captures-96258.stderr diff --git a/src/test/ui/span/dropck-object-cycle.rs b/tests/ui/span/dropck-object-cycle.rs similarity index 100% rename from src/test/ui/span/dropck-object-cycle.rs rename to tests/ui/span/dropck-object-cycle.rs diff --git a/src/test/ui/span/dropck-object-cycle.stderr b/tests/ui/span/dropck-object-cycle.stderr similarity index 100% rename from src/test/ui/span/dropck-object-cycle.stderr rename to tests/ui/span/dropck-object-cycle.stderr diff --git a/src/test/ui/span/dropck_arr_cycle_checked.rs b/tests/ui/span/dropck_arr_cycle_checked.rs similarity index 100% rename from src/test/ui/span/dropck_arr_cycle_checked.rs rename to tests/ui/span/dropck_arr_cycle_checked.rs diff --git a/src/test/ui/span/dropck_arr_cycle_checked.stderr b/tests/ui/span/dropck_arr_cycle_checked.stderr similarity index 100% rename from src/test/ui/span/dropck_arr_cycle_checked.stderr rename to tests/ui/span/dropck_arr_cycle_checked.stderr diff --git a/src/test/ui/span/dropck_direct_cycle_with_drop.rs b/tests/ui/span/dropck_direct_cycle_with_drop.rs similarity index 100% rename from src/test/ui/span/dropck_direct_cycle_with_drop.rs rename to tests/ui/span/dropck_direct_cycle_with_drop.rs diff --git a/src/test/ui/span/dropck_direct_cycle_with_drop.stderr b/tests/ui/span/dropck_direct_cycle_with_drop.stderr similarity index 100% rename from src/test/ui/span/dropck_direct_cycle_with_drop.stderr rename to tests/ui/span/dropck_direct_cycle_with_drop.stderr diff --git a/src/test/ui/span/dropck_misc_variants.rs b/tests/ui/span/dropck_misc_variants.rs similarity index 100% rename from src/test/ui/span/dropck_misc_variants.rs rename to tests/ui/span/dropck_misc_variants.rs diff --git a/src/test/ui/span/dropck_misc_variants.stderr b/tests/ui/span/dropck_misc_variants.stderr similarity index 100% rename from src/test/ui/span/dropck_misc_variants.stderr rename to tests/ui/span/dropck_misc_variants.stderr diff --git a/src/test/ui/span/dropck_vec_cycle_checked.rs b/tests/ui/span/dropck_vec_cycle_checked.rs similarity index 100% rename from src/test/ui/span/dropck_vec_cycle_checked.rs rename to tests/ui/span/dropck_vec_cycle_checked.rs diff --git a/src/test/ui/span/dropck_vec_cycle_checked.stderr b/tests/ui/span/dropck_vec_cycle_checked.stderr similarity index 100% rename from src/test/ui/span/dropck_vec_cycle_checked.stderr rename to tests/ui/span/dropck_vec_cycle_checked.stderr diff --git a/src/test/ui/span/gated-features-attr-spans.rs b/tests/ui/span/gated-features-attr-spans.rs similarity index 100% rename from src/test/ui/span/gated-features-attr-spans.rs rename to tests/ui/span/gated-features-attr-spans.rs diff --git a/src/test/ui/span/gated-features-attr-spans.stderr b/tests/ui/span/gated-features-attr-spans.stderr similarity index 100% rename from src/test/ui/span/gated-features-attr-spans.stderr rename to tests/ui/span/gated-features-attr-spans.stderr diff --git a/src/test/ui/span/impl-wrong-item-for-trait.rs b/tests/ui/span/impl-wrong-item-for-trait.rs similarity index 100% rename from src/test/ui/span/impl-wrong-item-for-trait.rs rename to tests/ui/span/impl-wrong-item-for-trait.rs diff --git a/src/test/ui/span/impl-wrong-item-for-trait.stderr b/tests/ui/span/impl-wrong-item-for-trait.stderr similarity index 100% rename from src/test/ui/span/impl-wrong-item-for-trait.stderr rename to tests/ui/span/impl-wrong-item-for-trait.stderr diff --git a/src/test/ui/span/import-ty-params.rs b/tests/ui/span/import-ty-params.rs similarity index 100% rename from src/test/ui/span/import-ty-params.rs rename to tests/ui/span/import-ty-params.rs diff --git a/src/test/ui/span/import-ty-params.stderr b/tests/ui/span/import-ty-params.stderr similarity index 100% rename from src/test/ui/span/import-ty-params.stderr rename to tests/ui/span/import-ty-params.stderr diff --git a/src/test/ui/span/issue-11925.rs b/tests/ui/span/issue-11925.rs similarity index 100% rename from src/test/ui/span/issue-11925.rs rename to tests/ui/span/issue-11925.rs diff --git a/src/test/ui/span/issue-11925.stderr b/tests/ui/span/issue-11925.stderr similarity index 100% rename from src/test/ui/span/issue-11925.stderr rename to tests/ui/span/issue-11925.stderr diff --git a/src/test/ui/span/issue-15480.fixed b/tests/ui/span/issue-15480.fixed similarity index 100% rename from src/test/ui/span/issue-15480.fixed rename to tests/ui/span/issue-15480.fixed diff --git a/src/test/ui/span/issue-15480.rs b/tests/ui/span/issue-15480.rs similarity index 100% rename from src/test/ui/span/issue-15480.rs rename to tests/ui/span/issue-15480.rs diff --git a/src/test/ui/span/issue-15480.stderr b/tests/ui/span/issue-15480.stderr similarity index 100% rename from src/test/ui/span/issue-15480.stderr rename to tests/ui/span/issue-15480.stderr diff --git a/src/test/ui/span/issue-23338-locals-die-before-temps-of-body.rs b/tests/ui/span/issue-23338-locals-die-before-temps-of-body.rs similarity index 100% rename from src/test/ui/span/issue-23338-locals-die-before-temps-of-body.rs rename to tests/ui/span/issue-23338-locals-die-before-temps-of-body.rs diff --git a/src/test/ui/span/issue-23338-locals-die-before-temps-of-body.stderr b/tests/ui/span/issue-23338-locals-die-before-temps-of-body.stderr similarity index 100% rename from src/test/ui/span/issue-23338-locals-die-before-temps-of-body.stderr rename to tests/ui/span/issue-23338-locals-die-before-temps-of-body.stderr diff --git a/src/test/ui/span/issue-23729.rs b/tests/ui/span/issue-23729.rs similarity index 100% rename from src/test/ui/span/issue-23729.rs rename to tests/ui/span/issue-23729.rs diff --git a/src/test/ui/span/issue-23729.stderr b/tests/ui/span/issue-23729.stderr similarity index 100% rename from src/test/ui/span/issue-23729.stderr rename to tests/ui/span/issue-23729.stderr diff --git a/src/test/ui/span/issue-23827.rs b/tests/ui/span/issue-23827.rs similarity index 100% rename from src/test/ui/span/issue-23827.rs rename to tests/ui/span/issue-23827.rs diff --git a/src/test/ui/span/issue-23827.stderr b/tests/ui/span/issue-23827.stderr similarity index 100% rename from src/test/ui/span/issue-23827.stderr rename to tests/ui/span/issue-23827.stderr diff --git a/src/test/ui/span/issue-24356.rs b/tests/ui/span/issue-24356.rs similarity index 100% rename from src/test/ui/span/issue-24356.rs rename to tests/ui/span/issue-24356.rs diff --git a/src/test/ui/span/issue-24356.stderr b/tests/ui/span/issue-24356.stderr similarity index 100% rename from src/test/ui/span/issue-24356.stderr rename to tests/ui/span/issue-24356.stderr diff --git a/src/test/ui/span/issue-24690.rs b/tests/ui/span/issue-24690.rs similarity index 100% rename from src/test/ui/span/issue-24690.rs rename to tests/ui/span/issue-24690.rs diff --git a/src/test/ui/span/issue-24690.stderr b/tests/ui/span/issue-24690.stderr similarity index 100% rename from src/test/ui/span/issue-24690.stderr rename to tests/ui/span/issue-24690.stderr diff --git a/src/test/ui/span/issue-24805-dropck-child-has-items-via-parent.rs b/tests/ui/span/issue-24805-dropck-child-has-items-via-parent.rs similarity index 100% rename from src/test/ui/span/issue-24805-dropck-child-has-items-via-parent.rs rename to tests/ui/span/issue-24805-dropck-child-has-items-via-parent.rs diff --git a/src/test/ui/span/issue-24805-dropck-child-has-items-via-parent.stderr b/tests/ui/span/issue-24805-dropck-child-has-items-via-parent.stderr similarity index 100% rename from src/test/ui/span/issue-24805-dropck-child-has-items-via-parent.stderr rename to tests/ui/span/issue-24805-dropck-child-has-items-via-parent.stderr diff --git a/src/test/ui/span/issue-24805-dropck-trait-has-items.rs b/tests/ui/span/issue-24805-dropck-trait-has-items.rs similarity index 100% rename from src/test/ui/span/issue-24805-dropck-trait-has-items.rs rename to tests/ui/span/issue-24805-dropck-trait-has-items.rs diff --git a/src/test/ui/span/issue-24805-dropck-trait-has-items.stderr b/tests/ui/span/issue-24805-dropck-trait-has-items.stderr similarity index 100% rename from src/test/ui/span/issue-24805-dropck-trait-has-items.stderr rename to tests/ui/span/issue-24805-dropck-trait-has-items.stderr diff --git a/src/test/ui/span/issue-24895-copy-clone-dropck.rs b/tests/ui/span/issue-24895-copy-clone-dropck.rs similarity index 100% rename from src/test/ui/span/issue-24895-copy-clone-dropck.rs rename to tests/ui/span/issue-24895-copy-clone-dropck.rs diff --git a/src/test/ui/span/issue-24895-copy-clone-dropck.stderr b/tests/ui/span/issue-24895-copy-clone-dropck.stderr similarity index 100% rename from src/test/ui/span/issue-24895-copy-clone-dropck.stderr rename to tests/ui/span/issue-24895-copy-clone-dropck.stderr diff --git a/src/test/ui/span/issue-25199.rs b/tests/ui/span/issue-25199.rs similarity index 100% rename from src/test/ui/span/issue-25199.rs rename to tests/ui/span/issue-25199.rs diff --git a/src/test/ui/span/issue-25199.stderr b/tests/ui/span/issue-25199.stderr similarity index 100% rename from src/test/ui/span/issue-25199.stderr rename to tests/ui/span/issue-25199.stderr diff --git a/src/test/ui/span/issue-26656.rs b/tests/ui/span/issue-26656.rs similarity index 100% rename from src/test/ui/span/issue-26656.rs rename to tests/ui/span/issue-26656.rs diff --git a/src/test/ui/span/issue-26656.stderr b/tests/ui/span/issue-26656.stderr similarity index 100% rename from src/test/ui/span/issue-26656.stderr rename to tests/ui/span/issue-26656.stderr diff --git a/src/test/ui/span/issue-27522.rs b/tests/ui/span/issue-27522.rs similarity index 100% rename from src/test/ui/span/issue-27522.rs rename to tests/ui/span/issue-27522.rs diff --git a/src/test/ui/span/issue-27522.stderr b/tests/ui/span/issue-27522.stderr similarity index 100% rename from src/test/ui/span/issue-27522.stderr rename to tests/ui/span/issue-27522.stderr diff --git a/src/test/ui/span/issue-29106.rs b/tests/ui/span/issue-29106.rs similarity index 100% rename from src/test/ui/span/issue-29106.rs rename to tests/ui/span/issue-29106.rs diff --git a/src/test/ui/span/issue-29106.stderr b/tests/ui/span/issue-29106.stderr similarity index 100% rename from src/test/ui/span/issue-29106.stderr rename to tests/ui/span/issue-29106.stderr diff --git a/src/test/ui/span/issue-29595.rs b/tests/ui/span/issue-29595.rs similarity index 100% rename from src/test/ui/span/issue-29595.rs rename to tests/ui/span/issue-29595.rs diff --git a/src/test/ui/span/issue-29595.stderr b/tests/ui/span/issue-29595.stderr similarity index 100% rename from src/test/ui/span/issue-29595.stderr rename to tests/ui/span/issue-29595.stderr diff --git a/src/test/ui/span/issue-33884.rs b/tests/ui/span/issue-33884.rs similarity index 100% rename from src/test/ui/span/issue-33884.rs rename to tests/ui/span/issue-33884.rs diff --git a/src/test/ui/span/issue-33884.stderr b/tests/ui/span/issue-33884.stderr similarity index 100% rename from src/test/ui/span/issue-33884.stderr rename to tests/ui/span/issue-33884.stderr diff --git a/src/test/ui/span/issue-34264.rs b/tests/ui/span/issue-34264.rs similarity index 100% rename from src/test/ui/span/issue-34264.rs rename to tests/ui/span/issue-34264.rs diff --git a/src/test/ui/span/issue-34264.stderr b/tests/ui/span/issue-34264.stderr similarity index 100% rename from src/test/ui/span/issue-34264.stderr rename to tests/ui/span/issue-34264.stderr diff --git a/src/test/ui/span/issue-35987.rs b/tests/ui/span/issue-35987.rs similarity index 100% rename from src/test/ui/span/issue-35987.rs rename to tests/ui/span/issue-35987.rs diff --git a/src/test/ui/span/issue-35987.stderr b/tests/ui/span/issue-35987.stderr similarity index 100% rename from src/test/ui/span/issue-35987.stderr rename to tests/ui/span/issue-35987.stderr diff --git a/src/test/ui/span/issue-36537.rs b/tests/ui/span/issue-36537.rs similarity index 100% rename from src/test/ui/span/issue-36537.rs rename to tests/ui/span/issue-36537.rs diff --git a/src/test/ui/span/issue-36537.stderr b/tests/ui/span/issue-36537.stderr similarity index 100% rename from src/test/ui/span/issue-36537.stderr rename to tests/ui/span/issue-36537.stderr diff --git a/src/test/ui/span/issue-37767.rs b/tests/ui/span/issue-37767.rs similarity index 100% rename from src/test/ui/span/issue-37767.rs rename to tests/ui/span/issue-37767.rs diff --git a/src/test/ui/span/issue-37767.stderr b/tests/ui/span/issue-37767.stderr similarity index 100% rename from src/test/ui/span/issue-37767.stderr rename to tests/ui/span/issue-37767.stderr diff --git a/src/test/ui/span/issue-39018.rs b/tests/ui/span/issue-39018.rs similarity index 100% rename from src/test/ui/span/issue-39018.rs rename to tests/ui/span/issue-39018.rs diff --git a/src/test/ui/span/issue-39018.stderr b/tests/ui/span/issue-39018.stderr similarity index 100% rename from src/test/ui/span/issue-39018.stderr rename to tests/ui/span/issue-39018.stderr diff --git a/src/test/ui/span/issue-39698.rs b/tests/ui/span/issue-39698.rs similarity index 100% rename from src/test/ui/span/issue-39698.rs rename to tests/ui/span/issue-39698.rs diff --git a/src/test/ui/span/issue-39698.stderr b/tests/ui/span/issue-39698.stderr similarity index 100% rename from src/test/ui/span/issue-39698.stderr rename to tests/ui/span/issue-39698.stderr diff --git a/src/test/ui/span/issue-40157.rs b/tests/ui/span/issue-40157.rs similarity index 100% rename from src/test/ui/span/issue-40157.rs rename to tests/ui/span/issue-40157.rs diff --git a/src/test/ui/span/issue-40157.stderr b/tests/ui/span/issue-40157.stderr similarity index 100% rename from src/test/ui/span/issue-40157.stderr rename to tests/ui/span/issue-40157.stderr diff --git a/src/test/ui/span/issue-42234-unknown-receiver-type.full.stderr b/tests/ui/span/issue-42234-unknown-receiver-type.full.stderr similarity index 100% rename from src/test/ui/span/issue-42234-unknown-receiver-type.full.stderr rename to tests/ui/span/issue-42234-unknown-receiver-type.full.stderr diff --git a/src/test/ui/span/issue-42234-unknown-receiver-type.generic_arg.stderr b/tests/ui/span/issue-42234-unknown-receiver-type.generic_arg.stderr similarity index 100% rename from src/test/ui/span/issue-42234-unknown-receiver-type.generic_arg.stderr rename to tests/ui/span/issue-42234-unknown-receiver-type.generic_arg.stderr diff --git a/src/test/ui/span/issue-42234-unknown-receiver-type.rs b/tests/ui/span/issue-42234-unknown-receiver-type.rs similarity index 100% rename from src/test/ui/span/issue-42234-unknown-receiver-type.rs rename to tests/ui/span/issue-42234-unknown-receiver-type.rs diff --git a/src/test/ui/span/issue-43927-non-ADT-derive.rs b/tests/ui/span/issue-43927-non-ADT-derive.rs similarity index 100% rename from src/test/ui/span/issue-43927-non-ADT-derive.rs rename to tests/ui/span/issue-43927-non-ADT-derive.rs diff --git a/src/test/ui/span/issue-43927-non-ADT-derive.stderr b/tests/ui/span/issue-43927-non-ADT-derive.stderr similarity index 100% rename from src/test/ui/span/issue-43927-non-ADT-derive.stderr rename to tests/ui/span/issue-43927-non-ADT-derive.stderr diff --git a/src/test/ui/span/issue-71363.rs b/tests/ui/span/issue-71363.rs similarity index 100% rename from src/test/ui/span/issue-71363.rs rename to tests/ui/span/issue-71363.rs diff --git a/src/test/ui/span/issue-71363.stderr b/tests/ui/span/issue-71363.stderr similarity index 100% rename from src/test/ui/span/issue-71363.stderr rename to tests/ui/span/issue-71363.stderr diff --git a/src/test/ui/span/issue-81800.rs b/tests/ui/span/issue-81800.rs similarity index 100% rename from src/test/ui/span/issue-81800.rs rename to tests/ui/span/issue-81800.rs diff --git a/src/test/ui/span/issue-81800.stderr b/tests/ui/span/issue-81800.stderr similarity index 100% rename from src/test/ui/span/issue-81800.stderr rename to tests/ui/span/issue-81800.stderr diff --git a/src/test/ui/span/issue28498-reject-ex1.rs b/tests/ui/span/issue28498-reject-ex1.rs similarity index 100% rename from src/test/ui/span/issue28498-reject-ex1.rs rename to tests/ui/span/issue28498-reject-ex1.rs diff --git a/src/test/ui/span/issue28498-reject-ex1.stderr b/tests/ui/span/issue28498-reject-ex1.stderr similarity index 100% rename from src/test/ui/span/issue28498-reject-ex1.stderr rename to tests/ui/span/issue28498-reject-ex1.stderr diff --git a/src/test/ui/span/issue28498-reject-lifetime-param.rs b/tests/ui/span/issue28498-reject-lifetime-param.rs similarity index 100% rename from src/test/ui/span/issue28498-reject-lifetime-param.rs rename to tests/ui/span/issue28498-reject-lifetime-param.rs diff --git a/src/test/ui/span/issue28498-reject-lifetime-param.stderr b/tests/ui/span/issue28498-reject-lifetime-param.stderr similarity index 100% rename from src/test/ui/span/issue28498-reject-lifetime-param.stderr rename to tests/ui/span/issue28498-reject-lifetime-param.stderr diff --git a/src/test/ui/span/issue28498-reject-passed-to-fn.rs b/tests/ui/span/issue28498-reject-passed-to-fn.rs similarity index 100% rename from src/test/ui/span/issue28498-reject-passed-to-fn.rs rename to tests/ui/span/issue28498-reject-passed-to-fn.rs diff --git a/src/test/ui/span/issue28498-reject-passed-to-fn.stderr b/tests/ui/span/issue28498-reject-passed-to-fn.stderr similarity index 100% rename from src/test/ui/span/issue28498-reject-passed-to-fn.stderr rename to tests/ui/span/issue28498-reject-passed-to-fn.stderr diff --git a/src/test/ui/span/issue28498-reject-trait-bound.rs b/tests/ui/span/issue28498-reject-trait-bound.rs similarity index 100% rename from src/test/ui/span/issue28498-reject-trait-bound.rs rename to tests/ui/span/issue28498-reject-trait-bound.rs diff --git a/src/test/ui/span/issue28498-reject-trait-bound.stderr b/tests/ui/span/issue28498-reject-trait-bound.stderr similarity index 100% rename from src/test/ui/span/issue28498-reject-trait-bound.stderr rename to tests/ui/span/issue28498-reject-trait-bound.stderr diff --git a/src/test/ui/span/lint-unused-unsafe-thir.rs b/tests/ui/span/lint-unused-unsafe-thir.rs similarity index 100% rename from src/test/ui/span/lint-unused-unsafe-thir.rs rename to tests/ui/span/lint-unused-unsafe-thir.rs diff --git a/src/test/ui/span/lint-unused-unsafe-thir.stderr b/tests/ui/span/lint-unused-unsafe-thir.stderr similarity index 100% rename from src/test/ui/span/lint-unused-unsafe-thir.stderr rename to tests/ui/span/lint-unused-unsafe-thir.stderr diff --git a/src/test/ui/span/lint-unused-unsafe.mir.stderr b/tests/ui/span/lint-unused-unsafe.mir.stderr similarity index 100% rename from src/test/ui/span/lint-unused-unsafe.mir.stderr rename to tests/ui/span/lint-unused-unsafe.mir.stderr diff --git a/src/test/ui/span/lint-unused-unsafe.rs b/tests/ui/span/lint-unused-unsafe.rs similarity index 100% rename from src/test/ui/span/lint-unused-unsafe.rs rename to tests/ui/span/lint-unused-unsafe.rs diff --git a/src/test/ui/span/macro-span-replacement.rs b/tests/ui/span/macro-span-replacement.rs similarity index 100% rename from src/test/ui/span/macro-span-replacement.rs rename to tests/ui/span/macro-span-replacement.rs diff --git a/src/test/ui/span/macro-span-replacement.stderr b/tests/ui/span/macro-span-replacement.stderr similarity index 100% rename from src/test/ui/span/macro-span-replacement.stderr rename to tests/ui/span/macro-span-replacement.stderr diff --git a/src/test/ui/span/macro-ty-params.rs b/tests/ui/span/macro-ty-params.rs similarity index 100% rename from src/test/ui/span/macro-ty-params.rs rename to tests/ui/span/macro-ty-params.rs diff --git a/src/test/ui/span/macro-ty-params.stderr b/tests/ui/span/macro-ty-params.stderr similarity index 100% rename from src/test/ui/span/macro-ty-params.stderr rename to tests/ui/span/macro-ty-params.stderr diff --git a/src/test/ui/span/method-and-field-eager-resolution.rs b/tests/ui/span/method-and-field-eager-resolution.rs similarity index 100% rename from src/test/ui/span/method-and-field-eager-resolution.rs rename to tests/ui/span/method-and-field-eager-resolution.rs diff --git a/src/test/ui/span/method-and-field-eager-resolution.stderr b/tests/ui/span/method-and-field-eager-resolution.stderr similarity index 100% rename from src/test/ui/span/method-and-field-eager-resolution.stderr rename to tests/ui/span/method-and-field-eager-resolution.stderr diff --git a/src/test/ui/span/missing-unit-argument.rs b/tests/ui/span/missing-unit-argument.rs similarity index 100% rename from src/test/ui/span/missing-unit-argument.rs rename to tests/ui/span/missing-unit-argument.rs diff --git a/src/test/ui/span/missing-unit-argument.stderr b/tests/ui/span/missing-unit-argument.stderr similarity index 100% rename from src/test/ui/span/missing-unit-argument.stderr rename to tests/ui/span/missing-unit-argument.stderr diff --git a/src/test/ui/span/move-closure.rs b/tests/ui/span/move-closure.rs similarity index 100% rename from src/test/ui/span/move-closure.rs rename to tests/ui/span/move-closure.rs diff --git a/src/test/ui/span/move-closure.stderr b/tests/ui/span/move-closure.stderr similarity index 100% rename from src/test/ui/span/move-closure.stderr rename to tests/ui/span/move-closure.stderr diff --git a/src/test/ui/span/multiline-span-E0072.rs b/tests/ui/span/multiline-span-E0072.rs similarity index 100% rename from src/test/ui/span/multiline-span-E0072.rs rename to tests/ui/span/multiline-span-E0072.rs diff --git a/src/test/ui/span/multiline-span-E0072.stderr b/tests/ui/span/multiline-span-E0072.stderr similarity index 100% rename from src/test/ui/span/multiline-span-E0072.stderr rename to tests/ui/span/multiline-span-E0072.stderr diff --git a/src/test/ui/span/multiline-span-simple.rs b/tests/ui/span/multiline-span-simple.rs similarity index 100% rename from src/test/ui/span/multiline-span-simple.rs rename to tests/ui/span/multiline-span-simple.rs diff --git a/src/test/ui/span/multiline-span-simple.stderr b/tests/ui/span/multiline-span-simple.stderr similarity index 100% rename from src/test/ui/span/multiline-span-simple.stderr rename to tests/ui/span/multiline-span-simple.stderr diff --git a/src/test/ui/span/multispan-import-lint.rs b/tests/ui/span/multispan-import-lint.rs similarity index 100% rename from src/test/ui/span/multispan-import-lint.rs rename to tests/ui/span/multispan-import-lint.rs diff --git a/src/test/ui/span/multispan-import-lint.stderr b/tests/ui/span/multispan-import-lint.stderr similarity index 100% rename from src/test/ui/span/multispan-import-lint.stderr rename to tests/ui/span/multispan-import-lint.stderr diff --git a/src/test/ui/span/mut-arg-hint.rs b/tests/ui/span/mut-arg-hint.rs similarity index 100% rename from src/test/ui/span/mut-arg-hint.rs rename to tests/ui/span/mut-arg-hint.rs diff --git a/src/test/ui/span/mut-arg-hint.stderr b/tests/ui/span/mut-arg-hint.stderr similarity index 100% rename from src/test/ui/span/mut-arg-hint.stderr rename to tests/ui/span/mut-arg-hint.stderr diff --git a/src/test/ui/span/mut-ptr-cant-outlive-ref.rs b/tests/ui/span/mut-ptr-cant-outlive-ref.rs similarity index 100% rename from src/test/ui/span/mut-ptr-cant-outlive-ref.rs rename to tests/ui/span/mut-ptr-cant-outlive-ref.rs diff --git a/src/test/ui/span/mut-ptr-cant-outlive-ref.stderr b/tests/ui/span/mut-ptr-cant-outlive-ref.stderr similarity index 100% rename from src/test/ui/span/mut-ptr-cant-outlive-ref.stderr rename to tests/ui/span/mut-ptr-cant-outlive-ref.stderr diff --git a/src/test/ui/span/non-existing-module-import.rs b/tests/ui/span/non-existing-module-import.rs similarity index 100% rename from src/test/ui/span/non-existing-module-import.rs rename to tests/ui/span/non-existing-module-import.rs diff --git a/src/test/ui/span/non-existing-module-import.stderr b/tests/ui/span/non-existing-module-import.stderr similarity index 100% rename from src/test/ui/span/non-existing-module-import.stderr rename to tests/ui/span/non-existing-module-import.stderr diff --git a/src/test/ui/span/pub-struct-field.rs b/tests/ui/span/pub-struct-field.rs similarity index 100% rename from src/test/ui/span/pub-struct-field.rs rename to tests/ui/span/pub-struct-field.rs diff --git a/src/test/ui/span/pub-struct-field.stderr b/tests/ui/span/pub-struct-field.stderr similarity index 100% rename from src/test/ui/span/pub-struct-field.stderr rename to tests/ui/span/pub-struct-field.stderr diff --git a/src/test/ui/span/range-2.rs b/tests/ui/span/range-2.rs similarity index 100% rename from src/test/ui/span/range-2.rs rename to tests/ui/span/range-2.rs diff --git a/src/test/ui/span/range-2.stderr b/tests/ui/span/range-2.stderr similarity index 100% rename from src/test/ui/span/range-2.stderr rename to tests/ui/span/range-2.stderr diff --git a/src/test/ui/span/recursive-type-field.rs b/tests/ui/span/recursive-type-field.rs similarity index 100% rename from src/test/ui/span/recursive-type-field.rs rename to tests/ui/span/recursive-type-field.rs diff --git a/src/test/ui/span/recursive-type-field.stderr b/tests/ui/span/recursive-type-field.stderr similarity index 100% rename from src/test/ui/span/recursive-type-field.stderr rename to tests/ui/span/recursive-type-field.stderr diff --git a/src/test/ui/span/regionck-unboxed-closure-lifetimes.rs b/tests/ui/span/regionck-unboxed-closure-lifetimes.rs similarity index 100% rename from src/test/ui/span/regionck-unboxed-closure-lifetimes.rs rename to tests/ui/span/regionck-unboxed-closure-lifetimes.rs diff --git a/src/test/ui/span/regionck-unboxed-closure-lifetimes.stderr b/tests/ui/span/regionck-unboxed-closure-lifetimes.stderr similarity index 100% rename from src/test/ui/span/regionck-unboxed-closure-lifetimes.stderr rename to tests/ui/span/regionck-unboxed-closure-lifetimes.stderr diff --git a/src/test/ui/span/regions-close-over-borrowed-ref-in-obj.rs b/tests/ui/span/regions-close-over-borrowed-ref-in-obj.rs similarity index 100% rename from src/test/ui/span/regions-close-over-borrowed-ref-in-obj.rs rename to tests/ui/span/regions-close-over-borrowed-ref-in-obj.rs diff --git a/src/test/ui/span/regions-close-over-borrowed-ref-in-obj.stderr b/tests/ui/span/regions-close-over-borrowed-ref-in-obj.stderr similarity index 100% rename from src/test/ui/span/regions-close-over-borrowed-ref-in-obj.stderr rename to tests/ui/span/regions-close-over-borrowed-ref-in-obj.stderr diff --git a/src/test/ui/span/regions-close-over-type-parameter-2.rs b/tests/ui/span/regions-close-over-type-parameter-2.rs similarity index 100% rename from src/test/ui/span/regions-close-over-type-parameter-2.rs rename to tests/ui/span/regions-close-over-type-parameter-2.rs diff --git a/src/test/ui/span/regions-close-over-type-parameter-2.stderr b/tests/ui/span/regions-close-over-type-parameter-2.stderr similarity index 100% rename from src/test/ui/span/regions-close-over-type-parameter-2.stderr rename to tests/ui/span/regions-close-over-type-parameter-2.stderr diff --git a/src/test/ui/span/regions-escape-loop-via-variable.rs b/tests/ui/span/regions-escape-loop-via-variable.rs similarity index 100% rename from src/test/ui/span/regions-escape-loop-via-variable.rs rename to tests/ui/span/regions-escape-loop-via-variable.rs diff --git a/src/test/ui/span/regions-escape-loop-via-variable.stderr b/tests/ui/span/regions-escape-loop-via-variable.stderr similarity index 100% rename from src/test/ui/span/regions-escape-loop-via-variable.stderr rename to tests/ui/span/regions-escape-loop-via-variable.stderr diff --git a/src/test/ui/span/regions-escape-loop-via-vec.rs b/tests/ui/span/regions-escape-loop-via-vec.rs similarity index 100% rename from src/test/ui/span/regions-escape-loop-via-vec.rs rename to tests/ui/span/regions-escape-loop-via-vec.rs diff --git a/src/test/ui/span/regions-escape-loop-via-vec.stderr b/tests/ui/span/regions-escape-loop-via-vec.stderr similarity index 100% rename from src/test/ui/span/regions-escape-loop-via-vec.stderr rename to tests/ui/span/regions-escape-loop-via-vec.stderr diff --git a/src/test/ui/span/regions-infer-borrow-scope-within-loop.rs b/tests/ui/span/regions-infer-borrow-scope-within-loop.rs similarity index 100% rename from src/test/ui/span/regions-infer-borrow-scope-within-loop.rs rename to tests/ui/span/regions-infer-borrow-scope-within-loop.rs diff --git a/src/test/ui/span/regions-infer-borrow-scope-within-loop.stderr b/tests/ui/span/regions-infer-borrow-scope-within-loop.stderr similarity index 100% rename from src/test/ui/span/regions-infer-borrow-scope-within-loop.stderr rename to tests/ui/span/regions-infer-borrow-scope-within-loop.stderr diff --git a/src/test/ui/span/send-is-not-static-ensures-scoping.rs b/tests/ui/span/send-is-not-static-ensures-scoping.rs similarity index 100% rename from src/test/ui/span/send-is-not-static-ensures-scoping.rs rename to tests/ui/span/send-is-not-static-ensures-scoping.rs diff --git a/src/test/ui/span/send-is-not-static-ensures-scoping.stderr b/tests/ui/span/send-is-not-static-ensures-scoping.stderr similarity index 100% rename from src/test/ui/span/send-is-not-static-ensures-scoping.stderr rename to tests/ui/span/send-is-not-static-ensures-scoping.stderr diff --git a/src/test/ui/span/send-is-not-static-std-sync-2.rs b/tests/ui/span/send-is-not-static-std-sync-2.rs similarity index 100% rename from src/test/ui/span/send-is-not-static-std-sync-2.rs rename to tests/ui/span/send-is-not-static-std-sync-2.rs diff --git a/src/test/ui/span/send-is-not-static-std-sync-2.stderr b/tests/ui/span/send-is-not-static-std-sync-2.stderr similarity index 100% rename from src/test/ui/span/send-is-not-static-std-sync-2.stderr rename to tests/ui/span/send-is-not-static-std-sync-2.stderr diff --git a/src/test/ui/span/send-is-not-static-std-sync.rs b/tests/ui/span/send-is-not-static-std-sync.rs similarity index 100% rename from src/test/ui/span/send-is-not-static-std-sync.rs rename to tests/ui/span/send-is-not-static-std-sync.rs diff --git a/src/test/ui/span/send-is-not-static-std-sync.stderr b/tests/ui/span/send-is-not-static-std-sync.stderr similarity index 100% rename from src/test/ui/span/send-is-not-static-std-sync.stderr rename to tests/ui/span/send-is-not-static-std-sync.stderr diff --git a/src/test/ui/span/slice-borrow.rs b/tests/ui/span/slice-borrow.rs similarity index 100% rename from src/test/ui/span/slice-borrow.rs rename to tests/ui/span/slice-borrow.rs diff --git a/src/test/ui/span/slice-borrow.stderr b/tests/ui/span/slice-borrow.stderr similarity index 100% rename from src/test/ui/span/slice-borrow.stderr rename to tests/ui/span/slice-borrow.stderr diff --git a/src/test/ui/span/suggestion-non-ascii.rs b/tests/ui/span/suggestion-non-ascii.rs similarity index 100% rename from src/test/ui/span/suggestion-non-ascii.rs rename to tests/ui/span/suggestion-non-ascii.rs diff --git a/src/test/ui/span/suggestion-non-ascii.stderr b/tests/ui/span/suggestion-non-ascii.stderr similarity index 100% rename from src/test/ui/span/suggestion-non-ascii.stderr rename to tests/ui/span/suggestion-non-ascii.stderr diff --git a/src/test/ui/span/transitive-dep-span.rs b/tests/ui/span/transitive-dep-span.rs similarity index 100% rename from src/test/ui/span/transitive-dep-span.rs rename to tests/ui/span/transitive-dep-span.rs diff --git a/src/test/ui/span/transitive-dep-span.stderr b/tests/ui/span/transitive-dep-span.stderr similarity index 100% rename from src/test/ui/span/transitive-dep-span.stderr rename to tests/ui/span/transitive-dep-span.stderr diff --git a/src/test/ui/span/type-annotations-needed-expr.rs b/tests/ui/span/type-annotations-needed-expr.rs similarity index 100% rename from src/test/ui/span/type-annotations-needed-expr.rs rename to tests/ui/span/type-annotations-needed-expr.rs diff --git a/src/test/ui/span/type-annotations-needed-expr.stderr b/tests/ui/span/type-annotations-needed-expr.stderr similarity index 100% rename from src/test/ui/span/type-annotations-needed-expr.stderr rename to tests/ui/span/type-annotations-needed-expr.stderr diff --git a/src/test/ui/span/type-binding.rs b/tests/ui/span/type-binding.rs similarity index 100% rename from src/test/ui/span/type-binding.rs rename to tests/ui/span/type-binding.rs diff --git a/src/test/ui/span/type-binding.stderr b/tests/ui/span/type-binding.stderr similarity index 100% rename from src/test/ui/span/type-binding.stderr rename to tests/ui/span/type-binding.stderr diff --git a/src/test/ui/span/typo-suggestion.rs b/tests/ui/span/typo-suggestion.rs similarity index 100% rename from src/test/ui/span/typo-suggestion.rs rename to tests/ui/span/typo-suggestion.rs diff --git a/src/test/ui/span/typo-suggestion.stderr b/tests/ui/span/typo-suggestion.stderr similarity index 100% rename from src/test/ui/span/typo-suggestion.stderr rename to tests/ui/span/typo-suggestion.stderr diff --git a/src/test/ui/span/unused-warning-point-at-identifier.rs b/tests/ui/span/unused-warning-point-at-identifier.rs similarity index 100% rename from src/test/ui/span/unused-warning-point-at-identifier.rs rename to tests/ui/span/unused-warning-point-at-identifier.rs diff --git a/src/test/ui/span/unused-warning-point-at-identifier.stderr b/tests/ui/span/unused-warning-point-at-identifier.stderr similarity index 100% rename from src/test/ui/span/unused-warning-point-at-identifier.stderr rename to tests/ui/span/unused-warning-point-at-identifier.stderr diff --git a/src/test/ui/span/vec-must-not-hide-type-from-dropck.rs b/tests/ui/span/vec-must-not-hide-type-from-dropck.rs similarity index 100% rename from src/test/ui/span/vec-must-not-hide-type-from-dropck.rs rename to tests/ui/span/vec-must-not-hide-type-from-dropck.rs diff --git a/src/test/ui/span/vec-must-not-hide-type-from-dropck.stderr b/tests/ui/span/vec-must-not-hide-type-from-dropck.stderr similarity index 100% rename from src/test/ui/span/vec-must-not-hide-type-from-dropck.stderr rename to tests/ui/span/vec-must-not-hide-type-from-dropck.stderr diff --git a/src/test/ui/span/vec_refs_data_with_early_death.rs b/tests/ui/span/vec_refs_data_with_early_death.rs similarity index 100% rename from src/test/ui/span/vec_refs_data_with_early_death.rs rename to tests/ui/span/vec_refs_data_with_early_death.rs diff --git a/src/test/ui/span/vec_refs_data_with_early_death.stderr b/tests/ui/span/vec_refs_data_with_early_death.stderr similarity index 100% rename from src/test/ui/span/vec_refs_data_with_early_death.stderr rename to tests/ui/span/vec_refs_data_with_early_death.stderr diff --git a/src/test/ui/span/visibility-ty-params.rs b/tests/ui/span/visibility-ty-params.rs similarity index 100% rename from src/test/ui/span/visibility-ty-params.rs rename to tests/ui/span/visibility-ty-params.rs diff --git a/src/test/ui/span/visibility-ty-params.stderr b/tests/ui/span/visibility-ty-params.stderr similarity index 100% rename from src/test/ui/span/visibility-ty-params.stderr rename to tests/ui/span/visibility-ty-params.stderr diff --git a/src/test/ui/span/wf-method-late-bound-regions.rs b/tests/ui/span/wf-method-late-bound-regions.rs similarity index 100% rename from src/test/ui/span/wf-method-late-bound-regions.rs rename to tests/ui/span/wf-method-late-bound-regions.rs diff --git a/src/test/ui/span/wf-method-late-bound-regions.stderr b/tests/ui/span/wf-method-late-bound-regions.stderr similarity index 100% rename from src/test/ui/span/wf-method-late-bound-regions.stderr rename to tests/ui/span/wf-method-late-bound-regions.stderr diff --git a/src/test/ui/specialization/README-rpass.md b/tests/ui/specialization/README-rpass.md similarity index 100% rename from src/test/ui/specialization/README-rpass.md rename to tests/ui/specialization/README-rpass.md diff --git a/src/test/ui/specialization/README.md b/tests/ui/specialization/README.md similarity index 100% rename from src/test/ui/specialization/README.md rename to tests/ui/specialization/README.md diff --git a/src/test/ui/specialization/assoc-ty-graph-cycle.rs b/tests/ui/specialization/assoc-ty-graph-cycle.rs similarity index 100% rename from src/test/ui/specialization/assoc-ty-graph-cycle.rs rename to tests/ui/specialization/assoc-ty-graph-cycle.rs diff --git a/src/test/ui/specialization/assoc-ty-graph-cycle.stderr b/tests/ui/specialization/assoc-ty-graph-cycle.stderr similarity index 100% rename from src/test/ui/specialization/assoc-ty-graph-cycle.stderr rename to tests/ui/specialization/assoc-ty-graph-cycle.stderr diff --git a/src/test/ui/specialization/auxiliary/cross_crates_defaults.rs b/tests/ui/specialization/auxiliary/cross_crates_defaults.rs similarity index 100% rename from src/test/ui/specialization/auxiliary/cross_crates_defaults.rs rename to tests/ui/specialization/auxiliary/cross_crates_defaults.rs diff --git a/src/test/ui/specialization/auxiliary/go_trait.rs b/tests/ui/specialization/auxiliary/go_trait.rs similarity index 100% rename from src/test/ui/specialization/auxiliary/go_trait.rs rename to tests/ui/specialization/auxiliary/go_trait.rs diff --git a/src/test/ui/specialization/auxiliary/specialization_cross_crate.rs b/tests/ui/specialization/auxiliary/specialization_cross_crate.rs similarity index 100% rename from src/test/ui/specialization/auxiliary/specialization_cross_crate.rs rename to tests/ui/specialization/auxiliary/specialization_cross_crate.rs diff --git a/src/test/ui/specialization/const_trait_impl.rs b/tests/ui/specialization/const_trait_impl.rs similarity index 100% rename from src/test/ui/specialization/const_trait_impl.rs rename to tests/ui/specialization/const_trait_impl.rs diff --git a/src/test/ui/specialization/cross-crate-defaults.rs b/tests/ui/specialization/cross-crate-defaults.rs similarity index 100% rename from src/test/ui/specialization/cross-crate-defaults.rs rename to tests/ui/specialization/cross-crate-defaults.rs diff --git a/src/test/ui/specialization/cross-crate-defaults.stderr b/tests/ui/specialization/cross-crate-defaults.stderr similarity index 100% rename from src/test/ui/specialization/cross-crate-defaults.stderr rename to tests/ui/specialization/cross-crate-defaults.stderr diff --git a/src/test/ui/specialization/default-associated-type-bound-1.rs b/tests/ui/specialization/default-associated-type-bound-1.rs similarity index 100% rename from src/test/ui/specialization/default-associated-type-bound-1.rs rename to tests/ui/specialization/default-associated-type-bound-1.rs diff --git a/src/test/ui/specialization/default-associated-type-bound-1.stderr b/tests/ui/specialization/default-associated-type-bound-1.stderr similarity index 100% rename from src/test/ui/specialization/default-associated-type-bound-1.stderr rename to tests/ui/specialization/default-associated-type-bound-1.stderr diff --git a/src/test/ui/specialization/default-associated-type-bound-2.rs b/tests/ui/specialization/default-associated-type-bound-2.rs similarity index 100% rename from src/test/ui/specialization/default-associated-type-bound-2.rs rename to tests/ui/specialization/default-associated-type-bound-2.rs diff --git a/src/test/ui/specialization/default-associated-type-bound-2.stderr b/tests/ui/specialization/default-associated-type-bound-2.stderr similarity index 100% rename from src/test/ui/specialization/default-associated-type-bound-2.stderr rename to tests/ui/specialization/default-associated-type-bound-2.stderr diff --git a/src/test/ui/specialization/default-generic-associated-type-bound.rs b/tests/ui/specialization/default-generic-associated-type-bound.rs similarity index 100% rename from src/test/ui/specialization/default-generic-associated-type-bound.rs rename to tests/ui/specialization/default-generic-associated-type-bound.rs diff --git a/src/test/ui/specialization/default-generic-associated-type-bound.stderr b/tests/ui/specialization/default-generic-associated-type-bound.stderr similarity index 100% rename from src/test/ui/specialization/default-generic-associated-type-bound.stderr rename to tests/ui/specialization/default-generic-associated-type-bound.stderr diff --git a/src/test/ui/specialization/defaultimpl/allowed-cross-crate.rs b/tests/ui/specialization/defaultimpl/allowed-cross-crate.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/allowed-cross-crate.rs rename to tests/ui/specialization/defaultimpl/allowed-cross-crate.rs diff --git a/src/test/ui/specialization/defaultimpl/allowed-cross-crate.stderr b/tests/ui/specialization/defaultimpl/allowed-cross-crate.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/allowed-cross-crate.stderr rename to tests/ui/specialization/defaultimpl/allowed-cross-crate.stderr diff --git a/src/test/ui/specialization/defaultimpl/auxiliary/go_trait.rs b/tests/ui/specialization/defaultimpl/auxiliary/go_trait.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/auxiliary/go_trait.rs rename to tests/ui/specialization/defaultimpl/auxiliary/go_trait.rs diff --git a/src/test/ui/specialization/defaultimpl/out-of-order.rs b/tests/ui/specialization/defaultimpl/out-of-order.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/out-of-order.rs rename to tests/ui/specialization/defaultimpl/out-of-order.rs diff --git a/src/test/ui/specialization/defaultimpl/out-of-order.stderr b/tests/ui/specialization/defaultimpl/out-of-order.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/out-of-order.stderr rename to tests/ui/specialization/defaultimpl/out-of-order.stderr diff --git a/src/test/ui/specialization/defaultimpl/overlap-projection.rs b/tests/ui/specialization/defaultimpl/overlap-projection.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/overlap-projection.rs rename to tests/ui/specialization/defaultimpl/overlap-projection.rs diff --git a/src/test/ui/specialization/defaultimpl/overlap-projection.stderr b/tests/ui/specialization/defaultimpl/overlap-projection.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/overlap-projection.stderr rename to tests/ui/specialization/defaultimpl/overlap-projection.stderr diff --git a/src/test/ui/specialization/defaultimpl/projection.rs b/tests/ui/specialization/defaultimpl/projection.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/projection.rs rename to tests/ui/specialization/defaultimpl/projection.rs diff --git a/src/test/ui/specialization/defaultimpl/projection.stderr b/tests/ui/specialization/defaultimpl/projection.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/projection.stderr rename to tests/ui/specialization/defaultimpl/projection.stderr diff --git a/src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.rs b/tests/ui/specialization/defaultimpl/specialization-feature-gate-default.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.rs rename to tests/ui/specialization/defaultimpl/specialization-feature-gate-default.rs diff --git a/src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr b/tests/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr rename to tests/ui/specialization/defaultimpl/specialization-feature-gate-default.stderr diff --git a/src/test/ui/specialization/defaultimpl/specialization-no-default.rs b/tests/ui/specialization/defaultimpl/specialization-no-default.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-no-default.rs rename to tests/ui/specialization/defaultimpl/specialization-no-default.rs diff --git a/src/test/ui/specialization/defaultimpl/specialization-no-default.stderr b/tests/ui/specialization/defaultimpl/specialization-no-default.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-no-default.stderr rename to tests/ui/specialization/defaultimpl/specialization-no-default.stderr diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.rs b/tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.rs rename to tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.rs diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.stderr b/tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.stderr rename to tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented-rpass.stderr diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.rs b/tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.rs rename to tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.rs diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr b/tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr rename to tests/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.rs b/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.rs rename to tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.rs diff --git a/src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr b/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr rename to tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr diff --git a/src/test/ui/specialization/defaultimpl/specialization-wfcheck.rs b/tests/ui/specialization/defaultimpl/specialization-wfcheck.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-wfcheck.rs rename to tests/ui/specialization/defaultimpl/specialization-wfcheck.rs diff --git a/src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr b/tests/ui/specialization/defaultimpl/specialization-wfcheck.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/specialization-wfcheck.stderr rename to tests/ui/specialization/defaultimpl/specialization-wfcheck.stderr diff --git a/src/test/ui/specialization/defaultimpl/validation.rs b/tests/ui/specialization/defaultimpl/validation.rs similarity index 100% rename from src/test/ui/specialization/defaultimpl/validation.rs rename to tests/ui/specialization/defaultimpl/validation.rs diff --git a/src/test/ui/specialization/defaultimpl/validation.stderr b/tests/ui/specialization/defaultimpl/validation.stderr similarity index 100% rename from src/test/ui/specialization/defaultimpl/validation.stderr rename to tests/ui/specialization/defaultimpl/validation.stderr diff --git a/src/test/ui/specialization/issue-33017.rs b/tests/ui/specialization/issue-33017.rs similarity index 100% rename from src/test/ui/specialization/issue-33017.rs rename to tests/ui/specialization/issue-33017.rs diff --git a/src/test/ui/specialization/issue-33017.stderr b/tests/ui/specialization/issue-33017.stderr similarity index 100% rename from src/test/ui/specialization/issue-33017.stderr rename to tests/ui/specialization/issue-33017.stderr diff --git a/src/test/ui/specialization/issue-35376.rs b/tests/ui/specialization/issue-35376.rs similarity index 100% rename from src/test/ui/specialization/issue-35376.rs rename to tests/ui/specialization/issue-35376.rs diff --git a/src/test/ui/specialization/issue-35376.stderr b/tests/ui/specialization/issue-35376.stderr similarity index 100% rename from src/test/ui/specialization/issue-35376.stderr rename to tests/ui/specialization/issue-35376.stderr diff --git a/src/test/ui/specialization/issue-36804.rs b/tests/ui/specialization/issue-36804.rs similarity index 100% rename from src/test/ui/specialization/issue-36804.rs rename to tests/ui/specialization/issue-36804.rs diff --git a/src/test/ui/specialization/issue-36804.stderr b/tests/ui/specialization/issue-36804.stderr similarity index 100% rename from src/test/ui/specialization/issue-36804.stderr rename to tests/ui/specialization/issue-36804.stderr diff --git a/src/test/ui/specialization/issue-38091-2.rs b/tests/ui/specialization/issue-38091-2.rs similarity index 100% rename from src/test/ui/specialization/issue-38091-2.rs rename to tests/ui/specialization/issue-38091-2.rs diff --git a/src/test/ui/specialization/issue-38091-2.stderr b/tests/ui/specialization/issue-38091-2.stderr similarity index 100% rename from src/test/ui/specialization/issue-38091-2.stderr rename to tests/ui/specialization/issue-38091-2.stderr diff --git a/src/test/ui/specialization/issue-38091.rs b/tests/ui/specialization/issue-38091.rs similarity index 100% rename from src/test/ui/specialization/issue-38091.rs rename to tests/ui/specialization/issue-38091.rs diff --git a/src/test/ui/specialization/issue-38091.stderr b/tests/ui/specialization/issue-38091.stderr similarity index 100% rename from src/test/ui/specialization/issue-38091.stderr rename to tests/ui/specialization/issue-38091.stderr diff --git a/src/test/ui/specialization/issue-39448.rs b/tests/ui/specialization/issue-39448.rs similarity index 100% rename from src/test/ui/specialization/issue-39448.rs rename to tests/ui/specialization/issue-39448.rs diff --git a/src/test/ui/specialization/issue-39448.stderr b/tests/ui/specialization/issue-39448.stderr similarity index 100% rename from src/test/ui/specialization/issue-39448.stderr rename to tests/ui/specialization/issue-39448.stderr diff --git a/src/test/ui/specialization/issue-39618.rs b/tests/ui/specialization/issue-39618.rs similarity index 100% rename from src/test/ui/specialization/issue-39618.rs rename to tests/ui/specialization/issue-39618.rs diff --git a/src/test/ui/specialization/issue-39618.stderr b/tests/ui/specialization/issue-39618.stderr similarity index 100% rename from src/test/ui/specialization/issue-39618.stderr rename to tests/ui/specialization/issue-39618.stderr diff --git a/src/test/ui/specialization/issue-43037.current.stderr b/tests/ui/specialization/issue-43037.current.stderr similarity index 100% rename from src/test/ui/specialization/issue-43037.current.stderr rename to tests/ui/specialization/issue-43037.current.stderr diff --git a/src/test/ui/specialization/issue-43037.negative.stderr b/tests/ui/specialization/issue-43037.negative.stderr similarity index 100% rename from src/test/ui/specialization/issue-43037.negative.stderr rename to tests/ui/specialization/issue-43037.negative.stderr diff --git a/src/test/ui/specialization/issue-43037.rs b/tests/ui/specialization/issue-43037.rs similarity index 100% rename from src/test/ui/specialization/issue-43037.rs rename to tests/ui/specialization/issue-43037.rs diff --git a/src/test/ui/specialization/issue-44861.rs b/tests/ui/specialization/issue-44861.rs similarity index 100% rename from src/test/ui/specialization/issue-44861.rs rename to tests/ui/specialization/issue-44861.rs diff --git a/src/test/ui/specialization/issue-44861.stderr b/tests/ui/specialization/issue-44861.stderr similarity index 100% rename from src/test/ui/specialization/issue-44861.stderr rename to tests/ui/specialization/issue-44861.stderr diff --git a/src/test/ui/specialization/issue-45814.current.stderr b/tests/ui/specialization/issue-45814.current.stderr similarity index 100% rename from src/test/ui/specialization/issue-45814.current.stderr rename to tests/ui/specialization/issue-45814.current.stderr diff --git a/src/test/ui/specialization/issue-45814.negative.stderr b/tests/ui/specialization/issue-45814.negative.stderr similarity index 100% rename from src/test/ui/specialization/issue-45814.negative.stderr rename to tests/ui/specialization/issue-45814.negative.stderr diff --git a/src/test/ui/specialization/issue-45814.rs b/tests/ui/specialization/issue-45814.rs similarity index 100% rename from src/test/ui/specialization/issue-45814.rs rename to tests/ui/specialization/issue-45814.rs diff --git a/src/test/ui/specialization/issue-50452-fail.rs b/tests/ui/specialization/issue-50452-fail.rs similarity index 100% rename from src/test/ui/specialization/issue-50452-fail.rs rename to tests/ui/specialization/issue-50452-fail.rs diff --git a/src/test/ui/specialization/issue-50452-fail.stderr b/tests/ui/specialization/issue-50452-fail.stderr similarity index 100% rename from src/test/ui/specialization/issue-50452-fail.stderr rename to tests/ui/specialization/issue-50452-fail.stderr diff --git a/src/test/ui/specialization/issue-50452.rs b/tests/ui/specialization/issue-50452.rs similarity index 100% rename from src/test/ui/specialization/issue-50452.rs rename to tests/ui/specialization/issue-50452.rs diff --git a/src/test/ui/specialization/issue-50452.stderr b/tests/ui/specialization/issue-50452.stderr similarity index 100% rename from src/test/ui/specialization/issue-50452.stderr rename to tests/ui/specialization/issue-50452.stderr diff --git a/src/test/ui/specialization/issue-51892.rs b/tests/ui/specialization/issue-51892.rs similarity index 100% rename from src/test/ui/specialization/issue-51892.rs rename to tests/ui/specialization/issue-51892.rs diff --git a/src/test/ui/specialization/issue-51892.stderr b/tests/ui/specialization/issue-51892.stderr similarity index 100% rename from src/test/ui/specialization/issue-51892.stderr rename to tests/ui/specialization/issue-51892.stderr diff --git a/src/test/ui/specialization/issue-52050.rs b/tests/ui/specialization/issue-52050.rs similarity index 100% rename from src/test/ui/specialization/issue-52050.rs rename to tests/ui/specialization/issue-52050.rs diff --git a/src/test/ui/specialization/issue-52050.stderr b/tests/ui/specialization/issue-52050.stderr similarity index 100% rename from src/test/ui/specialization/issue-52050.stderr rename to tests/ui/specialization/issue-52050.stderr diff --git a/src/test/ui/specialization/issue-59435.rs b/tests/ui/specialization/issue-59435.rs similarity index 100% rename from src/test/ui/specialization/issue-59435.rs rename to tests/ui/specialization/issue-59435.rs diff --git a/src/test/ui/specialization/issue-59435.stderr b/tests/ui/specialization/issue-59435.stderr similarity index 100% rename from src/test/ui/specialization/issue-59435.stderr rename to tests/ui/specialization/issue-59435.stderr diff --git a/src/test/ui/specialization/issue-63716-parse-async.rs b/tests/ui/specialization/issue-63716-parse-async.rs similarity index 100% rename from src/test/ui/specialization/issue-63716-parse-async.rs rename to tests/ui/specialization/issue-63716-parse-async.rs diff --git a/src/test/ui/specialization/issue-63716-parse-async.stderr b/tests/ui/specialization/issue-63716-parse-async.stderr similarity index 100% rename from src/test/ui/specialization/issue-63716-parse-async.stderr rename to tests/ui/specialization/issue-63716-parse-async.stderr diff --git a/src/test/ui/specialization/issue-68830-spurious-diagnostics.rs b/tests/ui/specialization/issue-68830-spurious-diagnostics.rs similarity index 100% rename from src/test/ui/specialization/issue-68830-spurious-diagnostics.rs rename to tests/ui/specialization/issue-68830-spurious-diagnostics.rs diff --git a/src/test/ui/specialization/issue-68830-spurious-diagnostics.stderr b/tests/ui/specialization/issue-68830-spurious-diagnostics.stderr similarity index 100% rename from src/test/ui/specialization/issue-68830-spurious-diagnostics.stderr rename to tests/ui/specialization/issue-68830-spurious-diagnostics.stderr diff --git a/src/test/ui/specialization/issue-70442.rs b/tests/ui/specialization/issue-70442.rs similarity index 100% rename from src/test/ui/specialization/issue-70442.rs rename to tests/ui/specialization/issue-70442.rs diff --git a/src/test/ui/specialization/issue-70442.stderr b/tests/ui/specialization/issue-70442.stderr similarity index 100% rename from src/test/ui/specialization/issue-70442.stderr rename to tests/ui/specialization/issue-70442.stderr diff --git a/src/test/ui/specialization/min_specialization/auxiliary/specialization-trait.rs b/tests/ui/specialization/min_specialization/auxiliary/specialization-trait.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/auxiliary/specialization-trait.rs rename to tests/ui/specialization/min_specialization/auxiliary/specialization-trait.rs diff --git a/src/test/ui/specialization/min_specialization/dyn-trait-assoc-types.rs b/tests/ui/specialization/min_specialization/dyn-trait-assoc-types.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/dyn-trait-assoc-types.rs rename to tests/ui/specialization/min_specialization/dyn-trait-assoc-types.rs diff --git a/src/test/ui/specialization/min_specialization/dyn-trait-assoc-types.stderr b/tests/ui/specialization/min_specialization/dyn-trait-assoc-types.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/dyn-trait-assoc-types.stderr rename to tests/ui/specialization/min_specialization/dyn-trait-assoc-types.stderr diff --git a/src/test/ui/specialization/min_specialization/impl-on-nonexisting.rs b/tests/ui/specialization/min_specialization/impl-on-nonexisting.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/impl-on-nonexisting.rs rename to tests/ui/specialization/min_specialization/impl-on-nonexisting.rs diff --git a/src/test/ui/specialization/min_specialization/impl-on-nonexisting.stderr b/tests/ui/specialization/min_specialization/impl-on-nonexisting.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/impl-on-nonexisting.stderr rename to tests/ui/specialization/min_specialization/impl-on-nonexisting.stderr diff --git a/src/test/ui/specialization/min_specialization/impl_specialization_trait.rs b/tests/ui/specialization/min_specialization/impl_specialization_trait.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/impl_specialization_trait.rs rename to tests/ui/specialization/min_specialization/impl_specialization_trait.rs diff --git a/src/test/ui/specialization/min_specialization/impl_specialization_trait.stderr b/tests/ui/specialization/min_specialization/impl_specialization_trait.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/impl_specialization_trait.stderr rename to tests/ui/specialization/min_specialization/impl_specialization_trait.stderr diff --git a/src/test/ui/specialization/min_specialization/implcit-well-formed-bounds.rs b/tests/ui/specialization/min_specialization/implcit-well-formed-bounds.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/implcit-well-formed-bounds.rs rename to tests/ui/specialization/min_specialization/implcit-well-formed-bounds.rs diff --git a/src/test/ui/specialization/min_specialization/issue-79224.rs b/tests/ui/specialization/min_specialization/issue-79224.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/issue-79224.rs rename to tests/ui/specialization/min_specialization/issue-79224.rs diff --git a/src/test/ui/specialization/min_specialization/issue-79224.stderr b/tests/ui/specialization/min_specialization/issue-79224.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/issue-79224.stderr rename to tests/ui/specialization/min_specialization/issue-79224.stderr diff --git a/src/test/ui/specialization/min_specialization/repeated_projection_type.rs b/tests/ui/specialization/min_specialization/repeated_projection_type.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/repeated_projection_type.rs rename to tests/ui/specialization/min_specialization/repeated_projection_type.rs diff --git a/src/test/ui/specialization/min_specialization/repeated_projection_type.stderr b/tests/ui/specialization/min_specialization/repeated_projection_type.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/repeated_projection_type.stderr rename to tests/ui/specialization/min_specialization/repeated_projection_type.stderr diff --git a/src/test/ui/specialization/min_specialization/repeating_lifetimes.rs b/tests/ui/specialization/min_specialization/repeating_lifetimes.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/repeating_lifetimes.rs rename to tests/ui/specialization/min_specialization/repeating_lifetimes.rs diff --git a/src/test/ui/specialization/min_specialization/repeating_lifetimes.stderr b/tests/ui/specialization/min_specialization/repeating_lifetimes.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/repeating_lifetimes.stderr rename to tests/ui/specialization/min_specialization/repeating_lifetimes.stderr diff --git a/src/test/ui/specialization/min_specialization/repeating_param.rs b/tests/ui/specialization/min_specialization/repeating_param.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/repeating_param.rs rename to tests/ui/specialization/min_specialization/repeating_param.rs diff --git a/src/test/ui/specialization/min_specialization/repeating_param.stderr b/tests/ui/specialization/min_specialization/repeating_param.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/repeating_param.stderr rename to tests/ui/specialization/min_specialization/repeating_param.stderr diff --git a/src/test/ui/specialization/min_specialization/spec-iter.rs b/tests/ui/specialization/min_specialization/spec-iter.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/spec-iter.rs rename to tests/ui/specialization/min_specialization/spec-iter.rs diff --git a/src/test/ui/specialization/min_specialization/spec-marker-supertraits.rs b/tests/ui/specialization/min_specialization/spec-marker-supertraits.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/spec-marker-supertraits.rs rename to tests/ui/specialization/min_specialization/spec-marker-supertraits.rs diff --git a/src/test/ui/specialization/min_specialization/spec-marker-supertraits.stderr b/tests/ui/specialization/min_specialization/spec-marker-supertraits.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/spec-marker-supertraits.stderr rename to tests/ui/specialization/min_specialization/spec-marker-supertraits.stderr diff --git a/src/test/ui/specialization/min_specialization/spec-reference.rs b/tests/ui/specialization/min_specialization/spec-reference.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/spec-reference.rs rename to tests/ui/specialization/min_specialization/spec-reference.rs diff --git a/src/test/ui/specialization/min_specialization/specialization_marker.rs b/tests/ui/specialization/min_specialization/specialization_marker.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialization_marker.rs rename to tests/ui/specialization/min_specialization/specialization_marker.rs diff --git a/src/test/ui/specialization/min_specialization/specialization_marker.stderr b/tests/ui/specialization/min_specialization/specialization_marker.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/specialization_marker.stderr rename to tests/ui/specialization/min_specialization/specialization_marker.stderr diff --git a/src/test/ui/specialization/min_specialization/specialization_super_trait.rs b/tests/ui/specialization/min_specialization/specialization_super_trait.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialization_super_trait.rs rename to tests/ui/specialization/min_specialization/specialization_super_trait.rs diff --git a/src/test/ui/specialization/min_specialization/specialization_super_trait.stderr b/tests/ui/specialization/min_specialization/specialization_super_trait.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/specialization_super_trait.stderr rename to tests/ui/specialization/min_specialization/specialization_super_trait.stderr diff --git a/src/test/ui/specialization/min_specialization/specialization_trait.rs b/tests/ui/specialization/min_specialization/specialization_trait.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialization_trait.rs rename to tests/ui/specialization/min_specialization/specialization_trait.rs diff --git a/src/test/ui/specialization/min_specialization/specialization_trait.stderr b/tests/ui/specialization/min_specialization/specialization_trait.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/specialization_trait.stderr rename to tests/ui/specialization/min_specialization/specialization_trait.stderr diff --git a/src/test/ui/specialization/min_specialization/specialize_on_marker.rs b/tests/ui/specialization/min_specialization/specialize_on_marker.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialize_on_marker.rs rename to tests/ui/specialization/min_specialization/specialize_on_marker.rs diff --git a/src/test/ui/specialization/min_specialization/specialize_on_spec_trait.rs b/tests/ui/specialization/min_specialization/specialize_on_spec_trait.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialize_on_spec_trait.rs rename to tests/ui/specialization/min_specialization/specialize_on_spec_trait.rs diff --git a/src/test/ui/specialization/min_specialization/specialize_on_static.rs b/tests/ui/specialization/min_specialization/specialize_on_static.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialize_on_static.rs rename to tests/ui/specialization/min_specialization/specialize_on_static.rs diff --git a/src/test/ui/specialization/min_specialization/specialize_on_static.stderr b/tests/ui/specialization/min_specialization/specialize_on_static.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/specialize_on_static.stderr rename to tests/ui/specialization/min_specialization/specialize_on_static.stderr diff --git a/src/test/ui/specialization/min_specialization/specialize_on_trait.rs b/tests/ui/specialization/min_specialization/specialize_on_trait.rs similarity index 100% rename from src/test/ui/specialization/min_specialization/specialize_on_trait.rs rename to tests/ui/specialization/min_specialization/specialize_on_trait.rs diff --git a/src/test/ui/specialization/min_specialization/specialize_on_trait.stderr b/tests/ui/specialization/min_specialization/specialize_on_trait.stderr similarity index 100% rename from src/test/ui/specialization/min_specialization/specialize_on_trait.stderr rename to tests/ui/specialization/min_specialization/specialize_on_trait.stderr diff --git a/src/test/ui/specialization/non-defaulted-item-fail.rs b/tests/ui/specialization/non-defaulted-item-fail.rs similarity index 100% rename from src/test/ui/specialization/non-defaulted-item-fail.rs rename to tests/ui/specialization/non-defaulted-item-fail.rs diff --git a/src/test/ui/specialization/non-defaulted-item-fail.stderr b/tests/ui/specialization/non-defaulted-item-fail.stderr similarity index 100% rename from src/test/ui/specialization/non-defaulted-item-fail.stderr rename to tests/ui/specialization/non-defaulted-item-fail.stderr diff --git a/src/test/ui/specialization/soundness/partial_eq_range_inclusive.rs b/tests/ui/specialization/soundness/partial_eq_range_inclusive.rs similarity index 100% rename from src/test/ui/specialization/soundness/partial_eq_range_inclusive.rs rename to tests/ui/specialization/soundness/partial_eq_range_inclusive.rs diff --git a/src/test/ui/specialization/soundness/partial_ord_slice.rs b/tests/ui/specialization/soundness/partial_ord_slice.rs similarity index 100% rename from src/test/ui/specialization/soundness/partial_ord_slice.rs rename to tests/ui/specialization/soundness/partial_ord_slice.rs diff --git a/src/test/ui/specialization/specialization-allowed-cross-crate.rs b/tests/ui/specialization/specialization-allowed-cross-crate.rs similarity index 100% rename from src/test/ui/specialization/specialization-allowed-cross-crate.rs rename to tests/ui/specialization/specialization-allowed-cross-crate.rs diff --git a/src/test/ui/specialization/specialization-allowed-cross-crate.stderr b/tests/ui/specialization/specialization-allowed-cross-crate.stderr similarity index 100% rename from src/test/ui/specialization/specialization-allowed-cross-crate.stderr rename to tests/ui/specialization/specialization-allowed-cross-crate.stderr diff --git a/src/test/ui/specialization/specialization-assoc-fns.rs b/tests/ui/specialization/specialization-assoc-fns.rs similarity index 100% rename from src/test/ui/specialization/specialization-assoc-fns.rs rename to tests/ui/specialization/specialization-assoc-fns.rs diff --git a/src/test/ui/specialization/specialization-assoc-fns.stderr b/tests/ui/specialization/specialization-assoc-fns.stderr similarity index 100% rename from src/test/ui/specialization/specialization-assoc-fns.stderr rename to tests/ui/specialization/specialization-assoc-fns.stderr diff --git a/src/test/ui/specialization/specialization-basics.rs b/tests/ui/specialization/specialization-basics.rs similarity index 100% rename from src/test/ui/specialization/specialization-basics.rs rename to tests/ui/specialization/specialization-basics.rs diff --git a/src/test/ui/specialization/specialization-basics.stderr b/tests/ui/specialization/specialization-basics.stderr similarity index 100% rename from src/test/ui/specialization/specialization-basics.stderr rename to tests/ui/specialization/specialization-basics.stderr diff --git a/src/test/ui/specialization/specialization-cross-crate-no-gate.rs b/tests/ui/specialization/specialization-cross-crate-no-gate.rs similarity index 100% rename from src/test/ui/specialization/specialization-cross-crate-no-gate.rs rename to tests/ui/specialization/specialization-cross-crate-no-gate.rs diff --git a/src/test/ui/specialization/specialization-cross-crate.rs b/tests/ui/specialization/specialization-cross-crate.rs similarity index 100% rename from src/test/ui/specialization/specialization-cross-crate.rs rename to tests/ui/specialization/specialization-cross-crate.rs diff --git a/src/test/ui/specialization/specialization-cross-crate.stderr b/tests/ui/specialization/specialization-cross-crate.stderr similarity index 100% rename from src/test/ui/specialization/specialization-cross-crate.stderr rename to tests/ui/specialization/specialization-cross-crate.stderr diff --git a/src/test/ui/specialization/specialization-default-methods.rs b/tests/ui/specialization/specialization-default-methods.rs similarity index 100% rename from src/test/ui/specialization/specialization-default-methods.rs rename to tests/ui/specialization/specialization-default-methods.rs diff --git a/src/test/ui/specialization/specialization-default-methods.stderr b/tests/ui/specialization/specialization-default-methods.stderr similarity index 100% rename from src/test/ui/specialization/specialization-default-methods.stderr rename to tests/ui/specialization/specialization-default-methods.stderr diff --git a/src/test/ui/specialization/specialization-default-projection.rs b/tests/ui/specialization/specialization-default-projection.rs similarity index 100% rename from src/test/ui/specialization/specialization-default-projection.rs rename to tests/ui/specialization/specialization-default-projection.rs diff --git a/src/test/ui/specialization/specialization-default-projection.stderr b/tests/ui/specialization/specialization-default-projection.stderr similarity index 100% rename from src/test/ui/specialization/specialization-default-projection.stderr rename to tests/ui/specialization/specialization-default-projection.stderr diff --git a/src/test/ui/specialization/specialization-default-types.rs b/tests/ui/specialization/specialization-default-types.rs similarity index 100% rename from src/test/ui/specialization/specialization-default-types.rs rename to tests/ui/specialization/specialization-default-types.rs diff --git a/src/test/ui/specialization/specialization-default-types.stderr b/tests/ui/specialization/specialization-default-types.stderr similarity index 100% rename from src/test/ui/specialization/specialization-default-types.stderr rename to tests/ui/specialization/specialization-default-types.stderr diff --git a/src/test/ui/specialization/specialization-feature-gate-default.rs b/tests/ui/specialization/specialization-feature-gate-default.rs similarity index 100% rename from src/test/ui/specialization/specialization-feature-gate-default.rs rename to tests/ui/specialization/specialization-feature-gate-default.rs diff --git a/src/test/ui/specialization/specialization-feature-gate-default.stderr b/tests/ui/specialization/specialization-feature-gate-default.stderr similarity index 100% rename from src/test/ui/specialization/specialization-feature-gate-default.stderr rename to tests/ui/specialization/specialization-feature-gate-default.stderr diff --git a/src/test/ui/specialization/specialization-feature-gate-overlap.rs b/tests/ui/specialization/specialization-feature-gate-overlap.rs similarity index 100% rename from src/test/ui/specialization/specialization-feature-gate-overlap.rs rename to tests/ui/specialization/specialization-feature-gate-overlap.rs diff --git a/src/test/ui/specialization/specialization-feature-gate-overlap.stderr b/tests/ui/specialization/specialization-feature-gate-overlap.stderr similarity index 100% rename from src/test/ui/specialization/specialization-feature-gate-overlap.stderr rename to tests/ui/specialization/specialization-feature-gate-overlap.stderr diff --git a/src/test/ui/specialization/specialization-no-default.rs b/tests/ui/specialization/specialization-no-default.rs similarity index 100% rename from src/test/ui/specialization/specialization-no-default.rs rename to tests/ui/specialization/specialization-no-default.rs diff --git a/src/test/ui/specialization/specialization-no-default.stderr b/tests/ui/specialization/specialization-no-default.stderr similarity index 100% rename from src/test/ui/specialization/specialization-no-default.stderr rename to tests/ui/specialization/specialization-no-default.stderr diff --git a/src/test/ui/specialization/specialization-on-projection.rs b/tests/ui/specialization/specialization-on-projection.rs similarity index 100% rename from src/test/ui/specialization/specialization-on-projection.rs rename to tests/ui/specialization/specialization-on-projection.rs diff --git a/src/test/ui/specialization/specialization-on-projection.stderr b/tests/ui/specialization/specialization-on-projection.stderr similarity index 100% rename from src/test/ui/specialization/specialization-on-projection.stderr rename to tests/ui/specialization/specialization-on-projection.stderr diff --git a/src/test/ui/specialization/specialization-out-of-order.rs b/tests/ui/specialization/specialization-out-of-order.rs similarity index 100% rename from src/test/ui/specialization/specialization-out-of-order.rs rename to tests/ui/specialization/specialization-out-of-order.rs diff --git a/src/test/ui/specialization/specialization-out-of-order.stderr b/tests/ui/specialization/specialization-out-of-order.stderr similarity index 100% rename from src/test/ui/specialization/specialization-out-of-order.stderr rename to tests/ui/specialization/specialization-out-of-order.stderr diff --git a/src/test/ui/specialization/specialization-overlap-hygiene.rs b/tests/ui/specialization/specialization-overlap-hygiene.rs similarity index 100% rename from src/test/ui/specialization/specialization-overlap-hygiene.rs rename to tests/ui/specialization/specialization-overlap-hygiene.rs diff --git a/src/test/ui/specialization/specialization-overlap-hygiene.stderr b/tests/ui/specialization/specialization-overlap-hygiene.stderr similarity index 100% rename from src/test/ui/specialization/specialization-overlap-hygiene.stderr rename to tests/ui/specialization/specialization-overlap-hygiene.stderr diff --git a/src/test/ui/specialization/specialization-overlap-negative.rs b/tests/ui/specialization/specialization-overlap-negative.rs similarity index 100% rename from src/test/ui/specialization/specialization-overlap-negative.rs rename to tests/ui/specialization/specialization-overlap-negative.rs diff --git a/src/test/ui/specialization/specialization-overlap-negative.stderr b/tests/ui/specialization/specialization-overlap-negative.stderr similarity index 100% rename from src/test/ui/specialization/specialization-overlap-negative.stderr rename to tests/ui/specialization/specialization-overlap-negative.stderr diff --git a/src/test/ui/specialization/specialization-overlap-projection.rs b/tests/ui/specialization/specialization-overlap-projection.rs similarity index 100% rename from src/test/ui/specialization/specialization-overlap-projection.rs rename to tests/ui/specialization/specialization-overlap-projection.rs diff --git a/src/test/ui/specialization/specialization-overlap-projection.stderr b/tests/ui/specialization/specialization-overlap-projection.stderr similarity index 100% rename from src/test/ui/specialization/specialization-overlap-projection.stderr rename to tests/ui/specialization/specialization-overlap-projection.stderr diff --git a/src/test/ui/specialization/specialization-overlap.rs b/tests/ui/specialization/specialization-overlap.rs similarity index 100% rename from src/test/ui/specialization/specialization-overlap.rs rename to tests/ui/specialization/specialization-overlap.rs diff --git a/src/test/ui/specialization/specialization-overlap.stderr b/tests/ui/specialization/specialization-overlap.stderr similarity index 100% rename from src/test/ui/specialization/specialization-overlap.stderr rename to tests/ui/specialization/specialization-overlap.stderr diff --git a/src/test/ui/specialization/specialization-polarity.rs b/tests/ui/specialization/specialization-polarity.rs similarity index 100% rename from src/test/ui/specialization/specialization-polarity.rs rename to tests/ui/specialization/specialization-polarity.rs diff --git a/src/test/ui/specialization/specialization-polarity.stderr b/tests/ui/specialization/specialization-polarity.stderr similarity index 100% rename from src/test/ui/specialization/specialization-polarity.stderr rename to tests/ui/specialization/specialization-polarity.stderr diff --git a/src/test/ui/specialization/specialization-projection-alias.rs b/tests/ui/specialization/specialization-projection-alias.rs similarity index 100% rename from src/test/ui/specialization/specialization-projection-alias.rs rename to tests/ui/specialization/specialization-projection-alias.rs diff --git a/src/test/ui/specialization/specialization-projection-alias.stderr b/tests/ui/specialization/specialization-projection-alias.stderr similarity index 100% rename from src/test/ui/specialization/specialization-projection-alias.stderr rename to tests/ui/specialization/specialization-projection-alias.stderr diff --git a/src/test/ui/specialization/specialization-projection.rs b/tests/ui/specialization/specialization-projection.rs similarity index 100% rename from src/test/ui/specialization/specialization-projection.rs rename to tests/ui/specialization/specialization-projection.rs diff --git a/src/test/ui/specialization/specialization-projection.stderr b/tests/ui/specialization/specialization-projection.stderr similarity index 100% rename from src/test/ui/specialization/specialization-projection.stderr rename to tests/ui/specialization/specialization-projection.stderr diff --git a/src/test/ui/specialization/specialization-supertraits.rs b/tests/ui/specialization/specialization-supertraits.rs similarity index 100% rename from src/test/ui/specialization/specialization-supertraits.rs rename to tests/ui/specialization/specialization-supertraits.rs diff --git a/src/test/ui/specialization/specialization-supertraits.stderr b/tests/ui/specialization/specialization-supertraits.stderr similarity index 100% rename from src/test/ui/specialization/specialization-supertraits.stderr rename to tests/ui/specialization/specialization-supertraits.stderr diff --git a/src/test/ui/specialization/specialization-translate-projections-with-lifetimes.rs b/tests/ui/specialization/specialization-translate-projections-with-lifetimes.rs similarity index 100% rename from src/test/ui/specialization/specialization-translate-projections-with-lifetimes.rs rename to tests/ui/specialization/specialization-translate-projections-with-lifetimes.rs diff --git a/src/test/ui/specialization/specialization-translate-projections-with-lifetimes.stderr b/tests/ui/specialization/specialization-translate-projections-with-lifetimes.stderr similarity index 100% rename from src/test/ui/specialization/specialization-translate-projections-with-lifetimes.stderr rename to tests/ui/specialization/specialization-translate-projections-with-lifetimes.stderr diff --git a/src/test/ui/specialization/specialization-translate-projections-with-params.rs b/tests/ui/specialization/specialization-translate-projections-with-params.rs similarity index 100% rename from src/test/ui/specialization/specialization-translate-projections-with-params.rs rename to tests/ui/specialization/specialization-translate-projections-with-params.rs diff --git a/src/test/ui/specialization/specialization-translate-projections-with-params.stderr b/tests/ui/specialization/specialization-translate-projections-with-params.stderr similarity index 100% rename from src/test/ui/specialization/specialization-translate-projections-with-params.stderr rename to tests/ui/specialization/specialization-translate-projections-with-params.stderr diff --git a/src/test/ui/specialization/specialization-translate-projections.rs b/tests/ui/specialization/specialization-translate-projections.rs similarity index 100% rename from src/test/ui/specialization/specialization-translate-projections.rs rename to tests/ui/specialization/specialization-translate-projections.rs diff --git a/src/test/ui/specialization/specialization-translate-projections.stderr b/tests/ui/specialization/specialization-translate-projections.stderr similarity index 100% rename from src/test/ui/specialization/specialization-translate-projections.stderr rename to tests/ui/specialization/specialization-translate-projections.stderr diff --git a/src/test/ui/specialization/transmute-specialization.rs b/tests/ui/specialization/transmute-specialization.rs similarity index 100% rename from src/test/ui/specialization/transmute-specialization.rs rename to tests/ui/specialization/transmute-specialization.rs diff --git a/src/test/ui/specialization/transmute-specialization.stderr b/tests/ui/specialization/transmute-specialization.stderr similarity index 100% rename from src/test/ui/specialization/transmute-specialization.stderr rename to tests/ui/specialization/transmute-specialization.stderr diff --git a/src/test/ui/sse2.rs b/tests/ui/sse2.rs similarity index 100% rename from src/test/ui/sse2.rs rename to tests/ui/sse2.rs diff --git a/src/test/ui/stability-attribute/accidental-stable-in-unstable.rs b/tests/ui/stability-attribute/accidental-stable-in-unstable.rs similarity index 100% rename from src/test/ui/stability-attribute/accidental-stable-in-unstable.rs rename to tests/ui/stability-attribute/accidental-stable-in-unstable.rs diff --git a/src/test/ui/stability-attribute/accidental-stable-in-unstable.stderr b/tests/ui/stability-attribute/accidental-stable-in-unstable.stderr similarity index 100% rename from src/test/ui/stability-attribute/accidental-stable-in-unstable.stderr rename to tests/ui/stability-attribute/accidental-stable-in-unstable.stderr diff --git a/src/test/ui/stability-attribute/allow-unstable-reexport.rs b/tests/ui/stability-attribute/allow-unstable-reexport.rs similarity index 100% rename from src/test/ui/stability-attribute/allow-unstable-reexport.rs rename to tests/ui/stability-attribute/allow-unstable-reexport.rs diff --git a/src/test/ui/stability-attribute/allow-unstable-reexport.stderr b/tests/ui/stability-attribute/allow-unstable-reexport.stderr similarity index 100% rename from src/test/ui/stability-attribute/allow-unstable-reexport.stderr rename to tests/ui/stability-attribute/allow-unstable-reexport.stderr diff --git a/src/test/ui/stability-attribute/allowed-through-unstable.rs b/tests/ui/stability-attribute/allowed-through-unstable.rs similarity index 100% rename from src/test/ui/stability-attribute/allowed-through-unstable.rs rename to tests/ui/stability-attribute/allowed-through-unstable.rs diff --git a/src/test/ui/stability-attribute/allowed-through-unstable.stderr b/tests/ui/stability-attribute/allowed-through-unstable.stderr similarity index 100% rename from src/test/ui/stability-attribute/allowed-through-unstable.stderr rename to tests/ui/stability-attribute/allowed-through-unstable.stderr diff --git a/src/test/ui/stability-attribute/auxiliary/allowed-through-unstable-core.rs b/tests/ui/stability-attribute/auxiliary/allowed-through-unstable-core.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/allowed-through-unstable-core.rs rename to tests/ui/stability-attribute/auxiliary/allowed-through-unstable-core.rs diff --git a/src/test/ui/stability-attribute/auxiliary/ctor-stability.rs b/tests/ui/stability-attribute/auxiliary/ctor-stability.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/ctor-stability.rs rename to tests/ui/stability-attribute/auxiliary/ctor-stability.rs diff --git a/src/test/ui/stability-attribute/auxiliary/default_body.rs b/tests/ui/stability-attribute/auxiliary/default_body.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/default_body.rs rename to tests/ui/stability-attribute/auxiliary/default_body.rs diff --git a/src/test/ui/stability-attribute/auxiliary/lint-stability-reexport.rs b/tests/ui/stability-attribute/auxiliary/lint-stability-reexport.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/lint-stability-reexport.rs rename to tests/ui/stability-attribute/auxiliary/lint-stability-reexport.rs diff --git a/src/test/ui/stability-attribute/auxiliary/lint-stability.rs b/tests/ui/stability-attribute/auxiliary/lint-stability.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/lint-stability.rs rename to tests/ui/stability-attribute/auxiliary/lint-stability.rs diff --git a/src/test/ui/stability-attribute/auxiliary/stability-attribute-implies.rs b/tests/ui/stability-attribute/auxiliary/stability-attribute-implies.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/stability-attribute-implies.rs rename to tests/ui/stability-attribute/auxiliary/stability-attribute-implies.rs diff --git a/src/test/ui/stability-attribute/auxiliary/stability_attribute_issue.rs b/tests/ui/stability-attribute/auxiliary/stability_attribute_issue.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/stability_attribute_issue.rs rename to tests/ui/stability-attribute/auxiliary/stability_attribute_issue.rs diff --git a/src/test/ui/stability-attribute/auxiliary/stable-in-unstable-core.rs b/tests/ui/stability-attribute/auxiliary/stable-in-unstable-core.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/stable-in-unstable-core.rs rename to tests/ui/stability-attribute/auxiliary/stable-in-unstable-core.rs diff --git a/src/test/ui/stability-attribute/auxiliary/stable-in-unstable-std.rs b/tests/ui/stability-attribute/auxiliary/stable-in-unstable-std.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/stable-in-unstable-std.rs rename to tests/ui/stability-attribute/auxiliary/stable-in-unstable-std.rs diff --git a/src/test/ui/stability-attribute/auxiliary/unstable_generic_param.rs b/tests/ui/stability-attribute/auxiliary/unstable_generic_param.rs similarity index 100% rename from src/test/ui/stability-attribute/auxiliary/unstable_generic_param.rs rename to tests/ui/stability-attribute/auxiliary/unstable_generic_param.rs diff --git a/src/test/ui/stability-attribute/ctor-stability.rs b/tests/ui/stability-attribute/ctor-stability.rs similarity index 100% rename from src/test/ui/stability-attribute/ctor-stability.rs rename to tests/ui/stability-attribute/ctor-stability.rs diff --git a/src/test/ui/stability-attribute/default-body-stability-err.rs b/tests/ui/stability-attribute/default-body-stability-err.rs similarity index 100% rename from src/test/ui/stability-attribute/default-body-stability-err.rs rename to tests/ui/stability-attribute/default-body-stability-err.rs diff --git a/src/test/ui/stability-attribute/default-body-stability-err.stderr b/tests/ui/stability-attribute/default-body-stability-err.stderr similarity index 100% rename from src/test/ui/stability-attribute/default-body-stability-err.stderr rename to tests/ui/stability-attribute/default-body-stability-err.stderr diff --git a/src/test/ui/stability-attribute/default-body-stability-ok-enables.rs b/tests/ui/stability-attribute/default-body-stability-ok-enables.rs similarity index 100% rename from src/test/ui/stability-attribute/default-body-stability-ok-enables.rs rename to tests/ui/stability-attribute/default-body-stability-ok-enables.rs diff --git a/src/test/ui/stability-attribute/default-body-stability-ok-impls.rs b/tests/ui/stability-attribute/default-body-stability-ok-impls.rs similarity index 100% rename from src/test/ui/stability-attribute/default-body-stability-ok-impls.rs rename to tests/ui/stability-attribute/default-body-stability-ok-impls.rs diff --git a/src/test/ui/stability-attribute/generics-default-stability-trait.rs b/tests/ui/stability-attribute/generics-default-stability-trait.rs similarity index 100% rename from src/test/ui/stability-attribute/generics-default-stability-trait.rs rename to tests/ui/stability-attribute/generics-default-stability-trait.rs diff --git a/src/test/ui/stability-attribute/generics-default-stability-trait.stderr b/tests/ui/stability-attribute/generics-default-stability-trait.stderr similarity index 100% rename from src/test/ui/stability-attribute/generics-default-stability-trait.stderr rename to tests/ui/stability-attribute/generics-default-stability-trait.stderr diff --git a/src/test/ui/stability-attribute/generics-default-stability-where.rs b/tests/ui/stability-attribute/generics-default-stability-where.rs similarity index 100% rename from src/test/ui/stability-attribute/generics-default-stability-where.rs rename to tests/ui/stability-attribute/generics-default-stability-where.rs diff --git a/src/test/ui/stability-attribute/generics-default-stability-where.stderr b/tests/ui/stability-attribute/generics-default-stability-where.stderr similarity index 100% rename from src/test/ui/stability-attribute/generics-default-stability-where.stderr rename to tests/ui/stability-attribute/generics-default-stability-where.stderr diff --git a/src/test/ui/stability-attribute/generics-default-stability.rs b/tests/ui/stability-attribute/generics-default-stability.rs similarity index 100% rename from src/test/ui/stability-attribute/generics-default-stability.rs rename to tests/ui/stability-attribute/generics-default-stability.rs diff --git a/src/test/ui/stability-attribute/generics-default-stability.stderr b/tests/ui/stability-attribute/generics-default-stability.stderr similarity index 100% rename from src/test/ui/stability-attribute/generics-default-stability.stderr rename to tests/ui/stability-attribute/generics-default-stability.stderr diff --git a/src/test/ui/stability-attribute/issue-28075.rs b/tests/ui/stability-attribute/issue-28075.rs similarity index 100% rename from src/test/ui/stability-attribute/issue-28075.rs rename to tests/ui/stability-attribute/issue-28075.rs diff --git a/src/test/ui/stability-attribute/issue-28075.stderr b/tests/ui/stability-attribute/issue-28075.stderr similarity index 100% rename from src/test/ui/stability-attribute/issue-28075.stderr rename to tests/ui/stability-attribute/issue-28075.stderr diff --git a/src/test/ui/stability-attribute/issue-28388-3.rs b/tests/ui/stability-attribute/issue-28388-3.rs similarity index 100% rename from src/test/ui/stability-attribute/issue-28388-3.rs rename to tests/ui/stability-attribute/issue-28388-3.rs diff --git a/src/test/ui/stability-attribute/issue-28388-3.stderr b/tests/ui/stability-attribute/issue-28388-3.stderr similarity index 100% rename from src/test/ui/stability-attribute/issue-28388-3.stderr rename to tests/ui/stability-attribute/issue-28388-3.stderr diff --git a/src/test/ui/stability-attribute/issue-99286-stable-intrinsics.rs b/tests/ui/stability-attribute/issue-99286-stable-intrinsics.rs similarity index 100% rename from src/test/ui/stability-attribute/issue-99286-stable-intrinsics.rs rename to tests/ui/stability-attribute/issue-99286-stable-intrinsics.rs diff --git a/src/test/ui/stability-attribute/missing-const-stability.rs b/tests/ui/stability-attribute/missing-const-stability.rs similarity index 100% rename from src/test/ui/stability-attribute/missing-const-stability.rs rename to tests/ui/stability-attribute/missing-const-stability.rs diff --git a/src/test/ui/stability-attribute/missing-const-stability.stderr b/tests/ui/stability-attribute/missing-const-stability.stderr similarity index 100% rename from src/test/ui/stability-attribute/missing-const-stability.stderr rename to tests/ui/stability-attribute/missing-const-stability.stderr diff --git a/src/test/ui/stability-attribute/missing-stability-attr-at-top-level.rs b/tests/ui/stability-attribute/missing-stability-attr-at-top-level.rs similarity index 100% rename from src/test/ui/stability-attribute/missing-stability-attr-at-top-level.rs rename to tests/ui/stability-attribute/missing-stability-attr-at-top-level.rs diff --git a/src/test/ui/stability-attribute/missing-stability-attr-at-top-level.stderr b/tests/ui/stability-attribute/missing-stability-attr-at-top-level.stderr similarity index 100% rename from src/test/ui/stability-attribute/missing-stability-attr-at-top-level.stderr rename to tests/ui/stability-attribute/missing-stability-attr-at-top-level.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-missing.rs b/tests/ui/stability-attribute/stability-attribute-implies-missing.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-missing.rs rename to tests/ui/stability-attribute/stability-attribute-implies-missing.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-missing.stderr b/tests/ui/stability-attribute/stability-attribute-implies-missing.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-missing.stderr rename to tests/ui/stability-attribute/stability-attribute-implies-missing.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-no-feature.rs b/tests/ui/stability-attribute/stability-attribute-implies-no-feature.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-no-feature.rs rename to tests/ui/stability-attribute/stability-attribute-implies-no-feature.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-no-feature.stderr b/tests/ui/stability-attribute/stability-attribute-implies-no-feature.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-no-feature.stderr rename to tests/ui/stability-attribute/stability-attribute-implies-no-feature.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-using-stable.rs b/tests/ui/stability-attribute/stability-attribute-implies-using-stable.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-using-stable.rs rename to tests/ui/stability-attribute/stability-attribute-implies-using-stable.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-using-stable.stderr b/tests/ui/stability-attribute/stability-attribute-implies-using-stable.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-using-stable.stderr rename to tests/ui/stability-attribute/stability-attribute-implies-using-stable.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-using-unstable.rs b/tests/ui/stability-attribute/stability-attribute-implies-using-unstable.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-using-unstable.rs rename to tests/ui/stability-attribute/stability-attribute-implies-using-unstable.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-implies-using-unstable.stderr b/tests/ui/stability-attribute/stability-attribute-implies-using-unstable.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-implies-using-unstable.stderr rename to tests/ui/stability-attribute/stability-attribute-implies-using-unstable.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-issue-43027.rs b/tests/ui/stability-attribute/stability-attribute-issue-43027.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-issue-43027.rs rename to tests/ui/stability-attribute/stability-attribute-issue-43027.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-issue.rs b/tests/ui/stability-attribute/stability-attribute-issue.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-issue.rs rename to tests/ui/stability-attribute/stability-attribute-issue.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-issue.stderr b/tests/ui/stability-attribute/stability-attribute-issue.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-issue.stderr rename to tests/ui/stability-attribute/stability-attribute-issue.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-non-staged-force-unstable.rs b/tests/ui/stability-attribute/stability-attribute-non-staged-force-unstable.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-non-staged-force-unstable.rs rename to tests/ui/stability-attribute/stability-attribute-non-staged-force-unstable.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-non-staged-force-unstable.stderr b/tests/ui/stability-attribute/stability-attribute-non-staged-force-unstable.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-non-staged-force-unstable.stderr rename to tests/ui/stability-attribute/stability-attribute-non-staged-force-unstable.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-non-staged.rs b/tests/ui/stability-attribute/stability-attribute-non-staged.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-non-staged.rs rename to tests/ui/stability-attribute/stability-attribute-non-staged.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-non-staged.stderr b/tests/ui/stability-attribute/stability-attribute-non-staged.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-non-staged.stderr rename to tests/ui/stability-attribute/stability-attribute-non-staged.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-2.rs b/tests/ui/stability-attribute/stability-attribute-sanity-2.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity-2.rs rename to tests/ui/stability-attribute/stability-attribute-sanity-2.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-2.stderr b/tests/ui/stability-attribute/stability-attribute-sanity-2.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity-2.stderr rename to tests/ui/stability-attribute/stability-attribute-sanity-2.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-3.rs b/tests/ui/stability-attribute/stability-attribute-sanity-3.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity-3.rs rename to tests/ui/stability-attribute/stability-attribute-sanity-3.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-3.stderr b/tests/ui/stability-attribute/stability-attribute-sanity-3.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity-3.stderr rename to tests/ui/stability-attribute/stability-attribute-sanity-3.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-4.rs b/tests/ui/stability-attribute/stability-attribute-sanity-4.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity-4.rs rename to tests/ui/stability-attribute/stability-attribute-sanity-4.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr b/tests/ui/stability-attribute/stability-attribute-sanity-4.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr rename to tests/ui/stability-attribute/stability-attribute-sanity-4.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity.rs b/tests/ui/stability-attribute/stability-attribute-sanity.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity.rs rename to tests/ui/stability-attribute/stability-attribute-sanity.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity.stderr b/tests/ui/stability-attribute/stability-attribute-sanity.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-sanity.stderr rename to tests/ui/stability-attribute/stability-attribute-sanity.stderr diff --git a/src/test/ui/stability-attribute/stability-attribute-trait-impl.rs b/tests/ui/stability-attribute/stability-attribute-trait-impl.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-trait-impl.rs rename to tests/ui/stability-attribute/stability-attribute-trait-impl.rs diff --git a/src/test/ui/stability-attribute/stability-attribute-trait-impl.stderr b/tests/ui/stability-attribute/stability-attribute-trait-impl.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-attribute-trait-impl.stderr rename to tests/ui/stability-attribute/stability-attribute-trait-impl.stderr diff --git a/src/test/ui/stability-attribute/stability-in-private-module.rs b/tests/ui/stability-attribute/stability-in-private-module.rs similarity index 100% rename from src/test/ui/stability-attribute/stability-in-private-module.rs rename to tests/ui/stability-attribute/stability-in-private-module.rs diff --git a/src/test/ui/stability-attribute/stability-in-private-module.stderr b/tests/ui/stability-attribute/stability-in-private-module.stderr similarity index 100% rename from src/test/ui/stability-attribute/stability-in-private-module.stderr rename to tests/ui/stability-attribute/stability-in-private-module.stderr diff --git a/src/test/ui/stability-attribute/stable-in-unstable.rs b/tests/ui/stability-attribute/stable-in-unstable.rs similarity index 100% rename from src/test/ui/stability-attribute/stable-in-unstable.rs rename to tests/ui/stability-attribute/stable-in-unstable.rs diff --git a/src/test/ui/stability-attribute/stable-in-unstable.stderr b/tests/ui/stability-attribute/stable-in-unstable.stderr similarity index 100% rename from src/test/ui/stability-attribute/stable-in-unstable.stderr rename to tests/ui/stability-attribute/stable-in-unstable.stderr diff --git a/src/test/ui/stability-attribute/suggest-vec-allocator-api.rs b/tests/ui/stability-attribute/suggest-vec-allocator-api.rs similarity index 100% rename from src/test/ui/stability-attribute/suggest-vec-allocator-api.rs rename to tests/ui/stability-attribute/suggest-vec-allocator-api.rs diff --git a/src/test/ui/stability-attribute/suggest-vec-allocator-api.stderr b/tests/ui/stability-attribute/suggest-vec-allocator-api.stderr similarity index 100% rename from src/test/ui/stability-attribute/suggest-vec-allocator-api.stderr rename to tests/ui/stability-attribute/suggest-vec-allocator-api.stderr diff --git a/src/test/ui/stable-addr-of.rs b/tests/ui/stable-addr-of.rs similarity index 100% rename from src/test/ui/stable-addr-of.rs rename to tests/ui/stable-addr-of.rs diff --git a/src/test/ui/stack-protector/warn-stack-protector-unsupported.all.stderr b/tests/ui/stack-protector/warn-stack-protector-unsupported.all.stderr similarity index 100% rename from src/test/ui/stack-protector/warn-stack-protector-unsupported.all.stderr rename to tests/ui/stack-protector/warn-stack-protector-unsupported.all.stderr diff --git a/src/test/ui/stack-protector/warn-stack-protector-unsupported.basic.stderr b/tests/ui/stack-protector/warn-stack-protector-unsupported.basic.stderr similarity index 100% rename from src/test/ui/stack-protector/warn-stack-protector-unsupported.basic.stderr rename to tests/ui/stack-protector/warn-stack-protector-unsupported.basic.stderr diff --git a/src/test/ui/stack-protector/warn-stack-protector-unsupported.rs b/tests/ui/stack-protector/warn-stack-protector-unsupported.rs similarity index 100% rename from src/test/ui/stack-protector/warn-stack-protector-unsupported.rs rename to tests/ui/stack-protector/warn-stack-protector-unsupported.rs diff --git a/src/test/ui/stack-protector/warn-stack-protector-unsupported.strong.stderr b/tests/ui/stack-protector/warn-stack-protector-unsupported.strong.stderr similarity index 100% rename from src/test/ui/stack-protector/warn-stack-protector-unsupported.strong.stderr rename to tests/ui/stack-protector/warn-stack-protector-unsupported.strong.stderr diff --git a/src/test/ui/static/auxiliary/extern-statics.rs b/tests/ui/static/auxiliary/extern-statics.rs similarity index 100% rename from src/test/ui/static/auxiliary/extern-statics.rs rename to tests/ui/static/auxiliary/extern-statics.rs diff --git a/src/test/ui/static/auxiliary/issue_24843.rs b/tests/ui/static/auxiliary/issue_24843.rs similarity index 100% rename from src/test/ui/static/auxiliary/issue_24843.rs rename to tests/ui/static/auxiliary/issue_24843.rs diff --git a/src/test/ui/static/auxiliary/nested_item.rs b/tests/ui/static/auxiliary/nested_item.rs similarity index 100% rename from src/test/ui/static/auxiliary/nested_item.rs rename to tests/ui/static/auxiliary/nested_item.rs diff --git a/src/test/ui/static/auxiliary/static-priv-by-default.rs b/tests/ui/static/auxiliary/static-priv-by-default.rs similarity index 100% rename from src/test/ui/static/auxiliary/static-priv-by-default.rs rename to tests/ui/static/auxiliary/static-priv-by-default.rs diff --git a/src/test/ui/static/auxiliary/static_priv_by_default.rs b/tests/ui/static/auxiliary/static_priv_by_default.rs similarity index 100% rename from src/test/ui/static/auxiliary/static_priv_by_default.rs rename to tests/ui/static/auxiliary/static_priv_by_default.rs diff --git a/src/test/ui/static/bad-const-type.rs b/tests/ui/static/bad-const-type.rs similarity index 100% rename from src/test/ui/static/bad-const-type.rs rename to tests/ui/static/bad-const-type.rs diff --git a/src/test/ui/static/bad-const-type.stderr b/tests/ui/static/bad-const-type.stderr similarity index 100% rename from src/test/ui/static/bad-const-type.stderr rename to tests/ui/static/bad-const-type.stderr diff --git a/src/test/ui/static/issue-18118-2.rs b/tests/ui/static/issue-18118-2.rs similarity index 100% rename from src/test/ui/static/issue-18118-2.rs rename to tests/ui/static/issue-18118-2.rs diff --git a/src/test/ui/static/issue-18118-2.stderr b/tests/ui/static/issue-18118-2.stderr similarity index 100% rename from src/test/ui/static/issue-18118-2.stderr rename to tests/ui/static/issue-18118-2.stderr diff --git a/src/test/ui/static/issue-18118.rs b/tests/ui/static/issue-18118.rs similarity index 100% rename from src/test/ui/static/issue-18118.rs rename to tests/ui/static/issue-18118.rs diff --git a/src/test/ui/static/issue-18118.stderr b/tests/ui/static/issue-18118.stderr similarity index 100% rename from src/test/ui/static/issue-18118.stderr rename to tests/ui/static/issue-18118.stderr diff --git a/src/test/ui/static/issue-24843.rs b/tests/ui/static/issue-24843.rs similarity index 100% rename from src/test/ui/static/issue-24843.rs rename to tests/ui/static/issue-24843.rs diff --git a/src/test/ui/static/issue-34194.rs b/tests/ui/static/issue-34194.rs similarity index 100% rename from src/test/ui/static/issue-34194.rs rename to tests/ui/static/issue-34194.rs diff --git a/src/test/ui/static/issue-5216.rs b/tests/ui/static/issue-5216.rs similarity index 100% rename from src/test/ui/static/issue-5216.rs rename to tests/ui/static/issue-5216.rs diff --git a/src/test/ui/static/issue-5216.stderr b/tests/ui/static/issue-5216.stderr similarity index 100% rename from src/test/ui/static/issue-5216.stderr rename to tests/ui/static/issue-5216.stderr diff --git a/src/test/ui/static/nested_item_main.rs b/tests/ui/static/nested_item_main.rs similarity index 100% rename from src/test/ui/static/nested_item_main.rs rename to tests/ui/static/nested_item_main.rs diff --git a/src/test/ui/static/refer-to-other-statics-by-value.rs b/tests/ui/static/refer-to-other-statics-by-value.rs similarity index 100% rename from src/test/ui/static/refer-to-other-statics-by-value.rs rename to tests/ui/static/refer-to-other-statics-by-value.rs diff --git a/src/test/ui/static/safe-extern-statics-mut.mir.stderr b/tests/ui/static/safe-extern-statics-mut.mir.stderr similarity index 100% rename from src/test/ui/static/safe-extern-statics-mut.mir.stderr rename to tests/ui/static/safe-extern-statics-mut.mir.stderr diff --git a/src/test/ui/static/safe-extern-statics-mut.rs b/tests/ui/static/safe-extern-statics-mut.rs similarity index 100% rename from src/test/ui/static/safe-extern-statics-mut.rs rename to tests/ui/static/safe-extern-statics-mut.rs diff --git a/src/test/ui/static/safe-extern-statics-mut.thir.stderr b/tests/ui/static/safe-extern-statics-mut.thir.stderr similarity index 100% rename from src/test/ui/static/safe-extern-statics-mut.thir.stderr rename to tests/ui/static/safe-extern-statics-mut.thir.stderr diff --git a/src/test/ui/static/safe-extern-statics.mir.stderr b/tests/ui/static/safe-extern-statics.mir.stderr similarity index 100% rename from src/test/ui/static/safe-extern-statics.mir.stderr rename to tests/ui/static/safe-extern-statics.mir.stderr diff --git a/src/test/ui/static/safe-extern-statics.rs b/tests/ui/static/safe-extern-statics.rs similarity index 100% rename from src/test/ui/static/safe-extern-statics.rs rename to tests/ui/static/safe-extern-statics.rs diff --git a/src/test/ui/static/safe-extern-statics.thir.stderr b/tests/ui/static/safe-extern-statics.thir.stderr similarity index 100% rename from src/test/ui/static/safe-extern-statics.thir.stderr rename to tests/ui/static/safe-extern-statics.thir.stderr diff --git a/src/test/ui/static/static-closures.rs b/tests/ui/static/static-closures.rs similarity index 100% rename from src/test/ui/static/static-closures.rs rename to tests/ui/static/static-closures.rs diff --git a/src/test/ui/static/static-closures.stderr b/tests/ui/static/static-closures.stderr similarity index 100% rename from src/test/ui/static/static-closures.stderr rename to tests/ui/static/static-closures.stderr diff --git a/src/test/ui/static/static-drop-scope.rs b/tests/ui/static/static-drop-scope.rs similarity index 100% rename from src/test/ui/static/static-drop-scope.rs rename to tests/ui/static/static-drop-scope.rs diff --git a/src/test/ui/static/static-drop-scope.stderr b/tests/ui/static/static-drop-scope.stderr similarity index 100% rename from src/test/ui/static/static-drop-scope.stderr rename to tests/ui/static/static-drop-scope.stderr diff --git a/src/test/ui/static/static-extern-type.rs b/tests/ui/static/static-extern-type.rs similarity index 100% rename from src/test/ui/static/static-extern-type.rs rename to tests/ui/static/static-extern-type.rs diff --git a/src/test/ui/static/static-items-cant-move.rs b/tests/ui/static/static-items-cant-move.rs similarity index 100% rename from src/test/ui/static/static-items-cant-move.rs rename to tests/ui/static/static-items-cant-move.rs diff --git a/src/test/ui/static/static-items-cant-move.stderr b/tests/ui/static/static-items-cant-move.stderr similarity index 100% rename from src/test/ui/static/static-items-cant-move.stderr rename to tests/ui/static/static-items-cant-move.stderr diff --git a/src/test/ui/static/static-lifetime-bound.rs b/tests/ui/static/static-lifetime-bound.rs similarity index 100% rename from src/test/ui/static/static-lifetime-bound.rs rename to tests/ui/static/static-lifetime-bound.rs diff --git a/src/test/ui/static/static-lifetime-bound.stderr b/tests/ui/static/static-lifetime-bound.stderr similarity index 100% rename from src/test/ui/static/static-lifetime-bound.stderr rename to tests/ui/static/static-lifetime-bound.stderr diff --git a/src/test/ui/static/static-lifetime.rs b/tests/ui/static/static-lifetime.rs similarity index 100% rename from src/test/ui/static/static-lifetime.rs rename to tests/ui/static/static-lifetime.rs diff --git a/src/test/ui/static/static-lifetime.stderr b/tests/ui/static/static-lifetime.stderr similarity index 100% rename from src/test/ui/static/static-lifetime.stderr rename to tests/ui/static/static-lifetime.stderr diff --git a/src/test/ui/static/static-method-privacy.rs b/tests/ui/static/static-method-privacy.rs similarity index 100% rename from src/test/ui/static/static-method-privacy.rs rename to tests/ui/static/static-method-privacy.rs diff --git a/src/test/ui/static/static-method-privacy.stderr b/tests/ui/static/static-method-privacy.stderr similarity index 100% rename from src/test/ui/static/static-method-privacy.stderr rename to tests/ui/static/static-method-privacy.stderr diff --git a/src/test/ui/static/static-mut-bad-types.rs b/tests/ui/static/static-mut-bad-types.rs similarity index 100% rename from src/test/ui/static/static-mut-bad-types.rs rename to tests/ui/static/static-mut-bad-types.rs diff --git a/src/test/ui/static/static-mut-bad-types.stderr b/tests/ui/static/static-mut-bad-types.stderr similarity index 100% rename from src/test/ui/static/static-mut-bad-types.stderr rename to tests/ui/static/static-mut-bad-types.stderr diff --git a/src/test/ui/static/static-mut-foreign-requires-unsafe.mir.stderr b/tests/ui/static/static-mut-foreign-requires-unsafe.mir.stderr similarity index 100% rename from src/test/ui/static/static-mut-foreign-requires-unsafe.mir.stderr rename to tests/ui/static/static-mut-foreign-requires-unsafe.mir.stderr diff --git a/src/test/ui/static/static-mut-foreign-requires-unsafe.rs b/tests/ui/static/static-mut-foreign-requires-unsafe.rs similarity index 100% rename from src/test/ui/static/static-mut-foreign-requires-unsafe.rs rename to tests/ui/static/static-mut-foreign-requires-unsafe.rs diff --git a/src/test/ui/static/static-mut-foreign-requires-unsafe.thir.stderr b/tests/ui/static/static-mut-foreign-requires-unsafe.thir.stderr similarity index 100% rename from src/test/ui/static/static-mut-foreign-requires-unsafe.thir.stderr rename to tests/ui/static/static-mut-foreign-requires-unsafe.thir.stderr diff --git a/src/test/ui/static/static-mut-not-constant.rs b/tests/ui/static/static-mut-not-constant.rs similarity index 100% rename from src/test/ui/static/static-mut-not-constant.rs rename to tests/ui/static/static-mut-not-constant.rs diff --git a/src/test/ui/static/static-mut-not-constant.stderr b/tests/ui/static/static-mut-not-constant.stderr similarity index 100% rename from src/test/ui/static/static-mut-not-constant.stderr rename to tests/ui/static/static-mut-not-constant.stderr diff --git a/src/test/ui/static/static-mut-not-pat.rs b/tests/ui/static/static-mut-not-pat.rs similarity index 100% rename from src/test/ui/static/static-mut-not-pat.rs rename to tests/ui/static/static-mut-not-pat.rs diff --git a/src/test/ui/static/static-mut-not-pat.stderr b/tests/ui/static/static-mut-not-pat.stderr similarity index 100% rename from src/test/ui/static/static-mut-not-pat.stderr rename to tests/ui/static/static-mut-not-pat.stderr diff --git a/src/test/ui/static/static-mut-requires-unsafe.mir.stderr b/tests/ui/static/static-mut-requires-unsafe.mir.stderr similarity index 100% rename from src/test/ui/static/static-mut-requires-unsafe.mir.stderr rename to tests/ui/static/static-mut-requires-unsafe.mir.stderr diff --git a/src/test/ui/static/static-mut-requires-unsafe.rs b/tests/ui/static/static-mut-requires-unsafe.rs similarity index 100% rename from src/test/ui/static/static-mut-requires-unsafe.rs rename to tests/ui/static/static-mut-requires-unsafe.rs diff --git a/src/test/ui/static/static-mut-requires-unsafe.thir.stderr b/tests/ui/static/static-mut-requires-unsafe.thir.stderr similarity index 100% rename from src/test/ui/static/static-mut-requires-unsafe.thir.stderr rename to tests/ui/static/static-mut-requires-unsafe.thir.stderr diff --git a/src/test/ui/static/static-priv-by-default2.rs b/tests/ui/static/static-priv-by-default2.rs similarity index 100% rename from src/test/ui/static/static-priv-by-default2.rs rename to tests/ui/static/static-priv-by-default2.rs diff --git a/src/test/ui/static/static-priv-by-default2.stderr b/tests/ui/static/static-priv-by-default2.stderr similarity index 100% rename from src/test/ui/static/static-priv-by-default2.stderr rename to tests/ui/static/static-priv-by-default2.stderr diff --git a/src/test/ui/static/static-reference-to-fn-1.rs b/tests/ui/static/static-reference-to-fn-1.rs similarity index 100% rename from src/test/ui/static/static-reference-to-fn-1.rs rename to tests/ui/static/static-reference-to-fn-1.rs diff --git a/src/test/ui/static/static-reference-to-fn-1.stderr b/tests/ui/static/static-reference-to-fn-1.stderr similarity index 100% rename from src/test/ui/static/static-reference-to-fn-1.stderr rename to tests/ui/static/static-reference-to-fn-1.stderr diff --git a/src/test/ui/static/static-reference-to-fn-2.rs b/tests/ui/static/static-reference-to-fn-2.rs similarity index 100% rename from src/test/ui/static/static-reference-to-fn-2.rs rename to tests/ui/static/static-reference-to-fn-2.rs diff --git a/src/test/ui/static/static-reference-to-fn-2.stderr b/tests/ui/static/static-reference-to-fn-2.stderr similarity index 100% rename from src/test/ui/static/static-reference-to-fn-2.stderr rename to tests/ui/static/static-reference-to-fn-2.stderr diff --git a/src/test/ui/static/static-region-bound.rs b/tests/ui/static/static-region-bound.rs similarity index 100% rename from src/test/ui/static/static-region-bound.rs rename to tests/ui/static/static-region-bound.rs diff --git a/src/test/ui/static/static-region-bound.stderr b/tests/ui/static/static-region-bound.stderr similarity index 100% rename from src/test/ui/static/static-region-bound.stderr rename to tests/ui/static/static-region-bound.stderr diff --git a/src/test/ui/static/static-vec-repeat-not-constant.rs b/tests/ui/static/static-vec-repeat-not-constant.rs similarity index 100% rename from src/test/ui/static/static-vec-repeat-not-constant.rs rename to tests/ui/static/static-vec-repeat-not-constant.rs diff --git a/src/test/ui/static/static-vec-repeat-not-constant.stderr b/tests/ui/static/static-vec-repeat-not-constant.stderr similarity index 100% rename from src/test/ui/static/static-vec-repeat-not-constant.stderr rename to tests/ui/static/static-vec-repeat-not-constant.stderr diff --git a/src/test/ui/static/static_sized_requirement.rs b/tests/ui/static/static_sized_requirement.rs similarity index 100% rename from src/test/ui/static/static_sized_requirement.rs rename to tests/ui/static/static_sized_requirement.rs diff --git a/src/test/ui/static/thread-local-in-ctfe.rs b/tests/ui/static/thread-local-in-ctfe.rs similarity index 100% rename from src/test/ui/static/thread-local-in-ctfe.rs rename to tests/ui/static/thread-local-in-ctfe.rs diff --git a/src/test/ui/static/thread-local-in-ctfe.stderr b/tests/ui/static/thread-local-in-ctfe.stderr similarity index 100% rename from src/test/ui/static/thread-local-in-ctfe.stderr rename to tests/ui/static/thread-local-in-ctfe.stderr diff --git a/src/test/ui/statics/auxiliary/static-function-pointer-aux.rs b/tests/ui/statics/auxiliary/static-function-pointer-aux.rs similarity index 100% rename from src/test/ui/statics/auxiliary/static-function-pointer-aux.rs rename to tests/ui/statics/auxiliary/static-function-pointer-aux.rs diff --git a/src/test/ui/statics/auxiliary/static-methods-crate.rs b/tests/ui/statics/auxiliary/static-methods-crate.rs similarity index 100% rename from src/test/ui/statics/auxiliary/static-methods-crate.rs rename to tests/ui/statics/auxiliary/static-methods-crate.rs diff --git a/src/test/ui/statics/auxiliary/static_fn_inline_xc_aux.rs b/tests/ui/statics/auxiliary/static_fn_inline_xc_aux.rs similarity index 100% rename from src/test/ui/statics/auxiliary/static_fn_inline_xc_aux.rs rename to tests/ui/statics/auxiliary/static_fn_inline_xc_aux.rs diff --git a/src/test/ui/statics/auxiliary/static_fn_trait_xc_aux.rs b/tests/ui/statics/auxiliary/static_fn_trait_xc_aux.rs similarity index 100% rename from src/test/ui/statics/auxiliary/static_fn_trait_xc_aux.rs rename to tests/ui/statics/auxiliary/static_fn_trait_xc_aux.rs diff --git a/src/test/ui/statics/auxiliary/static_mut_xc.rs b/tests/ui/statics/auxiliary/static_mut_xc.rs similarity index 100% rename from src/test/ui/statics/auxiliary/static_mut_xc.rs rename to tests/ui/statics/auxiliary/static_mut_xc.rs diff --git a/src/test/ui/statics/issue-14227.mir.stderr b/tests/ui/statics/issue-14227.mir.stderr similarity index 100% rename from src/test/ui/statics/issue-14227.mir.stderr rename to tests/ui/statics/issue-14227.mir.stderr diff --git a/src/test/ui/statics/issue-14227.rs b/tests/ui/statics/issue-14227.rs similarity index 100% rename from src/test/ui/statics/issue-14227.rs rename to tests/ui/statics/issue-14227.rs diff --git a/src/test/ui/statics/issue-14227.thir.stderr b/tests/ui/statics/issue-14227.thir.stderr similarity index 100% rename from src/test/ui/statics/issue-14227.thir.stderr rename to tests/ui/statics/issue-14227.thir.stderr diff --git a/src/test/ui/statics/issue-15261.rs b/tests/ui/statics/issue-15261.rs similarity index 100% rename from src/test/ui/statics/issue-15261.rs rename to tests/ui/statics/issue-15261.rs diff --git a/src/test/ui/statics/issue-17233.rs b/tests/ui/statics/issue-17233.rs similarity index 100% rename from src/test/ui/statics/issue-17233.rs rename to tests/ui/statics/issue-17233.rs diff --git a/src/test/ui/statics/issue-17718-static-sync.rs b/tests/ui/statics/issue-17718-static-sync.rs similarity index 100% rename from src/test/ui/statics/issue-17718-static-sync.rs rename to tests/ui/statics/issue-17718-static-sync.rs diff --git a/src/test/ui/statics/issue-17718-static-sync.stderr b/tests/ui/statics/issue-17718-static-sync.stderr similarity index 100% rename from src/test/ui/statics/issue-17718-static-sync.stderr rename to tests/ui/statics/issue-17718-static-sync.stderr diff --git a/src/test/ui/statics/issue-17718-static-unsafe-interior.rs b/tests/ui/statics/issue-17718-static-unsafe-interior.rs similarity index 100% rename from src/test/ui/statics/issue-17718-static-unsafe-interior.rs rename to tests/ui/statics/issue-17718-static-unsafe-interior.rs diff --git a/src/test/ui/statics/issue-44373-2.rs b/tests/ui/statics/issue-44373-2.rs similarity index 100% rename from src/test/ui/statics/issue-44373-2.rs rename to tests/ui/statics/issue-44373-2.rs diff --git a/src/test/ui/statics/issue-44373.rs b/tests/ui/statics/issue-44373.rs similarity index 100% rename from src/test/ui/statics/issue-44373.rs rename to tests/ui/statics/issue-44373.rs diff --git a/src/test/ui/statics/issue-44373.stderr b/tests/ui/statics/issue-44373.stderr similarity index 100% rename from src/test/ui/statics/issue-44373.stderr rename to tests/ui/statics/issue-44373.stderr diff --git a/src/test/ui/statics/issue-91050-1.rs b/tests/ui/statics/issue-91050-1.rs similarity index 100% rename from src/test/ui/statics/issue-91050-1.rs rename to tests/ui/statics/issue-91050-1.rs diff --git a/src/test/ui/statics/issue-91050-2.rs b/tests/ui/statics/issue-91050-2.rs similarity index 100% rename from src/test/ui/statics/issue-91050-2.rs rename to tests/ui/statics/issue-91050-2.rs diff --git a/src/test/ui/statics/static-fn-inline-xc.rs b/tests/ui/statics/static-fn-inline-xc.rs similarity index 100% rename from src/test/ui/statics/static-fn-inline-xc.rs rename to tests/ui/statics/static-fn-inline-xc.rs diff --git a/src/test/ui/statics/static-fn-trait-xc.rs b/tests/ui/statics/static-fn-trait-xc.rs similarity index 100% rename from src/test/ui/statics/static-fn-trait-xc.rs rename to tests/ui/statics/static-fn-trait-xc.rs diff --git a/src/test/ui/statics/static-function-pointer-xc.rs b/tests/ui/statics/static-function-pointer-xc.rs similarity index 100% rename from src/test/ui/statics/static-function-pointer-xc.rs rename to tests/ui/statics/static-function-pointer-xc.rs diff --git a/src/test/ui/statics/static-function-pointer.rs b/tests/ui/statics/static-function-pointer.rs similarity index 100% rename from src/test/ui/statics/static-function-pointer.rs rename to tests/ui/statics/static-function-pointer.rs diff --git a/src/test/ui/statics/static-impl.rs b/tests/ui/statics/static-impl.rs similarity index 100% rename from src/test/ui/statics/static-impl.rs rename to tests/ui/statics/static-impl.rs diff --git a/src/test/ui/statics/static-method-in-trait-with-tps-intracrate.rs b/tests/ui/statics/static-method-in-trait-with-tps-intracrate.rs similarity index 100% rename from src/test/ui/statics/static-method-in-trait-with-tps-intracrate.rs rename to tests/ui/statics/static-method-in-trait-with-tps-intracrate.rs diff --git a/src/test/ui/statics/static-method-xcrate.rs b/tests/ui/statics/static-method-xcrate.rs similarity index 100% rename from src/test/ui/statics/static-method-xcrate.rs rename to tests/ui/statics/static-method-xcrate.rs diff --git a/src/test/ui/statics/static-methods-in-traits.rs b/tests/ui/statics/static-methods-in-traits.rs similarity index 100% rename from src/test/ui/statics/static-methods-in-traits.rs rename to tests/ui/statics/static-methods-in-traits.rs diff --git a/src/test/ui/statics/static-methods-in-traits2.rs b/tests/ui/statics/static-methods-in-traits2.rs similarity index 100% rename from src/test/ui/statics/static-methods-in-traits2.rs rename to tests/ui/statics/static-methods-in-traits2.rs diff --git a/src/test/ui/statics/static-mut-xc.rs b/tests/ui/statics/static-mut-xc.rs similarity index 100% rename from src/test/ui/statics/static-mut-xc.rs rename to tests/ui/statics/static-mut-xc.rs diff --git a/src/test/ui/statics/static-promotion.rs b/tests/ui/statics/static-promotion.rs similarity index 100% rename from src/test/ui/statics/static-promotion.rs rename to tests/ui/statics/static-promotion.rs diff --git a/src/test/ui/statics/static-recursive.rs b/tests/ui/statics/static-recursive.rs similarity index 100% rename from src/test/ui/statics/static-recursive.rs rename to tests/ui/statics/static-recursive.rs diff --git a/src/test/ui/statics/uninhabited-static.rs b/tests/ui/statics/uninhabited-static.rs similarity index 100% rename from src/test/ui/statics/uninhabited-static.rs rename to tests/ui/statics/uninhabited-static.rs diff --git a/src/test/ui/statics/uninhabited-static.stderr b/tests/ui/statics/uninhabited-static.stderr similarity index 100% rename from src/test/ui/statics/uninhabited-static.stderr rename to tests/ui/statics/uninhabited-static.stderr diff --git a/src/test/ui/stats/hir-stats.rs b/tests/ui/stats/hir-stats.rs similarity index 100% rename from src/test/ui/stats/hir-stats.rs rename to tests/ui/stats/hir-stats.rs diff --git a/src/test/ui/stats/hir-stats.stderr b/tests/ui/stats/hir-stats.stderr similarity index 100% rename from src/test/ui/stats/hir-stats.stderr rename to tests/ui/stats/hir-stats.stderr diff --git a/src/test/ui/std-backtrace.rs b/tests/ui/std-backtrace.rs similarity index 100% rename from src/test/ui/std-backtrace.rs rename to tests/ui/std-backtrace.rs diff --git a/src/test/ui/std-uncopyable-atomics.rs b/tests/ui/std-uncopyable-atomics.rs similarity index 100% rename from src/test/ui/std-uncopyable-atomics.rs rename to tests/ui/std-uncopyable-atomics.rs diff --git a/src/test/ui/std-uncopyable-atomics.stderr b/tests/ui/std-uncopyable-atomics.stderr similarity index 100% rename from src/test/ui/std-uncopyable-atomics.stderr rename to tests/ui/std-uncopyable-atomics.stderr diff --git a/src/test/ui/stdio-is-blocking.rs b/tests/ui/stdio-is-blocking.rs similarity index 100% rename from src/test/ui/stdio-is-blocking.rs rename to tests/ui/stdio-is-blocking.rs diff --git a/src/test/ui/stdlib-unit-tests/builtin-clone.rs b/tests/ui/stdlib-unit-tests/builtin-clone.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/builtin-clone.rs rename to tests/ui/stdlib-unit-tests/builtin-clone.rs diff --git a/src/test/ui/stdlib-unit-tests/eq-multidispatch.rs b/tests/ui/stdlib-unit-tests/eq-multidispatch.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/eq-multidispatch.rs rename to tests/ui/stdlib-unit-tests/eq-multidispatch.rs diff --git a/src/test/ui/stdlib-unit-tests/issue-21058.rs b/tests/ui/stdlib-unit-tests/issue-21058.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/issue-21058.rs rename to tests/ui/stdlib-unit-tests/issue-21058.rs diff --git a/src/test/ui/stdlib-unit-tests/istr.rs b/tests/ui/stdlib-unit-tests/istr.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/istr.rs rename to tests/ui/stdlib-unit-tests/istr.rs diff --git a/src/test/ui/stdlib-unit-tests/log-knows-the-names-of-variants-in-std.rs b/tests/ui/stdlib-unit-tests/log-knows-the-names-of-variants-in-std.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/log-knows-the-names-of-variants-in-std.rs rename to tests/ui/stdlib-unit-tests/log-knows-the-names-of-variants-in-std.rs diff --git a/src/test/ui/stdlib-unit-tests/matches2021.rs b/tests/ui/stdlib-unit-tests/matches2021.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/matches2021.rs rename to tests/ui/stdlib-unit-tests/matches2021.rs diff --git a/src/test/ui/stdlib-unit-tests/minmax-stability-issue-23687.rs b/tests/ui/stdlib-unit-tests/minmax-stability-issue-23687.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/minmax-stability-issue-23687.rs rename to tests/ui/stdlib-unit-tests/minmax-stability-issue-23687.rs diff --git a/src/test/ui/stdlib-unit-tests/not-sync.rs b/tests/ui/stdlib-unit-tests/not-sync.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/not-sync.rs rename to tests/ui/stdlib-unit-tests/not-sync.rs diff --git a/src/test/ui/stdlib-unit-tests/not-sync.stderr b/tests/ui/stdlib-unit-tests/not-sync.stderr similarity index 100% rename from src/test/ui/stdlib-unit-tests/not-sync.stderr rename to tests/ui/stdlib-unit-tests/not-sync.stderr diff --git a/src/test/ui/stdlib-unit-tests/raw-fat-ptr.rs b/tests/ui/stdlib-unit-tests/raw-fat-ptr.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/raw-fat-ptr.rs rename to tests/ui/stdlib-unit-tests/raw-fat-ptr.rs diff --git a/src/test/ui/stdlib-unit-tests/seq-compare.rs b/tests/ui/stdlib-unit-tests/seq-compare.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/seq-compare.rs rename to tests/ui/stdlib-unit-tests/seq-compare.rs diff --git a/src/test/ui/stdlib-unit-tests/volatile-fat-ptr.rs b/tests/ui/stdlib-unit-tests/volatile-fat-ptr.rs similarity index 100% rename from src/test/ui/stdlib-unit-tests/volatile-fat-ptr.rs rename to tests/ui/stdlib-unit-tests/volatile-fat-ptr.rs diff --git a/src/test/ui/stmt_expr_attrs_no_feature.rs b/tests/ui/stmt_expr_attrs_no_feature.rs similarity index 100% rename from src/test/ui/stmt_expr_attrs_no_feature.rs rename to tests/ui/stmt_expr_attrs_no_feature.rs diff --git a/src/test/ui/stmt_expr_attrs_no_feature.stderr b/tests/ui/stmt_expr_attrs_no_feature.stderr similarity index 100% rename from src/test/ui/stmt_expr_attrs_no_feature.stderr rename to tests/ui/stmt_expr_attrs_no_feature.stderr diff --git a/src/test/ui/str/str-array-assignment.rs b/tests/ui/str/str-array-assignment.rs similarity index 100% rename from src/test/ui/str/str-array-assignment.rs rename to tests/ui/str/str-array-assignment.rs diff --git a/src/test/ui/str/str-array-assignment.stderr b/tests/ui/str/str-array-assignment.stderr similarity index 100% rename from src/test/ui/str/str-array-assignment.stderr rename to tests/ui/str/str-array-assignment.stderr diff --git a/src/test/ui/str/str-as-char.fixed b/tests/ui/str/str-as-char.fixed similarity index 100% rename from src/test/ui/str/str-as-char.fixed rename to tests/ui/str/str-as-char.fixed diff --git a/src/test/ui/str/str-as-char.rs b/tests/ui/str/str-as-char.rs similarity index 100% rename from src/test/ui/str/str-as-char.rs rename to tests/ui/str/str-as-char.rs diff --git a/src/test/ui/str/str-as-char.stderr b/tests/ui/str/str-as-char.stderr similarity index 100% rename from src/test/ui/str/str-as-char.stderr rename to tests/ui/str/str-as-char.stderr diff --git a/src/test/ui/str/str-concat-on-double-ref.rs b/tests/ui/str/str-concat-on-double-ref.rs similarity index 100% rename from src/test/ui/str/str-concat-on-double-ref.rs rename to tests/ui/str/str-concat-on-double-ref.rs diff --git a/src/test/ui/str/str-concat-on-double-ref.stderr b/tests/ui/str/str-concat-on-double-ref.stderr similarity index 100% rename from src/test/ui/str/str-concat-on-double-ref.stderr rename to tests/ui/str/str-concat-on-double-ref.stderr diff --git a/src/test/ui/str/str-escape.rs b/tests/ui/str/str-escape.rs similarity index 100% rename from src/test/ui/str/str-escape.rs rename to tests/ui/str/str-escape.rs diff --git a/src/test/ui/str/str-escape.stderr b/tests/ui/str/str-escape.stderr similarity index 100% rename from src/test/ui/str/str-escape.stderr rename to tests/ui/str/str-escape.stderr diff --git a/src/test/ui/str/str-idx.rs b/tests/ui/str/str-idx.rs similarity index 100% rename from src/test/ui/str/str-idx.rs rename to tests/ui/str/str-idx.rs diff --git a/src/test/ui/str/str-idx.stderr b/tests/ui/str/str-idx.stderr similarity index 100% rename from src/test/ui/str/str-idx.stderr rename to tests/ui/str/str-idx.stderr diff --git a/src/test/ui/str/str-lit-type-mismatch.rs b/tests/ui/str/str-lit-type-mismatch.rs similarity index 100% rename from src/test/ui/str/str-lit-type-mismatch.rs rename to tests/ui/str/str-lit-type-mismatch.rs diff --git a/src/test/ui/str/str-lit-type-mismatch.stderr b/tests/ui/str/str-lit-type-mismatch.stderr similarity index 100% rename from src/test/ui/str/str-lit-type-mismatch.stderr rename to tests/ui/str/str-lit-type-mismatch.stderr diff --git a/src/test/ui/str/str-mut-idx.rs b/tests/ui/str/str-mut-idx.rs similarity index 100% rename from src/test/ui/str/str-mut-idx.rs rename to tests/ui/str/str-mut-idx.rs diff --git a/src/test/ui/str/str-mut-idx.stderr b/tests/ui/str/str-mut-idx.stderr similarity index 100% rename from src/test/ui/str/str-mut-idx.stderr rename to tests/ui/str/str-mut-idx.stderr diff --git a/src/test/ui/str/str-overrun.rs b/tests/ui/str/str-overrun.rs similarity index 100% rename from src/test/ui/str/str-overrun.rs rename to tests/ui/str/str-overrun.rs diff --git a/src/test/ui/string-box-error.rs b/tests/ui/string-box-error.rs similarity index 100% rename from src/test/ui/string-box-error.rs rename to tests/ui/string-box-error.rs diff --git a/src/test/ui/struct-ctor-mangling.rs b/tests/ui/struct-ctor-mangling.rs similarity index 100% rename from src/test/ui/struct-ctor-mangling.rs rename to tests/ui/struct-ctor-mangling.rs diff --git a/src/test/ui/structs-enums/align-enum.rs b/tests/ui/structs-enums/align-enum.rs similarity index 100% rename from src/test/ui/structs-enums/align-enum.rs rename to tests/ui/structs-enums/align-enum.rs diff --git a/src/test/ui/structs-enums/align-struct.rs b/tests/ui/structs-enums/align-struct.rs similarity index 100% rename from src/test/ui/structs-enums/align-struct.rs rename to tests/ui/structs-enums/align-struct.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class.rs b/tests/ui/structs-enums/auxiliary/cci_class.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class.rs rename to tests/ui/structs-enums/auxiliary/cci_class.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class_2.rs b/tests/ui/structs-enums/auxiliary/cci_class_2.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class_2.rs rename to tests/ui/structs-enums/auxiliary/cci_class_2.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class_3.rs b/tests/ui/structs-enums/auxiliary/cci_class_3.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class_3.rs rename to tests/ui/structs-enums/auxiliary/cci_class_3.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class_4.rs b/tests/ui/structs-enums/auxiliary/cci_class_4.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class_4.rs rename to tests/ui/structs-enums/auxiliary/cci_class_4.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class_6.rs b/tests/ui/structs-enums/auxiliary/cci_class_6.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class_6.rs rename to tests/ui/structs-enums/auxiliary/cci_class_6.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class_cast.rs b/tests/ui/structs-enums/auxiliary/cci_class_cast.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class_cast.rs rename to tests/ui/structs-enums/auxiliary/cci_class_cast.rs diff --git a/src/test/ui/structs-enums/auxiliary/cci_class_trait.rs b/tests/ui/structs-enums/auxiliary/cci_class_trait.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/cci_class_trait.rs rename to tests/ui/structs-enums/auxiliary/cci_class_trait.rs diff --git a/src/test/ui/structs-enums/auxiliary/empty-struct.rs b/tests/ui/structs-enums/auxiliary/empty-struct.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/empty-struct.rs rename to tests/ui/structs-enums/auxiliary/empty-struct.rs diff --git a/src/test/ui/structs-enums/auxiliary/namespaced_enum_emulate_flat.rs b/tests/ui/structs-enums/auxiliary/namespaced_enum_emulate_flat.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/namespaced_enum_emulate_flat.rs rename to tests/ui/structs-enums/auxiliary/namespaced_enum_emulate_flat.rs diff --git a/src/test/ui/structs-enums/auxiliary/namespaced_enums.rs b/tests/ui/structs-enums/auxiliary/namespaced_enums.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/namespaced_enums.rs rename to tests/ui/structs-enums/auxiliary/namespaced_enums.rs diff --git a/src/test/ui/structs-enums/auxiliary/newtype_struct_xc.rs b/tests/ui/structs-enums/auxiliary/newtype_struct_xc.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/newtype_struct_xc.rs rename to tests/ui/structs-enums/auxiliary/newtype_struct_xc.rs diff --git a/src/test/ui/structs-enums/auxiliary/struct_destructuring_cross_crate.rs b/tests/ui/structs-enums/auxiliary/struct_destructuring_cross_crate.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/struct_destructuring_cross_crate.rs rename to tests/ui/structs-enums/auxiliary/struct_destructuring_cross_crate.rs diff --git a/src/test/ui/structs-enums/auxiliary/struct_variant_xc_aux.rs b/tests/ui/structs-enums/auxiliary/struct_variant_xc_aux.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/struct_variant_xc_aux.rs rename to tests/ui/structs-enums/auxiliary/struct_variant_xc_aux.rs diff --git a/src/test/ui/structs-enums/auxiliary/xcrate_struct_aliases.rs b/tests/ui/structs-enums/auxiliary/xcrate_struct_aliases.rs similarity index 100% rename from src/test/ui/structs-enums/auxiliary/xcrate_struct_aliases.rs rename to tests/ui/structs-enums/auxiliary/xcrate_struct_aliases.rs diff --git a/src/test/ui/structs-enums/borrow-tuple-fields.rs b/tests/ui/structs-enums/borrow-tuple-fields.rs similarity index 100% rename from src/test/ui/structs-enums/borrow-tuple-fields.rs rename to tests/ui/structs-enums/borrow-tuple-fields.rs diff --git a/src/test/ui/structs-enums/class-cast-to-trait-cross-crate-2.rs b/tests/ui/structs-enums/class-cast-to-trait-cross-crate-2.rs similarity index 100% rename from src/test/ui/structs-enums/class-cast-to-trait-cross-crate-2.rs rename to tests/ui/structs-enums/class-cast-to-trait-cross-crate-2.rs diff --git a/src/test/ui/structs-enums/class-cast-to-trait-multiple-types.rs b/tests/ui/structs-enums/class-cast-to-trait-multiple-types.rs similarity index 100% rename from src/test/ui/structs-enums/class-cast-to-trait-multiple-types.rs rename to tests/ui/structs-enums/class-cast-to-trait-multiple-types.rs diff --git a/src/test/ui/structs-enums/class-cast-to-trait.rs b/tests/ui/structs-enums/class-cast-to-trait.rs similarity index 100% rename from src/test/ui/structs-enums/class-cast-to-trait.rs rename to tests/ui/structs-enums/class-cast-to-trait.rs diff --git a/src/test/ui/structs-enums/class-dtor.rs b/tests/ui/structs-enums/class-dtor.rs similarity index 100% rename from src/test/ui/structs-enums/class-dtor.rs rename to tests/ui/structs-enums/class-dtor.rs diff --git a/src/test/ui/structs-enums/class-exports.rs b/tests/ui/structs-enums/class-exports.rs similarity index 100% rename from src/test/ui/structs-enums/class-exports.rs rename to tests/ui/structs-enums/class-exports.rs diff --git a/src/test/ui/structs-enums/class-impl-very-parameterized-trait.rs b/tests/ui/structs-enums/class-impl-very-parameterized-trait.rs similarity index 100% rename from src/test/ui/structs-enums/class-impl-very-parameterized-trait.rs rename to tests/ui/structs-enums/class-impl-very-parameterized-trait.rs diff --git a/src/test/ui/structs-enums/class-implement-trait-cross-crate.rs b/tests/ui/structs-enums/class-implement-trait-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/class-implement-trait-cross-crate.rs rename to tests/ui/structs-enums/class-implement-trait-cross-crate.rs diff --git a/src/test/ui/structs-enums/class-implement-traits.rs b/tests/ui/structs-enums/class-implement-traits.rs similarity index 100% rename from src/test/ui/structs-enums/class-implement-traits.rs rename to tests/ui/structs-enums/class-implement-traits.rs diff --git a/src/test/ui/structs-enums/class-method-cross-crate.rs b/tests/ui/structs-enums/class-method-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/class-method-cross-crate.rs rename to tests/ui/structs-enums/class-method-cross-crate.rs diff --git a/src/test/ui/structs-enums/class-methods-cross-crate.rs b/tests/ui/structs-enums/class-methods-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/class-methods-cross-crate.rs rename to tests/ui/structs-enums/class-methods-cross-crate.rs diff --git a/src/test/ui/structs-enums/class-methods.rs b/tests/ui/structs-enums/class-methods.rs similarity index 100% rename from src/test/ui/structs-enums/class-methods.rs rename to tests/ui/structs-enums/class-methods.rs diff --git a/src/test/ui/structs-enums/class-poly-methods-cross-crate.rs b/tests/ui/structs-enums/class-poly-methods-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/class-poly-methods-cross-crate.rs rename to tests/ui/structs-enums/class-poly-methods-cross-crate.rs diff --git a/src/test/ui/structs-enums/class-poly-methods.rs b/tests/ui/structs-enums/class-poly-methods.rs similarity index 100% rename from src/test/ui/structs-enums/class-poly-methods.rs rename to tests/ui/structs-enums/class-poly-methods.rs diff --git a/src/test/ui/structs-enums/class-separate-impl.rs b/tests/ui/structs-enums/class-separate-impl.rs similarity index 100% rename from src/test/ui/structs-enums/class-separate-impl.rs rename to tests/ui/structs-enums/class-separate-impl.rs diff --git a/src/test/ui/structs-enums/class-str-field.rs b/tests/ui/structs-enums/class-str-field.rs similarity index 100% rename from src/test/ui/structs-enums/class-str-field.rs rename to tests/ui/structs-enums/class-str-field.rs diff --git a/src/test/ui/structs-enums/class-typarams.rs b/tests/ui/structs-enums/class-typarams.rs similarity index 100% rename from src/test/ui/structs-enums/class-typarams.rs rename to tests/ui/structs-enums/class-typarams.rs diff --git a/src/test/ui/structs-enums/classes-cross-crate.rs b/tests/ui/structs-enums/classes-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/classes-cross-crate.rs rename to tests/ui/structs-enums/classes-cross-crate.rs diff --git a/src/test/ui/structs-enums/classes-self-referential.rs b/tests/ui/structs-enums/classes-self-referential.rs similarity index 100% rename from src/test/ui/structs-enums/classes-self-referential.rs rename to tests/ui/structs-enums/classes-self-referential.rs diff --git a/src/test/ui/structs-enums/classes-simple-cross-crate.rs b/tests/ui/structs-enums/classes-simple-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/classes-simple-cross-crate.rs rename to tests/ui/structs-enums/classes-simple-cross-crate.rs diff --git a/src/test/ui/structs-enums/classes-simple-method.rs b/tests/ui/structs-enums/classes-simple-method.rs similarity index 100% rename from src/test/ui/structs-enums/classes-simple-method.rs rename to tests/ui/structs-enums/classes-simple-method.rs diff --git a/src/test/ui/structs-enums/classes-simple.rs b/tests/ui/structs-enums/classes-simple.rs similarity index 100% rename from src/test/ui/structs-enums/classes-simple.rs rename to tests/ui/structs-enums/classes-simple.rs diff --git a/src/test/ui/structs-enums/classes.rs b/tests/ui/structs-enums/classes.rs similarity index 100% rename from src/test/ui/structs-enums/classes.rs rename to tests/ui/structs-enums/classes.rs diff --git a/src/test/ui/structs-enums/codegen-tag-static-padding.rs b/tests/ui/structs-enums/codegen-tag-static-padding.rs similarity index 100% rename from src/test/ui/structs-enums/codegen-tag-static-padding.rs rename to tests/ui/structs-enums/codegen-tag-static-padding.rs diff --git a/src/test/ui/structs-enums/compare-generic-enums.rs b/tests/ui/structs-enums/compare-generic-enums.rs similarity index 100% rename from src/test/ui/structs-enums/compare-generic-enums.rs rename to tests/ui/structs-enums/compare-generic-enums.rs diff --git a/src/test/ui/structs-enums/cross-crate-newtype-struct-pat.rs b/tests/ui/structs-enums/cross-crate-newtype-struct-pat.rs similarity index 100% rename from src/test/ui/structs-enums/cross-crate-newtype-struct-pat.rs rename to tests/ui/structs-enums/cross-crate-newtype-struct-pat.rs diff --git a/src/test/ui/structs-enums/discrim-explicit-23030.rs b/tests/ui/structs-enums/discrim-explicit-23030.rs similarity index 100% rename from src/test/ui/structs-enums/discrim-explicit-23030.rs rename to tests/ui/structs-enums/discrim-explicit-23030.rs diff --git a/src/test/ui/structs-enums/empty-struct-braces.rs b/tests/ui/structs-enums/empty-struct-braces.rs similarity index 100% rename from src/test/ui/structs-enums/empty-struct-braces.rs rename to tests/ui/structs-enums/empty-struct-braces.rs diff --git a/src/test/ui/structs-enums/empty-tag.rs b/tests/ui/structs-enums/empty-tag.rs similarity index 100% rename from src/test/ui/structs-enums/empty-tag.rs rename to tests/ui/structs-enums/empty-tag.rs diff --git a/src/test/ui/structs-enums/enum-alignment.rs b/tests/ui/structs-enums/enum-alignment.rs similarity index 100% rename from src/test/ui/structs-enums/enum-alignment.rs rename to tests/ui/structs-enums/enum-alignment.rs diff --git a/src/test/ui/structs-enums/enum-clike-ffi-as-int.rs b/tests/ui/structs-enums/enum-clike-ffi-as-int.rs similarity index 100% rename from src/test/ui/structs-enums/enum-clike-ffi-as-int.rs rename to tests/ui/structs-enums/enum-clike-ffi-as-int.rs diff --git a/src/test/ui/structs-enums/enum-discr.rs b/tests/ui/structs-enums/enum-discr.rs similarity index 100% rename from src/test/ui/structs-enums/enum-discr.rs rename to tests/ui/structs-enums/enum-discr.rs diff --git a/src/test/ui/structs-enums/enum-discrim-autosizing.rs b/tests/ui/structs-enums/enum-discrim-autosizing.rs similarity index 100% rename from src/test/ui/structs-enums/enum-discrim-autosizing.rs rename to tests/ui/structs-enums/enum-discrim-autosizing.rs diff --git a/src/test/ui/structs-enums/enum-discrim-manual-sizing.rs b/tests/ui/structs-enums/enum-discrim-manual-sizing.rs similarity index 100% rename from src/test/ui/structs-enums/enum-discrim-manual-sizing.rs rename to tests/ui/structs-enums/enum-discrim-manual-sizing.rs diff --git a/src/test/ui/structs-enums/enum-discrim-range-overflow.rs b/tests/ui/structs-enums/enum-discrim-range-overflow.rs similarity index 100% rename from src/test/ui/structs-enums/enum-discrim-range-overflow.rs rename to tests/ui/structs-enums/enum-discrim-range-overflow.rs diff --git a/src/test/ui/structs-enums/enum-discrim-width-stuff.rs b/tests/ui/structs-enums/enum-discrim-width-stuff.rs similarity index 100% rename from src/test/ui/structs-enums/enum-discrim-width-stuff.rs rename to tests/ui/structs-enums/enum-discrim-width-stuff.rs diff --git a/src/test/ui/structs-enums/enum-disr-val-pretty.rs b/tests/ui/structs-enums/enum-disr-val-pretty.rs similarity index 100% rename from src/test/ui/structs-enums/enum-disr-val-pretty.rs rename to tests/ui/structs-enums/enum-disr-val-pretty.rs diff --git a/src/test/ui/structs-enums/enum-export-inheritance.rs b/tests/ui/structs-enums/enum-export-inheritance.rs similarity index 100% rename from src/test/ui/structs-enums/enum-export-inheritance.rs rename to tests/ui/structs-enums/enum-export-inheritance.rs diff --git a/src/test/ui/structs-enums/enum-layout-optimization.rs b/tests/ui/structs-enums/enum-layout-optimization.rs similarity index 100% rename from src/test/ui/structs-enums/enum-layout-optimization.rs rename to tests/ui/structs-enums/enum-layout-optimization.rs diff --git a/src/test/ui/structs-enums/enum-non-c-like-repr-c-and-int.rs b/tests/ui/structs-enums/enum-non-c-like-repr-c-and-int.rs similarity index 100% rename from src/test/ui/structs-enums/enum-non-c-like-repr-c-and-int.rs rename to tests/ui/structs-enums/enum-non-c-like-repr-c-and-int.rs diff --git a/src/test/ui/structs-enums/enum-non-c-like-repr-c.rs b/tests/ui/structs-enums/enum-non-c-like-repr-c.rs similarity index 100% rename from src/test/ui/structs-enums/enum-non-c-like-repr-c.rs rename to tests/ui/structs-enums/enum-non-c-like-repr-c.rs diff --git a/src/test/ui/structs-enums/enum-non-c-like-repr-int.rs b/tests/ui/structs-enums/enum-non-c-like-repr-int.rs similarity index 100% rename from src/test/ui/structs-enums/enum-non-c-like-repr-int.rs rename to tests/ui/structs-enums/enum-non-c-like-repr-int.rs diff --git a/src/test/ui/structs-enums/enum-null-pointer-opt.rs b/tests/ui/structs-enums/enum-null-pointer-opt.rs similarity index 100% rename from src/test/ui/structs-enums/enum-null-pointer-opt.rs rename to tests/ui/structs-enums/enum-null-pointer-opt.rs diff --git a/src/test/ui/structs-enums/enum-nullable-const-null-with-fields.rs b/tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs similarity index 100% rename from src/test/ui/structs-enums/enum-nullable-const-null-with-fields.rs rename to tests/ui/structs-enums/enum-nullable-const-null-with-fields.rs diff --git a/src/test/ui/structs-enums/enum-nullable-simplifycfg-misopt.rs b/tests/ui/structs-enums/enum-nullable-simplifycfg-misopt.rs similarity index 100% rename from src/test/ui/structs-enums/enum-nullable-simplifycfg-misopt.rs rename to tests/ui/structs-enums/enum-nullable-simplifycfg-misopt.rs diff --git a/src/test/ui/structs-enums/enum-univariant-repr.rs b/tests/ui/structs-enums/enum-univariant-repr.rs similarity index 100% rename from src/test/ui/structs-enums/enum-univariant-repr.rs rename to tests/ui/structs-enums/enum-univariant-repr.rs diff --git a/src/test/ui/structs-enums/enum-variants.rs b/tests/ui/structs-enums/enum-variants.rs similarity index 100% rename from src/test/ui/structs-enums/enum-variants.rs rename to tests/ui/structs-enums/enum-variants.rs diff --git a/src/test/ui/structs-enums/enum-vec-initializer.rs b/tests/ui/structs-enums/enum-vec-initializer.rs similarity index 100% rename from src/test/ui/structs-enums/enum-vec-initializer.rs rename to tests/ui/structs-enums/enum-vec-initializer.rs diff --git a/src/test/ui/structs-enums/export-abstract-tag.rs b/tests/ui/structs-enums/export-abstract-tag.rs similarity index 100% rename from src/test/ui/structs-enums/export-abstract-tag.rs rename to tests/ui/structs-enums/export-abstract-tag.rs diff --git a/src/test/ui/structs-enums/export-tag-variant.rs b/tests/ui/structs-enums/export-tag-variant.rs similarity index 100% rename from src/test/ui/structs-enums/export-tag-variant.rs rename to tests/ui/structs-enums/export-tag-variant.rs diff --git a/src/test/ui/structs-enums/expr-if-struct.rs b/tests/ui/structs-enums/expr-if-struct.rs similarity index 100% rename from src/test/ui/structs-enums/expr-if-struct.rs rename to tests/ui/structs-enums/expr-if-struct.rs diff --git a/src/test/ui/structs-enums/expr-match-struct.rs b/tests/ui/structs-enums/expr-match-struct.rs similarity index 100% rename from src/test/ui/structs-enums/expr-match-struct.rs rename to tests/ui/structs-enums/expr-match-struct.rs diff --git a/src/test/ui/structs-enums/field-destruction-order.rs b/tests/ui/structs-enums/field-destruction-order.rs similarity index 100% rename from src/test/ui/structs-enums/field-destruction-order.rs rename to tests/ui/structs-enums/field-destruction-order.rs diff --git a/src/test/ui/structs-enums/foreign-struct.rs b/tests/ui/structs-enums/foreign-struct.rs similarity index 100% rename from src/test/ui/structs-enums/foreign-struct.rs rename to tests/ui/structs-enums/foreign-struct.rs diff --git a/src/test/ui/structs-enums/functional-struct-upd.rs b/tests/ui/structs-enums/functional-struct-upd.rs similarity index 100% rename from src/test/ui/structs-enums/functional-struct-upd.rs rename to tests/ui/structs-enums/functional-struct-upd.rs diff --git a/src/test/ui/structs-enums/issue-1701.rs b/tests/ui/structs-enums/issue-1701.rs similarity index 100% rename from src/test/ui/structs-enums/issue-1701.rs rename to tests/ui/structs-enums/issue-1701.rs diff --git a/src/test/ui/structs-enums/issue-2718-a.rs b/tests/ui/structs-enums/issue-2718-a.rs similarity index 100% rename from src/test/ui/structs-enums/issue-2718-a.rs rename to tests/ui/structs-enums/issue-2718-a.rs diff --git a/src/test/ui/structs-enums/issue-2718-a.stderr b/tests/ui/structs-enums/issue-2718-a.stderr similarity index 100% rename from src/test/ui/structs-enums/issue-2718-a.stderr rename to tests/ui/structs-enums/issue-2718-a.stderr diff --git a/src/test/ui/structs-enums/issue-38002.rs b/tests/ui/structs-enums/issue-38002.rs similarity index 100% rename from src/test/ui/structs-enums/issue-38002.rs rename to tests/ui/structs-enums/issue-38002.rs diff --git a/src/test/ui/structs-enums/issue-50731.rs b/tests/ui/structs-enums/issue-50731.rs similarity index 100% rename from src/test/ui/structs-enums/issue-50731.rs rename to tests/ui/structs-enums/issue-50731.rs diff --git a/src/test/ui/structs-enums/ivec-tag.rs b/tests/ui/structs-enums/ivec-tag.rs similarity index 100% rename from src/test/ui/structs-enums/ivec-tag.rs rename to tests/ui/structs-enums/ivec-tag.rs diff --git a/src/test/ui/structs-enums/module-qualified-struct-destructure.rs b/tests/ui/structs-enums/module-qualified-struct-destructure.rs similarity index 100% rename from src/test/ui/structs-enums/module-qualified-struct-destructure.rs rename to tests/ui/structs-enums/module-qualified-struct-destructure.rs diff --git a/src/test/ui/structs-enums/multiple-reprs.rs b/tests/ui/structs-enums/multiple-reprs.rs similarity index 100% rename from src/test/ui/structs-enums/multiple-reprs.rs rename to tests/ui/structs-enums/multiple-reprs.rs diff --git a/src/test/ui/structs-enums/namespaced-enum-emulate-flat-xc.rs b/tests/ui/structs-enums/namespaced-enum-emulate-flat-xc.rs similarity index 100% rename from src/test/ui/structs-enums/namespaced-enum-emulate-flat-xc.rs rename to tests/ui/structs-enums/namespaced-enum-emulate-flat-xc.rs diff --git a/src/test/ui/structs-enums/namespaced-enum-emulate-flat.rs b/tests/ui/structs-enums/namespaced-enum-emulate-flat.rs similarity index 100% rename from src/test/ui/structs-enums/namespaced-enum-emulate-flat.rs rename to tests/ui/structs-enums/namespaced-enum-emulate-flat.rs diff --git a/src/test/ui/structs-enums/namespaced-enum-glob-import-xcrate.rs b/tests/ui/structs-enums/namespaced-enum-glob-import-xcrate.rs similarity index 100% rename from src/test/ui/structs-enums/namespaced-enum-glob-import-xcrate.rs rename to tests/ui/structs-enums/namespaced-enum-glob-import-xcrate.rs diff --git a/src/test/ui/structs-enums/namespaced-enum-glob-import.rs b/tests/ui/structs-enums/namespaced-enum-glob-import.rs similarity index 100% rename from src/test/ui/structs-enums/namespaced-enum-glob-import.rs rename to tests/ui/structs-enums/namespaced-enum-glob-import.rs diff --git a/src/test/ui/structs-enums/namespaced-enums-xcrate.rs b/tests/ui/structs-enums/namespaced-enums-xcrate.rs similarity index 100% rename from src/test/ui/structs-enums/namespaced-enums-xcrate.rs rename to tests/ui/structs-enums/namespaced-enums-xcrate.rs diff --git a/src/test/ui/structs-enums/namespaced-enums.rs b/tests/ui/structs-enums/namespaced-enums.rs similarity index 100% rename from src/test/ui/structs-enums/namespaced-enums.rs rename to tests/ui/structs-enums/namespaced-enums.rs diff --git a/src/test/ui/structs-enums/nested-enum-same-names.rs b/tests/ui/structs-enums/nested-enum-same-names.rs similarity index 100% rename from src/test/ui/structs-enums/nested-enum-same-names.rs rename to tests/ui/structs-enums/nested-enum-same-names.rs diff --git a/src/test/ui/structs-enums/newtype-struct-drop-run.rs b/tests/ui/structs-enums/newtype-struct-drop-run.rs similarity index 100% rename from src/test/ui/structs-enums/newtype-struct-drop-run.rs rename to tests/ui/structs-enums/newtype-struct-drop-run.rs diff --git a/src/test/ui/structs-enums/newtype-struct-with-dtor.rs b/tests/ui/structs-enums/newtype-struct-with-dtor.rs similarity index 100% rename from src/test/ui/structs-enums/newtype-struct-with-dtor.rs rename to tests/ui/structs-enums/newtype-struct-with-dtor.rs diff --git a/src/test/ui/structs-enums/newtype-struct-xc-2.rs b/tests/ui/structs-enums/newtype-struct-xc-2.rs similarity index 100% rename from src/test/ui/structs-enums/newtype-struct-xc-2.rs rename to tests/ui/structs-enums/newtype-struct-xc-2.rs diff --git a/src/test/ui/structs-enums/newtype-struct-xc.rs b/tests/ui/structs-enums/newtype-struct-xc.rs similarity index 100% rename from src/test/ui/structs-enums/newtype-struct-xc.rs rename to tests/ui/structs-enums/newtype-struct-xc.rs diff --git a/src/test/ui/structs-enums/nonzero-enum.rs b/tests/ui/structs-enums/nonzero-enum.rs similarity index 100% rename from src/test/ui/structs-enums/nonzero-enum.rs rename to tests/ui/structs-enums/nonzero-enum.rs diff --git a/src/test/ui/structs-enums/numeric-fields.rs b/tests/ui/structs-enums/numeric-fields.rs similarity index 100% rename from src/test/ui/structs-enums/numeric-fields.rs rename to tests/ui/structs-enums/numeric-fields.rs diff --git a/src/test/ui/structs-enums/rec-align-u32.rs b/tests/ui/structs-enums/rec-align-u32.rs similarity index 100% rename from src/test/ui/structs-enums/rec-align-u32.rs rename to tests/ui/structs-enums/rec-align-u32.rs diff --git a/src/test/ui/structs-enums/rec-align-u64.rs b/tests/ui/structs-enums/rec-align-u64.rs similarity index 100% rename from src/test/ui/structs-enums/rec-align-u64.rs rename to tests/ui/structs-enums/rec-align-u64.rs diff --git a/src/test/ui/structs-enums/rec-auto.rs b/tests/ui/structs-enums/rec-auto.rs similarity index 100% rename from src/test/ui/structs-enums/rec-auto.rs rename to tests/ui/structs-enums/rec-auto.rs diff --git a/src/test/ui/structs-enums/rec-extend.rs b/tests/ui/structs-enums/rec-extend.rs similarity index 100% rename from src/test/ui/structs-enums/rec-extend.rs rename to tests/ui/structs-enums/rec-extend.rs diff --git a/src/test/ui/structs-enums/rec-tup.rs b/tests/ui/structs-enums/rec-tup.rs similarity index 100% rename from src/test/ui/structs-enums/rec-tup.rs rename to tests/ui/structs-enums/rec-tup.rs diff --git a/src/test/ui/structs-enums/rec.rs b/tests/ui/structs-enums/rec.rs similarity index 100% rename from src/test/ui/structs-enums/rec.rs rename to tests/ui/structs-enums/rec.rs diff --git a/src/test/ui/structs-enums/record-pat.rs b/tests/ui/structs-enums/record-pat.rs similarity index 100% rename from src/test/ui/structs-enums/record-pat.rs rename to tests/ui/structs-enums/record-pat.rs diff --git a/src/test/ui/structs-enums/resource-in-struct.rs b/tests/ui/structs-enums/resource-in-struct.rs similarity index 100% rename from src/test/ui/structs-enums/resource-in-struct.rs rename to tests/ui/structs-enums/resource-in-struct.rs diff --git a/src/test/ui/structs-enums/simple-generic-tag.rs b/tests/ui/structs-enums/simple-generic-tag.rs similarity index 100% rename from src/test/ui/structs-enums/simple-generic-tag.rs rename to tests/ui/structs-enums/simple-generic-tag.rs diff --git a/src/test/ui/structs-enums/simple-match-generic-tag.rs b/tests/ui/structs-enums/simple-match-generic-tag.rs similarity index 100% rename from src/test/ui/structs-enums/simple-match-generic-tag.rs rename to tests/ui/structs-enums/simple-match-generic-tag.rs diff --git a/src/test/ui/structs-enums/small-enum-range-edge.rs b/tests/ui/structs-enums/small-enum-range-edge.rs similarity index 100% rename from src/test/ui/structs-enums/small-enum-range-edge.rs rename to tests/ui/structs-enums/small-enum-range-edge.rs diff --git a/src/test/ui/structs-enums/small-enums-with-fields.rs b/tests/ui/structs-enums/small-enums-with-fields.rs similarity index 100% rename from src/test/ui/structs-enums/small-enums-with-fields.rs rename to tests/ui/structs-enums/small-enums-with-fields.rs diff --git a/src/test/ui/structs-enums/struct-aliases-xcrate.rs b/tests/ui/structs-enums/struct-aliases-xcrate.rs similarity index 100% rename from src/test/ui/structs-enums/struct-aliases-xcrate.rs rename to tests/ui/structs-enums/struct-aliases-xcrate.rs diff --git a/src/test/ui/structs-enums/struct-aliases.rs b/tests/ui/structs-enums/struct-aliases.rs similarity index 100% rename from src/test/ui/structs-enums/struct-aliases.rs rename to tests/ui/structs-enums/struct-aliases.rs diff --git a/src/test/ui/structs-enums/struct-destructuring-cross-crate.rs b/tests/ui/structs-enums/struct-destructuring-cross-crate.rs similarity index 100% rename from src/test/ui/structs-enums/struct-destructuring-cross-crate.rs rename to tests/ui/structs-enums/struct-destructuring-cross-crate.rs diff --git a/src/test/ui/structs-enums/struct-enum-ignoring-field-with-underscore.rs b/tests/ui/structs-enums/struct-enum-ignoring-field-with-underscore.rs similarity index 100% rename from src/test/ui/structs-enums/struct-enum-ignoring-field-with-underscore.rs rename to tests/ui/structs-enums/struct-enum-ignoring-field-with-underscore.rs diff --git a/src/test/ui/structs-enums/struct-enum-ignoring-field-with-underscore.stderr b/tests/ui/structs-enums/struct-enum-ignoring-field-with-underscore.stderr similarity index 100% rename from src/test/ui/structs-enums/struct-enum-ignoring-field-with-underscore.stderr rename to tests/ui/structs-enums/struct-enum-ignoring-field-with-underscore.stderr diff --git a/src/test/ui/structs-enums/struct-field-shorthand.rs b/tests/ui/structs-enums/struct-field-shorthand.rs similarity index 100% rename from src/test/ui/structs-enums/struct-field-shorthand.rs rename to tests/ui/structs-enums/struct-field-shorthand.rs diff --git a/src/test/ui/structs-enums/struct-like-variant-construct.rs b/tests/ui/structs-enums/struct-like-variant-construct.rs similarity index 100% rename from src/test/ui/structs-enums/struct-like-variant-construct.rs rename to tests/ui/structs-enums/struct-like-variant-construct.rs diff --git a/src/test/ui/structs-enums/struct-like-variant-match.rs b/tests/ui/structs-enums/struct-like-variant-match.rs similarity index 100% rename from src/test/ui/structs-enums/struct-like-variant-match.rs rename to tests/ui/structs-enums/struct-like-variant-match.rs diff --git a/src/test/ui/structs-enums/struct-lit-functional-no-fields.rs b/tests/ui/structs-enums/struct-lit-functional-no-fields.rs similarity index 100% rename from src/test/ui/structs-enums/struct-lit-functional-no-fields.rs rename to tests/ui/structs-enums/struct-lit-functional-no-fields.rs diff --git a/src/test/ui/structs-enums/struct-literal-dtor.rs b/tests/ui/structs-enums/struct-literal-dtor.rs similarity index 100% rename from src/test/ui/structs-enums/struct-literal-dtor.rs rename to tests/ui/structs-enums/struct-literal-dtor.rs diff --git a/src/test/ui/structs-enums/struct-new-as-field-name.rs b/tests/ui/structs-enums/struct-new-as-field-name.rs similarity index 100% rename from src/test/ui/structs-enums/struct-new-as-field-name.rs rename to tests/ui/structs-enums/struct-new-as-field-name.rs diff --git a/src/test/ui/structs-enums/struct-order-of-eval-1.rs b/tests/ui/structs-enums/struct-order-of-eval-1.rs similarity index 100% rename from src/test/ui/structs-enums/struct-order-of-eval-1.rs rename to tests/ui/structs-enums/struct-order-of-eval-1.rs diff --git a/src/test/ui/structs-enums/struct-order-of-eval-2.rs b/tests/ui/structs-enums/struct-order-of-eval-2.rs similarity index 100% rename from src/test/ui/structs-enums/struct-order-of-eval-2.rs rename to tests/ui/structs-enums/struct-order-of-eval-2.rs diff --git a/src/test/ui/structs-enums/struct-order-of-eval-3.rs b/tests/ui/structs-enums/struct-order-of-eval-3.rs similarity index 100% rename from src/test/ui/structs-enums/struct-order-of-eval-3.rs rename to tests/ui/structs-enums/struct-order-of-eval-3.rs diff --git a/src/test/ui/structs-enums/struct-order-of-eval-4.rs b/tests/ui/structs-enums/struct-order-of-eval-4.rs similarity index 100% rename from src/test/ui/structs-enums/struct-order-of-eval-4.rs rename to tests/ui/structs-enums/struct-order-of-eval-4.rs diff --git a/src/test/ui/structs-enums/struct-partial-move-1.rs b/tests/ui/structs-enums/struct-partial-move-1.rs similarity index 100% rename from src/test/ui/structs-enums/struct-partial-move-1.rs rename to tests/ui/structs-enums/struct-partial-move-1.rs diff --git a/src/test/ui/structs-enums/struct-partial-move-2.rs b/tests/ui/structs-enums/struct-partial-move-2.rs similarity index 100% rename from src/test/ui/structs-enums/struct-partial-move-2.rs rename to tests/ui/structs-enums/struct-partial-move-2.rs diff --git a/src/test/ui/structs-enums/struct-path-associated-type.rs b/tests/ui/structs-enums/struct-path-associated-type.rs similarity index 100% rename from src/test/ui/structs-enums/struct-path-associated-type.rs rename to tests/ui/structs-enums/struct-path-associated-type.rs diff --git a/src/test/ui/structs-enums/struct-path-self.rs b/tests/ui/structs-enums/struct-path-self.rs similarity index 100% rename from src/test/ui/structs-enums/struct-path-self.rs rename to tests/ui/structs-enums/struct-path-self.rs diff --git a/src/test/ui/structs-enums/struct-pattern-matching.rs b/tests/ui/structs-enums/struct-pattern-matching.rs similarity index 100% rename from src/test/ui/structs-enums/struct-pattern-matching.rs rename to tests/ui/structs-enums/struct-pattern-matching.rs diff --git a/src/test/ui/structs-enums/struct-rec/issue-74224.rs b/tests/ui/structs-enums/struct-rec/issue-74224.rs similarity index 100% rename from src/test/ui/structs-enums/struct-rec/issue-74224.rs rename to tests/ui/structs-enums/struct-rec/issue-74224.rs diff --git a/src/test/ui/structs-enums/struct-rec/issue-74224.stderr b/tests/ui/structs-enums/struct-rec/issue-74224.stderr similarity index 100% rename from src/test/ui/structs-enums/struct-rec/issue-74224.stderr rename to tests/ui/structs-enums/struct-rec/issue-74224.stderr diff --git a/src/test/ui/structs-enums/struct-rec/issue-84611.rs b/tests/ui/structs-enums/struct-rec/issue-84611.rs similarity index 100% rename from src/test/ui/structs-enums/struct-rec/issue-84611.rs rename to tests/ui/structs-enums/struct-rec/issue-84611.rs diff --git a/src/test/ui/structs-enums/struct-rec/issue-84611.stderr b/tests/ui/structs-enums/struct-rec/issue-84611.stderr similarity index 100% rename from src/test/ui/structs-enums/struct-rec/issue-84611.stderr rename to tests/ui/structs-enums/struct-rec/issue-84611.stderr diff --git a/src/test/ui/structs-enums/struct-rec/mutual-struct-recursion.rs b/tests/ui/structs-enums/struct-rec/mutual-struct-recursion.rs similarity index 100% rename from src/test/ui/structs-enums/struct-rec/mutual-struct-recursion.rs rename to tests/ui/structs-enums/struct-rec/mutual-struct-recursion.rs diff --git a/src/test/ui/structs-enums/struct-rec/mutual-struct-recursion.stderr b/tests/ui/structs-enums/struct-rec/mutual-struct-recursion.stderr similarity index 100% rename from src/test/ui/structs-enums/struct-rec/mutual-struct-recursion.stderr rename to tests/ui/structs-enums/struct-rec/mutual-struct-recursion.stderr diff --git a/src/test/ui/structs-enums/struct-variant-field-visibility.rs b/tests/ui/structs-enums/struct-variant-field-visibility.rs similarity index 100% rename from src/test/ui/structs-enums/struct-variant-field-visibility.rs rename to tests/ui/structs-enums/struct-variant-field-visibility.rs diff --git a/src/test/ui/structs-enums/struct_variant_xc.rs b/tests/ui/structs-enums/struct_variant_xc.rs similarity index 100% rename from src/test/ui/structs-enums/struct_variant_xc.rs rename to tests/ui/structs-enums/struct_variant_xc.rs diff --git a/src/test/ui/structs-enums/struct_variant_xc_match.rs b/tests/ui/structs-enums/struct_variant_xc_match.rs similarity index 100% rename from src/test/ui/structs-enums/struct_variant_xc_match.rs rename to tests/ui/structs-enums/struct_variant_xc_match.rs diff --git a/src/test/ui/structs-enums/tag-align-dyn-u64.rs b/tests/ui/structs-enums/tag-align-dyn-u64.rs similarity index 100% rename from src/test/ui/structs-enums/tag-align-dyn-u64.rs rename to tests/ui/structs-enums/tag-align-dyn-u64.rs diff --git a/src/test/ui/structs-enums/tag-align-dyn-variants.rs b/tests/ui/structs-enums/tag-align-dyn-variants.rs similarity index 100% rename from src/test/ui/structs-enums/tag-align-dyn-variants.rs rename to tests/ui/structs-enums/tag-align-dyn-variants.rs diff --git a/src/test/ui/structs-enums/tag-align-shape.rs b/tests/ui/structs-enums/tag-align-shape.rs similarity index 100% rename from src/test/ui/structs-enums/tag-align-shape.rs rename to tests/ui/structs-enums/tag-align-shape.rs diff --git a/src/test/ui/structs-enums/tag-align-u64.rs b/tests/ui/structs-enums/tag-align-u64.rs similarity index 100% rename from src/test/ui/structs-enums/tag-align-u64.rs rename to tests/ui/structs-enums/tag-align-u64.rs diff --git a/src/test/ui/structs-enums/tag-disr-val-shape.rs b/tests/ui/structs-enums/tag-disr-val-shape.rs similarity index 100% rename from src/test/ui/structs-enums/tag-disr-val-shape.rs rename to tests/ui/structs-enums/tag-disr-val-shape.rs diff --git a/src/test/ui/structs-enums/tag-exports.rs b/tests/ui/structs-enums/tag-exports.rs similarity index 100% rename from src/test/ui/structs-enums/tag-exports.rs rename to tests/ui/structs-enums/tag-exports.rs diff --git a/src/test/ui/structs-enums/tag-in-block.rs b/tests/ui/structs-enums/tag-in-block.rs similarity index 100% rename from src/test/ui/structs-enums/tag-in-block.rs rename to tests/ui/structs-enums/tag-in-block.rs diff --git a/src/test/ui/structs-enums/tag-variant-disr-type-mismatch.rs b/tests/ui/structs-enums/tag-variant-disr-type-mismatch.rs similarity index 100% rename from src/test/ui/structs-enums/tag-variant-disr-type-mismatch.rs rename to tests/ui/structs-enums/tag-variant-disr-type-mismatch.rs diff --git a/src/test/ui/structs-enums/tag-variant-disr-val.rs b/tests/ui/structs-enums/tag-variant-disr-val.rs similarity index 100% rename from src/test/ui/structs-enums/tag-variant-disr-val.rs rename to tests/ui/structs-enums/tag-variant-disr-val.rs diff --git a/src/test/ui/structs-enums/tag.rs b/tests/ui/structs-enums/tag.rs similarity index 100% rename from src/test/ui/structs-enums/tag.rs rename to tests/ui/structs-enums/tag.rs diff --git a/src/test/ui/structs-enums/tuple-struct-construct.rs b/tests/ui/structs-enums/tuple-struct-construct.rs similarity index 100% rename from src/test/ui/structs-enums/tuple-struct-construct.rs rename to tests/ui/structs-enums/tuple-struct-construct.rs diff --git a/src/test/ui/structs-enums/tuple-struct-constructor-pointer.rs b/tests/ui/structs-enums/tuple-struct-constructor-pointer.rs similarity index 100% rename from src/test/ui/structs-enums/tuple-struct-constructor-pointer.rs rename to tests/ui/structs-enums/tuple-struct-constructor-pointer.rs diff --git a/src/test/ui/structs-enums/tuple-struct-destructuring.rs b/tests/ui/structs-enums/tuple-struct-destructuring.rs similarity index 100% rename from src/test/ui/structs-enums/tuple-struct-destructuring.rs rename to tests/ui/structs-enums/tuple-struct-destructuring.rs diff --git a/src/test/ui/structs-enums/tuple-struct-matching.rs b/tests/ui/structs-enums/tuple-struct-matching.rs similarity index 100% rename from src/test/ui/structs-enums/tuple-struct-matching.rs rename to tests/ui/structs-enums/tuple-struct-matching.rs diff --git a/src/test/ui/structs-enums/tuple-struct-trivial.rs b/tests/ui/structs-enums/tuple-struct-trivial.rs similarity index 100% rename from src/test/ui/structs-enums/tuple-struct-trivial.rs rename to tests/ui/structs-enums/tuple-struct-trivial.rs diff --git a/src/test/ui/structs-enums/type-sizes.rs b/tests/ui/structs-enums/type-sizes.rs similarity index 100% rename from src/test/ui/structs-enums/type-sizes.rs rename to tests/ui/structs-enums/type-sizes.rs diff --git a/src/test/ui/structs-enums/uninstantiable-struct.rs b/tests/ui/structs-enums/uninstantiable-struct.rs similarity index 100% rename from src/test/ui/structs-enums/uninstantiable-struct.rs rename to tests/ui/structs-enums/uninstantiable-struct.rs diff --git a/src/test/ui/structs-enums/unit-like-struct-drop-run.rs b/tests/ui/structs-enums/unit-like-struct-drop-run.rs similarity index 100% rename from src/test/ui/structs-enums/unit-like-struct-drop-run.rs rename to tests/ui/structs-enums/unit-like-struct-drop-run.rs diff --git a/src/test/ui/structs-enums/unit-like-struct.rs b/tests/ui/structs-enums/unit-like-struct.rs similarity index 100% rename from src/test/ui/structs-enums/unit-like-struct.rs rename to tests/ui/structs-enums/unit-like-struct.rs diff --git a/src/test/ui/structs-enums/variant-structs-trivial.rs b/tests/ui/structs-enums/variant-structs-trivial.rs similarity index 100% rename from src/test/ui/structs-enums/variant-structs-trivial.rs rename to tests/ui/structs-enums/variant-structs-trivial.rs diff --git a/src/test/ui/structs/auxiliary/struct_field_privacy.rs b/tests/ui/structs/auxiliary/struct_field_privacy.rs similarity index 100% rename from src/test/ui/structs/auxiliary/struct_field_privacy.rs rename to tests/ui/structs/auxiliary/struct_field_privacy.rs diff --git a/src/test/ui/structs/auxiliary/struct_variant_privacy.rs b/tests/ui/structs/auxiliary/struct_variant_privacy.rs similarity index 100% rename from src/test/ui/structs/auxiliary/struct_variant_privacy.rs rename to tests/ui/structs/auxiliary/struct_variant_privacy.rs diff --git a/src/test/ui/structs/incomplete-fn-in-struct-definition.rs b/tests/ui/structs/incomplete-fn-in-struct-definition.rs similarity index 100% rename from src/test/ui/structs/incomplete-fn-in-struct-definition.rs rename to tests/ui/structs/incomplete-fn-in-struct-definition.rs diff --git a/src/test/ui/structs/incomplete-fn-in-struct-definition.stderr b/tests/ui/structs/incomplete-fn-in-struct-definition.stderr similarity index 100% rename from src/test/ui/structs/incomplete-fn-in-struct-definition.stderr rename to tests/ui/structs/incomplete-fn-in-struct-definition.stderr diff --git a/src/test/ui/structs/issue-80853.rs b/tests/ui/structs/issue-80853.rs similarity index 100% rename from src/test/ui/structs/issue-80853.rs rename to tests/ui/structs/issue-80853.rs diff --git a/src/test/ui/structs/issue-80853.stderr b/tests/ui/structs/issue-80853.stderr similarity index 100% rename from src/test/ui/structs/issue-80853.stderr rename to tests/ui/structs/issue-80853.stderr diff --git a/src/test/ui/structs/large-records.rs b/tests/ui/structs/large-records.rs similarity index 100% rename from src/test/ui/structs/large-records.rs rename to tests/ui/structs/large-records.rs diff --git a/src/test/ui/structs/multi-line-fru-suggestion.rs b/tests/ui/structs/multi-line-fru-suggestion.rs similarity index 100% rename from src/test/ui/structs/multi-line-fru-suggestion.rs rename to tests/ui/structs/multi-line-fru-suggestion.rs diff --git a/src/test/ui/structs/multi-line-fru-suggestion.stderr b/tests/ui/structs/multi-line-fru-suggestion.stderr similarity index 100% rename from src/test/ui/structs/multi-line-fru-suggestion.stderr rename to tests/ui/structs/multi-line-fru-suggestion.stderr diff --git a/src/test/ui/structs/rhs-type.rs b/tests/ui/structs/rhs-type.rs similarity index 100% rename from src/test/ui/structs/rhs-type.rs rename to tests/ui/structs/rhs-type.rs diff --git a/src/test/ui/structs/struct-base-wrong-type.rs b/tests/ui/structs/struct-base-wrong-type.rs similarity index 100% rename from src/test/ui/structs/struct-base-wrong-type.rs rename to tests/ui/structs/struct-base-wrong-type.rs diff --git a/src/test/ui/structs/struct-base-wrong-type.stderr b/tests/ui/structs/struct-base-wrong-type.stderr similarity index 100% rename from src/test/ui/structs/struct-base-wrong-type.stderr rename to tests/ui/structs/struct-base-wrong-type.stderr diff --git a/src/test/ui/structs/struct-duplicate-comma.fixed b/tests/ui/structs/struct-duplicate-comma.fixed similarity index 100% rename from src/test/ui/structs/struct-duplicate-comma.fixed rename to tests/ui/structs/struct-duplicate-comma.fixed diff --git a/src/test/ui/structs/struct-duplicate-comma.rs b/tests/ui/structs/struct-duplicate-comma.rs similarity index 100% rename from src/test/ui/structs/struct-duplicate-comma.rs rename to tests/ui/structs/struct-duplicate-comma.rs diff --git a/src/test/ui/structs/struct-duplicate-comma.stderr b/tests/ui/structs/struct-duplicate-comma.stderr similarity index 100% rename from src/test/ui/structs/struct-duplicate-comma.stderr rename to tests/ui/structs/struct-duplicate-comma.stderr diff --git a/src/test/ui/structs/struct-field-cfg.rs b/tests/ui/structs/struct-field-cfg.rs similarity index 100% rename from src/test/ui/structs/struct-field-cfg.rs rename to tests/ui/structs/struct-field-cfg.rs diff --git a/src/test/ui/structs/struct-field-cfg.stderr b/tests/ui/structs/struct-field-cfg.stderr similarity index 100% rename from src/test/ui/structs/struct-field-cfg.stderr rename to tests/ui/structs/struct-field-cfg.stderr diff --git a/src/test/ui/structs/struct-field-init-syntax.rs b/tests/ui/structs/struct-field-init-syntax.rs similarity index 100% rename from src/test/ui/structs/struct-field-init-syntax.rs rename to tests/ui/structs/struct-field-init-syntax.rs diff --git a/src/test/ui/structs/struct-field-init-syntax.stderr b/tests/ui/structs/struct-field-init-syntax.stderr similarity index 100% rename from src/test/ui/structs/struct-field-init-syntax.stderr rename to tests/ui/structs/struct-field-init-syntax.stderr diff --git a/src/test/ui/structs/struct-field-privacy.rs b/tests/ui/structs/struct-field-privacy.rs similarity index 100% rename from src/test/ui/structs/struct-field-privacy.rs rename to tests/ui/structs/struct-field-privacy.rs diff --git a/src/test/ui/structs/struct-field-privacy.stderr b/tests/ui/structs/struct-field-privacy.stderr similarity index 100% rename from src/test/ui/structs/struct-field-privacy.stderr rename to tests/ui/structs/struct-field-privacy.stderr diff --git a/src/test/ui/structs/struct-fields-decl-dupe.rs b/tests/ui/structs/struct-fields-decl-dupe.rs similarity index 100% rename from src/test/ui/structs/struct-fields-decl-dupe.rs rename to tests/ui/structs/struct-fields-decl-dupe.rs diff --git a/src/test/ui/structs/struct-fields-decl-dupe.stderr b/tests/ui/structs/struct-fields-decl-dupe.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-decl-dupe.stderr rename to tests/ui/structs/struct-fields-decl-dupe.stderr diff --git a/src/test/ui/structs/struct-fields-dupe.rs b/tests/ui/structs/struct-fields-dupe.rs similarity index 100% rename from src/test/ui/structs/struct-fields-dupe.rs rename to tests/ui/structs/struct-fields-dupe.rs diff --git a/src/test/ui/structs/struct-fields-dupe.stderr b/tests/ui/structs/struct-fields-dupe.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-dupe.stderr rename to tests/ui/structs/struct-fields-dupe.stderr diff --git a/src/test/ui/structs/struct-fields-hints-no-dupe.rs b/tests/ui/structs/struct-fields-hints-no-dupe.rs similarity index 100% rename from src/test/ui/structs/struct-fields-hints-no-dupe.rs rename to tests/ui/structs/struct-fields-hints-no-dupe.rs diff --git a/src/test/ui/structs/struct-fields-hints-no-dupe.stderr b/tests/ui/structs/struct-fields-hints-no-dupe.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-hints-no-dupe.stderr rename to tests/ui/structs/struct-fields-hints-no-dupe.stderr diff --git a/src/test/ui/structs/struct-fields-hints.rs b/tests/ui/structs/struct-fields-hints.rs similarity index 100% rename from src/test/ui/structs/struct-fields-hints.rs rename to tests/ui/structs/struct-fields-hints.rs diff --git a/src/test/ui/structs/struct-fields-hints.stderr b/tests/ui/structs/struct-fields-hints.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-hints.stderr rename to tests/ui/structs/struct-fields-hints.stderr diff --git a/src/test/ui/structs/struct-fields-missing.rs b/tests/ui/structs/struct-fields-missing.rs similarity index 100% rename from src/test/ui/structs/struct-fields-missing.rs rename to tests/ui/structs/struct-fields-missing.rs diff --git a/src/test/ui/structs/struct-fields-missing.stderr b/tests/ui/structs/struct-fields-missing.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-missing.stderr rename to tests/ui/structs/struct-fields-missing.stderr diff --git a/src/test/ui/structs/struct-fields-shorthand-unresolved.rs b/tests/ui/structs/struct-fields-shorthand-unresolved.rs similarity index 100% rename from src/test/ui/structs/struct-fields-shorthand-unresolved.rs rename to tests/ui/structs/struct-fields-shorthand-unresolved.rs diff --git a/src/test/ui/structs/struct-fields-shorthand-unresolved.stderr b/tests/ui/structs/struct-fields-shorthand-unresolved.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-shorthand-unresolved.stderr rename to tests/ui/structs/struct-fields-shorthand-unresolved.stderr diff --git a/src/test/ui/structs/struct-fields-shorthand.rs b/tests/ui/structs/struct-fields-shorthand.rs similarity index 100% rename from src/test/ui/structs/struct-fields-shorthand.rs rename to tests/ui/structs/struct-fields-shorthand.rs diff --git a/src/test/ui/structs/struct-fields-shorthand.stderr b/tests/ui/structs/struct-fields-shorthand.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-shorthand.stderr rename to tests/ui/structs/struct-fields-shorthand.stderr diff --git a/src/test/ui/structs/struct-fields-too-many.rs b/tests/ui/structs/struct-fields-too-many.rs similarity index 100% rename from src/test/ui/structs/struct-fields-too-many.rs rename to tests/ui/structs/struct-fields-too-many.rs diff --git a/src/test/ui/structs/struct-fields-too-many.stderr b/tests/ui/structs/struct-fields-too-many.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-too-many.stderr rename to tests/ui/structs/struct-fields-too-many.stderr diff --git a/src/test/ui/structs/struct-fields-typo.rs b/tests/ui/structs/struct-fields-typo.rs similarity index 100% rename from src/test/ui/structs/struct-fields-typo.rs rename to tests/ui/structs/struct-fields-typo.rs diff --git a/src/test/ui/structs/struct-fields-typo.stderr b/tests/ui/structs/struct-fields-typo.stderr similarity index 100% rename from src/test/ui/structs/struct-fields-typo.stderr rename to tests/ui/structs/struct-fields-typo.stderr diff --git a/src/test/ui/structs/struct-fn-in-definition.rs b/tests/ui/structs/struct-fn-in-definition.rs similarity index 100% rename from src/test/ui/structs/struct-fn-in-definition.rs rename to tests/ui/structs/struct-fn-in-definition.rs diff --git a/src/test/ui/structs/struct-fn-in-definition.stderr b/tests/ui/structs/struct-fn-in-definition.stderr similarity index 100% rename from src/test/ui/structs/struct-fn-in-definition.stderr rename to tests/ui/structs/struct-fn-in-definition.stderr diff --git a/src/test/ui/structs/struct-missing-comma.fixed b/tests/ui/structs/struct-missing-comma.fixed similarity index 100% rename from src/test/ui/structs/struct-missing-comma.fixed rename to tests/ui/structs/struct-missing-comma.fixed diff --git a/src/test/ui/structs/struct-missing-comma.rs b/tests/ui/structs/struct-missing-comma.rs similarity index 100% rename from src/test/ui/structs/struct-missing-comma.rs rename to tests/ui/structs/struct-missing-comma.rs diff --git a/src/test/ui/structs/struct-missing-comma.stderr b/tests/ui/structs/struct-missing-comma.stderr similarity index 100% rename from src/test/ui/structs/struct-missing-comma.stderr rename to tests/ui/structs/struct-missing-comma.stderr diff --git a/src/test/ui/structs/struct-pat-derived-error.rs b/tests/ui/structs/struct-pat-derived-error.rs similarity index 100% rename from src/test/ui/structs/struct-pat-derived-error.rs rename to tests/ui/structs/struct-pat-derived-error.rs diff --git a/src/test/ui/structs/struct-pat-derived-error.stderr b/tests/ui/structs/struct-pat-derived-error.stderr similarity index 100% rename from src/test/ui/structs/struct-pat-derived-error.stderr rename to tests/ui/structs/struct-pat-derived-error.stderr diff --git a/src/test/ui/structs/struct-path-alias-bounds.rs b/tests/ui/structs/struct-path-alias-bounds.rs similarity index 100% rename from src/test/ui/structs/struct-path-alias-bounds.rs rename to tests/ui/structs/struct-path-alias-bounds.rs diff --git a/src/test/ui/structs/struct-path-alias-bounds.stderr b/tests/ui/structs/struct-path-alias-bounds.stderr similarity index 100% rename from src/test/ui/structs/struct-path-alias-bounds.stderr rename to tests/ui/structs/struct-path-alias-bounds.stderr diff --git a/src/test/ui/structs/struct-path-associated-type.rs b/tests/ui/structs/struct-path-associated-type.rs similarity index 100% rename from src/test/ui/structs/struct-path-associated-type.rs rename to tests/ui/structs/struct-path-associated-type.rs diff --git a/src/test/ui/structs/struct-path-associated-type.stderr b/tests/ui/structs/struct-path-associated-type.stderr similarity index 100% rename from src/test/ui/structs/struct-path-associated-type.stderr rename to tests/ui/structs/struct-path-associated-type.stderr diff --git a/src/test/ui/structs/struct-path-self-type-mismatch.rs b/tests/ui/structs/struct-path-self-type-mismatch.rs similarity index 100% rename from src/test/ui/structs/struct-path-self-type-mismatch.rs rename to tests/ui/structs/struct-path-self-type-mismatch.rs diff --git a/src/test/ui/structs/struct-path-self-type-mismatch.stderr b/tests/ui/structs/struct-path-self-type-mismatch.stderr similarity index 100% rename from src/test/ui/structs/struct-path-self-type-mismatch.stderr rename to tests/ui/structs/struct-path-self-type-mismatch.stderr diff --git a/src/test/ui/structs/struct-path-self.rs b/tests/ui/structs/struct-path-self.rs similarity index 100% rename from src/test/ui/structs/struct-path-self.rs rename to tests/ui/structs/struct-path-self.rs diff --git a/src/test/ui/structs/struct-path-self.stderr b/tests/ui/structs/struct-path-self.stderr similarity index 100% rename from src/test/ui/structs/struct-path-self.stderr rename to tests/ui/structs/struct-path-self.stderr diff --git a/src/test/ui/structs/struct-record-suggestion.fixed b/tests/ui/structs/struct-record-suggestion.fixed similarity index 100% rename from src/test/ui/structs/struct-record-suggestion.fixed rename to tests/ui/structs/struct-record-suggestion.fixed diff --git a/src/test/ui/structs/struct-record-suggestion.rs b/tests/ui/structs/struct-record-suggestion.rs similarity index 100% rename from src/test/ui/structs/struct-record-suggestion.rs rename to tests/ui/structs/struct-record-suggestion.rs diff --git a/src/test/ui/structs/struct-record-suggestion.stderr b/tests/ui/structs/struct-record-suggestion.stderr similarity index 100% rename from src/test/ui/structs/struct-record-suggestion.stderr rename to tests/ui/structs/struct-record-suggestion.stderr diff --git a/src/test/ui/structs/struct-tuple-field-names.rs b/tests/ui/structs/struct-tuple-field-names.rs similarity index 100% rename from src/test/ui/structs/struct-tuple-field-names.rs rename to tests/ui/structs/struct-tuple-field-names.rs diff --git a/src/test/ui/structs/struct-tuple-field-names.stderr b/tests/ui/structs/struct-tuple-field-names.stderr similarity index 100% rename from src/test/ui/structs/struct-tuple-field-names.stderr rename to tests/ui/structs/struct-tuple-field-names.stderr diff --git a/src/test/ui/structs/struct-variant-privacy-xc.rs b/tests/ui/structs/struct-variant-privacy-xc.rs similarity index 100% rename from src/test/ui/structs/struct-variant-privacy-xc.rs rename to tests/ui/structs/struct-variant-privacy-xc.rs diff --git a/src/test/ui/structs/struct-variant-privacy-xc.stderr b/tests/ui/structs/struct-variant-privacy-xc.stderr similarity index 100% rename from src/test/ui/structs/struct-variant-privacy-xc.stderr rename to tests/ui/structs/struct-variant-privacy-xc.stderr diff --git a/src/test/ui/structs/struct-variant-privacy.rs b/tests/ui/structs/struct-variant-privacy.rs similarity index 100% rename from src/test/ui/structs/struct-variant-privacy.rs rename to tests/ui/structs/struct-variant-privacy.rs diff --git a/src/test/ui/structs/struct-variant-privacy.stderr b/tests/ui/structs/struct-variant-privacy.stderr similarity index 100% rename from src/test/ui/structs/struct-variant-privacy.stderr rename to tests/ui/structs/struct-variant-privacy.stderr diff --git a/src/test/ui/structs/structure-constructor-type-mismatch.rs b/tests/ui/structs/structure-constructor-type-mismatch.rs similarity index 100% rename from src/test/ui/structs/structure-constructor-type-mismatch.rs rename to tests/ui/structs/structure-constructor-type-mismatch.rs diff --git a/src/test/ui/structs/structure-constructor-type-mismatch.stderr b/tests/ui/structs/structure-constructor-type-mismatch.stderr similarity index 100% rename from src/test/ui/structs/structure-constructor-type-mismatch.stderr rename to tests/ui/structs/structure-constructor-type-mismatch.stderr diff --git a/src/test/ui/structs/suggest-private-fields.rs b/tests/ui/structs/suggest-private-fields.rs similarity index 100% rename from src/test/ui/structs/suggest-private-fields.rs rename to tests/ui/structs/suggest-private-fields.rs diff --git a/src/test/ui/structs/suggest-private-fields.stderr b/tests/ui/structs/suggest-private-fields.stderr similarity index 100% rename from src/test/ui/structs/suggest-private-fields.stderr rename to tests/ui/structs/suggest-private-fields.stderr diff --git a/src/test/ui/structs/suggest-replacing-field-when-specifying-same-type.rs b/tests/ui/structs/suggest-replacing-field-when-specifying-same-type.rs similarity index 100% rename from src/test/ui/structs/suggest-replacing-field-when-specifying-same-type.rs rename to tests/ui/structs/suggest-replacing-field-when-specifying-same-type.rs diff --git a/src/test/ui/structs/suggest-replacing-field-when-specifying-same-type.stderr b/tests/ui/structs/suggest-replacing-field-when-specifying-same-type.stderr similarity index 100% rename from src/test/ui/structs/suggest-replacing-field-when-specifying-same-type.stderr rename to tests/ui/structs/suggest-replacing-field-when-specifying-same-type.stderr diff --git a/src/test/ui/structs/unresolved-struct-with-fru.rs b/tests/ui/structs/unresolved-struct-with-fru.rs similarity index 100% rename from src/test/ui/structs/unresolved-struct-with-fru.rs rename to tests/ui/structs/unresolved-struct-with-fru.rs diff --git a/src/test/ui/structs/unresolved-struct-with-fru.stderr b/tests/ui/structs/unresolved-struct-with-fru.stderr similarity index 100% rename from src/test/ui/structs/unresolved-struct-with-fru.stderr rename to tests/ui/structs/unresolved-struct-with-fru.stderr diff --git a/src/test/ui/suggestions/abi-typo.fixed b/tests/ui/suggestions/abi-typo.fixed similarity index 100% rename from src/test/ui/suggestions/abi-typo.fixed rename to tests/ui/suggestions/abi-typo.fixed diff --git a/src/test/ui/suggestions/abi-typo.rs b/tests/ui/suggestions/abi-typo.rs similarity index 100% rename from src/test/ui/suggestions/abi-typo.rs rename to tests/ui/suggestions/abi-typo.rs diff --git a/src/test/ui/suggestions/abi-typo.stderr b/tests/ui/suggestions/abi-typo.stderr similarity index 100% rename from src/test/ui/suggestions/abi-typo.stderr rename to tests/ui/suggestions/abi-typo.stderr diff --git a/src/test/ui/suggestions/adt-param-with-implicit-sized-bound.rs b/tests/ui/suggestions/adt-param-with-implicit-sized-bound.rs similarity index 100% rename from src/test/ui/suggestions/adt-param-with-implicit-sized-bound.rs rename to tests/ui/suggestions/adt-param-with-implicit-sized-bound.rs diff --git a/src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr b/tests/ui/suggestions/adt-param-with-implicit-sized-bound.stderr similarity index 100% rename from src/test/ui/suggestions/adt-param-with-implicit-sized-bound.stderr rename to tests/ui/suggestions/adt-param-with-implicit-sized-bound.stderr diff --git a/src/test/ui/suggestions/args-instead-of-tuple-errors.rs b/tests/ui/suggestions/args-instead-of-tuple-errors.rs similarity index 100% rename from src/test/ui/suggestions/args-instead-of-tuple-errors.rs rename to tests/ui/suggestions/args-instead-of-tuple-errors.rs diff --git a/src/test/ui/suggestions/args-instead-of-tuple-errors.stderr b/tests/ui/suggestions/args-instead-of-tuple-errors.stderr similarity index 100% rename from src/test/ui/suggestions/args-instead-of-tuple-errors.stderr rename to tests/ui/suggestions/args-instead-of-tuple-errors.stderr diff --git a/src/test/ui/suggestions/args-instead-of-tuple.fixed b/tests/ui/suggestions/args-instead-of-tuple.fixed similarity index 100% rename from src/test/ui/suggestions/args-instead-of-tuple.fixed rename to tests/ui/suggestions/args-instead-of-tuple.fixed diff --git a/src/test/ui/suggestions/args-instead-of-tuple.rs b/tests/ui/suggestions/args-instead-of-tuple.rs similarity index 100% rename from src/test/ui/suggestions/args-instead-of-tuple.rs rename to tests/ui/suggestions/args-instead-of-tuple.rs diff --git a/src/test/ui/suggestions/args-instead-of-tuple.stderr b/tests/ui/suggestions/args-instead-of-tuple.stderr similarity index 100% rename from src/test/ui/suggestions/args-instead-of-tuple.stderr rename to tests/ui/suggestions/args-instead-of-tuple.stderr diff --git a/src/test/ui/suggestions/as-ref-2.rs b/tests/ui/suggestions/as-ref-2.rs similarity index 100% rename from src/test/ui/suggestions/as-ref-2.rs rename to tests/ui/suggestions/as-ref-2.rs diff --git a/src/test/ui/suggestions/as-ref-2.stderr b/tests/ui/suggestions/as-ref-2.stderr similarity index 100% rename from src/test/ui/suggestions/as-ref-2.stderr rename to tests/ui/suggestions/as-ref-2.stderr diff --git a/src/test/ui/suggestions/as-ref.rs b/tests/ui/suggestions/as-ref.rs similarity index 100% rename from src/test/ui/suggestions/as-ref.rs rename to tests/ui/suggestions/as-ref.rs diff --git a/src/test/ui/suggestions/as-ref.stderr b/tests/ui/suggestions/as-ref.stderr similarity index 100% rename from src/test/ui/suggestions/as-ref.stderr rename to tests/ui/suggestions/as-ref.stderr diff --git a/src/test/ui/suggestions/assoc-const-as-field.rs b/tests/ui/suggestions/assoc-const-as-field.rs similarity index 100% rename from src/test/ui/suggestions/assoc-const-as-field.rs rename to tests/ui/suggestions/assoc-const-as-field.rs diff --git a/src/test/ui/suggestions/assoc-const-as-field.stderr b/tests/ui/suggestions/assoc-const-as-field.stderr similarity index 100% rename from src/test/ui/suggestions/assoc-const-as-field.stderr rename to tests/ui/suggestions/assoc-const-as-field.stderr diff --git a/src/test/ui/suggestions/assoc-const-as-fn.rs b/tests/ui/suggestions/assoc-const-as-fn.rs similarity index 100% rename from src/test/ui/suggestions/assoc-const-as-fn.rs rename to tests/ui/suggestions/assoc-const-as-fn.rs diff --git a/src/test/ui/suggestions/assoc-const-as-fn.stderr b/tests/ui/suggestions/assoc-const-as-fn.stderr similarity index 100% rename from src/test/ui/suggestions/assoc-const-as-fn.stderr rename to tests/ui/suggestions/assoc-const-as-fn.stderr diff --git a/src/test/ui/suggestions/assoc-ct-for-assoc-method.rs b/tests/ui/suggestions/assoc-ct-for-assoc-method.rs similarity index 100% rename from src/test/ui/suggestions/assoc-ct-for-assoc-method.rs rename to tests/ui/suggestions/assoc-ct-for-assoc-method.rs diff --git a/src/test/ui/suggestions/assoc-ct-for-assoc-method.stderr b/tests/ui/suggestions/assoc-ct-for-assoc-method.stderr similarity index 100% rename from src/test/ui/suggestions/assoc-ct-for-assoc-method.stderr rename to tests/ui/suggestions/assoc-ct-for-assoc-method.stderr diff --git a/src/test/ui/suggestions/assoc-type-in-method-return.rs b/tests/ui/suggestions/assoc-type-in-method-return.rs similarity index 100% rename from src/test/ui/suggestions/assoc-type-in-method-return.rs rename to tests/ui/suggestions/assoc-type-in-method-return.rs diff --git a/src/test/ui/suggestions/assoc-type-in-method-return.stderr b/tests/ui/suggestions/assoc-type-in-method-return.stderr similarity index 100% rename from src/test/ui/suggestions/assoc-type-in-method-return.stderr rename to tests/ui/suggestions/assoc-type-in-method-return.stderr diff --git a/src/test/ui/suggestions/assoc_fn_without_self.rs b/tests/ui/suggestions/assoc_fn_without_self.rs similarity index 100% rename from src/test/ui/suggestions/assoc_fn_without_self.rs rename to tests/ui/suggestions/assoc_fn_without_self.rs diff --git a/src/test/ui/suggestions/assoc_fn_without_self.stderr b/tests/ui/suggestions/assoc_fn_without_self.stderr similarity index 100% rename from src/test/ui/suggestions/assoc_fn_without_self.stderr rename to tests/ui/suggestions/assoc_fn_without_self.stderr diff --git a/src/test/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs b/tests/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs similarity index 100% rename from src/test/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs rename to tests/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs diff --git a/src/test/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr b/tests/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr similarity index 100% rename from src/test/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr rename to tests/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr diff --git a/src/test/ui/suggestions/attribute-typos.rs b/tests/ui/suggestions/attribute-typos.rs similarity index 100% rename from src/test/ui/suggestions/attribute-typos.rs rename to tests/ui/suggestions/attribute-typos.rs diff --git a/src/test/ui/suggestions/attribute-typos.stderr b/tests/ui/suggestions/attribute-typos.stderr similarity index 100% rename from src/test/ui/suggestions/attribute-typos.stderr rename to tests/ui/suggestions/attribute-typos.stderr diff --git a/src/test/ui/suggestions/auxiliary/foo.rs b/tests/ui/suggestions/auxiliary/foo.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/foo.rs rename to tests/ui/suggestions/auxiliary/foo.rs diff --git a/src/test/ui/suggestions/auxiliary/issue-61963-1.rs b/tests/ui/suggestions/auxiliary/issue-61963-1.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/issue-61963-1.rs rename to tests/ui/suggestions/auxiliary/issue-61963-1.rs diff --git a/src/test/ui/suggestions/auxiliary/issue-61963.rs b/tests/ui/suggestions/auxiliary/issue-61963.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/issue-61963.rs rename to tests/ui/suggestions/auxiliary/issue-61963.rs diff --git a/src/test/ui/suggestions/auxiliary/issue-81839.rs b/tests/ui/suggestions/auxiliary/issue-81839.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/issue-81839.rs rename to tests/ui/suggestions/auxiliary/issue-81839.rs diff --git a/src/test/ui/suggestions/auxiliary/meow.rs b/tests/ui/suggestions/auxiliary/meow.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/meow.rs rename to tests/ui/suggestions/auxiliary/meow.rs diff --git a/src/test/ui/suggestions/auxiliary/not-object-safe.rs b/tests/ui/suggestions/auxiliary/not-object-safe.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/not-object-safe.rs rename to tests/ui/suggestions/auxiliary/not-object-safe.rs diff --git a/src/test/ui/suggestions/auxiliary/proc-macro-type-error.rs b/tests/ui/suggestions/auxiliary/proc-macro-type-error.rs similarity index 100% rename from src/test/ui/suggestions/auxiliary/proc-macro-type-error.rs rename to tests/ui/suggestions/auxiliary/proc-macro-type-error.rs diff --git a/src/test/ui/suggestions/bad-hex-float-lit.rs b/tests/ui/suggestions/bad-hex-float-lit.rs similarity index 100% rename from src/test/ui/suggestions/bad-hex-float-lit.rs rename to tests/ui/suggestions/bad-hex-float-lit.rs diff --git a/src/test/ui/suggestions/bad-hex-float-lit.stderr b/tests/ui/suggestions/bad-hex-float-lit.stderr similarity index 100% rename from src/test/ui/suggestions/bad-hex-float-lit.stderr rename to tests/ui/suggestions/bad-hex-float-lit.stderr diff --git a/src/test/ui/suggestions/bool_typo_err_suggest.rs b/tests/ui/suggestions/bool_typo_err_suggest.rs similarity index 100% rename from src/test/ui/suggestions/bool_typo_err_suggest.rs rename to tests/ui/suggestions/bool_typo_err_suggest.rs diff --git a/src/test/ui/suggestions/bool_typo_err_suggest.stderr b/tests/ui/suggestions/bool_typo_err_suggest.stderr similarity index 100% rename from src/test/ui/suggestions/bool_typo_err_suggest.stderr rename to tests/ui/suggestions/bool_typo_err_suggest.stderr diff --git a/src/test/ui/suggestions/borrow-for-loop-head.rs b/tests/ui/suggestions/borrow-for-loop-head.rs similarity index 100% rename from src/test/ui/suggestions/borrow-for-loop-head.rs rename to tests/ui/suggestions/borrow-for-loop-head.rs diff --git a/src/test/ui/suggestions/borrow-for-loop-head.stderr b/tests/ui/suggestions/borrow-for-loop-head.stderr similarity index 100% rename from src/test/ui/suggestions/borrow-for-loop-head.stderr rename to tests/ui/suggestions/borrow-for-loop-head.stderr diff --git a/src/test/ui/suggestions/bound-suggestions.fixed b/tests/ui/suggestions/bound-suggestions.fixed similarity index 100% rename from src/test/ui/suggestions/bound-suggestions.fixed rename to tests/ui/suggestions/bound-suggestions.fixed diff --git a/src/test/ui/suggestions/bound-suggestions.rs b/tests/ui/suggestions/bound-suggestions.rs similarity index 100% rename from src/test/ui/suggestions/bound-suggestions.rs rename to tests/ui/suggestions/bound-suggestions.rs diff --git a/src/test/ui/suggestions/bound-suggestions.stderr b/tests/ui/suggestions/bound-suggestions.stderr similarity index 100% rename from src/test/ui/suggestions/bound-suggestions.stderr rename to tests/ui/suggestions/bound-suggestions.stderr diff --git a/src/test/ui/suggestions/box-future-wrong-output.rs b/tests/ui/suggestions/box-future-wrong-output.rs similarity index 100% rename from src/test/ui/suggestions/box-future-wrong-output.rs rename to tests/ui/suggestions/box-future-wrong-output.rs diff --git a/src/test/ui/suggestions/box-future-wrong-output.stderr b/tests/ui/suggestions/box-future-wrong-output.stderr similarity index 100% rename from src/test/ui/suggestions/box-future-wrong-output.stderr rename to tests/ui/suggestions/box-future-wrong-output.stderr diff --git a/src/test/ui/suggestions/boxed-variant-field.rs b/tests/ui/suggestions/boxed-variant-field.rs similarity index 100% rename from src/test/ui/suggestions/boxed-variant-field.rs rename to tests/ui/suggestions/boxed-variant-field.rs diff --git a/src/test/ui/suggestions/boxed-variant-field.stderr b/tests/ui/suggestions/boxed-variant-field.stderr similarity index 100% rename from src/test/ui/suggestions/boxed-variant-field.stderr rename to tests/ui/suggestions/boxed-variant-field.stderr diff --git a/src/test/ui/suggestions/call-boxed.rs b/tests/ui/suggestions/call-boxed.rs similarity index 100% rename from src/test/ui/suggestions/call-boxed.rs rename to tests/ui/suggestions/call-boxed.rs diff --git a/src/test/ui/suggestions/call-boxed.stderr b/tests/ui/suggestions/call-boxed.stderr similarity index 100% rename from src/test/ui/suggestions/call-boxed.stderr rename to tests/ui/suggestions/call-boxed.stderr diff --git a/src/test/ui/suggestions/call-on-missing.rs b/tests/ui/suggestions/call-on-missing.rs similarity index 100% rename from src/test/ui/suggestions/call-on-missing.rs rename to tests/ui/suggestions/call-on-missing.rs diff --git a/src/test/ui/suggestions/call-on-missing.stderr b/tests/ui/suggestions/call-on-missing.stderr similarity index 100% rename from src/test/ui/suggestions/call-on-missing.stderr rename to tests/ui/suggestions/call-on-missing.stderr diff --git a/src/test/ui/suggestions/call-on-unimplemented-ctor.rs b/tests/ui/suggestions/call-on-unimplemented-ctor.rs similarity index 100% rename from src/test/ui/suggestions/call-on-unimplemented-ctor.rs rename to tests/ui/suggestions/call-on-unimplemented-ctor.rs diff --git a/src/test/ui/suggestions/call-on-unimplemented-ctor.stderr b/tests/ui/suggestions/call-on-unimplemented-ctor.stderr similarity index 100% rename from src/test/ui/suggestions/call-on-unimplemented-ctor.stderr rename to tests/ui/suggestions/call-on-unimplemented-ctor.stderr diff --git a/src/test/ui/suggestions/call-on-unimplemented-fn-ptr.rs b/tests/ui/suggestions/call-on-unimplemented-fn-ptr.rs similarity index 100% rename from src/test/ui/suggestions/call-on-unimplemented-fn-ptr.rs rename to tests/ui/suggestions/call-on-unimplemented-fn-ptr.rs diff --git a/src/test/ui/suggestions/call-on-unimplemented-fn-ptr.stderr b/tests/ui/suggestions/call-on-unimplemented-fn-ptr.stderr similarity index 100% rename from src/test/ui/suggestions/call-on-unimplemented-fn-ptr.stderr rename to tests/ui/suggestions/call-on-unimplemented-fn-ptr.stderr diff --git a/src/test/ui/suggestions/chain-method-call-mutation-in-place.rs b/tests/ui/suggestions/chain-method-call-mutation-in-place.rs similarity index 100% rename from src/test/ui/suggestions/chain-method-call-mutation-in-place.rs rename to tests/ui/suggestions/chain-method-call-mutation-in-place.rs diff --git a/src/test/ui/suggestions/chain-method-call-mutation-in-place.stderr b/tests/ui/suggestions/chain-method-call-mutation-in-place.stderr similarity index 100% rename from src/test/ui/suggestions/chain-method-call-mutation-in-place.stderr rename to tests/ui/suggestions/chain-method-call-mutation-in-place.stderr diff --git a/src/test/ui/suggestions/clone-on-unconstrained-borrowed-type-param.fixed b/tests/ui/suggestions/clone-on-unconstrained-borrowed-type-param.fixed similarity index 100% rename from src/test/ui/suggestions/clone-on-unconstrained-borrowed-type-param.fixed rename to tests/ui/suggestions/clone-on-unconstrained-borrowed-type-param.fixed diff --git a/src/test/ui/suggestions/clone-on-unconstrained-borrowed-type-param.rs b/tests/ui/suggestions/clone-on-unconstrained-borrowed-type-param.rs similarity index 100% rename from src/test/ui/suggestions/clone-on-unconstrained-borrowed-type-param.rs rename to tests/ui/suggestions/clone-on-unconstrained-borrowed-type-param.rs diff --git a/src/test/ui/suggestions/clone-on-unconstrained-borrowed-type-param.stderr b/tests/ui/suggestions/clone-on-unconstrained-borrowed-type-param.stderr similarity index 100% rename from src/test/ui/suggestions/clone-on-unconstrained-borrowed-type-param.stderr rename to tests/ui/suggestions/clone-on-unconstrained-borrowed-type-param.stderr diff --git a/src/test/ui/suggestions/const-in-struct-pat.rs b/tests/ui/suggestions/const-in-struct-pat.rs similarity index 100% rename from src/test/ui/suggestions/const-in-struct-pat.rs rename to tests/ui/suggestions/const-in-struct-pat.rs diff --git a/src/test/ui/suggestions/const-in-struct-pat.stderr b/tests/ui/suggestions/const-in-struct-pat.stderr similarity index 100% rename from src/test/ui/suggestions/const-in-struct-pat.stderr rename to tests/ui/suggestions/const-in-struct-pat.stderr diff --git a/src/test/ui/suggestions/const-no-type.rs b/tests/ui/suggestions/const-no-type.rs similarity index 100% rename from src/test/ui/suggestions/const-no-type.rs rename to tests/ui/suggestions/const-no-type.rs diff --git a/src/test/ui/suggestions/const-no-type.stderr b/tests/ui/suggestions/const-no-type.stderr similarity index 100% rename from src/test/ui/suggestions/const-no-type.stderr rename to tests/ui/suggestions/const-no-type.stderr diff --git a/src/test/ui/suggestions/const-pat-non-exaustive-let-new-var.rs b/tests/ui/suggestions/const-pat-non-exaustive-let-new-var.rs similarity index 100% rename from src/test/ui/suggestions/const-pat-non-exaustive-let-new-var.rs rename to tests/ui/suggestions/const-pat-non-exaustive-let-new-var.rs diff --git a/src/test/ui/suggestions/const-pat-non-exaustive-let-new-var.stderr b/tests/ui/suggestions/const-pat-non-exaustive-let-new-var.stderr similarity index 100% rename from src/test/ui/suggestions/const-pat-non-exaustive-let-new-var.stderr rename to tests/ui/suggestions/const-pat-non-exaustive-let-new-var.stderr diff --git a/src/test/ui/suggestions/constrain-suggest-ice.rs b/tests/ui/suggestions/constrain-suggest-ice.rs similarity index 100% rename from src/test/ui/suggestions/constrain-suggest-ice.rs rename to tests/ui/suggestions/constrain-suggest-ice.rs diff --git a/src/test/ui/suggestions/constrain-suggest-ice.stderr b/tests/ui/suggestions/constrain-suggest-ice.stderr similarity index 100% rename from src/test/ui/suggestions/constrain-suggest-ice.stderr rename to tests/ui/suggestions/constrain-suggest-ice.stderr diff --git a/src/test/ui/suggestions/constrain-trait.fixed b/tests/ui/suggestions/constrain-trait.fixed similarity index 100% rename from src/test/ui/suggestions/constrain-trait.fixed rename to tests/ui/suggestions/constrain-trait.fixed diff --git a/src/test/ui/suggestions/constrain-trait.rs b/tests/ui/suggestions/constrain-trait.rs similarity index 100% rename from src/test/ui/suggestions/constrain-trait.rs rename to tests/ui/suggestions/constrain-trait.rs diff --git a/src/test/ui/suggestions/constrain-trait.stderr b/tests/ui/suggestions/constrain-trait.stderr similarity index 100% rename from src/test/ui/suggestions/constrain-trait.stderr rename to tests/ui/suggestions/constrain-trait.stderr diff --git a/src/test/ui/suggestions/copied-and-cloned.fixed b/tests/ui/suggestions/copied-and-cloned.fixed similarity index 100% rename from src/test/ui/suggestions/copied-and-cloned.fixed rename to tests/ui/suggestions/copied-and-cloned.fixed diff --git a/src/test/ui/suggestions/copied-and-cloned.rs b/tests/ui/suggestions/copied-and-cloned.rs similarity index 100% rename from src/test/ui/suggestions/copied-and-cloned.rs rename to tests/ui/suggestions/copied-and-cloned.rs diff --git a/src/test/ui/suggestions/copied-and-cloned.stderr b/tests/ui/suggestions/copied-and-cloned.stderr similarity index 100% rename from src/test/ui/suggestions/copied-and-cloned.stderr rename to tests/ui/suggestions/copied-and-cloned.stderr diff --git a/src/test/ui/suggestions/core-std-import-order-issue-83564.rs b/tests/ui/suggestions/core-std-import-order-issue-83564.rs similarity index 100% rename from src/test/ui/suggestions/core-std-import-order-issue-83564.rs rename to tests/ui/suggestions/core-std-import-order-issue-83564.rs diff --git a/src/test/ui/suggestions/core-std-import-order-issue-83564.stderr b/tests/ui/suggestions/core-std-import-order-issue-83564.stderr similarity index 100% rename from src/test/ui/suggestions/core-std-import-order-issue-83564.stderr rename to tests/ui/suggestions/core-std-import-order-issue-83564.stderr diff --git a/src/test/ui/suggestions/count2len.rs b/tests/ui/suggestions/count2len.rs similarity index 100% rename from src/test/ui/suggestions/count2len.rs rename to tests/ui/suggestions/count2len.rs diff --git a/src/test/ui/suggestions/count2len.stderr b/tests/ui/suggestions/count2len.stderr similarity index 100% rename from src/test/ui/suggestions/count2len.stderr rename to tests/ui/suggestions/count2len.stderr diff --git a/src/test/ui/suggestions/crate-or-module-typo.rs b/tests/ui/suggestions/crate-or-module-typo.rs similarity index 100% rename from src/test/ui/suggestions/crate-or-module-typo.rs rename to tests/ui/suggestions/crate-or-module-typo.rs diff --git a/src/test/ui/suggestions/crate-or-module-typo.stderr b/tests/ui/suggestions/crate-or-module-typo.stderr similarity index 100% rename from src/test/ui/suggestions/crate-or-module-typo.stderr rename to tests/ui/suggestions/crate-or-module-typo.stderr diff --git a/src/test/ui/suggestions/deref-path-method.rs b/tests/ui/suggestions/deref-path-method.rs similarity index 100% rename from src/test/ui/suggestions/deref-path-method.rs rename to tests/ui/suggestions/deref-path-method.rs diff --git a/src/test/ui/suggestions/deref-path-method.stderr b/tests/ui/suggestions/deref-path-method.stderr similarity index 100% rename from src/test/ui/suggestions/deref-path-method.stderr rename to tests/ui/suggestions/deref-path-method.stderr diff --git a/src/test/ui/suggestions/derive-clone-for-eq.fixed b/tests/ui/suggestions/derive-clone-for-eq.fixed similarity index 100% rename from src/test/ui/suggestions/derive-clone-for-eq.fixed rename to tests/ui/suggestions/derive-clone-for-eq.fixed diff --git a/src/test/ui/suggestions/derive-clone-for-eq.rs b/tests/ui/suggestions/derive-clone-for-eq.rs similarity index 100% rename from src/test/ui/suggestions/derive-clone-for-eq.rs rename to tests/ui/suggestions/derive-clone-for-eq.rs diff --git a/src/test/ui/suggestions/derive-clone-for-eq.stderr b/tests/ui/suggestions/derive-clone-for-eq.stderr similarity index 100% rename from src/test/ui/suggestions/derive-clone-for-eq.stderr rename to tests/ui/suggestions/derive-clone-for-eq.stderr diff --git a/src/test/ui/suggestions/derive-macro-missing-bounds.rs b/tests/ui/suggestions/derive-macro-missing-bounds.rs similarity index 100% rename from src/test/ui/suggestions/derive-macro-missing-bounds.rs rename to tests/ui/suggestions/derive-macro-missing-bounds.rs diff --git a/src/test/ui/suggestions/derive-macro-missing-bounds.stderr b/tests/ui/suggestions/derive-macro-missing-bounds.stderr similarity index 100% rename from src/test/ui/suggestions/derive-macro-missing-bounds.stderr rename to tests/ui/suggestions/derive-macro-missing-bounds.stderr diff --git a/src/test/ui/suggestions/derive-trait-for-method-call.rs b/tests/ui/suggestions/derive-trait-for-method-call.rs similarity index 100% rename from src/test/ui/suggestions/derive-trait-for-method-call.rs rename to tests/ui/suggestions/derive-trait-for-method-call.rs diff --git a/src/test/ui/suggestions/derive-trait-for-method-call.stderr b/tests/ui/suggestions/derive-trait-for-method-call.stderr similarity index 100% rename from src/test/ui/suggestions/derive-trait-for-method-call.stderr rename to tests/ui/suggestions/derive-trait-for-method-call.stderr diff --git a/src/test/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.rs b/tests/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.rs similarity index 100% rename from src/test/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.rs rename to tests/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.rs diff --git a/src/test/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.stderr b/tests/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.stderr similarity index 100% rename from src/test/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.stderr rename to tests/ui/suggestions/do-not-attempt-to-add-suggestions-with-no-changes.stderr diff --git a/src/test/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs b/tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs rename to tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs diff --git a/src/test/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.stderr b/tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.stderr rename to tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.stderr diff --git a/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-child.rs b/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-child.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-child.rs rename to tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-child.rs diff --git a/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-parent.rs b/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-parent.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-parent.rs rename to tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/auxiliary/hidden-parent.rs diff --git a/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.rs b/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.rs rename to tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.rs diff --git a/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.stderr b/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.stderr rename to tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-child.stderr diff --git a/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.rs b/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.rs rename to tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.rs diff --git a/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.stderr b/tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.stderr rename to tests/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.stderr diff --git a/src/test/ui/suggestions/dont-suggest-pin-array-dot-set.rs b/tests/ui/suggestions/dont-suggest-pin-array-dot-set.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-pin-array-dot-set.rs rename to tests/ui/suggestions/dont-suggest-pin-array-dot-set.rs diff --git a/src/test/ui/suggestions/dont-suggest-pin-array-dot-set.stderr b/tests/ui/suggestions/dont-suggest-pin-array-dot-set.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-pin-array-dot-set.stderr rename to tests/ui/suggestions/dont-suggest-pin-array-dot-set.stderr diff --git a/src/test/ui/suggestions/dont-suggest-ref/duplicate-suggestions.rs b/tests/ui/suggestions/dont-suggest-ref/duplicate-suggestions.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ref/duplicate-suggestions.rs rename to tests/ui/suggestions/dont-suggest-ref/duplicate-suggestions.rs diff --git a/src/test/ui/suggestions/dont-suggest-ref/duplicate-suggestions.stderr b/tests/ui/suggestions/dont-suggest-ref/duplicate-suggestions.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ref/duplicate-suggestions.stderr rename to tests/ui/suggestions/dont-suggest-ref/duplicate-suggestions.stderr diff --git a/src/test/ui/suggestions/dont-suggest-ref/move-into-closure.rs b/tests/ui/suggestions/dont-suggest-ref/move-into-closure.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ref/move-into-closure.rs rename to tests/ui/suggestions/dont-suggest-ref/move-into-closure.rs diff --git a/src/test/ui/suggestions/dont-suggest-ref/move-into-closure.stderr b/tests/ui/suggestions/dont-suggest-ref/move-into-closure.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ref/move-into-closure.stderr rename to tests/ui/suggestions/dont-suggest-ref/move-into-closure.stderr diff --git a/src/test/ui/suggestions/dont-suggest-ref/simple.rs b/tests/ui/suggestions/dont-suggest-ref/simple.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ref/simple.rs rename to tests/ui/suggestions/dont-suggest-ref/simple.rs diff --git a/src/test/ui/suggestions/dont-suggest-ref/simple.stderr b/tests/ui/suggestions/dont-suggest-ref/simple.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ref/simple.stderr rename to tests/ui/suggestions/dont-suggest-ref/simple.stderr diff --git a/src/test/ui/suggestions/dont-suggest-try_into-in-macros.rs b/tests/ui/suggestions/dont-suggest-try_into-in-macros.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-try_into-in-macros.rs rename to tests/ui/suggestions/dont-suggest-try_into-in-macros.rs diff --git a/src/test/ui/suggestions/dont-suggest-try_into-in-macros.stderr b/tests/ui/suggestions/dont-suggest-try_into-in-macros.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-try_into-in-macros.stderr rename to tests/ui/suggestions/dont-suggest-try_into-in-macros.stderr diff --git a/src/test/ui/suggestions/dont-suggest-ufcs-for-const.rs b/tests/ui/suggestions/dont-suggest-ufcs-for-const.rs similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ufcs-for-const.rs rename to tests/ui/suggestions/dont-suggest-ufcs-for-const.rs diff --git a/src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr b/tests/ui/suggestions/dont-suggest-ufcs-for-const.stderr similarity index 100% rename from src/test/ui/suggestions/dont-suggest-ufcs-for-const.stderr rename to tests/ui/suggestions/dont-suggest-ufcs-for-const.stderr diff --git a/src/test/ui/suggestions/dont-try-removing-the-field.rs b/tests/ui/suggestions/dont-try-removing-the-field.rs similarity index 100% rename from src/test/ui/suggestions/dont-try-removing-the-field.rs rename to tests/ui/suggestions/dont-try-removing-the-field.rs diff --git a/src/test/ui/suggestions/dont-try-removing-the-field.stderr b/tests/ui/suggestions/dont-try-removing-the-field.stderr similarity index 100% rename from src/test/ui/suggestions/dont-try-removing-the-field.stderr rename to tests/ui/suggestions/dont-try-removing-the-field.stderr diff --git a/src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs b/tests/ui/suggestions/dont-wrap-ambiguous-receivers.rs similarity index 100% rename from src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs rename to tests/ui/suggestions/dont-wrap-ambiguous-receivers.rs diff --git a/src/test/ui/suggestions/dont-wrap-ambiguous-receivers.stderr b/tests/ui/suggestions/dont-wrap-ambiguous-receivers.stderr similarity index 100% rename from src/test/ui/suggestions/dont-wrap-ambiguous-receivers.stderr rename to tests/ui/suggestions/dont-wrap-ambiguous-receivers.stderr diff --git a/src/test/ui/suggestions/enum-method-probe.fixed b/tests/ui/suggestions/enum-method-probe.fixed similarity index 100% rename from src/test/ui/suggestions/enum-method-probe.fixed rename to tests/ui/suggestions/enum-method-probe.fixed diff --git a/src/test/ui/suggestions/enum-method-probe.rs b/tests/ui/suggestions/enum-method-probe.rs similarity index 100% rename from src/test/ui/suggestions/enum-method-probe.rs rename to tests/ui/suggestions/enum-method-probe.rs diff --git a/src/test/ui/suggestions/enum-method-probe.stderr b/tests/ui/suggestions/enum-method-probe.stderr similarity index 100% rename from src/test/ui/suggestions/enum-method-probe.stderr rename to tests/ui/suggestions/enum-method-probe.stderr diff --git a/src/test/ui/suggestions/enum-variant-arg-mismatch.rs b/tests/ui/suggestions/enum-variant-arg-mismatch.rs similarity index 100% rename from src/test/ui/suggestions/enum-variant-arg-mismatch.rs rename to tests/ui/suggestions/enum-variant-arg-mismatch.rs diff --git a/src/test/ui/suggestions/enum-variant-arg-mismatch.stderr b/tests/ui/suggestions/enum-variant-arg-mismatch.stderr similarity index 100% rename from src/test/ui/suggestions/enum-variant-arg-mismatch.stderr rename to tests/ui/suggestions/enum-variant-arg-mismatch.stderr diff --git a/src/test/ui/suggestions/expected-boxed-future-isnt-pinned.rs b/tests/ui/suggestions/expected-boxed-future-isnt-pinned.rs similarity index 100% rename from src/test/ui/suggestions/expected-boxed-future-isnt-pinned.rs rename to tests/ui/suggestions/expected-boxed-future-isnt-pinned.rs diff --git a/src/test/ui/suggestions/expected-boxed-future-isnt-pinned.stderr b/tests/ui/suggestions/expected-boxed-future-isnt-pinned.stderr similarity index 100% rename from src/test/ui/suggestions/expected-boxed-future-isnt-pinned.stderr rename to tests/ui/suggestions/expected-boxed-future-isnt-pinned.stderr diff --git a/src/test/ui/suggestions/field-access-considering-privacy.rs b/tests/ui/suggestions/field-access-considering-privacy.rs similarity index 100% rename from src/test/ui/suggestions/field-access-considering-privacy.rs rename to tests/ui/suggestions/field-access-considering-privacy.rs diff --git a/src/test/ui/suggestions/field-access-considering-privacy.stderr b/tests/ui/suggestions/field-access-considering-privacy.stderr similarity index 100% rename from src/test/ui/suggestions/field-access-considering-privacy.stderr rename to tests/ui/suggestions/field-access-considering-privacy.stderr diff --git a/src/test/ui/suggestions/field-access.fixed b/tests/ui/suggestions/field-access.fixed similarity index 100% rename from src/test/ui/suggestions/field-access.fixed rename to tests/ui/suggestions/field-access.fixed diff --git a/src/test/ui/suggestions/field-access.rs b/tests/ui/suggestions/field-access.rs similarity index 100% rename from src/test/ui/suggestions/field-access.rs rename to tests/ui/suggestions/field-access.rs diff --git a/src/test/ui/suggestions/field-access.stderr b/tests/ui/suggestions/field-access.stderr similarity index 100% rename from src/test/ui/suggestions/field-access.stderr rename to tests/ui/suggestions/field-access.stderr diff --git a/src/test/ui/suggestions/field-has-method.rs b/tests/ui/suggestions/field-has-method.rs similarity index 100% rename from src/test/ui/suggestions/field-has-method.rs rename to tests/ui/suggestions/field-has-method.rs diff --git a/src/test/ui/suggestions/field-has-method.stderr b/tests/ui/suggestions/field-has-method.stderr similarity index 100% rename from src/test/ui/suggestions/field-has-method.stderr rename to tests/ui/suggestions/field-has-method.stderr diff --git a/src/test/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.rs b/tests/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.rs similarity index 100% rename from src/test/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.rs rename to tests/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.rs diff --git a/src/test/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr b/tests/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr similarity index 100% rename from src/test/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr rename to tests/ui/suggestions/fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr diff --git a/src/test/ui/suggestions/fn-missing-lifetime-in-item.rs b/tests/ui/suggestions/fn-missing-lifetime-in-item.rs similarity index 100% rename from src/test/ui/suggestions/fn-missing-lifetime-in-item.rs rename to tests/ui/suggestions/fn-missing-lifetime-in-item.rs diff --git a/src/test/ui/suggestions/fn-missing-lifetime-in-item.stderr b/tests/ui/suggestions/fn-missing-lifetime-in-item.stderr similarity index 100% rename from src/test/ui/suggestions/fn-missing-lifetime-in-item.stderr rename to tests/ui/suggestions/fn-missing-lifetime-in-item.stderr diff --git a/src/test/ui/suggestions/fn-needing-specified-return-type-param.rs b/tests/ui/suggestions/fn-needing-specified-return-type-param.rs similarity index 100% rename from src/test/ui/suggestions/fn-needing-specified-return-type-param.rs rename to tests/ui/suggestions/fn-needing-specified-return-type-param.rs diff --git a/src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr b/tests/ui/suggestions/fn-needing-specified-return-type-param.stderr similarity index 100% rename from src/test/ui/suggestions/fn-needing-specified-return-type-param.stderr rename to tests/ui/suggestions/fn-needing-specified-return-type-param.stderr diff --git a/src/test/ui/suggestions/fn-or-tuple-struct-with-underscore-args.rs b/tests/ui/suggestions/fn-or-tuple-struct-with-underscore-args.rs similarity index 100% rename from src/test/ui/suggestions/fn-or-tuple-struct-with-underscore-args.rs rename to tests/ui/suggestions/fn-or-tuple-struct-with-underscore-args.rs diff --git a/src/test/ui/suggestions/fn-or-tuple-struct-with-underscore-args.stderr b/tests/ui/suggestions/fn-or-tuple-struct-with-underscore-args.stderr similarity index 100% rename from src/test/ui/suggestions/fn-or-tuple-struct-with-underscore-args.stderr rename to tests/ui/suggestions/fn-or-tuple-struct-with-underscore-args.stderr diff --git a/src/test/ui/suggestions/fn-or-tuple-struct-without-args.rs b/tests/ui/suggestions/fn-or-tuple-struct-without-args.rs similarity index 100% rename from src/test/ui/suggestions/fn-or-tuple-struct-without-args.rs rename to tests/ui/suggestions/fn-or-tuple-struct-without-args.rs diff --git a/src/test/ui/suggestions/fn-or-tuple-struct-without-args.stderr b/tests/ui/suggestions/fn-or-tuple-struct-without-args.stderr similarity index 100% rename from src/test/ui/suggestions/fn-or-tuple-struct-without-args.stderr rename to tests/ui/suggestions/fn-or-tuple-struct-without-args.stderr diff --git a/src/test/ui/suggestions/fn-to-method-deeply-nested.rs b/tests/ui/suggestions/fn-to-method-deeply-nested.rs similarity index 100% rename from src/test/ui/suggestions/fn-to-method-deeply-nested.rs rename to tests/ui/suggestions/fn-to-method-deeply-nested.rs diff --git a/src/test/ui/suggestions/fn-to-method-deeply-nested.stderr b/tests/ui/suggestions/fn-to-method-deeply-nested.stderr similarity index 100% rename from src/test/ui/suggestions/fn-to-method-deeply-nested.stderr rename to tests/ui/suggestions/fn-to-method-deeply-nested.stderr diff --git a/src/test/ui/suggestions/fn-to-method.rs b/tests/ui/suggestions/fn-to-method.rs similarity index 100% rename from src/test/ui/suggestions/fn-to-method.rs rename to tests/ui/suggestions/fn-to-method.rs diff --git a/src/test/ui/suggestions/fn-to-method.stderr b/tests/ui/suggestions/fn-to-method.stderr similarity index 100% rename from src/test/ui/suggestions/fn-to-method.stderr rename to tests/ui/suggestions/fn-to-method.stderr diff --git a/src/test/ui/suggestions/fn-trait-notation.fixed b/tests/ui/suggestions/fn-trait-notation.fixed similarity index 100% rename from src/test/ui/suggestions/fn-trait-notation.fixed rename to tests/ui/suggestions/fn-trait-notation.fixed diff --git a/src/test/ui/suggestions/fn-trait-notation.rs b/tests/ui/suggestions/fn-trait-notation.rs similarity index 100% rename from src/test/ui/suggestions/fn-trait-notation.rs rename to tests/ui/suggestions/fn-trait-notation.rs diff --git a/src/test/ui/suggestions/fn-trait-notation.stderr b/tests/ui/suggestions/fn-trait-notation.stderr similarity index 100% rename from src/test/ui/suggestions/fn-trait-notation.stderr rename to tests/ui/suggestions/fn-trait-notation.stderr diff --git a/src/test/ui/suggestions/for-i-in-vec.fixed b/tests/ui/suggestions/for-i-in-vec.fixed similarity index 100% rename from src/test/ui/suggestions/for-i-in-vec.fixed rename to tests/ui/suggestions/for-i-in-vec.fixed diff --git a/src/test/ui/suggestions/for-i-in-vec.rs b/tests/ui/suggestions/for-i-in-vec.rs similarity index 100% rename from src/test/ui/suggestions/for-i-in-vec.rs rename to tests/ui/suggestions/for-i-in-vec.rs diff --git a/src/test/ui/suggestions/for-i-in-vec.stderr b/tests/ui/suggestions/for-i-in-vec.stderr similarity index 100% rename from src/test/ui/suggestions/for-i-in-vec.stderr rename to tests/ui/suggestions/for-i-in-vec.stderr diff --git a/src/test/ui/suggestions/format-borrow.rs b/tests/ui/suggestions/format-borrow.rs similarity index 100% rename from src/test/ui/suggestions/format-borrow.rs rename to tests/ui/suggestions/format-borrow.rs diff --git a/src/test/ui/suggestions/format-borrow.stderr b/tests/ui/suggestions/format-borrow.stderr similarity index 100% rename from src/test/ui/suggestions/format-borrow.stderr rename to tests/ui/suggestions/format-borrow.stderr diff --git a/src/test/ui/suggestions/if-let-typo.rs b/tests/ui/suggestions/if-let-typo.rs similarity index 100% rename from src/test/ui/suggestions/if-let-typo.rs rename to tests/ui/suggestions/if-let-typo.rs diff --git a/src/test/ui/suggestions/if-let-typo.stderr b/tests/ui/suggestions/if-let-typo.stderr similarity index 100% rename from src/test/ui/suggestions/if-let-typo.stderr rename to tests/ui/suggestions/if-let-typo.stderr diff --git a/src/test/ui/suggestions/if-then-neeing-semi.rs b/tests/ui/suggestions/if-then-neeing-semi.rs similarity index 100% rename from src/test/ui/suggestions/if-then-neeing-semi.rs rename to tests/ui/suggestions/if-then-neeing-semi.rs diff --git a/src/test/ui/suggestions/if-then-neeing-semi.stderr b/tests/ui/suggestions/if-then-neeing-semi.stderr similarity index 100% rename from src/test/ui/suggestions/if-then-neeing-semi.stderr rename to tests/ui/suggestions/if-then-neeing-semi.stderr diff --git a/src/test/ui/suggestions/ignore-nested-field-binding.fixed b/tests/ui/suggestions/ignore-nested-field-binding.fixed similarity index 100% rename from src/test/ui/suggestions/ignore-nested-field-binding.fixed rename to tests/ui/suggestions/ignore-nested-field-binding.fixed diff --git a/src/test/ui/suggestions/ignore-nested-field-binding.rs b/tests/ui/suggestions/ignore-nested-field-binding.rs similarity index 100% rename from src/test/ui/suggestions/ignore-nested-field-binding.rs rename to tests/ui/suggestions/ignore-nested-field-binding.rs diff --git a/src/test/ui/suggestions/ignore-nested-field-binding.stderr b/tests/ui/suggestions/ignore-nested-field-binding.stderr similarity index 100% rename from src/test/ui/suggestions/ignore-nested-field-binding.stderr rename to tests/ui/suggestions/ignore-nested-field-binding.stderr diff --git a/src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs b/tests/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs similarity index 100% rename from src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs rename to tests/ui/suggestions/imm-ref-trait-object-literal-bound-regions.rs diff --git a/src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.stderr b/tests/ui/suggestions/imm-ref-trait-object-literal-bound-regions.stderr similarity index 100% rename from src/test/ui/suggestions/imm-ref-trait-object-literal-bound-regions.stderr rename to tests/ui/suggestions/imm-ref-trait-object-literal-bound-regions.stderr diff --git a/src/test/ui/suggestions/imm-ref-trait-object-literal.rs b/tests/ui/suggestions/imm-ref-trait-object-literal.rs similarity index 100% rename from src/test/ui/suggestions/imm-ref-trait-object-literal.rs rename to tests/ui/suggestions/imm-ref-trait-object-literal.rs diff --git a/src/test/ui/suggestions/imm-ref-trait-object-literal.stderr b/tests/ui/suggestions/imm-ref-trait-object-literal.stderr similarity index 100% rename from src/test/ui/suggestions/imm-ref-trait-object-literal.stderr rename to tests/ui/suggestions/imm-ref-trait-object-literal.stderr diff --git a/src/test/ui/suggestions/imm-ref-trait-object.rs b/tests/ui/suggestions/imm-ref-trait-object.rs similarity index 100% rename from src/test/ui/suggestions/imm-ref-trait-object.rs rename to tests/ui/suggestions/imm-ref-trait-object.rs diff --git a/src/test/ui/suggestions/imm-ref-trait-object.stderr b/tests/ui/suggestions/imm-ref-trait-object.stderr similarity index 100% rename from src/test/ui/suggestions/imm-ref-trait-object.stderr rename to tests/ui/suggestions/imm-ref-trait-object.stderr diff --git a/src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs b/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs similarity index 100% rename from src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs rename to tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.rs diff --git a/src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr b/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr similarity index 100% rename from src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr rename to tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound-needing-more-suggestions.stderr diff --git a/src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.rs b/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.rs similarity index 100% rename from src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.rs rename to tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.rs diff --git a/src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.stderr b/tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.stderr similarity index 100% rename from src/test/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.stderr rename to tests/ui/suggestions/impl-on-dyn-trait-with-implicit-static-bound.stderr diff --git a/src/test/ui/suggestions/impl-trait-missing-lifetime-gated.rs b/tests/ui/suggestions/impl-trait-missing-lifetime-gated.rs similarity index 100% rename from src/test/ui/suggestions/impl-trait-missing-lifetime-gated.rs rename to tests/ui/suggestions/impl-trait-missing-lifetime-gated.rs diff --git a/src/test/ui/suggestions/impl-trait-missing-lifetime-gated.stderr b/tests/ui/suggestions/impl-trait-missing-lifetime-gated.stderr similarity index 100% rename from src/test/ui/suggestions/impl-trait-missing-lifetime-gated.stderr rename to tests/ui/suggestions/impl-trait-missing-lifetime-gated.stderr diff --git a/src/test/ui/suggestions/impl-trait-missing-lifetime.rs b/tests/ui/suggestions/impl-trait-missing-lifetime.rs similarity index 100% rename from src/test/ui/suggestions/impl-trait-missing-lifetime.rs rename to tests/ui/suggestions/impl-trait-missing-lifetime.rs diff --git a/src/test/ui/suggestions/impl-trait-missing-lifetime.stderr b/tests/ui/suggestions/impl-trait-missing-lifetime.stderr similarity index 100% rename from src/test/ui/suggestions/impl-trait-missing-lifetime.stderr rename to tests/ui/suggestions/impl-trait-missing-lifetime.stderr diff --git a/src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs b/tests/ui/suggestions/impl-trait-return-trailing-semicolon.rs similarity index 100% rename from src/test/ui/suggestions/impl-trait-return-trailing-semicolon.rs rename to tests/ui/suggestions/impl-trait-return-trailing-semicolon.rs diff --git a/src/test/ui/suggestions/impl-trait-return-trailing-semicolon.stderr b/tests/ui/suggestions/impl-trait-return-trailing-semicolon.stderr similarity index 100% rename from src/test/ui/suggestions/impl-trait-return-trailing-semicolon.stderr rename to tests/ui/suggestions/impl-trait-return-trailing-semicolon.stderr diff --git a/src/test/ui/suggestions/impl-trait-with-missing-bounds.rs b/tests/ui/suggestions/impl-trait-with-missing-bounds.rs similarity index 100% rename from src/test/ui/suggestions/impl-trait-with-missing-bounds.rs rename to tests/ui/suggestions/impl-trait-with-missing-bounds.rs diff --git a/src/test/ui/suggestions/impl-trait-with-missing-bounds.stderr b/tests/ui/suggestions/impl-trait-with-missing-bounds.stderr similarity index 100% rename from src/test/ui/suggestions/impl-trait-with-missing-bounds.stderr rename to tests/ui/suggestions/impl-trait-with-missing-bounds.stderr diff --git a/src/test/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.fixed b/tests/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.fixed similarity index 100% rename from src/test/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.fixed rename to tests/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.fixed diff --git a/src/test/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.rs b/tests/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.rs similarity index 100% rename from src/test/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.rs rename to tests/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.rs diff --git a/src/test/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.stderr b/tests/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.stderr similarity index 100% rename from src/test/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.stderr rename to tests/ui/suggestions/impl-trait-with-missing-trait-bounds-in-arg.stderr diff --git a/src/test/ui/suggestions/import-trait-for-method-call.rs b/tests/ui/suggestions/import-trait-for-method-call.rs similarity index 100% rename from src/test/ui/suggestions/import-trait-for-method-call.rs rename to tests/ui/suggestions/import-trait-for-method-call.rs diff --git a/src/test/ui/suggestions/import-trait-for-method-call.stderr b/tests/ui/suggestions/import-trait-for-method-call.stderr similarity index 100% rename from src/test/ui/suggestions/import-trait-for-method-call.stderr rename to tests/ui/suggestions/import-trait-for-method-call.stderr diff --git a/src/test/ui/suggestions/inner_type.fixed b/tests/ui/suggestions/inner_type.fixed similarity index 100% rename from src/test/ui/suggestions/inner_type.fixed rename to tests/ui/suggestions/inner_type.fixed diff --git a/src/test/ui/suggestions/inner_type.rs b/tests/ui/suggestions/inner_type.rs similarity index 100% rename from src/test/ui/suggestions/inner_type.rs rename to tests/ui/suggestions/inner_type.rs diff --git a/src/test/ui/suggestions/inner_type.stderr b/tests/ui/suggestions/inner_type.stderr similarity index 100% rename from src/test/ui/suggestions/inner_type.stderr rename to tests/ui/suggestions/inner_type.stderr diff --git a/src/test/ui/suggestions/inner_type2.rs b/tests/ui/suggestions/inner_type2.rs similarity index 100% rename from src/test/ui/suggestions/inner_type2.rs rename to tests/ui/suggestions/inner_type2.rs diff --git a/src/test/ui/suggestions/inner_type2.stderr b/tests/ui/suggestions/inner_type2.stderr similarity index 100% rename from src/test/ui/suggestions/inner_type2.stderr rename to tests/ui/suggestions/inner_type2.stderr diff --git a/src/test/ui/suggestions/into-convert.rs b/tests/ui/suggestions/into-convert.rs similarity index 100% rename from src/test/ui/suggestions/into-convert.rs rename to tests/ui/suggestions/into-convert.rs diff --git a/src/test/ui/suggestions/into-convert.stderr b/tests/ui/suggestions/into-convert.stderr similarity index 100% rename from src/test/ui/suggestions/into-convert.stderr rename to tests/ui/suggestions/into-convert.stderr diff --git a/src/test/ui/suggestions/into-str.rs b/tests/ui/suggestions/into-str.rs similarity index 100% rename from src/test/ui/suggestions/into-str.rs rename to tests/ui/suggestions/into-str.rs diff --git a/src/test/ui/suggestions/into-str.stderr b/tests/ui/suggestions/into-str.stderr similarity index 100% rename from src/test/ui/suggestions/into-str.stderr rename to tests/ui/suggestions/into-str.stderr diff --git a/src/test/ui/suggestions/invalid-bin-op.rs b/tests/ui/suggestions/invalid-bin-op.rs similarity index 100% rename from src/test/ui/suggestions/invalid-bin-op.rs rename to tests/ui/suggestions/invalid-bin-op.rs diff --git a/src/test/ui/suggestions/invalid-bin-op.stderr b/tests/ui/suggestions/invalid-bin-op.stderr similarity index 100% rename from src/test/ui/suggestions/invalid-bin-op.stderr rename to tests/ui/suggestions/invalid-bin-op.stderr diff --git a/src/test/ui/suggestions/issue-101065.fixed b/tests/ui/suggestions/issue-101065.fixed similarity index 100% rename from src/test/ui/suggestions/issue-101065.fixed rename to tests/ui/suggestions/issue-101065.fixed diff --git a/src/test/ui/suggestions/issue-101065.rs b/tests/ui/suggestions/issue-101065.rs similarity index 100% rename from src/test/ui/suggestions/issue-101065.rs rename to tests/ui/suggestions/issue-101065.rs diff --git a/src/test/ui/suggestions/issue-101065.stderr b/tests/ui/suggestions/issue-101065.stderr similarity index 100% rename from src/test/ui/suggestions/issue-101065.stderr rename to tests/ui/suggestions/issue-101065.stderr diff --git a/src/test/ui/suggestions/issue-101421.rs b/tests/ui/suggestions/issue-101421.rs similarity index 100% rename from src/test/ui/suggestions/issue-101421.rs rename to tests/ui/suggestions/issue-101421.rs diff --git a/src/test/ui/suggestions/issue-101421.stderr b/tests/ui/suggestions/issue-101421.stderr similarity index 100% rename from src/test/ui/suggestions/issue-101421.stderr rename to tests/ui/suggestions/issue-101421.stderr diff --git a/src/test/ui/suggestions/issue-101465.rs b/tests/ui/suggestions/issue-101465.rs similarity index 100% rename from src/test/ui/suggestions/issue-101465.rs rename to tests/ui/suggestions/issue-101465.rs diff --git a/src/test/ui/suggestions/issue-101465.stderr b/tests/ui/suggestions/issue-101465.stderr similarity index 100% rename from src/test/ui/suggestions/issue-101465.stderr rename to tests/ui/suggestions/issue-101465.stderr diff --git a/src/test/ui/suggestions/issue-101623.rs b/tests/ui/suggestions/issue-101623.rs similarity index 100% rename from src/test/ui/suggestions/issue-101623.rs rename to tests/ui/suggestions/issue-101623.rs diff --git a/src/test/ui/suggestions/issue-101623.stderr b/tests/ui/suggestions/issue-101623.stderr similarity index 100% rename from src/test/ui/suggestions/issue-101623.stderr rename to tests/ui/suggestions/issue-101623.stderr diff --git a/src/test/ui/suggestions/issue-101984.rs b/tests/ui/suggestions/issue-101984.rs similarity index 100% rename from src/test/ui/suggestions/issue-101984.rs rename to tests/ui/suggestions/issue-101984.rs diff --git a/src/test/ui/suggestions/issue-101984.stderr b/tests/ui/suggestions/issue-101984.stderr similarity index 100% rename from src/test/ui/suggestions/issue-101984.stderr rename to tests/ui/suggestions/issue-101984.stderr diff --git a/src/test/ui/suggestions/issue-102354.rs b/tests/ui/suggestions/issue-102354.rs similarity index 100% rename from src/test/ui/suggestions/issue-102354.rs rename to tests/ui/suggestions/issue-102354.rs diff --git a/src/test/ui/suggestions/issue-102354.stderr b/tests/ui/suggestions/issue-102354.stderr similarity index 100% rename from src/test/ui/suggestions/issue-102354.stderr rename to tests/ui/suggestions/issue-102354.stderr diff --git a/src/test/ui/suggestions/issue-102892.rs b/tests/ui/suggestions/issue-102892.rs similarity index 100% rename from src/test/ui/suggestions/issue-102892.rs rename to tests/ui/suggestions/issue-102892.rs diff --git a/src/test/ui/suggestions/issue-102892.stderr b/tests/ui/suggestions/issue-102892.stderr similarity index 100% rename from src/test/ui/suggestions/issue-102892.stderr rename to tests/ui/suggestions/issue-102892.stderr diff --git a/src/test/ui/suggestions/issue-103112.rs b/tests/ui/suggestions/issue-103112.rs similarity index 100% rename from src/test/ui/suggestions/issue-103112.rs rename to tests/ui/suggestions/issue-103112.rs diff --git a/src/test/ui/suggestions/issue-103112.stderr b/tests/ui/suggestions/issue-103112.stderr similarity index 100% rename from src/test/ui/suggestions/issue-103112.stderr rename to tests/ui/suggestions/issue-103112.stderr diff --git a/src/test/ui/suggestions/issue-104086-suggest-let.rs b/tests/ui/suggestions/issue-104086-suggest-let.rs similarity index 100% rename from src/test/ui/suggestions/issue-104086-suggest-let.rs rename to tests/ui/suggestions/issue-104086-suggest-let.rs diff --git a/src/test/ui/suggestions/issue-104086-suggest-let.stderr b/tests/ui/suggestions/issue-104086-suggest-let.stderr similarity index 100% rename from src/test/ui/suggestions/issue-104086-suggest-let.stderr rename to tests/ui/suggestions/issue-104086-suggest-let.stderr diff --git a/src/test/ui/suggestions/issue-104287.rs b/tests/ui/suggestions/issue-104287.rs similarity index 100% rename from src/test/ui/suggestions/issue-104287.rs rename to tests/ui/suggestions/issue-104287.rs diff --git a/src/test/ui/suggestions/issue-104287.stderr b/tests/ui/suggestions/issue-104287.stderr similarity index 100% rename from src/test/ui/suggestions/issue-104287.stderr rename to tests/ui/suggestions/issue-104287.stderr diff --git a/src/test/ui/suggestions/issue-104327.rs b/tests/ui/suggestions/issue-104327.rs similarity index 100% rename from src/test/ui/suggestions/issue-104327.rs rename to tests/ui/suggestions/issue-104327.rs diff --git a/src/test/ui/suggestions/issue-104327.stderr b/tests/ui/suggestions/issue-104327.stderr similarity index 100% rename from src/test/ui/suggestions/issue-104327.stderr rename to tests/ui/suggestions/issue-104327.stderr diff --git a/src/test/ui/suggestions/issue-104328.rs b/tests/ui/suggestions/issue-104328.rs similarity index 100% rename from src/test/ui/suggestions/issue-104328.rs rename to tests/ui/suggestions/issue-104328.rs diff --git a/src/test/ui/suggestions/issue-104328.stderr b/tests/ui/suggestions/issue-104328.stderr similarity index 100% rename from src/test/ui/suggestions/issue-104328.stderr rename to tests/ui/suggestions/issue-104328.stderr diff --git a/src/test/ui/suggestions/issue-105226.rs b/tests/ui/suggestions/issue-105226.rs similarity index 100% rename from src/test/ui/suggestions/issue-105226.rs rename to tests/ui/suggestions/issue-105226.rs diff --git a/src/test/ui/suggestions/issue-105226.stderr b/tests/ui/suggestions/issue-105226.stderr similarity index 100% rename from src/test/ui/suggestions/issue-105226.stderr rename to tests/ui/suggestions/issue-105226.stderr diff --git a/src/test/ui/suggestions/issue-105494.rs b/tests/ui/suggestions/issue-105494.rs similarity index 100% rename from src/test/ui/suggestions/issue-105494.rs rename to tests/ui/suggestions/issue-105494.rs diff --git a/src/test/ui/suggestions/issue-105494.stderr b/tests/ui/suggestions/issue-105494.stderr similarity index 100% rename from src/test/ui/suggestions/issue-105494.stderr rename to tests/ui/suggestions/issue-105494.stderr diff --git a/src/test/ui/suggestions/issue-105645.rs b/tests/ui/suggestions/issue-105645.rs similarity index 100% rename from src/test/ui/suggestions/issue-105645.rs rename to tests/ui/suggestions/issue-105645.rs diff --git a/src/test/ui/suggestions/issue-105645.stderr b/tests/ui/suggestions/issue-105645.stderr similarity index 100% rename from src/test/ui/suggestions/issue-105645.stderr rename to tests/ui/suggestions/issue-105645.stderr diff --git a/src/test/ui/suggestions/issue-106443-sugg-clone-for-arg.rs b/tests/ui/suggestions/issue-106443-sugg-clone-for-arg.rs similarity index 100% rename from src/test/ui/suggestions/issue-106443-sugg-clone-for-arg.rs rename to tests/ui/suggestions/issue-106443-sugg-clone-for-arg.rs diff --git a/src/test/ui/suggestions/issue-106443-sugg-clone-for-arg.stderr b/tests/ui/suggestions/issue-106443-sugg-clone-for-arg.stderr similarity index 100% rename from src/test/ui/suggestions/issue-106443-sugg-clone-for-arg.stderr rename to tests/ui/suggestions/issue-106443-sugg-clone-for-arg.stderr diff --git a/src/test/ui/suggestions/issue-106443-sugg-clone-for-bound.rs b/tests/ui/suggestions/issue-106443-sugg-clone-for-bound.rs similarity index 100% rename from src/test/ui/suggestions/issue-106443-sugg-clone-for-bound.rs rename to tests/ui/suggestions/issue-106443-sugg-clone-for-bound.rs diff --git a/src/test/ui/suggestions/issue-106443-sugg-clone-for-bound.stderr b/tests/ui/suggestions/issue-106443-sugg-clone-for-bound.stderr similarity index 100% rename from src/test/ui/suggestions/issue-106443-sugg-clone-for-bound.stderr rename to tests/ui/suggestions/issue-106443-sugg-clone-for-bound.stderr diff --git a/src/test/ui/suggestions/issue-21673.rs b/tests/ui/suggestions/issue-21673.rs similarity index 100% rename from src/test/ui/suggestions/issue-21673.rs rename to tests/ui/suggestions/issue-21673.rs diff --git a/src/test/ui/suggestions/issue-21673.stderr b/tests/ui/suggestions/issue-21673.stderr similarity index 100% rename from src/test/ui/suggestions/issue-21673.stderr rename to tests/ui/suggestions/issue-21673.stderr diff --git a/src/test/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.rs b/tests/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.rs similarity index 100% rename from src/test/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.rs rename to tests/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.rs diff --git a/src/test/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.stderr b/tests/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.stderr similarity index 100% rename from src/test/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.stderr rename to tests/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.stderr diff --git a/src/test/ui/suggestions/issue-52820.fixed b/tests/ui/suggestions/issue-52820.fixed similarity index 100% rename from src/test/ui/suggestions/issue-52820.fixed rename to tests/ui/suggestions/issue-52820.fixed diff --git a/src/test/ui/suggestions/issue-52820.rs b/tests/ui/suggestions/issue-52820.rs similarity index 100% rename from src/test/ui/suggestions/issue-52820.rs rename to tests/ui/suggestions/issue-52820.rs diff --git a/src/test/ui/suggestions/issue-52820.stderr b/tests/ui/suggestions/issue-52820.stderr similarity index 100% rename from src/test/ui/suggestions/issue-52820.stderr rename to tests/ui/suggestions/issue-52820.stderr diff --git a/src/test/ui/suggestions/issue-53692.fixed b/tests/ui/suggestions/issue-53692.fixed similarity index 100% rename from src/test/ui/suggestions/issue-53692.fixed rename to tests/ui/suggestions/issue-53692.fixed diff --git a/src/test/ui/suggestions/issue-53692.rs b/tests/ui/suggestions/issue-53692.rs similarity index 100% rename from src/test/ui/suggestions/issue-53692.rs rename to tests/ui/suggestions/issue-53692.rs diff --git a/src/test/ui/suggestions/issue-53692.stderr b/tests/ui/suggestions/issue-53692.stderr similarity index 100% rename from src/test/ui/suggestions/issue-53692.stderr rename to tests/ui/suggestions/issue-53692.stderr diff --git a/src/test/ui/suggestions/issue-57672.rs b/tests/ui/suggestions/issue-57672.rs similarity index 100% rename from src/test/ui/suggestions/issue-57672.rs rename to tests/ui/suggestions/issue-57672.rs diff --git a/src/test/ui/suggestions/issue-59819.fixed b/tests/ui/suggestions/issue-59819.fixed similarity index 100% rename from src/test/ui/suggestions/issue-59819.fixed rename to tests/ui/suggestions/issue-59819.fixed diff --git a/src/test/ui/suggestions/issue-59819.rs b/tests/ui/suggestions/issue-59819.rs similarity index 100% rename from src/test/ui/suggestions/issue-59819.rs rename to tests/ui/suggestions/issue-59819.rs diff --git a/src/test/ui/suggestions/issue-59819.stderr b/tests/ui/suggestions/issue-59819.stderr similarity index 100% rename from src/test/ui/suggestions/issue-59819.stderr rename to tests/ui/suggestions/issue-59819.stderr diff --git a/src/test/ui/suggestions/issue-61226.fixed b/tests/ui/suggestions/issue-61226.fixed similarity index 100% rename from src/test/ui/suggestions/issue-61226.fixed rename to tests/ui/suggestions/issue-61226.fixed diff --git a/src/test/ui/suggestions/issue-61226.rs b/tests/ui/suggestions/issue-61226.rs similarity index 100% rename from src/test/ui/suggestions/issue-61226.rs rename to tests/ui/suggestions/issue-61226.rs diff --git a/src/test/ui/suggestions/issue-61226.stderr b/tests/ui/suggestions/issue-61226.stderr similarity index 100% rename from src/test/ui/suggestions/issue-61226.stderr rename to tests/ui/suggestions/issue-61226.stderr diff --git a/src/test/ui/suggestions/issue-61963.rs b/tests/ui/suggestions/issue-61963.rs similarity index 100% rename from src/test/ui/suggestions/issue-61963.rs rename to tests/ui/suggestions/issue-61963.rs diff --git a/src/test/ui/suggestions/issue-61963.stderr b/tests/ui/suggestions/issue-61963.stderr similarity index 100% rename from src/test/ui/suggestions/issue-61963.stderr rename to tests/ui/suggestions/issue-61963.stderr diff --git a/src/test/ui/suggestions/issue-62843.rs b/tests/ui/suggestions/issue-62843.rs similarity index 100% rename from src/test/ui/suggestions/issue-62843.rs rename to tests/ui/suggestions/issue-62843.rs diff --git a/src/test/ui/suggestions/issue-62843.stderr b/tests/ui/suggestions/issue-62843.stderr similarity index 100% rename from src/test/ui/suggestions/issue-62843.stderr rename to tests/ui/suggestions/issue-62843.stderr diff --git a/src/test/ui/suggestions/issue-64252-self-type.rs b/tests/ui/suggestions/issue-64252-self-type.rs similarity index 100% rename from src/test/ui/suggestions/issue-64252-self-type.rs rename to tests/ui/suggestions/issue-64252-self-type.rs diff --git a/src/test/ui/suggestions/issue-64252-self-type.stderr b/tests/ui/suggestions/issue-64252-self-type.stderr similarity index 100% rename from src/test/ui/suggestions/issue-64252-self-type.stderr rename to tests/ui/suggestions/issue-64252-self-type.stderr diff --git a/src/test/ui/suggestions/issue-66968-suggest-sorted-words.rs b/tests/ui/suggestions/issue-66968-suggest-sorted-words.rs similarity index 100% rename from src/test/ui/suggestions/issue-66968-suggest-sorted-words.rs rename to tests/ui/suggestions/issue-66968-suggest-sorted-words.rs diff --git a/src/test/ui/suggestions/issue-66968-suggest-sorted-words.stderr b/tests/ui/suggestions/issue-66968-suggest-sorted-words.stderr similarity index 100% rename from src/test/ui/suggestions/issue-66968-suggest-sorted-words.stderr rename to tests/ui/suggestions/issue-66968-suggest-sorted-words.stderr diff --git a/src/test/ui/suggestions/issue-68049-1.rs b/tests/ui/suggestions/issue-68049-1.rs similarity index 100% rename from src/test/ui/suggestions/issue-68049-1.rs rename to tests/ui/suggestions/issue-68049-1.rs diff --git a/src/test/ui/suggestions/issue-68049-1.stderr b/tests/ui/suggestions/issue-68049-1.stderr similarity index 100% rename from src/test/ui/suggestions/issue-68049-1.stderr rename to tests/ui/suggestions/issue-68049-1.stderr diff --git a/src/test/ui/suggestions/issue-68049-2.rs b/tests/ui/suggestions/issue-68049-2.rs similarity index 100% rename from src/test/ui/suggestions/issue-68049-2.rs rename to tests/ui/suggestions/issue-68049-2.rs diff --git a/src/test/ui/suggestions/issue-68049-2.stderr b/tests/ui/suggestions/issue-68049-2.stderr similarity index 100% rename from src/test/ui/suggestions/issue-68049-2.stderr rename to tests/ui/suggestions/issue-68049-2.stderr diff --git a/src/test/ui/suggestions/issue-71394-no-from-impl.rs b/tests/ui/suggestions/issue-71394-no-from-impl.rs similarity index 100% rename from src/test/ui/suggestions/issue-71394-no-from-impl.rs rename to tests/ui/suggestions/issue-71394-no-from-impl.rs diff --git a/src/test/ui/suggestions/issue-71394-no-from-impl.stderr b/tests/ui/suggestions/issue-71394-no-from-impl.stderr similarity index 100% rename from src/test/ui/suggestions/issue-71394-no-from-impl.stderr rename to tests/ui/suggestions/issue-71394-no-from-impl.stderr diff --git a/src/test/ui/suggestions/issue-72766.rs b/tests/ui/suggestions/issue-72766.rs similarity index 100% rename from src/test/ui/suggestions/issue-72766.rs rename to tests/ui/suggestions/issue-72766.rs diff --git a/src/test/ui/suggestions/issue-72766.stderr b/tests/ui/suggestions/issue-72766.stderr similarity index 100% rename from src/test/ui/suggestions/issue-72766.stderr rename to tests/ui/suggestions/issue-72766.stderr diff --git a/src/test/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs b/tests/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs similarity index 100% rename from src/test/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs rename to tests/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.rs diff --git a/src/test/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr b/tests/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr similarity index 100% rename from src/test/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr rename to tests/ui/suggestions/issue-79843-impl-trait-with-missing-bounds-on-async-fn.stderr diff --git a/src/test/ui/suggestions/issue-81098.rs b/tests/ui/suggestions/issue-81098.rs similarity index 100% rename from src/test/ui/suggestions/issue-81098.rs rename to tests/ui/suggestions/issue-81098.rs diff --git a/src/test/ui/suggestions/issue-81098.stderr b/tests/ui/suggestions/issue-81098.stderr similarity index 100% rename from src/test/ui/suggestions/issue-81098.stderr rename to tests/ui/suggestions/issue-81098.stderr diff --git a/src/test/ui/suggestions/issue-81839.rs b/tests/ui/suggestions/issue-81839.rs similarity index 100% rename from src/test/ui/suggestions/issue-81839.rs rename to tests/ui/suggestions/issue-81839.rs diff --git a/src/test/ui/suggestions/issue-81839.stderr b/tests/ui/suggestions/issue-81839.stderr similarity index 100% rename from src/test/ui/suggestions/issue-81839.stderr rename to tests/ui/suggestions/issue-81839.stderr diff --git a/src/test/ui/suggestions/issue-82361.fixed b/tests/ui/suggestions/issue-82361.fixed similarity index 100% rename from src/test/ui/suggestions/issue-82361.fixed rename to tests/ui/suggestions/issue-82361.fixed diff --git a/src/test/ui/suggestions/issue-82361.rs b/tests/ui/suggestions/issue-82361.rs similarity index 100% rename from src/test/ui/suggestions/issue-82361.rs rename to tests/ui/suggestions/issue-82361.rs diff --git a/src/test/ui/suggestions/issue-82361.stderr b/tests/ui/suggestions/issue-82361.stderr similarity index 100% rename from src/test/ui/suggestions/issue-82361.stderr rename to tests/ui/suggestions/issue-82361.stderr diff --git a/src/test/ui/suggestions/issue-82566-1.rs b/tests/ui/suggestions/issue-82566-1.rs similarity index 100% rename from src/test/ui/suggestions/issue-82566-1.rs rename to tests/ui/suggestions/issue-82566-1.rs diff --git a/src/test/ui/suggestions/issue-82566-1.stderr b/tests/ui/suggestions/issue-82566-1.stderr similarity index 100% rename from src/test/ui/suggestions/issue-82566-1.stderr rename to tests/ui/suggestions/issue-82566-1.stderr diff --git a/src/test/ui/suggestions/issue-82566-2.rs b/tests/ui/suggestions/issue-82566-2.rs similarity index 100% rename from src/test/ui/suggestions/issue-82566-2.rs rename to tests/ui/suggestions/issue-82566-2.rs diff --git a/src/test/ui/suggestions/issue-82566-2.stderr b/tests/ui/suggestions/issue-82566-2.stderr similarity index 100% rename from src/test/ui/suggestions/issue-82566-2.stderr rename to tests/ui/suggestions/issue-82566-2.stderr diff --git a/src/test/ui/suggestions/issue-83892.fixed b/tests/ui/suggestions/issue-83892.fixed similarity index 100% rename from src/test/ui/suggestions/issue-83892.fixed rename to tests/ui/suggestions/issue-83892.fixed diff --git a/src/test/ui/suggestions/issue-83892.rs b/tests/ui/suggestions/issue-83892.rs similarity index 100% rename from src/test/ui/suggestions/issue-83892.rs rename to tests/ui/suggestions/issue-83892.rs diff --git a/src/test/ui/suggestions/issue-83892.stderr b/tests/ui/suggestions/issue-83892.stderr similarity index 100% rename from src/test/ui/suggestions/issue-83892.stderr rename to tests/ui/suggestions/issue-83892.stderr diff --git a/src/test/ui/suggestions/issue-83943.fixed b/tests/ui/suggestions/issue-83943.fixed similarity index 100% rename from src/test/ui/suggestions/issue-83943.fixed rename to tests/ui/suggestions/issue-83943.fixed diff --git a/src/test/ui/suggestions/issue-83943.rs b/tests/ui/suggestions/issue-83943.rs similarity index 100% rename from src/test/ui/suggestions/issue-83943.rs rename to tests/ui/suggestions/issue-83943.rs diff --git a/src/test/ui/suggestions/issue-83943.stderr b/tests/ui/suggestions/issue-83943.stderr similarity index 100% rename from src/test/ui/suggestions/issue-83943.stderr rename to tests/ui/suggestions/issue-83943.stderr diff --git a/src/test/ui/suggestions/issue-84592.rs b/tests/ui/suggestions/issue-84592.rs similarity index 100% rename from src/test/ui/suggestions/issue-84592.rs rename to tests/ui/suggestions/issue-84592.rs diff --git a/src/test/ui/suggestions/issue-84592.stderr b/tests/ui/suggestions/issue-84592.stderr similarity index 100% rename from src/test/ui/suggestions/issue-84592.stderr rename to tests/ui/suggestions/issue-84592.stderr diff --git a/src/test/ui/suggestions/issue-84700.rs b/tests/ui/suggestions/issue-84700.rs similarity index 100% rename from src/test/ui/suggestions/issue-84700.rs rename to tests/ui/suggestions/issue-84700.rs diff --git a/src/test/ui/suggestions/issue-84700.stderr b/tests/ui/suggestions/issue-84700.stderr similarity index 100% rename from src/test/ui/suggestions/issue-84700.stderr rename to tests/ui/suggestions/issue-84700.stderr diff --git a/src/test/ui/suggestions/issue-84973-2.rs b/tests/ui/suggestions/issue-84973-2.rs similarity index 100% rename from src/test/ui/suggestions/issue-84973-2.rs rename to tests/ui/suggestions/issue-84973-2.rs diff --git a/src/test/ui/suggestions/issue-84973-2.stderr b/tests/ui/suggestions/issue-84973-2.stderr similarity index 100% rename from src/test/ui/suggestions/issue-84973-2.stderr rename to tests/ui/suggestions/issue-84973-2.stderr diff --git a/src/test/ui/suggestions/issue-84973-blacklist.rs b/tests/ui/suggestions/issue-84973-blacklist.rs similarity index 100% rename from src/test/ui/suggestions/issue-84973-blacklist.rs rename to tests/ui/suggestions/issue-84973-blacklist.rs diff --git a/src/test/ui/suggestions/issue-84973-blacklist.stderr b/tests/ui/suggestions/issue-84973-blacklist.stderr similarity index 100% rename from src/test/ui/suggestions/issue-84973-blacklist.stderr rename to tests/ui/suggestions/issue-84973-blacklist.stderr diff --git a/src/test/ui/suggestions/issue-84973-negative.rs b/tests/ui/suggestions/issue-84973-negative.rs similarity index 100% rename from src/test/ui/suggestions/issue-84973-negative.rs rename to tests/ui/suggestions/issue-84973-negative.rs diff --git a/src/test/ui/suggestions/issue-84973-negative.stderr b/tests/ui/suggestions/issue-84973-negative.stderr similarity index 100% rename from src/test/ui/suggestions/issue-84973-negative.stderr rename to tests/ui/suggestions/issue-84973-negative.stderr diff --git a/src/test/ui/suggestions/issue-84973.rs b/tests/ui/suggestions/issue-84973.rs similarity index 100% rename from src/test/ui/suggestions/issue-84973.rs rename to tests/ui/suggestions/issue-84973.rs diff --git a/src/test/ui/suggestions/issue-84973.stderr b/tests/ui/suggestions/issue-84973.stderr similarity index 100% rename from src/test/ui/suggestions/issue-84973.stderr rename to tests/ui/suggestions/issue-84973.stderr diff --git a/src/test/ui/suggestions/issue-85347.rs b/tests/ui/suggestions/issue-85347.rs similarity index 100% rename from src/test/ui/suggestions/issue-85347.rs rename to tests/ui/suggestions/issue-85347.rs diff --git a/src/test/ui/suggestions/issue-85347.stderr b/tests/ui/suggestions/issue-85347.stderr similarity index 100% rename from src/test/ui/suggestions/issue-85347.stderr rename to tests/ui/suggestions/issue-85347.stderr diff --git a/src/test/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs b/tests/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs similarity index 100% rename from src/test/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs rename to tests/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.rs diff --git a/src/test/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.stderr b/tests/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.stderr similarity index 100% rename from src/test/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.stderr rename to tests/ui/suggestions/issue-85943-no-suggest-unsized-indirection-in-where-clause.stderr diff --git a/src/test/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs b/tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs similarity index 100% rename from src/test/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs rename to tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.rs diff --git a/src/test/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.stderr b/tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.stderr similarity index 100% rename from src/test/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.stderr rename to tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.stderr diff --git a/src/test/ui/suggestions/issue-86100-tuple-paren-comma.rs b/tests/ui/suggestions/issue-86100-tuple-paren-comma.rs similarity index 100% rename from src/test/ui/suggestions/issue-86100-tuple-paren-comma.rs rename to tests/ui/suggestions/issue-86100-tuple-paren-comma.rs diff --git a/src/test/ui/suggestions/issue-86100-tuple-paren-comma.stderr b/tests/ui/suggestions/issue-86100-tuple-paren-comma.stderr similarity index 100% rename from src/test/ui/suggestions/issue-86100-tuple-paren-comma.stderr rename to tests/ui/suggestions/issue-86100-tuple-paren-comma.stderr diff --git a/src/test/ui/suggestions/issue-86667.rs b/tests/ui/suggestions/issue-86667.rs similarity index 100% rename from src/test/ui/suggestions/issue-86667.rs rename to tests/ui/suggestions/issue-86667.rs diff --git a/src/test/ui/suggestions/issue-86667.stderr b/tests/ui/suggestions/issue-86667.stderr similarity index 100% rename from src/test/ui/suggestions/issue-86667.stderr rename to tests/ui/suggestions/issue-86667.stderr diff --git a/src/test/ui/suggestions/issue-88730.rs b/tests/ui/suggestions/issue-88730.rs similarity index 100% rename from src/test/ui/suggestions/issue-88730.rs rename to tests/ui/suggestions/issue-88730.rs diff --git a/src/test/ui/suggestions/issue-88730.stderr b/tests/ui/suggestions/issue-88730.stderr similarity index 100% rename from src/test/ui/suggestions/issue-88730.stderr rename to tests/ui/suggestions/issue-88730.stderr diff --git a/src/test/ui/suggestions/issue-89064.rs b/tests/ui/suggestions/issue-89064.rs similarity index 100% rename from src/test/ui/suggestions/issue-89064.rs rename to tests/ui/suggestions/issue-89064.rs diff --git a/src/test/ui/suggestions/issue-89064.stderr b/tests/ui/suggestions/issue-89064.stderr similarity index 100% rename from src/test/ui/suggestions/issue-89064.stderr rename to tests/ui/suggestions/issue-89064.stderr diff --git a/src/test/ui/suggestions/issue-89333.rs b/tests/ui/suggestions/issue-89333.rs similarity index 100% rename from src/test/ui/suggestions/issue-89333.rs rename to tests/ui/suggestions/issue-89333.rs diff --git a/src/test/ui/suggestions/issue-89333.stderr b/tests/ui/suggestions/issue-89333.stderr similarity index 100% rename from src/test/ui/suggestions/issue-89333.stderr rename to tests/ui/suggestions/issue-89333.stderr diff --git a/src/test/ui/suggestions/issue-90213-expected-boxfuture-self-ice.rs b/tests/ui/suggestions/issue-90213-expected-boxfuture-self-ice.rs similarity index 100% rename from src/test/ui/suggestions/issue-90213-expected-boxfuture-self-ice.rs rename to tests/ui/suggestions/issue-90213-expected-boxfuture-self-ice.rs diff --git a/src/test/ui/suggestions/issue-90213-expected-boxfuture-self-ice.stderr b/tests/ui/suggestions/issue-90213-expected-boxfuture-self-ice.stderr similarity index 100% rename from src/test/ui/suggestions/issue-90213-expected-boxfuture-self-ice.stderr rename to tests/ui/suggestions/issue-90213-expected-boxfuture-self-ice.stderr diff --git a/src/test/ui/suggestions/issue-90974.rs b/tests/ui/suggestions/issue-90974.rs similarity index 100% rename from src/test/ui/suggestions/issue-90974.rs rename to tests/ui/suggestions/issue-90974.rs diff --git a/src/test/ui/suggestions/issue-90974.stderr b/tests/ui/suggestions/issue-90974.stderr similarity index 100% rename from src/test/ui/suggestions/issue-90974.stderr rename to tests/ui/suggestions/issue-90974.stderr diff --git a/src/test/ui/suggestions/issue-96223.rs b/tests/ui/suggestions/issue-96223.rs similarity index 100% rename from src/test/ui/suggestions/issue-96223.rs rename to tests/ui/suggestions/issue-96223.rs diff --git a/src/test/ui/suggestions/issue-96223.stderr b/tests/ui/suggestions/issue-96223.stderr similarity index 100% rename from src/test/ui/suggestions/issue-96223.stderr rename to tests/ui/suggestions/issue-96223.stderr diff --git a/src/test/ui/suggestions/issue-96555.rs b/tests/ui/suggestions/issue-96555.rs similarity index 100% rename from src/test/ui/suggestions/issue-96555.rs rename to tests/ui/suggestions/issue-96555.rs diff --git a/src/test/ui/suggestions/issue-96555.stderr b/tests/ui/suggestions/issue-96555.stderr similarity index 100% rename from src/test/ui/suggestions/issue-96555.stderr rename to tests/ui/suggestions/issue-96555.stderr diff --git a/src/test/ui/suggestions/issue-97677.fixed b/tests/ui/suggestions/issue-97677.fixed similarity index 100% rename from src/test/ui/suggestions/issue-97677.fixed rename to tests/ui/suggestions/issue-97677.fixed diff --git a/src/test/ui/suggestions/issue-97677.rs b/tests/ui/suggestions/issue-97677.rs similarity index 100% rename from src/test/ui/suggestions/issue-97677.rs rename to tests/ui/suggestions/issue-97677.rs diff --git a/src/test/ui/suggestions/issue-97677.stderr b/tests/ui/suggestions/issue-97677.stderr similarity index 100% rename from src/test/ui/suggestions/issue-97677.stderr rename to tests/ui/suggestions/issue-97677.stderr diff --git a/src/test/ui/suggestions/issue-97704.fixed b/tests/ui/suggestions/issue-97704.fixed similarity index 100% rename from src/test/ui/suggestions/issue-97704.fixed rename to tests/ui/suggestions/issue-97704.fixed diff --git a/src/test/ui/suggestions/issue-97704.rs b/tests/ui/suggestions/issue-97704.rs similarity index 100% rename from src/test/ui/suggestions/issue-97704.rs rename to tests/ui/suggestions/issue-97704.rs diff --git a/src/test/ui/suggestions/issue-97704.stderr b/tests/ui/suggestions/issue-97704.stderr similarity index 100% rename from src/test/ui/suggestions/issue-97704.stderr rename to tests/ui/suggestions/issue-97704.stderr diff --git a/src/test/ui/suggestions/issue-97760.rs b/tests/ui/suggestions/issue-97760.rs similarity index 100% rename from src/test/ui/suggestions/issue-97760.rs rename to tests/ui/suggestions/issue-97760.rs diff --git a/src/test/ui/suggestions/issue-97760.stderr b/tests/ui/suggestions/issue-97760.stderr similarity index 100% rename from src/test/ui/suggestions/issue-97760.stderr rename to tests/ui/suggestions/issue-97760.stderr diff --git a/src/test/ui/suggestions/issue-98500.rs b/tests/ui/suggestions/issue-98500.rs similarity index 100% rename from src/test/ui/suggestions/issue-98500.rs rename to tests/ui/suggestions/issue-98500.rs diff --git a/src/test/ui/suggestions/issue-98500.stderr b/tests/ui/suggestions/issue-98500.stderr similarity index 100% rename from src/test/ui/suggestions/issue-98500.stderr rename to tests/ui/suggestions/issue-98500.stderr diff --git a/src/test/ui/suggestions/issue-99080.rs b/tests/ui/suggestions/issue-99080.rs similarity index 100% rename from src/test/ui/suggestions/issue-99080.rs rename to tests/ui/suggestions/issue-99080.rs diff --git a/src/test/ui/suggestions/issue-99080.stderr b/tests/ui/suggestions/issue-99080.stderr similarity index 100% rename from src/test/ui/suggestions/issue-99080.stderr rename to tests/ui/suggestions/issue-99080.stderr diff --git a/src/test/ui/suggestions/issue-99240-2.rs b/tests/ui/suggestions/issue-99240-2.rs similarity index 100% rename from src/test/ui/suggestions/issue-99240-2.rs rename to tests/ui/suggestions/issue-99240-2.rs diff --git a/src/test/ui/suggestions/issue-99240-2.stderr b/tests/ui/suggestions/issue-99240-2.stderr similarity index 100% rename from src/test/ui/suggestions/issue-99240-2.stderr rename to tests/ui/suggestions/issue-99240-2.stderr diff --git a/src/test/ui/suggestions/issue-99240.rs b/tests/ui/suggestions/issue-99240.rs similarity index 100% rename from src/test/ui/suggestions/issue-99240.rs rename to tests/ui/suggestions/issue-99240.rs diff --git a/src/test/ui/suggestions/issue-99240.stderr b/tests/ui/suggestions/issue-99240.stderr similarity index 100% rename from src/test/ui/suggestions/issue-99240.stderr rename to tests/ui/suggestions/issue-99240.stderr diff --git a/src/test/ui/suggestions/js-style-comparison-op-separate-eq-token.rs b/tests/ui/suggestions/js-style-comparison-op-separate-eq-token.rs similarity index 100% rename from src/test/ui/suggestions/js-style-comparison-op-separate-eq-token.rs rename to tests/ui/suggestions/js-style-comparison-op-separate-eq-token.rs diff --git a/src/test/ui/suggestions/js-style-comparison-op-separate-eq-token.stderr b/tests/ui/suggestions/js-style-comparison-op-separate-eq-token.stderr similarity index 100% rename from src/test/ui/suggestions/js-style-comparison-op-separate-eq-token.stderr rename to tests/ui/suggestions/js-style-comparison-op-separate-eq-token.stderr diff --git a/src/test/ui/suggestions/js-style-comparison-op.fixed b/tests/ui/suggestions/js-style-comparison-op.fixed similarity index 100% rename from src/test/ui/suggestions/js-style-comparison-op.fixed rename to tests/ui/suggestions/js-style-comparison-op.fixed diff --git a/src/test/ui/suggestions/js-style-comparison-op.rs b/tests/ui/suggestions/js-style-comparison-op.rs similarity index 100% rename from src/test/ui/suggestions/js-style-comparison-op.rs rename to tests/ui/suggestions/js-style-comparison-op.rs diff --git a/src/test/ui/suggestions/js-style-comparison-op.stderr b/tests/ui/suggestions/js-style-comparison-op.stderr similarity index 100% rename from src/test/ui/suggestions/js-style-comparison-op.stderr rename to tests/ui/suggestions/js-style-comparison-op.stderr diff --git a/src/test/ui/suggestions/let-binding-init-expr-as-ty.rs b/tests/ui/suggestions/let-binding-init-expr-as-ty.rs similarity index 100% rename from src/test/ui/suggestions/let-binding-init-expr-as-ty.rs rename to tests/ui/suggestions/let-binding-init-expr-as-ty.rs diff --git a/src/test/ui/suggestions/let-binding-init-expr-as-ty.stderr b/tests/ui/suggestions/let-binding-init-expr-as-ty.stderr similarity index 100% rename from src/test/ui/suggestions/let-binding-init-expr-as-ty.stderr rename to tests/ui/suggestions/let-binding-init-expr-as-ty.stderr diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.rs b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.rs similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.rs rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.rs diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.stderr b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.stderr similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.stderr rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.stderr diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.fixed b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.fixed similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.fixed rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.fixed diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.rs b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.rs similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.rs rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.rs diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.stderr b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.stderr similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.stderr rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature-before-const.stderr diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature.rs b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature.rs similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature.rs rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature.rs diff --git a/src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature.stderr b/tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature.stderr similarity index 100% rename from src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature.stderr rename to tests/ui/suggestions/lifetimes/missing-lifetimes-in-signature.stderr diff --git a/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs b/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs similarity index 100% rename from src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs rename to tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs diff --git a/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr b/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr similarity index 100% rename from src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr rename to tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr diff --git a/src/test/ui/suggestions/many-type-ascription.rs b/tests/ui/suggestions/many-type-ascription.rs similarity index 100% rename from src/test/ui/suggestions/many-type-ascription.rs rename to tests/ui/suggestions/many-type-ascription.rs diff --git a/src/test/ui/suggestions/many-type-ascription.stderr b/tests/ui/suggestions/many-type-ascription.stderr similarity index 100% rename from src/test/ui/suggestions/many-type-ascription.stderr rename to tests/ui/suggestions/many-type-ascription.stderr diff --git a/src/test/ui/suggestions/match-ergonomics.rs b/tests/ui/suggestions/match-ergonomics.rs similarity index 100% rename from src/test/ui/suggestions/match-ergonomics.rs rename to tests/ui/suggestions/match-ergonomics.rs diff --git a/src/test/ui/suggestions/match-ergonomics.stderr b/tests/ui/suggestions/match-ergonomics.stderr similarity index 100% rename from src/test/ui/suggestions/match-ergonomics.stderr rename to tests/ui/suggestions/match-ergonomics.stderr diff --git a/src/test/ui/suggestions/match-needing-semi.rs b/tests/ui/suggestions/match-needing-semi.rs similarity index 100% rename from src/test/ui/suggestions/match-needing-semi.rs rename to tests/ui/suggestions/match-needing-semi.rs diff --git a/src/test/ui/suggestions/match-needing-semi.stderr b/tests/ui/suggestions/match-needing-semi.stderr similarity index 100% rename from src/test/ui/suggestions/match-needing-semi.stderr rename to tests/ui/suggestions/match-needing-semi.stderr diff --git a/src/test/ui/suggestions/match-prev-arm-needing-semi.rs b/tests/ui/suggestions/match-prev-arm-needing-semi.rs similarity index 100% rename from src/test/ui/suggestions/match-prev-arm-needing-semi.rs rename to tests/ui/suggestions/match-prev-arm-needing-semi.rs diff --git a/src/test/ui/suggestions/match-prev-arm-needing-semi.stderr b/tests/ui/suggestions/match-prev-arm-needing-semi.stderr similarity index 100% rename from src/test/ui/suggestions/match-prev-arm-needing-semi.stderr rename to tests/ui/suggestions/match-prev-arm-needing-semi.stderr diff --git a/src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.rs b/tests/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.rs similarity index 100% rename from src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.rs rename to tests/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.rs diff --git a/src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.stderr b/tests/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.stderr similarity index 100% rename from src/test/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.stderr rename to tests/ui/suggestions/match-with-different-arm-types-as-stmt-instead-of-expr.stderr diff --git a/src/test/ui/suggestions/method-access-to-range-literal-typo.fixed b/tests/ui/suggestions/method-access-to-range-literal-typo.fixed similarity index 100% rename from src/test/ui/suggestions/method-access-to-range-literal-typo.fixed rename to tests/ui/suggestions/method-access-to-range-literal-typo.fixed diff --git a/src/test/ui/suggestions/method-access-to-range-literal-typo.rs b/tests/ui/suggestions/method-access-to-range-literal-typo.rs similarity index 100% rename from src/test/ui/suggestions/method-access-to-range-literal-typo.rs rename to tests/ui/suggestions/method-access-to-range-literal-typo.rs diff --git a/src/test/ui/suggestions/method-access-to-range-literal-typo.stderr b/tests/ui/suggestions/method-access-to-range-literal-typo.stderr similarity index 100% rename from src/test/ui/suggestions/method-access-to-range-literal-typo.stderr rename to tests/ui/suggestions/method-access-to-range-literal-typo.stderr diff --git a/src/test/ui/suggestions/method-missing-parentheses.rs b/tests/ui/suggestions/method-missing-parentheses.rs similarity index 100% rename from src/test/ui/suggestions/method-missing-parentheses.rs rename to tests/ui/suggestions/method-missing-parentheses.rs diff --git a/src/test/ui/suggestions/method-missing-parentheses.stderr b/tests/ui/suggestions/method-missing-parentheses.stderr similarity index 100% rename from src/test/ui/suggestions/method-missing-parentheses.stderr rename to tests/ui/suggestions/method-missing-parentheses.stderr diff --git a/src/test/ui/suggestions/mismatched-types-numeric-from.rs b/tests/ui/suggestions/mismatched-types-numeric-from.rs similarity index 100% rename from src/test/ui/suggestions/mismatched-types-numeric-from.rs rename to tests/ui/suggestions/mismatched-types-numeric-from.rs diff --git a/src/test/ui/suggestions/mismatched-types-numeric-from.stderr b/tests/ui/suggestions/mismatched-types-numeric-from.stderr similarity index 100% rename from src/test/ui/suggestions/mismatched-types-numeric-from.stderr rename to tests/ui/suggestions/mismatched-types-numeric-from.stderr diff --git a/src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.fixed b/tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.fixed similarity index 100% rename from src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.fixed rename to tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.fixed diff --git a/src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.rs b/tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.rs similarity index 100% rename from src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.rs rename to tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.rs diff --git a/src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.stderr b/tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.stderr similarity index 100% rename from src/test/ui/suggestions/missing-assoc-fn-applicable-suggestions.stderr rename to tests/ui/suggestions/missing-assoc-fn-applicable-suggestions.stderr diff --git a/src/test/ui/suggestions/missing-assoc-fn.rs b/tests/ui/suggestions/missing-assoc-fn.rs similarity index 100% rename from src/test/ui/suggestions/missing-assoc-fn.rs rename to tests/ui/suggestions/missing-assoc-fn.rs diff --git a/src/test/ui/suggestions/missing-assoc-fn.stderr b/tests/ui/suggestions/missing-assoc-fn.stderr similarity index 100% rename from src/test/ui/suggestions/missing-assoc-fn.stderr rename to tests/ui/suggestions/missing-assoc-fn.stderr diff --git a/src/test/ui/suggestions/missing-assoc-type-bound-restriction.rs b/tests/ui/suggestions/missing-assoc-type-bound-restriction.rs similarity index 100% rename from src/test/ui/suggestions/missing-assoc-type-bound-restriction.rs rename to tests/ui/suggestions/missing-assoc-type-bound-restriction.rs diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl-2.fixed b/tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.fixed similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl-2.fixed rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.fixed diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl-2.rs b/tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.rs similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl-2.rs rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.rs diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl-2.stderr b/tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.stderr similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl-2.stderr rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl-2.stderr diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.fixed b/tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.fixed similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.fixed rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.fixed diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.rs b/tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.rs similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.rs rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.rs diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.stderr b/tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.stderr similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl-3.stderr rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl-3.stderr diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl.rs b/tests/ui/suggestions/missing-bound-in-derive-copy-impl.rs similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl.rs rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl.rs diff --git a/src/test/ui/suggestions/missing-bound-in-derive-copy-impl.stderr b/tests/ui/suggestions/missing-bound-in-derive-copy-impl.stderr similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-derive-copy-impl.stderr rename to tests/ui/suggestions/missing-bound-in-derive-copy-impl.stderr diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl-2.fixed b/tests/ui/suggestions/missing-bound-in-manual-copy-impl-2.fixed similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-manual-copy-impl-2.fixed rename to tests/ui/suggestions/missing-bound-in-manual-copy-impl-2.fixed diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl-2.rs b/tests/ui/suggestions/missing-bound-in-manual-copy-impl-2.rs similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-manual-copy-impl-2.rs rename to tests/ui/suggestions/missing-bound-in-manual-copy-impl-2.rs diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl-2.stderr b/tests/ui/suggestions/missing-bound-in-manual-copy-impl-2.stderr similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-manual-copy-impl-2.stderr rename to tests/ui/suggestions/missing-bound-in-manual-copy-impl-2.stderr diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed b/tests/ui/suggestions/missing-bound-in-manual-copy-impl.fixed similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-manual-copy-impl.fixed rename to tests/ui/suggestions/missing-bound-in-manual-copy-impl.fixed diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl.rs b/tests/ui/suggestions/missing-bound-in-manual-copy-impl.rs similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-manual-copy-impl.rs rename to tests/ui/suggestions/missing-bound-in-manual-copy-impl.rs diff --git a/src/test/ui/suggestions/missing-bound-in-manual-copy-impl.stderr b/tests/ui/suggestions/missing-bound-in-manual-copy-impl.stderr similarity index 100% rename from src/test/ui/suggestions/missing-bound-in-manual-copy-impl.stderr rename to tests/ui/suggestions/missing-bound-in-manual-copy-impl.stderr diff --git a/src/test/ui/suggestions/missing-lifetime-in-assoc-const-type.rs b/tests/ui/suggestions/missing-lifetime-in-assoc-const-type.rs similarity index 100% rename from src/test/ui/suggestions/missing-lifetime-in-assoc-const-type.rs rename to tests/ui/suggestions/missing-lifetime-in-assoc-const-type.rs diff --git a/src/test/ui/suggestions/missing-lifetime-in-assoc-const-type.stderr b/tests/ui/suggestions/missing-lifetime-in-assoc-const-type.stderr similarity index 100% rename from src/test/ui/suggestions/missing-lifetime-in-assoc-const-type.stderr rename to tests/ui/suggestions/missing-lifetime-in-assoc-const-type.stderr diff --git a/src/test/ui/suggestions/missing-lifetime-specifier.rs b/tests/ui/suggestions/missing-lifetime-specifier.rs similarity index 100% rename from src/test/ui/suggestions/missing-lifetime-specifier.rs rename to tests/ui/suggestions/missing-lifetime-specifier.rs diff --git a/src/test/ui/suggestions/missing-lifetime-specifier.stderr b/tests/ui/suggestions/missing-lifetime-specifier.stderr similarity index 100% rename from src/test/ui/suggestions/missing-lifetime-specifier.stderr rename to tests/ui/suggestions/missing-lifetime-specifier.stderr diff --git a/src/test/ui/suggestions/missing-lt-for-hrtb.rs b/tests/ui/suggestions/missing-lt-for-hrtb.rs similarity index 100% rename from src/test/ui/suggestions/missing-lt-for-hrtb.rs rename to tests/ui/suggestions/missing-lt-for-hrtb.rs diff --git a/src/test/ui/suggestions/missing-lt-for-hrtb.stderr b/tests/ui/suggestions/missing-lt-for-hrtb.stderr similarity index 100% rename from src/test/ui/suggestions/missing-lt-for-hrtb.stderr rename to tests/ui/suggestions/missing-lt-for-hrtb.stderr diff --git a/src/test/ui/suggestions/missing-trait-item.fixed b/tests/ui/suggestions/missing-trait-item.fixed similarity index 100% rename from src/test/ui/suggestions/missing-trait-item.fixed rename to tests/ui/suggestions/missing-trait-item.fixed diff --git a/src/test/ui/suggestions/missing-trait-item.rs b/tests/ui/suggestions/missing-trait-item.rs similarity index 100% rename from src/test/ui/suggestions/missing-trait-item.rs rename to tests/ui/suggestions/missing-trait-item.rs diff --git a/src/test/ui/suggestions/missing-trait-item.stderr b/tests/ui/suggestions/missing-trait-item.stderr similarity index 100% rename from src/test/ui/suggestions/missing-trait-item.stderr rename to tests/ui/suggestions/missing-trait-item.stderr diff --git a/src/test/ui/suggestions/missing-type-param-used-in-param.fixed b/tests/ui/suggestions/missing-type-param-used-in-param.fixed similarity index 100% rename from src/test/ui/suggestions/missing-type-param-used-in-param.fixed rename to tests/ui/suggestions/missing-type-param-used-in-param.fixed diff --git a/src/test/ui/suggestions/missing-type-param-used-in-param.rs b/tests/ui/suggestions/missing-type-param-used-in-param.rs similarity index 100% rename from src/test/ui/suggestions/missing-type-param-used-in-param.rs rename to tests/ui/suggestions/missing-type-param-used-in-param.rs diff --git a/src/test/ui/suggestions/missing-type-param-used-in-param.stderr b/tests/ui/suggestions/missing-type-param-used-in-param.stderr similarity index 100% rename from src/test/ui/suggestions/missing-type-param-used-in-param.stderr rename to tests/ui/suggestions/missing-type-param-used-in-param.stderr diff --git a/src/test/ui/suggestions/move-generic-to-trait-in-method-with-params.rs b/tests/ui/suggestions/move-generic-to-trait-in-method-with-params.rs similarity index 100% rename from src/test/ui/suggestions/move-generic-to-trait-in-method-with-params.rs rename to tests/ui/suggestions/move-generic-to-trait-in-method-with-params.rs diff --git a/src/test/ui/suggestions/move-generic-to-trait-in-method-with-params.stderr b/tests/ui/suggestions/move-generic-to-trait-in-method-with-params.stderr similarity index 100% rename from src/test/ui/suggestions/move-generic-to-trait-in-method-with-params.stderr rename to tests/ui/suggestions/move-generic-to-trait-in-method-with-params.stderr diff --git a/src/test/ui/suggestions/multibyte-escapes.rs b/tests/ui/suggestions/multibyte-escapes.rs similarity index 100% rename from src/test/ui/suggestions/multibyte-escapes.rs rename to tests/ui/suggestions/multibyte-escapes.rs diff --git a/src/test/ui/suggestions/multibyte-escapes.stderr b/tests/ui/suggestions/multibyte-escapes.stderr similarity index 100% rename from src/test/ui/suggestions/multibyte-escapes.stderr rename to tests/ui/suggestions/multibyte-escapes.stderr diff --git a/src/test/ui/suggestions/mut-borrow-needed-by-trait.rs b/tests/ui/suggestions/mut-borrow-needed-by-trait.rs similarity index 100% rename from src/test/ui/suggestions/mut-borrow-needed-by-trait.rs rename to tests/ui/suggestions/mut-borrow-needed-by-trait.rs diff --git a/src/test/ui/suggestions/mut-borrow-needed-by-trait.stderr b/tests/ui/suggestions/mut-borrow-needed-by-trait.stderr similarity index 100% rename from src/test/ui/suggestions/mut-borrow-needed-by-trait.stderr rename to tests/ui/suggestions/mut-borrow-needed-by-trait.stderr diff --git a/src/test/ui/suggestions/mut-ref-reassignment.rs b/tests/ui/suggestions/mut-ref-reassignment.rs similarity index 100% rename from src/test/ui/suggestions/mut-ref-reassignment.rs rename to tests/ui/suggestions/mut-ref-reassignment.rs diff --git a/src/test/ui/suggestions/mut-ref-reassignment.stderr b/tests/ui/suggestions/mut-ref-reassignment.stderr similarity index 100% rename from src/test/ui/suggestions/mut-ref-reassignment.stderr rename to tests/ui/suggestions/mut-ref-reassignment.stderr diff --git a/src/test/ui/suggestions/negative-literal-index.fixed b/tests/ui/suggestions/negative-literal-index.fixed similarity index 100% rename from src/test/ui/suggestions/negative-literal-index.fixed rename to tests/ui/suggestions/negative-literal-index.fixed diff --git a/src/test/ui/suggestions/negative-literal-index.rs b/tests/ui/suggestions/negative-literal-index.rs similarity index 100% rename from src/test/ui/suggestions/negative-literal-index.rs rename to tests/ui/suggestions/negative-literal-index.rs diff --git a/src/test/ui/suggestions/negative-literal-index.stderr b/tests/ui/suggestions/negative-literal-index.stderr similarity index 100% rename from src/test/ui/suggestions/negative-literal-index.stderr rename to tests/ui/suggestions/negative-literal-index.stderr diff --git a/src/test/ui/suggestions/nested-non-tuple-tuple-struct.rs b/tests/ui/suggestions/nested-non-tuple-tuple-struct.rs similarity index 100% rename from src/test/ui/suggestions/nested-non-tuple-tuple-struct.rs rename to tests/ui/suggestions/nested-non-tuple-tuple-struct.rs diff --git a/src/test/ui/suggestions/nested-non-tuple-tuple-struct.stderr b/tests/ui/suggestions/nested-non-tuple-tuple-struct.stderr similarity index 100% rename from src/test/ui/suggestions/nested-non-tuple-tuple-struct.stderr rename to tests/ui/suggestions/nested-non-tuple-tuple-struct.stderr diff --git a/src/test/ui/suggestions/no-extern-crate-in-type.rs b/tests/ui/suggestions/no-extern-crate-in-type.rs similarity index 100% rename from src/test/ui/suggestions/no-extern-crate-in-type.rs rename to tests/ui/suggestions/no-extern-crate-in-type.rs diff --git a/src/test/ui/suggestions/no-extern-crate-in-type.stderr b/tests/ui/suggestions/no-extern-crate-in-type.stderr similarity index 100% rename from src/test/ui/suggestions/no-extern-crate-in-type.stderr rename to tests/ui/suggestions/no-extern-crate-in-type.stderr diff --git a/src/test/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.rs b/tests/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.rs similarity index 100% rename from src/test/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.rs rename to tests/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.rs diff --git a/src/test/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.stderr b/tests/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.stderr similarity index 100% rename from src/test/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.stderr rename to tests/ui/suggestions/non-existent-field-present-in-subfield-recursion-limit.stderr diff --git a/src/test/ui/suggestions/non-existent-field-present-in-subfield.fixed b/tests/ui/suggestions/non-existent-field-present-in-subfield.fixed similarity index 100% rename from src/test/ui/suggestions/non-existent-field-present-in-subfield.fixed rename to tests/ui/suggestions/non-existent-field-present-in-subfield.fixed diff --git a/src/test/ui/suggestions/non-existent-field-present-in-subfield.rs b/tests/ui/suggestions/non-existent-field-present-in-subfield.rs similarity index 100% rename from src/test/ui/suggestions/non-existent-field-present-in-subfield.rs rename to tests/ui/suggestions/non-existent-field-present-in-subfield.rs diff --git a/src/test/ui/suggestions/non-existent-field-present-in-subfield.stderr b/tests/ui/suggestions/non-existent-field-present-in-subfield.stderr similarity index 100% rename from src/test/ui/suggestions/non-existent-field-present-in-subfield.stderr rename to tests/ui/suggestions/non-existent-field-present-in-subfield.stderr diff --git a/src/test/ui/suggestions/object-unsafe-trait-references-self.rs b/tests/ui/suggestions/object-unsafe-trait-references-self.rs similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-references-self.rs rename to tests/ui/suggestions/object-unsafe-trait-references-self.rs diff --git a/src/test/ui/suggestions/object-unsafe-trait-references-self.stderr b/tests/ui/suggestions/object-unsafe-trait-references-self.stderr similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-references-self.stderr rename to tests/ui/suggestions/object-unsafe-trait-references-self.stderr diff --git a/src/test/ui/suggestions/object-unsafe-trait-should-use-self.rs b/tests/ui/suggestions/object-unsafe-trait-should-use-self.rs similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-should-use-self.rs rename to tests/ui/suggestions/object-unsafe-trait-should-use-self.rs diff --git a/src/test/ui/suggestions/object-unsafe-trait-should-use-self.stderr b/tests/ui/suggestions/object-unsafe-trait-should-use-self.stderr similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-should-use-self.stderr rename to tests/ui/suggestions/object-unsafe-trait-should-use-self.stderr diff --git a/src/test/ui/suggestions/object-unsafe-trait-should-use-where-sized.fixed b/tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.fixed similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-should-use-where-sized.fixed rename to tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.fixed diff --git a/src/test/ui/suggestions/object-unsafe-trait-should-use-where-sized.rs b/tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.rs similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-should-use-where-sized.rs rename to tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.rs diff --git a/src/test/ui/suggestions/object-unsafe-trait-should-use-where-sized.stderr b/tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.stderr similarity index 100% rename from src/test/ui/suggestions/object-unsafe-trait-should-use-where-sized.stderr rename to tests/ui/suggestions/object-unsafe-trait-should-use-where-sized.stderr diff --git a/src/test/ui/suggestions/opaque-type-error.rs b/tests/ui/suggestions/opaque-type-error.rs similarity index 100% rename from src/test/ui/suggestions/opaque-type-error.rs rename to tests/ui/suggestions/opaque-type-error.rs diff --git a/src/test/ui/suggestions/opaque-type-error.stderr b/tests/ui/suggestions/opaque-type-error.stderr similarity index 100% rename from src/test/ui/suggestions/opaque-type-error.stderr rename to tests/ui/suggestions/opaque-type-error.stderr diff --git a/src/test/ui/suggestions/option-content-move-from-tuple-match.rs b/tests/ui/suggestions/option-content-move-from-tuple-match.rs similarity index 100% rename from src/test/ui/suggestions/option-content-move-from-tuple-match.rs rename to tests/ui/suggestions/option-content-move-from-tuple-match.rs diff --git a/src/test/ui/suggestions/option-content-move-from-tuple-match.stderr b/tests/ui/suggestions/option-content-move-from-tuple-match.stderr similarity index 100% rename from src/test/ui/suggestions/option-content-move-from-tuple-match.stderr rename to tests/ui/suggestions/option-content-move-from-tuple-match.stderr diff --git a/src/test/ui/suggestions/option-content-move.rs b/tests/ui/suggestions/option-content-move.rs similarity index 100% rename from src/test/ui/suggestions/option-content-move.rs rename to tests/ui/suggestions/option-content-move.rs diff --git a/src/test/ui/suggestions/option-content-move.stderr b/tests/ui/suggestions/option-content-move.stderr similarity index 100% rename from src/test/ui/suggestions/option-content-move.stderr rename to tests/ui/suggestions/option-content-move.stderr diff --git a/src/test/ui/suggestions/option-content-move2.rs b/tests/ui/suggestions/option-content-move2.rs similarity index 100% rename from src/test/ui/suggestions/option-content-move2.rs rename to tests/ui/suggestions/option-content-move2.rs diff --git a/src/test/ui/suggestions/option-content-move2.stderr b/tests/ui/suggestions/option-content-move2.stderr similarity index 100% rename from src/test/ui/suggestions/option-content-move2.stderr rename to tests/ui/suggestions/option-content-move2.stderr diff --git a/src/test/ui/suggestions/option-to-bool.rs b/tests/ui/suggestions/option-to-bool.rs similarity index 100% rename from src/test/ui/suggestions/option-to-bool.rs rename to tests/ui/suggestions/option-to-bool.rs diff --git a/src/test/ui/suggestions/option-to-bool.stderr b/tests/ui/suggestions/option-to-bool.stderr similarity index 100% rename from src/test/ui/suggestions/option-to-bool.stderr rename to tests/ui/suggestions/option-to-bool.stderr diff --git a/src/test/ui/suggestions/parenthesized-deref-suggestion.rs b/tests/ui/suggestions/parenthesized-deref-suggestion.rs similarity index 100% rename from src/test/ui/suggestions/parenthesized-deref-suggestion.rs rename to tests/ui/suggestions/parenthesized-deref-suggestion.rs diff --git a/src/test/ui/suggestions/parenthesized-deref-suggestion.stderr b/tests/ui/suggestions/parenthesized-deref-suggestion.stderr similarity index 100% rename from src/test/ui/suggestions/parenthesized-deref-suggestion.stderr rename to tests/ui/suggestions/parenthesized-deref-suggestion.stderr diff --git a/src/test/ui/suggestions/path-by-value.rs b/tests/ui/suggestions/path-by-value.rs similarity index 100% rename from src/test/ui/suggestions/path-by-value.rs rename to tests/ui/suggestions/path-by-value.rs diff --git a/src/test/ui/suggestions/path-by-value.stderr b/tests/ui/suggestions/path-by-value.stderr similarity index 100% rename from src/test/ui/suggestions/path-by-value.stderr rename to tests/ui/suggestions/path-by-value.stderr diff --git a/src/test/ui/suggestions/path-display.rs b/tests/ui/suggestions/path-display.rs similarity index 100% rename from src/test/ui/suggestions/path-display.rs rename to tests/ui/suggestions/path-display.rs diff --git a/src/test/ui/suggestions/path-display.stderr b/tests/ui/suggestions/path-display.stderr similarity index 100% rename from src/test/ui/suggestions/path-display.stderr rename to tests/ui/suggestions/path-display.stderr diff --git a/src/test/ui/suggestions/pattern-slice-vec.fixed b/tests/ui/suggestions/pattern-slice-vec.fixed similarity index 100% rename from src/test/ui/suggestions/pattern-slice-vec.fixed rename to tests/ui/suggestions/pattern-slice-vec.fixed diff --git a/src/test/ui/suggestions/pattern-slice-vec.rs b/tests/ui/suggestions/pattern-slice-vec.rs similarity index 100% rename from src/test/ui/suggestions/pattern-slice-vec.rs rename to tests/ui/suggestions/pattern-slice-vec.rs diff --git a/src/test/ui/suggestions/pattern-slice-vec.stderr b/tests/ui/suggestions/pattern-slice-vec.stderr similarity index 100% rename from src/test/ui/suggestions/pattern-slice-vec.stderr rename to tests/ui/suggestions/pattern-slice-vec.stderr diff --git a/src/test/ui/suggestions/pattern-struct-with-slice-vec-field.rs b/tests/ui/suggestions/pattern-struct-with-slice-vec-field.rs similarity index 100% rename from src/test/ui/suggestions/pattern-struct-with-slice-vec-field.rs rename to tests/ui/suggestions/pattern-struct-with-slice-vec-field.rs diff --git a/src/test/ui/suggestions/pattern-struct-with-slice-vec-field.stderr b/tests/ui/suggestions/pattern-struct-with-slice-vec-field.stderr similarity index 100% rename from src/test/ui/suggestions/pattern-struct-with-slice-vec-field.stderr rename to tests/ui/suggestions/pattern-struct-with-slice-vec-field.stderr diff --git a/src/test/ui/suggestions/private-field.rs b/tests/ui/suggestions/private-field.rs similarity index 100% rename from src/test/ui/suggestions/private-field.rs rename to tests/ui/suggestions/private-field.rs diff --git a/src/test/ui/suggestions/private-field.stderr b/tests/ui/suggestions/private-field.stderr similarity index 100% rename from src/test/ui/suggestions/private-field.stderr rename to tests/ui/suggestions/private-field.stderr diff --git a/src/test/ui/suggestions/raw-byte-string-prefix.rs b/tests/ui/suggestions/raw-byte-string-prefix.rs similarity index 100% rename from src/test/ui/suggestions/raw-byte-string-prefix.rs rename to tests/ui/suggestions/raw-byte-string-prefix.rs diff --git a/src/test/ui/suggestions/raw-byte-string-prefix.stderr b/tests/ui/suggestions/raw-byte-string-prefix.stderr similarity index 100% rename from src/test/ui/suggestions/raw-byte-string-prefix.stderr rename to tests/ui/suggestions/raw-byte-string-prefix.stderr diff --git a/src/test/ui/suggestions/raw-name-use-suggestion.rs b/tests/ui/suggestions/raw-name-use-suggestion.rs similarity index 100% rename from src/test/ui/suggestions/raw-name-use-suggestion.rs rename to tests/ui/suggestions/raw-name-use-suggestion.rs diff --git a/src/test/ui/suggestions/raw-name-use-suggestion.stderr b/tests/ui/suggestions/raw-name-use-suggestion.stderr similarity index 100% rename from src/test/ui/suggestions/raw-name-use-suggestion.stderr rename to tests/ui/suggestions/raw-name-use-suggestion.stderr diff --git a/src/test/ui/suggestions/recover-from-semicolon-trailing-item.rs b/tests/ui/suggestions/recover-from-semicolon-trailing-item.rs similarity index 100% rename from src/test/ui/suggestions/recover-from-semicolon-trailing-item.rs rename to tests/ui/suggestions/recover-from-semicolon-trailing-item.rs diff --git a/src/test/ui/suggestions/recover-from-semicolon-trailing-item.stderr b/tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr similarity index 100% rename from src/test/ui/suggestions/recover-from-semicolon-trailing-item.stderr rename to tests/ui/suggestions/recover-from-semicolon-trailing-item.stderr diff --git a/src/test/ui/suggestions/recover-invalid-float.fixed b/tests/ui/suggestions/recover-invalid-float.fixed similarity index 100% rename from src/test/ui/suggestions/recover-invalid-float.fixed rename to tests/ui/suggestions/recover-invalid-float.fixed diff --git a/src/test/ui/suggestions/recover-invalid-float.rs b/tests/ui/suggestions/recover-invalid-float.rs similarity index 100% rename from src/test/ui/suggestions/recover-invalid-float.rs rename to tests/ui/suggestions/recover-invalid-float.rs diff --git a/src/test/ui/suggestions/recover-invalid-float.stderr b/tests/ui/suggestions/recover-invalid-float.stderr similarity index 100% rename from src/test/ui/suggestions/recover-invalid-float.stderr rename to tests/ui/suggestions/recover-invalid-float.stderr diff --git a/src/test/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.rs b/tests/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.rs similarity index 100% rename from src/test/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.rs rename to tests/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.rs diff --git a/src/test/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.stderr b/tests/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.stderr similarity index 100% rename from src/test/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.stderr rename to tests/ui/suggestions/recover-missing-turbofish-surrounding-angle-braket.stderr diff --git a/src/test/ui/suggestions/ref-pattern-binding.fixed b/tests/ui/suggestions/ref-pattern-binding.fixed similarity index 100% rename from src/test/ui/suggestions/ref-pattern-binding.fixed rename to tests/ui/suggestions/ref-pattern-binding.fixed diff --git a/src/test/ui/suggestions/ref-pattern-binding.rs b/tests/ui/suggestions/ref-pattern-binding.rs similarity index 100% rename from src/test/ui/suggestions/ref-pattern-binding.rs rename to tests/ui/suggestions/ref-pattern-binding.rs diff --git a/src/test/ui/suggestions/ref-pattern-binding.stderr b/tests/ui/suggestions/ref-pattern-binding.stderr similarity index 100% rename from src/test/ui/suggestions/ref-pattern-binding.stderr rename to tests/ui/suggestions/ref-pattern-binding.stderr diff --git a/src/test/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.rs b/tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.rs similarity index 100% rename from src/test/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.rs rename to tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.rs diff --git a/src/test/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.stderr b/tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.stderr similarity index 100% rename from src/test/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.stderr rename to tests/ui/suggestions/removal-of-multiline-trait-bound-in-where-clause.stderr diff --git a/src/test/ui/suggestions/remove-as_str.rs b/tests/ui/suggestions/remove-as_str.rs similarity index 100% rename from src/test/ui/suggestions/remove-as_str.rs rename to tests/ui/suggestions/remove-as_str.rs diff --git a/src/test/ui/suggestions/remove-as_str.stderr b/tests/ui/suggestions/remove-as_str.stderr similarity index 100% rename from src/test/ui/suggestions/remove-as_str.stderr rename to tests/ui/suggestions/remove-as_str.stderr diff --git a/src/test/ui/suggestions/restrict-type-argument.rs b/tests/ui/suggestions/restrict-type-argument.rs similarity index 100% rename from src/test/ui/suggestions/restrict-type-argument.rs rename to tests/ui/suggestions/restrict-type-argument.rs diff --git a/src/test/ui/suggestions/restrict-type-argument.stderr b/tests/ui/suggestions/restrict-type-argument.stderr similarity index 100% rename from src/test/ui/suggestions/restrict-type-argument.stderr rename to tests/ui/suggestions/restrict-type-argument.stderr diff --git a/src/test/ui/suggestions/restrict-type-not-param.rs b/tests/ui/suggestions/restrict-type-not-param.rs similarity index 100% rename from src/test/ui/suggestions/restrict-type-not-param.rs rename to tests/ui/suggestions/restrict-type-not-param.rs diff --git a/src/test/ui/suggestions/restrict-type-not-param.stderr b/tests/ui/suggestions/restrict-type-not-param.stderr similarity index 100% rename from src/test/ui/suggestions/restrict-type-not-param.stderr rename to tests/ui/suggestions/restrict-type-not-param.stderr diff --git a/src/test/ui/suggestions/return-bindings-multi.rs b/tests/ui/suggestions/return-bindings-multi.rs similarity index 100% rename from src/test/ui/suggestions/return-bindings-multi.rs rename to tests/ui/suggestions/return-bindings-multi.rs diff --git a/src/test/ui/suggestions/return-bindings-multi.stderr b/tests/ui/suggestions/return-bindings-multi.stderr similarity index 100% rename from src/test/ui/suggestions/return-bindings-multi.stderr rename to tests/ui/suggestions/return-bindings-multi.stderr diff --git a/src/test/ui/suggestions/return-bindings.rs b/tests/ui/suggestions/return-bindings.rs similarity index 100% rename from src/test/ui/suggestions/return-bindings.rs rename to tests/ui/suggestions/return-bindings.rs diff --git a/src/test/ui/suggestions/return-bindings.stderr b/tests/ui/suggestions/return-bindings.stderr similarity index 100% rename from src/test/ui/suggestions/return-bindings.stderr rename to tests/ui/suggestions/return-bindings.stderr diff --git a/src/test/ui/suggestions/return-closures.rs b/tests/ui/suggestions/return-closures.rs similarity index 100% rename from src/test/ui/suggestions/return-closures.rs rename to tests/ui/suggestions/return-closures.rs diff --git a/src/test/ui/suggestions/return-closures.stderr b/tests/ui/suggestions/return-closures.stderr similarity index 100% rename from src/test/ui/suggestions/return-closures.stderr rename to tests/ui/suggestions/return-closures.stderr diff --git a/src/test/ui/suggestions/return-cycle-2.rs b/tests/ui/suggestions/return-cycle-2.rs similarity index 100% rename from src/test/ui/suggestions/return-cycle-2.rs rename to tests/ui/suggestions/return-cycle-2.rs diff --git a/src/test/ui/suggestions/return-cycle-2.stderr b/tests/ui/suggestions/return-cycle-2.stderr similarity index 100% rename from src/test/ui/suggestions/return-cycle-2.stderr rename to tests/ui/suggestions/return-cycle-2.stderr diff --git a/src/test/ui/suggestions/return-cycle.rs b/tests/ui/suggestions/return-cycle.rs similarity index 100% rename from src/test/ui/suggestions/return-cycle.rs rename to tests/ui/suggestions/return-cycle.rs diff --git a/src/test/ui/suggestions/return-cycle.stderr b/tests/ui/suggestions/return-cycle.stderr similarity index 100% rename from src/test/ui/suggestions/return-cycle.stderr rename to tests/ui/suggestions/return-cycle.stderr diff --git a/src/test/ui/suggestions/return-elided-lifetime.rs b/tests/ui/suggestions/return-elided-lifetime.rs similarity index 100% rename from src/test/ui/suggestions/return-elided-lifetime.rs rename to tests/ui/suggestions/return-elided-lifetime.rs diff --git a/src/test/ui/suggestions/return-elided-lifetime.stderr b/tests/ui/suggestions/return-elided-lifetime.stderr similarity index 100% rename from src/test/ui/suggestions/return-elided-lifetime.stderr rename to tests/ui/suggestions/return-elided-lifetime.stderr diff --git a/src/test/ui/suggestions/return-without-lifetime.rs b/tests/ui/suggestions/return-without-lifetime.rs similarity index 100% rename from src/test/ui/suggestions/return-without-lifetime.rs rename to tests/ui/suggestions/return-without-lifetime.rs diff --git a/src/test/ui/suggestions/return-without-lifetime.stderr b/tests/ui/suggestions/return-without-lifetime.stderr similarity index 100% rename from src/test/ui/suggestions/return-without-lifetime.stderr rename to tests/ui/suggestions/return-without-lifetime.stderr diff --git a/src/test/ui/suggestions/shadowed-lplace-method-2.rs b/tests/ui/suggestions/shadowed-lplace-method-2.rs similarity index 100% rename from src/test/ui/suggestions/shadowed-lplace-method-2.rs rename to tests/ui/suggestions/shadowed-lplace-method-2.rs diff --git a/src/test/ui/suggestions/shadowed-lplace-method-2.stderr b/tests/ui/suggestions/shadowed-lplace-method-2.stderr similarity index 100% rename from src/test/ui/suggestions/shadowed-lplace-method-2.stderr rename to tests/ui/suggestions/shadowed-lplace-method-2.stderr diff --git a/src/test/ui/suggestions/shadowed-lplace-method.fixed b/tests/ui/suggestions/shadowed-lplace-method.fixed similarity index 100% rename from src/test/ui/suggestions/shadowed-lplace-method.fixed rename to tests/ui/suggestions/shadowed-lplace-method.fixed diff --git a/src/test/ui/suggestions/shadowed-lplace-method.rs b/tests/ui/suggestions/shadowed-lplace-method.rs similarity index 100% rename from src/test/ui/suggestions/shadowed-lplace-method.rs rename to tests/ui/suggestions/shadowed-lplace-method.rs diff --git a/src/test/ui/suggestions/shadowed-lplace-method.stderr b/tests/ui/suggestions/shadowed-lplace-method.stderr similarity index 100% rename from src/test/ui/suggestions/shadowed-lplace-method.stderr rename to tests/ui/suggestions/shadowed-lplace-method.stderr diff --git a/src/test/ui/suggestions/slice-issue-87994.rs b/tests/ui/suggestions/slice-issue-87994.rs similarity index 100% rename from src/test/ui/suggestions/slice-issue-87994.rs rename to tests/ui/suggestions/slice-issue-87994.rs diff --git a/src/test/ui/suggestions/slice-issue-87994.stderr b/tests/ui/suggestions/slice-issue-87994.stderr similarity index 100% rename from src/test/ui/suggestions/slice-issue-87994.stderr rename to tests/ui/suggestions/slice-issue-87994.stderr diff --git a/src/test/ui/suggestions/struct-field-type-including-single-colon.rs b/tests/ui/suggestions/struct-field-type-including-single-colon.rs similarity index 100% rename from src/test/ui/suggestions/struct-field-type-including-single-colon.rs rename to tests/ui/suggestions/struct-field-type-including-single-colon.rs diff --git a/src/test/ui/suggestions/struct-field-type-including-single-colon.stderr b/tests/ui/suggestions/struct-field-type-including-single-colon.stderr similarity index 100% rename from src/test/ui/suggestions/struct-field-type-including-single-colon.stderr rename to tests/ui/suggestions/struct-field-type-including-single-colon.stderr diff --git a/src/test/ui/suggestions/struct-initializer-comma.fixed b/tests/ui/suggestions/struct-initializer-comma.fixed similarity index 100% rename from src/test/ui/suggestions/struct-initializer-comma.fixed rename to tests/ui/suggestions/struct-initializer-comma.fixed diff --git a/src/test/ui/suggestions/struct-initializer-comma.rs b/tests/ui/suggestions/struct-initializer-comma.rs similarity index 100% rename from src/test/ui/suggestions/struct-initializer-comma.rs rename to tests/ui/suggestions/struct-initializer-comma.rs diff --git a/src/test/ui/suggestions/struct-initializer-comma.stderr b/tests/ui/suggestions/struct-initializer-comma.stderr similarity index 100% rename from src/test/ui/suggestions/struct-initializer-comma.stderr rename to tests/ui/suggestions/struct-initializer-comma.stderr diff --git a/src/test/ui/suggestions/sugg-else-for-closure.fixed b/tests/ui/suggestions/sugg-else-for-closure.fixed similarity index 100% rename from src/test/ui/suggestions/sugg-else-for-closure.fixed rename to tests/ui/suggestions/sugg-else-for-closure.fixed diff --git a/src/test/ui/suggestions/sugg-else-for-closure.rs b/tests/ui/suggestions/sugg-else-for-closure.rs similarity index 100% rename from src/test/ui/suggestions/sugg-else-for-closure.rs rename to tests/ui/suggestions/sugg-else-for-closure.rs diff --git a/src/test/ui/suggestions/sugg-else-for-closure.stderr b/tests/ui/suggestions/sugg-else-for-closure.stderr similarity index 100% rename from src/test/ui/suggestions/sugg-else-for-closure.stderr rename to tests/ui/suggestions/sugg-else-for-closure.stderr diff --git a/src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs b/tests/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs similarity index 100% rename from src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs rename to tests/ui/suggestions/sugg_with_positional_args_and_debug_fmt.rs diff --git a/src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.stderr b/tests/ui/suggestions/sugg_with_positional_args_and_debug_fmt.stderr similarity index 100% rename from src/test/ui/suggestions/sugg_with_positional_args_and_debug_fmt.stderr rename to tests/ui/suggestions/sugg_with_positional_args_and_debug_fmt.stderr diff --git a/src/test/ui/suggestions/suggest-add-self.rs b/tests/ui/suggestions/suggest-add-self.rs similarity index 100% rename from src/test/ui/suggestions/suggest-add-self.rs rename to tests/ui/suggestions/suggest-add-self.rs diff --git a/src/test/ui/suggestions/suggest-add-self.stderr b/tests/ui/suggestions/suggest-add-self.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-add-self.stderr rename to tests/ui/suggestions/suggest-add-self.stderr diff --git a/src/test/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.fixed b/tests/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.fixed rename to tests/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.fixed diff --git a/src/test/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.rs b/tests/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.rs similarity index 100% rename from src/test/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.rs rename to tests/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.rs diff --git a/src/test/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.stderr b/tests/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.stderr rename to tests/ui/suggestions/suggest-adding-reference-to-trait-assoc-item.stderr diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-deref.fixed b/tests/ui/suggestions/suggest-assoc-fn-call-deref.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-deref.fixed rename to tests/ui/suggestions/suggest-assoc-fn-call-deref.fixed diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-deref.rs b/tests/ui/suggestions/suggest-assoc-fn-call-deref.rs similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-deref.rs rename to tests/ui/suggestions/suggest-assoc-fn-call-deref.rs diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-deref.stderr b/tests/ui/suggestions/suggest-assoc-fn-call-deref.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-deref.stderr rename to tests/ui/suggestions/suggest-assoc-fn-call-deref.stderr diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.rs b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.rs similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.rs rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.rs diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.stderr b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.stderr rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.stderr diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.rs diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.stderr b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.stderr rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-through-deref.stderr diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.fixed b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.fixed rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish.fixed diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.rs b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish.rs similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.rs rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish.rs diff --git a/src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.stderr b/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.stderr rename to tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish.stderr diff --git a/src/test/ui/suggestions/suggest-blanket-impl-local-trait.rs b/tests/ui/suggestions/suggest-blanket-impl-local-trait.rs similarity index 100% rename from src/test/ui/suggestions/suggest-blanket-impl-local-trait.rs rename to tests/ui/suggestions/suggest-blanket-impl-local-trait.rs diff --git a/src/test/ui/suggestions/suggest-blanket-impl-local-trait.stderr b/tests/ui/suggestions/suggest-blanket-impl-local-trait.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-blanket-impl-local-trait.stderr rename to tests/ui/suggestions/suggest-blanket-impl-local-trait.stderr diff --git a/src/test/ui/suggestions/suggest-borrow-to-dyn-object.rs b/tests/ui/suggestions/suggest-borrow-to-dyn-object.rs similarity index 100% rename from src/test/ui/suggestions/suggest-borrow-to-dyn-object.rs rename to tests/ui/suggestions/suggest-borrow-to-dyn-object.rs diff --git a/src/test/ui/suggestions/suggest-borrow-to-dyn-object.stderr b/tests/ui/suggestions/suggest-borrow-to-dyn-object.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-borrow-to-dyn-object.stderr rename to tests/ui/suggestions/suggest-borrow-to-dyn-object.stderr diff --git a/src/test/ui/suggestions/suggest-box.fixed b/tests/ui/suggestions/suggest-box.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-box.fixed rename to tests/ui/suggestions/suggest-box.fixed diff --git a/src/test/ui/suggestions/suggest-box.rs b/tests/ui/suggestions/suggest-box.rs similarity index 100% rename from src/test/ui/suggestions/suggest-box.rs rename to tests/ui/suggestions/suggest-box.rs diff --git a/src/test/ui/suggestions/suggest-box.stderr b/tests/ui/suggestions/suggest-box.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-box.stderr rename to tests/ui/suggestions/suggest-box.stderr diff --git a/src/test/ui/suggestions/suggest-change-mut.rs b/tests/ui/suggestions/suggest-change-mut.rs similarity index 100% rename from src/test/ui/suggestions/suggest-change-mut.rs rename to tests/ui/suggestions/suggest-change-mut.rs diff --git a/src/test/ui/suggestions/suggest-change-mut.stderr b/tests/ui/suggestions/suggest-change-mut.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-change-mut.stderr rename to tests/ui/suggestions/suggest-change-mut.stderr diff --git a/src/test/ui/suggestions/suggest-closure-return-type-1.rs b/tests/ui/suggestions/suggest-closure-return-type-1.rs similarity index 100% rename from src/test/ui/suggestions/suggest-closure-return-type-1.rs rename to tests/ui/suggestions/suggest-closure-return-type-1.rs diff --git a/src/test/ui/suggestions/suggest-closure-return-type-1.stderr b/tests/ui/suggestions/suggest-closure-return-type-1.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-closure-return-type-1.stderr rename to tests/ui/suggestions/suggest-closure-return-type-1.stderr diff --git a/src/test/ui/suggestions/suggest-closure-return-type-2.rs b/tests/ui/suggestions/suggest-closure-return-type-2.rs similarity index 100% rename from src/test/ui/suggestions/suggest-closure-return-type-2.rs rename to tests/ui/suggestions/suggest-closure-return-type-2.rs diff --git a/src/test/ui/suggestions/suggest-closure-return-type-2.stderr b/tests/ui/suggestions/suggest-closure-return-type-2.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-closure-return-type-2.stderr rename to tests/ui/suggestions/suggest-closure-return-type-2.stderr diff --git a/src/test/ui/suggestions/suggest-closure-return-type-3.rs b/tests/ui/suggestions/suggest-closure-return-type-3.rs similarity index 100% rename from src/test/ui/suggestions/suggest-closure-return-type-3.rs rename to tests/ui/suggestions/suggest-closure-return-type-3.rs diff --git a/src/test/ui/suggestions/suggest-closure-return-type-3.stderr b/tests/ui/suggestions/suggest-closure-return-type-3.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-closure-return-type-3.stderr rename to tests/ui/suggestions/suggest-closure-return-type-3.stderr diff --git a/src/test/ui/suggestions/suggest-dereferencing-index.fixed b/tests/ui/suggestions/suggest-dereferencing-index.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-dereferencing-index.fixed rename to tests/ui/suggestions/suggest-dereferencing-index.fixed diff --git a/src/test/ui/suggestions/suggest-dereferencing-index.rs b/tests/ui/suggestions/suggest-dereferencing-index.rs similarity index 100% rename from src/test/ui/suggestions/suggest-dereferencing-index.rs rename to tests/ui/suggestions/suggest-dereferencing-index.rs diff --git a/src/test/ui/suggestions/suggest-dereferencing-index.stderr b/tests/ui/suggestions/suggest-dereferencing-index.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-dereferencing-index.stderr rename to tests/ui/suggestions/suggest-dereferencing-index.stderr diff --git a/src/test/ui/suggestions/suggest-full-enum-variant-for-local-module.rs b/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs similarity index 100% rename from src/test/ui/suggestions/suggest-full-enum-variant-for-local-module.rs rename to tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs diff --git a/src/test/ui/suggestions/suggest-full-enum-variant-for-local-module.stderr b/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-full-enum-variant-for-local-module.stderr rename to tests/ui/suggestions/suggest-full-enum-variant-for-local-module.stderr diff --git a/src/test/ui/suggestions/suggest-imm-mut-trait-implementations.rs b/tests/ui/suggestions/suggest-imm-mut-trait-implementations.rs similarity index 100% rename from src/test/ui/suggestions/suggest-imm-mut-trait-implementations.rs rename to tests/ui/suggestions/suggest-imm-mut-trait-implementations.rs diff --git a/src/test/ui/suggestions/suggest-imm-mut-trait-implementations.stderr b/tests/ui/suggestions/suggest-imm-mut-trait-implementations.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-imm-mut-trait-implementations.stderr rename to tests/ui/suggestions/suggest-imm-mut-trait-implementations.stderr diff --git a/src/test/ui/suggestions/suggest-impl-trait-lifetime.fixed b/tests/ui/suggestions/suggest-impl-trait-lifetime.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-impl-trait-lifetime.fixed rename to tests/ui/suggestions/suggest-impl-trait-lifetime.fixed diff --git a/src/test/ui/suggestions/suggest-impl-trait-lifetime.rs b/tests/ui/suggestions/suggest-impl-trait-lifetime.rs similarity index 100% rename from src/test/ui/suggestions/suggest-impl-trait-lifetime.rs rename to tests/ui/suggestions/suggest-impl-trait-lifetime.rs diff --git a/src/test/ui/suggestions/suggest-impl-trait-lifetime.stderr b/tests/ui/suggestions/suggest-impl-trait-lifetime.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-impl-trait-lifetime.stderr rename to tests/ui/suggestions/suggest-impl-trait-lifetime.stderr diff --git a/src/test/ui/suggestions/suggest-labels.rs b/tests/ui/suggestions/suggest-labels.rs similarity index 100% rename from src/test/ui/suggestions/suggest-labels.rs rename to tests/ui/suggestions/suggest-labels.rs diff --git a/src/test/ui/suggestions/suggest-labels.stderr b/tests/ui/suggestions/suggest-labels.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-labels.stderr rename to tests/ui/suggestions/suggest-labels.stderr diff --git a/src/test/ui/suggestions/suggest-let-for-assignment.fixed b/tests/ui/suggestions/suggest-let-for-assignment.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-let-for-assignment.fixed rename to tests/ui/suggestions/suggest-let-for-assignment.fixed diff --git a/src/test/ui/suggestions/suggest-let-for-assignment.rs b/tests/ui/suggestions/suggest-let-for-assignment.rs similarity index 100% rename from src/test/ui/suggestions/suggest-let-for-assignment.rs rename to tests/ui/suggestions/suggest-let-for-assignment.rs diff --git a/src/test/ui/suggestions/suggest-let-for-assignment.stderr b/tests/ui/suggestions/suggest-let-for-assignment.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-let-for-assignment.stderr rename to tests/ui/suggestions/suggest-let-for-assignment.stderr diff --git a/src/test/ui/suggestions/suggest-methods.rs b/tests/ui/suggestions/suggest-methods.rs similarity index 100% rename from src/test/ui/suggestions/suggest-methods.rs rename to tests/ui/suggestions/suggest-methods.rs diff --git a/src/test/ui/suggestions/suggest-methods.stderr b/tests/ui/suggestions/suggest-methods.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-methods.stderr rename to tests/ui/suggestions/suggest-methods.stderr diff --git a/src/test/ui/suggestions/suggest-move-lifetimes.rs b/tests/ui/suggestions/suggest-move-lifetimes.rs similarity index 100% rename from src/test/ui/suggestions/suggest-move-lifetimes.rs rename to tests/ui/suggestions/suggest-move-lifetimes.rs diff --git a/src/test/ui/suggestions/suggest-move-lifetimes.stderr b/tests/ui/suggestions/suggest-move-lifetimes.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-move-lifetimes.stderr rename to tests/ui/suggestions/suggest-move-lifetimes.stderr diff --git a/src/test/ui/suggestions/suggest-move-types.rs b/tests/ui/suggestions/suggest-move-types.rs similarity index 100% rename from src/test/ui/suggestions/suggest-move-types.rs rename to tests/ui/suggestions/suggest-move-types.rs diff --git a/src/test/ui/suggestions/suggest-move-types.stderr b/tests/ui/suggestions/suggest-move-types.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-move-types.stderr rename to tests/ui/suggestions/suggest-move-types.stderr diff --git a/src/test/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed b/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed rename to tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.fixed diff --git a/src/test/ui/suggestions/suggest-mut-method-for-loop-hashmap.rs b/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.rs similarity index 100% rename from src/test/ui/suggestions/suggest-mut-method-for-loop-hashmap.rs rename to tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.rs diff --git a/src/test/ui/suggestions/suggest-mut-method-for-loop-hashmap.stderr b/tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-mut-method-for-loop-hashmap.stderr rename to tests/ui/suggestions/suggest-mut-method-for-loop-hashmap.stderr diff --git a/src/test/ui/suggestions/suggest-mut-method-for-loop.rs b/tests/ui/suggestions/suggest-mut-method-for-loop.rs similarity index 100% rename from src/test/ui/suggestions/suggest-mut-method-for-loop.rs rename to tests/ui/suggestions/suggest-mut-method-for-loop.rs diff --git a/src/test/ui/suggestions/suggest-mut-method-for-loop.stderr b/tests/ui/suggestions/suggest-mut-method-for-loop.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-mut-method-for-loop.stderr rename to tests/ui/suggestions/suggest-mut-method-for-loop.stderr diff --git a/src/test/ui/suggestions/suggest-on-bare-closure-call.rs b/tests/ui/suggestions/suggest-on-bare-closure-call.rs similarity index 100% rename from src/test/ui/suggestions/suggest-on-bare-closure-call.rs rename to tests/ui/suggestions/suggest-on-bare-closure-call.rs diff --git a/src/test/ui/suggestions/suggest-on-bare-closure-call.stderr b/tests/ui/suggestions/suggest-on-bare-closure-call.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-on-bare-closure-call.stderr rename to tests/ui/suggestions/suggest-on-bare-closure-call.stderr diff --git a/src/test/ui/suggestions/suggest-ref-macro.rs b/tests/ui/suggestions/suggest-ref-macro.rs similarity index 100% rename from src/test/ui/suggestions/suggest-ref-macro.rs rename to tests/ui/suggestions/suggest-ref-macro.rs diff --git a/src/test/ui/suggestions/suggest-ref-macro.stderr b/tests/ui/suggestions/suggest-ref-macro.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-ref-macro.stderr rename to tests/ui/suggestions/suggest-ref-macro.stderr diff --git a/src/test/ui/suggestions/suggest-ref-mut.rs b/tests/ui/suggestions/suggest-ref-mut.rs similarity index 100% rename from src/test/ui/suggestions/suggest-ref-mut.rs rename to tests/ui/suggestions/suggest-ref-mut.rs diff --git a/src/test/ui/suggestions/suggest-ref-mut.stderr b/tests/ui/suggestions/suggest-ref-mut.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-ref-mut.stderr rename to tests/ui/suggestions/suggest-ref-mut.stderr diff --git a/src/test/ui/suggestions/suggest-remove-refs-1.fixed b/tests/ui/suggestions/suggest-remove-refs-1.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-1.fixed rename to tests/ui/suggestions/suggest-remove-refs-1.fixed diff --git a/src/test/ui/suggestions/suggest-remove-refs-1.rs b/tests/ui/suggestions/suggest-remove-refs-1.rs similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-1.rs rename to tests/ui/suggestions/suggest-remove-refs-1.rs diff --git a/src/test/ui/suggestions/suggest-remove-refs-1.stderr b/tests/ui/suggestions/suggest-remove-refs-1.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-1.stderr rename to tests/ui/suggestions/suggest-remove-refs-1.stderr diff --git a/src/test/ui/suggestions/suggest-remove-refs-2.fixed b/tests/ui/suggestions/suggest-remove-refs-2.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-2.fixed rename to tests/ui/suggestions/suggest-remove-refs-2.fixed diff --git a/src/test/ui/suggestions/suggest-remove-refs-2.rs b/tests/ui/suggestions/suggest-remove-refs-2.rs similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-2.rs rename to tests/ui/suggestions/suggest-remove-refs-2.rs diff --git a/src/test/ui/suggestions/suggest-remove-refs-2.stderr b/tests/ui/suggestions/suggest-remove-refs-2.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-2.stderr rename to tests/ui/suggestions/suggest-remove-refs-2.stderr diff --git a/src/test/ui/suggestions/suggest-remove-refs-3.fixed b/tests/ui/suggestions/suggest-remove-refs-3.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-3.fixed rename to tests/ui/suggestions/suggest-remove-refs-3.fixed diff --git a/src/test/ui/suggestions/suggest-remove-refs-3.rs b/tests/ui/suggestions/suggest-remove-refs-3.rs similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-3.rs rename to tests/ui/suggestions/suggest-remove-refs-3.rs diff --git a/src/test/ui/suggestions/suggest-remove-refs-3.stderr b/tests/ui/suggestions/suggest-remove-refs-3.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-remove-refs-3.stderr rename to tests/ui/suggestions/suggest-remove-refs-3.stderr diff --git a/src/test/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.fixed b/tests/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.fixed rename to tests/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.fixed diff --git a/src/test/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.rs b/tests/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.rs similarity index 100% rename from src/test/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.rs rename to tests/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.rs diff --git a/src/test/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.stderr b/tests/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.stderr rename to tests/ui/suggestions/suggest-semicolon-for-fn-in-extern-block.stderr diff --git a/src/test/ui/suggestions/suggest-split-at-mut.rs b/tests/ui/suggestions/suggest-split-at-mut.rs similarity index 100% rename from src/test/ui/suggestions/suggest-split-at-mut.rs rename to tests/ui/suggestions/suggest-split-at-mut.rs diff --git a/src/test/ui/suggestions/suggest-split-at-mut.stderr b/tests/ui/suggestions/suggest-split-at-mut.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-split-at-mut.stderr rename to tests/ui/suggestions/suggest-split-at-mut.stderr diff --git a/src/test/ui/suggestions/suggest-std-when-using-type.fixed b/tests/ui/suggestions/suggest-std-when-using-type.fixed similarity index 100% rename from src/test/ui/suggestions/suggest-std-when-using-type.fixed rename to tests/ui/suggestions/suggest-std-when-using-type.fixed diff --git a/src/test/ui/suggestions/suggest-std-when-using-type.rs b/tests/ui/suggestions/suggest-std-when-using-type.rs similarity index 100% rename from src/test/ui/suggestions/suggest-std-when-using-type.rs rename to tests/ui/suggestions/suggest-std-when-using-type.rs diff --git a/src/test/ui/suggestions/suggest-std-when-using-type.stderr b/tests/ui/suggestions/suggest-std-when-using-type.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-std-when-using-type.stderr rename to tests/ui/suggestions/suggest-std-when-using-type.stderr diff --git a/src/test/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.rs b/tests/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.rs similarity index 100% rename from src/test/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.rs rename to tests/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.rs diff --git a/src/test/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.stderr b/tests/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.stderr rename to tests/ui/suggestions/suggest-swapping-self-ty-and-trait-edition-2021.stderr diff --git a/src/test/ui/suggestions/suggest-swapping-self-ty-and-trait.rs b/tests/ui/suggestions/suggest-swapping-self-ty-and-trait.rs similarity index 100% rename from src/test/ui/suggestions/suggest-swapping-self-ty-and-trait.rs rename to tests/ui/suggestions/suggest-swapping-self-ty-and-trait.rs diff --git a/src/test/ui/suggestions/suggest-swapping-self-ty-and-trait.stderr b/tests/ui/suggestions/suggest-swapping-self-ty-and-trait.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-swapping-self-ty-and-trait.stderr rename to tests/ui/suggestions/suggest-swapping-self-ty-and-trait.stderr diff --git a/src/test/ui/suggestions/suggest-trait-items.rs b/tests/ui/suggestions/suggest-trait-items.rs similarity index 100% rename from src/test/ui/suggestions/suggest-trait-items.rs rename to tests/ui/suggestions/suggest-trait-items.rs diff --git a/src/test/ui/suggestions/suggest-trait-items.stderr b/tests/ui/suggestions/suggest-trait-items.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-trait-items.stderr rename to tests/ui/suggestions/suggest-trait-items.stderr diff --git a/src/test/ui/suggestions/suggest-tryinto-edition-change.rs b/tests/ui/suggestions/suggest-tryinto-edition-change.rs similarity index 100% rename from src/test/ui/suggestions/suggest-tryinto-edition-change.rs rename to tests/ui/suggestions/suggest-tryinto-edition-change.rs diff --git a/src/test/ui/suggestions/suggest-tryinto-edition-change.stderr b/tests/ui/suggestions/suggest-tryinto-edition-change.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-tryinto-edition-change.stderr rename to tests/ui/suggestions/suggest-tryinto-edition-change.stderr diff --git a/src/test/ui/suggestions/suggest-using-chars.rs b/tests/ui/suggestions/suggest-using-chars.rs similarity index 100% rename from src/test/ui/suggestions/suggest-using-chars.rs rename to tests/ui/suggestions/suggest-using-chars.rs diff --git a/src/test/ui/suggestions/suggest-using-chars.stderr b/tests/ui/suggestions/suggest-using-chars.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-using-chars.stderr rename to tests/ui/suggestions/suggest-using-chars.stderr diff --git a/src/test/ui/suggestions/suggest-variants.rs b/tests/ui/suggestions/suggest-variants.rs similarity index 100% rename from src/test/ui/suggestions/suggest-variants.rs rename to tests/ui/suggestions/suggest-variants.rs diff --git a/src/test/ui/suggestions/suggest-variants.stderr b/tests/ui/suggestions/suggest-variants.stderr similarity index 100% rename from src/test/ui/suggestions/suggest-variants.stderr rename to tests/ui/suggestions/suggest-variants.stderr diff --git a/src/test/ui/suggestions/suggest_print_over_printf.rs b/tests/ui/suggestions/suggest_print_over_printf.rs similarity index 100% rename from src/test/ui/suggestions/suggest_print_over_printf.rs rename to tests/ui/suggestions/suggest_print_over_printf.rs diff --git a/src/test/ui/suggestions/suggest_print_over_printf.stderr b/tests/ui/suggestions/suggest_print_over_printf.stderr similarity index 100% rename from src/test/ui/suggestions/suggest_print_over_printf.stderr rename to tests/ui/suggestions/suggest_print_over_printf.stderr diff --git a/src/test/ui/suggestions/too-many-field-suggestions.rs b/tests/ui/suggestions/too-many-field-suggestions.rs similarity index 100% rename from src/test/ui/suggestions/too-many-field-suggestions.rs rename to tests/ui/suggestions/too-many-field-suggestions.rs diff --git a/src/test/ui/suggestions/too-many-field-suggestions.stderr b/tests/ui/suggestions/too-many-field-suggestions.stderr similarity index 100% rename from src/test/ui/suggestions/too-many-field-suggestions.stderr rename to tests/ui/suggestions/too-many-field-suggestions.stderr diff --git a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.fixed b/tests/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.fixed similarity index 100% rename from src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.fixed rename to tests/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.fixed diff --git a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.rs b/tests/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.rs similarity index 100% rename from src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.rs rename to tests/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.rs diff --git a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr b/tests/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr similarity index 100% rename from src/test/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr rename to tests/ui/suggestions/trait-with-missing-associated-type-restriction-fixable.stderr diff --git a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction.rs b/tests/ui/suggestions/trait-with-missing-associated-type-restriction.rs similarity index 100% rename from src/test/ui/suggestions/trait-with-missing-associated-type-restriction.rs rename to tests/ui/suggestions/trait-with-missing-associated-type-restriction.rs diff --git a/src/test/ui/suggestions/trait-with-missing-associated-type-restriction.stderr b/tests/ui/suggestions/trait-with-missing-associated-type-restriction.stderr similarity index 100% rename from src/test/ui/suggestions/trait-with-missing-associated-type-restriction.stderr rename to tests/ui/suggestions/trait-with-missing-associated-type-restriction.stderr diff --git a/src/test/ui/suggestions/try-operator-dont-suggest-semicolon.rs b/tests/ui/suggestions/try-operator-dont-suggest-semicolon.rs similarity index 100% rename from src/test/ui/suggestions/try-operator-dont-suggest-semicolon.rs rename to tests/ui/suggestions/try-operator-dont-suggest-semicolon.rs diff --git a/src/test/ui/suggestions/try-operator-dont-suggest-semicolon.stderr b/tests/ui/suggestions/try-operator-dont-suggest-semicolon.stderr similarity index 100% rename from src/test/ui/suggestions/try-operator-dont-suggest-semicolon.stderr rename to tests/ui/suggestions/try-operator-dont-suggest-semicolon.stderr diff --git a/src/test/ui/suggestions/try-removing-the-field.rs b/tests/ui/suggestions/try-removing-the-field.rs similarity index 100% rename from src/test/ui/suggestions/try-removing-the-field.rs rename to tests/ui/suggestions/try-removing-the-field.rs diff --git a/src/test/ui/suggestions/try-removing-the-field.stderr b/tests/ui/suggestions/try-removing-the-field.stderr similarity index 100% rename from src/test/ui/suggestions/try-removing-the-field.stderr rename to tests/ui/suggestions/try-removing-the-field.stderr diff --git a/src/test/ui/suggestions/type-ascription-and-other-error.rs b/tests/ui/suggestions/type-ascription-and-other-error.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-and-other-error.rs rename to tests/ui/suggestions/type-ascription-and-other-error.rs diff --git a/src/test/ui/suggestions/type-ascription-and-other-error.stderr b/tests/ui/suggestions/type-ascription-and-other-error.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-and-other-error.stderr rename to tests/ui/suggestions/type-ascription-and-other-error.stderr diff --git a/src/test/ui/suggestions/type-ascription-instead-of-let.rs b/tests/ui/suggestions/type-ascription-instead-of-let.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-let.rs rename to tests/ui/suggestions/type-ascription-instead-of-let.rs diff --git a/src/test/ui/suggestions/type-ascription-instead-of-let.stderr b/tests/ui/suggestions/type-ascription-instead-of-let.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-let.stderr rename to tests/ui/suggestions/type-ascription-instead-of-let.stderr diff --git a/src/test/ui/suggestions/type-ascription-instead-of-method.fixed b/tests/ui/suggestions/type-ascription-instead-of-method.fixed similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-method.fixed rename to tests/ui/suggestions/type-ascription-instead-of-method.fixed diff --git a/src/test/ui/suggestions/type-ascription-instead-of-method.rs b/tests/ui/suggestions/type-ascription-instead-of-method.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-method.rs rename to tests/ui/suggestions/type-ascription-instead-of-method.rs diff --git a/src/test/ui/suggestions/type-ascription-instead-of-method.stderr b/tests/ui/suggestions/type-ascription-instead-of-method.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-method.stderr rename to tests/ui/suggestions/type-ascription-instead-of-method.stderr diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path-2.fixed b/tests/ui/suggestions/type-ascription-instead-of-path-2.fixed similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path-2.fixed rename to tests/ui/suggestions/type-ascription-instead-of-path-2.fixed diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path-2.rs b/tests/ui/suggestions/type-ascription-instead-of-path-2.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path-2.rs rename to tests/ui/suggestions/type-ascription-instead-of-path-2.rs diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr b/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr rename to tests/ui/suggestions/type-ascription-instead-of-path-2.stderr diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path-in-type.rs b/tests/ui/suggestions/type-ascription-instead-of-path-in-type.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path-in-type.rs rename to tests/ui/suggestions/type-ascription-instead-of-path-in-type.rs diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path-in-type.stderr b/tests/ui/suggestions/type-ascription-instead-of-path-in-type.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path-in-type.stderr rename to tests/ui/suggestions/type-ascription-instead-of-path-in-type.stderr diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path.rs b/tests/ui/suggestions/type-ascription-instead-of-path.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path.rs rename to tests/ui/suggestions/type-ascription-instead-of-path.rs diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path.stderr b/tests/ui/suggestions/type-ascription-instead-of-path.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-path.stderr rename to tests/ui/suggestions/type-ascription-instead-of-path.stderr diff --git a/src/test/ui/suggestions/type-ascription-instead-of-variant.fixed b/tests/ui/suggestions/type-ascription-instead-of-variant.fixed similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-variant.fixed rename to tests/ui/suggestions/type-ascription-instead-of-variant.fixed diff --git a/src/test/ui/suggestions/type-ascription-instead-of-variant.rs b/tests/ui/suggestions/type-ascription-instead-of-variant.rs similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-variant.rs rename to tests/ui/suggestions/type-ascription-instead-of-variant.rs diff --git a/src/test/ui/suggestions/type-ascription-instead-of-variant.stderr b/tests/ui/suggestions/type-ascription-instead-of-variant.stderr similarity index 100% rename from src/test/ui/suggestions/type-ascription-instead-of-variant.stderr rename to tests/ui/suggestions/type-ascription-instead-of-variant.stderr diff --git a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs b/tests/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs similarity index 100% rename from src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs rename to tests/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs diff --git a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.stderr b/tests/ui/suggestions/type-mismatch-struct-field-shorthand-2.stderr similarity index 100% rename from src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.stderr rename to tests/ui/suggestions/type-mismatch-struct-field-shorthand-2.stderr diff --git a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.fixed b/tests/ui/suggestions/type-mismatch-struct-field-shorthand.fixed similarity index 100% rename from src/test/ui/suggestions/type-mismatch-struct-field-shorthand.fixed rename to tests/ui/suggestions/type-mismatch-struct-field-shorthand.fixed diff --git a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs b/tests/ui/suggestions/type-mismatch-struct-field-shorthand.rs similarity index 100% rename from src/test/ui/suggestions/type-mismatch-struct-field-shorthand.rs rename to tests/ui/suggestions/type-mismatch-struct-field-shorthand.rs diff --git a/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.stderr b/tests/ui/suggestions/type-mismatch-struct-field-shorthand.stderr similarity index 100% rename from src/test/ui/suggestions/type-mismatch-struct-field-shorthand.stderr rename to tests/ui/suggestions/type-mismatch-struct-field-shorthand.stderr diff --git a/src/test/ui/suggestions/type-not-found-in-adt-field.rs b/tests/ui/suggestions/type-not-found-in-adt-field.rs similarity index 100% rename from src/test/ui/suggestions/type-not-found-in-adt-field.rs rename to tests/ui/suggestions/type-not-found-in-adt-field.rs diff --git a/src/test/ui/suggestions/type-not-found-in-adt-field.stderr b/tests/ui/suggestions/type-not-found-in-adt-field.stderr similarity index 100% rename from src/test/ui/suggestions/type-not-found-in-adt-field.stderr rename to tests/ui/suggestions/type-not-found-in-adt-field.stderr diff --git a/src/test/ui/suggestions/undeclared-module-alloc.rs b/tests/ui/suggestions/undeclared-module-alloc.rs similarity index 100% rename from src/test/ui/suggestions/undeclared-module-alloc.rs rename to tests/ui/suggestions/undeclared-module-alloc.rs diff --git a/src/test/ui/suggestions/undeclared-module-alloc.stderr b/tests/ui/suggestions/undeclared-module-alloc.stderr similarity index 100% rename from src/test/ui/suggestions/undeclared-module-alloc.stderr rename to tests/ui/suggestions/undeclared-module-alloc.stderr diff --git a/src/test/ui/suggestions/unnamable-types.rs b/tests/ui/suggestions/unnamable-types.rs similarity index 100% rename from src/test/ui/suggestions/unnamable-types.rs rename to tests/ui/suggestions/unnamable-types.rs diff --git a/src/test/ui/suggestions/unnamable-types.stderr b/tests/ui/suggestions/unnamable-types.stderr similarity index 100% rename from src/test/ui/suggestions/unnamable-types.stderr rename to tests/ui/suggestions/unnamable-types.stderr diff --git a/src/test/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs b/tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs similarity index 100% rename from src/test/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs rename to tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.rs diff --git a/src/test/ui/suggestions/unnecessary_dot_for_floating_point_literal.stderr b/tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.stderr similarity index 100% rename from src/test/ui/suggestions/unnecessary_dot_for_floating_point_literal.stderr rename to tests/ui/suggestions/unnecessary_dot_for_floating_point_literal.stderr diff --git a/src/test/ui/suggestions/unsized-function-parameter.fixed b/tests/ui/suggestions/unsized-function-parameter.fixed similarity index 100% rename from src/test/ui/suggestions/unsized-function-parameter.fixed rename to tests/ui/suggestions/unsized-function-parameter.fixed diff --git a/src/test/ui/suggestions/unsized-function-parameter.rs b/tests/ui/suggestions/unsized-function-parameter.rs similarity index 100% rename from src/test/ui/suggestions/unsized-function-parameter.rs rename to tests/ui/suggestions/unsized-function-parameter.rs diff --git a/src/test/ui/suggestions/unsized-function-parameter.stderr b/tests/ui/suggestions/unsized-function-parameter.stderr similarity index 100% rename from src/test/ui/suggestions/unsized-function-parameter.stderr rename to tests/ui/suggestions/unsized-function-parameter.stderr diff --git a/src/test/ui/suggestions/unused-closure-argument.rs b/tests/ui/suggestions/unused-closure-argument.rs similarity index 100% rename from src/test/ui/suggestions/unused-closure-argument.rs rename to tests/ui/suggestions/unused-closure-argument.rs diff --git a/src/test/ui/suggestions/unused-closure-argument.stderr b/tests/ui/suggestions/unused-closure-argument.stderr similarity index 100% rename from src/test/ui/suggestions/unused-closure-argument.stderr rename to tests/ui/suggestions/unused-closure-argument.stderr diff --git a/src/test/ui/suggestions/use-placement-resolve.fixed b/tests/ui/suggestions/use-placement-resolve.fixed similarity index 100% rename from src/test/ui/suggestions/use-placement-resolve.fixed rename to tests/ui/suggestions/use-placement-resolve.fixed diff --git a/src/test/ui/suggestions/use-placement-resolve.rs b/tests/ui/suggestions/use-placement-resolve.rs similarity index 100% rename from src/test/ui/suggestions/use-placement-resolve.rs rename to tests/ui/suggestions/use-placement-resolve.rs diff --git a/src/test/ui/suggestions/use-placement-resolve.stderr b/tests/ui/suggestions/use-placement-resolve.stderr similarity index 100% rename from src/test/ui/suggestions/use-placement-resolve.stderr rename to tests/ui/suggestions/use-placement-resolve.stderr diff --git a/src/test/ui/suggestions/use-placement-typeck.fixed b/tests/ui/suggestions/use-placement-typeck.fixed similarity index 100% rename from src/test/ui/suggestions/use-placement-typeck.fixed rename to tests/ui/suggestions/use-placement-typeck.fixed diff --git a/src/test/ui/suggestions/use-placement-typeck.rs b/tests/ui/suggestions/use-placement-typeck.rs similarity index 100% rename from src/test/ui/suggestions/use-placement-typeck.rs rename to tests/ui/suggestions/use-placement-typeck.rs diff --git a/src/test/ui/suggestions/use-placement-typeck.stderr b/tests/ui/suggestions/use-placement-typeck.stderr similarity index 100% rename from src/test/ui/suggestions/use-placement-typeck.stderr rename to tests/ui/suggestions/use-placement-typeck.stderr diff --git a/src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.rs b/tests/ui/suggestions/use-type-argument-instead-of-assoc-type.rs similarity index 100% rename from src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.rs rename to tests/ui/suggestions/use-type-argument-instead-of-assoc-type.rs diff --git a/src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.stderr b/tests/ui/suggestions/use-type-argument-instead-of-assoc-type.stderr similarity index 100% rename from src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.stderr rename to tests/ui/suggestions/use-type-argument-instead-of-assoc-type.stderr diff --git a/src/test/ui/suggestions/while-let-typo.rs b/tests/ui/suggestions/while-let-typo.rs similarity index 100% rename from src/test/ui/suggestions/while-let-typo.rs rename to tests/ui/suggestions/while-let-typo.rs diff --git a/src/test/ui/suggestions/while-let-typo.stderr b/tests/ui/suggestions/while-let-typo.stderr similarity index 100% rename from src/test/ui/suggestions/while-let-typo.stderr rename to tests/ui/suggestions/while-let-typo.stderr diff --git a/src/test/ui/super-at-top-level.rs b/tests/ui/super-at-top-level.rs similarity index 100% rename from src/test/ui/super-at-top-level.rs rename to tests/ui/super-at-top-level.rs diff --git a/src/test/ui/super-at-top-level.stderr b/tests/ui/super-at-top-level.stderr similarity index 100% rename from src/test/ui/super-at-top-level.stderr rename to tests/ui/super-at-top-level.stderr diff --git a/src/test/ui/super-fast-paren-parsing.rs b/tests/ui/super-fast-paren-parsing.rs similarity index 100% rename from src/test/ui/super-fast-paren-parsing.rs rename to tests/ui/super-fast-paren-parsing.rs diff --git a/src/test/ui/super.rs b/tests/ui/super.rs similarity index 100% rename from src/test/ui/super.rs rename to tests/ui/super.rs diff --git a/src/test/ui/suppressed-error.rs b/tests/ui/suppressed-error.rs similarity index 100% rename from src/test/ui/suppressed-error.rs rename to tests/ui/suppressed-error.rs diff --git a/src/test/ui/suppressed-error.stderr b/tests/ui/suppressed-error.stderr similarity index 100% rename from src/test/ui/suppressed-error.stderr rename to tests/ui/suppressed-error.stderr diff --git a/src/test/ui/svh-add-nothing.rs b/tests/ui/svh-add-nothing.rs similarity index 100% rename from src/test/ui/svh-add-nothing.rs rename to tests/ui/svh-add-nothing.rs diff --git a/src/test/ui/svh/auxiliary/changing-crates-a1.rs b/tests/ui/svh/auxiliary/changing-crates-a1.rs similarity index 100% rename from src/test/ui/svh/auxiliary/changing-crates-a1.rs rename to tests/ui/svh/auxiliary/changing-crates-a1.rs diff --git a/src/test/ui/svh/auxiliary/changing-crates-a2.rs b/tests/ui/svh/auxiliary/changing-crates-a2.rs similarity index 100% rename from src/test/ui/svh/auxiliary/changing-crates-a2.rs rename to tests/ui/svh/auxiliary/changing-crates-a2.rs diff --git a/src/test/ui/svh/auxiliary/changing-crates-b.rs b/tests/ui/svh/auxiliary/changing-crates-b.rs similarity index 100% rename from src/test/ui/svh/auxiliary/changing-crates-b.rs rename to tests/ui/svh/auxiliary/changing-crates-b.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-base.rs b/tests/ui/svh/auxiliary/svh-a-base.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-base.rs rename to tests/ui/svh/auxiliary/svh-a-base.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-change-lit.rs b/tests/ui/svh/auxiliary/svh-a-change-lit.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-change-lit.rs rename to tests/ui/svh/auxiliary/svh-a-change-lit.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-change-significant-cfg.rs b/tests/ui/svh/auxiliary/svh-a-change-significant-cfg.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-change-significant-cfg.rs rename to tests/ui/svh/auxiliary/svh-a-change-significant-cfg.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-change-trait-bound.rs b/tests/ui/svh/auxiliary/svh-a-change-trait-bound.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-change-trait-bound.rs rename to tests/ui/svh/auxiliary/svh-a-change-trait-bound.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-change-type-arg.rs b/tests/ui/svh/auxiliary/svh-a-change-type-arg.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-change-type-arg.rs rename to tests/ui/svh/auxiliary/svh-a-change-type-arg.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-change-type-ret.rs b/tests/ui/svh/auxiliary/svh-a-change-type-ret.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-change-type-ret.rs rename to tests/ui/svh/auxiliary/svh-a-change-type-ret.rs diff --git a/src/test/ui/svh/auxiliary/svh-a-change-type-static.rs b/tests/ui/svh/auxiliary/svh-a-change-type-static.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-a-change-type-static.rs rename to tests/ui/svh/auxiliary/svh-a-change-type-static.rs diff --git a/src/test/ui/svh/auxiliary/svh-b.rs b/tests/ui/svh/auxiliary/svh-b.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-b.rs rename to tests/ui/svh/auxiliary/svh-b.rs diff --git a/src/test/ui/svh/auxiliary/svh-uta-base.rs b/tests/ui/svh/auxiliary/svh-uta-base.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-uta-base.rs rename to tests/ui/svh/auxiliary/svh-uta-base.rs diff --git a/src/test/ui/svh/auxiliary/svh-uta-change-use-trait.rs b/tests/ui/svh/auxiliary/svh-uta-change-use-trait.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-uta-change-use-trait.rs rename to tests/ui/svh/auxiliary/svh-uta-change-use-trait.rs diff --git a/src/test/ui/svh/auxiliary/svh-utb.rs b/tests/ui/svh/auxiliary/svh-utb.rs similarity index 100% rename from src/test/ui/svh/auxiliary/svh-utb.rs rename to tests/ui/svh/auxiliary/svh-utb.rs diff --git a/src/test/ui/svh/changing-crates.rs b/tests/ui/svh/changing-crates.rs similarity index 100% rename from src/test/ui/svh/changing-crates.rs rename to tests/ui/svh/changing-crates.rs diff --git a/src/test/ui/svh/changing-crates.stderr b/tests/ui/svh/changing-crates.stderr similarity index 100% rename from src/test/ui/svh/changing-crates.stderr rename to tests/ui/svh/changing-crates.stderr diff --git a/src/test/ui/svh/svh-change-lit.rs b/tests/ui/svh/svh-change-lit.rs similarity index 100% rename from src/test/ui/svh/svh-change-lit.rs rename to tests/ui/svh/svh-change-lit.rs diff --git a/src/test/ui/svh/svh-change-lit.stderr b/tests/ui/svh/svh-change-lit.stderr similarity index 100% rename from src/test/ui/svh/svh-change-lit.stderr rename to tests/ui/svh/svh-change-lit.stderr diff --git a/src/test/ui/svh/svh-change-significant-cfg.rs b/tests/ui/svh/svh-change-significant-cfg.rs similarity index 100% rename from src/test/ui/svh/svh-change-significant-cfg.rs rename to tests/ui/svh/svh-change-significant-cfg.rs diff --git a/src/test/ui/svh/svh-change-significant-cfg.stderr b/tests/ui/svh/svh-change-significant-cfg.stderr similarity index 100% rename from src/test/ui/svh/svh-change-significant-cfg.stderr rename to tests/ui/svh/svh-change-significant-cfg.stderr diff --git a/src/test/ui/svh/svh-change-trait-bound.rs b/tests/ui/svh/svh-change-trait-bound.rs similarity index 100% rename from src/test/ui/svh/svh-change-trait-bound.rs rename to tests/ui/svh/svh-change-trait-bound.rs diff --git a/src/test/ui/svh/svh-change-trait-bound.stderr b/tests/ui/svh/svh-change-trait-bound.stderr similarity index 100% rename from src/test/ui/svh/svh-change-trait-bound.stderr rename to tests/ui/svh/svh-change-trait-bound.stderr diff --git a/src/test/ui/svh/svh-change-type-arg.rs b/tests/ui/svh/svh-change-type-arg.rs similarity index 100% rename from src/test/ui/svh/svh-change-type-arg.rs rename to tests/ui/svh/svh-change-type-arg.rs diff --git a/src/test/ui/svh/svh-change-type-arg.stderr b/tests/ui/svh/svh-change-type-arg.stderr similarity index 100% rename from src/test/ui/svh/svh-change-type-arg.stderr rename to tests/ui/svh/svh-change-type-arg.stderr diff --git a/src/test/ui/svh/svh-change-type-ret.rs b/tests/ui/svh/svh-change-type-ret.rs similarity index 100% rename from src/test/ui/svh/svh-change-type-ret.rs rename to tests/ui/svh/svh-change-type-ret.rs diff --git a/src/test/ui/svh/svh-change-type-ret.stderr b/tests/ui/svh/svh-change-type-ret.stderr similarity index 100% rename from src/test/ui/svh/svh-change-type-ret.stderr rename to tests/ui/svh/svh-change-type-ret.stderr diff --git a/src/test/ui/svh/svh-change-type-static.rs b/tests/ui/svh/svh-change-type-static.rs similarity index 100% rename from src/test/ui/svh/svh-change-type-static.rs rename to tests/ui/svh/svh-change-type-static.rs diff --git a/src/test/ui/svh/svh-change-type-static.stderr b/tests/ui/svh/svh-change-type-static.stderr similarity index 100% rename from src/test/ui/svh/svh-change-type-static.stderr rename to tests/ui/svh/svh-change-type-static.stderr diff --git a/src/test/ui/svh/svh-use-trait.rs b/tests/ui/svh/svh-use-trait.rs similarity index 100% rename from src/test/ui/svh/svh-use-trait.rs rename to tests/ui/svh/svh-use-trait.rs diff --git a/src/test/ui/svh/svh-use-trait.stderr b/tests/ui/svh/svh-use-trait.stderr similarity index 100% rename from src/test/ui/svh/svh-use-trait.stderr rename to tests/ui/svh/svh-use-trait.stderr diff --git a/src/test/ui/swap-1.rs b/tests/ui/swap-1.rs similarity index 100% rename from src/test/ui/swap-1.rs rename to tests/ui/swap-1.rs diff --git a/src/test/ui/swap-overlapping.rs b/tests/ui/swap-overlapping.rs similarity index 100% rename from src/test/ui/swap-overlapping.rs rename to tests/ui/swap-overlapping.rs diff --git a/src/test/ui/switched-expectations.rs b/tests/ui/switched-expectations.rs similarity index 100% rename from src/test/ui/switched-expectations.rs rename to tests/ui/switched-expectations.rs diff --git a/src/test/ui/switched-expectations.stderr b/tests/ui/switched-expectations.stderr similarity index 100% rename from src/test/ui/switched-expectations.stderr rename to tests/ui/switched-expectations.stderr diff --git a/src/test/ui/symbol-names/basic.legacy.stderr b/tests/ui/symbol-names/basic.legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/basic.legacy.stderr rename to tests/ui/symbol-names/basic.legacy.stderr diff --git a/src/test/ui/symbol-names/basic.rs b/tests/ui/symbol-names/basic.rs similarity index 100% rename from src/test/ui/symbol-names/basic.rs rename to tests/ui/symbol-names/basic.rs diff --git a/src/test/ui/symbol-names/basic.v0.stderr b/tests/ui/symbol-names/basic.v0.stderr similarity index 100% rename from src/test/ui/symbol-names/basic.v0.stderr rename to tests/ui/symbol-names/basic.v0.stderr diff --git a/src/test/ui/symbol-names/const-generics-demangling.legacy.stderr b/tests/ui/symbol-names/const-generics-demangling.legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/const-generics-demangling.legacy.stderr rename to tests/ui/symbol-names/const-generics-demangling.legacy.stderr diff --git a/src/test/ui/symbol-names/const-generics-demangling.rs b/tests/ui/symbol-names/const-generics-demangling.rs similarity index 100% rename from src/test/ui/symbol-names/const-generics-demangling.rs rename to tests/ui/symbol-names/const-generics-demangling.rs diff --git a/src/test/ui/symbol-names/const-generics-demangling.v0.stderr b/tests/ui/symbol-names/const-generics-demangling.v0.stderr similarity index 100% rename from src/test/ui/symbol-names/const-generics-demangling.v0.stderr rename to tests/ui/symbol-names/const-generics-demangling.v0.stderr diff --git a/src/test/ui/symbol-names/const-generics-str-demangling.rs b/tests/ui/symbol-names/const-generics-str-demangling.rs similarity index 100% rename from src/test/ui/symbol-names/const-generics-str-demangling.rs rename to tests/ui/symbol-names/const-generics-str-demangling.rs diff --git a/src/test/ui/symbol-names/const-generics-str-demangling.stderr b/tests/ui/symbol-names/const-generics-str-demangling.stderr similarity index 100% rename from src/test/ui/symbol-names/const-generics-str-demangling.stderr rename to tests/ui/symbol-names/const-generics-str-demangling.stderr diff --git a/src/test/ui/symbol-names/const-generics-structural-demangling.rs b/tests/ui/symbol-names/const-generics-structural-demangling.rs similarity index 100% rename from src/test/ui/symbol-names/const-generics-structural-demangling.rs rename to tests/ui/symbol-names/const-generics-structural-demangling.rs diff --git a/src/test/ui/symbol-names/const-generics-structural-demangling.stderr b/tests/ui/symbol-names/const-generics-structural-demangling.stderr similarity index 100% rename from src/test/ui/symbol-names/const-generics-structural-demangling.stderr rename to tests/ui/symbol-names/const-generics-structural-demangling.stderr diff --git a/src/test/ui/symbol-names/const-generics.rs b/tests/ui/symbol-names/const-generics.rs similarity index 100% rename from src/test/ui/symbol-names/const-generics.rs rename to tests/ui/symbol-names/const-generics.rs diff --git a/src/test/ui/symbol-names/foreign-types.rs b/tests/ui/symbol-names/foreign-types.rs similarity index 100% rename from src/test/ui/symbol-names/foreign-types.rs rename to tests/ui/symbol-names/foreign-types.rs diff --git a/src/test/ui/symbol-names/foreign-types.stderr b/tests/ui/symbol-names/foreign-types.stderr similarity index 100% rename from src/test/ui/symbol-names/foreign-types.stderr rename to tests/ui/symbol-names/foreign-types.stderr diff --git a/src/test/ui/symbol-names/impl1.legacy.stderr b/tests/ui/symbol-names/impl1.legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/impl1.legacy.stderr rename to tests/ui/symbol-names/impl1.legacy.stderr diff --git a/src/test/ui/symbol-names/impl1.rs b/tests/ui/symbol-names/impl1.rs similarity index 100% rename from src/test/ui/symbol-names/impl1.rs rename to tests/ui/symbol-names/impl1.rs diff --git a/src/test/ui/symbol-names/impl1.v0.stderr b/tests/ui/symbol-names/impl1.v0.stderr similarity index 100% rename from src/test/ui/symbol-names/impl1.v0.stderr rename to tests/ui/symbol-names/impl1.v0.stderr diff --git a/src/test/ui/symbol-names/impl2.rs b/tests/ui/symbol-names/impl2.rs similarity index 100% rename from src/test/ui/symbol-names/impl2.rs rename to tests/ui/symbol-names/impl2.rs diff --git a/src/test/ui/symbol-names/impl2.stderr b/tests/ui/symbol-names/impl2.stderr similarity index 100% rename from src/test/ui/symbol-names/impl2.stderr rename to tests/ui/symbol-names/impl2.stderr diff --git a/src/test/ui/symbol-names/issue-53912.rs b/tests/ui/symbol-names/issue-53912.rs similarity index 100% rename from src/test/ui/symbol-names/issue-53912.rs rename to tests/ui/symbol-names/issue-53912.rs diff --git a/src/test/ui/symbol-names/issue-60925.legacy.stderr b/tests/ui/symbol-names/issue-60925.legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/issue-60925.legacy.stderr rename to tests/ui/symbol-names/issue-60925.legacy.stderr diff --git a/src/test/ui/symbol-names/issue-60925.rs b/tests/ui/symbol-names/issue-60925.rs similarity index 100% rename from src/test/ui/symbol-names/issue-60925.rs rename to tests/ui/symbol-names/issue-60925.rs diff --git a/src/test/ui/symbol-names/issue-60925.v0.stderr b/tests/ui/symbol-names/issue-60925.v0.stderr similarity index 100% rename from src/test/ui/symbol-names/issue-60925.v0.stderr rename to tests/ui/symbol-names/issue-60925.v0.stderr diff --git a/src/test/ui/symbol-names/issue-75326.legacy.stderr b/tests/ui/symbol-names/issue-75326.legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/issue-75326.legacy.stderr rename to tests/ui/symbol-names/issue-75326.legacy.stderr diff --git a/src/test/ui/symbol-names/issue-75326.rs b/tests/ui/symbol-names/issue-75326.rs similarity index 100% rename from src/test/ui/symbol-names/issue-75326.rs rename to tests/ui/symbol-names/issue-75326.rs diff --git a/src/test/ui/symbol-names/issue-75326.v0.stderr b/tests/ui/symbol-names/issue-75326.v0.stderr similarity index 100% rename from src/test/ui/symbol-names/issue-75326.v0.stderr rename to tests/ui/symbol-names/issue-75326.v0.stderr diff --git a/src/test/ui/symbol-names/issue-76365.rs b/tests/ui/symbol-names/issue-76365.rs similarity index 100% rename from src/test/ui/symbol-names/issue-76365.rs rename to tests/ui/symbol-names/issue-76365.rs diff --git a/src/test/ui/symbol-names/trait-objects.rs b/tests/ui/symbol-names/trait-objects.rs similarity index 100% rename from src/test/ui/symbol-names/trait-objects.rs rename to tests/ui/symbol-names/trait-objects.rs diff --git a/src/test/ui/symbol-names/trait-objects.v0.stderr b/tests/ui/symbol-names/trait-objects.v0.stderr similarity index 100% rename from src/test/ui/symbol-names/trait-objects.v0.stderr rename to tests/ui/symbol-names/trait-objects.v0.stderr diff --git a/src/test/ui/symbol-names/types.legacy.stderr b/tests/ui/symbol-names/types.legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/types.legacy.stderr rename to tests/ui/symbol-names/types.legacy.stderr diff --git a/src/test/ui/symbol-names/types.rs b/tests/ui/symbol-names/types.rs similarity index 100% rename from src/test/ui/symbol-names/types.rs rename to tests/ui/symbol-names/types.rs diff --git a/src/test/ui/symbol-names/types.verbose-legacy.stderr b/tests/ui/symbol-names/types.verbose-legacy.stderr similarity index 100% rename from src/test/ui/symbol-names/types.verbose-legacy.stderr rename to tests/ui/symbol-names/types.verbose-legacy.stderr diff --git a/src/test/ui/symbol-names/verbose.rs b/tests/ui/symbol-names/verbose.rs similarity index 100% rename from src/test/ui/symbol-names/verbose.rs rename to tests/ui/symbol-names/verbose.rs diff --git a/src/test/ui/symbol-names/x86-stdcall.rs b/tests/ui/symbol-names/x86-stdcall.rs similarity index 100% rename from src/test/ui/symbol-names/x86-stdcall.rs rename to tests/ui/symbol-names/x86-stdcall.rs diff --git a/src/test/ui/syntax-extension-minor.rs b/tests/ui/syntax-extension-minor.rs similarity index 100% rename from src/test/ui/syntax-extension-minor.rs rename to tests/ui/syntax-extension-minor.rs diff --git a/src/test/ui/tag-that-dare-not-speak-its-name.rs b/tests/ui/tag-that-dare-not-speak-its-name.rs similarity index 100% rename from src/test/ui/tag-that-dare-not-speak-its-name.rs rename to tests/ui/tag-that-dare-not-speak-its-name.rs diff --git a/src/test/ui/tag-that-dare-not-speak-its-name.stderr b/tests/ui/tag-that-dare-not-speak-its-name.stderr similarity index 100% rename from src/test/ui/tag-that-dare-not-speak-its-name.stderr rename to tests/ui/tag-that-dare-not-speak-its-name.stderr diff --git a/src/test/ui/tag-type-args.rs b/tests/ui/tag-type-args.rs similarity index 100% rename from src/test/ui/tag-type-args.rs rename to tests/ui/tag-type-args.rs diff --git a/src/test/ui/tag-type-args.stderr b/tests/ui/tag-type-args.stderr similarity index 100% rename from src/test/ui/tag-type-args.stderr rename to tests/ui/tag-type-args.stderr diff --git a/src/test/ui/tag-variant-cast-non-nullary.fixed b/tests/ui/tag-variant-cast-non-nullary.fixed similarity index 100% rename from src/test/ui/tag-variant-cast-non-nullary.fixed rename to tests/ui/tag-variant-cast-non-nullary.fixed diff --git a/src/test/ui/tag-variant-cast-non-nullary.rs b/tests/ui/tag-variant-cast-non-nullary.rs similarity index 100% rename from src/test/ui/tag-variant-cast-non-nullary.rs rename to tests/ui/tag-variant-cast-non-nullary.rs diff --git a/src/test/ui/tag-variant-cast-non-nullary.stderr b/tests/ui/tag-variant-cast-non-nullary.stderr similarity index 100% rename from src/test/ui/tag-variant-cast-non-nullary.stderr rename to tests/ui/tag-variant-cast-non-nullary.stderr diff --git a/src/test/ui/tail-call-arg-leak.rs b/tests/ui/tail-call-arg-leak.rs similarity index 100% rename from src/test/ui/tail-call-arg-leak.rs rename to tests/ui/tail-call-arg-leak.rs diff --git a/src/test/ui/tail-cps.rs b/tests/ui/tail-cps.rs similarity index 100% rename from src/test/ui/tail-cps.rs rename to tests/ui/tail-cps.rs diff --git a/src/test/ui/tail-typeck.rs b/tests/ui/tail-typeck.rs similarity index 100% rename from src/test/ui/tail-typeck.rs rename to tests/ui/tail-typeck.rs diff --git a/src/test/ui/tail-typeck.stderr b/tests/ui/tail-typeck.stderr similarity index 100% rename from src/test/ui/tail-typeck.stderr rename to tests/ui/tail-typeck.stderr diff --git a/src/test/ui/target-feature/aarch64-neon-works.rs b/tests/ui/target-feature/aarch64-neon-works.rs similarity index 100% rename from src/test/ui/target-feature/aarch64-neon-works.rs rename to tests/ui/target-feature/aarch64-neon-works.rs diff --git a/src/test/ui/target-feature/feature-hierarchy.rs b/tests/ui/target-feature/feature-hierarchy.rs similarity index 100% rename from src/test/ui/target-feature/feature-hierarchy.rs rename to tests/ui/target-feature/feature-hierarchy.rs diff --git a/src/test/ui/target-feature/gate.rs b/tests/ui/target-feature/gate.rs similarity index 100% rename from src/test/ui/target-feature/gate.rs rename to tests/ui/target-feature/gate.rs diff --git a/src/test/ui/target-feature/gate.stderr b/tests/ui/target-feature/gate.stderr similarity index 100% rename from src/test/ui/target-feature/gate.stderr rename to tests/ui/target-feature/gate.stderr diff --git a/src/test/ui/target-feature/invalid-attribute.rs b/tests/ui/target-feature/invalid-attribute.rs similarity index 100% rename from src/test/ui/target-feature/invalid-attribute.rs rename to tests/ui/target-feature/invalid-attribute.rs diff --git a/src/test/ui/target-feature/invalid-attribute.stderr b/tests/ui/target-feature/invalid-attribute.stderr similarity index 100% rename from src/test/ui/target-feature/invalid-attribute.stderr rename to tests/ui/target-feature/invalid-attribute.stderr diff --git a/src/test/ui/target-feature/missing-plusminus-2.rs b/tests/ui/target-feature/missing-plusminus-2.rs similarity index 100% rename from src/test/ui/target-feature/missing-plusminus-2.rs rename to tests/ui/target-feature/missing-plusminus-2.rs diff --git a/src/test/ui/target-feature/missing-plusminus-2.stderr b/tests/ui/target-feature/missing-plusminus-2.stderr similarity index 100% rename from src/test/ui/target-feature/missing-plusminus-2.stderr rename to tests/ui/target-feature/missing-plusminus-2.stderr diff --git a/src/test/ui/target-feature/missing-plusminus.rs b/tests/ui/target-feature/missing-plusminus.rs similarity index 100% rename from src/test/ui/target-feature/missing-plusminus.rs rename to tests/ui/target-feature/missing-plusminus.rs diff --git a/src/test/ui/target-feature/missing-plusminus.stderr b/tests/ui/target-feature/missing-plusminus.stderr similarity index 100% rename from src/test/ui/target-feature/missing-plusminus.stderr rename to tests/ui/target-feature/missing-plusminus.stderr diff --git a/src/test/ui/target-feature/no-llvm-leaks.rs b/tests/ui/target-feature/no-llvm-leaks.rs similarity index 100% rename from src/test/ui/target-feature/no-llvm-leaks.rs rename to tests/ui/target-feature/no-llvm-leaks.rs diff --git a/src/test/ui/target-feature/rust-specific-name-no-warnings.rs b/tests/ui/target-feature/rust-specific-name-no-warnings.rs similarity index 100% rename from src/test/ui/target-feature/rust-specific-name-no-warnings.rs rename to tests/ui/target-feature/rust-specific-name-no-warnings.rs diff --git a/src/test/ui/target-feature/similar-feature-suggestion.rs b/tests/ui/target-feature/similar-feature-suggestion.rs similarity index 100% rename from src/test/ui/target-feature/similar-feature-suggestion.rs rename to tests/ui/target-feature/similar-feature-suggestion.rs diff --git a/src/test/ui/target-feature/similar-feature-suggestion.stderr b/tests/ui/target-feature/similar-feature-suggestion.stderr similarity index 100% rename from src/test/ui/target-feature/similar-feature-suggestion.stderr rename to tests/ui/target-feature/similar-feature-suggestion.stderr diff --git a/src/test/ui/target-feature/tied-features-cli.one.stderr b/tests/ui/target-feature/tied-features-cli.one.stderr similarity index 100% rename from src/test/ui/target-feature/tied-features-cli.one.stderr rename to tests/ui/target-feature/tied-features-cli.one.stderr diff --git a/src/test/ui/target-feature/tied-features-cli.rs b/tests/ui/target-feature/tied-features-cli.rs similarity index 100% rename from src/test/ui/target-feature/tied-features-cli.rs rename to tests/ui/target-feature/tied-features-cli.rs diff --git a/src/test/ui/target-feature/tied-features-cli.three.stderr b/tests/ui/target-feature/tied-features-cli.three.stderr similarity index 100% rename from src/test/ui/target-feature/tied-features-cli.three.stderr rename to tests/ui/target-feature/tied-features-cli.three.stderr diff --git a/src/test/ui/target-feature/tied-features-cli.two.stderr b/tests/ui/target-feature/tied-features-cli.two.stderr similarity index 100% rename from src/test/ui/target-feature/tied-features-cli.two.stderr rename to tests/ui/target-feature/tied-features-cli.two.stderr diff --git a/src/test/ui/target-feature/tied-features.rs b/tests/ui/target-feature/tied-features.rs similarity index 100% rename from src/test/ui/target-feature/tied-features.rs rename to tests/ui/target-feature/tied-features.rs diff --git a/src/test/ui/target-feature/tied-features.stderr b/tests/ui/target-feature/tied-features.stderr similarity index 100% rename from src/test/ui/target-feature/tied-features.stderr rename to tests/ui/target-feature/tied-features.stderr diff --git a/src/test/ui/target-feature/wasm-safe.rs b/tests/ui/target-feature/wasm-safe.rs similarity index 100% rename from src/test/ui/target-feature/wasm-safe.rs rename to tests/ui/target-feature/wasm-safe.rs diff --git a/src/test/ui/terr-in-field.rs b/tests/ui/terr-in-field.rs similarity index 100% rename from src/test/ui/terr-in-field.rs rename to tests/ui/terr-in-field.rs diff --git a/src/test/ui/terr-in-field.stderr b/tests/ui/terr-in-field.stderr similarity index 100% rename from src/test/ui/terr-in-field.stderr rename to tests/ui/terr-in-field.stderr diff --git a/src/test/ui/terr-sorts.rs b/tests/ui/terr-sorts.rs similarity index 100% rename from src/test/ui/terr-sorts.rs rename to tests/ui/terr-sorts.rs diff --git a/src/test/ui/terr-sorts.stderr b/tests/ui/terr-sorts.stderr similarity index 100% rename from src/test/ui/terr-sorts.stderr rename to tests/ui/terr-sorts.stderr diff --git a/src/test/ui/test-attrs/auxiliary/test_macro.rs b/tests/ui/test-attrs/auxiliary/test_macro.rs similarity index 100% rename from src/test/ui/test-attrs/auxiliary/test_macro.rs rename to tests/ui/test-attrs/auxiliary/test_macro.rs diff --git a/src/test/ui/test-attrs/decl-macro-test.rs b/tests/ui/test-attrs/decl-macro-test.rs similarity index 100% rename from src/test/ui/test-attrs/decl-macro-test.rs rename to tests/ui/test-attrs/decl-macro-test.rs diff --git a/src/test/ui/test-attrs/inaccessible-test-modules.rs b/tests/ui/test-attrs/inaccessible-test-modules.rs similarity index 100% rename from src/test/ui/test-attrs/inaccessible-test-modules.rs rename to tests/ui/test-attrs/inaccessible-test-modules.rs diff --git a/src/test/ui/test-attrs/inaccessible-test-modules.stderr b/tests/ui/test-attrs/inaccessible-test-modules.stderr similarity index 100% rename from src/test/ui/test-attrs/inaccessible-test-modules.stderr rename to tests/ui/test-attrs/inaccessible-test-modules.stderr diff --git a/src/test/ui/test-attrs/issue-16597-empty.rs b/tests/ui/test-attrs/issue-16597-empty.rs similarity index 100% rename from src/test/ui/test-attrs/issue-16597-empty.rs rename to tests/ui/test-attrs/issue-16597-empty.rs diff --git a/src/test/ui/test-attrs/issue-16597.rs b/tests/ui/test-attrs/issue-16597.rs similarity index 100% rename from src/test/ui/test-attrs/issue-16597.rs rename to tests/ui/test-attrs/issue-16597.rs diff --git a/src/test/ui/test-attrs/issue-20823.rs b/tests/ui/test-attrs/issue-20823.rs similarity index 100% rename from src/test/ui/test-attrs/issue-20823.rs rename to tests/ui/test-attrs/issue-20823.rs diff --git a/src/test/ui/test-attrs/issue-36768.rs b/tests/ui/test-attrs/issue-36768.rs similarity index 100% rename from src/test/ui/test-attrs/issue-36768.rs rename to tests/ui/test-attrs/issue-36768.rs diff --git a/src/test/ui/test-attrs/issue-52557.rs b/tests/ui/test-attrs/issue-52557.rs similarity index 100% rename from src/test/ui/test-attrs/issue-52557.rs rename to tests/ui/test-attrs/issue-52557.rs diff --git a/src/test/ui/test-attrs/issue-53675-a-test-called-panic.rs b/tests/ui/test-attrs/issue-53675-a-test-called-panic.rs similarity index 100% rename from src/test/ui/test-attrs/issue-53675-a-test-called-panic.rs rename to tests/ui/test-attrs/issue-53675-a-test-called-panic.rs diff --git a/src/test/ui/test-attrs/run-unexported-tests.rs b/tests/ui/test-attrs/run-unexported-tests.rs similarity index 100% rename from src/test/ui/test-attrs/run-unexported-tests.rs rename to tests/ui/test-attrs/run-unexported-tests.rs diff --git a/src/test/ui/test-attrs/test-attr-non-associated-functions.rs b/tests/ui/test-attrs/test-attr-non-associated-functions.rs similarity index 100% rename from src/test/ui/test-attrs/test-attr-non-associated-functions.rs rename to tests/ui/test-attrs/test-attr-non-associated-functions.rs diff --git a/src/test/ui/test-attrs/test-attr-non-associated-functions.stderr b/tests/ui/test-attrs/test-attr-non-associated-functions.stderr similarity index 100% rename from src/test/ui/test-attrs/test-attr-non-associated-functions.stderr rename to tests/ui/test-attrs/test-attr-non-associated-functions.stderr diff --git a/src/test/ui/test-attrs/test-cant-be-shadowed.rs b/tests/ui/test-attrs/test-cant-be-shadowed.rs similarity index 100% rename from src/test/ui/test-attrs/test-cant-be-shadowed.rs rename to tests/ui/test-attrs/test-cant-be-shadowed.rs diff --git a/src/test/ui/test-attrs/test-filter-multiple.rs b/tests/ui/test-attrs/test-filter-multiple.rs similarity index 100% rename from src/test/ui/test-attrs/test-filter-multiple.rs rename to tests/ui/test-attrs/test-filter-multiple.rs diff --git a/src/test/ui/test-attrs/test-filter-multiple.run.stdout b/tests/ui/test-attrs/test-filter-multiple.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-filter-multiple.run.stdout rename to tests/ui/test-attrs/test-filter-multiple.run.stdout diff --git a/src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs b/tests/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs similarity index 100% rename from src/test/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs rename to tests/ui/test-attrs/test-fn-signature-verification-for-explicit-return-type.rs diff --git a/src/test/ui/test-attrs/test-main-not-dead-attr.rs b/tests/ui/test-attrs/test-main-not-dead-attr.rs similarity index 100% rename from src/test/ui/test-attrs/test-main-not-dead-attr.rs rename to tests/ui/test-attrs/test-main-not-dead-attr.rs diff --git a/src/test/ui/test-attrs/test-main-not-dead.rs b/tests/ui/test-attrs/test-main-not-dead.rs similarity index 100% rename from src/test/ui/test-attrs/test-main-not-dead.rs rename to tests/ui/test-attrs/test-main-not-dead.rs diff --git a/src/test/ui/test-attrs/test-on-not-fn.rs b/tests/ui/test-attrs/test-on-not-fn.rs similarity index 100% rename from src/test/ui/test-attrs/test-on-not-fn.rs rename to tests/ui/test-attrs/test-on-not-fn.rs diff --git a/src/test/ui/test-attrs/test-on-not-fn.stderr b/tests/ui/test-attrs/test-on-not-fn.stderr similarity index 100% rename from src/test/ui/test-attrs/test-on-not-fn.stderr rename to tests/ui/test-attrs/test-on-not-fn.stderr diff --git a/src/test/ui/test-attrs/test-panic-abort-disabled.rs b/tests/ui/test-attrs/test-panic-abort-disabled.rs similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort-disabled.rs rename to tests/ui/test-attrs/test-panic-abort-disabled.rs diff --git a/src/test/ui/test-attrs/test-panic-abort-disabled.stderr b/tests/ui/test-attrs/test-panic-abort-disabled.stderr similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort-disabled.stderr rename to tests/ui/test-attrs/test-panic-abort-disabled.stderr diff --git a/src/test/ui/test-attrs/test-panic-abort-nocapture.rs b/tests/ui/test-attrs/test-panic-abort-nocapture.rs similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort-nocapture.rs rename to tests/ui/test-attrs/test-panic-abort-nocapture.rs diff --git a/src/test/ui/test-attrs/test-panic-abort-nocapture.run.stderr b/tests/ui/test-attrs/test-panic-abort-nocapture.run.stderr similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort-nocapture.run.stderr rename to tests/ui/test-attrs/test-panic-abort-nocapture.run.stderr diff --git a/src/test/ui/test-attrs/test-panic-abort-nocapture.run.stdout b/tests/ui/test-attrs/test-panic-abort-nocapture.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort-nocapture.run.stdout rename to tests/ui/test-attrs/test-panic-abort-nocapture.run.stdout diff --git a/src/test/ui/test-attrs/test-panic-abort.rs b/tests/ui/test-attrs/test-panic-abort.rs similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort.rs rename to tests/ui/test-attrs/test-panic-abort.rs diff --git a/src/test/ui/test-attrs/test-panic-abort.run.stdout b/tests/ui/test-attrs/test-panic-abort.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-panic-abort.run.stdout rename to tests/ui/test-attrs/test-panic-abort.run.stdout diff --git a/src/test/ui/test-attrs/test-panic-while-printing.rs b/tests/ui/test-attrs/test-panic-while-printing.rs similarity index 100% rename from src/test/ui/test-attrs/test-panic-while-printing.rs rename to tests/ui/test-attrs/test-panic-while-printing.rs diff --git a/src/test/ui/test-attrs/test-passed-wasm.rs b/tests/ui/test-attrs/test-passed-wasm.rs similarity index 100% rename from src/test/ui/test-attrs/test-passed-wasm.rs rename to tests/ui/test-attrs/test-passed-wasm.rs diff --git a/src/test/ui/test-attrs/test-passed-wasm.run.stdout b/tests/ui/test-attrs/test-passed-wasm.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-passed-wasm.run.stdout rename to tests/ui/test-attrs/test-passed-wasm.run.stdout diff --git a/src/test/ui/test-attrs/test-passed.rs b/tests/ui/test-attrs/test-passed.rs similarity index 100% rename from src/test/ui/test-attrs/test-passed.rs rename to tests/ui/test-attrs/test-passed.rs diff --git a/src/test/ui/test-attrs/test-passed.run.stdout b/tests/ui/test-attrs/test-passed.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-passed.run.stdout rename to tests/ui/test-attrs/test-passed.run.stdout diff --git a/src/test/ui/test-attrs/test-runner-hides-buried-main.rs b/tests/ui/test-attrs/test-runner-hides-buried-main.rs similarity index 100% rename from src/test/ui/test-attrs/test-runner-hides-buried-main.rs rename to tests/ui/test-attrs/test-runner-hides-buried-main.rs diff --git a/src/test/ui/test-attrs/test-runner-hides-main.rs b/tests/ui/test-attrs/test-runner-hides-main.rs similarity index 100% rename from src/test/ui/test-attrs/test-runner-hides-main.rs rename to tests/ui/test-attrs/test-runner-hides-main.rs diff --git a/src/test/ui/test-attrs/test-runner-hides-start.rs b/tests/ui/test-attrs/test-runner-hides-start.rs similarity index 100% rename from src/test/ui/test-attrs/test-runner-hides-start.rs rename to tests/ui/test-attrs/test-runner-hides-start.rs diff --git a/src/test/ui/test-attrs/test-should-fail-good-message.rs b/tests/ui/test-attrs/test-should-fail-good-message.rs similarity index 100% rename from src/test/ui/test-attrs/test-should-fail-good-message.rs rename to tests/ui/test-attrs/test-should-fail-good-message.rs diff --git a/src/test/ui/test-attrs/test-should-panic-attr.rs b/tests/ui/test-attrs/test-should-panic-attr.rs similarity index 100% rename from src/test/ui/test-attrs/test-should-panic-attr.rs rename to tests/ui/test-attrs/test-should-panic-attr.rs diff --git a/src/test/ui/test-attrs/test-should-panic-attr.stderr b/tests/ui/test-attrs/test-should-panic-attr.stderr similarity index 100% rename from src/test/ui/test-attrs/test-should-panic-attr.stderr rename to tests/ui/test-attrs/test-should-panic-attr.stderr diff --git a/src/test/ui/test-attrs/test-thread-capture.rs b/tests/ui/test-attrs/test-thread-capture.rs similarity index 100% rename from src/test/ui/test-attrs/test-thread-capture.rs rename to tests/ui/test-attrs/test-thread-capture.rs diff --git a/src/test/ui/test-attrs/test-thread-capture.run.stdout b/tests/ui/test-attrs/test-thread-capture.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-thread-capture.run.stdout rename to tests/ui/test-attrs/test-thread-capture.run.stdout diff --git a/src/test/ui/test-attrs/test-thread-nocapture.rs b/tests/ui/test-attrs/test-thread-nocapture.rs similarity index 100% rename from src/test/ui/test-attrs/test-thread-nocapture.rs rename to tests/ui/test-attrs/test-thread-nocapture.rs diff --git a/src/test/ui/test-attrs/test-thread-nocapture.run.stderr b/tests/ui/test-attrs/test-thread-nocapture.run.stderr similarity index 100% rename from src/test/ui/test-attrs/test-thread-nocapture.run.stderr rename to tests/ui/test-attrs/test-thread-nocapture.run.stderr diff --git a/src/test/ui/test-attrs/test-thread-nocapture.run.stdout b/tests/ui/test-attrs/test-thread-nocapture.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-thread-nocapture.run.stdout rename to tests/ui/test-attrs/test-thread-nocapture.run.stdout diff --git a/src/test/ui/test-attrs/test-type.rs b/tests/ui/test-attrs/test-type.rs similarity index 100% rename from src/test/ui/test-attrs/test-type.rs rename to tests/ui/test-attrs/test-type.rs diff --git a/src/test/ui/test-attrs/test-type.run.stdout b/tests/ui/test-attrs/test-type.run.stdout similarity index 100% rename from src/test/ui/test-attrs/test-type.run.stdout rename to tests/ui/test-attrs/test-type.run.stdout diff --git a/src/test/ui/test-attrs/test-vs-cfg-test.rs b/tests/ui/test-attrs/test-vs-cfg-test.rs similarity index 100% rename from src/test/ui/test-attrs/test-vs-cfg-test.rs rename to tests/ui/test-attrs/test-vs-cfg-test.rs diff --git a/src/test/ui/test-attrs/test-warns-dead-code.rs b/tests/ui/test-attrs/test-warns-dead-code.rs similarity index 100% rename from src/test/ui/test-attrs/test-warns-dead-code.rs rename to tests/ui/test-attrs/test-warns-dead-code.rs diff --git a/src/test/ui/test-attrs/test-warns-dead-code.stderr b/tests/ui/test-attrs/test-warns-dead-code.stderr similarity index 100% rename from src/test/ui/test-attrs/test-warns-dead-code.stderr rename to tests/ui/test-attrs/test-warns-dead-code.stderr diff --git a/src/test/ui/thir-tree.rs b/tests/ui/thir-tree.rs similarity index 100% rename from src/test/ui/thir-tree.rs rename to tests/ui/thir-tree.rs diff --git a/src/test/ui/thir-tree.stdout b/tests/ui/thir-tree.stdout similarity index 100% rename from src/test/ui/thir-tree.stdout rename to tests/ui/thir-tree.stdout diff --git a/src/test/ui/thread-local-mutation.rs b/tests/ui/thread-local-mutation.rs similarity index 100% rename from src/test/ui/thread-local-mutation.rs rename to tests/ui/thread-local-mutation.rs diff --git a/src/test/ui/thread-local-mutation.stderr b/tests/ui/thread-local-mutation.stderr similarity index 100% rename from src/test/ui/thread-local-mutation.stderr rename to tests/ui/thread-local-mutation.stderr diff --git a/src/test/ui/thread-local-static.rs b/tests/ui/thread-local-static.rs similarity index 100% rename from src/test/ui/thread-local-static.rs rename to tests/ui/thread-local-static.rs diff --git a/src/test/ui/thread-local-static.stderr b/tests/ui/thread-local-static.stderr similarity index 100% rename from src/test/ui/thread-local-static.stderr rename to tests/ui/thread-local-static.stderr diff --git a/src/test/ui/thread-local/name-collision.rs b/tests/ui/thread-local/name-collision.rs similarity index 100% rename from src/test/ui/thread-local/name-collision.rs rename to tests/ui/thread-local/name-collision.rs diff --git a/src/test/ui/thread-local/non-static.rs b/tests/ui/thread-local/non-static.rs similarity index 100% rename from src/test/ui/thread-local/non-static.rs rename to tests/ui/thread-local/non-static.rs diff --git a/src/test/ui/thread-local/non-static.stderr b/tests/ui/thread-local/non-static.stderr similarity index 100% rename from src/test/ui/thread-local/non-static.stderr rename to tests/ui/thread-local/non-static.stderr diff --git a/src/test/ui/thread-local/thread-local-issue-37508.rs b/tests/ui/thread-local/thread-local-issue-37508.rs similarity index 100% rename from src/test/ui/thread-local/thread-local-issue-37508.rs rename to tests/ui/thread-local/thread-local-issue-37508.rs diff --git a/src/test/ui/thread-local/tls.rs b/tests/ui/thread-local/tls.rs similarity index 100% rename from src/test/ui/thread-local/tls.rs rename to tests/ui/thread-local/tls.rs diff --git a/src/test/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs b/tests/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs similarity index 100% rename from src/test/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs rename to tests/ui/threads-sendsync/auxiliary/thread-local-extern-static.rs diff --git a/src/test/ui/threads-sendsync/child-outlives-parent.rs b/tests/ui/threads-sendsync/child-outlives-parent.rs similarity index 100% rename from src/test/ui/threads-sendsync/child-outlives-parent.rs rename to tests/ui/threads-sendsync/child-outlives-parent.rs diff --git a/src/test/ui/threads-sendsync/clone-with-exterior.rs b/tests/ui/threads-sendsync/clone-with-exterior.rs similarity index 100% rename from src/test/ui/threads-sendsync/clone-with-exterior.rs rename to tests/ui/threads-sendsync/clone-with-exterior.rs diff --git a/src/test/ui/threads-sendsync/comm.rs b/tests/ui/threads-sendsync/comm.rs similarity index 100% rename from src/test/ui/threads-sendsync/comm.rs rename to tests/ui/threads-sendsync/comm.rs diff --git a/src/test/ui/threads-sendsync/eprint-on-tls-drop.rs b/tests/ui/threads-sendsync/eprint-on-tls-drop.rs similarity index 100% rename from src/test/ui/threads-sendsync/eprint-on-tls-drop.rs rename to tests/ui/threads-sendsync/eprint-on-tls-drop.rs diff --git a/src/test/ui/threads-sendsync/issue-24313.rs b/tests/ui/threads-sendsync/issue-24313.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-24313.rs rename to tests/ui/threads-sendsync/issue-24313.rs diff --git a/src/test/ui/threads-sendsync/issue-29488.rs b/tests/ui/threads-sendsync/issue-29488.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-29488.rs rename to tests/ui/threads-sendsync/issue-29488.rs diff --git a/src/test/ui/threads-sendsync/issue-43733-2.rs b/tests/ui/threads-sendsync/issue-43733-2.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-43733-2.rs rename to tests/ui/threads-sendsync/issue-43733-2.rs diff --git a/src/test/ui/threads-sendsync/issue-43733.mir.stderr b/tests/ui/threads-sendsync/issue-43733.mir.stderr similarity index 100% rename from src/test/ui/threads-sendsync/issue-43733.mir.stderr rename to tests/ui/threads-sendsync/issue-43733.mir.stderr diff --git a/src/test/ui/threads-sendsync/issue-43733.rs b/tests/ui/threads-sendsync/issue-43733.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-43733.rs rename to tests/ui/threads-sendsync/issue-43733.rs diff --git a/src/test/ui/threads-sendsync/issue-43733.thir.stderr b/tests/ui/threads-sendsync/issue-43733.thir.stderr similarity index 100% rename from src/test/ui/threads-sendsync/issue-43733.thir.stderr rename to tests/ui/threads-sendsync/issue-43733.thir.stderr diff --git a/src/test/ui/threads-sendsync/issue-4446.rs b/tests/ui/threads-sendsync/issue-4446.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-4446.rs rename to tests/ui/threads-sendsync/issue-4446.rs diff --git a/src/test/ui/threads-sendsync/issue-4448.rs b/tests/ui/threads-sendsync/issue-4448.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-4448.rs rename to tests/ui/threads-sendsync/issue-4448.rs diff --git a/src/test/ui/threads-sendsync/issue-8827.rs b/tests/ui/threads-sendsync/issue-8827.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-8827.rs rename to tests/ui/threads-sendsync/issue-8827.rs diff --git a/src/test/ui/threads-sendsync/issue-9396.rs b/tests/ui/threads-sendsync/issue-9396.rs similarity index 100% rename from src/test/ui/threads-sendsync/issue-9396.rs rename to tests/ui/threads-sendsync/issue-9396.rs diff --git a/src/test/ui/threads-sendsync/mpsc_stress.rs b/tests/ui/threads-sendsync/mpsc_stress.rs similarity index 100% rename from src/test/ui/threads-sendsync/mpsc_stress.rs rename to tests/ui/threads-sendsync/mpsc_stress.rs diff --git a/src/test/ui/threads-sendsync/send-is-not-static-par-for.rs b/tests/ui/threads-sendsync/send-is-not-static-par-for.rs similarity index 100% rename from src/test/ui/threads-sendsync/send-is-not-static-par-for.rs rename to tests/ui/threads-sendsync/send-is-not-static-par-for.rs diff --git a/src/test/ui/threads-sendsync/send-resource.rs b/tests/ui/threads-sendsync/send-resource.rs similarity index 100% rename from src/test/ui/threads-sendsync/send-resource.rs rename to tests/ui/threads-sendsync/send-resource.rs diff --git a/src/test/ui/threads-sendsync/send-type-inference.rs b/tests/ui/threads-sendsync/send-type-inference.rs similarity index 100% rename from src/test/ui/threads-sendsync/send-type-inference.rs rename to tests/ui/threads-sendsync/send-type-inference.rs diff --git a/src/test/ui/threads-sendsync/send_str_hashmap.rs b/tests/ui/threads-sendsync/send_str_hashmap.rs similarity index 100% rename from src/test/ui/threads-sendsync/send_str_hashmap.rs rename to tests/ui/threads-sendsync/send_str_hashmap.rs diff --git a/src/test/ui/threads-sendsync/send_str_treemap.rs b/tests/ui/threads-sendsync/send_str_treemap.rs similarity index 100% rename from src/test/ui/threads-sendsync/send_str_treemap.rs rename to tests/ui/threads-sendsync/send_str_treemap.rs diff --git a/src/test/ui/threads-sendsync/sendable-class.rs b/tests/ui/threads-sendsync/sendable-class.rs similarity index 100% rename from src/test/ui/threads-sendsync/sendable-class.rs rename to tests/ui/threads-sendsync/sendable-class.rs diff --git a/src/test/ui/threads-sendsync/sendfn-is-a-block.rs b/tests/ui/threads-sendsync/sendfn-is-a-block.rs similarity index 100% rename from src/test/ui/threads-sendsync/sendfn-is-a-block.rs rename to tests/ui/threads-sendsync/sendfn-is-a-block.rs diff --git a/src/test/ui/threads-sendsync/sendfn-spawn-with-fn-arg.rs b/tests/ui/threads-sendsync/sendfn-spawn-with-fn-arg.rs similarity index 100% rename from src/test/ui/threads-sendsync/sendfn-spawn-with-fn-arg.rs rename to tests/ui/threads-sendsync/sendfn-spawn-with-fn-arg.rs diff --git a/src/test/ui/threads-sendsync/spawn-fn.rs b/tests/ui/threads-sendsync/spawn-fn.rs similarity index 100% rename from src/test/ui/threads-sendsync/spawn-fn.rs rename to tests/ui/threads-sendsync/spawn-fn.rs diff --git a/src/test/ui/threads-sendsync/spawn-types.rs b/tests/ui/threads-sendsync/spawn-types.rs similarity index 100% rename from src/test/ui/threads-sendsync/spawn-types.rs rename to tests/ui/threads-sendsync/spawn-types.rs diff --git a/src/test/ui/threads-sendsync/spawn.rs b/tests/ui/threads-sendsync/spawn.rs similarity index 100% rename from src/test/ui/threads-sendsync/spawn.rs rename to tests/ui/threads-sendsync/spawn.rs diff --git a/src/test/ui/threads-sendsync/spawn2.rs b/tests/ui/threads-sendsync/spawn2.rs similarity index 100% rename from src/test/ui/threads-sendsync/spawn2.rs rename to tests/ui/threads-sendsync/spawn2.rs diff --git a/src/test/ui/threads-sendsync/spawning-with-debug.rs b/tests/ui/threads-sendsync/spawning-with-debug.rs similarity index 100% rename from src/test/ui/threads-sendsync/spawning-with-debug.rs rename to tests/ui/threads-sendsync/spawning-with-debug.rs diff --git a/src/test/ui/threads-sendsync/std-sync-right-kind-impls.rs b/tests/ui/threads-sendsync/std-sync-right-kind-impls.rs similarity index 100% rename from src/test/ui/threads-sendsync/std-sync-right-kind-impls.rs rename to tests/ui/threads-sendsync/std-sync-right-kind-impls.rs diff --git a/src/test/ui/threads-sendsync/sync-send-atomics.rs b/tests/ui/threads-sendsync/sync-send-atomics.rs similarity index 100% rename from src/test/ui/threads-sendsync/sync-send-atomics.rs rename to tests/ui/threads-sendsync/sync-send-atomics.rs diff --git a/src/test/ui/threads-sendsync/sync-send-in-std.rs b/tests/ui/threads-sendsync/sync-send-in-std.rs similarity index 100% rename from src/test/ui/threads-sendsync/sync-send-in-std.rs rename to tests/ui/threads-sendsync/sync-send-in-std.rs diff --git a/src/test/ui/threads-sendsync/sync-send-iterators-in-libcollections.rs b/tests/ui/threads-sendsync/sync-send-iterators-in-libcollections.rs similarity index 100% rename from src/test/ui/threads-sendsync/sync-send-iterators-in-libcollections.rs rename to tests/ui/threads-sendsync/sync-send-iterators-in-libcollections.rs diff --git a/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs b/tests/ui/threads-sendsync/sync-send-iterators-in-libcore.rs similarity index 100% rename from src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs rename to tests/ui/threads-sendsync/sync-send-iterators-in-libcore.rs diff --git a/src/test/ui/threads-sendsync/task-comm-0.rs b/tests/ui/threads-sendsync/task-comm-0.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-0.rs rename to tests/ui/threads-sendsync/task-comm-0.rs diff --git a/src/test/ui/threads-sendsync/task-comm-1.rs b/tests/ui/threads-sendsync/task-comm-1.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-1.rs rename to tests/ui/threads-sendsync/task-comm-1.rs diff --git a/src/test/ui/threads-sendsync/task-comm-10.rs b/tests/ui/threads-sendsync/task-comm-10.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-10.rs rename to tests/ui/threads-sendsync/task-comm-10.rs diff --git a/src/test/ui/threads-sendsync/task-comm-11.rs b/tests/ui/threads-sendsync/task-comm-11.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-11.rs rename to tests/ui/threads-sendsync/task-comm-11.rs diff --git a/src/test/ui/threads-sendsync/task-comm-12.rs b/tests/ui/threads-sendsync/task-comm-12.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-12.rs rename to tests/ui/threads-sendsync/task-comm-12.rs diff --git a/src/test/ui/threads-sendsync/task-comm-13.rs b/tests/ui/threads-sendsync/task-comm-13.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-13.rs rename to tests/ui/threads-sendsync/task-comm-13.rs diff --git a/src/test/ui/threads-sendsync/task-comm-14.rs b/tests/ui/threads-sendsync/task-comm-14.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-14.rs rename to tests/ui/threads-sendsync/task-comm-14.rs diff --git a/src/test/ui/threads-sendsync/task-comm-15.rs b/tests/ui/threads-sendsync/task-comm-15.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-15.rs rename to tests/ui/threads-sendsync/task-comm-15.rs diff --git a/src/test/ui/threads-sendsync/task-comm-16.rs b/tests/ui/threads-sendsync/task-comm-16.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-16.rs rename to tests/ui/threads-sendsync/task-comm-16.rs diff --git a/src/test/ui/threads-sendsync/task-comm-17.rs b/tests/ui/threads-sendsync/task-comm-17.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-17.rs rename to tests/ui/threads-sendsync/task-comm-17.rs diff --git a/src/test/ui/threads-sendsync/task-comm-3.rs b/tests/ui/threads-sendsync/task-comm-3.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-3.rs rename to tests/ui/threads-sendsync/task-comm-3.rs diff --git a/src/test/ui/threads-sendsync/task-comm-4.rs b/tests/ui/threads-sendsync/task-comm-4.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-4.rs rename to tests/ui/threads-sendsync/task-comm-4.rs diff --git a/src/test/ui/threads-sendsync/task-comm-5.rs b/tests/ui/threads-sendsync/task-comm-5.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-5.rs rename to tests/ui/threads-sendsync/task-comm-5.rs diff --git a/src/test/ui/threads-sendsync/task-comm-6.rs b/tests/ui/threads-sendsync/task-comm-6.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-6.rs rename to tests/ui/threads-sendsync/task-comm-6.rs diff --git a/src/test/ui/threads-sendsync/task-comm-7.rs b/tests/ui/threads-sendsync/task-comm-7.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-7.rs rename to tests/ui/threads-sendsync/task-comm-7.rs diff --git a/src/test/ui/threads-sendsync/task-comm-9.rs b/tests/ui/threads-sendsync/task-comm-9.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-9.rs rename to tests/ui/threads-sendsync/task-comm-9.rs diff --git a/src/test/ui/threads-sendsync/task-comm-chan-nil.rs b/tests/ui/threads-sendsync/task-comm-chan-nil.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-comm-chan-nil.rs rename to tests/ui/threads-sendsync/task-comm-chan-nil.rs diff --git a/src/test/ui/threads-sendsync/task-life-0.rs b/tests/ui/threads-sendsync/task-life-0.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-life-0.rs rename to tests/ui/threads-sendsync/task-life-0.rs diff --git a/src/test/ui/threads-sendsync/task-spawn-barefn.rs b/tests/ui/threads-sendsync/task-spawn-barefn.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-spawn-barefn.rs rename to tests/ui/threads-sendsync/task-spawn-barefn.rs diff --git a/src/test/ui/threads-sendsync/task-spawn-move-and-copy.rs b/tests/ui/threads-sendsync/task-spawn-move-and-copy.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-spawn-move-and-copy.rs rename to tests/ui/threads-sendsync/task-spawn-move-and-copy.rs diff --git a/src/test/ui/threads-sendsync/task-stderr.rs b/tests/ui/threads-sendsync/task-stderr.rs similarity index 100% rename from src/test/ui/threads-sendsync/task-stderr.rs rename to tests/ui/threads-sendsync/task-stderr.rs diff --git a/src/test/ui/threads-sendsync/tcp-stress.rs b/tests/ui/threads-sendsync/tcp-stress.rs similarity index 100% rename from src/test/ui/threads-sendsync/tcp-stress.rs rename to tests/ui/threads-sendsync/tcp-stress.rs diff --git a/src/test/ui/threads-sendsync/test-tasks-invalid-value.rs b/tests/ui/threads-sendsync/test-tasks-invalid-value.rs similarity index 100% rename from src/test/ui/threads-sendsync/test-tasks-invalid-value.rs rename to tests/ui/threads-sendsync/test-tasks-invalid-value.rs diff --git a/src/test/ui/threads-sendsync/thread-local-extern-static.rs b/tests/ui/threads-sendsync/thread-local-extern-static.rs similarity index 100% rename from src/test/ui/threads-sendsync/thread-local-extern-static.rs rename to tests/ui/threads-sendsync/thread-local-extern-static.rs diff --git a/src/test/ui/threads-sendsync/thread-local-syntax.rs b/tests/ui/threads-sendsync/thread-local-syntax.rs similarity index 100% rename from src/test/ui/threads-sendsync/thread-local-syntax.rs rename to tests/ui/threads-sendsync/thread-local-syntax.rs diff --git a/src/test/ui/threads-sendsync/threads.rs b/tests/ui/threads-sendsync/threads.rs similarity index 100% rename from src/test/ui/threads-sendsync/threads.rs rename to tests/ui/threads-sendsync/threads.rs diff --git a/src/test/ui/threads-sendsync/tls-dtors-are-run-in-a-static-binary.rs b/tests/ui/threads-sendsync/tls-dtors-are-run-in-a-static-binary.rs similarity index 100% rename from src/test/ui/threads-sendsync/tls-dtors-are-run-in-a-static-binary.rs rename to tests/ui/threads-sendsync/tls-dtors-are-run-in-a-static-binary.rs diff --git a/src/test/ui/threads-sendsync/tls-init-on-init.rs b/tests/ui/threads-sendsync/tls-init-on-init.rs similarity index 100% rename from src/test/ui/threads-sendsync/tls-init-on-init.rs rename to tests/ui/threads-sendsync/tls-init-on-init.rs diff --git a/src/test/ui/threads-sendsync/tls-try-with.rs b/tests/ui/threads-sendsync/tls-try-with.rs similarity index 100% rename from src/test/ui/threads-sendsync/tls-try-with.rs rename to tests/ui/threads-sendsync/tls-try-with.rs diff --git a/src/test/ui/threads-sendsync/trivial-message.rs b/tests/ui/threads-sendsync/trivial-message.rs similarity index 100% rename from src/test/ui/threads-sendsync/trivial-message.rs rename to tests/ui/threads-sendsync/trivial-message.rs diff --git a/src/test/ui/threads-sendsync/unwind-resource.rs b/tests/ui/threads-sendsync/unwind-resource.rs similarity index 100% rename from src/test/ui/threads-sendsync/unwind-resource.rs rename to tests/ui/threads-sendsync/unwind-resource.rs diff --git a/src/test/ui/threads-sendsync/yield.rs b/tests/ui/threads-sendsync/yield.rs similarity index 100% rename from src/test/ui/threads-sendsync/yield.rs rename to tests/ui/threads-sendsync/yield.rs diff --git a/src/test/ui/threads-sendsync/yield1.rs b/tests/ui/threads-sendsync/yield1.rs similarity index 100% rename from src/test/ui/threads-sendsync/yield1.rs rename to tests/ui/threads-sendsync/yield1.rs diff --git a/src/test/ui/threads-sendsync/yield2.rs b/tests/ui/threads-sendsync/yield2.rs similarity index 100% rename from src/test/ui/threads-sendsync/yield2.rs rename to tests/ui/threads-sendsync/yield2.rs diff --git a/src/test/ui/tool-attributes/diagnostic_item.rs b/tests/ui/tool-attributes/diagnostic_item.rs similarity index 100% rename from src/test/ui/tool-attributes/diagnostic_item.rs rename to tests/ui/tool-attributes/diagnostic_item.rs diff --git a/src/test/ui/tool-attributes/diagnostic_item.stderr b/tests/ui/tool-attributes/diagnostic_item.stderr similarity index 100% rename from src/test/ui/tool-attributes/diagnostic_item.stderr rename to tests/ui/tool-attributes/diagnostic_item.stderr diff --git a/src/test/ui/tool-attributes/diagnostic_item2.rs b/tests/ui/tool-attributes/diagnostic_item2.rs similarity index 100% rename from src/test/ui/tool-attributes/diagnostic_item2.rs rename to tests/ui/tool-attributes/diagnostic_item2.rs diff --git a/src/test/ui/tool-attributes/diagnostic_item3.rs b/tests/ui/tool-attributes/diagnostic_item3.rs similarity index 100% rename from src/test/ui/tool-attributes/diagnostic_item3.rs rename to tests/ui/tool-attributes/diagnostic_item3.rs diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs b/tests/ui/tool-attributes/tool-attributes-misplaced-1.rs similarity index 100% rename from src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs rename to tests/ui/tool-attributes/tool-attributes-misplaced-1.rs diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr b/tests/ui/tool-attributes/tool-attributes-misplaced-1.stderr similarity index 100% rename from src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr rename to tests/ui/tool-attributes/tool-attributes-misplaced-1.stderr diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs b/tests/ui/tool-attributes/tool-attributes-misplaced-2.rs similarity index 100% rename from src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs rename to tests/ui/tool-attributes/tool-attributes-misplaced-2.rs diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.stderr b/tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr similarity index 100% rename from src/test/ui/tool-attributes/tool-attributes-misplaced-2.stderr rename to tests/ui/tool-attributes/tool-attributes-misplaced-2.stderr diff --git a/src/test/ui/tool-attributes/tool-attributes-shadowing.rs b/tests/ui/tool-attributes/tool-attributes-shadowing.rs similarity index 100% rename from src/test/ui/tool-attributes/tool-attributes-shadowing.rs rename to tests/ui/tool-attributes/tool-attributes-shadowing.rs diff --git a/src/test/ui/tool-attributes/tool-attributes-shadowing.stderr b/tests/ui/tool-attributes/tool-attributes-shadowing.stderr similarity index 100% rename from src/test/ui/tool-attributes/tool-attributes-shadowing.stderr rename to tests/ui/tool-attributes/tool-attributes-shadowing.stderr diff --git a/src/test/ui/tool_lints-fail.rs b/tests/ui/tool_lints-fail.rs similarity index 100% rename from src/test/ui/tool_lints-fail.rs rename to tests/ui/tool_lints-fail.rs diff --git a/src/test/ui/tool_lints-fail.stderr b/tests/ui/tool_lints-fail.stderr similarity index 100% rename from src/test/ui/tool_lints-fail.stderr rename to tests/ui/tool_lints-fail.stderr diff --git a/src/test/ui/tool_lints-rpass.rs b/tests/ui/tool_lints-rpass.rs similarity index 100% rename from src/test/ui/tool_lints-rpass.rs rename to tests/ui/tool_lints-rpass.rs diff --git a/src/test/ui/tool_lints.rs b/tests/ui/tool_lints.rs similarity index 100% rename from src/test/ui/tool_lints.rs rename to tests/ui/tool_lints.rs diff --git a/src/test/ui/tool_lints.stderr b/tests/ui/tool_lints.stderr similarity index 100% rename from src/test/ui/tool_lints.stderr rename to tests/ui/tool_lints.stderr diff --git a/src/test/ui/tool_lints_2018_preview.rs b/tests/ui/tool_lints_2018_preview.rs similarity index 100% rename from src/test/ui/tool_lints_2018_preview.rs rename to tests/ui/tool_lints_2018_preview.rs diff --git a/src/test/ui/track-diagnostics/track.rs b/tests/ui/track-diagnostics/track.rs similarity index 100% rename from src/test/ui/track-diagnostics/track.rs rename to tests/ui/track-diagnostics/track.rs diff --git a/src/test/ui/track-diagnostics/track.stderr b/tests/ui/track-diagnostics/track.stderr similarity index 100% rename from src/test/ui/track-diagnostics/track.stderr rename to tests/ui/track-diagnostics/track.stderr diff --git a/src/test/ui/track-diagnostics/track2.rs b/tests/ui/track-diagnostics/track2.rs similarity index 100% rename from src/test/ui/track-diagnostics/track2.rs rename to tests/ui/track-diagnostics/track2.rs diff --git a/src/test/ui/track-diagnostics/track2.stderr b/tests/ui/track-diagnostics/track2.stderr similarity index 100% rename from src/test/ui/track-diagnostics/track2.stderr rename to tests/ui/track-diagnostics/track2.stderr diff --git a/src/test/ui/track-diagnostics/track3.rs b/tests/ui/track-diagnostics/track3.rs similarity index 100% rename from src/test/ui/track-diagnostics/track3.rs rename to tests/ui/track-diagnostics/track3.rs diff --git a/src/test/ui/track-diagnostics/track3.stderr b/tests/ui/track-diagnostics/track3.stderr similarity index 100% rename from src/test/ui/track-diagnostics/track3.stderr rename to tests/ui/track-diagnostics/track3.stderr diff --git a/src/test/ui/track-diagnostics/track4.rs b/tests/ui/track-diagnostics/track4.rs similarity index 100% rename from src/test/ui/track-diagnostics/track4.rs rename to tests/ui/track-diagnostics/track4.rs diff --git a/src/test/ui/track-diagnostics/track4.stderr b/tests/ui/track-diagnostics/track4.stderr similarity index 100% rename from src/test/ui/track-diagnostics/track4.stderr rename to tests/ui/track-diagnostics/track4.stderr diff --git a/src/test/ui/track-diagnostics/track5.rs b/tests/ui/track-diagnostics/track5.rs similarity index 100% rename from src/test/ui/track-diagnostics/track5.rs rename to tests/ui/track-diagnostics/track5.rs diff --git a/src/test/ui/track-diagnostics/track5.stderr b/tests/ui/track-diagnostics/track5.stderr similarity index 100% rename from src/test/ui/track-diagnostics/track5.stderr rename to tests/ui/track-diagnostics/track5.stderr diff --git a/src/test/ui/track-diagnostics/track6.rs b/tests/ui/track-diagnostics/track6.rs similarity index 100% rename from src/test/ui/track-diagnostics/track6.rs rename to tests/ui/track-diagnostics/track6.rs diff --git a/src/test/ui/track-diagnostics/track6.stderr b/tests/ui/track-diagnostics/track6.stderr similarity index 100% rename from src/test/ui/track-diagnostics/track6.stderr rename to tests/ui/track-diagnostics/track6.stderr diff --git a/src/test/ui/trailing-comma.rs b/tests/ui/trailing-comma.rs similarity index 100% rename from src/test/ui/trailing-comma.rs rename to tests/ui/trailing-comma.rs diff --git a/src/test/ui/trait-bounds/impl-bound-with-references-error.rs b/tests/ui/trait-bounds/impl-bound-with-references-error.rs similarity index 100% rename from src/test/ui/trait-bounds/impl-bound-with-references-error.rs rename to tests/ui/trait-bounds/impl-bound-with-references-error.rs diff --git a/src/test/ui/trait-bounds/impl-bound-with-references-error.stderr b/tests/ui/trait-bounds/impl-bound-with-references-error.stderr similarity index 100% rename from src/test/ui/trait-bounds/impl-bound-with-references-error.stderr rename to tests/ui/trait-bounds/impl-bound-with-references-error.stderr diff --git a/src/test/ui/trait-bounds/impl-derived-implicit-sized-bound-2.rs b/tests/ui/trait-bounds/impl-derived-implicit-sized-bound-2.rs similarity index 100% rename from src/test/ui/trait-bounds/impl-derived-implicit-sized-bound-2.rs rename to tests/ui/trait-bounds/impl-derived-implicit-sized-bound-2.rs diff --git a/src/test/ui/trait-bounds/impl-derived-implicit-sized-bound-2.stderr b/tests/ui/trait-bounds/impl-derived-implicit-sized-bound-2.stderr similarity index 100% rename from src/test/ui/trait-bounds/impl-derived-implicit-sized-bound-2.stderr rename to tests/ui/trait-bounds/impl-derived-implicit-sized-bound-2.stderr diff --git a/src/test/ui/trait-bounds/impl-derived-implicit-sized-bound.rs b/tests/ui/trait-bounds/impl-derived-implicit-sized-bound.rs similarity index 100% rename from src/test/ui/trait-bounds/impl-derived-implicit-sized-bound.rs rename to tests/ui/trait-bounds/impl-derived-implicit-sized-bound.rs diff --git a/src/test/ui/trait-bounds/impl-derived-implicit-sized-bound.stderr b/tests/ui/trait-bounds/impl-derived-implicit-sized-bound.stderr similarity index 100% rename from src/test/ui/trait-bounds/impl-derived-implicit-sized-bound.stderr rename to tests/ui/trait-bounds/impl-derived-implicit-sized-bound.stderr diff --git a/src/test/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.rs b/tests/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.rs similarity index 100% rename from src/test/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.rs rename to tests/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.rs diff --git a/src/test/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.stderr b/tests/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.stderr similarity index 100% rename from src/test/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.stderr rename to tests/ui/trait-bounds/impl-missing-where-clause-lifetimes-from-trait.stderr diff --git a/src/test/ui/trait-bounds/issue-75961.rs b/tests/ui/trait-bounds/issue-75961.rs similarity index 100% rename from src/test/ui/trait-bounds/issue-75961.rs rename to tests/ui/trait-bounds/issue-75961.rs diff --git a/src/test/ui/trait-bounds/issue-93008.rs b/tests/ui/trait-bounds/issue-93008.rs similarity index 100% rename from src/test/ui/trait-bounds/issue-93008.rs rename to tests/ui/trait-bounds/issue-93008.rs diff --git a/src/test/ui/trait-bounds/issue-94680.rs b/tests/ui/trait-bounds/issue-94680.rs similarity index 100% rename from src/test/ui/trait-bounds/issue-94680.rs rename to tests/ui/trait-bounds/issue-94680.rs diff --git a/src/test/ui/trait-bounds/issue-94999.rs b/tests/ui/trait-bounds/issue-94999.rs similarity index 100% rename from src/test/ui/trait-bounds/issue-94999.rs rename to tests/ui/trait-bounds/issue-94999.rs diff --git a/src/test/ui/trait-bounds/issue-95640.rs b/tests/ui/trait-bounds/issue-95640.rs similarity index 100% rename from src/test/ui/trait-bounds/issue-95640.rs rename to tests/ui/trait-bounds/issue-95640.rs diff --git a/src/test/ui/trait-bounds/mismatch-fn-trait.rs b/tests/ui/trait-bounds/mismatch-fn-trait.rs similarity index 100% rename from src/test/ui/trait-bounds/mismatch-fn-trait.rs rename to tests/ui/trait-bounds/mismatch-fn-trait.rs diff --git a/src/test/ui/trait-bounds/mismatch-fn-trait.stderr b/tests/ui/trait-bounds/mismatch-fn-trait.stderr similarity index 100% rename from src/test/ui/trait-bounds/mismatch-fn-trait.stderr rename to tests/ui/trait-bounds/mismatch-fn-trait.stderr diff --git a/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.fixed b/tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.fixed similarity index 100% rename from src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.fixed rename to tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.fixed diff --git a/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.rs b/tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.rs similarity index 100% rename from src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.rs rename to tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.rs diff --git a/src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr b/tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr similarity index 100% rename from src/test/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr rename to tests/ui/trait-bounds/shadowed-path-in-trait-bound-suggestion.stderr diff --git a/src/test/ui/trait-bounds/unsized-bound.rs b/tests/ui/trait-bounds/unsized-bound.rs similarity index 100% rename from src/test/ui/trait-bounds/unsized-bound.rs rename to tests/ui/trait-bounds/unsized-bound.rs diff --git a/src/test/ui/trait-bounds/unsized-bound.stderr b/tests/ui/trait-bounds/unsized-bound.stderr similarity index 100% rename from src/test/ui/trait-bounds/unsized-bound.stderr rename to tests/ui/trait-bounds/unsized-bound.stderr diff --git a/src/test/ui/trait-impl-bound-suggestions.fixed b/tests/ui/trait-impl-bound-suggestions.fixed similarity index 100% rename from src/test/ui/trait-impl-bound-suggestions.fixed rename to tests/ui/trait-impl-bound-suggestions.fixed diff --git a/src/test/ui/trait-impl-bound-suggestions.rs b/tests/ui/trait-impl-bound-suggestions.rs similarity index 100% rename from src/test/ui/trait-impl-bound-suggestions.rs rename to tests/ui/trait-impl-bound-suggestions.rs diff --git a/src/test/ui/trait-impl-bound-suggestions.stderr b/tests/ui/trait-impl-bound-suggestions.stderr similarity index 100% rename from src/test/ui/trait-impl-bound-suggestions.stderr rename to tests/ui/trait-impl-bound-suggestions.stderr diff --git a/src/test/ui/trait-method-number-parameters.rs b/tests/ui/trait-method-number-parameters.rs similarity index 100% rename from src/test/ui/trait-method-number-parameters.rs rename to tests/ui/trait-method-number-parameters.rs diff --git a/src/test/ui/trait-method-number-parameters.stderr b/tests/ui/trait-method-number-parameters.stderr similarity index 100% rename from src/test/ui/trait-method-number-parameters.stderr rename to tests/ui/trait-method-number-parameters.stderr diff --git a/src/test/ui/traits/alias/ambiguous.rs b/tests/ui/traits/alias/ambiguous.rs similarity index 100% rename from src/test/ui/traits/alias/ambiguous.rs rename to tests/ui/traits/alias/ambiguous.rs diff --git a/src/test/ui/traits/alias/ambiguous.stderr b/tests/ui/traits/alias/ambiguous.stderr similarity index 100% rename from src/test/ui/traits/alias/ambiguous.stderr rename to tests/ui/traits/alias/ambiguous.stderr diff --git a/src/test/ui/traits/alias/auxiliary/greeter.rs b/tests/ui/traits/alias/auxiliary/greeter.rs similarity index 100% rename from src/test/ui/traits/alias/auxiliary/greeter.rs rename to tests/ui/traits/alias/auxiliary/greeter.rs diff --git a/src/test/ui/traits/alias/auxiliary/send_sync.rs b/tests/ui/traits/alias/auxiliary/send_sync.rs similarity index 100% rename from src/test/ui/traits/alias/auxiliary/send_sync.rs rename to tests/ui/traits/alias/auxiliary/send_sync.rs diff --git a/src/test/ui/traits/alias/basic.rs b/tests/ui/traits/alias/basic.rs similarity index 100% rename from src/test/ui/traits/alias/basic.rs rename to tests/ui/traits/alias/basic.rs diff --git a/src/test/ui/traits/alias/bounds.rs b/tests/ui/traits/alias/bounds.rs similarity index 100% rename from src/test/ui/traits/alias/bounds.rs rename to tests/ui/traits/alias/bounds.rs diff --git a/src/test/ui/traits/alias/cross-crate.rs b/tests/ui/traits/alias/cross-crate.rs similarity index 100% rename from src/test/ui/traits/alias/cross-crate.rs rename to tests/ui/traits/alias/cross-crate.rs diff --git a/src/test/ui/traits/alias/cross-crate.stderr b/tests/ui/traits/alias/cross-crate.stderr similarity index 100% rename from src/test/ui/traits/alias/cross-crate.stderr rename to tests/ui/traits/alias/cross-crate.stderr diff --git a/src/test/ui/traits/alias/generic-default-in-dyn.rs b/tests/ui/traits/alias/generic-default-in-dyn.rs similarity index 100% rename from src/test/ui/traits/alias/generic-default-in-dyn.rs rename to tests/ui/traits/alias/generic-default-in-dyn.rs diff --git a/src/test/ui/traits/alias/generic-default-in-dyn.stderr b/tests/ui/traits/alias/generic-default-in-dyn.stderr similarity index 100% rename from src/test/ui/traits/alias/generic-default-in-dyn.stderr rename to tests/ui/traits/alias/generic-default-in-dyn.stderr diff --git a/src/test/ui/traits/alias/impl.rs b/tests/ui/traits/alias/impl.rs similarity index 100% rename from src/test/ui/traits/alias/impl.rs rename to tests/ui/traits/alias/impl.rs diff --git a/src/test/ui/traits/alias/impl.stderr b/tests/ui/traits/alias/impl.stderr similarity index 100% rename from src/test/ui/traits/alias/impl.stderr rename to tests/ui/traits/alias/impl.stderr diff --git a/src/test/ui/traits/alias/import-cross-crate.rs b/tests/ui/traits/alias/import-cross-crate.rs similarity index 100% rename from src/test/ui/traits/alias/import-cross-crate.rs rename to tests/ui/traits/alias/import-cross-crate.rs diff --git a/src/test/ui/traits/alias/import.rs b/tests/ui/traits/alias/import.rs similarity index 100% rename from src/test/ui/traits/alias/import.rs rename to tests/ui/traits/alias/import.rs diff --git a/src/test/ui/traits/alias/issue-60021-assoc-method-resolve.rs b/tests/ui/traits/alias/issue-60021-assoc-method-resolve.rs similarity index 100% rename from src/test/ui/traits/alias/issue-60021-assoc-method-resolve.rs rename to tests/ui/traits/alias/issue-60021-assoc-method-resolve.rs diff --git a/src/test/ui/traits/alias/issue-72415-assoc-const-resolve.rs b/tests/ui/traits/alias/issue-72415-assoc-const-resolve.rs similarity index 100% rename from src/test/ui/traits/alias/issue-72415-assoc-const-resolve.rs rename to tests/ui/traits/alias/issue-72415-assoc-const-resolve.rs diff --git a/src/test/ui/traits/alias/issue-75983.rs b/tests/ui/traits/alias/issue-75983.rs similarity index 100% rename from src/test/ui/traits/alias/issue-75983.rs rename to tests/ui/traits/alias/issue-75983.rs diff --git a/src/test/ui/traits/alias/issue-83613.rs b/tests/ui/traits/alias/issue-83613.rs similarity index 100% rename from src/test/ui/traits/alias/issue-83613.rs rename to tests/ui/traits/alias/issue-83613.rs diff --git a/src/test/ui/traits/alias/issue-83613.stderr b/tests/ui/traits/alias/issue-83613.stderr similarity index 100% rename from src/test/ui/traits/alias/issue-83613.stderr rename to tests/ui/traits/alias/issue-83613.stderr diff --git a/src/test/ui/traits/alias/maybe-bound.rs b/tests/ui/traits/alias/maybe-bound.rs similarity index 100% rename from src/test/ui/traits/alias/maybe-bound.rs rename to tests/ui/traits/alias/maybe-bound.rs diff --git a/src/test/ui/traits/alias/no-duplicates.rs b/tests/ui/traits/alias/no-duplicates.rs similarity index 100% rename from src/test/ui/traits/alias/no-duplicates.rs rename to tests/ui/traits/alias/no-duplicates.rs diff --git a/src/test/ui/traits/alias/no-duplicates.stderr b/tests/ui/traits/alias/no-duplicates.stderr similarity index 100% rename from src/test/ui/traits/alias/no-duplicates.stderr rename to tests/ui/traits/alias/no-duplicates.stderr diff --git a/src/test/ui/traits/alias/no-extra-traits.rs b/tests/ui/traits/alias/no-extra-traits.rs similarity index 100% rename from src/test/ui/traits/alias/no-extra-traits.rs rename to tests/ui/traits/alias/no-extra-traits.rs diff --git a/src/test/ui/traits/alias/no-extra-traits.stderr b/tests/ui/traits/alias/no-extra-traits.stderr similarity index 100% rename from src/test/ui/traits/alias/no-extra-traits.stderr rename to tests/ui/traits/alias/no-extra-traits.stderr diff --git a/src/test/ui/traits/alias/object-fail.rs b/tests/ui/traits/alias/object-fail.rs similarity index 100% rename from src/test/ui/traits/alias/object-fail.rs rename to tests/ui/traits/alias/object-fail.rs diff --git a/src/test/ui/traits/alias/object-fail.stderr b/tests/ui/traits/alias/object-fail.stderr similarity index 100% rename from src/test/ui/traits/alias/object-fail.stderr rename to tests/ui/traits/alias/object-fail.stderr diff --git a/src/test/ui/traits/alias/object-wf.rs b/tests/ui/traits/alias/object-wf.rs similarity index 100% rename from src/test/ui/traits/alias/object-wf.rs rename to tests/ui/traits/alias/object-wf.rs diff --git a/src/test/ui/traits/alias/object.rs b/tests/ui/traits/alias/object.rs similarity index 100% rename from src/test/ui/traits/alias/object.rs rename to tests/ui/traits/alias/object.rs diff --git a/src/test/ui/traits/alias/only-maybe-bound.rs b/tests/ui/traits/alias/only-maybe-bound.rs similarity index 100% rename from src/test/ui/traits/alias/only-maybe-bound.rs rename to tests/ui/traits/alias/only-maybe-bound.rs diff --git a/src/test/ui/traits/alias/only-maybe-bound.stderr b/tests/ui/traits/alias/only-maybe-bound.stderr similarity index 100% rename from src/test/ui/traits/alias/only-maybe-bound.stderr rename to tests/ui/traits/alias/only-maybe-bound.stderr diff --git a/src/test/ui/traits/alias/self-in-const-generics.rs b/tests/ui/traits/alias/self-in-const-generics.rs similarity index 100% rename from src/test/ui/traits/alias/self-in-const-generics.rs rename to tests/ui/traits/alias/self-in-const-generics.rs diff --git a/src/test/ui/traits/alias/self-in-const-generics.stderr b/tests/ui/traits/alias/self-in-const-generics.stderr similarity index 100% rename from src/test/ui/traits/alias/self-in-const-generics.stderr rename to tests/ui/traits/alias/self-in-const-generics.stderr diff --git a/src/test/ui/traits/alias/self-in-generics.rs b/tests/ui/traits/alias/self-in-generics.rs similarity index 100% rename from src/test/ui/traits/alias/self-in-generics.rs rename to tests/ui/traits/alias/self-in-generics.rs diff --git a/src/test/ui/traits/alias/self-in-generics.stderr b/tests/ui/traits/alias/self-in-generics.stderr similarity index 100% rename from src/test/ui/traits/alias/self-in-generics.stderr rename to tests/ui/traits/alias/self-in-generics.stderr diff --git a/src/test/ui/traits/alias/style_lint.rs b/tests/ui/traits/alias/style_lint.rs similarity index 100% rename from src/test/ui/traits/alias/style_lint.rs rename to tests/ui/traits/alias/style_lint.rs diff --git a/src/test/ui/traits/alias/style_lint.stderr b/tests/ui/traits/alias/style_lint.stderr similarity index 100% rename from src/test/ui/traits/alias/style_lint.stderr rename to tests/ui/traits/alias/style_lint.stderr diff --git a/src/test/ui/traits/alias/suggest-trait-alias-instead-of-type.fixed b/tests/ui/traits/alias/suggest-trait-alias-instead-of-type.fixed similarity index 100% rename from src/test/ui/traits/alias/suggest-trait-alias-instead-of-type.fixed rename to tests/ui/traits/alias/suggest-trait-alias-instead-of-type.fixed diff --git a/src/test/ui/traits/alias/suggest-trait-alias-instead-of-type.rs b/tests/ui/traits/alias/suggest-trait-alias-instead-of-type.rs similarity index 100% rename from src/test/ui/traits/alias/suggest-trait-alias-instead-of-type.rs rename to tests/ui/traits/alias/suggest-trait-alias-instead-of-type.rs diff --git a/src/test/ui/traits/alias/suggest-trait-alias-instead-of-type.stderr b/tests/ui/traits/alias/suggest-trait-alias-instead-of-type.stderr similarity index 100% rename from src/test/ui/traits/alias/suggest-trait-alias-instead-of-type.stderr rename to tests/ui/traits/alias/suggest-trait-alias-instead-of-type.stderr diff --git a/src/test/ui/traits/alias/syntax-fail.rs b/tests/ui/traits/alias/syntax-fail.rs similarity index 100% rename from src/test/ui/traits/alias/syntax-fail.rs rename to tests/ui/traits/alias/syntax-fail.rs diff --git a/src/test/ui/traits/alias/syntax-fail.stderr b/tests/ui/traits/alias/syntax-fail.stderr similarity index 100% rename from src/test/ui/traits/alias/syntax-fail.stderr rename to tests/ui/traits/alias/syntax-fail.stderr diff --git a/src/test/ui/traits/alias/syntax.rs b/tests/ui/traits/alias/syntax.rs similarity index 100% rename from src/test/ui/traits/alias/syntax.rs rename to tests/ui/traits/alias/syntax.rs diff --git a/src/test/ui/traits/alias/wf.rs b/tests/ui/traits/alias/wf.rs similarity index 100% rename from src/test/ui/traits/alias/wf.rs rename to tests/ui/traits/alias/wf.rs diff --git a/src/test/ui/traits/alias/wf.stderr b/tests/ui/traits/alias/wf.stderr similarity index 100% rename from src/test/ui/traits/alias/wf.stderr rename to tests/ui/traits/alias/wf.stderr diff --git a/src/test/ui/traits/alignment-gep-tup-like-1.rs b/tests/ui/traits/alignment-gep-tup-like-1.rs similarity index 100% rename from src/test/ui/traits/alignment-gep-tup-like-1.rs rename to tests/ui/traits/alignment-gep-tup-like-1.rs diff --git a/src/test/ui/traits/anon-static-method.rs b/tests/ui/traits/anon-static-method.rs similarity index 100% rename from src/test/ui/traits/anon-static-method.rs rename to tests/ui/traits/anon-static-method.rs diff --git a/src/test/ui/traits/anon_trait_static_method_exe.rs b/tests/ui/traits/anon_trait_static_method_exe.rs similarity index 100% rename from src/test/ui/traits/anon_trait_static_method_exe.rs rename to tests/ui/traits/anon_trait_static_method_exe.rs diff --git a/src/test/ui/traits/as-struct-constructor.rs b/tests/ui/traits/as-struct-constructor.rs similarity index 100% rename from src/test/ui/traits/as-struct-constructor.rs rename to tests/ui/traits/as-struct-constructor.rs diff --git a/src/test/ui/traits/as-struct-constructor.stderr b/tests/ui/traits/as-struct-constructor.stderr similarity index 100% rename from src/test/ui/traits/as-struct-constructor.stderr rename to tests/ui/traits/as-struct-constructor.stderr diff --git a/src/test/ui/traits/assignability-trait.rs b/tests/ui/traits/assignability-trait.rs similarity index 100% rename from src/test/ui/traits/assignability-trait.rs rename to tests/ui/traits/assignability-trait.rs diff --git a/src/test/ui/traits/assoc-type-in-superbad.rs b/tests/ui/traits/assoc-type-in-superbad.rs similarity index 100% rename from src/test/ui/traits/assoc-type-in-superbad.rs rename to tests/ui/traits/assoc-type-in-superbad.rs diff --git a/src/test/ui/traits/assoc-type-in-superbad.stderr b/tests/ui/traits/assoc-type-in-superbad.stderr similarity index 100% rename from src/test/ui/traits/assoc-type-in-superbad.stderr rename to tests/ui/traits/assoc-type-in-superbad.stderr diff --git a/src/test/ui/traits/assoc-type-in-supertrait.rs b/tests/ui/traits/assoc-type-in-supertrait.rs similarity index 100% rename from src/test/ui/traits/assoc-type-in-supertrait.rs rename to tests/ui/traits/assoc-type-in-supertrait.rs diff --git a/src/test/ui/traits/associated_type_bound/assoc_type_bound_with_struct.rs b/tests/ui/traits/associated_type_bound/assoc_type_bound_with_struct.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/assoc_type_bound_with_struct.rs rename to tests/ui/traits/associated_type_bound/assoc_type_bound_with_struct.rs diff --git a/src/test/ui/traits/associated_type_bound/assoc_type_bound_with_struct.stderr b/tests/ui/traits/associated_type_bound/assoc_type_bound_with_struct.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/assoc_type_bound_with_struct.stderr rename to tests/ui/traits/associated_type_bound/assoc_type_bound_with_struct.stderr diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-1.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-1.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-1.stderr diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-2-ok.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-2-ok.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-2-ok.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-2-ok.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-2.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-2.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-2.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-2.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-2.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-2.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-2.stderr rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-2.stderr diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-3.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-3.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-4.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-4.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-4.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-4.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-4.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-4.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-4.stderr rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-4.stderr diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-5.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-5.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-5.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-5.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-5.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-5.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-5.stderr rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-5.stderr diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-6.rs b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-6.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-6.rs rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-6.rs diff --git a/src/test/ui/traits/associated_type_bound/check-trait-object-bounds-6.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-6.stderr similarity index 100% rename from src/test/ui/traits/associated_type_bound/check-trait-object-bounds-6.stderr rename to tests/ui/traits/associated_type_bound/check-trait-object-bounds-6.stderr diff --git a/src/test/ui/traits/associated_type_bound/issue-51446.rs b/tests/ui/traits/associated_type_bound/issue-51446.rs similarity index 100% rename from src/test/ui/traits/associated_type_bound/issue-51446.rs rename to tests/ui/traits/associated_type_bound/issue-51446.rs diff --git a/src/test/ui/traits/astconv-cycle-between-and-type.rs b/tests/ui/traits/astconv-cycle-between-and-type.rs similarity index 100% rename from src/test/ui/traits/astconv-cycle-between-and-type.rs rename to tests/ui/traits/astconv-cycle-between-and-type.rs diff --git a/src/test/ui/traits/augmented-assignments-trait.rs b/tests/ui/traits/augmented-assignments-trait.rs similarity index 100% rename from src/test/ui/traits/augmented-assignments-trait.rs rename to tests/ui/traits/augmented-assignments-trait.rs diff --git a/src/test/ui/traits/auxiliary/anon_trait_static_method_lib.rs b/tests/ui/traits/auxiliary/anon_trait_static_method_lib.rs similarity index 100% rename from src/test/ui/traits/auxiliary/anon_trait_static_method_lib.rs rename to tests/ui/traits/auxiliary/anon_trait_static_method_lib.rs diff --git a/src/test/ui/traits/auxiliary/go_trait.rs b/tests/ui/traits/auxiliary/go_trait.rs similarity index 100% rename from src/test/ui/traits/auxiliary/go_trait.rs rename to tests/ui/traits/auxiliary/go_trait.rs diff --git a/src/test/ui/traits/auxiliary/issue_89119_intercrate_caching.rs b/tests/ui/traits/auxiliary/issue_89119_intercrate_caching.rs similarity index 100% rename from src/test/ui/traits/auxiliary/issue_89119_intercrate_caching.rs rename to tests/ui/traits/auxiliary/issue_89119_intercrate_caching.rs diff --git a/src/test/ui/traits/auxiliary/trait_safety_lib.rs b/tests/ui/traits/auxiliary/trait_safety_lib.rs similarity index 100% rename from src/test/ui/traits/auxiliary/trait_safety_lib.rs rename to tests/ui/traits/auxiliary/trait_safety_lib.rs diff --git a/src/test/ui/traits/auxiliary/traitimpl.rs b/tests/ui/traits/auxiliary/traitimpl.rs similarity index 100% rename from src/test/ui/traits/auxiliary/traitimpl.rs rename to tests/ui/traits/auxiliary/traitimpl.rs diff --git a/src/test/ui/traits/bad-method-typaram-kind.rs b/tests/ui/traits/bad-method-typaram-kind.rs similarity index 100% rename from src/test/ui/traits/bad-method-typaram-kind.rs rename to tests/ui/traits/bad-method-typaram-kind.rs diff --git a/src/test/ui/traits/bad-method-typaram-kind.stderr b/tests/ui/traits/bad-method-typaram-kind.stderr similarity index 100% rename from src/test/ui/traits/bad-method-typaram-kind.stderr rename to tests/ui/traits/bad-method-typaram-kind.stderr diff --git a/src/test/ui/traits/bad-sized.rs b/tests/ui/traits/bad-sized.rs similarity index 100% rename from src/test/ui/traits/bad-sized.rs rename to tests/ui/traits/bad-sized.rs diff --git a/src/test/ui/traits/bad-sized.stderr b/tests/ui/traits/bad-sized.stderr similarity index 100% rename from src/test/ui/traits/bad-sized.stderr rename to tests/ui/traits/bad-sized.stderr diff --git a/src/test/ui/traits/bound/assoc-fn-bound-root-obligation.rs b/tests/ui/traits/bound/assoc-fn-bound-root-obligation.rs similarity index 100% rename from src/test/ui/traits/bound/assoc-fn-bound-root-obligation.rs rename to tests/ui/traits/bound/assoc-fn-bound-root-obligation.rs diff --git a/src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr b/tests/ui/traits/bound/assoc-fn-bound-root-obligation.stderr similarity index 100% rename from src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr rename to tests/ui/traits/bound/assoc-fn-bound-root-obligation.stderr diff --git a/src/test/ui/traits/bound/auxiliary/crate_a1.rs b/tests/ui/traits/bound/auxiliary/crate_a1.rs similarity index 100% rename from src/test/ui/traits/bound/auxiliary/crate_a1.rs rename to tests/ui/traits/bound/auxiliary/crate_a1.rs diff --git a/src/test/ui/traits/bound/auxiliary/crate_a2.rs b/tests/ui/traits/bound/auxiliary/crate_a2.rs similarity index 100% rename from src/test/ui/traits/bound/auxiliary/crate_a2.rs rename to tests/ui/traits/bound/auxiliary/crate_a2.rs diff --git a/src/test/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs b/tests/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs similarity index 100% rename from src/test/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs rename to tests/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs diff --git a/src/test/ui/traits/bound/basic.rs b/tests/ui/traits/bound/basic.rs similarity index 100% rename from src/test/ui/traits/bound/basic.rs rename to tests/ui/traits/bound/basic.rs diff --git a/src/test/ui/traits/bound/generic_trait.rs b/tests/ui/traits/bound/generic_trait.rs similarity index 100% rename from src/test/ui/traits/bound/generic_trait.rs rename to tests/ui/traits/bound/generic_trait.rs diff --git a/src/test/ui/traits/bound/impl-comparison-duplicates.rs b/tests/ui/traits/bound/impl-comparison-duplicates.rs similarity index 100% rename from src/test/ui/traits/bound/impl-comparison-duplicates.rs rename to tests/ui/traits/bound/impl-comparison-duplicates.rs diff --git a/src/test/ui/traits/bound/in-arc.rs b/tests/ui/traits/bound/in-arc.rs similarity index 100% rename from src/test/ui/traits/bound/in-arc.rs rename to tests/ui/traits/bound/in-arc.rs diff --git a/src/test/ui/traits/bound/multiple.rs b/tests/ui/traits/bound/multiple.rs similarity index 100% rename from src/test/ui/traits/bound/multiple.rs rename to tests/ui/traits/bound/multiple.rs diff --git a/src/test/ui/traits/bound/not-on-bare-trait.rs b/tests/ui/traits/bound/not-on-bare-trait.rs similarity index 100% rename from src/test/ui/traits/bound/not-on-bare-trait.rs rename to tests/ui/traits/bound/not-on-bare-trait.rs diff --git a/src/test/ui/traits/bound/not-on-bare-trait.stderr b/tests/ui/traits/bound/not-on-bare-trait.stderr similarity index 100% rename from src/test/ui/traits/bound/not-on-bare-trait.stderr rename to tests/ui/traits/bound/not-on-bare-trait.stderr diff --git a/src/test/ui/traits/bound/not-on-struct.rs b/tests/ui/traits/bound/not-on-struct.rs similarity index 100% rename from src/test/ui/traits/bound/not-on-struct.rs rename to tests/ui/traits/bound/not-on-struct.rs diff --git a/src/test/ui/traits/bound/not-on-struct.stderr b/tests/ui/traits/bound/not-on-struct.stderr similarity index 100% rename from src/test/ui/traits/bound/not-on-struct.stderr rename to tests/ui/traits/bound/not-on-struct.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-fns.rs b/tests/ui/traits/bound/on-structs-and-enums-in-fns.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-in-fns.rs rename to tests/ui/traits/bound/on-structs-and-enums-in-fns.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-fns.stderr b/tests/ui/traits/bound/on-structs-and-enums-in-fns.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-in-fns.stderr rename to tests/ui/traits/bound/on-structs-and-enums-in-fns.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.rs b/tests/ui/traits/bound/on-structs-and-enums-in-impls.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-in-impls.rs rename to tests/ui/traits/bound/on-structs-and-enums-in-impls.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr b/tests/ui/traits/bound/on-structs-and-enums-in-impls.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr rename to tests/ui/traits/bound/on-structs-and-enums-in-impls.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-locals.rs b/tests/ui/traits/bound/on-structs-and-enums-locals.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-locals.rs rename to tests/ui/traits/bound/on-structs-and-enums-locals.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-locals.stderr b/tests/ui/traits/bound/on-structs-and-enums-locals.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-locals.stderr rename to tests/ui/traits/bound/on-structs-and-enums-locals.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-rpass.rs b/tests/ui/traits/bound/on-structs-and-enums-rpass.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-rpass.rs rename to tests/ui/traits/bound/on-structs-and-enums-rpass.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-static.rs b/tests/ui/traits/bound/on-structs-and-enums-static.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-static.rs rename to tests/ui/traits/bound/on-structs-and-enums-static.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-static.stderr b/tests/ui/traits/bound/on-structs-and-enums-static.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-static.stderr rename to tests/ui/traits/bound/on-structs-and-enums-static.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc.rs b/tests/ui/traits/bound/on-structs-and-enums-xc.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-xc.rs rename to tests/ui/traits/bound/on-structs-and-enums-xc.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc.stderr b/tests/ui/traits/bound/on-structs-and-enums-xc.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-xc.stderr rename to tests/ui/traits/bound/on-structs-and-enums-xc.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc1.rs b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-xc1.rs rename to tests/ui/traits/bound/on-structs-and-enums-xc1.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr b/tests/ui/traits/bound/on-structs-and-enums-xc1.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr rename to tests/ui/traits/bound/on-structs-and-enums-xc1.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums.rs b/tests/ui/traits/bound/on-structs-and-enums.rs similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums.rs rename to tests/ui/traits/bound/on-structs-and-enums.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums.stderr b/tests/ui/traits/bound/on-structs-and-enums.stderr similarity index 100% rename from src/test/ui/traits/bound/on-structs-and-enums.stderr rename to tests/ui/traits/bound/on-structs-and-enums.stderr diff --git a/src/test/ui/traits/bound/recursion.rs b/tests/ui/traits/bound/recursion.rs similarity index 100% rename from src/test/ui/traits/bound/recursion.rs rename to tests/ui/traits/bound/recursion.rs diff --git a/src/test/ui/traits/bound/same-crate-name.rs b/tests/ui/traits/bound/same-crate-name.rs similarity index 100% rename from src/test/ui/traits/bound/same-crate-name.rs rename to tests/ui/traits/bound/same-crate-name.rs diff --git a/src/test/ui/traits/bound/same-crate-name.stderr b/tests/ui/traits/bound/same-crate-name.stderr similarity index 100% rename from src/test/ui/traits/bound/same-crate-name.stderr rename to tests/ui/traits/bound/same-crate-name.stderr diff --git a/src/test/ui/traits/bound/sugar.rs b/tests/ui/traits/bound/sugar.rs similarity index 100% rename from src/test/ui/traits/bound/sugar.rs rename to tests/ui/traits/bound/sugar.rs diff --git a/src/test/ui/traits/bound/sugar.stderr b/tests/ui/traits/bound/sugar.stderr similarity index 100% rename from src/test/ui/traits/bound/sugar.stderr rename to tests/ui/traits/bound/sugar.stderr diff --git a/src/test/ui/traits/bug-7183-generics.rs b/tests/ui/traits/bug-7183-generics.rs similarity index 100% rename from src/test/ui/traits/bug-7183-generics.rs rename to tests/ui/traits/bug-7183-generics.rs diff --git a/src/test/ui/traits/bug-7295.rs b/tests/ui/traits/bug-7295.rs similarity index 100% rename from src/test/ui/traits/bug-7295.rs rename to tests/ui/traits/bug-7295.rs diff --git a/src/test/ui/traits/cache-issue-18209.rs b/tests/ui/traits/cache-issue-18209.rs similarity index 100% rename from src/test/ui/traits/cache-issue-18209.rs rename to tests/ui/traits/cache-issue-18209.rs diff --git a/src/test/ui/traits/cache-reached-depth-ice.rs b/tests/ui/traits/cache-reached-depth-ice.rs similarity index 100% rename from src/test/ui/traits/cache-reached-depth-ice.rs rename to tests/ui/traits/cache-reached-depth-ice.rs diff --git a/src/test/ui/traits/cache-reached-depth-ice.stderr b/tests/ui/traits/cache-reached-depth-ice.stderr similarity index 100% rename from src/test/ui/traits/cache-reached-depth-ice.stderr rename to tests/ui/traits/cache-reached-depth-ice.stderr diff --git a/src/test/ui/traits/coercion-generic-bad.rs b/tests/ui/traits/coercion-generic-bad.rs similarity index 100% rename from src/test/ui/traits/coercion-generic-bad.rs rename to tests/ui/traits/coercion-generic-bad.rs diff --git a/src/test/ui/traits/coercion-generic-bad.stderr b/tests/ui/traits/coercion-generic-bad.stderr similarity index 100% rename from src/test/ui/traits/coercion-generic-bad.stderr rename to tests/ui/traits/coercion-generic-bad.stderr diff --git a/src/test/ui/traits/coercion-generic-regions.rs b/tests/ui/traits/coercion-generic-regions.rs similarity index 100% rename from src/test/ui/traits/coercion-generic-regions.rs rename to tests/ui/traits/coercion-generic-regions.rs diff --git a/src/test/ui/traits/coercion-generic-regions.stderr b/tests/ui/traits/coercion-generic-regions.stderr similarity index 100% rename from src/test/ui/traits/coercion-generic-regions.stderr rename to tests/ui/traits/coercion-generic-regions.stderr diff --git a/src/test/ui/traits/coercion-generic.rs b/tests/ui/traits/coercion-generic.rs similarity index 100% rename from src/test/ui/traits/coercion-generic.rs rename to tests/ui/traits/coercion-generic.rs diff --git a/src/test/ui/traits/coercion.rs b/tests/ui/traits/coercion.rs similarity index 100% rename from src/test/ui/traits/coercion.rs rename to tests/ui/traits/coercion.rs diff --git a/src/test/ui/traits/composition-trivial.rs b/tests/ui/traits/composition-trivial.rs similarity index 100% rename from src/test/ui/traits/composition-trivial.rs rename to tests/ui/traits/composition-trivial.rs diff --git a/src/test/ui/traits/conditional-dispatch.rs b/tests/ui/traits/conditional-dispatch.rs similarity index 100% rename from src/test/ui/traits/conditional-dispatch.rs rename to tests/ui/traits/conditional-dispatch.rs diff --git a/src/test/ui/traits/conditional-model-fn.rs b/tests/ui/traits/conditional-model-fn.rs similarity index 100% rename from src/test/ui/traits/conditional-model-fn.rs rename to tests/ui/traits/conditional-model-fn.rs diff --git a/src/test/ui/traits/conservative_impl_trait.rs b/tests/ui/traits/conservative_impl_trait.rs similarity index 100% rename from src/test/ui/traits/conservative_impl_trait.rs rename to tests/ui/traits/conservative_impl_trait.rs diff --git a/src/test/ui/traits/copy-guessing.rs b/tests/ui/traits/copy-guessing.rs similarity index 100% rename from src/test/ui/traits/copy-guessing.rs rename to tests/ui/traits/copy-guessing.rs diff --git a/src/test/ui/traits/copy-impl-cannot-normalize.rs b/tests/ui/traits/copy-impl-cannot-normalize.rs similarity index 100% rename from src/test/ui/traits/copy-impl-cannot-normalize.rs rename to tests/ui/traits/copy-impl-cannot-normalize.rs diff --git a/src/test/ui/traits/copy-impl-cannot-normalize.stderr b/tests/ui/traits/copy-impl-cannot-normalize.stderr similarity index 100% rename from src/test/ui/traits/copy-impl-cannot-normalize.stderr rename to tests/ui/traits/copy-impl-cannot-normalize.stderr diff --git a/src/test/ui/traits/cycle-cache-err-60010.rs b/tests/ui/traits/cycle-cache-err-60010.rs similarity index 100% rename from src/test/ui/traits/cycle-cache-err-60010.rs rename to tests/ui/traits/cycle-cache-err-60010.rs diff --git a/src/test/ui/traits/cycle-cache-err-60010.stderr b/tests/ui/traits/cycle-cache-err-60010.stderr similarity index 100% rename from src/test/ui/traits/cycle-cache-err-60010.stderr rename to tests/ui/traits/cycle-cache-err-60010.stderr diff --git a/src/test/ui/traits/cycle-generic-bound.rs b/tests/ui/traits/cycle-generic-bound.rs similarity index 100% rename from src/test/ui/traits/cycle-generic-bound.rs rename to tests/ui/traits/cycle-generic-bound.rs diff --git a/src/test/ui/traits/cycle-type-trait.rs b/tests/ui/traits/cycle-type-trait.rs similarity index 100% rename from src/test/ui/traits/cycle-type-trait.rs rename to tests/ui/traits/cycle-type-trait.rs diff --git a/src/test/ui/traits/default-method/auxiliary/xc.rs b/tests/ui/traits/default-method/auxiliary/xc.rs similarity index 100% rename from src/test/ui/traits/default-method/auxiliary/xc.rs rename to tests/ui/traits/default-method/auxiliary/xc.rs diff --git a/src/test/ui/traits/default-method/auxiliary/xc_2.rs b/tests/ui/traits/default-method/auxiliary/xc_2.rs similarity index 100% rename from src/test/ui/traits/default-method/auxiliary/xc_2.rs rename to tests/ui/traits/default-method/auxiliary/xc_2.rs diff --git a/src/test/ui/traits/default-method/bound-subst.rs b/tests/ui/traits/default-method/bound-subst.rs similarity index 100% rename from src/test/ui/traits/default-method/bound-subst.rs rename to tests/ui/traits/default-method/bound-subst.rs diff --git a/src/test/ui/traits/default-method/bound-subst2.rs b/tests/ui/traits/default-method/bound-subst2.rs similarity index 100% rename from src/test/ui/traits/default-method/bound-subst2.rs rename to tests/ui/traits/default-method/bound-subst2.rs diff --git a/src/test/ui/traits/default-method/bound-subst3.rs b/tests/ui/traits/default-method/bound-subst3.rs similarity index 100% rename from src/test/ui/traits/default-method/bound-subst3.rs rename to tests/ui/traits/default-method/bound-subst3.rs diff --git a/src/test/ui/traits/default-method/bound-subst4.rs b/tests/ui/traits/default-method/bound-subst4.rs similarity index 100% rename from src/test/ui/traits/default-method/bound-subst4.rs rename to tests/ui/traits/default-method/bound-subst4.rs diff --git a/src/test/ui/traits/default-method/bound.rs b/tests/ui/traits/default-method/bound.rs similarity index 100% rename from src/test/ui/traits/default-method/bound.rs rename to tests/ui/traits/default-method/bound.rs diff --git a/src/test/ui/traits/default-method/macro.rs b/tests/ui/traits/default-method/macro.rs similarity index 100% rename from src/test/ui/traits/default-method/macro.rs rename to tests/ui/traits/default-method/macro.rs diff --git a/src/test/ui/traits/default-method/mut.rs b/tests/ui/traits/default-method/mut.rs similarity index 100% rename from src/test/ui/traits/default-method/mut.rs rename to tests/ui/traits/default-method/mut.rs diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of.rs b/tests/ui/traits/default-method/rustc_must_implement_one_of.rs similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of.rs rename to tests/ui/traits/default-method/rustc_must_implement_one_of.rs diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of.stderr b/tests/ui/traits/default-method/rustc_must_implement_one_of.stderr similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of.stderr rename to tests/ui/traits/default-method/rustc_must_implement_one_of.stderr diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of_duplicates.rs b/tests/ui/traits/default-method/rustc_must_implement_one_of_duplicates.rs similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of_duplicates.rs rename to tests/ui/traits/default-method/rustc_must_implement_one_of_duplicates.rs diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of_duplicates.stderr b/tests/ui/traits/default-method/rustc_must_implement_one_of_duplicates.stderr similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of_duplicates.stderr rename to tests/ui/traits/default-method/rustc_must_implement_one_of_duplicates.stderr diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of_gated.rs b/tests/ui/traits/default-method/rustc_must_implement_one_of_gated.rs similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of_gated.rs rename to tests/ui/traits/default-method/rustc_must_implement_one_of_gated.rs diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr b/tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr rename to tests/ui/traits/default-method/rustc_must_implement_one_of_gated.stderr diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of_misuse.rs b/tests/ui/traits/default-method/rustc_must_implement_one_of_misuse.rs similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of_misuse.rs rename to tests/ui/traits/default-method/rustc_must_implement_one_of_misuse.rs diff --git a/src/test/ui/traits/default-method/rustc_must_implement_one_of_misuse.stderr b/tests/ui/traits/default-method/rustc_must_implement_one_of_misuse.stderr similarity index 100% rename from src/test/ui/traits/default-method/rustc_must_implement_one_of_misuse.stderr rename to tests/ui/traits/default-method/rustc_must_implement_one_of_misuse.stderr diff --git a/src/test/ui/traits/default-method/self.rs b/tests/ui/traits/default-method/self.rs similarity index 100% rename from src/test/ui/traits/default-method/self.rs rename to tests/ui/traits/default-method/self.rs diff --git a/src/test/ui/traits/default-method/supervtable.rs b/tests/ui/traits/default-method/supervtable.rs similarity index 100% rename from src/test/ui/traits/default-method/supervtable.rs rename to tests/ui/traits/default-method/supervtable.rs diff --git a/src/test/ui/traits/default-method/trivial.rs b/tests/ui/traits/default-method/trivial.rs similarity index 100% rename from src/test/ui/traits/default-method/trivial.rs rename to tests/ui/traits/default-method/trivial.rs diff --git a/src/test/ui/traits/default-method/xc-2.rs b/tests/ui/traits/default-method/xc-2.rs similarity index 100% rename from src/test/ui/traits/default-method/xc-2.rs rename to tests/ui/traits/default-method/xc-2.rs diff --git a/src/test/ui/traits/default-method/xc.rs b/tests/ui/traits/default-method/xc.rs similarity index 100% rename from src/test/ui/traits/default-method/xc.rs rename to tests/ui/traits/default-method/xc.rs diff --git a/src/test/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs b/tests/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs similarity index 100% rename from src/test/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs rename to tests/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.rs diff --git a/src/test/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr b/tests/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr similarity index 100% rename from src/test/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr rename to tests/ui/traits/do-not-mention-type-params-by-name-in-suggestion-issue-96292.stderr diff --git a/src/test/ui/traits/duplicate-methods.rs b/tests/ui/traits/duplicate-methods.rs similarity index 100% rename from src/test/ui/traits/duplicate-methods.rs rename to tests/ui/traits/duplicate-methods.rs diff --git a/src/test/ui/traits/duplicate-methods.stderr b/tests/ui/traits/duplicate-methods.stderr similarity index 100% rename from src/test/ui/traits/duplicate-methods.stderr rename to tests/ui/traits/duplicate-methods.stderr diff --git a/src/test/ui/traits/dyn-trait.rs b/tests/ui/traits/dyn-trait.rs similarity index 100% rename from src/test/ui/traits/dyn-trait.rs rename to tests/ui/traits/dyn-trait.rs diff --git a/src/test/ui/traits/early-vtbl-resolution.rs b/tests/ui/traits/early-vtbl-resolution.rs similarity index 100% rename from src/test/ui/traits/early-vtbl-resolution.rs rename to tests/ui/traits/early-vtbl-resolution.rs diff --git a/src/test/ui/traits/elaborate-type-region.rs b/tests/ui/traits/elaborate-type-region.rs similarity index 100% rename from src/test/ui/traits/elaborate-type-region.rs rename to tests/ui/traits/elaborate-type-region.rs diff --git a/src/test/ui/traits/false-ambiguity-where-clause-builtin-bound.rs b/tests/ui/traits/false-ambiguity-where-clause-builtin-bound.rs similarity index 100% rename from src/test/ui/traits/false-ambiguity-where-clause-builtin-bound.rs rename to tests/ui/traits/false-ambiguity-where-clause-builtin-bound.rs diff --git a/src/test/ui/traits/fmt-pointer-trait.rs b/tests/ui/traits/fmt-pointer-trait.rs similarity index 100% rename from src/test/ui/traits/fmt-pointer-trait.rs rename to tests/ui/traits/fmt-pointer-trait.rs diff --git a/src/test/ui/traits/generic.rs b/tests/ui/traits/generic.rs similarity index 100% rename from src/test/ui/traits/generic.rs rename to tests/ui/traits/generic.rs diff --git a/src/test/ui/traits/impl-1.rs b/tests/ui/traits/impl-1.rs similarity index 100% rename from src/test/ui/traits/impl-1.rs rename to tests/ui/traits/impl-1.rs diff --git a/src/test/ui/traits/impl-1.stderr b/tests/ui/traits/impl-1.stderr similarity index 100% rename from src/test/ui/traits/impl-1.stderr rename to tests/ui/traits/impl-1.stderr diff --git a/src/test/ui/traits/impl-2.rs b/tests/ui/traits/impl-2.rs similarity index 100% rename from src/test/ui/traits/impl-2.rs rename to tests/ui/traits/impl-2.rs diff --git a/src/test/ui/traits/impl-bounds-checking.rs b/tests/ui/traits/impl-bounds-checking.rs similarity index 100% rename from src/test/ui/traits/impl-bounds-checking.rs rename to tests/ui/traits/impl-bounds-checking.rs diff --git a/src/test/ui/traits/impl-bounds-checking.stderr b/tests/ui/traits/impl-bounds-checking.stderr similarity index 100% rename from src/test/ui/traits/impl-bounds-checking.stderr rename to tests/ui/traits/impl-bounds-checking.stderr diff --git a/src/test/ui/traits/impl-can-not-have-untraitful-items.rs b/tests/ui/traits/impl-can-not-have-untraitful-items.rs similarity index 100% rename from src/test/ui/traits/impl-can-not-have-untraitful-items.rs rename to tests/ui/traits/impl-can-not-have-untraitful-items.rs diff --git a/src/test/ui/traits/impl-can-not-have-untraitful-items.stderr b/tests/ui/traits/impl-can-not-have-untraitful-items.stderr similarity index 100% rename from src/test/ui/traits/impl-can-not-have-untraitful-items.stderr rename to tests/ui/traits/impl-can-not-have-untraitful-items.stderr diff --git a/src/test/ui/traits/impl-different-num-params.rs b/tests/ui/traits/impl-different-num-params.rs similarity index 100% rename from src/test/ui/traits/impl-different-num-params.rs rename to tests/ui/traits/impl-different-num-params.rs diff --git a/src/test/ui/traits/impl-different-num-params.stderr b/tests/ui/traits/impl-different-num-params.stderr similarity index 100% rename from src/test/ui/traits/impl-different-num-params.stderr rename to tests/ui/traits/impl-different-num-params.stderr diff --git a/src/test/ui/traits/impl-evaluation-order.rs b/tests/ui/traits/impl-evaluation-order.rs similarity index 100% rename from src/test/ui/traits/impl-evaluation-order.rs rename to tests/ui/traits/impl-evaluation-order.rs diff --git a/src/test/ui/traits/impl-for-module.rs b/tests/ui/traits/impl-for-module.rs similarity index 100% rename from src/test/ui/traits/impl-for-module.rs rename to tests/ui/traits/impl-for-module.rs diff --git a/src/test/ui/traits/impl-for-module.stderr b/tests/ui/traits/impl-for-module.stderr similarity index 100% rename from src/test/ui/traits/impl-for-module.stderr rename to tests/ui/traits/impl-for-module.stderr diff --git a/src/test/ui/traits/impl-implicit-trait.rs b/tests/ui/traits/impl-implicit-trait.rs similarity index 100% rename from src/test/ui/traits/impl-implicit-trait.rs rename to tests/ui/traits/impl-implicit-trait.rs diff --git a/src/test/ui/traits/impl-inherent-prefer-over-trait.rs b/tests/ui/traits/impl-inherent-prefer-over-trait.rs similarity index 100% rename from src/test/ui/traits/impl-inherent-prefer-over-trait.rs rename to tests/ui/traits/impl-inherent-prefer-over-trait.rs diff --git a/src/test/ui/traits/impl-method-mismatch.rs b/tests/ui/traits/impl-method-mismatch.rs similarity index 100% rename from src/test/ui/traits/impl-method-mismatch.rs rename to tests/ui/traits/impl-method-mismatch.rs diff --git a/src/test/ui/traits/impl-method-mismatch.stderr b/tests/ui/traits/impl-method-mismatch.stderr similarity index 100% rename from src/test/ui/traits/impl-method-mismatch.stderr rename to tests/ui/traits/impl-method-mismatch.stderr diff --git a/src/test/ui/traits/impl-object-overlap-issue-23853.rs b/tests/ui/traits/impl-object-overlap-issue-23853.rs similarity index 100% rename from src/test/ui/traits/impl-object-overlap-issue-23853.rs rename to tests/ui/traits/impl-object-overlap-issue-23853.rs diff --git a/src/test/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.rs b/tests/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.rs similarity index 100% rename from src/test/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.rs rename to tests/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.rs diff --git a/src/test/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.stderr b/tests/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.stderr similarity index 100% rename from src/test/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.stderr rename to tests/ui/traits/impl-of-supertrait-has-wrong-lifetime-parameters.stderr diff --git a/src/test/ui/traits/impl.rs b/tests/ui/traits/impl.rs similarity index 100% rename from src/test/ui/traits/impl.rs rename to tests/ui/traits/impl.rs diff --git a/src/test/ui/traits/impl_trait_as_trait_return_position.rs b/tests/ui/traits/impl_trait_as_trait_return_position.rs similarity index 100% rename from src/test/ui/traits/impl_trait_as_trait_return_position.rs rename to tests/ui/traits/impl_trait_as_trait_return_position.rs diff --git a/src/test/ui/traits/inductive-overflow/lifetime.rs b/tests/ui/traits/inductive-overflow/lifetime.rs similarity index 100% rename from src/test/ui/traits/inductive-overflow/lifetime.rs rename to tests/ui/traits/inductive-overflow/lifetime.rs diff --git a/src/test/ui/traits/inductive-overflow/lifetime.stderr b/tests/ui/traits/inductive-overflow/lifetime.stderr similarity index 100% rename from src/test/ui/traits/inductive-overflow/lifetime.stderr rename to tests/ui/traits/inductive-overflow/lifetime.stderr diff --git a/src/test/ui/traits/inductive-overflow/simultaneous.rs b/tests/ui/traits/inductive-overflow/simultaneous.rs similarity index 100% rename from src/test/ui/traits/inductive-overflow/simultaneous.rs rename to tests/ui/traits/inductive-overflow/simultaneous.rs diff --git a/src/test/ui/traits/inductive-overflow/simultaneous.stderr b/tests/ui/traits/inductive-overflow/simultaneous.stderr similarity index 100% rename from src/test/ui/traits/inductive-overflow/simultaneous.stderr rename to tests/ui/traits/inductive-overflow/simultaneous.stderr diff --git a/src/test/ui/traits/inductive-overflow/supertrait-auto-trait.rs b/tests/ui/traits/inductive-overflow/supertrait-auto-trait.rs similarity index 100% rename from src/test/ui/traits/inductive-overflow/supertrait-auto-trait.rs rename to tests/ui/traits/inductive-overflow/supertrait-auto-trait.rs diff --git a/src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr b/tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr similarity index 100% rename from src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr rename to tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr diff --git a/src/test/ui/traits/inductive-overflow/supertrait.rs b/tests/ui/traits/inductive-overflow/supertrait.rs similarity index 100% rename from src/test/ui/traits/inductive-overflow/supertrait.rs rename to tests/ui/traits/inductive-overflow/supertrait.rs diff --git a/src/test/ui/traits/inductive-overflow/supertrait.stderr b/tests/ui/traits/inductive-overflow/supertrait.stderr similarity index 100% rename from src/test/ui/traits/inductive-overflow/supertrait.stderr rename to tests/ui/traits/inductive-overflow/supertrait.stderr diff --git a/src/test/ui/traits/inductive-overflow/two-traits.rs b/tests/ui/traits/inductive-overflow/two-traits.rs similarity index 100% rename from src/test/ui/traits/inductive-overflow/two-traits.rs rename to tests/ui/traits/inductive-overflow/two-traits.rs diff --git a/src/test/ui/traits/inductive-overflow/two-traits.stderr b/tests/ui/traits/inductive-overflow/two-traits.stderr similarity index 100% rename from src/test/ui/traits/inductive-overflow/two-traits.stderr rename to tests/ui/traits/inductive-overflow/two-traits.stderr diff --git a/src/test/ui/traits/infer-from-object-issue-26952.rs b/tests/ui/traits/infer-from-object-issue-26952.rs similarity index 100% rename from src/test/ui/traits/infer-from-object-issue-26952.rs rename to tests/ui/traits/infer-from-object-issue-26952.rs diff --git a/src/test/ui/traits/inherent-method-order.rs b/tests/ui/traits/inherent-method-order.rs similarity index 100% rename from src/test/ui/traits/inherent-method-order.rs rename to tests/ui/traits/inherent-method-order.rs diff --git a/src/test/ui/traits/inheritance/auto-xc-2.rs b/tests/ui/traits/inheritance/auto-xc-2.rs similarity index 100% rename from src/test/ui/traits/inheritance/auto-xc-2.rs rename to tests/ui/traits/inheritance/auto-xc-2.rs diff --git a/src/test/ui/traits/inheritance/auto-xc.rs b/tests/ui/traits/inheritance/auto-xc.rs similarity index 100% rename from src/test/ui/traits/inheritance/auto-xc.rs rename to tests/ui/traits/inheritance/auto-xc.rs diff --git a/src/test/ui/traits/inheritance/auto.rs b/tests/ui/traits/inheritance/auto.rs similarity index 100% rename from src/test/ui/traits/inheritance/auto.rs rename to tests/ui/traits/inheritance/auto.rs diff --git a/src/test/ui/traits/inheritance/auxiliary/auto_xc.rs b/tests/ui/traits/inheritance/auxiliary/auto_xc.rs similarity index 100% rename from src/test/ui/traits/inheritance/auxiliary/auto_xc.rs rename to tests/ui/traits/inheritance/auxiliary/auto_xc.rs diff --git a/src/test/ui/traits/inheritance/auxiliary/auto_xc_2.rs b/tests/ui/traits/inheritance/auxiliary/auto_xc_2.rs similarity index 100% rename from src/test/ui/traits/inheritance/auxiliary/auto_xc_2.rs rename to tests/ui/traits/inheritance/auxiliary/auto_xc_2.rs diff --git a/src/test/ui/traits/inheritance/auxiliary/overloading_xc.rs b/tests/ui/traits/inheritance/auxiliary/overloading_xc.rs similarity index 100% rename from src/test/ui/traits/inheritance/auxiliary/overloading_xc.rs rename to tests/ui/traits/inheritance/auxiliary/overloading_xc.rs diff --git a/src/test/ui/traits/inheritance/auxiliary/xc_call.rs b/tests/ui/traits/inheritance/auxiliary/xc_call.rs similarity index 100% rename from src/test/ui/traits/inheritance/auxiliary/xc_call.rs rename to tests/ui/traits/inheritance/auxiliary/xc_call.rs diff --git a/src/test/ui/traits/inheritance/basic.rs b/tests/ui/traits/inheritance/basic.rs similarity index 100% rename from src/test/ui/traits/inheritance/basic.rs rename to tests/ui/traits/inheritance/basic.rs diff --git a/src/test/ui/traits/inheritance/call-bound-inherited.rs b/tests/ui/traits/inheritance/call-bound-inherited.rs similarity index 100% rename from src/test/ui/traits/inheritance/call-bound-inherited.rs rename to tests/ui/traits/inheritance/call-bound-inherited.rs diff --git a/src/test/ui/traits/inheritance/call-bound-inherited2.rs b/tests/ui/traits/inheritance/call-bound-inherited2.rs similarity index 100% rename from src/test/ui/traits/inheritance/call-bound-inherited2.rs rename to tests/ui/traits/inheritance/call-bound-inherited2.rs diff --git a/src/test/ui/traits/inheritance/cast-without-call-to-supertrait.rs b/tests/ui/traits/inheritance/cast-without-call-to-supertrait.rs similarity index 100% rename from src/test/ui/traits/inheritance/cast-without-call-to-supertrait.rs rename to tests/ui/traits/inheritance/cast-without-call-to-supertrait.rs diff --git a/src/test/ui/traits/inheritance/cast.rs b/tests/ui/traits/inheritance/cast.rs similarity index 100% rename from src/test/ui/traits/inheritance/cast.rs rename to tests/ui/traits/inheritance/cast.rs diff --git a/src/test/ui/traits/inheritance/cross-trait-call-xc.rs b/tests/ui/traits/inheritance/cross-trait-call-xc.rs similarity index 100% rename from src/test/ui/traits/inheritance/cross-trait-call-xc.rs rename to tests/ui/traits/inheritance/cross-trait-call-xc.rs diff --git a/src/test/ui/traits/inheritance/cross-trait-call.rs b/tests/ui/traits/inheritance/cross-trait-call.rs similarity index 100% rename from src/test/ui/traits/inheritance/cross-trait-call.rs rename to tests/ui/traits/inheritance/cross-trait-call.rs diff --git a/src/test/ui/traits/inheritance/diamond.rs b/tests/ui/traits/inheritance/diamond.rs similarity index 100% rename from src/test/ui/traits/inheritance/diamond.rs rename to tests/ui/traits/inheritance/diamond.rs diff --git a/src/test/ui/traits/inheritance/multiple-inheritors.rs b/tests/ui/traits/inheritance/multiple-inheritors.rs similarity index 100% rename from src/test/ui/traits/inheritance/multiple-inheritors.rs rename to tests/ui/traits/inheritance/multiple-inheritors.rs diff --git a/src/test/ui/traits/inheritance/multiple-params.rs b/tests/ui/traits/inheritance/multiple-params.rs similarity index 100% rename from src/test/ui/traits/inheritance/multiple-params.rs rename to tests/ui/traits/inheritance/multiple-params.rs diff --git a/src/test/ui/traits/inheritance/num.rs b/tests/ui/traits/inheritance/num.rs similarity index 100% rename from src/test/ui/traits/inheritance/num.rs rename to tests/ui/traits/inheritance/num.rs diff --git a/src/test/ui/traits/inheritance/num0.rs b/tests/ui/traits/inheritance/num0.rs similarity index 100% rename from src/test/ui/traits/inheritance/num0.rs rename to tests/ui/traits/inheritance/num0.rs diff --git a/src/test/ui/traits/inheritance/num1.rs b/tests/ui/traits/inheritance/num1.rs similarity index 100% rename from src/test/ui/traits/inheritance/num1.rs rename to tests/ui/traits/inheritance/num1.rs diff --git a/src/test/ui/traits/inheritance/num2.rs b/tests/ui/traits/inheritance/num2.rs similarity index 100% rename from src/test/ui/traits/inheritance/num2.rs rename to tests/ui/traits/inheritance/num2.rs diff --git a/src/test/ui/traits/inheritance/num3.rs b/tests/ui/traits/inheritance/num3.rs similarity index 100% rename from src/test/ui/traits/inheritance/num3.rs rename to tests/ui/traits/inheritance/num3.rs diff --git a/src/test/ui/traits/inheritance/num5.rs b/tests/ui/traits/inheritance/num5.rs similarity index 100% rename from src/test/ui/traits/inheritance/num5.rs rename to tests/ui/traits/inheritance/num5.rs diff --git a/src/test/ui/traits/inheritance/overloading-simple.rs b/tests/ui/traits/inheritance/overloading-simple.rs similarity index 100% rename from src/test/ui/traits/inheritance/overloading-simple.rs rename to tests/ui/traits/inheritance/overloading-simple.rs diff --git a/src/test/ui/traits/inheritance/overloading-xc-exe.rs b/tests/ui/traits/inheritance/overloading-xc-exe.rs similarity index 100% rename from src/test/ui/traits/inheritance/overloading-xc-exe.rs rename to tests/ui/traits/inheritance/overloading-xc-exe.rs diff --git a/src/test/ui/traits/inheritance/overloading.rs b/tests/ui/traits/inheritance/overloading.rs similarity index 100% rename from src/test/ui/traits/inheritance/overloading.rs rename to tests/ui/traits/inheritance/overloading.rs diff --git a/src/test/ui/traits/inheritance/repeated-supertrait-ambig.rs b/tests/ui/traits/inheritance/repeated-supertrait-ambig.rs similarity index 100% rename from src/test/ui/traits/inheritance/repeated-supertrait-ambig.rs rename to tests/ui/traits/inheritance/repeated-supertrait-ambig.rs diff --git a/src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr b/tests/ui/traits/inheritance/repeated-supertrait-ambig.stderr similarity index 100% rename from src/test/ui/traits/inheritance/repeated-supertrait-ambig.stderr rename to tests/ui/traits/inheritance/repeated-supertrait-ambig.stderr diff --git a/src/test/ui/traits/inheritance/repeated-supertrait.rs b/tests/ui/traits/inheritance/repeated-supertrait.rs similarity index 100% rename from src/test/ui/traits/inheritance/repeated-supertrait.rs rename to tests/ui/traits/inheritance/repeated-supertrait.rs diff --git a/src/test/ui/traits/inheritance/self-in-supertype.rs b/tests/ui/traits/inheritance/self-in-supertype.rs similarity index 100% rename from src/test/ui/traits/inheritance/self-in-supertype.rs rename to tests/ui/traits/inheritance/self-in-supertype.rs diff --git a/src/test/ui/traits/inheritance/self.rs b/tests/ui/traits/inheritance/self.rs similarity index 100% rename from src/test/ui/traits/inheritance/self.rs rename to tests/ui/traits/inheritance/self.rs diff --git a/src/test/ui/traits/inheritance/simple.rs b/tests/ui/traits/inheritance/simple.rs similarity index 100% rename from src/test/ui/traits/inheritance/simple.rs rename to tests/ui/traits/inheritance/simple.rs diff --git a/src/test/ui/traits/inheritance/static.rs b/tests/ui/traits/inheritance/static.rs similarity index 100% rename from src/test/ui/traits/inheritance/static.rs rename to tests/ui/traits/inheritance/static.rs diff --git a/src/test/ui/traits/inheritance/static2.rs b/tests/ui/traits/inheritance/static2.rs similarity index 100% rename from src/test/ui/traits/inheritance/static2.rs rename to tests/ui/traits/inheritance/static2.rs diff --git a/src/test/ui/traits/inheritance/subst.rs b/tests/ui/traits/inheritance/subst.rs similarity index 100% rename from src/test/ui/traits/inheritance/subst.rs rename to tests/ui/traits/inheritance/subst.rs diff --git a/src/test/ui/traits/inheritance/subst2.rs b/tests/ui/traits/inheritance/subst2.rs similarity index 100% rename from src/test/ui/traits/inheritance/subst2.rs rename to tests/ui/traits/inheritance/subst2.rs diff --git a/src/test/ui/traits/inheritance/visibility.rs b/tests/ui/traits/inheritance/visibility.rs similarity index 100% rename from src/test/ui/traits/inheritance/visibility.rs rename to tests/ui/traits/inheritance/visibility.rs diff --git a/src/test/ui/traits/invalid_operator_trait.rs b/tests/ui/traits/invalid_operator_trait.rs similarity index 100% rename from src/test/ui/traits/invalid_operator_trait.rs rename to tests/ui/traits/invalid_operator_trait.rs diff --git a/src/test/ui/traits/invalid_operator_trait.stderr b/tests/ui/traits/invalid_operator_trait.stderr similarity index 100% rename from src/test/ui/traits/invalid_operator_trait.stderr rename to tests/ui/traits/invalid_operator_trait.stderr diff --git a/src/test/ui/traits/issue-102989.rs b/tests/ui/traits/issue-102989.rs similarity index 100% rename from src/test/ui/traits/issue-102989.rs rename to tests/ui/traits/issue-102989.rs diff --git a/src/test/ui/traits/issue-102989.stderr b/tests/ui/traits/issue-102989.stderr similarity index 100% rename from src/test/ui/traits/issue-102989.stderr rename to tests/ui/traits/issue-102989.stderr diff --git a/src/test/ui/traits/issue-104322.rs b/tests/ui/traits/issue-104322.rs similarity index 100% rename from src/test/ui/traits/issue-104322.rs rename to tests/ui/traits/issue-104322.rs diff --git a/src/test/ui/traits/issue-18400.rs b/tests/ui/traits/issue-18400.rs similarity index 100% rename from src/test/ui/traits/issue-18400.rs rename to tests/ui/traits/issue-18400.rs diff --git a/src/test/ui/traits/issue-18400.stderr b/tests/ui/traits/issue-18400.stderr similarity index 100% rename from src/test/ui/traits/issue-18400.stderr rename to tests/ui/traits/issue-18400.stderr diff --git a/src/test/ui/traits/issue-18412.rs b/tests/ui/traits/issue-18412.rs similarity index 100% rename from src/test/ui/traits/issue-18412.rs rename to tests/ui/traits/issue-18412.rs diff --git a/src/test/ui/traits/issue-20692.rs b/tests/ui/traits/issue-20692.rs similarity index 100% rename from src/test/ui/traits/issue-20692.rs rename to tests/ui/traits/issue-20692.rs diff --git a/src/test/ui/traits/issue-20692.stderr b/tests/ui/traits/issue-20692.stderr similarity index 100% rename from src/test/ui/traits/issue-20692.stderr rename to tests/ui/traits/issue-20692.stderr diff --git a/src/test/ui/traits/issue-22019.rs b/tests/ui/traits/issue-22019.rs similarity index 100% rename from src/test/ui/traits/issue-22019.rs rename to tests/ui/traits/issue-22019.rs diff --git a/src/test/ui/traits/issue-22110.rs b/tests/ui/traits/issue-22110.rs similarity index 100% rename from src/test/ui/traits/issue-22110.rs rename to tests/ui/traits/issue-22110.rs diff --git a/src/test/ui/traits/issue-22655.rs b/tests/ui/traits/issue-22655.rs similarity index 100% rename from src/test/ui/traits/issue-22655.rs rename to tests/ui/traits/issue-22655.rs diff --git a/src/test/ui/traits/issue-23003-overflow.rs b/tests/ui/traits/issue-23003-overflow.rs similarity index 100% rename from src/test/ui/traits/issue-23003-overflow.rs rename to tests/ui/traits/issue-23003-overflow.rs diff --git a/src/test/ui/traits/issue-23003.rs b/tests/ui/traits/issue-23003.rs similarity index 100% rename from src/test/ui/traits/issue-23003.rs rename to tests/ui/traits/issue-23003.rs diff --git a/src/test/ui/traits/issue-23825.rs b/tests/ui/traits/issue-23825.rs similarity index 100% rename from src/test/ui/traits/issue-23825.rs rename to tests/ui/traits/issue-23825.rs diff --git a/src/test/ui/traits/issue-24010.rs b/tests/ui/traits/issue-24010.rs similarity index 100% rename from src/test/ui/traits/issue-24010.rs rename to tests/ui/traits/issue-24010.rs diff --git a/src/test/ui/traits/issue-26339.rs b/tests/ui/traits/issue-26339.rs similarity index 100% rename from src/test/ui/traits/issue-26339.rs rename to tests/ui/traits/issue-26339.rs diff --git a/src/test/ui/traits/issue-28576.rs b/tests/ui/traits/issue-28576.rs similarity index 100% rename from src/test/ui/traits/issue-28576.rs rename to tests/ui/traits/issue-28576.rs diff --git a/src/test/ui/traits/issue-28576.stderr b/tests/ui/traits/issue-28576.stderr similarity index 100% rename from src/test/ui/traits/issue-28576.stderr rename to tests/ui/traits/issue-28576.stderr diff --git a/src/test/ui/traits/issue-32963.rs b/tests/ui/traits/issue-32963.rs similarity index 100% rename from src/test/ui/traits/issue-32963.rs rename to tests/ui/traits/issue-32963.rs diff --git a/src/test/ui/traits/issue-32963.stderr b/tests/ui/traits/issue-32963.stderr similarity index 100% rename from src/test/ui/traits/issue-32963.stderr rename to tests/ui/traits/issue-32963.stderr diff --git a/src/test/ui/traits/issue-33140-hack-boundaries.rs b/tests/ui/traits/issue-33140-hack-boundaries.rs similarity index 100% rename from src/test/ui/traits/issue-33140-hack-boundaries.rs rename to tests/ui/traits/issue-33140-hack-boundaries.rs diff --git a/src/test/ui/traits/issue-33140-hack-boundaries.stderr b/tests/ui/traits/issue-33140-hack-boundaries.stderr similarity index 100% rename from src/test/ui/traits/issue-33140-hack-boundaries.stderr rename to tests/ui/traits/issue-33140-hack-boundaries.stderr diff --git a/src/test/ui/traits/issue-33140.rs b/tests/ui/traits/issue-33140.rs similarity index 100% rename from src/test/ui/traits/issue-33140.rs rename to tests/ui/traits/issue-33140.rs diff --git a/src/test/ui/traits/issue-33140.stderr b/tests/ui/traits/issue-33140.stderr similarity index 100% rename from src/test/ui/traits/issue-33140.stderr rename to tests/ui/traits/issue-33140.stderr diff --git a/src/test/ui/traits/issue-35869.rs b/tests/ui/traits/issue-35869.rs similarity index 100% rename from src/test/ui/traits/issue-35869.rs rename to tests/ui/traits/issue-35869.rs diff --git a/src/test/ui/traits/issue-35869.stderr b/tests/ui/traits/issue-35869.stderr similarity index 100% rename from src/test/ui/traits/issue-35869.stderr rename to tests/ui/traits/issue-35869.stderr diff --git a/src/test/ui/traits/issue-3683.rs b/tests/ui/traits/issue-3683.rs similarity index 100% rename from src/test/ui/traits/issue-3683.rs rename to tests/ui/traits/issue-3683.rs diff --git a/src/test/ui/traits/issue-38033.rs b/tests/ui/traits/issue-38033.rs similarity index 100% rename from src/test/ui/traits/issue-38033.rs rename to tests/ui/traits/issue-38033.rs diff --git a/src/test/ui/traits/issue-38404.rs b/tests/ui/traits/issue-38404.rs similarity index 100% rename from src/test/ui/traits/issue-38404.rs rename to tests/ui/traits/issue-38404.rs diff --git a/src/test/ui/traits/issue-38404.stderr b/tests/ui/traits/issue-38404.stderr similarity index 100% rename from src/test/ui/traits/issue-38404.stderr rename to tests/ui/traits/issue-38404.stderr diff --git a/src/test/ui/traits/issue-38604.rs b/tests/ui/traits/issue-38604.rs similarity index 100% rename from src/test/ui/traits/issue-38604.rs rename to tests/ui/traits/issue-38604.rs diff --git a/src/test/ui/traits/issue-38604.stderr b/tests/ui/traits/issue-38604.stderr similarity index 100% rename from src/test/ui/traits/issue-38604.stderr rename to tests/ui/traits/issue-38604.stderr diff --git a/src/test/ui/traits/issue-3973.rs b/tests/ui/traits/issue-3973.rs similarity index 100% rename from src/test/ui/traits/issue-3973.rs rename to tests/ui/traits/issue-3973.rs diff --git a/src/test/ui/traits/issue-3973.stderr b/tests/ui/traits/issue-3973.stderr similarity index 100% rename from src/test/ui/traits/issue-3973.stderr rename to tests/ui/traits/issue-3973.stderr diff --git a/src/test/ui/traits/issue-4107.rs b/tests/ui/traits/issue-4107.rs similarity index 100% rename from src/test/ui/traits/issue-4107.rs rename to tests/ui/traits/issue-4107.rs diff --git a/src/test/ui/traits/issue-43132.rs b/tests/ui/traits/issue-43132.rs similarity index 100% rename from src/test/ui/traits/issue-43132.rs rename to tests/ui/traits/issue-43132.rs diff --git a/src/test/ui/traits/issue-43784-supertrait.rs b/tests/ui/traits/issue-43784-supertrait.rs similarity index 100% rename from src/test/ui/traits/issue-43784-supertrait.rs rename to tests/ui/traits/issue-43784-supertrait.rs diff --git a/src/test/ui/traits/issue-43784-supertrait.stderr b/tests/ui/traits/issue-43784-supertrait.stderr similarity index 100% rename from src/test/ui/traits/issue-43784-supertrait.stderr rename to tests/ui/traits/issue-43784-supertrait.stderr diff --git a/src/test/ui/traits/issue-50480.rs b/tests/ui/traits/issue-50480.rs similarity index 100% rename from src/test/ui/traits/issue-50480.rs rename to tests/ui/traits/issue-50480.rs diff --git a/src/test/ui/traits/issue-50480.stderr b/tests/ui/traits/issue-50480.stderr similarity index 100% rename from src/test/ui/traits/issue-50480.stderr rename to tests/ui/traits/issue-50480.stderr diff --git a/src/test/ui/traits/issue-52893.rs b/tests/ui/traits/issue-52893.rs similarity index 100% rename from src/test/ui/traits/issue-52893.rs rename to tests/ui/traits/issue-52893.rs diff --git a/src/test/ui/traits/issue-52893.stderr b/tests/ui/traits/issue-52893.stderr similarity index 100% rename from src/test/ui/traits/issue-52893.stderr rename to tests/ui/traits/issue-52893.stderr diff --git a/src/test/ui/traits/issue-56202.rs b/tests/ui/traits/issue-56202.rs similarity index 100% rename from src/test/ui/traits/issue-56202.rs rename to tests/ui/traits/issue-56202.rs diff --git a/src/test/ui/traits/issue-56488.rs b/tests/ui/traits/issue-56488.rs similarity index 100% rename from src/test/ui/traits/issue-56488.rs rename to tests/ui/traits/issue-56488.rs diff --git a/src/test/ui/traits/issue-59029-1.rs b/tests/ui/traits/issue-59029-1.rs similarity index 100% rename from src/test/ui/traits/issue-59029-1.rs rename to tests/ui/traits/issue-59029-1.rs diff --git a/src/test/ui/traits/issue-59029-1.stderr b/tests/ui/traits/issue-59029-1.stderr similarity index 100% rename from src/test/ui/traits/issue-59029-1.stderr rename to tests/ui/traits/issue-59029-1.stderr diff --git a/src/test/ui/traits/issue-59029-2.rs b/tests/ui/traits/issue-59029-2.rs similarity index 100% rename from src/test/ui/traits/issue-59029-2.rs rename to tests/ui/traits/issue-59029-2.rs diff --git a/src/test/ui/traits/issue-6128.rs b/tests/ui/traits/issue-6128.rs similarity index 100% rename from src/test/ui/traits/issue-6128.rs rename to tests/ui/traits/issue-6128.rs diff --git a/src/test/ui/traits/issue-6334.rs b/tests/ui/traits/issue-6334.rs similarity index 100% rename from src/test/ui/traits/issue-6334.rs rename to tests/ui/traits/issue-6334.rs diff --git a/src/test/ui/traits/issue-65284-suggest-generic-trait-bound.rs b/tests/ui/traits/issue-65284-suggest-generic-trait-bound.rs similarity index 100% rename from src/test/ui/traits/issue-65284-suggest-generic-trait-bound.rs rename to tests/ui/traits/issue-65284-suggest-generic-trait-bound.rs diff --git a/src/test/ui/traits/issue-65284-suggest-generic-trait-bound.stderr b/tests/ui/traits/issue-65284-suggest-generic-trait-bound.stderr similarity index 100% rename from src/test/ui/traits/issue-65284-suggest-generic-trait-bound.stderr rename to tests/ui/traits/issue-65284-suggest-generic-trait-bound.stderr diff --git a/src/test/ui/traits/issue-65673.rs b/tests/ui/traits/issue-65673.rs similarity index 100% rename from src/test/ui/traits/issue-65673.rs rename to tests/ui/traits/issue-65673.rs diff --git a/src/test/ui/traits/issue-65673.stderr b/tests/ui/traits/issue-65673.stderr similarity index 100% rename from src/test/ui/traits/issue-65673.stderr rename to tests/ui/traits/issue-65673.stderr diff --git a/src/test/ui/traits/issue-68295.rs b/tests/ui/traits/issue-68295.rs similarity index 100% rename from src/test/ui/traits/issue-68295.rs rename to tests/ui/traits/issue-68295.rs diff --git a/src/test/ui/traits/issue-68295.stderr b/tests/ui/traits/issue-68295.stderr similarity index 100% rename from src/test/ui/traits/issue-68295.stderr rename to tests/ui/traits/issue-68295.stderr diff --git a/src/test/ui/traits/issue-7013.rs b/tests/ui/traits/issue-7013.rs similarity index 100% rename from src/test/ui/traits/issue-7013.rs rename to tests/ui/traits/issue-7013.rs diff --git a/src/test/ui/traits/issue-7013.stderr b/tests/ui/traits/issue-7013.stderr similarity index 100% rename from src/test/ui/traits/issue-7013.stderr rename to tests/ui/traits/issue-7013.stderr diff --git a/src/test/ui/traits/issue-70944.rs b/tests/ui/traits/issue-70944.rs similarity index 100% rename from src/test/ui/traits/issue-70944.rs rename to tests/ui/traits/issue-70944.rs diff --git a/src/test/ui/traits/issue-71036.rs b/tests/ui/traits/issue-71036.rs similarity index 100% rename from src/test/ui/traits/issue-71036.rs rename to tests/ui/traits/issue-71036.rs diff --git a/src/test/ui/traits/issue-71036.stderr b/tests/ui/traits/issue-71036.stderr similarity index 100% rename from src/test/ui/traits/issue-71036.stderr rename to tests/ui/traits/issue-71036.stderr diff --git a/src/test/ui/traits/issue-71136.rs b/tests/ui/traits/issue-71136.rs similarity index 100% rename from src/test/ui/traits/issue-71136.rs rename to tests/ui/traits/issue-71136.rs diff --git a/src/test/ui/traits/issue-71136.stderr b/tests/ui/traits/issue-71136.stderr similarity index 100% rename from src/test/ui/traits/issue-71136.stderr rename to tests/ui/traits/issue-71136.stderr diff --git a/src/test/ui/traits/issue-72410.rs b/tests/ui/traits/issue-72410.rs similarity index 100% rename from src/test/ui/traits/issue-72410.rs rename to tests/ui/traits/issue-72410.rs diff --git a/src/test/ui/traits/issue-72410.stderr b/tests/ui/traits/issue-72410.stderr similarity index 100% rename from src/test/ui/traits/issue-72410.stderr rename to tests/ui/traits/issue-72410.stderr diff --git a/src/test/ui/traits/issue-72455.rs b/tests/ui/traits/issue-72455.rs similarity index 100% rename from src/test/ui/traits/issue-72455.rs rename to tests/ui/traits/issue-72455.rs diff --git a/src/test/ui/traits/issue-75627.rs b/tests/ui/traits/issue-75627.rs similarity index 100% rename from src/test/ui/traits/issue-75627.rs rename to tests/ui/traits/issue-75627.rs diff --git a/src/test/ui/traits/issue-75627.stderr b/tests/ui/traits/issue-75627.stderr similarity index 100% rename from src/test/ui/traits/issue-75627.stderr rename to tests/ui/traits/issue-75627.stderr diff --git a/src/test/ui/traits/issue-77982.rs b/tests/ui/traits/issue-77982.rs similarity index 100% rename from src/test/ui/traits/issue-77982.rs rename to tests/ui/traits/issue-77982.rs diff --git a/src/test/ui/traits/issue-77982.stderr b/tests/ui/traits/issue-77982.stderr similarity index 100% rename from src/test/ui/traits/issue-77982.stderr rename to tests/ui/traits/issue-77982.stderr diff --git a/src/test/ui/traits/issue-78372.rs b/tests/ui/traits/issue-78372.rs similarity index 100% rename from src/test/ui/traits/issue-78372.rs rename to tests/ui/traits/issue-78372.rs diff --git a/src/test/ui/traits/issue-78372.stderr b/tests/ui/traits/issue-78372.stderr similarity index 100% rename from src/test/ui/traits/issue-78372.stderr rename to tests/ui/traits/issue-78372.stderr diff --git a/src/test/ui/traits/issue-78632.rs b/tests/ui/traits/issue-78632.rs similarity index 100% rename from src/test/ui/traits/issue-78632.rs rename to tests/ui/traits/issue-78632.rs diff --git a/src/test/ui/traits/issue-79458.rs b/tests/ui/traits/issue-79458.rs similarity index 100% rename from src/test/ui/traits/issue-79458.rs rename to tests/ui/traits/issue-79458.rs diff --git a/src/test/ui/traits/issue-79458.stderr b/tests/ui/traits/issue-79458.stderr similarity index 100% rename from src/test/ui/traits/issue-79458.stderr rename to tests/ui/traits/issue-79458.stderr diff --git a/src/test/ui/traits/issue-8153.rs b/tests/ui/traits/issue-8153.rs similarity index 100% rename from src/test/ui/traits/issue-8153.rs rename to tests/ui/traits/issue-8153.rs diff --git a/src/test/ui/traits/issue-8153.stderr b/tests/ui/traits/issue-8153.stderr similarity index 100% rename from src/test/ui/traits/issue-8153.stderr rename to tests/ui/traits/issue-8153.stderr diff --git a/src/test/ui/traits/issue-82830.rs b/tests/ui/traits/issue-82830.rs similarity index 100% rename from src/test/ui/traits/issue-82830.rs rename to tests/ui/traits/issue-82830.rs diff --git a/src/test/ui/traits/issue-83538-tainted-cache-after-cycle.rs b/tests/ui/traits/issue-83538-tainted-cache-after-cycle.rs similarity index 100% rename from src/test/ui/traits/issue-83538-tainted-cache-after-cycle.rs rename to tests/ui/traits/issue-83538-tainted-cache-after-cycle.rs diff --git a/src/test/ui/traits/issue-83538-tainted-cache-after-cycle.stderr b/tests/ui/traits/issue-83538-tainted-cache-after-cycle.stderr similarity index 100% rename from src/test/ui/traits/issue-83538-tainted-cache-after-cycle.stderr rename to tests/ui/traits/issue-83538-tainted-cache-after-cycle.stderr diff --git a/src/test/ui/traits/issue-84399-bad-fresh-caching.rs b/tests/ui/traits/issue-84399-bad-fresh-caching.rs similarity index 100% rename from src/test/ui/traits/issue-84399-bad-fresh-caching.rs rename to tests/ui/traits/issue-84399-bad-fresh-caching.rs diff --git a/src/test/ui/traits/issue-85360-eval-obligation-ice.rs b/tests/ui/traits/issue-85360-eval-obligation-ice.rs similarity index 100% rename from src/test/ui/traits/issue-85360-eval-obligation-ice.rs rename to tests/ui/traits/issue-85360-eval-obligation-ice.rs diff --git a/src/test/ui/traits/issue-85360-eval-obligation-ice.stderr b/tests/ui/traits/issue-85360-eval-obligation-ice.stderr similarity index 100% rename from src/test/ui/traits/issue-85360-eval-obligation-ice.stderr rename to tests/ui/traits/issue-85360-eval-obligation-ice.stderr diff --git a/src/test/ui/traits/issue-85735.rs b/tests/ui/traits/issue-85735.rs similarity index 100% rename from src/test/ui/traits/issue-85735.rs rename to tests/ui/traits/issue-85735.rs diff --git a/src/test/ui/traits/issue-85735.stderr b/tests/ui/traits/issue-85735.stderr similarity index 100% rename from src/test/ui/traits/issue-85735.stderr rename to tests/ui/traits/issue-85735.stderr diff --git a/src/test/ui/traits/issue-87558.rs b/tests/ui/traits/issue-87558.rs similarity index 100% rename from src/test/ui/traits/issue-87558.rs rename to tests/ui/traits/issue-87558.rs diff --git a/src/test/ui/traits/issue-87558.stderr b/tests/ui/traits/issue-87558.stderr similarity index 100% rename from src/test/ui/traits/issue-87558.stderr rename to tests/ui/traits/issue-87558.stderr diff --git a/src/test/ui/traits/issue-89119.rs b/tests/ui/traits/issue-89119.rs similarity index 100% rename from src/test/ui/traits/issue-89119.rs rename to tests/ui/traits/issue-89119.rs diff --git a/src/test/ui/traits/issue-90195-2.rs b/tests/ui/traits/issue-90195-2.rs similarity index 100% rename from src/test/ui/traits/issue-90195-2.rs rename to tests/ui/traits/issue-90195-2.rs diff --git a/src/test/ui/traits/issue-90195.rs b/tests/ui/traits/issue-90195.rs similarity index 100% rename from src/test/ui/traits/issue-90195.rs rename to tests/ui/traits/issue-90195.rs diff --git a/src/test/ui/traits/issue-90662-projection-caching.rs b/tests/ui/traits/issue-90662-projection-caching.rs similarity index 100% rename from src/test/ui/traits/issue-90662-projection-caching.rs rename to tests/ui/traits/issue-90662-projection-caching.rs diff --git a/src/test/ui/traits/issue-91594.rs b/tests/ui/traits/issue-91594.rs similarity index 100% rename from src/test/ui/traits/issue-91594.rs rename to tests/ui/traits/issue-91594.rs diff --git a/src/test/ui/traits/issue-91594.stderr b/tests/ui/traits/issue-91594.stderr similarity index 100% rename from src/test/ui/traits/issue-91594.stderr rename to tests/ui/traits/issue-91594.stderr diff --git a/src/test/ui/traits/issue-91949-hangs-on-recursion.rs b/tests/ui/traits/issue-91949-hangs-on-recursion.rs similarity index 100% rename from src/test/ui/traits/issue-91949-hangs-on-recursion.rs rename to tests/ui/traits/issue-91949-hangs-on-recursion.rs diff --git a/src/test/ui/traits/issue-91949-hangs-on-recursion.stderr b/tests/ui/traits/issue-91949-hangs-on-recursion.stderr similarity index 100% rename from src/test/ui/traits/issue-91949-hangs-on-recursion.stderr rename to tests/ui/traits/issue-91949-hangs-on-recursion.stderr diff --git a/src/test/ui/traits/issue-92292.rs b/tests/ui/traits/issue-92292.rs similarity index 100% rename from src/test/ui/traits/issue-92292.rs rename to tests/ui/traits/issue-92292.rs diff --git a/src/test/ui/traits/issue-9394-inherited-calls.rs b/tests/ui/traits/issue-9394-inherited-calls.rs similarity index 100% rename from src/test/ui/traits/issue-9394-inherited-calls.rs rename to tests/ui/traits/issue-9394-inherited-calls.rs diff --git a/src/test/ui/traits/issue-95311.rs b/tests/ui/traits/issue-95311.rs similarity index 100% rename from src/test/ui/traits/issue-95311.rs rename to tests/ui/traits/issue-95311.rs diff --git a/src/test/ui/traits/issue-95898.rs b/tests/ui/traits/issue-95898.rs similarity index 100% rename from src/test/ui/traits/issue-95898.rs rename to tests/ui/traits/issue-95898.rs diff --git a/src/test/ui/traits/issue-95898.stderr b/tests/ui/traits/issue-95898.stderr similarity index 100% rename from src/test/ui/traits/issue-95898.stderr rename to tests/ui/traits/issue-95898.stderr diff --git a/src/test/ui/traits/issue-96664.rs b/tests/ui/traits/issue-96664.rs similarity index 100% rename from src/test/ui/traits/issue-96664.rs rename to tests/ui/traits/issue-96664.rs diff --git a/src/test/ui/traits/issue-96665.rs b/tests/ui/traits/issue-96665.rs similarity index 100% rename from src/test/ui/traits/issue-96665.rs rename to tests/ui/traits/issue-96665.rs diff --git a/src/test/ui/traits/issue-97576.rs b/tests/ui/traits/issue-97576.rs similarity index 100% rename from src/test/ui/traits/issue-97576.rs rename to tests/ui/traits/issue-97576.rs diff --git a/src/test/ui/traits/issue-97576.stderr b/tests/ui/traits/issue-97576.stderr similarity index 100% rename from src/test/ui/traits/issue-97576.stderr rename to tests/ui/traits/issue-97576.stderr diff --git a/src/test/ui/traits/issue-97695-double-trivial-bound.rs b/tests/ui/traits/issue-97695-double-trivial-bound.rs similarity index 100% rename from src/test/ui/traits/issue-97695-double-trivial-bound.rs rename to tests/ui/traits/issue-97695-double-trivial-bound.rs diff --git a/src/test/ui/traits/issue-99875.rs b/tests/ui/traits/issue-99875.rs similarity index 100% rename from src/test/ui/traits/issue-99875.rs rename to tests/ui/traits/issue-99875.rs diff --git a/src/test/ui/traits/issue-99875.stderr b/tests/ui/traits/issue-99875.stderr similarity index 100% rename from src/test/ui/traits/issue-99875.stderr rename to tests/ui/traits/issue-99875.stderr diff --git a/src/test/ui/traits/item-inside-macro.rs b/tests/ui/traits/item-inside-macro.rs similarity index 100% rename from src/test/ui/traits/item-inside-macro.rs rename to tests/ui/traits/item-inside-macro.rs diff --git a/src/test/ui/traits/item-privacy.rs b/tests/ui/traits/item-privacy.rs similarity index 100% rename from src/test/ui/traits/item-privacy.rs rename to tests/ui/traits/item-privacy.rs diff --git a/src/test/ui/traits/item-privacy.stderr b/tests/ui/traits/item-privacy.stderr similarity index 100% rename from src/test/ui/traits/item-privacy.stderr rename to tests/ui/traits/item-privacy.stderr diff --git a/src/test/ui/traits/kindck-owned-contains-1.rs b/tests/ui/traits/kindck-owned-contains-1.rs similarity index 100% rename from src/test/ui/traits/kindck-owned-contains-1.rs rename to tests/ui/traits/kindck-owned-contains-1.rs diff --git a/src/test/ui/traits/map-types.rs b/tests/ui/traits/map-types.rs similarity index 100% rename from src/test/ui/traits/map-types.rs rename to tests/ui/traits/map-types.rs diff --git a/src/test/ui/traits/map-types.stderr b/tests/ui/traits/map-types.stderr similarity index 100% rename from src/test/ui/traits/map-types.stderr rename to tests/ui/traits/map-types.stderr diff --git a/src/test/ui/traits/matching-lifetimes.rs b/tests/ui/traits/matching-lifetimes.rs similarity index 100% rename from src/test/ui/traits/matching-lifetimes.rs rename to tests/ui/traits/matching-lifetimes.rs diff --git a/src/test/ui/traits/matching-lifetimes.stderr b/tests/ui/traits/matching-lifetimes.stderr similarity index 100% rename from src/test/ui/traits/matching-lifetimes.stderr rename to tests/ui/traits/matching-lifetimes.stderr diff --git a/src/test/ui/traits/method-private.rs b/tests/ui/traits/method-private.rs similarity index 100% rename from src/test/ui/traits/method-private.rs rename to tests/ui/traits/method-private.rs diff --git a/src/test/ui/traits/method-private.stderr b/tests/ui/traits/method-private.stderr similarity index 100% rename from src/test/ui/traits/method-private.stderr rename to tests/ui/traits/method-private.stderr diff --git a/src/test/ui/traits/monad.rs b/tests/ui/traits/monad.rs similarity index 100% rename from src/test/ui/traits/monad.rs rename to tests/ui/traits/monad.rs diff --git a/src/test/ui/traits/monomorphized-callees-with-ty-params-3314.rs b/tests/ui/traits/monomorphized-callees-with-ty-params-3314.rs similarity index 100% rename from src/test/ui/traits/monomorphized-callees-with-ty-params-3314.rs rename to tests/ui/traits/monomorphized-callees-with-ty-params-3314.rs diff --git a/src/test/ui/traits/multidispatch-bad.rs b/tests/ui/traits/multidispatch-bad.rs similarity index 100% rename from src/test/ui/traits/multidispatch-bad.rs rename to tests/ui/traits/multidispatch-bad.rs diff --git a/src/test/ui/traits/multidispatch-bad.stderr b/tests/ui/traits/multidispatch-bad.stderr similarity index 100% rename from src/test/ui/traits/multidispatch-bad.stderr rename to tests/ui/traits/multidispatch-bad.stderr diff --git a/src/test/ui/traits/multidispatch-conditional-impl-not-considered.rs b/tests/ui/traits/multidispatch-conditional-impl-not-considered.rs similarity index 100% rename from src/test/ui/traits/multidispatch-conditional-impl-not-considered.rs rename to tests/ui/traits/multidispatch-conditional-impl-not-considered.rs diff --git a/src/test/ui/traits/multidispatch-convert-ambig-dest.rs b/tests/ui/traits/multidispatch-convert-ambig-dest.rs similarity index 100% rename from src/test/ui/traits/multidispatch-convert-ambig-dest.rs rename to tests/ui/traits/multidispatch-convert-ambig-dest.rs diff --git a/src/test/ui/traits/multidispatch-convert-ambig-dest.stderr b/tests/ui/traits/multidispatch-convert-ambig-dest.stderr similarity index 100% rename from src/test/ui/traits/multidispatch-convert-ambig-dest.stderr rename to tests/ui/traits/multidispatch-convert-ambig-dest.stderr diff --git a/src/test/ui/traits/multidispatch-infer-convert-target.rs b/tests/ui/traits/multidispatch-infer-convert-target.rs similarity index 100% rename from src/test/ui/traits/multidispatch-infer-convert-target.rs rename to tests/ui/traits/multidispatch-infer-convert-target.rs diff --git a/src/test/ui/traits/multidispatch1.rs b/tests/ui/traits/multidispatch1.rs similarity index 100% rename from src/test/ui/traits/multidispatch1.rs rename to tests/ui/traits/multidispatch1.rs diff --git a/src/test/ui/traits/multidispatch2.rs b/tests/ui/traits/multidispatch2.rs similarity index 100% rename from src/test/ui/traits/multidispatch2.rs rename to tests/ui/traits/multidispatch2.rs diff --git a/src/test/ui/traits/mutual-recursion-issue-75860.rs b/tests/ui/traits/mutual-recursion-issue-75860.rs similarity index 100% rename from src/test/ui/traits/mutual-recursion-issue-75860.rs rename to tests/ui/traits/mutual-recursion-issue-75860.rs diff --git a/src/test/ui/traits/mutual-recursion-issue-75860.stderr b/tests/ui/traits/mutual-recursion-issue-75860.stderr similarity index 100% rename from src/test/ui/traits/mutual-recursion-issue-75860.stderr rename to tests/ui/traits/mutual-recursion-issue-75860.stderr diff --git a/src/test/ui/traits/negative-impls/auxiliary/foreign_trait.rs b/tests/ui/traits/negative-impls/auxiliary/foreign_trait.rs similarity index 100% rename from src/test/ui/traits/negative-impls/auxiliary/foreign_trait.rs rename to tests/ui/traits/negative-impls/auxiliary/foreign_trait.rs diff --git a/src/test/ui/traits/negative-impls/eager-mono.rs b/tests/ui/traits/negative-impls/eager-mono.rs similarity index 100% rename from src/test/ui/traits/negative-impls/eager-mono.rs rename to tests/ui/traits/negative-impls/eager-mono.rs diff --git a/src/test/ui/traits/negative-impls/explicitly-unimplemented-error-message.rs b/tests/ui/traits/negative-impls/explicitly-unimplemented-error-message.rs similarity index 100% rename from src/test/ui/traits/negative-impls/explicitly-unimplemented-error-message.rs rename to tests/ui/traits/negative-impls/explicitly-unimplemented-error-message.rs diff --git a/src/test/ui/traits/negative-impls/explicitly-unimplemented-error-message.stderr b/tests/ui/traits/negative-impls/explicitly-unimplemented-error-message.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/explicitly-unimplemented-error-message.stderr rename to tests/ui/traits/negative-impls/explicitly-unimplemented-error-message.stderr diff --git a/src/test/ui/traits/negative-impls/feature-gate-negative_impls.rs b/tests/ui/traits/negative-impls/feature-gate-negative_impls.rs similarity index 100% rename from src/test/ui/traits/negative-impls/feature-gate-negative_impls.rs rename to tests/ui/traits/negative-impls/feature-gate-negative_impls.rs diff --git a/src/test/ui/traits/negative-impls/feature-gate-negative_impls.stderr b/tests/ui/traits/negative-impls/feature-gate-negative_impls.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/feature-gate-negative_impls.stderr rename to tests/ui/traits/negative-impls/feature-gate-negative_impls.stderr diff --git a/src/test/ui/traits/negative-impls/negated-auto-traits-error.rs b/tests/ui/traits/negative-impls/negated-auto-traits-error.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negated-auto-traits-error.rs rename to tests/ui/traits/negative-impls/negated-auto-traits-error.rs diff --git a/src/test/ui/traits/negative-impls/negated-auto-traits-error.stderr b/tests/ui/traits/negative-impls/negated-auto-traits-error.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/negated-auto-traits-error.stderr rename to tests/ui/traits/negative-impls/negated-auto-traits-error.stderr diff --git a/src/test/ui/traits/negative-impls/negated-auto-traits-rpass.rs b/tests/ui/traits/negative-impls/negated-auto-traits-rpass.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negated-auto-traits-rpass.rs rename to tests/ui/traits/negative-impls/negated-auto-traits-rpass.rs diff --git a/src/test/ui/traits/negative-impls/negative-default-impls.rs b/tests/ui/traits/negative-impls/negative-default-impls.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negative-default-impls.rs rename to tests/ui/traits/negative-impls/negative-default-impls.rs diff --git a/src/test/ui/traits/negative-impls/negative-default-impls.stderr b/tests/ui/traits/negative-impls/negative-default-impls.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/negative-default-impls.stderr rename to tests/ui/traits/negative-impls/negative-default-impls.stderr diff --git a/src/test/ui/traits/negative-impls/negative-impls-basic.rs b/tests/ui/traits/negative-impls/negative-impls-basic.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negative-impls-basic.rs rename to tests/ui/traits/negative-impls/negative-impls-basic.rs diff --git a/src/test/ui/traits/negative-impls/negative-specializes-negative.rs b/tests/ui/traits/negative-impls/negative-specializes-negative.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negative-specializes-negative.rs rename to tests/ui/traits/negative-impls/negative-specializes-negative.rs diff --git a/src/test/ui/traits/negative-impls/negative-specializes-negative.stderr b/tests/ui/traits/negative-impls/negative-specializes-negative.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/negative-specializes-negative.stderr rename to tests/ui/traits/negative-impls/negative-specializes-negative.stderr diff --git a/src/test/ui/traits/negative-impls/negative-specializes-positive-item.rs b/tests/ui/traits/negative-impls/negative-specializes-positive-item.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negative-specializes-positive-item.rs rename to tests/ui/traits/negative-impls/negative-specializes-positive-item.rs diff --git a/src/test/ui/traits/negative-impls/negative-specializes-positive-item.stderr b/tests/ui/traits/negative-impls/negative-specializes-positive-item.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/negative-specializes-positive-item.stderr rename to tests/ui/traits/negative-impls/negative-specializes-positive-item.stderr diff --git a/src/test/ui/traits/negative-impls/negative-specializes-positive.rs b/tests/ui/traits/negative-impls/negative-specializes-positive.rs similarity index 100% rename from src/test/ui/traits/negative-impls/negative-specializes-positive.rs rename to tests/ui/traits/negative-impls/negative-specializes-positive.rs diff --git a/src/test/ui/traits/negative-impls/negative-specializes-positive.stderr b/tests/ui/traits/negative-impls/negative-specializes-positive.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/negative-specializes-positive.stderr rename to tests/ui/traits/negative-impls/negative-specializes-positive.stderr diff --git a/src/test/ui/traits/negative-impls/no-items.rs b/tests/ui/traits/negative-impls/no-items.rs similarity index 100% rename from src/test/ui/traits/negative-impls/no-items.rs rename to tests/ui/traits/negative-impls/no-items.rs diff --git a/src/test/ui/traits/negative-impls/no-items.stderr b/tests/ui/traits/negative-impls/no-items.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/no-items.stderr rename to tests/ui/traits/negative-impls/no-items.stderr diff --git a/src/test/ui/traits/negative-impls/pin-unsound-issue-66544-clone.rs b/tests/ui/traits/negative-impls/pin-unsound-issue-66544-clone.rs similarity index 100% rename from src/test/ui/traits/negative-impls/pin-unsound-issue-66544-clone.rs rename to tests/ui/traits/negative-impls/pin-unsound-issue-66544-clone.rs diff --git a/src/test/ui/traits/negative-impls/pin-unsound-issue-66544-clone.stderr b/tests/ui/traits/negative-impls/pin-unsound-issue-66544-clone.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/pin-unsound-issue-66544-clone.stderr rename to tests/ui/traits/negative-impls/pin-unsound-issue-66544-clone.stderr diff --git a/src/test/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.rs b/tests/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.rs similarity index 100% rename from src/test/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.rs rename to tests/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.rs diff --git a/src/test/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.stderr b/tests/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.stderr rename to tests/ui/traits/negative-impls/pin-unsound-issue-66544-derefmut.stderr diff --git a/src/test/ui/traits/negative-impls/positive-specializes-negative.rs b/tests/ui/traits/negative-impls/positive-specializes-negative.rs similarity index 100% rename from src/test/ui/traits/negative-impls/positive-specializes-negative.rs rename to tests/ui/traits/negative-impls/positive-specializes-negative.rs diff --git a/src/test/ui/traits/negative-impls/positive-specializes-negative.stderr b/tests/ui/traits/negative-impls/positive-specializes-negative.stderr similarity index 100% rename from src/test/ui/traits/negative-impls/positive-specializes-negative.stderr rename to tests/ui/traits/negative-impls/positive-specializes-negative.stderr diff --git a/src/test/ui/traits/negative-impls/rely-on-negative-impl-in-coherence.rs b/tests/ui/traits/negative-impls/rely-on-negative-impl-in-coherence.rs similarity index 100% rename from src/test/ui/traits/negative-impls/rely-on-negative-impl-in-coherence.rs rename to tests/ui/traits/negative-impls/rely-on-negative-impl-in-coherence.rs diff --git a/src/test/ui/traits/no-fallback-multiple-impls.rs b/tests/ui/traits/no-fallback-multiple-impls.rs similarity index 100% rename from src/test/ui/traits/no-fallback-multiple-impls.rs rename to tests/ui/traits/no-fallback-multiple-impls.rs diff --git a/src/test/ui/traits/no-fallback-multiple-impls.stderr b/tests/ui/traits/no-fallback-multiple-impls.stderr similarity index 100% rename from src/test/ui/traits/no-fallback-multiple-impls.stderr rename to tests/ui/traits/no-fallback-multiple-impls.stderr diff --git a/src/test/ui/traits/no_send-struct.rs b/tests/ui/traits/no_send-struct.rs similarity index 100% rename from src/test/ui/traits/no_send-struct.rs rename to tests/ui/traits/no_send-struct.rs diff --git a/src/test/ui/traits/no_send-struct.stderr b/tests/ui/traits/no_send-struct.stderr similarity index 100% rename from src/test/ui/traits/no_send-struct.stderr rename to tests/ui/traits/no_send-struct.stderr diff --git a/src/test/ui/traits/normalize-supertrait.rs b/tests/ui/traits/normalize-supertrait.rs similarity index 100% rename from src/test/ui/traits/normalize-supertrait.rs rename to tests/ui/traits/normalize-supertrait.rs diff --git a/src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs b/tests/ui/traits/not-suggest-non-existing-fully-qualified-path.rs similarity index 100% rename from src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.rs rename to tests/ui/traits/not-suggest-non-existing-fully-qualified-path.rs diff --git a/src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.stderr b/tests/ui/traits/not-suggest-non-existing-fully-qualified-path.stderr similarity index 100% rename from src/test/ui/traits/not-suggest-non-existing-fully-qualified-path.stderr rename to tests/ui/traits/not-suggest-non-existing-fully-qualified-path.stderr diff --git a/src/test/ui/traits/object-does-not-impl-trait.rs b/tests/ui/traits/object-does-not-impl-trait.rs similarity index 100% rename from src/test/ui/traits/object-does-not-impl-trait.rs rename to tests/ui/traits/object-does-not-impl-trait.rs diff --git a/src/test/ui/traits/object-does-not-impl-trait.stderr b/tests/ui/traits/object-does-not-impl-trait.stderr similarity index 100% rename from src/test/ui/traits/object-does-not-impl-trait.stderr rename to tests/ui/traits/object-does-not-impl-trait.stderr diff --git a/src/test/ui/traits/object-one-type-two-traits.rs b/tests/ui/traits/object-one-type-two-traits.rs similarity index 100% rename from src/test/ui/traits/object-one-type-two-traits.rs rename to tests/ui/traits/object-one-type-two-traits.rs diff --git a/src/test/ui/traits/object/auto-dedup-in-impl.rs b/tests/ui/traits/object/auto-dedup-in-impl.rs similarity index 100% rename from src/test/ui/traits/object/auto-dedup-in-impl.rs rename to tests/ui/traits/object/auto-dedup-in-impl.rs diff --git a/src/test/ui/traits/object/auto-dedup-in-impl.stderr b/tests/ui/traits/object/auto-dedup-in-impl.stderr similarity index 100% rename from src/test/ui/traits/object/auto-dedup-in-impl.stderr rename to tests/ui/traits/object/auto-dedup-in-impl.stderr diff --git a/src/test/ui/traits/object/auto-dedup.rs b/tests/ui/traits/object/auto-dedup.rs similarity index 100% rename from src/test/ui/traits/object/auto-dedup.rs rename to tests/ui/traits/object/auto-dedup.rs diff --git a/src/test/ui/traits/object/bounds-cycle-1.rs b/tests/ui/traits/object/bounds-cycle-1.rs similarity index 100% rename from src/test/ui/traits/object/bounds-cycle-1.rs rename to tests/ui/traits/object/bounds-cycle-1.rs diff --git a/src/test/ui/traits/object/bounds-cycle-2.rs b/tests/ui/traits/object/bounds-cycle-2.rs similarity index 100% rename from src/test/ui/traits/object/bounds-cycle-2.rs rename to tests/ui/traits/object/bounds-cycle-2.rs diff --git a/src/test/ui/traits/object/bounds-cycle-3.rs b/tests/ui/traits/object/bounds-cycle-3.rs similarity index 100% rename from src/test/ui/traits/object/bounds-cycle-3.rs rename to tests/ui/traits/object/bounds-cycle-3.rs diff --git a/src/test/ui/traits/object/bounds-cycle-4.rs b/tests/ui/traits/object/bounds-cycle-4.rs similarity index 100% rename from src/test/ui/traits/object/bounds-cycle-4.rs rename to tests/ui/traits/object/bounds-cycle-4.rs diff --git a/src/test/ui/traits/object/enforce-supertrait-projection.rs b/tests/ui/traits/object/enforce-supertrait-projection.rs similarity index 100% rename from src/test/ui/traits/object/enforce-supertrait-projection.rs rename to tests/ui/traits/object/enforce-supertrait-projection.rs diff --git a/src/test/ui/traits/object/enforce-supertrait-projection.stderr b/tests/ui/traits/object/enforce-supertrait-projection.stderr similarity index 100% rename from src/test/ui/traits/object/enforce-supertrait-projection.stderr rename to tests/ui/traits/object/enforce-supertrait-projection.stderr diff --git a/src/test/ui/traits/object/exclusion.rs b/tests/ui/traits/object/exclusion.rs similarity index 100% rename from src/test/ui/traits/object/exclusion.rs rename to tests/ui/traits/object/exclusion.rs diff --git a/src/test/ui/traits/object/generics.rs b/tests/ui/traits/object/generics.rs similarity index 100% rename from src/test/ui/traits/object/generics.rs rename to tests/ui/traits/object/generics.rs diff --git a/src/test/ui/traits/object/issue-33140-traitobject-crate.rs b/tests/ui/traits/object/issue-33140-traitobject-crate.rs similarity index 100% rename from src/test/ui/traits/object/issue-33140-traitobject-crate.rs rename to tests/ui/traits/object/issue-33140-traitobject-crate.rs diff --git a/src/test/ui/traits/object/issue-33140-traitobject-crate.stderr b/tests/ui/traits/object/issue-33140-traitobject-crate.stderr similarity index 100% rename from src/test/ui/traits/object/issue-33140-traitobject-crate.stderr rename to tests/ui/traits/object/issue-33140-traitobject-crate.stderr diff --git a/src/test/ui/traits/object/issue-44454-1.rs b/tests/ui/traits/object/issue-44454-1.rs similarity index 100% rename from src/test/ui/traits/object/issue-44454-1.rs rename to tests/ui/traits/object/issue-44454-1.rs diff --git a/src/test/ui/traits/object/issue-44454-1.stderr b/tests/ui/traits/object/issue-44454-1.stderr similarity index 100% rename from src/test/ui/traits/object/issue-44454-1.stderr rename to tests/ui/traits/object/issue-44454-1.stderr diff --git a/src/test/ui/traits/object/issue-44454-2.rs b/tests/ui/traits/object/issue-44454-2.rs similarity index 100% rename from src/test/ui/traits/object/issue-44454-2.rs rename to tests/ui/traits/object/issue-44454-2.rs diff --git a/src/test/ui/traits/object/issue-44454-2.stderr b/tests/ui/traits/object/issue-44454-2.stderr similarity index 100% rename from src/test/ui/traits/object/issue-44454-2.stderr rename to tests/ui/traits/object/issue-44454-2.stderr diff --git a/src/test/ui/traits/object/issue-44454-3.rs b/tests/ui/traits/object/issue-44454-3.rs similarity index 100% rename from src/test/ui/traits/object/issue-44454-3.rs rename to tests/ui/traits/object/issue-44454-3.rs diff --git a/src/test/ui/traits/object/issue-44454-3.stderr b/tests/ui/traits/object/issue-44454-3.stderr similarity index 100% rename from src/test/ui/traits/object/issue-44454-3.stderr rename to tests/ui/traits/object/issue-44454-3.stderr diff --git a/src/test/ui/traits/object/lifetime-first.rs b/tests/ui/traits/object/lifetime-first.rs similarity index 100% rename from src/test/ui/traits/object/lifetime-first.rs rename to tests/ui/traits/object/lifetime-first.rs diff --git a/src/test/ui/traits/object/macro-matcher.rs b/tests/ui/traits/object/macro-matcher.rs similarity index 100% rename from src/test/ui/traits/object/macro-matcher.rs rename to tests/ui/traits/object/macro-matcher.rs diff --git a/src/test/ui/traits/object/macro-matcher.stderr b/tests/ui/traits/object/macro-matcher.stderr similarity index 100% rename from src/test/ui/traits/object/macro-matcher.stderr rename to tests/ui/traits/object/macro-matcher.stderr diff --git a/src/test/ui/traits/object/safety.rs b/tests/ui/traits/object/safety.rs similarity index 100% rename from src/test/ui/traits/object/safety.rs rename to tests/ui/traits/object/safety.rs diff --git a/src/test/ui/traits/object/safety.stderr b/tests/ui/traits/object/safety.stderr similarity index 100% rename from src/test/ui/traits/object/safety.stderr rename to tests/ui/traits/object/safety.stderr diff --git a/src/test/ui/traits/object/supertrait-lifetime-bound.rs b/tests/ui/traits/object/supertrait-lifetime-bound.rs similarity index 100% rename from src/test/ui/traits/object/supertrait-lifetime-bound.rs rename to tests/ui/traits/object/supertrait-lifetime-bound.rs diff --git a/src/test/ui/traits/object/supertrait-lifetime-bound.stderr b/tests/ui/traits/object/supertrait-lifetime-bound.stderr similarity index 100% rename from src/test/ui/traits/object/supertrait-lifetime-bound.stderr rename to tests/ui/traits/object/supertrait-lifetime-bound.stderr diff --git a/src/test/ui/traits/object/vs-lifetime-2.rs b/tests/ui/traits/object/vs-lifetime-2.rs similarity index 100% rename from src/test/ui/traits/object/vs-lifetime-2.rs rename to tests/ui/traits/object/vs-lifetime-2.rs diff --git a/src/test/ui/traits/object/vs-lifetime-2.stderr b/tests/ui/traits/object/vs-lifetime-2.stderr similarity index 100% rename from src/test/ui/traits/object/vs-lifetime-2.stderr rename to tests/ui/traits/object/vs-lifetime-2.stderr diff --git a/src/test/ui/traits/object/vs-lifetime.rs b/tests/ui/traits/object/vs-lifetime.rs similarity index 100% rename from src/test/ui/traits/object/vs-lifetime.rs rename to tests/ui/traits/object/vs-lifetime.rs diff --git a/src/test/ui/traits/object/vs-lifetime.stderr b/tests/ui/traits/object/vs-lifetime.stderr similarity index 100% rename from src/test/ui/traits/object/vs-lifetime.stderr rename to tests/ui/traits/object/vs-lifetime.stderr diff --git a/src/test/ui/traits/object/with-lifetime-bound.rs b/tests/ui/traits/object/with-lifetime-bound.rs similarity index 100% rename from src/test/ui/traits/object/with-lifetime-bound.rs rename to tests/ui/traits/object/with-lifetime-bound.rs diff --git a/src/test/ui/traits/object/with-self-in-projection-output-bad.rs b/tests/ui/traits/object/with-self-in-projection-output-bad.rs similarity index 100% rename from src/test/ui/traits/object/with-self-in-projection-output-bad.rs rename to tests/ui/traits/object/with-self-in-projection-output-bad.rs diff --git a/src/test/ui/traits/object/with-self-in-projection-output-bad.stderr b/tests/ui/traits/object/with-self-in-projection-output-bad.stderr similarity index 100% rename from src/test/ui/traits/object/with-self-in-projection-output-bad.stderr rename to tests/ui/traits/object/with-self-in-projection-output-bad.stderr diff --git a/src/test/ui/traits/object/with-self-in-projection-output-good.rs b/tests/ui/traits/object/with-self-in-projection-output-good.rs similarity index 100% rename from src/test/ui/traits/object/with-self-in-projection-output-good.rs rename to tests/ui/traits/object/with-self-in-projection-output-good.rs diff --git a/src/test/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs b/tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs similarity index 100% rename from src/test/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs rename to tests/ui/traits/object/with-self-in-projection-output-repeated-supertrait.rs diff --git a/src/test/ui/traits/objects-owned-object-borrowed-method-headerless.rs b/tests/ui/traits/objects-owned-object-borrowed-method-headerless.rs similarity index 100% rename from src/test/ui/traits/objects-owned-object-borrowed-method-headerless.rs rename to tests/ui/traits/objects-owned-object-borrowed-method-headerless.rs diff --git a/src/test/ui/traits/operator-overloading-issue-52025.rs b/tests/ui/traits/operator-overloading-issue-52025.rs similarity index 100% rename from src/test/ui/traits/operator-overloading-issue-52025.rs rename to tests/ui/traits/operator-overloading-issue-52025.rs diff --git a/src/test/ui/traits/overlap-not-permitted-for-builtin-trait.rs b/tests/ui/traits/overlap-not-permitted-for-builtin-trait.rs similarity index 100% rename from src/test/ui/traits/overlap-not-permitted-for-builtin-trait.rs rename to tests/ui/traits/overlap-not-permitted-for-builtin-trait.rs diff --git a/src/test/ui/traits/overlap-not-permitted-for-builtin-trait.stderr b/tests/ui/traits/overlap-not-permitted-for-builtin-trait.stderr similarity index 100% rename from src/test/ui/traits/overlap-not-permitted-for-builtin-trait.stderr rename to tests/ui/traits/overlap-not-permitted-for-builtin-trait.stderr diff --git a/src/test/ui/traits/overlap-permitted-for-marker-traits.rs b/tests/ui/traits/overlap-permitted-for-marker-traits.rs similarity index 100% rename from src/test/ui/traits/overlap-permitted-for-marker-traits.rs rename to tests/ui/traits/overlap-permitted-for-marker-traits.rs diff --git a/src/test/ui/traits/param-without-lifetime-constraint.rs b/tests/ui/traits/param-without-lifetime-constraint.rs similarity index 100% rename from src/test/ui/traits/param-without-lifetime-constraint.rs rename to tests/ui/traits/param-without-lifetime-constraint.rs diff --git a/src/test/ui/traits/param-without-lifetime-constraint.stderr b/tests/ui/traits/param-without-lifetime-constraint.stderr similarity index 100% rename from src/test/ui/traits/param-without-lifetime-constraint.stderr rename to tests/ui/traits/param-without-lifetime-constraint.stderr diff --git a/src/test/ui/traits/parameterized-with-bounds.rs b/tests/ui/traits/parameterized-with-bounds.rs similarity index 100% rename from src/test/ui/traits/parameterized-with-bounds.rs rename to tests/ui/traits/parameterized-with-bounds.rs diff --git a/src/test/ui/traits/pointee-deduction.rs b/tests/ui/traits/pointee-deduction.rs similarity index 100% rename from src/test/ui/traits/pointee-deduction.rs rename to tests/ui/traits/pointee-deduction.rs diff --git a/src/test/ui/traits/pointee-tail-is-generic-errors.rs b/tests/ui/traits/pointee-tail-is-generic-errors.rs similarity index 100% rename from src/test/ui/traits/pointee-tail-is-generic-errors.rs rename to tests/ui/traits/pointee-tail-is-generic-errors.rs diff --git a/src/test/ui/traits/pointee-tail-is-generic-errors.stderr b/tests/ui/traits/pointee-tail-is-generic-errors.stderr similarity index 100% rename from src/test/ui/traits/pointee-tail-is-generic-errors.stderr rename to tests/ui/traits/pointee-tail-is-generic-errors.stderr diff --git a/src/test/ui/traits/pointee-tail-is-generic.rs b/tests/ui/traits/pointee-tail-is-generic.rs similarity index 100% rename from src/test/ui/traits/pointee-tail-is-generic.rs rename to tests/ui/traits/pointee-tail-is-generic.rs diff --git a/src/test/ui/traits/principal-less-objects.rs b/tests/ui/traits/principal-less-objects.rs similarity index 100% rename from src/test/ui/traits/principal-less-objects.rs rename to tests/ui/traits/principal-less-objects.rs diff --git a/src/test/ui/traits/privacy.rs b/tests/ui/traits/privacy.rs similarity index 100% rename from src/test/ui/traits/privacy.rs rename to tests/ui/traits/privacy.rs diff --git a/src/test/ui/traits/project-modulo-regions.rs b/tests/ui/traits/project-modulo-regions.rs similarity index 100% rename from src/test/ui/traits/project-modulo-regions.rs rename to tests/ui/traits/project-modulo-regions.rs diff --git a/src/test/ui/traits/project-modulo-regions.with_clause.stderr b/tests/ui/traits/project-modulo-regions.with_clause.stderr similarity index 100% rename from src/test/ui/traits/project-modulo-regions.with_clause.stderr rename to tests/ui/traits/project-modulo-regions.with_clause.stderr diff --git a/src/test/ui/traits/project-modulo-regions.without_clause.stderr b/tests/ui/traits/project-modulo-regions.without_clause.stderr similarity index 100% rename from src/test/ui/traits/project-modulo-regions.without_clause.stderr rename to tests/ui/traits/project-modulo-regions.without_clause.stderr diff --git a/src/test/ui/traits/region-pointer-simple.rs b/tests/ui/traits/region-pointer-simple.rs similarity index 100% rename from src/test/ui/traits/region-pointer-simple.rs rename to tests/ui/traits/region-pointer-simple.rs diff --git a/src/test/ui/traits/reservation-impl/coherence-conflict.rs b/tests/ui/traits/reservation-impl/coherence-conflict.rs similarity index 100% rename from src/test/ui/traits/reservation-impl/coherence-conflict.rs rename to tests/ui/traits/reservation-impl/coherence-conflict.rs diff --git a/src/test/ui/traits/reservation-impl/coherence-conflict.stderr b/tests/ui/traits/reservation-impl/coherence-conflict.stderr similarity index 100% rename from src/test/ui/traits/reservation-impl/coherence-conflict.stderr rename to tests/ui/traits/reservation-impl/coherence-conflict.stderr diff --git a/src/test/ui/traits/reservation-impl/no-use.rs b/tests/ui/traits/reservation-impl/no-use.rs similarity index 100% rename from src/test/ui/traits/reservation-impl/no-use.rs rename to tests/ui/traits/reservation-impl/no-use.rs diff --git a/src/test/ui/traits/reservation-impl/no-use.stderr b/tests/ui/traits/reservation-impl/no-use.stderr similarity index 100% rename from src/test/ui/traits/reservation-impl/no-use.stderr rename to tests/ui/traits/reservation-impl/no-use.stderr diff --git a/src/test/ui/traits/reservation-impl/non-lattice-ok.rs b/tests/ui/traits/reservation-impl/non-lattice-ok.rs similarity index 100% rename from src/test/ui/traits/reservation-impl/non-lattice-ok.rs rename to tests/ui/traits/reservation-impl/non-lattice-ok.rs diff --git a/src/test/ui/traits/reservation-impl/ok.rs b/tests/ui/traits/reservation-impl/ok.rs similarity index 100% rename from src/test/ui/traits/reservation-impl/ok.rs rename to tests/ui/traits/reservation-impl/ok.rs diff --git a/src/test/ui/traits/resolution-in-overloaded-op.rs b/tests/ui/traits/resolution-in-overloaded-op.rs similarity index 100% rename from src/test/ui/traits/resolution-in-overloaded-op.rs rename to tests/ui/traits/resolution-in-overloaded-op.rs diff --git a/src/test/ui/traits/resolution-in-overloaded-op.stderr b/tests/ui/traits/resolution-in-overloaded-op.stderr similarity index 100% rename from src/test/ui/traits/resolution-in-overloaded-op.stderr rename to tests/ui/traits/resolution-in-overloaded-op.stderr diff --git a/src/test/ui/traits/safety-fn-body.mir.stderr b/tests/ui/traits/safety-fn-body.mir.stderr similarity index 100% rename from src/test/ui/traits/safety-fn-body.mir.stderr rename to tests/ui/traits/safety-fn-body.mir.stderr diff --git a/src/test/ui/traits/safety-fn-body.rs b/tests/ui/traits/safety-fn-body.rs similarity index 100% rename from src/test/ui/traits/safety-fn-body.rs rename to tests/ui/traits/safety-fn-body.rs diff --git a/src/test/ui/traits/safety-fn-body.thir.stderr b/tests/ui/traits/safety-fn-body.thir.stderr similarity index 100% rename from src/test/ui/traits/safety-fn-body.thir.stderr rename to tests/ui/traits/safety-fn-body.thir.stderr diff --git a/src/test/ui/traits/safety-inherent-impl.rs b/tests/ui/traits/safety-inherent-impl.rs similarity index 100% rename from src/test/ui/traits/safety-inherent-impl.rs rename to tests/ui/traits/safety-inherent-impl.rs diff --git a/src/test/ui/traits/safety-inherent-impl.stderr b/tests/ui/traits/safety-inherent-impl.stderr similarity index 100% rename from src/test/ui/traits/safety-inherent-impl.stderr rename to tests/ui/traits/safety-inherent-impl.stderr diff --git a/src/test/ui/traits/safety-ok-cc.rs b/tests/ui/traits/safety-ok-cc.rs similarity index 100% rename from src/test/ui/traits/safety-ok-cc.rs rename to tests/ui/traits/safety-ok-cc.rs diff --git a/src/test/ui/traits/safety-ok.rs b/tests/ui/traits/safety-ok.rs similarity index 100% rename from src/test/ui/traits/safety-ok.rs rename to tests/ui/traits/safety-ok.rs diff --git a/src/test/ui/traits/safety-trait-impl-cc.rs b/tests/ui/traits/safety-trait-impl-cc.rs similarity index 100% rename from src/test/ui/traits/safety-trait-impl-cc.rs rename to tests/ui/traits/safety-trait-impl-cc.rs diff --git a/src/test/ui/traits/safety-trait-impl-cc.stderr b/tests/ui/traits/safety-trait-impl-cc.stderr similarity index 100% rename from src/test/ui/traits/safety-trait-impl-cc.stderr rename to tests/ui/traits/safety-trait-impl-cc.stderr diff --git a/src/test/ui/traits/safety-trait-impl.rs b/tests/ui/traits/safety-trait-impl.rs similarity index 100% rename from src/test/ui/traits/safety-trait-impl.rs rename to tests/ui/traits/safety-trait-impl.rs diff --git a/src/test/ui/traits/safety-trait-impl.stderr b/tests/ui/traits/safety-trait-impl.stderr similarity index 100% rename from src/test/ui/traits/safety-trait-impl.stderr rename to tests/ui/traits/safety-trait-impl.stderr diff --git a/src/test/ui/traits/self-without-lifetime-constraint.rs b/tests/ui/traits/self-without-lifetime-constraint.rs similarity index 100% rename from src/test/ui/traits/self-without-lifetime-constraint.rs rename to tests/ui/traits/self-without-lifetime-constraint.rs diff --git a/src/test/ui/traits/self-without-lifetime-constraint.stderr b/tests/ui/traits/self-without-lifetime-constraint.stderr similarity index 100% rename from src/test/ui/traits/self-without-lifetime-constraint.stderr rename to tests/ui/traits/self-without-lifetime-constraint.stderr diff --git a/src/test/ui/traits/solver-cycles/inductive-canonical-cycle.rs b/tests/ui/traits/solver-cycles/inductive-canonical-cycle.rs similarity index 100% rename from src/test/ui/traits/solver-cycles/inductive-canonical-cycle.rs rename to tests/ui/traits/solver-cycles/inductive-canonical-cycle.rs diff --git a/src/test/ui/traits/static-method-generic-inference.rs b/tests/ui/traits/static-method-generic-inference.rs similarity index 100% rename from src/test/ui/traits/static-method-generic-inference.rs rename to tests/ui/traits/static-method-generic-inference.rs diff --git a/src/test/ui/traits/static-method-generic-inference.stderr b/tests/ui/traits/static-method-generic-inference.stderr similarity index 100% rename from src/test/ui/traits/static-method-generic-inference.stderr rename to tests/ui/traits/static-method-generic-inference.stderr diff --git a/src/test/ui/traits/static-method-overwriting.rs b/tests/ui/traits/static-method-overwriting.rs similarity index 100% rename from src/test/ui/traits/static-method-overwriting.rs rename to tests/ui/traits/static-method-overwriting.rs diff --git a/src/test/ui/traits/static-outlives-a-where-clause.rs b/tests/ui/traits/static-outlives-a-where-clause.rs similarity index 100% rename from src/test/ui/traits/static-outlives-a-where-clause.rs rename to tests/ui/traits/static-outlives-a-where-clause.rs diff --git a/src/test/ui/traits/staticness-mismatch.rs b/tests/ui/traits/staticness-mismatch.rs similarity index 100% rename from src/test/ui/traits/staticness-mismatch.rs rename to tests/ui/traits/staticness-mismatch.rs diff --git a/src/test/ui/traits/staticness-mismatch.stderr b/tests/ui/traits/staticness-mismatch.stderr similarity index 100% rename from src/test/ui/traits/staticness-mismatch.stderr rename to tests/ui/traits/staticness-mismatch.stderr diff --git a/src/test/ui/traits/suggest-deferences/issue-39029.fixed b/tests/ui/traits/suggest-deferences/issue-39029.fixed similarity index 100% rename from src/test/ui/traits/suggest-deferences/issue-39029.fixed rename to tests/ui/traits/suggest-deferences/issue-39029.fixed diff --git a/src/test/ui/traits/suggest-deferences/issue-39029.rs b/tests/ui/traits/suggest-deferences/issue-39029.rs similarity index 100% rename from src/test/ui/traits/suggest-deferences/issue-39029.rs rename to tests/ui/traits/suggest-deferences/issue-39029.rs diff --git a/src/test/ui/traits/suggest-deferences/issue-39029.stderr b/tests/ui/traits/suggest-deferences/issue-39029.stderr similarity index 100% rename from src/test/ui/traits/suggest-deferences/issue-39029.stderr rename to tests/ui/traits/suggest-deferences/issue-39029.stderr diff --git a/src/test/ui/traits/suggest-deferences/issue-62530.fixed b/tests/ui/traits/suggest-deferences/issue-62530.fixed similarity index 100% rename from src/test/ui/traits/suggest-deferences/issue-62530.fixed rename to tests/ui/traits/suggest-deferences/issue-62530.fixed diff --git a/src/test/ui/traits/suggest-deferences/issue-62530.rs b/tests/ui/traits/suggest-deferences/issue-62530.rs similarity index 100% rename from src/test/ui/traits/suggest-deferences/issue-62530.rs rename to tests/ui/traits/suggest-deferences/issue-62530.rs diff --git a/src/test/ui/traits/suggest-deferences/issue-62530.stderr b/tests/ui/traits/suggest-deferences/issue-62530.stderr similarity index 100% rename from src/test/ui/traits/suggest-deferences/issue-62530.stderr rename to tests/ui/traits/suggest-deferences/issue-62530.stderr diff --git a/src/test/ui/traits/suggest-deferences/multiple-0.fixed b/tests/ui/traits/suggest-deferences/multiple-0.fixed similarity index 100% rename from src/test/ui/traits/suggest-deferences/multiple-0.fixed rename to tests/ui/traits/suggest-deferences/multiple-0.fixed diff --git a/src/test/ui/traits/suggest-deferences/multiple-0.rs b/tests/ui/traits/suggest-deferences/multiple-0.rs similarity index 100% rename from src/test/ui/traits/suggest-deferences/multiple-0.rs rename to tests/ui/traits/suggest-deferences/multiple-0.rs diff --git a/src/test/ui/traits/suggest-deferences/multiple-0.stderr b/tests/ui/traits/suggest-deferences/multiple-0.stderr similarity index 100% rename from src/test/ui/traits/suggest-deferences/multiple-0.stderr rename to tests/ui/traits/suggest-deferences/multiple-0.stderr diff --git a/src/test/ui/traits/suggest-deferences/multiple-1.rs b/tests/ui/traits/suggest-deferences/multiple-1.rs similarity index 100% rename from src/test/ui/traits/suggest-deferences/multiple-1.rs rename to tests/ui/traits/suggest-deferences/multiple-1.rs diff --git a/src/test/ui/traits/suggest-deferences/multiple-1.stderr b/tests/ui/traits/suggest-deferences/multiple-1.stderr similarity index 100% rename from src/test/ui/traits/suggest-deferences/multiple-1.stderr rename to tests/ui/traits/suggest-deferences/multiple-1.stderr diff --git a/src/test/ui/traits/suggest-deferences/root-obligation.fixed b/tests/ui/traits/suggest-deferences/root-obligation.fixed similarity index 100% rename from src/test/ui/traits/suggest-deferences/root-obligation.fixed rename to tests/ui/traits/suggest-deferences/root-obligation.fixed diff --git a/src/test/ui/traits/suggest-deferences/root-obligation.rs b/tests/ui/traits/suggest-deferences/root-obligation.rs similarity index 100% rename from src/test/ui/traits/suggest-deferences/root-obligation.rs rename to tests/ui/traits/suggest-deferences/root-obligation.rs diff --git a/src/test/ui/traits/suggest-deferences/root-obligation.stderr b/tests/ui/traits/suggest-deferences/root-obligation.stderr similarity index 100% rename from src/test/ui/traits/suggest-deferences/root-obligation.stderr rename to tests/ui/traits/suggest-deferences/root-obligation.stderr diff --git a/src/test/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.fixed b/tests/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.fixed similarity index 100% rename from src/test/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.fixed rename to tests/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.fixed diff --git a/src/test/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.rs b/tests/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.rs similarity index 100% rename from src/test/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.rs rename to tests/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.rs diff --git a/src/test/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.stderr b/tests/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.stderr similarity index 100% rename from src/test/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.stderr rename to tests/ui/traits/suggest-deferences/suggest-dereferencing-receiver-argument.stderr diff --git a/src/test/ui/traits/suggest-fully-qualified-closure.rs b/tests/ui/traits/suggest-fully-qualified-closure.rs similarity index 100% rename from src/test/ui/traits/suggest-fully-qualified-closure.rs rename to tests/ui/traits/suggest-fully-qualified-closure.rs diff --git a/src/test/ui/traits/suggest-fully-qualified-closure.stderr b/tests/ui/traits/suggest-fully-qualified-closure.stderr similarity index 100% rename from src/test/ui/traits/suggest-fully-qualified-closure.stderr rename to tests/ui/traits/suggest-fully-qualified-closure.stderr diff --git a/src/test/ui/traits/suggest-fully-qualified-path-with-adjustment.rs b/tests/ui/traits/suggest-fully-qualified-path-with-adjustment.rs similarity index 100% rename from src/test/ui/traits/suggest-fully-qualified-path-with-adjustment.rs rename to tests/ui/traits/suggest-fully-qualified-path-with-adjustment.rs diff --git a/src/test/ui/traits/suggest-fully-qualified-path-with-adjustment.stderr b/tests/ui/traits/suggest-fully-qualified-path-with-adjustment.stderr similarity index 100% rename from src/test/ui/traits/suggest-fully-qualified-path-with-adjustment.stderr rename to tests/ui/traits/suggest-fully-qualified-path-with-adjustment.stderr diff --git a/src/test/ui/traits/suggest-fully-qualified-path-without-adjustment.rs b/tests/ui/traits/suggest-fully-qualified-path-without-adjustment.rs similarity index 100% rename from src/test/ui/traits/suggest-fully-qualified-path-without-adjustment.rs rename to tests/ui/traits/suggest-fully-qualified-path-without-adjustment.rs diff --git a/src/test/ui/traits/suggest-fully-qualified-path-without-adjustment.stderr b/tests/ui/traits/suggest-fully-qualified-path-without-adjustment.stderr similarity index 100% rename from src/test/ui/traits/suggest-fully-qualified-path-without-adjustment.stderr rename to tests/ui/traits/suggest-fully-qualified-path-without-adjustment.stderr diff --git a/src/test/ui/traits/suggest-where-clause.rs b/tests/ui/traits/suggest-where-clause.rs similarity index 100% rename from src/test/ui/traits/suggest-where-clause.rs rename to tests/ui/traits/suggest-where-clause.rs diff --git a/src/test/ui/traits/suggest-where-clause.stderr b/tests/ui/traits/suggest-where-clause.stderr similarity index 100% rename from src/test/ui/traits/suggest-where-clause.stderr rename to tests/ui/traits/suggest-where-clause.stderr diff --git a/src/test/ui/traits/superdefault-generics.rs b/tests/ui/traits/superdefault-generics.rs similarity index 100% rename from src/test/ui/traits/superdefault-generics.rs rename to tests/ui/traits/superdefault-generics.rs diff --git a/src/test/ui/traits/syntax-polarity.rs b/tests/ui/traits/syntax-polarity.rs similarity index 100% rename from src/test/ui/traits/syntax-polarity.rs rename to tests/ui/traits/syntax-polarity.rs diff --git a/src/test/ui/traits/syntax-trait-polarity.rs b/tests/ui/traits/syntax-trait-polarity.rs similarity index 100% rename from src/test/ui/traits/syntax-trait-polarity.rs rename to tests/ui/traits/syntax-trait-polarity.rs diff --git a/src/test/ui/traits/syntax-trait-polarity.stderr b/tests/ui/traits/syntax-trait-polarity.stderr similarity index 100% rename from src/test/ui/traits/syntax-trait-polarity.stderr rename to tests/ui/traits/syntax-trait-polarity.stderr diff --git a/src/test/ui/traits/test-2.rs b/tests/ui/traits/test-2.rs similarity index 100% rename from src/test/ui/traits/test-2.rs rename to tests/ui/traits/test-2.rs diff --git a/src/test/ui/traits/test-2.stderr b/tests/ui/traits/test-2.stderr similarity index 100% rename from src/test/ui/traits/test-2.stderr rename to tests/ui/traits/test-2.stderr diff --git a/src/test/ui/traits/test.rs b/tests/ui/traits/test.rs similarity index 100% rename from src/test/ui/traits/test.rs rename to tests/ui/traits/test.rs diff --git a/src/test/ui/traits/test.stderr b/tests/ui/traits/test.stderr similarity index 100% rename from src/test/ui/traits/test.stderr rename to tests/ui/traits/test.stderr diff --git a/src/test/ui/traits/to-str.rs b/tests/ui/traits/to-str.rs similarity index 100% rename from src/test/ui/traits/to-str.rs rename to tests/ui/traits/to-str.rs diff --git a/src/test/ui/traits/trait-or-new-type-instead.rs b/tests/ui/traits/trait-or-new-type-instead.rs similarity index 100% rename from src/test/ui/traits/trait-or-new-type-instead.rs rename to tests/ui/traits/trait-or-new-type-instead.rs diff --git a/src/test/ui/traits/trait-or-new-type-instead.stderr b/tests/ui/traits/trait-or-new-type-instead.stderr similarity index 100% rename from src/test/ui/traits/trait-or-new-type-instead.stderr rename to tests/ui/traits/trait-or-new-type-instead.stderr diff --git a/src/test/ui/traits/trait-upcasting/basic.rs b/tests/ui/traits/trait-upcasting/basic.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/basic.rs rename to tests/ui/traits/trait-upcasting/basic.rs diff --git a/src/test/ui/traits/trait-upcasting/correct-supertrait-substitution.rs b/tests/ui/traits/trait-upcasting/correct-supertrait-substitution.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/correct-supertrait-substitution.rs rename to tests/ui/traits/trait-upcasting/correct-supertrait-substitution.rs diff --git a/src/test/ui/traits/trait-upcasting/cyclic-trait-resolution.rs b/tests/ui/traits/trait-upcasting/cyclic-trait-resolution.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/cyclic-trait-resolution.rs rename to tests/ui/traits/trait-upcasting/cyclic-trait-resolution.rs diff --git a/src/test/ui/traits/trait-upcasting/cyclic-trait-resolution.stderr b/tests/ui/traits/trait-upcasting/cyclic-trait-resolution.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/cyclic-trait-resolution.stderr rename to tests/ui/traits/trait-upcasting/cyclic-trait-resolution.stderr diff --git a/src/test/ui/traits/trait-upcasting/diamond.rs b/tests/ui/traits/trait-upcasting/diamond.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/diamond.rs rename to tests/ui/traits/trait-upcasting/diamond.rs diff --git a/src/test/ui/traits/trait-upcasting/invalid-upcast.rs b/tests/ui/traits/trait-upcasting/invalid-upcast.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/invalid-upcast.rs rename to tests/ui/traits/trait-upcasting/invalid-upcast.rs diff --git a/src/test/ui/traits/trait-upcasting/invalid-upcast.stderr b/tests/ui/traits/trait-upcasting/invalid-upcast.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/invalid-upcast.stderr rename to tests/ui/traits/trait-upcasting/invalid-upcast.stderr diff --git a/src/test/ui/traits/trait-upcasting/issue-11515-upcast-fn_mut-fn.rs b/tests/ui/traits/trait-upcasting/issue-11515-upcast-fn_mut-fn.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/issue-11515-upcast-fn_mut-fn.rs rename to tests/ui/traits/trait-upcasting/issue-11515-upcast-fn_mut-fn.rs diff --git a/src/test/ui/traits/trait-upcasting/lifetime.rs b/tests/ui/traits/trait-upcasting/lifetime.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/lifetime.rs rename to tests/ui/traits/trait-upcasting/lifetime.rs diff --git a/src/test/ui/traits/trait-upcasting/migrate-lint-deny.rs b/tests/ui/traits/trait-upcasting/migrate-lint-deny.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/migrate-lint-deny.rs rename to tests/ui/traits/trait-upcasting/migrate-lint-deny.rs diff --git a/src/test/ui/traits/trait-upcasting/migrate-lint-deny.stderr b/tests/ui/traits/trait-upcasting/migrate-lint-deny.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/migrate-lint-deny.stderr rename to tests/ui/traits/trait-upcasting/migrate-lint-deny.stderr diff --git a/src/test/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.rs b/tests/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.rs rename to tests/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.rs diff --git a/src/test/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.stderr b/tests/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.stderr rename to tests/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.stderr diff --git a/src/test/ui/traits/trait-upcasting/replace-vptr.rs b/tests/ui/traits/trait-upcasting/replace-vptr.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/replace-vptr.rs rename to tests/ui/traits/trait-upcasting/replace-vptr.rs diff --git a/src/test/ui/traits/trait-upcasting/struct.rs b/tests/ui/traits/trait-upcasting/struct.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/struct.rs rename to tests/ui/traits/trait-upcasting/struct.rs diff --git a/src/test/ui/traits/trait-upcasting/subtrait-method.rs b/tests/ui/traits/trait-upcasting/subtrait-method.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/subtrait-method.rs rename to tests/ui/traits/trait-upcasting/subtrait-method.rs diff --git a/src/test/ui/traits/trait-upcasting/subtrait-method.stderr b/tests/ui/traits/trait-upcasting/subtrait-method.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/subtrait-method.stderr rename to tests/ui/traits/trait-upcasting/subtrait-method.stderr diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-1.rs b/tests/ui/traits/trait-upcasting/type-checking-test-1.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-1.rs rename to tests/ui/traits/trait-upcasting/type-checking-test-1.rs diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-1.stderr b/tests/ui/traits/trait-upcasting/type-checking-test-1.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-1.stderr rename to tests/ui/traits/trait-upcasting/type-checking-test-1.stderr diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-2.rs b/tests/ui/traits/trait-upcasting/type-checking-test-2.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-2.rs rename to tests/ui/traits/trait-upcasting/type-checking-test-2.rs diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-2.stderr b/tests/ui/traits/trait-upcasting/type-checking-test-2.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-2.stderr rename to tests/ui/traits/trait-upcasting/type-checking-test-2.stderr diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-3.polonius.stderr b/tests/ui/traits/trait-upcasting/type-checking-test-3.polonius.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-3.polonius.stderr rename to tests/ui/traits/trait-upcasting/type-checking-test-3.polonius.stderr diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-3.rs b/tests/ui/traits/trait-upcasting/type-checking-test-3.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-3.rs rename to tests/ui/traits/trait-upcasting/type-checking-test-3.rs diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-3.stderr b/tests/ui/traits/trait-upcasting/type-checking-test-3.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-3.stderr rename to tests/ui/traits/trait-upcasting/type-checking-test-3.stderr diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr b/tests/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr rename to tests/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-4.rs b/tests/ui/traits/trait-upcasting/type-checking-test-4.rs similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-4.rs rename to tests/ui/traits/trait-upcasting/type-checking-test-4.rs diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-4.stderr b/tests/ui/traits/trait-upcasting/type-checking-test-4.stderr similarity index 100% rename from src/test/ui/traits/trait-upcasting/type-checking-test-4.stderr rename to tests/ui/traits/trait-upcasting/type-checking-test-4.stderr diff --git a/src/test/ui/traits/typeclasses-eq-example-static.rs b/tests/ui/traits/typeclasses-eq-example-static.rs similarity index 100% rename from src/test/ui/traits/typeclasses-eq-example-static.rs rename to tests/ui/traits/typeclasses-eq-example-static.rs diff --git a/src/test/ui/traits/typeclasses-eq-example.rs b/tests/ui/traits/typeclasses-eq-example.rs similarity index 100% rename from src/test/ui/traits/typeclasses-eq-example.rs rename to tests/ui/traits/typeclasses-eq-example.rs diff --git a/src/test/ui/traits/ufcs-object.rs b/tests/ui/traits/ufcs-object.rs similarity index 100% rename from src/test/ui/traits/ufcs-object.rs rename to tests/ui/traits/ufcs-object.rs diff --git a/src/test/ui/traits/unspecified-self-in-trait-ref.rs b/tests/ui/traits/unspecified-self-in-trait-ref.rs similarity index 100% rename from src/test/ui/traits/unspecified-self-in-trait-ref.rs rename to tests/ui/traits/unspecified-self-in-trait-ref.rs diff --git a/src/test/ui/traits/unspecified-self-in-trait-ref.stderr b/tests/ui/traits/unspecified-self-in-trait-ref.stderr similarity index 100% rename from src/test/ui/traits/unspecified-self-in-trait-ref.stderr rename to tests/ui/traits/unspecified-self-in-trait-ref.stderr diff --git a/src/test/ui/traits/use-before-def.rs b/tests/ui/traits/use-before-def.rs similarity index 100% rename from src/test/ui/traits/use-before-def.rs rename to tests/ui/traits/use-before-def.rs diff --git a/src/test/ui/traits/vtable-res-trait-param.rs b/tests/ui/traits/vtable-res-trait-param.rs similarity index 100% rename from src/test/ui/traits/vtable-res-trait-param.rs rename to tests/ui/traits/vtable-res-trait-param.rs diff --git a/src/test/ui/traits/vtable-res-trait-param.stderr b/tests/ui/traits/vtable-res-trait-param.stderr similarity index 100% rename from src/test/ui/traits/vtable-res-trait-param.stderr rename to tests/ui/traits/vtable-res-trait-param.stderr diff --git a/src/test/ui/traits/vtable/issue-91807.rs b/tests/ui/traits/vtable/issue-91807.rs similarity index 100% rename from src/test/ui/traits/vtable/issue-91807.rs rename to tests/ui/traits/vtable/issue-91807.rs diff --git a/src/test/ui/traits/vtable/issue-97381.rs b/tests/ui/traits/vtable/issue-97381.rs similarity index 100% rename from src/test/ui/traits/vtable/issue-97381.rs rename to tests/ui/traits/vtable/issue-97381.rs diff --git a/src/test/ui/traits/vtable/issue-97381.stderr b/tests/ui/traits/vtable/issue-97381.stderr similarity index 100% rename from src/test/ui/traits/vtable/issue-97381.stderr rename to tests/ui/traits/vtable/issue-97381.stderr diff --git a/src/test/ui/traits/vtable/vtable-diamond.rs b/tests/ui/traits/vtable/vtable-diamond.rs similarity index 100% rename from src/test/ui/traits/vtable/vtable-diamond.rs rename to tests/ui/traits/vtable/vtable-diamond.rs diff --git a/src/test/ui/traits/vtable/vtable-diamond.stderr b/tests/ui/traits/vtable/vtable-diamond.stderr similarity index 100% rename from src/test/ui/traits/vtable/vtable-diamond.stderr rename to tests/ui/traits/vtable/vtable-diamond.stderr diff --git a/src/test/ui/traits/vtable/vtable-multi-level.rs b/tests/ui/traits/vtable/vtable-multi-level.rs similarity index 100% rename from src/test/ui/traits/vtable/vtable-multi-level.rs rename to tests/ui/traits/vtable/vtable-multi-level.rs diff --git a/src/test/ui/traits/vtable/vtable-multi-level.stderr b/tests/ui/traits/vtable/vtable-multi-level.stderr similarity index 100% rename from src/test/ui/traits/vtable/vtable-multi-level.stderr rename to tests/ui/traits/vtable/vtable-multi-level.stderr diff --git a/src/test/ui/traits/vtable/vtable-multiple.rs b/tests/ui/traits/vtable/vtable-multiple.rs similarity index 100% rename from src/test/ui/traits/vtable/vtable-multiple.rs rename to tests/ui/traits/vtable/vtable-multiple.rs diff --git a/src/test/ui/traits/vtable/vtable-multiple.stderr b/tests/ui/traits/vtable/vtable-multiple.stderr similarity index 100% rename from src/test/ui/traits/vtable/vtable-multiple.stderr rename to tests/ui/traits/vtable/vtable-multiple.stderr diff --git a/src/test/ui/traits/vtable/vtable-non-object-safe.rs b/tests/ui/traits/vtable/vtable-non-object-safe.rs similarity index 100% rename from src/test/ui/traits/vtable/vtable-non-object-safe.rs rename to tests/ui/traits/vtable/vtable-non-object-safe.rs diff --git a/src/test/ui/traits/vtable/vtable-non-object-safe.stderr b/tests/ui/traits/vtable/vtable-non-object-safe.stderr similarity index 100% rename from src/test/ui/traits/vtable/vtable-non-object-safe.stderr rename to tests/ui/traits/vtable/vtable-non-object-safe.stderr diff --git a/src/test/ui/traits/vtable/vtable-vacant.rs b/tests/ui/traits/vtable/vtable-vacant.rs similarity index 100% rename from src/test/ui/traits/vtable/vtable-vacant.rs rename to tests/ui/traits/vtable/vtable-vacant.rs diff --git a/src/test/ui/traits/vtable/vtable-vacant.stderr b/tests/ui/traits/vtable/vtable-vacant.stderr similarity index 100% rename from src/test/ui/traits/vtable/vtable-vacant.stderr rename to tests/ui/traits/vtable/vtable-vacant.stderr diff --git a/src/test/ui/traits/wf-object/maybe-bound.rs b/tests/ui/traits/wf-object/maybe-bound.rs similarity index 100% rename from src/test/ui/traits/wf-object/maybe-bound.rs rename to tests/ui/traits/wf-object/maybe-bound.rs diff --git a/src/test/ui/traits/wf-object/maybe-bound.stderr b/tests/ui/traits/wf-object/maybe-bound.stderr similarity index 100% rename from src/test/ui/traits/wf-object/maybe-bound.stderr rename to tests/ui/traits/wf-object/maybe-bound.stderr diff --git a/src/test/ui/traits/wf-object/no-duplicates.rs b/tests/ui/traits/wf-object/no-duplicates.rs similarity index 100% rename from src/test/ui/traits/wf-object/no-duplicates.rs rename to tests/ui/traits/wf-object/no-duplicates.rs diff --git a/src/test/ui/traits/wf-object/no-duplicates.stderr b/tests/ui/traits/wf-object/no-duplicates.stderr similarity index 100% rename from src/test/ui/traits/wf-object/no-duplicates.stderr rename to tests/ui/traits/wf-object/no-duplicates.stderr diff --git a/src/test/ui/traits/wf-object/only-maybe-bound.rs b/tests/ui/traits/wf-object/only-maybe-bound.rs similarity index 100% rename from src/test/ui/traits/wf-object/only-maybe-bound.rs rename to tests/ui/traits/wf-object/only-maybe-bound.rs diff --git a/src/test/ui/traits/wf-object/only-maybe-bound.stderr b/tests/ui/traits/wf-object/only-maybe-bound.stderr similarity index 100% rename from src/test/ui/traits/wf-object/only-maybe-bound.stderr rename to tests/ui/traits/wf-object/only-maybe-bound.stderr diff --git a/src/test/ui/traits/wf-object/reverse-order.rs b/tests/ui/traits/wf-object/reverse-order.rs similarity index 100% rename from src/test/ui/traits/wf-object/reverse-order.rs rename to tests/ui/traits/wf-object/reverse-order.rs diff --git a/src/test/ui/traits/where-clause-vs-impl.rs b/tests/ui/traits/where-clause-vs-impl.rs similarity index 100% rename from src/test/ui/traits/where-clause-vs-impl.rs rename to tests/ui/traits/where-clause-vs-impl.rs diff --git a/src/test/ui/traits/with-bounds-default.rs b/tests/ui/traits/with-bounds-default.rs similarity index 100% rename from src/test/ui/traits/with-bounds-default.rs rename to tests/ui/traits/with-bounds-default.rs diff --git a/src/test/ui/traits/with-dst.rs b/tests/ui/traits/with-dst.rs similarity index 100% rename from src/test/ui/traits/with-dst.rs rename to tests/ui/traits/with-dst.rs diff --git a/src/test/ui/transmutability/abstraction/abstracted_assume.rs b/tests/ui/transmutability/abstraction/abstracted_assume.rs similarity index 100% rename from src/test/ui/transmutability/abstraction/abstracted_assume.rs rename to tests/ui/transmutability/abstraction/abstracted_assume.rs diff --git a/src/test/ui/transmutability/abstraction/const_generic_fn.rs b/tests/ui/transmutability/abstraction/const_generic_fn.rs similarity index 100% rename from src/test/ui/transmutability/abstraction/const_generic_fn.rs rename to tests/ui/transmutability/abstraction/const_generic_fn.rs diff --git a/src/test/ui/transmutability/arrays/issue-103783-array-length.rs b/tests/ui/transmutability/arrays/issue-103783-array-length.rs similarity index 100% rename from src/test/ui/transmutability/arrays/issue-103783-array-length.rs rename to tests/ui/transmutability/arrays/issue-103783-array-length.rs diff --git a/src/test/ui/transmutability/arrays/issue-103783-array-length.stderr b/tests/ui/transmutability/arrays/issue-103783-array-length.stderr similarity index 100% rename from src/test/ui/transmutability/arrays/issue-103783-array-length.stderr rename to tests/ui/transmutability/arrays/issue-103783-array-length.stderr diff --git a/src/test/ui/transmutability/arrays/should_have_correct_length.rs b/tests/ui/transmutability/arrays/should_have_correct_length.rs similarity index 100% rename from src/test/ui/transmutability/arrays/should_have_correct_length.rs rename to tests/ui/transmutability/arrays/should_have_correct_length.rs diff --git a/src/test/ui/transmutability/arrays/should_inherit_alignment.rs b/tests/ui/transmutability/arrays/should_inherit_alignment.rs similarity index 100% rename from src/test/ui/transmutability/arrays/should_inherit_alignment.rs rename to tests/ui/transmutability/arrays/should_inherit_alignment.rs diff --git a/src/test/ui/transmutability/arrays/should_require_well_defined_layout.rs b/tests/ui/transmutability/arrays/should_require_well_defined_layout.rs similarity index 100% rename from src/test/ui/transmutability/arrays/should_require_well_defined_layout.rs rename to tests/ui/transmutability/arrays/should_require_well_defined_layout.rs diff --git a/src/test/ui/transmutability/arrays/should_require_well_defined_layout.stderr b/tests/ui/transmutability/arrays/should_require_well_defined_layout.stderr similarity index 100% rename from src/test/ui/transmutability/arrays/should_require_well_defined_layout.stderr rename to tests/ui/transmutability/arrays/should_require_well_defined_layout.stderr diff --git a/src/test/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.rs b/tests/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.rs similarity index 100% rename from src/test/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.rs rename to tests/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.rs diff --git a/src/test/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.stderr b/tests/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.stderr similarity index 100% rename from src/test/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.stderr rename to tests/ui/transmutability/enums/repr/primitive_reprs_should_have_correct_length.stderr diff --git a/src/test/ui/transmutability/enums/repr/should_require_well_defined_layout.rs b/tests/ui/transmutability/enums/repr/should_require_well_defined_layout.rs similarity index 100% rename from src/test/ui/transmutability/enums/repr/should_require_well_defined_layout.rs rename to tests/ui/transmutability/enums/repr/should_require_well_defined_layout.rs diff --git a/src/test/ui/transmutability/enums/repr/should_require_well_defined_layout.stderr b/tests/ui/transmutability/enums/repr/should_require_well_defined_layout.stderr similarity index 100% rename from src/test/ui/transmutability/enums/repr/should_require_well_defined_layout.stderr rename to tests/ui/transmutability/enums/repr/should_require_well_defined_layout.stderr diff --git a/src/test/ui/transmutability/enums/should_order_correctly.rs b/tests/ui/transmutability/enums/should_order_correctly.rs similarity index 100% rename from src/test/ui/transmutability/enums/should_order_correctly.rs rename to tests/ui/transmutability/enums/should_order_correctly.rs diff --git a/src/test/ui/transmutability/enums/should_pad_variants.rs b/tests/ui/transmutability/enums/should_pad_variants.rs similarity index 100% rename from src/test/ui/transmutability/enums/should_pad_variants.rs rename to tests/ui/transmutability/enums/should_pad_variants.rs diff --git a/src/test/ui/transmutability/enums/should_pad_variants.stderr b/tests/ui/transmutability/enums/should_pad_variants.stderr similarity index 100% rename from src/test/ui/transmutability/enums/should_pad_variants.stderr rename to tests/ui/transmutability/enums/should_pad_variants.stderr diff --git a/src/test/ui/transmutability/enums/should_respect_endianness.rs b/tests/ui/transmutability/enums/should_respect_endianness.rs similarity index 100% rename from src/test/ui/transmutability/enums/should_respect_endianness.rs rename to tests/ui/transmutability/enums/should_respect_endianness.rs diff --git a/src/test/ui/transmutability/enums/should_respect_endianness.stderr b/tests/ui/transmutability/enums/should_respect_endianness.stderr similarity index 100% rename from src/test/ui/transmutability/enums/should_respect_endianness.stderr rename to tests/ui/transmutability/enums/should_respect_endianness.stderr diff --git a/src/test/ui/transmutability/issue-101739-1.rs b/tests/ui/transmutability/issue-101739-1.rs similarity index 100% rename from src/test/ui/transmutability/issue-101739-1.rs rename to tests/ui/transmutability/issue-101739-1.rs diff --git a/src/test/ui/transmutability/issue-101739-1.stderr b/tests/ui/transmutability/issue-101739-1.stderr similarity index 100% rename from src/test/ui/transmutability/issue-101739-1.stderr rename to tests/ui/transmutability/issue-101739-1.stderr diff --git a/src/test/ui/transmutability/issue-101739-2.rs b/tests/ui/transmutability/issue-101739-2.rs similarity index 100% rename from src/test/ui/transmutability/issue-101739-2.rs rename to tests/ui/transmutability/issue-101739-2.rs diff --git a/src/test/ui/transmutability/issue-101739-2.stderr b/tests/ui/transmutability/issue-101739-2.stderr similarity index 100% rename from src/test/ui/transmutability/issue-101739-2.stderr rename to tests/ui/transmutability/issue-101739-2.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.rs b/tests/ui/transmutability/malformed-program-gracefulness/feature-missing.rs similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.rs rename to tests/ui/transmutability/malformed-program-gracefulness/feature-missing.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr b/tests/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr rename to tests/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs b/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs rename to tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr b/tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr rename to tests/ui/transmutability/malformed-program-gracefulness/unknown_dst.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.rs b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.rs similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.rs rename to tests/ui/transmutability/malformed-program-gracefulness/unknown_src.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr rename to tests/ui/transmutability/malformed-program-gracefulness/unknown_src.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs rename to tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr b/tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr rename to tests/ui/transmutability/malformed-program-gracefulness/unknown_src_field.stderr diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs b/tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs rename to tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.rs diff --git a/src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr b/tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr similarity index 100% rename from src/test/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr rename to tests/ui/transmutability/malformed-program-gracefulness/wrong-type-assume.stderr diff --git a/src/test/ui/transmutability/primitives/bool.rs b/tests/ui/transmutability/primitives/bool.rs similarity index 100% rename from src/test/ui/transmutability/primitives/bool.rs rename to tests/ui/transmutability/primitives/bool.rs diff --git a/src/test/ui/transmutability/primitives/bool.stderr b/tests/ui/transmutability/primitives/bool.stderr similarity index 100% rename from src/test/ui/transmutability/primitives/bool.stderr rename to tests/ui/transmutability/primitives/bool.stderr diff --git a/src/test/ui/transmutability/primitives/numbers.rs b/tests/ui/transmutability/primitives/numbers.rs similarity index 100% rename from src/test/ui/transmutability/primitives/numbers.rs rename to tests/ui/transmutability/primitives/numbers.rs diff --git a/src/test/ui/transmutability/primitives/numbers.stderr b/tests/ui/transmutability/primitives/numbers.stderr similarity index 100% rename from src/test/ui/transmutability/primitives/numbers.stderr rename to tests/ui/transmutability/primitives/numbers.stderr diff --git a/src/test/ui/transmutability/primitives/unit.rs b/tests/ui/transmutability/primitives/unit.rs similarity index 100% rename from src/test/ui/transmutability/primitives/unit.rs rename to tests/ui/transmutability/primitives/unit.rs diff --git a/src/test/ui/transmutability/primitives/unit.stderr b/tests/ui/transmutability/primitives/unit.stderr similarity index 100% rename from src/test/ui/transmutability/primitives/unit.stderr rename to tests/ui/transmutability/primitives/unit.stderr diff --git a/src/test/ui/transmutability/references.rs b/tests/ui/transmutability/references.rs similarity index 100% rename from src/test/ui/transmutability/references.rs rename to tests/ui/transmutability/references.rs diff --git a/src/test/ui/transmutability/references.stderr b/tests/ui/transmutability/references.stderr similarity index 100% rename from src/test/ui/transmutability/references.stderr rename to tests/ui/transmutability/references.stderr diff --git a/src/test/ui/transmutability/structs/repr/should_handle_align.rs b/tests/ui/transmutability/structs/repr/should_handle_align.rs similarity index 100% rename from src/test/ui/transmutability/structs/repr/should_handle_align.rs rename to tests/ui/transmutability/structs/repr/should_handle_align.rs diff --git a/src/test/ui/transmutability/structs/repr/should_handle_packed.rs b/tests/ui/transmutability/structs/repr/should_handle_packed.rs similarity index 100% rename from src/test/ui/transmutability/structs/repr/should_handle_packed.rs rename to tests/ui/transmutability/structs/repr/should_handle_packed.rs diff --git a/src/test/ui/transmutability/structs/repr/should_require_well_defined_layout.rs b/tests/ui/transmutability/structs/repr/should_require_well_defined_layout.rs similarity index 100% rename from src/test/ui/transmutability/structs/repr/should_require_well_defined_layout.rs rename to tests/ui/transmutability/structs/repr/should_require_well_defined_layout.rs diff --git a/src/test/ui/transmutability/structs/repr/should_require_well_defined_layout.stderr b/tests/ui/transmutability/structs/repr/should_require_well_defined_layout.stderr similarity index 100% rename from src/test/ui/transmutability/structs/repr/should_require_well_defined_layout.stderr rename to tests/ui/transmutability/structs/repr/should_require_well_defined_layout.stderr diff --git a/src/test/ui/transmutability/structs/should_order_fields_correctly.rs b/tests/ui/transmutability/structs/should_order_fields_correctly.rs similarity index 100% rename from src/test/ui/transmutability/structs/should_order_fields_correctly.rs rename to tests/ui/transmutability/structs/should_order_fields_correctly.rs diff --git a/src/test/ui/transmutability/unions/boolish.rs b/tests/ui/transmutability/unions/boolish.rs similarity index 100% rename from src/test/ui/transmutability/unions/boolish.rs rename to tests/ui/transmutability/unions/boolish.rs diff --git a/src/test/ui/transmutability/unions/repr/should_handle_align.rs b/tests/ui/transmutability/unions/repr/should_handle_align.rs similarity index 100% rename from src/test/ui/transmutability/unions/repr/should_handle_align.rs rename to tests/ui/transmutability/unions/repr/should_handle_align.rs diff --git a/src/test/ui/transmutability/unions/repr/should_handle_packed.rs b/tests/ui/transmutability/unions/repr/should_handle_packed.rs similarity index 100% rename from src/test/ui/transmutability/unions/repr/should_handle_packed.rs rename to tests/ui/transmutability/unions/repr/should_handle_packed.rs diff --git a/src/test/ui/transmutability/unions/repr/should_require_well_defined_layout.rs b/tests/ui/transmutability/unions/repr/should_require_well_defined_layout.rs similarity index 100% rename from src/test/ui/transmutability/unions/repr/should_require_well_defined_layout.rs rename to tests/ui/transmutability/unions/repr/should_require_well_defined_layout.rs diff --git a/src/test/ui/transmutability/unions/repr/should_require_well_defined_layout.stderr b/tests/ui/transmutability/unions/repr/should_require_well_defined_layout.stderr similarity index 100% rename from src/test/ui/transmutability/unions/repr/should_require_well_defined_layout.stderr rename to tests/ui/transmutability/unions/repr/should_require_well_defined_layout.stderr diff --git a/src/test/ui/transmutability/unions/should_pad_variants.rs b/tests/ui/transmutability/unions/should_pad_variants.rs similarity index 100% rename from src/test/ui/transmutability/unions/should_pad_variants.rs rename to tests/ui/transmutability/unions/should_pad_variants.rs diff --git a/src/test/ui/transmutability/unions/should_pad_variants.stderr b/tests/ui/transmutability/unions/should_pad_variants.stderr similarity index 100% rename from src/test/ui/transmutability/unions/should_pad_variants.stderr rename to tests/ui/transmutability/unions/should_pad_variants.stderr diff --git a/src/test/ui/transmutability/unions/should_permit_intersecting_if_validity_is_assumed.rs b/tests/ui/transmutability/unions/should_permit_intersecting_if_validity_is_assumed.rs similarity index 100% rename from src/test/ui/transmutability/unions/should_permit_intersecting_if_validity_is_assumed.rs rename to tests/ui/transmutability/unions/should_permit_intersecting_if_validity_is_assumed.rs diff --git a/src/test/ui/transmutability/unions/should_reject_contraction.rs b/tests/ui/transmutability/unions/should_reject_contraction.rs similarity index 100% rename from src/test/ui/transmutability/unions/should_reject_contraction.rs rename to tests/ui/transmutability/unions/should_reject_contraction.rs diff --git a/src/test/ui/transmutability/unions/should_reject_contraction.stderr b/tests/ui/transmutability/unions/should_reject_contraction.stderr similarity index 100% rename from src/test/ui/transmutability/unions/should_reject_contraction.stderr rename to tests/ui/transmutability/unions/should_reject_contraction.stderr diff --git a/src/test/ui/transmutability/unions/should_reject_disjoint.rs b/tests/ui/transmutability/unions/should_reject_disjoint.rs similarity index 100% rename from src/test/ui/transmutability/unions/should_reject_disjoint.rs rename to tests/ui/transmutability/unions/should_reject_disjoint.rs diff --git a/src/test/ui/transmutability/unions/should_reject_disjoint.stderr b/tests/ui/transmutability/unions/should_reject_disjoint.stderr similarity index 100% rename from src/test/ui/transmutability/unions/should_reject_disjoint.stderr rename to tests/ui/transmutability/unions/should_reject_disjoint.stderr diff --git a/src/test/ui/transmutability/unions/should_reject_intersecting.rs b/tests/ui/transmutability/unions/should_reject_intersecting.rs similarity index 100% rename from src/test/ui/transmutability/unions/should_reject_intersecting.rs rename to tests/ui/transmutability/unions/should_reject_intersecting.rs diff --git a/src/test/ui/transmutability/unions/should_reject_intersecting.stderr b/tests/ui/transmutability/unions/should_reject_intersecting.stderr similarity index 100% rename from src/test/ui/transmutability/unions/should_reject_intersecting.stderr rename to tests/ui/transmutability/unions/should_reject_intersecting.stderr diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_field.rs b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_field.rs rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_field.rs diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_variant.rs b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_variant.rs similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_variant.rs rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_private_variant.rs diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_tricky_unreachable_field.rs b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_tricky_unreachable_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_tricky_unreachable_field.rs rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_tricky_unreachable_field.rs diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.rs b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.rs rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.rs diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.stderr b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.stderr rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_field.stderr diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.rs b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.rs similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.rs rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.rs diff --git a/src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.stderr b/tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.stderr rename to tests/ui/transmutability/visibility/assume/should_accept_if_dst_has_unreachable_ty.stderr diff --git a/src/test/ui/transmutability/visibility/should_accept_if_src_has_private_field.rs b/tests/ui/transmutability/visibility/should_accept_if_src_has_private_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_accept_if_src_has_private_field.rs rename to tests/ui/transmutability/visibility/should_accept_if_src_has_private_field.rs diff --git a/src/test/ui/transmutability/visibility/should_accept_if_src_has_private_variant.rs b/tests/ui/transmutability/visibility/should_accept_if_src_has_private_variant.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_accept_if_src_has_private_variant.rs rename to tests/ui/transmutability/visibility/should_accept_if_src_has_private_variant.rs diff --git a/src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.rs b/tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.rs rename to tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.rs diff --git a/src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.stderr b/tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.stderr rename to tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.stderr diff --git a/src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.rs b/tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.rs rename to tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.rs diff --git a/src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.stderr b/tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.stderr rename to tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_ty.stderr diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_field.rs b/tests/ui/transmutability/visibility/should_reject_if_dst_has_private_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_field.rs rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_private_field.rs diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_field.stderr b/tests/ui/transmutability/visibility/should_reject_if_dst_has_private_field.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_field.stderr rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_private_field.stderr diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.rs b/tests/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.rs rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.rs diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.stderr b/tests/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.stderr rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_private_variant.stderr diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_tricky_unreachable_field.rs b/tests/ui/transmutability/visibility/should_reject_if_dst_has_tricky_unreachable_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_tricky_unreachable_field.rs rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_tricky_unreachable_field.rs diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.rs b/tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.rs rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.rs diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.stderr b/tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.stderr rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_field.stderr diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.rs b/tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.rs similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.rs rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.rs diff --git a/src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.stderr b/tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.stderr similarity index 100% rename from src/test/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.stderr rename to tests/ui/transmutability/visibility/should_reject_if_dst_has_unreachable_ty.stderr diff --git a/src/test/ui/transmute-equal-assoc-types.rs b/tests/ui/transmute-equal-assoc-types.rs similarity index 100% rename from src/test/ui/transmute-equal-assoc-types.rs rename to tests/ui/transmute-equal-assoc-types.rs diff --git a/src/test/ui/transmute-non-immediate-to-immediate.rs b/tests/ui/transmute-non-immediate-to-immediate.rs similarity index 100% rename from src/test/ui/transmute-non-immediate-to-immediate.rs rename to tests/ui/transmute-non-immediate-to-immediate.rs diff --git a/src/test/ui/transmute/lifetimes.rs b/tests/ui/transmute/lifetimes.rs similarity index 100% rename from src/test/ui/transmute/lifetimes.rs rename to tests/ui/transmute/lifetimes.rs diff --git a/src/test/ui/transmute/main.rs b/tests/ui/transmute/main.rs similarity index 100% rename from src/test/ui/transmute/main.rs rename to tests/ui/transmute/main.rs diff --git a/src/test/ui/transmute/main.stderr b/tests/ui/transmute/main.stderr similarity index 100% rename from src/test/ui/transmute/main.stderr rename to tests/ui/transmute/main.stderr diff --git a/src/test/ui/transmute/transmute-different-sizes.rs b/tests/ui/transmute/transmute-different-sizes.rs similarity index 100% rename from src/test/ui/transmute/transmute-different-sizes.rs rename to tests/ui/transmute/transmute-different-sizes.rs diff --git a/src/test/ui/transmute/transmute-different-sizes.stderr b/tests/ui/transmute/transmute-different-sizes.stderr similarity index 100% rename from src/test/ui/transmute/transmute-different-sizes.stderr rename to tests/ui/transmute/transmute-different-sizes.stderr diff --git a/src/test/ui/transmute/transmute-fat-pointers.rs b/tests/ui/transmute/transmute-fat-pointers.rs similarity index 100% rename from src/test/ui/transmute/transmute-fat-pointers.rs rename to tests/ui/transmute/transmute-fat-pointers.rs diff --git a/src/test/ui/transmute/transmute-fat-pointers.stderr b/tests/ui/transmute/transmute-fat-pointers.stderr similarity index 100% rename from src/test/ui/transmute/transmute-fat-pointers.stderr rename to tests/ui/transmute/transmute-fat-pointers.stderr diff --git a/src/test/ui/transmute/transmute-from-fn-item-types-error.rs b/tests/ui/transmute/transmute-from-fn-item-types-error.rs similarity index 100% rename from src/test/ui/transmute/transmute-from-fn-item-types-error.rs rename to tests/ui/transmute/transmute-from-fn-item-types-error.rs diff --git a/src/test/ui/transmute/transmute-from-fn-item-types-error.stderr b/tests/ui/transmute/transmute-from-fn-item-types-error.stderr similarity index 100% rename from src/test/ui/transmute/transmute-from-fn-item-types-error.stderr rename to tests/ui/transmute/transmute-from-fn-item-types-error.stderr diff --git a/src/test/ui/transmute/transmute-impl.rs b/tests/ui/transmute/transmute-impl.rs similarity index 100% rename from src/test/ui/transmute/transmute-impl.rs rename to tests/ui/transmute/transmute-impl.rs diff --git a/src/test/ui/transmute/transmute-impl.stderr b/tests/ui/transmute/transmute-impl.stderr similarity index 100% rename from src/test/ui/transmute/transmute-impl.stderr rename to tests/ui/transmute/transmute-impl.stderr diff --git a/src/test/ui/transmute/transmute-imut-to-mut.rs b/tests/ui/transmute/transmute-imut-to-mut.rs similarity index 100% rename from src/test/ui/transmute/transmute-imut-to-mut.rs rename to tests/ui/transmute/transmute-imut-to-mut.rs diff --git a/src/test/ui/transmute/transmute-imut-to-mut.stderr b/tests/ui/transmute/transmute-imut-to-mut.stderr similarity index 100% rename from src/test/ui/transmute/transmute-imut-to-mut.stderr rename to tests/ui/transmute/transmute-imut-to-mut.stderr diff --git a/src/test/ui/transmute/transmute-padding-ice.rs b/tests/ui/transmute/transmute-padding-ice.rs similarity index 100% rename from src/test/ui/transmute/transmute-padding-ice.rs rename to tests/ui/transmute/transmute-padding-ice.rs diff --git a/src/test/ui/transmute/transmute-padding-ice.stderr b/tests/ui/transmute/transmute-padding-ice.stderr similarity index 100% rename from src/test/ui/transmute/transmute-padding-ice.stderr rename to tests/ui/transmute/transmute-padding-ice.stderr diff --git a/src/test/ui/transmute/transmute-type-parameters.rs b/tests/ui/transmute/transmute-type-parameters.rs similarity index 100% rename from src/test/ui/transmute/transmute-type-parameters.rs rename to tests/ui/transmute/transmute-type-parameters.rs diff --git a/src/test/ui/transmute/transmute-type-parameters.stderr b/tests/ui/transmute/transmute-type-parameters.stderr similarity index 100% rename from src/test/ui/transmute/transmute-type-parameters.stderr rename to tests/ui/transmute/transmute-type-parameters.stderr diff --git a/src/test/ui/treat-err-as-bug/delay_span_bug.rs b/tests/ui/treat-err-as-bug/delay_span_bug.rs similarity index 100% rename from src/test/ui/treat-err-as-bug/delay_span_bug.rs rename to tests/ui/treat-err-as-bug/delay_span_bug.rs diff --git a/src/test/ui/treat-err-as-bug/delay_span_bug.stderr b/tests/ui/treat-err-as-bug/delay_span_bug.stderr similarity index 100% rename from src/test/ui/treat-err-as-bug/delay_span_bug.stderr rename to tests/ui/treat-err-as-bug/delay_span_bug.stderr diff --git a/src/test/ui/treat-err-as-bug/err.rs b/tests/ui/treat-err-as-bug/err.rs similarity index 100% rename from src/test/ui/treat-err-as-bug/err.rs rename to tests/ui/treat-err-as-bug/err.rs diff --git a/src/test/ui/treat-err-as-bug/err.stderr b/tests/ui/treat-err-as-bug/err.stderr similarity index 100% rename from src/test/ui/treat-err-as-bug/err.stderr rename to tests/ui/treat-err-as-bug/err.stderr diff --git a/src/test/ui/trivial-bounds/issue-73021-impossible-inline.inline.stderr b/tests/ui/trivial-bounds/issue-73021-impossible-inline.inline.stderr similarity index 100% rename from src/test/ui/trivial-bounds/issue-73021-impossible-inline.inline.stderr rename to tests/ui/trivial-bounds/issue-73021-impossible-inline.inline.stderr diff --git a/src/test/ui/trivial-bounds/issue-73021-impossible-inline.no-opt.stderr b/tests/ui/trivial-bounds/issue-73021-impossible-inline.no-opt.stderr similarity index 100% rename from src/test/ui/trivial-bounds/issue-73021-impossible-inline.no-opt.stderr rename to tests/ui/trivial-bounds/issue-73021-impossible-inline.no-opt.stderr diff --git a/src/test/ui/trivial-bounds/issue-73021-impossible-inline.rs b/tests/ui/trivial-bounds/issue-73021-impossible-inline.rs similarity index 100% rename from src/test/ui/trivial-bounds/issue-73021-impossible-inline.rs rename to tests/ui/trivial-bounds/issue-73021-impossible-inline.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-associated-functions.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-associated-functions.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-associated-functions.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-associated-functions.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy-reborrow.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-copy.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-copy.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection-error.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-projection.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-projection.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent.rs b/tests/ui/trivial-bounds/trivial-bounds-inconsistent.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent.rs rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-inconsistent.stderr rename to tests/ui/trivial-bounds/trivial-bounds-inconsistent.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs b/tests/ui/trivial-bounds/trivial-bounds-leak-copy.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-leak-copy.rs rename to tests/ui/trivial-bounds/trivial-bounds-leak-copy.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr b/tests/ui/trivial-bounds/trivial-bounds-leak-copy.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr rename to tests/ui/trivial-bounds/trivial-bounds-leak-copy.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak.rs b/tests/ui/trivial-bounds/trivial-bounds-leak.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-leak.rs rename to tests/ui/trivial-bounds/trivial-bounds-leak.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-leak.stderr b/tests/ui/trivial-bounds/trivial-bounds-leak.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-leak.stderr rename to tests/ui/trivial-bounds/trivial-bounds-leak.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-lint.rs b/tests/ui/trivial-bounds/trivial-bounds-lint.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-lint.rs rename to tests/ui/trivial-bounds/trivial-bounds-lint.rs diff --git a/src/test/ui/trivial-bounds/trivial-bounds-lint.stderr b/tests/ui/trivial-bounds/trivial-bounds-lint.stderr similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-lint.stderr rename to tests/ui/trivial-bounds/trivial-bounds-lint.stderr diff --git a/src/test/ui/trivial-bounds/trivial-bounds-object.rs b/tests/ui/trivial-bounds/trivial-bounds-object.rs similarity index 100% rename from src/test/ui/trivial-bounds/trivial-bounds-object.rs rename to tests/ui/trivial-bounds/trivial-bounds-object.rs diff --git a/src/test/ui/trivial_casts-rpass.rs b/tests/ui/trivial_casts-rpass.rs similarity index 100% rename from src/test/ui/trivial_casts-rpass.rs rename to tests/ui/trivial_casts-rpass.rs diff --git a/src/test/ui/try-block/issue-45124.rs b/tests/ui/try-block/issue-45124.rs similarity index 100% rename from src/test/ui/try-block/issue-45124.rs rename to tests/ui/try-block/issue-45124.rs diff --git a/src/test/ui/try-block/try-block-bad-lifetime.rs b/tests/ui/try-block/try-block-bad-lifetime.rs similarity index 100% rename from src/test/ui/try-block/try-block-bad-lifetime.rs rename to tests/ui/try-block/try-block-bad-lifetime.rs diff --git a/src/test/ui/try-block/try-block-bad-lifetime.stderr b/tests/ui/try-block/try-block-bad-lifetime.stderr similarity index 100% rename from src/test/ui/try-block/try-block-bad-lifetime.stderr rename to tests/ui/try-block/try-block-bad-lifetime.stderr diff --git a/src/test/ui/try-block/try-block-bad-type.rs b/tests/ui/try-block/try-block-bad-type.rs similarity index 100% rename from src/test/ui/try-block/try-block-bad-type.rs rename to tests/ui/try-block/try-block-bad-type.rs diff --git a/src/test/ui/try-block/try-block-bad-type.stderr b/tests/ui/try-block/try-block-bad-type.stderr similarity index 100% rename from src/test/ui/try-block/try-block-bad-type.stderr rename to tests/ui/try-block/try-block-bad-type.stderr diff --git a/src/test/ui/try-block/try-block-catch.rs b/tests/ui/try-block/try-block-catch.rs similarity index 100% rename from src/test/ui/try-block/try-block-catch.rs rename to tests/ui/try-block/try-block-catch.rs diff --git a/src/test/ui/try-block/try-block-catch.stderr b/tests/ui/try-block/try-block-catch.stderr similarity index 100% rename from src/test/ui/try-block/try-block-catch.stderr rename to tests/ui/try-block/try-block-catch.stderr diff --git a/src/test/ui/try-block/try-block-in-edition2015.rs b/tests/ui/try-block/try-block-in-edition2015.rs similarity index 100% rename from src/test/ui/try-block/try-block-in-edition2015.rs rename to tests/ui/try-block/try-block-in-edition2015.rs diff --git a/src/test/ui/try-block/try-block-in-edition2015.stderr b/tests/ui/try-block/try-block-in-edition2015.stderr similarity index 100% rename from src/test/ui/try-block/try-block-in-edition2015.stderr rename to tests/ui/try-block/try-block-in-edition2015.stderr diff --git a/src/test/ui/try-block/try-block-in-match.rs b/tests/ui/try-block/try-block-in-match.rs similarity index 100% rename from src/test/ui/try-block/try-block-in-match.rs rename to tests/ui/try-block/try-block-in-match.rs diff --git a/src/test/ui/try-block/try-block-in-return.rs b/tests/ui/try-block/try-block-in-return.rs similarity index 100% rename from src/test/ui/try-block/try-block-in-return.rs rename to tests/ui/try-block/try-block-in-return.rs diff --git a/src/test/ui/try-block/try-block-in-while.rs b/tests/ui/try-block/try-block-in-while.rs similarity index 100% rename from src/test/ui/try-block/try-block-in-while.rs rename to tests/ui/try-block/try-block-in-while.rs diff --git a/src/test/ui/try-block/try-block-in-while.stderr b/tests/ui/try-block/try-block-in-while.stderr similarity index 100% rename from src/test/ui/try-block/try-block-in-while.stderr rename to tests/ui/try-block/try-block-in-while.stderr diff --git a/src/test/ui/try-block/try-block-maybe-bad-lifetime.rs b/tests/ui/try-block/try-block-maybe-bad-lifetime.rs similarity index 100% rename from src/test/ui/try-block/try-block-maybe-bad-lifetime.rs rename to tests/ui/try-block/try-block-maybe-bad-lifetime.rs diff --git a/src/test/ui/try-block/try-block-maybe-bad-lifetime.stderr b/tests/ui/try-block/try-block-maybe-bad-lifetime.stderr similarity index 100% rename from src/test/ui/try-block/try-block-maybe-bad-lifetime.stderr rename to tests/ui/try-block/try-block-maybe-bad-lifetime.stderr diff --git a/src/test/ui/try-block/try-block-opt-init.rs b/tests/ui/try-block/try-block-opt-init.rs similarity index 100% rename from src/test/ui/try-block/try-block-opt-init.rs rename to tests/ui/try-block/try-block-opt-init.rs diff --git a/src/test/ui/try-block/try-block-opt-init.stderr b/tests/ui/try-block/try-block-opt-init.stderr similarity index 100% rename from src/test/ui/try-block/try-block-opt-init.stderr rename to tests/ui/try-block/try-block-opt-init.stderr diff --git a/src/test/ui/try-block/try-block-type-error.rs b/tests/ui/try-block/try-block-type-error.rs similarity index 100% rename from src/test/ui/try-block/try-block-type-error.rs rename to tests/ui/try-block/try-block-type-error.rs diff --git a/src/test/ui/try-block/try-block-type-error.stderr b/tests/ui/try-block/try-block-type-error.stderr similarity index 100% rename from src/test/ui/try-block/try-block-type-error.stderr rename to tests/ui/try-block/try-block-type-error.stderr diff --git a/src/test/ui/try-block/try-block-unreachable-code-lint.rs b/tests/ui/try-block/try-block-unreachable-code-lint.rs similarity index 100% rename from src/test/ui/try-block/try-block-unreachable-code-lint.rs rename to tests/ui/try-block/try-block-unreachable-code-lint.rs diff --git a/src/test/ui/try-block/try-block-unreachable-code-lint.stderr b/tests/ui/try-block/try-block-unreachable-code-lint.stderr similarity index 100% rename from src/test/ui/try-block/try-block-unreachable-code-lint.stderr rename to tests/ui/try-block/try-block-unreachable-code-lint.stderr diff --git a/src/test/ui/try-block/try-block-unused-delims.fixed b/tests/ui/try-block/try-block-unused-delims.fixed similarity index 100% rename from src/test/ui/try-block/try-block-unused-delims.fixed rename to tests/ui/try-block/try-block-unused-delims.fixed diff --git a/src/test/ui/try-block/try-block-unused-delims.rs b/tests/ui/try-block/try-block-unused-delims.rs similarity index 100% rename from src/test/ui/try-block/try-block-unused-delims.rs rename to tests/ui/try-block/try-block-unused-delims.rs diff --git a/src/test/ui/try-block/try-block-unused-delims.stderr b/tests/ui/try-block/try-block-unused-delims.stderr similarity index 100% rename from src/test/ui/try-block/try-block-unused-delims.stderr rename to tests/ui/try-block/try-block-unused-delims.stderr diff --git a/src/test/ui/try-block/try-block.rs b/tests/ui/try-block/try-block.rs similarity index 100% rename from src/test/ui/try-block/try-block.rs rename to tests/ui/try-block/try-block.rs diff --git a/src/test/ui/try-block/try-is-identifier-edition2015.rs b/tests/ui/try-block/try-is-identifier-edition2015.rs similarity index 100% rename from src/test/ui/try-block/try-is-identifier-edition2015.rs rename to tests/ui/try-block/try-is-identifier-edition2015.rs diff --git a/src/test/ui/try-from-int-error-partial-eq.rs b/tests/ui/try-from-int-error-partial-eq.rs similarity index 100% rename from src/test/ui/try-from-int-error-partial-eq.rs rename to tests/ui/try-from-int-error-partial-eq.rs diff --git a/src/test/ui/try-operator-hygiene.rs b/tests/ui/try-operator-hygiene.rs similarity index 100% rename from src/test/ui/try-operator-hygiene.rs rename to tests/ui/try-operator-hygiene.rs diff --git a/src/test/ui/try-operator.rs b/tests/ui/try-operator.rs similarity index 100% rename from src/test/ui/try-operator.rs rename to tests/ui/try-operator.rs diff --git a/src/test/ui/try-trait/bad-interconversion.rs b/tests/ui/try-trait/bad-interconversion.rs similarity index 100% rename from src/test/ui/try-trait/bad-interconversion.rs rename to tests/ui/try-trait/bad-interconversion.rs diff --git a/src/test/ui/try-trait/bad-interconversion.stderr b/tests/ui/try-trait/bad-interconversion.stderr similarity index 100% rename from src/test/ui/try-trait/bad-interconversion.stderr rename to tests/ui/try-trait/bad-interconversion.stderr diff --git a/src/test/ui/try-trait/option-to-result.rs b/tests/ui/try-trait/option-to-result.rs similarity index 100% rename from src/test/ui/try-trait/option-to-result.rs rename to tests/ui/try-trait/option-to-result.rs diff --git a/src/test/ui/try-trait/option-to-result.stderr b/tests/ui/try-trait/option-to-result.stderr similarity index 100% rename from src/test/ui/try-trait/option-to-result.stderr rename to tests/ui/try-trait/option-to-result.stderr diff --git a/src/test/ui/try-trait/try-as-monad.rs b/tests/ui/try-trait/try-as-monad.rs similarity index 100% rename from src/test/ui/try-trait/try-as-monad.rs rename to tests/ui/try-trait/try-as-monad.rs diff --git a/src/test/ui/try-trait/try-on-option-diagnostics.rs b/tests/ui/try-trait/try-on-option-diagnostics.rs similarity index 100% rename from src/test/ui/try-trait/try-on-option-diagnostics.rs rename to tests/ui/try-trait/try-on-option-diagnostics.rs diff --git a/src/test/ui/try-trait/try-on-option-diagnostics.stderr b/tests/ui/try-trait/try-on-option-diagnostics.stderr similarity index 100% rename from src/test/ui/try-trait/try-on-option-diagnostics.stderr rename to tests/ui/try-trait/try-on-option-diagnostics.stderr diff --git a/src/test/ui/try-trait/try-on-option.rs b/tests/ui/try-trait/try-on-option.rs similarity index 100% rename from src/test/ui/try-trait/try-on-option.rs rename to tests/ui/try-trait/try-on-option.rs diff --git a/src/test/ui/try-trait/try-on-option.stderr b/tests/ui/try-trait/try-on-option.stderr similarity index 100% rename from src/test/ui/try-trait/try-on-option.stderr rename to tests/ui/try-trait/try-on-option.stderr diff --git a/src/test/ui/try-trait/try-operator-custom.rs b/tests/ui/try-trait/try-operator-custom.rs similarity index 100% rename from src/test/ui/try-trait/try-operator-custom.rs rename to tests/ui/try-trait/try-operator-custom.rs diff --git a/src/test/ui/try-trait/try-operator-on-main.rs b/tests/ui/try-trait/try-operator-on-main.rs similarity index 100% rename from src/test/ui/try-trait/try-operator-on-main.rs rename to tests/ui/try-trait/try-operator-on-main.rs diff --git a/src/test/ui/try-trait/try-operator-on-main.stderr b/tests/ui/try-trait/try-operator-on-main.stderr similarity index 100% rename from src/test/ui/try-trait/try-operator-on-main.stderr rename to tests/ui/try-trait/try-operator-on-main.stderr diff --git a/src/test/ui/try-trait/try-poll.rs b/tests/ui/try-trait/try-poll.rs similarity index 100% rename from src/test/ui/try-trait/try-poll.rs rename to tests/ui/try-trait/try-poll.rs diff --git a/src/test/ui/try-trait/yeet-for-option.rs b/tests/ui/try-trait/yeet-for-option.rs similarity index 100% rename from src/test/ui/try-trait/yeet-for-option.rs rename to tests/ui/try-trait/yeet-for-option.rs diff --git a/src/test/ui/try-trait/yeet-for-result.rs b/tests/ui/try-trait/yeet-for-result.rs similarity index 100% rename from src/test/ui/try-trait/yeet-for-result.rs rename to tests/ui/try-trait/yeet-for-result.rs diff --git a/src/test/ui/tuple-index.rs b/tests/ui/tuple-index.rs similarity index 100% rename from src/test/ui/tuple-index.rs rename to tests/ui/tuple-index.rs diff --git a/src/test/ui/tuple/add-tuple-within-arguments.rs b/tests/ui/tuple/add-tuple-within-arguments.rs similarity index 100% rename from src/test/ui/tuple/add-tuple-within-arguments.rs rename to tests/ui/tuple/add-tuple-within-arguments.rs diff --git a/src/test/ui/tuple/add-tuple-within-arguments.stderr b/tests/ui/tuple/add-tuple-within-arguments.stderr similarity index 100% rename from src/test/ui/tuple/add-tuple-within-arguments.stderr rename to tests/ui/tuple/add-tuple-within-arguments.stderr diff --git a/src/test/ui/tuple/array-diagnostics.rs b/tests/ui/tuple/array-diagnostics.rs similarity index 100% rename from src/test/ui/tuple/array-diagnostics.rs rename to tests/ui/tuple/array-diagnostics.rs diff --git a/src/test/ui/tuple/array-diagnostics.stderr b/tests/ui/tuple/array-diagnostics.stderr similarity index 100% rename from src/test/ui/tuple/array-diagnostics.stderr rename to tests/ui/tuple/array-diagnostics.stderr diff --git a/src/test/ui/tuple/builtin-fail.rs b/tests/ui/tuple/builtin-fail.rs similarity index 100% rename from src/test/ui/tuple/builtin-fail.rs rename to tests/ui/tuple/builtin-fail.rs diff --git a/src/test/ui/tuple/builtin-fail.stderr b/tests/ui/tuple/builtin-fail.stderr similarity index 100% rename from src/test/ui/tuple/builtin-fail.stderr rename to tests/ui/tuple/builtin-fail.stderr diff --git a/src/test/ui/tuple/builtin.rs b/tests/ui/tuple/builtin.rs similarity index 100% rename from src/test/ui/tuple/builtin.rs rename to tests/ui/tuple/builtin.rs diff --git a/src/test/ui/tuple/index-float.rs b/tests/ui/tuple/index-float.rs similarity index 100% rename from src/test/ui/tuple/index-float.rs rename to tests/ui/tuple/index-float.rs diff --git a/src/test/ui/tuple/index-invalid.rs b/tests/ui/tuple/index-invalid.rs similarity index 100% rename from src/test/ui/tuple/index-invalid.rs rename to tests/ui/tuple/index-invalid.rs diff --git a/src/test/ui/tuple/index-invalid.stderr b/tests/ui/tuple/index-invalid.stderr similarity index 100% rename from src/test/ui/tuple/index-invalid.stderr rename to tests/ui/tuple/index-invalid.stderr diff --git a/src/test/ui/tuple/indexing-in-macro.rs b/tests/ui/tuple/indexing-in-macro.rs similarity index 100% rename from src/test/ui/tuple/indexing-in-macro.rs rename to tests/ui/tuple/indexing-in-macro.rs diff --git a/src/test/ui/tuple/nested-index.rs b/tests/ui/tuple/nested-index.rs similarity index 100% rename from src/test/ui/tuple/nested-index.rs rename to tests/ui/tuple/nested-index.rs diff --git a/src/test/ui/tuple/one-tuple.rs b/tests/ui/tuple/one-tuple.rs similarity index 100% rename from src/test/ui/tuple/one-tuple.rs rename to tests/ui/tuple/one-tuple.rs diff --git a/src/test/ui/tuple/tup.rs b/tests/ui/tuple/tup.rs similarity index 100% rename from src/test/ui/tuple/tup.rs rename to tests/ui/tuple/tup.rs diff --git a/src/test/ui/tuple/tuple-arity-mismatch.rs b/tests/ui/tuple/tuple-arity-mismatch.rs similarity index 100% rename from src/test/ui/tuple/tuple-arity-mismatch.rs rename to tests/ui/tuple/tuple-arity-mismatch.rs diff --git a/src/test/ui/tuple/tuple-arity-mismatch.stderr b/tests/ui/tuple/tuple-arity-mismatch.stderr similarity index 100% rename from src/test/ui/tuple/tuple-arity-mismatch.stderr rename to tests/ui/tuple/tuple-arity-mismatch.stderr diff --git a/src/test/ui/tuple/tuple-index-fat-types.rs b/tests/ui/tuple/tuple-index-fat-types.rs similarity index 100% rename from src/test/ui/tuple/tuple-index-fat-types.rs rename to tests/ui/tuple/tuple-index-fat-types.rs diff --git a/src/test/ui/tuple/tuple-index-not-tuple.rs b/tests/ui/tuple/tuple-index-not-tuple.rs similarity index 100% rename from src/test/ui/tuple/tuple-index-not-tuple.rs rename to tests/ui/tuple/tuple-index-not-tuple.rs diff --git a/src/test/ui/tuple/tuple-index-not-tuple.stderr b/tests/ui/tuple/tuple-index-not-tuple.stderr similarity index 100% rename from src/test/ui/tuple/tuple-index-not-tuple.stderr rename to tests/ui/tuple/tuple-index-not-tuple.stderr diff --git a/src/test/ui/tuple/tuple-index-out-of-bounds.rs b/tests/ui/tuple/tuple-index-out-of-bounds.rs similarity index 100% rename from src/test/ui/tuple/tuple-index-out-of-bounds.rs rename to tests/ui/tuple/tuple-index-out-of-bounds.rs diff --git a/src/test/ui/tuple/tuple-index-out-of-bounds.stderr b/tests/ui/tuple/tuple-index-out-of-bounds.stderr similarity index 100% rename from src/test/ui/tuple/tuple-index-out-of-bounds.stderr rename to tests/ui/tuple/tuple-index-out-of-bounds.stderr diff --git a/src/test/ui/tuple/tuple-struct-fields/test.rs b/tests/ui/tuple/tuple-struct-fields/test.rs similarity index 100% rename from src/test/ui/tuple/tuple-struct-fields/test.rs rename to tests/ui/tuple/tuple-struct-fields/test.rs diff --git a/src/test/ui/tuple/tuple-struct-fields/test.stderr b/tests/ui/tuple/tuple-struct-fields/test.stderr similarity index 100% rename from src/test/ui/tuple/tuple-struct-fields/test.stderr rename to tests/ui/tuple/tuple-struct-fields/test.stderr diff --git a/src/test/ui/tuple/tuple-struct-fields/test2.rs b/tests/ui/tuple/tuple-struct-fields/test2.rs similarity index 100% rename from src/test/ui/tuple/tuple-struct-fields/test2.rs rename to tests/ui/tuple/tuple-struct-fields/test2.rs diff --git a/src/test/ui/tuple/tuple-struct-fields/test2.stderr b/tests/ui/tuple/tuple-struct-fields/test2.stderr similarity index 100% rename from src/test/ui/tuple/tuple-struct-fields/test2.stderr rename to tests/ui/tuple/tuple-struct-fields/test2.stderr diff --git a/src/test/ui/tuple/tuple-struct-fields/test3.rs b/tests/ui/tuple/tuple-struct-fields/test3.rs similarity index 100% rename from src/test/ui/tuple/tuple-struct-fields/test3.rs rename to tests/ui/tuple/tuple-struct-fields/test3.rs diff --git a/src/test/ui/tuple/tuple-struct-fields/test3.stderr b/tests/ui/tuple/tuple-struct-fields/test3.stderr similarity index 100% rename from src/test/ui/tuple/tuple-struct-fields/test3.stderr rename to tests/ui/tuple/tuple-struct-fields/test3.stderr diff --git a/src/test/ui/tuple/wrong_argument_ice-2.rs b/tests/ui/tuple/wrong_argument_ice-2.rs similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice-2.rs rename to tests/ui/tuple/wrong_argument_ice-2.rs diff --git a/src/test/ui/tuple/wrong_argument_ice-2.stderr b/tests/ui/tuple/wrong_argument_ice-2.stderr similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice-2.stderr rename to tests/ui/tuple/wrong_argument_ice-2.stderr diff --git a/src/test/ui/tuple/wrong_argument_ice-3.rs b/tests/ui/tuple/wrong_argument_ice-3.rs similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice-3.rs rename to tests/ui/tuple/wrong_argument_ice-3.rs diff --git a/src/test/ui/tuple/wrong_argument_ice-3.stderr b/tests/ui/tuple/wrong_argument_ice-3.stderr similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice-3.stderr rename to tests/ui/tuple/wrong_argument_ice-3.stderr diff --git a/src/test/ui/tuple/wrong_argument_ice-4.rs b/tests/ui/tuple/wrong_argument_ice-4.rs similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice-4.rs rename to tests/ui/tuple/wrong_argument_ice-4.rs diff --git a/src/test/ui/tuple/wrong_argument_ice-4.stderr b/tests/ui/tuple/wrong_argument_ice-4.stderr similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice-4.stderr rename to tests/ui/tuple/wrong_argument_ice-4.stderr diff --git a/src/test/ui/tuple/wrong_argument_ice.rs b/tests/ui/tuple/wrong_argument_ice.rs similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice.rs rename to tests/ui/tuple/wrong_argument_ice.rs diff --git a/src/test/ui/tuple/wrong_argument_ice.stderr b/tests/ui/tuple/wrong_argument_ice.stderr similarity index 100% rename from src/test/ui/tuple/wrong_argument_ice.stderr rename to tests/ui/tuple/wrong_argument_ice.stderr diff --git a/src/test/ui/tydesc-name.rs b/tests/ui/tydesc-name.rs similarity index 100% rename from src/test/ui/tydesc-name.rs rename to tests/ui/tydesc-name.rs diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-generic-args-pass.rs b/tests/ui/type-alias-enum-variants/enum-variant-generic-args-pass.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-generic-args-pass.rs rename to tests/ui/type-alias-enum-variants/enum-variant-generic-args-pass.rs diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-generic-args.rs b/tests/ui/type-alias-enum-variants/enum-variant-generic-args.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-generic-args.rs rename to tests/ui/type-alias-enum-variants/enum-variant-generic-args.rs diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-generic-args.stderr b/tests/ui/type-alias-enum-variants/enum-variant-generic-args.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-generic-args.stderr rename to tests/ui/type-alias-enum-variants/enum-variant-generic-args.stderr diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.rs b/tests/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.rs rename to tests/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.rs diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr b/tests/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr rename to tests/ui/type-alias-enum-variants/enum-variant-priority-higher-than-other-inherent.stderr diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.rs b/tests/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.rs rename to tests/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.rs diff --git a/src/test/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr b/tests/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr rename to tests/ui/type-alias-enum-variants/enum-variant-priority-lint-ambiguous_associated_items.stderr diff --git a/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.rs b/tests/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.rs rename to tests/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.rs diff --git a/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.stderr b/tests/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.stderr rename to tests/ui/type-alias-enum-variants/incorrect-variant-form-through-Self-issue-58006.stderr diff --git a/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.rs b/tests/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.rs rename to tests/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.rs diff --git a/src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr b/tests/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr rename to tests/ui/type-alias-enum-variants/incorrect-variant-form-through-alias-caught.stderr diff --git a/src/test/ui/type-alias-enum-variants/issue-57866.rs b/tests/ui/type-alias-enum-variants/issue-57866.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/issue-57866.rs rename to tests/ui/type-alias-enum-variants/issue-57866.rs diff --git a/src/test/ui/type-alias-enum-variants/issue-61801-path-pattern-can-infer.rs b/tests/ui/type-alias-enum-variants/issue-61801-path-pattern-can-infer.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/issue-61801-path-pattern-can-infer.rs rename to tests/ui/type-alias-enum-variants/issue-61801-path-pattern-can-infer.rs diff --git a/src/test/ui/type-alias-enum-variants/issue-63151-dead-code-lint-fields-in-patterns.rs b/tests/ui/type-alias-enum-variants/issue-63151-dead-code-lint-fields-in-patterns.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/issue-63151-dead-code-lint-fields-in-patterns.rs rename to tests/ui/type-alias-enum-variants/issue-63151-dead-code-lint-fields-in-patterns.rs diff --git a/src/test/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.rs b/tests/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.rs rename to tests/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.rs diff --git a/src/test/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.stderr b/tests/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.stderr rename to tests/ui/type-alias-enum-variants/no-type-application-on-aliased-enum-variant.stderr diff --git a/src/test/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.rs b/tests/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.rs rename to tests/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.rs diff --git a/src/test/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.stderr b/tests/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.stderr rename to tests/ui/type-alias-enum-variants/resolve-to-enum-variant-in-type-namespace-and-error.stderr diff --git a/src/test/ui/type-alias-enum-variants/self-in-enum-definition.rs b/tests/ui/type-alias-enum-variants/self-in-enum-definition.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/self-in-enum-definition.rs rename to tests/ui/type-alias-enum-variants/self-in-enum-definition.rs diff --git a/src/test/ui/type-alias-enum-variants/self-in-enum-definition.stderr b/tests/ui/type-alias-enum-variants/self-in-enum-definition.stderr similarity index 100% rename from src/test/ui/type-alias-enum-variants/self-in-enum-definition.stderr rename to tests/ui/type-alias-enum-variants/self-in-enum-definition.stderr diff --git a/src/test/ui/type-alias-enum-variants/type-alias-enum-variants-pass.rs b/tests/ui/type-alias-enum-variants/type-alias-enum-variants-pass.rs similarity index 100% rename from src/test/ui/type-alias-enum-variants/type-alias-enum-variants-pass.rs rename to tests/ui/type-alias-enum-variants/type-alias-enum-variants-pass.rs diff --git a/src/test/ui/type-alias-impl-trait/argument-types.rs b/tests/ui/type-alias-impl-trait/argument-types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/argument-types.rs rename to tests/ui/type-alias-impl-trait/argument-types.rs diff --git a/src/test/ui/type-alias-impl-trait/assoc-projection-ice.rs b/tests/ui/type-alias-impl-trait/assoc-projection-ice.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/assoc-projection-ice.rs rename to tests/ui/type-alias-impl-trait/assoc-projection-ice.rs diff --git a/src/test/ui/type-alias-impl-trait/assoc-type-const.rs b/tests/ui/type-alias-impl-trait/assoc-type-const.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/assoc-type-const.rs rename to tests/ui/type-alias-impl-trait/assoc-type-const.rs diff --git a/src/test/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.rs b/tests/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.rs rename to tests/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.rs diff --git a/src/test/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.stderr b/tests/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.stderr rename to tests/ui/type-alias-impl-trait/assoc-type-lifetime-unconstrained.stderr diff --git a/src/test/ui/type-alias-impl-trait/assoc-type-lifetime.rs b/tests/ui/type-alias-impl-trait/assoc-type-lifetime.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/assoc-type-lifetime.rs rename to tests/ui/type-alias-impl-trait/assoc-type-lifetime.rs diff --git a/src/test/ui/type-alias-impl-trait/associated-type-alias-impl-trait.rs b/tests/ui/type-alias-impl-trait/associated-type-alias-impl-trait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/associated-type-alias-impl-trait.rs rename to tests/ui/type-alias-impl-trait/associated-type-alias-impl-trait.rs diff --git a/src/test/ui/type-alias-impl-trait/associated-type-impl-trait-lifetime.rs b/tests/ui/type-alias-impl-trait/associated-type-impl-trait-lifetime.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/associated-type-impl-trait-lifetime.rs rename to tests/ui/type-alias-impl-trait/associated-type-impl-trait-lifetime.rs diff --git a/src/test/ui/type-alias-impl-trait/auto-trait-leakage.rs b/tests/ui/type-alias-impl-trait/auto-trait-leakage.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auto-trait-leakage.rs rename to tests/ui/type-alias-impl-trait/auto-trait-leakage.rs diff --git a/src/test/ui/type-alias-impl-trait/auto-trait-leakage2.rs b/tests/ui/type-alias-impl-trait/auto-trait-leakage2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auto-trait-leakage2.rs rename to tests/ui/type-alias-impl-trait/auto-trait-leakage2.rs diff --git a/src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr b/tests/ui/type-alias-impl-trait/auto-trait-leakage2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/auto-trait-leakage2.stderr rename to tests/ui/type-alias-impl-trait/auto-trait-leakage2.stderr diff --git a/src/test/ui/type-alias-impl-trait/auto-trait-leakage3.rs b/tests/ui/type-alias-impl-trait/auto-trait-leakage3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auto-trait-leakage3.rs rename to tests/ui/type-alias-impl-trait/auto-trait-leakage3.rs diff --git a/src/test/ui/type-alias-impl-trait/auto-trait-leakage3.stderr b/tests/ui/type-alias-impl-trait/auto-trait-leakage3.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/auto-trait-leakage3.stderr rename to tests/ui/type-alias-impl-trait/auto-trait-leakage3.stderr diff --git a/src/test/ui/type-alias-impl-trait/auxiliary/coherence_cross_crate_trait_decl.rs b/tests/ui/type-alias-impl-trait/auxiliary/coherence_cross_crate_trait_decl.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auxiliary/coherence_cross_crate_trait_decl.rs rename to tests/ui/type-alias-impl-trait/auxiliary/coherence_cross_crate_trait_decl.rs diff --git a/src/test/ui/type-alias-impl-trait/auxiliary/collect_hidden_types.rs b/tests/ui/type-alias-impl-trait/auxiliary/collect_hidden_types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auxiliary/collect_hidden_types.rs rename to tests/ui/type-alias-impl-trait/auxiliary/collect_hidden_types.rs diff --git a/src/test/ui/type-alias-impl-trait/auxiliary/cross_crate_ice.rs b/tests/ui/type-alias-impl-trait/auxiliary/cross_crate_ice.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auxiliary/cross_crate_ice.rs rename to tests/ui/type-alias-impl-trait/auxiliary/cross_crate_ice.rs diff --git a/src/test/ui/type-alias-impl-trait/auxiliary/cross_crate_ice2.rs b/tests/ui/type-alias-impl-trait/auxiliary/cross_crate_ice2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auxiliary/cross_crate_ice2.rs rename to tests/ui/type-alias-impl-trait/auxiliary/cross_crate_ice2.rs diff --git a/src/test/ui/type-alias-impl-trait/auxiliary/foreign-crate.rs b/tests/ui/type-alias-impl-trait/auxiliary/foreign-crate.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/auxiliary/foreign-crate.rs rename to tests/ui/type-alias-impl-trait/auxiliary/foreign-crate.rs diff --git a/src/test/ui/type-alias-impl-trait/bound_reduction.rs b/tests/ui/type-alias-impl-trait/bound_reduction.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/bound_reduction.rs rename to tests/ui/type-alias-impl-trait/bound_reduction.rs diff --git a/src/test/ui/type-alias-impl-trait/bound_reduction2.rs b/tests/ui/type-alias-impl-trait/bound_reduction2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/bound_reduction2.rs rename to tests/ui/type-alias-impl-trait/bound_reduction2.rs diff --git a/src/test/ui/type-alias-impl-trait/bound_reduction2.stderr b/tests/ui/type-alias-impl-trait/bound_reduction2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/bound_reduction2.stderr rename to tests/ui/type-alias-impl-trait/bound_reduction2.stderr diff --git a/src/test/ui/type-alias-impl-trait/bounds-are-checked-2.rs b/tests/ui/type-alias-impl-trait/bounds-are-checked-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/bounds-are-checked-2.rs rename to tests/ui/type-alias-impl-trait/bounds-are-checked-2.rs diff --git a/src/test/ui/type-alias-impl-trait/bounds-are-checked-2.stderr b/tests/ui/type-alias-impl-trait/bounds-are-checked-2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/bounds-are-checked-2.stderr rename to tests/ui/type-alias-impl-trait/bounds-are-checked-2.stderr diff --git a/src/test/ui/type-alias-impl-trait/bounds-are-checked.rs b/tests/ui/type-alias-impl-trait/bounds-are-checked.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/bounds-are-checked.rs rename to tests/ui/type-alias-impl-trait/bounds-are-checked.rs diff --git a/src/test/ui/type-alias-impl-trait/bounds-are-checked.stderr b/tests/ui/type-alias-impl-trait/bounds-are-checked.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/bounds-are-checked.stderr rename to tests/ui/type-alias-impl-trait/bounds-are-checked.stderr diff --git a/src/test/ui/type-alias-impl-trait/closure_args.rs b/tests/ui/type-alias-impl-trait/closure_args.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/closure_args.rs rename to tests/ui/type-alias-impl-trait/closure_args.rs diff --git a/src/test/ui/type-alias-impl-trait/closure_args2.rs b/tests/ui/type-alias-impl-trait/closure_args2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/closure_args2.rs rename to tests/ui/type-alias-impl-trait/closure_args2.rs diff --git a/src/test/ui/type-alias-impl-trait/closure_parent_substs.rs b/tests/ui/type-alias-impl-trait/closure_parent_substs.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/closure_parent_substs.rs rename to tests/ui/type-alias-impl-trait/closure_parent_substs.rs diff --git a/src/test/ui/type-alias-impl-trait/closure_wf_outlives.rs b/tests/ui/type-alias-impl-trait/closure_wf_outlives.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/closure_wf_outlives.rs rename to tests/ui/type-alias-impl-trait/closure_wf_outlives.rs diff --git a/src/test/ui/type-alias-impl-trait/closure_wf_outlives.stderr b/tests/ui/type-alias-impl-trait/closure_wf_outlives.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/closure_wf_outlives.stderr rename to tests/ui/type-alias-impl-trait/closure_wf_outlives.stderr diff --git a/src/test/ui/type-alias-impl-trait/closures_in_branches.rs b/tests/ui/type-alias-impl-trait/closures_in_branches.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/closures_in_branches.rs rename to tests/ui/type-alias-impl-trait/closures_in_branches.rs diff --git a/src/test/ui/type-alias-impl-trait/closures_in_branches.stderr b/tests/ui/type-alias-impl-trait/closures_in_branches.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/closures_in_branches.stderr rename to tests/ui/type-alias-impl-trait/closures_in_branches.stderr diff --git a/src/test/ui/type-alias-impl-trait/coherence.rs b/tests/ui/type-alias-impl-trait/coherence.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/coherence.rs rename to tests/ui/type-alias-impl-trait/coherence.rs diff --git a/src/test/ui/type-alias-impl-trait/coherence.stderr b/tests/ui/type-alias-impl-trait/coherence.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/coherence.stderr rename to tests/ui/type-alias-impl-trait/coherence.stderr diff --git a/src/test/ui/type-alias-impl-trait/coherence_cross_crate.rs b/tests/ui/type-alias-impl-trait/coherence_cross_crate.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/coherence_cross_crate.rs rename to tests/ui/type-alias-impl-trait/coherence_cross_crate.rs diff --git a/src/test/ui/type-alias-impl-trait/coherence_cross_crate.stderr b/tests/ui/type-alias-impl-trait/coherence_cross_crate.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/coherence_cross_crate.stderr rename to tests/ui/type-alias-impl-trait/coherence_cross_crate.stderr diff --git a/src/test/ui/type-alias-impl-trait/coherence_generalization.rs b/tests/ui/type-alias-impl-trait/coherence_generalization.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/coherence_generalization.rs rename to tests/ui/type-alias-impl-trait/coherence_generalization.rs diff --git a/src/test/ui/type-alias-impl-trait/collect_hidden_types.rs b/tests/ui/type-alias-impl-trait/collect_hidden_types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/collect_hidden_types.rs rename to tests/ui/type-alias-impl-trait/collect_hidden_types.rs diff --git a/src/test/ui/type-alias-impl-trait/constrain_inputs.rs b/tests/ui/type-alias-impl-trait/constrain_inputs.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/constrain_inputs.rs rename to tests/ui/type-alias-impl-trait/constrain_inputs.rs diff --git a/src/test/ui/type-alias-impl-trait/constrain_inputs.stderr b/tests/ui/type-alias-impl-trait/constrain_inputs.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/constrain_inputs.stderr rename to tests/ui/type-alias-impl-trait/constrain_inputs.stderr diff --git a/src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs b/tests/ui/type-alias-impl-trait/constrain_inputs_unsound.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.rs rename to tests/ui/type-alias-impl-trait/constrain_inputs_unsound.rs diff --git a/src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.stderr b/tests/ui/type-alias-impl-trait/constrain_inputs_unsound.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/constrain_inputs_unsound.stderr rename to tests/ui/type-alias-impl-trait/constrain_inputs_unsound.stderr diff --git a/src/test/ui/type-alias-impl-trait/cross_crate_ice.rs b/tests/ui/type-alias-impl-trait/cross_crate_ice.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/cross_crate_ice.rs rename to tests/ui/type-alias-impl-trait/cross_crate_ice.rs diff --git a/src/test/ui/type-alias-impl-trait/cross_crate_ice2.rs b/tests/ui/type-alias-impl-trait/cross_crate_ice2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/cross_crate_ice2.rs rename to tests/ui/type-alias-impl-trait/cross_crate_ice2.rs diff --git a/src/test/ui/type-alias-impl-trait/cross_inference.rs b/tests/ui/type-alias-impl-trait/cross_inference.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/cross_inference.rs rename to tests/ui/type-alias-impl-trait/cross_inference.rs diff --git a/src/test/ui/type-alias-impl-trait/cross_inference_pattern_bug.rs b/tests/ui/type-alias-impl-trait/cross_inference_pattern_bug.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/cross_inference_pattern_bug.rs rename to tests/ui/type-alias-impl-trait/cross_inference_pattern_bug.rs diff --git a/src/test/ui/type-alias-impl-trait/cross_inference_pattern_bug_no_type.rs b/tests/ui/type-alias-impl-trait/cross_inference_pattern_bug_no_type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/cross_inference_pattern_bug_no_type.rs rename to tests/ui/type-alias-impl-trait/cross_inference_pattern_bug_no_type.rs diff --git a/src/test/ui/type-alias-impl-trait/cross_inference_rpit.rs b/tests/ui/type-alias-impl-trait/cross_inference_rpit.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/cross_inference_rpit.rs rename to tests/ui/type-alias-impl-trait/cross_inference_rpit.rs diff --git a/src/test/ui/type-alias-impl-trait/declared_but_never_defined.rs b/tests/ui/type-alias-impl-trait/declared_but_never_defined.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/declared_but_never_defined.rs rename to tests/ui/type-alias-impl-trait/declared_but_never_defined.rs diff --git a/src/test/ui/type-alias-impl-trait/declared_but_never_defined.stderr b/tests/ui/type-alias-impl-trait/declared_but_never_defined.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/declared_but_never_defined.stderr rename to tests/ui/type-alias-impl-trait/declared_but_never_defined.stderr diff --git a/src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.rs b/tests/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.rs rename to tests/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.rs diff --git a/src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.stderr b/tests/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.stderr rename to tests/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.stderr diff --git a/src/test/ui/type-alias-impl-trait/defining-use-submodule.rs b/tests/ui/type-alias-impl-trait/defining-use-submodule.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/defining-use-submodule.rs rename to tests/ui/type-alias-impl-trait/defining-use-submodule.rs diff --git a/src/test/ui/type-alias-impl-trait/destructuring.rs b/tests/ui/type-alias-impl-trait/destructuring.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/destructuring.rs rename to tests/ui/type-alias-impl-trait/destructuring.rs diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses.rs b/tests/ui/type-alias-impl-trait/different_defining_uses.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses.rs rename to tests/ui/type-alias-impl-trait/different_defining_uses.rs diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses.stderr b/tests/ui/type-alias-impl-trait/different_defining_uses.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses.stderr rename to tests/ui/type-alias-impl-trait/different_defining_uses.stderr diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses_never_type.rs b/tests/ui/type-alias-impl-trait/different_defining_uses_never_type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses_never_type.rs rename to tests/ui/type-alias-impl-trait/different_defining_uses_never_type.rs diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses_never_type.stderr b/tests/ui/type-alias-impl-trait/different_defining_uses_never_type.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses_never_type.stderr rename to tests/ui/type-alias-impl-trait/different_defining_uses_never_type.stderr diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses_never_type2.rs b/tests/ui/type-alias-impl-trait/different_defining_uses_never_type2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses_never_type2.rs rename to tests/ui/type-alias-impl-trait/different_defining_uses_never_type2.rs diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses_never_type3.rs b/tests/ui/type-alias-impl-trait/different_defining_uses_never_type3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses_never_type3.rs rename to tests/ui/type-alias-impl-trait/different_defining_uses_never_type3.rs diff --git a/src/test/ui/type-alias-impl-trait/different_defining_uses_never_type3.stderr b/tests/ui/type-alias-impl-trait/different_defining_uses_never_type3.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_defining_uses_never_type3.stderr rename to tests/ui/type-alias-impl-trait/different_defining_uses_never_type3.stderr diff --git a/src/test/ui/type-alias-impl-trait/different_lifetimes_defining_uses.rs b/tests/ui/type-alias-impl-trait/different_lifetimes_defining_uses.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_lifetimes_defining_uses.rs rename to tests/ui/type-alias-impl-trait/different_lifetimes_defining_uses.rs diff --git a/src/test/ui/type-alias-impl-trait/different_lifetimes_defining_uses.stderr b/tests/ui/type-alias-impl-trait/different_lifetimes_defining_uses.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/different_lifetimes_defining_uses.stderr rename to tests/ui/type-alias-impl-trait/different_lifetimes_defining_uses.stderr diff --git a/src/test/ui/type-alias-impl-trait/fallback.rs b/tests/ui/type-alias-impl-trait/fallback.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/fallback.rs rename to tests/ui/type-alias-impl-trait/fallback.rs diff --git a/src/test/ui/type-alias-impl-trait/fallback.stderr b/tests/ui/type-alias-impl-trait/fallback.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/fallback.stderr rename to tests/ui/type-alias-impl-trait/fallback.stderr diff --git a/src/test/ui/type-alias-impl-trait/field-types.rs b/tests/ui/type-alias-impl-trait/field-types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/field-types.rs rename to tests/ui/type-alias-impl-trait/field-types.rs diff --git a/src/test/ui/type-alias-impl-trait/future.rs b/tests/ui/type-alias-impl-trait/future.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/future.rs rename to tests/ui/type-alias-impl-trait/future.rs diff --git a/src/test/ui/type-alias-impl-trait/future.stderr b/tests/ui/type-alias-impl-trait/future.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/future.stderr rename to tests/ui/type-alias-impl-trait/future.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_different_defining_uses.rs b/tests/ui/type-alias-impl-trait/generic_different_defining_uses.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_different_defining_uses.rs rename to tests/ui/type-alias-impl-trait/generic_different_defining_uses.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_different_defining_uses.stderr b/tests/ui/type-alias-impl-trait/generic_different_defining_uses.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_different_defining_uses.stderr rename to tests/ui/type-alias-impl-trait/generic_different_defining_uses.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_lifetime_param.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use10.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use10.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use10.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use10.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use2.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use2.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use2.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use2.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use2.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use2.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use3.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use3.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use3.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use4.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use4.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use4.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use4.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use4.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use4.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use4.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use4.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use5.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use5.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use5.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use5.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use5.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use5.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use5.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use5.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use6.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use6.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use6.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use6.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use6.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use6.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use6.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use6.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use7.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use7.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use7.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use7.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use8.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use8.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use8.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use8.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use8.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use8.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use8.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use8.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use9.rs b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use9.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use9.rs rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use9.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_duplicate_param_use9.stderr b/tests/ui/type-alias-impl-trait/generic_duplicate_param_use9.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_duplicate_param_use9.stderr rename to tests/ui/type-alias-impl-trait/generic_duplicate_param_use9.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_lifetime_param.rs b/tests/ui/type-alias-impl-trait/generic_lifetime_param.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_lifetime_param.rs rename to tests/ui/type-alias-impl-trait/generic_lifetime_param.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_nondefining_use.rs b/tests/ui/type-alias-impl-trait/generic_nondefining_use.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_nondefining_use.rs rename to tests/ui/type-alias-impl-trait/generic_nondefining_use.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_nondefining_use.stderr b/tests/ui/type-alias-impl-trait/generic_nondefining_use.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_nondefining_use.stderr rename to tests/ui/type-alias-impl-trait/generic_nondefining_use.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_not_used.rs b/tests/ui/type-alias-impl-trait/generic_not_used.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_not_used.rs rename to tests/ui/type-alias-impl-trait/generic_not_used.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_not_used.stderr b/tests/ui/type-alias-impl-trait/generic_not_used.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_not_used.stderr rename to tests/ui/type-alias-impl-trait/generic_not_used.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs b/tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs rename to tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.stderr b/tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.stderr rename to tests/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_underconstrained.rs b/tests/ui/type-alias-impl-trait/generic_underconstrained.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_underconstrained.rs rename to tests/ui/type-alias-impl-trait/generic_underconstrained.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_underconstrained.stderr b/tests/ui/type-alias-impl-trait/generic_underconstrained.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_underconstrained.stderr rename to tests/ui/type-alias-impl-trait/generic_underconstrained.stderr diff --git a/src/test/ui/type-alias-impl-trait/generic_underconstrained2.rs b/tests/ui/type-alias-impl-trait/generic_underconstrained2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_underconstrained2.rs rename to tests/ui/type-alias-impl-trait/generic_underconstrained2.rs diff --git a/src/test/ui/type-alias-impl-trait/generic_underconstrained2.stderr b/tests/ui/type-alias-impl-trait/generic_underconstrained2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/generic_underconstrained2.stderr rename to tests/ui/type-alias-impl-trait/generic_underconstrained2.stderr diff --git a/src/test/ui/type-alias-impl-trait/impl-with-unconstrained-param.rs b/tests/ui/type-alias-impl-trait/impl-with-unconstrained-param.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl-with-unconstrained-param.rs rename to tests/ui/type-alias-impl-trait/impl-with-unconstrained-param.rs diff --git a/src/test/ui/type-alias-impl-trait/impl-with-unconstrained-param.stderr b/tests/ui/type-alias-impl-trait/impl-with-unconstrained-param.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl-with-unconstrained-param.stderr rename to tests/ui/type-alias-impl-trait/impl-with-unconstrained-param.stderr diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_generic_tait.rs b/tests/ui/type-alias-impl-trait/impl_trait_for_generic_tait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_generic_tait.rs rename to tests/ui/type-alias-impl-trait/impl_trait_for_generic_tait.rs diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_same_tait.rs b/tests/ui/type-alias-impl-trait/impl_trait_for_same_tait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_same_tait.rs rename to tests/ui/type-alias-impl-trait/impl_trait_for_same_tait.rs diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_same_tait.stderr b/tests/ui/type-alias-impl-trait/impl_trait_for_same_tait.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_same_tait.stderr rename to tests/ui/type-alias-impl-trait/impl_trait_for_same_tait.stderr diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_tait.rs b/tests/ui/type-alias-impl-trait/impl_trait_for_tait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_tait.rs rename to tests/ui/type-alias-impl-trait/impl_trait_for_tait.rs diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound.rs b/tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound.rs rename to tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound.rs diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound.stderr b/tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound.stderr rename to tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound.stderr diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.rs b/tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.rs rename to tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.rs diff --git a/src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.stderr b/tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.stderr rename to tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.stderr diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds.rs b/tests/ui/type-alias-impl-trait/implied_bounds.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds.rs rename to tests/ui/type-alias-impl-trait/implied_bounds.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds.stderr b/tests/ui/type-alias-impl-trait/implied_bounds.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds.stderr rename to tests/ui/type-alias-impl-trait/implied_bounds.stderr diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds2.rs b/tests/ui/type-alias-impl-trait/implied_bounds2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds2.rs rename to tests/ui/type-alias-impl-trait/implied_bounds2.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds3.rs b/tests/ui/type-alias-impl-trait/implied_bounds3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds3.rs rename to tests/ui/type-alias-impl-trait/implied_bounds3.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds_closure.rs b/tests/ui/type-alias-impl-trait/implied_bounds_closure.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds_closure.rs rename to tests/ui/type-alias-impl-trait/implied_bounds_closure.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds_closure.stderr b/tests/ui/type-alias-impl-trait/implied_bounds_closure.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds_closure.stderr rename to tests/ui/type-alias-impl-trait/implied_bounds_closure.stderr diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds_from_types.rs b/tests/ui/type-alias-impl-trait/implied_bounds_from_types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds_from_types.rs rename to tests/ui/type-alias-impl-trait/implied_bounds_from_types.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_bounds_from_types.stderr b/tests/ui/type-alias-impl-trait/implied_bounds_from_types.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_bounds_from_types.stderr rename to tests/ui/type-alias-impl-trait/implied_bounds_from_types.stderr diff --git a/src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check.rs b/tests/ui/type-alias-impl-trait/implied_lifetime_wf_check.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check.rs rename to tests/ui/type-alias-impl-trait/implied_lifetime_wf_check.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check3.rs b/tests/ui/type-alias-impl-trait/implied_lifetime_wf_check3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check3.rs rename to tests/ui/type-alias-impl-trait/implied_lifetime_wf_check3.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check3.stderr b/tests/ui/type-alias-impl-trait/implied_lifetime_wf_check3.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check3.stderr rename to tests/ui/type-alias-impl-trait/implied_lifetime_wf_check3.stderr diff --git a/src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.rs b/tests/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.rs rename to tests/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.rs diff --git a/src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.stderr b/tests/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.stderr rename to tests/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.stderr diff --git a/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds.rs b/tests/ui/type-alias-impl-trait/imply_bounds_from_bounds.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds.rs rename to tests/ui/type-alias-impl-trait/imply_bounds_from_bounds.rs diff --git a/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.rs b/tests/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.rs rename to tests/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.rs diff --git a/src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr b/tests/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr rename to tests/ui/type-alias-impl-trait/imply_bounds_from_bounds_param.stderr diff --git a/src/test/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.rs b/tests/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.rs rename to tests/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.rs diff --git a/src/test/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.stderr b/tests/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.stderr rename to tests/ui/type-alias-impl-trait/incoherent-assoc-imp-trait.stderr diff --git a/src/test/ui/type-alias-impl-trait/incomplete-inference.rs b/tests/ui/type-alias-impl-trait/incomplete-inference.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/incomplete-inference.rs rename to tests/ui/type-alias-impl-trait/incomplete-inference.rs diff --git a/src/test/ui/type-alias-impl-trait/incomplete-inference.stderr b/tests/ui/type-alias-impl-trait/incomplete-inference.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/incomplete-inference.stderr rename to tests/ui/type-alias-impl-trait/incomplete-inference.stderr diff --git a/src/test/ui/type-alias-impl-trait/inference-cycle.rs b/tests/ui/type-alias-impl-trait/inference-cycle.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/inference-cycle.rs rename to tests/ui/type-alias-impl-trait/inference-cycle.rs diff --git a/src/test/ui/type-alias-impl-trait/inference-cycle.stderr b/tests/ui/type-alias-impl-trait/inference-cycle.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/inference-cycle.stderr rename to tests/ui/type-alias-impl-trait/inference-cycle.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-101750.rs b/tests/ui/type-alias-impl-trait/issue-101750.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-101750.rs rename to tests/ui/type-alias-impl-trait/issue-101750.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-52843-closure-constrain.rs b/tests/ui/type-alias-impl-trait/issue-52843-closure-constrain.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-52843-closure-constrain.rs rename to tests/ui/type-alias-impl-trait/issue-52843-closure-constrain.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-52843-closure-constrain.stderr b/tests/ui/type-alias-impl-trait/issue-52843-closure-constrain.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-52843-closure-constrain.stderr rename to tests/ui/type-alias-impl-trait/issue-52843-closure-constrain.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-52843.rs b/tests/ui/type-alias-impl-trait/issue-52843.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-52843.rs rename to tests/ui/type-alias-impl-trait/issue-52843.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-52843.stderr b/tests/ui/type-alias-impl-trait/issue-52843.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-52843.stderr rename to tests/ui/type-alias-impl-trait/issue-52843.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-53092-2.rs b/tests/ui/type-alias-impl-trait/issue-53092-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53092-2.rs rename to tests/ui/type-alias-impl-trait/issue-53092-2.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-53092-2.stderr b/tests/ui/type-alias-impl-trait/issue-53092-2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53092-2.stderr rename to tests/ui/type-alias-impl-trait/issue-53092-2.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-53092.rs b/tests/ui/type-alias-impl-trait/issue-53092.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53092.rs rename to tests/ui/type-alias-impl-trait/issue-53092.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-53092.stderr b/tests/ui/type-alias-impl-trait/issue-53092.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53092.stderr rename to tests/ui/type-alias-impl-trait/issue-53092.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-53096.rs b/tests/ui/type-alias-impl-trait/issue-53096.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53096.rs rename to tests/ui/type-alias-impl-trait/issue-53096.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-53096.stderr b/tests/ui/type-alias-impl-trait/issue-53096.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53096.stderr rename to tests/ui/type-alias-impl-trait/issue-53096.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-53398-cyclic-types.rs b/tests/ui/type-alias-impl-trait/issue-53398-cyclic-types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53398-cyclic-types.rs rename to tests/ui/type-alias-impl-trait/issue-53398-cyclic-types.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-53398-cyclic-types.stderr b/tests/ui/type-alias-impl-trait/issue-53398-cyclic-types.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53398-cyclic-types.stderr rename to tests/ui/type-alias-impl-trait/issue-53398-cyclic-types.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-53598.rs b/tests/ui/type-alias-impl-trait/issue-53598.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53598.rs rename to tests/ui/type-alias-impl-trait/issue-53598.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-53598.stderr b/tests/ui/type-alias-impl-trait/issue-53598.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53598.stderr rename to tests/ui/type-alias-impl-trait/issue-53598.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.rs b/tests/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.rs rename to tests/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.stderr b/tests/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.stderr rename to tests/ui/type-alias-impl-trait/issue-53678-generator-and-const-fn.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-55099-lifetime-inference.rs b/tests/ui/type-alias-impl-trait/issue-55099-lifetime-inference.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-55099-lifetime-inference.rs rename to tests/ui/type-alias-impl-trait/issue-55099-lifetime-inference.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-57188-associate-impl-capture.rs b/tests/ui/type-alias-impl-trait/issue-57188-associate-impl-capture.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57188-associate-impl-capture.rs rename to tests/ui/type-alias-impl-trait/issue-57188-associate-impl-capture.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-57611-trait-alias.rs b/tests/ui/type-alias-impl-trait/issue-57611-trait-alias.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57611-trait-alias.rs rename to tests/ui/type-alias-impl-trait/issue-57611-trait-alias.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-57700.rs b/tests/ui/type-alias-impl-trait/issue-57700.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57700.rs rename to tests/ui/type-alias-impl-trait/issue-57700.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-57700.stderr b/tests/ui/type-alias-impl-trait/issue-57700.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57700.stderr rename to tests/ui/type-alias-impl-trait/issue-57700.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-57807-associated-type.rs b/tests/ui/type-alias-impl-trait/issue-57807-associated-type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57807-associated-type.rs rename to tests/ui/type-alias-impl-trait/issue-57807-associated-type.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-57961.rs b/tests/ui/type-alias-impl-trait/issue-57961.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57961.rs rename to tests/ui/type-alias-impl-trait/issue-57961.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-57961.stderr b/tests/ui/type-alias-impl-trait/issue-57961.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-57961.stderr rename to tests/ui/type-alias-impl-trait/issue-57961.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-58662-generator-with-lifetime.rs b/tests/ui/type-alias-impl-trait/issue-58662-generator-with-lifetime.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-58662-generator-with-lifetime.rs rename to tests/ui/type-alias-impl-trait/issue-58662-generator-with-lifetime.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs b/tests/ui/type-alias-impl-trait/issue-58662-simplified.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-58662-simplified.rs rename to tests/ui/type-alias-impl-trait/issue-58662-simplified.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-58887.rs b/tests/ui/type-alias-impl-trait/issue-58887.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-58887.rs rename to tests/ui/type-alias-impl-trait/issue-58887.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-58951-2.rs b/tests/ui/type-alias-impl-trait/issue-58951-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-58951-2.rs rename to tests/ui/type-alias-impl-trait/issue-58951-2.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-58951.rs b/tests/ui/type-alias-impl-trait/issue-58951.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-58951.rs rename to tests/ui/type-alias-impl-trait/issue-58951.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-60371.rs b/tests/ui/type-alias-impl-trait/issue-60371.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60371.rs rename to tests/ui/type-alias-impl-trait/issue-60371.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-60371.stderr b/tests/ui/type-alias-impl-trait/issue-60371.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60371.stderr rename to tests/ui/type-alias-impl-trait/issue-60371.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-60407.rs b/tests/ui/type-alias-impl-trait/issue-60407.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60407.rs rename to tests/ui/type-alias-impl-trait/issue-60407.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-60407.stderr b/tests/ui/type-alias-impl-trait/issue-60407.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60407.stderr rename to tests/ui/type-alias-impl-trait/issue-60407.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-60564-working.rs b/tests/ui/type-alias-impl-trait/issue-60564-working.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60564-working.rs rename to tests/ui/type-alias-impl-trait/issue-60564-working.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-60564.rs b/tests/ui/type-alias-impl-trait/issue-60564.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60564.rs rename to tests/ui/type-alias-impl-trait/issue-60564.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-60564.stderr b/tests/ui/type-alias-impl-trait/issue-60564.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60564.stderr rename to tests/ui/type-alias-impl-trait/issue-60564.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-60662.rs b/tests/ui/type-alias-impl-trait/issue-60662.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60662.rs rename to tests/ui/type-alias-impl-trait/issue-60662.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-60662.stdout b/tests/ui/type-alias-impl-trait/issue-60662.stdout similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-60662.stdout rename to tests/ui/type-alias-impl-trait/issue-60662.stdout diff --git a/src/test/ui/type-alias-impl-trait/issue-62000-associate-impl-trait-lifetimes.rs b/tests/ui/type-alias-impl-trait/issue-62000-associate-impl-trait-lifetimes.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-62000-associate-impl-trait-lifetimes.rs rename to tests/ui/type-alias-impl-trait/issue-62000-associate-impl-trait-lifetimes.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-63263-closure-return.rs b/tests/ui/type-alias-impl-trait/issue-63263-closure-return.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-63263-closure-return.rs rename to tests/ui/type-alias-impl-trait/issue-63263-closure-return.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-63279.rs b/tests/ui/type-alias-impl-trait/issue-63279.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-63279.rs rename to tests/ui/type-alias-impl-trait/issue-63279.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-63279.stderr b/tests/ui/type-alias-impl-trait/issue-63279.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-63279.stderr rename to tests/ui/type-alias-impl-trait/issue-63279.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-63355.rs b/tests/ui/type-alias-impl-trait/issue-63355.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-63355.rs rename to tests/ui/type-alias-impl-trait/issue-63355.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-63677-type-alias-coherence.rs b/tests/ui/type-alias-impl-trait/issue-63677-type-alias-coherence.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-63677-type-alias-coherence.rs rename to tests/ui/type-alias-impl-trait/issue-63677-type-alias-coherence.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-65384.rs b/tests/ui/type-alias-impl-trait/issue-65384.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-65384.rs rename to tests/ui/type-alias-impl-trait/issue-65384.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-65384.stderr b/tests/ui/type-alias-impl-trait/issue-65384.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-65384.stderr rename to tests/ui/type-alias-impl-trait/issue-65384.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-65679-inst-opaque-ty-from-val-twice.rs b/tests/ui/type-alias-impl-trait/issue-65679-inst-opaque-ty-from-val-twice.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-65679-inst-opaque-ty-from-val-twice.rs rename to tests/ui/type-alias-impl-trait/issue-65679-inst-opaque-ty-from-val-twice.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-65918.rs b/tests/ui/type-alias-impl-trait/issue-65918.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-65918.rs rename to tests/ui/type-alias-impl-trait/issue-65918.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-66580-closure-coherence.rs b/tests/ui/type-alias-impl-trait/issue-66580-closure-coherence.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-66580-closure-coherence.rs rename to tests/ui/type-alias-impl-trait/issue-66580-closure-coherence.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-67844-nested-opaque.rs b/tests/ui/type-alias-impl-trait/issue-67844-nested-opaque.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-67844-nested-opaque.rs rename to tests/ui/type-alias-impl-trait/issue-67844-nested-opaque.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.rs b/tests/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.rs rename to tests/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.stderr b/tests/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.stderr rename to tests/ui/type-alias-impl-trait/issue-68368-non-defining-use-2.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use.rs b/tests/ui/type-alias-impl-trait/issue-68368-non-defining-use.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use.rs rename to tests/ui/type-alias-impl-trait/issue-68368-non-defining-use.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use.stderr b/tests/ui/type-alias-impl-trait/issue-68368-non-defining-use.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-68368-non-defining-use.stderr rename to tests/ui/type-alias-impl-trait/issue-68368-non-defining-use.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.rs b/tests/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.rs rename to tests/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.stderr b/tests/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.stderr rename to tests/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-error.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-ok.rs b/tests/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-ok.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-ok.rs rename to tests/ui/type-alias-impl-trait/issue-69136-inner-lifetime-resolve-ok.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-69323.rs b/tests/ui/type-alias-impl-trait/issue-69323.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-69323.rs rename to tests/ui/type-alias-impl-trait/issue-69323.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-70121.rs b/tests/ui/type-alias-impl-trait/issue-70121.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-70121.rs rename to tests/ui/type-alias-impl-trait/issue-70121.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-72793.rs b/tests/ui/type-alias-impl-trait/issue-72793.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-72793.rs rename to tests/ui/type-alias-impl-trait/issue-72793.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-74244.rs b/tests/ui/type-alias-impl-trait/issue-74244.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74244.rs rename to tests/ui/type-alias-impl-trait/issue-74244.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-74244.stderr b/tests/ui/type-alias-impl-trait/issue-74244.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74244.stderr rename to tests/ui/type-alias-impl-trait/issue-74244.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-74280.rs b/tests/ui/type-alias-impl-trait/issue-74280.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74280.rs rename to tests/ui/type-alias-impl-trait/issue-74280.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-74280.stderr b/tests/ui/type-alias-impl-trait/issue-74280.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74280.stderr rename to tests/ui/type-alias-impl-trait/issue-74280.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-74761-2.rs b/tests/ui/type-alias-impl-trait/issue-74761-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74761-2.rs rename to tests/ui/type-alias-impl-trait/issue-74761-2.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-74761-2.stderr b/tests/ui/type-alias-impl-trait/issue-74761-2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74761-2.stderr rename to tests/ui/type-alias-impl-trait/issue-74761-2.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-74761.rs b/tests/ui/type-alias-impl-trait/issue-74761.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74761.rs rename to tests/ui/type-alias-impl-trait/issue-74761.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-74761.stderr b/tests/ui/type-alias-impl-trait/issue-74761.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-74761.stderr rename to tests/ui/type-alias-impl-trait/issue-74761.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-76202-trait-impl-for-tait.rs b/tests/ui/type-alias-impl-trait/issue-76202-trait-impl-for-tait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-76202-trait-impl-for-tait.rs rename to tests/ui/type-alias-impl-trait/issue-76202-trait-impl-for-tait.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-77179.rs b/tests/ui/type-alias-impl-trait/issue-77179.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-77179.rs rename to tests/ui/type-alias-impl-trait/issue-77179.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-77179.stderr b/tests/ui/type-alias-impl-trait/issue-77179.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-77179.stderr rename to tests/ui/type-alias-impl-trait/issue-77179.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-78450.rs b/tests/ui/type-alias-impl-trait/issue-78450.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-78450.rs rename to tests/ui/type-alias-impl-trait/issue-78450.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-84660-trait-impl-for-tait.rs b/tests/ui/type-alias-impl-trait/issue-84660-trait-impl-for-tait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-84660-trait-impl-for-tait.rs rename to tests/ui/type-alias-impl-trait/issue-84660-trait-impl-for-tait.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs b/tests/ui/type-alias-impl-trait/issue-84660-unsoundness.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.rs rename to tests/ui/type-alias-impl-trait/issue-84660-unsoundness.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.stderr b/tests/ui/type-alias-impl-trait/issue-84660-unsoundness.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-84660-unsoundness.stderr rename to tests/ui/type-alias-impl-trait/issue-84660-unsoundness.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-87455-static-lifetime-ice.rs b/tests/ui/type-alias-impl-trait/issue-87455-static-lifetime-ice.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-87455-static-lifetime-ice.rs rename to tests/ui/type-alias-impl-trait/issue-87455-static-lifetime-ice.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-89686.rs b/tests/ui/type-alias-impl-trait/issue-89686.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-89686.rs rename to tests/ui/type-alias-impl-trait/issue-89686.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-89686.stderr b/tests/ui/type-alias-impl-trait/issue-89686.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-89686.stderr rename to tests/ui/type-alias-impl-trait/issue-89686.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-89952.rs b/tests/ui/type-alias-impl-trait/issue-89952.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-89952.rs rename to tests/ui/type-alias-impl-trait/issue-89952.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-90400-1.rs b/tests/ui/type-alias-impl-trait/issue-90400-1.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-90400-1.rs rename to tests/ui/type-alias-impl-trait/issue-90400-1.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-90400-1.stderr b/tests/ui/type-alias-impl-trait/issue-90400-1.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-90400-1.stderr rename to tests/ui/type-alias-impl-trait/issue-90400-1.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-90400-2.rs b/tests/ui/type-alias-impl-trait/issue-90400-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-90400-2.rs rename to tests/ui/type-alias-impl-trait/issue-90400-2.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-90400-2.stderr b/tests/ui/type-alias-impl-trait/issue-90400-2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-90400-2.stderr rename to tests/ui/type-alias-impl-trait/issue-90400-2.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-93411.rs b/tests/ui/type-alias-impl-trait/issue-93411.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-93411.rs rename to tests/ui/type-alias-impl-trait/issue-93411.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-94429.rs b/tests/ui/type-alias-impl-trait/issue-94429.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-94429.rs rename to tests/ui/type-alias-impl-trait/issue-94429.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-94429.stderr b/tests/ui/type-alias-impl-trait/issue-94429.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-94429.stderr rename to tests/ui/type-alias-impl-trait/issue-94429.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.rs b/tests/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.rs rename to tests/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.stderr b/tests/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.stderr rename to tests/ui/type-alias-impl-trait/issue-96572-unconstrained-mismatch.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-96572-unconstrained.rs b/tests/ui/type-alias-impl-trait/issue-96572-unconstrained.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-96572-unconstrained.rs rename to tests/ui/type-alias-impl-trait/issue-96572-unconstrained.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-98604.rs b/tests/ui/type-alias-impl-trait/issue-98604.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-98604.rs rename to tests/ui/type-alias-impl-trait/issue-98604.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-98604.stderr b/tests/ui/type-alias-impl-trait/issue-98604.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-98604.stderr rename to tests/ui/type-alias-impl-trait/issue-98604.stderr diff --git a/src/test/ui/type-alias-impl-trait/issue-98608.rs b/tests/ui/type-alias-impl-trait/issue-98608.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-98608.rs rename to tests/ui/type-alias-impl-trait/issue-98608.rs diff --git a/src/test/ui/type-alias-impl-trait/issue-98608.stderr b/tests/ui/type-alias-impl-trait/issue-98608.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/issue-98608.stderr rename to tests/ui/type-alias-impl-trait/issue-98608.stderr diff --git a/src/test/ui/type-alias-impl-trait/missing_lifetime_bound.rs b/tests/ui/type-alias-impl-trait/missing_lifetime_bound.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/missing_lifetime_bound.rs rename to tests/ui/type-alias-impl-trait/missing_lifetime_bound.rs diff --git a/src/test/ui/type-alias-impl-trait/missing_lifetime_bound.stderr b/tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/missing_lifetime_bound.stderr rename to tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.rs b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.rs rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.rs diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.stderr b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.stderr rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-infer.stderr diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.rs b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.rs rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.rs diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.stderr b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.stderr rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-lifetimes.stderr diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-pass.rs b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-pass.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-pass.rs rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn-pass.rs diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.rs b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.rs rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.rs diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.stderr b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.stderr rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.stderr diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.rs b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.rs rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.rs diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.stderr b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.stderr rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn2.stderr diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.rs b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.rs rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.rs diff --git a/src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.stderr b/tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.stderr rename to tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn3.stderr diff --git a/src/test/ui/type-alias-impl-trait/multiple_definitions.rs b/tests/ui/type-alias-impl-trait/multiple_definitions.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/multiple_definitions.rs rename to tests/ui/type-alias-impl-trait/multiple_definitions.rs diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference.rs b/tests/ui/type-alias-impl-trait/nested-tait-inference.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested-tait-inference.rs rename to tests/ui/type-alias-impl-trait/nested-tait-inference.rs diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr b/tests/ui/type-alias-impl-trait/nested-tait-inference.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested-tait-inference.stderr rename to tests/ui/type-alias-impl-trait/nested-tait-inference.stderr diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference2.rs b/tests/ui/type-alias-impl-trait/nested-tait-inference2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested-tait-inference2.rs rename to tests/ui/type-alias-impl-trait/nested-tait-inference2.rs diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference2.stderr b/tests/ui/type-alias-impl-trait/nested-tait-inference2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested-tait-inference2.stderr rename to tests/ui/type-alias-impl-trait/nested-tait-inference2.stderr diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference3.rs b/tests/ui/type-alias-impl-trait/nested-tait-inference3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested-tait-inference3.rs rename to tests/ui/type-alias-impl-trait/nested-tait-inference3.rs diff --git a/src/test/ui/type-alias-impl-trait/nested-tait-inference3.stderr b/tests/ui/type-alias-impl-trait/nested-tait-inference3.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested-tait-inference3.stderr rename to tests/ui/type-alias-impl-trait/nested-tait-inference3.stderr diff --git a/src/test/ui/type-alias-impl-trait/nested.rs b/tests/ui/type-alias-impl-trait/nested.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested.rs rename to tests/ui/type-alias-impl-trait/nested.rs diff --git a/src/test/ui/type-alias-impl-trait/nested.stderr b/tests/ui/type-alias-impl-trait/nested.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested.stderr rename to tests/ui/type-alias-impl-trait/nested.stderr diff --git a/src/test/ui/type-alias-impl-trait/nested_type_alias_impl_trait.rs b/tests/ui/type-alias-impl-trait/nested_type_alias_impl_trait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested_type_alias_impl_trait.rs rename to tests/ui/type-alias-impl-trait/nested_type_alias_impl_trait.rs diff --git a/src/test/ui/type-alias-impl-trait/nested_type_alias_impl_trait.stderr b/tests/ui/type-alias-impl-trait/nested_type_alias_impl_trait.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/nested_type_alias_impl_trait.stderr rename to tests/ui/type-alias-impl-trait/nested_type_alias_impl_trait.stderr diff --git a/src/test/ui/type-alias-impl-trait/never_reveal_concrete_type.rs b/tests/ui/type-alias-impl-trait/never_reveal_concrete_type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/never_reveal_concrete_type.rs rename to tests/ui/type-alias-impl-trait/never_reveal_concrete_type.rs diff --git a/src/test/ui/type-alias-impl-trait/no_inferrable_concrete_type.rs b/tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/no_inferrable_concrete_type.rs rename to tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.rs diff --git a/src/test/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr b/tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr rename to tests/ui/type-alias-impl-trait/no_inferrable_concrete_type.stderr diff --git a/src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.rs b/tests/ui/type-alias-impl-trait/no_revealing_outside_defining_module.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.rs rename to tests/ui/type-alias-impl-trait/no_revealing_outside_defining_module.rs diff --git a/src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr b/tests/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr rename to tests/ui/type-alias-impl-trait/no_revealing_outside_defining_module.stderr diff --git a/src/test/ui/type-alias-impl-trait/not_a_defining_use.rs b/tests/ui/type-alias-impl-trait/not_a_defining_use.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/not_a_defining_use.rs rename to tests/ui/type-alias-impl-trait/not_a_defining_use.rs diff --git a/src/test/ui/type-alias-impl-trait/not_a_defining_use.stderr b/tests/ui/type-alias-impl-trait/not_a_defining_use.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/not_a_defining_use.stderr rename to tests/ui/type-alias-impl-trait/not_a_defining_use.stderr diff --git a/src/test/ui/type-alias-impl-trait/not_well_formed.rs b/tests/ui/type-alias-impl-trait/not_well_formed.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/not_well_formed.rs rename to tests/ui/type-alias-impl-trait/not_well_formed.rs diff --git a/src/test/ui/type-alias-impl-trait/not_well_formed.stderr b/tests/ui/type-alias-impl-trait/not_well_formed.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/not_well_formed.stderr rename to tests/ui/type-alias-impl-trait/not_well_formed.stderr diff --git a/src/test/ui/type-alias-impl-trait/reveal_local.rs b/tests/ui/type-alias-impl-trait/reveal_local.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/reveal_local.rs rename to tests/ui/type-alias-impl-trait/reveal_local.rs diff --git a/src/test/ui/type-alias-impl-trait/reveal_local.stderr b/tests/ui/type-alias-impl-trait/reveal_local.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/reveal_local.stderr rename to tests/ui/type-alias-impl-trait/reveal_local.stderr diff --git a/src/test/ui/type-alias-impl-trait/self-referential-2.rs b/tests/ui/type-alias-impl-trait/self-referential-2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential-2.rs rename to tests/ui/type-alias-impl-trait/self-referential-2.rs diff --git a/src/test/ui/type-alias-impl-trait/self-referential-2.stderr b/tests/ui/type-alias-impl-trait/self-referential-2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential-2.stderr rename to tests/ui/type-alias-impl-trait/self-referential-2.stderr diff --git a/src/test/ui/type-alias-impl-trait/self-referential-3.rs b/tests/ui/type-alias-impl-trait/self-referential-3.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential-3.rs rename to tests/ui/type-alias-impl-trait/self-referential-3.rs diff --git a/src/test/ui/type-alias-impl-trait/self-referential-4.rs b/tests/ui/type-alias-impl-trait/self-referential-4.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential-4.rs rename to tests/ui/type-alias-impl-trait/self-referential-4.rs diff --git a/src/test/ui/type-alias-impl-trait/self-referential-4.stderr b/tests/ui/type-alias-impl-trait/self-referential-4.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential-4.stderr rename to tests/ui/type-alias-impl-trait/self-referential-4.stderr diff --git a/src/test/ui/type-alias-impl-trait/self-referential.rs b/tests/ui/type-alias-impl-trait/self-referential.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential.rs rename to tests/ui/type-alias-impl-trait/self-referential.rs diff --git a/src/test/ui/type-alias-impl-trait/self-referential.stderr b/tests/ui/type-alias-impl-trait/self-referential.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/self-referential.stderr rename to tests/ui/type-alias-impl-trait/self-referential.stderr diff --git a/src/test/ui/type-alias-impl-trait/self_implication.rs b/tests/ui/type-alias-impl-trait/self_implication.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/self_implication.rs rename to tests/ui/type-alias-impl-trait/self_implication.rs diff --git a/src/test/ui/type-alias-impl-trait/static-const-types.rs b/tests/ui/type-alias-impl-trait/static-const-types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/static-const-types.rs rename to tests/ui/type-alias-impl-trait/static-const-types.rs diff --git a/src/test/ui/type-alias-impl-trait/structural-match-no-leak.rs b/tests/ui/type-alias-impl-trait/structural-match-no-leak.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/structural-match-no-leak.rs rename to tests/ui/type-alias-impl-trait/structural-match-no-leak.rs diff --git a/src/test/ui/type-alias-impl-trait/structural-match-no-leak.stderr b/tests/ui/type-alias-impl-trait/structural-match-no-leak.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/structural-match-no-leak.stderr rename to tests/ui/type-alias-impl-trait/structural-match-no-leak.stderr diff --git a/src/test/ui/type-alias-impl-trait/structural-match.rs b/tests/ui/type-alias-impl-trait/structural-match.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/structural-match.rs rename to tests/ui/type-alias-impl-trait/structural-match.rs diff --git a/src/test/ui/type-alias-impl-trait/structural-match.stderr b/tests/ui/type-alias-impl-trait/structural-match.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/structural-match.stderr rename to tests/ui/type-alias-impl-trait/structural-match.stderr diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-dyn.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-dyn.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-dyn.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-dyn.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-impl-trait.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-impl-trait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-impl-trait.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-assoc-impl-trait.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-const.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-const.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-const.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-const.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.stderr b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.stderr rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-fn-type.stderr diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-fns.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-fns.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-fns.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-fns.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-sized.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-struct.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-struct.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-struct.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-struct.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.stderr b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.stderr rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.stderr diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.stderr b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.stderr rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error.stderr diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.stderr b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.stderr rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.stderr diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr b/tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait-with-no-traits.stderr diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-impl-trait2.rs b/tests/ui/type-alias-impl-trait/type-alias-impl-trait2.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-impl-trait2.rs rename to tests/ui/type-alias-impl-trait/type-alias-impl-trait2.rs diff --git a/src/test/ui/type-alias-impl-trait/type-alias-nested-impl-trait.rs b/tests/ui/type-alias-impl-trait/type-alias-nested-impl-trait.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type-alias-nested-impl-trait.rs rename to tests/ui/type-alias-impl-trait/type-alias-nested-impl-trait.rs diff --git a/src/test/ui/type-alias-impl-trait/type_of_a_let.rs b/tests/ui/type-alias-impl-trait/type_of_a_let.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/type_of_a_let.rs rename to tests/ui/type-alias-impl-trait/type_of_a_let.rs diff --git a/src/test/ui/type-alias-impl-trait/type_of_a_let.stderr b/tests/ui/type-alias-impl-trait/type_of_a_let.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/type_of_a_let.stderr rename to tests/ui/type-alias-impl-trait/type_of_a_let.stderr diff --git a/src/test/ui/type-alias-impl-trait/unbounded_opaque_type.rs b/tests/ui/type-alias-impl-trait/unbounded_opaque_type.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/unbounded_opaque_type.rs rename to tests/ui/type-alias-impl-trait/unbounded_opaque_type.rs diff --git a/src/test/ui/type-alias-impl-trait/underconstrained_generic.rs b/tests/ui/type-alias-impl-trait/underconstrained_generic.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/underconstrained_generic.rs rename to tests/ui/type-alias-impl-trait/underconstrained_generic.rs diff --git a/src/test/ui/type-alias-impl-trait/underconstrained_generic.stderr b/tests/ui/type-alias-impl-trait/underconstrained_generic.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/underconstrained_generic.stderr rename to tests/ui/type-alias-impl-trait/underconstrained_generic.stderr diff --git a/src/test/ui/type-alias-impl-trait/underconstrained_lifetime.rs b/tests/ui/type-alias-impl-trait/underconstrained_lifetime.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/underconstrained_lifetime.rs rename to tests/ui/type-alias-impl-trait/underconstrained_lifetime.rs diff --git a/src/test/ui/type-alias-impl-trait/underconstrained_lifetime.stderr b/tests/ui/type-alias-impl-trait/underconstrained_lifetime.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/underconstrained_lifetime.stderr rename to tests/ui/type-alias-impl-trait/underconstrained_lifetime.stderr diff --git a/src/test/ui/type-alias-impl-trait/unused_generic_param.rs b/tests/ui/type-alias-impl-trait/unused_generic_param.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/unused_generic_param.rs rename to tests/ui/type-alias-impl-trait/unused_generic_param.rs diff --git a/src/test/ui/type-alias-impl-trait/weird-return-types.rs b/tests/ui/type-alias-impl-trait/weird-return-types.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/weird-return-types.rs rename to tests/ui/type-alias-impl-trait/weird-return-types.rs diff --git a/src/test/ui/type-alias-impl-trait/wf-check-fn-def.rs b/tests/ui/type-alias-impl-trait/wf-check-fn-def.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/wf-check-fn-def.rs rename to tests/ui/type-alias-impl-trait/wf-check-fn-def.rs diff --git a/src/test/ui/type-alias-impl-trait/wf-check-fn-def.stderr b/tests/ui/type-alias-impl-trait/wf-check-fn-def.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/wf-check-fn-def.stderr rename to tests/ui/type-alias-impl-trait/wf-check-fn-def.stderr diff --git a/src/test/ui/type-alias-impl-trait/wf-check-fn-ptrs.rs b/tests/ui/type-alias-impl-trait/wf-check-fn-ptrs.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/wf-check-fn-ptrs.rs rename to tests/ui/type-alias-impl-trait/wf-check-fn-ptrs.rs diff --git a/src/test/ui/type-alias-impl-trait/wf_check_closures.rs b/tests/ui/type-alias-impl-trait/wf_check_closures.rs similarity index 100% rename from src/test/ui/type-alias-impl-trait/wf_check_closures.rs rename to tests/ui/type-alias-impl-trait/wf_check_closures.rs diff --git a/src/test/ui/type-alias-impl-trait/wf_check_closures.stderr b/tests/ui/type-alias-impl-trait/wf_check_closures.stderr similarity index 100% rename from src/test/ui/type-alias-impl-trait/wf_check_closures.stderr rename to tests/ui/type-alias-impl-trait/wf_check_closures.stderr diff --git a/src/test/ui/type-alias/issue-14933.rs b/tests/ui/type-alias/issue-14933.rs similarity index 100% rename from src/test/ui/type-alias/issue-14933.rs rename to tests/ui/type-alias/issue-14933.rs diff --git a/src/test/ui/type-alias/issue-37515.rs b/tests/ui/type-alias/issue-37515.rs similarity index 100% rename from src/test/ui/type-alias/issue-37515.rs rename to tests/ui/type-alias/issue-37515.rs diff --git a/src/test/ui/type-alias/issue-37515.stderr b/tests/ui/type-alias/issue-37515.stderr similarity index 100% rename from src/test/ui/type-alias/issue-37515.stderr rename to tests/ui/type-alias/issue-37515.stderr diff --git a/src/test/ui/type-alias/issue-62263-self-in-atb.rs b/tests/ui/type-alias/issue-62263-self-in-atb.rs similarity index 100% rename from src/test/ui/type-alias/issue-62263-self-in-atb.rs rename to tests/ui/type-alias/issue-62263-self-in-atb.rs diff --git a/src/test/ui/type-alias/issue-62263-self-in-atb.stderr b/tests/ui/type-alias/issue-62263-self-in-atb.stderr similarity index 100% rename from src/test/ui/type-alias/issue-62263-self-in-atb.stderr rename to tests/ui/type-alias/issue-62263-self-in-atb.stderr diff --git a/src/test/ui/type-alias/issue-62305-self-assoc-ty.rs b/tests/ui/type-alias/issue-62305-self-assoc-ty.rs similarity index 100% rename from src/test/ui/type-alias/issue-62305-self-assoc-ty.rs rename to tests/ui/type-alias/issue-62305-self-assoc-ty.rs diff --git a/src/test/ui/type-alias/issue-62305-self-assoc-ty.stderr b/tests/ui/type-alias/issue-62305-self-assoc-ty.stderr similarity index 100% rename from src/test/ui/type-alias/issue-62305-self-assoc-ty.stderr rename to tests/ui/type-alias/issue-62305-self-assoc-ty.stderr diff --git a/src/test/ui/type-alias/issue-62364-self-ty-arg.rs b/tests/ui/type-alias/issue-62364-self-ty-arg.rs similarity index 100% rename from src/test/ui/type-alias/issue-62364-self-ty-arg.rs rename to tests/ui/type-alias/issue-62364-self-ty-arg.rs diff --git a/src/test/ui/type-alias/issue-62364-self-ty-arg.stderr b/tests/ui/type-alias/issue-62364-self-ty-arg.stderr similarity index 100% rename from src/test/ui/type-alias/issue-62364-self-ty-arg.stderr rename to tests/ui/type-alias/issue-62364-self-ty-arg.stderr diff --git a/src/test/ui/type-id-higher-rank-2.rs b/tests/ui/type-id-higher-rank-2.rs similarity index 100% rename from src/test/ui/type-id-higher-rank-2.rs rename to tests/ui/type-id-higher-rank-2.rs diff --git a/src/test/ui/type-inference/issue-30225.rs b/tests/ui/type-inference/issue-30225.rs similarity index 100% rename from src/test/ui/type-inference/issue-30225.rs rename to tests/ui/type-inference/issue-30225.rs diff --git a/src/test/ui/type-inference/issue-30225.stderr b/tests/ui/type-inference/issue-30225.stderr similarity index 100% rename from src/test/ui/type-inference/issue-30225.stderr rename to tests/ui/type-inference/issue-30225.stderr diff --git a/src/test/ui/type-inference/or_else-multiple-type-params.rs b/tests/ui/type-inference/or_else-multiple-type-params.rs similarity index 100% rename from src/test/ui/type-inference/or_else-multiple-type-params.rs rename to tests/ui/type-inference/or_else-multiple-type-params.rs diff --git a/src/test/ui/type-inference/or_else-multiple-type-params.stderr b/tests/ui/type-inference/or_else-multiple-type-params.stderr similarity index 100% rename from src/test/ui/type-inference/or_else-multiple-type-params.stderr rename to tests/ui/type-inference/or_else-multiple-type-params.stderr diff --git a/src/test/ui/type-inference/sort_by_key.rs b/tests/ui/type-inference/sort_by_key.rs similarity index 100% rename from src/test/ui/type-inference/sort_by_key.rs rename to tests/ui/type-inference/sort_by_key.rs diff --git a/src/test/ui/type-inference/sort_by_key.stderr b/tests/ui/type-inference/sort_by_key.stderr similarity index 100% rename from src/test/ui/type-inference/sort_by_key.stderr rename to tests/ui/type-inference/sort_by_key.stderr diff --git a/src/test/ui/type-inference/unbounded-associated-type.rs b/tests/ui/type-inference/unbounded-associated-type.rs similarity index 100% rename from src/test/ui/type-inference/unbounded-associated-type.rs rename to tests/ui/type-inference/unbounded-associated-type.rs diff --git a/src/test/ui/type-inference/unbounded-associated-type.stderr b/tests/ui/type-inference/unbounded-associated-type.stderr similarity index 100% rename from src/test/ui/type-inference/unbounded-associated-type.stderr rename to tests/ui/type-inference/unbounded-associated-type.stderr diff --git a/src/test/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.rs b/tests/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.rs similarity index 100% rename from src/test/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.rs rename to tests/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.rs diff --git a/src/test/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.stderr b/tests/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.stderr similarity index 100% rename from src/test/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.stderr rename to tests/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.stderr diff --git a/src/test/ui/type-inference/unbounded-type-param-in-fn.rs b/tests/ui/type-inference/unbounded-type-param-in-fn.rs similarity index 100% rename from src/test/ui/type-inference/unbounded-type-param-in-fn.rs rename to tests/ui/type-inference/unbounded-type-param-in-fn.rs diff --git a/src/test/ui/type-inference/unbounded-type-param-in-fn.stderr b/tests/ui/type-inference/unbounded-type-param-in-fn.stderr similarity index 100% rename from src/test/ui/type-inference/unbounded-type-param-in-fn.stderr rename to tests/ui/type-inference/unbounded-type-param-in-fn.stderr diff --git a/src/test/ui/type-namespace.rs b/tests/ui/type-namespace.rs similarity index 100% rename from src/test/ui/type-namespace.rs rename to tests/ui/type-namespace.rs diff --git a/src/test/ui/type-param-constraints.rs b/tests/ui/type-param-constraints.rs similarity index 100% rename from src/test/ui/type-param-constraints.rs rename to tests/ui/type-param-constraints.rs diff --git a/src/test/ui/type-param.rs b/tests/ui/type-param.rs similarity index 100% rename from src/test/ui/type-param.rs rename to tests/ui/type-param.rs diff --git a/src/test/ui/type-ptr.rs b/tests/ui/type-ptr.rs similarity index 100% rename from src/test/ui/type-ptr.rs rename to tests/ui/type-ptr.rs diff --git a/src/test/ui/type-use-i1-versus-i8.rs b/tests/ui/type-use-i1-versus-i8.rs similarity index 100% rename from src/test/ui/type-use-i1-versus-i8.rs rename to tests/ui/type-use-i1-versus-i8.rs diff --git a/src/test/ui/type/ascription/issue-34255-1.rs b/tests/ui/type/ascription/issue-34255-1.rs similarity index 100% rename from src/test/ui/type/ascription/issue-34255-1.rs rename to tests/ui/type/ascription/issue-34255-1.rs diff --git a/src/test/ui/type/ascription/issue-34255-1.stderr b/tests/ui/type/ascription/issue-34255-1.stderr similarity index 100% rename from src/test/ui/type/ascription/issue-34255-1.stderr rename to tests/ui/type/ascription/issue-34255-1.stderr diff --git a/src/test/ui/type/ascription/issue-47666.fixed b/tests/ui/type/ascription/issue-47666.fixed similarity index 100% rename from src/test/ui/type/ascription/issue-47666.fixed rename to tests/ui/type/ascription/issue-47666.fixed diff --git a/src/test/ui/type/ascription/issue-47666.rs b/tests/ui/type/ascription/issue-47666.rs similarity index 100% rename from src/test/ui/type/ascription/issue-47666.rs rename to tests/ui/type/ascription/issue-47666.rs diff --git a/src/test/ui/type/ascription/issue-47666.stderr b/tests/ui/type/ascription/issue-47666.stderr similarity index 100% rename from src/test/ui/type/ascription/issue-47666.stderr rename to tests/ui/type/ascription/issue-47666.stderr diff --git a/src/test/ui/type/ascription/issue-54516.fixed b/tests/ui/type/ascription/issue-54516.fixed similarity index 100% rename from src/test/ui/type/ascription/issue-54516.fixed rename to tests/ui/type/ascription/issue-54516.fixed diff --git a/src/test/ui/type/ascription/issue-54516.rs b/tests/ui/type/ascription/issue-54516.rs similarity index 100% rename from src/test/ui/type/ascription/issue-54516.rs rename to tests/ui/type/ascription/issue-54516.rs diff --git a/src/test/ui/type/ascription/issue-54516.stderr b/tests/ui/type/ascription/issue-54516.stderr similarity index 100% rename from src/test/ui/type/ascription/issue-54516.stderr rename to tests/ui/type/ascription/issue-54516.stderr diff --git a/src/test/ui/type/ascription/issue-60933.fixed b/tests/ui/type/ascription/issue-60933.fixed similarity index 100% rename from src/test/ui/type/ascription/issue-60933.fixed rename to tests/ui/type/ascription/issue-60933.fixed diff --git a/src/test/ui/type/ascription/issue-60933.rs b/tests/ui/type/ascription/issue-60933.rs similarity index 100% rename from src/test/ui/type/ascription/issue-60933.rs rename to tests/ui/type/ascription/issue-60933.rs diff --git a/src/test/ui/type/ascription/issue-60933.stderr b/tests/ui/type/ascription/issue-60933.stderr similarity index 100% rename from src/test/ui/type/ascription/issue-60933.stderr rename to tests/ui/type/ascription/issue-60933.stderr diff --git a/src/test/ui/type/auxiliary/crate_a1.rs b/tests/ui/type/auxiliary/crate_a1.rs similarity index 100% rename from src/test/ui/type/auxiliary/crate_a1.rs rename to tests/ui/type/auxiliary/crate_a1.rs diff --git a/src/test/ui/type/auxiliary/crate_a2.rs b/tests/ui/type/auxiliary/crate_a2.rs similarity index 100% rename from src/test/ui/type/auxiliary/crate_a2.rs rename to tests/ui/type/auxiliary/crate_a2.rs diff --git a/src/test/ui/type/binding-assigned-block-without-tail-expression.rs b/tests/ui/type/binding-assigned-block-without-tail-expression.rs similarity index 100% rename from src/test/ui/type/binding-assigned-block-without-tail-expression.rs rename to tests/ui/type/binding-assigned-block-without-tail-expression.rs diff --git a/src/test/ui/type/binding-assigned-block-without-tail-expression.stderr b/tests/ui/type/binding-assigned-block-without-tail-expression.stderr similarity index 100% rename from src/test/ui/type/binding-assigned-block-without-tail-expression.stderr rename to tests/ui/type/binding-assigned-block-without-tail-expression.stderr diff --git a/src/test/ui/type/closure-with-wrong-borrows.rs b/tests/ui/type/closure-with-wrong-borrows.rs similarity index 100% rename from src/test/ui/type/closure-with-wrong-borrows.rs rename to tests/ui/type/closure-with-wrong-borrows.rs diff --git a/src/test/ui/type/closure-with-wrong-borrows.stderr b/tests/ui/type/closure-with-wrong-borrows.stderr similarity index 100% rename from src/test/ui/type/closure-with-wrong-borrows.stderr rename to tests/ui/type/closure-with-wrong-borrows.stderr diff --git a/src/test/ui/type/issue-100584.rs b/tests/ui/type/issue-100584.rs similarity index 100% rename from src/test/ui/type/issue-100584.rs rename to tests/ui/type/issue-100584.rs diff --git a/src/test/ui/type/issue-100584.stderr b/tests/ui/type/issue-100584.stderr similarity index 100% rename from src/test/ui/type/issue-100584.stderr rename to tests/ui/type/issue-100584.stderr diff --git a/src/test/ui/type/issue-101866.rs b/tests/ui/type/issue-101866.rs similarity index 100% rename from src/test/ui/type/issue-101866.rs rename to tests/ui/type/issue-101866.rs diff --git a/src/test/ui/type/issue-101866.stderr b/tests/ui/type/issue-101866.stderr similarity index 100% rename from src/test/ui/type/issue-101866.stderr rename to tests/ui/type/issue-101866.stderr diff --git a/src/test/ui/type/issue-102598.rs b/tests/ui/type/issue-102598.rs similarity index 100% rename from src/test/ui/type/issue-102598.rs rename to tests/ui/type/issue-102598.rs diff --git a/src/test/ui/type/issue-102598.stderr b/tests/ui/type/issue-102598.stderr similarity index 100% rename from src/test/ui/type/issue-102598.stderr rename to tests/ui/type/issue-102598.stderr diff --git a/src/test/ui/type/issue-103271.rs b/tests/ui/type/issue-103271.rs similarity index 100% rename from src/test/ui/type/issue-103271.rs rename to tests/ui/type/issue-103271.rs diff --git a/src/test/ui/type/issue-103271.stderr b/tests/ui/type/issue-103271.stderr similarity index 100% rename from src/test/ui/type/issue-103271.stderr rename to tests/ui/type/issue-103271.stderr diff --git a/src/test/ui/type/issue-58355.rs b/tests/ui/type/issue-58355.rs similarity index 100% rename from src/test/ui/type/issue-58355.rs rename to tests/ui/type/issue-58355.rs diff --git a/src/test/ui/type/issue-58355.stderr b/tests/ui/type/issue-58355.stderr similarity index 100% rename from src/test/ui/type/issue-58355.stderr rename to tests/ui/type/issue-58355.stderr diff --git a/src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.rs b/tests/ui/type/issue-67690-type-alias-bound-diagnostic-crash.rs similarity index 100% rename from src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.rs rename to tests/ui/type/issue-67690-type-alias-bound-diagnostic-crash.rs diff --git a/src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr b/tests/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr similarity index 100% rename from src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr rename to tests/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr diff --git a/src/test/ui/type/issue-91268.rs b/tests/ui/type/issue-91268.rs similarity index 100% rename from src/test/ui/type/issue-91268.rs rename to tests/ui/type/issue-91268.rs diff --git a/src/test/ui/type/issue-91268.stderr b/tests/ui/type/issue-91268.stderr similarity index 100% rename from src/test/ui/type/issue-91268.stderr rename to tests/ui/type/issue-91268.stderr diff --git a/src/test/ui/type/issue-94187-verbose-type-name.rs b/tests/ui/type/issue-94187-verbose-type-name.rs similarity index 100% rename from src/test/ui/type/issue-94187-verbose-type-name.rs rename to tests/ui/type/issue-94187-verbose-type-name.rs diff --git a/src/test/ui/type/missing-let-in-binding.fixed b/tests/ui/type/missing-let-in-binding.fixed similarity index 100% rename from src/test/ui/type/missing-let-in-binding.fixed rename to tests/ui/type/missing-let-in-binding.fixed diff --git a/src/test/ui/type/missing-let-in-binding.rs b/tests/ui/type/missing-let-in-binding.rs similarity index 100% rename from src/test/ui/type/missing-let-in-binding.rs rename to tests/ui/type/missing-let-in-binding.rs diff --git a/src/test/ui/type/missing-let-in-binding.stderr b/tests/ui/type/missing-let-in-binding.stderr similarity index 100% rename from src/test/ui/type/missing-let-in-binding.stderr rename to tests/ui/type/missing-let-in-binding.stderr diff --git a/src/test/ui/type/type-alias-bounds.rs b/tests/ui/type/type-alias-bounds.rs similarity index 100% rename from src/test/ui/type/type-alias-bounds.rs rename to tests/ui/type/type-alias-bounds.rs diff --git a/src/test/ui/type/type-alias-bounds.stderr b/tests/ui/type/type-alias-bounds.stderr similarity index 100% rename from src/test/ui/type/type-alias-bounds.stderr rename to tests/ui/type/type-alias-bounds.stderr diff --git a/src/test/ui/type/type-annotation-needed.rs b/tests/ui/type/type-annotation-needed.rs similarity index 100% rename from src/test/ui/type/type-annotation-needed.rs rename to tests/ui/type/type-annotation-needed.rs diff --git a/src/test/ui/type/type-annotation-needed.stderr b/tests/ui/type/type-annotation-needed.stderr similarity index 100% rename from src/test/ui/type/type-annotation-needed.stderr rename to tests/ui/type/type-annotation-needed.stderr diff --git a/src/test/ui/type/type-arg-out-of-scope.rs b/tests/ui/type/type-arg-out-of-scope.rs similarity index 100% rename from src/test/ui/type/type-arg-out-of-scope.rs rename to tests/ui/type/type-arg-out-of-scope.rs diff --git a/src/test/ui/type/type-arg-out-of-scope.stderr b/tests/ui/type/type-arg-out-of-scope.stderr similarity index 100% rename from src/test/ui/type/type-arg-out-of-scope.stderr rename to tests/ui/type/type-arg-out-of-scope.stderr diff --git a/src/test/ui/type/type-ascription-instead-of-initializer.rs b/tests/ui/type/type-ascription-instead-of-initializer.rs similarity index 100% rename from src/test/ui/type/type-ascription-instead-of-initializer.rs rename to tests/ui/type/type-ascription-instead-of-initializer.rs diff --git a/src/test/ui/type/type-ascription-instead-of-initializer.stderr b/tests/ui/type/type-ascription-instead-of-initializer.stderr similarity index 100% rename from src/test/ui/type/type-ascription-instead-of-initializer.stderr rename to tests/ui/type/type-ascription-instead-of-initializer.stderr diff --git a/src/test/ui/type/type-ascription-instead-of-statement-end.rs b/tests/ui/type/type-ascription-instead-of-statement-end.rs similarity index 100% rename from src/test/ui/type/type-ascription-instead-of-statement-end.rs rename to tests/ui/type/type-ascription-instead-of-statement-end.rs diff --git a/src/test/ui/type/type-ascription-instead-of-statement-end.stderr b/tests/ui/type/type-ascription-instead-of-statement-end.stderr similarity index 100% rename from src/test/ui/type/type-ascription-instead-of-statement-end.stderr rename to tests/ui/type/type-ascription-instead-of-statement-end.stderr diff --git a/src/test/ui/type/type-ascription-precedence.rs b/tests/ui/type/type-ascription-precedence.rs similarity index 100% rename from src/test/ui/type/type-ascription-precedence.rs rename to tests/ui/type/type-ascription-precedence.rs diff --git a/src/test/ui/type/type-ascription-precedence.stderr b/tests/ui/type/type-ascription-precedence.stderr similarity index 100% rename from src/test/ui/type/type-ascription-precedence.stderr rename to tests/ui/type/type-ascription-precedence.stderr diff --git a/src/test/ui/type/type-ascription-soundness.rs b/tests/ui/type/type-ascription-soundness.rs similarity index 100% rename from src/test/ui/type/type-ascription-soundness.rs rename to tests/ui/type/type-ascription-soundness.rs diff --git a/src/test/ui/type/type-ascription-soundness.stderr b/tests/ui/type/type-ascription-soundness.stderr similarity index 100% rename from src/test/ui/type/type-ascription-soundness.stderr rename to tests/ui/type/type-ascription-soundness.stderr diff --git a/src/test/ui/type/type-ascription-with-fn-call.fixed b/tests/ui/type/type-ascription-with-fn-call.fixed similarity index 100% rename from src/test/ui/type/type-ascription-with-fn-call.fixed rename to tests/ui/type/type-ascription-with-fn-call.fixed diff --git a/src/test/ui/type/type-ascription-with-fn-call.rs b/tests/ui/type/type-ascription-with-fn-call.rs similarity index 100% rename from src/test/ui/type/type-ascription-with-fn-call.rs rename to tests/ui/type/type-ascription-with-fn-call.rs diff --git a/src/test/ui/type/type-ascription-with-fn-call.stderr b/tests/ui/type/type-ascription-with-fn-call.stderr similarity index 100% rename from src/test/ui/type/type-ascription-with-fn-call.stderr rename to tests/ui/type/type-ascription-with-fn-call.stderr diff --git a/src/test/ui/type/type-ascription.rs b/tests/ui/type/type-ascription.rs similarity index 100% rename from src/test/ui/type/type-ascription.rs rename to tests/ui/type/type-ascription.rs diff --git a/src/test/ui/type/type-check-defaults.rs b/tests/ui/type/type-check-defaults.rs similarity index 100% rename from src/test/ui/type/type-check-defaults.rs rename to tests/ui/type/type-check-defaults.rs diff --git a/src/test/ui/type/type-check-defaults.stderr b/tests/ui/type/type-check-defaults.stderr similarity index 100% rename from src/test/ui/type/type-check-defaults.stderr rename to tests/ui/type/type-check-defaults.stderr diff --git a/src/test/ui/type/type-check/assignment-expected-bool.rs b/tests/ui/type/type-check/assignment-expected-bool.rs similarity index 100% rename from src/test/ui/type/type-check/assignment-expected-bool.rs rename to tests/ui/type/type-check/assignment-expected-bool.rs diff --git a/src/test/ui/type/type-check/assignment-expected-bool.stderr b/tests/ui/type/type-check/assignment-expected-bool.stderr similarity index 100% rename from src/test/ui/type/type-check/assignment-expected-bool.stderr rename to tests/ui/type/type-check/assignment-expected-bool.stderr diff --git a/src/test/ui/type/type-check/assignment-in-if.rs b/tests/ui/type/type-check/assignment-in-if.rs similarity index 100% rename from src/test/ui/type/type-check/assignment-in-if.rs rename to tests/ui/type/type-check/assignment-in-if.rs diff --git a/src/test/ui/type/type-check/assignment-in-if.stderr b/tests/ui/type/type-check/assignment-in-if.stderr similarity index 100% rename from src/test/ui/type/type-check/assignment-in-if.stderr rename to tests/ui/type/type-check/assignment-in-if.stderr diff --git a/src/test/ui/type/type-check/cannot_infer_local_or_array.rs b/tests/ui/type/type-check/cannot_infer_local_or_array.rs similarity index 100% rename from src/test/ui/type/type-check/cannot_infer_local_or_array.rs rename to tests/ui/type/type-check/cannot_infer_local_or_array.rs diff --git a/src/test/ui/type/type-check/cannot_infer_local_or_array.stderr b/tests/ui/type/type-check/cannot_infer_local_or_array.stderr similarity index 100% rename from src/test/ui/type/type-check/cannot_infer_local_or_array.stderr rename to tests/ui/type/type-check/cannot_infer_local_or_array.stderr diff --git a/src/test/ui/type/type-check/cannot_infer_local_or_vec.rs b/tests/ui/type/type-check/cannot_infer_local_or_vec.rs similarity index 100% rename from src/test/ui/type/type-check/cannot_infer_local_or_vec.rs rename to tests/ui/type/type-check/cannot_infer_local_or_vec.rs diff --git a/src/test/ui/type/type-check/cannot_infer_local_or_vec.stderr b/tests/ui/type/type-check/cannot_infer_local_or_vec.stderr similarity index 100% rename from src/test/ui/type/type-check/cannot_infer_local_or_vec.stderr rename to tests/ui/type/type-check/cannot_infer_local_or_vec.stderr diff --git a/src/test/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.rs b/tests/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.rs similarity index 100% rename from src/test/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.rs rename to tests/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.rs diff --git a/src/test/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.stderr b/tests/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.stderr similarity index 100% rename from src/test/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.stderr rename to tests/ui/type/type-check/cannot_infer_local_or_vec_in_tuples.stderr diff --git a/src/test/ui/type/type-check/issue-22897.rs b/tests/ui/type/type-check/issue-22897.rs similarity index 100% rename from src/test/ui/type/type-check/issue-22897.rs rename to tests/ui/type/type-check/issue-22897.rs diff --git a/src/test/ui/type/type-check/issue-22897.stderr b/tests/ui/type/type-check/issue-22897.stderr similarity index 100% rename from src/test/ui/type/type-check/issue-22897.stderr rename to tests/ui/type/type-check/issue-22897.stderr diff --git a/src/test/ui/type/type-check/issue-40294.rs b/tests/ui/type/type-check/issue-40294.rs similarity index 100% rename from src/test/ui/type/type-check/issue-40294.rs rename to tests/ui/type/type-check/issue-40294.rs diff --git a/src/test/ui/type/type-check/issue-40294.stderr b/tests/ui/type/type-check/issue-40294.stderr similarity index 100% rename from src/test/ui/type/type-check/issue-40294.stderr rename to tests/ui/type/type-check/issue-40294.stderr diff --git a/src/test/ui/type/type-check/issue-41314.rs b/tests/ui/type/type-check/issue-41314.rs similarity index 100% rename from src/test/ui/type/type-check/issue-41314.rs rename to tests/ui/type/type-check/issue-41314.rs diff --git a/src/test/ui/type/type-check/issue-41314.stderr b/tests/ui/type/type-check/issue-41314.stderr similarity index 100% rename from src/test/ui/type/type-check/issue-41314.stderr rename to tests/ui/type/type-check/issue-41314.stderr diff --git a/src/test/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.rs b/tests/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.rs similarity index 100% rename from src/test/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.rs rename to tests/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.rs diff --git a/src/test/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.stderr b/tests/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.stderr similarity index 100% rename from src/test/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.stderr rename to tests/ui/type/type-check/issue-67273-assignment-match-prior-arm-bool-expected-unit.stderr diff --git a/src/test/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs b/tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs similarity index 100% rename from src/test/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs rename to tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.rs diff --git a/src/test/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.stderr b/tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.stderr similarity index 100% rename from src/test/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.stderr rename to tests/ui/type/type-check/issue-88577-check-fn-with-more-than-65535-arguments.stderr diff --git a/src/test/ui/type/type-check/missing_trait_impl.rs b/tests/ui/type/type-check/missing_trait_impl.rs similarity index 100% rename from src/test/ui/type/type-check/missing_trait_impl.rs rename to tests/ui/type/type-check/missing_trait_impl.rs diff --git a/src/test/ui/type/type-check/missing_trait_impl.stderr b/tests/ui/type/type-check/missing_trait_impl.stderr similarity index 100% rename from src/test/ui/type/type-check/missing_trait_impl.stderr rename to tests/ui/type/type-check/missing_trait_impl.stderr diff --git a/src/test/ui/type/type-check/point-at-inference-2.rs b/tests/ui/type/type-check/point-at-inference-2.rs similarity index 100% rename from src/test/ui/type/type-check/point-at-inference-2.rs rename to tests/ui/type/type-check/point-at-inference-2.rs diff --git a/src/test/ui/type/type-check/point-at-inference-2.stderr b/tests/ui/type/type-check/point-at-inference-2.stderr similarity index 100% rename from src/test/ui/type/type-check/point-at-inference-2.stderr rename to tests/ui/type/type-check/point-at-inference-2.stderr diff --git a/src/test/ui/type/type-check/point-at-inference-3.fixed b/tests/ui/type/type-check/point-at-inference-3.fixed similarity index 100% rename from src/test/ui/type/type-check/point-at-inference-3.fixed rename to tests/ui/type/type-check/point-at-inference-3.fixed diff --git a/src/test/ui/type/type-check/point-at-inference-3.rs b/tests/ui/type/type-check/point-at-inference-3.rs similarity index 100% rename from src/test/ui/type/type-check/point-at-inference-3.rs rename to tests/ui/type/type-check/point-at-inference-3.rs diff --git a/src/test/ui/type/type-check/point-at-inference-3.stderr b/tests/ui/type/type-check/point-at-inference-3.stderr similarity index 100% rename from src/test/ui/type/type-check/point-at-inference-3.stderr rename to tests/ui/type/type-check/point-at-inference-3.stderr diff --git a/src/test/ui/type/type-check/point-at-inference.fixed b/tests/ui/type/type-check/point-at-inference.fixed similarity index 100% rename from src/test/ui/type/type-check/point-at-inference.fixed rename to tests/ui/type/type-check/point-at-inference.fixed diff --git a/src/test/ui/type/type-check/point-at-inference.rs b/tests/ui/type/type-check/point-at-inference.rs similarity index 100% rename from src/test/ui/type/type-check/point-at-inference.rs rename to tests/ui/type/type-check/point-at-inference.rs diff --git a/src/test/ui/type/type-check/point-at-inference.stderr b/tests/ui/type/type-check/point-at-inference.stderr similarity index 100% rename from src/test/ui/type/type-check/point-at-inference.stderr rename to tests/ui/type/type-check/point-at-inference.stderr diff --git a/src/test/ui/type/type-check/unknown_type_for_closure.rs b/tests/ui/type/type-check/unknown_type_for_closure.rs similarity index 100% rename from src/test/ui/type/type-check/unknown_type_for_closure.rs rename to tests/ui/type/type-check/unknown_type_for_closure.rs diff --git a/src/test/ui/type/type-check/unknown_type_for_closure.stderr b/tests/ui/type/type-check/unknown_type_for_closure.stderr similarity index 100% rename from src/test/ui/type/type-check/unknown_type_for_closure.stderr rename to tests/ui/type/type-check/unknown_type_for_closure.stderr diff --git a/src/test/ui/type/type-dependent-def-issue-49241.rs b/tests/ui/type/type-dependent-def-issue-49241.rs similarity index 100% rename from src/test/ui/type/type-dependent-def-issue-49241.rs rename to tests/ui/type/type-dependent-def-issue-49241.rs diff --git a/src/test/ui/type/type-dependent-def-issue-49241.stderr b/tests/ui/type/type-dependent-def-issue-49241.stderr similarity index 100% rename from src/test/ui/type/type-dependent-def-issue-49241.stderr rename to tests/ui/type/type-dependent-def-issue-49241.stderr diff --git a/src/test/ui/type/type-error-break-tail.rs b/tests/ui/type/type-error-break-tail.rs similarity index 100% rename from src/test/ui/type/type-error-break-tail.rs rename to tests/ui/type/type-error-break-tail.rs diff --git a/src/test/ui/type/type-error-break-tail.stderr b/tests/ui/type/type-error-break-tail.stderr similarity index 100% rename from src/test/ui/type/type-error-break-tail.stderr rename to tests/ui/type/type-error-break-tail.stderr diff --git a/src/test/ui/type/type-mismatch-multiple.rs b/tests/ui/type/type-mismatch-multiple.rs similarity index 100% rename from src/test/ui/type/type-mismatch-multiple.rs rename to tests/ui/type/type-mismatch-multiple.rs diff --git a/src/test/ui/type/type-mismatch-multiple.stderr b/tests/ui/type/type-mismatch-multiple.stderr similarity index 100% rename from src/test/ui/type/type-mismatch-multiple.stderr rename to tests/ui/type/type-mismatch-multiple.stderr diff --git a/src/test/ui/type/type-mismatch-same-crate-name.rs b/tests/ui/type/type-mismatch-same-crate-name.rs similarity index 100% rename from src/test/ui/type/type-mismatch-same-crate-name.rs rename to tests/ui/type/type-mismatch-same-crate-name.rs diff --git a/src/test/ui/type/type-mismatch-same-crate-name.stderr b/tests/ui/type/type-mismatch-same-crate-name.stderr similarity index 100% rename from src/test/ui/type/type-mismatch-same-crate-name.stderr rename to tests/ui/type/type-mismatch-same-crate-name.stderr diff --git a/src/test/ui/type/type-mismatch.rs b/tests/ui/type/type-mismatch.rs similarity index 100% rename from src/test/ui/type/type-mismatch.rs rename to tests/ui/type/type-mismatch.rs diff --git a/src/test/ui/type/type-mismatch.stderr b/tests/ui/type/type-mismatch.stderr similarity index 100% rename from src/test/ui/type/type-mismatch.stderr rename to tests/ui/type/type-mismatch.stderr diff --git a/src/test/ui/type/type-parameter-defaults-referencing-Self-ppaux.rs b/tests/ui/type/type-parameter-defaults-referencing-Self-ppaux.rs similarity index 100% rename from src/test/ui/type/type-parameter-defaults-referencing-Self-ppaux.rs rename to tests/ui/type/type-parameter-defaults-referencing-Self-ppaux.rs diff --git a/src/test/ui/type/type-parameter-defaults-referencing-Self-ppaux.stderr b/tests/ui/type/type-parameter-defaults-referencing-Self-ppaux.stderr similarity index 100% rename from src/test/ui/type/type-parameter-defaults-referencing-Self-ppaux.stderr rename to tests/ui/type/type-parameter-defaults-referencing-Self-ppaux.stderr diff --git a/src/test/ui/type/type-parameter-defaults-referencing-Self.rs b/tests/ui/type/type-parameter-defaults-referencing-Self.rs similarity index 100% rename from src/test/ui/type/type-parameter-defaults-referencing-Self.rs rename to tests/ui/type/type-parameter-defaults-referencing-Self.rs diff --git a/src/test/ui/type/type-parameter-defaults-referencing-Self.stderr b/tests/ui/type/type-parameter-defaults-referencing-Self.stderr similarity index 100% rename from src/test/ui/type/type-parameter-defaults-referencing-Self.stderr rename to tests/ui/type/type-parameter-defaults-referencing-Self.stderr diff --git a/src/test/ui/type/type-parameter-names.rs b/tests/ui/type/type-parameter-names.rs similarity index 100% rename from src/test/ui/type/type-parameter-names.rs rename to tests/ui/type/type-parameter-names.rs diff --git a/src/test/ui/type/type-parameter-names.stderr b/tests/ui/type/type-parameter-names.stderr similarity index 100% rename from src/test/ui/type/type-parameter-names.stderr rename to tests/ui/type/type-parameter-names.stderr diff --git a/src/test/ui/type/type-params-in-different-spaces-1.rs b/tests/ui/type/type-params-in-different-spaces-1.rs similarity index 100% rename from src/test/ui/type/type-params-in-different-spaces-1.rs rename to tests/ui/type/type-params-in-different-spaces-1.rs diff --git a/src/test/ui/type/type-params-in-different-spaces-1.stderr b/tests/ui/type/type-params-in-different-spaces-1.stderr similarity index 100% rename from src/test/ui/type/type-params-in-different-spaces-1.stderr rename to tests/ui/type/type-params-in-different-spaces-1.stderr diff --git a/src/test/ui/type/type-params-in-different-spaces-2.rs b/tests/ui/type/type-params-in-different-spaces-2.rs similarity index 100% rename from src/test/ui/type/type-params-in-different-spaces-2.rs rename to tests/ui/type/type-params-in-different-spaces-2.rs diff --git a/src/test/ui/type/type-params-in-different-spaces-2.stderr b/tests/ui/type/type-params-in-different-spaces-2.stderr similarity index 100% rename from src/test/ui/type/type-params-in-different-spaces-2.stderr rename to tests/ui/type/type-params-in-different-spaces-2.stderr diff --git a/src/test/ui/type/type-params-in-different-spaces-3.rs b/tests/ui/type/type-params-in-different-spaces-3.rs similarity index 100% rename from src/test/ui/type/type-params-in-different-spaces-3.rs rename to tests/ui/type/type-params-in-different-spaces-3.rs diff --git a/src/test/ui/type/type-params-in-different-spaces-3.stderr b/tests/ui/type/type-params-in-different-spaces-3.stderr similarity index 100% rename from src/test/ui/type/type-params-in-different-spaces-3.stderr rename to tests/ui/type/type-params-in-different-spaces-3.stderr diff --git a/src/test/ui/type/type-path-err-node-types.rs b/tests/ui/type/type-path-err-node-types.rs similarity index 100% rename from src/test/ui/type/type-path-err-node-types.rs rename to tests/ui/type/type-path-err-node-types.rs diff --git a/src/test/ui/type/type-path-err-node-types.stderr b/tests/ui/type/type-path-err-node-types.stderr similarity index 100% rename from src/test/ui/type/type-path-err-node-types.stderr rename to tests/ui/type/type-path-err-node-types.stderr diff --git a/src/test/ui/type/type-recursive-box-shadowed.rs b/tests/ui/type/type-recursive-box-shadowed.rs similarity index 100% rename from src/test/ui/type/type-recursive-box-shadowed.rs rename to tests/ui/type/type-recursive-box-shadowed.rs diff --git a/src/test/ui/type/type-recursive-box-shadowed.stderr b/tests/ui/type/type-recursive-box-shadowed.stderr similarity index 100% rename from src/test/ui/type/type-recursive-box-shadowed.stderr rename to tests/ui/type/type-recursive-box-shadowed.stderr diff --git a/src/test/ui/type/type-recursive.rs b/tests/ui/type/type-recursive.rs similarity index 100% rename from src/test/ui/type/type-recursive.rs rename to tests/ui/type/type-recursive.rs diff --git a/src/test/ui/type/type-recursive.stderr b/tests/ui/type/type-recursive.stderr similarity index 100% rename from src/test/ui/type/type-recursive.stderr rename to tests/ui/type/type-recursive.stderr diff --git a/src/test/ui/type/type-shadow.rs b/tests/ui/type/type-shadow.rs similarity index 100% rename from src/test/ui/type/type-shadow.rs rename to tests/ui/type/type-shadow.rs diff --git a/src/test/ui/type/type-shadow.stderr b/tests/ui/type/type-shadow.stderr similarity index 100% rename from src/test/ui/type/type-shadow.stderr rename to tests/ui/type/type-shadow.stderr diff --git a/src/test/ui/type/type-unsatisfiable.rs b/tests/ui/type/type-unsatisfiable.rs similarity index 100% rename from src/test/ui/type/type-unsatisfiable.rs rename to tests/ui/type/type-unsatisfiable.rs diff --git a/src/test/ui/type/type-unsatisfiable.usage.stderr b/tests/ui/type/type-unsatisfiable.usage.stderr similarity index 100% rename from src/test/ui/type/type-unsatisfiable.usage.stderr rename to tests/ui/type/type-unsatisfiable.usage.stderr diff --git a/src/test/ui/type_length_limit.polonius.stderr b/tests/ui/type_length_limit.polonius.stderr similarity index 100% rename from src/test/ui/type_length_limit.polonius.stderr rename to tests/ui/type_length_limit.polonius.stderr diff --git a/src/test/ui/type_length_limit.rs b/tests/ui/type_length_limit.rs similarity index 100% rename from src/test/ui/type_length_limit.rs rename to tests/ui/type_length_limit.rs diff --git a/src/test/ui/type_length_limit.stderr b/tests/ui/type_length_limit.stderr similarity index 100% rename from src/test/ui/type_length_limit.stderr rename to tests/ui/type_length_limit.stderr diff --git a/src/test/ui/typeck/assign-non-lval-derefmut.fixed b/tests/ui/typeck/assign-non-lval-derefmut.fixed similarity index 100% rename from src/test/ui/typeck/assign-non-lval-derefmut.fixed rename to tests/ui/typeck/assign-non-lval-derefmut.fixed diff --git a/src/test/ui/typeck/assign-non-lval-derefmut.rs b/tests/ui/typeck/assign-non-lval-derefmut.rs similarity index 100% rename from src/test/ui/typeck/assign-non-lval-derefmut.rs rename to tests/ui/typeck/assign-non-lval-derefmut.rs diff --git a/src/test/ui/typeck/assign-non-lval-derefmut.stderr b/tests/ui/typeck/assign-non-lval-derefmut.stderr similarity index 100% rename from src/test/ui/typeck/assign-non-lval-derefmut.stderr rename to tests/ui/typeck/assign-non-lval-derefmut.stderr diff --git a/src/test/ui/typeck/assign-non-lval-mut-ref.fixed b/tests/ui/typeck/assign-non-lval-mut-ref.fixed similarity index 100% rename from src/test/ui/typeck/assign-non-lval-mut-ref.fixed rename to tests/ui/typeck/assign-non-lval-mut-ref.fixed diff --git a/src/test/ui/typeck/assign-non-lval-mut-ref.rs b/tests/ui/typeck/assign-non-lval-mut-ref.rs similarity index 100% rename from src/test/ui/typeck/assign-non-lval-mut-ref.rs rename to tests/ui/typeck/assign-non-lval-mut-ref.rs diff --git a/src/test/ui/typeck/assign-non-lval-mut-ref.stderr b/tests/ui/typeck/assign-non-lval-mut-ref.stderr similarity index 100% rename from src/test/ui/typeck/assign-non-lval-mut-ref.stderr rename to tests/ui/typeck/assign-non-lval-mut-ref.stderr diff --git a/src/test/ui/typeck/assign-non-lval-needs-deref.rs b/tests/ui/typeck/assign-non-lval-needs-deref.rs similarity index 100% rename from src/test/ui/typeck/assign-non-lval-needs-deref.rs rename to tests/ui/typeck/assign-non-lval-needs-deref.rs diff --git a/src/test/ui/typeck/assign-non-lval-needs-deref.stderr b/tests/ui/typeck/assign-non-lval-needs-deref.stderr similarity index 100% rename from src/test/ui/typeck/assign-non-lval-needs-deref.stderr rename to tests/ui/typeck/assign-non-lval-needs-deref.stderr diff --git a/src/test/ui/typeck/autoderef-with-param-env-error.rs b/tests/ui/typeck/autoderef-with-param-env-error.rs similarity index 100% rename from src/test/ui/typeck/autoderef-with-param-env-error.rs rename to tests/ui/typeck/autoderef-with-param-env-error.rs diff --git a/src/test/ui/typeck/autoderef-with-param-env-error.stderr b/tests/ui/typeck/autoderef-with-param-env-error.stderr similarity index 100% rename from src/test/ui/typeck/autoderef-with-param-env-error.stderr rename to tests/ui/typeck/autoderef-with-param-env-error.stderr diff --git a/src/test/ui/typeck/auxiliary/issue-36708.rs b/tests/ui/typeck/auxiliary/issue-36708.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/issue-36708.rs rename to tests/ui/typeck/auxiliary/issue-36708.rs diff --git a/src/test/ui/typeck/auxiliary/issue-81943-lib.rs b/tests/ui/typeck/auxiliary/issue-81943-lib.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/issue-81943-lib.rs rename to tests/ui/typeck/auxiliary/issue-81943-lib.rs diff --git a/src/test/ui/typeck/auxiliary/tdticc_coherence_lib.rs b/tests/ui/typeck/auxiliary/tdticc_coherence_lib.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/tdticc_coherence_lib.rs rename to tests/ui/typeck/auxiliary/tdticc_coherence_lib.rs diff --git a/src/test/ui/typeck/auxiliary/xcrate-issue-43189-a.rs b/tests/ui/typeck/auxiliary/xcrate-issue-43189-a.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/xcrate-issue-43189-a.rs rename to tests/ui/typeck/auxiliary/xcrate-issue-43189-a.rs diff --git a/src/test/ui/typeck/auxiliary/xcrate-issue-43189-b.rs b/tests/ui/typeck/auxiliary/xcrate-issue-43189-b.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/xcrate-issue-43189-b.rs rename to tests/ui/typeck/auxiliary/xcrate-issue-43189-b.rs diff --git a/src/test/ui/typeck/auxiliary/xcrate-issue-46112-rexport-core.rs b/tests/ui/typeck/auxiliary/xcrate-issue-46112-rexport-core.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/xcrate-issue-46112-rexport-core.rs rename to tests/ui/typeck/auxiliary/xcrate-issue-46112-rexport-core.rs diff --git a/src/test/ui/typeck/auxiliary/xcrate-issue-61711-b.rs b/tests/ui/typeck/auxiliary/xcrate-issue-61711-b.rs similarity index 100% rename from src/test/ui/typeck/auxiliary/xcrate-issue-61711-b.rs rename to tests/ui/typeck/auxiliary/xcrate-issue-61711-b.rs diff --git a/src/test/ui/typeck/call-block.rs b/tests/ui/typeck/call-block.rs similarity index 100% rename from src/test/ui/typeck/call-block.rs rename to tests/ui/typeck/call-block.rs diff --git a/src/test/ui/typeck/call-block.stderr b/tests/ui/typeck/call-block.stderr similarity index 100% rename from src/test/ui/typeck/call-block.stderr rename to tests/ui/typeck/call-block.stderr diff --git a/src/test/ui/typeck/check-args-on-fn-err-2.rs b/tests/ui/typeck/check-args-on-fn-err-2.rs similarity index 100% rename from src/test/ui/typeck/check-args-on-fn-err-2.rs rename to tests/ui/typeck/check-args-on-fn-err-2.rs diff --git a/src/test/ui/typeck/check-args-on-fn-err-2.stderr b/tests/ui/typeck/check-args-on-fn-err-2.stderr similarity index 100% rename from src/test/ui/typeck/check-args-on-fn-err-2.stderr rename to tests/ui/typeck/check-args-on-fn-err-2.stderr diff --git a/src/test/ui/typeck/check-args-on-fn-err.rs b/tests/ui/typeck/check-args-on-fn-err.rs similarity index 100% rename from src/test/ui/typeck/check-args-on-fn-err.rs rename to tests/ui/typeck/check-args-on-fn-err.rs diff --git a/src/test/ui/typeck/check-args-on-fn-err.stderr b/tests/ui/typeck/check-args-on-fn-err.stderr similarity index 100% rename from src/test/ui/typeck/check-args-on-fn-err.stderr rename to tests/ui/typeck/check-args-on-fn-err.stderr diff --git a/src/test/ui/typeck/conversion-methods.rs b/tests/ui/typeck/conversion-methods.rs similarity index 100% rename from src/test/ui/typeck/conversion-methods.rs rename to tests/ui/typeck/conversion-methods.rs diff --git a/src/test/ui/typeck/conversion-methods.stderr b/tests/ui/typeck/conversion-methods.stderr similarity index 100% rename from src/test/ui/typeck/conversion-methods.stderr rename to tests/ui/typeck/conversion-methods.stderr diff --git a/src/test/ui/typeck/deref-multi.rs b/tests/ui/typeck/deref-multi.rs similarity index 100% rename from src/test/ui/typeck/deref-multi.rs rename to tests/ui/typeck/deref-multi.rs diff --git a/src/test/ui/typeck/deref-multi.stderr b/tests/ui/typeck/deref-multi.stderr similarity index 100% rename from src/test/ui/typeck/deref-multi.stderr rename to tests/ui/typeck/deref-multi.stderr diff --git a/src/test/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.rs b/tests/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.rs similarity index 100% rename from src/test/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.rs rename to tests/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.rs diff --git a/src/test/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.stderr b/tests/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.stderr similarity index 100% rename from src/test/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.stderr rename to tests/ui/typeck/do-not-suggest-adding-missing-zero-to-floating-point-number.stderr diff --git a/src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs b/tests/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs similarity index 100% rename from src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs rename to tests/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.rs diff --git a/src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.stderr b/tests/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.stderr similarity index 100% rename from src/test/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.stderr rename to tests/ui/typeck/do-not-suggest-placeholder-to-const-static-without-type.stderr diff --git a/src/test/ui/typeck/explain_clone_autoref.rs b/tests/ui/typeck/explain_clone_autoref.rs similarity index 100% rename from src/test/ui/typeck/explain_clone_autoref.rs rename to tests/ui/typeck/explain_clone_autoref.rs diff --git a/src/test/ui/typeck/explain_clone_autoref.stderr b/tests/ui/typeck/explain_clone_autoref.stderr similarity index 100% rename from src/test/ui/typeck/explain_clone_autoref.stderr rename to tests/ui/typeck/explain_clone_autoref.stderr diff --git a/src/test/ui/typeck/issue-100164.fixed b/tests/ui/typeck/issue-100164.fixed similarity index 100% rename from src/test/ui/typeck/issue-100164.fixed rename to tests/ui/typeck/issue-100164.fixed diff --git a/src/test/ui/typeck/issue-100164.rs b/tests/ui/typeck/issue-100164.rs similarity index 100% rename from src/test/ui/typeck/issue-100164.rs rename to tests/ui/typeck/issue-100164.rs diff --git a/src/test/ui/typeck/issue-100164.stderr b/tests/ui/typeck/issue-100164.stderr similarity index 100% rename from src/test/ui/typeck/issue-100164.stderr rename to tests/ui/typeck/issue-100164.stderr diff --git a/src/test/ui/typeck/issue-100246.rs b/tests/ui/typeck/issue-100246.rs similarity index 100% rename from src/test/ui/typeck/issue-100246.rs rename to tests/ui/typeck/issue-100246.rs diff --git a/src/test/ui/typeck/issue-100246.stderr b/tests/ui/typeck/issue-100246.stderr similarity index 100% rename from src/test/ui/typeck/issue-100246.stderr rename to tests/ui/typeck/issue-100246.stderr diff --git a/src/test/ui/typeck/issue-100285.rs b/tests/ui/typeck/issue-100285.rs similarity index 100% rename from src/test/ui/typeck/issue-100285.rs rename to tests/ui/typeck/issue-100285.rs diff --git a/src/test/ui/typeck/issue-100285.stderr b/tests/ui/typeck/issue-100285.stderr similarity index 100% rename from src/test/ui/typeck/issue-100285.stderr rename to tests/ui/typeck/issue-100285.stderr diff --git a/src/test/ui/typeck/issue-103899.rs b/tests/ui/typeck/issue-103899.rs similarity index 100% rename from src/test/ui/typeck/issue-103899.rs rename to tests/ui/typeck/issue-103899.rs diff --git a/src/test/ui/typeck/issue-10401.rs b/tests/ui/typeck/issue-10401.rs similarity index 100% rename from src/test/ui/typeck/issue-10401.rs rename to tests/ui/typeck/issue-10401.rs diff --git a/src/test/ui/typeck/issue-10401.stderr b/tests/ui/typeck/issue-10401.stderr similarity index 100% rename from src/test/ui/typeck/issue-10401.stderr rename to tests/ui/typeck/issue-10401.stderr diff --git a/src/test/ui/typeck/issue-104510-ice.rs b/tests/ui/typeck/issue-104510-ice.rs similarity index 100% rename from src/test/ui/typeck/issue-104510-ice.rs rename to tests/ui/typeck/issue-104510-ice.rs diff --git a/src/test/ui/typeck/issue-104510-ice.stderr b/tests/ui/typeck/issue-104510-ice.stderr similarity index 100% rename from src/test/ui/typeck/issue-104510-ice.stderr rename to tests/ui/typeck/issue-104510-ice.stderr diff --git a/src/test/ui/typeck/issue-104513-ice.rs b/tests/ui/typeck/issue-104513-ice.rs similarity index 100% rename from src/test/ui/typeck/issue-104513-ice.rs rename to tests/ui/typeck/issue-104513-ice.rs diff --git a/src/test/ui/typeck/issue-104513-ice.stderr b/tests/ui/typeck/issue-104513-ice.stderr similarity index 100% rename from src/test/ui/typeck/issue-104513-ice.stderr rename to tests/ui/typeck/issue-104513-ice.stderr diff --git a/src/test/ui/typeck/issue-104582.rs b/tests/ui/typeck/issue-104582.rs similarity index 100% rename from src/test/ui/typeck/issue-104582.rs rename to tests/ui/typeck/issue-104582.rs diff --git a/src/test/ui/typeck/issue-104582.stderr b/tests/ui/typeck/issue-104582.stderr similarity index 100% rename from src/test/ui/typeck/issue-104582.stderr rename to tests/ui/typeck/issue-104582.stderr diff --git a/src/test/ui/typeck/issue-105946.rs b/tests/ui/typeck/issue-105946.rs similarity index 100% rename from src/test/ui/typeck/issue-105946.rs rename to tests/ui/typeck/issue-105946.rs diff --git a/src/test/ui/typeck/issue-105946.stderr b/tests/ui/typeck/issue-105946.stderr similarity index 100% rename from src/test/ui/typeck/issue-105946.stderr rename to tests/ui/typeck/issue-105946.stderr diff --git a/src/test/ui/typeck/issue-10969.rs b/tests/ui/typeck/issue-10969.rs similarity index 100% rename from src/test/ui/typeck/issue-10969.rs rename to tests/ui/typeck/issue-10969.rs diff --git a/src/test/ui/typeck/issue-10969.stderr b/tests/ui/typeck/issue-10969.stderr similarity index 100% rename from src/test/ui/typeck/issue-10969.stderr rename to tests/ui/typeck/issue-10969.stderr diff --git a/src/test/ui/typeck/issue-13853-2.rs b/tests/ui/typeck/issue-13853-2.rs similarity index 100% rename from src/test/ui/typeck/issue-13853-2.rs rename to tests/ui/typeck/issue-13853-2.rs diff --git a/src/test/ui/typeck/issue-13853-2.stderr b/tests/ui/typeck/issue-13853-2.stderr similarity index 100% rename from src/test/ui/typeck/issue-13853-2.stderr rename to tests/ui/typeck/issue-13853-2.stderr diff --git a/src/test/ui/typeck/issue-13853-5.rs b/tests/ui/typeck/issue-13853-5.rs similarity index 100% rename from src/test/ui/typeck/issue-13853-5.rs rename to tests/ui/typeck/issue-13853-5.rs diff --git a/src/test/ui/typeck/issue-13853-5.stderr b/tests/ui/typeck/issue-13853-5.stderr similarity index 100% rename from src/test/ui/typeck/issue-13853-5.stderr rename to tests/ui/typeck/issue-13853-5.stderr diff --git a/src/test/ui/typeck/issue-13853.rs b/tests/ui/typeck/issue-13853.rs similarity index 100% rename from src/test/ui/typeck/issue-13853.rs rename to tests/ui/typeck/issue-13853.rs diff --git a/src/test/ui/typeck/issue-13853.stderr b/tests/ui/typeck/issue-13853.stderr similarity index 100% rename from src/test/ui/typeck/issue-13853.stderr rename to tests/ui/typeck/issue-13853.stderr diff --git a/src/test/ui/typeck/issue-18937-1.rs b/tests/ui/typeck/issue-18937-1.rs similarity index 100% rename from src/test/ui/typeck/issue-18937-1.rs rename to tests/ui/typeck/issue-18937-1.rs diff --git a/src/test/ui/typeck/issue-18937.rs b/tests/ui/typeck/issue-18937.rs similarity index 100% rename from src/test/ui/typeck/issue-18937.rs rename to tests/ui/typeck/issue-18937.rs diff --git a/src/test/ui/typeck/issue-18937.stderr b/tests/ui/typeck/issue-18937.stderr similarity index 100% rename from src/test/ui/typeck/issue-18937.stderr rename to tests/ui/typeck/issue-18937.stderr diff --git a/src/test/ui/typeck/issue-22375.rs b/tests/ui/typeck/issue-22375.rs similarity index 100% rename from src/test/ui/typeck/issue-22375.rs rename to tests/ui/typeck/issue-22375.rs diff --git a/src/test/ui/typeck/issue-29124.rs b/tests/ui/typeck/issue-29124.rs similarity index 100% rename from src/test/ui/typeck/issue-29124.rs rename to tests/ui/typeck/issue-29124.rs diff --git a/src/test/ui/typeck/issue-29124.stderr b/tests/ui/typeck/issue-29124.stderr similarity index 100% rename from src/test/ui/typeck/issue-29124.stderr rename to tests/ui/typeck/issue-29124.stderr diff --git a/src/test/ui/typeck/issue-31173.rs b/tests/ui/typeck/issue-31173.rs similarity index 100% rename from src/test/ui/typeck/issue-31173.rs rename to tests/ui/typeck/issue-31173.rs diff --git a/src/test/ui/typeck/issue-31173.stderr b/tests/ui/typeck/issue-31173.stderr similarity index 100% rename from src/test/ui/typeck/issue-31173.stderr rename to tests/ui/typeck/issue-31173.stderr diff --git a/src/test/ui/typeck/issue-33575.rs b/tests/ui/typeck/issue-33575.rs similarity index 100% rename from src/test/ui/typeck/issue-33575.rs rename to tests/ui/typeck/issue-33575.rs diff --git a/src/test/ui/typeck/issue-33575.stderr b/tests/ui/typeck/issue-33575.stderr similarity index 100% rename from src/test/ui/typeck/issue-33575.stderr rename to tests/ui/typeck/issue-33575.stderr diff --git a/src/test/ui/typeck/issue-36708.rs b/tests/ui/typeck/issue-36708.rs similarity index 100% rename from src/test/ui/typeck/issue-36708.rs rename to tests/ui/typeck/issue-36708.rs diff --git a/src/test/ui/typeck/issue-36708.stderr b/tests/ui/typeck/issue-36708.stderr similarity index 100% rename from src/test/ui/typeck/issue-36708.stderr rename to tests/ui/typeck/issue-36708.stderr diff --git a/src/test/ui/typeck/issue-43189.rs b/tests/ui/typeck/issue-43189.rs similarity index 100% rename from src/test/ui/typeck/issue-43189.rs rename to tests/ui/typeck/issue-43189.rs diff --git a/src/test/ui/typeck/issue-43189.stderr b/tests/ui/typeck/issue-43189.stderr similarity index 100% rename from src/test/ui/typeck/issue-43189.stderr rename to tests/ui/typeck/issue-43189.stderr diff --git a/src/test/ui/typeck/issue-46112.rs b/tests/ui/typeck/issue-46112.rs similarity index 100% rename from src/test/ui/typeck/issue-46112.rs rename to tests/ui/typeck/issue-46112.rs diff --git a/src/test/ui/typeck/issue-46112.stderr b/tests/ui/typeck/issue-46112.stderr similarity index 100% rename from src/test/ui/typeck/issue-46112.stderr rename to tests/ui/typeck/issue-46112.stderr diff --git a/src/test/ui/typeck/issue-50687-ice-on-borrow.rs b/tests/ui/typeck/issue-50687-ice-on-borrow.rs similarity index 100% rename from src/test/ui/typeck/issue-50687-ice-on-borrow.rs rename to tests/ui/typeck/issue-50687-ice-on-borrow.rs diff --git a/src/test/ui/typeck/issue-50687-ice-on-borrow.stderr b/tests/ui/typeck/issue-50687-ice-on-borrow.stderr similarity index 100% rename from src/test/ui/typeck/issue-50687-ice-on-borrow.stderr rename to tests/ui/typeck/issue-50687-ice-on-borrow.stderr diff --git a/src/test/ui/typeck/issue-52082-type-param-shadows-existing-type.rs b/tests/ui/typeck/issue-52082-type-param-shadows-existing-type.rs similarity index 100% rename from src/test/ui/typeck/issue-52082-type-param-shadows-existing-type.rs rename to tests/ui/typeck/issue-52082-type-param-shadows-existing-type.rs diff --git a/src/test/ui/typeck/issue-52082-type-param-shadows-existing-type.stderr b/tests/ui/typeck/issue-52082-type-param-shadows-existing-type.stderr similarity index 100% rename from src/test/ui/typeck/issue-52082-type-param-shadows-existing-type.stderr rename to tests/ui/typeck/issue-52082-type-param-shadows-existing-type.stderr diff --git a/src/test/ui/typeck/issue-55810-must-typeck-match-pats-before-guards.rs b/tests/ui/typeck/issue-55810-must-typeck-match-pats-before-guards.rs similarity index 100% rename from src/test/ui/typeck/issue-55810-must-typeck-match-pats-before-guards.rs rename to tests/ui/typeck/issue-55810-must-typeck-match-pats-before-guards.rs diff --git a/src/test/ui/typeck/issue-57404.rs b/tests/ui/typeck/issue-57404.rs similarity index 100% rename from src/test/ui/typeck/issue-57404.rs rename to tests/ui/typeck/issue-57404.rs diff --git a/src/test/ui/typeck/issue-57404.stderr b/tests/ui/typeck/issue-57404.stderr similarity index 100% rename from src/test/ui/typeck/issue-57404.stderr rename to tests/ui/typeck/issue-57404.stderr diff --git a/src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.rs b/tests/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.rs similarity index 100% rename from src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.rs rename to tests/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.rs diff --git a/src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr b/tests/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr similarity index 100% rename from src/test/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr rename to tests/ui/typeck/issue-57673-ice-on-deref-of-boxed-trait.stderr diff --git a/src/test/ui/typeck/issue-61711-once-caused-rustc-inf-loop.rs b/tests/ui/typeck/issue-61711-once-caused-rustc-inf-loop.rs similarity index 100% rename from src/test/ui/typeck/issue-61711-once-caused-rustc-inf-loop.rs rename to tests/ui/typeck/issue-61711-once-caused-rustc-inf-loop.rs diff --git a/src/test/ui/typeck/issue-65611.rs b/tests/ui/typeck/issue-65611.rs similarity index 100% rename from src/test/ui/typeck/issue-65611.rs rename to tests/ui/typeck/issue-65611.rs diff --git a/src/test/ui/typeck/issue-65611.stderr b/tests/ui/typeck/issue-65611.stderr similarity index 100% rename from src/test/ui/typeck/issue-65611.stderr rename to tests/ui/typeck/issue-65611.stderr diff --git a/src/test/ui/typeck/issue-67971.rs b/tests/ui/typeck/issue-67971.rs similarity index 100% rename from src/test/ui/typeck/issue-67971.rs rename to tests/ui/typeck/issue-67971.rs diff --git a/src/test/ui/typeck/issue-67971.stderr b/tests/ui/typeck/issue-67971.stderr similarity index 100% rename from src/test/ui/typeck/issue-67971.stderr rename to tests/ui/typeck/issue-67971.stderr diff --git a/src/test/ui/typeck/issue-68590-reborrow-through-derefmut.rs b/tests/ui/typeck/issue-68590-reborrow-through-derefmut.rs similarity index 100% rename from src/test/ui/typeck/issue-68590-reborrow-through-derefmut.rs rename to tests/ui/typeck/issue-68590-reborrow-through-derefmut.rs diff --git a/src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs b/tests/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs similarity index 100% rename from src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs rename to tests/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs diff --git a/src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.stderr b/tests/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.stderr similarity index 100% rename from src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.stderr rename to tests/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.stderr diff --git a/src/test/ui/typeck/issue-72225-call-fnmut-through-derefmut.rs b/tests/ui/typeck/issue-72225-call-fnmut-through-derefmut.rs similarity index 100% rename from src/test/ui/typeck/issue-72225-call-fnmut-through-derefmut.rs rename to tests/ui/typeck/issue-72225-call-fnmut-through-derefmut.rs diff --git a/src/test/ui/typeck/issue-73592-borrow_mut-through-deref.fixed b/tests/ui/typeck/issue-73592-borrow_mut-through-deref.fixed similarity index 100% rename from src/test/ui/typeck/issue-73592-borrow_mut-through-deref.fixed rename to tests/ui/typeck/issue-73592-borrow_mut-through-deref.fixed diff --git a/src/test/ui/typeck/issue-73592-borrow_mut-through-deref.rs b/tests/ui/typeck/issue-73592-borrow_mut-through-deref.rs similarity index 100% rename from src/test/ui/typeck/issue-73592-borrow_mut-through-deref.rs rename to tests/ui/typeck/issue-73592-borrow_mut-through-deref.rs diff --git a/src/test/ui/typeck/issue-73592-borrow_mut-through-deref.stderr b/tests/ui/typeck/issue-73592-borrow_mut-through-deref.stderr similarity index 100% rename from src/test/ui/typeck/issue-73592-borrow_mut-through-deref.stderr rename to tests/ui/typeck/issue-73592-borrow_mut-through-deref.stderr diff --git a/src/test/ui/typeck/issue-74086.rs b/tests/ui/typeck/issue-74086.rs similarity index 100% rename from src/test/ui/typeck/issue-74086.rs rename to tests/ui/typeck/issue-74086.rs diff --git a/src/test/ui/typeck/issue-74086.stderr b/tests/ui/typeck/issue-74086.stderr similarity index 100% rename from src/test/ui/typeck/issue-74086.stderr rename to tests/ui/typeck/issue-74086.stderr diff --git a/src/test/ui/typeck/issue-74933.rs b/tests/ui/typeck/issue-74933.rs similarity index 100% rename from src/test/ui/typeck/issue-74933.rs rename to tests/ui/typeck/issue-74933.rs diff --git a/src/test/ui/typeck/issue-75883.rs b/tests/ui/typeck/issue-75883.rs similarity index 100% rename from src/test/ui/typeck/issue-75883.rs rename to tests/ui/typeck/issue-75883.rs diff --git a/src/test/ui/typeck/issue-75883.stderr b/tests/ui/typeck/issue-75883.stderr similarity index 100% rename from src/test/ui/typeck/issue-75883.stderr rename to tests/ui/typeck/issue-75883.stderr diff --git a/src/test/ui/typeck/issue-75889.rs b/tests/ui/typeck/issue-75889.rs similarity index 100% rename from src/test/ui/typeck/issue-75889.rs rename to tests/ui/typeck/issue-75889.rs diff --git a/src/test/ui/typeck/issue-75889.stderr b/tests/ui/typeck/issue-75889.stderr similarity index 100% rename from src/test/ui/typeck/issue-75889.stderr rename to tests/ui/typeck/issue-75889.stderr diff --git a/src/test/ui/typeck/issue-79040.rs b/tests/ui/typeck/issue-79040.rs similarity index 100% rename from src/test/ui/typeck/issue-79040.rs rename to tests/ui/typeck/issue-79040.rs diff --git a/src/test/ui/typeck/issue-79040.stderr b/tests/ui/typeck/issue-79040.stderr similarity index 100% rename from src/test/ui/typeck/issue-79040.stderr rename to tests/ui/typeck/issue-79040.stderr diff --git a/src/test/ui/typeck/issue-80207-unsized-return.rs b/tests/ui/typeck/issue-80207-unsized-return.rs similarity index 100% rename from src/test/ui/typeck/issue-80207-unsized-return.rs rename to tests/ui/typeck/issue-80207-unsized-return.rs diff --git a/src/test/ui/typeck/issue-80779.rs b/tests/ui/typeck/issue-80779.rs similarity index 100% rename from src/test/ui/typeck/issue-80779.rs rename to tests/ui/typeck/issue-80779.rs diff --git a/src/test/ui/typeck/issue-80779.stderr b/tests/ui/typeck/issue-80779.stderr similarity index 100% rename from src/test/ui/typeck/issue-80779.stderr rename to tests/ui/typeck/issue-80779.stderr diff --git a/src/test/ui/typeck/issue-81293.rs b/tests/ui/typeck/issue-81293.rs similarity index 100% rename from src/test/ui/typeck/issue-81293.rs rename to tests/ui/typeck/issue-81293.rs diff --git a/src/test/ui/typeck/issue-81293.stderr b/tests/ui/typeck/issue-81293.stderr similarity index 100% rename from src/test/ui/typeck/issue-81293.stderr rename to tests/ui/typeck/issue-81293.stderr diff --git a/src/test/ui/typeck/issue-81885.rs b/tests/ui/typeck/issue-81885.rs similarity index 100% rename from src/test/ui/typeck/issue-81885.rs rename to tests/ui/typeck/issue-81885.rs diff --git a/src/test/ui/typeck/issue-81885.stderr b/tests/ui/typeck/issue-81885.stderr similarity index 100% rename from src/test/ui/typeck/issue-81885.stderr rename to tests/ui/typeck/issue-81885.stderr diff --git a/src/test/ui/typeck/issue-81943.rs b/tests/ui/typeck/issue-81943.rs similarity index 100% rename from src/test/ui/typeck/issue-81943.rs rename to tests/ui/typeck/issue-81943.rs diff --git a/src/test/ui/typeck/issue-81943.stderr b/tests/ui/typeck/issue-81943.stderr similarity index 100% rename from src/test/ui/typeck/issue-81943.stderr rename to tests/ui/typeck/issue-81943.stderr diff --git a/src/test/ui/typeck/issue-82772.rs b/tests/ui/typeck/issue-82772.rs similarity index 100% rename from src/test/ui/typeck/issue-82772.rs rename to tests/ui/typeck/issue-82772.rs diff --git a/src/test/ui/typeck/issue-82772.stderr b/tests/ui/typeck/issue-82772.stderr similarity index 100% rename from src/test/ui/typeck/issue-82772.stderr rename to tests/ui/typeck/issue-82772.stderr diff --git a/src/test/ui/typeck/issue-83621-placeholder-static-in-extern.rs b/tests/ui/typeck/issue-83621-placeholder-static-in-extern.rs similarity index 100% rename from src/test/ui/typeck/issue-83621-placeholder-static-in-extern.rs rename to tests/ui/typeck/issue-83621-placeholder-static-in-extern.rs diff --git a/src/test/ui/typeck/issue-83621-placeholder-static-in-extern.stderr b/tests/ui/typeck/issue-83621-placeholder-static-in-extern.stderr similarity index 100% rename from src/test/ui/typeck/issue-83621-placeholder-static-in-extern.stderr rename to tests/ui/typeck/issue-83621-placeholder-static-in-extern.stderr diff --git a/src/test/ui/typeck/issue-83693.rs b/tests/ui/typeck/issue-83693.rs similarity index 100% rename from src/test/ui/typeck/issue-83693.rs rename to tests/ui/typeck/issue-83693.rs diff --git a/src/test/ui/typeck/issue-83693.stderr b/tests/ui/typeck/issue-83693.stderr similarity index 100% rename from src/test/ui/typeck/issue-83693.stderr rename to tests/ui/typeck/issue-83693.stderr diff --git a/src/test/ui/typeck/issue-84160.rs b/tests/ui/typeck/issue-84160.rs similarity index 100% rename from src/test/ui/typeck/issue-84160.rs rename to tests/ui/typeck/issue-84160.rs diff --git a/src/test/ui/typeck/issue-84160.stderr b/tests/ui/typeck/issue-84160.stderr similarity index 100% rename from src/test/ui/typeck/issue-84160.stderr rename to tests/ui/typeck/issue-84160.stderr diff --git a/src/test/ui/typeck/issue-84768.rs b/tests/ui/typeck/issue-84768.rs similarity index 100% rename from src/test/ui/typeck/issue-84768.rs rename to tests/ui/typeck/issue-84768.rs diff --git a/src/test/ui/typeck/issue-84768.stderr b/tests/ui/typeck/issue-84768.stderr similarity index 100% rename from src/test/ui/typeck/issue-84768.stderr rename to tests/ui/typeck/issue-84768.stderr diff --git a/src/test/ui/typeck/issue-84831.rs b/tests/ui/typeck/issue-84831.rs similarity index 100% rename from src/test/ui/typeck/issue-84831.rs rename to tests/ui/typeck/issue-84831.rs diff --git a/src/test/ui/typeck/issue-84831.stderr b/tests/ui/typeck/issue-84831.stderr similarity index 100% rename from src/test/ui/typeck/issue-84831.stderr rename to tests/ui/typeck/issue-84831.stderr diff --git a/src/test/ui/typeck/issue-86721-return-expr-ice.rev1.stderr b/tests/ui/typeck/issue-86721-return-expr-ice.rev1.stderr similarity index 100% rename from src/test/ui/typeck/issue-86721-return-expr-ice.rev1.stderr rename to tests/ui/typeck/issue-86721-return-expr-ice.rev1.stderr diff --git a/src/test/ui/typeck/issue-86721-return-expr-ice.rev2.stderr b/tests/ui/typeck/issue-86721-return-expr-ice.rev2.stderr similarity index 100% rename from src/test/ui/typeck/issue-86721-return-expr-ice.rev2.stderr rename to tests/ui/typeck/issue-86721-return-expr-ice.rev2.stderr diff --git a/src/test/ui/typeck/issue-86721-return-expr-ice.rs b/tests/ui/typeck/issue-86721-return-expr-ice.rs similarity index 100% rename from src/test/ui/typeck/issue-86721-return-expr-ice.rs rename to tests/ui/typeck/issue-86721-return-expr-ice.rs diff --git a/src/test/ui/typeck/issue-87181/empty-tuple-method.rs b/tests/ui/typeck/issue-87181/empty-tuple-method.rs similarity index 100% rename from src/test/ui/typeck/issue-87181/empty-tuple-method.rs rename to tests/ui/typeck/issue-87181/empty-tuple-method.rs diff --git a/src/test/ui/typeck/issue-87181/empty-tuple-method.stderr b/tests/ui/typeck/issue-87181/empty-tuple-method.stderr similarity index 100% rename from src/test/ui/typeck/issue-87181/empty-tuple-method.stderr rename to tests/ui/typeck/issue-87181/empty-tuple-method.stderr diff --git a/src/test/ui/typeck/issue-87181/enum-variant.rs b/tests/ui/typeck/issue-87181/enum-variant.rs similarity index 100% rename from src/test/ui/typeck/issue-87181/enum-variant.rs rename to tests/ui/typeck/issue-87181/enum-variant.rs diff --git a/src/test/ui/typeck/issue-87181/enum-variant.stderr b/tests/ui/typeck/issue-87181/enum-variant.stderr similarity index 100% rename from src/test/ui/typeck/issue-87181/enum-variant.stderr rename to tests/ui/typeck/issue-87181/enum-variant.stderr diff --git a/src/test/ui/typeck/issue-87181/tuple-field.rs b/tests/ui/typeck/issue-87181/tuple-field.rs similarity index 100% rename from src/test/ui/typeck/issue-87181/tuple-field.rs rename to tests/ui/typeck/issue-87181/tuple-field.rs diff --git a/src/test/ui/typeck/issue-87181/tuple-field.stderr b/tests/ui/typeck/issue-87181/tuple-field.stderr similarity index 100% rename from src/test/ui/typeck/issue-87181/tuple-field.stderr rename to tests/ui/typeck/issue-87181/tuple-field.stderr diff --git a/src/test/ui/typeck/issue-87181/tuple-method.rs b/tests/ui/typeck/issue-87181/tuple-method.rs similarity index 100% rename from src/test/ui/typeck/issue-87181/tuple-method.rs rename to tests/ui/typeck/issue-87181/tuple-method.rs diff --git a/src/test/ui/typeck/issue-87181/tuple-method.stderr b/tests/ui/typeck/issue-87181/tuple-method.stderr similarity index 100% rename from src/test/ui/typeck/issue-87181/tuple-method.stderr rename to tests/ui/typeck/issue-87181/tuple-method.stderr diff --git a/src/test/ui/typeck/issue-87771-ice-assign-assign-to-bool.rs b/tests/ui/typeck/issue-87771-ice-assign-assign-to-bool.rs similarity index 100% rename from src/test/ui/typeck/issue-87771-ice-assign-assign-to-bool.rs rename to tests/ui/typeck/issue-87771-ice-assign-assign-to-bool.rs diff --git a/src/test/ui/typeck/issue-87771-ice-assign-assign-to-bool.stderr b/tests/ui/typeck/issue-87771-ice-assign-assign-to-bool.stderr similarity index 100% rename from src/test/ui/typeck/issue-87771-ice-assign-assign-to-bool.stderr rename to tests/ui/typeck/issue-87771-ice-assign-assign-to-bool.stderr diff --git a/src/test/ui/typeck/issue-87872-missing-inaccessible-field-literal.rs b/tests/ui/typeck/issue-87872-missing-inaccessible-field-literal.rs similarity index 100% rename from src/test/ui/typeck/issue-87872-missing-inaccessible-field-literal.rs rename to tests/ui/typeck/issue-87872-missing-inaccessible-field-literal.rs diff --git a/src/test/ui/typeck/issue-87872-missing-inaccessible-field-literal.stderr b/tests/ui/typeck/issue-87872-missing-inaccessible-field-literal.stderr similarity index 100% rename from src/test/ui/typeck/issue-87872-missing-inaccessible-field-literal.stderr rename to tests/ui/typeck/issue-87872-missing-inaccessible-field-literal.stderr diff --git a/src/test/ui/typeck/issue-87872-missing-inaccessible-field-pattern.rs b/tests/ui/typeck/issue-87872-missing-inaccessible-field-pattern.rs similarity index 100% rename from src/test/ui/typeck/issue-87872-missing-inaccessible-field-pattern.rs rename to tests/ui/typeck/issue-87872-missing-inaccessible-field-pattern.rs diff --git a/src/test/ui/typeck/issue-87872-missing-inaccessible-field-pattern.stderr b/tests/ui/typeck/issue-87872-missing-inaccessible-field-pattern.stderr similarity index 100% rename from src/test/ui/typeck/issue-87872-missing-inaccessible-field-pattern.stderr rename to tests/ui/typeck/issue-87872-missing-inaccessible-field-pattern.stderr diff --git a/src/test/ui/typeck/issue-87935-unsized-box-expr.rs b/tests/ui/typeck/issue-87935-unsized-box-expr.rs similarity index 100% rename from src/test/ui/typeck/issue-87935-unsized-box-expr.rs rename to tests/ui/typeck/issue-87935-unsized-box-expr.rs diff --git a/src/test/ui/typeck/issue-87935-unsized-box-expr.stderr b/tests/ui/typeck/issue-87935-unsized-box-expr.stderr similarity index 100% rename from src/test/ui/typeck/issue-87935-unsized-box-expr.stderr rename to tests/ui/typeck/issue-87935-unsized-box-expr.stderr diff --git a/src/test/ui/typeck/issue-88609.rs b/tests/ui/typeck/issue-88609.rs similarity index 100% rename from src/test/ui/typeck/issue-88609.rs rename to tests/ui/typeck/issue-88609.rs diff --git a/src/test/ui/typeck/issue-88643.rs b/tests/ui/typeck/issue-88643.rs similarity index 100% rename from src/test/ui/typeck/issue-88643.rs rename to tests/ui/typeck/issue-88643.rs diff --git a/src/test/ui/typeck/issue-88643.stderr b/tests/ui/typeck/issue-88643.stderr similarity index 100% rename from src/test/ui/typeck/issue-88643.stderr rename to tests/ui/typeck/issue-88643.stderr diff --git a/src/test/ui/typeck/issue-88803-call-expr-method.fixed b/tests/ui/typeck/issue-88803-call-expr-method.fixed similarity index 100% rename from src/test/ui/typeck/issue-88803-call-expr-method.fixed rename to tests/ui/typeck/issue-88803-call-expr-method.fixed diff --git a/src/test/ui/typeck/issue-88803-call-expr-method.rs b/tests/ui/typeck/issue-88803-call-expr-method.rs similarity index 100% rename from src/test/ui/typeck/issue-88803-call-expr-method.rs rename to tests/ui/typeck/issue-88803-call-expr-method.rs diff --git a/src/test/ui/typeck/issue-88803-call-expr-method.stderr b/tests/ui/typeck/issue-88803-call-expr-method.stderr similarity index 100% rename from src/test/ui/typeck/issue-88803-call-expr-method.stderr rename to tests/ui/typeck/issue-88803-call-expr-method.stderr diff --git a/src/test/ui/typeck/issue-88844.rs b/tests/ui/typeck/issue-88844.rs similarity index 100% rename from src/test/ui/typeck/issue-88844.rs rename to tests/ui/typeck/issue-88844.rs diff --git a/src/test/ui/typeck/issue-88844.stderr b/tests/ui/typeck/issue-88844.stderr similarity index 100% rename from src/test/ui/typeck/issue-88844.stderr rename to tests/ui/typeck/issue-88844.stderr diff --git a/src/test/ui/typeck/issue-89044-wrapped-expr-method.fixed b/tests/ui/typeck/issue-89044-wrapped-expr-method.fixed similarity index 100% rename from src/test/ui/typeck/issue-89044-wrapped-expr-method.fixed rename to tests/ui/typeck/issue-89044-wrapped-expr-method.fixed diff --git a/src/test/ui/typeck/issue-89044-wrapped-expr-method.rs b/tests/ui/typeck/issue-89044-wrapped-expr-method.rs similarity index 100% rename from src/test/ui/typeck/issue-89044-wrapped-expr-method.rs rename to tests/ui/typeck/issue-89044-wrapped-expr-method.rs diff --git a/src/test/ui/typeck/issue-89044-wrapped-expr-method.stderr b/tests/ui/typeck/issue-89044-wrapped-expr-method.stderr similarity index 100% rename from src/test/ui/typeck/issue-89044-wrapped-expr-method.stderr rename to tests/ui/typeck/issue-89044-wrapped-expr-method.stderr diff --git a/src/test/ui/typeck/issue-89275.rs b/tests/ui/typeck/issue-89275.rs similarity index 100% rename from src/test/ui/typeck/issue-89275.rs rename to tests/ui/typeck/issue-89275.rs diff --git a/src/test/ui/typeck/issue-89275.stderr b/tests/ui/typeck/issue-89275.stderr similarity index 100% rename from src/test/ui/typeck/issue-89275.stderr rename to tests/ui/typeck/issue-89275.stderr diff --git a/src/test/ui/typeck/issue-89806.rs b/tests/ui/typeck/issue-89806.rs similarity index 100% rename from src/test/ui/typeck/issue-89806.rs rename to tests/ui/typeck/issue-89806.rs diff --git a/src/test/ui/typeck/issue-89806.stderr b/tests/ui/typeck/issue-89806.stderr similarity index 100% rename from src/test/ui/typeck/issue-89806.stderr rename to tests/ui/typeck/issue-89806.stderr diff --git a/src/test/ui/typeck/issue-89856.rs b/tests/ui/typeck/issue-89856.rs similarity index 100% rename from src/test/ui/typeck/issue-89856.rs rename to tests/ui/typeck/issue-89856.rs diff --git a/src/test/ui/typeck/issue-89856.stderr b/tests/ui/typeck/issue-89856.stderr similarity index 100% rename from src/test/ui/typeck/issue-89856.stderr rename to tests/ui/typeck/issue-89856.stderr diff --git a/src/test/ui/typeck/issue-89935.rs b/tests/ui/typeck/issue-89935.rs similarity index 100% rename from src/test/ui/typeck/issue-89935.rs rename to tests/ui/typeck/issue-89935.rs diff --git a/src/test/ui/typeck/issue-90101.rs b/tests/ui/typeck/issue-90101.rs similarity index 100% rename from src/test/ui/typeck/issue-90101.rs rename to tests/ui/typeck/issue-90101.rs diff --git a/src/test/ui/typeck/issue-90101.stderr b/tests/ui/typeck/issue-90101.stderr similarity index 100% rename from src/test/ui/typeck/issue-90101.stderr rename to tests/ui/typeck/issue-90101.stderr diff --git a/src/test/ui/typeck/issue-90164.rs b/tests/ui/typeck/issue-90164.rs similarity index 100% rename from src/test/ui/typeck/issue-90164.rs rename to tests/ui/typeck/issue-90164.rs diff --git a/src/test/ui/typeck/issue-90164.stderr b/tests/ui/typeck/issue-90164.stderr similarity index 100% rename from src/test/ui/typeck/issue-90164.stderr rename to tests/ui/typeck/issue-90164.stderr diff --git a/src/test/ui/typeck/issue-90319.rs b/tests/ui/typeck/issue-90319.rs similarity index 100% rename from src/test/ui/typeck/issue-90319.rs rename to tests/ui/typeck/issue-90319.rs diff --git a/src/test/ui/typeck/issue-90319.stderr b/tests/ui/typeck/issue-90319.stderr similarity index 100% rename from src/test/ui/typeck/issue-90319.stderr rename to tests/ui/typeck/issue-90319.stderr diff --git a/src/test/ui/typeck/issue-90483-inaccessible-field-adjustment.rs b/tests/ui/typeck/issue-90483-inaccessible-field-adjustment.rs similarity index 100% rename from src/test/ui/typeck/issue-90483-inaccessible-field-adjustment.rs rename to tests/ui/typeck/issue-90483-inaccessible-field-adjustment.rs diff --git a/src/test/ui/typeck/issue-90483-inaccessible-field-adjustment.stderr b/tests/ui/typeck/issue-90483-inaccessible-field-adjustment.stderr similarity index 100% rename from src/test/ui/typeck/issue-90483-inaccessible-field-adjustment.stderr rename to tests/ui/typeck/issue-90483-inaccessible-field-adjustment.stderr diff --git a/src/test/ui/typeck/issue-90804-incorrect-reference-suggestion.rs b/tests/ui/typeck/issue-90804-incorrect-reference-suggestion.rs similarity index 100% rename from src/test/ui/typeck/issue-90804-incorrect-reference-suggestion.rs rename to tests/ui/typeck/issue-90804-incorrect-reference-suggestion.rs diff --git a/src/test/ui/typeck/issue-90804-incorrect-reference-suggestion.stderr b/tests/ui/typeck/issue-90804-incorrect-reference-suggestion.stderr similarity index 100% rename from src/test/ui/typeck/issue-90804-incorrect-reference-suggestion.stderr rename to tests/ui/typeck/issue-90804-incorrect-reference-suggestion.stderr diff --git a/src/test/ui/typeck/issue-91210-ptr-method.fixed b/tests/ui/typeck/issue-91210-ptr-method.fixed similarity index 100% rename from src/test/ui/typeck/issue-91210-ptr-method.fixed rename to tests/ui/typeck/issue-91210-ptr-method.fixed diff --git a/src/test/ui/typeck/issue-91210-ptr-method.rs b/tests/ui/typeck/issue-91210-ptr-method.rs similarity index 100% rename from src/test/ui/typeck/issue-91210-ptr-method.rs rename to tests/ui/typeck/issue-91210-ptr-method.rs diff --git a/src/test/ui/typeck/issue-91210-ptr-method.stderr b/tests/ui/typeck/issue-91210-ptr-method.stderr similarity index 100% rename from src/test/ui/typeck/issue-91210-ptr-method.stderr rename to tests/ui/typeck/issue-91210-ptr-method.stderr diff --git a/src/test/ui/typeck/issue-91267.rs b/tests/ui/typeck/issue-91267.rs similarity index 100% rename from src/test/ui/typeck/issue-91267.rs rename to tests/ui/typeck/issue-91267.rs diff --git a/src/test/ui/typeck/issue-91267.stderr b/tests/ui/typeck/issue-91267.stderr similarity index 100% rename from src/test/ui/typeck/issue-91267.stderr rename to tests/ui/typeck/issue-91267.stderr diff --git a/src/test/ui/typeck/issue-91328.fixed b/tests/ui/typeck/issue-91328.fixed similarity index 100% rename from src/test/ui/typeck/issue-91328.fixed rename to tests/ui/typeck/issue-91328.fixed diff --git a/src/test/ui/typeck/issue-91328.rs b/tests/ui/typeck/issue-91328.rs similarity index 100% rename from src/test/ui/typeck/issue-91328.rs rename to tests/ui/typeck/issue-91328.rs diff --git a/src/test/ui/typeck/issue-91328.stderr b/tests/ui/typeck/issue-91328.stderr similarity index 100% rename from src/test/ui/typeck/issue-91328.stderr rename to tests/ui/typeck/issue-91328.stderr diff --git a/src/test/ui/typeck/issue-91334.rs b/tests/ui/typeck/issue-91334.rs similarity index 100% rename from src/test/ui/typeck/issue-91334.rs rename to tests/ui/typeck/issue-91334.rs diff --git a/src/test/ui/typeck/issue-91334.stderr b/tests/ui/typeck/issue-91334.stderr similarity index 100% rename from src/test/ui/typeck/issue-91334.stderr rename to tests/ui/typeck/issue-91334.stderr diff --git a/src/test/ui/typeck/issue-91450-inner-ty-error.rs b/tests/ui/typeck/issue-91450-inner-ty-error.rs similarity index 100% rename from src/test/ui/typeck/issue-91450-inner-ty-error.rs rename to tests/ui/typeck/issue-91450-inner-ty-error.rs diff --git a/src/test/ui/typeck/issue-91450-inner-ty-error.stderr b/tests/ui/typeck/issue-91450-inner-ty-error.stderr similarity index 100% rename from src/test/ui/typeck/issue-91450-inner-ty-error.stderr rename to tests/ui/typeck/issue-91450-inner-ty-error.stderr diff --git a/src/test/ui/typeck/issue-91633.rs b/tests/ui/typeck/issue-91633.rs similarity index 100% rename from src/test/ui/typeck/issue-91633.rs rename to tests/ui/typeck/issue-91633.rs diff --git a/src/test/ui/typeck/issue-92481.rs b/tests/ui/typeck/issue-92481.rs similarity index 100% rename from src/test/ui/typeck/issue-92481.rs rename to tests/ui/typeck/issue-92481.rs diff --git a/src/test/ui/typeck/issue-92481.stderr b/tests/ui/typeck/issue-92481.stderr similarity index 100% rename from src/test/ui/typeck/issue-92481.stderr rename to tests/ui/typeck/issue-92481.stderr diff --git a/src/test/ui/typeck/issue-93486.rs b/tests/ui/typeck/issue-93486.rs similarity index 100% rename from src/test/ui/typeck/issue-93486.rs rename to tests/ui/typeck/issue-93486.rs diff --git a/src/test/ui/typeck/issue-93486.stderr b/tests/ui/typeck/issue-93486.stderr similarity index 100% rename from src/test/ui/typeck/issue-93486.stderr rename to tests/ui/typeck/issue-93486.stderr diff --git a/src/test/ui/typeck/issue-96530.rs b/tests/ui/typeck/issue-96530.rs similarity index 100% rename from src/test/ui/typeck/issue-96530.rs rename to tests/ui/typeck/issue-96530.rs diff --git a/src/test/ui/typeck/issue-96530.stderr b/tests/ui/typeck/issue-96530.stderr similarity index 100% rename from src/test/ui/typeck/issue-96530.stderr rename to tests/ui/typeck/issue-96530.stderr diff --git a/src/test/ui/typeck/issue-96738.rs b/tests/ui/typeck/issue-96738.rs similarity index 100% rename from src/test/ui/typeck/issue-96738.rs rename to tests/ui/typeck/issue-96738.rs diff --git a/src/test/ui/typeck/issue-96738.stderr b/tests/ui/typeck/issue-96738.stderr similarity index 100% rename from src/test/ui/typeck/issue-96738.stderr rename to tests/ui/typeck/issue-96738.stderr diff --git a/src/test/ui/typeck/issue-98260.rs b/tests/ui/typeck/issue-98260.rs similarity index 100% rename from src/test/ui/typeck/issue-98260.rs rename to tests/ui/typeck/issue-98260.rs diff --git a/src/test/ui/typeck/issue-98260.stderr b/tests/ui/typeck/issue-98260.stderr similarity index 100% rename from src/test/ui/typeck/issue-98260.stderr rename to tests/ui/typeck/issue-98260.stderr diff --git a/src/test/ui/typeck/issue-98982.rs b/tests/ui/typeck/issue-98982.rs similarity index 100% rename from src/test/ui/typeck/issue-98982.rs rename to tests/ui/typeck/issue-98982.rs diff --git a/src/test/ui/typeck/issue-98982.stderr b/tests/ui/typeck/issue-98982.stderr similarity index 100% rename from src/test/ui/typeck/issue-98982.stderr rename to tests/ui/typeck/issue-98982.stderr diff --git a/src/test/ui/typeck/missing-private-fields-in-struct-literal.rs b/tests/ui/typeck/missing-private-fields-in-struct-literal.rs similarity index 100% rename from src/test/ui/typeck/missing-private-fields-in-struct-literal.rs rename to tests/ui/typeck/missing-private-fields-in-struct-literal.rs diff --git a/src/test/ui/typeck/missing-private-fields-in-struct-literal.stderr b/tests/ui/typeck/missing-private-fields-in-struct-literal.stderr similarity index 100% rename from src/test/ui/typeck/missing-private-fields-in-struct-literal.stderr rename to tests/ui/typeck/missing-private-fields-in-struct-literal.stderr diff --git a/src/test/ui/typeck/no-type-for-node-ice.rs b/tests/ui/typeck/no-type-for-node-ice.rs similarity index 100% rename from src/test/ui/typeck/no-type-for-node-ice.rs rename to tests/ui/typeck/no-type-for-node-ice.rs diff --git a/src/test/ui/typeck/no-type-for-node-ice.stderr b/tests/ui/typeck/no-type-for-node-ice.stderr similarity index 100% rename from src/test/ui/typeck/no-type-for-node-ice.stderr rename to tests/ui/typeck/no-type-for-node-ice.stderr diff --git a/src/test/ui/typeck/nonexistent-field-not-ambiguous.rs b/tests/ui/typeck/nonexistent-field-not-ambiguous.rs similarity index 100% rename from src/test/ui/typeck/nonexistent-field-not-ambiguous.rs rename to tests/ui/typeck/nonexistent-field-not-ambiguous.rs diff --git a/src/test/ui/typeck/nonexistent-field-not-ambiguous.stderr b/tests/ui/typeck/nonexistent-field-not-ambiguous.stderr similarity index 100% rename from src/test/ui/typeck/nonexistent-field-not-ambiguous.stderr rename to tests/ui/typeck/nonexistent-field-not-ambiguous.stderr diff --git a/src/test/ui/typeck/path-to-method-sugg-unresolved-expr.rs b/tests/ui/typeck/path-to-method-sugg-unresolved-expr.rs similarity index 100% rename from src/test/ui/typeck/path-to-method-sugg-unresolved-expr.rs rename to tests/ui/typeck/path-to-method-sugg-unresolved-expr.rs diff --git a/src/test/ui/typeck/path-to-method-sugg-unresolved-expr.stderr b/tests/ui/typeck/path-to-method-sugg-unresolved-expr.stderr similarity index 100% rename from src/test/ui/typeck/path-to-method-sugg-unresolved-expr.stderr rename to tests/ui/typeck/path-to-method-sugg-unresolved-expr.stderr diff --git a/src/test/ui/typeck/point-at-type-param-in-path-expr.rs b/tests/ui/typeck/point-at-type-param-in-path-expr.rs similarity index 100% rename from src/test/ui/typeck/point-at-type-param-in-path-expr.rs rename to tests/ui/typeck/point-at-type-param-in-path-expr.rs diff --git a/src/test/ui/typeck/point-at-type-param-in-path-expr.stderr b/tests/ui/typeck/point-at-type-param-in-path-expr.stderr similarity index 100% rename from src/test/ui/typeck/point-at-type-param-in-path-expr.stderr rename to tests/ui/typeck/point-at-type-param-in-path-expr.stderr diff --git a/src/test/ui/typeck/point-at-type-parameter-definition.rs b/tests/ui/typeck/point-at-type-parameter-definition.rs similarity index 100% rename from src/test/ui/typeck/point-at-type-parameter-definition.rs rename to tests/ui/typeck/point-at-type-parameter-definition.rs diff --git a/src/test/ui/typeck/point-at-type-parameter-definition.stderr b/tests/ui/typeck/point-at-type-parameter-definition.stderr similarity index 100% rename from src/test/ui/typeck/point-at-type-parameter-definition.stderr rename to tests/ui/typeck/point-at-type-parameter-definition.stderr diff --git a/src/test/ui/typeck/prim-with-args.fixed b/tests/ui/typeck/prim-with-args.fixed similarity index 100% rename from src/test/ui/typeck/prim-with-args.fixed rename to tests/ui/typeck/prim-with-args.fixed diff --git a/src/test/ui/typeck/prim-with-args.rs b/tests/ui/typeck/prim-with-args.rs similarity index 100% rename from src/test/ui/typeck/prim-with-args.rs rename to tests/ui/typeck/prim-with-args.rs diff --git a/src/test/ui/typeck/prim-with-args.stderr b/tests/ui/typeck/prim-with-args.stderr similarity index 100% rename from src/test/ui/typeck/prim-with-args.stderr rename to tests/ui/typeck/prim-with-args.stderr diff --git a/src/test/ui/typeck/project-cache-issue-37154.rs b/tests/ui/typeck/project-cache-issue-37154.rs similarity index 100% rename from src/test/ui/typeck/project-cache-issue-37154.rs rename to tests/ui/typeck/project-cache-issue-37154.rs diff --git a/src/test/ui/typeck/quiet-type-err-let-binding.rs b/tests/ui/typeck/quiet-type-err-let-binding.rs similarity index 100% rename from src/test/ui/typeck/quiet-type-err-let-binding.rs rename to tests/ui/typeck/quiet-type-err-let-binding.rs diff --git a/src/test/ui/typeck/quiet-type-err-let-binding.stderr b/tests/ui/typeck/quiet-type-err-let-binding.stderr similarity index 100% rename from src/test/ui/typeck/quiet-type-err-let-binding.stderr rename to tests/ui/typeck/quiet-type-err-let-binding.stderr diff --git a/src/test/ui/typeck/remove-extra-argument.fixed b/tests/ui/typeck/remove-extra-argument.fixed similarity index 100% rename from src/test/ui/typeck/remove-extra-argument.fixed rename to tests/ui/typeck/remove-extra-argument.fixed diff --git a/src/test/ui/typeck/remove-extra-argument.rs b/tests/ui/typeck/remove-extra-argument.rs similarity index 100% rename from src/test/ui/typeck/remove-extra-argument.rs rename to tests/ui/typeck/remove-extra-argument.rs diff --git a/src/test/ui/typeck/remove-extra-argument.stderr b/tests/ui/typeck/remove-extra-argument.stderr similarity index 100% rename from src/test/ui/typeck/remove-extra-argument.stderr rename to tests/ui/typeck/remove-extra-argument.stderr diff --git a/src/test/ui/typeck/return_type_containing_closure.rs b/tests/ui/typeck/return_type_containing_closure.rs similarity index 100% rename from src/test/ui/typeck/return_type_containing_closure.rs rename to tests/ui/typeck/return_type_containing_closure.rs diff --git a/src/test/ui/typeck/return_type_containing_closure.stderr b/tests/ui/typeck/return_type_containing_closure.stderr similarity index 100% rename from src/test/ui/typeck/return_type_containing_closure.stderr rename to tests/ui/typeck/return_type_containing_closure.stderr diff --git a/src/test/ui/typeck/slow-lhs-suggestion.rs b/tests/ui/typeck/slow-lhs-suggestion.rs similarity index 100% rename from src/test/ui/typeck/slow-lhs-suggestion.rs rename to tests/ui/typeck/slow-lhs-suggestion.rs diff --git a/src/test/ui/typeck/slow-lhs-suggestion.stderr b/tests/ui/typeck/slow-lhs-suggestion.stderr similarity index 100% rename from src/test/ui/typeck/slow-lhs-suggestion.stderr rename to tests/ui/typeck/slow-lhs-suggestion.stderr diff --git a/src/test/ui/typeck/struct-enum-wrong-args.rs b/tests/ui/typeck/struct-enum-wrong-args.rs similarity index 100% rename from src/test/ui/typeck/struct-enum-wrong-args.rs rename to tests/ui/typeck/struct-enum-wrong-args.rs diff --git a/src/test/ui/typeck/struct-enum-wrong-args.stderr b/tests/ui/typeck/struct-enum-wrong-args.stderr similarity index 100% rename from src/test/ui/typeck/struct-enum-wrong-args.stderr rename to tests/ui/typeck/struct-enum-wrong-args.stderr diff --git a/src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.fixed b/tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.fixed similarity index 100% rename from src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.fixed rename to tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.fixed diff --git a/src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.rs b/tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.rs similarity index 100% rename from src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.rs rename to tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.rs diff --git a/src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.stderr b/tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.stderr similarity index 100% rename from src/test/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.stderr rename to tests/ui/typeck/suggest-adding-missing-zero-to-floating-point-number.stderr diff --git a/src/test/ui/typeck/type-placeholder-fn-in-const.rs b/tests/ui/typeck/type-placeholder-fn-in-const.rs similarity index 100% rename from src/test/ui/typeck/type-placeholder-fn-in-const.rs rename to tests/ui/typeck/type-placeholder-fn-in-const.rs diff --git a/src/test/ui/typeck/type-placeholder-fn-in-const.stderr b/tests/ui/typeck/type-placeholder-fn-in-const.stderr similarity index 100% rename from src/test/ui/typeck/type-placeholder-fn-in-const.stderr rename to tests/ui/typeck/type-placeholder-fn-in-const.stderr diff --git a/src/test/ui/typeck/typeck-builtin-bound-type-parameters.rs b/tests/ui/typeck/typeck-builtin-bound-type-parameters.rs similarity index 100% rename from src/test/ui/typeck/typeck-builtin-bound-type-parameters.rs rename to tests/ui/typeck/typeck-builtin-bound-type-parameters.rs diff --git a/src/test/ui/typeck/typeck-builtin-bound-type-parameters.stderr b/tests/ui/typeck/typeck-builtin-bound-type-parameters.stderr similarity index 100% rename from src/test/ui/typeck/typeck-builtin-bound-type-parameters.stderr rename to tests/ui/typeck/typeck-builtin-bound-type-parameters.stderr diff --git a/src/test/ui/typeck/typeck-cast-pointer-to-float.rs b/tests/ui/typeck/typeck-cast-pointer-to-float.rs similarity index 100% rename from src/test/ui/typeck/typeck-cast-pointer-to-float.rs rename to tests/ui/typeck/typeck-cast-pointer-to-float.rs diff --git a/src/test/ui/typeck/typeck-cast-pointer-to-float.stderr b/tests/ui/typeck/typeck-cast-pointer-to-float.stderr similarity index 100% rename from src/test/ui/typeck/typeck-cast-pointer-to-float.stderr rename to tests/ui/typeck/typeck-cast-pointer-to-float.stderr diff --git a/src/test/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs b/tests/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs similarity index 100% rename from src/test/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs rename to tests/ui/typeck/typeck-closure-to-unsafe-fn-ptr.rs diff --git a/src/test/ui/typeck/typeck-default-trait-impl-assoc-type.fixed b/tests/ui/typeck/typeck-default-trait-impl-assoc-type.fixed similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-assoc-type.fixed rename to tests/ui/typeck/typeck-default-trait-impl-assoc-type.fixed diff --git a/src/test/ui/typeck/typeck-default-trait-impl-assoc-type.rs b/tests/ui/typeck/typeck-default-trait-impl-assoc-type.rs similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-assoc-type.rs rename to tests/ui/typeck/typeck-default-trait-impl-assoc-type.rs diff --git a/src/test/ui/typeck/typeck-default-trait-impl-assoc-type.stderr b/tests/ui/typeck/typeck-default-trait-impl-assoc-type.stderr similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-assoc-type.stderr rename to tests/ui/typeck/typeck-default-trait-impl-assoc-type.stderr diff --git a/src/test/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.rs b/tests/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.rs similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.rs rename to tests/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.rs diff --git a/src/test/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.stderr b/tests/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.stderr similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.stderr rename to tests/ui/typeck/typeck-default-trait-impl-cross-crate-coherence.stderr diff --git a/src/test/ui/typeck/typeck-default-trait-impl-negation-send.rs b/tests/ui/typeck/typeck-default-trait-impl-negation-send.rs similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-negation-send.rs rename to tests/ui/typeck/typeck-default-trait-impl-negation-send.rs diff --git a/src/test/ui/typeck/typeck-default-trait-impl-negation-send.stderr b/tests/ui/typeck/typeck-default-trait-impl-negation-send.stderr similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-negation-send.stderr rename to tests/ui/typeck/typeck-default-trait-impl-negation-send.stderr diff --git a/src/test/ui/typeck/typeck-default-trait-impl-negation-sync.rs b/tests/ui/typeck/typeck-default-trait-impl-negation-sync.rs similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-negation-sync.rs rename to tests/ui/typeck/typeck-default-trait-impl-negation-sync.rs diff --git a/src/test/ui/typeck/typeck-default-trait-impl-negation-sync.stderr b/tests/ui/typeck/typeck-default-trait-impl-negation-sync.stderr similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-negation-sync.stderr rename to tests/ui/typeck/typeck-default-trait-impl-negation-sync.stderr diff --git a/src/test/ui/typeck/typeck-default-trait-impl-send-param.rs b/tests/ui/typeck/typeck-default-trait-impl-send-param.rs similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-send-param.rs rename to tests/ui/typeck/typeck-default-trait-impl-send-param.rs diff --git a/src/test/ui/typeck/typeck-default-trait-impl-send-param.stderr b/tests/ui/typeck/typeck-default-trait-impl-send-param.stderr similarity index 100% rename from src/test/ui/typeck/typeck-default-trait-impl-send-param.stderr rename to tests/ui/typeck/typeck-default-trait-impl-send-param.stderr diff --git a/src/test/ui/typeck/typeck-fn-to-unsafe-fn-ptr.rs b/tests/ui/typeck/typeck-fn-to-unsafe-fn-ptr.rs similarity index 100% rename from src/test/ui/typeck/typeck-fn-to-unsafe-fn-ptr.rs rename to tests/ui/typeck/typeck-fn-to-unsafe-fn-ptr.rs diff --git a/src/test/ui/typeck/typeck-unsafe-always-share.rs b/tests/ui/typeck/typeck-unsafe-always-share.rs similarity index 100% rename from src/test/ui/typeck/typeck-unsafe-always-share.rs rename to tests/ui/typeck/typeck-unsafe-always-share.rs diff --git a/src/test/ui/typeck/typeck-unsafe-always-share.stderr b/tests/ui/typeck/typeck-unsafe-always-share.stderr similarity index 100% rename from src/test/ui/typeck/typeck-unsafe-always-share.stderr rename to tests/ui/typeck/typeck-unsafe-always-share.stderr diff --git a/src/test/ui/typeck/typeck_type_placeholder_1.rs b/tests/ui/typeck/typeck_type_placeholder_1.rs similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_1.rs rename to tests/ui/typeck/typeck_type_placeholder_1.rs diff --git a/src/test/ui/typeck/typeck_type_placeholder_item.rs b/tests/ui/typeck/typeck_type_placeholder_item.rs similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_item.rs rename to tests/ui/typeck/typeck_type_placeholder_item.rs diff --git a/src/test/ui/typeck/typeck_type_placeholder_item.stderr b/tests/ui/typeck/typeck_type_placeholder_item.stderr similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_item.stderr rename to tests/ui/typeck/typeck_type_placeholder_item.stderr diff --git a/src/test/ui/typeck/typeck_type_placeholder_item_help.rs b/tests/ui/typeck/typeck_type_placeholder_item_help.rs similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_item_help.rs rename to tests/ui/typeck/typeck_type_placeholder_item_help.rs diff --git a/src/test/ui/typeck/typeck_type_placeholder_item_help.stderr b/tests/ui/typeck/typeck_type_placeholder_item_help.stderr similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_item_help.stderr rename to tests/ui/typeck/typeck_type_placeholder_item_help.stderr diff --git a/src/test/ui/typeck/typeck_type_placeholder_lifetime_1.rs b/tests/ui/typeck/typeck_type_placeholder_lifetime_1.rs similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_lifetime_1.rs rename to tests/ui/typeck/typeck_type_placeholder_lifetime_1.rs diff --git a/src/test/ui/typeck/typeck_type_placeholder_lifetime_1.stderr b/tests/ui/typeck/typeck_type_placeholder_lifetime_1.stderr similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_lifetime_1.stderr rename to tests/ui/typeck/typeck_type_placeholder_lifetime_1.stderr diff --git a/src/test/ui/typeck/typeck_type_placeholder_lifetime_2.rs b/tests/ui/typeck/typeck_type_placeholder_lifetime_2.rs similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_lifetime_2.rs rename to tests/ui/typeck/typeck_type_placeholder_lifetime_2.rs diff --git a/src/test/ui/typeck/typeck_type_placeholder_lifetime_2.stderr b/tests/ui/typeck/typeck_type_placeholder_lifetime_2.stderr similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_lifetime_2.stderr rename to tests/ui/typeck/typeck_type_placeholder_lifetime_2.stderr diff --git a/src/test/ui/typeck/typeck_type_placeholder_mismatch.rs b/tests/ui/typeck/typeck_type_placeholder_mismatch.rs similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_mismatch.rs rename to tests/ui/typeck/typeck_type_placeholder_mismatch.rs diff --git a/src/test/ui/typeck/typeck_type_placeholder_mismatch.stderr b/tests/ui/typeck/typeck_type_placeholder_mismatch.stderr similarity index 100% rename from src/test/ui/typeck/typeck_type_placeholder_mismatch.stderr rename to tests/ui/typeck/typeck_type_placeholder_mismatch.stderr diff --git a/src/test/ui/typeck/ufcs-type-params.rs b/tests/ui/typeck/ufcs-type-params.rs similarity index 100% rename from src/test/ui/typeck/ufcs-type-params.rs rename to tests/ui/typeck/ufcs-type-params.rs diff --git a/src/test/ui/typeck/unify-return-ty.rs b/tests/ui/typeck/unify-return-ty.rs similarity index 100% rename from src/test/ui/typeck/unify-return-ty.rs rename to tests/ui/typeck/unify-return-ty.rs diff --git a/src/test/ui/typeck/while-loop-block-cond.rs b/tests/ui/typeck/while-loop-block-cond.rs similarity index 100% rename from src/test/ui/typeck/while-loop-block-cond.rs rename to tests/ui/typeck/while-loop-block-cond.rs diff --git a/src/test/ui/typeck/while-loop-block-cond.stderr b/tests/ui/typeck/while-loop-block-cond.stderr similarity index 100% rename from src/test/ui/typeck/while-loop-block-cond.stderr rename to tests/ui/typeck/while-loop-block-cond.stderr diff --git a/src/test/ui/typeid-intrinsic.rs b/tests/ui/typeid-intrinsic.rs similarity index 100% rename from src/test/ui/typeid-intrinsic.rs rename to tests/ui/typeid-intrinsic.rs diff --git a/src/test/ui/typeof/issue-100183.rs b/tests/ui/typeof/issue-100183.rs similarity index 100% rename from src/test/ui/typeof/issue-100183.rs rename to tests/ui/typeof/issue-100183.rs diff --git a/src/test/ui/typeof/issue-100183.stderr b/tests/ui/typeof/issue-100183.stderr similarity index 100% rename from src/test/ui/typeof/issue-100183.stderr rename to tests/ui/typeof/issue-100183.stderr diff --git a/src/test/ui/typeof/issue-29184.rs b/tests/ui/typeof/issue-29184.rs similarity index 100% rename from src/test/ui/typeof/issue-29184.rs rename to tests/ui/typeof/issue-29184.rs diff --git a/src/test/ui/typeof/issue-29184.stderr b/tests/ui/typeof/issue-29184.stderr similarity index 100% rename from src/test/ui/typeof/issue-29184.stderr rename to tests/ui/typeof/issue-29184.stderr diff --git a/src/test/ui/typeof/issue-42060.rs b/tests/ui/typeof/issue-42060.rs similarity index 100% rename from src/test/ui/typeof/issue-42060.rs rename to tests/ui/typeof/issue-42060.rs diff --git a/src/test/ui/typeof/issue-42060.stderr b/tests/ui/typeof/issue-42060.stderr similarity index 100% rename from src/test/ui/typeof/issue-42060.stderr rename to tests/ui/typeof/issue-42060.stderr diff --git a/src/test/ui/typeof/type_mismatch.rs b/tests/ui/typeof/type_mismatch.rs similarity index 100% rename from src/test/ui/typeof/type_mismatch.rs rename to tests/ui/typeof/type_mismatch.rs diff --git a/src/test/ui/typeof/type_mismatch.stderr b/tests/ui/typeof/type_mismatch.stderr similarity index 100% rename from src/test/ui/typeof/type_mismatch.stderr rename to tests/ui/typeof/type_mismatch.stderr diff --git a/src/test/ui/typestate-multi-decl.rs b/tests/ui/typestate-multi-decl.rs similarity index 100% rename from src/test/ui/typestate-multi-decl.rs rename to tests/ui/typestate-multi-decl.rs diff --git a/src/test/ui/ufcs-polymorphic-paths.rs b/tests/ui/ufcs-polymorphic-paths.rs similarity index 100% rename from src/test/ui/ufcs-polymorphic-paths.rs rename to tests/ui/ufcs-polymorphic-paths.rs diff --git a/src/test/ui/ufcs/ufcs-explicit-self-bad.rs b/tests/ui/ufcs/ufcs-explicit-self-bad.rs similarity index 100% rename from src/test/ui/ufcs/ufcs-explicit-self-bad.rs rename to tests/ui/ufcs/ufcs-explicit-self-bad.rs diff --git a/src/test/ui/ufcs/ufcs-explicit-self-bad.stderr b/tests/ui/ufcs/ufcs-explicit-self-bad.stderr similarity index 100% rename from src/test/ui/ufcs/ufcs-explicit-self-bad.stderr rename to tests/ui/ufcs/ufcs-explicit-self-bad.stderr diff --git a/src/test/ui/ufcs/ufcs-partially-resolved.rs b/tests/ui/ufcs/ufcs-partially-resolved.rs similarity index 100% rename from src/test/ui/ufcs/ufcs-partially-resolved.rs rename to tests/ui/ufcs/ufcs-partially-resolved.rs diff --git a/src/test/ui/ufcs/ufcs-partially-resolved.stderr b/tests/ui/ufcs/ufcs-partially-resolved.stderr similarity index 100% rename from src/test/ui/ufcs/ufcs-partially-resolved.stderr rename to tests/ui/ufcs/ufcs-partially-resolved.stderr diff --git a/src/test/ui/ufcs/ufcs-qpath-missing-params.rs b/tests/ui/ufcs/ufcs-qpath-missing-params.rs similarity index 100% rename from src/test/ui/ufcs/ufcs-qpath-missing-params.rs rename to tests/ui/ufcs/ufcs-qpath-missing-params.rs diff --git a/src/test/ui/ufcs/ufcs-qpath-missing-params.stderr b/tests/ui/ufcs/ufcs-qpath-missing-params.stderr similarity index 100% rename from src/test/ui/ufcs/ufcs-qpath-missing-params.stderr rename to tests/ui/ufcs/ufcs-qpath-missing-params.stderr diff --git a/src/test/ui/ufcs/ufcs-qpath-self-mismatch.rs b/tests/ui/ufcs/ufcs-qpath-self-mismatch.rs similarity index 100% rename from src/test/ui/ufcs/ufcs-qpath-self-mismatch.rs rename to tests/ui/ufcs/ufcs-qpath-self-mismatch.rs diff --git a/src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr b/tests/ui/ufcs/ufcs-qpath-self-mismatch.stderr similarity index 100% rename from src/test/ui/ufcs/ufcs-qpath-self-mismatch.stderr rename to tests/ui/ufcs/ufcs-qpath-self-mismatch.stderr diff --git a/src/test/ui/unboxed-closures/auxiliary/unboxed-closures-cross-crate.rs b/tests/ui/unboxed-closures/auxiliary/unboxed-closures-cross-crate.rs similarity index 100% rename from src/test/ui/unboxed-closures/auxiliary/unboxed-closures-cross-crate.rs rename to tests/ui/unboxed-closures/auxiliary/unboxed-closures-cross-crate.rs diff --git a/src/test/ui/unboxed-closures/issue-18652.rs b/tests/ui/unboxed-closures/issue-18652.rs similarity index 100% rename from src/test/ui/unboxed-closures/issue-18652.rs rename to tests/ui/unboxed-closures/issue-18652.rs diff --git a/src/test/ui/unboxed-closures/issue-18661.rs b/tests/ui/unboxed-closures/issue-18661.rs similarity index 100% rename from src/test/ui/unboxed-closures/issue-18661.rs rename to tests/ui/unboxed-closures/issue-18661.rs diff --git a/src/test/ui/unboxed-closures/issue-30906.rs b/tests/ui/unboxed-closures/issue-30906.rs similarity index 100% rename from src/test/ui/unboxed-closures/issue-30906.rs rename to tests/ui/unboxed-closures/issue-30906.rs diff --git a/src/test/ui/unboxed-closures/issue-30906.stderr b/tests/ui/unboxed-closures/issue-30906.stderr similarity index 100% rename from src/test/ui/unboxed-closures/issue-30906.stderr rename to tests/ui/unboxed-closures/issue-30906.stderr diff --git a/src/test/ui/unboxed-closures/issue-53448.rs b/tests/ui/unboxed-closures/issue-53448.rs similarity index 100% rename from src/test/ui/unboxed-closures/issue-53448.rs rename to tests/ui/unboxed-closures/issue-53448.rs diff --git a/src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs b/tests/ui/unboxed-closures/non-tupled-arg-mismatch.rs similarity index 100% rename from src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs rename to tests/ui/unboxed-closures/non-tupled-arg-mismatch.rs diff --git a/src/test/ui/unboxed-closures/non-tupled-arg-mismatch.stderr b/tests/ui/unboxed-closures/non-tupled-arg-mismatch.stderr similarity index 100% rename from src/test/ui/unboxed-closures/non-tupled-arg-mismatch.stderr rename to tests/ui/unboxed-closures/non-tupled-arg-mismatch.stderr diff --git a/src/test/ui/unboxed-closures/non-tupled-call.rs b/tests/ui/unboxed-closures/non-tupled-call.rs similarity index 100% rename from src/test/ui/unboxed-closures/non-tupled-call.rs rename to tests/ui/unboxed-closures/non-tupled-call.rs diff --git a/src/test/ui/unboxed-closures/non-tupled-call.stderr b/tests/ui/unboxed-closures/non-tupled-call.stderr similarity index 100% rename from src/test/ui/unboxed-closures/non-tupled-call.stderr rename to tests/ui/unboxed-closures/non-tupled-call.stderr diff --git a/src/test/ui/unboxed-closures/type-id-higher-rank.rs b/tests/ui/unboxed-closures/type-id-higher-rank.rs similarity index 100% rename from src/test/ui/unboxed-closures/type-id-higher-rank.rs rename to tests/ui/unboxed-closures/type-id-higher-rank.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-feature-gate.rs b/tests/ui/unboxed-closures/unboxed-closure-feature-gate.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-feature-gate.rs rename to tests/ui/unboxed-closures/unboxed-closure-feature-gate.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-feature-gate.stderr b/tests/ui/unboxed-closures/unboxed-closure-feature-gate.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-feature-gate.stderr rename to tests/ui/unboxed-closures/unboxed-closure-feature-gate.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-illegal-move.rs b/tests/ui/unboxed-closures/unboxed-closure-illegal-move.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-illegal-move.rs rename to tests/ui/unboxed-closures/unboxed-closure-illegal-move.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-illegal-move.stderr b/tests/ui/unboxed-closures/unboxed-closure-illegal-move.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-illegal-move.stderr rename to tests/ui/unboxed-closures/unboxed-closure-illegal-move.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-immutable-capture.rs b/tests/ui/unboxed-closures/unboxed-closure-immutable-capture.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-immutable-capture.rs rename to tests/ui/unboxed-closures/unboxed-closure-immutable-capture.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-immutable-capture.stderr b/tests/ui/unboxed-closures/unboxed-closure-immutable-capture.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-immutable-capture.stderr rename to tests/ui/unboxed-closures/unboxed-closure-immutable-capture.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.rs b/tests/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.rs rename to tests/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.stderr b/tests/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.stderr rename to tests/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-region.rs b/tests/ui/unboxed-closures/unboxed-closure-region.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-region.rs rename to tests/ui/unboxed-closures/unboxed-closure-region.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-region.stderr b/tests/ui/unboxed-closures/unboxed-closure-region.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-region.stderr rename to tests/ui/unboxed-closures/unboxed-closure-region.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-default.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-default.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-default.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-default.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-default.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-default.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-equiv.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-equiv.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-equiv.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-lifetime-elision.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-not-used-on-fn.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-region.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-region.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-region.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-region.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-region.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-region.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-region.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-region.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-1.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct-3.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-used-on-struct.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-1.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters-3.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-number-number-type-parameters.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.stderr b/tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.stderr rename to tests/ui/unboxed-closures/unboxed-closure-sugar-wrong-trait.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-all-traits.rs b/tests/ui/unboxed-closures/unboxed-closures-all-traits.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-all-traits.rs rename to tests/ui/unboxed-closures/unboxed-closures-all-traits.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-blanket-fn-mut.rs b/tests/ui/unboxed-closures/unboxed-closures-blanket-fn-mut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-blanket-fn-mut.rs rename to tests/ui/unboxed-closures/unboxed-closures-blanket-fn-mut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-blanket-fn.rs b/tests/ui/unboxed-closures/unboxed-closures-blanket-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-blanket-fn.rs rename to tests/ui/unboxed-closures/unboxed-closures-blanket-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-borrow-conflict.rs b/tests/ui/unboxed-closures/unboxed-closures-borrow-conflict.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-borrow-conflict.rs rename to tests/ui/unboxed-closures/unboxed-closures-borrow-conflict.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-borrow-conflict.stderr b/tests/ui/unboxed-closures/unboxed-closures-borrow-conflict.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-borrow-conflict.stderr rename to tests/ui/unboxed-closures/unboxed-closures-borrow-conflict.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-boxed.rs b/tests/ui/unboxed-closures/unboxed-closures-boxed.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-boxed.rs rename to tests/ui/unboxed-closures/unboxed-closures-boxed.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-by-ref.rs b/tests/ui/unboxed-closures/unboxed-closures-by-ref.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-by-ref.rs rename to tests/ui/unboxed-closures/unboxed-closures-by-ref.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-call-fn-autoderef.rs b/tests/ui/unboxed-closures/unboxed-closures-call-fn-autoderef.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-call-fn-autoderef.rs rename to tests/ui/unboxed-closures/unboxed-closures-call-fn-autoderef.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-call-sugar-autoderef.rs b/tests/ui/unboxed-closures/unboxed-closures-call-sugar-autoderef.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-call-sugar-autoderef.rs rename to tests/ui/unboxed-closures/unboxed-closures-call-sugar-autoderef.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-call-sugar-object-autoderef.rs b/tests/ui/unboxed-closures/unboxed-closures-call-sugar-object-autoderef.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-call-sugar-object-autoderef.rs rename to tests/ui/unboxed-closures/unboxed-closures-call-sugar-object-autoderef.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-call-sugar-object.rs b/tests/ui/unboxed-closures/unboxed-closures-call-sugar-object.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-call-sugar-object.rs rename to tests/ui/unboxed-closures/unboxed-closures-call-sugar-object.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-counter-not-moved.rs b/tests/ui/unboxed-closures/unboxed-closures-counter-not-moved.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-counter-not-moved.rs rename to tests/ui/unboxed-closures/unboxed-closures-counter-not-moved.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-counter-not-moved.stderr b/tests/ui/unboxed-closures/unboxed-closures-counter-not-moved.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-counter-not-moved.stderr rename to tests/ui/unboxed-closures/unboxed-closures-counter-not-moved.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-cross-crate.rs b/tests/ui/unboxed-closures/unboxed-closures-cross-crate.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-cross-crate.rs rename to tests/ui/unboxed-closures/unboxed-closures-cross-crate.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-direct-sugary-call.rs b/tests/ui/unboxed-closures/unboxed-closures-direct-sugary-call.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-direct-sugary-call.rs rename to tests/ui/unboxed-closures/unboxed-closures-direct-sugary-call.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-drop.rs b/tests/ui/unboxed-closures/unboxed-closures-drop.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-drop.rs rename to tests/ui/unboxed-closures/unboxed-closures-drop.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-extern-fn-hr.rs b/tests/ui/unboxed-closures/unboxed-closures-extern-fn-hr.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-extern-fn-hr.rs rename to tests/ui/unboxed-closures/unboxed-closures-extern-fn-hr.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-extern-fn.rs b/tests/ui/unboxed-closures/unboxed-closures-extern-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-extern-fn.rs rename to tests/ui/unboxed-closures/unboxed-closures-extern-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.rs b/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.rs rename to tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.stderr b/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.stderr rename to tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-1.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.rs b/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.rs rename to tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr b/tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr rename to tests/ui/unboxed-closures/unboxed-closures-failed-recursive-fn-2.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-fn-as-fnmut-and-fnonce.rs b/tests/ui/unboxed-closures/unboxed-closures-fn-as-fnmut-and-fnonce.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-fn-as-fnmut-and-fnonce.rs rename to tests/ui/unboxed-closures/unboxed-closures-fn-as-fnmut-and-fnonce.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.rs b/tests/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.rs rename to tests/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.stderr b/tests/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.stderr rename to tests/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fnonce.rs b/tests/ui/unboxed-closures/unboxed-closures-fnmut-as-fnonce.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fnonce.rs rename to tests/ui/unboxed-closures/unboxed-closures-fnmut-as-fnonce.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-generic.rs b/tests/ui/unboxed-closures/unboxed-closures-generic.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-generic.rs rename to tests/ui/unboxed-closures/unboxed-closures-generic.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-bound.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-bound.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-bound.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-bound.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-object-type.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-object-type.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-object-type.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-arg-types-from-expected-object-type.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-w-bound-regs-from-expected-bound.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-arg-types-w-bound-regs-from-expected-bound.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-w-bound-regs-from-expected-bound.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-arg-types-w-bound-regs-from-expected-bound.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-explicit-call-early.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-explicit-call-early.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-explicit-call-early.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-explicit-call-early.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-fn-once-move-from-projection.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut-no-mut.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-calling-fnmut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-missing-mut.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-move-missing-mut.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-move.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut-move.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut-move.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnmut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnmut.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnmut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr b/tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-move-call-twice.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-move.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-move.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnonce-move.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-fnonce.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-fnonce.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-kind.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-kind.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-kind.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-kind.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-recursive-fn.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-recursive-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-recursive-fn.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-recursive-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-infer-upvar.rs b/tests/ui/unboxed-closures/unboxed-closures-infer-upvar.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-infer-upvar.rs rename to tests/ui/unboxed-closures/unboxed-closures-infer-upvar.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-manual-impl.rs b/tests/ui/unboxed-closures/unboxed-closures-manual-impl.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-manual-impl.rs rename to tests/ui/unboxed-closures/unboxed-closures-manual-impl.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-monomorphization.rs b/tests/ui/unboxed-closures/unboxed-closures-monomorphization.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-monomorphization.rs rename to tests/ui/unboxed-closures/unboxed-closures-monomorphization.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-move-from-projection-issue-30046.rs b/tests/ui/unboxed-closures/unboxed-closures-move-from-projection-issue-30046.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-move-from-projection-issue-30046.rs rename to tests/ui/unboxed-closures/unboxed-closures-move-from-projection-issue-30046.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-move-mutable.rs b/tests/ui/unboxed-closures/unboxed-closures-move-mutable.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-move-mutable.rs rename to tests/ui/unboxed-closures/unboxed-closures-move-mutable.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-move-mutable.stderr b/tests/ui/unboxed-closures/unboxed-closures-move-mutable.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-move-mutable.stderr rename to tests/ui/unboxed-closures/unboxed-closures-move-mutable.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-move-some-upvars-in-by-ref-closure.rs b/tests/ui/unboxed-closures/unboxed-closures-move-some-upvars-in-by-ref-closure.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-move-some-upvars-in-by-ref-closure.rs rename to tests/ui/unboxed-closures/unboxed-closures-move-some-upvars-in-by-ref-closure.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-mutate-upvar.rs b/tests/ui/unboxed-closures/unboxed-closures-mutate-upvar.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-mutate-upvar.rs rename to tests/ui/unboxed-closures/unboxed-closures-mutate-upvar.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-mutate-upvar.stderr b/tests/ui/unboxed-closures/unboxed-closures-mutate-upvar.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-mutate-upvar.stderr rename to tests/ui/unboxed-closures/unboxed-closures-mutate-upvar.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.rs b/tests/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.rs rename to tests/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.stderr b/tests/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.stderr rename to tests/ui/unboxed-closures/unboxed-closures-mutated-upvar-from-fn-closure.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-prelude.rs b/tests/ui/unboxed-closures/unboxed-closures-prelude.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-prelude.rs rename to tests/ui/unboxed-closures/unboxed-closures-prelude.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.rs b/tests/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.rs rename to tests/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr b/tests/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr rename to tests/ui/unboxed-closures/unboxed-closures-recursive-fn-using-fn-mut.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-simple.rs b/tests/ui/unboxed-closures/unboxed-closures-simple.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-simple.rs rename to tests/ui/unboxed-closures/unboxed-closures-simple.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-single-word-env.rs b/tests/ui/unboxed-closures/unboxed-closures-single-word-env.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-single-word-env.rs rename to tests/ui/unboxed-closures/unboxed-closures-single-word-env.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs b/tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs rename to tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs b/tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs rename to tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.stderr b/tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.stderr rename to tests/ui/unboxed-closures/unboxed-closures-static-call-wrong-trait.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-sugar-object.rs b/tests/ui/unboxed-closures/unboxed-closures-sugar-object.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-sugar-object.rs rename to tests/ui/unboxed-closures/unboxed-closures-sugar-object.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs b/tests/ui/unboxed-closures/unboxed-closures-type-mismatch.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs rename to tests/ui/unboxed-closures/unboxed-closures-type-mismatch.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.stderr b/tests/ui/unboxed-closures/unboxed-closures-type-mismatch.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.stderr rename to tests/ui/unboxed-closures/unboxed-closures-type-mismatch.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-unique-type-id.rs b/tests/ui/unboxed-closures/unboxed-closures-unique-type-id.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-unique-type-id.rs rename to tests/ui/unboxed-closures/unboxed-closures-unique-type-id.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.rs b/tests/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.rs rename to tests/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.stderr b/tests/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.stderr rename to tests/ui/unboxed-closures/unboxed-closures-unsafe-extern-fn.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-wrong-abi.rs b/tests/ui/unboxed-closures/unboxed-closures-wrong-abi.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-wrong-abi.rs rename to tests/ui/unboxed-closures/unboxed-closures-wrong-abi.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-wrong-abi.stderr b/tests/ui/unboxed-closures/unboxed-closures-wrong-abi.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-wrong-abi.stderr rename to tests/ui/unboxed-closures/unboxed-closures-wrong-abi.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.rs b/tests/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.rs rename to tests/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.rs diff --git a/src/test/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.stderr b/tests/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.stderr similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.stderr rename to tests/ui/unboxed-closures/unboxed-closures-wrong-arg-type-extern-fn.stderr diff --git a/src/test/ui/unboxed-closures/unboxed-closures-zero-args.rs b/tests/ui/unboxed-closures/unboxed-closures-zero-args.rs similarity index 100% rename from src/test/ui/unboxed-closures/unboxed-closures-zero-args.rs rename to tests/ui/unboxed-closures/unboxed-closures-zero-args.rs diff --git a/src/test/ui/unconstrained-none.rs b/tests/ui/unconstrained-none.rs similarity index 100% rename from src/test/ui/unconstrained-none.rs rename to tests/ui/unconstrained-none.rs diff --git a/src/test/ui/unconstrained-none.stderr b/tests/ui/unconstrained-none.stderr similarity index 100% rename from src/test/ui/unconstrained-none.stderr rename to tests/ui/unconstrained-none.stderr diff --git a/src/test/ui/unconstrained-ref.rs b/tests/ui/unconstrained-ref.rs similarity index 100% rename from src/test/ui/unconstrained-ref.rs rename to tests/ui/unconstrained-ref.rs diff --git a/src/test/ui/unconstrained-ref.stderr b/tests/ui/unconstrained-ref.stderr similarity index 100% rename from src/test/ui/unconstrained-ref.stderr rename to tests/ui/unconstrained-ref.stderr diff --git a/src/test/ui/underscore-ident-matcher.rs b/tests/ui/underscore-ident-matcher.rs similarity index 100% rename from src/test/ui/underscore-ident-matcher.rs rename to tests/ui/underscore-ident-matcher.rs diff --git a/src/test/ui/underscore-ident-matcher.stderr b/tests/ui/underscore-ident-matcher.stderr similarity index 100% rename from src/test/ui/underscore-ident-matcher.stderr rename to tests/ui/underscore-ident-matcher.stderr diff --git a/src/test/ui/underscore-imports/auxiliary/duplicate.rs b/tests/ui/underscore-imports/auxiliary/duplicate.rs similarity index 100% rename from src/test/ui/underscore-imports/auxiliary/duplicate.rs rename to tests/ui/underscore-imports/auxiliary/duplicate.rs diff --git a/src/test/ui/underscore-imports/auxiliary/underscore-imports.rs b/tests/ui/underscore-imports/auxiliary/underscore-imports.rs similarity index 100% rename from src/test/ui/underscore-imports/auxiliary/underscore-imports.rs rename to tests/ui/underscore-imports/auxiliary/underscore-imports.rs diff --git a/src/test/ui/underscore-imports/basic.rs b/tests/ui/underscore-imports/basic.rs similarity index 100% rename from src/test/ui/underscore-imports/basic.rs rename to tests/ui/underscore-imports/basic.rs diff --git a/src/test/ui/underscore-imports/basic.stderr b/tests/ui/underscore-imports/basic.stderr similarity index 100% rename from src/test/ui/underscore-imports/basic.stderr rename to tests/ui/underscore-imports/basic.stderr diff --git a/src/test/ui/underscore-imports/cycle.rs b/tests/ui/underscore-imports/cycle.rs similarity index 100% rename from src/test/ui/underscore-imports/cycle.rs rename to tests/ui/underscore-imports/cycle.rs diff --git a/src/test/ui/underscore-imports/duplicate.rs b/tests/ui/underscore-imports/duplicate.rs similarity index 100% rename from src/test/ui/underscore-imports/duplicate.rs rename to tests/ui/underscore-imports/duplicate.rs diff --git a/src/test/ui/underscore-imports/hygiene-2.rs b/tests/ui/underscore-imports/hygiene-2.rs similarity index 100% rename from src/test/ui/underscore-imports/hygiene-2.rs rename to tests/ui/underscore-imports/hygiene-2.rs diff --git a/src/test/ui/underscore-imports/hygiene.rs b/tests/ui/underscore-imports/hygiene.rs similarity index 100% rename from src/test/ui/underscore-imports/hygiene.rs rename to tests/ui/underscore-imports/hygiene.rs diff --git a/src/test/ui/underscore-imports/intercrate.rs b/tests/ui/underscore-imports/intercrate.rs similarity index 100% rename from src/test/ui/underscore-imports/intercrate.rs rename to tests/ui/underscore-imports/intercrate.rs diff --git a/src/test/ui/underscore-imports/macro-expanded.rs b/tests/ui/underscore-imports/macro-expanded.rs similarity index 100% rename from src/test/ui/underscore-imports/macro-expanded.rs rename to tests/ui/underscore-imports/macro-expanded.rs diff --git a/src/test/ui/underscore-imports/shadow.rs b/tests/ui/underscore-imports/shadow.rs similarity index 100% rename from src/test/ui/underscore-imports/shadow.rs rename to tests/ui/underscore-imports/shadow.rs diff --git a/src/test/ui/underscore-imports/shadow.stderr b/tests/ui/underscore-imports/shadow.stderr similarity index 100% rename from src/test/ui/underscore-imports/shadow.stderr rename to tests/ui/underscore-imports/shadow.stderr diff --git a/src/test/ui/underscore-imports/unused-2018.rs b/tests/ui/underscore-imports/unused-2018.rs similarity index 100% rename from src/test/ui/underscore-imports/unused-2018.rs rename to tests/ui/underscore-imports/unused-2018.rs diff --git a/src/test/ui/underscore-imports/unused-2018.stderr b/tests/ui/underscore-imports/unused-2018.stderr similarity index 100% rename from src/test/ui/underscore-imports/unused-2018.stderr rename to tests/ui/underscore-imports/unused-2018.stderr diff --git a/src/test/ui/underscore-lifetime/dyn-trait-underscore-in-struct.rs b/tests/ui/underscore-lifetime/dyn-trait-underscore-in-struct.rs similarity index 100% rename from src/test/ui/underscore-lifetime/dyn-trait-underscore-in-struct.rs rename to tests/ui/underscore-lifetime/dyn-trait-underscore-in-struct.rs diff --git a/src/test/ui/underscore-lifetime/dyn-trait-underscore-in-struct.stderr b/tests/ui/underscore-lifetime/dyn-trait-underscore-in-struct.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/dyn-trait-underscore-in-struct.stderr rename to tests/ui/underscore-lifetime/dyn-trait-underscore-in-struct.stderr diff --git a/src/test/ui/underscore-lifetime/dyn-trait-underscore.rs b/tests/ui/underscore-lifetime/dyn-trait-underscore.rs similarity index 100% rename from src/test/ui/underscore-lifetime/dyn-trait-underscore.rs rename to tests/ui/underscore-lifetime/dyn-trait-underscore.rs diff --git a/src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr b/tests/ui/underscore-lifetime/dyn-trait-underscore.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/dyn-trait-underscore.stderr rename to tests/ui/underscore-lifetime/dyn-trait-underscore.stderr diff --git a/src/test/ui/underscore-lifetime/in-binder.rs b/tests/ui/underscore-lifetime/in-binder.rs similarity index 100% rename from src/test/ui/underscore-lifetime/in-binder.rs rename to tests/ui/underscore-lifetime/in-binder.rs diff --git a/src/test/ui/underscore-lifetime/in-binder.stderr b/tests/ui/underscore-lifetime/in-binder.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/in-binder.stderr rename to tests/ui/underscore-lifetime/in-binder.stderr diff --git a/src/test/ui/underscore-lifetime/in-fn-return-illegal.rs b/tests/ui/underscore-lifetime/in-fn-return-illegal.rs similarity index 100% rename from src/test/ui/underscore-lifetime/in-fn-return-illegal.rs rename to tests/ui/underscore-lifetime/in-fn-return-illegal.rs diff --git a/src/test/ui/underscore-lifetime/in-fn-return-illegal.stderr b/tests/ui/underscore-lifetime/in-fn-return-illegal.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/in-fn-return-illegal.stderr rename to tests/ui/underscore-lifetime/in-fn-return-illegal.stderr diff --git a/src/test/ui/underscore-lifetime/in-struct.rs b/tests/ui/underscore-lifetime/in-struct.rs similarity index 100% rename from src/test/ui/underscore-lifetime/in-struct.rs rename to tests/ui/underscore-lifetime/in-struct.rs diff --git a/src/test/ui/underscore-lifetime/in-struct.stderr b/tests/ui/underscore-lifetime/in-struct.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/in-struct.stderr rename to tests/ui/underscore-lifetime/in-struct.stderr diff --git a/src/test/ui/underscore-lifetime/underscore-lifetime-binders.rs b/tests/ui/underscore-lifetime/underscore-lifetime-binders.rs similarity index 100% rename from src/test/ui/underscore-lifetime/underscore-lifetime-binders.rs rename to tests/ui/underscore-lifetime/underscore-lifetime-binders.rs diff --git a/src/test/ui/underscore-lifetime/underscore-lifetime-binders.stderr b/tests/ui/underscore-lifetime/underscore-lifetime-binders.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/underscore-lifetime-binders.stderr rename to tests/ui/underscore-lifetime/underscore-lifetime-binders.stderr diff --git a/src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs b/tests/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs similarity index 100% rename from src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs rename to tests/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs diff --git a/src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.stderr b/tests/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.stderr rename to tests/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.stderr diff --git a/src/test/ui/underscore-lifetime/underscore-outlives-bounds.rs b/tests/ui/underscore-lifetime/underscore-outlives-bounds.rs similarity index 100% rename from src/test/ui/underscore-lifetime/underscore-outlives-bounds.rs rename to tests/ui/underscore-lifetime/underscore-outlives-bounds.rs diff --git a/src/test/ui/underscore-lifetime/underscore-outlives-bounds.stderr b/tests/ui/underscore-lifetime/underscore-outlives-bounds.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/underscore-outlives-bounds.stderr rename to tests/ui/underscore-lifetime/underscore-outlives-bounds.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rs b/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rs similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rs rename to tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rs diff --git a/src/test/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2015.stderr b/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2015.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2015.stderr rename to tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2015.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2018.stderr b/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2018.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2018.stderr rename to tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand.rust2018.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs b/tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs rename to tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rs diff --git a/src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2015.stderr b/tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2015.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2015.stderr rename to tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2015.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2018.stderr b/tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2018.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2018.stderr rename to tests/ui/underscore-lifetime/where-clause-inherent-impl-underscore.rust2018.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs b/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs rename to tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rust2015.stderr b/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rust2015.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rust2015.stderr rename to tests/ui/underscore-lifetime/where-clause-trait-impl-region.rust2015.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rust2018.stderr b/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rust2018.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rust2018.stderr rename to tests/ui/underscore-lifetime/where-clause-trait-impl-region.rust2018.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rs b/tests/ui/underscore-lifetime/where-clause-trait-impl-underscore.rs similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rs rename to tests/ui/underscore-lifetime/where-clause-trait-impl-underscore.rs diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2015.stderr b/tests/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2015.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2015.stderr rename to tests/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2015.stderr diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2018.stderr b/tests/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2018.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2018.stderr rename to tests/ui/underscore-lifetime/where-clause-trait-impl-underscore.rust2018.stderr diff --git a/src/test/ui/underscore-lifetime/where-clauses.rs b/tests/ui/underscore-lifetime/where-clauses.rs similarity index 100% rename from src/test/ui/underscore-lifetime/where-clauses.rs rename to tests/ui/underscore-lifetime/where-clauses.rs diff --git a/src/test/ui/underscore-lifetime/where-clauses.stderr b/tests/ui/underscore-lifetime/where-clauses.stderr similarity index 100% rename from src/test/ui/underscore-lifetime/where-clauses.stderr rename to tests/ui/underscore-lifetime/where-clauses.stderr diff --git a/src/test/ui/underscore-lifetimes.rs b/tests/ui/underscore-lifetimes.rs similarity index 100% rename from src/test/ui/underscore-lifetimes.rs rename to tests/ui/underscore-lifetimes.rs diff --git a/src/test/ui/underscore-method-after-integer.rs b/tests/ui/underscore-method-after-integer.rs similarity index 100% rename from src/test/ui/underscore-method-after-integer.rs rename to tests/ui/underscore-method-after-integer.rs diff --git a/src/test/ui/unevaluated_fixed_size_array_len.rs b/tests/ui/unevaluated_fixed_size_array_len.rs similarity index 100% rename from src/test/ui/unevaluated_fixed_size_array_len.rs rename to tests/ui/unevaluated_fixed_size_array_len.rs diff --git a/src/test/ui/unevaluated_fixed_size_array_len.stderr b/tests/ui/unevaluated_fixed_size_array_len.stderr similarity index 100% rename from src/test/ui/unevaluated_fixed_size_array_len.stderr rename to tests/ui/unevaluated_fixed_size_array_len.stderr diff --git a/src/test/ui/uniform-paths/auxiliary/issue-53691.rs b/tests/ui/uniform-paths/auxiliary/issue-53691.rs similarity index 100% rename from src/test/ui/uniform-paths/auxiliary/issue-53691.rs rename to tests/ui/uniform-paths/auxiliary/issue-53691.rs diff --git a/src/test/ui/uniform-paths/basic-nested.rs b/tests/ui/uniform-paths/basic-nested.rs similarity index 100% rename from src/test/ui/uniform-paths/basic-nested.rs rename to tests/ui/uniform-paths/basic-nested.rs diff --git a/src/test/ui/uniform-paths/basic.rs b/tests/ui/uniform-paths/basic.rs similarity index 100% rename from src/test/ui/uniform-paths/basic.rs rename to tests/ui/uniform-paths/basic.rs diff --git a/src/test/ui/uniform-paths/issue-53691.rs b/tests/ui/uniform-paths/issue-53691.rs similarity index 100% rename from src/test/ui/uniform-paths/issue-53691.rs rename to tests/ui/uniform-paths/issue-53691.rs diff --git a/src/test/ui/uniform-paths/macros-nested.rs b/tests/ui/uniform-paths/macros-nested.rs similarity index 100% rename from src/test/ui/uniform-paths/macros-nested.rs rename to tests/ui/uniform-paths/macros-nested.rs diff --git a/src/test/ui/uniform-paths/macros.rs b/tests/ui/uniform-paths/macros.rs similarity index 100% rename from src/test/ui/uniform-paths/macros.rs rename to tests/ui/uniform-paths/macros.rs diff --git a/src/test/ui/uniform-paths/same-crate.rs b/tests/ui/uniform-paths/same-crate.rs similarity index 100% rename from src/test/ui/uniform-paths/same-crate.rs rename to tests/ui/uniform-paths/same-crate.rs diff --git a/src/test/ui/uninhabited/exhaustive-wo-nevertype-issue-51221.rs b/tests/ui/uninhabited/exhaustive-wo-nevertype-issue-51221.rs similarity index 100% rename from src/test/ui/uninhabited/exhaustive-wo-nevertype-issue-51221.rs rename to tests/ui/uninhabited/exhaustive-wo-nevertype-issue-51221.rs diff --git a/src/test/ui/uninhabited/privately-uninhabited-dead-code.rs b/tests/ui/uninhabited/privately-uninhabited-dead-code.rs similarity index 100% rename from src/test/ui/uninhabited/privately-uninhabited-dead-code.rs rename to tests/ui/uninhabited/privately-uninhabited-dead-code.rs diff --git a/src/test/ui/uninhabited/privately-uninhabited-mir-call.rs b/tests/ui/uninhabited/privately-uninhabited-mir-call.rs similarity index 100% rename from src/test/ui/uninhabited/privately-uninhabited-mir-call.rs rename to tests/ui/uninhabited/privately-uninhabited-mir-call.rs diff --git a/src/test/ui/uninhabited/privately-uninhabited-mir-call.stderr b/tests/ui/uninhabited/privately-uninhabited-mir-call.stderr similarity index 100% rename from src/test/ui/uninhabited/privately-uninhabited-mir-call.stderr rename to tests/ui/uninhabited/privately-uninhabited-mir-call.stderr diff --git a/src/test/ui/uninhabited/uninhabited-enum-cast.rs b/tests/ui/uninhabited/uninhabited-enum-cast.rs similarity index 100% rename from src/test/ui/uninhabited/uninhabited-enum-cast.rs rename to tests/ui/uninhabited/uninhabited-enum-cast.rs diff --git a/src/test/ui/uninhabited/uninhabited-irrefutable.rs b/tests/ui/uninhabited/uninhabited-irrefutable.rs similarity index 100% rename from src/test/ui/uninhabited/uninhabited-irrefutable.rs rename to tests/ui/uninhabited/uninhabited-irrefutable.rs diff --git a/src/test/ui/uninhabited/uninhabited-irrefutable.stderr b/tests/ui/uninhabited/uninhabited-irrefutable.stderr similarity index 100% rename from src/test/ui/uninhabited/uninhabited-irrefutable.stderr rename to tests/ui/uninhabited/uninhabited-irrefutable.stderr diff --git a/src/test/ui/uninhabited/uninhabited-matches-feature-gated.rs b/tests/ui/uninhabited/uninhabited-matches-feature-gated.rs similarity index 100% rename from src/test/ui/uninhabited/uninhabited-matches-feature-gated.rs rename to tests/ui/uninhabited/uninhabited-matches-feature-gated.rs diff --git a/src/test/ui/uninhabited/uninhabited-matches-feature-gated.stderr b/tests/ui/uninhabited/uninhabited-matches-feature-gated.stderr similarity index 100% rename from src/test/ui/uninhabited/uninhabited-matches-feature-gated.stderr rename to tests/ui/uninhabited/uninhabited-matches-feature-gated.stderr diff --git a/src/test/ui/uninhabited/uninhabited-patterns.rs b/tests/ui/uninhabited/uninhabited-patterns.rs similarity index 100% rename from src/test/ui/uninhabited/uninhabited-patterns.rs rename to tests/ui/uninhabited/uninhabited-patterns.rs diff --git a/src/test/ui/uninhabited/uninhabited-patterns.stderr b/tests/ui/uninhabited/uninhabited-patterns.stderr similarity index 100% rename from src/test/ui/uninhabited/uninhabited-patterns.stderr rename to tests/ui/uninhabited/uninhabited-patterns.stderr diff --git a/src/test/ui/uninit-empty-types.rs b/tests/ui/uninit-empty-types.rs similarity index 100% rename from src/test/ui/uninit-empty-types.rs rename to tests/ui/uninit-empty-types.rs diff --git a/src/test/ui/union/auxiliary/union.rs b/tests/ui/union/auxiliary/union.rs similarity index 100% rename from src/test/ui/union/auxiliary/union.rs rename to tests/ui/union/auxiliary/union.rs diff --git a/src/test/ui/union/field_checks.rs b/tests/ui/union/field_checks.rs similarity index 100% rename from src/test/ui/union/field_checks.rs rename to tests/ui/union/field_checks.rs diff --git a/src/test/ui/union/field_checks.stderr b/tests/ui/union/field_checks.stderr similarity index 100% rename from src/test/ui/union/field_checks.stderr rename to tests/ui/union/field_checks.stderr diff --git a/src/test/ui/union/issue-41073.rs b/tests/ui/union/issue-41073.rs similarity index 100% rename from src/test/ui/union/issue-41073.rs rename to tests/ui/union/issue-41073.rs diff --git a/src/test/ui/union/issue-41073.stderr b/tests/ui/union/issue-41073.stderr similarity index 100% rename from src/test/ui/union/issue-41073.stderr rename to tests/ui/union/issue-41073.stderr diff --git a/src/test/ui/union/issue-81199.rs b/tests/ui/union/issue-81199.rs similarity index 100% rename from src/test/ui/union/issue-81199.rs rename to tests/ui/union/issue-81199.rs diff --git a/src/test/ui/union/issue-81199.stderr b/tests/ui/union/issue-81199.stderr similarity index 100% rename from src/test/ui/union/issue-81199.stderr rename to tests/ui/union/issue-81199.stderr diff --git a/src/test/ui/union/issue-99375.rs b/tests/ui/union/issue-99375.rs similarity index 100% rename from src/test/ui/union/issue-99375.rs rename to tests/ui/union/issue-99375.rs diff --git a/src/test/ui/union/union-align.rs b/tests/ui/union/union-align.rs similarity index 100% rename from src/test/ui/union/union-align.rs rename to tests/ui/union/union-align.rs diff --git a/src/test/ui/union/union-backcomp.rs b/tests/ui/union/union-backcomp.rs similarity index 100% rename from src/test/ui/union/union-backcomp.rs rename to tests/ui/union/union-backcomp.rs diff --git a/src/test/ui/union/union-basic.rs b/tests/ui/union/union-basic.rs similarity index 100% rename from src/test/ui/union/union-basic.rs rename to tests/ui/union/union-basic.rs diff --git a/src/test/ui/union/union-borrow-move-parent-sibling.mirunsafeck.stderr b/tests/ui/union/union-borrow-move-parent-sibling.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-borrow-move-parent-sibling.mirunsafeck.stderr rename to tests/ui/union/union-borrow-move-parent-sibling.mirunsafeck.stderr diff --git a/src/test/ui/union/union-borrow-move-parent-sibling.rs b/tests/ui/union/union-borrow-move-parent-sibling.rs similarity index 100% rename from src/test/ui/union/union-borrow-move-parent-sibling.rs rename to tests/ui/union/union-borrow-move-parent-sibling.rs diff --git a/src/test/ui/union/union-borrow-move-parent-sibling.thirunsafeck.stderr b/tests/ui/union/union-borrow-move-parent-sibling.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-borrow-move-parent-sibling.thirunsafeck.stderr rename to tests/ui/union/union-borrow-move-parent-sibling.thirunsafeck.stderr diff --git a/src/test/ui/union/union-const-codegen.rs b/tests/ui/union/union-const-codegen.rs similarity index 100% rename from src/test/ui/union/union-const-codegen.rs rename to tests/ui/union/union-const-codegen.rs diff --git a/src/test/ui/union/union-const-eval-field.rs b/tests/ui/union/union-const-eval-field.rs similarity index 100% rename from src/test/ui/union/union-const-eval-field.rs rename to tests/ui/union/union-const-eval-field.rs diff --git a/src/test/ui/union/union-const-eval.rs b/tests/ui/union/union-const-eval.rs similarity index 100% rename from src/test/ui/union/union-const-eval.rs rename to tests/ui/union/union-const-eval.rs diff --git a/src/test/ui/union/union-const-pat.rs b/tests/ui/union/union-const-pat.rs similarity index 100% rename from src/test/ui/union/union-const-pat.rs rename to tests/ui/union/union-const-pat.rs diff --git a/src/test/ui/union/union-const-pat.stderr b/tests/ui/union/union-const-pat.stderr similarity index 100% rename from src/test/ui/union/union-const-pat.stderr rename to tests/ui/union/union-const-pat.stderr diff --git a/src/test/ui/union/union-copy.rs b/tests/ui/union/union-copy.rs similarity index 100% rename from src/test/ui/union/union-copy.rs rename to tests/ui/union/union-copy.rs diff --git a/src/test/ui/union/union-copy.stderr b/tests/ui/union/union-copy.stderr similarity index 100% rename from src/test/ui/union/union-copy.stderr rename to tests/ui/union/union-copy.stderr diff --git a/src/test/ui/union/union-deref.mirunsafeck.stderr b/tests/ui/union/union-deref.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-deref.mirunsafeck.stderr rename to tests/ui/union/union-deref.mirunsafeck.stderr diff --git a/src/test/ui/union/union-deref.rs b/tests/ui/union/union-deref.rs similarity index 100% rename from src/test/ui/union/union-deref.rs rename to tests/ui/union/union-deref.rs diff --git a/src/test/ui/union/union-deref.thirunsafeck.stderr b/tests/ui/union/union-deref.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-deref.thirunsafeck.stderr rename to tests/ui/union/union-deref.thirunsafeck.stderr diff --git a/src/test/ui/union/union-derive-clone.mirunsafeck.stderr b/tests/ui/union/union-derive-clone.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-derive-clone.mirunsafeck.stderr rename to tests/ui/union/union-derive-clone.mirunsafeck.stderr diff --git a/src/test/ui/union/union-derive-clone.rs b/tests/ui/union/union-derive-clone.rs similarity index 100% rename from src/test/ui/union/union-derive-clone.rs rename to tests/ui/union/union-derive-clone.rs diff --git a/src/test/ui/union/union-derive-clone.thirunsafeck.stderr b/tests/ui/union/union-derive-clone.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-derive-clone.thirunsafeck.stderr rename to tests/ui/union/union-derive-clone.thirunsafeck.stderr diff --git a/src/test/ui/union/union-derive-eq.mirunsafeck.stderr b/tests/ui/union/union-derive-eq.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-derive-eq.mirunsafeck.stderr rename to tests/ui/union/union-derive-eq.mirunsafeck.stderr diff --git a/src/test/ui/union/union-derive-eq.rs b/tests/ui/union/union-derive-eq.rs similarity index 100% rename from src/test/ui/union/union-derive-eq.rs rename to tests/ui/union/union-derive-eq.rs diff --git a/src/test/ui/union/union-derive-eq.thirunsafeck.stderr b/tests/ui/union/union-derive-eq.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-derive-eq.thirunsafeck.stderr rename to tests/ui/union/union-derive-eq.thirunsafeck.stderr diff --git a/src/test/ui/union/union-derive-rpass.rs b/tests/ui/union/union-derive-rpass.rs similarity index 100% rename from src/test/ui/union/union-derive-rpass.rs rename to tests/ui/union/union-derive-rpass.rs diff --git a/src/test/ui/union/union-derive.rs b/tests/ui/union/union-derive.rs similarity index 100% rename from src/test/ui/union/union-derive.rs rename to tests/ui/union/union-derive.rs diff --git a/src/test/ui/union/union-derive.stderr b/tests/ui/union/union-derive.stderr similarity index 100% rename from src/test/ui/union/union-derive.stderr rename to tests/ui/union/union-derive.stderr diff --git a/src/test/ui/union/union-drop-assign.rs b/tests/ui/union/union-drop-assign.rs similarity index 100% rename from src/test/ui/union/union-drop-assign.rs rename to tests/ui/union/union-drop-assign.rs diff --git a/src/test/ui/union/union-drop.rs b/tests/ui/union/union-drop.rs similarity index 100% rename from src/test/ui/union/union-drop.rs rename to tests/ui/union/union-drop.rs diff --git a/src/test/ui/union/union-empty.rs b/tests/ui/union/union-empty.rs similarity index 100% rename from src/test/ui/union/union-empty.rs rename to tests/ui/union/union-empty.rs diff --git a/src/test/ui/union/union-empty.stderr b/tests/ui/union/union-empty.stderr similarity index 100% rename from src/test/ui/union/union-empty.stderr rename to tests/ui/union/union-empty.stderr diff --git a/src/test/ui/union/union-fields-1.mirunsafeck.stderr b/tests/ui/union/union-fields-1.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-fields-1.mirunsafeck.stderr rename to tests/ui/union/union-fields-1.mirunsafeck.stderr diff --git a/src/test/ui/union/union-fields-1.rs b/tests/ui/union/union-fields-1.rs similarity index 100% rename from src/test/ui/union/union-fields-1.rs rename to tests/ui/union/union-fields-1.rs diff --git a/src/test/ui/union/union-fields-1.thirunsafeck.stderr b/tests/ui/union/union-fields-1.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-fields-1.thirunsafeck.stderr rename to tests/ui/union/union-fields-1.thirunsafeck.stderr diff --git a/src/test/ui/union/union-fields-2.mirunsafeck.stderr b/tests/ui/union/union-fields-2.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-fields-2.mirunsafeck.stderr rename to tests/ui/union/union-fields-2.mirunsafeck.stderr diff --git a/src/test/ui/union/union-fields-2.rs b/tests/ui/union/union-fields-2.rs similarity index 100% rename from src/test/ui/union/union-fields-2.rs rename to tests/ui/union/union-fields-2.rs diff --git a/src/test/ui/union/union-fields-2.thirunsafeck.stderr b/tests/ui/union/union-fields-2.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-fields-2.thirunsafeck.stderr rename to tests/ui/union/union-fields-2.thirunsafeck.stderr diff --git a/src/test/ui/union/union-generic-rpass.rs b/tests/ui/union/union-generic-rpass.rs similarity index 100% rename from src/test/ui/union/union-generic-rpass.rs rename to tests/ui/union/union-generic-rpass.rs diff --git a/src/test/ui/union/union-generic.mirunsafeck.stderr b/tests/ui/union/union-generic.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-generic.mirunsafeck.stderr rename to tests/ui/union/union-generic.mirunsafeck.stderr diff --git a/src/test/ui/union/union-generic.rs b/tests/ui/union/union-generic.rs similarity index 100% rename from src/test/ui/union/union-generic.rs rename to tests/ui/union/union-generic.rs diff --git a/src/test/ui/union/union-generic.thirunsafeck.stderr b/tests/ui/union/union-generic.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-generic.thirunsafeck.stderr rename to tests/ui/union/union-generic.thirunsafeck.stderr diff --git a/src/test/ui/union/union-inherent-method.rs b/tests/ui/union/union-inherent-method.rs similarity index 100% rename from src/test/ui/union/union-inherent-method.rs rename to tests/ui/union/union-inherent-method.rs diff --git a/src/test/ui/union/union-lint-dead-code.mirunsafeck.stderr b/tests/ui/union/union-lint-dead-code.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-lint-dead-code.mirunsafeck.stderr rename to tests/ui/union/union-lint-dead-code.mirunsafeck.stderr diff --git a/src/test/ui/union/union-lint-dead-code.rs b/tests/ui/union/union-lint-dead-code.rs similarity index 100% rename from src/test/ui/union/union-lint-dead-code.rs rename to tests/ui/union/union-lint-dead-code.rs diff --git a/src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr b/tests/ui/union/union-lint-dead-code.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-lint-dead-code.thirunsafeck.stderr rename to tests/ui/union/union-lint-dead-code.thirunsafeck.stderr diff --git a/src/test/ui/union/union-macro.rs b/tests/ui/union/union-macro.rs similarity index 100% rename from src/test/ui/union/union-macro.rs rename to tests/ui/union/union-macro.rs diff --git a/src/test/ui/union/union-manuallydrop-rpass.rs b/tests/ui/union/union-manuallydrop-rpass.rs similarity index 100% rename from src/test/ui/union/union-manuallydrop-rpass.rs rename to tests/ui/union/union-manuallydrop-rpass.rs diff --git a/src/test/ui/union/union-move.mirunsafeck.stderr b/tests/ui/union/union-move.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-move.mirunsafeck.stderr rename to tests/ui/union/union-move.mirunsafeck.stderr diff --git a/src/test/ui/union/union-move.rs b/tests/ui/union/union-move.rs similarity index 100% rename from src/test/ui/union/union-move.rs rename to tests/ui/union/union-move.rs diff --git a/src/test/ui/union/union-move.thirunsafeck.stderr b/tests/ui/union/union-move.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-move.thirunsafeck.stderr rename to tests/ui/union/union-move.thirunsafeck.stderr diff --git a/src/test/ui/union/union-nodrop.rs b/tests/ui/union/union-nodrop.rs similarity index 100% rename from src/test/ui/union/union-nodrop.rs rename to tests/ui/union/union-nodrop.rs diff --git a/src/test/ui/union/union-nonrepresentable.rs b/tests/ui/union/union-nonrepresentable.rs similarity index 100% rename from src/test/ui/union/union-nonrepresentable.rs rename to tests/ui/union/union-nonrepresentable.rs diff --git a/src/test/ui/union/union-nonrepresentable.stderr b/tests/ui/union/union-nonrepresentable.stderr similarity index 100% rename from src/test/ui/union/union-nonrepresentable.stderr rename to tests/ui/union/union-nonrepresentable.stderr diff --git a/src/test/ui/union/union-nonzero.rs b/tests/ui/union/union-nonzero.rs similarity index 100% rename from src/test/ui/union/union-nonzero.rs rename to tests/ui/union/union-nonzero.rs diff --git a/src/test/ui/union/union-overwrite.rs b/tests/ui/union/union-overwrite.rs similarity index 100% rename from src/test/ui/union/union-overwrite.rs rename to tests/ui/union/union-overwrite.rs diff --git a/src/test/ui/union/union-packed.rs b/tests/ui/union/union-packed.rs similarity index 100% rename from src/test/ui/union/union-packed.rs rename to tests/ui/union/union-packed.rs diff --git a/src/test/ui/union/union-pat-refutability.rs b/tests/ui/union/union-pat-refutability.rs similarity index 100% rename from src/test/ui/union/union-pat-refutability.rs rename to tests/ui/union/union-pat-refutability.rs diff --git a/src/test/ui/union/union-repr-c.rs b/tests/ui/union/union-repr-c.rs similarity index 100% rename from src/test/ui/union/union-repr-c.rs rename to tests/ui/union/union-repr-c.rs diff --git a/src/test/ui/union/union-repr-c.stderr b/tests/ui/union/union-repr-c.stderr similarity index 100% rename from src/test/ui/union/union-repr-c.stderr rename to tests/ui/union/union-repr-c.stderr diff --git a/src/test/ui/union/union-sized-field.rs b/tests/ui/union/union-sized-field.rs similarity index 100% rename from src/test/ui/union/union-sized-field.rs rename to tests/ui/union/union-sized-field.rs diff --git a/src/test/ui/union/union-sized-field.stderr b/tests/ui/union/union-sized-field.stderr similarity index 100% rename from src/test/ui/union/union-sized-field.stderr rename to tests/ui/union/union-sized-field.stderr diff --git a/src/test/ui/union/union-suggest-field.mirunsafeck.stderr b/tests/ui/union/union-suggest-field.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-suggest-field.mirunsafeck.stderr rename to tests/ui/union/union-suggest-field.mirunsafeck.stderr diff --git a/src/test/ui/union/union-suggest-field.rs b/tests/ui/union/union-suggest-field.rs similarity index 100% rename from src/test/ui/union/union-suggest-field.rs rename to tests/ui/union/union-suggest-field.rs diff --git a/src/test/ui/union/union-suggest-field.thirunsafeck.stderr b/tests/ui/union/union-suggest-field.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-suggest-field.thirunsafeck.stderr rename to tests/ui/union/union-suggest-field.thirunsafeck.stderr diff --git a/src/test/ui/union/union-trait-impl.rs b/tests/ui/union/union-trait-impl.rs similarity index 100% rename from src/test/ui/union/union-trait-impl.rs rename to tests/ui/union/union-trait-impl.rs diff --git a/src/test/ui/union/union-transmute.rs b/tests/ui/union/union-transmute.rs similarity index 100% rename from src/test/ui/union/union-transmute.rs rename to tests/ui/union/union-transmute.rs diff --git a/src/test/ui/union/union-unsafe.mir.stderr b/tests/ui/union/union-unsafe.mir.stderr similarity index 100% rename from src/test/ui/union/union-unsafe.mir.stderr rename to tests/ui/union/union-unsafe.mir.stderr diff --git a/src/test/ui/union/union-unsafe.rs b/tests/ui/union/union-unsafe.rs similarity index 100% rename from src/test/ui/union/union-unsafe.rs rename to tests/ui/union/union-unsafe.rs diff --git a/src/test/ui/union/union-unsafe.thir.stderr b/tests/ui/union/union-unsafe.thir.stderr similarity index 100% rename from src/test/ui/union/union-unsafe.thir.stderr rename to tests/ui/union/union-unsafe.thir.stderr diff --git a/src/test/ui/union/union-unsized.mirunsafeck.stderr b/tests/ui/union/union-unsized.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-unsized.mirunsafeck.stderr rename to tests/ui/union/union-unsized.mirunsafeck.stderr diff --git a/src/test/ui/union/union-unsized.rs b/tests/ui/union/union-unsized.rs similarity index 100% rename from src/test/ui/union/union-unsized.rs rename to tests/ui/union/union-unsized.rs diff --git a/src/test/ui/union/union-unsized.thirunsafeck.stderr b/tests/ui/union/union-unsized.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-unsized.thirunsafeck.stderr rename to tests/ui/union/union-unsized.thirunsafeck.stderr diff --git a/src/test/ui/union/union-with-drop-fields.mirunsafeck.stderr b/tests/ui/union/union-with-drop-fields.mirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-with-drop-fields.mirunsafeck.stderr rename to tests/ui/union/union-with-drop-fields.mirunsafeck.stderr diff --git a/src/test/ui/union/union-with-drop-fields.rs b/tests/ui/union/union-with-drop-fields.rs similarity index 100% rename from src/test/ui/union/union-with-drop-fields.rs rename to tests/ui/union/union-with-drop-fields.rs diff --git a/src/test/ui/union/union-with-drop-fields.thirunsafeck.stderr b/tests/ui/union/union-with-drop-fields.thirunsafeck.stderr similarity index 100% rename from src/test/ui/union/union-with-drop-fields.thirunsafeck.stderr rename to tests/ui/union/union-with-drop-fields.thirunsafeck.stderr diff --git a/src/test/ui/unique-object-noncopyable.rs b/tests/ui/unique-object-noncopyable.rs similarity index 100% rename from src/test/ui/unique-object-noncopyable.rs rename to tests/ui/unique-object-noncopyable.rs diff --git a/src/test/ui/unique-object-noncopyable.stderr b/tests/ui/unique-object-noncopyable.stderr similarity index 100% rename from src/test/ui/unique-object-noncopyable.stderr rename to tests/ui/unique-object-noncopyable.stderr diff --git a/src/test/ui/unique-pinned-nocopy.rs b/tests/ui/unique-pinned-nocopy.rs similarity index 100% rename from src/test/ui/unique-pinned-nocopy.rs rename to tests/ui/unique-pinned-nocopy.rs diff --git a/src/test/ui/unique-pinned-nocopy.stderr b/tests/ui/unique-pinned-nocopy.stderr similarity index 100% rename from src/test/ui/unique-pinned-nocopy.stderr rename to tests/ui/unique-pinned-nocopy.stderr diff --git a/src/test/ui/unique/unique-assign-copy.rs b/tests/ui/unique/unique-assign-copy.rs similarity index 100% rename from src/test/ui/unique/unique-assign-copy.rs rename to tests/ui/unique/unique-assign-copy.rs diff --git a/src/test/ui/unique/unique-assign-drop.rs b/tests/ui/unique/unique-assign-drop.rs similarity index 100% rename from src/test/ui/unique/unique-assign-drop.rs rename to tests/ui/unique/unique-assign-drop.rs diff --git a/src/test/ui/unique/unique-assign-generic.rs b/tests/ui/unique/unique-assign-generic.rs similarity index 100% rename from src/test/ui/unique/unique-assign-generic.rs rename to tests/ui/unique/unique-assign-generic.rs diff --git a/src/test/ui/unique/unique-assign.rs b/tests/ui/unique/unique-assign.rs similarity index 100% rename from src/test/ui/unique/unique-assign.rs rename to tests/ui/unique/unique-assign.rs diff --git a/src/test/ui/unique/unique-autoderef-field.rs b/tests/ui/unique/unique-autoderef-field.rs similarity index 100% rename from src/test/ui/unique/unique-autoderef-field.rs rename to tests/ui/unique/unique-autoderef-field.rs diff --git a/src/test/ui/unique/unique-autoderef-index.rs b/tests/ui/unique/unique-autoderef-index.rs similarity index 100% rename from src/test/ui/unique/unique-autoderef-index.rs rename to tests/ui/unique/unique-autoderef-index.rs diff --git a/src/test/ui/unique/unique-cmp.rs b/tests/ui/unique/unique-cmp.rs similarity index 100% rename from src/test/ui/unique/unique-cmp.rs rename to tests/ui/unique/unique-cmp.rs diff --git a/src/test/ui/unique/unique-containing-tag.rs b/tests/ui/unique/unique-containing-tag.rs similarity index 100% rename from src/test/ui/unique/unique-containing-tag.rs rename to tests/ui/unique/unique-containing-tag.rs diff --git a/src/test/ui/unique/unique-create.rs b/tests/ui/unique/unique-create.rs similarity index 100% rename from src/test/ui/unique/unique-create.rs rename to tests/ui/unique/unique-create.rs diff --git a/src/test/ui/unique/unique-decl-init-copy.rs b/tests/ui/unique/unique-decl-init-copy.rs similarity index 100% rename from src/test/ui/unique/unique-decl-init-copy.rs rename to tests/ui/unique/unique-decl-init-copy.rs diff --git a/src/test/ui/unique/unique-decl-init.rs b/tests/ui/unique/unique-decl-init.rs similarity index 100% rename from src/test/ui/unique/unique-decl-init.rs rename to tests/ui/unique/unique-decl-init.rs diff --git a/src/test/ui/unique/unique-decl-move.rs b/tests/ui/unique/unique-decl-move.rs similarity index 100% rename from src/test/ui/unique/unique-decl-move.rs rename to tests/ui/unique/unique-decl-move.rs diff --git a/src/test/ui/unique/unique-decl.rs b/tests/ui/unique/unique-decl.rs similarity index 100% rename from src/test/ui/unique/unique-decl.rs rename to tests/ui/unique/unique-decl.rs diff --git a/src/test/ui/unique/unique-deref.rs b/tests/ui/unique/unique-deref.rs similarity index 100% rename from src/test/ui/unique/unique-deref.rs rename to tests/ui/unique/unique-deref.rs diff --git a/src/test/ui/unique/unique-destructure.rs b/tests/ui/unique/unique-destructure.rs similarity index 100% rename from src/test/ui/unique/unique-destructure.rs rename to tests/ui/unique/unique-destructure.rs diff --git a/src/test/ui/unique/unique-drop-complex.rs b/tests/ui/unique/unique-drop-complex.rs similarity index 100% rename from src/test/ui/unique/unique-drop-complex.rs rename to tests/ui/unique/unique-drop-complex.rs diff --git a/src/test/ui/unique/unique-ffi-symbols.rs b/tests/ui/unique/unique-ffi-symbols.rs similarity index 100% rename from src/test/ui/unique/unique-ffi-symbols.rs rename to tests/ui/unique/unique-ffi-symbols.rs diff --git a/src/test/ui/unique/unique-fn-arg-move.rs b/tests/ui/unique/unique-fn-arg-move.rs similarity index 100% rename from src/test/ui/unique/unique-fn-arg-move.rs rename to tests/ui/unique/unique-fn-arg-move.rs diff --git a/src/test/ui/unique/unique-fn-arg-mut.rs b/tests/ui/unique/unique-fn-arg-mut.rs similarity index 100% rename from src/test/ui/unique/unique-fn-arg-mut.rs rename to tests/ui/unique/unique-fn-arg-mut.rs diff --git a/src/test/ui/unique/unique-fn-arg.rs b/tests/ui/unique/unique-fn-arg.rs similarity index 100% rename from src/test/ui/unique/unique-fn-arg.rs rename to tests/ui/unique/unique-fn-arg.rs diff --git a/src/test/ui/unique/unique-fn-ret.rs b/tests/ui/unique/unique-fn-ret.rs similarity index 100% rename from src/test/ui/unique/unique-fn-ret.rs rename to tests/ui/unique/unique-fn-ret.rs diff --git a/src/test/ui/unique/unique-generic-assign.rs b/tests/ui/unique/unique-generic-assign.rs similarity index 100% rename from src/test/ui/unique/unique-generic-assign.rs rename to tests/ui/unique/unique-generic-assign.rs diff --git a/src/test/ui/unique/unique-in-tag.rs b/tests/ui/unique/unique-in-tag.rs similarity index 100% rename from src/test/ui/unique/unique-in-tag.rs rename to tests/ui/unique/unique-in-tag.rs diff --git a/src/test/ui/unique/unique-in-vec-copy.rs b/tests/ui/unique/unique-in-vec-copy.rs similarity index 100% rename from src/test/ui/unique/unique-in-vec-copy.rs rename to tests/ui/unique/unique-in-vec-copy.rs diff --git a/src/test/ui/unique/unique-in-vec.rs b/tests/ui/unique/unique-in-vec.rs similarity index 100% rename from src/test/ui/unique/unique-in-vec.rs rename to tests/ui/unique/unique-in-vec.rs diff --git a/src/test/ui/unique/unique-init.rs b/tests/ui/unique/unique-init.rs similarity index 100% rename from src/test/ui/unique/unique-init.rs rename to tests/ui/unique/unique-init.rs diff --git a/src/test/ui/unique/unique-kinds.rs b/tests/ui/unique/unique-kinds.rs similarity index 100% rename from src/test/ui/unique/unique-kinds.rs rename to tests/ui/unique/unique-kinds.rs diff --git a/src/test/ui/unique/unique-log.rs b/tests/ui/unique/unique-log.rs similarity index 100% rename from src/test/ui/unique/unique-log.rs rename to tests/ui/unique/unique-log.rs diff --git a/src/test/ui/unique/unique-match-discrim.rs b/tests/ui/unique/unique-match-discrim.rs similarity index 100% rename from src/test/ui/unique/unique-match-discrim.rs rename to tests/ui/unique/unique-match-discrim.rs diff --git a/src/test/ui/unique/unique-move-drop.rs b/tests/ui/unique/unique-move-drop.rs similarity index 100% rename from src/test/ui/unique/unique-move-drop.rs rename to tests/ui/unique/unique-move-drop.rs diff --git a/src/test/ui/unique/unique-move-temp.rs b/tests/ui/unique/unique-move-temp.rs similarity index 100% rename from src/test/ui/unique/unique-move-temp.rs rename to tests/ui/unique/unique-move-temp.rs diff --git a/src/test/ui/unique/unique-move.rs b/tests/ui/unique/unique-move.rs similarity index 100% rename from src/test/ui/unique/unique-move.rs rename to tests/ui/unique/unique-move.rs diff --git a/src/test/ui/unique/unique-mutable.rs b/tests/ui/unique/unique-mutable.rs similarity index 100% rename from src/test/ui/unique/unique-mutable.rs rename to tests/ui/unique/unique-mutable.rs diff --git a/src/test/ui/unique/unique-object-move.rs b/tests/ui/unique/unique-object-move.rs similarity index 100% rename from src/test/ui/unique/unique-object-move.rs rename to tests/ui/unique/unique-object-move.rs diff --git a/src/test/ui/unique/unique-pat-2.rs b/tests/ui/unique/unique-pat-2.rs similarity index 100% rename from src/test/ui/unique/unique-pat-2.rs rename to tests/ui/unique/unique-pat-2.rs diff --git a/src/test/ui/unique/unique-pat-3.rs b/tests/ui/unique/unique-pat-3.rs similarity index 100% rename from src/test/ui/unique/unique-pat-3.rs rename to tests/ui/unique/unique-pat-3.rs diff --git a/src/test/ui/unique/unique-pat.rs b/tests/ui/unique/unique-pat.rs similarity index 100% rename from src/test/ui/unique/unique-pat.rs rename to tests/ui/unique/unique-pat.rs diff --git a/src/test/ui/unique/unique-rec.rs b/tests/ui/unique/unique-rec.rs similarity index 100% rename from src/test/ui/unique/unique-rec.rs rename to tests/ui/unique/unique-rec.rs diff --git a/src/test/ui/unique/unique-send-2.rs b/tests/ui/unique/unique-send-2.rs similarity index 100% rename from src/test/ui/unique/unique-send-2.rs rename to tests/ui/unique/unique-send-2.rs diff --git a/src/test/ui/unique/unique-send.rs b/tests/ui/unique/unique-send.rs similarity index 100% rename from src/test/ui/unique/unique-send.rs rename to tests/ui/unique/unique-send.rs diff --git a/src/test/ui/unique/unique-swap.rs b/tests/ui/unique/unique-swap.rs similarity index 100% rename from src/test/ui/unique/unique-swap.rs rename to tests/ui/unique/unique-swap.rs diff --git a/src/test/ui/unit.rs b/tests/ui/unit.rs similarity index 100% rename from src/test/ui/unit.rs rename to tests/ui/unit.rs diff --git a/src/test/ui/unknown-language-item.rs b/tests/ui/unknown-language-item.rs similarity index 100% rename from src/test/ui/unknown-language-item.rs rename to tests/ui/unknown-language-item.rs diff --git a/src/test/ui/unknown-language-item.stderr b/tests/ui/unknown-language-item.stderr similarity index 100% rename from src/test/ui/unknown-language-item.stderr rename to tests/ui/unknown-language-item.stderr diff --git a/src/test/ui/unknown-lint-tool-name.rs b/tests/ui/unknown-lint-tool-name.rs similarity index 100% rename from src/test/ui/unknown-lint-tool-name.rs rename to tests/ui/unknown-lint-tool-name.rs diff --git a/src/test/ui/unknown-lint-tool-name.stderr b/tests/ui/unknown-lint-tool-name.stderr similarity index 100% rename from src/test/ui/unknown-lint-tool-name.stderr rename to tests/ui/unknown-lint-tool-name.stderr diff --git a/src/test/ui/unknown-llvm-arg.rs b/tests/ui/unknown-llvm-arg.rs similarity index 100% rename from src/test/ui/unknown-llvm-arg.rs rename to tests/ui/unknown-llvm-arg.rs diff --git a/src/test/ui/unknown-llvm-arg.stderr b/tests/ui/unknown-llvm-arg.stderr similarity index 100% rename from src/test/ui/unknown-llvm-arg.stderr rename to tests/ui/unknown-llvm-arg.stderr diff --git a/src/test/ui/unknown-tool-name.rs b/tests/ui/unknown-tool-name.rs similarity index 100% rename from src/test/ui/unknown-tool-name.rs rename to tests/ui/unknown-tool-name.rs diff --git a/src/test/ui/unknown-tool-name.stderr b/tests/ui/unknown-tool-name.stderr similarity index 100% rename from src/test/ui/unknown-tool-name.stderr rename to tests/ui/unknown-tool-name.stderr diff --git a/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs b/tests/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs similarity index 100% rename from src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs rename to tests/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs diff --git a/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs b/tests/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs similarity index 100% rename from src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs rename to tests/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs b/tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs similarity index 100% rename from src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs rename to tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr b/tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr similarity index 100% rename from src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr rename to tests/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs b/tests/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs similarity index 100% rename from src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs rename to tests/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr b/tests/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr similarity index 100% rename from src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr rename to tests/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs b/tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs similarity index 100% rename from src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs rename to tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr b/tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr similarity index 100% rename from src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr rename to tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs b/tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs similarity index 100% rename from src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs rename to tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr b/tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr similarity index 100% rename from src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr rename to tests/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr diff --git a/src/test/ui/unnamed_argument_mode.rs b/tests/ui/unnamed_argument_mode.rs similarity index 100% rename from src/test/ui/unnamed_argument_mode.rs rename to tests/ui/unnamed_argument_mode.rs diff --git a/src/test/ui/unop-move-semantics.rs b/tests/ui/unop-move-semantics.rs similarity index 100% rename from src/test/ui/unop-move-semantics.rs rename to tests/ui/unop-move-semantics.rs diff --git a/src/test/ui/unop-move-semantics.stderr b/tests/ui/unop-move-semantics.stderr similarity index 100% rename from src/test/ui/unop-move-semantics.stderr rename to tests/ui/unop-move-semantics.stderr diff --git a/src/test/ui/unop-neg-bool.rs b/tests/ui/unop-neg-bool.rs similarity index 100% rename from src/test/ui/unop-neg-bool.rs rename to tests/ui/unop-neg-bool.rs diff --git a/src/test/ui/unop-neg-bool.stderr b/tests/ui/unop-neg-bool.stderr similarity index 100% rename from src/test/ui/unop-neg-bool.stderr rename to tests/ui/unop-neg-bool.stderr diff --git a/src/test/ui/unpretty-expr-fn-arg.rs b/tests/ui/unpretty-expr-fn-arg.rs similarity index 100% rename from src/test/ui/unpretty-expr-fn-arg.rs rename to tests/ui/unpretty-expr-fn-arg.rs diff --git a/src/test/ui/unpretty-expr-fn-arg.stdout b/tests/ui/unpretty-expr-fn-arg.stdout similarity index 100% rename from src/test/ui/unpretty-expr-fn-arg.stdout rename to tests/ui/unpretty-expr-fn-arg.stdout diff --git a/src/test/ui/unpretty/avoid-crash.rs b/tests/ui/unpretty/avoid-crash.rs similarity index 100% rename from src/test/ui/unpretty/avoid-crash.rs rename to tests/ui/unpretty/avoid-crash.rs diff --git a/src/test/ui/unpretty/avoid-crash.stderr b/tests/ui/unpretty/avoid-crash.stderr similarity index 100% rename from src/test/ui/unpretty/avoid-crash.stderr rename to tests/ui/unpretty/avoid-crash.stderr diff --git a/src/test/ui/unpretty/bad-literal.rs b/tests/ui/unpretty/bad-literal.rs similarity index 100% rename from src/test/ui/unpretty/bad-literal.rs rename to tests/ui/unpretty/bad-literal.rs diff --git a/src/test/ui/unpretty/bad-literal.stderr b/tests/ui/unpretty/bad-literal.stderr similarity index 100% rename from src/test/ui/unpretty/bad-literal.stderr rename to tests/ui/unpretty/bad-literal.stderr diff --git a/src/test/ui/unpretty/bad-literal.stdout b/tests/ui/unpretty/bad-literal.stdout similarity index 100% rename from src/test/ui/unpretty/bad-literal.stdout rename to tests/ui/unpretty/bad-literal.stdout diff --git a/src/test/ui/unpretty/pretty-let-else.rs b/tests/ui/unpretty/pretty-let-else.rs similarity index 100% rename from src/test/ui/unpretty/pretty-let-else.rs rename to tests/ui/unpretty/pretty-let-else.rs diff --git a/src/test/ui/unpretty/pretty-let-else.stdout b/tests/ui/unpretty/pretty-let-else.stdout similarity index 100% rename from src/test/ui/unpretty/pretty-let-else.stdout rename to tests/ui/unpretty/pretty-let-else.stdout diff --git a/src/test/ui/unreachable-code-1.rs b/tests/ui/unreachable-code-1.rs similarity index 100% rename from src/test/ui/unreachable-code-1.rs rename to tests/ui/unreachable-code-1.rs diff --git a/src/test/ui/unreachable-code.rs b/tests/ui/unreachable-code.rs similarity index 100% rename from src/test/ui/unreachable-code.rs rename to tests/ui/unreachable-code.rs diff --git a/src/test/ui/unresolved/unresolved-asterisk-imports.rs b/tests/ui/unresolved/unresolved-asterisk-imports.rs similarity index 100% rename from src/test/ui/unresolved/unresolved-asterisk-imports.rs rename to tests/ui/unresolved/unresolved-asterisk-imports.rs diff --git a/src/test/ui/unresolved/unresolved-asterisk-imports.stderr b/tests/ui/unresolved/unresolved-asterisk-imports.stderr similarity index 100% rename from src/test/ui/unresolved/unresolved-asterisk-imports.stderr rename to tests/ui/unresolved/unresolved-asterisk-imports.stderr diff --git a/src/test/ui/unresolved/unresolved-candidates.rs b/tests/ui/unresolved/unresolved-candidates.rs similarity index 100% rename from src/test/ui/unresolved/unresolved-candidates.rs rename to tests/ui/unresolved/unresolved-candidates.rs diff --git a/src/test/ui/unresolved/unresolved-candidates.stderr b/tests/ui/unresolved/unresolved-candidates.stderr similarity index 100% rename from src/test/ui/unresolved/unresolved-candidates.stderr rename to tests/ui/unresolved/unresolved-candidates.stderr diff --git a/src/test/ui/unresolved/unresolved-extern-mod-suggestion.rs b/tests/ui/unresolved/unresolved-extern-mod-suggestion.rs similarity index 100% rename from src/test/ui/unresolved/unresolved-extern-mod-suggestion.rs rename to tests/ui/unresolved/unresolved-extern-mod-suggestion.rs diff --git a/src/test/ui/unresolved/unresolved-extern-mod-suggestion.stderr b/tests/ui/unresolved/unresolved-extern-mod-suggestion.stderr similarity index 100% rename from src/test/ui/unresolved/unresolved-extern-mod-suggestion.stderr rename to tests/ui/unresolved/unresolved-extern-mod-suggestion.stderr diff --git a/src/test/ui/unresolved/unresolved-import-recovery.rs b/tests/ui/unresolved/unresolved-import-recovery.rs similarity index 100% rename from src/test/ui/unresolved/unresolved-import-recovery.rs rename to tests/ui/unresolved/unresolved-import-recovery.rs diff --git a/src/test/ui/unresolved/unresolved-import-recovery.stderr b/tests/ui/unresolved/unresolved-import-recovery.stderr similarity index 100% rename from src/test/ui/unresolved/unresolved-import-recovery.stderr rename to tests/ui/unresolved/unresolved-import-recovery.stderr diff --git a/src/test/ui/unresolved/unresolved-import.rs b/tests/ui/unresolved/unresolved-import.rs similarity index 100% rename from src/test/ui/unresolved/unresolved-import.rs rename to tests/ui/unresolved/unresolved-import.rs diff --git a/src/test/ui/unresolved/unresolved-import.stderr b/tests/ui/unresolved/unresolved-import.stderr similarity index 100% rename from src/test/ui/unresolved/unresolved-import.stderr rename to tests/ui/unresolved/unresolved-import.stderr diff --git a/src/test/ui/unsafe-fn-called-from-unsafe-blk.rs b/tests/ui/unsafe-fn-called-from-unsafe-blk.rs similarity index 100% rename from src/test/ui/unsafe-fn-called-from-unsafe-blk.rs rename to tests/ui/unsafe-fn-called-from-unsafe-blk.rs diff --git a/src/test/ui/unsafe-fn-called-from-unsafe-fn.rs b/tests/ui/unsafe-fn-called-from-unsafe-fn.rs similarity index 100% rename from src/test/ui/unsafe-fn-called-from-unsafe-fn.rs rename to tests/ui/unsafe-fn-called-from-unsafe-fn.rs diff --git a/src/test/ui/unsafe-pointer-assignability.rs b/tests/ui/unsafe-pointer-assignability.rs similarity index 100% rename from src/test/ui/unsafe-pointer-assignability.rs rename to tests/ui/unsafe-pointer-assignability.rs diff --git a/src/test/ui/unsafe/access_union_field.mir.stderr b/tests/ui/unsafe/access_union_field.mir.stderr similarity index 100% rename from src/test/ui/unsafe/access_union_field.mir.stderr rename to tests/ui/unsafe/access_union_field.mir.stderr diff --git a/src/test/ui/unsafe/access_union_field.rs b/tests/ui/unsafe/access_union_field.rs similarity index 100% rename from src/test/ui/unsafe/access_union_field.rs rename to tests/ui/unsafe/access_union_field.rs diff --git a/src/test/ui/unsafe/access_union_field.thir.stderr b/tests/ui/unsafe/access_union_field.thir.stderr similarity index 100% rename from src/test/ui/unsafe/access_union_field.thir.stderr rename to tests/ui/unsafe/access_union_field.thir.stderr diff --git a/src/test/ui/unsafe/auxiliary/issue-106126.rs b/tests/ui/unsafe/auxiliary/issue-106126.rs similarity index 100% rename from src/test/ui/unsafe/auxiliary/issue-106126.rs rename to tests/ui/unsafe/auxiliary/issue-106126.rs diff --git a/src/test/ui/unsafe/inline_asm.mir.stderr b/tests/ui/unsafe/inline_asm.mir.stderr similarity index 100% rename from src/test/ui/unsafe/inline_asm.mir.stderr rename to tests/ui/unsafe/inline_asm.mir.stderr diff --git a/src/test/ui/unsafe/inline_asm.rs b/tests/ui/unsafe/inline_asm.rs similarity index 100% rename from src/test/ui/unsafe/inline_asm.rs rename to tests/ui/unsafe/inline_asm.rs diff --git a/src/test/ui/unsafe/inline_asm.thir.stderr b/tests/ui/unsafe/inline_asm.thir.stderr similarity index 100% rename from src/test/ui/unsafe/inline_asm.thir.stderr rename to tests/ui/unsafe/inline_asm.thir.stderr diff --git a/src/test/ui/unsafe/issue-106126-good-path-bug.rs b/tests/ui/unsafe/issue-106126-good-path-bug.rs similarity index 100% rename from src/test/ui/unsafe/issue-106126-good-path-bug.rs rename to tests/ui/unsafe/issue-106126-good-path-bug.rs diff --git a/src/test/ui/unsafe/issue-3080.mir.stderr b/tests/ui/unsafe/issue-3080.mir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-3080.mir.stderr rename to tests/ui/unsafe/issue-3080.mir.stderr diff --git a/src/test/ui/unsafe/issue-3080.rs b/tests/ui/unsafe/issue-3080.rs similarity index 100% rename from src/test/ui/unsafe/issue-3080.rs rename to tests/ui/unsafe/issue-3080.rs diff --git a/src/test/ui/unsafe/issue-3080.thir.stderr b/tests/ui/unsafe/issue-3080.thir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-3080.thir.stderr rename to tests/ui/unsafe/issue-3080.thir.stderr diff --git a/src/test/ui/unsafe/issue-45087-unreachable-unsafe.mir.stderr b/tests/ui/unsafe/issue-45087-unreachable-unsafe.mir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-45087-unreachable-unsafe.mir.stderr rename to tests/ui/unsafe/issue-45087-unreachable-unsafe.mir.stderr diff --git a/src/test/ui/unsafe/issue-45087-unreachable-unsafe.rs b/tests/ui/unsafe/issue-45087-unreachable-unsafe.rs similarity index 100% rename from src/test/ui/unsafe/issue-45087-unreachable-unsafe.rs rename to tests/ui/unsafe/issue-45087-unreachable-unsafe.rs diff --git a/src/test/ui/unsafe/issue-45087-unreachable-unsafe.thir.stderr b/tests/ui/unsafe/issue-45087-unreachable-unsafe.thir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-45087-unreachable-unsafe.thir.stderr rename to tests/ui/unsafe/issue-45087-unreachable-unsafe.thir.stderr diff --git a/src/test/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.mir.stderr b/tests/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.mir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.mir.stderr rename to tests/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.mir.stderr diff --git a/src/test/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.rs b/tests/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.rs similarity index 100% rename from src/test/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.rs rename to tests/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.rs diff --git a/src/test/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.thir.stderr b/tests/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.thir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.thir.stderr rename to tests/ui/unsafe/issue-45107-unnecessary-unsafe-in-closure.thir.stderr diff --git a/src/test/ui/unsafe/issue-47412.mir.stderr b/tests/ui/unsafe/issue-47412.mir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-47412.mir.stderr rename to tests/ui/unsafe/issue-47412.mir.stderr diff --git a/src/test/ui/unsafe/issue-47412.rs b/tests/ui/unsafe/issue-47412.rs similarity index 100% rename from src/test/ui/unsafe/issue-47412.rs rename to tests/ui/unsafe/issue-47412.rs diff --git a/src/test/ui/unsafe/issue-47412.thir.stderr b/tests/ui/unsafe/issue-47412.thir.stderr similarity index 100% rename from src/test/ui/unsafe/issue-47412.thir.stderr rename to tests/ui/unsafe/issue-47412.thir.stderr diff --git a/src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs b/tests/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs similarity index 100% rename from src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs rename to tests/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs diff --git a/src/test/ui/unsafe/issue-87414-query-cycle.rs b/tests/ui/unsafe/issue-87414-query-cycle.rs similarity index 100% rename from src/test/ui/unsafe/issue-87414-query-cycle.rs rename to tests/ui/unsafe/issue-87414-query-cycle.rs diff --git a/src/test/ui/unsafe/ranged_ints.mir.stderr b/tests/ui/unsafe/ranged_ints.mir.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints.mir.stderr rename to tests/ui/unsafe/ranged_ints.mir.stderr diff --git a/src/test/ui/unsafe/ranged_ints.rs b/tests/ui/unsafe/ranged_ints.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints.rs rename to tests/ui/unsafe/ranged_ints.rs diff --git a/src/test/ui/unsafe/ranged_ints.thir.stderr b/tests/ui/unsafe/ranged_ints.thir.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints.thir.stderr rename to tests/ui/unsafe/ranged_ints.thir.stderr diff --git a/src/test/ui/unsafe/ranged_ints2.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints2.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints2.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints2.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints2.rs b/tests/ui/unsafe/ranged_ints2.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints2.rs rename to tests/ui/unsafe/ranged_ints2.rs diff --git a/src/test/ui/unsafe/ranged_ints2.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints2.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints2.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints2.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints2_const.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints2_const.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints2_const.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints2_const.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints2_const.rs b/tests/ui/unsafe/ranged_ints2_const.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints2_const.rs rename to tests/ui/unsafe/ranged_ints2_const.rs diff --git a/src/test/ui/unsafe/ranged_ints2_const.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints2_const.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints2_const.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints2_const.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints3.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints3.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints3.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints3.rs b/tests/ui/unsafe/ranged_ints3.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints3.rs rename to tests/ui/unsafe/ranged_ints3.rs diff --git a/src/test/ui/unsafe/ranged_ints3.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints3.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints3.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints3_const.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3_const.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints3_const.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints3_const.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints3_const.rs b/tests/ui/unsafe/ranged_ints3_const.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints3_const.rs rename to tests/ui/unsafe/ranged_ints3_const.rs diff --git a/src/test/ui/unsafe/ranged_ints3_const.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3_const.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints3_const.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints3_const.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints3_match.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3_match.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints3_match.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints3_match.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints3_match.rs b/tests/ui/unsafe/ranged_ints3_match.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints3_match.rs rename to tests/ui/unsafe/ranged_ints3_match.rs diff --git a/src/test/ui/unsafe/ranged_ints3_match.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints3_match.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints3_match.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints3_match.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints4.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints4.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints4.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints4.rs b/tests/ui/unsafe/ranged_ints4.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints4.rs rename to tests/ui/unsafe/ranged_ints4.rs diff --git a/src/test/ui/unsafe/ranged_ints4.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints4.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints4.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints4_const.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints4_const.rs b/tests/ui/unsafe/ranged_ints4_const.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints4_const.rs rename to tests/ui/unsafe/ranged_ints4_const.rs diff --git a/src/test/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr b/tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr rename to tests/ui/unsafe/ranged_ints4_const.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/ranged_ints_const.mir.stderr b/tests/ui/unsafe/ranged_ints_const.mir.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints_const.mir.stderr rename to tests/ui/unsafe/ranged_ints_const.mir.stderr diff --git a/src/test/ui/unsafe/ranged_ints_const.rs b/tests/ui/unsafe/ranged_ints_const.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints_const.rs rename to tests/ui/unsafe/ranged_ints_const.rs diff --git a/src/test/ui/unsafe/ranged_ints_const.thir.stderr b/tests/ui/unsafe/ranged_ints_const.thir.stderr similarity index 100% rename from src/test/ui/unsafe/ranged_ints_const.thir.stderr rename to tests/ui/unsafe/ranged_ints_const.thir.stderr diff --git a/src/test/ui/unsafe/ranged_ints_macro.rs b/tests/ui/unsafe/ranged_ints_macro.rs similarity index 100% rename from src/test/ui/unsafe/ranged_ints_macro.rs rename to tests/ui/unsafe/ranged_ints_macro.rs diff --git a/src/test/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.mir.stderr b/tests/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.mir.stderr similarity index 100% rename from src/test/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.mir.stderr rename to tests/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.mir.stderr diff --git a/src/test/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.rs b/tests/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.rs similarity index 100% rename from src/test/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.rs rename to tests/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.rs diff --git a/src/test/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.thir.stderr b/tests/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.thir.stderr similarity index 100% rename from src/test/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.thir.stderr rename to tests/ui/unsafe/rfc-2585-unsafe_op_in_unsafe_fn.thir.stderr diff --git a/src/test/ui/unsafe/union-assignop.mirunsafeck.stderr b/tests/ui/unsafe/union-assignop.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/union-assignop.mirunsafeck.stderr rename to tests/ui/unsafe/union-assignop.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/union-assignop.rs b/tests/ui/unsafe/union-assignop.rs similarity index 100% rename from src/test/ui/unsafe/union-assignop.rs rename to tests/ui/unsafe/union-assignop.rs diff --git a/src/test/ui/unsafe/union-assignop.thirunsafeck.stderr b/tests/ui/unsafe/union-assignop.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/union-assignop.thirunsafeck.stderr rename to tests/ui/unsafe/union-assignop.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/union-modification.rs b/tests/ui/unsafe/union-modification.rs similarity index 100% rename from src/test/ui/unsafe/union-modification.rs rename to tests/ui/unsafe/union-modification.rs diff --git a/src/test/ui/unsafe/union.mir.stderr b/tests/ui/unsafe/union.mir.stderr similarity index 100% rename from src/test/ui/unsafe/union.mir.stderr rename to tests/ui/unsafe/union.mir.stderr diff --git a/src/test/ui/unsafe/union.rs b/tests/ui/unsafe/union.rs similarity index 100% rename from src/test/ui/unsafe/union.rs rename to tests/ui/unsafe/union.rs diff --git a/src/test/ui/unsafe/union.thir.stderr b/tests/ui/unsafe/union.thir.stderr similarity index 100% rename from src/test/ui/unsafe/union.thir.stderr rename to tests/ui/unsafe/union.thir.stderr diff --git a/src/test/ui/unsafe/union_access_through_block.rs b/tests/ui/unsafe/union_access_through_block.rs similarity index 100% rename from src/test/ui/unsafe/union_access_through_block.rs rename to tests/ui/unsafe/union_access_through_block.rs diff --git a/src/test/ui/unsafe/union_destructure.mir.stderr b/tests/ui/unsafe/union_destructure.mir.stderr similarity index 100% rename from src/test/ui/unsafe/union_destructure.mir.stderr rename to tests/ui/unsafe/union_destructure.mir.stderr diff --git a/src/test/ui/unsafe/union_destructure.rs b/tests/ui/unsafe/union_destructure.rs similarity index 100% rename from src/test/ui/unsafe/union_destructure.rs rename to tests/ui/unsafe/union_destructure.rs diff --git a/src/test/ui/unsafe/union_wild_or_wild.rs b/tests/ui/unsafe/union_wild_or_wild.rs similarity index 100% rename from src/test/ui/unsafe/union_wild_or_wild.rs rename to tests/ui/unsafe/union_wild_or_wild.rs diff --git a/src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.mir.stderr b/tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.mir.stderr rename to tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.rs b/tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.rs rename to tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.rs diff --git a/src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.thir.stderr b/tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.thir.stderr rename to tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.thir.stderr diff --git a/src/test/ui/unsafe/unsafe-assign.mirunsafeck.stderr b/tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-assign.mirunsafeck.stderr rename to tests/ui/unsafe/unsafe-assign.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/unsafe-assign.rs b/tests/ui/unsafe/unsafe-assign.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-assign.rs rename to tests/ui/unsafe/unsafe-assign.rs diff --git a/src/test/ui/unsafe/unsafe-assign.thirunsafeck.stderr b/tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-assign.thirunsafeck.stderr rename to tests/ui/unsafe/unsafe-assign.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/unsafe-block-without-braces.rs b/tests/ui/unsafe/unsafe-block-without-braces.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-block-without-braces.rs rename to tests/ui/unsafe/unsafe-block-without-braces.rs diff --git a/src/test/ui/unsafe/unsafe-block-without-braces.stderr b/tests/ui/unsafe/unsafe-block-without-braces.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-block-without-braces.stderr rename to tests/ui/unsafe/unsafe-block-without-braces.stderr diff --git a/src/test/ui/unsafe/unsafe-borrow.mirunsafeck.stderr b/tests/ui/unsafe/unsafe-borrow.mirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-borrow.mirunsafeck.stderr rename to tests/ui/unsafe/unsafe-borrow.mirunsafeck.stderr diff --git a/src/test/ui/unsafe/unsafe-borrow.rs b/tests/ui/unsafe/unsafe-borrow.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-borrow.rs rename to tests/ui/unsafe/unsafe-borrow.rs diff --git a/src/test/ui/unsafe/unsafe-borrow.thirunsafeck.stderr b/tests/ui/unsafe/unsafe-borrow.thirunsafeck.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-borrow.thirunsafeck.stderr rename to tests/ui/unsafe/unsafe-borrow.thirunsafeck.stderr diff --git a/src/test/ui/unsafe/unsafe-const-fn.mir.stderr b/tests/ui/unsafe/unsafe-const-fn.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-const-fn.mir.stderr rename to tests/ui/unsafe/unsafe-const-fn.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-const-fn.rs b/tests/ui/unsafe/unsafe-const-fn.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-const-fn.rs rename to tests/ui/unsafe/unsafe-const-fn.rs diff --git a/src/test/ui/unsafe/unsafe-const-fn.thir.stderr b/tests/ui/unsafe/unsafe-const-fn.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-const-fn.thir.stderr rename to tests/ui/unsafe/unsafe-const-fn.thir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr rename to tests/ui/unsafe/unsafe-fn-assign-deref-ptr.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-assign-deref-ptr.rs b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-assign-deref-ptr.rs rename to tests/ui/unsafe/unsafe-fn-assign-deref-ptr.rs diff --git a/src/test/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr b/tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr rename to tests/ui/unsafe/unsafe-fn-assign-deref-ptr.thir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-autoderef.rs b/tests/ui/unsafe/unsafe-fn-autoderef.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-autoderef.rs rename to tests/ui/unsafe/unsafe-fn-autoderef.rs diff --git a/src/test/ui/unsafe/unsafe-fn-autoderef.stderr b/tests/ui/unsafe/unsafe-fn-autoderef.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-autoderef.stderr rename to tests/ui/unsafe/unsafe-fn-autoderef.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr b/tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr rename to tests/ui/unsafe/unsafe-fn-called-from-safe.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-called-from-safe.rs b/tests/ui/unsafe/unsafe-fn-called-from-safe.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-called-from-safe.rs rename to tests/ui/unsafe/unsafe-fn-called-from-safe.rs diff --git a/src/test/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr b/tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr rename to tests/ui/unsafe/unsafe-fn-called-from-safe.thir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-deref-ptr.mir.stderr b/tests/ui/unsafe/unsafe-fn-deref-ptr.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-deref-ptr.mir.stderr rename to tests/ui/unsafe/unsafe-fn-deref-ptr.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-deref-ptr.rs b/tests/ui/unsafe/unsafe-fn-deref-ptr.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-deref-ptr.rs rename to tests/ui/unsafe/unsafe-fn-deref-ptr.rs diff --git a/src/test/ui/unsafe/unsafe-fn-deref-ptr.thir.stderr b/tests/ui/unsafe/unsafe-fn-deref-ptr.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-deref-ptr.thir.stderr rename to tests/ui/unsafe/unsafe-fn-deref-ptr.thir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-used-as-value.mir.stderr b/tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-used-as-value.mir.stderr rename to tests/ui/unsafe/unsafe-fn-used-as-value.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-fn-used-as-value.rs b/tests/ui/unsafe/unsafe-fn-used-as-value.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-used-as-value.rs rename to tests/ui/unsafe/unsafe-fn-used-as-value.rs diff --git a/src/test/ui/unsafe/unsafe-fn-used-as-value.thir.stderr b/tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-fn-used-as-value.thir.stderr rename to tests/ui/unsafe/unsafe-fn-used-as-value.thir.stderr diff --git a/src/test/ui/unsafe/unsafe-not-inherited.rs b/tests/ui/unsafe/unsafe-not-inherited.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-not-inherited.rs rename to tests/ui/unsafe/unsafe-not-inherited.rs diff --git a/src/test/ui/unsafe/unsafe-not-inherited.stderr b/tests/ui/unsafe/unsafe-not-inherited.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-not-inherited.stderr rename to tests/ui/unsafe/unsafe-not-inherited.stderr diff --git a/src/test/ui/unsafe/unsafe-subtyping.rs b/tests/ui/unsafe/unsafe-subtyping.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-subtyping.rs rename to tests/ui/unsafe/unsafe-subtyping.rs diff --git a/src/test/ui/unsafe/unsafe-subtyping.stderr b/tests/ui/unsafe/unsafe-subtyping.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-subtyping.stderr rename to tests/ui/unsafe/unsafe-subtyping.stderr diff --git a/src/test/ui/unsafe/unsafe-trait-impl.rs b/tests/ui/unsafe/unsafe-trait-impl.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-trait-impl.rs rename to tests/ui/unsafe/unsafe-trait-impl.rs diff --git a/src/test/ui/unsafe/unsafe-trait-impl.stderr b/tests/ui/unsafe/unsafe-trait-impl.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-trait-impl.stderr rename to tests/ui/unsafe/unsafe-trait-impl.stderr diff --git a/src/test/ui/unsafe/unsafe-unstable-const-fn.mir.stderr b/tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-unstable-const-fn.mir.stderr rename to tests/ui/unsafe/unsafe-unstable-const-fn.mir.stderr diff --git a/src/test/ui/unsafe/unsafe-unstable-const-fn.rs b/tests/ui/unsafe/unsafe-unstable-const-fn.rs similarity index 100% rename from src/test/ui/unsafe/unsafe-unstable-const-fn.rs rename to tests/ui/unsafe/unsafe-unstable-const-fn.rs diff --git a/src/test/ui/unsafe/unsafe-unstable-const-fn.thir.stderr b/tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr similarity index 100% rename from src/test/ui/unsafe/unsafe-unstable-const-fn.thir.stderr rename to tests/ui/unsafe/unsafe-unstable-const-fn.thir.stderr diff --git a/src/test/ui/unsigned-literal-negation.rs b/tests/ui/unsigned-literal-negation.rs similarity index 100% rename from src/test/ui/unsigned-literal-negation.rs rename to tests/ui/unsigned-literal-negation.rs diff --git a/src/test/ui/unsigned-literal-negation.stderr b/tests/ui/unsigned-literal-negation.stderr similarity index 100% rename from src/test/ui/unsigned-literal-negation.stderr rename to tests/ui/unsigned-literal-negation.stderr diff --git a/src/test/ui/unsized-locals/autoderef.rs b/tests/ui/unsized-locals/autoderef.rs similarity index 100% rename from src/test/ui/unsized-locals/autoderef.rs rename to tests/ui/unsized-locals/autoderef.rs diff --git a/src/test/ui/unsized-locals/auxiliary/ufuncs.rs b/tests/ui/unsized-locals/auxiliary/ufuncs.rs similarity index 100% rename from src/test/ui/unsized-locals/auxiliary/ufuncs.rs rename to tests/ui/unsized-locals/auxiliary/ufuncs.rs diff --git a/src/test/ui/unsized-locals/borrow-after-move.rs b/tests/ui/unsized-locals/borrow-after-move.rs similarity index 100% rename from src/test/ui/unsized-locals/borrow-after-move.rs rename to tests/ui/unsized-locals/borrow-after-move.rs diff --git a/src/test/ui/unsized-locals/borrow-after-move.stderr b/tests/ui/unsized-locals/borrow-after-move.stderr similarity index 100% rename from src/test/ui/unsized-locals/borrow-after-move.stderr rename to tests/ui/unsized-locals/borrow-after-move.stderr diff --git a/src/test/ui/unsized-locals/box-fnonce.rs b/tests/ui/unsized-locals/box-fnonce.rs similarity index 100% rename from src/test/ui/unsized-locals/box-fnonce.rs rename to tests/ui/unsized-locals/box-fnonce.rs diff --git a/src/test/ui/unsized-locals/by-value-trait-object-safety-rpass.rs b/tests/ui/unsized-locals/by-value-trait-object-safety-rpass.rs similarity index 100% rename from src/test/ui/unsized-locals/by-value-trait-object-safety-rpass.rs rename to tests/ui/unsized-locals/by-value-trait-object-safety-rpass.rs diff --git a/src/test/ui/unsized-locals/by-value-trait-object-safety-withdefault.rs b/tests/ui/unsized-locals/by-value-trait-object-safety-withdefault.rs similarity index 100% rename from src/test/ui/unsized-locals/by-value-trait-object-safety-withdefault.rs rename to tests/ui/unsized-locals/by-value-trait-object-safety-withdefault.rs diff --git a/src/test/ui/unsized-locals/by-value-trait-object-safety.rs b/tests/ui/unsized-locals/by-value-trait-object-safety.rs similarity index 100% rename from src/test/ui/unsized-locals/by-value-trait-object-safety.rs rename to tests/ui/unsized-locals/by-value-trait-object-safety.rs diff --git a/src/test/ui/unsized-locals/by-value-trait-object-safety.stderr b/tests/ui/unsized-locals/by-value-trait-object-safety.stderr similarity index 100% rename from src/test/ui/unsized-locals/by-value-trait-object-safety.stderr rename to tests/ui/unsized-locals/by-value-trait-object-safety.stderr diff --git a/src/test/ui/unsized-locals/double-move.rs b/tests/ui/unsized-locals/double-move.rs similarity index 100% rename from src/test/ui/unsized-locals/double-move.rs rename to tests/ui/unsized-locals/double-move.rs diff --git a/src/test/ui/unsized-locals/double-move.stderr b/tests/ui/unsized-locals/double-move.stderr similarity index 100% rename from src/test/ui/unsized-locals/double-move.stderr rename to tests/ui/unsized-locals/double-move.stderr diff --git a/src/test/ui/unsized-locals/issue-30276-feature-flagged.rs b/tests/ui/unsized-locals/issue-30276-feature-flagged.rs similarity index 100% rename from src/test/ui/unsized-locals/issue-30276-feature-flagged.rs rename to tests/ui/unsized-locals/issue-30276-feature-flagged.rs diff --git a/src/test/ui/unsized-locals/issue-30276-feature-flagged.stderr b/tests/ui/unsized-locals/issue-30276-feature-flagged.stderr similarity index 100% rename from src/test/ui/unsized-locals/issue-30276-feature-flagged.stderr rename to tests/ui/unsized-locals/issue-30276-feature-flagged.stderr diff --git a/src/test/ui/unsized-locals/issue-30276.rs b/tests/ui/unsized-locals/issue-30276.rs similarity index 100% rename from src/test/ui/unsized-locals/issue-30276.rs rename to tests/ui/unsized-locals/issue-30276.rs diff --git a/src/test/ui/unsized-locals/issue-30276.stderr b/tests/ui/unsized-locals/issue-30276.stderr similarity index 100% rename from src/test/ui/unsized-locals/issue-30276.stderr rename to tests/ui/unsized-locals/issue-30276.stderr diff --git a/src/test/ui/unsized-locals/issue-50940-with-feature.rs b/tests/ui/unsized-locals/issue-50940-with-feature.rs similarity index 100% rename from src/test/ui/unsized-locals/issue-50940-with-feature.rs rename to tests/ui/unsized-locals/issue-50940-with-feature.rs diff --git a/src/test/ui/unsized-locals/issue-50940-with-feature.stderr b/tests/ui/unsized-locals/issue-50940-with-feature.stderr similarity index 100% rename from src/test/ui/unsized-locals/issue-50940-with-feature.stderr rename to tests/ui/unsized-locals/issue-50940-with-feature.stderr diff --git a/src/test/ui/unsized-locals/issue-50940.rs b/tests/ui/unsized-locals/issue-50940.rs similarity index 100% rename from src/test/ui/unsized-locals/issue-50940.rs rename to tests/ui/unsized-locals/issue-50940.rs diff --git a/src/test/ui/unsized-locals/issue-50940.stderr b/tests/ui/unsized-locals/issue-50940.stderr similarity index 100% rename from src/test/ui/unsized-locals/issue-50940.stderr rename to tests/ui/unsized-locals/issue-50940.stderr diff --git a/src/test/ui/unsized-locals/reference-unsized-locals.rs b/tests/ui/unsized-locals/reference-unsized-locals.rs similarity index 100% rename from src/test/ui/unsized-locals/reference-unsized-locals.rs rename to tests/ui/unsized-locals/reference-unsized-locals.rs diff --git a/src/test/ui/unsized-locals/simple-unsized-locals.rs b/tests/ui/unsized-locals/simple-unsized-locals.rs similarity index 100% rename from src/test/ui/unsized-locals/simple-unsized-locals.rs rename to tests/ui/unsized-locals/simple-unsized-locals.rs diff --git a/src/test/ui/unsized-locals/suggest-borrow.rs b/tests/ui/unsized-locals/suggest-borrow.rs similarity index 100% rename from src/test/ui/unsized-locals/suggest-borrow.rs rename to tests/ui/unsized-locals/suggest-borrow.rs diff --git a/src/test/ui/unsized-locals/suggest-borrow.stderr b/tests/ui/unsized-locals/suggest-borrow.stderr similarity index 100% rename from src/test/ui/unsized-locals/suggest-borrow.stderr rename to tests/ui/unsized-locals/suggest-borrow.stderr diff --git a/src/test/ui/unsized-locals/unsized-exprs-rpass.rs b/tests/ui/unsized-locals/unsized-exprs-rpass.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs-rpass.rs rename to tests/ui/unsized-locals/unsized-exprs-rpass.rs diff --git a/src/test/ui/unsized-locals/unsized-exprs.rs b/tests/ui/unsized-locals/unsized-exprs.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs.rs rename to tests/ui/unsized-locals/unsized-exprs.rs diff --git a/src/test/ui/unsized-locals/unsized-exprs.stderr b/tests/ui/unsized-locals/unsized-exprs.stderr similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs.stderr rename to tests/ui/unsized-locals/unsized-exprs.stderr diff --git a/src/test/ui/unsized-locals/unsized-exprs2.rs b/tests/ui/unsized-locals/unsized-exprs2.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs2.rs rename to tests/ui/unsized-locals/unsized-exprs2.rs diff --git a/src/test/ui/unsized-locals/unsized-exprs2.stderr b/tests/ui/unsized-locals/unsized-exprs2.stderr similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs2.stderr rename to tests/ui/unsized-locals/unsized-exprs2.stderr diff --git a/src/test/ui/unsized-locals/unsized-exprs3.rs b/tests/ui/unsized-locals/unsized-exprs3.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs3.rs rename to tests/ui/unsized-locals/unsized-exprs3.rs diff --git a/src/test/ui/unsized-locals/unsized-exprs3.stderr b/tests/ui/unsized-locals/unsized-exprs3.stderr similarity index 100% rename from src/test/ui/unsized-locals/unsized-exprs3.stderr rename to tests/ui/unsized-locals/unsized-exprs3.stderr diff --git a/src/test/ui/unsized-locals/unsized-index.rs b/tests/ui/unsized-locals/unsized-index.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-index.rs rename to tests/ui/unsized-locals/unsized-index.rs diff --git a/src/test/ui/unsized-locals/unsized-locals-using-unsized-fn-params.rs b/tests/ui/unsized-locals/unsized-locals-using-unsized-fn-params.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-locals-using-unsized-fn-params.rs rename to tests/ui/unsized-locals/unsized-locals-using-unsized-fn-params.rs diff --git a/src/test/ui/unsized-locals/unsized-locals-using-unsized-fn-params.stderr b/tests/ui/unsized-locals/unsized-locals-using-unsized-fn-params.stderr similarity index 100% rename from src/test/ui/unsized-locals/unsized-locals-using-unsized-fn-params.stderr rename to tests/ui/unsized-locals/unsized-locals-using-unsized-fn-params.stderr diff --git a/src/test/ui/unsized-locals/unsized-parameters.rs b/tests/ui/unsized-locals/unsized-parameters.rs similarity index 100% rename from src/test/ui/unsized-locals/unsized-parameters.rs rename to tests/ui/unsized-locals/unsized-parameters.rs diff --git a/src/test/ui/unsized/box-instead-of-dyn-fn.rs b/tests/ui/unsized/box-instead-of-dyn-fn.rs similarity index 100% rename from src/test/ui/unsized/box-instead-of-dyn-fn.rs rename to tests/ui/unsized/box-instead-of-dyn-fn.rs diff --git a/src/test/ui/unsized/box-instead-of-dyn-fn.stderr b/tests/ui/unsized/box-instead-of-dyn-fn.stderr similarity index 100% rename from src/test/ui/unsized/box-instead-of-dyn-fn.stderr rename to tests/ui/unsized/box-instead-of-dyn-fn.stderr diff --git a/src/test/ui/unsized/issue-30355.rs b/tests/ui/unsized/issue-30355.rs similarity index 100% rename from src/test/ui/unsized/issue-30355.rs rename to tests/ui/unsized/issue-30355.rs diff --git a/src/test/ui/unsized/issue-30355.stderr b/tests/ui/unsized/issue-30355.stderr similarity index 100% rename from src/test/ui/unsized/issue-30355.stderr rename to tests/ui/unsized/issue-30355.stderr diff --git a/src/test/ui/unsized/issue-40231-1.rs b/tests/ui/unsized/issue-40231-1.rs similarity index 100% rename from src/test/ui/unsized/issue-40231-1.rs rename to tests/ui/unsized/issue-40231-1.rs diff --git a/src/test/ui/unsized/issue-40231-2.rs b/tests/ui/unsized/issue-40231-2.rs similarity index 100% rename from src/test/ui/unsized/issue-40231-2.rs rename to tests/ui/unsized/issue-40231-2.rs diff --git a/src/test/ui/unsized/issue-71659.rs b/tests/ui/unsized/issue-71659.rs similarity index 100% rename from src/test/ui/unsized/issue-71659.rs rename to tests/ui/unsized/issue-71659.rs diff --git a/src/test/ui/unsized/issue-71659.stderr b/tests/ui/unsized/issue-71659.stderr similarity index 100% rename from src/test/ui/unsized/issue-71659.stderr rename to tests/ui/unsized/issue-71659.stderr diff --git a/src/test/ui/unsized/issue-75707.rs b/tests/ui/unsized/issue-75707.rs similarity index 100% rename from src/test/ui/unsized/issue-75707.rs rename to tests/ui/unsized/issue-75707.rs diff --git a/src/test/ui/unsized/issue-75707.stderr b/tests/ui/unsized/issue-75707.stderr similarity index 100% rename from src/test/ui/unsized/issue-75707.stderr rename to tests/ui/unsized/issue-75707.stderr diff --git a/src/test/ui/unsized/issue-75899-but-gats.rs b/tests/ui/unsized/issue-75899-but-gats.rs similarity index 100% rename from src/test/ui/unsized/issue-75899-but-gats.rs rename to tests/ui/unsized/issue-75899-but-gats.rs diff --git a/src/test/ui/unsized/issue-75899.rs b/tests/ui/unsized/issue-75899.rs similarity index 100% rename from src/test/ui/unsized/issue-75899.rs rename to tests/ui/unsized/issue-75899.rs diff --git a/src/test/ui/unsized/issue-91801.rs b/tests/ui/unsized/issue-91801.rs similarity index 100% rename from src/test/ui/unsized/issue-91801.rs rename to tests/ui/unsized/issue-91801.rs diff --git a/src/test/ui/unsized/issue-91801.stderr b/tests/ui/unsized/issue-91801.stderr similarity index 100% rename from src/test/ui/unsized/issue-91801.stderr rename to tests/ui/unsized/issue-91801.stderr diff --git a/src/test/ui/unsized/issue-91803.rs b/tests/ui/unsized/issue-91803.rs similarity index 100% rename from src/test/ui/unsized/issue-91803.rs rename to tests/ui/unsized/issue-91803.rs diff --git a/src/test/ui/unsized/issue-91803.stderr b/tests/ui/unsized/issue-91803.stderr similarity index 100% rename from src/test/ui/unsized/issue-91803.stderr rename to tests/ui/unsized/issue-91803.stderr diff --git a/src/test/ui/unsized/issue-97732.rs b/tests/ui/unsized/issue-97732.rs similarity index 100% rename from src/test/ui/unsized/issue-97732.rs rename to tests/ui/unsized/issue-97732.rs diff --git a/src/test/ui/unsized/maybe-bounds-where-cpass.rs b/tests/ui/unsized/maybe-bounds-where-cpass.rs similarity index 100% rename from src/test/ui/unsized/maybe-bounds-where-cpass.rs rename to tests/ui/unsized/maybe-bounds-where-cpass.rs diff --git a/src/test/ui/unsized/maybe-bounds-where.rs b/tests/ui/unsized/maybe-bounds-where.rs similarity index 100% rename from src/test/ui/unsized/maybe-bounds-where.rs rename to tests/ui/unsized/maybe-bounds-where.rs diff --git a/src/test/ui/unsized/maybe-bounds-where.stderr b/tests/ui/unsized/maybe-bounds-where.stderr similarity index 100% rename from src/test/ui/unsized/maybe-bounds-where.stderr rename to tests/ui/unsized/maybe-bounds-where.stderr diff --git a/src/test/ui/unsized/param-mentioned-by-different-field.rs b/tests/ui/unsized/param-mentioned-by-different-field.rs similarity index 100% rename from src/test/ui/unsized/param-mentioned-by-different-field.rs rename to tests/ui/unsized/param-mentioned-by-different-field.rs diff --git a/src/test/ui/unsized/param-mentioned-by-different-field.stderr b/tests/ui/unsized/param-mentioned-by-different-field.stderr similarity index 100% rename from src/test/ui/unsized/param-mentioned-by-different-field.stderr rename to tests/ui/unsized/param-mentioned-by-different-field.stderr diff --git a/src/test/ui/unsized/return-unsized-from-trait-method.rs b/tests/ui/unsized/return-unsized-from-trait-method.rs similarity index 100% rename from src/test/ui/unsized/return-unsized-from-trait-method.rs rename to tests/ui/unsized/return-unsized-from-trait-method.rs diff --git a/src/test/ui/unsized/return-unsized-from-trait-method.stderr b/tests/ui/unsized/return-unsized-from-trait-method.stderr similarity index 100% rename from src/test/ui/unsized/return-unsized-from-trait-method.stderr rename to tests/ui/unsized/return-unsized-from-trait-method.stderr diff --git a/src/test/ui/unsized/unchanged-param.rs b/tests/ui/unsized/unchanged-param.rs similarity index 100% rename from src/test/ui/unsized/unchanged-param.rs rename to tests/ui/unsized/unchanged-param.rs diff --git a/src/test/ui/unsized/unsized-bare-typaram.rs b/tests/ui/unsized/unsized-bare-typaram.rs similarity index 100% rename from src/test/ui/unsized/unsized-bare-typaram.rs rename to tests/ui/unsized/unsized-bare-typaram.rs diff --git a/src/test/ui/unsized/unsized-bare-typaram.stderr b/tests/ui/unsized/unsized-bare-typaram.stderr similarity index 100% rename from src/test/ui/unsized/unsized-bare-typaram.stderr rename to tests/ui/unsized/unsized-bare-typaram.stderr diff --git a/src/test/ui/unsized/unsized-enum.rs b/tests/ui/unsized/unsized-enum.rs similarity index 100% rename from src/test/ui/unsized/unsized-enum.rs rename to tests/ui/unsized/unsized-enum.rs diff --git a/src/test/ui/unsized/unsized-enum.stderr b/tests/ui/unsized/unsized-enum.stderr similarity index 100% rename from src/test/ui/unsized/unsized-enum.stderr rename to tests/ui/unsized/unsized-enum.stderr diff --git a/src/test/ui/unsized/unsized-enum2.rs b/tests/ui/unsized/unsized-enum2.rs similarity index 100% rename from src/test/ui/unsized/unsized-enum2.rs rename to tests/ui/unsized/unsized-enum2.rs diff --git a/src/test/ui/unsized/unsized-enum2.stderr b/tests/ui/unsized/unsized-enum2.stderr similarity index 100% rename from src/test/ui/unsized/unsized-enum2.stderr rename to tests/ui/unsized/unsized-enum2.stderr diff --git a/src/test/ui/unsized/unsized-fn-arg.fixed b/tests/ui/unsized/unsized-fn-arg.fixed similarity index 100% rename from src/test/ui/unsized/unsized-fn-arg.fixed rename to tests/ui/unsized/unsized-fn-arg.fixed diff --git a/src/test/ui/unsized/unsized-fn-arg.rs b/tests/ui/unsized/unsized-fn-arg.rs similarity index 100% rename from src/test/ui/unsized/unsized-fn-arg.rs rename to tests/ui/unsized/unsized-fn-arg.rs diff --git a/src/test/ui/unsized/unsized-fn-arg.stderr b/tests/ui/unsized/unsized-fn-arg.stderr similarity index 100% rename from src/test/ui/unsized/unsized-fn-arg.stderr rename to tests/ui/unsized/unsized-fn-arg.stderr diff --git a/src/test/ui/unsized/unsized-fn-param.rs b/tests/ui/unsized/unsized-fn-param.rs similarity index 100% rename from src/test/ui/unsized/unsized-fn-param.rs rename to tests/ui/unsized/unsized-fn-param.rs diff --git a/src/test/ui/unsized/unsized-fn-param.stderr b/tests/ui/unsized/unsized-fn-param.stderr similarity index 100% rename from src/test/ui/unsized/unsized-fn-param.stderr rename to tests/ui/unsized/unsized-fn-param.stderr diff --git a/src/test/ui/unsized/unsized-inherent-impl-self-type.rs b/tests/ui/unsized/unsized-inherent-impl-self-type.rs similarity index 100% rename from src/test/ui/unsized/unsized-inherent-impl-self-type.rs rename to tests/ui/unsized/unsized-inherent-impl-self-type.rs diff --git a/src/test/ui/unsized/unsized-inherent-impl-self-type.stderr b/tests/ui/unsized/unsized-inherent-impl-self-type.stderr similarity index 100% rename from src/test/ui/unsized/unsized-inherent-impl-self-type.stderr rename to tests/ui/unsized/unsized-inherent-impl-self-type.stderr diff --git a/src/test/ui/unsized/unsized-struct.rs b/tests/ui/unsized/unsized-struct.rs similarity index 100% rename from src/test/ui/unsized/unsized-struct.rs rename to tests/ui/unsized/unsized-struct.rs diff --git a/src/test/ui/unsized/unsized-struct.stderr b/tests/ui/unsized/unsized-struct.stderr similarity index 100% rename from src/test/ui/unsized/unsized-struct.stderr rename to tests/ui/unsized/unsized-struct.stderr diff --git a/src/test/ui/unsized/unsized-trait-impl-self-type.rs b/tests/ui/unsized/unsized-trait-impl-self-type.rs similarity index 100% rename from src/test/ui/unsized/unsized-trait-impl-self-type.rs rename to tests/ui/unsized/unsized-trait-impl-self-type.rs diff --git a/src/test/ui/unsized/unsized-trait-impl-self-type.stderr b/tests/ui/unsized/unsized-trait-impl-self-type.stderr similarity index 100% rename from src/test/ui/unsized/unsized-trait-impl-self-type.stderr rename to tests/ui/unsized/unsized-trait-impl-self-type.stderr diff --git a/src/test/ui/unsized/unsized-trait-impl-trait-arg.rs b/tests/ui/unsized/unsized-trait-impl-trait-arg.rs similarity index 100% rename from src/test/ui/unsized/unsized-trait-impl-trait-arg.rs rename to tests/ui/unsized/unsized-trait-impl-trait-arg.rs diff --git a/src/test/ui/unsized/unsized-trait-impl-trait-arg.stderr b/tests/ui/unsized/unsized-trait-impl-trait-arg.stderr similarity index 100% rename from src/test/ui/unsized/unsized-trait-impl-trait-arg.stderr rename to tests/ui/unsized/unsized-trait-impl-trait-arg.stderr diff --git a/src/test/ui/unsized/unsized-tuple-impls.rs b/tests/ui/unsized/unsized-tuple-impls.rs similarity index 100% rename from src/test/ui/unsized/unsized-tuple-impls.rs rename to tests/ui/unsized/unsized-tuple-impls.rs diff --git a/src/test/ui/unsized/unsized.rs b/tests/ui/unsized/unsized.rs similarity index 100% rename from src/test/ui/unsized/unsized.rs rename to tests/ui/unsized/unsized.rs diff --git a/src/test/ui/unsized/unsized2.rs b/tests/ui/unsized/unsized2.rs similarity index 100% rename from src/test/ui/unsized/unsized2.rs rename to tests/ui/unsized/unsized2.rs diff --git a/src/test/ui/unsized/unsized3-rpass.rs b/tests/ui/unsized/unsized3-rpass.rs similarity index 100% rename from src/test/ui/unsized/unsized3-rpass.rs rename to tests/ui/unsized/unsized3-rpass.rs diff --git a/src/test/ui/unsized/unsized3.rs b/tests/ui/unsized/unsized3.rs similarity index 100% rename from src/test/ui/unsized/unsized3.rs rename to tests/ui/unsized/unsized3.rs diff --git a/src/test/ui/unsized/unsized3.stderr b/tests/ui/unsized/unsized3.stderr similarity index 100% rename from src/test/ui/unsized/unsized3.stderr rename to tests/ui/unsized/unsized3.stderr diff --git a/src/test/ui/unsized/unsized5.rs b/tests/ui/unsized/unsized5.rs similarity index 100% rename from src/test/ui/unsized/unsized5.rs rename to tests/ui/unsized/unsized5.rs diff --git a/src/test/ui/unsized/unsized5.stderr b/tests/ui/unsized/unsized5.stderr similarity index 100% rename from src/test/ui/unsized/unsized5.stderr rename to tests/ui/unsized/unsized5.stderr diff --git a/src/test/ui/unsized/unsized6.rs b/tests/ui/unsized/unsized6.rs similarity index 100% rename from src/test/ui/unsized/unsized6.rs rename to tests/ui/unsized/unsized6.rs diff --git a/src/test/ui/unsized/unsized6.stderr b/tests/ui/unsized/unsized6.stderr similarity index 100% rename from src/test/ui/unsized/unsized6.stderr rename to tests/ui/unsized/unsized6.stderr diff --git a/src/test/ui/unsized/unsized7.rs b/tests/ui/unsized/unsized7.rs similarity index 100% rename from src/test/ui/unsized/unsized7.rs rename to tests/ui/unsized/unsized7.rs diff --git a/src/test/ui/unsized/unsized7.stderr b/tests/ui/unsized/unsized7.stderr similarity index 100% rename from src/test/ui/unsized/unsized7.stderr rename to tests/ui/unsized/unsized7.stderr diff --git a/src/test/ui/unterminated-comment.rs b/tests/ui/unterminated-comment.rs similarity index 100% rename from src/test/ui/unterminated-comment.rs rename to tests/ui/unterminated-comment.rs diff --git a/src/test/ui/unterminated-comment.stderr b/tests/ui/unterminated-comment.stderr similarity index 100% rename from src/test/ui/unterminated-comment.stderr rename to tests/ui/unterminated-comment.stderr diff --git a/src/test/ui/unterminated-nested-comment.rs b/tests/ui/unterminated-nested-comment.rs similarity index 100% rename from src/test/ui/unterminated-nested-comment.rs rename to tests/ui/unterminated-nested-comment.rs diff --git a/src/test/ui/unterminated-nested-comment.stderr b/tests/ui/unterminated-nested-comment.stderr similarity index 100% rename from src/test/ui/unterminated-nested-comment.stderr rename to tests/ui/unterminated-nested-comment.stderr diff --git a/src/test/ui/unused-crate-deps/auxiliary/bar.rs b/tests/ui/unused-crate-deps/auxiliary/bar.rs similarity index 100% rename from src/test/ui/unused-crate-deps/auxiliary/bar.rs rename to tests/ui/unused-crate-deps/auxiliary/bar.rs diff --git a/src/test/ui/unused-crate-deps/auxiliary/foo.rs b/tests/ui/unused-crate-deps/auxiliary/foo.rs similarity index 100% rename from src/test/ui/unused-crate-deps/auxiliary/foo.rs rename to tests/ui/unused-crate-deps/auxiliary/foo.rs diff --git a/src/test/ui/unused-crate-deps/deny-attr.rs b/tests/ui/unused-crate-deps/deny-attr.rs similarity index 100% rename from src/test/ui/unused-crate-deps/deny-attr.rs rename to tests/ui/unused-crate-deps/deny-attr.rs diff --git a/src/test/ui/unused-crate-deps/deny-attr.stderr b/tests/ui/unused-crate-deps/deny-attr.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/deny-attr.stderr rename to tests/ui/unused-crate-deps/deny-attr.stderr diff --git a/src/test/ui/unused-crate-deps/deny-cmdline-json-silent.rs b/tests/ui/unused-crate-deps/deny-cmdline-json-silent.rs similarity index 100% rename from src/test/ui/unused-crate-deps/deny-cmdline-json-silent.rs rename to tests/ui/unused-crate-deps/deny-cmdline-json-silent.rs diff --git a/src/test/ui/unused-crate-deps/deny-cmdline-json-silent.stderr b/tests/ui/unused-crate-deps/deny-cmdline-json-silent.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/deny-cmdline-json-silent.stderr rename to tests/ui/unused-crate-deps/deny-cmdline-json-silent.stderr diff --git a/src/test/ui/unused-crate-deps/deny-cmdline-json.rs b/tests/ui/unused-crate-deps/deny-cmdline-json.rs similarity index 100% rename from src/test/ui/unused-crate-deps/deny-cmdline-json.rs rename to tests/ui/unused-crate-deps/deny-cmdline-json.rs diff --git a/src/test/ui/unused-crate-deps/deny-cmdline-json.stderr b/tests/ui/unused-crate-deps/deny-cmdline-json.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/deny-cmdline-json.stderr rename to tests/ui/unused-crate-deps/deny-cmdline-json.stderr diff --git a/src/test/ui/unused-crate-deps/deny-cmdline.rs b/tests/ui/unused-crate-deps/deny-cmdline.rs similarity index 100% rename from src/test/ui/unused-crate-deps/deny-cmdline.rs rename to tests/ui/unused-crate-deps/deny-cmdline.rs diff --git a/src/test/ui/unused-crate-deps/deny-cmdline.stderr b/tests/ui/unused-crate-deps/deny-cmdline.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/deny-cmdline.stderr rename to tests/ui/unused-crate-deps/deny-cmdline.stderr diff --git a/src/test/ui/unused-crate-deps/ignore-pathless-extern.rs b/tests/ui/unused-crate-deps/ignore-pathless-extern.rs similarity index 100% rename from src/test/ui/unused-crate-deps/ignore-pathless-extern.rs rename to tests/ui/unused-crate-deps/ignore-pathless-extern.rs diff --git a/src/test/ui/unused-crate-deps/libfib.rs b/tests/ui/unused-crate-deps/libfib.rs similarity index 100% rename from src/test/ui/unused-crate-deps/libfib.rs rename to tests/ui/unused-crate-deps/libfib.rs diff --git a/src/test/ui/unused-crate-deps/libfib.stderr b/tests/ui/unused-crate-deps/libfib.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/libfib.stderr rename to tests/ui/unused-crate-deps/libfib.stderr diff --git a/src/test/ui/unused-crate-deps/lint-group.rs b/tests/ui/unused-crate-deps/lint-group.rs similarity index 100% rename from src/test/ui/unused-crate-deps/lint-group.rs rename to tests/ui/unused-crate-deps/lint-group.rs diff --git a/src/test/ui/unused-crate-deps/suppress.rs b/tests/ui/unused-crate-deps/suppress.rs similarity index 100% rename from src/test/ui/unused-crate-deps/suppress.rs rename to tests/ui/unused-crate-deps/suppress.rs diff --git a/src/test/ui/unused-crate-deps/test-use-ok.rs b/tests/ui/unused-crate-deps/test-use-ok.rs similarity index 100% rename from src/test/ui/unused-crate-deps/test-use-ok.rs rename to tests/ui/unused-crate-deps/test-use-ok.rs diff --git a/src/test/ui/unused-crate-deps/test.mk b/tests/ui/unused-crate-deps/test.mk similarity index 100% rename from src/test/ui/unused-crate-deps/test.mk rename to tests/ui/unused-crate-deps/test.mk diff --git a/src/test/ui/unused-crate-deps/unused-aliases.rs b/tests/ui/unused-crate-deps/unused-aliases.rs similarity index 100% rename from src/test/ui/unused-crate-deps/unused-aliases.rs rename to tests/ui/unused-crate-deps/unused-aliases.rs diff --git a/src/test/ui/unused-crate-deps/unused-aliases.stderr b/tests/ui/unused-crate-deps/unused-aliases.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/unused-aliases.stderr rename to tests/ui/unused-crate-deps/unused-aliases.stderr diff --git a/src/test/ui/unused-crate-deps/use_extern_crate_2015.rs b/tests/ui/unused-crate-deps/use_extern_crate_2015.rs similarity index 100% rename from src/test/ui/unused-crate-deps/use_extern_crate_2015.rs rename to tests/ui/unused-crate-deps/use_extern_crate_2015.rs diff --git a/src/test/ui/unused-crate-deps/warn-attr.rs b/tests/ui/unused-crate-deps/warn-attr.rs similarity index 100% rename from src/test/ui/unused-crate-deps/warn-attr.rs rename to tests/ui/unused-crate-deps/warn-attr.rs diff --git a/src/test/ui/unused-crate-deps/warn-attr.stderr b/tests/ui/unused-crate-deps/warn-attr.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/warn-attr.stderr rename to tests/ui/unused-crate-deps/warn-attr.stderr diff --git a/src/test/ui/unused-crate-deps/warn-cmdline-json.rs b/tests/ui/unused-crate-deps/warn-cmdline-json.rs similarity index 100% rename from src/test/ui/unused-crate-deps/warn-cmdline-json.rs rename to tests/ui/unused-crate-deps/warn-cmdline-json.rs diff --git a/src/test/ui/unused-crate-deps/warn-cmdline-json.stderr b/tests/ui/unused-crate-deps/warn-cmdline-json.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/warn-cmdline-json.stderr rename to tests/ui/unused-crate-deps/warn-cmdline-json.stderr diff --git a/src/test/ui/unused-crate-deps/warn-cmdline-static.rs b/tests/ui/unused-crate-deps/warn-cmdline-static.rs similarity index 100% rename from src/test/ui/unused-crate-deps/warn-cmdline-static.rs rename to tests/ui/unused-crate-deps/warn-cmdline-static.rs diff --git a/src/test/ui/unused-crate-deps/warn-cmdline-static.stderr b/tests/ui/unused-crate-deps/warn-cmdline-static.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/warn-cmdline-static.stderr rename to tests/ui/unused-crate-deps/warn-cmdline-static.stderr diff --git a/src/test/ui/unused-crate-deps/warn-cmdline.rs b/tests/ui/unused-crate-deps/warn-cmdline.rs similarity index 100% rename from src/test/ui/unused-crate-deps/warn-cmdline.rs rename to tests/ui/unused-crate-deps/warn-cmdline.rs diff --git a/src/test/ui/unused-crate-deps/warn-cmdline.stderr b/tests/ui/unused-crate-deps/warn-cmdline.stderr similarity index 100% rename from src/test/ui/unused-crate-deps/warn-cmdline.stderr rename to tests/ui/unused-crate-deps/warn-cmdline.stderr diff --git a/src/test/ui/unused-move-capture.rs b/tests/ui/unused-move-capture.rs similarity index 100% rename from src/test/ui/unused-move-capture.rs rename to tests/ui/unused-move-capture.rs diff --git a/src/test/ui/unused-move.rs b/tests/ui/unused-move.rs similarity index 100% rename from src/test/ui/unused-move.rs rename to tests/ui/unused-move.rs diff --git a/src/test/ui/unwind-abis/feature-gate-c-unwind-enabled.rs b/tests/ui/unwind-abis/feature-gate-c-unwind-enabled.rs similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-c-unwind-enabled.rs rename to tests/ui/unwind-abis/feature-gate-c-unwind-enabled.rs diff --git a/src/test/ui/unwind-abis/feature-gate-c-unwind.rs b/tests/ui/unwind-abis/feature-gate-c-unwind.rs similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-c-unwind.rs rename to tests/ui/unwind-abis/feature-gate-c-unwind.rs diff --git a/src/test/ui/unwind-abis/feature-gate-c-unwind.stderr b/tests/ui/unwind-abis/feature-gate-c-unwind.stderr similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-c-unwind.stderr rename to tests/ui/unwind-abis/feature-gate-c-unwind.stderr diff --git a/src/test/ui/unwind-abis/feature-gate-stdcall-unwind.rs b/tests/ui/unwind-abis/feature-gate-stdcall-unwind.rs similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-stdcall-unwind.rs rename to tests/ui/unwind-abis/feature-gate-stdcall-unwind.rs diff --git a/src/test/ui/unwind-abis/feature-gate-stdcall-unwind.stderr b/tests/ui/unwind-abis/feature-gate-stdcall-unwind.stderr similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-stdcall-unwind.stderr rename to tests/ui/unwind-abis/feature-gate-stdcall-unwind.stderr diff --git a/src/test/ui/unwind-abis/feature-gate-system-unwind.rs b/tests/ui/unwind-abis/feature-gate-system-unwind.rs similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-system-unwind.rs rename to tests/ui/unwind-abis/feature-gate-system-unwind.rs diff --git a/src/test/ui/unwind-abis/feature-gate-system-unwind.stderr b/tests/ui/unwind-abis/feature-gate-system-unwind.stderr similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-system-unwind.stderr rename to tests/ui/unwind-abis/feature-gate-system-unwind.stderr diff --git a/src/test/ui/unwind-abis/feature-gate-thiscall-unwind.rs b/tests/ui/unwind-abis/feature-gate-thiscall-unwind.rs similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-thiscall-unwind.rs rename to tests/ui/unwind-abis/feature-gate-thiscall-unwind.rs diff --git a/src/test/ui/unwind-abis/feature-gate-thiscall-unwind.stderr b/tests/ui/unwind-abis/feature-gate-thiscall-unwind.stderr similarity index 100% rename from src/test/ui/unwind-abis/feature-gate-thiscall-unwind.stderr rename to tests/ui/unwind-abis/feature-gate-thiscall-unwind.stderr diff --git a/src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs b/tests/ui/unwind-abis/ffi-unwind-calls-lint.rs similarity index 100% rename from src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs rename to tests/ui/unwind-abis/ffi-unwind-calls-lint.rs diff --git a/src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr b/tests/ui/unwind-abis/ffi-unwind-calls-lint.stderr similarity index 100% rename from src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr rename to tests/ui/unwind-abis/ffi-unwind-calls-lint.stderr diff --git a/src/test/ui/unwind-no-uwtable.rs b/tests/ui/unwind-no-uwtable.rs similarity index 100% rename from src/test/ui/unwind-no-uwtable.rs rename to tests/ui/unwind-no-uwtable.rs diff --git a/src/test/ui/unwind-unique.rs b/tests/ui/unwind-unique.rs similarity index 100% rename from src/test/ui/unwind-unique.rs rename to tests/ui/unwind-unique.rs diff --git a/src/test/ui/use-import-export.rs b/tests/ui/use-import-export.rs similarity index 100% rename from src/test/ui/use-import-export.rs rename to tests/ui/use-import-export.rs diff --git a/src/test/ui/use-keyword-2.rs b/tests/ui/use-keyword-2.rs similarity index 100% rename from src/test/ui/use-keyword-2.rs rename to tests/ui/use-keyword-2.rs diff --git a/src/test/ui/use-module-level-int-consts.rs b/tests/ui/use-module-level-int-consts.rs similarity index 100% rename from src/test/ui/use-module-level-int-consts.rs rename to tests/ui/use-module-level-int-consts.rs diff --git a/src/test/ui/use-nested-groups.rs b/tests/ui/use-nested-groups.rs similarity index 100% rename from src/test/ui/use-nested-groups.rs rename to tests/ui/use-nested-groups.rs diff --git a/src/test/ui/use.rs b/tests/ui/use.rs similarity index 100% rename from src/test/ui/use.rs rename to tests/ui/use.rs diff --git a/src/test/ui/use/auxiliary/extern-use-primitive-type-lib.rs b/tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs similarity index 100% rename from src/test/ui/use/auxiliary/extern-use-primitive-type-lib.rs rename to tests/ui/use/auxiliary/extern-use-primitive-type-lib.rs diff --git a/src/test/ui/use/auxiliary/use-from-trait-xc.rs b/tests/ui/use/auxiliary/use-from-trait-xc.rs similarity index 100% rename from src/test/ui/use/auxiliary/use-from-trait-xc.rs rename to tests/ui/use/auxiliary/use-from-trait-xc.rs diff --git a/src/test/ui/use/issue-18986.rs b/tests/ui/use/issue-18986.rs similarity index 100% rename from src/test/ui/use/issue-18986.rs rename to tests/ui/use/issue-18986.rs diff --git a/src/test/ui/use/issue-18986.stderr b/tests/ui/use/issue-18986.stderr similarity index 100% rename from src/test/ui/use/issue-18986.stderr rename to tests/ui/use/issue-18986.stderr diff --git a/src/test/ui/use/issue-60976-extern-use-primitive-type.rs b/tests/ui/use/issue-60976-extern-use-primitive-type.rs similarity index 100% rename from src/test/ui/use/issue-60976-extern-use-primitive-type.rs rename to tests/ui/use/issue-60976-extern-use-primitive-type.rs diff --git a/src/test/ui/use/use-after-move-based-on-type.rs b/tests/ui/use/use-after-move-based-on-type.rs similarity index 100% rename from src/test/ui/use/use-after-move-based-on-type.rs rename to tests/ui/use/use-after-move-based-on-type.rs diff --git a/src/test/ui/use/use-after-move-based-on-type.stderr b/tests/ui/use/use-after-move-based-on-type.stderr similarity index 100% rename from src/test/ui/use/use-after-move-based-on-type.stderr rename to tests/ui/use/use-after-move-based-on-type.stderr diff --git a/src/test/ui/use/use-after-move-implicity-coerced-object.rs b/tests/ui/use/use-after-move-implicity-coerced-object.rs similarity index 100% rename from src/test/ui/use/use-after-move-implicity-coerced-object.rs rename to tests/ui/use/use-after-move-implicity-coerced-object.rs diff --git a/src/test/ui/use/use-after-move-implicity-coerced-object.stderr b/tests/ui/use/use-after-move-implicity-coerced-object.stderr similarity index 100% rename from src/test/ui/use/use-after-move-implicity-coerced-object.stderr rename to tests/ui/use/use-after-move-implicity-coerced-object.stderr diff --git a/src/test/ui/use/use-after-move-self-based-on-type.rs b/tests/ui/use/use-after-move-self-based-on-type.rs similarity index 100% rename from src/test/ui/use/use-after-move-self-based-on-type.rs rename to tests/ui/use/use-after-move-self-based-on-type.rs diff --git a/src/test/ui/use/use-after-move-self-based-on-type.stderr b/tests/ui/use/use-after-move-self-based-on-type.stderr similarity index 100% rename from src/test/ui/use/use-after-move-self-based-on-type.stderr rename to tests/ui/use/use-after-move-self-based-on-type.stderr diff --git a/src/test/ui/use/use-after-move-self.rs b/tests/ui/use/use-after-move-self.rs similarity index 100% rename from src/test/ui/use/use-after-move-self.rs rename to tests/ui/use/use-after-move-self.rs diff --git a/src/test/ui/use/use-after-move-self.stderr b/tests/ui/use/use-after-move-self.stderr similarity index 100% rename from src/test/ui/use/use-after-move-self.stderr rename to tests/ui/use/use-after-move-self.stderr diff --git a/src/test/ui/use/use-associated-const.rs b/tests/ui/use/use-associated-const.rs similarity index 100% rename from src/test/ui/use/use-associated-const.rs rename to tests/ui/use/use-associated-const.rs diff --git a/src/test/ui/use/use-associated-const.stderr b/tests/ui/use/use-associated-const.stderr similarity index 100% rename from src/test/ui/use/use-associated-const.stderr rename to tests/ui/use/use-associated-const.stderr diff --git a/src/test/ui/use/use-crate-self.rs b/tests/ui/use/use-crate-self.rs similarity index 100% rename from src/test/ui/use/use-crate-self.rs rename to tests/ui/use/use-crate-self.rs diff --git a/src/test/ui/use/use-crate-self.stderr b/tests/ui/use/use-crate-self.stderr similarity index 100% rename from src/test/ui/use/use-crate-self.stderr rename to tests/ui/use/use-crate-self.stderr diff --git a/src/test/ui/use/use-from-trait-xc.rs b/tests/ui/use/use-from-trait-xc.rs similarity index 100% rename from src/test/ui/use/use-from-trait-xc.rs rename to tests/ui/use/use-from-trait-xc.rs diff --git a/src/test/ui/use/use-from-trait-xc.stderr b/tests/ui/use/use-from-trait-xc.stderr similarity index 100% rename from src/test/ui/use/use-from-trait-xc.stderr rename to tests/ui/use/use-from-trait-xc.stderr diff --git a/src/test/ui/use/use-from-trait.rs b/tests/ui/use/use-from-trait.rs similarity index 100% rename from src/test/ui/use/use-from-trait.rs rename to tests/ui/use/use-from-trait.rs diff --git a/src/test/ui/use/use-from-trait.stderr b/tests/ui/use/use-from-trait.stderr similarity index 100% rename from src/test/ui/use/use-from-trait.stderr rename to tests/ui/use/use-from-trait.stderr diff --git a/src/test/ui/use/use-keyword.rs b/tests/ui/use/use-keyword.rs similarity index 100% rename from src/test/ui/use/use-keyword.rs rename to tests/ui/use/use-keyword.rs diff --git a/src/test/ui/use/use-keyword.stderr b/tests/ui/use/use-keyword.stderr similarity index 100% rename from src/test/ui/use/use-keyword.stderr rename to tests/ui/use/use-keyword.stderr diff --git a/src/test/ui/use/use-meta-mismatch.rs b/tests/ui/use/use-meta-mismatch.rs similarity index 100% rename from src/test/ui/use/use-meta-mismatch.rs rename to tests/ui/use/use-meta-mismatch.rs diff --git a/src/test/ui/use/use-meta-mismatch.stderr b/tests/ui/use/use-meta-mismatch.stderr similarity index 100% rename from src/test/ui/use/use-meta-mismatch.stderr rename to tests/ui/use/use-meta-mismatch.stderr diff --git a/src/test/ui/use/use-mod.rs b/tests/ui/use/use-mod.rs similarity index 100% rename from src/test/ui/use/use-mod.rs rename to tests/ui/use/use-mod.rs diff --git a/src/test/ui/use/use-mod.stderr b/tests/ui/use/use-mod.stderr similarity index 100% rename from src/test/ui/use/use-mod.stderr rename to tests/ui/use/use-mod.stderr diff --git a/src/test/ui/use/use-mod/use-mod-2.rs b/tests/ui/use/use-mod/use-mod-2.rs similarity index 100% rename from src/test/ui/use/use-mod/use-mod-2.rs rename to tests/ui/use/use-mod/use-mod-2.rs diff --git a/src/test/ui/use/use-mod/use-mod-2.stderr b/tests/ui/use/use-mod/use-mod-2.stderr similarity index 100% rename from src/test/ui/use/use-mod/use-mod-2.stderr rename to tests/ui/use/use-mod/use-mod-2.stderr diff --git a/src/test/ui/use/use-mod/use-mod-3.rs b/tests/ui/use/use-mod/use-mod-3.rs similarity index 100% rename from src/test/ui/use/use-mod/use-mod-3.rs rename to tests/ui/use/use-mod/use-mod-3.rs diff --git a/src/test/ui/use/use-mod/use-mod-3.stderr b/tests/ui/use/use-mod/use-mod-3.stderr similarity index 100% rename from src/test/ui/use/use-mod/use-mod-3.stderr rename to tests/ui/use/use-mod/use-mod-3.stderr diff --git a/src/test/ui/use/use-mod/use-mod-4.rs b/tests/ui/use/use-mod/use-mod-4.rs similarity index 100% rename from src/test/ui/use/use-mod/use-mod-4.rs rename to tests/ui/use/use-mod/use-mod-4.rs diff --git a/src/test/ui/use/use-mod/use-mod-4.stderr b/tests/ui/use/use-mod/use-mod-4.stderr similarity index 100% rename from src/test/ui/use/use-mod/use-mod-4.stderr rename to tests/ui/use/use-mod/use-mod-4.stderr diff --git a/src/test/ui/use/use-mod/use-mod-5.rs b/tests/ui/use/use-mod/use-mod-5.rs similarity index 100% rename from src/test/ui/use/use-mod/use-mod-5.rs rename to tests/ui/use/use-mod/use-mod-5.rs diff --git a/src/test/ui/use/use-mod/use-mod-5.stderr b/tests/ui/use/use-mod/use-mod-5.stderr similarity index 100% rename from src/test/ui/use/use-mod/use-mod-5.stderr rename to tests/ui/use/use-mod/use-mod-5.stderr diff --git a/src/test/ui/use/use-mod/use-mod-6.rs b/tests/ui/use/use-mod/use-mod-6.rs similarity index 100% rename from src/test/ui/use/use-mod/use-mod-6.rs rename to tests/ui/use/use-mod/use-mod-6.rs diff --git a/src/test/ui/use/use-mod/use-mod-6.stderr b/tests/ui/use/use-mod/use-mod-6.stderr similarity index 100% rename from src/test/ui/use/use-mod/use-mod-6.stderr rename to tests/ui/use/use-mod/use-mod-6.stderr diff --git a/src/test/ui/use/use-nested-groups-error.rs b/tests/ui/use/use-nested-groups-error.rs similarity index 100% rename from src/test/ui/use/use-nested-groups-error.rs rename to tests/ui/use/use-nested-groups-error.rs diff --git a/src/test/ui/use/use-nested-groups-error.stderr b/tests/ui/use/use-nested-groups-error.stderr similarity index 100% rename from src/test/ui/use/use-nested-groups-error.stderr rename to tests/ui/use/use-nested-groups-error.stderr diff --git a/src/test/ui/use/use-nested-groups-unused-imports.rs b/tests/ui/use/use-nested-groups-unused-imports.rs similarity index 100% rename from src/test/ui/use/use-nested-groups-unused-imports.rs rename to tests/ui/use/use-nested-groups-unused-imports.rs diff --git a/src/test/ui/use/use-nested-groups-unused-imports.stderr b/tests/ui/use/use-nested-groups-unused-imports.stderr similarity index 100% rename from src/test/ui/use/use-nested-groups-unused-imports.stderr rename to tests/ui/use/use-nested-groups-unused-imports.stderr diff --git a/src/test/ui/use/use-paths-as-items.rs b/tests/ui/use/use-paths-as-items.rs similarity index 100% rename from src/test/ui/use/use-paths-as-items.rs rename to tests/ui/use/use-paths-as-items.rs diff --git a/src/test/ui/use/use-paths-as-items.stderr b/tests/ui/use/use-paths-as-items.stderr similarity index 100% rename from src/test/ui/use/use-paths-as-items.stderr rename to tests/ui/use/use-paths-as-items.stderr diff --git a/src/test/ui/use/use-self-type.rs b/tests/ui/use/use-self-type.rs similarity index 100% rename from src/test/ui/use/use-self-type.rs rename to tests/ui/use/use-self-type.rs diff --git a/src/test/ui/use/use-self-type.stderr b/tests/ui/use/use-self-type.stderr similarity index 100% rename from src/test/ui/use/use-self-type.stderr rename to tests/ui/use/use-self-type.stderr diff --git a/src/test/ui/use/use-super-global-path.rs b/tests/ui/use/use-super-global-path.rs similarity index 100% rename from src/test/ui/use/use-super-global-path.rs rename to tests/ui/use/use-super-global-path.rs diff --git a/src/test/ui/use/use-super-global-path.stderr b/tests/ui/use/use-super-global-path.stderr similarity index 100% rename from src/test/ui/use/use-super-global-path.stderr rename to tests/ui/use/use-super-global-path.stderr diff --git a/src/test/ui/used.rs b/tests/ui/used.rs similarity index 100% rename from src/test/ui/used.rs rename to tests/ui/used.rs diff --git a/src/test/ui/used.stderr b/tests/ui/used.stderr similarity index 100% rename from src/test/ui/used.stderr rename to tests/ui/used.stderr diff --git a/src/test/ui/user-defined-macro-rules.rs b/tests/ui/user-defined-macro-rules.rs similarity index 100% rename from src/test/ui/user-defined-macro-rules.rs rename to tests/ui/user-defined-macro-rules.rs diff --git a/src/test/ui/using-target-feature-unstable.rs b/tests/ui/using-target-feature-unstable.rs similarity index 100% rename from src/test/ui/using-target-feature-unstable.rs rename to tests/ui/using-target-feature-unstable.rs diff --git a/src/test/ui/usize-generic-argument-parent.rs b/tests/ui/usize-generic-argument-parent.rs similarity index 100% rename from src/test/ui/usize-generic-argument-parent.rs rename to tests/ui/usize-generic-argument-parent.rs diff --git a/src/test/ui/usize-generic-argument-parent.stderr b/tests/ui/usize-generic-argument-parent.stderr similarity index 100% rename from src/test/ui/usize-generic-argument-parent.stderr rename to tests/ui/usize-generic-argument-parent.stderr diff --git a/src/test/ui/utf8-bom.rs b/tests/ui/utf8-bom.rs similarity index 100% rename from src/test/ui/utf8-bom.rs rename to tests/ui/utf8-bom.rs diff --git a/src/test/ui/utf8_idents.rs b/tests/ui/utf8_idents.rs similarity index 100% rename from src/test/ui/utf8_idents.rs rename to tests/ui/utf8_idents.rs diff --git a/src/test/ui/variance-intersection-of-ref-and-opt-ref.rs b/tests/ui/variance-intersection-of-ref-and-opt-ref.rs similarity index 100% rename from src/test/ui/variance-intersection-of-ref-and-opt-ref.rs rename to tests/ui/variance-intersection-of-ref-and-opt-ref.rs diff --git a/src/test/ui/variance-iterators-in-libcore.rs b/tests/ui/variance-iterators-in-libcore.rs similarity index 100% rename from src/test/ui/variance-iterators-in-libcore.rs rename to tests/ui/variance-iterators-in-libcore.rs diff --git a/src/test/ui/variance/variance-associated-consts.rs b/tests/ui/variance/variance-associated-consts.rs similarity index 100% rename from src/test/ui/variance/variance-associated-consts.rs rename to tests/ui/variance/variance-associated-consts.rs diff --git a/src/test/ui/variance/variance-associated-consts.stderr b/tests/ui/variance/variance-associated-consts.stderr similarity index 100% rename from src/test/ui/variance/variance-associated-consts.stderr rename to tests/ui/variance/variance-associated-consts.stderr diff --git a/src/test/ui/variance/variance-associated-types.rs b/tests/ui/variance/variance-associated-types.rs similarity index 100% rename from src/test/ui/variance/variance-associated-types.rs rename to tests/ui/variance/variance-associated-types.rs diff --git a/src/test/ui/variance/variance-associated-types.stderr b/tests/ui/variance/variance-associated-types.stderr similarity index 100% rename from src/test/ui/variance/variance-associated-types.stderr rename to tests/ui/variance/variance-associated-types.stderr diff --git a/src/test/ui/variance/variance-associated-types2.rs b/tests/ui/variance/variance-associated-types2.rs similarity index 100% rename from src/test/ui/variance/variance-associated-types2.rs rename to tests/ui/variance/variance-associated-types2.rs diff --git a/src/test/ui/variance/variance-associated-types2.stderr b/tests/ui/variance/variance-associated-types2.stderr similarity index 100% rename from src/test/ui/variance/variance-associated-types2.stderr rename to tests/ui/variance/variance-associated-types2.stderr diff --git a/src/test/ui/variance/variance-btree-invariant-types.rs b/tests/ui/variance/variance-btree-invariant-types.rs similarity index 100% rename from src/test/ui/variance/variance-btree-invariant-types.rs rename to tests/ui/variance/variance-btree-invariant-types.rs diff --git a/src/test/ui/variance/variance-btree-invariant-types.stderr b/tests/ui/variance/variance-btree-invariant-types.stderr similarity index 100% rename from src/test/ui/variance/variance-btree-invariant-types.stderr rename to tests/ui/variance/variance-btree-invariant-types.stderr diff --git a/src/test/ui/variance/variance-cell-is-invariant.rs b/tests/ui/variance/variance-cell-is-invariant.rs similarity index 100% rename from src/test/ui/variance/variance-cell-is-invariant.rs rename to tests/ui/variance/variance-cell-is-invariant.rs diff --git a/src/test/ui/variance/variance-cell-is-invariant.stderr b/tests/ui/variance/variance-cell-is-invariant.stderr similarity index 100% rename from src/test/ui/variance/variance-cell-is-invariant.stderr rename to tests/ui/variance/variance-cell-is-invariant.stderr diff --git a/src/test/ui/variance/variance-contravariant-arg-object.rs b/tests/ui/variance/variance-contravariant-arg-object.rs similarity index 100% rename from src/test/ui/variance/variance-contravariant-arg-object.rs rename to tests/ui/variance/variance-contravariant-arg-object.rs diff --git a/src/test/ui/variance/variance-contravariant-arg-object.stderr b/tests/ui/variance/variance-contravariant-arg-object.stderr similarity index 100% rename from src/test/ui/variance/variance-contravariant-arg-object.stderr rename to tests/ui/variance/variance-contravariant-arg-object.stderr diff --git a/src/test/ui/variance/variance-contravariant-arg-trait-match.rs b/tests/ui/variance/variance-contravariant-arg-trait-match.rs similarity index 100% rename from src/test/ui/variance/variance-contravariant-arg-trait-match.rs rename to tests/ui/variance/variance-contravariant-arg-trait-match.rs diff --git a/src/test/ui/variance/variance-contravariant-arg-trait-match.stderr b/tests/ui/variance/variance-contravariant-arg-trait-match.stderr similarity index 100% rename from src/test/ui/variance/variance-contravariant-arg-trait-match.stderr rename to tests/ui/variance/variance-contravariant-arg-trait-match.stderr diff --git a/src/test/ui/variance/variance-contravariant-self-trait-match.rs b/tests/ui/variance/variance-contravariant-self-trait-match.rs similarity index 100% rename from src/test/ui/variance/variance-contravariant-self-trait-match.rs rename to tests/ui/variance/variance-contravariant-self-trait-match.rs diff --git a/src/test/ui/variance/variance-contravariant-self-trait-match.stderr b/tests/ui/variance/variance-contravariant-self-trait-match.stderr similarity index 100% rename from src/test/ui/variance/variance-contravariant-self-trait-match.stderr rename to tests/ui/variance/variance-contravariant-self-trait-match.stderr diff --git a/src/test/ui/variance/variance-covariant-arg-object.rs b/tests/ui/variance/variance-covariant-arg-object.rs similarity index 100% rename from src/test/ui/variance/variance-covariant-arg-object.rs rename to tests/ui/variance/variance-covariant-arg-object.rs diff --git a/src/test/ui/variance/variance-covariant-arg-object.stderr b/tests/ui/variance/variance-covariant-arg-object.stderr similarity index 100% rename from src/test/ui/variance/variance-covariant-arg-object.stderr rename to tests/ui/variance/variance-covariant-arg-object.stderr diff --git a/src/test/ui/variance/variance-covariant-arg-trait-match.rs b/tests/ui/variance/variance-covariant-arg-trait-match.rs similarity index 100% rename from src/test/ui/variance/variance-covariant-arg-trait-match.rs rename to tests/ui/variance/variance-covariant-arg-trait-match.rs diff --git a/src/test/ui/variance/variance-covariant-arg-trait-match.stderr b/tests/ui/variance/variance-covariant-arg-trait-match.stderr similarity index 100% rename from src/test/ui/variance/variance-covariant-arg-trait-match.stderr rename to tests/ui/variance/variance-covariant-arg-trait-match.stderr diff --git a/src/test/ui/variance/variance-covariant-self-trait-match.rs b/tests/ui/variance/variance-covariant-self-trait-match.rs similarity index 100% rename from src/test/ui/variance/variance-covariant-self-trait-match.rs rename to tests/ui/variance/variance-covariant-self-trait-match.rs diff --git a/src/test/ui/variance/variance-covariant-self-trait-match.stderr b/tests/ui/variance/variance-covariant-self-trait-match.stderr similarity index 100% rename from src/test/ui/variance/variance-covariant-self-trait-match.stderr rename to tests/ui/variance/variance-covariant-self-trait-match.stderr diff --git a/src/test/ui/variance/variance-invariant-arg-object.rs b/tests/ui/variance/variance-invariant-arg-object.rs similarity index 100% rename from src/test/ui/variance/variance-invariant-arg-object.rs rename to tests/ui/variance/variance-invariant-arg-object.rs diff --git a/src/test/ui/variance/variance-invariant-arg-object.stderr b/tests/ui/variance/variance-invariant-arg-object.stderr similarity index 100% rename from src/test/ui/variance/variance-invariant-arg-object.stderr rename to tests/ui/variance/variance-invariant-arg-object.stderr diff --git a/src/test/ui/variance/variance-invariant-arg-trait-match.rs b/tests/ui/variance/variance-invariant-arg-trait-match.rs similarity index 100% rename from src/test/ui/variance/variance-invariant-arg-trait-match.rs rename to tests/ui/variance/variance-invariant-arg-trait-match.rs diff --git a/src/test/ui/variance/variance-invariant-arg-trait-match.stderr b/tests/ui/variance/variance-invariant-arg-trait-match.stderr similarity index 100% rename from src/test/ui/variance/variance-invariant-arg-trait-match.stderr rename to tests/ui/variance/variance-invariant-arg-trait-match.stderr diff --git a/src/test/ui/variance/variance-invariant-self-trait-match.rs b/tests/ui/variance/variance-invariant-self-trait-match.rs similarity index 100% rename from src/test/ui/variance/variance-invariant-self-trait-match.rs rename to tests/ui/variance/variance-invariant-self-trait-match.rs diff --git a/src/test/ui/variance/variance-invariant-self-trait-match.stderr b/tests/ui/variance/variance-invariant-self-trait-match.stderr similarity index 100% rename from src/test/ui/variance/variance-invariant-self-trait-match.stderr rename to tests/ui/variance/variance-invariant-self-trait-match.stderr diff --git a/src/test/ui/variance/variance-issue-20533.rs b/tests/ui/variance/variance-issue-20533.rs similarity index 100% rename from src/test/ui/variance/variance-issue-20533.rs rename to tests/ui/variance/variance-issue-20533.rs diff --git a/src/test/ui/variance/variance-issue-20533.stderr b/tests/ui/variance/variance-issue-20533.stderr similarity index 100% rename from src/test/ui/variance/variance-issue-20533.stderr rename to tests/ui/variance/variance-issue-20533.stderr diff --git a/src/test/ui/variance/variance-object-types.rs b/tests/ui/variance/variance-object-types.rs similarity index 100% rename from src/test/ui/variance/variance-object-types.rs rename to tests/ui/variance/variance-object-types.rs diff --git a/src/test/ui/variance/variance-object-types.stderr b/tests/ui/variance/variance-object-types.stderr similarity index 100% rename from src/test/ui/variance/variance-object-types.stderr rename to tests/ui/variance/variance-object-types.stderr diff --git a/src/test/ui/variance/variance-regions-direct.rs b/tests/ui/variance/variance-regions-direct.rs similarity index 100% rename from src/test/ui/variance/variance-regions-direct.rs rename to tests/ui/variance/variance-regions-direct.rs diff --git a/src/test/ui/variance/variance-regions-direct.stderr b/tests/ui/variance/variance-regions-direct.stderr similarity index 100% rename from src/test/ui/variance/variance-regions-direct.stderr rename to tests/ui/variance/variance-regions-direct.stderr diff --git a/src/test/ui/variance/variance-regions-indirect.rs b/tests/ui/variance/variance-regions-indirect.rs similarity index 100% rename from src/test/ui/variance/variance-regions-indirect.rs rename to tests/ui/variance/variance-regions-indirect.rs diff --git a/src/test/ui/variance/variance-regions-indirect.stderr b/tests/ui/variance/variance-regions-indirect.stderr similarity index 100% rename from src/test/ui/variance/variance-regions-indirect.stderr rename to tests/ui/variance/variance-regions-indirect.stderr diff --git a/src/test/ui/variance/variance-regions-unused-direct.rs b/tests/ui/variance/variance-regions-unused-direct.rs similarity index 100% rename from src/test/ui/variance/variance-regions-unused-direct.rs rename to tests/ui/variance/variance-regions-unused-direct.rs diff --git a/src/test/ui/variance/variance-regions-unused-direct.stderr b/tests/ui/variance/variance-regions-unused-direct.stderr similarity index 100% rename from src/test/ui/variance/variance-regions-unused-direct.stderr rename to tests/ui/variance/variance-regions-unused-direct.stderr diff --git a/src/test/ui/variance/variance-regions-unused-indirect.rs b/tests/ui/variance/variance-regions-unused-indirect.rs similarity index 100% rename from src/test/ui/variance/variance-regions-unused-indirect.rs rename to tests/ui/variance/variance-regions-unused-indirect.rs diff --git a/src/test/ui/variance/variance-regions-unused-indirect.stderr b/tests/ui/variance/variance-regions-unused-indirect.stderr similarity index 100% rename from src/test/ui/variance/variance-regions-unused-indirect.stderr rename to tests/ui/variance/variance-regions-unused-indirect.stderr diff --git a/src/test/ui/variance/variance-trait-bounds.rs b/tests/ui/variance/variance-trait-bounds.rs similarity index 100% rename from src/test/ui/variance/variance-trait-bounds.rs rename to tests/ui/variance/variance-trait-bounds.rs diff --git a/src/test/ui/variance/variance-trait-bounds.stderr b/tests/ui/variance/variance-trait-bounds.stderr similarity index 100% rename from src/test/ui/variance/variance-trait-bounds.stderr rename to tests/ui/variance/variance-trait-bounds.stderr diff --git a/src/test/ui/variance/variance-trait-matching.rs b/tests/ui/variance/variance-trait-matching.rs similarity index 100% rename from src/test/ui/variance/variance-trait-matching.rs rename to tests/ui/variance/variance-trait-matching.rs diff --git a/src/test/ui/variance/variance-trait-matching.stderr b/tests/ui/variance/variance-trait-matching.stderr similarity index 100% rename from src/test/ui/variance/variance-trait-matching.stderr rename to tests/ui/variance/variance-trait-matching.stderr diff --git a/src/test/ui/variance/variance-trait-object-bound.rs b/tests/ui/variance/variance-trait-object-bound.rs similarity index 100% rename from src/test/ui/variance/variance-trait-object-bound.rs rename to tests/ui/variance/variance-trait-object-bound.rs diff --git a/src/test/ui/variance/variance-trait-object-bound.stderr b/tests/ui/variance/variance-trait-object-bound.stderr similarity index 100% rename from src/test/ui/variance/variance-trait-object-bound.stderr rename to tests/ui/variance/variance-trait-object-bound.stderr diff --git a/src/test/ui/variance/variance-types-bounds.rs b/tests/ui/variance/variance-types-bounds.rs similarity index 100% rename from src/test/ui/variance/variance-types-bounds.rs rename to tests/ui/variance/variance-types-bounds.rs diff --git a/src/test/ui/variance/variance-types-bounds.stderr b/tests/ui/variance/variance-types-bounds.stderr similarity index 100% rename from src/test/ui/variance/variance-types-bounds.stderr rename to tests/ui/variance/variance-types-bounds.stderr diff --git a/src/test/ui/variance/variance-types.rs b/tests/ui/variance/variance-types.rs similarity index 100% rename from src/test/ui/variance/variance-types.rs rename to tests/ui/variance/variance-types.rs diff --git a/src/test/ui/variance/variance-types.stderr b/tests/ui/variance/variance-types.stderr similarity index 100% rename from src/test/ui/variance/variance-types.stderr rename to tests/ui/variance/variance-types.stderr diff --git a/src/test/ui/variance/variance-unused-region-param.rs b/tests/ui/variance/variance-unused-region-param.rs similarity index 100% rename from src/test/ui/variance/variance-unused-region-param.rs rename to tests/ui/variance/variance-unused-region-param.rs diff --git a/src/test/ui/variance/variance-unused-region-param.stderr b/tests/ui/variance/variance-unused-region-param.stderr similarity index 100% rename from src/test/ui/variance/variance-unused-region-param.stderr rename to tests/ui/variance/variance-unused-region-param.stderr diff --git a/src/test/ui/variance/variance-unused-type-param.rs b/tests/ui/variance/variance-unused-type-param.rs similarity index 100% rename from src/test/ui/variance/variance-unused-type-param.rs rename to tests/ui/variance/variance-unused-type-param.rs diff --git a/src/test/ui/variance/variance-unused-type-param.stderr b/tests/ui/variance/variance-unused-type-param.stderr similarity index 100% rename from src/test/ui/variance/variance-unused-type-param.stderr rename to tests/ui/variance/variance-unused-type-param.stderr diff --git a/src/test/ui/variance/variance-use-contravariant-struct-1.rs b/tests/ui/variance/variance-use-contravariant-struct-1.rs similarity index 100% rename from src/test/ui/variance/variance-use-contravariant-struct-1.rs rename to tests/ui/variance/variance-use-contravariant-struct-1.rs diff --git a/src/test/ui/variance/variance-use-contravariant-struct-1.stderr b/tests/ui/variance/variance-use-contravariant-struct-1.stderr similarity index 100% rename from src/test/ui/variance/variance-use-contravariant-struct-1.stderr rename to tests/ui/variance/variance-use-contravariant-struct-1.stderr diff --git a/src/test/ui/variance/variance-use-contravariant-struct-2.rs b/tests/ui/variance/variance-use-contravariant-struct-2.rs similarity index 100% rename from src/test/ui/variance/variance-use-contravariant-struct-2.rs rename to tests/ui/variance/variance-use-contravariant-struct-2.rs diff --git a/src/test/ui/variance/variance-use-covariant-struct-1.rs b/tests/ui/variance/variance-use-covariant-struct-1.rs similarity index 100% rename from src/test/ui/variance/variance-use-covariant-struct-1.rs rename to tests/ui/variance/variance-use-covariant-struct-1.rs diff --git a/src/test/ui/variance/variance-use-covariant-struct-1.stderr b/tests/ui/variance/variance-use-covariant-struct-1.stderr similarity index 100% rename from src/test/ui/variance/variance-use-covariant-struct-1.stderr rename to tests/ui/variance/variance-use-covariant-struct-1.stderr diff --git a/src/test/ui/variance/variance-use-covariant-struct-2.rs b/tests/ui/variance/variance-use-covariant-struct-2.rs similarity index 100% rename from src/test/ui/variance/variance-use-covariant-struct-2.rs rename to tests/ui/variance/variance-use-covariant-struct-2.rs diff --git a/src/test/ui/variance/variance-use-invariant-struct-1.rs b/tests/ui/variance/variance-use-invariant-struct-1.rs similarity index 100% rename from src/test/ui/variance/variance-use-invariant-struct-1.rs rename to tests/ui/variance/variance-use-invariant-struct-1.rs diff --git a/src/test/ui/variance/variance-use-invariant-struct-1.stderr b/tests/ui/variance/variance-use-invariant-struct-1.stderr similarity index 100% rename from src/test/ui/variance/variance-use-invariant-struct-1.stderr rename to tests/ui/variance/variance-use-invariant-struct-1.stderr diff --git a/src/test/ui/variants/auxiliary/variant-namespacing.rs b/tests/ui/variants/auxiliary/variant-namespacing.rs similarity index 100% rename from src/test/ui/variants/auxiliary/variant-namespacing.rs rename to tests/ui/variants/auxiliary/variant-namespacing.rs diff --git a/src/test/ui/variants/variant-namespacing.rs b/tests/ui/variants/variant-namespacing.rs similarity index 100% rename from src/test/ui/variants/variant-namespacing.rs rename to tests/ui/variants/variant-namespacing.rs diff --git a/src/test/ui/variants/variant-namespacing.stderr b/tests/ui/variants/variant-namespacing.stderr similarity index 100% rename from src/test/ui/variants/variant-namespacing.stderr rename to tests/ui/variants/variant-namespacing.stderr diff --git a/src/test/ui/variants/variant-size-differences.rs b/tests/ui/variants/variant-size-differences.rs similarity index 100% rename from src/test/ui/variants/variant-size-differences.rs rename to tests/ui/variants/variant-size-differences.rs diff --git a/src/test/ui/variants/variant-size-differences.stderr b/tests/ui/variants/variant-size-differences.stderr similarity index 100% rename from src/test/ui/variants/variant-size-differences.stderr rename to tests/ui/variants/variant-size-differences.stderr diff --git a/src/test/ui/variants/variant-used-as-type.rs b/tests/ui/variants/variant-used-as-type.rs similarity index 100% rename from src/test/ui/variants/variant-used-as-type.rs rename to tests/ui/variants/variant-used-as-type.rs diff --git a/src/test/ui/variants/variant-used-as-type.stderr b/tests/ui/variants/variant-used-as-type.stderr similarity index 100% rename from src/test/ui/variants/variant-used-as-type.stderr rename to tests/ui/variants/variant-used-as-type.stderr diff --git a/src/test/ui/wait-forked-but-failed-child.rs b/tests/ui/wait-forked-but-failed-child.rs similarity index 100% rename from src/test/ui/wait-forked-but-failed-child.rs rename to tests/ui/wait-forked-but-failed-child.rs diff --git a/src/test/ui/walk-struct-literal-with.rs b/tests/ui/walk-struct-literal-with.rs similarity index 100% rename from src/test/ui/walk-struct-literal-with.rs rename to tests/ui/walk-struct-literal-with.rs diff --git a/src/test/ui/walk-struct-literal-with.stderr b/tests/ui/walk-struct-literal-with.stderr similarity index 100% rename from src/test/ui/walk-struct-literal-with.stderr rename to tests/ui/walk-struct-literal-with.stderr diff --git a/src/test/ui/wasm-custom-section-relocations.rs b/tests/ui/wasm-custom-section-relocations.rs similarity index 100% rename from src/test/ui/wasm-custom-section-relocations.rs rename to tests/ui/wasm-custom-section-relocations.rs diff --git a/src/test/ui/wasm-custom-section-relocations.stderr b/tests/ui/wasm-custom-section-relocations.stderr similarity index 100% rename from src/test/ui/wasm-custom-section-relocations.stderr rename to tests/ui/wasm-custom-section-relocations.stderr diff --git a/src/test/ui/wasm/simd-to-array-80108.rs b/tests/ui/wasm/simd-to-array-80108.rs similarity index 100% rename from src/test/ui/wasm/simd-to-array-80108.rs rename to tests/ui/wasm/simd-to-array-80108.rs diff --git a/src/test/ui/wasm/wasm-hang-issue-76281.rs b/tests/ui/wasm/wasm-hang-issue-76281.rs similarity index 100% rename from src/test/ui/wasm/wasm-hang-issue-76281.rs rename to tests/ui/wasm/wasm-hang-issue-76281.rs diff --git a/src/test/ui/wasm/wasm-import-module.rs b/tests/ui/wasm/wasm-import-module.rs similarity index 100% rename from src/test/ui/wasm/wasm-import-module.rs rename to tests/ui/wasm/wasm-import-module.rs diff --git a/src/test/ui/wasm/wasm-import-module.stderr b/tests/ui/wasm/wasm-import-module.stderr similarity index 100% rename from src/test/ui/wasm/wasm-import-module.stderr rename to tests/ui/wasm/wasm-import-module.stderr diff --git a/src/test/ui/weak-new-uninhabited-issue-48493.rs b/tests/ui/weak-new-uninhabited-issue-48493.rs similarity index 100% rename from src/test/ui/weak-new-uninhabited-issue-48493.rs rename to tests/ui/weak-new-uninhabited-issue-48493.rs diff --git a/src/test/ui/weird-exit-code.rs b/tests/ui/weird-exit-code.rs similarity index 100% rename from src/test/ui/weird-exit-code.rs rename to tests/ui/weird-exit-code.rs diff --git a/src/test/ui/weird-exprs.rs b/tests/ui/weird-exprs.rs similarity index 100% rename from src/test/ui/weird-exprs.rs rename to tests/ui/weird-exprs.rs diff --git a/src/test/ui/wf/hir-wf-canonicalized.rs b/tests/ui/wf/hir-wf-canonicalized.rs similarity index 100% rename from src/test/ui/wf/hir-wf-canonicalized.rs rename to tests/ui/wf/hir-wf-canonicalized.rs diff --git a/src/test/ui/wf/hir-wf-canonicalized.stderr b/tests/ui/wf/hir-wf-canonicalized.stderr similarity index 100% rename from src/test/ui/wf/hir-wf-canonicalized.stderr rename to tests/ui/wf/hir-wf-canonicalized.stderr diff --git a/src/test/ui/wf/hir-wf-check-erase-regions.rs b/tests/ui/wf/hir-wf-check-erase-regions.rs similarity index 100% rename from src/test/ui/wf/hir-wf-check-erase-regions.rs rename to tests/ui/wf/hir-wf-check-erase-regions.rs diff --git a/src/test/ui/wf/hir-wf-check-erase-regions.stderr b/tests/ui/wf/hir-wf-check-erase-regions.stderr similarity index 100% rename from src/test/ui/wf/hir-wf-check-erase-regions.stderr rename to tests/ui/wf/hir-wf-check-erase-regions.stderr diff --git a/src/test/ui/wf/issue-103573.rs b/tests/ui/wf/issue-103573.rs similarity index 100% rename from src/test/ui/wf/issue-103573.rs rename to tests/ui/wf/issue-103573.rs diff --git a/src/test/ui/wf/issue-103573.stderr b/tests/ui/wf/issue-103573.stderr similarity index 100% rename from src/test/ui/wf/issue-103573.stderr rename to tests/ui/wf/issue-103573.stderr diff --git a/src/test/ui/wf/issue-48638.rs b/tests/ui/wf/issue-48638.rs similarity index 100% rename from src/test/ui/wf/issue-48638.rs rename to tests/ui/wf/issue-48638.rs diff --git a/src/test/ui/wf/issue-87495.rs b/tests/ui/wf/issue-87495.rs similarity index 100% rename from src/test/ui/wf/issue-87495.rs rename to tests/ui/wf/issue-87495.rs diff --git a/src/test/ui/wf/issue-87495.stderr b/tests/ui/wf/issue-87495.stderr similarity index 100% rename from src/test/ui/wf/issue-87495.stderr rename to tests/ui/wf/issue-87495.stderr diff --git a/src/test/ui/wf/issue-95665.rs b/tests/ui/wf/issue-95665.rs similarity index 100% rename from src/test/ui/wf/issue-95665.rs rename to tests/ui/wf/issue-95665.rs diff --git a/src/test/ui/wf/issue-95665.stderr b/tests/ui/wf/issue-95665.stderr similarity index 100% rename from src/test/ui/wf/issue-95665.stderr rename to tests/ui/wf/issue-95665.stderr diff --git a/src/test/ui/wf/issue-96810.rs b/tests/ui/wf/issue-96810.rs similarity index 100% rename from src/test/ui/wf/issue-96810.rs rename to tests/ui/wf/issue-96810.rs diff --git a/src/test/ui/wf/issue-96810.stderr b/tests/ui/wf/issue-96810.stderr similarity index 100% rename from src/test/ui/wf/issue-96810.stderr rename to tests/ui/wf/issue-96810.stderr diff --git a/src/test/ui/wf/wf-array-elem-sized.rs b/tests/ui/wf/wf-array-elem-sized.rs similarity index 100% rename from src/test/ui/wf/wf-array-elem-sized.rs rename to tests/ui/wf/wf-array-elem-sized.rs diff --git a/src/test/ui/wf/wf-array-elem-sized.stderr b/tests/ui/wf/wf-array-elem-sized.stderr similarity index 100% rename from src/test/ui/wf/wf-array-elem-sized.stderr rename to tests/ui/wf/wf-array-elem-sized.stderr diff --git a/src/test/ui/wf/wf-complex-assoc-type.rs b/tests/ui/wf/wf-complex-assoc-type.rs similarity index 100% rename from src/test/ui/wf/wf-complex-assoc-type.rs rename to tests/ui/wf/wf-complex-assoc-type.rs diff --git a/src/test/ui/wf/wf-complex-assoc-type.stderr b/tests/ui/wf/wf-complex-assoc-type.stderr similarity index 100% rename from src/test/ui/wf/wf-complex-assoc-type.stderr rename to tests/ui/wf/wf-complex-assoc-type.stderr diff --git a/src/test/ui/wf/wf-const-type.rs b/tests/ui/wf/wf-const-type.rs similarity index 100% rename from src/test/ui/wf/wf-const-type.rs rename to tests/ui/wf/wf-const-type.rs diff --git a/src/test/ui/wf/wf-const-type.stderr b/tests/ui/wf/wf-const-type.stderr similarity index 100% rename from src/test/ui/wf/wf-const-type.stderr rename to tests/ui/wf/wf-const-type.stderr diff --git a/src/test/ui/wf/wf-convert-unsafe-trait-obj-box.rs b/tests/ui/wf/wf-convert-unsafe-trait-obj-box.rs similarity index 100% rename from src/test/ui/wf/wf-convert-unsafe-trait-obj-box.rs rename to tests/ui/wf/wf-convert-unsafe-trait-obj-box.rs diff --git a/src/test/ui/wf/wf-convert-unsafe-trait-obj-box.stderr b/tests/ui/wf/wf-convert-unsafe-trait-obj-box.stderr similarity index 100% rename from src/test/ui/wf/wf-convert-unsafe-trait-obj-box.stderr rename to tests/ui/wf/wf-convert-unsafe-trait-obj-box.stderr diff --git a/src/test/ui/wf/wf-convert-unsafe-trait-obj.rs b/tests/ui/wf/wf-convert-unsafe-trait-obj.rs similarity index 100% rename from src/test/ui/wf/wf-convert-unsafe-trait-obj.rs rename to tests/ui/wf/wf-convert-unsafe-trait-obj.rs diff --git a/src/test/ui/wf/wf-convert-unsafe-trait-obj.stderr b/tests/ui/wf/wf-convert-unsafe-trait-obj.stderr similarity index 100% rename from src/test/ui/wf/wf-convert-unsafe-trait-obj.stderr rename to tests/ui/wf/wf-convert-unsafe-trait-obj.stderr diff --git a/src/test/ui/wf/wf-enum-bound.rs b/tests/ui/wf/wf-enum-bound.rs similarity index 100% rename from src/test/ui/wf/wf-enum-bound.rs rename to tests/ui/wf/wf-enum-bound.rs diff --git a/src/test/ui/wf/wf-enum-bound.stderr b/tests/ui/wf/wf-enum-bound.stderr similarity index 100% rename from src/test/ui/wf/wf-enum-bound.stderr rename to tests/ui/wf/wf-enum-bound.stderr diff --git a/src/test/ui/wf/wf-enum-fields-struct-variant.rs b/tests/ui/wf/wf-enum-fields-struct-variant.rs similarity index 100% rename from src/test/ui/wf/wf-enum-fields-struct-variant.rs rename to tests/ui/wf/wf-enum-fields-struct-variant.rs diff --git a/src/test/ui/wf/wf-enum-fields-struct-variant.stderr b/tests/ui/wf/wf-enum-fields-struct-variant.stderr similarity index 100% rename from src/test/ui/wf/wf-enum-fields-struct-variant.stderr rename to tests/ui/wf/wf-enum-fields-struct-variant.stderr diff --git a/src/test/ui/wf/wf-enum-fields.rs b/tests/ui/wf/wf-enum-fields.rs similarity index 100% rename from src/test/ui/wf/wf-enum-fields.rs rename to tests/ui/wf/wf-enum-fields.rs diff --git a/src/test/ui/wf/wf-enum-fields.stderr b/tests/ui/wf/wf-enum-fields.stderr similarity index 100% rename from src/test/ui/wf/wf-enum-fields.stderr rename to tests/ui/wf/wf-enum-fields.stderr diff --git a/src/test/ui/wf/wf-fn-where-clause.rs b/tests/ui/wf/wf-fn-where-clause.rs similarity index 100% rename from src/test/ui/wf/wf-fn-where-clause.rs rename to tests/ui/wf/wf-fn-where-clause.rs diff --git a/src/test/ui/wf/wf-fn-where-clause.stderr b/tests/ui/wf/wf-fn-where-clause.stderr similarity index 100% rename from src/test/ui/wf/wf-fn-where-clause.stderr rename to tests/ui/wf/wf-fn-where-clause.stderr diff --git a/src/test/ui/wf/wf-foreign-fn-decl-ret.rs b/tests/ui/wf/wf-foreign-fn-decl-ret.rs similarity index 100% rename from src/test/ui/wf/wf-foreign-fn-decl-ret.rs rename to tests/ui/wf/wf-foreign-fn-decl-ret.rs diff --git a/src/test/ui/wf/wf-foreign-fn-decl-ret.stderr b/tests/ui/wf/wf-foreign-fn-decl-ret.stderr similarity index 100% rename from src/test/ui/wf/wf-foreign-fn-decl-ret.stderr rename to tests/ui/wf/wf-foreign-fn-decl-ret.stderr diff --git a/src/test/ui/wf/wf-impl-associated-type-region.rs b/tests/ui/wf/wf-impl-associated-type-region.rs similarity index 100% rename from src/test/ui/wf/wf-impl-associated-type-region.rs rename to tests/ui/wf/wf-impl-associated-type-region.rs diff --git a/src/test/ui/wf/wf-impl-associated-type-region.stderr b/tests/ui/wf/wf-impl-associated-type-region.stderr similarity index 100% rename from src/test/ui/wf/wf-impl-associated-type-region.stderr rename to tests/ui/wf/wf-impl-associated-type-region.stderr diff --git a/src/test/ui/wf/wf-impl-associated-type-trait.rs b/tests/ui/wf/wf-impl-associated-type-trait.rs similarity index 100% rename from src/test/ui/wf/wf-impl-associated-type-trait.rs rename to tests/ui/wf/wf-impl-associated-type-trait.rs diff --git a/src/test/ui/wf/wf-impl-associated-type-trait.stderr b/tests/ui/wf/wf-impl-associated-type-trait.stderr similarity index 100% rename from src/test/ui/wf/wf-impl-associated-type-trait.stderr rename to tests/ui/wf/wf-impl-associated-type-trait.stderr diff --git a/src/test/ui/wf/wf-impl-self-type.rs b/tests/ui/wf/wf-impl-self-type.rs similarity index 100% rename from src/test/ui/wf/wf-impl-self-type.rs rename to tests/ui/wf/wf-impl-self-type.rs diff --git a/src/test/ui/wf/wf-impl-self-type.stderr b/tests/ui/wf/wf-impl-self-type.stderr similarity index 100% rename from src/test/ui/wf/wf-impl-self-type.stderr rename to tests/ui/wf/wf-impl-self-type.stderr diff --git a/src/test/ui/wf/wf-in-fn-arg.rs b/tests/ui/wf/wf-in-fn-arg.rs similarity index 100% rename from src/test/ui/wf/wf-in-fn-arg.rs rename to tests/ui/wf/wf-in-fn-arg.rs diff --git a/src/test/ui/wf/wf-in-fn-arg.stderr b/tests/ui/wf/wf-in-fn-arg.stderr similarity index 100% rename from src/test/ui/wf/wf-in-fn-arg.stderr rename to tests/ui/wf/wf-in-fn-arg.stderr diff --git a/src/test/ui/wf/wf-in-fn-ret.rs b/tests/ui/wf/wf-in-fn-ret.rs similarity index 100% rename from src/test/ui/wf/wf-in-fn-ret.rs rename to tests/ui/wf/wf-in-fn-ret.rs diff --git a/src/test/ui/wf/wf-in-fn-ret.stderr b/tests/ui/wf/wf-in-fn-ret.stderr similarity index 100% rename from src/test/ui/wf/wf-in-fn-ret.stderr rename to tests/ui/wf/wf-in-fn-ret.stderr diff --git a/src/test/ui/wf/wf-in-fn-type-arg.rs b/tests/ui/wf/wf-in-fn-type-arg.rs similarity index 100% rename from src/test/ui/wf/wf-in-fn-type-arg.rs rename to tests/ui/wf/wf-in-fn-type-arg.rs diff --git a/src/test/ui/wf/wf-in-fn-type-arg.stderr b/tests/ui/wf/wf-in-fn-type-arg.stderr similarity index 100% rename from src/test/ui/wf/wf-in-fn-type-arg.stderr rename to tests/ui/wf/wf-in-fn-type-arg.stderr diff --git a/src/test/ui/wf/wf-in-fn-type-ret.rs b/tests/ui/wf/wf-in-fn-type-ret.rs similarity index 100% rename from src/test/ui/wf/wf-in-fn-type-ret.rs rename to tests/ui/wf/wf-in-fn-type-ret.rs diff --git a/src/test/ui/wf/wf-in-fn-type-ret.stderr b/tests/ui/wf/wf-in-fn-type-ret.stderr similarity index 100% rename from src/test/ui/wf/wf-in-fn-type-ret.stderr rename to tests/ui/wf/wf-in-fn-type-ret.stderr diff --git a/src/test/ui/wf/wf-in-fn-type-static.rs b/tests/ui/wf/wf-in-fn-type-static.rs similarity index 100% rename from src/test/ui/wf/wf-in-fn-type-static.rs rename to tests/ui/wf/wf-in-fn-type-static.rs diff --git a/src/test/ui/wf/wf-in-fn-type-static.stderr b/tests/ui/wf/wf-in-fn-type-static.stderr similarity index 100% rename from src/test/ui/wf/wf-in-fn-type-static.stderr rename to tests/ui/wf/wf-in-fn-type-static.stderr diff --git a/src/test/ui/wf/wf-in-fn-where-clause.rs b/tests/ui/wf/wf-in-fn-where-clause.rs similarity index 100% rename from src/test/ui/wf/wf-in-fn-where-clause.rs rename to tests/ui/wf/wf-in-fn-where-clause.rs diff --git a/src/test/ui/wf/wf-in-fn-where-clause.stderr b/tests/ui/wf/wf-in-fn-where-clause.stderr similarity index 100% rename from src/test/ui/wf/wf-in-fn-where-clause.stderr rename to tests/ui/wf/wf-in-fn-where-clause.stderr diff --git a/src/test/ui/wf/wf-in-foreign-fn-decls-issue-80468.rs b/tests/ui/wf/wf-in-foreign-fn-decls-issue-80468.rs similarity index 100% rename from src/test/ui/wf/wf-in-foreign-fn-decls-issue-80468.rs rename to tests/ui/wf/wf-in-foreign-fn-decls-issue-80468.rs diff --git a/src/test/ui/wf/wf-in-foreign-fn-decls-issue-80468.stderr b/tests/ui/wf/wf-in-foreign-fn-decls-issue-80468.stderr similarity index 100% rename from src/test/ui/wf/wf-in-foreign-fn-decls-issue-80468.stderr rename to tests/ui/wf/wf-in-foreign-fn-decls-issue-80468.stderr diff --git a/src/test/ui/wf/wf-in-obj-type-static.rs b/tests/ui/wf/wf-in-obj-type-static.rs similarity index 100% rename from src/test/ui/wf/wf-in-obj-type-static.rs rename to tests/ui/wf/wf-in-obj-type-static.rs diff --git a/src/test/ui/wf/wf-in-obj-type-static.stderr b/tests/ui/wf/wf-in-obj-type-static.stderr similarity index 100% rename from src/test/ui/wf/wf-in-obj-type-static.stderr rename to tests/ui/wf/wf-in-obj-type-static.stderr diff --git a/src/test/ui/wf/wf-in-obj-type-trait.rs b/tests/ui/wf/wf-in-obj-type-trait.rs similarity index 100% rename from src/test/ui/wf/wf-in-obj-type-trait.rs rename to tests/ui/wf/wf-in-obj-type-trait.rs diff --git a/src/test/ui/wf/wf-in-obj-type-trait.stderr b/tests/ui/wf/wf-in-obj-type-trait.stderr similarity index 100% rename from src/test/ui/wf/wf-in-obj-type-trait.stderr rename to tests/ui/wf/wf-in-obj-type-trait.stderr diff --git a/src/test/ui/wf/wf-inherent-impl-method-where-clause.rs b/tests/ui/wf/wf-inherent-impl-method-where-clause.rs similarity index 100% rename from src/test/ui/wf/wf-inherent-impl-method-where-clause.rs rename to tests/ui/wf/wf-inherent-impl-method-where-clause.rs diff --git a/src/test/ui/wf/wf-inherent-impl-method-where-clause.stderr b/tests/ui/wf/wf-inherent-impl-method-where-clause.stderr similarity index 100% rename from src/test/ui/wf/wf-inherent-impl-method-where-clause.stderr rename to tests/ui/wf/wf-inherent-impl-method-where-clause.stderr diff --git a/src/test/ui/wf/wf-inherent-impl-where-clause.rs b/tests/ui/wf/wf-inherent-impl-where-clause.rs similarity index 100% rename from src/test/ui/wf/wf-inherent-impl-where-clause.rs rename to tests/ui/wf/wf-inherent-impl-where-clause.rs diff --git a/src/test/ui/wf/wf-inherent-impl-where-clause.stderr b/tests/ui/wf/wf-inherent-impl-where-clause.stderr similarity index 100% rename from src/test/ui/wf/wf-inherent-impl-where-clause.stderr rename to tests/ui/wf/wf-inherent-impl-where-clause.stderr diff --git a/src/test/ui/wf/wf-misc-methods-issue-28609.rs b/tests/ui/wf/wf-misc-methods-issue-28609.rs similarity index 100% rename from src/test/ui/wf/wf-misc-methods-issue-28609.rs rename to tests/ui/wf/wf-misc-methods-issue-28609.rs diff --git a/src/test/ui/wf/wf-misc-methods-issue-28609.stderr b/tests/ui/wf/wf-misc-methods-issue-28609.stderr similarity index 100% rename from src/test/ui/wf/wf-misc-methods-issue-28609.stderr rename to tests/ui/wf/wf-misc-methods-issue-28609.stderr diff --git a/src/test/ui/wf/wf-object-safe.rs b/tests/ui/wf/wf-object-safe.rs similarity index 100% rename from src/test/ui/wf/wf-object-safe.rs rename to tests/ui/wf/wf-object-safe.rs diff --git a/src/test/ui/wf/wf-object-safe.stderr b/tests/ui/wf/wf-object-safe.stderr similarity index 100% rename from src/test/ui/wf/wf-object-safe.stderr rename to tests/ui/wf/wf-object-safe.stderr diff --git a/src/test/ui/wf/wf-outlives-ty-in-fn-or-trait.rs b/tests/ui/wf/wf-outlives-ty-in-fn-or-trait.rs similarity index 100% rename from src/test/ui/wf/wf-outlives-ty-in-fn-or-trait.rs rename to tests/ui/wf/wf-outlives-ty-in-fn-or-trait.rs diff --git a/src/test/ui/wf/wf-outlives-ty-in-fn-or-trait.stderr b/tests/ui/wf/wf-outlives-ty-in-fn-or-trait.stderr similarity index 100% rename from src/test/ui/wf/wf-outlives-ty-in-fn-or-trait.stderr rename to tests/ui/wf/wf-outlives-ty-in-fn-or-trait.stderr diff --git a/src/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs b/tests/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs similarity index 100% rename from src/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs rename to tests/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs diff --git a/src/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.stderr b/tests/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.stderr similarity index 100% rename from src/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.stderr rename to tests/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.stderr diff --git a/src/test/ui/wf/wf-static-method.rs b/tests/ui/wf/wf-static-method.rs similarity index 100% rename from src/test/ui/wf/wf-static-method.rs rename to tests/ui/wf/wf-static-method.rs diff --git a/src/test/ui/wf/wf-static-method.stderr b/tests/ui/wf/wf-static-method.stderr similarity index 100% rename from src/test/ui/wf/wf-static-method.stderr rename to tests/ui/wf/wf-static-method.stderr diff --git a/src/test/ui/wf/wf-static-type.rs b/tests/ui/wf/wf-static-type.rs similarity index 100% rename from src/test/ui/wf/wf-static-type.rs rename to tests/ui/wf/wf-static-type.rs diff --git a/src/test/ui/wf/wf-static-type.stderr b/tests/ui/wf/wf-static-type.stderr similarity index 100% rename from src/test/ui/wf/wf-static-type.stderr rename to tests/ui/wf/wf-static-type.stderr diff --git a/src/test/ui/wf/wf-struct-bound.rs b/tests/ui/wf/wf-struct-bound.rs similarity index 100% rename from src/test/ui/wf/wf-struct-bound.rs rename to tests/ui/wf/wf-struct-bound.rs diff --git a/src/test/ui/wf/wf-struct-bound.stderr b/tests/ui/wf/wf-struct-bound.stderr similarity index 100% rename from src/test/ui/wf/wf-struct-bound.stderr rename to tests/ui/wf/wf-struct-bound.stderr diff --git a/src/test/ui/wf/wf-struct-field.rs b/tests/ui/wf/wf-struct-field.rs similarity index 100% rename from src/test/ui/wf/wf-struct-field.rs rename to tests/ui/wf/wf-struct-field.rs diff --git a/src/test/ui/wf/wf-struct-field.stderr b/tests/ui/wf/wf-struct-field.stderr similarity index 100% rename from src/test/ui/wf/wf-struct-field.stderr rename to tests/ui/wf/wf-struct-field.stderr diff --git a/src/test/ui/wf/wf-trait-associated-type-bound.rs b/tests/ui/wf/wf-trait-associated-type-bound.rs similarity index 100% rename from src/test/ui/wf/wf-trait-associated-type-bound.rs rename to tests/ui/wf/wf-trait-associated-type-bound.rs diff --git a/src/test/ui/wf/wf-trait-associated-type-bound.stderr b/tests/ui/wf/wf-trait-associated-type-bound.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-associated-type-bound.stderr rename to tests/ui/wf/wf-trait-associated-type-bound.stderr diff --git a/src/test/ui/wf/wf-trait-associated-type-region.rs b/tests/ui/wf/wf-trait-associated-type-region.rs similarity index 100% rename from src/test/ui/wf/wf-trait-associated-type-region.rs rename to tests/ui/wf/wf-trait-associated-type-region.rs diff --git a/src/test/ui/wf/wf-trait-associated-type-region.stderr b/tests/ui/wf/wf-trait-associated-type-region.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-associated-type-region.stderr rename to tests/ui/wf/wf-trait-associated-type-region.stderr diff --git a/src/test/ui/wf/wf-trait-associated-type-trait.rs b/tests/ui/wf/wf-trait-associated-type-trait.rs similarity index 100% rename from src/test/ui/wf/wf-trait-associated-type-trait.rs rename to tests/ui/wf/wf-trait-associated-type-trait.rs diff --git a/src/test/ui/wf/wf-trait-associated-type-trait.stderr b/tests/ui/wf/wf-trait-associated-type-trait.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-associated-type-trait.stderr rename to tests/ui/wf/wf-trait-associated-type-trait.stderr diff --git a/src/test/ui/wf/wf-trait-bound.rs b/tests/ui/wf/wf-trait-bound.rs similarity index 100% rename from src/test/ui/wf/wf-trait-bound.rs rename to tests/ui/wf/wf-trait-bound.rs diff --git a/src/test/ui/wf/wf-trait-bound.stderr b/tests/ui/wf/wf-trait-bound.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-bound.stderr rename to tests/ui/wf/wf-trait-bound.stderr diff --git a/src/test/ui/wf/wf-trait-default-fn-arg.rs b/tests/ui/wf/wf-trait-default-fn-arg.rs similarity index 100% rename from src/test/ui/wf/wf-trait-default-fn-arg.rs rename to tests/ui/wf/wf-trait-default-fn-arg.rs diff --git a/src/test/ui/wf/wf-trait-default-fn-arg.stderr b/tests/ui/wf/wf-trait-default-fn-arg.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-default-fn-arg.stderr rename to tests/ui/wf/wf-trait-default-fn-arg.stderr diff --git a/src/test/ui/wf/wf-trait-default-fn-ret.rs b/tests/ui/wf/wf-trait-default-fn-ret.rs similarity index 100% rename from src/test/ui/wf/wf-trait-default-fn-ret.rs rename to tests/ui/wf/wf-trait-default-fn-ret.rs diff --git a/src/test/ui/wf/wf-trait-default-fn-ret.stderr b/tests/ui/wf/wf-trait-default-fn-ret.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-default-fn-ret.stderr rename to tests/ui/wf/wf-trait-default-fn-ret.stderr diff --git a/src/test/ui/wf/wf-trait-default-fn-where-clause.rs b/tests/ui/wf/wf-trait-default-fn-where-clause.rs similarity index 100% rename from src/test/ui/wf/wf-trait-default-fn-where-clause.rs rename to tests/ui/wf/wf-trait-default-fn-where-clause.rs diff --git a/src/test/ui/wf/wf-trait-default-fn-where-clause.stderr b/tests/ui/wf/wf-trait-default-fn-where-clause.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-default-fn-where-clause.stderr rename to tests/ui/wf/wf-trait-default-fn-where-clause.stderr diff --git a/src/test/ui/wf/wf-trait-fn-arg.rs b/tests/ui/wf/wf-trait-fn-arg.rs similarity index 100% rename from src/test/ui/wf/wf-trait-fn-arg.rs rename to tests/ui/wf/wf-trait-fn-arg.rs diff --git a/src/test/ui/wf/wf-trait-fn-arg.stderr b/tests/ui/wf/wf-trait-fn-arg.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-fn-arg.stderr rename to tests/ui/wf/wf-trait-fn-arg.stderr diff --git a/src/test/ui/wf/wf-trait-fn-ret.rs b/tests/ui/wf/wf-trait-fn-ret.rs similarity index 100% rename from src/test/ui/wf/wf-trait-fn-ret.rs rename to tests/ui/wf/wf-trait-fn-ret.rs diff --git a/src/test/ui/wf/wf-trait-fn-ret.stderr b/tests/ui/wf/wf-trait-fn-ret.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-fn-ret.stderr rename to tests/ui/wf/wf-trait-fn-ret.stderr diff --git a/src/test/ui/wf/wf-trait-fn-where-clause.rs b/tests/ui/wf/wf-trait-fn-where-clause.rs similarity index 100% rename from src/test/ui/wf/wf-trait-fn-where-clause.rs rename to tests/ui/wf/wf-trait-fn-where-clause.rs diff --git a/src/test/ui/wf/wf-trait-fn-where-clause.stderr b/tests/ui/wf/wf-trait-fn-where-clause.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-fn-where-clause.stderr rename to tests/ui/wf/wf-trait-fn-where-clause.stderr diff --git a/src/test/ui/wf/wf-trait-superbound.rs b/tests/ui/wf/wf-trait-superbound.rs similarity index 100% rename from src/test/ui/wf/wf-trait-superbound.rs rename to tests/ui/wf/wf-trait-superbound.rs diff --git a/src/test/ui/wf/wf-trait-superbound.stderr b/tests/ui/wf/wf-trait-superbound.stderr similarity index 100% rename from src/test/ui/wf/wf-trait-superbound.stderr rename to tests/ui/wf/wf-trait-superbound.stderr diff --git a/src/test/ui/wf/wf-unsafe-trait-obj-match.rs b/tests/ui/wf/wf-unsafe-trait-obj-match.rs similarity index 100% rename from src/test/ui/wf/wf-unsafe-trait-obj-match.rs rename to tests/ui/wf/wf-unsafe-trait-obj-match.rs diff --git a/src/test/ui/wf/wf-unsafe-trait-obj-match.stderr b/tests/ui/wf/wf-unsafe-trait-obj-match.stderr similarity index 100% rename from src/test/ui/wf/wf-unsafe-trait-obj-match.stderr rename to tests/ui/wf/wf-unsafe-trait-obj-match.stderr diff --git a/src/test/ui/where-clauses/auxiliary/where_clauses_xc.rs b/tests/ui/where-clauses/auxiliary/where_clauses_xc.rs similarity index 100% rename from src/test/ui/where-clauses/auxiliary/where_clauses_xc.rs rename to tests/ui/where-clauses/auxiliary/where_clauses_xc.rs diff --git a/src/test/ui/where-clauses/higher-ranked-fn-type.quiet.stderr b/tests/ui/where-clauses/higher-ranked-fn-type.quiet.stderr similarity index 100% rename from src/test/ui/where-clauses/higher-ranked-fn-type.quiet.stderr rename to tests/ui/where-clauses/higher-ranked-fn-type.quiet.stderr diff --git a/src/test/ui/where-clauses/higher-ranked-fn-type.rs b/tests/ui/where-clauses/higher-ranked-fn-type.rs similarity index 100% rename from src/test/ui/where-clauses/higher-ranked-fn-type.rs rename to tests/ui/where-clauses/higher-ranked-fn-type.rs diff --git a/src/test/ui/where-clauses/higher-ranked-fn-type.verbose.stderr b/tests/ui/where-clauses/higher-ranked-fn-type.verbose.stderr similarity index 100% rename from src/test/ui/where-clauses/higher-ranked-fn-type.verbose.stderr rename to tests/ui/where-clauses/higher-ranked-fn-type.verbose.stderr diff --git a/src/test/ui/where-clauses/where-clause-bounds-inconsistency.rs b/tests/ui/where-clauses/where-clause-bounds-inconsistency.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-bounds-inconsistency.rs rename to tests/ui/where-clauses/where-clause-bounds-inconsistency.rs diff --git a/src/test/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.rs b/tests/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.rs rename to tests/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.rs diff --git a/src/test/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.stderr b/tests/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.stderr similarity index 100% rename from src/test/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.stderr rename to tests/ui/where-clauses/where-clause-constraints-are-local-for-inherent-impl.stderr diff --git a/src/test/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.rs b/tests/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.rs rename to tests/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.rs diff --git a/src/test/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.stderr b/tests/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.stderr similarity index 100% rename from src/test/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.stderr rename to tests/ui/where-clauses/where-clause-constraints-are-local-for-trait-impl.stderr diff --git a/src/test/ui/where-clauses/where-clause-early-bound-lifetimes.rs b/tests/ui/where-clauses/where-clause-early-bound-lifetimes.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-early-bound-lifetimes.rs rename to tests/ui/where-clauses/where-clause-early-bound-lifetimes.rs diff --git a/src/test/ui/where-clauses/where-clause-method-substituion-rpass.rs b/tests/ui/where-clauses/where-clause-method-substituion-rpass.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-method-substituion-rpass.rs rename to tests/ui/where-clauses/where-clause-method-substituion-rpass.rs diff --git a/src/test/ui/where-clauses/where-clause-method-substituion.rs b/tests/ui/where-clauses/where-clause-method-substituion.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-method-substituion.rs rename to tests/ui/where-clauses/where-clause-method-substituion.rs diff --git a/src/test/ui/where-clauses/where-clause-method-substituion.stderr b/tests/ui/where-clauses/where-clause-method-substituion.stderr similarity index 100% rename from src/test/ui/where-clauses/where-clause-method-substituion.stderr rename to tests/ui/where-clauses/where-clause-method-substituion.stderr diff --git a/src/test/ui/where-clauses/where-clause-region-outlives.rs b/tests/ui/where-clauses/where-clause-region-outlives.rs similarity index 100% rename from src/test/ui/where-clauses/where-clause-region-outlives.rs rename to tests/ui/where-clauses/where-clause-region-outlives.rs diff --git a/src/test/ui/where-clauses/where-clauses-cross-crate.rs b/tests/ui/where-clauses/where-clauses-cross-crate.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses-cross-crate.rs rename to tests/ui/where-clauses/where-clauses-cross-crate.rs diff --git a/src/test/ui/where-clauses/where-clauses-lifetimes.rs b/tests/ui/where-clauses/where-clauses-lifetimes.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses-lifetimes.rs rename to tests/ui/where-clauses/where-clauses-lifetimes.rs diff --git a/src/test/ui/where-clauses/where-clauses-method-unsatisfied.rs b/tests/ui/where-clauses/where-clauses-method-unsatisfied.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses-method-unsatisfied.rs rename to tests/ui/where-clauses/where-clauses-method-unsatisfied.rs diff --git a/src/test/ui/where-clauses/where-clauses-method-unsatisfied.stderr b/tests/ui/where-clauses/where-clauses-method-unsatisfied.stderr similarity index 100% rename from src/test/ui/where-clauses/where-clauses-method-unsatisfied.stderr rename to tests/ui/where-clauses/where-clauses-method-unsatisfied.stderr diff --git a/src/test/ui/where-clauses/where-clauses-method.rs b/tests/ui/where-clauses/where-clauses-method.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses-method.rs rename to tests/ui/where-clauses/where-clauses-method.rs diff --git a/src/test/ui/where-clauses/where-clauses-unboxed-closures.rs b/tests/ui/where-clauses/where-clauses-unboxed-closures.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses-unboxed-closures.rs rename to tests/ui/where-clauses/where-clauses-unboxed-closures.rs diff --git a/src/test/ui/where-clauses/where-clauses-unsatisfied.rs b/tests/ui/where-clauses/where-clauses-unsatisfied.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses-unsatisfied.rs rename to tests/ui/where-clauses/where-clauses-unsatisfied.rs diff --git a/src/test/ui/where-clauses/where-clauses-unsatisfied.stderr b/tests/ui/where-clauses/where-clauses-unsatisfied.stderr similarity index 100% rename from src/test/ui/where-clauses/where-clauses-unsatisfied.stderr rename to tests/ui/where-clauses/where-clauses-unsatisfied.stderr diff --git a/src/test/ui/where-clauses/where-clauses.rs b/tests/ui/where-clauses/where-clauses.rs similarity index 100% rename from src/test/ui/where-clauses/where-clauses.rs rename to tests/ui/where-clauses/where-clauses.rs diff --git a/src/test/ui/where-clauses/where-equality-constraints.rs b/tests/ui/where-clauses/where-equality-constraints.rs similarity index 100% rename from src/test/ui/where-clauses/where-equality-constraints.rs rename to tests/ui/where-clauses/where-equality-constraints.rs diff --git a/src/test/ui/where-clauses/where-equality-constraints.stderr b/tests/ui/where-clauses/where-equality-constraints.stderr similarity index 100% rename from src/test/ui/where-clauses/where-equality-constraints.stderr rename to tests/ui/where-clauses/where-equality-constraints.stderr diff --git a/src/test/ui/where-clauses/where-for-self-2.rs b/tests/ui/where-clauses/where-for-self-2.rs similarity index 100% rename from src/test/ui/where-clauses/where-for-self-2.rs rename to tests/ui/where-clauses/where-for-self-2.rs diff --git a/src/test/ui/where-clauses/where-for-self-2.stderr b/tests/ui/where-clauses/where-for-self-2.stderr similarity index 100% rename from src/test/ui/where-clauses/where-for-self-2.stderr rename to tests/ui/where-clauses/where-for-self-2.stderr diff --git a/src/test/ui/where-clauses/where-for-self.rs b/tests/ui/where-clauses/where-for-self.rs similarity index 100% rename from src/test/ui/where-clauses/where-for-self.rs rename to tests/ui/where-clauses/where-for-self.rs diff --git a/src/test/ui/where-clauses/where-for-self.stderr b/tests/ui/where-clauses/where-for-self.stderr similarity index 100% rename from src/test/ui/where-clauses/where-for-self.stderr rename to tests/ui/where-clauses/where-for-self.stderr diff --git a/src/test/ui/where-clauses/where-lifetime-resolution.rs b/tests/ui/where-clauses/where-lifetime-resolution.rs similarity index 100% rename from src/test/ui/where-clauses/where-lifetime-resolution.rs rename to tests/ui/where-clauses/where-lifetime-resolution.rs diff --git a/src/test/ui/where-clauses/where-lifetime-resolution.stderr b/tests/ui/where-clauses/where-lifetime-resolution.stderr similarity index 100% rename from src/test/ui/where-clauses/where-lifetime-resolution.stderr rename to tests/ui/where-clauses/where-lifetime-resolution.stderr diff --git a/src/test/ui/while-type-error.rs b/tests/ui/while-type-error.rs similarity index 100% rename from src/test/ui/while-type-error.rs rename to tests/ui/while-type-error.rs diff --git a/src/test/ui/while-type-error.stderr b/tests/ui/while-type-error.stderr similarity index 100% rename from src/test/ui/while-type-error.stderr rename to tests/ui/while-type-error.stderr diff --git a/src/test/ui/windows-subsystem-invalid.rs b/tests/ui/windows-subsystem-invalid.rs similarity index 100% rename from src/test/ui/windows-subsystem-invalid.rs rename to tests/ui/windows-subsystem-invalid.rs diff --git a/src/test/ui/windows-subsystem-invalid.stderr b/tests/ui/windows-subsystem-invalid.stderr similarity index 100% rename from src/test/ui/windows-subsystem-invalid.stderr rename to tests/ui/windows-subsystem-invalid.stderr diff --git a/src/test/ui/write-fmt-errors.rs b/tests/ui/write-fmt-errors.rs similarity index 100% rename from src/test/ui/write-fmt-errors.rs rename to tests/ui/write-fmt-errors.rs diff --git a/src/test/ui/writing-to-immutable-vec.rs b/tests/ui/writing-to-immutable-vec.rs similarity index 100% rename from src/test/ui/writing-to-immutable-vec.rs rename to tests/ui/writing-to-immutable-vec.rs diff --git a/src/test/ui/writing-to-immutable-vec.stderr b/tests/ui/writing-to-immutable-vec.stderr similarity index 100% rename from src/test/ui/writing-to-immutable-vec.stderr rename to tests/ui/writing-to-immutable-vec.stderr diff --git a/src/test/ui/wrong-hashset-issue-42918.rs b/tests/ui/wrong-hashset-issue-42918.rs similarity index 100% rename from src/test/ui/wrong-hashset-issue-42918.rs rename to tests/ui/wrong-hashset-issue-42918.rs diff --git a/src/test/ui/wrong-mul-method-signature.rs b/tests/ui/wrong-mul-method-signature.rs similarity index 100% rename from src/test/ui/wrong-mul-method-signature.rs rename to tests/ui/wrong-mul-method-signature.rs diff --git a/src/test/ui/wrong-mul-method-signature.stderr b/tests/ui/wrong-mul-method-signature.stderr similarity index 100% rename from src/test/ui/wrong-mul-method-signature.stderr rename to tests/ui/wrong-mul-method-signature.stderr diff --git a/src/test/ui/wrong-ret-type.rs b/tests/ui/wrong-ret-type.rs similarity index 100% rename from src/test/ui/wrong-ret-type.rs rename to tests/ui/wrong-ret-type.rs diff --git a/src/test/ui/wrong-ret-type.stderr b/tests/ui/wrong-ret-type.stderr similarity index 100% rename from src/test/ui/wrong-ret-type.stderr rename to tests/ui/wrong-ret-type.stderr diff --git a/src/test/ui/xc-private-method.rs b/tests/ui/xc-private-method.rs similarity index 100% rename from src/test/ui/xc-private-method.rs rename to tests/ui/xc-private-method.rs diff --git a/src/test/ui/xc-private-method.stderr b/tests/ui/xc-private-method.stderr similarity index 100% rename from src/test/ui/xc-private-method.stderr rename to tests/ui/xc-private-method.stderr diff --git a/src/test/ui/xc-private-method2.rs b/tests/ui/xc-private-method2.rs similarity index 100% rename from src/test/ui/xc-private-method2.rs rename to tests/ui/xc-private-method2.rs diff --git a/src/test/ui/xc-private-method2.stderr b/tests/ui/xc-private-method2.stderr similarity index 100% rename from src/test/ui/xc-private-method2.stderr rename to tests/ui/xc-private-method2.stderr diff --git a/src/test/ui/xcrate/auxiliary/static_priv_by_default.rs b/tests/ui/xcrate/auxiliary/static_priv_by_default.rs similarity index 100% rename from src/test/ui/xcrate/auxiliary/static_priv_by_default.rs rename to tests/ui/xcrate/auxiliary/static_priv_by_default.rs diff --git a/src/test/ui/xcrate/auxiliary/xcrate_unit_struct.rs b/tests/ui/xcrate/auxiliary/xcrate_unit_struct.rs similarity index 100% rename from src/test/ui/xcrate/auxiliary/xcrate_unit_struct.rs rename to tests/ui/xcrate/auxiliary/xcrate_unit_struct.rs diff --git a/src/test/ui/xcrate/xcrate-private-by-default.rs b/tests/ui/xcrate/xcrate-private-by-default.rs similarity index 100% rename from src/test/ui/xcrate/xcrate-private-by-default.rs rename to tests/ui/xcrate/xcrate-private-by-default.rs diff --git a/src/test/ui/xcrate/xcrate-private-by-default.stderr b/tests/ui/xcrate/xcrate-private-by-default.stderr similarity index 100% rename from src/test/ui/xcrate/xcrate-private-by-default.stderr rename to tests/ui/xcrate/xcrate-private-by-default.stderr diff --git a/src/test/ui/xcrate/xcrate-unit-struct-2.rs b/tests/ui/xcrate/xcrate-unit-struct-2.rs similarity index 100% rename from src/test/ui/xcrate/xcrate-unit-struct-2.rs rename to tests/ui/xcrate/xcrate-unit-struct-2.rs diff --git a/src/test/ui/xcrate/xcrate-unit-struct.rs b/tests/ui/xcrate/xcrate-unit-struct.rs similarity index 100% rename from src/test/ui/xcrate/xcrate-unit-struct.rs rename to tests/ui/xcrate/xcrate-unit-struct.rs diff --git a/src/test/ui/xcrate/xcrate-unit-struct.stderr b/tests/ui/xcrate/xcrate-unit-struct.stderr similarity index 100% rename from src/test/ui/xcrate/xcrate-unit-struct.stderr rename to tests/ui/xcrate/xcrate-unit-struct.stderr diff --git a/src/test/ui/zero-sized/zero-size-type-destructors.rs b/tests/ui/zero-sized/zero-size-type-destructors.rs similarity index 100% rename from src/test/ui/zero-sized/zero-size-type-destructors.rs rename to tests/ui/zero-sized/zero-size-type-destructors.rs diff --git a/src/test/ui/zero-sized/zero-sized-binary-heap-push.rs b/tests/ui/zero-sized/zero-sized-binary-heap-push.rs similarity index 100% rename from src/test/ui/zero-sized/zero-sized-binary-heap-push.rs rename to tests/ui/zero-sized/zero-sized-binary-heap-push.rs diff --git a/src/test/ui/zero-sized/zero-sized-btreemap-insert.rs b/tests/ui/zero-sized/zero-sized-btreemap-insert.rs similarity index 100% rename from src/test/ui/zero-sized/zero-sized-btreemap-insert.rs rename to tests/ui/zero-sized/zero-sized-btreemap-insert.rs diff --git a/src/test/ui/zero-sized/zero-sized-linkedlist-push.rs b/tests/ui/zero-sized/zero-sized-linkedlist-push.rs similarity index 100% rename from src/test/ui/zero-sized/zero-sized-linkedlist-push.rs rename to tests/ui/zero-sized/zero-sized-linkedlist-push.rs diff --git a/src/test/ui/zero-sized/zero-sized-tuple-struct.rs b/tests/ui/zero-sized/zero-sized-tuple-struct.rs similarity index 100% rename from src/test/ui/zero-sized/zero-sized-tuple-struct.rs rename to tests/ui/zero-sized/zero-sized-tuple-struct.rs diff --git a/triagebot.toml b/triagebot.toml index bee0371d36ef3..a3eec63e36894 100644 --- a/triagebot.toml +++ b/triagebot.toml @@ -120,12 +120,12 @@ trigger_files = [ "src/rustdoc-json-types", # Tests - "src/test/rustdoc", - "src/test/rustdoc-ui", - "src/test/rustdoc-gui", - "src/test/rustdoc-js", - "src/test/rustdoc-js-std", - "src/test/rustdoc-json", + "tests/rustdoc", + "tests/rustdoc-ui", + "tests/rustdoc-gui", + "tests/rustdoc-js", + "tests/rustdoc-js-std", + "tests/rustdoc-json", # Internal tooling "src/etc/htmldocck.py", @@ -143,7 +143,7 @@ exclude_labels = [ trigger_files = [ "src/librustdoc/json/", "src/rustdoc-json-types", - "src/test/rustdoc-json", + "tests/rustdoc-json", "src/tools/jsondocck", "src/tools/jsondoclint", ] @@ -154,7 +154,7 @@ trigger_files = [ "compiler", # Tests - "src/test/ui", + "tests/ui", ] exclude_labels = [ "T-*", @@ -601,7 +601,7 @@ fallback = [ "/src/llvm-project" = ["@cuviper"] "/src/rustdoc-json-types" = ["rustdoc"] "/src/stage0.json" = ["bootstrap"] -"/src/test/ui" = ["compiler"] +"/tests/ui" = ["compiler"] "/src/tools/cargo" = ["@ehuss", "@joshtriplett"] "/src/tools/compiletest" = ["bootstrap"] "/src/tools/linkchecker" = ["@ehuss"]