name: $name,
generics: LifetimeBounds::empty(),
explicit_self: borrowed_explicit_self(),
- args: ~[borrowed_self()],
- ret_ty: Literal(Path::new(~["bool"])),
+ args: vec!(borrowed_self()),
+ ret_ty: Literal(Path::new(vec!("bool"))),
inline: true,
const_nonmatching: false,
combine_substructure: |cx, span, substr| cs_op($op, $equal, cx, span, substr)
let trait_def = TraitDef {
span: span,
- attributes: ~[],
- path: Path::new(~["std", "cmp", "Ord"]),
- additional_bounds: ~[],
+ attributes: Vec::new(),
+ path: Path::new(vec!("std", "cmp", "Ord")),
+ additional_bounds: Vec::new(),
generics: LifetimeBounds::empty(),
- methods: ~[
+ methods: vec!(
md!("lt", true, false),
md!("le", true, true),
md!("gt", false, false),
md!("ge", false, true)
- ]
+ )
};
trait_def.expand(cx, mitem, item, push)
}