[INFO] updating cached repository https://github.com/zeerorg/A-I-Rust [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] 712666ec65c352fffb65ed245fd47a3dea07b90a [INFO] testing zeerorg/A-I-Rust against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzeerorg%2FA-I-Rust" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zeerorg/A-I-Rust on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zeerorg/A-I-Rust [INFO] finished tweaking git repo https://github.com/zeerorg/A-I-Rust [INFO] tweaked toml for git repo https://github.com/zeerorg/A-I-Rust written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/zeerorg/A-I-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 508a91b837b175b9c171ab10d5a69c29eb0504a0b392d13464dcf6d0f35b483b [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" "508a91b837b175b9c171ab10d5a69c29eb0504a0b392d13464dcf6d0f35b483b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "508a91b837b175b9c171ab10d5a69c29eb0504a0b392d13464dcf6d0f35b483b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "508a91b837b175b9c171ab10d5a69c29eb0504a0b392d13464dcf6d0f35b483b", kill_on_drop: false }` [INFO] [stdout] 508a91b837b175b9c171ab10d5a69c29eb0504a0b392d13464dcf6d0f35b483b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bdc0c357a51dbe450ef4fe2b61dd79d4f389a1c265b395d5588837619a160f91 [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" "bdc0c357a51dbe450ef4fe2b61dd79d4f389a1c265b395d5588837619a160f91", kill_on_drop: false }` [INFO] [stderr] Compiling artificial_intelligence v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfs.rs:5:84 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfs.rs:5:117 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/bfs.rs:5:84 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/bfs.rs:5:117 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:6:85 [INFO] [stdout] | [INFO] [stdout] 6 | ...e + Display> (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:6:119 [INFO] [stdout] | [INFO] [stdout] 6 | ...unction: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:24:86 [INFO] [stdout] | [INFO] [stdout] 24 | ...e + Display> (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_depth: i32) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:24:120 [INFO] [stdout] | [INFO] [stdout] 24 | ...unction: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_depth: i32) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs` [INFO] [stdout] --> src/algo/dfs.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bfs` [INFO] [stdout] --> src/algo/bfs.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfid` [INFO] [stdout] --> src/algo/dfid.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn dfid (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bo... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dfs_depth` [INFO] [stdout] --> src/algo/dfid.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn dfs_depth (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `start_game` [INFO] [stdout] --> src/algo/tic_tac_toe_algo.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn start_game() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/problems/water_jug.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(jug_a: i32, jug_b: i32, max_a: i32, max_b: i32) -> Jugs { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fill_a` [INFO] [stdout] --> src/problems/water_jug.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn fill_a(jugs: &Jugs) -> Jugs { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fill_b` [INFO] [stdout] --> src/problems/water_jug.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn fill_b(jugs: &Jugs) -> Jugs { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty_a` [INFO] [stdout] --> src/problems/water_jug.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn empty_a(jugs: &Jugs) -> Jugs { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `empty_b` [INFO] [stdout] --> src/problems/water_jug.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn empty_b(jugs: &Jugs) -> Jugs { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trn_a_to_b` [INFO] [stdout] --> src/problems/water_jug.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn trn_a_to_b(jugs: &Jugs) -> Jugs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `trn_b_to_a` [INFO] [stdout] --> src/problems/water_jug.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn trn_b_to_a(jugs: &Jugs) -> Jugs { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/problems/eight_puzz.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(puzzle: [[i32; 3] ; 3]) -> Puzzle { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_up` [INFO] [stdout] --> src/problems/eight_puzz.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn from_up(x: &Puzzle) -> Puzzle { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_down` [INFO] [stdout] --> src/problems/eight_puzz.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn from_down(x: &Puzzle) -> Puzzle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_left` [INFO] [stdout] --> src/problems/eight_puzz.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn from_left(x: &Puzzle) -> Puzzle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_right` [INFO] [stdout] --> src/problems/eight_puzz.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn from_right(x: &Puzzle) -> Puzzle { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blank` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Blank = 2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `X` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | X = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `O` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | O = 5 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_2` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn make_2(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `poss_win` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn poss_win(&self, p: Moves) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `go` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn go(&mut self, pos: &i32, mv: Moves) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_blank` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | fn get_blank(&self, positions: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_product` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn get_product(&self, positions: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `NodeDepth` [INFO] [stdout] --> src/helper/node.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct NodeDepth { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/helper/node.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(data: T, depth: i32) -> NodeDepth { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.89s [INFO] running `Command { std: "docker" "inspect" "bdc0c357a51dbe450ef4fe2b61dd79d4f389a1c265b395d5588837619a160f91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdc0c357a51dbe450ef4fe2b61dd79d4f389a1c265b395d5588837619a160f91", kill_on_drop: false }` [INFO] [stdout] bdc0c357a51dbe450ef4fe2b61dd79d4f389a1c265b395d5588837619a160f91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de3040f5f8b82a2d8bc10c3be3a1a79fda9cee504c4286acbd4e827251bf2b0b [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" "de3040f5f8b82a2d8bc10c3be3a1a79fda9cee504c4286acbd4e827251bf2b0b", kill_on_drop: false }` [INFO] [stderr] Compiling artificial_intelligence v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfs.rs:5:84 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfs.rs:5:117 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/bfs.rs:5:84 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/bfs.rs:5:117 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:6:85 [INFO] [stdout] | [INFO] [stdout] 6 | ...e + Display> (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:6:119 [INFO] [stdout] | [INFO] [stdout] 6 | ...unction: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:24:86 [INFO] [stdout] | [INFO] [stdout] 24 | ...e + Display> (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_depth: i32) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/algo/dfid.rs:24:120 [INFO] [stdout] | [INFO] [stdout] 24 | ...unction: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_depth: i32) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `start_game` [INFO] [stdout] --> src/algo/tic_tac_toe_algo.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn start_game() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blank` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | Blank = 2, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `X` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | X = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `O` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | O = 5 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new() -> Board { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `make_2` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn make_2(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `poss_win` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn poss_win(&self, p: Moves) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `go` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn go(&mut self, pos: &i32, mv: Moves) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_blank` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | fn get_blank(&self, positions: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_product` [INFO] [stdout] --> src/problems/tic_tac_toe.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn get_product(&self, positions: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.04s [INFO] running `Command { std: "docker" "inspect" "de3040f5f8b82a2d8bc10c3be3a1a79fda9cee504c4286acbd4e827251bf2b0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de3040f5f8b82a2d8bc10c3be3a1a79fda9cee504c4286acbd4e827251bf2b0b", kill_on_drop: false }` [INFO] [stdout] de3040f5f8b82a2d8bc10c3be3a1a79fda9cee504c4286acbd4e827251bf2b0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 069bb1461f6094a16e57e22851cf5ba5889f9885a1102b309761b466362e0904 [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" "069bb1461f6094a16e57e22851cf5ba5889f9885a1102b309761b466362e0904", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/dfs.rs:5:84 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/dfs.rs:5:117 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn dfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/bfs.rs:5:84 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/bfs.rs:5:117 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn bfs (start: &T, goal_function: &Fn(&T) -> bool, _functions: Vec<&Fn(&T) -> T>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/dfid.rs:6:85 [INFO] [stderr] | [INFO] [stderr] 6 | ...e + Display> (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/dfid.rs:6:119 [INFO] [stderr] | [INFO] [stderr] 6 | ...unction: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/dfid.rs:24:86 [INFO] [stderr] | [INFO] [stderr] 24 | ...e + Display> (start: &T, goal_function: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_depth: i32) -> (bool, i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> bool` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/algo/dfid.rs:24:120 [INFO] [stderr] | [INFO] [stderr] 24 | ...unction: &Fn(&T) -> bool, _functions: &Vec<&Fn(&T) -> T>, max_depth: i32) -> (bool, i32) { [INFO] [stderr] | ^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&T) -> T` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `start_game` [INFO] [stderr] --> src/algo/tic_tac_toe_algo.rs:4:4 [INFO] [stderr] | [INFO] [stderr] 4 | fn start_game() -> i32 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Blank` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Blank = 2, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `X` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | X = 3, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `O` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | O = 5 [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn new() -> Board { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `make_2` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn make_2(&self) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `poss_win` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:58:12 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn poss_win(&self, p: Moves) -> i32 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `go` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn go(&mut self, pos: &i32, mv: Moves) { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_blank` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:93:8 [INFO] [stderr] | [INFO] [stderr] 93 | fn get_blank(&self, positions: &[i32]) -> i32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_product` [INFO] [stderr] --> src/problems/tic_tac_toe.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | fn get_product(&self, positions: &[i32]) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 18 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/artificial_intelligence-3e06ec58811c6450 [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test algo::dfid::tests::dfid_neq_test ... ok [INFO] [stdout] test algo::dfid::tests::dfid_test ... ok [INFO] [stdout] test algo::bfs::tests::bfs_jug_test ... ok [INFO] [stdout] test problems::water_jug::tests::trn_test ... ok [INFO] [stdout] test problems::eight_puzz::tests::move_test ... ok [INFO] [stdout] test problems::water_jug::tests::fill_test ... ok [INFO] [stdout] test problems::water_jug::tests::empty_test ... ok [INFO] [stdout] test algo::dfs::tests::dfs_test ... ok [INFO] [stdout] test algo::dfs::tests::dfs_neq_test ... ok [INFO] [stdout] test algo::dfs::tests::dfs_8puzz_test ... ok [INFO] [stdout] test algo::bfs::tests::bfs_8puzz_test ... ok [INFO] [stdout] test algo::dfid::tests::dfid_8puzz_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "069bb1461f6094a16e57e22851cf5ba5889f9885a1102b309761b466362e0904", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "069bb1461f6094a16e57e22851cf5ba5889f9885a1102b309761b466362e0904", kill_on_drop: false }` [INFO] [stdout] 069bb1461f6094a16e57e22851cf5ba5889f9885a1102b309761b466362e0904