about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_back/fs.rs2
-rw-r--r--src/libstd/prelude/v1.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_back/fs.rs b/src/librustc_back/fs.rs
index ea7f2446bf3..398e58f9e44 100644
--- a/src/librustc_back/fs.rs
+++ b/src/librustc_back/fs.rs
@@ -35,7 +35,7 @@ pub fn realpath(original: &Path) -> io::Result<PathBuf> {
         if ret == 0 {
             return Err(io::Error::last_os_error())
         }
-        assert!(ret as usize < v.capacity());
+        assert!((ret as usize) < v.capacity());
         v.set_len(ret);
     }
     Ok(PathBuf::from(OsString::from_wide(&v)))
diff --git a/src/libstd/prelude/v1.rs b/src/libstd/prelude/v1.rs
index 84a45086767..c93fc13284b 100644
--- a/src/libstd/prelude/v1.rs
+++ b/src/libstd/prelude/v1.rs
@@ -47,6 +47,3 @@
 #[doc(no_inline)] pub use string::{String, ToString};
 #[stable(feature = "rust1", since = "1.0.0")]
 #[doc(no_inline)] pub use vec::Vec;
-
-#[allow(deprecated)] pub use slice::AsSlice;
-#[allow(deprecated)] pub use str::Str;