[INFO] fetching crate spaceslugs 0.1.0... [INFO] testing spaceslugs-0.1.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate spaceslugs 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate spaceslugs 0.1.0 [INFO] finished tweaking crates.io crate spaceslugs 0.1.0 [INFO] tweaked toml for crates.io crate spaceslugs 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate spaceslugs 0.1.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e3f768f311bb6c10910805ae2c0ecf297d48fedfe184a39f4c1deed2641e99ef [INFO] running `Command { std: "docker" "start" "-a" "e3f768f311bb6c10910805ae2c0ecf297d48fedfe184a39f4c1deed2641e99ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e3f768f311bb6c10910805ae2c0ecf297d48fedfe184a39f4c1deed2641e99ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3f768f311bb6c10910805ae2c0ecf297d48fedfe184a39f4c1deed2641e99ef", kill_on_drop: false }` [INFO] [stdout] e3f768f311bb6c10910805ae2c0ecf297d48fedfe184a39f4c1deed2641e99ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b93619f14c6edbce35287999e720949f6770879bfb471cd75a057566b0839fda [INFO] running `Command { std: "docker" "start" "-a" "b93619f14c6edbce35287999e720949f6770879bfb471cd75a057566b0839fda", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling spaceslugs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 17 | let mut result = string.to_string(); [INFO] [stdout] | ------------------ expected due to this value [INFO] [stdout] 18 | [INFO] [stdout] 19 | result = re_replace_non_ascii.replace_all(&result[..], ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Cow<'_, str>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Cow<'_, str>` [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 19 | result = re_replace_non_ascii.replace_all(&result[..], "").to_string(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 17 | let mut result = string.to_string(); [INFO] [stdout] | ------------------ expected due to this value [INFO] [stdout] ... [INFO] [stdout] 20 | result = re_replace_single_quotes.replace_all(&result[..], ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Cow<'_, str>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Cow<'_, str>` [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 20 | result = re_replace_single_quotes.replace_all(&result[..], "").to_string(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 17 | let mut result = string.to_string(); [INFO] [stdout] | ------------------ expected due to this value [INFO] [stdout] ... [INFO] [stdout] 21 | result = re_replace_non_char.replace_all(&result[..], " "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Cow<'_, str>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Cow<'_, str>` [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 21 | result = re_replace_non_char.replace_all(&result[..], " ").to_string(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 17 | let mut result = string.to_string(); [INFO] [stdout] | ------------------ expected due to this value [INFO] [stdout] ... [INFO] [stdout] 23 | result = re_replace_spaces.replace_all(&result[..], "-"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Cow<'_, str>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `String` [INFO] [stdout] found enum `Cow<'_, str>` [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 23 | result = re_replace_spaces.replace_all(&result[..], "-").to_string(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `spaceslugs` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "b93619f14c6edbce35287999e720949f6770879bfb471cd75a057566b0839fda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b93619f14c6edbce35287999e720949f6770879bfb471cd75a057566b0839fda", kill_on_drop: false }` [INFO] [stdout] b93619f14c6edbce35287999e720949f6770879bfb471cd75a057566b0839fda