Skip to content

Be more specific about rust version #49

@NobbZ

Description

@NobbZ

I tried to compile and run colonize from master a couple of minuets ago, but it does not work, I do get different error messages depending on the toolchain used to compile, I will give an excerpt below:

But lets start with the toolchain versions I tested:

$ multirust run nightly rustc --version
rustc 1.10.0-nightly (4ec5ce5e4 2016-05-12)

$ multirust run beta rustc --version
rustc 1.9.0-beta.2 (87cb73304 2016-05-04)

$ multirust run stable rustc --version
rustc 1.8.0 (db2939409 2016-04-11)

Now the failure I do get when trying to compile stable or beta:

   Compiling colonize_world v0.0.1 (file:///home/NobbZ/projects/rust/colonize/world)
   Compiling rgframework v0.0.1 (file:///home/NobbZ/projects/rust/colonize/framework)
   Compiling colonize v0.0.2 (file:///home/NobbZ/projects/rust/colonize)
src/action.rs:3:30: 3:39 error: `#[derive]` for custom traits is not stable enough for use and is subject to change (see issue #29644)
src/action.rs:3 #[derive(Clone, Deserialize, Serialize)]
                                             ^~~~~~~~~
[... similar messages ...]
src/localization.rs:5:1: 5:56 error: couldn't read "/home/NobbZ/projects/rust/colonize/target/debug/build/colonize-edfe5b092dfa28d2/out/localization.rs": No such file or directory (os error 2)
src/localization.rs:5 include!(concat!(env!("OUT_DIR"), "/localization.rs"));
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: Could not compile `colonize`.

and nightly does emit the following stuff:

   Compiling rustc-serialize v0.3.19
   Compiling deque v0.3.1
   Compiling rayon v0.3.1
/home/NobbZ/.multirust/cargo/registry/src/github.com-1ecc6299db9ec823/rayon-0.3.1/src/par_iter/enumerate.rs:21:5: 25:6 error: the trait bound `C: par_iter::internal::Consumer<par_iter::enumerate::Enumerate<M>>` is not satisfied [E0277]
/home/NobbZ/.multirust/cargo/registry/src/github.com-1ecc6299db9ec823/rayon-0.3.1/src/par_iter/enumerate.rs:21     fn drive_unindexed<C>(self, consumer: C) -> C::Result
                                                                                                                     ^
[... many other messages tagged [E0277] ...]
error: aborting due to 55 previous errors
Build failed, waiting for other jobs to finish...
^C

The very same error appears never the less when I use the command as specified in the README or a plain cargo run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions