[INFO] cloning repository https://github.com/codeslewis/Lifetimes_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/codeslewis/Lifetimes_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeslewis%2FLifetimes_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeslewis%2FLifetimes_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6d110e3edfaa4b026ef20c63b3b689b82c1bc5da [INFO] checking codeslewis/Lifetimes_Rust against master#7dc9ff5c629753b6930ecfe9a0446538b8e25fb7 for pr-85387 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeslewis%2FLifetimes_Rust" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/codeslewis/Lifetimes_Rust on toolchain 7dc9ff5c629753b6930ecfe9a0446538b8e25fb7 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/codeslewis/Lifetimes_Rust [INFO] finished tweaking git repo https://github.com/codeslewis/Lifetimes_Rust [INFO] tweaked toml for git repo https://github.com/codeslewis/Lifetimes_Rust written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/codeslewis/Lifetimes_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef944af8a4f5a6f8c0a853df8051044a72d8097ab11b0c42599390a3433dbbd7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef944af8a4f5a6f8c0a853df8051044a72d8097ab11b0c42599390a3433dbbd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef944af8a4f5a6f8c0a853df8051044a72d8097ab11b0c42599390a3433dbbd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef944af8a4f5a6f8c0a853df8051044a72d8097ab11b0c42599390a3433dbbd7", kill_on_drop: false }` [INFO] [stdout] ef944af8a4f5a6f8c0a853df8051044a72d8097ab11b0c42599390a3433dbbd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+7dc9ff5c629753b6930ecfe9a0446538b8e25fb7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9df83745e4c016a6f3ac961ea022be1903c6d02a0777efe17638425a5f6f73c8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9df83745e4c016a6f3ac961ea022be1903c6d02a0777efe17638425a5f6f73c8", kill_on_drop: false }` [INFO] [stderr] Checking lifetimes_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `string2` does not live long enough [INFO] [stdout] --> src/main.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | result = longest(string1.as_str(), string2.as_str()); [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 7 | } [INFO] [stdout] | - `string2` dropped here while still borrowed [INFO] [stdout] 8 | println!("The longest string is {}", result); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lifetimes_learning` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0597]: `string2` does not live long enough [INFO] [stdout] --> src/main.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 6 | result = longest(string1.as_str(), string2.as_str()); [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 7 | } [INFO] [stdout] | - `string2` dropped here while still borrowed [INFO] [stdout] 8 | println!("The longest string is {}", result); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "9df83745e4c016a6f3ac961ea022be1903c6d02a0777efe17638425a5f6f73c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9df83745e4c016a6f3ac961ea022be1903c6d02a0777efe17638425a5f6f73c8", kill_on_drop: false }` [INFO] [stdout] 9df83745e4c016a6f3ac961ea022be1903c6d02a0777efe17638425a5f6f73c8