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

Ignore newly added clippy warnings #1021

Merged
merged 5 commits into from
Aug 26, 2023
Merged

Ignore newly added clippy warnings #1021

merged 5 commits into from
Aug 26, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Aug 26, 2023

No description provided.

-Zmiri-retag-fields is now enabled by default.
```
warning: usage of an `Arc` that is not `Send` or `Sync`
  --> crossbeam-epoch/src/collector.rs:32:21
   |
32 |             global: Arc::new(Global::new()),
   |                     ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: the trait `Sync` is not implemented for `Global`
   = note: required for `Arc<Global>` to implement `Send` and `Sync`
   = help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
   = note: `#[warn(clippy::arc_with_non_send_sync)]` on by default
```
```
warning: sub-expression diverges
   --> crossbeam-channel/tests/array.rs:639:21
    |
639 |             send(s, panic!()) -> _ => panic!(),
    |                     ^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
    = note: `#[warn(clippy::diverging_sub_expression)]` on by default
    = note: this warning originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: sub-expression diverges
   --> crossbeam-channel/tests/select_macro.rs:470:25
    |
470 |             send(get(), panic!()) -> _ => {}
    |                         ^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#diverging_sub_expression
    = note: `#[warn(clippy::diverging_sub_expression)]` on by default
    = note: this warning originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
```
```
warning: used `unwrap_or()` on `Some` value
   --> crossbeam-channel/tests/select_macro.rs:959:14
    |
959 |         recv(Some(&r).unwrap_or(&never())) -> _ => {},
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap
    = note: `#[warn(clippy::unnecessary_literal_unwrap)]` on by default
help: remove the `Some` and `unwrap_or()`
    |
959 -         recv(Some(&r).unwrap_or(&never())) -> _ => {},
959 +         recv(&r) -> _ => {},
    |

warning: used `unwrap_or()` on `Some` value
   --> crossbeam-channel/tests/select_macro.rs:963:14
    |
963 |         recv(Some(r).unwrap_or(never())) -> _ => {},
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap
help: remove the `Some` and `unwrap_or()`
    |
963 -         recv(Some(r).unwrap_or(never())) -> _ => {},
963 +         recv(r) -> _ => {},
    |
```
@taiki-e taiki-e merged commit 518c0b9 into master Aug 26, 2023
26 checks passed
@taiki-e taiki-e deleted the taiki-e/ci branch August 26, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant