about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-04 16:20:46 -0700
committerbors <bors@rust-lang.org>2013-09-04 16:20:46 -0700
commitb161e09e03a5a0135557daa7166d290a515fbec2 (patch)
tree5389bbee679d726c69023e9fae74d1a0fb3ee215
parent6c13b0f4f6b6c51c0d83bad3c48d7249a1d15308 (diff)
parentc326ff0c2839862e8307fcbfec84afd288168051 (diff)
downloadrust-b161e09e03a5a0135557daa7166d290a515fbec2.tar.gz
rust-b161e09e03a5a0135557daa7166d290a515fbec2.zip
auto merge of #8977 : pnkfelix/rust/fsk-followup-on-6009-rebased, r=alexcrichton
Fix #6009.  Rebased version of #8970.  Inherits review from alexcrichton.
-rw-r--r--src/librustpkg/conditions.rs16
-rw-r--r--src/librustpkg/package_source.rs1
-rw-r--r--src/libstd/c_str.rs6
-rw-r--r--src/libstd/condition.rs3
-rw-r--r--src/libstd/rt/io/mod.rs8
-rw-r--r--src/libstd/str.rs2
-rw-r--r--src/libsyntax/ext/expand.rs3
7 files changed, 19 insertions, 20 deletions
diff --git a/src/librustpkg/conditions.rs b/src/librustpkg/conditions.rs
index 16ee9c1afb4..4cb103deba7 100644
--- a/src/librustpkg/conditions.rs
+++ b/src/librustpkg/conditions.rs
@@ -14,33 +14,33 @@ pub use std::path::Path;
 pub use package_id::PkgId;
 
 condition! {
-    bad_path: (Path, ~str) -> Path;
+    pub bad_path: (Path, ~str) -> Path;
 }
 
 condition! {
-    nonexistent_package: (PkgId, ~str) -> Path;
+    pub nonexistent_package: (PkgId, ~str) -> Path;
 }
 
 condition! {
-    copy_failed: (Path, Path) -> ();
+    pub copy_failed: (Path, Path) -> ();
 }
 
 condition! {
-    missing_pkg_files: (PkgId) -> ();
+    pub missing_pkg_files: (PkgId) -> ();
 }
 
 condition! {
-    bad_pkg_id: (Path, ~str) -> PkgId;
+    pub bad_pkg_id: (Path, ~str) -> PkgId;
 }
 
 condition! {
-    no_rust_path: (~str) -> Path;
+    pub no_rust_path: (~str) -> Path;
 }
 
 condition! {
-    not_a_workspace: (~str) -> Path;
+    pub not_a_workspace: (~str) -> Path;
 }
 
 condition! {
-    failed_to_create_temp_dir: (~str) -> Path;
+    pub failed_to_create_temp_dir: (~str) -> Path;
 }
diff --git a/src/librustpkg/package_source.rs b/src/librustpkg/package_source.rs
index ae2083f1b22..8f2d8877cf9 100644
--- a/src/librustpkg/package_source.rs
+++ b/src/librustpkg/package_source.rs
@@ -34,6 +34,7 @@ pub struct PkgSrc {
 }
 
 condition! {
+    // #6009: should this be pub or not, when #8215 is fixed?
     build_err: (~str) -> ();
 }
 
diff --git a/src/libstd/c_str.rs b/src/libstd/c_str.rs
index 8e7129578ee..6f12e219c3c 100644
--- a/src/libstd/c_str.rs
+++ b/src/libstd/c_str.rs
@@ -28,10 +28,10 @@ pub enum NullByteResolution {
 }
 
 condition! {
-    // this should be &[u8] but there's a lifetime issue
+    // This should be &[u8] but there's a lifetime issue (#5370).
     // NOTE: this super::NullByteResolution should be NullByteResolution
-    // Change this next time the snapshot it updated.
-    null_byte: (~[u8]) -> super::NullByteResolution;
+    // Change this next time the snapshot is updated.
+    pub null_byte: (~[u8]) -> super::NullByteResolution;
 }
 
 /// The representation of a C String.
diff --git a/src/libstd/condition.rs b/src/libstd/condition.rs
index 4d8857c9d1b..9cd2ad79d18 100644
--- a/src/libstd/condition.rs
+++ b/src/libstd/condition.rs
@@ -193,7 +193,8 @@ mod test {
     // Issue #6009
     mod m {
         condition! {
-            sadness: int -> int;
+            // #6009, #8215: should this truly need a `pub` for access from n?
+            pub sadness: int -> int;
         }
 
         mod n {
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs
index 75af7ff8444..3b979cc2266 100644
--- a/src/libstd/rt/io/mod.rs
+++ b/src/libstd/rt/io/mod.rs
@@ -384,19 +384,17 @@ impl ToStr for IoErrorKind {
 // XXX: Can't put doc comments on macros
 // Raised by `I/O` operations on error.
 condition! {
-    // FIXME (#6009): uncomment `pub` after expansion support lands.
     // NOTE: this super::IoError should be IoError
-    // Change this next time the snapshot it updated.
-    /*pub*/ io_error: super::IoError -> ();
+    // Change this next time the snapshot is updated.
+    pub io_error: super::IoError -> ();
 }
 
 // XXX: Can't put doc comments on macros
 // Raised by `read` on error
 condition! {
-    // FIXME (#6009): uncomment `pub` after expansion support lands.
     // NOTE: this super::IoError should be IoError
     // Change this next time the snapshot it updated.
-    /*pub*/ read_error: super::IoError -> ();
+    pub read_error: super::IoError -> ();
 }
 
 pub trait Reader {
diff --git a/src/libstd/str.rs b/src/libstd/str.rs
index 6a5ec9aa6d6..87effda2540 100644
--- a/src/libstd/str.rs
+++ b/src/libstd/str.rs
@@ -43,7 +43,7 @@ Section: Conditions
 */
 
 condition! {
-    not_utf8: (~str) -> ~str;
+    pub not_utf8: (~str) -> ~str;
 }
 
 /*
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 202d75db399..7e48fe4d419 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -909,8 +909,7 @@ pub fn std_macros() -> @str {
 
         { $c:ident: $input:ty -> $out:ty; } => {
 
-            // FIXME (#6009): remove mod's `pub` below once variant above lands.
-            pub mod $c {
+            mod $c {
                 #[allow(unused_imports)];
                 #[allow(non_uppercase_statics)];