Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore ref_as_ptr clippy pedantic lint in generated code
warning: reference as raw pointer --> tests/ffi/module.rs:34:31 | 34 | fn c_take_trivial_ref(d: &D); | ^^^^^ help: try: `std::ptr::from_ref::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr = note: `-W clippy::ref-as-ptr` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::ref_as_ptr)]` warning: reference as raw pointer --> tests/ffi/module.rs:35:35 | 35 | fn c_take_trivial_mut_ref(d: &mut D); | ^^^^^^^^^ help: try: `std::ptr::from_mut::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:36:35 | 36 | fn c_take_trivial_pin_ref(d: Pin<&D>); | ^^^^^^^^^ help: try: `std::ptr::from_ref::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:37:39 | 37 | fn c_take_trivial_pin_mut_ref(d: Pin<&mut D>); | ^^^^^^^^^^^^^ help: try: `std::ptr::from_mut::<D>(d)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:42:34 | 42 | fn c_take_trivial_ns_ref(g: &G); | ^^^^^ help: try: `std::ptr::from_ref::<G>(g)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:45:30 | 45 | fn c_take_opaque_ref(e: &E); | ^^^^^ help: try: `std::ptr::from_ref::<E>(e)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:49:33 | 49 | fn c_take_opaque_ns_ref(e: &F); | ^^^^^ help: try: `std::ptr::from_ref::<F>(e)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/module.rs:55:36 | 55 | fn c_return_opaque_mut_pin(e: Pin<&mut E>) -> Pin<&mut E>; | ^^^^^^^^^^^^^ help: try: `std::ptr::from_mut::<E>(e)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:138:25 | 138 | fn c_take_ref_r(r: &R); | ^^^^^ help: try: `std::ptr::from_ref::<R>(r)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:167:37 | 167 | fn c_take_ref_shared_string(s: &SharedString) -> &SharedString; | ^^^^^^^^^^^^^^^^ help: try: `std::ptr::from_ref::<SharedString>(s)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:342:34 | 342 | impl CxxVector<SharedString> {} | ^^ help: try: `std::ptr::from_mut::<{}>({})` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr warning: reference as raw pointer --> tests/ffi/lib.rs:116:77 | 116 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; | ^ help: try: `std::ptr::from_mut::<>>(>)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr
- Loading branch information