[INFO] updating cached repository https://github.com/cheezgi/pet-sim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e6361ac055853107317b24caf3b6863ca86f262f [INFO] testing cheezgi/pet-sim against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcheezgi%2Fpet-sim" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cheezgi/pet-sim on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cheezgi/pet-sim [INFO] finished tweaking git repo https://github.com/cheezgi/pet-sim [INFO] tweaked toml for git repo https://github.com/cheezgi/pet-sim written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/cheezgi/pet-sim already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61cedd91e61222459b8ddd97bccbf666c34c300080c8b87f46047027be9d2ba7 [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" "61cedd91e61222459b8ddd97bccbf666c34c300080c8b87f46047027be9d2ba7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61cedd91e61222459b8ddd97bccbf666c34c300080c8b87f46047027be9d2ba7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61cedd91e61222459b8ddd97bccbf666c34c300080c8b87f46047027be9d2ba7", kill_on_drop: false }` [INFO] [stdout] 61cedd91e61222459b8ddd97bccbf666c34c300080c8b87f46047027be9d2ba7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c9d4682e0445c80c616afbbb6c31ee9600d66ba4c1fb39dcf7385741919baa8 [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" "9c9d4682e0445c80c616afbbb6c31ee9600d66ba4c1fb39dcf7385741919baa8", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling libc v0.2.24 [INFO] [stderr] Compiling itoa v0.3.1 [INFO] [stderr] Compiling num-traits v0.1.40 [INFO] [stderr] Compiling serde v1.0.11 [INFO] [stderr] Compiling dtoa v0.4.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Compiling serde_derive_internals v0.15.1 [INFO] [stderr] Compiling serde_derive v1.0.11 [INFO] [stderr] Compiling serde_json v1.0.2 [INFO] [stderr] Compiling pet-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | 1...24 => Amount::Little, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | 25...49 => Amount::Bit, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | 50...75 => Amount::Some, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 59 | (lhs as i16 + rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | (lhs as i16 - rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/pet.rs:141:45 [INFO] [stdout] | [INFO] [stdout] 141 | self.age = (self.age as i16 + 1i16).clamp(0, 255) as u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/pet.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | self.inventory.remove_item(item); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `story` [INFO] [stdout] --> src/player.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | story: (), // TODO: add story progress marker [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn game_loop(pet: &mut Pet, player: &mut Player) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.49s [INFO] running `Command { std: "docker" "inspect" "9c9d4682e0445c80c616afbbb6c31ee9600d66ba4c1fb39dcf7385741919baa8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c9d4682e0445c80c616afbbb6c31ee9600d66ba4c1fb39dcf7385741919baa8", kill_on_drop: false }` [INFO] [stdout] 9c9d4682e0445c80c616afbbb6c31ee9600d66ba4c1fb39dcf7385741919baa8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2089552e9affe1e2de74f05efff6596173cb303ada38e7fed522462b61cc2f47 [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" "2089552e9affe1e2de74f05efff6596173cb303ada38e7fed522462b61cc2f47", kill_on_drop: false }` [INFO] [stderr] Compiling pet-sim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | 1...24 => Amount::Little, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | 25...49 => Amount::Bit, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | 50...75 => Amount::Some, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 59 | (lhs as i16 + rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | (lhs as i16 - rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/pet.rs:141:45 [INFO] [stdout] | [INFO] [stdout] 141 | self.age = (self.age as i16 + 1i16).clamp(0, 255) as u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/pet.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | self.inventory.remove_item(item); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `story` [INFO] [stdout] --> src/player.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | story: (), // TODO: add story progress marker [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | 1...24 => Amount::Little, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | 25...49 => Amount::Bit, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/amt.rs:38:15 [INFO] [stdout] | [INFO] [stdout] 38 | 50...75 => Amount::Some, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:59:44 [INFO] [stdout] | [INFO] [stdout] 59 | (lhs as i16 + rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:63:44 [INFO] [stdout] | [INFO] [stdout] 63 | (lhs as i16 - rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:73:26 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(50, i.clamp(0, 100)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:79:27 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(100, i.clamp(0, 100)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/lib.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | assert_eq!(0, i.clamp(0, 100)); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a method with this name may be added to the standard library in the future [INFO] [stdout] --> src/pet.rs:141:45 [INFO] [stdout] | [INFO] [stdout] 141 | self.age = (self.age as i16 + 1i16).clamp(0, 255) as u8; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stdout] = note: for more information, see issue #48919 [INFO] [stdout] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stdout] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stdout] --> src/pet.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | self.inventory.remove_item(item); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/main.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn game_loop(pet: &mut Pet, player: &mut Player) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `story` [INFO] [stdout] --> src/player.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | story: (), // TODO: add story progress marker [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.44s [INFO] running `Command { std: "docker" "inspect" "2089552e9affe1e2de74f05efff6596173cb303ada38e7fed522462b61cc2f47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2089552e9affe1e2de74f05efff6596173cb303ada38e7fed522462b61cc2f47", kill_on_drop: false }` [INFO] [stdout] 2089552e9affe1e2de74f05efff6596173cb303ada38e7fed522462b61cc2f47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 86537c79f05c9f036111e471faaf6a51492ee00abb9bfe57c8d46c831cf31fdf [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" "86537c79f05c9f036111e471faaf6a51492ee00abb9bfe57c8d46c831cf31fdf", kill_on_drop: false }` [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/amt.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | 1...24 => Amount::Little, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/amt.rs:37:15 [INFO] [stderr] | [INFO] [stderr] 37 | 25...49 => Amount::Bit, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/amt.rs:38:15 [INFO] [stderr] | [INFO] [stderr] 38 | 50...75 => Amount::Some, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:59:44 [INFO] [stderr] | [INFO] [stderr] 59 | (lhs as i16 + rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:63:44 [INFO] [stderr] | [INFO] [stderr] 63 | (lhs as i16 - rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/amt.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | 1...24 => Amount::Little, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/amt.rs:37:15 [INFO] [stderr] | [INFO] [stderr] 37 | 25...49 => Amount::Bit, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/amt.rs:38:15 [INFO] [stderr] | [INFO] [stderr] 38 | 50...75 => Amount::Some, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/pet.rs:141:45 [INFO] [stderr] | [INFO] [stderr] 141 | self.age = (self.age as i16 + 1i16).clamp(0, 255) as u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:59:44 [INFO] [stderr] | [INFO] [stderr] 59 | (lhs as i16 + rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unstable_name_collisions)]` on by default [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stderr] --> src/pet.rs:195:28 [INFO] [stderr] | [INFO] [stderr] 195 | self.inventory.remove_item(item); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `story` [INFO] [stderr] --> src/player.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | story: (), // TODO: add story progress marker [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 8 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:63:44 [INFO] [stderr] | [INFO] [stderr] 63 | (lhs as i16 - rhs.scale(scale) as i16).clamp(0, 100) as u8 [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:73:26 [INFO] [stderr] | [INFO] [stderr] 73 | assert_eq!(50, i.clamp(0, 100)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:79:27 [INFO] [stderr] | [INFO] [stderr] 79 | assert_eq!(100, i.clamp(0, 100)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/lib.rs:85:25 [INFO] [stderr] | [INFO] [stderr] 85 | assert_eq!(0, i.clamp(0, 100)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player` [INFO] [stderr] --> src/main.rs:33:29 [INFO] [stderr] | [INFO] [stderr] 33 | fn game_loop(pet: &mut Pet, player: &mut Player) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: a method with this name may be added to the standard library in the future [INFO] [stderr] --> src/pet.rs:141:45 [INFO] [stderr] | [INFO] [stderr] 141 | self.age = (self.age as i16 + 1i16).clamp(0, 255) as u8; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior! [INFO] [stderr] = note: for more information, see issue #48919 [INFO] [stderr] = help: call with fully qualified syntax `clamp::Clamp::clamp(...)` to keep using the current method [INFO] [stderr] = help: add `#![feature(clamp)]` to the crate attributes to enable `std::cmp::Ord::clamp` [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::vec::Vec::::remove_item': Removing the first item equal to a needle is already easily possible with iterators and the current Vec methods. Furthermore, having a method for one particular case of removal (linear search, only the first item, no swap remove) but not for others is inconsistent. This method will be removed soon. [INFO] [stderr] --> src/pet.rs:195:28 [INFO] [stderr] | [INFO] [stderr] 195 | self.inventory.remove_item(item); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `story` [INFO] [stderr] --> src/player.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | story: (), // TODO: add story progress marker [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 11 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/pet_sim-763252d3cd5b6ca9 [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test test::clamp_above_returns_upper ... ok [INFO] [stdout] test test::clamp_below_returns_lower ... ok [INFO] [stdout] test test::clamp_between_returns_self ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Running /opt/rustwide/target/debug/deps/pet_sim-cac6e35c61eb5fa9 [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests pet-sim [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/amt.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | 1...24 => Amount::Little, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/amt.rs:37:15 [INFO] [stderr] | [INFO] [stderr] 37 | 25...49 => Amount::Bit, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> /opt/rustwide/workdir/src/amt.rs:38:15 [INFO] [stderr] | [INFO] [stderr] 38 | 50...75 => Amount::Some, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: 3 warnings emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "86537c79f05c9f036111e471faaf6a51492ee00abb9bfe57c8d46c831cf31fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86537c79f05c9f036111e471faaf6a51492ee00abb9bfe57c8d46c831cf31fdf", kill_on_drop: false }` [INFO] [stdout] 86537c79f05c9f036111e471faaf6a51492ee00abb9bfe57c8d46c831cf31fdf