Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy lint firing with tokio::task_local macro #4836

Closed
sbromling opened this issue Jul 13, 2022 · 1 comment
Closed

Clippy lint firing with tokio::task_local macro #4836

sbromling opened this issue Jul 13, 2022 · 1 comment
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. M-task Module: tokio/task

Comments

@sbromling
Copy link

Version
1.20.0

Platform
x86_64 GNU/Linux

Description
After adopting the latest tokio 1.20.0 release, and using the latest stable rust toolchain (1.62.0), clippy reports the https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const lint against tokio::task_local! macro uses.

Seems like this is similar to rust-lang/rust-clippy#8493, i.e. this may be a false positive.

@sbromling sbromling added A-tokio Area: The main tokio crate C-bug Category: This is a bug. labels Jul 13, 2022
@Darksonn Darksonn added the M-task Module: tokio/task label Jul 14, 2022
@rukai
Copy link
Contributor

rukai commented Jul 22, 2022

This lint is still firing on the latest rust nightly so I raised on issue on the clippy repo rust-lang/rust-clippy#9224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-bug Category: This is a bug. M-task Module: tokio/task
Projects
None yet
Development

No branches or pull requests

3 participants