Suppress no_effect_underscore_binding pedantic clippy lint in generated code

warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/module.rs:15:19
       |
    15 |     impl Vec<Job> {}
       |                   ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
       = note: `-W clippy::no-effect-underscore-binding` implied by `-W clippy::pedantic`
       = help: to override `-W clippy::pedantic` add `#[allow(clippy::no_effect_underscore_binding)]`

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/module.rs:15:19
       |
    15 |     impl Vec<Job> {}
       |                   ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:168:58
        |
    168 |         fn c_take_callback(callback: fn(String) -> usize);
        |                                                          ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:169:54
        |
    169 |         fn c_take_callback_ref(callback: fn(&String));
        |                                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:171:70
        |
    171 |         fn c_take_callback_ref_lifetime<'a>(callback: fn(&'a String));
        |                                                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:172:58
        |
    172 |         fn c_take_callback_mut(callback: fn(&mut String));
        |                                                          ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:28:28
       |
    28 |     #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
       |                            ^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:28:43
       |
    28 |     #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
       |                                           ^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:33:14
       |
    33 |     #[derive(PartialEq, PartialOrd)]
       |              ^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:33:25
       |
    33 |     #[derive(PartialEq, PartialOrd)]
       |                         ^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:79:14
       |
    79 |     #[derive(Hash)]
       |              ^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:90:47
       |
    90 |     #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
       |                                               ^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:90:58
       |
    90 |     #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
       |                                                          ^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:90:69
       |
    90 |     #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
       |                                                                     ^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:264:41
        |
    264 |         fn r_return_primitive() -> usize;
        |                                         ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:265:39
        |
    265 |         fn r_return_shared() -> Shared;
        |                                       ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:266:36
        |
    266 |         fn r_return_box() -> Box<R>;
        |                                    ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:267:49
        |
    267 |         fn r_return_unique_ptr() -> UniquePtr<C>;
        |                                                 ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:268:49
        |
    268 |         fn r_return_shared_ptr() -> SharedPtr<C>;
        |                                                 ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:269:51
        |
    269 |         fn r_return_ref(shared: &Shared) -> &usize;
        |                                                   ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:270:59
        |
    270 |         fn r_return_mut(shared: &mut Shared) -> &mut usize;
        |                                                           ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:271:49
        |
    271 |         fn r_return_str(shared: &Shared) -> &str;
        |                                                 ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:272:54
        |
    272 |         fn r_return_sliceu8(shared: &Shared) -> &[u8];
        |                                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:273:62
        |
    273 |         fn r_return_mutsliceu8(slice: &mut [u8]) -> &mut [u8];
        |                                                              ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:274:44
        |
    274 |         fn r_return_rust_string() -> String;
        |                                            ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:275:64
        |
    275 |         fn r_return_unique_ptr_string() -> UniquePtr<CxxString>;
        |                                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:276:42
        |
    276 |         fn r_return_rust_vec() -> Vec<u8>;
        |                                          ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:277:53
        |
    277 |         fn r_return_rust_vec_string() -> Vec<String>;
        |                                                     ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:278:57
        |
    278 |         fn r_return_rust_vec_extern_struct() -> Vec<Job>;
        |                                                         ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:279:62
        |
    279 |         fn r_return_ref_rust_vec(shared: &Shared) -> &Vec<u8>;
        |                                                              ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:280:70
        |
    280 |         fn r_return_mut_rust_vec(shared: &mut Shared) -> &mut Vec<u8>;
        |                                                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:281:48
        |
    281 |         fn r_return_identity(_: usize) -> usize;
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:282:53
        |
    282 |         fn r_return_sum(_: usize, _: usize) -> usize;
        |                                                     ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:283:41
        |
    283 |         fn r_return_enum(n: u32) -> Enum;
        |                                         ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:285:38
        |
    285 |         fn r_take_primitive(n: usize);
        |                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:286:41
        |
    286 |         fn r_take_shared(shared: Shared);
        |                                         ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:287:33
        |
    287 |         fn r_take_box(r: Box<R>);
        |                                 ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:288:46
        |
    288 |         fn r_take_unique_ptr(c: UniquePtr<C>);
        |                                              ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:289:46
        |
    289 |         fn r_take_shared_ptr(c: SharedPtr<C>);
        |                                              ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:290:31
        |
    290 |         fn r_take_ref_r(r: &R);
        |                               ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:291:31
        |
    291 |         fn r_take_ref_c(c: &C);
        |                               ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:292:31
        |
    292 |         fn r_take_str(s: &str);
        |                               ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:293:43
        |
    293 |         fn r_take_slice_char(s: &[c_char]);
        |                                           ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:294:41
        |
    294 |         fn r_take_rust_string(s: String);
        |                                         ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:295:61
        |
    295 |         fn r_take_unique_ptr_string(s: UniquePtr<CxxString>);
        |                                                             ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:296:48
        |
    296 |         fn r_take_ref_vector(v: &CxxVector<u8>);
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:297:55
        |
    297 |         fn r_take_ref_empty_vector(v: &CxxVector<u64>);
        |                                                       ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:298:39
        |
    298 |         fn r_take_rust_vec(v: Vec<u8>);
        |                                       ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:299:50
        |
    299 |         fn r_take_rust_vec_string(v: Vec<String>);
        |                                                  ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:300:44
        |
    300 |         fn r_take_ref_rust_vec(v: &Vec<u8>);
        |                                            ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:301:55
        |
    301 |         fn r_take_ref_rust_vec_string(v: &Vec<String>);
        |                                                       ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:302:32
        |
    302 |         fn r_take_enum(e: Enum);
        |                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:304:45
        |
    304 |         fn r_try_return_void() -> Result<()>;
        |                                             ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:305:53
        |
    305 |         fn r_try_return_primitive() -> Result<usize>;
        |                                                     ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:306:48
        |
    306 |         fn r_try_return_box() -> Result<Box<R>>;
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:307:54
        |
    307 |         fn r_fail_return_primitive() -> Result<usize>;
        |                                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:308:59
        |
    308 |         fn r_try_return_sliceu8(s: &[u8]) -> Result<&[u8]>;
        |                                                           ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:309:70
        |
    309 |         fn r_try_return_mutsliceu8(s: &mut [u8]) -> Result<&mut [u8]>;
        |                                                                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:311:34
        |
    311 |         fn get(self: &R) -> usize;
        |                                  ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:312:48
        |
    312 |         fn set(self: &mut R, n: usize) -> usize;
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:313:55
        |
    313 |         fn r_method_on_shared(self: &Shared) -> String;
        |                                                       ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:314:48
        |
    314 |         fn r_get_array_sum(self: &Array) -> i32;
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:317:48
        |
    317 |         fn r_aliased_function(x: i32) -> String;
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:341:22
        |
    341 |     impl Box<Shared> {}
        |                      ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
      --> tests/ffi/lib.rs:75:27
       |
    75 |         second: Box<Second>,
       |                           ^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:102:35
        |
    102 |         fn c_return_box() -> Box<R>;
        |                                   ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:154:48
        |
    154 |         fn c_take_rust_vec_shared(v: Vec<Shared>);
        |                                                ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:178:52
        |
    178 |         fn c_take_rust_vec_ns_shared(v: Vec<AShared>);
        |                                                    ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:179:60
        |
    179 |         fn c_take_rust_vec_nested_ns_shared(v: Vec<ABShared>);
        |                                                            ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding

    warning: binding to `_` prefixed variable with no side-effect
       --> tests/ffi/lib.rs:326:22
        |
    326 |         vec: Vec<Dag3>,
        |                      ^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#no_effect_underscore_binding
This commit is contained in:
David Tolnay 2023-12-16 18:37:10 -08:00
parent dbd3704827
commit 6874ecd09c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -145,6 +145,7 @@ fn expand(ffi: Module, doc: Doc, attrs: OtherAttrs, apis: &[Api], types: &Types)
unused_unsafe, // FIXME: only needed by rustc 1.64 and older
clippy::extra_unused_type_parameters,
clippy::items_after_statements,
clippy::no_effect_underscore_binding,
clippy::ptr_as_ptr,
clippy::upper_case_acronyms,
clippy::use_self,