[INFO] fetching crate spaceslugs 0.1.0... [INFO] building spaceslugs-0.1.0 against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] extracting crate spaceslugs 0.1.0 into /workspace/builds/worker-0-tc1/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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate spaceslugs 0.1.0 on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfdf1cea4706507caa8a486646fe818e29e4a2533b5ed5ee29b072f3713076eb [INFO] running `Command { std: "docker" "start" "-a" "bfdf1cea4706507caa8a486646fe818e29e4a2533b5ed5ee29b072f3713076eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfdf1cea4706507caa8a486646fe818e29e4a2533b5ed5ee29b072f3713076eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfdf1cea4706507caa8a486646fe818e29e4a2533b5ed5ee29b072f3713076eb", kill_on_drop: false }` [INFO] [stdout] bfdf1cea4706507caa8a486646fe818e29e4a2533b5ed5ee29b072f3713076eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c56cc69e5caeb608229693c93ef41960adf0c7c8219376a1f7c0fe674232dc5a [INFO] running `Command { std: "docker" "start" "-a" "c56cc69e5caeb608229693c93ef41960adf0c7c8219376a1f7c0fe674232dc5a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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] running `Command { std: "docker" "inspect" "c56cc69e5caeb608229693c93ef41960adf0c7c8219376a1f7c0fe674232dc5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c56cc69e5caeb608229693c93ef41960adf0c7c8219376a1f7c0fe674232dc5a", kill_on_drop: false }` [INFO] [stdout] c56cc69e5caeb608229693c93ef41960adf0c7c8219376a1f7c0fe674232dc5a