diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-03-03 10:42:26 +0200 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 12:38:33 +0530 |
| commit | e64670888a2839ba75237b1934c440c4c319b1bb (patch) | |
| tree | 20e71f3ff12cd8ffd7ddf5cbc7cba29f8149d6df /src/liballoc | |
| parent | 68740b405404a3f885e388c8d31722797d519c30 (diff) | |
| download | rust-e64670888a2839ba75237b1934c440c4c319b1bb.tar.gz rust-e64670888a2839ba75237b1934c440c4c319b1bb.zip | |
Remove integer suffixes where the types in compiled code are identical.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/boxed_test.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 630ca837daa..9351b110100 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -42,7 +42,7 @@ //! } //! ``` //! -//! This will print `Cons(1i32, Box(Cons(2i32, Box(Nil))))`. +//! This will print `Cons(1, Box(Cons(2, Box(Nil))))`. #![stable(feature = "rust1", since = "1.0.0")] diff --git a/src/liballoc/boxed_test.rs b/src/liballoc/boxed_test.rs index b7bacaa0cae..bb1ff9428a7 100644 --- a/src/liballoc/boxed_test.rs +++ b/src/liballoc/boxed_test.rs @@ -72,13 +72,13 @@ fn test_show() { #[test] fn deref() { fn homura<T: Deref<Target=i32>>(_: T) { } - homura(Box::new(765i32)); + homura(Box::new(765)); } #[test] fn raw_sized() { unsafe { - let x = Box::new(17i32); + let x = Box::new(17); let p = boxed::into_raw(x); assert_eq!(17, *p); *p = 19; |
