diff options
| author | bors <bors@rust-lang.org> | 2014-03-29 11:41:37 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-29 11:41:37 -0700 |
| commit | d878df05ad589d1ae3f4e087bbc8abba1b459703 (patch) | |
| tree | 4fc8b2f734f94938d60fe6bfe2d2a0a4c11d7bbb /src/libstd | |
| parent | 3eb3a02c92e129e87561ebcf927543679bf7c74d (diff) | |
| parent | 63b233c25d45f4dc792fa864ddf710ce9ddd0224 (diff) | |
| download | rust-d878df05ad589d1ae3f4e087bbc8abba1b459703.tar.gz rust-d878df05ad589d1ae3f4e087bbc8abba1b459703.zip | |
auto merge of #13183 : erickt/rust/remove-list, r=alexcrichton
`collections::list::List` was decided in a [team meeting](https://github.com/mozilla/rust/wiki/Meeting-weekly-2014-03-25) that it was unnecessary, so this PR removes it. Additionally, it removes an old and redundant purity test and fixes some warnings.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/iter.rs | 2 | ||||
| -rw-r--r-- | src/libstd/str.rs | 2 | ||||
| -rw-r--r-- | src/libstd/unstable/mutex.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/iter.rs b/src/libstd/iter.rs index 0a19bc43b28..f4a7e3c5769 100644 --- a/src/libstd/iter.rs +++ b/src/libstd/iter.rs @@ -2335,7 +2335,7 @@ mod tests { #[test] fn test_counter_from_iter() { - let mut it = count(0, 5).take(10); + let it = count(0, 5).take(10); let xs: ~[int] = FromIterator::from_iterator(it); assert_eq!(xs, ~[0, 5, 10, 15, 20, 25, 30, 35, 40, 45]); } diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 0e640d3a662..5ef3e67c208 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -3218,7 +3218,7 @@ mod tests { let data = ~"ประเทศไทย中"; let mut cpy = data.clone(); let other = "abc"; - let mut it = other.chars(); + let it = other.chars(); cpy.extend(it); assert_eq!(cpy, data + other); } diff --git a/src/libstd/unstable/mutex.rs b/src/libstd/unstable/mutex.rs index eda2df487aa..34023ceb452 100644 --- a/src/libstd/unstable/mutex.rs +++ b/src/libstd/unstable/mutex.rs @@ -621,7 +621,7 @@ mod test { #[test] fn destroy_immediately() { unsafe { - let mut m = StaticNativeMutex::new(); + let m = StaticNativeMutex::new(); m.destroy(); } } |
