rust/src/libstd
bors d0ef740266 Auto merge of #31360 - pitdicker:fs_tests_cleanup, r=alexcrichton
- use `symlink_file` and `symlink_dir` instead of the old `soft_link`
- create a junction instead of a directory symlink for testing recursive_rmdir (as it causes the
  same troubles, but can be created by users without `SeCreateSymbolicLinkPrivilege`)
- `remove_dir_all` was unable to remove directory symlinks and junctions
- only run tests that create symlinks if we have the right permissions.
- rename `Path2` to `Path`
- remove the global `#[allow(deprecated)]` and outdated comments
- After factoring out `create_junction()` from the test `directory_junctions_are_directories` and
  removing needlessly complex code, what I was left with was:
  ```
  #[test]
  #[cfg(windows)]
  fn directory_junctions_are_directories() {
      use sys::fs::create_junction;

      let tmpdir = tmpdir();

      let foo = tmpdir.join("foo");
      let bar = tmpdir.join("bar");

      fs::create_dir(&foo).unwrap();
      check!(create_junction(&foo, &bar));
      assert!(bar.metadata().unwrap().is_dir());
  }
  ```
  It test whether a junction is a directory instead of a reparse point. But it actually test the
  target of the junction (which is a directory if it exists) instead of the junction itself, which
  should always be a symlink. So this test is invalid, and I expect it only exists because the
  author was suprised by it. So I removed it.

Some things that do not yet work right:
- relative symlinks do not accept forward slashes
- the conversion of paths for `create_junction` is hacky
- `remove_dir_all` now messes with the internal data of `FileAttr` to be able to remove symlinks.
  We should add some method like `is_symlink_dir()` to it, so code outside the standard library
  can see the difference between file and directory symlinks too.
2016-02-04 18:48:41 +00:00
..
collections Ensure capacity returned of HashMap is max(capacity, length). 2016-02-02 17:17:24 +11:00
ffi Fix formatting in documentation of ffi::CString 2016-01-27 15:07:22 -08:00
io Auto merge of #31120 - alexcrichton:attribute-deny-warnings, r=brson 2016-01-26 22:10:10 +00:00
net Implement ToSocketAddrs for &[SocketAddr] 2016-02-04 09:44:30 +00:00
num Rename sunos to solaris 2016-01-31 19:01:30 +03:00
os Auto merge of #31078 - nbaksalyar:illumos, r=alexcrichton 2016-02-03 22:40:32 +00:00
prelude doc: fix typo 2015-12-17 20:57:14 +02:00
rand Remove "powerpc64le" and "mipsel" target_arch 2016-02-01 20:39:07 -08:00
sync Auto merge of #30834 - reem:rwlock-read-guard-map, r=alexcrichton 2016-02-03 19:26:05 +00:00
sys Auto merge of #31360 - pitdicker:fs_tests_cleanup, r=alexcrichton 2016-02-04 18:48:41 +00:00
thread std: Ignore dtors_in_dtors_in_dtors on OSX 2016-01-29 13:46:47 -08:00
time Rollup merge of #30591 - SimonSapin:patch-15, r=aturon 2016-01-15 17:28:28 +05:30
ascii.rs std: Add issues to all unstable features 2015-08-15 18:09:17 -07:00
dynamic_lib.rs Rename sunos to solaris 2016-01-31 19:01:30 +03:00
env.rs Auto merge of #31078 - nbaksalyar:illumos, r=alexcrichton 2016-02-03 22:40:32 +00:00
error.rs Impl Error for Box<T: Error> 2016-01-23 09:03:09 +01:00
fs.rs Auto merge of #31360 - pitdicker:fs_tests_cleanup, r=alexcrichton 2016-02-04 18:48:41 +00:00
lib.rs Auto merge of #31120 - alexcrichton:attribute-deny-warnings, r=brson 2016-01-26 22:10:10 +00:00
macros.rs Use different numbers of #s when expanding documentation comments 2016-01-19 06:24:08 +09:00
memchr.rs std: Use the fallback impl for memrchr on non-linux 2016-01-20 18:00:34 +01:00
panic.rs Fix typo 2016-01-16 16:34:51 +01:00
panicking.rs Add message about RUST_BACKTRACE to default output of panic! 2016-01-26 10:37:12 +01:00
path.rs Improve docs for Path::methods 2016-02-03 01:16:58 +02:00
primitive_docs.rs small fix to str doc example 2015-12-16 22:12:47 -05:00
process.rs Auto merge of #31056 - kamalmarhubi:std-process-nul-chars, r=alexcrichton 2016-02-03 17:19:10 +00:00
rt.rs Fix warnings when compiling stdlib with --test 2015-12-29 16:07:01 +01:00
rtdeps.rs Rename sunos to solaris 2016-01-31 19:01:30 +03:00