[INFO] fetching crate hashids 1.0.0... [INFO] testing hashids-1.0.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate hashids 1.0.0 into /workspace/builds/worker-68/source [INFO] validating manifest of crates.io crate hashids 1.0.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate hashids 1.0.0 [INFO] finished tweaking crates.io crate hashids 1.0.0 [INFO] tweaked toml for crates.io crate hashids 1.0.0 written to /workspace/builds/worker-68/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 112650c64b98236dc9f331eb94757dfd19dbedbc4bd4379faeaa3803b421cd70 [INFO] running `Command { std: "docker" "start" "-a" "112650c64b98236dc9f331eb94757dfd19dbedbc4bd4379faeaa3803b421cd70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "112650c64b98236dc9f331eb94757dfd19dbedbc4bd4379faeaa3803b421cd70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "112650c64b98236dc9f331eb94757dfd19dbedbc4bd4379faeaa3803b421cd70", kill_on_drop: false }` [INFO] [stdout] 112650c64b98236dc9f331eb94757dfd19dbedbc4bd4379faeaa3803b421cd70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-68/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b80bc566fd06a0d10af8a6db6e5260a7a2570fc2441524cd79bc64e08fff9f0 [INFO] running `Command { std: "docker" "start" "-a" "6b80bc566fd06a0d10af8a6db6e5260a7a2570fc2441524cd79bc64e08fff9f0", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling hashids v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/lib.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `regex` [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate regex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Float` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::num::Float; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::num::Int` [INFO] [stdout] --> src/lib.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | use std::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/lib.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | let regex1 = Regex::new(r"^[0-9a-fA-F]+$").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/lib.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | let regex2 = Regex::new(r"[\w\W]{1,12}").unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/lib.rs:245:14 [INFO] [stdout] | [INFO] [stdout] 245 | let re = Regex::new(regexp.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Regex` [INFO] [stdout] --> src/lib.rs:266:15 [INFO] [stdout] | [INFO] [stdout] 266 | let re2 = Regex::new(regexp2.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^ use of undeclared type `Regex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str_radix` in module `num` [INFO] [stdout] --> src/lib.rs:196:25 [INFO] [stdout] | [INFO] [stdout] 196 | let v: i64 = num::from_str_radix(num.as_slice(), 16).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/lib.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | for i in (0..len) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - for i in (0..len) { [INFO] [stdout] 133 + for i in 0..len { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | shuffled_separators.push_str(t_alphabet.slice(0,diff)); [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/lib.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | t_alphabet = t_alphabet.slice_from(diff).to_string(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:50:51 [INFO] [stdout] | [INFO] [stdout] 50 | shuffled_separators = shuffled_separators.slice(0, seps_len).to_string(); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:60:38 [INFO] [stdout] | [INFO] [stdout] 60 | t_guards = shuffled_separators.slice(0, guard_count).to_string(); [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/lib.rs:61:49 [INFO] [stdout] | [INFO] [stdout] 61 | shuffled_separators = shuffled_separators.slice_from(guard_count).to_string(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | t_guards = shuffled_alphabet.slice(0, guard_count).to_string(); [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/lib.rs:64:45 [INFO] [stdout] | [INFO] [stdout] 64 | shuffled_alphabet = shuffled_alphabet.slice_from(guard_count).to_string(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | if regex1.is_match(hex.as_slice()) == false { [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:192:41 [INFO] [stdout] | [INFO] [stdout] 192 | for matcher in regex2.find_iter(hex.as_slice()) { [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | num.push_str(hex.slice(matcher.0, matcher.1)); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:196:44 [INFO] [stdout] | [INFO] [stdout] 196 | let v: i64 = num::from_str_radix(num.as_slice(), 16).unwrap(); [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/lib.rs:208:22 [INFO] [stdout] | [INFO] [stdout] 208 | ret.push_str(r.slice_from(1)); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:242:33 [INFO] [stdout] | [INFO] [stdout] 242 | regexp.push_str(self.guards.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:245:32 [INFO] [stdout] | [INFO] [stdout] 245 | let re = Regex::new(regexp.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:246:38 [INFO] [stdout] | [INFO] [stdout] 246 | let t_hash = re.replace_all(hash.as_slice(), " "); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:257:34 [INFO] [stdout] | [INFO] [stdout] 257 | let lottery = hash_breakdown.slice(0,1).to_string(); [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/lib.rs:259:37 [INFO] [stdout] | [INFO] [stdout] 259 | hash_breakdown = hash_breakdown.slice_from(1).to_string(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:263:38 [INFO] [stdout] | [INFO] [stdout] 263 | regexp2.push_str(self.separators.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:266:34 [INFO] [stdout] | [INFO] [stdout] 266 | let re2 = Regex::new(regexp2.as_slice()).unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:267:54 [INFO] [stdout] | [INFO] [stdout] 267 | hash_breakdown = re2.replace_all(hash_breakdown.as_slice(), " "); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:269:28 [INFO] [stdout] | [INFO] [stdout] 269 | split = hash_breakdown.as_slice().split_str(" ").collect(); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:279:33 [INFO] [stdout] | [INFO] [stdout] 279 | buffer.push_str(self.salt.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:280:40 [INFO] [stdout] | [INFO] [stdout] 280 | buffer.push_str(alphabet.clone().as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:283:60 [INFO] [stdout] | [INFO] [stdout] 283 | alphabet = HashIds::hashids_shuffle(alphabet, buffer.slice(0, alpha_len).to_string()); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:325:38 [INFO] [stdout] | [INFO] [stdout] 325 | number += (pos * alpha_len.pow(pow_size)) as i64; [INFO] [stdout] | ^^^^^^^^ expected `u32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 325 | number += (pos * alpha_len.pow(pow_size.try_into().unwrap())) as i64; [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:339:28 [INFO] [stdout] | [INFO] [stdout] 339 | let mut t = alphabet.slice(idx, idx+1).to_string(); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:340:23 [INFO] [stdout] | [INFO] [stdout] 340 | t.push_str(hash.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:361:29 [INFO] [stdout] | [INFO] [stdout] 361 | let ret = self.alphabet.slice(idx, idx+1).to_string(); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:370:33 [INFO] [stdout] | [INFO] [stdout] 370 | buffer.push_str(self.salt.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:371:34 [INFO] [stdout] | [INFO] [stdout] 371 | buffer.push_str(t_alphabet.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | ret_str.push_str(last.as_slice()); [INFO] [stdout] | ^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:387:31 [INFO] [stdout] | [INFO] [stdout] 387 | let guard = self.guards.slice(guard_idx, guard_idx+1).to_string(); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:394:33 [INFO] [stdout] | [INFO] [stdout] 394 | let guard = self.guards.slice(guard_idx, guard_idx+1); [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/lib.rs:403:33 [INFO] [stdout] | [INFO] [stdout] 403 | t_ret.push_str(t_alphabet.slice_from(half_len)); [INFO] [stdout] | ^^^^^^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `slice` found for struct `String` in the current scope [INFO] [stdout] --> src/lib.rs:405:33 [INFO] [stdout] | [INFO] [stdout] 405 | t_ret.push_str(t_alphabet.slice(0, half_len)); [INFO] [stdout] | ^^^^^ method not found in `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hashids` due to 44 previous errors; 2 warnings emitted [INFO] [stdout] error: aborting due to 43 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432, E0433, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6b80bc566fd06a0d10af8a6db6e5260a7a2570fc2441524cd79bc64e08fff9f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b80bc566fd06a0d10af8a6db6e5260a7a2570fc2441524cd79bc64e08fff9f0", kill_on_drop: false }` [INFO] [stdout] 6b80bc566fd06a0d10af8a6db6e5260a7a2570fc2441524cd79bc64e08fff9f0