moved and delete test

tests/ui/invalid-module-declaration/invalid-module-declaration.rs duplicated of tests/ui/modules/missing_non_modrs_mod_inline.rs
This commit is contained in:
reddevilmidzy
2025-11-30 14:14:35 +09:00
parent cc3eee7fbe
commit 77afccf73b
21 changed files with 0 additions and 47 deletions
-26
View File
@@ -113,12 +113,6 @@ See [Tracking Issue for autodiff #124509](https://github.com/rust-lang/rust/issu
Tests for automatic referencing and dereferencing behavior, such as automatically adding reference operations (`&` or `&mut`) to make a value match a method's receiver type. Sometimes abbreviated as "auto-ref" or "auto-deref".
## `tests/ui/auxiliary/`: Auxiliary files for tests directly under `tests/ui`.
This top-level `auxiliary` subdirectory contains support files for tests immediately under `tests/ui/`.
**FIXME(#133895)**: tests immediately under `tests/ui/` should be rehomed to more suitable subdirectories, after which this subdirectory can be removed.
## `tests/ui/backtrace/`: Backtraces
Runtime panics and error handling generate backtraces to assist in debugging and diagnostics.
@@ -542,12 +536,6 @@ These tests are about very different topics, only unified by the fact that they
Accompanies `tests/ui/error-codes/`, exercises the `--explain` cli flag.
## `tests/ui/explicit/`: Errors involving the concept of "explicit"
This category contains three tests: two which are about the specific error `explicit use of destructor method`, and one which is about explicit annotation of lifetimes: https://doc.rust-lang.org/stable/rust-by-example/scope/lifetime/explicit.html.
**FIXME**: Rehome the two tests about the destructor method with `drop`-related categories, and rehome the last test with a category related to lifetimes.
## `tests/ui/explicit-tail-calls/`
Exercises `#![feature(explicit_tail_calls)]` and the `become` keyword. See [Explicit Tail Calls #3407](https://github.com/rust-lang/rfcs/pull/3407).
@@ -733,10 +721,6 @@ See [Instrument coverage | The rustc book](https://doc.rust-lang.org/rustc/instr
See [Tracking issue for `-Z instrument-xray` #102921](https://github.com/rust-lang/rust/issues/102921).
## `tests/ui/interior-mutability/`
**FIXME**: contains a single test, probably better rehomed.
## `tests/ui/internal/`
Tests for `internal_unstable` and the attribute header `#![feature(allow_internal_unstable)]`, which lets compiler developers mark features as internal to the compiler, and unstable for standard library use.
@@ -759,16 +743,6 @@ Various tests related to rejecting invalid inputs.
Tests for checking that invalid usage of compiler flags are rejected.
## `tests/ui/invalid-module-declaration/`
**FIXME**: Consider merging into module/resolve directories.
## `tests/ui/invalid-self-argument/`: `self` as a function argument incorrectly
Tests with erroneous ways of using `self`, such as having it not be the first argument, or using it in a non-associated function (no `impl` or `trait`).
**FIXME**: Maybe merge with `ui/self`.
## `tests/ui/io-checks/`
Contains a single test. The test tries to output a file into an invalid directory with `-o`, then checks that the result is an error, not an internal compiler error.
@@ -1 +0,0 @@
pub mod baz;
@@ -1 +0,0 @@
pub mod bar;
@@ -1,7 +0,0 @@
mod auxiliary {
mod foo;
}
fn main() {}
//~? ERROR file not found for module `baz`
@@ -1,12 +0,0 @@
error[E0583]: file not found for module `baz`
--> $DIR/auxiliary/foo/bar.rs:1:1
|
LL | pub mod baz;
| ^^^^^^^^^^^^
|
= help: to create the module `baz`, create file "$DIR/auxiliary/foo/bar/baz.rs" or "$DIR/auxiliary/foo/bar/baz/mod.rs"
= note: if there is a `mod baz` elsewhere in the crate already, import it with `use crate::...` instead
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0583`.