From e64670888a2839ba75237b1934c440c4c319b1bb Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Tue, 3 Mar 2015 10:42:26 +0200 Subject: Remove integer suffixes where the types in compiled code are identical. --- src/liballoc/boxed.rs | 2 +- src/liballoc/boxed_test.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/liballoc') 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) { } - 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; -- cgit 1.4.1-3-g733a5