Skip to content
Myr

Ignore extra_unused_type_parameters clippy lint in test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

error: type parameter goes unused in function definition --> src/backtrace.rs:399:15 | 399 | fn _assert<T: Send + Sync>() {} | ^^^^^^^^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters = note: `-D clippy::extra-unused-type-parameters` implied by `-D clippy::all` error: type parameter goes unused in function definition --> tests/test_autotrait.rs:5:19 | 5 | fn assert_send<T: Send>() {} | ^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters error: type parameter goes unused in function definition --> tests/test_autotrait.rs:11:19 | 11 | fn assert_sync<T: Sync>() {} | ^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters error: type parameter goes unused in function definition --> tests/test_ensure.rs:353:10 | 353 | fn g<T, const I: isize>() {} | ^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters error: type parameter goes unused in function definition --> tests/test_repr.rs:20:14 | 20 | fn assert<E: Unpin + Send + Sync + 'static>() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: consider removing the parameter = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters

authored by David Tolnay · committed by David Tolnay · parent 58377ab · Browse files · 4 files+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+6 added−0 removed

  • tests:+5 added−0 removed
  • other:+1 added−0 removed

4 files+6 added−0 removed

modified:src/lib.rs+1 added
217 unmodified lines
218#![allow(219 clippy::doc_markdown,220 clippy::enum_glob_use,221 clippy::explicit_auto_deref,222 clippy::extra_unused_type_parameters,223 clippy::missing_errors_doc,224 clippy::missing_panics_doc,225 clippy::module_name_repetitions,226 clippy::must_use_candidate,
455 unmodified lines
modified:tests/test_autotrait.rs+2 added
1#![allow(clippy::extra_unused_type_parameters)]23use anyhow::Error;45#[test]6fn test_send() {
9 unmodified lines
modified:tests/test_ensure.rs+1 added
1#![allow(2 clippy::bool_to_int_with_if,3 clippy::diverging_sub_expression,4 clippy::extra_unused_type_parameters,5 clippy::if_same_then_else,6 clippy::ifs_same_cond,7 clippy::items_after_statements,8 clippy::let_and_return,
711 unmodified lines
modified:tests/test_repr.rs+2 added
1#![allow(clippy::extra_unused_type_parameters)]23mod drop;45use self::drop::{DetectDrop, Flag};6use anyhow::Error;
25 unmodified lines