Skip to content

Instantly share code, notes, and snippets.

@olsonjeffery
Created February 2, 2014 01:55
Show Gist options
  • Save olsonjeffery/8761927 to your computer and use it in GitHub Desktop.
Save olsonjeffery/8761927 to your computer and use it in GitHub Desktop.
// will pull in libserialize here in stage1+
#[cfg(stage1, stage2, stage3)]
extern mod serialize = "serialize";
// reexport extra::serialize in stage0
#[cfg(stage0)]
pub mod serialize;
// Temp re-export until after a snapshot
extern mod serialize = "serialize";
pub use serialize::{Encoder, Decoder, Encodable, Decodable,
EncoderHelper, DecoderHelper};
// reexport stuff in serialize::serialize;
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
DecoderHelpers, EncoderHelpers};
pub mod serialize;
pub mod ebml;
trait Encoder {}
trait Decoder {}
trait Encodable {}
trait Decodable {}
trait EncoderHelpers {}
trait DecoderHelpers {}
bash-3.2$ make check-stage1-extra
cfg: build triple x86_64-apple-darwin
cfg: host triples x86_64-apple-darwin
cfg: target triples x86_64-apple-darwin
cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE)
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-apple-darwin is x86_64
cfg: os for x86_64-apple-darwin is apple-darwin
cfg: disabling C++ optimization (CFG_DISABLE_OPTIMIZE_CXX)
cfg: using ccache clang
cfg: no pandoc found, omitting docs
cfg: no llnextgen found, omitting grammar-verification
cfg: including dist rules
cfg: including test rules
compile_and_link: x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/libextra
/Users/jeff/src/rust/src/libextra/serialize.rs:14:21: 14:28 error: unresolved import (maybe you meant `Encoder::*`?)
/Users/jeff/src/rust/src/libextra/serialize.rs:14 pub use serialize::{Encoder, Decoder, Encodable, Decodable,
^~~~~~~
/Users/jeff/src/rust/src/libextra/ringbuf.rs:22:17: 22:26 error: unresolved import (maybe you meant `Encodable::*`?)
/Users/jeff/src/rust/src/libextra/ringbuf.rs:22 use serialize::{Encodable, Decodable, Encoder, Decoder};
^~~~~~~~~
/Users/jeff/src/rust/src/libextra/treemap.rs:20:17: 20:26 error: unresolved import (maybe you meant `Encodable::*`?)
/Users/jeff/src/rust/src/libextra/treemap.rs:20 use serialize::{Encodable, Decodable, Encoder, Decoder};
^~~~~~~~~
/Users/jeff/src/rust/src/libextra/dlist.rs:33:17: 33:26 error: unresolved import (maybe you meant `Encodable::*`?)
/Users/jeff/src/rust/src/libextra/dlist.rs:33 use serialize::{Encodable, Decodable, Encoder, Decoder};
^~~~~~~~~
/Users/jeff/src/rust/src/libextra/test.rs:23:5: 23:25 error: unresolved import
/Users/jeff/src/rust/src/libextra/test.rs:23 use serialize::Decodable;
^~~~~~~~~~~~~~~~~~~~
/Users/jeff/src/rust/src/libextra/workcache.rs:15:17: 15:24 error: unresolved import (maybe you meant `Encoder::*`?)
/Users/jeff/src/rust/src/libextra/workcache.rs:15 use serialize::{Encoder, Encodable, Decoder, Decodable};
^~~~~~~
/Users/jeff/src/rust/src/libextra/uuid.rs:70:17: 70:24 error: unresolved import (maybe you meant `Encoder::*`?)
/Users/jeff/src/rust/src/libextra/uuid.rs:70 use serialize::{Encoder, Encodable, Decoder, Decodable};
^~~~~~~
error: aborting due to 7 previous errors
make: *** [x86_64-apple-darwin/stage0/lib/rustlib/x86_64-apple-darwin/lib/stamp.extra] Error 101
bash-3.2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment