about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-02-28 02:27:18 -0500
committerAlex Crichton <alex@alexcrichton.com>2013-03-04 12:27:01 -0500
commitbc3bee410a6967942d18cef59a781603a7db86e4 (patch)
treecaaea06fb7614098a20d66ca7515f82c64fa9699 /src
parentdfb5c10dea0dd7bc56950148fa23fd02a07706fa (diff)
Add a special FIXME for subduing warnings in rpath.rs
Diffstat (limited to 'src')
-rw-r--r--src/librustc/back/rpath.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc/back/rpath.rs b/src/librustc/back/rpath.rs
index 982d29ad9fc..669cb669fe1 100644
--- a/src/librustc/back/rpath.rs
+++ b/src/librustc/back/rpath.rs
@@ -198,10 +198,15 @@ pub fn minimize_rpaths(rpaths: &[Path]) -> ~[Path] {
 
 #[cfg(unix)]
 mod test {
+    // FIXME(#2119): the outer attribute should be #[cfg(unix, test)], then
+    // these redundant #[cfg(test)] blocks can be removed
+    #[cfg(test)]
     use core::prelude::*;
-
+    #[cfg(test)]
     use back::rpath::{get_absolute_rpath, get_install_prefix_rpath};
+    #[cfg(test)]
     use back::rpath::{get_relative_to, get_rpath_relative_to_output};
+    #[cfg(test)]
     use back::rpath::{minimize_rpaths, rpaths_to_flags};
 
     #[test]