[INFO] cloning repository https://github.com/KarYuKuan/ch13_ownership_execise_06
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KarYuKuan/ch13_ownership_execise_06" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarYuKuan%2Fch13_ownership_execise_06", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarYuKuan%2Fch13_ownership_execise_06'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 311f2506af81a3f0004b609a41fe8194c328e7bd
[INFO] checking KarYuKuan/ch13_ownership_execise_06 against try#6284d7b4bd27983dba388146648ab844ca7d032f for pr-152971
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKarYuKuan%2Fch13_ownership_execise_06" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/KarYuKuan/ch13_ownership_execise_06
[INFO] finished tweaking git repo https://github.com/KarYuKuan/ch13_ownership_execise_06
[INFO] tweaked toml for git repo https://github.com/KarYuKuan/ch13_ownership_execise_06 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/KarYuKuan/ch13_ownership_execise_06 on toolchain 6284d7b4bd27983dba388146648ab844ca7d032f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/KarYuKuan/ch13_ownership_execise_06 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" "+6284d7b4bd27983dba388146648ab844ca7d032f" "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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3ff4f5e2cf4df7e904cb4fbf9995c7ee93323b25aba25f0c3eae21c41d53cb71
[INFO] running `Command { std: "docker" "start" "-a" "3ff4f5e2cf4df7e904cb4fbf9995c7ee93323b25aba25f0c3eae21c41d53cb71", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3ff4f5e2cf4df7e904cb4fbf9995c7ee93323b25aba25f0c3eae21c41d53cb71", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3ff4f5e2cf4df7e904cb4fbf9995c7ee93323b25aba25f0c3eae21c41d53cb71", kill_on_drop: false }`
[INFO] [stdout] 3ff4f5e2cf4df7e904cb4fbf9995c7ee93323b25aba25f0c3eae21c41d53cb71
[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" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d83b12270aa7faf228f0700a116a753c31b65dc6de21881865e354c1b30de826
[INFO] running `Command { std: "docker" "start" "-a" "d83b12270aa7faf228f0700a116a753c31b65dc6de21881865e354c1b30de826", kill_on_drop: false }`
[INFO] [stderr]     Checking ch13_ownership_execise_06 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0382]: borrow of moved value: `s2`
[INFO] [stdout]   --> src/main.rs:13:44
[INFO] [stdout]    |
[INFO] [stdout]  6 |     let s2 = String::from("goodye");
[INFO] [stdout]    |         -- move occurs because `s2` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]  7 |
[INFO] [stdout]  8 |     let s3 = take_and_give_back(s2);
[INFO] [stdout]    |                                 -- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 13 |     println!("----------the value of s1 : {s2}---------");
[INFO] [stdout]    |                                            ^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in function `take_and_give_back` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/main.rs:23:32
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn take_and_give_back(anything:String)->String{
[INFO] [stdout]    |    ------------------          ^^^^^^ this parameter takes ownership of the value
[INFO] [stdout]    |    |
[INFO] [stdout]    |    in this function
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout]  8 |     let s3 = take_and_give_back(s2.clone());
[INFO] [stdout]    |                                   ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `s2`
[INFO] [stdout]   --> src/main.rs:13:44
[INFO] [stdout]    |
[INFO] [stdout]  6 |     let s2 = String::from("goodye");
[INFO] [stdout]    |         -- move occurs because `s2` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout]  7 |
[INFO] [stdout]  8 |     let s3 = take_and_give_back(s2);
[INFO] [stdout]    |                                 -- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 13 |     println!("----------the value of s1 : {s2}---------");
[INFO] [stdout]    |                                            ^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] note: consider changing this parameter type in function `take_and_give_back` to borrow instead if owning the value isn't necessary
[INFO] [stdout]   --> src/main.rs:23:32
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn take_and_give_back(anything:String)->String{
[INFO] [stdout]    |    ------------------          ^^^^^^ this parameter takes ownership of the value
[INFO] [stdout]    |    |
[INFO] [stdout]    |    in this function
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout]  8 |     let s3 = take_and_give_back(s2.clone());
[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 `ch13_ownership_execise_06` (bin "ch13_ownership_execise_06") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `ch13_ownership_execise_06` (bin "ch13_ownership_execise_06" test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "d83b12270aa7faf228f0700a116a753c31b65dc6de21881865e354c1b30de826", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d83b12270aa7faf228f0700a116a753c31b65dc6de21881865e354c1b30de826", kill_on_drop: false }`
[INFO] [stdout] d83b12270aa7faf228f0700a116a753c31b65dc6de21881865e354c1b30de826
