[INFO] cloning repository https://github.com/ArjunKrish7356/DNSserver
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ArjunKrish7356/DNSserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArjunKrish7356%2FDNSserver", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArjunKrish7356%2FDNSserver'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f7b77607d7be3a99a48b7f1a34ec0e8d5dde1bc6
[INFO] building ArjunKrish7356/DNSserver against try#334963c956d25708feab489a3816ae63f639355d for pr-135216
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArjunKrish7356%2FDNSserver" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/ArjunKrish7356/DNSserver on toolchain 334963c956d25708feab489a3816ae63f639355d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/ArjunKrish7356/DNSserver
[INFO] finished tweaking git repo https://github.com/ArjunKrish7356/DNSserver
[INFO] tweaked toml for git repo https://github.com/ArjunKrish7356/DNSserver written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/ArjunKrish7356/DNSserver 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e14b3ae2b04b3a5d8d4187c58e0afe0b8cdf0ecc8814f5e9602484f0b0d4138d
[INFO] running `Command { std: "docker" "start" "-a" "e14b3ae2b04b3a5d8d4187c58e0afe0b8cdf0ecc8814f5e9602484f0b0d4138d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e14b3ae2b04b3a5d8d4187c58e0afe0b8cdf0ecc8814f5e9602484f0b0d4138d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e14b3ae2b04b3a5d8d4187c58e0afe0b8cdf0ecc8814f5e9602484f0b0d4138d", kill_on_drop: false }`
[INFO] [stdout] e14b3ae2b04b3a5d8d4187c58e0afe0b8cdf0ecc8814f5e9602484f0b0d4138d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f0b30f0f7a193690f24465fecb93b504df66efcd622c5899f78a216c6553d03c
[INFO] running `Command { std: "docker" "start" "-a" "f0b30f0f7a193690f24465fecb93b504df66efcd622c5899f78a216c6553d03c", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.168
[INFO] [stderr]    Compiling proc-macro2 v1.0.87
[INFO] [stderr]    Compiling unicode-ident v1.0.13
[INFO] [stderr]    Compiling pin-project-lite v0.2.15
[INFO] [stderr]    Compiling bytes v1.7.2
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling syn v2.0.79
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling tokio v1.42.0
[INFO] [stderr]    Compiling DNSserver v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     buffer: Dnspacket::BytePacketBuffer,
[INFO] [stdout]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `src`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     src: std::net::SocketAddr,
[INFO] [stdout]    |     ^^^ help: if this is intentional, prefix it with an underscore: `_src`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `in_socket`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     in_socket: Arc<UdpSocket>,
[INFO] [stdout]    |     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_socket`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 |     out_socket: Arc<UdpSocket>,
[INFO] [stdout]    |     ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/DnsFunctions/DnsResolver.rs:59:10
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let (size, _) = out_socket.recv_from(&mut root_answer_buffer.buf).unwrap();
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `ResultCode` is more private than the item `DnsHeader::rescode`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:221:5
[INFO] [stdout]     |
[INFO] [stdout] 221 |     pub rescode: ResultCode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^ field `DnsHeader::rescode` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `ResultCode` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:187:1
[INFO] [stdout]     |
[INFO] [stdout] 187 | enum ResultCode {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `pos` is never read
[INFO] [stdout]  --> src/DnsFunctions/Dnspacket.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct BytePacketBuffer {
[INFO] [stdout]   |            ---------------- field in this struct
[INFO] [stdout] 6 |     pub buf: [u8; 4096],
[INFO] [stdout] 7 |     pub pos: usize,
[INFO] [stdout]   |         ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `BytePacketBuffer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:19:8
[INFO] [stdout]     |
[INFO] [stdout] 11  | impl BytePacketBuffer {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19  |     fn set(&mut self, pos: usize, val: u8) -> Result<(), E> {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 25  |     fn set_u16(&mut self, pos: usize, val: u16) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32  |     pub fn pos(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 36  |     fn step(&mut self, steps: usize) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42  |     fn seek(&mut self, pos: usize) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48  |     pub fn read(&mut self) -> Result<u8, E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58  |     pub fn get(&self, pos: usize) -> Result<u8, E> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn get_range(&self, start: usize, len: usize) -> Result<&[u8], E> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72  |     pub fn read_u16(&mut self) -> Result<u16, E> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77  |     pub fn read_u32(&mut self) -> Result<u32, E> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86  |     fn read_qname(&mut self, outstr: &mut String) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     fn write(&mut self, val: u8) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     fn write_u8(&mut self, val: u8) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 150 |     fn write_u16(&mut self, val: u16) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 156 |     fn write_u32(&mut self, val: u32) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 165 |     fn write_qname(&mut self, qname: &str) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResultCode` is never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:187:6
[INFO] [stdout]     |
[INFO] [stdout] 187 | enum ResultCode {
[INFO] [stdout]     |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_num` is never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:197:12
[INFO] [stdout]     |
[INFO] [stdout] 196 | impl ResultCode {
[INFO] [stdout]     | --------------- associated function in this implementation
[INFO] [stdout] 197 |     pub fn from_num(num: u8) -> ResultCode {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DnsHeader` is never constructed
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:212:12
[INFO] [stdout]     |
[INFO] [stdout] 212 | pub struct DnsHeader {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DnsHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:234:12
[INFO] [stdout]     |
[INFO] [stdout] 233 | impl DnsHeader {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 234 |     pub fn new() -> DnsHeader {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 256 |     pub fn read(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     fn write(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `UNKNOWN`, `A`, `NS`, `CNAME`, `MX`, and `AAAA` are never constructed
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:313:5
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub enum QueryType {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 313 |     UNKNOWN(u16),
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 314 |     A,
[INFO] [stdout]     |     ^
[INFO] [stdout] 315 |     NS,
[INFO] [stdout]     |     ^^
[INFO] [stdout] 316 |     CNAME,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 317 |     MX,
[INFO] [stdout]     |     ^^
[INFO] [stdout] 318 |     AAAA,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `QueryType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `to_num` and `from_num` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:322:12
[INFO] [stdout]     |
[INFO] [stdout] 321 | impl QueryType {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 322 |     pub fn to_num(&self) -> u16 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 333 |     pub fn from_num(num: u16) -> QueryType {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:354:12
[INFO] [stdout]     |
[INFO] [stdout] 353 | impl DnsQuestion {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout] 354 |     pub fn new(name: String, qtype: QueryType) -> DnsQuestion {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 361 |     pub fn read(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 369 |     pub fn write(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `read` and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:421:12
[INFO] [stdout]     |
[INFO] [stdout] 420 | impl DnsRecord {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 421 |     pub fn read(buffer: &mut BytePacketBuffer) -> Result<DnsRecord, E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 513 |     pub fn write(&self, buffer: &mut BytePacketBuffer) -> Result<usize, E> {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DnsPacket` is never constructed
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:616:12
[INFO] [stdout]     |
[INFO] [stdout] 616 | pub struct DnsPacket {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DnsPacket` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `from_buffer`, and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:625:12
[INFO] [stdout]     |
[INFO] [stdout] 624 | impl DnsPacket {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 625 |     pub fn new() -> DnsPacket {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 635 |     pub fn from_buffer(buffer: &mut BytePacketBuffer) -> Result<DnsPacket, E> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 662 |     pub fn write(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Dnspacket` should have a snake case name
[INFO] [stdout]  --> src/DnsFunctions/asyncDnsResolver.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod Dnspacket;
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `dnspacket`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ttl`
[INFO] [stdout]   --> src/DnsFunctions/DnsResolver.rs:72:53
[INFO] [stdout]    |
[INFO] [stdout] 72 |             Dnspacket::DnsRecord::A { domain, addr, ttl } => return Some((domain.clone(), *addr)),
[INFO] [stdout]    |                                                     ^^^ help: try ignoring the field: `ttl: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/DnsFunctions/DnsResolver.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let mut buffer = recursive_resolver(root_query_buffer.clone())?;
[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: type `ResultCode` is more private than the item `DnsHeader::rescode`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:221:5
[INFO] [stdout]     |
[INFO] [stdout] 221 |     pub rescode: ResultCode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^ field `DnsHeader::rescode` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `ResultCode` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:187:1
[INFO] [stdout]     |
[INFO] [stdout] 187 | enum ResultCode {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ResolutionFailed` is never constructed
[INFO] [stdout]   --> src/DnsFunctions/DnsErrors.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 5  | pub enum DnsResolverError {
[INFO] [stdout]    |          ---------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 10 |     ResolutionFailed,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DnsResolverError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Dnspacket` should have a snake case name
[INFO] [stdout]  --> src/DnsFunctions/DnsResolver.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod Dnspacket;
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `dnspacket`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `DnsErrors` should have a snake case name
[INFO] [stdout]  --> src/DnsFunctions/DnsResolver.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod DnsErrors;
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `dns_errors`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.32s
[INFO] running `Command { std: "docker" "inspect" "f0b30f0f7a193690f24465fecb93b504df66efcd622c5899f78a216c6553d03c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f0b30f0f7a193690f24465fecb93b504df66efcd622c5899f78a216c6553d03c", kill_on_drop: false }`
[INFO] [stdout] f0b30f0f7a193690f24465fecb93b504df66efcd622c5899f78a216c6553d03c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f8c651363cca49f8dd173440afcc6e74e723d9f91e0390f386a7bd07fbbb4c6a
[INFO] running `Command { std: "docker" "start" "-a" "f8c651363cca49f8dd173440afcc6e74e723d9f91e0390f386a7bd07fbbb4c6a", kill_on_drop: false }`
[INFO] [stderr]    Compiling DNSserver v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `buffer`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     buffer: Dnspacket::BytePacketBuffer,
[INFO] [stdout]    |     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `src`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     src: std::net::SocketAddr,
[INFO] [stdout]    |     ^^^ help: if this is intentional, prefix it with an underscore: `_src`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `in_socket`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     in_socket: Arc<UdpSocket>,
[INFO] [stdout]    |     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_in_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `out_socket`
[INFO] [stdout]   --> src/DnsFunctions/asyncDnsResolver.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 |     out_socket: Arc<UdpSocket>,
[INFO] [stdout]    |     ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_out_socket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `ResultCode` is more private than the item `DnsHeader::rescode`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:221:5
[INFO] [stdout]     |
[INFO] [stdout] 221 |     pub rescode: ResultCode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^ field `DnsHeader::rescode` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `ResultCode` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:187:1
[INFO] [stdout]     |
[INFO] [stdout] 187 | enum ResultCode {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `pos` is never read
[INFO] [stdout]  --> src/DnsFunctions/Dnspacket.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct BytePacketBuffer {
[INFO] [stdout]   |            ---------------- field in this struct
[INFO] [stdout] 6 |     pub buf: [u8; 4096],
[INFO] [stdout] 7 |     pub pos: usize,
[INFO] [stdout]   |         ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `BytePacketBuffer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:19:8
[INFO] [stdout]     |
[INFO] [stdout] 11  | impl BytePacketBuffer {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 19  |     fn set(&mut self, pos: usize, val: u8) -> Result<(), E> {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 25  |     fn set_u16(&mut self, pos: usize, val: u16) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 32  |     pub fn pos(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 36  |     fn step(&mut self, steps: usize) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42  |     fn seek(&mut self, pos: usize) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48  |     pub fn read(&mut self) -> Result<u8, E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 58  |     pub fn get(&self, pos: usize) -> Result<u8, E> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 65  |     pub fn get_range(&self, start: usize, len: usize) -> Result<&[u8], E> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 72  |     pub fn read_u16(&mut self) -> Result<u16, E> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77  |     pub fn read_u32(&mut self) -> Result<u32, E> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86  |     fn read_qname(&mut self, outstr: &mut String) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 136 |     fn write(&mut self, val: u8) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 145 |     fn write_u8(&mut self, val: u8) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 150 |     fn write_u16(&mut self, val: u16) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 156 |     fn write_u32(&mut self, val: u32) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 165 |     fn write_qname(&mut self, qname: &str) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ResultCode` is never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:187:6
[INFO] [stdout]     |
[INFO] [stdout] 187 | enum ResultCode {
[INFO] [stdout]     |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `from_num` is never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:197:12
[INFO] [stdout]     |
[INFO] [stdout] 196 | impl ResultCode {
[INFO] [stdout]     | --------------- associated function in this implementation
[INFO] [stdout] 197 |     pub fn from_num(num: u8) -> ResultCode {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DnsHeader` is never constructed
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:212:12
[INFO] [stdout]     |
[INFO] [stdout] 212 | pub struct DnsHeader {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DnsHeader` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:234:12
[INFO] [stdout]     |
[INFO] [stdout] 233 | impl DnsHeader {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 234 |     pub fn new() -> DnsHeader {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 256 |     pub fn read(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 281 |     fn write(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `UNKNOWN`, `A`, `NS`, `CNAME`, `MX`, and `AAAA` are never constructed
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:313:5
[INFO] [stdout]     |
[INFO] [stdout] 312 | pub enum QueryType {
[INFO] [stdout]     |          --------- variants in this enum
[INFO] [stdout] 313 |     UNKNOWN(u16),
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 314 |     A,
[INFO] [stdout]     |     ^
[INFO] [stdout] 315 |     NS,
[INFO] [stdout]     |     ^^
[INFO] [stdout] 316 |     CNAME,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 317 |     MX,
[INFO] [stdout]     |     ^^
[INFO] [stdout] 318 |     AAAA,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `QueryType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `to_num` and `from_num` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:322:12
[INFO] [stdout]     |
[INFO] [stdout] 321 | impl QueryType {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 322 |     pub fn to_num(&self) -> u16 {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 333 |     pub fn from_num(num: u16) -> QueryType {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `read`, and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:354:12
[INFO] [stdout]     |
[INFO] [stdout] 353 | impl DnsQuestion {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout] 354 |     pub fn new(name: String, qtype: QueryType) -> DnsQuestion {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 361 |     pub fn read(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 369 |     pub fn write(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `read` and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:421:12
[INFO] [stdout]     |
[INFO] [stdout] 420 | impl DnsRecord {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 421 |     pub fn read(buffer: &mut BytePacketBuffer) -> Result<DnsRecord, E> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 513 |     pub fn write(&self, buffer: &mut BytePacketBuffer) -> Result<usize, E> {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DnsPacket` is never constructed
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:616:12
[INFO] [stdout]     |
[INFO] [stdout] 616 | pub struct DnsPacket {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DnsPacket` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `from_buffer`, and `write` are never used
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:625:12
[INFO] [stdout]     |
[INFO] [stdout] 624 | impl DnsPacket {
[INFO] [stdout]     | -------------- associated items in this implementation
[INFO] [stdout] 625 |     pub fn new() -> DnsPacket {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 635 |     pub fn from_buffer(buffer: &mut BytePacketBuffer) -> Result<DnsPacket, E> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 662 |     pub fn write(&mut self, buffer: &mut BytePacketBuffer) -> Result<(), E> {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Dnspacket` should have a snake case name
[INFO] [stdout]  --> src/DnsFunctions/asyncDnsResolver.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod Dnspacket;
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `dnspacket`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]   --> src/DnsFunctions/DnsResolver.rs:59:10
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let (size, _) = out_socket.recv_from(&mut root_answer_buffer.buf).unwrap();
[INFO] [stdout]    |          ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ttl`
[INFO] [stdout]   --> src/DnsFunctions/DnsResolver.rs:72:53
[INFO] [stdout]    |
[INFO] [stdout] 72 |             Dnspacket::DnsRecord::A { domain, addr, ttl } => return Some((domain.clone(), *addr)),
[INFO] [stdout]    |                                                     ^^^ help: try ignoring the field: `ttl: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/DnsFunctions/DnsResolver.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let mut buffer = recursive_resolver(root_query_buffer.clone())?;
[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: type `ResultCode` is more private than the item `DnsHeader::rescode`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:221:5
[INFO] [stdout]     |
[INFO] [stdout] 221 |     pub rescode: ResultCode,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^ field `DnsHeader::rescode` is reachable at visibility `pub(crate)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `ResultCode` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/DnsFunctions/Dnspacket.rs:187:1
[INFO] [stdout]     |
[INFO] [stdout] 187 | enum ResultCode {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ResolutionFailed` is never constructed
[INFO] [stdout]   --> src/DnsFunctions/DnsErrors.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 5  | pub enum DnsResolverError {
[INFO] [stdout]    |          ---------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 10 |     ResolutionFailed,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DnsResolverError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Dnspacket` should have a snake case name
[INFO] [stdout]  --> src/DnsFunctions/DnsResolver.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | mod Dnspacket;
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `dnspacket`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `DnsErrors` should have a snake case name
[INFO] [stdout]  --> src/DnsFunctions/DnsResolver.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | mod DnsErrors;
[INFO] [stdout]   |     ^^^^^^^^^ help: convert the identifier to snake case: `dns_errors`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s
[INFO] running `Command { std: "docker" "inspect" "f8c651363cca49f8dd173440afcc6e74e723d9f91e0390f386a7bd07fbbb4c6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f8c651363cca49f8dd173440afcc6e74e723d9f91e0390f386a7bd07fbbb4c6a", kill_on_drop: false }`
[INFO] [stdout] f8c651363cca49f8dd173440afcc6e74e723d9f91e0390f386a7bd07fbbb4c6a
