about summary refs log tree commit diff
path: root/src/libstd/sys/unix
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-17 15:41:34 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-17 17:33:18 +0530
commit2833976cccf6ce8e9740ac5f055435ba17a28b9e (patch)
tree0eb68b5241edf8263063ce1534c22d722a28075b /src/libstd/sys/unix
parentc0865dfe1c74a0720a2d53d3e2f5aa6fdfde852a (diff)
parent7d941fa61fa38f13347de8e0522e9084683795e3 (diff)
downloadrust-2833976cccf6ce8e9740ac5f055435ba17a28b9e.tar.gz
rust-2833976cccf6ce8e9740ac5f055435ba17a28b9e.zip
Rollup merge of #22402 - nagisa:spring-cleanup-2, r=nikomatsakis
This commit mostly replaces some of the uses of os::args with env::args.

This, for obvious reasons is based on top of #22400. Do not r+ before that lands.
Diffstat (limited to 'src/libstd/sys/unix')
-rw-r--r--src/libstd/sys/unix/os.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs
index 8a6ef17818a..df03841276e 100644
--- a/src/libstd/sys/unix/os.rs
+++ b/src/libstd/sys/unix/os.rs
@@ -247,6 +247,10 @@ impl Iterator for Args {
     fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() }
 }
 
+impl ExactSizeIterator for Args {
+    fn len(&self) -> usize { self.iter.len() }
+}
+
 /// Returns the command line arguments
 ///
 /// Returns a list of the command line arguments.