[INFO] cloning repository https://github.com/vinod901/rust_practice
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vinod901/rust_practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinod901%2Frust_practice", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinod901%2Frust_practice'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 03f76b4097e35a75251175e421996ee68bfeb27c
[INFO] checking vinod901/rust_practice against master#642c19bfc3a5c1de985bf5d0cc8207ac9d22708a for pr-148577
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvinod901%2Frust_practice" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/vinod901/rust_practice
[INFO] finished tweaking git repo https://github.com/vinod901/rust_practice
[INFO] tweaked toml for git repo https://github.com/vinod901/rust_practice written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/vinod901/rust_practice on toolchain 642c19bfc3a5c1de985bf5d0cc8207ac9d22708a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/vinod901/rust_practice 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" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded joinable v0.1.0
[INFO] [stderr]   Downloaded text_io v0.1.8
[INFO] [stderr]   Downloaded meval v0.2.0
[INFO] [stderr]   Downloaded nom v1.2.4
[INFO] [stderr]   Downloaded serde_derive v1.0.131
[INFO] [stderr]   Downloaded serde v1.0.131
[INFO] [stderr]   Downloaded tracing-subscriber v0.3.3
[INFO] [stderr]   Downloaded serde_json v1.0.73
[INFO] [stderr]   Downloaded proc-macro2 v1.0.34
[INFO] [stderr]   Downloaded sqlparser v0.16.0
[INFO] [stderr]   Downloaded h2 v0.3.9
[INFO] [stderr]   Downloaded syn v1.0.82
[INFO] [stderr]   Downloaded tokio v1.15.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2f1b046e4277687048c24c88f398aaa633d253412cfdc2c27159d9932f859ea0
[INFO] running `Command { std: "docker" "start" "-a" "2f1b046e4277687048c24c88f398aaa633d253412cfdc2c27159d9932f859ea0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2f1b046e4277687048c24c88f398aaa633d253412cfdc2c27159d9932f859ea0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2f1b046e4277687048c24c88f398aaa633d253412cfdc2c27159d9932f859ea0", kill_on_drop: false }`
[INFO] [stdout] 2f1b046e4277687048c24c88f398aaa633d253412cfdc2c27159d9932f859ea0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+642c19bfc3a5c1de985bf5d0cc8207ac9d22708a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 22d2f5d478daadd6946933172cf68602a8196e3ca4b73a17fc14ab480e48fa6a
[INFO] running `Command { std: "docker" "start" "-a" "22d2f5d478daadd6946933172cf68602a8196e3ca4b73a17fc14ab480e48fa6a", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.34
[INFO] [stderr]    Compiling syn v1.0.82
[INFO] [stderr]    Compiling version_check v0.9.3
[INFO] [stderr]    Compiling libc v0.2.112
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling serde_derive v1.0.131
[INFO] [stderr]    Compiling futures-core v0.3.17
[INFO] [stderr]    Compiling serde v1.0.131
[INFO] [stderr]    Compiling futures-channel v0.3.17
[INFO] [stderr]    Compiling futures-task v0.3.17
[INFO] [stderr]    Compiling futures-macro v0.3.17
[INFO] [stderr]    Compiling futures-util v0.3.17
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling proc-macro2-diagnostics v0.9.1
[INFO] [stderr]     Checking pin-project-lite v0.2.7
[INFO] [stderr]    Compiling indexmap v1.7.0
[INFO] [stderr]     Checking futures-sink v0.3.17
[INFO] [stderr]    Compiling httparse v1.5.1
[INFO] [stderr]    Compiling const_fn v0.4.8
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling time v0.2.27
[INFO] [stderr]    Compiling quote v1.0.10
[INFO] [stderr]     Checking mio v0.7.14
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking signal-hook-registry v1.4.0
[INFO] [stderr]    Compiling uncased v0.9.6
[INFO] [stderr]     Checking futures-io v0.3.17
[INFO] [stderr]     Checking once_cell v1.9.0
[INFO] [stderr]     Checking itoa v0.4.8
[INFO] [stderr]    Compiling cookie v0.15.1
[INFO] [stderr]    Compiling tracing-core v0.1.21
[INFO] [stderr]    Compiling http v0.2.5
[INFO] [stderr]    Compiling proc-macro-nested v0.1.7
[INFO] [stderr]     Checking getrandom v0.2.3
[INFO] [stderr]    Compiling smallvec v1.7.0
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling lock_api v0.4.5
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]    Compiling socket2 v0.4.2
[INFO] [stderr]    Compiling inlinable_string v0.1.14
[INFO] [stderr]     Checking ppv-lite86 v0.2.15
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling stable-pattern v0.1.0
[INFO] [stderr]    Compiling figment v0.10.6
[INFO] [stderr]    Compiling multer v2.0.1
[INFO] [stderr]    Compiling atomic v0.5.1
[INFO] [stderr]     Checking ryu v1.0.9
[INFO] [stderr]    Compiling serde_json v1.0.73
[INFO] [stderr]     Checking unchecked-index v0.2.2
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]    Compiling rustversion v1.0.6
[INFO] [stderr]     Checking twoway v0.2.2
[INFO] [stderr]     Checking rand v0.8.4
[INFO] [stderr]     Checking http-body v0.4.4
[INFO] [stderr]    Compiling rocket v0.5.0-rc.1
[INFO] [stderr]    Compiling unicode-segmentation v1.8.0
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking nom v1.2.4
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking sqlparser v0.16.0
[INFO] [stderr]     Checking joinable v0.1.0
[INFO] [stderr]     Checking text_io v0.1.8
[INFO] [stderr]     Checking strum v0.23.0
[INFO] [stderr]     Checking tempfile v3.2.0
[INFO] [stderr]     Checking meval v0.2.0
[INFO] [stderr]     Checking regex-automata v0.1.10
[INFO] [stderr]    Compiling devise_core v0.3.1
[INFO] [stderr]    Compiling tokio-macros v1.7.0
[INFO] [stderr]    Compiling time-macros-impl v0.1.2
[INFO] [stderr]    Compiling tracing-attributes v0.1.18
[INFO] [stderr]    Compiling pear_codegen v0.2.3
[INFO] [stderr]    Compiling ref-cast-impl v1.0.6
[INFO] [stderr]    Compiling ref-cast v1.0.6
[INFO] [stderr]    Compiling async-stream-impl v0.3.2
[INFO] [stderr]     Checking tokio v1.15.0
[INFO] [stderr]    Compiling time-macros v0.1.1
[INFO] [stderr]    Compiling tracing v0.1.29
[INFO] [stderr]    Compiling devise_codegen v0.3.1
[INFO] [stderr]     Checking pear v0.2.3
[INFO] [stderr]    Compiling devise v0.3.1
[INFO] [stderr]     Checking async-stream v0.3.2
[INFO] [stderr]    Compiling async-trait v0.1.52
[INFO] [stderr]    Compiling strum_macros v0.23.1
[INFO] [stderr]     Checking futures-executor v0.3.17
[INFO] [stderr]     Checking futures v0.3.17
[INFO] [stderr]     Checking tokio-util v0.6.9
[INFO] [stderr]     Checking tokio-stream v0.1.8
[INFO] [stderr]     Checking toml v0.5.8
[INFO] [stderr]     Checking bstr v0.2.17
[INFO] [stderr]     Checking ubyte v0.10.1
[INFO] [stderr]     Checking h2 v0.3.9
[INFO] [stderr]     Checking csv v1.1.6
[INFO] [stderr]     Checking hyper v0.14.16
[INFO] [stderr]     Checking rocket_http v0.5.0-rc.1
[INFO] [stderr]    Compiling rocket_codegen v0.5.0-rc.1
[INFO] [stderr]     Checking rust_practice v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `fold`
[INFO] [stdout]   --> src/files/fold.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn fold() -> 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: `joins`
[INFO] [stdout]   --> src/files/joins.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn joins() -> String {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hello`
[INFO] [stdout]   --> src/files/routes.rs:26:8
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub fn hello(name: String, profession: String) -> String {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `read_csv`
[INFO] [stdout]   --> src/files/routes.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub fn read_csv(path: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_query`
[INFO] [stdout]   --> src/files/routes.rs:87:8
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub fn get_query() -> String {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `send_data`
[INFO] [stdout]    --> src/files/routes.rs:102:8
[INFO] [stdout]     |
[INFO] [stdout] 102 | pub fn send_data(data: Json<Person>) -> String {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sql_select`
[INFO] [stdout]  --> src/files/sql.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn sql_select() -> String {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fold`
[INFO] [stdout]   --> src/files/fold.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub fn fold() -> 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: `joins`
[INFO] [stdout]   --> src/files/joins.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn joins() -> String {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hello`
[INFO] [stdout]   --> src/files/routes.rs:26:8
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub fn hello(name: String, profession: String) -> String {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `read_csv`
[INFO] [stdout]   --> src/files/routes.rs:34:8
[INFO] [stdout]    |
[INFO] [stdout] 34 | pub fn read_csv(path: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_query`
[INFO] [stdout]   --> src/files/routes.rs:87:8
[INFO] [stdout]    |
[INFO] [stdout] 87 | pub fn get_query() -> String {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `send_data`
[INFO] [stdout]    --> src/files/routes.rs:102:8
[INFO] [stdout]     |
[INFO] [stdout] 102 | pub fn send_data(data: Json<Person>) -> String {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sql_select`
[INFO] [stdout]  --> src/files/sql.rs:7:8
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn sql_select() -> String {
[INFO] [stdout]   |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `number` is never read
[INFO] [stdout]   --> src/files/joins.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct Mobile {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 13 |     id: u64,
[INFO] [stdout] 14 |     number: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Mobile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/files/routes.rs:37:49
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let mut reader = csv::Reader::from_path(path.clone()).expect("sorry, can't open the file!");
[INFO] [stdout]    |                                                 ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/files/routes.rs:46:17
[INFO] [stdout]    |
[INFO] [stdout] 46 |     for head in reader.headers() {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 46 -     for head in reader.headers() {
[INFO] [stdout] 46 +     while let Ok(head) = reader.headers() {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 46 -     for head in reader.headers() {
[INFO] [stdout] 46 +     if let Ok(head) = reader.headers() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `number` is never read
[INFO] [stdout]   --> src/files/joins.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | struct Mobile {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 13 |     id: u64,
[INFO] [stdout] 14 |     number: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Mobile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/files/routes.rs:37:49
[INFO] [stdout]    |
[INFO] [stdout] 37 |     let mut reader = csv::Reader::from_path(path.clone()).expect("sorry, can't open the file!");
[INFO] [stdout]    |                                                 ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: for loop over a `Result`. This is more readably written as an `if let` statement
[INFO] [stdout]   --> src/files/routes.rs:46:17
[INFO] [stdout]    |
[INFO] [stdout] 46 |     for head in reader.headers() {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(for_loops_over_fallibles)]` on by default
[INFO] [stdout] help: to check pattern in a loop use `while let`
[INFO] [stdout]    |
[INFO] [stdout] 46 -     for head in reader.headers() {
[INFO] [stdout] 46 +     while let Ok(head) = reader.headers() {
[INFO] [stdout]    |
[INFO] [stdout] help: consider using `if let` to clear intent
[INFO] [stdout]    |
[INFO] [stdout] 46 -     for head in reader.headers() {
[INFO] [stdout] 46 +     if let Ok(head) = reader.headers() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 38s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v1.2.4, ubyte v0.10.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5`
[INFO] running `Command { std: "docker" "inspect" "22d2f5d478daadd6946933172cf68602a8196e3ca4b73a17fc14ab480e48fa6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "22d2f5d478daadd6946933172cf68602a8196e3ca4b73a17fc14ab480e48fa6a", kill_on_drop: false }`
[INFO] [stdout] 22d2f5d478daadd6946933172cf68602a8196e3ca4b73a17fc14ab480e48fa6a
