[INFO] cloning repository https://github.com/maxastyler/unit-conversion [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maxastyler/unit-conversion" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxastyler%2Funit-conversion", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxastyler%2Funit-conversion'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 115db73ee4cfe2106ff66c614ef63c6c09181053 [INFO] checking maxastyler/unit-conversion against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaxastyler%2Funit-conversion" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/maxastyler/unit-conversion on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/maxastyler/unit-conversion [INFO] finished tweaking git repo https://github.com/maxastyler/unit-conversion [INFO] tweaked toml for git repo https://github.com/maxastyler/unit-conversion written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/maxastyler/unit-conversion already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a17d5ddb2f4b38e177b5df95ec768f25bd2eea1dcc99ac8d1a96d7ab6caed1fe [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" "a17d5ddb2f4b38e177b5df95ec768f25bd2eea1dcc99ac8d1a96d7ab6caed1fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a17d5ddb2f4b38e177b5df95ec768f25bd2eea1dcc99ac8d1a96d7ab6caed1fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a17d5ddb2f4b38e177b5df95ec768f25bd2eea1dcc99ac8d1a96d7ab6caed1fe", kill_on_drop: false }` [INFO] [stdout] a17d5ddb2f4b38e177b5df95ec768f25bd2eea1dcc99ac8d1a96d7ab6caed1fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62df0c7bc7d04c7f765216479adcd6ee56a3827980729bd54828238422acff09 [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" "62df0c7bc7d04c7f765216479adcd6ee56a3827980729bd54828238422acff09", kill_on_drop: false }` [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking unit-conversion v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | let mut file = try!(File::open(file_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | try!(file.read_to_string(&mut f_s)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | /// Get a number from an array of u8 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | /// Match a set of lines and return a vector of tuples containing the indentation and the text [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/unit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/unit.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/unit.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `be_i32` [INFO] [stdout] --> src/parser.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{digit, be_i32, double, alpha, rest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/parser.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | use nom::IResult::{Done, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/parser.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | use nom::IResult::{Done, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | let mut file = try!(File::open(file_path)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | try!(file.read_to_string(&mut f_s)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | /// Get a number from an array of u8 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/parser.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | /// Match a set of lines and return a vector of tuples containing the indentation and the text [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/unit.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/unit.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/unit.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `be_i32` [INFO] [stdout] --> src/parser.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{digit, be_i32, double, alpha, rest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/parser.rs:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | use nom::IResult::{Done, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mul` [INFO] [stdout] --> src/unit.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Div` [INFO] [stdout] --> src/unit.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mul` [INFO] [stdout] --> src/unit.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Div` [INFO] [stdout] --> src/unit.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::{Mul, Div}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/unit.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | Some(u) => { for j in 0..i.abs() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/unit.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | Some(u) => { for j in 0..i.abs() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `matches` [INFO] [stdout] --> src/dimension.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn matches(&self, other: &Dimension) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/dimension.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn add(&self, other: &Dimension) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub` [INFO] [stdout] --> src/dimension.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn sub(&self, other: &Dimension) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pow` [INFO] [stdout] --> src/dimension.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn pow(&self, power: i32) -> Dimension { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `root` [INFO] [stdout] --> src/dimension.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn root(&self, root: i32) -> Dimension { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/quantity.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn add(&self, other: Quantity) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub` [INFO] [stdout] --> src/quantity.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn sub(&self, other: Quantity) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mul` [INFO] [stdout] --> src/quantity.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn mul(&self, other: Quantity) -> Quantity { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `div` [INFO] [stdout] --> src/quantity.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn div(&self, other: Quantity) -> Quantity { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pow` [INFO] [stdout] --> src/unit.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn pow(&self, power: i32) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `root` [INFO] [stdout] --> src/unit.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn root(&self, root: i32) -> Unit { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `matches` [INFO] [stdout] --> src/dimension.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn matches(&self, other: &Dimension) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/dimension.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn add(&self, other: &Dimension) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub` [INFO] [stdout] --> src/dimension.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn sub(&self, other: &Dimension) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pow` [INFO] [stdout] --> src/dimension.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn pow(&self, power: i32) -> Dimension { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `root` [INFO] [stdout] --> src/dimension.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn root(&self, root: i32) -> Dimension { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/quantity.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn add(&self, other: Quantity) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub` [INFO] [stdout] --> src/quantity.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn sub(&self, other: Quantity) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mul` [INFO] [stdout] --> src/quantity.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn mul(&self, other: Quantity) -> Quantity { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `div` [INFO] [stdout] --> src/quantity.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn div(&self, other: Quantity) -> Quantity { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pow` [INFO] [stdout] --> src/unit.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn pow(&self, power: i32) -> Unit { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `root` [INFO] [stdout] --> src/unit.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn root(&self, root: i32) -> Unit { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.80s [INFO] running `Command { std: "docker" "inspect" "62df0c7bc7d04c7f765216479adcd6ee56a3827980729bd54828238422acff09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62df0c7bc7d04c7f765216479adcd6ee56a3827980729bd54828238422acff09", kill_on_drop: false }` [INFO] [stdout] 62df0c7bc7d04c7f765216479adcd6ee56a3827980729bd54828238422acff09