@@ -659,7 +659,7 @@ fn add_new_extension(cx: &ext_ctxt, sp: span, arg: @expr,
659
659
} ;
660
660
661
661
let macro_name: option:: t [ str ] = none;
662
- let clauses: [ clause ] = ~[ ] ;
662
+ let clauses: [ @ clause ] = ~[ ] ;
663
663
for arg: @expr in args {
664
664
alt arg. node {
665
665
expr_vec ( elts, mut, seq_kind) {
@@ -691,8 +691,9 @@ fn add_new_extension(cx: &ext_ctxt, sp: span, arg: @expr,
691
691
"macro name must not be a path" ) ;
692
692
}
693
693
}
694
- clauses += ~[ { params: pattern_to_selectors ( cx, invoc_arg) ,
695
- body: elts. ( 1 u) } ] ;
694
+ clauses +=
695
+ ~[ @{ params: pattern_to_selectors ( cx, invoc_arg) ,
696
+ body: elts. ( 1 u) } ] ;
696
697
// FIXME: check duplicates (or just simplify
697
698
// the macro arg situation)
698
699
}
@@ -726,8 +727,8 @@ fn add_new_extension(cx: &ext_ctxt, sp: span, arg: @expr,
726
727
ext: normal( ext) } ;
727
728
728
729
fn generic_extension ( cx : & ext_ctxt , sp : span , arg: @expr,
729
- body : option:: t [ str ] , clauses : [ clause ] ) -> @expr {
730
- for c: clause in clauses {
730
+ body : option:: t [ str ] , clauses : [ @ clause ] ) -> @expr {
731
+ for c: @ clause in clauses {
731
732
alt use_selectors_to_bind ( c. params , arg) {
732
733
some ( bindings) {
733
734
ret transcribe ( cx, bindings, c. body )
0 commit comments