pub fn pretend_used(cont: &Container, is_packed: bool) -> TokenStream {
    let pretend_fields = pretend_fields_used(cont, is_packed);
    let pretend_variants = pretend_variants_used(cont);

    quote! {
        #pretend_fields
        #pretend_variants
    }
}
// Suppress dead_code warnings that would otherwise appear when using a remote
// derive. Other than this pretend code, a struct annotated with remote derive
// never has its fields referenced and an enum annotated with remote derive
// never has its variants constructed.
//
//     warning: field is never used: `i`
//      --> src/main.rs:4:20
//       |
//     4 | struct StructDef { i: i32 }
//       |                    ^^^^^^
//
//     warning: variant is never constructed: `V`
//      --> src/main.rs:8:16
//       |
//     8 | enum EnumDef { V }
//       |                ^
//
Suppress dead_code warnings that would otherwise appear when using a remote
derive. Other than this pretend code, a struct annotated with remote derive
never has its fields referenced and an enum annotated with remote derive
never has its variants constructed.



variant is never constructed: `V`
> src/main.rs:8:16
|
8 | enum EnumDef { V }
|                ^
Suppress dead_code warnings that would otherwise appear when using a remote derive . Other than this pretend code a struct annotated with remote derive never has its fields referenced and an enum annotated with remote derive never has its variants constructed . variant is never constructed : ` V ` > src / main . rs : 8 : 16 | 8 | enum EnumDef { V } | ^
pub fn pretend_used(cont: &Container, is_packed: bool) -> TokenStream {
    let pretend_fields = pretend_fields_used(cont, is_packed);
    let pretend_variants = pretend_variants_used(cont);
    quote! {
        #pretend_fields
        #pretend_variants
    }
}
pub fn pretend_used ( cont : & Container , is_packed : bool ) -> TokenStream { let pretend_fields = pretend_fields_used ( cont , is_packed ) ; let pretend_variants = pretend_variants_used ( cont ) ; quote ! { pretend_fields pretend_variants } }
Suppress dead_code warnings that would otherwise appear when using a remote
derive.
Suppress dead_code warnings that would otherwise appear when using a remote derive .
cont
&Container
is_packed
bool
cont
&Container
is_packed
bool