[INFO] cloning repository https://github.com/Lashi0812/Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lashi0812/Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLashi0812%2FRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLashi0812%2FRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d9114901ef5d5e7544b9533e5a5aa6e720027281 [INFO] checking Lashi0812/Rust/d9114901ef5d5e7544b9533e5a5aa6e720027281 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLashi0812%2FRust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lashi0812/Rust on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Lashi0812/Rust [INFO] finished tweaking git repo https://github.com/Lashi0812/Rust [INFO] tweaked toml for git repo https://github.com/Lashi0812/Rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Lashi0812/Rust 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31150520568b8bfe5458389cbf0af47ec366a22fa57953db63962c3191dcd067 [INFO] running `Command { std: "docker" "start" "-a" "31150520568b8bfe5458389cbf0af47ec366a22fa57953db63962c3191dcd067", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31150520568b8bfe5458389cbf0af47ec366a22fa57953db63962c3191dcd067", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31150520568b8bfe5458389cbf0af47ec366a22fa57953db63962c3191dcd067", kill_on_drop: false }` [INFO] [stdout] 31150520568b8bfe5458389cbf0af47ec366a22fa57953db63962c3191dcd067 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca90ec0b09e34c952cbb7a559c84c3c59de516c8b7fbbd8575ccfae81c5db11a [INFO] running `Command { std: "docker" "start" "-a" "ca90ec0b09e34c952cbb7a559c84c3c59de516c8b7fbbd8575ccfae81c5db11a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking ch_10a_traits v0.1.0 (/opt/rustwide/workdir/ch_10a_traits) [INFO] [stderr] Checking ch_13_closure v0.1.0 (/opt/rustwide/workdir/ch_13_closure) [INFO] [stderr] Checking ch_07a_restaurant v0.1.0 (/opt/rustwide/workdir/ch_07a_restaurant) [INFO] [stderr] Checking ch_10_generics v0.1.0 (/opt/rustwide/workdir/ch_10_generics) [INFO] [stderr] Checking ch_10b_lifetime v0.1.0 (/opt/rustwide/workdir/ch_10b_lifetime) [INFO] [stderr] Checking ch_06_enum v0.1.0 (/opt/rustwide/workdir/ch_06_enum) [INFO] [stderr] Checking ch_07_packages v0.1.0 (/opt/rustwide/workdir/ch_07_packages) [INFO] [stdout] error[E0597]: `x` does not live long enough [INFO] [stdout] --> ch_10b_lifetime/bin/t_00_preventing_dangling_reference.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 4 | let x = 5; [INFO] [stdout] | - binding `x` declared here [INFO] [stdout] 5 | r =&x; [INFO] [stdout] | ^^ borrowed value does not live long enough [INFO] [stdout] 6 | } [INFO] [stdout] | - `x` dropped here while still borrowed [INFO] [stdout] 7 | println!("r = {r}"); [INFO] [stdout] | --- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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 `ch_10b_lifetime` (bin "preventing_dangling_reference") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> ch_13_closure/bin/t_01_cant_have_diff_type_for_single_parameter.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | let i = cant_have_multiple_type(5); [INFO] [stdout] | ----------------------- ^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | | [INFO] [stdout] | | expected `String`, found integer [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: expected because the closure was earlier called with an argument of type `String` [INFO] [stdout] --> ch_13_closure/bin/t_01_cant_have_diff_type_for_single_parameter.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | let s = cant_have_multiple_type(String::from("hello")); [INFO] [stdout] | ----------------------- ^^^^^^^^^^^^^^^^^^^^^ expected because this argument is of type `String` [INFO] [stdout] | | [INFO] [stdout] | in this closure call [INFO] [stdout] note: closure parameter defined here [INFO] [stdout] --> ch_13_closure/bin/t_01_cant_have_diff_type_for_single_parameter.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | let cant_have_multiple_type = |x| x; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> ch_10b_lifetime/bin/t_01_generic_lifetime_in_function.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | fn longest(x: &str, y: &str) -> &str { [INFO] [stdout] | ---- ---- ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `x` or `y` [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 1 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ++++ ++ ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ch_13_closure` (bin "cant_have_diff_type_for_single_parameter" test) due to 2 previous errors [INFO] [stderr] error: could not compile `ch_10b_lifetime` (bin "generic_lifetime_in_function") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "ca90ec0b09e34c952cbb7a559c84c3c59de516c8b7fbbd8575ccfae81c5db11a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca90ec0b09e34c952cbb7a559c84c3c59de516c8b7fbbd8575ccfae81c5db11a", kill_on_drop: false }` [INFO] [stdout] ca90ec0b09e34c952cbb7a559c84c3c59de516c8b7fbbd8575ccfae81c5db11a