[INFO] cloning repository https://github.com/gallowstree/subrenamer-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gallowstree/subrenamer-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgallowstree%2Fsubrenamer-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgallowstree%2Fsubrenamer-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a6ae04d5e91de3d1dfe0507e6327429ff48b8750 [INFO] checking gallowstree/subrenamer-rs/a6ae04d5e91de3d1dfe0507e6327429ff48b8750 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgallowstree%2Fsubrenamer-rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gallowstree/subrenamer-rs on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gallowstree/subrenamer-rs [INFO] finished tweaking git repo https://github.com/gallowstree/subrenamer-rs [INFO] tweaked toml for git repo https://github.com/gallowstree/subrenamer-rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gallowstree/subrenamer-rs 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2144f98c693fd4eb84583eb2f11ebb8c21ca5be4bcf3611c1634a022b4bc85c3 [INFO] running `Command { std: "docker" "start" "-a" "2144f98c693fd4eb84583eb2f11ebb8c21ca5be4bcf3611c1634a022b4bc85c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2144f98c693fd4eb84583eb2f11ebb8c21ca5be4bcf3611c1634a022b4bc85c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2144f98c693fd4eb84583eb2f11ebb8c21ca5be4bcf3611c1634a022b4bc85c3", kill_on_drop: false }` [INFO] [stdout] 2144f98c693fd4eb84583eb2f11ebb8c21ca5be4bcf3611c1634a022b4bc85c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8c01ca17d78ddb48e1aa92cc3d7ad201493074f882dfecf0444ad64ca4dae6c [INFO] running `Command { std: "docker" "start" "-a" "f8c01ca17d78ddb48e1aa92cc3d7ad201493074f882dfecf0444ad64ca4dae6c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.45 [INFO] [stderr] Compiling memchr v2.1.2 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking regex-syntax v0.6.4 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking aho-corasick v0.6.9 [INFO] [stderr] Checking subrenamer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/main.rs:18:51 [INFO] [stdout] | [INFO] [stdout] 18 | .filter_map(|result| result.ok().and_then(to_episode)) [INFO] [stdout] | -------- ^^^^^^^^^^ expected due to this [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 43 | fn to_episode(entry: &DirEntry) -> Option { [INFO] [stdout] | -------------------------------------------------- found signature defined here [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(DirEntry) -> _` [INFO] [stdout] found function signature `fn(&DirEntry) -> _` [INFO] [stdout] note: required by a bound in `Option::::and_then` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:1435:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 18 | .filter_map(|result| result.ok().and_then(|entry: DirEntry| to_episode(&entry))) [INFO] [stdout] | +++++++++++++++++ ++++++++ [INFO] [stdout] help: consider adjusting the signature so it does not borrow its argument [INFO] [stdout] | [INFO] [stdout] 43 - fn to_episode(entry: &DirEntry) -> Option { [INFO] [stdout] 43 + fn to_episode(entry: DirEntry) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0631]: type mismatch in function arguments [INFO] [stdout] --> src/main.rs:18:51 [INFO] [stdout] | [INFO] [stdout] 18 | .filter_map(|result| result.ok().and_then(to_episode)) [INFO] [stdout] | -------- ^^^^^^^^^^ expected due to this [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] ... [INFO] [stdout] 43 | fn to_episode(entry: &DirEntry) -> Option { [INFO] [stdout] | -------------------------------------------------- found signature defined here [INFO] [stdout] | [INFO] [stdout] = note: expected function signature `fn(DirEntry) -> _` [INFO] [stdout] found function signature `fn(&DirEntry) -> _` [INFO] [stdout] note: required by a bound in `Option::::and_then` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:1435:5 [INFO] [stdout] help: consider wrapping the function in a closure [INFO] [stdout] | [INFO] [stdout] 18 | .filter_map(|result| result.ok().and_then(|entry: DirEntry| to_episode(&entry))) [INFO] [stdout] | +++++++++++++++++ ++++++++ [INFO] [stdout] help: consider adjusting the signature so it does not borrow its argument [INFO] [stdout] | [INFO] [stdout] 43 - fn to_episode(entry: &DirEntry) -> Option { [INFO] [stdout] 43 + fn to_episode(entry: DirEntry) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `&DirEntry` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `DirEntry` doesn't implement `PartialEq` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/fs.rs:154:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `PartialEq` [INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `&DirEntry` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `DirEntry` doesn't implement `PartialEq` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/fs.rs:154:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `PartialEq` [INFO] [stdout] = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DirEntry: Eq` is not satisfied [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `DirEntry`, which is required by `&'a DirEntry: Eq` [INFO] [stdout] | [INFO] [stdout] = note: required for `&'a DirEntry` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DirEntry: Eq` is not satisfied [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | -- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `DirEntry`, which is required by `&'a DirEntry: Eq` [INFO] [stdout] | [INFO] [stdout] = note: required for `&'a DirEntry` to implement `Eq` [INFO] [stdout] note: required by a bound in `AssertParamIsEq` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:358:1 [INFO] [stdout] = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `&DirEntry` with `&_` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | ---------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no implementation for `&DirEntry == &_` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&_>` is not implemented for `&DirEntry` [INFO] [stdout] note: required by a bound in `std::cmp::PartialOrd::partial_cmp` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:1163:5 [INFO] [stdout] = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `&DirEntry` with `&_` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | ---------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no implementation for `&DirEntry == &_` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&_>` is not implemented for `&DirEntry` [INFO] [stdout] note: required by a bound in `std::cmp::PartialOrd::partial_cmp` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:1163:5 [INFO] [stdout] = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `DirEntry` with `_` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | ---------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no implementation for `DirEntry < _` and `DirEntry > _` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialOrd<_>` is not implemented for `DirEntry`, which is required by `&DirEntry: PartialOrd<_>` [INFO] [stdout] = note: required for `&DirEntry` to implement `PartialOrd<&_>` [INFO] [stdout] = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `DirEntry` with `_` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | ---------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no implementation for `DirEntry < _` and `DirEntry > _` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialOrd<_>` is not implemented for `DirEntry`, which is required by `&DirEntry: PartialOrd<_>` [INFO] [stdout] = note: required for `&DirEntry` to implement `PartialOrd<&_>` [INFO] [stdout] = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DirEntry: Ord` is not satisfied [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | --- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `DirEntry`, which is required by `&DirEntry: Ord` [INFO] [stdout] | [INFO] [stdout] = note: required for `&DirEntry` to implement `Ord` [INFO] [stdout] = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DirEntry: Ord` is not satisfied [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] | --- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 52 | entry: &'a DirEntry //Use str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `DirEntry`, which is required by `&DirEntry: Ord` [INFO] [stdout] | [INFO] [stdout] = note: required for `&DirEntry` to implement `Ord` [INFO] [stdout] = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let file_name = entry.file_name().to_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let file_name = entry.file_name().to_str().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0631. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `subrenamer` (bin "subrenamer" test) due to 7 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `subrenamer` (bin "subrenamer") due to 7 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "f8c01ca17d78ddb48e1aa92cc3d7ad201493074f882dfecf0444ad64ca4dae6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8c01ca17d78ddb48e1aa92cc3d7ad201493074f882dfecf0444ad64ca4dae6c", kill_on_drop: false }` [INFO] [stdout] f8c01ca17d78ddb48e1aa92cc3d7ad201493074f882dfecf0444ad64ca4dae6c