fixed tests to not use tokio

This commit is contained in:
kyoto7250 2022-07-25 23:04:18 +09:00
parent 477356460b
commit b6c301055e
3 changed files with 2 additions and 7 deletions

View File

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

View File

@ -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) };
}

View File

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