diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-11-17 21:39:01 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-11-17 22:41:33 +1300 |
| commit | ca08540a0039e827114752d11166ea8cb1387068 (patch) | |
| tree | 53b03a7c1563b089518fdcf1be7e9d789fdd0897 /src/libcoretest | |
| parent | 803aacd5aef78f90fdd06ae7653fc20eec224992 (diff) | |
| download | rust-ca08540a0039e827114752d11166ea8cb1387068.tar.gz rust-ca08540a0039e827114752d11166ea8cb1387068.zip | |
Fix fallout from coercion removal
Diffstat (limited to 'src/libcoretest')
| -rw-r--r-- | src/libcoretest/char.rs | 16 | ||||
| -rw-r--r-- | src/libcoretest/iter.rs | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/libcoretest/char.rs b/src/libcoretest/char.rs index 50a2e47cafa..8ec3c59da4e 100644 --- a/src/libcoretest/char.rs +++ b/src/libcoretest/char.rs @@ -177,10 +177,10 @@ fn test_encode_utf8() { assert_eq!(buf[..n], expect); } - check('x', [0x78]); - check('\u00e9', [0xc3, 0xa9]); - check('\ua66e', [0xea, 0x99, 0xae]); - check('\U0001f4a9', [0xf0, 0x9f, 0x92, 0xa9]); + check('x', &[0x78]); + check('\u00e9', &[0xc3, 0xa9]); + check('\ua66e', &[0xea, 0x99, 0xae]); + check('\U0001f4a9', &[0xf0, 0x9f, 0x92, 0xa9]); } #[test] @@ -191,10 +191,10 @@ fn test_encode_utf16() { assert_eq!(buf[..n], expect); } - check('x', [0x0078]); - check('\u00e9', [0x00e9]); - check('\ua66e', [0xa66e]); - check('\U0001f4a9', [0xd83d, 0xdca9]); + check('x', &[0x0078]); + check('\u00e9', &[0x00e9]); + check('\ua66e', &[0xa66e]); + check('\U0001f4a9', &[0xd83d, 0xdca9]); } #[test] diff --git a/src/libcoretest/iter.rs b/src/libcoretest/iter.rs index 7764fb26c11..32aff498ba1 100644 --- a/src/libcoretest/iter.rs +++ b/src/libcoretest/iter.rs @@ -627,7 +627,7 @@ fn test_random_access_zip() { #[test] fn test_random_access_take() { let xs = [1i, 2, 3, 4, 5]; - let empty: &[int] = []; + let empty: &[int] = &[]; check_randacc_iter(xs.iter().take(3), 3); check_randacc_iter(xs.iter().take(20), xs.len()); check_randacc_iter(xs.iter().take(0), 0); @@ -637,7 +637,7 @@ fn test_random_access_take() { #[test] fn test_random_access_skip() { let xs = [1i, 2, 3, 4, 5]; - let empty: &[int] = []; + let empty: &[int] = &[]; check_randacc_iter(xs.iter().skip(2), xs.len() - 2); check_randacc_iter(empty.iter().skip(2), 0); } @@ -669,7 +669,7 @@ fn test_random_access_map() { #[test] fn test_random_access_cycle() { let xs = [1i, 2, 3, 4, 5]; - let empty: &[int] = []; + let empty: &[int] = &[]; check_randacc_iter(xs.iter().cycle().take(27), 27); check_randacc_iter(empty.iter().cycle(), 0); } |
