[INFO] fetching crate strtools 0.3.1... [INFO] testing strtools-0.3.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate strtools 0.3.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate strtools 0.3.1 [INFO] finished tweaking crates.io crate strtools 0.3.1 [INFO] tweaked toml for crates.io crate strtools 0.3.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate strtools 0.3.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 9 packages to latest compatible versions [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.12.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1609a80edc26772c59af683bd8b09b38ea1a837aa4252a5e687258f6c9399fcc [INFO] running `Command { std: "docker" "start" "-a" "1609a80edc26772c59af683bd8b09b38ea1a837aa4252a5e687258f6c9399fcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1609a80edc26772c59af683bd8b09b38ea1a837aa4252a5e687258f6c9399fcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1609a80edc26772c59af683bd8b09b38ea1a837aa4252a5e687258f6c9399fcc", kill_on_drop: false }` [INFO] [stdout] 1609a80edc26772c59af683bd8b09b38ea1a837aa4252a5e687258f6c9399fcc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46fdd74f7031ef1dac4c4b5208728812b4dd937a4ce8f9fc80fcc3edd73ce127 [INFO] running `Command { std: "docker" "start" "-a" "46fdd74f7031ef1dac4c4b5208728812b4dd937a4ce8f9fc80fcc3edd73ce127", kill_on_drop: false }` [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling strtools v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/find/substr.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | if let Some(max) = max && (current.start..idx + char.len_utf8()).len() > max.get() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/find/substr.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | if let Some(max) = max && longest.len() == max.get() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: let chains are only allowed in Rust 2024 or later [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:116:19 [INFO] [stdout] | [INFO] [stdout] 116 | while let Some(&(i, ch)) = self.iter.peek() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_mut_refs` has been stable since 1.83.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | const_mut_refs, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `let_chains` has been stable since 1.88.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | let_chains [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | is_sorted, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for mutable reference `&mut Cow<'s, str>` in the current scope [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | if curr.is_borrowed() { [INFO] [stdout] | ^^^^^^^^^^^ this is an associated function, not a method [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] = note: the candidate is defined in an impl for the type `Cow<'_, B>` [INFO] [stdout] help: use associated function syntax instead [INFO] [stdout] | [INFO] [stdout] 125 - if curr.is_borrowed() { [INFO] [stdout] 125 + if Cow::<'s, str>::is_borrowed(&curr) { [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 125 - if curr.is_borrowed() { [INFO] [stdout] 125 + if curr.borrow() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for mutable reference `&mut Cow<'s, str>` in the current scope [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:137:21 [INFO] [stdout] | [INFO] [stdout] 137 | if curr.is_borrowed() { [INFO] [stdout] | ^^^^^^^^^^^ this is an associated function, not a method [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] = note: the candidate is defined in an impl for the type `Cow<'_, B>` [INFO] [stdout] help: use associated function syntax instead [INFO] [stdout] | [INFO] [stdout] 137 - if curr.is_borrowed() { [INFO] [stdout] 137 + if Cow::<'s, str>::is_borrowed(&curr) { [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 137 - if curr.is_borrowed() { [INFO] [stdout] 137 + if curr.borrow() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `strtools` (lib) due to 5 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "46fdd74f7031ef1dac4c4b5208728812b4dd937a4ce8f9fc80fcc3edd73ce127", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46fdd74f7031ef1dac4c4b5208728812b4dd937a4ce8f9fc80fcc3edd73ce127", kill_on_drop: false }` [INFO] [stdout] 46fdd74f7031ef1dac4c4b5208728812b4dd937a4ce8f9fc80fcc3edd73ce127