[INFO] cloning repository https://github.com/RickKoenig/guess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RickKoenig/guess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRickKoenig%2Fguess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRickKoenig%2Fguess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fa82ceb83c6b39367947badaacee0c6f0a7ff382 [INFO] testing RickKoenig/guess against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRickKoenig%2Fguess" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/RickKoenig/guess [INFO] finished tweaking git repo https://github.com/RickKoenig/guess [INFO] tweaked toml for git repo https://github.com/RickKoenig/guess written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RickKoenig/guess on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RickKoenig/guess 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a332ddcaa7faf237dfbc48a701947c671a40a91cf9b1ee028b3641a48a0808a2 [INFO] running `Command { std: "docker" "start" "-a" "a332ddcaa7faf237dfbc48a701947c671a40a91cf9b1ee028b3641a48a0808a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a332ddcaa7faf237dfbc48a701947c671a40a91cf9b1ee028b3641a48a0808a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a332ddcaa7faf237dfbc48a701947c671a40a91cf9b1ee028b3641a48a0808a2", kill_on_drop: false }` [INFO] [stdout] a332ddcaa7faf237dfbc48a701947c671a40a91cf9b1ee028b3641a48a0808a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e5bda5768fa0f145e96bd8fc59b774c4d4b577f794c2a0cf2d3c0eef41fb5d6 [INFO] running `Command { std: "docker" "start" "-a" "1e5bda5768fa0f145e96bd8fc59b774c4d4b577f794c2a0cf2d3c0eef41fb5d6", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling guess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `string2` does not live long enough [INFO] [stdout] --> src/main10a.rs:31:48 [INFO] [stdout] | [INFO] [stdout] 30 | let string2 = String::from("xyz"); [INFO] [stdout] | ------- binding `string2` declared here [INFO] [stdout] 31 | result = longest(string1.as_str(), string2.as_str()); [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 32 | } [INFO] [stdout] | - `string2` dropped here while still borrowed [INFO] [stdout] 33 | println!("longest string = {}", result); [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `guess` (bin "guess") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "1e5bda5768fa0f145e96bd8fc59b774c4d4b577f794c2a0cf2d3c0eef41fb5d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e5bda5768fa0f145e96bd8fc59b774c4d4b577f794c2a0cf2d3c0eef41fb5d6", kill_on_drop: false }` [INFO] [stdout] 1e5bda5768fa0f145e96bd8fc59b774c4d4b577f794c2a0cf2d3c0eef41fb5d6