[INFO] cloning repository https://github.com/iamcxds/lambda-factory [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iamcxds/lambda-factory" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcxds%2Flambda-factory", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcxds%2Flambda-factory'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f41b72498365db2c64792852da362a567885ae3 [INFO] checking iamcxds/lambda-factory against try#5ff93158e08fa2205cd4b86cddf9eae95952cc96 for pr-129543-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcxds%2Flambda-factory" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iamcxds/lambda-factory [INFO] finished tweaking git repo https://github.com/iamcxds/lambda-factory [INFO] tweaked toml for git repo https://github.com/iamcxds/lambda-factory written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iamcxds/lambda-factory on toolchain 5ff93158e08fa2205cd4b86cddf9eae95952cc96 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/iamcxds/lambda-factory already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking iamcxds/lambda-factory against try#5ff93158e08fa2205cd4b86cddf9eae95952cc96 for pr-129543-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiamcxds%2Flambda-factory" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iamcxds/lambda-factory [INFO] finished tweaking git repo https://github.com/iamcxds/lambda-factory [INFO] tweaked toml for git repo https://github.com/iamcxds/lambda-factory written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iamcxds/lambda-factory on toolchain 5ff93158e08fa2205cd4b86cddf9eae95952cc96 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/iamcxds/lambda-factory already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded raylib v5.5.0 [INFO] [stderr] Downloaded raylib-sys v5.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0911d4367ef31899b297aad82c7bfa35c7df520e8a968fc451f088174791c755 [INFO] running `Command { std: "docker" "start" "-a" "0911d4367ef31899b297aad82c7bfa35c7df520e8a968fc451f088174791c755", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0911d4367ef31899b297aad82c7bfa35c7df520e8a968fc451f088174791c755", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0911d4367ef31899b297aad82c7bfa35c7df520e8a968fc451f088174791c755", kill_on_drop: false }` [INFO] [stdout] 0911d4367ef31899b297aad82c7bfa35c7df520e8a968fc451f088174791c755 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6662a5d7f831ce75e22ba6b8281c7ced42f6745551fac0db3888e9db1884b439 [INFO] running `Command { std: "docker" "start" "-a" "6662a5d7f831ce75e22ba6b8281c7ced42f6745551fac0db3888e9db1884b439", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling prettyplease v0.2.29 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Compiling either v1.14.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling raylib-sys v5.5.0 [INFO] [stderr] Checking raylib v5.5.0 [INFO] [stderr] Checking lambda-factory v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `structopt` [INFO] [stdout] --> examples/options.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `structopt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `structopt`, use `cargo add structopt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `structopt` [INFO] [stdout] --> examples/arkanoid.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `structopt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `structopt`, use `cargo add structopt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `structopt` [INFO] [stdout] --> examples/options.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `structopt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `structopt`, use `cargo add structopt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::distributions` [INFO] [stdout] --> examples/roguelike.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::distributions::WeightedIndex; [INFO] [stdout] | ^^^^^^^^^^^^^ could not find `distributions` in `rand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `serde` [INFO] [stdout] --> examples/roguelike.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tcod` [INFO] [stdout] --> examples/roguelike.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tcod::map::{FovAlgorithm, Map as FovMap}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `tcod` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tcod`, use `cargo add tcod` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `structopt` [INFO] [stdout] --> examples/roguelike.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `structopt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `structopt`, use `cargo add structopt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `structopt` [INFO] [stdout] --> examples/options.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use structopt::StructOpt; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `structopt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `structopt`, use `cargo add structopt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[structopt(name = "example", about = "An example of StructOpt usage.")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[structopt(name = "example", about = "An example of StructOpt usage.")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[structopt(name = "example", about = "An example of StructOpt usage.")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[structopt(short = "w", long = "width", default_value = "800")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[structopt(short = "w", long = "width", default_value = "800")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[structopt(short = "w", long = "width", default_value = "800")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[structopt(short = "h", long = "height", default_value = "450")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[structopt(short = "h", long = "height", default_value = "450")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[structopt(long = "fps", default_value = "60")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[structopt(short = "h", long = "height", default_value = "450")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[structopt(long = "fps", default_value = "60")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `options` [INFO] [stdout] --> examples/options.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/options.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `structopt` in this scope [INFO] [stdout] --> examples/options.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[structopt(long = "fps", default_value = "60")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_args` found for struct `Opt` in the current scope [INFO] [stdout] --> examples/options.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Opt { [INFO] [stdout] | -------------- function or associated item `from_args` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 20 | Opt::from_args() [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Opt` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Opt`, consider using `Opt::new` which returns `Opt` [INFO] [stdout] --> examples/options.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_args` found for struct `Opt` in the current scope [INFO] [stdout] --> examples/options.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Opt { [INFO] [stdout] | -------------- function or associated item `from_args` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 20 | Opt::from_args() [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Opt` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Opt`, consider using `Opt::new` which returns `Opt` [INFO] [stdout] --> examples/options.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_args` found for struct `Opt` in the current scope [INFO] [stdout] --> examples/arkanoid.rs:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | let opt = options::Opt::from_args(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Opt` [INFO] [stdout] | [INFO] [stdout] ::: examples/options.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Opt { [INFO] [stdout] | -------------- function or associated item `from_args` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Opt`, consider using `Opt::new` which returns `Opt` [INFO] [stdout] --> examples/options.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/arkanoid.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | rl.set_target_fps(60); [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> examples/roguelike.rs:681:23 [INFO] [stdout] | [INFO] [stdout] 681 | let mut rng = thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 11 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `thread_rng` in this scope [INFO] [stdout] --> examples/roguelike.rs:785:70 [INFO] [stdout] | [INFO] [stdout] 785 | let mut item = match items[item_distribution.sample(&mut thread_rng())] { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 11 + use rand::thread_rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lambda-factory` (example "options") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:596:23 [INFO] [stdout] | [INFO] [stdout] 596 | let w = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:597:23 [INFO] [stdout] | [INFO] [stdout] 597 | let h = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:598:23 [INFO] [stdout] | [INFO] [stdout] 598 | let x = rand::thread_rng().gen_range::(0..MAP_WIDTH - w); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:599:23 [INFO] [stdout] | [INFO] [stdout] 599 | let y = rand::thread_rng().gen_range::(0..MAP_HEIGHT - h); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:653:30 [INFO] [stdout] | [INFO] [stdout] 653 | let num_monsters = rand::thread_rng().gen_range::(0..max_monsters + 1); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:656:23 [INFO] [stdout] | [INFO] [stdout] 656 | let x = rand::thread_rng().gen_range::(room.x + 1.0..room.x + room.width) as i32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:657:23 [INFO] [stdout] | [INFO] [stdout] 657 | let y = rand::thread_rng().gen_range::(room.y + 1.0..room.y + room.height) as i32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:774:27 [INFO] [stdout] | [INFO] [stdout] 774 | let num_items = rand::thread_rng().gen_range::(0..max_items + 1); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:778:19 [INFO] [stdout] | [INFO] [stdout] 778 | rand::thread_rng().gen_range::(room.x as i32 + 1..(room.x + room.width) as i32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:780:19 [INFO] [stdout] | [INFO] [stdout] 780 | rand::thread_rng().gen_range::(room.y as i32 + 1..(room.y + room.height) as i32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:1420:19 [INFO] [stdout] | [INFO] [stdout] 1420 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: renamed to `rng` [INFO] [stdout] --> examples/roguelike.rs:1421:19 [INFO] [stdout] | [INFO] [stdout] 1421 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lambda-factory` (example "arkanoid") due to 9 previous errors [INFO] [stdout] error[E0599]: no function or associated item named `from_args` found for struct `Opt` in the current scope [INFO] [stdout] --> examples/options.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Opt { [INFO] [stdout] | -------------- function or associated item `from_args` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 20 | Opt::from_args() [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Opt` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Opt`, consider using `Opt::new` which returns `Opt` [INFO] [stdout] --> examples/options.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_vector`, `from_vector`, `to_number`, `from_number`, `opposite`, and `rotation` are never used [INFO] [stdout] --> src/helper.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Direct2D { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 13 | fn to_vector(&self) -> (i8, i8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn from_vector(x: i8, y: i8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn to_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn from_number(n: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn opposite(&self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn rotation(&self, rot: Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eval` is never used [INFO] [stdout] --> src/lambda.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl LambdaBox { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn eval(&mut self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lambda.rs:574:10 [INFO] [stdout] | [INFO] [stdout] 574 | MApp(Direct2D), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LambdaSqType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 574 - MApp(Direct2D), [INFO] [stdout] 574 + MApp(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_vector`, `from_vector`, `to_number`, `from_number`, `opposite`, and `rotation` are never used [INFO] [stdout] --> src/helper.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Direct2D { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 13 | fn to_vector(&self) -> (i8, i8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn from_vector(x: i8, y: i8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn to_number(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn from_number(n: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn opposite(&self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn rotation(&self, rot: Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `eval` is never used [INFO] [stdout] --> src/lambda.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl LambdaBox { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn eval(&mut self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lambda.rs:574:10 [INFO] [stdout] | [INFO] [stdout] 574 | MApp(Direct2D), [INFO] [stdout] | ---- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `LambdaSqType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 574 - MApp(Direct2D), [INFO] [stdout] 574 + MApp(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:596:36 [INFO] [stdout] | [INFO] [stdout] 596 | let w = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:596:36 [INFO] [stdout] | [INFO] [stdout] 596 | let w = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 596 | let w = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:596:53 [INFO] [stdout] | [INFO] [stdout] 596 | let w = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] but trait `SampleRange` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:597:36 [INFO] [stdout] | [INFO] [stdout] 597 | let h = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:597:36 [INFO] [stdout] | [INFO] [stdout] 597 | let h = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 597 | let h = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:597:53 [INFO] [stdout] | [INFO] [stdout] 597 | let h = rand::thread_rng().gen_range::(ROOM_MIN_SIZE..ROOM_MAX_SIZE + 1); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] but trait `SampleRange` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:598:36 [INFO] [stdout] | [INFO] [stdout] 598 | let x = rand::thread_rng().gen_range::(0..MAP_WIDTH - w); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:598:36 [INFO] [stdout] | [INFO] [stdout] 598 | let x = rand::thread_rng().gen_range::(0..MAP_WIDTH - w); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 598 | let x = rand::thread_rng().gen_range::(0..MAP_WIDTH - w); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `i32` [INFO] [stdout] --> examples/roguelike.rs:598:66 [INFO] [stdout] | [INFO] [stdout] 598 | let x = rand::thread_rng().gen_range::(0..MAP_WIDTH - w); [INFO] [stdout] | ^ no implementation for `i32 - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `i32` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&i32` implements `Sub` [INFO] [stdout] `&i32` implements `Sub` [INFO] [stdout] `i32` implements `Sub<&i32>` [INFO] [stdout] `i32` implements `Sub>` [INFO] [stdout] `i32` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range<{integer}>: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:598:53 [INFO] [stdout] | [INFO] [stdout] 598 | let x = rand::thread_rng().gen_range::(0..MAP_WIDTH - w); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] but trait `SampleRange<{integer}>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `{integer}`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:599:36 [INFO] [stdout] | [INFO] [stdout] 599 | let y = rand::thread_rng().gen_range::(0..MAP_HEIGHT - h); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:599:36 [INFO] [stdout] | [INFO] [stdout] 599 | let y = rand::thread_rng().gen_range::(0..MAP_HEIGHT - h); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 599 | let y = rand::thread_rng().gen_range::(0..MAP_HEIGHT - h); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `i32` [INFO] [stdout] --> examples/roguelike.rs:599:67 [INFO] [stdout] | [INFO] [stdout] 599 | let y = rand::thread_rng().gen_range::(0..MAP_HEIGHT - h); [INFO] [stdout] | ^ no implementation for `i32 - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `i32` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&i32` implements `Sub` [INFO] [stdout] `&i32` implements `Sub` [INFO] [stdout] `i32` implements `Sub<&i32>` [INFO] [stdout] `i32` implements `Sub>` [INFO] [stdout] `i32` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range<{integer}>: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:599:53 [INFO] [stdout] | [INFO] [stdout] 599 | let y = rand::thread_rng().gen_range::(0..MAP_HEIGHT - h); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] but trait `SampleRange<{integer}>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `{integer}`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:653:43 [INFO] [stdout] | [INFO] [stdout] 653 | let num_monsters = rand::thread_rng().gen_range::(0..max_monsters + 1); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:653:43 [INFO] [stdout] | [INFO] [stdout] 653 | let num_monsters = rand::thread_rng().gen_range::(0..max_monsters + 1); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 653 | let num_monsters = rand::thread_rng().gen_range::(0..max_monsters + 1); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:653:60 [INFO] [stdout] | [INFO] [stdout] 653 | let num_monsters = rand::thread_rng().gen_range::(0..max_monsters + 1); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] but trait `SampleRange` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `u32`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/roguelike.rs:655:17 [INFO] [stdout] | [INFO] [stdout] 655 | for _ in 0..num_monsters { [INFO] [stdout] | ^^^^^^^^^^^^ expected integer, found `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:656:36 [INFO] [stdout] | [INFO] [stdout] 656 | let x = rand::thread_rng().gen_range::(room.x + 1.0..room.x + room.width) as i32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:656:36 [INFO] [stdout] | [INFO] [stdout] 656 | let x = rand::thread_rng().gen_range::(room.x + 1.0..room.x + room.width) as i32; [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 656 | let x = rand::thread_rng().gen_range::(room.x + 1.0..room.x + room.width) as i32; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:657:36 [INFO] [stdout] | [INFO] [stdout] 657 | let y = rand::thread_rng().gen_range::(room.y + 1.0..room.y + room.height) as i32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:657:36 [INFO] [stdout] | [INFO] [stdout] 657 | let y = rand::thread_rng().gen_range::(room.y + 1.0..room.y + room.height) as i32; [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 657 | let y = rand::thread_rng().gen_range::(room.y + 1.0..room.y + room.height) as i32; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `raylib::prelude::Color::fade`: Use Color::alpha instead [INFO] [stdout] --> examples/roguelike.rs:686:74 [INFO] [stdout] | [INFO] [stdout] 686 | let mut orc = Object::new(x, y, 'o', "orc", Color::GREEN.fade(0.8), true); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:774:40 [INFO] [stdout] | [INFO] [stdout] 774 | let num_items = rand::thread_rng().gen_range::(0..max_items + 1); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:774:40 [INFO] [stdout] | [INFO] [stdout] 774 | let num_items = rand::thread_rng().gen_range::(0..max_items + 1); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 774 | let num_items = rand::thread_rng().gen_range::(0..max_items + 1); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:774:57 [INFO] [stdout] | [INFO] [stdout] 774 | let num_items = rand::thread_rng().gen_range::(0..max_items + 1); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] but trait `SampleRange` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `u32`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/roguelike.rs:775:17 [INFO] [stdout] | [INFO] [stdout] 775 | for _ in 0..num_items { [INFO] [stdout] | ^^^^^^^^^ expected integer, found `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:778:32 [INFO] [stdout] | [INFO] [stdout] 778 | rand::thread_rng().gen_range::(room.x as i32 + 1..(room.x + room.width) as i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:778:32 [INFO] [stdout] | [INFO] [stdout] 778 | rand::thread_rng().gen_range::(room.x as i32 + 1..(room.x + room.width) as i32); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 778 | rand::thread_rng().gen_range::(room.x as i32 + 1..(room.x + room.width) as i32); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:778:49 [INFO] [stdout] | [INFO] [stdout] 778 | rand::thread_rng().gen_range::(room.x as i32 + 1..(room.x + room.width) as i32); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] but trait `SampleRange` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:780:32 [INFO] [stdout] | [INFO] [stdout] 780 | rand::thread_rng().gen_range::(room.y as i32 + 1..(room.y + room.height) as i32); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:780:32 [INFO] [stdout] | [INFO] [stdout] 780 | rand::thread_rng().gen_range::(room.y as i32 + 1..(room.y + room.height) as i32); [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 780 | rand::thread_rng().gen_range::(room.y as i32 + 1..(room.y + room.height) as i32); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:780:49 [INFO] [stdout] | [INFO] [stdout] 780 | rand::thread_rng().gen_range::(room.y as i32 + 1..(room.y + room.height) as i32); [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range` [INFO] [stdout] but trait `SampleRange` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:783:13 [INFO] [stdout] | [INFO] [stdout] 783 | if !is_blocked(x, y, map, objects) { [INFO] [stdout] | ^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> examples/roguelike.rs:849:4 [INFO] [stdout] | [INFO] [stdout] 849 | fn is_blocked(x: i32, y: i32, map: &Map, objects: &[Object]) -> bool { [INFO] [stdout] | ^^^^^^^^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:789:25 [INFO] [stdout] | [INFO] [stdout] 789 | Object::new(x, y, '!', "healing potion", Color::MAGENTA, false); [INFO] [stdout] | ^^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/roguelike.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn new(x: i32, y: i32, char: char, name: &str, color: Color, blocks: bool) -> Self { [INFO] [stdout] | ^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:796:25 [INFO] [stdout] | [INFO] [stdout] 796 | Object::new(x, y, '#', "scroll of lightning bolt", Color::YELLOW, false); [INFO] [stdout] | ^^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/roguelike.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn new(x: i32, y: i32, char: char, name: &str, color: Color, blocks: bool) -> Self { [INFO] [stdout] | ^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:803:25 [INFO] [stdout] | [INFO] [stdout] 803 | Object::new(x, y, '#', "scroll of fireball", Color::YELLOW, false); [INFO] [stdout] | ^^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/roguelike.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn new(x: i32, y: i32, char: char, name: &str, color: Color, blocks: bool) -> Self { [INFO] [stdout] | ^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:810:25 [INFO] [stdout] | [INFO] [stdout] 810 | Object::new(x, y, '#', "scroll of confusion", Color::YELLOW, false); [INFO] [stdout] | ^^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/roguelike.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn new(x: i32, y: i32, char: char, name: &str, color: Color, blocks: bool) -> Self { [INFO] [stdout] | ^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:816:38 [INFO] [stdout] | [INFO] [stdout] 816 | let mut object = Object::new(x, y, '[', "shield", Color::ORANGE, false); [INFO] [stdout] | ^^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/roguelike.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn new(x: i32, y: i32, char: char, name: &str, color: Color, blocks: bool) -> Self { [INFO] [stdout] | ^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:830:38 [INFO] [stdout] | [INFO] [stdout] 830 | let mut object = Object::new(x, y, '/', "sword", Color::BLACK, false); [INFO] [stdout] | ^^^^^^^^^^^ - - expected `i32`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/roguelike.rs:241:12 [INFO] [stdout] | [INFO] [stdout] 241 | pub fn new(x: i32, y: i32, char: char, name: &str, color: Color, blocks: bool) -> Self { [INFO] [stdout] | ^^^ ------ ------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_args` found for struct `Opt` in the current scope [INFO] [stdout] --> examples/roguelike.rs:969:33 [INFO] [stdout] | [INFO] [stdout] 969 | let mut opt = options::Opt::from_args(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Opt` [INFO] [stdout] | [INFO] [stdout] ::: examples/options.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Opt { [INFO] [stdout] | -------------- function or associated item `from_args` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Opt`, consider using `Opt::new` which returns `Opt` [INFO] [stdout] --> examples/options.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/roguelike.rs:974:5 [INFO] [stdout] | [INFO] [stdout] 974 | rl.set_target_fps(20); [INFO] [stdout] | ^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:1420:32 [INFO] [stdout] | [INFO] [stdout] 1420 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:1420:32 [INFO] [stdout] | [INFO] [stdout] 1420 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 1420 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range<{integer}>: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:1420:49 [INFO] [stdout] | [INFO] [stdout] 1420 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | --------- ^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] but trait `SampleRange<{integer}>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `{integer}`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` [INFO] [stdout] --> examples/roguelike.rs:1421:32 [INFO] [stdout] | [INFO] [stdout] 1421 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: method takes 2 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> examples/roguelike.rs:1421:32 [INFO] [stdout] | [INFO] [stdout] 1421 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ^^^^^^^^^ --- supplied 1 generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: method defined here, with 2 generic parameters: `T`, `R` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:334:8 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ - - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 1421 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `std::ops::Range<{integer}>: SampleRange` is not satisfied [INFO] [stdout] --> examples/roguelike.rs:1421:49 [INFO] [stdout] | [INFO] [stdout] 1421 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | --------- ^^^^^ the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `SampleRange` is not implemented for `std::ops::Range<{integer}>` [INFO] [stdout] but trait `SampleRange<{integer}>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/distr/uniform.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | impl SampleRange for Range { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `{integer}`, found `f32` [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.0/src/rng.rs:337:12 [INFO] [stdout] | [INFO] [stdout] 334 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 337 | R: SampleRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> examples/roguelike.rs:1418:9 [INFO] [stdout] | [INFO] [stdout] 1418 | move_by( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1419 | monster_id, [INFO] [stdout] 1420 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ------------------------------------------ expected `i32`, found `f32` [INFO] [stdout] 1421 | rand::thread_rng().gen_range::(-1..2), [INFO] [stdout] | ------------------------------------------ expected `i32`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> examples/roguelike.rs:1451:4 [INFO] [stdout] | [INFO] [stdout] 1451 | fn move_by(id: usize, dx: i32, dy: i32, map: &Map, objects: &mut [Object]) { [INFO] [stdout] | ^^^^^^^ ------- ------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> examples/roguelike.rs:1915:21 [INFO] [stdout] | [INFO] [stdout] 1915 | let save_data = serde_json::to_string(&(game, objects))?; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] --> examples/roguelike.rs:1925:18 [INFO] [stdout] | [INFO] [stdout] 1925 | let result = serde_json::from_str::<(Game, Vec)>(&json_save_state)?; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `serde_json` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde_json`, use `cargo add serde_json` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0282, E0308, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lambda-factory` (example "roguelike") due to 50 previous errors; 25 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6662a5d7f831ce75e22ba6b8281c7ced42f6745551fac0db3888e9db1884b439", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6662a5d7f831ce75e22ba6b8281c7ced42f6745551fac0db3888e9db1884b439", kill_on_drop: false }` [INFO] [stdout] 6662a5d7f831ce75e22ba6b8281c7ced42f6745551fac0db3888e9db1884b439