[INFO] cloning repository https://github.com/YoZaiKK/RustPractice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YoZaiKK/RustPractice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoZaiKK%2FRustPractice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoZaiKK%2FRustPractice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6acd2a1fdfd572b78d3e6205363d2db536ab954 [INFO] checking YoZaiKK/RustPractice against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYoZaiKK%2FRustPractice" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/YoZaiKK/RustPractice [INFO] finished tweaking git repo https://github.com/YoZaiKK/RustPractice [INFO] tweaked toml for git repo https://github.com/YoZaiKK/RustPractice written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/YoZaiKK/RustPractice on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/YoZaiKK/RustPractice 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f7bcd5ff2ca67753fdd86b03adc8823a2962f1fda6bb5b1f3407b06eb757803 [INFO] running `Command { std: "docker" "start" "-a" "3f7bcd5ff2ca67753fdd86b03adc8823a2962f1fda6bb5b1f3407b06eb757803", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f7bcd5ff2ca67753fdd86b03adc8823a2962f1fda6bb5b1f3407b06eb757803", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f7bcd5ff2ca67753fdd86b03adc8823a2962f1fda6bb5b1f3407b06eb757803", kill_on_drop: false }` [INFO] [stdout] 3f7bcd5ff2ca67753fdd86b03adc8823a2962f1fda6bb5b1f3407b06eb757803 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54e624ad0ce1c8af306b8418a4d975cc4abdd1f91953e3b96167dbd9d76ad350 [INFO] running `Command { std: "docker" "start" "-a" "54e624ad0ce1c8af306b8418a4d975cc4abdd1f91953e3b96167dbd9d76ad350", kill_on_drop: false }` [INFO] [stderr] Checking hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cadena2` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let cadena2 = cadena1.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cadena2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cadena2` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let cadena2 = cadena1.clone(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cadena2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `s1` [INFO] [stdout] --> src/main.rs:8:38 [INFO] [stdout] | [INFO] [stdout] 5 | let s1 = String::from("HOla"); [INFO] [stdout] | -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 6 | let s2 = s1; [INFO] [stdout] | -- value moved here [INFO] [stdout] 7 | [INFO] [stdout] 8 | println!{"El valor de s1 es {}", s1}; [INFO] [stdout] | ^^ value borrowed here after move [INFO] [stdout] | [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] 6 | let s2 = s1.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `s1` [INFO] [stdout] --> src/main.rs:8:38 [INFO] [stdout] | [INFO] [stdout] 5 | let s1 = String::from("HOla"); [INFO] [stdout] | -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 6 | let s2 = s1; [INFO] [stdout] | -- value moved here [INFO] [stdout] 7 | [INFO] [stdout] 8 | println!{"El valor de s1 es {}", s1}; [INFO] [stdout] | ^^ value borrowed here after move [INFO] [stdout] | [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] 6 | let s2 = s1.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `cadena3` [INFO] [stdout] --> src/main.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 20 | let cadena3 = String::from("Hola"); [INFO] [stdout] | ------- move occurs because `cadena3` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 21 | [INFO] [stdout] 22 | funcion(cadena3); [INFO] [stdout] | ------- value moved here [INFO] [stdout] 23 | [INFO] [stdout] 24 | println!("El valor de cadena3 es {}", cadena3); [INFO] [stdout] | ^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `funcion` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | fn funcion(cadena: 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] 22 | funcion(cadena3.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: `cadena3` [INFO] [stdout] --> src/main.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 20 | let cadena3 = String::from("Hola"); [INFO] [stdout] | ------- move occurs because `cadena3` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] 21 | [INFO] [stdout] 22 | funcion(cadena3); [INFO] [stdout] | ------- value moved here [INFO] [stdout] 23 | [INFO] [stdout] 24 | println!("El valor de cadena3 es {}", cadena3); [INFO] [stdout] | ^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `funcion` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | fn funcion(cadena: 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] 22 | funcion(cadena3.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 `hello_world` (bin "hello_world") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hello_world` (bin "hello_world" test) due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "54e624ad0ce1c8af306b8418a4d975cc4abdd1f91953e3b96167dbd9d76ad350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54e624ad0ce1c8af306b8418a4d975cc4abdd1f91953e3b96167dbd9d76ad350", kill_on_drop: false }` [INFO] [stdout] 54e624ad0ce1c8af306b8418a4d975cc4abdd1f91953e3b96167dbd9d76ad350