[INFO] cloning repository https://github.com/toantk238/rust_helloworld [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/toantk238/rust_helloworld" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoantk238%2Frust_helloworld", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoantk238%2Frust_helloworld'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0004d5aaef4c5e4ef4639f8d4e3552f62ae14d1 [INFO] testing toantk238/rust_helloworld against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftoantk238%2Frust_helloworld" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/toantk238/rust_helloworld [INFO] finished tweaking git repo https://github.com/toantk238/rust_helloworld [INFO] tweaked toml for git repo https://github.com/toantk238/rust_helloworld written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/toantk238/rust_helloworld 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/toantk238/rust_helloworld 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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] f47a638d6ac4a4d1122a2b86f08f4e175b3d6689fb731ed578026db3c837cf93 [INFO] running `Command { std: "docker" "start" "-a" "f47a638d6ac4a4d1122a2b86f08f4e175b3d6689fb731ed578026db3c837cf93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f47a638d6ac4a4d1122a2b86f08f4e175b3d6689fb731ed578026db3c837cf93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f47a638d6ac4a4d1122a2b86f08f4e175b3d6689fb731ed578026db3c837cf93", kill_on_drop: false }` [INFO] [stdout] f47a638d6ac4a4d1122a2b86f08f4e175b3d6689fb731ed578026db3c837cf93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] cfe248008467870c294f64f9e750c4ca1e1ae8877abd1bd29c1bf727992f6744 [INFO] running `Command { std: "docker" "start" "-a" "cfe248008467870c294f64f9e750c4ca1e1ae8877abd1bd29c1bf727992f6744", kill_on_drop: false }` [INFO] [stderr] Compiling rust_helloworld v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0382]: borrow of moved value: `s` [INFO] [stdout] --> src/main.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 2 | let s = String::from("Hellow"); [INFO] [stdout] | - move occurs because `s` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 3 | take_ownership(s); [INFO] [stdout] | - value moved here [INFO] [stdout] 4 | println!("toankt = {s}"); [INFO] [stdout] | ^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `take_ownership` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | fn take_ownership(some_string: String) { [INFO] [stdout] | -------------- ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 3 | take_ownership(s.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 `rust_helloworld` (bin "rust_helloworld") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "cfe248008467870c294f64f9e750c4ca1e1ae8877abd1bd29c1bf727992f6744", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfe248008467870c294f64f9e750c4ca1e1ae8877abd1bd29c1bf727992f6744", kill_on_drop: false }` [INFO] [stdout] cfe248008467870c294f64f9e750c4ca1e1ae8877abd1bd29c1bf727992f6744