Move underscore-imports tests into imports subdir

This commit is contained in:
reddevilmidzy 2026-02-08 12:38:25 +00:00
parent abca0d5f74
commit 1612988310
25 changed files with 12 additions and 19 deletions

View file

@ -2978,7 +2978,6 @@ ui/unboxed-closures/issue-18652.rs
ui/unboxed-closures/issue-18661.rs
ui/unboxed-closures/issue-30906.rs
ui/unboxed-closures/issue-53448.rs
ui/underscore-imports/issue-110164.rs
ui/uniform-paths/auxiliary/issue-53691.rs
ui/uniform-paths/issue-53691.rs
ui/uninhabited/issue-107505.rs

View file

@ -1526,12 +1526,6 @@ See [RFC 0132 Unified Function Call Syntax](https://github.com/rust-lang/rfcs/bl
See [Tracking issue for Fn traits (`unboxed_closures` & `fn_traits` feature)](https://github.com/rust-lang/rust/issues/29625).
## `tests/ui/underscore-imports/`
See [Underscore imports | Reference](https://doc.rust-lang.org/reference/items/use-declarations.html#underscore-imports).
**FIXME**: should become a subdirectory of `tests/ui/imports/`.
## `tests/ui/underscore-lifetime/`: `'_` elided lifetime
Exercises [anonymous elided lifetimes](https://doc.rust-lang.org/reference/lifetime-elision.html).

View file

@ -1,35 +1,35 @@
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:8:5
--> $DIR/invalid-path-110164.rs:8:5
|
LL | use _::a;
| ^ expected identifier, found reserved identifier
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:10:5
--> $DIR/invalid-path-110164.rs:10:5
|
LL | use _::*;
| ^ expected identifier, found reserved identifier
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:14:9
--> $DIR/invalid-path-110164.rs:14:9
|
LL | use _::a;
| ^ expected identifier, found reserved identifier
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:16:9
--> $DIR/invalid-path-110164.rs:16:9
|
LL | use _::*;
| ^ expected identifier, found reserved identifier
error[E0432]: unresolved import `self::*`
--> $DIR/issue-110164.rs:4:5
--> $DIR/invalid-path-110164.rs:4:5
|
LL | use self::*;
| ^^^^^^^ cannot glob-import a module into itself
error[E0432]: unresolved import `crate::*`
--> $DIR/issue-110164.rs:6:5
--> $DIR/invalid-path-110164.rs:6:5
|
LL | use crate::*;
| ^^^^^^^^ cannot glob-import a module into itself

View file

@ -1,35 +1,35 @@
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:8:5
--> $DIR/invalid-path-110164.rs:8:5
|
LL | use _::a;
| ^ expected identifier, found reserved identifier
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:10:5
--> $DIR/invalid-path-110164.rs:10:5
|
LL | use _::*;
| ^ expected identifier, found reserved identifier
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:14:9
--> $DIR/invalid-path-110164.rs:14:9
|
LL | use _::a;
| ^ expected identifier, found reserved identifier
error: expected identifier, found reserved identifier `_`
--> $DIR/issue-110164.rs:16:9
--> $DIR/invalid-path-110164.rs:16:9
|
LL | use _::*;
| ^ expected identifier, found reserved identifier
error[E0432]: unresolved import `self::*`
--> $DIR/issue-110164.rs:4:5
--> $DIR/invalid-path-110164.rs:4:5
|
LL | use self::*;
| ^^^^^^^ cannot glob-import a module into itself
error[E0432]: unresolved import `crate::*`
--> $DIR/issue-110164.rs:6:5
--> $DIR/invalid-path-110164.rs:6:5
|
LL | use crate::*;
| ^^^^^^^^ cannot glob-import a module into itself