5
5
//! operations. Extra platform-specific functionality can be found in the
6
6
//! extension traits of `std::os::$platform`.
7
7
8
- #![ stable( feature = "rust1" , since = "1.0.0" ) ]
9
- #![ deny( unsafe_op_in_unsafe_fn) ]
10
-
11
8
#[ cfg( all( test, not( any( target_os = "emscripten" , target_env = "sgx" ) ) ) ) ]
12
9
mod tests;
13
10
14
- use crate :: ffi:: OsString ;
15
- use crate :: fmt;
16
- use crate :: io:: { self , Initializer , IoSlice , IoSliceMut , Read , Seek , SeekFrom , Write } ;
17
- use crate :: path:: { Path , PathBuf } ;
18
- use crate :: sys:: fs as fs_imp;
11
+ use std:: ffi:: OsString ;
12
+ use std:: fmt;
13
+ use std:: io:: { self , Initializer , IoSlice , IoSliceMut , Read , Seek , SeekFrom , Write } ;
14
+ use std:: path:: { Path , PathBuf } ;
15
+ //use std::sys::fs as fs_imp;
16
+ use crate :: unix_fs as fs_imp;
17
+
18
+ //use std::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
19
19
use crate :: sys_common:: { AsInner , AsInnerMut , FromInner , IntoInner } ;
20
- use crate :: time:: SystemTime ;
20
+
21
+ use std:: time:: SystemTime ;
21
22
22
23
/// A reference to an open file on the filesystem.
23
24
///
@@ -174,7 +175,7 @@ pub struct OpenOptions(fs_imp::OpenOptions);
174
175
/// platforms. Unix-specific functionality, such as mode bits, is available
175
176
/// through the [`PermissionsExt`] trait.
176
177
///
177
- /// [`PermissionsExt`]: crate ::os::unix::fs::PermissionsExt
178
+ /// [`PermissionsExt`]: std ::os::unix::fs::PermissionsExt
178
179
#[ derive( Clone , PartialEq , Eq , Debug ) ]
179
180
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
180
181
pub struct Permissions ( fs_imp:: FilePermissions ) ;
@@ -1745,9 +1746,9 @@ pub fn hard_link<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q) -> io::Re
1745
1746
/// and [`std::os::windows::fs::symlink_file`] or [`symlink_dir`] should be
1746
1747
/// used instead to make the intent explicit.
1747
1748
///
1748
- /// [`std::os::unix::fs::symlink`]: crate ::os::unix::fs::symlink
1749
- /// [`std::os::windows::fs::symlink_file`]: crate ::os::windows::fs::symlink_file
1750
- /// [`symlink_dir`]: crate ::os::windows::fs::symlink_dir
1749
+ /// [`std::os::unix::fs::symlink`]: std ::os::unix::fs::symlink
1750
+ /// [`std::os::windows::fs::symlink_file`]: std ::os::windows::fs::symlink_file
1751
+ /// [`symlink_dir`]: std ::os::windows::fs::symlink_dir
1751
1752
///
1752
1753
/// # Examples
1753
1754
///
@@ -2200,4 +2201,4 @@ impl AsInnerMut<fs_imp::DirBuilder> for DirBuilder {
2200
2201
fn as_inner_mut ( & mut self ) -> & mut fs_imp:: DirBuilder {
2201
2202
& mut self . inner
2202
2203
}
2203
- }
2204
+ }
0 commit comments