diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-18 14:35:01 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-18 14:35:01 -0800 |
| commit | 5250a82f7917d6f9ec590e7e762bfd036e21ef74 (patch) | |
| tree | 38ce94117b42eb159b630d0a97748b5f3056fbe5 /src/libcoretest/hash | |
| parent | 5a32b4a34fc6fbd78e293b16f7ba7d06caca7a48 (diff) | |
| parent | 811c48fe22ffbe4ca45c32807c846d9a7c02a8f3 (diff) | |
| download | rust-5250a82f7917d6f9ec590e7e762bfd036e21ef74.tar.gz rust-5250a82f7917d6f9ec590e7e762bfd036e21ef74.zip | |
rollup merge of #22497: nikomatsakis/suffixes
Conflicts: src/librustc_trans/trans/tvec.rs
Diffstat (limited to 'src/libcoretest/hash')
| -rw-r--r-- | src/libcoretest/hash/mod.rs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libcoretest/hash/mod.rs b/src/libcoretest/hash/mod.rs index 11e5e6f334f..2d85769c0cd 100644 --- a/src/libcoretest/hash/mod.rs +++ b/src/libcoretest/hash/mod.rs @@ -41,17 +41,17 @@ fn test_writer_hasher() { assert_eq!(hash(&()), 0); - assert_eq!(hash(&5u8), 5); - assert_eq!(hash(&5u16), 5); - assert_eq!(hash(&5u32), 5); - assert_eq!(hash(&5u64), 5); - assert_eq!(hash(&5us), 5); - - assert_eq!(hash(&5i8), 5); - assert_eq!(hash(&5i16), 5); - assert_eq!(hash(&5i32), 5); - assert_eq!(hash(&5i64), 5); - assert_eq!(hash(&5is), 5); + assert_eq!(hash(&5_u8), 5); + assert_eq!(hash(&5_u16), 5); + assert_eq!(hash(&5_u32), 5); + assert_eq!(hash(&5_u64), 5); + assert_eq!(hash(&5_usize), 5); + + assert_eq!(hash(&5_i8), 5); + assert_eq!(hash(&5_i16), 5); + assert_eq!(hash(&5_i32), 5); + assert_eq!(hash(&5_i64), 5); + assert_eq!(hash(&5_isize), 5); assert_eq!(hash(&false), 0); assert_eq!(hash(&true), 1); @@ -71,12 +71,12 @@ fn test_writer_hasher() { // FIXME (#18248) Add tests for hashing Rc<str> and Rc<[T]> unsafe { - let ptr: *const i32 = mem::transmute(5us); + let ptr: *const i32 = mem::transmute(5_usize); assert_eq!(hash(&ptr), 5); } unsafe { - let ptr: *mut i32 = mem::transmute(5us); + let ptr: *mut i32 = mem::transmute(5_usize); assert_eq!(hash(&ptr), 5); } } |
