Rollup merge of #136536 - DuskyElf:master, r=jieyouxu

Rename and Move some UI tests to more suitable subdirs

## Affected Tests
- tests/ui/issues/issue-48838.rs -> tests/ui/enum/closure-in-enum-issue-48838.rs https://github.com/rust-lang/rust/issues/48838
- tests/ui/issues/issue-40350.rs -> tests/ui/enum/enum-inside-enum-issue-40350.rs https://github.com/rust-lang/rust/issues/40350
- tests/ui/issues/issue-41272.rs -> tests/ui/expr/if/if-let-no-match-guards-issue-41272.rs https://github.com/rust-lang/rust/issues/41272
- tests/ui/issues/issue-40408.rs -> tests/ui/lexer/floating-point-0e10-issue-40408.rs https://github.com/rust-lang/rust/issues/40408
- tests/ui/issues/issue-40136.rs -> tests/ui/macros/const-expr-invocations-issue-40136.rs https://github.com/rust-lang/rust/issues/40136
- tests/ui/issues/issue-40845.rs -> tests/ui/macros/macros-in-trait-positions-issue-40845.rs https://github.com/rust-lang/rust/issues/40845
- tests/ui/issues/issue-41213.rs -> tests/ui/match/enum-and-break-in-match-issue-41213.rs https://github.com/rust-lang/rust/issues/41213
- tests/ui/issues/issue-40782.rs -> tests/ui/suggestions/for-loop-missing-in.rs https://github.com/rust-lang/rust/issues/40782
- tests/ui/issues/issue-40827.rs -> tests/ui/trait-bounds/deep-level-Send-bound-check-issue-40827.rs https://github.com/rust-lang/rust/issues/40827
- tests/ui/issues/issue-40610.rs -> tests/ui/typeck/coercion-check-for-addition-issue-40610.rs https://github.com/rust-lang/rust/issues/40610
- tests/ui/issues/issue-40883.rs -> tests/ui/codegen/StackColoring-not-blowup-stack-issue-40883.rs https://github.com/rust-lang/rust/issues/40883
- tests/ui/issues/issue-40861.rs -> tests/ui/typeck/coercion-check-for-indexing-expression-issue-40861.rs https://github.com/rust-lang/rust/issues/40861
- tests/ui/issues/issue-41139.rs -> tests/ui/typeck/unsized-rvalue-issue-41139.rs https://github.com/rust-lang/rust/issues/41139
- tests/ui/issues/issue-40749.rs -> tests/ui/wf/range-expr-root-of-constant-issue-40749.rs https://github.com/rust-lang/rust/issues/40749
- tests/ui/issues/issue-40235.rs -> tests/ui/while/while-let-scope-issue-40235.rs https://github.com/rust-lang/rust/issues/40235
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2025-02-05 19:09:37 +08:00 committed by GitHub
commit 41e93ab8e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 21 additions and 36 deletions

View file

@ -2218,26 +2218,12 @@ ui/issues/issue-3993.rs
ui/issues/issue-39970.rs
ui/issues/issue-39984.rs
ui/issues/issue-40000.rs
ui/issues/issue-40136.rs
ui/issues/issue-40235.rs
ui/issues/issue-4025.rs
ui/issues/issue-40288-2.rs
ui/issues/issue-40288.rs
ui/issues/issue-40350.rs
ui/issues/issue-40408.rs
ui/issues/issue-40610.rs
ui/issues/issue-40749.rs
ui/issues/issue-40782.rs
ui/issues/issue-40827.rs
ui/issues/issue-40845.rs
ui/issues/issue-40861.rs
ui/issues/issue-40883.rs
ui/issues/issue-40951.rs
ui/issues/issue-41053.rs
ui/issues/issue-41139.rs
ui/issues/issue-41213.rs
ui/issues/issue-41229-ref-str.rs
ui/issues/issue-41272.rs
ui/issues/issue-41298.rs
ui/issues/issue-41479.rs
ui/issues/issue-41498.rs
@ -2360,7 +2346,6 @@ ui/issues/issue-4830.rs
ui/issues/issue-48364.rs
ui/issues/issue-48728.rs
ui/issues/issue-4875.rs
ui/issues/issue-48838.rs
ui/issues/issue-48984.rs
ui/issues/issue-49298.rs
ui/issues/issue-4935.rs

View file

@ -17,7 +17,7 @@ use ignore::Walk;
const ENTRY_LIMIT: u32 = 901;
// FIXME: The following limits should be reduced eventually.
const ISSUES_ENTRY_LIMIT: u32 = 1658;
const ISSUES_ENTRY_LIMIT: u32 = 1634;
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
"rs", // test source files

View file

@ -1,11 +1,11 @@
error[E0308]: mismatched types
--> $DIR/issue-48838.rs:2:14
--> $DIR/closure-in-enum-issue-48838.rs:2:14
|
LL | Square = |x| x,
| ^^^^^ expected `isize`, found closure
|
= note: expected type `isize`
found closure `{closure@$DIR/issue-48838.rs:2:14: 2:17}`
found closure `{closure@$DIR/closure-in-enum-issue-48838.rs:2:14: 2:17}`
error: aborting due to 1 previous error

View file

@ -1,11 +1,11 @@
error: cannot find macro `m` in this scope
--> $DIR/issue-40845.rs:1:11
--> $DIR/macros-in-trait-positions-issue-40845.rs:1:11
|
LL | trait T { m!(); }
| ^
error: cannot find macro `m` in this scope
--> $DIR/issue-40845.rs:4:10
--> $DIR/macros-in-trait-positions-issue-40845.rs:4:10
|
LL | impl S { m!(); }
| ^

View file

@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
enum A {
A1,

View file

@ -1,5 +1,5 @@
error: missing `in` in `for` loop
--> $DIR/issue-40782.rs:4:11
--> $DIR/for-loop-missing-in.rs:4:11
|
LL | for _i 0..2 {
| ^
@ -10,7 +10,7 @@ LL | for _i in 0..2 {
| ++
error: missing `in` in `for` loop
--> $DIR/issue-40782.rs:6:12
--> $DIR/for-loop-missing-in.rs:6:12
|
LL | for _i of 0..2 {
| ^^

View file

@ -1,5 +1,5 @@
error[E0277]: `Rc<Foo>` cannot be shared between threads safely
--> $DIR/issue-40827.rs:14:7
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:14:7
|
LL | f(Foo(Arc::new(Bar::B(None))));
| - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc<Foo>` cannot be shared between threads safely
@ -8,24 +8,24 @@ LL | f(Foo(Arc::new(Bar::B(None))));
|
= help: within `Bar`, the trait `Sync` is not implemented for `Rc<Foo>`
note: required because it appears within the type `Bar`
--> $DIR/issue-40827.rs:6:6
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:6:6
|
LL | enum Bar {
| ^^^
= note: required for `Arc<Bar>` to implement `Send`
note: required because it appears within the type `Foo`
--> $DIR/issue-40827.rs:4:8
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:4:8
|
LL | struct Foo(Arc<Bar>);
| ^^^
note: required by a bound in `f`
--> $DIR/issue-40827.rs:11:9
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:11:9
|
LL | fn f<T: Send>(_: T) {}
| ^^^^ required by this bound in `f`
error[E0277]: `Rc<Foo>` cannot be sent between threads safely
--> $DIR/issue-40827.rs:14:7
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:14:7
|
LL | f(Foo(Arc::new(Bar::B(None))));
| - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Rc<Foo>` cannot be sent between threads safely
@ -34,18 +34,18 @@ LL | f(Foo(Arc::new(Bar::B(None))));
|
= help: within `Bar`, the trait `Send` is not implemented for `Rc<Foo>`
note: required because it appears within the type `Bar`
--> $DIR/issue-40827.rs:6:6
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:6:6
|
LL | enum Bar {
| ^^^
= note: required for `Arc<Bar>` to implement `Send`
note: required because it appears within the type `Foo`
--> $DIR/issue-40827.rs:4:8
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:4:8
|
LL | struct Foo(Arc<Bar>);
| ^^^
note: required by a bound in `f`
--> $DIR/issue-40827.rs:11:9
--> $DIR/deep-level-Send-bound-check-issue-40827.rs:11:9
|
LL | fn f<T: Send>(_: T) {}
| ^^^^ required by this bound in `f`

View file

@ -1,5 +1,5 @@
error[E0369]: cannot add `()` to `()`
--> $DIR/issue-40610.rs:4:8
--> $DIR/coercion-check-for-addition-issue-40610.rs:4:8
|
LL | () + f(&[1.0]);
| -- ^ --------- ()

View file

@ -1,5 +1,5 @@
error[E0608]: cannot index into a value of type `()`
--> $DIR/issue-40861.rs:4:7
--> $DIR/coercion-check-for-indexing-expression-issue-40861.rs:4:7
|
LL | ()[f(&[1.0])];
| ^^^^^^^^^^^

View file

@ -1,5 +1,5 @@
error[E0618]: expected function, found `&dyn Fn() -> (dyn Trait + 'static)`
--> $DIR/issue-41139.rs:10:26
--> $DIR/unsized-rvalue-issue-41139.rs:10:26
|
LL | fn get_function<'a>() -> &'a dyn Fn() -> dyn Trait {
| -------------------------------------------------- `get_function` defined here returns `&dyn Fn() -> (dyn Trait + 'static)`

View file

@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-40749.rs:2:9
--> $DIR/range-expr-root-of-constant-issue-40749.rs:2:9
|
LL | [0; ..10];
| ^^^^ expected `usize`, found `RangeTo<{integer}>`

View file

@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_variables)]
fn foo() {}