Skip to content

Commit

Permalink
fixed tests to not use tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoto7250 committed Jul 25, 2022
1 parent 4773564 commit b6c3010
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
5 changes: 0 additions & 5 deletions tests/ui/declare_interior_mutable_const/others.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/declare_interior_mutable_const/others.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit b6c3010

Please sign in to comment.