[INFO] cloning repository https://github.com/betester/cses [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/betester/cses" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbetester%2Fcses", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbetester%2Fcses'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e60440e518be3083f384499feb9ee99e2a3b162 [INFO] checking betester/cses against master#64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbetester%2Fcses" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/betester/cses [INFO] finished tweaking git repo https://github.com/betester/cses [INFO] tweaked toml for git repo https://github.com/betester/cses written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/betester/cses on toolchain 64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/betester/cses 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" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c448ac0eeec6a1147d02ee1cab0aff7e5709dd9735616d858c1d800d3f8ead3 [INFO] running `Command { std: "docker" "start" "-a" "3c448ac0eeec6a1147d02ee1cab0aff7e5709dd9735616d858c1d800d3f8ead3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c448ac0eeec6a1147d02ee1cab0aff7e5709dd9735616d858c1d800d3f8ead3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c448ac0eeec6a1147d02ee1cab0aff7e5709dd9735616d858c1d800d3f8ead3", kill_on_drop: false }` [INFO] [stdout] 3c448ac0eeec6a1147d02ee1cab0aff7e5709dd9735616d858c1d800d3f8ead3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0243e074a753f68a6c299bc1054e78e2adc4d45a44093bf16e5714685ff4bac1 [INFO] running `Command { std: "docker" "start" "-a" "0243e074a753f68a6c299bc1054e78e2adc4d45a44093bf16e5714685ff4bac1", kill_on_drop: false }` [INFO] [stderr] Checking cses v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/search/apartments.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 14 | read_vec!(specs as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/search/ferris_wheel.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 14 | read_vec!(specs as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/search/apartments.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 14 | read_vec!(specs as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/search/ferris_wheel.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 14 | read_vec!(specs as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/subtree_query.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 62 | read_vec!(specs as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/subtree_query.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 73 | read_vec!(edge as usize); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/subtree_query.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 80 | read_vec!(query as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/search/apartments.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/search/distinct_number.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/search/ferris_wheel.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tree_height` is never used [INFO] [stdout] --> src/tree/company_query.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_tree_height(tree: &HashMap>, root: usize, prev: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_parent` is never used [INFO] [stdout] --> src/tree/company_query.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_parent(dp: &Vec>, i: usize, k: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/company_query.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn main(n: usize, bosses: Vec, queries: Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const MAX_SIZE: usize = 6; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_st` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn construct_st( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_st` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn query_st( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/counting_path.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/counting_path.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs_for_answer` is never used [INFO] [stdout] --> src/tree/counting_path.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn dfs_for_answer( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_st` is never used [INFO] [stdout] --> src/tree/counting_path.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn query_st( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_st` is never used [INFO] [stdout] --> src/tree/counting_path.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn create_st(st: &mut Vec>, array: &Vec, lb: usize, ub: usize, idx: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/counting_path.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/distance_query.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/distance_query.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_st` is never used [INFO] [stdout] --> src/tree/distance_query.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn query_st(st: &Vec, a: usize, b: usize, lb: usize, ub: usize, idx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_st` is never used [INFO] [stdout] --> src/tree/distance_query.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn create_st(st: &mut Vec, array: &Vec, lb: usize, ub: usize, idx: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/distance_query.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse` is never used [INFO] [stdout] --> src/tree/subordinates.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn traverse(employee_height: &mut Vec, graph: &HashMap>>, boss: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/subordinates.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn main(n: u32, subordinates: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_diameter.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs` is never used [INFO] [stdout] --> src/tree/tree_diameter.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn bfs(graph: &HashMap>, source: usize) -> (usize, usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_diameter.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn main(edges: Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tree_diamater` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn tree_diamater( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_child_distance` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn update_child_distance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn main(n: usize, edges: Vec<(usize, usize)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_distance_2.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_SIZE: usize = 6; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_node_distance` is never used [INFO] [stdout] --> src/tree/tree_distance_2.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn total_node_distance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_distance_2.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn main(edges: &Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_matching.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/tree_matching.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn dfs(dp: &mut [[u32; 2]], graph: &HashMap>, prev: usize, next: usize) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_matching.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn main(edges: Vec<(usize, usize)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/subtree_query.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 62 | read_vec!(specs as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/subtree_query.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 73 | read_vec!(edge as usize); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tree/subtree_query.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let mut $out = inner [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 80 | read_vec!(query as usize); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/search/apartments.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/search/distinct_number.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/search/ferris_wheel.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tree_height` is never used [INFO] [stdout] --> src/tree/company_query.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn get_tree_height(tree: &HashMap>, root: usize, prev: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_parent` is never used [INFO] [stdout] --> src/tree/company_query.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn find_parent(dp: &Vec>, i: usize, k: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/company_query.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn main(n: usize, bosses: Vec, queries: Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const MAX_SIZE: usize = 6; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_st` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn construct_st( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_st` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn query_st( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/company_query_2.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/counting_path.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/counting_path.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs_for_answer` is never used [INFO] [stdout] --> src/tree/counting_path.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn dfs_for_answer( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_st` is never used [INFO] [stdout] --> src/tree/counting_path.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn query_st( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_st` is never used [INFO] [stdout] --> src/tree/counting_path.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn create_st(st: &mut Vec>, array: &Vec, lb: usize, ub: usize, idx: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/counting_path.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/distance_query.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/distance_query.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn dfs( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `query_st` is never used [INFO] [stdout] --> src/tree/distance_query.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn query_st(st: &Vec, a: usize, b: usize, lb: usize, ub: usize, idx: usize) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_st` is never used [INFO] [stdout] --> src/tree/distance_query.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn create_st(st: &mut Vec, array: &Vec, lb: usize, ub: usize, idx: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/distance_query.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `traverse` is never used [INFO] [stdout] --> src/tree/subordinates.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn traverse(employee_height: &mut Vec, graph: &HashMap>>, boss: u32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/subordinates.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn main(n: u32, subordinates: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_diameter.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bfs` is never used [INFO] [stdout] --> src/tree/tree_diameter.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn bfs(graph: &HashMap>, source: usize) -> (usize, usize) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_diameter.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn main(edges: Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tree_diamater` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn tree_diamater( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_child_distance` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn update_child_distance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_distance.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn main(n: usize, edges: Vec<(usize, usize)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_distance_2.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_SIZE: usize = 6; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `total_node_distance` is never used [INFO] [stdout] --> src/tree/tree_distance_2.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn total_node_distance( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_distance_2.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn main(edges: &Vec>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/tree/tree_matching.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const MAX_SIZE: usize = 200001; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dfs` is never used [INFO] [stdout] --> src/tree/tree_matching.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn dfs(dp: &mut [[u32; 2]], graph: &HashMap>, prev: usize, next: usize) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/tree/tree_matching.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn main(edges: Vec<(usize, usize)>) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "0243e074a753f68a6c299bc1054e78e2adc4d45a44093bf16e5714685ff4bac1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0243e074a753f68a6c299bc1054e78e2adc4d45a44093bf16e5714685ff4bac1", kill_on_drop: false }` [INFO] [stdout] 0243e074a753f68a6c299bc1054e78e2adc4d45a44093bf16e5714685ff4bac1