From 5001a666650962f00137f126247c50fa1188a599 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 12 May 2014 19:06:31 -0700 Subject: [PATCH] Test fixes from rollup Closes #14163 (Fix typos in rustc manpage) Closes #14161 (Add the patch number to version strings. Closes #13289) Closes #14156 (rustdoc: Fix hiding implementations of traits) Closes #14152 (add shebang to scripts that have execute bit set) Closes #14150 (libcore: remove fails from slice.rs and remove duplicated length checking) Closes #14147 (Make ProcessOutput Eq, TotalEq, Clone) Closes #14142 (doc: updates rust manual (loop to continue)) Closes #14141 (doc: Update the linkage documentation) Closes #14139 (Remove an unnecessary .move_iter().collect()) Closes #14136 (Two minor fixes in parser.rs) Closes #14130 (Fixed typo in comments of driver.rs) Closes #14128 (Add `stat` method to `std::io::fs::File` to stat without a Path.) Closes #14114 (rustdoc: List macros in the sidebar) Closes #14113 (shootout-nbody improvement) Closes #14112 (Improved example code in Option) Closes #14104 (Remove reference to MutexArc) Closes #14087 (emacs: highlight `macro_name!` in macro invocations using [] delimiters) --- src/libstd/io/mod.rs | 1 - src/libstd/os.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 363525425902d..3c32b7ca802d7 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1509,7 +1509,6 @@ pub enum FileType { /// Err(e) => fail!("couldn't read foo.txt: {}", e), /// }; /// -/// println!("path: {}", info.path.display()); /// println!("byte size: {}", info.size); /// # } /// ``` diff --git a/src/libstd/os.rs b/src/libstd/os.rs index b10b74183fea9..f7324dc08b6d5 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -95,13 +95,12 @@ pub fn getcwd() -> Path { #[cfg(windows)] pub mod win32 { - use iter::Iterator; use libc::types::os::arch::extra::DWORD; use libc; use option::{None, Option, Expect}; use option; use os::TMPBUF_SZ; - use slice::{MutableVector, ImmutableVector, OwnedVector}; + use slice::{MutableVector, ImmutableVector}; use str::{StrSlice, StrAllocating}; use str; use vec::Vec;