[INFO] cloning repository https://github.com/ayush-1-2-0-5/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ayush-1-2-0-5/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayush-1-2-0-5%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayush-1-2-0-5%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 408463c36822e9bd42b54faab659a24e2a00d8b9 [INFO] checking ayush-1-2-0-5/rust_learning against try#3298c2ca5e390fd0d104357fdeec514a152a9561 for pr-136490 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayush-1-2-0-5%2Frust_learning" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ayush-1-2-0-5/rust_learning on toolchain 3298c2ca5e390fd0d104357fdeec514a152a9561 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ayush-1-2-0-5/rust_learning [INFO] finished tweaking git repo https://github.com/ayush-1-2-0-5/rust_learning [INFO] tweaked toml for git repo https://github.com/ayush-1-2-0-5/rust_learning written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ayush-1-2-0-5/rust_learning 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" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed50945a3e2dbf2dbc21b7111777949e2ba51539f2fae6fe55d7b80b7360019c [INFO] running `Command { std: "docker" "start" "-a" "ed50945a3e2dbf2dbc21b7111777949e2ba51539f2fae6fe55d7b80b7360019c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed50945a3e2dbf2dbc21b7111777949e2ba51539f2fae6fe55d7b80b7360019c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed50945a3e2dbf2dbc21b7111777949e2ba51539f2fae6fe55d7b80b7360019c", kill_on_drop: false }` [INFO] [stdout] ed50945a3e2dbf2dbc21b7111777949e2ba51539f2fae6fe55d7b80b7360019c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+3298c2ca5e390fd0d104357fdeec514a152a9561" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d9259fee3807822924396504b7efc361128a66fbb05e1abba0d2dc5cbba1879 [INFO] running `Command { std: "docker" "start" "-a" "6d9259fee3807822924396504b7efc361128a66fbb05e1abba0d2dc5cbba1879", kill_on_drop: false }` [INFO] [stderr] Checking Rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/references_mutrefrences.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let s2=refrencetest(&str1); [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: `s3` [INFO] [stdout] --> src/references_mutrefrences.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let s3=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s4` [INFO] [stdout] --> src/references_mutrefrences.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let s4=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s5` [INFO] [stdout] --> src/references_mutrefrences.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let s5=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s6` [INFO] [stdout] --> src/references_mutrefrences.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let s6=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/references_mutrefrences.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let s2=refrencetest(&str1); [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: `s3` [INFO] [stdout] --> src/references_mutrefrences.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let s3=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s4` [INFO] [stdout] --> src/references_mutrefrences.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let s4=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s5` [INFO] [stdout] --> src/references_mutrefrences.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let s5=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s6` [INFO] [stdout] --> src/references_mutrefrences.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let s6=refrencetest(&str1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Shape` is more private than the item `calculate_area` [INFO] [stdout] --> src/implementations.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_area(shape:Shape)->f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `calculate_area` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Shape` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/implementations.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 9 | enum Shape { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `South`, `East`, and `West` are never constructed [INFO] [stdout] --> src/implementations.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 4 | North, [INFO] [stdout] 5 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Shape` is more private than the item `calculate_area` [INFO] [stdout] --> src/implementations.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_area(shape:Shape)->f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `calculate_area` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Shape` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/implementations.rs:9:2 [INFO] [stdout] | [INFO] [stdout] 9 | enum Shape { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `South`, `East`, and `West` are never constructed [INFO] [stdout] --> src/implementations.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 4 | North, [INFO] [stdout] 5 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 6 | East, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> src/implementations.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area` is never used [INFO] [stdout] --> src/implementations.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_area(shape:Shape)->f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> src/implementations.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area` is never used [INFO] [stdout] --> src/implementations.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn calculate_area(shape:Shape)->f64{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "6d9259fee3807822924396504b7efc361128a66fbb05e1abba0d2dc5cbba1879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d9259fee3807822924396504b7efc361128a66fbb05e1abba0d2dc5cbba1879", kill_on_drop: false }` [INFO] [stdout] 6d9259fee3807822924396504b7efc361128a66fbb05e1abba0d2dc5cbba1879