Skip to content

Commit e5b567e

Browse files
committed
Ignore clippy::extra_unused_type_parameters lint in test
``` warning: type parameter goes unused in function definition --> src/tests/helper.rs:9:23 | 9 | fn _assert<T: Send + Sync + Unpin + std::panic::UnwindSafe>() {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/tests/mod.rs:27:1 | 27 | test_atomic_bool_pub!(); | ----------------------- in this macro invocation | = 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: `#[warn(clippy::extra_unused_type_parameters)]` on by default = note: this warning originates in the macro `__test_atomic_common` which comes from the expansion of the macro `test_atomic_bool_pub` (in Nightly builds, run with -Z macro-backtrace for more info) ```
1 parent e12b4bd commit e5b567e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/tests/helper.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use core::{ops, sync::atomic::Ordering};
44

55
macro_rules! __test_atomic_common {
66
($atomic_type:ty, $value_type:ty) => {
7+
#[allow(clippy::extra_unused_type_parameters)] // https://github.com/rust-lang/rust-clippy/issues/10319
78
#[test]
89
fn assert_auto_traits() {
910
fn _assert<T: Send + Sync + Unpin + std::panic::UnwindSafe>() {}
@@ -29,6 +30,7 @@ macro_rules! __test_atomic_common {
2930
}
3031
macro_rules! __test_atomic_pub_common {
3132
($atomic_type:ty, $value_type:ty) => {
33+
#[allow(clippy::extra_unused_type_parameters)] // https://github.com/rust-lang/rust-clippy/issues/10318
3234
#[test]
3335
fn assert_ref_unwind_safe() {
3436
#[cfg(not(all(portable_atomic_no_core_unwind_safe, not(feature = "std"))))]

tools/codegen/src/file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,6 @@ pub fn write_raw(function_name: &str, path: &Path, contents: impl AsRef<[u8]>) -
137137
return Ok(());
138138
}
139139
fs::write(path, out)?;
140+
eprintln!("updated {}", p.display());
140141
Ok(())
141142
}

0 commit comments

Comments
 (0)