[INFO] cloning repository https://github.com/uvamsi76/Learn_RUST [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uvamsi76/Learn_RUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuvamsi76%2FLearn_RUST", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuvamsi76%2FLearn_RUST'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80df0bb06ce09110417c3db2cb8141cd1c08a914 [INFO] checking uvamsi76/Learn_RUST against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuvamsi76%2FLearn_RUST" "/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/uvamsi76/Learn_RUST on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uvamsi76/Learn_RUST [INFO] finished tweaking git repo https://github.com/uvamsi76/Learn_RUST [INFO] tweaked toml for git repo https://github.com/uvamsi76/Learn_RUST written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/uvamsi76/Learn_RUST 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking uvamsi76/Learn_RUST against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuvamsi76%2FLearn_RUST" "/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/uvamsi76/Learn_RUST on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uvamsi76/Learn_RUST [INFO] finished tweaking git repo https://github.com/uvamsi76/Learn_RUST [INFO] tweaked toml for git repo https://github.com/uvamsi76/Learn_RUST written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/uvamsi76/Learn_RUST 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 36a7637e0f7332898bdac65253f2d70f8b4edfb301781ffc70dddd64aa480457 [INFO] running `Command { std: "docker" "start" "-a" "36a7637e0f7332898bdac65253f2d70f8b4edfb301781ffc70dddd64aa480457", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36a7637e0f7332898bdac65253f2d70f8b4edfb301781ffc70dddd64aa480457", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36a7637e0f7332898bdac65253f2d70f8b4edfb301781ffc70dddd64aa480457", kill_on_drop: false }` [INFO] [stdout] 36a7637e0f7332898bdac65253f2d70f8b4edfb301781ffc70dddd64aa480457 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51a2adf7cc669b45d08ac0e0080f2d6bdad70fa28b6198eba9961ed46ab0bd80 [INFO] running `Command { std: "docker" "start" "-a" "51a2adf7cc669b45d08ac0e0080f2d6bdad70fa28b6198eba9961ed46ab0bd80", kill_on_drop: false }` [INFO] [stderr] Checking RUST v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `print_enum` and `shape` [INFO] [stdout] --> src/main.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use enums::{print_enum, shape}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `shape` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum shape{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `circle` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | circle(f32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `square` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | square(f32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Square` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `print_enum` and `shape` [INFO] [stdout] --> src/main.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use enums::{print_enum, shape}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `rectangle` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | rectangle(f32,f32) [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `shape` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum shape{ [INFO] [stdout] | ^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Shape` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `circle` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | circle(f32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Circle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `square` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | square(f32), [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Square` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `rectangle` should have an upper camel case name [INFO] [stdout] --> src/enums.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | rectangle(f32,f32) [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let ind=find_first_a(String::from("Preet")); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ind` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let ind=find_first_a(String::from("Preet")); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ind` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing_stuff_from_diff_file` is never used [INFO] [stdout] --> src/util1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn testing_stuff_from_diff_file() -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testing_stuff_from_diff_file` is never used [INFO] [stdout] --> src/util1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn testing_stuff_from_diff_file() -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_len_str` is never used [INFO] [stdout] --> src/util1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_len_str(sa:String) -> usize{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_len_str` is never used [INFO] [stdout] --> src/util1.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_len_str(sa:String) -> usize{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/util1.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct User{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/util1.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct User{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/util1.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Rect{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rect` is never constructed [INFO] [stdout] --> src/util1.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Rect{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area` and `print_static_value` are never used [INFO] [stdout] --> src/util1.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Rect{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 24 | //implementing a method inside a particular class in rust [INFO] [stdout] 25 | pub fn area(&self) ->i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn print_static_value() -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area` and `print_static_value` are never used [INFO] [stdout] --> src/util1.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Rect{ [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 24 | //implementing a method inside a particular class in rust [INFO] [stdout] 25 | pub fn area(&self) ->i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn print_static_value() -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/enums.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Direction{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/enums.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Direction{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `shape` is never used [INFO] [stdout] --> src/enums.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum shape{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `shape` is never used [INFO] [stdout] --> src/enums.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum shape{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_enum` is never used [INFO] [stdout] --> src/enums.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn print_enum(shape:shape) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_enum` is never used [INFO] [stdout] --> src/enums.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn print_enum(shape:shape) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] running `Command { std: "docker" "inspect" "51a2adf7cc669b45d08ac0e0080f2d6bdad70fa28b6198eba9961ed46ab0bd80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51a2adf7cc669b45d08ac0e0080f2d6bdad70fa28b6198eba9961ed46ab0bd80", kill_on_drop: false }` [INFO] [stdout] 51a2adf7cc669b45d08ac0e0080f2d6bdad70fa28b6198eba9961ed46ab0bd80