Skip to content

Commit

Permalink
Unrolled build for rust-lang#136536
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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 rust-lang#48838
- tests/ui/issues/issue-40350.rs -> tests/ui/enum/enum-inside-enum-issue-40350.rs rust-lang#40350
- tests/ui/issues/issue-41272.rs -> tests/ui/expr/if/if-let-no-match-guards-issue-41272.rs rust-lang#41272
- tests/ui/issues/issue-40408.rs -> tests/ui/lexer/floating-point-0e10-issue-40408.rs rust-lang#40408
- tests/ui/issues/issue-40136.rs -> tests/ui/macros/const-expr-invocations-issue-40136.rs rust-lang#40136
- tests/ui/issues/issue-40845.rs -> tests/ui/macros/macros-in-trait-positions-issue-40845.rs rust-lang#40845
- tests/ui/issues/issue-41213.rs -> tests/ui/match/enum-and-break-in-match-issue-41213.rs rust-lang#41213
- tests/ui/issues/issue-40782.rs -> tests/ui/suggestions/for-loop-missing-in.rs rust-lang#40782
- tests/ui/issues/issue-40827.rs -> tests/ui/trait-bounds/deep-level-Send-bound-check-issue-40827.rs rust-lang#40827
- tests/ui/issues/issue-40610.rs -> tests/ui/typeck/coercion-check-for-addition-issue-40610.rs rust-lang#40610
- tests/ui/issues/issue-40883.rs -> tests/ui/codegen/StackColoring-not-blowup-stack-issue-40883.rs rust-lang#40883
- tests/ui/issues/issue-40861.rs -> tests/ui/typeck/coercion-check-for-indexing-expression-issue-40861.rs rust-lang#40861
- tests/ui/issues/issue-41139.rs -> tests/ui/typeck/unsized-rvalue-issue-41139.rs rust-lang#41139
- tests/ui/issues/issue-40749.rs -> tests/ui/wf/range-expr-root-of-constant-issue-40749.rs rust-lang#40749
- tests/ui/issues/issue-40235.rs -> tests/ui/while/while-let-scope-issue-40235.rs rust-lang#40235
  • Loading branch information
rust-timer authored Feb 6, 2025
2 parents a9730c3 + 5b981a8 commit 9a8f427
Show file tree
Hide file tree
Showing 26 changed files with 21 additions and 36 deletions.
15 changes: 0 additions & 15 deletions src/tools/tidy/src/issues.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tidy/src/ui_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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!(); }
| ^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(dead_code)]
enum A {
A1,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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 {
| ^
Expand All @@ -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 {
| ^^
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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`
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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]);
| -- ^ --------- ()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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])];
| ^^^^^^^^^^^
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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)`
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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}>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ run-pass
//@ check-pass
#![allow(unused_variables)]
fn foo() {}

Expand Down

0 comments on commit 9a8f427

Please sign in to comment.