1
Fork 0

Add missing annotations and some tests

This commit is contained in:
Vadim Petrochenkov 2015-11-16 19:54:28 +03:00
parent 52acc05f63
commit 7e2ffc7090
87 changed files with 439 additions and 21 deletions

View file

@ -324,6 +324,7 @@ impl IntoInner<fs_imp::File> for File {
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl fmt::Debug for File {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.inner.fmt(f)
@ -1230,6 +1231,7 @@ pub trait PathExt {
}
#[allow(deprecated)]
#[unstable(feature = "path_ext_deprecated", issue = "27725")]
impl PathExt for Path {
fn metadata(&self) -> io::Result<Metadata> { metadata(self) }
fn symlink_metadata(&self) -> io::Result<Metadata> { symlink_metadata(self) }