diff options
| author | srinivasreddy <thatiparthysreenivas@gmail.com> | 2016-03-10 21:48:15 +0530 |
|---|---|---|
| committer | srinivasreddy <thatiparthysreenivas@gmail.com> | 2016-03-10 21:48:15 +0530 |
| commit | 93f2a54609540859d26a30eb833388b20621182b (patch) | |
| tree | 6337657f74becd1e4069dc3d33d19b4dbc6d7d1f /src/liballoc | |
| parent | 6d6ae1ffe665610ae235dd95e849248a6741ff0f (diff) | |
| download | rust-93f2a54609540859d26a30eb833388b20621182b.tar.gz rust-93f2a54609540859d26a30eb833388b20621182b.zip | |
first round of removal of integer suffixes
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 8 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 4 |
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); |
