third_party_rust_cxx/macro/src
David Tolnay 02d2600ebc
Resolve unused_must_use warning inside generated code
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`
2022-07-16 20:03:45 -07:00
..
clang.rs Eliminate references to ::std from generated code 2021-12-07 15:22:45 -08:00
derive.rs Fill in elided lifetime in macro-generated code 2021-12-10 12:56:12 -08:00
expand.rs Resolve unused_must_use warning inside generated code 2022-07-16 20:03:45 -07:00
generics.rs Fill in elided lifetimes on AssertUnpin and AssertSized 2021-12-10 13:17:17 -08:00
lib.rs Ignore derive_partial_eq_without_eq clippy lint 2022-05-21 19:58:53 -07:00
load.rs clippy fixes 2022-02-13 15:00:29 +00:00
syntax Safe FFI between Rust and C++ 2020-01-08 08:57:24 -08:00
tokens.rs Resolve dead code warnings uncovered by rustc_privacy/rustc_resolve refactor 2022-01-10 18:50:49 -08:00
type_id.rs Insert $crate into type_id macro expansion 2021-02-11 22:37:15 -08:00