From 7ff79cf4aa45cf79365606fd652b821e366d3c86 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Fri, 2 Jun 2023 03:26:14 +0000 Subject: [PATCH] Move test --- src/tools/tidy/src/ui_tests.rs | 2 +- tests/ui/{issues => for}/issue-20605.current.stderr | 0 tests/ui/{issues => for}/issue-20605.next.stderr | 0 tests/ui/for/issue-20605.rs | 11 +++++++++++ tests/ui/issues/issue-20605.rs | 11 ----------- 5 files changed, 12 insertions(+), 12 deletions(-) rename tests/ui/{issues => for}/issue-20605.current.stderr (100%) rename tests/ui/{issues => for}/issue-20605.next.stderr (100%) create mode 100644 tests/ui/for/issue-20605.rs delete mode 100644 tests/ui/issues/issue-20605.rs diff --git a/src/tools/tidy/src/ui_tests.rs b/src/tools/tidy/src/ui_tests.rs index 5c6a9487788..55bf38110a6 100644 --- a/src/tools/tidy/src/ui_tests.rs +++ b/src/tools/tidy/src/ui_tests.rs @@ -10,7 +10,7 @@ use std::path::{Path, PathBuf}; const ENTRY_LIMIT: usize = 900; // FIXME: The following limits should be reduced eventually. -const ISSUES_ENTRY_LIMIT: usize = 1898; +const ISSUES_ENTRY_LIMIT: usize = 1896; const ROOT_ENTRY_LIMIT: usize = 870; const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[ diff --git a/tests/ui/issues/issue-20605.current.stderr b/tests/ui/for/issue-20605.current.stderr similarity index 100% rename from tests/ui/issues/issue-20605.current.stderr rename to tests/ui/for/issue-20605.current.stderr diff --git a/tests/ui/issues/issue-20605.next.stderr b/tests/ui/for/issue-20605.next.stderr similarity index 100% rename from tests/ui/issues/issue-20605.next.stderr rename to tests/ui/for/issue-20605.next.stderr diff --git a/tests/ui/for/issue-20605.rs b/tests/ui/for/issue-20605.rs new file mode 100644 index 00000000000..499271fa92f --- /dev/null +++ b/tests/ui/for/issue-20605.rs @@ -0,0 +1,11 @@ +// revisions: current next +//[next] compile-flags: -Ztrait-solver=next + +fn changer<'a>(mut things: Box>) { + for item in *things { *item = 0 } + //~^ ERROR the size for values of type + //[next]~^^ ERROR the type `<_ as IntoIterator>::IntoIter` is not well-formed + //[next]~| ERROR the trait bound `dyn Iterator: IntoIterator` is not satisfied +} + +fn main() {} diff --git a/tests/ui/issues/issue-20605.rs b/tests/ui/issues/issue-20605.rs deleted file mode 100644 index 66bdc52e6b1..00000000000 --- a/tests/ui/issues/issue-20605.rs +++ /dev/null @@ -1,11 +0,0 @@ -// revisions: current next -//[next] compile-flags: -Ztrait-solver=next - -fn changer<'a>(mut things: Box>) { - for item in *things { *item = 0 } -//~^ ERROR the size for values of type -//[next]~^^ ERROR the type `<_ as IntoIterator>::IntoIter` is not well-formed -//[next]~| ERROR the trait bound `dyn Iterator: IntoIterator` is not satisfied -} - -fn main() {}