[INFO] cloning repository https://github.com/jamipouchi/Category-Theory-ex-in-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jamipouchi/Category-Theory-ex-in-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamipouchi%2FCategory-Theory-ex-in-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamipouchi%2FCategory-Theory-ex-in-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5510a8b33da15dd43885d12686ca4bbcf26183c7 [INFO] checking jamipouchi/Category-Theory-ex-in-Rust against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamipouchi%2FCategory-Theory-ex-in-Rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jamipouchi/Category-Theory-ex-in-Rust [INFO] finished tweaking git repo https://github.com/jamipouchi/Category-Theory-ex-in-Rust [INFO] tweaked toml for git repo https://github.com/jamipouchi/Category-Theory-ex-in-Rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jamipouchi/Category-Theory-ex-in-Rust on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jamipouchi/Category-Theory-ex-in-Rust 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] adadf599b718201847b916710121fb57e30e62b6b3770fe3174859cb02efd20b [INFO] running `Command { std: "docker" "start" "-a" "adadf599b718201847b916710121fb57e30e62b6b3770fe3174859cb02efd20b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "adadf599b718201847b916710121fb57e30e62b6b3770fe3174859cb02efd20b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adadf599b718201847b916710121fb57e30e62b6b3770fe3174859cb02efd20b", kill_on_drop: false }` [INFO] [stdout] adadf599b718201847b916710121fb57e30e62b6b3770fe3174859cb02efd20b [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25be3d624fcbd4cda3f100e32f5967864bca2c199b22aa897a22151c9d0892b4 [INFO] running `Command { std: "docker" "start" "-a" "25be3d624fcbd4cda3f100e32f5967864bca2c199b22aa897a22151c9d0892b4", kill_on_drop: false }` [INFO] [stderr] Checking challenges v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/chapter6.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `fmap` has an incompatible type for trait [INFO] [stdout] --> src/chapter6.rs:10:47 [INFO] [stdout] | [INFO] [stdout] 9 | impl Functor for Reader B>> { [INFO] [stdout] | - expected type parameter [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | - found type parameter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `B`, found type parameter `R` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/chapter6.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | fn fmap(self: &Self, f: fn(A) -> B) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: expected signature `fn(&Reader<_>, fn(_) -> _) -> Reader B + 'static)>>` [INFO] [stdout] found signature `fn(&Reader<_>, fn(_) -> _) -> Reader R + 'static)>>` [INFO] [stdout] = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &Self, f: fn(B) -> R) -> Reader B + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/chapter6.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 11 | / Reader { [INFO] [stdout] 12 | | f: Box::new(move |a| f((self.f)(a))), [INFO] [stdout] 13 | | } [INFO] [stdout] | |_________^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: consider changing the trait object's explicit `'static` bound to the lifetime of argument `self` [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + '_)>> { [INFO] [stdout] | [INFO] [stdout] help: alternatively, add an explicit `'static` bound to this reference [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &'static Reader B + 'static)>>, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `R` may not live long enough [INFO] [stdout] --> src/chapter6.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | f: Box::new(move |a| f((self.f)(a))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `R` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `R` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0310. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `challenges` (bin "challenges" test) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/chapter6.rs:10:58 [INFO] [stdout] | [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `challenges` [INFO] [stdout] --> src/main.rs:32:2 [INFO] [stdout] | [INFO] [stdout] 32 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `fmap` has an incompatible type for trait [INFO] [stdout] --> src/chapter6.rs:10:47 [INFO] [stdout] | [INFO] [stdout] 9 | impl Functor for Reader B>> { [INFO] [stdout] | - expected type parameter [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | - found type parameter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `B`, found type parameter `R` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/chapter6.rs:2:47 [INFO] [stdout] | [INFO] [stdout] 2 | fn fmap(self: &Self, f: fn(A) -> B) -> Self; [INFO] [stdout] | ^^^^ [INFO] [stdout] = note: expected signature `fn(&Reader<_>, fn(_) -> _) -> Reader B + 'static)>>` [INFO] [stdout] found signature `fn(&Reader<_>, fn(_) -> _) -> Reader R + 'static)>>` [INFO] [stdout] = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &Self, f: fn(B) -> R) -> Reader B + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/chapter6.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 11 | / Reader { [INFO] [stdout] 12 | | f: Box::new(move |a| f((self.f)(a))), [INFO] [stdout] 13 | | } [INFO] [stdout] | |_________^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] help: consider changing the trait object's explicit `'static` bound to the lifetime of argument `self` [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + '_)>> { [INFO] [stdout] | [INFO] [stdout] help: alternatively, add an explicit `'static` bound to this reference [INFO] [stdout] | [INFO] [stdout] 10 - fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] 10 + fn fmap(self: &'static Reader B + 'static)>>, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0310]: the parameter type `R` may not live long enough [INFO] [stdout] --> src/chapter6.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | f: Box::new(move |a| f((self.f)(a))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | the parameter type `R` must be valid for the static lifetime... [INFO] [stdout] | ...so that the type `R` will meet its required lifetime bounds [INFO] [stdout] | [INFO] [stdout] help: consider adding an explicit lifetime bound [INFO] [stdout] | [INFO] [stdout] 10 | fn fmap(self: &Self, f: fn(B) -> R) -> Reader R + 'static)>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0310, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `challenges` (bin "challenges") due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "25be3d624fcbd4cda3f100e32f5967864bca2c199b22aa897a22151c9d0892b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25be3d624fcbd4cda3f100e32f5967864bca2c199b22aa897a22151c9d0892b4", kill_on_drop: false }` [INFO] [stdout] 25be3d624fcbd4cda3f100e32f5967864bca2c199b22aa897a22151c9d0892b4