[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] building Lashi0812/Rust against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLashi0812%2FRust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Lashi0812/Rust on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "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-3-tc2/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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 66dccd272f98086dfda0c14e62c945acfaf5946d766936df7cfc49666815fb23 [INFO] running `Command { std: "docker" "start" "-a" "66dccd272f98086dfda0c14e62c945acfaf5946d766936df7cfc49666815fb23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "66dccd272f98086dfda0c14e62c945acfaf5946d766936df7cfc49666815fb23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66dccd272f98086dfda0c14e62c945acfaf5946d766936df7cfc49666815fb23", kill_on_drop: false }` [INFO] [stdout] 66dccd272f98086dfda0c14e62c945acfaf5946d766936df7cfc49666815fb23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e0f835b72a840a442551540cef03514b6a183680f8b4e6b8336a487870f9f1b [INFO] running `Command { std: "docker" "start" "-a" "8e0f835b72a840a442551540cef03514b6a183680f8b4e6b8336a487870f9f1b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling ch_10a_traits v0.1.0 (/opt/rustwide/workdir/ch_10a_traits) [INFO] [stderr] Compiling ch_10b_lifetime v0.1.0 (/opt/rustwide/workdir/ch_10b_lifetime) [INFO] [stderr] Compiling ch_13_closure v0.1.0 (/opt/rustwide/workdir/ch_13_closure) [INFO] [stderr] Compiling ch_04_ownership v0.1.0 (/opt/rustwide/workdir/ch_04_ownership) [INFO] [stderr] Compiling ch_06_enum v0.1.0 (/opt/rustwide/workdir/ch_06_enum) [INFO] [stderr] Compiling ch_05_struct v0.1.0 (/opt/rustwide/workdir/ch_05_struct) [INFO] [stderr] Compiling ch_10_generics v0.1.0 (/opt/rustwide/workdir/ch_10_generics) [INFO] [stderr] Compiling ch_04b_slice_type v0.1.0 (/opt/rustwide/workdir/ch_04b_slice_type) [INFO] [stderr] Compiling ch_07_packages v0.1.0 (/opt/rustwide/workdir/ch_07_packages) [INFO] [stderr] Compiling ch_01_hello v0.1.0 (/opt/rustwide/workdir/ch_01_hello) [INFO] [stderr] Compiling ch_04a_ownership_errors v0.1.0 (/opt/rustwide/workdir/ch_04a_ownership_errors) [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] [stderr] error: could not compile `ch_10b_lifetime` (bin "preventing_dangling_reference") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [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] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ch_13_closure` (bin "cant_have_diff_type_for_single_parameter") due to 1 previous error [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> ch_04_ownership/src/main.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let num = &v[3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> ch_04a_ownership_errors/src/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let first = &name.0; //? name.0 and name don't have write permission [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> ch_04a_ownership_errors/src/main.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let first = get_first(&name); //? name.0 and name don't have write permission [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8e0f835b72a840a442551540cef03514b6a183680f8b4e6b8336a487870f9f1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e0f835b72a840a442551540cef03514b6a183680f8b4e6b8336a487870f9f1b", kill_on_drop: false }` [INFO] [stdout] 8e0f835b72a840a442551540cef03514b6a183680f8b4e6b8336a487870f9f1b