fn mk_clone_impl(ctx: &GenCtx, ty_name: &str) -> P<ast::Item> {
    let impl_str = format!(r"
        impl ::std::clone::Clone for {} {{
            fn clone(&self) -> Self {{ *self }}
        }}
    ", ty_name);

    parse::new_parser_from_source_str(ctx.ext_cx.parse_sess(),
        ctx.ext_cx.cfg(), "".to_owned(), impl_str).parse_item().unwrap().unwrap()
}
// Implements std::clone::Clone using dereferencing
Implements std::clone::Clone using dereferencing
Implements std :: clone :: Clone using dereferencing
fn mk_clone_impl(ctx: &GenCtx, ty_name: &str) -> P<ast::Item> {
    let impl_str = format!(r"
        impl ::std::clone::Clone for {} {{
            fn clone(&self) -> Self {{ *self }}
        }}
    ", ty_name);
    parse::new_parser_from_source_str(ctx.ext_cx.parse_sess(),
        ctx.ext_cx.cfg(), "".to_owned(), impl_str).parse_item().unwrap().unwrap()
}
fn mk_clone_impl ( ctx : & GenCtx , ty_name : & str ) -> P < ast :: Item > { let impl_str = format ! ( r"
        impl ::std::clone::Clone for {} {{
            fn clone(&self) -> Self {{ *self }}
        }}
    " ty_name ) ; parse :: new_parser_from_source_str ( ctx . ext_cx . parse_sess ( ) , ctx . ext_cx . cfg ( ) , " " . to_owned ( ) , impl_str ) . parse_item ( ) . unwrap ( ) . unwrap ( ) }
Implements std::clone::Clone using dereferencing
Implements std :: clone :: Clone using dereferencing
ctx
&GenCtx
ty_name
&str