Commit ade7f2d
committed
Resolve borrow_as_ptr clippy lints in generated code
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:76:23
|
76 | impl UniquePtr<D> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
76 | impl UniquePtr<D> &raw mut {}
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:76:23
|
76 | impl UniquePtr<D> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
76 | impl UniquePtr<D> &raw mut {}
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:76:23
|
76 | impl UniquePtr<D> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
76 | impl UniquePtr<D> &raw const {}
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:77:23
|
77 | impl UniquePtr<E> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
77 | impl UniquePtr<E> &raw mut {}
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:77:23
|
77 | impl UniquePtr<E> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
77 | impl UniquePtr<E> &raw const {}
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:78:23
|
78 | impl UniquePtr<F> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
78 | impl UniquePtr<F> &raw mut {}
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:78:23
|
78 | impl UniquePtr<F> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
78 | impl UniquePtr<F> &raw const {}
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:79:23
|
79 | impl UniquePtr<G> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
79 | impl UniquePtr<G> &raw mut {}
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:79:23
|
79 | impl UniquePtr<G> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
79 | impl UniquePtr<G> &raw const {}
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:59:51
|
59 | fn c_return_ns_unique_ptr() -> UniquePtr<H>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
59 | fn c_return_ns_unique_ptr() -> UniquePtr<H&raw mut >;
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:59:51
|
59 | fn c_return_ns_unique_ptr() -> UniquePtr<H>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
59 | fn c_return_ns_unique_ptr() -> UniquePtr<H&raw const >;
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:73:54
|
73 | fn ns_c_return_unique_ptr_ns() -> UniquePtr<I>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
73 | fn ns_c_return_unique_ptr_ns() -> UniquePtr<I&raw mut >;
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/module.rs:73:54
|
73 | fn ns_c_return_unique_ptr_ns() -> UniquePtr<I>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
73 | fn ns_c_return_unique_ptr_ns() -> UniquePtr<I&raw const >;
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:343:34
|
343 | impl CxxVector<SharedString> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
343 | impl CxxVector<SharedString> &raw mut {}
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:343:34
|
343 | impl CxxVector<SharedString> {}
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
343 | impl CxxVector<SharedString> &raw const {}
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:103:48
|
103 | fn c_return_unique_ptr() -> UniquePtr<C>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
103 | fn c_return_unique_ptr() -> UniquePtr<C&raw mut >;
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:103:48
|
103 | fn c_return_unique_ptr() -> UniquePtr<C>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
103 | fn c_return_unique_ptr() -> UniquePtr<C&raw const >;
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:116:77
|
116 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
116 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared&raw mut >>;
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:116:77
|
116 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
116 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared&raw const >>;
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:117:72
|
117 | fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C>>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
117 | fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C&raw mut >>;
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:117:72
|
117 | fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C>>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
117 | fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C&raw const >>;
| ++++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:239:73
|
239 | fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
239 | fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>&raw mut >;
| ++++++++
warning: implicit borrow as raw pointer
--> tests/ffi/lib.rs:239:73
|
239 | fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>>;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
help: use a raw pointer instead
|
239 | fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>&raw const >;
| ++++++++++1 parent 6b47bbd commit ade7f2d
1 file changed
+37
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
1466 | 1471 | | |
1467 | 1472 | | |
1468 | 1473 | | |
| |||
1471 | 1476 | | |
1472 | 1477 | | |
1473 | 1478 | | |
1474 | | - | |
| 1479 | + | |
1475 | 1480 | | |
1476 | 1481 | | |
1477 | 1482 | | |
| |||
1483 | 1488 | | |
1484 | 1489 | | |
1485 | 1490 | | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1486 | 1501 | | |
1487 | 1502 | | |
1488 | 1503 | | |
| |||
1497 | 1512 | | |
1498 | 1513 | | |
1499 | 1514 | | |
1500 | | - | |
| 1515 | + | |
1501 | 1516 | | |
1502 | 1517 | | |
1503 | 1518 | | |
| |||
1509 | 1524 | | |
1510 | 1525 | | |
1511 | 1526 | | |
1512 | | - | |
| 1527 | + | |
1513 | 1528 | | |
1514 | 1529 | | |
1515 | 1530 | | |
| |||
1518 | 1533 | | |
1519 | 1534 | | |
1520 | 1535 | | |
1521 | | - | |
| 1536 | + | |
1522 | 1537 | | |
1523 | 1538 | | |
1524 | 1539 | | |
1525 | 1540 | | |
1526 | 1541 | | |
1527 | 1542 | | |
1528 | | - | |
| 1543 | + | |
1529 | 1544 | | |
1530 | 1545 | | |
1531 | 1546 | | |
1532 | 1547 | | |
1533 | 1548 | | |
1534 | 1549 | | |
1535 | 1550 | | |
1536 | | - | |
| 1551 | + | |
1537 | 1552 | | |
1538 | 1553 | | |
1539 | 1554 | | |
| |||
1769 | 1784 | | |
1770 | 1785 | | |
1771 | 1786 | | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
1772 | 1798 | | |
1773 | 1799 | | |
1774 | 1800 | | |
| |||
1807 | 1833 | | |
1808 | 1834 | | |
1809 | 1835 | | |
1810 | | - | |
| 1836 | + | |
1811 | 1837 | | |
1812 | 1838 | | |
1813 | 1839 | | |
| |||
1818 | 1844 | | |
1819 | 1845 | | |
1820 | 1846 | | |
1821 | | - | |
| 1847 | + | |
1822 | 1848 | | |
1823 | 1849 | | |
1824 | 1850 | | |
| |||
1827 | 1853 | | |
1828 | 1854 | | |
1829 | 1855 | | |
1830 | | - | |
| 1856 | + | |
1831 | 1857 | | |
1832 | 1858 | | |
1833 | 1859 | | |
1834 | 1860 | | |
1835 | 1861 | | |
1836 | 1862 | | |
1837 | | - | |
| 1863 | + | |
1838 | 1864 | | |
1839 | 1865 | | |
1840 | 1866 | | |
1841 | 1867 | | |
1842 | 1868 | | |
1843 | 1869 | | |
1844 | 1870 | | |
1845 | | - | |
| 1871 | + | |
1846 | 1872 | | |
1847 | 1873 | | |
1848 | 1874 | | |
| |||
0 commit comments