[INFO] cloning repository https://github.com/Qbius/rust-categories [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Qbius/rust-categories" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQbius%2Frust-categories", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQbius%2Frust-categories'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb268c92a8fb95313887069409faea016d0210fe [INFO] checking Qbius/rust-categories/fb268c92a8fb95313887069409faea016d0210fe against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQbius%2Frust-categories" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Qbius/rust-categories on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Qbius/rust-categories [INFO] finished tweaking git repo https://github.com/Qbius/rust-categories [INFO] tweaked toml for git repo https://github.com/Qbius/rust-categories written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Qbius/rust-categories 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07513c801a567b05db09adaaa403f97508de952d5d11f8a6864d4379b5efef01 [INFO] running `Command { std: "docker" "start" "-a" "07513c801a567b05db09adaaa403f97508de952d5d11f8a6864d4379b5efef01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07513c801a567b05db09adaaa403f97508de952d5d11f8a6864d4379b5efef01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07513c801a567b05db09adaaa403f97508de952d5d11f8a6864d4379b5efef01", kill_on_drop: false }` [INFO] [stdout] 07513c801a567b05db09adaaa403f97508de952d5d11f8a6864d4379b5efef01 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4ae61c1be1754298e5f755deba21b2d151aa6907b05318b55ac6c414b8e9184 [INFO] running `Command { std: "docker" "start" "-a" "a4ae61c1be1754298e5f755deba21b2d151aa6907b05318b55ac6c414b8e9184", kill_on_drop: false }` [INFO] [stderr] Checking rust-categories v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `compose`, `f`, `g`, `h`, and `id` [INFO] [stdout] --> src/functors.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::futils::{f, g, h, compose, id}; [INFO] [stdout] | ^ ^ ^ ^^^^^^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compose` is never used [INFO] [stdout] --> src/futils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn compose(f2: F2, f1: F1) -> impl Fn(A) -> C [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `id` is never used [INFO] [stdout] --> src/futils.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn id(o: T) -> T { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `h` is never used [INFO] [stdout] --> src/futils.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn h(n: i32) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `g` is never used [INFO] [stdout] --> src/futils.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn g(n: i32) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f` is never used [INFO] [stdout] --> src/futils.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn f(n: i32) -> i32 { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Writer` is never used [INFO] [stdout] --> src/writer.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | type Writer = (T, String); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_upper` is never used [INFO] [stdout] --> src/writer.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn to_upper(s: &String) -> Writer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `words` is never used [INFO] [stdout] --> src/writer.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn words(s: &String) -> Writer> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Procedural` is never constructed [INFO] [stdout] --> src/writer.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Procedural { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `then` is never used [INFO] [stdout] --> src/writer.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Procedural { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 17 | fn then(self, f: impl Fn(&A) -> Writer) -> Procedural { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `proc` is never used [INFO] [stdout] --> src/writer.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn proc(base: A) -> Procedural { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_compose` is never used [INFO] [stdout] --> src/optional.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn opt_compose(f2: impl Fn(B) -> Option, f1: impl Fn(A) -> Option) -> impl Fn(A) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_identity` is never used [INFO] [stdout] --> src/optional.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn opt_identity(obj: A) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_root` is never used [INFO] [stdout] --> src/optional.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn safe_root(a: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `safe_reciprocal` is never used [INFO] [stdout] --> src/optional.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn safe_reciprocal(a: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `threedec` is never used [INFO] [stdout] --> src/optional.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn threedec(a: f64) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Either` is never used [INFO] [stdout] --> src/swap.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Either { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Maybe` is never used [INFO] [stdout] --> src/swap.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type Maybe = Either<(), A>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `either_to_option` is never used [INFO] [stdout] --> src/swap.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn either_to_option(e: Maybe) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_to_either` is never used [INFO] [stdout] --> src/swap.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn option_to_either(o: Option) -> Maybe { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swap` is never used [INFO] [stdout] --> src/swap.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn swap((a, b): (A, B)) -> (B, A) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/swap.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Pair(A, B); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Element` is never constructed [INFO] [stdout] --> src/swap.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Element { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_tuple` and `to_tuple` are never used [INFO] [stdout] --> src/swap.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Element { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 35 | fn from_tuple((name, symbol, atomic_number): (String, String, u8)) -> Element { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn to_tuple(self) -> (String, String, u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/swap.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `cons` and `to_string` are never used [INFO] [stdout] --> src/swap.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl List { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 55 | fn cons(head: A, tail: List) -> List { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn to_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> src/swap.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 67 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area` and `circ` are never used [INFO] [stdout] --> src/swap.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Shape { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 75 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn circ(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fmap` is never used [INFO] [stdout] --> src/functors.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn fmap(f: impl Fn(A) -> B) -> impl Fn(Option) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Either` is never used [INFO] [stdout] --> src/swap.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Either { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Maybe` is never used [INFO] [stdout] --> src/swap.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type Maybe = Either<(), A>; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `either_to_option` is never used [INFO] [stdout] --> src/swap.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn either_to_option(e: Maybe) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `option_to_either` is never used [INFO] [stdout] --> src/swap.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn option_to_either(o: Option) -> Maybe { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/swap.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct Pair(A, B); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Element` is never constructed [INFO] [stdout] --> src/swap.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Element { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_tuple` and `to_tuple` are never used [INFO] [stdout] --> src/swap.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Element { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 35 | fn from_tuple((name, symbol, atomic_number): (String, String, u8)) -> Element { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn to_tuple(self) -> (String, String, u8) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> src/swap.rs:67:6 [INFO] [stdout] | [INFO] [stdout] 67 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `area` and `circ` are never used [INFO] [stdout] --> src/swap.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl Shape { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 75 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn circ(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "a4ae61c1be1754298e5f755deba21b2d151aa6907b05318b55ac6c414b8e9184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4ae61c1be1754298e5f755deba21b2d151aa6907b05318b55ac6c414b8e9184", kill_on_drop: false }` [INFO] [stdout] a4ae61c1be1754298e5f755deba21b2d151aa6907b05318b55ac6c414b8e9184