[INFO] cloning repository https://github.com/inpot/rust1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/inpot/rust1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finpot%2Frust1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finpot%2Frust1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee9314d3add321f0b61888cb911553e4d63de670 [INFO] checking inpot/rust1 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finpot%2Frust1" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/inpot/rust1 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/inpot/rust1 [INFO] finished tweaking git repo https://github.com/inpot/rust1 [INFO] tweaked toml for git repo https://github.com/inpot/rust1 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/inpot/rust1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2e6f48560ecb0d5d38e52cd2ff6c00870ab6cd676110334c2ff189f3c74d11d6 [INFO] running `Command { std: "docker" "start" "-a" "2e6f48560ecb0d5d38e52cd2ff6c00870ab6cd676110334c2ff189f3c74d11d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e6f48560ecb0d5d38e52cd2ff6c00870ab6cd676110334c2ff189f3c74d11d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e6f48560ecb0d5d38e52cd2ff6c00870ab6cd676110334c2ff189f3c74d11d6", kill_on_drop: false }` [INFO] [stdout] 2e6f48560ecb0d5d38e52cd2ff6c00870ab6cd676110334c2ff189f3c74d11d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 954bd3c4bbc7c39289264123539fc3d2df77ffa664a2274729d775e73e33f095 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "954bd3c4bbc7c39289264123539fc3d2df77ffa664a2274729d775e73e33f095", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.20 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling cc v1.0.59 [INFO] [stderr] Compiling syn v1.0.40 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Checking hashbrown v0.9.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.15 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking tracing v0.1.19 [INFO] [stderr] Checking indexmap v1.6.0 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking serde_json v1.0.57 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking h2 v0.2.6 [INFO] [stderr] Checking hyper v0.13.7 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.8 [INFO] [stderr] Checking rust2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `SystemTime`, `ops::Deref`, `rc::Rc` [INFO] [stdout] --> main.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{thread, io::prelude::*, time::{SystemTime, Duration}, ops::Deref, fmt::{self, Display}, rc::Rc, sync::{Mutex, mpsc, Arc}}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `channel` [INFO] [stdout] --> main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use mpsc::{Sender, channel}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os` [INFO] [stdout] --> main.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{ os}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `tangle` should have an upper camel case name [INFO] [stdout] --> main.rs:384:7 [INFO] [stdout] | [INFO] [stdout] 384 | trait tangle{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Tangle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, `SystemTime`, `ops::Deref`, `rc::Rc` [INFO] [stdout] --> main.rs:8:42 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{thread, io::prelude::*, time::{SystemTime, Duration}, ops::Deref, fmt::{self, Display}, rc::Rc, sync::{Mutex, mpsc, Arc}}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `channel` [INFO] [stdout] --> main.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use mpsc::{Sender, channel}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::future::Future` [INFO] [stdout] --> main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::future::Future; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os` [INFO] [stdout] --> main.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use std::{ os}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `tangle` should have an upper camel case name [INFO] [stdout] --> main.rs:384:7 [INFO] [stdout] | [INFO] [stdout] 384 | trait tangle{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Tangle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_size` [INFO] [stdout] --> main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut line_size = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res1` [INFO] [stdout] --> main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let res1 = write_file(ignored, &ignoredPath); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_res1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let count = fs::write(file, content)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> main.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | let size = tcp_stream.read(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> main.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | let content = String::from_utf8_lossy(&buffer); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_size` [INFO] [stdout] --> main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut line_size = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res1` [INFO] [stdout] --> main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let res1 = write_file(ignored, &ignoredPath); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_res1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> main.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let count = fs::write(file, content)?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> main.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | let size = tcp_stream.read(&mut buffer).unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> main.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | let content = String::from_utf8_lossy(&buffer); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut line_size = 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] --> main.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut line_size = 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] --> main.rs:118:11 [INFO] [stdout] | [INFO] [stdout] 118 | let mut allCount = fs::metadata("hello.html").unwrap().len(); [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] --> main.rs:118:11 [INFO] [stdout] | [INFO] [stdout] 118 | let mut allCount = fs::metadata("hello.html").unwrap().len(); [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] --> main.rs:482:7 [INFO] [stdout] | [INFO] [stdout] 482 | let mut file = File::open(filepath)?; [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] --> main.rs:482:7 [INFO] [stdout] | [INFO] [stdout] 482 | let mut file = File::open(filepath)?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ThreadPool` [INFO] [stdout] --> thread_pool.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ThreadPool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> thread_pool.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(size :u32)->ThreadPool{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> thread_pool.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Worker` [INFO] [stdout] --> thread_pool.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct Worker{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Job` [INFO] [stdout] --> thread_pool.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | type Job = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> thread_pool.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | fn new(receiver:Arc>>,name:String)->Worker{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Message` [INFO] [stdout] --> thread_pool.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 77 | enum Message{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `testServer` [INFO] [stdout] --> main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn testServer(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Sharp` [INFO] [stdout] --> main.rs:368:6 [INFO] [stdout] | [INFO] [stdout] 368 | enum Sharp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `label` [INFO] [stdout] --> main.rs:377:3 [INFO] [stdout] | [INFO] [stdout] 377 | label:String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circumference` [INFO] [stdout] --> main.rs:393:6 [INFO] [stdout] | [INFO] [stdout] 393 | fn circumference(&self) ->u32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> main.rs:398:6 [INFO] [stdout] | [INFO] [stdout] 398 | fn area(&self) ->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulated_expensive_calculation` [INFO] [stdout] --> main.rs:432:4 [INFO] [stdout] | [INFO] [stdout] 432 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_std_in_out` [INFO] [stdout] --> main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn test_std_in_out()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `raw_back` [INFO] [stdout] --> main.rs:451:4 [INFO] [stdout] | [INFO] [stdout] 451 | fn raw_back<'a>(input2:&'a str)->&'a str{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_third_word` [INFO] [stdout] --> main.rs:455:4 [INFO] [stdout] | [INFO] [stdout] 455 | fn get_third_word(input : &str) ->&str{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `readBufferd` [INFO] [stdout] --> main.rs:479:4 [INFO] [stdout] | [INFO] [stdout] 479 | fn readBufferd(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `readTxt` [INFO] [stdout] --> main.rs:496:4 [INFO] [stdout] | [INFO] [stdout] 496 | fn readTxt(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gfwlist2Dnsmasq` should have a snake case name [INFO] [stdout] --> main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn gfwlist2Dnsmasq() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `gfwlist2_dnsmasq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `resultStr` should have a snake case name [INFO] [stdout] --> main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut resultStr = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `result_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let filePath = "gfwlist.conf"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ThreadPool` [INFO] [stdout] --> thread_pool.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ThreadPool{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ignoredPath` should have a snake case name [INFO] [stdout] --> main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let ignoredPath= "ignored.conf"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `ignored_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> thread_pool.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(size :u32)->ThreadPool{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `execute` [INFO] [stdout] --> thread_pool.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Worker` [INFO] [stdout] --> thread_pool.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | struct Worker{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `processLine` should have a snake case name [INFO] [stdout] --> main.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 65 | fn processLine(result:&mut String,target:&str,dns:&str,ipset:&str){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `process_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Job` [INFO] [stdout] --> thread_pool.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | type Job = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> thread_pool.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | fn new(receiver:Arc>>,name:String)->Worker{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Message` [INFO] [stdout] --> thread_pool.rs:77:6 [INFO] [stdout] | [INFO] [stdout] 77 | enum Message{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `testServer` [INFO] [stdout] --> main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn testServer(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testServer` should have a snake case name [INFO] [stdout] --> main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn testServer(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `test_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Sharp` [INFO] [stdout] --> main.rs:368:6 [INFO] [stdout] | [INFO] [stdout] 368 | enum Sharp { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `label` [INFO] [stdout] --> main.rs:377:3 [INFO] [stdout] | [INFO] [stdout] 377 | label:String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `circumference` [INFO] [stdout] --> main.rs:393:6 [INFO] [stdout] | [INFO] [stdout] 393 | fn circumference(&self) ->u32{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `allCount` should have a snake case name [INFO] [stdout] --> main.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | let mut allCount = fs::metadata("hello.html").unwrap().len(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `all_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> main.rs:398:6 [INFO] [stdout] | [INFO] [stdout] 398 | fn area(&self) ->u32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `simulated_expensive_calculation` [INFO] [stdout] --> main.rs:432:4 [INFO] [stdout] | [INFO] [stdout] 432 | fn simulated_expensive_calculation(intensity: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_std_in_out` [INFO] [stdout] --> main.rs:438:4 [INFO] [stdout] | [INFO] [stdout] 438 | fn test_std_in_out()->Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `raw_back` [INFO] [stdout] --> main.rs:451:4 [INFO] [stdout] | [INFO] [stdout] 451 | fn raw_back<'a>(input2:&'a str)->&'a str{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_third_word` [INFO] [stdout] --> main.rs:455:4 [INFO] [stdout] | [INFO] [stdout] 455 | fn get_third_word(input : &str) ->&str{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `readBufferd` [INFO] [stdout] --> main.rs:479:4 [INFO] [stdout] | [INFO] [stdout] 479 | fn readBufferd(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `readTxt` [INFO] [stdout] --> main.rs:496:4 [INFO] [stdout] | [INFO] [stdout] 496 | fn readTxt(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gfwlist2Dnsmasq` should have a snake case name [INFO] [stdout] --> main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn gfwlist2Dnsmasq() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `gfwlist2_dnsmasq` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `resultStr` should have a snake case name [INFO] [stdout] --> main.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | let mut resultStr = String::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `result_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filePath` should have a snake case name [INFO] [stdout] --> main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let filePath = "gfwlist.conf"; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `file_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ignoredPath` should have a snake case name [INFO] [stdout] --> main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let ignoredPath= "ignored.conf"; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `ignored_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `processLine` should have a snake case name [INFO] [stdout] --> main.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 65 | fn processLine(result:&mut String,target:&str,dns:&str,ipset:&str){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `process_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testServer` should have a snake case name [INFO] [stdout] --> main.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn testServer(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `test_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `allCount` should have a snake case name [INFO] [stdout] --> main.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | let mut allCount = fs::metadata("hello.html").unwrap().len(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `all_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:439:3 [INFO] [stdout] | [INFO] [stdout] 439 | io::stdout().write_all("输入用户名:\n".as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:442:3 [INFO] [stdout] | [INFO] [stdout] 442 | io::stdin().read_line(&mut name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:443:3 [INFO] [stdout] | [INFO] [stdout] 443 | io::stdout().write_all("输入密码:\n".as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:445:3 [INFO] [stdout] | [INFO] [stdout] 445 | io::stdin().read_line(&mut pwd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spaceIndex` should have a snake case name [INFO] [stdout] --> main.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let mut spaceIndex = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `space_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readBufferd` should have a snake case name [INFO] [stdout] --> main.rs:479:4 [INFO] [stdout] | [INFO] [stdout] 479 | fn readBufferd(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_bufferd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readTxt` should have a snake case name [INFO] [stdout] --> main.rs:496:4 [INFO] [stdout] | [INFO] [stdout] 496 | fn readTxt(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_txt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:439:3 [INFO] [stdout] | [INFO] [stdout] 439 | io::stdout().write_all("输入用户名:\n".as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:442:3 [INFO] [stdout] | [INFO] [stdout] 442 | io::stdin().read_line(&mut name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:443:3 [INFO] [stdout] | [INFO] [stdout] 443 | io::stdout().write_all("输入密码:\n".as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> main.rs:445:3 [INFO] [stdout] | [INFO] [stdout] 445 | io::stdin().read_line(&mut pwd); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `spaceIndex` should have a snake case name [INFO] [stdout] --> main.rs:458:13 [INFO] [stdout] | [INFO] [stdout] 458 | let mut spaceIndex = 0; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `space_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readBufferd` should have a snake case name [INFO] [stdout] --> main.rs:479:4 [INFO] [stdout] | [INFO] [stdout] 479 | fn readBufferd(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `read_bufferd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readTxt` should have a snake case name [INFO] [stdout] --> main.rs:496:4 [INFO] [stdout] | [INFO] [stdout] 496 | fn readTxt(filepath: &str) ->Result{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `read_txt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 47 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 18s [INFO] running `Command { std: "docker" "inspect" "954bd3c4bbc7c39289264123539fc3d2df77ffa664a2274729d775e73e33f095", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "954bd3c4bbc7c39289264123539fc3d2df77ffa664a2274729d775e73e33f095", kill_on_drop: false }` [INFO] [stdout] 954bd3c4bbc7c39289264123539fc3d2df77ffa664a2274729d775e73e33f095