[INFO] cloning repository https://github.com/kamranrad1993/khttp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kamranrad1993/khttp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamranrad1993%2Fkhttp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamranrad1993%2Fkhttp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37c83d0ce5fbed0b0ec79d9f0eb5258544fab6dd [INFO] building kamranrad1993/khttp against try#9a3ef2cd3ecaae3c6ef59768612837d797602a6d for pr-137044-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamranrad1993%2Fkhttp" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kamranrad1993/khttp on toolchain 9a3ef2cd3ecaae3c6ef59768612837d797602a6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kamranrad1993/khttp [INFO] finished tweaking git repo https://github.com/kamranrad1993/khttp [INFO] tweaked toml for git repo https://github.com/kamranrad1993/khttp written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kamranrad1993/khttp 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" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 294f1f3843ef5f32a13fd0422d214dc28f3ed5462925abeeb425d81bff704616 [INFO] running `Command { std: "docker" "start" "-a" "294f1f3843ef5f32a13fd0422d214dc28f3ed5462925abeeb425d81bff704616", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "294f1f3843ef5f32a13fd0422d214dc28f3ed5462925abeeb425d81bff704616", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "294f1f3843ef5f32a13fd0422d214dc28f3ed5462925abeeb425d81bff704616", kill_on_drop: false }` [INFO] [stdout] 294f1f3843ef5f32a13fd0422d214dc28f3ed5462925abeeb425d81bff704616 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96abdddae566409bf05248ff7d7929123bddea1fbea194be9ae8e78a77356383 [INFO] running `Command { std: "docker" "start" "-a" "96abdddae566409bf05248ff7d7929123bddea1fbea194be9ae8e78a77356383", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling httlib-huffman v0.3.4 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling id-pool v0.2.2 [INFO] [stderr] Compiling kparser v0.1.0 (https://github.com/kamranrad1993/kparser.git?branch=main#d4d31413) [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling khttp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cell::RefCell`, `ptr::read`, `rc::Rc`, `result`, and `sync::Arc` [INFO] [stdout] --> src/http2/context.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | ptr::read, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | result, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request` and `request` [INFO] [stdout] --> src/http2/context.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use http::{request, Request, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `frame` and `hpack` [INFO] [stdout] --> src/http2/context.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | frame, hpack, ContinuationPayloadFlag, DataPayload, DataPayloadFlag, Frame, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::BUFFER_SIZE` [INFO] [stdout] --> src/http2/context.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::BUFFER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream` [INFO] [stdout] --> src/http2/context.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use super::{stream, Http2Stream, StreamState, TcpStream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/http2/context.rs:262:48 [INFO] [stdout] | [INFO] [stdout] 262 | ... self.enable_push = (value.clone() != 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 262 - self.enable_push = (value.clone() != 0); [INFO] [stdout] 262 + self.enable_push = value.clone() != 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/http2/context.rs:266:32 [INFO] [stdout] | [INFO] [stdout] 266 | ... if (frame.stream_id.to_u32() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (frame.stream_id.to_u32() == 0) { [INFO] [stdout] 266 + if frame.stream_id.to_u32() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fd::RawFd` and `unix::net::SocketAddr` [INFO] [stdout] --> src/http2/stream.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::{fd::RawFd, unix::net::SocketAddr}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/http2/stream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::Request` [INFO] [stdout] --> src/http2/stream.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use http::Request; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hpack` [INFO] [stdout] --> src/http2/stream.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | http2::{DataPayload, Hpack}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpStream` and `UnixStream` [INFO] [stdout] --> src/http2/stream.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use mio::net::{TcpStream, UnixStream}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kparser::u31::u31` [INFO] [stdout] --> src/http2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kparser::u31::u31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsFd`, `Display`, `FromRawFd`, `IntoRawFd`, `Read`, `SocketAddr`, `error::Error`, `rc::Weak`, and `result` [INFO] [stdout] --> src/http2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | fmt::{Debug, Display}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | net::{Shutdown, SocketAddr, ToSocketAddrs}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | os::fd::{AsFd, AsRawFd, FromRawFd, IntoRawFd, RawFd}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 14 | rc::Weak, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | result, time, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `Registry`, and `UnixStream` [INFO] [stdout] --> src/http2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | event::{Event, Source}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | net::{TcpListener, TcpStream, UnixStream}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | unix::SourceFd, [INFO] [stdout] 24 | Events, Interest, Poll, Registry, Token, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/http2.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 69 | / loop { [INFO] [stdout] 70 | | let mut events = Events::with_capacity(128); [INFO] [stdout] 71 | | poll.poll(&mut events, None)?; [INFO] [stdout] 72 | | for event in &events { [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 128 | [INFO] [stdout] 129 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Source` [INFO] [stdout] --> src/http2.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | event::{Event, Source}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | FrameParseError::PayloadParseError(e) => return ContextError::InvalidStream, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | ContextError::HeaderDecodeError(e) => f.write_str("Hpack Error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:158:32 [INFO] [stdout] | [INFO] [stdout] 158 | if let Err(e) = Http2Pri::read_and_remove(&mut self.read_buffer) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http2/context.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (mut frame_size, mut frame) = self.read_frame(&self.read_buffer)?; [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/http2/context.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut frame = >::try_from(&buf)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 278 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_ENABLE_PUSH` [INFO] [stdout] --> src/http2/context.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_ENABLE_PUSH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_CONCURRENT_STREAMS` [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_CONCURRENT_STREAMS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_INITIAL_WINDOW_SIZE` [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_INITIAL_WINDOW_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_FRAME_SIZE` [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_FRAME_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_HEADER_LIST_SIZE` [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_HEADER_LIST_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rst_payload` [INFO] [stdout] --> src/http2/context.rs:319:48 [INFO] [stdout] | [INFO] [stdout] 319 | kparser::http2::Payload::RstStream(rst_payload) => {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rst_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goaway_payload` [INFO] [stdout] --> src/http2/context.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | kparser::http2::Payload::GoAway(goaway_payload) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_goaway_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http2/context.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | let mut stream = Http2Stream::new(frame.stream_id); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_id` [INFO] [stdout] --> src/http2/context.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | stream_id: u31, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/http2.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let fd = mio::net::UnixStream::connect(format!("/tmp/{}", name))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/http2.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | ... let (mut tcp_stream, addr) = self.listener.accept()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/http2.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | fn from(value: RawFd) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_ENABLE_PUSH` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_enable_push` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_CONCURRENT_STREAMS` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_concurrent_streams` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_INITIAL_WINDOW_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_initial_window_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_FRAME_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_frame_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_HEADER_LIST_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_header_list_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http2/stream.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | self.data.as_mut().unwrap().write(&data.data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 64 | let _ = self.data.as_mut().unwrap().write(&data.data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `request` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use http::{request, Response}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/main.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | server.listen(|token, request| -> Response> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.04s [INFO] running `Command { std: "docker" "inspect" "96abdddae566409bf05248ff7d7929123bddea1fbea194be9ae8e78a77356383", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96abdddae566409bf05248ff7d7929123bddea1fbea194be9ae8e78a77356383", kill_on_drop: false }` [INFO] [stdout] 96abdddae566409bf05248ff7d7929123bddea1fbea194be9ae8e78a77356383 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9a3ef2cd3ecaae3c6ef59768612837d797602a6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9279838a99cba2c112b3217467a550238a615ec2e1d716c50da887c0b6b4c4a6 [INFO] running `Command { std: "docker" "start" "-a" "9279838a99cba2c112b3217467a550238a615ec2e1d716c50da887c0b6b4c4a6", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `cell::RefCell`, `ptr::read`, `rc::Rc`, `result`, and `sync::Arc` [INFO] [stdout] --> src/http2/context.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | ptr::read, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | result, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request` and `request` [INFO] [stdout] --> src/http2/context.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use http::{request, Request, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `frame` and `hpack` [INFO] [stdout] --> src/http2/context.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | frame, hpack, ContinuationPayloadFlag, DataPayload, DataPayloadFlag, Frame, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::BUFFER_SIZE` [INFO] [stdout] --> src/http2/context.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::BUFFER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream` [INFO] [stdout] --> src/http2/context.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use super::{stream, Http2Stream, StreamState, TcpStream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/http2/context.rs:262:48 [INFO] [stdout] | [INFO] [stdout] 262 | ... self.enable_push = (value.clone() != 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 262 - self.enable_push = (value.clone() != 0); [INFO] [stdout] 262 + self.enable_push = value.clone() != 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/http2/context.rs:266:32 [INFO] [stdout] | [INFO] [stdout] 266 | ... if (frame.stream_id.to_u32() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (frame.stream_id.to_u32() == 0) { [INFO] [stdout] 266 + if frame.stream_id.to_u32() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fd::RawFd` and `unix::net::SocketAddr` [INFO] [stdout] --> src/http2/stream.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::{fd::RawFd, unix::net::SocketAddr}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/http2/stream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::Request` [INFO] [stdout] --> src/http2/stream.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use http::Request; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hpack` [INFO] [stdout] --> src/http2/stream.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | http2::{DataPayload, Hpack}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpStream` and `UnixStream` [INFO] [stdout] --> src/http2/stream.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use mio::net::{TcpStream, UnixStream}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kparser::u31::u31` [INFO] [stdout] --> src/http2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kparser::u31::u31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsFd`, `Display`, `FromRawFd`, `IntoRawFd`, `Read`, `SocketAddr`, `error::Error`, `rc::Weak`, and `result` [INFO] [stdout] --> src/http2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | fmt::{Debug, Display}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | net::{Shutdown, SocketAddr, ToSocketAddrs}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | os::fd::{AsFd, AsRawFd, FromRawFd, IntoRawFd, RawFd}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 14 | rc::Weak, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | result, time, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling khttp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Event`, `Registry`, and `UnixStream` [INFO] [stdout] --> src/http2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | event::{Event, Source}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | net::{TcpListener, TcpStream, UnixStream}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | unix::SourceFd, [INFO] [stdout] 24 | Events, Interest, Poll, Registry, Token, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/http2.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 69 | / loop { [INFO] [stdout] 70 | | let mut events = Events::with_capacity(128); [INFO] [stdout] 71 | | poll.poll(&mut events, None)?; [INFO] [stdout] 72 | | for event in &events { [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 128 | [INFO] [stdout] 129 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Source` [INFO] [stdout] --> src/http2.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | event::{Event, Source}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | FrameParseError::PayloadParseError(e) => return ContextError::InvalidStream, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | ContextError::HeaderDecodeError(e) => f.write_str("Hpack Error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:158:32 [INFO] [stdout] | [INFO] [stdout] 158 | if let Err(e) = Http2Pri::read_and_remove(&mut self.read_buffer) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http2/context.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (mut frame_size, mut frame) = self.read_frame(&self.read_buffer)?; [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/http2/context.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut frame = >::try_from(&buf)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 278 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_ENABLE_PUSH` [INFO] [stdout] --> src/http2/context.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_ENABLE_PUSH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_CONCURRENT_STREAMS` [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_CONCURRENT_STREAMS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_INITIAL_WINDOW_SIZE` [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_INITIAL_WINDOW_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_FRAME_SIZE` [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_FRAME_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_HEADER_LIST_SIZE` [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_HEADER_LIST_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rst_payload` [INFO] [stdout] --> src/http2/context.rs:319:48 [INFO] [stdout] | [INFO] [stdout] 319 | kparser::http2::Payload::RstStream(rst_payload) => {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rst_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goaway_payload` [INFO] [stdout] --> src/http2/context.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | kparser::http2::Payload::GoAway(goaway_payload) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_goaway_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http2/context.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | let mut stream = Http2Stream::new(frame.stream_id); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_id` [INFO] [stdout] --> src/http2/context.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | stream_id: u31, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/http2.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let fd = mio::net::UnixStream::connect(format!("/tmp/{}", name))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/http2.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | ... let (mut tcp_stream, addr) = self.listener.accept()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/http2.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | fn from(value: RawFd) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_ENABLE_PUSH` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_enable_push` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_CONCURRENT_STREAMS` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_concurrent_streams` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_INITIAL_WINDOW_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_initial_window_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_FRAME_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_frame_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_HEADER_LIST_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_header_list_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http2/stream.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | self.data.as_mut().unwrap().write(&data.data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 64 | let _ = self.data.as_mut().unwrap().write(&data.data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::RefCell`, `ptr::read`, `rc::Rc`, `result`, and `sync::Arc` [INFO] [stdout] --> src/http2/context.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | cell::RefCell, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | ptr::read, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | result, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request` and `request` [INFO] [stdout] --> src/http2/context.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use http::{request, Request, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `frame` and `hpack` [INFO] [stdout] --> src/http2/context.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | frame, hpack, ContinuationPayloadFlag, DataPayload, DataPayloadFlag, Frame, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::BUFFER_SIZE` [INFO] [stdout] --> src/http2/context.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::BUFFER_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream` [INFO] [stdout] --> src/http2/context.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | use super::{stream, Http2Stream, StreamState, TcpStream}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/http2/context.rs:262:48 [INFO] [stdout] | [INFO] [stdout] 262 | ... self.enable_push = (value.clone() != 0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 262 - self.enable_push = (value.clone() != 0); [INFO] [stdout] 262 + self.enable_push = value.clone() != 0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/http2/context.rs:266:32 [INFO] [stdout] | [INFO] [stdout] 266 | ... if (frame.stream_id.to_u32() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (frame.stream_id.to_u32() == 0) { [INFO] [stdout] 266 + if frame.stream_id.to_u32() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fd::RawFd` and `unix::net::SocketAddr` [INFO] [stdout] --> src/http2/stream.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::{fd::RawFd, unix::net::SocketAddr}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/http2/stream.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::Request` [INFO] [stdout] --> src/http2/stream.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use http::Request; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Hpack` [INFO] [stdout] --> src/http2/stream.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | http2::{DataPayload, Hpack}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TcpStream` and `UnixStream` [INFO] [stdout] --> src/http2/stream.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use mio::net::{TcpStream, UnixStream}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kparser::u31::u31` [INFO] [stdout] --> src/http2.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kparser::u31::u31; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsFd`, `Display`, `FromRawFd`, `IntoRawFd`, `Read`, `SocketAddr`, `error::Error`, `rc::Weak`, and `result` [INFO] [stdout] --> src/http2.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | error::Error, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 10 | fmt::{Debug, Display}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | io::{self, Read, Write}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | net::{Shutdown, SocketAddr, ToSocketAddrs}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 13 | os::fd::{AsFd, AsRawFd, FromRawFd, IntoRawFd, RawFd}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 14 | rc::Weak, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | result, time, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Event`, `Registry`, and `UnixStream` [INFO] [stdout] --> src/http2.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | event::{Event, Source}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | net::{TcpListener, TcpStream, UnixStream}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 23 | unix::SourceFd, [INFO] [stdout] 24 | Events, Interest, Poll, Registry, Token, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `request` [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use http::{request, Response}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/main.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | server.listen(|token, request| -> Response> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/http2.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 69 | / loop { [INFO] [stdout] 70 | | let mut events = Events::with_capacity(128); [INFO] [stdout] 71 | | poll.poll(&mut events, None)?; [INFO] [stdout] 72 | | for event in &events { [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 128 | [INFO] [stdout] 129 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Source` [INFO] [stdout] --> src/http2.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | event::{Event, Source}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:52:48 [INFO] [stdout] | [INFO] [stdout] 52 | FrameParseError::PayloadParseError(e) => return ContextError::InvalidStream, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | ContextError::HeaderDecodeError(e) => f.write_str("Hpack Error"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2/context.rs:158:32 [INFO] [stdout] | [INFO] [stdout] 158 | if let Err(e) = Http2Pri::read_and_remove(&mut self.read_buffer) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http2/context.rs:168:26 [INFO] [stdout] | [INFO] [stdout] 168 | let (mut frame_size, mut frame) = self.read_frame(&self.read_buffer)?; [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/http2/context.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut frame = >::try_from(&buf)?; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/http2/context.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/http2/context.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 258 | &SETTINGS_HEADER_TABLE_SIZE => { [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 278 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_ENABLE_PUSH` [INFO] [stdout] --> src/http2/context.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_ENABLE_PUSH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_CONCURRENT_STREAMS` [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_CONCURRENT_STREAMS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_INITIAL_WINDOW_SIZE` [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_INITIAL_WINDOW_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_FRAME_SIZE` [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_FRAME_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SETTINGS_MAX_HEADER_LIST_SIZE` [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SETTINGS_MAX_HEADER_LIST_SIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rst_payload` [INFO] [stdout] --> src/http2/context.rs:319:48 [INFO] [stdout] | [INFO] [stdout] 319 | kparser::http2::Payload::RstStream(rst_payload) => {} [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rst_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `goaway_payload` [INFO] [stdout] --> src/http2/context.rs:324:45 [INFO] [stdout] | [INFO] [stdout] 324 | kparser::http2::Payload::GoAway(goaway_payload) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_goaway_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http2/context.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | let mut stream = Http2Stream::new(frame.stream_id); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream_id` [INFO] [stdout] --> src/http2/context.rs:354:9 [INFO] [stdout] | [INFO] [stdout] 354 | stream_id: u31, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fd` [INFO] [stdout] --> src/http2.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | let fd = mio::net::UnixStream::connect(format!("/tmp/{}", name))?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/http2.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | ... let (mut tcp_stream, addr) = self.listener.accept()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http2.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | ... Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/http2.rs:152:13 [INFO] [stdout] | [INFO] [stdout] 152 | fn from(value: RawFd) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/lib.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | server.listen(|token, request| -> Response> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_ENABLE_PUSH` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:261:25 [INFO] [stdout] | [INFO] [stdout] 261 | SETTINGS_ENABLE_PUSH => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_enable_push` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_CONCURRENT_STREAMS` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | SETTINGS_MAX_CONCURRENT_STREAMS => self.max_streams = value.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_concurrent_streams` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_INITIAL_WINDOW_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:265:25 [INFO] [stdout] | [INFO] [stdout] 265 | SETTINGS_INITIAL_WINDOW_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_initial_window_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_FRAME_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | SETTINGS_MAX_FRAME_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_frame_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SETTINGS_MAX_HEADER_LIST_SIZE` should have a snake case name [INFO] [stdout] --> src/http2/context.rs:275:25 [INFO] [stdout] | [INFO] [stdout] 275 | SETTINGS_MAX_HEADER_LIST_SIZE => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `settings_max_header_list_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http2/stream.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | self.data.as_mut().unwrap().write(&data.data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 64 | let _ = self.data.as_mut().unwrap().write(&data.data); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.99s [INFO] running `Command { std: "docker" "inspect" "9279838a99cba2c112b3217467a550238a615ec2e1d716c50da887c0b6b4c4a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9279838a99cba2c112b3217467a550238a615ec2e1d716c50da887c0b6b4c4a6", kill_on_drop: false }` [INFO] [stdout] 9279838a99cba2c112b3217467a550238a615ec2e1d716c50da887c0b6b4c4a6