@@ -192,7 +192,7 @@ pub enum Lit {
192192// range)
193193pub enum Opt {
194194 lit( Lit ) ,
195- var( /* disr val */ int , adt:: Repr ) ,
195+ var( /* disr val */ int , @ adt:: Repr ) ,
196196 range( @ast:: expr , @ast:: expr ) ,
197197 vec_len_eq( uint ) ,
198198 vec_len_ge( uint )
@@ -268,7 +268,7 @@ pub fn trans_opt(bcx: block, o: &Opt) -> opt_result {
268268 let llval = consts::get_const_val(bcx.ccx(), lit_id);
269269 return single_result(rslt(bcx, llval));
270270 }
271- var(disr_val, ref repr) => {
271+ var(disr_val, repr) => {
272272 return adt::trans_case(bcx, repr, disr_val);
273273 }
274274 range(l1, l2) => {
@@ -1274,7 +1274,7 @@ pub fn compile_submatch(bcx: block,
12741274 do expr::with_field_tys(tcx, pat_ty, None) |discr, field_tys| {
12751275 let rec_vals = rec_fields.map(|field_name| {
12761276 let ix = ty::field_idx_strict(tcx, *field_name, field_tys);
1277- adt::trans_GEP(bcx, & pat_repr, val, discr, ix)
1277+ adt::trans_GEP(bcx, pat_repr, val, discr, ix)
12781278 });
12791279 compile_submatch(
12801280 bcx,
@@ -1293,7 +1293,7 @@ pub fn compile_submatch(bcx: block,
12931293 _ => ccx.sess.bug(~" non-tuple type in tuple pattern")
12941294 };
12951295 let tup_vals = do vec::from_fn(n_tup_elts) |i| {
1296- adt::trans_GEP(bcx, & tup_repr, val, 0, i)
1296+ adt::trans_GEP(bcx, tup_repr, val, 0, i)
12971297 };
12981298 compile_submatch(bcx, enter_tup(bcx, dm, m, col, val, n_tup_elts),
12991299 vec::append(tup_vals, vals_left), chk);
@@ -1315,7 +1315,7 @@ pub fn compile_submatch(bcx: block,
13151315
13161316 let struct_repr = adt::represent_type(bcx.ccx(), struct_ty);
13171317 let llstructvals = do vec::from_fn(struct_element_count) |i| {
1318- adt::trans_GEP(bcx, & struct_repr, val, 0, i)
1318+ adt::trans_GEP(bcx, struct_repr, val, 0, i)
13191319 };
13201320 compile_submatch(bcx,
13211321 enter_tuple_struct(bcx, dm, m, col, val,
@@ -1359,7 +1359,7 @@ pub fn compile_submatch(bcx: block,
13591359 let mut test_val = val;
13601360 if opts.len() > 0u {
13611361 match opts[0] {
1362- var(_, ref repr) => {
1362+ var(_, repr) => {
13631363 let (the_kind, val_opt) = adt::trans_switch(bcx, repr, val);
13641364 kind = the_kind;
13651365 for val_opt.each |&tval| { test_val = tval; }
@@ -1511,7 +1511,7 @@ pub fn compile_submatch(bcx: block,
15111511 let mut size = 0u;
15121512 let mut unpacked = ~[];
15131513 match *opt {
1514- var(disr_val, ref repr) => {
1514+ var(disr_val, repr) => {
15151515 let ExtractedBlock {vals: argvals, bcx: new_bcx} =
15161516 extract_variant_args(opt_cx, repr, disr_val, val);
15171517 size = argvals.len();
@@ -1731,7 +1731,7 @@ pub fn bind_irrefutable_pat(bcx: block,
17311731 enum_id,
17321732 var_id) ;
17331733 let args = extract_variant_args ( bcx,
1734- & repr,
1734+ repr,
17351735 vinfo. disr_val ,
17361736 val) ;
17371737 for sub_pats. each |sub_pat| {
@@ -1753,7 +1753,7 @@ pub fn bind_irrefutable_pat(bcx: block,
17531753 // This is the tuple struct case.
17541754 let repr = adt:: represent_node ( bcx, pat. id ) ;
17551755 for vec:: eachi( elems) |i, elem| {
1756- let fldptr = adt:: trans_GEP ( bcx, & repr,
1756+ let fldptr = adt:: trans_GEP ( bcx, repr,
17571757 val, 0 , i) ;
17581758 bcx = bind_irrefutable_pat ( bcx,
17591759 * elem,
@@ -1776,7 +1776,7 @@ pub fn bind_irrefutable_pat(bcx: block,
17761776 do expr:: with_field_tys ( tcx, pat_ty, None ) |discr, field_tys| {
17771777 for vec:: each( fields) |f| {
17781778 let ix = ty:: field_idx_strict ( tcx, f. ident , field_tys) ;
1779- let fldptr = adt:: trans_GEP ( bcx, & pat_repr, val,
1779+ let fldptr = adt:: trans_GEP ( bcx, pat_repr, val,
17801780 discr, ix) ;
17811781 bcx = bind_irrefutable_pat ( bcx,
17821782 f. pat ,
@@ -1789,7 +1789,7 @@ pub fn bind_irrefutable_pat(bcx: block,
17891789 ast:: pat_tup( elems) => {
17901790 let repr = adt:: represent_node ( bcx, pat. id ) ;
17911791 for vec:: eachi( elems) |i, elem| {
1792- let fldptr = adt:: trans_GEP ( bcx, & repr, val, 0 , i) ;
1792+ let fldptr = adt:: trans_GEP ( bcx, repr, val, 0 , i) ;
17931793 bcx = bind_irrefutable_pat ( bcx,
17941794 * elem,
17951795 fldptr,
0 commit comments