1 use crate::deriving::generic::*;
2 use crate::deriving::path_std;
4 use rustc_ast::MetaItem;
5 use rustc_expand::base::{Annotatable, ExtCtxt};
8 pub fn expand_deriving_copy(
13 push: &mut dyn FnMut(Annotatable),
15 let trait_def = TraitDef {
17 path: path_std!(marker::Copy),
18 skip_path_as_bound: false,
19 additional_bounds: Vec::new(),
20 supports_unions: true,
22 associated_types: Vec::new(),
25 trait_def.expand(cx, mitem, item, push);