[INFO] fetching crate math-commons 0.1.0... [INFO] checking math-commons-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate math-commons 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate math-commons 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate math-commons 0.1.0 [INFO] finished tweaking crates.io crate math-commons 0.1.0 [INFO] tweaked toml for crates.io crate math-commons 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1206c903ce5615886237145ef6d76327c904810829e46773c291f97ba5bf16be [INFO] running `Command { std: "docker" "start" "-a" "1206c903ce5615886237145ef6d76327c904810829e46773c291f97ba5bf16be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1206c903ce5615886237145ef6d76327c904810829e46773c291f97ba5bf16be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1206c903ce5615886237145ef6d76327c904810829e46773c291f97ba5bf16be", kill_on_drop: false }` [INFO] [stdout] 1206c903ce5615886237145ef6d76327c904810829e46773c291f97ba5bf16be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf165fffb17b1a2968d6fcb2eb9a1df99ba42640131f21c1d33762298a6460c3 [INFO] running `Command { std: "docker" "start" "-a" "bf165fffb17b1a2968d6fcb2eb9a1df99ba42640131f21c1d33762298a6460c3", kill_on_drop: false }` [INFO] [stderr] Checking math-commons v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::fractions::Fraction` [INFO] [stdout] --> src/percentajes/tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::fractions::Fraction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `calc_part`, `calc_percentage`, `calc_proportion_value`, `calc_total`, `is_directly_proportional`, `is_proportion`, `percentage_in_decimal`, and `percentage_of` [INFO] [stdout] --> src/percentajes/tests.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | ...::{calc_part, calc_percentage, calc_proportion_value, calc_total, is_directly_proportional, is_proportion, percentage_in_decimal, percentage_o... [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/fractions/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ( self.a.is_none() || self.b.is_none() ) [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - ( self.a.is_none() || self.b.is_none() ) [INFO] [stdout] 25 + self.a.is_none() || self.b.is_none() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/fractions/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | ( self.a.is_none() || self.b.is_none() ) [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - ( self.a.is_none() || self.b.is_none() ) [INFO] [stdout] 25 + self.a.is_none() || self.b.is_none() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_proportion` is never used [INFO] [stdout] --> src/percentajes/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn is_proportion(f1: Fraction, f2: Fraction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_proportion_value` is never used [INFO] [stdout] --> src/percentajes/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn calc_proportion_value(f1: Fraction, f2: Fraction) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_directly_proportional` is never used [INFO] [stdout] --> src/percentajes/mod.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn is_directly_proportional(fractions: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percentage_in_decimal` is never used [INFO] [stdout] --> src/percentajes/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn percentage_in_decimal(percentage: u16) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `percentage_of` is never used [INFO] [stdout] --> src/percentajes/mod.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn percentage_of(percentage: u16, num: u16) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_part` is never used [INFO] [stdout] --> src/percentajes/mod.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn calc_part(percentage: u16, total: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_percentage` is never used [INFO] [stdout] --> src/percentajes/mod.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn calc_percentage(total: u16, part: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_total` is never used [INFO] [stdout] --> src/percentajes/mod.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn calc_total(part: u16, percentage: u16) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/fractions/mod.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `calculate`, `get_a`, `get_b`, and `has_x` are never used [INFO] [stdout] --> src/fractions/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Fraction { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(a: Option, b: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn calculate(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_a(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn get_b(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn has_x(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] running `Command { std: "docker" "inspect" "bf165fffb17b1a2968d6fcb2eb9a1df99ba42640131f21c1d33762298a6460c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf165fffb17b1a2968d6fcb2eb9a1df99ba42640131f21c1d33762298a6460c3", kill_on_drop: false }` [INFO] [stdout] bf165fffb17b1a2968d6fcb2eb9a1df99ba42640131f21c1d33762298a6460c3