about summary refs log tree commit diff
path: root/src/libstd/sys/windows
diff options
context:
space:
mode:
authorPaul Dicker <pitdicker@gmail.com>2016-02-04 16:29:55 +0100
committerPaul Dicker <pitdicker@gmail.com>2016-02-04 16:29:55 +0100
commitfb172b676e5ab951e58b98cede795ab1a7557a58 (patch)
tree5a02011f2a38fdf63b2b6e3f574bbd5ee678bb9d /src/libstd/sys/windows
parent0bd55e548410515c9cea059ae5d9116e4a738966 (diff)
downloadrust-fb172b676e5ab951e58b98cede795ab1a7557a58.tar.gz
rust-fb172b676e5ab951e58b98cede795ab1a7557a58.zip
Allow dead code for `symlink_junction()`
Diffstat (limited to 'src/libstd/sys/windows')
-rw-r--r--src/libstd/sys/windows/fs.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs
index 7ace48fe561..9f9290b751d 100644
--- a/src/libstd/sys/windows/fs.rs
+++ b/src/libstd/sys/windows/fs.rs
@@ -657,6 +657,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
     Ok(size as u64)
 }
 
+#[allow(dead_code)]
 pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()> {
     symlink_junction_inner(src.as_ref(), dst.as_ref())
 }
@@ -666,6 +667,7 @@ pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::R
 // what can be found here:
 //
 // http://www.flexhex.com/docs/articles/hard-links.phtml
+#[allow(dead_code)]
 fn symlink_junction_inner(target: &Path, junction: &Path) -> io::Result<()> {
     let d = DirBuilder::new();
     try!(d.mkdir(&junction));