[INFO] cloning repository https://github.com/jrcichra/crush [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jrcichra/crush" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjrcichra%2Fcrush", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjrcichra%2Fcrush'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eb03283f9bdf897c6d36795bd07401c45f45c38d [INFO] checking jrcichra/crush against try#c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6 for pr-145463 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjrcichra%2Fcrush" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jrcichra/crush [INFO] finished tweaking git repo https://github.com/jrcichra/crush [INFO] tweaked toml for git repo https://github.com/jrcichra/crush written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jrcichra/crush on toolchain c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jrcichra/crush 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" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba96b0e1b37cc5e0792422a8a7ce9f8ec60f2b7660ccb64bf7d9458ce5278457 [INFO] running `Command { std: "docker" "start" "-a" "ba96b0e1b37cc5e0792422a8a7ce9f8ec60f2b7660ccb64bf7d9458ce5278457", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba96b0e1b37cc5e0792422a8a7ce9f8ec60f2b7660ccb64bf7d9458ce5278457", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba96b0e1b37cc5e0792422a8a7ce9f8ec60f2b7660ccb64bf7d9458ce5278457", kill_on_drop: false }` [INFO] [stdout] ba96b0e1b37cc5e0792422a8a7ce9f8ec60f2b7660ccb64bf7d9458ce5278457 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c6f1a85c8f06c93ddc6200caf413929a2e7e7dd6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c829dc43a051080213fd018b80d6122c6433736763d326bc2dfe89698e732f42 [INFO] running `Command { std: "docker" "start" "-a" "c829dc43a051080213fd018b80d6122c6433736763d326bc2dfe89698e732f42", kill_on_drop: false }` [INFO] [stderr] Checking crush v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `Node` is more private than the item `Crush::get_osds` [INFO] [stdout] --> src/crush/crush.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn get_osds(&self, node: &Node) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Crush::get_osds` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/crush/crush.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Crush` is never constructed [INFO] [stdout] --> src/crush/crush.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Crush { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/crush/crush.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_power_of_2` is never used [INFO] [stdout] --> src/crush/crush.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn find_next_power_of_2(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/crush/crush.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Crush { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 41 | /// Add weight to a node. [INFO] [stdout] 42 | pub fn add_weight(&mut self, path: &str, weight: i64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn locate(&self, pgid: u32) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_osds(&self, node: &Node) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_recommended_pgs(&self, replicas: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn locate_all(&self, pgid: u32, replicas: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn total_weight(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn get_weight(&self, path: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn set_inout(&mut self, path: &str, out: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn get_inout(&self, path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn get_node_by_path(&self, path: &str) -> &Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn select(&self, pgid: u32, num: u32, start_path: &str) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_weight`, `get`, `get_mut`, and `choose` are never used [INFO] [stdout] --> src/crush/crush.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl Node { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 159 | /// Add weight to a node. [INFO] [stdout] 160 | fn add_weight(&mut self, path: &str, weight: i64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn get(&self, path: &str) -> &Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn get_mut(&mut self, path: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn choose(&self, key: u32, index: u32) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Node` is more private than the item `crush::crush::Crush::get_osds` [INFO] [stdout] --> src/crush/crush.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn get_osds(&self, node: &Node) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `crush::crush::Crush::get_osds` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/crush/crush.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `locate`, `total_weight`, `get_weight`, `set_inout`, and `get_inout` are never used [INFO] [stdout] --> src/crush/crush.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Crush { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn locate(&self, pgid: u32) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn total_weight(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn get_weight(&self, path: &str) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn set_inout(&mut self, path: &str, out: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn get_inout(&self, path: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_mut` is never used [INFO] [stdout] --> src/crush/crush.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 158 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn get_mut(&mut self, path: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "c829dc43a051080213fd018b80d6122c6433736763d326bc2dfe89698e732f42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c829dc43a051080213fd018b80d6122c6433736763d326bc2dfe89698e732f42", kill_on_drop: false }` [INFO] [stdout] c829dc43a051080213fd018b80d6122c6433736763d326bc2dfe89698e732f42