[INFO] cloning repository https://github.com/trdthg/my-rust-db [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trdthg/my-rust-db" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7ddb8f4d47d418932d13009da1e96f60b1c2cdb [INFO] checking trdthg/my-rust-db against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trdthg/my-rust-db on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trdthg/my-rust-db [INFO] finished tweaking git repo https://github.com/trdthg/my-rust-db [INFO] tweaked toml for git repo https://github.com/trdthg/my-rust-db written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/trdthg/my-rust-db 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 847aed90479c6257b0a0187481fd634e5b8793c916d0e738f82281a3f6a2f4f6 [INFO] running `Command { std: "docker" "start" "-a" "847aed90479c6257b0a0187481fd634e5b8793c916d0e738f82281a3f6a2f4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "847aed90479c6257b0a0187481fd634e5b8793c916d0e738f82281a3f6a2f4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "847aed90479c6257b0a0187481fd634e5b8793c916d0e738f82281a3f6a2f4f6", kill_on_drop: false }` [INFO] [stdout] 847aed90479c6257b0a0187481fd634e5b8793c916d0e738f82281a3f6a2f4f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3aff6d5855badefa3bc58ea170781774ff99e6a9b90882fbfa667d4c0bbc7e0 [INFO] running `Command { std: "docker" "start" "-a" "b3aff6d5855badefa3bc58ea170781774ff99e6a9b90882fbfa667d4c0bbc7e0", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Checking gimli v0.25.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking bit v0.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling backtrace v0.3.61 [INFO] [stderr] Checking object v0.26.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking addr2line v0.16.0 [INFO] [stderr] Checking lists v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/http/client.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Result`, `iter` [INFO] [stdout] --> src/parser/token.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Result, iter}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_PRE` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | ANNO_PRE, // / [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AnnoPre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_A` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ANNO_A, // // [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ANNO_B, // /* [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B2` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ANNO_B2, // /* * / * [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `AnnoB2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/http/client.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Result`, `iter` [INFO] [stdout] --> src/parser/token.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Result, iter}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_PRE` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | ANNO_PRE, // / [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AnnoPre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_A` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ANNO_A, // // [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ANNO_B, // /* [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B2` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ANNO_B2, // /* * / * [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `AnnoB2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/bptree/bptree.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `empty_list_len` is assigned to, but never used [INFO] [stdout] --> src/core/row.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut empty_list_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_empty_list_len` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/core/row.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for (i, (k, v)) in parser.pfields.iter().zip(parser.pvalues).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/http/client.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | Some(content_length) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_body` [INFO] [stdout] --> src/http/client.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encode_chunked` [INFO] [stdout] --> src/http/client.rs:153:65 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode_chunked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/http/client.rs:196:29 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn _validate_method(method: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mark` [INFO] [stdout] --> src/parser/token.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mark` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut chars: Vec = code.chars().into_iter().collect(); [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/parser/token.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut chars_: Vec = chars.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `empty_list_len` is assigned to, but never used [INFO] [stdout] --> src/core/row.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut empty_list_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_empty_list_len` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/core/row.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for (i, (k, v)) in parser.pfields.iter().zip(parser.pvalues).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestState` is never used [INFO] [stdout] --> src/http/client.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum RequestState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpConnection` is never constructed [INFO] [stdout] --> src/http/client.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct HttpConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/http/client.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl HttpConnection { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new(addr: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_hostport(addr: &str) -> Option<(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn request( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn putheader(&mut self, header: String, value: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn endheader(&mut self, body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn send(&mut self, data: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn putrequest(&mut self, method: &str, url: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_content_length(body: Option, method: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn getresponse(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpResponse` is never constructed [INFO] [stdout] --> src/http/client.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | struct HttpResponse {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `METHOD_EXCEPTING_BODY` should have a snake case name [INFO] [stdout] --> src/http/client.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let METHOD_EXCEPTING_BODY: Vec = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `method_excepting_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/http/client.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | Some(content_length) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_body` [INFO] [stdout] --> src/http/client.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encode_chunked` [INFO] [stdout] --> src/http/client.rs:153:65 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode_chunked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/http/client.rs:196:29 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn _validate_method(method: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/bptree/insert.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | drop(node); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut bptree::bptree::BranchNode` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mark` [INFO] [stdout] --> src/parser/token.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mark` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut chars: Vec = code.chars().into_iter().collect(); [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/parser/token.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut chars_: Vec = chars.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bptree/bptree.rs:267:17 [INFO] [stdout] | [INFO] [stdout] 267 | let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/bptree/bptree.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | let num = 42; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bptree/bptree.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bptree/bptree.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let b = a[0..1].to_owned(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timeout`, `source_address`, and `method` are never read [INFO] [stdout] --> src/http/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct HttpConnection { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | timeout: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | source_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | method: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `METHOD_EXCEPTING_BODY` should have a snake case name [INFO] [stdout] --> src/http/client.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let METHOD_EXCEPTING_BODY: Vec = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `method_excepting_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/bptree/insert.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | drop(node); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut bptree::bptree::BranchNode` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.39s [INFO] running `Command { std: "docker" "inspect" "b3aff6d5855badefa3bc58ea170781774ff99e6a9b90882fbfa667d4c0bbc7e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3aff6d5855badefa3bc58ea170781774ff99e6a9b90882fbfa667d4c0bbc7e0", kill_on_drop: false }` [INFO] [stdout] b3aff6d5855badefa3bc58ea170781774ff99e6a9b90882fbfa667d4c0bbc7e0 [INFO] checking trdthg/my-rust-db against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrdthg%2Fmy-rust-db" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trdthg/my-rust-db on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trdthg/my-rust-db [INFO] finished tweaking git repo https://github.com/trdthg/my-rust-db [INFO] tweaked toml for git repo https://github.com/trdthg/my-rust-db written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/trdthg/my-rust-db 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20a400179ce13cfd3633f21a6ab6bb6dc9930700461a35b46208e3f88ac0a896 [INFO] running `Command { std: "docker" "start" "-a" "20a400179ce13cfd3633f21a6ab6bb6dc9930700461a35b46208e3f88ac0a896", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20a400179ce13cfd3633f21a6ab6bb6dc9930700461a35b46208e3f88ac0a896", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20a400179ce13cfd3633f21a6ab6bb6dc9930700461a35b46208e3f88ac0a896", kill_on_drop: false }` [INFO] [stdout] 20a400179ce13cfd3633f21a6ab6bb6dc9930700461a35b46208e3f88ac0a896 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d765ad53d666add24454f283dd563d145513b715fddeec22b1cecd7a31c86a7 [INFO] running `Command { std: "docker" "start" "-a" "5d765ad53d666add24454f283dd563d145513b715fddeec22b1cecd7a31c86a7", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking gimli v0.25.0 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking bit v0.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling backtrace v0.3.61 [INFO] [stderr] Checking object v0.26.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking addr2line v0.16.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking lists v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/http/client.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Result`, `iter` [INFO] [stdout] --> src/parser/token.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Result, iter}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_PRE` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | ANNO_PRE, // / [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AnnoPre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_A` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ANNO_A, // // [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ANNO_B, // /* [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B2` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ANNO_B2, // /* * / * [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `AnnoB2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/http/client.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{BufRead, BufReader, Read, Write}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/parser/token.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Result`, `iter` [INFO] [stdout] --> src/parser/token.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{fmt::Result, iter}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_PRE` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | ANNO_PRE, // / [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `AnnoPre` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_A` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | ANNO_A, // // [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoA` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | ANNO_B, // /* [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `AnnoB` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ANNO_B2` should have an upper camel case name [INFO] [stdout] --> src/parser/token.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | ANNO_B2, // /* * / * [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `AnnoB2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::size_of` [INFO] [stdout] --> src/bptree/bptree.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | use std::mem::size_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `empty_list_len` is assigned to, but never used [INFO] [stdout] --> src/core/row.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut empty_list_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_empty_list_len` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/core/row.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for (i, (k, v)) in parser.pfields.iter().zip(parser.pvalues).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/http/client.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | Some(content_length) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_body` [INFO] [stdout] --> src/http/client.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encode_chunked` [INFO] [stdout] --> src/http/client.rs:153:65 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode_chunked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/http/client.rs:196:29 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn _validate_method(method: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `empty_list_len` is assigned to, but never used [INFO] [stdout] --> src/core/row.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut empty_list_len = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_empty_list_len` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/core/row.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 50 | for (i, (k, v)) in parser.pfields.iter().zip(parser.pvalues).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_length` [INFO] [stdout] --> src/http/client.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | Some(content_length) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_body` [INFO] [stdout] --> src/http/client.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encode_chunked` [INFO] [stdout] --> src/http/client.rs:153:65 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encode_chunked` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/http/client.rs:196:29 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn _validate_method(method: &str) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mark` [INFO] [stdout] --> src/parser/token.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mark` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut chars: Vec = code.chars().into_iter().collect(); [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/parser/token.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut chars_: Vec = chars.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mark` [INFO] [stdout] --> src/parser/token.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mark` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut mark: usize = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/token.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut chars: Vec = code.chars().into_iter().collect(); [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/parser/token.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut chars_: Vec = chars.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RequestState` is never used [INFO] [stdout] --> src/http/client.rs:15:6 [INFO] [stdout] | [INFO] [stdout] 15 | enum RequestState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpConnection` is never constructed [INFO] [stdout] --> src/http/client.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct HttpConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/http/client.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl HttpConnection { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new(addr: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn get_hostport(addr: &str) -> Option<(String, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn request( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn putheader(&mut self, header: String, value: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn endheader(&mut self, body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn send_output(&mut self, message_body: Option, encode_chunked: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn send(&mut self, data: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn putrequest(&mut self, method: &str, url: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_content_length(body: Option, method: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn getresponse(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpResponse` is never constructed [INFO] [stdout] --> src/http/client.rs:232:8 [INFO] [stdout] | [INFO] [stdout] 232 | struct HttpResponse {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `METHOD_EXCEPTING_BODY` should have a snake case name [INFO] [stdout] --> src/http/client.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let METHOD_EXCEPTING_BODY: Vec = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `method_excepting_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:161:25 [INFO] [stdout] | [INFO] [stdout] 161 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/bptree/insert.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | drop(node); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut bptree::bptree::BranchNode` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple` [INFO] [stdout] --> src/bptree/bptree.rs:198:25 [INFO] [stdout] | [INFO] [stdout] 198 | for tuple in &leaf.unwrap().borrow().ids { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bptree/bptree.rs:267:17 [INFO] [stdout] | [INFO] [stdout] 267 | let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/bptree/bptree.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | let num = 42; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bptree/bptree.rs:267:13 [INFO] [stdout] | [INFO] [stdout] 267 | let mut s = vec![0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bptree/bptree.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let b = a[0..1].to_owned(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timeout`, `source_address`, and `method` are never read [INFO] [stdout] --> src/http/client.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct HttpConnection { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | timeout: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 28 | source_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | method: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `METHOD_EXCEPTING_BODY` should have a snake case name [INFO] [stdout] --> src/http/client.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let METHOD_EXCEPTING_BODY: Vec = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `method_excepting_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/bptree/insert.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | drop(node); [INFO] [stdout] | ^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut bptree::bptree::BranchNode` [INFO] [stdout] | [INFO] [stdout] = note: use `let _ = ...` to ignore the expression or result [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.16s [INFO] running `Command { std: "docker" "inspect" "5d765ad53d666add24454f283dd563d145513b715fddeec22b1cecd7a31c86a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d765ad53d666add24454f283dd563d145513b715fddeec22b1cecd7a31c86a7", kill_on_drop: false }` [INFO] [stdout] 5d765ad53d666add24454f283dd563d145513b715fddeec22b1cecd7a31c86a7