Skip to content

Commit b6c3010

Browse files
committed
fixed tests to not use tokio
1 parent 4773564 commit b6c3010

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ serde = { version = "1.0.125", features = ["derive"] }
5252
syn = { version = "1.0", features = ["full"] }
5353
futures = "0.3"
5454
parking_lot = "0.12"
55-
tokio = { version = "1", features = ["full"] }
55+
tokio = { version = "1", features = ["io-util"] }
5656
rustc-semver = "1.1"
5757

5858
[build-dependencies]

tests/ui/declare_interior_mutable_const/others.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ static STATIC_TUPLE: (AtomicUsize, String) = (ATOMIC, STRING);
3434
mod issue_8493 {
3535
use std::cell::Cell;
3636

37-
// https://github.com/rust-lang/rust-clippy/issues/9224
38-
tokio::task_local! {
39-
pub static _FOO: String;
40-
}
41-
4237
thread_local! {
4338
static _BAR: Cell<i32> = const { Cell::new(0) };
4439
}

tests/ui/declare_interior_mutable_const/others.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ LL | declare_const!(_ONCE: Once = Once::new()); //~ ERROR interior mutable
3636
= note: this error originates in the macro `declare_const` (in Nightly builds, run with -Z macro-backtrace for more info)
3737

3838
error: a `const` item should never be interior mutable
39-
--> $DIR/others.rs:48:13
39+
--> $DIR/others.rs:43:13
4040
|
4141
LL | const _BAZ: Cell<usize> = Cell::new(0); //~ ERROR interior mutable
4242
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)