[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 try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQbius%2Frust-categories" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Qbius/rust-categories on toolchain ccf408f4326a858c00dd845a64a86b16f360a801
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-6-tc2/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 19dd44e2aad168d82f0c96cf958b94d5c07e067b2ef652bd7e339141e72ae45b
[INFO] running `Command { std: "docker" "start" "-a" "19dd44e2aad168d82f0c96cf958b94d5c07e067b2ef652bd7e339141e72ae45b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "19dd44e2aad168d82f0c96cf958b94d5c07e067b2ef652bd7e339141e72ae45b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "19dd44e2aad168d82f0c96cf958b94d5c07e067b2ef652bd7e339141e72ae45b", kill_on_drop: false }`
[INFO] [stdout] 19dd44e2aad168d82f0c96cf958b94d5c07e067b2ef652bd7e339141e72ae45b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 30c2a72e0c709425011dbead01eb61cce460918324a85649af1489363e04f129
[INFO] running `Command { std: "docker" "start" "-a" "30c2a72e0c709425011dbead01eb61cce460918324a85649af1489363e04f129", kill_on_drop: false }`
[INFO] [stderr] Copying to /tmp/fixit
[INFO] [stderr] Running `cargo fix --edition`
[INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr] Checking rust-categories v0.1.0 (/tmp/fixit)
[INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024
[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: 9 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Fixed src/functors.rs (1 fix)
[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:2:4
[INFO] [stdout] |
[INFO] [stdout] 2 | fn fmap(f: impl Fn(A) -> B) -> impl Fn(Option) -> Option {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 29 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
[INFO] [stderr] Running `cargo check` to verify 2024
[INFO] [stderr] Checking rust-categories v0.1.0 (/tmp/fixit)
[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:2:4
[INFO] [stdout] |
[INFO] [stdout] 2 | fn fmap(f: impl Fn(A) -> B) -> impl Fn(Option) -> Option {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 29 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find function `compose` in this scope
[INFO] [stdout] --> src/functors.rs:11:21
[INFO] [stdout] |
[INFO] [stdout] 11 | assert_eq!(fmap(compose(g, f))(Some(3)), compose(fmap(g), fmap(f))(Some(3)));
[INFO] [stdout] | ^^^^^^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::compose;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `g` in this scope
[INFO] [stdout] --> src/functors.rs:11:29
[INFO] [stdout] |
[INFO] [stdout] 11 | assert_eq!(fmap(compose(g, f))(Some(3)), compose(fmap(g), fmap(f))(Some(3)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::g;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `f` in this scope
[INFO] [stdout] --> src/functors.rs:11:32
[INFO] [stdout] |
[INFO] [stdout] 11 | assert_eq!(fmap(compose(g, f))(Some(3)), compose(fmap(g), fmap(f))(Some(3)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::f;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find function `compose` in this scope
[INFO] [stdout] --> src/functors.rs:11:46
[INFO] [stdout] |
[INFO] [stdout] 11 | assert_eq!(fmap(compose(g, f))(Some(3)), compose(fmap(g), fmap(f))(Some(3)));
[INFO] [stdout] | ^^^^^^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::compose;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `g` in this scope
[INFO] [stdout] --> src/functors.rs:11:59
[INFO] [stdout] |
[INFO] [stdout] 11 | assert_eq!(fmap(compose(g, f))(Some(3)), compose(fmap(g), fmap(f))(Some(3)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::g;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `f` in this scope
[INFO] [stdout] --> src/functors.rs:11:68
[INFO] [stdout] |
[INFO] [stdout] 11 | assert_eq!(fmap(compose(g, f))(Some(3)), compose(fmap(g), fmap(f))(Some(3)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::f;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find function `compose` in this scope
[INFO] [stdout] --> src/functors.rs:12:16
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^^^^^^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::compose;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find function `compose` in this scope
[INFO] [stdout] --> src/functors.rs:12:29
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^^^^^^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::compose;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `g` in this scope
[INFO] [stdout] --> src/functors.rs:12:37
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::g;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `h` in this scope
[INFO] [stdout] --> src/functors.rs:12:40
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::h;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `id` in this scope
[INFO] [stdout] --> src/functors.rs:12:45
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::id;
[INFO] [stdout] |
[INFO] [stdout] 2 + use std::process::id;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find function `compose` in this scope
[INFO] [stdout] --> src/functors.rs:12:59
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^^^^^^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::compose;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find function `compose` in this scope
[INFO] [stdout] --> src/functors.rs:12:67
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^^^^^^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::compose;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `g` in this scope
[INFO] [stdout] --> src/functors.rs:12:80
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::g;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `id` in this scope
[INFO] [stdout] --> src/functors.rs:12:84
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing one of these functions
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::id;
[INFO] [stdout] |
[INFO] [stdout] 2 + use std::process::id;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error[E0425]: cannot find value `h` in this scope
[INFO] [stdout] --> src/functors.rs:12:94
[INFO] [stdout] |
[INFO] [stdout] 12 | assert_eq!(compose(fmap(compose(g, h)), id)(Some(2)), compose(compose(fmap(g), id), fmap(h))(Some(2)));
[INFO] [stdout] | ^ not found in this scope
[INFO] [stdout] |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout] |
[INFO] [stdout] 2 + use crate::futils::h;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 16 previous errors
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout]
[INFO] [stderr] error: could not compile `rust-categories` (bin "rust-categories" test) due to 17 previous errors
[INFO] [stderr] error: failed to check after updating to 2024
[INFO] [stderr]
[INFO] [stderr] Caused by:
[INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101)
[INFO] running `Command { std: "docker" "inspect" "30c2a72e0c709425011dbead01eb61cce460918324a85649af1489363e04f129", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "30c2a72e0c709425011dbead01eb61cce460918324a85649af1489363e04f129", kill_on_drop: false }`
[INFO] [stdout] 30c2a72e0c709425011dbead01eb61cce460918324a85649af1489363e04f129