warning: incorrect implementation of `partial_cmp` on an `Ord` type
--> tests/ffi/lib.rs:27:43
|
27 | #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
| ^^^^^^^^^^ help: change this to: `{ Some(self.cmp(other)) }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_partial_ord_impl_on_ord_type
= note: `-W clippy::incorrect-partial-ord-impl-on-ord-type` implied by `-W clippy::all`
warning: incorrect implementation of `partial_cmp` on an `Ord` type
--> tests/ffi/lib.rs:37:27
|
37 | #[derive(Debug, Hash, PartialOrd, Ord)]
| ^^^^^^^^^^ help: change this to: `{ Some(self.cmp(other)) }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_partial_ord_impl_on_ord_type
warning: incorrect implementation of `partial_cmp` on an `Ord` type
--> tests/ffi/lib.rs:89:69
|
89 | #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
| ^^^^^^^^^^ help: change this to: `{ Some(self.cmp(other)) }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_partial_ord_impl_on_ord_type
warning: adding items after statements is confusing, since items exist from the start of the scope
--> demo/src/main.rs:15:12
|
15 | fn next_chunk(buf: &mut MultiBuf) -> &[u8];
| ^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
= note: `-W clippy::items-after-statements` implied by `-W clippy::pedantic`
warning: consider adding a `;` to the last statement for consistent formatting
--> gen/src/write.rs:132:17
|
132 | check_trivial_extern_type(out, ety, reasons)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `check_trivial_extern_type(out, ety, reasons);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `-W clippy::semicolon-if-nothing-returned` implied by `-W clippy::pedantic`
warning: consider adding a `;` to the last statement for consistent formatting
--> syntax/parse.rs:45:17
|
45 | parse_foreign_mod(cx, foreign_mod, &mut apis, trusted, namespace)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `parse_foreign_mod(cx, foreign_mod, &mut apis, trusted, namespace);`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
warning: consider adding a `;` to the last statement for consistent formatting
--> gen/lib/tests/test.rs:27:5
|
27 | assert!(cxx_gen::generate_header_and_cc(rs, &opt).is_err())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `assert!(cxx_gen::generate_header_and_cc(rs, &opt).is_err());`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
= note: `-W clippy::semicolon-if-nothing-returned` implied by `-W clippy::pedantic`
error: type parameter goes unused in function definition
--> demo/src/main.rs:11:14
|
11 | type MultiBuf;
| ^^^^^^^^
|
= 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
--> src/cxx_string.rs:94:15
|
94 | pub fn new<T: Private>() -> Self {
| ^^^^^^^^^^^^
|
= 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
--> src/extern_type.rs:184:27
|
184 | pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
--> src/extern_type.rs:187:27
|
187 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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/ffi/lib.rs:230:14
|
230 | type Reference<'a>;
| ^^^^^^^^^
|
= 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/ffi/lib.rs:259:14
|
259 | type R;
| ^
|
= help: consider removing the parameter
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters