[INFO] fetching crate version-sort 0.1.0... [INFO] checking version-sort-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate version-sort 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate version-sort 0.1.0 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 crates.io crate version-sort 0.1.0 [INFO] finished tweaking crates.io crate version-sort 0.1.0 [INFO] tweaked toml for crates.io crate version-sort 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 20 packages to latest compatible versions [INFO] [stderr] Adding arrayvec v0.5.2 (available: v0.7.6) [INFO] [stderr] Adding base64 v0.13.1 (available: v0.22.1) [INFO] [stderr] Adding blake2b_simd v0.5.11 (available: v1.0.2) [INFO] [stderr] Adding constant_time_eq v0.1.5 (available: v0.3.1) [INFO] [stderr] Adding dirs v1.0.5 (available: v5.0.1) [INFO] [stderr] Adding getrandom v0.1.16 (available: v0.2.15) [INFO] [stderr] Adding redox_syscall v0.1.57 (available: v0.5.6) [INFO] [stderr] Adding redox_users v0.3.5 (available: v0.4.6) [INFO] [stderr] Adding rust-argon2 v0.8.3 (available: v2.1.0) [INFO] [stderr] Adding term v0.5.2 (available: v1.0.0) [INFO] [stderr] Adding wasi v0.9.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clippy v0.0.302 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8df673553af0c34c4000c3b18beed85b0e57e81fd322cb2a4d6a22c3c7b67c0c [INFO] running `Command { std: "docker" "start" "-a" "8df673553af0c34c4000c3b18beed85b0e57e81fd322cb2a4d6a22c3c7b67c0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8df673553af0c34c4000c3b18beed85b0e57e81fd322cb2a4d6a22c3c7b67c0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8df673553af0c34c4000c3b18beed85b0e57e81fd322cb2a4d6a22c3c7b67c0c", kill_on_drop: false }` [INFO] [stdout] 8df673553af0c34c4000c3b18beed85b0e57e81fd322cb2a4d6a22c3c7b67c0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a1eb6b708cb4fc27ccd9e5869a63b522250927898dbc0e8424d1022691b028b [INFO] running `Command { std: "docker" "start" "-a" "1a1eb6b708cb4fc27ccd9e5869a63b522250927898dbc0e8424d1022691b028b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: version-sort v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `clippy` which is missing a lib target [INFO] [stderr] Checking version-sort v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(test, feature(plugin))] [INFO] [stdout] | ^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: plugins are no longer supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lib.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | b'0'...b'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `plugin` in this scope [INFO] [stdout] --> src/lib.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | #![cfg_attr(test, plugin(clippy))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lib.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | b'0'...b'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Number` with `Number` [INFO] [stdout] --> src/lib.rs:26:21 [INFO] [stdout] | [INFO] [stdout] 26 | impl PartialOrd for Number { [INFO] [stdout] | ^^^^^^ no implementation for `Number == Number` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Number` [INFO] [stdout] note: required by a bound in `PartialOrd` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:1136:1 [INFO] [stdout] help: consider annotating `Number` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(PartialEq)] [INFO] [stdout] 12 | pub struct Number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Number: Eq` is not satisfied [INFO] [stdout] --> src/lib.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | impl Ord for Number { [INFO] [stdout] | ^^^^^^ the trait `Eq` is not implemented for `Number` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Ord` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:820:1 [INFO] [stdout] help: consider annotating `Number` with `#[derive(Eq)]` [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Eq)] [INFO] [stdout] 12 | pub struct Number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Number: Eq` is not satisfied [INFO] [stdout] --> src/lib.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | Some(self.cmp(rhs)) [INFO] [stdout] | ^^^^ the trait `Eq` is not implemented for `Number` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `std::cmp::Ord::cmp` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:838:5 [INFO] [stdout] help: consider annotating `Number` with `#[derive(Eq)]` [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Eq)] [INFO] [stdout] 12 | pub struct Number { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Vec>` [INFO] [stdout] --> src/lib.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | / assert_eq!(Version::new("Is 01.01.70 the epoch?").collect::>(), [INFO] [stdout] 187 | | vec![Part::Str("Is "), [INFO] [stdout] 188 | | Part::Num(Number { value: 1, leading_zeroes: 1 }), [INFO] [stdout] 189 | | Part::Str("."), [INFO] [stdout] ... | [INFO] [stdout] 192 | | Part::Num(Number { value: 70, leading_zeroes: 0 }), [INFO] [stdout] 193 | | Part::Str(" the epoch?")]); [INFO] [stdout] | | ^ [INFO] [stdout] | |_______________________________________________| [INFO] [stdout] | |_______________________________________________Vec> [INFO] [stdout] | Vec> [INFO] [stdout] | [INFO] [stdout] note: an implementation of `PartialEq>` might be missing for `Part<'_>` [INFO] [stdout] --> src/lib.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub enum Part<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ must implement `PartialEq>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `Part<'_>` with `#[derive(PartialEq)]` [INFO] [stdout] | [INFO] [stdout] 65 + #[derive(PartialEq)] [INFO] [stdout] 66 | pub enum Part<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Part<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/lib.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | / assert_eq!(Version::new("Is 01.01.70 the epoch?").collect::>(), [INFO] [stdout] 187 | | vec![Part::Str("Is "), [INFO] [stdout] 188 | | Part::Num(Number { value: 1, leading_zeroes: 1 }), [INFO] [stdout] 189 | | Part::Str("."), [INFO] [stdout] ... | [INFO] [stdout] 192 | | Part::Num(Number { value: 70, leading_zeroes: 0 }), [INFO] [stdout] 193 | | Part::Str(" the epoch?")]); [INFO] [stdout] | |_______________________________________________^ `Part<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Part<'_>`, which is required by `Vec>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Part<'_>` or manually `impl Debug for Part<'_>` [INFO] [stdout] = help: the trait `Debug` is implemented for `Vec` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `Part<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/lib.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | / assert_eq!(Version::new("Is 01.01.70 the epoch?").collect::>(), [INFO] [stdout] 187 | | vec![Part::Str("Is "), [INFO] [stdout] 188 | | Part::Num(Number { value: 1, leading_zeroes: 1 }), [INFO] [stdout] 189 | | Part::Str("."), [INFO] [stdout] ... | [INFO] [stdout] 192 | | Part::Num(Number { value: 70, leading_zeroes: 0 }), [INFO] [stdout] 193 | | Part::Str(" the epoch?")]); [INFO] [stdout] | |_______________________________________________^ `Part<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `Part<'_>`, which is required by `Vec>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `Part<'_>` or manually `impl Debug for Part<'_>` [INFO] [stdout] = help: the trait `Debug` is implemented for `Vec` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/lib.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | fn eq(&self, rhs: &Version<'a>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 139 | self.clone().eq(rhs.clone()) [INFO] [stdout] | ---------------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | fn partial_cmp(&self, rhs: &Version<'a>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 145 | self.clone().partial_cmp(rhs.clone()) [INFO] [stdout] | ------------------------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/lib.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | fn cmp(&self, rhs: &Version<'a>) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 150 | self.clone().cmp(rhs.clone()) [INFO] [stdout] | ----------------------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `version-sort` (lib test) due to 9 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1a1eb6b708cb4fc27ccd9e5869a63b522250927898dbc0e8424d1022691b028b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a1eb6b708cb4fc27ccd9e5869a63b522250927898dbc0e8424d1022691b028b", kill_on_drop: false }` [INFO] [stdout] 1a1eb6b708cb4fc27ccd9e5869a63b522250927898dbc0e8424d1022691b028b