[INFO] fetching crate strtools 0.3.1... [INFO] checking strtools-0.3.1 against master#bbe853615821442ef11d6cd42a30a73432b38d89 for pr-154205 [INFO] extracting crate strtools 0.3.1 into /workspace/builds/worker-6-tc1/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-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate strtools 0.3.1 on toolchain bbe853615821442ef11d6cd42a30a73432b38d89 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bbe853615821442ef11d6cd42a30a73432b38d89" "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" "+bbe853615821442ef11d6cd42a30a73432b38d89" "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.13.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.18) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bbe853615821442ef11d6cd42a30a73432b38d89" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+bbe853615821442ef11d6cd42a30a73432b38d89" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 663637272e2f948d041bef3bfa461636ef6496598bbed837fcc2b3fa7a8002d1 [INFO] running `Command { std: "docker" "start" "-a" "663637272e2f948d041bef3bfa461636ef6496598bbed837fcc2b3fa7a8002d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "663637272e2f948d041bef3bfa461636ef6496598bbed837fcc2b3fa7a8002d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "663637272e2f948d041bef3bfa461636ef6496598bbed837fcc2b3fa7a8002d1", kill_on_drop: false }` [INFO] [stdout] 663637272e2f948d041bef3bfa461636ef6496598bbed837fcc2b3fa7a8002d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+bbe853615821442ef11d6cd42a30a73432b38d89" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64ab16287caabed9266a5b7da035dadb3f022e394ce55b2de4a0eedd7c7502b9 [INFO] running `Command { std: "docker" "start" "-a" "64ab16287caabed9266a5b7da035dadb3f022e394ce55b2de4a0eedd7c7502b9", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking 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] 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] 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] 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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:219:25 [INFO] [stdout] | [INFO] [stdout] 219 | assert!(!res[0].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] 219 - assert!(!res[0].is_borrowed()); [INFO] [stdout] 219 + assert!(!Cow::<'_, str>::is_borrowed(&res[0])); [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 219 - assert!(!res[0].is_borrowed()); [INFO] [stdout] 219 + assert!(!res[0].borrow()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:223:24 [INFO] [stdout] | [INFO] [stdout] 223 | assert!(res[1].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] 223 - assert!(res[1].is_borrowed()); [INFO] [stdout] 223 + assert!(Cow::<'_, str>::is_borrowed(&res[1])); [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 223 - assert!(res[1].is_borrowed()); [INFO] [stdout] 223 + assert!(res[1].borrow()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:227:25 [INFO] [stdout] | [INFO] [stdout] 227 | assert!(!res[2].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] 227 - assert!(!res[2].is_borrowed()); [INFO] [stdout] 227 + assert!(!Cow::<'_, str>::is_borrowed(&res[2])); [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 227 - assert!(!res[2].is_borrowed()); [INFO] [stdout] 227 + assert!(!res[2].borrow()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/split/non_escaped/sanitized.rs:231:24 [INFO] [stdout] | [INFO] [stdout] 231 | assert!(res[3].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] 231 - assert!(res[3].is_borrowed()); [INFO] [stdout] 231 + assert!(Cow::<'_, str>::is_borrowed(&res[3])); [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 231 - assert!(res[3].is_borrowed()); [INFO] [stdout] 231 + assert!(res[3].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 test) due to 9 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "64ab16287caabed9266a5b7da035dadb3f022e394ce55b2de4a0eedd7c7502b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64ab16287caabed9266a5b7da035dadb3f022e394ce55b2de4a0eedd7c7502b9", kill_on_drop: false }` [INFO] [stdout] 64ab16287caabed9266a5b7da035dadb3f022e394ce55b2de4a0eedd7c7502b9