diff options
| author | kyoto7250 <50972773+kyoto7250@users.noreply.github.com> | 2022-07-25 23:04:18 +0900 |
|---|---|---|
| committer | kyoto7250 <50972773+kyoto7250@users.noreply.github.com> | 2022-07-25 23:04:18 +0900 |
| commit | b6c301055edc9d769bb7ac8e4b8bc083e31ac748 (patch) | |
| tree | ae9e866a9bd635cc75de94ef2206852cc29d1500 | |
| parent | 477356460b0797a3ce666f5e55cfa5fc74314c00 (diff) | |
| download | rust-b6c301055edc9d769bb7ac8e4b8bc083e31ac748.tar.gz rust-b6c301055edc9d769bb7ac8e4b8bc083e31ac748.zip | |
fixed tests to not use tokio
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/ui/declare_interior_mutable_const/others.rs | 5 | ||||
| -rw-r--r-- | tests/ui/declare_interior_mutable_const/others.stderr | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/Cargo.toml b/Cargo.toml index 699e68b86f7..69deaca0b4b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ serde = { version = "1.0.125", features = ["derive"] } syn = { version = "1.0", features = ["full"] } futures = "0.3" parking_lot = "0.12" -tokio = { version = "1", features = ["full"] } +tokio = { version = "1", features = ["io-util"] } rustc-semver = "1.1" [build-dependencies] diff --git a/tests/ui/declare_interior_mutable_const/others.rs b/tests/ui/declare_interior_mutable_const/others.rs index f46d3499f4e..896596b5679 100644 --- a/tests/ui/declare_interior_mutable_const/others.rs +++ b/tests/ui/declare_interior_mutable_const/others.rs @@ -34,11 +34,6 @@ static STATIC_TUPLE: (AtomicUsize, String) = (ATOMIC, STRING); mod issue_8493 { use std::cell::Cell; - // https://github.com/rust-lang/rust-clippy/issues/9224 - tokio::task_local! { - pub static _FOO: String; - } - thread_local! { static _BAR: Cell<i32> = const { Cell::new(0) }; } diff --git a/tests/ui/declare_interior_mutable_const/others.stderr b/tests/ui/declare_interior_mutable_const/others.stderr index 6cba9491ef4..1fd6d7322a7 100644 --- a/tests/ui/declare_interior_mutable_const/others.stderr +++ b/tests/ui/declare_interior_mutable_const/others.stderr @@ -36,7 +36,7 @@ LL | declare_const!(_ONCE: Once = Once::new()); //~ ERROR interior mutable = note: this error originates in the macro `declare_const` (in Nightly builds, run with -Z macro-backtrace for more info) error: a `const` item should never be interior mutable - --> $DIR/others.rs:48:13 + --> $DIR/others.rs:43:13 | LL | const _BAZ: Cell<usize> = Cell::new(0); //~ ERROR interior mutable | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
