Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename and Move some UI tests to more suitable subdirs #136536

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
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
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
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
Loading