[INFO] fetching crate hco 0.0.0... [INFO] checking hco-0.0.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate hco 0.0.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate hco 0.0.0 [INFO] finished tweaking crates.io crate hco 0.0.0 [INFO] tweaked toml for crates.io crate hco 0.0.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hco 0.0.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hco 0.0.0 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9901cd6de64daa9792f2a6cd8f0135f4213f5e9ff3b14403459a14b59a04b5aa [INFO] running `Command { std: "docker" "start" "-a" "9901cd6de64daa9792f2a6cd8f0135f4213f5e9ff3b14403459a14b59a04b5aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9901cd6de64daa9792f2a6cd8f0135f4213f5e9ff3b14403459a14b59a04b5aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9901cd6de64daa9792f2a6cd8f0135f4213f5e9ff3b14403459a14b59a04b5aa", kill_on_drop: false }` [INFO] [stdout] 9901cd6de64daa9792f2a6cd8f0135f4213f5e9ff3b14403459a14b59a04b5aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55a1abe3ca28a6753469c952d0b9a010625ec66c35c4175be6ae60fd042f79db [INFO] running `Command { std: "docker" "start" "-a" "55a1abe3ca28a6753469c952d0b9a010625ec66c35c4175be6ae60fd042f79db", kill_on_drop: false }` [INFO] [stderr] Checking hco v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/math/interval.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | if(b>a){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if(b>a){ [INFO] [stdout] 18 + if b>a { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | if(self.left_open()){*value>self.lf }else{*value>=self.lf }//check left [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - if(self.left_open()){*value>self.lf }else{*value>=self.lf }//check left [INFO] [stdout] 25 + if self.left_open() {*value>self.lf }else{*value>=self.lf }//check left [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | if(self.right_open()){*value src/math/interval.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | if(self.left_open()||other.right_open()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if(self.left_open()||other.right_open()){ [INFO] [stdout] 32 + if self.left_open()||other.right_open() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | }&&if(self.right_open()||other.left_open()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - }&&if(self.right_open()||other.left_open()){ [INFO] [stdout] 36 + }&&if self.right_open()||other.left_open() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Range` [INFO] [stdout] --> src/math/interval.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Range; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | if(b>a){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - if(b>a){ [INFO] [stdout] 18 + if b>a { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | if(self.left_open()){*value>self.lf }else{*value>=self.lf }//check left [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - if(self.left_open()){*value>self.lf }else{*value>=self.lf }//check left [INFO] [stdout] 25 + if self.left_open() {*value>self.lf }else{*value>=self.lf }//check left [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | if(self.right_open()){*value src/math/interval.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | if(self.left_open()||other.right_open()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - if(self.left_open()||other.right_open()){ [INFO] [stdout] 32 + if self.left_open()||other.right_open() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/math/interval.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | }&&if(self.right_open()||other.left_open()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - }&&if(self.right_open()||other.left_open()){ [INFO] [stdout] 36 + }&&if self.right_open()||other.left_open() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/math/fraction.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/fraction.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl Fraction { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub const fn new(numerator: i64, denominator: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn numerator(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn denominator(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn abs(&self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn negate(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn subtract(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn multiply(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn divide(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn to_f64(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn to_i64(&self) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interval` is never constructed [INFO] [stdout] --> src/math/interval.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Intervalwhere T:PartialOrd{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `contain`, `left_open`, `right_open`, and `is_overlap` are never used [INFO] [stdout] --> src/math/interval.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Interval where T:PartialOrd{ [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn new(a:T,b:T,left_open:bool,right_open:bool)->Interval{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn contain(&self,value:&T)->bool{( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn left_open(&self) -> bool{self.flag.left_open()} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub fn right_open(&self) -> bool{self.flag.right_open()} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | pub fn is_overlap(&self,other:&Interval)->bool{( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntervalFlag` is never constructed [INFO] [stdout] --> src/math/interval.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct IntervalFlag{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `left_open`, and `right_open` are never used [INFO] [stdout] --> src/math/interval.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl IntervalFlag{ [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 47 | pub fn new(left_open:bool, right_open:bool)->IntervalFlag{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn left_open(&self)->bool{self.state&0b00000010!=0} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | pub fn right_open(&self)->bool{self.state&0b00000001!=0} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd_stein` is never used [INFO] [stdout] --> src/math/math.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | pub const fn gcd_stein(mut a: i64, mut b: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_bit` is never used [INFO] [stdout] --> src/math/math.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn get_bit(value: T, index: usize) -> bool [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fraction` is never constructed [INFO] [stdout] --> src/math/fraction.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Fraction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/math/fraction.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl Fraction { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 11 | pub const fn new(numerator: i64, denominator: i64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn numerator(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn denominator(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn abs(&self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn negate(&self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn add(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn subtract(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn multiply(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn divide(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn to_f64(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn to_i64(&self) -> i64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interval` is never constructed [INFO] [stdout] --> src/math/interval.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Intervalwhere T:PartialOrd{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `contain`, `left_open`, `right_open`, and `is_overlap` are never used [INFO] [stdout] --> src/math/interval.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Interval where T:PartialOrd{ [INFO] [stdout] | -------------------------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 12 | pub fn new(a:T,b:T,left_open:bool,right_open:bool)->Interval{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn contain(&self,value:&T)->bool{( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn left_open(&self) -> bool{self.flag.left_open()} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | pub fn right_open(&self) -> bool{self.flag.right_open()} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 31 | pub fn is_overlap(&self,other:&Interval)->bool{( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IntervalFlag` is never constructed [INFO] [stdout] --> src/math/interval.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct IntervalFlag{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `left_open`, and `right_open` are never used [INFO] [stdout] --> src/math/interval.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl IntervalFlag{ [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 47 | pub fn new(left_open:bool, right_open:bool)->IntervalFlag{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn left_open(&self)->bool{self.state&0b00000010!=0} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | pub fn right_open(&self)->bool{self.state&0b00000001!=0} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gcd_stein` is never used [INFO] [stdout] --> src/math/math.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | pub const fn gcd_stein(mut a: i64, mut b: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_bit` is never used [INFO] [stdout] --> src/math/math.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn get_bit(value: T, index: usize) -> bool [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "55a1abe3ca28a6753469c952d0b9a010625ec66c35c4175be6ae60fd042f79db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55a1abe3ca28a6753469c952d0b9a010625ec66c35c4175be6ae60fd042f79db", kill_on_drop: false }` [INFO] [stdout] 55a1abe3ca28a6753469c952d0b9a010625ec66c35c4175be6ae60fd042f79db