about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-03-28 13:48:28 -0400
committerSteve Klabnik <steve@steveklabnik.com>2016-03-28 13:48:28 -0400
commitf2c6b51dc051e143ab634b11d4bd0b08ba26fb85 (patch)
tree1394e51bf680deb6faad26a0f837b5ac1a34c220 /src/liballoc
parent53a03b5ed207907dd725e88386762dbcc2ca712f (diff)
parent91a42bedcf251609333acf65761027a4280ba4ca (diff)
downloadrust-f2c6b51dc051e143ab634b11d4bd0b08ba26fb85.tar.gz
rust-f2c6b51dc051e143ab634b11d4bd0b08ba26fb85.zip
Rollup merge of #32177 - srinivasreddy:remove_integer_suffixes, r=steveklabnik
 first round of removal of integer suffixes
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs8
-rw-r--r--src/liballoc/rc.rs4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index b5d7279edb0..1dac7dca348 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -107,7 +107,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
 /// use std::thread;
 ///
 /// fn main() {
-///     let numbers: Vec<_> = (0..100u32).collect();
+///     let numbers: Vec<_> = (0..100).collect();
 ///     let shared_numbers = Arc::new(numbers);
 ///
 ///     for _ in 0..10 {
@@ -1118,7 +1118,7 @@ mod tests {
 
     #[test]
     fn test_strong_count() {
-        let a = Arc::new(0u32);
+        let a = Arc::new(0);
         assert!(Arc::strong_count(&a) == 1);
         let w = Arc::downgrade(&a);
         assert!(Arc::strong_count(&a) == 1);
@@ -1135,7 +1135,7 @@ mod tests {
 
     #[test]
     fn test_weak_count() {
-        let a = Arc::new(0u32);
+        let a = Arc::new(0);
         assert!(Arc::strong_count(&a) == 1);
         assert!(Arc::weak_count(&a) == 0);
         let w = Arc::downgrade(&a);
@@ -1161,7 +1161,7 @@ mod tests {
 
     #[test]
     fn show_arc() {
-        let a = Arc::new(5u32);
+        let a = Arc::new(5);
         assert_eq!(format!("{:?}", a), "5");
     }
 
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index dc283f5acdf..da803f57a59 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -1014,7 +1014,7 @@ mod tests {
 
     #[test]
     fn test_strong_count() {
-        let a = Rc::new(0u32);
+        let a = Rc::new(0);
         assert!(Rc::strong_count(&a) == 1);
         let w = Rc::downgrade(&a);
         assert!(Rc::strong_count(&a) == 1);
@@ -1031,7 +1031,7 @@ mod tests {
 
     #[test]
     fn test_weak_count() {
-        let a = Rc::new(0u32);
+        let a = Rc::new(0);
         assert!(Rc::strong_count(&a) == 1);
         assert!(Rc::weak_count(&a) == 0);
         let w = Rc::downgrade(&a);