auto merge of #8963 : jmgrosen/rust/issue-8881, r=alexcrichton

This commit is contained in:
bors 2013-09-03 19:46:42 -07:00
commit 383073883f
5 changed files with 23 additions and 10 deletions

View file

@ -14,33 +14,33 @@ pub use std::path::Path;
pub use package_id::PkgId; pub use package_id::PkgId;
condition! { condition! {
bad_path: (super::Path, ~str) -> super::Path; bad_path: (Path, ~str) -> Path;
} }
condition! { condition! {
nonexistent_package: (super::PkgId, ~str) -> super::Path; nonexistent_package: (PkgId, ~str) -> Path;
} }
condition! { condition! {
copy_failed: (super::Path, super::Path) -> (); copy_failed: (Path, Path) -> ();
} }
condition! { condition! {
missing_pkg_files: (super::PkgId) -> (); missing_pkg_files: (PkgId) -> ();
} }
condition! { condition! {
bad_pkg_id: (super::Path, ~str) -> super::PkgId; bad_pkg_id: (Path, ~str) -> PkgId;
} }
condition! { condition! {
no_rust_path: (~str) -> super::Path; no_rust_path: (~str) -> Path;
} }
condition! { condition! {
not_a_workspace: (~str) -> super::Path; not_a_workspace: (~str) -> Path;
} }
condition! { condition! {
failed_to_create_temp_dir: (~str) -> super::Path; failed_to_create_temp_dir: (~str) -> Path;
} }

View file

@ -29,6 +29,8 @@ 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
// NOTE: this super::NullByteResolution should be NullByteResolution
// Change this next time the snapshot it updated.
null_byte: (~[u8]) -> super::NullByteResolution; null_byte: (~[u8]) -> super::NullByteResolution;
} }

View file

@ -385,6 +385,8 @@ impl ToStr for IoErrorKind {
// Raised by `I/O` operations on error. // Raised by `I/O` operations on error.
condition! { condition! {
// FIXME (#6009): uncomment `pub` after expansion support lands. // 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 -> (); /*pub*/ io_error: super::IoError -> ();
} }
@ -392,6 +394,8 @@ condition! {
// Raised by `read` on error // Raised by `read` on error
condition! { condition! {
// FIXME (#6009): uncomment `pub` after expansion support lands. // 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 -> ();
} }

View file

@ -889,7 +889,11 @@ pub fn std_macros() -> @str {
{ pub $c:ident: $input:ty -> $out:ty; } => { { pub $c:ident: $input:ty -> $out:ty; } => {
pub mod $c { pub mod $c {
#[allow(unused_imports)];
#[allow(non_uppercase_statics)]; #[allow(non_uppercase_statics)];
use super::*;
static key: ::std::local_data::Key< static key: ::std::local_data::Key<
@::std::condition::Handler<$input, $out>> = @::std::condition::Handler<$input, $out>> =
&::std::local_data::Key; &::std::local_data::Key;
@ -907,7 +911,11 @@ pub fn std_macros() -> @str {
// FIXME (#6009): remove mod's `pub` below once variant above lands. // FIXME (#6009): remove mod's `pub` below once variant above lands.
pub mod $c { pub mod $c {
#[allow(unused_imports)];
#[allow(non_uppercase_statics)]; #[allow(non_uppercase_statics)];
use super::*;
static key: ::std::local_data::Key< static key: ::std::local_data::Key<
@::std::condition::Handler<$input, $out>> = @::std::condition::Handler<$input, $out>> =
&::std::local_data::Key; &::std::local_data::Key;

View file

@ -16,7 +16,7 @@ pub enum Color {
} }
condition! { condition! {
pub oops: (int,float,~str) -> ::Color; pub oops: (int,float,~str) -> Color;
} }
pub trait Thunk<T> { pub trait Thunk<T> {
@ -26,4 +26,3 @@ pub trait Thunk<T> {
pub fn callback<T,TH:Thunk<T>>(t:TH) -> T { pub fn callback<T,TH:Thunk<T>>(t:TH) -> T {
t.call() t.call()
} }