about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-23 13:44:57 +0000
committerbors <bors@rust-lang.org>2023-04-23 13:44:57 +0000
commite1f6305ecf5e06bf164529664a9a25f111cba166 (patch)
tree42a042edfcfc8011e1bc5bfe3cbcf103602fc4d2
parent496c11005c30d93cbae5e2f27f15cc387dc0787b (diff)
parent572eecd267cd89086820ea72f403aba09b6268a2 (diff)
downloadrust-e1f6305ecf5e06bf164529664a9a25f111cba166.tar.gz
rust-e1f6305ecf5e06bf164529664a9a25f111cba166.zip
Auto merge of #10704 - matthiaskrgr:splitest, r=llogiq
split test into 2

changelog: none
-rw-r--r--tests/ui/crashes/ice-10645.rs7
-rw-r--r--tests/ui/crashes/ice-10645.stderr (renamed from tests/ui/crashes/ice-5207.stderr)4
-rw-r--r--tests/ui/crashes/ice-5207.rs4
3 files changed, 9 insertions, 6 deletions
diff --git a/tests/ui/crashes/ice-10645.rs b/tests/ui/crashes/ice-10645.rs
new file mode 100644
index 00000000000..4d8698d383b
--- /dev/null
+++ b/tests/ui/crashes/ice-10645.rs
@@ -0,0 +1,7 @@
+// compile-flags: --cap-lints=warn
+// https://github.com/rust-lang/rust-clippy/issues/10645
+
+#![warn(clippy::future_not_send)]
+pub async fn bar<'a, T: 'a>(_: T) {}
+
+fn main() {}
diff --git a/tests/ui/crashes/ice-5207.stderr b/tests/ui/crashes/ice-10645.stderr
index 59146c23e0d..fc084e30d7f 100644
--- a/tests/ui/crashes/ice-5207.stderr
+++ b/tests/ui/crashes/ice-10645.stderr
@@ -1,11 +1,11 @@
 error: future cannot be sent between threads safely
-  --> $DIR/ice-5207.rs:6:35
+  --> $DIR/ice-10645.rs:5:35
    |
 LL | pub async fn bar<'a, T: 'a>(_: T) {}
    |                                   ^ future returned by `bar` is not `Send`
    |
 note: captured value is not `Send`
-  --> $DIR/ice-5207.rs:6:29
+  --> $DIR/ice-10645.rs:5:29
    |
 LL | pub async fn bar<'a, T: 'a>(_: T) {}
    |                             ^ has type `T` which is not `Send`
diff --git a/tests/ui/crashes/ice-5207.rs b/tests/ui/crashes/ice-5207.rs
index 893c15f5d73..0df8b88fea2 100644
--- a/tests/ui/crashes/ice-5207.rs
+++ b/tests/ui/crashes/ice-5207.rs
@@ -1,8 +1,4 @@
-// compile-flags: --cap-lints=warn
-// ^ for https://github.com/rust-lang/rust-clippy/issues/10645
-
 // Regression test for https://github.com/rust-lang/rust-clippy/issues/5207
-#![warn(clippy::future_not_send)]
 pub async fn bar<'a, T: 'a>(_: T) {}
 
 fn main() {}