diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-05-12 16:50:57 -0400 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-05-14 12:25:19 -0400 |
| commit | ffcc680f9cc26b5b2cb2f453a89dbcf8144f8b9b (patch) | |
| tree | 8f3f8634548c02309d281d6cdbfd7b34b7ea8c9d /src/libsyntax/ast_util.rs | |
| parent | 5614e83e817a1d15286a1d4eeb6b665ddf5fe3cb (diff) | |
| download | rust-ffcc680f9cc26b5b2cb2f453a89dbcf8144f8b9b.tar.gz rust-ffcc680f9cc26b5b2cb2f453a89dbcf8144f8b9b.zip | |
Fix test fallout from removing vecs_implicitly_copyable
Diffstat (limited to 'src/libsyntax/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 0ea0dcf16f6..212ceadf912 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -679,19 +679,19 @@ mod test { #[test] fn xorpush_test () { let mut s = ~[]; xorPush(&mut s,14); - assert_eq!(s,~[14]); + assert_eq!(copy s,~[14]); xorPush(&mut s,14); - assert_eq!(s,~[]); + assert_eq!(copy s,~[]); xorPush(&mut s,14); - assert_eq!(s,~[14]); + assert_eq!(copy s,~[14]); xorPush(&mut s,15); - assert_eq!(s,~[14,15]); + assert_eq!(copy s,~[14,15]); xorPush (&mut s,16); - assert_eq! (s,~[14,15,16]); + assert_eq!(copy s,~[14,15,16]); xorPush (&mut s,16); - assert_eq! (s,~[14,15]); + assert_eq!(copy s,~[14,15]); xorPush (&mut s,15); - assert_eq! (s,~[14]); + assert_eq!(copy s,~[14]); } // convert a list of uints to an @~[ident] @@ -746,7 +746,7 @@ mod test { let mut t = mk_sctable(); let test_sc = ~[M(3),R(id(101,0),14),M(9)]; - assert_eq!(unfold_test_sc(test_sc,empty_ctxt,&mut t),3); + assert_eq!(unfold_test_sc(copy test_sc,empty_ctxt,&mut t),3); assert_eq!(t[1],Mark(9,0)); assert_eq!(t[2],Rename(id(101,0),14,1)); assert_eq!(t[3],Mark(3,2)); |
