Skip to content

Commit 98a85ef

Browse files
committed
std: Remove AsSlice/Str from the prelude
1 parent cb231fe commit 98a85ef

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/librustc_back/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn realpath(original: &Path) -> io::Result<PathBuf> {
3535
if ret == 0 {
3636
return Err(io::Error::last_os_error())
3737
}
38-
assert!(ret as usize < v.capacity());
38+
assert!((ret as usize) < v.capacity());
3939
v.set_len(ret);
4040
}
4141
Ok(PathBuf::from(OsString::from_wide(&v)))

src/libstd/prelude/v1.rs

-3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,3 @@
4747
#[doc(no_inline)] pub use string::{String, ToString};
4848
#[stable(feature = "rust1", since = "1.0.0")]
4949
#[doc(no_inline)] pub use vec::Vec;
50-
51-
#[allow(deprecated)] pub use slice::AsSlice;
52-
#[allow(deprecated)] pub use str::Str;

0 commit comments

Comments
 (0)