std: Remove AsSlice/Str from the prelude
This commit is contained in:
parent
33fb5bb004
commit
9cd8a5a45b
@ -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)))
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user