[INFO] cloning repository https://github.com/makarchuk/ctfp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/makarchuk/ctfp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmakarchuk%2Fctfp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmakarchuk%2Fctfp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b76ba8adba5c42d8a5454a003bab3d4504eb709a [INFO] checking makarchuk/ctfp against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmakarchuk%2Fctfp" "/workspace/builds/worker-22/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-22/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/makarchuk/ctfp on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-22/source/rust-toolchain [INFO] started tweaking git repo https://github.com/makarchuk/ctfp [INFO] finished tweaking git repo https://github.com/makarchuk/ctfp [INFO] tweaked toml for git repo https://github.com/makarchuk/ctfp written to /workspace/builds/worker-22/source/Cargo.toml [INFO] crate git repo https://github.com/makarchuk/ctfp already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.features [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdd75f777116240b306d4b56eefb86f32b6921239d976a51ca332a98a83a7fdf [INFO] running `Command { std: "docker" "start" "-a" "bdd75f777116240b306d4b56eefb86f32b6921239d976a51ca332a98a83a7fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdd75f777116240b306d4b56eefb86f32b6921239d976a51ca332a98a83a7fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdd75f777116240b306d4b56eefb86f32b6921239d976a51ca332a98a83a7fdf", kill_on_drop: false }` [INFO] [stdout] bdd75f777116240b306d4b56eefb86f32b6921239d976a51ca332a98a83a7fdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fa764533d0a74d1b664394ddf6d76929d93c5ad302cfeb115bca897f6e8b443 [INFO] running `Command { std: "docker" "start" "-a" "2fa764533d0a74d1b664394ddf6d76929d93c5ad302cfeb115bca897f6e8b443", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused manifest key: package.features [INFO] [stderr] Checking ctfp v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/chapter7.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chapter2.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(f: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `id` [INFO] [stdout] --> src/chapter4.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn id(o: T) -> Optional { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_sqrt` [INFO] [stdout] --> src/chapter4.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn safe_sqrt(n: f64) -> Optional { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_reciprocal` [INFO] [stdout] --> src/chapter4.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn safe_reciprocal(n: f64) -> Optional { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Reader` [INFO] [stdout] --> src/chapter7.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Reader [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `map` [INFO] [stdout] --> src/chapter7.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn map(self, mapper: G) -> Reader B>, R, B> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/chapter7.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn get(self, r: R) -> A { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/chapter8.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bimap` [INFO] [stdout] --> src/chapter8.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn bimap(f: F, g: G) -> impl Fn(Pair) -> Pair [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first` [INFO] [stdout] --> src/chapter8.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn first(f: F) -> impl Fn(Pair) -> Pair [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `second` [INFO] [stdout] --> src/chapter8.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn second(g: G) -> impl Fn(Pair) -> Pair [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/chapter8.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | None(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cons` [INFO] [stdout] --> src/chapter8.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Cons(A, B), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bimap` [INFO] [stdout] --> src/chapter8.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn bimap(f: F, g: G) -> impl Fn(PreList) -> PreList [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first` [INFO] [stdout] --> src/chapter8.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn first(f: F) -> impl Fn(PreList) -> PreList [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `second` [INFO] [stdout] --> src/chapter8.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn second(g: G) -> impl Fn(PreList) -> PreList [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 15.04s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] warning: unused manifest key: package.features [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking ctfp v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chapter1` [INFO] [stdout] --> src/chapter7.rs:48:27 [INFO] [stdout] | [INFO] [stdout] 48 | let composition = chapter1::compose(Box::new(|x: usize| x * 2), Box::new(|x: usize| x + 1)); [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `chapter1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chapter1` [INFO] [stdout] --> src/chapter7.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | strlen_reader.map(chapter1::id).get("test".to_owned()), [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `chapter1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `chapter1` [INFO] [stdout] --> src/chapter7.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | chapter1::id("test".len()), [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `chapter1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/chapter2.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(f: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `id` [INFO] [stdout] --> src/chapter4.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn id(o: T) -> Optional { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_sqrt` [INFO] [stdout] --> src/chapter4.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn safe_sqrt(n: f64) -> Optional { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `safe_reciprocal` [INFO] [stdout] --> src/chapter4.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn safe_reciprocal(n: f64) -> Optional { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Reader` [INFO] [stdout] --> src/chapter7.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Reader [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `map` [INFO] [stdout] --> src/chapter7.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn map(self, mapper: G) -> Reader B>, R, B> [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/chapter7.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn get(self, r: R) -> A { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/chapter8.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bimap` [INFO] [stdout] --> src/chapter8.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn bimap(f: F, g: G) -> impl Fn(Pair) -> Pair [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first` [INFO] [stdout] --> src/chapter8.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn first(f: F) -> impl Fn(Pair) -> Pair [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `second` [INFO] [stdout] --> src/chapter8.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn second(g: G) -> impl Fn(Pair) -> Pair [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/chapter8.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | None(), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Cons` [INFO] [stdout] --> src/chapter8.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Cons(A, B), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `bimap` [INFO] [stdout] --> src/chapter8.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn bimap(f: F, g: G) -> impl Fn(PreList) -> PreList [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `first` [INFO] [stdout] --> src/chapter8.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn first(f: F) -> impl Fn(PreList) -> PreList [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `second` [INFO] [stdout] --> src/chapter8.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn second(g: G) -> impl Fn(PreList) -> PreList [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ctfp` due to 4 previous errors [INFO] [stderr] error: failed to check after updating to 2021 [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" "2fa764533d0a74d1b664394ddf6d76929d93c5ad302cfeb115bca897f6e8b443", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fa764533d0a74d1b664394ddf6d76929d93c5ad302cfeb115bca897f6e8b443", kill_on_drop: false }` [INFO] [stdout] 2fa764533d0a74d1b664394ddf6d76929d93c5ad302cfeb115bca897f6e8b443