[INFO] cloning repository https://github.com/andrensegura/rpg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andrensegura/rpg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrensegura%2Frpg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrensegura%2Frpg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aefc832ae2d5e0ad373ffc90e5246e1cd9fe5c02 [INFO] checking andrensegura/rpg against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandrensegura%2Frpg" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andrensegura/rpg on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andrensegura/rpg [INFO] finished tweaking git repo https://github.com/andrensegura/rpg [INFO] tweaked toml for git repo https://github.com/andrensegura/rpg written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/andrensegura/rpg already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/andrensegura/lib_andre` [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/andrensegura/lib_andre` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bd2391dde7641a716a70363ec8e201fcb2ee01ba9c952b951f54ded555bf42a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4bd2391dde7641a716a70363ec8e201fcb2ee01ba9c952b951f54ded555bf42a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bd2391dde7641a716a70363ec8e201fcb2ee01ba9c952b951f54ded555bf42a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bd2391dde7641a716a70363ec8e201fcb2ee01ba9c952b951f54ded555bf42a", kill_on_drop: false }` [INFO] [stdout] 4bd2391dde7641a716a70363ec8e201fcb2ee01ba9c952b951f54ded555bf42a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b43896d2ae44aea093c9c2facd31ae0894a326b162f23bc21529d14149089dc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3b43896d2ae44aea093c9c2facd31ae0894a326b162f23bc21529d14149089dc", kill_on_drop: false }` [INFO] [stderr] Checking lib_andre v0.1.2 (https://github.com/andrensegura/lib_andre#48714433) [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking rpg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | let mut player = try!(intro()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | if try!(battle(&mut player, level)) != 0 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | try!(prompt("Press enter to continue...")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | try!(allocate(5, &mut player.attributes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | fn try_main() -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | try!(allocate(unallocated, &mut player.attributes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | try!(prompt("Are you ready?: ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:86:36 [INFO] [stdout] | [INFO] [stdout] 86 | fn intro() -> Result>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:147:41 [INFO] [stdout] | [INFO] [stdout] 147 | fn log(event: String) -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 164 | println!("{}", try!(print_file("log/log.rpg"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:163:33 [INFO] [stdout] | [INFO] [stdout] 163 | fn show_log() -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | try!(calculate_stats(&monster.attributes, &monster.item, &mut monster.stats)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:168:54 [INFO] [stdout] | [INFO] [stdout] 168 | fn spawn_monster(level: u32) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:223:35 [INFO] [stdout] | [INFO] [stdout] 223 | let response: Vec = try!(prompt("What attribute? (str/vit/agi/dex/luk): ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:219:68 [INFO] [stdout] | [INFO] [stdout] 219 | fn allocate(total: u32, attributes: &mut Attr) -> Result >{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:265:89 [INFO] [stdout] | [INFO] [stdout] 265 | fn calculate_stats(attributes: &Attr, item: &Attr, stats: &mut Stats) -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:282:3 [INFO] [stdout] | [INFO] [stdout] 282 | / ((agent_attack as f64 * 0.9) as u32 [INFO] [stdout] 283 | | + ((rand::random::() % ((agent_attack as f64 * 0.2) as u32))) [INFO] [stdout] 284 | | + { if (rand::random::() % 100) <= agent_critch { [INFO] [stdout] 285 | | (agent_attack as f64 * 0.9) as u32 [INFO] [stdout] ... | [INFO] [stdout] 289 | | } [INFO] [stdout] 290 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 | (agent_attack as f64 * 0.9) as u32 [INFO] [stdout] 283 | + ((rand::random::() % ((agent_attack as f64 * 0.2) as u32))) [INFO] [stdout] 284 | + { if (rand::random::() % 100) <= agent_critch { [INFO] [stdout] 285 | (agent_attack as f64 * 0.9) as u32 [INFO] [stdout] 286 | + ((rand::random::() % ((agent_attack as f64 * 0.2) as u32))) [INFO] [stdout] 287 | }else{ [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | try!(calculate_stats(&player.attributes, &player.item, &mut player.stats)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:311:23 [INFO] [stdout] | [INFO] [stdout] 311 | let mut monster = try!(spawn_monster(level)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:314:35 [INFO] [stdout] | [INFO] [stdout] 314 | let response: Vec = try!(prompt("command: ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:325:22 [INFO] [stdout] | [INFO] [stdout] 325 | try!(log(format!("Dealt {} damage!", player_damage))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:327:25 [INFO] [stdout] | [INFO] [stdout] 327 | try!(show_log()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:333:22 [INFO] [stdout] | [INFO] [stdout] 333 | try!(log(format!("You healed for {}", heal))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | try!(show_log()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | try!(log(format!("Took {} damage!", monster_damage))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | try!(show_log()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:305:65 [INFO] [stdout] | [INFO] [stdout] 305 | fn battle(player: &mut Creature, level: u32) -> Result>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:67:22 [INFO] [stdout] | [INFO] [stdout] 67 | let mut player = try!(intro()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | if try!(battle(&mut player, level)) != 0 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | try!(prompt("Press enter to continue...")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | try!(allocate(5, &mut player.attributes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | fn try_main() -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | try!(allocate(unallocated, &mut player.attributes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | try!(prompt("Are you ready?: ")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:86:36 [INFO] [stdout] | [INFO] [stdout] 86 | fn intro() -> Result>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:147:41 [INFO] [stdout] | [INFO] [stdout] 147 | fn log(event: String) -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:164:20 [INFO] [stdout] | [INFO] [stdout] 164 | println!("{}", try!(print_file("log/log.rpg"))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:163:33 [INFO] [stdout] | [INFO] [stdout] 163 | fn show_log() -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | try!(calculate_stats(&monster.attributes, &monster.item, &mut monster.stats)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:168:54 [INFO] [stdout] | [INFO] [stdout] 168 | fn spawn_monster(level: u32) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:223:35 [INFO] [stdout] | [INFO] [stdout] 223 | let response: Vec = try!(prompt("What attribute? (str/vit/agi/dex/luk): ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:219:68 [INFO] [stdout] | [INFO] [stdout] 219 | fn allocate(total: u32, attributes: &mut Attr) -> Result >{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:265:89 [INFO] [stdout] | [INFO] [stdout] 265 | fn calculate_stats(attributes: &Attr, item: &Attr, stats: &mut Stats) -> Result<(), Box>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:282:3 [INFO] [stdout] | [INFO] [stdout] 282 | / ((agent_attack as f64 * 0.9) as u32 [INFO] [stdout] 283 | | + ((rand::random::() % ((agent_attack as f64 * 0.2) as u32))) [INFO] [stdout] 284 | | + { if (rand::random::() % 100) <= agent_critch { [INFO] [stdout] 285 | | (agent_attack as f64 * 0.9) as u32 [INFO] [stdout] ... | [INFO] [stdout] 289 | | } [INFO] [stdout] 290 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 | (agent_attack as f64 * 0.9) as u32 [INFO] [stdout] 283 | + ((rand::random::() % ((agent_attack as f64 * 0.2) as u32))) [INFO] [stdout] 284 | + { if (rand::random::() % 100) <= agent_critch { [INFO] [stdout] 285 | (agent_attack as f64 * 0.9) as u32 [INFO] [stdout] 286 | + ((rand::random::() % ((agent_attack as f64 * 0.2) as u32))) [INFO] [stdout] 287 | }else{ [INFO] [stdout] ... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:310:5 [INFO] [stdout] | [INFO] [stdout] 310 | try!(calculate_stats(&player.attributes, &player.item, &mut player.stats)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread::sleep_ms; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:311:23 [INFO] [stdout] | [INFO] [stdout] 311 | let mut monster = try!(spawn_monster(level)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | sleep_ms(1000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:314:35 [INFO] [stdout] | [INFO] [stdout] 314 | let response: Vec = try!(prompt("command: ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:325:22 [INFO] [stdout] | [INFO] [stdout] 325 | try!(log(format!("Dealt {} damage!", player_damage))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:327:25 [INFO] [stdout] | [INFO] [stdout] 327 | try!(show_log()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:333:22 [INFO] [stdout] | [INFO] [stdout] 333 | try!(log(format!("You healed for {}", heal))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | try!(show_log()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | try!(log(format!("Took {} damage!", monster_damage))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:347:9 [INFO] [stdout] | [INFO] [stdout] 347 | try!(show_log()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:305:65 [INFO] [stdout] | [INFO] [stdout] 305 | fn battle(player: &mut Creature, level: u32) -> Result>{ [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::thread::sleep_ms; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | sleep_ms(1000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.77s [INFO] running `Command { std: "docker" "inspect" "3b43896d2ae44aea093c9c2facd31ae0894a326b162f23bc21529d14149089dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b43896d2ae44aea093c9c2facd31ae0894a326b162f23bc21529d14149089dc", kill_on_drop: false }` [INFO] [stdout] 3b43896d2ae44aea093c9c2facd31ae0894a326b162f23bc21529d14149089dc