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

macros: add #[allow(unused_mut)] to select! #2858

Merged
merged 3 commits into from
Sep 22, 2020
Merged

Conversation

Darksonn
Copy link
Contributor

Fixes: #2857

@Darksonn Darksonn added C-maintenance Category: PRs that clean code up or issues documenting cleanup. A-tokio Area: The main tokio crate M-macros Module: macros in the main Tokio crate labels Sep 22, 2020
@@ -1,4 +1,5 @@
#![allow(clippy::blacklisted_name)]
#![deny(warnings)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#![deny(warnings)]

This should be done by ci:

RUSTFLAGS: -Dwarnings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, I noticed some tests that set another RUSTFLAGS are overwriting -Dwarnings...

RUSTFLAGS: '--cfg tokio_unstable'

RUSTFLAGS: --cfg tokio_unstable

RUSTFLAGS: --cfg loom --cfg tokio_unstable

@taiki-e taiki-e merged commit e09b90e into master Sep 22, 2020
@taiki-e taiki-e deleted the select-unused-mut branch September 22, 2020 20:56
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-maintenance Category: PRs that clean code up or issues documenting cleanup. M-macros Module: macros in the main Tokio crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tokio::select! with a mut variable in one of the branches
2 participants