[INFO] cloning repository https://github.com/Ronnie-Ahmed/rust_projects [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ronnie-Ahmed/rust_projects" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRonnie-Ahmed%2Frust_projects", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRonnie-Ahmed%2Frust_projects'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99620969f046fdffdee8015864dc3ba74efecf79 [INFO] building Ronnie-Ahmed/rust_projects against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRonnie-Ahmed%2Frust_projects" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Ronnie-Ahmed/rust_projects [INFO] finished tweaking git repo https://github.com/Ronnie-Ahmed/rust_projects [INFO] tweaked toml for git repo https://github.com/Ronnie-Ahmed/rust_projects written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Ronnie-Ahmed/rust_projects on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Ronnie-Ahmed/rust_projects 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-targets v0.52.4 [INFO] [stderr] Downloaded fastrand v2.0.2 [INFO] [stderr] Downloaded socket2 v0.5.6 [INFO] [stderr] Downloaded errno v0.3.8 [INFO] [stderr] Downloaded proc-macro2 v1.0.79 [INFO] [stderr] Downloaded security-framework-sys v2.10.0 [INFO] [stderr] Downloaded rustls-pki-types v1.4.1 [INFO] [stderr] Downloaded rustls-pemfile v2.1.1 [INFO] [stderr] Downloaded getrandom v0.2.12 [INFO] [stderr] Downloaded ryu v1.0.17 [INFO] [stderr] Downloaded cc v1.0.90 [INFO] [stderr] Downloaded serde_derive v1.0.197 [INFO] [stderr] Downloaded security-framework v2.10.0 [INFO] [stderr] Downloaded serde v1.0.197 [INFO] [stderr] Downloaded bumpalo v3.15.4 [INFO] [stderr] Downloaded base64 v0.22.0 [INFO] [stderr] Downloaded serde_json v1.0.115 [INFO] [stderr] Downloaded hyper v1.2.0 [INFO] [stderr] Downloaded reqwest v0.12.3 [INFO] [stderr] Downloaded syn v2.0.58 [INFO] [stderr] Downloaded rustix v0.38.32 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.52.4 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.52.4 [INFO] [stderr] Downloaded windows_i686_gnu v0.52.4 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.52.4 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.52.4 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.52.4 [INFO] [stderr] Downloaded windows_i686_msvc v0.52.4 [INFO] [stderr] Downloaded encoding_rs v0.8.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff2eddeccb6d4bc6dff0b99c775e0dab09c3f25b750034ec065169d523c50f11 [INFO] running `Command { std: "docker" "start" "-a" "ff2eddeccb6d4bc6dff0b99c775e0dab09c3f25b750034ec065169d523c50f11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff2eddeccb6d4bc6dff0b99c775e0dab09c3f25b750034ec065169d523c50f11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff2eddeccb6d4bc6dff0b99c775e0dab09c3f25b750034ec065169d523c50f11", kill_on_drop: false }` [INFO] [stdout] ff2eddeccb6d4bc6dff0b99c775e0dab09c3f25b750034ec065169d523c50f11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 77bb1d4000a61f64feaaa5ac2f7d55c370ced01957e27a498bc518422d70dd85 [INFO] running `Command { std: "docker" "start" "-a" "77bb1d4000a61f64feaaa5ac2f7d55c370ced01957e27a498bc518422d70dd85", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling rustls-pki-types v1.4.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rustls-pemfile v2.1.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling base64 v0.22.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.4.4 [INFO] [stderr] Compiling hyper v1.2.0 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.3 [INFO] [stderr] Compiling rust_calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/calculator.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, result}; [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: `error_chain::error_chain` [INFO] [stdout] --> src/rust_get_request.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use error_chain::error_chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::example_generated::Error` [INFO] [stdout] --> src/password_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use error_chain::example_generated::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::Chars` [INFO] [stdout] --> src/password_generator.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{io, str::Chars}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::prelude::*` [INFO] [stdout] --> src/todo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/simple_chat.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Bytes, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/file_tutorial.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::{OpenOptions,write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/voter_management_system.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SHA256` [INFO] [stdout] --> src/voter_management_system.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use ring::digest::{self, Digest,SHA256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::stdin` [INFO] [stdout] --> src/employee.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::employee` [INFO] [stdout] --> src/employee.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::employee; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/todo.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut choices=get_input("Enter your choices: "); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bank_management.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut choice:u32 = match input.trim().parse(){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voter_management_system.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut choice:u32=match input.trim().parse(){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/employee.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut choice:u32=match input.trim().parse(){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_tutorial` is never used [INFO] [stdout] --> src/file_tutorial.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn file_tutorial(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_create` is never used [INFO] [stdout] --> src/file_tutorial.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn write_create(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/file_tutorial.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read_file(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_file` is never used [INFO] [stdout] --> src/file_tutorial.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn append_to_file()->std::io::Result<()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `result_type` is never used [INFO] [stdout] --> src/resulttype.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn result_type(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> src/resulttype.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn divide(x:u32,y:u32)->Result{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `EmplyeeBehavior` is never used [INFO] [stdout] --> src/employee.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait EmplyeeBehavior{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `age` and `department` are never read [INFO] [stdout] --> src/employee.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct Employee{ [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 24 | name:String, [INFO] [stdout] 25 | age:u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | department:Department [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Employee` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/inventory.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Inventory{ [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_name(&self,name:&str)->Option<&T>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `category` is never read [INFO] [stdout] --> src/inventory.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct Tool{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 37 | name:String, [INFO] [stdout] 38 | category:String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rust_get_request.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | res.read_to_string(&mut body); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 9 | let _ = res.read_to_string(&mut body); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Simple_Chat` should have a snake case name [INFO] [stdout] --> src/simple_chat.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn Simple_Chat(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `simple_chat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/file_tutorial.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | append_to_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = append_to_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 33s [INFO] running `Command { std: "docker" "inspect" "77bb1d4000a61f64feaaa5ac2f7d55c370ced01957e27a498bc518422d70dd85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77bb1d4000a61f64feaaa5ac2f7d55c370ced01957e27a498bc518422d70dd85", kill_on_drop: false }` [INFO] [stdout] 77bb1d4000a61f64feaaa5ac2f7d55c370ced01957e27a498bc518422d70dd85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dfd7c3fd890925c378ebbf18cc0e1e9e851d48c24465ecdba471f640338d2c89 [INFO] running `Command { std: "docker" "start" "-a" "dfd7c3fd890925c378ebbf18cc0e1e9e851d48c24465ecdba471f640338d2c89", kill_on_drop: false }` [INFO] [stderr] Compiling rust_calculator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/calculator.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io, result}; [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: `error_chain::error_chain` [INFO] [stdout] --> src/rust_get_request.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use error_chain::error_chain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error_chain::example_generated::Error` [INFO] [stdout] --> src/password_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use error_chain::example_generated::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::Chars` [INFO] [stdout] --> src/password_generator.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{io, str::Chars}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::prelude::*` [INFO] [stdout] --> src/todo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bytes` [INFO] [stdout] --> src/simple_chat.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Bytes, Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/file_tutorial.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::{OpenOptions,write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::hash` [INFO] [stdout] --> src/voter_management_system.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::hash; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SHA256` [INFO] [stdout] --> src/voter_management_system.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use ring::digest::{self, Digest,SHA256}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::stdin` [INFO] [stdout] --> src/employee.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::io::stdin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::employee` [INFO] [stdout] --> src/employee.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::employee; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/todo.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let mut choices=get_input("Enter your choices: "); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bank_management.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut choice:u32 = match input.trim().parse(){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/voter_management_system.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut choice:u32=match input.trim().parse(){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/employee.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut choice:u32=match input.trim().parse(){ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_tutorial` is never used [INFO] [stdout] --> src/file_tutorial.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn file_tutorial(){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_create` is never used [INFO] [stdout] --> src/file_tutorial.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn write_create(){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file` is never used [INFO] [stdout] --> src/file_tutorial.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn read_file(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_to_file` is never used [INFO] [stdout] --> src/file_tutorial.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn append_to_file()->std::io::Result<()>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `result_type` is never used [INFO] [stdout] --> src/resulttype.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn result_type(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divide` is never used [INFO] [stdout] --> src/resulttype.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn divide(x:u32,y:u32)->Result{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `EmplyeeBehavior` is never used [INFO] [stdout] --> src/employee.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait EmplyeeBehavior{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `age` and `department` are never read [INFO] [stdout] --> src/employee.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | struct Employee{ [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 24 | name:String, [INFO] [stdout] 25 | age:u32, [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | department:Department [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Employee` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/inventory.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Inventory{ [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_name(&self,name:&str)->Option<&T>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `category` is never read [INFO] [stdout] --> src/inventory.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct Tool{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 37 | name:String, [INFO] [stdout] 38 | category:String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/rust_get_request.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | res.read_to_string(&mut body); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 9 | let _ = res.read_to_string(&mut body); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Simple_Chat` should have a snake case name [INFO] [stdout] --> src/simple_chat.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn Simple_Chat(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `simple_chat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/file_tutorial.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | append_to_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = append_to_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.95s [INFO] running `Command { std: "docker" "inspect" "dfd7c3fd890925c378ebbf18cc0e1e9e851d48c24465ecdba471f640338d2c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfd7c3fd890925c378ebbf18cc0e1e9e851d48c24465ecdba471f640338d2c89", kill_on_drop: false }` [INFO] [stdout] dfd7c3fd890925c378ebbf18cc0e1e9e851d48c24465ecdba471f640338d2c89