[INFO] cloning repository https://github.com/loftmain/rust-study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/loftmain/rust-study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floftmain%2Frust-study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floftmain%2Frust-study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a23f389d53344c706ee3e4df2afafed643918a25 [INFO] testing loftmain/rust-study against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floftmain%2Frust-study" "/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/loftmain/rust-study [INFO] finished tweaking git repo https://github.com/loftmain/rust-study [INFO] tweaked toml for git repo https://github.com/loftmain/rust-study written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/loftmain/rust-study on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/loftmain/rust-study 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" "+562dee4820c458d823175268e41601d4c060588a" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23fe8ed83b340fba4e2204c141d26f4a24cd0d5405afc654171c7d66770b0580 [INFO] running `Command { std: "docker" "start" "-a" "23fe8ed83b340fba4e2204c141d26f4a24cd0d5405afc654171c7d66770b0580", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23fe8ed83b340fba4e2204c141d26f4a24cd0d5405afc654171c7d66770b0580", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23fe8ed83b340fba4e2204c141d26f4a24cd0d5405afc654171c7d66770b0580", kill_on_drop: false }` [INFO] [stdout] 23fe8ed83b340fba4e2204c141d26f4a24cd0d5405afc654171c7d66770b0580 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f599ea9021ede9973a58507102bbfac928f14e6bf75a3f9a01f3154ab48fb44 [INFO] running `Command { std: "docker" "start" "-a" "8f599ea9021ede9973a58507102bbfac928f14e6bf75a3f9a01f3154ab48fb44", kill_on_drop: false }` [INFO] [stderr] Compiling my-rust-book v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: borrow of moved value: `user` [INFO] [stdout] --> src/ownership_move/main.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 3 | let user: [String; 3] = [ [INFO] [stdout] | ---- move occurs because `user` has type `[String; 3]`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 8 | for c in user.into_iter() { [INFO] [stdout] | ----------- `user` moved due to this method call [INFO] [stdout] ... [INFO] [stdout] 11 | println!("{:?}", user); [INFO] [stdout] | ^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `user` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/iter/traits/collect.rs:312:17 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 8 | for c in user.clone().into_iter() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my-rust-book` (bin "ownership_move") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/option_enum/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | let y: Option = None; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `my-rust-book` (bin "enum_basic") due to 1 previous error [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/enum_basic/main.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let tomorrow: WEEK = 1; // compile error !!! [INFO] [stdout] | ---- ^ expected `WEEK`, found integer [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `rect2` [INFO] [stdout] --> src/struct_method/main.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 40 | let rect2 = Rectangle { [INFO] [stdout] | ----- move occurs because `rect2` has type `Rectangle`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 44 | rect2.destory(); [INFO] [stdout] | --------- `rect2` moved due to this method call [INFO] [stdout] 45 | [INFO] [stdout] 46 | println!("area size={} {:?}", rect2.area(), rect2); //compile error!!! [INFO] [stdout] | ^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `Rectangle::destory` takes ownership of the receiver `self`, which moves `rect2` [INFO] [stdout] --> src/struct_method/main.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | fn destory(self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `my-rust-book` (bin "struct_method") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "8f599ea9021ede9973a58507102bbfac928f14e6bf75a3f9a01f3154ab48fb44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f599ea9021ede9973a58507102bbfac928f14e6bf75a3f9a01f3154ab48fb44", kill_on_drop: false }` [INFO] [stdout] 8f599ea9021ede9973a58507102bbfac928f14e6bf75a3f9a01f3154ab48fb44