From fb172b676e5ab951e58b98cede795ab1a7557a58 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Thu, 4 Feb 2016 16:29:55 +0100 Subject: [PATCH] Allow dead code for `symlink_junction()` --- src/libstd/sys/windows/fs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs index 7ace48fe5611..9f9290b751d8 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 { Ok(size as u64) } +#[allow(dead_code)] pub fn symlink_junction, Q: AsRef>(src: P, dst: Q) -> io::Result<()> { symlink_junction_inner(src.as_ref(), dst.as_ref()) } @@ -666,6 +667,7 @@ pub fn symlink_junction, Q: AsRef>(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));