Added explicit pub to several conditions. Enables completion of #6009.
This commit is contained in:
@@ -14,33 +14,33 @@ pub use std::path::Path;
|
|||||||
pub use package_id::PkgId;
|
pub use package_id::PkgId;
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
bad_path: (Path, ~str) -> Path;
|
pub bad_path: (Path, ~str) -> Path;
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
nonexistent_package: (PkgId, ~str) -> Path;
|
pub nonexistent_package: (PkgId, ~str) -> Path;
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
copy_failed: (Path, Path) -> ();
|
pub copy_failed: (Path, Path) -> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
missing_pkg_files: (PkgId) -> ();
|
pub missing_pkg_files: (PkgId) -> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
bad_pkg_id: (Path, ~str) -> PkgId;
|
pub bad_pkg_id: (Path, ~str) -> PkgId;
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
no_rust_path: (~str) -> Path;
|
pub no_rust_path: (~str) -> Path;
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
not_a_workspace: (~str) -> Path;
|
pub not_a_workspace: (~str) -> Path;
|
||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
failed_to_create_temp_dir: (~str) -> Path;
|
pub failed_to_create_temp_dir: (~str) -> Path;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ pub struct PkgSrc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
|
// #6009: should this be pub or not, when #8215 is fixed?
|
||||||
build_err: (~str) -> ();
|
build_err: (~str) -> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ pub enum NullByteResolution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
condition! {
|
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
|
// NOTE: this super::NullByteResolution should be NullByteResolution
|
||||||
// Change this next time the snapshot it updated.
|
// Change this next time the snapshot is updated.
|
||||||
null_byte: (~[u8]) -> super::NullByteResolution;
|
pub null_byte: (~[u8]) -> super::NullByteResolution;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The representation of a C String.
|
/// The representation of a C String.
|
||||||
|
|||||||
@@ -384,19 +384,17 @@ impl ToStr for IoErrorKind {
|
|||||||
// XXX: Can't put doc comments on macros
|
// XXX: Can't put doc comments on macros
|
||||||
// Raised by `I/O` operations on error.
|
// Raised by `I/O` operations on error.
|
||||||
condition! {
|
condition! {
|
||||||
// FIXME (#6009): uncomment `pub` after expansion support lands.
|
|
||||||
// NOTE: this super::IoError should be IoError
|
// NOTE: this super::IoError should be IoError
|
||||||
// Change this next time the snapshot it updated.
|
// Change this next time the snapshot is updated.
|
||||||
/*pub*/ io_error: super::IoError -> ();
|
pub io_error: super::IoError -> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX: Can't put doc comments on macros
|
// XXX: Can't put doc comments on macros
|
||||||
// Raised by `read` on error
|
// Raised by `read` on error
|
||||||
condition! {
|
condition! {
|
||||||
// FIXME (#6009): uncomment `pub` after expansion support lands.
|
|
||||||
// NOTE: this super::IoError should be IoError
|
// NOTE: this super::IoError should be IoError
|
||||||
// Change this next time the snapshot it updated.
|
// Change this next time the snapshot it updated.
|
||||||
/*pub*/ read_error: super::IoError -> ();
|
pub read_error: super::IoError -> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Reader {
|
pub trait Reader {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ Section: Conditions
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
condition! {
|
condition! {
|
||||||
not_utf8: (~str) -> ~str;
|
pub not_utf8: (~str) -> ~str;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user