Auto merge of #10704 - matthiaskrgr:splitest, r=llogiq

split test into 2

changelog: none
This commit is contained in:
bors 2023-04-23 13:44:57 +00:00
commit e1f6305ecf
3 changed files with 9 additions and 6 deletions

View File

@ -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() {}

View File

@ -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`

View File

@ -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() {}