mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Remove a bunch of orphaned test files
This commit is contained in:
parent
901fdb3b04
commit
12a2f24b15
@ -1,49 +0,0 @@
|
|||||||
error: future cannot be sent between threads safely
|
|
||||||
--> $DIR/async-fn-nonsend.rs:72:17
|
|
||||||
|
|
|
||||||
LL | assert_send(non_send_temporary_in_match());
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_send_temporary_in_match` is not `Send`
|
|
||||||
|
|
|
||||||
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Rc<()>`
|
|
||||||
note: future is not `Send` as this value is used across an await
|
|
||||||
--> $DIR/async-fn-nonsend.rs:36:25
|
|
||||||
|
|
|
||||||
LL | match Some(non_send()) {
|
|
||||||
| ---------------- has type `Option<impl Debug>` which is not `Send`
|
|
||||||
LL | Some(_) => fut().await,
|
|
||||||
| ^^^^^^ await occurs here, with `Some(non_send())` maybe used later
|
|
||||||
...
|
|
||||||
LL | }
|
|
||||||
| - `Some(non_send())` is later dropped here
|
|
||||||
note: required by a bound in `assert_send`
|
|
||||||
--> $DIR/async-fn-nonsend.rs:67:24
|
|
||||||
|
|
|
||||||
LL | fn assert_send(_: impl Send) {}
|
|
||||||
| ^^^^ required by this bound in `assert_send`
|
|
||||||
|
|
||||||
error: future cannot be sent between threads safely
|
|
||||||
--> $DIR/async-fn-nonsend.rs:74:17
|
|
||||||
|
|
|
||||||
LL | assert_send(non_sync_with_method_call());
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call` is not `Send`
|
|
||||||
|
|
|
||||||
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
|
|
||||||
note: future is not `Send` as this value is used across an await
|
|
||||||
--> $DIR/async-fn-nonsend.rs:49:14
|
|
||||||
|
|
|
||||||
LL | let f: &mut std::fmt::Formatter = &mut get_formatter();
|
|
||||||
| --------------- has type `Formatter<'_>` which is not `Send`
|
|
||||||
...
|
|
||||||
LL | fut().await;
|
|
||||||
| ^^^^^^ await occurs here, with `get_formatter()` maybe used later
|
|
||||||
LL | }
|
|
||||||
LL | }
|
|
||||||
| - `get_formatter()` is later dropped here
|
|
||||||
note: required by a bound in `assert_send`
|
|
||||||
--> $DIR/async-fn-nonsend.rs:67:24
|
|
||||||
|
|
|
||||||
LL | fn assert_send(_: impl Send) {}
|
|
||||||
| ^^^^ required by this bound in `assert_send`
|
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
error: future cannot be shared between threads safely
|
|
||||||
--> $DIR/issue-64130-1-sync.rs:24:13
|
|
||||||
|
|
|
||||||
LL | is_sync(bar());
|
|
||||||
| ^^^^^ future returned by `bar` is not `Sync`
|
|
||||||
|
|
|
||||||
= help: within `impl Future<Output = ()>`, the trait `Sync` is not implemented for `Foo`
|
|
||||||
note: future is not `Sync` as this value is used across an await
|
|
||||||
--> $DIR/issue-64130-1-sync.rs:18:10
|
|
||||||
|
|
|
||||||
LL | let x = Foo;
|
|
||||||
| - has type `Foo` which is not `Sync`
|
|
||||||
LL | baz().await;
|
|
||||||
| ^^^^^^ await occurs here, with `x` maybe used later
|
|
||||||
LL | }
|
|
||||||
| - `x` is later dropped here
|
|
||||||
note: required by a bound in `is_sync`
|
|
||||||
--> $DIR/issue-64130-1-sync.rs:14:15
|
|
||||||
|
|
|
||||||
LL | fn is_sync<T: Sync>(t: T) { }
|
|
||||||
| ^^^^ required by this bound in `is_sync`
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
error: future cannot be sent between threads safely
|
|
||||||
--> $DIR/issue-64130-2-send.rs:24:13
|
|
||||||
|
|
|
||||||
LL | is_send(bar());
|
|
||||||
| ^^^^^ future returned by `bar` is not `Send`
|
|
||||||
|
|
|
||||||
= help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `Foo`
|
|
||||||
note: future is not `Send` as this value is used across an await
|
|
||||||
--> $DIR/issue-64130-2-send.rs:18:10
|
|
||||||
|
|
|
||||||
LL | let x = Foo;
|
|
||||||
| - has type `Foo` which is not `Send`
|
|
||||||
LL | baz().await;
|
|
||||||
| ^^^^^^ await occurs here, with `x` maybe used later
|
|
||||||
LL | }
|
|
||||||
| - `x` is later dropped here
|
|
||||||
note: required by a bound in `is_send`
|
|
||||||
--> $DIR/issue-64130-2-send.rs:14:15
|
|
||||||
|
|
|
||||||
LL | fn is_send<T: Send>(t: T) { }
|
|
||||||
| ^^^^ required by this bound in `is_send`
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
error[E0277]: the trait bound `Foo: Qux` is not satisfied in `impl Future<Output = ()>`
|
|
||||||
--> $DIR/issue-64130-3-other.rs:27:12
|
|
||||||
|
|
|
||||||
LL | async fn bar() {
|
|
||||||
| - within this `impl Future<Output = ()>`
|
|
||||||
...
|
|
||||||
LL | is_qux(bar());
|
|
||||||
| ^^^^^ within `impl Future<Output = ()>`, the trait `Qux` is not implemented for `Foo`
|
|
||||||
|
|
|
||||||
note: future does not implement `Qux` as this value is used across an await
|
|
||||||
--> $DIR/issue-64130-3-other.rs:21:10
|
|
||||||
|
|
|
||||||
LL | let x = Foo;
|
|
||||||
| - has type `Foo` which does not implement `Qux`
|
|
||||||
LL | baz().await;
|
|
||||||
| ^^^^^^ await occurs here, with `x` maybe used later
|
|
||||||
LL | }
|
|
||||||
| - `x` is later dropped here
|
|
||||||
note: required by a bound in `is_qux`
|
|
||||||
--> $DIR/issue-64130-3-other.rs:17:14
|
|
||||||
|
|
|
||||||
LL | fn is_qux<T: Qux>(t: T) {}
|
|
||||||
| ^^^ required by this bound in `is_qux`
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0277`.
|
|
@ -1,18 +0,0 @@
|
|||||||
error: future cannot be sent between threads safely
|
|
||||||
--> $DIR/issue-70818.rs:7:38
|
|
||||||
|
|
|
||||||
LL | fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
|
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
|
|
||||||
|
|
|
||||||
note: captured value is not `Send`
|
|
||||||
--> $DIR/issue-70818.rs:9:18
|
|
||||||
|
|
|
||||||
LL | async { (ty, ty1) }
|
|
||||||
| ^^^ has type `U` which is not `Send`
|
|
||||||
help: consider restricting type parameter `U`
|
|
||||||
|
|
|
||||||
LL | fn foo<T: Send, U: std::marker::Send>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
|
|
||||||
| +++++++++++++++++++
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
error[E0070]: invalid left-hand side of assignment
|
|
||||||
--> $DIR/issue-73741-type-err-drop-tracking.rs:11:7
|
|
||||||
|
|
|
||||||
LL | 1 = 2;
|
|
||||||
| - ^
|
|
||||||
| |
|
|
||||||
| cannot assign to this expression
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0070`.
|
|
@ -1,21 +0,0 @@
|
|||||||
error[E0733]: recursion in an `async fn` requires boxing
|
|
||||||
--> $DIR/mutually-recursive-async-impl-trait-type.rs:9:18
|
|
||||||
|
|
|
||||||
LL | async fn rec_1() {
|
|
||||||
| ^ recursive `async fn`
|
|
||||||
|
|
|
||||||
= note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
|
|
||||||
= note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
|
|
||||||
|
|
||||||
error[E0733]: recursion in an `async fn` requires boxing
|
|
||||||
--> $DIR/mutually-recursive-async-impl-trait-type.rs:13:18
|
|
||||||
|
|
|
||||||
LL | async fn rec_2() {
|
|
||||||
| ^ recursive `async fn`
|
|
||||||
|
|
|
||||||
= note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
|
|
||||||
= note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
|
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0733`.
|
|
@ -1,12 +0,0 @@
|
|||||||
error[E0733]: recursion in an `async fn` requires boxing
|
|
||||||
--> $DIR/recursive-async-impl-trait-type.rs:8:40
|
|
||||||
|
|
|
||||||
LL | async fn recursive_async_function() -> () {
|
|
||||||
| ^^ recursive `async fn`
|
|
||||||
|
|
|
||||||
= note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
|
|
||||||
= note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0733`.
|
|
@ -1,39 +0,0 @@
|
|||||||
error[E0698]: type inside `async fn` body must be known in this context
|
|
||||||
--> $DIR/unresolved_type_param.rs:13:5
|
|
||||||
|
|
|
||||||
LL | bar().await;
|
|
||||||
| ^^^ cannot infer type for type parameter `T` declared on the function `bar`
|
|
||||||
|
|
|
||||||
note: the type is part of the `async fn` body because of this `await`
|
|
||||||
--> $DIR/unresolved_type_param.rs:13:10
|
|
||||||
|
|
|
||||||
LL | bar().await;
|
|
||||||
| ^^^^^^
|
|
||||||
|
|
||||||
error[E0698]: type inside `async fn` body must be known in this context
|
|
||||||
--> $DIR/unresolved_type_param.rs:13:5
|
|
||||||
|
|
|
||||||
LL | bar().await;
|
|
||||||
| ^^^ cannot infer type for type parameter `T` declared on the function `bar`
|
|
||||||
|
|
|
||||||
note: the type is part of the `async fn` body because of this `await`
|
|
||||||
--> $DIR/unresolved_type_param.rs:13:10
|
|
||||||
|
|
|
||||||
LL | bar().await;
|
|
||||||
| ^^^^^^
|
|
||||||
|
|
||||||
error[E0698]: type inside `async fn` body must be known in this context
|
|
||||||
--> $DIR/unresolved_type_param.rs:13:5
|
|
||||||
|
|
|
||||||
LL | bar().await;
|
|
||||||
| ^^^ cannot infer type for type parameter `T` declared on the function `bar`
|
|
||||||
|
|
|
||||||
note: the type is part of the `async fn` body because of this `await`
|
|
||||||
--> $DIR/unresolved_type_param.rs:13:10
|
|
||||||
|
|
|
||||||
LL | bar().await;
|
|
||||||
| ^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0698`.
|
|
@ -1,31 +0,0 @@
|
|||||||
error[E0597]: `a` does not live long enough
|
|
||||||
--> $DIR/borrowing.rs:13:33
|
|
||||||
|
|
|
||||||
LL | let _b = {
|
|
||||||
| -- borrow later stored here
|
|
||||||
LL | let a = 3;
|
|
||||||
LL | Pin::new(&mut || yield &a).resume(())
|
|
||||||
| -- ^ borrowed value does not live long enough
|
|
||||||
| |
|
|
||||||
| value captured here by generator
|
|
||||||
LL |
|
|
||||||
LL | };
|
|
||||||
| - `a` dropped here while still borrowed
|
|
||||||
|
|
||||||
error[E0597]: `a` does not live long enough
|
|
||||||
--> $DIR/borrowing.rs:20:20
|
|
||||||
|
|
|
||||||
LL | let _b = {
|
|
||||||
| -- borrow later stored here
|
|
||||||
LL | let a = 3;
|
|
||||||
LL | || {
|
|
||||||
| -- value captured here by generator
|
|
||||||
LL | yield &a
|
|
||||||
| ^ borrowed value does not live long enough
|
|
||||||
...
|
|
||||||
LL | };
|
|
||||||
| - `a` dropped here while still borrowed
|
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0597`.
|
|
@ -1,13 +0,0 @@
|
|||||||
error[E0499]: cannot borrow `thing` as mutable more than once at a time
|
|
||||||
--> $DIR/retain-resume-ref.rs:27:25
|
|
||||||
|
|
|
||||||
LL | gen.as_mut().resume(&mut thing);
|
|
||||||
| ---------- first mutable borrow occurs here
|
|
||||||
LL | gen.as_mut().resume(&mut thing);
|
|
||||||
| ------ ^^^^^^^^^^ second mutable borrow occurs here
|
|
||||||
| |
|
|
||||||
| first borrow later used by call
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0499`.
|
|
@ -1,19 +0,0 @@
|
|||||||
error: `No` held across a suspend point, but should not be
|
|
||||||
--> $DIR/dedup.rs:19:13
|
|
||||||
|
|
|
||||||
LL | wheeee(&No {}).await;
|
|
||||||
| ^^^^^ ------ the value is held across this suspend point
|
|
||||||
|
|
|
||||||
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
|
||||||
--> $DIR/dedup.rs:19:13
|
|
||||||
|
|
|
||||||
LL | wheeee(&No {}).await;
|
|
||||||
| ^^^^^
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/dedup.rs:6:9
|
|
||||||
|
|
|
||||||
LL | #![deny(must_not_suspend)]
|
|
||||||
| ^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
|||||||
error: implementer of `Wow` held across a suspend point, but should not be
|
|
||||||
--> $DIR/trait.rs:24:9
|
|
||||||
|
|
|
||||||
LL | let _guard1 = r#impl();
|
|
||||||
| ^^^^^^^
|
|
||||||
...
|
|
||||||
LL | other().await;
|
|
||||||
| ------ the value is held across this suspend point
|
|
||||||
|
|
|
||||||
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
|
||||||
--> $DIR/trait.rs:24:9
|
|
||||||
|
|
|
||||||
LL | let _guard1 = r#impl();
|
|
||||||
| ^^^^^^^
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/trait.rs:6:9
|
|
||||||
|
|
|
||||||
LL | #![deny(must_not_suspend)]
|
|
||||||
| ^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: boxed `Wow` trait object held across a suspend point, but should not be
|
|
||||||
--> $DIR/trait.rs:25:9
|
|
||||||
|
|
|
||||||
LL | let _guard2 = r#dyn();
|
|
||||||
| ^^^^^^^
|
|
||||||
LL |
|
|
||||||
LL | other().await;
|
|
||||||
| ------ the value is held across this suspend point
|
|
||||||
|
|
|
||||||
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
|
||||||
--> $DIR/trait.rs:25:9
|
|
||||||
|
|
|
||||||
LL | let _guard2 = r#dyn();
|
|
||||||
| ^^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
error: `Umm` held across a suspend point, but should not be
|
|
||||||
--> $DIR/unit.rs:23:9
|
|
||||||
|
|
|
||||||
LL | let _guard = bar();
|
|
||||||
| ^^^^^^
|
|
||||||
LL | other().await;
|
|
||||||
| ------ the value is held across this suspend point
|
|
||||||
|
|
|
||||||
note: You gotta use Umm's, ya know?
|
|
||||||
--> $DIR/unit.rs:23:9
|
|
||||||
|
|
|
||||||
LL | let _guard = bar();
|
|
||||||
| ^^^^^^
|
|
||||||
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
|
||||||
--> $DIR/unit.rs:23:9
|
|
||||||
|
|
|
||||||
LL | let _guard = bar();
|
|
||||||
| ^^^^^^
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/unit.rs:6:9
|
|
||||||
|
|
|
||||||
LL | #![deny(must_not_suspend)]
|
|
||||||
| ^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
warning: `Umm` held across a suspend point, but should not be
|
|
||||||
--> $DIR/warn.rs:24:9
|
|
||||||
|
|
|
||||||
LL | let _guard = bar();
|
|
||||||
| ^^^^^^
|
|
||||||
LL | other().await;
|
|
||||||
| ------ the value is held across this suspend point
|
|
||||||
|
|
|
||||||
note: You gotta use Umm's, ya know?
|
|
||||||
--> $DIR/warn.rs:24:9
|
|
||||||
|
|
|
||||||
LL | let _guard = bar();
|
|
||||||
| ^^^^^^
|
|
||||||
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
|
||||||
--> $DIR/warn.rs:24:9
|
|
||||||
|
|
|
||||||
LL | let _guard = bar();
|
|
||||||
| ^^^^^^
|
|
||||||
note: the lint level is defined here
|
|
||||||
--> $DIR/warn.rs:7:9
|
|
||||||
|
|
|
||||||
LL | #![warn(must_not_suspend)]
|
|
||||||
| ^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
warning: 1 warning emitted
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user