[INFO] fetching crate natural_sort 0.0.1... [INFO] testing natural_sort-0.0.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate natural_sort 0.0.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate natural_sort 0.0.1 [INFO] finished tweaking crates.io crate natural_sort 0.0.1 [INFO] tweaked toml for crates.io crate natural_sort 0.0.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate natural_sort 0.0.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eedb22841be1657304d7a336af3a8b1de1b15de3d74f22ed4742d0b74461f1aa [INFO] running `Command { std: "docker" "start" "-a" "eedb22841be1657304d7a336af3a8b1de1b15de3d74f22ed4742d0b74461f1aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eedb22841be1657304d7a336af3a8b1de1b15de3d74f22ed4742d0b74461f1aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eedb22841be1657304d7a336af3a8b1de1b15de3d74f22ed4742d0b74461f1aa", kill_on_drop: false }` [INFO] [stdout] eedb22841be1657304d7a336af3a8b1de1b15de3d74f22ed4742d0b74461f1aa [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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9a951b40ad20ef932ba1ca751f506ea4c7db8826a0bfd50ed20703a52ddf669 [INFO] running `Command { std: "docker" "start" "-a" "c9a951b40ad20ef932ba1ca751f506ea4c7db8826a0bfd50ed20703a52ddf669", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling natural_sort v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `regex` [INFO] [stdout] --> src/lib.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex_macros` [INFO] [stdout] --> src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | extern crate regex_macros; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `phase` in this scope [INFO] [stdout] --> src/lib.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | #[phase(plugin)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/natural_sort.rs:1:3 [INFO] [stdout] | [INFO] [stdout] 1 | #[deriving(Show, PartialEq, Eq)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/natural_sort.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 9 | #[deriving(Show, PartialEq, Eq)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `regex` in this scope [INFO] [stdout] --> src/natural_sort.rs:70:26 [INFO] [stdout] | [INFO] [stdout] 70 | let numbers_re = regex!(r"^\p{N}+"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `regex` is imported here, but it is an unresolved item, not a macro [INFO] [stdout] --> src/lib.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `regex` in this scope [INFO] [stdout] --> src/natural_sort.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 71 | let letters_re = regex!(r"^\P{N}+"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `regex` is imported here, but it is an unresolved item, not a macro [INFO] [stdout] --> src/lib.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/natural_sort.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | Number(int) [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ordering` in this scope [INFO] [stdout] --> src/natural_sort.rs:38:58 [INFO] [stdout] | [INFO] [stdout] 38 | fn partial_cmp(&self, other: &HumanString) -> Option { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/natural_sort.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | fn process_number(regex_match: (uint, uint), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/natural_sort.rs:95:43 [INFO] [stdout] | [INFO] [stdout] 95 | fn process_number(regex_match: (uint, uint), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `int` in this scope [INFO] [stdout] --> src/natural_sort.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | let prefix_to_num: int = from_str(to_parse.slice_to(end_index)) [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | help: perhaps you intended to use this type: `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/natural_sort.rs:107:38 [INFO] [stdout] | [INFO] [stdout] 107 | fn process_letters(regex_match: (uint, uint), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/natural_sort.rs:107:44 [INFO] [stdout] | [INFO] [stdout] 107 | fn process_letters(regex_match: (uint, uint), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ordering` in this scope [INFO] [stdout] --> src/natural_sort.rs:130:39 [INFO] [stdout] | [INFO] [stdout] 130 | fn sort_fn(a: &&str, b: &&str) -> Ordering { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `phase` [INFO] [stdout] --> src/lib.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | #![feature(phase)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `HumanString` with `HumanString` [INFO] [stdout] --> src/natural_sort.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | impl PartialOrd for HumanString { [INFO] [stdout] | ^^^^^^^^^^^ no implementation for `HumanString == HumanString` [INFO] [stdout] | [INFO] [stdout] help: the trait `PartialEq` is not implemented for `HumanString` [INFO] [stdout] --> src/natural_sort.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HumanString { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `PartialOrd` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:1345:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `String` in the current scope [INFO] [stdout] --> src/natural_sort.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | let mut to_parse = String::from_str(string); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `String` consider using one of the following associated functions: [INFO] [stdout] String::new [INFO] [stdout] String::with_capacity [INFO] [stdout] String::try_with_capacity [INFO] [stdout] String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/string.rs:444:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 74 - let mut to_parse = String::from_str(string); [INFO] [stdout] 74 + let mut to_parse = String::from(string); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for struct `String` in the current scope [INFO] [stdout] --> src/natural_sort.rs:98:52 [INFO] [stdout] | [INFO] [stdout] 98 | let prefix_to_num: int = from_str(to_parse.slice_to(end_index)) [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/natural_sort.rs:98:34 [INFO] [stdout] | [INFO] [stdout] 98 | let prefix_to_num: int = from_str(to_parse.slice_to(end_index)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider using the associated function on `Self` [INFO] [stdout] | [INFO] [stdout] 98 | let prefix_to_num: int = Self::from_str(to_parse.slice_to(end_index)) [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_from` found for struct `String` in the current scope [INFO] [stdout] --> src/natural_sort.rs:102:40 [INFO] [stdout] | [INFO] [stdout] 102 | let to_parse_suffix = to_parse.slice_from(end_index).to_string(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `clone_from` with a similar name [INFO] [stdout] | [INFO] [stdout] 102 - let to_parse_suffix = to_parse.slice_from(end_index).to_string(); [INFO] [stdout] 102 + let to_parse_suffix = to_parse.clone_from(end_index).to_string(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_to` found for struct `String` in the current scope [INFO] [stdout] --> src/natural_sort.rs:110:31 [INFO] [stdout] | [INFO] [stdout] 110 | let prefix = to_parse.slice_to(end_index); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice_from` found for struct `String` in the current scope [INFO] [stdout] --> src/natural_sort.rs:113:40 [INFO] [stdout] | [INFO] [stdout] 113 | let to_parse_suffix = to_parse.slice_from(end_index).to_string(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `clone_from` with a similar name [INFO] [stdout] | [INFO] [stdout] 113 - let to_parse_suffix = to_parse.slice_from(end_index).to_string(); [INFO] [stdout] 113 + let to_parse_suffix = to_parse.clone_from(end_index).to_string(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `HumanString` with `HumanString` [INFO] [stdout] --> src/natural_sort.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | seq_a.partial_cmp(&seq_b).unwrap() [INFO] [stdout] | ----------- ^^^^^^ no implementation for `HumanString == HumanString` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `PartialEq` is not implemented for `HumanString` [INFO] [stdout] --> src/natural_sort.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HumanString { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `std::cmp::PartialOrd::partial_cmp` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/cmp.rs:1372:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0463, E0599, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `natural_sort` (lib) due to 24 previous errors [INFO] running `Command { std: "docker" "inspect" "c9a951b40ad20ef932ba1ca751f506ea4c7db8826a0bfd50ed20703a52ddf669", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9a951b40ad20ef932ba1ca751f506ea4c7db8826a0bfd50ed20703a52ddf669", kill_on_drop: false }` [INFO] [stdout] c9a951b40ad20ef932ba1ca751f506ea4c7db8826a0bfd50ed20703a52ddf669