[INFO] fetching crate spaceslugs 0.1.0... [INFO] testing spaceslugs-0.1.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate spaceslugs 0.1.0 into /workspace/builds/worker-4-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-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate spaceslugs 0.1.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60a9ef9b74987a0f7ec2aaae22e7fa2aed92e2d20471657557d2fe4ca245abbe [INFO] running `Command { std: "docker" "start" "-a" "60a9ef9b74987a0f7ec2aaae22e7fa2aed92e2d20471657557d2fe4ca245abbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60a9ef9b74987a0f7ec2aaae22e7fa2aed92e2d20471657557d2fe4ca245abbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60a9ef9b74987a0f7ec2aaae22e7fa2aed92e2d20471657557d2fe4ca245abbe", kill_on_drop: false }` [INFO] [stdout] 60a9ef9b74987a0f7ec2aaae22e7fa2aed92e2d20471657557d2fe4ca245abbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b96bb6a068d4e5b9b76c2d7f79abb08610f5353c311fc05b7548b5be7f84c06f [INFO] running `Command { std: "docker" "start" "-a" "b96bb6a068d4e5b9b76c2d7f79abb08610f5353c311fc05b7548b5be7f84c06f", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling regex v1.11.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" "b96bb6a068d4e5b9b76c2d7f79abb08610f5353c311fc05b7548b5be7f84c06f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b96bb6a068d4e5b9b76c2d7f79abb08610f5353c311fc05b7548b5be7f84c06f", kill_on_drop: false }` [INFO] [stdout] b96bb6a068d4e5b9b76c2d7f79abb08610f5353c311fc05b7548b5be7f84c06f