[INFO] cloning repository https://github.com/adityx-reposit/rust-basics
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adityx-reposit/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityx-reposit%2Frust-basics", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityx-reposit%2Frust-basics'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e481bd44e2cc9895278854d07c3bc160845a0f6a
[INFO] checking adityx-reposit/rust-basics against c397dae808f70caebab1fc4e11b3edf7e59f58c7 for pr-158759-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityx-reposit%2Frust-basics" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/adityx-reposit/rust-basics
[INFO] finished tweaking git repo https://github.com/adityx-reposit/rust-basics
[INFO] tweaked toml for git repo https://github.com/adityx-reposit/rust-basics written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/adityx-reposit/rust-basics on toolchain c397dae808f70caebab1fc4e11b3edf7e59f58c7
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c397dae808f70caebab1fc4e11b3edf7e59f58c7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/adityx-reposit/rust-basics 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" "+c397dae808f70caebab1fc4e11b3edf7e59f58c7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5
[INFO] running `Command { std: "docker" "start" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5" "/opt/rustwide/cargo-home/bin/cargo" "+c397dae808f70caebab1fc4e11b3edf7e59f58c7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5" "/opt/rustwide/cargo-home/bin/cargo" "+c397dae808f70caebab1fc4e11b3edf7e59f58c7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking Generics v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::string`
[INFO] [stdout]   --> src/main.rs:99:5
[INFO] [stdout]    |
[INFO] [stdout] 99 | use std::string;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::string`
[INFO] [stdout]   --> src/main.rs:99:5
[INFO] [stdout]    |
[INFO] [stdout] 99 | use std::string;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `c`
[INFO] [stdout]    --> src/main.rs:145:6
[INFO] [stdout]     |
[INFO] [stdout] 138 | let c=Circle{
[INFO] [stdout]     |     - move occurs because `c` has type `Circle`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 142 | area(c);
[INFO] [stdout]     |      - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 145 | area(c);
[INFO] [stdout]     |      ^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] note: consider changing this parameter type in function `area` to borrow instead if owning the value isn't necessary
[INFO] [stdout]    --> src/main.rs:127:22
[INFO] [stdout]     |
[INFO] [stdout] 127 | fn area <T:Shapes>(r:T){
[INFO] [stdout]     |    ----              ^ this parameter takes ownership of the value
[INFO] [stdout]     |    |
[INFO] [stdout]     |    in this function
[INFO] [stdout] note: if `Circle` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/main.rs:113:1
[INFO] [stdout]     |
[INFO] [stdout] 113 | struct Circle{
[INFO] [stdout]     | ^^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 142 | area(c);
[INFO] [stdout]     |      - you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `r`
[INFO] [stdout]    --> src/main.rs:146:6
[INFO] [stdout]     |
[INFO] [stdout] 133 | let r=Rect{
[INFO] [stdout]     |     - move occurs because `r` has type `Rect`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 141 | area(r);
[INFO] [stdout]     |      - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 146 | area(r);
[INFO] [stdout]     |      ^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] note: consider changing this parameter type in function `area` to borrow instead if owning the value isn't necessary
[INFO] [stdout]    --> src/main.rs:127:22
[INFO] [stdout]     |
[INFO] [stdout] 127 | fn area <T:Shapes>(r:T){
[INFO] [stdout]     |    ----              ^ this parameter takes ownership of the value
[INFO] [stdout]     |    |
[INFO] [stdout]     |    in this function
[INFO] [stdout] note: if `Rect` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/main.rs:101:1
[INFO] [stdout]     |
[INFO] [stdout] 101 | struct Rect{
[INFO] [stdout]     | ^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 141 | area(r);
[INFO] [stdout]     |      - you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `Generics` (bin "Generics") due to 2 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0382]: use of moved value: `c`
[INFO] [stdout]    --> src/main.rs:145:6
[INFO] [stdout]     |
[INFO] [stdout] 138 | let c=Circle{
[INFO] [stdout]     |     - move occurs because `c` has type `Circle`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 142 | area(c);
[INFO] [stdout]     |      - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 145 | area(c);
[INFO] [stdout]     |      ^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] note: consider changing this parameter type in function `area` to borrow instead if owning the value isn't necessary
[INFO] [stdout]    --> src/main.rs:127:22
[INFO] [stdout]     |
[INFO] [stdout] 127 | fn area <T:Shapes>(r:T){
[INFO] [stdout]     |    ----              ^ this parameter takes ownership of the value
[INFO] [stdout]     |    |
[INFO] [stdout]     |    in this function
[INFO] [stdout] note: if `Circle` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/main.rs:113:1
[INFO] [stdout]     |
[INFO] [stdout] 113 | struct Circle{
[INFO] [stdout]     | ^^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 142 | area(c);
[INFO] [stdout]     |      - you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `r`
[INFO] [stdout]    --> src/main.rs:146:6
[INFO] [stdout]     |
[INFO] [stdout] 133 | let r=Rect{
[INFO] [stdout]     |     - move occurs because `r` has type `Rect`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 141 | area(r);
[INFO] [stdout]     |      - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 146 | area(r);
[INFO] [stdout]     |      ^ value used here after move
[INFO] [stdout]     |
[INFO] [stdout] note: consider changing this parameter type in function `area` to borrow instead if owning the value isn't necessary
[INFO] [stdout]    --> src/main.rs:127:22
[INFO] [stdout]     |
[INFO] [stdout] 127 | fn area <T:Shapes>(r:T){
[INFO] [stdout]     |    ----              ^ this parameter takes ownership of the value
[INFO] [stdout]     |    |
[INFO] [stdout]     |    in this function
[INFO] [stdout] note: if `Rect` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/main.rs:101:1
[INFO] [stdout]     |
[INFO] [stdout] 101 | struct Rect{
[INFO] [stdout]     | ^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout] 141 | area(r);
[INFO] [stdout]     |      - you could clone this value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `Generics` (bin "Generics" test) due to 2 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5", kill_on_drop: false }`
[INFO] [stdout] 08a83dafc3d1d54e7de4d07cb49feea7b4233f75bb218e8d82ac36abb67962d5
