[INFO] fetching crate uu_head 0.0.26... [INFO] checking uu_head-0.0.26 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate uu_head 0.0.26 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate uu_head 0.0.26 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate uu_head 0.0.26 [INFO] finished tweaking crates.io crate uu_head 0.0.26 [INFO] tweaked toml for crates.io crate uu_head 0.0.26 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate crates.io crate uu_head 0.0.26 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wild v2.2.1 [INFO] [stderr] Downloaded uuhelp_parser v0.0.26 [INFO] [stderr] Downloaded uucore_procs v0.0.26 [INFO] [stderr] Downloaded os_display v0.1.3 [INFO] [stderr] Downloaded uucore v0.0.26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e03ed6d43224f8570d4d0bba04e6869590b5fce3665b89fe3c79ab79d6cd2184 [INFO] running `Command { std: "docker" "start" "-a" "e03ed6d43224f8570d4d0bba04e6869590b5fce3665b89fe3c79ab79d6cd2184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e03ed6d43224f8570d4d0bba04e6869590b5fce3665b89fe3c79ab79d6cd2184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e03ed6d43224f8570d4d0bba04e6869590b5fce3665b89fe3c79ab79d6cd2184", kill_on_drop: false }` [INFO] [stdout] e03ed6d43224f8570d4d0bba04e6869590b5fce3665b89fe3c79ab79d6cd2184 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a1d9c44385cd95ba387d6cc8d5faaf420e47f04f4d02e7bfa8f8abfad0d86b2 [INFO] running `Command { std: "docker" "start" "-a" "1a1d9c44385cd95ba387d6cc8d5faaf420e47f04f4d02e7bfa8f8abfad0d86b2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.37.26 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking anstyle v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling uuhelp_parser v0.0.26 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking dunce v1.0.4 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking wild v2.2.1 [INFO] [stderr] Checking os_display v0.1.3 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling uucore_procs v0.0.26 [INFO] [stderr] Checking terminal_size v0.2.6 [INFO] [stderr] Checking clap_builder v4.4.2 [INFO] [stderr] Checking clap v4.4.2 [INFO] [stderr] Checking uucore v0.0.26 [INFO] [stderr] Checking uu_head v0.0.26 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.94s [INFO] running `Command { std: "docker" "inspect" "1a1d9c44385cd95ba387d6cc8d5faaf420e47f04f4d02e7bfa8f8abfad0d86b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a1d9c44385cd95ba387d6cc8d5faaf420e47f04f4d02e7bfa8f8abfad0d86b2", kill_on_drop: false }` [INFO] [stdout] 1a1d9c44385cd95ba387d6cc8d5faaf420e47f04f4d02e7bfa8f8abfad0d86b2 [INFO] checking uu_head-0.0.26 against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] extracting crate uu_head 0.0.26 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate uu_head 0.0.26 on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate uu_head 0.0.26 [INFO] finished tweaking crates.io crate uu_head 0.0.26 [INFO] tweaked toml for crates.io crate uu_head 0.0.26 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate crates.io crate uu_head 0.0.26 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 112f83dc332e8ea5897acc2e079c3649633a890b99de9ded10289bf428300c9f [INFO] running `Command { std: "docker" "start" "-a" "112f83dc332e8ea5897acc2e079c3649633a890b99de9ded10289bf428300c9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "112f83dc332e8ea5897acc2e079c3649633a890b99de9ded10289bf428300c9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "112f83dc332e8ea5897acc2e079c3649633a890b99de9ded10289bf428300c9f", kill_on_drop: false }` [INFO] [stdout] 112f83dc332e8ea5897acc2e079c3649633a890b99de9ded10289bf428300c9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1db50118809e6c85230fe5e36035ca33fb25283edf44dc19ef70d292e70e8336 [INFO] running `Command { std: "docker" "start" "-a" "1db50118809e6c85230fe5e36035ca33fb25283edf44dc19ef70d292e70e8336", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling rustix v0.37.26 [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Checking anstyle v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Checking anstyle-query v1.0.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.5.0 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking anstyle-parse v0.2.0 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Compiling uuhelp_parser v0.0.26 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking os_display v0.1.3 [INFO] [stderr] Checking dunce v1.0.4 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking wild v2.2.1 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking anstream v0.5.0 [INFO] [stderr] Compiling uucore_procs v0.0.26 [INFO] [stderr] Checking terminal_size v0.2.6 [INFO] [stderr] Checking clap_builder v4.4.2 [INFO] [stderr] Checking clap v4.4.2 [INFO] [stderr] Checking uucore v0.0.26 [INFO] [stderr] Checking uu_head v0.0.26 (/tmp/fixit) [INFO] [stderr] Migrating src/head.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.19s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking uu_head v0.0.26 (/tmp/fixit) [INFO] [stdout] error[E0597]: `chars` does not live long enough [INFO] [stdout] --> src/parse.rs:33:61 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_obsolete(src: &str) -> Option, ParseError>> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 18 | let mut chars = src.char_indices(); [INFO] [stdout] | --------- binding `chars` declared here [INFO] [stdout] ... [INFO] [stdout] 33 | process_num_block(&src[1..=num_end], last_char, &mut chars) [INFO] [stdout] | ------------------------------------------------^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `chars` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `chars` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `chars` does not live long enough [INFO] [stdout] --> src/parse.rs:33:61 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_obsolete(src: &str) -> Option, ParseError>> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 18 | let mut chars = src.char_indices(); [INFO] [stdout] | --------- binding `chars` declared here [INFO] [stdout] ... [INFO] [stdout] 33 | process_num_block(&src[1..=num_end], last_char, &mut chars) [INFO] [stdout] | ------------------------------------------------^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `chars` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `chars` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local variable `second` [INFO] [stdout] --> src/head.rs:161:35 [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(s) = second.to_str() { [INFO] [stdout] | ------ `second` is borrowed here [INFO] [stdout] 160 | match parse::parse_obsolete(s) { [INFO] [stdout] 161 | Some(Ok(iter)) => Ok(Box::new(vec![first].into_iter().chain(iter).chain(args))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `second` because it is borrowed [INFO] [stdout] --> src/head.rs:175:49 [INFO] [stdout] | [INFO] [stdout] 153 | fn arg_iterate<'a>( [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 158 | if let Some(second) = args.next() { [INFO] [stdout] | ------ binding `second` declared here [INFO] [stdout] 159 | if let Some(s) = second.to_str() { [INFO] [stdout] | ------ borrow of `second` occurs here [INFO] [stdout] 160 | match parse::parse_obsolete(s) { [INFO] [stdout] 161 | Some(Ok(iter)) => Ok(Box::new(vec![first].into_iter().chain(iter).chain(args))), [INFO] [stdout] | ------------------------------------------------------------- returning this value requires that `second` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 175 | None => Ok(Box::new(vec![first, second].into_iter().chain(args))), [INFO] [stdout] | ^^^^^^ move out of `second` occurs here [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(s) = second.clone().to_str() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `uu_head` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return value referencing local variable `second` [INFO] [stdout] --> src/head.rs:161:35 [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(s) = second.to_str() { [INFO] [stdout] | ------ `second` is borrowed here [INFO] [stdout] 160 | match parse::parse_obsolete(s) { [INFO] [stdout] 161 | Some(Ok(iter)) => Ok(Box::new(vec![first].into_iter().chain(iter).chain(args))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `second` because it is borrowed [INFO] [stdout] --> src/head.rs:175:49 [INFO] [stdout] | [INFO] [stdout] 153 | fn arg_iterate<'a>( [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 158 | if let Some(second) = args.next() { [INFO] [stdout] | ------ binding `second` declared here [INFO] [stdout] 159 | if let Some(s) = second.to_str() { [INFO] [stdout] | ------ borrow of `second` occurs here [INFO] [stdout] 160 | match parse::parse_obsolete(s) { [INFO] [stdout] 161 | Some(Ok(iter)) => Ok(Box::new(vec![first].into_iter().chain(iter).chain(args))), [INFO] [stdout] | ------------------------------------------------------------- returning this value requires that `second` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 175 | None => Ok(Box::new(vec![first, second].into_iter().chain(args))), [INFO] [stdout] | ^^^^^^ move out of `second` occurs here [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 159 | if let Some(s) = second.clone().to_str() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `uu_head` (lib test) due to 4 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "1db50118809e6c85230fe5e36035ca33fb25283edf44dc19ef70d292e70e8336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1db50118809e6c85230fe5e36035ca33fb25283edf44dc19ef70d292e70e8336", kill_on_drop: false }` [INFO] [stdout] 1db50118809e6c85230fe5e36035ca33fb25283edf44dc19ef70d292e70e8336