warning: unused return value of `Box::<T>::from_raw` that must be used
--> tests/ffi/lib.rs:337:22
|
337 | impl Box<Shared> {}
| ^^
|
= note: `#[warn(unused_must_use)]` on by default
= note: call `drop(from_raw(ptr))` if you intend to drop the `Box`
warning: unused return value of `Box::<T>::from_raw` that must be used
--> tests/ffi/lib.rs:72:27
|
72 | second: Box<Second>,
| ^
|
= note: call `drop(from_raw(ptr))` if you intend to drop the `Box`
warning: unused return value of `Box::<T>::from_raw` that must be used
--> tests/ffi/lib.rs:99:35
|
99 | fn c_return_box() -> Box<R>;
| ^
|
= note: call `drop(from_raw(ptr))` if you intend to drop the `Box`
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/module.rs:74:23
|
74 | impl UniquePtr<D> {}
| ^^ help: remove this attribute
|
= note: `#[warn(unused_attributes)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/module.rs:75:23
|
75 | impl UniquePtr<E> {}
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/module.rs:76:23
|
76 | impl UniquePtr<F> {}
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/module.rs:77:23
|
77 | impl UniquePtr<G> {}
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/module.rs:57:51
|
57 | fn c_return_ns_unique_ptr() -> UniquePtr<H>;
| ^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/module.rs:71:54
|
71 | fn ns_c_return_unique_ptr_ns() -> UniquePtr<I>;
| ^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:227:18
|
227 | #[derive(ExternType)]
| ^^^^^^^^^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:337:34
|
337 | impl CxxVector<SharedString> {}
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:99:48
|
99 | fn c_return_unique_ptr() -> UniquePtr<C>;
| ^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs💯48
|
100 | fn c_return_shared_ptr() -> SharedPtr<C>;
| ^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:112:77
|
112 | fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>;
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:113:72
|
113 | fn c_return_unique_ptr_vector_opaque() -> UniquePtr<CxxVector<C>>;
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:204:44
|
204 | fn c_get_use_count(weak: &WeakPtr<C>) -> usize;
| ^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> tests/ffi/lib.rs:234:72
|
234 | fn c_return_borrow<'a>(s: &'a CxxString) -> UniquePtr<Borrow<'a>>;
| ^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
Based on the model of #951, which added `Vec<T>::clear`. The `truncate`
method is the more general form of clear.
(If we wanted to, we could delete the binding for `clear` and implement
`clear` as a call to `truncate(0)` on the C++ side, but seemed worth
leaving in in case the Rust `clear` implementation one day gets
smarter.)