Skip to content

Commit

Permalink
Auto merge of rust-lang#10704 - matthiaskrgr:splitest, r=llogiq
Browse files Browse the repository at this point in the history
split test into 2

changelog: none
  • Loading branch information
bors committed Apr 23, 2023
2 parents 496c110 + 572eecd commit e1f6305
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 7 additions & 0 deletions tests/ui/crashes/ice-10645.rs
Original file line number Diff line number Diff line change
@@ -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() {}
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/crashes/ice-5207.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit e1f6305

Please sign in to comment.